Expand description
Wire protocol for the command registry.
This module defines the seven Message variants exchanged between
registries. The JSON representation is byte-identical to the TypeScript
implementation’s CommandMessage union (see
packages/cmd-ipc/src/registry/command-message-schemas.ts) so that a
Rust process and a Node.js process can talk to each other over any
channel that carries JSON.
Structs§
- Command
Def - Description of a command as advertised across a channel.
- Command
Schema - A request/response JSON-Schema pair attached to a
CommandDef. - Execute
Error - Body of an execute-command error response.
- False
- Zero-sized marker that (de)serializes as the JSON literal
false. - Message
Meta - Transport-level envelope for cross-cutting context that travels alongside (not inside) a message’s business payload.
- True
- Zero-sized marker that (de)serializes as the JSON literal
true.
Enums§
- Execute
Result - Body of an
execute.command.responsemessage. - Message
- Discriminated union of every message type carried on a channel.
- Register
Result - Body of a
register.command.responsemessage.
Type Aliases§
- Message
Id - A unique message identifier.