@powerhousedao/shared 6.2.3-dev.10 → 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 -93
  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 -475
  122. package/dist/clis/constants.mjs +84 -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 +3806 -1952
  137. package/dist/clis/index.d.mts.map +1 -1
  138. package/dist/clis/index.mjs +1535 -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 +103 -101
  204. package/dist/document-drive/index.d.ts.map +1 -1
  205. package/dist/document-drive/index.js +41 -32
  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 -5144
  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 +22 -2
  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-DDpRvBK_.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-DP3QgHTq.d.ts +0 -836
  358. package/dist/index-DP3QgHTq.d.ts.map +0 -1
  359. package/dist/types-BIoOWpOT.d.ts +0 -3172
  360. package/dist/types-BIoOWpOT.d.ts.map +0 -1
  361. package/dist/types-C1in4fl3.d.ts.map +0 -1
  362. package/dist/types-DDpRvBK_.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
@@ -1,8 +1,62 @@
1
- import { D as PHConnectRuntimeConfig, I as PowerhouseConfig, L as PowerhousePackage, S as PHConnectPwaUrlPattern, _ as PHConnectPwaCacheStrategy, b as PHConnectPwaManifest, g as PHConnectPwa, v as PHConnectPwaFileHandler, x as PHConnectPwaRuntimeCaching, y as PHConnectPwaIcon } from "../types-BIoOWpOT.js";
2
- import { ConfigAdapter, ConfigLoader, ConfigShape, DeepPartial, deepMerge } from "./config-loader.js";
1
+ import { $ as connectRuntimePwaSchema, A as connectPackagesSchema, B as connectReactorSchema, C as connectExplorerIconsSchema, D as connectLengthSchema, E as connectInstanceSchema, F as connectPwaRuntimeCachingSchema, G as connectRenownSchema, H as connectRenownAdaptersSchema, I as connectPwaSchema, J as connectRuntimeDefaultDriveRemoteSchema, K as connectRouterSettingsSchema, L as connectPwaUrlPatternSchema, M as connectPwaFileHandlerSchema, N as connectPwaIconSchema, O as connectLoaderSchema, P as connectPwaManifestSchema, Q as connectRuntimePwaManifestSchema, R as connectReactorClientModeSchema, S as connectEdgesSchema, T as connectImageRefSchema, U as connectRenownPrivyAdapterSchema, V as connectRemoteBackendSchema, W as connectRenownRainbowAdapterSchema, X as connectRuntimeDrivesSchema, Y as connectRuntimeDefaultDriveSchema, Z as connectRuntimeInstanceSchema, _ as connectDefaultDriveSchema, a as connectAiSchema, b as connectDriveSectionsSchema, c as connectBackgroundLayersSchema, d as connectCollectionSchema, et as connectSchemedColorSchema, f as connectCompositionEntrySchema, g as connectDefaultDriveRemoteSchema, h as connectDefaultDriveLocalSchema, i as DeclaredConnectConfigInput, it as declaredConnectConfigSchema, j as connectPwaCacheStrategySchema, k as connectOpenPanelSchema, l as connectBackgroundSchema, m as connectConfigSchemaWith, n as ConnectConfigInput, nt as connectSentrySchema, o as connectAppSchema, p as connectConfigSchema, q as connectRuntimeConfigSchema, r as ConnectRuntimeConfig, s as connectBackgroundLayerSchema, t as ConnectConfig, tt as connectSchemedImageSchema, u as connectBrandingSchema, v as connectDrivePreserveStrategySchema, w as connectHomeSchema, x as connectDrivesSchema, y as connectDriveSectionSchema, z as connectReactorFeatureFlagsSchema } from "../connect-config-schema-cBfkNo1b.js";
2
+ import { A as PHConnectPwaRuntimeCaching, D as PHConnectPwaFileHandler, E as PHConnectPwaCacheStrategy, G as PHLength, O as PHConnectPwaIcon, Q as PHSchemedImage, R as PHConnectRuntimeConfig, T as PHConnectPwa, U as PHImageRef, Z as PHSchemedColor, a as PHBackground, j as PHConnectPwaUrlPattern, k as PHConnectPwaManifest, nt as PowerhouseConfig, o as PHBackgroundLayer, rt as PowerhousePackage, s as PHBackgroundLayers } from "../types-cIIv_Rsg.js";
3
+ import { ConfigAdapter, ConfigLoader, ConfigShape, DeepPartial, deepMerge, resolveSourceConnect, workflowsSettingConflict } from "./config-loader.js";
3
4
  import { JsonConfigAdapter, JsonConfigAdapterOptions } from "./json-adapter.js";
4
5
  import { z } from "zod";
5
-
6
+ //#region connect/background.d.ts
7
+ export type PHEdge = "top" | "right" | "bottom" | "left";
8
+ export declare const EDGES: readonly PHEdge[];
9
+ /** A single image is one layer pinned to the bottom-right corner. */
10
+ export declare function normalizeBackground(background: PHBackground | null | undefined): PHBackgroundLayers | null;
11
+ /** The light image and, when it differs, the dark one. */
12
+ export declare function imageVariants(src: PHSchemedImage): {
13
+ light: PHImageRef;
14
+ dark?: PHImageRef;
15
+ };
16
+ /** The light colour and, when it differs, the dark one. */
17
+ export declare function colorVariants(color: PHSchemedColor | null | undefined): {
18
+ light: string;
19
+ dark?: string;
20
+ } | null;
21
+ /** A number is px; a string is a CSS length as written. */
22
+ export declare function cssLength(length: PHLength): string;
23
+ /**
24
+ * The CSS declarations (kebab-case) that place one layer inside a
25
+ * `position: relative` pane. The pane's content must come after the layers
26
+ * in the DOM (or carry a z-index) to paint above them.
27
+ */
28
+ export declare function layerDeclarations(layer: PHBackgroundLayer): Record<string, string>;
29
+ /** The declarations as one `style` attribute's text. */
30
+ export declare function layerStyleText(layer: PHBackgroundLayer): string;
31
+ /** The same declarations with the camelCase keys React's `style` takes. */
32
+ export declare function layerStyle(layer: PHBackgroundLayer): Record<string, string>;
33
+ /** What is wrong with a background, one message per problem; empty when it
34
+ * is usable. `at` names the field in the messages. */
35
+ export declare function validateBackground(background: PHBackground | null | undefined, at?: string): string[];
36
+ /**
37
+ * The background with every image reference mapped (resolved to a data URI,
38
+ * rebased to another directory, …). A layer whose light image maps to
39
+ * undefined is dropped; a dark image that does falls back to the light one.
40
+ */
41
+ export declare function mapBackgroundImages(background: PHBackgroundLayers, map: (ref: PHImageRef) => PHImageRef | undefined): PHBackgroundLayers;
42
+ //#endregion
43
+ //#region connect/dynamic-base.d.ts
44
+ /**
45
+ * The base a dynamic-base Connect build is compiled against. The build emits
46
+ * this literal wherever a base-relative URL would go, and the serving layer
47
+ * (the dynamic-base vite plugin at build time, the connect proxy at serve
48
+ * time) rewrites it to the base the app is actually deployed under.
49
+ *
50
+ * It lives here, in the browser-safe shared package, rather than in
51
+ * `@powerhousedao/builder-tools`, because both the node-only build toolchain
52
+ * and Connect's own browser code need it. Importing builder-tools from app
53
+ * code pulls the whole build toolchain (and its node-only `read-pkg`
54
+ * dependency) into the browser graph.
55
+ */
56
+ export declare const DYNAMIC_BASE_PLACEHOLDER = "/__PH_DYNAMIC_BASE__/";
57
+ /** Swaps a build-time placeholder in `url` for `runtimeBase`; URLs without one pass through. */
58
+ export declare function resolveDynamicBaseUrl(url: string, runtimeBase: string): string;
59
+ //#endregion
6
60
  //#region connect/env-config.d.ts
7
61
  /**
8
62
  * Build-time configuration schema
@@ -19,36 +73,36 @@ declare const buildEnvSchema: z.ZodObject<{
19
73
  * build-metadata + analytics-processor toggles live here; all Connect
20
74
  * runtime config lives in `powerhouse.config.json`.
21
75
  */
22
- declare const runtimeEnvSchema: z.ZodObject<{
76
+ export declare const runtimeEnvSchema: z.ZodObject<{
23
77
  PH_CONNECT_VERSION: z.ZodDefault<z.ZodString>;
24
78
  PH_CONNECT_CLI_VERSION: z.ZodOptional<z.ZodString>;
25
79
  PH_CONNECT_DIFF_ANALYTICS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
26
- true: "true";
27
80
  false: "false";
28
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
29
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
30
81
  true: "true";
82
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
83
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
31
84
  false: "false";
32
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
33
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
34
85
  true: "true";
86
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
87
+ PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
35
88
  false: "false";
36
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
89
+ true: "true";
90
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
37
91
  PH_CONNECT_OPENPANEL_CLIENT_ID: z.ZodOptional<z.ZodString>;
38
92
  PH_CONNECT_OPENPANEL_API_URL: z.ZodOptional<z.ZodString>;
39
93
  PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
40
- true: "true";
41
94
  false: "false";
42
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
43
- PH_CONNECT_OPENPANEL_TRACK_OPERATIONS: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
44
95
  true: "true";
96
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
97
+ PH_CONNECT_OPENPANEL_TRACK_OPERATIONS: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
45
98
  false: "false";
46
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
99
+ true: "true";
100
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
47
101
  }, z.core.$strip>;
48
102
  /**
49
103
  * Complete environment schema (build + runtime)
50
104
  */
51
- declare const connectEnvSchema: z.ZodObject<{
105
+ export declare const connectEnvSchema: z.ZodObject<{
52
106
  PH_PACKAGES: z.ZodOptional<z.ZodString>;
53
107
  PH_LOCAL_PACKAGE: z.ZodOptional<z.ZodString>;
54
108
  PH_SENTRY_AUTH_TOKEN: z.ZodOptional<z.ZodString>;
@@ -57,38 +111,38 @@ declare const connectEnvSchema: z.ZodObject<{
57
111
  PH_CONNECT_VERSION: z.ZodDefault<z.ZodString>;
58
112
  PH_CONNECT_CLI_VERSION: z.ZodOptional<z.ZodString>;
59
113
  PH_CONNECT_DIFF_ANALYTICS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
60
- true: "true";
61
114
  false: "false";
62
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
63
- PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
64
115
  true: "true";
116
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
117
+ PH_CONNECT_DRIVE_ANALYTICS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
65
118
  false: "false";
66
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
67
- PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
68
119
  true: "true";
120
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
121
+ PH_CONNECT_EXTERNAL_ANALYTICS_PROCESSORS_ENABLED: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
69
122
  false: "false";
70
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
123
+ true: "true";
124
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
71
125
  PH_CONNECT_OPENPANEL_CLIENT_ID: z.ZodOptional<z.ZodString>;
72
126
  PH_CONNECT_OPENPANEL_API_URL: z.ZodOptional<z.ZodString>;
73
127
  PH_CONNECT_OPENPANEL_TRACK_UI_EVENTS: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
74
- true: "true";
75
128
  false: "false";
76
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
77
- PH_CONNECT_OPENPANEL_TRACK_OPERATIONS: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
78
129
  true: "true";
130
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
131
+ PH_CONNECT_OPENPANEL_TRACK_OPERATIONS: z.ZodDefault<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodEnum<{
79
132
  false: "false";
80
- }>]>, z.ZodTransform<boolean, boolean | "true" | "false">>>;
133
+ true: "true";
134
+ }>]>, z.ZodTransform<boolean, "false" | "true" | boolean>>>;
81
135
  }, z.core.$strip>;
82
136
  /**
83
137
  * Inferred TypeScript types from schemas
84
138
  */
85
- type ConnectBuildEnv = z.infer<typeof buildEnvSchema>;
86
- type ConnectRuntimeEnv = z.infer<typeof runtimeEnvSchema>;
87
- type ConnectEnv = z.infer<typeof connectEnvSchema>;
139
+ export type ConnectBuildEnv = z.infer<typeof buildEnvSchema>;
140
+ export type ConnectRuntimeEnv = z.infer<typeof runtimeEnvSchema>;
141
+ export type ConnectEnv = z.infer<typeof connectEnvSchema>;
88
142
  /**
89
143
  * Options for loading environment variables
90
144
  */
91
- interface LoadEnvOptions {
145
+ export interface LoadEnvOptions {
92
146
  /**
93
147
  * Environment variables from process.env (highest priority)
94
148
  */
@@ -107,7 +161,7 @@ interface LoadEnvOptions {
107
161
  * @param options - Environment sources in priority order
108
162
  * @returns Validated and typed environment configuration
109
163
  */
110
- declare function loadConnectEnv(options?: LoadEnvOptions): ConnectEnv;
164
+ export declare function loadConnectEnv(options?: LoadEnvOptions): ConnectEnv;
111
165
  /**
112
166
  * Loads only runtime environment variables (build metadata + Sentry +
113
167
  * analytics-processor toggles — everything in the Connect runtime schema
@@ -116,7 +170,7 @@ declare function loadConnectEnv(options?: LoadEnvOptions): ConnectEnv;
116
170
  * @param options - Environment sources in priority order
117
171
  * @returns Validated runtime environment configuration
118
172
  */
119
- declare function loadRuntimeEnv(options?: LoadEnvOptions): ConnectRuntimeEnv;
173
+ export declare function loadRuntimeEnv(options?: LoadEnvOptions): ConnectRuntimeEnv;
120
174
  /**
121
175
  * Safely sets Connect environment variables with validation.
122
176
  * Invalid values will log a warning and be skipped.
@@ -131,7 +185,7 @@ declare function loadRuntimeEnv(options?: LoadEnvOptions): ConnectRuntimeEnv;
131
185
  * });
132
186
  * ```
133
187
  */
134
- declare function setConnectEnv(values: Partial<ConnectEnv>): void;
188
+ export declare function setConnectEnv(values: Partial<ConnectEnv>): void;
135
189
  /**
136
190
  * Normalizes a base path to ensure it:
137
191
  * - Starts with a forward slash (/)
@@ -148,13 +202,13 @@ declare function setConnectEnv(values: Partial<ConnectEnv>): void;
148
202
  * normalizeBasePath('/') // '/'
149
203
  * normalizeBasePath('') // '/'
150
204
  */
151
- declare function normalizeBasePath(basePath: string): string;
205
+ export declare function normalizeBasePath(basePath: string): string;
152
206
  /**
153
207
  * Base storage namespace for a Connect instance served at the root of an
154
208
  * origin. Kept as a literal so root deployments resolve to a byte-identical
155
209
  * value with no migration.
156
210
  */
157
- declare const ROOT_STORAGE_NAMESPACE = "reactor";
211
+ export declare const ROOT_STORAGE_NAMESPACE = "reactor";
158
212
  /**
159
213
  * Derives the origin-scoped storage namespace from a Connect base path.
160
214
  *
@@ -177,12 +231,18 @@ declare const ROOT_STORAGE_NAMESPACE = "reactor";
177
231
  * getStorageNamespace('/') // 'reactor'
178
232
  * getStorageNamespace('/reactor-project/vetra-studio/') // 'reactor--reactor-project-vetra-studio'
179
233
  */
180
- declare function getStorageNamespace(basePath: string): string;
234
+ export declare function getStorageNamespace(basePath: string): string;
235
+ //#endregion
236
+ //#region connect/layers.d.ts
237
+ /** Connect's cascade layers, Tailwind's `properties` first: package CSS goes in
238
+ * external-packages, above Connect's reset and below its utilities. */
239
+ export declare const CONNECT_LAYER_ORDER = "@layer properties, theme, base, components, external-packages, utilities;";
181
240
  //#endregion
182
241
  //#region connect/pwa-config.d.ts
183
242
  /** A labelled PWA fragment, so merge diagnostics can name the contributor. */
184
- type PwaContribution = {
185
- /** Human-readable origin (package name, or the project config file). */source: string;
243
+ export type PwaContribution = {
244
+ /** Human-readable origin (package name, or the project config file). */
245
+ source: string;
186
246
  config: PHConnectPwa;
187
247
  };
188
248
  type IconLike = {
@@ -191,7 +251,7 @@ type IconLike = {
191
251
  purpose?: string | readonly string[];
192
252
  };
193
253
  /** Concatenate icons, keeping the first occurrence of each (src,sizes,purpose). */
194
- declare function dedupeIcons<T extends IconLike>(icons: T[]): T[];
254
+ export declare function dedupeIcons<T extends IconLike>(icons: T[]): T[];
195
255
  /**
196
256
  * Concatenate file handlers, keeping the first occurrence of each entry.
197
257
  * Deduped on the WHOLE entry (canonical JSON) rather than any single field:
@@ -200,15 +260,15 @@ declare function dedupeIcons<T extends IconLike>(icons: T[]): T[];
200
260
  * fragment arriving via two layers is a duplicate. Structural, so it also
201
261
  * works on the vite-plugin-pwa handler shape in builder-tools.
202
262
  */
203
- declare function dedupeFileHandlers<T extends object>(handlers: T[]): T[];
263
+ export declare function dedupeFileHandlers<T extends object>(handlers: T[]): T[];
204
264
  /** Fold a manifest's top-level `category` string into a PWA config as a
205
265
  * `categories: [category]` entry. PWA `categories` is DERIVED from the
206
266
  * `category` field of every contributing `powerhouse.manifest.json` (never
207
267
  * authored under `pwa`); `mergePwaConfig`/`mergeManifest` then union them
208
268
  * across contributors. No-op when there is no usable category. */
209
- declare function withInferredCategory(config: PHConnectPwa, category: unknown): PHConnectPwa;
269
+ export declare function withInferredCategory(config: PHConnectPwa, category: unknown): PHConnectPwa;
210
270
  /** Order-preserving string union (used for the precache glob lists). */
211
- declare function unionStrings(base: string[] | undefined, extra: string[]): string[];
271
+ export declare function unionStrings(base: string[] | undefined, extra: string[]): string[];
212
272
  /**
213
273
  * Fold the build-time-known package PWA fragments and the project's
214
274
  * `connect.pwa` block into one effective fragment. Precedence is
@@ -223,10 +283,16 @@ declare function unionStrings(base: string[] | undefined, extra: string[]): stri
223
283
  * by setting that field in `connect.pwa`, which both wins and silences the
224
284
  * warning.
225
285
  */
226
- declare function mergePwaConfig(packageContributions: PwaContribution[], projectConfig?: PHConnectPwa, onWarn?: (message: string) => void): PHConnectPwa;
286
+ export declare function mergePwaConfig(packageContributions: PwaContribution[], projectConfig?: PHConnectPwa, onWarn?: (message: string) => void): PHConnectPwa;
227
287
  /** A serialisable URL pattern as Workbox consumes it: strings pass through
228
288
  * verbatim, `{ source, flags }` is rebuilt into a RegExp. */
229
- declare function toRegExpOrString(pattern: PHConnectPwaUrlPattern): string | RegExp;
289
+ export declare function toRegExpOrString(pattern: PHConnectPwaUrlPattern): string | RegExp;
290
+ /**
291
+ * Whether the service worker answers a navigation to `pathname` with the app
292
+ * shell. A request for a file, one with an extension or one of the project's
293
+ * static files (`staticFiles`, relative to `scopePath`), gets the file instead.
294
+ */
295
+ export declare function isAppShellNavigation(pathname: string, scopePath: string, staticFiles: readonly string[]): boolean;
230
296
  //#endregion
231
297
  //#region connect/pwa-manifest.d.ts
232
298
  /**
@@ -237,15 +303,15 @@ declare function toRegExpOrString(pattern: PHConnectPwaUrlPattern): string | Reg
237
303
  * webmanifest is served dynamically and never rewritten by the dynamic-base
238
304
  * plugin) — same trick as the base start_url/scope.
239
305
  */
240
- declare const PWA_FILE_HANDLER_ACTION = ".";
241
- declare const PWA_IDB_NAME = "ph-pwa";
242
- declare const PWA_IDB_STORE = "fragments";
243
- declare const PWA_IDB_KEY = "merged";
244
- declare const PWA_IDB_VERSION = 1;
306
+ export declare const PWA_FILE_HANDLER_ACTION = ".";
307
+ export declare const PWA_IDB_NAME = "ph-pwa";
308
+ export declare const PWA_IDB_STORE = "fragments";
309
+ export declare const PWA_IDB_KEY = "merged";
310
+ export declare const PWA_IDB_VERSION = 1;
245
311
  /** The subset of a web-app manifest this module reads/writes, plus an index
246
312
  * signature so untouched fields (name, theme_color, launch_handler, …) pass
247
313
  * through verbatim. */
248
- interface PwaWebManifest {
314
+ export interface PwaWebManifest {
249
315
  icons?: PHConnectPwaIcon[];
250
316
  file_handlers?: (PHConnectPwaFileHandler & {
251
317
  action?: string;
@@ -272,13 +338,13 @@ interface PwaWebManifest {
272
338
  *
273
339
  * The Connect-owned file-handler action is injected idempotently.
274
340
  */
275
- declare function mergeManifest(base: PwaWebManifest, fragment: PHConnectPwaManifest | undefined, opts?: {
341
+ export declare function mergeManifest(base: PwaWebManifest, fragment: PHConnectPwaManifest | undefined, opts?: {
276
342
  scalarPolicy?: "base-wins" | "fragment-wins";
277
343
  protectedScalars?: readonly string[];
278
344
  }): PwaWebManifest;
279
345
  //#endregion
280
346
  //#region connect/runtime-config.d.ts
281
- type RuntimePowerhouseConfig = {
347
+ export type RuntimePowerhouseConfig = {
282
348
  schemaVersion: 2;
283
349
  packages: PowerhousePackage[];
284
350
  packageRegistryUrl?: string;
@@ -290,14 +356,14 @@ type RuntimePowerhouseConfig = {
290
356
  };
291
357
  /** Defaults for every field Connect reads at runtime, merged into the
292
358
  * `connect.*` block at boot; also the dist emitter's and the scaffold's base. */
293
- declare const DEFAULT_CONNECT_CONFIG: PHConnectRuntimeConfig;
294
- declare function buildRuntimeConfig(source: Pick<PowerhouseConfig, "packages" | "connect" | "packageRegistryUrl">, projectInfo: {
359
+ export declare const DEFAULT_CONNECT_CONFIG: PHConnectRuntimeConfig;
360
+ export declare function buildRuntimeConfig(source: Pick<PowerhouseConfig, "packages" | "connect" | "packageRegistryUrl">, projectInfo: {
295
361
  name: string;
296
362
  version: string;
297
363
  } | null): RuntimePowerhouseConfig;
298
364
  //#endregion
299
365
  //#region connect/schema-fragments.d.ts
300
- declare const powerhousePackageSchema: {
366
+ export declare const powerhousePackageSchema: {
301
367
  readonly type: "object";
302
368
  readonly additionalProperties: false;
303
369
  readonly required: readonly ["packageName"];
@@ -321,595 +387,112 @@ declare const powerhousePackageSchema: {
321
387
  };
322
388
  };
323
389
  };
324
- declare const phConnectRuntimeConfigSchema: {
325
- readonly type: "object";
326
- readonly additionalProperties: false;
327
- readonly description: "Connect-specific UI customisations. All fields optional; omit the section entirely for default behaviour.";
328
- readonly properties: {
329
- readonly branding: {
330
- readonly type: "object";
331
- readonly additionalProperties: false;
332
- readonly description: "App identity and visual branding.";
333
- readonly properties: {
334
- readonly appName: {
335
- readonly type: "string";
336
- readonly description: "Browser tab title and any in-app brand text. Defaults to 'Powerhouse Connect'.";
337
- };
338
- readonly homeBackground: {
339
- readonly type: readonly ["string", "null"];
340
- readonly description: "Hero image on the empty home screen. URL or path to override; null or omitted uses the bundled default image.";
341
- };
342
- };
343
- };
344
- readonly app: {
345
- readonly type: "object";
346
- readonly additionalProperties: false;
347
- readonly description: "Top-level Connect application behaviour.";
348
- readonly properties: {
349
- readonly logLevel: {
350
- readonly type: "string";
351
- readonly enum: readonly ["debug", "info", "warn", "error"];
352
- readonly description: "Log level applied by Connect's logger at boot. Affects browser-side output only.";
353
- readonly default: "info";
354
- };
355
- readonly basePath: {
356
- readonly type: "string";
357
- readonly description: "Base path Connect is mounted under (e.g. '/connect' for subpath deploys). Normalised at runtime to start and end with '/'. Defaults to the build-time BASE_URL.";
358
- readonly default: "/";
359
- };
360
- readonly offline: {
361
- readonly type: "boolean";
362
- readonly description: "When true (default), the build emits a precaching service worker so Connect's app shell works offline, and the SPA registers it at boot. Set false to opt this deployment out: no service worker is built, the SPA skips registration, and any previously-installed worker is unregistered.";
363
- readonly default: true;
364
- };
365
- readonly studioMode: {
366
- readonly type: "boolean";
367
- readonly description: "Studio mode. Enables builder-only capabilities: Connect loads the vetra package and exposes DocumentModel (and vetra spec types) as creatable documents. Forced on by `ph vetra` / `ph connect studio`; false by default.";
368
- readonly default: false;
369
- };
370
- };
371
- };
372
- readonly ai: {
373
- readonly type: "object";
374
- readonly additionalProperties: false;
375
- readonly description: "AI assistant (chat) behaviour.";
376
- readonly properties: {
377
- readonly assistantEnabled: {
378
- readonly type: "boolean";
379
- readonly description: "When true, Connect mounts the in-browser AI assistant (bottom-right chat FAB that talks to a user-configured OpenAI-compatible endpoint and acts on the reactor). Disabled by default.";
380
- readonly default: false;
381
- };
382
- };
383
- };
384
- readonly packages: {
385
- readonly type: "object";
386
- readonly additionalProperties: false;
387
- readonly description: "Runtime behaviour for the Connect package manager (separate from top-level `packages[]`, which lists which packages to load).";
388
- readonly properties: {
389
- readonly externalEnabled: {
390
- readonly type: "boolean";
391
- readonly description: "When false, Connect refuses to load any package that wasn't bundled at build time. Affirmative replacement for the legacy PH_CONNECT_EXTERNAL_PACKAGES_DISABLED env var.";
392
- readonly default: true;
393
- };
394
- readonly liveReload: {
395
- readonly type: "boolean";
396
- readonly description: "When true, Connect subscribes to the static-mode `/__packages` SSE channel so live publishes flow into the running tab without a page reload. Only works under hosting that serves this channel (e.g. ph-clint static mode).";
397
- readonly default: false;
398
- };
399
- };
400
- };
401
- readonly drives: {
402
- readonly type: "object";
403
- readonly additionalProperties: false;
404
- readonly description: "Default-drive and add-drive UI behaviour.";
405
- readonly properties: {
406
- readonly allowAddDrive: {
407
- readonly type: "boolean";
408
- readonly description: "When false, the SPA hides the 'add drive' affordance entirely (top-level). Per-section overrides live in `sections.{remote,local}.allowAdd`.";
409
- readonly default: true;
410
- };
411
- readonly defaultDrives: {
412
- readonly type: "array";
413
- readonly description: "Drives the SPA auto-connects to on first load. Each entry is either a remote drive (a URL, with optional name/icon overrides) or a local drive (created locally on first boot, with a stable id and optional name/icon/app).";
414
- readonly default: readonly [];
415
- readonly items: {
416
- readonly oneOf: readonly [{
417
- readonly type: "object";
418
- readonly additionalProperties: false;
419
- readonly required: readonly ["url"];
420
- readonly properties: {
421
- readonly url: {
422
- readonly type: "string";
423
- };
424
- readonly name: {
425
- readonly type: readonly ["string", "null"];
426
- };
427
- readonly icon: {
428
- readonly type: readonly ["string", "null"];
429
- };
430
- };
431
- }, {
432
- readonly type: "object";
433
- readonly additionalProperties: false;
434
- readonly required: readonly ["local", "id"];
435
- readonly properties: {
436
- readonly local: {
437
- readonly const: true;
438
- readonly description: "Discriminator: this entry is a local drive created on first boot.";
439
- };
440
- readonly id: {
441
- readonly type: "string";
442
- readonly description: "Stable drive id. The drive is created with this id on first boot and is not re-created on later boots.";
443
- };
444
- readonly name: {
445
- readonly type: readonly ["string", "null"];
446
- };
447
- readonly icon: {
448
- readonly type: readonly ["string", "null"];
449
- };
450
- readonly app: {
451
- readonly type: "string";
452
- readonly description: "Drive app (preferred editor) to open on the drive.";
453
- };
454
- };
455
- }];
456
- };
457
- };
458
- readonly preserveStrategy: {
459
- readonly type: "string";
460
- readonly enum: readonly ["preserve-all", "preserve-by-url-and-detach"];
461
- readonly description: "Strategy applied when defaultDrives change between deploys. 'preserve-all' keeps user-added drives untouched; 'preserve-by-url-and-detach' detaches removed default drives. No schema default — opt-in only.";
462
- };
463
- readonly sections: {
464
- readonly type: "object";
465
- readonly additionalProperties: false;
466
- readonly description: "Per-section visibility and affordance toggles. `remote` covers what was historically split into 'public' + 'cloud'; `local` is browser-local drives.";
467
- readonly properties: {
468
- readonly remote: {
469
- readonly type: "object";
470
- readonly additionalProperties: false;
471
- readonly description: "Visibility and add/delete affordances for a drive section in the sidebar.";
472
- readonly properties: {
473
- readonly enabled: {
474
- readonly type: "boolean";
475
- readonly description: "When false, the section is hidden in the sidebar.";
476
- readonly default: true;
477
- };
478
- readonly allowAdd: {
479
- readonly type: "boolean";
480
- readonly description: "When false, the section's 'add drive' affordance is hidden.";
481
- readonly default: true;
482
- };
483
- readonly allowDelete: {
484
- readonly type: "boolean";
485
- readonly description: "When false, drives in this section cannot be deleted from the UI.";
486
- readonly default: true;
487
- };
488
- };
489
- };
490
- readonly local: {
491
- readonly type: "object";
492
- readonly additionalProperties: false;
493
- readonly description: "Visibility and add/delete affordances for a drive section in the sidebar.";
494
- readonly properties: {
495
- readonly enabled: {
496
- readonly type: "boolean";
497
- readonly description: "When false, the section is hidden in the sidebar.";
498
- readonly default: true;
499
- };
500
- readonly allowAdd: {
501
- readonly type: "boolean";
502
- readonly description: "When false, the section's 'add drive' affordance is hidden.";
503
- readonly default: true;
504
- };
505
- readonly allowDelete: {
506
- readonly type: "boolean";
507
- readonly description: "When false, drives in this section cannot be deleted from the UI.";
508
- readonly default: true;
509
- };
510
- };
511
- };
512
- };
513
- };
514
- };
515
- };
516
- readonly renown: {
517
- readonly type: "object";
518
- readonly additionalProperties: false;
519
- readonly description: "Renown identity / authentication coordinates.";
520
- readonly properties: {
521
- readonly url: {
522
- readonly type: "string";
523
- readonly description: "Renown auth service URL.";
524
- readonly default: "https://www.renown.id";
525
- };
526
- readonly networkId: {
527
- readonly type: "string";
528
- readonly description: "CAIP-2 network namespace (e.g. 'eip155').";
529
- readonly default: "eip155";
530
- };
531
- readonly chainId: {
532
- readonly type: "number";
533
- readonly description: "CAIP-2 chain reference within the network namespace.";
534
- readonly default: 1;
535
- };
536
- readonly namespace: {
537
- readonly type: "string";
538
- readonly description: "Renown localStorage namespace; share it across Connects to share login.";
539
- };
540
- readonly switchboardUrl: {
541
- readonly type: "string";
542
- readonly description: "Switchboard GraphQL URL. When set, Connect enables in-page (no-redirect) Renown sign-in; otherwise it falls back to the redirect flow via `url`.";
543
- };
544
- readonly adapters: {
545
- readonly type: "object";
546
- readonly additionalProperties: false;
547
- readonly description: "Per-adapter wallet config for in-page auth. Presence of an adapter key enables it; omit or leave empty for redirect-only behaviour.";
548
- readonly properties: {
549
- readonly rainbow: {
550
- readonly type: "object";
551
- readonly additionalProperties: false;
552
- readonly description: "wagmi + RainbowKit external-wallet adapter config.";
553
- readonly properties: {
554
- readonly walletConnectProjectId: {
555
- readonly type: "string";
556
- readonly description: "WalletConnect project id; required for this adapter to function.";
557
- };
558
- readonly infuraProjectId: {
559
- readonly type: "string";
560
- readonly description: "Optional Infura project id used to build RPC transports.";
561
- };
562
- };
563
- };
564
- readonly privy: {
565
- readonly type: "object";
566
- readonly additionalProperties: false;
567
- readonly description: "Privy embedded/social adapter config.";
568
- readonly properties: {
569
- readonly appId: {
570
- readonly type: "string";
571
- readonly description: "Privy application id; required for this adapter to function.";
572
- };
573
- readonly clientId: {
574
- readonly type: "string";
575
- readonly description: "Optional Privy client id.";
576
- };
577
- readonly methods: {
578
- readonly type: "array";
579
- readonly description: "Login methods this adapter offers; default per adapter when omitted.";
580
- readonly items: {
581
- readonly type: "string";
582
- };
583
- };
584
- };
585
- };
586
- };
587
- };
588
- };
589
- };
590
- readonly sentry: {
591
- readonly type: "object";
592
- readonly additionalProperties: false;
593
- readonly description: "Sentry error-tracking coordinates. Set `dsn` to enable Sentry; leave `dsn` null to disable. The Sentry release tag stays build-time (stamped via Vite's `define` from WORKSPACE_VERSION) so it always matches the sourcemaps uploaded by CI.";
594
- readonly properties: {
595
- readonly dsn: {
596
- readonly type: readonly ["string", "null"];
597
- readonly description: "Sentry DSN URL. `null` disables Sentry entirely; the SPA never loads the Sentry SDK chunk.";
598
- readonly default: null;
599
- };
600
- readonly env: {
601
- readonly type: "string";
602
- readonly description: "Sentry environment label, surfaced as the `environment` tag on every event.";
603
- readonly default: "dev";
604
- };
605
- readonly tracing: {
606
- readonly type: "boolean";
607
- readonly description: "Enable Sentry performance tracing.";
608
- readonly default: false;
609
- };
610
- };
611
- };
612
- readonly instance: {
613
- readonly type: "object";
614
- readonly additionalProperties: false;
615
- readonly required: readonly ["namespace", "reactorWorker"];
616
- readonly description: "Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.";
617
- readonly properties: {
618
- readonly namespace: {
619
- readonly type: readonly ["string", "null"];
620
- readonly description: "Explicit storage/SharedWorker namespace for this instance. `null` derives it from the base path (and, later, the configured endpoint), so root deployments stay byte-identical.";
621
- readonly default: null;
622
- };
623
- readonly reactorWorker: {
624
- readonly type: "boolean";
625
- readonly description: "Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified.";
626
- readonly default: false;
627
- };
628
- };
629
- };
630
- readonly reactor: {
631
- readonly type: "object";
632
- readonly additionalProperties: false;
633
- readonly description: "Settings for the reactor Connect runs in the browser, on the main thread or in the shared worker alike.";
634
- readonly properties: {
635
- readonly featureFlags: {
636
- readonly type: "object";
637
- readonly additionalProperties: false;
638
- readonly description: "Enforcement flags. Each implies its predecessors, and the reactor refuses to boot on a set that names a later flag without an earlier one. These are consensus settings: a Connect syncing with a fleet must carry the same flags the fleet does, or the two reach different replay outcomes for the same history and diverge.";
639
- readonly properties: {
640
- readonly documentDecisions: {
641
- readonly type: "boolean";
642
- readonly description: "Decide writes from the document stream rather than the document meta cache, so a backdated deletion denies the operations that sort after it.";
643
- readonly default: false;
644
- };
645
- readonly authEnforcement: {
646
- readonly type: "boolean";
647
- readonly description: "Enforce the auth scope's policy at admission, replay, and read. Requires documentDecisions.";
648
- readonly default: false;
649
- };
650
- readonly authGroups: {
651
- readonly type: "boolean";
652
- readonly description: "Let `{ group }` principals match against the rosters of the group documents a policy names. Requires authEnforcement.";
653
- readonly default: false;
654
- };
655
- readonly authConditions: {
656
- readonly type: "boolean";
657
- readonly description: "Evaluate `where` and `match` conditions on grants. Requires authGroups. Do not enable on a fleet `preflight:auth` reports as crossing a reducer version.";
658
- readonly default: false;
659
- };
660
- };
661
- };
662
- };
663
- };
664
- readonly pwa: {
665
- readonly type: "object";
666
- readonly additionalProperties: false;
667
- readonly description: "Progressive-web-app / service-worker overrides, layered on Connect's built-in PWA defaults at build time. Scalar fields deep-merge (this layer wins); the array members (icons, file_handlers, globs, runtimeCaching and denylist patterns) are additive; maximumFileSizeToCacheInBytes takes the max across contributors. (categories is not set here — it is derived from the manifest's category field.) Only applied when connect.app.offline is true.";
668
- readonly properties: {
669
- readonly manifest: {
670
- readonly type: "object";
671
- readonly additionalProperties: false;
672
- readonly description: "Web-app-manifest field overrides.";
673
- readonly properties: {
674
- readonly name: {
675
- readonly type: "string";
676
- };
677
- readonly short_name: {
678
- readonly type: "string";
679
- };
680
- readonly description: {
681
- readonly type: "string";
682
- };
683
- readonly theme_color: {
684
- readonly type: "string";
685
- };
686
- readonly background_color: {
687
- readonly type: "string";
688
- };
689
- readonly display: {
690
- readonly type: "string";
691
- readonly enum: readonly ["fullscreen", "standalone", "minimal-ui", "browser"];
692
- };
693
- readonly start_url: {
694
- readonly type: "string";
695
- };
696
- readonly scope: {
697
- readonly type: "string";
698
- };
699
- readonly icons: {
700
- readonly type: "array";
701
- readonly description: "Icons appended to the built-in set and de-duplicated by (src, sizes, purpose).";
702
- readonly items: {
703
- readonly type: "object";
704
- readonly additionalProperties: false;
705
- readonly required: readonly ["src"];
706
- readonly properties: {
707
- readonly src: {
708
- readonly type: "string";
709
- };
710
- readonly sizes: {
711
- readonly type: "string";
712
- };
713
- readonly type: {
714
- readonly type: "string";
715
- };
716
- readonly purpose: {
717
- readonly type: "string";
718
- };
719
- };
720
- };
721
- };
722
- readonly file_handlers: {
723
- readonly type: "array";
724
- readonly description: "File associations appended after Connect's built-in .phd/.phdm handler and de-duplicated on the whole entry. Entries only declare accepted types; there is no action field, because opening the files requires Connect's own runtime handling, so every handler opens at the app root.";
725
- readonly items: {
726
- readonly type: "object";
727
- readonly additionalProperties: false;
728
- readonly required: readonly ["accept"];
729
- readonly properties: {
730
- readonly accept: {
731
- readonly type: "object";
732
- readonly description: "MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it.";
733
- readonly additionalProperties: {
734
- readonly type: "array";
735
- readonly items: {
736
- readonly type: "string";
737
- readonly pattern: "^\\.";
738
- };
739
- };
740
- };
741
- readonly icons: {
742
- readonly type: "array";
743
- readonly description: "OS-level file-type icons.";
744
- readonly items: {
745
- readonly type: "object";
746
- readonly additionalProperties: false;
747
- readonly required: readonly ["src"];
748
- readonly properties: {
749
- readonly src: {
750
- readonly type: "string";
751
- };
752
- readonly sizes: {
753
- readonly type: "string";
754
- };
755
- readonly type: {
756
- readonly type: "string";
757
- };
758
- readonly purpose: {
759
- readonly type: "string";
760
- };
761
- };
762
- };
763
- };
764
- readonly launch_type: {
765
- readonly type: "string";
766
- readonly enum: readonly ["single-client", "multiple-clients"];
767
- };
768
- };
769
- };
770
- };
771
- readonly launch_handler: {
772
- readonly type: "object";
773
- readonly additionalProperties: false;
774
- readonly required: readonly ["client_mode"];
775
- readonly description: "How the OS launches the app for handled files/links. Connect defaults to focus-existing.";
776
- readonly properties: {
777
- readonly client_mode: {
778
- readonly type: "string";
779
- readonly enum: readonly ["auto", "focus-existing", "navigate-existing", "navigate-new"];
780
- };
781
- };
782
- };
783
- };
784
- };
785
- readonly globPatterns: {
786
- readonly type: "array";
787
- readonly items: {
788
- readonly type: "string";
789
- };
790
- readonly description: "Extra Workbox precache globs, unioned with the built-ins.";
791
- };
792
- readonly globIgnores: {
793
- readonly type: "array";
794
- readonly items: {
795
- readonly type: "string";
796
- };
797
- readonly description: "Extra precache ignore globs, unioned with the built-ins.";
798
- };
799
- readonly maximumFileSizeToCacheInBytes: {
800
- readonly type: "number";
801
- readonly description: "Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit.";
802
- };
803
- readonly runtimeCaching: {
804
- readonly type: "array";
805
- readonly description: "Runtime-caching rules appended after the built-in rules. Workbox is first-match-wins, so these cannot override a built-in rule matching the same URL.";
806
- readonly items: {
807
- readonly type: "object";
808
- readonly additionalProperties: false;
809
- readonly required: readonly ["urlPattern", "handler"];
810
- readonly properties: {
811
- readonly urlPattern: {
812
- readonly description: "URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.";
813
- readonly oneOf: readonly [{
814
- readonly type: "string";
815
- }, {
816
- readonly type: "object";
817
- readonly additionalProperties: false;
818
- readonly required: readonly ["source"];
819
- readonly properties: {
820
- readonly source: {
821
- readonly type: "string";
822
- readonly description: "RegExp source.";
823
- };
824
- readonly flags: {
825
- readonly type: "string";
826
- readonly description: "RegExp flags (e.g. 'i').";
827
- };
828
- };
829
- }];
830
- };
831
- readonly handler: {
832
- readonly type: "string";
833
- readonly enum: readonly ["CacheFirst", "CacheOnly", "NetworkFirst", "NetworkOnly", "StaleWhileRevalidate"];
834
- };
835
- readonly method: {
836
- readonly type: "string";
837
- readonly enum: readonly ["GET", "POST", "PUT", "DELETE", "HEAD", "PATCH"];
838
- };
839
- readonly options: {
840
- readonly type: "object";
841
- readonly additionalProperties: false;
842
- readonly properties: {
843
- readonly cacheName: {
844
- readonly type: "string";
845
- };
846
- readonly networkTimeoutSeconds: {
847
- readonly type: "number";
848
- readonly description: "Seconds a NetworkFirst rule waits for the network before falling back to the cache.";
849
- };
850
- readonly expiration: {
851
- readonly type: "object";
852
- readonly additionalProperties: false;
853
- readonly properties: {
854
- readonly maxEntries: {
855
- readonly type: "number";
856
- };
857
- readonly maxAgeSeconds: {
858
- readonly type: "number";
859
- };
860
- };
861
- };
862
- readonly cacheableResponse: {
863
- readonly type: "object";
864
- readonly additionalProperties: false;
865
- readonly properties: {
866
- readonly statuses: {
867
- readonly type: "array";
868
- readonly items: {
869
- readonly type: "number";
870
- };
871
- };
872
- readonly headers: {
873
- readonly type: "object";
874
- readonly additionalProperties: {
875
- readonly type: "string";
876
- };
877
- };
878
- };
879
- };
880
- };
881
- };
882
- };
883
- };
884
- };
885
- readonly navigateFallbackDenylist: {
886
- readonly type: "array";
887
- readonly description: "Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.";
888
- readonly items: {
889
- readonly description: "URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.";
890
- readonly oneOf: readonly [{
891
- readonly type: "string";
892
- }, {
893
- readonly type: "object";
894
- readonly additionalProperties: false;
895
- readonly required: readonly ["source"];
896
- readonly properties: {
897
- readonly source: {
898
- readonly type: "string";
899
- readonly description: "RegExp source.";
900
- };
901
- readonly flags: {
902
- readonly type: "string";
903
- readonly description: "RegExp flags (e.g. 'i').";
904
- };
905
- };
906
- }];
907
- };
908
- };
909
- };
910
- };
911
- };
390
+ /** A draft-07 JSON Schema fragment, embeddable as a subschema. Declared
391
+ * here rather than reusing zod's type, so schemas that embed a fragment
392
+ * have a portable inferred type. */
393
+ export type JsonSchemaFragment = {
394
+ properties?: Record<string, unknown>;
395
+ [keyword: string]: unknown;
396
+ };
397
+ /** Emits a zod schema as a draft-07 fragment: input shape, no `$schema`. */
398
+ export declare function emitJsonSchemaFragment(schema: z.ZodType): JsonSchemaFragment;
399
+ /** One image of a decorated pane. */
400
+ export declare const phBackgroundLayerSchema: JsonSchemaFragment;
401
+ /** A pane's background: layers over a page colour, or one image. */
402
+ export declare const phBackgroundSchema: JsonSchemaFragment;
403
+ /** The drive explorer's icons (the generic plugin's). */
404
+ export declare const phConnectExplorerIconsSchema: JsonSchemaFragment;
405
+ /** `connect.branding`. */
406
+ export declare const phConnectBrandingSchema: JsonSchemaFragment;
407
+ /** `connect.home`. */
408
+ export declare const phConnectHomeSchema: JsonSchemaFragment;
409
+ /** The authored `connect` block, as validated by Ajv. */
410
+ export declare const phConnectRuntimeConfigSchema: JsonSchemaFragment;
411
+ //#endregion
412
+ //#region connect/shared-deps.d.ts
413
+ export type SharedDep = {
414
+ specifier: string;
415
+ package: string;
416
+ };
417
+ /**
418
+ * The dependency set Connect and loaded packages share via the import map.
419
+ * `@powerhousedao/connect` is deliberately absent: it is the Connect app, not
420
+ * vendored (a host with routes compiles its files), so its exports are for a
421
+ * host's own routes and layout. Packages share `@powerhousedao/connect-core`.
422
+ */
423
+ export declare const SHARED_DEPS: readonly SharedDep[];
424
+ export declare const SHARED_DEP_SPECIFIERS: readonly string[];
425
+ /**
426
+ * The `@powerhousedao/shared` subpaths the production vendor bundles. The
427
+ * bare root is deliberately absent: its type barrel references node-only
428
+ * modules (`clis/`), which the current vite/rolldown cannot bundle for the
429
+ * browser — vendoring the root fails the build (a pre-existing latent
430
+ * issue). A package that imports the bare root is simply not shared; it
431
+ * bundles its own copy.
432
+ */
433
+ export declare const SHARED_SUBPATHS: readonly string[];
434
+ /**
435
+ * The specifiers a package build may safely externalize onto the host's
436
+ * import map — i.e. the ones the vendor actually publishes an entry for.
437
+ *
438
+ * `@powerhousedao/shared` is narrowed to SHARED_SUBPATHS rather than taken as
439
+ * a prefix: the bare root is never vendored (see SHARED_SUBPATHS), and
440
+ * neither are its other subpaths (`analytics`, `constants`, `clis`, ...).
441
+ * Externalizing those would leave a bare specifier in the package's output
442
+ * that nothing in the import map resolves, so the package would fail to load
443
+ * at runtime instead of simply bundling its own copy.
444
+ */
445
+ export declare const EXTERNALIZABLE_SHARED_SPECIFIERS: readonly string[];
446
+ /** Split a specifier into its package name and subpath ("" for a root). */
447
+ export declare function parseDepSpec(spec: string): {
448
+ pkg: string;
449
+ sub: string;
912
450
  };
451
+ /**
452
+ * Return the import/export specifiers in `source` that are a shared
453
+ * specifier (or a subpath of one), sorted. Heuristic: only statement
454
+ * positions are scanned (`from "x"`, `import "x"`, `import("x")`;
455
+ * `export … from "x"` is covered by the `from` pattern), so import-like
456
+ * text inside comments or strings can be reported too. That errs toward
457
+ * over-reporting, which is the safe direction for the advisory build
458
+ * warning.
459
+ */
460
+ export declare function findSharedImports(source: string, specs?: readonly string[]): string[];
461
+ /**
462
+ * Rewrite a package source for blob import in a worker context (import maps
463
+ * don't apply there): shared specifiers become their mapped URLs, and
464
+ * relative (`./`, `../`) specifiers become absolute against `sourceUrl`
465
+ * (a blob URL has no directory to resolve against). `#` subpath imports are
466
+ * deliberately left alone: they resolve via the package's own
467
+ * `package.json` "imports" field, which the rewrite cannot reproduce.
468
+ * Returns the input unchanged when nothing matched.
469
+ */
470
+ export declare function rewritePackageSource(source: string, sourceUrl: string, imports: Record<string, string>): string;
471
+ export type SharedDepMismatch = {
472
+ package: string;
473
+ required: string;
474
+ provided: string;
475
+ };
476
+ export type PackageDeps = {
477
+ dependencies?: Record<string, unknown>;
478
+ peerDependencies?: Record<string, unknown>;
479
+ };
480
+ /**
481
+ * Compare a package's declared ranges against the host's version table.
482
+ * `hostVersions` defines the checked set (only deps present in it are
483
+ * checked). `*`, non-semver protocols (workspace:, file:, git:, npm:, URLs)
484
+ * and unparseable ranges never mismatch.
485
+ */
486
+ export declare function checkSharedDeps(pkgJson: PackageDeps, hostVersions: Record<string, string>): SharedDepMismatch[];
487
+ export declare function formatSharedDepWarnings(mismatches: SharedDepMismatch[]): string[];
488
+ /**
489
+ * Stable filename for a local package's worker model bundle under
490
+ * `__reactor_worker__/packages/`. Shared by the tab (URL computation via the
491
+ * manifest) and the production prebuild (emitted entry names), so the two can
492
+ * never drift. Scoped names flatten (`@scope/name` -> `scope__name`).
493
+ */
494
+ export declare function workerPackageFileName(packageName: string): string;
913
495
  //#endregion
914
- export { ConfigAdapter, ConfigLoader, ConfigShape, ConnectBuildEnv, ConnectEnv, ConnectRuntimeEnv, DEFAULT_CONNECT_CONFIG, DeepPartial, JsonConfigAdapter, JsonConfigAdapterOptions, LoadEnvOptions, type PHConnectPwa, type PHConnectPwaCacheStrategy, type PHConnectPwaFileHandler, type PHConnectPwaIcon, type PHConnectPwaManifest, type PHConnectPwaRuntimeCaching, type PHConnectPwaUrlPattern, PWA_FILE_HANDLER_ACTION, PWA_IDB_KEY, PWA_IDB_NAME, PWA_IDB_STORE, PWA_IDB_VERSION, PwaContribution, PwaWebManifest, ROOT_STORAGE_NAMESPACE, RuntimePowerhouseConfig, buildRuntimeConfig, connectEnvSchema, dedupeFileHandlers, dedupeIcons, deepMerge, getStorageNamespace, loadConnectEnv, loadRuntimeEnv, mergeManifest, mergePwaConfig, normalizeBasePath, phConnectRuntimeConfigSchema, powerhousePackageSchema, runtimeEnvSchema, setConnectEnv, toRegExpOrString, unionStrings, withInferredCategory };
496
+ export { ConfigAdapter, ConfigLoader, ConfigShape, ConnectConfig, ConnectConfigInput, ConnectRuntimeConfig, DeclaredConnectConfigInput, DeepPartial, JsonConfigAdapter, JsonConfigAdapterOptions, type PHConnectPwa, type PHConnectPwaCacheStrategy, type PHConnectPwaFileHandler, type PHConnectPwaIcon, type PHConnectPwaManifest, type PHConnectPwaRuntimeCaching, type PHConnectPwaUrlPattern, connectAiSchema, connectAppSchema, connectBackgroundLayerSchema, connectBackgroundLayersSchema, connectBackgroundSchema, connectBrandingSchema, connectCollectionSchema, connectCompositionEntrySchema, connectConfigSchema, connectConfigSchemaWith, connectDefaultDriveLocalSchema, connectDefaultDriveRemoteSchema, connectDefaultDriveSchema, connectDrivePreserveStrategySchema, connectDriveSectionSchema, connectDriveSectionsSchema, connectDrivesSchema, connectEdgesSchema, connectExplorerIconsSchema, connectHomeSchema, connectImageRefSchema, connectInstanceSchema, connectLengthSchema, connectLoaderSchema, connectOpenPanelSchema, connectPackagesSchema, connectPwaCacheStrategySchema, connectPwaFileHandlerSchema, connectPwaIconSchema, connectPwaManifestSchema, connectPwaRuntimeCachingSchema, connectPwaSchema, connectPwaUrlPatternSchema, connectReactorClientModeSchema, connectReactorFeatureFlagsSchema, connectReactorSchema, connectRemoteBackendSchema, connectRenownAdaptersSchema, connectRenownPrivyAdapterSchema, connectRenownRainbowAdapterSchema, connectRenownSchema, connectRouterSettingsSchema, connectRuntimeConfigSchema, connectRuntimeDefaultDriveRemoteSchema, connectRuntimeDefaultDriveSchema, connectRuntimeDrivesSchema, connectRuntimeInstanceSchema, connectRuntimePwaManifestSchema, connectRuntimePwaSchema, connectSchemedColorSchema, connectSchemedImageSchema, connectSentrySchema, declaredConnectConfigSchema, deepMerge, resolveSourceConnect, workflowsSettingConflict };
497
+ export {};
915
498
  //# sourceMappingURL=index.d.ts.map