From fd68a81a263ea433b57732c68e003cf95f7ebc8b Mon Sep 17 00:00:00 2001 From: Dennis Bartlett Date: Thu, 24 Apr 2025 22:02:36 -0700 Subject: [PATCH] Alias smol to compact (#3111) --- src/core/slash-commands/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/slash-commands/index.ts b/src/core/slash-commands/index.ts index 2005bff7..4ebe86a8 100644 --- a/src/core/slash-commands/index.ts +++ b/src/core/slash-commands/index.ts @@ -5,11 +5,12 @@ import { newTaskToolResponse, condenseToolResponse } from "../prompts/commands" * This is called after parseMentions() to process any slash commands in the user's message */ export function parseSlashCommands(text: string): string { - const SUPPORTED_COMMANDS = ["newtask", "smol"] + const SUPPORTED_COMMANDS = ["newtask", "smol", "compact"] const commandReplacements: Record = { newtask: newTaskToolResponse(), smol: condenseToolResponse(), + compact: condenseToolResponse(), } // this currently allows matching prepended whitespace prior to /slash-command