@ai-ecoverse/slicc-kernel 1.166.1 → 1.166.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.
@@ -3083,7 +3083,7 @@ var init_version = __esm({
3083
3083
  "src/version.ts"() {
3084
3084
  "use strict";
3085
3085
  init_captured_globals();
3086
- KERNEL_VERSION = true ? "1.166.1" : "0.0.0-dev";
3086
+ KERNEL_VERSION = true ? "1.166.3" : "0.0.0-dev";
3087
3087
  OS_RELEASE = "6.0.0-slicc";
3088
3088
  }
3089
3089
  });
@@ -0,0 +1,15 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { Worker, type WorkerOptions } from 'node:worker_threads';
3
+ export declare const PROCESS_BOOT = "(async () => {\n 'use strict';\n const { workerData } = require('node:worker_threads');\n const { compileFunction, constants } = require('node:vm');\n const { createRequire } = require('node:module');\n const loader = constants.USE_MAIN_CONTEXT_DEFAULT_LOADER;\n const prime = () => {\n const emit = process.emitWarning;\n process.emitWarning = function (message, ...args) {\n if (message === 'vm.USE_MAIN_CONTEXT_DEFAULT_LOADER is an experimental feature and might change at any time' && args[0] === 'ExperimentalWarning') return;\n return Reflect.apply(emit, this, [message, ...args]);\n };\n try {\n return compileFunction('return import(\"node:vm\")', [], { importModuleDynamically: loader })();\n } finally {\n process.emitWarning = emit;\n }\n };\n const { runEntryPointWithESMLoader } = require('internal/modules/run_main');\n await runEntryPointWithESMLoader(async () => { await prime(); });\n const { source: bytes, cachedData, port } = workerData.boot;\n delete workerData.boot;\n const source = new TextDecoder().decode(bytes);\n const run = compileFunction(source, ['require', 'importMetaUrl'], {\n filename: 'slicc-kernel:/node-process-worker.js',\n importModuleDynamically: loader,\n cachedData,\n produceCachedData: cachedData === undefined,\n });\n port.postMessage({ cachedData: run.cachedData, rejected: run.cachedDataRejected === true });\n port.close();\n run(createRequire('/slicc-kernel/node-process-worker.js'), '/slicc-kernel/node-process-worker.js');\n})();";
4
+ export interface BootCache {
5
+ source: Uint8Array;
6
+ cachedData?: Uint8Array;
7
+ attempts: number;
8
+ rejected: number;
9
+ }
10
+ export declare function bootCache(file: URL, read?: typeof readFileSync): BootCache;
11
+ export declare function cachedBoot(cache: BootCache, data: {
12
+ cachedData?: Uint8Array;
13
+ rejected: boolean;
14
+ }): void;
15
+ export declare function bootWorker(file: string | URL, options: WorkerOptions, bundle: URL, make?: (entry: string | URL, init: WorkerOptions) => Worker, read?: typeof readFileSync): Worker;
@@ -1,4 +1,4 @@
1
- import { type MessagePort, Worker } from 'node:worker_threads';
1
+ import { type MessagePort, type 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.166.1",
3
+ "version": "1.166.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",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@ai-ecoverse/py-numpy": "2.5.4-4",
67
- "@ai-ecoverse/slicc-cdp": "1.41.13",
67
+ "@ai-ecoverse/slicc-cdp": "1.41.14",
68
68
  "@ai-ecoverse/slicc-node": "2.5.2",
69
69
  "@ai-ecoverse/slicc-scrub": "1.1.0",
70
70
  "@ai-ecoverse/slicc-shared-web": "2.12.3",
@@ -86,6 +86,7 @@
86
86
  "@ai-ecoverse/wasm-util-linux": "2.42.4-7",
87
87
  "@biomejs/biome": "2.5.15",
88
88
  "@types/node": "24.19.2",
89
+ "acorn": "8.19.0",
89
90
  "esbuild": "0.28.2",
90
91
  "fake-indexeddb": "6.2.6",
91
92
  "lefthook": "2.2.2",