/** * @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 => ({ type: 'dialog', dialog: 'approval-mode', }), };