Skip to main content

Module commands

Module commands 

Source
Expand description

Available-commands catalogue parser, read by the workspace’s session task.

Functions§

map_available_commands_from_json
Parse a slash_commands / commands array into AvailableCommands. Entries are either bare name strings (the system/init slash_commands shape) or {name, description, argumentHint} objects (the commands_changed shape); both flow through here so init and the live refresh share one boundary. Non-string / nameless entries are skipped; an empty argumentHint collapses to None.
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_commands is ["doctor", "color", "reload-plugins"] - so every surface adds one before it renders.