feat(commands): add /usage alias for /status

This commit is contained in:
LK
2026-01-08 13:41:32 +01:00
committed by Peter Steinberger
parent d099dabf37
commit 08caf7b9fc
5 changed files with 8 additions and 23 deletions

View File

@@ -44,6 +44,8 @@ describe("control command parsing", () => {
expect(hasControlCommand("help")).toBe(false);
expect(hasControlCommand("/status")).toBe(true);
expect(hasControlCommand("/status:")).toBe(true);
expect(hasControlCommand("/usage")).toBe(true);
expect(hasControlCommand("/usage:")).toBe(true);
expect(hasControlCommand("status")).toBe(false);
});

View File

@@ -24,6 +24,8 @@ describe("commands registry", () => {
expect(detection.exact.has("/help")).toBe(true);
expect(detection.regex.test("/status")).toBe(true);
expect(detection.regex.test("/status:")).toBe(true);
expect(detection.regex.test("/usage")).toBe(true);
expect(detection.regex.test("/usage:")).toBe(true);
expect(detection.regex.test("/stop")).toBe(true);
expect(detection.regex.test("/send:")).toBe(true);
expect(detection.regex.test("/debug set foo=bar")).toBe(true);

View File

@@ -25,7 +25,7 @@ const CHAT_COMMANDS: ChatCommandDefinition[] = [
key: "status",
nativeName: "status",
description: "Show current status.",
textAliases: ["/status"],
textAliases: ["/status", "/usage"],
},
{
key: "debug",