claudecode/crates
Yeachan-Heo b1a64fbbf8 Keep CLI parity features local and controllable
The remaining slash commands already existed in the REPL path, so this change
focuses on wiring the active CLI parser and runtime to expose them safely.
`--version` now exits through a local reporting path, and `--allowedTools`
constrains both advertised and executable tools without changing the underlying
command surface.

Constraint: The active CLI parser lives in main.rs, so a full parser unification would be broader than requested
Constraint: --version must not require API credentials or construct the API client
Rejected: Migrate the binary to the clap parser in args.rs | too large for a parity patch
Rejected: Enforce allowed tools only at request construction time | execution-time mismatch risk
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Keep local-only flags like --version on pre-runtime codepaths and mirror tool allowlists in both definition and execution paths
Tested: cargo fmt; cargo clippy --workspace --all-targets -- -D warnings; cargo test; cargo run -q -p rusty-claude-cli -- --version; cargo run -q -p rusty-claude-cli -- --help
Not-tested: Interactive live API conversation with restricted tool allowlists
2026-03-31 23:39:24 +00:00
..
api Add reusable OAuth and auth-source foundations 2026-03-31 19:47:02 +00:00
commands Finish the Rust CLI command surface for everyday session workflows 2026-03-31 22:49:50 +00:00
compat-harness Merge remote-tracking branch 'origin/rcc/cli' into dev/rust 2026-03-31 20:46:07 +00:00
runtime Merge remote-tracking branch 'origin/rcc/tools' into dev/rust 2026-03-31 23:08:34 +00:00
rusty-claude-cli Keep CLI parity features local and controllable 2026-03-31 23:39:24 +00:00
tools Close the Claude Code tools parity gap 2026-03-31 22:53:20 +00:00