@powerhousedao/shared 6.2.3-dev.78 → 6.2.3-dev.79

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.
Files changed (152) hide show
  1. package/dist/action-id-DON1WCeY.d.ts +19 -0
  2. package/dist/action-id-DON1WCeY.d.ts.map +1 -0
  3. package/dist/clis/args/{access-token-3Hqv_U8I.mjs → access-token-D28cJ6Ov.mjs} +2 -2
  4. package/dist/clis/args/{access-token-3Hqv_U8I.mjs.map → access-token-D28cJ6Ov.mjs.map} +1 -1
  5. package/dist/clis/args/access-token.mjs +1 -1
  6. package/dist/clis/args/{common-BXabdhiO.mjs → common-CHSGBvxM.mjs} +29 -5
  7. package/dist/clis/args/common-CHSGBvxM.mjs.map +1 -0
  8. package/dist/clis/args/common.mjs +1 -1
  9. package/dist/clis/args/{connect-Bad05YS-.mjs → connect-CmErgUlp.mjs} +2 -2
  10. package/dist/clis/args/{connect-Bad05YS-.mjs.map → connect-CmErgUlp.mjs.map} +1 -1
  11. package/dist/clis/args/connect.mjs +1 -1
  12. package/dist/clis/args/{generate-BOItUNvP.mjs → generate-DLPqkD9L.mjs} +2 -2
  13. package/dist/clis/args/{generate-BOItUNvP.mjs.map → generate-DLPqkD9L.mjs.map} +1 -1
  14. package/dist/clis/args/generate.mjs +1 -1
  15. package/dist/clis/args/{help-BlSxVnS3.mjs → help-B16JXhxy.mjs} +23 -15
  16. package/dist/clis/args/help-B16JXhxy.mjs.map +1 -0
  17. package/dist/clis/args/{help-BeKM3Nce.d.mts → help-CmnOv3z3.d.mts} +14 -2
  18. package/dist/clis/args/help-CmnOv3z3.d.mts.map +1 -0
  19. package/dist/clis/args/help.d.mts +1 -1
  20. package/dist/clis/args/help.mjs +1 -1
  21. package/dist/clis/args/index.d.mts +4 -3
  22. package/dist/clis/args/index.mjs +20 -19
  23. package/dist/clis/args/{init-xlCNZ8Oe.mjs → init-DYFFSkxI.mjs} +2 -2
  24. package/dist/clis/args/{init-xlCNZ8Oe.mjs.map → init-DYFFSkxI.mjs.map} +1 -1
  25. package/dist/clis/args/init.mjs +1 -1
  26. package/dist/clis/args/{inspect-UNQgtuR0.mjs → inspect-BniSlWn2.mjs} +2 -2
  27. package/dist/clis/args/{inspect-UNQgtuR0.mjs.map → inspect-BniSlWn2.mjs.map} +1 -1
  28. package/dist/clis/args/inspect.mjs +1 -1
  29. package/dist/clis/args/{install-F-27kF6m.mjs → install-sBi-hWv6.mjs} +2 -2
  30. package/dist/clis/args/{install-F-27kF6m.mjs.map → install-sBi-hWv6.mjs.map} +1 -1
  31. package/dist/clis/args/install.mjs +1 -1
  32. package/dist/clis/args/{list-Bkfn8Yuo.mjs → list-DcBHE_2X.mjs} +2 -2
  33. package/dist/clis/args/{list-Bkfn8Yuo.mjs.map → list-DcBHE_2X.mjs.map} +1 -1
  34. package/dist/clis/args/list.mjs +1 -1
  35. package/dist/clis/args/{login-CIFkQExi.mjs → login-C8lWLGqU.mjs} +2 -2
  36. package/dist/clis/args/{login-CIFkQExi.mjs.map → login-C8lWLGqU.mjs.map} +1 -1
  37. package/dist/clis/args/login.mjs +1 -1
  38. package/dist/clis/args/mcp-9ETsMr71.mjs +22 -0
  39. package/dist/clis/args/mcp-9ETsMr71.mjs.map +1 -0
  40. package/dist/clis/args/mcp-Cl5PPlkl.d.mts +16 -0
  41. package/dist/clis/args/mcp-Cl5PPlkl.d.mts.map +1 -0
  42. package/dist/clis/args/mcp.d.mts +3 -0
  43. package/dist/clis/args/mcp.mjs +2 -0
  44. package/dist/clis/args/{migrate-hHLa-0_q.mjs → migrate-39GBHGb-.mjs} +2 -2
  45. package/dist/clis/args/{migrate-hHLa-0_q.mjs.map → migrate-39GBHGb-.mjs.map} +1 -1
  46. package/dist/clis/args/migrate.mjs +1 -1
  47. package/dist/clis/args/{publish-DHqlGWmL.mjs → publish-Rtu9dx7q.mjs} +2 -2
  48. package/dist/clis/args/{publish-DHqlGWmL.mjs.map → publish-Rtu9dx7q.mjs.map} +1 -1
  49. package/dist/clis/args/publish.mjs +1 -1
  50. package/dist/clis/args/{registry-DIwES3l2.mjs → registry-Pt5yN9xS.mjs} +2 -2
  51. package/dist/clis/args/{registry-DIwES3l2.mjs.map → registry-Pt5yN9xS.mjs.map} +1 -1
  52. package/dist/clis/args/registry.mjs +1 -1
  53. package/dist/clis/args/{service-Cpjlyeu5.mjs → service-B3FHLTcp.mjs} +2 -2
  54. package/dist/clis/args/{service-Cpjlyeu5.mjs.map → service-B3FHLTcp.mjs.map} +1 -1
  55. package/dist/clis/args/service.mjs +1 -1
  56. package/dist/clis/args/{switchboard-CCaAtU56.mjs → switchboard-BXLSuEoC.mjs} +3 -3
  57. package/dist/clis/args/switchboard-BXLSuEoC.mjs.map +1 -0
  58. package/dist/clis/args/switchboard.mjs +1 -1
  59. package/dist/clis/args/{uninstall-3U0B8g5c.mjs → uninstall-ChFF846g.mjs} +2 -2
  60. package/dist/clis/args/{uninstall-3U0B8g5c.mjs.map → uninstall-ChFF846g.mjs.map} +1 -1
  61. package/dist/clis/args/uninstall.mjs +1 -1
  62. package/dist/clis/args/{unpublish-s9zUh6Gw.mjs → unpublish-MW7IKVH6.mjs} +2 -2
  63. package/dist/clis/args/{unpublish-s9zUh6Gw.mjs.map → unpublish-MW7IKVH6.mjs.map} +1 -1
  64. package/dist/clis/args/unpublish.mjs +1 -1
  65. package/dist/clis/args/{vetra-DkDaWFPi.d.mts → vetra-CviuwTcH.d.mts} +4 -1
  66. package/dist/clis/args/vetra-CviuwTcH.d.mts.map +1 -0
  67. package/dist/clis/args/{vetra-BCOpgM59.mjs → vetra-F4zGu_hG.mjs} +11 -2
  68. package/dist/clis/args/vetra-F4zGu_hG.mjs.map +1 -0
  69. package/dist/clis/args/vetra.d.mts +1 -1
  70. package/dist/clis/args/vetra.mjs +1 -1
  71. package/dist/clis/build-pieces.d.mts +1 -1
  72. package/dist/clis/command-names.d.mts +1 -1
  73. package/dist/clis/command-names.d.mts.map +1 -1
  74. package/dist/clis/command-names.mjs +1 -0
  75. package/dist/clis/command-names.mjs.map +1 -1
  76. package/dist/clis/constants.d.mts +2 -2
  77. package/dist/clis/constants.mjs +32 -9
  78. package/dist/clis/constants.mjs.map +1 -1
  79. package/dist/clis/index.d.mts +60 -7
  80. package/dist/clis/index.d.mts.map +1 -1
  81. package/dist/clis/index.mjs +79 -10
  82. package/dist/clis/index.mjs.map +1 -1
  83. package/dist/clis/project-env.d.mts +3 -0
  84. package/dist/clis/project-env.d.mts.map +1 -1
  85. package/dist/clis/project-env.mjs +9 -1
  86. package/dist/clis/project-env.mjs.map +1 -1
  87. package/dist/clis/{types-BNdhWTBs.d.mts → types-BKM2kIEW.d.mts} +37 -10
  88. package/dist/clis/types-BKM2kIEW.d.mts.map +1 -0
  89. package/dist/{config-loader-BWt0c0eU.js → config-loader-B7SqNz8z.js} +3 -2
  90. package/dist/config-loader-B7SqNz8z.js.map +1 -0
  91. package/dist/connect/config-loader.d.ts +1 -1
  92. package/dist/connect/config-loader.js +1 -1
  93. package/dist/connect/connect-config-schema.d.ts +1 -1
  94. package/dist/connect/connect-config-schema.js +4 -0
  95. package/dist/connect/connect-config-schema.js.map +1 -1
  96. package/dist/connect/index.d.ts +8 -2
  97. package/dist/connect/index.d.ts.map +1 -1
  98. package/dist/connect/index.js +13 -2
  99. package/dist/connect/index.js.map +1 -1
  100. package/dist/{connect-config-schema-1-O1CQ4v.d.ts → connect-config-schema-hSe_84zI.d.ts} +6 -1
  101. package/dist/connect-config-schema-hSe_84zI.d.ts.map +1 -0
  102. package/dist/document-drive/index.d.ts +3 -3
  103. package/dist/document-drive/index.js +1 -1
  104. package/dist/document-model/action-id.d.ts +3 -0
  105. package/dist/document-model/action-id.js +59 -0
  106. package/dist/document-model/action-id.js.map +1 -0
  107. package/dist/document-model/dispatch.d.ts +25 -0
  108. package/dist/document-model/dispatch.d.ts.map +1 -0
  109. package/dist/document-model/dispatch.js +0 -0
  110. package/dist/document-model/errors.d.ts +1 -1
  111. package/dist/document-model/index.d.ts +4 -2
  112. package/dist/document-model/index.js +4 -5047
  113. package/dist/document-model/utils.d.ts +2 -1
  114. package/dist/document-model/utils.js +2 -1
  115. package/dist/document-model-D8Z3NUYl.js +5202 -0
  116. package/dist/document-model-D8Z3NUYl.js.map +1 -0
  117. package/dist/{index-69rWzMmt.d.ts → index-BzueQ7B3.d.ts} +2 -2
  118. package/dist/{index-69rWzMmt.d.ts.map → index-BzueQ7B3.d.ts.map} +1 -1
  119. package/dist/index.d.ts +4 -4
  120. package/dist/processors/index.d.ts +2 -2
  121. package/dist/processors/index.js +121 -77
  122. package/dist/processors/index.js.map +1 -1
  123. package/dist/processors/testing.d.ts +22 -0
  124. package/dist/processors/testing.d.ts.map +1 -0
  125. package/dist/processors/testing.js +77 -0
  126. package/dist/processors/testing.js.map +1 -0
  127. package/dist/{purge-v06m_oGz.js → purge-YMJM0Vl7.js} +25 -4
  128. package/dist/{purge-v06m_oGz.js.map → purge-YMJM0Vl7.js.map} +1 -1
  129. package/dist/registry/index.d.ts +2 -2
  130. package/dist/registry/index.js +28 -4
  131. package/dist/registry/index.js.map +1 -1
  132. package/dist/registry/manifest-slim.d.ts +2 -2
  133. package/dist/{types-NkUDXG7c.d.ts → types-B1HqOXqL.d.ts} +178 -57
  134. package/dist/types-B1HqOXqL.d.ts.map +1 -0
  135. package/dist/{types-B5-IgDft.d.ts → types-BoYyqmJ2.d.ts} +2 -2
  136. package/dist/{types-B5-IgDft.d.ts.map → types-BoYyqmJ2.d.ts.map} +1 -1
  137. package/dist/utils-BrKxCmKx.d.ts.map +1 -1
  138. package/dist/utils-CSF716ux.js.map +1 -1
  139. package/dist/utils-MrLmLEVr.js +78 -0
  140. package/dist/utils-MrLmLEVr.js.map +1 -0
  141. package/package.json +7 -1
  142. package/dist/clis/args/common-BXabdhiO.mjs.map +0 -1
  143. package/dist/clis/args/help-BeKM3Nce.d.mts.map +0 -1
  144. package/dist/clis/args/help-BlSxVnS3.mjs.map +0 -1
  145. package/dist/clis/args/switchboard-CCaAtU56.mjs.map +0 -1
  146. package/dist/clis/args/vetra-BCOpgM59.mjs.map +0 -1
  147. package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +0 -1
  148. package/dist/clis/types-BNdhWTBs.d.mts.map +0 -1
  149. package/dist/config-loader-BWt0c0eU.js.map +0 -1
  150. package/dist/connect-config-schema-1-O1CQ4v.d.ts.map +0 -1
  151. package/dist/document-model/index.js.map +0 -1
  152. package/dist/types-NkUDXG7c.d.ts.map +0 -1
@@ -0,0 +1,19 @@
1
+ //#region document-model/action-id.d.ts
2
+ type ActionIdGeneratorOptions = {
3
+ now?: () => number;
4
+ random?: (bytes: Uint8Array<ArrayBuffer>) => void;
5
+ };
6
+ /** UUIDv7 (RFC 9562 §6.2 method 1), strictly increasing per generator. */
7
+ declare function createActionIdGenerator(options?: ActionIdGeneratorOptions): () => string;
8
+ /** Ids from one process sort in creation order, so same-ms actions keep it. */
9
+ declare const generateActionId: () => string;
10
+ /**
11
+ * Strictly increasing per process, as the auth scope's admission rule requires
12
+ * of one client's auth actions. A clock that steps back is followed rather than
13
+ * outrun.
14
+ */
15
+ declare function nextAuthTimestamp(): string;
16
+ //#endregion
17
+ export { nextAuthTimestamp as i, createActionIdGenerator as n, generateActionId as r, ActionIdGeneratorOptions as t };
18
+ export {};
19
+ //# sourceMappingURL=action-id-DON1WCeY.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-id-DON1WCeY.d.ts","names":[],"sources":["../document-model/action-id.ts"],"mappings":";KAAY;EACV;EACA,UAAU,OAAO,WAAW;;;iBASd,wBACd,UAAS;;cA8CE;;;;;;iBAUG"}
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-BXabdhiO.mjs";
1
+ import { o as debugArgs } from "./common-CHSGBvxM.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-3Hqv_U8I.mjs.map
22
+ //# sourceMappingURL=access-token-D28cJ6Ov.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"access-token-3Hqv_U8I.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,MAAM;EACrB,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,UAAU,OAAO;EACf,MAAM;EACN,MAAM,SAAS,MAAM;EACrB,aAAa;CACf,CAAC;CACD,GAAG;AACL"}
1
+ {"version":3,"file":"access-token-D28cJ6Ov.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,MAAM;EACrB,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,UAAU,OAAO;EACf,MAAM;EACN,MAAM,SAAS,MAAM;EACrB,aAAa;CACf,CAAC;CACD,GAAG;AACL"}
@@ -1,2 +1,2 @@
1
- import { t as accessTokenArgs } from "./access-token-3Hqv_U8I.mjs";
1
+ import { t as accessTokenArgs } from "./access-token-D28cJ6Ov.mjs";
2
2
  export { accessTokenArgs };
@@ -28,20 +28,44 @@ const DEFAULT_SWITCHBOARD_PORT = 4001;
28
28
  const DEFAULT_VETRA_DRIVE_ID = "vetra";
29
29
  const HOME_DIR = homedir();
30
30
  join(HOME_DIR, ".ph");
31
- const VERSIONED_PEER_DEPENDENCIES = ["document-model", "@powerhousedao/reactor-browser"];
31
+ const VERSIONED_PEER_DEPENDENCIES = [
32
+ "document-model",
33
+ "@powerhousedao/reactor-browser",
34
+ "@powerhousedao/connect-core"
35
+ ];
36
+ const REACTOR_API_PACKAGE = "@powerhousedao/reactor-api";
37
+ const ANALYTICS_ENGINE_CORE_PACKAGE = "@powerhousedao/analytics-engine-core";
38
+ const PIECES_FRAMEWORK_PACKAGE = "@powerhousedao/pieces-framework";
32
39
  const FEATURE_DEPENDENCIES = {
33
40
  analyticsProcessor: {
34
- peerVersioned: ["@powerhousedao/analytics-engine-core"],
41
+ peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],
42
+ peerExternal: {},
43
+ devVersioned: []
44
+ },
45
+ relationalDbProcessor: {
46
+ peerVersioned: [],
47
+ peerExternal: { ["kysely"]: {
48
+ peer: "^0.28",
49
+ dev: "0.28.16"
50
+ } },
51
+ devVersioned: []
52
+ },
53
+ subgraph: {
54
+ peerVersioned: [REACTOR_API_PACKAGE],
35
55
  peerExternal: {},
36
56
  devVersioned: []
37
57
  },
38
58
  piece: {
39
59
  peerVersioned: [],
40
60
  peerExternal: {},
41
- devVersioned: ["@powerhousedao/pieces-framework"]
61
+ devVersioned: [PIECES_FRAMEWORK_PACKAGE]
42
62
  }
43
63
  };
44
- [...VERSIONED_PEER_DEPENDENCIES, ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned];
64
+ [
65
+ ...VERSIONED_PEER_DEPENDENCIES,
66
+ ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned,
67
+ ...FEATURE_DEPENDENCIES.subgraph.peerVersioned
68
+ ];
45
69
  const DEFAULT_CONFIG = {
46
70
  documentModelsDir: "./document-models",
47
71
  editorsDir: "./editors",
@@ -300,4 +324,4 @@ const commonServerArgs = {
300
324
  //#endregion
301
325
  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 };
302
326
 
303
- //# sourceMappingURL=common-BXabdhiO.mjs.map
327
+ //# sourceMappingURL=common-CHSGBvxM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-CHSGBvxM.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 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 // 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 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 // 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 ...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;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,yBAAy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CACtC,MAAM;CACN,aAAa;CACb,oBAAoB;CACpB,4BAA4B;AAC9B,CAAC;AAED,MAAa,QAAQ,KAAK;CACxB,MAAM,SAAS,OAAO;CACtB,MAAM;CACN,aACE;AACJ,CAAC;AAED,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;AACL;AAEA,MAAa,mBAAmB;CAC9B,MAAM,OAAO;EACX,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,MAAM,KAAK;EACT,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;CACf,CAAC;CACD,MAAM,KAAK;EACT,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;CACf,CAAC;CACD,YAAY,KAAK;EACf,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;CACf,CAAC;CACD,WAAW,KAAK;EACd,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;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"}
@@ -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-BXabdhiO.mjs";
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-CHSGBvxM.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-BXabdhiO.mjs";
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-CHSGBvxM.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-Bad05YS-.mjs.map
203
+ //# sourceMappingURL=connect-CmErgUlp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect-Bad05YS-.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, without the \"connect\" wrapper, e.g. \\'{\"app\":{\"workflowsEnabled\":true},\"renown\":{\"url\":\"...\"}}\\'. A top-level packageRegistryUrl is also accepted. Validated against the runtime schema (unknown keys fail); deep-merged on top of 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.home.background (the generic plugin\\'s home screen). URL or path to an image, pinned bottom-right; pass an empty string (\"\") to reset to the bundled gradient.',\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, or icon.svg/icon.png for those types; 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,YAAY;EAC5B,IAAI,MAAM,QAAQ,OAAO,QAAQ,QAAQ,IAAI;EAC7C,IAAI,MAAM,SAAS,OAAO,QAAQ,QAAQ,KAAK;EAC/C,OAAO,QAAQ,uBACb,IAAI,MACF,uDAAuD,MAAM,GAC/D,CACF;CACF;CACA,aAAa;AACf;AAEA,MAAa,oBAAoB;CAC/B,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD;CACA,GAAG;CACH,GAAG;AACL;AAkBA,MAAM,6BAA6B;CACjC,MAAM,OAAO;EACX,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,WAAW,OAAO;EAChB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,iBAAiB,OAAO;EACtB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,eAAe,OAAO;EACpB,MAAM,SAAS,MAAM;EAC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W;EACxB,MAAM,SAAS,MAAM;EACrB,aAAa;EACb,aACE;CACJ,CAAC;CACD,iBAAiB,WAAW;EAC1B,MAAM,SAAS,MAAM;EACrB,aAAa;EACb,aACE;CACJ,CAAC;AACH;AAEA,MAAa,mBAAmB;CAC9B,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,GAAG;CACH,GAAG;CACH,aAAa,KAAK;EAChB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;CACJ,CAAC;CACD,SAAS,OAAO;EACd,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,GAAG;AACL;AAEA,MAAa,qBAAqB;CAChC,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,GAAG;CACH,GAAG;AACL;AA6BA,MAAa,oBAAoB;CAC/B,KAAK,OAAO;EACV,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,SAAS,OAAO;EACd,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,GAAG;CACH,GAAG;CACH;CACA;CACA;CACA;AACF;AAEA,MAAa,cAAc;CACzB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACL"}
1
+ {"version":3,"file":"connect-CmErgUlp.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, without the \"connect\" wrapper, e.g. \\'{\"app\":{\"workflowsEnabled\":true},\"renown\":{\"url\":\"...\"}}\\'. A top-level packageRegistryUrl is also accepted. Validated against the runtime schema (unknown keys fail); deep-merged on top of 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.home.background (the generic plugin\\'s home screen). URL or path to an image, pinned bottom-right; pass an empty string (\"\") to reset to the bundled gradient.',\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, or icon.svg/icon.png for those types; 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,YAAY;EAC5B,IAAI,MAAM,QAAQ,OAAO,QAAQ,QAAQ,IAAI;EAC7C,IAAI,MAAM,SAAS,OAAO,QAAQ,QAAQ,KAAK;EAC/C,OAAO,QAAQ,uBACb,IAAI,MACF,uDAAuD,MAAM,GAC/D,CACF;CACF;CACA,aAAa;AACf;AAEA,MAAa,oBAAoB;CAC/B,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD;CACA,GAAG;CACH,GAAG;AACL;AAkBA,MAAM,6BAA6B;CACjC,MAAM,OAAO;EACX,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,WAAW,OAAO;EAChB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,iBAAiB,OAAO;EACtB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,eAAe,OAAO;EACpB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD;CACA;CACA,eAAe,OAAO;EACpB,MAAM,SAAS,UAAU;EACzB,MAAM;EACN,aACE;CACJ,CAAC;CACD,kBAAkB,OAA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CAAC;AACH;AAEA,MAAa,mBAAmB;CAC9B,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,GAAG;CACH,GAAG;CACH,aAAa,KAAK;EAChB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aACE;CACJ,CAAC;CACD,SAAS,OAAO;EACd,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,GAAG;AACL;AAEA,MAAa,qBAAqB;CAChC,MAAM,OAAO;EACX,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,QAAQ,OAAO;EACb,MAAM;EACN,MAAM;EACN,aAAa;EACb,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,GAAG;CACH,GAAG;AACL;AA6BA,MAAa,oBAAoB;CAC/B,KAAK,OAAO;EACV,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,SAAS,OAAO;EACd,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,GAAG;CACH,GAAG;CACH;CACA;CACA;CACA;AACF;AAEA,MAAa,cAAc;CACzB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACL"}
@@ -1,2 +1,2 @@
1
- import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-Bad05YS-.mjs";
1
+ import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-CmErgUlp.mjs";
2
2
  export { connectArgs, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs };
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-BXabdhiO.mjs";
1
+ import { o as debugArgs } from "./common-CHSGBvxM.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-BOItUNvP.mjs.map
191
+ //# sourceMappingURL=generate-DLPqkD9L.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-BOItUNvP.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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S,KAAK;EACZ,MAAM,SAAS,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
+ {"version":3,"file":"generate-DLPqkD9L.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,SAAS,MAAM;EACrB,aAAa;EACb,aAAa;CACf,CAAC;CACD,yBAAyB,OAAO;EAC9B,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,YAAY,OAAO;EACjB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,UAAU,OAAO;EACf,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,eAAe,OAAO;EACpB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,cAAc,OAAO;EACnB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,eAAe,OAAO;EACpB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,SAAS,OAAO;EACd,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,OAAO,OAAO;EACZ,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,YAAY,OAAO;EACjB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aACE;CACJ,CAAC;CACD,eAAe,OAAO;EACpB,MAAM,SAAS,MAAM;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,eAAe,OAAO;EACpB,MAAM,MAAM,CAAC,gBAAgB,WAAW,CAAU;EAClD,MAAM;EACN,aACE;EACF,oBAAoB;EACpB,4BAA4B;CAC9B,CAAC;CACD,eAAe,YAAY;EACzB,MAAM;EACN,MAAM,EA5FR,KAAK,eAAe;GAClB,IAAI,cAAc,WAAW,GAC3B,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M;EACrB,MAAM;EACN,aAAa;CACf,CAAC;CACD,oBAAoB,KAAK;EACvB,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,aAAa;CACf,CAAC;CACD,OAAO,KAAK;EACV,MAAM,SAAS,OAAO;EACtB,MAAM;EACN,OAAO;EACP,aAAa;CACf,CAAC;CACD,SAAS,KAAK;EACZ,MAAM,SAAS,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-BOItUNvP.mjs";
1
+ import { t as generateArgs } from "./generate-DLPqkD9L.mjs";
2
2
  export { generateArgs };
@@ -1,19 +1,20 @@
1
- import { o as debugArgs } from "./common-BXabdhiO.mjs";
2
- import { t as accessTokenArgs } from "./access-token-3Hqv_U8I.mjs";
3
- import { t as connectArgs } from "./connect-Bad05YS-.mjs";
4
- import { t as generateArgs } from "./generate-BOItUNvP.mjs";
1
+ import { o as debugArgs } from "./common-CHSGBvxM.mjs";
2
+ import { t as accessTokenArgs } from "./access-token-D28cJ6Ov.mjs";
3
+ import { t as connectArgs } from "./connect-CmErgUlp.mjs";
4
+ import { t as generateArgs } from "./generate-DLPqkD9L.mjs";
5
5
  import { t as hostCheckArgs } from "./host-BRXA3WP5.mjs";
6
- import { t as inspectArgs } from "./inspect-UNQgtuR0.mjs";
7
- import { t as installArgs } from "./install-F-27kF6m.mjs";
8
- import { t as listArgs } from "./list-Bkfn8Yuo.mjs";
9
- import { t as loginArgs } from "./login-CIFkQExi.mjs";
10
- import { t as migrateArgs } from "./migrate-hHLa-0_q.mjs";
11
- import { t as publishArgs } from "./publish-DHqlGWmL.mjs";
12
- import { n as registryLoginArgs } from "./registry-DIwES3l2.mjs";
6
+ import { t as inspectArgs } from "./inspect-BniSlWn2.mjs";
7
+ import { t as installArgs } from "./install-sBi-hWv6.mjs";
8
+ import { t as listArgs } from "./list-DcBHE_2X.mjs";
9
+ import { t as loginArgs } from "./login-C8lWLGqU.mjs";
10
+ import { t as mcpArgs } from "./mcp-9ETsMr71.mjs";
11
+ import { t as migrateArgs } from "./migrate-39GBHGb-.mjs";
12
+ import { t as publishArgs } from "./publish-Rtu9dx7q.mjs";
13
+ import { n as registryLoginArgs } from "./registry-Pt5yN9xS.mjs";
13
14
  import { t as runArgs } from "./run-l_LiMplO.mjs";
14
- import { t as switchboardArgs } from "./switchboard-CCaAtU56.mjs";
15
- import { t as uninstallArgs } from "./uninstall-3U0B8g5c.mjs";
16
- import { r as vetraArgs } from "./vetra-BCOpgM59.mjs";
15
+ import { t as switchboardArgs } from "./switchboard-BXLSuEoC.mjs";
16
+ import { t as uninstallArgs } from "./uninstall-ChFF846g.mjs";
17
+ import { r as vetraArgs } from "./vetra-F4zGu_hG.mjs";
17
18
  import { command } from "cmd-ts";
18
19
  //#region clis/feature-flags.ts
19
20
  /**
@@ -48,6 +49,7 @@ const phCliCommandNames = [
48
49
  "registry-login",
49
50
  "inspect",
50
51
  "is",
52
+ "mcp",
51
53
  "migrate",
52
54
  "switchboard",
53
55
  "reactor",
@@ -140,6 +142,12 @@ const allPhCliHelpCommands = {
140
142
  description: "Inspect a package",
141
143
  handler: () => {}
142
144
  }),
145
+ mcp: helpCommand({
146
+ name: "mcp",
147
+ args: mcpArgs,
148
+ description: "Serve the project's reactor-mcp tools over stdio, starting Vetra on the first tool call",
149
+ handler: () => {}
150
+ }),
143
151
  migrate: helpCommand({
144
152
  name: "migrate",
145
153
  args: migrateArgs,
@@ -184,4 +192,4 @@ const phCliHelpCommands = isUniformRunnersEnabled() ? allPhCliHelpCommands : (({
184
192
  //#endregion
185
193
  export { phCliCommandNames as n, phCliHelpCommands as t };
186
194
 
187
- //# sourceMappingURL=help-BlSxVnS3.mjs.map
195
+ //# sourceMappingURL=help-B16JXhxy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help-B16JXhxy.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 \"mcp\",\n \"migrate\",\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 { listArgs } from \"./list.js\";\nimport { loginArgs } from \"./login.js\";\nimport { mcpArgs } from \"./mcp.js\";\nimport { migrateArgs } from \"./migrate.js\";\nimport { publishArgs } from \"./publish.js\";\nimport { registryLoginArgs } from \"./registry.js\";\nimport { runArgs } from \"./run.js\";\nimport { switchboardArgs } from \"./switchboard.js\";\nimport { uninstallArgs } from \"./uninstall.js\";\nimport { vetraArgs } from \"./vetra.js\";\n\n// Thin wrapper around `command()` that preserves the literal types of\n// `name` and `aliases` on the return value.\nfunction helpCommand<\n const N extends string,\n const A extends readonly string[] = readonly [],\n>(\n config: Parameters<typeof command>[0] & { name: N; aliases?: A },\n): ReturnType<typeof command> & { readonly name: N; readonly aliases: A } {\n const aliases = (config.aliases ?? ([] as readonly string[])) as A;\n // Forward the original config (with the normalized aliases) through cmd-ts\n // and re-attach the literal types via a localized cast.\n return Object.assign(command({ ...config, aliases: [...aliases] }), {\n name: config.name,\n aliases,\n }) as ReturnType<typeof command> & {\n readonly name: N;\n readonly aliases: A;\n };\n}\n\nconst allPhCliHelpCommands = {\n run: helpCommand({\n name: \"run\",\n args: runArgs,\n description: \"Run a host from hosts/ with its runner\",\n handler: () => {},\n }),\n 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 migrate: helpCommand({\n name: \"migrate\",\n args: migrateArgs,\n description: \"Run migrations\",\n handler: () => {},\n }),\n switchboard: helpCommand({\n name: \"switchboard\",\n aliases: [\"reactor\"],\n args: switchboardArgs,\n description: \"Starts local Switchboard\",\n handler: () => {},\n }),\n login: helpCommand({\n name: \"login\",\n args: loginArgs,\n description: \"Authenticate with Renown using your Ethereum wallet\",\n handler: () => {},\n }),\n logout: helpCommand({\n name: \"logout\",\n args: loginArgs,\n description: \"Deletes an existing session created with 'ph login'\",\n handler: () => {},\n }),\n install: helpCommand({\n name: \"install\",\n aliases: [\"add\", \"i\"],\n args: installArgs,\n description: \"Install a Powerhouse dependency\",\n handler: () => {},\n }),\n uninstall: helpCommand({\n name: \"uninstall\",\n aliases: [\"remove\"],\n args: uninstallArgs,\n description: \"Uninstall a Powerhouse dependency\",\n handler: () => {},\n }),\n};\n\n// `run` 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;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,YAAY;EACf,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,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,5 +1,5 @@
1
1
  //#region clis/command-names.d.ts
2
- declare const phCliCommandNames: readonly ["run", "host", "generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
2
+ declare const phCliCommandNames: readonly ["run", "host", "generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "mcp", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
3
3
  //#endregion
4
4
  //#region clis/args/help.d.ts
5
5
  declare const allPhCliHelpCommands: {
@@ -135,6 +135,18 @@ declare const allPhCliHelpCommands: {
135
135
  readonly name: "inspect";
136
136
  readonly aliases: ["is"];
137
137
  };
138
+ mcp: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
139
+ parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
140
+ [x: string]: any;
141
+ }>>;
142
+ } & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
143
+ [x: string]: any;
144
+ }, any> & {
145
+ run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<any>>;
146
+ } & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased> & {
147
+ readonly name: "mcp";
148
+ readonly aliases: readonly [];
149
+ };
138
150
  migrate: Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
139
151
  parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
140
152
  [x: string]: any;
@@ -212,4 +224,4 @@ declare const phCliHelpCommands: typeof allPhCliHelpCommands;
212
224
  //#endregion
213
225
  export { phCliCommandNames as n, phCliHelpCommands as t };
214
226
  export {};
215
- //# sourceMappingURL=help-BeKM3Nce.d.mts.map
227
+ //# sourceMappingURL=help-CmnOv3z3.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help-CmnOv3z3.d.mts","names":[],"sources":["../../../clis/command-names.ts","../../../clis/args/help.ts"],"mappings":";cAEa;;;cCuCP;EACJ,KAAG,+CAAA;;;;;;;;;;;;EAMH,MAAI,+CAAA;;;;;;;;;;;;EAOJ,UAAQ,+CAAA;;;;;;;;;;;;EAMR,OAAK,+CAAA;;;;;;;;;;;;EAOL,SAAO,+CAAA;;;;;;;;;;;;EAMP,OAAK,+CAAA;;;;;;;;;;;;EAML,SAAO,+CAAA;;;;;;;;;;;;EAMP,MAAI,+CAAA;;;;;;;;;;;;EAOJ,gBAAc,+CAAA;;;;;;;;;;;;EAMd,kBAAgB,+CAAA;;;;;;;;;;;;EAOhB,SAAO,+CAAA;;;;;;;;;;;;EAOP,KAAG,+CAAA;;;;;;;;;;;;EAOH,SAAO,+CAAA;;;;;;;;;;;;EAMP,aAAW,+CAAA;;;;;;;;;;;;EAOX,OAAK,+CAAA;;;;;;;;;;;;EAML,QAAM,+CAAA;;;;;;;;;;;;EAMN,SAAO,+CAAA;;;;;;;;;;;;EAOP,WAAS,+CAAA;;;;;;;;;;;;;cAaE,0BAID"}
@@ -1,3 +1,3 @@
1
- import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BeKM3Nce.mjs";
1
+ import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-CmnOv3z3.mjs";
2
2
  export { phCliCommandNames, phCliHelpCommands };
3
3
  export {};
@@ -1,2 +1,2 @@
1
- import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BlSxVnS3.mjs";
1
+ import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-B16JXhxy.mjs";
2
2
  export { phCliCommandNames, phCliHelpCommands };
@@ -2,13 +2,14 @@ import { t as accessTokenArgs } from "./access-token-C5sKsH2O.mjs";
2
2
  import { _ as packageManagerArgs, a as connectBasePath, b as renownSwitchboardUrl, c as disableLocalPackages, d as getPackageManagerCommand, f as https, g as logLevel, h as localPackage, i as commonServerArgs, l as drivesPreserveStrategy, m as httpsKeyFile, n as buildArgs, o as debugArgs, p as httpsCertFile, r as commonArgs, s as defaultDrivesUrl, t as AGENTS, u as force, v as packages, x as vetraSwitchboardArgs, y as renownNamespace } from "./common-Bnm859xU.mjs";
3
3
  import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-DjeiqXus.mjs";
4
4
  import { t as generateArgs } from "./generate-BPBBLeUD.mjs";
5
- import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BeKM3Nce.mjs";
5
+ import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-CmnOv3z3.mjs";
6
6
  import { n as hostExportArgs, t as hostCheckArgs } from "./host-BX7KQ0Fp.mjs";
7
7
  import { t as initArgs } from "./init-CTaK80wE.mjs";
8
8
  import { t as inspectArgs } from "./inspect-BjRmtB86.mjs";
9
9
  import { t as installArgs } from "./install-B0tMyUMw.mjs";
10
10
  import { t as listArgs } from "./list-DrbxA7JJ.mjs";
11
11
  import { t as loginArgs } from "./login-CXRJXg71.mjs";
12
+ import { t as mcpArgs } from "./mcp-Cl5PPlkl.mjs";
12
13
  import { t as migrateArgs } from "./migrate-DKG-NVd5.mjs";
13
14
  import { t as publishArgs } from "./publish-CeW4bOrl.mjs";
14
15
  import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-DNH8xuaE.mjs";
@@ -16,6 +17,6 @@ import { n as ServiceAction, t as serviceArgs } from "./service-DiTFThbn.mjs";
16
17
  import { t as switchboardArgs } from "./switchboard-RrNb1fUH.mjs";
17
18
  import { t as uninstallArgs } from "./uninstall-CDx7lwxn.mjs";
18
19
  import { t as unpublishArgs } from "./unpublish-CEDsk6uv.mjs";
19
- import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-DkDaWFPi.mjs";
20
- export { AGENTS, DEFAULT_REGISTRY_LOGIN_EXPIRY, type ServiceAction, accessTokenArgs, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, generateArgs, getPackageManagerCommand, hostCheckArgs, hostExportArgs, 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 };
20
+ import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-CviuwTcH.mjs";
21
+ export { AGENTS, DEFAULT_REGISTRY_LOGIN_EXPIRY, type ServiceAction, accessTokenArgs, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, generateArgs, getPackageManagerCommand, hostCheckArgs, hostExportArgs, https, httpsCertFile, httpsKeyFile, initArgs, inspectArgs, installArgs, listArgs, localPackage, logLevel, loginArgs, mcpArgs, migrateArgs, packageManagerArgs, packages, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, renownSwitchboardUrl, resolveConnectPortDefault, resolveSwitchboardPortDefault, serviceArgs, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs };
21
22
  export {};
@@ -1,20 +1,21 @@
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-BXabdhiO.mjs";
2
- import { t as accessTokenArgs } from "./access-token-3Hqv_U8I.mjs";
3
- import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-Bad05YS-.mjs";
4
- import { t as generateArgs } from "./generate-BOItUNvP.mjs";
5
- import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-BlSxVnS3.mjs";
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-CHSGBvxM.mjs";
2
+ import { t as accessTokenArgs } from "./access-token-D28cJ6Ov.mjs";
3
+ import { a as connectStudioArgs, i as connectPreviewArgs, n as connectBuildArgs, r as connectConfigArgs, t as connectArgs } from "./connect-CmErgUlp.mjs";
4
+ import { t as generateArgs } from "./generate-DLPqkD9L.mjs";
5
+ import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-B16JXhxy.mjs";
6
6
  import { n as hostExportArgs, t as hostCheckArgs } from "./host-BRXA3WP5.mjs";
7
- import { t as inspectArgs } from "./inspect-UNQgtuR0.mjs";
8
- import { t as installArgs } from "./install-F-27kF6m.mjs";
9
- import { t as listArgs } from "./list-Bkfn8Yuo.mjs";
10
- import { t as loginArgs } from "./login-CIFkQExi.mjs";
11
- import { t as migrateArgs } from "./migrate-hHLa-0_q.mjs";
12
- import { t as publishArgs } from "./publish-DHqlGWmL.mjs";
13
- import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-DIwES3l2.mjs";
14
- import { t as switchboardArgs } from "./switchboard-CCaAtU56.mjs";
15
- import { t as uninstallArgs } from "./uninstall-3U0B8g5c.mjs";
16
- import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-BCOpgM59.mjs";
17
- import { t as initArgs } from "./init-xlCNZ8Oe.mjs";
18
- import { t as serviceArgs } from "./service-Cpjlyeu5.mjs";
19
- import { t as unpublishArgs } from "./unpublish-s9zUh6Gw.mjs";
20
- export { AGENTS, DEFAULT_REGISTRY_LOGIN_EXPIRY, accessTokenArgs, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, generateArgs, getPackageManagerCommand, hostCheckArgs, hostExportArgs, 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 };
7
+ import { t as inspectArgs } from "./inspect-BniSlWn2.mjs";
8
+ import { t as installArgs } from "./install-sBi-hWv6.mjs";
9
+ import { t as listArgs } from "./list-DcBHE_2X.mjs";
10
+ import { t as loginArgs } from "./login-C8lWLGqU.mjs";
11
+ import { t as mcpArgs } from "./mcp-9ETsMr71.mjs";
12
+ import { t as migrateArgs } from "./migrate-39GBHGb-.mjs";
13
+ import { t as publishArgs } from "./publish-Rtu9dx7q.mjs";
14
+ import { n as registryLoginArgs, t as DEFAULT_REGISTRY_LOGIN_EXPIRY } from "./registry-Pt5yN9xS.mjs";
15
+ import { t as switchboardArgs } from "./switchboard-BXLSuEoC.mjs";
16
+ import { t as uninstallArgs } from "./uninstall-ChFF846g.mjs";
17
+ import { n as resolveSwitchboardPortDefault, r as vetraArgs, t as resolveConnectPortDefault } from "./vetra-F4zGu_hG.mjs";
18
+ import { t as initArgs } from "./init-DYFFSkxI.mjs";
19
+ import { t as serviceArgs } from "./service-B3FHLTcp.mjs";
20
+ import { t as unpublishArgs } from "./unpublish-MW7IKVH6.mjs";
21
+ export { AGENTS, DEFAULT_REGISTRY_LOGIN_EXPIRY, accessTokenArgs, buildArgs, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, generateArgs, getPackageManagerCommand, hostCheckArgs, hostExportArgs, https, httpsCertFile, httpsKeyFile, initArgs, inspectArgs, installArgs, listArgs, localPackage, logLevel, loginArgs, mcpArgs, 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-BXabdhiO.mjs";
1
+ import { _ as packageManagerArgs, o as debugArgs } from "./common-CHSGBvxM.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 = {
@@ -69,4 +69,4 @@ const initArgs = {
69
69
  //#endregion
70
70
  export { initArgs as t };
71
71
 
72
- //# sourceMappingURL=init-xlCNZ8Oe.mjs.map
72
+ //# sourceMappingURL=init-DYFFSkxI.mjs.map