@ai-ecoverse/slicc-kernel 1.196.17 → 1.196.19
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 +8 -8
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +353 -101
- package/dist/cloudflare.js.map +4 -4
- package/dist/kernel-worker.js +401 -149
- package/dist/kernel-worker.js.map +4 -4
- package/dist/meta.js.map +2 -2
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +351 -99
- package/dist/node.js.map +4 -4
- package/dist/process-worker.js +1 -1
- package/dist/types/fs/meta.d.ts +1 -0
- package/dist/types/fs/opfs.d.ts +12 -0
- package/dist/types/fs/private-rename.d.ts +25 -0
- package/dist/types/kernel/children.d.ts +1 -3
- package/dist/types/sudo.d.ts +5 -4
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -3732,7 +3732,7 @@ var init_version = __esm({
|
|
|
3732
3732
|
"src/version.ts"() {
|
|
3733
3733
|
"use strict";
|
|
3734
3734
|
init_captured_globals();
|
|
3735
|
-
KERNEL_VERSION = true ? "1.196.
|
|
3735
|
+
KERNEL_VERSION = true ? "1.196.19" : "0.0.0-dev";
|
|
3736
3736
|
OS_RELEASE = "6.0.0-slicc";
|
|
3737
3737
|
}
|
|
3738
3738
|
});
|
package/dist/types/fs/meta.d.ts
CHANGED
package/dist/types/fs/opfs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type MetaStore, type MetaTransactions } from './meta.js';
|
|
2
|
+
import { PrivateRename } from './private-rename.js';
|
|
2
3
|
import { type KeepHandlers, type LockManagerLike, type RemoteListener } from './remote.js';
|
|
3
4
|
import { type CopyOptions, type DirectoryMatch, type FsStat, type KernelFs, type NewOwner, type OwnerChange, type PeerKeeps, type Peers, type Perm, type PwriteOptions } from './types.js';
|
|
4
5
|
export type OpfsOp = 'lookup' | 'read' | 'write' | 'commit' | 'sidecar';
|
|
@@ -12,6 +13,10 @@ export declare function syncAccessHandles(scope?: object): boolean;
|
|
|
12
13
|
export declare const FILE_TIMES_MS = 100;
|
|
13
14
|
export declare class OpfsFs implements KernelFs {
|
|
14
15
|
private readonly root;
|
|
16
|
+
readonly privateRename: PrivateRename | undefined;
|
|
17
|
+
private insidePrivateOp;
|
|
18
|
+
private privateRedirect?;
|
|
19
|
+
private privateSession?;
|
|
15
20
|
private readonly meta;
|
|
16
21
|
private readonly dirs;
|
|
17
22
|
private readonly files;
|
|
@@ -246,6 +251,12 @@ export declare class OpfsFs implements KernelFs {
|
|
|
246
251
|
private resolvedForms;
|
|
247
252
|
amongPeers(): boolean;
|
|
248
253
|
peerOp(name: string, args: unknown[], inner: (...args: unknown[]) => Promise<unknown>): Promise<unknown>;
|
|
254
|
+
privateOp(name: string, args: unknown[], inner: (...args: unknown[]) => Promise<unknown>): Promise<unknown>;
|
|
255
|
+
private privateCopyReady;
|
|
256
|
+
private usePrivateCopy;
|
|
257
|
+
private privateCopy;
|
|
258
|
+
private commitPrivateCopy;
|
|
259
|
+
private duplicate;
|
|
249
260
|
private readonly renamingDirs;
|
|
250
261
|
private intents;
|
|
251
262
|
private intend;
|
|
@@ -268,6 +279,7 @@ export declare class OpfsFs implements KernelFs {
|
|
|
268
279
|
private moved;
|
|
269
280
|
private moveChild;
|
|
270
281
|
private copy;
|
|
282
|
+
private copyBytes;
|
|
271
283
|
symlink(target: string, path: string, owner?: NewOwner): Promise<void>;
|
|
272
284
|
realpath(path: string, follow: boolean): Promise<string>;
|
|
273
285
|
readlink(path: string): Promise<string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class PrivatePaths {
|
|
2
|
+
readonly names: Set<string>;
|
|
3
|
+
private bound;
|
|
4
|
+
private shifted;
|
|
5
|
+
private readonly listing;
|
|
6
|
+
private readonly removing;
|
|
7
|
+
constructor(paths: string[], listing: boolean, removing: boolean);
|
|
8
|
+
touches(roots: Set<string>, names?: Set<string>): boolean;
|
|
9
|
+
bind(path: string): void;
|
|
10
|
+
moved(from: string, to: string): void;
|
|
11
|
+
redirected(from: string, to: string): Set<string>;
|
|
12
|
+
}
|
|
13
|
+
export declare class PrivateRename {
|
|
14
|
+
private readonly active;
|
|
15
|
+
private readonly barriers;
|
|
16
|
+
private readonly waiters;
|
|
17
|
+
private wait;
|
|
18
|
+
private wake;
|
|
19
|
+
private blocked;
|
|
20
|
+
enter(op: PrivatePaths): Promise<void>;
|
|
21
|
+
leave(op: PrivatePaths): void;
|
|
22
|
+
redirect(op: PrivatePaths, from: string, to: string): Promise<void>;
|
|
23
|
+
moved(from: string, to: string): void;
|
|
24
|
+
exclusive<T>(op: PrivatePaths, run: () => Promise<T>): Promise<T>;
|
|
25
|
+
}
|
|
@@ -74,9 +74,7 @@ export declare class SpawnError extends Error {
|
|
|
74
74
|
constructor(code: KernelErrno);
|
|
75
75
|
}
|
|
76
76
|
export declare class ChangedError extends SpawnError {
|
|
77
|
-
|
|
78
|
-
readonly file: string;
|
|
79
|
-
constructor(notice: string, file: string);
|
|
77
|
+
constructor();
|
|
80
78
|
}
|
|
81
79
|
export interface SpawnGrant {
|
|
82
80
|
cred: Cred;
|
package/dist/types/sudo.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export { SUDOERS, SUDOERS_D } from './sudoers.js';
|
|
|
7
7
|
export declare const SECURE_PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
|
8
8
|
export declare const DEFAULT_SUDOERS = "%sudo Cmnd *\n";
|
|
9
9
|
export declare const SUDO_TIMEOUT_MS = 300000;
|
|
10
|
-
export declare function changedText(
|
|
11
|
-
export declare function requestedText(
|
|
10
|
+
export declare function changedText(word: string): string;
|
|
11
|
+
export declare function requestedText(word: string): string;
|
|
12
12
|
export declare function changedFile(approved: Readonly<Record<string, string>>, now: Readonly<Record<string, string>>): string | undefined;
|
|
13
13
|
export interface SudoRequest {
|
|
14
14
|
id: string;
|
|
@@ -153,12 +153,13 @@ export declare class Sudo {
|
|
|
153
153
|
private canonical;
|
|
154
154
|
reachable(cred: Cred, cwd: string): Promise<boolean>;
|
|
155
155
|
real(file: string): Promise<string>;
|
|
156
|
-
moved({ routes }: SudoFiles
|
|
156
|
+
moved({ routes }: SudoFiles): Promise<boolean>;
|
|
157
157
|
missingBacking(hashes: Readonly<Record<string, string>>, except?: string): Promise<string | undefined>;
|
|
158
158
|
reads(snapshots?: ReadonlyMap<string, Uint8Array>): SudoReads;
|
|
159
159
|
private bound;
|
|
160
160
|
private writable;
|
|
161
|
-
searched
|
|
161
|
+
private searched;
|
|
162
|
+
executablePath(fs: KernelFs, cred: Readonly<Cred>, asked: string): Promise<string | undefined>;
|
|
162
163
|
private locate;
|
|
163
164
|
request(caller: SudoCaller, call: SudoCall, signal: AbortSignal): Promise<SudoResult>;
|
|
164
165
|
replay(value: unknown): Promise<SudoReplayed | Failure>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.196.
|
|
3
|
+
"version": "1.196.19",
|
|
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",
|