dsh-npm

版本 0.1.4发布 2026-09-29仓库 zhengjy01/dsh-npm
2/4受限未判定

DeepSeek Harness 的 NPM 包管理插件:查包信息、列版本、搜索 registry、发布包、标记弃用,全部可由 agent 直接完成。

市场与管理周下载 43peer 9MIT
pnpm add dsh-npm

安装前须知

Node 要求
^22.19.0 || >=24.0.0
package.json engines
peer 依赖
9 个
由宿主提供,不随包安装
宿主服务
信号缺失
宿主只输出一行 did not activate
入口 / 补丁
lib/index.js
bundle 已声明 · patch 随包

四段检测

逐层记录
收录门槛通过
manifest 是否声明 DSH 依赖或 dsh.bundle
离线审查未通过
静态结构包内清单、补丁文件与入口声明是否完整
无 high / critical 命中
未通过
配置组合装入一次性 DSH_HOME 后配置树能否合并通过
源码审查静态阅读源码,检查危险调用与数据外发
计数单位 finding,非包数。
通过
真机安装通过
真机执行 pnpm 安装,退出码为 0 且 node_modules 生成
实测宿主版本 0.2.2-rc.5
加载实测未通过
安装完成后由真实宿主启动一次,检查入口是否激活
归因缺失
宿主仅输出一行 N entry did not activate,无归因信息。不计缺陷。

检测结论明细

共 14 次命中
收录判定1 条规则 · 1 次命中
发布者与仓库所有者不同l0-author-repo-differs
静态结构4 条规则 · 8 次命中
读取凭据/密钥文件路径×5credential-path-read
lib/types/tools.d.ts:8requires login
启动子进程child-process-spawn
lib/index.js:325const result = spawnSync(npmBin(), ["--version"], {
代码中存在外部 URLremote-url-reference
lib/client.js:290https://registry.npmjs.org/,如 https://registry.npmmirror.com) https://registry.npmjs.org/ https://registry.npmjs.org/) h
提到凭据路径但没有读动作sensitive-path-reference
lib/client.js:285"(凭据写入 ~/.npmrc,发布自动复用);② 在 npmjs.com 生成 Publish token 填到下方(存 ~/.dsh/dsh-npm.json,权限 0600,不回显完整 token)。token 有有效期,过期
源码审查2 条规则 · 4 次命中
Package exited non-zero×2l3.nonzero-exit
state/runs/dsh-npm/0.1.4/L3/result.json
Threw an uncaught exception×2l3.runtime-error
state/runs/dsh-npm/0.1.4/L3/events.jsonlCannot find package '@deepseek-ai/dsh-tools' imported from E:\DSHPWeb\state\runs\dsh-npm\0.1.4\L3\src\package\lib\index.
加载实测1 条规则 · 1 次命中
L5 load: runtime_error / activation-failedl4load.activation-failed

依赖结构

9 项
@deepseek-ai/cordispeer由宿主提供
@deepseek-ai/dsh-client-connectionpeer由宿主提供
@deepseek-ai/dsh-client-ui-settingspeer由宿主提供
@deepseek-ai/dsh-host-webserverpeer由宿主提供
@deepseek-ai/dsh-llmpeer由宿主提供
@deepseek-ai/dsh-system-promptpeer由宿主提供
@deepseek-ai/dsh-toolspeer由宿主提供
reactpeer由宿主提供
react-dompeer由宿主提供