pdftract/crates/pdftract-cli/src
jedarden e9bd5b2b58 feat(pdftract-5pbkp): implement inspect subcommand with clap parsing and axum server
Add inspect subcommand structure with:
- InspectArgs struct with clap parsing (file, port, bind, no_open, auth_token, compare)
- Validation: non-loopback bind requires auth-token, file existence checks
- Extraction pipeline integration (extract_pdf -> result_to_json)
- InspectorState for caching extraction results
- Axum router with placeholder index handler
- Browser launcher with platform detection (Linux/macOS/Windows)
- Ctrl-C handling via tokio::signal

Acceptance criteria PASS:
- Default invocation binds to 127.0.0.1:7676
- --no-open suppresses browser launcher
- Non-loopback bind without --auth-token -> validation error
- GET / returns 200 with placeholder HTML
- cargo check/clippy/fmt pass

WARN: Full integration test blocked by pre-existing classify.rs bug
(out of scope for this bead).

Closes: pdftract-5pbkp
Co-Authored-By: Claude Code <claude@anthropic.com>
2026-05-24 17:13:05 -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-5pbkp): implement inspect subcommand with clap parsing and axum server 2026-05-24 17:13: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 and --auto flag 2026-05-24 15:16:56 -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-5pbkp): implement inspect subcommand with clap parsing and axum server 2026-05-24 17:13:05 -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