Skip to content

v0.4.5: Better Sidebar compatibility

Choose a tag to compare

@Grivn Grivn released this 02 Sep 16:15
5153096

中文

v0.4.5 让已安装 dsh-better-sidebar 的用户可以在其中打开记忆系统,同时保留原有的 DSH 普通 Sidebar 入口。Issue #153、PR #157。

修复

  • 默认 displayMode: sidebar 下,Mnemon 现在使用 Better Sidebar 文档化的可选 registerTab 服务。单实例 Tab 使用稳定 id dsh-mnemon:memory,并与 DSH 普通 Sidebar 入口复用同一个记忆系统视图。
  • 注册不依赖激活顺序:Better Sidebar 可以先于或晚于 Mnemon 加载;服务替换、卸载或热重载时也会正确注销并恢复,不产生重复入口。
  • Better Sidebar Tab 使用该 Tab 传入的会话和工作区作用域,不会错误沿用全局当前会话。设置 tabEnabled: false 或 displayMode: builtin 时仍不会注册此 Tab。

升级与兼容性

在所属 DSH profile 中安装 dsh-mnemon@0.4.5,然后重启。Better Sidebar 仍为可选组件,不新增运行时依赖。本次验证的兼容目标为 dsh-better-sidebar@0.18.1-alpha.0;未提供该服务的 profile 继续保留原有独立 Sidebar 行为。

记忆数据、存储路径、Pack 格式、Provider 凭据、RPC 权限、设置、生产依赖和会话投影状态均不变,无需迁移或删除缓存。v0.4.4 的会话投影兼容性保持不变;本补丁不包含无关的 v0.5 开发内容。

验证

  • 实现与发布候选在 Node 24.18.0 与 pnpm 10.13.1 下通过完整 pnpm run verify:649 项测试通过,1 项 Windows 专用测试在 macOS 跳过。109 个构建文件的确定性检查、包含 35 个工具与 5 个代表性 Mnemon 工具的 Headless 激活、设置迁移与重启、10 个 Node 兼容公开入口、116 个文件的包内容、publint 和 attw 均通过。
  • 两个真实隔离 WebUI profile 覆盖两种客户端激活顺序:DSH 0.1.1-rc.2 与 @linxin666/dsh-web-all@0.3.6 环境先加载 Better Sidebar;DSH 0.1.2-alpha.3 环境先加载 Mnemon。两者都保留且仅保留 1 个普通 Sidebar 记忆系统行,Better Sidebar 菜单也仅出现 1 个入口;作用域视图正常渲染,新浏览器标签页均为 0 error / 0 warning,报告版本环境的刷新恢复也通过。
  • PR #157 与发布 PR #158 的 Linux Node 22.19/24、Windows Node 24 和 DSH alpha 源码 CI 任务均通过。详见环境记录与截图。

回滚

在同一 profile 中重新安装 dsh-mnemon@0.4.4 并重启,无需转换数据。Better Sidebar 可能在自身持久化布局中保留已打开的 dsh-mnemon:memory Tab;回滚后它可能暂时显示为 orphaned tab,可直接关闭,原有 DSH 普通 Sidebar 入口仍可使用。

上一版:v0.4.4。

English

v0.4.5 makes Memory System available inside an installed dsh-better-sidebar without replacing its normal DSH Sidebar entry. Issue #153, PR #157.

Fixes

  • In the default displayMode: sidebar, Mnemon now uses Better Sidebar's documented optional registerTab service. The single-instance tab has the stable id dsh-mnemon:memory and reuses the same Memory System view as the normal DSH Sidebar entry.
  • Registration is activation-order independent: Better Sidebar can load before or after Mnemon, and service replacement, unload, or hot reload disposes and restores registration without duplicates.
  • A Better Sidebar tab uses the session and workspace scope supplied for that tab rather than leaking the globally active session. Setting tabEnabled: false or displayMode: builtin continues to suppress this registration.

Upgrade and compatibility

Install dsh-mnemon@0.4.5 in the owning DSH profile and restart it. Better Sidebar remains optional and no new runtime dependency is added. The compatibility target tested here is dsh-better-sidebar@0.18.1-alpha.0; profiles without that service retain the existing standalone Sidebar behavior.

Memory data, storage paths, Pack formats, Provider credentials, RPC authority, settings, production dependencies, and session projection state are unchanged. No migration or cache deletion is required. The v0.4.4 session projection compatibility remains intact, and this patch contains no unrelated v0.5 development work.

Verification

  • The implementation and release candidate passed complete pnpm run verify on Node 24.18.0 with pnpm 10.13.1: 649 tests passed and one Windows-only test was skipped on macOS. All 109 deterministic build files, Headless activation with 35 tools and five representative Mnemon tools, settings migration and restart, ten Node-compatible public entries, the 116-file package contents, publint, and attw passed.
  • Two isolated real WebUI profiles covered both client activation orders. DSH 0.1.1-rc.2 with @linxin666/dsh-web-all@0.3.6 loaded Better Sidebar first; DSH 0.1.2-alpha.3 loaded Mnemon first. Both retained exactly one normal Memory System row and exposed exactly one Better Sidebar menu item; the scoped view rendered, fresh browser tabs reported zero errors and warnings, and reload restoration passed in the reported-version profile.
  • PR #157 and release PR #158 passed Linux Node 22.19/24, Windows Node 24, and DSH alpha source CI. See the environment record and screenshots.

Rollback

Reinstall dsh-mnemon@0.4.4 in the same profile and restart it. No data conversion is needed. Better Sidebar can retain an already opened dsh-mnemon:memory tab in its own persisted layout; after rollback that tab can temporarily appear orphaned and may be closed. The normal DSH Sidebar entry remains available.

Previous release: v0.4.4.

Release PR #158 · Full changelog

发布后验证 / Post-publication verification

npm 发布流水线与合并后主线 CI均成功,包含 DSH alpha 源码兼容性验证;npm latest 已指向 0.4.5。重新下载正式 tarball 后,registry SHA-1 与 SHA-512 完整性校验均通过。

The npm publication workflow and merged-main CI both succeeded, including DSH alpha source compatibility. npm latest resolves to 0.4.5; the downloaded release tarball passed its registry SHA-1 and SHA-512 integrity checks.

正式包包含 116 个文件,其中 115 个与本地已验证候选逐字节一致。仅 client.js 的 6 条 CSS 虚拟模块 region 注释使用了不同的构建根路径;归一化路径后整文件完全一致,全部执行代码、CSS、声明和元数据保持一致。

The published package contains 116 files, of which 115 match the locally verified candidate byte-for-byte. Only six CSS virtual-module region comments in client.js use a different build-root path; the complete file matches after path normalization, with all executable code, CSS, declarations, and metadata unchanged.

通过 registry 名称在全新隔离目录安装 dsh-mnemon@0.4.5 后,版本正确,全部 10 个 Node 兼容公开入口均成功导入。此前保留的两个隔离 WebUI 场景与截图对应的候选执行内容已由上述逐文件对照覆盖。

A fresh registry-name installation of dsh-mnemon@0.4.5 reported the correct version and imported all ten Node-compatible public entries. The executable candidate covered by the two preserved isolated WebUI scenarios and screenshots is accounted for by the file comparison above.

Registry tarball SHA-256: 4e371afc95046dc856d7a1b40a3f751ecf93e1b4e7cd9ba0a2095d442ebfabcf.