UNPKG

@bitkyc08/opencodex

Version:

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

22 lines (19 loc) • 927 B
/** Bottom-layer metadata contract: neither K nor the filesystem adapter owns intent. */ export type CatalogWriteIntent = "refresh" | "cache" | "pull" | "restore"; export type CatalogAuditConfigSource = "file" | "default" | "fallback" | "unreadable"; export type CatalogAuditRefusalReason = "foreign-owner" | "owner-unknown" | "unbacked-routed-removal" | "unbacked-routed-clear"; export interface CatalogWriteAuditDetails { readonly target: "catalog" | "cache"; readonly outcome: "written" | "refused"; readonly reason?: CatalogAuditRefusalReason; readonly routedBefore?: number | null; readonly routedAfter?: number | null; readonly configSource?: CatalogAuditConfigSource; } export interface CatalogWriteAuditEvent extends CatalogWriteAuditDetails { readonly intent: CatalogWriteIntent; readonly writer: string; /** Supplied by K, never discovered by the adapter. */ readonly opencodexHome: string; }