/** * `/autonomy` and `/auto-learn` command bodies extracted from interactive-mode. * * These render the autonomy/auto-learn status blocks and dispatch the autonomy * sub-actions (mode presets, diagnostics, rollback, one-off fitness/research * lanes) through a narrow `AutonomyHost` seam. `applyAutonomyMode`, * `launchAutoLearn`, and the auto-learn getters stay host-side (shared with the * settings selector and AutoLearnController); interactive-mode keeps thin * delegating wrappers. */ import type { Container, TUI } from "@caupulican/pi-tui"; import type { AgentSession } from "../../core/agent-session.ts"; import type { AutoLearnSettings, AutonomyMode, SettingsManager, SettingsScope } from "../../core/settings-manager.ts"; import { type AutoLearnState } from "./auto-learn-controller.ts"; export interface AutonomyHost { readonly session: AgentSession; readonly settingsManager: SettingsManager; readonly chatContainer: Container; readonly ui: TUI; showStatus(message: string): void; applyAutonomyMode(mode: AutonomyMode, scope?: SettingsScope): void; launchAutoLearn(reason: string, force?: boolean, options?: { cooldownKind?: "auto" | "reflection"; promptKind?: "auto" | "reflection"; turnDigest?: string; bypassReflectionCooldown?: boolean; }): string; formatAutoLearnStatus(): string; getEffectiveAutoLearnSettings(): Required; getPrunedAutoLearnState(): AutoLearnState; getAutoLearnTenantKey(): string; getAutoLearnDataDir(): string; getAutoLearnTenantDataDir(): string; } export declare function formatAutonomyStatus(host: AutonomyHost): string; export declare function handleAutonomyCommand(host: AutonomyHost, text: string): void; export declare function handleAutoLearnCommand(host: AutonomyHost, text: string): void; //# sourceMappingURL=autonomy-commands.d.ts.map