@powerhousedao/shared 6.2.3-dev.1 → 6.2.3-dev.100

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 (365) 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/analytics/index.d.ts +4 -4
  4. package/dist/analytics/index.d.ts.map +1 -1
  5. package/dist/analytics/index.js +25 -24
  6. package/dist/analytics/index.js.map +1 -1
  7. package/dist/clis/args/access-token.d.mts +15 -2
  8. package/dist/clis/args/access-token.d.mts.map +1 -0
  9. package/dist/clis/args/access-token.mjs +21 -1
  10. package/dist/clis/args/access-token.mjs.map +1 -0
  11. package/dist/clis/args/{common-CcYbXrBx.mjs → common-DG_SF8fN.mjs} +66 -12
  12. package/dist/clis/args/common-DG_SF8fN.mjs.map +1 -0
  13. package/dist/clis/args/common-DmerPWXo.d.mts +190 -0
  14. package/dist/clis/args/common-DmerPWXo.d.mts.map +1 -0
  15. package/dist/clis/args/common.d.mts +3 -2
  16. package/dist/clis/args/common.mjs +1 -1
  17. package/dist/clis/args/connect.d.mts +449 -2
  18. package/dist/clis/args/connect.d.mts.map +1 -0
  19. package/dist/clis/args/connect.mjs +202 -1
  20. package/dist/clis/args/connect.mjs.map +1 -0
  21. package/dist/clis/args/{generate-CA916Fvj.mjs → generate-DoDfK_Wi.mjs} +40 -2
  22. package/dist/clis/args/generate-DoDfK_Wi.mjs.map +1 -0
  23. package/dist/clis/args/generate.d.mts +102 -2
  24. package/dist/clis/args/generate.d.mts.map +1 -0
  25. package/dist/clis/args/generate.mjs +1 -1
  26. package/dist/clis/args/help-BsMOLPsF.d.mts +251 -0
  27. package/dist/clis/args/help-BsMOLPsF.d.mts.map +1 -0
  28. package/dist/clis/args/{help-Bqbgbalu.mjs → help-DJCRTkC9.mjs} +75 -16
  29. package/dist/clis/args/help-DJCRTkC9.mjs.map +1 -0
  30. package/dist/clis/args/help.d.mts +3 -2
  31. package/dist/clis/args/help.mjs +16 -1
  32. package/dist/clis/args/host.d.mts +23 -0
  33. package/dist/clis/args/host.d.mts.map +1 -0
  34. package/dist/clis/args/host.mjs +35 -0
  35. package/dist/clis/args/host.mjs.map +1 -0
  36. package/dist/clis/args/index.d.mts +24 -19
  37. package/dist/clis/args/index.mjs +23 -19
  38. package/dist/clis/args/init.d.mts +54 -2
  39. package/dist/clis/args/init.d.mts.map +1 -0
  40. package/dist/clis/args/init.mjs +77 -1
  41. package/dist/clis/args/init.mjs.map +1 -0
  42. package/dist/clis/args/inspect.d.mts +12 -2
  43. package/dist/clis/args/inspect.d.mts.map +1 -0
  44. package/dist/clis/args/inspect.mjs +14 -1
  45. package/dist/clis/args/inspect.mjs.map +1 -0
  46. package/dist/clis/args/install.d.mts +36 -2
  47. package/dist/clis/args/install.d.mts.map +1 -0
  48. package/dist/clis/args/install.mjs +31 -1
  49. package/dist/clis/args/install.mjs.map +1 -0
  50. package/dist/clis/args/keyframes.d.mts +25 -0
  51. package/dist/clis/args/keyframes.d.mts.map +1 -0
  52. package/dist/clis/args/keyframes.mjs +42 -0
  53. package/dist/clis/args/keyframes.mjs.map +1 -0
  54. package/dist/clis/args/list.d.mts +9 -2
  55. package/dist/clis/args/list.d.mts.map +1 -0
  56. package/dist/clis/args/list.mjs +6 -1
  57. package/dist/clis/args/list.mjs.map +1 -0
  58. package/dist/clis/args/login.d.mts +24 -2
  59. package/dist/clis/args/login.d.mts.map +1 -0
  60. package/dist/clis/args/login.mjs +39 -1
  61. package/dist/clis/args/login.mjs.map +1 -0
  62. package/dist/clis/args/mcp.d.mts +15 -0
  63. package/dist/clis/args/mcp.d.mts.map +1 -0
  64. package/dist/clis/args/mcp.mjs +22 -0
  65. package/dist/clis/args/mcp.mjs.map +1 -0
  66. package/dist/clis/args/migrate.d.mts +18 -2
  67. package/dist/clis/args/migrate.d.mts.map +1 -0
  68. package/dist/clis/args/migrate.mjs +27 -1
  69. package/dist/clis/args/migrate.mjs.map +1 -0
  70. package/dist/clis/args/model.d.mts +39 -0
  71. package/dist/clis/args/model.d.mts.map +1 -0
  72. package/dist/clis/args/model.mjs +51 -0
  73. package/dist/clis/args/model.mjs.map +1 -0
  74. package/dist/clis/args/publish.d.mts +19 -2
  75. package/dist/clis/args/publish.d.mts.map +1 -0
  76. package/dist/clis/args/publish.mjs +26 -1
  77. package/dist/clis/args/publish.mjs.map +1 -0
  78. package/dist/clis/args/registry.d.mts +16 -2
  79. package/dist/clis/args/registry.d.mts.map +1 -0
  80. package/dist/clis/args/registry.mjs +22 -1
  81. package/dist/clis/args/registry.mjs.map +1 -0
  82. package/dist/clis/args/run.d.mts +18 -0
  83. package/dist/clis/args/run.d.mts.map +1 -0
  84. package/dist/clis/args/run.mjs +28 -0
  85. package/dist/clis/args/run.mjs.map +1 -0
  86. package/dist/clis/args/service-CLCvH3kf.d.mts +27 -0
  87. package/dist/clis/args/service-CLCvH3kf.d.mts.map +1 -0
  88. package/dist/clis/args/service.d.mts +3 -2
  89. package/dist/clis/args/service.mjs +10 -1
  90. package/dist/clis/args/service.mjs.map +1 -0
  91. package/dist/clis/args/switchboard.d.mts +69 -2
  92. package/dist/clis/args/switchboard.d.mts.map +1 -0
  93. package/dist/clis/args/switchboard.mjs +84 -1
  94. package/dist/clis/args/switchboard.mjs.map +1 -0
  95. package/dist/clis/args/uninstall.d.mts +27 -2
  96. package/dist/clis/args/uninstall.d.mts.map +1 -0
  97. package/dist/clis/args/uninstall.mjs +15 -1
  98. package/dist/clis/args/uninstall.mjs.map +1 -0
  99. package/dist/clis/args/unpublish.d.mts +21 -2
  100. package/dist/clis/args/unpublish.d.mts.map +1 -0
  101. package/dist/clis/args/unpublish.mjs +29 -1
  102. package/dist/clis/args/unpublish.mjs.map +1 -0
  103. package/dist/clis/args/{vetra-b4KUu1Ax.mjs → vetra-BqjDopAP.mjs} +18 -2
  104. package/dist/clis/args/vetra-BqjDopAP.mjs.map +1 -0
  105. package/dist/clis/args/vetra.d.mts +113 -2
  106. package/dist/clis/args/vetra.d.mts.map +1 -0
  107. package/dist/clis/args/vetra.mjs +1 -1
  108. package/dist/clis/build-config-BM1RL4u_.mjs +309 -0
  109. package/dist/clis/build-config-BM1RL4u_.mjs.map +1 -0
  110. package/dist/clis/build-config.d.mts +71 -10616
  111. package/dist/clis/build-config.d.mts.map +1 -1
  112. package/dist/clis/build-config.mjs +2 -88
  113. package/dist/clis/build-pieces.d.mts +167 -0
  114. package/dist/clis/build-pieces.d.mts.map +1 -0
  115. package/dist/clis/build-pieces.mjs +594 -0
  116. package/dist/clis/build-pieces.mjs.map +1 -0
  117. package/dist/clis/command-names.d.mts +6 -2
  118. package/dist/clis/command-names.d.mts.map +1 -1
  119. package/dist/clis/command-names.mjs +10 -1
  120. package/dist/clis/command-names.mjs.map +1 -1
  121. package/dist/clis/constants.d.mts +3 -462
  122. package/dist/clis/constants.mjs +92 -21
  123. package/dist/clis/constants.mjs.map +1 -1
  124. package/dist/clis/definition-sources.d.mts +57 -0
  125. package/dist/clis/definition-sources.d.mts.map +1 -0
  126. package/dist/clis/definition-sources.mjs +98 -0
  127. package/dist/clis/definition-sources.mjs.map +1 -0
  128. package/dist/clis/definition-types-CiUH8dqg.d.mts +18 -0
  129. package/dist/clis/definition-types-CiUH8dqg.d.mts.map +1 -0
  130. package/dist/clis/feature-flags.d.mts +17 -0
  131. package/dist/clis/feature-flags.d.mts.map +1 -0
  132. package/dist/clis/feature-flags.mjs +21 -0
  133. package/dist/clis/feature-flags.mjs.map +1 -0
  134. package/dist/clis/index-DnZYG-8g.d.mts +11154 -0
  135. package/dist/clis/index-DnZYG-8g.d.mts.map +1 -0
  136. package/dist/clis/index.d.mts +3819 -1952
  137. package/dist/clis/index.d.mts.map +1 -1
  138. package/dist/clis/index.mjs +1543 -857
  139. package/dist/clis/index.mjs.map +1 -1
  140. package/dist/clis/package-style.d.mts +32 -0
  141. package/dist/clis/package-style.d.mts.map +1 -0
  142. package/dist/clis/package-style.mjs +102 -0
  143. package/dist/clis/package-style.mjs.map +1 -0
  144. package/dist/clis/ph-dir.d.mts +26 -0
  145. package/dist/clis/ph-dir.d.mts.map +1 -0
  146. package/dist/clis/ph-dir.mjs +37 -0
  147. package/dist/clis/ph-dir.mjs.map +1 -0
  148. package/dist/clis/project-env.d.mts +10 -4
  149. package/dist/clis/project-env.d.mts.map +1 -1
  150. package/dist/clis/project-env.mjs +16 -1
  151. package/dist/clis/project-env.mjs.map +1 -1
  152. package/dist/clis/project-ports.d.mts +5 -5
  153. package/dist/clis/project-ports.d.mts.map +1 -1
  154. package/dist/clis/project-ports.mjs +1 -1
  155. package/dist/clis/project-ports.mjs.map +1 -1
  156. package/dist/clis/real-paths.d.mts +14 -0
  157. package/dist/clis/real-paths.d.mts.map +1 -0
  158. package/dist/clis/real-paths.mjs +36 -0
  159. package/dist/clis/real-paths.mjs.map +1 -0
  160. package/dist/clis/rolldown-runtime-B4iAMlE-.mjs +35 -0
  161. package/dist/clis/services/telemetry.d.mts +7 -7
  162. package/dist/clis/services/telemetry.d.mts.map +1 -1
  163. package/dist/clis/services/telemetry.mjs.map +1 -1
  164. package/dist/clis/types-Qy1GBoTY.d.mts +2506 -0
  165. package/dist/clis/types-Qy1GBoTY.d.mts.map +1 -0
  166. package/dist/clis/utils.d.mts +4 -4
  167. package/dist/clis/utils.d.mts.map +1 -1
  168. package/dist/clis/utils.mjs.map +1 -1
  169. package/dist/{config-loader-B845Hidf.js → config-loader-B7SqNz8z.js} +50 -12
  170. package/dist/config-loader-B7SqNz8z.js.map +1 -0
  171. package/dist/connect/app-shell.d.ts +48 -0
  172. package/dist/connect/app-shell.d.ts.map +1 -0
  173. package/dist/connect/app-shell.js +90 -0
  174. package/dist/connect/app-shell.js.map +1 -0
  175. package/dist/connect/config-loader.d.ts +21 -8
  176. package/dist/connect/config-loader.d.ts.map +1 -1
  177. package/dist/connect/config-loader.js +2 -2
  178. package/dist/connect/connect-config-schema.d.ts +3 -0
  179. package/dist/connect/connect-config-schema.js +486 -0
  180. package/dist/connect/connect-config-schema.js.map +1 -0
  181. package/dist/connect/image-ref.d.ts +32 -0
  182. package/dist/connect/image-ref.d.ts.map +1 -0
  183. package/dist/connect/image-ref.js +80 -0
  184. package/dist/connect/image-ref.js.map +1 -0
  185. package/dist/connect/index.d.ts +226 -643
  186. package/dist/connect/index.d.ts.map +1 -1
  187. package/dist/connect/index.js +443 -507
  188. package/dist/connect/index.js.map +1 -1
  189. package/dist/connect/json-adapter.d.ts +3 -4
  190. package/dist/connect/json-adapter.d.ts.map +1 -1
  191. package/dist/connect/json-adapter.js.map +1 -1
  192. package/dist/connect/origin-placeholder.d.ts +52 -0
  193. package/dist/connect/origin-placeholder.d.ts.map +1 -0
  194. package/dist/connect/origin-placeholder.js +101 -0
  195. package/dist/connect/origin-placeholder.js.map +1 -0
  196. package/dist/connect-config-schema-cBfkNo1b.d.ts +1872 -0
  197. package/dist/connect-config-schema-cBfkNo1b.d.ts.map +1 -0
  198. package/dist/constants-5UFY_rXh.d.ts +9 -0
  199. package/dist/constants-5UFY_rXh.d.ts.map +1 -0
  200. package/dist/constants.d.ts +3 -2
  201. package/dist/constants.js +22 -6
  202. package/dist/constants.js.map +1 -1
  203. package/dist/document-drive/index.d.ts +137 -95
  204. package/dist/document-drive/index.d.ts.map +1 -1
  205. package/dist/document-drive/index.js +133 -64
  206. package/dist/document-drive/index.js.map +1 -1
  207. package/dist/document-model/action-id.d.ts +3 -0
  208. package/dist/document-model/action-id.js +59 -0
  209. package/dist/document-model/action-id.js.map +1 -0
  210. package/dist/document-model/dispatch.d.ts +25 -0
  211. package/dist/document-model/dispatch.d.ts.map +1 -0
  212. package/dist/document-model/dispatch.js +0 -0
  213. package/dist/document-model/errors.d.ts +3 -0
  214. package/dist/document-model/errors.js +214 -0
  215. package/dist/document-model/errors.js.map +1 -0
  216. package/dist/document-model/index.d.ts +6 -4
  217. package/dist/document-model/index.js +7 -5143
  218. package/dist/document-model/mock.d.ts +2 -3
  219. package/dist/document-model/mock.d.ts.map +1 -1
  220. package/dist/document-model/mock.js +2 -1
  221. package/dist/document-model/mock.js.map +1 -1
  222. package/dist/document-model/utils.d.ts +4 -2
  223. package/dist/document-model/utils.js +3 -2
  224. package/dist/document-model/version.d.ts +3 -0
  225. package/dist/document-model/version.js +8 -0
  226. package/dist/document-model/version.js.map +1 -0
  227. package/dist/document-model-TCCW8aMC.js +5795 -0
  228. package/dist/document-model-TCCW8aMC.js.map +1 -0
  229. package/dist/host-tokens/index.d.ts +3 -0
  230. package/dist/host-tokens/index.js +2 -0
  231. package/dist/host-tokens-DOeyxqLi.js +322 -0
  232. package/dist/host-tokens-DOeyxqLi.js.map +1 -0
  233. package/dist/index-C_lizUqn.d.ts +36 -0
  234. package/dist/index-C_lizUqn.d.ts.map +1 -0
  235. package/dist/index-D58WVj_E.d.ts +246 -0
  236. package/dist/index-D58WVj_E.d.ts.map +1 -0
  237. package/dist/index.d.ts +7 -6
  238. package/dist/index.js.map +1 -1
  239. package/dist/processors/index.d.ts +3 -2
  240. package/dist/processors/index.js +180 -67
  241. package/dist/processors/index.js.map +1 -1
  242. package/dist/processors/testing.d.ts +22 -0
  243. package/dist/processors/testing.d.ts.map +1 -0
  244. package/dist/processors/testing.js +77 -0
  245. package/dist/processors/testing.js.map +1 -0
  246. package/dist/purge-CbAV5DVh.js +631 -0
  247. package/dist/purge-CbAV5DVh.js.map +1 -0
  248. package/dist/registry/index.d.ts +15 -15
  249. package/dist/registry/index.d.ts.map +1 -1
  250. package/dist/registry/index.js +64 -12
  251. package/dist/registry/index.js.map +1 -1
  252. package/dist/registry/manifest-slim.d.ts +4 -3
  253. package/dist/registry/manifest-slim.d.ts.map +1 -1
  254. package/dist/registry/manifest-slim.js +21 -0
  255. package/dist/registry/manifest-slim.js.map +1 -1
  256. package/dist/registry/updates.d.ts +3 -3
  257. package/dist/registry/updates.d.ts.map +1 -1
  258. package/dist/registry/updates.js.map +1 -1
  259. package/dist/registry/urls.d.ts +2 -2
  260. package/dist/registry/urls.d.ts.map +1 -1
  261. package/dist/registry/urls.js.map +1 -1
  262. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  263. package/dist/{types-C1in4fl3.d.ts → types-Bsp8VL2y.d.ts} +2 -2
  264. package/dist/types-Bsp8VL2y.d.ts.map +1 -0
  265. package/dist/{types-YqLqb0Zb.d.ts → types-BuEzD0jp.d.ts} +39 -43
  266. package/dist/types-BuEzD0jp.d.ts.map +1 -0
  267. package/dist/types-cIIv_Rsg.d.ts +5710 -0
  268. package/dist/types-cIIv_Rsg.d.ts.map +1 -0
  269. package/dist/{utils-aaTmfxFW.js → utils-DiV32YIj.js} +53 -3
  270. package/dist/utils-DiV32YIj.js.map +1 -0
  271. package/dist/utils-MrLmLEVr.js +78 -0
  272. package/dist/utils-MrLmLEVr.js.map +1 -0
  273. package/dist/version-BxLITo9P.d.ts +6 -0
  274. package/dist/version-BxLITo9P.d.ts.map +1 -0
  275. package/package.json +42 -7
  276. package/dist/clis/args/access-token--9H57y8J.d.mts +0 -18
  277. package/dist/clis/args/access-token--9H57y8J.d.mts.map +0 -1
  278. package/dist/clis/args/access-token-To5LaIfL.mjs +0 -22
  279. package/dist/clis/args/access-token-To5LaIfL.mjs.map +0 -1
  280. package/dist/clis/args/common-CcYbXrBx.mjs.map +0 -1
  281. package/dist/clis/args/common-Dsf1vpHV.d.mts +0 -183
  282. package/dist/clis/args/common-Dsf1vpHV.d.mts.map +0 -1
  283. package/dist/clis/args/connect-BVVvCmL9.mjs +0 -198
  284. package/dist/clis/args/connect-BVVvCmL9.mjs.map +0 -1
  285. package/dist/clis/args/connect-DetTnI8g.d.mts +0 -443
  286. package/dist/clis/args/connect-DetTnI8g.d.mts.map +0 -1
  287. package/dist/clis/args/generate-CA916Fvj.mjs.map +0 -1
  288. package/dist/clis/args/generate-DnV-bfXt.d.mts +0 -87
  289. package/dist/clis/args/generate-DnV-bfXt.d.mts.map +0 -1
  290. package/dist/clis/args/help-Bqbgbalu.mjs.map +0 -1
  291. package/dist/clis/args/help-CjAsudUn.d.mts +0 -193
  292. package/dist/clis/args/help-CjAsudUn.d.mts.map +0 -1
  293. package/dist/clis/args/init-CUXyfquF.d.mts +0 -55
  294. package/dist/clis/args/init-CUXyfquF.d.mts.map +0 -1
  295. package/dist/clis/args/init-rz9Ei7nq.mjs +0 -67
  296. package/dist/clis/args/init-rz9Ei7nq.mjs.map +0 -1
  297. package/dist/clis/args/inspect-DtZeoA5c.d.mts +0 -15
  298. package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +0 -1
  299. package/dist/clis/args/inspect-tckH8mSw.mjs +0 -15
  300. package/dist/clis/args/inspect-tckH8mSw.mjs.map +0 -1
  301. package/dist/clis/args/install-CkP8zcHb.d.mts +0 -40
  302. package/dist/clis/args/install-CkP8zcHb.d.mts.map +0 -1
  303. package/dist/clis/args/install-Sz2DlCHh.mjs +0 -32
  304. package/dist/clis/args/install-Sz2DlCHh.mjs.map +0 -1
  305. package/dist/clis/args/list-BGf8s_gj.d.mts +0 -12
  306. package/dist/clis/args/list-BGf8s_gj.d.mts.map +0 -1
  307. package/dist/clis/args/list-DM2d6f1m.mjs +0 -7
  308. package/dist/clis/args/list-DM2d6f1m.mjs.map +0 -1
  309. package/dist/clis/args/login-DNsHwvqk.d.mts +0 -27
  310. package/dist/clis/args/login-DNsHwvqk.d.mts.map +0 -1
  311. package/dist/clis/args/login-DiKT5Jfu.mjs +0 -40
  312. package/dist/clis/args/login-DiKT5Jfu.mjs.map +0 -1
  313. package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs +0 -1013
  314. package/dist/clis/args/magic-string.es-h_0HDQBQ.mjs.map +0 -1
  315. package/dist/clis/args/migrate-CG_gWc4k.mjs +0 -29
  316. package/dist/clis/args/migrate-CG_gWc4k.mjs.map +0 -1
  317. package/dist/clis/args/migrate-sixkWhxm.d.mts +0 -21
  318. package/dist/clis/args/migrate-sixkWhxm.d.mts.map +0 -1
  319. package/dist/clis/args/publish-DDZYsUfV.mjs +0 -19
  320. package/dist/clis/args/publish-DDZYsUfV.mjs.map +0 -1
  321. package/dist/clis/args/publish-Dqe5DUst.d.mts +0 -18
  322. package/dist/clis/args/publish-Dqe5DUst.d.mts.map +0 -1
  323. package/dist/clis/args/registry-C_OVFQmI.mjs +0 -23
  324. package/dist/clis/args/registry-C_OVFQmI.mjs.map +0 -1
  325. package/dist/clis/args/registry-C_RfTsKB.d.mts +0 -19
  326. package/dist/clis/args/registry-C_RfTsKB.d.mts.map +0 -1
  327. package/dist/clis/args/service-CHOOr0Gg.mjs +0 -11
  328. package/dist/clis/args/service-CHOOr0Gg.mjs.map +0 -1
  329. package/dist/clis/args/service-DhIkf8-O.d.mts +0 -22
  330. package/dist/clis/args/service-DhIkf8-O.d.mts.map +0 -1
  331. package/dist/clis/args/switchboard-BlPaq2at.d.mts +0 -72
  332. package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +0 -1
  333. package/dist/clis/args/switchboard-Dsp7nosi.mjs +0 -85
  334. package/dist/clis/args/switchboard-Dsp7nosi.mjs.map +0 -1
  335. package/dist/clis/args/uninstall-BpA3YYbw.d.mts +0 -31
  336. package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +0 -1
  337. package/dist/clis/args/uninstall-CTwTX0u_.mjs +0 -16
  338. package/dist/clis/args/uninstall-CTwTX0u_.mjs.map +0 -1
  339. package/dist/clis/args/unpublish-BPMkGEg5.mjs +0 -30
  340. package/dist/clis/args/unpublish-BPMkGEg5.mjs.map +0 -1
  341. package/dist/clis/args/unpublish-CvwaIimG.d.mts +0 -24
  342. package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +0 -1
  343. package/dist/clis/args/vetra-DLQ6lhLl.d.mts +0 -113
  344. package/dist/clis/args/vetra-DLQ6lhLl.d.mts.map +0 -1
  345. package/dist/clis/args/vetra-b4KUu1Ax.mjs.map +0 -1
  346. package/dist/clis/args/vetra-ports.test.d.mts +0 -1
  347. package/dist/clis/args/vetra-ports.test.mjs +0 -13249
  348. package/dist/clis/args/vetra-ports.test.mjs.map +0 -1
  349. package/dist/clis/build-config.mjs.map +0 -1
  350. package/dist/clis/constants.d.mts.map +0 -1
  351. package/dist/config-loader-B845Hidf.js.map +0 -1
  352. package/dist/constants-BP_gjn8g.d.ts +0 -8
  353. package/dist/constants-BP_gjn8g.d.ts.map +0 -1
  354. package/dist/document-model/index.js.map +0 -1
  355. package/dist/index-C_iVZe7f.d.ts +0 -7
  356. package/dist/index-C_iVZe7f.d.ts.map +0 -1
  357. package/dist/index-DyYIJtVy.d.ts +0 -836
  358. package/dist/index-DyYIJtVy.d.ts.map +0 -1
  359. package/dist/types-C1in4fl3.d.ts.map +0 -1
  360. package/dist/types-CpnWmiFY.d.ts +0 -3167
  361. package/dist/types-CpnWmiFY.d.ts.map +0 -1
  362. package/dist/types-YqLqb0Zb.d.ts.map +0 -1
  363. package/dist/utils-DP122OSS.d.ts +0 -18
  364. package/dist/utils-DP122OSS.d.ts.map +0 -1
  365. package/dist/utils-aaTmfxFW.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-pieces.mjs","names":[],"sources":["../../clis/external-deps.mts","../../clis/build-pieces.mts"],"sourcesContent":["// External dependencies: a package whose code needs a native addon or a\n// WebAssembly module cannot be inlined, so it stays a bare import the host installs.\nimport { readdirSync, readFileSync, realpathSync } from \"node:fs\";\nimport { isBuiltin } from \"node:module\";\nimport { isAbsolute, join, relative, sep } from \"node:path\";\nimport type { InlineConfig } from \"tsdown\";\n\n/** The files one module needs at run time, and why each was included. */\nexport type FileTrace = {\n /** Absolute paths. */\n fileList: Set<string>;\n /** Absolute path -> the absolute paths of the files that pulled it in. */\n reasons: Map<string, { parents: Set<string> }>;\n};\n\n/** Traces one file: @vercel/nft's nodeFileTrace, handed in by the CLI. */\nexport type TraceFiles = (file: string) => Promise<FileTrace>;\n\n/** A file the bundle cannot carry: a native addon or a WebAssembly module. */\nexport type RequiredFile = { file: string; kind: \"native\" | \"wasm\" };\n\nexport type ExternalDependency = RequiredFile & {\n name: string;\n version: string;\n /** The first of the package's own files seen importing it. */\n importer?: string;\n};\n\n/** What one `ph build` learns about packages, shared by all of its builds. */\nexport type DetectionCache = {\n files: Map<string, Promise<RequiredFile | undefined>>;\n wasm: Map<string, string | undefined>;\n};\n\nexport const createDetectionCache = (): DetectionCache => ({\n files: new Map(),\n wasm: new Map(),\n});\n\nexport type ExternalDepsPluginOptions = {\n /** The project root the dirs below are relative to. */\n root?: string;\n /** Browser build: a native package fails it; WebAssembly is bundled. */\n browser?: boolean;\n /** Dirs whose imports the bundler handles as usual: code no host runs. */\n ignoreDirs?: string[];\n /** Dirs that may not import a native or WebAssembly package. */\n forbidDirs?: string[];\n cache?: DetectionCache;\n};\n\ntype Plugin = NonNullable<InlineConfig[\"plugins\"]>;\n\ntype PackageJson = {\n name?: string;\n version?: string;\n dependencies?: Record<string, string>;\n optionalDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n};\n\nconst NODE_MODULES = `${sep}node_modules${sep}`;\n\n/** `file` relative to `root`, with forward slashes on every platform. */\nexport function projectPath(root: string, file: string): string {\n return relative(root, file).split(sep).join(\"/\");\n}\n\n// Windows paths compare case-insensitively, drive letter included.\nconst samePath = (file: string) =>\n process.platform === \"win32\" ? file.toLowerCase() : file;\n\n// \"@scope/name/sub\" -> \"@scope/name\", \"name/sub\" -> \"name\".\nexport function packageNameOf(specifier: string): string | undefined {\n if (specifier.startsWith(\".\") || isAbsolute(specifier)) return undefined;\n const parts = specifier.split(\"/\");\n const name = specifier.startsWith(\"@\")\n ? parts.slice(0, 2).join(\"/\")\n : parts[0];\n return name || undefined;\n}\n\n// The root of the installed package a file belongs to, if it is in one.\nexport function packageRootOf(file: string): string | undefined {\n const at = file.lastIndexOf(NODE_MODULES);\n if (at < 0) return undefined;\n const rest = file.slice(at + NODE_MODULES.length).split(sep);\n const depth = rest[0]?.startsWith(\"@\") ? 2 : 1;\n if (rest.length <= depth) return undefined;\n return join(file.slice(0, at + NODE_MODULES.length), ...rest.slice(0, depth));\n}\n\nfunction readPackageJson(root: string): PackageJson | undefined {\n try {\n return JSON.parse(\n readFileSync(join(root, \"package.json\"), \"utf8\"),\n ) as PackageJson;\n } catch {\n return undefined;\n }\n}\n\n// Only links the importer requires count: an optional peer such as\n// ws -> bufferutil is a speed-up the importer runs without.\nfunction requires(importerRoot: string, importedRoot: string): boolean {\n const importer = readPackageJson(importerRoot);\n const name = readPackageJson(importedRoot)?.name;\n if (!importer || !name) return false;\n return (\n importer.dependencies?.[name] !== undefined ||\n importer.optionalDependencies?.[name] !== undefined\n );\n}\n\n// The first .wasm file in a package's own files. Presence is enough: most\n// packages compute the path or let their caller pass it, so a trace misses it.\nfunction wasmIn(root: string, cache?: DetectionCache): string | undefined {\n if (cache?.wasm.has(root)) return cache.wasm.get(root);\n const found = scanForWasm(root);\n cache?.wasm.set(root, found);\n return found;\n}\n\nfunction scanForWasm(root: string): string | undefined {\n try {\n const found = readdirSync(root, { recursive: true, encoding: \"utf8\" }).find(\n (file) =>\n file.endsWith(\".wasm\") && !file.split(sep).includes(\"node_modules\"),\n );\n return found && join(root, found);\n } catch {\n return undefined;\n }\n}\n\n/** The first file `entry` cannot load without that a bundle cannot carry. */\nexport async function findRequiredFile(\n entry: string,\n trace: TraceFiles,\n cache?: DetectionCache,\n): Promise<RequiredFile | undefined> {\n const { fileList, reasons } = await trace(entry);\n // A tracer reports real paths, and the entry may sit behind a symlink.\n const start = samePath(realpathSync(entry));\n // What to report, and the traced file the walk back to the entry starts at.\n const candidates: (RequiredFile & { from: string })[] = [...fileList]\n .filter((file) => file.endsWith(\".node\"))\n .map((file) => ({ file, kind: \"native\" as const, from: file }));\n {\n const traced = new Map<string, string>();\n for (const file of fileList) {\n const root = packageRootOf(file);\n if (root && !traced.has(root) && /\\.[cm]?js$/.test(file)) {\n traced.set(root, file);\n }\n }\n const tracedWasm = [...fileList].filter((file) => file.endsWith(\".wasm\"));\n for (const [root, from] of traced) {\n const file =\n tracedWasm.find((wasm) => packageRootOf(wasm) === root) ??\n wasmIn(root, cache);\n if (file) candidates.push({ file, kind: \"wasm\", from });\n }\n }\n for (const { from, ...required } of candidates) {\n // Back to the entry, crossing into a parent's package only when that\n // package requires the one being left.\n const seen = new Set([from]);\n const queue = [from];\n while (queue.length > 0) {\n const file = queue.shift()!;\n if (samePath(file) === start) return required;\n for (const parent of reasons.get(file)?.parents ?? []) {\n if (seen.has(parent)) continue;\n const fromRoot = packageRootOf(parent);\n const toRoot = packageRootOf(file);\n if (\n fromRoot !== toRoot &&\n (!fromRoot || !toRoot || !requires(fromRoot, toRoot))\n ) {\n continue;\n }\n seen.add(parent);\n queue.push(parent);\n }\n }\n }\n return undefined;\n}\n\n/** Keeps each package the code imports that needs such a file out of the bundle. */\nexport function externalDepsPlugin(\n trace: TraceFiles,\n found: Map<string, ExternalDependency>,\n options: ExternalDepsPluginOptions = {},\n): Plugin {\n const cache = options.cache ?? createDetectionCache();\n const root = options.root ?? process.cwd();\n const show = (file: string) => projectPath(root, file);\n const inDir = (id: string, dirs: string[] = []) =>\n dirs.some((dir) => show(id).startsWith(`${dir}/`));\n // By resolved file: a package's subpaths can differ in what they load.\n const detect = (id: string) => {\n let verdict = cache.files.get(id);\n if (!verdict) {\n verdict = findRequiredFile(id, trace, cache);\n cache.files.set(id, verdict);\n }\n return verdict;\n };\n return {\n name: \"powerhouse:external-deps\",\n async resolveId(source, importer, extra) {\n // The project's own imports only: whatever a dependency pulls in goes\n // wherever that dependency goes.\n if (!importer || importer.includes(NODE_MODULES)) return null;\n if (isBuiltin(source) || inDir(importer, options.ignoreDirs)) return null;\n const name = packageNameOf(source);\n if (!name) return null;\n const resolved = await this.resolve(source, importer, {\n ...extra,\n skipSelf: true,\n });\n if (!resolved || resolved.external) return null;\n const required = await detect(resolved.id);\n const pkgRoot = packageRootOf(resolved.id);\n const version = pkgRoot ? readPackageJson(pkgRoot)?.version : undefined;\n if (!required || !version) return null;\n const what =\n required.kind === \"native\"\n ? `the native addon ${show(required.file)}`\n : `the WebAssembly module ${show(required.file)}`;\n if (options.browser) {\n if (required.kind === \"wasm\") return null;\n throw new Error(\n `${show(importer)} imports ${name}, which needs ${what}. ` +\n \"Native code cannot run in the browser: import it only from subgraphs, switchboard processors or pieces.\",\n );\n }\n if (inDir(importer, options.forbidDirs)) {\n throw new Error(\n `${show(importer)} imports ${name}, which needs ${what}. ` +\n \"Document models and scalars run in Connect and on every host: use it from a subgraph, processor or piece instead.\",\n );\n }\n if (!found.has(name)) {\n found.set(name, { name, version, ...required, importer });\n }\n return { id: source, external: true };\n },\n };\n}\n\n/**\n * The detected packages `pkg` does not install for its consumers: anything\n * outside dependencies, optionalDependencies and peerDependencies.\n */\nexport function undeclaredExternalDependencies(\n found: Iterable<ExternalDependency>,\n pkg: Partial<\n Record<\n \"dependencies\" | \"optionalDependencies\" | \"peerDependencies\",\n Partial<Record<string, string>>\n >\n >,\n): ExternalDependency[] {\n return [...found].filter(\n (dep) =>\n pkg.dependencies?.[dep.name] === undefined &&\n pkg.optionalDependencies?.[dep.name] === undefined &&\n pkg.peerDependencies?.[dep.name] === undefined,\n );\n}\n\n/** name -> version, sorted by name. */\nexport function externalDependencyVersions(\n found: Iterable<ExternalDependency>,\n): Record<string, string> {\n return Object.fromEntries(\n [...found]\n .sort((a, b) => a.name.localeCompare(b.name))\n .map((dep) => [dep.name, dep.version]),\n );\n}\n","// The pieces half of a package build: find and bundle each piece whole, load\n// it once in a child process to learn what it is, and write what a host reads.\nimport { execFileSync } from \"node:child_process\";\nimport {\n copyFileSync,\n existsSync,\n mkdirSync,\n mkdtempSync,\n readdirSync,\n readFileSync,\n realpathSync,\n rmSync,\n statSync,\n writeFileSync,\n} from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport {\n basename,\n dirname,\n isAbsolute,\n join,\n relative,\n resolve,\n sep,\n} from \"node:path\";\nimport type { InlineConfig } from \"tsdown\";\nimport type { Manifest, PieceModule } from \"../document-model/types.js\";\nimport { buildPieceBuildConfig, PIECE_ENTRY_GLOB } from \"./build-config.mjs\";\nimport {\n externalDependencyVersions,\n externalDepsPlugin,\n projectPath,\n type DetectionCache,\n type ExternalDependency,\n type TraceFiles,\n} from \"./external-deps.mjs\";\n\nexport {\n createDetectionCache,\n projectPath,\n findRequiredFile,\n externalDependencyVersions,\n externalDepsPlugin,\n undeclaredExternalDependencies,\n} from \"./external-deps.mjs\";\nexport type {\n DetectionCache,\n FileTrace,\n ExternalDependency,\n ExternalDepsPluginOptions,\n TraceFiles,\n} from \"./external-deps.mjs\";\n\nexport type PiecePlan = {\n /** The directory under pieces/, and so under <outDir>/node/pieces. */\n dir: string;\n /** Source entry, relative to the project root: pieces/<dir>/index.ts. */\n entry: string;\n /** Where the piece lands, relative to the project root. */\n outDir: string;\n};\n\n// What buildPieces needs to know about the package it works in: where it is,\n// where it builds to, and which pieces the plan found.\nexport type PieceBuildTarget = {\n projectRoot: string;\n outDir: string;\n /**\n * @experimental Absolute: the directory that stands in for\n * `<projectRoot>/<outDir>` on disk during this build. Every path the build\n * names stays under `outDir`. Experimental while staged builds are\n * introduced.\n */\n writeTo?: string;\n pieces: PiecePlan[];\n};\n\n// One entry of pieces/index.ts, as @powerhousedao/pieces-framework declares it.\n// Declared here so the build needs no dependency on a package meant for pieces.\nexport type PackagePiece = {\n name: string;\n entry?: string;\n bundle?: string;\n};\n\n// What a piece says about itself, in the framework's PieceMetadata shape.\n// Read from the built piece, so nothing in the build has to know the framework.\nexport type PieceMetadata = Record<string, unknown> & {\n displayName?: string;\n description?: string;\n actions?: Record<string, unknown>;\n triggers?: Record<string, unknown>;\n};\n\nexport type DescribedPiece = {\n name: string;\n metadata: PieceMetadata;\n};\n\nexport type DescribeResult = {\n list: PackagePiece[];\n pieces: DescribedPiece[];\n errors: { name: string; message: string }[];\n};\n\nexport type BuiltPiece = {\n name: string;\n version: string;\n displayName?: string;\n description?: string;\n /** Piece directory, relative to the project root, `/` separated. */\n bundle: string;\n /** The descriptor inside it, relative to the project root, `/` separated. */\n descriptor: string;\n};\n\nexport type PackageIdentity = {\n name: string;\n version: string;\n license?: string;\n};\n\nexport type PieceBuildOptions = {\n /** The bundler: tsdown's `build`, handed in so this module never loads it. */\n bundle: (config: InlineConfig) => Promise<unknown>;\n /** Traces a module's run-time files; without it nothing is kept external. */\n trace?: TraceFiles;\n cache?: DetectionCache;\n};\n\nconst toPosix = (p: string) => p.split(sep).join(\"/\");\n\n/**\n * An output directory, absolute, and the directory written in its place;\n * `toReal` is `to` as `import.meta.url` spells it, through any symlink.\n */\ntype Redirect = { from: string; to: string; toReal: string };\n\n/** `relative(dir, path)` leaves `dir`: `..`, `../…`, or another root. */\nconst leaves = (inside: string) =>\n inside === \"..\" || inside.startsWith(`..${sep}`) || isAbsolute(inside);\n\n// Where a path is on disk: moved to `to` when it lies under `from`.\nfunction onDisk(path: string, redirect: Redirect | undefined): string {\n if (!redirect) return path;\n const inside = relative(redirect.from, path);\n return leaves(inside) ? path : join(redirect.to, inside);\n}\n\n// Where a path in the written directory stands in the output: the inverse of\n// onDisk, for a location a module derived from its own URL.\nfunction toLogical(path: string, redirect: Redirect | undefined): string {\n if (!redirect) return path;\n for (const dir of [redirect.to, redirect.toReal]) {\n const inside = relative(dir, path);\n if (!leaves(inside)) return join(redirect.from, inside);\n }\n return path;\n}\n\nexport function statSafe(p: string) {\n try {\n return statSync(p);\n } catch {\n return null;\n }\n}\n\nfunction realpathSafe(p: string) {\n try {\n return realpathSync(p);\n } catch {\n return p;\n }\n}\n\n// Expand entry globs (single-`*` segments only — the shape `browserEntry`\n// uses) against files on disk, resolving against `root`.\nexport function expandEntryGlobs(root: string, globs: string[]): string[] {\n const files = new Set<string>();\n for (const pattern of globs) {\n const segments = pattern.split(\"/\").filter(Boolean);\n let dirs = [root];\n for (const seg of segments) {\n const next: string[] = [];\n for (const d of dirs) {\n if (!statSafe(d)?.isDirectory()) continue;\n if (seg === \"*\") {\n for (const e of readdirSync(d, { withFileTypes: true })) {\n next.push(join(d, e.name));\n }\n } else {\n next.push(join(d, seg));\n }\n }\n dirs = next;\n }\n for (const f of dirs) {\n if (statSafe(f)?.isFile()) files.add(f);\n }\n }\n return [...files];\n}\n\n// The pieces a project holds, one per pieces/<dir>/index.ts, sorted by dir so\n// a build log and a manifest read the same from one run to the next.\nexport function planPieces(projectRoot: string, outDir: string): PiecePlan[] {\n return expandEntryGlobs(projectRoot, [PIECE_ENTRY_GLOB])\n .map((file) => {\n const dir = basename(dirname(file));\n return {\n dir,\n entry: relative(projectRoot, file),\n outDir: join(outDir, \"node\", \"pieces\", dir),\n };\n })\n .sort((a, b) => (a.dir < b.dir ? -1 : a.dir > b.dir ? 1 : 0));\n}\n\n// A JSON.stringify replacer that makes a piece's metadata serializable: props\n// carry resolvers, defaults may be class instances, and a schema may cycle.\nexport function createJsonReplacer() {\n const ancestors: object[] = [];\n return function replace(this: unknown, _key: string, value: unknown) {\n if (typeof value === \"function\" || value === undefined) return undefined;\n if (typeof value === \"bigint\") return value.toString();\n if (typeof value !== \"object\" || value === null) return value;\n // `this` is the holder, so popping back to it leaves the current path.\n while (ancestors.length > 0 && ancestors.at(-1) !== this) ancestors.pop();\n if (ancestors.includes(value)) return undefined;\n ancestors.push(value);\n return value;\n };\n}\n\n// The half of the child script that needs nothing from the job: a test\n// evaluates this text on its own, so neither copy can drift from the other.\n\n// `constructor?.name`: a module may export an Object.create(null), and the\n// real piece is usually beside it in the same module.\nexport const DESCRIBE_HELPERS = `\nconst isRecord = (value) => typeof value === \"object\" && value !== null;\n\nfunction findPiece(mod) {\n const candidates = [\n ...Object.values(mod),\n ...(isRecord(mod.default) ? Object.values(mod.default) : []),\n mod.default,\n ];\n for (const candidate of candidates) {\n if (isRecord(candidate) && candidate.constructor?.name === \"Piece\") {\n return candidate;\n }\n }\n for (const candidate of candidates) {\n if (\n isRecord(candidate) &&\n typeof candidate.displayName === \"string\" &&\n (isRecord(candidate.actions) ||\n typeof candidate.actions === \"function\" ||\n typeof candidate.getAction === \"function\")\n ) {\n return candidate;\n }\n }\n return undefined;\n}\n\nfunction describePiece(piece) {\n if (typeof piece.metadata === \"function\") return piece.metadata();\n const call = (value) => (typeof value === \"function\" ? value.call(piece) : value);\n return {\n displayName: piece.displayName,\n logoUrl: piece.logoUrl,\n description: piece.description,\n authors: piece.authors,\n categories: piece.categories,\n auth: piece.auth,\n minimumSupportedRelease: piece.minimumSupportedRelease,\n maximumSupportedRelease: piece.maximumSupportedRelease,\n deprecated: piece.deprecated,\n actions: call(piece.actions) ?? {},\n triggers: call(piece.triggers) ?? {},\n };\n}\n\nfunction createJsonReplacer() {\n const ancestors = [];\n return function replace(_key, value) {\n if (typeof value === \"function\" || value === undefined) return undefined;\n if (typeof value === \"bigint\") return value.toString();\n if (typeof value !== \"object\" || value === null) return value;\n while (ancestors.length > 0 && ancestors.at(-1) !== this) ancestors.pop();\n if (ancestors.includes(value)) return undefined;\n ancestors.push(value);\n return value;\n };\n}\n`;\n\n// Runs in a child node process: loading a piece runs piece-authored top-level\n// code, and the runtime describes pieces in a worker for the same reason.\n\n// A string so it works from `src` under bun or tsx as well as from `dist`. It\n// answers through a file, leaving both its streams to the piece.\nexport const DESCRIBE_SCRIPT = `\nimport { existsSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { isAbsolute, join, relative, sep } from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\n\nconst job = JSON.parse(readFileSync(process.argv[2], \"utf8\"));\n${DESCRIBE_HELPERS}\n// The parent's onDisk, for the paths a list names under the output directory.\nfunction onDisk(path) {\n if (!job.redirect) return path;\n const inside = relative(job.redirect.from, path);\n const leaves = inside === \"..\" || inside.startsWith(\"..\" + sep) || isAbsolute(inside);\n return leaves ? path : join(job.redirect.to, inside);\n}\n\n// Says why the child gave up in the one place the parent always reads, so a\n// failure reports the cause and never the text of this script.\nfunction fail(message) {\n writeFileSync(job.outFile, JSON.stringify({ fatal: message }));\n process.exit(1);\n}\n\n// The module to load for a list entry; a bundle names its own main.\nfunction entryFile(piece) {\n const declared = piece.entry ?? piece.bundle;\n if (typeof declared !== \"string\") return undefined;\n const path = isAbsolute(declared) ? declared : join(job.projectRoot, declared);\n if (piece.entry) return path;\n const pkgFile = join(onDisk(path), \"package.json\");\n if (!existsSync(pkgFile)) return undefined;\n const pkg = JSON.parse(readFileSync(pkgFile, \"utf8\"));\n return join(path, typeof pkg.main === \"string\" ? pkg.main : \"index.mjs\");\n}\n\nlet listModule;\ntry {\n listModule = await import(pathToFileURL(onDisk(job.listPath)).href);\n} catch (error) {\n fail(job.listPath + \" threw on import: \" + (error instanceof Error ? error.message : String(error)));\n}\nconst list = listModule.pieces ?? listModule.default;\nif (!Array.isArray(list)) {\n fail(job.listPath + ' exports no \"pieces\" array');\n}\n\nconst out = { list, pieces: [], errors: [] };\nfor (const piece of list) {\n const file = entryFile(piece);\n // A missing file is the parent's to report, with the message it owns.\n if (!file || !existsSync(onDisk(file))) continue;\n try {\n const mod = await import(pathToFileURL(onDisk(file)).href);\n const found = findPiece(mod);\n if (!found) {\n throw new Error(\n \"no Piece export found in \" + file + \"; exports: \" + Object.keys(mod).join(\", \"),\n );\n }\n const metadata = JSON.parse(JSON.stringify(describePiece(found), createJsonReplacer()));\n out.pieces.push({ name: piece.name, metadata });\n } catch (error) {\n out.errors.push({\n name: piece.name,\n message: error instanceof Error ? error.message : String(error),\n });\n }\n}\nwriteFileSync(job.outFile, JSON.stringify(out, createJsonReplacer()));\n`;\n\n// What the child said went wrong, if it got that far, and otherwise how it\n// died: an exit status, never the whole script an `Error.message` carries.\nfunction childFailure(error: unknown, outFile: string): string {\n try {\n const answer = JSON.parse(readFileSync(outFile, \"utf8\")) as {\n fatal?: unknown;\n };\n if (typeof answer.fatal === \"string\") return answer.fatal;\n } catch {\n // no answer on disk: fall through to the exit status\n }\n const { status, signal } = error as {\n status?: number | null;\n signal?: string | null;\n };\n if (signal) return `the describe child was killed by ${signal}`;\n return `the describe child exited with code ${status ?? \"unknown\"}`;\n}\n\n// Load the built list and every piece it names in a child process and return\n// what they say about themselves. Throws when the list itself cannot be read.\n\n// Both of the child's streams are the parent's, so a piece that prints at\n// import time is heard rather than mixed into the answer.\nexport function describePieces(\n projectRoot: string,\n listPath: string,\n): DescribeResult {\n return describePiecesThrough(projectRoot, listPath, undefined);\n}\n\nfunction describePiecesThrough(\n projectRoot: string,\n listPath: string,\n redirect: Redirect | undefined,\n): DescribeResult {\n const dir = mkdtempSync(join(tmpdir(), \"ph-build-pieces-\"));\n const rel = toPosix(relative(projectRoot, listPath));\n try {\n const jobFile = join(dir, \"job.json\");\n const scriptFile = join(dir, \"describe.mjs\");\n const outFile = join(dir, \"describe.json\");\n writeFileSync(scriptFile, DESCRIBE_SCRIPT);\n writeFileSync(\n jobFile,\n JSON.stringify({ projectRoot, listPath, outFile, redirect }),\n );\n try {\n execFileSync(process.execPath, [scriptFile, jobFile], {\n timeout: 60_000,\n stdio: \"inherit\",\n });\n } catch (error) {\n throw new Error(\n `pieces: could not load ${rel}: ${childFailure(error, outFile)}`,\n { cause: error },\n );\n }\n return JSON.parse(readFileSync(outFile, \"utf8\")) as DescribeResult;\n } finally {\n rmSync(dir, { recursive: true, force: true });\n }\n}\n\nexport type PieceLocation = {\n /** The piece directory, absolute. */\n dir: string;\n /** The module file, absolute; unset for a bundle, whose package.json names it. */\n entryFile?: string;\n form: \"entry\" | \"bundle\";\n};\n\n// Where a list entry says its built piece is, checked against the disk: a\n// listed piece nobody built would otherwise fail much later, in a host.\nexport function resolvePieceLocation(\n piece: PackagePiece,\n projectRoot: string,\n outDir: string,\n): PieceLocation {\n return locatePieceThrough(piece, projectRoot, outDir, undefined);\n}\n\nfunction locatePieceThrough(\n piece: PackagePiece,\n projectRoot: string,\n outDir: string,\n redirect: Redirect | undefined,\n): PieceLocation {\n const declared = piece.entry ?? piece.bundle;\n if (typeof declared !== \"string\" || declared === \"\") {\n throw new Error(\n `pieces: \"${piece.name}\" declares neither an entry nor a bundle`,\n );\n }\n // A list may derive a location from import.meta.url, which names the\n // written directory: it is read as the output it stands in for.\n const shown = isAbsolute(declared) ? toLogical(declared, redirect) : declared;\n const path = isAbsolute(declared) ? shown : join(projectRoot, declared);\n const form = piece.entry ? \"entry\" : \"bundle\";\n const disk = onDisk(path, redirect);\n const present =\n form === \"entry\"\n ? statSafe(disk)?.isFile()\n : statSafe(join(disk, \"package.json\"))?.isFile();\n if (!present) {\n throw new Error(\n `pieces: \"${piece.name}\" declares ${shown}, which is missing`,\n );\n }\n const dir = form === \"entry\" ? dirname(path) : path;\n // Both forms, not just `entry`: a descriptor.json is written into this\n // directory, and outside outDir that lands in tracked source.\n const piecesRoot = resolve(projectRoot, outDir, \"node\", \"pieces\");\n const inside = relative(piecesRoot, dir);\n if (inside === \"\" || inside.startsWith(\"..\") || isAbsolute(inside)) {\n const expected = toPosix(join(outDir, \"node\", \"pieces\"));\n throw new Error(\n `pieces: \"${piece.name}\" declares ${shown}, which is outside ${expected}/; ` +\n `a piece is built to ${expected}/<dir>/index.mjs and its entry must point there`,\n );\n }\n return form === \"entry\" ? { dir, entryFile: path, form } : { dir, form };\n}\n\n// Where the node build leaves the list of pieces a package ships. Its presence\n// on disk, not a pieces/<dir> in the source, is what says a package has them.\nexport function pieceListPath(target: {\n projectRoot: string;\n outDir: string;\n}): string {\n return resolve(\n target.projectRoot,\n target.outDir,\n \"node\",\n \"pieces\",\n \"index.mjs\",\n );\n}\n\n// `dist` is not a default here but a contract: a host reads a piece from\n// dist/node/pieces/<name>, and a list entry names that path literally.\nexport function assertPiecesOutDir(target: {\n outDir: string;\n pieces: PiecePlan[];\n}): void {\n if (target.pieces.length === 0 || target.outDir === \"dist\") return;\n throw new Error(\n `pieces: --out-dir ${target.outDir} cannot hold pieces; a piece is loaded from ` +\n `dist/node/pieces/<name> by the host, so a package that ships pieces builds to dist`,\n );\n}\n\n// A piece's version is its package's, written by the build; a list entry that\n// declares one is refused, so `name@version` always names one tarball.\nexport function assertPieceVersion(\n piece: PackagePiece,\n pkg: PackageIdentity,\n): void {\n if (\"version\" in piece) {\n throw new Error(\n `pieces: \"${piece.name}\" declares version ${String(piece.version)}; a piece takes its package's version (${pkg.version}), so remove \"version\" from pieces/index.ts`,\n );\n }\n}\n\n// The package.json written beside a piece built from an `entry`, giving the\n// directory npm-bundle shape so a registry can serve it on its own.\nexport function piecePackageJson(options: {\n name: string;\n version: string;\n description?: string;\n main: string;\n license?: string;\n dependencies?: Record<string, string>;\n}): Record<string, unknown> {\n return {\n name: options.name,\n version: options.version,\n description: options.description ?? \"\",\n type: \"module\",\n main: options.main,\n ...(options.license ? { license: options.license } : {}),\n // Only external packages: everything else is inlined, and a host installs\n // what is listed here before it loads the piece.\n dependencies: options.dependencies ?? {},\n };\n}\n\n// A prebuilt bundle's own package.json, restamped with the package's version.\nexport function bundlePackageJson(\n dir: string,\n version: string,\n): Record<string, unknown> {\n const current = JSON.parse(\n readFileSync(join(dir, \"package.json\"), \"utf8\"),\n ) as Record<string, unknown>;\n return { ...current, version };\n}\n\n// The descriptor written beside a piece: the list's name, the package's version,\n// then whatever the piece said about itself, in the framework's PieceMetadata shape.\nexport function pieceDescriptor(\n piece: PackagePiece,\n version: string,\n metadata: PieceMetadata,\n): Record<string, unknown> {\n const { name: _name, version: _version, ...rest } = metadata;\n return { name: piece.name, version, ...rest };\n}\n\n// The manifest's `pieces` with what the build learned: a built piece replaces\n// the source entry with its id in place, or is appended at the end.\n\n// A source entry nothing built is kept as it is and returned as `unbuilt`,\n// for the caller to warn about.\nexport function enrichManifestPieces(\n manifest: Manifest,\n built: BuiltPiece[],\n): { manifest: Manifest; unbuilt: string[] } {\n const byId = new Map(built.map((piece) => [piece.name, piece]));\n const toModule = (piece: BuiltPiece): PieceModule => ({\n id: piece.name,\n name: piece.displayName ?? piece.name,\n version: piece.version,\n ...(piece.description ? { description: piece.description } : {}),\n bundle: piece.bundle,\n descriptor: piece.descriptor,\n });\n const unbuilt: string[] = [];\n const seen = new Set<string>();\n const pieces: PieceModule[] = (manifest.pieces ?? []).map((entry) => {\n const hit = byId.get(entry.id);\n if (!hit) {\n unbuilt.push(entry.id);\n return entry;\n }\n seen.add(entry.id);\n return toModule(hit);\n });\n for (const piece of built) {\n if (!seen.has(piece.name)) pieces.push(toModule(piece));\n }\n return { manifest: { ...manifest, pieces }, unbuilt };\n}\n\nconst count = (record: unknown) =>\n typeof record === \"object\" && record !== null\n ? Object.keys(record).length\n : 0;\n\n// Build every planned piece, then read the built list and describe what it\n// names. Returns what was built, for the manifest.\nexport async function buildPieces(\n target: PieceBuildTarget,\n pkg: PackageIdentity,\n options: PieceBuildOptions,\n): Promise<BuiltPiece[]> {\n const { projectRoot, outDir } = target;\n assertPiecesOutDir(target);\n const redirect = target.writeTo\n ? {\n from: resolve(projectRoot, outDir),\n to: target.writeTo,\n toReal: realpathSafe(target.writeTo),\n }\n : undefined;\n // resolve, not join: an absolute --out-dir is what the browser and node\n // steps hand tsdown, and joining it onto the project root mangles it.\n const externalByDir = new Map<string, Map<string, ExternalDependency>>();\n for (const piece of target.pieces) {\n console.log(`\\n▶ Building piece ${piece.dir}...`);\n const outDir = resolve(projectRoot, piece.outDir);\n const external = new Map<string, ExternalDependency>();\n await options.bundle(\n buildPieceBuildConfig({\n entry: resolve(projectRoot, piece.entry),\n outDir: onDisk(outDir, redirect),\n ...(options.trace\n ? {\n plugins: [\n externalDepsPlugin(options.trace, external, {\n root: projectRoot,\n ...(options.cache ? { cache: options.cache } : {}),\n }),\n ],\n }\n : {}),\n }),\n );\n for (const dep of external.values()) {\n console.log(\n `piece ${piece.dir}: ${dep.name}@${dep.version} stays external, it needs ${projectPath(projectRoot, dep.file)}`,\n );\n }\n externalByDir.set(outDir, external);\n }\n\n // The list is the source of truth for names; a package that\n // built pieces without a list has nothing a host could read.\n const listPath = pieceListPath(target);\n if (!existsSync(onDisk(listPath, redirect))) {\n throw new Error(\n `pieces: ${toPosix(relative(projectRoot, listPath))} was not built; ` +\n `pieces/index.ts must export the list of pieces this package ships`,\n );\n }\n const described = describePiecesThrough(projectRoot, listPath, redirect);\n\n const built: BuiltPiece[] = [];\n const listedDirs = new Set<string>();\n for (const piece of described.list) {\n const location = locatePieceThrough(piece, projectRoot, outDir, redirect);\n const dirOnDisk = onDisk(location.dir, redirect);\n assertPieceVersion(piece, pkg);\n const failure = described.errors.find((e) => e.name === piece.name);\n if (failure) {\n throw new Error(\n `pieces: \"${piece.name}\" could not be described: ${failure.message}`,\n );\n }\n const found = described.pieces.find((p) => p.name === piece.name);\n if (!found) {\n throw new Error(`pieces: \"${piece.name}\" was not described`);\n }\n const metadata = found.metadata;\n const relDir = toPosix(relative(projectRoot, location.dir));\n listedDirs.add(relDir);\n\n writeFileSync(\n join(dirOnDisk, \"descriptor.json\"),\n JSON.stringify(\n pieceDescriptor(piece, pkg.version, metadata),\n createJsonReplacer(),\n 2,\n ) + \"\\n\",\n );\n const piecePackage =\n location.form === \"entry\" && location.entryFile\n ? piecePackageJson({\n name: piece.name,\n version: pkg.version,\n description: metadata.description,\n main: relative(location.dir, location.entryFile),\n license: pkg.license,\n dependencies: externalDependencyVersions(\n externalByDir.get(resolve(location.dir))?.values() ?? [],\n ),\n })\n : bundlePackageJson(dirOnDisk, pkg.version);\n writeFileSync(\n join(dirOnDisk, \"package.json\"),\n JSON.stringify(piecePackage, null, 2) + \"\\n\",\n );\n console.log(\n `piece: ${piece.name}@${pkg.version} -> ${relDir} ` +\n `(${count(metadata.actions)} actions, ${count(metadata.triggers)} triggers)`,\n );\n built.push({\n name: piece.name,\n version: pkg.version,\n displayName: metadata.displayName,\n description: metadata.description,\n bundle: relDir,\n descriptor: `${relDir}/descriptor.json`,\n });\n }\n\n warnUnlistedPieces(target.pieces, listedDirs);\n return built;\n}\n\n// A built piece no list entry points into ships without a host ever finding it.\nfunction warnUnlistedPieces(\n planned: PiecePlan[],\n listedDirs: Set<string>,\n): void {\n for (const piece of planned) {\n if (!listedDirs.has(toPosix(piece.outDir))) {\n console.warn(\n `⚠ pieces: pieces/${piece.dir} was built but pieces/index.ts does not list it; a host will not find it`,\n );\n }\n }\n}\n\n// Make sure the manifest ships under outDir (tsdown copies it only in the\n// browser build) and, when pieces were built, list them in that copy.\n\n// Always copied afresh: only <outDir>/node is cleaned by the builds, so a copy\n// left by the last build would otherwise outlive an edit to the source.\n\n// The source file is never written. Returns the path of the copy, if any.\nexport function syncDistManifest(\n target: PieceBuildTarget,\n built: BuiltPiece[],\n externalDependencies: Record<string, string> = {},\n): string | undefined {\n const { projectRoot, outDir } = target;\n const source = join(projectRoot, \"powerhouse.manifest.json\");\n // resolve, not join: an absolute --out-dir is a location, not a suffix.\n const copy = resolve(projectRoot, outDir, \"powerhouse.manifest.json\");\n // The built list, not the source plan: a package whose pieces are all\n // `bundle:` entries has no pieces/<dir> and still ships pieces.\n const shipsPieces = existsSync(pieceListPath(target));\n const shipsExternal = Object.keys(externalDependencies).length > 0;\n if (!existsSync(source)) {\n if (shipsPieces) {\n console.warn(\"⚠ no powerhouse.manifest.json; pieces will not be listed\");\n }\n if (shipsExternal) {\n console.warn(\n \"⚠ no powerhouse.manifest.json; external dependencies will not be listed\",\n );\n }\n return undefined;\n }\n mkdirSync(dirname(copy), { recursive: true });\n copyFileSync(source, copy);\n if (!shipsPieces && !shipsExternal) return copy;\n\n let manifest = JSON.parse(readFileSync(copy, \"utf8\")) as Manifest;\n if (shipsPieces) {\n const enriched = enrichManifestPieces(manifest, built);\n for (const id of enriched.unbuilt) {\n console.warn(`⚠ manifest lists piece \"${id}\" but nothing built it`);\n }\n manifest = enriched.manifest;\n }\n if (shipsExternal) manifest = { ...manifest, externalDependencies };\n writeFileSync(copy, JSON.stringify(manifest, null, 2) + \"\\n\");\n return copy;\n}\n"],"mappings":";;;;;;;AAkCA,MAAa,8BAA8C;CACzD,uBAAO,IAAI,IAAI;CACf,sBAAM,IAAI,IAAI;AAChB;AAwBA,MAAM,eAAe,GAAG,IAAI,cAAc;;AAG1C,SAAgB,YAAY,MAAc,MAAsB;CAC9D,OAAO,SAAS,MAAM,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG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EA,mBAAmB,OAAO,QAAQ,UAAU;CAC5C,OAAO;AACT;AAGA,SAAS,mBACP,SACA,YACM;CACN,KAAK,MAAM,SAAS,SAClB,IAAI,CAAC,WAAW,IAAI,QAAQ,MAAM,MAAM,CAAC,GACvC,QAAQ,KACN,oBAAoB,MAAM,IAAI,yEAChC;AAGN;AASA,SAAgB,iBACd,QACA,OACA,uBAA+C,CAAC,GAC5B;CACpB,MAAM,EAAE,aAAa,WAAW;CAChC,MAAM,SAAS,KAAK,aAAa,0BAA0B;CAE3D,MAAM,OAAO,QAAQ,aAAa,QAAQ,0BAA0B;CAGpE,MAAM,cAAc,WAAW,cAAc,MAAM,CAAC;CACpD,MAAM,gBAAgB,OAAO,KAAK,oBAAoB,CAAC,CAAC,SAAS;CACjE,IAAI,CAAC,WAAW,MAAM,GAAG;EACvB,IAAI,aACF,QAAQ,KAAK,0DAA0D;EAEzE,IAAI,eACF,QAAQ,KACN,yEACF;EAEF;CACF;CACA,UAAU,QAAQ,IAAI,GAAG,EAAE,WAAW,KAAK,CAAC;CAC5C,aAAa,QAAQ,IAAI;CACzB,IAAI,CAAC,eAAe,CAAC,eAAe,OAAO;CAE3C,IAAI,WAAW,KAAK,MAAM,aAAa,MAAM,MAAM,CAAC;CACpD,IAAI,aAAa;EACf,MAAM,WAAW,qBAAqB,UAAU,KAAK;EACrD,KAAK,MAAM,MAAM,SAAS,SACxB,QAAQ,KAAK,2BAA2B,GAAG,uBAAuB;EAEpE,WAAW,SAAS;CACtB;CACA,IAAI,eAAe,WAAW;EAAE,GAAG;EAAU;CAAqB;CAClE,cAAc,MAAM,KAAK,UAAU,UAAU,MAAM,CAAC,IAAI,IAAI;CAC5D,OAAO;AACT"}
@@ -1,5 +1,9 @@
1
1
  //#region clis/command-names.d.ts
2
- declare const phCliCommandNames: readonly ["generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "migrate", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
2
+ export declare const phCliCommandNames: readonly ["run", "host", "generate", "vetra", "connect", "build", "publish", "list", "l", "access-token", "registry-login", "inspect", "is", "keyframes", "mcp", "migrate", "model", "switchboard", "reactor", "login", "logout", "install", "add", "i", "uninstall", "remove"];
3
+ /** The uniform-runners commands: forwarded to ph-cli only with FEATURE_UNIFORM_RUNNERS_ENABLED. */
4
+ export declare const uniformRunnerCommandNames: ReadonlySet<string>;
5
+ /** Set by ph-cmd on the ph-cli it spawns in the project root: where `ph` was run. */
6
+ export declare const CALLER_CWD_ENV = "PH_CALLER_CWD";
3
7
  //#endregion
4
- export { phCliCommandNames };
8
+ export {};
5
9
  //# sourceMappingURL=command-names.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"command-names.d.mts","names":[],"sources":["../../clis/command-names.ts"],"mappings":";cAEa,iBAAA"}
1
+ {"version":3,"file":"command-names.d.mts","names":[],"sources":["../../clis/command-names.ts"],"mappings":";qBAEa;;qBA8BA,2BAA2B;;qBAM3B"}
@@ -1,5 +1,7 @@
1
1
  //#region clis/command-names.ts
2
2
  const phCliCommandNames = [
3
+ "run",
4
+ "host",
3
5
  "generate",
4
6
  "vetra",
5
7
  "connect",
@@ -11,7 +13,10 @@ const phCliCommandNames = [
11
13
  "registry-login",
12
14
  "inspect",
13
15
  "is",
16
+ "keyframes",
17
+ "mcp",
14
18
  "migrate",
19
+ "model",
15
20
  "switchboard",
16
21
  "reactor",
17
22
  "login",
@@ -22,7 +27,11 @@ const phCliCommandNames = [
22
27
  "uninstall",
23
28
  "remove"
24
29
  ];
30
+ /** The uniform-runners commands: forwarded to ph-cli only with FEATURE_UNIFORM_RUNNERS_ENABLED. */
31
+ const uniformRunnerCommandNames = /* @__PURE__ */ new Set(["run", "host"]);
32
+ /** Set by ph-cmd on the ph-cli it spawns in the project root: where `ph` was run. */
33
+ const CALLER_CWD_ENV = "PH_CALLER_CWD";
25
34
  //#endregion
26
- export { phCliCommandNames };
35
+ export { CALLER_CWD_ENV, phCliCommandNames, uniformRunnerCommandNames };
27
36
 
28
37
  //# sourceMappingURL=command-names.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"command-names.mjs","names":[],"sources":["../../clis/command-names.ts"],"sourcesContent":["// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"migrate\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n"],"mappings":";AAEA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"command-names.mjs","names":[],"sources":["../../clis/command-names.ts"],"sourcesContent":["// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"run\",\n \"host\",\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"keyframes\",\n \"mcp\",\n \"migrate\",\n \"model\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n\n/** The uniform-runners commands: forwarded to ph-cli only with FEATURE_UNIFORM_RUNNERS_ENABLED. */\nexport const uniformRunnerCommandNames: ReadonlySet<string> = new Set([\n \"run\",\n \"host\",\n]);\n\n/** Set by ph-cmd on the ph-cli it spawns in the project root: where `ph` was run. */\nexport const CALLER_CWD_ENV = \"PH_CALLER_CWD\";\n"],"mappings":";AAEA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,4CAAiD,IAAI,IAAI,CACpE,OACA,MACF,CAAC;;AAGD,MAAa,iBAAiB"}
@@ -1,462 +1,3 @@
1
- import { z } from "zod";
2
-
3
- //#region clis/types.d.ts
4
- type DrivePreserveStrategies = typeof DRIVES_PRESERVE_STRATEGIES;
5
- type DrivePreserveStrategy = DrivePreserveStrategies[number];
6
- type LogLevels = typeof LOG_LEVELS;
7
- type LogLevel = LogLevels[number];
8
- type PHPackageProvider = "npm" | "github" | "local" | "registry";
9
- type PowerhousePackage = {
10
- packageName: string;
11
- version?: string;
12
- provider?: PHPackageProvider;
13
- url?: string;
14
- };
15
- type PHConnectBranding = {
16
- appName?: string;
17
- homeBackground?: string | null;
18
- };
19
- type PHConnectDefaultDriveRemote = {
20
- url: string;
21
- name?: string | null;
22
- icon?: string | null;
23
- };
24
- type PHConnectDefaultDriveLocal = {
25
- /** Discriminator: this entry is a local drive created on first boot. */local: true; /** Stable drive id; the drive is not re-created on later boots. */
26
- id: string;
27
- name?: string | null;
28
- icon?: string | null; /** Drive app (preferred editor) to open on the drive. */
29
- app?: string;
30
- };
31
- type PHConnectDefaultDrive = PHConnectDefaultDriveRemote | PHConnectDefaultDriveLocal;
32
- type PHConnectDriveSection = {
33
- enabled?: boolean;
34
- allowAdd?: boolean;
35
- allowDelete?: boolean;
36
- };
37
- type PHConnectDriveSections = {
38
- remote?: PHConnectDriveSection;
39
- local?: PHConnectDriveSection;
40
- };
41
- type PHConnectDrives = {
42
- allowAddDrive?: boolean;
43
- defaultDrives?: PHConnectDefaultDrive[];
44
- preserveStrategy?: DrivePreserveStrategy;
45
- sections?: PHConnectDriveSections;
46
- };
47
- type PHConnectApp = {
48
- logLevel?: "debug" | "info" | "warn" | "error";
49
- basePath?: string;
50
- offline?: boolean;
51
- studioMode?: boolean;
52
- };
53
- type PHConnectAi = {
54
- /** Enables the in-browser AI assistant (chat FAB + window). Off by default. */assistantEnabled?: boolean;
55
- };
56
- type PHConnectPackages = {
57
- externalEnabled?: boolean; /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
58
- liveReload?: boolean;
59
- };
60
- type PHRenownRainbowAdapterConfig = {
61
- /** WalletConnect project id; required for the rainbow adapter to function. */walletConnectProjectId?: string; /** Optional Infura project id used to build RPC transports. */
62
- infuraProjectId?: string;
63
- };
64
- type PHRenownPrivyAdapterConfig = {
65
- /** Privy application id; required for the privy adapter to function. */appId?: string; /** Optional Privy client id. */
66
- clientId?: string; /** Login methods this adapter offers; defaults per adapter when omitted. */
67
- methods?: string[];
68
- };
69
- type PHConnectRenownAdapters = {
70
- rainbow?: PHRenownRainbowAdapterConfig;
71
- privy?: PHRenownPrivyAdapterConfig;
72
- };
73
- type PHConnectRenown = {
74
- url?: string;
75
- networkId?: string;
76
- chainId?: number; /** Renown localStorage namespace; share it across Connects to share login. */
77
- namespace?: string; /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
78
- switchboardUrl?: string; /** Per-adapter wallet config; presence of a key enables that adapter. */
79
- adapters?: PHConnectRenownAdapters;
80
- };
81
- type PHConnectSentry = {
82
- /** Sentry DSN URL. `null` disables Sentry entirely. */dsn?: string | null; /** Sentry environment label. */
83
- env?: string; /** Enable Sentry performance tracing. */
84
- tracing?: boolean;
85
- };
86
- type PHConnectInstance = {
87
- namespace: string | null;
88
- reactorWorker: boolean;
89
- };
90
- /** Each flag implies its predecessors, and must match the fleet Connect syncs
91
- * with or the two compute different replay outcomes. */
92
- type PHConnectReactorFeatureFlags = {
93
- /** Decide writes from the document stream instead of the meta cache. */documentDecisions?: boolean; /** Enforce the auth scope's policy at admission, replay, and read. */
94
- authEnforcement?: boolean; /** Let `{ group }` principals match, via the group documents' rosters. */
95
- authGroups?: boolean; /** Evaluate `where` / `match` conditions on grants. */
96
- authConditions?: boolean;
97
- };
98
- type PHConnectReactor = {
99
- featureFlags?: PHConnectReactorFeatureFlags;
100
- };
101
- /**
102
- * A URL-matching pattern for a service-worker runtime-caching rule, in
103
- * JSON-serialisable form. A plain string is handed to Workbox verbatim (exact
104
- * URL or same-origin path match). `{ source, flags }` is reconstructed into a
105
- * `RegExp` at build time — use it for prefix/suffix/origin matches (e.g.
106
- * `{ source: "^https://api\\.acme\\.io/" }`). Function-valued patterns aren't
107
- * expressible here; regex covers the realistic package cases.
108
- */
109
- type PHConnectPwaUrlPattern = string | {
110
- source: string;
111
- flags?: string;
112
- };
113
- type PHConnectPwaCacheStrategy = "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
114
- /** Serialisable subset of a Workbox `RuntimeCaching` rule. */
115
- type PHConnectPwaRuntimeCaching = {
116
- urlPattern: PHConnectPwaUrlPattern;
117
- handler: PHConnectPwaCacheStrategy;
118
- method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "PATCH";
119
- options?: {
120
- cacheName?: string;
121
- /** Seconds a NetworkFirst rule waits for the network before falling back
122
- * to the cache. */
123
- networkTimeoutSeconds?: number;
124
- expiration?: {
125
- maxEntries?: number;
126
- maxAgeSeconds?: number;
127
- };
128
- cacheableResponse?: {
129
- statuses?: number[];
130
- headers?: Record<string, string>;
131
- };
132
- };
133
- };
134
- type PHConnectPwaIcon = {
135
- src: string;
136
- sizes?: string;
137
- type?: string;
138
- purpose?: string;
139
- };
140
- /**
141
- * A File Handling API entry a package or project contributes: the OS-level
142
- * file types the installed Connect PWA offers to open. There is deliberately
143
- * no `action` field — consuming launched files requires runtime code that
144
- * lives in Connect itself, so every handler (built-in or contributed) opens
145
- * at Connect's app root, injected at build time.
146
- */
147
- type PHConnectPwaFileHandler = {
148
- /** MIME type → file extensions (each must start with "."). */accept: Record<string, string[]>; /** OS-level file-type icons. */
149
- icons?: PHConnectPwaIcon[];
150
- launch_type?: "single-client" | "multiple-clients";
151
- };
152
- /** Web-app-manifest fields a package or project may override. */
153
- type PHConnectPwaManifest = {
154
- name?: string;
155
- short_name?: string;
156
- description?: string;
157
- theme_color?: string;
158
- background_color?: string;
159
- display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
160
- start_url?: string;
161
- scope?: string;
162
- icons?: PHConnectPwaIcon[]; /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
163
- file_handlers?: PHConnectPwaFileHandler[]; /** How the OS launches the app for handled files/links. */
164
- launch_handler?: {
165
- client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
166
- };
167
- /** App-store-style categories. NOT authored under `connect.pwa` — derived at
168
- * build/runtime from the `category` field of every contributing
169
- * `powerhouse.manifest.json` (project + packages), unioned across them. */
170
- categories?: string[];
171
- };
172
- /**
173
- * PWA / service-worker overrides contributed by a package or the project.
174
- * Layered on top of Connect's hardcoded PWA defaults at build time. Scalar
175
- * fields deep-merge (later layer wins); every array member — the manifest
176
- * arrays (`icons`, `file_handlers`, and the derived `categories`) plus the
177
- * top-level `globPatterns`, `globIgnores`, `runtimeCaching` and
178
- * `navigateFallbackDenylist` — is additive (concatenated/unioned);
179
- * `maximumFileSizeToCacheInBytes` takes the max across contributors.
180
- * Precedence: defaults < package fragments < project config.
181
- */
182
- type PHConnectPwa = {
183
- manifest?: PHConnectPwaManifest; /** Extra Workbox precache globs, unioned with the built-in patterns. */
184
- globPatterns?: string[]; /** Extra Workbox precache ignore globs, unioned with the built-in list. */
185
- globIgnores?: string[]; /** Raise the precache file-size ceiling; the max across contributors wins. */
186
- maximumFileSizeToCacheInBytes?: number; /** Additional runtime-caching rules, appended after the built-in rules. */
187
- runtimeCaching?: PHConnectPwaRuntimeCaching[]; /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
188
- navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
189
- };
190
- type PHConnectRuntimeConfig = {
191
- branding?: PHConnectBranding;
192
- app?: PHConnectApp;
193
- ai?: PHConnectAi;
194
- packages?: PHConnectPackages;
195
- drives?: PHConnectDrives;
196
- renown?: PHConnectRenown;
197
- sentry?: PHConnectSentry;
198
- instance?: PHConnectInstance;
199
- reactor?: PHConnectReactor;
200
- pwa?: PHConnectPwa;
201
- };
202
- /** Which Renown instance a reactor authenticates against, server-side. */
203
- type PHReactorRenown = {
204
- /** "self" reads this reactor's own renown read model; "remote" (default)
205
- * queries a Renown or Switchboard instance. */
206
- source?: "remote" | "self"; /** Renown base URL; also the instance this reactor's own identity uses. */
207
- url?: string; /** Switchboard GraphQL endpoint to read credentials from directly. */
208
- switchboardUrl?: string;
209
- };
210
- type PowerhouseConfig = {
211
- logLevel: LogLevel;
212
- documentModelsDir: string;
213
- editorsDir: string;
214
- processorsDir: string;
215
- subgraphsDir: string;
216
- importScriptsDir: string;
217
- skipFormat: boolean;
218
- interactive?: boolean;
219
- watch?: boolean;
220
- reactor?: {
221
- port?: number;
222
- https?: undefined | boolean | {
223
- keyPath: string;
224
- certPath: string;
225
- };
226
- storage?: {
227
- type: "filesystem" | "memory" | "postgres" | "browser";
228
- filesystemPath?: string;
229
- postgresUrl?: string;
230
- };
231
- };
232
- auth?: {
233
- enabled?: boolean;
234
- admins: string[];
235
- renown?: PHReactorRenown;
236
- };
237
- switchboard?: {
238
- database?: {
239
- url?: string;
240
- };
241
- port?: number;
242
- };
243
- studio?: {
244
- port?: number;
245
- host?: string;
246
- https: boolean;
247
- openBrowser?: boolean;
248
- };
249
- packages?: PowerhousePackage[];
250
- vetra?: {
251
- driveId?: string;
252
- driveUrl?: string;
253
- connectPort?: number;
254
- };
255
- packageRegistryUrl?: string;
256
- connect?: PHConnectRuntimeConfig;
257
- };
258
- //#endregion
259
- //#region document-model/schemas.d.ts
260
- declare const ManifestSchema: z.ZodObject<{
261
- name: z.ZodString;
262
- description: z.ZodOptional<z.ZodString>;
263
- category: z.ZodOptional<z.ZodString>;
264
- image: z.ZodOptional<z.ZodString>;
265
- publisher: z.ZodOptional<z.ZodObject<{
266
- name: z.ZodOptional<z.ZodString>;
267
- url: z.ZodOptional<z.ZodString>;
268
- }, z.core.$strip>>;
269
- documentModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
- id: z.ZodString;
271
- name: z.ZodString;
272
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
273
- }, z.core.$strip>>>;
274
- apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
275
- id: z.ZodString;
276
- name: z.ZodString;
277
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
- }, z.core.$strip>>>;
279
- editors: z.ZodOptional<z.ZodArray<z.ZodObject<{
280
- id: z.ZodString;
281
- name: z.ZodString;
282
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
283
- }, z.core.$strip>>>;
284
- processors: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
- id: z.ZodString;
286
- name: z.ZodString;
287
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
288
- }, z.core.$strip>>>;
289
- subgraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
290
- id: z.ZodString;
291
- name: z.ZodString;
292
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
293
- }, z.core.$strip>>>;
294
- config: z.ZodOptional<z.ZodArray<z.ZodObject<{
295
- name: z.ZodString;
296
- type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
297
- description: z.ZodOptional<z.ZodString>;
298
- required: z.ZodOptional<z.ZodBoolean>;
299
- default: z.ZodOptional<z.ZodBoolean>;
300
- }, z.core.$strip>>>;
301
- pwa: z.ZodOptional<z.ZodType<PHConnectPwa, unknown, z.core.$ZodTypeInternals<PHConnectPwa, unknown>>>;
302
- }, z.core.$strip>;
303
- //#endregion
304
- //#region document-model/types.d.ts
305
- type Manifest = z.infer<typeof ManifestSchema>;
306
- //#endregion
307
- //#region clis/constants.d.ts
308
- declare const SERVICE_ACTIONS: readonly ["start", "stop", "status", "setup", "restart"];
309
- declare const SECONDS_IN_DAY: number;
310
- declare const DEFAULT_EXPIRY_DAYS = 7;
311
- declare const DEFAULT_EXPIRY_SECONDS: number;
312
- declare const DRIVES_PRESERVE_STRATEGIES: readonly ["preserve-all", "preserve-by-url-and-detach"];
313
- declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error", "verbose"];
314
- declare const DEFAULT_TIMEOUT: 300;
315
- declare const DEFAULT_CONNECT_STUDIO_PORT: 3000;
316
- declare const DEFAULT_VETRA_CONNECT_PORT: 3001;
317
- declare const DEFAULT_CONNECT_PREVIEW_PORT: 4173;
318
- declare const DEFAULT_CONNECT_OUTDIR: ".ph/connect-build/dist/";
319
- declare const DEFAULT_RENOWN_URL: "https://www.renown.id";
320
- declare const DEFAULT_REGISTRY_URL: "https://registry.vetra.io";
321
- declare const DEFAULT_SWITCHBOARD_PORT: 4001;
322
- declare const PROJECT_PORT_BAND_SIZE: 1000;
323
- declare const PROJECT_PORT_BAND_SWITCHBOARD: 7000;
324
- declare const PROJECT_PORT_BAND_STUDIO: 6000;
325
- declare const PROJECT_PORT_BAND_VETRA_CONNECT: 2000;
326
- declare const DEFAULT_VETRA_DRIVE_ID: "vetra";
327
- declare const MINIMUM_NODE_VERSION: "24.0.0";
328
- declare const PH_BIN: "ph-cli-legacy";
329
- declare const POWERHOUSE_CONFIG_FILE: "powerhouse.config.json";
330
- declare const PH_GLOBAL_DIR_NAME: ".ph";
331
- declare const PH_GLOBAL_PROJECT_NAME: ".ph";
332
- declare const HOME_DIR: string;
333
- declare const POWERHOUSE_GLOBAL_DIR: string;
334
- declare const VERSIONED_PEER_DEPENDENCIES: string[];
335
- declare const REACTOR_API_PACKAGE = "@powerhousedao/reactor-api";
336
- declare const ANALYTICS_ENGINE_CORE_PACKAGE = "@powerhousedao/analytics-engine-core";
337
- declare const GRAPHQL_PACKAGE = "graphql";
338
- declare const GRAPHQL_TAG_PACKAGE = "graphql-tag";
339
- declare const PEER_EXTERNAL_DEPENDENCIES: {
340
- readonly graphql: {
341
- readonly peer: "^16";
342
- readonly dev: "16.12.0";
343
- };
344
- readonly "graphql-tag": {
345
- readonly peer: "^2";
346
- readonly dev: "2.12.6";
347
- };
348
- readonly react: {
349
- readonly peer: "^19";
350
- readonly dev: "19.2.6";
351
- };
352
- readonly "react-dom": {
353
- readonly peer: "^19";
354
- readonly dev: "19.2.6";
355
- };
356
- readonly zod: {
357
- readonly peer: "^4";
358
- readonly dev: "4.3.6";
359
- };
360
- };
361
- declare const FEATURE_DEPENDENCIES: {
362
- readonly analyticsProcessor: {
363
- readonly peerVersioned: readonly ["@powerhousedao/analytics-engine-core"];
364
- readonly peerExternal: {};
365
- };
366
- };
367
- declare const VERSIONED_DEPENDENCIES: string[];
368
- declare const BOILERPLATE_ALLOWED_BUILDS: readonly ["@apollo/protobufjs", "@datadog/pprof", "@parcel/watcher", "@reown/appkit", "bufferutil", "esbuild", "keccak", "protobufjs", "utf-8-validate"];
369
- declare const BOILERPLATE_DEPENDENCY_OVERRIDES: {
370
- readonly "date-fns": "4.3.0";
371
- readonly vite: "8.0.14";
372
- readonly rolldown: "1.0.2";
373
- };
374
- declare const VERSIONED_DEV_DEPENDENCIES: string[];
375
- declare const packageJsonExports: {
376
- readonly ".": {
377
- readonly types: "./dist/types/index.d.ts";
378
- readonly browser: "./dist/browser/index.js";
379
- readonly node: "./dist/node/index.mjs";
380
- };
381
- readonly "./reactor": {
382
- readonly types: "./dist/types/reactor/index.d.ts";
383
- readonly browser: "./dist/browser/reactor/index.js";
384
- };
385
- readonly "./document-models": {
386
- readonly types: "./dist/types/document-models/index.d.ts";
387
- readonly browser: "./dist/browser/document-models/index.js";
388
- readonly node: "./dist/node/document-models/index.mjs";
389
- };
390
- readonly "./document-models/*": {
391
- readonly types: "./dist/types/document-models/*/index.d.ts";
392
- readonly browser: "./dist/browser/document-models/*/index.js";
393
- readonly node: "./dist/node/document-models/*/index.mjs";
394
- };
395
- readonly "./editors": {
396
- readonly types: "./dist/types/editors/index.d.ts";
397
- readonly browser: "./dist/browser/editors/index.js";
398
- readonly node: "./dist/node/editors/index.mjs";
399
- };
400
- readonly "./editors/*": {
401
- readonly types: "./dist/types/editors/*/editor.d.ts";
402
- readonly browser: "./dist/browser/editors/*/editor.js";
403
- readonly node: "./dist/node/editors/*/editor.mjs";
404
- };
405
- readonly "./subgraphs": {
406
- readonly types: "./dist/types/subgraphs/index.d.ts";
407
- readonly browser: "./dist/browser/subgraphs/index.js";
408
- readonly node: "./dist/node/subgraphs/index.mjs";
409
- };
410
- readonly "./processors": {
411
- readonly types: "./dist/types/processors/index.d.ts";
412
- readonly browser: "./dist/browser/processors/index.js";
413
- readonly node: "./dist/node/processors/index.mjs";
414
- };
415
- readonly "./manifest": "./dist/powerhouse.manifest.json";
416
- readonly "./style.css": "./dist/style.css";
417
- };
418
- declare const packageScripts: {
419
- readonly "test:watch": "vitest";
420
- readonly lint: "oxlint --type-aware --type-check";
421
- readonly "lint:fix": "oxlint --type-aware --type-check --fix";
422
- readonly format: "oxfmt";
423
- readonly "format:check": "oxfmt --check";
424
- readonly tsc: "tsc";
425
- readonly "tsc:watch": "tsc --watch";
426
- readonly generate: "ph-cli generate";
427
- readonly connect: "ph-cli connect";
428
- readonly build: "ph-cli build";
429
- readonly reactor: "ph-cli reactor";
430
- readonly service: "ph-cli service";
431
- readonly vetra: "ph-cli vetra";
432
- readonly "service-startup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh";
433
- readonly "service-unstartup": "bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh";
434
- };
435
- declare const externalDependencies: {};
436
- declare const LEGACY_LINT_FORMAT_DEPENDENCIES: readonly ["@eslint/js", "eslint", "eslint-config-prettier", "eslint-plugin-prettier", "eslint-plugin-react", "eslint-plugin-react-hooks", "globals", "prettier", "typescript-eslint"];
437
- declare const LEGACY_LINT_FORMAT_FILES: readonly ["eslint.config.js", "eslint.config.mjs", "eslint.config.cjs", "eslint.config.ts", ".eslintrc", ".eslintrc.js", ".eslintrc.cjs", ".eslintrc.json", ".eslintrc.yml", ".eslintrc.yaml", ".eslintignore", ".prettierrc", ".prettierrc.js", ".prettierrc.cjs", ".prettierrc.json", ".prettierrc.yml", ".prettierrc.yaml", "prettier.config.js", "prettier.config.cjs", "prettier.config.mjs", ".prettierignore"];
438
- declare const externalDevDependencies: {
439
- readonly "@electric-sql/pglite": "0.3.15";
440
- readonly "@electric-sql/pglite-tools": "0.2.20";
441
- readonly "@powerhousedao/document-engineering": "1.40.5";
442
- readonly "@tailwindcss/cli": "^4.1.18";
443
- readonly "@tailwindcss/vite": "^4.1.18";
444
- readonly "@types/node": "^24.9.2";
445
- readonly "@types/react": "^19.2.3";
446
- readonly "@types/react-dom": "^19.2.3";
447
- readonly "@vitejs/plugin-react": "^6.0.1";
448
- readonly "@vitest/coverage-v8": "4.1.1";
449
- readonly oxfmt: "0.55.0";
450
- readonly oxlint: "1.70.0";
451
- readonly "oxlint-tsgolint": "0.23.0";
452
- readonly tailwindcss: "^4.1.16";
453
- readonly typescript: "^5.9.3";
454
- readonly vite: "^8.0.10";
455
- readonly "vite-tsconfig-paths": "6.1.1";
456
- readonly vitest: "4.1.1";
457
- };
458
- declare const defaultManifest: Manifest;
459
- declare const DEFAULT_CONFIG: PowerhouseConfig;
460
- //#endregion
461
- export { ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, defaultManifest, externalDependencies, externalDevDependencies, packageJsonExports, packageScripts };
462
- //# sourceMappingURL=constants.d.mts.map
1
+ import { A as PH_BIN, B as REACTOR_API_PACKAGE, C as HOME_DIR, D as LOG_LEVELS, E as LEGACY_LINT_FORMAT_FILES, F as POWERHOUSE_GLOBAL_DIR, G as VERSIONED_DEV_DEPENDENCIES, H as SECONDS_IN_DAY, I as PROJECT_PORT_BAND_SIZE, J as externalDependencies, K as VERSIONED_PEER_DEPENDENCIES, L as PROJECT_PORT_BAND_STUDIO, M as PH_GLOBAL_PROJECT_NAME, N as PIECES_FRAMEWORK_PACKAGE, O as MINIMUM_NODE_VERSION, P as POWERHOUSE_CONFIG_FILE, R as PROJECT_PORT_BAND_SWITCHBOARD, S as GRAPHQL_TAG_PACKAGE, T as LEGACY_LINT_FORMAT_DEPENDENCIES, U as SERVICE_ACTIONS, V as RELATIONAL_DB_PROCESSOR_CLASS, W as VERSIONED_DEPENDENCIES, X as packageJsonExports, Y as externalDevDependencies, Z as packageScripts, _ as DEFAULT_VETRA_CONNECT_PORT, a as BOILERPLATE_TRANSITIVE_OVERRIDES, b as FEATURE_DEPENDENCIES, c as DEFAULT_CONNECT_PREVIEW_PORT, d as DEFAULT_EXPIRY_DAYS, f as DEFAULT_EXPIRY_SECONDS, g as DEFAULT_TIMEOUT, h as DEFAULT_SWITCHBOARD_PORT, i as BOILERPLATE_DEPENDENCY_OVERRIDES, j as PH_GLOBAL_DIR_NAME, k as PEER_EXTERNAL_DEPENDENCIES, l as DEFAULT_CONNECT_STUDIO_PORT, m as DEFAULT_RENOWN_URL, n as ANALYTICS_ENGINE_CORE_PACKAGE, o as DEFAULT_CONFIG, p as DEFAULT_REGISTRY_URL, q as defaultManifest, r as BOILERPLATE_ALLOWED_BUILDS, s as DEFAULT_CONNECT_OUTDIR, u as DEFAULT_DRIVE_ICON, v as DEFAULT_VETRA_DRIVE_ID, w as KYSELY_PACKAGE, x as GRAPHQL_PACKAGE, y as DRIVES_PRESERVE_STRATEGIES, z as PROJECT_PORT_BAND_VETRA_CONNECT } from "./types-Qy1GBoTY.mjs";
2
+ export { ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, BOILERPLATE_TRANSITIVE_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_DRIVE_ICON, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, KYSELY_PACKAGE, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, PIECES_FRAMEWORK_PACKAGE, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, RELATIONAL_DB_PROCESSOR_CLASS, SECONDS_IN_DAY, SERVICE_ACTIONS, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, defaultManifest, externalDependencies, externalDevDependencies, packageJsonExports, packageScripts };
3
+ export {};