contextRules
contextRules
Section titled “contextRules”| Field | Value |
|---|---|
| Prefix | contextRules |
| Namespace constant | ContextRulesServiceNamespace |
| Subjects constant | ContextRulesServiceSubjects |
| Kind | bus |
| Schema record | ContextRulesServiceSchemas |
| Tier | framework |
| Package | @makaio/services-core |
| Defined in | packages/services/core/src/context-rules/service-namespace.ts |
Subjects
Section titled “Subjects”| Key | Wire | Type | Schema |
|---|---|---|---|
changed | contextRules.changed | event | schemas.ts |
resolve | contextRules.resolve | rpc | — |
Subject Details
Section titled “Subject Details”contextRules.changed (event)
Section titled “contextRules.changed (event)”Lifecycle event emitted whenever persisted context rules change.
Subject: contextRules.changed
Type: Event
| Field | Type | Required |
|---|---|---|
changeType | "created" | "updated" | "deleted" | yes |
current | { scope: "session" | "global" | "project"; projectId: string | null; sessionId: string | null; } | null | yes |
previous | { scope: "session" | "global" | "project"; projectId: string | null; sessionId: string | null; } | null | yes |
ruleId | string | yes |
timestamp | number | yes |
contextRules.resolve (rpc)
Section titled “contextRules.resolve (rpc)”Resolve matching context rules for the current runtime snapshot.
Subject: contextRules.resolve
Type: Request (RPC)
Request:
| Field | Type | Required |
|---|---|---|
adapterId | string | undefined | no |
agentId | string | undefined | no |
cwd | string | undefined | no |
sessionId | string | undefined | no |
Response:
| Field | Type | Required |
|---|---|---|
files | Record<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 |
turnContext | Record<string, { id: string; name: string; priority: number; action: ContextRuleAction; renderedContent: string; }[]> | yes |
Auto-generated by yarn docs:bus. Do not edit manually.