6df69d8811
A pipeline template named ONE command for the whole run (`skill`), so the only way to know what actually moves a given node was to read that node's `detect` regexes. Each node now carries its own `command`: a slash command (`/superpowers:writing-plans`) or a shell one (`ccam lanes hook ci-gate`), whichever its detect rules already watch for. The values are derived from each node's own detect rules, not invented — every `ccam …` string was checked against bin/ccam.js and every `/superpowers:*` against the installed plugin. Nodes reaching which is a declaration rather than an action (`done`, `merged`, `reported`, `e2e-feature-passed`, `qc-plan`) are deliberately left empty. `pipelines.js` normalizes a missing or non-string value to "", so a custom template written before this field keeps loading rather than rendering "undefined". `nodeStates()` and GET /api/lanes/pipeline-stats pass it through. Never executed by the dashboard — display text, the same contract `skill` already had. Surfaced where each view has room for it: the Workflows pass-rate panel shows it under the node label and copies it on click; PipelineMap folds it into the node tooltip, because a 16-node pipeline has to fit across one card and there is no width for a second line. `command?: string` is optional in the client type only to spare four unrelated test fixtures — the server always sends the key, and the UI has to branch on the empty string regardless. Verified: npm run test:server (1373, +3), npm run test:client (459, +2), tsc --noEmit, prettier and check-headers clean. docs/LANES.md § Custom template format documents the field. openapi.yaml needs no change: the lane payload and pipeline-stats were never schematized there.
186 lines
4.0 KiB
JSON
186 lines
4.0 KiB
JSON
{
|
|
"id": "default",
|
|
"name": "Default feature pipeline",
|
|
"skill": "/ccam:ship-feature",
|
|
"nodes": [
|
|
{
|
|
"id": "intake",
|
|
"label": "Intake",
|
|
"icon": "📝",
|
|
"gate": false,
|
|
"aliases": [
|
|
"assigned",
|
|
"claimed",
|
|
"start"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Agent",
|
|
"match": "^Explore$"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "plan",
|
|
"label": "Plan",
|
|
"icon": "🧭",
|
|
"gate": false,
|
|
"command": "/superpowers:writing-plans",
|
|
"aliases": [
|
|
"planning",
|
|
"brainstorm",
|
|
"design"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Skill",
|
|
"match": "brainstorming|writing-plans"
|
|
},
|
|
{
|
|
"tool": "Write",
|
|
"match": "docs/.*plan.*\\.md"
|
|
},
|
|
{
|
|
"tool": "Agent",
|
|
"match": "^Plan$|Software Architect|Backend Architect|UX Architect"
|
|
},
|
|
{
|
|
"tool": "TaskCreate"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "implement",
|
|
"label": "Implement",
|
|
"icon": "🛠",
|
|
"gate": false,
|
|
"command": "/superpowers:test-driven-development",
|
|
"aliases": [
|
|
"implementing",
|
|
"coding",
|
|
"build"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Skill",
|
|
"match": "executing-plans|subagent-driven-development|test-driven-development"
|
|
},
|
|
{
|
|
"tool": "Edit"
|
|
},
|
|
{
|
|
"tool": "Write",
|
|
"match": "^(?!.*(?:^|/)(?:docs|\\.superpowers)/)"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tests",
|
|
"label": "Tests",
|
|
"icon": "🧪",
|
|
"gate": true,
|
|
"command": "npm test",
|
|
"aliases": [
|
|
"testing",
|
|
"unit",
|
|
"gates",
|
|
"pre-push-gate"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Bash",
|
|
"match": "\\b(npm (run )?test|pytest|vitest|jest|go test|cargo test|node\\s+--test|rspec|phpunit|dotnet test|mvn test|gradle test)\\b"
|
|
},
|
|
{
|
|
"tool": "Agent",
|
|
"match": "Test Results Analyzer|API Tester|Performance Benchmarker"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "review",
|
|
"label": "Review",
|
|
"icon": "👀",
|
|
"gate": true,
|
|
"command": "/superpowers:requesting-code-review",
|
|
"aliases": [
|
|
"reviewing",
|
|
"code-review",
|
|
"self-review"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Skill",
|
|
"match": "code-review|requesting-code-review|receiving-code-review"
|
|
},
|
|
{
|
|
"tool": "Bash",
|
|
"match": "\\bgh\\b[^;&|]*\\bpr diff\\b"
|
|
},
|
|
{
|
|
"tool": "Agent",
|
|
"match": "(?<!senior-gate-)[Rr]eviewer|Evidence Collector|Accessibility Auditor"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gate",
|
|
"label": "Gate",
|
|
"icon": "🚦",
|
|
"gate": true,
|
|
"command": "/superpowers:verification-before-completion",
|
|
"aliases": [
|
|
"verify",
|
|
"verification",
|
|
"sr-gate",
|
|
"gate-blocked"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Skill",
|
|
"match": "verification-before-completion"
|
|
},
|
|
{
|
|
"tool": "Agent",
|
|
"match": "senior-gate-reviewer|Reality Checker"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ship",
|
|
"label": "Ship",
|
|
"icon": "🔀",
|
|
"gate": false,
|
|
"command": "/superpowers:finishing-a-development-branch",
|
|
"aliases": [
|
|
"pr",
|
|
"pr-open",
|
|
"publishing",
|
|
"commit",
|
|
"push"
|
|
],
|
|
"detect": [
|
|
{
|
|
"tool": "Skill",
|
|
"match": "finishing-a-development-branch"
|
|
},
|
|
{
|
|
"tool": "Bash",
|
|
"match": "\\bgit\\b(?:\\s+-c\\s+[\\w.-]+=(?:'[^']*'|\\\"[^\\\"]*\\\"|\\S+)|\\s+-{1,2}[\\w.-]+(?:=(?:'[^']*'|\\\"[^\\\"]*\\\"|\\S+))?)*\\s+push\\b|\\bgh\\b[^;&|]*\\bpr create\\b"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "done",
|
|
"label": "Done",
|
|
"icon": "✅",
|
|
"gate": false,
|
|
"aliases": [
|
|
"complete",
|
|
"completed",
|
|
"merged"
|
|
]
|
|
}
|
|
]
|
|
}
|