Repository navigation
Releases
Releases · asfre/dsh-mcp-global-manager
v0.2.0
v0.2.0 — 2026-11-05
适用 Harness 版本 / Compatible harness: >= 0.1.0-rc.6 <0.3.0-0
类型 / Type: 兼容性加固 / Compatibility hardening
更新内容 / What's changed
- 兼容:放宽
engines.dsh至>=0.1.0-rc.6 <0.3.0-0,覆盖更多老版本 DSH — Compat: relaxedengines.dshto>=0.1.0-rc.6 <0.3.0-0, covering more old DSH builds. - 兼容:浏览器半改为特性探测(缺
webServer/ctx.slots/locale时优雅降级),新增「当前环境不可用」横幅而非静默白屏 — Compat: client now feature-detects; graceful degradation whenwebServer/ctx.slots/localeare absent; added an "environment unavailable" banner instead of a blank screen. - 兼容:宿主侧
webServer注册整体包 try/catch,避免异常拖垮宿主插件加载器 — Compat: host-sidewebServerregistration wrapped in try/catch so an unexpected error can't take down the host's plugin loader. - 文案:写回→同步回、采纳→加入 等整界面大白话化,降低理解门槛 — Wording: plain-language rewrite across the UI (write-back → sync-back, adopt → add-to-DSH).
- 文档:README 重构(兼容性矩阵 + Issue 模板 + 中英双语),新增
README.en.md互链 — Docs: README reworked (compatibility matrix + issue template + bilingual), added cross-linkedREADME.en.md. - 修复:备份目录「浏览」选空文件夹时切换失败 —— 浏览器沙箱对空目录连目录名都不返回,旧逻辑只弹「请直接输入完整路径」死循环。宿主侧新增系统原生目录窗口回退(Electron → 系统对话框,Windows/macOS/Linux),空目录也能拿到完整绝对路径;前端空文件夹改为聚焦输入框 + 可操作引导 — Fix: picking an empty folder for the backup dir never worked because browser sandboxes return neither files nor a fakepath; the host now falls back to a native system folder dialog and the client gives an actionable hint instead of a dead-end message.
- 修复:浅色 / 壁纸主题下工具图标、徽章、卡片、滚动条、提示气泡变深色块(部分
--dsw-alias-bg-*令牌未注入时兜底色写死深色,造成深底深字看不清报错)。全部兜底色改为中性自适应;工具图标只在被选中的条目上显示强调色 — Fix: dark fallback colors produced unreadable "black blocks" under light/wallpaper themes; all fallbacks are now theme-adaptive and source icons only light up on the selected tool. - 健壮性:
/settings支持目录名智能解析与 Windows 反斜杠路径规范化;saveBackupDir不再因 localStorage 残留而跳过服务端落盘;系统窗口「取消」与「不可用」分离,取消后不再弹第二个窗口 — Robustness:/settingsresolves bare directory names and normalizes Windows paths; a stale localStorage value no longer skips the server write; dialog "canceled" and "unavailable" are distinguished so canceling never opens a second picker. - 修复:浅色 / 壁纸主题下所有表格的吸顶表头背景半透明,滚动时数据行文字透过表头与表头文字叠印(同步台 / DSH 条目 / 来源注册表 / 粘贴导入预览共 23 个表头单元格)。表头改为「不透明 Canvas 底 + 半透明主题色层」叠加,提升
z-index并补内阴影分界线 — Fix: sticky table headers were translucent under light/wallpaper themes, so scrolling rows bled through and overprinted header text; all 23 header cells now use an opaque base with a translucent theme layer, a higher z-index and a crisp separator. - 文档:中英 README 的 4 张截图全部按当前 UI 重新生成 —— 旧图仍是 10 月的折叠式原型界面,带个人壁纸与「采纳 / 写回」旧文案。图注同步对齐,并把
assets/screenshot-*.png加进files,避免 tarball 里图片裂开 — Docs: all four screenshots in both READMEs were regenerated from the current UI (the old ones still showed the October prototype with a personal wallpaper and outdated wording); captions updated and screenshot assets added tofilesso they ship in the tarball. - 发布前脱敏:移除代码注释与内部文档里的真实姓名、本机绝对路径和昵称;README 示例统一用
~/%APPDATA%占位,git 历史无残留 — Pre-release scrub: removed real names, local absolute paths and nicknames from code comments and internal docs; examples now use generic~/%APPDATA%placeholders with no git history residue.
升级提示 / Upgrade notes
- 建议升级;本次为纯向后兼容增强,无破坏性变更,旧版
cordis.patch.yml受管行与state.json账本均可直接沿用 — Recommended upgrade; purely backward-compatible, no breaking changes. Existingcordis.patch.ymlrows andstate.jsonledger carry over as-is. - 本批次改到了宿主半
lib/index.js,升级后需彻底重启 DSH(托盘退出再打开);仅Ctrl+R刷新不会加载新的宿主代码 — This batch touches the host halflib/index.js, so a full DSH restart is required; a plainCtrl+Rwon't reload host-side code.