其他 · v0.1.8
dsh-plugin-thinking-api
DeepSeek Harness 插件:在一个配置块中配置任意 OpenAI 兼容 API,即可免费获得思考模式,同时避开会导致此类 API 失效的 developer 角色拒绝问题。
作者原文(英文)
DeepSeek Harness plugin: configure any OpenAI-compatible API in one block and get thinking mode for free — while dodging the developer -role rejection that breaks such APIs.
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add dsh-plugin-thinking-api@0.1.8
强装可用 · 需绕过门禁
当前 DSH 版本上 CLI 拒绝安装这个包。用 --accept-risk 绕过门禁之后,它能装上并挂载——限制来自版本策略,不是包坏了。要用它,得自己决定这个风险值不值得承担。
检测报告
能力清单
- 发起网络请求
network需留意2 处命中lib/index.mjs:618const response = await fetch(chatUrl, {lib/index.mjs:713response = await fetch(url, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意1 处命中scripts/check-compat.mjs:303try { rmSync(tmp, { recursive: true, force: true }) } catch { /* best effort */ }- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般17 处命中lib/client.js:147const credsResponse = await this.ctx.remote.credentials.describe(refs);lib/client.js:156s.credentials = credentials;lib/client.js:171const stored = await this.ctx.remote.credentials.set(keyRef, keyValue.trim());lib/client.js:181await this.ctx.remote.credentials.unset(keyRef).catch(() => {});- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般14 处命中scripts/check-compat.mjs:30if (!existsSync(store)) return nullscripts/check-compat.mjs:33entries = readdirSync(store)scripts/check-compat.mjs:43return existsSync(inner) ? inner : nullscripts/check-compat.mjs:51if (existsSync(join(candidate, '@deepseek-ai', 'dsh-llm-pi-ai'))) return candidate- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般11 处命中scripts/check-compat.mjs:115mod = await import(join(tmp, 'lib', 'index.mjs'))scripts/check-compat.mjs:127const { PiAiAdapter } = await import(join(nodeModules, '@deepseek-ai', 'dsh-llm-pi-ai', 'lib', 'index.js'))scripts/check-compat.mjs:141const { createProvider } = await import(join(nodeModules, '@earendil-works', 'pi-ai', 'dist', 'index.js'))scripts/check-compat.mjs:142const { openAICompletionsApi } = await import(join(nodeModules, '@earendil-works', 'pi-ai', 'dist', 'api', 'openai-compl…- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 2 |
| 写入文件 | writes-files | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 17 |
| 读取文件 | reads-files | 一般 | 14 |
| 动态加载模块 | dynamic-import | 一般 | 11 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 9 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-llm': '>=0.1.0-rc.6 <0.1.1 || >=0.1.1-rc.1 <0.1.2 || >=0.1.2-rc.1 <0.1.3 || >=0.1.5-rc.1 <0.1.6', '@deepseek-ai/dsh-setti
认证等级 L1
- L0静态结构与契约✓sha512-FreELkHncsn69QJp… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟—试装未通过(forced-ok)
- L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- yiyiyi112
- 仓库
- https://github.com/qjf44/dsh-plugin-thinking-api
- 许可
- MIT
- 最后发布
- 2026-09-11
- 周下载
- 332
- star
- 2
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 7 个cordisdsh-credentialsdsh-launch-environmentdsh-llmdsh-llm-pi-aidsh-settingsdsh-web均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | >=20 |
| 第三方依赖 | 0 个(纯自包含) |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
元数据
| 主页 | https://github.com/qjf44/dsh-plugin-thinking-api#readme |
|---|---|
| 仓库最近提交 | 2026-09-11 |
| 仓库创建 | 2026-08-18 |
DSH