@ai-ecoverse/slicc-kernel 1.142.2 → 1.142.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 +3 -1
- package/dist/kernel-worker.js +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +69 -5
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/dist/types/node.d.ts +8 -1
- package/package.json +3 -3
package/dist/process-worker.js
CHANGED
|
@@ -2783,7 +2783,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2783
2783
|
var init_version = __esm({
|
|
2784
2784
|
"src/version.ts"() {
|
|
2785
2785
|
"use strict";
|
|
2786
|
-
KERNEL_VERSION = true ? "1.142.
|
|
2786
|
+
KERNEL_VERSION = true ? "1.142.3" : "0.0.0-dev";
|
|
2787
2787
|
OS_RELEASE = "6.0.0-slicc";
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
package/dist/types/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MessagePort } from 'node:worker_threads';
|
|
1
|
+
import { type MessagePort, Worker } from 'node:worker_threads';
|
|
2
2
|
import type { CdpHook } from './cdp/types.js';
|
|
3
3
|
import type { CronClock } from './cron/clock.js';
|
|
4
4
|
import type { FacadeSpecs } from './facade/types.js';
|
|
@@ -63,6 +63,7 @@ export interface NodeKernelOptions {
|
|
|
63
63
|
clock?: CronClock;
|
|
64
64
|
};
|
|
65
65
|
compileCache?: string;
|
|
66
|
+
warmWorker?: boolean;
|
|
66
67
|
wasmMemories?: {
|
|
67
68
|
ceiling?: number;
|
|
68
69
|
idleMs?: number;
|
|
@@ -92,4 +93,10 @@ export interface NodeTransportOptions {
|
|
|
92
93
|
hostLoopback?: HostLoopback;
|
|
93
94
|
}
|
|
94
95
|
export declare function nodeTransport(options?: NodeTransportOptions): NetworkTransport;
|
|
96
|
+
export declare const WARM_IDLE_MS = 30000;
|
|
97
|
+
type MakeWorker = () => Worker;
|
|
98
|
+
export declare function warmPool(make: MakeWorker, live: Set<() => void>, idleMs?: number): {
|
|
99
|
+
take(): Worker;
|
|
100
|
+
close(): void;
|
|
101
|
+
};
|
|
95
102
|
export declare function createNodeKernel(options?: NodeKernelOptions): Promise<NodeKernel>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.142.
|
|
3
|
+
"version": "1.142.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",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"@ai-ecoverse/slicc-scrub": "1.0.0",
|
|
69
69
|
"@ai-ecoverse/slicc-shared-web": "1.29.10",
|
|
70
70
|
"@ai-ecoverse/wasi-cargo": "0.99.0-5",
|
|
71
|
-
"@ai-ecoverse/wasi-pnpm": "12.9.1-
|
|
71
|
+
"@ai-ecoverse/wasi-pnpm": "12.9.1-20",
|
|
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-9",
|
|
74
74
|
"@ai-ecoverse/wasi-zig": "0.16.0-20",
|
|
75
75
|
"@ai-ecoverse/wasix-python": "3.15.0-4",
|
|
76
76
|
"@ai-ecoverse/wasm-bash": "5.3.0-22",
|