refactor: establish SUPPORTED_AGENTS as single source of truth#62
Merged
arittr merged 4 commits intofeat-add-gemini-agent-support-tofrom Oct 26, 2025
Merged
Conversation
- Export SUPPORTED_AGENTS from agents/types.ts as canonical agent list - Update agentNameSchema to derive from SUPPORTED_AGENTS (removes hardcoded duplication) - Add comprehensive tests verifying schema-constant synchronization - Remove AgentName type export from types/schemas.ts to prevent confusion - Format code with updated linter rules 🤖 Generated with Claude via commitment
Owner
Author
|
This change is part of the following stack:
Change managed by git-spice. |
This was referenced Oct 26, 2025
- Add Gemini to list of supported AI agents in README - Update architecture.md with simple factory pattern using ts-pattern - Document factory criteria: single responsibility, pure function, exhaustiveness checking - Replace "if/else for agent selection" with "simple factory with ts-pattern" - Update v3 evolution notes to clarify allowed vs banned factory patterns - Add factory.ts to agent sub-components list - Update meta.md version history with v3 factory simplification 🤖 Generated with Claude via commitment
- Add `--agent` flag to `commitment init` for setting default agent - Implement manual argv parsing to handle Commander.js subcommand option conflict - Display configured agent in init success message - Update README with agent configuration examples for hook setup 🤖 Generated with Claude via commitment
- Store list of staged files before running linting - Re-stage files modified by linting tools - Prevent unstaged changes from being excluded from commit 🤖 Generated with Claude via commitment
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.
🤖 Generated with Claude via commitment