@ai-ecoverse/slicc-kernel 1.196.44 → 1.196.45
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/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +14 -9
- package/dist/cloudflare.js.map +2 -2
- package/dist/kernel-worker.js +14 -9
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +14 -9
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +1 -1
- package/package.json +1 -1
|
@@ -9480,7 +9480,7 @@ var init_version = __esm({
|
|
|
9480
9480
|
"src/version.ts"() {
|
|
9481
9481
|
"use strict";
|
|
9482
9482
|
init_captured_globals();
|
|
9483
|
-
KERNEL_VERSION = true ? "1.196.
|
|
9483
|
+
KERNEL_VERSION = true ? "1.196.45" : "0.0.0-dev";
|
|
9484
9484
|
OS_RELEASE = "6.0.0-slicc";
|
|
9485
9485
|
}
|
|
9486
9486
|
});
|
|
@@ -9479,7 +9479,7 @@ var init_version = __esm({
|
|
|
9479
9479
|
"src/version.ts"() {
|
|
9480
9480
|
"use strict";
|
|
9481
9481
|
init_captured_globals();
|
|
9482
|
-
KERNEL_VERSION = true ? "1.196.
|
|
9482
|
+
KERNEL_VERSION = true ? "1.196.45" : "0.0.0-dev";
|
|
9483
9483
|
OS_RELEASE = "6.0.0-slicc";
|
|
9484
9484
|
}
|
|
9485
9485
|
});
|
package/dist/node.js
CHANGED
|
@@ -7845,7 +7845,7 @@ function satisfies(version, range2) {
|
|
|
7845
7845
|
}
|
|
7846
7846
|
|
|
7847
7847
|
// src/version.ts
|
|
7848
|
-
var KERNEL_VERSION = true ? "1.196.
|
|
7848
|
+
var KERNEL_VERSION = true ? "1.196.45" : "0.0.0-dev";
|
|
7849
7849
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7850
7850
|
function procVersion() {
|
|
7851
7851
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -36739,24 +36739,27 @@ var OpfsFs = class {
|
|
|
36739
36739
|
hiddenBackups = /* @__PURE__ */ new Set();
|
|
36740
36740
|
pendingSources = /* @__PURE__ */ new Map();
|
|
36741
36741
|
retryAfter = /* @__PURE__ */ new Map();
|
|
36742
|
-
async retrySource(intent, from) {
|
|
36742
|
+
async retrySource(intent, from, mayClean, deadline) {
|
|
36743
36743
|
const now = performance.now();
|
|
36744
|
-
|
|
36745
|
-
|
|
36746
|
-
|
|
36744
|
+
if (now >= deadline) return false;
|
|
36745
|
+
const eligible = mayClean && now >= (this.retryAfter.get(intent) ?? -Infinity);
|
|
36746
|
+
let attempted = false;
|
|
36747
36747
|
if (eligible) this.retryAfter.set(intent, Infinity);
|
|
36748
36748
|
const controller = new AbortController();
|
|
36749
36749
|
const { promise, resolve: resolve2 } = Promise.withResolvers();
|
|
36750
36750
|
const timer = setTimeout(() => {
|
|
36751
36751
|
controller.abort();
|
|
36752
36752
|
resolve2();
|
|
36753
|
-
},
|
|
36753
|
+
}, deadline - now);
|
|
36754
36754
|
const retry = async () => {
|
|
36755
36755
|
const [entry] = await this.meta.under(intent);
|
|
36756
36756
|
controller.signal.throwIfAborted();
|
|
36757
36757
|
const id2 = entry?.rename?.sourceCleanup;
|
|
36758
36758
|
if (id2 === void 0) this.syncSourceReservation(intent);
|
|
36759
|
-
else if (eligible)
|
|
36759
|
+
else if (eligible) {
|
|
36760
|
+
attempted = true;
|
|
36761
|
+
await this.cleanSource(intent, from, id2, controller.signal);
|
|
36762
|
+
}
|
|
36760
36763
|
};
|
|
36761
36764
|
const attempt = retry().catch(nothing2).finally(() => {
|
|
36762
36765
|
clearTimeout(timer);
|
|
@@ -36764,6 +36767,7 @@ var OpfsFs = class {
|
|
|
36764
36767
|
this.retryAfter.set(intent, performance.now() + SOURCE_BACKOFF_MS);
|
|
36765
36768
|
});
|
|
36766
36769
|
await Promise.race([promise, attempt]);
|
|
36770
|
+
return attempted;
|
|
36767
36771
|
}
|
|
36768
36772
|
syncSourceReservation(intent, from) {
|
|
36769
36773
|
const path = from ?? this.pendingSources.get(intent);
|
|
@@ -36776,13 +36780,14 @@ var OpfsFs = class {
|
|
|
36776
36780
|
async reservedOp(name2, args) {
|
|
36777
36781
|
const touched = name2 === "symlink" ? args.slice(1, 2) : args.slice(0, PAIRED.has(name2) ? 2 : 1);
|
|
36778
36782
|
let attempted = false;
|
|
36783
|
+
let deadline;
|
|
36779
36784
|
for (const [intent, source] of this.pendingSources) {
|
|
36780
36785
|
if (!READS.includes(name2) && touched.some((p) => {
|
|
36781
36786
|
const at = normalizePath(p);
|
|
36782
36787
|
return within11(at, source) || REMOVALS2.has(name2) && (at === "/" || within11(source, at));
|
|
36783
36788
|
})) {
|
|
36784
|
-
|
|
36785
|
-
attempted = true;
|
|
36789
|
+
deadline ??= performance.now() + SOURCE_RETRY_MS;
|
|
36790
|
+
if (await this.retrySource(intent, source, !attempted, deadline)) attempted = true;
|
|
36786
36791
|
if (this.pendingSources.has(intent)) throw fsError("EBUSY", source);
|
|
36787
36792
|
} else {
|
|
36788
36793
|
const [entry] = await this.meta.under(intent);
|