跳到主要内容

dsh-panel-hello

已验证

dsh-panel-hello · v1.0.0 · MIT · Web 界面

A tiny DeepSeek Harness web plugin example: a floating panel in the web UI that says hello! word~

安装

dsh plugin add dsh-panel-hello

dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南

源码

发布到 npm 但没有公开仓库。安装前请检查包内容。

标签

作者

说明文档

dsh-panel-hello

A tiny DeepSeek Harness web plugin example: a floating panel in the bottom-right of the dsh web UI that displays hello! word~.

What it is

  • A profile plugin bundle: dsh.bundle.patch points at cordis.patch.yml, which inserts the panel-hello row into the host composition.
  • A web client plugin: the package manifest declares dsh.client.platform: "web" and exports ./client, so @deepseek-ai/dsh-client-modules serves lib/client.js to the browser and the shell mounts it. The bundle registers a React card into the shell.overlay slot — a list seat that floats above every column and is purely additive (it never replaces a shipped surface).

No build step: lib/client.js is already in the exact window.__ModuleLoader__.load({ id, factory }) format the web shell loads, and the plugin has zero dependencies (require("react") resolves from the shell's module table).

Install

# local checkout / this example:
dsh plugin --profile web add ./dsh-panel-hello

# once published to npm, anyone can:
dsh plugin --profile web add dsh-panel-hello

dsh plugin forwards to pnpm in the profile directory and reconciles dsh.profile.bundles, so the bundle patch applies on the next boot.

Activate

Plugin-set changes take effect on restart (client bundles are composed into window.__DSH_BOOT__ at boot). Restart the web app, then hard-refresh the page: a card pinned to the bottom-right shows hello! word~.

Layout

dsh-panel-hello/
  package.json        # dsh.bundle.patch + dsh.client.platform: web + exports ./client
  cordis.patch.yml    # inserts the host-composition row
  lib/index.js        # host half (no host behavior — browser-only plugin)
  lib/client.js       # browser half: the panel bundle (this is the shipped format)
  README.md

Remove

dsh plugin --profile web remove dsh-panel-hello