- Add value_parser = ["off", "lite", "svg"] to --receipts CLI flag for clap validation - Add receipts field to ExtractTextArgs and ExtractMarkdownArgs in MCP tools args - Add ExtractionOptions and ReceiptsMode to pdftract-core (options.rs module) - Expose options module in pdftract-core/lib.rs The CLI now validates receipts mode at parse time with helpful error messages. MCP tools accept receipts argument matching the schema defined in sibling 6.7.5. ExtractionOptions struct provides the threading mechanism for the extraction pipeline. Acceptance criteria: - PASS: CLI validates --receipts values (off/lite/svg only) - PASS: CLI shows proper help text with possible values - PASS: ExtractionOptions serializes for HTTP/MCP transport - PASS: MCP tools args have receipts field - WARN: Full extraction implementation pending (deferred to extraction beads) Closes pdftract-39g4j Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| pdftract-cli.cdx.json | ||