Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions src/agent/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,17 @@ const COMMANDS: readonly CommandEntry[] = Object.freeze([
]);

/** Pre-computed completion strings for the readline completer. */
export const COMPLETION_STRINGS: readonly string[] = COMMANDS.map(
(c) => c.completion,
);
export const COMPLETION_STRINGS: readonly string[] = [
...COMMANDS.map((c) => c.completion),
// Aliases — /plugins is shorthand for /plugin
"/plugins list",
"/plugins info ",
"/plugins enable ",
"/plugins disable ",
"/plugins approve ",
"/plugins unapprove ",
"/plugins audit ",
];

/**
* Render the full help text from the COMMANDS registry.
Expand Down
2 changes: 2 additions & 0 deletions src/agent/slash-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,9 @@ export async function handleSlashCommand(
// ── Plugin Commands ──────────────────────────────────────
//
// All plugin operations live under /plugin <sub>.
// /plugins is an alias for /plugin.

case "/plugins":
case "/plugin": {
const subCmd = parts[1]?.toLowerCase();
// Plugin name sits at parts[2], args at parts[3]+.
Expand Down
Loading