yuehancn/dsh-tool-archive ↗★ 0
dsh-tool-archive
Archive tools for DeepSeek Harness: pack a directory into a deterministic tar, read an archive's contents without extracting it, unpack a tar while refusing every member that could reach outside the destination, and verify what came out against what went in. No external dependency; the tar format is written and read here. 适合需要让AI在工作区内安全处理压缩包、避免路径穿越风险的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuehancn/dsh-tool-archiveドキュメント
README 全文を読む ↗配置
| 键 | 默认 | 说明 |
|---|---|---|
workDir | . | 相对路径解析基准 |
archiveDir | archive-output | 归档读写目录 |
extractDir | archive-extract | 解包根目录 |
exclude | node_modules/.git/.DS_Store/Thumbs.db | 末段名跳过 |
maxFileBytes | 0 | 单文件上限;0 = 不限 |
maxEntries | 20000 | 超出会告警(不静默截断) |
maxTotalBytes | 2 GiB | 解包总量上限,也是读入内存的上限 |
maxNameBytes | 1000 | 成员名字节上限 |
hash | true | 打包时算 SHA-256 |
noOverwrite | false | 解包时拒绝覆盖 |
status/pack/unpack/verify | true | 分别开关四个工具 |