Skip to content

Variable: SkillNamespace

Makaio Framework


Makaio Framework / contracts / SkillNamespace

const SkillNamespace: BusNamespace<"skill", SubjectRecordFromSchemaRecord<{ activate: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodOptional<ZodString>; projectId: ZodOptional<ZodString>; sessionId: ZodString; skillName: ZodString; trigger: ZodEnum<{ auto: "auto"; model: "model"; reinjection: "reinjection"; user: "user"; }>; turnNumber: ZodOptional<ZodNumber>; }, $strip>; response: ZodObject<{ alreadyActive: ZodDefault<ZodBoolean>; baseDir: ZodOptional<ZodString>; content: ZodString; metadata: ZodOptional<ZodObject<{ allowedTools: ZodOptional<ZodString>; compatibility: ZodOptional<ZodString>; license: ZodOptional<ZodString>; metadata: ZodOptional<ZodRecord<…, …>>; }, $strict>>; name: ZodString; resources: ZodOptional<ZodArray<ZodString>>; }, $strip>; }; activated: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodString; sessionId: ZodString; skillName: ZodString; timestamp: ZodNumber; trigger: ZodEnum<{ auto: "auto"; model: "model"; reinjection: "reinjection"; user: "user"; }>; turnNumber: ZodOptional<ZodNumber>; }, $strip>; catalog.built: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodString; sessionId: ZodString; skillNames: ZodArray<ZodString>; timestamp: ZodNumber; }, $strip>; deactivated: ZodObject<{ agentId: ZodString; reason: ZodEnum<{ cwd_changed: "cwd_changed"; replaced: "replaced"; session_end: "session_end"; user: "user"; }>; sessionId: ZodString; skillName: ZodString; timestamp: ZodNumber; }, $strip>; getActiveSkills: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodOptional<ZodString>; projectId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>; response: ZodObject<{ cwd: ZodOptional<ZodString>; skills: ZodArray<ZodObject<{ activatedAt: ZodNumber; activatedAtTurn: ZodOptional<ZodNumber>; baseDir: ZodOptional<ZodString>; content: ZodString; lastInjectedAtTurn: ZodOptional<ZodNumber>; metadata: ZodOptional<ZodObject<…, …>>; name: ZodString; reinjection: ZodOptional<ZodObject<…, …>>; resources: ZodOptional<ZodArray<…>>; trigger: ZodEnum<{ auto: …; model: …; reinjection: …; user: …; }>; }, $strip>>; }, $strip>; }; getCatalog: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodOptional<ZodString>; projectId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>; response: ZodObject<{ cwd: ZodString; entries: ZodArray<ZodObject<{ activationMode: ZodDefault<ZodEnum<…>>; adapters: ZodOptional<ZodNullable<…>>; baseDir: ZodOptional<ZodString>; category: ZodOptional<ZodString>; compatibility: ZodOptional<ZodString>; description: ZodString; location: ZodOptional<ZodString>; name: ZodString; scope: ZodEnum<{ global: …; project: …; session: …; }>; source: ZodEnum<{ database: …; filesystem: …; }>; tags: ZodOptional<ZodArray<…>>; }, $strict>>; }, $strip>; }; }>, { adapterId: never; agentId: string; cwd: string; projectId: never; reason: "user" | "cwd_changed" | "session_end" | "replaced"; sessionId: string; skillName: string; skillNames: string[]; timestamp: number; trigger: "model" | "user" | "auto" | "reinjection"; turnNumber: never; }, { activate: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodOptional<ZodString>; projectId: ZodOptional<ZodString>; sessionId: ZodString; skillName: ZodString; trigger: ZodEnum<{ auto: "auto"; model: "model"; reinjection: "reinjection"; user: "user"; }>; turnNumber: ZodOptional<ZodNumber>; }, $strip>; response: ZodObject<{ alreadyActive: ZodDefault<ZodBoolean>; baseDir: ZodOptional<ZodString>; content: ZodString; metadata: ZodOptional<ZodObject<{ allowedTools: ZodOptional<ZodString>; compatibility: ZodOptional<ZodString>; license: ZodOptional<ZodString>; metadata: ZodOptional<ZodRecord<ZodString, ZodString>>; }, $strict>>; name: ZodString; resources: ZodOptional<ZodArray<ZodString>>; }, $strip>; }; activated: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodString; sessionId: ZodString; skillName: ZodString; timestamp: ZodNumber; trigger: ZodEnum<{ auto: "auto"; model: "model"; reinjection: "reinjection"; user: "user"; }>; turnNumber: ZodOptional<ZodNumber>; }, $strip>; catalog.built: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodString; sessionId: ZodString; skillNames: ZodArray<ZodString>; timestamp: ZodNumber; }, $strip>; deactivated: ZodObject<{ agentId: ZodString; reason: ZodEnum<{ cwd_changed: "cwd_changed"; replaced: "replaced"; session_end: "session_end"; user: "user"; }>; sessionId: ZodString; skillName: ZodString; timestamp: ZodNumber; }, $strip>; getActiveSkills: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodOptional<ZodString>; projectId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>; response: ZodObject<{ cwd: ZodOptional<ZodString>; skills: ZodArray<ZodObject<{ activatedAt: ZodNumber; activatedAtTurn: ZodOptional<ZodNumber>; baseDir: ZodOptional<ZodString>; content: ZodString; lastInjectedAtTurn: ZodOptional<ZodNumber>; metadata: ZodOptional<ZodObject<{ allowedTools: …; compatibility: …; license: …; metadata: …; }, $strict>>; name: ZodString; reinjection: ZodOptional<ZodObject<{ maxTurns: …; }, $strip>>; resources: ZodOptional<ZodArray<ZodString>>; trigger: ZodEnum<{ auto: "auto"; model: "model"; reinjection: "reinjection"; user: "user"; }>; }, $strip>>; }, $strip>; }; getCatalog: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodString; cwd: ZodOptional<ZodString>; projectId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>; response: ZodObject<{ cwd: ZodString; entries: ZodArray<ZodObject<{ activationMode: ZodDefault<ZodEnum<{ auto: …; manual: …; }>>; adapters: ZodOptional<ZodNullable<ZodArray<…>>>; baseDir: ZodOptional<ZodString>; category: ZodOptional<ZodString>; compatibility: ZodOptional<ZodString>; description: ZodString; location: ZodOptional<ZodString>; name: ZodString; scope: ZodEnum<{ global: "global"; project: "project"; session: "session"; }>; source: ZodEnum<{ database: "database"; filesystem: "filesystem"; }>; tags: ZodOptional<ZodArray<ZodString>>; }, $strict>>; }, $strip>; }; }>

Defined in: ../../../packages/contracts/src/skill/namespace.ts:5

Registered Makaio bus namespace for skill.* lifecycle RPCs and events.