@ai-ecoverse/slicc-kernel 1.145.1 → 1.146.0

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.
@@ -1,4 +1,5 @@
1
1
  import { type JsKernel } from './js-kernel.js';
2
+ import type { JsSyncKernel } from './js-sync.js';
2
3
  export interface JsAddress {
3
4
  host: string;
4
5
  port: number;
@@ -83,4 +84,9 @@ export interface NetIo {
83
84
  send(fd: number, data: Uint8Array, signal: AbortSignal): Promise<void>;
84
85
  close(fd: number): Promise<void>;
85
86
  }
86
- export declare function netOps(kernel: JsKernel, io: NetIo): JsNet;
87
+ export interface JsSyncNet {
88
+ listen(options?: JsListenOptions): JsListener;
89
+ }
90
+ export declare function netOps(kernel: JsKernel, io: NetIo, sync?: JsSyncKernel): JsNet & {
91
+ sync: JsSyncNet;
92
+ };
@@ -5,6 +5,7 @@ import type { SyncSabRequestBody } from '../../realm/sync-sab-wire.js';
5
5
  import type { JsChild, JsSpawnOptions } from './js-children.js';
6
6
  import { type FdInfo, type JsOpenOptions, type JsStatFs, type JsWriteOptions } from './js-io.js';
7
7
  import { type JsKernel } from './js-kernel.js';
8
+ import type { JsSyncNet } from './js-net.js';
8
9
  import type { JsRunOptions, JsRunResult } from './js-run.js';
9
10
  import type { JsSyncTty } from './js-tty.js';
10
11
  import type { JsWasi, JsWasiOptions } from './js-wasi.js';
@@ -50,6 +51,7 @@ export interface JsSyncContext {
50
51
  wasi: {
51
52
  create(options?: JsWasiOptions): JsWasi;
52
53
  };
54
+ net: JsSyncNet;
53
55
  fs: {
54
56
  stat(path: string): SyncFsBridgeStat;
55
57
  lstat(path: string): SyncFsBridgeStat;
@@ -95,6 +97,6 @@ export declare class JsSyncKernel {
95
97
  bytes(req: SyncSabRequestBody): Uint8Array;
96
98
  blocking(req: SyncSabRequestBody): SyncFsResult;
97
99
  }
98
- export declare function syncOps(kernel: JsSyncKernel, shared: SyncShared): Omit<JsSyncContext, 'run' | 'spawn' | 'exit' | 'kill' | 'cred' | 'setcred' | 'kernel' | 'umask' | 'fs' | 'tty' | 'wasi'> & {
100
+ export declare function syncOps(kernel: JsSyncKernel, shared: SyncShared): Omit<JsSyncContext, 'run' | 'spawn' | 'exit' | 'kill' | 'cred' | 'setcred' | 'kernel' | 'umask' | 'fs' | 'tty' | 'wasi' | 'net'> & {
99
101
  fs: Omit<JsSyncContext['fs'], 'watch'>;
100
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.145.1",
3
+ "version": "1.146.0",
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",
@@ -64,10 +64,10 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@ai-ecoverse/py-numpy": "2.5.4-4",
67
- "@ai-ecoverse/slicc-cdp": "1.30.25",
67
+ "@ai-ecoverse/slicc-cdp": "1.31.1",
68
68
  "@ai-ecoverse/slicc-node": "2.5.2",
69
69
  "@ai-ecoverse/slicc-scrub": "1.0.0",
70
- "@ai-ecoverse/slicc-shared-web": "2.7.9",
70
+ "@ai-ecoverse/slicc-shared-web": "2.8.0",
71
71
  "@ai-ecoverse/wasi-cargo": "0.99.0-6",
72
72
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
73
73
  "@ai-ecoverse/wasi-ripgrep": "15.2.0-5",
@@ -77,7 +77,7 @@
77
77
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
78
78
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
79
79
  "@ai-ecoverse/wasm-curl": "8.22.0-9",
80
- "@ai-ecoverse/wasm-git": "2.55.0-18",
80
+ "@ai-ecoverse/wasm-git": "2.55.0-20",
81
81
  "@ai-ecoverse/wasm-gmake": "4.4.1-9",
82
82
  "@ai-ecoverse/wasm-procps": "4.0.7-5",
83
83
  "@ai-ecoverse/wasm-sqlite3": "3.54.0-8",