@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
package/dist/projection.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as BuiltinEnv } from "./env-substitution-
|
|
1
|
+
import { S as ReactorStorageConfig, b as ReactorProtocol, dt as TokenKey, g as ReactorConfig, h as ReactorBackendKind, l as HostDefinition, m as ReactorBackend, n as ChildWrapper, nt as OutputPath, w as RunnerKind } from "./host-schemas-B6_-P11_.mjs";
|
|
2
|
+
import { t as BuiltinEnv } from "./env-substitution-Ct39KFvA.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { PHConnectDefaultDrive, PHConnectRuntimeConfig } from "@powerhousedao/shared/clis";
|
|
5
5
|
//#region src/backend-projection.d.ts
|
|
@@ -87,9 +87,6 @@ interface SwitchboardReactorLayer {
|
|
|
87
87
|
packages?: {
|
|
88
88
|
dynamic: true;
|
|
89
89
|
};
|
|
90
|
-
features?: {
|
|
91
|
-
workflows: boolean;
|
|
92
|
-
};
|
|
93
90
|
}
|
|
94
91
|
/** The reactor block as a switchboard config layer. The reactor store and the
|
|
95
92
|
* read model are separate fields: `readModel.url` never moves the reactor. */
|
|
@@ -107,8 +104,7 @@ export declare function browserBackend(reactor: ReactorConfig | undefined): (Rea
|
|
|
107
104
|
* - remote backend(s) only -> `remote`
|
|
108
105
|
* - a worker backend -> `worker`
|
|
109
106
|
* - anything else local -> `in-process`
|
|
110
|
-
* `undefined` when no backends are declared
|
|
111
|
-
* legacy reactorWorker/multiReactor behaviour untouched.
|
|
107
|
+
* `undefined` when no backends are declared: Connect then runs `in-process`.
|
|
112
108
|
*/
|
|
113
109
|
export declare function reactorClientMode(reactor: ReactorConfig | undefined): ReactorClientMode | undefined;
|
|
114
110
|
/** The router settings Connect serves: only the keys the host sets. */
|
|
@@ -134,17 +130,13 @@ interface ConnectReactorProjection {
|
|
|
134
130
|
remoteBackends?: ServedRemoteBackend[];
|
|
135
131
|
router?: ConnectRouterSettings;
|
|
136
132
|
};
|
|
137
|
-
app?: {
|
|
138
|
-
workflowsEnabled?: boolean;
|
|
139
|
-
};
|
|
140
133
|
};
|
|
141
134
|
}
|
|
142
135
|
/** Project the reactor block onto the Connect runtime config: protocol →
|
|
143
136
|
* connect.reactor (same shape), backend topology → instance.reactorWorker
|
|
144
137
|
* (the browser reactor's kind), instance.reactorClient, instance.storage
|
|
145
138
|
* (the browser reactor's store), and with a
|
|
146
|
-
* switchboard instance.remoteBackends and instance.router
|
|
147
|
-
* app.workflowsEnabled. */
|
|
139
|
+
* switchboard instance.remoteBackends and instance.router. */
|
|
148
140
|
export declare function projectReactorToConnect(reactor: ReactorConfig | undefined): ConnectReactorProjection;
|
|
149
141
|
/** Whether an env value means what the host's value does. The switchboard
|
|
150
142
|
* reads REACTOR_UNDO_V3 as on unless it is exactly "false". */
|
|
@@ -176,7 +168,7 @@ export declare function applyChildWrapper(base: HostDefinition, wrapper: ChildWr
|
|
|
176
168
|
* Concatenate groups of `connect.drives.defaultDrives` in the order given,
|
|
177
169
|
* de-duplicating by drive identity (URL for remote entries, id for local
|
|
178
170
|
* ones). The first occurrence of a drive wins, so earlier groups keep their
|
|
179
|
-
* position and metadata — e.g. the Vetra drive `ph
|
|
171
|
+
* position and metadata — e.g. the Vetra drive `ph dev` starts stays first
|
|
180
172
|
* even when the project's `powerhouse.config.json` lists the same drive.
|
|
181
173
|
*/
|
|
182
174
|
export declare function mergeDefaultDrives(...groups: PHConnectDefaultDrive[][]): PHConnectDefaultDrive[];
|
|
@@ -219,6 +211,7 @@ export declare const runRecordMemberSchema: z.ZodObject<{
|
|
|
219
211
|
export declare const runRecordSchema: z.ZodObject<{
|
|
220
212
|
version: z.ZodLiteral<2>;
|
|
221
213
|
host: z.ZodString;
|
|
214
|
+
package: z.ZodOptional<z.ZodString>;
|
|
222
215
|
projectName: z.ZodString;
|
|
223
216
|
kind: z.ZodEnum<{
|
|
224
217
|
compound: "compound";
|
|
@@ -360,8 +353,8 @@ export declare function planCompound(members: readonly PlanMember[], startOrder?
|
|
|
360
353
|
* node adapters in ./node.ts); `$env` reads the environment map of the
|
|
361
354
|
* resolving process; `$map` renders its `to` template once per element of
|
|
362
355
|
* its `over` (arrays in order, records key-sorted; `$item`/`$key` read the
|
|
363
|
-
* element being rendered); the `"${userData}"`/`"${projectRoot}"
|
|
364
|
-
* sugar is substituted on the way. An `$output`/`$item` that reads a field
|
|
356
|
+
* element being rendered); the `"${userData}"`/`"${projectRoot}"`/
|
|
357
|
+
* `"${package}"` string sugar is substituted on the way. An `$output`/`$item` that reads a field
|
|
365
358
|
* absent from the data but optional in the producer's schema (codegen's
|
|
366
359
|
* `OutputToken<T | undefined>`) omits its enclosing property, like an unset
|
|
367
360
|
* optional `$env`. Pure and browser-safe.
|
|
@@ -387,8 +380,8 @@ interface ResolveSources {
|
|
|
387
380
|
outputs?: OutputSource;
|
|
388
381
|
/** The resolving process's environment (`$env`). */
|
|
389
382
|
env?: Readonly<Record<string, string | undefined>>;
|
|
390
|
-
/** `userData`/`projectRoot`: always resolvable `$env` names and
|
|
391
|
-
* sugar. */
|
|
383
|
+
/** `userData`/`projectRoot`/`package`: always resolvable `$env` names and
|
|
384
|
+
* string sugar. */
|
|
392
385
|
builtins?: BuiltinEnv;
|
|
393
386
|
/** The host file named in errors (`hosts/connect/host.js`). */
|
|
394
387
|
where?: string;
|
|
@@ -472,8 +465,9 @@ export declare function emptyMaps<T>(host: T, declared: unknown): T;
|
|
|
472
465
|
/**
|
|
473
466
|
* The cross-host forms removed in T3 (typed-host-configs 3.7), detected
|
|
474
467
|
* before schema validation so the error names the token form that replaces
|
|
475
|
-
* each one instead of a bare "Unrecognized key".
|
|
476
|
-
*
|
|
468
|
+
* each one instead of a bare "Unrecognized key". The `reactor.workflows`
|
|
469
|
+
* boolean, removed in 6.4, is reported the same way. clint's `agents.*.host`
|
|
470
|
+
* and proxy `routes.*.member` are checked by the clint runner schemas.
|
|
477
471
|
*/
|
|
478
472
|
interface RemovedForm {
|
|
479
473
|
/** Host path of the removed value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection.d.mts","names":[],"sources":["../src/backend-projection.ts","../src/reactor-config.ts","../src/child-wrapper.ts","../src/connect-projection.ts","../src/run-record-schema.ts","../src/resolve/declared.ts","../src/resolve/plan.ts","../src/resolve/resolve.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/expect-host.ts"],"mappings":";;;;;;;;;;;;;;;;KAmBY;EACN;;EACA;;EACA;EAAc;;UAEH;EACf;EACA;EACA,UAAU;EACV;IAAa;IAAiB;IAAkB;;EAChD;IACE;IACA;IACA;IACA;IACA;;EAEF;IAAW;;;;;;wBAgCG,oBACd,cACA,SAAS,gBACT,WAAW,kBACV;;;wBA2Ba,sBACd,SAAS,4BACR;;;;;;;wBAsBa,yBACd,SAAS;;wBAWK,kBACd,SAAS;;KASC;EAAwB;EAAc;IAAgB,KAChE,YAAY;;;;;;wBCjHE,eACd,SAAS,4BACR;;;wBA4Ba,YACd,UAAU,8BACT;;;UAmBc;EACf;IAAY;MAAY;;IAAe;MAAc;;;EACrD,WAAW;EACX;IAAa
|
|
1
|
+
{"version":3,"file":"projection.d.mts","names":[],"sources":["../src/backend-projection.ts","../src/reactor-config.ts","../src/child-wrapper.ts","../src/connect-projection.ts","../src/run-record-schema.ts","../src/resolve/declared.ts","../src/resolve/plan.ts","../src/resolve/resolve.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/expect-host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ACA;;;;wBAwEc,iBAAiB,gBAAgB;;;;;;;;;;wBC1EjC,qBACd;EAAoB;EAAa;KACjC,SAAS,8BACT,kBACA,UAAU,+BACT;;;;;;;;;;;;KCCS;;UASK;;EAEf,MAAM;;EAEN;;EAEA,OAAO;;UAGQ;;;EAGf,MAAM;EACN,KAAK;;EAEL,OAAO;EACP,UAAU;;;EAGV,iBAAiB;;;wBAcH,WAAW;;;;;wBAmBX,kBAAkB,iBAAiB;;wBA+DnC,cAAc;;;wBAuDd,aAAa,GAAG,OAAO,IAAI;;;wBAe3B,cAAc,GAAG,OAAO,IAAI;;;;;;;;;;;;;;UCvL3B;EACf;EACA,MAAM;EACN,UAAU;;EAEV;;;;;EAKA;;;;;;UAOe;EACf;EACA;;EAEA;;EAEA;EACA;EACA;;;UAIe;;EAEf;EACA;EACA;EACA,MAAM;;UAGS;EACf;EACA,MAAM;;;EAGN;;EAEA,aAAa;;EAEb;EACA,WAAW;;EAEX;EACA,SAAS;;EAET;EACA,UAAU;;EAEV;;EAEA;;EAEA,UAAU,eAAe;;UAGV,0BAA0B,KACzC;;EAIA;;EAEA;;;;UAKe;EACf,aAAa;EACb;;UAGe;EACf,MAAM;;;EAGN,UAAU;;EAEV,WAAW;;EAEX,uBAAuB;;EAEvB,mBAAmB;;EAEnB,OAAO;;UAGQ,oBAAoB,KAAK;EACxC;EACA;;;;;;;;wBAgKc,WAAW,OAAO,kBAAkB"}
|
package/dist/projection.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as TOKEN_ESCAPE_KEY, M as runnerKindSchema, X as tokenKeyOf, Z as tokenSchema, n as substituteBuiltinEnv, s as PACKAGE_NAME_PATTERN, t as isBuiltinEnvName, y as hostNameSchema } from "./env-substitution-FJ5Nua4M.mjs";
|
|
2
2
|
import "@powerhousedao/shared/host-tokens";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/backend-projection.ts
|
|
@@ -133,7 +133,6 @@ function reactorBlockToSwitchboardConfig(reactor) {
|
|
|
133
133
|
};
|
|
134
134
|
if (reactor?.protocol) layer.protocol = reactor.protocol;
|
|
135
135
|
if (backend?.packages?.dynamic) layer.packages = { dynamic: true };
|
|
136
|
-
if (reactor?.workflows !== void 0) layer.features = { workflows: reactor.workflows };
|
|
137
136
|
return layer;
|
|
138
137
|
}
|
|
139
138
|
const LOCAL_BACKEND_KINDS = /* @__PURE__ */ new Set(["in-process", "worker"]);
|
|
@@ -151,8 +150,7 @@ function browserBackend(reactor) {
|
|
|
151
150
|
* - remote backend(s) only -> `remote`
|
|
152
151
|
* - a worker backend -> `worker`
|
|
153
152
|
* - anything else local -> `in-process`
|
|
154
|
-
* `undefined` when no backends are declared
|
|
155
|
-
* legacy reactorWorker/multiReactor behaviour untouched.
|
|
153
|
+
* `undefined` when no backends are declared: Connect then runs `in-process`.
|
|
156
154
|
*/
|
|
157
155
|
function reactorClientMode(reactor) {
|
|
158
156
|
const backends = reactor?.backends;
|
|
@@ -193,8 +191,7 @@ function unservedConnectStorage(reactor) {
|
|
|
193
191
|
* connect.reactor (same shape), backend topology → instance.reactorWorker
|
|
194
192
|
* (the browser reactor's kind), instance.reactorClient, instance.storage
|
|
195
193
|
* (the browser reactor's store), and with a
|
|
196
|
-
* switchboard instance.remoteBackends and instance.router
|
|
197
|
-
* app.workflowsEnabled. */
|
|
194
|
+
* switchboard instance.remoteBackends and instance.router. */
|
|
198
195
|
function projectReactorToConnect(reactor) {
|
|
199
196
|
const connect = {};
|
|
200
197
|
if (reactor?.protocol) connect.reactor = reactor.protocol;
|
|
@@ -213,7 +210,6 @@ function projectReactorToConnect(reactor) {
|
|
|
213
210
|
...router ? { router } : {}
|
|
214
211
|
};
|
|
215
212
|
}
|
|
216
|
-
if (reactor?.workflows !== void 0) connect.app = { workflowsEnabled: reactor.workflows };
|
|
217
213
|
return { connect };
|
|
218
214
|
}
|
|
219
215
|
/** Whether an env value means what the host's value does. The switchboard
|
|
@@ -276,7 +272,7 @@ const driveKey = (drive) => isLocalDrive(drive) ? `local:${drive.id}` : drive.ur
|
|
|
276
272
|
* Concatenate groups of `connect.drives.defaultDrives` in the order given,
|
|
277
273
|
* de-duplicating by drive identity (URL for remote entries, id for local
|
|
278
274
|
* ones). The first occurrence of a drive wins, so earlier groups keep their
|
|
279
|
-
* position and metadata — e.g. the Vetra drive `ph
|
|
275
|
+
* position and metadata — e.g. the Vetra drive `ph dev` starts stays first
|
|
280
276
|
* even when the project's `powerhouse.config.json` lists the same drive.
|
|
281
277
|
*/
|
|
282
278
|
function mergeDefaultDrives(...groups) {
|
|
@@ -334,11 +330,14 @@ function projectDrivesIntoConnect(input) {
|
|
|
334
330
|
* host and its members produced. Validated on read; a v1 (or any invalid)
|
|
335
331
|
* record reads as "not running". `projectName` is kept beyond the plan's
|
|
336
332
|
* sketch because the live/foreign probe needs it. `host` is the host's
|
|
337
|
-
* `name` (the file key), not its folder.
|
|
333
|
+
* `name` (the file key), not its folder. A host an installed package
|
|
334
|
+
* supplies has its record in a folder named after the package,
|
|
335
|
+
* `.ph/run/<package>/<host>.json`, and says which in `package`.
|
|
338
336
|
*/
|
|
339
337
|
const outputsSchema = z.record(z.string(), z.unknown());
|
|
340
338
|
const runRecordMemberSchema = z.strictObject({
|
|
341
|
-
/** The member's host folder
|
|
339
|
+
/** The member's host as the project addresses it: its folder, or
|
|
340
|
+
* `<package>/<host>` for one a package supplies. */
|
|
342
341
|
host: z.string().min(1),
|
|
343
342
|
runnerModule: z.string().min(1),
|
|
344
343
|
kind: runnerKindSchema,
|
|
@@ -348,6 +347,9 @@ const runRecordMemberSchema = z.strictObject({
|
|
|
348
347
|
const runRecordSchema = z.strictObject({
|
|
349
348
|
version: z.literal(2),
|
|
350
349
|
host: hostNameSchema,
|
|
350
|
+
/** The installed package that supplies the host; absent for the
|
|
351
|
+
* project's own. */
|
|
352
|
+
package: z.string().regex(PACKAGE_NAME_PATTERN).optional(),
|
|
351
353
|
projectName: z.string(),
|
|
352
354
|
kind: runnerKindSchema,
|
|
353
355
|
verb: z.string().min(1),
|
|
@@ -1417,7 +1419,12 @@ function isDriveReference(value) {
|
|
|
1417
1419
|
return keys.length === 2 && keys[0] === "from" && keys[1] === "slug" && typeof value.from === "string" && typeof value.slug === "string";
|
|
1418
1420
|
}
|
|
1419
1421
|
function checkReactor(reactor, base, found) {
|
|
1420
|
-
if (!isPlainObject(reactor)
|
|
1422
|
+
if (!isPlainObject(reactor)) return;
|
|
1423
|
+
if (reactor.workflows !== void 0) found.push({
|
|
1424
|
+
path: `${base}reactor.workflows`,
|
|
1425
|
+
message: "reactor.workflows was removed in 6.4; the workflows plugin under runner.plugins decides: list it to run workflows, leave it out to run none. On a switchboard, PH_WORKFLOWS_ENABLED=0 still switches them off."
|
|
1426
|
+
});
|
|
1427
|
+
if (!isPlainObject(reactor.backends)) return;
|
|
1421
1428
|
for (const [name, backend] of Object.entries(reactor.backends)) {
|
|
1422
1429
|
if (!isPlainObject(backend) || !isPlainObject(backend.remote)) continue;
|
|
1423
1430
|
const host = backend.remote.host;
|