返回目錄

dsh-hub-cli

編輯精選維護狀態: 活躍

pax-beehive/dsh-hub-cli

面向 DSH 外掛中心的開放 CLI、schema、解析器與智慧體工具集。

前往 GitHub專案首頁
$ npm install --global @dsh-plugin-hub/cli

102

星數

2

Fork

TypeScript

語言

MIT

授權條款

2026-08-25

建立於

2026-09-02

最近推送

MIT 協議、TypeScript 撰寫的 CLI 加 DSH agent 工具配接器,把 DeepSeek Harness 設定變成可版本化、內容定址的 Profile,可共用、原子套用、回退——帶 plan 審批閘門、鎖定來源、密鑰留在本地。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-09-04

授權條款

MIT

01它能幫你完成什麼?

  • 把整套本地 DeepSeek Harness 設定封裝成一個可版本化、可復原的 Profile 並發佈

    不可變的、內容定址的 Release,鎖定確切的插件版本、載入順序、執行環境與 cordis.patch.yml,任何人一條指令即可套用

    希望用單一可審查快照在同事、CI runner 與 AI agent 之間復原 DSH 環境的開發者與平台工程師

  • 用一條指令把隊友的 Profile 套用到本地 harness,升級前先 diff、出錯時 rollback

    本地 Profile 的 staged + validated + atomic 替換;上一版 Profile 目錄與鎖檔作為完整 revision 保留,因此 rollback 只是改名而非重裝

    需要在多機與 CI 一致部署 DSH 設定、並要求每次變更可審查、可回退的團隊

02如何將外掛接入 DeepSeek Harness?

先決條件

  • Requires **Node.js 22.13+** and **pnpm** on your `PATH`.

安裝步驟

  1. 01

    $ npm install --global @dsh-plugin-hub/cli

  2. 02

    dsh-hub --help

驗證整合成功

  • dsh-hub --help
  • dsh-hub profile doctor --profile web

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

透過官方 `dsh plugin add` 把 DSH agent 工具配接器裝進 Profile,把 dsh-hub 的 plan/apply/rollback 流程暴露給 DSH agent;其餘套件(schemas/registry/cli)作為本地 CLI 使用。

  • Profile 共用與發佈(share/publish)

    本地 Profile 目錄(如 ~/.dsh/profiles/web)不可變的、內容定址的 Release(sha256 校驗)

    `dsh-hub login` 會在本地寫入 Hub 登入工作階段到 ~/.dsh/.hub/auth.jsonprofile share 讀取本地 DSH Profile 與 cordis.patch.yml 並發佈到 Hub
  • Profile 套用(apply,staged / validated / atomic)

    已發佈的 Profile slug + 版本原子替換後的本地 web/ Profile;舊目錄作為 revision 保留

    編輯本地 DSH Profile 目錄與鎖檔apply 先寫入 plan,僅在確認確切 plan ID 後才執行
  • DSH agent 工具配接器(dsh-plugin)

    在 Profile 中安裝 @dsh-plugin-hub/dsh-plugin11 個與 CLI 一對一對應的 DSH agent 工具(search / plan / apply / diff / doctor / share / rollback)

    變更類工具只建立 plan,執行需 confirmed: true,且僅在使用者批準確切 plan 後
  • 內容定址完整性 & plan 安全

    Release 與本地 harness 狀態sha256 比對、plan 預檢、staging 校驗

04適合誰?何時不該用?

適合

  • 希望用單一可審查快照在同事、CI runner 與 AI agent 之間復原 DSH 環境的開發者與平台工程師
  • 需要在多機與 CI 一致部署 DSH 設定、並要求每次變更可審查、可回退的團隊

不適合

  • GitHub 來源必須指向完整 40 字元 commit,npm 來源攜帶 integrity hash;每個 Release 都是內容定址的,CLI 在運作前先校驗 sha256,遇到不一致直接拒絕。
  • 所有變更先寫成確切且會過期的 plan;30 分鐘過期或本地狀態變化即被拒絕。DSH agent 只能透過 dsh_hub_operation_apply 且 confirmed: true 執行 plan,且僅在使用者批準確切 plan 後才能設定。
  • `profile share` 拒絕包含疑似憑證值的 patch,只發佈環境變數參照;密鑰不離開本地,token 以 mode 0600 儲存。

05相容性、維護與安全提醒

  • GitHub 來源必須指向完整 40 字元 commit,npm 來源攜帶 integrity hash;每個 Release 都是內容定址的,CLI 在運作前先校驗 sha256,遇到不一致直接拒絕。
  • 所有變更先寫成確切且會過期的 plan;30 分鐘過期或本地狀態變化即被拒絕。DSH agent 只能透過 dsh_hub_operation_apply 且 confirmed: true 執行 plan,且僅在使用者批準確切 plan 後才能設定。
  • `profile share` 拒絕包含疑似憑證值的 patch,只發佈環境變數參照;密鑰不離開本地,token 以 mode 0600 儲存。
  • 首次執行提示後,lifecycle 指令傳送匿名、僅聚合的使用事件(不含帳號、機器 ID、路徑、設定或環境變數);可用 `dsh-hub telemetry off`、--no-telemetry、DSH_HUB_TELEMETRY=0 或 DO_NOT_TRACK=1 關閉。
  • DSH Hub 是獨立社群專案,未與 DeepSeek 關聯或獲其背書。
2026-08-252026-09-02v0.2.0

MIT · 活躍維護中(最新發佈 v0.2.0,2026-09-01;建立於 2026-08-25)

06常見問題

DSH Hub CLI 是做什麼的?

它把正在執行的插件、載入順序、執行環境與 config 擷取成一個可版本化、可復原的 Profile,發佈為不可變 Release;任何人一條指令套用,需要時可回退。

怎麼安裝?

執行 `npm install --global @dsh-plugin-hub/cli`,再 `dsh-hub --help`。需要 Node.js 22.13+ 與 pnpm;用 `dsh-hub profile doctor --profile web` 確認本地 Profile 健康。

讓 AI agent 來驅動安全嗎?

安全。唯讀工具可自由執行,變更類工具只建立 plan;唯一的 `dsh_hub_operation_apply` 執行 plan 並要求 confirmed: true,agent 只能在使用者批準確切 plan 後設定。

它會把我的密鑰送出去嗎?

不會。`profile share` 拒絕包含疑似憑證值的 patch,只發佈環境變數參照;token 以 mode 0600 留在 `~/.dsh/.hub/auth.json`。

08資料與來源

  • 作者聲明github.com7147202dfcd3…

    Install the adapter into a Profile and your DSH agent gets eleven tools that map one-to-one onto the CLI:

  • 作者聲明github.com7147202dfcd3…

    Share your entire DeepSeek Harness setup as one versioned, reproducible Profile.

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-09-04。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。