liulei237136/dsh-publish-plugin ↗★ 0
dsh-publish-plugin
一键将 DeepSeek Harness 插件发布到 npm 和 GitHub 的工作流插件,提供命令行与发布工具。
AI 分析
核心用途是简化插件发布流程。适合 DSH 插件开发者,需要快速完成包体校验、创建 GitHub 仓库、推送代码并一键发布到 npm 的场景。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:liulei237136/dsh-publish-plugin说明文档
阅读完整 README ↗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
yesit 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.