D

dsh-pi-agent-providers

github.com/52sujiu/dsh-pi-agent-providers

v0.1.2 市场与管理 写入文件

The pi agent's provider catalog (~/.pi/agent/models.json) as DeepSeek Harness LLM routes — installable and removable with `dsh plugin`, no dsh source patch

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

dshdeepseek-harnessdsh-tuipipi-agentllmprovidercordis-plugin
分类
market
发布
2026-09-12
版本
v0.1.2

检测报告

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

能力清单

  • 写入文件writes-files需留意1 处命中
    • package.json:46"clean": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 接触凭据或密钥credentials一般32 处命中
    • lib/index.js:7* read from it per request (`resolveApiKey`), and the catalog is re-read whenever
    • lib/index.js:9* request without a restart, and no secret is duplicated.
    • lib/index.js:158keys = new Map([...table].map(([route, entry]) => [route, entry.apiKey]));
    • lib/index.js:194// auth status is honest without a second copy of any secret. Nothing
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般5 处命中
    • lib/index.js:84fileExists: path => Promise.resolve(path.startsWith('~/') ? existsSync(join(homedir(), path.slice(2))) : existsSync(path…
    • lib/pi-agent-file.js:318text = readFileSync(this.path, 'utf8');
    • lib/pi-agent-file.js:348const stats = statSync(this.path);
    • lib/pi-ai.js:45if (existsSync(join(dist, 'index.js')))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般2 处命中
    • lib/index.js:67const agentDir = process.env['PI_CODING_AGENT_DIR'];
    • lib/index.js:83env: async (name) => process.env[name],
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般2 处命中
    • lib/pi-ai.js:72const root = await import(pathToFileURL(join(dist, 'index.js')).href);
    • lib/pi-ai.js:75const module = await import(pathToFileURL(join(dist, 'api', file)).href);
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
写入文件writes-files需留意1
接触凭据或密钥credentials一般32
读取文件reads-files一般5
读取环境变量reads-env一般2
动态加载模块dynamic-import一般2

这份报告的口径

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

依赖安全公告

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

← 返回全部插件