import { isAbsolute } from "node:path"; import { codexExecInvocation } from "../codex/exec-invocation"; import { resolveAndPersistCodexRuntime, type ResolveCodexRuntimeDeps } from "../codex/runtime"; import type { ResolveDeps, SpawnInvocation } from "../lib/win-exec"; import { apiError, apiJson, proxyUnreachable, resolveBaseUrl, type AccountDeps, type NativeMainLoginChild, type StageLeaseClock, } from "./account-api"; const USAGE = `Usage: ocx account main doctor [--json] ocx account main list [--json] ocx account main register