dsh-npm
NPM registry management for DeepSeek Harness: query package info, list versions, search packages, and publish/deprecate packages — registry info via HTTP API, publish via the npm CLI with optional token injection, plus a web settings panel
安装
dsh plugin --profile web add github:zhengjy01/dsh-npm
需要可复现安装时,可在仓库后追加 #commit 固定提交。
NPM registry management for DeepSeek Harness: query package info, list versions, search packages, and publish/deprecate packages — registry info via HTTP API, publish via the npm CLI with optional token injection, plus a web settings panel
该插件未提供要点说明,请参考仓库 README。
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/zhengjy01/dsh-npm |
| 许可证 | MIT |
| 主要语言 | main |
| 下载量 | 2 |
| GitHub 星标 | 0 |
| 最近推送 | 2026-09-10 |
| 收录日期 | 2026-09-19 |
| 分类 | 界面增强 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# dsh-npm NPM registry management for [DeepSeek Harness](https://github.com/deepseek-ai/dsh): query package info, list versions, search the registry, publish packages, and mark packages deprecated — straight from the agent. - **Query tools** hit the npm registry JSON API directly (no local npm needed, no auth for public packages). - **Publish / deprecate** shell out to the local `npm` CLI and reuse your own `~/.npmrc` credentials — or an optional token you configure in the plugin. ## Tools | Tool | Purpose | |---|---| | `npm_status` | Plugin status: effective registry, token presence, local npm CLI availability, config path | | `npm_config` | Configure registry base URL and/or auth token (stored in `~/.dsh/dsh-npm.json`, mode 0600); `reset: true` clears | | `npm_info` | Package metadata: latest version, dist-tags, description, author, license, homepage, repository, timestamps, dependency summary | | `npm_versions` | All published versions with publish dates (dist-tags.latest pinned first) — check before publishing | | `npm_search` | Registry search by keywords (name, description, author, score) | | `npm_publish` | Real `npm publish` — supports `dir`, `tag`, `access`, `otp`, `registry`, `dryRun`, `force` | | `npm_deprecate` | Mark a package/version as deprecated (real registry write, use carefully) | ## Compatibility Requires **DeepSeek Harness ≥ 0.1.5-rc.1** (declared as `dsh.engines.dsh` in the package manifest, so the DSH plugin marketplace can report it) and is verified against **0.1.5-rc.1**. This build carries the DSH 0.1.5 adaptations: the strict tool-result contract (lossless-JSON snapshot, `additionalProperties: false` schema validation, and `output.render` returning `ContentBlock[]`) plus executable resolution that survives a launchd-started host whose `PATH` is only `/usr/bin:/bin`. ## Install ```bash # from npm (published package) dsh plugin --profile web add dsh-npm # or local development dsh plugin --profile web add link:/path/to/dsh-npm # after publishing to GitHub (repo tagged with the `dsh-plugin` topic) dsh plugin --profile web add github:zhengjy01/dsh-npm ``` Restart the DSH web service afterwards (no hot reload). ## Web settings panel The plugin ships a **NPM** panel in the web settings page (设置 → NPM): configure registry/token visually (token is masked, stored at mode 0600), plus quick package lookup (`npm_info`) and registry search (`npm_search`) without touching the CLI. Host routes: `/api/dsh-npm/config`, `/api/dsh-npm/info`, `/api/dsh-npm/search` (loopback-only). ## Auth model - **Querying public packages**: no configuration needed. - **Publishing**: the `npm publish` subprocess reads your normal `~/.npmrc` (`npm login` once and you are done). - **Token**: optionally set via `npm_config` (`token=…`); it is stored in `~/.dsh/dsh-npm.json` (mode 0600), injected into publish/deprecate through a **temporary userconfig file** (never on the command line or in logs), and used as a Bearer token for private-package queries. It is never echoed in tool output (masked only). - **Registry**: defaults to `https://registry.npmjs.org/`; override per-call (`registry` arg) or globally (`npm_config registry=…`) — useful for private registries / mirrors. ## Safety notes - `npm_publish` really uploads to the registry. Before publishing, check the version does not exist yet with `npm_info` / `npm_versions`, and prefer `dryRun: true` first. - `force: true` overrides an already-published version (npm blocks it by default) — dangerous. - `npm_deprecate` writes a permanent deprecation message shown to every installer. ## Development ```bash pnpm install pnpm build # tsc declarations + tsdown bundle → dist/index.mjs pnpm test # smoke tests (store round-trip, real registry queries, publish --dry-run) ``` ## License MIT
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。