zhaorui-wu/dsh-isolation-gate ↗★ 0
dsh-isolation-gate
门禁 · 目录访问管制(隔离区授权台):一屏管理「哪些目录受管、各自什么级别」,三级=禁/只读/可读写删;判定同时挂在受管辖通道(bin/gate.mjs)与宿主工具执行门(ctx.tools.guard)上,默认禁、名单缺失一律拒绝(fail-closed)、审计可查、agent 可自查;支持分组批量切、目录选择器与状态文件自动迁移。 适合需要对Agent执行环境进行严格目录权限控制(禁/只读/读写)的安全敏感型用户。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhaorui-wu/dsh-isolation-gate零配置默认值
| 配置 | 默认 | 说明 |
|---|---|---|
statePath | /isolation-gate/state.json | 状态唯一真身 |
rosterPath | /isolation-gate/roster.txt | 名单(一行一对象) |
backupDir | `` | 改名单前备份 |
root | \ | 列"一层目录"的根 |
auditPath | ~\.dsh\dsh-isolation-gate\access-log.jsonl | 审计 |
toolGate | true | 关掉就只剩通道层 |
suspectVocabulary | ['pi','codex',…] 内置 | 追加"疑似受管目录"名谱(旧键 harnessVocabulary 仍读) |