mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
feat(gateway): publish lifecycle runtime events
Emit gateway.start, gateway.ready, and gateway.shutdown on the shared runtime event bus, while keeping reload events on the same helper path. Update subturn architecture docs to refer to runtime event kinds instead of the removed agent EventBus names. Validation: GOCACHE=/tmp/picoclaw-go-cache go test ./pkg/gateway ./pkg/events; GOCACHE=/tmp/picoclaw-go-cache go test ./pkg/bus ./pkg/channels ./pkg/mcp ./pkg/tools/integration ./pkg/events ./pkg/gateway; make lint
This commit is contained in:
@@ -75,6 +75,12 @@ const (
|
||||
// KindBusCloseDrained is emitted when message bus close drains buffered messages.
|
||||
KindBusCloseDrained Kind = "bus.close.drained"
|
||||
|
||||
// KindGatewayStart is emitted when gateway startup reaches runtime bootstrap.
|
||||
KindGatewayStart Kind = "gateway.start"
|
||||
// KindGatewayReady is emitted when gateway services are started and ready.
|
||||
KindGatewayReady Kind = "gateway.ready"
|
||||
// KindGatewayShutdown is emitted when gateway shutdown starts.
|
||||
KindGatewayShutdown Kind = "gateway.shutdown"
|
||||
// KindGatewayReloadStarted is emitted when gateway reload starts.
|
||||
KindGatewayReloadStarted Kind = "gateway.reload.started"
|
||||
// KindGatewayReloadCompleted is emitted when gateway reload completes.
|
||||
|
||||
Reference in New Issue
Block a user