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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.0.18",
3
- "bundledAt": "2026-03-15T15:11:59.897Z",
4
- "bundledFrom": "fed9f20"
2
+ "frameworkVersion": "1.0.19",
3
+ "bundledAt": "2026-03-15T15:17:35.921Z",
4
+ "bundledFrom": "7fb7d0a"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.18",
2
+ "version": "1.0.19",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {
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 aiCli = await input({
90
- message: '底层 AI CLI 可执行命令 (可自定义,如 claude-internal --dangerously-skip-permissions):',
91
- default: detected.suggestedCli,
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: '选择技能套件:',