IPC Methods
Complete reference for all kernel IPC methods.
App Lifecycle
app.register
Register an app with the kernel.
Request:
Response:
app.heartbeat
Health check ping.
Request:
Response:
app.ready
Signal app is ready for traffic.
Request:
Response:
app.shutdown
Graceful shutdown notification.
Request:
Response:
Capability Registration
capability.register
Register a capability.
Request:
{
type: "channel" | "tool" | "hook" | "gateway_method" | "http_route" | "provider";
config: unknown;
}
Response:
capability.unregister
Remove a capability.
Request:
Response:
Hooks
hook.subscribe
Subscribe to hook events.
Request:
Response:
hook.unsubscribe
Unsubscribe from hooks.
Request:
Response:
hook.result
Return result for intercepting hook.
Request:
Response:
Configuration
config.get
Get configuration value.
Request:
Response:
config.watch
Watch for config changes (streaming).
Request:
Stream chunks:
Sessions
session.get
Get session info.
Request:
Response:
{
session: {
key: string;
agentId: string;
channelId?: string;
accountId?: string;
createdAt: number;
lastActiveAt: number;
messageCount: number;
} | null;
}
session.list
List sessions.
Request:
{
filter?: {
agentId?: string;
channelId?: string;
accountId?: string;
active?: boolean;
};
limit?: number;
offset?: number;
}
Response:
Messages
message.dispatch
Dispatch a message.
Request:
Response:
Agent
agent.queue
Queue a message for agent processing.
Request:
Response:
Error Codes
| Code | Description |
|---|---|
UNKNOWN_ERROR |
Unspecified error |
INVALID_REQUEST |
Malformed request |
METHOD_NOT_FOUND |
Unknown method |
INVALID_PARAMS |
Invalid parameters |
INTERNAL_ERROR |
Kernel internal error |
UNAUTHORIZED |
Auth required |
FORBIDDEN |
Permission denied |
NOT_FOUND |
Resource not found |
CONFLICT |
Resource conflict |
TIMEOUT |
Operation timeout |
APP_NOT_REGISTERED |
Must register first |
CAPABILITY_DENIED |
Capability not granted |
HOOK_NOT_SUBSCRIBED |
Hook subscription needed |
CONNECTION_CLOSED |
Connection closed |