Skip to content

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 16 Apr 03:26
· 9 commits to main since this release

Changed

  • Claude backend fast-path — when ANTHROPIC_API_KEY is set, hey claude ... calls the Anthropic Messages API directly via HTTP (~2s) instead of spawning claude -p (~6s). Falls back to the subprocess when no key is present.
  • Code split into 12 modules — main.rs went from 1056 lines to 224. Backend logic, risk gate, presets, sanitizer, UI, and style constants each live in their own file.
  • ANSI constants extracted — duplicated \x1b[... escape codes replaced with named constants in src/style.rs (GRAY, RESET, DIM, BOLD_WHITE, etc.).
  • which_bin() now cached — binary lookups (eza, bat, jq, delta, claude, codex) are scanned once at startup into a OnceLock<HashMap> instead of re-scanning PATH on every call.
  • prettify_command inlined — thin wrapper removed; callers use apply_presets() directly.
  • Function-level use imports moved to module scope.