@ai-ecoverse/slicc-kernel 1.125.5 → 1.125.8

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.
@@ -9,3 +9,19 @@ export declare class CredCache {
9
9
  get(): Cred;
10
10
  change(apply: () => Cred): Cred;
11
11
  }
12
+ export interface UmaskSignals {
13
+ quiet<T>(fn: () => T): T;
14
+ deliver(): void;
15
+ }
16
+ export declare const UNGATED: UmaskSignals;
17
+ export declare class UmaskCache {
18
+ private mask;
19
+ private readonly call;
20
+ private readonly shared;
21
+ private readonly signals;
22
+ constructor(call: (mask?: number) => number, shared?: Int32Array, signals?: UmaskSignals);
23
+ get(): number;
24
+ set(mask: number): number;
25
+ private change;
26
+ private lock;
27
+ }
@@ -94,6 +94,7 @@ export declare function pathInode(path: string): bigint;
94
94
  export declare const MISS_TTL_MS = 20;
95
95
  export declare const FS_GEN = 4;
96
96
  export declare const CRED_GEN = 5;
97
+ export declare const UMASK = 6;
97
98
  export declare const FD_RING: number;
98
99
  export declare const FD_RING_SIZE = 64;
99
100
  export declare const SHARED_IDS_BYTES: number;
@@ -40,6 +40,7 @@ export declare class WasiHost {
40
40
  readonly mem: WasiMemory;
41
41
  readonly fds: WasiFds;
42
42
  private readonly creds;
43
+ private readonly umasks;
43
44
  private readonly started;
44
45
  private cache;
45
46
  private readonly startCwd;
@@ -57,11 +58,13 @@ export declare class WasiHost {
57
58
  threadEntry: ThreadEntry | undefined;
58
59
  linkedModules: (() => Record<string, WebAssembly.Module>) | undefined;
59
60
  interrupted: (() => boolean) | undefined;
60
- quietly: (fn: () => void) => void;
61
+ quietly: <T>(fn: () => T) => T;
62
+ deliverDue: () => void;
61
63
  private readonly listening;
62
64
  readonly o: WasiHostOptions;
63
65
  constructor(o: WasiHostOptions);
64
66
  get cwd(): string;
67
+ umask(mask?: number): number;
65
68
  private created;
66
69
  sliccTtyImports(): Record<string, WasiFunction>;
67
70
  sliccFsImports(): Record<string, WasiFunction>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.125.5",
3
+ "version": "1.125.8",
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",
@@ -63,10 +63,10 @@
63
63
  "format": "biome check --write ."
64
64
  },
65
65
  "devDependencies": {
66
- "@ai-ecoverse/py-numpy": "2.3.2-11",
66
+ "@ai-ecoverse/py-numpy": "2.3.2-12",
67
67
  "@ai-ecoverse/slicc-node": "2.5.1",
68
68
  "@ai-ecoverse/slicc-scrub": "1.0.0",
69
- "@ai-ecoverse/slicc-shared-web": "1.24.1",
69
+ "@ai-ecoverse/slicc-shared-web": "1.24.2",
70
70
  "@ai-ecoverse/wasi-cargo": "0.99.0-3",
71
71
  "@ai-ecoverse/wasi-pnpm": "12.9.1-10",
72
72
  "@ai-ecoverse/wasi-ripgrep": "15.2.0-5",