test: add tests for estimate_cost and prompt_score tools#292
Open
TerminalGravity wants to merge 5 commits intomainfrom
Open
test: add tests for estimate_cost and prompt_score tools#292TerminalGravity wants to merge 5 commits intomainfrom
TerminalGravity wants to merge 5 commits intomainfrom
Conversation
Adds a ready-to-use CLAUDE.md template that makes Claude Code automatically run preflight_check on prompts. Users can copy it into their project to get preflight working without manual tool calls. Referenced from Quick Start in README and examples/README.
- CLI now responds to --help/-h with usage info, profiles, and links - CLI now responds to --version/-v with package version - Previously, any flag just launched the interactive wizard - Fixed README badge from Node 18+ to Node 20+ (matches engines field)
Adds a new export_report MCP tool that generates markdown reports from timeline data. Includes: - Daily activity breakdown with sparkline bars - Prompt quality trend analysis (correction rate over time) - Commit summary list - Configurable period (day/week/month) and scope - Recommendations when correction rate is high Also adds 4 tests for the new tool. Closes #5
The README references examples/.preflight/ but it didn't exist. Adds well-commented starter configs: - config.yml — profile, related projects, thresholds, embeddings - triage.yml — triage rules with domain-specific keyword examples - contracts/api.yml — sample manual contract definitions - README.md — quick setup guide
- estimate_cost: 6 tests covering file analysis, correction detection, preflight tool counting, model pricing, and error handling - prompt_score: 8 tests covering scoring dimensions (specificity, scope, actionability, done condition), grade assignment, and session tracking Increases tool test coverage from 1/25 to 3/25.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds 14 tests across two tool test files:
Tool test coverage: 1/25 → 3/25. More coming.