@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.
@@ -7514,7 +7514,7 @@ var init_version = __esm({
7514
7514
  "src/version.ts"() {
7515
7515
  "use strict";
7516
7516
  init_captured_globals();
7517
- KERNEL_VERSION = true ? "1.175.0" : "0.0.0-dev";
7517
+ KERNEL_VERSION = true ? "1.175.1" : "0.0.0-dev";
7518
7518
  OS_RELEASE = "6.0.0-slicc";
7519
7519
  }
7520
7520
  });
@@ -7513,7 +7513,7 @@ var init_version = __esm({
7513
7513
  "src/version.ts"() {
7514
7514
  "use strict";
7515
7515
  init_captured_globals();
7516
- KERNEL_VERSION = true ? "1.175.0" : "0.0.0-dev";
7516
+ KERNEL_VERSION = true ? "1.175.1" : "0.0.0-dev";
7517
7517
  OS_RELEASE = "6.0.0-slicc";
7518
7518
  }
7519
7519
  });
package/dist/node.js CHANGED
@@ -3702,7 +3702,7 @@ function satisfies(version, range2) {
3702
3702
  }
3703
3703
 
3704
3704
  // src/version.ts
3705
- var KERNEL_VERSION = true ? "1.175.0" : "0.0.0-dev";
3705
+ var KERNEL_VERSION = true ? "1.175.1" : "0.0.0-dev";
3706
3706
  var OS_RELEASE = "6.0.0-slicc";
3707
3707
  function procVersion() {
3708
3708
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -28304,8 +28304,10 @@ var OpfsFs = class {
28304
28304
  for (let at = from; at < parts2.length; at++) {
28305
28305
  this.calls++;
28306
28306
  dir = await dir.getDirectoryHandle(parts2[at]);
28307
- this.dirs.set(`/${parts2.slice(0, at + 1).join("/")}`, dir);
28307
+ const path = `/${parts2.slice(0, at + 1).join("/")}`;
28308
+ this.dirs.set(path, dir);
28308
28309
  this.checked.set(dir, performance.now());
28310
+ this.absent.delete(path);
28309
28311
  }
28310
28312
  return dir;
28311
28313
  }
@@ -28387,6 +28389,7 @@ var OpfsFs = class {
28387
28389
  if (looked) {
28388
28390
  this.dirs.set(path, handle);
28389
28391
  this.checked.set(handle, performance.now());
28392
+ this.absent.delete(path);
28390
28393
  }
28391
28394
  return handle;
28392
28395
  }
@@ -29037,7 +29040,8 @@ var OpfsFs = class {
29037
29040
  }
29038
29041
  const [entry] = await this.meta.get([path]);
29039
29042
  const wanted = entry?.link === void 0 ? path : resolvePath(parentOf9(path), entry.link);
29040
- return [resolvePath((await this.locate(parentOf9(wanted), true)).path, baseOf3(wanted)), false];
29043
+ const parent = await this.exactly(() => this.locate(parentOf9(wanted), true));
29044
+ return [resolvePath(parent.path, baseOf3(wanted)), false];
29041
29045
  }
29042
29046
  async fileFor(path, create = true) {
29043
29047
  const [target, existed] = await this.writeTarget(path);
@@ -29144,10 +29148,12 @@ var OpfsFs = class {
29144
29148
  await this.mkdir(parentOf9(path), { recursive: true, ...above ? { owner: above } : {} });
29145
29149
  const parent = await this.locate(parentOf9(path), true);
29146
29150
  if (parent.handle?.kind !== "directory") throw fsError("ENOTDIR", path);
29147
- this.refuse(resolvePath(parent.path, baseOf3(path)));
29148
- await this.io(parent.handle.getDirectoryHandle(baseOf3(path), { create: true }));
29151
+ const made2 = resolvePath(parent.path, baseOf3(path));
29152
+ this.forget(made2);
29153
+ this.refuse(made2);
29154
+ const handle = await this.io(parent.handle.getDirectoryHandle(baseOf3(path), { create: true }));
29155
+ this.remember(made2, handle, true);
29149
29156
  const now = Date.now();
29150
- const made2 = `${parent.path === "/" ? "" : parent.path}/${baseOf3(path)}`;
29151
29157
  await this.stampNew(made2, owner, true);
29152
29158
  this.touch(now, parent.path, made2);
29153
29159
  }