@ai-ecoverse/slicc-kernel 1.73.1 → 1.73.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.
package/dist/node.js CHANGED
@@ -3713,13 +3713,10 @@ var OpfsFs = class {
3713
3713
  this.dirDirty.delete(path);
3714
3714
  const ms = this.dirTimes.get(path);
3715
3715
  if (ms === void 0) continue;
3716
- await this.meta.update(path, (entry) => ({
3717
- ...entry,
3716
+ await this.meta.update(
3718
3717
  path,
3719
- mtimeMs: ms,
3720
- mtimeFor: 0,
3721
- ctimeMs: ms
3722
- }));
3718
+ (entry) => (entry?.timesAt ?? -1) >= ms ? entry : { ...entry, path, mtimeMs: ms, mtimeFor: 0, ctimeMs: ms }
3719
+ );
3723
3720
  if (this.dirTimes.get(path) === ms) this.dirTimes.delete(path);
3724
3721
  }
3725
3722
  }
@@ -4173,7 +4170,8 @@ var OpfsFs = class {
4173
4170
  atimeMs: atime.getTime(),
4174
4171
  mtimeMs: mtime.getTime(),
4175
4172
  mtimeFor: file?.lastModified ?? 0,
4176
- ctimeMs
4173
+ ctimeMs,
4174
+ timesAt: ctimeMs
4177
4175
  }));
4178
4176
  }
4179
4177
  async reconcile() {
@@ -7201,6 +7199,36 @@ function revokeSyncFsToken(token) {
7201
7199
  }
7202
7200
 
7203
7201
  // src/realm/sync-fs-wire.ts
7202
+ var SYNC_FS_OPS = [
7203
+ "read",
7204
+ "write",
7205
+ "exists",
7206
+ "stat",
7207
+ "lstat",
7208
+ "readdir",
7209
+ "readdir-stat",
7210
+ "mkdir",
7211
+ "rm",
7212
+ "rename",
7213
+ "link",
7214
+ "unlink",
7215
+ "rmdir",
7216
+ "symlink",
7217
+ "readlink",
7218
+ "chmod",
7219
+ "utimes",
7220
+ "lutimes",
7221
+ "statfs",
7222
+ "hold",
7223
+ "create",
7224
+ "kept",
7225
+ "pread",
7226
+ "pwrite",
7227
+ "truncate",
7228
+ "chown",
7229
+ "lchown",
7230
+ "access"
7231
+ ];
7204
7232
  var HOLD_READ = 4;
7205
7233
  var HOLD_WRITE = 8;
7206
7234
  var HOLD_CREATED = 16;
@@ -8090,6 +8118,9 @@ var AsyncRangedFile = class {
8090
8118
  }
8091
8119
  };
8092
8120
 
8121
+ // src/realm/sync-sab-bridge.ts
8122
+ var PATH_OPS = new Set(SYNC_FS_OPS);
8123
+
8093
8124
  // src/realm/live-vfs-fs.ts
8094
8125
  var EARLY_WHOLE_FILE = 64 * 1024;
8095
8126