version: urirun.flow.v1
source:
  nl: "Wykonaj read-only audyt faktur: znajdź duplikaty, zrób OCR batch i zapisz lokalne CSV z kategoriami."
task:
  id: invoice-audit-flow
  title: "Invoice audit over laptop node"
steps:
  - id: duplicates
    uri: fs://host/duplicates/query/find
    payload:
      path: "."
      extensions: "pdf,png,jpg,jpeg"
      max_files: 10000
      recursive: true
    depends_on: []
  - id: ocr_batch
    uri: ocr://host/document/query/batch
    payload:
      root: "/home/tom/Downloads/2026/5"
      extensions: "pdf,png,jpg,jpeg"
      max_files: 10000
      max_chars_per_file: 1200
      backend: "auto"
    depends_on: [duplicates]
  - id: local_csv_report
    local:
      command: "./invoice_audit.py --node-url http://192.168.188.201:8765 --root /home/tom/Downloads/2026/5"
    depends_on: [ocr_batch]
