Expand description
Versioned public SDK contract shared by every Supercode surface.
This module names the operations, capabilities, events, and errors that transports project. CLI, JSON-RPC, HTTP, MCP, ACP, and language clients may add correlation ids or wire metadata, but they must not define a second execution contract or place those envelope fields in a session.
Structs§
- SdkAgent
- SDK-owned emulation runtime component.
- SdkCapabilities
- Capability inventory for the complete v1 SDK, independent of transport.
- SdkEvent
- Canonical event before a wire transport adds subscription metadata.
- SdkRequest
- One typed SDK request before a transport adds its envelope.
- SdkRuntime
Event - One runtime event paired with its durable SDK identity.
Enums§
- Runtime
Submit Error - Typed turn failure shared by local, HTTP, ACP, CLI, and language adapters.
- SdkError
- Typed failure returned by every SDK adapter and compatibility projection.
- SdkError
Code - Stable machine-readable SDK failure categories.
- SdkOperation
- One operation owned by the SDK facade.
Constants§
- SDK_
SCHEMA_ VERSION - Current language-neutral SDK schema.
Traits§
- SdkPrompt
Source - Renderable prompt source configured on an SDK emulation component.
- SdkRuntime
- Canonical live-runtime contract owned by the SDK.
- SdkService
- Stateful SDK facade consumed by public transport adapters.
Functions§
- create_
agent - Construct the emulation component inside the SDK ownership boundary.
- discover_
session_ page - Discover one persisted-session page with its opaque successor cursor.
- discover_
sessions - Discover persisted sessions through the canonical SDK catalog owner.
- load_
session - Load one durable locator through the canonical SDK catalog owner.
- load_
session_ path - Load an explicit transcript/store path through the SDK import boundary. An OpenCode selector is accepted only for its SQLite store.
- load_
session_ with_ fidelity load_sessionat a declared fidelity.- resume_
agent - Resume canonical history inside a fresh SDK-owned emulation component.
- submit_
agent - Submit one text turn through the SDK-owned emulation loop.
- submit_
agent_ with_ images - Submit one multimodal turn through the SDK-owned emulation loop.