feat(tools): Add smart change detection, DevOps cost estimator, and test suggestions#15
Merged
aleksandardodevski111 merged 4 commits intoJan 9, 2026
Conversation
added 4 commits
January 9, 2026 13:25
…est suggestions Integrates enhanced PR analysis features v0.2.0 with smart change detection that conditionally shows relevant outputs based on file types. - Estimates AWS infrastructure costs from IaC files (Terraform, CloudFormation, CDK, Pulumi, K8s, Docker) - Uses static pricing tables - no AWS connection required - Provides confidence levels (high/medium/low) for estimates - Auto-detects test framework (Jest, Vitest, Mocha, Pytest) - Generates framework-specific test templates - Only suggests for files with significant changes (>5 additions) - Reads test coverage from multiple formats (Jest, NYC, LCOV, Cobertura) - Only runs when coverage tool is configured in project - Shows overall percentage, line/branch coverage - Categorizes files automatically (code, test, DevOps/IaC) - Only shows relevant outputs - no noise - Logs detection for transparency - Extended SQLite schema with DevOps cost tracking fields - Added test suggestions and coverage tracking - New getDevOpsCostStats() function for dashboard - New DevOps Cost/mo card - IaC Changes count - Test Suggestions count - Average Coverage percentage - DevOps Resource Types chart - src/tools/devops-cost-estimator.ts (new) - src/tools/coverage-reporter.ts (new) - src/tools/test-suggestion-tool.ts (new) - src/tools/index.ts (updated exports) - src/agents/base-pr-agent-workflow.ts (smart detection) - src/cli/commands/analyze.command.ts (display) - src/db/index.ts (schema + stats) - src/types/agent.types.ts (new types) - src/public/index.html (dashboard cards) - src/public/dashboard.js (rendering)
…ntry point - Fixed dashboard.js to use devops_cost_monthly instead of removed cost_usd - Fixed dashboard.js to use devops_resources instead of total_tokens - Updated table header from 'Cost' to 'DevOps Cost' - Fixed action.yml to point to dist/index.js (bundled) instead of dist/action.js
- Created project-classifier tool to distinguish between business logic and QA projects - Classification based on file patterns and code content analysis - Provides type-specific recommendations tailored to project focus - Integrated into PR analysis workflow with automatic detection - Added display in CLI output after summary - Helps teams separate concerns between business logic and QA projects
Bug 1: Added DevOps cost trend chart initialization in dashboard.js - The HTML canvas element chart-cost-trend was present but never rendered - Now properly displays daily cost trends when data is available - Shows placeholder message when no cost trend data exists Bug 2: Convert currentRisks to fixes format in agent workflow - Both execute() and executeFastPath() were returning empty fixes array - Now properly converts risks to fixes format for CLI display - Maintains backward compatibility with Fix interface - Enables proper display of critical issues and quick actions in CLI
0d938ee to
d5f8142
Compare
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.
Summary
Integrates enhanced PR analysis features v0.2.0 with smart change detection that conditionally shows relevant outputs based on file types.
New Features
💰 DevOps Cost Estimator
🧪 Test Suggestion Tool
📊 Coverage Reporter
🎯 Smart Change Detection
🗄️ Database Integration
getDevOpsCostStats()function for dashboard analytics📈 Dashboard Updates
Files Changed
src/tools/devops-cost-estimator.tssrc/tools/coverage-reporter.tssrc/tools/test-suggestion-tool.tssrc/tools/index.tssrc/agents/base-pr-agent-workflow.tssrc/cli/commands/analyze.command.tssrc/db/index.tssrc/types/agent.types.tssrc/public/index.htmlsrc/public/dashboard.jsHow It Works
When you run
pr-agent analyze:Testing