yugoo-design 0.2.2 → 0.2.5

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.
Files changed (29) hide show
  1. package/README.md +4 -4
  2. package/bin/npm-installer-dsh.mjs +22 -3
  3. package/package.json +1 -1
  4. package/payload/desktop-preparation/materials.json +6 -6
  5. package/payload/desktop-preparation/qwenwork-template/authoring/studio-creators/material.json +1 -1
  6. package/payload/desktop-preparation/qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs +10 -4
  7. package/payload/desktop-preparation/qwenwork-template/authoring/studio-creators/source/docs/dsl-spec.md +28 -0
  8. package/payload/desktop-preparation/studio-authoring-template/authoring/studio-creators/material.json +1 -1
  9. package/payload/desktop-preparation/studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs +10 -4
  10. package/payload/desktop-preparation/studio-authoring-template/authoring/studio-creators/source/docs/dsl-spec.md +28 -0
  11. package/payload/overlays/claude-code/.claude-plugin/plugin.json +1 -1
  12. package/payload/overlays/claude-code/authoring/studio-creators/material.json +1 -1
  13. package/payload/overlays/claude-code/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs +10 -4
  14. package/payload/overlays/claude-code/authoring/studio-creators/source/docs/dsl-spec.md +28 -0
  15. package/payload/overlays/codex/.codex-plugin/plugin.json +1 -1
  16. package/payload/overlays/codex/authoring/studio-creators/material.json +1 -1
  17. package/payload/overlays/codex/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs +10 -4
  18. package/payload/overlays/codex/authoring/studio-creators/source/docs/dsl-spec.md +28 -0
  19. package/payload/overlays/qoder/.qoder-plugin/plugin.json +1 -1
  20. package/payload/overlays/qoder/authoring/studio-creators/material.json +1 -1
  21. package/payload/overlays/qoder/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs +10 -4
  22. package/payload/overlays/qoder/authoring/studio-creators/source/docs/dsl-spec.md +28 -0
  23. package/payload/shared/authoring/panel-components.json +118 -81
  24. package/payload/shared/authoring/studio-creators/material.json +1 -1
  25. package/payload/shared/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs +10 -4
  26. package/payload/shared/authoring/studio-creators/source/docs/dsl-spec.md +28 -0
  27. package/payload/shared/web/client.js +188 -29
  28. package/release-hosts.json +1 -1
  29. package/release-manifest.json +30 -30
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Yugoo Design
2
2
 
3
- Package: `yugoo-design@0.2.2`.
3
+ Package: `yugoo-design@0.2.5`.
4
4
 
5
5
  Yugoo Design (语构设计系统) is an interactive design plugin for native Agent Hosts.
6
6
  It combines domain methods, Design Projects, versioned Design Files and shared
@@ -55,7 +55,7 @@ from another operating system requires an explicit Windows path and reports that
55
55
  locator as unverified; it does not establish target runtime acceptance.
56
56
 
57
57
  ```sh
58
- ONNXRUNTIME_NODE_INSTALL_CUDA=skip npm install --ignore-scripts=false --save-exact yugoo-design@0.2.2 --registry=https://registry.npmjs.org
58
+ ONNXRUNTIME_NODE_INSTALL_CUDA=skip npm install --ignore-scripts=false --save-exact yugoo-design@0.2.5 --registry=https://registry.npmjs.org
59
59
  npx --no-install yugoo-design --help
60
60
  ```
61
61
 
@@ -72,7 +72,7 @@ allowBuilds:
72
72
  ```
73
73
 
74
74
  ```sh
75
- ONNXRUNTIME_NODE_INSTALL_CUDA=skip pnpm add --save-exact yugoo-design@0.2.2 --registry=https://registry.npmjs.org
75
+ ONNXRUNTIME_NODE_INSTALL_CUDA=skip pnpm add --save-exact yugoo-design@0.2.5 --registry=https://registry.npmjs.org
76
76
  pnpm exec yugoo-design --help
77
77
  ```
78
78
 
@@ -121,7 +121,7 @@ process value:
121
121
  $previousOrtCuda = [Environment]::GetEnvironmentVariable('ONNXRUNTIME_NODE_INSTALL_CUDA', 'Process')
122
122
  try {
123
123
  $env:ONNXRUNTIME_NODE_INSTALL_CUDA = 'skip'
124
- npm install --ignore-scripts=false --save-exact yugoo-design@0.2.2 --registry=https://registry.npmjs.org
124
+ npm install --ignore-scripts=false --save-exact yugoo-design@0.2.5 --registry=https://registry.npmjs.org
125
125
  } finally {
126
126
  [Environment]::SetEnvironmentVariable('ONNXRUNTIME_NODE_INSTALL_CUDA', $previousOrtCuda, 'Process')
127
127
  }
@@ -462,6 +462,22 @@ async function workspaceSettings(bytes) {
462
462
  return { settings, exclusions: minimumReleaseAgeExclude }
463
463
  }
464
464
 
465
+ // pnpm can merge pkg@old and pkg@new into pkg@old || new. Expand
466
+ // only exact versions; keep user ranges and other rules opaque and unchanged.
467
+ function releaseAgeSelectors(exclusions) {
468
+ const counts = new Map(), opaque = []
469
+ for (const value of exclusions) {
470
+ const match = /^(?<name>(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*)@(?<versions>.+)$/u.exec(value)
471
+ const versions = match?.groups.versions.split(/\s*\|\|\s*/u)
472
+ if (!versions?.every(version => exactVersion.test(version))) { opaque.push(value); continue }
473
+ for (const version of versions) {
474
+ const selector = `${match.groups.name}@${version}`
475
+ counts.set(selector, (counts.get(selector) ?? 0) + 1)
476
+ }
477
+ }
478
+ return { counts, opaque }
479
+ }
480
+
465
481
  // Follow only exact runtime declarations in the selected installed aggregate.
466
482
  // Reading package metadata must not execute code or depend on package.json exports.
467
483
  async function installedExactSelectors(installed) {
@@ -503,10 +519,13 @@ async function preservedConfigPins(before, after, workspaceBefore) {
503
519
  const old = await workspaceSettings(workspaceBefore), current = await workspaceSettings(bytes)
504
520
  if (!old || !current) return { ...result, reason: 'workspace-policy-unverified' }
505
521
  if (!isDeepStrictEqual(old.settings, current.settings)) return { ...result, reason: 'workspace-settings-changed' }
506
- if (!isDeepStrictEqual(old.exclusions, current.exclusions.slice(0, old.exclusions.length)))
522
+ const retained = releaseAgeSelectors(old.exclusions), observed = releaseAgeSelectors(current.exclusions)
523
+ if (!isDeepStrictEqual(retained.opaque, observed.opaque)
524
+ || [...retained.counts.keys()].some(selector => !observed.counts.has(selector)))
507
525
  return { ...result, reason: 'existing-release-age-exclusions-changed' }
508
- const added = current.exclusions.slice(old.exclusions.length)
509
- if (!added.length || new Set(added).size !== added.length || added.some(value => old.exclusions.includes(value))) return result
526
+ if ([...observed.counts].some(([selector, count]) => count > Math.max(1, retained.counts.get(selector) ?? 0))) return result
527
+ const added = [...observed.counts.keys()].filter(selector => !retained.counts.has(selector))
528
+ if (!added.length) return result
510
529
  const exact = await installedExactSelectors(after.installed)
511
530
  if (added.some(value => !exact.has(value))) return { ...result, reason: 'release-age-exclusion-outside-exact-dependencies' }
512
531
  return { ...result, preserved: true, releaseAgeExclusionsAdded: added, reason: 'exact-dependency-release-age-exclusions-added' }
package/package.json CHANGED
@@ -79,5 +79,5 @@
79
79
  }
80
80
  },
81
81
  "name": "yugoo-design",
82
- "version": "0.2.2"
82
+ "version": "0.2.5"
83
83
  }
@@ -14,7 +14,7 @@
14
14
  "qwenwork-template/NOTICE": "6b4eec391144fcbd96ec7b45a28764ab1932722a96325248377c3e28aac2c62d",
15
15
  "qwenwork-template/THIRD_PARTY_NOTICES.md": "bfcab921c6c15ccc47f9b1a6cc5941675c95962de5ea5b0edc50fbfa2aef136a",
16
16
  "qwenwork-template/authoring/studio-creators/index.md": "01eb453e4bcbd7cd104bdd9032a1c1d09c3a4de5b69982eaf18ae528c6a7ea37",
17
- "qwenwork-template/authoring/studio-creators/material.json": "c2fdb30666942a942157c7f1e1a9ecfe542b87bf35b30412a6a541e584fac216",
17
+ "qwenwork-template/authoring/studio-creators/material.json": "764e5545d56b84c3d47ea2ad7b25ec52f350561e777d2454cb3066057fbe9bf5",
18
18
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/SKILL.md": "99c0ddca35a9a65ca9b097ee9072994a1ca2a4848ef6fe3ca07f5f29956806ed",
19
19
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/agents/openai.yaml": "60da07d566f3c27a4f9d373d14473db1bbae82fa36f1ada035c6f9128d74bb00",
20
20
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/assets/skill.template.yaml": "d7a6c63460403c981a7a107f9a4a715919b8653ce5aa268ce6aecf100b925b59",
@@ -23,7 +23,7 @@
23
23
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/references/cooperation-authoring.md": "a8ac2787c4d62cd817a9dd0a810ea25500bafcd57facd87ee22f0fc4a151ddaf",
24
24
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/references/panel-authoring.md": "5a26f8f24da63f09367bd031c009928255b27f619f16e0660eeef3da367176b1",
25
25
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/references/validation-authoring.md": "d0ff6ff81a804bb26cc67269c0ca0d4fbcee681ea051fa1993d43c2e7aacb5a0",
26
- "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs": "71ac2541e9388f86d6f0a58c87bcbfeb8948c34b476cd4291d37c2f2ac337265",
26
+ "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs": "8e1879b91b3d9cef5bb4b356cfd97eb1c796d056f398156a26f0d11f19ff50cc",
27
27
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/list-panel-components.mjs": "b381c7c2b5420a0c61f4e55b674223d44f42d865235f4e87e25ee171cab02d61",
28
28
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-kit-creator/SKILL.md": "4893c6f443cfb4376ec6cde166fc6983b837b39429c501aa019f43b52827a06c",
29
29
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-kit-creator/agents/openai.yaml": "cab7b41a79940af06f896fe0b6286424aa378f8c219778d13554ad09652335c7",
@@ -36,7 +36,7 @@
36
36
  "qwenwork-template/authoring/studio-creators/source/.agents/skills/design-skill-creator/scripts/render-state-contract.mjs": "3cd68bd8500ebfcf7af1975be349288fa596e8450bb251ae981ce4a1082be55b",
37
37
  "qwenwork-template/authoring/studio-creators/source/docs/a2ui-component-catalog-contract.md": "4e78add756ccc6fc1c8f506c6c0e3670d16f2e535485fbecd7e15f698fa2c415",
38
38
  "qwenwork-template/authoring/studio-creators/source/docs/bundle-contract.md": "aa4da3d9be862de30f70f5539061c7018144047e8bef9bcc37e54ca119a1767f",
39
- "qwenwork-template/authoring/studio-creators/source/docs/dsl-spec.md": "9d2897f48ff470d1a51d93af0b1d90b8173052f1a6e0380ba4629470dfdcfc5e",
39
+ "qwenwork-template/authoring/studio-creators/source/docs/dsl-spec.md": "fe852a784b960f1968809129ee913a667516d716575263287cd32c6d3ad39029",
40
40
  "qwenwork-template/authoring/studio-creators/source/docs/panel-uiux-standard.md": "37d3f5095fd4e7b62fb46a13375bc5b265e5ca4798f5016a0cba42ba9129c9b8",
41
41
  "qwenwork-template/authoring/studio-creators/source/docs/system-design-baseline.md": "eecd569936892c90d32d7822547972913d373ef42af2970ffdac9d38abb2cbe7",
42
42
  "qwenwork-template/authoring/studio-creators/source/docs/wiki/extending.md": "2774e855d86104dcf49559cbcf868b1083da0d39c669cec4d914c56b82852b3d",
@@ -127,7 +127,7 @@
127
127
  "src/workbuddy-relay-service.mjs": "44d60d6956250417507fb76c71c3030a01bc38e565e4572a761b46f255f8e669",
128
128
  "src/workbuddy-ui-probes.mjs": "a91d4651248125769254755bdf66a44bbc9e5a793dad0a137c35acbb10a89a88",
129
129
  "studio-authoring-template/authoring/studio-creators/index.md": "01eb453e4bcbd7cd104bdd9032a1c1d09c3a4de5b69982eaf18ae528c6a7ea37",
130
- "studio-authoring-template/authoring/studio-creators/material.json": "c2fdb30666942a942157c7f1e1a9ecfe542b87bf35b30412a6a541e584fac216",
130
+ "studio-authoring-template/authoring/studio-creators/material.json": "764e5545d56b84c3d47ea2ad7b25ec52f350561e777d2454cb3066057fbe9bf5",
131
131
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/SKILL.md": "99c0ddca35a9a65ca9b097ee9072994a1ca2a4848ef6fe3ca07f5f29956806ed",
132
132
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/agents/openai.yaml": "60da07d566f3c27a4f9d373d14473db1bbae82fa36f1ada035c6f9128d74bb00",
133
133
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/assets/skill.template.yaml": "d7a6c63460403c981a7a107f9a4a715919b8653ce5aa268ce6aecf100b925b59",
@@ -136,7 +136,7 @@
136
136
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/references/cooperation-authoring.md": "a8ac2787c4d62cd817a9dd0a810ea25500bafcd57facd87ee22f0fc4a151ddaf",
137
137
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/references/panel-authoring.md": "5a26f8f24da63f09367bd031c009928255b27f619f16e0660eeef3da367176b1",
138
138
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/references/validation-authoring.md": "d0ff6ff81a804bb26cc67269c0ca0d4fbcee681ea051fa1993d43c2e7aacb5a0",
139
- "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs": "71ac2541e9388f86d6f0a58c87bcbfeb8948c34b476cd4291d37c2f2ac337265",
139
+ "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/inspect-panel-component.mjs": "8e1879b91b3d9cef5bb4b356cfd97eb1c796d056f398156a26f0d11f19ff50cc",
140
140
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-bundle-creator/scripts/list-panel-components.mjs": "b381c7c2b5420a0c61f4e55b674223d44f42d865235f4e87e25ee171cab02d61",
141
141
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-kit-creator/SKILL.md": "4893c6f443cfb4376ec6cde166fc6983b837b39429c501aa019f43b52827a06c",
142
142
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-kit-creator/agents/openai.yaml": "cab7b41a79940af06f896fe0b6286424aa378f8c219778d13554ad09652335c7",
@@ -149,7 +149,7 @@
149
149
  "studio-authoring-template/authoring/studio-creators/source/.agents/skills/design-skill-creator/scripts/render-state-contract.mjs": "3cd68bd8500ebfcf7af1975be349288fa596e8450bb251ae981ce4a1082be55b",
150
150
  "studio-authoring-template/authoring/studio-creators/source/docs/a2ui-component-catalog-contract.md": "4e78add756ccc6fc1c8f506c6c0e3670d16f2e535485fbecd7e15f698fa2c415",
151
151
  "studio-authoring-template/authoring/studio-creators/source/docs/bundle-contract.md": "aa4da3d9be862de30f70f5539061c7018144047e8bef9bcc37e54ca119a1767f",
152
- "studio-authoring-template/authoring/studio-creators/source/docs/dsl-spec.md": "9d2897f48ff470d1a51d93af0b1d90b8173052f1a6e0380ba4629470dfdcfc5e",
152
+ "studio-authoring-template/authoring/studio-creators/source/docs/dsl-spec.md": "fe852a784b960f1968809129ee913a667516d716575263287cd32c6d3ad39029",
153
153
  "studio-authoring-template/authoring/studio-creators/source/docs/panel-uiux-standard.md": "37d3f5095fd4e7b62fb46a13375bc5b265e5ca4798f5016a0cba42ba9129c9b8",
154
154
  "studio-authoring-template/authoring/studio-creators/source/docs/system-design-baseline.md": "eecd569936892c90d32d7822547972913d373ef42af2970ffdac9d38abb2cbe7",
155
155
  "studio-authoring-template/authoring/studio-creators/source/docs/wiki/extending.md": "2774e855d86104dcf49559cbcf868b1083da0d39c669cec4d914c56b82852b3d",