@ai-ecoverse/slicc-kernel 1.160.1 → 1.160.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.
@@ -37,6 +37,7 @@ export interface JsProgram {
37
37
  glue: string;
38
38
  path: string;
39
39
  url?: string;
40
+ source?: string;
40
41
  }
41
42
  export type Program = WasmProgram | JsProgram;
42
43
  export interface ForkState {
@@ -80,6 +80,7 @@ export interface LauncherOptions {
80
80
  export interface ModuleUrl {
81
81
  url: string;
82
82
  revoke(): void;
83
+ source?: string;
83
84
  }
84
85
  export type ModuleUrlMaker = (source: string) => ModuleUrl;
85
86
  export declare function dataModuleUrl(source: string): ModuleUrl;
@@ -108,4 +108,9 @@ export declare function sparesOf(options: {
108
108
  warmWorker?: boolean;
109
109
  warmWorkers?: unknown;
110
110
  }): number;
111
+ export declare function sourceModule(source: string): {
112
+ url: string;
113
+ source: string;
114
+ revoke(): void;
115
+ };
111
116
  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.160.1",
3
+ "version": "1.160.2",
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",