@ai-ecoverse/slicc-kernel 1.124.8 → 1.124.10

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.
@@ -14,8 +14,8 @@ import type { KernelLocks } from './lock-service.js';
14
14
  import type { HttpHandles } from './net/http-syscalls.js';
15
15
  import type { Resolver } from './net/resolver.js';
16
16
  import type { MountLine, ProcessListing } from './proc-info.js';
17
- import { type StateListener, type WasmProcessOptions, type WasmSyscall } from './process.js';
18
- import { type ForkState, type InheritedFd, type Program } from './protocol.js';
17
+ import { type StateListener, WasmProcess, type WasmProcessOptions, type WasmSyscall } from './process.js';
18
+ import { type ForkState, type InheritedFd, type Program, type WasmThread, type WasmThreadInitMsg } from './protocol.js';
19
19
  import type { PtyTable } from './pty.js';
20
20
  import type { SealedBroker } from './sealed.js';
21
21
  import type { SemTable } from './sem.js';
@@ -121,4 +121,5 @@ export interface WasmProcessHandle {
121
121
  export declare const KILL_GRACE_MS = 2000;
122
122
  export declare const KILL_HARD_MS = 5000;
123
123
  export declare function inheritedFds(fds: FdTable): InheritedFd[];
124
+ export declare function threadInit(opts: SpawnWasmOptions, program: WasmThreadInitMsg['program'], sab: SharedArrayBuffer, cred: WasmProcess['cred'], thread: WasmThread, main: SharedArrayBuffer): WasmThreadInitMsg;
124
125
  export declare function spawnWasmProcess(opts: SpawnWasmOptions): WasmProcessHandle;
@@ -129,6 +129,7 @@ export declare class WasiFds {
129
129
  private kernelFifo;
130
130
  restartable: (() => boolean) | undefined;
131
131
  restarting<T>(call: () => T): T;
132
+ private madeAtOnce;
132
133
  private createNew;
133
134
  private isLink;
134
135
  private statOrMissing;
@@ -32,5 +32,6 @@ export declare function procAlias(fs: {
32
32
  readlink?(path: string): Promise<string>;
33
33
  lstat?(path: string): Promise<unknown>;
34
34
  }, path: string, follow: boolean): Promise<string | undefined | ProcRefusal>;
35
+ export declare function physicalProc(fs: Pick<SyncFsPosixBridge, 'stat' | 'changes'>): () => boolean;
35
36
  export declare function procfsBridge<T extends SyncFsPosixBridge>(fs: T, tree: ProcTree): T;
36
37
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.124.8",
3
+ "version": "1.124.10",
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",
@@ -72,7 +72,7 @@
72
72
  "@ai-ecoverse/wasi-ripgrep": "15.2.0-5",
73
73
  "@ai-ecoverse/wasi-rustc": "1.98.1-5",
74
74
  "@ai-ecoverse/wasi-zig": "0.16.0-16",
75
- "@ai-ecoverse/wasix-python": "3.14.2-27",
75
+ "@ai-ecoverse/wasix-python": "3.14.2-28",
76
76
  "@ai-ecoverse/wasm-bash": "5.3.0-19",
77
77
  "@ai-ecoverse/wasm-coreutils": "9.12.0-9",
78
78
  "@ai-ecoverse/wasm-curl": "8.22.0-6",