@openpalm/ui 0.11.0-rc.2

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 (329) hide show
  1. package/README.md +129 -0
  2. package/build/.openpalm-ui-version +1 -0
  3. package/build/client/_app/immutable/assets/0.BK7X4bPu.css +1 -0
  4. package/build/client/_app/immutable/assets/0.BK7X4bPu.css.br +0 -0
  5. package/build/client/_app/immutable/assets/0.BK7X4bPu.css.gz +0 -0
  6. package/build/client/_app/immutable/assets/4.D9MwgTDo.css +1 -0
  7. package/build/client/_app/immutable/assets/4.D9MwgTDo.css.br +0 -0
  8. package/build/client/_app/immutable/assets/4.D9MwgTDo.css.gz +0 -0
  9. package/build/client/_app/immutable/assets/5.Cj0Mk9Gn.css +1 -0
  10. package/build/client/_app/immutable/assets/5.Cj0Mk9Gn.css.br +0 -0
  11. package/build/client/_app/immutable/assets/5.Cj0Mk9Gn.css.gz +0 -0
  12. package/build/client/_app/immutable/assets/6.DJenXolA.css +1 -0
  13. package/build/client/_app/immutable/assets/6.DJenXolA.css.br +0 -0
  14. package/build/client/_app/immutable/assets/6.DJenXolA.css.gz +0 -0
  15. package/build/client/_app/immutable/assets/7.BHUsSUvX.css +1 -0
  16. package/build/client/_app/immutable/assets/7.BHUsSUvX.css.br +0 -0
  17. package/build/client/_app/immutable/assets/7.BHUsSUvX.css.gz +0 -0
  18. package/build/client/_app/immutable/assets/8.DjrHy5wu.css +1 -0
  19. package/build/client/_app/immutable/assets/8.DjrHy5wu.css.br +0 -0
  20. package/build/client/_app/immutable/assets/8.DjrHy5wu.css.gz +0 -0
  21. package/build/client/_app/immutable/assets/AuthGate.BtJV-xXj.css +1 -0
  22. package/build/client/_app/immutable/assets/AuthGate.BtJV-xXj.css.br +0 -0
  23. package/build/client/_app/immutable/assets/AuthGate.BtJV-xXj.css.gz +0 -0
  24. package/build/client/_app/immutable/assets/VoiceProfileSelector.Dp7tWdKe.css +1 -0
  25. package/build/client/_app/immutable/assets/VoiceProfileSelector.Dp7tWdKe.css.br +0 -0
  26. package/build/client/_app/immutable/assets/VoiceProfileSelector.Dp7tWdKe.css.gz +0 -0
  27. package/build/client/_app/immutable/chunks/BuFlayix.js +1 -0
  28. package/build/client/_app/immutable/chunks/BuFlayix.js.br +0 -0
  29. package/build/client/_app/immutable/chunks/BuFlayix.js.gz +0 -0
  30. package/build/client/_app/immutable/chunks/BwTF6U35.js +3 -0
  31. package/build/client/_app/immutable/chunks/BwTF6U35.js.br +0 -0
  32. package/build/client/_app/immutable/chunks/BwTF6U35.js.gz +0 -0
  33. package/build/client/_app/immutable/chunks/C8qMxft1.js +1 -0
  34. package/build/client/_app/immutable/chunks/C8qMxft1.js.br +0 -0
  35. package/build/client/_app/immutable/chunks/C8qMxft1.js.gz +0 -0
  36. package/build/client/_app/immutable/chunks/Cb_i8bV9.js +1 -0
  37. package/build/client/_app/immutable/chunks/Cb_i8bV9.js.br +0 -0
  38. package/build/client/_app/immutable/chunks/Cb_i8bV9.js.gz +0 -0
  39. package/build/client/_app/immutable/chunks/CzXGhlNF.js +1 -0
  40. package/build/client/_app/immutable/chunks/CzXGhlNF.js.br +0 -0
  41. package/build/client/_app/immutable/chunks/CzXGhlNF.js.gz +0 -0
  42. package/build/client/_app/immutable/chunks/DYskO3Sk.js +5 -0
  43. package/build/client/_app/immutable/chunks/DYskO3Sk.js.br +0 -0
  44. package/build/client/_app/immutable/chunks/DYskO3Sk.js.gz +0 -0
  45. package/build/client/_app/immutable/chunks/ak2ISc8B.js +1 -0
  46. package/build/client/_app/immutable/chunks/ak2ISc8B.js.br +0 -0
  47. package/build/client/_app/immutable/chunks/ak2ISc8B.js.gz +0 -0
  48. package/build/client/_app/immutable/chunks/kNaey6uv.js +1 -0
  49. package/build/client/_app/immutable/chunks/kNaey6uv.js.br +0 -0
  50. package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
  51. package/build/client/_app/immutable/chunks/os2NZ37U.js +1 -0
  52. package/build/client/_app/immutable/chunks/os2NZ37U.js.br +1 -0
  53. package/build/client/_app/immutable/chunks/os2NZ37U.js.gz +0 -0
  54. package/build/client/_app/immutable/chunks/xihTtKlq.js +1 -0
  55. package/build/client/_app/immutable/chunks/xihTtKlq.js.br +1 -0
  56. package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  57. package/build/client/_app/immutable/entry/app.C_eSlUyi.js +2 -0
  58. package/build/client/_app/immutable/entry/app.C_eSlUyi.js.br +0 -0
  59. package/build/client/_app/immutable/entry/app.C_eSlUyi.js.gz +0 -0
  60. package/build/client/_app/immutable/entry/start.BAta_Cih.js +1 -0
  61. package/build/client/_app/immutable/entry/start.BAta_Cih.js.br +0 -0
  62. package/build/client/_app/immutable/entry/start.BAta_Cih.js.gz +0 -0
  63. package/build/client/_app/immutable/nodes/0.Bi_of0So.js +1 -0
  64. package/build/client/_app/immutable/nodes/0.Bi_of0So.js.br +0 -0
  65. package/build/client/_app/immutable/nodes/0.Bi_of0So.js.gz +0 -0
  66. package/build/client/_app/immutable/nodes/1.qjZsjpWC.js +1 -0
  67. package/build/client/_app/immutable/nodes/1.qjZsjpWC.js.br +0 -0
  68. package/build/client/_app/immutable/nodes/1.qjZsjpWC.js.gz +0 -0
  69. package/build/client/_app/immutable/nodes/2.ojh8oE7F.js +1 -0
  70. package/build/client/_app/immutable/nodes/2.ojh8oE7F.js.br +0 -0
  71. package/build/client/_app/immutable/nodes/2.ojh8oE7F.js.gz +0 -0
  72. package/build/client/_app/immutable/nodes/3.DeAC3yVJ.js +1 -0
  73. package/build/client/_app/immutable/nodes/3.DeAC3yVJ.js.br +0 -0
  74. package/build/client/_app/immutable/nodes/3.DeAC3yVJ.js.gz +0 -0
  75. package/build/client/_app/immutable/nodes/4.BYtA2xx-.js +19 -0
  76. package/build/client/_app/immutable/nodes/4.BYtA2xx-.js.br +0 -0
  77. package/build/client/_app/immutable/nodes/4.BYtA2xx-.js.gz +0 -0
  78. package/build/client/_app/immutable/nodes/5.ChSoAFFd.js +4 -0
  79. package/build/client/_app/immutable/nodes/5.ChSoAFFd.js.br +0 -0
  80. package/build/client/_app/immutable/nodes/5.ChSoAFFd.js.gz +0 -0
  81. package/build/client/_app/immutable/nodes/6.BRG0vYmH.js +1 -0
  82. package/build/client/_app/immutable/nodes/6.BRG0vYmH.js.br +0 -0
  83. package/build/client/_app/immutable/nodes/6.BRG0vYmH.js.gz +0 -0
  84. package/build/client/_app/immutable/nodes/7.BVvy1f_p.js +15 -0
  85. package/build/client/_app/immutable/nodes/7.BVvy1f_p.js.br +0 -0
  86. package/build/client/_app/immutable/nodes/7.BVvy1f_p.js.gz +0 -0
  87. package/build/client/_app/immutable/nodes/8.Cb4MWMah.js +2 -0
  88. package/build/client/_app/immutable/nodes/8.Cb4MWMah.js.br +0 -0
  89. package/build/client/_app/immutable/nodes/8.Cb4MWMah.js.gz +0 -0
  90. package/build/client/_app/version.json +1 -0
  91. package/build/client/_app/version.json.br +0 -0
  92. package/build/client/_app/version.json.gz +0 -0
  93. package/build/client/banner.png +0 -0
  94. package/build/client/fu-128.png +0 -0
  95. package/build/client/fu.png +0 -0
  96. package/build/client/logo-128.png +0 -0
  97. package/build/client/logo.png +0 -0
  98. package/build/client/setup/wizard.css +1639 -0
  99. package/build/client/setup/wizard.css.br +0 -0
  100. package/build/client/setup/wizard.css.gz +0 -0
  101. package/build/client/wizard-128.png +0 -0
  102. package/build/client/wizard.png +0 -0
  103. package/build/env.js +94 -0
  104. package/build/handler.js +1494 -0
  105. package/build/index.js +345 -0
  106. package/build/server/chunks/0-Dk6RRhi2.js +9 -0
  107. package/build/server/chunks/0-Dk6RRhi2.js.map +1 -0
  108. package/build/server/chunks/1-CWcY3PRs.js +9 -0
  109. package/build/server/chunks/1-CWcY3PRs.js.map +1 -0
  110. package/build/server/chunks/2-C2y4ydWU.js +9 -0
  111. package/build/server/chunks/2-C2y4ydWU.js.map +1 -0
  112. package/build/server/chunks/3-BgeGdVvT.js +23 -0
  113. package/build/server/chunks/3-BgeGdVvT.js.map +1 -0
  114. package/build/server/chunks/4-DeAt_mYc.js +9 -0
  115. package/build/server/chunks/4-DeAt_mYc.js.map +1 -0
  116. package/build/server/chunks/5-qTXiNPEM.js +9 -0
  117. package/build/server/chunks/5-qTXiNPEM.js.map +1 -0
  118. package/build/server/chunks/6-C444Mr69.js +9 -0
  119. package/build/server/chunks/6-C444Mr69.js.map +1 -0
  120. package/build/server/chunks/7-Dg_sVly5.js +9 -0
  121. package/build/server/chunks/7-Dg_sVly5.js.map +1 -0
  122. package/build/server/chunks/8-CF5kn4AY.js +9 -0
  123. package/build/server/chunks/8-CF5kn4AY.js.map +1 -0
  124. package/build/server/chunks/AuthGate-keg7G6rX.js +707 -0
  125. package/build/server/chunks/AuthGate-keg7G6rX.js.map +1 -0
  126. package/build/server/chunks/_helpers-B_lb4-jB.js +74 -0
  127. package/build/server/chunks/_helpers-B_lb4-jB.js.map +1 -0
  128. package/build/server/chunks/_layout.svelte-B93aaRP_.js +11 -0
  129. package/build/server/chunks/_layout.svelte-B93aaRP_.js.map +1 -0
  130. package/build/server/chunks/_layout.svelte-BNWepgTx.js +58 -0
  131. package/build/server/chunks/_layout.svelte-BNWepgTx.js.map +1 -0
  132. package/build/server/chunks/_page.svelte-BP2EdQl3.js +5 -0
  133. package/build/server/chunks/_page.svelte-BP2EdQl3.js.map +1 -0
  134. package/build/server/chunks/_page.svelte-BdYSYjmj.js +67 -0
  135. package/build/server/chunks/_page.svelte-BdYSYjmj.js.map +1 -0
  136. package/build/server/chunks/_page.svelte-BiKY57wg.js +533 -0
  137. package/build/server/chunks/_page.svelte-BiKY57wg.js.map +1 -0
  138. package/build/server/chunks/_page.svelte-CtX_8pMq.js +5528 -0
  139. package/build/server/chunks/_page.svelte-CtX_8pMq.js.map +1 -0
  140. package/build/server/chunks/_page.svelte-D0gMlmzQ.js +104 -0
  141. package/build/server/chunks/_page.svelte-D0gMlmzQ.js.map +1 -0
  142. package/build/server/chunks/_page.svelte-DwMiUmq6.js +107 -0
  143. package/build/server/chunks/_page.svelte-DwMiUmq6.js.map +1 -0
  144. package/build/server/chunks/_server.ts-0FuXkx70.js +56 -0
  145. package/build/server/chunks/_server.ts-0FuXkx70.js.map +1 -0
  146. package/build/server/chunks/_server.ts-33LuQvHu.js +19 -0
  147. package/build/server/chunks/_server.ts-33LuQvHu.js.map +1 -0
  148. package/build/server/chunks/_server.ts-5Q0J3F4-.js +55 -0
  149. package/build/server/chunks/_server.ts-5Q0J3F4-.js.map +1 -0
  150. package/build/server/chunks/_server.ts-AJk0xBLJ.js +46 -0
  151. package/build/server/chunks/_server.ts-AJk0xBLJ.js.map +1 -0
  152. package/build/server/chunks/_server.ts-AQe1PIYE.js +68 -0
  153. package/build/server/chunks/_server.ts-AQe1PIYE.js.map +1 -0
  154. package/build/server/chunks/_server.ts-B0N2Nj7L.js +44 -0
  155. package/build/server/chunks/_server.ts-B0N2Nj7L.js.map +1 -0
  156. package/build/server/chunks/_server.ts-BDBJ6fxs.js +67 -0
  157. package/build/server/chunks/_server.ts-BDBJ6fxs.js.map +1 -0
  158. package/build/server/chunks/_server.ts-BEeaI665.js +79 -0
  159. package/build/server/chunks/_server.ts-BEeaI665.js.map +1 -0
  160. package/build/server/chunks/_server.ts-BM4QuGQf.js +53 -0
  161. package/build/server/chunks/_server.ts-BM4QuGQf.js.map +1 -0
  162. package/build/server/chunks/_server.ts-BSIZMZVn.js +50 -0
  163. package/build/server/chunks/_server.ts-BSIZMZVn.js.map +1 -0
  164. package/build/server/chunks/_server.ts-BV-6Mum8.js +54 -0
  165. package/build/server/chunks/_server.ts-BV-6Mum8.js.map +1 -0
  166. package/build/server/chunks/_server.ts-BdnJF23z.js +44 -0
  167. package/build/server/chunks/_server.ts-BdnJF23z.js.map +1 -0
  168. package/build/server/chunks/_server.ts-Bfy4RFhe.js +41 -0
  169. package/build/server/chunks/_server.ts-Bfy4RFhe.js.map +1 -0
  170. package/build/server/chunks/_server.ts-Bhh33s6N.js +149 -0
  171. package/build/server/chunks/_server.ts-Bhh33s6N.js.map +1 -0
  172. package/build/server/chunks/_server.ts-BiSuK8jN.js +41 -0
  173. package/build/server/chunks/_server.ts-BiSuK8jN.js.map +1 -0
  174. package/build/server/chunks/_server.ts-BjiyoKWK.js +41 -0
  175. package/build/server/chunks/_server.ts-BjiyoKWK.js.map +1 -0
  176. package/build/server/chunks/_server.ts-BnEeEd9g.js +57 -0
  177. package/build/server/chunks/_server.ts-BnEeEd9g.js.map +1 -0
  178. package/build/server/chunks/_server.ts-Bq2dkWvj.js +33 -0
  179. package/build/server/chunks/_server.ts-Bq2dkWvj.js.map +1 -0
  180. package/build/server/chunks/_server.ts-Br16AqpO.js +82 -0
  181. package/build/server/chunks/_server.ts-Br16AqpO.js.map +1 -0
  182. package/build/server/chunks/_server.ts-BsZrddQT.js +200 -0
  183. package/build/server/chunks/_server.ts-BsZrddQT.js.map +1 -0
  184. package/build/server/chunks/_server.ts-Btbzy89u.js +65 -0
  185. package/build/server/chunks/_server.ts-Btbzy89u.js.map +1 -0
  186. package/build/server/chunks/_server.ts-BudQlGOx.js +70 -0
  187. package/build/server/chunks/_server.ts-BudQlGOx.js.map +1 -0
  188. package/build/server/chunks/_server.ts-BxPYakCb.js +59 -0
  189. package/build/server/chunks/_server.ts-BxPYakCb.js.map +1 -0
  190. package/build/server/chunks/_server.ts-ByyRcwFy.js +79 -0
  191. package/build/server/chunks/_server.ts-ByyRcwFy.js.map +1 -0
  192. package/build/server/chunks/_server.ts-C7rtn3mH.js +103 -0
  193. package/build/server/chunks/_server.ts-C7rtn3mH.js.map +1 -0
  194. package/build/server/chunks/_server.ts-C88qd-ju.js +46 -0
  195. package/build/server/chunks/_server.ts-C88qd-ju.js.map +1 -0
  196. package/build/server/chunks/_server.ts-CD6LeslU.js +55 -0
  197. package/build/server/chunks/_server.ts-CD6LeslU.js.map +1 -0
  198. package/build/server/chunks/_server.ts-CDlWxA5S.js +60 -0
  199. package/build/server/chunks/_server.ts-CDlWxA5S.js.map +1 -0
  200. package/build/server/chunks/_server.ts-CGqrfNlv.js +514 -0
  201. package/build/server/chunks/_server.ts-CGqrfNlv.js.map +1 -0
  202. package/build/server/chunks/_server.ts-CGwYZUuw.js +759 -0
  203. package/build/server/chunks/_server.ts-CGwYZUuw.js.map +1 -0
  204. package/build/server/chunks/_server.ts-CHVs0yya.js +54 -0
  205. package/build/server/chunks/_server.ts-CHVs0yya.js.map +1 -0
  206. package/build/server/chunks/_server.ts-CMEY6oQe.js +121 -0
  207. package/build/server/chunks/_server.ts-CMEY6oQe.js.map +1 -0
  208. package/build/server/chunks/_server.ts-CS73tiTY.js +63 -0
  209. package/build/server/chunks/_server.ts-CS73tiTY.js.map +1 -0
  210. package/build/server/chunks/_server.ts-CWwgmo8z.js +33 -0
  211. package/build/server/chunks/_server.ts-CWwgmo8z.js.map +1 -0
  212. package/build/server/chunks/_server.ts-CXzZeGlQ.js +55 -0
  213. package/build/server/chunks/_server.ts-CXzZeGlQ.js.map +1 -0
  214. package/build/server/chunks/_server.ts-C_kseo_y.js +72 -0
  215. package/build/server/chunks/_server.ts-C_kseo_y.js.map +1 -0
  216. package/build/server/chunks/_server.ts-Cbk-UThV.js +73 -0
  217. package/build/server/chunks/_server.ts-Cbk-UThV.js.map +1 -0
  218. package/build/server/chunks/_server.ts-CboRRTK1.js +139 -0
  219. package/build/server/chunks/_server.ts-CboRRTK1.js.map +1 -0
  220. package/build/server/chunks/_server.ts-CgD8-EFl.js +52 -0
  221. package/build/server/chunks/_server.ts-CgD8-EFl.js.map +1 -0
  222. package/build/server/chunks/_server.ts-Ci-q0BiD.js +79 -0
  223. package/build/server/chunks/_server.ts-Ci-q0BiD.js.map +1 -0
  224. package/build/server/chunks/_server.ts-Cn7ahHlk.js +44 -0
  225. package/build/server/chunks/_server.ts-Cn7ahHlk.js.map +1 -0
  226. package/build/server/chunks/_server.ts-Cy36-qGT.js +60 -0
  227. package/build/server/chunks/_server.ts-Cy36-qGT.js.map +1 -0
  228. package/build/server/chunks/_server.ts-CyFZ9OZQ.js +97 -0
  229. package/build/server/chunks/_server.ts-CyFZ9OZQ.js.map +1 -0
  230. package/build/server/chunks/_server.ts-D-UAqhor.js +33 -0
  231. package/build/server/chunks/_server.ts-D-UAqhor.js.map +1 -0
  232. package/build/server/chunks/_server.ts-D1cb1hmF.js +90 -0
  233. package/build/server/chunks/_server.ts-D1cb1hmF.js.map +1 -0
  234. package/build/server/chunks/_server.ts-D33gvU5B.js +65 -0
  235. package/build/server/chunks/_server.ts-D33gvU5B.js.map +1 -0
  236. package/build/server/chunks/_server.ts-DDwiNChJ.js +88 -0
  237. package/build/server/chunks/_server.ts-DDwiNChJ.js.map +1 -0
  238. package/build/server/chunks/_server.ts-DEnxvwcJ.js +46 -0
  239. package/build/server/chunks/_server.ts-DEnxvwcJ.js.map +1 -0
  240. package/build/server/chunks/_server.ts-DHXmcRrP.js +41 -0
  241. package/build/server/chunks/_server.ts-DHXmcRrP.js.map +1 -0
  242. package/build/server/chunks/_server.ts-DQxY-pHZ.js +64 -0
  243. package/build/server/chunks/_server.ts-DQxY-pHZ.js.map +1 -0
  244. package/build/server/chunks/_server.ts-DXNJ2LJu.js +83 -0
  245. package/build/server/chunks/_server.ts-DXNJ2LJu.js.map +1 -0
  246. package/build/server/chunks/_server.ts-Dbly1Fe-.js +96 -0
  247. package/build/server/chunks/_server.ts-Dbly1Fe-.js.map +1 -0
  248. package/build/server/chunks/_server.ts-DffjWMNC.js +53 -0
  249. package/build/server/chunks/_server.ts-DffjWMNC.js.map +1 -0
  250. package/build/server/chunks/_server.ts-Di-8UJYw.js +40 -0
  251. package/build/server/chunks/_server.ts-Di-8UJYw.js.map +1 -0
  252. package/build/server/chunks/_server.ts-DsEzCr9k.js +109 -0
  253. package/build/server/chunks/_server.ts-DsEzCr9k.js.map +1 -0
  254. package/build/server/chunks/_server.ts-DwXd92Ow.js +63 -0
  255. package/build/server/chunks/_server.ts-DwXd92Ow.js.map +1 -0
  256. package/build/server/chunks/_server.ts-DwjjO7L5.js +41 -0
  257. package/build/server/chunks/_server.ts-DwjjO7L5.js.map +1 -0
  258. package/build/server/chunks/_server.ts-DyEbcQS0.js +62 -0
  259. package/build/server/chunks/_server.ts-DyEbcQS0.js.map +1 -0
  260. package/build/server/chunks/_server.ts-HxcM6xQA.js +70 -0
  261. package/build/server/chunks/_server.ts-HxcM6xQA.js.map +1 -0
  262. package/build/server/chunks/_server.ts-JItoNB1Z.js +57 -0
  263. package/build/server/chunks/_server.ts-JItoNB1Z.js.map +1 -0
  264. package/build/server/chunks/_server.ts-KpT_vKKo.js +77 -0
  265. package/build/server/chunks/_server.ts-KpT_vKKo.js.map +1 -0
  266. package/build/server/chunks/_server.ts-WbY7XmtT.js +157 -0
  267. package/build/server/chunks/_server.ts-WbY7XmtT.js.map +1 -0
  268. package/build/server/chunks/_server.ts-Yy0BWsSd.js +70 -0
  269. package/build/server/chunks/_server.ts-Yy0BWsSd.js.map +1 -0
  270. package/build/server/chunks/_server.ts-b9yNYKW6.js +49 -0
  271. package/build/server/chunks/_server.ts-b9yNYKW6.js.map +1 -0
  272. package/build/server/chunks/_server.ts-bAJXjaCc.js +42 -0
  273. package/build/server/chunks/_server.ts-bAJXjaCc.js.map +1 -0
  274. package/build/server/chunks/_server.ts-cwRl-tZ-.js +40 -0
  275. package/build/server/chunks/_server.ts-cwRl-tZ-.js.map +1 -0
  276. package/build/server/chunks/_server.ts-hMTx0DC3.js +159 -0
  277. package/build/server/chunks/_server.ts-hMTx0DC3.js.map +1 -0
  278. package/build/server/chunks/_server.ts-l_HoZ2_I.js +163 -0
  279. package/build/server/chunks/_server.ts-l_HoZ2_I.js.map +1 -0
  280. package/build/server/chunks/_server.ts-uLRX2uy0.js +107 -0
  281. package/build/server/chunks/_server.ts-uLRX2uy0.js.map +1 -0
  282. package/build/server/chunks/_server.ts-uWfb47S6.js +204 -0
  283. package/build/server/chunks/_server.ts-uWfb47S6.js.map +1 -0
  284. package/build/server/chunks/addon-helpers-Bnj3aKJ2.js +49 -0
  285. package/build/server/chunks/addon-helpers-Bnj3aKJ2.js.map +1 -0
  286. package/build/server/chunks/chunk-CLZ62Ad-.js +18 -0
  287. package/build/server/chunks/chunk-CLZ62Ad-.js.map +1 -0
  288. package/build/server/chunks/coercion-TNFJisCC.js +34 -0
  289. package/build/server/chunks/coercion-TNFJisCC.js.map +1 -0
  290. package/build/server/chunks/config-CEYPfvQh.js +121 -0
  291. package/build/server/chunks/config-CEYPfvQh.js.map +1 -0
  292. package/build/server/chunks/dev-DjANv7AF.js +4389 -0
  293. package/build/server/chunks/dev-DjANv7AF.js.map +1 -0
  294. package/build/server/chunks/docker-sGFTjRfy.js +20 -0
  295. package/build/server/chunks/docker-sGFTjRfy.js.map +1 -0
  296. package/build/server/chunks/endpoints-L7Wjvq44.js +340 -0
  297. package/build/server/chunks/endpoints-L7Wjvq44.js.map +1 -0
  298. package/build/server/chunks/environment-BnT49Gi3.js +36 -0
  299. package/build/server/chunks/environment-BnT49Gi3.js.map +1 -0
  300. package/build/server/chunks/error.svelte-PJnhZZCy.js +16 -0
  301. package/build/server/chunks/error.svelte-PJnhZZCy.js.map +1 -0
  302. package/build/server/chunks/exports-D1quPX8S.js +124 -0
  303. package/build/server/chunks/exports-D1quPX8S.js.map +1 -0
  304. package/build/server/chunks/helpers-5jd3ccud.js +226 -0
  305. package/build/server/chunks/helpers-5jd3ccud.js.map +1 -0
  306. package/build/server/chunks/hooks.server-Al9-eO5K.js +82 -0
  307. package/build/server/chunks/hooks.server-Al9-eO5K.js.map +1 -0
  308. package/build/server/chunks/http-D5xo_m60.js +31 -0
  309. package/build/server/chunks/http-D5xo_m60.js.map +1 -0
  310. package/build/server/chunks/internal-CJBOAkaQ.js +1544 -0
  311. package/build/server/chunks/internal-CJBOAkaQ.js.map +1 -0
  312. package/build/server/chunks/serial-queue-D9FEpYVv.js +22 -0
  313. package/build/server/chunks/serial-queue-D9FEpYVv.js.map +1 -0
  314. package/build/server/chunks/setup-deploy-UKTSVAC0.js +529 -0
  315. package/build/server/chunks/setup-deploy-UKTSVAC0.js.map +1 -0
  316. package/build/server/chunks/src-FpMyngcw.js +14064 -0
  317. package/build/server/chunks/src-FpMyngcw.js.map +1 -0
  318. package/build/server/chunks/state-BI-lJPhE.js +203 -0
  319. package/build/server/chunks/state-BI-lJPhE.js.map +1 -0
  320. package/build/server/chunks/utils-BSRjJDrZ.js +150 -0
  321. package/build/server/chunks/utils-BSRjJDrZ.js.map +1 -0
  322. package/build/server/chunks/voice-state.svelte-CQp8u0bn.js +437 -0
  323. package/build/server/chunks/voice-state.svelte-CQp8u0bn.js.map +1 -0
  324. package/build/server/index.js +4359 -0
  325. package/build/server/index.js.map +1 -0
  326. package/build/server/manifest.js +570 -0
  327. package/build/server/manifest.js.map +1 -0
  328. package/build/shims.js +32 -0
  329. package/package.json +61 -0
@@ -0,0 +1,529 @@
1
+ import { c as applyInstall, a0 as listEnabledAddonIds, Q as getAddonProfileSelection, an as setAddonProfileSelection, a as addonProfileId, l as buildManagedServices, k as buildComposeOptions, o as composeDown, s as composePull, x as composeUp, _ as isSetupComplete, ak as resolveStackDir, y as createLogger, a4 as parseEnvFile, r as composePs, R as getAddonProfiles, ah as resolveComposeProjectName } from './src-FpMyngcw.js';
2
+ import { existsSync, readFileSync, writeFileSync, renameSync } from 'node:fs';
3
+
4
+ //#region src/lib/server/setup-deploy.ts
5
+ /**
6
+ * In-process deploy state for the setup wizard.
7
+ *
8
+ * Tracks Docker Compose deploy progress during first-time setup.
9
+ * State lives in this module so the polling endpoint can read it
10
+ * without a database or filesystem dependency.
11
+ */
12
+ var logger = createLogger("admin:setup-deploy");
13
+ function projectNameForState(state) {
14
+ return resolveComposeProjectName(parseEnvFile(`${state.stashDir}/env/stack.env`));
15
+ }
16
+ function projectNameForComposeOptions(composeOpts) {
17
+ return resolveComposeProjectName(Object.assign({}, ...(composeOpts.envFiles ?? []).map((f) => parseEnvFile(f))));
18
+ }
19
+ var _state = {
20
+ deploying: false,
21
+ setupComplete: false,
22
+ deployStatus: [],
23
+ deployError: null,
24
+ phase: "writing-config"
25
+ };
26
+ function getDeployState() {
27
+ if (!_state.setupComplete && !_state.deploying && isSetupComplete(resolveStackDir())) _state.setupComplete = true;
28
+ return {
29
+ ..._state,
30
+ deployStatus: [..._state.deployStatus]
31
+ };
32
+ }
33
+ function resetDeployState() {
34
+ _state = {
35
+ deploying: false,
36
+ setupComplete: false,
37
+ deployStatus: [],
38
+ deployError: null,
39
+ phase: "writing-config"
40
+ };
41
+ }
42
+ /**
43
+ * Resolve the effective OP_IMAGE_TAG for a deploy.
44
+ * Reads exclusively from stack.env files — by the time startDeploy() runs,
45
+ * applyInstall() has already written the wizard's chosen tag to stack.env.
46
+ * Process env is intentionally ignored so shell variables can never silently
47
+ * override what the user configured in the wizard.
48
+ */
49
+ function resolveImageTag(composeOpts) {
50
+ for (const envFile of composeOpts.envFiles ?? []) {
51
+ if (!existsSync(envFile)) continue;
52
+ const parsed = parseEnvFile(envFile);
53
+ if (parsed.OP_IMAGE_TAG) return parsed.OP_IMAGE_TAG;
54
+ }
55
+ return "";
56
+ }
57
+ /**
58
+ * Map opaque Docker/compose stderr text to a human-friendly error message.
59
+ * If no pattern matches, the raw message is returned prefixed with a generic header.
60
+ */
61
+ function mapDockerError(raw) {
62
+ if (/cannot connect to the docker daemon|docker daemon is not running/i.test(raw)) return "Docker Desktop appears to have stopped. Start Docker, then click Retry.";
63
+ const portMatch = /bind: address already in use.*?:(\d+)/i.exec(raw);
64
+ if (portMatch) return `Port ${portMatch[1]} is already in use by another program. Free it (or quit the other app) and click Retry.`;
65
+ if (/Cannot find specified .* file|no such file or directory/i.test(raw)) return "A required configuration file is missing. Try re-running setup.";
66
+ if (/permission denied/i.test(raw)) return "Permission denied. Check that ~/.openpalm and Docker have permission to write.";
67
+ if (/no space left on device|ENOSPC/i.test(raw)) return "Your disk is full. Free up space and click Retry.";
68
+ return `Deployment ran into a problem: ${raw}`;
69
+ }
70
+ /**
71
+ * Atomic-merge OP_SETUP_COMPLETE=true into stack.env. Called only after every
72
+ * container has reported healthy — until then the wizard must remain
73
+ * resumable, so the flag is intentionally not written by performSetup.
74
+ */
75
+ function markSetupComplete(state) {
76
+ const path = `${state.stashDir}/env/stack.env`;
77
+ const lines = (existsSync(path) ? readFileSync(path, "utf-8") : "").split("\n");
78
+ let replaced = false;
79
+ for (let i = 0; i < lines.length; i++) {
80
+ const trimmed = lines[i].trimStart();
81
+ const eq = trimmed.indexOf("=");
82
+ if (eq > 0 && trimmed.slice(0, eq).trim() === "OP_SETUP_COMPLETE") {
83
+ lines[i] = "OP_SETUP_COMPLETE=true";
84
+ replaced = true;
85
+ break;
86
+ }
87
+ }
88
+ if (!replaced) if (lines.length > 0 && lines[lines.length - 1] === "") {
89
+ lines[lines.length - 1] = "OP_SETUP_COMPLETE=true";
90
+ lines.push("");
91
+ } else lines.push("OP_SETUP_COMPLETE=true");
92
+ let merged = lines.join("\n");
93
+ if (!merged.endsWith("\n")) merged += "\n";
94
+ const tmp = `${path}.tmp`;
95
+ writeFileSync(tmp, merged, { mode: 384 });
96
+ renameSync(tmp, path);
97
+ }
98
+ /**
99
+ * Parse `docker compose ps --format json` output into a list of container states.
100
+ * Compose outputs one JSON object per line (NDJSON), not a JSON array.
101
+ */
102
+ function parseComposePsOutput(stdout) {
103
+ const results = [];
104
+ for (const line of stdout.split("\n")) {
105
+ const trimmed = line.trim();
106
+ if (!trimmed) continue;
107
+ try {
108
+ const obj = JSON.parse(trimmed);
109
+ results.push({
110
+ name: String(obj["Name"] ?? obj["Service"] ?? ""),
111
+ state: String(obj["State"] ?? ""),
112
+ health: String(obj["Health"] ?? "")
113
+ });
114
+ } catch {}
115
+ }
116
+ return results;
117
+ }
118
+ /**
119
+ * Poll container health for `services` until all are running (and healthy if
120
+ * they declare a healthcheck). Updates `_state.deployStatus` with intermediate
121
+ * labels as containers flip states.
122
+ *
123
+ * @returns null on success, or an error string if timeout fires with unhealthy services.
124
+ */
125
+ async function pollContainerHealth(composeOpts, services, timeoutMs) {
126
+ const deadline = Date.now() + timeoutMs;
127
+ const POLL_INTERVAL_MS = 2e3;
128
+ while (Date.now() < deadline) {
129
+ await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
130
+ const psResult = await composePs(composeOpts);
131
+ if (!psResult.ok) {
132
+ logger.warn("composePs failed during health poll", { stderr: psResult.stderr });
133
+ continue;
134
+ }
135
+ const containers = parseComposePsOutput(psResult.stdout);
136
+ _state.deployStatus = _state.deployStatus.map((entry) => {
137
+ const found = containers.find((c) => c.name === entry.service || c.name.endsWith(`-${entry.service}-1`) || c.name.endsWith(`_${entry.service}_1`));
138
+ if (!found) return {
139
+ ...entry,
140
+ status: "pending",
141
+ label: "Starting..."
142
+ };
143
+ if (found.state === "running") {
144
+ const health = found.health;
145
+ if (health === "unhealthy") return {
146
+ ...entry,
147
+ status: "error",
148
+ label: "Unhealthy"
149
+ };
150
+ if (health === "starting") return {
151
+ ...entry,
152
+ status: "pending",
153
+ label: "Health check running..."
154
+ };
155
+ return {
156
+ ...entry,
157
+ status: "running",
158
+ label: "Running"
159
+ };
160
+ }
161
+ if (found.state === "exited" || found.state === "dead") return {
162
+ ...entry,
163
+ status: "error",
164
+ label: `Exited (${found.state})`
165
+ };
166
+ return {
167
+ ...entry,
168
+ status: "pending",
169
+ label: `Starting (${found.state})...`
170
+ };
171
+ });
172
+ if (services.every((svc) => {
173
+ return _state.deployStatus.find((e) => e.service === svc)?.status === "running";
174
+ })) return null;
175
+ const failed = _state.deployStatus.filter((e) => e.status === "error").map((e) => e.service);
176
+ if (failed.length > 0) {
177
+ const projectName = projectNameForComposeOptions(composeOpts);
178
+ return `Services started but the following did not become healthy: ${failed.join(", ")}. Check logs: docker compose -p ${projectName} logs ${failed.join(" ")}.`;
179
+ }
180
+ }
181
+ const unhealthy = _state.deployStatus.filter((e) => e.status !== "running").map((e) => e.service);
182
+ const projectName = projectNameForComposeOptions(composeOpts);
183
+ return `Services started but some did not become healthy in time: ${unhealthy.join(", ")}. Check logs: docker compose -p ${projectName} logs ${unhealthy.join(" ")}.`;
184
+ }
185
+ /**
186
+ * Pre-flight: refuse to deploy if existing containers in this compose
187
+ * project belong to a DIFFERENT OP_HOME than the one we're about to deploy.
188
+ * Without this, two stacks (e.g. dev and host) that share the default
189
+ * "openpalm" project name will silently clobber each other.
190
+ */
191
+ async function checkProjectNameCollision(state) {
192
+ const { execFile } = await import('node:child_process');
193
+ return new Promise((resolve) => {
194
+ execFile("docker", [
195
+ "ps",
196
+ "-q",
197
+ "--filter",
198
+ `label=com.docker.compose.project=${projectNameForState(state)}`
199
+ ], (err, stdout) => {
200
+ if (err) return resolve(null);
201
+ const ids = stdout.toString().trim().split(/\s+/).filter(Boolean);
202
+ if (ids.length === 0) return resolve(null);
203
+ execFile("docker", [
204
+ "inspect",
205
+ "--format",
206
+ "{{ index .Config.Labels \"com.docker.compose.project.working_dir\" }}",
207
+ ids[0]
208
+ ], (err2, stdout2) => {
209
+ if (err2) return resolve(null);
210
+ const runningHome = stdout2.toString().trim();
211
+ if (runningHome && runningHome !== state.homeDir) {
212
+ resolve(`Refusing to deploy: docker project "${projectNameForState(state)}" is already running with OP_HOME=${runningHome}, but this deploy would use OP_HOME=${state.homeDir}. Set OP_PROJECT_NAME to a distinct value in stack.env, or stop the existing stack first.`);
213
+ return;
214
+ }
215
+ resolve(null);
216
+ });
217
+ });
218
+ });
219
+ }
220
+ /** Kick off a background Docker Compose deploy. Returns immediately. */
221
+ function startDeploy(state) {
222
+ if (_state.deploying) {
223
+ _state.deployError = "install_in_progress: A deploy is already running. Wait for it to finish.";
224
+ logger.warn("deploy rejected: deploy already in progress");
225
+ return;
226
+ }
227
+ _state.deploying = true;
228
+ _state.deployError = null;
229
+ _state.phase = "writing-config";
230
+ (async () => {
231
+ try {
232
+ const collision = await checkProjectNameCollision(state);
233
+ if (collision) {
234
+ logger.error("deploy aborted: project name collision", { error: collision });
235
+ _state.deployError = collision;
236
+ return;
237
+ }
238
+ await applyInstall(state);
239
+ if (listEnabledAddonIds(state.homeDir).includes("ollama") && !getAddonProfileSelection(state.stackDir, "ollama")) try {
240
+ setAddonProfileSelection(state.stackDir, "ollama", addonProfileId("ollama", "cpu"), state);
241
+ } catch (err) {
242
+ logger.warn("ollama: failed to persist default profile selection (continuing)", { error: err instanceof Error ? err.message : String(err) });
243
+ }
244
+ const services = await buildManagedServices(state);
245
+ _state.deployStatus = services.map((s) => ({
246
+ service: s,
247
+ status: "pending",
248
+ label: "Waiting..."
249
+ }));
250
+ const composeOpts = buildComposeOptions(state);
251
+ try {
252
+ const downResult = await composeDown({
253
+ ...composeOpts,
254
+ removeVolumes: false
255
+ });
256
+ if (!downResult.ok) logger.info("pre-deploy compose down returned non-zero (likely nothing to remove)", { stderr: downResult.stderr?.slice(0, 500) });
257
+ } catch (err) {
258
+ logger.warn("pre-deploy compose down threw — continuing", { error: err instanceof Error ? err.message : String(err) });
259
+ }
260
+ _state.phase = "pulling-images";
261
+ const imageTag = resolveImageTag(composeOpts);
262
+ const isDevTag = imageTag.startsWith("dev");
263
+ let pullResult = null;
264
+ if (!isDevTag) {
265
+ const pullDelaysMs = [
266
+ 0,
267
+ 5e3,
268
+ 15e3
269
+ ];
270
+ for (let attempt = 0; attempt < pullDelaysMs.length; attempt++) {
271
+ if (pullDelaysMs[attempt] > 0) {
272
+ logger.info("retrying image pull", {
273
+ attempt: attempt + 1,
274
+ delayMs: pullDelaysMs[attempt]
275
+ });
276
+ await new Promise((r) => setTimeout(r, pullDelaysMs[attempt]));
277
+ }
278
+ pullResult = await composePull(composeOpts);
279
+ if (pullResult.ok) break;
280
+ const stderr = pullResult.stderr ?? "";
281
+ if (/manifest unknown|manifest for .* not found|unauthorized|authentication required|access denied/i.test(stderr)) {
282
+ logger.error("image pull failed with permanent error", { stderr: stderr.slice(0, 500) });
283
+ break;
284
+ }
285
+ logger.warn("image pull failed (transient?)", {
286
+ attempt: attempt + 1,
287
+ stderr: stderr.slice(0, 500)
288
+ });
289
+ }
290
+ }
291
+ if (isDevTag || !pullResult || !pullResult.ok) if (await allServiceImagesPresent(composeOpts, services)) if (isDevTag) logger.info("dev image tag — skipping registry pull, all images present locally", {
292
+ imageTag,
293
+ services
294
+ });
295
+ else logger.info("image pull failed but all images present locally — continuing", {
296
+ services,
297
+ stderrSlice: (pullResult?.stderr ?? "").slice(0, 200)
298
+ });
299
+ else {
300
+ let msg;
301
+ if (isDevTag) {
302
+ const missing = await missingServiceImages(composeOpts, services);
303
+ msg = `Dev images not found locally (tag: ${imageTag}): ${missing.length > 0 ? missing.join(", ") : "one or more images"}. Run \`bun run dev:build\` from the project root to build them, then retry setup.`;
304
+ } else msg = mapDockerError(pullResult?.stderr?.trim() || "Image pull failed");
305
+ _state.deployStatus = _state.deployStatus.map((e) => ({
306
+ ...e,
307
+ status: "error",
308
+ label: "Image pull failed"
309
+ }));
310
+ _state.deployError = msg;
311
+ return;
312
+ }
313
+ _state.phase = "starting";
314
+ _state.deployStatus = _state.deployStatus.map((e) => ({
315
+ ...e,
316
+ status: "pending",
317
+ label: "Starting..."
318
+ }));
319
+ const result = await composeUp(composeOpts);
320
+ if (!result.ok) {
321
+ const msg = mapDockerError(result.stderr ?? "compose up failed");
322
+ _state.deployStatus = _state.deployStatus.map((e) => ({
323
+ ...e,
324
+ status: "error",
325
+ label: msg
326
+ }));
327
+ _state.deployError = msg;
328
+ return;
329
+ }
330
+ const healthError = await pollContainerHealth(composeOpts, services, 5 * 6e4);
331
+ if (healthError) {
332
+ _state.deployError = healthError;
333
+ return;
334
+ }
335
+ const voiceError = await bringUpVoiceIfEnabled(state, composeOpts);
336
+ if (voiceError) {
337
+ _state.deployError = voiceError;
338
+ return;
339
+ }
340
+ try {
341
+ markSetupComplete(state);
342
+ } catch (err) {
343
+ logger.error("failed to persist OP_SETUP_COMPLETE after healthy deploy", { error: err instanceof Error ? err.message : String(err) });
344
+ _state.deployError = "Deployment succeeded but failed to mark setup complete. Try Retry; if it persists, check disk space and permissions on knowledge/env/stack.env.";
345
+ return;
346
+ }
347
+ _state.setupComplete = true;
348
+ _state.phase = "ready";
349
+ } catch (err) {
350
+ const raw = String(err);
351
+ const msg = mapDockerError(raw);
352
+ logger.error("deploy failed", { error: raw });
353
+ _state.deployStatus = _state.deployStatus.map((e) => ({
354
+ ...e,
355
+ status: "error",
356
+ label: msg
357
+ }));
358
+ _state.deployError = msg;
359
+ } finally {
360
+ _state.deploying = false;
361
+ }
362
+ })();
363
+ }
364
+ var VOICE_ADDON = "voice";
365
+ var VOICE_HEALTH_TIMEOUT_MS = 10 * 6e4;
366
+ /**
367
+ * Return the image names for services whose images are NOT present on the
368
+ * local Docker daemon. Used to build actionable error messages.
369
+ */
370
+ async function missingServiceImages(composeOpts, services) {
371
+ if (services.length === 0) return [];
372
+ const { execFile } = await import('node:child_process');
373
+ const args = [
374
+ "compose",
375
+ ...composeOpts.files.flatMap((f) => ["-f", f]),
376
+ ...(composeOpts.envFiles ?? []).filter((f) => existsSync(f)).flatMap((f) => ["--env-file", f]),
377
+ ...composeOpts.profiles.flatMap((p) => ["--profile", p]),
378
+ "config",
379
+ "--format",
380
+ "json"
381
+ ];
382
+ const serviceConfig = (await new Promise((resolve) => {
383
+ execFile("docker", args, { timeout: 3e4 }, (err, stdout) => {
384
+ if (err) return resolve({});
385
+ try {
386
+ resolve(JSON.parse(stdout.toString()));
387
+ } catch {
388
+ resolve({});
389
+ }
390
+ });
391
+ })).services ?? {};
392
+ const missing = [];
393
+ for (const svc of services) {
394
+ const image = serviceConfig[svc]?.image;
395
+ if (!image) {
396
+ missing.push(`${svc} (image unknown)`);
397
+ continue;
398
+ }
399
+ if (!await new Promise((resolve) => {
400
+ execFile("docker", [
401
+ "image",
402
+ "inspect",
403
+ image
404
+ ], { timeout: 5e3 }, (err) => resolve(!err));
405
+ })) missing.push(image);
406
+ }
407
+ return missing;
408
+ }
409
+ /**
410
+ * Resolve each service's image via `docker compose config` and verify
411
+ * `docker image inspect` finds it locally. Lets the deploy proceed
412
+ * after a registry-pull failure when the operator has the images
413
+ * cached (e.g. dev mode with locally-built `:dev` tags). Returns false
414
+ * on any service whose image we can't confirm is present, including
415
+ * services with no resolvable image and any docker-side error.
416
+ */
417
+ async function allServiceImagesPresent(composeOpts, services) {
418
+ if (services.length === 0) return false;
419
+ const { execFile } = await import('node:child_process');
420
+ const args = [
421
+ "compose",
422
+ ...composeOpts.files.flatMap((f) => ["-f", f]),
423
+ ...(composeOpts.envFiles ?? []).filter((f) => existsSync(f)).flatMap((f) => ["--env-file", f]),
424
+ ...composeOpts.profiles.flatMap((p) => ["--profile", p]),
425
+ "config",
426
+ "--format",
427
+ "json"
428
+ ];
429
+ const serviceConfig = (await new Promise((resolve) => {
430
+ execFile("docker", args, { timeout: 3e4 }, (err, stdout) => {
431
+ if (err) return resolve({});
432
+ try {
433
+ resolve(JSON.parse(stdout.toString()));
434
+ } catch {
435
+ resolve({});
436
+ }
437
+ });
438
+ })).services ?? {};
439
+ for (const svc of services) {
440
+ const image = serviceConfig[svc]?.image;
441
+ if (!image) return false;
442
+ if (!await new Promise((resolve) => {
443
+ execFile("docker", [
444
+ "image",
445
+ "inspect",
446
+ image
447
+ ], { timeout: 5e3 }, (err) => {
448
+ resolve(!err);
449
+ });
450
+ })) return false;
451
+ }
452
+ return true;
453
+ }
454
+ /**
455
+ * Pull + bring up the voice addon's chosen profile if
456
+ * the addon is enabled. Runs after the core stack is healthy so the
457
+ * deploy progress UI shows voice as a distinct phase ("starting-voice")
458
+ * with its own status row.
459
+ *
460
+ * Returns null on success or a user-friendly error string on failure.
461
+ * The caller surfaces the error via _state.deployError.
462
+ */
463
+ async function bringUpVoiceIfEnabled(state, composeOpts) {
464
+ if (!listEnabledAddonIds(state.homeDir).includes(VOICE_ADDON)) return null;
465
+ const profiles = getAddonProfiles(state.homeDir, VOICE_ADDON);
466
+ const stored = getAddonProfileSelection(state.stackDir, VOICE_ADDON);
467
+ const profileId = stored ?? profiles.find((p) => p.id === addonProfileId(VOICE_ADDON, "cpu"))?.id ?? profiles[0]?.id ?? addonProfileId(VOICE_ADDON, "cpu");
468
+ if (!stored) try {
469
+ setAddonProfileSelection(state.stackDir, VOICE_ADDON, profileId, state);
470
+ } catch (err) {
471
+ logger.warn("voice: failed to persist profile selection (continuing)", { error: err instanceof Error ? err.message : String(err) });
472
+ }
473
+ const profileServices = profiles.find((p) => p.id === profileId)?.services ?? [];
474
+ if (profileServices.length === 0) {
475
+ logger.warn("voice: no services found for chosen profile (skipping)", { profileId });
476
+ return null;
477
+ }
478
+ _state.phase = "starting-voice";
479
+ _state.deployStatus = [..._state.deployStatus, ...profileServices.map((svc) => ({
480
+ service: svc,
481
+ status: "pending",
482
+ label: "Voice — starting container…"
483
+ }))];
484
+ const upResult = await composeUp({
485
+ ...composeOpts,
486
+ services: profileServices,
487
+ profiles: [profileId],
488
+ forceRecreate: true
489
+ });
490
+ if (!upResult.ok) {
491
+ const msg = mapDockerError(upResult.stderr ?? "Voice container failed to start");
492
+ _state.deployStatus = _state.deployStatus.map((e) => profileServices.includes(e.service) ? {
493
+ ...e,
494
+ status: "error",
495
+ label: msg
496
+ } : e);
497
+ return `Voice addon: ${msg}`;
498
+ }
499
+ const probeUrl = "http://127.0.0.1:8880/health";
500
+ const deadline = Date.now() + VOICE_HEALTH_TIMEOUT_MS;
501
+ let healthy = false;
502
+ while (Date.now() < deadline) {
503
+ try {
504
+ if ((await fetch(probeUrl, { signal: AbortSignal.timeout(1500) })).ok) {
505
+ healthy = true;
506
+ break;
507
+ }
508
+ } catch {}
509
+ await new Promise((r) => setTimeout(r, 2e3));
510
+ }
511
+ if (!healthy) {
512
+ _state.deployStatus = _state.deployStatus.map((e) => profileServices.includes(e.service) ? {
513
+ ...e,
514
+ status: "error",
515
+ label: "Voice is still warming up. You can finish setup; check the Voice tab in admin."
516
+ } : e);
517
+ logger.warn("voice: container did not become healthy in time", { timeoutMs: VOICE_HEALTH_TIMEOUT_MS });
518
+ return null;
519
+ }
520
+ _state.deployStatus = _state.deployStatus.map((e) => profileServices.includes(e.service) ? {
521
+ ...e,
522
+ status: "running",
523
+ label: "Voice — ready"
524
+ } : e);
525
+ return null;
526
+ }
527
+
528
+ export { getDeployState as g, resetDeployState as r, startDeploy as s };
529
+ //# sourceMappingURL=setup-deploy-UKTSVAC0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-deploy-UKTSVAC0.js","sources":["../../../.svelte-kit/adapter-node/chunks/setup-deploy.js"],"sourcesContent":["import { A as composePs, D as composeDown, Dt as parseEnvFile, I as composeUp, J as isSetupComplete, Nt as createLogger, R as resolveComposeProjectName, _ as applyInstall, j as composePull, jt as resolveStackDir, lt as setAddonProfileSelection, nt as getAddonProfileSelection, rt as getAddonProfiles, st as listEnabledAddonIds, ut as addonProfileId, w as buildComposeOptions, x as buildManagedServices } from \"./src.js\";\nimport { existsSync, readFileSync, renameSync, writeFileSync } from \"node:fs\";\n//#region src/lib/server/setup-deploy.ts\n/**\n* In-process deploy state for the setup wizard.\n*\n* Tracks Docker Compose deploy progress during first-time setup.\n* State lives in this module so the polling endpoint can read it\n* without a database or filesystem dependency.\n*/\nvar logger = createLogger(\"admin:setup-deploy\");\nfunction projectNameForState(state) {\n\treturn resolveComposeProjectName(parseEnvFile(`${state.stashDir}/env/stack.env`));\n}\nfunction projectNameForComposeOptions(composeOpts) {\n\treturn resolveComposeProjectName(Object.assign({}, ...(composeOpts.envFiles ?? []).map((f) => parseEnvFile(f))));\n}\nvar _state = {\n\tdeploying: false,\n\tsetupComplete: false,\n\tdeployStatus: [],\n\tdeployError: null,\n\tphase: \"writing-config\"\n};\nfunction getDeployState() {\n\tif (!_state.setupComplete && !_state.deploying && isSetupComplete(resolveStackDir())) _state.setupComplete = true;\n\treturn {\n\t\t..._state,\n\t\tdeployStatus: [..._state.deployStatus]\n\t};\n}\nfunction resetDeployState() {\n\t_state = {\n\t\tdeploying: false,\n\t\tsetupComplete: false,\n\t\tdeployStatus: [],\n\t\tdeployError: null,\n\t\tphase: \"writing-config\"\n\t};\n}\n/**\n* Resolve the effective OP_IMAGE_TAG for a deploy.\n* Reads exclusively from stack.env files — by the time startDeploy() runs,\n* applyInstall() has already written the wizard's chosen tag to stack.env.\n* Process env is intentionally ignored so shell variables can never silently\n* override what the user configured in the wizard.\n*/\nfunction resolveImageTag(composeOpts) {\n\tfor (const envFile of composeOpts.envFiles ?? []) {\n\t\tif (!existsSync(envFile)) continue;\n\t\tconst parsed = parseEnvFile(envFile);\n\t\tif (parsed.OP_IMAGE_TAG) return parsed.OP_IMAGE_TAG;\n\t}\n\treturn \"\";\n}\n/**\n* Map opaque Docker/compose stderr text to a human-friendly error message.\n* If no pattern matches, the raw message is returned prefixed with a generic header.\n*/\nfunction mapDockerError(raw) {\n\tif (/cannot connect to the docker daemon|docker daemon is not running/i.test(raw)) return \"Docker Desktop appears to have stopped. Start Docker, then click Retry.\";\n\tconst portMatch = /bind: address already in use.*?:(\\d+)/i.exec(raw);\n\tif (portMatch) return `Port ${portMatch[1]} is already in use by another program. Free it (or quit the other app) and click Retry.`;\n\tif (/Cannot find specified .* file|no such file or directory/i.test(raw)) return \"A required configuration file is missing. Try re-running setup.\";\n\tif (/permission denied/i.test(raw)) return \"Permission denied. Check that ~/.openpalm and Docker have permission to write.\";\n\tif (/no space left on device|ENOSPC/i.test(raw)) return \"Your disk is full. Free up space and click Retry.\";\n\treturn `Deployment ran into a problem: ${raw}`;\n}\n/**\n* Atomic-merge OP_SETUP_COMPLETE=true into stack.env. Called only after every\n* container has reported healthy — until then the wizard must remain\n* resumable, so the flag is intentionally not written by performSetup.\n*/\nfunction markSetupComplete(state) {\n\tconst path = `${state.stashDir}/env/stack.env`;\n\tconst lines = (existsSync(path) ? readFileSync(path, \"utf-8\") : \"\").split(\"\\n\");\n\tlet replaced = false;\n\tfor (let i = 0; i < lines.length; i++) {\n\t\tconst trimmed = lines[i].trimStart();\n\t\tconst eq = trimmed.indexOf(\"=\");\n\t\tif (eq > 0 && trimmed.slice(0, eq).trim() === \"OP_SETUP_COMPLETE\") {\n\t\t\tlines[i] = \"OP_SETUP_COMPLETE=true\";\n\t\t\treplaced = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (!replaced) if (lines.length > 0 && lines[lines.length - 1] === \"\") {\n\t\tlines[lines.length - 1] = \"OP_SETUP_COMPLETE=true\";\n\t\tlines.push(\"\");\n\t} else lines.push(\"OP_SETUP_COMPLETE=true\");\n\tlet merged = lines.join(\"\\n\");\n\tif (!merged.endsWith(\"\\n\")) merged += \"\\n\";\n\tconst tmp = `${path}.tmp`;\n\twriteFileSync(tmp, merged, { mode: 384 });\n\trenameSync(tmp, path);\n}\n/**\n* Parse `docker compose ps --format json` output into a list of container states.\n* Compose outputs one JSON object per line (NDJSON), not a JSON array.\n*/\nfunction parseComposePsOutput(stdout) {\n\tconst results = [];\n\tfor (const line of stdout.split(\"\\n\")) {\n\t\tconst trimmed = line.trim();\n\t\tif (!trimmed) continue;\n\t\ttry {\n\t\t\tconst obj = JSON.parse(trimmed);\n\t\t\tresults.push({\n\t\t\t\tname: String(obj[\"Name\"] ?? obj[\"Service\"] ?? \"\"),\n\t\t\t\tstate: String(obj[\"State\"] ?? \"\"),\n\t\t\t\thealth: String(obj[\"Health\"] ?? \"\")\n\t\t\t});\n\t\t} catch {}\n\t}\n\treturn results;\n}\n/**\n* Poll container health for `services` until all are running (and healthy if\n* they declare a healthcheck). Updates `_state.deployStatus` with intermediate\n* labels as containers flip states.\n*\n* @returns null on success, or an error string if timeout fires with unhealthy services.\n*/\nasync function pollContainerHealth(composeOpts, services, timeoutMs) {\n\tconst deadline = Date.now() + timeoutMs;\n\tconst POLL_INTERVAL_MS = 2e3;\n\twhile (Date.now() < deadline) {\n\t\tawait new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));\n\t\tconst psResult = await composePs(composeOpts);\n\t\tif (!psResult.ok) {\n\t\t\tlogger.warn(\"composePs failed during health poll\", { stderr: psResult.stderr });\n\t\t\tcontinue;\n\t\t}\n\t\tconst containers = parseComposePsOutput(psResult.stdout);\n\t\t_state.deployStatus = _state.deployStatus.map((entry) => {\n\t\t\tconst found = containers.find((c) => c.name === entry.service || c.name.endsWith(`-${entry.service}-1`) || c.name.endsWith(`_${entry.service}_1`));\n\t\t\tif (!found) return {\n\t\t\t\t...entry,\n\t\t\t\tstatus: \"pending\",\n\t\t\t\tlabel: \"Starting...\"\n\t\t\t};\n\t\t\tif (found.state === \"running\") {\n\t\t\t\tconst health = found.health;\n\t\t\t\tif (health === \"unhealthy\") return {\n\t\t\t\t\t...entry,\n\t\t\t\t\tstatus: \"error\",\n\t\t\t\t\tlabel: \"Unhealthy\"\n\t\t\t\t};\n\t\t\t\tif (health === \"starting\") return {\n\t\t\t\t\t...entry,\n\t\t\t\t\tstatus: \"pending\",\n\t\t\t\t\tlabel: \"Health check running...\"\n\t\t\t\t};\n\t\t\t\treturn {\n\t\t\t\t\t...entry,\n\t\t\t\t\tstatus: \"running\",\n\t\t\t\t\tlabel: \"Running\"\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (found.state === \"exited\" || found.state === \"dead\") return {\n\t\t\t\t...entry,\n\t\t\t\tstatus: \"error\",\n\t\t\t\tlabel: `Exited (${found.state})`\n\t\t\t};\n\t\t\treturn {\n\t\t\t\t...entry,\n\t\t\t\tstatus: \"pending\",\n\t\t\t\tlabel: `Starting (${found.state})...`\n\t\t\t};\n\t\t});\n\t\tif (services.every((svc) => {\n\t\t\treturn _state.deployStatus.find((e) => e.service === svc)?.status === \"running\";\n\t\t})) return null;\n\t\tconst failed = _state.deployStatus.filter((e) => e.status === \"error\").map((e) => e.service);\n\t\tif (failed.length > 0) {\n\t\t\tconst projectName = projectNameForComposeOptions(composeOpts);\n\t\t\treturn `Services started but the following did not become healthy: ${failed.join(\", \")}. Check logs: docker compose -p ${projectName} logs ${failed.join(\" \")}.`;\n\t\t}\n\t}\n\tconst unhealthy = _state.deployStatus.filter((e) => e.status !== \"running\").map((e) => e.service);\n\tconst projectName = projectNameForComposeOptions(composeOpts);\n\treturn `Services started but some did not become healthy in time: ${unhealthy.join(\", \")}. Check logs: docker compose -p ${projectName} logs ${unhealthy.join(\" \")}.`;\n}\n/**\n* Pre-flight: refuse to deploy if existing containers in this compose\n* project belong to a DIFFERENT OP_HOME than the one we're about to deploy.\n* Without this, two stacks (e.g. dev and host) that share the default\n* \"openpalm\" project name will silently clobber each other.\n*/\nasync function checkProjectNameCollision(state) {\n\tconst { execFile } = await import(\"node:child_process\");\n\treturn new Promise((resolve) => {\n\t\texecFile(\"docker\", [\n\t\t\t\"ps\",\n\t\t\t\"-q\",\n\t\t\t\"--filter\",\n\t\t\t`label=com.docker.compose.project=${projectNameForState(state)}`\n\t\t], (err, stdout) => {\n\t\t\tif (err) return resolve(null);\n\t\t\tconst ids = stdout.toString().trim().split(/\\s+/).filter(Boolean);\n\t\t\tif (ids.length === 0) return resolve(null);\n\t\t\texecFile(\"docker\", [\n\t\t\t\t\"inspect\",\n\t\t\t\t\"--format\",\n\t\t\t\t\"{{ index .Config.Labels \\\"com.docker.compose.project.working_dir\\\" }}\",\n\t\t\t\tids[0]\n\t\t\t], (err2, stdout2) => {\n\t\t\t\tif (err2) return resolve(null);\n\t\t\t\tconst runningHome = stdout2.toString().trim();\n\t\t\t\tif (runningHome && runningHome !== state.homeDir) {\n\t\t\t\t\tresolve(`Refusing to deploy: docker project \"${projectNameForState(state)}\" is already running with OP_HOME=${runningHome}, but this deploy would use OP_HOME=${state.homeDir}. Set OP_PROJECT_NAME to a distinct value in stack.env, or stop the existing stack first.`);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tresolve(null);\n\t\t\t});\n\t\t});\n\t});\n}\n/** Kick off a background Docker Compose deploy. Returns immediately. */\nfunction startDeploy(state) {\n\tif (_state.deploying) {\n\t\t_state.deployError = \"install_in_progress: A deploy is already running. Wait for it to finish.\";\n\t\tlogger.warn(\"deploy rejected: deploy already in progress\");\n\t\treturn;\n\t}\n\t_state.deploying = true;\n\t_state.deployError = null;\n\t_state.phase = \"writing-config\";\n\t(async () => {\n\t\ttry {\n\t\t\tconst collision = await checkProjectNameCollision(state);\n\t\t\tif (collision) {\n\t\t\t\tlogger.error(\"deploy aborted: project name collision\", { error: collision });\n\t\t\t\t_state.deployError = collision;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tawait applyInstall(state);\n\t\t\tif (listEnabledAddonIds(state.homeDir).includes(\"ollama\") && !getAddonProfileSelection(state.stackDir, \"ollama\")) try {\n\t\t\t\tsetAddonProfileSelection(state.stackDir, \"ollama\", addonProfileId(\"ollama\", \"cpu\"), state);\n\t\t\t} catch (err) {\n\t\t\t\tlogger.warn(\"ollama: failed to persist default profile selection (continuing)\", { error: err instanceof Error ? err.message : String(err) });\n\t\t\t}\n\t\t\tconst services = await buildManagedServices(state);\n\t\t\t_state.deployStatus = services.map((s) => ({\n\t\t\t\tservice: s,\n\t\t\t\tstatus: \"pending\",\n\t\t\t\tlabel: \"Waiting...\"\n\t\t\t}));\n\t\t\tconst composeOpts = buildComposeOptions(state);\n\t\t\ttry {\n\t\t\t\tconst downResult = await composeDown({\n\t\t\t\t\t...composeOpts,\n\t\t\t\t\tremoveVolumes: false\n\t\t\t\t});\n\t\t\t\tif (!downResult.ok) logger.info(\"pre-deploy compose down returned non-zero (likely nothing to remove)\", { stderr: downResult.stderr?.slice(0, 500) });\n\t\t\t} catch (err) {\n\t\t\t\tlogger.warn(\"pre-deploy compose down threw — continuing\", { error: err instanceof Error ? err.message : String(err) });\n\t\t\t}\n\t\t\t_state.phase = \"pulling-images\";\n\t\t\tconst imageTag = resolveImageTag(composeOpts);\n\t\t\tconst isDevTag = imageTag.startsWith(\"dev\");\n\t\t\tlet pullResult = null;\n\t\t\tif (!isDevTag) {\n\t\t\t\tconst pullDelaysMs = [\n\t\t\t\t\t0,\n\t\t\t\t\t5e3,\n\t\t\t\t\t15e3\n\t\t\t\t];\n\t\t\t\tfor (let attempt = 0; attempt < pullDelaysMs.length; attempt++) {\n\t\t\t\t\tif (pullDelaysMs[attempt] > 0) {\n\t\t\t\t\t\tlogger.info(\"retrying image pull\", {\n\t\t\t\t\t\t\tattempt: attempt + 1,\n\t\t\t\t\t\t\tdelayMs: pullDelaysMs[attempt]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tawait new Promise((r) => setTimeout(r, pullDelaysMs[attempt]));\n\t\t\t\t\t}\n\t\t\t\t\tpullResult = await composePull(composeOpts);\n\t\t\t\t\tif (pullResult.ok) break;\n\t\t\t\t\tconst stderr = pullResult.stderr ?? \"\";\n\t\t\t\t\tif (/manifest unknown|manifest for .* not found|unauthorized|authentication required|access denied/i.test(stderr)) {\n\t\t\t\t\t\tlogger.error(\"image pull failed with permanent error\", { stderr: stderr.slice(0, 500) });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tlogger.warn(\"image pull failed (transient?)\", {\n\t\t\t\t\t\tattempt: attempt + 1,\n\t\t\t\t\t\tstderr: stderr.slice(0, 500)\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isDevTag || !pullResult || !pullResult.ok) if (await allServiceImagesPresent(composeOpts, services)) if (isDevTag) logger.info(\"dev image tag — skipping registry pull, all images present locally\", {\n\t\t\t\timageTag,\n\t\t\t\tservices\n\t\t\t});\n\t\t\telse logger.info(\"image pull failed but all images present locally — continuing\", {\n\t\t\t\tservices,\n\t\t\t\tstderrSlice: (pullResult?.stderr ?? \"\").slice(0, 200)\n\t\t\t});\n\t\t\telse {\n\t\t\t\tlet msg;\n\t\t\t\tif (isDevTag) {\n\t\t\t\t\tconst missing = await missingServiceImages(composeOpts, services);\n\t\t\t\t\tmsg = `Dev images not found locally (tag: ${imageTag}): ${missing.length > 0 ? missing.join(\", \") : \"one or more images\"}. Run \\`bun run dev:build\\` from the project root to build them, then retry setup.`;\n\t\t\t\t} else msg = mapDockerError(pullResult?.stderr?.trim() || \"Image pull failed\");\n\t\t\t\t_state.deployStatus = _state.deployStatus.map((e) => ({\n\t\t\t\t\t...e,\n\t\t\t\t\tstatus: \"error\",\n\t\t\t\t\tlabel: \"Image pull failed\"\n\t\t\t\t}));\n\t\t\t\t_state.deployError = msg;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_state.phase = \"starting\";\n\t\t\t_state.deployStatus = _state.deployStatus.map((e) => ({\n\t\t\t\t...e,\n\t\t\t\tstatus: \"pending\",\n\t\t\t\tlabel: \"Starting...\"\n\t\t\t}));\n\t\t\tconst result = await composeUp(composeOpts);\n\t\t\tif (!result.ok) {\n\t\t\t\tconst msg = mapDockerError(result.stderr ?? \"compose up failed\");\n\t\t\t\t_state.deployStatus = _state.deployStatus.map((e) => ({\n\t\t\t\t\t...e,\n\t\t\t\t\tstatus: \"error\",\n\t\t\t\t\tlabel: msg\n\t\t\t\t}));\n\t\t\t\t_state.deployError = msg;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst healthError = await pollContainerHealth(composeOpts, services, 5 * 6e4);\n\t\t\tif (healthError) {\n\t\t\t\t_state.deployError = healthError;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst voiceError = await bringUpVoiceIfEnabled(state, composeOpts);\n\t\t\tif (voiceError) {\n\t\t\t\t_state.deployError = voiceError;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tmarkSetupComplete(state);\n\t\t\t} catch (err) {\n\t\t\t\tlogger.error(\"failed to persist OP_SETUP_COMPLETE after healthy deploy\", { error: err instanceof Error ? err.message : String(err) });\n\t\t\t\t_state.deployError = \"Deployment succeeded but failed to mark setup complete. Try Retry; if it persists, check disk space and permissions on knowledge/env/stack.env.\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t_state.setupComplete = true;\n\t\t\t_state.phase = \"ready\";\n\t\t} catch (err) {\n\t\t\tconst raw = String(err);\n\t\t\tconst msg = mapDockerError(raw);\n\t\t\tlogger.error(\"deploy failed\", { error: raw });\n\t\t\t_state.deployStatus = _state.deployStatus.map((e) => ({\n\t\t\t\t...e,\n\t\t\t\tstatus: \"error\",\n\t\t\t\tlabel: msg\n\t\t\t}));\n\t\t\t_state.deployError = msg;\n\t\t} finally {\n\t\t\t_state.deploying = false;\n\t\t}\n\t})();\n}\nvar VOICE_ADDON = \"voice\";\nvar VOICE_HEALTH_TIMEOUT_MS = 10 * 6e4;\n/**\n* Return the image names for services whose images are NOT present on the\n* local Docker daemon. Used to build actionable error messages.\n*/\nasync function missingServiceImages(composeOpts, services) {\n\tif (services.length === 0) return [];\n\tconst { execFile } = await import(\"node:child_process\");\n\tconst args = [\n\t\t\"compose\",\n\t\t...composeOpts.files.flatMap((f) => [\"-f\", f]),\n\t\t...(composeOpts.envFiles ?? []).filter((f) => existsSync(f)).flatMap((f) => [\"--env-file\", f]),\n\t\t...composeOpts.profiles.flatMap((p) => [\"--profile\", p]),\n\t\t\"config\",\n\t\t\"--format\",\n\t\t\"json\"\n\t];\n\tconst serviceConfig = (await new Promise((resolve) => {\n\t\texecFile(\"docker\", args, { timeout: 3e4 }, (err, stdout) => {\n\t\t\tif (err) return resolve({});\n\t\t\ttry {\n\t\t\t\tresolve(JSON.parse(stdout.toString()));\n\t\t\t} catch {\n\t\t\t\tresolve({});\n\t\t\t}\n\t\t});\n\t})).services ?? {};\n\tconst missing = [];\n\tfor (const svc of services) {\n\t\tconst image = serviceConfig[svc]?.image;\n\t\tif (!image) {\n\t\t\tmissing.push(`${svc} (image unknown)`);\n\t\t\tcontinue;\n\t\t}\n\t\tif (!await new Promise((resolve) => {\n\t\t\texecFile(\"docker\", [\n\t\t\t\t\"image\",\n\t\t\t\t\"inspect\",\n\t\t\t\timage\n\t\t\t], { timeout: 5e3 }, (err) => resolve(!err));\n\t\t})) missing.push(image);\n\t}\n\treturn missing;\n}\n/**\n* Resolve each service's image via `docker compose config` and verify\n* `docker image inspect` finds it locally. Lets the deploy proceed\n* after a registry-pull failure when the operator has the images\n* cached (e.g. dev mode with locally-built `:dev` tags). Returns false\n* on any service whose image we can't confirm is present, including\n* services with no resolvable image and any docker-side error.\n*/\nasync function allServiceImagesPresent(composeOpts, services) {\n\tif (services.length === 0) return false;\n\tconst { execFile } = await import(\"node:child_process\");\n\tconst args = [\n\t\t\"compose\",\n\t\t...composeOpts.files.flatMap((f) => [\"-f\", f]),\n\t\t...(composeOpts.envFiles ?? []).filter((f) => existsSync(f)).flatMap((f) => [\"--env-file\", f]),\n\t\t...composeOpts.profiles.flatMap((p) => [\"--profile\", p]),\n\t\t\"config\",\n\t\t\"--format\",\n\t\t\"json\"\n\t];\n\tconst serviceConfig = (await new Promise((resolve) => {\n\t\texecFile(\"docker\", args, { timeout: 3e4 }, (err, stdout) => {\n\t\t\tif (err) return resolve({});\n\t\t\ttry {\n\t\t\t\tresolve(JSON.parse(stdout.toString()));\n\t\t\t} catch {\n\t\t\t\tresolve({});\n\t\t\t}\n\t\t});\n\t})).services ?? {};\n\tfor (const svc of services) {\n\t\tconst image = serviceConfig[svc]?.image;\n\t\tif (!image) return false;\n\t\tif (!await new Promise((resolve) => {\n\t\t\texecFile(\"docker\", [\n\t\t\t\t\"image\",\n\t\t\t\t\"inspect\",\n\t\t\t\timage\n\t\t\t], { timeout: 5e3 }, (err) => {\n\t\t\t\tresolve(!err);\n\t\t\t});\n\t\t})) return false;\n\t}\n\treturn true;\n}\n/**\n* Pull + bring up the voice addon's chosen profile if\n* the addon is enabled. Runs after the core stack is healthy so the\n* deploy progress UI shows voice as a distinct phase (\"starting-voice\")\n* with its own status row.\n*\n* Returns null on success or a user-friendly error string on failure.\n* The caller surfaces the error via _state.deployError.\n*/\nasync function bringUpVoiceIfEnabled(state, composeOpts) {\n\tif (!listEnabledAddonIds(state.homeDir).includes(VOICE_ADDON)) return null;\n\tconst profiles = getAddonProfiles(state.homeDir, VOICE_ADDON);\n\tconst stored = getAddonProfileSelection(state.stackDir, VOICE_ADDON);\n\tconst profileId = stored ?? profiles.find((p) => p.id === addonProfileId(VOICE_ADDON, \"cpu\"))?.id ?? profiles[0]?.id ?? addonProfileId(VOICE_ADDON, \"cpu\");\n\tif (!stored) try {\n\t\tsetAddonProfileSelection(state.stackDir, VOICE_ADDON, profileId, state);\n\t} catch (err) {\n\t\tlogger.warn(\"voice: failed to persist profile selection (continuing)\", { error: err instanceof Error ? err.message : String(err) });\n\t}\n\tconst profileServices = profiles.find((p) => p.id === profileId)?.services ?? [];\n\tif (profileServices.length === 0) {\n\t\tlogger.warn(\"voice: no services found for chosen profile (skipping)\", { profileId });\n\t\treturn null;\n\t}\n\t_state.phase = \"starting-voice\";\n\t_state.deployStatus = [..._state.deployStatus, ...profileServices.map((svc) => ({\n\t\tservice: svc,\n\t\tstatus: \"pending\",\n\t\tlabel: \"Voice — starting container…\"\n\t}))];\n\tconst upResult = await composeUp({\n\t\t...composeOpts,\n\t\tservices: profileServices,\n\t\tprofiles: [profileId],\n\t\tforceRecreate: true\n\t});\n\tif (!upResult.ok) {\n\t\tconst msg = mapDockerError(upResult.stderr ?? \"Voice container failed to start\");\n\t\t_state.deployStatus = _state.deployStatus.map((e) => profileServices.includes(e.service) ? {\n\t\t\t...e,\n\t\t\tstatus: \"error\",\n\t\t\tlabel: msg\n\t\t} : e);\n\t\treturn `Voice addon: ${msg}`;\n\t}\n\tconst probeUrl = \"http://127.0.0.1:8880/health\";\n\tconst deadline = Date.now() + VOICE_HEALTH_TIMEOUT_MS;\n\tlet healthy = false;\n\twhile (Date.now() < deadline) {\n\t\ttry {\n\t\t\tif ((await fetch(probeUrl, { signal: AbortSignal.timeout(1500) })).ok) {\n\t\t\t\thealthy = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch {}\n\t\tawait new Promise((r) => setTimeout(r, 2e3));\n\t}\n\tif (!healthy) {\n\t\t_state.deployStatus = _state.deployStatus.map((e) => profileServices.includes(e.service) ? {\n\t\t\t...e,\n\t\t\tstatus: \"error\",\n\t\t\tlabel: \"Voice is still warming up. You can finish setup; check the Voice tab in admin.\"\n\t\t} : e);\n\t\tlogger.warn(\"voice: container did not become healthy in time\", { timeoutMs: VOICE_HEALTH_TIMEOUT_MS });\n\t\treturn null;\n\t}\n\t_state.deployStatus = _state.deployStatus.map((e) => profileServices.includes(e.service) ? {\n\t\t...e,\n\t\tstatus: \"running\",\n\t\tlabel: \"Voice — ready\"\n\t} : e);\n\treturn null;\n}\n//#endregion\nexport { resetDeployState as n, startDeploy as r, getDeployState as t };\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,GAAG,YAAY,CAAC,oBAAoB,CAAC;AAC/C,SAAS,mBAAmB,CAAC,KAAK,EAAE;AACpC,CAAC,OAAO,yBAAyB,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;AAClF;AACA,SAAS,4BAA4B,CAAC,WAAW,EAAE;AACnD,CAAC,OAAO,yBAAyB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjH;AACA,IAAI,MAAM,GAAG;AACb,CAAC,SAAS,EAAE,KAAK;AACjB,CAAC,aAAa,EAAE,KAAK;AACrB,CAAC,YAAY,EAAE,EAAE;AACjB,CAAC,WAAW,EAAE,IAAI;AAClB,CAAC,KAAK,EAAE;AACR,CAAC;AACD,SAAS,cAAc,GAAG;AAC1B,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,eAAe,CAAC,eAAe,EAAE,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,IAAI;AAClH,CAAC,OAAO;AACR,EAAE,GAAG,MAAM;AACX,EAAE,YAAY,EAAE,CAAC,GAAG,MAAM,CAAC,YAAY;AACvC,EAAE;AACF;AACA,SAAS,gBAAgB,GAAG;AAC5B,CAAC,MAAM,GAAG;AACV,EAAE,SAAS,EAAE,KAAK;AAClB,EAAE,aAAa,EAAE,KA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