fix(sandbox): mark the pwsh-sandbox executor's deliberate twin mirror for the clone gate

The duplication gate flags the call-for-call mirror of bash-sandbox's executor (the pwsh-tool-and-executor decision): wrap the class body in jscpd ignore markers, the same convention the invariant companions use.
This commit is contained in:
Huanqi Cao
2026-08-08 12:35:27 +08:00
parent e660ec8cf5
commit 83f288993f
+2
View File
@@ -45,6 +45,7 @@ export type Config = LocalConfig
* calls fall back to deployment policy. `result.sandbox` reports the mode and
* enforcement actually used.
*/
/* jscpd:ignore-start -- deliberate call-for-call mirror of bash-sandbox's executor (pwsh-tool-and-executor Agent Note) */
export class SandboxPwshExecutor extends PwshLocalExecutor {
static override inject = ['subprocess', 'sandbox', 'sandboxPolicy']
@@ -180,5 +181,6 @@ export class SandboxPwshExecutor extends PwshLocalExecutor {
return this.ctx.sandbox.confine(this.argv(spec), policy)
}
}
/* jscpd:ignore-end */
export default SandboxPwshExecutor