@kaijia/dsh-sidebar
VSCode-style file explorer for the DeepSeek Harness web client: a body-mounted, draggable right sidebar with virtualized lazy file tree and text / Markdown / image preview. Does not depend on the native details slot, so it works on blank sessions.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kaijia323/dsh-sidebar说明文档
阅读完整 README ↗配置
- insert:
- id: dsh-sidebar
name: '@kaijia/dsh-sidebar'
config:
maxTextBytes: 2097152
maxImageBytes: 8388608
maxEntriesPerDirectory: 2000
maxTreeRows: 100000
watchEnabled: true
watchDebounceMs: 200
watchIgnored:
- '**/node_modules/**'
- '**/.git/**'
| 配置 | 默认值 | 说明 |
|---|---|---|
maxTextBytes | 2097152 | 单次文本预览上限(UTF-8 字节) |
maxImageBytes | 8388608 | 单张图片预览上限(字节,经 base64 返回) |
maxEntriesPerDirectory | 2000 | 单目录最多返回的条目数;超出时截断并在树上提示 |
maxTreeRows | 100000 | 客户端展开后可扁平化的最大树行数,防止超大目录打爆内存 |
watchEnabled | true | 是否开启文件监听实时刷新(文件树与当前激活预览);关闭后侧栏不再自动刷新(当前不提供内置手动刷新按钮) |
watchDebounceMs | 200 | chokidar 写入稳定后触发通知的等待时间(同时是客户端批量刷新窗口) |
watchIgnored | ['**/node_modules/**', '**/.git/**'] | 文件监听忽略的 glob 列表;仅影响自动刷新通知,不影响文件树展示 |