fabro/lib/crates/arc-cli
Bryan Helmkamp 11c17bffab Add CLI telemetry event tracking with command sanitization and git hashing
Activate the dormant Segment-based telemetry infrastructure by wiring
lifecycle events in main.rs. Each CLI invocation now emits a "Command Run"
or "Command Error" event with sanitized args, duration, hashed repo
identifier, and CI detection.

- Add sanitize.rs: redacts sensitive CLI args (paths, values) while
  keeping flags, booleans, and numeric patterns
- Add git.rs: MD5-hashes normalized origin remote URL so HTTPS/SSH
  variants produce the same identifier
- Extend command_name to include nested subcommands (e.g. "pr create",
  "llm prompt", "system prune", "model list")
- Restructure main/main_inner to capture timing and return command name
  alongside result for telemetry

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-10 22:32:54 -04:00
..
src Add CLI telemetry event tracking with command sanitization and git hashing 2026-03-10 22:32:54 -04:00
tests Add trycmd --help tests for each visible CLI subcommand 2026-03-10 22:10:28 -04:00
Cargo.toml Add trycmd --help tests for each visible CLI subcommand 2026-03-10 22:10:28 -04:00