UNPKG

@bitkyc08/opencodex

Version:

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM with Codex CLI/App/SDK and Claude Code

17 lines (13 loc) • 608 B
import { markProxyError } from "../lib/client-error-body"; export class AnthropicRequestError extends Error {} /** A date-shaped Desktop ID can also name a genuine native model absent from discovery. */ export class DesktopModelMappingUnavailableError extends AnthropicRequestError { constructor() { super("Claude Desktop model mapping is unavailable; refresh model discovery or reapply the connected hub profile"); markProxyError(this); } } export type Rec = Record<string, unknown>; export function isRec(v: unknown): v is Rec { return !!v && typeof v === "object" && !Array.isArray(v); }