Skip to content

dsh-noema v0.1.0-rc.4

Pre-release
Pre-release

Choose a tag to compare

@finiking finiking released this 10 Sep 12:51
· 1 commit to main since this release

dsh-noema v0.1.0-rc.4

DSH 0.1.5 适配版。/ The DSH 0.1.5 adaptation.

🐛 修复 / Fixed

  • 在 DSH 0.1.5-rc.1 上整个 web profile 起不来 / The whole web profile refused to boot on DSH 0.1.5-rc.1 — 0.1.5 从 @deepseek-ai/dsh-settings 删除了 settingsNamespaceregister 现在直接接受字面量并自行校验),插件启动时 SyntaxError: does not provide an export named 'settingsNamespace',拖垮 profile 加载。修复:不再导入该符号,直接传 'noema-memory';旧宿主同样接受。/ DSH 0.1.5 removed settingsNamespace from @deepseek-ai/dsh-settings (register now takes the literal and validates it itself); the plugin's import threw SyntaxError: does not provide an export named 'settingsNamespace' and took the profile down with it. The plugin now passes 'noema-memory' directly, which older hosts accept too.
  • 客户端依赖已不存在的 @deepseek-ai/dsh-client-runtime / The client leaned on the removed @deepseek-ai/dsh-client-runtime — 0.1.5 里 ctx.slots 改由 @deepseek-ai/dsh-client-ui-renderer 声明;类型导入与 dsh.client.inject 随之迁移,peer 范围指向 0.1.5-rc.1。/ In 0.1.5 ctx.slots is declared by @deepseek-ai/dsh-client-ui-renderer; the client types and dsh.client.inject follow, and peer ranges point at 0.1.5-rc.1.
  • 新增两条反向断言测试:构建产物 lib/settings.js 不得从 dsh-settings 导入运行时值;inject 列表不得再出现被删的包。/ Two guard tests: the built lib/settings.js imports no runtime value from dsh-settings, and the inject list never names the removed package again.
  • tests/import.test.mjs 恢复环境变量时把 undefined 写成字符串,每次跑测试在仓库根留下 undefined/storages;改为删除未设置的键。/ The import test restored env vars by assigning undefined, leaving a stray undefined/storages directory after every run; unset keys are now deleted instead.

✅ 验证 / Verified

在全新安装的 dsh@0.1.5-rc.1 与独立 DSH_HOME 里用打包后的 tarball 实测:profile 正常启动,状态路由返回 running,设置写入经 0.1.5 的 settings provider 落盘到 settings.yaml,非法值被校验拒绝;真实浏览器中"Noema 记忆"设置页渲染完整并可 round-trip 开关,控制台 0 error。30 条测试 29 通过、1 跳过(e2e 由发布流水线在真实二进制上执行)。/ Exercised on a fresh dsh@0.1.5-rc.1 install with its own DSH_HOME using the packed tarball: the profile boots, the status route reports running, settings writes persist to settings.yaml through the 0.1.5 provider and invalid values are refused; the "Noema Memory" settings page renders and round-trips a toggle in a real browser with zero console errors. 30 tests: 29 pass, 1 skipped (the e2e runs in the release pipeline against the real binary).

📦 安装 / Install

dsh plugin --profile web add @zseven-w/dsh-noema@next
dsh web

⚠️ 说明 / Notes

  • npm dist-tag: next;六平台原生包随主包同版发布。/ Published under next; the six platform-native packages ship at the same version.
  • 需要 DSH 0.1.5-rc.1;peer 范围不再覆盖 0.1.1。/ Requires DSH 0.1.5-rc.1; the peer ranges no longer cover 0.1.1.

Full Changelog: v0.1.0-rc.3...v0.1.0-rc.4