/**
 * App-owned adapter from tool registry state into the shared permission
 * compiler. The compiler owns the resulting policy shape.
 */
import { buildEffectivePermissionPolicy, createDefaultPermissionPolicy } from './compiler.js';
export function deriveModePermissionPolicy(toolNames, modeName, workspaceRoots = [], persistentApprovals = [], dangerouslySkipRuntimePermissions = false, dangerouslySkipSpreadsheetPermissions = false) {
    return buildEffectivePermissionPolicy({
        toolNames,
        modeName,
        workspaceRoots,
        persistentApprovals,
        dangerouslySkipRuntimePermissions,
        dangerouslySkipSpreadsheetPermissions
    });
}
export { createDefaultPermissionPolicy };
//# sourceMappingURL=policy.js.map