@powerhousedao/host-core 6.3.0-dev.9 → 6.4.0-next.1
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-DKi56SSx.mjs → compound-BWLJ0KBw.mjs} +1617 -488
- package/dist/compound-BWLJ0KBw.mjs.map +1 -0
- package/dist/{compound-CBqPgk38.d.mts → compound-D2dh2VUh.d.mts} +332 -22
- package/dist/compound-D2dh2VUh.d.mts.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 +196 -131
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +52 -356
- 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 +13 -19
- package/dist/projection.d.mts.map +1 -1
- package/dist/projection.mjs +18 -11
- 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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as RunnerContext, a as RunCompoundResult, bt as HostDefinition } from "../compound-D2dh2VUh.mjs";
|
|
2
2
|
//#region src/runners/compound.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* The GENERIC compound runner module (phase 3): supervises the members a
|
|
@@ -103,7 +103,6 @@ export declare const hostSchema: import("zod").ZodObject<{
|
|
|
103
103
|
refuse: "refuse";
|
|
104
104
|
}>>;
|
|
105
105
|
}, import("zod/v4/core").$strict>>;
|
|
106
|
-
workflows: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
107
106
|
renown: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
108
107
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
109
108
|
networkId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -132,6 +131,10 @@ export declare const hostSchema: import("zod").ZodObject<{
|
|
|
132
131
|
}, import("zod/v4/core").$strict>>;
|
|
133
132
|
}, import("zod/v4/core").$strict>>>>;
|
|
134
133
|
}, import("zod/v4/core").$strict>>;
|
|
134
|
+
process: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
135
|
+
own: "own";
|
|
136
|
+
shared: "shared";
|
|
137
|
+
}>>;
|
|
135
138
|
}, import("zod/v4/core").$strict>>;
|
|
136
139
|
profile: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
137
140
|
appId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -235,7 +238,6 @@ export declare const declaredHostSchema: import("zod").ZodObject<{
|
|
|
235
238
|
refuse: "refuse";
|
|
236
239
|
}>>;
|
|
237
240
|
}, import("zod/v4/core").$strict>>;
|
|
238
|
-
workflows: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
239
241
|
renown: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
240
242
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
243
|
networkId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -264,6 +266,10 @@ export declare const declaredHostSchema: import("zod").ZodObject<{
|
|
|
264
266
|
}, import("zod/v4/core").$strict>>;
|
|
265
267
|
}, import("zod/v4/core").$strict>>>>;
|
|
266
268
|
}, import("zod/v4/core").$strict>>;
|
|
269
|
+
process: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
270
|
+
own: "own";
|
|
271
|
+
shared: "shared";
|
|
272
|
+
}>>;
|
|
267
273
|
}, import("zod/v4/core").$strict>>;
|
|
268
274
|
profile: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
269
275
|
appId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;;;;qBA2Ba;qBAEA,0BAAU
|
|
1
|
+
{"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;;;;qBA2Ba;qBAEA,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA4B;qBACtC,kCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAoC;wBAiB7C,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 {
|
|
1
|
+
import { Tn as genericCompoundHostSchema, V as readProjectName, bn as declaredGenericCompoundHostSchema, l as runCompound, n as compoundStartVerb, u as stopStreamOf } from "../compound-BWLJ0KBw.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,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
3
|
-
import { n as substituteBuiltinEnv, t as BuiltinEnv } from "./env-substitution-
|
|
1
|
+
import { $ as ItemToken, A as declaredGenericCompoundHostSchema, B as profileSchema, C as RunnerBase, Ct as outputTokenSchema, D as compoundHostSchema, Dt as tokenable, E as childrenSchema, Et as tokenSchema, F as genericCompoundHostSchema, G as reactorSchema, H as reactorBackendSchema, I as hostNameSchema, J as runnerBaseSchema, K as refineConnectReactor, L as makeHostSchemas, M as defineHostSchemas, N as emitHostJsonSchema, O as compoundWiringSchema, P as emittedHostSchemas, Q as EnvToken, R as memberProcessSchema, S as ReactorStorageConfig, St as mapTokenSchema, T as childWrapperSchema, Tt as tokenKeyOf, U as reactorHostSchema, V as reactorBackendKindSchema, W as reactorProtocolSchema, X as ArrayMapToken, Y as runnerKindSchema, Z as ConcatToken, _ as ReactorHost, _t as findToken, a as CompoundWiring, at as RefFn, b as ReactorProtocol, bt as itemTokenSchema, c as HOST_NAME_PATTERN, ct as Template, d as MemberProcess, dt as TokenKey, et as KeyToken, f as PlacementKeyIssue, ft as TokenMode, g as ReactorConfig, gt as envTokenable, h as ReactorBackendKind, ht as envTokenSchema, i as CompoundHostInput, it as RecordMapToken, j as declaredHostSchemas, k as connectReactorIssues, l as HostDefinition, lt as Token, m as ReactorBackend, mt as concatTokenSchema, n as ChildWrapper, nt as OutputPath, o as HOST_NAME_MAX_LENGTH, ot as TOKEN_ESCAPE_KEY, p as Profile, pt as TokenableSchema, q as refineStartOrder, r as CompoundHost, rt as OutputToken, s as HOST_NAME_MESSAGE, st as TOKEN_KEYS, t as CONNECT_PRIMARY_MESSAGE, tt as MapToken, u as HostSchemas, ut as TokenFor, v as ReactorHostInput, vt as forbidRef, w as RunnerKind, wt as ref, x as ReactorRemoteConfig, xt as keyTokenSchema, y as ReactorPackageConfig, yt as isToken, z as placementKeyIssues } from "./host-schemas-B6_-P11_.mjs";
|
|
2
|
+
import { A as PHHost, M as PluginEntry, c as PluginEntryData, j as PHHostOutputs, v as pluginEntryObjectSchema, y as pluginEntrySchema } from "./plugins-Dsmfhbn7.mjs";
|
|
3
|
+
import { n as substituteBuiltinEnv, t as BuiltinEnv } from "./env-substitution-Ct39KFvA.mjs";
|
|
4
4
|
import { SwitchboardDrive, driveAddressMessage, switchboardOfDrive } from "@powerhousedao/shared/host-tokens";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/host-export-schema.d.ts
|
|
@@ -123,6 +123,8 @@ interface StartedHandle extends RunnerHandleData {
|
|
|
123
123
|
outputs: Record<string, unknown>;
|
|
124
124
|
ready?: PromiseLike<unknown>;
|
|
125
125
|
shutdown?: () => unknown;
|
|
126
|
+
/** A foreground member's end, with its exit code. */
|
|
127
|
+
exited?: PromiseLike<unknown>;
|
|
126
128
|
}
|
|
127
129
|
/** Normalize what a verb returned. `undefined` (a self-sustaining bridge)
|
|
128
130
|
* is an empty handle; anything else must match runnerHandleSchema. */
|
|
@@ -141,6 +143,6 @@ interface HostIssue {
|
|
|
141
143
|
hint?: string;
|
|
142
144
|
}
|
|
143
145
|
//#endregion
|
|
144
|
-
export { type ArrayMapToken, type BuiltinEnv, CONNECT_PRIMARY_MESSAGE, type CheckStage, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundWiring, type ConcatToken, type DriveDeclaration, type EnvToken, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, type HostDefinition, type HostExport, type HostIssue, type HostSchemas, type ItemToken, type KeyToken, type MapToken, type OutputPath, type OutputToken, type PHHost, type PHHostOutputs, type PlacementKeyIssue, 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, type SwitchboardDrive, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenableSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveAddressMessage, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, hostNameSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, outputTokenSchema, placementKeyIssues, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineConnectReactor, refineStartOrder, runnerBaseSchema, runnerKindSchema, substituteBuiltinEnv, switchboardOfDrive, tokenKeyOf, tokenSchema, tokenable };
|
|
146
|
+
export { type ArrayMapToken, type BuiltinEnv, CONNECT_PRIMARY_MESSAGE, type CheckStage, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundWiring, type ConcatToken, type DriveDeclaration, type EnvToken, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, type HostDefinition, type HostExport, type HostIssue, type HostSchemas, type ItemToken, type KeyToken, type MapToken, type MemberProcess, type OutputPath, type OutputToken, type PHHost, type PHHostOutputs, type PlacementKeyIssue, 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, type SwitchboardDrive, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenableSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveAddressMessage, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, hostNameSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, memberProcessSchema, outputTokenSchema, placementKeyIssues, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineConnectReactor, refineStartOrder, runnerBaseSchema, runnerKindSchema, substituteBuiltinEnv, switchboardOfDrive, tokenKeyOf, tokenSchema, tokenable };
|
|
145
147
|
export {};
|
|
146
148
|
//# sourceMappingURL=schema.d.mts.map
|
package/dist/schema.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;;;;;GAsBhE,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;;;;;;;;;UCzCe,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;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;GAsBhE,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;;;;;;;;;UCzCe,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;;EAEA,SAAS;;;;wBAiBK,gBAAgB,gBAAgB,gBAAgB;;;;KC/CpD;UAEK;EACf,OAAO;;EAEP;;EAEA;EACA;EACA"}
|
package/dist/schema.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
1
|
+
import { A as refineStartOrder, B as envTokenSchema, C as profileSchema, D as reactorProtocolSchema, E as reactorHostSchema, F as drivesSchema, G as itemTokenSchema, H as findToken, I as projectDriveIdWith, J as outputTokenSchema, K as keyTokenSchema, L as TOKEN_ESCAPE_KEY, M as runnerKindSchema, N as buildDriveDeclarationSchema, O as reactorSchema, P as driveDeclarationSchema, Q as tokenable, R as TOKEN_KEYS, S as placementKeyIssues, T as reactorBackendSchema, U as forbidRef, V as envTokenable, W as isToken, X as tokenKeyOf, Y as ref, Z as tokenSchema, _ as emittedHostSchemas, a as HOST_NAME_MESSAGE, b as makeHostSchemas, c as childWrapperSchema, d as compoundWiringSchema, f as connectReactorIssues, g as emitHostJsonSchema, h as defineHostSchemas, i as HOST_NAME_MAX_LENGTH, j as runnerBaseSchema, k as refineConnectReactor, l as childrenSchema, m as declaredHostSchemas, n as substituteBuiltinEnv, o as HOST_NAME_PATTERN, p as declaredGenericCompoundHostSchema, q as mapTokenSchema, r as CONNECT_PRIMARY_MESSAGE, u as compoundHostSchema, v as genericCompoundHostSchema, w as reactorBackendKindSchema, x as memberProcessSchema, y as hostNameSchema, z as concatTokenSchema } from "./env-substitution-FJ5Nua4M.mjs";
|
|
2
|
+
import { c as pluginEntrySchema, s as pluginEntryObjectSchema } from "./plugins-DP3YlIWx.mjs";
|
|
3
3
|
import { driveAddressMessage, switchboardOfDrive } from "@powerhousedao/shared/host-tokens";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/host-export-schema.ts
|
|
@@ -89,10 +89,11 @@ function toStartedHandle(value, where) {
|
|
|
89
89
|
...parsed.data,
|
|
90
90
|
outputs: parsed.data.outputs ?? {},
|
|
91
91
|
...isPromiseLike(live.ready) ? { ready: live.ready } : {},
|
|
92
|
-
...isCallable(shutdown) ? { shutdown: () => shutdown.call(value) } : {}
|
|
92
|
+
...isCallable(shutdown) ? { shutdown: () => shutdown.call(value) } : {},
|
|
93
|
+
...isPromiseLike(live.exited) ? { exited: live.exited } : {}
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
//#endregion
|
|
96
|
-
export { CONNECT_PRIMARY_MESSAGE, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, TOKEN_ESCAPE_KEY, TOKEN_KEYS, buildDriveDeclarationSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveAddressMessage, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, hostExportSchema, hostNameSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, outputTokenSchema, placementKeyIssues, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, projectDriveIdWith, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineConnectReactor, refineStartOrder, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, substituteBuiltinEnv, switchboardOfDrive, toStartedHandle, tokenKeyOf, tokenSchema, tokenable };
|
|
97
|
+
export { CONNECT_PRIMARY_MESSAGE, HOST_NAME_MAX_LENGTH, HOST_NAME_MESSAGE, HOST_NAME_PATTERN, TOKEN_ESCAPE_KEY, TOKEN_KEYS, buildDriveDeclarationSchema, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, connectReactorIssues, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, driveAddressMessage, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, hostExportSchema, hostNameSchema, isToken, itemTokenSchema, keyTokenSchema, makeHostSchemas, mapTokenSchema, memberProcessSchema, outputTokenSchema, placementKeyIssues, pluginEntryObjectSchema, pluginEntrySchema, profileSchema, projectDriveIdWith, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refineConnectReactor, refineStartOrder, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, substituteBuiltinEnv, switchboardOfDrive, toStartedHandle, tokenKeyOf, tokenSchema, tokenable };
|
|
97
98
|
|
|
98
99
|
//# sourceMappingURL=schema.mjs.map
|
package/dist/schema.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,MAAgD;CACpE,IAAI,CAACA,WAAS,IAAI,KAAK,CAACA,WAAS,KAAK,QAAQ,GAAG,OAAO,CAAC;CACzD,OAAO,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,SAAS,CAAC,KAAK,WAClDA,WAAS,KAAK,KAAK,OAAO,MAAM,SAAS,WACrC,CAAC,CAAC,KAAK,MAAM,IAAI,CAAqB,IACtC,CAAC,CACP;AACF;AAGA,MAAM,qBAAqB,EACxB,OAAuB,CAAC,CACxB,aAAa,MAAM,QAAQ;CAK1B,MAAM,UAHJA,WAAS,IAAI,KAAK,cAAc,OAC5B,oBAAoB,qBACpB,oBAAoB,kBAAA,CACJ,UAAU,IAAI;CACpC,IAAI,OAAO,SAAS;CACpB,KAAK,MAAM,SAAS,OAAO,MAAM,QAC/B,IAAI,SAAS;EACX,MAAM;EACN,SAAS,MAAM;EACf,MAAM,M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AAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,EACtD,CAAC;
|
|
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 /** A foreground member's end, with its exit code. */\n exited?: PromiseLike<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 ...(isPromiseLike(live.exited) ? { exited: live.exited } : {}),\n };\n}\n"],"mappings":";;;;;AAGA,SAASA,WAAS,OAAkD;CAClE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E;AAEA,SAAS,aAAa,MAAgD;CACpE,IAAI,CAACA,WAAS,IAAI,KAAK,CAACA,WAAS,KAAK,QAAQ,GAAG,OAAO,CAAC;CACzD,OAAO,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,SAAS,CAAC,KAAK,WAClDA,WAAS,KAAK,KAAK,OAAO,MAAM,SAAS,WACrC,CAAC,CAAC,KAAK,MAAM,IAAI,CAAqB,IACtC,CAAC,CACP;AACF;AAGA,MAAM,qBAAqB,EACxB,OAAuB,CAAC,CACxB,aAAa,MAAM,QAAQ;CAK1B,MAAM,UAHJA,WAAS,IAAI,KAAK,cAAc,OAC5B,oBAAoB,qBACpB,oBAAoB,kBAAA,CACJ,UAAU,IAAI;CACpC,IAAI,OAAO,SAAS;CACpB,KAAK,MAAM,SAAS,OAAO,MAAM,QAC/B,IAAI,SAAS;EACX,MAAM;EACN,SAAS,MAAM;EACf,MAAM,MAAM;CACd,CAAC;AAEL,CAAC;;AAGH,MAAa,mBAAmB,EAC7B,aAAa;CACZ,QAAQ,EAAE,QAAQ,gBAAgB;CAClC,SAAS,EAAE,QAAQ,CAAC;CACpB,SAAS,EAAE,aAAa;EACtB,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;EACtB,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACxB,CAAC;CACD,MAAM,EAAE,OAAO,CAAC,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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;EACvE,GAAI,cAAc,KAAK,MAAM,IAAI,EAAE,QAAQ,KAAK,OAAO,IAAI,CAAC;CAC9D;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/host-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-next.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
"import": "./dist/runners/compound.mjs",
|
|
30
30
|
"default": "./dist/runners/compound.mjs"
|
|
31
31
|
},
|
|
32
|
+
"./kill-tree": {
|
|
33
|
+
"source": "./src/kill-tree.ts",
|
|
34
|
+
"types": "./dist/kill-tree.d.mts",
|
|
35
|
+
"import": "./dist/kill-tree.mjs",
|
|
36
|
+
"default": "./dist/kill-tree.mjs"
|
|
37
|
+
},
|
|
32
38
|
"./plugins": {
|
|
33
39
|
"source": "./src/plugins.ts",
|
|
34
40
|
"types": "./dist/plugins.d.mts",
|
|
@@ -49,13 +55,13 @@
|
|
|
49
55
|
}
|
|
50
56
|
},
|
|
51
57
|
"dependencies": {
|
|
52
|
-
"@powerhousedao/shared": "6.
|
|
58
|
+
"@powerhousedao/shared": "6.4.0-next.1",
|
|
53
59
|
"zod": "^4.5.4"
|
|
54
60
|
},
|
|
55
61
|
"devDependencies": {
|
|
56
62
|
"tsdown": "0.23.0",
|
|
57
63
|
"vitest": "5.0.3",
|
|
58
|
-
"@powerhousedao/reactor-monitor": "6.
|
|
64
|
+
"@powerhousedao/reactor-monitor": "6.4.0-next.1"
|
|
59
65
|
},
|
|
60
66
|
"scripts": {
|
|
61
67
|
"tsc": "tsc",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compound-CBqPgk38.d.mts","names":[],"sources":["../src/host-schemas.ts","../src/resolve/declared.ts","../src/runner-resolver.ts","../src/child-wrapper.ts","../src/runner-handle.ts","../src/compound.ts"],"mappings":";;;;;;;;;;;;;;;;cA2Ba,mBAAiB;cACjB;cACA;cAEA,gBAAc,EAAA;;;;;;cAWd,mBAAiB,EAAA,mBAAA,EAAA,QAAA,EAAA;cAOjB,eAAa,EAAA;;;;;GAKxB,EAAA,KAAA;cAEW,uBAAqB,EAAA;;;;;;;;;;;;;;;;GAYhC,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;;;;;;iBAqQrD,iBAAiB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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