@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.
- package/dist/{compound-Gjt5rBfF.mjs → compound-Cfqa5Jal.mjs} +22 -35
- package/dist/compound-Cfqa5Jal.mjs.map +1 -0
- package/dist/{compound-DlaK_sWa.d.mts → compound-DXcOFNcC.d.mts} +22 -306
- package/dist/compound-DXcOFNcC.d.mts.map +1 -0
- package/dist/{env-substitution-BjpuE5fm.mjs → env-substitution-qS_lDcbn.mjs} +4 -18
- package/dist/env-substitution-qS_lDcbn.mjs.map +1 -0
- package/dist/{host-schemas-mqOYNGot.d.mts → host-schemas-B6DsXA0Y.d.mts} +12 -305
- package/dist/host-schemas-B6DsXA0Y.d.mts.map +1 -0
- package/dist/index.d.mts +21 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +105 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{plugins-XL6WsvTL.d.mts → plugins-EFYLaYQi.d.mts} +2 -2
- package/dist/{plugins-XL6WsvTL.d.mts.map → plugins-EFYLaYQi.d.mts.map} +1 -1
- package/dist/plugins.d.mts +1 -1
- package/dist/projection.d.mts +11 -2
- package/dist/projection.d.mts.map +1 -1
- package/dist/projection.mjs +18 -2
- package/dist/projection.mjs.map +1 -1
- package/dist/runners/compound.d.mts +3 -35
- package/dist/runners/compound.d.mts.map +1 -1
- package/dist/runners/compound.mjs +1 -1
- package/dist/schema.d.mts +18 -3
- package/dist/schema.d.mts.map +1 -1
- package/dist/schema.mjs +64 -2
- package/dist/schema.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/compound-DlaK_sWa.d.mts.map +0 -1
- package/dist/compound-Gjt5rBfF.mjs.map +0 -1
- package/dist/env-substitution-BjpuE5fm.mjs.map +0 -1
- package/dist/host-schemas-mqOYNGot.d.mts.map +0 -1
|
@@ -564,12 +564,7 @@ function buildHostSchemas(tokenField) {
|
|
|
564
564
|
/** on-demand model resolution (was DYNAMIC_MODEL_LOADING). */
|
|
565
565
|
dynamic: z.boolean().optional()
|
|
566
566
|
}).optional(),
|
|
567
|
-
remote: z.strictObject({ url: tokenField.any(z.url()) }).optional()
|
|
568
|
-
projection: z.strictObject({
|
|
569
|
-
enabled: z.boolean().optional(),
|
|
570
|
-
dbPoolSize: z.number().int().positive().optional()
|
|
571
|
-
}).optional(),
|
|
572
|
-
executors: z.strictObject({ numWorkers: z.union([z.number().int().positive(), z.literal("auto")]).optional() }).optional()
|
|
567
|
+
remote: z.strictObject({ url: tokenField.any(z.url()) }).optional()
|
|
573
568
|
}).superRefine((backend, ctx) => {
|
|
574
569
|
if (backend.kind === "remote" && !backend.remote) ctx.addIssue({
|
|
575
570
|
code: "custom",
|
|
@@ -587,10 +582,7 @@ function buildHostSchemas(tokenField) {
|
|
|
587
582
|
});
|
|
588
583
|
const reactorSchema = z.strictObject({
|
|
589
584
|
backends: z.record(z.string(), reactorBackendSchema).optional(),
|
|
590
|
-
placement: z.strictObject({
|
|
591
|
-
primary: z.string().optional(),
|
|
592
|
-
default: z.looseObject({}).optional()
|
|
593
|
-
}).optional(),
|
|
585
|
+
placement: z.strictObject({ primary: z.string().optional() }).optional(),
|
|
594
586
|
protocol: reactorProtocolSchema.optional(),
|
|
595
587
|
/** DEPRECATED (dies in R2): workflows become a listed plugin. */
|
|
596
588
|
workflows: z.boolean().optional(),
|
|
@@ -599,13 +591,7 @@ function buildHostSchemas(tokenField) {
|
|
|
599
591
|
networkId: z.string().optional(),
|
|
600
592
|
chainId: z.number().int().optional()
|
|
601
593
|
}).optional(),
|
|
602
|
-
packages: z.strictObject({ registryUrl: z.string().optional() }).optional(),
|
|
603
594
|
namespace: z.string().min(1).optional(),
|
|
604
|
-
auth: z.strictObject({
|
|
605
|
-
enabled: z.boolean().optional(),
|
|
606
|
-
admins: z.array(z.string()).optional(),
|
|
607
|
-
renown: z.looseObject({}).optional()
|
|
608
|
-
}).optional(),
|
|
609
595
|
drives: tokenField.any(z.array(buildDriveDeclarationSchema(tokenField.any))).optional()
|
|
610
596
|
});
|
|
611
597
|
/** Common runner options; runner modules extend it with their own. */
|
|
@@ -623,7 +609,7 @@ function buildHostSchemas(tokenField) {
|
|
|
623
609
|
* (as on a standalone host); there is no wrapper-level `plugins`. */
|
|
624
610
|
const childWrapperSchema = z.strictObject({
|
|
625
611
|
host: z.string().min(1),
|
|
626
|
-
runner: runnerBaseSchema.partial().optional(),
|
|
612
|
+
runner: runnerBaseSchema.partial().extend({ port: z.number().int().min(0).max(65535).optional() }).optional(),
|
|
627
613
|
config: z.looseObject({}).optional(),
|
|
628
614
|
reactor: reactorSchema.optional()
|
|
629
615
|
});
|
|
@@ -2512,6 +2498,22 @@ function probeRun(projectDir, hostName, projectName, env = process.env) {
|
|
|
2512
2498
|
};
|
|
2513
2499
|
}
|
|
2514
2500
|
//#endregion
|
|
2501
|
+
//#region src/child-wrapper.ts
|
|
2502
|
+
/** Generic compound rule: `reactor`/`config` replace, `runner` key-merges. */
|
|
2503
|
+
function applyChildWrapper(base, wrapper) {
|
|
2504
|
+
const reactor = wrapper.reactor ?? base.reactor;
|
|
2505
|
+
const config = wrapper.config ?? base.config;
|
|
2506
|
+
return {
|
|
2507
|
+
...base,
|
|
2508
|
+
runner: {
|
|
2509
|
+
...base.runner,
|
|
2510
|
+
...wrapper.runner
|
|
2511
|
+
},
|
|
2512
|
+
...config !== void 0 ? { config } : {},
|
|
2513
|
+
...reactor !== void 0 ? { reactor } : {}
|
|
2514
|
+
};
|
|
2515
|
+
}
|
|
2516
|
+
//#endregion
|
|
2515
2517
|
//#region src/placeholders.ts
|
|
2516
2518
|
/**
|
|
2517
2519
|
* `${userData}` resolution for host files (desktop shape): storage paths in a
|
|
@@ -2685,23 +2687,8 @@ function toStartedHandle(value, where) {
|
|
|
2685
2687
|
}
|
|
2686
2688
|
//#endregion
|
|
2687
2689
|
//#region src/compound.ts
|
|
2688
|
-
/** Build the member host object the member runner sees: the member's own
|
|
2689
|
-
* host.js with the wrapper applied. A wrapper SECTION is a FULL STATEMENT —
|
|
2690
|
-
* `reactor` and `config`, when present on the wrapper, replace the member's
|
|
2691
|
-
* wholesale; `runner` key-merges (wrappers override port, host, plugins…). */
|
|
2692
2690
|
async function memberDraft(projectRoot, member) {
|
|
2693
|
-
|
|
2694
|
-
const reactor = member.reactor ?? base.reactor;
|
|
2695
|
-
const config = member.config ?? base.config;
|
|
2696
|
-
return {
|
|
2697
|
-
...base,
|
|
2698
|
-
runner: {
|
|
2699
|
-
...base.runner,
|
|
2700
|
-
...member.runner
|
|
2701
|
-
},
|
|
2702
|
-
...config !== void 0 ? { config } : {},
|
|
2703
|
-
...reactor !== void 0 ? { reactor } : {}
|
|
2704
|
-
};
|
|
2691
|
+
return applyChildWrapper((await loadHost(projectRoot, member.host)).host, member);
|
|
2705
2692
|
}
|
|
2706
2693
|
/** Whether a member receives the compound's `cspRegistrySync` wiring (as
|
|
2707
2694
|
* `runner.cspRegistrySync`): its runner declares that option (any specifier
|
|
@@ -2881,6 +2868,6 @@ async function prepareMember(projectRoot, key, member) {
|
|
|
2881
2868
|
};
|
|
2882
2869
|
}
|
|
2883
2870
|
//#endregion
|
|
2884
|
-
export {
|
|
2871
|
+
export { resolveHostOutputs as $, itemTokenSchema as $t, findNonStaticValue as A, genericCompoundHostSchema as At, ONE_SHOT_VERBS as B, runnerKindSchema as Bt, writeRunRecord as C, runProvideHook as Cn, compoundHostSchema as Ct, OUTPUTS_FILE as D, defineHostSchemas as Dt, HostLoadError as E, declaredHostSchemas as Et, probeHostsFolder as F, reactorHostSchema as Ft, kindShapeIssues as G, TOKEN_ESCAPE_KEY as Gt, getVerb as H, driveDeclarationSchema as Ht, readOutputsFileHash as I, reactorProtocolSchema as It, resolveRunnerModule as J, envTokenSchema as Jt, knownVerbIssues as K, TOKEN_KEYS as Kt, scanHostImports as L, reactorSchema as Lt, lintHostImports as M, profileSchema as Mt, lintOutputsFile as N, reactorBackendKindSchema as Nt, computeOutputsHash as O, emitHostJsonSchema as Ot, loadHost as P, reactorBackendSchema as Pt, describeMapElements as Q, isToken as Qt, stripComments as R, refineStartOrder as Rt, readRunRecord as S, runObserveHookSequential as Sn, childrenSchema as St, runRecordSchema as T, declaredGenericCompoundHostSchema as Tt, hostSchemaIssues as U, drivesSchema as Ut, RunnerError as V, buildDriveDeclarationSchema as Vt, isSchemaLike as W, projectDriveIdWith as Wt, validateHost as X, findToken as Xt, validateDeclaredHost as Y, envTokenable as Yt, TokenResolutionError as Z, forbidRef as Zt, clearRunRecord as _, pluginEntryObjectSchema as _n, formatPath as _t, takesCspRegistrySync as a, tokenSchema as an, isBuiltinEnvName as at, probeRun as b, resolveOrder as bn, unwrapEscapes as bt, compoundOutputSource as c, findDeadConnectConfig as cn, checkOutputPaths as ct, producerOutputsSchemas as d, PluginError as dn, outputRefsOf as dt, keyTokenSchema as en, unsetEnvMessage as et, runRecordOutputSource as f, entryActiveForVerb as fn, outputSitesOf as ft, applyChildWrapper as g, normalizePluginEntry as gn, describeToken as gt, resolveUserDataPlaceholders as h, normalizePluginEntries as hn, collectTokenSites as ht, runCompound as i, tokenKeyOf as in, BUILTIN_ENV_NAMES as it, lintHostImportGraph as j, makeHostSchemas as jt, describeHostOutputs as k, emittedHostSchemas as kt, loadProducers as l, resolveHostPlugins as ln, checkTokenSites as lt, defaultUserDataDir as m, mergeContributions as mn, schemaAtPath as mt, memberVerbOf as n, outputTokenSchema as nn, memberForRef as nt, runnerHandleSchema as o, tokenable as on, substituteBuiltinEnv as ot, runnerOutputsSchema as p, hostTypeSatisfies as pn, refKey as pt, listVerbs as q, concatTokenSchema as qt, prepareMember as r, ref as rn, planCompound as rt, toStartedHandle as s, CONNECT_PLUGIN_OWNED_SLICES as sn, findRemovedForms as st, compoundStartVerb as t, mapTokenSchema as tn, PlanError as tt, processResolveEnv as u, resolvePluginContributions as un, envSitesOf as ut, isPidAlive as v, pluginEntrySchema as vn, isPlainObject as vt, runRecordMemberSchema as w, runTransformHook as wn, compoundWiringSchema as wt, readProjectName as x, runObserveHook as xn, childWrapperSchema as xt, listRunRecords as y, registerHostType as yn, renderTokens as yt, CONNECT_RUNNER as z, runnerBaseSchema as zt };
|
|
2885
2872
|
|
|
2886
|
-
//# sourceMappingURL=compound-
|
|
2873
|
+
//# sourceMappingURL=compound-Cfqa5Jal.mjs.map
|