返回目錄

dsh-plugin-template

維護狀態: 活躍

bugmaker2/dsh-plugin-template

DeepSeek Harness 外掛開發模板,幫助快速搭建外掛工程。

前往 GitHub
$ dsh plugin --profile web add .

110

星數

1

Fork

TypeScript

語言

MIT

授權條款

2026-08-13

建立於

2026-08-27

最近推送

MIT 授權的 DeepSeek Harness 插件雛形(TypeScript),產生一對主機+客戶端插件並暴露 Typert Remote,已預置建置、測試與 CI。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-08-30

授權條款

MIT

01它能幫你完成什麼?

  • Scaffold a dual-side DeepSeek Harness plugin (host + client) from a working reference

    A ready-to-build template that registers a `greet` Remote — the host composes `"Hello, <name>"` and the client renders it in a new "Greet" tab

    Plugin developers building for the DeepSeek Harness runtime who want the full plugin surface wired up (type-checking, linting, tests, CI, publishing)

  • Learn how a DeepSeek Harness host plugin and Web client plugin connect end to end

    Annotated `src/` layout, `dsh.plugin.json` registry manifest, `cordis.patch.yml` profile mount, and `build.mjs` dual build

    Developers who want a concrete reference for the Harness plugin surface before writing their own plugin

02如何將外掛接入 DeepSeek Harness?

先決條件

  • Node.js >= 22.19 (or >= 24)
  • pnpm >= 9
  • DeepSeek Harness >=0.1.0-rc.6

安裝步驟

  1. 01

    pnpm install

  2. 02

    pnpm run build

  3. 03

    $ dsh plugin --profile web add .

  4. 04

    Restart the Web Harness after rebuilding the plugin

驗證整合成功

  • A "Greet" tab appears in the session view ring showing `Hello, DSH`

復原

  • dsh plugin --profile web remove dsh-plugin-template

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

Built for the DeepSeek Harness runtime: a host plugin exposes a Typert `greet` Remote and a client plugin mounts it into a React view; install via `dsh plugin --profile web add .`.

  • Host plugin: greet Remote (Typert)

    configurable prefix via the Config schemacomposes `"Hello, <name>"` string from the prefix and the name

  • Client plugin: Greet tab (React view)

    the greet Remote resultrenders `Hello, <name>` in a new "Greet" tab of the session view ring

    mounts the Remote into the Web harness module loader and adds a "Greet" tab to the session view ring
  • Dual build & CI

    TypeScript sources in src/ and tests/host ESM + client CJS bundles plus type declarations; vitest unit tests; CI on push

04適合誰?何時不該用?

適合

  • Plugin developers building for the DeepSeek Harness runtime who want the full plugin surface wired up (type-checking, linting, tests, CI, publishing)
  • Developers who want a concrete reference for the Harness plugin surface before writing their own plugin

不適合

  • A Git install (`dsh plugin --profile web add github:...`) fetches sources, not built artifacts, so pnpm runs `prepare` to build `lib/`. pnpm >=10 blocks that build until you set `allowBuilds`; that allowance lets the package run code at install time, so only allow packages you trust and pin a commit.

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

  • A Git install (`dsh plugin --profile web add github:...`) fetches sources, not built artifacts, so pnpm runs `prepare` to build `lib/`. pnpm >=10 blocks that build until you set `allowBuilds`; that allowance lets the package run code at install time, so only allow packages you trust and pin a commit.
2026-08-132026-08-27作者未說明

MIT licensed DeepSeek Harness plugin template (sources: ours); last push 2026-08-27; no tagged GitHub release

06常見問題

如何用 DeepSeek Harness 安裝 dsh-plugin-template?

在本地倉庫執行 `pnpm install`、`pnpm run build`,再執行 `dsh plugin --profile web add .` 並重新啟動 Web Harness。會出現一個顯示 `Hello, DSH` 的「Greet」分頁。

安裝前置條件是什麼?

Node.js >= 22.19(或 >= 24)、pnpm >= 9,以及 DeepSeek Harness >=0.1.0-rc.6。

範本如何連接到 DeepSeek Harness?

它內含一個對外暴露 Typert Remote(greet)的主機插件,以及一個把該 Remote 掛載進 React 視圖的客戶端插件;Harness 只需 `package.json` 這份清單,另加供 dsh.so 註冊表使用的 `dsh.plugin.json`。

如何移除?

執行 `dsh plugin --profile web remove dsh-plugin-template`。

Git 安裝為什麼要求設定 allowBuilds?

Git 安裝取得的是原始碼而非構建產物,因此 pnpm 會執行 `prepare` 腳本來構建 `lib/`。pnpm >= 10 預設會擋下該構建,直到你在 profile 的 `pnpm-workspace.yaml` 加入 `allowBuilds: dsh-plugin-template: true`;此授權會讓套件在安裝時執行程式碼,因此只授權你信任的套件並固定提交。

08資料與來源

  • 作者聲明github.com31af7ebeb8d0…

    A complete dual-side [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin template.

  • 作者聲明github.com31af7ebeb8d0…

    a **host** plugin exposing a Typert Remote, and a **client** plugin mounting that Remote into a React view

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

🏆

最佳 DeepSeek Harness 外掛

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

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

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