create-dwy 0.25.2 → 0.25.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # create-dwy
2
2
 
3
+ ## [0.25.3] - 2026-11-06
4
+
5
+ ### Patch Changes
6
+
7
+ - 修复项目中全局 Skills 禁选后,已启用分类 Tab 失去颜色区分的问题。包含项目已勾选或全局已启用 Skills 的非当前分类保持青色,当前分类保持青色底;禁选逻辑和可勾选项计数保持不变。
8
+ - 补充部分/全部全局覆盖状态以及真实交互输出的颜色回归。
9
+
10
+ ---
11
+
3
12
  ## [0.25.2] - 2026-11-06
4
13
 
5
14
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dwy",
3
- "version": "0.25.2",
3
+ "version": "0.25.3",
4
4
  "description": "项目脚手架与多平台 AI 配置同步工具",
5
5
  "type": "module",
6
6
  "bin": {
package/src/sync-plan.js CHANGED
@@ -39,7 +39,7 @@ export async function projectSkillChoices(skills, platforms, { homeDir, codexHom
39
39
  const disabled = applicable.length > 0 && covered.length === applicable.length
40
40
  const missing = applicable.filter(platform => !covered.includes(platform))
41
41
  const status = disabled ? '全局已启用' : covered.length ? `${missing.map(p => PLATFORM_LABELS[p]).join('、')} 可安装到项目` : ''
42
- return { ...skill, disabled, label: status ? `${skill.name}(${status})` : skill.name,
42
+ return { ...skill, disabled, inherited: covered.length > 0, label: status ? `${skill.name}(${status})` : skill.name,
43
43
  description: [covered.length ? `全局已提供:${covered.map(p => PLATFORM_LABELS[p]).join('、')}` : '', skill.description].filter(Boolean).join(';') }
44
44
  }))
45
45
  }
package/src/sync.js CHANGED
@@ -198,6 +198,7 @@ export function buildCategoryTabs(items, type) {
198
198
  label: item.label || item.name,
199
199
  description: item.description,
200
200
  disabled: item.disabled,
201
+ inherited: item.inherited,
201
202
  type,
202
203
  })
203
204
  }
@@ -264,7 +264,7 @@ class TabMultiSelectPrompt extends Prompt {
264
264
  }
265
265
 
266
266
  /**
267
- * 画 Tab 栏。当前 Tab 反底;有勾选的其它 Tab 用青色,空的变暗。
267
+ * 当前 Tab 反底;项目已勾选或全局已启用的分类用青色,不把禁选状态当成未启用。
268
268
  *
269
269
  * @param {string[]} segments
270
270
  * @param {number} activeIndex
@@ -284,7 +284,7 @@ function renderTabBar(segments, activeIndex, win, tabs, selectedValues) {
284
284
  const { selected } = tabSelectionStats(tabs[i], set)
285
285
  if (i === activeIndex) {
286
286
  parts.push(styleText(['bgCyan', 'black'], ` ${text} `))
287
- } else if (selected > 0) {
287
+ } else if (selected > 0 || tabs[i].options.some(option => option.inherited)) {
288
288
  parts.push(styleText('cyan', text))
289
289
  } else {
290
290
  parts.push(styleText('dim', text))