Interface: CompiledAgentRoute
One conventional route module compiled into the immutable route graph.
Properties
config
readonlyconfig:Readonly<Record<string,unknown>>
Statically extracted from the module's export const config declaration; emptyRouteConfig when absent or rejected.
event?
readonlyoptionalevent?:"session/start"|"tool/before"|"tool/after"|"stop"|"agent/start"|"agent/stop"|"workspace/open"|"session/end"|"prompt/submit"|"tool/failure"|"compact/before"|"compact/after"|"permission/request"|"permission/denied"|"stop/failure"|"file/change"|"config/change"|"task/create"|"task/complete"|"agent/idle"
Canonical event identity; present only when kind is event-route.
id
readonlyid:string
inputSchema?
readonlyoptionalinputSchema?:RouteInputSchema
Statically projected bounded JSON Schema subset; absent for missing or richer input schemas.
kind
readonlykind:CompiledRouteKind
provenance
readonlyprovenance:RouteProvenance
serverId?
readonlyoptionalserverId?:string
The owning MCP server id (mcp:<name>); MCP route kinds only.
source
readonlysource:string
Absolute route module path.