claude-print/tests
jedarden 50b213285a Add Phase 9: NEEDLE integration — install.sh, claude-print.yaml, --check subcommand
- claude-print.yaml: NEEDLE agent config with stdin input_method, needle-transform-claude
  output_transform, and invoke_template for subscription-billed claude-print runs
- install.sh: download release binary from GitHub, backup existing, install mock_claude,
  install NEEDLE config if present, run --check to verify, print --version
- src/check.rs: --check doctor subcommand with openpty probe, mkfifo probe, and optional
  mock_claude PTY round-trip (skipped if mock_claude not in PATH)
- src/main.rs + src/lib.rs: wire up check::run() for --check flag
- README.md: add Install, Usage, Flags table (matches --help exactly), Exit codes,
  and NEEDLE integration sections
- test-fixtures/mock-claude: extend with all MOCK_* env var controls needed for
  integration tests (MOCK_SILENT, MOCK_EXIT_BEFORE_STOP, MOCK_TRUST_DIALOG, etc.)
- tests/cli.rs, tests/hooks.rs, tests/version_compat.rs: Phase 10 unit test stubs

claude-print --check passes: openpty PASS, mkfifo PASS, mock_claude PTY PASS
bash -n install.sh: syntax OK

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-10 01:36:28 -04:00
..
fixtures Add Phase 9: NEEDLE integration — install.sh, claude-print.yaml, --check subcommand 2026-06-10 01:36:28 -04:00
cli.rs Add Phase 9: NEEDLE integration — install.sh, claude-print.yaml, --check subcommand 2026-06-10 01:36:28 -04:00
emitter.rs Add Phase 8: Emitter — text/json/stream-json output formats 2026-06-10 00:57:30 -04:00
hooks.rs Add Phase 9: NEEDLE integration — install.sh, claude-print.yaml, --check subcommand 2026-06-10 01:36:28 -04:00
pty_integration.rs Implement Phase 6: Stop Poller (bf-64s) 2026-06-10 00:05:14 -04:00
startup.rs Add startup.rs: trust-keyword scanner with test_trust_dialog_* integration tests (Phase 5) 2026-06-08 10:05:27 -04:00
stop_poller.rs Implement Phase 6: Stop Poller (bf-64s) 2026-06-10 00:05:14 -04:00
terminal.rs Add terminal.rs: probe scanner with response table, dedup bitmask, unknown-probe passthrough (Phase 4) 2026-06-08 09:25:54 -04:00
transcript.rs Add Phase 7: transcript reader with retry loop and dedup 2026-06-10 00:51:59 -04:00
version_compat.rs Add Phase 9: NEEDLE integration — install.sh, claude-print.yaml, --check subcommand 2026-06-10 01:36:28 -04:00