@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.
- package/dist/{compound-CBqPgk38.d.mts → compound-D2dh2VUh.d.mts} +332 -22
- package/dist/compound-D2dh2VUh.d.mts.map +1 -0
- package/dist/{compound-DKi56SSx.mjs → compound-n-bO0qKh.mjs} +1616 -487
- package/dist/compound-n-bO0qKh.mjs.map +1 -0
- package/dist/{env-substitution-C_fVirPh.d.mts → env-substitution-Ct39KFvA.d.mts} +7 -3
- package/dist/env-substitution-Ct39KFvA.d.mts.map +1 -0
- package/dist/{env-substitution-BXGohOGN.mjs → env-substitution-FJ5Nua4M.mjs} +29 -10
- package/dist/env-substitution-FJ5Nua4M.mjs.map +1 -0
- package/dist/{host-schemas-BM7F21lf.d.mts → host-schemas-B6_-P11_.d.mts} +52 -19
- package/dist/host-schemas-B6_-P11_.d.mts.map +1 -0
- package/dist/index.d.mts +194 -129
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +51 -355
- package/dist/index.mjs.map +1 -1
- package/dist/kill-tree.d.mts +8 -0
- package/dist/kill-tree.d.mts.map +1 -0
- package/dist/kill-tree.mjs +73 -0
- package/dist/kill-tree.mjs.map +1 -0
- package/dist/plugins-DP3YlIWx.mjs +309 -0
- package/dist/plugins-DP3YlIWx.mjs.map +1 -0
- package/dist/{plugins-Uk84BRay.d.mts → plugins-Dsmfhbn7.d.mts} +53 -3
- package/dist/plugins-Dsmfhbn7.d.mts.map +1 -0
- package/dist/plugins.d.mts +2 -2
- package/dist/plugins.mjs +2 -174
- package/dist/projection.d.mts +12 -18
- package/dist/projection.d.mts.map +1 -1
- package/dist/projection.mjs +17 -10
- package/dist/projection.mjs.map +1 -1
- package/dist/runners/compound.d.mts +9 -3
- package/dist/runners/compound.d.mts.map +1 -1
- package/dist/runners/compound.mjs +1 -1
- package/dist/schema.d.mts +6 -4
- package/dist/schema.d.mts.map +1 -1
- package/dist/schema.mjs +5 -4
- package/dist/schema.mjs.map +1 -1
- package/package.json +9 -3
- package/dist/compound-CBqPgk38.d.mts.map +0 -1
- package/dist/compound-DKi56SSx.mjs.map +0 -1
- package/dist/env-substitution-BXGohOGN.mjs.map +0 -1
- package/dist/env-substitution-C_fVirPh.d.mts.map +0 -1
- package/dist/host-schemas-BM7F21lf.d.mts.map +0 -1
- package/dist/plugins-Uk84BRay.d.mts.map +0 -1
- package/dist/plugins.mjs.map +0 -1
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
//#region src/env-substitution.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Pure built-in `$env` substitution: the `"${userData}"` / `"${projectRoot}"`
|
|
4
|
-
* string sugar, deep-applied to a JSON-shaped value. No node
|
|
5
|
-
* ships in `./schema`; the node default for userData is
|
|
4
|
+
* / `"${package}"` string sugar, deep-applied to a JSON-shaped value. No node
|
|
5
|
+
* imports, so it ships in `./schema`; the node default for userData is
|
|
6
|
+
* placeholders.ts.
|
|
6
7
|
*/
|
|
7
8
|
interface BuiltinEnv {
|
|
8
9
|
userData?: string;
|
|
9
10
|
projectRoot?: string;
|
|
11
|
+
/** The root of the package that supplies the host (its real folder); the
|
|
12
|
+
* project root for a project host. */
|
|
13
|
+
package?: string;
|
|
10
14
|
}
|
|
11
15
|
/** Deep-substitute the built-ins that `env` provides in every string; an
|
|
12
16
|
* absent built-in is left as written. The input is never mutated. */
|
|
@@ -14,4 +18,4 @@ declare function substituteBuiltinEnv<T>(value: T, env: BuiltinEnv): T;
|
|
|
14
18
|
//#endregion
|
|
15
19
|
export { substituteBuiltinEnv as n, BuiltinEnv as t };
|
|
16
20
|
export {};
|
|
17
|
-
//# sourceMappingURL=env-substitution-
|
|
21
|
+
//# sourceMappingURL=env-substitution-Ct39KFvA.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-substitution-Ct39KFvA.d.mts","names":[],"sources":["../src/env-substitution.ts"],"mappings":";;;;;;;UAOiB;EACf;EACA;;;EAGA;;;;iBAyBc,qBAAqB,GAAG,OAAO,GAAG,KAAK,aAAa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pluginEntrySchema } from "./plugins.mjs";
|
|
1
|
+
import { c as pluginEntrySchema } from "./plugins-DP3YlIWx.mjs";
|
|
2
2
|
import { TOKEN_ESCAPE_KEY, TOKEN_KEYS, concatTokenSchema, envTokenSchema, envTokenable, findToken, forbidRef, isToken, itemTokenSchema, keyTokenSchema, mapTokenSchema, outputTokenSchema, ref, switchboardOfDrive, tokenKeyOf, tokenSchema, tokenable } from "@powerhousedao/shared/host-tokens";
|
|
3
3
|
import { isOriginPlaceholderUrl } from "@powerhousedao/shared/connect/origin-placeholder";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -15,8 +15,8 @@ function buildDriveDeclarationSchema(urlField) {
|
|
|
15
15
|
return z.strictObject({
|
|
16
16
|
slug: z.string().min(1),
|
|
17
17
|
id: z.string().min(1).optional(),
|
|
18
|
-
/** Derive the id from the project path
|
|
19
|
-
* same ids classic `ph vetra`
|
|
18
|
+
/** Derive the id from the project path (`<slug>-<hash of the path>`) — the
|
|
19
|
+
* same ids classic `ph vetra` produced. `true` serves the drive under the
|
|
20
20
|
* hashed slug too (the vetra drive's slug IS its hashed id); `"id"` hashes
|
|
21
21
|
* only the id and keeps the declared slug (the classic Workflows drive:
|
|
22
22
|
* `/d/workflows`, id `workflows-<hash>`). */
|
|
@@ -63,6 +63,16 @@ const HOST_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
|
63
63
|
const HOST_NAME_MAX_LENGTH = 128;
|
|
64
64
|
const HOST_NAME_MESSAGE = "A host name is used as a file name, so use only letters, digits, '.', '_' and '-', start with a letter or digit, and keep it to 128 characters.";
|
|
65
65
|
const hostNameSchema = z.string().min(1).max(128, HOST_NAME_MESSAGE).regex(HOST_NAME_PATTERN, HOST_NAME_MESSAGE);
|
|
66
|
+
/** An npm package name, as `<package>/<host>` names a package that supplies
|
|
67
|
+
* hosts: `name` or `@scope/name`, each part letters, digits, '-', '.', '_'
|
|
68
|
+
* and '~', not starting with '.' or '_'. Each part is one folder name, the
|
|
69
|
+
* one the package has under node_modules. */
|
|
70
|
+
const PACKAGE_NAME_PATTERN = /^(?:@[A-Za-z0-9~-][A-Za-z0-9._~-]*\/)?[A-Za-z0-9~-][A-Za-z0-9._~-]*$/;
|
|
71
|
+
/** How a compound names a member's host: its folder under the project's
|
|
72
|
+
* `hosts/` (or, in a package's compound, the package's first), or
|
|
73
|
+
* `<package>/<host>` for one an installed package supplies. */
|
|
74
|
+
const HOST_REF_PATTERN = new RegExp(`^(?:${PACKAGE_NAME_PATTERN.source.slice(1, -1)}/)?${HOST_NAME_PATTERN.source.slice(1, -1)}$`);
|
|
75
|
+
const HOST_REF_MESSAGE = "A member's host is a host folder (`switchboard`), or `<package>/<host>` (`@acme/tools/studio`) for one an installed package supplies.";
|
|
66
76
|
/**
|
|
67
77
|
* A URL, or one written against the page origin (`${origin}/graphql`): the
|
|
68
78
|
* browser resolves the placeholder when it loads Connect's config, for a
|
|
@@ -87,6 +97,8 @@ const reactorProtocolSchema = z.strictObject({
|
|
|
87
97
|
unsupportedStoredDocuments: z.enum(["refuse", "read-only"]).optional()
|
|
88
98
|
});
|
|
89
99
|
const runnerKindSchema = z.enum(["reactor", "compound"]);
|
|
100
|
+
/** A compound member's process: its own, or the compound's (`shared`). */
|
|
101
|
+
const memberProcessSchema = z.enum(["own", "shared"]);
|
|
90
102
|
const reactorBackendKindSchema = z.enum([
|
|
91
103
|
"in-process",
|
|
92
104
|
"worker",
|
|
@@ -440,8 +452,6 @@ function buildHostSchemas(tokenField) {
|
|
|
440
452
|
provisionalRouteMs: z.number().int().nonnegative().optional()
|
|
441
453
|
}).optional(),
|
|
442
454
|
protocol: reactorProtocolSchema.optional(),
|
|
443
|
-
/** DEPRECATED (dies in R2): workflows become a listed plugin. */
|
|
444
|
-
workflows: z.boolean().optional(),
|
|
445
455
|
renown: z.strictObject({
|
|
446
456
|
url: z.string().optional(),
|
|
447
457
|
networkId: z.string().optional(),
|
|
@@ -485,10 +495,15 @@ function buildHostSchemas(tokenField) {
|
|
|
485
495
|
* which key-merges over the member's own. Plugins live in `runner.plugins`
|
|
486
496
|
* (as on a standalone host); there is no wrapper-level `plugins`. */
|
|
487
497
|
const childWrapperSchema = z.strictObject({
|
|
488
|
-
host: z.string().min(1),
|
|
498
|
+
host: z.string().min(1).regex(HOST_REF_PATTERN, HOST_REF_MESSAGE),
|
|
489
499
|
runner: runnerBaseSchema.partial().extend({ port: z.number().int().min(0).max(65535).optional() }).optional(),
|
|
490
500
|
config: z.looseObject({}).optional(),
|
|
491
|
-
reactor: reactorSchema.optional()
|
|
501
|
+
reactor: reactorSchema.optional(),
|
|
502
|
+
/** Where the member runs: `own`, a child process of the compound
|
|
503
|
+
* (`ph run <host>`), stopped through its stdin; `shared`, in the
|
|
504
|
+
* compound's own process. Default: `own` next to a foreground member
|
|
505
|
+
* (the Cli runner), `shared` otherwise. */
|
|
506
|
+
process: memberProcessSchema.optional()
|
|
492
507
|
});
|
|
493
508
|
const childrenSchema = z.record(z.string(), childWrapperSchema);
|
|
494
509
|
return {
|
|
@@ -631,7 +646,11 @@ function emittedHostSchemas() {
|
|
|
631
646
|
//#endregion
|
|
632
647
|
//#region src/env-substitution.ts
|
|
633
648
|
/** The always-resolvable `$env` names (also the `"${name}"` sugar). */
|
|
634
|
-
const BUILTIN_ENV_NAMES = [
|
|
649
|
+
const BUILTIN_ENV_NAMES = [
|
|
650
|
+
"userData",
|
|
651
|
+
"projectRoot",
|
|
652
|
+
"package"
|
|
653
|
+
];
|
|
635
654
|
function isBuiltinEnvName(name) {
|
|
636
655
|
return BUILTIN_ENV_NAMES.includes(name);
|
|
637
656
|
}
|
|
@@ -655,6 +674,6 @@ function substituteValue(value, env) {
|
|
|
655
674
|
return value;
|
|
656
675
|
}
|
|
657
676
|
//#endregion
|
|
658
|
-
export {
|
|
677
|
+
export { refineStartOrder as A, envTokenSchema as B, profileSchema as C, reactorProtocolSchema as D, reactorHostSchema as E, drivesSchema as F, itemTokenSchema as G, findToken as H, projectDriveIdWith as I, outputTokenSchema as J, keyTokenSchema as K, TOKEN_ESCAPE_KEY as L, runnerKindSchema as M, buildDriveDeclarationSchema as N, reactorSchema as O, driveDeclarationSchema as P, tokenable as Q, TOKEN_KEYS as R, placementKeyIssues as S, reactorBackendSchema as T, forbidRef as U, envTokenable as V, isToken as W, tokenKeyOf as X, ref as Y, tokenSchema as Z, emittedHostSchemas as _, HOST_NAME_MESSAGE as a, makeHostSchemas as b, childWrapperSchema as c, compoundWiringSchema as d, connectReactorIssues as f, emitHostJsonSchema as g, defineHostSchemas as h, HOST_NAME_MAX_LENGTH as i, runnerBaseSchema as j, refineConnectReactor as k, childrenSchema as l, declaredHostSchemas as m, substituteBuiltinEnv as n, HOST_NAME_PATTERN as o, declaredGenericCompoundHostSchema as p, mapTokenSchema as q, CONNECT_PRIMARY_MESSAGE as r, PACKAGE_NAME_PATTERN as s, isBuiltinEnvName as t, compoundHostSchema as u, genericCompoundHostSchema as v, reactorBackendKindSchema as w, memberProcessSchema as x, hostNameSchema as y, concatTokenSchema as z };
|
|
659
678
|
|
|
660
|
-
//# sourceMappingURL=env-substitution-
|
|
679
|
+
//# sourceMappingURL=env-substitution-FJ5Nua4M.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-substitution-FJ5Nua4M.mjs","names":[],"sources":["../src/drive-schema.ts","../src/host-schemas.ts","../src/env-substitution.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { tokenable, type TokenableSchema } from \"./tokens.js\";\n\n/**\n * The schema half of drives.ts, zod only so `./schema` stays neutral.\n * - slug: the SEEDING KEY (idempotence); id optional (stable identity).\n * - preferredEditor: stored at header.meta.preferredEditor; Connect config's\n * `app` is the legacy alias.\n * - remote.url: a drive served elsewhere; local fields are ignored for it.\n * Token-able (`$output` on a producer's `drives.<slug>.url`).\n */\nexport function buildDriveDeclarationSchema(\n urlField: (schema: z.ZodString) => TokenableSchema<z.ZodString>,\n) {\n return z.strictObject({\n slug: z.string().min(1),\n id: z.string().min(1).optional(),\n /** Derive the id from the project path (`<slug>-<hash of the path>`) — the\n * same ids classic `ph vetra` produced. `true` serves the drive under the\n * hashed slug too (the vetra drive's slug IS its hashed id); `\"id\"` hashes\n * only the id and keeps the declared slug (the classic Workflows drive:\n * `/d/workflows`, id `workflows-<hash>`). */\n projectHash: z.union([z.boolean(), z.literal(\"id\")]).optional(),\n /** What a missing drive is created as. Default powerhouse/document-drive. */\n documentType: z\n .enum([\"powerhouse/document-drive\", \"powerhouse/reactor-drive\"])\n .optional(),\n name: z.string().min(1).optional(),\n icon: z.string().optional(),\n preferredEditor: z.string().optional(),\n sharingType: z.enum([\"public\", \"private\", \"shared\"]).optional(),\n availableOffline: z.boolean().optional(),\n remote: z.strictObject({ url: urlField(z.string().min(1)) }).optional(),\n });\n}\n\nexport const driveDeclarationSchema = buildDriveDeclarationSchema(tokenable);\n\nexport type DriveDeclaration = z.infer<typeof driveDeclarationSchema>;\n\nexport const drivesSchema = z.array(driveDeclarationSchema);\n\n/** The project-hashed drive id (`${slug}-${sha256(projectRoot)[0..8]}`) with\n * the hash function injected, so neutral consumers (a browser monitor) can\n * pass `crypto.subtle`-derived or precomputed hex. drives.ts binds it to\n * node:crypto as `projectDriveId`. */\nexport function projectDriveIdWith(\n sha256Hex: (input: string) => string,\n projectRoot: string,\n slug: string,\n): string {\n return `${slug}-${sha256Hex(projectRoot).substring(0, 8)}`;\n}\n","import { switchboardOfDrive } from \"@powerhousedao/shared/host-tokens\";\nimport { isOriginPlaceholderUrl } from \"@powerhousedao/shared/connect/origin-placeholder\";\nimport { z } from \"zod\";\nimport { buildDriveDeclarationSchema } from \"./drive-schema.js\";\nimport { pluginEntrySchema } from \"./plugins.js\";\nimport {\n envTokenable,\n tokenable,\n type EnvToken,\n type TokenableSchema,\n type TokenMode,\n} from \"./tokens.js\";\n\n/**\n * The zod single source for host.js blocks (typed-host-configs G1). Every\n * host type is z.input/z.output of these schemas; nothing is hand-mirrored.\n * Top-level host objects and the `reactor` block are STRICT (a typo fails);\n * `runner` stays loose until each runner declares its options (T2), and\n * `config` is runner-defined.\n *\n * Token-able fields (typed-host-configs 3.5): `reactor.backends.*.remote.url`\n * (required, a switchboard drive address), `reactor.drives` (whole list, e.g. `$map`),\n * `reactor.drives[].remote.url` and `storage.dataDir` (`$env` only). Their z.input admits tokens, their z.output is the resolved type.\n */\n\n/** A host's `name` keys its run record, `.ph/run/<name>.json`, so it must be\n * one safe path segment. */\nexport const HOST_NAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;\nexport const HOST_NAME_MAX_LENGTH = 128;\nexport const HOST_NAME_MESSAGE =\n \"A host name is used as a file name, so use only letters, digits, '.', '_' and '-', start with a letter or digit, and keep it to 128 characters.\";\nexport const hostNameSchema = z\n .string()\n .min(1)\n .max(HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE)\n .regex(HOST_NAME_PATTERN, HOST_NAME_MESSAGE);\n\n/** An npm package name, as `<package>/<host>` names a package that supplies\n * hosts: `name` or `@scope/name`, each part letters, digits, '-', '.', '_'\n * and '~', not starting with '.' or '_'. Each part is one folder name, the\n * one the package has under node_modules. */\nexport const PACKAGE_NAME_PATTERN =\n /^(?:@[A-Za-z0-9~-][A-Za-z0-9._~-]*\\/)?[A-Za-z0-9~-][A-Za-z0-9._~-]*$/;\n\n/** How a compound names a member's host: its folder under the project's\n * `hosts/` (or, in a package's compound, the package's first), or\n * `<package>/<host>` for one an installed package supplies. */\nexport const HOST_REF_PATTERN = new RegExp(\n `^(?:${PACKAGE_NAME_PATTERN.source.slice(1, -1)}/)?${HOST_NAME_PATTERN.source.slice(1, -1)}$`,\n);\nexport const HOST_REF_MESSAGE =\n \"A member's host is a host folder (`switchboard`), or `<package>/<host>` (`@acme/tools/studio`) for one an installed package supplies.\";\n\n/**\n * A URL, or one written against the page origin (`${origin}/graphql`): the\n * browser resolves the placeholder when it loads Connect's config, for a\n * member whose own server proxies the switchboard's paths.\n */\nexport const originOrUrlSchema = z.union([\n z.url(),\n z.string().refine(isOriginPlaceholderUrl, {\n message: \"a URL, or ${origin}/<path> for a proxied sibling\",\n }),\n]);\n\nexport const profileSchema = z.strictObject({\n appId: z.string().min(1).optional(),\n name: z.string().min(1).optional(),\n description: z.string().optional(),\n icon: z.string().optional(),\n});\n\nexport const reactorProtocolSchema = z.strictObject({\n featureFlags: z\n .strictObject({\n documentDecisions: z.boolean().optional(),\n authEnforcement: z.boolean().optional(),\n authGroups: z.boolean().optional(),\n authConditions: z.boolean().optional(),\n undoV3: z.boolean().optional(),\n })\n .optional(),\n createSignaturePolicy: z.enum([\"legacy\", \"v2-required\"]).optional(),\n unsupportedStoredDocuments: z.enum([\"refuse\", \"read-only\"]).optional(),\n});\n\nexport const runnerKindSchema = z.enum([\"reactor\", \"compound\"]);\nexport type RunnerKind = z.infer<typeof runnerKindSchema>;\n\n/** A compound member's process: its own, or the compound's (`shared`). */\nexport const memberProcessSchema = z.enum([\"own\", \"shared\"]);\nexport type MemberProcess = z.infer<typeof memberProcessSchema>;\n\nexport const reactorBackendKindSchema = z.enum([\n \"in-process\",\n \"worker\",\n \"remote\",\n]);\n\n// Path-equality for the one-dir guard: pure string normalisation (the host\n// core stays Node-free); the server repeats the check with path.resolve.\nconst samePath = (a: string, b: string): boolean => {\n const norm = (p: string) =>\n p.replace(/\\\\/g, \"/\").replace(/\\/+$/, \"\").replace(/^\\.\\//, \"\");\n return norm(a) === norm(b);\n};\n\n/** Compound wiring: the generic compound runner's `config` block.\n * (`projectDrivesIntoConnect` and `drivesPublicBase` were removed in T3: a\n * member consumes another member's drives through `$output` tokens.) */\nexport const compoundWiringSchema = z.strictObject({\n /** Member start order; must name declared children and agree with the\n * output-token dependencies (resolve/plan.ts). Optional: without it the\n * order is derived from the tokens. Unnamed members start after the named\n * ones, in declaration order. */\n startOrder: z.array(z.string().min(1)).optional(),\n /** Write .ph/run/<host>.json (default true). */\n runtimeRecord: z.boolean().optional(),\n /** Patch the baked CSP for the runtime registry on a served Connect\n * member (forwarded as `runner.cspRegistrySync` to every member whose\n * runner is `@powerhousedao/ph-cli/runners/connect`). */\n cspRegistrySync: z.boolean().optional(),\n});\n\n/** `config.startOrder ⊆ keys(children)`, checked where both are visible.\n * Apply it LAST (`.superRefine(refineStartOrder)`) to a runner's final host\n * schema: zod refuses to `.extend()` a refined object. */\nexport function refineStartOrder(\n host: { children: Record<string, unknown>; config?: Record<string, unknown> },\n ctx: z.RefinementCtx,\n): void {\n const startOrder = host.config?.startOrder;\n if (!Array.isArray(startOrder)) return;\n const members = Object.keys(host.children);\n startOrder.forEach((name: unknown, index) => {\n if (startOrder.indexOf(name) !== index) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"config\", \"startOrder\", index],\n message: `startOrder names \"${String(name)}\" twice; each member starts once.`,\n });\n return;\n }\n if (typeof name === \"string\" && members.includes(name)) return;\n ctx.addIssue({\n code: \"custom\",\n path: [\"config\", \"startOrder\", index],\n message: `startOrder names \"${String(name)}\", which is not a member. Members: ${members.join(\", \") || \"(none)\"}.`,\n });\n });\n}\n\n/** How a schema set wraps its token-able fields. Both modes share one static\n * type (declared input, resolved output); they differ at runtime only. */\ninterface FieldWrappers {\n any: <S extends z.ZodType>(schema: S) => TokenableSchema<S>;\n env: <S extends z.ZodType>(schema: S) => TokenableSchema<S, EnvToken>;\n}\n\nconst ALLOW_TOKENS: FieldWrappers = { any: tokenable, env: envTokenable };\n// A one-option union: the same validation as `schema`, typed like the\n// \"allow\" wrappers so both modes share HostSchemas.\nconst FORBID_TOKENS: FieldWrappers = {\n any: (schema) => z.union([schema]),\n env: (schema) => z.union([schema]),\n};\n\n/** The replacement a non-drive `remote.url` message names. */\nfunction useDriveUrl(host = \"switchboard\", member?: string): string {\n const memberPart = member ? `, member: \"${member}\"` : \"\";\n return (\n `remote: { url: ${host}.drives.<slug>.url } with ${host} from ../${host}/outputs.js, ` +\n `or remote: { url: { $output: { host: \"${host}\"${memberPart}, path: [\"drives\", \"<slug>\", \"url\"] } } }`\n );\n}\n\n/** The `$output` of a declared `remote.url` that reads `endpoints.graphql`. */\nfunction endpointsGraphqlRef(\n url: unknown,\n): { host: string; member?: string } | undefined {\n if (typeof url !== \"object\" || url === null || !(\"$output\" in url)) {\n return undefined;\n }\n const ref = (url as { $output: unknown }).$output;\n if (typeof ref !== \"object\" || ref === null) return undefined;\n const { host, member, path } = ref as Record<string, unknown>;\n if (typeof host !== \"string\" || !Array.isArray(path)) return undefined;\n if (path.join(\".\") !== \"endpoints.graphql\") return undefined;\n return { host, ...(typeof member === \"string\" ? { member } : {}) };\n}\n\n/** The slug a drive link names: a `drives.<slug>.url` token's slug or a\n * literal address's served slug; undefined when only runtime knows it. */\nfunction linkedSlug(url: unknown): string | undefined {\n if (typeof url === \"string\") return switchboardOfDrive(url)?.slug;\n const ref =\n typeof url === \"object\" && url !== null && \"$output\" in url\n ? (url as { $output: { path?: unknown } }).$output\n : undefined;\n const path = Array.isArray(ref?.path) ? (ref.path as unknown[]) : [];\n return path.length === 3 &&\n path[0] === \"drives\" &&\n typeof path[1] === \"string\" &&\n path[2] === \"url\"\n ? path[1]\n : undefined;\n}\n\ninterface DeclaredReactorHost {\n runner?: { plugins?: unknown };\n config?: unknown;\n reactor?: {\n backends?: Record<string, { kind: string; remote?: { url: unknown } }>;\n placement?: {\n primary?: string;\n drives?: Record<string, string>;\n newDrives?: string;\n };\n drives?: unknown;\n };\n}\n\n/** The drives a declared host names (home drives, `reactor.drives`, plugin\n * `config.drive` links), or undefined when one is known only at runtime. */\nfunction knownDriveSlugs(host: DeclaredReactorHost): string[] | undefined {\n const reactor = host.reactor ?? {};\n const slugs: string[] = [];\n for (const backend of Object.values(reactor.backends ?? {})) {\n if (backend.kind !== \"remote\") continue;\n const slug = linkedSlug(backend.remote?.url);\n if (slug === undefined) return undefined;\n slugs.push(slug);\n }\n if (reactor.drives !== undefined) {\n if (!Array.isArray(reactor.drives)) return undefined;\n for (const drive of reactor.drives as { slug?: unknown }[]) {\n if (typeof drive.slug === \"string\") slugs.push(drive.slug);\n }\n }\n const plugins = Array.isArray(host.runner?.plugins)\n ? (host.runner.plugins as unknown[])\n : [];\n for (const entry of plugins) {\n const config =\n typeof entry === \"object\" && entry !== null && \"config\" in entry\n ? (entry as { config: unknown }).config\n : undefined;\n if (typeof config !== \"object\" || config === null) continue;\n if (!(\"drive\" in config) || config.drive === undefined) continue;\n const slug = linkedSlug(config.drive);\n if (slug === undefined) return undefined;\n slugs.push(slug);\n }\n for (const drive of connectDefaultDrives(host.config)) {\n if (typeof drive !== \"object\" || drive === null || !(\"url\" in drive)) {\n continue;\n }\n const slug = linkedSlug(drive.url);\n if (slug === undefined) return undefined;\n slugs.push(slug);\n }\n return slugs;\n}\n\n/** A Connect host's `config.drives.defaultDrives`, unchecked. */\nfunction connectDefaultDrives(config: unknown): unknown[] {\n const drives =\n typeof config === \"object\" && config !== null && \"drives\" in config\n ? (config as { drives: unknown }).drives\n : undefined;\n const list =\n typeof drives === \"object\" && drives !== null && \"defaultDrives\" in drives\n ? (drives as { defaultDrives: unknown }).defaultDrives\n : undefined;\n return Array.isArray(list) ? list : [];\n}\n\n/** Declared form, at host level so plugin drives are seen: a placement key\n * must name a drive the host names, when every drive is knowable. A host\n * with no remote backend is not checked: its plugins may contribute drives\n * (a switchboard's workflows drive) that no field names. */\nfunction refineDeclaredPlacementKeys(\n host: DeclaredReactorHost,\n ctx: z.RefinementCtx,\n): void {\n const placed = Object.keys(host.reactor?.placement?.drives ?? {});\n if (placed.length === 0) return;\n const remote = Object.values(host.reactor?.backends ?? {}).some(\n (b) => b.kind === \"remote\",\n );\n if (!remote) return;\n const known = knownDriveSlugs(host);\n if (!known) return;\n // A literal address may carry the hashed slug of a `projectHash` drive.\n const names = (slug: string, served: string) =>\n served === slug ||\n (served.startsWith(`${slug}-`) &&\n /^[0-9a-f]{8}$/.test(served.slice(slug.length + 1)));\n for (const slug of placed) {\n if (known.some((served) => names(slug, served))) continue;\n ctx.addIssue({\n code: \"custom\",\n path: [\"reactor\", \"placement\", \"drives\", slug],\n message: `placement.drives.${slug} names no drive this host links to or declares (${[...new Set(known)].join(\", \") || \"none\"}).`,\n });\n }\n}\n\ninterface ResolvedReactorBlock {\n backends?: Record<string, { kind: string; remote?: { url: unknown } }>;\n placement?: { drives?: Record<string, string> };\n drives?: unknown;\n}\n\n/** Resolved-form checks across backends, drives and placement: one base is\n * one remote backend, and a drive placed on a remote is on its switchboard. */\nfunction refineResolvedReactor(\n reactor: ResolvedReactorBlock,\n ctx: z.RefinementCtx,\n): void {\n const backends = reactor.backends ?? {};\n const baseOf = new Map<string, string>();\n const byBase = new Map<string, string>();\n // Every switchboard a slug is linked on: one slug on two is ambiguous.\n const linked = new Map<string, Set<string>>();\n const link = (slug: string, base: string) =>\n linked.set(slug, (linked.get(slug) ?? new Set()).add(base));\n for (const [name, backend] of Object.entries(backends)) {\n const url = backend.remote?.url;\n if (backend.kind !== \"remote\" || typeof url !== \"string\") continue;\n const home = switchboardOfDrive(url);\n if (!home) continue;\n baseOf.set(name, home.base);\n link(home.slug, home.base);\n const first = byBase.get(home.base);\n if (first === undefined) {\n byBase.set(home.base, name);\n continue;\n }\n ctx.addIssue({\n code: \"custom\",\n path: [\"backends\", name, \"remote\", \"url\"],\n message: `backends \"${first}\" and \"${name}\" both open drives on the same switchboard (${home.base}). Keep \"${first}\", and list the second drive under reactor.drives with its remote.url instead.`,\n });\n }\n\n const kept = new Set<string>();\n const declared = Array.isArray(reactor.drives)\n ? (reactor.drives as { slug: string; remote?: { url: string } }[])\n : [];\n declared.forEach((drive, index) => {\n if (!drive.remote) {\n kept.add(drive.slug);\n return;\n }\n const at = switchboardOfDrive(drive.remote.url);\n // An empty url already fails the field's own check.\n if (at || drive.remote.url === \"\") {\n if (at) link(drive.slug, at.base);\n return;\n }\n ctx.addIssue({\n code: \"custom\",\n path: [\"drives\", index, \"remote\", \"url\"],\n message: `remote.url must be a switchboard drive address (<switchboard>/d/<slug>), not ${drive.remote.url}: sync needs the drive. Use url: switchboard.drives.<slug>.url, or url: { $output: { host: \"switchboard\", path: [\"drives\", \"<slug>\", \"url\"] } }.`,\n });\n });\n\n const nameOf = (base: string) => byBase.get(base) ?? base;\n for (const [slug, name] of Object.entries(reactor.placement?.drives ?? {})) {\n const at = [\"placement\", \"drives\", slug];\n const on = [...(linked.get(slug) ?? [])];\n // Two drives answer to the key, whichever backend it names.\n if (on.length > 0 && kept.has(slug)) {\n ctx.addIssue({\n code: \"custom\",\n path: at,\n message: `Drive \"${slug}\" is both this reactor's own drive and on ${on.map(nameOf).join(\" and \")}. Rename one, or link only one.`,\n });\n continue;\n }\n if (on.length > 1) {\n ctx.addIssue({\n code: \"custom\",\n path: at,\n message: `Drive \"${slug}\" is on both ${on.map(nameOf).join(\" and \")}. Rename one, or link only one.`,\n });\n continue;\n }\n const base = baseOf.get(name);\n if (base === undefined) continue;\n if (on.length === 0) {\n // A key that names no drive here (a hashed home drive) is not checked.\n if (!kept.has(slug)) continue;\n ctx.addIssue({\n code: \"custom\",\n path: at,\n message: `placement.drives.${slug} opens drive \"${slug}\" on \"${name}\", but this reactor keeps that drive itself. Only a drive on a switchboard can open there without a copy.`,\n });\n continue;\n }\n if (on[0] === base) continue;\n ctx.addIssue({\n code: \"custom\",\n path: at,\n message: `placement.drives.${slug} opens drive \"${slug}\" on \"${name}\" (${base}), but the drive is on ${on[0]}. Place it on the backend for that switchboard.`,\n });\n }\n}\n\n/** `remote` keys that tune a connection, so only a remote backend has them. */\nconst REMOTE_ONLY_KEYS = [\"requestTimeoutMs\", \"breaker\", \"realtime\"] as const;\n\n/**\n * Builds the host schema set. \"allow\" (declared form) accepts `T | Token` in\n * every token-able field; \"forbid\" (resolved form) accepts `T` only.\n */\nfunction buildHostSchemas(tokenField: FieldWrappers) {\n const resolved = tokenField === FORBID_TOKENS;\n const reactorBackendSchema = z\n .strictObject({\n kind: reactorBackendKindSchema,\n storage: z\n .strictObject({\n kind: z.enum([\"idb\", \"memory\", \"path\", \"postgres\"]),\n /** `\"${userData}/…\"` sugar or `{ $env: \"NAME\" }`. */\n dataDir: tokenField.env(z.string()).optional(),\n url: z.string().optional(),\n })\n .optional(),\n readModel: z.strictObject({ url: z.string().optional() }).optional(),\n packages: z\n .strictObject({\n cdnUrl: z.string().optional(),\n specs: z.array(z.string()).optional(),\n /** on-demand model resolution (was DYNAMIC_MODEL_LOADING). */\n dynamic: z.boolean().optional(),\n })\n .optional(),\n // A switchboard drive address, `<base>/d/<slug>`: typically a\n // producer's `drives.<slug>.url` output token. The backend is the\n // switchboard at `<base>`. `${origin}/d/<slug>` when the member's own\n // server proxies the switchboard (the browser then calls its page\n // origin; see `runner.proxy` on the connect runner).\n remote: z\n .strictObject({\n url: tokenField.any(originOrUrlSchema),\n /** Give up on one request to this switchboard after this long. Default 30_000. */\n requestTimeoutMs: z.number().int().positive().optional(),\n /** After `failures` failed requests in a row, send nothing for\n * `openMs`. Default { failures: 3, openMs: 30_000 }. `false`:\n * never stop trying. */\n breaker: z\n .union([\n z.literal(false),\n z.strictObject({\n failures: z.number().int().min(1).optional(),\n openMs: z.number().int().nonnegative().optional(),\n }),\n ])\n .optional(),\n /** Live updates over a socket (the router's GraphQL\n * subscriptions, not drive sync). Default true. */\n realtime: z.boolean().optional(),\n })\n .optional(),\n })\n // Two PGlite instances on one data dir corrupt it: the reactor store\n // (storage.dataDir) and the read-model store (readModel.url) must differ.\n // Postgres is exempt: one database legitimately serves both stores.\n .superRefine((backend, ctx) => {\n // 2.1 \"a remote backend needs url\": `remote` is optional for the\n // in-process/worker kinds, but a remote backend attaches by URL only.\n if (backend.kind === \"remote\" && !backend.remote) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"remote\", \"url\"],\n message: `a \"remote\" backend needs remote.url, a switchboard drive address: ${useDriveUrl()}.`,\n });\n }\n if (backend.kind !== \"remote\" && backend.remote) {\n for (const key of REMOTE_ONLY_KEYS) {\n if (backend.remote[key] === undefined) continue;\n ctx.addIssue({\n code: \"custom\",\n path: [\"remote\", key],\n message: `remote.${key} applies only to a \"remote\" backend; this one is \"${backend.kind}\".`,\n });\n }\n }\n const url: unknown = backend.remote?.url;\n const graphqlRef = resolved ? undefined : endpointsGraphqlRef(url);\n if (graphqlRef) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"remote\", \"url\"],\n message: `remote.url reads ${graphqlRef.host}'s endpoints.graphql; it must be a switchboard drive address (<switchboard>/d/<slug>): sync needs the drive. Use ${useDriveUrl(graphqlRef.host, graphqlRef.member)}.`,\n });\n }\n if (resolved && typeof url === \"string\" && !switchboardOfDrive(url)) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"remote\", \"url\"],\n message: `remote.url must be a switchboard drive address (<switchboard>/d/<slug>), not ${url}: sync needs the drive. Use ${useDriveUrl()}.`,\n });\n }\n const store = backend.storage;\n const storeDir = store?.kind === \"path\" ? store.dataDir : undefined;\n const readModel = backend.readModel?.url;\n // In the declared form dataDir may still be a `$env` token: compare\n // only resolved strings (resolved validation re-runs this check).\n if (\n typeof storeDir === \"string\" &&\n readModel &&\n samePath(storeDir, readModel)\n ) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"readModel\", \"url\"],\n message:\n `readModel.url must not be the reactor's storage dir (${readModel}): ` +\n \"two PGlite instances on one data dir corrupt it. Omit readModel.url \" +\n \"to get the classic <root>/.ph/read-storage next to the reactor store.\",\n });\n }\n });\n\n const reactorSchema = z\n .strictObject({\n backends: z.record(z.string(), reactorBackendSchema).optional(),\n placement: z\n .strictObject({\n primary: z.string().optional(),\n /** Declared drive slug → backend name. A local backend keeps a\n * synced copy; the drive's own remote backend opens it there with\n * no copy. An unlisted drive keeps a synced copy. */\n drives: z.record(z.string().min(1), z.string().min(1)).optional(),\n /** The backend new drives (and documents outside a drive) are\n * created on. A switchboard keeps no copy in this browser.\n * Default: the browser reactor, else the only switchboard. */\n newDrives: z.string().min(1).optional(),\n })\n .optional(),\n router: z\n .strictObject({\n /** Wait this long for a reactor to say whether it holds a\n * document. 0: no bound. Default 3_000. */\n probeTimeoutMs: z.number().int().nonnegative().optional(),\n /** Look again after this long for a document found on a later\n * backend. Default 30_000. */\n provisionalRouteMs: z.number().int().nonnegative().optional(),\n })\n .optional(),\n protocol: reactorProtocolSchema.optional(),\n // R1 core keys: identity/signing and storage namespace.\n renown: z\n .strictObject({\n url: z.string().optional(),\n networkId: z.string().optional(),\n chainId: z.number().int().optional(),\n })\n .optional(),\n namespace: z.string().min(1).optional(),\n // Core-declared, seeded by the host runtime. Token-able as a whole\n // (3.3): a `$map` over a producer's `drives` output (or an `$output` of\n // an array of declarations) renders the list at resolve time.\n drives: tokenField\n .any(z.array(buildDriveDeclarationSchema(tokenField.any)))\n .optional(),\n })\n .superRefine((reactor, ctx) => {\n const backends = reactor.backends ?? {};\n for (const [slug, name] of Object.entries(\n reactor.placement?.drives ?? {},\n )) {\n if (Object.hasOwn(backends, name)) continue;\n ctx.addIssue({\n code: \"custom\",\n path: [\"placement\", \"drives\", slug],\n message: `placement.drives.${slug} names backend \"${name}\", which is not in backends (${Object.keys(backends).join(\", \") || \"none\"}).`,\n });\n }\n const newDrives = reactor.placement?.newDrives;\n if (newDrives !== undefined && !Object.hasOwn(backends, newDrives)) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"placement\", \"newDrives\"],\n message: `placement.newDrives names backend \"${newDrives}\", which is not in backends (${Object.keys(backends).join(\", \") || \"none\"}).`,\n });\n }\n if (resolved) refineResolvedReactor(reactor, ctx);\n });\n\n /** Common runner options; runner modules extend it with their own. */\n const runnerBaseSchema = z.looseObject({\n module: z.string().min(1),\n defaultVerb: z.string().min(1).optional(),\n port: z.number().int().positive().optional(),\n /** Bind address; each runner documents its default. */\n host: z.string().min(1).optional(),\n /** THE COMPOSITION: plugin entries; presence is activation. */\n plugins: z.array(pluginEntrySchema).optional(),\n });\n\n /** A compound member wrapper. Sections are FULL STATEMENTS except `runner`,\n * which key-merges over the member's own. Plugins live in `runner.plugins`\n * (as on a standalone host); there is no wrapper-level `plugins`. */\n const childWrapperSchema = z.strictObject({\n host: z.string().min(1).regex(HOST_REF_PATTERN, HOST_REF_MESSAGE),\n // 0 passes here; the member runner's own schema decides whether it may.\n runner: runnerBaseSchema\n .partial()\n .extend({ port: z.number().int().min(0).max(65535).optional() })\n .optional(),\n config: z.looseObject({}).optional(),\n reactor: reactorSchema.optional(),\n /** Where the member runs: `own`, a child process of the compound\n * (`ph run <host>`), stopped through its stdin; `shared`, in the\n * compound's own process. Default: `own` next to a foreground member\n * (the Cli runner), `shared` otherwise. */\n process: memberProcessSchema.optional(),\n });\n\n const childrenSchema = z.record(z.string(), childWrapperSchema);\n\n const reactorHostSchema = z.strictObject({\n name: hostNameSchema,\n runner: runnerBaseSchema,\n config: z.looseObject({}).optional(),\n profile: profileSchema.optional(),\n reactor: reactorSchema.optional(),\n });\n\n const compoundHostSchema = z.strictObject({\n name: hostNameSchema,\n runner: runnerBaseSchema,\n children: childrenSchema,\n config: z.looseObject({}).optional(),\n profile: profileSchema.optional(),\n });\n\n return {\n reactorBackendSchema,\n reactorSchema,\n runnerBaseSchema,\n childWrapperSchema,\n childrenSchema,\n reactorHostSchema,\n compoundHostSchema,\n /** This set's field wrapper, for a runner's OWN token-able fields inside\n * `defineHostSchemas`: declared, `T | Token` in and `T` out; resolved,\n * `T` only. Both modes share one static type. */\n tokenable: tokenField.any,\n /** As `tokenable`, but the only token accepted is `$env`. */\n envTokenable: tokenField.env,\n };\n}\n\nexport type HostSchemas = ReturnType<typeof buildHostSchemas>;\n\n/** The host schema set in declared (\"allow\": token-able fields take tokens)\n * or resolved (\"forbid\") form. */\nexport function makeHostSchemas(options: { tokens: TokenMode }): HostSchemas {\n return buildHostSchemas(\n options.tokens === \"allow\" ? ALLOW_TOKENS : FORBID_TOKENS,\n );\n}\n\nexport type PlacementKeyIssue = {\n path: (string | number)[];\n message: string;\n};\n\n/** The issues a host-level refinement raises, outside a zod parse. */\nfunction collectIssues(\n host: unknown,\n refine: (host: DeclaredReactorHost, ctx: z.RefinementCtx) => void,\n): PlacementKeyIssue[] {\n if (typeof host !== \"object\" || host === null || !(\"reactor\" in host)) {\n return [];\n }\n const issues: PlacementKeyIssue[] = [];\n const ctx = {\n addIssue: (issue: { path?: PropertyKey[]; message?: string }) => {\n issues.push({\n path: (issue.path ?? []).filter(\n (part): part is string | number => typeof part !== \"symbol\",\n ),\n message: issue.message ?? \"\",\n });\n },\n } as unknown as z.RefinementCtx;\n refine(host as DeclaredReactorHost, ctx);\n return issues;\n}\n\n/** withPlacementKeys' check, for a merged declared host parsed some other way. */\nexport function placementKeyIssues(host: unknown): PlacementKeyIssue[] {\n return collectIssues(host, refineDeclaredPlacementKeys);\n}\n\nexport const CONNECT_PRIMARY_MESSAGE =\n \"Connect doesn't use placement.primary. To choose where new drives go, use placement.newDrives.\";\n\n/**\n * A Connect host's placement rules, in either form. The router's primary is\n * the browser reactor, else the `newDrives` switchboard, else the only one,\n * so `placement.primary` means nothing here, and a Connect with several\n * switchboards and no browser reactor must say where new drives go. Apply it\n * last to the Connect runner's schema: `.superRefine(refineConnectReactor)`.\n */\nexport function refineConnectReactor(\n host: { reactor?: unknown },\n ctx: z.RefinementCtx,\n): void {\n const reactor = (host as DeclaredReactorHost).reactor;\n if (!reactor) return;\n if (reactor.placement?.primary !== undefined) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"reactor\", \"placement\", \"primary\"],\n message: CONNECT_PRIMARY_MESSAGE,\n });\n }\n const backends = Object.entries(reactor.backends ?? {});\n const remotes = backends\n .filter(([, backend]) => backend.kind === \"remote\")\n .map(([name]) => name);\n if (\n remotes.length > 1 &&\n remotes.length === backends.length &&\n reactor.placement?.newDrives === undefined\n ) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"reactor\", \"placement\", \"newDrives\"],\n message: `This Connect keeps no reactor in the browser and links ${remotes.length} switchboards (${remotes.join(\", \")}). Set placement.newDrives to the one new drives are created on.`,\n });\n }\n}\n\n/** refineConnectReactor's check, for a Connect host parsed some other way. */\nexport function connectReactorIssues(host: unknown): PlacementKeyIssue[] {\n return collectIssues(host, refineConnectReactor);\n}\n\n/** Adds the host-level placement key check to a runner's declared schema. */\nfunction withPlacementKeys<T>(schema: T): T {\n if (!(schema instanceof z.ZodType)) return schema;\n return schema.superRefine((host, ctx) => {\n if (typeof host === \"object\" && host !== null && \"reactor\" in host) {\n refineDeclaredPlacementKeys(host as DeclaredReactorHost, ctx);\n }\n }) as T;\n}\n\n/**\n * One runner definition, two schemas (3.5): `build` runs over the DECLARED\n * set (tokens allowed; its z.input types host files) and the RESOLVED set\n * (no tokens; `validateHost` checks it before the verb). Export both, type\n * the host as `z.input<typeof declaredHostSchema>`, refine last inside the\n * builder (zod can't extend a refined object), and wrap the runner's own\n * token-able fields with `s.tokenable` / `s.envTokenable`.\n */\nexport function defineHostSchemas<T>(build: (schemas: HostSchemas) => T): {\n declaredHostSchema: T;\n hostSchema: T;\n} {\n return {\n declaredHostSchema: withPlacementKeys(build(declaredSchemas)),\n hostSchema: build(resolvedSchemas),\n };\n}\n\nconst declaredSchemas = makeHostSchemas({ tokens: \"allow\" });\nconst resolvedSchemas = makeHostSchemas({ tokens: \"forbid\" });\n\n/* The exported base blocks are the RESOLVED form (what verbs receive). The\n * declared forms are `declaredHostSchemas` / `defineHostSchemas`. */\nexport const declaredHostSchemas: HostSchemas = declaredSchemas;\nexport const reactorBackendSchema = resolvedSchemas.reactorBackendSchema;\nexport const reactorSchema = resolvedSchemas.reactorSchema;\nexport const runnerBaseSchema = resolvedSchemas.runnerBaseSchema;\nexport const childWrapperSchema = resolvedSchemas.childWrapperSchema;\nexport const childrenSchema = resolvedSchemas.childrenSchema;\nexport const reactorHostSchema = resolvedSchemas.reactorHostSchema;\nexport const compoundHostSchema = resolvedSchemas.compoundHostSchema;\n\n/** The generic compound runner's host: the base with its wiring config. */\nconst genericCompound = defineHostSchemas((s) =>\n s.compoundHostSchema\n .extend({ config: compoundWiringSchema.optional() })\n .superRefine(refineStartOrder),\n);\nexport const genericCompoundHostSchema = genericCompound.hostSchema;\nexport const declaredGenericCompoundHostSchema =\n genericCompound.declaredHostSchema;\n\n/* -------------------------------------------------------------------- types */\n\nexport type Profile = z.infer<typeof profileSchema>;\nexport type ReactorProtocol = z.infer<typeof reactorProtocolSchema>;\nexport type ReactorBackend = z.infer<typeof reactorBackendSchema>;\nexport type ReactorBackendKind = ReactorBackend[\"kind\"];\nexport type ReactorStorageConfig = NonNullable<ReactorBackend[\"storage\"]>;\nexport type ReactorPackageConfig = NonNullable<ReactorBackend[\"packages\"]>;\nexport type ReactorRemoteConfig = NonNullable<ReactorBackend[\"remote\"]>;\nexport type ReactorConfig = z.infer<typeof reactorSchema>;\nexport type RunnerBase = z.infer<typeof runnerBaseSchema>;\nexport type ChildWrapper = z.infer<typeof childWrapperSchema>;\nexport type CompoundWiring = z.infer<typeof compoundWiringSchema>;\n\n/** What a host.js author writes (z.input), per runner kind. The `never`\n * sides make reactor XOR children a type error. */\nexport type ReactorHostInput = z.input<\n typeof declaredSchemas.reactorHostSchema\n> & {\n children?: never;\n};\nexport type CompoundHostInput = z.input<\n typeof declaredSchemas.compoundHostSchema\n> & {\n reactor?: never;\n};\nexport type HostDefinition = ReactorHostInput | CompoundHostInput;\n\n/** What a verb receives (z.output) from the base schemas. */\nexport type ReactorHost = z.output<typeof reactorHostSchema>;\nexport type CompoundHost = z.output<typeof compoundHostSchema>;\n\n/* --------------------------------------------------------------- JSON Schema */\n\nconst SCHEMA_BASE = \"https://powerhouse.inc/schemas\";\n\n/** One host schema as an editor JSON Schema with a stable `$id` — the\n * per-runner emission helper (runner packages emit their own hostSchema). */\nexport function emitHostJsonSchema(\n name: string,\n schema: z.ZodType,\n): Record<string, unknown> {\n return {\n $id: `${SCHEMA_BASE}/${name}.schema.json`,\n ...z.toJSONSchema(schema, { io: \"input\" }),\n };\n}\n\n/** The emitted-schema set, keyed by published filename. Pure — the\n * emit-schemas script writes these and the drift test re-derives them. */\nexport function emittedHostSchemas(): Record<string, unknown> {\n return {\n // Editor schemas describe what authors write: the declared form.\n \"host-reactor.schema.json\": emitHostJsonSchema(\n \"host-reactor\",\n declaredSchemas.reactorHostSchema,\n ),\n \"host-compound.schema.json\": emitHostJsonSchema(\n \"host-compound\",\n declaredSchemas.compoundHostSchema,\n ),\n };\n}\n","/**\n * Pure built-in `$env` substitution: the `\"${userData}\"` / `\"${projectRoot}\"`\n * / `\"${package}\"` string sugar, deep-applied to a JSON-shaped value. No node\n * imports, so it ships in `./schema`; the node default for userData is\n * placeholders.ts.\n */\n\nexport interface BuiltinEnv {\n userData?: string;\n projectRoot?: string;\n /** The root of the package that supplies the host (its real folder); the\n * project root for a project host. */\n package?: string;\n}\n\n/** The always-resolvable `$env` names (also the `\"${name}\"` sugar). */\nexport const BUILTIN_ENV_NAMES: readonly (keyof BuiltinEnv)[] = [\n \"userData\",\n \"projectRoot\",\n \"package\",\n];\n\nexport function isBuiltinEnvName(name: string): name is keyof BuiltinEnv {\n return (BUILTIN_ENV_NAMES as readonly string[]).includes(name);\n}\n\nconst BUILTIN = new RegExp(`\\\\$\\\\{(${BUILTIN_ENV_NAMES.join(\"|\")})\\\\}`, \"g\");\n\nfunction substitute(text: string, env: BuiltinEnv): string {\n return text.replace(\n BUILTIN,\n (match, name: keyof BuiltinEnv) => env[name] ?? match,\n );\n}\n\n/** Deep-substitute the built-ins that `env` provides in every string; an\n * absent built-in is left as written. The input is never mutated. */\nexport function substituteBuiltinEnv<T>(value: T, env: BuiltinEnv): T {\n return substituteValue(value, env) as T;\n}\n\nfunction substituteValue(value: unknown, env: BuiltinEnv): unknown {\n if (typeof value === \"string\") return substitute(value, env);\n if (Array.isArray(value)) return value.map((v) => substituteValue(v, env));\n if (value !== null && typeof value === \"object\") {\n const out: Record<string, unknown> = {};\n for (const [k, v] of Object.entries(value)) {\n out[k] = substituteValue(v, env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A,OAAO;AACT"}
|
|
@@ -46,6 +46,12 @@ declare const runnerKindSchema: z.ZodEnum<{
|
|
|
46
46
|
reactor: "reactor";
|
|
47
47
|
}>;
|
|
48
48
|
type RunnerKind = z.infer<typeof runnerKindSchema>;
|
|
49
|
+
/** A compound member's process: its own, or the compound's (`shared`). */
|
|
50
|
+
declare const memberProcessSchema: z.ZodEnum<{
|
|
51
|
+
own: "own";
|
|
52
|
+
shared: "shared";
|
|
53
|
+
}>;
|
|
54
|
+
type MemberProcess = z.infer<typeof memberProcessSchema>;
|
|
49
55
|
declare const reactorBackendKindSchema: z.ZodEnum<{
|
|
50
56
|
"in-process": "in-process";
|
|
51
57
|
remote: "remote";
|
|
@@ -172,7 +178,6 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
172
178
|
refuse: "refuse";
|
|
173
179
|
}>>;
|
|
174
180
|
}, z.core.$strict>>;
|
|
175
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
176
181
|
renown: z.ZodOptional<z.ZodObject<{
|
|
177
182
|
url: z.ZodOptional<z.ZodString>;
|
|
178
183
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -289,7 +294,6 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
289
294
|
refuse: "refuse";
|
|
290
295
|
}>>;
|
|
291
296
|
}, z.core.$strict>>;
|
|
292
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
293
297
|
renown: z.ZodOptional<z.ZodObject<{
|
|
294
298
|
url: z.ZodOptional<z.ZodString>;
|
|
295
299
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -318,6 +322,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
318
322
|
}, z.core.$strict>>;
|
|
319
323
|
}, z.core.$strict>>>>;
|
|
320
324
|
}, z.core.$strict>>;
|
|
325
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
326
|
+
own: "own";
|
|
327
|
+
shared: "shared";
|
|
328
|
+
}>>;
|
|
321
329
|
}, z.core.$strict>;
|
|
322
330
|
childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
323
331
|
host: z.ZodString;
|
|
@@ -395,7 +403,6 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
395
403
|
refuse: "refuse";
|
|
396
404
|
}>>;
|
|
397
405
|
}, z.core.$strict>>;
|
|
398
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
399
406
|
renown: z.ZodOptional<z.ZodObject<{
|
|
400
407
|
url: z.ZodOptional<z.ZodString>;
|
|
401
408
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -424,6 +431,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
424
431
|
}, z.core.$strict>>;
|
|
425
432
|
}, z.core.$strict>>>>;
|
|
426
433
|
}, z.core.$strict>>;
|
|
434
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
own: "own";
|
|
436
|
+
shared: "shared";
|
|
437
|
+
}>>;
|
|
427
438
|
}, z.core.$strict>>;
|
|
428
439
|
reactorHostSchema: z.ZodObject<{
|
|
429
440
|
name: z.ZodString;
|
|
@@ -507,7 +518,6 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
507
518
|
refuse: "refuse";
|
|
508
519
|
}>>;
|
|
509
520
|
}, z.core.$strict>>;
|
|
510
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
511
521
|
renown: z.ZodOptional<z.ZodObject<{
|
|
512
522
|
url: z.ZodOptional<z.ZodString>;
|
|
513
523
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -627,7 +637,6 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
627
637
|
refuse: "refuse";
|
|
628
638
|
}>>;
|
|
629
639
|
}, z.core.$strict>>;
|
|
630
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
631
640
|
renown: z.ZodOptional<z.ZodObject<{
|
|
632
641
|
url: z.ZodOptional<z.ZodString>;
|
|
633
642
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -656,6 +665,10 @@ declare function buildHostSchemas(tokenField: FieldWrappers): {
|
|
|
656
665
|
}, z.core.$strict>>;
|
|
657
666
|
}, z.core.$strict>>>>;
|
|
658
667
|
}, z.core.$strict>>;
|
|
668
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
669
|
+
own: "own";
|
|
670
|
+
shared: "shared";
|
|
671
|
+
}>>;
|
|
659
672
|
}, z.core.$strict>>;
|
|
660
673
|
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
661
674
|
profile: z.ZodOptional<z.ZodObject<{
|
|
@@ -805,7 +818,6 @@ declare const declaredSchemas: {
|
|
|
805
818
|
refuse: "refuse";
|
|
806
819
|
}>>;
|
|
807
820
|
}, z.core.$strict>>;
|
|
808
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
809
821
|
renown: z.ZodOptional<z.ZodObject<{
|
|
810
822
|
url: z.ZodOptional<z.ZodString>;
|
|
811
823
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -922,7 +934,6 @@ declare const declaredSchemas: {
|
|
|
922
934
|
refuse: "refuse";
|
|
923
935
|
}>>;
|
|
924
936
|
}, z.core.$strict>>;
|
|
925
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
926
937
|
renown: z.ZodOptional<z.ZodObject<{
|
|
927
938
|
url: z.ZodOptional<z.ZodString>;
|
|
928
939
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -951,6 +962,10 @@ declare const declaredSchemas: {
|
|
|
951
962
|
}, z.core.$strict>>;
|
|
952
963
|
}, z.core.$strict>>>>;
|
|
953
964
|
}, z.core.$strict>>;
|
|
965
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
966
|
+
own: "own";
|
|
967
|
+
shared: "shared";
|
|
968
|
+
}>>;
|
|
954
969
|
}, z.core.$strict>;
|
|
955
970
|
childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
956
971
|
host: z.ZodString;
|
|
@@ -1028,7 +1043,6 @@ declare const declaredSchemas: {
|
|
|
1028
1043
|
refuse: "refuse";
|
|
1029
1044
|
}>>;
|
|
1030
1045
|
}, z.core.$strict>>;
|
|
1031
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1032
1046
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1033
1047
|
url: z.ZodOptional<z.ZodString>;
|
|
1034
1048
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1057,6 +1071,10 @@ declare const declaredSchemas: {
|
|
|
1057
1071
|
}, z.core.$strict>>;
|
|
1058
1072
|
}, z.core.$strict>>>>;
|
|
1059
1073
|
}, z.core.$strict>>;
|
|
1074
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
1075
|
+
own: "own";
|
|
1076
|
+
shared: "shared";
|
|
1077
|
+
}>>;
|
|
1060
1078
|
}, z.core.$strict>>;
|
|
1061
1079
|
reactorHostSchema: z.ZodObject<{
|
|
1062
1080
|
name: z.ZodString;
|
|
@@ -1140,7 +1158,6 @@ declare const declaredSchemas: {
|
|
|
1140
1158
|
refuse: "refuse";
|
|
1141
1159
|
}>>;
|
|
1142
1160
|
}, z.core.$strict>>;
|
|
1143
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1144
1161
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1145
1162
|
url: z.ZodOptional<z.ZodString>;
|
|
1146
1163
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1260,7 +1277,6 @@ declare const declaredSchemas: {
|
|
|
1260
1277
|
refuse: "refuse";
|
|
1261
1278
|
}>>;
|
|
1262
1279
|
}, z.core.$strict>>;
|
|
1263
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1264
1280
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1265
1281
|
url: z.ZodOptional<z.ZodString>;
|
|
1266
1282
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1289,6 +1305,10 @@ declare const declaredSchemas: {
|
|
|
1289
1305
|
}, z.core.$strict>>;
|
|
1290
1306
|
}, z.core.$strict>>>>;
|
|
1291
1307
|
}, z.core.$strict>>;
|
|
1308
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
1309
|
+
own: "own";
|
|
1310
|
+
shared: "shared";
|
|
1311
|
+
}>>;
|
|
1292
1312
|
}, z.core.$strict>>;
|
|
1293
1313
|
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
1294
1314
|
profile: z.ZodOptional<z.ZodObject<{
|
|
@@ -1401,7 +1421,6 @@ declare const reactorSchema: z.ZodObject<{
|
|
|
1401
1421
|
refuse: "refuse";
|
|
1402
1422
|
}>>;
|
|
1403
1423
|
}, z.core.$strict>>;
|
|
1404
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1405
1424
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1406
1425
|
url: z.ZodOptional<z.ZodString>;
|
|
1407
1426
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1518,7 +1537,6 @@ declare const childWrapperSchema: z.ZodObject<{
|
|
|
1518
1537
|
refuse: "refuse";
|
|
1519
1538
|
}>>;
|
|
1520
1539
|
}, z.core.$strict>>;
|
|
1521
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1522
1540
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1523
1541
|
url: z.ZodOptional<z.ZodString>;
|
|
1524
1542
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1547,6 +1565,10 @@ declare const childWrapperSchema: z.ZodObject<{
|
|
|
1547
1565
|
}, z.core.$strict>>;
|
|
1548
1566
|
}, z.core.$strict>>>>;
|
|
1549
1567
|
}, z.core.$strict>>;
|
|
1568
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
1569
|
+
own: "own";
|
|
1570
|
+
shared: "shared";
|
|
1571
|
+
}>>;
|
|
1550
1572
|
}, z.core.$strict>;
|
|
1551
1573
|
declare const childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1552
1574
|
host: z.ZodString;
|
|
@@ -1624,7 +1646,6 @@ declare const childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1624
1646
|
refuse: "refuse";
|
|
1625
1647
|
}>>;
|
|
1626
1648
|
}, z.core.$strict>>;
|
|
1627
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1628
1649
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1629
1650
|
url: z.ZodOptional<z.ZodString>;
|
|
1630
1651
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1653,6 +1674,10 @@ declare const childrenSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
1653
1674
|
}, z.core.$strict>>;
|
|
1654
1675
|
}, z.core.$strict>>>>;
|
|
1655
1676
|
}, z.core.$strict>>;
|
|
1677
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
1678
|
+
own: "own";
|
|
1679
|
+
shared: "shared";
|
|
1680
|
+
}>>;
|
|
1656
1681
|
}, z.core.$strict>>;
|
|
1657
1682
|
declare const reactorHostSchema: z.ZodObject<{
|
|
1658
1683
|
name: z.ZodString;
|
|
@@ -1736,7 +1761,6 @@ declare const reactorHostSchema: z.ZodObject<{
|
|
|
1736
1761
|
refuse: "refuse";
|
|
1737
1762
|
}>>;
|
|
1738
1763
|
}, z.core.$strict>>;
|
|
1739
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1740
1764
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1741
1765
|
url: z.ZodOptional<z.ZodString>;
|
|
1742
1766
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1856,7 +1880,6 @@ declare const compoundHostSchema: z.ZodObject<{
|
|
|
1856
1880
|
refuse: "refuse";
|
|
1857
1881
|
}>>;
|
|
1858
1882
|
}, z.core.$strict>>;
|
|
1859
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1860
1883
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1861
1884
|
url: z.ZodOptional<z.ZodString>;
|
|
1862
1885
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -1885,6 +1908,10 @@ declare const compoundHostSchema: z.ZodObject<{
|
|
|
1885
1908
|
}, z.core.$strict>>;
|
|
1886
1909
|
}, z.core.$strict>>>>;
|
|
1887
1910
|
}, z.core.$strict>>;
|
|
1911
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
1912
|
+
own: "own";
|
|
1913
|
+
shared: "shared";
|
|
1914
|
+
}>>;
|
|
1888
1915
|
}, z.core.$strict>>;
|
|
1889
1916
|
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
1890
1917
|
profile: z.ZodOptional<z.ZodObject<{
|
|
@@ -1984,7 +2011,6 @@ declare const genericCompoundHostSchema: z.ZodObject<{
|
|
|
1984
2011
|
refuse: "refuse";
|
|
1985
2012
|
}>>;
|
|
1986
2013
|
}, z.core.$strict>>;
|
|
1987
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
1988
2014
|
renown: z.ZodOptional<z.ZodObject<{
|
|
1989
2015
|
url: z.ZodOptional<z.ZodString>;
|
|
1990
2016
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -2013,6 +2039,10 @@ declare const genericCompoundHostSchema: z.ZodObject<{
|
|
|
2013
2039
|
}, z.core.$strict>>;
|
|
2014
2040
|
}, z.core.$strict>>>>;
|
|
2015
2041
|
}, z.core.$strict>>;
|
|
2042
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
2043
|
+
own: "own";
|
|
2044
|
+
shared: "shared";
|
|
2045
|
+
}>>;
|
|
2016
2046
|
}, z.core.$strict>>;
|
|
2017
2047
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2018
2048
|
appId: z.ZodOptional<z.ZodString>;
|
|
@@ -2116,7 +2146,6 @@ declare const declaredGenericCompoundHostSchema: z.ZodObject<{
|
|
|
2116
2146
|
refuse: "refuse";
|
|
2117
2147
|
}>>;
|
|
2118
2148
|
}, z.core.$strict>>;
|
|
2119
|
-
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
2120
2149
|
renown: z.ZodOptional<z.ZodObject<{
|
|
2121
2150
|
url: z.ZodOptional<z.ZodString>;
|
|
2122
2151
|
networkId: z.ZodOptional<z.ZodString>;
|
|
@@ -2145,6 +2174,10 @@ declare const declaredGenericCompoundHostSchema: z.ZodObject<{
|
|
|
2145
2174
|
}, z.core.$strict>>;
|
|
2146
2175
|
}, z.core.$strict>>>>;
|
|
2147
2176
|
}, z.core.$strict>>;
|
|
2177
|
+
process: z.ZodOptional<z.ZodEnum<{
|
|
2178
|
+
own: "own";
|
|
2179
|
+
shared: "shared";
|
|
2180
|
+
}>>;
|
|
2148
2181
|
}, z.core.$strict>>;
|
|
2149
2182
|
profile: z.ZodOptional<z.ZodObject<{
|
|
2150
2183
|
appId: z.ZodOptional<z.ZodString>;
|
|
@@ -2188,6 +2221,6 @@ declare function emitHostJsonSchema(name: string, schema: z.ZodType): Record<str
|
|
|
2188
2221
|
* emit-schemas script writes these and the drift test re-derives them. */
|
|
2189
2222
|
declare function emittedHostSchemas(): Record<string, unknown>;
|
|
2190
2223
|
//#endregion
|
|
2191
|
-
export {
|
|
2224
|
+
export { ItemToken as $, declaredGenericCompoundHostSchema as A, profileSchema as B, RunnerBase as C, outputTokenSchema as Ct, compoundHostSchema as D, tokenable as Dt, childrenSchema as E, tokenSchema as Et, genericCompoundHostSchema as F, reactorSchema as G, reactorBackendSchema as H, hostNameSchema as I, runnerBaseSchema as J, refineConnectReactor as K, makeHostSchemas as L, defineHostSchemas as M, emitHostJsonSchema as N, compoundWiringSchema as O, emittedHostSchemas as P, EnvToken as Q, memberProcessSchema as R, ReactorStorageConfig as S, mapTokenSchema as St, childWrapperSchema as T, tokenKeyOf as Tt, reactorHostSchema as U, reactorBackendKindSchema as V, reactorProtocolSchema as W, ArrayMapToken as X, runnerKindSchema as Y, ConcatToken as Z, ReactorHost as _, findToken as _t, CompoundWiring as a, RefFn as at, ReactorProtocol as b, itemTokenSchema as bt, HOST_NAME_PATTERN as c, Template as ct, MemberProcess as d, TokenKey as dt, KeyToken as et, PlacementKeyIssue as f, TokenMode as ft, ReactorConfig as g, envTokenable as gt, ReactorBackendKind as h, envTokenSchema as ht, CompoundHostInput as i, RecordMapToken as it, declaredHostSchemas as j, connectReactorIssues as k, HostDefinition as l, Token as lt, ReactorBackend as m, concatTokenSchema as mt, ChildWrapper as n, OutputPath as nt, HOST_NAME_MAX_LENGTH as o, TOKEN_ESCAPE_KEY as ot, Profile as p, TokenableSchema as pt, refineStartOrder as q, CompoundHost as r, OutputToken as rt, HOST_NAME_MESSAGE as s, TOKEN_KEYS as st, CONNECT_PRIMARY_MESSAGE as t, MapToken as tt, HostSchemas as u, TokenFor as ut, ReactorHostInput as v, forbidRef as vt, RunnerKind as w, ref as wt, ReactorRemoteConfig as x, keyTokenSchema as xt, ReactorPackageConfig as y, isToken as yt, placementKeyIssues as z };
|
|
2192
2225
|
export {};
|
|
2193
|
-
//# sourceMappingURL=host-schemas-
|
|
2226
|
+
//# sourceMappingURL=host-schemas-B6_-P11_.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-schemas-B6_-P11_.d.mts","names":[],"sources":["../src/host-schemas.ts"],"mappings":";;;;;;;;;;;;;;;;cA2Ba,mBAAiB;cACjB;cACA;cAEA,gBAAc,EAAA;cAkCd,eAAa,EAAA;;;;;GAKxB,EAAA,KAAA;cAEW,uBAAqB,EAAA;;;;;;;;;;;;;;;;GAYhC,EAAA,KAAA;cAEW,kBAAgB,EAAA;;;;KACjB,aAAa,EAAE,aAAa;;cAG3B,qBAAmB,EAAA;;;;KACpB,gBAAgB,EAAE,aAAa;cAE9B,0BAAwB,EAAA;;;;;;;;cAiBxB,sBAAoB,EAAA;;;;GAY/B,EAAA,KAAA;;;;iBAKc,iBACd;EAAQ,UAA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