giiiiiithub/terminal0

dsh-terminal

Terminal panel for the DSH Web UI: a real PTY shell (cmd.exe by default on Windows) rendered in the browser with xterm.js. Host half spawns shells with node-pty; client half is a browser plugin.

AI Analysis

在 DSH 网页端提供功能完整的交互式终端。适合需要直接在浏览器中执行系统命令、管理工作区文件的开发者。

Package
dsh-terminal
Version
0.1.0
License
MIT
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:giiiiiithub/terminal

配置

默认值可在 profile 的 cordis.patch.yml 里按 id 定点覆盖(bundle 层之后应用):

- id: terminal
  config:
    shell: cmd.exe          # 默认 shell(Windows 下默认即 cmd.exe,也可填完整路径)
    cwd:            # 新会话默认工作目录,不配置该项时,每次新建terminal都会使用shd当前会话所在工作目录
    env:                     # 追加到进程环境
      LANG: "zh_CN.UTF-8"
配置项默认值说明
shellcmd.exe (win32) / /bin/zsh (macOS) / /bin/bash (Linux)新会话默认 shell
cwd客户端工作区路径;都没有时为用户主目录新会话默认工作目录。解析顺序:客户端请求参数(UI 默认传当前会话 workspace)→ 本配置 → 用户主目录
env追加的环境变量
defaultReadTimeoutMs250read 长轮询上限
maxBufferBytes2,000,000每会话输出缓冲上限,超出丢弃最旧字节