Skip to content

v0.6.6 — 跨平台支持 + 救砖修复

Choose a tag to compare

@nonentity303 nonentity303 released this 17 Aug 06:20
· 4 commits to master since this release

v0.6.6 — 跨平台支持(Windows / macOS / Linux)+ 修复

跨平台

  • npm 全局根探测(lib/platform.js):Windows 用 APPDATA\npm\node_modules;macOS/Linux 用 npm root -g 权威探测 + 常见路径(~/.npm-global、/usr/local/lib、/usr/lib)+ nvm 版本目录,10 分钟缓存。影响 bundle 解析兜底与 README 简介提取的全局查找
  • 外部下载器检测:aria2c 检测 Windows 用 where、macOS/Linux 用 which

修复(host 端 require 崩溃——0.6.4 只修了 verifyProfile,本版清完)

  • fixProfile 误清空 cordis.patch.yml:fixProfile 内的 require("yaml") 在 host ESM 上下文未定义 → patch 永远被判坏 → 点"修复引擎配置"会清空 patch(备份保留)。改用 parseDocument,已加沙箱断言"patch 不被改动"
  • checkDownloads 崩溃require("node:fs") 同样问题,改用顶层 import
  • package.json description 乱码:v0.6.5 升版时误用 ASCII 编码写中文 description(变 ????),本版恢复正确 UTF-8

质量

  • 新增回归测试:平台根候选(win/linux/去重)、host 代码禁止 require((仅允许重启桥接模板 1 处)、下载器平台分支
  • 沙箱(web-test profile + 3081)全链路验证通过:list/origin、市场、救砖 wire、verifyProfile、fixProfile 不误清、checkDownloads、开关持久化

安装

dsh plugin --profile web add ./dsh-plugin-manager-pro-0.6.6.tgz