@ai-ecoverse/slicc-kernel 1.131.0 → 1.132.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/README.md +2 -0
- package/dist/index.js.map +1 -1
- package/dist/kernel-worker.js +27 -9
- package/dist/kernel-worker.js.map +4 -4
- package/dist/meta.js +21 -0
- package/dist/meta.js.map +3 -3
- package/dist/node-process-worker.js +24 -8
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +21 -6
- package/dist/node.js.map +4 -4
- package/dist/process-worker.js +24 -8
- package/dist/process-worker.js.map +2 -2
- package/dist/types/fs/notice.d.ts +9 -0
- package/dist/types/fs/physical-path.d.ts +1 -0
- package/dist/types/fs/types.d.ts +1 -0
- package/dist/types/kernel/vfs-file.d.ts +1 -0
- package/dist/types/meta.d.ts +6 -0
- package/package.json +3 -2
package/dist/node.js
CHANGED
|
@@ -3740,6 +3740,14 @@ var MemoryMeta = class {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
};
|
|
3742
3742
|
|
|
3743
|
+
// src/fs/notice.ts
|
|
3744
|
+
function noticeOf(data) {
|
|
3745
|
+
if (Array.isArray(data)) return { paths: data.filter((p) => typeof p === "string"), trees: [] };
|
|
3746
|
+
const notice = data ?? {};
|
|
3747
|
+
const strings = (list) => Array.isArray(list) ? list.filter((p) => typeof p === "string") : [];
|
|
3748
|
+
return { paths: strings(notice.paths), trees: strings(notice.trees) };
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3743
3751
|
// src/fs/integrity.ts
|
|
3744
3752
|
var SOURCE_SUFFIXES = [
|
|
3745
3753
|
".js",
|
|
@@ -4548,8 +4556,9 @@ var OpfsFs = class {
|
|
|
4548
4556
|
for (const path of [...c.paths, ...c.trees]) this.forget(path);
|
|
4549
4557
|
});
|
|
4550
4558
|
this.channel.onmessage = ({ data }) => {
|
|
4551
|
-
|
|
4552
|
-
|
|
4559
|
+
const { paths, trees } = noticeOf(data);
|
|
4560
|
+
for (const path of [...paths, ...trees]) this.forget(normalizePath(path));
|
|
4561
|
+
remote?.emit({ paths, trees });
|
|
4553
4562
|
};
|
|
4554
4563
|
this.channel.unref?.();
|
|
4555
4564
|
}
|
|
@@ -7394,7 +7403,7 @@ function satisfies(version, range2) {
|
|
|
7394
7403
|
}
|
|
7395
7404
|
|
|
7396
7405
|
// src/version.ts
|
|
7397
|
-
var KERNEL_VERSION = true ? "1.
|
|
7406
|
+
var KERNEL_VERSION = true ? "1.132.1" : "0.0.0-dev";
|
|
7398
7407
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7399
7408
|
function procVersion() {
|
|
7400
7409
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -20459,6 +20468,9 @@ var VfsNodes = class {
|
|
|
20459
20468
|
rewritten(path) {
|
|
20460
20469
|
this.byPath.get(path)?.reread();
|
|
20461
20470
|
}
|
|
20471
|
+
rewrittenUnder(tree2) {
|
|
20472
|
+
for (const [p, node] of this.byPath) if (within7(p, tree2)) node.reread();
|
|
20473
|
+
}
|
|
20462
20474
|
doubted(path) {
|
|
20463
20475
|
for (const [p, node] of this.byPath) if (within7(p, path)) node.doubted();
|
|
20464
20476
|
}
|
|
@@ -26713,7 +26725,7 @@ var Launcher = class {
|
|
|
26713
26725
|
options.fs.onPeer?.(() => this.flushOpen());
|
|
26714
26726
|
options.fs.remoteChanges?.((change) => {
|
|
26715
26727
|
this.changes.flush();
|
|
26716
|
-
this.rewritten(change.paths);
|
|
26728
|
+
this.rewritten(change.paths, change.trees);
|
|
26717
26729
|
});
|
|
26718
26730
|
const holders = [this.held, this.openFiles];
|
|
26719
26731
|
this.unlinked = new UnlinkedKeeper(
|
|
@@ -28499,8 +28511,11 @@ var Launcher = class {
|
|
|
28499
28511
|
}
|
|
28500
28512
|
};
|
|
28501
28513
|
}
|
|
28502
|
-
rewritten(paths) {
|
|
28503
|
-
for (const nodes of this.openFiles)
|
|
28514
|
+
rewritten(paths, trees = []) {
|
|
28515
|
+
for (const nodes of this.openFiles) {
|
|
28516
|
+
for (const path of paths) nodes.rewritten(path);
|
|
28517
|
+
for (const tree2 of trees) nodes.rewrittenUnder(tree2);
|
|
28518
|
+
}
|
|
28504
28519
|
this.changes.publish(...paths);
|
|
28505
28520
|
}
|
|
28506
28521
|
async flushOpen() {
|