市场与管理 · v0.2.1
dsh-plugins-hub
DeepSeek Harness 插件市场客户端:为 DSH better-sidebar 提供目录标签页,并通过 dsh-plugins-mp.com 的 API 提供 agent 工具(mp_search、mp_similar、mp_details、mp_install、mp_trending)。
作者原文(英文)
DeepSeek Harness plugin marketplace client: a catalog tab for DSH better-sidebar + agent tools (mp_search, mp_similar, mp_details, mp_install, mp_trending) over the API of dsh-plugins-mp.com.
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add dsh-plugins-hub@0.2.1
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中lib/index.js:7import { spawn, spawnSync } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意31 处命中lib/client.js:111fetch(FAVORITE_ROUTE, { headers: { accept: "application/json" } }).then((res) => res.ok ? res.json() : null).then((body)…lib/client.js:127fetch(FAVORITE_ROUTE, {lib/client.js:252const res = await fetch(CONFIG_ROUTE, { headers: { accept: "application/json" } });lib/client.js:263const res = await fetch(`${API_BASE}${path}`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意24 处命中lib/index.js:544for (const name of entries) if (/^hot-\d+\.yml$/.test(name)) rmSync(join(dir, name), { force: true });lib/index.js:622mkdirSync(dir, {lib/index.js:629writeFileSync(file, yml);lib/index.js:638rmSync(file, { force: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 启动伪终端
spawns-pty需留意2 处命中lib/index.js:977const child = spawn("setsid", ["sh", file], {- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 读取文件
reads-files一般50 处命中lib/index.js:59return parseDotEnv(readFileSync(join(pluginDir(), ".env"), "utf8"))["DSH_MP_API_URL"];lib/index.js:289return JSON.parse(readFileSync(join(directory, "package.json"), "utf8"));lib/index.js:346if (!existsSync(manifestPath)) return [];lib/index.js:349deps = JSON.parse(readFileSync(manifestPath, "utf8")).dependencies ?? {};- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般17 处命中lib/index.js:42* `process.env.DMP_PLUGIN_DIR` lets callers (and tests) point at a specificlib/index.js:48if (process.env.DMP_PLUGIN_DIR) return process.env.DMP_PLUGIN_DIR;lib/index.js:77return normalizeApiBase(config?.apiBase ?? process.env.DSH_MP_API_URL ?? localDotEnvApiBase() ?? "https://dsh-plugins-mp…lib/index.js:265const fromEnv = process.env.DSH_HOME;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般3 处命中lib/index.js:1692if (parsed.username !== "" || parsed.password !== "") throw new Error("invalid WebDAV URL");lib/index.js:3544const password = typeof body.password === "string" ? body.password : "";- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般3 处命中lib/index.js:434return await import(lib/index.js:442if (existsSync(candidate)) return await import(pathToFileURL(candidate).href);lib/index.js:449if (existsSync(candidate)) return await import(pathToFileURL(candidate).href);- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 发起网络请求 | network | 需留意 | 31 |
| 写入文件 | writes-files | 需留意 | 24 |
| 启动伪终端 | spawns-pty | 需留意 | 2 |
| 读取文件 | reads-files | 一般 | 50 |
| 读取环境变量 | reads-env | 一般 | 17 |
| 接触凭据或密钥 | credentials | 一般 | 3 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 6 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -5没有仓库或主页地址warn
认证等级 L3
- L0静态结构与契约✓sha512-Ab5MJRy0J1Hl4ER9… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟✓隔离 profile 安装成功,1.9s,层已挂载;宿主带它启动(booted)
- L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- max_wagner
- 仓库
- —
- 许可
- MIT
- 最后发布
- 2026-10-01
- 周下载
- 46
- star
- —
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| 第三方依赖 | 0 个(纯自包含) |
|---|---|
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
DSH