@ai-ecoverse/slicc-kernel 1.124.4 → 1.124.6

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.
@@ -2610,7 +2610,7 @@ var KERNEL_VERSION, OS_RELEASE;
2610
2610
  var init_version = __esm({
2611
2611
  "src/version.ts"() {
2612
2612
  "use strict";
2613
- KERNEL_VERSION = true ? "1.124.4" : "0.0.0-dev";
2613
+ KERNEL_VERSION = true ? "1.124.6" : "0.0.0-dev";
2614
2614
  OS_RELEASE = "6.0.0-slicc";
2615
2615
  }
2616
2616
  });
@@ -4077,15 +4077,23 @@ var init_kernel_streams = __esm({
4077
4077
  };
4078
4078
  }
4079
4079
  sizeFromKernel(stream, kfd) {
4080
+ const getattr = this.kernelAttrs(stream, kfd);
4081
+ if (getattr) this.describe(stream, `${stream.path ?? ""}:${++this.described}`, getattr);
4082
+ }
4083
+ fstatFromKernel(stream, kfd) {
4084
+ const getattr = this.kernelAttrs(stream, kfd);
4085
+ if (getattr) stream.stream_ops = { ...stream.stream_ops, getattr };
4086
+ }
4087
+ kernelAttrs(stream, kfd) {
4080
4088
  const { size, fdStat: fdStat2 } = this.sys;
4081
- if (!size) return;
4089
+ if (!size) return void 0;
4082
4090
  const node = stream.node;
4083
- this.describe(stream, `${stream.path ?? ""}:${++this.described}`, () => {
4091
+ return () => {
4084
4092
  const base = node.node_ops?.getattr?.(node);
4085
4093
  const live = this.call(() => size.call(this.sys, kfd));
4086
4094
  const real = fdStat2 && this.call(() => fdStat2.call(this.sys, kfd));
4087
4095
  return { ...base, ...real, ...datesOf(real), size: live };
4088
- });
4096
+ };
4089
4097
  }
4090
4098
  describe(stream, name2, getattr) {
4091
4099
  if (this.descriptions.size === 0) this.useDescriptions();
@@ -4423,6 +4431,7 @@ function vfsPromoter(Fs, sys, streams2, livePath) {
4423
4431
  promoted.set(stream.shared, kfd);
4424
4432
  }
4425
4433
  streams2.attachFile(stream, kfd);
4434
+ streams2.fstatFromKernel(stream, kfd);
4426
4435
  };
4427
4436
  }
4428
4437
  function describeForFork(Fs, sys, streams2, livePath) {
@@ -5595,6 +5604,8 @@ var init_procfs = __esm({
5595
5604
  slicc_shared_root: (listing) => `${listing.peers ?? 0}
5596
5605
  `,
5597
5606
  slicc_fs_calls: (listing) => `${listing.fsCalls ?? 0}
5607
+ `,
5608
+ slicc_opfs_calls: (listing) => `${listing.opfsCalls ?? 0}
5598
5609
  `
5599
5610
  }
5600
5611
  };