claudecode/rust/crates/rusty-claude-cli/src
Yeachan-Heo 5b046836b9 Enable local image prompts without breaking text-only CLI flows
The Rust CLI now recognizes explicit local image references in prompt text,
encodes supported image files as base64, and serializes mixed text/image
content blocks for the API. The request conversion path was kept narrow so
existing runtime/session structures remain stable while prompt mode and user
text conversion gain multimodal support.

Constraint: Must support PNG, JPG/JPEG, GIF, and WebP without adding broad runtime abstractions
Constraint: Existing text-only prompt behavior and API tool flows must keep working unchanged
Rejected: Add only explicit --image CLI flags | does not satisfy auto-detect image refs in prompt text
Rejected: Persist native image blocks in runtime session model | broader refactor than needed for prompt support
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Keep image parsing scoped to outbound user prompt adaptation unless session persistence truly needs multimodal history
Tested: cargo fmt --all; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace
Not-tested: Live remote multimodal request against Anthropic API
2026-04-01 00:59:16 +00:00
..
app.rs Make the REPL resilient enough for real interactive workflows 2026-04-01 00:15:33 +00:00
args.rs Enable Claude OAuth login without requiring API keys 2026-03-31 23:38:05 +00:00
input.rs Make the REPL resilient enough for real interactive workflows 2026-04-01 00:15:33 +00:00
main.rs Enable local image prompts without breaking text-only CLI flows 2026-04-01 00:59:16 +00:00
render.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00