akira399/dsh-plugin-publisher ↗★ 2
dsh-plugin-publisher
DSH plugin development & GitHub publishing workflow plugin for DeepSeek Harness (DSH). Host: registers the `dsh-plugin-publishing` skill (enabled by default, opt-out), and bridges a GUI-entered GitHub PAT (fine-grained Personal Access Token) into the system Git credential manager. Client: a settings card on the 设置 → 插件配置 page with an enable toggle (persisted across refreshes), a write-only GitHub PAT field, and an embedded PAT creation tutorial with required permissions. 核心用途是简化 DSH 插件的开发与 GitHub 发布流程。适合 DSH 插件开发者。用户可通过图形界面配置 GitHub PAT,由 AI 辅助完成安全的插件发布操作。
Other repositories with this package name
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:akira399/dsh-plugin-publisherREADME
Read the full README ↗启用状态与配置(图形化)
重启后打开 DSH Web GUI → 设置 → 插件配置 → dsh-plugin-publisher 卡片:
- 启用技能:默认勾选(启用),保存后刷新保持启用;要停用请取消勾选 → 点「保存」,技能即注销。
- GitHub PAT(可选):在「GitHub PAT」输入框粘贴你的 Fine-grained Personal Access Token(PAT) → 点「保存」。插件会自动把它同步到系统 Git 凭据管理器,之后
git push/git clone直接可用;内容永不回显,只写入 DSH 凭据存储与系统凭据管理器。
效果即时生效;可用性说明:
- 技能启用时,会话技能目录中即出现
dsh-plugin-publishing;用它时 AI 仍会先征得你对每次发布操作的明确同意。 - 若未填 PAT,技能照常可用——AI 会优先使用系统已有的 Git 凭据,没有则向你询问。
如何创建 GitHub PAT(Fine-grained Personal Access Token)
- 打开 GitHub → 右上角头像 → Settings
- 左侧最底部 Developer settings → Personal access tokens → Fine-grained tokens
- 点 Generate new token,填写名称(如
dsh-publish)与有效期 - Repository access 选择 All repositories(因为需要创建新仓库,无法预先指定一个不存在的仓库)
- 在 Permissions → Repository permissions 中授予:
| 权限 | 访问级别 | 用途 |
|---|---|---|
| Contents | Read and write | 推送代码(git push / HTTPS) |
| Administration | Read and write | 通过 API 创建/删除仓库、设置 Topics |
| Metadata | Read | 自动包含(必选,保持开启) |
- 点 Generate token,复制(只显示一次)后粘贴到设置卡片的输入框
Fine-grained PAT 形如
github_pat开头(后接下划线与一长串随机字符),与旧的 classic PAT(ghp开头)不同。本插件只把它写入系统 Git 凭据管理器用于推送,不会回显或上传。
配置兜底(无 GUI 环境,如 headless)
默认即启用,无需任何配置。要停用,在 profile 的 cordis.patch.yml 加直接覆盖条目(勿用 - insert:,同 id 会启动失败):
- id: dsh-plugin-publisher
name: dsh-plugin-publisher
config:
consent: false
或写入设置文档 ~/.dsh/settings.yaml:
dsh-plugin-publisher:
enabled: false
配置兜底(无 GUI 环境,如 headless)
默认即启用,无需任何配置。要停用,在 profile 的 cordis.patch.yml 加直接覆盖条目(勿用 - insert:,同 id 会启动失败):
- id: dsh-plugin-publisher
name: dsh-plugin-publisher
config:
consent: false
或写入设置文档 ~/.dsh/settings.yaml:
dsh-plugin-publisher:
enabled: false