feat(lanes): widen stage auto-detection, fix terminal UTF-8 decode

Add detect rules for plan/review/gate/tests/intake nodes (Agent subagent
matches, TaskCreate, broader test-runner regex) so more of the pipeline
lights up without an explicit ccam stage call, and fix a review/gate
detect overlap where senior-gate-reviewer also matched the generic
reviewer pattern. Also fix TerminalView's TextDecoder dropping the
`stream: true` flag, which corrupted multi-byte UTF-8 chars split across
WebSocket frames.
This commit is contained in:
2026-08-21 16:20:34 +07:00
parent 7c2992fdc8
commit 937c63361b
4 changed files with 77 additions and 24 deletions
+34 -3
View File
@@ -11,6 +11,12 @@
"assigned",
"claimed",
"start"
],
"detect": [
{
"tool": "Agent",
"match": "^Explore$"
}
]
},
{
@@ -31,6 +37,13 @@
{
"tool": "Write",
"match": "docs/.*plan.*\\.md"
},
{
"tool": "Agent",
"match": "^Plan$|Software Architect|Backend Architect|UX Architect"
},
{
"tool": "TaskCreate"
}
]
},
@@ -47,7 +60,7 @@
"detect": [
{
"tool": "Skill",
"match": "executing-plans|subagent-driven-development"
"match": "executing-plans|subagent-driven-development|test-driven-development"
},
{
"tool": "Edit"
@@ -72,7 +85,11 @@
"detect": [
{
"tool": "Bash",
"match": "\\b(npm (run )?test|pytest|vitest|jest|go test|cargo test|node\\s+--test)\\b"
"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"
}
]
},
@@ -89,11 +106,15 @@
"detect": [
{
"tool": "Skill",
"match": "code-review|requesting-code-review"
"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"
}
]
},
@@ -107,6 +128,16 @@
"verification",
"sr-gate",
"gate-blocked"
],
"detect": [
{
"tool": "Skill",
"match": "verification-before-completion"
},
{
"tool": "Agent",
"match": "senior-gate-reviewer|Reality Checker"
}
]
},
{