@ai-ecoverse/slicc-kernel 1.131.0 → 1.132.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.
@@ -0,0 +1,9 @@
1
+ export interface FsNotice {
2
+ paths?: readonly string[];
3
+ trees?: readonly string[];
4
+ }
5
+ export declare function dirsChannel(metadata: string): string;
6
+ export declare function noticeOf(data: unknown): {
7
+ paths: string[];
8
+ trees: string[];
9
+ };
@@ -93,6 +93,7 @@ export interface KernelFs {
93
93
  onPeer?(settle: () => Promise<void>): void;
94
94
  remoteChanges?(listener: (change: {
95
95
  paths: readonly string[];
96
+ trees?: readonly string[];
96
97
  }) => void): () => void;
97
98
  peers?(): Peers | undefined;
98
99
  crossings?(mounted: (path: string) => boolean): void;
@@ -145,6 +145,7 @@ export declare class VfsNodes implements UnlinkHolder {
145
145
  moving(path: string): () => void;
146
146
  unkeep(path: string, file: KeptFile): void;
147
147
  rewritten(path: string): void;
148
+ rewrittenUnder(tree: string): void;
148
149
  doubted(path: string): void;
149
150
  flush(path: string): Promise<void>;
150
151
  unlinking(path: string): Promise<void>;
@@ -1,3 +1,5 @@
1
+ import { type FsNotice } from './fs/notice.js';
2
+ export type { FsNotice };
1
3
  export interface MetadataEntry {
2
4
  path: string;
3
5
  mode?: number;
@@ -9,3 +11,7 @@ export interface WriteMetadataOptions {
9
11
  indexedDB?: IDBFactory;
10
12
  }
11
13
  export declare function writeMetadata(root: FileSystemDirectoryHandle, entries: readonly MetadataEntry[], options?: WriteMetadataOptions): Promise<void>;
14
+ export interface PostFsNoticeOptions {
15
+ metadata?: string;
16
+ }
17
+ export declare function postFsNotice(notice: FsNotice, options?: PostFsNoticeOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.131.0",
3
+ "version": "1.132.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",