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 peer 범위
>=0.2.0-rc.2
Cordis peer 범위
~4.0.4
버전
1.0.0
라이선스
MIT
최근 업데이트
2026. 10. 2.

설치

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

配置

键默认说明
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分别开关四个工具