liulei237136/dsh-publish-plugin0

dsh-publish-plugin

Publish a DeepSeek Harness plugin to npm and GitHub in one flow: /publish-dsh-plugin command + publish_plugin tool. 一键把 DSH 插件发布到 npm 与 GitHub(双平台必发)。

AI Analysis

核心用途是简化插件发布流程。适合 DSH 插件开发者,需要快速完成包体校验、创建 GitHub 仓库、推送代码并一键发布到 npm 的场景。

Package
dsh-publish-plugin
Version
0.1.3
Last updated
Aug 17, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:liulei237136/dsh-publish-plugin

Command usage

① /publish-dsh-plugin                  → discover candidates in the session directory (and ancestors / direct subdirectories)
② /publish-dsh-plugin 
         → validate manifest + conflict checks + action summary
③ /publish-dsh-plugin 
 yes     → execute (npm publish + GitHub repo creation/push + tag + topic)
  • Without yes it only summarizes, never executes (fail-closed);
  • A taken version (already published) reports an error prompting a version bump; an existing package name / repo is treated as a normal upgrade (publish a new version, push to the existing repo);
  • Stateless: every step re-discovers and re-checks (conflicts are re-checked right before execution to guard the check→publish gap).

Tool usage

Just ask the model to "publish this plugin". The model calls publish_plugin (plugin_path optional; defaults to the session directory), the tool validates, shows the action summary, and routes the final confirmation through ctx.approval — only allowed-once proceeds. The result returns to the model, which can verify the install, write a CHANGELOG, or handle failures.