Alias smol to compact (#3111)

This commit is contained in:
Dennis Bartlett authored and GitHub committed 2025-04-24 22:02:36 -07:00
1 parent 0e07b92be2
commit fd68a81a26
1 file changed
+2 -1
+2 -1
View File
@@ -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<string, string> = {
newtask: newTaskToolResponse(),
smol: condenseToolResponse(),
compact: condenseToolResponse(),
}
// this currently allows matching prepended whitespace prior to /slash-command