@ai-ecoverse/slicc-kernel 1.175.0 → 1.175.1

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.
@@ -2239,8 +2239,10 @@ var OpfsFs = class {
2239
2239
  for (let at = from; at < parts2.length; at++) {
2240
2240
  this.calls++;
2241
2241
  dir = await dir.getDirectoryHandle(parts2[at]);
2242
- this.dirs.set(`/${parts2.slice(0, at + 1).join("/")}`, dir);
2242
+ const path = `/${parts2.slice(0, at + 1).join("/")}`;
2243
+ this.dirs.set(path, dir);
2243
2244
  this.checked.set(dir, performance.now());
2245
+ this.absent.delete(path);
2244
2246
  }
2245
2247
  return dir;
2246
2248
  }
@@ -2322,6 +2324,7 @@ var OpfsFs = class {
2322
2324
  if (looked) {
2323
2325
  this.dirs.set(path, handle);
2324
2326
  this.checked.set(handle, performance.now());
2327
+ this.absent.delete(path);
2325
2328
  }
2326
2329
  return handle;
2327
2330
  }
@@ -2972,7 +2975,8 @@ var OpfsFs = class {
2972
2975
  }
2973
2976
  const [entry] = await this.meta.get([path]);
2974
2977
  const wanted = entry?.link === void 0 ? path : resolvePath(parentOf4(path), entry.link);
2975
- return [resolvePath((await this.locate(parentOf4(wanted), true)).path, baseOf(wanted)), false];
2978
+ const parent = await this.exactly(() => this.locate(parentOf4(wanted), true));
2979
+ return [resolvePath(parent.path, baseOf(wanted)), false];
2976
2980
  }
2977
2981
  async fileFor(path, create = true) {
2978
2982
  const [target, existed] = await this.writeTarget(path);
@@ -3079,10 +3083,12 @@ var OpfsFs = class {
3079
3083
  await this.mkdir(parentOf4(path), { recursive: true, ...above ? { owner: above } : {} });
3080
3084
  const parent = await this.locate(parentOf4(path), true);
3081
3085
  if (parent.handle?.kind !== "directory") throw fsError("ENOTDIR", path);
3082
- this.refuse(resolvePath(parent.path, baseOf(path)));
3083
- await this.io(parent.handle.getDirectoryHandle(baseOf(path), { create: true }));
3086
+ const made2 = resolvePath(parent.path, baseOf(path));
3087
+ this.forget(made2);
3088
+ this.refuse(made2);
3089
+ const handle = await this.io(parent.handle.getDirectoryHandle(baseOf(path), { create: true }));
3090
+ this.remember(made2, handle, true);
3084
3091
  const now = Date.now();
3085
- const made2 = `${parent.path === "/" ? "" : parent.path}/${baseOf(path)}`;
3086
3092
  await this.stampNew(made2, owner, true);
3087
3093
  this.touch(now, parent.path, made2);
3088
3094
  }
@@ -8740,7 +8746,7 @@ function satisfies(version, range2) {
8740
8746
  }
8741
8747
 
8742
8748
  // src/version.ts
8743
- var KERNEL_VERSION = true ? "1.175.0" : "0.0.0-dev";
8749
+ var KERNEL_VERSION = true ? "1.175.1" : "0.0.0-dev";
8744
8750
  var OS_RELEASE = "6.0.0-slicc";
8745
8751
  function procVersion() {
8746
8752
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC