mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
feat(cli): add settings support for experimental skills
- Add tools.experimentalSkills setting in settingsSchema - Read default from settings in config. ts - Add --skills as shorter alias for --experimental-skills - Update documentation for new setting Fixes #1493
This commit is contained in:
parent
985f65f8fa
commit
52db3a766d
4 changed files with 34 additions and 3 deletions
|
|
@ -332,9 +332,10 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
|
|||
hidden: true,
|
||||
})
|
||||
.option('experimental-skills', {
|
||||
alias: ['x'],
|
||||
type: 'boolean',
|
||||
description: 'Enable experimental Skills feature',
|
||||
default: false,
|
||||
description: 'Enable experimental Skills feature (short: -x)',
|
||||
default: settings.tools?.experimentalSkills ?? false,
|
||||
})
|
||||
.option('channel', {
|
||||
type: 'string',
|
||||
|
|
|
|||
|
|
@ -981,6 +981,16 @@ const SETTINGS_SCHEMA = {
|
|||
description: 'The number of lines to keep when truncating tool output.',
|
||||
showInDialog: true,
|
||||
},
|
||||
experimentalSkills: {
|
||||
type: 'boolean',
|
||||
label: 'Experimental Skills',
|
||||
category: 'Tools',
|
||||
requiresRestart: true,
|
||||
default: false,
|
||||
description:
|
||||
'Enable experimental Agent Skills feature. When enabled, Qwen Code can use Skills from . qwen/skills/ and ~/. qwen/skills/.',
|
||||
showInDialog: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue