Skip to content

contextRules

FieldValue
PrefixcontextRules
Namespace constantContextRulesServiceNamespace
Subjects constantContextRulesServiceSubjects
Kindbus
Schema recordContextRulesServiceSchemas
Tierframework
Package@makaio/services-core
Defined inpackages/services/core/src/context-rules/service-namespace.ts
KeyWireTypeSchema
changedcontextRules.changedeventschemas.ts
resolvecontextRules.resolverpc

Lifecycle event emitted whenever persisted context rules change.

Subject: contextRules.changed Type: Event

FieldTypeRequired
changeType"created" | "updated" | "deleted"yes
current{ scope: "session" | "global" | "project"; projectId: string | null; sessionId: string | null; } | nullyes
previous{ scope: "session" | "global" | "project"; projectId: string | null; sessionId: string | null; } | nullyes
ruleIdstringyes
timestampnumberyes

Resolve matching context rules for the current runtime snapshot.

Subject: contextRules.resolve Type: Request (RPC)

Request:

FieldTypeRequired
adapterIdstring | undefinedno
agentIdstring | undefinedno
cwdstring | undefinedno
sessionIdstring | undefinedno

Response:

FieldTypeRequired
filesRecord<string, { id: string; name: string; priority: number; action: ContextRuleAction; renderedContent: string; }[] | undefined>yes
snapshot{ [x: string]: unknown; cwd?: string | undefined; adapterId?: string | undefined; sessionId?: string | undefined; agentId?: string | undefined; }yes
turnContextRecord<string, { id: string; name: string; priority: number; action: ContextRuleAction; renderedContent: string; }[]>yes

Auto-generated by yarn docs:bus. Do not edit manually.