dsh-memoir 0.5.4 → 0.5.5

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/README.en.md CHANGED
@@ -82,6 +82,13 @@ need long-tail history? memoir_read (local relevance-ranked recall)
82
82
 
83
83
  **Session Snapshot freezing semantics**: one session's injected text is built once and frozen (stable prompt prefix, maximizing prompt-prefix cache hits); the current session does not re-consume memory it just wrote, and a new session rebuilds and sees the latest memory. Since v0.4.2, when there is no unique session identity (session.id / agent.id), freezing is skipped — a cache miss beats wrongly reusing another session's snapshot.
84
84
 
85
+ ## v0.5.5 Sidebar visual-parity fix
86
+
87
+ - Fixed the stylesheet-marker collision: another style carrying the same generic `data-plugin` value no longer makes Memoir skip its own CSS. The owned stylesheet has a unique `data-dsh-memoir-style` marker and is removed on plugin unload.
88
+ - Matched dsh-web-ui-all 0.3.x task-board and skill-center sidebar geometry: 36px row height, 10px horizontal padding, a 24px icon box, an 18px SVG, and an 8px icon-label gap.
89
+ - The collapsed rail now uses the same 36px circular control and 12px row spacing, hiding copy while preserving localized `aria-label` and tooltip text; the open-book glyph remains distinct from Skill Center.
90
+ - Playwright runtime assertions compare expanded and collapsed row/icon/svg/label coordinates, box sizes, typography, and color instead of relying on screenshots alone.
91
+
85
92
  ## v0.5.4 Complete GUI, bilingual settings, and Web UI integration
86
93
 
87
94
  - The development and peer-dependency baseline is `@deepseek-ai/dsh-* 0.1.1-rc.2`.
@@ -132,9 +139,14 @@ The Project / Global / Search / Add / Delete / Diagnostics architecture now form
132
139
  - **Complete lifecycle forms (v0.5.4)**: add and edit section, title, content, importance, pinning, tags, and explicit replacement relationships; filter by status and section
133
140
  - **Complete live settings (v0.5.4)**: adjust agent injection, auto-distill, Hot Memory target/hard limits, recall defaults/maxima, session snapshots, and query cache immediately
134
141
  - **Settings integration (v0.5.4)**: the same bilingual card mounts in the Memory panel and Settings → Web UI Plugins, and redraws immediately when the page language changes
142
+ - **Visual parity with the dsh-web-ui family (v0.5.5)**: the panel, sidebar entry, forms, cards and tabs ride the `--dsw-alias-*` / `--dsw-specific-*` / `--dsw-font-family` design tokens (with standalone fallbacks), matching the task-board / ssh / skill-explorer panels shipped by dsh-web-ui-all; the center-column panel mutual-exclusion protocol is aligned too.
135
143
 
136
144
  ## Screenshots
137
145
 
146
+ **v0.5.5 sidebar parity**: Memory now matches Task Board, SSH, and Skill Center in row height, horizontal position, icon box, and SVG size.
147
+
148
+ ![v0.5.5 sidebar parity](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.5.5/picture/v0.5.5-sidebar-parity-zh.png)
149
+
138
150
  **v0.5.4 memory management**: importance, tags, replacement relationships, status/section filters, and lifecycle actions in one panel.
139
151
 
140
152
  ![v0.5.4 memory management](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.5.4/picture/v0.5.4-memory-management-zh.png)
@@ -243,7 +255,7 @@ Each plugin has its own focus — pick per need; no "which is stronger" narrativ
243
255
  pnpm install # install devDeps (typescript, esbuild, @deepseek-ai/* type packages)
244
256
  pnpm run build # tsc builds the host + esbuild builds the client bundle
245
257
  pnpm run typecheck # full type check (src + test)
246
- pnpm test # 160 tests: store (incl. multi-process lock) / settings / snapshot / selector / retrieval / tools / routes / auto-distill / GUI mounting & bilingual behavior / integration / bundle protocol & purity / release notes
258
+ pnpm test # 163 tests: store (incl. multi-process lock) / settings / snapshot / selector / retrieval / tools / routes / auto-distill / GUI mounting, stylesheet ownership, panel activation & bilingual behavior / integration / bundle protocol & purity / release notes
247
259
  npm run bench # benchmark (100/1k/10k/100k entries); results written to bench/report.md
248
260
  ```
249
261
 
@@ -277,7 +289,7 @@ Bug reports must include screenshot / log evidence, a smoke test, code reference
277
289
 
278
290
  ## Release
279
291
 
280
- Current stable release: **v0.5.4** (2026-08-23) · [GitHub Release](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.5.4) · [npm](https://www.npmjs.com/package/dsh-memoir/v/0.5.4). Full history is in [CHANGELOG.md](./CHANGELOG.md).
292
+ Current stable release: **v0.5.5** (2026-08-24) · [GitHub Release](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.5.5) · [npm](https://www.npmjs.com/package/dsh-memoir/v/0.5.5). Full history is in [CHANGELOG.md](./CHANGELOG.md).
281
293
 
282
294
  Every version keeps Chinese and English release notes in sync. GitHub Releases show Chinese by default and place the English notes in a collapsible `English` section.
283
295
 
package/README.md CHANGED
@@ -82,6 +82,13 @@ memoir_record 沉淀工作 / 教训 / 下一步
82
82
 
83
83
  **Session Snapshot 冻结语义**:同一 session 的注入文本只构建一次并冻结(prompt 前缀稳定,最大化 prompt-prefix cache 命中);当前 session 不重新消费自己刚写的记忆,新 session 重建并看到最新记忆。v0.4.2 起,没有唯一会话身份(session.id / agent.id)时**不做冻结**——宁可 cache miss,不可跨 session 错复用旧快照。
84
84
 
85
+ ## v0.5.5 侧栏视觉一致性修复
86
+
87
+ - 修复样式标记冲突:其他同名 `data-plugin` 样式不再导致 Memoir 跳过自身 CSS 注入,插件样式改由唯一 `data-dsh-memoir-style` 标识并随插件卸载清理。
88
+ - 与 dsh-web-ui-all 0.3.x 的任务看板和技能中心使用同一侧栏几何:36px 行高、10px 水平内边距、24px 图标盒、18px SVG、8px 图文间距。
89
+ - 收起态统一为 36px 圆形入口和 12px 行间距,隐藏文字但保留本地化 `aria-label` / tooltip;开放书图标继续与技能中心图标区分。
90
+ - Playwright 实机断言同时比较宽屏与收起态的 row/icon/svg/label 坐标、盒尺寸、字体和颜色,不再仅凭截图判断。
91
+
85
92
  ## v0.5.4 完整 GUI、双语设置与 Web UI 适配
86
93
 
87
94
  - 当前开发基线为 `@deepseek-ai/dsh-* 0.1.1-rc.2`;peer dependency 与开发依赖已统一到 rc2。
@@ -132,9 +139,14 @@ Project / Global / Search / Add / Delete / Diagnostics 架构已经扩展为完
132
139
  - **完整生命周期表单(v0.5.4)**:新建与编辑均支持分类、标题、正文、重要度、置顶、标签和显式替代关系;支持状态与分类双重筛选
133
140
  - **完整实时设置(v0.5.4)**:agent 注入、auto-distill、Hot Memory 目标/硬上限、读取默认/最大条数、会话快照和查询缓存均可即时调整
134
141
  - **Settings 集成(v0.5.4)**:同一双语设置卡同时挂载到记忆面板和 Settings → Web UI 插件;页面切换语言时即时重绘
142
+ - **视觉与 dsh-web-ui 家族一致(v0.5.5)**:面板、侧栏入口与表单/卡片/标签页共用 `--dsw-alias-*` / `--dsw-specific-*` / `--dsw-font-family` 设计令牌(保留独立安装回退),与 dsh-web-ui-all 的 task-board / ssh / skill-explorer 同族;中心列面板互斥协议已对齐。
135
143
 
136
144
  ## 界面预览
137
145
 
146
+ **v0.5.5 侧栏一致性**:记忆入口与任务看板、SSH、技能中心在行高、水平位置、图标盒和 SVG 尺寸上保持一致。
147
+
148
+ ![v0.5.5 侧栏一致性](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.5.5/picture/v0.5.5-sidebar-parity-zh.png)
149
+
138
150
  **v0.5.4 记忆管理**:重要度、标签、替代关系、状态/分类筛选与完整生命周期操作集中在同一面板。
139
151
 
140
152
  ![v0.5.4 记忆管理](https://raw.githubusercontent.com/Qinling-Melon-Farmers/dsh-memoir/v0.5.4/picture/v0.5.4-memory-management-zh.png)
@@ -243,7 +255,7 @@ JSON 是 source of truth,Markdown 是 generated projection:面板、工具
243
255
  pnpm install # 安装 devDeps(typescript、esbuild、@deepseek-ai/* 类型包)
244
256
  pnpm run build # tsc 构建 host + esbuild 构建 client bundle
245
257
  pnpm run typecheck # 全量类型检查(src + test)
246
- pnpm test # 160 项测试:store(含多进程锁) / settings / snapshot / selector / retrieval / tools / routes / 自动收尾 / GUI 挂载与双语 / 集成 / bundle 协议与纯净性 / 发布说明
258
+ pnpm test # 163 项测试:store(含多进程锁) / settings / snapshot / selector / retrieval / tools / routes / 自动收尾 / GUI 挂载、样式所有权、面板激活与双语 / 集成 / bundle 协议与纯净性 / 发布说明
247
259
  npm run bench # benchmark(100/1k/10k/100k 条目),结果写入 bench/report.md
248
260
  ```
249
261
 
@@ -278,7 +290,7 @@ PR 请先提 Issue 讨论。
278
290
 
279
291
  ## Release
280
292
 
281
- 当前稳定版:**v0.5.4**(2026-08-23) · [GitHub Release](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.5.4) · [npm](https://www.npmjs.com/package/dsh-memoir/v/0.5.4)。完整历史见 [CHANGELOG.md](./CHANGELOG.md)。
293
+ 当前稳定版:**v0.5.5**(2026-08-24) · [GitHub Release](https://github.com/Qinling-Melon-Farmers/dsh-memoir/releases/tag/v0.5.5) · [npm](https://www.npmjs.com/package/dsh-memoir/v/0.5.5)。完整历史见 [CHANGELOG.md](./CHANGELOG.md)。
282
294
 
283
295
  每个版本的更新日志均同步维护中英文;GitHub Release 默认展开中文,英文说明收纳在可折叠的 `English` 区域。
284
296