58
* round-trip verbatim.
59
*/
60
>
function requestPermissionProfileToEvent(profile: RequestPermissionProfile): JsonValue {
codexGuardianReview.ts
61
>
const fs = profile.fileSystem;
62
>
let fileSystem: JsonValue = null;
63
>
if (fs) {
64
>
const mapped: Record<string, JsonValue> = { read: fs.read, write: fs.write };
65
>
if (fs.globScanMaxDepth !== undefined) {
66
>
mapped.glob_scan_max_depth = fs.globScanMaxDepth;
67
>
}
68
>
if (fs.entries !== undefined) {
69
>
mapped.entries = fs.entries as JsonValue;
70
>
}
71
>
fileSystem = mapped;
72
>
}
73
>
return { network: profile.network as JsonValue, file_system: fileSystem };
74
>
}
75
76
/**