Expand description
Available-commands catalogue parser, read by the workspace’s session task.
Re-exports§
use serde_json::Value;🔒use forge_primitives::AvailableCommand;🔒
Functions§
- map_
available_ commands_ from_ json - Parse a
slash_commands/commandsarray intoAvailableCommands. Entries are either bare name strings (thesystem/initslash_commandsshape) or{name, description, argumentHint}objects (thecommands_changedshape); both flow through here so init and the live refresh share one boundary. Non-string / nameless entries are skipped; an emptyargumentHintcollapses toNone. - slash_
name - The name a slash command is typed and drawn with. The wire carries it
without the leading slash - the committed baseline’s
slash_commandsis["doctor", "color", "reload-plugins"]- so every surface adds one before it renders.