feat: subagent creation dialog - continued

This commit is contained in:
tanzhenxin
2025-09-04 11:07:42 +08:00
parent 5d8874205d
commit 9fcc7a4cbe
6 changed files with 273 additions and 122 deletions

View File

@@ -539,7 +539,7 @@ export class SubagentManager {
* @param level - Storage level
* @returns Absolute file path
*/
private getSubagentPath(name: string, level: SubagentLevel): string {
getSubagentPath(name: string, level: SubagentLevel): string {
const baseDir =
level === 'project'
? path.join(this.projectRoot, QWEN_CONFIG_DIR, AGENT_CONFIG_DIR)

View File

@@ -193,7 +193,7 @@ describe('MemoryTool', () => {
it('should have correct name, displayName, description, and schema', () => {
expect(memoryTool.name).toBe('save_memory');
expect(memoryTool.displayName).toBe('Save Memory');
expect(memoryTool.displayName).toBe('SaveMemory');
expect(memoryTool.description).toContain(
'Saves a specific piece of information',
);

View File

@@ -242,7 +242,7 @@ describe('TodoWriteTool', () => {
});
it('should have correct display name', () => {
expect(tool.displayName).toBe('Todo Write');
expect(tool.displayName).toBe('TodoWrite');
});
it('should have correct kind', () => {