mingzhicode/dsh-interactive-terminal ↗★ 1

dsh-interactive-terminal

提供交互式终端集成插件 在Web界面中集成交互式终端,适合需要在DSH环境中直接执行Bash命令的Linux或macOS用户。

套件
dsh-interactive-terminal
相容性
待驗證
Harness 依賴範圍
^0.1.0-rc.8
Cordis 依賴範圍
^4.0.2
版本
0.1.0
授權
MIT
最近更新
2026年9月18日

安裝

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

Configuration

Add an override to ~/.dsh/profiles/web/cordis.patch.yml, or $DSH_HOME/profiles/web/cordis.patch.yml when using a custom home:

- id: dsh-interactive-terminal
  config:
    shellPath: /bin/bash
    shellArgs: [--noprofile, --norc, -i]
    rows: 40
    cols: 160

A patch replaces the row's entire config; include all custom values you want to retain. Omitted fields use the defaults below. Resetting the terminal creates a new shell and loses its in-memory state.

FieldDefaultMeaning
shellPath/bin/bashBash executable; other shells are rejected.
shellArgs--noprofile --norc -iInteractive-shell arguments; no empty arguments.
rows40Fixed PTY rows.
cols160Fixed PTY columns.
scrollbackLines10000Retained history lines, excluding the viewport.
scrollbackMaxBytes4194304UTF-8 limit for serialized ANSI history, excluding the viewport.
maxToolOutputBytes262144Complete tool-result JSON limit; at least 1024, no greater than scrollbackMaxBytes.
maxInputBytes65536Input bytes per model send or accepted human input lease.
maxQueuedOperations128Accepted mutations per Agent, including the active operation.
maxSessions32Maximum live Agent terminals.
pollIntervalMs50Delay after each foreground check before the next check.
operationTimeoutMs30000Model mutation deadline before interrupt recovery.
interruptTimeoutMs5000Controlled-prompt recovery deadline after SIGINT.
disconnectGraceMs15000Controller disconnect grace before human-input recovery.
disposeGraceMs3000Process-tree termination grace during reset or teardown.