@stardustlc/dsh-dream 0.4.0 → 0.4.1

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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1(2026-09-29)
4
+
5
+ - **修复 Desktop 启动失败**:前端 bundle 的模块注册 ID 与 scoped 包名不一致(注册成 `dsh-dream`,而包名是 `@stardustlc/dsh-dream`),宿主会重试加载并抛 `client-modules: duplicate factory registration for "dsh-dream"`,导致 `web boot: 1 entry did not activate`。现统一为完整包身份。
6
+ - **回归测试**:`test/client-internals.test.mjs` 新增断言——注册 ID 必须等于 `package.json` 的 `name`;并用官方 `ClientModuleSystem` 验证「冷加载 / 缓存命中 / invalidate 后重载」三条路径,改回旧 ID 能稳定复现该错误。
7
+ - 说明:0.4.0 的面板功能本身不受影响(Web 下可用),本版只是让 Desktop(`dsh-app://`)能正常激活该入口;日记数据与配置不变,无迁移。
3
8
  ## 0.4.0(2026-09-29)
4
9
 
5
10
  - **新增:只读梦境日记可视化面板**。Web profile 设置页新增「梦境日记」一节:梦境总数、心境方块序列、教训榜(按出现次数排序、同次数按最近出现时间排序,行尾 ×N 与最近一次出现时间,≥3 次标「桥接候选」并注明由 dream_bridge 决定是否写入 AGENTS.md)与卡片式时间线(时间 / 心境 / 反思 / 教训),支持关键词搜索。反思正文默认展开,超 4 行或 220 字折叠为 4 行可展开;顶部「隐私模式」可一键模糊正文与教训(仅浏览器显示层,不改变文件)。空日记与单条日记有专门呈现,不画失真图表、不显示假精度 KPI。
package/README.en.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  # dsh-dream
6
6
 
7
+ ## 0.4.1 update (2026-09-29)
8
+
9
+ - **Fixes a Desktop boot failure**: the front-end module id now matches the scoped package name (it used to register as `dsh-dream`, so the host retried the bundle and threw `duplicate factory registration`, ending in `1 entry did not activate`). No journal or config migration.
10
+
7
11
  ## 0.4.0 update (2026-09-29)
8
12
 
9
13
  Adds a read-only dream-journal panel: open **Settings →「梦境日记」(Dream journal)** to see totals, mood distribution, the lessons board and a card timeline, with keyword search. Long reflections fold automatically and a one-click privacy blur is available. The panel is read-only and the storage format is unchanged — no migration needed.
@@ -14,7 +18,7 @@ Humans consolidate memories by replaying the day during sleep — dsh-dream give
14
18
 
15
19
  ## Compatibility
16
20
 
17
- Validation host: Harness `0.2.0-rc.1` built from official sources (commit `407e65c8`) with Node `24.16.0` on 2026-09-29. All 99 plugin tests pass in an isolated environment; the plugin registers 6 tools and the `dream-protocol` skill inside a host where all 18 plugins mount together, with tool schemas and health-check contracts passing. No live ports or external services were exercised in this round; the panel is reachable on loopback only.
21
+ Validation host: Harness `0.2.0-rc.1` built from official sources (commit `407e65c8`) with Node `24.16.0` on 2026-09-29. All 112 plugin tests pass in an isolated environment; the plugin registers 6 tools and the `dream-protocol` skill inside a host where all 18 plugins mount together, with tool schemas and health-check contracts passing. No live ports or external services were exercised in this round; the panel is reachable on loopback only.
18
22
 
19
23
  Reads v0/v1/v2/v3/v4 plaintext JSONL and multi-frame zstd, legacy packed chunks and embedded streams. Only the newest canonical file is selected per session. PTC child calls retain tool names without double counting; system prompts, reasoning, tool arguments and result bodies are excluded.
20
24
 
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  # dsh-dream
4
4
 
5
+ ## 0.4.1 更新(2026-09-29)
6
+
7
+ - **修复 Desktop 启动失败**:前端模块注册 ID 现与 scoped 包名一致(此前注册成 `dsh-dream`,宿主会重试加载并抛 `duplicate factory registration`,导致 `1 entry did not activate`)。日记数据与配置不变,无迁移。
8
+
5
9
  ## 0.4.0 更新(2026-09-29)
6
10
 
7
11
  新增只读梦境日记可视化面板:打开「设置 → 梦境日记」即可查看梦境总数、心境分布、教训榜与卡片式时间线,并可按关键词搜索;正文超长自动折叠,可一键开启隐私模糊。面板只读,存储格式不变、无需迁移。
@@ -14,7 +18,7 @@
14
18
 
15
19
  ## 兼容性
16
20
 
17
- 验证宿主:官方源码构建的 Harness `0.2.0-rc.1`(commit `407e65c8`)+ Node `24.16.0`(2026-09-29)。99 项插件测试在隔离环境全部通过;同一个宿主里 18 个插件共同加载,本插件注册 6 个工具与 `dream-protocol` 技能,工具 schema 与健康检查契约通过。本轮未启用真实端口与外部服务;面板仅在本机回环地址下可达。
21
+ 验证宿主:官方源码构建的 Harness `0.2.0-rc.1`(commit `407e65c8`)+ Node `24.16.0`(2026-09-29)。112 项插件测试在隔离环境全部通过;同一个宿主里 18 个插件共同加载,本插件注册 6 个工具与 `dream-protocol` 技能,工具 schema 与健康检查契约通过。本轮未启用真实端口与外部服务;面板仅在本机回环地址下可达。
18
22
 
19
23
  支持 v0/v1/v2/v3/v4 的普通 JSONL 与多帧 zstd、旧 packed-chunk 行及内嵌 stream;升级留下多代文件时只读取每个会话的最新规范文件。PTC 子工具调用保留工具名且不重复计数,不提取系统提示、推理、工具参数或结果正文。
20
24
 
package/lib/client.js CHANGED
@@ -6,7 +6,7 @@
6
6
  // 教训榜、按时间倒序的梦卡片。数据来自插件自己的同源路由
7
7
  // GET /_dsh/dsh-dream/journal(由 src/index.ts 挂载);前端不缓存业务数据,刷新即见。
8
8
  // 隐私纪律:面板只读,不写文件、不上传;「隐私模式」只做显示层模糊,DOM 仍是明文。
9
- window.__ModuleLoader__.load({ id: "dsh-dream", factory: (require) => {
9
+ window.__ModuleLoader__.load({ id: "@stardustlc/dsh-dream", factory: (require) => {
10
10
  var module = { exports: {} }; var exports = module.exports;
11
11
  "use strict";
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stardustlc/dsh-dream",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "DSH 做梦插件:会话间隙回放近期对话、反思写入梦境日记,并把高频教训幂等桥接进 AGENTS.md;默认隐私脱敏,零运行时依赖。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",