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§
Structs§
- Fetched
Catalog - 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. - FsList
DirRequest - Request payload for
fs.list_dir. - FsList
DirResponse - Response for
fs.list_dir. - FsStat
Error - Filesystem stat error payload (used inside
JsonRpcError.data). - FsStat
Result - Filesystem stat result (success case). Matches FsEntry shape with extra fields.
- Json
RpcError - Json
RpcNotification - Json
RpcRequest - Json
RpcResponse - Locale
Option - One selectable locale from the build’s embedded
locales.tomlregistry. - Locales
Fetch Request - Request payload for
locales/fetch.catalogrestricts which catalogues are downloaded;None/empty means all. The daemon validateslocaleagainst the embedded registry andcatalogagainst the fixed catalog set. - Locales
Fetch Response - Response for
locales/fetch. - Locales
List Response - 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
jsonrpcfield. - OUTBOUND_
ID_ PREFIX - Prefix for server-originated outbound request IDs, disjoint from any client-issued id space.