@bitkyc08/opencodex
Version:
Universal provider proxy for OpenAI Codex & Claude Code — use any LLM with Codex CLI/App/SDK and Claude Code
15 lines (13 loc) • 502 B
text/typescript
import { resolveWindowsNativePrincipal } from "./windows-native-principal";
declare const self: Worker;
self.addEventListener("message", () => {
try {
const identity = resolveWindowsNativePrincipal();
self.postMessage(identity ? { kind: "identity", ...identity } : { kind: "unavailable" });
} catch {
self.postMessage({ kind: "failure" });
} finally {
// Native token/string/DLL finally blocks completed before the result was posted.
process.exit(0);
}
}, { once: true });