/** * Todo Continuation Enforcer Hook * * Automatically reminds the agent to continue working when: * - Session goes idle (session.idle event) * - There are incomplete todos (pending or in_progress) * * Features: * - Skips child sessions (background tasks) * - Cooldown to prevent spam (10 seconds between reminders) * - Shows toast notification when enforcing * - Mode-aware: preserves Plan/Build agent context */ import type { PluginInput } from "@opencode-ai/plugin"; import type { Event } from "@opencode-ai/sdk"; interface SessionState { lastEnforcedAt: number; enforceCount: number; } export declare function createTodoEnforcerHook(ctx: PluginInput): { event: ({ event }: { event: Event; }) => Promise; }; export type { SessionState };