@ai-ecoverse/slicc-kernel 1.141.2 → 1.141.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.
@@ -899,7 +899,7 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
899
899
  const live = (miss, path) => miss.until > now() && young2(miss) && (view === void 0 || miss.gen === void 0 || !view.changedSince(miss.gen, path).changed);
900
900
  const seen = new SeenAt(view, lstats);
901
901
  const kept = remember(cache, seen, blind, (entry2) => filled2.set(entry2));
902
- const gone = (path) => goneAbove([lstats, stats], live, path);
902
+ const gone2 = (path) => goneAbove([lstats, stats], live, path);
903
903
  const usable = (map, path) => {
904
904
  const hit = map.get(path);
905
905
  if (hit === void 0) return void 0;
@@ -911,7 +911,7 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
911
911
  cache.fresh();
912
912
  let hit = usable(map, path);
913
913
  if (hit === void 0) {
914
- const missing2 = gone(path);
914
+ const missing2 = gone2(path);
915
915
  if (missing2) throw missing2.error;
916
916
  hit = fetched({ view, now, seen, filled: filled2, cache }, map, path, get);
917
917
  }
@@ -5928,7 +5928,7 @@ var init_wasi_host = __esm({
5928
5928
  size: BigInt(size)
5929
5929
  };
5930
5930
  }
5931
- statOrphanable(path, size, orphan = false, gone = false) {
5931
+ statOrphanable(path, size, orphan = false, gone2 = false) {
5932
5932
  let s;
5933
5933
  if (!orphan) {
5934
5934
  try {
@@ -5937,7 +5937,7 @@ var init_wasi_host = __esm({
5937
5937
  }
5938
5938
  }
5939
5939
  const out = this.sized(path, s, size);
5940
- return gone ? { ...out, nlink: 0n } : out;
5940
+ return gone2 ? { ...out, nlink: 0n } : out;
5941
5941
  }
5942
5942
  synthetic(path) {
5943
5943
  return deviceOf(path) !== void 0 || path === SEALED_PATH && !!this.o.kernel.sys.openSealed || path === CLIPBOARD_PATH && !!this.o.kernel.sys.openClipboard;
@@ -6725,7 +6725,7 @@ var KERNEL_VERSION, OS_RELEASE;
6725
6725
  var init_version = __esm({
6726
6726
  "src/version.ts"() {
6727
6727
  "use strict";
6728
- KERNEL_VERSION = true ? "1.141.2" : "0.0.0-dev";
6728
+ KERNEL_VERSION = true ? "1.141.3" : "0.0.0-dev";
6729
6729
  OS_RELEASE = "6.0.0-slicc";
6730
6730
  }
6731
6731
  });
@@ -8256,6 +8256,9 @@ function refusal(err) {
8256
8256
  const code2 = err?.code;
8257
8257
  return code2 === "EACCES" || code2 === "EPERM";
8258
8258
  }
8259
+ function gone(err) {
8260
+ return err?.code === "ENOENT";
8261
+ }
8259
8262
  function young(s) {
8260
8263
  return performance.now() - (s.filledAt ?? Number.NEGATIVE_INFINITY) < SHARED_TTL_MS;
8261
8264
  }
@@ -8773,7 +8776,9 @@ function createStreamOps(h) {
8773
8776
  if (s.handle === void 0) h.handled.delete(node);
8774
8777
  else h.handled.add(node);
8775
8778
  } catch (err) {
8776
- if (refusal(err)) throw new Fs.ErrnoError(wasiErrno(err.code));
8779
+ if (refusal(err) || gone(err)) {
8780
+ throw new Fs.ErrnoError(wasiErrno(err.code));
8781
+ }
8777
8782
  }
8778
8783
  };
8779
8784
  const permitted = (stream, created) => {