Skip to main content

Module jsonrpc

Module jsonrpc 

Source
Expand description

Shared JSON-RPC 2.0 types for the ACP server and runtime RPC layer.

Extracted from zeroclaw-channels::orchestrator::acp_server so both the ACP stdio channel and the Unix socket RPC transport can share the same wire types without cross-crate dependency.

Modules§

error_codes
field

Structs§

FetchedCatalog
One fetched catalogue’s bytes, returned over the wire so the client writes them into its own config dir (keeping the write in the caller’s permission scope).
FsEntry
A single directory entry returned by fs.list_dir.
FsListDirRequest
Request payload for fs.list_dir.
FsListDirResponse
Response for fs.list_dir.
FsStatError
Filesystem stat error payload (used inside JsonRpcError.data).
FsStatResult
Filesystem stat result (success case). Matches FsEntry shape with extra fields.
JsonRpcError
JsonRpcNotification
JsonRpcRequest
JsonRpcResponse
LocaleOption
One selectable locale from the build’s embedded locales.toml registry.
LocalesFetchRequest
Request payload for locales/fetch. catalog restricts which catalogues are downloaded; None/empty means all. The daemon validates locale against the embedded registry and catalog against the fixed catalog set.
LocalesFetchResponse
Response for locales/fetch.
LocalesListResponse
Response for locales/list — the in-memory locale registry.
RpcOutbound
Writer + outbound-call tracker shared between server loops and per-session bridges (e.g. AcpChannel, RpcDispatcher).

Constants§

ACP_PROTOCOL_VERSION
JSONRPC_VERSION
JSON-RPC protocol version string. Used in every frame’s jsonrpc field.
OUTBOUND_ID_PREFIX
Prefix for server-originated outbound request IDs, disjoint from any client-issued id space.