import type { RootState } from "./state/protocol/state.js"; export declare const AGENT_SDK_SETUP_DOWNLOAD_REQUEST_KEY = "vscode.agentSdkSetup.downloadRequest"; /** * Ask an agent to look again at a setup the user completed outside the app * (`claude login`, an exported key) — the only completion signal there is. */ export declare const AGENT_SDK_SETUP_RELOAD_REQUEST_KEY = "vscode.agentSdkSetup.reloadRequest"; export declare function agentSdkSetupStatusKey(agent: string): string; /** * Whether the agent's SDK can be loaded without a network fetch. * * `downloadOnUse` means the SDK is absent, but this host remembers consent and * will fetch it only when an agent turn needs it. * * Deliberately the *only* thing on the wire: account state is derivable from the * model list, which already flows over AHP — `ready` plus zero models means "no * account" — and publishing it too would be two sources for one truth. */ export type AgentSdkDownloadStatus = "notDownloaded" | "downloadOnUse" | "downloading" | "ready"; /** * What an agent declares about its own setup. Capabilities, never UI: no * user-facing strings ride this channel, because localization belongs in the * workbench. */ export interface IAgentSdkSetupInfo { /** Agent/provider id, e.g. `'claude'`. */ readonly agent: string; readonly download: AgentSdkDownloadStatus; /** * Where the user goes to finish setup, for the agents whose setup happens * outside the app (`claude login`, an exported API key). */ readonly setupDocsUrl?: string; /** * Display name of the provider this agent can sign in to in-app, e.g. * `'ChatGPT'`; absent means it has no such flow. A proper noun the workbench * cannot invent, so it crosses the wire like `displayName` does and is * interpolated into a localized template rather than shown raw. */ readonly signInProviderName?: string; } /** A request the workbench addresses to one agent, made unique so a repeat press is not swallowed. */ export interface IAgentSdkSetupRequest { readonly agent: string; readonly request: string; } export declare function isAgentSdkSetupRequestFor(value: unknown, agent: string): value is IAgentSdkSetupRequest; /** * Every agent that has published a setup status, in root-state key order. Agents * that have not published are absent rather than guessed at — there is no honest * default for "we were never told". */ export declare function readAgentSdkSetupInfos(state: RootState | undefined): readonly IAgentSdkSetupInfo[];