@ai-ecoverse/slicc-kernel 1.97.2 → 1.98.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.
package/dist/node.js CHANGED
@@ -11027,6 +11027,14 @@ var PATH_OPS = new Set(SYNC_FS_OPS);
11027
11027
  // src/realm/live-vfs-fs.ts
11028
11028
  var EARLY_WHOLE_FILE = 64 * 1024;
11029
11029
 
11030
+ // src/version.ts
11031
+ var KERNEL_VERSION = true ? "1.98.1" : "0.0.0-dev";
11032
+ var OS_RELEASE = "6.0.0-slicc";
11033
+ function procVersion() {
11034
+ return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
11035
+ `;
11036
+ }
11037
+
11030
11038
  // src/process/process-fds.ts
11031
11039
  var field2 = (text) => (text || "none").replace(/[\s\\]/g, (c) => `\\${c.charCodeAt(0).toString(8).padStart(3, "0")}`);
11032
11040
  var pinnedRoot;
@@ -11046,14 +11054,6 @@ function mountTable(mounts = []) {
11046
11054
  `;
11047
11055
  }
11048
11056
 
11049
- // src/version.ts
11050
- var KERNEL_VERSION = true ? "1.97.2" : "0.0.0-dev";
11051
- var OS_RELEASE = "6.0.0-slicc";
11052
- function procVersion() {
11053
- return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
11054
- `;
11055
- }
11056
-
11057
11057
  // src/process/procfs.ts
11058
11058
  var HZ = 100;
11059
11059
  var KIB = 1024;
@@ -11621,15 +11621,19 @@ var EpollFile = class _EpollFile {
11621
11621
  return out;
11622
11622
  }
11623
11623
  async wait(fds, max, timeoutMs, signal) {
11624
- const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
11624
+ const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs;
11625
11625
  for (; ; ) {
11626
11626
  const events = this.collect(fds, max);
11627
- if (events.length > 0 || Date.now() >= deadline) return events;
11627
+ if (events.length > 0 || performance.now() >= deadline) return events;
11628
11628
  const round = new AbortController();
11629
11629
  const woken = this.changes.wait(AbortSignal.any([round.signal, signal]));
11630
11630
  woken.catch(() => void 0);
11631
11631
  let timer;
11632
- const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [new Promise((resolve2) => timer = setTimeout(resolve2, deadline - Date.now()))];
11632
+ const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [
11633
+ new Promise(
11634
+ (resolve2) => timer = setTimeout(resolve2, deadline - performance.now())
11635
+ )
11636
+ ];
11633
11637
  try {
11634
11638
  await Promise.race([woken, ...expiry]);
11635
11639
  } finally {
@@ -14088,7 +14092,7 @@ function interruption(signal) {
14088
14092
  return { promise, done: () => signal.removeEventListener("abort", fail3) };
14089
14093
  }
14090
14094
  async function selectFds(fds, read, write, timeoutMs, interrupt) {
14091
- const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : Date.now() + timeoutMs;
14095
+ const deadline = timeoutMs < 0 ? Number.POSITIVE_INFINITY : performance.now() + timeoutMs;
14092
14096
  const interrupted3 = interruption(interrupt);
14093
14097
  interrupted3.promise.catch(() => {
14094
14098
  });
@@ -14101,14 +14105,18 @@ async function selectFds(fds, read, write, timeoutMs, interrupt) {
14101
14105
  async function waitReady(fds, read, write, deadline, interrupted3) {
14102
14106
  for (; ; ) {
14103
14107
  const now = ready(fds, read, write);
14104
- if (now.read.length > 0 || now.write.length > 0 || Date.now() >= deadline) return now;
14108
+ if (now.read.length > 0 || now.write.length > 0 || performance.now() >= deadline) return now;
14105
14109
  const round = new AbortController();
14106
14110
  const changes = [.../* @__PURE__ */ new Set([...read, ...write])].flatMap((fd) => {
14107
14111
  const file = fds.get(fd).file;
14108
14112
  return file.changed === void 0 ? [] : [file.changed(round.signal).catch(() => void 0)];
14109
14113
  });
14110
14114
  let timer;
14111
- const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [new Promise((resolve2) => timer = setTimeout(resolve2, deadline - Date.now()))];
14115
+ const expiry = deadline === Number.POSITIVE_INFINITY ? [] : [
14116
+ new Promise(
14117
+ (resolve2) => timer = setTimeout(resolve2, deadline - performance.now())
14118
+ )
14119
+ ];
14112
14120
  try {
14113
14121
  await Promise.race([...changes, ...expiry, interrupted3]);
14114
14122
  } finally {