@ai-ecoverse/slicc-kernel 1.192.0 → 1.193.1

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.
@@ -61,6 +61,7 @@ export interface SudoCall {
61
61
  args: string[];
62
62
  cwd: string;
63
63
  term?: string;
64
+ env?: Record<string, string>;
64
65
  }
65
66
  export interface SudoGrant {
66
67
  file: string;
@@ -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.192.0",
3
+ "version": "1.193.1",
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,9 +74,9 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@ai-ecoverse/py-numpy": "2.5.4-5",
77
- "@ai-ecoverse/slicc-cdp": "2.1.20",
77
+ "@ai-ecoverse/slicc-cdp": "2.1.30",
78
78
  "@ai-ecoverse/slicc-scrub": "1.1.1",
79
- "@ai-ecoverse/slicc-shared-web": "2.17.0",
79
+ "@ai-ecoverse/slicc-shared-web": "2.18.0",
80
80
  "@ai-ecoverse/wasi-cargo": "0.99.0-6",
81
81
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
82
82
  "@ai-ecoverse/wasi-ripgrep": "15.2.0-5",
@@ -107,6 +107,6 @@
107
107
  "semantic-release": "25.0.9",
108
108
  "typescript": "7.0.2",
109
109
  "wabt": "1.0.39",
110
- "wrangler": "4.164.0"
110
+ "wrangler": "4.165.0"
111
111
  }
112
112
  }