@ai-ecoverse/slicc-kernel 1.134.0 → 1.134.2
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/README.md +3 -3
- package/dist/kernel-worker.js +19 -9
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +9 -4
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +20 -9
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +9 -4
- package/dist/process-worker.js.map +3 -3
- package/dist/types/kernel/wasm-memories.d.ts +1 -0
- package/dist/types/node.d.ts +4 -0
- package/dist/types/process/js/js-context.d.ts +1 -0
- package/package.json +2 -2
package/dist/node.js
CHANGED
|
@@ -5827,15 +5827,21 @@ var OpfsFs = class {
|
|
|
5827
5827
|
let writable2;
|
|
5828
5828
|
let handle;
|
|
5829
5829
|
try {
|
|
5830
|
-
const
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
await this.
|
|
5830
|
+
const kept = created4 ? this.files.get(destination) : void 0;
|
|
5831
|
+
if (kept) {
|
|
5832
|
+
if (options.owner?.fifo || options.owner?.socket) throw fsError("ENXIO", to);
|
|
5833
|
+
handle = kept;
|
|
5834
|
+
} else {
|
|
5835
|
+
const [made2, existed, at] = await this.fileFor(destination);
|
|
5836
|
+
handle = made2;
|
|
5837
|
+
target = at;
|
|
5838
|
+
if (!existed && !created4) {
|
|
5839
|
+
created4 = true;
|
|
5840
|
+
await this.stampNew(target, options.owner, false);
|
|
5841
|
+
}
|
|
5842
|
+
const [entry] = await this.meta.get([target]);
|
|
5843
|
+
if (entry?.fifo || entry?.socket) throw fsError("ENXIO", to);
|
|
5836
5844
|
}
|
|
5837
|
-
const [entry] = await this.meta.get([target]);
|
|
5838
|
-
if (entry?.fifo || entry?.socket) throw fsError("ENXIO", to);
|
|
5839
5845
|
this.wrote(handle);
|
|
5840
5846
|
writable2 = await handle.createWritable();
|
|
5841
5847
|
await writable2.write(file);
|
|
@@ -7464,7 +7470,7 @@ function satisfies(version, range2) {
|
|
|
7464
7470
|
}
|
|
7465
7471
|
|
|
7466
7472
|
// src/version.ts
|
|
7467
|
-
var KERNEL_VERSION = true ? "1.134.
|
|
7473
|
+
var KERNEL_VERSION = true ? "1.134.2" : "0.0.0-dev";
|
|
7468
7474
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7469
7475
|
function procVersion() {
|
|
7470
7476
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -24618,6 +24624,9 @@ var WasmMemories = class {
|
|
|
24618
24624
|
const source = this.learned ? "learned" : ceiling === void 0 ? "none" : "default";
|
|
24619
24625
|
return { live: this.live, ceiling: ceiling ?? 0, source };
|
|
24620
24626
|
}
|
|
24627
|
+
started() {
|
|
24628
|
+
this.progress();
|
|
24629
|
+
}
|
|
24621
24630
|
ended() {
|
|
24622
24631
|
this.live = Math.max(0, this.live - 1);
|
|
24623
24632
|
this.progress();
|
|
@@ -28002,6 +28011,7 @@ var Launcher = class {
|
|
|
28002
28011
|
});
|
|
28003
28012
|
const counted3 = (handle2) => {
|
|
28004
28013
|
void handle2.exited.finally(() => this.memories.ended());
|
|
28014
|
+
void Promise.resolve(handle2.ready).then(() => this.memories.started());
|
|
28005
28015
|
return handle2;
|
|
28006
28016
|
};
|
|
28007
28017
|
if (!this.memories.near()) {
|
|
@@ -30653,6 +30663,7 @@ async function createNodeKernel(options = {}) {
|
|
|
30653
30663
|
...options.sealed ? { sealed: options.sealed } : {},
|
|
30654
30664
|
...options.clipboard ? { clipboard: options.clipboard } : {},
|
|
30655
30665
|
...options.approve ? { approve: options.approve } : {},
|
|
30666
|
+
...options.wasmMemories ? { wasmMemories: options.wasmMemories } : {},
|
|
30656
30667
|
cron: { lock: cronLock(root), ...options.cron?.clock ? { clock: options.cron.clock } : {} }
|
|
30657
30668
|
});
|
|
30658
30669
|
await launcher.prepare();
|