mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
feat(commands): Enable @file processing in TOML commands (#6716)
This commit is contained in:
parent
529c2649b8
commit
bfdddcbd99
27 changed files with 1836 additions and 331 deletions
|
|
@ -491,7 +491,7 @@ describe('useSlashCommandProcessor', () => {
|
|||
description: 'A command from a file',
|
||||
action: async () => ({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the TOML file.',
|
||||
content: [{ text: 'The actual prompt from the TOML file.' }],
|
||||
}),
|
||||
},
|
||||
CommandKind.FILE,
|
||||
|
|
@ -507,7 +507,7 @@ describe('useSlashCommandProcessor', () => {
|
|||
|
||||
expect(actionResult).toEqual({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the TOML file.',
|
||||
content: [{ text: 'The actual prompt from the TOML file.' }],
|
||||
});
|
||||
|
||||
expect(mockAddItem).toHaveBeenCalledWith(
|
||||
|
|
@ -523,7 +523,7 @@ describe('useSlashCommandProcessor', () => {
|
|||
description: 'A command from mcp',
|
||||
action: async () => ({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the mcp command.',
|
||||
content: [{ text: 'The actual prompt from the mcp command.' }],
|
||||
}),
|
||||
},
|
||||
CommandKind.MCP_PROMPT,
|
||||
|
|
@ -539,7 +539,7 @@ describe('useSlashCommandProcessor', () => {
|
|||
|
||||
expect(actionResult).toEqual({
|
||||
type: 'submit_prompt',
|
||||
content: 'The actual prompt from the mcp command.',
|
||||
content: [{ text: 'The actual prompt from the mcp command.' }],
|
||||
});
|
||||
|
||||
expect(mockAddItem).toHaveBeenCalledWith(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue