dsh-files
DeepSeek Harness dual-face plugin: a composer file-upload button with session-isolated storage, TTL sweep and sha256 dedup, plus a read_document tool (text/PDF/DOCX/XLSX) with content sniffing, GB18030 fallback and byte-budgeted LRU caching.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:taxueseek/dsh-files说明文档
阅读完整 README ↗配置
- id: upload-toolkit
name: 'dsh-files'
config:
maxFileBytes: 25165824 # 单次文档读取字节上限
readLimit: 800 # 单次返回行数上限(默认 800,翻页成本低)
sheetRowLimit: 200 # 每个 sheet 保留行数
maxSheets: 5 # 每个工作簿读取的 sheet 数
cacheEntries: 16 # 解析缓存条目数
cacheMaxBytes: 67108864 # 解析缓存字节预算
maxOutputChars: 50000 # 单次输出窗口总字符预算(超限截断并标记)
uploadMaxBytes: 25165824 # 单次上传字节上限
allowedExtensions: [] # 上传扩展名白名单(空 = 全部允许)
uploadTtlMs: 604800000 # 上传文件保留时长(7 天)
sweepIntervalMs: 3600000 # 清扫间隔
maxConcurrentUploads: 4 # 并发上传数
maxUploadBytesPerSession: 0 # 每会话存储配额(0 = 不限)
uploadDir: /abs/path # 无 sessions 服务时的回退上传根目录