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 분석
在 DSH 网页端提供功能完整的交互式终端。适合需要直接在浏览器中执行系统命令、管理工作区文件的开发者。
설치
$
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"
| 配置项 | 默认值 | 说明 |
|---|---|---|
shell | cmd.exe (win32) / /bin/zsh (macOS) / /bin/bash (Linux) | 新会话默认 shell |
cwd | 客户端工作区路径;都没有时为用户主目录 | 新会话默认工作目录。解析顺序:客户端请求参数(UI 默认传当前会话 workspace)→ 本配置 → 用户主目录 |
env | — | 追加的环境变量 |
defaultReadTimeoutMs | 250 | read 长轮询上限 |
maxBufferBytes | 2,000,000 | 每会话输出缓冲上限,超出丢弃最旧字节 |