@ai-ecoverse/slicc-kernel 1.147.1 → 1.147.3

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.
package/dist/node.js CHANGED
@@ -3305,7 +3305,7 @@ function satisfies(version, range2) {
3305
3305
  }
3306
3306
 
3307
3307
  // src/version.ts
3308
- var KERNEL_VERSION = true ? "1.147.1" : "0.0.0-dev";
3308
+ var KERNEL_VERSION = true ? "1.147.3" : "0.0.0-dev";
3309
3309
  var OS_RELEASE = "6.0.0-slicc";
3310
3310
  function procVersion() {
3311
3311
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -6933,6 +6933,7 @@ var FsWatchers = class {
6933
6933
  };
6934
6934
  return {
6935
6935
  close,
6936
+ root: () => watch.roots[0],
6936
6937
  next: async (signal) => {
6937
6938
  while (watch.notes.length === 0 && !watch.ended && !signal.aborted) {
6938
6939
  await new Promise((resolve2) => {
@@ -19038,7 +19039,8 @@ function visibleTo(watch, root, visible) {
19038
19039
  const shown = await Promise.all(
19039
19040
  notes.map(async (note) => {
19040
19041
  if (!("filename" in note) || !note.filename.includes("/")) return true;
19041
- const dir = parentOf6(`${root === "/" ? "" : root}/${note.filename}`);
19042
+ const at = watch.root?.() ?? root;
19043
+ const dir = parentOf6(`${at === "/" ? "" : at}/${note.filename}`);
19042
19044
  if (!seen.has(dir)) seen.set(dir, visible(dir));
19043
19045
  return seen.get(dir);
19044
19046
  })