DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-pkg-info

Z

dsh-pkg-info

Manifest valid

DSH plugin: query npm/PyPI package info (version, deps, release dates)

hasBundlePatch

dsh-pkg-info

DSH 包信息查询工具插件。注册一个 pkg_info 工具,查询 npm 与 PyPI 两个 registry 的包元数据,把结果规范化为一个结构化 JSON 对象,供模型与 Code Mode 程序化调用。零依赖、纯 ESM、无构建。

简介

  • 工具名:pkg_info
  • 能力:查询 npm 包(registry.npmjs.org)与 PyPI 包(pypi.org)的名称、版本、描述、许可证、作者、主页、仓库、版本数、依赖等信息。
  • 行为:永不抛异常。404、网络错误、超时、JSON 解析失败都折叠为 { ok: false, error: { stage, message?, status? } };成功返回 { ok: true, registry, name, version, ... }。

安装

dsh plugin --profile <name> add file:./plugins/dsh-pkg-info
# 或发布后:
dsh plugin --profile <name> add dsh-pkg-info

参数

参数类型必填默认说明
registryenum—npmnpm / pypi,选择要查询的 registry
namestring✅—包名。npm 作用域包写 @scope/name;PyPI 项目名大小写不敏感
versionstring—latest指定版本(npm 也支持 dist-tag 如 latest/next);缺省查最新版

返回字段

npm(registry: "npm")

字段类型说明
ok / registry / name / versionboolean/string状态、registry、规范包名、解析到的版本
descriptionstring | null包描述
licensestring | nullSPDX 许可证(对象/数组会被规范成字符串)
authorstring | null作者,规范为 "name <email>"
homepagestring | null主页 URL
repositorystring | null仓库 URL
distTagsobjectdist-tags 映射(如 { latest: "2.7.0", ... })
created / modifiedstring | nulltime 字段的创建/修改时间(ISO 8601)
versionsCountinteger已发布版本数
dependenciesobject | null该版本的 dependencies
peerDependenciesobject | null该版本的 peerDependencies

PyPI(registry: "pypi")

字段类型说明
ok / registry / name / versionboolean/string状态、registry、规范项目名、解析到的版本
summarystring | null项目摘要(info.summary)
licensestring | null许可证(info.license,空串归一为 null)
authorstring | null作者(info.author)
home_pagestring | null主页 URL(info.home_page)
releasesCountinteger发布版本数(releases 键数)
requiresDiststring[] | null该版本的 requires_dist 依赖列表

失败(ok: false)

{ ok: false, registry, name, error: { stage: 'http'|'request'|'parse', message?, status? } }。

  • 404:{ stage: 'http', status: 404 }
  • 网络/超时(10s):{ stage: 'request', message }
  • JSON 解析失败:{ stage: 'parse', message }

示例

// 查 npm 最新版
{ "registry": "npm", "name": "yaml" }
// 查 npm 指定版本
{ "registry": "npm", "name": "yaml", "version": "2.5.0" }
// 查 PyPI 最新版
{ "registry": "pypi", "name": "requests" }
// 查 PyPI 指定版本
{ "registry": "pypi", "name": "requests", "version": "2.28.1" }

License

MIT

Comments

Loading…

Similar plugins

dsh-about

by YannZhou

About section for the DeepSeek Harness settings: version info, npm latest/next update check with one-click install and auto-restart, and GitHub release history.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 6

↓ 413/wk

MIT

JavaScript

Sep 29, 2026

dsh plugin --profile web add @yannzhou/dsh-about

by bobby-sheng

Search, inspect, update, and install DeepSeek Harness plugins from DSH Get.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dshget-plugin
dsh-plugins4

No screenshots

by wsxwj123

Independent plugins for DeepSeek Harness, organized as isolated packages in one monorepo.

Tools & CapabilitiesThemes & SkinsTerminal & ClientsManifest valid

★ 9

↓ 109/wk

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add dsh-appearance-gallery

by ADDD1118

DeepSeek Harness (dsh) check-for-updates plugin — 右上角检查更新 UI + 关闭后自动升级 (npm / update-dsh.ps1)

Manifest valid

★ 0

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add dsh-update

by ai798-Lab

DSH Wiki 情报面板:在 dsh 侧边栏直接查看 DeepSeek Harness 插件精选、排行榜与大事记(数据来自 dshwiki.com)

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 18, 2026

dsh plugin --profile web add dshwiki-plugin

by kristol07

Show the running DeepSeek Harness version and every mounted plugin's package version inside the dsh web UI.

Development & InfrastructureManifest valid

★ 0

↓ 368/wk

MIT

TypeScript

Sep 6, 2026

dsh plugin --profile web add dsh-version-inventory