D

dsh-patch-edit-plus

github.com/drscrewdriver/dsh-patch-edit-plus

v0.4.1 开发与运行时 写入文件

Patch-style file editing for DeepSeek Harness: one apply_patch tool accepting git/unified diff (default) and Codex apply_patch syntax (opt-in), with all-or-nothing application, read-before-write intent dance, sandbox-aware delete/move, (declarative volat

该插件尚未翻译,显示作者原文。

dshdsh-plugindeepseek-harnessapply-patchunified-diffcodexpatchedit
分类
dev
发布
2026-10-10
版本
v0.4.1

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
1需留意2一般21未命中
高关注需留意一般

能力清单

  • 写入文件writes-files需留意5 处命中
    • lib/apply/engine.js:56await writeFile(ctx, exec, change.entry.target, change.after ?? '', sandboxPolicy);
    • lib/apply/engine.js:60await writeFile(ctx, exec, change.entry.target, change.after, sandboxPolicy);
    • lib/fsops.js:31export async function writeFile(ctx, exec, target, content, sandboxPolicy) {
    • package.json:56"clean": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\""
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 读取文件reads-files一般4 处命中
    • lib/apply/engine.js:36const before = await readFile(ctx, exec, entry.target);
    • lib/apply/engine.js:41const before = await readFile(ctx, exec, entry.target);
    • lib/fsops.js:54export async function readFile(ctx, exec, target) {
    • lib/types/fsops.d.ts:21export declare function readFile(ctx: Context, exec: ToolRunContext, target: FsTarget): Promise<string>;
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般1 处命中
    • lib/compat.js:77import('@deepseek-ai/dsh-settings').then((mod) => {
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意5
读取文件reads-files一般4
动态加载模块dynamic-import一般1

这份报告的口径

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

依赖安全公告

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

← 返回全部插件