mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
Load and use MCP server prompts as slash commands in the CLI (#4828)
Co-authored-by: harold <haroldmciver@google.com> Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
parent
de96887789
commit
eb65034117
19 changed files with 761 additions and 100 deletions
|
|
@ -1100,7 +1100,7 @@ describe('useCompletion', () => {
|
|||
result.current.handleAutocomplete(0);
|
||||
});
|
||||
|
||||
expect(mockBuffer.setText).toHaveBeenCalledWith('/memory');
|
||||
expect(mockBuffer.setText).toHaveBeenCalledWith('/memory ');
|
||||
});
|
||||
|
||||
it('should append a sub-command when the parent is complete', () => {
|
||||
|
|
@ -1145,7 +1145,7 @@ describe('useCompletion', () => {
|
|||
result.current.handleAutocomplete(1); // index 1 is 'add'
|
||||
});
|
||||
|
||||
expect(mockBuffer.setText).toHaveBeenCalledWith('/memory add');
|
||||
expect(mockBuffer.setText).toHaveBeenCalledWith('/memory add ');
|
||||
});
|
||||
|
||||
it('should complete a command with an alternative name', () => {
|
||||
|
|
@ -1190,7 +1190,7 @@ describe('useCompletion', () => {
|
|||
result.current.handleAutocomplete(0);
|
||||
});
|
||||
|
||||
expect(mockBuffer.setText).toHaveBeenCalledWith('/help');
|
||||
expect(mockBuffer.setText).toHaveBeenCalledWith('/help ');
|
||||
});
|
||||
|
||||
it('should complete a file path', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue