@ai-ecoverse/slicc-kernel 1.154.1 → 1.154.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.
@@ -2964,7 +2964,7 @@ var KERNEL_VERSION, OS_RELEASE;
2964
2964
  var init_version = __esm({
2965
2965
  "src/version.ts"() {
2966
2966
  "use strict";
2967
- KERNEL_VERSION = true ? "1.154.1" : "0.0.0-dev";
2967
+ KERNEL_VERSION = true ? "1.154.2" : "0.0.0-dev";
2968
2968
  OS_RELEASE = "6.0.0-slicc";
2969
2969
  }
2970
2970
  });
@@ -31,6 +31,7 @@ export declare class OpfsFs implements KernelFs {
31
31
  private readonly mounts;
32
32
  private readonly locks;
33
33
  private readonly lockPrefix;
34
+ private readonly appendPrefix;
34
35
  readonly rootName: string | undefined;
35
36
  private readonly renamePrefix;
36
37
  constructor(root: FileSystemDirectoryHandle, meta?: MetaStore, channel?: string, options?: {
@@ -156,6 +157,8 @@ export declare class OpfsFs implements KernelFs {
156
157
  private writesDrained;
157
158
  private movingFile;
158
159
  truncate(path: string, size: number): Promise<void>;
160
+ append(path: string, bytes: Uint8Array): Promise<number>;
161
+ private ending;
159
162
  private truncated;
160
163
  writeSession(path: string, truncate: boolean): Promise<WriteSession>;
161
164
  readFile(path: string): Promise<string>;
@@ -17,6 +17,7 @@ export interface VfsFileFs extends Partial<AsyncRangedIo> {
17
17
  nlink?: number;
18
18
  }>;
19
19
  readlink?(path: string): Promise<string>;
20
+ append?(path: string, bytes: Uint8Array): Promise<number>;
20
21
  lstat?(path: string): Promise<unknown>;
21
22
  realpath?(path: string, follow: boolean): Promise<string>;
22
23
  chown?(path: string, change: OwnerChange): Promise<void>;
@@ -90,6 +91,9 @@ export declare class VfsNode {
90
91
  known(): number | undefined;
91
92
  private fits;
92
93
  renamedTo(path: string): void;
94
+ append(bytes: Uint8Array): Promise<number>;
95
+ private positionalAt;
96
+ shared(): void;
93
97
  pwrite(bytes: Uint8Array, at: number): Promise<number>;
94
98
  truncate(size: number): Promise<void>;
95
99
  doubted(): void;
@@ -124,6 +128,7 @@ export declare class VfsNodes implements UnlinkHolder {
124
128
  private forget;
125
129
  private orphan;
126
130
  private dropName;
131
+ shared(): void;
127
132
  holdsAny(): boolean;
128
133
  private epoch;
129
134
  private readonly plain;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.154.1",
3
+ "version": "1.154.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",