Skip to main content

Module message

Module message 

Source
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§

CommandDef
Description of a command as advertised across a channel.
CommandSchema
A request/response JSON-Schema pair attached to a CommandDef.
ExecuteError
Body of an execute-command error response.
False
Zero-sized marker that (de)serializes as the JSON literal false.
MessageMeta
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§

ExecuteResult
Body of an execute.command.response message.
Message
Discriminated union of every message type carried on a channel.
RegisterResult
Body of a register.command.response message.

Type Aliases§

MessageId
A unique message identifier.