@powerhousedao/host-core 6.3.0-dev.9 → 6.4.0-next.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.
Files changed (43) hide show
  1. package/dist/{compound-CBqPgk38.d.mts → compound-D2dh2VUh.d.mts} +332 -22
  2. package/dist/compound-D2dh2VUh.d.mts.map +1 -0
  3. package/dist/{compound-DKi56SSx.mjs → compound-n-bO0qKh.mjs} +1616 -487
  4. package/dist/compound-n-bO0qKh.mjs.map +1 -0
  5. package/dist/{env-substitution-C_fVirPh.d.mts → env-substitution-Ct39KFvA.d.mts} +7 -3
  6. package/dist/env-substitution-Ct39KFvA.d.mts.map +1 -0
  7. package/dist/{env-substitution-BXGohOGN.mjs → env-substitution-FJ5Nua4M.mjs} +29 -10
  8. package/dist/env-substitution-FJ5Nua4M.mjs.map +1 -0
  9. package/dist/{host-schemas-BM7F21lf.d.mts → host-schemas-B6_-P11_.d.mts} +52 -19
  10. package/dist/host-schemas-B6_-P11_.d.mts.map +1 -0
  11. package/dist/index.d.mts +194 -129
  12. package/dist/index.d.mts.map +1 -1
  13. package/dist/index.mjs +51 -355
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/kill-tree.d.mts +8 -0
  16. package/dist/kill-tree.d.mts.map +1 -0
  17. package/dist/kill-tree.mjs +73 -0
  18. package/dist/kill-tree.mjs.map +1 -0
  19. package/dist/plugins-DP3YlIWx.mjs +309 -0
  20. package/dist/plugins-DP3YlIWx.mjs.map +1 -0
  21. package/dist/{plugins-Uk84BRay.d.mts → plugins-Dsmfhbn7.d.mts} +53 -3
  22. package/dist/plugins-Dsmfhbn7.d.mts.map +1 -0
  23. package/dist/plugins.d.mts +2 -2
  24. package/dist/plugins.mjs +2 -174
  25. package/dist/projection.d.mts +12 -18
  26. package/dist/projection.d.mts.map +1 -1
  27. package/dist/projection.mjs +17 -10
  28. package/dist/projection.mjs.map +1 -1
  29. package/dist/runners/compound.d.mts +9 -3
  30. package/dist/runners/compound.d.mts.map +1 -1
  31. package/dist/runners/compound.mjs +1 -1
  32. package/dist/schema.d.mts +6 -4
  33. package/dist/schema.d.mts.map +1 -1
  34. package/dist/schema.mjs +5 -4
  35. package/dist/schema.mjs.map +1 -1
  36. package/package.json +9 -3
  37. package/dist/compound-CBqPgk38.d.mts.map +0 -1
  38. package/dist/compound-DKi56SSx.mjs.map +0 -1
  39. package/dist/env-substitution-BXGohOGN.mjs.map +0 -1
  40. package/dist/env-substitution-C_fVirPh.d.mts.map +0 -1
  41. package/dist/host-schemas-BM7F21lf.d.mts.map +0 -1
  42. package/dist/plugins-Uk84BRay.d.mts.map +0 -1
  43. package/dist/plugins.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,13 +1,11 @@
1
- import { $ as HOST_NAME_PATTERN, $t as Token, A as kindShapeIssues, At as profileSchema, B as checkTokenSites, Bt as ArrayMapToken, C as RunnerVerb, Ct as emitHostJsonSchema, D as getVerb, Dt as makeHostSchemas, E as ValidateHostOptions, Et as hostNameSchema, F as validateHost, Ft as reactorSchema, G as schemaAtPath, Gt as MapToken, H as outputRefsOf, Ht as EnvToken, I as DeclaredIssue, It as refineConnectReactor, J as CompoundHost, Jt as RecordMapToken, K as CONNECT_PRIMARY_MESSAGE, Kt as OutputPath, L as OutputRef, Lt as refineStartOrder, M as listVerbs, Mt as reactorBackendSchema, N as resolveRunnerModule, Nt as reactorHostSchema, O as hostSchemaIssues, Ot as originOrUrlSchema, P as validateDeclaredHost, Pt as reactorProtocolSchema, Q as HOST_NAME_MESSAGE, Qt as Template, R as OutputsSchemaLookup, Rt as runnerBaseSchema, S as RunnerModule, St as defineHostSchemas, T as SchemaIssue, Tt as genericCompoundHostSchema, U as outputSitesOf, Ut as ItemToken, V as envSitesOf, Vt as ConcatToken, W as refKey, Wt as KeyToken, X as CompoundWiring, Xt as TOKEN_ESCAPE_KEY, Y as CompoundHostInput, Yt as RefFn, Z as HOST_NAME_MAX_LENGTH, Zt as TOKEN_KEYS, _ as HostSchemaLike, _n as tokenable, _t as compoundHostSchema, a as RunnerHandleData, an as envTokenSchema, at as ReactorBackendKind, b as RunnerError, bt as declaredGenericCompoundHostSchema, c as toStartedHandle, cn as forbidRef, ct as ReactorHostInput, d as BootCheckContext, dn as keyTokenSchema, dt as ReactorRemoteConfig, en as TokenFor, et as HostDefinition, f as BootIssue, fn as mapTokenSchema, ft as ReactorStorageConfig, g as HostSchemaIssues, gn as tokenSchema, gt as childrenSchema, h as HostSchemaIssue, hn as tokenKeyOf, ht as childWrapperSchema, i as RunnerHandle, in as concatTokenSchema, it as ReactorBackend, j as knownVerbIssues, jt as reactorBackendKindSchema, k as isSchemaLike, kt as placementKeyIssues, l as MemberDraft, ln as isToken, lt as ReactorPackageConfig, m as DeclaredHostOptions, mn as ref, mt as RunnerKind, n as RunCompoundResult, nn as TokenMode, nt as PlacementKeyIssue, o as StartedHandle, on as envTokenable, ot as ReactorConfig, p as CONNECT_RUNNER, pn as outputTokenSchema, pt as RunnerBase, q as ChildWrapper, qt as OutputToken, r as runCompound, rn as TokenableSchema, rt as Profile, s as runnerHandleSchema, sn as findToken, st as ReactorHost, t as RunCompoundOptions, tn as TokenKey, tt as HostSchemas, u as applyChildWrapper, un as itemTokenSchema, ut as ReactorProtocol, v as ONE_SHOT_VERBS, vt as compoundWiringSchema, w as STORE_VERBS, wt as emittedHostSchemas, x as RunnerIssue, xt as declaredHostSchemas, y as RunnerContext, yt as connectReactorIssues, z as checkOutputPaths, zt as runnerKindSchema } from "./compound-CBqPgk38.mjs";
1
+ import { $ as validateHost, $t as profileSchema, A as ForegroundContext, An as findToken, At as ReactorHostInput, B as RunnerVerb, Bn as tokenable, Bt as compoundWiringSchema, C as planCompound, Cn as TokenFor, Ct as PACKAGE_NAME_PATTERN, D as BootIssue, Dn as concatTokenSchema, Dt as ReactorBackendKind, E as BootCheckContext, En as TokenableSchema, Et as ReactorBackend, F as ONE_SHOT_VERBS, Fn as mapTokenSchema, Ft as RunnerBase, G as hostSchemaIssues, Gn as findHostPackage, Gt as emitHostJsonSchema, H as SchemaIssue, Hn as HostLocation, Ht as declaredGenericCompoundHostSchema, I as RunnerContext, In as outputTokenSchema, It as RunnerKind, J as knownVerbIssues, Jn as locateHost, Jt as hostNameSchema, K as isSchemaLike, Kn as formatHostRef, Kt as emittedHostSchemas, L as RunnerError, Ln as ref, Lt as childWrapperSchema, M as HostSchemaIssues, Mn as isToken, Mt as ReactorProtocol, N as HostSchemaLike, Nn as itemTokenSchema, Nt as ReactorRemoteConfig, O as CONNECT_RUNNER, On as envTokenSchema, Ot as ReactorConfig, P as MemberStatus, Pn as keyTokenSchema, Pt as ReactorStorageConfig, Q as validateDeclaredHost, Qt as placementKeyIssues, R as RunnerIssue, Rn as tokenKeyOf, Rt as childrenSchema, S as memberForRef, Sn as Token, St as MemberProcess, T as applyChildWrapper, Tn as TokenMode, Tt as Profile, U as ValidateHostOptions, Un as HostPackage, Ut as declaredHostSchemas, V as STORE_VERBS, Vn as HostLoadError, Vt as connectReactorIssues, W as getVerb, Wn as HostRef, Wt as defineHostSchemas, X as packageBuildRefusal, Xn as resolvePackageRoot, Xt as memberProcessSchema, Y as listVerbs, Yn as parseHostRef, Yt as makeHostSchemas, Z as resolveRunnerModule, Zt as originOrUrlSchema, _ as toStartedHandle, _n as RecordMapToken, _t as HOST_NAME_PATTERN, a as RunCompoundResult, an as refineConnectReactor, at as envSitesOf, b as PlanError, bn as TOKEN_KEYS, bt as HostDefinition, c as memberCycle, cn as runnerKindSchema, ct as refKey, d as runCompound, dn as EnvToken, dt as ChildWrapper, en as reactorBackendKindSchema, et as DeclaredIssue, f as stopStreamOf, fn as ItemToken, ft as CompoundHost, g as runnerHandleSchema, gn as OutputToken, gt as HOST_NAME_MESSAGE, h as StartedHandle, hn as OutputPath, ht as HOST_NAME_MAX_LENGTH, i as RunCompoundOptions, in as reactorSchema, it as checkTokenSites, j as HostSchemaIssue, jn as forbidRef, jt as ReactorPackageConfig, k as DeclaredHostOptions, kn as envTokenable, kt as ReactorHost, l as memberProcessOf, ln as ArrayMapToken, lt as schemaAtPath, m as RunnerHandleData, mn as MapToken, mt as CompoundWiring, n as ForegroundPlan, nn as reactorHostSchema, nt as OutputsSchemaLookup, o as STOP_STREAM_LIMIT_MS, on as refineStartOrder, ot as outputRefsOf, p as RunnerHandle, pn as KeyToken, pt as CompoundHostInput, q as kindShapeIssues, qn as hostFileLabel, qt as genericCompoundHostSchema, r as HoldStopOptions, rn as reactorProtocolSchema, rt as checkOutputPaths, s as holdStopRequests, sn as runnerBaseSchema, st as outputSitesOf, t as ForegroundCandidate, tn as reactorBackendSchema, tt as OutputRef, u as planForeground, un as ConcatToken, ut as CONNECT_PRIMARY_MESSAGE, v as CompoundPlan, vn as RefFn, vt as HOST_REF_MESSAGE, w as MemberDraft, wn as TokenKey, wt as PlacementKeyIssue, x as PlanMember, xn as Template, xt as HostSchemas, y as PlanEdge, yn as TOKEN_ESCAPE_KEY, yt as HOST_REF_PATTERN, z as RunnerModule, zn as tokenSchema, zt as compoundHostSchema } from "./compound-D2dh2VUh.mjs";
2
+ import { killTree } from "./kill-tree.mjs";
2
3
  import { z } from "zod";
3
4
  import { SwitchboardDrive, driveAddressMessage, switchboardOfDrive } from "@powerhousedao/shared/host-tokens";
4
5
  import { ORIGIN_PLACEHOLDER, SWITCHBOARD_PROXY_PATHS, isHtmlNavigation, isOriginPlaceholderUrl, isSwitchboardProxyPath, resolveOriginPlaceholders, toOriginPlaceholder, withOriginPlaceholders } from "@powerhousedao/shared/connect/origin-placeholder";
5
6
  import net from "node:net";
6
7
  import { PHConnectCollection, PHConnectDefaultDrive, PHConnectRuntimeConfig, PHConnectRuntimeDefaultDrive } from "@powerhousedao/shared/clis";
7
8
  //#region src/host-loader.d.ts
8
- export declare class HostLoadError extends Error {
9
- constructor(message: string, hint?: string);
10
- }
11
9
  type HostsFolderStatus = {
12
10
  kind: "absent";
13
11
  } | {
@@ -18,10 +16,18 @@ type HostsFolderStatus = {
18
16
  dir: string;
19
17
  hosts: string[];
20
18
  };
21
- /** A `hosts/` folder with no `<name>/host.js` inside is "empty" — the guard
22
- * state: callers warn loudly and fall back to legacy rather than activating
23
- * the new architecture off a stray `mkdir hosts`. */
19
+ /** A `hosts/` folder with no `<name>/host.js` inside is "empty": it defines
20
+ * no host, so nothing runs from it, as from an absent one
21
+ * ({@link withoutHostsMessage}). */
24
22
  export declare function probeHostsFolder(projectRoot: string): HostsFolderStatus;
23
+ /**
24
+ * Why `subject` cannot run in a project whose hosts/ folder is absent or
25
+ * empty, and what adds the host files. One wording, for `ph run <host>` and
26
+ * for the `ph vetra`, `ph connect` and `ph switchboard` sugar.
27
+ */
28
+ export declare function withoutHostsMessage(probe: Exclude<HostsFolderStatus, {
29
+ kind: "present";
30
+ }>, subject: string): string;
25
31
  /** The generated per-host token tree (`ph generate hosts`). */
26
32
  export declare const OUTPUTS_FILE = "outputs.js";
27
33
  /** Blank out `//` and block comments, keeping string and template literals
@@ -57,12 +63,35 @@ export declare function lintHostImportGraph(hostsDir: string, hostName: string):
57
63
  * trip, or undefined when the object is fully static. */
58
64
  export declare function findNonStaticValue(value: unknown, trail?: string): string | undefined;
59
65
  interface LoadedHost {
66
+ /** Its folder under `hosts/`. */
60
67
  name: string;
61
68
  dir: string;
62
69
  file: string;
63
70
  host: HostDefinition;
64
- }
65
- export declare function loadHost(projectRoot: string, hostName: string): Promise<LoadedHost>;
71
+ /** How it is addressed from anywhere in the project: its folder for the
72
+ * project's own host, `<package>/<host>` for a package's. */
73
+ ref?: string;
74
+ /** The package that supplies it; absent for the project's own. Its
75
+ * runner and plugin specifiers resolve from `package.root`. */
76
+ package?: HostPackage;
77
+ }
78
+ interface LoadHostOptions {
79
+ /** The package whose compound names this host: a bare name looks in its
80
+ * `hosts/` first, then in the project's. */
81
+ scope?: HostPackage;
82
+ }
83
+ /** Where a loaded host's module specifiers resolve from: its package's
84
+ * folder, else the project root. */
85
+ export declare function moduleRootOf(projectRoot: string, loaded: Pick<LoadedHost, "package">): string;
86
+ /** `hostName` is a ref: the project's folder name, or `<package>/<host>`. */
87
+ export declare function loadHost(projectRoot: string, hostName: string, options?: LoadHostOptions): Promise<LoadedHost>;
88
+ /**
89
+ * `loadHost`, evaluated again: the host file and what it imports are read as
90
+ * they are on disk now. A process keeps the first evaluation of a module, so
91
+ * `loadHost` returns the host as it was when the process first loaded it; a
92
+ * dev server that follows powerhouse.config.json asks for this one.
93
+ */
94
+ export declare function loadHostFresh(projectRoot: string, hostName: string, options?: LoadHostOptions): Promise<LoadedHost>;
66
95
  /** What `ph generate hosts` derives a host's outputs.js from, plus the hash
67
96
  * of exactly those inputs (embedded in the file; the loader recomputes it). */
68
97
  interface HostOutputsDescription {
@@ -124,6 +153,9 @@ interface RunnerArgsSchema {
124
153
  /** Retired switches and what to do instead: accepted, one warning, no
125
154
  * effect. */
126
155
  retired?: Readonly<Record<string, string>>;
156
+ /** Every argument goes to the runner as typed, unchecked: a runner whose
157
+ * host parses its own (the Cli runner hands them to the Cli). */
158
+ passthrough?: boolean;
127
159
  }
128
160
  export declare function isRunnerArgsSchema(value: unknown): value is RunnerArgsSchema;
129
161
  interface SplitRunArgv {
@@ -154,7 +186,8 @@ interface RunnerArgvTarget {
154
186
  * The arguments a standalone runner receives as `ctx.argv`: `argv` checked
155
187
  * against the runner's schema, retired switches warned about and dropped.
156
188
  * Nothing is dropped silently: an argument the runner does not accept, or any
157
- * argument for a runner without a schema, fails.
189
+ * argument for a runner without a schema, fails. A `passthrough` runner gets
190
+ * them all, in order.
158
191
  */
159
192
  export declare function checkRunnerArgv(argv: readonly string[], target: RunnerArgvTarget): string[];
160
193
  interface CompoundArgvMember {
@@ -171,8 +204,13 @@ interface CompoundArgvMember {
171
204
  * (`--switchboard-port 4001` reaches that member as `--port 4001`). An
172
205
  * argument no member accepts fails, as does one that would set the same
173
206
  * option on several members.
207
+ *
208
+ * With a `foreground` member (the one that owns the terminal) the members
209
+ * take only their member-named options, at the front; the first other
210
+ * argument, or a literal `--`, starts the foreground member's own, checked
211
+ * against its runner's schema (a passthrough runner takes them as typed).
174
212
  */
175
- export declare function splitCompoundArgv(argv: readonly string[], host: string, members: readonly CompoundArgvMember[]): Map<string, string[]>;
213
+ export declare function splitCompoundArgv(argv: readonly string[], host: string, members: readonly CompoundArgvMember[], foreground?: string): Map<string, string[]>;
176
214
  //#endregion
177
215
  //#region src/run-record-schema.d.ts
178
216
  export declare const runRecordMemberSchema: z.ZodObject<{
@@ -188,6 +226,7 @@ export declare const runRecordMemberSchema: z.ZodObject<{
188
226
  export declare const runRecordSchema: z.ZodObject<{
189
227
  version: z.ZodLiteral<2>;
190
228
  host: z.ZodString;
229
+ package: z.ZodOptional<z.ZodString>;
191
230
  projectName: z.ZodString;
192
231
  kind: z.ZodEnum<{
193
232
  compound: "compound";
@@ -216,6 +255,10 @@ type RunRecordMember = z.infer<typeof runRecordMemberSchema>;
216
255
  /**
217
256
  * Record I/O for `.ph/run/<host>.json`, keyed by host name so N hosts
218
257
  * (vetra, desktop, …) coexist. The record shape is run-record-schema.ts (v2).
258
+ * A host an installed package supplies is keyed `<package>/<name>`
259
+ * ({@link runRecordKey}) and filed in a folder named after the package,
260
+ * `.ph/run/@scope/pkg/<name>.json`, so it never meets a project host of the
261
+ * same name. The functions below take either key.
219
262
  */
220
263
  type RunProbe = {
221
264
  status: "none";
@@ -230,8 +273,15 @@ type RunProbe = {
230
273
  record: RunRecord;
231
274
  };
232
275
  type Env$1 = Readonly<Record<string, string | undefined>>;
276
+ /** The key a host's record is filed under: its `name`, behind the package
277
+ * that supplies it when it is not the project's own (`@acme/tools/studio`),
278
+ * as `ph run` addresses the host. */
279
+ export declare function runRecordKey(name: string, hostPackage?: string): string;
280
+ /** The key of a record as read: where it is filed. */
281
+ export declare function recordKeyOf(record: Pick<RunRecord, "host" | "package">): string;
233
282
  export declare function readRunRecord(projectDir: string, hostName: string, env?: Env$1): RunRecord | undefined;
234
- /** Every valid v2 record under `.ph/run/` (invalid and v1 files skipped). */
283
+ /** Every valid v2 record under `.ph/run/`, package hosts' included (invalid
284
+ * and v1 files skipped). */
235
285
  export declare function listRunRecords(projectDir: string, env?: Env$1): RunRecord[];
236
286
  /** The project identity the live/foreign probe compares: package.json
237
287
  * `name`, else the folder name. */
@@ -252,6 +302,8 @@ export declare function isPidAlive(pid: number): boolean;
252
302
  export declare function probeRun(projectDir: string, hostName: string, projectName: string, env?: Env$1): RunProbe;
253
303
  //#endregion
254
304
  //#region src/stop-channel.d.ts
305
+ /** Set by a supervisor that holds this process's stdin. */
306
+ export declare const STOP_ON_STDIN_ENV = "PH_STOP_ON_STDIN";
255
307
  /**
256
308
  * Windows has no SIGTERM: `process.kill(pid, "SIGTERM")` ends the process at
257
309
  * once, so no handler runs and a stack's stores are left as a crash leaves
@@ -307,16 +359,59 @@ export declare const STOP_RUN_TIMEOUT_MS = 60000;
307
359
  * is gone. It never kills: a host that does not answer keeps running. */
308
360
  export declare function stopRun(projectDir: string, hostName: string, options?: StopRunOptions): Promise<StopRunResult>;
309
361
  //#endregion
362
+ //#region src/compound-member.d.ts
363
+ /**
364
+ * How a compound hands an own-process member its host. The member's
365
+ * `host.js` alone is not the member: the compound's wrapper (reactor, config
366
+ * and runner overrides) and its resolved tokens are. So the compound
367
+ * resolves the member as it would in its own process and the child's
368
+ * `ph run <folder>` runs that host instead of reading the file.
369
+ */
370
+ /** Carries a {@link CompoundMemberHost} as JSON to the child's `ph run`. */
371
+ export declare const COMPOUND_MEMBER_ENV = "PH_COMPOUND_MEMBER";
372
+ interface CompoundMemberHost {
373
+ /** The compound host's name. */
374
+ compound: string;
375
+ /** The member's key in the compound's `children`. */
376
+ member: string;
377
+ /** The member's host folder: the child's `ph run <folder>`. */
378
+ folder: string;
379
+ /** The member's host, its wrapper applied and its tokens resolved. */
380
+ host: Record<string, unknown>;
381
+ }
382
+ /**
383
+ * The member host a compound handed this process for `folder`, taken out of
384
+ * `env` so nothing this process starts inherits it. Undefined when there is
385
+ * none; throws when it is malformed or names another folder.
386
+ */
387
+ export declare function takeCompoundMember(env: Record<string, string | undefined>, folder: string): CompoundMemberHost | undefined;
388
+ //#endregion
310
389
  //#region src/spawn-host.d.ts
311
390
  interface SpawnHostOptions {
312
391
  projectRoot: string;
313
- /** Folder name under hosts/. */
392
+ /** Folder name under hosts/, or `<package>/<host>` for a host an
393
+ * installed package supplies: what the child's `ph run` takes. */
314
394
  host: string;
315
395
  /** The child's PH_USER_DATA_DIR (created if missing). */
316
396
  dataDir: string;
317
397
  verb?: string;
318
- /** Merged over the clean base env; may not set PH_USER_DATA_DIR. */
398
+ /** What follows `ph run <host> [verb]`: the runner's arguments. */
399
+ argv?: readonly string[];
400
+ /** Merged over the base env; may not set PH_USER_DATA_DIR. */
319
401
  env?: Record<string, string>;
402
+ /** The env the child starts from instead of the clean one, as it is: a
403
+ * compound hands its members its own, so a member sees what it would in
404
+ * the compound's process. */
405
+ baseEnv?: Readonly<Record<string, string | undefined>>;
406
+ /** The host the child runs instead of reading `hosts/<host>/host.js`: a
407
+ * compound's member, its wrapper applied and its tokens resolved. */
408
+ definition?: Omit<CompoundMemberHost, "folder">;
409
+ /** Ask the child to stop through its stdin (it gets a pipe and
410
+ * PH_STOP_ON_STDIN=1): a request on every platform, which this process
411
+ * ending makes too; after stopTimeoutMs its whole process tree is killed.
412
+ * Without it a stop is SIGTERM, on Windows the kill itself, and SIGKILL of
413
+ * the child follows after stopTimeoutMs. */
414
+ stopOnStdin?: boolean;
320
415
  /** ph-cli entry; default: the project's `@powerhousedao/ph-cli/dist/cli.mjs`. */
321
416
  cli?: string;
322
417
  readyTimeoutMs?: number;
@@ -341,7 +436,8 @@ interface SpawnedHost {
341
436
  members: RunRecord["members"];
342
437
  /** Resolves (never rejects) when the child exits. */
343
438
  exited: Promise<HostExit>;
344
- /** SIGTERM, SIGKILL after stopTimeoutMs, clear a leftover record. */
439
+ /** SIGTERM (or the end of its stdin), SIGKILL after stopTimeoutMs, clear
440
+ * a leftover record. */
345
441
  stop(): Promise<HostExit>;
346
442
  }
347
443
  type SpawnHostPhase = "exited" | "timeout" | "aborted";
@@ -357,8 +453,8 @@ export declare class SpawnHostError extends Error {
357
453
  * `ph run <host> [verb]` as a child; ready when its run record appears.
358
454
  *
359
455
  * The child shares this process's group, so a terminal Ctrl-C reaches both.
360
- * It runs the project's own ph-cli: one older than PH_NO_DOTENV reads the
361
- * project's `.env` anyway.
456
+ * It runs the project's own ph-cli (else its ph-run): one older than
457
+ * PH_NO_DOTENV reads the project's `.env` anyway.
362
458
  */
363
459
  export declare function spawnHost(options: SpawnHostOptions): Promise<SpawnedHost>;
364
460
  //#endregion
@@ -378,12 +474,16 @@ interface HostIssue {
378
474
  //#region src/env-substitution.d.ts
379
475
  /**
380
476
  * Pure built-in `$env` substitution: the `"${userData}"` / `"${projectRoot}"`
381
- * string sugar, deep-applied to a JSON-shaped value. No node imports, so it
382
- * ships in `./schema`; the node default for userData is placeholders.ts.
477
+ * / `"${package}"` string sugar, deep-applied to a JSON-shaped value. No node
478
+ * imports, so it ships in `./schema`; the node default for userData is
479
+ * placeholders.ts.
383
480
  */
384
481
  interface BuiltinEnv {
385
482
  userData?: string;
386
483
  projectRoot?: string;
484
+ /** The root of the package that supplies the host (its real folder); the
485
+ * project root for a project host. */
486
+ package?: string;
387
487
  }
388
488
  /** The always-resolvable `$env` names (also the `"${name}"` sugar). */
389
489
  export declare const BUILTIN_ENV_NAMES: readonly (keyof BuiltinEnv)[];
@@ -400,8 +500,8 @@ export declare function substituteBuiltinEnv<T>(value: T, env: BuiltinEnv): T;
400
500
  * node adapters in ./node.ts); `$env` reads the environment map of the
401
501
  * resolving process; `$map` renders its `to` template once per element of
402
502
  * its `over` (arrays in order, records key-sorted; `$item`/`$key` read the
403
- * element being rendered); the `"${userData}"`/`"${projectRoot}"` string
404
- * sugar is substituted on the way. An `$output`/`$item` that reads a field
503
+ * element being rendered); the `"${userData}"`/`"${projectRoot}"`/
504
+ * `"${package}"` string sugar is substituted on the way. An `$output`/`$item` that reads a field
405
505
  * absent from the data but optional in the producer's schema (codegen's
406
506
  * `OutputToken<T | undefined>`) omits its enclosing property, like an unset
407
507
  * optional `$env`. Pure and browser-safe.
@@ -427,8 +527,8 @@ interface ResolveSources {
427
527
  outputs?: OutputSource;
428
528
  /** The resolving process's environment (`$env`). */
429
529
  env?: Readonly<Record<string, string | undefined>>;
430
- /** `userData`/`projectRoot`: always resolvable `$env` names and string
431
- * sugar. */
530
+ /** `userData`/`projectRoot`/`package`: always resolvable `$env` names and
531
+ * string sugar. */
432
532
  builtins?: BuiltinEnv;
433
533
  /** The host file named in errors (`hosts/connect/host.js`). */
434
534
  where?: string;
@@ -528,7 +628,8 @@ interface CheckHostResult {
528
628
  /** `$output` tokens left unresolved because no `outputs` were given. */
529
629
  deferred: CheckDeferred[];
530
630
  }
531
- /** The `ph run` pipeline up to the verb, collecting every issue; starts nothing. */
631
+ /** The `ph run` pipeline up to the verb, collecting every issue; starts
632
+ * nothing. `name` is a ref: a project host, or `<package>/<host>`. */
532
633
  export declare function checkHost(name: string, options: CheckHostOptions): Promise<CheckHostResult>;
533
634
  //#endregion
534
635
  //#region src/host-export-schema.d.ts
@@ -624,6 +725,56 @@ declare global {
624
725
  }
625
726
  }
626
727
  //#endregion
728
+ //#region src/connect-composition.d.ts
729
+ /**
730
+ * The config slices Connect's built-in plugins own, and the composition a
731
+ * Connect without a declared one boots from. Browser-safe: `ph run` (dev,
732
+ * serve) and Connect's own runtime work the default out with the same
733
+ * function.
734
+ */
735
+ /** One Connect config value a built-in Connect plugin owns. */
736
+ interface OwnedConfigSlice {
737
+ /** Dot path inside the connect config block, e.g. "drives.allowAddDrive". */
738
+ path: string;
739
+ /** What Connect serves at `path` while the owning plugin is absent from a
740
+ * declared composition (apps/connect plugin-host.ts zeroAbsentSlices). */
741
+ absent: unknown;
742
+ /** The owning plugin's entry config key that sets this value, when the
743
+ * plugin takes it as config; omitted where presence alone is the switch. */
744
+ entryKey?: string;
745
+ }
746
+ interface ConnectPluginSlices {
747
+ slices: OwnedConfigSlice[];
748
+ /** A slice whose unset or `absent` value leaves every slice of this plugin
749
+ * inert (OpenPanel tracking does nothing without a clientId), so nothing
750
+ * of it is reported as dead. */
751
+ inertUnless?: string;
752
+ }
753
+ /**
754
+ * The connect config slices each built-in Connect plugin owns, by specifier
755
+ * (typed-host-configs 1.6). Under a declared composition Connect zeroes a
756
+ * slice whose plugin is absent — presence is activation — so an authored
757
+ * value there is dead config. Connect's built-ins are browser modules with no
758
+ * Node-resolvable identity, so their ownership is declared here as data; a
759
+ * Connect test pins it to plugin-host's zeroing.
760
+ */
761
+ export declare const CONNECT_PLUGIN_OWNED_SLICES: Readonly<Record<string, ConnectPluginSlices>>;
762
+ /**
763
+ * The composition that serves `config` as it is written, for a host that
764
+ * declares no `runner.plugins`. `config` is the connect block Connect is
765
+ * served without a composition.
766
+ *
767
+ * A built-in configured through its entry is always in it, its entry holding
768
+ * the values `config` has at the slices it owns: composed in, the plugin
769
+ * serves those values again (an unset one falls back to the same default).
770
+ * A built-in whose presence is its switch is in it only where `config`
771
+ * already has that switch on, since composing it in would turn it on.
772
+ */
773
+ export declare function defaultConnectComposition(config: Record<string, unknown> | undefined): {
774
+ module: string;
775
+ config: Record<string, unknown>;
776
+ }[];
777
+ //#endregion
627
778
  //#region src/plugins.d.ts
628
779
  /**
629
780
  * R1 — the host plugin framework (bridge-runners-to-plugins plan,
@@ -772,33 +923,6 @@ interface PluginContributionsPlan {
772
923
  * against the plugin's schema, so a bad entry surfaces here too.
773
924
  */
774
925
  export declare function resolvePluginContributions(projectRoot: string, verb: string, entries: readonly PluginEntryData[], where: string): Promise<PluginContributionsPlan>;
775
- /** One Connect config value a built-in Connect plugin owns. */
776
- interface OwnedConfigSlice {
777
- /** Dot path inside the connect config block, e.g. "drives.allowAddDrive". */
778
- path: string;
779
- /** What Connect serves at `path` while the owning plugin is absent from a
780
- * declared composition (apps/connect plugin-host.ts zeroAbsentSlices). */
781
- absent: unknown;
782
- /** The owning plugin's entry config key that sets this value, when the
783
- * plugin takes it as config; omitted where presence alone is the switch. */
784
- entryKey?: string;
785
- }
786
- interface ConnectPluginSlices {
787
- slices: OwnedConfigSlice[];
788
- /** A slice whose unset or `absent` value leaves every slice of this plugin
789
- * inert (OpenPanel tracking does nothing without a clientId), so nothing
790
- * of it is reported as dead. */
791
- inertUnless?: string;
792
- }
793
- /**
794
- * The connect config slices each built-in Connect plugin owns, by specifier
795
- * (typed-host-configs 1.6). Under a declared composition Connect zeroes a
796
- * slice whose plugin is absent — presence is activation — so an authored
797
- * value there is dead config. Connect's built-ins are browser modules with no
798
- * Node-resolvable identity, so their ownership is declared here as data; a
799
- * Connect test pins it to plugin-host's zeroing.
800
- */
801
- export declare const CONNECT_PLUGIN_OWNED_SLICES: Readonly<Record<string, ConnectPluginSlices>>;
802
926
  interface DeadConfigWarning {
803
927
  /** Dot path inside the connect config block. */
804
928
  path: string;
@@ -810,21 +934,6 @@ interface DeadConfigWarning {
810
934
  owner: string;
811
935
  message: string;
812
936
  }
813
- /**
814
- * The composition that serves `config` as Connect serves it with none, for a
815
- * host that declares no `runner.plugins`. `config` is the connect block
816
- * Connect would be served without a composition.
817
- *
818
- * A built-in configured through its entry is always in it, its entry holding
819
- * the values `config` has at the slices it owns: composed in, the plugin
820
- * serves those values again (an unset one falls back to the same default).
821
- * A built-in whose presence is its switch is in it only where `config`
822
- * already has that switch on, since composing it in would turn it on.
823
- */
824
- export declare function defaultConnectComposition(config: Record<string, unknown> | undefined): {
825
- module: string;
826
- config: Record<string, unknown>;
827
- }[];
828
937
  /**
829
938
  * Dead-config warnings for a Connect host (typed-host-configs 1.6): an
830
939
  * authored connect config value whose owning plugin is not in the
@@ -833,7 +942,7 @@ export declare function defaultConnectComposition(config: Record<string, unknown
833
942
  * the generic plugin.
834
943
  *
835
944
  * Nothing is reported when the host declares no composition
836
- * (`runner.plugins` absent: the classic boot serves the config as is), or
945
+ * (`runner.plugins` absent: the default composition serves the config as is), or
837
946
  * when Connect already serves every leaf of the authored value. Warnings, not
838
947
  * errors: the host still boots, it just does not do what the value says.
839
948
  */
@@ -935,7 +1044,7 @@ interface ResolvedDrive {
935
1044
  }
936
1045
  export declare function resolveDriveDeclaration(projectRoot: string, decl: DriveDeclaration): ResolvedDrive;
937
1046
  /** The minimal client surface the seeder needs — runners adapt their reactor
938
- * clients (IReactorClient, addDefaultDrive-style helpers) onto it. */
1047
+ * clients (IReactorClient, ensureDrive-style helpers) onto it. */
939
1048
  interface DriveSeederClient {
940
1049
  /** Return the existing drive's id for a slug, or undefined. */
941
1050
  findDriveBySlug(slug: string): Promise<string | undefined>;
@@ -1056,9 +1165,6 @@ interface SwitchboardReactorLayer {
1056
1165
  packages?: {
1057
1166
  dynamic: true;
1058
1167
  };
1059
- features?: {
1060
- workflows: boolean;
1061
- };
1062
1168
  }
1063
1169
  /** The reactor block as a switchboard config layer. The reactor store and the
1064
1170
  * read model are separate fields: `readModel.url` never moves the reactor. */
@@ -1076,8 +1182,7 @@ export declare function browserBackend(reactor: ReactorConfig | undefined): (Rea
1076
1182
  * - remote backend(s) only -> `remote`
1077
1183
  * - a worker backend -> `worker`
1078
1184
  * - anything else local -> `in-process`
1079
- * `undefined` when no backends are declared — the caller then keeps the
1080
- * legacy reactorWorker/multiReactor behaviour untouched.
1185
+ * `undefined` when no backends are declared: Connect then runs `in-process`.
1081
1186
  */
1082
1187
  export declare function reactorClientMode(reactor: ReactorConfig | undefined): ReactorClientMode | undefined;
1083
1188
  /** The router settings Connect serves: only the keys the host sets. */
@@ -1103,17 +1208,13 @@ interface ConnectReactorProjection {
1103
1208
  remoteBackends?: ServedRemoteBackend[];
1104
1209
  router?: ConnectRouterSettings;
1105
1210
  };
1106
- app?: {
1107
- workflowsEnabled?: boolean;
1108
- };
1109
1211
  };
1110
1212
  }
1111
1213
  /** Project the reactor block onto the Connect runtime config: protocol →
1112
1214
  * connect.reactor (same shape), backend topology → instance.reactorWorker
1113
1215
  * (the browser reactor's kind), instance.reactorClient, instance.storage
1114
1216
  * (the browser reactor's store), and with a
1115
- * switchboard instance.remoteBackends and instance.router, workflows →
1116
- * app.workflowsEnabled. */
1217
+ * switchboard instance.remoteBackends and instance.router. */
1117
1218
  export declare function projectReactorToConnect(reactor: ReactorConfig | undefined): ConnectReactorProjection;
1118
1219
  /** Whether an env value means what the host's value does. The switchboard
1119
1220
  * reads REACTOR_UNDO_V3 as on unless it is exactly "false". */
@@ -1171,56 +1272,13 @@ interface PlacedConnectDrives {
1171
1272
  /** Annotates remote default drives with their backend (`sync: false` when placed on it); other remote placements become collections. */
1172
1273
  export declare function placeConnectDrives(reactor: ReactorConfig | undefined, defaultDrives: readonly PHConnectDefaultDrive[]): PlacedConnectDrives;
1173
1274
  //#endregion
1174
- //#region src/resolve/plan.d.ts
1175
- /**
1176
- * The dependency plan (pipeline step 4): which compound member consumes
1177
- * which member's outputs, and the start order that follows. Producers start
1178
- * before consumers; `config.startOrder` is optional and, when given, must
1179
- * agree with the tokens. Cycles fail. Pure.
1180
- */
1181
- export declare class PlanError extends Error {
1182
- constructor(message: string);
1183
- }
1184
- interface PlanMember {
1185
- /** The member key (`children.<key>`). */
1186
- key: string;
1187
- /** The member's host folder (`children.<key>.host`). */
1188
- host: string;
1189
- /** The producers its tokens name, with the host path of one token each. */
1190
- refs: {
1191
- ref: OutputRef;
1192
- path: string;
1193
- }[];
1194
- }
1195
- interface PlanEdge {
1196
- consumer: string;
1197
- producer: string;
1198
- /** Host path in the consumer of the (first) token behind this edge. */
1199
- path: string;
1200
- }
1201
- interface CompoundPlan {
1202
- /** Member keys in start order. */
1203
- order: string[];
1204
- edges: PlanEdge[];
1205
- /** "tokens": derived from the dependencies; "startOrder": the declared
1206
- * order, checked against them. */
1207
- source: "tokens" | "startOrder";
1208
- }
1209
- /** The member a ref names: the unique member running `ref.host`, or the
1210
- * member `ref.member` when given (it must run `ref.host`). */
1211
- export declare function memberForRef(ref: OutputRef, members: readonly Pick<PlanMember, "key" | "host">[]): {
1212
- key: string;
1213
- } | {
1214
- error: string;
1215
- };
1216
- export declare function planCompound(members: readonly PlanMember[], startOrder?: readonly string[]): CompoundPlan;
1217
- //#endregion
1218
1275
  //#region src/resolve/removed-forms.d.ts
1219
1276
  /**
1220
1277
  * The cross-host forms removed in T3 (typed-host-configs 3.7), detected
1221
1278
  * before schema validation so the error names the token form that replaces
1222
- * each one instead of a bare "Unrecognized key". clint's `agents.*.host` and
1223
- * proxy `routes.*.member` are checked by the clint runner schemas.
1279
+ * each one instead of a bare "Unrecognized key". The `reactor.workflows`
1280
+ * boolean, removed in 6.4, is reported the same way. clint's `agents.*.host`
1281
+ * and proxy `routes.*.member` are checked by the clint runner schemas.
1224
1282
  */
1225
1283
  interface RemovedForm {
1226
1284
  /** Host path of the removed value. */
@@ -1304,6 +1362,10 @@ interface ProducerInfo {
1304
1362
  folder: string;
1305
1363
  /** The producer host's `name` (its run-record key). */
1306
1364
  name: string;
1365
+ /** How the project addresses it (`<package>/<host>` for a package's). */
1366
+ ref?: string;
1367
+ /** The package that supplies it. */
1368
+ package?: HostPackage;
1307
1369
  specifier: string;
1308
1370
  runner: RunnerModule;
1309
1371
  }
@@ -1311,8 +1373,9 @@ interface ProducerInfo {
1311
1373
  type ProducerMap = ReadonlyMap<string, ProducerInfo | {
1312
1374
  error: string;
1313
1375
  }>;
1314
- /** Load every producer host a set of refs names (each once). */
1315
- export declare function loadProducers(projectRoot: string, refs: readonly OutputRef[]): Promise<ProducerMap>;
1376
+ /** Load every producer host a set of refs names (each once). In a host a
1377
+ * package supplies (`scope`), a bare name is that package's host first. */
1378
+ export declare function loadProducers(projectRoot: string, refs: readonly OutputRef[], scope?: HostPackage): Promise<ProducerMap>;
1316
1379
  /** The outputs schema of a runner module, or why it has none. */
1317
1380
  export declare function runnerOutputsSchema(runner: RunnerModule, specifier: string, label: string): OutputsSchemaLookup;
1318
1381
  /** Declared-validation lookup for a standalone host's producers. */
@@ -1339,8 +1402,10 @@ export declare function runRecordOutputSource(projectRoot: string, options: {
1339
1402
  env?: Env;
1340
1403
  }): OutputSource;
1341
1404
  /** The resolving process's `$env` inputs: its environment plus the
1342
- * always-resolvable built-ins (`userData` honours PH_USER_DATA_DIR). */
1343
- export declare function processResolveEnv(projectRoot: string, env?: Readonly<Record<string, string | undefined>>): Pick<ResolveSources, "env" | "builtins">;
1405
+ * always-resolvable built-ins (`userData` honours PH_USER_DATA_DIR).
1406
+ * `package` is the root of the package that supplies the host being
1407
+ * resolved (`hostPackage`), else the project root. */
1408
+ export declare function processResolveEnv(projectRoot: string, env?: Readonly<Record<string, string | undefined>>, hostPackage?: HostPackage): Pick<ResolveSources, "env" | "builtins">;
1344
1409
  //#endregion
1345
1410
  //#region src/expect-host.d.ts
1346
1411
  /**
@@ -1450,6 +1515,6 @@ interface MemberInput extends Omit<ExpectHostInput, "members" | "plan"> {
1450
1515
  */
1451
1516
  export declare function expectHost(input: ExpectHostInput): HostExpectation;
1452
1517
  //#endregion
1453
- export { type ArrayMapToken, type BootCheckContext, type BootIssue, type BuiltinEnv, CONNECT_PRIMARY_MESSAGE, CONNECT_RUNNER, type CheckDeferred, type CheckHostOptions, type CheckHostResult, type CheckStage, type ChildWrapper, type CompoundArgvMember, type CompoundHost, type CompoundHostInput, type CompoundPlan, type CompoundWiring, type ConcatToken, type ConnectPluginSlices, type ConnectReactorProjection, type ConnectRouterSettings, type ConnectStorageKind, type ConsumedOutput, type ContributedDrive, type ContributedDriveInput, type ContributionSource, type Contributions, type DeadConfigWarning, type DeclaredHostOptions, type DeclaredIssue, type DeferredResolution, type DeferredToken, type DriveDeclaration, type DrivePlanEntry, type DriveProjectionInput, type DriveSeederClient, type EnvToken, type ExpectHostInput, type ExpectedBackend, type ExpectedDrive, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, type HostDefinition, type HostExit, type HostExpectation, type HostExport, type HostImports, type HostIssue, type HostOutputsDescription, type HostPlugin, type HostPluginModule, type HostSchemaIssue, type HostSchemaIssues, type HostSchemaLike, type HostSchemas, type HostsFolderStatus, type ItemToken, type KeyToken, type LoadedHost, type MapToken, type MemberDraft, type MemberExpectation, type MemberInput, type MergedContribution, type NormalizedPluginEntry, ONE_SHOT_VERBS, ORIGIN_PLACEHOLDER, type Observe, type OutputLookup, type OutputPath, type OutputRef, type OutputSource, type OutputToken, type OutputsSchemaLookup, type OwnedConfigSlice, type PHHost, type PHHostOutputs, type PlacedConnectDrives, type PlacementKeyIssue, type PlanEdge, type PlanMember, type PluginContributionsPlan, type PluginEntry, type PluginEntryData, type ProducerInfo, type ProducerMap, type Profile, type ProjectedDescriptor, type ProjectedStorage, type Provide, type ReactorBackend, type ReactorBackendKind, type ReactorClientMode, type ReactorConfig, type ReactorHost, type ReactorHostInput, type ReactorPackageConfig, type ReactorProtocol, type ReactorRemoteConfig, type ReactorStorageConfig, type RecordMapToken, type RefFn, type RemovedForm, type ResolveOptions, type ResolveSources, type ResolvedDrive, type ResolvedPlugin, type RunCompoundOptions, type RunCompoundResult, type RunProbe, type RunRecord, type RunRecordMember, type RunnerArgsSchema, type RunnerArgvTarget, type RunnerBase, type RunnerContext, RunnerError, type RunnerHandle, type RunnerHandleData, type RunnerIssue, type RunnerKind, type RunnerModule, type RunnerVerb, STORE_VERBS, SWITCHBOARD_PROXY_PATHS, type SchemaIssue, type SeedResult, type SelfMembers, type ServedRemoteBackend, type SpawnHostOptions, type SpawnHostPhase, type SpawnedHost, type SplitRunArgv, type StartedHandle, type StopRunOptions, type StopRunResult, type SwitchboardDrive, type SwitchboardReactorLayer, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenPosition, type TokenSite, type TokenableSchema, type Transform, type ValidateHostOptions, applyChildWrapper, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveAddressMessage, emitHostJsonSchema, emittedHostSchemas, envSitesOf, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, getVerb, hostNameSchema, hostSchemaIssues, isHtmlNavigation, isOriginPlaceholderUrl, isSchemaLike, isSwitchboardProxyPath, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, listVerbs, makeHostSchemas, mapTokenSchema, originOrUrlSchema, outputRefsOf, outputSitesOf, outputTokenSchema, placementKeyIssues, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refKey, refineConnectReactor, refineStartOrder, resolveOriginPlaceholders, resolveRunnerModule, runCompound, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, schemaAtPath, switchboardOfDrive, toOriginPlaceholder, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, validateDeclaredHost, validateHost, withOriginPlaceholders };
1518
+ export { type ArrayMapToken, type BootCheckContext, type BootIssue, type BuiltinEnv, CONNECT_PRIMARY_MESSAGE, CONNECT_RUNNER, type CheckDeferred, type CheckHostOptions, type CheckHostResult, type CheckStage, type ChildWrapper, type CompoundArgvMember, type CompoundHost, type CompoundHostInput, type CompoundMemberHost, type CompoundPlan, type CompoundWiring, type ConcatToken, type ConnectPluginSlices, type ConnectReactorProjection, type ConnectRouterSettings, type ConnectStorageKind, type ConsumedOutput, type ContributedDrive, type ContributedDriveInput, type ContributionSource, type Contributions, type DeadConfigWarning, type DeclaredHostOptions, type DeclaredIssue, type DeferredResolution, type DeferredToken, type DriveDeclaration, type DrivePlanEntry, type DriveProjectionInput, type DriveSeederClient, type EnvToken, type ExpectHostInput, type ExpectedBackend, type ExpectedDrive, type ForegroundCandidate, type ForegroundContext, type ForegroundPlan, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, HOST_REF_MESSAGE, HOST_REF_PATTERN, type HoldStopOptions, type HostDefinition, type HostExit, type HostExpectation, type HostExport, type HostImports, type HostIssue, HostLoadError, type HostLocation, type HostOutputsDescription, type HostPackage, type HostPlugin, type HostPluginModule, type HostRef, type HostSchemaIssue, type HostSchemaIssues, type HostSchemaLike, type HostSchemas, type HostsFolderStatus, type ItemToken, type KeyToken, type LoadHostOptions, type LoadedHost, type MapToken, type MemberDraft, type MemberExpectation, type MemberInput, type MemberProcess, type MemberStatus, type MergedContribution, type NormalizedPluginEntry, ONE_SHOT_VERBS, ORIGIN_PLACEHOLDER, type Observe, type OutputLookup, type OutputPath, type OutputRef, type OutputSource, type OutputToken, type OutputsSchemaLookup, type OwnedConfigSlice, PACKAGE_NAME_PATTERN, type PHHost, type PHHostOutputs, type PlacedConnectDrives, type PlacementKeyIssue, type PlanEdge, PlanError, type PlanMember, type PluginContributionsPlan, type PluginEntry, type PluginEntryData, type ProducerInfo, type ProducerMap, type Profile, type ProjectedDescriptor, type ProjectedStorage, type Provide, type ReactorBackend, type ReactorBackendKind, type ReactorClientMode, type ReactorConfig, type ReactorHost, type ReactorHostInput, type ReactorPackageConfig, type ReactorProtocol, type ReactorRemoteConfig, type ReactorStorageConfig, type RecordMapToken, type RefFn, type RemovedForm, type ResolveOptions, type ResolveSources, type ResolvedDrive, type ResolvedPlugin, type RunCompoundOptions, type RunCompoundResult, type RunProbe, type RunRecord, type RunRecordMember, type RunnerArgsSchema, type RunnerArgvTarget, type RunnerBase, type RunnerContext, RunnerError, type RunnerHandle, type RunnerHandleData, type RunnerIssue, type RunnerKind, type RunnerModule, type RunnerVerb, STOP_STREAM_LIMIT_MS, STORE_VERBS, SWITCHBOARD_PROXY_PATHS, type SchemaIssue, type SeedResult, type SelfMembers, type ServedRemoteBackend, type SpawnHostOptions, type SpawnHostPhase, type SpawnedHost, type SplitRunArgv, type StartedHandle, type StopRunOptions, type StopRunResult, type SwitchboardDrive, type SwitchboardReactorLayer, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenPosition, type TokenSite, type TokenableSchema, type Transform, type ValidateHostOptions, applyChildWrapper, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveAddressMessage, emitHostJsonSchema, emittedHostSchemas, envSitesOf, envTokenSchema, envTokenable, findHostPackage, findToken, forbidRef, formatHostRef, genericCompoundHostSchema, getVerb, holdStopRequests, hostFileLabel, hostNameSchema, hostSchemaIssues, isHtmlNavigation, isOriginPlaceholderUrl, isSchemaLike, isSwitchboardProxyPath, isToken, itemTokenSchema, keyTokenSchema, killTree, kindShapeIssues, knownVerbIssues, listVerbs, locateHost, makeHostSchemas, mapTokenSchema, memberCycle, memberForRef, memberProcessOf, memberProcessSchema, originOrUrlSchema, outputRefsOf, outputSitesOf, outputTokenSchema, packageBuildRefusal, parseHostRef, placementKeyIssues, planCompound, planForeground, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refKey, refineConnectReactor, refineStartOrder, resolveOriginPlaceholders, resolvePackageRoot, resolveRunnerModule, runCompound, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, schemaAtPath, stopStreamOf, switchboardOfDrive, toOriginPlaceholder, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, validateDeclaredHost, validateHost, withOriginPlaceholders };
1454
1519
  export {};
1455
1520
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/host-loader.ts","../src/runner-args.ts","../src/run-record-schema.ts","../src/run-record.ts","../src/stop-channel.ts","../src/spawn-host.ts","../src/host-issues.ts","../src/env-substitution.ts","../src/resolve/resolve.ts","../src/check-host.ts","../src/host-export-schema.ts","../src/host-export.ts","../src/placeholders.ts","../src/host-types.ts","../src/plugins.ts","../src/plugins-resolve.ts","../src/drive-schema.ts","../src/drives.ts","../src/backend-projection.ts","../src/reactor-config.ts","../src/connect-projection.ts","../src/resolve/plan.ts","../src/resolve/removed-forms.ts","../src/res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;;UAKe;EACf,aAAa;EACb;;UAGe;EACf,MAAM;;;EAGN,UAAU;;EAEV,WAAW;;EAEX,uBAAuB;;EAEvB,mBAAmB;;EAEnB,OAAO;;UAGQ,oBAAoB,KAAK;EACxC;EACA;;;;;;;;wBAgKc,WAAW,OAAO,kBAAkB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/host-loader.ts","../src/runner-args.ts","../src/run-record-schema.ts","../src/run-record.ts","../src/stop-channel.ts","../src/compound-member.ts","../src/spawn-host.ts","../src/host-issues.ts","../src/env-substitution.ts","../src/resolve/resolve.ts","../src/check-host.ts","../src/host-export-schema.ts","../src/host-export.ts","../src/placeholders.ts","../src/host-types.ts","../src/connect-composition.ts","../src/plugins.ts","../src/plugins-resolve.ts","../src/drive-schema.ts","../src/drives.ts","../src/backend-projection.ts","../src/reactor-config.ts","../src/connect-projection.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/resolve/node.ts","../src/expect-host.ts"],"mappings":";;;;;;;;KA8CY;EACN;;EACA;EAAe;;EACf;EAAiB;EAAa;;;;;wBAKpB,iBAAiB,sBAAsB;;;;;;wBAcvC,oBACd,OAAO,QAAQ;EAAqB;IACpC;;qBAeW;;;;wBAsGG,cAAc;;UA8Bb;;EAEf;;EAEA;;;;;;;;wBASc,gBAAgB,mBAAmB,eAAe;;;wBAoClD,gBAAgB,mBAAmB;;;wBAMnC,gBAAgB,mBAAmB;;;;;wBAoBnC,oBACd,kBACA;;;wBA0Cc,mBACd,gBACA;UA8Be;;EAEf;EACA;EACA;EACA,MAAM;;;EAGN;;;EAGA,UAAU;;UAGK;;;EAGf,QAAQ;;;;wBAKM,aACd,qBACA,QAAQ,KAAK;;wBA8BO,SACpB,qBACA,kBACA,UAAS,kBACR,QAAQ;;;;;;;wBAUW,cACpB,qBACA,kBACA,UAAS,kBACR,QAAQ;;;UAiHM;;EAEf;EACA;;EAEA,eAAe;;;;EAIf;EACA;;;wBAMc,oBAAo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