/** * Display settings for the repair layer, persisted at * ~/.pi/agent/tool-repair/settings.json and edited via /repair-settings. */ /** * Grammar-leak recovery mode: * - "off": never touch assistant text. * - "strip": remove leaked tool-call grammar from text (model-gated), but never * promote it to an executable call. This is the default. * - "recover": additionally promote leaked calls to real toolCalls that execute * in the same turn. Opt-in, because it promotes model text into execution. */ export type GrammarRecoveryMode = "off" | "observe" | "strip" | "recover"; export type RepairPolicyProfile = "conservative" | "adaptive" | "recover"; export type UnknownGrammarTextPolicy = "preserve" | "strip"; export interface RepairDisplaySettings { /** Append a `🔨 ✓ input repaired (...)` line to repaired tool calls in the TUI. */ showIndicator: boolean; /** Also show the repair note text beneath the indicator. */ showNotes: boolean; /** Grammar-leak recovery mode. Default "strip" (still subject to the model gate). */ grammarRecovery: GrammarRecoveryMode; /** * Optional allowlist of tool names a leaked call may be promoted to. When * empty, the active tool set is used (a leaked call is only promoted when its * name is a currently-registered tool). */ grammarAllowedTools: string[]; /** Named pipeline safety profile. */ policyProfile: RepairPolicyProfile; /** Unknown grammar is never executable; this controls text preservation only. */ unknownGrammarText: UnknownGrammarTextPolicy; } export declare const DEFAULT_DISPLAY_SETTINGS: RepairDisplaySettings; export declare function displaySettingsPath(): string; export declare function loadDisplaySettings(path?: string): RepairDisplaySettings; export declare function saveDisplaySettings(settings: RepairDisplaySettings, path?: string): void; //# sourceMappingURL=settings.d.ts.map