Variable: SkillSchemas
Makaio Framework / contracts/skill / SkillSchemas
Variable: SkillSchemas
Section titled “Variable: SkillSchemas”
constSkillSchemas:object
Defined in: ../../../packages/contracts/src/skill/schemas.ts:147
Public skill lifecycle RPC and event schemas.
Type Declaration
Section titled “Type Declaration”activate
Section titled “activate”activate:
object
activate.request
Section titled “activate.request”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>
activate.response
Section titled “activate.response”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
Section titled “activated”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
Section titled “catalog.built”catalog.built:
ZodObject<{adapterId:ZodOptional<ZodString>;agentId:ZodString;cwd:ZodString;sessionId:ZodString;skillNames:ZodArray<ZodString>;timestamp:ZodNumber; },$strip>
deactivated
Section titled “deactivated”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
Section titled “getActiveSkills”getActiveSkills:
object
getActiveSkills.request
Section titled “getActiveSkills.request”request:
ZodObject<{adapterId:ZodOptional<ZodString>;agentId:ZodString;cwd:ZodOptional<ZodString>;projectId:ZodOptional<ZodString>;sessionId:ZodString; },$strip>
getActiveSkills.response
Section titled “getActiveSkills.response”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:ZodOptional<…>;compatibility:ZodOptional<…>;license:ZodOptional<…>;metadata:ZodOptional<…>; },$strict>>;name:ZodString;reinjection:ZodOptional<ZodObject<{maxTurns:ZodOptional<…>; },$strip>>;resources:ZodOptional<ZodArray<ZodString>>;trigger:ZodEnum<{auto:"auto";model:"model";reinjection:"reinjection";user:"user"; }>; },$strip>>; },$strip>
getCatalog
Section titled “getCatalog”getCatalog:
object
getCatalog.request
Section titled “getCatalog.request”request:
ZodObject<{adapterId:ZodOptional<ZodString>;agentId:ZodString;cwd:ZodOptional<ZodString>;projectId:ZodOptional<ZodString>;sessionId:ZodString; },$strip>
getCatalog.response
Section titled “getCatalog.response”response:
ZodObject<{cwd:ZodString;entries:ZodArray<ZodObject<{activationMode:ZodDefault<ZodEnum<{auto:"auto";manual:"manual"; }>>;adapters:ZodOptional<ZodNullable<ZodArray<ZodString>>>;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>