@ai-ecoverse/slicc-kernel 1.196.37 → 1.196.38

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.
@@ -3847,7 +3847,7 @@ var init_version = __esm({
3847
3847
  "src/version.ts"() {
3848
3848
  "use strict";
3849
3849
  init_captured_globals();
3850
- KERNEL_VERSION = true ? "1.196.37" : "0.0.0-dev";
3850
+ KERNEL_VERSION = true ? "1.196.38" : "0.0.0-dev";
3851
3851
  OS_RELEASE = "6.0.0-slicc";
3852
3852
  }
3853
3853
  });
@@ -1,7 +1,12 @@
1
1
  import { type KernelFs } from './fs/types.js';
2
2
  export type Abi = 'emscripten' | 'wasi' | 'js';
3
+ export interface PackageDefault {
4
+ pkg: string;
5
+ value: string;
6
+ }
3
7
  export interface Command {
4
8
  manifests?: readonly string[];
9
+ missingEnv?: Record<string, PackageDefault>;
5
10
  envPaths?: readonly string[];
6
11
  name: string;
7
12
  abi: Abi;
@@ -1,7 +1,7 @@
1
1
  import { CdpHosts } from './cdp/hosts.js';
2
2
  import { type LeaseCliImage } from './cdp/lease-cli.js';
3
3
  import type { CdpHook } from './cdp/types.js';
4
- import { type Abi, type Command, type CommandVariant } from './commands.js';
4
+ import { type Abi, type Command, type CommandVariant, type PackageDefault } from './commands.js';
5
5
  import { type CronClock } from './cron/clock.js';
6
6
  import { CronService } from './cron/service.js';
7
7
  import { FacadeHosts } from './facade/hosts.js';
@@ -182,7 +182,7 @@ interface Target {
182
182
  argv0: string;
183
183
  fixed?: true;
184
184
  prefix?: string[];
185
- env?: Record<string, string>;
185
+ env?: Record<string, string | PackageDefault>;
186
186
  unset?: string[];
187
187
  imports?: string;
188
188
  preopenRoot?: boolean;
@@ -215,7 +215,7 @@ export type CwdMissing = 'create' | 'error';
215
215
  export declare function cwdMissingOption(value: unknown): CwdMissing;
216
216
  export declare function withTag(tags: readonly string[] | undefined, tag: string | undefined): readonly string[] | undefined;
217
217
  export declare function cronPath(path: string): boolean;
218
- export declare function expandDefaults(defaults: Readonly<Record<string, string>> | undefined, env: Readonly<Record<string, string>>): Record<string, string>;
218
+ export declare function expandDefaults(defaults: Readonly<Record<string, string | PackageDefault>> | undefined, env: Readonly<Record<string, string>>): Record<string, string>;
219
219
  export declare class Launcher {
220
220
  private readonly emscripten;
221
221
  private readonly admit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.196.37",
3
+ "version": "1.196.38",
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",