@powerhousedao/shared 6.2.3-dev.57 → 6.2.3-dev.59
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/clis/args/{help-DS1NlcJQ.mjs → help-BfAqpYvC.mjs} +29 -2
- package/dist/clis/args/help-BfAqpYvC.mjs.map +1 -0
- package/dist/clis/args/{help-DVPTARGn.d.mts → help-KuqI-EEG.d.mts} +16 -3
- package/dist/clis/args/help-KuqI-EEG.d.mts.map +1 -0
- package/dist/clis/args/help.d.mts +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +1 -1
- package/dist/clis/args/index.mjs +1 -1
- package/dist/clis/args/run-CYp5t1xU.mjs +28 -0
- package/dist/clis/args/run-CYp5t1xU.mjs.map +1 -0
- package/dist/clis/args/run.d.mts +18 -0
- package/dist/clis/args/run.d.mts.map +1 -0
- package/dist/clis/args/run.mjs +2 -0
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/command-names.d.mts +1 -1
- package/dist/clis/command-names.mjs +1 -0
- package/dist/clis/command-names.mjs.map +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/feature-flags.d.mts +17 -0
- package/dist/clis/feature-flags.d.mts.map +1 -0
- package/dist/clis/feature-flags.mjs +21 -0
- package/dist/clis/feature-flags.mjs.map +1 -0
- package/dist/clis/index.d.mts +27 -3
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +51 -1
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-BZBiwi6I.d.mts → types-CvKkAvq4.d.mts} +12 -1
- package/dist/clis/{types-BZBiwi6I.d.mts.map → types-CvKkAvq4.d.mts.map} +1 -1
- package/dist/{config-loader-DpeoExZO.js → config-loader-DBJolZd0.js} +9 -1
- package/dist/{config-loader-DpeoExZO.js.map → config-loader-DBJolZd0.js.map} +1 -1
- package/dist/connect/config-loader.d.ts +7 -1
- package/dist/connect/config-loader.d.ts.map +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/document-drive/index.d.ts +3 -3
- package/dist/document-model/errors.d.ts +1 -1
- package/dist/document-model/index.d.ts +1 -1
- package/dist/{index-C3fD6cad.d.ts → index-Bv7Q0YM4.d.ts} +2 -2
- package/dist/{index-C3fD6cad.d.ts.map → index-Bv7Q0YM4.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-DDH6v2BE.d.ts → types-BUqiKtkv.d.ts} +13 -2
- package/dist/{types-DDH6v2BE.d.ts.map → types-BUqiKtkv.d.ts.map} +1 -1
- package/dist/{types-CywupGpk.d.ts → types-CfJnFDjg.d.ts} +2 -2
- package/dist/{types-CywupGpk.d.ts.map → types-CfJnFDjg.d.ts.map} +1 -1
- package/package.json +5 -1
- package/dist/clis/args/help-DS1NlcJQ.mjs.map +0 -1
- package/dist/clis/args/help-DVPTARGn.d.mts.map +0 -1
|
@@ -9,12 +9,32 @@ import { t as loginArgs } from "./login-CIFkQExi.mjs";
|
|
|
9
9
|
import { t as migrateArgs } from "./migrate-DwJGhc2d.mjs";
|
|
10
10
|
import { t as publishArgs } from "./publish-DHqlGWmL.mjs";
|
|
11
11
|
import { n as registryLoginArgs } from "./registry-DIwES3l2.mjs";
|
|
12
|
+
import { t as runArgs } from "./run-CYp5t1xU.mjs";
|
|
12
13
|
import { t as switchboardArgs } from "./switchboard-CCaAtU56.mjs";
|
|
13
14
|
import { t as uninstallArgs } from "./uninstall-3U0B8g5c.mjs";
|
|
14
15
|
import { r as vetraArgs } from "./vetra-BUNlAAPp.mjs";
|
|
15
16
|
import { command } from "cmd-ts";
|
|
17
|
+
//#region clis/feature-flags.ts
|
|
18
|
+
/**
|
|
19
|
+
* Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).
|
|
20
|
+
* Hand-rolled env predicates by the CLI convention — deliberately no
|
|
21
|
+
* OpenFeature dependency here; that stack belongs to the runtime apps.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Gates the uniform-runners surface: the `ph run` command (registration,
|
|
25
|
+
* help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`
|
|
26
|
+
* hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout
|
|
27
|
+
* plan: docs/plans/2026-10-13-uniform-runners.md.
|
|
28
|
+
*/
|
|
29
|
+
const UNIFORM_RUNNERS_FLAG = "FEATURE_UNIFORM_RUNNERS_ENABLED";
|
|
30
|
+
function isUniformRunnersEnabled(env = process.env) {
|
|
31
|
+
const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();
|
|
32
|
+
return value === "1" || value === "true";
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
16
35
|
//#region clis/command-names.ts
|
|
17
36
|
const phCliCommandNames = [
|
|
37
|
+
"run",
|
|
18
38
|
"generate",
|
|
19
39
|
"vetra",
|
|
20
40
|
"connect",
|
|
@@ -49,7 +69,13 @@ function helpCommand(config) {
|
|
|
49
69
|
aliases
|
|
50
70
|
});
|
|
51
71
|
}
|
|
52
|
-
const
|
|
72
|
+
const allPhCliHelpCommands = {
|
|
73
|
+
run: helpCommand({
|
|
74
|
+
name: "run",
|
|
75
|
+
args: runArgs,
|
|
76
|
+
description: "Run a host from hosts/ with its runner",
|
|
77
|
+
handler: () => {}
|
|
78
|
+
}),
|
|
53
79
|
generate: helpCommand({
|
|
54
80
|
name: "generate",
|
|
55
81
|
args: generateArgs,
|
|
@@ -146,7 +172,8 @@ const phCliHelpCommands = {
|
|
|
146
172
|
handler: () => {}
|
|
147
173
|
})
|
|
148
174
|
};
|
|
175
|
+
const phCliHelpCommands = isUniformRunnersEnabled() ? allPhCliHelpCommands : (({ run: _run, ...rest }) => rest)(allPhCliHelpCommands);
|
|
149
176
|
//#endregion
|
|
150
177
|
export { phCliCommandNames as n, phCliHelpCommands as t };
|
|
151
178
|
|
|
152
|
-
//# sourceMappingURL=help-
|
|
179
|
+
//# sourceMappingURL=help-BfAqpYvC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-BfAqpYvC.mjs","names":[],"sources":["../../../clis/feature-flags.ts","../../../clis/command-names.ts","../../../clis/args/help.ts"],"sourcesContent":["/**\n * Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).\n * Hand-rolled env predicates by the CLI convention — deliberately no\n * OpenFeature dependency here; that stack belongs to the runtime apps.\n */\n\n/**\n * Gates the uniform-runners surface: the `ph run` command (registration,\n * help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`\n * hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout\n * plan: docs/plans/2026-10-13-uniform-runners.md.\n */\nexport const UNIFORM_RUNNERS_FLAG = \"FEATURE_UNIFORM_RUNNERS_ENABLED\";\n\nexport function isUniformRunnersEnabled(\n env: Record<string, string | undefined> = process.env,\n): boolean {\n const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();\n return value === \"1\" || value === \"true\";\n}\n","// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"run\",\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"migrate\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n","import { command } from \"cmd-ts\";\nimport { isUniformRunnersEnabled } from \"../feature-flags.js\";\nimport type { phCliCommandNames } from \"../command-names.js\";\nimport { accessTokenArgs } from \"./access-token.js\";\nimport { debugArgs } from \"./common.js\";\nimport { connectArgs } from \"./connect.js\";\nimport { generateArgs } from \"./generate.js\";\nimport { inspectArgs } from \"./inspect.js\";\nimport { installArgs } from \"./install.js\";\nimport { listArgs } from \"./list.js\";\nimport { loginArgs } from \"./login.js\";\nimport { migrateArgs } from \"./migrate.js\";\nimport { publishArgs } from \"./publish.js\";\nimport { registryLoginArgs } from \"./registry.js\";\nimport { runArgs } from \"./run.js\";\nimport { switchboardArgs } from \"./switchboard.js\";\nimport { uninstallArgs } from \"./uninstall.js\";\nimport { vetraArgs } from \"./vetra.js\";\n\n// Thin wrapper around `command()` that preserves the literal types of\n// `name` and `aliases` on the return value.\nfunction helpCommand<\n const N extends string,\n const A extends readonly string[] = readonly [],\n>(\n config: Parameters<typeof command>[0] & { name: N; aliases?: A },\n): ReturnType<typeof command> & { readonly name: N; readonly aliases: A } {\n const aliases = (config.aliases ?? ([] as readonly string[])) as A;\n // Forward the original config (with the normalized aliases) through cmd-ts\n // and re-attach the literal types via a localized cast.\n return Object.assign(command({ ...config, aliases: [...aliases] }), {\n name: config.name,\n aliases,\n }) as ReturnType<typeof command> & {\n readonly name: N;\n readonly aliases: A;\n };\n}\n\nconst allPhCliHelpCommands = {\n run: helpCommand({\n name: \"run\",\n args: runArgs,\n description: \"Run a host from hosts/ with its runner\",\n handler: () => {},\n }),\n generate: helpCommand({\n name: \"generate\",\n args: generateArgs,\n description: \"Generate powerhouse code\",\n handler: () => {},\n }),\n vetra: helpCommand({\n name: \"vetra\",\n args: vetraArgs,\n description:\n \"Starts Vetra development environment with switchboard, reactor, and connect\",\n handler: () => {},\n }),\n connect: helpCommand({\n name: \"connect\",\n args: connectArgs,\n description: \"Powerhouse Connect commands\",\n handler: () => {},\n }),\n build: helpCommand({\n name: \"build\",\n args: debugArgs,\n description: \"Build your project for publishing to the registry\",\n handler: () => {},\n }),\n publish: helpCommand({\n name: \"publish\",\n args: publishArgs,\n description: \"Publish a package to the Powerhouse registry\",\n handler: () => {},\n }),\n list: helpCommand({\n name: \"list\",\n aliases: [\"l\"],\n args: listArgs,\n description: \"List installed packages\",\n handler: () => {},\n }),\n \"access-token\": helpCommand({\n name: \"access-token\",\n args: accessTokenArgs,\n description: \"Generate a bearer token for API authentication\",\n handler: () => {},\n }),\n \"registry-login\": helpCommand({\n name: \"registry-login\",\n args: registryLoginArgs,\n description:\n \"Log in to a Powerhouse registry (writes a Renown bearer token to ~/.npmrc)\",\n handler: () => {},\n }),\n inspect: helpCommand({\n name: \"inspect\",\n aliases: [\"is\"],\n args: inspectArgs,\n description: \"Inspect a package\",\n handler: () => {},\n }),\n migrate: helpCommand({\n name: \"migrate\",\n args: migrateArgs,\n description: \"Run migrations\",\n handler: () => {},\n }),\n switchboard: helpCommand({\n name: \"switchboard\",\n aliases: [\"reactor\"],\n args: switchboardArgs,\n description: \"Starts local Switchboard\",\n handler: () => {},\n }),\n login: helpCommand({\n name: \"login\",\n args: loginArgs,\n description: \"Authenticate with Renown using your Ethereum wallet\",\n handler: () => {},\n }),\n logout: helpCommand({\n name: \"logout\",\n args: loginArgs,\n description: \"Deletes an existing session created with 'ph login'\",\n handler: () => {},\n }),\n install: helpCommand({\n name: \"install\",\n aliases: [\"add\", \"i\"],\n args: installArgs,\n description: \"Install a Powerhouse dependency\",\n handler: () => {},\n }),\n uninstall: helpCommand({\n name: \"uninstall\",\n aliases: [\"remove\"],\n args: uninstallArgs,\n description: \"Uninstall a Powerhouse dependency\",\n handler: () => {},\n }),\n};\n\n// `run` is flag-gated: with uniform-runners off it must not surface in help\n// or dispatch at all (ph-cli also skips its registration). The cast keeps the\n// FULL compile-time shape so the drift guard below still pairs the name lists\n// while the runtime object simply lacks the key.\nexport const phCliHelpCommands = (\n isUniformRunnersEnabled()\n ? allPhCliHelpCommands\n : (({ run: _run, ...rest }) => rest)(allPhCliHelpCommands)\n) as typeof allPhCliHelpCommands;\n\nexport { phCliCommandNames } from \"../command-names.js\";\n\n// Compile-time drift guard: phCliCommandNames must match the names+aliases\n// declared above. If you add or rename a command/alias, the type of\n// `_DerivedNames` changes and the assignment below errors until\n// `command-names.ts` is updated to match. Costs nothing at runtime.\ntype _DerivedNames = {\n [K in keyof typeof phCliHelpCommands]:\n | (typeof phCliHelpCommands)[K][\"name\"]\n | (typeof phCliHelpCommands)[K][\"aliases\"][number];\n}[keyof typeof phCliHelpCommands];\n\ntype _Names = (typeof phCliCommandNames)[number];\n\ntype _Equal<A, B> =\n (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2\n ? true\n : false;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst _phCliCommandNamesInSync: _Equal<_DerivedNames, _Names> extends true\n ? true\n : never = true;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAa,uBAAuB;AAEpC,SAAgB,wBACd,MAA0C,QAAQ,KACzC;CACT,MAAM,QAAQ,IAAI,qBAAqB,EAAE,KAAK,CAAC,CAAC,YAAY;CAC5D,OAAO,UAAU,OAAO,UAAU;AACpC;;;ACjBA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;ACJA,SAAS,YAIP,QACwE;CACxE,MAAM,UAAW,OAAO,WAAY,CAAC;CAGrC,OAAO,OAAO,OAAO,QAAQ;EAAE,GAAG;EAAQ,SAAS,CAAC,GAAG,OAAO;CAAE,CAAC,GAAG;EAClE,MAAM,OAAO;EACb;CACF,CAAC;AAIH;AAEA,MAAM,uBAAuB;CAC3B,KAAK,YAAY;EACf,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,UAAU,YAAY;EACpB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CA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
|
//#region clis/command-names.d.ts
|
|
2
|
-
declare const phCliCommandNames: readonly ["generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
|
|
2
|
+
declare const phCliCommandNames: readonly ["run", "generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region clis/args/help.d.ts
|
|
5
|
-
declare const
|
|
5
|
+
declare const allPhCliHelpCommands: {
|
|
6
|
+
run: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
7
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>>;
|
|
10
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
}, any> & {
|
|
13
|
+
run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<any>>;
|
|
14
|
+
} & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased> & {
|
|
15
|
+
readonly name: "run";
|
|
16
|
+
readonly aliases: readonly [];
|
|
17
|
+
};
|
|
6
18
|
generate: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
7
19
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
8
20
|
[x: string]: any;
|
|
@@ -184,7 +196,8 @@ declare const phCliHelpCommands: {
|
|
|
184
196
|
readonly aliases: ["remove"];
|
|
185
197
|
};
|
|
186
198
|
};
|
|
199
|
+
declare const phCliHelpCommands: typeof allPhCliHelpCommands;
|
|
187
200
|
//#endregion
|
|
188
201
|
export { phCliCommandNames as n, phCliHelpCommands as t };
|
|
189
202
|
export {};
|
|
190
|
-
//# sourceMappingURL=help-
|
|
203
|
+
//# sourceMappingURL=help-KuqI-EEG.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"help-KuqI-EEG.d.mts","names":[],"sources":["../../../clis/command-names.ts","../../../clis/args/help.ts"],"mappings":";cAEa;;;cCqCP;EACJ,KAAG,+CAAA;;;;;;;;;;;;EAMH,UAAQ,+CAAA;;;;;;;;;;;;EAMR,OAAK,+CAAA;;;;;;;;;;;;EAOL,SAAO,+CAAA;;;;;;;;;;;;EAMP,OAAK,+CAAA;;;;;;;;;;;;EAML,SAAO,+CAAA;;;;;;;;;;;;EAMP,MAAI,+CAAA;;;;;;;;;;;;EAOJ,gBAAc,+CAAA;;;;;;;;;;;;EAMd,kBAAgB,+CAAA;;;;;;;;;;;;EAOhB,SAAO,+CAAA;;;;;;;;;;;;EAOP,SAAO,+CAAA;;;;;;;;;;;;EAMP,aAAW,+CAAA;;;;;;;;;;;;EAOX,OAAK,+CAAA;;;;;;;;;;;;EAML,QAAM,+CAAA;;;;;;;;;;;;EAMN,SAAO,+CAAA;;;;;;;;;;;;EAOP,WAAS,+CAAA;;;;;;;;;;;;;cAaE,0BAID"}
|
package/dist/clis/args/help.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-
|
|
1
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BfAqpYvC.mjs";
|
|
2
2
|
export { phCliCommandNames, phCliHelpCommands };
|
|
@@ -2,7 +2,7 @@ import { t as accessTokenArgs } from "./access-token-C5sKsH2O.mjs";
|
|
|
2
2
|
import { _ as packageManagerArgs, a as connectBasePath, b as renownSwitchboardUrl, c as disableLocalPackages, d as getPackageManagerCommand, f as https, g as logLevel, h as localPackage, i as commonServerArgs, l as drivesPreserveStrategy, m as httpsKeyFile, n as buildArgs, o as debugArgs, p as httpsCertFile, r as commonArgs, s as defaultDrivesUrl, t as AGENTS, u as force, v as packages, x as vetraSwitchboardArgs, y as renownNamespace } from "./common-Bnm859xU.mjs";
|
|
3
3
|
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-DjeiqXus.mjs";
|
|
4
4
|
import { t as generateArgs } from "./generate-BPBBLeUD.mjs";
|
|
5
|
-
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-
|
|
5
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-KuqI-EEG.mjs";
|
|
6
6
|
import { t as initArgs } from "./init-CTaK80wE.mjs";
|
|
7
7
|
import { t as inspectArgs } from "./inspect-BjRmtB86.mjs";
|
|
8
8
|
import { t as installArgs } from "./install-B0tMyUMw.mjs";
|
package/dist/clis/args/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { _ as packageManagerArgs, a as connectBasePath, b as renownSwitchboardUr
|
|
|
2
2
|
import { t as accessTokenArgs } from "./access-token-3Hqv_U8I.mjs";
|
|
3
3
|
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-BG3HkYBk.mjs";
|
|
4
4
|
import { t as generateArgs } from "./generate-BOItUNvP.mjs";
|
|
5
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BfAqpYvC.mjs";
|
|
5
6
|
import { t as inspectArgs } from "./inspect-UNQgtuR0.mjs";
|
|
6
7
|
import { t as installArgs } from "./install-F-27kF6m.mjs";
|
|
7
8
|
import { t as listArgs } from "./list-Bkfn8Yuo.mjs";
|
|
@@ -12,7 +13,6 @@ import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./re
|
|
|
12
13
|
import { t as switchboardArgs } from "./switchboard-CCaAtU56.mjs";
|
|
13
14
|
import { t as uninstallArgs } from "./uninstall-3U0B8g5c.mjs";
|
|
14
15
|
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-BUNlAAPp.mjs";
|
|
15
|
-
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-DS1NlcJQ.mjs";
|
|
16
16
|
import { t as initArgs } from "./init-xlCNZ8Oe.mjs";
|
|
17
17
|
import { t as serviceArgs } from "./service-Cpjlyeu5.mjs";
|
|
18
18
|
import { t as unpublishArgs } from "./unpublish-s9zUh6Gw.mjs";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { boolean, flag, option, optional, positional, string } from "cmd-ts";
|
|
2
|
+
//#region clis/args/run.ts
|
|
3
|
+
const runArgs = {
|
|
4
|
+
host: positional({
|
|
5
|
+
type: string,
|
|
6
|
+
displayName: "host",
|
|
7
|
+
description: "the host to run (a directory under hosts/)"
|
|
8
|
+
}),
|
|
9
|
+
verb: positional({
|
|
10
|
+
type: optional(string),
|
|
11
|
+
displayName: "verb",
|
|
12
|
+
description: "optional verb the runner forwards (dev, build, serve, …)"
|
|
13
|
+
}),
|
|
14
|
+
debug: flag({
|
|
15
|
+
type: optional(boolean),
|
|
16
|
+
long: "debug",
|
|
17
|
+
description: "verbose runner diagnostics"
|
|
18
|
+
}),
|
|
19
|
+
explain: option({
|
|
20
|
+
type: optional(string),
|
|
21
|
+
long: "explain",
|
|
22
|
+
description: "explain a resolved aspect instead of running (drives)"
|
|
23
|
+
})
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { runArgs as t };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=run-CYp5t1xU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-CYp5t1xU.mjs","names":[],"sources":["../../../clis/args/run.ts"],"sourcesContent":["import { boolean, flag, option, optional, positional, string } from \"cmd-ts\";\n\n// Mirrors clis/ph-cli/src/commands/run.ts — the uniform-runners entry point.\n// Kept here so ph-cmd's help/dispatch (phCliHelpCommands) can describe it;\n// the command itself stays flag-gated in ph-cli (FEATURE_UNIFORM_RUNNERS_ENABLED).\nexport const runArgs = {\n host: positional({\n type: string,\n displayName: \"host\",\n description: \"the host to run (a directory under hosts/)\",\n }),\n verb: positional({\n type: optional(string),\n displayName: \"verb\",\n description: \"optional verb the runner forwards (dev, build, serve, …)\",\n }),\n debug: flag({\n type: optional(boolean),\n long: \"debug\",\n description: \"verbose runner diagnostics\",\n }),\n explain: option({\n type: optional(string),\n long: \"explain\",\n description: \"explain a resolved aspect instead of running (drives)\",\n }),\n};\n"],"mappings":";;AAKA,MAAa,UAAU;CACrB,MAAM,WAAW;EACf,MAAM;EACN,aAAa;EACb,aAAa;CACf,CAAC;CACD,MAAM,WAAW;EACf,MAAM,SAAS,MAAM;EACrB,aAAa;EACb,aAAa;CACf,CAAC;CACD,OAAO,KAAK;EACV,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;CACf,CAAC;CACD,SAAS,OAAO;EACd,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;AACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region clis/args/run.d.ts
|
|
2
|
+
export declare const runArgs: {
|
|
3
|
+
host: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
4
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<string>>;
|
|
5
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
6
|
+
verb: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
7
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<string | undefined>>;
|
|
8
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
9
|
+
debug: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
10
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean | undefined>>;
|
|
11
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
12
|
+
explain: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
13
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<string | undefined>>;
|
|
14
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=run.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.mts","names":[],"sources":["../../../clis/args/run.ts"],"mappings":";qBAKa;EACX,MAAI,+CAAA;;;EAKJ,MAAI,+CAAA;;;EAKJ,OAAK,+CAAA;;;EAKL,SAAO,+CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as InlineConfig } from "./index-6CZwrmQi.mjs";
|
|
2
|
-
import { t as Manifest } from "./types-
|
|
2
|
+
import { t as Manifest } from "./types-CvKkAvq4.mjs";
|
|
3
3
|
//#region clis/external-deps.d.mts
|
|
4
4
|
/** The files one module needs at run time, and why each was included. */
|
|
5
5
|
type FileTrace = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region clis/command-names.d.ts
|
|
2
|
-
export declare const phCliCommandNames: readonly ["generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
|
|
2
|
+
export declare const phCliCommandNames: readonly ["run", "generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
|
|
3
3
|
//#endregion
|
|
4
4
|
export {};
|
|
5
5
|
//# sourceMappingURL=command-names.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-names.mjs","names":[],"sources":["../../clis/command-names.ts"],"sourcesContent":["// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"migrate\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n"],"mappings":";AAEA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
1
|
+
{"version":3,"file":"command-names.mjs","names":[],"sources":["../../clis/command-names.ts"],"sourcesContent":["// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"run\",\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"migrate\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n"],"mappings":";AAEA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as PH_GLOBAL_PROJECT_NAME, B as SERVICE_ACTIONS, C as LEGACY_LINT_FORMAT_DEPENDENCIES, D as PEER_EXTERNAL_DEPENDENCIES, E as MINIMUM_NODE_VERSION, F as PROJECT_PORT_BAND_STUDIO, G as externalDependencies, H as VERSIONED_DEV_DEPENDENCIES, I as PROJECT_PORT_BAND_SWITCHBOARD, J as packageScripts, K as externalDevDependencies, L as PROJECT_PORT_BAND_VETRA_CONNECT, M as POWERHOUSE_CONFIG_FILE, N as POWERHOUSE_GLOBAL_DIR, O as PH_BIN, P as PROJECT_PORT_BAND_SIZE, R as REACTOR_API_PACKAGE, S as HOME_DIR, T as LOG_LEVELS, U as VERSIONED_PEER_DEPENDENCIES, V as VERSIONED_DEPENDENCIES, W as defaultManifest, _ as DEFAULT_VETRA_DRIVE_ID, a as DEFAULT_CONFIG, b as GRAPHQL_PACKAGE, c as DEFAULT_CONNECT_STUDIO_PORT, d as DEFAULT_EXPIRY_SECONDS, f as DEFAULT_REGISTRY_URL, g as DEFAULT_VETRA_CONNECT_PORT, h as DEFAULT_TIMEOUT, i as BOILERPLATE_DEPENDENCY_OVERRIDES, j as PIECES_FRAMEWORK_PACKAGE, k as PH_GLOBAL_DIR_NAME, l as DEFAULT_DRIVE_ICON, m as DEFAULT_SWITCHBOARD_PORT, n as ANALYTICS_ENGINE_CORE_PACKAGE, o as DEFAULT_CONNECT_OUTDIR, p as DEFAULT_RENOWN_URL, q as packageJsonExports, r as BOILERPLATE_ALLOWED_BUILDS, s as DEFAULT_CONNECT_PREVIEW_PORT, u as DEFAULT_EXPIRY_DAYS, v as DRIVES_PRESERVE_STRATEGIES, w as LEGACY_LINT_FORMAT_FILES, x as GRAPHQL_TAG_PACKAGE, y as FEATURE_DEPENDENCIES, z as SECONDS_IN_DAY } from "./types-
|
|
1
|
+
import { A as PH_GLOBAL_PROJECT_NAME, B as SERVICE_ACTIONS, C as LEGACY_LINT_FORMAT_DEPENDENCIES, D as PEER_EXTERNAL_DEPENDENCIES, E as MINIMUM_NODE_VERSION, F as PROJECT_PORT_BAND_STUDIO, G as externalDependencies, H as VERSIONED_DEV_DEPENDENCIES, I as PROJECT_PORT_BAND_SWITCHBOARD, J as packageScripts, K as externalDevDependencies, L as PROJECT_PORT_BAND_VETRA_CONNECT, M as POWERHOUSE_CONFIG_FILE, N as POWERHOUSE_GLOBAL_DIR, O as PH_BIN, P as PROJECT_PORT_BAND_SIZE, R as REACTOR_API_PACKAGE, S as HOME_DIR, T as LOG_LEVELS, U as VERSIONED_PEER_DEPENDENCIES, V as VERSIONED_DEPENDENCIES, W as defaultManifest, _ as DEFAULT_VETRA_DRIVE_ID, a as DEFAULT_CONFIG, b as GRAPHQL_PACKAGE, c as DEFAULT_CONNECT_STUDIO_PORT, d as DEFAULT_EXPIRY_SECONDS, f as DEFAULT_REGISTRY_URL, g as DEFAULT_VETRA_CONNECT_PORT, h as DEFAULT_TIMEOUT, i as BOILERPLATE_DEPENDENCY_OVERRIDES, j as PIECES_FRAMEWORK_PACKAGE, k as PH_GLOBAL_DIR_NAME, l as DEFAULT_DRIVE_ICON, m as DEFAULT_SWITCHBOARD_PORT, n as ANALYTICS_ENGINE_CORE_PACKAGE, o as DEFAULT_CONNECT_OUTDIR, p as DEFAULT_RENOWN_URL, q as packageJsonExports, r as BOILERPLATE_ALLOWED_BUILDS, s as DEFAULT_CONNECT_PREVIEW_PORT, u as DEFAULT_EXPIRY_DAYS, v as DRIVES_PRESERVE_STRATEGIES, w as LEGACY_LINT_FORMAT_FILES, x as GRAPHQL_TAG_PACKAGE, y as FEATURE_DEPENDENCIES, z as SECONDS_IN_DAY } from "./types-CvKkAvq4.mjs";
|
|
2
2
|
export { ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_DRIVE_ICON, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, PIECES_FRAMEWORK_PACKAGE, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, defaultManifest, externalDependencies, externalDevDependencies, packageJsonExports, packageScripts };
|
|
3
3
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region clis/feature-flags.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).
|
|
4
|
+
* Hand-rolled env predicates by the CLI convention — deliberately no
|
|
5
|
+
* OpenFeature dependency here; that stack belongs to the runtime apps.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Gates the uniform-runners surface: the `ph run` command (registration,
|
|
9
|
+
* help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`
|
|
10
|
+
* hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout
|
|
11
|
+
* plan: docs/plans/2026-10-13-uniform-runners.md.
|
|
12
|
+
*/
|
|
13
|
+
export declare const UNIFORM_RUNNERS_FLAG = "FEATURE_UNIFORM_RUNNERS_ENABLED";
|
|
14
|
+
export declare function isUniformRunnersEnabled(env?: Record<string, string | undefined>): boolean;
|
|
15
|
+
//#endregion
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=feature-flags.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-flags.d.mts","names":[],"sources":["../../clis/feature-flags.ts"],"mappings":";;;;;;;;;;;;qBAYa;wBAEG,wBACd,MAAK"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region clis/feature-flags.ts
|
|
2
|
+
/**
|
|
3
|
+
* Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).
|
|
4
|
+
* Hand-rolled env predicates by the CLI convention — deliberately no
|
|
5
|
+
* OpenFeature dependency here; that stack belongs to the runtime apps.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Gates the uniform-runners surface: the `ph run` command (registration,
|
|
9
|
+
* help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`
|
|
10
|
+
* hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout
|
|
11
|
+
* plan: docs/plans/2026-10-13-uniform-runners.md.
|
|
12
|
+
*/
|
|
13
|
+
const UNIFORM_RUNNERS_FLAG = "FEATURE_UNIFORM_RUNNERS_ENABLED";
|
|
14
|
+
function isUniformRunnersEnabled(env = process.env) {
|
|
15
|
+
const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();
|
|
16
|
+
return value === "1" || value === "true";
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { UNIFORM_RUNNERS_FLAG, isUniformRunnersEnabled };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=feature-flags.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-flags.mjs","names":[],"sources":["../../clis/feature-flags.ts"],"sourcesContent":["/**\n * Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).\n * Hand-rolled env predicates by the CLI convention — deliberately no\n * OpenFeature dependency here; that stack belongs to the runtime apps.\n */\n\n/**\n * Gates the uniform-runners surface: the `ph run` command (registration,\n * help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`\n * hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout\n * plan: docs/plans/2026-10-13-uniform-runners.md.\n */\nexport const UNIFORM_RUNNERS_FLAG = \"FEATURE_UNIFORM_RUNNERS_ENABLED\";\n\nexport function isUniformRunnersEnabled(\n env: Record<string, string | undefined> = process.env,\n): boolean {\n const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();\n return value === \"1\" || value === \"true\";\n}\n"],"mappings":";;;;;;;;;;;;AAYA,MAAa,uBAAuB;AAEpC,SAAgB,wBACd,MAA0C,QAAQ,KACzC;CACT,MAAM,QAAQ,IAAI,qBAAqB,EAAE,KAAK,CAAC,CAAC,YAAY;CAC5D,OAAO,UAAU,OAAO,UAAU;AACpC"}
|
package/dist/clis/index.d.mts
CHANGED
|
@@ -748,10 +748,22 @@ export declare const generateArgs: {
|
|
|
748
748
|
};
|
|
749
749
|
//#endregion
|
|
750
750
|
//#region clis/command-names.d.ts
|
|
751
|
-
export declare const phCliCommandNames: readonly ["generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
|
|
751
|
+
export declare const phCliCommandNames: readonly ["run", "generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
|
|
752
752
|
//#endregion
|
|
753
753
|
//#region clis/args/help.d.ts
|
|
754
|
-
|
|
754
|
+
declare const allPhCliHelpCommands: {
|
|
755
|
+
run: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
756
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
757
|
+
[x: string]: any;
|
|
758
|
+
}>>;
|
|
759
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
|
|
760
|
+
[x: string]: any;
|
|
761
|
+
}, any> & {
|
|
762
|
+
run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<any>>;
|
|
763
|
+
} & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased> & {
|
|
764
|
+
readonly name: "run";
|
|
765
|
+
readonly aliases: readonly [];
|
|
766
|
+
};
|
|
755
767
|
generate: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
756
768
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
757
769
|
[x: string]: any;
|
|
@@ -933,6 +945,7 @@ export declare const phCliHelpCommands: {
|
|
|
933
945
|
readonly aliases: ["remove"];
|
|
934
946
|
};
|
|
935
947
|
};
|
|
948
|
+
export declare const phCliHelpCommands: typeof allPhCliHelpCommands;
|
|
936
949
|
//#endregion
|
|
937
950
|
//#region clis/args/init.d.ts
|
|
938
951
|
export declare const initArgs: {
|
|
@@ -1578,7 +1591,18 @@ type PHConnectPwa = {
|
|
|
1578
1591
|
/** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
|
|
1579
1592
|
navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
|
|
1580
1593
|
};
|
|
1594
|
+
/** One entry of the host.js composition, projected into the served config as
|
|
1595
|
+
* DATA (module specifier + validated config) — the browser pipeline resolves
|
|
1596
|
+
* and runs them (rewire R3). Verb filtering happens at the runner. */
|
|
1597
|
+
type PHConnectCompositionEntry = {
|
|
1598
|
+
module: string;
|
|
1599
|
+
config?: Record<string, unknown>;
|
|
1600
|
+
};
|
|
1581
1601
|
type PHConnectRuntimeConfig = {
|
|
1602
|
+
/** The plugin composition this Connect boots with (rewire R3): present
|
|
1603
|
+
* only when the host file declares runner.plugins — absent means the
|
|
1604
|
+
* classic defaults. */
|
|
1605
|
+
composition?: PHConnectCompositionEntry[];
|
|
1582
1606
|
branding?: PHConnectBranding;
|
|
1583
1607
|
app?: PHConnectApp;
|
|
1584
1608
|
ai?: PHConnectAi;
|
|
@@ -2939,6 +2963,6 @@ export declare class NodeVersionError extends Error {
|
|
|
2939
2963
|
}
|
|
2940
2964
|
export declare function assertNodeVersion(nodeVersion?: string): void;
|
|
2941
2965
|
//#endregion
|
|
2942
|
-
export type { DrivePreserveStrategies, DrivePreserveStrategy, LogLevel, LogLevels, PHConnectAi, PHConnectApp, PHConnectBranding, PHConnectDefaultDrive, PHConnectDefaultDriveLocal, PHConnectDefaultDriveRemote, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectOpenPanel, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectReactor, PHConnectReactorFeatureFlags, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PHReactorRenown, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PackageManagerArgs, ParsedCmdResult, PathValidation, PowerhouseConfig, PowerhousePackage, ServiceAction, ServiceActions };
|
|
2966
|
+
export type { DrivePreserveStrategies, DrivePreserveStrategy, LogLevel, LogLevels, PHConnectAi, PHConnectApp, PHConnectBranding, PHConnectCompositionEntry, PHConnectDefaultDrive, PHConnectDefaultDriveLocal, PHConnectDefaultDriveRemote, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectOpenPanel, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectReactor, PHConnectReactorFeatureFlags, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PHReactorRenown, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PackageManagerArgs, ParsedCmdResult, PathValidation, PowerhouseConfig, PowerhousePackage, ServiceAction, ServiceActions };
|
|
2943
2967
|
export {};
|
|
2944
2968
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../clis/args/access-token.ts","../../clis/args/common.ts","../../clis/args/connect.ts","../../clis/args/generate.ts","../../clis/command-names.ts","../../clis/args/help.ts","../../clis/args/init.ts","../../clis/args/inspect.ts","../../clis/args/install.ts","../../clis/args/list.ts","../../clis/args/login.ts","../../clis/args/migrate.ts","../../clis/args/publish.ts","../../clis/args/registry.ts","../../document-model/schemas.ts","../../document-model/types.ts","../../clis/constants.ts","../../clis/types.ts","../../clis/args/service.ts","../../clis/args/switchboard.ts","../../clis/args/uninstall.ts","../../clis/args/unpublish.ts","../../clis/args/vetra.ts","../../clis/file-system/dependencies.ts","../../clis/file-system/directory-exists.ts","../../clis/file-system/file-exists.ts","../../clis/file-system/get-config.ts","../../clis/file-system/package-json.ts","../../clis/file-system/projects.ts","../../clis/file-system/run-cmd.ts","../../clis/file-system/spawn-async.ts","../../clis/file-system/version-info.ts","../../clis/file-system/write-file-ensuring-dir.ts","../../clis/services/telemetry.ts","../../clis/services/use-local.ts","../../clis/source-config-schema.ts","../../clis/utils.ts"],"mappings":";;;;;;;;qBAIa;;;;;;;;;;;;;qBCmBA,QAAQ;qBAER;EACX,OAAK,+CAAA;;;;qBAOM;;;;;;;;;;;;;;qBA2BA;EACX,gBAAc,+CAAA;;;EAOd,KAAG,+CAAA;;;EAKH,MAAI,+CAAA;;;EAKJ,MAAI,+CAAA;;;EAKJ,KAAG,+CAAA;;;;qBAMQ,0BAAwB,+CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAInC,6CAAA,iDAAA,mDAAA;qBACW,UAAQ,+CAAA;;yCAKnB,eAAA,6CAAA;qBAEW,cAAY,+CAAA;;yCAKvB,eAAA,6CAAA;qBAEW,sBAAoB,+CAAA;;yCAK/B,sDAAA,WAAA,6CAAA;qBAEW,cAAY,+CAAA;;yCAWvB,eAAA,6CAAA;qBAEW,eAAa,+CAAA;;yCAWxB,eAAA,6CAAA;qBAEW,OAAK,+CAAA;;yCAUhB,sDAAA,WAAA,6CAAA;qBAEW;;;;;;;;;;;;;;;;;;;;;;;qBAmBA,kBAAgB,+CAAA;;yCAK3B,eAAA,6CAAA;qBAEW,UAAQ,+CAAA;;yCAOnB,eAAA,6CAAA;qBAEW,iBAAe,+CAAA;;yCAK1B,eAAA,6CAAA;qBAEW,iBAAe,+CAAA;;yCAK1B,eAAA,6CAAA;qBAEW,sBAAoB,+CAAA;;yCAK/B,eAAA,6CAAA;qBAEW,wBAAsB,+CAAA;;yCAMjC,eAAA,6CAAA;qBAEW,OAAK,+CAAA;;yCAKhB,sDAAA,WAAA,6CAAA;qBAEW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAYA;EACX,MAAI,+CAAA;;;EAMJ,MAAI,+CAAA;;;EAKJ,MAAI,+CAAA;;;EAKJ,YAAU,+CAAA;;;EAKV,WAAS,+CAAA;;;EAOT,kBAAgB,+CAAA;;;EAOhB,cAAY,+CAAA;;;;;;qBCrOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4JA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAyBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8CA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBC5PA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCrCA;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../clis/args/access-token.ts","../../clis/args/common.ts","../../clis/args/connect.ts","../../clis/args/generate.ts","../../clis/command-names.ts","../../clis/args/help.ts","../../clis/args/init.ts","../../clis/args/inspect.ts","../../clis/args/install.ts","../../clis/args/list.ts","../../clis/args/login.ts","../../clis/args/migrate.ts","../../clis/args/publish.ts","../../clis/args/registry.ts","../../document-model/schemas.ts","../../document-model/types.ts","../../clis/constants.ts","../../clis/types.ts","../../clis/args/service.ts","../../clis/args/switchboard.ts","../../clis/args/uninstall.ts","../../clis/args/unpublish.ts","../../clis/args/vetra.ts","../../clis/file-system/dependencies.ts","../../clis/file-system/directory-exists.ts","../../clis/file-system/file-exists.ts","../../clis/file-system/get-config.ts","../../clis/file-system/package-json.ts","../../clis/file-system/projects.ts","../../clis/file-system/run-cmd.ts","../../clis/file-system/spawn-async.ts","../../clis/file-system/version-info.ts","../../clis/file-system/write-file-ensuring-dir.ts","../../clis/services/telemetry.ts","../../clis/services/use-local.ts","../../clis/source-config-schema.ts","../../clis/utils.ts"],"mappings":";;;;;;;;qBAIa;;;;;;;;;;;;;qBCmBA,QAAQ;qBAER;EACX,OAAK,+CAAA;;;;qBAOM;;;;;;;;;;;;;;qBA2BA;EACX,gBAAc,+CAAA;;;EAOd,KAAG,+CAAA;;;EAKH,MAAI,+CAAA;;;EAKJ,MAAI,+CAAA;;;EAKJ,KAAG,+CAAA;;;;qBAMQ,0BAAwB,+CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAInC,6CAAA,iDAAA,mDAAA;qBACW,UAAQ,+CAAA;;yCAKnB,eAAA,6CAAA;qBAEW,cAAY,+CAAA;;yCAKvB,eAAA,6CAAA;qBAEW,sBAAoB,+CAAA;;yCAK/B,sDAAA,WAAA,6CAAA;qBAEW,cAAY,+CAAA;;yCAWvB,eAAA,6CAAA;qBAEW,eAAa,+CAAA;;yCAWxB,eAAA,6CAAA;qBAEW,OAAK,+CAAA;;yCAUhB,sDAAA,WAAA,6CAAA;qBAEW;;;;;;;;;;;;;;;;;;;;;;;qBAmBA,kBAAgB,+CAAA;;yCAK3B,eAAA,6CAAA;qBAEW,UAAQ,+CAAA;;yCAOnB,e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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAME;;;;;;;;;;;;wBCjPQ,sBACd,YACA;EAAY;EAAiB;;qBAOlB,yBAAyB;EACpC,YAAY,wBAAwB;SAO7B,QAAQ,iBAAiB,SAAS;;wBAK3B,kBAAkB"}
|
package/dist/clis/index.mjs
CHANGED
|
@@ -954,6 +954,24 @@ const generateArgs = {
|
|
|
954
954
|
...debugArgs
|
|
955
955
|
};
|
|
956
956
|
//#endregion
|
|
957
|
+
//#region clis/feature-flags.ts
|
|
958
|
+
/**
|
|
959
|
+
* Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).
|
|
960
|
+
* Hand-rolled env predicates by the CLI convention — deliberately no
|
|
961
|
+
* OpenFeature dependency here; that stack belongs to the runtime apps.
|
|
962
|
+
*/
|
|
963
|
+
/**
|
|
964
|
+
* Gates the uniform-runners surface: the `ph run` command (registration,
|
|
965
|
+
* help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`
|
|
966
|
+
* hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout
|
|
967
|
+
* plan: docs/plans/2026-10-13-uniform-runners.md.
|
|
968
|
+
*/
|
|
969
|
+
const UNIFORM_RUNNERS_FLAG = "FEATURE_UNIFORM_RUNNERS_ENABLED";
|
|
970
|
+
function isUniformRunnersEnabled(env = process.env) {
|
|
971
|
+
const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();
|
|
972
|
+
return value === "1" || value === "true";
|
|
973
|
+
}
|
|
974
|
+
//#endregion
|
|
957
975
|
//#region clis/args/inspect.ts
|
|
958
976
|
const inspectArgs = {
|
|
959
977
|
packageName: positional({
|
|
@@ -1085,6 +1103,30 @@ const registryLoginArgs = {
|
|
|
1085
1103
|
...debugArgs
|
|
1086
1104
|
};
|
|
1087
1105
|
//#endregion
|
|
1106
|
+
//#region clis/args/run.ts
|
|
1107
|
+
const runArgs = {
|
|
1108
|
+
host: positional({
|
|
1109
|
+
type: string,
|
|
1110
|
+
displayName: "host",
|
|
1111
|
+
description: "the host to run (a directory under hosts/)"
|
|
1112
|
+
}),
|
|
1113
|
+
verb: positional({
|
|
1114
|
+
type: optional(string),
|
|
1115
|
+
displayName: "verb",
|
|
1116
|
+
description: "optional verb the runner forwards (dev, build, serve, …)"
|
|
1117
|
+
}),
|
|
1118
|
+
debug: flag({
|
|
1119
|
+
type: optional(boolean),
|
|
1120
|
+
long: "debug",
|
|
1121
|
+
description: "verbose runner diagnostics"
|
|
1122
|
+
}),
|
|
1123
|
+
explain: option({
|
|
1124
|
+
type: optional(string),
|
|
1125
|
+
long: "explain",
|
|
1126
|
+
description: "explain a resolved aspect instead of running (drives)"
|
|
1127
|
+
})
|
|
1128
|
+
};
|
|
1129
|
+
//#endregion
|
|
1088
1130
|
//#region clis/args/switchboard.ts
|
|
1089
1131
|
const switchboardArgs = {
|
|
1090
1132
|
...vetraSwitchboardArgs,
|
|
@@ -1297,6 +1339,7 @@ const vetraArgs = {
|
|
|
1297
1339
|
//#endregion
|
|
1298
1340
|
//#region clis/command-names.ts
|
|
1299
1341
|
const phCliCommandNames = [
|
|
1342
|
+
"run",
|
|
1300
1343
|
"generate",
|
|
1301
1344
|
"vetra",
|
|
1302
1345
|
"connect",
|
|
@@ -1331,7 +1374,13 @@ function helpCommand(config) {
|
|
|
1331
1374
|
aliases
|
|
1332
1375
|
});
|
|
1333
1376
|
}
|
|
1334
|
-
const
|
|
1377
|
+
const allPhCliHelpCommands = {
|
|
1378
|
+
run: helpCommand({
|
|
1379
|
+
name: "run",
|
|
1380
|
+
args: runArgs,
|
|
1381
|
+
description: "Run a host from hosts/ with its runner",
|
|
1382
|
+
handler: () => {}
|
|
1383
|
+
}),
|
|
1335
1384
|
generate: helpCommand({
|
|
1336
1385
|
name: "generate",
|
|
1337
1386
|
args: generateArgs,
|
|
@@ -1428,6 +1477,7 @@ const phCliHelpCommands = {
|
|
|
1428
1477
|
handler: () => {}
|
|
1429
1478
|
})
|
|
1430
1479
|
};
|
|
1480
|
+
const phCliHelpCommands = isUniformRunnersEnabled() ? allPhCliHelpCommands : (({ run: _run, ...rest }) => rest)(allPhCliHelpCommands);
|
|
1431
1481
|
//#endregion
|
|
1432
1482
|
//#region clis/args/init.ts
|
|
1433
1483
|
const initArgs = {
|