@powerhousedao/ph-cli 6.2.3-dev.61 → 6.2.3-dev.63
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/{build-skPHsKkL.mjs → build-BM-zayLm.mjs} +7 -3
- package/dist/build-BM-zayLm.mjs.map +1 -0
- package/dist/build-BZGpUn8f.mjs +4 -0
- package/dist/{cli-connect-override-CuheCf3N.mjs → cli-connect-override-DP5vRA7N.mjs} +4 -4
- package/dist/{cli-connect-override-CuheCf3N.mjs.map → cli-connect-override-DP5vRA7N.mjs.map} +1 -1
- package/dist/cli.mjs +4 -4
- package/dist/{connect-build-CyNALLxq.mjs → connect-build-xRrXk9-p.mjs} +31 -10
- package/dist/connect-build-xRrXk9-p.mjs.map +1 -0
- package/dist/{connect-config-B0WoJoZv.mjs → connect-config-BvS0chVq.mjs} +4 -4
- package/dist/{connect-config-B0WoJoZv.mjs.map → connect-config-BvS0chVq.mjs.map} +1 -1
- package/dist/{connect-preview-Clue7SVp.mjs → connect-preview-BW6XnRtj.mjs} +42 -11
- package/dist/connect-preview-BW6XnRtj.mjs.map +1 -0
- package/dist/{connect-studio-B-HTpgG2.mjs → connect-studio-8EyDblpG.mjs} +4 -4
- package/dist/{connect-studio-B-HTpgG2.mjs.map → connect-studio-8EyDblpG.mjs.map} +1 -1
- package/dist/{connect-studio-ClS1PdVV.mjs → connect-studio-NxCVdXDv.mjs} +3 -3
- package/dist/{dist-BsyiY0Fw.mjs → dist-BqeDFgEy.mjs} +5 -5
- package/dist/{dist-BsyiY0Fw.mjs.map → dist-BqeDFgEy.mjs.map} +1 -1
- package/dist/{explain-j11Vgf0Z.mjs → explain-D6gLYBd0.mjs} +4 -4
- package/dist/{explain-j11Vgf0Z.mjs.map → explain-D6gLYBd0.mjs.map} +1 -1
- package/dist/{generate-desktop-shell-DFOsRPgq.mjs → generate-desktop-shell-itIzf77U.mjs} +4 -4
- package/dist/{generate-desktop-shell-DFOsRPgq.mjs.map → generate-desktop-shell-itIzf77U.mjs.map} +1 -1
- package/dist/{host-schemas-CL_wFpY7-BDyTA_z_.mjs → host-schemas-CL_wFpY7-B_pY14Jy.mjs} +5 -5
- package/dist/{host-schemas-CL_wFpY7-BDyTA_z_.mjs.map → host-schemas-CL_wFpY7-B_pY14Jy.mjs.map} +1 -1
- package/dist/{index-CApW1xbO.d.mts → index-CspiP73o.d.mts} +840 -297
- package/dist/index-CspiP73o.d.mts.map +1 -0
- package/dist/{ph-cli-commands-ByuH-lXH.mjs → ph-cli-commands-CLJP7yKV.mjs} +12 -12
- package/dist/{ph-cli-commands-ByuH-lXH.mjs.map → ph-cli-commands-CLJP7yKV.mjs.map} +1 -1
- package/dist/ph-cli-commands-NHDoX5i7.mjs +4 -0
- package/dist/{plugins-PTnPaBIG.mjs → plugins-CHVv4qup.mjs} +4 -4
- package/dist/{plugins-PTnPaBIG.mjs.map → plugins-CHVv4qup.mjs.map} +1 -1
- package/dist/{reactor-env-Dx0Hxi5I.mjs → reactor-env-BbR86_Li.mjs} +4 -4
- package/dist/{reactor-env-Dx0Hxi5I.mjs.map → reactor-env-BbR86_Li.mjs.map} +1 -1
- package/dist/reactor-env-D_EvBtLB.mjs +4 -0
- package/dist/{run-sugar-D3C0Ptvv.mjs → run-sugar-DveBlJqh.mjs} +4 -4
- package/dist/{run-sugar-D3C0Ptvv.mjs.map → run-sugar-DveBlJqh.mjs.map} +1 -1
- package/dist/runners/compound.d.mts +1 -1
- package/dist/runners/compound.mjs +4 -4
- package/dist/runners/connect.d.mts +1 -1
- package/dist/runners/connect.mjs +7 -7
- package/dist/runners/switchboard.d.mts +1 -1
- package/dist/runners/switchboard.mjs +7 -7
- package/dist/{schemas-BZZWQ72W.mjs → schemas-BQSPev1x.mjs} +2545 -970
- package/dist/schemas-BQSPev1x.mjs.map +1 -0
- package/dist/{start-run-1mjFpX7H.mjs → start-run-CASbiOWI.mjs} +4 -4
- package/dist/{start-run-1mjFpX7H.mjs.map → start-run-CASbiOWI.mjs.map} +1 -1
- package/dist/{vetra-BBcDGKgI.mjs → vetra-BV5F0YeG.mjs} +6 -6
- package/dist/{vetra-BBcDGKgI.mjs.map → vetra-BV5F0YeG.mjs.map} +1 -1
- package/package.json +14 -14
- package/dist/build-DmqwT-PR.mjs +0 -4
- package/dist/build-skPHsKkL.mjs.map +0 -1
- package/dist/connect-build-CyNALLxq.mjs.map +0 -1
- package/dist/connect-preview-Clue7SVp.mjs.map +0 -1
- package/dist/index-CApW1xbO.d.mts.map +0 -1
- package/dist/ph-cli-commands-sgvuh-kj.mjs +0 -4
- package/dist/reactor-env-BgyzjfYc.mjs +0 -4
- package/dist/schemas-BZZWQ72W.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-sugar-
|
|
1
|
+
{"version":3,"file":"run-sugar-DveBlJqh.mjs","sources":["../src/utils/run-sugar.ts"],"sourcesContent":["import { probeHostsFolder } from \"@powerhousedao/host-core\";\n\nexport interface RunSugarResult {\n args: string[];\n /** Set when hosts/ exists but is empty — the guard state: warn loudly, stay legacy. */\n warning?: string;\n}\n\n/**\n * `ph <host-name> [verb]` sugar: when the first arg is not a registered\n * command and names a host in the project's hosts/ folder, splice in `run`\n * (mirrors the connect→`connect studio` default-subcommand rewrite).\n * Built-in commands win collisions by construction — the known-command check\n * runs first. Callers only invoke this when the uniform-runners flag is on.\n */\n/** Classic commands that route through `ph run` in a hosts project — BARE\n * invocations only: extra flags are not representable on `ph run` yet, and\n * the classic path calls the same service, so flagged invocations stay\n * classic until the host-core compound takes over (phase 1). */\nconst CLASSIC_ALIASES = new Set([\"vetra\"]);\n\nexport function applyRunSugar(\n args: string[],\n knownCommands: ReadonlySet<string>,\n projectRoot: string,\n): RunSugarResult {\n const first = args[0];\n if (!first || first.startsWith(\"-\")) {\n return { args };\n }\n if (knownCommands.has(first)) {\n if (CLASSIC_ALIASES.has(first) && args.length === 1) {\n const probe = probeHostsFolder(projectRoot);\n if (probe.kind === \"present\" && probe.hosts.includes(first)) {\n return { args: [\"run\", first] };\n }\n }\n return { args };\n }\n const probe = probeHostsFolder(projectRoot);\n if (probe.kind === \"empty\") {\n return {\n args,\n warning:\n `hosts/ exists at ${probe.dir} but contains no <name>/host.js — ` +\n \"uniform-runners stays inactive (legacy command handling).\",\n };\n }\n if (probe.kind === \"present\" && probe.hosts.includes(first)) {\n return { args: [\"run\", ...args] };\n }\n return { args };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAM,kCAAkB,IAAI,IAAI,CAAC,OAAO,CAAC;AAEzC,SAAgB,cACd,MACA,eACA,aACgB;CAChB,MAAM,QAAQ,KAAK;CACnB,IAAI,CAAC,SAAS,MAAM,WAAW,GAAG,GAChC,OAAO,EAAE,KAAK;CAEhB,IAAI,cAAc,IAAI,KAAK,GAAG;EAC5B,IAAI,gBAAgB,IAAI,KAAK,KAAK,KAAK,WAAW,GAAG;GACnD,MAAM,QAAQ,iBAAiB,WAAW;GAC1C,IAAI,MAAM,SAAS,aAAa,MAAM,MAAM,SAAS,KAAK,GACxD,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,EAAE;EAElC;EACA,OAAO,EAAE,KAAK;CAChB;CACA,MAAM,QAAQ,iBAAiB,WAAW;CAC1C,IAAI,MAAM,SAAS,SACjB,OAAO;EACL;EACA,SACE,oBAAoB,MAAM,IAAI;CAElC;CAEF,IAAI,MAAM,SAAS,aAAa,MAAM,MAAM,SAAS,KAAK,GACxD,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,EAAE;CAElC,OAAO,EAAE,KAAK;AAChB","debug_id":"39b8ffa0-efd8-5cc5-acb9-42b46ae64498"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-
|
|
1
|
+
import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-CspiP73o.mjs";
|
|
2
2
|
//#region src/runners/compound.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* BRIDGE compound runner (uniform-runners phase 0): args derivation, not
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="33908ac1-e0c2-5b7a-b255-a5d71dbe11d6")}catch(e){}}();
|
|
3
|
-
import { a as looseObject, l as string } from "../schemas-
|
|
4
|
-
import { c as profileSchema, i as loadHost, t as childrenSchema } from "../host-schemas-CL_wFpY7-
|
|
3
|
+
import { a as looseObject, l as string } from "../schemas-BQSPev1x.mjs";
|
|
4
|
+
import { c as profileSchema, i as loadHost, t as childrenSchema } from "../host-schemas-CL_wFpY7-B_pY14Jy.mjs";
|
|
5
5
|
//#region src/runners/compound.ts
|
|
6
6
|
/**
|
|
7
7
|
* BRIDGE compound runner (uniform-runners phase 0): args derivation, not
|
|
@@ -56,13 +56,13 @@ async function run(host, ctx) {
|
|
|
56
56
|
...sbMember.host.reactor ?? {},
|
|
57
57
|
...sbWrapper?.reactor ?? {}
|
|
58
58
|
};
|
|
59
|
-
const { applyReactorEnvProjection } = await import("../reactor-env-
|
|
59
|
+
const { applyReactorEnvProjection } = await import("../reactor-env-D_EvBtLB.mjs");
|
|
60
60
|
applyReactorEnvProjection(sbReactor, `hosts/${switchboardRef.host}/host.js`);
|
|
61
61
|
const args = {
|
|
62
62
|
connectPort,
|
|
63
63
|
switchboardPort
|
|
64
64
|
};
|
|
65
|
-
const { startVetra } = await import("../vetra-
|
|
65
|
+
const { startVetra } = await import("../vetra-BV5F0YeG.mjs");
|
|
66
66
|
await startVetra(args);
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, m as ZodUnknown, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-
|
|
1
|
+
import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, m as ZodUnknown, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-CspiP73o.mjs";
|
|
2
2
|
//#region src/runners/connect.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* BRIDGE runner for Connect hosts (uniform-runners phase 0): maps a
|
package/dist/runners/connect.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d719951d-9c03-52c7-ab89-60c9ed3ca97c")}catch(e){}}();
|
|
3
|
-
import { a as looseObject, l as string, n as array, o as number, r as boolean } from "../schemas-
|
|
4
|
-
import { a as pluginEntrySchema, i as normalizePluginEntries, n as entryActiveForVerb } from "../plugins-
|
|
5
|
-
import { a as mergeDefaultDrives, c as profileSchema, f as resolveDriveDeclaration, l as projectDrivesIntoConnect, u as reactorSchema } from "../host-schemas-CL_wFpY7-
|
|
6
|
-
import { i as projectReactorToConnect, n as isStructuralMultiReactor, o as remoteBackendUrls } from "../dist-
|
|
3
|
+
import { a as looseObject, l as string, n as array, o as number, r as boolean } from "../schemas-BQSPev1x.mjs";
|
|
4
|
+
import { a as pluginEntrySchema, i as normalizePluginEntries, n as entryActiveForVerb } from "../plugins-CHVv4qup.mjs";
|
|
5
|
+
import { a as mergeDefaultDrives, c as profileSchema, f as resolveDriveDeclaration, l as projectDrivesIntoConnect, u as reactorSchema } from "../host-schemas-CL_wFpY7-B_pY14Jy.mjs";
|
|
6
|
+
import { i as projectReactorToConnect, n as isStructuralMultiReactor, o as remoteBackendUrls } from "../dist-BqeDFgEy.mjs";
|
|
7
7
|
import { DEFAULT_CONNECT_STUDIO_PORT } from "@powerhousedao/shared/clis";
|
|
8
8
|
//#region src/runners/connect.ts
|
|
9
9
|
/**
|
|
@@ -141,7 +141,7 @@ function callerOverride(host, ctx, verb = "dev") {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
async function dev(host, ctx) {
|
|
144
|
-
const { runConnectStudio } = await import("../connect-studio-
|
|
144
|
+
const { runConnectStudio } = await import("../connect-studio-NxCVdXDv.mjs");
|
|
145
145
|
await runConnectStudio(toStudioArgs(host), void 0, callerOverride(host, ctx, ctx.verb ?? "dev"));
|
|
146
146
|
}
|
|
147
147
|
/** `run` is dev-studio until the plugin phases give hosts a production
|
|
@@ -149,7 +149,7 @@ async function dev(host, ctx) {
|
|
|
149
149
|
const run = dev;
|
|
150
150
|
/** P3.3 — `build`: the SAME service as classic `ph connect build`. */
|
|
151
151
|
async function build(host, _ctx) {
|
|
152
|
-
const { runConnectBuild } = await import("../connect-build-
|
|
152
|
+
const { runConnectBuild } = await import("../connect-build-xRrXk9-p.mjs");
|
|
153
153
|
const runner = host.runner;
|
|
154
154
|
await runConnectBuild({ outDir: typeof runner.outDir === "string" ? runner.outDir : "dist" });
|
|
155
155
|
}
|
|
@@ -162,7 +162,7 @@ async function build(host, _ctx) {
|
|
|
162
162
|
* CSP's script-src for the runtime registry — together these replace the
|
|
163
163
|
* ph-win-desktop sidecar's hand-rolled static server (desktop shape). */
|
|
164
164
|
async function serve(host, ctx) {
|
|
165
|
-
const { runConnectPreview } = await import("../connect-preview-
|
|
165
|
+
const { runConnectPreview } = await import("../connect-preview-BW6XnRtj.mjs");
|
|
166
166
|
const runner = host.runner;
|
|
167
167
|
await runConnectPreview({
|
|
168
168
|
port: typeof runner.port === "number" ? runner.port : DEFAULT_CONNECT_STUDIO_PORT,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, m as ZodUnknown, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-
|
|
1
|
+
import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, m as ZodUnknown, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-CspiP73o.mjs";
|
|
2
2
|
//#region src/runners/switchboard.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* BRIDGE runner for Switchboard hosts (uniform-runners phase 0): maps a
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4c7bfb64-88a2-57bf-b4d9-3418e87fcd29")}catch(e){}}();
|
|
3
|
-
import { a as looseObject, l as string, n as array, o as number, r as boolean } from "../schemas-
|
|
4
|
-
import { a as pluginEntrySchema } from "../plugins-
|
|
5
|
-
import { c as profileSchema, f as resolveDriveDeclaration, m as seedDrives, u as reactorSchema } from "../host-schemas-CL_wFpY7-
|
|
6
|
-
import { s as resolveHostPlugins } from "../dist-
|
|
7
|
-
import { t as applyReactorEnvProjection } from "../reactor-env-
|
|
3
|
+
import { a as looseObject, l as string, n as array, o as number, r as boolean } from "../schemas-BQSPev1x.mjs";
|
|
4
|
+
import { a as pluginEntrySchema } from "../plugins-CHVv4qup.mjs";
|
|
5
|
+
import { c as profileSchema, f as resolveDriveDeclaration, m as seedDrives, u as reactorSchema } from "../host-schemas-CL_wFpY7-B_pY14Jy.mjs";
|
|
6
|
+
import { s as resolveHostPlugins } from "../dist-BqeDFgEy.mjs";
|
|
7
|
+
import { t as applyReactorEnvProjection } from "../reactor-env-BbR86_Li.mjs";
|
|
8
8
|
import { DEFAULT_SWITCHBOARD_PORT, DEFAULT_VETRA_DRIVE_ID } from "@powerhousedao/shared/clis";
|
|
9
9
|
//#region src/runners/switchboard.ts
|
|
10
10
|
/**
|
|
@@ -109,7 +109,7 @@ async function start(host, ctx, devMode) {
|
|
|
109
109
|
const driveUrl = `http://localhost:${port}/d/${localDrives.length > 0 ? localDrives[0].slug : typeof host.runner.driveSlug === "string" ? host.runner.driveSlug : DEFAULT_DRIVE_SLUG}`;
|
|
110
110
|
const driveUrls = localDrives.length > 0 ? localDrives.map((d) => `http://localhost:${port}/d/${d.slug}`) : [driveUrl];
|
|
111
111
|
if (switchboard?.workflowsEnabled) {
|
|
112
|
-
const { seedWorkflowsDrive } = await import("../vetra-
|
|
112
|
+
const { seedWorkflowsDrive } = await import("../vetra-BV5F0YeG.mjs");
|
|
113
113
|
driveUrls.push(await seedWorkflowsDrive(switchboard.reactor, port));
|
|
114
114
|
}
|
|
115
115
|
const ready = waitForDrive(driveUrl, 18e4);
|
|
@@ -131,7 +131,7 @@ async function dev(host, ctx) {
|
|
|
131
131
|
/** Build the project's reactor package (the SAME service as `ph build`) — what
|
|
132
132
|
* this switchboard serves. Starts no server; orthogonal to run/serve/dev. */
|
|
133
133
|
async function build(host, _ctx) {
|
|
134
|
-
const { runBuild } = await import("../build-
|
|
134
|
+
const { runBuild } = await import("../build-BZGpUn8f.mjs");
|
|
135
135
|
const runner = host.runner;
|
|
136
136
|
await runBuild({ outDir: typeof runner.outDir === "string" ? runner.outDir : "dist" });
|
|
137
137
|
}
|