prizmkit 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/VERSION.json +3 -3
- package/bundled/skills/_metadata.json +1 -1
- package/package.json +1 -1
- package/src/index.js +38 -3
package/bundled/VERSION.json
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -86,11 +86,46 @@ export async function runScaffold(directory, options) {
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
// 1.5. AI CLI 命令配置(独立于平台,决定实际运行的可执行命令)
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
const cliChoices = [
|
|
90
|
+
{
|
|
91
|
+
name: `cbc — CodeBuddy CLI${detected.cbc ? chalk.green(' ✓ 已安装') : chalk.gray(' (未检测到)')}`,
|
|
92
|
+
value: 'cbc',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: `claude — Claude Code${detected.claude ? chalk.green(' ✓ 已安装') : chalk.gray(' (未检测到)')}`,
|
|
96
|
+
value: 'claude',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: '自定义 — 输入其他命令',
|
|
100
|
+
value: '__custom__',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: '跳过 — 稍后手动配置',
|
|
104
|
+
value: '',
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
|
|
108
|
+
// 如果检测到的推荐命令不在固定列表里,默认选"自定义"
|
|
109
|
+
const knownCliValues = ['cbc', 'claude'];
|
|
110
|
+
const cliDefault = knownCliValues.includes(detected.suggestedCli)
|
|
111
|
+
? detected.suggestedCli
|
|
112
|
+
: (detected.suggestedCli ? '__custom__' : '');
|
|
113
|
+
|
|
114
|
+
const cliSelection = await select({
|
|
115
|
+
message: '选择底层 AI CLI 可执行命令:',
|
|
116
|
+
choices: cliChoices,
|
|
117
|
+
default: cliDefault,
|
|
92
118
|
});
|
|
93
119
|
|
|
120
|
+
let aiCli = cliSelection;
|
|
121
|
+
if (cliSelection === '__custom__') {
|
|
122
|
+
aiCli = await input({
|
|
123
|
+
message: '输入自定义 AI CLI 命令:',
|
|
124
|
+
default: knownCliValues.includes(detected.suggestedCli) ? '' : detected.suggestedCli,
|
|
125
|
+
validate: (v) => v.trim() ? true : '请输入命令',
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
94
129
|
// 2. 选择技能套件
|
|
95
130
|
const skillSuiteChoice = await select({
|
|
96
131
|
message: '选择技能套件:',
|