deepseek-harness-core
github.com/mapan0424/deepseek-harness-plugins
v0.1.10
其他
写入文件
面向 **DeepSeek Harness**(支持 Web 端、Docker 容器部署与 macOS/Windows 桌面端)的**非官方社区开源插件 Monorepo 大本营**。
作者原文(英文)
Shared channel message bus for DeepSeek Harness: unified GatewayCore routing/dedup/delivery used by every channel plugin (imessage/qq/telegram/feishu...).
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
1需留意3一般20未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意5 处命中lib/gateway-core.mjs:27appendFileSync("/tmp/dsh_channel_debug.log", `[${new Date().toISOString()}] [${tag}] ${msg}\n`);lib/gateway-core.mjs:228await writeFile(tmp, JSON.stringify(this.sessionMap, null, 2), "utf8");lib/gateway-core.mjs:229await rename(tmp, this.statePath);lib/helpers/settings.mjs:164await mkdir(dirname(settingsPath), { recursive: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 读取文件
reads-files一般17 处命中lib/gateway-core.mjs:93if (path && (existsSync(path) || existsSync(path.replace(/^~/, homedir())))) {lib/gateway-core.mjs:108if (existsSync(p) && statSync(p).isFile()) unique.push({ path: p, name: f.name || basename(p) });lib/gateway-core.mjs:216const parsed = JSON.parse(await readFile(this.statePath, "utf8"));lib/gateway-core.mjs:356if (this.statePath && existsSync(this.statePath)) {- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般2 处命中lib/gateway-core.mjs:215const { readFile } = await import("node:fs/promises");lib/gateway-core.mjs:226const { writeFile, rename } = await import("node:fs/promises");- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般1 处命中lib/gateway-core.mjs:25if (process.env.DSH_CHANNEL_DEBUG) {- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 5 |
| 读取文件 | reads-files | 一般 | 17 |
| 动态加载模块 | dynamic-import | 一般 | 2 |
| 读取环境变量 | reads-env | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 7 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)