Add tests for CLI command generation and model alias resolution

- Implement `test-cli-command-gen.js` to verify the logic of `buildCliCommand` function.
- Create `test-e2e-model-alias.js` for end-to-end testing of model alias resolution in `ccw cli`.
- Add `test-model-alias.js` to test model alias resolution for different models.
- Introduce `test-model-alias.txt` for prompt testing with model alias.
- Develop `test-update-claude-command.js` to test command generation for `update_module_claude`.
- Create a test file in `test-update-claude/src` for future tests.
This commit is contained in:
catlog22
2026-02-05 20:17:10 +08:00
parent 6576886457
commit 01459a34a5
193 changed files with 4796 additions and 9405 deletions

View File

@@ -1,32 +0,0 @@
⚠️ **DEPRECATED** - This file is deprecated as of v2.0 (2025-01-29)
**Use instead**: [`agent-roles.md`](agent-roles.md)
This file has been superseded by a consolidated `agent-roles.md` that improves organization and eliminates duplication.
**Why the change?**
- Consolidates all agent role definitions in one place
- Eliminates duplicated role descriptions
- Single source of truth for agent capabilities
- Better organization with unified reference format
**Migration**:
```javascript
// OLD (v1.0)
// Reference: specs/subagent-roles.md
// NEW (v2.0)
// Reference: specs/agent-roles.md
```
**Timeline**:
- v2.0 (2025-01-29): Old file kept for backward compatibility
- v2.1 (2025-03-31): Old file will be removed
---
# Subagent Roles Definition (Legacy - See agent-roles.md instead)
See [`agent-roles.md`](agent-roles.md) for the current consolidated agent roles specification.
All content has been merged into the new agent-roles.md file with improved organization and formatting.