편집자 노트

PTY 终端面板

DeepSeek Harness Web

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.

dsh-plugin-terminal

dsh-plugin-terminal banner — a real PTY terminal in the DeepSeek Harness footer

English | 中文

A DeepSeek Harness (DSH) Web plugin that adds a real interactive terminal — a VS Code-style collapsible panel docked to the footer. Unlike the earlier version (which faked output with built-in help/echo/ls commands), 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.

Demo

dsh-plugin-terminal demo — a real terminal in the footer

What it does

  • Actual terminal — a real interactive shell (/bin/bash by default) running in a PTY via the harness's subprocess.spawnTerminal primitive (node-pty).
  • Full terminal rendering — xterm.js renders ANSI colors, cursor movement, full-screen apps (vim, htop, top, …), and 256-color output.
  • VS Code-style footer panel — a collapsible bottom panel with a header, drag-to-resize top edge, restart button, and collapse toggle.
  • Keyboard shortcut — `Ctrl+ toggles the panel (the VS Code default).
  • Live resize — the PTY reflows when you resize the panel.
  • A Terminal settings card under Settings → Plugins configures theme, font size, panel height, opacity, start-collapsed, shell, and working directory at runtime.
  • Graceful fallback — if xterm.js cannot load (offline), a plain streaming view still exposes the real shell.

Files

FilePurpose
lib/index.jsHost half — spawns the PTY and bridges it over the /api/terminal WebSocket.
lib/client.jsBrowser half — the footer panel and the settings card.
cordis.patch.ymlComposition patch that inserts the plugin row.
package.jsonPackage metadata (dsh.bundle + dsh.client manifest).

Install

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.

Requirements

  • DSH with the subprocess and webServer services mounted.
  • Network access to jsDelivr the first time the terminal renders xterm.js (the plain fallback works without it).

Settings

Settings → Plugins → Terminal exposes:

SettingDescription
Themedark or light terminal theme (applied live).
Font sizeTerminal font size in pixels (applied live).
Max heightMaximum panel height in pixels.
OpacityTerminal background opacity 0–100% (100 = fully opaque).
Start collapsedWhether the panel starts collapsed.
ShellShell executable for new sessions.
Working directoryDefault directory for new sessions (empty = $HOME).

Shell and working directory apply the next time you open the terminal; theme, opacity, font size, and max height apply immediately.

Notes and limitations

  • The terminal renders xterm.js from the jsDelivr CDN; the first expansion requires network access. The plain fallback still works offline.
  • A session is process-local and does not survive a harness restart.
  • The WebSocket route is loopback-bound like the rest of the Web GUI.

License

MIT

REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

저장소가 MIT 라이선스를 선언했습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.