dsh-shell-card-plus
Manifest valid★ 1Replaces the stock bash/pwsh terminal rows in the DSH web UI with shell command cards: long commands soft-wrap with line numbers instead of truncating, plus separate copy-command and copy-output butto
中文 | English
dsh-shell-card-plus
DSH Web 里 bash / pwsh 命令卡片的增强插件。装完即用,不改任何命令执行逻辑。
解决什么问题
DSH Web 原版的 bash/pwsh 命令卡片有两个日常痛点:
| 痛点 | 原版 | 本插件 |
|---|---|---|
| 长命令看不全 | 命令单行截断(超出部分直接看不见,连滚动都没有) | 命令自动折行,带行号,一眼看全 |
| 没有复制命令按钮 | 只有"复制输出",复制命令得手动划选 | 复制命令、复制输出两个独立按钮 |
状态显示对齐官方规范:正常时安静(只有一个状态点),失败时才显示红色 退出码 N / 信号 X。
左:原版展开卡片 · 右:本插件展开卡片
功能
- 完全替换官方 bash/pwsh 工具行:折叠行样式与官方一致,展开后是自定义卡片
- head:状态点 + cwd(子目录名)+ 复制命令/复制输出按钮
- 命令区:完整命令,自动折行 + 行号
- 输出区:横向滚动,保留原版阅读习惯
- 仅接管 bash/pwsh,其他工具(read/write/search 等)不受影响
安装
# 从 npm 安装(推荐,免构建白名单配置)
dsh plugin --profile web add dsh-shell-card-plus
# 或从 GitHub
dsh plugin --profile web add github:antnesswcm/dsh-shell-card-plus
# 或本地目录
dsh plugin --profile web add ./dsh-shell-card-plus
装完重启 dsh web(或浏览器 Ctrl+F5)生效。要求 dsh ≥ 0.1.0-rc.5。
工作方式
通过官方 tool.call.toolview 插槽注册 bash/pwsh 两个 key,替换官方对该工具行的渲染。命令、cwd、输出、退出码全部来自官方已有的 ToolCallBlock 数据,插件是纯展示层,不引入任何新事件或 host 改动。实现细节见 CLAUDE.md。
开发
npm install
npm run build # 生产构建(lib/ 已入库,用户装包不需要构建)
npm run dev # watch + 热重载
开发与接手文档见 CLAUDE.md。
License
MIT
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.3.1 | — | — |
| 0.3.2 | — | — |
Comments
Loading…
Similar plugins
DSH plugin: one shell tool that runs commands through PowerShell, Git Bash, MSYS2, or WSL on Windows, with a user-chosen default terminal in the Web UI settings. TypeScript rewrite of MAXeaglet/dsh-bash-terminal with working MSYS2/MINGW64 support.
★ 0
dsh plugin --profile web add dsh-bash-terminal-tsby xing-shuyin
Developer tools panel for the DSH web UI: file browser with preview, edit, and path-only file mentions; multi-tab terminals with quick commands; Git panel with commit, push, pull, and branch switching
★ 6
↓ 142/wk
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-ui-toolsby beartackler
Slash commands ported from other coding agents (setup, connect, install, trust, browse, doctor, status, model, memory, compact, resume, review, mcp, init, suggest, improve, refactor), a zero-dependenc
★ 1
↓ 506/wk
MIT
TypeScript
Aug 30, 2026
dsh plugin --profile web add dsh-bridgeby WongYuYe
Per-turn file-change card for DSH Desktop: +N −M badges, aligned diffs, and Mac/Windows file open (system app, Finder/Explorer, VS Code).
★ 2
↓ 103/wk
MIT
TypeScript
Sep 15, 2026
dsh plugin --profile web add dsh-diff-cardby Isanti2016
Slash-command console for dsh: /web start|stop|restart|status, /tunnel SSH forward management, one-shot /ask, and a console TUI launcher.
★ 0
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-consoleby SanYe-SanJiu
Windows-only process control for the harness: a sidebar button that shuts DSH down through the host's own graceful exit path, an app-window / normal-tab switch on the Plugins card that rewrites the de
★ 0
MIT
JavaScript
Oct 21, 2026
dsh plugin --profile web add dsh-power-switch