Expand description
Primitive live-runtime contracts and the Codex app-server reference adapter.
These APIs control harness-native sessions; they do not emulate terminal keystrokes and do not claim to attach to an arbitrary already-running TUI.
Structs§
- AcpRuntime
Backend - Generic ACP v1 client backend for any ACP agent command.
- Bearer
Token - Bearer credential whose
Debugoutput never contains the secret. - Claude
Code Runtime Backend - Claude Code live-runtime backend using bidirectional stream-json print mode with supercode registered as the CLI’s permission handler.
- Codex
Runtime Backend - Codex live-runtime backend using the official
codex app-serverJSONL protocol (initialize,thread/start|resume,turn/start|interrupt). - Harness
Event - Protocol-neutral envelope around a native live event.
- Hosted
Harness Connection - SDK connection to a hosted native runtime. Closing it shuts down the owner runtime; terminal HTTP attachments are non-owning frontend leases.
- Hosted
Harness Runtime - Shared owner of a single harness-native runtime.
- McpServer
Launch - One stdio MCP server the caller wants mounted into the session it is
starting. Uniform shape; each backend translates it into whatever its own
harness accepts (the ACP backend into
session/new’smcpServers). - Open
Code Runtime Backend - OpenCode live-runtime backend using its official HTTP API and SSE event
stream.
OpenCodeRuntimeBackend::connectcan join the server embedded in an already-running TUI when that TUI was launched with a known host/port. - PiRuntime
Backend - Pi live-runtime backend using
pi --mode rpcJSONL. - Resolved
Runtime Connection - Endpoint and credential resolved from a
RuntimeConnectLaunch. - Runtime
Attach Request - Request to resume or attach through a new adapter connection.
- Runtime
Capabilities - Mechanical facts an adapter can guarantee.
- Runtime
Connect Launch - Connect to an already-running harness endpoint instead of spawning one.
- Runtime
Handle - Identity returned after a live session is started or resumed.
- Runtime
Input - User input accepted by a live runtime.
- Runtime
Launch - Executable configuration used to launch one adapter endpoint.
- Runtime
Start Request - Request to create a fresh runtime session.
- Supercode
Http Runtime Backend - Adapter that joins one authenticated Supercode SDK runtime without taking ownership of the process or creating a second model loop.
Enums§
- Runtime
Endpoint - Observable endpoint backing a runtime connection.
Traits§
- Runtime
Backend - Factory for starting, resuming, and (where the native protocol permits it) joining one harness’s already-running runtime endpoint.
- Runtime
Connection - One connected harness-native runtime session.