mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
38 lines
868 B
TypeScript
38 lines
868 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {
|
|
CommandKind,
|
|
type SlashCommand,
|
|
type OpenDialogActionReturn,
|
|
} from './types.js';
|
|
|
|
export const agentsCommand: SlashCommand = {
|
|
name: 'agents',
|
|
description: 'Manage subagents for specialized task delegation.',
|
|
kind: CommandKind.BUILT_IN,
|
|
subCommands: [
|
|
{
|
|
name: 'manage',
|
|
description: 'Manage existing subagents (view, edit, delete).',
|
|
kind: CommandKind.BUILT_IN,
|
|
action: (): OpenDialogActionReturn => ({
|
|
type: 'dialog',
|
|
dialog: 'subagent_list',
|
|
}),
|
|
},
|
|
{
|
|
name: 'create',
|
|
description: 'Create a new subagent with guided setup.',
|
|
kind: CommandKind.BUILT_IN,
|
|
action: (): OpenDialogActionReturn => ({
|
|
type: 'dialog',
|
|
dialog: 'subagent_create',
|
|
}),
|
|
},
|
|
],
|
|
};
|