Skip to main content

Module commands

Module commands 

Source

Structs§

Command
CommandRegistry
CompletionCandidate
A completion candidate for slash-command Tab completion, merging built-in and user-defined custom commands.

Functions§

cmd_desc_i18n
Look up the i18n translation for a built-in command description. Returns None for unknown command names (callers fall back to the static desc field).
complete_commands
Merge built-in and custom command completions for a given prefix. Results are sorted with built-ins first, then custom commands, each group sorted by name. Custom commands whose names collide with a built-in are suppressed.
parse_slash_line
Parse "/cmd args..." into (cmd, args) when the leading / is a command invocation. Returns None when the / is actually part of a filesystem path, URL, or any other text the user wants sent to the agent verbatim.