feat(sandbox-policy): describe enforced file families

This commit is contained in:
NI0317
2026-07-30 18:51:29 +08:00
parent d3323494ba
commit 87a4aaa32e
48 changed files with 623 additions and 140 deletions

View File

@@ -52,11 +52,12 @@ class SnapshotSession {
/** Cordis plugin name. */
export const name = 'pty-snapshot-backend'
/** Required PTY service. */
export const inject = ['pty']
/** Required PTY service and the policy owner whose terminal context this test adapter mirrors. */
export const inject = ['pty', 'sandboxPolicy']
/** Register the deterministic snapshot backend. */
export function apply(ctx) {
ctx.sandboxPolicy.registerEnforcedFamily('terminal')
ctx.pty.registerBackend({
type: 'shell',
spawn: () => Promise.resolve(new SnapshotSession()),