dsh-maestro-guard
安全与治理 活跃维护

dsh-maestro-guard

ddtcorex/dsh-maestro-guard

提供审批存储、密钥自动脱敏、细粒度权限策略配置能力,支持瀑布式预执行流程集成,为主机部署环境提供统一安全管控入口,无额外依赖轻量易部署。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
31 KB
仓库大小
26 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:ddtcorex/dsh-maestro-guard
git clone https://github.com/ddtcorex/dsh-maestro-guard.git
git clone git@github.com:ddtcorex/dsh-maestro-guard.git
README.md master

@ddtcorex/dsh-maestro-guard

Host-only safety gate for the DeepSeek Harness: gates tool execution before dispatch via a
waterfall pre-execute hook — persistent approval grants, secret redaction before
logging/persistence, and a pure allow/deny permission policy.

Part of the Maestro Harness suite (dsh-maestro-*). Cordis patch row id: dsh-maestro-guard.

Opt-in and intentionally not part of the meta-bundle one-liner until published:
add it explicitly with dsh plugin add @ddtcorex/dsh-maestro-guard.

What it provides

  • Waterfall pre-execute integration — one Cordis row (dsh-maestro-guard) wiring the
    guard handler into the tool-execution waterfall.
  • ApprovalStore — persistent approval grants with legacy migration, revoke, and
    read-modify-write safety under a mutex.
  • SecretRedactor — redacts known secret families (ghp_, xox, private keys, …) before
    calls are logged or persisted.
  • PermissionPolicy — pure, unit-testable allow/deny checks for tool calls.

Host-only: no client bundle; DSH types come from local structural declarations
(src/augment.d.ts).

Development

pnpm install
pnpm verify   # tsc --noEmit
pnpm test     # vitest run
pnpm build    # tsc -> lib/

License

MIT