evolcore 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -322,9 +322,20 @@ export function buildCodexHClassFilesystemRules(root = resolveRoot()) {
322
322
  };
323
323
  }
324
324
  export function buildCodexProtectedFilesystemRules(root = resolveRoot()) {
325
+ const lClassRules = {};
326
+ for (const target of getExistingLClassReadOnlyTargets(root)) {
327
+ if (target.kind === 'directory') {
328
+ if (path.basename(target.path) === 'triggers')
329
+ lClassRules[target.path] = 'read';
330
+ lClassRules[path.join(target.path, '**')] = 'read';
331
+ }
332
+ else {
333
+ lClassRules[target.path] = 'read';
334
+ }
335
+ }
325
336
  return {
326
337
  ...buildCodexHClassFilesystemRules(root),
327
- ...Object.fromEntries(getLClassWritePatterns(root).map(pattern => [pattern, 'read'])),
338
+ ...lClassRules,
328
339
  };
329
340
  }
330
341
  export function hClassGrantIncludesProtectedPath(value, options = {}) {