D

dsh-plugin-ops-bundle

github.com/f-infinite-z/dsh-plugin-ops

v0.19.2 界面与主题 可执行外部程序写入文件可终止进程

1. **体检** —— `dsh-ops check` 秒级离线扫全部 profile。10 条静态规则跟随**启动器的运行时解析**而非磁盘布局,每条结果自带修法。 2. **预演** —— `dsh-ops preview` 拿**下一个** dsh 版本对已装插件跑一遍,用启动器同款兼容语义给出:**哪些会被跳过**,以及每一项的修法。 3. **隔离复验** —— 安装、修复、适配都**先在第二个隔离实例**里复验(独立 DS

作者原文(英文)

Embedded dsh bundle for dsh-plugin-ops: a settings-page health panel (scan, plugin rows, diagnosis chat) over the shared engine

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

deepseekharnessdshdsh-plugincordispluginhealth-checkdiagnostics
分类
ui
发布
2026-10-12
版本
v0.19.2

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/sandbox.js:1import { spawn } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意10 处命中
    • lib/sandbox.js:262mkdirSync(dir, { recursive: true });
    • lib/sandbox.js:273writeFileSync(join(dir, 'latest.json'), body, 'utf8');
    • lib/sandbox.js:274writeFileSync(join(dir, `${new Date().toISOString().replace(/[:.]/g, '-')}.json`), body, 'utf8');
    • lib/sandbox.js:279unlinkSync(join(dir, name));
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意2 处命中
    • lib/sandbox.js:29process.kill(-pid, signal);
    • lib/sandbox.js:34process.kill(pid, signal);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 发起网络请求network需留意2 处命中
    • lib/client.js:200const res = await fetch(`${API}${path}`, {
    • lib/client.js:1003const res = await fetch(`${API2}${path}`, init);
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 启动伪终端spawns-pty需留意1 处命中
    • lib/sandbox.js:112return spawn('cmd.exe', ['/d', '/s', '/c', `"${inner}"`], { env, cwd, stdio, windowsVerbatimArguments: true });
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 运行时改写自身配置modifies-own-manifest需留意1 处命中
    • lib/sandbox.js:516writeFileSync(join(profileDir, 'cordis.patch.yml'), desktopPortPatchYaml(port), 'utf8');
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 读取文件reads-files一般5 处命中
    • lib/sandbox.js:49if (entry !== undefined && /[\\/]@deepseek-ai[\\/]dsh[\\/].*\.(js|mjs|cjs)$/.test(entry) && existsSync(entry)) {
    • lib/sandbox.js:204return existsSync(candidate) ? candidate : null;
    • lib/sandbox.js:276const archives = readdirSync(dir).filter((name) => name.endsWith('.json') && name !== 'latest.json').sort();
    • lib/sandbox.js:294const value = JSON.parse(readFileSync(join(dir, 'latest.json'), 'utf8'));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般5 处命中
    • lib/sandbox.js:309const env = (process.env.npm_config_registry ?? process.env.NPM_CONFIG_REGISTRY ?? '').trim();
    • lib/sandbox.js:473const child = spawnSandbox(this.driver, ['--profile', 'web', '--port', String(port), '--no-open'], { ...process.env, DSH…
    • lib/sandbox.js:527const env = { ...process.env, DSH_HOME: home };
    • lib/sandbox.js:760const child = spawnSandbox(driver, args, { ...process.env, DSH_HOME: home }, home);
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 接触凭据或密钥credentials一般3 处命中
    • lib/host.js:349error: 'no model channel available (no harness llm service and no provider key found); set DSH_OPS_LLM_API_KEY to overri…
    • lib/tools.js:23? 'Start the isolated DeepSeek Harness desktop sandbox: a second desktop window of this installation, isolated through i…
    • lib/tools.js:24: 'Start the isolated DeepSeek Harness sandbox (a temporary DSH home used for plugin configuration work). Returns the sa…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
写入文件writes-files需留意10
可终止进程kills-processes需留意2
发起网络请求network需留意2
启动伪终端spawns-pty需留意1
运行时改写自身配置modifies-own-manifest需留意1
读取文件reads-files一般5
读取环境变量reads-env一般5
接触凭据或密钥credentials一般3

这份报告的口径

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

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件