/** * Watcher Manager * * Processes kernel operations asynchronously, evaluates simple heuristics, * and launches background agent tasks to generate Proactive Suggestions. */ import type { TrellisKernel } from '../../core/kernel/trellis-kernel.js'; import type { AgentHarness } from '../../core/agents/harness.js'; import type { KernelOp } from '../../core/persist/backend.js'; import type { PluginContext } from '../../core/plugins/types.js'; export interface WatcherRule { id: string; description: string; /** Evaluate if the rule matches this operation */ condition: (op: KernelOp, kernel: TrellisKernel) => boolean; /** Agent ID to invoke if condition matches */ agentId: string; /** Generate the prompt for the agent based on the operation */ promptFactory: (op: KernelOp) => string; } export declare class WatcherManager { private kernel; private harness; private ctx; private rules; private suggestionCounter; constructor(kernel: TrellisKernel, harness: AgentHarness); setContext(ctx: PluginContext | null): void; addRule(rule: WatcherRule): void; /** * Called by the event handler on `op:applied`. */ processOperation(data: unknown): Promise; private _evaluateRule; } //# sourceMappingURL=watcher-manager.d.ts.map