dsh-plugin-market

DSH 社区插件市场

项目简介

DeepSeek Harness(DSH)的插件市场索引源,按官方 plugin market index format 1 发布。 DSH 自带的市场页(插件 → 发现)本身不含任何插件目录,需要用户添加索引源;本项目就是那个可以直接粘进去的中文友好、按当前 DSH 版本过滤过的社区插件目录。

在 DSH 里添加

  1. 打开左侧栏 插件 → 发现
  2. 点 添加索引源,粘贴上面的索引地址
  3. 之后即可在市场里搜索、按分类浏览、点安装

(本机 desktop profile 的 cordis.patch.yml 已预置该索引源;若被其他设置写入覆盖,refresh.ps1 会每天自动补回。)

说明

更新

# 首次(或数据目录丢失时):稀疏克隆上游目录,只为拿完整简介
git clone --depth 1 --filter=blob:none --sparse https://github.com/awesome-dsh-plugin/awesome-dsh-plugin ../
git -C ../awesome-dsh-plugin sparse-checkout set data/plugins

pnpm install
pnpm run build          # 换 DSH 版本:DSH_VERSION=0.2.2-rc.1 pnpm run build
git add index.json && git commit -m "chore: refresh index" && git push

上游目录克隆放在仓库外的 ../awesome-dsh-plugin(默认路径,可用 UPSTREAM_DATA_DIR 覆盖);它同时提供完整简介(data/plugins/*.yml)与评分数据(data/stars.json、data/downloads.json)。找不到时 build.mjs 会退回官方索引的 160 字截断版并打印警告、评分全部为 0。

GitHub Actions 工作流已备在 .github/workflows/update.yml,但当前 gh token 缺 workflow scope,暂未推送;gh auth refresh -s workflow 后可改用云端每日刷新(届时可停掉本机计划任务)。

目录结构

index.json          生成的市场索引(发布物,GitHub Pages 直接托管)
build.mjs           抓上游 → 过滤 → 校验 → 写 index.json
refresh.ps1         本机每日刷新 + profile 索引源自愈(计划任务调用)
package.json        build 依赖(semver / 官方校验器)

致谢