winliyou/dsh-plugins

winliyou★ 0JavaScript最后同步: 2026-08-16

在 GitHub 打开

deepseek harness plugin set

README 摘要

dsh-plugins — DSH host 层插件集 DSH(DeepSeek Harness)host 层全局插件的 npm 包(monorepo): 包 功能 @chaoset/vision-router 识图自动降级:纯文本模型收到图片时自动调用视觉模型转述 @chaoset/sandbox-extra-roots 沙盒额外允许写入目录(Seatbelt/bwrap/Landlock + fs fence) @chaoset/adaptive-perf 极简性能自适应:标准/PTC 模式抑制运行时上下文并按需精简工具目录 每个包同时提供: - host 插件 ( lib/ ,纯 ESM,随 harness 加载) - client 插件 ( client/client.cjs , window. ModuleLoader .load 格式,无需构建)—— 在 DSH 设置页「插件配置」标签注册配置卡片 - 远程配置服务 :设置页 UI 通过 ctx.remote. 读写配置, 持久化到 /.dsh/plugins/ /config.json ,保存后 热生效 (无需重启) - DSH bundle patch :每个包自带 cordis.patch.yml ,通过 dsh plugin 安装后 自动成为 profile bundle 层,无需手改 cordis.patch.yml 目录结构 开发 @deepseek-ai/ 包不在公共 npm registry(内部发布),本地开发用链接: 发布 GitHub Actions 已配置自动发布:推送到 main 且 packages/ 有变更时,会自动运行测试并发布尚未发布的版本。 安装(npm 生态方式) 推荐使用 DSH 自带的 dsh plugin 命令安装到指定 profile。它会初始化 profile、 调用 pnpm 安装依赖,并自动把声明了 dsh.bundle 的包加入 dsh.profile.bundles ,随后 DSH 会应用包内 cordis.patch.yml 完成插件注册。 不要只把包名写进 profile 的 package.json 就完事。 dsh plugin add 在 pnpm add 之后还会做一次 bundle 对账:把声明了 dsh.bundle 的已安装 依赖追加到 dsh.profile.bundles 。手动改 package.json (或直接跑 pnpm add ) 只会装依赖,不会注册 host 插件行,web boot 会报 pending (waiting for service: remote.xxxConfig) 。 对账逻辑见 dsh 的 dsh plugin 命令(plugin 子命令 = pnpm 转发 + bundles 对账)…

在 GitHub 查看完整 README →
内容/媒体deepseek-harness-allow-extra-dirdeepseek-harness-plugindeepseek-harness-visiondsh-allow-extra-dirdsh-plugindsh-visionvision

分类