mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-14 02:42:04 +08:00
feat: add CLI fallback for MCP calls in team commands
- Implemented CLI fallback using `ccw team` for various team command operations in `execute.md`, `plan.md`, `review.md`, `spec-analyst.md`, `spec-coordinate.md`, `spec-discuss.md`, `spec-reviewer.md`, `spec-writer.md`, and `test.md`. - Updated command generation templates to include CLI fallback examples. - Enhanced validation checks to ensure CLI fallback sections are present. - Added quality standards for CLI fallback in team command design. - Introduced a new `GlobalGraphExpander` class for expanding search results with cross-directory relationships. - Added tests for `GlobalGraphExpander` to verify functionality and score decay factors.
This commit is contained in:
@@ -42,6 +42,8 @@ const requiredSections = [
|
||||
{ name: "TaskGet Usage", pattern: /TaskGet/ },
|
||||
{ name: "TaskUpdate Usage", pattern: /TaskUpdate/ },
|
||||
{ name: "SendMessage to Coordinator", pattern: /SendMessage.*coordinator/i },
|
||||
{ name: "CLI Fallback Section", pattern: /CLI 回退|CLI Fallback/ },
|
||||
{ name: "ccw team CLI Example", pattern: /ccw team log/ },
|
||||
{ name: "Error Handling Table", pattern: /## Error Handling/ },
|
||||
{ name: "Implementation Section", pattern: /## Implementation/ }
|
||||
]
|
||||
@@ -110,6 +112,14 @@ const patternChecks = [
|
||||
return command.includes('idle') || command.includes('return')
|
||||
},
|
||||
severity: "medium"
|
||||
},
|
||||
{
|
||||
name: "CLI Fallback Present",
|
||||
check: () => {
|
||||
return (command.includes('CLI 回退') || command.includes('CLI Fallback')) &&
|
||||
command.includes('ccw team log')
|
||||
},
|
||||
severity: "high"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user