Files
oh-my-opencode/dist/features/background-agent/session-idle-event-handler.d.ts
T
2026-03-14 04:56:50 +00:00

11 lines
565 B
TypeScript

import type { BackgroundTask } from "./types";
export declare function handleSessionIdleBackgroundEvent(args: {
properties: Record<string, unknown>;
findBySession: (sessionID: string) => BackgroundTask | undefined;
idleDeferralTimers: Map<string, ReturnType<typeof setTimeout>>;
validateSessionHasOutput: (sessionID: string) => Promise<boolean>;
checkSessionTodos: (sessionID: string) => Promise<boolean>;
tryCompleteTask: (task: BackgroundTask, source: string) => Promise<boolean>;
emitIdleEvent: (sessionID: string) => void;
}): void;