@ai-ecoverse/slicc-kernel 1.166.3 → 1.166.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.
- package/dist/kernel-worker.js +19 -6
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.cjs +95 -47
- package/dist/node-process-worker.cjs.map +3 -3
- package/dist/node-process-worker.js +95 -47
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +19 -6
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +93 -45
- package/dist/process-worker.js.map +3 -3
- package/dist/types/process/js/js-sync.d.ts +3 -2
- package/dist/types/realm/sync-sab-bridge.d.ts +1 -1
- package/dist/types/realm/sync-sab-wire.d.ts +4 -0
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import type { JsRunOptions, JsRunResult } from './js-run.js';
|
|
|
11
11
|
import type { JsSyncTty } from './js-tty.js';
|
|
12
12
|
import type { JsWasi, JsWasiOptions } from './js-wasi.js';
|
|
13
13
|
import type { JsWatcher, JsWatchListener, JsWatchOptions } from './js-watch.js';
|
|
14
|
-
export type SyncCall = (req: SyncSabRequestBody) => SyncFsResult;
|
|
14
|
+
export type SyncCall = (req: SyncSabRequestBody, sink?: Uint8Array) => SyncFsResult;
|
|
15
15
|
export interface JsSyncFile {
|
|
16
16
|
readonly fd: number;
|
|
17
17
|
readonly path: string;
|
|
@@ -115,10 +115,11 @@ export declare class JsSyncKernel {
|
|
|
115
115
|
private readonly kernel;
|
|
116
116
|
private readonly unwind;
|
|
117
117
|
constructor(lane: SyncCall, kernel: Pick<JsKernel, 'deliver'>, unwind?: () => void);
|
|
118
|
-
raw(req: SyncSabRequestBody): SyncFsResult;
|
|
118
|
+
raw(req: SyncSabRequestBody, sink?: Uint8Array): SyncFsResult;
|
|
119
119
|
call(req: SyncSabRequestBody): SyncFsResult;
|
|
120
120
|
json(req: SyncSabRequestBody): unknown;
|
|
121
121
|
bytes(req: SyncSabRequestBody): Uint8Array;
|
|
122
|
+
bytesInto(req: SyncSabRequestBody, sink: Uint8Array): number;
|
|
122
123
|
blocking(req: SyncSabRequestBody): SyncFsResult;
|
|
123
124
|
}
|
|
124
125
|
export declare function syncOps(kernel: JsSyncKernel, shared: SyncShared): Omit<JsSyncContext, 'run' | 'spawn' | 'exit' | 'kill' | 'cred' | 'setcred' | 'kernel' | 'umask' | 'fs' | 'tty' | 'wasi' | 'net' | 'runScript' | 'promiseState' | 'setStackFormatter' | 'errorSource'> & {
|
|
@@ -4,7 +4,7 @@ export interface SabPostLike {
|
|
|
4
4
|
postMessage(message: unknown, transfer?: Transferable[]): void;
|
|
5
5
|
}
|
|
6
6
|
export interface SyncSabTransport {
|
|
7
|
-
call(req: SyncSabRequestBody, timeoutMs: number, label: string, transfer?: Transferable[]): SyncFsResult;
|
|
7
|
+
call(req: SyncSabRequestBody, timeoutMs: number, label: string, transfer?: Transferable[], sink?: Uint8Array): SyncFsResult;
|
|
8
8
|
}
|
|
9
9
|
export type AtomicsWaitLike = (typedArray: Int32Array, index: number, value: number, timeout?: number) => 'ok' | 'not-equal' | 'timed-out';
|
|
10
10
|
export declare function exactBody<T extends object>(req: T, transfer?: Transferable[]): {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { WasmSyscall } from '../kernel/process.js';
|
|
2
2
|
import type { SyncFsRequest, SyncFsResult } from './sync-fs-wire.js';
|
|
3
|
+
export declare const sabLoad: (a: Int32Array, i: number) => number;
|
|
4
|
+
export declare const sabStore: (a: Int32Array, i: number, v: number) => number;
|
|
5
|
+
export declare const sabWaitAsync: unknown;
|
|
6
|
+
export declare function copyWindow(out: Uint8Array, window: Uint8Array, chunk: number, at: number): void;
|
|
3
7
|
export declare const SAB_HEADER_I32 = 18;
|
|
4
8
|
export declare const SAB_CLOCK_OFFSET: number;
|
|
5
9
|
export declare const SAB_CLOCK_I64 = 3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.166.
|
|
3
|
+
"version": "1.166.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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@ai-ecoverse/py-numpy": "2.5.4-4",
|
|
67
|
-
"@ai-ecoverse/slicc-cdp": "1.41.
|
|
67
|
+
"@ai-ecoverse/slicc-cdp": "1.41.15",
|
|
68
68
|
"@ai-ecoverse/slicc-node": "2.5.2",
|
|
69
69
|
"@ai-ecoverse/slicc-scrub": "1.1.0",
|
|
70
70
|
"@ai-ecoverse/slicc-shared-web": "2.12.3",
|