chore: include pre-built dist for github install
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
||||
import { type PromptRetryOptions } from "./prompt-timeout-context";
|
||||
type Client = ReturnType<typeof createOpencodeClient>;
|
||||
export interface ModelSuggestionInfo {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
suggestion: string;
|
||||
}
|
||||
export declare function parseModelSuggestion(error: unknown): ModelSuggestionInfo | null;
|
||||
interface PromptBody {
|
||||
model?: {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
[key: string]: unknown;
|
||||
}
|
||||
interface PromptArgs {
|
||||
path: {
|
||||
id: string;
|
||||
};
|
||||
body: PromptBody;
|
||||
signal?: AbortSignal;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
export declare function promptWithModelSuggestionRetry(client: Client, args: PromptArgs, options?: PromptRetryOptions): Promise<void>;
|
||||
/**
|
||||
* Synchronous variant of promptWithModelSuggestionRetry.
|
||||
*
|
||||
* Uses `session.prompt` (blocking HTTP call that waits for the LLM response)
|
||||
* instead of `promptAsync` (fire-and-forget HTTP 204).
|
||||
*
|
||||
* Required by callers that need the response to be available immediately after
|
||||
* the call returns — e.g. look_at, which reads session messages right away.
|
||||
*/
|
||||
export declare function promptSyncWithModelSuggestionRetry(client: Client, args: PromptArgs, options?: PromptRetryOptions): Promise<void>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user