@ai-ecoverse/slicc-kernel 1.134.4 → 1.135.0

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.
@@ -6678,7 +6678,7 @@ var KERNEL_VERSION, OS_RELEASE;
6678
6678
  var init_version = __esm({
6679
6679
  "src/version.ts"() {
6680
6680
  "use strict";
6681
- KERNEL_VERSION = true ? "1.134.4" : "0.0.0-dev";
6681
+ KERNEL_VERSION = true ? "1.135.0" : "0.0.0-dev";
6682
6682
  OS_RELEASE = "6.0.0-slicc";
6683
6683
  }
6684
6684
  });
@@ -10883,11 +10883,11 @@ function frozen(bytes) {
10883
10883
  truncate: refuse2
10884
10884
  };
10885
10885
  }
10886
- function physicalProc(fs) {
10886
+ function physicalProc(fs, now = () => performance.now()) {
10887
10887
  const view = fs.changes;
10888
10888
  let seen;
10889
10889
  return () => {
10890
- if (seen && view && !view.foreign()) {
10890
+ if (seen && view && (!view.foreign() || now() - seen.at < SHARED_TTL_MS)) {
10891
10891
  const proc = view.changedSince(seen.gen, "/proc");
10892
10892
  if (!proc.changed && !view.changedSince(seen.gen, "/").changed) {
10893
10893
  seen.gen = proc.now;
@@ -10895,6 +10895,7 @@ function physicalProc(fs) {
10895
10895
  }
10896
10896
  }
10897
10897
  const gen = view?.now();
10898
+ const at = now();
10898
10899
  let physical2;
10899
10900
  try {
10900
10901
  fs.stat("/proc");
@@ -10907,7 +10908,7 @@ function physicalProc(fs) {
10907
10908
  }
10908
10909
  physical2 = false;
10909
10910
  }
10910
- seen = gen === void 0 ? void 0 : { gen, physical: physical2 };
10911
+ seen = gen === void 0 ? void 0 : { gen, physical: physical2, at };
10911
10912
  return physical2;
10912
10913
  };
10913
10914
  }