pdftract/crates/pdftract-cli/src
jedarden a0f01977a1 feat(pdftract-64p5): implement classify CLI subcommand structure
Add the `pdftract classify` CLI subcommand with proper argument parsing,
feature gates, and path traversal protection. Add `--auto` flag to extract
subcommand.

Implementation details:
- Add Classify subcommand with --profiles DIR, --pretty, --top-k, --exit-on-unknown
- Implement path traversal protection for --profiles DIR
- Add --auto flag to Extract subcommand
- Feature-gate classify command behind `profiles` feature
- Create classify.rs module with ClassificationOutput struct
- Add unit tests for JSON serialization

Limitations deferred to bead 5.6.4:
- Built-in profiles (load_builtins() not yet available)
- YAML profile loading (requires YAML-to-Profile parsing)
- Full classification pipeline (awaits profile infrastructure)

Closes: pdftract-64p5

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:45:44 -04:00
..
doctor feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
grep feat(pdftract-ixzbg): implement regex engine wiring for grep subcommand 2026-05-24 06:30:02 -04:00
inspect feat(pdftract-6559n): implement render_reading_order inspector layer 2026-05-24 11:50:05 -04:00
mcp feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
cache_cmd.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
classify.rs feat(pdftract-64p5): implement classify CLI subcommand structure 2026-05-24 13:45:44 -04:00
codegen.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
lib.rs feat(pdftract-ixzbg): implement regex engine wiring for grep subcommand 2026-05-24 06:30:02 -04:00
main.rs feat(pdftract-64p5): implement classify CLI subcommand structure 2026-05-24 13:45:44 -04:00
password.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
serve.rs feat(pdftract-e5lli): fix health endpoint JSON response and streaming endpoint 2026-05-24 06:49:21 -04:00
verify_receipt.rs feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00