@ai-ecoverse/slicc-kernel 1.160.1 → 1.160.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.
@@ -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;
@@ -65,7 +65,7 @@ export interface NodeKernelOptions {
65
65
  cron?: {
66
66
  clock?: CronClock;
67
67
  };
68
- compileCache?: string;
68
+ compileCache?: string | false;
69
69
  warmWorker?: boolean;
70
70
  warmWorkers?: number;
71
71
  wasmMemories?: {
@@ -108,4 +108,17 @@ 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
+ };
116
+ declare function ownCacheDir(make?: () => string): {
117
+ dir: string;
118
+ own: boolean;
119
+ } | undefined;
120
+ export { ownCacheDir };
121
+ export declare function privateCacheDir(base?: string, alive?: typeof pidAlive): string;
122
+ export declare function sweepCacheDirs(base: string, alive?: (pid: number) => boolean, uid?: number | undefined): void;
123
+ declare function pidAlive(pid: number): boolean;
111
124
  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.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.5",
67
+ "@ai-ecoverse/slicc-cdp": "1.41.6",
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.1",