feat: Model selection, parallel agents, and test coverage#1
Merged
Conversation
…is for multi-file commits Implement adaptive commit message generation with two strategies: - Single-call generation for small commits (< 4 files, default) - Parallel map-reduce analysis for larger commits (bounded concurrency) Add VS Code settings for model selection (haiku/sonnet/opus) across analysis, synthesis, and single-call phases, plus tunable concurrency and file context inclusion. Includes diff parser, semaphore-based concurrency control, and automatic fallback on failure.
…verage Introduce Jest + ts-jest test infrastructure and unit tests for all source modules (excluding extension.ts). Tests cover pure logic (prompts, diff parser), async concurrency (semaphore, cancellation), child_process mocking (git execFile, claude spawn), and full orchestration (map-reduce pipeline, commit message generation with path dispatch and fallback logic). - jest.config.ts with vscode module mapping and coverage collection - tsconfig.test.json extending main config for test compilation - Manual vscode mock covering all APIs used across the codebase - Reusable test helpers: CancellationToken and ChildProcess mock factories - 8 test suites: prompts, diffParser, concurrency, settings, git, claude, mapReduce, generateCommitMessage
Add automated CI/CD workflows for continuous integration and deployment: - Build workflow runs on PRs and pushes to main - Test workflow with Jest coverage reporting to Codecov - Enhanced publish workflow with emoji for marketplace releases
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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
combines results into a final commit message (capable model). Falls back to single-call for small commits or on failure.
clawdCommit.*): model selection for analysis/synthesis/single-call (dropdown), parallel file threshold, maxconcurrent agents, and file context toggle.
and cancellation token helpers.