@powerhousedao/shared 6.2.3-dev.13 → 6.2.3-dev.14
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-zW_7Brog.mjs → access-token-Bf1K1Fpc.mjs} +2 -2
- package/dist/clis/args/{access-token-zW_7Brog.mjs.map → access-token-Bf1K1Fpc.mjs.map} +1 -1
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-BT8ABM57.mjs → common-BpnFLR-_.mjs} +13 -5
- package/dist/clis/args/common-BpnFLR-_.mjs.map +1 -0
- package/dist/clis/args/{common-rEpM4Oqq.d.mts → common-yKU4B741.d.mts} +3 -3
- package/dist/clis/args/{common-rEpM4Oqq.d.mts.map → common-yKU4B741.d.mts.map} +1 -1
- package/dist/clis/args/common.d.mts +1 -1
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-Du3Us5tQ.mjs → connect-ByiLv365.mjs} +2 -2
- package/dist/clis/args/{connect-Du3Us5tQ.mjs.map → connect-ByiLv365.mjs.map} +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-DkFqeNX3.mjs → generate-0aR1N6J5.mjs} +2 -2
- package/dist/clis/args/{generate-DkFqeNX3.mjs.map → generate-0aR1N6J5.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-stFOz1hp.mjs → help-CEw7OZ9E.mjs} +15 -15
- package/dist/clis/args/{help-stFOz1hp.mjs.map → help-CEw7OZ9E.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-Bu8-Ovk8.mjs → init-DBYYsV0Y.mjs} +2 -2
- package/dist/clis/args/{init-Bu8-Ovk8.mjs.map → init-DBYYsV0Y.mjs.map} +1 -1
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/{inspect-GjiR0Qqd.mjs → inspect-BzBsZ0UO.mjs} +2 -2
- package/dist/clis/args/{inspect-GjiR0Qqd.mjs.map → inspect-BzBsZ0UO.mjs.map} +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/{install-B2hLryPk.mjs → install-D0jaysiP.mjs} +2 -2
- package/dist/clis/args/{install-B2hLryPk.mjs.map → install-D0jaysiP.mjs.map} +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-O6VmV3Cw.mjs → list-BaO47Btz.mjs} +2 -2
- package/dist/clis/args/{list-O6VmV3Cw.mjs.map → list-BaO47Btz.mjs.map} +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-BWXdMfMX.mjs → login-DM-qhiYI.mjs} +2 -2
- package/dist/clis/args/{login-BWXdMfMX.mjs.map → login-DM-qhiYI.mjs.map} +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/{migrate-3MTmDiXt.mjs → migrate-EitaI7jq.mjs} +2 -2
- package/dist/clis/args/{migrate-3MTmDiXt.mjs.map → migrate-EitaI7jq.mjs.map} +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/{publish--zdKYIOl.mjs → publish-DfMF3Nmc.mjs} +2 -2
- package/dist/clis/args/{publish--zdKYIOl.mjs.map → publish-DfMF3Nmc.mjs.map} +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-BNVeE6qR.mjs → registry-Di1tZqbn.mjs} +2 -2
- package/dist/clis/args/{registry-BNVeE6qR.mjs.map → registry-Di1tZqbn.mjs.map} +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/{service-Cou6l7l8.d.mts → service-DhIkf8-O.d.mts} +2 -2
- package/dist/clis/args/{service-Cou6l7l8.d.mts.map → service-DhIkf8-O.d.mts.map} +1 -1
- package/dist/clis/args/{service-x6wsNujS.mjs → service-jRX2qPul.mjs} +2 -2
- package/dist/clis/args/{service-x6wsNujS.mjs.map → service-jRX2qPul.mjs.map} +1 -1
- package/dist/clis/args/service.d.mts +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-Cryy_3Qc.mjs → switchboard-BhR-ZwGV.mjs} +2 -2
- package/dist/clis/args/{switchboard-Cryy_3Qc.mjs.map → switchboard-BhR-ZwGV.mjs.map} +1 -1
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-DQUsLzCG.mjs → uninstall-diefi70g.mjs} +2 -2
- package/dist/clis/args/{uninstall-DQUsLzCG.mjs.map → uninstall-diefi70g.mjs.map} +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/{unpublish-CeDsvgMv.mjs → unpublish-C6eNRzsU.mjs} +2 -2
- package/dist/clis/args/{unpublish-CeDsvgMv.mjs.map → unpublish-C6eNRzsU.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-pYJXVf_o.mjs → vetra-DV0zQzba.mjs} +2 -2
- package/dist/clis/args/{vetra-pYJXVf_o.mjs.map → vetra-DV0zQzba.mjs.map} +1 -1
- package/dist/clis/args/vetra-ports.test.mjs +4 -4
- package/dist/clis/args/vetra-ports.test.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-BkfXtfV8.mjs +230 -0
- package/dist/clis/build-config-BkfXtfV8.mjs.map +1 -0
- package/dist/clis/build-config.d.mts +16 -10617
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/build-config.mjs +2 -208
- package/dist/clis/build-pieces.d.mts +95 -0
- package/dist/clis/build-pieces.d.mts.map +1 -0
- package/dist/clis/build-pieces.mjs +363 -0
- package/dist/clis/build-pieces.mjs.map +1 -0
- package/dist/clis/constants.d.mts +2 -479
- package/dist/clis/constants.mjs +14 -5
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index-CyAv0ucZ.d.mts +10619 -0
- package/dist/clis/index-CyAv0ucZ.d.mts.map +1 -0
- package/dist/clis/index.d.mts +21 -10
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +14 -5
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/types-D17YQuYG.d.mts +490 -0
- package/dist/clis/types-D17YQuYG.d.mts.map +1 -0
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/document-drive/index.d.ts +2 -2
- package/dist/document-model/index.d.ts +3 -3
- package/dist/document-model/index.js +9 -2
- package/dist/document-model/index.js.map +1 -1
- package/dist/{index-DWS2M59v.d.ts → index-B6CAmhxM.d.ts} +2 -2
- package/dist/{index-DWS2M59v.d.ts.map → index-B6CAmhxM.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js +12 -4
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +1 -1
- package/dist/registry/manifest-slim.d.ts.map +1 -1
- package/dist/registry/manifest-slim.js +22 -2
- package/dist/registry/manifest-slim.js.map +1 -1
- package/dist/{types-KwFsKkFJ.d.ts → types-BRWMm6VM.d.ts} +2 -2
- package/dist/{types-KwFsKkFJ.d.ts.map → types-BRWMm6VM.d.ts.map} +1 -1
- package/dist/{types-DX5QXaOU.d.ts → types-CtCDvH7x.d.ts} +25 -2
- package/dist/types-CtCDvH7x.d.ts.map +1 -0
- package/package.json +5 -1
- package/dist/clis/args/common-BT8ABM57.mjs.map +0 -1
- package/dist/clis/build-config.mjs.map +0 -1
- package/dist/clis/constants.d.mts.map +0 -1
- package/dist/types-DX5QXaOU.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BpnFLR-_.mjs";
|
|
2
2
|
import { option, optional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/access-token.ts
|
|
4
4
|
const accessTokenArgs = {
|
|
@@ -19,4 +19,4 @@ const accessTokenArgs = {
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { accessTokenArgs as t };
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=access-token-
|
|
22
|
+
//# sourceMappingURL=access-token-Bf1K1Fpc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-token-
|
|
1
|
+
{"version":3,"file":"access-token-Bf1K1Fpc.mjs","names":[],"sources":["../../../clis/args/access-token.ts"],"sourcesContent":["import { option, optional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\nimport { DEFAULT_EXPIRY_DAYS } from \"../constants.js\";\n\nexport const accessTokenArgs = {\n expiry: option({\n long: \"expiry\",\n type: optional(string),\n description: `Token expiry duration. Supports: \"7d\" (days), \"24h\" (hours), \"3600\" or \"3600s\" (seconds)`,\n defaultValue: () => `${DEFAULT_EXPIRY_DAYS}d` as const,\n defaultValueIsSerializable: true,\n }),\n audience: option({\n long: \"audience\",\n type: optional(string),\n description: \"Target audience URL for the token\",\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAIA,MAAa,kBAAkB;CAC7B,QAAQ,OAAO;EACb,MAAM;EACN,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,UAAU,OAAO;EACf,MAAM;EACN,MAAM,SAAS,OAAO;EACtB,aAAa;EACd,CAAC;CACF,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as accessTokenArgs } from "./access-token-
|
|
1
|
+
import { t as accessTokenArgs } from "./access-token-Bf1K1Fpc.mjs";
|
|
2
2
|
export { accessTokenArgs };
|
|
@@ -28,10 +28,18 @@ const DEFAULT_SWITCHBOARD_PORT = 4001;
|
|
|
28
28
|
const DEFAULT_VETRA_DRIVE_ID = "vetra";
|
|
29
29
|
join(homedir(), ".ph");
|
|
30
30
|
const VERSIONED_PEER_DEPENDENCIES = ["document-model", "@powerhousedao/reactor-browser"];
|
|
31
|
-
const FEATURE_DEPENDENCIES = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const FEATURE_DEPENDENCIES = {
|
|
32
|
+
analyticsProcessor: {
|
|
33
|
+
peerVersioned: ["@powerhousedao/analytics-engine-core"],
|
|
34
|
+
peerExternal: {},
|
|
35
|
+
devVersioned: []
|
|
36
|
+
},
|
|
37
|
+
piece: {
|
|
38
|
+
peerVersioned: [],
|
|
39
|
+
peerExternal: {},
|
|
40
|
+
devVersioned: ["@powerhousedao/pieces-framework"]
|
|
41
|
+
}
|
|
42
|
+
};
|
|
35
43
|
[...VERSIONED_PEER_DEPENDENCIES, ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned];
|
|
36
44
|
const DEFAULT_CONFIG = {
|
|
37
45
|
documentModelsDir: "./document-models",
|
|
@@ -284,4 +292,4 @@ const commonServerArgs = {
|
|
|
284
292
|
//#endregion
|
|
285
293
|
export { SERVICE_ACTIONS as A, DEFAULT_CONNECT_OUTDIR as C, DEFAULT_SWITCHBOARD_PORT as D, DEFAULT_RENOWN_URL as E, DEFAULT_VETRA_CONNECT_PORT as O, getConfig as S, DEFAULT_CONNECT_STUDIO_PORT as T, packageManagerArgs as _, connectBasePath as a, renownSwitchboardUrl as b, disableLocalPackages as c, getPackageManagerCommand as d, https as f, logLevel as g, localPackage as h, commonServerArgs as i, DEFAULT_VETRA_DRIVE_ID as k, drivesPreserveStrategy as l, httpsKeyFile as m, buildArgs as n, debugArgs as o, httpsCertFile as p, commonArgs as r, defaultDrivesUrl as s, AGENTS$1 as t, force as u, packages as v, DEFAULT_CONNECT_PREVIEW_PORT as w, vetraSwitchboardArgs as x, renownNamespace as y };
|
|
286
294
|
|
|
287
|
-
//# sourceMappingURL=common-
|
|
295
|
+
//# sourceMappingURL=common-BpnFLR-_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-BpnFLR-_.mjs","names":["AGENTS","_AGENTS"],"sources":["../../../clis/constants.ts","../../../clis/file-system/get-config.ts","../../../clis/args/common.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Manifest } from \"../document-model/types.js\";\nimport type { PowerhouseConfig } from \"./types.js\";\n\nexport const SERVICE_ACTIONS = [\n \"start\",\n \"stop\",\n \"status\",\n \"setup\",\n \"restart\",\n] as const;\n\nexport const SECONDS_IN_DAY = 24 * 60 * 60;\nexport const DEFAULT_EXPIRY_DAYS = 7;\nexport const DEFAULT_EXPIRY_SECONDS = DEFAULT_EXPIRY_DAYS * SECONDS_IN_DAY;\n\nexport const DRIVES_PRESERVE_STRATEGIES = [\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n] as const;\n\nexport const LOG_LEVELS = [\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"verbose\",\n] as const;\n\nexport const DEFAULT_TIMEOUT = 300 as const;\n\nexport const DEFAULT_CONNECT_STUDIO_PORT = 3000 as const;\n\nexport const DEFAULT_VETRA_CONNECT_PORT = 3001 as const;\n\nexport const DEFAULT_CONNECT_PREVIEW_PORT = 4173 as const;\n\nexport const DEFAULT_CONNECT_OUTDIR = \".ph/connect-build/dist/\" as const;\n\nexport const DEFAULT_RENOWN_URL = \"https://www.renown.id\" as const;\n\nexport const DEFAULT_REGISTRY_URL = \"https://registry.vetra.io\" as const;\n\nexport const DEFAULT_SWITCHBOARD_PORT = 4001 as const;\n\n// Per-project dev-server port bands. `ph init` assigns each project a port\n// triple derived from its name, so two projects never collide and an agent's\n// MCP URL can be baked into .mcp.json before a session starts.\n//\n// Two hard constraints picked these bands, both below 10000:\n//\n// 1. Below the OS ephemeral range. Linux allocates outbound source ports\n// from 32768-60999 (`/proc/sys/net/ipv4/ip_local_port_range`); macOS and\n// Windows start at 49152. A listener parked in that window can lose a\n// race to a transient outbound socket, which would surface as a\n// `--strictPort` failure blaming a project conflict that does not exist.\n// 2. Below 10000, which is where ph-clint starts. ph-clint derives its own\n// per-CLI ports by hashing into 10000-59900, so staying under 10000\n// keeps the two schemes from ever contending.\n//\n// Within those limits the blocks were chosen by measuring which ports the\n// Powerhouse repos actually reference: 2000-2999 has none, 7000-7999 has one,\n// 6000-6999 has five. See PROJECT_PORT_DENYLIST in project-ports.ts for the\n// individual ports skipped inside them.\nexport const PROJECT_PORT_BAND_SIZE = 1000 as const;\nexport const PROJECT_PORT_BAND_SWITCHBOARD = 7000 as const;\nexport const PROJECT_PORT_BAND_STUDIO = 6000 as const;\nexport const PROJECT_PORT_BAND_VETRA_CONNECT = 2000 as const;\n\nexport const DEFAULT_VETRA_DRIVE_ID = \"vetra\" as const;\n\nexport const MINIMUM_NODE_VERSION = \"24.0.0\" as const;\nexport const PH_BIN = \"ph-cli-legacy\" as const;\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\" as const;\nexport const PH_GLOBAL_DIR_NAME = \".ph\" as const;\n// Keep PH_GLOBAL_PROJECT_NAME for backwards compatibility\nexport const PH_GLOBAL_PROJECT_NAME = PH_GLOBAL_DIR_NAME;\n\nexport const HOME_DIR = homedir();\n\nexport const POWERHOUSE_GLOBAL_DIR = join(HOME_DIR, PH_GLOBAL_DIR_NAME);\n\n// Workspace packages that go in peerDependencies of every generated project.\nexport const VERSIONED_PEER_DEPENDENCIES = [\n \"document-model\",\n \"@powerhousedao/reactor-browser\",\n];\n\ntype PeerSpec = { peer: string; dev: string };\n\nexport const REACTOR_API_PACKAGE = \"@powerhousedao/reactor-api\";\nexport const ANALYTICS_ENGINE_CORE_PACKAGE =\n \"@powerhousedao/analytics-engine-core\";\nexport const GRAPHQL_PACKAGE = \"graphql\";\nexport const GRAPHQL_TAG_PACKAGE = \"graphql-tag\";\nexport const PIECES_FRAMEWORK_PACKAGE = \"@powerhousedao/pieces-framework\";\n\n// External peerDependencies of every generated project.\n// `peer` is the consumer-facing range; `dev` is the exact build-tested pin.\n// graphql / graphql-tag are always-on because the workspace packages pulled\n// in by every `ph init` project (codegen, reactor-api, reactor-browser,\n// vetra-packages) declare them as peers — even projects without subgraphs\n// need them in scope so pnpm hoists a single graphql instance.\nexport const PEER_EXTERNAL_DEPENDENCIES = {\n [GRAPHQL_PACKAGE]: { peer: \"^16\", dev: \"16.12.0\" },\n [GRAPHQL_TAG_PACKAGE]: { peer: \"^2\", dev: \"2.12.6\" },\n react: { peer: \"^19\", dev: \"19.2.6\" },\n \"react-dom\": { peer: \"^19\", dev: \"19.2.6\" },\n zod: { peer: \"^4\", dev: \"4.3.6\" },\n} as const satisfies Record<string, PeerSpec>;\n\n// Per-feature deps added dynamically by codegen when required. `devVersioned`\n// is for a workspace package the build inlines, which no consumer provides.\nexport const FEATURE_DEPENDENCIES = {\n analyticsProcessor: {\n peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],\n peerExternal: {},\n devVersioned: [],\n },\n // Each piece is bundled whole (build-pieces.mts), framework included, so the\n // framework is only ever needed to compile the piece's own source.\n piece: {\n peerVersioned: [],\n peerExternal: {},\n devVersioned: [PIECES_FRAMEWORK_PACKAGE],\n },\n} as const satisfies Record<\n string,\n {\n peerVersioned: readonly string[];\n peerExternal: Record<string, PeerSpec>;\n devVersioned: readonly string[];\n }\n>;\n\nexport const VERSIONED_DEPENDENCIES = [\n ...VERSIONED_PEER_DEPENDENCIES,\n ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned,\n];\n\n// Transitive dependencies whose postinstall scripts the generated project\n// trusts. Mirrors the `allowBuilds` map in the boilerplate's\n// pnpm-workspace.yaml and is also passed as `--allow-build` flags to\n// `pnpm dlx @powerhousedao/ph-cli init` so pnpm 11's strict-dep-builds\n// default doesn't prompt during the outer dlx download.\nexport const BOILERPLATE_ALLOWED_BUILDS = [\n \"@apollo/protobufjs\",\n \"@datadog/pprof\",\n \"@parcel/watcher\",\n \"@reown/appkit\",\n \"bufferutil\",\n \"esbuild\",\n \"keccak\",\n \"protobufjs\",\n \"utf-8-validate\",\n] as const;\n\n// Single-version pins the boilerplate enforces on generated projects,\n// avoiding duplicates from coexisting version ranges. Rendered as pnpm\n// `overrides` (pnpm-workspace.yaml) and as yarn v1 `resolutions`\n// (package.json). Generated-project only — never change the monorepo\n// catalog for this (a re-resolution there pulls a tsc-crashing TS6 beta).\nexport const BOILERPLATE_DEPENDENCY_OVERRIDES = {\n \"date-fns\": \"4.3.0\",\n vite: \"8.0.14\",\n rolldown: \"1.0.2\",\n} as const satisfies Record<string, string>;\n\nexport const VERSIONED_DEV_DEPENDENCIES = [\n \"@powerhousedao/ph-cli\",\n \"@powerhousedao/reactor\",\n \"@powerhousedao/shared\",\n \"@powerhousedao/connect\",\n \"@powerhousedao/design-system\",\n];\n\nexport const packageJsonExports = {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n browser: \"./dist/browser/index.js\",\n node: \"./dist/node/index.mjs\",\n },\n \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\n },\n \"./document-models\": {\n types: \"./dist/types/document-models/index.d.ts\",\n browser: \"./dist/browser/document-models/index.js\",\n node: \"./dist/node/document-models/index.mjs\",\n },\n \"./document-models/*\": {\n types: \"./dist/types/document-models/*/index.d.ts\",\n browser: \"./dist/browser/document-models/*/index.js\",\n node: \"./dist/node/document-models/*/index.mjs\",\n },\n \"./editors\": {\n types: \"./dist/types/editors/index.d.ts\",\n browser: \"./dist/browser/editors/index.js\",\n node: \"./dist/node/editors/index.mjs\",\n },\n \"./editors/*\": {\n types: \"./dist/types/editors/*/editor.d.ts\",\n browser: \"./dist/browser/editors/*/editor.js\",\n node: \"./dist/node/editors/*/editor.mjs\",\n },\n \"./subgraphs\": {\n types: \"./dist/types/subgraphs/index.d.ts\",\n browser: \"./dist/browser/subgraphs/index.js\",\n node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./processors\": {\n types: \"./dist/types/processors/index.d.ts\",\n browser: \"./dist/browser/processors/index.js\",\n node: \"./dist/node/processors/index.mjs\",\n },\n // Node only, as the build is: a piece is loaded by a host process, never by\n // the browser. Without these a package can build a piece and still fail the\n // `packageName/pieces` import a host resolves it through.\n \"./pieces\": {\n types: \"./dist/types/pieces/index.d.ts\",\n node: \"./dist/node/pieces/index.mjs\",\n },\n \"./pieces/*\": {\n types: \"./dist/types/pieces/*/index.d.ts\",\n node: \"./dist/node/pieces/*/index.mjs\",\n },\n \"./manifest\": \"./dist/powerhouse.manifest.json\",\n \"./style.css\": \"./dist/style.css\",\n} as const;\n\nexport const packageScripts = {\n \"test:watch\": \"vitest\",\n lint: \"oxlint --type-aware --type-check\",\n \"lint:fix\": \"oxlint --type-aware --type-check --fix\",\n format: \"oxfmt\",\n \"format:check\": \"oxfmt --check\",\n tsc: \"tsc\",\n \"tsc:watch\": \"tsc --watch\",\n generate: \"ph-cli generate\",\n connect: \"ph-cli connect\",\n build: \"ph-cli build\",\n reactor: \"ph-cli reactor\",\n service: \"ph-cli service\",\n vetra: \"ph-cli vetra\",\n \"service-startup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh\",\n \"service-unstartup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh\",\n} as const;\n\nexport const externalDependencies = {} as const;\n\n// eslint/prettier devDependencies present in projects scaffolded before the oxc migration.\n// Stripped from package.json during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_DEPENDENCIES = [\n \"@eslint/js\",\n \"eslint\",\n \"eslint-config-prettier\",\n \"eslint-plugin-prettier\",\n \"eslint-plugin-react\",\n \"eslint-plugin-react-hooks\",\n \"globals\",\n \"prettier\",\n \"typescript-eslint\",\n] as const;\n\n// Legacy lint/format config files written by eslint/prettier boilerplate.\n// Removed from the project root during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_FILES = [\n \"eslint.config.js\",\n \"eslint.config.mjs\",\n \"eslint.config.cjs\",\n \"eslint.config.ts\",\n \".eslintrc\",\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.json\",\n \".eslintrc.yml\",\n \".eslintrc.yaml\",\n \".eslintignore\",\n \".prettierrc\",\n \".prettierrc.js\",\n \".prettierrc.cjs\",\n \".prettierrc.json\",\n \".prettierrc.yml\",\n \".prettierrc.yaml\",\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n \"prettier.config.mjs\",\n \".prettierignore\",\n] as const;\n\nexport const externalDevDependencies = {\n \"@electric-sql/pglite\": \"0.3.15\",\n \"@electric-sql/pglite-tools\": \"0.2.20\",\n \"@powerhousedao/document-engineering\": \"1.40.5\",\n \"@tailwindcss/cli\": \"^4.1.18\",\n \"@tailwindcss/vite\": \"^4.1.18\",\n \"@types/node\": \"^24.9.2\",\n \"@types/react\": \"^19.2.3\",\n \"@types/react-dom\": \"^19.2.3\",\n \"@vitejs/plugin-react\": \"^6.0.1\",\n \"@vitest/coverage-v8\": \"4.1.1\",\n oxfmt: \"0.55.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"4.1.1\",\n} as const;\n\nexport const defaultManifest: Manifest = {\n name: \"\",\n description: \"\",\n category: \"\",\n publisher: {\n name: \"\",\n url: \"\",\n },\n documentModels: [],\n editors: [],\n apps: [],\n subgraphs: [],\n processors: [],\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\nconst DEFAULT_IMPORT_SCRIPTS_DIR = \"./scripts\";\nconst DEFAULT_SKIP_FORMAT = false;\nconst DEFAULT_LOG_LEVEL = \"info\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n importScriptsDir: DEFAULT_IMPORT_SCRIPTS_DIR,\n skipFormat: DEFAULT_SKIP_FORMAT,\n logLevel: DEFAULT_LOG_LEVEL,\n auth: {\n enabled: false,\n admins: [],\n },\n};\n","import { readFileSync } from \"node:fs\";\nimport { DEFAULT_CONFIG } from \"../constants.js\";\nimport type { PowerhouseConfig } from \"../types.js\";\n\nexport function getConfig(path = \"./powerhouse.config.json\") {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(path, \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n // console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n\n return config;\n}\n","import {\n array,\n boolean,\n command,\n flag,\n multioption,\n number,\n oneOf,\n option,\n optional,\n string,\n} from \"cmd-ts\";\n// Sub-path: avoids pulling the package-manager-detector runtime here,\n// which `oneOf(AGENTS)` below would force at module load.\nimport type { Agent } from \"package-manager-detector\";\nimport { AGENTS as _AGENTS } from \"package-manager-detector/constants\";\nimport {\n DEFAULT_TIMEOUT,\n DRIVES_PRESERVE_STRATEGIES,\n LOG_LEVELS,\n} from \"../constants.js\";\nimport { getConfig } from \"../file-system/get-config.js\";\n\nexport const AGENTS: Agent[] = _AGENTS;\n\nexport const debugArgs = {\n debug: flag({\n type: optional(boolean),\n long: \"debug\",\n description: \"Log arguments passed to this command\",\n }),\n};\n\nexport const buildArgs = {\n outDir: option({\n type: string,\n long: \"out-dir\",\n description: \"Where to output the bundled code\",\n defaultValue: () => \"dist\" as const,\n defaultValueIsSerializable: true,\n }),\n noSharedDeps: flag({\n type: boolean,\n long: \"no-shared-deps\",\n description:\n \"Bundle the shared dependency set instead of externalizing it (default: externalize)\",\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n};\n\nexport const packageManagerArgs = {\n packageManager: option({\n type: optional(oneOf(AGENTS)),\n long: \"package-manager\",\n short: \"p\",\n description:\n \"Specify the package manager to use for your project. Can be one of: `npm`, `pnpm`, `yarn`, or `bun`. Defaults to your environment package manager.\",\n }),\n npm: flag({\n type: optional(boolean),\n long: \"npm\",\n description: \"Use 'npm' as package manager\",\n }),\n pnpm: flag({\n type: optional(boolean),\n long: \"pnpm\",\n description: \"Use 'pnpm' as package manager\",\n }),\n yarn: flag({\n type: optional(boolean),\n long: \"yarn\",\n description: \"Use 'yarn' as package manager\",\n }),\n bun: flag({\n type: optional(boolean),\n long: \"bun\",\n description: \"Use 'bun' as package manager\",\n }),\n};\nexport const getPackageManagerCommand = command({\n name: \"get-package-manager\",\n args: packageManagerArgs,\n handler: (args) => args,\n});\nexport const packages = option({\n type: optional(string),\n long: \"packages\",\n description: \"Comma-separated list of package names to load\",\n env: \"PH_PACKAGES\" as const,\n});\n\nexport const localPackage = option({\n type: optional(string),\n long: \"local-package\",\n description: \"Path to local package to load during development\",\n env: \"PH_LOCAL_PACKAGE\" as const,\n});\n\nexport const disableLocalPackages = flag({\n type: boolean,\n long: \"ignore-local\",\n description: \"Do not load local packages from this project\",\n defaultValue: () => false,\n});\n\nexport const httpsKeyFile = option({\n type: optional(string),\n long: \"https-key-file\",\n description: \"path to the ssl key file\",\n defaultValue: () => {\n const baseConfig = getConfig();\n const https = baseConfig.reactor?.https;\n if (https === undefined) return undefined;\n if (typeof https === \"boolean\") return undefined;\n return https.keyPath;\n },\n});\n\nexport const httpsCertFile = option({\n type: optional(string),\n long: \"https-cert-file\",\n description: \"path to the ssl cert file\",\n defaultValue: () => {\n const baseConfig = getConfig();\n const https = baseConfig.reactor?.https;\n if (https === undefined) return undefined;\n if (typeof https === \"boolean\") return undefined;\n return https.certPath;\n },\n});\n\nexport const https = flag({\n type: optional(boolean),\n long: \"https\",\n description: \"Use https\",\n defaultValue: () => {\n const baseConfig = getConfig();\n const https = baseConfig.reactor?.https;\n if (typeof https === \"boolean\") return https;\n return undefined;\n },\n});\n\nexport const vetraSwitchboardArgs = {\n https,\n httpsKeyFile,\n httpsCertFile,\n dev: flag({\n type: optional(boolean),\n long: \"dev\",\n description: \"enable development mode to load local packages\",\n }),\n remoteDrives: multioption({\n type: array(string),\n long: \"remote-drives\",\n description: \"Specify remote drive URLs to use\",\n defaultValue: () => [],\n }),\n disableLocalPackages,\n ...debugArgs,\n};\n\nexport const defaultDrivesUrl = option({\n type: optional(string),\n long: \"default-drives-url\",\n description: \"Comma-separated drive URLs to use as Connect's default drives.\",\n defaultValue: () => \"\",\n});\n\nexport const logLevel = option({\n type: oneOf(LOG_LEVELS),\n long: \"log-level\",\n description: \"Log level for the application\",\n defaultValue: () => \"info\" as const,\n defaultValueIsSerializable: true,\n env: \"PH_CONNECT_LOG_LEVEL\" as const,\n});\n\nexport const connectBasePath = option({\n long: \"base\",\n type: string,\n description: \"Base path for the app\",\n defaultValue: () => \"/\",\n});\n\nexport const renownNamespace = option({\n type: optional(string),\n long: \"renown-namespace\",\n description:\n \"Renown localStorage namespace; share it across Connects to share login.\",\n});\n\nexport const renownSwitchboardUrl = option({\n type: optional(string),\n long: \"renown-switchboard-url\",\n description:\n \"Override connect.renown.switchboardUrl. When set, enables in-page Renown sign-in.\",\n});\n\nexport const drivesPreserveStrategy = option({\n type: oneOf(DRIVES_PRESERVE_STRATEGIES),\n long: \"drive-preserve-strategy\",\n description: \"The preservation strategy to use on default drives\",\n defaultValue: () => \"preserve-by-url-and-detach\" as const,\n defaultValueIsSerializable: true,\n});\n\nexport const force = flag({\n type: optional(boolean),\n long: \"force\",\n description:\n \"Force dep pre-optimization regardless of whether deps have changed.\",\n});\n\nexport const commonArgs = {\n connectBasePath,\n logLevel,\n packages,\n localPackage,\n disableLocalPackages,\n defaultDrivesUrl,\n drivesPreserveStrategy,\n force,\n ...debugArgs,\n};\n\nexport const commonServerArgs = {\n host: option({\n type: optional(string),\n long: \"host\",\n description:\n \"Expose the server to the network. Pass an IP (e.g. 0.0.0.0) to bind to a specific address.\",\n }),\n open: flag({\n type: optional(boolean),\n long: \"open\",\n description: \"Open browser on startup\",\n }),\n cors: flag({\n type: optional(boolean),\n long: \"cors\",\n description: \"Enable CORS\",\n }),\n strictPort: flag({\n type: optional(boolean),\n long: \"strictPort\",\n description: \"Exit if specified port is already in use\",\n }),\n printUrls: flag({\n type: boolean,\n long: \"print-urls\",\n description: \"Print server urls\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n bindCLIShortcuts: flag({\n type: boolean,\n long: \"bind-cli-shortcuts\",\n description: \"Bind CLI shortcuts\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n watchTimeout: option({\n type: number,\n long: \"watch-timeout\",\n description: \"Amount of time to wait before a file is considered changed\",\n defaultValue: () => DEFAULT_TIMEOUT,\n defaultValueIsSerializable: true,\n }),\n};\n"],"mappings":";;;;;;AAKA,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACD;AAMD,MAAa,6BAA6B,CACxC,gBACA,6BACD;AAED,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACD;AAID,MAAa,8BAA8B;AAE3C,MAAa,6BAA6B;AAE1C,MAAa,+BAA+B;AAE5C,MAAa,yBAAyB;AAEtC,MAAa,qBAAqB;AAIlC,MAAa,2BAA2B;AA0BxC,MAAa,yBAAyB;AAWD,KAFb,SAAS,EAES,MAA6B;AAGvE,MAAa,8BAA8B,CACzC,kBACA,iCACD;AA2BD,MAAa,uBAAuB;CAClC,oBAAoB;EAClB,eAAe,CAvBjB,uCAuBgD;EAC9C,cAAc,EAAE;EAChB,cAAc,EAAE;EACjB;CAGD,OAAO;EACL,eAAe,EAAE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;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,cAAc,OAAO;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAA;EACA,4BAA4B;EAC7B,CAAC;CACH"}
|
|
@@ -112,7 +112,7 @@ declare const defaultDrivesUrl: Partial<cmd_ts_dist_cjs_argparser_js0.Register>
|
|
|
112
112
|
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<string | undefined>>;
|
|
113
113
|
} & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
|
|
114
114
|
declare const logLevel: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
115
|
-
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"debug" | "
|
|
115
|
+
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"debug" | "error" | "info" | "warn" | "verbose">>;
|
|
116
116
|
} & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
|
|
117
117
|
declare const connectBasePath: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
118
118
|
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<string>>;
|
|
@@ -137,7 +137,7 @@ declare const commonArgs: {
|
|
|
137
137
|
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<string>>;
|
|
138
138
|
} & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
|
|
139
139
|
logLevel: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
140
|
-
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"debug" | "
|
|
140
|
+
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"debug" | "error" | "info" | "warn" | "verbose">>;
|
|
141
141
|
} & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
|
|
142
142
|
packages: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
|
|
143
143
|
parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<string | undefined>>;
|
|
@@ -183,4 +183,4 @@ declare const commonServerArgs: {
|
|
|
183
183
|
};
|
|
184
184
|
//#endregion
|
|
185
185
|
export { packageManagerArgs as _, connectBasePath as a, renownSwitchboardUrl as b, disableLocalPackages as c, getPackageManagerCommand as d, https as f, logLevel as g, localPackage as h, commonServerArgs as i, drivesPreserveStrategy as l, httpsKeyFile as m, buildArgs as n, debugArgs as o, httpsCertFile as p, commonArgs as r, defaultDrivesUrl as s, AGENTS as t, force as u, packages as v, vetraSwitchboardArgs as x, renownNamespace as y };
|
|
186
|
-
//# sourceMappingURL=common-
|
|
186
|
+
//# sourceMappingURL=common-yKU4B741.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-
|
|
1
|
+
{"version":3,"file":"common-yKU4B741.d.mts","names":[],"sources":["../../../clis/args/common.ts"],"mappings":";;;;;;cAuBa,MAAA,EAAQ,KAAA;AAAA,cAER,SAAA;iBAMZ,6BAAA,CAAA,QAAA;;;;cAEY,SAAA;iBAiBZ,6BAAA,CAAA,QAAA;;;;;;;;;;cAEY,kBAAA;0BA4BZ,6BAAA,CAAA,QAAA;;;;;;;;;;;;;;;;cACY,wBAAA,EAAwB,OAAA,CAInC,6BAAA,CA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;;;;;;;;;;;;;;;;;;;cAEY,gBAAA;gBA2CZ,6BAAA,CAAA,QAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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-yKU4B741.mjs";
|
|
2
2
|
export { AGENTS, buildArgs, commonArgs, commonServerArgs, connectBasePath, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, getPackageManagerCommand, https, httpsCertFile, httpsKeyFile, localPackage, logLevel, packageManagerArgs, packages, renownNamespace, renownSwitchboardUrl, vetraSwitchboardArgs };
|
|
@@ -1,2 +1,2 @@
|
|
|
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-
|
|
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-BpnFLR-_.mjs";
|
|
2
2
|
export { AGENTS, buildArgs, commonArgs, commonServerArgs, connectBasePath, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, getPackageManagerCommand, https, httpsCertFile, httpsKeyFile, localPackage, logLevel, packageManagerArgs, packages, renownNamespace, renownSwitchboardUrl, vetraSwitchboardArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DEFAULT_CONNECT_OUTDIR, T as DEFAULT_CONNECT_STUDIO_PORT, a as connectBasePath, b as renownSwitchboardUrl, g as logLevel, i as commonServerArgs, l as drivesPreserveStrategy, r as commonArgs, s as defaultDrivesUrl, w as DEFAULT_CONNECT_PREVIEW_PORT, y as renownNamespace } from "./common-
|
|
1
|
+
import { C as DEFAULT_CONNECT_OUTDIR, T as DEFAULT_CONNECT_STUDIO_PORT, a as connectBasePath, b as renownSwitchboardUrl, g as logLevel, i as commonServerArgs, l as drivesPreserveStrategy, r as commonArgs, s as defaultDrivesUrl, w as DEFAULT_CONNECT_PREVIEW_PORT, y as renownNamespace } from "./common-BpnFLR-_.mjs";
|
|
2
2
|
import { boolean, flag, number, option, optional, positional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/connect.ts
|
|
4
4
|
const cliBoolean = {
|
|
@@ -200,4 +200,4 @@ const connectArgs = {
|
|
|
200
200
|
//#endregion
|
|
201
201
|
export { connectStudioArgs as a, connectPreviewArgs as i, connectBuildArgs as n, connectConfigArgs as r, connectArgs as t };
|
|
202
202
|
|
|
203
|
-
//# sourceMappingURL=connect-
|
|
203
|
+
//# sourceMappingURL=connect-ByiLv365.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-Du3Us5tQ.mjs","names":[],"sources":["../../../clis/args/connect.ts"],"sourcesContent":["import type { Type } from \"cmd-ts\";\nimport {\n boolean,\n flag,\n number,\n option,\n optional,\n positional,\n string,\n} from \"cmd-ts\";\nimport {\n DEFAULT_CONNECT_OUTDIR,\n DEFAULT_CONNECT_PREVIEW_PORT,\n DEFAULT_CONNECT_STUDIO_PORT,\n} from \"../constants.js\";\nimport {\n commonArgs,\n commonServerArgs,\n connectBasePath,\n defaultDrivesUrl,\n drivesPreserveStrategy,\n logLevel,\n renownNamespace,\n renownSwitchboardUrl,\n} from \"./common.js\";\n\n// cmd-ts's built-in `boolean` is intended for `flag()` (presence/absence). With\n// `option()` we need to parse the next argv as a value, but cmd-ts's `boolean`\n// does not coerce the string. This custom Type does.\nconst cliBoolean: Type<string, boolean> = {\n from: (input) => {\n const v = input.toLowerCase();\n if (v === \"true\") return Promise.resolve(true);\n if (v === \"false\") return Promise.resolve(false);\n return Promise.reject(\n new Error(\n `Expected 'true' or 'false' (case-insensitive), got '${input}'.`,\n ),\n );\n },\n description: \"true | false\",\n};\n\nexport const connectStudioArgs = {\n port: option({\n type: number,\n long: \"port\",\n description: \"Port to run the dev server on.\",\n defaultValue: () => DEFAULT_CONNECT_STUDIO_PORT,\n defaultValueIsSerializable: true,\n }),\n renownNamespace,\n ...commonArgs,\n ...commonServerArgs,\n};\n\n// Runtime-config override flags. Each is optional with no default — undefined\n// means \"user did not pass this flag\", so runConnectBuild can include only\n// explicitly-set values in `cliConnectOverride` and avoid clobbering source\n// `powerhouse.config.json` values when no override was intended.\n//\n// These flags occupy the top of the precedence ladder for the runtime config\n// emitted into `dist/powerhouse.config.json`:\n//\n// DEFAULT_CONNECT_CONFIG < source connect.* < --json < individual --flag\n//\n// `--json` accepts a partial `connect.*` blob (e.g. `{\"renown\":{\"url\":\"...\"}}`).\n// Individual flags merge on top of `--json` inside the same CLI layer, so they\n// win on collision. Env vars are NOT part of this build-time merge;\n// PH_CONNECT_CONFIG_JSON is applied to the dist file at container start by\n// the Docker entrypoint (operator-wins: concrete values override the baked\n// file, null/omitted keep it; connect.app.basePath excluded).\nconst connectRuntimeOverrideArgs = {\n json: option({\n type: optional(string),\n long: \"json\",\n description:\n 'Inline JSON override for the runtime connect.* block, e.g. \\'{\"renown\":{\"url\":\"...\"}}\\'. Validated against the runtime schema; deep-merged on top of env seeds and source powerhouse.config.json. Individual --flag values beat --json on collision.',\n }),\n renownUrl: option({\n type: optional(string),\n long: \"renown-url\",\n description: \"Override connect.renown.url.\",\n }),\n renownNetworkId: option({\n type: optional(string),\n long: \"renown-network-id\",\n description: \"Override connect.renown.networkId.\",\n }),\n renownChainId: option({\n type: optional(number),\n long: \"renown-chain-id\",\n description: \"Override connect.renown.chainId.\",\n }),\n renownNamespace,\n renownSwitchboardUrl,\n allowAddDrive: option({\n type: optional(cliBoolean),\n long: \"allow-add-drive\",\n description:\n \"Override connect.drives.allowAddDrive (top-level add-drive toggle).\",\n }),\n externalPackages: option({\n type: optional(cliBoolean),\n long: \"external-packages\",\n description: \"Override connect.packages.externalEnabled.\",\n }),\n workflows: option({\n type: optional(cliBoolean),\n long: \"workflows\",\n description:\n \"Override connect.app.workflowsEnabled (load the @powerhousedao/workflow package: workflow + connection documents, their editors and Workflow Studio).\",\n }),\n remoteDrivesEnabled: option({\n type: optional(cliBoolean),\n long: \"remote-drives-enabled\",\n description:\n \"Override connect.drives.sections.remote.enabled (the unified cloud+public section).\",\n }),\n remoteDrivesAllowAdd: option({\n type: optional(cliBoolean),\n long: \"remote-drives-allow-add\",\n description: \"Override connect.drives.sections.remote.allowAdd.\",\n }),\n remoteDrivesAllowDelete: option({\n type: optional(cliBoolean),\n long: \"remote-drives-allow-delete\",\n description: \"Override connect.drives.sections.remote.allowDelete.\",\n }),\n localDrivesEnabled: option({\n type: optional(cliBoolean),\n long: \"local-drives-enabled\",\n description: \"Override connect.drives.sections.local.enabled.\",\n }),\n localDrivesAllowAdd: option({\n type: optional(cliBoolean),\n long: \"local-drives-allow-add\",\n description: \"Override connect.drives.sections.local.allowAdd.\",\n }),\n localDrivesAllowDelete: option({\n type: optional(cliBoolean),\n long: \"local-drives-allow-delete\",\n description: \"Override connect.drives.sections.local.allowDelete.\",\n }),\n packagesRegistry: option({\n type: optional(string),\n long: \"packages-registry\",\n description: \"Override the top-level packageRegistryUrl.\",\n }),\n appName: option({\n type: optional(string),\n long: \"app-name\",\n description: \"Override connect.branding.appName.\",\n }),\n homeBackground: option({\n type: optional(string),\n long: \"home-background\",\n description:\n 'Override connect.branding.homeBackground. URL or path to an image; pass an empty string (\"\") to reset to the bundled default.',\n }),\n sentryDsn: option({\n type: optional(string),\n long: \"sentry-dsn\",\n description:\n 'Override connect.sentry.dsn (Sentry DSN URL). Pass an empty string (\"\") to set null and disable Sentry.',\n }),\n sentryEnv: option({\n type: optional(string),\n long: \"sentry-env\",\n description: \"Override connect.sentry.env (Sentry environment label).\",\n }),\n sentryTracingEnabled: option({\n type: optional(cliBoolean),\n long: \"sentry-tracing-enabled\",\n description:\n \"Override connect.sentry.tracing (Sentry performance tracing).\",\n }),\n};\n\n// Positional pair shared by `ph connect build` and `ph connect config`. Both\n// commands accept `<key> <value>` to set a single runtime-config field; `config`\n// additionally accepts `<key>` alone for read-mode (`build` rejects the\n// 1-positional case because it has no read semantics). Both are optional in the\n// parser; the handler enforces the per-command shape.\nconst connectPositionalArgs = {\n keyPositional: positional({\n type: optional(string),\n displayName: \"key\",\n description:\n \"Dotted path inside the runtime config (e.g. connect.renown.url). Pair with <value> to set; pass alone to `ph connect config` to read.\",\n }),\n valuePositional: positional({\n type: optional(string),\n displayName: \"value\",\n description:\n \"Value to set at <key>. Coerced against the runtime schema (string, bool, number, enum). Arrays and objects require --json instead.\",\n }),\n};\n\nexport const connectBuildArgs = {\n outDir: option({\n type: string,\n long: \"outDir\",\n description: \"Output directory\",\n defaultValue: () => DEFAULT_CONNECT_OUTDIR,\n defaultValueIsSerializable: true,\n }),\n ...connectRuntimeOverrideArgs,\n ...connectPositionalArgs,\n dynamicBase: flag({\n type: optional(boolean),\n long: \"dynamic-base\",\n description:\n \"Build one bundle that serves under any subpath; base resolved at serve time from a runtime global. Overrides --base.\",\n }),\n favicon: option({\n type: optional(string),\n long: \"favicon\",\n description:\n \"Path to a favicon file (e.g. .ico) to bundle in place of the default Connect icon. Emitted as icon.ico; resolved relative to the build cwd.\",\n }),\n ...commonArgs,\n};\n\nexport const connectPreviewArgs = {\n port: option({\n type: number,\n long: \"port\",\n description: \"Port to run the preview server on.\",\n defaultValue: () => DEFAULT_CONNECT_PREVIEW_PORT,\n defaultValueIsSerializable: true,\n }),\n outDir: option({\n type: string,\n long: \"outDir\",\n description: \"Output directory\",\n defaultValue: () => DEFAULT_CONNECT_OUTDIR,\n defaultValueIsSerializable: true,\n }),\n ...commonArgs,\n ...commonServerArgs,\n};\n\n// `ph connect config` — read, set, or list the runtime config under the\n// `connect.*` block of the dist `powerhouse.config.json`.\n//\n// Mode matrix (exactly one mode per invocation; mutex enforced in\n// `runConnectConfig`):\n//\n// ph connect config → list (print effective merged config)\n// ph connect config <key> → get one value at the dotted key (positional)\n// ph connect config --get <dotted.path> → same as positional <key> (kept for backward compat)\n// ph connect config <key> <value> → set + dual-write to source + dist (positional)\n// ph connect config --<field> <value> → set + dual-write via per-field flag\n// ph connect config --json '{\"…\":\"…\"}' → bulk set + dual-write\n//\n// The 16 field flags below come from `connectRuntimeOverrideArgs`, so\n// `config` and `build` share an identical surface for runtime fields. The 4\n// flags imported individually from `common.ts` (`connectBasePath` /\n// `logLevel` / `defaultDrivesUrl` / `drivesPreserveStrategy`) extend that to\n// 20-flag coverage. The positional `<key>`/`<value>` pair is also shared with\n// `ph connect build` so both commands accept the same set-mode grammar.\n// `--dist-dir` lets Docker / non-default deployments point at a custom dist\n// location; falls back to PH_CONNECT_OUTDIR env, then to the standard\n// `.ph/connect-build/dist/` path.\n//\n// NOTE: the 4 commonArgs flags have built-in cmd-ts defaults\n// (e.g. logLevel=\"info\"), so always parse as defined. The service detects\n// \"user explicitly passed this flag\" via process.argv inspection — see\n// `clis/ph-cli/src/utils/cli-connect-override.ts:wasFlagExplicitlyPassed`.\nexport const connectConfigArgs = {\n get: option({\n type: optional(string),\n long: \"get\",\n description:\n 'Dotted path inside connect.* (e.g. \"connect.renown.url\") to read the effective value. Mutually exclusive with the set modes. Equivalent to `ph connect config <key>` (positional).',\n }),\n distDir: option({\n type: optional(string),\n long: \"dist-dir\",\n description:\n \"Path to the directory containing the dist powerhouse.config.json. Defaults to the PH_CONNECT_OUTDIR env or `.ph/connect-build/dist/`.\",\n }),\n ...connectRuntimeOverrideArgs,\n ...connectPositionalArgs,\n connectBasePath,\n logLevel,\n defaultDrivesUrl,\n drivesPreserveStrategy,\n};\n\nexport const connectArgs = {\n ...connectStudioArgs,\n ...connectBuildArgs,\n ...connectPreviewArgs,\n ...connectConfigArgs,\n};\n"],"mappings":";;;AA6BA,MAAM,aAAoC;CACxC,OAAO,UAAU;EACf,MAAM,IAAI,MAAM,aAAa;AAC7B,MAAI,MAAM,OAAQ,QAAO,QAAQ,QAAQ,KAAK;AAC9C,MAAI,MAAM,QAAS,QAAO,QAAQ,QAAQ,MAAM;AAChD,SAAO,QAAQ,uBACb,IAAI,MACF,uDAAuD,MAAM,IAC9D,CACF;;CAEH,aAAa;CACd;AAED,MAAa,oBAAoB;CAC/B,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF;CACA,GAAG;CACH,GAAG;CACJ;AAkBD,MAAM,6BAA6B;CACjC,MAAM,OAAO;EACX,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,WAAW,OAAO;EAChB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,iBAAiB,OAAO;EACtB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,eAAe,OAAO;EACpB,MAAM,SAAS,OAAO;EACtB,MAAM;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xB,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,aACE;EACH,CAAC;CACF,iBAAiB,WAAW;EAC1B,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,aACE;EACH,CAAC;CACH;AAED,MAAa,mBAAmB;CAC9B,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,GAAG;CACH,GAAG;CACH,aAAa,KAAK;EAChB,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aACE;EACH,CAAC;CACF,SAAS,OAAO;EACd,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,GAAG;CACJ;AAED,MAAa,qBAAqB;CAChC,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,GAAG;CACH,GAAG;CACJ;AA6BD,MAAa,oBAAoB;CAC/B,KAAK,OAAO;EACV,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,SAAS,OAAO;EACd,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,GAAG;CACH,GAAG;CACH;CACA;CACA;CACA;CACD;AAED,MAAa,cAAc;CACzB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ"}
|
|
1
|
+
{"version":3,"file":"connect-ByiLv365.mjs","names":[],"sources":["../../../clis/args/connect.ts"],"sourcesContent":["import type { Type } from \"cmd-ts\";\nimport {\n boolean,\n flag,\n number,\n option,\n optional,\n positional,\n string,\n} from \"cmd-ts\";\nimport {\n DEFAULT_CONNECT_OUTDIR,\n DEFAULT_CONNECT_PREVIEW_PORT,\n DEFAULT_CONNECT_STUDIO_PORT,\n} from \"../constants.js\";\nimport {\n commonArgs,\n commonServerArgs,\n connectBasePath,\n defaultDrivesUrl,\n drivesPreserveStrategy,\n logLevel,\n renownNamespace,\n renownSwitchboardUrl,\n} from \"./common.js\";\n\n// cmd-ts's built-in `boolean` is intended for `flag()` (presence/absence). With\n// `option()` we need to parse the next argv as a value, but cmd-ts's `boolean`\n// does not coerce the string. This custom Type does.\nconst cliBoolean: Type<string, boolean> = {\n from: (input) => {\n const v = input.toLowerCase();\n if (v === \"true\") return Promise.resolve(true);\n if (v === \"false\") return Promise.resolve(false);\n return Promise.reject(\n new Error(\n `Expected 'true' or 'false' (case-insensitive), got '${input}'.`,\n ),\n );\n },\n description: \"true | false\",\n};\n\nexport const connectStudioArgs = {\n port: option({\n type: number,\n long: \"port\",\n description: \"Port to run the dev server on.\",\n defaultValue: () => DEFAULT_CONNECT_STUDIO_PORT,\n defaultValueIsSerializable: true,\n }),\n renownNamespace,\n ...commonArgs,\n ...commonServerArgs,\n};\n\n// Runtime-config override flags. Each is optional with no default — undefined\n// means \"user did not pass this flag\", so runConnectBuild can include only\n// explicitly-set values in `cliConnectOverride` and avoid clobbering source\n// `powerhouse.config.json` values when no override was intended.\n//\n// These flags occupy the top of the precedence ladder for the runtime config\n// emitted into `dist/powerhouse.config.json`:\n//\n// DEFAULT_CONNECT_CONFIG < source connect.* < --json < individual --flag\n//\n// `--json` accepts a partial `connect.*` blob (e.g. `{\"renown\":{\"url\":\"...\"}}`).\n// Individual flags merge on top of `--json` inside the same CLI layer, so they\n// win on collision. Env vars are NOT part of this build-time merge;\n// PH_CONNECT_CONFIG_JSON is applied to the dist file at container start by\n// the Docker entrypoint (operator-wins: concrete values override the baked\n// file, null/omitted keep it; connect.app.basePath excluded).\nconst connectRuntimeOverrideArgs = {\n json: option({\n type: optional(string),\n long: \"json\",\n description:\n 'Inline JSON override for the runtime connect.* block, e.g. \\'{\"renown\":{\"url\":\"...\"}}\\'. Validated against the runtime schema; deep-merged on top of env seeds and source powerhouse.config.json. Individual --flag values beat --json on collision.',\n }),\n renownUrl: option({\n type: optional(string),\n long: \"renown-url\",\n description: \"Override connect.renown.url.\",\n }),\n renownNetworkId: option({\n type: optional(string),\n long: \"renown-network-id\",\n description: \"Override connect.renown.networkId.\",\n }),\n renownChainId: option({\n type: optional(number),\n long: \"renown-chain-id\",\n description: \"Override connect.renown.chainId.\",\n }),\n renownNamespace,\n renownSwitchboardUrl,\n allowAddDrive: option({\n type: optional(cliBoolean),\n long: \"allow-add-drive\",\n description:\n \"Override connect.drives.allowAddDrive (top-level add-drive toggle).\",\n }),\n externalPackages: option({\n type: optional(cliBoolean),\n long: \"external-packages\",\n description: \"Override connect.packages.externalEnabled.\",\n }),\n workflows: option({\n type: optional(cliBoolean),\n long: \"workflows\",\n description:\n \"Override connect.app.workflowsEnabled (load the @powerhousedao/workflow package: workflow + connection documents, their editors and Workflow Studio).\",\n }),\n remoteDrivesEnabled: option({\n type: optional(cliBoolean),\n long: \"remote-drives-enabled\",\n description:\n \"Override connect.drives.sections.remote.enabled (the unified cloud+public section).\",\n }),\n remoteDrivesAllowAdd: option({\n type: optional(cliBoolean),\n long: \"remote-drives-allow-add\",\n description: \"Override connect.drives.sections.remote.allowAdd.\",\n }),\n remoteDrivesAllowDelete: option({\n type: optional(cliBoolean),\n long: \"remote-drives-allow-delete\",\n description: \"Override connect.drives.sections.remote.allowDelete.\",\n }),\n localDrivesEnabled: option({\n type: optional(cliBoolean),\n long: \"local-drives-enabled\",\n description: \"Override connect.drives.sections.local.enabled.\",\n }),\n localDrivesAllowAdd: option({\n type: optional(cliBoolean),\n long: \"local-drives-allow-add\",\n description: \"Override connect.drives.sections.local.allowAdd.\",\n }),\n localDrivesAllowDelete: option({\n type: optional(cliBoolean),\n long: \"local-drives-allow-delete\",\n description: \"Override connect.drives.sections.local.allowDelete.\",\n }),\n packagesRegistry: option({\n type: optional(string),\n long: \"packages-registry\",\n description: \"Override the top-level packageRegistryUrl.\",\n }),\n appName: option({\n type: optional(string),\n long: \"app-name\",\n description: \"Override connect.branding.appName.\",\n }),\n homeBackground: option({\n type: optional(string),\n long: \"home-background\",\n description:\n 'Override connect.branding.homeBackground. URL or path to an image; pass an empty string (\"\") to reset to the bundled default.',\n }),\n sentryDsn: option({\n type: optional(string),\n long: \"sentry-dsn\",\n description:\n 'Override connect.sentry.dsn (Sentry DSN URL). Pass an empty string (\"\") to set null and disable Sentry.',\n }),\n sentryEnv: option({\n type: optional(string),\n long: \"sentry-env\",\n description: \"Override connect.sentry.env (Sentry environment label).\",\n }),\n sentryTracingEnabled: option({\n type: optional(cliBoolean),\n long: \"sentry-tracing-enabled\",\n description:\n \"Override connect.sentry.tracing (Sentry performance tracing).\",\n }),\n};\n\n// Positional pair shared by `ph connect build` and `ph connect config`. Both\n// commands accept `<key> <value>` to set a single runtime-config field; `config`\n// additionally accepts `<key>` alone for read-mode (`build` rejects the\n// 1-positional case because it has no read semantics). Both are optional in the\n// parser; the handler enforces the per-command shape.\nconst connectPositionalArgs = {\n keyPositional: positional({\n type: optional(string),\n displayName: \"key\",\n description:\n \"Dotted path inside the runtime config (e.g. connect.renown.url). Pair with <value> to set; pass alone to `ph connect config` to read.\",\n }),\n valuePositional: positional({\n type: optional(string),\n displayName: \"value\",\n description:\n \"Value to set at <key>. Coerced against the runtime schema (string, bool, number, enum). Arrays and objects require --json instead.\",\n }),\n};\n\nexport const connectBuildArgs = {\n outDir: option({\n type: string,\n long: \"outDir\",\n description: \"Output directory\",\n defaultValue: () => DEFAULT_CONNECT_OUTDIR,\n defaultValueIsSerializable: true,\n }),\n ...connectRuntimeOverrideArgs,\n ...connectPositionalArgs,\n dynamicBase: flag({\n type: optional(boolean),\n long: \"dynamic-base\",\n description:\n \"Build one bundle that serves under any subpath; base resolved at serve time from a runtime global. Overrides --base.\",\n }),\n favicon: option({\n type: optional(string),\n long: \"favicon\",\n description:\n \"Path to a favicon file (e.g. .ico) to bundle in place of the default Connect icon. Emitted as icon.ico; resolved relative to the build cwd.\",\n }),\n ...commonArgs,\n};\n\nexport const connectPreviewArgs = {\n port: option({\n type: number,\n long: \"port\",\n description: \"Port to run the preview server on.\",\n defaultValue: () => DEFAULT_CONNECT_PREVIEW_PORT,\n defaultValueIsSerializable: true,\n }),\n outDir: option({\n type: string,\n long: \"outDir\",\n description: \"Output directory\",\n defaultValue: () => DEFAULT_CONNECT_OUTDIR,\n defaultValueIsSerializable: true,\n }),\n ...commonArgs,\n ...commonServerArgs,\n};\n\n// `ph connect config` — read, set, or list the runtime config under the\n// `connect.*` block of the dist `powerhouse.config.json`.\n//\n// Mode matrix (exactly one mode per invocation; mutex enforced in\n// `runConnectConfig`):\n//\n// ph connect config → list (print effective merged config)\n// ph connect config <key> → get one value at the dotted key (positional)\n// ph connect config --get <dotted.path> → same as positional <key> (kept for backward compat)\n// ph connect config <key> <value> → set + dual-write to source + dist (positional)\n// ph connect config --<field> <value> → set + dual-write via per-field flag\n// ph connect config --json '{\"…\":\"…\"}' → bulk set + dual-write\n//\n// The 16 field flags below come from `connectRuntimeOverrideArgs`, so\n// `config` and `build` share an identical surface for runtime fields. The 4\n// flags imported individually from `common.ts` (`connectBasePath` /\n// `logLevel` / `defaultDrivesUrl` / `drivesPreserveStrategy`) extend that to\n// 20-flag coverage. The positional `<key>`/`<value>` pair is also shared with\n// `ph connect build` so both commands accept the same set-mode grammar.\n// `--dist-dir` lets Docker / non-default deployments point at a custom dist\n// location; falls back to PH_CONNECT_OUTDIR env, then to the standard\n// `.ph/connect-build/dist/` path.\n//\n// NOTE: the 4 commonArgs flags have built-in cmd-ts defaults\n// (e.g. logLevel=\"info\"), so always parse as defined. The service detects\n// \"user explicitly passed this flag\" via process.argv inspection — see\n// `clis/ph-cli/src/utils/cli-connect-override.ts:wasFlagExplicitlyPassed`.\nexport const connectConfigArgs = {\n get: option({\n type: optional(string),\n long: \"get\",\n description:\n 'Dotted path inside connect.* (e.g. \"connect.renown.url\") to read the effective value. Mutually exclusive with the set modes. Equivalent to `ph connect config <key>` (positional).',\n }),\n distDir: option({\n type: optional(string),\n long: \"dist-dir\",\n description:\n \"Path to the directory containing the dist powerhouse.config.json. Defaults to the PH_CONNECT_OUTDIR env or `.ph/connect-build/dist/`.\",\n }),\n ...connectRuntimeOverrideArgs,\n ...connectPositionalArgs,\n connectBasePath,\n logLevel,\n defaultDrivesUrl,\n drivesPreserveStrategy,\n};\n\nexport const connectArgs = {\n ...connectStudioArgs,\n ...connectBuildArgs,\n ...connectPreviewArgs,\n ...connectConfigArgs,\n};\n"],"mappings":";;;AA6BA,MAAM,aAAoC;CACxC,OAAO,UAAU;EACf,MAAM,IAAI,MAAM,aAAa;AAC7B,MAAI,MAAM,OAAQ,QAAO,QAAQ,QAAQ,KAAK;AAC9C,MAAI,MAAM,QAAS,QAAO,QAAQ,QAAQ,MAAM;AAChD,SAAO,QAAQ,uBACb,IAAI,MACF,uDAAuD,MAAM,IAC9D,CACF;;CAEH,aAAa;CACd;AAED,MAAa,oBAAoB;CAC/B,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF;CACA,GAAG;CACH,GAAG;CACJ;AAkBD,MAAM,6BAA6B;CACjC,MAAM,OAAO;EACX,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,WAAW,OAAO;EAChB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,iBAAiB,OAAO;EACtB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,eAAe,OAAO;EACpB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF;CACA;CACA,eAAe,OAAO;EACpB,MAAM,SAAS,WAAW;EAC1B,MAAM;EACN,aACE;EACH,CAAC;CACF,kBAAkB,OAAO;EACvB,MAAM,SAAS,WAAW;EAC1B,MAAM;EACN,aAAa;EACd,CAAC;CACF,WAAW,OAAO;EAChB,MAAM,SAAS,WAAW;EAC1B,MAAM;EAC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B,CAAC;CACF,GAAG;CACH,GAAG;CACH,aAAa,KAAK;EAChB,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aACE;EACH,CAAC;CACF,SAAS,OAAO;EACd,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,GAAG;CACJ;AAED,MAAa,qBAAqB;CAChC,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,GAAG;CACH,GAAG;CACJ;AA6BD,MAAa,oBAAoB;CAC/B,KAAK,OAAO;EACV,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,SAAS,OAAO;EACd,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,GAAG;CACH,GAAG;CACH;CACA;CACA;CACA;CACD;AAED,MAAa,cAAc;CACzB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-
|
|
1
|
+
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-ByiLv365.mjs";
|
|
2
2
|
export { connectArgs, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BpnFLR-_.mjs";
|
|
2
2
|
import { array, boolean, flag, multioption, oneOf, option, optional, positional, string } from "cmd-ts";
|
|
3
3
|
//#region processors/constants.ts
|
|
4
4
|
const PROCESSOR_APPS = ["connect", "switchboard"];
|
|
@@ -150,4 +150,4 @@ const generateArgs = {
|
|
|
150
150
|
//#endregion
|
|
151
151
|
export { generateArgs as t };
|
|
152
152
|
|
|
153
|
-
//# sourceMappingURL=generate-
|
|
153
|
+
//# sourceMappingURL=generate-0aR1N6J5.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-
|
|
1
|
+
{"version":3,"file":"generate-0aR1N6J5.mjs","names":[],"sources":["../../../processors/constants.ts","../../../clis/args/generate.ts"],"sourcesContent":["export const PROCESSOR_APPS = [\"connect\", \"switchboard\"] as const;\nexport const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = \"relational-db\";\nexport const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = \"analytics-db\";\n","import type { Type } from \"cmd-ts\";\nimport {\n array,\n boolean,\n flag,\n multioption,\n oneOf,\n option,\n optional,\n positional,\n string,\n} from \"cmd-ts\";\nimport { PROCESSOR_APPS } from \"processors\";\nimport { debugArgs } from \"./common.js\";\n\nconst ProcessorAppType: Type<string[], (\"connect\" | \"switchboard\")[]> = {\n from(processorApps) {\n if (processorApps.length === 0) {\n throw new Error(\n `No arguments provided for processor apps. Must be \"connect\" and/or \"switchboard\"`,\n );\n }\n if (processorApps.length > 2) {\n throw new Error(\n `Too many arguments provided for processor apps. Must be \"connect\" and/or \"switchboard\"`,\n );\n }\n const allowed = new Set(PROCESSOR_APPS);\n if (\n !processorApps.every((p) => allowed.has(p as \"connect\" | \"switchboard\"))\n ) {\n throw new Error(\n `Processor apps can only be \"connect\" and/or \"switchboard\".`,\n );\n }\n return Promise.resolve(processorApps as (\"connect\" | \"switchboard\")[]);\n },\n};\n\nexport const generateArgs = {\n documentModelFilePositional: positional({\n type: optional(string),\n displayName: \"document model file path\",\n description: \"Path to the document model file.\",\n }),\n documentModelFileOption: option({\n type: optional(string),\n long: \"file\",\n description: \"Path to the document model file.\",\n }),\n editorName: option({\n type: optional(string),\n long: \"editor\",\n description: \"Editor name.\",\n }),\n editorId: option({\n type: optional(string),\n long: \"editor-id\",\n description: \"Editor ID\",\n }),\n editorDirName: option({\n type: optional(string),\n long: \"editor-dir-name\",\n description:\n \"Use a different directory name for the generated editor. Default is the editor name in kebab case.\",\n }),\n documentType: option({\n type: optional(string),\n long: \"document-type\",\n description: \"Document type for the generated document editor.\",\n }),\n documentTypes: option({\n type: optional(string),\n long: \"document-types\",\n description:\n \"[DEPRECATED] Comma separated list of document types for the generated document editor. [WARNING] Generated editor code is not set up to handle multiple document types.\",\n }),\n appName: option({\n type: optional(string),\n long: \"app\",\n description: \"App name.\",\n }),\n appId: option({\n type: optional(string),\n long: \"app-id\",\n description: \"App ID.\",\n }),\n appDirName: option({\n type: optional(string),\n long: \"app-dir-name\",\n description:\n \"Use a different directory name for the generated app. Default is the app name in kebab case.\",\n }),\n processorName: option({\n type: optional(string),\n long: \"processor\",\n description: \"Processor name.\",\n }),\n processorType: option({\n type: oneOf([\"relationalDb\", \"analytics\"] as const),\n long: \"processor-type\",\n description:\n \"Whether to generate an analytics processor or a relational DB processor. Default is analytics.\",\n defaultValue: () => \"analytics\" as const,\n defaultValueIsSerializable: true,\n }),\n processorApps: multioption({\n long: \"processor-apps\",\n type: ProcessorAppType,\n description: \"The apps where the generated processor will run\",\n defaultValue: () => [\"switchboard\" as const],\n defaultValueIsSerializable: true,\n }),\n subgraphName: option({\n type: optional(string),\n long: \"subgraph\",\n description: \"Subgraph name.\",\n }),\n importScriptName: option({\n type: optional(string),\n long: \"import-script\",\n description: \"Import script name.\",\n }),\n allowedDocumentTypes: multioption({\n type: optional(array(string)),\n long: \"allowed-document-types\",\n description: \"Supported document types for a app.\",\n }),\n migrationFile: option({\n type: optional(string),\n long: \"migration-file\",\n description: \"Path to the migration file.\",\n }),\n schemaFile: option({\n type: optional(string),\n long: \"schema-file\",\n description: \"Path to the output file. Defaults to './schema.ts'\",\n }),\n disableDragAndDrop: flag({\n type: optional(boolean),\n long: \"disable-drag-and-drop\",\n description: \"Disable drag and drop in the generated app.\",\n }),\n force: flag({\n type: optional(boolean),\n long: \"force\",\n short: \"f\",\n description: \"Overwrite operation reducers.\",\n }),\n verbose: flag({\n type: optional(boolean),\n long: \"logs\",\n description: \"Show additional logging information.\",\n }),\n watch: flag({\n type: optional(boolean),\n long: \"watch\",\n short: \"w\",\n description: \"Watch the generated code.\",\n }),\n skipFormat: flag({\n type: optional(boolean),\n long: \"skip-format\",\n short: \"sf\",\n description: \"Skip formatting the generated code.\",\n }),\n useVersioning: flag({\n type: boolean,\n long: \"use-versioning\",\n description: \"Allow upgrading document models with versioning.\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n migrateLegacy: flag({\n type: boolean,\n long: \"migrate-legacy\",\n description:\n \"Migrate existing legacy document model code to versioned structure. Implies --use-versioning.\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n};\n"],"mappings":";;;AAAA,MAAa,iBAAiB,CAAC,WAAW,cAAc;ACuCxD,MAAa,eAAe;CAC1B,6BAA6B,WAAW;EACtC,MAAM,SAAS,OAAO;EACtB,aAAa;EACb,aAAa;EACd,CAAC;CACF,yBAAyB,OAAO;EAC9B,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,YAAY,OAAO;EACjB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,UAAU,OAAO;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,eAAe,OAAO;EACpB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,cAAc,OAAO;EACnB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,eAAe,OAAO;EACpB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;EACH,CAAC;CACF,SAAS,OAAO;EACd,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;EACd,CAAC;CACF,OAAO,OAAO;EACZ,MAAM,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ACvB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,SAAS,KAAK;EACZ,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,aAAa;EACd,CAAC;CACF,OAAO,KAAK;EACV,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,YAAY,KAAK;EACf,MAAM,SAAS,QAAQ;EACvB,MAAM;EACN,OAAO;EACP,aAAa;EACd,CAAC;CACF,eAAe,KAAK;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,eAAe,KAAK;EAClB,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;EAC7B,CAAC;CACF,GAAG;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as generateArgs } from "./generate-
|
|
1
|
+
import { t as generateArgs } from "./generate-0aR1N6J5.mjs";
|
|
2
2
|
export { generateArgs };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
2
|
-
import { t as accessTokenArgs } from "./access-token-
|
|
3
|
-
import { 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 } from "./registry-
|
|
12
|
-
import { t as switchboardArgs } from "./switchboard-
|
|
13
|
-
import { t as uninstallArgs } from "./uninstall-
|
|
14
|
-
import { r as vetraArgs } from "./vetra-
|
|
1
|
+
import { o as debugArgs } from "./common-BpnFLR-_.mjs";
|
|
2
|
+
import { t as accessTokenArgs } from "./access-token-Bf1K1Fpc.mjs";
|
|
3
|
+
import { t as connectArgs } from "./connect-ByiLv365.mjs";
|
|
4
|
+
import { t as generateArgs } from "./generate-0aR1N6J5.mjs";
|
|
5
|
+
import { t as inspectArgs } from "./inspect-BzBsZ0UO.mjs";
|
|
6
|
+
import { t as installArgs } from "./install-D0jaysiP.mjs";
|
|
7
|
+
import { t as listArgs } from "./list-BaO47Btz.mjs";
|
|
8
|
+
import { t as loginArgs } from "./login-DM-qhiYI.mjs";
|
|
9
|
+
import { t as migrateArgs } from "./migrate-EitaI7jq.mjs";
|
|
10
|
+
import { t as publishArgs } from "./publish-DfMF3Nmc.mjs";
|
|
11
|
+
import { n as registryLoginArgs } from "./registry-Di1tZqbn.mjs";
|
|
12
|
+
import { t as switchboardArgs } from "./switchboard-BhR-ZwGV.mjs";
|
|
13
|
+
import { t as uninstallArgs } from "./uninstall-diefi70g.mjs";
|
|
14
|
+
import { r as vetraArgs } from "./vetra-DV0zQzba.mjs";
|
|
15
15
|
import { command } from "cmd-ts";
|
|
16
16
|
//#region clis/command-names.ts
|
|
17
17
|
const phCliCommandNames = [
|
|
@@ -149,4 +149,4 @@ const phCliHelpCommands = {
|
|
|
149
149
|
//#endregion
|
|
150
150
|
export { phCliCommandNames as n, phCliHelpCommands as t };
|
|
151
151
|
|
|
152
|
-
//# sourceMappingURL=help-
|
|
152
|
+
//# sourceMappingURL=help-CEw7OZ9E.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-
|
|
1
|
+
{"version":3,"file":"help-CEw7OZ9E.mjs","names":[],"sources":["../../../clis/command-names.ts","../../../clis/args/help.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","import { command } from \"cmd-ts\";\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 { 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\nexport const phCliHelpCommands = {\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\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":";;;;;;;;;;;;;;;;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;CACD;;;ACLD,SAAS,YAIP,QACwE;CACxE,MAAM,UAAW,OAAO,WAAY,EAAE;AAGtC,QAAO,OAAO,OAAO,QAAQ;EAAE,GAAG;EAAQ,SAAS,CAAC,GAAG,QAAQ;EAAE,CAAC,EAAE;EAClE,MAAM,OAAO;EACb;EACD,CAAC;;AAMJ,MAAa,oBAAoB;CAC/B,UAAU,YAAY;EACpB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,MAAM,YAAY;EAChB,MAAM;EACN,SAAS,CAAC,IAAI;EACd,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,gBAAgB,YAAY;EAC1B,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,kBAAkB,YAAY;EAC5B,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,KAAK;EACf,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,aAAa,YAAY;EACvB,MAAM;EACN,SAAS,CAAC,UAAU;EACpB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,QAAQ,YAAY;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,OAAO,IAAI;EACrB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,WAAW,YAAY;EACrB,MAAM;EACN,SAAS,CAAC,SAAS;EACnB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACH"}
|
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-CEw7OZ9E.mjs";
|
|
2
2
|
export { phCliCommandNames, phCliHelpCommands };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as accessTokenArgs } from "./access-token--9H57y8J.mjs";
|
|
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-
|
|
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-yKU4B741.mjs";
|
|
3
3
|
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-_FQWS7p3.mjs";
|
|
4
4
|
import { t as generateArgs } from "./generate-DnV-bfXt.mjs";
|
|
5
5
|
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-CjAsudUn.mjs";
|
|
@@ -11,9 +11,9 @@ import { t as loginArgs } from "./login-DNsHwvqk.mjs";
|
|
|
11
11
|
import { t as migrateArgs } from "./migrate-sixkWhxm.mjs";
|
|
12
12
|
import { t as publishArgs } from "./publish-Dqe5DUst.mjs";
|
|
13
13
|
import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-C_RfTsKB.mjs";
|
|
14
|
-
import { n as ServiceAction, t as serviceArgs } from "./service-
|
|
14
|
+
import { n as ServiceAction, t as serviceArgs } from "./service-DhIkf8-O.mjs";
|
|
15
15
|
import { t as switchboardArgs } from "./switchboard-BlPaq2at.mjs";
|
|
16
16
|
import { t as uninstallArgs } from "./uninstall-BpA3YYbw.mjs";
|
|
17
17
|
import { t as unpublishArgs } from "./unpublish-CvwaIimG.mjs";
|
|
18
|
-
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-
|
|
18
|
+
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-CoMvTJK7.mjs";
|
|
19
19
|
export { AGENTS, DEFAULT_REGISTRY_LOGIN_EXPIRY, ServiceAction, 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 };
|
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-BpnFLR-_.mjs";
|
|
2
|
+
import { t as accessTokenArgs } from "./access-token-Bf1K1Fpc.mjs";
|
|
3
|
+
import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-ByiLv365.mjs";
|
|
4
|
+
import { t as generateArgs } from "./generate-0aR1N6J5.mjs";
|
|
5
|
+
import { t as inspectArgs } from "./inspect-BzBsZ0UO.mjs";
|
|
6
|
+
import { t as installArgs } from "./install-D0jaysiP.mjs";
|
|
7
|
+
import { t as listArgs } from "./list-BaO47Btz.mjs";
|
|
8
|
+
import { t as loginArgs } from "./login-DM-qhiYI.mjs";
|
|
9
|
+
import { t as migrateArgs } from "./migrate-EitaI7jq.mjs";
|
|
10
|
+
import { t as publishArgs } from "./publish-DfMF3Nmc.mjs";
|
|
11
|
+
import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-Di1tZqbn.mjs";
|
|
12
|
+
import { t as switchboardArgs } from "./switchboard-BhR-ZwGV.mjs";
|
|
13
|
+
import { t as uninstallArgs } from "./uninstall-diefi70g.mjs";
|
|
14
|
+
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-DV0zQzba.mjs";
|
|
15
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-CEw7OZ9E.mjs";
|
|
16
|
+
import { t as initArgs } from "./init-DBYYsV0Y.mjs";
|
|
17
|
+
import { t as serviceArgs } from "./service-jRX2qPul.mjs";
|
|
18
|
+
import { t as unpublishArgs } from "./unpublish-C6eNRzsU.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-BpnFLR-_.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-DBYYsV0Y.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-
|
|
1
|
+
{"version":3,"file":"init-DBYYsV0Y.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-DBYYsV0Y.mjs";
|
|
2
2
|
export { initArgs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BpnFLR-_.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-BzBsZ0UO.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-
|
|
1
|
+
{"version":3,"file":"inspect-BzBsZ0UO.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-BzBsZ0UO.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-BpnFLR-_.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-D0jaysiP.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-
|
|
1
|
+
{"version":3,"file":"install-D0jaysiP.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-D0jaysiP.mjs";
|
|
2
2
|
export { installArgs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-BpnFLR-_.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-BaO47Btz.mjs.map
|