Skip to content

formatHelp

formatHelp(registry, keyBindings?): SlashCommandNotice

Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:1485

Build the /help notice from a registry: one body line per command (/name — description), followed by the calling surface’s own key bindings when it supplies any (TUI-C63).

The bindings are a PARAMETER, never a constant in this module: /help is the reference for the surface the reader is looking at, and a key that surface does not have is worse than no entry at all. A surface that passes nothing gets exactly the command list, byte for byte.

SlashCommand[]

readonly KeyBindingGroup[] = []

SlashCommandNotice