@powerhousedao/host-core 6.2.3-dev.77 → 6.2.3-dev.78

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.
@@ -1,4 +1,4 @@
1
- import { _ as RunnerContext, n as RunCompoundResult, q as HostDefinition } from "../compound-DlaK_sWa.mjs";
1
+ import { Y as HostDefinition, n as RunCompoundResult, y as RunnerContext } from "../compound-DXcOFNcC.mjs";
2
2
  //#region src/runners/compound.d.ts
3
3
  /**
4
4
  * The GENERIC compound runner module (phase 3): supervises the members a
@@ -32,7 +32,6 @@ export declare const hostSchema: import("zod").ZodObject<{
32
32
  runner: import("zod").ZodOptional<import("zod").ZodObject<{
33
33
  module: import("zod").ZodOptional<import("zod").ZodString>;
34
34
  defaultVerb: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
35
- port: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
36
35
  host: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
37
36
  plugins: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
38
37
  module: import("zod").ZodString;
@@ -40,6 +39,7 @@ export declare const hostSchema: import("zod").ZodObject<{
40
39
  verbs: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"*">, import("zod").ZodArray<import("zod").ZodString>]>>;
41
40
  config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
42
41
  }, import("zod/v4/core").$strict>]>>>>;
42
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
43
43
  }, import("zod/v4/core").$loose>>;
44
44
  config: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
45
45
  reactor: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -70,17 +70,9 @@ export declare const hostSchema: import("zod").ZodObject<{
70
70
  remote: import("zod").ZodOptional<import("zod").ZodObject<{
71
71
  url: import("@powerhousedao/shared/host-tokens").TokenableSchema<import("zod").ZodURL>;
72
72
  }, import("zod/v4/core").$strict>>;
73
- projection: import("zod").ZodOptional<import("zod").ZodObject<{
74
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
75
- dbPoolSize: import("zod").ZodOptional<import("zod").ZodNumber>;
76
- }, import("zod/v4/core").$strict>>;
77
- executors: import("zod").ZodOptional<import("zod").ZodObject<{
78
- numWorkers: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"auto">]>>;
79
- }, import("zod/v4/core").$strict>>;
80
73
  }, import("zod/v4/core").$strict>>>;
81
74
  placement: import("zod").ZodOptional<import("zod").ZodObject<{
82
75
  primary: import("zod").ZodOptional<import("zod").ZodString>;
83
- default: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
84
76
  }, import("zod/v4/core").$strict>>;
85
77
  protocol: import("zod").ZodOptional<import("zod").ZodObject<{
86
78
  featureFlags: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -104,15 +96,7 @@ export declare const hostSchema: import("zod").ZodObject<{
104
96
  networkId: import("zod").ZodOptional<import("zod").ZodString>;
105
97
  chainId: import("zod").ZodOptional<import("zod").ZodNumber>;
106
98
  }, import("zod/v4/core").$strict>>;
107
- packages: import("zod").ZodOptional<import("zod").ZodObject<{
108
- registryUrl: import("zod").ZodOptional<import("zod").ZodString>;
109
- }, import("zod/v4/core").$strict>>;
110
99
  namespace: import("zod").ZodOptional<import("zod").ZodString>;
111
- auth: import("zod").ZodOptional<import("zod").ZodObject<{
112
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
113
- admins: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
114
- renown: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
115
- }, import("zod/v4/core").$strict>>;
116
100
  drives: import("zod").ZodOptional<import("@powerhousedao/shared/host-tokens").TokenableSchema<import("zod").ZodArray<import("zod").ZodObject<{
117
101
  slug: import("zod").ZodString;
118
102
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -163,7 +147,6 @@ export declare const declaredHostSchema: import("zod").ZodObject<{
163
147
  runner: import("zod").ZodOptional<import("zod").ZodObject<{
164
148
  module: import("zod").ZodOptional<import("zod").ZodString>;
165
149
  defaultVerb: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
166
- port: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
167
150
  host: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
168
151
  plugins: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
169
152
  module: import("zod").ZodString;
@@ -171,6 +154,7 @@ export declare const declaredHostSchema: import("zod").ZodObject<{
171
154
  verbs: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"*">, import("zod").ZodArray<import("zod").ZodString>]>>;
172
155
  config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
173
156
  }, import("zod/v4/core").$strict>]>>>>;
157
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
174
158
  }, import("zod/v4/core").$loose>>;
175
159
  config: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
176
160
  reactor: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -201,17 +185,9 @@ export declare const declaredHostSchema: import("zod").ZodObject<{
201
185
  remote: import("zod").ZodOptional<import("zod").ZodObject<{
202
186
  url: import("@powerhousedao/shared/host-tokens").TokenableSchema<import("zod").ZodURL>;
203
187
  }, import("zod/v4/core").$strict>>;
204
- projection: import("zod").ZodOptional<import("zod").ZodObject<{
205
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
206
- dbPoolSize: import("zod").ZodOptional<import("zod").ZodNumber>;
207
- }, import("zod/v4/core").$strict>>;
208
- executors: import("zod").ZodOptional<import("zod").ZodObject<{
209
- numWorkers: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"auto">]>>;
210
- }, import("zod/v4/core").$strict>>;
211
188
  }, import("zod/v4/core").$strict>>>;
212
189
  placement: import("zod").ZodOptional<import("zod").ZodObject<{
213
190
  primary: import("zod").ZodOptional<import("zod").ZodString>;
214
- default: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
215
191
  }, import("zod/v4/core").$strict>>;
216
192
  protocol: import("zod").ZodOptional<import("zod").ZodObject<{
217
193
  featureFlags: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -235,15 +211,7 @@ export declare const declaredHostSchema: import("zod").ZodObject<{
235
211
  networkId: import("zod").ZodOptional<import("zod").ZodString>;
236
212
  chainId: import("zod").ZodOptional<import("zod").ZodNumber>;
237
213
  }, import("zod/v4/core").$strict>>;
238
- packages: import("zod").ZodOptional<import("zod").ZodObject<{
239
- registryUrl: import("zod").ZodOptional<import("zod").ZodString>;
240
- }, import("zod/v4/core").$strict>>;
241
214
  namespace: import("zod").ZodOptional<import("zod").ZodString>;
242
- auth: import("zod").ZodOptional<import("zod").ZodObject<{
243
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
244
- admins: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
245
- renown: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
246
- }, import("zod/v4/core").$strict>>;
247
215
  drives: import("zod").ZodOptional<import("@powerhousedao/shared/host-tokens").TokenableSchema<import("zod").ZodArray<import("zod").ZodObject<{
248
216
  slug: import("zod").ZodString;
249
217
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;;;;qBA0Ba;qBAEA,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA4B;qBACtC,kCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAoC;wBAc7C,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,MACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,MACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ"}
1
+ {"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;;;;qBA0Ba;qBAEA,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA4B;qBACtC,kCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAoC;wBAc7C,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,MACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,MACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ"}
@@ -1,4 +1,4 @@
1
- import { b as readProjectName, i as runCompound, kt as genericCompoundHostSchema, t as compoundStartVerb, wt as declaredGenericCompoundHostSchema } from "../compound-Gjt5rBfF.mjs";
1
+ import { At as genericCompoundHostSchema, Tt as declaredGenericCompoundHostSchema, i as runCompound, t as compoundStartVerb, x as readProjectName } from "../compound-Cfqa5Jal.mjs";
2
2
  //#region src/runners/compound.ts
3
3
  /**
4
4
  * The GENERIC compound runner module (phase 3): supervises the members a
package/dist/schema.d.mts CHANGED
@@ -1,7 +1,22 @@
1
- import { $ as TokenFor, A as profileSchema, B as ConcatToken, C as declaredGenericCompoundHostSchema, D as emittedHostSchemas, E as emitHostJsonSchema, F as reactorSchema, G as OutputPath, H as ItemToken, I as refineStartOrder, J as RefFn, K as OutputToken, L as runnerBaseSchema, M as reactorBackendSchema, N as reactorHostSchema, O as genericCompoundHostSchema, P as reactorProtocolSchema, Q as Token, R as runnerKindSchema, S as compoundWiringSchema, T as defineHostSchemas, U as KeyToken, V as EnvToken, W as MapToken, X as TOKEN_KEYS, Y as TOKEN_ESCAPE_KEY, Z as Template, _ as RunnerBase, a as HostDefinition, at as envTokenable, b as childrenSchema, c as ReactorBackend, ct as isToken, d as ReactorHost, dt as mapTokenSchema, et as TokenKey, f as ReactorHostInput, ft as outputTokenSchema, g as ReactorStorageConfig, gt as tokenable, h as ReactorRemoteConfig, ht as tokenSchema, i as CompoundWiring, it as envTokenSchema, j as reactorBackendKindSchema, k as makeHostSchemas, l as ReactorBackendKind, lt as itemTokenSchema, m as ReactorProtocol, mt as tokenKeyOf, n as CompoundHost, nt as TokenableSchema, o as HostSchemas, ot as findToken, p as ReactorPackageConfig, pt as ref, q as RecordMapToken, r as CompoundHostInput, rt as concatTokenSchema, s as Profile, st as forbidRef, t as ChildWrapper, tt as TokenMode, u as ReactorConfig, ut as keyTokenSchema, v as RunnerKind, w as declaredHostSchemas, x as compoundHostSchema, y as childWrapperSchema, z as ArrayMapToken } from "./host-schemas-mqOYNGot.mjs";
2
- import { D as PHHostOutputs, E as PHHost, O as PluginEntry, c as PluginEntryData, v as pluginEntryObjectSchema, y as pluginEntrySchema } from "./plugins-XL6WsvTL.mjs";
1
+ import { $ as TokenFor, A as profileSchema, B as ConcatToken, C as declaredGenericCompoundHostSchema, D as emittedHostSchemas, E as emitHostJsonSchema, F as reactorSchema, G as OutputPath, H as ItemToken, I as refineStartOrder, J as RefFn, K as OutputToken, L as runnerBaseSchema, M as reactorBackendSchema, N as reactorHostSchema, O as genericCompoundHostSchema, P as reactorProtocolSchema, Q as Token, R as runnerKindSchema, S as compoundWiringSchema, T as defineHostSchemas, U as KeyToken, V as EnvToken, W as MapToken, X as TOKEN_KEYS, Y as TOKEN_ESCAPE_KEY, Z as Template, _ as RunnerBase, a as HostDefinition, at as envTokenable, b as childrenSchema, c as ReactorBackend, ct as isToken, d as ReactorHost, dt as mapTokenSchema, et as TokenKey, f as ReactorHostInput, ft as outputTokenSchema, g as ReactorStorageConfig, gt as tokenable, h as ReactorRemoteConfig, ht as tokenSchema, i as CompoundWiring, it as envTokenSchema, j as reactorBackendKindSchema, k as makeHostSchemas, l as ReactorBackendKind, lt as itemTokenSchema, m as ReactorProtocol, mt as tokenKeyOf, n as CompoundHost, nt as TokenableSchema, o as HostSchemas, ot as findToken, p as ReactorPackageConfig, pt as ref, q as RecordMapToken, r as CompoundHostInput, rt as concatTokenSchema, s as Profile, st as forbidRef, t as ChildWrapper, tt as TokenMode, u as ReactorConfig, ut as keyTokenSchema, v as RunnerKind, w as declaredHostSchemas, x as compoundHostSchema, y as childWrapperSchema, z as ArrayMapToken } from "./host-schemas-B6DsXA0Y.mjs";
2
+ import { D as PHHostOutputs, E as PHHost, O as PluginEntry, c as PluginEntryData, v as pluginEntryObjectSchema, y as pluginEntrySchema } from "./plugins-EFYLaYQi.mjs";
3
3
  import { n as substituteBuiltinEnv, t as BuiltinEnv } from "./env-substitution-C_fVirPh.mjs";
4
4
  import { z } from "zod";
5
+ //#region src/host-export-schema.d.ts
6
+ /** `ph host export`: a declared host plus its members, keyed by folder. */
7
+ export declare const hostExportSchema: z.ZodObject<{
8
+ format: z.ZodLiteral<"ph-host-export">;
9
+ version: z.ZodLiteral<1>;
10
+ project: z.ZodObject<{
11
+ name: z.ZodString;
12
+ root: z.ZodString;
13
+ }, z.core.$strict>;
14
+ name: z.ZodString;
15
+ host: z.ZodCustom<HostDefinition, HostDefinition>;
16
+ members: z.ZodRecord<z.ZodString, z.ZodCustom<HostDefinition, HostDefinition>>;
17
+ }, z.core.$strict>;
18
+ type HostExport = z.input<typeof hostExportSchema>;
19
+ //#endregion
5
20
  //#region src/drive-schema.d.ts
6
21
  /**
7
22
  * The schema half of drives.ts, zod only so `./schema` stays neutral.
@@ -113,6 +128,6 @@ interface HostIssue {
113
128
  hint?: string;
114
129
  }
115
130
  //#endregion
116
- export { type ArrayMapToken, type BuiltinEnv, type CheckStage, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundWiring, type ConcatToken, type DriveDeclaration, type EnvToken, type HostDefinition, type HostIssue, type HostSchemas, type ItemToken, type KeyToken, type MapToken, type OutputPath, type OutputToken, type PHHost, type PHHostOutputs, type PluginEntry, type PluginEntryData, type Profile, type ReactorBackend, type ReactorBackendKind, type ReactorConfig, type ReactorHost, type ReactorHostInput, type ReactorPackageConfig, type ReactorProtocol, type ReactorRemoteConfig, type ReactorStorageConfig, type RecordMapToken, type RefFn, type RunnerBase, type RunnerHandle, type RunnerHandleData, type RunnerKind, type StartedHandle, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenableSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, outputTokenSchema, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineStartOrder, runnerBaseSchema, runnerKindSchema, substituteBuiltinEnv, tokenKeyOf, tokenSchema, tokenable };
131
+ export { type ArrayMapToken, type BuiltinEnv, type CheckStage, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundWiring, type ConcatToken, type DriveDeclaration, type EnvToken, type HostDefinition, type HostExport, type HostIssue, type HostSchemas, type ItemToken, type KeyToken, type MapToken, type OutputPath, type OutputToken, type PHHost, type PHHostOutputs, type PluginEntry, type PluginEntryData, type Profile, type ReactorBackend, type ReactorBackendKind, type ReactorConfig, type ReactorHost, type ReactorHostInput, type ReactorPackageConfig, type ReactorProtocol, type ReactorRemoteConfig, type ReactorStorageConfig, type RecordMapToken, type RefFn, type RunnerBase, type RunnerHandle, type RunnerHandleData, type RunnerKind, type StartedHandle, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenableSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, outputTokenSchema, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineStartOrder, runnerBaseSchema, runnerKindSchema, substituteBuiltinEnv, tokenKeyOf, tokenSchema, tokenable };
117
132
  export {};
118
133
  //# sourceMappingURL=schema.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.mts","names":[],"sources":["../src/drive-schema.ts","../src/runner-handle.ts","../src/host-issues.ts"],"mappings":";;;;;;;;;;;;;wBAWgB,4BACd,WAAW,QAAQ,EAAE,cAAc,gBAAgB,EAAE,aAAU,EAAA;;;;;;;;;;;;;;;;GAkBhE,EAAA,KAAA;qBAEY,wBAAsB,EAAA;;;;;;;;;;;;;;;;GAAyC,EAAA,KAAA;KAEhE,mBAAmB,EAAE,aAAa;qBAEjC,cAAY,EAAA,SAAA,EAAA;;;;;;;;;;;;;;;;GAAkC,EAAA,KAAA;;;;;wBAM3C,mBACd,YAAY,0BACZ,qBACA;;;;;;;;;UCrCe,aAAa,IAAI;EAChC,SAAS;;EAET,OAAO;;EAEP,YAAY;;;;qBAKD,oBAAkB,EAAA;;GAE7B,EAAA,KAAA;KAEU,mBAAmB,EAAE,aAAa;;;UAI7B,sBAAsB;EACrC,SAAS;EACT,QAAQ;EACR;;;;wBAiBc,gBAAgB,gBAAgB,gBAAgB;;;;KC7CpD;UAEK;EACf,OAAO;;EAEP;;EAEA;EACA;EACA"}
1
+ {"version":3,"file":"schema.d.mts","names":[],"sources":["../src/host-export-schema.ts","../src/drive-schema.ts","../src/runner-handle.ts","../src/host-issues.ts"],"mappings":";;;;;;qBAoCa,kBAAgB,EAAA;;;;;;;;;;GAuCzB,EAAA,KAAA;KAEQ,aAAa,EAAE,aAAa;;;;;;;;;;;wBClExB,4BACd,WAAW,QAAQ,EAAE,cAAc,gBAAgB,EAAE,aAAU,EAAA;;;;;;;;;;;;;;;;GAkBhE,EAAA,KAAA;qBAEY,wBAAsB,EAAA;;;;;;;;;;;;;;;;GAAyC,EAAA,KAAA;KAEhE,mBAAmB,EAAE,aAAa;qBAEjC,cAAY,EAAA,SAAA,EAAA;;;;;;;;;;;;;;;;GAAkC,EAAA,KAAA;;;;;wBAM3C,mBACd,YAAY,0BACZ,qBACA;;;;;;;;;UCrCe,aAAa,IAAI;EAChC,SAAS;;EAET,OAAO;;EAEP,YAAY;;;;qBAKD,oBAAkB,EAAA;;GAE7B,EAAA,KAAA;KAEU,mBAAmB,EAAE,aAAa;;;UAI7B,sBAAsB;EACrC,SAAS;EACT,QAAQ;EACR;;;;wBAiBc,gBAAgB,gBAAgB,gBAAgB;;;;KC7CpD;UAEK;EACf,OAAO;;EAEP;;EAEA;EACA;EACA"}
package/dist/schema.mjs CHANGED
@@ -1,6 +1,68 @@
1
- import { A as envTokenSchema, B as tokenKeyOf, C as buildDriveDeclarationSchema, D as TOKEN_ESCAPE_KEY, E as projectDriveIdWith, F as itemTokenSchema, H as tokenable, I as keyTokenSchema, L as mapTokenSchema, M as findToken, N as forbidRef, O as TOKEN_KEYS, P as isToken, R as outputTokenSchema, S as runnerKindSchema, T as drivesSchema, V as tokenSchema, _ as reactorHostSchema, a as compoundHostSchema, b as refineStartOrder, c as declaredHostSchemas, d as emittedHostSchemas, f as genericCompoundHostSchema, g as reactorBackendSchema, h as reactorBackendKindSchema, i as childrenSchema, j as envTokenable, k as concatTokenSchema, l as defineHostSchemas, m as profileSchema, n as substituteBuiltinEnv, o as compoundWiringSchema, p as makeHostSchemas, r as childWrapperSchema, s as declaredGenericCompoundHostSchema, u as emitHostJsonSchema, v as reactorProtocolSchema, w as driveDeclarationSchema, x as runnerBaseSchema, y as reactorSchema, z as ref } from "./env-substitution-BjpuE5fm.mjs";
1
+ import { A as envTokenSchema, B as tokenKeyOf, C as buildDriveDeclarationSchema, D as TOKEN_ESCAPE_KEY, E as projectDriveIdWith, F as itemTokenSchema, H as tokenable, I as keyTokenSchema, L as mapTokenSchema, M as findToken, N as forbidRef, O as TOKEN_KEYS, P as isToken, R as outputTokenSchema, S as runnerKindSchema, T as drivesSchema, V as tokenSchema, _ as reactorHostSchema, a as compoundHostSchema, b as refineStartOrder, c as declaredHostSchemas, d as emittedHostSchemas, f as genericCompoundHostSchema, g as reactorBackendSchema, h as reactorBackendKindSchema, i as childrenSchema, j as envTokenable, k as concatTokenSchema, l as defineHostSchemas, m as profileSchema, n as substituteBuiltinEnv, o as compoundWiringSchema, p as makeHostSchemas, r as childWrapperSchema, s as declaredGenericCompoundHostSchema, u as emitHostJsonSchema, v as reactorProtocolSchema, w as driveDeclarationSchema, x as runnerBaseSchema, y as reactorSchema, z as ref } from "./env-substitution-qS_lDcbn.mjs";
2
2
  import { pluginEntryObjectSchema, pluginEntrySchema } from "./plugins.mjs";
3
3
  import { z } from "zod";
4
+ //#region src/host-export-schema.ts
5
+ function isRecord$1(value) {
6
+ return typeof value === "object" && value !== null && !Array.isArray(value);
7
+ }
8
+ function childFolders(host) {
9
+ if (!isRecord$1(host) || !isRecord$1(host.children)) return [];
10
+ return Object.entries(host.children).flatMap(([key, child]) => isRecord$1(child) && typeof child.host === "string" ? [[key, child.host]] : []);
11
+ }
12
+ const declaredHostSchema = z.custom().superRefine((host, ctx) => {
13
+ const result = (isRecord$1(host) && "children" in host ? declaredHostSchemas.compoundHostSchema : declaredHostSchemas.reactorHostSchema).safeParse(host);
14
+ if (result.success) return;
15
+ for (const issue of result.error.issues) ctx.addIssue({
16
+ code: "custom",
17
+ message: issue.message,
18
+ path: issue.path
19
+ });
20
+ });
21
+ /** `ph host export`: a declared host plus its members, keyed by folder. */
22
+ const hostExportSchema = z.strictObject({
23
+ format: z.literal("ph-host-export"),
24
+ version: z.literal(1),
25
+ project: z.strictObject({
26
+ name: z.string().min(1),
27
+ root: z.string().min(1)
28
+ }),
29
+ name: z.string().min(1),
30
+ host: declaredHostSchema,
31
+ members: z.record(z.string(), declaredHostSchema)
32
+ }).superRefine((value, ctx) => {
33
+ const reached = /* @__PURE__ */ new Set();
34
+ const pending = [[["host"], value.host]];
35
+ for (let next = pending.shift(); next; next = pending.shift()) {
36
+ const [at, host] = next;
37
+ for (const [key, folder] of childFolders(host)) {
38
+ if (!(folder in value.members)) {
39
+ ctx.addIssue({
40
+ code: "custom",
41
+ path: [
42
+ ...at,
43
+ "children",
44
+ key,
45
+ "host"
46
+ ],
47
+ message: `Member folder "${folder}" is missing from members.`
48
+ });
49
+ continue;
50
+ }
51
+ if (reached.has(folder)) continue;
52
+ reached.add(folder);
53
+ pending.push([["members", folder], value.members[folder]]);
54
+ }
55
+ }
56
+ for (const folder of Object.keys(value.members)) {
57
+ if (reached.has(folder)) continue;
58
+ ctx.addIssue({
59
+ code: "custom",
60
+ path: ["members", folder],
61
+ message: `Member "${folder}" is not reached from the host's children.`
62
+ });
63
+ }
64
+ });
65
+ //#endregion
4
66
  //#region src/runner-handle.ts
5
67
  /** The data half of a handle, validated by the compound. `ready`/`shutdown`
6
68
  * are functions and promises, so they are checked as TS fields, not here. */
@@ -30,6 +92,6 @@ function toStartedHandle(value, where) {
30
92
  };
31
93
  }
32
94
  //#endregion
33
- export { TOKEN_ESCAPE_KEY, TOKEN_KEYS, buildDriveDeclarationSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, outputTokenSchema, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, projectDriveIdWith, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineStartOrder, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, substituteBuiltinEnv, toStartedHandle, tokenKeyOf, tokenSchema, tokenable };
95
+ export { TOKEN_ESCAPE_KEY, TOKEN_KEYS, buildDriveDeclarationSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, hostExportSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, outputTokenSchema, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, projectDriveIdWith, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineStartOrder, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, substituteBuiltinEnv, toStartedHandle, tokenKeyOf, tokenSchema, tokenable };
34
96
 
35
97
  //# sourceMappingURL=schema.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.mjs","names":[],"sources":["../src/runner-handle.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * What a server verb returns to its supervisor (typed-host-configs 3.1/3.6):\n * `RunnerHandle<O>`. Consumers read a started host only through `outputs`\n * (and `$output` tokens over them). A verb that returns nothing (one-shot,\n * or self-sustaining) is an empty handle.\n */\nexport interface RunnerHandle<O = Record<string, unknown>> {\n outputs: O;\n /** Resolves when the member is serving. */\n ready: Promise<void>;\n /** Reverse-order compound teardown (and standalone signal handling). */\n shutdown(): Promise<void>;\n}\n\n/** The data half of a handle, validated by the compound. `ready`/`shutdown`\n * are functions and promises, so they are checked as TS fields, not here. */\nexport const runnerHandleSchema = z.looseObject({\n outputs: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type RunnerHandleData = z.infer<typeof runnerHandleSchema>;\n\n/** A verb's return value, normalized: validated data plus the live fields\n * when present. */\nexport interface StartedHandle extends RunnerHandleData {\n outputs: Record<string, unknown>;\n ready?: PromiseLike<unknown>;\n shutdown?: () => unknown;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return isRecord(value) && typeof value.then === \"function\";\n}\n\nfunction isCallable(value: unknown): value is (this: unknown) => unknown {\n return typeof value === \"function\";\n}\n\n/** Normalize what a verb returned. `undefined` (a self-sustaining bridge)\n * is an empty handle; anything else must match runnerHandleSchema. */\nexport function toStartedHandle(value: unknown, where: string): StartedHandle {\n if (value === undefined || value === null) return { outputs: {} };\n const parsed = runnerHandleSchema.safeParse(value);\n if (!parsed.success) {\n throw new Error(\n `${where} returned an invalid runner handle:\\n${z.prettifyError(parsed.error)}`,\n );\n }\n const live = isRecord(value) ? value : {};\n const shutdown = live.shutdown;\n return {\n ...parsed.data,\n outputs: parsed.data.outputs ?? {},\n ...(isPromiseLike(live.ready) ? { ready: live.ready } : {}),\n ...(isCallable(shutdown) ? { shutdown: () => shutdown.call(value) } : {}),\n };\n}\n"],"mappings":";;;;;;AAkBA,MAAa,qBAAqB,EAAE,YAAY,EAC9C,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,EACtD,CAAC;AAYD,SAAS,SAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU;AAChD;AAEA,SAAS,cAAc,OAA+C;CACpE,OAAO,SAAS,KAAK,KAAK,OAAO,MAAM,SAAS;AAClD;AAEA,SAAS,WAAW,OAAqD;CACvE,OAAO,OAAO,UAAU;AAC1B;;;AAIA,SAAgB,gBAAgB,OAAgB,OAA8B;CAC5E,IAAI,UAAU,KAAA,KAAa,UAAU,MAAM,OAAO,EAAE,SAAS,CAAC,EAAE;CAChE,MAAM,SAAS,mBAAmB,UAAU,KAAK;CACjD,IAAI,CAAC,OAAO,SACV,MAAM,IAAI,MACR,GAAG,MAAM,uCAAuC,EAAE,cAAc,OAAO,KAAK,GAC9E;CAEF,MAAM,OAAO,SAAS,KAAK,IAAI,QAAQ,CAAC;CACxC,MAAM,WAAW,KAAK;CACtB,OAAO;EACL,GAAG,OAAO;EACV,SAAS,OAAO,KAAK,WAAW,CAAC;EACjC,GAAI,cAAc,KAAK,KAAK,IAAI,EAAE,OAAO,KAAK,MAAM,IAAI,CAAC;EACzD,GAAI,WAAW,QAAQ,IAAI,EAAE,gBAAgB,SAAS,KAAK,KAAK,EAAE,IAAI,CAAC;CACzE;AACF"}
1
+ {"version":3,"file":"schema.mjs","names":["isRecord"],"sources":["../src/host-export-schema.ts","../src/runner-handle.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { declaredHostSchemas, type HostDefinition } from \"./host-schemas.js\";\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction childFolders(host: unknown): [key: string, folder: string][] {\n if (!isRecord(host) || !isRecord(host.children)) return [];\n return Object.entries(host.children).flatMap(([key, child]) =>\n isRecord(child) && typeof child.host === \"string\"\n ? [[key, child.host] as [string, string]]\n : [],\n );\n}\n\n// Picked by structure, as the loader does, so issues name the field.\nconst declaredHostSchema = z\n .custom<HostDefinition>()\n .superRefine((host, ctx) => {\n const schema =\n isRecord(host) && \"children\" in host\n ? declaredHostSchemas.compoundHostSchema\n : declaredHostSchemas.reactorHostSchema;\n const result = schema.safeParse(host);\n if (result.success) return;\n for (const issue of result.error.issues) {\n ctx.addIssue({\n code: \"custom\",\n message: issue.message,\n path: issue.path,\n });\n }\n });\n\n/** `ph host export`: a declared host plus its members, keyed by folder. */\nexport const hostExportSchema = z\n .strictObject({\n format: z.literal(\"ph-host-export\"),\n version: z.literal(1),\n project: z.strictObject({\n name: z.string().min(1),\n root: z.string().min(1),\n }),\n name: z.string().min(1),\n host: declaredHostSchema,\n members: z.record(z.string(), declaredHostSchema),\n })\n .superRefine((value, ctx) => {\n const reached = new Set<string>();\n const pending: [at: string[], host: unknown][] = [[[\"host\"], value.host]];\n for (let next = pending.shift(); next; next = pending.shift()) {\n const [at, host] = next;\n for (const [key, folder] of childFolders(host)) {\n if (!(folder in value.members)) {\n ctx.addIssue({\n code: \"custom\",\n path: [...at, \"children\", key, \"host\"],\n message: `Member folder \"${folder}\" is missing from members.`,\n });\n continue;\n }\n if (reached.has(folder)) continue;\n reached.add(folder);\n pending.push([[\"members\", folder], value.members[folder]]);\n }\n }\n for (const folder of Object.keys(value.members)) {\n if (reached.has(folder)) continue;\n ctx.addIssue({\n code: \"custom\",\n path: [\"members\", folder],\n message: `Member \"${folder}\" is not reached from the host's children.`,\n });\n }\n });\n\nexport type HostExport = z.input<typeof hostExportSchema>;\n","import { z } from \"zod\";\n\n/**\n * What a server verb returns to its supervisor (typed-host-configs 3.1/3.6):\n * `RunnerHandle<O>`. Consumers read a started host only through `outputs`\n * (and `$output` tokens over them). A verb that returns nothing (one-shot,\n * or self-sustaining) is an empty handle.\n */\nexport interface RunnerHandle<O = Record<string, unknown>> {\n outputs: O;\n /** Resolves when the member is serving. */\n ready: Promise<void>;\n /** Reverse-order compound teardown (and standalone signal handling). */\n shutdown(): Promise<void>;\n}\n\n/** The data half of a handle, validated by the compound. `ready`/`shutdown`\n * are functions and promises, so they are checked as TS fields, not here. */\nexport const runnerHandleSchema = z.looseObject({\n outputs: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type RunnerHandleData = z.infer<typeof runnerHandleSchema>;\n\n/** A verb's return value, normalized: validated data plus the live fields\n * when present. */\nexport interface StartedHandle extends RunnerHandleData {\n outputs: Record<string, unknown>;\n ready?: PromiseLike<unknown>;\n shutdown?: () => unknown;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null;\n}\n\nfunction isPromiseLike(value: unknown): value is PromiseLike<unknown> {\n return isRecord(value) && typeof value.then === \"function\";\n}\n\nfunction isCallable(value: unknown): value is (this: unknown) => unknown {\n return typeof value === \"function\";\n}\n\n/** Normalize what a verb returned. `undefined` (a self-sustaining bridge)\n * is an empty handle; anything else must match runnerHandleSchema. */\nexport function toStartedHandle(value: unknown, where: string): StartedHandle {\n if (value === undefined || value === null) return { outputs: {} };\n const parsed = runnerHandleSchema.safeParse(value);\n if (!parsed.success) {\n throw new Error(\n `${where} returned an invalid runner handle:\\n${z.prettifyError(parsed.error)}`,\n );\n }\n const live = isRecord(value) ? value : {};\n const shutdown = live.shutdown;\n return {\n ...parsed.data,\n outputs: parsed.data.outputs ?? {},\n ...(isPromiseLike(live.ready) ? { ready: live.ready } : {}),\n ...(isCallable(shutdown) ? { shutdown: () => shutdown.call(value) } : {}),\n };\n}\n"],"mappings":";;;;AAGA,SAASA,WAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E;AAEA,SAAS,aAAa,MAAg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c,KAAK,KAAK,IAAI,EAAE,OAAO,KAAK,MAAM,IAAI,CAAC;EACzD,GAAI,WAAW,QAAQ,IAAI,EAAE,gBAAgB,SAAS,KAAK,KAAK,EAAE,IAAI,CAAC;CACzE;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/host-core",
3
- "version": "6.2.3-dev.77",
3
+ "version": "6.2.3-dev.78",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -49,13 +49,13 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@powerhousedao/shared": "6.2.3-dev.77",
52
+ "@powerhousedao/shared": "6.2.3-dev.78",
53
53
  "zod": "^4.5.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "tsdown": "0.23.0",
57
57
  "vitest": "5.0.3",
58
- "@powerhousedao/reactor-monitor": "6.2.3-dev.77"
58
+ "@powerhousedao/reactor-monitor": "6.2.3-dev.78"
59
59
  },
60
60
  "scripts": {
61
61
  "tsc": "tsc",
@@ -1 +0,0 @@
1
- {"version":3,"file":"compound-DlaK_sWa.d.mts","names":[],"sources":["../src/host-schemas.ts","../src/resolve/declared.ts","../src/runner-resolver.ts","../src/runner-handle.ts","../src/compound.ts"],"mappings":";;;;;;;;;;;;;;cAuBa,eAAa,EAAA;;;;;GAKxB,EAAA,KAAA;cAEW,uBAAqB,EAAA;;;;;;;;;;;;;;;GAWhC,EAAA,KAAA;cAEW,kBAAgB,EAAA;;;;KACjB,aAAa,EAAE,aAAa;cAE3B,0BAAwB,EAAA;;;;;;;;cAiBxB,sBAAoB,EAAA;;;;GAY/B,EAAA,KAAA;;;;iBAKc,iBACd;EAAQ,UAAU;EAAyB,SAAS;GACpD,KAAK,EAAE;;;UAyBC;EACR,MAAM,UAAU,EAAE,SAAS,QAAQ,MAAM,gBAAgB;EACzD,MAAM,UAAU,EAAE,SAAS,QAAQ,MAAM,gBAAgB,GAAG;;;;;;iBAerD,iBAAiB,YAAY;;;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