| 17 | export type KnowledgeCategory = 'rules' | 'experiences'; |
| 18 | |
| 19 | export interface KnowledgeItem { |
| 20 | title: string; |
| 21 | tags: string[]; |
| 22 | path: string; |
| 23 | source: string; |
| 24 | created: string; |
| 25 | /** Rules only: short one-line description (max 100 chars). */ |
| 26 | description?: string; |
| 27 | /** Rules only: if true the rule is always injected into the agent prompt. */ |
| 28 | alwaysApply?: boolean; |
| 29 | /** |
| 30 | * Experiences only: workspace id this experience was distilled from. |
| 31 | * Set by the session-scoped distillation flow (design-docs/24); used |
| 32 | * by the KnowledgePanel to find the existing session experience. |
| 33 | */ |
| 34 | sourceWorkspaceId?: string; |
| 35 | /** Experiences only: workspace display name at distillation time. */ |
| 36 | sourceWorkspaceName?: string; |
| 37 | } |
| 38 | |
| 39 | export interface KnowledgeLimits { |
| 40 | rule_description_max: number; |
nothing calls this directly
no outgoing calls
no test coverage detected