Skip to content

Variable: WorkerKernelNamespace

Makaio Framework


Makaio Framework / services-core/worker/namespace / WorkerKernelNamespace

const WorkerKernelNamespace: BusNamespace<"worker", SubjectRecordFromSchemaRecord<{ completed: ZodObject<{ error: ZodOptional<ZodString>; instanceId: ZodString; result: ZodOptional<ZodString>; success: ZodBoolean; }, $strip>; get: { request: ZodObject<{ instanceId: ZodString; }, $strip>; response: ZodObject<{ definitionName: ZodString; error: ZodOptional<ZodString>; instanceId: ZodString; progress: ZodOptional<ZodArray<ZodString>>; result: ZodOptional<ZodString>; status: ZodEnum<{ cancelled: "cancelled"; completed: "completed"; failed: "failed"; running: "running"; waiting_input: "waiting_input"; }>; subagentId: ZodString; }, $strip>; }; kill: { request: ZodObject<{ instanceId: ZodString; }, $strip>; response: ZodObject<{ killed: ZodBoolean; }, $strip>; }; send: { request: ZodObject<{ content: ZodString; instanceId: ZodString; }, $strip>; response: ZodObject<{ sent: ZodBoolean; }, $strip>; }; spawn: { request: ZodObject<{ overrides: ZodOptional<ZodObject<{ allowedTools: ZodOptional<ZodArray<…>>; model: ZodOptional<ZodString>; systemPrompt: ZodOptional<ZodString>; }, $strip>>; prompt: ZodString; sessionId: ZodString; workerName: ZodString; }, $strip>; response: ZodObject<{ instanceId: ZodString; }, $strip>; }; spawned: ZodObject<{ instanceId: ZodString; workerName: ZodString; }, $strip>; }>, { content: string; error: never; instanceId: string; overrides: never; prompt: string; result: never; sessionId: string; success: boolean; workerName: string; }, { completed: ZodObject<{ error: ZodOptional<ZodString>; instanceId: ZodString; result: ZodOptional<ZodString>; success: ZodBoolean; }, $strip>; get: { request: ZodObject<{ instanceId: ZodString; }, $strip>; response: ZodObject<{ definitionName: ZodString; error: ZodOptional<ZodString>; instanceId: ZodString; progress: ZodOptional<ZodArray<ZodString>>; result: ZodOptional<ZodString>; status: ZodEnum<{ cancelled: "cancelled"; completed: "completed"; failed: "failed"; running: "running"; waiting_input: "waiting_input"; }>; subagentId: ZodString; }, $strip>; }; kill: { request: ZodObject<{ instanceId: ZodString; }, $strip>; response: ZodObject<{ killed: ZodBoolean; }, $strip>; }; send: { request: ZodObject<{ content: ZodString; instanceId: ZodString; }, $strip>; response: ZodObject<{ sent: ZodBoolean; }, $strip>; }; spawn: { request: ZodObject<{ overrides: ZodOptional<ZodObject<{ allowedTools: ZodOptional<ZodArray<ZodString>>; model: ZodOptional<ZodString>; systemPrompt: ZodOptional<ZodString>; }, $strip>>; prompt: ZodString; sessionId: ZodString; workerName: ZodString; }, $strip>; response: ZodObject<{ instanceId: ZodString; }, $strip>; }; spawned: ZodObject<{ instanceId: ZodString; workerName: ZodString; }, $strip>; }>

Defined in: ../../../packages/services/core/src/worker/namespace.ts:12

Worker namespace schemas.

Split into two concerns:

  • settings:worker.* - Definition CRUD (handled by SettingsService)
  • worker.* - Runtime lifecycle (handled by WorkerService)