@ai-ecoverse/slicc-kernel 1.124.2 → 1.124.3
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 +7 -2
- package/dist/kernel-worker.js +65 -28
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +39 -10
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +65 -28
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +39 -10
- package/dist/process-worker.js.map +3 -3
- package/dist/types/fs/remote.d.ts +8 -0
- package/dist/types/kernel/proc-info.d.ts +1 -0
- package/dist/types/realm/live-vfs-fs.d.ts +1 -0
- package/dist/types/realm/sync-fs-dispatch.d.ts +1 -0
- package/dist/types/realm/sync-sab-bridge.d.ts +2 -0
- package/package.json +4 -4
|
@@ -5,12 +5,17 @@ export interface RemoteChange {
|
|
|
5
5
|
export type RemoteListener = (change: RemoteChange) => void;
|
|
6
6
|
export declare const ANNOUNCE_WAIT_MS = 500;
|
|
7
7
|
export declare const PRUNE_EVERY_MS = 30000;
|
|
8
|
+
export declare const MOURN_TRIES = 5;
|
|
9
|
+
export declare const MOURN_RETRY_MS = 100;
|
|
8
10
|
export interface LockManagerLike {
|
|
9
11
|
request(name: string, callback: () => Promise<void>): Promise<unknown>;
|
|
10
12
|
query(): Promise<{
|
|
11
13
|
held?: Array<{
|
|
12
14
|
name?: string;
|
|
13
15
|
}>;
|
|
16
|
+
pending?: Array<{
|
|
17
|
+
name?: string;
|
|
18
|
+
}>;
|
|
14
19
|
}>;
|
|
15
20
|
}
|
|
16
21
|
export declare function lockManager(): LockManagerLike | undefined;
|
|
@@ -19,6 +24,7 @@ export declare class RemoteWatch {
|
|
|
19
24
|
private readonly name;
|
|
20
25
|
private readonly tab;
|
|
21
26
|
private readonly peers;
|
|
27
|
+
private readonly mourned;
|
|
22
28
|
private readonly others;
|
|
23
29
|
private readonly union;
|
|
24
30
|
private readonly listeners;
|
|
@@ -42,6 +48,8 @@ export declare class RemoteWatch {
|
|
|
42
48
|
crowded(): boolean;
|
|
43
49
|
private lockOf;
|
|
44
50
|
private receive;
|
|
51
|
+
private arrived;
|
|
52
|
+
private mourn;
|
|
45
53
|
private greeted;
|
|
46
54
|
private announced;
|
|
47
55
|
private acked;
|
|
@@ -25,4 +25,5 @@ export interface SyncFsStatJson {
|
|
|
25
25
|
gid?: number;
|
|
26
26
|
}
|
|
27
27
|
export declare function guardOf(entry: SyncFsTokenEntry): Guard | undefined;
|
|
28
|
+
export declare function servedFsCalls(): number;
|
|
28
29
|
export declare function dispatchSyncFs(req: SyncFsRequest): Promise<SyncFsResult>;
|
|
@@ -8,6 +8,8 @@ export interface SyncSabTransport {
|
|
|
8
8
|
}
|
|
9
9
|
export type AtomicsWaitLike = (typedArray: Int32Array, index: number, value: number, timeout?: number) => 'ok' | 'not-equal' | 'timed-out';
|
|
10
10
|
export declare function syncCallCount(): number;
|
|
11
|
+
export declare function lookedOutside(): void;
|
|
12
|
+
export declare function syncEpoch(): number;
|
|
11
13
|
export declare function createSyncSabTransport(sab: SharedArrayBuffer, port: SabPostLike, deps?: {
|
|
12
14
|
wait?: AtomicsWaitLike;
|
|
13
15
|
now?: () => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.124.
|
|
3
|
+
"version": "1.124.3",
|
|
4
4
|
"description": "SLICC's wasm-realm kernel: run Emscripten programs in the browser against OPFS, with fork, spawn, pipes and waitpid",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"format": "biome check --write ."
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@ai-ecoverse/py-numpy": "2.3.2-
|
|
66
|
+
"@ai-ecoverse/py-numpy": "2.3.2-11",
|
|
67
67
|
"@ai-ecoverse/slicc-node": "2.5.1",
|
|
68
68
|
"@ai-ecoverse/slicc-scrub": "1.0.0",
|
|
69
|
-
"@ai-ecoverse/slicc-shared-web": "1.23.
|
|
69
|
+
"@ai-ecoverse/slicc-shared-web": "1.23.3",
|
|
70
70
|
"@ai-ecoverse/wasi-cargo": "0.99.0-3",
|
|
71
71
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-9",
|
|
72
72
|
"@ai-ecoverse/wasi-ripgrep": "15.2.0-5",
|
|
73
|
-
"@ai-ecoverse/wasi-rustc": "1.98.1-
|
|
73
|
+
"@ai-ecoverse/wasi-rustc": "1.98.1-5",
|
|
74
74
|
"@ai-ecoverse/wasi-zig": "0.16.0-16",
|
|
75
75
|
"@ai-ecoverse/wasix-python": "3.14.2-27",
|
|
76
76
|
"@ai-ecoverse/wasm-bash": "5.3.0-19",
|