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

↓ 263/wk

MIT

JavaScript

Oct 6, 2026

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

by feely0208

检查并更新第三方 DSH 插件:对比 npm 最新版本,一条命令精确升级(绕过 pnpm 新版本观察期)

Manifest valid

★ 0

MIT

JavaScript

Nov 5, 2026

dsh plugin --profile web add @deepwhale-cn/dsh-plugin-updater

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

by Vikrant-Aleph

Adds an independent settings page to update npm-stable dshmarket through the DSH plugin manager, with version verification and best-effort recovery on installation failure.

Tools & CapabilitiesManifest valid

★ 11

↓ 416/wk

MIT

JavaScript

Oct 26, 2026

dsh plugin --profile web add dshmarket-update-helper

by windrover

A DeepSeek Harness plugin that adds a Check-updates button to the Plugins settings: scans every installed bundle for published updates and DSH-runtime compatibility, with a per-plugin update action.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 2, 2026

dsh plugin --profile web add dsh-plugin-update-checker

by 910092147

DSH 插件市场:浏览/搜索 npm 社区插件,一键安装、卸载、更新、对比。DSH plugin marketplace for DeepSeek Harness.

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add dsh-market-ui