/** * Goal runtime — bridges the UpdateGoal capability (constructed at module * load, before any session exists) to the session's model client and * capability set, and processes completion claims through the verifier * panel. The loop installs the dependencies at session start. */ import type { ModelClient } from '../agent/llm.js'; import type { CapabilityHandler, CapabilityResult, ExecutionScope } from '../agent/types.js'; export interface GoalEngineDeps { client: ModelClient; getModel: () => string; capabilities: CapabilityHandler[]; } export declare function setGoalEngineDeps(d: GoalEngineDeps | null): void; export interface GoalClaimInput { completed?: boolean; blocked_reason?: string; message?: string; } export declare function processGoalClaim(input: GoalClaimInput, scope: ExecutionScope): Promise;