UNPKG

@bitkyc08/opencodex

Version:

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

22 lines (18 loc) • 759 B
import type { RuntimePortState } from "../config/process-state"; import type { LiveProxy } from "../server/proxy-liveness"; import type { UpdateRestartHome } from "./update-restart-home"; export interface UpdateRestartCandidate { home: UpdateRestartHome; target: LiveProxy & { pid: number }; runtime: RuntimePortState & { attestationSecret: string }; cliVersion: string; } /** Private in-process evidence; diagnostics and JSON never expose the proof key. */ export class UpdateRestartRequired extends Error { #candidate: UpdateRestartCandidate; constructor(candidate: UpdateRestartCandidate) { super("restart_version_skew_cli_newer"); this.#candidate = candidate; } candidate(): UpdateRestartCandidate { return this.#candidate; } }