@powerhousedao/shared 6.2.3-dev.94 → 6.2.3-dev.96
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.mjs +1 -1
- package/dist/clis/args/{common-CBLen_yt.mjs → common-DG_SF8fN.mjs} +9 -1
- package/dist/clis/args/common-DG_SF8fN.mjs.map +1 -0
- package/dist/clis/args/{common-BpLj4peE.d.mts → common-DmerPWXo.d.mts} +5 -1
- package/dist/clis/args/common-DmerPWXo.d.mts.map +1 -0
- package/dist/clis/args/common.d.mts +1 -1
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-a36SaAn4.mjs → generate-DoDfK_Wi.mjs} +2 -2
- package/dist/clis/args/{generate-a36SaAn4.mjs.map → generate-DoDfK_Wi.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-D_wYe_Fx.mjs → help-DJCRTkC9.mjs} +4 -4
- package/dist/clis/args/{help-D_wYe_Fx.mjs.map → help-DJCRTkC9.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +2 -2
- package/dist/clis/args/index.mjs +4 -4
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/keyframes.mjs +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/mcp.mjs +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/model.d.mts +8 -0
- package/dist/clis/args/model.d.mts.map +1 -1
- package/dist/clis/args/model.mjs +17 -1
- package/dist/clis/args/model.mjs.map +1 -1
- package/dist/clis/args/publish.d.mts +4 -0
- package/dist/clis/args/publish.mjs +10 -2
- package/dist/clis/args/publish.mjs.map +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/{service-IZ0Aq58z.d.mts → service-CLCvH3kf.d.mts} +2 -2
- package/dist/clis/args/{service-IZ0Aq58z.d.mts.map → service-CLCvH3kf.d.mts.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.mjs +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-DlAEC_Mv.mjs → vetra-BqjDopAP.mjs} +2 -2
- package/dist/clis/args/{vetra-DlAEC_Mv.mjs.map → vetra-BqjDopAP.mjs.map} +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-pieces.d.mts +9 -2
- package/dist/clis/build-pieces.d.mts.map +1 -1
- package/dist/clis/build-pieces.mjs +61 -16
- package/dist/clis/build-pieces.mjs.map +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/constants.mjs +4 -1
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +11 -0
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +42 -4
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-B-2NDvpx.d.mts → types-DXqOePw5.d.mts} +4 -1
- package/dist/clis/{types-B-2NDvpx.d.mts.map → types-DXqOePw5.d.mts.map} +1 -1
- package/dist/registry/index.js.map +1 -1
- package/dist/types-cIIv_Rsg.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/clis/args/common-BpLj4peE.d.mts.map +0 -1
- package/dist/clis/args/common-CBLen_yt.mjs.map +0 -1
|
@@ -123,6 +123,14 @@ const buildArgs = {
|
|
|
123
123
|
defaultValue: () => false,
|
|
124
124
|
defaultValueIsSerializable: true
|
|
125
125
|
}),
|
|
126
|
+
/** @experimental Builds for a release: the release check, then a release approval. */
|
|
127
|
+
release: flag({
|
|
128
|
+
type: boolean,
|
|
129
|
+
long: "release",
|
|
130
|
+
description: "Experimental: check every document model as for a release and stop the build, previous output intact, when the check finds them invalid or cannot run; then write the release approval ph publish verifies",
|
|
131
|
+
defaultValue: () => false,
|
|
132
|
+
defaultValueIsSerializable: true
|
|
133
|
+
}),
|
|
126
134
|
...debugArgs
|
|
127
135
|
};
|
|
128
136
|
const packageManagerArgs = {
|
|
@@ -323,4 +331,4 @@ const commonServerArgs = {
|
|
|
323
331
|
//#endregion
|
|
324
332
|
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 };
|
|
325
333
|
|
|
326
|
-
//# sourceMappingURL=common-
|
|
334
|
+
//# sourceMappingURL=common-DG_SF8fN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-DG_SF8fN.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\n/**\n * Icon for the drives switchboard creates by default, inlined as a data URI.\n *\n * A remote URL is the wrong shape for this: the value is baked into the drive\n * document and rendered by every Connect that opens it, so the icon only\n * appears when that client can reach that host. A desktop or air-gapped install\n * cannot, and the ipfs.io gateway this previously pointed at now answers 403\n * regardless.\n *\n * The mark is drawn dark-on-light so it stays legible against either theme.\n */\nexport const DEFAULT_DRIVE_ICON =\n \"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23F3F5F7'/%3E%3Cpath%20fill='%23343839'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.0059%200L3.41636%205.45646C2.44979%206.25682%202.3795%207.71452%203.26456%208.60418L5.54425%2010.8957C6.21311%2011.568%206.35783%2012.6012%205.89944%2013.4314L4.48126%2016H2.13333C0.955126%2016%200%2015.0449%200%2013.8667V2.13333C0%200.955126%200.955126%200%202.13333%200H10.0059ZM11.2436%200L10.0128%202.24221C9.55899%203.06891%209.70183%204.09549%2010.3641%204.7669L12.7825%207.21868C13.6656%208.11402%2013.5866%209.57512%2012.612%2010.37L5.70922%2016H13.8667C15.0449%2016%2016%2015.0449%2016%2013.8667V2.13333C16%200.955126%2015.0449%200%2013.8667%200H11.2436Z'/%3E%3C/svg%3E\" 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 // Offered routes import it; the Connect that loads the package provides it.\n \"@powerhousedao/connect-core\",\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\";\nexport const KYSELY_PACKAGE = \"kysely\";\nexport const RELATIONAL_DB_PROCESSOR_CLASS = \"RelationalDbProcessor\";\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.6.5\" },\n // Project routes import it; Connect and connect-core take the project's copy.\n \"@tanstack/react-router\": { peer: \"^1.170.41\", dev: \"1.170.41\" },\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 // The schema `ph generate migration-file` writes imports kysely's types, and\n // queries import its `sql`; the host's kysely runs them.\n relationalDbProcessor: {\n peerVersioned: [],\n peerExternal: { [KYSELY_PACKAGE]: { peer: \"^0.28\", dev: \"0.28.16\" } },\n devVersioned: [],\n },\n // A subgraph's BaseSubgraph is the host's: the build leaves it external.\n subgraph: {\n peerVersioned: [REACTOR_API_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 ...FEATURE_DEPENDENCIES.subgraph.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 package.json `resolutions` and\n// `overrides`, with each pin also an exact devDependency. Generated-project\n// only — never change the monorepo catalog for this (a re-resolution there\n// pulls a tsc-crashing TS6 beta).\n//\n// The Solana pins hold @privy-io/react-auth's optional peers to the kit that\n// installs: its open ranges (`@solana-program/system >=0.8.0`) let a fresh\n// install take system 0.16 and token 0.16+, which import\n// `@solana/kit/program-client-core` (kit ^8), while the kit that installs is\n// 5.5.1, and `ph connect build` fails. These are the monorepo lockfile's versions.\nexport const BOILERPLATE_DEPENDENCY_OVERRIDES = {\n \"date-fns\": \"4.3.0\",\n vite: \"8.0.14\",\n rolldown: \"1.0.2\",\n \"@solana/kit\": \"5.5.1\",\n \"@solana-program/system\": \"0.10.0\",\n \"@solana-program/token\": \"0.9.0\",\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 // uniform-runners: the runner modules the scaffolded hosts/*/host.js\n // files name (desktop runner, clint-runner/mastra-runner, and the generic\n // compound they build on); dormant in classic projects until the feature\n // flag defaults on.\n \"@powerhousedao/host-core\",\n \"@powerhousedao/clint\",\n \"@powerhousedao/desktop\",\n // the Vetra Studio plugins the scaffolded vetra host composes (verb dev)\n \"@powerhousedao/vetra-studio\",\n // the switchboard plugins the scaffolded switchboard host composes\n // (workflows, mcp, …) and their PHPluginConfigs types for tsc -p hosts.\n \"@powerhousedao/switchboard\",\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 node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./scalars\": {\n types: \"./dist/types/scalars/index.d.ts\",\n browser: \"./dist/browser/scalars/index.js\",\n node: \"./dist/node/scalars/index.mjs\",\n },\n // The routes the package offers other Connects; built when it has any.\n \"./connect-routes\": {\n browser: \"./dist/browser/connect-routes.js\",\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 // Routes type-check against the tree, which Vetra or a build would write.\n lint: \"ph-cli generate connect-routes && oxlint --type-aware --type-check\",\n \"lint:fix\":\n \"ph-cli generate connect-routes && oxlint --type-aware --type-check --fix\",\n format: \"oxfmt\",\n \"format:check\": \"oxfmt --check\",\n tsc: \"ph-cli generate connect-routes && 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 // The MCP configs run it as `node --run mcp`, which needs no shell on Windows.\n mcp: \"ph-cli mcp\",\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\": \"5.0.3\",\n oxfmt: \"0.68.0\",\n oxlint: \"1.83.0\",\n \"oxlint-tsgolint\": \"7.0.2001\",\n tailwindcss: \"^4.1.16\",\n typescript: \"~7.0.2\",\n vite: \"^8.0.10\",\n vitest: \"5.0.3\",\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 ignoreTypeErrors: flag({\n type: boolean,\n long: \"ignore-type-errors\",\n description:\n \"Unsafe: build even when tsc reports type errors, without asking. The package can load and still fail at runtime\",\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n }),\n /** @experimental Builds for a release: the release check, then a release approval. */\n release: flag({\n type: boolean,\n long: \"release\",\n description:\n \"Experimental: check every document model as for a release and stop the build, previous output intact, when the check finds them invalid or cannot run; then write the release approval ph publish verifies\",\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\n// No default: unset leaves a host's own config.switchboard.packages.disableLocal in force.\nexport const disableLocalPackages = flag({\n type: optional(boolean),\n long: \"ignore-local\",\n description: \"Do not load local packages from this project\",\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;AACF;AAMA,MAAa,6BAA6B,CACxC,gBACA,4BACF;AAEA,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;AACF;AAIA,MAAa,8BAA8B;AAE3C,MAAa,6BAA6B;AAE1C,MAAa,+BAA+B;AAE5C,MAAa,yBAAyB;AAEtC,MAAa,qBAAqB;AAIlC,MAAa,2BAA2B;AAwCxC,MAAa,yBAAyB;AAStC,MAAa,WAAW,QAAQ;AAEK,KAAK,UAAA,KAA4B;AAGtE,MAAa,8BAA8B;CACzC;CACA;CAEA;AACF;AAIA,MAAa,sBAAsB;AACnC,MAAa,gCACX;AAGF,MAAa,2BAA2B;AAsBxC,MAAa,uBAAuB;CAClC,oBAAoB;EAClB,eAAe,CAAC,6BAA6B;EAC7C,cAAc,CAAC;EACf,cAAc,CAAC;CACjB;CAGA,uBAAuB;EACrB,eAAe,CAAC;EAChB,cAAc,GAAG,WAAiB;GAAE,MAAM;GAAS,KAAK;EAAU,EAAE;EACpE,cAAc,CAAC;CACjB;CAEA,UAAU;EACR,eAAe,CAAC,mBAAmB;EACnC,cAAc,CAAC;EACf,cAAc,CAAC;CACjB;CAGA,OAAO;EACL,eAAe,CAAC;EAChB,cAAc,CAAC;EACf,cAAc,CAAC,wBAAwB;CACzC;AACF;AASsC;CACpC,GAAG;CACH,GAAG,qBAAqB,mBAAmB;CAC3C,GAAG,qBAAqB,SAAS;AACnC;AAwOA,MAAa,iBAAmC;CAC9C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AC;CACD,kBAAkB,KAAK;EACrB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,cAAc,OAAO;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAA;EACA,4BAA4B;CAC9B,CAAC;AACH"}
|
|
@@ -19,6 +19,10 @@ declare const buildArgs: {
|
|
|
19
19
|
ignoreTypeErrors: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
20
20
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean>>;
|
|
21
21
|
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
22
|
+
/** @experimental Builds for a release: the release check, then a release approval. */
|
|
23
|
+
release: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
24
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean>>;
|
|
25
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
22
26
|
};
|
|
23
27
|
declare const packageManagerArgs: {
|
|
24
28
|
packageManager: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
@@ -183,4 +187,4 @@ declare const commonServerArgs: {
|
|
|
183
187
|
//#endregion
|
|
184
188
|
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 };
|
|
185
189
|
export {};
|
|
186
|
-
//# sourceMappingURL=common-
|
|
190
|
+
//# sourceMappingURL=common-DmerPWXo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-DmerPWXo.d.mts","names":[],"sources":["../../../clis/args/common.ts"],"mappings":";;cAuBa,QAAQ;cAER;EACX,OAAK,+CAAA;;;;cAOM;;;;;;;;;;;;;;;;;;cAoCA;EACX,gBAAc,+CAAA;;;EAOd,KAAG,+CAAA;;;EAKH,MAAI,+CAAA;;;EAKJ,MAAI,+CAAA;;;EAKJ,KAAG,+CAAA;;;;cAMQ,0BAAwB,+CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAInC,6CAAA,iDAAA,mDAAA;cACW,UAAQ,+CAAA;;yCAKnB,eAAA,6CAAA;cAEW,cAAY,+CAAA;;yCAKvB,eAAA,6CAAA;cAGW,sBAAoB,+CAAA;;yCAI/B,sDAAA,WAAA,6CAAA;cAEW,cAAY,+CAAA;;yCAWvB,eAAA,6CAAA;cAEW,eAAa,+CAAA;;yCAWxB,eAAA,6CAAA;cAEW,OAAK,+CAAA;;yCAUhB,sDAAA,WAAA,6CAAA;cAEW;;;;;;;;;;;;;;;;;;;;;;;cAmBA,kBAAgB,+CAAA;;yCAK3B,eAAA,6CAAA;cAEW,UAAQ,+CAAA;;yCAOnB,eAAA,6CAAA;cAEW,iBAAe,+CAAA;;yCAK1B,eAAA,6CAAA;cAEW,iBAAe,+CAAA;;yCAK1B,eAAA,6CAAA;cAEW,sBAAoB,+CAAA;;yCAK/B,eAAA,6CAAA;cAEW,wBAAsB,+CAAA;;yCAMjC,eAAA,6CAAA;cAEW,OAAK,+CAAA;;yCAKhB,sDAAA,WAAA,6CAAA;cAEW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYA;EACX,MAAI,+CAAA;;;EAMJ,MAAI,+CAAA;;;EAKJ,MAAI,+CAAA;;;EAKJ,YAAU,+CAAA;;;EAKV,WAAS,+CAAA;;;EAOT,kBAAgB,+CAAA;;;EAOhB,cAAY,+CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
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-DmerPWXo.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 };
|
|
3
3
|
export {};
|
|
@@ -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-DG_SF8fN.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-DG_SF8fN.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 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-DG_SF8fN.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"];
|
|
@@ -188,4 +188,4 @@ const generateArgs = {
|
|
|
188
188
|
//#endregion
|
|
189
189
|
export { generateArgs as t };
|
|
190
190
|
|
|
191
|
-
//# sourceMappingURL=generate-
|
|
191
|
+
//# sourceMappingURL=generate-DoDfK_Wi.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-
|
|
1
|
+
{"version":3,"file":"generate-DoDfK_Wi.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 pieceName: option({\n type: optional(string),\n long: \"piece\",\n description: \"Piece name.\",\n }),\n pieceId: option({\n type: optional(string),\n long: \"piece-id\",\n description:\n \"Piece id, the pieceName a workflow step holds, e.g. @acme/piece-crm. Defaults to one derived from the package name.\",\n }),\n pieceAuth: option({\n type: oneOf([\"none\", \"secret\", \"custom\"] as const),\n long: \"piece-auth\",\n description:\n \"The kind of connection the generated piece asks for. Default is custom.\",\n defaultValue: () => \"custom\" as const,\n defaultValueIsSerializable: true,\n }),\n pieceActionName: option({\n type: optional(string),\n long: \"piece-action\",\n description: \"Name of an action to generate inside a piece.\",\n }),\n pieceTriggerName: option({\n type: optional(string),\n long: \"piece-trigger\",\n description: \"Name of a trigger to generate inside a piece.\",\n }),\n pieceTriggerStrategy: option({\n type: oneOf([\"polling\", \"webhook\"] as const),\n long: \"piece-trigger-strategy\",\n description: \"How a generated trigger fires. Default is polling.\",\n defaultValue: () => \"polling\" as const,\n defaultValueIsSerializable: true,\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,aAAa;ACuCvD,MAAa,eAAe;CAC1B,6BAA6B,WAAW;EACtC,MAAM,SA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AAS,OAAO;EACtB,MAAM;EACN,aAAa;CACf,CAAC;CACD,OAAO,KAAK;EACV,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,OAAO;EACP,aAAa;CACf,CAAC;CACD,YAAY,KAAK;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,OAAO;EACP,aAAa;CACf,CAAC;CACD,eAAe,KAAK;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,eAAe,KAAK;EAClB,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,GAAG;AACL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as generateArgs } from "./generate-
|
|
1
|
+
import { t as generateArgs } from "./generate-DoDfK_Wi.mjs";
|
|
2
2
|
export { generateArgs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-DG_SF8fN.mjs";
|
|
2
2
|
import { accessTokenArgs } from "./access-token.mjs";
|
|
3
3
|
import { connectArgs } from "./connect.mjs";
|
|
4
|
-
import { t as generateArgs } from "./generate-
|
|
4
|
+
import { t as generateArgs } from "./generate-DoDfK_Wi.mjs";
|
|
5
5
|
import { hostCheckArgs } from "./host.mjs";
|
|
6
6
|
import { inspectArgs } from "./inspect.mjs";
|
|
7
7
|
import { installArgs } from "./install.mjs";
|
|
@@ -16,7 +16,7 @@ import { registryLoginArgs } from "./registry.mjs";
|
|
|
16
16
|
import { runArgs } from "./run.mjs";
|
|
17
17
|
import { switchboardArgs } from "./switchboard.mjs";
|
|
18
18
|
import { uninstallArgs } from "./uninstall.mjs";
|
|
19
|
-
import { r as vetraArgs } from "./vetra-
|
|
19
|
+
import { r as vetraArgs } from "./vetra-BqjDopAP.mjs";
|
|
20
20
|
import { command } from "cmd-ts";
|
|
21
21
|
//#region clis/feature-flags.ts
|
|
22
22
|
/**
|
|
@@ -208,4 +208,4 @@ const phCliHelpCommands = isUniformRunnersEnabled() ? allPhCliHelpCommands : (({
|
|
|
208
208
|
//#endregion
|
|
209
209
|
export { phCliCommandNames as n, phCliHelpCommands as t };
|
|
210
210
|
|
|
211
|
-
//# sourceMappingURL=help-
|
|
211
|
+
//# sourceMappingURL=help-DJCRTkC9.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-D_wYe_Fx.mjs","names":[],"sources":["../../../clis/feature-flags.ts","../../../clis/command-names.ts","../../../clis/args/help.ts"],"sourcesContent":["/**\n * Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).\n * Hand-rolled env predicates by the CLI convention — deliberately no\n * OpenFeature dependency here; that stack belongs to the runtime apps.\n */\n\n/**\n * Gates the uniform-runners surface: the `ph run` command (registration,\n * help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`\n * hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout\n * plan: docs/plans/2026-10-13-uniform-runners.md.\n */\nexport const UNIFORM_RUNNERS_FLAG = \"FEATURE_UNIFORM_RUNNERS_ENABLED\";\n\nexport function isUniformRunnersEnabled(\n env: Record<string, string | undefined> = process.env,\n): boolean {\n const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();\n return value === \"1\" || value === \"true\";\n}\n","// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"run\",\n \"host\",\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 \"keyframes\",\n \"mcp\",\n \"migrate\",\n \"model\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n\n/** The uniform-runners commands: forwarded to ph-cli only with FEATURE_UNIFORM_RUNNERS_ENABLED. */\nexport const uniformRunnerCommandNames: ReadonlySet<string> = new Set([\n \"run\",\n \"host\",\n]);\n\n/** Set by ph-cmd on the ph-cli it spawns in the project root: where `ph` was run. */\nexport const CALLER_CWD_ENV = \"PH_CALLER_CWD\";\n","import { command } from \"cmd-ts\";\nimport { isUniformRunnersEnabled } from \"../feature-flags.js\";\nimport type { phCliCommandNames } from \"../command-names.js\";\nimport { accessTokenArgs } from \"./access-token.js\";\nimport { debugArgs } from \"./common.js\";\nimport { connectArgs } from \"./connect.js\";\nimport { generateArgs } from \"./generate.js\";\nimport { hostCheckArgs } from \"./host.js\";\nimport { inspectArgs } from \"./inspect.js\";\nimport { installArgs } from \"./install.js\";\nimport { keyframesArgs } from \"./keyframes.js\";\nimport { listArgs } from \"./list.js\";\nimport { loginArgs } from \"./login.js\";\nimport { mcpArgs } from \"./mcp.js\";\nimport { migrateArgs } from \"./migrate.js\";\nimport { modelCheckArgs } from \"./model.js\";\nimport { publishArgs } from \"./publish.js\";\nimport { registryLoginArgs } from \"./registry.js\";\nimport { runArgs } from \"./run.js\";\nimport { switchboardArgs } from \"./switchboard.js\";\nimport { uninstallArgs } from \"./uninstall.js\";\nimport { vetraArgs } from \"./vetra.js\";\n\n// Thin wrapper around `command()` that preserves the literal types of\n// `name` and `aliases` on the return value.\nfunction helpCommand<\n const N extends string,\n const A extends readonly string[] = readonly [],\n>(\n config: Parameters<typeof command>[0] & { name: N; aliases?: A },\n): ReturnType<typeof command> & { readonly name: N; readonly aliases: A } {\n const aliases = (config.aliases ?? ([] as readonly string[])) as A;\n // Forward the original config (with the normalized aliases) through cmd-ts\n // and re-attach the literal types via a localized cast.\n return Object.assign(command({ ...config, aliases: [...aliases] }), {\n name: config.name,\n aliases,\n }) as ReturnType<typeof command> & {\n readonly name: N;\n readonly aliases: A;\n };\n}\n\nconst allPhCliHelpCommands = {\n run: helpCommand({\n name: \"run\",\n args: runArgs,\n description: \"Run a host from hosts/ with its runner\",\n handler: () => {},\n }),\n host: helpCommand({\n name: \"host\",\n args: hostCheckArgs,\n description:\n \"Check or export a host from hosts/: `ph host check|export <host>`\",\n handler: () => {},\n }),\n generate: helpCommand({\n name: \"generate\",\n args: generateArgs,\n description: \"Generate powerhouse code\",\n handler: () => {},\n }),\n vetra: helpCommand({\n name: \"vetra\",\n args: vetraArgs,\n description:\n \"Starts Vetra development environment with switchboard, reactor, and connect\",\n handler: () => {},\n }),\n connect: helpCommand({\n name: \"connect\",\n args: connectArgs,\n description: \"Powerhouse Connect commands\",\n handler: () => {},\n }),\n build: helpCommand({\n name: \"build\",\n args: debugArgs,\n description: \"Build your project for publishing to the registry\",\n handler: () => {},\n }),\n publish: helpCommand({\n name: \"publish\",\n args: publishArgs,\n description: \"Publish a package to the Powerhouse registry\",\n handler: () => {},\n }),\n list: helpCommand({\n name: \"list\",\n aliases: [\"l\"],\n args: listArgs,\n description: \"List installed packages\",\n handler: () => {},\n }),\n \"access-token\": helpCommand({\n name: \"access-token\",\n args: accessTokenArgs,\n description: \"Generate a bearer token for API authentication\",\n handler: () => {},\n }),\n \"registry-login\": helpCommand({\n name: \"registry-login\",\n args: registryLoginArgs,\n description:\n \"Log in to a Powerhouse registry (writes a Renown bearer token to ~/.npmrc)\",\n handler: () => {},\n }),\n inspect: helpCommand({\n name: \"inspect\",\n aliases: [\"is\"],\n args: inspectArgs,\n description: \"Inspect a package\",\n handler: () => {},\n }),\n mcp: helpCommand({\n name: \"mcp\",\n args: mcpArgs,\n description:\n \"Serve the project's reactor-mcp tools over stdio, starting Vetra on the first tool call\",\n handler: () => {},\n }),\n keyframes: helpCommand({\n name: \"keyframes\",\n args: keyframesArgs,\n description:\n \"Report on and clean up the keyframes of a running switchboard\",\n handler: () => {},\n }),\n migrate: helpCommand({\n name: \"migrate\",\n args: migrateArgs,\n description: \"Run migrations\",\n handler: () => {},\n }),\n model: helpCommand({\n name: \"model\",\n args: modelCheckArgs,\n description:\n \"Check or inspect this package's document models (experimental): `ph model check|inspect`\",\n handler: () => {},\n }),\n switchboard: helpCommand({\n name: \"switchboard\",\n aliases: [\"reactor\"],\n args: switchboardArgs,\n description: \"Starts local Switchboard\",\n handler: () => {},\n }),\n login: helpCommand({\n name: \"login\",\n args: loginArgs,\n description: \"Authenticate with Renown using your Ethereum wallet\",\n handler: () => {},\n }),\n logout: helpCommand({\n name: \"logout\",\n args: loginArgs,\n description: \"Deletes an existing session created with 'ph login'\",\n handler: () => {},\n }),\n install: helpCommand({\n name: \"install\",\n aliases: [\"add\", \"i\"],\n args: installArgs,\n description: \"Install a Powerhouse dependency\",\n handler: () => {},\n }),\n uninstall: helpCommand({\n name: \"uninstall\",\n aliases: [\"remove\"],\n args: uninstallArgs,\n description: \"Uninstall a Powerhouse dependency\",\n handler: () => {},\n }),\n};\n\n// `run` and `host` are flag-gated: with uniform-runners off they must not\n// surface in help or dispatch at all (ph-cli also skips their registration).\n// The cast keeps the FULL compile-time shape so the drift guard below still\n// pairs the name lists while the runtime object simply lacks the keys.\nexport const phCliHelpCommands = (\n isUniformRunnersEnabled()\n ? allPhCliHelpCommands\n : (({ run: _run, host: _host, ...rest }) => rest)(allPhCliHelpCommands)\n) as typeof allPhCliHelpCommands;\n\nexport { phCliCommandNames } from \"../command-names.js\";\n\n// Compile-time drift guard: phCliCommandNames must match the names+aliases\n// declared above. If you add or rename a command/alias, the type of\n// `_DerivedNames` changes and the assignment below errors until\n// `command-names.ts` is updated to match. Costs nothing at runtime.\ntype _DerivedNames = {\n [K in keyof typeof phCliHelpCommands]:\n | (typeof phCliHelpCommands)[K][\"name\"]\n | (typeof phCliHelpCommands)[K][\"aliases\"][number];\n}[keyof typeof phCliHelpCommands];\n\ntype _Names = (typeof phCliCommandNames)[number];\n\ntype _Equal<A, B> =\n (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2\n ? true\n : false;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst _phCliCommandNamesInSync: _Equal<_DerivedNames, _Names> extends true\n ?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CAAC;CAClB,CAAC;CACD,gBAAgB,YAAY;EAC1B,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,kBAAkB,YAAY;EAC5B,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,IAAI;EACd,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,KAAK,YAAY;EACf,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,WAAW,YAAY;EACrB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,aAAa,YAAY;EACvB,MAAM;EACN,SAAS,CAAC,SAAS;EACnB,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,QAAQ,YAAY;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,OAAO,GAAG;EACpB,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,WAAW,YAAY;EACrB,MAAM;EACN,SAAS,CAAC,QAAQ;EAClB,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;AACH;AAMA,MAAa,oBACX,wBAAwB,IACpB,yBACE,EAAE,KAAK,MAAM,MAAM,OAAO,GAAG,WAAW,KAAA,CAAM,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"help-DJCRTkC9.mjs","names":[],"sources":["../../../clis/feature-flags.ts","../../../clis/command-names.ts","../../../clis/args/help.ts"],"sourcesContent":["/**\n * Feature toggles shared by the CLIs (ph-cli and ph-cmd's dispatch/help).\n * Hand-rolled env predicates by the CLI convention — deliberately no\n * OpenFeature dependency here; that stack belongs to the runtime apps.\n */\n\n/**\n * Gates the uniform-runners surface: the `ph run` command (registration,\n * help listing, and ph-cmd forwarding), host-name sugar, and the `ph init`\n * hosts/ scaffold. Off by default; set to `1` or `true` to enable. Rollout\n * plan: docs/plans/2026-10-13-uniform-runners.md.\n */\nexport const UNIFORM_RUNNERS_FLAG = \"FEATURE_UNIFORM_RUNNERS_ENABLED\";\n\nexport function isUniformRunnersEnabled(\n env: Record<string, string | undefined> = process.env,\n): boolean {\n const value = env[UNIFORM_RUNNERS_FLAG]?.trim().toLowerCase();\n return value === \"1\" || value === \"true\";\n}\n","// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"run\",\n \"host\",\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 \"keyframes\",\n \"mcp\",\n \"migrate\",\n \"model\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n\n/** The uniform-runners commands: forwarded to ph-cli only with FEATURE_UNIFORM_RUNNERS_ENABLED. */\nexport const uniformRunnerCommandNames: ReadonlySet<string> = new Set([\n \"run\",\n \"host\",\n]);\n\n/** Set by ph-cmd on the ph-cli it spawns in the project root: where `ph` was run. */\nexport const CALLER_CWD_ENV = \"PH_CALLER_CWD\";\n","import { command } from \"cmd-ts\";\nimport { isUniformRunnersEnabled } from \"../feature-flags.js\";\nimport type { phCliCommandNames } from \"../command-names.js\";\nimport { accessTokenArgs } from \"./access-token.js\";\nimport { debugArgs } from \"./common.js\";\nimport { connectArgs } from \"./connect.js\";\nimport { generateArgs } from \"./generate.js\";\nimport { hostCheckArgs } from \"./host.js\";\nimport { inspectArgs } from \"./inspect.js\";\nimport { installArgs } from \"./install.js\";\nimport { keyframesArgs } from \"./keyframes.js\";\nimport { listArgs } from \"./list.js\";\nimport { loginArgs } from \"./login.js\";\nimport { mcpArgs } from \"./mcp.js\";\nimport { migrateArgs } from \"./migrate.js\";\nimport { modelCheckArgs } from \"./model.js\";\nimport { publishArgs } from \"./publish.js\";\nimport { registryLoginArgs } from \"./registry.js\";\nimport { runArgs } from \"./run.js\";\nimport { switchboardArgs } from \"./switchboard.js\";\nimport { uninstallArgs } from \"./uninstall.js\";\nimport { vetraArgs } from \"./vetra.js\";\n\n// Thin wrapper around `command()` that preserves the literal types of\n// `name` and `aliases` on the return value.\nfunction helpCommand<\n const N extends string,\n const A extends readonly string[] = readonly [],\n>(\n config: Parameters<typeof command>[0] & { name: N; aliases?: A },\n): ReturnType<typeof command> & { readonly name: N; readonly aliases: A } {\n const aliases = (config.aliases ?? ([] as readonly string[])) as A;\n // Forward the original config (with the normalized aliases) through cmd-ts\n // and re-attach the literal types via a localized cast.\n return Object.assign(command({ ...config, aliases: [...aliases] }), {\n name: config.name,\n aliases,\n }) as ReturnType<typeof command> & {\n readonly name: N;\n readonly aliases: A;\n };\n}\n\nconst allPhCliHelpCommands = {\n run: helpCommand({\n name: \"run\",\n args: runArgs,\n description: \"Run a host from hosts/ with its runner\",\n handler: () => {},\n }),\n host: helpCommand({\n name: \"host\",\n args: hostCheckArgs,\n description:\n \"Check or export a host from hosts/: `ph host check|export <host>`\",\n handler: () => {},\n }),\n generate: helpCommand({\n name: \"generate\",\n args: generateArgs,\n description: \"Generate powerhouse code\",\n handler: () => {},\n }),\n vetra: helpCommand({\n name: \"vetra\",\n args: vetraArgs,\n description:\n \"Starts Vetra development environment with switchboard, reactor, and connect\",\n handler: () => {},\n }),\n connect: helpCommand({\n name: \"connect\",\n args: connectArgs,\n description: \"Powerhouse Connect commands\",\n handler: () => {},\n }),\n build: helpCommand({\n name: \"build\",\n args: debugArgs,\n description: \"Build your project for publishing to the registry\",\n handler: () => {},\n }),\n publish: helpCommand({\n name: \"publish\",\n args: publishArgs,\n description: \"Publish a package to the Powerhouse registry\",\n handler: () => {},\n }),\n list: helpCommand({\n name: \"list\",\n aliases: [\"l\"],\n args: listArgs,\n description: \"List installed packages\",\n handler: () => {},\n }),\n \"access-token\": helpCommand({\n name: \"access-token\",\n args: accessTokenArgs,\n description: \"Generate a bearer token for API authentication\",\n handler: () => {},\n }),\n \"registry-login\": helpCommand({\n name: \"registry-login\",\n args: registryLoginArgs,\n description:\n \"Log in to a Powerhouse registry (writes a Renown bearer token to ~/.npmrc)\",\n handler: () => {},\n }),\n inspect: helpCommand({\n name: \"inspect\",\n aliases: [\"is\"],\n args: inspectArgs,\n description: \"Inspect a package\",\n handler: () => {},\n }),\n mcp: helpCommand({\n name: \"mcp\",\n args: mcpArgs,\n description:\n \"Serve the project's reactor-mcp tools over stdio, starting Vetra on the first tool call\",\n handler: () => {},\n }),\n keyframes: helpCommand({\n name: \"keyframes\",\n args: keyframesArgs,\n description:\n \"Report on and clean up the keyframes of a running switchboard\",\n handler: () => {},\n }),\n migrate: helpCommand({\n name: \"migrate\",\n args: migrateArgs,\n description: \"Run migrations\",\n handler: () => {},\n }),\n model: helpCommand({\n name: \"model\",\n args: modelCheckArgs,\n description:\n \"Check or inspect this package's document models (experimental): `ph model check|inspect`\",\n handler: () => {},\n }),\n switchboard: helpCommand({\n name: \"switchboard\",\n aliases: [\"reactor\"],\n args: switchboardArgs,\n description: \"Starts local Switchboard\",\n handler: () => {},\n }),\n login: helpCommand({\n name: \"login\",\n args: loginArgs,\n description: \"Authenticate with Renown using your Ethereum wallet\",\n handler: () => {},\n }),\n logout: helpCommand({\n name: \"logout\",\n args: loginArgs,\n description: \"Deletes an existing session created with 'ph login'\",\n handler: () => {},\n }),\n install: helpCommand({\n name: \"install\",\n aliases: [\"add\", \"i\"],\n args: installArgs,\n description: \"Install a Powerhouse dependency\",\n handler: () => {},\n }),\n uninstall: helpCommand({\n name: \"uninstall\",\n aliases: [\"remove\"],\n args: uninstallArgs,\n description: \"Uninstall a Powerhouse dependency\",\n handler: () => {},\n }),\n};\n\n// `run` and `host` are flag-gated: with uniform-runners off they must not\n// surface in help or dispatch at all (ph-cli also skips their registration).\n// The cast keeps the FULL compile-time shape so the drift guard below still\n// pairs the name lists while the runtime object simply lacks the keys.\nexport const phCliHelpCommands = (\n isUniformRunnersEnabled()\n ? allPhCliHelpCommands\n : (({ run: _run, host: _host, ...rest }) => rest)(allPhCliHelpCommands)\n) as typeof allPhCliHelpCommands;\n\nexport { phCliCommandNames } from \"../command-names.js\";\n\n// Compile-time drift guard: phCliCommandNames must match the names+aliases\n// declared above. If you add or rename a command/alias, the type of\n// `_DerivedNames` changes and the assignment below errors until\n// `command-names.ts` is updated to match. Costs nothing at runtime.\ntype _DerivedNames = {\n [K in keyof typeof phCliHelpCommands]:\n | (typeof phCliHelpCommands)[K][\"name\"]\n | (typeof phCliHelpCommands)[K][\"aliases\"][number];\n}[keyof typeof phCliHelpCommands];\n\ntype _Names = (typeof phCliCommandNames)[number];\n\ntype _Equal<A, B> =\n (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2\n ? true\n : false;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst _phCliCommandNamesInSync: _Equal<_DerivedNames, _Names> extends true\n ? true\n : never = true;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAa,uBAAuB;AAEpC,SAAgB,wBACd,MAA0C,QAAQ,KACzC;CACT,MAAM,QAAQ,IAAI,qBAAqB,EAAE,KAAK,CAAC,CAAC,YAAY;CAC5D,OAAO,UAAU,OAAO,UAAU;AACpC;;;ACjBA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;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Y;EACf,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,WAAW,YAAY;EACrB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe,CAAC;CAClB,CAAC;CACD,aAAa,YAAY;EACvB,MAAM;EACN,SAAS,CAAC,SAAS;EACnB,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,QAAQ,YAAY;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,OAAO,GAAG;EACpB,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;CACD,WAAW,YAAY;EACrB,MAAM;EACN,SAAS,CAAC,QAAQ;EAClB,MAAM;EACN,aAAa;EACb,eAAe,CAAC;CAClB,CAAC;AACH;AAMA,MAAa,oBACX,wBAAwB,IACpB,yBACE,EAAE,KAAK,MAAM,MAAM,OAAO,GAAG,WAAW,KAAA,CAAM,oBAAoB"}
|
package/dist/clis/args/help.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./access-token.mjs";
|
|
2
2
|
import "./connect.mjs";
|
|
3
|
-
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-
|
|
3
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-DJCRTkC9.mjs";
|
|
4
4
|
import "./host.mjs";
|
|
5
5
|
import "./inspect.mjs";
|
|
6
6
|
import "./install.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { accessTokenArgs } from "./access-token.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-DmerPWXo.mjs";
|
|
3
3
|
import { connectArgs, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs } from "./connect.mjs";
|
|
4
4
|
import { generateArgs } from "./generate.mjs";
|
|
5
5
|
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BsMOLPsF.mjs";
|
|
@@ -15,7 +15,7 @@ import { migrateArgs } from "./migrate.mjs";
|
|
|
15
15
|
import { modelCheckArgs, modelInspectArgs } from "./model.mjs";
|
|
16
16
|
import { publishArgs } from "./publish.mjs";
|
|
17
17
|
import { DEFAULT_REGISTRY_LOGIN_EXPIRY, registryLoginArgs } from "./registry.mjs";
|
|
18
|
-
import { n as ServiceAction, t as serviceArgs } from "./service-
|
|
18
|
+
import { n as ServiceAction, t as serviceArgs } from "./service-CLCvH3kf.mjs";
|
|
19
19
|
import { switchboardArgs } from "./switchboard.mjs";
|
|
20
20
|
import { uninstallArgs } from "./uninstall.mjs";
|
|
21
21
|
import { unpublishArgs } from "./unpublish.mjs";
|
package/dist/clis/args/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-DG_SF8fN.mjs";
|
|
2
2
|
import { accessTokenArgs } from "./access-token.mjs";
|
|
3
3
|
import { connectArgs, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs } from "./connect.mjs";
|
|
4
|
-
import { t as generateArgs } from "./generate-
|
|
5
|
-
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-
|
|
4
|
+
import { t as generateArgs } from "./generate-DoDfK_Wi.mjs";
|
|
5
|
+
import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-DJCRTkC9.mjs";
|
|
6
6
|
import { hostCheckArgs, hostExportArgs } from "./host.mjs";
|
|
7
7
|
import { inspectArgs } from "./inspect.mjs";
|
|
8
8
|
import { installArgs } from "./install.mjs";
|
|
@@ -16,7 +16,7 @@ import { publishArgs } from "./publish.mjs";
|
|
|
16
16
|
import { DEFAULT_REGISTRY_LOGIN_EXPIRY, registryLoginArgs } from "./registry.mjs";
|
|
17
17
|
import { switchboardArgs } from "./switchboard.mjs";
|
|
18
18
|
import { uninstallArgs } from "./uninstall.mjs";
|
|
19
|
-
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-
|
|
19
|
+
import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-BqjDopAP.mjs";
|
|
20
20
|
import { initArgs } from "./init.mjs";
|
|
21
21
|
import { serviceArgs } from "./service.mjs";
|
|
22
22
|
import { unpublishArgs } from "./unpublish.mjs";
|
package/dist/clis/args/init.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as packageManagerArgs, o as debugArgs } from "./common-
|
|
1
|
+
import { _ as packageManagerArgs, o as debugArgs } from "./common-DG_SF8fN.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 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as packageManagerArgs, o as debugArgs } from "./common-
|
|
1
|
+
import { _ as packageManagerArgs, o as debugArgs } from "./common-DG_SF8fN.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 = {
|
package/dist/clis/args/list.mjs
CHANGED
package/dist/clis/args/login.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as DEFAULT_RENOWN_URL, o as debugArgs } from "./common-
|
|
1
|
+
import { E as DEFAULT_RENOWN_URL, o as debugArgs } from "./common-DG_SF8fN.mjs";
|
|
2
2
|
import { boolean, flag, number, option, optional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/login.ts
|
|
4
4
|
const loginArgs = {
|
package/dist/clis/args/mcp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-DG_SF8fN.mjs";
|
|
2
2
|
import { boolean, flag, option, optional, positional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/migrate.ts
|
|
4
4
|
const versionDescription = "The version to migrate to. Accepts a valid semver version or `staging`, `dev`, `latest`. Defaults to the release channel of the project's installed Powerhouse packages.";
|
|
@@ -7,6 +7,14 @@ export declare const modelCheckArgs: {
|
|
|
7
7
|
debug: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
8
8
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean | undefined>>;
|
|
9
9
|
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
10
|
+
/** @experimental Runs the release profile instead of the edit profile. */
|
|
11
|
+
release: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
12
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean>>;
|
|
13
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
14
|
+
/** @experimental Verifies the release approval without loading the project. */
|
|
15
|
+
prepack: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
16
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean>>;
|
|
17
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
10
18
|
json: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
11
19
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean>>;
|
|
12
20
|
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.mts","names":[],"sources":["../../../clis/args/model.ts"],"mappings":";;;;;qBAea
|
|
1
|
+
{"version":3,"file":"model.d.mts","names":[],"sources":["../../../clis/args/model.ts"],"mappings":";;;;;qBAea;;;;;;;;;;;;;;;;;;;;qBA2BA"}
|
package/dist/clis/args/model.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
1
|
+
import { o as debugArgs } from "./common-DG_SF8fN.mjs";
|
|
2
2
|
import { boolean, flag, optional, positional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/model.ts
|
|
4
4
|
const json = flag({
|
|
@@ -13,6 +13,22 @@ const json = flag({
|
|
|
13
13
|
* projects are introduced.
|
|
14
14
|
*/
|
|
15
15
|
const modelCheckArgs = {
|
|
16
|
+
/** @experimental Runs the release profile instead of the edit profile. */
|
|
17
|
+
release: flag({
|
|
18
|
+
type: boolean,
|
|
19
|
+
long: "release",
|
|
20
|
+
description: "Experimental: check as ph build --release does, with the release checks and host validation over every model. Writes nothing",
|
|
21
|
+
defaultValue: () => false,
|
|
22
|
+
defaultValueIsSerializable: true
|
|
23
|
+
}),
|
|
24
|
+
/** @experimental Verifies the release approval without loading the project. */
|
|
25
|
+
prepack: flag({
|
|
26
|
+
type: boolean,
|
|
27
|
+
long: "prepack",
|
|
28
|
+
description: "Experimental: without loading the package, exit 0 when the release approval ph build --release wrote matches it, 1 when it does not, and 2 when it cannot be checked. For a \"prepack\" script, so npm publish stops too",
|
|
29
|
+
defaultValue: () => false,
|
|
30
|
+
defaultValueIsSerializable: true
|
|
31
|
+
}),
|
|
16
32
|
json,
|
|
17
33
|
...debugArgs
|
|
18
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.mjs","names":[],"sources":["../../../clis/args/model.ts"],"sourcesContent":["import { boolean, flag, optional, positional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nconst json = flag({\n type: boolean,\n long: \"json\",\n description: \"Print exactly one JSON report on stdout and nothing else\",\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n});\n\n/**\n * @experimental Arguments of `ph model check`. Experimental while code-first\n * projects are introduced.\n */\nexport const modelCheckArgs = {\n json,\n ...debugArgs,\n};\n\n/**\n * @experimental Arguments of `ph model inspect`. Experimental while code-first\n * projects are introduced.\n */\nexport const modelInspectArgs = {\n selector: positional({\n type: optional(string),\n displayName: \"documentType@version\",\n description:\n \"Inspect one model version, such as acme/invoice@1 (default: every model)\",\n }),\n json,\n ...debugArgs,\n};\n"],"mappings":";;;AAGA,MAAM,OAAO,KAAK;CAChB,MAAM;CACN,MAAM;CACN,aAAa;CACb,oBAAoB;CACpB,4BAA4B;AAC9B,CAAC;;;;;AAMD,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"model.mjs","names":[],"sources":["../../../clis/args/model.ts"],"sourcesContent":["import { boolean, flag, optional, positional, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nconst json = flag({\n type: boolean,\n long: \"json\",\n description: \"Print exactly one JSON report on stdout and nothing else\",\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n});\n\n/**\n * @experimental Arguments of `ph model check`. Experimental while code-first\n * projects are introduced.\n */\nexport const modelCheckArgs = {\n /** @experimental Runs the release profile instead of the edit profile. */\n release: flag({\n type: boolean,\n long: \"release\",\n description:\n \"Experimental: check as ph build --release does, with the release checks and host validation over every model. Writes nothing\",\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n }),\n /** @experimental Verifies the release approval without loading the project. */\n prepack: flag({\n type: boolean,\n long: \"prepack\",\n description:\n 'Experimental: without loading the package, exit 0 when the release approval ph build --release wrote matches it, 1 when it does not, and 2 when it cannot be checked. For a \"prepack\" script, so npm publish stops too',\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n }),\n json,\n ...debugArgs,\n};\n\n/**\n * @experimental Arguments of `ph model inspect`. Experimental while code-first\n * projects are introduced.\n */\nexport const modelInspectArgs = {\n selector: positional({\n type: optional(string),\n displayName: \"documentType@version\",\n description:\n \"Inspect one model version, such as acme/invoice@1 (default: every model)\",\n }),\n json,\n ...debugArgs,\n};\n"],"mappings":";;;AAGA,MAAM,OAAO,KAAK;CAChB,MAAM;CACN,MAAM;CACN,aAAa;CACb,oBAAoB;CACpB,4BAA4B;AAC9B,CAAC;;;;;AAMD,MAAa,iBAAiB;;CAE5B,SAAS,KAAK;EACZ,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;;CAED,SAAS,KAAK;EACZ,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD;CACA,GAAG;AACL;;;;;AAMA,MAAa,mBAAmB;CAC9B,UAAU,WAAW;EACnB,MAAM,SAAS,MAAM;EACrB,aAAa;EACb,aACE;CACJ,CAAC;CACD;CACA,GAAG;AACL"}
|
|
@@ -6,6 +6,10 @@ export declare const publishArgs: {
|
|
|
6
6
|
registry: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
7
7
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<string | undefined>>;
|
|
8
8
|
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
9
|
+
/** @experimental Refuses to publish a package without a current release approval. */
|
|
10
|
+
requireApproval: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
11
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<boolean>>;
|
|
12
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/argparser.js").Register & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Descriptive>;
|
|
9
13
|
forwardedArgs: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
10
14
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<string[]>>;
|
|
11
15
|
} & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as debugArgs } from "./common-
|
|
2
|
-
import { option, optional, rest, string } from "cmd-ts";
|
|
1
|
+
import { o as debugArgs } from "./common-DG_SF8fN.mjs";
|
|
2
|
+
import { boolean, flag, option, optional, rest, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/publish.ts
|
|
4
4
|
const publishArgs = {
|
|
5
5
|
registry: option({
|
|
@@ -7,6 +7,14 @@ const publishArgs = {
|
|
|
7
7
|
long: "registry",
|
|
8
8
|
description: "Registry URL to publish to (overrides config and environment)"
|
|
9
9
|
}),
|
|
10
|
+
/** @experimental Refuses to publish a package without a current release approval. */
|
|
11
|
+
requireApproval: flag({
|
|
12
|
+
type: boolean,
|
|
13
|
+
long: "require-approval",
|
|
14
|
+
description: "Experimental: publish only when the release approval that ph build --release wrote matches this package; otherwise exit 1 before contacting the registry. Forwards only --tag, --access, --otp, --dry-run, --provenance, --json and --loglevel to npm, refuses npm configuration in the environment that selects another package (npm_config_workspace, npm_config_workspaces, npm_config_include_workspace_root), and publishes with --ignore-scripts so lifecycle scripts cannot change the files it checked",
|
|
15
|
+
defaultValue: () => false,
|
|
16
|
+
defaultValueIsSerializable: true
|
|
17
|
+
}),
|
|
10
18
|
...debugArgs,
|
|
11
19
|
forwardedArgs: rest({
|
|
12
20
|
displayName: "npm-args",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.mjs","names":[],"sources":["../../../clis/args/publish.ts"],"sourcesContent":["import { option, optional, rest, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const publishArgs = {\n registry: option({\n type: optional(string),\n long: \"registry\",\n description:\n \"Registry URL to publish to (overrides config and environment)\",\n }),\n ...debugArgs,\n forwardedArgs: rest({\n displayName: \"npm-args\",\n description: \"Extra arguments forwarded to npm publish (e.g. --tag dev)\",\n }),\n};\n"],"mappings":";;;AAGA,MAAa,cAAc;CACzB,UAAU,OAAO;EACf,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,GAAG;CACH,eAAe,KAAK;EAClB,aAAa;EACb,aAAa;CACf,CAAC;AACH"}
|
|
1
|
+
{"version":3,"file":"publish.mjs","names":[],"sources":["../../../clis/args/publish.ts"],"sourcesContent":["import { boolean, flag, option, optional, rest, string } from \"cmd-ts\";\nimport { debugArgs } from \"./common.js\";\n\nexport const publishArgs = {\n registry: option({\n type: optional(string),\n long: \"registry\",\n description:\n \"Registry URL to publish to (overrides config and environment)\",\n }),\n /** @experimental Refuses to publish a package without a current release approval. */\n requireApproval: flag({\n type: boolean,\n long: \"require-approval\",\n description:\n \"Experimental: publish only when the release approval that ph build --release wrote matches this package; otherwise exit 1 before contacting the registry. Forwards only --tag, --access, --otp, --dry-run, --provenance, --json and --loglevel to npm, refuses npm configuration in the environment that selects another package (npm_config_workspace, npm_config_workspaces, npm_config_include_workspace_root), and publishes with --ignore-scripts so lifecycle scripts cannot change the files it checked\",\n defaultValue: () => false as const,\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n forwardedArgs: rest({\n displayName: \"npm-args\",\n description: \"Extra arguments forwarded to npm publish (e.g. --tag dev)\",\n }),\n};\n"],"mappings":";;;AAGA,MAAa,cAAc;CACzB,UAAU,OAAO;EACf,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;;CAED,iBAAiB,KAAK;EACpB,MAAM;EACN,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,GAAG;CACH,eAAe,KAAK;EAClB,aAAa;EACb,aAAa;CACf,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./common-
|
|
1
|
+
import "./common-DmerPWXo.mjs";
|
|
2
2
|
import "kysely";
|
|
3
3
|
import { Agent } from "package-manager-detector";
|
|
4
4
|
import "cmd-ts/dist/cjs/argparser.js";
|
|
@@ -24,4 +24,4 @@ declare const serviceArgs: {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ServiceAction as n, serviceArgs as t };
|
|
26
26
|
export {};
|
|
27
|
-
//# sourceMappingURL=service-
|
|
27
|
+
//# sourceMappingURL=service-CLCvH3kf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-
|
|
1
|
+
{"version":3,"file":"service-CLCvH3kf.d.mts","names":[],"sources":["../../../clis/constants.ts","../../../clis/types.ts","../../../clis/args/service.ts"],"mappings":";;;;;;;;cAKa;;;KCMD,wBAAwB;KACxB,gBAAgB;;;cCNf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DEFAULT_SWITCHBOARD_PORT, k as DEFAULT_VETRA_DRIVE_ID, v as packages, x as vetraSwitchboardArgs } from "./common-
|
|
1
|
+
import { D as DEFAULT_SWITCHBOARD_PORT, k as DEFAULT_VETRA_DRIVE_ID, v as packages, x as vetraSwitchboardArgs } from "./common-DG_SF8fN.mjs";
|
|
2
2
|
import { boolean, flag, number, option, optional, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/switchboard.ts
|
|
4
4
|
const switchboardArgs = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as packageManagerArgs, o as debugArgs } from "./common-
|
|
1
|
+
import { _ as packageManagerArgs, o as debugArgs } from "./common-DG_SF8fN.mjs";
|
|
2
2
|
import { restPositionals, string } from "cmd-ts";
|
|
3
3
|
//#region clis/args/uninstall.ts
|
|
4
4
|
const uninstallArgs = {
|