Add a standalone api crate for Anthropic's Messages API with typed requests,
responses, and SSE event parsing. The crate can send standard message
requests or consume streaming responses incrementally, and the workspace
now passes the stricter clippy invocation required by this lane.
Constraint: Must fit the existing Rust workspace and pass cargo fmt/clippy/test
Constraint: Live Anthropic verification depends on a valid ANTHROPIC_API_KEY at runtime
Rejected: Add a Stream-trait wrapper with extra dependencies | custom next_event() keeps the crate smaller
Rejected: Skip workspace lint cleanup | user explicitly required cargo clippy to pass
Confidence: medium
Scope-risk: moderate
Directive: Extend StreamEvent deliberately if future lanes need tool-use or thinking deltas
Tested: cargo fmt
Tested: cargo clippy --workspace --all-targets -- -D warnings
Tested: cargo test --workspace
Not-tested: Live Anthropic stream smoke test with a valid API key (current ANTHROPIC_API_KEY returned 401 authentication_error)
This creates a new rust/ workspace for the compatibility-first port effort, adds a README that explains the milestone and verification commands, links the new Rust docs from the repository root, and seeds a minimal CLI/runtime/registry/harness skeleton that can read the upstream TypeScript sources.
Constraint: Initial delivery had to stay inside rust/ except for the root README pointer
Constraint: The workspace started empty, so the first milestone needed proof-oriented scaffolding before broader porting
Rejected: Wait for tmux worker integration output | local verified implementation finished first and worker merges conflicted with local files
Rejected: Start with a feature-complete CLI rewrite | too risky without manifest and bootstrap harness scaffolding
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: Grow compatibility from extracted manifests and tests before claiming drop-in parity
Tested: cargo fmt --all; cargo check --workspace; cargo test --workspace; cargo run -p rusty-claude-cli -- --help; cargo run -p rusty-claude-cli -- dump-manifests; cargo run -p rusty-claude-cli -- bootstrap-plan
Not-tested: Real command execution parity; state/config fixture round-trips; bridge/MCP/plugin protocol replay
Related: /home/bellman/Workspace/rusty-claude-code/.omx/plans/prd-rust-port-claude-code-dropin-cli.md
Related: /home/bellman/Workspace/rusty-claude-code/.omx/plans/test-spec-rust-port-claude-code-dropin-cli.md
The old tracked TypeScript snapshot has been removed from the repository history and the root directory is now a Python porting workspace. README and tests now describe and verify the Python-first layout instead of treating the exposed snapshot as the active source tree.
A local archive can still exist outside Git, but the tracked repository now presents only the Python porting surface, related essay context, and OmX workflow artifacts.
Constraint: Tracked history should collapse to a single commit while excluding the archived snapshot from Git
Rejected: Keep the exposed TypeScript tree in tracked history under an archive path | user explicitly wanted only the Python porting repo state in Git
Confidence: medium
Scope-risk: broad
Reversibility: messy
Directive: Keep future tracked additions focused on the Python port itself; do not reintroduce the exposed snapshot into Git history
Tested: python3 -m unittest discover -s tests -v; python3 -m src.main summary; git diff --check
Not-tested: Behavioral parity with the original TypeScript system beyond the current Python workspace surface