@kaged/webhook-notify
System plugin that POSTs the daemon launch URL to a webhook on auth.launchUrlReady with HTTPS enforcement and exponential backoff retry
1
source files
1
test files
484
lines
✓ 18 pass
tests
pass
typecheck
clean
lint
Test results 18
setup validation > webhook-notify > missing webhook_url → throws
[0.410ms]
setup validation > webhook-notify > invalid method → throws
[0.100ms]
setup validation > webhook-notify > http:// without insecure → throws
[0.140ms]
setup validation > webhook-notify > http:// with insecure → loads OK
[0.150ms]
setup validation > webhook-notify > body_template without {{url}} → warns but loads
[0.160ms]
setup validation > webhook-notify > timeout_ms out of range → clamped
[0.100ms]
setup validation > webhook-notify > retry_count out of range → clamped
[0.100ms]
hook behavior > webhook-notify > happy path: POSTs launch URL to webhook
[0.740ms]
hook behavior > webhook-notify > include_token: false strips token from URL
[0.360ms]
hook behavior > webhook-notify > custom body_template applied
[0.210ms]
hook behavior > webhook-notify > custom headers merged with defaults
[0.230ms]
hook behavior > webhook-notify > PUT method used when configured
[0.190ms]
hook behavior > webhook-notify > retries on non-2xx response
[0.280ms]
hook behavior > webhook-notify > retries on network error
[0.310ms]
hook behavior > webhook-notify > all retries exhausted → error logged, no throw
[0.260ms]
hook behavior > webhook-notify > zero retries → single attempt only
[0.170ms]
hook behavior > webhook-notify > delay function called between retries
[0.230ms]
metadata > webhook-notify > plugin has correct name, version, description
[0.030ms]
Mentioned in
| Type | Document |
|---|---|
| adr | ADR-0008: Plugins are subprocesses over JSON-RPC on stdio |