dsh-anima 2.2.2 → 2.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.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,31 @@
9
9
 
10
10
  ---
11
11
 
12
+ ## [2.2.3] - 2026-11-11
13
+
14
+ 修复设置页右上角徽标的版本号,并把拦这个错误的断言挂进发布流程。
15
+ 2.2.2 是纯文档版,只 bump 了 `package.json`,没同步客户端里写死的那个常量,
16
+ 于是发出的包上徽标仍显示 `v2.2.1`,与本包实际版本对不上号。
17
+
18
+ ### 修复
19
+
20
+ - **徽标版本号与 package.json 一致**:`client/index.mjs` 的 `VERSION` 常量从
21
+ `2.2.1` 改到 `2.2.3`,设置页右上角显示 `v2.2.3`。
22
+ - **发布前自动拦住同类错误**:`package.json` 新增 `prepublishOnly`(跑
23
+ `npm run verify`)。`scripts/verify-core.mjs:3204` 本来就有一条
24
+ 「客户端徽标版本与 package.json 的 version 一致」的断言,2.2.2 发布时没跑它,
25
+ 所以没拦住;挂上钩子后,下次再漏改同一个常量,publish 会直接失败,而不是
26
+ 发出一个带错号的包。
27
+ - **安装示例的版本号对齐到 2.2.3**:README.md / README_EN.md 安装段的 pin 与
28
+ `@` / `#` 说明,一起从 2.2.2 / v2.2.2 改到 2.2.3 / v2.2.3。
29
+
30
+ ### 没做
31
+
32
+ - 除 `VERSION` 这一个常量外,运行时代码、存储格式(DOMAIN_VERSION 仍为 1)
33
+ 一律不动,2.2.2 升到 2.2.3 不需要迁移数据、不影响已有配置。
34
+ - 讲历史区间的陈述(「从 1.0.0 到 2.2.1 的存储格式相同」等)与 2.2.2 及更早的
35
+ 更新日志原样保留,bump 时不做全量版本替换,避免误伤历史记录。
36
+
12
37
  ## [2.2.2] - 2026-11-11
13
38
 
14
39
  纯文档版本:把已经合进 main、却没随任何 npm 版本发出的安装说明修正带上 npm。
package/README.md CHANGED
@@ -499,7 +499,7 @@ URL 内嵌凭据等 11 类模式。
499
499
  已发布到 npm,包名 `dsh-anima`,直接用包名装:
500
500
 
501
501
  ```
502
- dsh plugin add dsh-anima@2.2.2
502
+ dsh plugin add dsh-anima@2.2.3
503
503
  ```
504
504
 
505
505
  或者手工改 profile 的 `package.json`:
@@ -507,13 +507,13 @@ dsh plugin add dsh-anima@2.2.2
507
507
  ```jsonc
508
508
  {
509
509
  "dependencies": {
510
- "dsh-anima": "2.2.2"
510
+ "dsh-anima": "2.2.3"
511
511
  },
512
512
  "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
513
513
  }
514
514
  ```
515
515
 
516
- `@2.2.2` 可以换成别的已发布版本,或整个省略以装最新版。**建议 pin 住一个版本**,
516
+ `@2.2.3` 可以换成别的已发布版本,或整个省略以装最新版。**建议 pin 住一个版本**,
517
517
  否则上游发了新版,下次安装就会直接换掉。
518
518
 
519
519
  然后 `pnpm install`,**重启 DSH**。宿主侧改动一律需要重启才生效。
@@ -523,7 +523,7 @@ dsh plugin add dsh-anima@2.2.2
523
523
  想装还没发到 npm 的版本、或直接跟进 `main`,就从仓库装:
524
524
 
525
525
  ```
526
- dsh plugin add github:Melody-cx/dsh-anima#v2.2.2
526
+ dsh plugin add github:Melody-cx/dsh-anima#v2.2.3
527
527
  ```
528
528
 
529
529
  或者手工改 profile 的 `package.json`:
@@ -531,13 +531,13 @@ dsh plugin add github:Melody-cx/dsh-anima#v2.2.2
531
531
  ```jsonc
532
532
  {
533
533
  "dependencies": {
534
- "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.2"
534
+ "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.3"
535
535
  },
536
536
  "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
537
537
  }
538
538
  ```
539
539
 
540
- `#v2.2.2` 是标签(也可以写 commit SHA,或整个省略以跟随 `main`)。**建议 pin 住一个版本**,
540
+ `#v2.2.3` 是标签(也可以写 commit SHA,或整个省略以跟随 `main`)。**建议 pin 住一个版本**,
541
541
  否则上游的任何改动都会在下次安装时直接进入你的 profile。git 源下载的是**整个仓库 tarball**
542
542
  (本仓库很小),首次安装可能比 npm 源慢一些,超时的话重试一次即可。
543
543
 
package/README_EN.md CHANGED
@@ -476,7 +476,7 @@ The near-duplicate hint deliberately only hints and never merges: auto-merging w
476
476
  Published to npm as `dsh-anima`. Install by package name:
477
477
 
478
478
  ```
479
- dsh plugin add dsh-anima@2.2.2
479
+ dsh plugin add dsh-anima@2.2.3
480
480
  ```
481
481
 
482
482
  Or edit the profile's `package.json` by hand:
@@ -484,13 +484,13 @@ Or edit the profile's `package.json` by hand:
484
484
  ```jsonc
485
485
  {
486
486
  "dependencies": {
487
- "dsh-anima": "2.2.2"
487
+ "dsh-anima": "2.2.3"
488
488
  },
489
489
  "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
490
490
  }
491
491
  ```
492
492
 
493
- `@2.2.2` can be any published version, or drop it entirely to install the latest. **Pin a version** —
493
+ `@2.2.3` can be any published version, or drop it entirely to install the latest. **Pin a version** —
494
494
  otherwise a new upstream release replaces it on the next install.
495
495
 
496
496
  Then `pnpm install` and **restart DSH**. Any host-side change requires a restart to take effect.
@@ -500,7 +500,7 @@ Then `pnpm install` and **restart DSH**. Any host-side change requires a restart
500
500
  To install a version not yet on npm, or track `main` directly:
501
501
 
502
502
  ```
503
- dsh plugin add github:Melody-cx/dsh-anima#v2.2.2
503
+ dsh plugin add github:Melody-cx/dsh-anima#v2.2.3
504
504
  ```
505
505
 
506
506
  Or edit the profile's `package.json` by hand:
@@ -508,13 +508,13 @@ Or edit the profile's `package.json` by hand:
508
508
  ```jsonc
509
509
  {
510
510
  "dependencies": {
511
- "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.2"
511
+ "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.3"
512
512
  },
513
513
  "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
514
514
  }
515
515
  ```
516
516
 
517
- `#v2.2.2` is the tag (a commit SHA works too, or drop it entirely to follow `main`). **Pin a version** —
517
+ `#v2.2.3` is the tag (a commit SHA works too, or drop it entirely to follow `main`). **Pin a version** —
518
518
  otherwise any upstream change lands in your profile on the next install. A git source downloads the
519
519
  **whole repository tarball** (this one is small), so the first install may be slower than an npm source;
520
520
  retry once if it times out.
package/client/index.mjs CHANGED
@@ -46,7 +46,7 @@ window.__ModuleLoader__.load({
46
46
  const NS = 'anima'
47
47
  // 与 package.json 的 "version" 保持同一条口径:徽标上显示的版本和发布的版本
48
48
  // 必须是同一个数字,否则用户报 bug 时对不上号。
49
- const VERSION = '2.2.1'
49
+ const VERSION = '2.2.3'
50
50
  const REQUEST_TIMEOUT_MS = 15000
51
51
 
52
52
  // ── 设置页分区 ──────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-anima",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "DSH 助手人格与外挂记忆层:AI 自身的名字与角色、按工作区两级覆盖、带待审缓冲区的长期记忆",
5
5
  "icon": "./assets/icon.svg",
6
6
  "type": "module",
@@ -11,7 +11,8 @@
11
11
  "smoke": "node scripts/smoke-host.mjs && node scripts/smoke-client.mjs",
12
12
  "acceptance": "node scripts/acceptance.mjs",
13
13
  "review": "node scripts/review.mjs",
14
- "check": "node scripts/verify-core.mjs && node scripts/smoke-host.mjs && node scripts/smoke-client.mjs && node scripts/check-client-i18n.mjs"
14
+ "check": "node scripts/verify-core.mjs && node scripts/smoke-host.mjs && node scripts/smoke-client.mjs && node scripts/check-client-i18n.mjs",
15
+ "prepublishOnly": "npm run verify"
15
16
  },
16
17
  "keywords": [
17
18
  "dsh",