@ai-ecoverse/slicc-kernel 1.119.1 → 1.119.2

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.
@@ -5395,7 +5395,7 @@ var KERNEL_VERSION, OS_RELEASE;
5395
5395
  var init_version = __esm({
5396
5396
  "src/version.ts"() {
5397
5397
  "use strict";
5398
- KERNEL_VERSION = true ? "1.119.1" : "0.0.0-dev";
5398
+ KERNEL_VERSION = true ? "1.119.2" : "0.0.0-dev";
5399
5399
  OS_RELEASE = "6.0.0-slicc";
5400
5400
  }
5401
5401
  });
package/dist/node.js CHANGED
@@ -3996,6 +3996,7 @@ var RemoteWatch = class {
3996
3996
  pruned = 0;
3997
3997
  joined;
3998
3998
  met;
3999
+ settled = false;
3999
4000
  quiet;
4000
4001
  constructor(name2, options = {}) {
4001
4002
  this.name = name2;
@@ -4011,7 +4012,9 @@ var RemoteWatch = class {
4011
4012
  });
4012
4013
  if (!this.locks) resolve2();
4013
4014
  });
4014
- this.joined = granted2.then(() => this.join());
4015
+ this.joined = granted2.then(() => this.join()).then(() => {
4016
+ this.settled = true;
4017
+ });
4015
4018
  this.channel.postMessage({ hello: this.tab });
4016
4019
  }
4017
4020
  async join() {
@@ -4033,6 +4036,9 @@ var RemoteWatch = class {
4033
4036
  await this.joined;
4034
4037
  return this.peers.size > 0;
4035
4038
  }
4039
+ crowded() {
4040
+ return !this.settled || this.peers.size > 0;
4041
+ }
4036
4042
  lockOf(tab) {
4037
4043
  return `${this.name}:${tab}`;
4038
4044
  }
@@ -4613,7 +4619,7 @@ var OpfsFs = class {
4613
4619
  const kept = this.dirs.get(path);
4614
4620
  if (kept && await this.current(path, kept)) return kept;
4615
4621
  const gone = this.absent.get(path);
4616
- if (gone !== void 0 && performance.now() - gone < ABSENT_MS) {
4622
+ if (gone !== void 0 && !this.shared() && performance.now() - gone < ABSENT_MS) {
4617
4623
  throw translate({ name: "NotFoundError" }, path);
4618
4624
  }
4619
4625
  const seen = this.changes;
@@ -4800,7 +4806,11 @@ var OpfsFs = class {
4800
4806
  if (this.dirTimes.get(path) === ms) this.dirTimes.delete(path);
4801
4807
  }
4802
4808
  }
4809
+ shared() {
4810
+ return this.remote?.crowded() === true;
4811
+ }
4803
4812
  glanced(handle) {
4813
+ if (this.shared()) return void 0;
4804
4814
  const seen = this.glances.get(handle);
4805
4815
  const fresh2 = seen && seen.changes === this.changes && performance.now() - seen.at < GLANCE_MS;
4806
4816
  return fresh2 ? seen.file : void 0;
@@ -6737,7 +6747,7 @@ function satisfies(version, range2) {
6737
6747
  }
6738
6748
 
6739
6749
  // src/version.ts
6740
- var KERNEL_VERSION = true ? "1.119.1" : "0.0.0-dev";
6750
+ var KERNEL_VERSION = true ? "1.119.2" : "0.0.0-dev";
6741
6751
  var OS_RELEASE = "6.0.0-slicc";
6742
6752
  function procVersion() {
6743
6753
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC