export function normalizeProviderBlockOptions(provider) {
    if (provider.type === 'codex' || provider.type === 'opencode') {
        if (provider.network_access === undefined) {
            return undefined;
        }
        return { [provider.type]: { networkAccess: provider.network_access } };
    }
    if ((provider.type === 'claude-sdk' || provider.type === 'claude') && provider.sandbox) {
        return {
            claude: {
                sandbox: {
                    ...(provider.sandbox.allow_unsandboxed_commands !== undefined
                        ? { allowUnsandboxedCommands: provider.sandbox.allow_unsandboxed_commands }
                        : {}),
                    ...(provider.sandbox.excluded_commands !== undefined
                        ? { excludedCommands: provider.sandbox.excluded_commands }
                        : {}),
                },
            },
        };
    }
    return undefined;
}
//# sourceMappingURL=providerBlockOptions.js.map