@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,486 @@
1
+ import { g as tokenable } from "../host-tokens-DOeyxqLi.js";
2
+ import { z } from "zod";
3
+ //#region connect/connect-config-schema.ts
4
+ const IMAGE_REF = "Image reference: a project-relative file path, a URL, or a data URI.";
5
+ const IMAGE_REF_OR_DEFAULT = "Image reference: a project-relative file path (resolved by the Connect build), a URL, or a data URI. null keeps the default.";
6
+ /** An image reference: a project-relative file path (the Connect build turns
7
+ * it into a data URI or an emitted file), a URL, or a data URI. */
8
+ const connectImageRefSchema = z.string().describe(IMAGE_REF);
9
+ /** An image reference where `null` (or omitting it) keeps the default. */
10
+ const optionalImageRef = (description = IMAGE_REF_OR_DEFAULT) => connectImageRefSchema.nullable().optional().describe(description);
11
+ /** An image per colour scheme: one reference for both, or `{ light, dark }`
12
+ * (`dark` falls back to `light`). */
13
+ const connectSchemedImageSchema = z.union([connectImageRefSchema, z.strictObject({
14
+ light: connectImageRefSchema,
15
+ dark: connectImageRefSchema.nullable().optional()
16
+ })]).describe("One image for both colour schemes, or { light, dark } (dark falls back to light).");
17
+ /** A CSS colour per colour scheme (`dark` falls back to `light`). */
18
+ const connectSchemedColorSchema = z.union([z.string(), z.strictObject({
19
+ light: z.string(),
20
+ dark: z.string().nullable().optional()
21
+ })]);
22
+ /** A CSS length: a number is px, a string is passed through as written. */
23
+ const connectLengthSchema = z.union([z.number(), z.string()]);
24
+ const optionalLength = () => connectLengthSchema.nullable().optional().describe("A CSS length: a number is px; a string is used as written (\"40%\", \"min(55%, 880px)\", \"calc(50% - 120px)\").");
25
+ /** Distances to the four edges; each is optional. */
26
+ const connectEdgesSchema = z.strictObject({
27
+ top: optionalLength(),
28
+ right: optionalLength(),
29
+ bottom: optionalLength(),
30
+ left: optionalLength()
31
+ });
32
+ /** One image of a decorated pane, absolutely positioned inside it. */
33
+ const connectBackgroundLayerSchema = z.strictObject({
34
+ src: connectSchemedImageSchema,
35
+ position: connectEdgesSchema.nullable().optional().describe("Distances to the pane's edges; at most one per axis. Omitted: centred both ways."),
36
+ width: optionalLength(),
37
+ height: optionalLength(),
38
+ minWidth: optionalLength(),
39
+ minHeight: optionalLength(),
40
+ maxWidth: optionalLength(),
41
+ maxHeight: optionalLength(),
42
+ opacity: z.number().min(0).max(1).nullable().optional().describe("0 to 1 (default 1)."),
43
+ fade: connectEdgesSchema.nullable().optional().describe("Feather depth per edge, fading the layer into the page colour.")
44
+ }).describe("An image laid over the page, absolutely positioned: the edges set in `position` pin it, an axis with neither edge set is centred.");
45
+ /** A decorated pane: the page colour and the images laid over it. */
46
+ const connectBackgroundLayersSchema = z.strictObject({
47
+ color: connectSchemedColorSchema.nullable().optional().describe("The page colour, or { light, dark }. Omitted or null: the theme's page background."),
48
+ layers: z.array(connectBackgroundLayerSchema).describe("Painted in order; the first is at the back.")
49
+ });
50
+ /** A pane's background: layers over a page colour, or one image as
51
+ * shorthand for a single layer pinned bottom-right. */
52
+ const connectBackgroundSchema = z.union([connectImageRefSchema, connectBackgroundLayersSchema]).describe("Layered images over a page colour, or a single image pinned to the bottom-right corner. null keeps the default.");
53
+ /** The loading image and the motion applied to it. */
54
+ const connectLoaderSchema = z.strictObject({
55
+ src: connectImageRefSchema,
56
+ animation: z.enum([
57
+ "pulse",
58
+ "spin",
59
+ "none"
60
+ ]).nullable().optional().describe("Motion applied to the image (default pulse)."),
61
+ size: z.number().min(16).max(512).nullable().optional().describe("Rendered width in CSS pixels (default 96); the height follows the image.")
62
+ });
63
+ /** `connect.branding`: Connect's identity and look. */
64
+ const connectBrandingSchema = z.strictObject({
65
+ appName: z.string().nullable().optional().describe("Browser tab title, installed-app name and in-app brand text. null or omitted: 'Powerhouse Connect'."),
66
+ icon: optionalImageRef("App icon master (1024x1024 PNG recommended, or an SVG). The favicons and installed-app icons are found next to it as <name>_16x16.png, _32x32, _64x64, _192x192 and _512x512; the 64 px one is the in-app logo. null or omitted: Connect's icon."),
67
+ favicon: z.string().nullable().optional().describe("The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico, or as icon.svg or icon.png for those types. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it."),
68
+ loader: z.union([connectImageRefSchema, connectLoaderSchema]).nullable().optional().describe("The loading image (first paint, app start, drive and editor loading). A path gets a gentle pulse; { src, animation, size } says otherwise, with animation \"none\" for an image that animates itself (animated SVG, GIF or WebP). null or omitted: Connect's animated logo.")
69
+ }).describe("App identity and visual branding. Every field is optional; null means the default.");
70
+ /** `connect.home`: the home screen (the generic chrome's landing page). */
71
+ const connectHomeSchema = z.strictObject({ background: connectBackgroundSchema.nullable().optional().describe("The home screen's background: { color, layers } with each image positioned and sized, or one image pinned bottom-right. null or omitted: the bundled gradient.") }).describe("The home screen (the generic chrome's landing page).");
72
+ const connectAppSchema = z.strictObject({
73
+ logLevel: z.enum([
74
+ "debug",
75
+ "info",
76
+ "warn",
77
+ "error"
78
+ ]).optional().meta({
79
+ description: "Log level applied by Connect's logger at boot. Affects browser-side output only.",
80
+ default: "info"
81
+ }),
82
+ basePath: z.string().optional().meta({
83
+ 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.",
84
+ default: "/"
85
+ }),
86
+ offline: z.boolean().optional().meta({
87
+ 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.",
88
+ default: true
89
+ }),
90
+ studioMode: z.boolean().optional().meta({
91
+ 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.",
92
+ default: false
93
+ }),
94
+ cookieBanner: z.boolean().optional().meta({
95
+ description: "Show the analytics cookie consent banner on a first visit, when a plugin that needs consent (Sentry, OpenPanel) is active. When false, no banner is shown and analytics consent stays rejected. `ph vetra` turns it off for its local Studio; true by default.",
96
+ default: true
97
+ }),
98
+ workflowsEnabled: z.boolean().optional().describe("Powerhouse workflows in Connect. When true the tab loads the @powerhousedao/workflow package (workflow + connection documents, their editors and Workflow Studio) and the reactor worker registers its document models. Falls back to the top-level `workflows.enabled`; set it to override that for Connect. Independent of studioMode. False when neither is set.")
99
+ }).describe("Top-level Connect application behaviour.");
100
+ const connectAiSchema = z.strictObject({ assistantEnabled: z.boolean().optional().meta({
101
+ 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.",
102
+ default: false
103
+ }) }).describe("AI assistant (chat) behaviour.");
104
+ const connectPackagesSchema = z.strictObject({
105
+ externalEnabled: z.boolean().optional().meta({
106
+ 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.",
107
+ default: true
108
+ }),
109
+ liveReload: z.boolean().optional().meta({
110
+ 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).",
111
+ default: false
112
+ })
113
+ }).describe("Runtime behaviour for the Connect package manager (separate from top-level `packages[]`, which lists which packages to load).");
114
+ const EXPLORER_ICONS_DESCRIPTION = "The drive explorer's icons (the generic plugin's); each null keeps the built-in icon.";
115
+ /** The drive explorer's icons: the generic chrome's, owned by the generic
116
+ * plugin. Each `null` keeps the built-in icon. */
117
+ const connectExplorerIconsSchema = z.strictObject({
118
+ localDrive: optionalImageRef("Local drives without an icon of their own."),
119
+ remoteDrive: optionalImageRef("Remote drives without an icon of their own."),
120
+ folder: optionalImageRef("Folders."),
121
+ document: optionalImageRef("Documents whose type has no icon in `documents`."),
122
+ documents: z.record(z.string(), connectImageRefSchema).nullable().optional().describe("Per document type, e.g. \"acme/invoice\".")
123
+ }).describe(EXPLORER_ICONS_DESCRIPTION);
124
+ const connectDefaultDriveRemoteSchema = z.strictObject({
125
+ url: z.string(),
126
+ name: z.string().nullable().optional(),
127
+ icon: z.string().nullable().optional()
128
+ });
129
+ const connectDefaultDriveLocalSchema = z.strictObject({
130
+ local: z.literal(true).describe("Discriminator: this entry is a local drive created on first boot."),
131
+ id: z.string().describe("Stable drive id. The drive is created with this id on first boot and is not re-created on later boots."),
132
+ name: z.string().nullable().optional(),
133
+ icon: z.string().nullable().optional(),
134
+ app: z.string().optional().describe("Drive app (preferred editor) to open on the drive.")
135
+ });
136
+ const connectDefaultDriveSchema = z.union([connectDefaultDriveRemoteSchema, connectDefaultDriveLocalSchema]);
137
+ /** `connect.drives.sections.{remote,local}`: three affirmative toggles. */
138
+ const connectDriveSectionSchema = z.strictObject({
139
+ enabled: z.boolean().optional().meta({
140
+ description: "When false, the section is hidden in the sidebar.",
141
+ default: true
142
+ }),
143
+ allowAdd: z.boolean().optional().meta({
144
+ description: "When false, the section's 'add drive' affordance is hidden.",
145
+ default: true
146
+ }),
147
+ allowDelete: z.boolean().optional().meta({
148
+ description: "When false, drives in this section cannot be deleted from the UI.",
149
+ default: true
150
+ })
151
+ }).describe("Visibility and add/delete affordances for a drive section in the sidebar.");
152
+ const connectDriveSectionsSchema = z.strictObject({
153
+ remote: connectDriveSectionSchema.optional(),
154
+ local: connectDriveSectionSchema.optional()
155
+ }).describe("Per-section visibility and affordance toggles. `remote` covers what was historically split into 'public' + 'cloud'; `local` is browser-local drives.");
156
+ /** Mirrors DRIVES_PRESERVE_STRATEGIES (../clis/constants.ts, which imports
157
+ * node: modules, so it is not imported here); a test pins the two. */
158
+ const connectDrivePreserveStrategySchema = z.enum(["preserve-all", "preserve-by-url-and-detach"]);
159
+ const connectDrivesSchema = z.strictObject({
160
+ allowAddDrive: z.boolean().optional().meta({
161
+ description: "When false, the SPA hides the 'add drive' affordance entirely (top-level). Per-section overrides live in `sections.{remote,local}.allowAdd`.",
162
+ default: true
163
+ }),
164
+ defaultDrives: z.array(connectDefaultDriveSchema).optional().meta({
165
+ 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).",
166
+ default: []
167
+ }),
168
+ preserveStrategy: connectDrivePreserveStrategySchema.optional().describe("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."),
169
+ sections: connectDriveSectionsSchema.optional(),
170
+ icons: connectExplorerIconsSchema.nullable().optional().describe(EXPLORER_ICONS_DESCRIPTION)
171
+ }).describe("Default-drive and add-drive UI behaviour.");
172
+ const connectRenownRainbowAdapterSchema = z.strictObject({
173
+ walletConnectProjectId: z.string().optional().describe("WalletConnect project id; required for this adapter to function."),
174
+ infuraProjectId: z.string().optional().describe("Optional Infura project id used to build RPC transports.")
175
+ }).describe("wagmi + RainbowKit external-wallet adapter config.");
176
+ const connectRenownPrivyAdapterSchema = z.strictObject({
177
+ appId: z.string().optional().describe("Privy application id; required for this adapter to function."),
178
+ clientId: z.string().optional().describe("Optional Privy client id."),
179
+ methods: z.array(z.string()).optional().describe("Login methods this adapter offers; default per adapter when omitted.")
180
+ }).describe("Privy embedded/social adapter config.");
181
+ const connectRenownAdaptersSchema = z.strictObject({
182
+ rainbow: connectRenownRainbowAdapterSchema.optional(),
183
+ privy: connectRenownPrivyAdapterSchema.optional()
184
+ }).describe("Per-adapter wallet config for in-page auth. Presence of an adapter key enables it; omit or leave empty for redirect-only behaviour.");
185
+ const connectRenownSchema = z.strictObject({
186
+ url: z.string().optional().meta({
187
+ description: "Renown auth service URL.",
188
+ default: "https://www.renown.id"
189
+ }),
190
+ networkId: z.string().optional().meta({
191
+ description: "CAIP-2 network namespace (e.g. 'eip155').",
192
+ default: "eip155"
193
+ }),
194
+ chainId: z.number().optional().meta({
195
+ description: "CAIP-2 chain reference within the network namespace.",
196
+ default: 1
197
+ }),
198
+ namespace: z.string().optional().describe("Renown localStorage namespace; share it across Connects to share login."),
199
+ switchboardUrl: z.string().optional().describe("Switchboard GraphQL URL. When set, Connect enables in-page (no-redirect) Renown sign-in; otherwise it falls back to the redirect flow via `url`."),
200
+ adapters: connectRenownAdaptersSchema.optional()
201
+ }).describe("Renown identity / authentication coordinates.");
202
+ const connectSentrySchema = z.strictObject({
203
+ dsn: z.string().nullable().optional().meta({
204
+ description: "Sentry DSN URL. `null` disables Sentry entirely; the SPA never loads the Sentry SDK chunk.",
205
+ default: null
206
+ }),
207
+ env: z.string().optional().meta({
208
+ description: "Sentry environment label, surfaced as the `environment` tag on every event.",
209
+ default: "dev"
210
+ }),
211
+ tracing: z.boolean().optional().meta({
212
+ description: "Enable Sentry performance tracing.",
213
+ default: false
214
+ })
215
+ }).describe("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.");
216
+ const connectOpenPanelSchema = z.strictObject({
217
+ clientId: z.string().optional().meta({
218
+ description: "OpenPanel client id. Empty string disables OpenPanel entirely.",
219
+ default: ""
220
+ }),
221
+ apiUrl: z.string().optional().describe("OpenPanel API URL for self-hosted instances (e.g. 'https://openpanel.example/api'). Omit to use OpenPanel's hosted API."),
222
+ trackUiEvents: z.boolean().optional().meta({
223
+ description: "Track UI events.",
224
+ default: true
225
+ }),
226
+ trackOperations: z.boolean().optional().meta({
227
+ description: "Track document operations.",
228
+ default: true
229
+ })
230
+ }).describe("OpenPanel product analytics. Set `clientId` to enable; an empty `clientId` disables it. Events are only sent after the user accepts analytics cookies. Takes precedence over the build-time PH_CONNECT_OPENPANEL_* env vars.");
231
+ /** Which reactor client Connect runs (see PHReactorClientMode). */
232
+ const connectReactorClientModeSchema = z.enum([
233
+ "in-process",
234
+ "worker",
235
+ "remote",
236
+ "router"
237
+ ]);
238
+ const connectInstanceSchema = z.strictObject({
239
+ namespace: z.string().nullable().meta({
240
+ 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.",
241
+ default: null
242
+ }),
243
+ reactorWorker: z.boolean().meta({
244
+ 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. Packaged deployments load the worker from the prebuilt bundle `ph connect build` emits under __reactor_worker__/ (the dev server builds it lazily at the same path); when that bundle is absent the feature reports itself unavailable instead of starting a worker that cannot load.",
245
+ default: false
246
+ }),
247
+ multiReactor: z.boolean().optional().meta({
248
+ description: "Opt-in multi-reactor routing. When on, Connect routes through the in-browser reactor plus remote backends instead of the single in-browser reactor. Off by default; the single-reactor path is unchanged.",
249
+ default: false
250
+ })
251
+ }).describe("Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.");
252
+ const connectReactorFeatureFlagsSchema = z.strictObject({
253
+ documentDecisions: z.boolean().optional().meta({
254
+ description: "Decide writes from the document stream rather than the document meta cache, so a backdated deletion denies the operations that sort after it.",
255
+ default: false
256
+ }),
257
+ authEnforcement: z.boolean().optional().meta({
258
+ description: "Enforce the auth scope's policy at admission, replay, and read. Requires documentDecisions.",
259
+ default: false
260
+ }),
261
+ authGroups: z.boolean().optional().meta({
262
+ description: "Let `{ group }` principals match against the rosters of the group documents a policy names. Requires authEnforcement.",
263
+ default: false
264
+ }),
265
+ authConditions: z.boolean().optional().meta({
266
+ description: "Evaluate `where` and `match` conditions on grants. Requires authGroups. Do not enable on a fleet `preflight:auth` reports as crossing a reducer version.",
267
+ default: false
268
+ }),
269
+ undoV3: z.boolean().optional().meta({ description: "Support base-reducer 3 (id-targeted undo), which new documents then take. A peer without it is held from base-reducer 3 documents until it upgrades. Unset leaves the reactor's default." })
270
+ }).describe("Reactor feature flags. The four enforcement flags each imply their predecessors, and the reactor refuses to boot on a set that names a later one without an earlier one. They are consensus settings: a Connect syncing with a fleet must carry the same enforcement flags the fleet does, or the two reach different replay outcomes for the same history and diverge. undoV3 has no prerequisites; peers negotiate it.");
271
+ const connectReactorSchema = z.strictObject({
272
+ featureFlags: connectReactorFeatureFlagsSchema.optional(),
273
+ createSignaturePolicy: z.enum(["legacy", "v2-required"]).optional().meta({
274
+ description: "What new documents are created as. `v2-required` documents accept only v2 action signatures and take content-addressed ids; set `legacy` while any peer Connect syncs with predates them. Existing documents keep their policy.",
275
+ default: "v2-required"
276
+ }),
277
+ unsupportedStoredDocuments: z.enum(["refuse", "read-only"]).optional().meta({
278
+ description: "What the reactor does when this browser's store holds documents at protocol versions this build does not run. `refuse` fails the boot and names the versions; `read-only` boots and keeps those documents read-only.",
279
+ default: "refuse"
280
+ })
281
+ }).describe("Settings for the reactor Connect runs in the browser, on the main thread or in the shared worker alike.");
282
+ /** A runtime-caching / denylist URL match. A string is handed to Workbox
283
+ * verbatim; `{ source, flags }` is rebuilt into a RegExp at build time. */
284
+ const connectPwaUrlPatternSchema = z.union([z.string(), z.strictObject({
285
+ source: z.string().describe("RegExp source."),
286
+ flags: z.string().optional().describe("RegExp flags (e.g. 'i').")
287
+ }).refine((p) => {
288
+ try {
289
+ new RegExp(p.source, p.flags);
290
+ return true;
291
+ } catch {
292
+ return false;
293
+ }
294
+ }, { message: "source/flags do not compile to a valid RegExp" })]).describe("URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.");
295
+ const connectPwaCacheStrategySchema = z.enum([
296
+ "CacheFirst",
297
+ "CacheOnly",
298
+ "NetworkFirst",
299
+ "NetworkOnly",
300
+ "StaleWhileRevalidate"
301
+ ]);
302
+ /** Serialisable subset of a Workbox `RuntimeCaching` rule. */
303
+ const connectPwaRuntimeCachingSchema = z.strictObject({
304
+ urlPattern: connectPwaUrlPatternSchema,
305
+ handler: connectPwaCacheStrategySchema,
306
+ method: z.enum([
307
+ "GET",
308
+ "POST",
309
+ "PUT",
310
+ "DELETE",
311
+ "HEAD",
312
+ "PATCH"
313
+ ]).optional(),
314
+ options: z.strictObject({
315
+ cacheName: z.string().optional(),
316
+ networkTimeoutSeconds: z.number().optional().describe("Seconds a NetworkFirst rule waits for the network before falling back to the cache."),
317
+ expiration: z.strictObject({
318
+ maxEntries: z.number().optional(),
319
+ maxAgeSeconds: z.number().optional()
320
+ }).optional(),
321
+ cacheableResponse: z.strictObject({
322
+ statuses: z.array(z.number()).optional(),
323
+ headers: z.record(z.string(), z.string()).optional()
324
+ }).optional()
325
+ }).optional()
326
+ });
327
+ const connectPwaIconSchema = z.strictObject({
328
+ src: z.string(),
329
+ sizes: z.string().optional(),
330
+ type: z.string().optional(),
331
+ purpose: z.string().optional()
332
+ });
333
+ /** A File Handling API entry. No `action`: every handler opens at Connect's
334
+ * app root, because consuming launched files needs Connect's own code. */
335
+ const connectPwaFileHandlerSchema = z.strictObject({
336
+ accept: z.record(z.string(), z.array(z.string().regex(/^\./, "file extensions must start with '.'"))).describe("MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it."),
337
+ icons: z.array(connectPwaIconSchema).optional().describe("OS-level file-type icons."),
338
+ launch_type: z.enum(["single-client", "multiple-clients"]).optional()
339
+ });
340
+ /** Web-app-manifest fields a package or project may override. */
341
+ const connectPwaManifestSchema = z.strictObject({
342
+ name: z.string().optional(),
343
+ short_name: z.string().optional(),
344
+ description: z.string().optional(),
345
+ theme_color: z.string().optional(),
346
+ background_color: z.string().optional(),
347
+ display: z.enum([
348
+ "fullscreen",
349
+ "standalone",
350
+ "minimal-ui",
351
+ "browser"
352
+ ]).optional(),
353
+ start_url: z.string().optional(),
354
+ scope: z.string().optional(),
355
+ icons: z.array(connectPwaIconSchema).optional().describe("Icons appended to the built-in set and de-duplicated by (src, sizes, purpose)."),
356
+ file_handlers: z.array(connectPwaFileHandlerSchema).optional().describe("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."),
357
+ launch_handler: z.strictObject({ client_mode: z.enum([
358
+ "auto",
359
+ "focus-existing",
360
+ "navigate-existing",
361
+ "navigate-new"
362
+ ]) }).optional().describe("How the OS launches the app for handled files/links. Connect defaults to focus-existing.")
363
+ }).describe("Web-app-manifest field overrides.");
364
+ const pwaShape = {
365
+ globPatterns: z.array(z.string()).optional().describe("Extra Workbox precache globs, unioned with the built-ins."),
366
+ globIgnores: z.array(z.string()).optional().describe("Extra precache ignore globs, unioned with the built-ins."),
367
+ maximumFileSizeToCacheInBytes: z.number().optional().describe("Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit."),
368
+ runtimeCaching: z.array(connectPwaRuntimeCachingSchema).optional().describe("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."),
369
+ navigateFallbackDenylist: z.array(connectPwaUrlPatternSchema).optional().describe("Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.")
370
+ };
371
+ const PWA_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.";
372
+ /** `connect.pwa` as authored. */
373
+ const connectPwaSchema = z.strictObject({
374
+ manifest: connectPwaManifestSchema.optional(),
375
+ ...pwaShape
376
+ }).describe(PWA_DESCRIPTION);
377
+ /**
378
+ * The `connect` block as authored: powerhouse.config.json's `connect`, the
379
+ * connect host's `config`, and `ph connect config` writes. Every field is
380
+ * optional; omit the section entirely for default behaviour.
381
+ */
382
+ const connectConfigSchema = z.strictObject({
383
+ branding: connectBrandingSchema.optional(),
384
+ home: connectHomeSchema.optional(),
385
+ app: connectAppSchema.optional(),
386
+ ai: connectAiSchema.optional(),
387
+ packages: connectPackagesSchema.optional(),
388
+ drives: connectDrivesSchema.optional(),
389
+ renown: connectRenownSchema.optional(),
390
+ sentry: connectSentrySchema.optional(),
391
+ openPanel: connectOpenPanelSchema.optional(),
392
+ instance: connectInstanceSchema.optional(),
393
+ reactor: connectReactorSchema.optional(),
394
+ pwa: connectPwaSchema.optional()
395
+ }).describe("Connect-specific UI customisations. All fields optional; omit the section entirely for default behaviour.");
396
+ /** `schema` carrying `source`'s description and meta (zod keeps them per
397
+ * instance, so `.extend()` and a rebuilt field drop them). */
398
+ function withMetaOf(schema, source) {
399
+ const meta = source.meta();
400
+ return meta ? schema.meta(meta) : schema;
401
+ }
402
+ /**
403
+ * The `connect` block with its token-able fields wrapped by `field`: the
404
+ * fields that name another host's outputs, which a connect host's `config`
405
+ * may write as output tokens (`ph run` resolves them before the verb).
406
+ *
407
+ * - `drives.defaultDrives[].url` (a remote entry): e.g. a switchboard's
408
+ * `drives.<slug>.url` output.
409
+ * - `renown.switchboardUrl`: a switchboard's `endpoints.graphql` output.
410
+ *
411
+ * The connect runner builds it with host-core's `s.tokenable` (declared:
412
+ * tokens in; resolved: plain values only). The output type is
413
+ * {@link ConnectConfig} either way. powerhouse.config.json's `connect` block,
414
+ * the served config and their JSON Schemas stay {@link connectConfigSchema},
415
+ * which takes no tokens.
416
+ */
417
+ function connectConfigSchemaWith(field) {
418
+ const remoteDrive = connectDefaultDriveRemoteSchema.extend({ url: field(z.string()) });
419
+ const shape = connectDrivesSchema.shape;
420
+ const drives = withMetaOf(connectDrivesSchema.extend({ defaultDrives: withMetaOf(z.array(z.union([remoteDrive, connectDefaultDriveLocalSchema])).optional(), shape.defaultDrives) }), connectDrivesSchema);
421
+ const renown = withMetaOf(connectRenownSchema.extend({ switchboardUrl: withMetaOf(field(z.string()).optional(), connectRenownSchema.shape.switchboardUrl) }), connectRenownSchema);
422
+ return withMetaOf(connectConfigSchema.extend({
423
+ drives: drives.optional(),
424
+ renown: renown.optional()
425
+ }), connectConfigSchema);
426
+ }
427
+ /** The declared `connect` block: {@link connectConfigSchemaWith} with every
428
+ * token accepted in its token-able fields. */
429
+ const declaredConnectConfigSchema = /* @__PURE__ */ connectConfigSchemaWith(tokenable);
430
+ /** One entry of the host.js composition, projected into the served config as
431
+ * data (module specifier + validated config). */
432
+ const connectCompositionEntrySchema = z.strictObject({
433
+ module: z.string(),
434
+ config: z.record(z.string(), z.unknown()).optional()
435
+ });
436
+ /** A switchboard Connect routes to, from one of the host's remote backends. */
437
+ const connectRemoteBackendSchema = z.strictObject({
438
+ name: z.string().min(1).describe("The backend's key in the host config."),
439
+ url: z.string().describe("A drive address on the switchboard: <switchboard>/d/<slug>."),
440
+ requestTimeoutMs: z.number().int().positive().optional().describe("Give up on one request after this long. Default 30000."),
441
+ breaker: z.union([z.literal(false), z.strictObject({
442
+ failures: z.number().int().min(1).optional(),
443
+ openMs: z.number().int().nonnegative().optional()
444
+ })]).optional().describe("After `failures` failed requests in a row, send nothing for `openMs`. false: never stop trying."),
445
+ realtime: z.boolean().optional().describe("Live updates over a socket. Default true.")
446
+ });
447
+ /** The router settings a host sets for Connect. */
448
+ const connectRouterSettingsSchema = z.strictObject({
449
+ newDrives: z.string().min(1).optional().describe("The remoteBackends[].name new drives are created on, with no copy in this browser. Absent: the browser reactor, else the only switchboard."),
450
+ probeTimeoutMs: z.number().int().nonnegative().optional(),
451
+ provisionalRouteMs: z.number().int().nonnegative().optional()
452
+ });
453
+ /** `sync: false` keeps no copy in this browser; unset means true. */
454
+ const connectCollectionSchema = z.strictObject({
455
+ backend: z.string().min(1),
456
+ sync: z.boolean().optional()
457
+ });
458
+ /** `collections` holds placed drives that are not default drives, keyed by declared slug. */
459
+ const connectRuntimeInstanceSchema = connectInstanceSchema.extend({
460
+ reactorClient: connectReactorClientModeSchema.optional(),
461
+ storage: z.enum(["idb", "memory"]).optional().meta({ description: "Where the browser reactor keeps its stores. `memory`: nothing outlives the page (or its shared worker). Absent: idb." }),
462
+ remoteBackends: z.array(connectRemoteBackendSchema).optional(),
463
+ collections: z.record(z.string(), connectCollectionSchema).optional(),
464
+ router: connectRouterSettingsSchema.optional()
465
+ });
466
+ /** A remote default drive plus the backend serving it. */
467
+ const connectRuntimeDefaultDriveRemoteSchema = connectDefaultDriveRemoteSchema.extend({
468
+ backend: z.string().min(1).optional(),
469
+ sync: z.boolean().optional()
470
+ });
471
+ const connectRuntimeDefaultDriveSchema = z.union([connectRuntimeDefaultDriveRemoteSchema, connectDefaultDriveLocalSchema]);
472
+ const connectRuntimeDrivesSchema = withMetaOf(connectDrivesSchema.extend({ defaultDrives: withMetaOf(z.array(connectRuntimeDefaultDriveSchema).optional(), connectDrivesSchema.shape.defaultDrives) }), connectDrivesSchema);
473
+ /** The manifest plus `categories`, derived from contributors' `category`. */
474
+ const connectRuntimePwaManifestSchema = connectPwaManifestSchema.extend({ categories: z.array(z.string()).optional() });
475
+ const connectRuntimePwaSchema = connectPwaSchema.extend({ manifest: connectRuntimePwaManifestSchema.optional() });
476
+ /** The served `connect` block (runtime powerhouse.config.json). */
477
+ const connectRuntimeConfigSchema = connectConfigSchema.extend({
478
+ composition: z.array(connectCompositionEntrySchema).optional(),
479
+ drives: connectRuntimeDrivesSchema.optional(),
480
+ instance: connectRuntimeInstanceSchema.optional(),
481
+ pwa: connectRuntimePwaSchema.optional()
482
+ });
483
+ //#endregion
484
+ export { 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 };
485
+
486
+ //# sourceMappingURL=connect-config-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-config-schema.js","names":[],"sources":["../../connect/connect-config-schema.ts"],"sourcesContent":["// Single source of Connect's config (browser-safe, zod only). The PHConnect*\n// types (../clis/types.ts) and the JSON Schema fragments Ajv consumes\n// (./schema-fragments.ts) are derived from it.\n//\n// Never `.default(x)`: it fills values on parse; use `.meta({ default })`.\n// Never `.meta({ id })`: it emits `$defs`, whose refs break once the fragment\n// is embedded in another schema root.\n\nimport { z } from \"zod\";\nimport { tokenable, type TokenField } from \"../host-tokens/index.js\";\n\n// ---------------------------------------------------------------------------\n// Images, colours, lengths and backgrounds\n// ---------------------------------------------------------------------------\n\nconst IMAGE_REF =\n \"Image reference: a project-relative file path, a URL, or a data URI.\";\nconst IMAGE_REF_OR_DEFAULT =\n \"Image reference: a project-relative file path (resolved by the Connect build), a URL, or a data URI. null keeps the default.\";\n\n/** An image reference: a project-relative file path (the Connect build turns\n * it into a data URI or an emitted file), a URL, or a data URI. */\nexport const connectImageRefSchema = z.string().describe(IMAGE_REF);\n\n/** An image reference where `null` (or omitting it) keeps the default. */\nconst optionalImageRef = (description = IMAGE_REF_OR_DEFAULT) =>\n connectImageRefSchema.nullable().optional().describe(description);\n\n/** An image per colour scheme: one reference for both, or `{ light, dark }`\n * (`dark` falls back to `light`). */\nexport const connectSchemedImageSchema = z\n .union([\n connectImageRefSchema,\n z.strictObject({\n light: connectImageRefSchema,\n dark: connectImageRefSchema.nullable().optional(),\n }),\n ])\n .describe(\n \"One image for both colour schemes, or { light, dark } (dark falls back to light).\",\n );\n\n/** A CSS colour per colour scheme (`dark` falls back to `light`). */\nexport const connectSchemedColorSchema = z.union([\n z.string(),\n z.strictObject({\n light: z.string(),\n dark: z.string().nullable().optional(),\n }),\n]);\n\n/** A CSS length: a number is px, a string is passed through as written. */\nexport const connectLengthSchema = z.union([z.number(), z.string()]);\n\nconst optionalLength = () =>\n connectLengthSchema\n .nullable()\n .optional()\n .describe(\n 'A CSS length: a number is px; a string is used as written (\"40%\", \"min(55%, 880px)\", \"calc(50% - 120px)\").',\n );\n\n/** Distances to the four edges; each is optional. */\nexport const connectEdgesSchema = z.strictObject({\n top: optionalLength(),\n right: optionalLength(),\n bottom: optionalLength(),\n left: optionalLength(),\n});\n\n/** One image of a decorated pane, absolutely positioned inside it. */\nexport const connectBackgroundLayerSchema = z\n .strictObject({\n src: connectSchemedImageSchema,\n position: connectEdgesSchema\n .nullable()\n .optional()\n .describe(\n \"Distances to the pane's edges; at most one per axis. Omitted: centred both ways.\",\n ),\n width: optionalLength(),\n height: optionalLength(),\n minWidth: optionalLength(),\n minHeight: optionalLength(),\n maxWidth: optionalLength(),\n maxHeight: optionalLength(),\n opacity: z\n .number()\n .min(0)\n .max(1)\n .nullable()\n .optional()\n .describe(\"0 to 1 (default 1).\"),\n fade: connectEdgesSchema\n .nullable()\n .optional()\n .describe(\n \"Feather depth per edge, fading the layer into the page colour.\",\n ),\n })\n .describe(\n \"An image laid over the page, absolutely positioned: the edges set in `position` pin it, an axis with neither edge set is centred.\",\n );\n\n/** A decorated pane: the page colour and the images laid over it. */\nexport const connectBackgroundLayersSchema = z.strictObject({\n color: connectSchemedColorSchema\n .nullable()\n .optional()\n .describe(\n \"The page colour, or { light, dark }. Omitted or null: the theme's page background.\",\n ),\n layers: z\n .array(connectBackgroundLayerSchema)\n .describe(\"Painted in order; the first is at the back.\"),\n});\n\n/** A pane's background: layers over a page colour, or one image as\n * shorthand for a single layer pinned bottom-right. */\nexport const connectBackgroundSchema = z\n .union([connectImageRefSchema, connectBackgroundLayersSchema])\n .describe(\n \"Layered images over a page colour, or a single image pinned to the bottom-right corner. null keeps the default.\",\n );\n\n// ---------------------------------------------------------------------------\n// branding, home\n// ---------------------------------------------------------------------------\n\n/** The loading image and the motion applied to it. */\nexport const connectLoaderSchema = z.strictObject({\n src: connectImageRefSchema,\n animation: z\n .enum([\"pulse\", \"spin\", \"none\"])\n .nullable()\n .optional()\n .describe(\"Motion applied to the image (default pulse).\"),\n size: z\n .number()\n .min(16)\n .max(512)\n .nullable()\n .optional()\n .describe(\n \"Rendered width in CSS pixels (default 96); the height follows the image.\",\n ),\n});\n\n/** `connect.branding`: Connect's identity and look. */\nexport const connectBrandingSchema = z\n .strictObject({\n appName: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Browser tab title, installed-app name and in-app brand text. null or omitted: 'Powerhouse Connect'.\",\n ),\n icon: optionalImageRef(\n \"App icon master (1024x1024 PNG recommended, or an SVG). The favicons and installed-app icons are found next to it as <name>_16x16.png, _32x32, _64x64, _192x192 and _512x512; the 64 px one is the in-app logo. null or omitted: Connect's icon.\",\n ),\n favicon: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico, or as icon.svg or icon.png for those types. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it.\",\n ),\n loader: z\n .union([connectImageRefSchema, connectLoaderSchema])\n .nullable()\n .optional()\n .describe(\n 'The loading image (first paint, app start, drive and editor loading). A path gets a gentle pulse; { src, animation, size } says otherwise, with animation \"none\" for an image that animates itself (animated SVG, GIF or WebP). null or omitted: Connect\\'s animated logo.',\n ),\n })\n .describe(\n \"App identity and visual branding. Every field is optional; null means the default.\",\n );\n\n/** `connect.home`: the home screen (the generic chrome's landing page). */\nexport const connectHomeSchema = z\n .strictObject({\n background: connectBackgroundSchema\n .nullable()\n .optional()\n .describe(\n \"The home screen's background: { color, layers } with each image positioned and sized, or one image pinned bottom-right. null or omitted: the bundled gradient.\",\n ),\n })\n .describe(\"The home screen (the generic chrome's landing page).\");\n\n// ---------------------------------------------------------------------------\n// app, ai, packages\n// ---------------------------------------------------------------------------\n\nexport const connectAppSchema = z\n .strictObject({\n logLevel: z.enum([\"debug\", \"info\", \"warn\", \"error\"]).optional().meta({\n description:\n \"Log level applied by Connect's logger at boot. Affects browser-side output only.\",\n default: \"info\",\n }),\n basePath: z.string().optional().meta({\n description:\n \"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.\",\n default: \"/\",\n }),\n offline: z.boolean().optional().meta({\n description:\n \"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.\",\n default: true,\n }),\n studioMode: z.boolean().optional().meta({\n description:\n \"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.\",\n default: false,\n }),\n cookieBanner: z.boolean().optional().meta({\n description:\n \"Show the analytics cookie consent banner on a first visit, when a plugin that needs consent (Sentry, OpenPanel) is active. When false, no banner is shown and analytics consent stays rejected. `ph vetra` turns it off for its local Studio; true by default.\",\n default: true,\n }),\n workflowsEnabled: z\n .boolean()\n .optional()\n .describe(\n \"Powerhouse workflows in Connect. When true the tab loads the @powerhousedao/workflow package (workflow + connection documents, their editors and Workflow Studio) and the reactor worker registers its document models. Falls back to the top-level `workflows.enabled`; set it to override that for Connect. Independent of studioMode. False when neither is set.\",\n ),\n })\n .describe(\"Top-level Connect application behaviour.\");\n\nexport const connectAiSchema = z\n .strictObject({\n assistantEnabled: z.boolean().optional().meta({\n description:\n \"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.\",\n default: false,\n }),\n })\n .describe(\"AI assistant (chat) behaviour.\");\n\nexport const connectPackagesSchema = z\n .strictObject({\n externalEnabled: z.boolean().optional().meta({\n description:\n \"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.\",\n default: true,\n }),\n liveReload: z.boolean().optional().meta({\n description:\n \"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).\",\n default: false,\n }),\n })\n .describe(\n \"Runtime behaviour for the Connect package manager (separate from top-level `packages[]`, which lists which packages to load).\",\n );\n\n// ---------------------------------------------------------------------------\n// drives\n// ---------------------------------------------------------------------------\n\nconst EXPLORER_ICONS_DESCRIPTION =\n \"The drive explorer's icons (the generic plugin's); each null keeps the built-in icon.\";\n\n/** The drive explorer's icons: the generic chrome's, owned by the generic\n * plugin. Each `null` keeps the built-in icon. */\nexport const connectExplorerIconsSchema = z\n .strictObject({\n localDrive: optionalImageRef(\"Local drives without an icon of their own.\"),\n remoteDrive: optionalImageRef(\n \"Remote drives without an icon of their own.\",\n ),\n folder: optionalImageRef(\"Folders.\"),\n document: optionalImageRef(\n \"Documents whose type has no icon in `documents`.\",\n ),\n documents: z\n .record(z.string(), connectImageRefSchema)\n .nullable()\n .optional()\n .describe('Per document type, e.g. \"acme/invoice\".'),\n })\n .describe(EXPLORER_ICONS_DESCRIPTION);\n\nexport const connectDefaultDriveRemoteSchema = z.strictObject({\n url: z.string(),\n name: z.string().nullable().optional(),\n icon: z.string().nullable().optional(),\n});\n\nexport const connectDefaultDriveLocalSchema = z.strictObject({\n local: z\n .literal(true)\n .describe(\n \"Discriminator: this entry is a local drive created on first boot.\",\n ),\n id: z\n .string()\n .describe(\n \"Stable drive id. The drive is created with this id on first boot and is not re-created on later boots.\",\n ),\n name: z.string().nullable().optional(),\n icon: z.string().nullable().optional(),\n app: z\n .string()\n .optional()\n .describe(\"Drive app (preferred editor) to open on the drive.\"),\n});\n\nexport const connectDefaultDriveSchema = z.union([\n connectDefaultDriveRemoteSchema,\n connectDefaultDriveLocalSchema,\n]);\n\n/** `connect.drives.sections.{remote,local}`: three affirmative toggles. */\nexport const connectDriveSectionSchema = z\n .strictObject({\n enabled: z.boolean().optional().meta({\n description: \"When false, the section is hidden in the sidebar.\",\n default: true,\n }),\n allowAdd: z.boolean().optional().meta({\n description:\n \"When false, the section's 'add drive' affordance is hidden.\",\n default: true,\n }),\n allowDelete: z.boolean().optional().meta({\n description:\n \"When false, drives in this section cannot be deleted from the UI.\",\n default: true,\n }),\n })\n .describe(\n \"Visibility and add/delete affordances for a drive section in the sidebar.\",\n );\n\nexport const connectDriveSectionsSchema = z\n .strictObject({\n remote: connectDriveSectionSchema.optional(),\n local: connectDriveSectionSchema.optional(),\n })\n .describe(\n \"Per-section visibility and affordance toggles. `remote` covers what was historically split into 'public' + 'cloud'; `local` is browser-local drives.\",\n );\n\n/** Mirrors DRIVES_PRESERVE_STRATEGIES (../clis/constants.ts, which imports\n * node: modules, so it is not imported here); a test pins the two. */\nexport const connectDrivePreserveStrategySchema = z.enum([\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n]);\n\nexport const connectDrivesSchema = z\n .strictObject({\n allowAddDrive: z.boolean().optional().meta({\n description:\n \"When false, the SPA hides the 'add drive' affordance entirely (top-level). Per-section overrides live in `sections.{remote,local}.allowAdd`.\",\n default: true,\n }),\n defaultDrives: z.array(connectDefaultDriveSchema).optional().meta({\n description:\n \"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).\",\n default: [],\n }),\n preserveStrategy: connectDrivePreserveStrategySchema\n .optional()\n .describe(\n \"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.\",\n ),\n sections: connectDriveSectionsSchema.optional(),\n icons: connectExplorerIconsSchema\n .nullable()\n .optional()\n .describe(EXPLORER_ICONS_DESCRIPTION),\n })\n .describe(\"Default-drive and add-drive UI behaviour.\");\n\n// ---------------------------------------------------------------------------\n// renown, sentry, openPanel\n// ---------------------------------------------------------------------------\n\nexport const connectRenownRainbowAdapterSchema = z\n .strictObject({\n walletConnectProjectId: z\n .string()\n .optional()\n .describe(\n \"WalletConnect project id; required for this adapter to function.\",\n ),\n infuraProjectId: z\n .string()\n .optional()\n .describe(\"Optional Infura project id used to build RPC transports.\"),\n })\n .describe(\"wagmi + RainbowKit external-wallet adapter config.\");\n\nexport const connectRenownPrivyAdapterSchema = z\n .strictObject({\n appId: z\n .string()\n .optional()\n .describe(\"Privy application id; required for this adapter to function.\"),\n clientId: z.string().optional().describe(\"Optional Privy client id.\"),\n methods: z\n .array(z.string())\n .optional()\n .describe(\n \"Login methods this adapter offers; default per adapter when omitted.\",\n ),\n })\n .describe(\"Privy embedded/social adapter config.\");\n\nexport const connectRenownAdaptersSchema = z\n .strictObject({\n rainbow: connectRenownRainbowAdapterSchema.optional(),\n privy: connectRenownPrivyAdapterSchema.optional(),\n })\n .describe(\n \"Per-adapter wallet config for in-page auth. Presence of an adapter key enables it; omit or leave empty for redirect-only behaviour.\",\n );\n\nexport const connectRenownSchema = z\n .strictObject({\n url: z.string().optional().meta({\n description: \"Renown auth service URL.\",\n default: \"https://www.renown.id\",\n }),\n networkId: z.string().optional().meta({\n description: \"CAIP-2 network namespace (e.g. 'eip155').\",\n default: \"eip155\",\n }),\n chainId: z.number().optional().meta({\n description: \"CAIP-2 chain reference within the network namespace.\",\n default: 1,\n }),\n namespace: z\n .string()\n .optional()\n .describe(\n \"Renown localStorage namespace; share it across Connects to share login.\",\n ),\n switchboardUrl: z\n .string()\n .optional()\n .describe(\n \"Switchboard GraphQL URL. When set, Connect enables in-page (no-redirect) Renown sign-in; otherwise it falls back to the redirect flow via `url`.\",\n ),\n adapters: connectRenownAdaptersSchema.optional(),\n })\n .describe(\"Renown identity / authentication coordinates.\");\n\nexport const connectSentrySchema = z\n .strictObject({\n dsn: z.string().nullable().optional().meta({\n description:\n \"Sentry DSN URL. `null` disables Sentry entirely; the SPA never loads the Sentry SDK chunk.\",\n default: null,\n }),\n env: z.string().optional().meta({\n description:\n \"Sentry environment label, surfaced as the `environment` tag on every event.\",\n default: \"dev\",\n }),\n tracing: z.boolean().optional().meta({\n description: \"Enable Sentry performance tracing.\",\n default: false,\n }),\n })\n .describe(\n \"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.\",\n );\n\nexport const connectOpenPanelSchema = z\n .strictObject({\n clientId: z.string().optional().meta({\n description:\n \"OpenPanel client id. Empty string disables OpenPanel entirely.\",\n default: \"\",\n }),\n apiUrl: z\n .string()\n .optional()\n .describe(\n \"OpenPanel API URL for self-hosted instances (e.g. 'https://openpanel.example/api'). Omit to use OpenPanel's hosted API.\",\n ),\n trackUiEvents: z.boolean().optional().meta({\n description: \"Track UI events.\",\n default: true,\n }),\n trackOperations: z.boolean().optional().meta({\n description: \"Track document operations.\",\n default: true,\n }),\n })\n .describe(\n \"OpenPanel product analytics. Set `clientId` to enable; an empty `clientId` disables it. Events are only sent after the user accepts analytics cookies. Takes precedence over the build-time PH_CONNECT_OPENPANEL_* env vars.\",\n );\n\n// ---------------------------------------------------------------------------\n// instance, reactor\n// ---------------------------------------------------------------------------\n\n/** Which reactor client Connect runs (see PHReactorClientMode). */\nexport const connectReactorClientModeSchema = z.enum([\n \"in-process\",\n \"worker\",\n \"remote\",\n \"router\",\n]);\n\nexport const connectInstanceSchema = z\n .strictObject({\n namespace: z.string().nullable().meta({\n description:\n \"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.\",\n default: null,\n }),\n reactorWorker: z.boolean().meta({\n description:\n \"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. Packaged deployments load the worker from the prebuilt bundle `ph connect build` emits under __reactor_worker__/ (the dev server builds it lazily at the same path); when that bundle is absent the feature reports itself unavailable instead of starting a worker that cannot load.\",\n default: false,\n }),\n multiReactor: z.boolean().optional().meta({\n description:\n \"Opt-in multi-reactor routing. When on, Connect routes through the in-browser reactor plus remote backends instead of the single in-browser reactor. Off by default; the single-reactor path is unchanged.\",\n default: false,\n }),\n })\n .describe(\n \"Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.\",\n );\n\nexport const connectReactorFeatureFlagsSchema = z\n .strictObject({\n documentDecisions: z.boolean().optional().meta({\n description:\n \"Decide writes from the document stream rather than the document meta cache, so a backdated deletion denies the operations that sort after it.\",\n default: false,\n }),\n authEnforcement: z.boolean().optional().meta({\n description:\n \"Enforce the auth scope's policy at admission, replay, and read. Requires documentDecisions.\",\n default: false,\n }),\n authGroups: z.boolean().optional().meta({\n description:\n \"Let `{ group }` principals match against the rosters of the group documents a policy names. Requires authEnforcement.\",\n default: false,\n }),\n authConditions: z.boolean().optional().meta({\n description:\n \"Evaluate `where` and `match` conditions on grants. Requires authGroups. Do not enable on a fleet `preflight:auth` reports as crossing a reducer version.\",\n default: false,\n }),\n undoV3: z.boolean().optional().meta({\n description:\n \"Support base-reducer 3 (id-targeted undo), which new documents then take. A peer without it is held from base-reducer 3 documents until it upgrades. Unset leaves the reactor's default.\",\n }),\n })\n .describe(\n \"Reactor feature flags. The four enforcement flags each imply their predecessors, and the reactor refuses to boot on a set that names a later one without an earlier one. They are consensus settings: a Connect syncing with a fleet must carry the same enforcement flags the fleet does, or the two reach different replay outcomes for the same history and diverge. undoV3 has no prerequisites; peers negotiate it.\",\n );\n\nexport const connectReactorSchema = z\n .strictObject({\n featureFlags: connectReactorFeatureFlagsSchema.optional(),\n createSignaturePolicy: z.enum([\"legacy\", \"v2-required\"]).optional().meta({\n description:\n \"What new documents are created as. `v2-required` documents accept only v2 action signatures and take content-addressed ids; set `legacy` while any peer Connect syncs with predates them. Existing documents keep their policy.\",\n default: \"v2-required\",\n }),\n unsupportedStoredDocuments: z\n .enum([\"refuse\", \"read-only\"])\n .optional()\n .meta({\n description:\n \"What the reactor does when this browser's store holds documents at protocol versions this build does not run. `refuse` fails the boot and names the versions; `read-only` boots and keeps those documents read-only.\",\n default: \"refuse\",\n }),\n })\n .describe(\n \"Settings for the reactor Connect runs in the browser, on the main thread or in the shared worker alike.\",\n );\n\n// ---------------------------------------------------------------------------\n// pwa\n// ---------------------------------------------------------------------------\n\n/** A runtime-caching / denylist URL match. A string is handed to Workbox\n * verbatim; `{ source, flags }` is rebuilt into a RegExp at build time. */\nexport const connectPwaUrlPatternSchema = z\n .union([\n z.string(),\n z\n .strictObject({\n source: z.string().describe(\"RegExp source.\"),\n flags: z.string().optional().describe(\"RegExp flags (e.g. 'i').\"),\n })\n // Not expressible in JSON Schema, so only the zod path checks it.\n .refine(\n (p) => {\n try {\n new RegExp(p.source, p.flags);\n return true;\n } catch {\n return false;\n }\n },\n { message: \"source/flags do not compile to a valid RegExp\" },\n ),\n ])\n .describe(\n \"URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.\",\n );\n\nexport const connectPwaCacheStrategySchema = z.enum([\n \"CacheFirst\",\n \"CacheOnly\",\n \"NetworkFirst\",\n \"NetworkOnly\",\n \"StaleWhileRevalidate\",\n]);\n\n/** Serialisable subset of a Workbox `RuntimeCaching` rule. */\nexport const connectPwaRuntimeCachingSchema = z.strictObject({\n urlPattern: connectPwaUrlPatternSchema,\n handler: connectPwaCacheStrategySchema,\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"DELETE\", \"HEAD\", \"PATCH\"]).optional(),\n options: z\n .strictObject({\n cacheName: z.string().optional(),\n networkTimeoutSeconds: z\n .number()\n .optional()\n .describe(\n \"Seconds a NetworkFirst rule waits for the network before falling back to the cache.\",\n ),\n expiration: z\n .strictObject({\n maxEntries: z.number().optional(),\n maxAgeSeconds: z.number().optional(),\n })\n .optional(),\n cacheableResponse: z\n .strictObject({\n statuses: z.array(z.number()).optional(),\n headers: z.record(z.string(), z.string()).optional(),\n })\n .optional(),\n })\n .optional(),\n});\n\nexport const connectPwaIconSchema = z.strictObject({\n src: z.string(),\n sizes: z.string().optional(),\n type: z.string().optional(),\n purpose: z.string().optional(),\n});\n\n/** A File Handling API entry. No `action`: every handler opens at Connect's\n * app root, because consuming launched files needs Connect's own code. */\nexport const connectPwaFileHandlerSchema = z.strictObject({\n accept: z\n .record(\n z.string(),\n z.array(z.string().regex(/^\\./, \"file extensions must start with '.'\")),\n )\n .describe(\n \"MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it.\",\n ),\n icons: z\n .array(connectPwaIconSchema)\n .optional()\n .describe(\"OS-level file-type icons.\"),\n launch_type: z.enum([\"single-client\", \"multiple-clients\"]).optional(),\n});\n\n/** Web-app-manifest fields a package or project may override. */\nexport const connectPwaManifestSchema = z\n .strictObject({\n name: z.string().optional(),\n short_name: z.string().optional(),\n description: z.string().optional(),\n theme_color: z.string().optional(),\n background_color: z.string().optional(),\n display: z\n .enum([\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"])\n .optional(),\n start_url: z.string().optional(),\n scope: z.string().optional(),\n icons: z\n .array(connectPwaIconSchema)\n .optional()\n .describe(\n \"Icons appended to the built-in set and de-duplicated by (src, sizes, purpose).\",\n ),\n file_handlers: z\n .array(connectPwaFileHandlerSchema)\n .optional()\n .describe(\n \"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.\",\n ),\n launch_handler: z\n .strictObject({\n client_mode: z.enum([\n \"auto\",\n \"focus-existing\",\n \"navigate-existing\",\n \"navigate-new\",\n ]),\n })\n .optional()\n .describe(\n \"How the OS launches the app for handled files/links. Connect defaults to focus-existing.\",\n ),\n })\n .describe(\"Web-app-manifest field overrides.\");\n\nconst pwaShape = {\n globPatterns: z\n .array(z.string())\n .optional()\n .describe(\"Extra Workbox precache globs, unioned with the built-ins.\"),\n globIgnores: z\n .array(z.string())\n .optional()\n .describe(\"Extra precache ignore globs, unioned with the built-ins.\"),\n maximumFileSizeToCacheInBytes: z\n .number()\n .optional()\n .describe(\n \"Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit.\",\n ),\n runtimeCaching: z\n .array(connectPwaRuntimeCachingSchema)\n .optional()\n .describe(\n \"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.\",\n ),\n navigateFallbackDenylist: z\n .array(connectPwaUrlPatternSchema)\n .optional()\n .describe(\n \"Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.\",\n ),\n};\n\nconst PWA_DESCRIPTION =\n \"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.\";\n\n/** `connect.pwa` as authored. */\nexport const connectPwaSchema = z\n .strictObject({ manifest: connectPwaManifestSchema.optional(), ...pwaShape })\n .describe(PWA_DESCRIPTION);\n\n// ---------------------------------------------------------------------------\n// The connect block\n// ---------------------------------------------------------------------------\n\n/**\n * The `connect` block as authored: powerhouse.config.json's `connect`, the\n * connect host's `config`, and `ph connect config` writes. Every field is\n * optional; omit the section entirely for default behaviour.\n */\nexport const connectConfigSchema = z\n .strictObject({\n branding: connectBrandingSchema.optional(),\n home: connectHomeSchema.optional(),\n app: connectAppSchema.optional(),\n ai: connectAiSchema.optional(),\n packages: connectPackagesSchema.optional(),\n drives: connectDrivesSchema.optional(),\n renown: connectRenownSchema.optional(),\n sentry: connectSentrySchema.optional(),\n openPanel: connectOpenPanelSchema.optional(),\n instance: connectInstanceSchema.optional(),\n reactor: connectReactorSchema.optional(),\n pwa: connectPwaSchema.optional(),\n })\n .describe(\n \"Connect-specific UI customisations. All fields optional; omit the section entirely for default behaviour.\",\n );\n\nexport type ConnectConfig = z.output<typeof connectConfigSchema>;\nexport type ConnectConfigInput = z.input<typeof connectConfigSchema>;\n\n// ---------------------------------------------------------------------------\n// The declared form: a connect host's `config`\n// ---------------------------------------------------------------------------\n\n/** `schema` carrying `source`'s description and meta (zod keeps them per\n * instance, so `.extend()` and a rebuilt field drop them). */\nfunction withMetaOf<S extends z.ZodType>(schema: S, source: z.ZodType): S {\n const meta = source.meta();\n return meta ? schema.meta(meta) : schema;\n}\n\n/**\n * The `connect` block with its token-able fields wrapped by `field`: the\n * fields that name another host's outputs, which a connect host's `config`\n * may write as output tokens (`ph run` resolves them before the verb).\n *\n * - `drives.defaultDrives[].url` (a remote entry): e.g. a switchboard's\n * `drives.<slug>.url` output.\n * - `renown.switchboardUrl`: a switchboard's `endpoints.graphql` output.\n *\n * The connect runner builds it with host-core's `s.tokenable` (declared:\n * tokens in; resolved: plain values only). The output type is\n * {@link ConnectConfig} either way. powerhouse.config.json's `connect` block,\n * the served config and their JSON Schemas stay {@link connectConfigSchema},\n * which takes no tokens.\n */\nexport function connectConfigSchemaWith(field: TokenField) {\n const remoteDrive = connectDefaultDriveRemoteSchema.extend({\n url: field(z.string()),\n });\n const shape = connectDrivesSchema.shape;\n const drives = withMetaOf(\n connectDrivesSchema.extend({\n defaultDrives: withMetaOf(\n z\n .array(z.union([remoteDrive, connectDefaultDriveLocalSchema]))\n .optional(),\n shape.defaultDrives,\n ),\n }),\n connectDrivesSchema,\n );\n const renown = withMetaOf(\n connectRenownSchema.extend({\n switchboardUrl: withMetaOf(\n field(z.string()).optional(),\n connectRenownSchema.shape.switchboardUrl,\n ),\n }),\n connectRenownSchema,\n );\n return withMetaOf(\n connectConfigSchema.extend({\n drives: drives.optional(),\n renown: renown.optional(),\n }),\n connectConfigSchema,\n );\n}\n\n/** The declared `connect` block: {@link connectConfigSchemaWith} with every\n * token accepted in its token-able fields. */\nexport const declaredConnectConfigSchema =\n /* @__PURE__ */ connectConfigSchemaWith(tokenable);\n\n/** What a connect host's `config` may hold (tokens in token-able fields). */\nexport type DeclaredConnectConfigInput = z.input<\n typeof declaredConnectConfigSchema\n>;\n\n// ---------------------------------------------------------------------------\n// The served runtime config: authored fields plus what is derived or\n// projected. These fields are never authored, so the authored schema (and\n// the JSON Schema fragment emitted from it) rejects them.\n// ---------------------------------------------------------------------------\n\n/** One entry of the host.js composition, projected into the served config as\n * data (module specifier + validated config). */\nexport const connectCompositionEntrySchema = z.strictObject({\n module: z.string(),\n config: z.record(z.string(), z.unknown()).optional(),\n});\n\n/** A switchboard Connect routes to, from one of the host's remote backends. */\nexport const connectRemoteBackendSchema = z.strictObject({\n name: z.string().min(1).describe(\"The backend's key in the host config.\"),\n url: z\n .string()\n .describe(\"A drive address on the switchboard: <switchboard>/d/<slug>.\"),\n requestTimeoutMs: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\"Give up on one request after this long. Default 30000.\"),\n breaker: z\n .union([\n z.literal(false),\n z.strictObject({\n failures: z.number().int().min(1).optional(),\n openMs: z.number().int().nonnegative().optional(),\n }),\n ])\n .optional()\n .describe(\n \"After `failures` failed requests in a row, send nothing for `openMs`. false: never stop trying.\",\n ),\n realtime: z\n .boolean()\n .optional()\n .describe(\"Live updates over a socket. Default true.\"),\n});\n\n/** The router settings a host sets for Connect. */\nexport const connectRouterSettingsSchema = z.strictObject({\n newDrives: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"The remoteBackends[].name new drives are created on, with no copy in this browser. Absent: the browser reactor, else the only switchboard.\",\n ),\n probeTimeoutMs: z.number().int().nonnegative().optional(),\n provisionalRouteMs: z.number().int().nonnegative().optional(),\n});\n\n/** `sync: false` keeps no copy in this browser; unset means true. */\nexport const connectCollectionSchema = z.strictObject({\n backend: z.string().min(1),\n sync: z.boolean().optional(),\n});\n\n/** `collections` holds placed drives that are not default drives, keyed by declared slug. */\nexport const connectRuntimeInstanceSchema = connectInstanceSchema.extend({\n reactorClient: connectReactorClientModeSchema.optional(),\n storage: z.enum([\"idb\", \"memory\"]).optional().meta({\n description:\n \"Where the browser reactor keeps its stores. `memory`: nothing outlives the page (or its shared worker). Absent: idb.\",\n }),\n remoteBackends: z.array(connectRemoteBackendSchema).optional(),\n collections: z.record(z.string(), connectCollectionSchema).optional(),\n router: connectRouterSettingsSchema.optional(),\n});\n\n/** A remote default drive plus the backend serving it. */\nexport const connectRuntimeDefaultDriveRemoteSchema =\n connectDefaultDriveRemoteSchema.extend({\n backend: z.string().min(1).optional(),\n sync: z.boolean().optional(),\n });\n\nexport const connectRuntimeDefaultDriveSchema = z.union([\n connectRuntimeDefaultDriveRemoteSchema,\n connectDefaultDriveLocalSchema,\n]);\n\nexport const connectRuntimeDrivesSchema = withMetaOf(\n connectDrivesSchema.extend({\n defaultDrives: withMetaOf(\n z.array(connectRuntimeDefaultDriveSchema).optional(),\n connectDrivesSchema.shape.defaultDrives,\n ),\n }),\n connectDrivesSchema,\n);\n\n/** The manifest plus `categories`, derived from contributors' `category`. */\nexport const connectRuntimePwaManifestSchema = connectPwaManifestSchema.extend({\n categories: z.array(z.string()).optional(),\n});\n\nexport const connectRuntimePwaSchema = connectPwaSchema.extend({\n manifest: connectRuntimePwaManifestSchema.optional(),\n});\n\n/** The served `connect` block (runtime powerhouse.config.json). */\nexport const connectRuntimeConfigSchema = connectConfigSchema.extend({\n composition: z.array(connectCompositionEntrySchema).optional(),\n drives: connectRuntimeDrivesSchema.optional(),\n instance: connectRuntimeInstanceSchema.optional(),\n pwa: connectRuntimePwaSchema.optional(),\n});\n\nexport type ConnectRuntimeConfig = z.output<typeof connectRuntimeConfigSchema>;\n"],"mappings":";;;AAeA,MAAM,YACJ;AACF,MAAM,uBACJ;;;AAIF,MAAa,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,SAAS;;AAGlE,MAAM,oBAAoB,cAAc,yBACtC,sBAAsB,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,WAAW;;;AAIlE,MAAa,4BAA4B,EACtC,MAAM,CACL,uBACA,EAAE,aAAa;CACb,OAAO;CACP,MAAM,sBAAsB,SAAS,CAAC,CAAC,SAAS;AAClD,CAAC,CACH,CAAC,CAAC,CACD,SACC,mFACF;;AAGF,MAAa,4BAA4B,EAAE,MAAM,CAC/C,EAAE,OAAO,GACT,EAAE,aAAa;CACb,OAAO,EAAE,OAAO;CAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvC,CAAC,CACH,CAAC;;AAGD,MAAa,sBAAsB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;AAEnE,MAAM,uBACJ,oBACG,SAAS,CAAC,CACV,SAAS,CAAC,CACV,SACC,kHACF;;AAGJ,MAAa,qBAAqB,EAAE,aAAa;CAC/C,KAAK,eAAe;CACpB,OAAO,eAAe;CACtB,QAAQ,eAAe;CACvB,MAAM,eAAe;AACvB,CAAC;;AAGD,MAAa,+BAA+B,EACzC,aAAa;CACZ,KAAK;CACL,UAAU,mBACP,SAAS,CAAC,CACV,SAAS,CA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