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:
parent
102097222d
commit
9bdd44d9b6
2 changed files with 12 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue