@ai-ecoverse/slicc-kernel 1.134.1 → 1.134.4

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.
@@ -178,7 +178,6 @@ export declare class OpfsFs implements KernelFs {
178
178
  private renameAt;
179
179
  private replacingTarget;
180
180
  private modified;
181
- private explicitTimes;
182
181
  private restamp;
183
182
  private place;
184
183
  private fileMoves;
@@ -50,4 +50,5 @@ export interface ProcessListing {
50
50
  fsCalls?: number;
51
51
  opfsCalls?: number;
52
52
  opfsOps?: number;
53
+ cwdChecks?: number;
53
54
  }
@@ -15,6 +15,7 @@ export declare class WasmMemories {
15
15
  constructor(ceiling: number | undefined, idleMs?: number, now?: () => number);
16
16
  private ceiling;
17
17
  count(): WasmMemoryCount;
18
+ started(): void;
18
19
  ended(): void;
19
20
  learn(): void;
20
21
  near(): boolean;
@@ -61,6 +61,10 @@ export interface NodeKernelOptions {
61
61
  cron?: {
62
62
  clock?: CronClock;
63
63
  };
64
+ wasmMemories?: {
65
+ ceiling?: number;
66
+ idleMs?: number;
67
+ };
64
68
  }
65
69
  export interface NodeKernel {
66
70
  readonly root: FileSystemDirectoryHandle;
@@ -1,3 +1,4 @@
1
+ import type { HeldCwdInit } from '../../kernel/protocol.js';
1
2
  import { type SyncFsBridgeStat } from '../../realm/sync-fs-wire.js';
2
3
  import { type JsChild, type JsExited, type JsSpawnOptions, type JsWaitOptions } from './js-children.js';
3
4
  import { type JsFdType, type JsOpenOptions, type JsStatFs, type JsWriteOptions } from './js-io.js';
@@ -152,6 +153,7 @@ export interface ContextOptions {
152
153
  links: boolean;
153
154
  };
154
155
  owned?: SharedArrayBuffer;
156
+ held?: HeldCwdInit | undefined;
155
157
  failed?: () => number | undefined;
156
158
  }
157
159
  export interface Identity {
@@ -45,6 +45,7 @@ export interface KernelImports {
45
45
  fdRead?: unknown;
46
46
  sleepMs?: unknown;
47
47
  flock?: unknown;
48
+ getcwd?: unknown;
48
49
  }
49
50
  export declare function importKey(namespace: WebAssembly.ModuleImports, name: keyof KernelImports, glue: KernelImports | undefined): string | undefined;
50
51
  export declare function wrapImport(imports: WebAssembly.Imports, name: keyof KernelImports, glue: KernelImports | undefined, wrap: (original: Syscall) => Syscall, optional?: boolean): void;
@@ -89,6 +90,9 @@ export declare function accounts(env?: Record<string, string>): {
89
90
  group: string;
90
91
  };
91
92
  export declare function useMounts(Fs: ProcessFs, env?: Record<string, string>, live?: boolean): void;
93
+ export declare function goneCwdGetcwd(imports: WebAssembly.Imports, fs: () => {
94
+ sliccCwdGone?(): boolean;
95
+ } | undefined, glue?: KernelImports): void;
92
96
  export declare function kernelAccess(imports: WebAssembly.Imports, fs: () => ProcessFs | undefined, memory: () => WebAssembly.Memory | undefined, glue?: KernelImports): void;
93
97
  export declare function kernelLink(imports: WebAssembly.Imports, fs: () => ProcessFs | undefined, memory: () => WebAssembly.Memory | undefined, glue?: KernelImports): void;
94
98
  export declare function devCreations(imports: WebAssembly.Imports, fs: () => ProcessFs | undefined, memory: () => WebAssembly.Memory | undefined, glue?: KernelImports): void;
@@ -0,0 +1,11 @@
1
+ import type { HeldCwd, HeldCwdReply } from '../kernel/held-cwd.js';
2
+ export declare const DELETED = " (deleted)";
3
+ export declare const relativeHere: (path: string) => boolean;
4
+ export declare const cwdFor: (cwd: string, held: HeldCwd | undefined, path: string) => string;
5
+ export interface HeldCwdFs {
6
+ chdir?(path: string): void;
7
+ cwd?(): string;
8
+ sliccHeldCwd?(): string;
9
+ sliccCwdGone?(): boolean;
10
+ }
11
+ export declare function holdingCwd(Fs: HeldCwdFs, held: HeldCwd, chdirred: (path: string) => HeldCwdReply): void;
@@ -3,6 +3,8 @@ import type { SyncFsPosixBridge } from './sync-fs-wire.js';
3
3
  export interface EmscriptenFsForHook extends LiveMountFsApi {
4
4
  chdir(path: string): void;
5
5
  sliccChdirAt?(path: string): void;
6
+ sliccHeldCwd?(): string;
7
+ sliccCwdGone?(): boolean;
6
8
  chown?(path: string | object, uid: number, gid: number, dontFollow?: boolean): void;
7
9
  }
8
10
  export interface EmscriptenVfsHandle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.134.1",
3
+ "version": "1.134.4",
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,16 +63,16 @@
63
63
  "format": "biome check --write ."
64
64
  },
65
65
  "devDependencies": {
66
- "@ai-ecoverse/py-numpy": "2.5.4-1",
66
+ "@ai-ecoverse/py-numpy": "2.5.4-2",
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.25.2",
69
+ "@ai-ecoverse/slicc-shared-web": "1.27.0",
70
70
  "@ai-ecoverse/wasi-cargo": "0.99.0-3",
71
71
  "@ai-ecoverse/wasi-pnpm": "12.9.1-16",
72
72
  "@ai-ecoverse/wasi-ripgrep": "15.2.0-5",
73
73
  "@ai-ecoverse/wasi-rustc": "1.98.1-6",
74
74
  "@ai-ecoverse/wasi-zig": "0.16.0-17",
75
- "@ai-ecoverse/wasix-python": "3.15.0-2",
75
+ "@ai-ecoverse/wasix-python": "3.15.0-3",
76
76
  "@ai-ecoverse/wasm-bash": "5.3.0-21",
77
77
  "@ai-ecoverse/wasm-coreutils": "9.12.0-10",
78
78
  "@ai-ecoverse/wasm-curl": "8.22.0-7",