diff --git a/package-lock.json b/package-lock.json index 94c93ead0..ffc1324a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/cli", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/cli", - "version": "1.3.1", + "version": "1.3.2", "license": "Apache-2.0", "dependencies": { "@continuedev/config-yaml": "^1.0.96", diff --git a/src/slashCommands.ts b/src/slashCommands.ts index f29de50ea..5e45d342e 100644 --- a/src/slashCommands.ts +++ b/src/slashCommands.ts @@ -33,6 +33,8 @@ export async function handleSlashCommands( ) ?? []), ].join("\n"); return { output: helpMessage }; + case "clear": + return { clear: true, output: "Chat history cleared" }; case "exit": return { exit: true, output: "Goodbye!" }; case "login": @@ -83,4 +85,4 @@ export async function handleSlashCommands( } } return null; -} +} \ No newline at end of file diff --git a/src/ui/UserInput.tsx b/src/ui/UserInput.tsx index 0283f2ec2..8921b9aa6 100644 --- a/src/ui/UserInput.tsx +++ b/src/ui/UserInput.tsx @@ -51,6 +51,7 @@ const UserInput: React.FC = ({ const getSlashCommands = () => { const systemCommands = [ { name: "help", description: "Show help message" }, + { name: "clear", description: "Clear the chat history" }, { name: "exit", description: "Exit the chat" }, { name: "login", description: "Authenticate with your account" }, { name: "logout", description: "Sign out of your current session" },