mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-09-19 07:33:17 +08:00
7975624d0a
## Audit Tracking Phase 3 (Steps 0-6) - Systematic tracking integration across all command modules - TimedExecution pattern enforcement (9 files) - Passthrough timing support for interactive commands - Exit code preservation for CI/CD reliability ## Tracking Validation Tests - 6 unit tests in src/tracking.rs (was 0) - estimate_tokens, args_display, DB round-trip - Passthrough non-dilution, TimedExecution timing - 2 UTF-8 tests for gh_cmd truncate() (emoji support) - scripts/test-tracking.sh: end-to-end smoke tests (9 checks) ## rtk learn (CLI Correction Detector) - New module: src/learn/ (detector, report, orchestration) - Analyzes Claude Code JSONL sessions for CLI error patterns - Auto-generates .claude/rules/cli-corrections.md - 18 new tests (detector: 15, report: 3) - Commands: rtk learn [--write-rules] [--since N] [--format json] ## Provider Extensions - ExtractedCommand: +output_content, +is_error, +sequence_index - Backward compatible with existing discover::run() - 3 new provider tests (capture, error flag, sequence) ## Test Results ✓ 201 unit tests passed (183 existing + 18 new) ✓ 9 tracking smoke tests passed ✓ cargo fmt + clippy clean ✓ No deprecation warnings Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>