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,194 +1,151 @@
{
"/docs/__docusaurus/debug-e58": {
"__comp": "__comp---theme-debug-config-23-a-2ff",
"/docs/zh/-47a": {
"__comp": "5e95c892",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
"plugin": "aba21aa0"
}
},
"/docs/__docusaurus/debug/config-2ce": {
"__comp": "__comp---theme-debug-config-23-a-2ff",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
}
"/docs/zh/-dec": {
"__comp": "a7bd4aaa",
"__props": "b17e4002"
},
"/docs/__docusaurus/debug/content-11b": {
"__comp": "__comp---theme-debug-contentba-8-ce7",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
},
"__props": "__props---docs-docusaurus-debug-content-344-8d5"
"/docs/zh/-aea": {
"__comp": "a94703ab"
},
"/docs/__docusaurus/debug/globalData-f13": {
"__comp": "__comp---theme-debug-global-dataede-0fa",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
}
"/docs/zh/commands/cli/cli-init-fe3": {
"__comp": "17896441",
"content": "0566a0a8"
},
"/docs/__docusaurus/debug/metadata-bff": {
"__comp": "__comp---theme-debug-site-metadata-68-e-3d4",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
}
"/docs/zh/commands/cli/codex-review-e65": {
"__comp": "17896441",
"content": "f1bf82ec"
},
"/docs/__docusaurus/debug/registry-830": {
"__comp": "__comp---theme-debug-registry-679-501",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
}
"/docs/zh/commands/general/ccw-83a": {
"__comp": "17896441",
"content": "f4817052"
},
"/docs/__docusaurus/debug/routes-13e": {
"__comp": "__comp---theme-debug-routes-946-699",
"__context": {
"plugin": "plugin---docs-docusaurus-debugb-38-c84"
}
"/docs/zh/commands/general/ccw-coordinator-f35": {
"__comp": "17896441",
"content": "d550a629"
},
"/docs/-43a": {
"__comp": "__comp---theme-docs-root-5-e-9-0b6",
"__context": {
"plugin": "plugin---docs-aba-4f5"
}
"/docs/zh/commands/general/ccw-debug-b0a": {
"__comp": "17896441",
"content": "97c6e66a"
},
"/docs/-93c": {
"__comp": "__comp---theme-doc-version-roota-7-b-5de",
"__props": "__props---docs-11-b-f70"
"/docs/zh/commands/general/ccw-plan-39d": {
"__comp": "17896441",
"content": "04db0a2e"
},
"/docs/-fdb": {
"__comp": "__comp---theme-doc-roota-94-67a"
"/docs/zh/commands/general/ccw-test-765": {
"__comp": "17896441",
"content": "ccef5d0f"
},
"/docs/commands/cli/cli-init-159": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-cli-cli-init-056-ce1"
"/docs/zh/commands/general/codex-coordinator-486": {
"__comp": "17896441",
"content": "f9222419"
},
"/docs/commands/cli/codex-review-c66": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-cli-codex-reviewf-1-b-55f"
"/docs/zh/commands/general/flow-create-d53": {
"__comp": "17896441",
"content": "fabaf1c8"
},
"/docs/commands/general/ccw-3c1": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-ccwf-48-8c4"
"/docs/zh/commands/issue/issue-convert-to-plan-0df": {
"__comp": "17896441",
"content": "5c7b2278"
},
"/docs/commands/general/ccw-coordinator-3b4": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-ccw-coordinatord-55-c6b"
"/docs/zh/commands/issue/issue-discover-9b4": {
"__comp": "17896441",
"content": "1e3006f3"
},
"/docs/commands/general/ccw-debug-e0c": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-ccw-debug-97-c-a72"
"/docs/zh/commands/issue/issue-execute-cfd": {
"__comp": "17896441",
"content": "fe8e3dcf"
},
"/docs/commands/general/ccw-plan-9ae": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-ccw-plan-04-d-fe0"
"/docs/zh/commands/issue/issue-from-brainstorm-d2f": {
"__comp": "17896441",
"content": "2ecf8b4a"
},
"/docs/commands/general/ccw-test-e6f": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-ccw-testcce-912"
"/docs/zh/commands/issue/issue-new-7f9": {
"__comp": "17896441",
"content": "4ad7db0f"
},
"/docs/commands/general/codex-coordinator-e7d": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-codex-coordinatorf-92-1dc"
"/docs/zh/commands/issue/issue-plan-ed4": {
"__comp": "17896441",
"content": "a6c3df16"
},
"/docs/commands/general/flow-create-507": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-general-flow-createfab-98a"
"/docs/zh/commands/issue/issue-queue-a4b": {
"__comp": "17896441",
"content": "1bac9067"
},
"/docs/commands/issue/issue-convert-to-plan-a36": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-convert-to-plan-5-c-7-184"
"/docs/zh/commands/memory/memory-compact-8dc": {
"__comp": "17896441",
"content": "7a1ee27c"
},
"/docs/commands/issue/issue-discover-5ae": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-discover-1-e-3-569"
"/docs/zh/commands/memory/memory-docs-full-cli-1a7": {
"__comp": "17896441",
"content": "4cc74730"
},
"/docs/commands/issue/issue-execute-20b": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-executefe-8-c03"
"/docs/zh/commands/memory/memory-docs-related-cli-f28": {
"__comp": "17896441",
"content": "60eef997"
},
"/docs/commands/issue/issue-from-brainstorm-10c": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-from-brainstorm-2-ec-eeb"
"/docs/zh/commands/memory/memory-load-aee": {
"__comp": "17896441",
"content": "157db180"
},
"/docs/commands/issue/issue-new-abb": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-new-4-ad-3f0"
"/docs/zh/commands/memory/memory-update-full-2a1": {
"__comp": "17896441",
"content": "666bb1bf"
},
"/docs/commands/issue/issue-plan-57f": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-plana-6-c-fbd"
"/docs/zh/commands/memory/memory-update-related-991": {
"__comp": "17896441",
"content": "611877e1"
},
"/docs/commands/issue/issue-queue-316": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-issue-issue-queue-1-ba-55f"
"/docs/zh/faq-9bf": {
"__comp": "17896441",
"content": "ea313555"
},
"/docs/commands/memory/memory-compact-fbd": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-memory-memory-compact-7-a-1-41c"
"/docs/zh/overview-2d1": {
"__comp": "17896441",
"content": "8a7e39ed"
},
"/docs/commands/memory/memory-docs-full-cli-8b8": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-memory-memory-docs-full-cli-4-cc-96f"
"/docs/zh/overview.zh-ce0": {
"__comp": "17896441",
"content": "07157af6"
},
"/docs/commands/memory/memory-docs-related-cli-707": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-memory-memory-docs-related-cli-60-e-dd0"
"/docs/zh/workflows/faq-319": {
"__comp": "17896441",
"content": "46f40178"
},
"/docs/commands/memory/memory-load-1db": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-memory-memory-load-157-952"
"/docs/zh/workflows/introduction-dc8": {
"__comp": "17896441",
"content": "e5f6eee3"
},
"/docs/commands/memory/memory-update-full-3fa": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-memory-memory-update-full-666-002"
"/docs/zh/workflows/level-1-ultra-lightweight-4d3": {
"__comp": "17896441",
"content": "9cf7cb6b"
},
"/docs/commands/memory/memory-update-related-c50": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-commands-memory-memory-update-related-611-8d3"
"/docs/zh/workflows/level-2-rapid-e2a": {
"__comp": "17896441",
"content": "05467734"
},
"/docs/faq-296": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-faqea-3-888"
"/docs/zh/workflows/level-3-standard-936": {
"__comp": "17896441",
"content": "3f1fe4a1"
},
"/docs/overview-f90": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-overview-188-429"
"/docs/zh/workflows/level-4-brainstorm-87d": {
"__comp": "17896441",
"content": "775938bf"
},
"/docs/overview.zh-7c8": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-overview-zh-071-ee2"
"/docs/zh/workflows/level-5-intelligent-b09": {
"__comp": "17896441",
"content": "562bb8cb"
},
"/docs/workflows/faq-58c": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-faqbcf-045"
"/docs/zh/-0e3": {
"__comp": "17896441",
"content": "6ab014e9"
},
"/docs/workflows/introduction-702": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-introduction-9-f-4-275"
},
"/docs/workflows/level-1-ultra-lightweight-b4b": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-level-1-ultra-lightweightc-5-a-5db"
},
"/docs/workflows/level-2-rapid-fe1": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-level-2-rapid-19-b-095"
},
"/docs/workflows/level-3-standard-65f": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-level-3-standardbdb-61a"
},
"/docs/workflows/level-4-brainstorm-fae": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-level-4-brainstormd-04-14f"
},
"/docs/workflows/level-5-intelligent-fa9": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-workflows-level-5-intelligent-186-b05"
},
"/docs/-6df": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-4-ed-831"
},
"/docs/-907": {
"__comp": "__comp---theme-doc-item-178-a40",
"content": "content---docs-e-21-5c5"
"/docs/zh/-792": {
"__comp": "17896441",
"content": "e2121358"
}
}