Skip to content

Variable: ContextRulesServiceNamespace

Makaio Framework


Makaio Framework / services-core/context-rules / ContextRulesServiceNamespace

const ContextRulesServiceNamespace: BusNamespace<"contextRules", SubjectRecordFromSchemaRecord<{ changed: ZodObject<{ changeType: ZodEnum<{ created: "created"; deleted: "deleted"; updated: "updated"; }>; current: ZodNullable<ZodObject<{ projectId: ZodNullable<ZodString>; scope: ZodEnum<{ global: "global"; project: "project"; session: "session"; }>; sessionId: ZodNullable<ZodString>; }, $strict>>; previous: ZodNullable<ZodObject<{ projectId: ZodNullable<ZodString>; scope: ZodEnum<{ global: "global"; project: "project"; session: "session"; }>; sessionId: ZodNullable<ZodString>; }, $strict>>; ruleId: ZodString; timestamp: ZodNumber; }, $strict>; resolve: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodOptional<ZodString>; cwd: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; }, $strict>; response: ZodObject<{ files: ZodObject<{[key: string]: ZodOptional<ZodArray<ZodObject<…, …>>>; }, $strict>; snapshot: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodOptional<ZodString>; cwd: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; }, $catchall<ZodUnknown>>; turnContext: ZodRecord<ZodString, ZodArray<ZodObject<{ action: ZodType<…, …, …>; id: ZodString; name: ZodString; priority: ZodNumber; renderedContent: ZodString; }, $strict>>>; }, $strict>; }; }>, { adapterId: never; agentId: never; changeType: "deleted" | "created" | "updated"; current: { projectId: string | null; scope: "session" | "global" | "project"; sessionId: string | null; } | null; cwd: never; previous: { projectId: string | null; scope: "session" | "global" | "project"; sessionId: string | null; } | null; ruleId: string; sessionId: never; timestamp: number; }, { changed: ZodObject<{ changeType: ZodEnum<{ created: "created"; deleted: "deleted"; updated: "updated"; }>; current: ZodNullable<ZodObject<{ projectId: ZodNullable<ZodString>; scope: ZodEnum<{ global: "global"; project: "project"; session: "session"; }>; sessionId: ZodNullable<ZodString>; }, $strict>>; previous: ZodNullable<ZodObject<{ projectId: ZodNullable<ZodString>; scope: ZodEnum<{ global: "global"; project: "project"; session: "session"; }>; sessionId: ZodNullable<ZodString>; }, $strict>>; ruleId: ZodString; timestamp: ZodNumber; }, $strict>; resolve: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodOptional<ZodString>; cwd: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; }, $strict>; response: ZodObject<{ files: ZodObject<{[key: string]: ZodOptional<ZodArray<ZodObject<{ action: …; id: …; name: …; priority: …; renderedContent: …; }, $strict>>>; }, $strict>; snapshot: ZodObject<{ adapterId: ZodOptional<ZodString>; agentId: ZodOptional<ZodString>; cwd: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; }, $catchall<ZodUnknown>>; turnContext: ZodRecord<ZodString, ZodArray<ZodObject<{ action: ZodType<ContextRuleAction, ContextRuleAction, $ZodTypeInternals<…, …>>; id: ZodString; name: ZodString; priority: ZodNumber; renderedContent: ZodString; }, $strict>>>; }, $strict>; }; }>

Defined in: ../../../packages/services/core/src/context-rules/service-namespace.ts:27

Registered service namespace for context-rule resolution and invalidation.