D

dsh-plan-orchestrator

github.com/gilbertgt/DSH-plan-mode

v1.1.1 其他 可执行外部程序写入文件发起网络请求

`@gilbertgt/dsh-plan-orchestrator` 对 DeepSeek Harness 原生 Plan Mode 做了增强。它**不会**取代 `/plan`、`exit_plan_mode`、原生 Plan Review、设置、subagent、LSP 或 token 计量。

作者原文(英文)

Product-grade orchestration layer for DeepSeek Harness native Plan Mode

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
other
发布
2026-09-14
版本
v1.1.1

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注3需留意4一般16未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/github-C4qFiwHb.js:4import { execFile, spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意15 处命中
    • lib/github-C4qFiwHb.js:474await mkdir(dirname(path), { recursive: true });
    • lib/github-C4qFiwHb.js:477await writeFile(tmp, body, {
    • lib/index.js:1589await mkdir(join(path, ".."), { recursive: true });
    • lib/index.js:2736await mkdir(dirname(target), { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意3 处命中
    • lib/client.js:342function createRpc(fetcher = globalThis.fetch.bind(globalThis)) {
    • lib/rpc-server-CPTp9f7C.js:114for (const method of RPC_METHODS) disposers.push(connection.fetch.register({
    • lib/rpc-server-CPTp9f7C.js:118async fetch(request) {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意1 处命中
    • lib/index.js:248schema.callback = new Function("return " + schema.callback)();
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般14 处命中
    • lib/github-C4qFiwHb.js:326const [stdout, stderr] = await Promise.all([readFile(stdoutPath), readFile(stderrPath)]);
    • lib/github-C4qFiwHb.js:496return JSON.parse(await readFile(path, "utf8"));
    • lib/github-C4qFiwHb.js:523names = await readdir(dir);
    • lib/github-C4qFiwHb.js:596const [stdout, stderr] = await Promise.all([readFile(receipt.stdout.path), readFile(receipt.stderr.path)]);
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般5 处命中
    • lib/github-C4qFiwHb.js:251function needsFileBackedWindowsStdio(platform = process.platform, env = process.env) {
    • lib/github-C4qFiwHb.js:455const stateRoot = () => resolve(process.env.DSH_HOME ? join(process.env.DSH_HOME, "state", "plan-orchestrator") : join(h…
    • lib/index.js:3540function minimalSdkEnv(source = process.env) {
    • lib/index.js:3935const probe = options.probe ?? onPathProbe(options.env ?? process.env);
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般4 处命中
    • lib/index.js:3604const { DeepSeekHarness } = await import("@deepseek-ai/dsh-sdk-client");
    • lib/index.js:4805const { publishExternalRun } = await import("./publication-2zqXimHH.js");
    • lib/index.js:5127return require(`${id}/package.json`).version;
    • lib/index.js:5286import("./rpc-server-CPTp9f7C.js").then(({ registerRpc }) => {
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般3 处命中
    • lib/client.js:277"diagnostics.note": "Diagnostics intentionally expose capability state and plugin storage location, never credentials or…
    • lib/client.js:346credentials: "same-origin",
    • lib/planner-route-Z9MMuA1e.js:5return /(timeout|rate.?limit|quota|transport|connection|network|unavailable|auth_failed|missing_credential|server|overlo…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
写入文件writes-files需留意15
发起网络请求network需留意3
动态执行代码dynamic-code需留意1
读取文件reads-files一般14
读取环境变量reads-env一般5
动态加载模块dynamic-import一般4
接触凭据或密钥credentials一般3

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 12 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 1 条已公开的安全公告 (最高等级:低):

等级依赖包编号摘要
低zodCVE-2023-4316Zod denial of service vulnerability
修复版本:3.22.3 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件