dsh-plugin-hot-reload
开发工具 活跃维护

dsh-plugin-hot-reload

baldovinmarques391-design/dsh-plugin-hot-reload

支持标题、简介、图标与浏览器模块直接按磁盘内容现读现发布,修改保存后立即生效,免去重启 DSH 的等待流程,适合高频调整界面与模块配置的开发调试场景。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
9 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:baldovinmarques391-design/dsh-plugin-hot-reload
git clone https://github.com/baldovinmarques391-design/dsh-plugin-hot-reload.git
git clone git@github.com:baldovinmarques391-design/dsh-plugin-hot-reload.git
README.md main

dsh-plugin-hot-reload

标题、简介、图标和浏览器模块都按磁盘现读现发布:改完立即生效,不用重启 DSH。

A DeepSeek Harness bundle. It replaces three cached resolvers with plain filesystem
walks, so a plugin's display metadata and browser module follow the package on disk
instead of a verdict cached for the life of the process:

Service Why it is patched
pluginPackages.metaOf The Host resolves locale/*.json and icon.svg through the Node ESM resolver. A package whose export was added after its first read stays bare until restart.
pluginManager.listBundles The plugin inventory calls the Host reader directly, so it needs the same disk result even when the Host already produced a fallback.
clientModules.resolveMeta / locatePkgJson Verdicts are cached in pkgMeta, null included. Moving a linked package makes its browser half disappear.

Install it into a profile:

dsh plugin --profile web add <path-to-this-checkout>

Editing another plugin's locale/, icon.svg, or manifest then needs only a page
refresh. Editing this plugin's own index.js, or adding a new importable subpath
export, still needs a restart: Node caches modules by URL.

Test

$env:DSH_RUNTIME = '<dsh-runtime>'
$env:DSH_PROFILE_DIR = '<profile-dir>'
node test/live.test.mjs

The check compares this reader against the Host reader for every package the profile
depends on, and reproduces the late-locale case.