universal-dev-standards 6.2.2 → 6.2.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.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  source: ../../CHANGELOG.md
3
- source_version: 6.2.2
4
- translation_version: 6.2.2
3
+ source_version: 6.2.3
4
+ translation_version: 6.2.3
5
5
  last_synced: 2026-07-31
6
6
  status: current
7
7
  ---
@@ -17,6 +17,12 @@ status: current
17
17
 
18
18
  ## [Unreleased]
19
19
 
20
+ ## [6.2.3] - 2026-07-31
21
+
22
+ ### 修复
23
+
24
+ - **重新选取已安装的 agent 会追加一笔重复的 manifest 记录。** 四个 manifest 写入端以 `[...existing, ...new]` 追加安装记录,于是一个已被记录的 agent 每次被重新选取就多一笔;某个项目的 manifest 读起来是 `['claude-code', 'claude-code']`。安装器本身从未受影响——`installSkillsToMultipleAgents` 会对输入去重。损害仅限于**记录**,以及每一个会迭代它的消费端:`checkNewFeatures`、reconciler 的扫描器与期望状态计算器都把那个 agent 走了两遍。效果无害——**这正是它跨越五次升级都没被注意到的原因**。四个写入端现在改用安装器早就在用的那个 helper。
25
+
20
26
  ## [6.2.2] - 2026-07-31
21
27
 
22
28
  ### 修复
@@ -15,7 +15,7 @@ status: current
15
15
 
16
16
  > **语言**: [English](../../README.md) | [繁體中文](../zh-TW/README.md) | 简体中文
17
17
 
18
- **版本**: 6.2.2 | **发布日期**: 2026-07-30 | **授权**: [双重授权](../../LICENSE) (CC BY 4.0 + MIT)
18
+ **版本**: 6.2.3 | **发布日期**: 2026-07-31 | **授权**: [双重授权](../../LICENSE) (CC BY 4.0 + MIT)
19
19
 
20
20
  语言无关、框架无关的软件项目文档标准。通过 AI 原生工作流,确保不同技术栈之间的一致性、质量和可维护性。
21
21
 
@@ -13,7 +13,7 @@ status: current
13
13
  <!-- UDS_SUPPORTED_VERSIONS_START -->
14
14
  | 版本 | 支持状态 |
15
15
  |------|--------|
16
- | 6.2.2 | ✅ 最新正式版 |
16
+ | 6.2.3 | ✅ 最新正式版 |
17
17
  | < 6.0.0 | ❌ 已终止支持 |
18
18
  <!-- UDS_SUPPORTED_VERSIONS_END -->
19
19
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  source: ../../CHANGELOG.md
3
- source_version: 6.2.2
4
- translation_version: 6.2.2
3
+ source_version: 6.2.3
4
+ translation_version: 6.2.3
5
5
  last_synced: 2026-07-31
6
6
  status: current
7
7
  ---
@@ -17,6 +17,12 @@ status: current
17
17
 
18
18
  ## [Unreleased]
19
19
 
20
+ ## [6.2.3] - 2026-07-31
21
+
22
+ ### 修復
23
+
24
+ - **重新選取已安裝的 agent 會追加一筆重複的 manifest 紀錄。** 四個 manifest 寫入端以 `[...existing, ...new]` 追加安裝紀錄,於是一個已被記錄的 agent 每次被重新選取就多一筆;某個專案的 manifest 讀起來是 `['claude-code', 'claude-code']`。安裝器本身從未受影響——`installSkillsToMultipleAgents` 會對輸入去重。損害僅限於**紀錄**,以及每一個會迭代它的消費端:`checkNewFeatures`、reconciler 的掃描器與期望狀態計算器都把那個 agent 走了兩次。效果無害——**這正是它跨越五次升級都沒被注意到的原因**。四個寫入端現在改用安裝器早就在用的那個 helper。
25
+
20
26
  ## [6.2.2] - 2026-07-31
21
27
 
22
28
  ### 修復
@@ -15,7 +15,7 @@ status: current
15
15
 
16
16
  > **語言**: [English](../../README.md) | 繁體中文 | [简体中文](../zh-CN/README.md)
17
17
 
18
- **版本**: 6.2.2 | **發布日期**: 2026-07-30 | **授權**: [雙重授權](../../LICENSE) (CC BY 4.0 + MIT)
18
+ **版本**: 6.2.3 | **發布日期**: 2026-07-31 | **授權**: [雙重授權](../../LICENSE) (CC BY 4.0 + MIT)
19
19
 
20
20
  語言無關、框架無關的軟體專案文件標準。透過 AI 原生工作流,確保不同技術堆疊之間的一致性、品質和可維護性。
21
21
 
@@ -13,7 +13,7 @@ status: current
13
13
  <!-- UDS_SUPPORTED_VERSIONS_START -->
14
14
  | 版本 | 支援狀態 |
15
15
  |------|--------|
16
- | 6.2.2 | ✅ 最新正式版 |
16
+ | 6.2.3 | ✅ 最新正式版 |
17
17
  | < 6.0.0 | ❌ 已終止支援 |
18
18
  <!-- UDS_SUPPORTED_VERSIONS_END -->
19
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-dev-standards",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "CLI tool for adopting Universal Development Standards",
5
5
  "keywords": [
6
6
  "documentation",
@@ -27,6 +27,7 @@ import { config } from '../utils/config-manager.js';
27
27
  import {
28
28
  installSkillsToMultipleAgents,
29
29
  installCommandsToMultipleAgents,
30
+ deduplicateInstallations,
30
31
  getInstalledSkillsInfoForAgent,
31
32
  getInstalledCommandsForAgent,
32
33
  cleanupDuplicateSkills,
@@ -958,10 +959,15 @@ export async function updateCommand(options) {
958
959
  manifest.skills.installed = true;
959
960
  manifest.skills.version = repoInfo.skills.version;
960
961
  manifest.skills.locale = skillsLocale;
961
- manifest.skills.installations = [
962
+ // Deduplicate: the append form accumulated a duplicate entry every time
963
+ // an already-installed agent was re-selected. dev-platform's manifest read
964
+ // `['claude-code', 'claude-code']`. Harmless to the installer, which
965
+ // dedupes at install time, but every consumer that iterates installations
966
+ // saw the agent twice. (XSPEC-343 R2)
967
+ manifest.skills.installations = deduplicateInstallations([
962
968
  ...(manifest.skills.installations || []),
963
969
  ...installSkills
964
- ];
970
+ ]);
965
971
  manifest.skills.names = mergeInstalledNames(manifest.skills.names, skillResult);
966
972
 
967
973
  // Derive location from installations if not set
@@ -1038,10 +1044,10 @@ export async function updateCommand(options) {
1038
1044
  if (!manifest.commands) manifest.commands = {};
1039
1045
  manifest.commands.installed = true;
1040
1046
  manifest.commands.version = repoInfo.skills.version; // Track version
1041
- manifest.commands.installations = [
1047
+ manifest.commands.installations = deduplicateInstallations([
1042
1048
  ...(manifest.commands.installations || []),
1043
1049
  ...installCommands
1044
- ];
1050
+ ]);
1045
1051
  manifest.commands.names = mergeInstalledNames(manifest.commands.names, cmdResult);
1046
1052
 
1047
1053
  // Update command hashes for integrity tracking
@@ -1143,7 +1149,7 @@ export async function updateCommand(options) {
1143
1149
  manifest.skills.installed = true;
1144
1150
  manifest.skills.version = repoInfo.skills.version;
1145
1151
  manifest.skills.locale = skillsLocale;
1146
- manifest.skills.installations = [...(manifest.skills.installations || []), ...missingSkills];
1152
+ manifest.skills.installations = deduplicateInstallations([...(manifest.skills.installations || []), ...missingSkills]);
1147
1153
  manifest.skills.names = mergeInstalledNames(manifest.skills.names, result);
1148
1154
  if (result.allFileHashes) {
1149
1155
  if (!manifest.skillHashes) manifest.skillHashes = {};
@@ -1187,7 +1193,7 @@ export async function updateCommand(options) {
1187
1193
  if (!manifest.commands) manifest.commands = {};
1188
1194
  manifest.commands.installed = true;
1189
1195
  manifest.commands.version = repoInfo.skills.version;
1190
- manifest.commands.installations = [...(manifest.commands.installations || []), ...missingCommands];
1196
+ manifest.commands.installations = deduplicateInstallations([...(manifest.commands.installations || []), ...missingCommands]);
1191
1197
  manifest.commands.names = mergeInstalledNames(manifest.commands.names, result);
1192
1198
  if (result.allFileHashes) {
1193
1199
  if (!manifest.commandHashes) manifest.commandHashes = {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "lastUpdated": "2026-05-13",
5
5
  "description": "Standards registry for universal-dev-standards with integrated skills and AI-optimized formats",
6
6
  "formats": {
@@ -58,14 +58,14 @@
58
58
  "standards": {
59
59
  "name": "universal-dev-standards",
60
60
  "url": "https://github.com/AsiaOstrich/universal-dev-standards",
61
- "version": "6.2.2"
61
+ "version": "6.2.3"
62
62
  },
63
63
  "skills": {
64
64
  "name": "universal-dev-standards",
65
65
  "url": "https://github.com/AsiaOstrich/universal-dev-standards",
66
66
  "localPath": "skills",
67
67
  "rawUrl": "https://raw.githubusercontent.com/AsiaOstrich/universal-dev-standards/main/skills",
68
- "version": "6.2.2",
68
+ "version": "6.2.3",
69
69
  "note": "Skills are now included in the main repository under skills/"
70
70
  }
71
71
  },
@@ -2236,7 +2236,7 @@
2236
2236
  "id": "license-compliance",
2237
2237
  "name": "License Compliance Standards",
2238
2238
  "nameZh": "授權合規標準",
2239
- "version": "6.2.2",
2239
+ "version": "6.2.3",
2240
2240
  "source": {
2241
2241
  "human": "core/license-compliance.md",
2242
2242
  "ai": "ai/standards/license-compliance.ai.yaml"
@@ -2248,7 +2248,7 @@
2248
2248
  "id": "verification-oracle",
2249
2249
  "name": "Verification Oracle Standards",
2250
2250
  "nameZh": "驗證 Oracle 標準",
2251
- "version": "6.2.2",
2251
+ "version": "6.2.3",
2252
2252
  "source": {
2253
2253
  "human": "core/verification-oracle.md",
2254
2254
  "ai": "ai/standards/verification-oracle.ai.yaml"
@@ -2260,7 +2260,7 @@
2260
2260
  "id": "model-provenance",
2261
2261
  "name": "Model Provenance Policy Standards",
2262
2262
  "nameZh": "模型來源政策標準",
2263
- "version": "6.2.2",
2263
+ "version": "6.2.3",
2264
2264
  "source": {
2265
2265
  "human": "core/model-provenance.md",
2266
2266
  "ai": "ai/standards/model-provenance.ai.yaml"
@@ -2272,7 +2272,7 @@
2272
2272
  "id": "resource-cost-boundary",
2273
2273
  "name": "Resource / Cost Boundary Declaration Standards",
2274
2274
  "nameZh": "資源/成本邊界宣告標準",
2275
- "version": "6.2.2",
2275
+ "version": "6.2.3",
2276
2276
  "source": {
2277
2277
  "human": "core/resource-cost-boundary.md",
2278
2278
  "ai": "ai/standards/resource-cost-boundary.ai.yaml"