dsh-loader
github.com/dsh-plugins/dsh-loader
v1.3.5
市场与管理
可执行外部程序发起网络请求写入文件
一个面向 **dsh**(DeepSeek Harness)cordis bundle 插件的运行时兼容垫片。 dshloader 通过一个感知版本的**适配器注册表**,把第三方插件与 dsh 的内部服务名、 模块路径、包名和 RPC 细节解耦,这样一来,当 dsh 升级并破坏内部 API 时, 你只需升级 dshloader —— 插件无需改动即可继续工作。
作者原文(英文)
Runtime compatibility shim for dsh (DeepSeek Harness) cordis bundle plugins: decouples third-party plugins from real dsh internal service names, module paths, and RPC details via a version-aware adapter registry.
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注2需留意4一般17未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中dist/setup.js:18import { spawnSync } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意4 处命中dist/client.js:170describe: () => win.fetch(`${bridgePrefix}/settings/describe`, { headers: { accept: 'application/json' } }).then((r) => …dist/client.js:171write: (mode, payload) => win.fetch(`${bridgePrefix}/settings/${mode}`, {lib/client.js:191describe: () => win.fetch(`${bridgePrefix}/settings/describe`, { headers: { accept: "application/json" } }).then((r) => …lib/client.js:192write: (mode, payload) => win.fetch(`${bridgePrefix}/settings/${mode}`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意2 处命中dist/setup.js:53writeFileSync(path, JSON.stringify(data, undefined, 2) + '\n');dist/setup.js:96writeFileSync(patchPath, next);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态加载模块
dynamic-import一般80 处命中dist/boot-injection.js:56var mod=require(t);dist/client.js:92require(specifier) {dist/client.js:106* require(). When a plugin's bundle calls require('@old/pkg-name'),dist/client.js:191// Wrap __ModuleLoader__.load so every factory's require() function- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 接触凭据或密钥
credentials一般43 处命中src/stable/credentials.js:1// Stable re-export: @dsh-plugin/dsh-loader/credentialssrc/stable/credentials.js:3// Credential references (credentialRef).src/stable/credentials.js:5export * from '@deepseek-ai/dsh-credentials';dist/adapters/dsh-1-x.js:52'@dsh-plugin/dsh-loader/credentials': '@deepseek-ai/dsh-credentials',- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般10 处命中dist/index.js:61const home = opts.dshHome ?? process.env.DSH_HOME;dist/index.js:89* 1. process.env.DSHLOADER_EXPOSE_ALL_SETTINGS=1dist/index.js:97const envOn = process.env.DSHLOADER_EXPOSE_ALL_SETTINGS === '1' || process.env.DSHLOADER_EXPOSE_ALL_SETTINGS === 'true';dist/index.js:167if (process.env.DSHLOADER_DISABLE === '1' || process.env.DSHLOADER_DISABLE === 'true') {- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般9 处命中dist/index.js:44const manifest = JSON.parse(readFileSync(join(parent, 'package.json'), 'utf8'));dist/index.js:66const matches = readdirSync(profilesDir, { withFileTypes: true })dist/index.js:70const manifest = JSON.parse(readFileSync(join(profilesDir, entry.name, 'package.json'), 'utf8'));dist/index.js:103const manifest = JSON.parse(readFileSync(join(resolve(dir), 'package.json'), 'utf8'));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 发起网络请求 | network | 需留意 | 4 |
| 写入文件 | writes-files | 需留意 | 2 |
| 动态加载模块 | dynamic-import | 一般 | 80 |
| 接触凭据或密钥 | credentials | 一般 | 43 |
| 读取环境变量 | reads-env | 一般 | 10 |
| 读取文件 | reads-files | 一般 | 9 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 94 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。