feat(sandbox-policy): describe enforced file families
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user