/** * Problem: * Upstream `agy_acp_server` (1.3.0) only offers non-Gemini models (Claude, GPT-OSS) when the * `clientInfo.name` sent in ACP `initialize` identifies Zed, Xcode or JetBrains. Every other * client (Paseo, Neovim, custom ACP clients) sees Gemini models only, and selecting a non-Gemini * model id fails with `-32602 Model '' is not available for the current authentication method`. * The gate is a deliberate client-name check upstream, not a quota or entitlement check. * * Solution: * Opt-in only. When `REFINED_AGY_CLIENT_NAME` is set, rewrites `clientInfo.name` in the outbound * `initialize` request (including the one re-sent after a process recycle) to that value, keeping * the rest of `clientInfo`. When the variable is unset or empty, `initialize` passes through * unchanged. */ import { type AcpFix, type AcpStreamMessage } from "../../core/types.js"; export declare const CLIENT_NAME_ENV = "REFINED_AGY_CLIENT_NAME"; /** Returns the configured client name override, or undefined when the override is disabled. */ export declare function resolveClientNameOverride(env?: NodeJS.ProcessEnv): string | undefined; /** * Returns a copy of an `initialize` request with `clientInfo.name` replaced by `name`. * Other messages, and `initialize` requests that already carry `name`, are returned as is. */ export declare function overrideClientName(msg: AcpStreamMessage, name: string): AcpStreamMessage; export declare const gatedThirdPartyModelsFix: AcpFix; //# sourceMappingURL=index.d.ts.map