Chuyển đến nội dung chính

dsh-panel-hello

Đã xác minh

dsh-panel-hello · v1.0.0 · MIT · Giao diện web

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

Cài đặt

dsh plugin add dsh-panel-hello

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.

Thẻ

Tác giả

Readme

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