Momojie-S/dsh-workspace-files ↗★ 0
@momojie-s/dsh-workspace-files
DSH Web UI 的工作区文件浏览器:支持可缩放文件树、递归搜索、Markdown 渲染与多语言语法高亮
AI 分析
在 DSH 侧边栏提供直观的文件树和搜索功能。适合需要在 Web 界面中高频查看、搜索和预览工作区代码及文档的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Momojie-S/dsh-workspace-files说明文档
阅读完整 README ↗配置
patch config 字段:
| 字段 | 默认值 | 说明 |
|---|---|---|
maxReadBytes | 1000000 | 单文件预览读取上限(字节),超过则不预览 |
maxDownloadBytes | 200000000 | 单文件下载上限(字节),超过回答 413 |
maxSearchNodes | 4000 | 递归搜索访问节点预算(文件+目录) |
maxSearchMatches | 300 | 搜索结果条数上限 |
skipDirs | ['.git', 'node_modules'] | 文件树与搜索都不进入的目录名 |
trustedHosts | [] | 非回环 host[:port] 授权列表;远程域名/局域网访问必须配置,否则所有路由 403 |
远程部署示例(profile patch 层覆盖 bundle 行,认证交给网关层如 nginx basic auth):
- id: workspace-files
config:
trustedHosts: ['dsh.example.com']