@powerhousedao/shared 6.2.3-dev.10 → 6.2.3-dev.11
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/{access-token-To5LaIfL.mjs → access-token-zW_7Brog.mjs} +2 -2
- package/dist/clis/args/{access-token-To5LaIfL.mjs.map → access-token-zW_7Brog.mjs.map} +1 -1
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-CcYbXrBx.mjs → common-BT8ABM57.mjs} +9 -2
- package/dist/clis/args/{common-CcYbXrBx.mjs.map → common-BT8ABM57.mjs.map} +1 -1
- package/dist/clis/args/{common-Dsf1vpHV.d.mts → common-yKU4B741.d.mts} +6 -3
- package/dist/clis/args/common-yKU4B741.d.mts.map +1 -0
- package/dist/clis/args/common.d.mts +1 -1
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-BVVvCmL9.mjs → connect-BJs9xNFX.mjs} +2 -2
- package/dist/clis/args/{connect-BVVvCmL9.mjs.map → connect-BJs9xNFX.mjs.map} +1 -1
- package/dist/clis/args/{connect-DetTnI8g.d.mts → connect-BtU0MTTc.d.mts} +6 -6
- package/dist/clis/args/{connect-DetTnI8g.d.mts.map → connect-BtU0MTTc.d.mts.map} +1 -1
- package/dist/clis/args/connect.d.mts +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-CA916Fvj.mjs → generate-DkFqeNX3.mjs} +2 -2
- package/dist/clis/args/{generate-CA916Fvj.mjs.map → generate-DkFqeNX3.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-Bqbgbalu.mjs → help-mSyWtycB.mjs} +15 -15
- package/dist/clis/args/{help-Bqbgbalu.mjs.map → help-mSyWtycB.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +3 -3
- package/dist/clis/args/index.mjs +18 -18
- package/dist/clis/args/{init-rz9Ei7nq.mjs → init-Bu8-Ovk8.mjs} +2 -2
- package/dist/clis/args/{init-rz9Ei7nq.mjs.map → init-Bu8-Ovk8.mjs.map} +1 -1
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/{inspect-tckH8mSw.mjs → inspect-GjiR0Qqd.mjs} +2 -2
- package/dist/clis/args/{inspect-tckH8mSw.mjs.map → inspect-GjiR0Qqd.mjs.map} +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/{install-Sz2DlCHh.mjs → install-B2hLryPk.mjs} +2 -2
- package/dist/clis/args/{install-Sz2DlCHh.mjs.map → install-B2hLryPk.mjs.map} +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-DM2d6f1m.mjs → list-O6VmV3Cw.mjs} +2 -2
- package/dist/clis/args/{list-DM2d6f1m.mjs.map → list-O6VmV3Cw.mjs.map} +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-DiKT5Jfu.mjs → login-BWXdMfMX.mjs} +2 -2
- package/dist/clis/args/{login-DiKT5Jfu.mjs.map → login-BWXdMfMX.mjs.map} +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/{migrate-CG_gWc4k.mjs → migrate-3MTmDiXt.mjs} +2 -2
- package/dist/clis/args/{migrate-CG_gWc4k.mjs.map → migrate-3MTmDiXt.mjs.map} +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/{publish-DDZYsUfV.mjs → publish--zdKYIOl.mjs} +2 -2
- package/dist/clis/args/{publish-DDZYsUfV.mjs.map → publish--zdKYIOl.mjs.map} +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-C_OVFQmI.mjs → registry-BNVeE6qR.mjs} +2 -2
- package/dist/clis/args/{registry-C_OVFQmI.mjs.map → registry-BNVeE6qR.mjs.map} +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/{service-CHOOr0Gg.mjs → service-x6wsNujS.mjs} +2 -2
- package/dist/clis/args/{service-CHOOr0Gg.mjs.map → service-x6wsNujS.mjs.map} +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-Dsp7nosi.mjs → switchboard-Cryy_3Qc.mjs} +2 -2
- package/dist/clis/args/{switchboard-Dsp7nosi.mjs.map → switchboard-Cryy_3Qc.mjs.map} +1 -1
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-CTwTX0u_.mjs → uninstall-DQUsLzCG.mjs} +2 -2
- package/dist/clis/args/{uninstall-CTwTX0u_.mjs.map → uninstall-DQUsLzCG.mjs.map} +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/{unpublish-BPMkGEg5.mjs → unpublish-CeDsvgMv.mjs} +2 -2
- package/dist/clis/args/{unpublish-BPMkGEg5.mjs.map → unpublish-CeDsvgMv.mjs.map} +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-DLQ6lhLl.d.mts → vetra-CoMvTJK7.d.mts} +2 -2
- package/dist/clis/args/{vetra-DLQ6lhLl.d.mts.map → vetra-CoMvTJK7.d.mts.map} +1 -1
- package/dist/clis/args/{vetra-b4KUu1Ax.mjs → vetra-pYJXVf_o.mjs} +2 -2
- package/dist/clis/args/{vetra-b4KUu1Ax.mjs.map → vetra-pYJXVf_o.mjs.map} +1 -1
- package/dist/clis/args/vetra.d.mts +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-config.d.mts +29 -1
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/build-config.mjs +133 -19
- package/dist/clis/build-config.mjs.map +1 -1
- package/dist/clis/index.d.mts +11 -8
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +8 -1
- package/dist/clis/index.mjs.map +1 -1
- package/dist/connect/index.d.ts +92 -1
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +180 -1
- package/dist/connect/index.js.map +1 -1
- package/dist/document-drive/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/registry/index.d.ts +1 -1
- package/dist/types-BIoOWpOT.d.ts.map +1 -1
- package/dist/{types-DDpRvBK_.d.ts → types-jzM0X9cd.d.ts} +7 -1
- package/dist/{types-DDpRvBK_.d.ts.map → types-jzM0X9cd.d.ts.map} +1 -1
- package/package.json +1 -1
- package/dist/clis/args/common-Dsf1vpHV.d.mts.map +0 -1
package/dist/clis/args/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
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-
|
|
2
|
-
import { t as accessTokenArgs } from "./access-token-
|
|
3
|
-
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-
|
|
4
|
-
import { t as generateArgs } from "./generate-
|
|
5
|
-
import { t as inspectArgs } from "./inspect-
|
|
6
|
-
import { t as installArgs } from "./install-
|
|
7
|
-
import { t as listArgs } from "./list-
|
|
8
|
-
import { t as loginArgs } from "./login-
|
|
9
|
-
import { t as migrateArgs } from "./migrate-
|
|
10
|
-
import { t as publishArgs } from "./publish
|
|
11
|
-
import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-
|
|
12
|
-
import { t as switchboardArgs } from "./switchboard-
|
|
13
|
-
import { t as uninstallArgs } from "./uninstall-
|
|
14
|
-
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-
|
|
15
|
-
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-
|
|
16
|
-
import { t as initArgs } from "./init-
|
|
17
|
-
import { t as serviceArgs } from "./service-
|
|
18
|
-
import { t as unpublishArgs } from "./unpublish-
|
|
1
|
+
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-BT8ABM57.mjs";
|
|
2
|
+
import { t as accessTokenArgs } from "./access-token-zW_7Brog.mjs";
|
|
3
|
+
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-BJs9xNFX.mjs";
|
|
4
|
+
import { t as generateArgs } from "./generate-DkFqeNX3.mjs";
|
|
5
|
+
import { t as inspectArgs } from "./inspect-GjiR0Qqd.mjs";
|
|
6
|
+
import { t as installArgs } from "./install-B2hLryPk.mjs";
|
|
7
|
+
import { t as listArgs } from "./list-O6VmV3Cw.mjs";
|
|
8
|
+
import { t as loginArgs } from "./login-BWXdMfMX.mjs";
|
|
9
|
+
import { t as migrateArgs } from "./migrate-3MTmDiXt.mjs";
|
|
10
|
+
import { t as publishArgs } from "./publish--zdKYIOl.mjs";
|
|
11
|
+
import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-BNVeE6qR.mjs";
|
|
12
|
+
import { t as switchboardArgs } from "./switchboard-Cryy_3Qc.mjs";
|
|
13
|
+
import { t as uninstallArgs } from "./uninstall-DQUsLzCG.mjs";
|
|
14
|
+
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-pYJXVf_o.mjs";
|
|
15
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-mSyWtycB.mjs";
|
|
16
|
+
import { t as initArgs } from "./init-Bu8-Ovk8.mjs";
|
|
17
|
+
import { t as serviceArgs } from "./service-x6wsNujS.mjs";
|
|
18
|
+
import { t as unpublishArgs } from "./unpublish-CeDsvgMv.mjs";
|
|
19
19
|
export { AGENTS, DEFAULT_REGISTRY_LOGIN_EXPIRY, accessTokenArgs, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, generateArgs, getPackageManagerCommand, https, httpsCertFile, httpsKeyFile, initArgs, inspectArgs, installArgs, listArgs, localPackage, logLevel, loginArgs, migrateArgs, packageManagerArgs, packages, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, renownSwitchboardUrl, resolveConnectPortDefault, resolveSwitchboardPortDefault, serviceArgs, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as packageManagerArgs, o as debugArgs } from "./common-
|
|
1
|
+
import { _ as packageManagerArgs, o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { boolean, flag, oneOf, option, optional, positional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/init.ts
|
|
4
4
|
const initArgs = {
|
|
@@ -64,4 +64,4 @@ const initArgs = {
|
|
|
64
64
|
//#endregion
|
|
65
65
|
export { initArgs as t };
|
|
66
66
|
|
|
67
|
-
//# sourceMappingURL=init-
|
|
67
|
+
//# sourceMappingURL=init-Bu8-Ovk8.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-
|
|
1
|
+
{"version":3,"file":"init-Bu8-Ovk8.mjs","names":[],"sources":["../../../clis/args/init.ts"],"sourcesContent":["import {\n boolean,\n flag,\n oneOf,\n option,\n optional,\n positional,\n string,\n} from \"cmd-ts\";\nimport { debugArgs, packageManagerArgs } from \"./common.js\";\n\nexport const initArgs = {\n namePositional: positional({\n type: optional(string),\n displayName: \"name\",\n description:\n \"The name of your project. A new directory will be created in your current directory with this name.\",\n }),\n nameOption: option({\n type: optional(string),\n long: \"name\",\n short: \"n\",\n description:\n \"The name of your project. A new directory will be created in your current directory with this name.\",\n }),\n ...packageManagerArgs,\n tag: option({\n type: optional(oneOf([\"latest\", \"staging\", \"dev\", \"rc\"])),\n long: \"tag\",\n short: \"t\",\n description: `Specify the release tag to use for your project. Can be one of: \"latest\", \"staging\", \"dev\", or \"rc\".`,\n }),\n version: option({\n type: optional(string),\n long: \"version\",\n short: \"v\",\n description:\n \"Specify the exact semver release version to use for your project.\",\n }),\n dev: flag({\n type: optional(boolean),\n long: \"dev\",\n short: \"d\",\n description: \"Use the `dev` release tag.\",\n }),\n staging: flag({\n type: optional(boolean),\n long: \"staging\",\n short: \"s\",\n description: \"Use the `staging` release tag.\",\n }),\n rc: flag({\n type: optional(boolean),\n long: \"rc\",\n description: \"Use the `rc` release tag.\",\n }),\n remoteDrive: option({\n type: optional(string),\n long: \"remote-drive\",\n short: \"r\",\n description: \"Remote drive identifier.\",\n }),\n clone: option({\n type: optional(string),\n long: \"clone\",\n description:\n \"Path to an existing scaffolded project to clone instead of resolving deps from scratch. Install runs offline from the cloned project's pnpm-lock.yaml (requires --pnpm; --version/--tag are ignored).\",\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAWA,MAAa,WAAW;CACtB,gBAAgB,WAAW;EACzB,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,aACE;EACH,CAAC;CACF,YAAY,OAAO;EACjB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,OAAO;EACP,aACE;EACH,CAAC;CACF,GAAG;CACH,KAAK,OAAO;EACV,MAAM,SAAS,MAAM;GAAC;GAAU;GAAW;GAAO;GAAK,CAAC,CAAC;EACzD,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,SAAS,OAAO;EACd,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,OAAO;EACP,aACE;EACH,CAAC;CACF,KAAK,KAAK;EACR,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,SAAS,KAAK;EACZ,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,IAAI,KAAK;EACP,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,aAAa,OAAO;EAClB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,OAAO,OAAO;EACZ,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,GAAG;CACJ"}
|
package/dist/clis/args/init.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as initArgs } from "./init-
|
|
1
|
+
import { t as initArgs } from "./init-Bu8-Ovk8.mjs";
|
|
2
2
|
export { initArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { positional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/inspect.ts
|
|
4
4
|
const inspectArgs = {
|
|
@@ -12,4 +12,4 @@ const inspectArgs = {
|
|
|
12
12
|
//#endregion
|
|
13
13
|
export { inspectArgs as t };
|
|
14
14
|
|
|
15
|
-
//# sourceMappingURL=inspect-
|
|
15
|
+
//# sourceMappingURL=inspect-GjiR0Qqd.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-
|
|
1
|
+
{"version":3,"file":"inspect-GjiR0Qqd.mjs","names":[],"sources":["../../../clis/args/inspect.ts"],"sourcesContent":["import { positional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const inspectArgs = {\n packageName: positional({\n type: string,\n displayName: \"package-name\",\n description: \"The name of the package to inspect\",\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAGA,MAAa,cAAc;CACzB,aAAa,WAAW;EACtB,MAAM;EACN,aAAa;EACb,aAAa;EACd,CAAC;CACF,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as inspectArgs } from "./inspect-
|
|
1
|
+
import { t as inspectArgs } from "./inspect-GjiR0Qqd.mjs";
|
|
2
2
|
export { inspectArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as packageManagerArgs, o as debugArgs } from "./common-
|
|
1
|
+
import { _ as packageManagerArgs, o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { array, boolean, flag, multioption, option, optional, restPositionals, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/install.ts
|
|
4
4
|
const installArgs = {
|
|
@@ -29,4 +29,4 @@ const installArgs = {
|
|
|
29
29
|
//#endregion
|
|
30
30
|
export { installArgs as t };
|
|
31
31
|
|
|
32
|
-
//# sourceMappingURL=install-
|
|
32
|
+
//# sourceMappingURL=install-B2hLryPk.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-
|
|
1
|
+
{"version":3,"file":"install-B2hLryPk.mjs","names":[],"sources":["../../../clis/args/install.ts"],"sourcesContent":["import {\n array,\n boolean,\n flag,\n multioption,\n option,\n optional,\n restPositionals,\n string,\n} from \"cmd-ts\";\nimport { debugArgs, packageManagerArgs } from \"./common.js\";\n\nexport const installArgs = {\n dependencies: restPositionals({\n type: string,\n displayName: \"dependencies\",\n description: \"Names of the dependencies to install\",\n }),\n registry: option({\n type: optional(string),\n long: \"registry\",\n description:\n \"Registry URL to install from (overrides config and environment)\",\n }),\n local: flag({\n type: optional(boolean),\n long: \"local\",\n description:\n 'Also install packages into node_modules (marks them as provider: \"local\" so they get bundled into ph connect build)',\n }),\n allowBuild: multioption({\n type: array(string),\n long: \"allow-build\",\n description:\n \"A list of package names that are allowed to run postinstall scripts during installation.\",\n defaultValue: () => [],\n }),\n ...packageManagerArgs,\n ...debugArgs,\n};\n"],"mappings":";;;AAYA,MAAa,cAAc;CACzB,cAAc,gBAAgB;EAC5B,MAAM;EACN,aAAa;EACb,aAAa;EACd,CAAC;CACF,UAAU,OAAO;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,OAAO,KAAK;EACV,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aACE;EACH,CAAC;CACF,YAAY,YAAY;EACtB,MAAM,MAAM,OAAO;EACnB,MAAM;EACN,aACE;EACF,oBAAoB,EAAE;EACvB,CAAC;CACF,GAAG;CACH,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as installArgs } from "./install-
|
|
1
|
+
import { t as installArgs } from "./install-B2hLryPk.mjs";
|
|
2
2
|
export { installArgs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
//#region clis/args/list.ts
|
|
3
3
|
const listArgs = { ...debugArgs };
|
|
4
4
|
//#endregion
|
|
5
5
|
export { listArgs as t };
|
|
6
6
|
|
|
7
|
-
//# sourceMappingURL=list-
|
|
7
|
+
//# sourceMappingURL=list-O6VmV3Cw.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-
|
|
1
|
+
{"version":3,"file":"list-O6VmV3Cw.mjs","names":[],"sources":["../../../clis/args/list.ts"],"sourcesContent":["import { debugArgs } from \"./common.js\";\n\nexport const listArgs = {\n ...debugArgs,\n};\n"],"mappings":";;AAEA,MAAa,WAAW,EACtB,GAAG,WACJ"}
|
package/dist/clis/args/list.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as listArgs } from "./list-
|
|
1
|
+
import { t as listArgs } from "./list-O6VmV3Cw.mjs";
|
|
2
2
|
export { listArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as DEFAULT_RENOWN_URL, o as debugArgs } from "./common-
|
|
1
|
+
import { E as DEFAULT_RENOWN_URL, o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { boolean, flag, number, option, optional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/login.ts
|
|
4
4
|
const loginArgs = {
|
|
@@ -37,4 +37,4 @@ const loginArgs = {
|
|
|
37
37
|
//#endregion
|
|
38
38
|
export { loginArgs as t };
|
|
39
39
|
|
|
40
|
-
//# sourceMappingURL=login-
|
|
40
|
+
//# sourceMappingURL=login-BWXdMfMX.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-
|
|
1
|
+
{"version":3,"file":"login-BWXdMfMX.mjs","names":[],"sources":["../../../clis/args/login.ts"],"sourcesContent":["import { boolean, flag, number, option, optional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\nimport { DEFAULT_RENOWN_URL, DEFAULT_TIMEOUT } from \"../constants.js\";\n\nexport const loginArgs = {\n renownUrl: option({\n type: string,\n long: \"renown-url\",\n defaultValue: () => DEFAULT_RENOWN_URL,\n description: `Renown server URL.`,\n defaultValueIsSerializable: true,\n env: \"PH_CONNECT_RENOWN_URL\",\n }),\n timeout: option({\n type: number,\n long: \"timeout\",\n defaultValue: () => DEFAULT_TIMEOUT,\n description: \"Authentication timeout in seconds.\",\n defaultValueIsSerializable: true,\n }),\n logout: flag({\n type: optional(boolean),\n long: \"logout\",\n description: \"Sign out and clear stored credentials\",\n }),\n status: flag({\n type: optional(boolean),\n long: \"status\",\n description: \"Show current authentication status\",\n }),\n showDid: flag({\n type: optional(boolean),\n long: \"show-did\",\n description: \"Show the CLI's DID and exit\",\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAIA,MAAa,YAAY;CACvB,WAAW,OAAO;EAChB,MAAM;EACN,MAAM;EACN,oBAAoB;EACpB,aAAa;EACb,4BAA4B;EAC5B,KAAK;EACN,CAAC;CACF,SAAS,OAAO;EACd,MAAM;EACN,MAAM;EACN,oBAAA;EACA,aAAa;EACb,4BAA4B;EAC7B,CAAC;CACF,QAAQ,KAAK;EACX,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,QAAQ,KAAK;EACX,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,SAAS,KAAK;EACZ,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,GAAG;CACJ"}
|
package/dist/clis/args/login.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as loginArgs } from "./login-
|
|
1
|
+
import { t as loginArgs } from "./login-BWXdMfMX.mjs";
|
|
2
2
|
export { loginArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { boolean, flag, option, optional, positional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/migrate.ts
|
|
4
4
|
const migrateArgs = {
|
|
@@ -26,4 +26,4 @@ const migrateArgs = {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
export { migrateArgs as t };
|
|
28
28
|
|
|
29
|
-
//# sourceMappingURL=migrate-
|
|
29
|
+
//# sourceMappingURL=migrate-3MTmDiXt.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate-
|
|
1
|
+
{"version":3,"file":"migrate-3MTmDiXt.mjs","names":[],"sources":["../../../clis/args/migrate.ts"],"sourcesContent":["import { boolean, flag, option, optional, positional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const migrateArgs = {\n versionPositional: positional({\n type: optional(string),\n displayName: \"version\",\n description:\n \"The version to migrate to. Accepts a valid semver version or `staging`, `dev`, `latest`.\",\n }),\n version: option({\n long: \"version\",\n short: \"v\",\n type: string,\n description:\n \"The version to migrate to. Accepts a valid semver version or `staging`, `dev`, `latest`.\",\n defaultValue: () => \"latest\" as const,\n defaultValueIsSerializable: true,\n }),\n force: flag({\n type: optional(boolean),\n long: \"force\",\n short: \"f\",\n description:\n \"Run migrate from the bundled codegen even if the target version cannot be resolved from the npm registry or differs from the installed ph-cli version.\",\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAGA,MAAa,cAAc;CACzB,mBAAmB,WAAW;EAC5B,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,aACE;EACH,CAAC;CACF,SAAS,OAAO;EACd,MAAM;EACN,OAAO;EACP,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,OAAO,KAAK;EACV,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aACE;EACH,CAAC;CACF,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as migrateArgs } from "./migrate-
|
|
1
|
+
import { t as migrateArgs } from "./migrate-3MTmDiXt.mjs";
|
|
2
2
|
export { migrateArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { option, optional, rest, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/publish.ts
|
|
4
4
|
const publishArgs = {
|
|
@@ -16,4 +16,4 @@ const publishArgs = {
|
|
|
16
16
|
//#endregion
|
|
17
17
|
export { publishArgs as t };
|
|
18
18
|
|
|
19
|
-
//# sourceMappingURL=publish
|
|
19
|
+
//# sourceMappingURL=publish--zdKYIOl.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish
|
|
1
|
+
{"version":3,"file":"publish--zdKYIOl.mjs","names":[],"sources":["../../../clis/args/publish.ts"],"sourcesContent":["import { option, optional, rest, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const publishArgs = {\n registry: option({\n type: optional(string),\n long: \"registry\",\n description:\n \"Registry URL to publish to (overrides config and environment)\",\n }),\n ...debugArgs,\n forwardedArgs: rest({\n displayName: \"npm-args\",\n description: \"Extra arguments forwarded to npm publish (e.g. --tag dev)\",\n }),\n};\n"],"mappings":";;;AAGA,MAAa,cAAc;CACzB,UAAU,OAAO;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,GAAG;CACH,eAAe,KAAK;EAClB,aAAa;EACb,aAAa;EACd,CAAC;CACH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as publishArgs } from "./publish
|
|
1
|
+
import { t as publishArgs } from "./publish--zdKYIOl.mjs";
|
|
2
2
|
export { publishArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { option, optional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/registry.ts
|
|
4
4
|
const DEFAULT_REGISTRY_LOGIN_EXPIRY = "30d";
|
|
@@ -20,4 +20,4 @@ const registryLoginArgs = {
|
|
|
20
20
|
//#endregion
|
|
21
21
|
export { registryLoginArgs as n, DEFAULT_REGISTRY_LOGIN_EXPIRY as t };
|
|
22
22
|
|
|
23
|
-
//# sourceMappingURL=registry-
|
|
23
|
+
//# sourceMappingURL=registry-BNVeE6qR.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-
|
|
1
|
+
{"version":3,"file":"registry-BNVeE6qR.mjs","names":[],"sources":["../../../clis/args/registry.ts"],"sourcesContent":["import { option, optional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const DEFAULT_REGISTRY_LOGIN_EXPIRY = \"30d\";\n\nexport const registryLoginArgs = {\n registry: option({\n type: optional(string),\n long: \"registry\",\n description:\n \"Registry URL to log in to (overrides PH_REGISTRY_URL and powerhouse.config.json)\",\n }),\n expiry: option({\n type: string,\n long: \"expiry\",\n defaultValue: () => DEFAULT_REGISTRY_LOGIN_EXPIRY,\n description:\n \"Token expiry — formats: '7d' (days), '24h' (hours), '3600' (seconds).\",\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAGA,MAAa,gCAAgC;AAE7C,MAAa,oBAAoB;CAC/B,UAAU,OAAO;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,oBAAA;EACA,aACE;EACF,4BAA4B;EAC7B,CAAC;CACF,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-
|
|
1
|
+
import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-BNVeE6qR.mjs";
|
|
2
2
|
export { DEFAULT_REGISTRY_LOGIN_EXPIRY, registryLoginArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SERVICE_ACTIONS, o as debugArgs } from "./common-
|
|
1
|
+
import { A as SERVICE_ACTIONS, o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { oneOf, optional, positional } from "cmd-ts";
|
|
3
3
|
//#region clis/args/service.ts
|
|
4
4
|
const serviceArgs = {
|
|
@@ -8,4 +8,4 @@ const serviceArgs = {
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { serviceArgs as t };
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=service-
|
|
11
|
+
//# sourceMappingURL=service-x6wsNujS.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-
|
|
1
|
+
{"version":3,"file":"service-x6wsNujS.mjs","names":[],"sources":["../../../clis/args/service.ts"],"sourcesContent":["import { oneOf, optional, positional } from \"cmd-ts\";\nimport { SERVICE_ACTIONS } from \"../constants.js\";\nimport { debugArgs } from \"./common.js\";\n\nexport type { ServiceAction } from \"../types.js\";\n\nexport const serviceArgs = {\n action: positional({\n type: optional(oneOf(SERVICE_ACTIONS)),\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAMA,MAAa,cAAc;CACzB,QAAQ,WAAW,EACjB,MAAM,SAAS,MAAM,gBAAgB,CAAC,EACvC,CAAC;CACF,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as serviceArgs } from "./service-
|
|
1
|
+
import { t as serviceArgs } from "./service-x6wsNujS.mjs";
|
|
2
2
|
export { serviceArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DEFAULT_SWITCHBOARD_PORT, k as DEFAULT_VETRA_DRIVE_ID, v as packages, x as vetraSwitchboardArgs } from "./common-
|
|
1
|
+
import { D as DEFAULT_SWITCHBOARD_PORT, k as DEFAULT_VETRA_DRIVE_ID, v as packages, x as vetraSwitchboardArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { boolean, flag, number, option, optional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/switchboard.ts
|
|
4
4
|
const switchboardArgs = {
|
|
@@ -82,4 +82,4 @@ const switchboardArgs = {
|
|
|
82
82
|
//#endregion
|
|
83
83
|
export { switchboardArgs as t };
|
|
84
84
|
|
|
85
|
-
//# sourceMappingURL=switchboard-
|
|
85
|
+
//# sourceMappingURL=switchboard-Cryy_3Qc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switchboard-
|
|
1
|
+
{"version":3,"file":"switchboard-Cryy_3Qc.mjs","names":[],"sources":["../../../clis/args/switchboard.ts"],"sourcesContent":["import { boolean, flag, number, option, optional, string } from \"cmd-ts\";\nimport { packages, vetraSwitchboardArgs } from \"./common.js\";\nimport {\n DEFAULT_SWITCHBOARD_PORT,\n DEFAULT_VETRA_DRIVE_ID,\n} from \"../constants.js\";\n\nexport const switchboardArgs = {\n ...vetraSwitchboardArgs,\n packages,\n port: option({\n type: number,\n long: \"port\",\n description: \"Port to host the api\",\n defaultValue: () => DEFAULT_SWITCHBOARD_PORT,\n defaultValueIsSerializable: true,\n }),\n basePath: option({\n type: optional(string),\n long: \"base-path\",\n description:\n \"base path for the API endpoints (sets the BASE_PATH environment variable)\",\n }),\n keypairPath: option({\n type: optional(string),\n long: \"keypair-path\",\n description: \"path to custom keypair file for identity\",\n }),\n vetraDriveId: option({\n type: string,\n long: \"vetra-drive-id\",\n description: \"Specify a Vetra drive ID\",\n defaultValue: () => DEFAULT_VETRA_DRIVE_ID,\n defaultValueIsSerializable: true,\n }),\n dbPath: option({\n type: optional(string),\n long: \"db-path\",\n description: \"path to the database\",\n }),\n useIdentity: flag({\n type: optional(boolean),\n long: \"use-identity\",\n description:\n \"enable identity using keypair from ph login (uses ~/.ph/keypair.json)\",\n }),\n requireIdentity: flag({\n type: optional(boolean),\n long: \"require-identity\",\n description:\n \"require existing keypair, fail if not found (implies --use-identity)\",\n }),\n migrate: flag({\n type: optional(boolean),\n long: \"migrate\",\n description: \"Run database migrations and exit\",\n }),\n migrateStatus: flag({\n type: optional(boolean),\n long: \"migrate-status\",\n description: \"Show migration status and exit\",\n }),\n reset: flag({\n type: optional(boolean),\n long: \"reset\",\n description:\n \"Wipe the local PGlite switchboard storage after confirmation, then exit\",\n }),\n yes: flag({\n type: optional(boolean),\n long: \"yes\",\n short: \"y\",\n description:\n \"Skip the interactive confirmation prompt for --reset (required for non-interactive use)\",\n }),\n mcp: flag({\n type: boolean,\n long: \"mcp\",\n description: \"enable Mcp route at /mcp\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n useVetraDrive: flag({\n type: boolean,\n long: \"use-vetra-drive\",\n description: \"Use a Vetra drive\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n};\n"],"mappings":";;;AAOA,MAAa,kBAAkB;CAC7B,GAAG;CACH;CACA,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,UAAU,OAAO;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,aAAa,OAAO;EAClB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,cAAc,OAAO;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,QAAQ,OAAO;EACb,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,aAAa,KAAK;EAChB,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aACE;EACH,CAAC;CACF,iBAAiB,KAAK;EACpB,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aACE;EACH,CAAC;CACF,SAAS,KAAK;EACZ,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,eAAe,KAAK;EAClB,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,OAAO,KAAK;EACV,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aACE;EACH,CAAC;CACF,KAAK,KAAK;EACR,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aACE;EACH,CAAC;CACF,KAAK,KAAK;EACR,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,eAAe,KAAK;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as switchboardArgs } from "./switchboard-
|
|
1
|
+
import { t as switchboardArgs } from "./switchboard-Cryy_3Qc.mjs";
|
|
2
2
|
export { switchboardArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as packageManagerArgs, o as debugArgs } from "./common-
|
|
1
|
+
import { _ as packageManagerArgs, o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { restPositionals, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/uninstall.ts
|
|
4
4
|
const uninstallArgs = {
|
|
@@ -13,4 +13,4 @@ const uninstallArgs = {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
export { uninstallArgs as t };
|
|
15
15
|
|
|
16
|
-
//# sourceMappingURL=uninstall-
|
|
16
|
+
//# sourceMappingURL=uninstall-DQUsLzCG.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall-
|
|
1
|
+
{"version":3,"file":"uninstall-DQUsLzCG.mjs","names":[],"sources":["../../../clis/args/uninstall.ts"],"sourcesContent":["import { restPositionals, string } from \"cmd-ts\";\nimport { debugArgs, packageManagerArgs } from \"./common.js\";\n\nexport const uninstallArgs = {\n dependencies: restPositionals({\n type: string,\n displayName: \"dependencies\",\n description: \"Names of the dependencies to uninstall\",\n }),\n ...packageManagerArgs,\n ...debugArgs,\n};\n"],"mappings":";;;AAGA,MAAa,gBAAgB;CAC3B,cAAc,gBAAgB;EAC5B,MAAM;EACN,aAAa;EACb,aAAa;EACd,CAAC;CACF,GAAG;CACH,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as uninstallArgs } from "./uninstall-
|
|
1
|
+
import { t as uninstallArgs } from "./uninstall-DQUsLzCG.mjs";
|
|
2
2
|
export { uninstallArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { boolean, flag, option, optional, positional, rest, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/unpublish.ts
|
|
4
4
|
const unpublishArgs = {
|
|
@@ -27,4 +27,4 @@ const unpublishArgs = {
|
|
|
27
27
|
//#endregion
|
|
28
28
|
export { unpublishArgs as t };
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=unpublish-
|
|
30
|
+
//# sourceMappingURL=unpublish-CeDsvgMv.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unpublish-
|
|
1
|
+
{"version":3,"file":"unpublish-CeDsvgMv.mjs","names":[],"sources":["../../../clis/args/unpublish.ts"],"sourcesContent":["import {\n boolean,\n flag,\n option,\n optional,\n positional,\n rest,\n string,\n} from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const unpublishArgs = {\n spec: positional({\n type: optional(string),\n displayName: \"package-spec\",\n description:\n \"Package to unpublish: `<name>` (whole package) or `<name>@<version>` (single version). If omitted, uses the current project's `name@version` from package.json.\",\n }),\n registry: option({\n type: optional(string),\n long: \"registry\",\n description:\n \"Registry URL to unpublish from (overrides config and environment)\",\n }),\n yes: flag({\n type: optional(boolean),\n long: \"yes\",\n short: \"y\",\n description: \"Skip the confirmation prompt\",\n }),\n ...debugArgs,\n forwardedArgs: rest({\n displayName: \"npm-args\",\n description: \"Extra arguments forwarded to npm unpublish\",\n }),\n};\n"],"mappings":";;;AAWA,MAAa,gBAAgB;CAC3B,MAAM,WAAW;EACf,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,aACE;EACH,CAAC;CACF,UAAU,OAAO;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,KAAK,KAAK;EACR,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,GAAG;CACH,eAAe,KAAK;EAClB,aAAa;EACb,aAAa;EACd,CAAC;CACH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpublishArgs } from "./unpublish-
|
|
1
|
+
import { t as unpublishArgs } from "./unpublish-CeDsvgMv.mjs";
|
|
2
2
|
export { unpublishArgs };
|
|
@@ -60,7 +60,7 @@ declare const vetraArgs: {
|
|
|
60
60
|
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<string>>;
|
|
61
61
|
} & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
|
|
62
62
|
logLevel: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
63
|
-
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"debug" | "
|
|
63
|
+
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"debug" | "error" | "info" | "warn" | "verbose">>;
|
|
64
64
|
} & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
|
|
65
65
|
packages: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
66
66
|
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<string | undefined>>;
|
|
@@ -110,4 +110,4 @@ declare const vetraArgs: {
|
|
|
110
110
|
};
|
|
111
111
|
//#endregion
|
|
112
112
|
export { resolveSwitchboardPortDefault as n, vetraArgs as r, resolveConnectPortDefault as t };
|
|
113
|
-
//# sourceMappingURL=vetra-
|
|
113
|
+
//# sourceMappingURL=vetra-CoMvTJK7.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetra-
|
|
1
|
+
{"version":3,"file":"vetra-CoMvTJK7.d.mts","names":[],"sources":["../../../clis/args/vetra.ts"],"mappings":";;;;;;;;AAsBA;;;;iBAAgB,6BAAA,CAAA;AAUhB;AAAA,iBAAgB,yBAAA,CAAA;AAAA,cASH,SAAA;iBA0EZ,6BAAA,CAAA,QAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as getConfig, i as commonServerArgs, r as commonArgs, x as vetraSwitchboardArgs, y as renownNamespace } from "./common-
|
|
1
|
+
import { S as getConfig, i as commonServerArgs, r as commonArgs, x as vetraSwitchboardArgs, y as renownNamespace } from "./common-BT8ABM57.mjs";
|
|
2
2
|
import { boolean, flag, number, option, optional, string } from "cmd-ts";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import dotenv from "dotenv";
|
|
@@ -123,4 +123,4 @@ const vetraArgs = {
|
|
|
123
123
|
//#endregion
|
|
124
124
|
export { resolveSwitchboardPortDefault as n, vetraArgs as r, resolveConnectPortDefault as t };
|
|
125
125
|
|
|
126
|
-
//# sourceMappingURL=vetra-
|
|
126
|
+
//# sourceMappingURL=vetra-pYJXVf_o.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetra-
|
|
1
|
+
{"version":3,"file":"vetra-pYJXVf_o.mjs","names":[],"sources":["../../../clis/project-env.ts","../../../clis/args/vetra.ts"],"sourcesContent":["import dotenv from \"dotenv\";\nimport { join } from \"node:path\";\n\nlet loadedFor: string | undefined;\n\n/**\n * Load the project's `.env.local` and `.env` into `process.env`.\n *\n * `dotenv` never overwrites a variable that is already set, so loading\n * `.env.local` first and `.env` second produces the precedence the CLI\n * documents: a real `process.env` value beats `.env.local`, which beats\n * `.env`. One `process.env` lookup afterwards therefore covers all three\n * sources.\n *\n * Idempotent per directory — CLI argument defaults call it lazily and may\n * call it more than once per process.\n */\nexport function loadProjectEnv(cwd: string = process.cwd()): void {\n if (loadedFor === cwd) return;\n loadedFor = cwd;\n // dotenv 16 logs nothing for a missing file, so no suppression option is\n // needed here (and none exists before dotenv 17).\n dotenv.config({ path: join(cwd, \".env.local\") });\n dotenv.config({ path: join(cwd, \".env\") });\n}\n\n/** Test seam: forget which directory has already been loaded. */\nexport function resetProjectEnvForTests(): void {\n loadedFor = undefined;\n}\n\n/**\n * Read an environment variable as a TCP port.\n *\n * Anything that is not a plain integer in 1-65535 is ignored rather than\n * throwing: a typo in `.env` should fall through to the next source in the\n * precedence chain, not break the CLI.\n */\nexport function readPortEnv(name: string): number | undefined {\n const raw = process.env[name]?.trim();\n if (!raw || !/^\\d+$/.test(raw)) return undefined;\n const port = Number(raw);\n if (port < 1 || port > 65535) return undefined;\n return port;\n}\n","import { boolean, flag, number, option, optional, string } from \"cmd-ts\";\nimport {\n DEFAULT_SWITCHBOARD_PORT,\n DEFAULT_VETRA_CONNECT_PORT,\n} from \"../constants.js\";\nimport { getConfig } from \"../file-system/get-config.js\";\nimport { loadProjectEnv, readPortEnv } from \"../project-env.js\";\nimport {\n commonArgs,\n commonServerArgs,\n renownNamespace,\n vetraSwitchboardArgs,\n} from \"./common.js\";\n\n/**\n * Resolve the Vetra Switchboard port.\n *\n * Precedence: CLI flag (cmd-ts applies that above this function) →\n * `process.env` → `.env.local` → `.env` → `powerhouse.config.json` →\n * constant. `loadProjectEnv` folds the two files into `process.env` without\n * clobbering anything already set, so a single lookup covers the middle three.\n */\nexport function resolveSwitchboardPortDefault(): number {\n loadProjectEnv();\n return (\n readPortEnv(\"PH_SWITCHBOARD_PORT\") ??\n getConfig().reactor?.port ??\n DEFAULT_SWITCHBOARD_PORT\n );\n}\n\n/** Resolve the Vetra Connect port through the same chain. */\nexport function resolveConnectPortDefault(): number {\n loadProjectEnv();\n return (\n readPortEnv(\"PH_VETRA_CONNECT_PORT\") ??\n getConfig().vetra?.connectPort ??\n DEFAULT_VETRA_CONNECT_PORT\n );\n}\n\nexport const vetraArgs = {\n switchboardPort: option({\n type: number,\n long: \"switchboard-port\",\n description: \"port to use for the Vetra Switchboard\",\n defaultValue: resolveSwitchboardPortDefault,\n }),\n connectPort: option({\n type: number,\n long: \"connect-port\",\n // Deliberately not `defaultValueIsSerializable`: the value is now\n // per-project, and cmd-ts prints serializable defaults into `--help`,\n // which would bake one project's port into the help text.\n description: \"port to use for the Vetra Connect\",\n defaultValue: resolveConnectPortDefault,\n }),\n remoteDrive: option({\n type: optional(string),\n long: \"remote-drive\",\n description:\n \"URL of remote drive to connect to (skips switchboard initialization)\",\n defaultValue: () => {\n const baseConfig = getConfig();\n return baseConfig.vetra?.driveUrl;\n },\n }),\n watch: flag({\n type: boolean,\n long: \"watch\",\n short: \"w\",\n description:\n \"Enable dynamic loading for document-models and editors in connect-studio and switchboard\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n verbose: flag({\n type: boolean,\n long: \"logs\",\n description: \"Show additional logs\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n disableConnect: flag({\n type: boolean,\n long: \"disable-connect\",\n description:\n \"Skip Connect initialization (only start switchboard and reactor)\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n interactive: flag({\n type: boolean,\n long: \"interactive\",\n description:\n \"Enable interactive mode for code generation (requires user confirmation before generating code)\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n drivesPublicBase: option({\n type: optional(string),\n long: \"drives-public-base\",\n description:\n \"public base URL for the drive URLs advertised to Connect; each drive is exposed as <base>/d/<slug> instead of http://localhost:<switchboard-port>/d/<slug>. Use when the switchboard is reachable through a reverse proxy.\",\n }),\n dbPath: option({\n type: optional(string),\n long: \"db-path\",\n description:\n \"Database path or connection string. Use a `postgres://` URL for Postgres; otherwise treated as a PGlite filesystem path. Leave unset for in-memory PGlite.\",\n }),\n renownNamespace,\n ...commonArgs,\n ...commonServerArgs,\n ...vetraSwitchboardArgs,\n};\n"],"mappings":";;;;;AAGA,IAAI;;;;;;;;;;;;;AAcJ,SAAgB,eAAe,MAAc,QAAQ,KAAK,EAAQ;AAChE,KAAI,cAAc,IAAK;AACvB,aAAY;AAGZ,QAAO,OAAO,EAAE,MAAM,KAAK,KAAK,aAAa,EAAE,CAAC;AAChD,QAAO,OAAO,EAAE,MAAM,KAAK,KAAK,OAAO,EAAE,CAAC;;;;;;;;;AAe5C,SAAgB,YAAY,MAAkC;CAC5D,MAAM,MAAM,QAAQ,IAAI,OAAO,MAAM;AACrC,KAAI,CAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,CAAE,QAAO,KAAA;CACvC,MAAM,OAAO,OAAO,IAAI;AACxB,KAAI,OAAO,KAAK,OAAO,MAAO,QAAO,KAAA;AACrC,QAAO;;;;;;;;;;;;ACrBT,SAAgB,gCAAwC;AACtD,iBAAgB;AAChB,QACE,YAAY,sBAAsB,IAClC,WAAW,CAAC,SAAS,QAAA;;;AAMzB,SAAgB,4BAAoC;AAClD,iBAAgB;AAChB,QACE,YAAY,wBAAwB,IACpC,WAAW,CAAC,OAAO,eAAA;;AAKvB,MAAa,YAAY;CACvB,iBAAiB,OAAO;EACtB,MAAM;EACN,MAAM;EACN,aAAa;EACb,cAAc;EACf,CAAC;CACF,aAAa,OAAO;EAClB,MAAM;EACN,MAAM;EAIN,aAAa;EACb,cAAc;EACf,CAAC;CACF,aAAa,OAAO;EAClB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACF,oBAAoB;AAElB,UADmB,WAAW,CACZ,OAAO;;EAE5B,CAAC;CACF,OAAO,KAAK;EACV,MAAM;EACN,MAAM;EACN,OAAO;EACP,aACE;EACF,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,SAAS,KAAK;EACZ,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,gBAAgB,KAAK;EACnB,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,aAAa,KAAK;EAChB,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,kBAAkB,OAAO;EACvB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,QAAQ,OAAO;EACb,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF;CACA,GAAG;CACH,GAAG;CACH,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-
|
|
1
|
+
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-CoMvTJK7.mjs";
|
|
2
2
|
export { resolveConnectPortDefault, resolveSwitchboardPortDefault, vetraArgs };
|
package/dist/clis/args/vetra.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-
|
|
1
|
+
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-pYJXVf_o.mjs";
|
|
2
2
|
export { resolveConnectPortDefault, resolveSwitchboardPortDefault, vetraArgs };
|
|
@@ -10616,8 +10616,36 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
10616
10616
|
}>; //#endregion
|
|
10617
10617
|
//#endregion
|
|
10618
10618
|
//#region clis/build-config.d.mts
|
|
10619
|
+
declare const browserEntry: string[];
|
|
10620
|
+
type BrowserBuildConfigOptions = {
|
|
10621
|
+
/** Externalize the shared dependency set (default: true). */sharedDeps?: boolean;
|
|
10622
|
+
};
|
|
10623
|
+
declare function buildBrowserBuildConfig(options?: BrowserBuildConfigOptions): InlineConfig;
|
|
10619
10624
|
declare const browserBuildConfig: InlineConfig;
|
|
10625
|
+
/**
|
|
10626
|
+
* Shared specs a source imports but the built output no longer references as
|
|
10627
|
+
* bare imports — the bundler inlined them, which is exactly what the
|
|
10628
|
+
* external set is meant to prevent.
|
|
10629
|
+
*/
|
|
10630
|
+
declare function findBundledSharedDeps(importedSpecs: string[], outputs: readonly {
|
|
10631
|
+
path: string;
|
|
10632
|
+
content: string;
|
|
10633
|
+
}[]): string[];
|
|
10634
|
+
type NodeBuildConfigOptions = {
|
|
10635
|
+
/** Externalize the shared dependency set (default: true). */sharedDeps?: boolean;
|
|
10636
|
+
};
|
|
10637
|
+
/**
|
|
10638
|
+
* The node build externalizes the same shared set as the browser build, for
|
|
10639
|
+
* the same reason the `@powerhousedao/reactor-api` entry in `nodeNeverBundle`
|
|
10640
|
+
* already gives: the host provides these, and a package carrying its own copy
|
|
10641
|
+
* is a second class identity as well as dead weight. What differs is only how
|
|
10642
|
+
* the import is resolved at runtime -- Connect's import map in the browser,
|
|
10643
|
+
* ordinary node resolution here, which works because these are declared for
|
|
10644
|
+
* the consumer to provide (`document-model`, `@powerhousedao/reactor-browser`
|
|
10645
|
+
* and `zod` are peerDependencies of every generated project).
|
|
10646
|
+
*/
|
|
10647
|
+
declare function buildNodeBuildConfig(options?: NodeBuildConfigOptions): InlineConfig;
|
|
10620
10648
|
declare const nodeBuildConfig: InlineConfig;
|
|
10621
10649
|
//#endregion
|
|
10622
|
-
export { browserBuildConfig, nodeBuildConfig };
|
|
10650
|
+
export { BrowserBuildConfigOptions, NodeBuildConfigOptions, browserBuildConfig, browserEntry, buildBrowserBuildConfig, buildNodeBuildConfig, findBundledSharedDeps, nodeBuildConfig };
|
|
10623
10651
|
//# sourceMappingURL=build-config.d.mts.map
|