dsh-noema v0.1.0-rc.4
Pre-releasedsh-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删除了settingsNamespace(register现在直接接受字面量并自行校验),插件启动时SyntaxError: does not provide an export named 'settingsNamespace',拖垮 profile 加载。修复:不再导入该符号,直接传'noema-memory';旧宿主同样接受。/ DSH 0.1.5 removedsettingsNamespacefrom@deepseek-ai/dsh-settings(registernow takes the literal and validates it itself); the plugin's import threwSyntaxError: 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.5ctx.slotsis declared by@deepseek-ai/dsh-client-ui-renderer; the client types anddsh.client.injectfollow, and peer ranges point at0.1.5-rc.1. - 新增两条反向断言测试:构建产物
lib/settings.js不得从 dsh-settings 导入运行时值;inject 列表不得再出现被删的包。/ Two guard tests: the builtlib/settings.jsimports 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 assigningundefined, leaving a strayundefined/storagesdirectory 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 undernext; the six platform-native packages ship at the same version. - 需要 DSH
0.1.5-rc.1;peer 范围不再覆盖 0.1.1。/ Requires DSH0.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