mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-11 03:13:24 +00:00
- docs/agent-hooks.md: handler reference, lifecycle events, security model - examples/hooks/: 5 runnable JSON configs (audit, lint, block-rm-rf, Discord notify, context injector) - docs/17-changelog.md: Wave 0 entry - Makefile: hooks-specific test targets - CLAUDE.md: cross-reference
23 lines
646 B
JSON
23 lines
646 B
JSON
{
|
|
"event": "stop",
|
|
"handler_type": "http",
|
|
"scope": "tenant",
|
|
"matcher": "",
|
|
"if_expr": "",
|
|
"config": {
|
|
"url": "https://discord.com/api/webhooks/REPLACE_ME",
|
|
"headers": {
|
|
"Content-Type": "application/json"
|
|
}
|
|
},
|
|
"timeout_ms": 3000,
|
|
"on_timeout": "allow",
|
|
"priority": 1,
|
|
"enabled": false,
|
|
"source": "seed",
|
|
"metadata": {
|
|
"notes": "Discord webhook fired on every session stop. Disabled by default — enable after replacing the webhook URL. Discord expects {\"content\":\"...\"} but the hook ships event JSON; consider putting an adapter in front.",
|
|
"tags": ["notify", "discord", "session"]
|
|
}
|
|
}
|