Skip to main content

Module commands

Module commands 

Source
Expand description

Plugin interactive command (/command) output event types and parser.

Phase B Phase 2 contract — see docs/plans/2026-05-03-extension-contracts-for-rich-plugins.md.

Wire shape (command.output JSON-RPC notification params):

{
  "request_id": "abc-123",
  "event": { "kind": "text"|"system"|"error"|"table"|"done", ... }
}

Synaps subscribes to command.output notifications matching the caller-issued request_id after invoking command.invoke.

Structs§

CommandOutputFrame
Parsed command.output notification frame.

Enums§

CommandOutputEvent
A single structured event emitted by an interactive plugin command.

Functions§

parse_command_output
Parse a command.output JSON-RPC notification’s params.
parse_command_output_event
Parse just the event payload ({"kind": "...", ...}).