@ai-ecoverse/slicc-kernel 1.165.2 → 1.166.0

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.165.2" : "0.0.0-dev";
3086
+ KERNEL_VERSION = true ? "1.166.0" : "0.0.0-dev";
3087
3087
  OS_RELEASE = "6.0.0-slicc";
3088
3088
  }
3089
3089
  });
@@ -44,6 +44,7 @@ export interface VersionPin {
44
44
  }
45
45
  export declare const WRITEBACK_MS = 250;
46
46
  export declare class VfsNode {
47
+ fid: string | undefined;
47
48
  private data;
48
49
  private ranged;
49
50
  private readonly pin;
@@ -109,6 +110,7 @@ export declare class VfsNodes implements UnlinkHolder {
109
110
  keepsOnDisk: boolean;
110
111
  changed: ((path: string) => void) | undefined;
111
112
  movedAway: ((from: string, to: string) => void) | undefined;
113
+ opened: ((node: VfsNode) => void) | undefined;
112
114
  dirtied: ((delta: number) => void) | undefined;
113
115
  private readonly fs;
114
116
  readonly entries: Map<string, Promise<unknown>>;
@@ -148,6 +150,10 @@ export declare class VfsNodes implements UnlinkHolder {
148
150
  writes(prefix: string): boolean;
149
151
  closed(node: VfsNode, writable?: boolean): void;
150
152
  held(): Iterable<string>;
153
+ heldIds(): Array<[string, string | undefined]>;
154
+ holdsAt(path: string): boolean;
155
+ bindIds(id: (path: string) => Promise<string | undefined> | undefined): Promise<void>;
156
+ keepBound(paths: readonly string[], fid: string | undefined, file: KeptFile): boolean;
151
157
  owns(): boolean;
152
158
  isKept(): boolean;
153
159
  keep(path: string, file: KeptFile): void;
@@ -440,6 +440,8 @@ export declare class Launcher {
440
440
  private peerOptions;
441
441
  private peerKept;
442
442
  private adoptKept;
443
+ private openNodes;
444
+ private nodeOpened;
443
445
  private announceHeld;
444
446
  private rootFileId;
445
447
  private flushingPeers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.165.2",
3
+ "version": "1.166.0",
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.12",
67
+ "@ai-ecoverse/slicc-cdp": "1.41.13",
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.2",