zhangzujian/dsh-same-mode-sandbox-noop

插件 ⭐ 3 MIT security

DSH 兼容插件,用于冗余的同模式沙箱升级请求

catalog 简介:DSH compatibility plugin for redundant same-mode sandbox escalation requests

安装

The plugin wraps both `ctx.tools.execute()` and the rc.6 Agent Loop scheduler's
preparation entry point before DSH snapshots and freezes tool arguments. For
`bash`, `pwsh`, `write`, and `edit`, it removes the paired
`sandbox_permissions` and `justification` fields when the requested mode is
equal to or narrower than the calling session's effective mode. The original
runtime then executes the call under its standing policy. For example, a
`workspace-write` request in a `danger-full-access` session is not an
escalation, so the redundant pair is removed.

Genuinely wider requests, unknown modes, malformed argument pairs, unrelated
tools, and calls without escalation fields pass to DSH unchanged. For a known
non-escalating request, an empty justification is removed with the redundant
permission fields before DSH validates it; for a genuinely wider request, the
same empty justification remains subject to DSH's original validation.
Disposal restores the original runtime methods.

This is an out-of-tree compatibility workaround. Prefer a DSH release that
handles non-escalating requests in the shared sandbox escalation layer when one
is available.

## Install into a DSH profile

Until this package is published to npm, clone it and add the local directory:

zhangzujian/dsh-same-mode-sandbox-noop 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。