mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
This commit is contained in:
parent
c33a0da1df
commit
52dae2c583
14 changed files with 524 additions and 135 deletions
|
|
@ -70,6 +70,7 @@ export interface CliArgs {
|
|||
telemetryLogPrompts: boolean | undefined;
|
||||
telemetryOutfile: string | undefined;
|
||||
allowedMcpServerNames: string[] | undefined;
|
||||
allowedTools: string[] | undefined;
|
||||
experimentalAcp: boolean | undefined;
|
||||
extensions: string[] | undefined;
|
||||
listExtensions: boolean | undefined;
|
||||
|
|
@ -189,6 +190,11 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
|
|||
string: true,
|
||||
description: 'Allowed MCP server names',
|
||||
})
|
||||
.option('allowed-tools', {
|
||||
type: 'array',
|
||||
string: true,
|
||||
description: 'Tools that are allowed to run without confirmation',
|
||||
})
|
||||
.option('extensions', {
|
||||
alias: 'e',
|
||||
type: 'array',
|
||||
|
|
@ -489,6 +495,7 @@ export async function loadCliConfig(
|
|||
question,
|
||||
fullContext: argv.allFiles || false,
|
||||
coreTools: settings.coreTools || undefined,
|
||||
allowedTools: argv.allowedTools || settings.allowedTools || undefined,
|
||||
excludeTools,
|
||||
toolDiscoveryCommand: settings.toolDiscoveryCommand,
|
||||
toolCallCommand: settings.toolCallCommand,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue