UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

25 lines • 1.23 kB
import type { AssistantImages } from "@earendil-works/pi-ai/compat"; import type { ImageGenCandidate } from "./auth.ts"; export interface SkippedImageProvider { providerId: string; baseUrl: string; httpStatus: number; } export type ImageRequestOutcome = { kind: "images"; auth: ImageGenCandidate; images: AssistantImages; skipped: readonly SkippedImageProvider[]; } | { kind: "exhausted"; skipped: readonly SkippedImageProvider[]; }; /** * Sends the request to `first`, then moves to the next candidate only while the current one is a * scanned gateway whose server reports no images endpoint (HTTP 404/405, read from the structured * provider diagnostic, never from message text). Any other result, success or failure, is final. */ export declare function requestImagesAcrossCandidates(first: ImageGenCandidate, rest: AsyncIterator<ImageGenCandidate>, request: (auth: ImageGenCandidate) => Promise<AssistantImages>): Promise<ImageRequestOutcome>; export declare function exhaustedProvidersMessage(skipped: readonly SkippedImageProvider[]): string; export declare function skippedProvidersNote(skipped: readonly SkippedImageProvider[]): string | undefined; //# sourceMappingURL=request.d.ts.map