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在工作区内安全处理压缩包、避免路径穿越风险的用户。

パッケージ
dsh-tool-archive
互換性
未検証
Harness ピア範囲
>=0.2.0-rc.2
Cordis ピア範囲
~4.0.4
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/10/02

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuehancn/dsh-tool-archive

ドキュメント

README 全文を読む ↗

配置

键默认说明
workDir.相对路径解析基准
archiveDirarchive-output归档读写目录
extractDirarchive-extract解包根目录
excludenode_modules/.git/.DS_Store/Thumbs.db末段名跳过
maxFileBytes0单文件上限;0 = 不限
maxEntries20000超出会告警(不静默截断)
maxTotalBytes2 GiB解包总量上限,也是读入内存的上限
maxNameBytes1000成员名字节上限
hashtrue打包时算 SHA-256
noOverwritefalse解包时拒绝覆盖
status/pack/unpack/verifytrue分别开关四个工具