Alias smol to compact (#3111)
This commit is contained in:
1 parent
0e07b92be2
commit
fd68a81a26
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user