create-dwy 0.18.2 → 0.18.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,13 @@
1
1
  # create-dwy
2
2
 
3
+ ## 0.18.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 技术栈/场景包下的子条目随父包显示为已勾选,不再画成删除线空框。逐条取消仍在下一步预勾清单里。
8
+
9
+ ---
10
+
3
11
  ## 0.18.2
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dwy",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "description": "项目脚手架与多平台 AI 配置同步工具",
5
5
  "type": "module",
6
6
  "bin": {
@@ -263,7 +263,15 @@ export function searchableMultiselect(opts) {
263
263
  ? styleText('green', S_CHECKBOX_SELECTED)
264
264
  : styleText('dim', S_CHECKBOX_INACTIVE)
265
265
  if (opt.disabled) {
266
- return `${styleText('gray', S_CHECKBOX_INACTIVE)} ${styleText(['strikethrough', 'gray'], label)}`
266
+ // 包内子条目:随父包勾选显示已勾,禁止点选,不要删除线
267
+ const packOn = opt.packId && this.selectedValues.includes(opt.packId)
268
+ if (packOn) {
269
+ const previewBox = styleText('green', S_CHECKBOX_SELECTED)
270
+ return active
271
+ ? `${previewBox} ${label}`
272
+ : `${previewBox} ${styleText('dim', label)}`
273
+ }
274
+ return `${styleText('dim', S_CHECKBOX_INACTIVE)} ${styleText('dim', label)}`
267
275
  }
268
276
  // 聚焦也不拼 hint,描述只在底部公共区
269
277
  if (active) {
package/src/sync-scene.js CHANGED
@@ -38,6 +38,7 @@ export function packOptionsWithChildren(packs, scans, { skillsOnly = false } = {
38
38
  label: ` ${item.name}`,
39
39
  description: item.description || pack.label,
40
40
  disabled: true,
41
+ packId: pack.id,
41
42
  })
42
43
  }
43
44
  }