dispatchSlashCommand
dispatchSlashCommand(
parsed,registry,ctx,options?):SlashCommandResult
Defined in: _worktrees/docs-release/gaunt-sloth/packages/agent/src/modules/slashCommands.ts:1150
Dispatch a parsed command against a registry. Unknown commands return a friendly hint rather than throwing, so the component can render it as a system line and never forward the text to the model.
EXT-12 — when options.duringRun is set (a turn is streaming), commands that are not marked
SlashCommand.availableDuringRun are refused with a friendly notice rather than run,
so mid-turn input can only reach the safe, non-mutating commands (/approvals, /verbose,
/debug, …). /help is always allowed.
Parameters
Section titled “Parameters”parsed
Section titled “parsed”registry
Section titled “registry”options?
Section titled “options?”duringRun?
Section titled “duringRun?”boolean