@ai-ecoverse/slicc-kernel 1.196.31 → 1.196.33

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.
@@ -3842,7 +3842,7 @@ var init_version = __esm({
3842
3842
  "src/version.ts"() {
3843
3843
  "use strict";
3844
3844
  init_captured_globals();
3845
- KERNEL_VERSION = true ? "1.196.31" : "0.0.0-dev";
3845
+ KERNEL_VERSION = true ? "1.196.33" : "0.0.0-dev";
3846
3846
  OS_RELEASE = "6.0.0-slicc";
3847
3847
  }
3848
3848
  });
@@ -1,3 +1,4 @@
1
+ import type { CleanupEntry } from './rename-cleanup.js';
1
2
  export interface MetaEntry {
2
3
  path: string;
3
4
  mode?: number;
@@ -25,6 +26,9 @@ export interface MetaEntry {
25
26
  at: number;
26
27
  replace?: true;
27
28
  privateCopy?: true;
29
+ sourceCleanup?: number;
30
+ physicalSource?: string;
31
+ copiedEntries?: CleanupEntry[];
28
32
  emptyBackup?: string;
29
33
  cleanupOnly?: true;
30
34
  lock?: string;
@@ -248,7 +248,7 @@ export declare class OpfsFs implements KernelFs {
248
248
  private peerSettled;
249
249
  private aloneCalls;
250
250
  private aloneDrain;
251
- alonePlain(inner: (...args: unknown[]) => Promise<unknown>, args: unknown[]): Promise<unknown>;
251
+ alonePlain(name: string, inner: (...args: unknown[]) => Promise<unknown>, args: unknown[]): Promise<unknown>;
252
252
  private resolvedForms;
253
253
  amongPeers(): boolean;
254
254
  peerOp(name: string, args: unknown[], inner: (...args: unknown[]) => Promise<unknown>): Promise<unknown>;
@@ -263,8 +263,16 @@ export declare class OpfsFs implements KernelFs {
263
263
  private cleanSwapIntent;
264
264
  private clearPrivateBackup;
265
265
  private commitPrivateCopy;
266
+ private sourceId;
267
+ private releaseSource;
268
+ private cleanSource;
266
269
  private duplicate;
267
270
  private readonly hiddenBackups;
271
+ private readonly pendingSources;
272
+ private syncSourceReservation;
273
+ private reservedOp;
274
+ private sourceReservation;
275
+ private reserveWrite;
268
276
  private readonly renamingDirs;
269
277
  private intents;
270
278
  private intend;
@@ -273,6 +281,8 @@ export declare class OpfsFs implements KernelFs {
273
281
  private orphans;
274
282
  private finishRenames;
275
283
  private finishPrivateSwap;
284
+ private resumeCopiedTree;
285
+ private resumeCoordinatedCopy;
276
286
  private finishRename;
277
287
  settledRename(path: unknown): Promise<void>;
278
288
  private busyAt;
@@ -0,0 +1,12 @@
1
+ export interface CleanupEntry {
2
+ path: string;
3
+ kind: 'file' | 'directory';
4
+ id?: string;
5
+ size?: number;
6
+ mtime?: number;
7
+ }
8
+ type Handle = FileSystemFileHandle | FileSystemDirectoryHandle;
9
+ export declare function cleanupId(handle: Handle): Promise<string> | undefined;
10
+ export declare function copiedEntry(handle: Handle, path: string, file?: File): Promise<CleanupEntry>;
11
+ export declare function removeCopied(parent: FileSystemDirectoryHandle, name: string, manifest: CleanupEntry[]): Promise<void>;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.196.31",
3
+ "version": "1.196.33",
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",