@codex-app-sdk/core
Renderer-safe Codex contracts shared by backend, Electron, web, and Vue. This package has no Node, Electron, Vue, or generated app-server dependencies.
npm install @codex-app-sdk/core
Entry points
@codex-app-sdk/corere-exports the public contracts.@codex-app-sdk/core/surfacecontains snapshots, messages, actions, semantic events, and trusted/renderer attachment option types.@codex-app-sdk/core/nativedescribes optional attachment, clipboard, external-link, preview, and transcription capabilities.@codex-app-sdk/core/eventsexportsTypedEventBus.@codex-app-sdk/core/surface-bridgeis the validated operation dispatcher used by transport adapters.
Renderer attachments contain opaque reference values, never filesystem
paths. Host adapters resolve those references at a trusted boundary.
Semantic surface events include provider-neutral subagent.* activity for
hosts that want to build their own agent tree or activity pane. Core defines
the renderer-safe contract; it deliberately does not prescribe sub-agent UI.
Most applications consume these contracts indirectly through
@codex-app-sdk/electron, @codex-app-sdk/web, or
@codex-app-sdk/vue. See the architecture
guide and surface
API.