Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

791 B
Raw Blame
/**
 * Stub for `src/lib/zed-oauth/keychain-reader.ts` activated by
 * `OMNIROUTE_BUILD_PROFILE=minimal`. The keychain-read code path is removed
 * from the built bundle. See SECURITY.md and
 * docs/security/SOCKET_DEV_FINDINGS.md.
 */
import { featureDisabledError } from "@/lib/build-profile/featureDisabled";

const FEATURE = "zed-keychain-import";

export interface ZedCredential {
  provider: string;
  service: string;
  account: string;
  token: string;
}

export async function discoverZedCredentials(): Promise<ZedCredential[]> {
  throw featureDisabledError(FEATURE);
}

export async function getZedCredential(_provider: string): Promise<ZedCredential | null> {
  throw featureDisabledError(FEATURE);
}

export async function isZedInstalled(): Promise<boolean> {
  return false;
}