UNPKG

@bitkyc08/opencodex

Version:

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

47 lines (42 loc) • 1.55 kB
import type { SupervisionEvidence } from "../service/desktop-supervision.mjs"; export declare function planUpdateRuntimeHandling(input: { ownership: { owner: string; installId: string; consentGeneration: number } | null; ownershipUnknown?: boolean; /** Fresh evidence or the operation's supervision latch verdict. */ supervision?: SupervisionEvidence | boolean; serviceInstalled: boolean; }): { mayReplacePackage: boolean; mayStopRuntime: boolean; mayRestoreService: boolean; notice: string | null; }; export declare function planStoppedRuntimeRecovery(input: { stopAttempted: boolean; ownership: { owner: string; installId: string; consentGeneration: number } | null; ownershipUnknown?: boolean; /** Fresh evidence or the operation's supervision latch verdict. */ supervision?: SupervisionEvidence | boolean; sameOwner: boolean; liveness: "live" | "dead" | "unknown"; serviceInstalled: boolean; launcherUsable: boolean; hadRuntimeState: boolean; }): { action: "none" | "manual" | "service" | "direct"; reason: string; }; type RuntimeTarget = { port: number; hostname: string }; type RuntimeLiveness = "live" | "dead" | "unknown"; export declare function inspectPackageRuntimeLiveness(input: { capturedTarget: RuntimeTarget; readCurrentTarget(): | { kind: "target"; target: RuntimeTarget } | { kind: "absent" } | { kind: "unknown" }; probe(target: RuntimeTarget): RuntimeLiveness; }): { current: RuntimeLiveness | "absent"; captured: RuntimeLiveness; overall: RuntimeLiveness; };