UNPKG

@sellable/install

Version:

One-command installer for Sellable MCP in Claude Code, Codex, and Hermes

23 lines (22 loc) • 802 B
import type { EndpointModelStep } from "./endpoint-model-selection.mjs"; export type WorkspaceConnection = Readonly<{ baseUrl: string; protocol: "runs-api" | "openai-chat" | "openai-responses"; structuredOutputs?: boolean; }>; /** Every request goes through `fetchImpl`; the key is held in memory only. */ export function createWorkspaceConnectionRunsClient(options: { connection: WorkspaceConnection; apiKey: string; fetchImpl: typeof fetch; modelSelection: EndpointModelStep; responseSchema?: unknown; }): any; export function probeRunsClient( client: any, selection: EndpointModelStep | null, options?: { signal?: AbortSignal; submitVerification?: boolean } ): Promise< | { state: "READY"; servedRuntime: { provider: string; model: string } } | { state: "UNAVAILABLE" } >;