mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
feat: add dynamic pipeline detection for team sessions v5 architecture
Backend:
- Fix readLegacyFiles to handle { name, prefix }[] role format
- Add roles backfill in getEffectiveTeamMeta when meta.json exists
- Ensure pipeline_stages and roles flow correctly to API response
Team Skills:
- Add pipeline metadata initialization to all 16 team skill coordinator roles
- Each skill now reports pipeline_stages and roles to meta.json at session init
Documentation:
- Update command references and component documentation
- Add numerical-analysis-workflow skill spec
- Sync zh/en translations for commands and components
This commit is contained in:
@@ -139,23 +139,34 @@ For callback/check/resume/complete: load `commands/monitor.md` and execute match
|
||||
1. Generate session ID
|
||||
2. Create session folder
|
||||
3. Call TeamCreate with team name
|
||||
4. Initialize .msg/meta.json with empty fields
|
||||
4. Initialize meta.json with pipeline metadata and shared state:
|
||||
```typescript
|
||||
// Use team_msg to write pipeline metadata to .msg/meta.json
|
||||
mcp__ccw-tools__team_msg({
|
||||
operation: "log",
|
||||
session_id: "<session-id>",
|
||||
from: "coordinator",
|
||||
type: "state_update",
|
||||
summary: "Session initialized",
|
||||
data: {
|
||||
pipeline_mode: "<discovery|testing|full>",
|
||||
pipeline_stages: ["scout", "strategist", "generator", "executor", "analyst"],
|
||||
roles: ["coordinator", "scout", "strategist", "generator", "executor", "analyst"],
|
||||
team_name: "quality-assurance",
|
||||
discovered_issues: [],
|
||||
test_strategy: {},
|
||||
generated_tests: {},
|
||||
execution_results: {},
|
||||
defect_patterns: [],
|
||||
coverage_history: [],
|
||||
quality_score: null
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
5. Initialize wisdom directory (learnings.md, decisions.md, conventions.md, issues.md)
|
||||
6. Write session file with: session_id, mode, scope, status="active"
|
||||
|
||||
**Shared Memory Structure**:
|
||||
```
|
||||
{
|
||||
"discovered_issues": [],
|
||||
"test_strategy": {},
|
||||
"generated_tests": {},
|
||||
"execution_results": {},
|
||||
"defect_patterns": [],
|
||||
"coverage_history": [],
|
||||
"quality_score": null
|
||||
}
|
||||
```
|
||||
|
||||
**Success**: Team created, session file written, shared memory initialized.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user