dsh-doctor
asdf17128
Find what your DeepSeek Harness (dsh) patches silently broke — dead patches, config fields dropped by whole-config repla…
PROJECT TOPICS
PROJECT README
English | 中文
A DeepSeek Harness (DSH) Web plugin that adds a real interactive terminal — a VS Code-style collapsible panel docked to the footer. This plugin runs an actual shell in a PTY and streams the raw terminal bytes to the browser. It is a persistent bundle plugin (a host half plus a browser half) that loads on every boot.
$SHELL//bin/bash elsewhere, by default) running in a PTY via the harness's
subprocess.spawnTerminal primitive (node-pty).vim, htop, top, …), and 256-color output.| File | Purpose |
|---|---|
lib/index.js |
Host half — spawns the PTY and bridges it over the /api/terminal WebSocket. |
lib/client.js |
Browser half — the footer panel and the settings card. |
cordis.patch.yml |
Composition patch that inserts the plugin row. |
package.json |
Package metadata (dsh.bundle + dsh.client manifest). |
dsh plugin --profile web add github:mervyn-teo/dsh-plugin-terminal
Then restart dsh web — host bundles load at boot.
Defaults live in cordis.patch.yml. Change them there (or in the profile's own
cordis.patch.yml) and restart, or adjust them at runtime from the settings
card. The host half serves two same-origin routes the browser half uses:
GET|POST /api/terminal/config and the /api/terminal WebSocket upgrade.
subprocess and webServer services mounted.Settings → Plugins → Terminal exposes:
| Setting | Description |
|---|---|
| Theme | dark or light terminal theme (applied live). |
| Font size | Terminal font size in pixels (applied live). |
| Max height | Maximum panel height in pixels. |
| Opacity | Terminal background opacity 0–100% (100 = fully opaque). |
| Start collapsed | Whether the panel starts collapsed. |
| Shell | Shell executable for new sessions. |
| Working directory | Default directory for new sessions (empty = home directory). |
Shell and working directory apply the next time you open the terminal; theme, opacity, font size, and max height apply immediately.
powershell.exe (set shell to
cmd.exe for Command Prompt, with shellArgs: []). It needs a Windows-built
node-pty (conpty/winpty) from the DSH host.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。