dsh-anima 2.2.1 → 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 +47 -0
- package/README.md +29 -5
- package/README_EN.md +29 -5
- package/client/index.mjs +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,53 @@
|
|
|
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
|
+
|
|
37
|
+
## [2.2.2] - 2026-11-11
|
|
38
|
+
|
|
39
|
+
纯文档版本:把已经合进 main、却没随任何 npm 版本发出的安装说明修正带上 npm。
|
|
40
|
+
不改代码、不改存储格式、没有新功能。
|
|
41
|
+
|
|
42
|
+
### 修复
|
|
43
|
+
|
|
44
|
+
- **npm 发布包的 README 不再自相矛盾**:2.2.1 的包是从 tag b795497 打的,当时的
|
|
45
|
+
安装段还写着「本插件尚未发布到 npm,从仓库直接装」——可这个包本身已经发在 npm 上。
|
|
46
|
+
修正(提交 5f5049f:把安装段改成「从 npm 安装(推荐)」并给出按包名安装的命令)是在
|
|
47
|
+
那个 tag 之后才合进 main 的,所以 2.2.1 包没带上它。2.2.2 把修正后的
|
|
48
|
+
README.md / README_EN.md 重新发布一次。
|
|
49
|
+
- **安装示例的版本号对齐到 2.2.2**:npm 段与 GitHub 段的 pin,以及解释 @ / # 的
|
|
50
|
+
相邻文字,一起从 2.2.1 / v2.2.1 改到 2.2.2 / v2.2.2。
|
|
51
|
+
|
|
52
|
+
### 没做
|
|
53
|
+
|
|
54
|
+
- 代码、运行时行为、存储格式(DOMAIN_VERSION 仍为 1)一律不动,2.2.1 升到 2.2.2
|
|
55
|
+
不需要迁移数据。
|
|
56
|
+
- 讲历史区间的陈述(「从 1.0.0 到 2.2.1 的存储格式相同」等)与 2.2.1 及更早的
|
|
57
|
+
更新日志原样保留,bump 时不做全量版本替换,避免误伤历史记录。
|
|
58
|
+
|
|
12
59
|
## [2.2.1] - 2026-11-10
|
|
13
60
|
|
|
14
61
|
一轮增量 review(按 git diff 逐段读 23 个提交)报出两条,都修掉了。这是纯修复版本,
|
package/README.md
CHANGED
|
@@ -494,12 +494,12 @@ URL 内嵌凭据等 11 类模式。
|
|
|
494
494
|
|
|
495
495
|
## 安装
|
|
496
496
|
|
|
497
|
-
### 从
|
|
497
|
+
### 从 npm 安装(推荐)
|
|
498
498
|
|
|
499
|
-
|
|
499
|
+
已发布到 npm,包名 `dsh-anima`,直接用包名装:
|
|
500
500
|
|
|
501
501
|
```
|
|
502
|
-
dsh plugin add
|
|
502
|
+
dsh plugin add dsh-anima@2.2.3
|
|
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": "
|
|
510
|
+
"dsh-anima": "2.2.3"
|
|
511
511
|
},
|
|
512
512
|
"dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
|
|
513
513
|
}
|
|
514
514
|
```
|
|
515
515
|
|
|
516
|
-
|
|
516
|
+
`@2.2.3` 可以换成别的已发布版本,或整个省略以装最新版。**建议 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.3
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
或者手工改 profile 的 `package.json`:
|
|
530
|
+
|
|
531
|
+
```jsonc
|
|
532
|
+
{
|
|
533
|
+
"dependencies": {
|
|
534
|
+
"dsh-anima": "github:Melody-cx/dsh-anima#v2.2.3"
|
|
535
|
+
},
|
|
536
|
+
"dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
|
|
537
|
+
}
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
`#v2.2.3` 是标签(也可以写 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
|
|
474
|
+
### From npm (recommended)
|
|
475
475
|
|
|
476
|
-
|
|
476
|
+
Published to npm as `dsh-anima`. Install by package name:
|
|
477
477
|
|
|
478
478
|
```
|
|
479
|
-
dsh plugin add
|
|
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,37 @@ Or edit the profile's `package.json` by hand:
|
|
|
484
484
|
```jsonc
|
|
485
485
|
{
|
|
486
486
|
"dependencies": {
|
|
487
|
-
"dsh-anima": "
|
|
487
|
+
"dsh-anima": "2.2.3"
|
|
488
488
|
},
|
|
489
489
|
"dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
|
|
490
490
|
}
|
|
491
491
|
```
|
|
492
492
|
|
|
493
|
-
|
|
493
|
+
`@2.2.3` 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.3
|
|
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.3"
|
|
512
|
+
},
|
|
513
|
+
"dsh": { "profile": { "bundles": [ /* ... */ "dsh-anima" ] } }
|
|
514
|
+
}
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
`#v2.2.3` 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/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.
|
|
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.
|
|
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",
|