Merge pull request #1538 from QwenLM/chore/rename-skills-settings

fix(cli): relocate skills setting to experimental namespace
This commit is contained in:
tanzhenxin 2026-01-19 16:06:37 +08:00 committed by GitHub
commit 95c551c1b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 23 deletions

View file

@ -332,7 +332,14 @@ export async function parseArguments(settings: Settings): Promise<CliArgs> {
.option('experimental-skills', {
type: 'boolean',
description: 'Enable experimental Skills feature',
default: settings.tools?.experimental?.skills ?? false,
default: (() => {
const legacySkills = (
settings as Settings & {
tools?: { experimental?: { skills?: boolean } };
}
).tools?.experimental?.skills;
return settings.experimental?.skills ?? legacySkills ?? false;
})(),
})
.option('channel', {
type: 'string',