M13: Run conversion, OCR and optimization over folder trees (#1605)

Add a shared CLI/MCP batch runner with bounded discovery, retained relative
paths and per-file processing in isolated engine sessions. Publish complete
outputs without overwriting existing names, and return structured errors
with an optional stop-on-error policy.

Cover recursive jobs, overlapping inputs, concurrent output collisions,
root confinement and partial-failure reporting in automation and CLI tests.

Co-authored-by: LabDennis <341377186+LabDennis@users.noreply.github.com>
This commit is contained in:
Sir Clangington III.
2026-10-13 00:12:28 -04:00
committed by GitHub
co-authored by LabDennis
parent 73efaef13e
commit 7a0f846a28
14 changed files with 702 additions and 5 deletions
+3 -3
View File
@@ -9287,9 +9287,9 @@ tier = "P1"
milestone = "M13"
status = "partial"
commands = ["actions.wizard", "ocr.recognize_batch"]
tools = ["action_run", "ocr_recognize_files"]
evidence = ["crates/automation/tests/automation.rs::actions_through_tools", "crates/ui-egui/tests/actions.rs::run_and_create_actions"]
notes = "Actions and OCR run over chosen files; whole folders (with subfolders) not yet."
tools = ["action_run", "ocr_recognize_files", "doc_batch"]
evidence = ["crates/automation/tests/automation.rs::actions_through_tools", "crates/ui-egui/tests/actions.rs::run_and_create_actions", "crates/automation/tests/batch.rs::batch_recurses_preserves_paths_continues_errors_and_never_replaces_outputs", "apps/pdfcraft-cli/tests/batch.rs::cli_batch_reports_partial_failure_and_continues_into_subfolders"]
notes = "Actions and OCR run over chosen files. CLI/MCP doc_batch adds bounded recursive folders for convert/ocr/optimize recipes, retained relative paths, collision-safe outputs and per-file reports. GUI folder selection, generic action recipes, scheduling and resume remain absent. See docs/cli-batch.md."
[[feature]]
id = "misc.action-prompt-steps"