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:
catlog22
2026-03-04 14:52:07 +08:00
parent b203ada9c5
commit f389e3e6dd
56 changed files with 2007 additions and 201 deletions

View File

@@ -224,17 +224,30 @@ Bash("ccw team log --session-id <session-id> --from coordinator --type <message-
└── issues.md
```
3. Initialize .msg/meta.json:
| Field | Initial Value |
|-------|---------------|
| `debt_inventory` | [] |
| `priority_matrix` | {} |
| `remediation_plan` | {} |
| `fix_results` | {} |
| `validation_results` | {} |
| `debt_score_before` | null |
| `debt_score_after` | null |
3. Initialize .msg/meta.json with pipeline metadata:
```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: "<scan|remediate|targeted>",
pipeline_stages: ["scanner", "assessor", "planner", "executor", "validator"],
roles: ["coordinator", "scanner", "assessor", "planner", "executor", "validator"],
team_name: "tech-debt",
debt_inventory: [],
priority_matrix: {},
remediation_plan: {},
fix_results: {},
validation_results: {},
debt_score_before: null,
debt_score_after: null
}
})
```
4. Call TeamCreate with team name "tech-debt"