mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
29 lines
628 B
TypeScript
29 lines
628 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Qwen
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type {
|
|
SlashCommand,
|
|
CommandContext,
|
|
OpenDialogActionReturn,
|
|
} from './types.js';
|
|
import { CommandKind } from './types.js';
|
|
import { t } from '../../i18n/index.js';
|
|
|
|
export const approvalModeCommand: SlashCommand = {
|
|
name: 'approval-mode',
|
|
get description() {
|
|
return t('View or change the approval mode for tool usage');
|
|
},
|
|
kind: CommandKind.BUILT_IN,
|
|
action: async (
|
|
_context: CommandContext,
|
|
_args: string,
|
|
): Promise<OpenDialogActionReturn> => ({
|
|
type: 'dialog',
|
|
dialog: 'approval-mode',
|
|
}),
|
|
};
|