@ai-ecoverse/slicc-kernel 1.196.2 → 1.196.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/README.md +7 -6
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +187 -64
- package/dist/cloudflare.js.map +3 -3
- package/dist/kernel-worker.js +187 -64
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +187 -64
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/dist/types/commands.d.ts +4 -2
- package/dist/types/launcher.d.ts +3 -0
- package/dist/types/sudo-files.d.ts +7 -2
- package/dist/types/sudo.d.ts +1 -0
- package/dist/types/sudoers.d.ts +3 -2
- package/package.json +2 -2
package/dist/process-worker.js
CHANGED
|
@@ -3625,7 +3625,7 @@ var init_version = __esm({
|
|
|
3625
3625
|
"src/version.ts"() {
|
|
3626
3626
|
"use strict";
|
|
3627
3627
|
init_captured_globals();
|
|
3628
|
-
KERNEL_VERSION = true ? "1.196.
|
|
3628
|
+
KERNEL_VERSION = true ? "1.196.4" : "0.0.0-dev";
|
|
3629
3629
|
OS_RELEASE = "6.0.0-slicc";
|
|
3630
3630
|
}
|
|
3631
3631
|
});
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type KernelFs } from './fs/types.js';
|
|
2
2
|
export type Abi = 'emscripten' | 'wasi' | 'js';
|
|
3
3
|
export interface Command {
|
|
4
|
+
manifests?: readonly string[];
|
|
4
5
|
name: string;
|
|
5
6
|
abi: Abi;
|
|
6
7
|
glue: string;
|
|
@@ -49,7 +50,7 @@ export declare function variantFor(variants: readonly CommandVariant[] | undefin
|
|
|
49
50
|
export declare function commandsOf(pkg: string, manifest: Manifest): Command[];
|
|
50
51
|
export declare function pnpmGlobalRoots(fs: KernelFs, home: string): Promise<string[]>;
|
|
51
52
|
export declare function engineRefusal(manifest: Manifest, kernel: string): string | undefined;
|
|
52
|
-
export declare function scanCommands(fs: KernelFs, modules: string | (string | string[])[], binsFrom?: number, kernel?: string, refused?: Command[], global?: ReadonlySet<string
|
|
53
|
+
export declare function scanCommands(fs: KernelFs, modules: string | (string | string[])[], binsFrom?: number, kernel?: string, refused?: Command[], global?: ReadonlySet<string>, provenance?: boolean): Promise<Map<string, Command>>;
|
|
53
54
|
export declare function scanFilesystems(fs: KernelFs, modules: string | string[]): Promise<Map<string, string>>;
|
|
54
55
|
export declare const BINFMT_MAGIC_MAX = 256;
|
|
55
56
|
export interface BinfmtRule {
|
|
@@ -64,6 +65,7 @@ export interface BinfmtRule {
|
|
|
64
65
|
export declare function binfmtHex(bytes: Uint8Array): string;
|
|
65
66
|
export declare function magicRule(name: string, pkg: string, declared: unknown): BinfmtRule | undefined;
|
|
66
67
|
export declare function magicMatches(rule: BinfmtRule, head: Uint8Array): boolean;
|
|
67
|
-
export declare function scanBinfmts(fs: KernelFs, modules: string | string[], warn?: (message: string) => void): Promise<BinfmtRule[]>;
|
|
68
|
+
export declare function scanBinfmts(fs: KernelFs, modules: string | string[], warn?: (message: string) => void, declarations?: BinfmtRule[]): Promise<BinfmtRule[]>;
|
|
69
|
+
export declare function binfmtInputs(declarations: readonly BinfmtRule[], path: string, head?: Uint8Array): string[];
|
|
68
70
|
export declare function binfmtFor(rules: readonly BinfmtRule[], path: string, head?: Uint8Array): BinfmtRule | undefined;
|
|
69
71
|
export {};
|
package/dist/types/launcher.d.ts
CHANGED
|
@@ -394,10 +394,13 @@ export declare class Launcher {
|
|
|
394
394
|
private interpreterFile;
|
|
395
395
|
private interpreted;
|
|
396
396
|
private plan;
|
|
397
|
+
private stampDirect;
|
|
398
|
+
private stampChain;
|
|
397
399
|
private mayExec;
|
|
398
400
|
private checkedPlan;
|
|
399
401
|
private planOrSearch;
|
|
400
402
|
private planOne;
|
|
403
|
+
private checkFailedPlan;
|
|
401
404
|
private enterable;
|
|
402
405
|
private execGuard;
|
|
403
406
|
private execFile;
|
|
@@ -17,14 +17,19 @@ export declare class SudoReads {
|
|
|
17
17
|
private readonly reads;
|
|
18
18
|
private readonly names;
|
|
19
19
|
private readonly documents;
|
|
20
|
-
private readonly
|
|
21
|
-
private readonly
|
|
20
|
+
private readonly texts;
|
|
21
|
+
private readonly relevant;
|
|
22
|
+
private readonly verified;
|
|
22
23
|
readonly interpreters: string[][];
|
|
23
24
|
chainSha256?: string;
|
|
24
25
|
readonly operandsFromEnd: Map<number, string>;
|
|
25
26
|
readonly snapshots: ReadonlyMap<string, Uint8Array>;
|
|
26
27
|
constructor(access: FileAccess, snapshots?: ReadonlyMap<string, Uint8Array>);
|
|
27
28
|
private bytes;
|
|
29
|
+
resetSelection(): void;
|
|
30
|
+
include(paths: readonly string[] | undefined): void;
|
|
31
|
+
digest(path: string): Promise<string | undefined>;
|
|
32
|
+
text(path: string): Promise<string | undefined>;
|
|
28
33
|
private raw;
|
|
29
34
|
manifest(path: string, verify: (real: string, hash: string) => Promise<void>, raw: (real: string) => Promise<Uint8Array>): Promise<string>;
|
|
30
35
|
private readManifest;
|
package/dist/types/sudo.d.ts
CHANGED
package/dist/types/sudoers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const SUDOERS = "/etc/sudoers";
|
|
2
2
|
export declare const SUDOERS_D = "/etc/sudoers.d";
|
|
3
3
|
export declare const NAME: RegExp;
|
|
4
|
-
export declare const KERNEL_SYNTAX = "[NOPASSWD] <user|%group|ALL> [(<target>)] [Cwd <dir>] [Stdin none] [RouteSha256 <sha256>] [Sha256
|
|
4
|
+
export declare const KERNEL_SYNTAX = "[NOPASSWD] <user|%group|ALL> [(<target>)] [Cwd <dir>] [Stdin none] [ChainSha256 <sha256>] [RouteSha256 <sha256>] [Sha256 none|<file>=<sha256>\u2026] Cmnd <command\u2026|*>";
|
|
5
5
|
export declare const SUDOERS_SYNTAX = "<user|%group|ALL> ALL=[(<target>[,<target>\u2026])] [NOPASSWD:] <command\u2026|ALL>";
|
|
6
6
|
export type Pattern = (string | null)[];
|
|
7
7
|
export interface Command {
|
|
@@ -16,6 +16,7 @@ export interface Rule {
|
|
|
16
16
|
stdin?: 'none';
|
|
17
17
|
sha256?: Record<string, string>;
|
|
18
18
|
routeSha256?: string;
|
|
19
|
+
chainSha256?: string;
|
|
19
20
|
cmnd: Command | '*';
|
|
20
21
|
}
|
|
21
22
|
export type TimestampType = 'tty' | 'ppid' | 'global';
|
|
@@ -53,7 +54,7 @@ export declare function splitWords(text: string): string[] | undefined;
|
|
|
53
54
|
export declare function quoteWord(word: string): string;
|
|
54
55
|
export declare function commandMatches(cmnd: Command | '*', argv: readonly string[]): boolean;
|
|
55
56
|
export declare function commandText(cmnd: Command): string;
|
|
56
|
-
export declare function sha256Text(files: Readonly<Record<string, string>>, routeSha256?: string): string;
|
|
57
|
+
export declare function sha256Text(files: Readonly<Record<string, string>>, routeSha256?: string, chainSha256?: string): string;
|
|
57
58
|
export declare function keptEnv(env: Readonly<Record<string, string>>, keep: readonly string[]): Record<string, string>;
|
|
58
59
|
export declare function resolveDefaults(entries: readonly DefaultsEntry[], applies: (who: string) => boolean): Resolved;
|
|
59
60
|
export declare function defaultsText(entries: readonly DefaultsEntry[]): string[];
|
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.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",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@ai-ecoverse/wasi-rustc": "1.98.1-10",
|
|
84
84
|
"@ai-ecoverse/wasi-zig": "0.16.0-20",
|
|
85
85
|
"@ai-ecoverse/wasix-bind": "9.20.29-3",
|
|
86
|
-
"@ai-ecoverse/wasix-python": "3.15.2-
|
|
86
|
+
"@ai-ecoverse/wasix-python": "3.15.2-2",
|
|
87
87
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
88
88
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-15",
|
|
89
89
|
"@ai-ecoverse/wasm-curl": "8.22.0-10",
|