MCPcopy Create free account
hub / github.com/SethGammon/Citadel / sandboxPolicyFor

Function sandboxPolicyFor

scripts/codex-app-server-capture.js:47–59  ·  view source on GitHub ↗
(value, projectRoot)

Source from the content-addressed store, hash-verified

45}
46
47function sandboxPolicyFor(value, projectRoot) {
48 if (!value) return null;
49 if (value === 'readOnly') return { type: 'readOnly' };
50 if (value === 'workspaceWrite') {
51 return {
52 type: 'workspaceWrite',
53 writableRoots: [projectRoot],
54 networkAccess: false,
55 };
56 }
57 if (value === 'dangerFullAccess') return { type: 'dangerFullAccess' };
58 throw new Error(`Unsupported --turn-sandbox value: ${value}`);
59}
60
61if (process.argv.includes('--help')) {
62 console.log('Usage: node scripts/codex-app-server-capture.js [--project-root PATH] [--out PATH] [--handshake-only] [--turn "prompt"]');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected