@ai-ecoverse/slicc-kernel 1.192.0 → 1.193.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 +17 -7
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +136 -14
- package/dist/cloudflare.js.map +3 -3
- package/dist/kernel-worker.js +136 -14
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.cjs +3 -2
- package/dist/node-process-worker.cjs.map +2 -2
- package/dist/node-process-worker.js +3 -2
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +136 -14
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +3 -2
- package/dist/process-worker.js.map +2 -2
- package/dist/types/sudo.d.ts +1 -0
- package/dist/types/sudoers.d.ts +7 -0
- package/package.json +2 -2
package/dist/types/sudo.d.ts
CHANGED
package/dist/types/sudoers.d.ts
CHANGED
|
@@ -22,14 +22,20 @@ export interface Settings {
|
|
|
22
22
|
timestampTimeout?: number;
|
|
23
23
|
timestampType?: TimestampType;
|
|
24
24
|
}
|
|
25
|
+
export interface KeepOp {
|
|
26
|
+
op: '=' | '+=' | '-=' | '!';
|
|
27
|
+
names: string[];
|
|
28
|
+
}
|
|
25
29
|
export interface DefaultsEntry {
|
|
26
30
|
who: string[] | null;
|
|
27
31
|
settings: Settings;
|
|
32
|
+
keep?: KeepOp[];
|
|
28
33
|
params: string[];
|
|
29
34
|
}
|
|
30
35
|
export interface Resolved {
|
|
31
36
|
timestampTimeout: number;
|
|
32
37
|
timestampType: TimestampType;
|
|
38
|
+
envKeep: string[];
|
|
33
39
|
matching: DefaultsEntry[];
|
|
34
40
|
}
|
|
35
41
|
export declare const TIMESTAMP_TIMEOUT = 5;
|
|
@@ -47,6 +53,7 @@ export declare function quoteWord(word: string): string;
|
|
|
47
53
|
export declare function commandMatches(cmnd: Command | '*', argv: readonly string[]): boolean;
|
|
48
54
|
export declare function commandText(cmnd: Command): string;
|
|
49
55
|
export declare function sha256Text(files: Readonly<Record<string, string>>): string;
|
|
56
|
+
export declare function keptEnv(env: Readonly<Record<string, string>>, keep: readonly string[]): Record<string, string>;
|
|
50
57
|
export declare function resolveDefaults(entries: readonly DefaultsEntry[], applies: (who: string) => boolean): Resolved;
|
|
51
58
|
export declare function defaultsText(entries: readonly DefaultsEntry[]): string[];
|
|
52
59
|
export declare function parseLine(line: string, file?: string): PolicyLine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.193.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",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@ai-ecoverse/py-numpy": "2.5.4-5",
|
|
77
|
-
"@ai-ecoverse/slicc-cdp": "2.1.
|
|
77
|
+
"@ai-ecoverse/slicc-cdp": "2.1.21",
|
|
78
78
|
"@ai-ecoverse/slicc-scrub": "1.1.1",
|
|
79
79
|
"@ai-ecoverse/slicc-shared-web": "2.17.0",
|
|
80
80
|
"@ai-ecoverse/wasi-cargo": "0.99.0-6",
|