Skip to content

feat: Add enhanced PR analysis features v0.2.0#21

Draft
aleksandardodevski111 wants to merge 3 commits into
techdebtgpt:mainfrom
dzdimov:feature/enhanced-pr-analysis
Draft

feat: Add enhanced PR analysis features v0.2.0#21
aleksandardodevski111 wants to merge 3 commits into
techdebtgpt:mainfrom
dzdimov:feature/enhanced-pr-analysis

Conversation

@aleksandardodevski111
Copy link
Copy Markdown

Summary

This PR adds 4 new enhanced PR analysis features to PeeR-Agent:

🧪 Test Suggestions

  • Auto-detects testing framework (Jest, Mocha, Vitest, pytest)
  • Identifies code changes without corresponding tests
  • Generates copyable test templates

📊 Coverage Reporting

  • Parses Jest/NYC JSON, lcov, and Cobertura formats
  • Only runs when coverage tool is configured in project
  • Shows overall percentage, line/branch coverage

💰 DevOps Cost Estimation

  • Detects Terraform, CloudFormation, Docker, K8s files
  • Estimates AWS resource costs using built-in pricing data
  • Shows confidence level for each estimate

🖥️ CLI Display Updates

  • New sections in pr-agent analyze output for all features

Changes

New Files:

  • src/tools/test-suggestion-tool.ts
  • src/tools/coverage-reporter.ts
  • src/tools/devops-cost-estimator.ts
  • CHANGELOG.md

Modified:

  • src/types/agent.types.ts - Added new interfaces
  • src/tools/index.ts - Exports for new tools
  • src/cli/commands/analyze.command.ts - Display sections
  • package.json - Version bump to 0.2.0

Testing

✅ TypeScript build passes
✅ All dependencies installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant