slashMenuQuery
slashMenuQuery(
input):string|null
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:388
TUI-C10 — the discovery-menu trigger test. The Ink <PromptInput> shows the slash-command menu
while the user is typing a bare command: the raw input is a menu query iff its first character is
/ and it contains no whitespace yet (once a space is typed the user is entering args, so the
menu closes and normal dispatch takes over). Returns the lower-cased query AFTER the slash (so a
bare / yields '' = “show everything”), or null when the input is not a menu trigger.
Kept pure and next to the registry (like parseSlashCommand) so the menu’s show/hide and filter logic is unit-testable without React.
GS2-8 — mirrors parseSlashCommand’s /-vs-path heuristic: input with a later /
(a pasted path like /usr/bin) is not a command, so it never triggers the menu either.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | null