dsh-plugin-update-audit: Read-only Update Audit for Profile Plugin Dependencies

Introduction

DeepSeek Harness (DSH) Profiles often carry a collection of plugin dependencies: some from npm, some pointing to GitHub repositories, and others referencing local tarballs or directories. In daily development, you are likely more concerned with “what is currently installed and whether the upstream has changed” rather than immediately performing bulk upgrades. Manually cross-referencing the Registry, running git rev-parse, and checking local paths is slow and prone to omissions.

Here, we introduce the community plugin dsh-plugin-update-audit (maintained by Muggle8888, categorized under admin-security). Without installing, updating, or deleting any plugins, it generates an inventory and comparison of the direct dependencies for a specified Profile, handing the results over to agents or operations staff for subsequent decision-making.

What is this

The positioning of dsh-plugin-update-audit is to perform read-only update auditing for direct plugin dependencies in DeepSeek Harness Profiles.

The plugin registers a single tool with Cordis: plugin_update_audit. It inventories the selected Profile and checks each dependency based on its declared source:

  • npm: Compares against the latest manifest of the package on the official npm Registry;
  • GitHub: Compares against the repository’s current HEAD via the GitHub API (if pinned to an immutable commit, it checks for inconsistency with HEAD);
  • Local tarball / directory: Marked for manual review, providing SHA-256 hashes for readable files;
  • Unsupported, missing, or unreachable sources: Reported individually; the audit will not be interrupted by these.

The tool does not install, update, remove, or rewrite plugins. The default network scope is limited to registry.npmjs.org and api.github.com; setting offline: true performs only a local inventory. Local dependency paths are redacted in the tool’s output.

The project uses the MIT license, and the current npm version is 0.1.0 (subject to the README and package metadata). Directory page: SkillHub Plugin Page; Source code and documentation: GitHub — Muggle8888/dsh-plugin-update-audit.

Core Features

Single Audit Tool

The entire plugin capability is concentrated in a single tool name: plugin_update_audit. Upon invocation, it returns the status and description of each direct dependency, allowing you to decide whether to read release notes, perform snapshots, or upgrade items one by one.

Source-Specific Check Logic

  1. npm dependencies: Queries the Registry to determine if a newer stable latest version exists.
  2. GitHub dependencies: Compares the pinned commit with the remote HEAD for consistency.
  3. Local packages: Does not automatically conclude “upgradeable,” but suggests explicit rebuilds and manual review, providing SHA-256 hashes of readable files for verification.
  4. Abnormal sources: If missing, unsupported, or network-unreachable, it only affects the report for that specific dependency; other items are completed as usual.

Security & Boundaries

  • Read-only: Performs no package management write operations.
  • Network toggleable: offline: true is suitable for air-gapped environments or when you only want to verify the local inventory.
  • Output redaction: Redacts local paths in the output to reduce the risk of inadvertently leaking workspace layout.
  • Security disclosure: See SECURITY.md in the repository.

Installation & Activation

The installation command must be written to the target Profile, based on the README:

dsh plugin --profile <profile> add dsh-plugin-update-audit@0.1.0

Replace <profile> with your Profile name (e.g., dev-lab). Restart DSH Desktop after installation for the new tool to be loaded.

Note: The plugin runs with the permissions of the current DSH process. Please review the source code and MIT license before installation, and ensure compatibility with peer dependencies such as @deepseek-ai/cordis (>=4.0.0) and @deepseek-ai/dsh-tools (>=0.1.0-rc.5). (package.json requires Node >=20).

Typical Usage

Ask the agent in the conversation to call plugin_update_audit. The parameter example below is from the official README:

{
  "profile": "dev-lab",
  "offline": false,
  "timeout_ms": 10000
}

Brief description of field meanings:

  • profile: The name of the Profile to audit;
  • offline: If false, accesses npm / GitHub; if true, performs only local inventory;
  • timeout_ms: Network timeout for a single check (example is 10000 milliseconds).

The statuses returned are advisory labels intended to help prioritize attention; they do not replace human judgment:

Status Meaning (Summary)
update_available A newer stable latest exists on npm
upstream_changed GitHub HEAD is inconsistent with the pinned immutable commit
local_review_required Local or workspace sources require explicit rebuild and review
current / ahead / offline / unpinned / not_installed / unavailable Does not draw an automatic “should upgrade” conclusion

Official recommended operation sequence: Read release notes and source changes → Take a security snapshot → Update only one plugin at a time → Restart DSH → Run acceptance tests for that plugin. The audit results are only responsible for “letting you see the differences,” not for upgrading on your behalf.

Use Cases & Notes

Who it is for

  • Teams maintaining multiple DSH Profiles with mixed dependency sources (npm + GitHub + Local);
  • Admins / Security roles who want to perform supply-chain style inventory before upgrades;
  • Scenarios requiring agents to periodically generate “dependency freshness reports” without triggering automatic changes.

Points to note

  • The plugin executes within the DSH process, with permissions consistent with the current user; network auditing accesses public Registries and the GitHub API.
  • Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer; installation sources should be based on the registry and GitHub organization you trust.
  • If the repository URLs in the README and package.json on GitHub contain different organization names, verify ownership based on the package you actually installed and the selected repository.

Conclusion

dsh-plugin-update-audit consolidates the questions of “is there a new version, has the upstream commit drifted, and does the local package need a human look” regarding Profile direct dependencies into a single read-only audit. It is suitable as a fixed step before upgrades, rather than a replacement for reading release notes and testing.

  • Directory Page: https://www.skillhub.cn/plugins/Muggle8888/dsh-plugin-update-audit
  • GitHub: https://github.com/Muggle8888/dsh-plugin-update-audit
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye