Files
oh-my-opencode/dist/tools/delegate-task/sync-session-poller.d.ts
T
2026-03-14 04:56:50 +00:00

13 lines
559 B
TypeScript

import type { ToolContextWithMetadata, OpencodeClient } from "./types";
import type { SessionMessage } from "./executor-types";
export declare function isSessionComplete(messages: SessionMessage[]): boolean;
export declare function pollSyncSession(ctx: ToolContextWithMetadata, client: OpencodeClient, input: {
sessionID: string;
agentToUse: string;
toastManager: {
removeTask: (id: string) => void;
} | null | undefined;
taskId: string | undefined;
anchorMessageCount?: number;
}, timeoutMs?: number): Promise<string | null>;