refactor(core): delegate sandbox denial parsing to SandboxManager (#23928)

This commit is contained in:
Tommaso Sciortino
2026-03-26 15:10:15 -07:00
committed by GitHub
parent 73dd7328df
commit 8868b34c75
10 changed files with 272 additions and 148 deletions
@@ -375,6 +375,7 @@ describe('PolicyEngine', () => {
isKnownSafeCommand: vi
.fn()
.mockImplementation((args) => args[0] === 'npm'),
parseDenials: vi.fn().mockReturnValue(undefined),
} as unknown as SandboxManager;
engine = new PolicyEngine({