@ai-ecoverse/slicc-kernel 1.189.1 → 1.189.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.
@@ -3181,7 +3181,7 @@ var init_version = __esm({
3181
3181
  "src/version.ts"() {
3182
3182
  "use strict";
3183
3183
  init_captured_globals();
3184
- KERNEL_VERSION = true ? "1.189.1" : "0.0.0-dev";
3184
+ KERNEL_VERSION = true ? "1.189.2" : "0.0.0-dev";
3185
3185
  OS_RELEASE = "6.0.0-slicc";
3186
3186
  }
3187
3187
  });
@@ -7,6 +7,7 @@ export interface ImageSource {
7
7
  readonly path: string;
8
8
  read(): Promise<Uint8Array>;
9
9
  stale?(): void;
10
+ kept?(): ImageSource[];
10
11
  }
11
12
  export declare class ImageError extends Error {
12
13
  readonly code: string;
@@ -20,6 +21,7 @@ export declare class Images {
20
21
  compile: (bytes: ArrayBuffer | ArrayBufferView, _key?: string, from?: ImageSource) => Promise<WebAssembly.Module>;
21
22
  load(image: string): Promise<ArrayBuffer>;
22
23
  private read;
24
+ private matches;
23
25
  get(image: string): ArrayBuffer;
24
26
  sizeOf(image: string): {
25
27
  initial: number;
@@ -102,6 +102,10 @@ export interface ProgramSource {
102
102
  readonly path: string;
103
103
  read(): Promise<Uint8Array>;
104
104
  stale(): void;
105
+ kept(): {
106
+ path: string;
107
+ read(): Promise<Uint8Array>;
108
+ }[];
105
109
  }
106
110
  export interface ModuleUrl {
107
111
  url: string;
@@ -257,6 +261,8 @@ export declare class Launcher {
257
261
  private readonly tagBases;
258
262
  private readonly links;
259
263
  private readonly freshModules;
264
+ private readonly imagePaths;
265
+ private readonly imageHolds;
260
266
  private readonly granted;
261
267
  readonly users: UserDb;
262
268
  private readonly sudoer;
@@ -410,6 +416,8 @@ export declare class Launcher {
410
416
  private reread;
411
417
  private forgetCompiled;
412
418
  private sourceOf;
419
+ private keptCopies;
420
+ private holdImage;
413
421
  private exeId;
414
422
  private kernelProgram;
415
423
  private program;
@@ -131,6 +131,7 @@ export declare class MountTable {
131
131
  mountSystem(spec: MountSpec, fs: KernelFs): Promise<void>;
132
132
  note(spec: MountSpec, state: 'pending' | 'failed', error?: string): void;
133
133
  under(path: string): boolean;
134
+ readOnlyAt(path: string): boolean;
134
135
  locate(path: string): {
135
136
  mount: Mount;
136
137
  rel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.189.1",
3
+ "version": "1.189.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",