DeepSeek Harness Hub
← 返回列表

一键发布助手Olympianz/dsh-deploy-master

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

自动发布 GitHub、npm 并同步 Linear 公告

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/30 · 已提供中文文档

一个 DSH 部署助手插件:GitHub 发布 + Linear 同步 + npm 发布 + 社区公告。

综合分
28.2
GitHub 分
28.2
用户评分
★ Stars
0
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add Olympianz/dsh-deploy-master
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/16(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
依赖的 DSH / Cordis 模块
@deepseek-ai/cordis@deepseek-ai/dsh-agent@deepseek-ai/dsh-llm@deepseek-ai/dsh-tools@deepseek-ai/schemastery
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

dsh-deploy-master

一个 DeepSeek Harness (DSH) 插件:把「本地项目发布到 GitHub + 同步 Linear + 发布 npm 参与社区」这一整套流程自动化。它是一个 host 侧 tool 插件(像 dsh-master),通过注册工具 + 注入工作流提示词,让对话 agent 变成部署助手。

核心功能

1. GitHub 自动发布 —— dsh_deploy_github:对本地项目执行 git init/commit/push、用 GitHub API 创建仓库、设置 topics、打 tag、发 release。
2. 同步 Linear —— dsh_deploy_linear:创建需求 issue 或更新进度 issue(状态/优先级/描述)。
3. 可配置 / 运行时询问 —— 所有 key 和仓库名既可在 cordis.yml 配置,也可在对话中由 agent 向用户询问后作为参数传入;缺失时工具会返回提示。
4. 发布到 npm + 加入社区 —— dsh_deploy_npm 执行 npm publish,并默认带上 dsh-plugin / deepseek-harness / dsh topics,参与 deepseek-harness 社区与 dsh-plugin topic。
5. 社区公告 —— dsh_deploy_announce 在社区仓库的 GitHub Discussions 里发布插件公告(默认 deepseek-harness 的 "Show Your Plugins!" 分类)。

安装

dsh plugin --profile web add dsh-deploy-master
或源码 checkout:pnpm dsh plugin --profile web add dsh-deploy-master

然后重启 dsh。

配置(cordis.yml 或 profile 的 patch 层)

- id: dsh-deploy-master
config:
githubToken: ghp_xxxx            # GitHub PAT(repo + workflow 权限)
githubOwner: your-username       # token 所属用户名
npmToken: npm_xxxx               # npm granular token(publish + bypass-2FA)
linearApiKey: lin_api_xxxx       # Linear API key
linearTeamKey: OLY               # Linear team key
topics: [dsh-plugin, deepseek-harness, dsh]
gitCommand: [git]
discussionOwner: deepseek-ai           # 公告发布到的社区仓库 owner
discussionRepo: deepseek-harness       # 公告发布到的社区仓库名
discussionCategory: "Show Your Plugins!"   # 公告发布到的讨论分类
injectWorkflowPrompt: true

所有字段都可留空——留空时 dsh_deploy_check 会报告缺失,工作流提示词会引导 agent 在对话里向用户索取,并以参数传入工具(每次调用可覆盖配置)。

注册的工具

| 工具 | 作用 |
| --- | --- |
| dsh_deploy_check | 查看配置状态(哪些 key 已填/缺失) |
| dsh_deploy_github | 本地项目 → GitHub(建仓/推送/topics/tag/release) |
| dsh_deploy_linear | 同步需求/进度到 Linear(创建/更新 issue) |
| dsh_deploy_npm | npm publish |
| dsh_deploy_announce | 在社区 Discussions 发布插件公告 |
| dsh_deploy_help | 能力与工作流说明 |

使用

直接在对话里说,例如:

帮我把当前项目发布到 GitHub(仓库名 dsh-github-sidebar、公开),同步需求到 Linear,并发布到 npm。

agent 会先 dsh_deploy_check 看配置,缺什么(token/仓库名/可见性等)会先问你,确认后再依次执行 GitHub → Linear → npm。

安全说明

- token 都通过 Config 或工具参数传递;dsh_deploy_npm 用 NODE_AUTH_TOKEN 注入,不写入磁盘。
- dsh_deploy_github 推送时用 https://:@github.com/... 一次性 URL,不把 token 写进 .git/config。
- 建议使用具有最小权限的专用 token,并在完成后轮换。

项目结构

src/
├── index.ts     # 插件入口:工具注册 + 工作流提示词注入
├── config.ts    # Config schema + 配置状态检查
├── github.ts    # GitHub API + git CLI 封装
├── linear.ts    # Linear GraphQL 封装
├── npm.ts       # npm publish 封装
├── announce.ts  # GitHub Discussions 公告发布封装
└── prompts.ts   # 工作流提示词

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

同作者(Olympianz)的其他插件

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群