13 lines
559 B
TypeScript
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>;
|