UNPKG

@bitkyc08/opencodex

Version:

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

15 lines (11 loc) • 436 B
/** Shared snapshot wire primitives; no retention state or policy. */ export function isPlainObject(value: unknown): value is Record<string, unknown> { return !!value && typeof value === "object" && !Array.isArray(value); } export type RetainedOutputItem = { item: Record<string, unknown>; sourceBytes: number; }; export function jsonBlock(event: Record<string, unknown>): string { return `data: ${JSON.stringify(event)}`; }