@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
package/dist/cloudflare.js
CHANGED
|
@@ -5309,7 +5309,7 @@ function satisfies(version, range2) {
|
|
|
5309
5309
|
}
|
|
5310
5310
|
|
|
5311
5311
|
// src/version.ts
|
|
5312
|
-
var KERNEL_VERSION = true ? "1.196.
|
|
5312
|
+
var KERNEL_VERSION = true ? "1.196.45" : "0.0.0-dev";
|
|
5313
5313
|
var OS_RELEASE = "6.0.0-slicc";
|
|
5314
5314
|
function procVersion() {
|
|
5315
5315
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -36411,24 +36411,27 @@ var OpfsFs = class {
|
|
|
36411
36411
|
hiddenBackups = /* @__PURE__ */ new Set();
|
|
36412
36412
|
pendingSources = /* @__PURE__ */ new Map();
|
|
36413
36413
|
retryAfter = /* @__PURE__ */ new Map();
|
|
36414
|
-
async retrySource(intent, from) {
|
|
36414
|
+
async retrySource(intent, from, mayClean, deadline) {
|
|
36415
36415
|
const now = performance.now();
|
|
36416
|
-
|
|
36417
|
-
|
|
36418
|
-
|
|
36416
|
+
if (now >= deadline) return false;
|
|
36417
|
+
const eligible = mayClean && now >= (this.retryAfter.get(intent) ?? -Infinity);
|
|
36418
|
+
let attempted = false;
|
|
36419
36419
|
if (eligible) this.retryAfter.set(intent, Infinity);
|
|
36420
36420
|
const controller = new AbortController();
|
|
36421
36421
|
const { promise, resolve: resolve2 } = Promise.withResolvers();
|
|
36422
36422
|
const timer = setTimeout(() => {
|
|
36423
36423
|
controller.abort();
|
|
36424
36424
|
resolve2();
|
|
36425
|
-
},
|
|
36425
|
+
}, deadline - now);
|
|
36426
36426
|
const retry = async () => {
|
|
36427
36427
|
const [entry] = await this.meta.under(intent);
|
|
36428
36428
|
controller.signal.throwIfAborted();
|
|
36429
36429
|
const id2 = entry?.rename?.sourceCleanup;
|
|
36430
36430
|
if (id2 === void 0) this.syncSourceReservation(intent);
|
|
36431
|
-
else if (eligible)
|
|
36431
|
+
else if (eligible) {
|
|
36432
|
+
attempted = true;
|
|
36433
|
+
await this.cleanSource(intent, from, id2, controller.signal);
|
|
36434
|
+
}
|
|
36432
36435
|
};
|
|
36433
36436
|
const attempt = retry().catch(nothing2).finally(() => {
|
|
36434
36437
|
clearTimeout(timer);
|
|
@@ -36436,6 +36439,7 @@ var OpfsFs = class {
|
|
|
36436
36439
|
this.retryAfter.set(intent, performance.now() + SOURCE_BACKOFF_MS);
|
|
36437
36440
|
});
|
|
36438
36441
|
await Promise.race([promise, attempt]);
|
|
36442
|
+
return attempted;
|
|
36439
36443
|
}
|
|
36440
36444
|
syncSourceReservation(intent, from) {
|
|
36441
36445
|
const path = from ?? this.pendingSources.get(intent);
|
|
@@ -36448,13 +36452,14 @@ var OpfsFs = class {
|
|
|
36448
36452
|
async reservedOp(name2, args) {
|
|
36449
36453
|
const touched = name2 === "symlink" ? args.slice(1, 2) : args.slice(0, PAIRED.has(name2) ? 2 : 1);
|
|
36450
36454
|
let attempted = false;
|
|
36455
|
+
let deadline;
|
|
36451
36456
|
for (const [intent, source] of this.pendingSources) {
|
|
36452
36457
|
if (!READS.includes(name2) && touched.some((p) => {
|
|
36453
36458
|
const at = normalizePath(p);
|
|
36454
36459
|
return within11(at, source) || REMOVALS2.has(name2) && (at === "/" || within11(source, at));
|
|
36455
36460
|
})) {
|
|
36456
|
-
|
|
36457
|
-
attempted = true;
|
|
36461
|
+
deadline ??= performance.now() + SOURCE_RETRY_MS;
|
|
36462
|
+
if (await this.retrySource(intent, source, !attempted, deadline)) attempted = true;
|
|
36458
36463
|
if (this.pendingSources.has(intent)) throw fsError("EBUSY", source);
|
|
36459
36464
|
} else {
|
|
36460
36465
|
const [entry] = await this.meta.under(intent);
|