@powerhousedao/host-core 6.2.3-dev.73 → 6.2.3-dev.75

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 { m as RunnerContext, n as RunCompoundResult, z as HostDefinition } from "../compound-PhoVeqe1.mjs";
1
+ import { _ as RunnerContext, n as RunCompoundResult, q as HostDefinition } from "../compound-DlaK_sWa.mjs";
2
2
  //#region src/runners/compound.d.ts
3
3
  /**
4
4
  * The GENERIC compound runner module (phase 3): supervises the members a
@@ -1 +1 @@
1
- {"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;;;;qBAsBa;qBAEA,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA4B;qBACtC,kCAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAoC;wBAc7C,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAKW,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 { g as readProjectName, pt as declaredGenericCompoundHostSchema, t as runCompound, vt as genericCompoundHostSchema } from "../compound-B6RZMA0Y.mjs";
1
+ import { b as readProjectName, i as runCompound, kt as genericCompoundHostSchema, t as compoundStartVerb, wt as declaredGenericCompoundHostSchema } from "../compound-Gjt5rBfF.mjs";
2
2
  //#region src/runners/compound.ts
3
3
  /**
4
4
  * The GENERIC compound runner module (phase 3): supervises the members a
@@ -22,7 +22,7 @@ async function startAt(host, ctx, memberVerb) {
22
22
  }, { projectName: readProjectName(ctx.projectRoot) });
23
23
  }
24
24
  async function run(host, ctx) {
25
- return startAt(host, ctx, host.runner.defaultVerb ?? "run");
25
+ return startAt(host, ctx, compoundStartVerb("run", host.runner));
26
26
  }
27
27
  async function dev(host, ctx) {
28
28
  return startAt(host, ctx, "dev");
@@ -1 +1 @@
1
- {"version":3,"file":"compound.mjs","names":[],"sources":["../../src/runners/compound.ts"],"sourcesContent":["import {\n declaredGenericCompoundHostSchema,\n genericCompoundHostSchema,\n type HostDefinition,\n} from \"../host-schemas.js\";\nimport { runCompound, type RunCompoundResult } from \"../compound.js\";\nimport { readProjectName } from \"../run-record.js\";\nimport type { RunnerContext } from \"../runner-resolver.js\";\n\n/**\n * The GENERIC compound runner module (phase 3): supervises the members a\n * compound host declares via the runCompound engine. Verb semantics: `run`\n * starts members at `runner.defaultVerb ?? \"run\"`; `dev`/`build`/`serve`\n * start members at that same verb — an explicit `ph run <host> <verb>` beats\n * defaultVerb structurally. A member whose runner lacks the forwarded verb\n * fails the compound loudly with that member's verb list (never skipped).\n *\n * Vetra does NOT run through this yet (phase-1 scope decision: its drive\n * provisioning arrives as plugin contributions); the first real consumer is\n * the desktop-shaped host (switchboard `run` + connect `serve`).\n */\n\nexport const kind = \"compound\";\n\nexport const hostSchema = genericCompoundHostSchema;\nexport const declaredHostSchema = declaredGenericCompoundHostSchema;\n\nasync function startAt(\n host: HostDefinition,\n ctx: RunnerContext,\n memberVerb: string,\n): Promise<RunCompoundResult> {\n return runCompound(\n host,\n { ...ctx, verb: memberVerb },\n { projectName: readProjectName(ctx.projectRoot) },\n );\n}\n\nexport async function run(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n const defaultVerb = host.runner.defaultVerb ?? \"run\";\n return startAt(host, ctx, defaultVerb);\n}\n\nexport async function dev(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"dev\");\n}\n\nexport async function build(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"build\");\n}\n\nexport async function serve(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"serve\");\n}\n"],"mappings":";;;;;;;;;;;;;;AAsBA,MAAa,OAAO;AAEpB,MAAa,aAAa;AAC1B,MAAa,qBAAqB;AAElC,eAAe,QACb,MACA,KACA,YAC4B;CAC5B,OAAO,YACL,MACA;EAAE,GAAG;EAAK,MAAM;CAAW,GAC3B,EAAE,aAAa,gBAAgB,IAAI,WAAW,EAAE,CAClD;AACF;AAEA,eAAsB,IACpB,MACA,KAC4B;CAE5B,OAAO,QAAQ,MAAM,KADD,KAAK,OAAO,eAAe,KACV;AACvC;AAEA,eAAsB,IACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,KAAK;AACjC;AAEA,eAAsB,MACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,OAAO;AACnC;AAEA,eAAsB,MACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,OAAO;AACnC"}
1
+ {"version":3,"file":"compound.mjs","names":[],"sources":["../../src/runners/compound.ts"],"sourcesContent":["import {\n declaredGenericCompoundHostSchema,\n genericCompoundHostSchema,\n type HostDefinition,\n} from \"../host-schemas.js\";\nimport {\n compoundStartVerb,\n runCompound,\n type RunCompoundResult,\n} from \"../compound.js\";\nimport { readProjectName } from \"../run-record.js\";\nimport type { RunnerContext } from \"../runner-resolver.js\";\n\n/**\n * The GENERIC compound runner module (phase 3): supervises the members a\n * compound host declares via the runCompound engine. Verb semantics: `run`\n * starts members at `runner.defaultVerb ?? \"run\"`; `dev`/`build`/`serve`\n * start members at that same verb — an explicit `ph run <host> <verb>` beats\n * defaultVerb structurally. A member whose runner lacks the forwarded verb\n * fails the compound loudly with that member's verb list (never skipped).\n *\n * Vetra does NOT run through this yet (phase-1 scope decision: its drive\n * provisioning arrives as plugin contributions); the first real consumer is\n * the desktop-shaped host (switchboard `run` + connect `serve`).\n */\n\nexport const kind = \"compound\";\n\nexport const hostSchema = genericCompoundHostSchema;\nexport const declaredHostSchema = declaredGenericCompoundHostSchema;\n\nasync function startAt(\n host: HostDefinition,\n ctx: RunnerContext,\n memberVerb: string,\n): Promise<RunCompoundResult> {\n return runCompound(\n host,\n { ...ctx, verb: memberVerb },\n { projectName: readProjectName(ctx.projectRoot) },\n );\n}\n\nexport async function run(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, compoundStartVerb(\"run\", host.runner));\n}\n\nexport async function dev(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"dev\");\n}\n\nexport async function build(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"build\");\n}\n\nexport async function serve(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"serve\");\n}\n"],"mappings":";;;;;;;;;;;;;;AA0BA,MAAa,OAAO;AAEpB,MAAa,aAAa;AAC1B,MAAa,qBAAqB;AAElC,eAAe,QACb,MACA,KACA,YAC4B;CAC5B,OAAO,YACL,MACA;EAAE,GAAG;EAAK,MAAM;CAAW,GAC3B,EAAE,aAAa,gBAAgB,IAAI,WAAW,EAAE,CAClD;AACF;AAEA,eAAsB,IACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,kBAAkB,OAAO,KAAK,MAAM,CAAC;AACjE;AAEA,eAAsB,IACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,KAAK;AACjC;AAEA,eAAsB,MACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,OAAO;AACnC;AAEA,eAAsB,MACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,OAAO;AACnC"}
package/dist/schema.d.mts CHANGED
@@ -100,6 +100,19 @@ interface StartedHandle extends RunnerHandleData {
100
100
  * is an empty handle; anything else must match runnerHandleSchema. */
101
101
  export declare function toStartedHandle(value: unknown, where: string): StartedHandle;
102
102
  //#endregion
103
- export { type ArrayMapToken, type BuiltinEnv, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundWiring, type ConcatToken, type DriveDeclaration, type EnvToken, type HostDefinition, 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 };
103
+ //#region src/host-issues.d.ts
104
+ /** Where in the `ph run` pipeline a host check found an issue. */
105
+ type CheckStage = "load" | "declared" | "resolve" | "resolved" | "boot";
106
+ interface HostIssue {
107
+ stage: CheckStage;
108
+ /** A compound's issues come from its members' files too. */
109
+ file: string;
110
+ /** Empty when the issue concerns the file as a whole. */
111
+ path: string;
112
+ message: string;
113
+ hint?: string;
114
+ }
115
+ //#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 };
104
117
  export {};
105
118
  //# sourceMappingURL=schema.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.mts","names":[],"sources":["../src/drive-schema.ts","../src/runner-handle.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"}
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"}
package/dist/schema.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as envTokenable, B as tokenSchema, C as driveDeclarationSchema, D as TOKEN_KEYS, E as TOKEN_ESCAPE_KEY, F as keyTokenSchema, I as mapTokenSchema, L as outputTokenSchema, M as forbidRef, N as isToken, O as concatTokenSchema, P as itemTokenSchema, R as ref, S as buildDriveDeclarationSchema, T as projectDriveIdWith, V as tokenable, _ as reactorProtocolSchema, a as compoundWiringSchema, b as runnerBaseSchema, c as defineHostSchemas, d as genericCompoundHostSchema, f as makeHostSchemas, g as reactorHostSchema, h as reactorBackendSchema, i as compoundHostSchema, j as findToken, k as envTokenSchema, l as emitHostJsonSchema, m as reactorBackendKindSchema, n as childWrapperSchema, o as declaredGenericCompoundHostSchema, p as profileSchema, r as childrenSchema, s as declaredHostSchemas, t as substituteBuiltinEnv, u as emittedHostSchemas, v as reactorSchema, w as drivesSchema, x as runnerKindSchema, y as refineStartOrder, z as tokenKeyOf } from "./env-substitution-Dj3pdsut.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-BjpuE5fm.mjs";
2
2
  import { pluginEntryObjectSchema, pluginEntrySchema } from "./plugins.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/runner-handle.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/host-core",
3
- "version": "6.2.3-dev.73",
3
+ "version": "6.2.3-dev.75",
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.73",
52
+ "@powerhousedao/shared": "6.2.3-dev.75",
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.73"
58
+ "@powerhousedao/reactor-monitor": "6.2.3-dev.75"
59
59
  },
60
60
  "scripts": {
61
61
  "tsc": "tsc",