fix(mcp): advertise process.start in channel capability

Sync the claude/channel capability list with the process lifecycle events emitted by the service.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-03-31 18:13:27 +00:00
parent 102097222d
commit 9bdd44d9b6
2 changed files with 12 additions and 0 deletions

View file

@ -114,6 +114,7 @@ func channelCapability() map[string]any {
"brain.remember.complete",
"brain.recall.complete",
"inbox.message",
"process.start",
"process.exit",
"harvest.complete",
"test.result",

View file

@ -64,4 +64,15 @@ func TestChannelCapability_Good(t *testing.T) {
if len(channels) == 0 {
t.Fatal("expected at least one channel in capability definition")
}
foundProcessStart := false
for _, channel := range channels {
if channel == "process.start" {
foundProcessStart = true
break
}
}
if !foundProcessStart {
t.Fatal("expected process.start to be advertised in capability definition")
}
}