Documentation
¶
Overview ¶
Package slashcmd is the single source of truth for the runtime chat's slash-command set. Both the terminal TUI (internal/interface/cli) and the Desktop app (internal/interface/desktop, over a Wails binding) read this list, so the two surfaces no longer maintain parallel command tables that drift apart. It describes the commands; each surface still owns how it dispatches and renders them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// Name is the command without its leading slash, e.g. "info".
Name string `json:"name"`
// Description is the one-line summary shown in completion and the palette.
Description string `json:"description"`
// Surfaces is the set of clients that offer this command.
Surfaces Surface `json:"-"`
// RequiresSession marks a command that acts on a saved session, so a surface
// disables it until the current chat has one (rewind, fork, compact, info).
RequiresSession bool `json:"requires_session"`
}
Command describes one slash command. It carries only what both surfaces need to present and gate it; the handler that runs it lives in each surface.
Click to show internal directories.
Click to hide internal directories.