dsh-anima 2.2.1 → 2.2.2

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,28 @@
9
9
 
10
10
  ---
11
11
 
12
+ ## [2.2.2] - 2026-11-11
13
+
14
+ 纯文档版本:把已经合进 main、却没随任何 npm 版本发出的安装说明修正带上 npm。
15
+ 不改代码、不改存储格式、没有新功能。
16
+
17
+ ### 修复
18
+
19
+ - **npm 发布包的 README 不再自相矛盾**:2.2.1 的包是从 tag b795497 打的,当时的
20
+ 安装段还写着「本插件尚未发布到 npm,从仓库直接装」——可这个包本身已经发在 npm 上。
21
+ 修正(提交 5f5049f:把安装段改成「从 npm 安装(推荐)」并给出按包名安装的命令)是在
22
+ 那个 tag 之后才合进 main 的,所以 2.2.1 包没带上它。2.2.2 把修正后的
23
+ README.md / README_EN.md 重新发布一次。
24
+ - **安装示例的版本号对齐到 2.2.2**:npm 段与 GitHub 段的 pin,以及解释 @ / # 的
25
+ 相邻文字,一起从 2.2.1 / v2.2.1 改到 2.2.2 / v2.2.2。
26
+
27
+ ### 没做
28
+
29
+ - 代码、运行时行为、存储格式(DOMAIN_VERSION 仍为 1)一律不动,2.2.1 升到 2.2.2
30
+ 不需要迁移数据。
31
+ - 讲历史区间的陈述(「从 1.0.0 到 2.2.1 的存储格式相同」等)与 2.2.1 及更早的
32
+ 更新日志原样保留,bump 时不做全量版本替换,避免误伤历史记录。
33
+
12
34
  ## [2.2.1] - 2026-11-10
13
35
 
14
36
  一轮增量 review(按 git diff 逐段读 23 个提交)报出两条,都修掉了。这是纯修复版本,
package/README.md CHANGED
@@ -494,12 +494,12 @@ URL 内嵌凭据等 11 类模式。
494
494
 
495
495
  ## 安装
496
496
 
497
- ### 从 GitHub 安装(推荐)
497
+ ### 从 npm 安装(推荐)
498
498
 
499
- 本插件尚未发布到 npm,从仓库直接装:
499
+ 已发布到 npm,包名 `dsh-anima`,直接用包名装:
500
500
 
501
501
  ```
502
- dsh plugin add github:Melody-cx/dsh-anima#v2.2.1
502
+ dsh plugin add dsh-anima@2.2.2
503
503
  ```
504
504
 
505
505
  或者手工改 profile 的 `package.json`:
@@ -507,13 +507,37 @@ dsh plugin add github:Melody-cx/dsh-anima#v2.2.1
507
507
  ```jsonc
508
508
  {
509
509
  "dependencies": {
510
- "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.1"
510
+ "dsh-anima": "2.2.2"
511
511
  },
512
512
  "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
513
513
  }
514
514
  ```
515
515
 
516
- `#v2.2.1` 是标签(也可以写 commit SHA,或整个省略以跟随 `main`)。**建议 pin 住一个版本**,
516
+ `@2.2.2` 可以换成别的已发布版本,或整个省略以装最新版。**建议 pin 住一个版本**,
517
+ 否则上游发了新版,下次安装就会直接换掉。
518
+
519
+ 然后 `pnpm install`,**重启 DSH**。宿主侧改动一律需要重启才生效。
520
+
521
+ ### 从 GitHub 安装(跟进未发布改动)
522
+
523
+ 想装还没发到 npm 的版本、或直接跟进 `main`,就从仓库装:
524
+
525
+ ```
526
+ dsh plugin add github:Melody-cx/dsh-anima#v2.2.2
527
+ ```
528
+
529
+ 或者手工改 profile 的 `package.json`:
530
+
531
+ ```jsonc
532
+ {
533
+ "dependencies": {
534
+ "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.2"
535
+ },
536
+ "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
537
+ }
538
+ ```
539
+
540
+ `#v2.2.2` 是标签(也可以写 commit SHA,或整个省略以跟随 `main`)。**建议 pin 住一个版本**,
517
541
  否则上游的任何改动都会在下次安装时直接进入你的 profile。git 源下载的是**整个仓库 tarball**
518
542
  (本仓库很小),首次安装可能比 npm 源慢一些,超时的话重试一次即可。
519
543
 
package/README_EN.md CHANGED
@@ -471,12 +471,12 @@ The near-duplicate hint deliberately only hints and never merges: auto-merging w
471
471
 
472
472
  ## Installation
473
473
 
474
- ### From GitHub (recommended)
474
+ ### From npm (recommended)
475
475
 
476
- The plugin is not published to npm yet; install it straight from the repository:
476
+ Published to npm as `dsh-anima`. Install by package name:
477
477
 
478
478
  ```
479
- dsh plugin add github:Melody-cx/dsh-anima#v2.2.1
479
+ dsh plugin add dsh-anima@2.2.2
480
480
  ```
481
481
 
482
482
  Or edit the profile's `package.json` by hand:
@@ -484,13 +484,37 @@ Or edit the profile's `package.json` by hand:
484
484
  ```jsonc
485
485
  {
486
486
  "dependencies": {
487
- "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.1"
487
+ "dsh-anima": "2.2.2"
488
488
  },
489
489
  "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
490
490
  }
491
491
  ```
492
492
 
493
- `#v2.2.1` is the tag (a commit SHA works too, or drop it entirely to follow `main`). **Pin a version** —
493
+ `@2.2.2` can be any published version, or drop it entirely to install the latest. **Pin a version** —
494
+ otherwise a new upstream release replaces it on the next install.
495
+
496
+ Then `pnpm install` and **restart DSH**. Any host-side change requires a restart to take effect.
497
+
498
+ ### From GitHub (to follow unreleased changes)
499
+
500
+ To install a version not yet on npm, or track `main` directly:
501
+
502
+ ```
503
+ dsh plugin add github:Melody-cx/dsh-anima#v2.2.2
504
+ ```
505
+
506
+ Or edit the profile's `package.json` by hand:
507
+
508
+ ```jsonc
509
+ {
510
+ "dependencies": {
511
+ "dsh-anima": "github:Melody-cx/dsh-anima#v2.2.2"
512
+ },
513
+ "dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
514
+ }
515
+ ```
516
+
517
+ `#v2.2.2` is the tag (a commit SHA works too, or drop it entirely to follow `main`). **Pin a version** —
494
518
  otherwise any upstream change lands in your profile on the next install. A git source downloads the
495
519
  **whole repository tarball** (this one is small), so the first install may be slower than an npm source;
496
520
  retry once if it times out.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-anima",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "DSH 助手人格与外挂记忆层:AI 自身的名字与角色、按工作区两级覆盖、带待审缓冲区的长期记忆",
5
5
  "icon": "./assets/icon.svg",
6
6
  "type": "module",