@ai-ecoverse/slicc-kernel 1.130.2 → 1.132.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.
- package/README.md +4 -2
- package/dist/index.js.map +1 -1
- package/dist/kernel-worker.js +163 -18
- package/dist/kernel-worker.js.map +4 -4
- package/dist/meta.js +21 -0
- package/dist/meta.js.map +3 -3
- package/dist/node-process-worker.js +1 -1
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +157 -15
- package/dist/node.js.map +4 -4
- package/dist/process-worker.js +1 -1
- package/dist/process-worker.js.map +2 -2
- package/dist/types/fs/notice.d.ts +9 -0
- package/dist/types/fs/types.d.ts +1 -0
- package/dist/types/kernel/net/sealed-pg.d.ts +17 -0
- package/dist/types/kernel/vfs-file.d.ts +1 -0
- package/dist/types/meta.d.ts +6 -0
- package/package.json +1 -1
package/dist/types/fs/types.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface KernelFs {
|
|
|
93
93
|
onPeer?(settle: () => Promise<void>): void;
|
|
94
94
|
remoteChanges?(listener: (change: {
|
|
95
95
|
paths: readonly string[];
|
|
96
|
+
trees?: readonly string[];
|
|
96
97
|
}) => void): () => void;
|
|
97
98
|
peers?(): Peers | undefined;
|
|
98
99
|
crossings?(mounted: (path: string) => boolean): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const PG_MESSAGE_MAX: number;
|
|
2
|
+
export type PgAsk = (placeholders: string[]) => Promise<Record<string, string> | undefined>;
|
|
3
|
+
export declare function sniffPg(start: string): 'yes' | 'no' | 'more';
|
|
4
|
+
export declare class PgServer {
|
|
5
|
+
private buffer;
|
|
6
|
+
private skip;
|
|
7
|
+
private lost;
|
|
8
|
+
cleartext: boolean;
|
|
9
|
+
feed(bytes: Uint8Array): void;
|
|
10
|
+
}
|
|
11
|
+
export interface PgFrame {
|
|
12
|
+
bytes: Uint8Array;
|
|
13
|
+
values?: Record<string, string>;
|
|
14
|
+
done: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function pgLength(bytes: Uint8Array, started: boolean): number | undefined;
|
|
17
|
+
export declare function pgPassword(message: Uint8Array, server: PgServer, ask: PgAsk): Promise<PgFrame>;
|
|
@@ -145,6 +145,7 @@ export declare class VfsNodes implements UnlinkHolder {
|
|
|
145
145
|
moving(path: string): () => void;
|
|
146
146
|
unkeep(path: string, file: KeptFile): void;
|
|
147
147
|
rewritten(path: string): void;
|
|
148
|
+
rewrittenUnder(tree: string): void;
|
|
148
149
|
doubted(path: string): void;
|
|
149
150
|
flush(path: string): Promise<void>;
|
|
150
151
|
unlinking(path: string): Promise<void>;
|
package/dist/types/meta.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type FsNotice } from './fs/notice.js';
|
|
2
|
+
export type { FsNotice };
|
|
1
3
|
export interface MetadataEntry {
|
|
2
4
|
path: string;
|
|
3
5
|
mode?: number;
|
|
@@ -9,3 +11,7 @@ export interface WriteMetadataOptions {
|
|
|
9
11
|
indexedDB?: IDBFactory;
|
|
10
12
|
}
|
|
11
13
|
export declare function writeMetadata(root: FileSystemDirectoryHandle, entries: readonly MetadataEntry[], options?: WriteMetadataOptions): Promise<void>;
|
|
14
|
+
export interface PostFsNoticeOptions {
|
|
15
|
+
metadata?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function postFsNotice(notice: FsNotice, options?: PostFsNoticeOptions): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.132.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",
|