mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Add /help
This commit is contained in:
@@ -41,6 +41,21 @@ export const useSlashCommandProcessor = (
|
|||||||
setHistory((_) => []);
|
setHistory((_) => []);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'help',
|
||||||
|
description: '/help for help on gemini-code',
|
||||||
|
action: (_value: PartListUnion) => {
|
||||||
|
const helpText =
|
||||||
|
'I am an interactive CLI tool assistant designed to ' +
|
||||||
|
'help with software engineering tasks. I can use tools to read ' +
|
||||||
|
'and write files, search code, execute bash commands, and more ' +
|
||||||
|
'to assist with development workflows. I will explain commands ' +
|
||||||
|
'and ask for permission before running them and will not ' +
|
||||||
|
'commit changes unless explicitly instructed.';
|
||||||
|
const timestamp = getNextMessageId(Date.now());
|
||||||
|
addHistoryItem(setHistory, { type: 'info', text: helpText }, timestamp);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'exit',
|
name: 'exit',
|
||||||
description: 'Exit gemini-code',
|
description: 'Exit gemini-code',
|
||||||
|
|||||||
Reference in New Issue
Block a user