@ai-ecoverse/slicc-kernel 1.170.2 → 1.170.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.
@@ -14,6 +14,7 @@ export interface Command {
14
14
  unset?: string[];
15
15
  script?: string;
16
16
  bin?: true;
17
+ dependency?: true;
17
18
  imports?: string;
18
19
  refused?: string;
19
20
  shows?: string;
@@ -48,7 +49,7 @@ export declare function variantFor(variants: readonly CommandVariant[] | undefin
48
49
  export declare function commandsOf(pkg: string, manifest: Manifest): Command[];
49
50
  export declare function pnpmGlobalRoots(fs: KernelFs, home: string): Promise<string[]>;
50
51
  export declare function engineRefusal(manifest: Manifest, kernel: string): string | undefined;
51
- export declare function scanCommands(fs: KernelFs, modules: string | (string | string[])[], binsFrom?: number, kernel?: string, refused?: Command[]): Promise<Map<string, Command>>;
52
+ export declare function scanCommands(fs: KernelFs, modules: string | (string | string[])[], binsFrom?: number, kernel?: string, refused?: Command[], global?: ReadonlySet<string>): Promise<Map<string, Command>>;
52
53
  export declare function scanFilesystems(fs: KernelFs, modules: string | string[]): Promise<Map<string, string>>;
53
54
  export declare function scanBinfmts(fs: KernelFs, modules: string | string[], warn?: (message: string) => void, owners?: Map<string, string>): Promise<Map<string, string>>;
54
55
  export declare function binfmtSuffix(binfmts: ReadonlyMap<string, string>, path: string): string | undefined;
@@ -59,6 +59,7 @@ export declare class HttpHandles {
59
59
  private end;
60
60
  private start;
61
61
  private respond;
62
+ private failure;
62
63
  private headOf;
63
64
  private head;
64
65
  private read;
@@ -0,0 +1,8 @@
1
+ import type { RealmTransport } from './transport.js';
2
+ export declare const PLACEHOLDER_REFUSED = "refused: this request has a sealed placeholder in its URL, a header or a Basic credential, and nothing fills it, so it was not sent";
3
+ export declare class PlaceholderRefused extends Error {
4
+ readonly status = 403;
5
+ readonly code = "EACCES";
6
+ constructor();
7
+ }
8
+ export declare function placeholderFloor(inner: RealmTransport): RealmTransport;
@@ -278,6 +278,8 @@ export declare class Launcher {
278
278
  private readonly refusedOf;
279
279
  private refusals;
280
280
  private ownCommands;
281
+ private ownCatalog;
282
+ private globalRoots;
281
283
  private interpreters;
282
284
  private tiers;
283
285
  private roots;
@@ -47,7 +47,7 @@ export type SyncFsResult = {
47
47
  message: string;
48
48
  direct?: true;
49
49
  dev?: string;
50
- detail?: 'transport';
50
+ detail?: 'transport' | 'placeholder';
51
51
  };
52
52
  export declare const SYNC_FS_REQUEST_TIMEOUT_MS = 25000;
53
53
  export declare const SYNC_FS_READ_ONLY: ReadonlySet<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-kernel",
3
- "version": "1.170.2",
3
+ "version": "1.170.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",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@ai-ecoverse/py-numpy": "2.5.4-4",
73
- "@ai-ecoverse/slicc-cdp": "1.42.10",
73
+ "@ai-ecoverse/slicc-cdp": "1.43.1",
74
74
  "@ai-ecoverse/slicc-scrub": "1.1.0",
75
75
  "@ai-ecoverse/slicc-shared-web": "2.13.7",
76
76
  "@ai-ecoverse/wasi-cargo": "0.99.0-6",