DSH | dsh-plugin-hub | 框架升级安全与插件适配门(把 9/4 升级事故教训固化进控制台) #5564
Noob-stupid
started this conversation in
Show Your Plugins!
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
_> 非官方项目,由社区成员独立开发和维护;与 DeepSeek 官方无任何关联。
项目地址: https://github.com/Noob-stupid/dsh-plugin-hub | npm:
@noob-stupid/dsh-plugin-consolev0.3.25(npm | README | Release)一句话: DSH 插件管理面板 + 多源插件市场 + 技能/套装安装,并首次把「框架升级安全三件套」与「插件适配门(兼容检测)」做成控制台机制——9 月 4 日
0.1.1-rc.2 → 0.1.2-rc.1升级事故的全部教训都在这里。事故背景(为什么要做这个)
9/4 官方升级后本机服务无法拉起,复盘根因:
require.resolve返回.pnpm内部 realpath,旧逻辑把新 CLI 原位覆盖进旧的.pnpm目录,依赖树新旧混版本(settingsNamespace / installSettingsSection类错误);@linxin666/dsh-web-ui-all@0.3.4深度绑定旧版设置注册 API,升级后客户端注册即崩,整个 Web 页面起不来;新设计(v0.3.25 核心)
一、升级安全三件套
.pnpm的顶层node_modules(进程入口 + realpath 上溯双路径),定位不到拒绝升级、服务保持在线——根因级修复;.pnpm全部@deepseek-ai版本自包 + 顶层 scope +lock.yaml,写入~/.dsh/plugin-console/framework-backups/<版本>/fw-tree/;二、一键回滚
升级后框架卡片出现「回滚到上一版」按钮:停服 → 全树恢复 → 自动拉起 → 健康检测,全程状态可见(
/plugin-console/framework-rollback)。三、插件适配门(插件兼容检测)
disabled+ 服务端/toggle409 双保险,无法绕过);dsh.engines.framework/engines.dsh显式声明 +@deepseek-ai/*依赖范围(依赖判定遵循 npm prerelease 严格规则、声明判定宽松);版本已变化且未判定不兼容 → 自动移除禁用块解锁;聚合包更新连带校验同步的全部子包;与 DSH 的集成方式
通过
dsh.bundle官方清单作为 profile bundle 挂载(dsh plugin --profile web add @noob-stupid/dsh-plugin-console),提供/plugin-console/*路由(仅环回 + 同源写校验)与设置页 tab;可读写补丁层、管理插件开关、检测框架版本,升级流程与框架卡片联动。其余能力(同面板)
cordis.patch.yml解析容错补丁(issue #5,幂等)。截图
已知边界
All reactions