rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HongzhongL/dsh-hotswap
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH Web 插件热插拔管理器:在 设置 → 插件 → 「插件管理」 标签页里列出当前挂载的所有 Cordis 插件,支持运行时热启用 / 热停用 / 热重启,以及监视 profile 的 package.json 自动热挂载 / 卸载 bundle——全程无需重启 dsh web。
原名
@dsh-external/dsh-plugin-manager(未公开发布)。
entry.update({ disabled: true }),插件当场卸载(服务、工具、监听器全部回收)。entry.update({ disabled: false }),当场导入并启动插件——包括启动时就处于停用状态的插件。package.json,当 dsh.profile.bundles 增删条目时,通过 Include 根分组热挂载 / 卸载对应 bundle——dsh plugin add/remove 之后无需重启。disabled: true 写入 / 移除 profile 的 cordis.patch.yml 中一个由本插件维护的自动区块(# === dsh-hotswap managed block ===),因此重启 DSH 后开关状态依然生效。webserver、connection、api-gateway、modules、typert*、web*、hmr 等界面赖以生存的条目以及本插件自身,不能被停用;!!js 表达式控制、父分组停用的条目不允许切换;cordis.patch.yml 中手写的 disabled: true 行;启用时会同步移除该行,避免“现在能跑、重启又没了”的不一致。dsh plugin --profile web add dsh-hotswap
# 重启生效:
dsh web
本地源码 / tgz:
npm pack
dsh plugin --profile web add ./dsh-hotswap-0.1.0.tgz
全部可选,通过 profile 的 cordis.patch.yml 覆盖:
- id: dsh-hotswap
config:
profile: web # 持久化目标 profile(仅作兜底;默认从 Loader baseUrl 推导)
protected: [some-id] # 追加不可停用的条目 id
本插件暴露同源 HTTP 端点(/_dsh/hotswap/*),可让请求方停用 / 启用 / 重启任意插件。它沿用 DSH Web 的「受信任主机」模型,不额外加鉴权:
127.0.0.1,就只有本机进程能调用,是安全的。webserver 的 host 设为 0.0.0.0 暴露到局域网,局域网内任何设备都能控制你的插件(进而驱动 agent)。DSH Web 本身无鉴权 / 无 TLS,切勿暴露到不可信网络。isSameOrigin)只拦截带 Origin 头的跨站请求;无 Origin 头的本机程序(curl 等)会被放行——这是刻意的本机便利,不是漏洞,但意味着不要与不信任的进程共享这台机器。0.1.0-rc.6。entry._dispose / entry.refresh / loader.internal),这些不是公开契约,可能在 DSH 升级后变化。升级 DSH 前请先确认本插件仍可用。index.js:注入 webServer + loader,注册 /_dsh/hotswap/ 前缀路由(state / set / restart / reset);通过 Loader 的公共条目 API 做运行时启停,用文本级“围栏区块”维护 cordis.patch.yml;createBundleSyncer 监视 package.json 做热挂载。client.js:注册 settings.plugins.tab 插槽(id manager),React 渲染插件列表(搜索、筛选、状态灯、徽章、开关/重启按钮)。disabled: true 行)。dsh web 即可恢复。headless profile 没有 webServer,本插件只服务于 Web 界面。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。