UNPKG

@bitkyc08/opencodex

Version:

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

10 lines (9 loc) • 570 B
import { getWindowsTrayStatus, startWindowsTray, stopWindowsTray } from "../tray/windows"; import { guardedRun, UpdateMutationRefusedError, type UpdateMutationAuthorizer } from "./mutation-guard.mjs"; export { getWindowsTrayStatus }; export function guardedStartWindowsTray(authorize: UpdateMutationAuthorizer) { return guardedRun(authorize, "own-tray", startWindowsTray, []); } export function guardedStopWindowsTray(authorize: UpdateMutationAuthorizer) { return stopWindowsTray(() => { if (authorize("tray") !== true) throw new UpdateMutationRefusedError(); }); }