MCPcopy Create free account
hub / github.com/tiann/hapi / resolveSandboxPolicyOverride

Function resolveSandboxPolicyOverride

cli/src/codex/utils/appServerConfig.ts:38–49  ·  view source on GitHub ↗
(value: CodexCliOverrides['sandbox'] | undefined)

Source from the content-addressed store, hash-verified

36}
37
38function resolveSandboxPolicyOverride(value: CodexCliOverrides['sandbox'] | undefined): SandboxPolicy | undefined {
39 switch (value) {
40 case 'read-only':
41 return { type: 'readOnly' };
42 case 'workspace-write':
43 return { type: 'workspaceWrite' };
44 case 'danger-full-access':
45 return { type: 'dangerFullAccess' };
46 default:
47 return undefined;
48 }
49}
50
51export function supportsReasoningSummary(model: string | undefined): boolean {
52 const normalized = model?.trim().toLowerCase();

Callers 1

buildTurnStartParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected