@chrisjowen/wheelhouse 0.7.0 → 0.9.0

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 (390) hide show
  1. package/README.md +2 -2
  2. package/build/client/_app/immutable/chunks/{3bC4bjBI.js → BEc8oFj4.js} +1 -1
  3. package/build/client/_app/immutable/chunks/BEc8oFj4.js.br +0 -0
  4. package/build/client/_app/immutable/chunks/BEc8oFj4.js.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{BrrBgLVG.js → BI6mOQIC.js} +1 -1
  6. package/build/client/_app/immutable/chunks/BI6mOQIC.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/BI6mOQIC.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{CgxyeCeP.js → BJLLbknR.js} +1 -1
  9. package/build/client/_app/immutable/chunks/BJLLbknR.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/BJLLbknR.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/BNpuLzpy.js +2 -0
  12. package/build/client/_app/immutable/chunks/BNpuLzpy.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/BNpuLzpy.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/{CNKI0WqS.js → BRfuAoq7.js} +1 -1
  15. package/build/client/_app/immutable/chunks/BRfuAoq7.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/BRfuAoq7.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{BlJ-AbFb.js → BSRqsJCa.js} +4 -4
  18. package/build/client/_app/immutable/chunks/BSRqsJCa.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/BSRqsJCa.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{CEhBf-yV.js → BTTjxuqT.js} +1 -1
  21. package/build/client/_app/immutable/chunks/BTTjxuqT.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BTTjxuqT.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{CzbTCvH8.js → BveXuSek.js} +1 -1
  24. package/build/client/_app/immutable/chunks/BveXuSek.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/BveXuSek.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/C0DPNoH0.js +5 -0
  27. package/build/client/_app/immutable/chunks/C0DPNoH0.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/C0DPNoH0.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/{BibAhIE3.js → CNPFxlMK.js} +1 -1
  30. package/build/client/_app/immutable/chunks/CNPFxlMK.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CNPFxlMK.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/{D9coJX5q.js → CTb_ccym.js} +1 -1
  33. package/build/client/_app/immutable/chunks/CTb_ccym.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/CTb_ccym.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/{10ROkIhN.js → CeCmrTGW.js} +1 -1
  36. package/build/client/_app/immutable/chunks/CeCmrTGW.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/CeCmrTGW.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/{C9ed1vbc.js → DCmP9xcb.js} +2 -2
  39. package/build/client/_app/immutable/chunks/DCmP9xcb.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/DCmP9xcb.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/{DHss7SEY.js → DHiN7982.js} +1 -1
  42. package/build/client/_app/immutable/chunks/DHiN7982.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/{DHss7SEY.js.gz → DHiN7982.js.gz} +0 -0
  44. package/build/client/_app/immutable/chunks/{Ns_iZj-K.js → DVPW54rN.js} +1 -1
  45. package/build/client/_app/immutable/chunks/DVPW54rN.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/DVPW54rN.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/{Dk0_dSfe.js → Dby6Wn4J.js} +1 -1
  48. package/build/client/_app/immutable/chunks/Dby6Wn4J.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/Dby6Wn4J.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/{CR4i-JqL.js → Dzuse5SP.js} +1 -1
  51. package/build/client/_app/immutable/chunks/Dzuse5SP.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/Dzuse5SP.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/{CRK1Q1tO.js → Lwq8jsO7.js} +1 -1
  54. package/build/client/_app/immutable/chunks/Lwq8jsO7.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/Lwq8jsO7.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/{DMDL4MuU.js → Mzyfuo21.js} +1 -1
  57. package/build/client/_app/immutable/chunks/Mzyfuo21.js.br +1 -0
  58. package/build/client/_app/immutable/chunks/Mzyfuo21.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/{Om8BmhPE.js → kdhJpKON.js} +1 -1
  60. package/build/client/_app/immutable/chunks/kdhJpKON.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/kdhJpKON.js.gz +0 -0
  62. package/build/client/_app/immutable/entry/{app.5tTdQ_02.js → app.DqKfT2WZ.js} +2 -2
  63. package/build/client/_app/immutable/entry/app.DqKfT2WZ.js.br +0 -0
  64. package/build/client/_app/immutable/entry/app.DqKfT2WZ.js.gz +0 -0
  65. package/build/client/_app/immutable/entry/start.DEmSMT5Q.js +1 -0
  66. package/build/client/_app/immutable/entry/start.DEmSMT5Q.js.br +0 -0
  67. package/build/client/_app/immutable/entry/start.DEmSMT5Q.js.gz +0 -0
  68. package/build/client/_app/immutable/nodes/{0.nyx2R9Qf.js → 0.CszE2Pm2.js} +5 -5
  69. package/build/client/_app/immutable/nodes/0.CszE2Pm2.js.br +0 -0
  70. package/build/client/_app/immutable/nodes/0.CszE2Pm2.js.gz +0 -0
  71. package/build/client/_app/immutable/nodes/{1.BkR_IPYS.js → 1.DdeexMc3.js} +1 -1
  72. package/build/client/_app/immutable/nodes/1.DdeexMc3.js.br +0 -0
  73. package/build/client/_app/immutable/nodes/1.DdeexMc3.js.gz +0 -0
  74. package/build/client/_app/immutable/nodes/{10.BS87tv1l.js → 10.C33nTvVg.js} +1 -1
  75. package/build/client/_app/immutable/nodes/10.C33nTvVg.js.br +0 -0
  76. package/build/client/_app/immutable/nodes/10.C33nTvVg.js.gz +0 -0
  77. package/build/client/_app/immutable/nodes/{11.DddxDkJ4.js → 11.Bitd-Um8.js} +1 -1
  78. package/build/client/_app/immutable/nodes/11.Bitd-Um8.js.br +0 -0
  79. package/build/client/_app/immutable/nodes/11.Bitd-Um8.js.gz +0 -0
  80. package/build/client/_app/immutable/nodes/{12.C9qwM8Di.js → 12.DvJMt_BX.js} +1 -1
  81. package/build/client/_app/immutable/nodes/12.DvJMt_BX.js.br +0 -0
  82. package/build/client/_app/immutable/nodes/12.DvJMt_BX.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/{13.CAV9o7bd.js → 13.CNcETgxx.js} +1 -1
  84. package/build/client/_app/immutable/nodes/13.CNcETgxx.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/13.CNcETgxx.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/{14.B_Err-YM.js → 14.D45aaeoF.js} +1 -1
  87. package/build/client/_app/immutable/nodes/14.D45aaeoF.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/14.D45aaeoF.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/{15.1PcFIFZ6.js → 15.BeC_sH9Y.js} +1 -1
  90. package/build/client/_app/immutable/nodes/15.BeC_sH9Y.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/15.BeC_sH9Y.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/{16.CgtK_xkO.js → 16.CzLyGYG9.js} +1 -1
  93. package/build/client/_app/immutable/nodes/16.CzLyGYG9.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/16.CzLyGYG9.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/{17.BQxfvX3S.js → 17.BHPNPH8i.js} +1 -1
  96. package/build/client/_app/immutable/nodes/17.BHPNPH8i.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/17.BHPNPH8i.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/{19.Dxd8I8Tp.js → 19.D5AWgi46.js} +1 -1
  99. package/build/client/_app/immutable/nodes/19.D5AWgi46.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/19.D5AWgi46.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/2.D9LnprvD.js +25 -0
  102. package/build/client/_app/immutable/nodes/2.D9LnprvD.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/2.D9LnprvD.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/{20.DYaAa9CP.js → 20.Ds8FV7bT.js} +1 -1
  105. package/build/client/_app/immutable/nodes/20.Ds8FV7bT.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/20.Ds8FV7bT.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/{21.9uUpE64z.js → 21.D-_n5D6I.js} +1 -1
  108. package/build/client/_app/immutable/nodes/21.D-_n5D6I.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/21.D-_n5D6I.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/{22.DcPvaPFW.js → 22.Dvb0-l-Z.js} +1 -1
  111. package/build/client/_app/immutable/nodes/22.Dvb0-l-Z.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/22.Dvb0-l-Z.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/{23.BRDz0rFN.js → 23.CkYg9r5_.js} +1 -1
  114. package/build/client/_app/immutable/nodes/23.CkYg9r5_.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/23.CkYg9r5_.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/{24.BStaoFul.js → 24.BhEQq-vG.js} +1 -1
  117. package/build/client/_app/immutable/nodes/24.BhEQq-vG.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/24.BhEQq-vG.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/{25.BlmlFpt5.js → 25.B8eeSi6k.js} +1 -1
  120. package/build/client/_app/immutable/nodes/25.B8eeSi6k.js.br +0 -0
  121. package/build/client/_app/immutable/nodes/25.B8eeSi6k.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/{26.C4_nQTcn.js → 26.DOI4ga1U.js} +1 -1
  123. package/build/client/_app/immutable/nodes/26.DOI4ga1U.js.br +0 -0
  124. package/build/client/_app/immutable/nodes/26.DOI4ga1U.js.gz +0 -0
  125. package/build/client/_app/immutable/nodes/{28.CQY0WaJv.js → 28.Be9xcVGE.js} +1 -1
  126. package/build/client/_app/immutable/nodes/28.Be9xcVGE.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/28.Be9xcVGE.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/{3.DxySQdM7.js → 3.HO48O20f.js} +1 -1
  129. package/build/client/_app/immutable/nodes/3.HO48O20f.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/3.HO48O20f.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/{4.BjZ-CStr.js → 4.CviaWtQ7.js} +1 -1
  132. package/build/client/_app/immutable/nodes/4.CviaWtQ7.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/4.CviaWtQ7.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/{6.CDJqtSQa.js → 6.CaGWrOVU.js} +1 -1
  135. package/build/client/_app/immutable/nodes/6.CaGWrOVU.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/6.CaGWrOVU.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/{7.Cj9o22fB.js → 7.Uonnco-V.js} +1 -1
  138. package/build/client/_app/immutable/nodes/7.Uonnco-V.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/7.Uonnco-V.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/{8.BN9L31QZ.js → 8.hwuLwhy_.js} +1 -1
  141. package/build/client/_app/immutable/nodes/8.hwuLwhy_.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/8.hwuLwhy_.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/{9.CidVBUPU.js → 9.BsDB_kf_.js} +1 -1
  144. package/build/client/_app/immutable/nodes/9.BsDB_kf_.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/9.BsDB_kf_.js.gz +0 -0
  146. package/build/client/_app/version.json +1 -1
  147. package/build/client/_app/version.json.br +0 -0
  148. package/build/client/_app/version.json.gz +0 -0
  149. package/build/handler.js +4 -4
  150. package/build/index.js +4 -4
  151. package/build/server/chunks/chunks/{DecisionCard.js-BGiCJsY8.js → DecisionCard.js-DNJjQj6y.js} +23 -2
  152. package/build/server/chunks/chunks/{OpenDecision.js-DXWQXckD.js → OpenDecision.js-evqpdz3O.js} +2 -2
  153. package/build/server/chunks/chunks/{SlotContent.js-CyN_Ifyi.js → SlotContent.js-Dfh5Tmlb.js} +25 -11
  154. package/build/server/chunks/chunks/{decisionform.js-Cy0nUQ8l.js → decisionform.js-Ds5LU9Wh.js} +61 -2
  155. package/build/server/chunks/chunks/{detail.js-4QMxTp3B.js → detail.js-MTO7d0oZ.js} +2 -2
  156. package/build/server/chunks/chunks/{feedback.js-CGKliEXP.js → feedback.js-BcVOtfsi.js} +2 -2
  157. package/build/server/chunks/chunks/{insights.svelte.js-EX826idS.js → insights.svelte.js-BLHg5qc-.js} +4 -4
  158. package/build/server/chunks/chunks/{internal.js-D5XVe7pC.js → internal.js-B3jvxbpC.js} +3 -3
  159. package/build/server/chunks/chunks/{keychain.js-DBjGr5_S.js → keychain.js-fsxzS7dh.js} +2 -2
  160. package/build/server/chunks/chunks/{marketplace-service.js-z40kf_0h.js → marketplace-service.js-DIosJVMH.js} +2 -2
  161. package/build/server/chunks/chunks/{page.js-BXexw6ll.js → page.js-C30cD0Wp.js} +2 -2
  162. package/build/server/chunks/chunks/{previewhelper2.js-CDywcDnG.js → previewhelper2.js-bodEg9Jj.js} +2 -2
  163. package/build/server/chunks/chunks/{repo.js-UPu3kKmt.js → repo.js-He5oSLdW.js} +2 -2
  164. package/build/server/chunks/chunks/{runtime.js-BaL3oaQT.js → runtime.js-CFXY9khN.js} +173 -33
  165. package/build/server/chunks/chunks/{service.js-V5RheQmO.js → service.js-CMaRpVXw.js} +2 -2
  166. package/build/server/chunks/chunks/{service2.js-B4ps0Ctj.js → service2.js-DxTR_5ki.js} +3 -3
  167. package/build/server/chunks/chunks/{starter.js-CToN2q4C.js → starter.js-BEeKej_N.js} +2 -2
  168. package/build/server/chunks/chunks/{vault.js-DZFWbeCU.js → vault.js-kx-rYEM0.js} +5 -2
  169. package/build/server/chunks/chunks/{view.js-BhCZpcmS.js → view.js-BqciV_nu.js} +2 -2
  170. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-BfVnbEJi.js → _server.ts.js-DYk_zGmD.js} +5 -5
  171. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-gDIrdF8E.js → _server.ts.js-BZ5xAnps.js} +3 -3
  172. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-DGoN-Aq8.js → _server.ts.js-B1wMsqtV.js} +5 -5
  173. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-BhzdmLvA.js → _server.ts.js-B6yJINJv.js} +5 -5
  174. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CVlgrFXb.js → _server.ts.js-XkHjWwFF.js} +5 -5
  175. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-9aoy7ZF7.js → _server.ts.js-CSWXw2oP.js} +5 -5
  176. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CyT2Pbcp.js → _server.ts.js-DjUmuNfh.js} +5 -5
  177. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-Dnqm4dd6.js → _server.ts.js-fo49iwRo.js} +5 -5
  178. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-CavwYEx8.js → _server.ts.js-Ugm4xiSu.js} +5 -5
  179. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-GROjQZEh.js → _server.ts.js-qhSNM_-L.js} +5 -5
  180. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-BJip-5FK.js → _server.ts.js-BtpO3tEp.js} +5 -5
  181. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-CCBFlYKv.js → _server.ts.js-C-wEt7Gp.js} +5 -5
  182. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-DTIoU2q2.js → _server.ts.js-gJ_-WFJW.js} +5 -5
  183. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-DPoR4y_N.js → _server.ts.js-5vfw0icS.js} +5 -5
  184. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-t8tNxBTY.js → _server.ts.js-Dv0n3oCp.js} +5 -5
  185. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DMlSei-s.js → _server.ts.js-D1tixfXq.js} +5 -5
  186. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-tSLyvPFZ.js → _server.ts.js-oViIkbvM.js} +5 -5
  187. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-tTZENAI_.js → _server.ts.js-C-QStpbo.js} +5 -5
  188. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-Cx_L25-b.js → _server.ts.js-DhpVdO1p.js} +5 -5
  189. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-CPyIyXoH.js → _server.ts.js-DmdgYa9p.js} +5 -5
  190. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CXo4suaA.js → _server.ts.js-Dz22C5Oc.js} +5 -5
  191. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-D9RmtexN.js → _server.ts.js-DFZimBsr.js} +6 -6
  192. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-d8idtHxV.js → _server.ts.js-xQVDvaLL.js} +7 -7
  193. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-BtKPgMMX.js → _server.ts.js-vSP17Umu.js} +5 -5
  194. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DfVFlfmn.js → _server.ts.js-CRbLNZwV.js} +2 -2
  195. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-D_5qmDQj.js → _server.ts.js-NnSaW2ui.js} +5 -5
  196. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-Be52RhNi.js → _server.ts.js-B_bNv5Rb.js} +2 -2
  197. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CmpFGeGG.js → _server.ts.js-xDx3TswX.js} +5 -5
  198. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-yLFiI4pP.js → _server.ts.js-DXQjVykz.js} +2 -2
  199. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-CxgKx6i9.js → _server.ts.js-mFTzbdMz.js} +2 -2
  200. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-BU9lEbTp.js → _server.ts.js-CQwT7ZXd.js} +6 -6
  201. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-C0tLOukZ.js → _server.ts.js-BAO68cNk.js} +6 -6
  202. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-DPhrDKSA.js → _server.ts.js-CTJ1ub0U.js} +2 -2
  203. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-Bh9SYfJF.js → _server.ts.js-WdB3REaP.js} +5 -5
  204. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CQFR5-Fw.js → _server.ts.js-C9UD4jOU.js} +6 -6
  205. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-B39cZnfl.js → _server.ts.js-Dkij69tw.js} +6 -6
  206. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DF06LxEL.js → _server.ts.js-CeTvV9nP.js} +6 -6
  207. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-9xLTcS6U.js → _server.ts.js-COx2XJO9.js} +6 -6
  208. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-LwwnVgqR.js → _server.ts.js-ftRSLVkK.js} +6 -6
  209. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-DeYHHLdF.js → _server.ts.js-Bsx4lHpp.js} +6 -6
  210. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-9Q5rh-nV.js → _server.ts.js-BppnE5BC.js} +5 -5
  211. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-DGOWTcmR.js → _server.ts.js-Gqwhj3Jr.js} +5 -5
  212. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Dq1qaQm4.js → _server.ts.js-CbPpORog.js} +6 -6
  213. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-IhCd1sEN.js → _server.ts.js-DVip_Q6n.js} +5 -5
  214. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-4vgjPOMC.js → _server.ts.js-DnGmNxrE.js} +6 -6
  215. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-CLBgSJYk.js → _server.ts.js-zPPo2S2T.js} +5 -5
  216. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-DxYdVc46.js → _server.ts.js-Bx2c6dMt.js} +5 -5
  217. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-B8TvK9f-.js → _server.ts.js-BarbsV9y.js} +5 -5
  218. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-DsnLgqhv.js → _server.ts.js-D4DgKHLG.js} +5 -5
  219. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-ClpXR-UZ.js → _server.ts.js-I42PMQ4f.js} +6 -6
  220. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BI3HNCv5.js → _server.ts.js-Cpcb_-3s.js} +6 -9
  221. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Eu3LE6pk.js → _server.ts.js-Bt82w57y.js} +2 -2
  222. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-AQ1oWw8k.js → _server.ts.js-CBNLk0kR.js} +2 -2
  223. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CyR-bXgz.js → _server.ts.js-CAy-PnPf.js} +2 -2
  224. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Ct9DiA-K.js → _server.ts.js-DJsxRu_J.js} +5 -5
  225. package/build/server/chunks/entries/{hooks.server.js-B-w5pxTt.js → hooks.server.js-DP6V3oGk.js} +5 -5
  226. package/build/server/chunks/entries/pages/{_layout.server.ts.js-BMt02WMM.js → _layout.server.ts.js-bqdgxqy5.js} +4 -2
  227. package/build/server/chunks/entries/pages/{_page.server.ts.js-DwNm2toz.js → _page.server.ts.js-DmT_6LZz.js} +2 -2
  228. package/build/server/chunks/entries/pages/{_page.svelte.js-BtxV2jdf.js → _page.svelte.js-DFWU8yJc.js} +8 -8
  229. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-D-44hsr0.js → _page.server.ts.js-BdI5Bl75.js} +2 -2
  230. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BFheQ1G4.js → _page.server.ts.js-ZOYAnM_g.js} +2 -2
  231. package/build/server/chunks/entries/pages/deck/{_page.svelte.js-ByaF4X4f.js → _page.svelte.js-BE2e7Hyi.js} +7 -7
  232. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-BMzddleo.js → _page.server.ts.js-CWf8RxOy.js} +2 -2
  233. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-DmjUOiNJ.js → _page.server.ts.js-BTfsZht8.js} +2 -2
  234. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-C7rRpkZm.js → _page.server.ts.js-o_cuSwWH.js} +2 -2
  235. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-n2HUhlCl.js → _page.server.ts.js-DPqNxi58.js} +2 -2
  236. package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-NEaMeQr4.js → _page.svelte.js-BddxZY9X.js} +3 -3
  237. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-DDLSBK6u.js → _page.server.ts.js-NvhMRXin.js} +2 -2
  238. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.svelte.js-IxIvs80b.js → _page.svelte.js-BYHP64gx.js} +3 -3
  239. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-DXWoDip6.js → _page.server.ts.js-ZNFvlLOS.js} +3 -3
  240. package/build/server/chunks/entries/pages/projects/_id_/{_page.svelte.js-CZuOnAvk.js → _page.svelte.js-B9P8UZOd.js} +3 -3
  241. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-nPHleLS6.js → _page.server.ts.js-CIFxbd8n.js} +3 -3
  242. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.svelte.js-BiaWDy5c.js → _page.svelte.js-CcwDpwg7.js} +3 -3
  243. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-BbPQRuLV.js → _page.server.ts.js-CxzZpBL2.js} +4 -4
  244. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-Dxn5UA86.js → _page.server.ts.js-BIwdjBgl.js} +2 -2
  245. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-Bs11MPTR.js → _page.server.ts.js-C8KVdW_q.js} +2 -2
  246. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-C_FYYuua.js → _page.server.ts.js-Bdohjqlm.js} +2 -2
  247. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-BW2cUJKc.js → _page.server.ts.js-Et20xA2U.js} +2 -2
  248. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-D2t07ExQ.js → _page.server.ts.js-B8chH9Vi.js} +2 -2
  249. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-DLp30Ukw.js → _page.server.ts.js-DzzCMiD4.js} +2 -2
  250. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-BmL2mnpV.js → _page.server.ts.js-BfdXFrRT.js} +2 -2
  251. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DYuR0iKH.js → _page.server.ts.js-DVlBLn5S.js} +2 -2
  252. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DL17BAP4.js → _page.server.ts.js-D6jIgQJ4.js} +3 -3
  253. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DnxuSVns.js → _page.server.ts.js-Ux_kUFGa.js} +3 -3
  254. package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-DJJ0XJa2.js → _page.svelte.js-016yK-eG.js} +6 -6
  255. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-7MjU8ocn.js → _page.server.ts.js-2jI6Wnm5.js} +2 -2
  256. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-CkdUjMfH.js → _page.server.ts.js-Gz8g7Lxm.js} +2 -2
  257. package/build/server/chunks/{handler-Dvpbthxv.js → handler-BBfqHGlL.js} +3 -3
  258. package/build/server/chunks/{index.js-Xrzvi4-9.js → index.js-otQ83TL7.js} +2 -2
  259. package/build/server/chunks/{manifest.js-CFBVUirS.js → manifest.js-CwfU9jR_.js} +85 -85
  260. package/build/server/chunks/nodes/{0.js-xs6nMfls.js → 0.js-DY-FCb4h.js} +7 -7
  261. package/build/server/chunks/nodes/{1.js-D44sE2Qh.js → 1.js-C1gj4J7r.js} +2 -2
  262. package/build/server/chunks/nodes/{10.js-DKDSJpCU.js → 10.js-D8sF_M7G.js} +2 -2
  263. package/build/server/chunks/nodes/{11.js-BPuus2gN.js → 11.js-DGbnw6E-.js} +8 -8
  264. package/build/server/chunks/nodes/{12.js-3aQPHNvX.js → 12.js-yixeL-nb.js} +9 -9
  265. package/build/server/chunks/nodes/{13.js-gL8EHuM-.js → 13.js-CgHVwdU1.js} +9 -9
  266. package/build/server/chunks/nodes/{14.js-BYQRhe5N.js → 14.js-IMBVJfKF.js} +9 -9
  267. package/build/server/chunks/nodes/{15.js-Dqwr_Gqz.js → 15.js-Bn-Gtc7-.js} +8 -8
  268. package/build/server/chunks/nodes/{16.js-D3I5Ls7F.js → 16.js-CaZFpcDh.js} +6 -6
  269. package/build/server/chunks/nodes/{17.js-DzfLONnh.js → 17.js-BR4Pwbjy.js} +2 -2
  270. package/build/server/chunks/nodes/{19.js-Fwi2_4BB.js → 19.js-DTnGR4UX.js} +6 -6
  271. package/build/server/chunks/nodes/{2.js-oxG8p7dM.js → 2.js-DuZD1_ae.js} +8 -8
  272. package/build/server/chunks/nodes/{20.js-wR9uHTLT.js → 20.js-c7-2nU-p.js} +7 -7
  273. package/build/server/chunks/nodes/{21.js-C0wKxVsy.js → 21.js-Yv1PzkRI.js} +7 -7
  274. package/build/server/chunks/nodes/{22.js-BK5wsznE.js → 22.js-B_RyHclK.js} +7 -7
  275. package/build/server/chunks/nodes/{23.js-DIBFab3_.js → 23.js-BlDPhnR6.js} +8 -8
  276. package/build/server/chunks/nodes/{24.js-CJkXQqMe.js → 24.js-D7qarZq6.js} +4 -4
  277. package/build/server/chunks/nodes/{25.js-DjfBbASo.js → 25.js-BIbn9KYt.js} +8 -8
  278. package/build/server/chunks/nodes/{26.js-DohrkkWV.js → 26.js-D0_dD3EO.js} +9 -9
  279. package/build/server/chunks/nodes/{27.js-Y78p8Mkp.js → 27.js-B0p1due2.js} +7 -7
  280. package/build/server/chunks/nodes/{28.js-B9PS_kQT.js → 28.js-CRdgyvv_.js} +7 -7
  281. package/build/server/chunks/nodes/{3.js-C0Y4_J3H.js → 3.js-DKrxSrj9.js} +7 -7
  282. package/build/server/chunks/nodes/{4.js-g7Rvo_y_.js → 4.js-BRXw-v-L.js} +8 -8
  283. package/build/server/chunks/nodes/{5.js-BI6tJn-5.js → 5.js-C3ug9NBN.js} +6 -6
  284. package/build/server/chunks/nodes/{6.js-C91r2w4N.js → 6.js-BuWS4Z2-.js} +7 -7
  285. package/build/server/chunks/nodes/{7.js-DvHVz249.js → 7.js-BaxSjbK8.js} +7 -7
  286. package/build/server/chunks/nodes/{8.js-DkNCnJN3.js → 8.js-Cqzz53er.js} +8 -8
  287. package/build/server/chunks/nodes/{9.js-CtTaAH6h.js → 9.js-BGvUqMX3.js} +2 -2
  288. package/dist/cli.js +48 -1
  289. package/dist/wh-vault.js +573 -205
  290. package/package.json +1 -1
  291. package/plugins/vault/.wheelhouse-plugin/plugin.json +1 -1
  292. package/build/client/_app/immutable/chunks/10ROkIhN.js.br +0 -0
  293. package/build/client/_app/immutable/chunks/10ROkIhN.js.gz +0 -0
  294. package/build/client/_app/immutable/chunks/3bC4bjBI.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/3bC4bjBI.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/BibAhIE3.js.br +0 -0
  297. package/build/client/_app/immutable/chunks/BibAhIE3.js.gz +0 -0
  298. package/build/client/_app/immutable/chunks/BlJ-AbFb.js.br +0 -0
  299. package/build/client/_app/immutable/chunks/BlJ-AbFb.js.gz +0 -0
  300. package/build/client/_app/immutable/chunks/Bm0kgZn-.js +0 -3
  301. package/build/client/_app/immutable/chunks/Bm0kgZn-.js.br +0 -0
  302. package/build/client/_app/immutable/chunks/Bm0kgZn-.js.gz +0 -0
  303. package/build/client/_app/immutable/chunks/BrrBgLVG.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/BrrBgLVG.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/C9ed1vbc.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/C9ed1vbc.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/CEhBf-yV.js.br +0 -0
  308. package/build/client/_app/immutable/chunks/CEhBf-yV.js.gz +0 -0
  309. package/build/client/_app/immutable/chunks/CNKI0WqS.js.br +0 -0
  310. package/build/client/_app/immutable/chunks/CNKI0WqS.js.gz +0 -0
  311. package/build/client/_app/immutable/chunks/CR4i-JqL.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/CR4i-JqL.js.gz +0 -0
  313. package/build/client/_app/immutable/chunks/CRK1Q1tO.js.br +0 -0
  314. package/build/client/_app/immutable/chunks/CRK1Q1tO.js.gz +0 -0
  315. package/build/client/_app/immutable/chunks/CgxyeCeP.js.br +0 -0
  316. package/build/client/_app/immutable/chunks/CgxyeCeP.js.gz +0 -0
  317. package/build/client/_app/immutable/chunks/CzbTCvH8.js.br +0 -0
  318. package/build/client/_app/immutable/chunks/CzbTCvH8.js.gz +0 -0
  319. package/build/client/_app/immutable/chunks/D9coJX5q.js.br +0 -0
  320. package/build/client/_app/immutable/chunks/D9coJX5q.js.gz +0 -0
  321. package/build/client/_app/immutable/chunks/DHss7SEY.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/DMDL4MuU.js.br +0 -0
  323. package/build/client/_app/immutable/chunks/DMDL4MuU.js.gz +0 -0
  324. package/build/client/_app/immutable/chunks/Dk0_dSfe.js.br +0 -0
  325. package/build/client/_app/immutable/chunks/Dk0_dSfe.js.gz +0 -0
  326. package/build/client/_app/immutable/chunks/DrciKyih.js +0 -5
  327. package/build/client/_app/immutable/chunks/DrciKyih.js.br +0 -0
  328. package/build/client/_app/immutable/chunks/DrciKyih.js.gz +0 -0
  329. package/build/client/_app/immutable/chunks/Ns_iZj-K.js.br +0 -0
  330. package/build/client/_app/immutable/chunks/Ns_iZj-K.js.gz +0 -0
  331. package/build/client/_app/immutable/chunks/Om8BmhPE.js.br +0 -0
  332. package/build/client/_app/immutable/chunks/Om8BmhPE.js.gz +0 -0
  333. package/build/client/_app/immutable/entry/app.5tTdQ_02.js.br +0 -0
  334. package/build/client/_app/immutable/entry/app.5tTdQ_02.js.gz +0 -0
  335. package/build/client/_app/immutable/entry/start.C62i1LAH.js +0 -1
  336. package/build/client/_app/immutable/entry/start.C62i1LAH.js.br +0 -0
  337. package/build/client/_app/immutable/entry/start.C62i1LAH.js.gz +0 -0
  338. package/build/client/_app/immutable/nodes/0.nyx2R9Qf.js.br +0 -0
  339. package/build/client/_app/immutable/nodes/0.nyx2R9Qf.js.gz +0 -0
  340. package/build/client/_app/immutable/nodes/1.BkR_IPYS.js.br +0 -0
  341. package/build/client/_app/immutable/nodes/1.BkR_IPYS.js.gz +0 -0
  342. package/build/client/_app/immutable/nodes/10.BS87tv1l.js.br +0 -0
  343. package/build/client/_app/immutable/nodes/10.BS87tv1l.js.gz +0 -0
  344. package/build/client/_app/immutable/nodes/11.DddxDkJ4.js.br +0 -0
  345. package/build/client/_app/immutable/nodes/11.DddxDkJ4.js.gz +0 -0
  346. package/build/client/_app/immutable/nodes/12.C9qwM8Di.js.br +0 -0
  347. package/build/client/_app/immutable/nodes/12.C9qwM8Di.js.gz +0 -0
  348. package/build/client/_app/immutable/nodes/13.CAV9o7bd.js.br +0 -0
  349. package/build/client/_app/immutable/nodes/13.CAV9o7bd.js.gz +0 -0
  350. package/build/client/_app/immutable/nodes/14.B_Err-YM.js.br +0 -0
  351. package/build/client/_app/immutable/nodes/14.B_Err-YM.js.gz +0 -0
  352. package/build/client/_app/immutable/nodes/15.1PcFIFZ6.js.br +0 -0
  353. package/build/client/_app/immutable/nodes/15.1PcFIFZ6.js.gz +0 -0
  354. package/build/client/_app/immutable/nodes/16.CgtK_xkO.js.br +0 -0
  355. package/build/client/_app/immutable/nodes/16.CgtK_xkO.js.gz +0 -0
  356. package/build/client/_app/immutable/nodes/17.BQxfvX3S.js.br +0 -0
  357. package/build/client/_app/immutable/nodes/17.BQxfvX3S.js.gz +0 -0
  358. package/build/client/_app/immutable/nodes/19.Dxd8I8Tp.js.br +0 -0
  359. package/build/client/_app/immutable/nodes/19.Dxd8I8Tp.js.gz +0 -0
  360. package/build/client/_app/immutable/nodes/2.D4QEyk_4.js +0 -25
  361. package/build/client/_app/immutable/nodes/2.D4QEyk_4.js.br +0 -0
  362. package/build/client/_app/immutable/nodes/2.D4QEyk_4.js.gz +0 -0
  363. package/build/client/_app/immutable/nodes/20.DYaAa9CP.js.br +0 -0
  364. package/build/client/_app/immutable/nodes/20.DYaAa9CP.js.gz +0 -0
  365. package/build/client/_app/immutable/nodes/21.9uUpE64z.js.br +0 -0
  366. package/build/client/_app/immutable/nodes/21.9uUpE64z.js.gz +0 -0
  367. package/build/client/_app/immutable/nodes/22.DcPvaPFW.js.br +0 -0
  368. package/build/client/_app/immutable/nodes/22.DcPvaPFW.js.gz +0 -0
  369. package/build/client/_app/immutable/nodes/23.BRDz0rFN.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/23.BRDz0rFN.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/24.BStaoFul.js.br +0 -0
  372. package/build/client/_app/immutable/nodes/24.BStaoFul.js.gz +0 -0
  373. package/build/client/_app/immutable/nodes/25.BlmlFpt5.js.br +0 -0
  374. package/build/client/_app/immutable/nodes/25.BlmlFpt5.js.gz +0 -0
  375. package/build/client/_app/immutable/nodes/26.C4_nQTcn.js.br +0 -0
  376. package/build/client/_app/immutable/nodes/26.C4_nQTcn.js.gz +0 -0
  377. package/build/client/_app/immutable/nodes/28.CQY0WaJv.js.br +0 -0
  378. package/build/client/_app/immutable/nodes/28.CQY0WaJv.js.gz +0 -0
  379. package/build/client/_app/immutable/nodes/3.DxySQdM7.js.br +0 -0
  380. package/build/client/_app/immutable/nodes/3.DxySQdM7.js.gz +0 -0
  381. package/build/client/_app/immutable/nodes/4.BjZ-CStr.js.br +0 -0
  382. package/build/client/_app/immutable/nodes/4.BjZ-CStr.js.gz +0 -0
  383. package/build/client/_app/immutable/nodes/6.CDJqtSQa.js.br +0 -0
  384. package/build/client/_app/immutable/nodes/6.CDJqtSQa.js.gz +0 -0
  385. package/build/client/_app/immutable/nodes/7.Cj9o22fB.js.br +0 -0
  386. package/build/client/_app/immutable/nodes/7.Cj9o22fB.js.gz +0 -0
  387. package/build/client/_app/immutable/nodes/8.BN9L31QZ.js.br +0 -0
  388. package/build/client/_app/immutable/nodes/8.BN9L31QZ.js.gz +0 -0
  389. package/build/client/_app/immutable/nodes/9.CidVBUPU.js.br +0 -0
  390. package/build/client/_app/immutable/nodes/9.CidVBUPU.js.gz +0 -0
package/README.md CHANGED
@@ -106,7 +106,7 @@ Node.js 22 or newer, a Firstmate home (the setup wizard makes one), and `tmux` a
106
106
  ### Privacy and safety
107
107
 
108
108
  - Wheelhouse listens on `127.0.0.1` only and refuses requests from anywhere else.
109
- - Reaching Wheelhouse from Docker, a cloud workspace or another computer? A plugin such as [Localhost proxy](https://github.com/chrisjowen/localhost-proxy-wheelhouse) can open the crew's localhost previews and links through Wheelhouse's own port; see [Host routes and address rewrites](docs/plugins.md#host-routes-and-address-rewrites).
109
+ - Reaching Wheelhouse from Docker, a cloud workspace or another computer? A plugin such as [Localhost proxy](https://github.com/chrisjowen/localhost-proxy-wheelhouse) can open the crew's localhost previews and links through Wheelhouse's own port; see [Host routes and address rewrites](docs/plugins.md#host-routes-and-address-rewrites). In a hosted dev environment (Ona/Gitpod, GitHub Codespaces, or any host whose ports have URLs of their own, with `--preview-url`), Wheelhouse opens them at the environment's own URL for their port; see [Wheelhouse in a hosted dev environment](docs/guide.md#wheelhouse-in-a-hosted-dev-environment).
110
110
  - Everything you type goes to Firstmate; Wheelhouse never stops, reconfigures or bypasses it.
111
111
  - Dictation (Ctrl/⌘+Shift+Space, hold for push-to-talk) uses the browser's built-in speech recognition. The microphone is on only while you dictate; in Chrome and Edge your voice goes to the browser maker's speech service (Google, in Chrome). Wheelhouse never records or stores audio, and says so before first use.
112
112
  - [Wheelhouse Cloud](docs/guide.md#wheelhouse-cloud) lets you use this Wheelhouse from any browser through a hosted gateway (`https://cloud.chrisjowen.net` by default, or your own): it is off until you press **Start** on the **Remotes** page, and the machine dials out, keeps its key, and relays only to Wheelhouse and its previews.
@@ -120,7 +120,7 @@ Node.js 22 or newer, a Firstmate home (the setup wizard makes one), and `tmux` a
120
120
  - **Passage** checks that run a command stay off until you allow exactly those commands.
121
121
  - **Shared reviews** (a bundled plugin, off until you turn it on) put a prototype or a worker's live app behind sign-in for several people to comment on the spot they mean; closing the review takes the link down and sends the comment threads the captain picks to Firstmate as one note for the task's worker, either as they are or tidied by the preview helper into points the captain edits and picks first (the comments stay in the review's bundle). Reviews start as local previews, and go live only on a review server you deploy and name in its settings; see [Shared review](plugins/shared-review/README.md).
122
122
  - **Improvements** needs improve's Wheelhouse plugin: `wheelhouse plugin install chrisjowen/improve`.
123
- - **Secrets** reach the crew by name with `wh-vault`, installed alongside `wheelhouse`: values stay in the macOS login Keychain, and `wh-vault run -- <command>` gives one command its project's granted secrets. The **Vault** page shows names, grants and use, never a value, and is where you add secrets and choose which projects may use each; the key button under the Firstmate chat adds one too. Grants limit accidents and prompt injection, not a worker set on getting a secret.
123
+ - **Secrets** reach the crew by name with `wh-vault`, installed alongside `wheelhouse`: values stay in the macOS login Keychain (on Linux, the login keyring, or an env file you opt in to), and `wh-vault run -- <command>` gives one command its project's granted secrets. The **Vault** page shows names, grants and use, never a value, and is where you add secrets and choose which projects may use each; the key button under the Firstmate chat adds one too. Grants limit accidents and prompt injection, not a worker set on getting a secret.
124
124
 
125
125
  ### Learn more
126
126
 
@@ -1 +1 @@
1
- import{m as h,g as c,v as d,q as g}from"./DFFTcnMk.js";import{p}from"./DMDL4MuU.js";const y=5e3,v=3e3;function w(m,e,a){let r="connecting",n=null,t=null,s=null;const l=i=>{r=i,a(i)},u=()=>{t&&clearTimeout(t),t=null,l("lost")},o=()=>{s=null;const i=new EventSource(m);n=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),u(),s??=setTimeout(o,v);return}r!=="lost"&&l("connecting"),t??=setTimeout(u,y)}),e(i)};return o(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),n?.close(),n=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",A=2*6e4;class T{#e=h(null);get fleet(){return c(this.#e)}set fleet(e){d(this.#e,e,!0)}#t=h(null);get health(){return c(this.#t)}set health(e){d(this.#t,e,!0)}#s=h(null);get messages(){return c(this.#s)}set messages(e){d(this.#s,e,!0)}#a=h("connecting");get connection(){return c(this.#a)}set connection(e){d(this.#a,e,!0)}#n=h(g(Date.now()));get now(){return c(this.#n)}set now(e){d(this.#n,e,!0)}#r=h(0);get revision(){return c(this.#r)}set revision(e){d(this.#r,e,!0)}#l=h(!1);get leader(){return c(this.#l)}set leader(e){d(this.#l,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),r=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),r(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=n=>{const t=n.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const a=new AbortController;let r=()=>{};return navigator.locks.request(S,{signal:a.signal},()=>{const n=this.lead();return new Promise(t=>{r=()=>{n(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),r(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=n=>{this.connection=n,this.post({t:"connection",state:n})},r=w("/api/events",n=>{const t=(s,l)=>n.addEventListener(s,u=>{const o=l(JSON.parse(u.data));this.remember(o),this.apply(o),this.post({t:"event",e:o}),o.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const u=this.claim(l);return{alert:l,fresh:u&&Date.now()-Date.parse(l.at)<=A}})}))},e);return()=>{r(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const r of this.restartListeners)r();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new T;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}export{M as a,C as b,k as c,f as l,w};
1
+ import{m as h,g as c,v as d,q as g}from"./DFFTcnMk.js";import{p}from"./Mzyfuo21.js";const y=5e3,v=3e3;function w(m,e,a){let r="connecting",n=null,t=null,s=null;const l=i=>{r=i,a(i)},u=()=>{t&&clearTimeout(t),t=null,l("lost")},o=()=>{s=null;const i=new EventSource(m);n=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),u(),s??=setTimeout(o,v);return}r!=="lost"&&l("connecting"),t??=setTimeout(u,y)}),e(i)};return o(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),n?.close(),n=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",A=2*6e4;class T{#e=h(null);get fleet(){return c(this.#e)}set fleet(e){d(this.#e,e,!0)}#t=h(null);get health(){return c(this.#t)}set health(e){d(this.#t,e,!0)}#s=h(null);get messages(){return c(this.#s)}set messages(e){d(this.#s,e,!0)}#a=h("connecting");get connection(){return c(this.#a)}set connection(e){d(this.#a,e,!0)}#n=h(g(Date.now()));get now(){return c(this.#n)}set now(e){d(this.#n,e,!0)}#r=h(0);get revision(){return c(this.#r)}set revision(e){d(this.#r,e,!0)}#l=h(!1);get leader(){return c(this.#l)}set leader(e){d(this.#l,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),r=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),r(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=n=>{const t=n.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const a=new AbortController;let r=()=>{};return navigator.locks.request(S,{signal:a.signal},()=>{const n=this.lead();return new Promise(t=>{r=()=>{n(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),r(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=n=>{this.connection=n,this.post({t:"connection",state:n})},r=w("/api/events",n=>{const t=(s,l)=>n.addEventListener(s,u=>{const o=l(JSON.parse(u.data));this.remember(o),this.apply(o),this.post({t:"event",e:o}),o.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const u=this.claim(l);return{alert:l,fresh:u&&Date.now()-Date.parse(l.at)<=A}})}))},e);return()=>{r(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const r of this.restartListeners)r();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new T;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}export{M as a,C as b,k as c,f as l,w};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{i as n}from"./hKkTZgiP.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./DFFTcnMk.js";import{e as _,s as f}from"./VI4uBLfk.js";import{p as d}from"./DMDL4MuU.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
1
+ import"./DsnmJJEf.js";import{i as n}from"./hKkTZgiP.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./DFFTcnMk.js";import{e as _,s as f}from"./VI4uBLfk.js";import{p as d}from"./Mzyfuo21.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./DtxmqMMR.js";import{I as Te}from"./CDH1GGn5.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./DFFTcnMk.js";import{i as X}from"./fxwDaXQ6.js";import{s as V,d as Ce,a as te,e as Se}from"./VI4uBLfk.js";import{b as re}from"./C_YTgp31.js";import{c as fe,m as Me}from"./DKQe4Tss.js";import{e as Le,l as ee,c as ae}from"./BlJ-AbFb.js";import{b as ce,a as Oe}from"./Om8BmhPE.js";import{S as me}from"./B94WFLDK.js";import{X as Ne}from"./szetP8fm.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
1
+ import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./DtxmqMMR.js";import{I as Te}from"./CDH1GGn5.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./DFFTcnMk.js";import{i as X}from"./fxwDaXQ6.js";import{s as V,d as Ce,a as te,e as Se}from"./VI4uBLfk.js";import{b as re}from"./C_YTgp31.js";import{c as fe,m as Me}from"./DKQe4Tss.js";import{e as Le,l as ee,c as ae}from"./BSRqsJCa.js";import{b as ce,a as Oe}from"./kdhJpKON.js";import{S as me}from"./B94WFLDK.js";import{X as Ne}from"./szetP8fm.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
2
2
  `)]),c(b,j)},_e=b=>{var j=Ue(),Y=k(j);{var $=L=>{var Q=U("Could not reach the Wheelhouse server.");c(L,Q)},q=L=>{var Q=U("Reading the worker’s terminal…");c(L,Q)},be=L=>{var Q=U();z(()=>w(Q,e(t).reason)),c(L,Q)},we=L=>{var Q=U("The terminal is empty.");c(L,Q)};X(Y,L=>{e(E)?L($):e(t)?e(t).available?L(we,-1):L(be,2):L(q,1)})}y(j),c(b,j)};X(M,b=>{e(P).length?b(ge):b(_e,-1)})}y(i),re(i,b=>_(s,b),()=>e(s)),y(h),z(b=>{w(W,a.task.shortTitle),w(B,`· live console, read-only${b??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",A,()=>n(!1)),le("scroll",i,G),ce(i,"clientWidth",b=>_(x,b)),ce(i,"clientHeight",b=>_(C,b)),c(v,h)};X(J,v=>{n()&&v(K)})}y(I),re(I,v=>_(o,v),()=>e(o)),z(()=>{V(I,"aria-label",`${a.task.shortTitle??""}: live console`),V(I,"data-console-fullscreen",a.task.id)}),le("close",I,()=>{ee(document.documentElement),n(!1)}),c(r,I),ue()}se(["click"]);var Je=T('<pre class="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3 py-2 font-mono text-xs leading-[1.45] whitespace-pre max-md:[overflow-wrap:anywhere] max-md:whitespace-pre-wrap" aria-label="Latest lines of the worker’s terminal"> </pre>'),Ke=T('<p class="grid flex-1 place-items-center px-4 text-center text-xs text-terminal-foreground/60"><!></p>'),Ye=T('<div><button type="button" class="absolute inset-0 z-10 rounded-[inherit] focus-visible:ring-3 focus-visible:ring-ring/60 focus-visible:outline-none" title="Open full screen"></button> <div class="flex items-center gap-1.5 border-b border-terminal-foreground/10 px-3 py-1.5 text-xs text-terminal-foreground/60"><!> <span class="max-md:whitespace-nowrap">Live console</span> <span class="ml-auto max-md:min-w-0 max-md:truncate"> </span> <!></div> <!></div> <!>',1);function gt(r,a){de(a,!0);let n=Z(a,"lines",3,12),d=Z(a,"class",3,"");const u=24;let o=O(null),s=O(!1),t=O(null),E=O(!1),x=O(!1);D(()=>{if(!e(o))return;const l=new IntersectionObserver(([p])=>_(s,p.isIntersecting,!0),{rootMargin:"100px"});return l.observe(e(o)),()=>l.disconnect()}),D(()=>{if(!(!e(s)||ae.open>0))return xe(a.task.id,n()+u,pe.window,{onresult:l=>{_(t,l,!0),_(E,!1)},onerror:()=>_(E,!0)})}),D(()=>{a.onsample?.(e(t)?.available&&e(t).lines.length?{line:Me(e(t).lines),capturedAt:e(t).capturedAt}:null)});var C=Ye(),m=ve(C),H=k(m),P=g(H,2),R=k(P);me(R,{class:"size-3","aria-hidden":"true"});var G=g(R,4),I=N(G),J=g(G,2);Oe(J,{class:"size-3.5 text-terminal-foreground/60 transition-colors group-hover/console:text-terminal-foreground","aria-hidden":"true"}),y(P);var K=g(P,2);{var v=l=>{var p=Je(),W=N(p,!0);z(S=>w(W,S),[()=>e(t).lines.slice(-n()).join(`
3
3
  `)]),c(l,p)},h=l=>{var p=Ke(),W=k(p);{var S=i=>{var M=U("Could not reach the Wheelhouse server.");c(i,M)},B=i=>{var M=U("Reading the worker’s terminal…");c(i,M)},A=i=>{var M=U();z(()=>w(M,e(t).reason)),c(i,M)},F=i=>{var M=U("The terminal is empty.");c(i,M)};X(W,i=>{e(E)?i(S):e(t)?e(t).available?i(F,-1):i(A,2):i(B,1)})}y(p),c(l,p)};X(K,l=>{e(t)?.available&&e(t).lines.length?l(v):l(h,-1)})}y(m),re(m,l=>_(o,l),()=>e(o));var f=g(m,2);Be(f,{get task(){return a.task},get open(){return e(x)},set open(l){_(x,l,!0)}}),z(l=>{te(m,1,`group/console relative z-10 flex aspect-[16/10] flex-col overflow-hidden rounded-sm border bg-terminal text-terminal-foreground ${d()??""}`),V(m,"data-console",a.task.id),V(H,"aria-label",`Open ${a.task.shortTitle??""}’s live console full screen`),w(I,`read-only${l??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",H,()=>_(x,!0)),c(r,C),ue()}se(["click"]);var Ze=T('<p class="mt-1.5 leading-relaxed whitespace-pre-line text-muted-foreground" data-question-detail=""> </p>'),$e=T('<!> <button type="button" class="touch-target mt-1 text-xs text-muted-foreground hover:text-foreground hover:underline"> </button>',1),qe=T('<p class="mt-0.5 leading-relaxed"> </p>'),et=T('<div class="mt-2 border-l-2 border-brass/60 pl-2.5" data-question-call=""><p class="text-xs text-muted-foreground">Firstmate decided: <span class="font-medium text-foreground"> </span></p> <!></div>'),tt=T('<li><div class="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1"><p class="text-xs text-muted-foreground"> </p> <span> </span></div> <p class="mt-1 leading-relaxed"> </p> <!> <!></li>'),rt=T('<ol class="space-y-2" data-questions=""></ol>');function _t(r,a){let n=Z(a,"size",3,"page"),d=Ee({});const u={waiting:{label:"Waiting on Firstmate",class:"bg-warning/10 text-warning"},answered:{label:"Answered",class:"bg-success/10 text-success"},closed:{label:"Closed without an answer",class:"bg-muted text-muted-foreground"}};var o=rt();Se(o,23,()=>a.questions,s=>s.id,(s,t,E)=>{var x=tt(),C=k(x),m=k(C),H=N(m),P=g(m,2),R=N(P,!0);y(C);var G=g(C,2),I=N(G,!0),J=g(G,2);{var K=f=>{var l=$e(),p=ve(l);{var W=A=>{var F=Ze(),i=N(F,!0);z(()=>w(i,e(t).detail)),c(A,F)};X(p,A=>{d[e(t).id]&&A(W)})}var S=g(p,2),B=N(S,!0);z(()=>{V(S,"aria-expanded",!!d[e(t).id]),w(B,d[e(t).id]?"Show less":"Show the whole question")}),ne("click",S,()=>d[e(t).id]=!d[e(t).id]),c(f,l)};X(J,f=>{e(t).detail&&f(K)})}var v=g(J,2);{var h=f=>{var l=et(),p=k(l),W=g(k(p)),S=N(W,!0);y(p);var B=g(p,2);{var A=F=>{var i=qe(),M=N(i,!0);z(()=>w(M,e(t).reason)),c(F,i)};X(B,F=>{e(t).reason&&F(A)})}y(l),z(()=>w(S,e(t).verdict)),c(f,l)};X(v,f=>{e(t).verdict&&f(h)})}y(x),z(()=>{te(x,1,`rounded-md border border-hair bg-card ${n()==="card"?"px-2.5 py-2 text-xs":"px-3 py-2.5 text-sm"}`),V(x,"data-question",e(t).status),w(H,`Question ${e(E)+1}${e(t).where?` · ${e(t).where}`:""}${e(t).serious?" · marked serious":""}`),te(P,1,`rounded-full px-2 py-0.5 text-xs font-medium ${u[e(t).status].class??""}`),w(R,u[e(t).status].label),w(I,e(t).summary)}),c(s,x)}),y(o),c(r,o)}se(["click"]);export{gt as C,pt as I,_t as Q,ht as a,xt as r,Fe as s};
@@ -0,0 +1,2 @@
1
+ import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./DFFTcnMk.js";import{i as P}from"./fxwDaXQ6.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./VI4uBLfk.js";import{a as yt}from"./DJKfepuw.js";import{p as Ze}from"./Mzyfuo21.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./I9e8Fl7s.js";import{L as wt,K as He}from"./IpTBlU5z.js";import{C as kt}from"./BJ22bl3x.js";import{s as jt,r as St}from"./DtxmqMMR.js";import{I as zt}from"./CDH1GGn5.js";import{E as At}from"./KzJrxDZe.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),Lt=p('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),Bt=p('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Xt=p('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),ra=p('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),sa=p('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
2
+ shows one.`),[()=>Ne(e(le))]),l(C,De),_t()}vt(["input","click","change"]);const ya={"vault/overview":na};export{ya as P,Tt as S,Ct as a,ba as b,ha as e,Ne as s};
@@ -1,2 +1,2 @@
1
- import"./DsnmJJEf.js";import{aF as ke,p as O,j as W,f as _,a as d,b as F,g as E,h as D,aa as Z,r as y,i as N,c as x,s as n,n as oe,w as je,o as b,t as B,d as p}from"./DFFTcnMk.js";import{s as M}from"./B9PwX1FR.js";import{i as S}from"./fxwDaXQ6.js";import{c as I}from"./CTO6Jnxr.js";import{p as P,r as T,s as A}from"./DtxmqMMR.js";import{B as fe}from"./I9e8Fl7s.js";import{c as X}from"./BY173wTD.js";import{c as Ce,d as Be,b as ce,m as ze,P as Ie,e as Ae,a as ge,f as We,g as Oe,h as Fe}from"./BaVXUP2t.js";import{X as Te}from"./szetP8fm.js";import{l as ne,s as Ee,e as Re}from"./VI4uBLfk.js";import{b as me}from"./C_YTgp31.js";import{f as Ue,S as qe}from"./CzbTCvH8.js";import{T as Ke}from"./CxBx2YtS.js";var Ne=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Xe=x("<div><!></div>");function Ge(s,e){const a=ke();O(e,!0);let v=P(e,"id",19,()=>Ce(a)),o=P(e,"ref",15,null),l=T(e,Ne);const i=Be.create({id:ce(()=>v()),ref:ce(()=>o(),h=>o(h))}),u=N(()=>ze(l,i.props));var f=W(),c=_(f);{var C=h=>{var m=W(),k=_(m);M(k,()=>e.child,()=>({props:E(u)})),d(h,m)},z=h=>{var m=Xe();ne(m,()=>({...E(u)}));var k=D(m);M(k,()=>e.children??Z),y(m),d(h,m)};S(c,h=>{e.child?h(C):h(z,-1)})}d(s,f),F()}var He=new Set(["$$slots","$$events","$$legacy"]);function Je(s,e){let a=T(e,He);var v=W(),o=_(v);I(o,()=>Ie,(l,i)=>{i(l,A(()=>a))}),d(s,v)}var Le=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]),Me=x('<!> <span class="sr-only">Close</span>',1),ue=x("<!> <!>",1);function Bt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=P(e,"showCloseButton",3,!0),o=T(e,Le);Je(s,A(()=>e.portalProps,{children:(l,i)=>{var u=ue(),f=_(u);I(f,()=>tt,(C,z)=>{z(C,{})});var c=n(f,2);{let C=N(()=>X("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e.class));I(c,()=>Ae,(z,h)=>{h(z,A({"data-slot":"dialog-content",get class(){return E(C)}},()=>o,{get ref(){return a()},set ref(m){a(m)},children:(m,k)=>{var U=ue(),q=_(U);M(q,()=>e.children??Z);var G=n(q,2);{var H=R=>{var J=W(),$=_(J);{const ee=(K,L)=>{fe(K,A({variant:"ghost",class:"absolute top-4 right-4",size:"icon-sm"},()=>(L?.()).props,{children:(re,ae)=>{var Q=Me(),V=_(Q);Te(V,{}),oe(2),d(re,Q)},$$slots:{default:!0}}))};I($,()=>ge,(K,L)=>{L(K,{"data-slot":"dialog-close",child:ee,$$slots:{child:!0}})})}d(R,J)};S(G,R=>{v()&&R(H)})}d(m,U)},$$slots:{default:!0}}))})}d(l,u)},$$slots:{default:!0}})),F()}var Qe=new Set(["$$slots","$$events","$$legacy","ref","class"]);function zt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,Qe);var o=W(),l=_(o);{let i=N(()=>X("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e.class));I(l,()=>Ge,(u,f)=>{f(u,A({"data-slot":"dialog-description",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(c){a(c)}}))})}d(s,o),F()}var Ve=new Set(["$$slots","$$events","$$legacy","ref","class","children","showCloseButton"]),Ye=x("<div><!> <!></div>");function It(s,e){O(e,!0);let a=P(e,"ref",15,null),v=P(e,"showCloseButton",3,!1),o=T(e,Ve);var l=Ye();ne(l,c=>({"data-slot":"dialog-footer",class:c,...o}),[()=>X("flex flex-col-reverse gap-2 gap-2 sm:flex-row sm:justify-end",e.class)]);var i=D(l);M(i,()=>e.children??Z);var u=n(i,2);{var f=c=>{var C=W(),z=_(C);{const h=(m,k)=>{fe(m,A({variant:"outline"},()=>(k?.()).props,{children:(q,G)=>{oe();var H=je("Close");d(q,H)},$$slots:{default:!0}}))};I(z,()=>ge,(m,k)=>{k(m,{child:h,$$slots:{child:!0}})})}d(c,C)};S(u,c=>{v()&&c(f)})}y(l),me(l,c=>a(c),()=>a()),d(s,l),F()}var Ze=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),$e=x("<div><!></div>");function At(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,Ze);var o=$e();ne(o,i=>({"data-slot":"dialog-header",class:i,...v}),[()=>X("flex flex-col gap-2",e.class)]);var l=D(o);M(l,()=>e.children??Z),y(o),me(o,i=>a(i),()=>a()),d(s,o),F()}var et=new Set(["$$slots","$$events","$$legacy","ref","class"]);function tt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,et);var o=W(),l=_(o);{let i=N(()=>X("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e.class));I(l,()=>We,(u,f)=>{f(u,A({"data-slot":"dialog-overlay",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(c){a(c)}}))})}d(s,o),F()}var rt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Wt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,rt);var o=W(),l=_(o);{let i=N(()=>X("leading-none font-medium",e.class));I(l,()=>Oe,(u,f)=>{f(u,A({"data-slot":"dialog-title",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(c){a(c)}}))})}d(s,o),F()}var at=new Set(["$$slots","$$events","$$legacy","open"]);function Ot(s,e){O(e,!0);let a=P(e,"open",15,!1),v=T(e,at);var o=W(),l=_(o);I(l,()=>Fe,(i,u)=>{u(i,A(()=>v,{get open(){return a()},set open(f){a(f)}}))}),d(s,o),F()}const de=s=>s.installed?s.settings.filter(e=>e.current===void 0):s.settings,Ft=s=>Object.fromEntries(de(s).map(e=>[e.key,Ue(e.current??e.default)])),Tt=(s,e)=>de(s).find(a=>a.required&&!e[a.key]?.trim())??null,Et=s=>Object.fromEntries(Object.entries(s).filter(([,e])=>e.trim()!==""));var st=x('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),ot=x('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),nt=x('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),dt=x('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),lt=x('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),it=x('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),vt=x('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),ct=x('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),ut=x("<li> </li>"),ft=x('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),gt=x('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Rt(s,e){O(e,!0);let a=P(e,"answers",15),v=P(e,"busy",19,()=>[]);const o=N(()=>de(e.preview)),l=t=>t.slice(0,12);var i=gt(),u=D(i),f=D(u),c=D(f),C=n(c),z=b(C);y(f);var h=n(f,2);{var m=t=>{var r=st(),g=b(r,!0);B(()=>p(g,e.preview.description)),d(t,r)};S(h,t=>{e.preview.description&&t(m)})}var k=n(h,2),U=n(D(k),2),q=b(U),G=n(U,2);{var H=t=>{var r=ot(),g=n(_(r),2),w=b(g);B(j=>p(w,`${e.preview.installed.version??""} · ${j??""}`),[()=>l(e.preview.installed.commit)]),d(t,r)};S(G,t=>{e.preview.installed&&t(H)})}var R=n(G,4),J=D(R),$=n(J);{var ee=t=>{var r=nt(),g=n(D(r));y(r),B(()=>Ee(g,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),d(t,r)};S($,t=>{e.preview.installed&&t(ee)})}y(R);var K=n(R,2);{var L=t=>{var r=dt(),g=n(_(r),2),w=b(g,!0);B(()=>p(w,e.preview.author)),d(t,r)};S(K,t=>{e.preview.author&&t(L)})}var te=n(K,4),re=b(te),ae=n(te,2);{var Q=t=>{var r=lt(),g=n(_(r),2),w=b(g,!0);B(j=>p(w,j),[()=>e.preview.services.join(", ")]),d(t,r)};S(ae,t=>{e.preview.services.length&&t(Q)})}var V=n(ae,2);{var _e=t=>{var r=it(),g=n(_(r),2),w=b(g,!0);B(j=>p(w,j),[()=>e.preview.addresses.join("; ")]),d(t,r)};S(V,t=>{e.preview.addresses?.length&&t(_e)})}var le=n(V,2);{var xe=t=>{var r=vt(),g=n(_(r),2),w=b(g,!0);B(j=>p(w,j),[()=>e.preview.capabilities.join("; ")]),d(t,r)};S(le,t=>{e.preview.capabilities?.length&&t(xe)})}var he=n(le,4),we=b(he,!0);y(k),y(u);var ie=n(u,2);{var pe=t=>{var r=ct(),g=D(r),w=b(g,!0),j=n(g,2);qe(j,{get settings(){return E(o)},get answers(){return a()},set answers(Y){a(Y)}}),oe(2),y(r),B(()=>p(w,e.preview.installed?"Its new settings":"Its settings")),d(t,r)};S(ie,t=>{E(o).length&&t(pe)})}var se=n(ie,2),ve=D(se);Ke(ve,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var be=n(ve,2),ye=b(be);y(se);var Pe=n(se,2);{var De=t=>{var r=ft(),g=n(D(r));Re(g,20,v,w=>w,(w,j)=>{var Y=ut(),Se=b(Y,!0);B(()=>p(Se,j)),d(w,Y)}),y(g),y(r),d(t,r)};S(Pe,t=>{v().length&&t(De)})}y(i),B((t,r)=>{p(c,`${e.preview.name??""} `),p(z,`${e.preview.id??""} ${e.preview.version??""}`),p(q,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),p(J,`${t??""} `),p(re,`${r??""}${e.preview.ui?"; a UI bundle":""}`),p(we,e.preview.on),p(ye,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
1
+ import"./DsnmJJEf.js";import{aF as ke,p as O,j as W,f as _,a as d,b as F,g as E,h as D,aa as Z,r as y,i as N,c as x,s as n,n as oe,w as je,o as b,t as B,d as p}from"./DFFTcnMk.js";import{s as M}from"./B9PwX1FR.js";import{i as S}from"./fxwDaXQ6.js";import{c as I}from"./CTO6Jnxr.js";import{p as P,r as T,s as A}from"./DtxmqMMR.js";import{B as fe}from"./I9e8Fl7s.js";import{c as X}from"./BY173wTD.js";import{c as Ce,d as Be,b as ce,m as ze,P as Ie,e as Ae,a as ge,f as We,g as Oe,h as Fe}from"./BaVXUP2t.js";import{X as Te}from"./szetP8fm.js";import{l as ne,s as Ee,e as Re}from"./VI4uBLfk.js";import{b as me}from"./C_YTgp31.js";import{f as Ue,S as qe}from"./BveXuSek.js";import{T as Ke}from"./CxBx2YtS.js";var Ne=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Xe=x("<div><!></div>");function Ge(s,e){const a=ke();O(e,!0);let v=P(e,"id",19,()=>Ce(a)),o=P(e,"ref",15,null),l=T(e,Ne);const i=Be.create({id:ce(()=>v()),ref:ce(()=>o(),h=>o(h))}),u=N(()=>ze(l,i.props));var f=W(),c=_(f);{var C=h=>{var m=W(),k=_(m);M(k,()=>e.child,()=>({props:E(u)})),d(h,m)},z=h=>{var m=Xe();ne(m,()=>({...E(u)}));var k=D(m);M(k,()=>e.children??Z),y(m),d(h,m)};S(c,h=>{e.child?h(C):h(z,-1)})}d(s,f),F()}var He=new Set(["$$slots","$$events","$$legacy"]);function Je(s,e){let a=T(e,He);var v=W(),o=_(v);I(o,()=>Ie,(l,i)=>{i(l,A(()=>a))}),d(s,v)}var Le=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]),Me=x('<!> <span class="sr-only">Close</span>',1),ue=x("<!> <!>",1);function Bt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=P(e,"showCloseButton",3,!0),o=T(e,Le);Je(s,A(()=>e.portalProps,{children:(l,i)=>{var u=ue(),f=_(u);I(f,()=>tt,(C,z)=>{z(C,{})});var c=n(f,2);{let C=N(()=>X("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e.class));I(c,()=>Ae,(z,h)=>{h(z,A({"data-slot":"dialog-content",get class(){return E(C)}},()=>o,{get ref(){return a()},set ref(m){a(m)},children:(m,k)=>{var U=ue(),q=_(U);M(q,()=>e.children??Z);var G=n(q,2);{var H=R=>{var J=W(),$=_(J);{const ee=(K,L)=>{fe(K,A({variant:"ghost",class:"absolute top-4 right-4",size:"icon-sm"},()=>(L?.()).props,{children:(re,ae)=>{var Q=Me(),V=_(Q);Te(V,{}),oe(2),d(re,Q)},$$slots:{default:!0}}))};I($,()=>ge,(K,L)=>{L(K,{"data-slot":"dialog-close",child:ee,$$slots:{child:!0}})})}d(R,J)};S(G,R=>{v()&&R(H)})}d(m,U)},$$slots:{default:!0}}))})}d(l,u)},$$slots:{default:!0}})),F()}var Qe=new Set(["$$slots","$$events","$$legacy","ref","class"]);function zt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,Qe);var o=W(),l=_(o);{let i=N(()=>X("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e.class));I(l,()=>Ge,(u,f)=>{f(u,A({"data-slot":"dialog-description",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(c){a(c)}}))})}d(s,o),F()}var Ve=new Set(["$$slots","$$events","$$legacy","ref","class","children","showCloseButton"]),Ye=x("<div><!> <!></div>");function It(s,e){O(e,!0);let a=P(e,"ref",15,null),v=P(e,"showCloseButton",3,!1),o=T(e,Ve);var l=Ye();ne(l,c=>({"data-slot":"dialog-footer",class:c,...o}),[()=>X("flex flex-col-reverse gap-2 gap-2 sm:flex-row sm:justify-end",e.class)]);var i=D(l);M(i,()=>e.children??Z);var u=n(i,2);{var f=c=>{var C=W(),z=_(C);{const h=(m,k)=>{fe(m,A({variant:"outline"},()=>(k?.()).props,{children:(q,G)=>{oe();var H=je("Close");d(q,H)},$$slots:{default:!0}}))};I(z,()=>ge,(m,k)=>{k(m,{child:h,$$slots:{child:!0}})})}d(c,C)};S(u,c=>{v()&&c(f)})}y(l),me(l,c=>a(c),()=>a()),d(s,l),F()}var Ze=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),$e=x("<div><!></div>");function At(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,Ze);var o=$e();ne(o,i=>({"data-slot":"dialog-header",class:i,...v}),[()=>X("flex flex-col gap-2",e.class)]);var l=D(o);M(l,()=>e.children??Z),y(o),me(o,i=>a(i),()=>a()),d(s,o),F()}var et=new Set(["$$slots","$$events","$$legacy","ref","class"]);function tt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,et);var o=W(),l=_(o);{let i=N(()=>X("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e.class));I(l,()=>We,(u,f)=>{f(u,A({"data-slot":"dialog-overlay",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(c){a(c)}}))})}d(s,o),F()}var rt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Wt(s,e){O(e,!0);let a=P(e,"ref",15,null),v=T(e,rt);var o=W(),l=_(o);{let i=N(()=>X("leading-none font-medium",e.class));I(l,()=>Oe,(u,f)=>{f(u,A({"data-slot":"dialog-title",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(c){a(c)}}))})}d(s,o),F()}var at=new Set(["$$slots","$$events","$$legacy","open"]);function Ot(s,e){O(e,!0);let a=P(e,"open",15,!1),v=T(e,at);var o=W(),l=_(o);I(l,()=>Fe,(i,u)=>{u(i,A(()=>v,{get open(){return a()},set open(f){a(f)}}))}),d(s,o),F()}const de=s=>s.installed?s.settings.filter(e=>e.current===void 0):s.settings,Ft=s=>Object.fromEntries(de(s).map(e=>[e.key,Ue(e.current??e.default)])),Tt=(s,e)=>de(s).find(a=>a.required&&!e[a.key]?.trim())??null,Et=s=>Object.fromEntries(Object.entries(s).filter(([,e])=>e.trim()!==""));var st=x('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),ot=x('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),nt=x('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),dt=x('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),lt=x('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),it=x('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),vt=x('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),ct=x('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),ut=x("<li> </li>"),ft=x('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),gt=x('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Rt(s,e){O(e,!0);let a=P(e,"answers",15),v=P(e,"busy",19,()=>[]);const o=N(()=>de(e.preview)),l=t=>t.slice(0,12);var i=gt(),u=D(i),f=D(u),c=D(f),C=n(c),z=b(C);y(f);var h=n(f,2);{var m=t=>{var r=st(),g=b(r,!0);B(()=>p(g,e.preview.description)),d(t,r)};S(h,t=>{e.preview.description&&t(m)})}var k=n(h,2),U=n(D(k),2),q=b(U),G=n(U,2);{var H=t=>{var r=ot(),g=n(_(r),2),w=b(g);B(j=>p(w,`${e.preview.installed.version??""} · ${j??""}`),[()=>l(e.preview.installed.commit)]),d(t,r)};S(G,t=>{e.preview.installed&&t(H)})}var R=n(G,4),J=D(R),$=n(J);{var ee=t=>{var r=nt(),g=n(D(r));y(r),B(()=>Ee(g,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),d(t,r)};S($,t=>{e.preview.installed&&t(ee)})}y(R);var K=n(R,2);{var L=t=>{var r=dt(),g=n(_(r),2),w=b(g,!0);B(()=>p(w,e.preview.author)),d(t,r)};S(K,t=>{e.preview.author&&t(L)})}var te=n(K,4),re=b(te),ae=n(te,2);{var Q=t=>{var r=lt(),g=n(_(r),2),w=b(g,!0);B(j=>p(w,j),[()=>e.preview.services.join(", ")]),d(t,r)};S(ae,t=>{e.preview.services.length&&t(Q)})}var V=n(ae,2);{var _e=t=>{var r=it(),g=n(_(r),2),w=b(g,!0);B(j=>p(w,j),[()=>e.preview.addresses.join("; ")]),d(t,r)};S(V,t=>{e.preview.addresses?.length&&t(_e)})}var le=n(V,2);{var xe=t=>{var r=vt(),g=n(_(r),2),w=b(g,!0);B(j=>p(w,j),[()=>e.preview.capabilities.join("; ")]),d(t,r)};S(le,t=>{e.preview.capabilities?.length&&t(xe)})}var he=n(le,4),we=b(he,!0);y(k),y(u);var ie=n(u,2);{var pe=t=>{var r=ct(),g=D(r),w=b(g,!0),j=n(g,2);qe(j,{get settings(){return E(o)},get answers(){return a()},set answers(Y){a(Y)}}),oe(2),y(r),B(()=>p(w,e.preview.installed?"Its new settings":"Its settings")),d(t,r)};S(ie,t=>{E(o).length&&t(pe)})}var se=n(ie,2),ve=D(se);Ke(ve,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var be=n(ve,2),ye=b(be);y(se);var Pe=n(se,2);{var De=t=>{var r=ft(),g=n(D(r));Re(g,20,v,w=>w,(w,j)=>{var Y=ut(),Se=b(Y,!0);B(()=>p(Se,j)),d(w,Y)}),y(g),y(r),d(t,r)};S(Pe,t=>{v().length&&t(De)})}y(i),B((t,r)=>{p(c,`${e.preview.name??""} `),p(z,`${e.preview.id??""} ${e.preview.version??""}`),p(q,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),p(J,`${t??""} `),p(re,`${r??""}${e.preview.ui?"; a UI bundle":""}`),p(we,e.preview.on),p(ye,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
2
2
  sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>l(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),d(s,i),F()}export{Bt as D,Rt as P,At as a,Wt as b,zt as c,It as d,Ot as e,Et as f,Ft as i,Tt as m};
@@ -1,6 +1,6 @@
1
- import"./DsnmJJEf.js";import{o as Be}from"./l_pUsC7d.js";import{m as G,g as e,v as O,p as Re,u as Fe,A as tt,f as K,s as R,h as L,r as _,x as rt,a as o,b as De,i as se,t as b,o as D,d as M,n as Te,w as Ne,c as u,j as he,aa as Ce,aq as nt,bB as at,bC as ot}from"./DFFTcnMk.js";import{i as W}from"./fxwDaXQ6.js";import{X as st,k as it}from"./szetP8fm.js";import{c as lt}from"./CTO6Jnxr.js";import{a as oe,f as ct,s as ue,d as dt,e as xe,i as _e}from"./VI4uBLfk.js";import{s as Je,r as Ke,p as Me}from"./DtxmqMMR.js";import{a as ut}from"./DKQe4Tss.js";import{e as ft,P as vt}from"./Bm0kgZn-.js";import{b as Oe}from"./C_YTgp31.js";import{p as qe}from"./DMDL4MuU.js";import{a as mt,s as pt,P as ht}from"./DrciKyih.js";import{S as Ze}from"./BXN538J3.js";import{B as ze}from"./I9e8Fl7s.js";import{L as Ve}from"./DLeaKE5r.js";import{P as gt}from"./ByKcapt5.js";import{I as Xe}from"./CDH1GGn5.js";import{C as xt}from"./BbYnBq6K.js";import{C as _t}from"./D1KdArBH.js";import{C as yt}from"./CLfYICcI.js";import{E as wt}from"./CDPChpWC.js";var kt=new Set(["$$slots","$$events","$$legacy"]);function bt(r,t){let a=Ke(t,kt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Xe(r,Je(()=>a,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let a=Ke(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Xe(r,Je(()=>a,{get icon(){return l}}))}const Et="2026-01-26";class Y extends Error{constructor(t,a){super(a),this.code=t}code}const Tt=-32601,be=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const a=At(t);if(a){if(a.method!==void 0&&a.id!==void 0)this.answer(a.id,a.method,a.params);else if(a.method!==void 0)try{this.o.onNotification(a.method,a.params)}catch{}else if(a.id!==void 0){const l=this.pending.get(a.id);if(!l)return;this.pending.delete(a.id),clearTimeout(l.timer),a.error?l.reject(new Y(a.error.code,String(a.error.message))):l.resolve(a.result)}}}async answer(t,a,l){let h;try{const d=await this.o.onRequest(a,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof Y?d:new Y(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,a,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const n=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:n}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:a})})}notify(t,a){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:a})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},Nt=16*1024;function jt(r,t,a){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:a,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new Y(be,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new Y(be,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new Y(be,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new Y(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const n=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
1
+ import"./DsnmJJEf.js";import{o as Je}from"./l_pUsC7d.js";import{m as G,g as e,v as O,p as De,u as qe,A as rt,f as K,s as R,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as D,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bB as ot,bC as st}from"./DFFTcnMk.js";import{i as W}from"./fxwDaXQ6.js";import{X as it,k as lt}from"./szetP8fm.js";import{c as ct}from"./CTO6Jnxr.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./VI4uBLfk.js";import{s as Ke,r as Ze,p as Me}from"./DtxmqMMR.js";import{a as ft}from"./DKQe4Tss.js";import{e as vt,P as mt}from"./BNpuLzpy.js";import{b as Oe}from"./C_YTgp31.js";import{p as We}from"./Mzyfuo21.js";import{a as Ce,s as pt,P as ht}from"./C0DPNoH0.js";import{S as Ve}from"./BXN538J3.js";import{B as ze}from"./I9e8Fl7s.js";import{L as Xe}from"./DLeaKE5r.js";import{P as gt}from"./ByKcapt5.js";import{I as Ge}from"./CDH1GGn5.js";import{C as xt}from"./BbYnBq6K.js";import{C as _t}from"./D1KdArBH.js";import{C as yt}from"./CLfYICcI.js";import{E as wt}from"./CDPChpWC.js";var kt=new Set(["$$slots","$$events","$$legacy"]);function bt(r,t){let a=Ze(t,kt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Ge(r,Ke(()=>a,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let a=Ze(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Ge(r,Ke(()=>a,{get icon(){return l}}))}const Et="2026-01-26";class Y extends Error{constructor(t,a){super(a),this.code=t}code}const Tt=-32601,be=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const a=At(t);if(a){if(a.method!==void 0&&a.id!==void 0)this.answer(a.id,a.method,a.params);else if(a.method!==void 0)try{this.o.onNotification(a.method,a.params)}catch{}else if(a.id!==void 0){const l=this.pending.get(a.id);if(!l)return;this.pending.delete(a.id),clearTimeout(l.timer),a.error?l.reject(new Y(a.error.code,String(a.error.message))):l.resolve(a.result)}}}async answer(t,a,l){let h;try{const d=await this.o.onRequest(a,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof Y?d:new Y(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,a,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const n=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:n}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:a})})}notify(t,a){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:a})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},Nt=16*1024;function jt(r,t,a){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:a,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new Y(be,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new Y(be,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new Y(be,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new Y(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const n=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
2
2
 
3
- `).trim();if(!n)throw new Y(be,"Invalid message format: no text.");if(n.length>Nt)throw new Y(be,"The message is too long.");if(!await r.sendMessage(n))throw new Y(ye,"Message sending denied");return{}}case"ui/request-display-mode":{const x=d.mode;if(x!=="inline"&&x!=="fullscreen"&&x!=="pip")throw new Y(be,"Unknown display mode.");return{mode:await r.displayMode(x)}}default:throw new Y(Tt,`Wheelhouse does not offer ${l}.`)}}}function Ot(r){return(t,a)=>{const l=Pe(a),h=d=>typeof d=="number"&&Number.isFinite(d)&&d>=0?Math.min(d,1e5):void 0;t==="ui/notifications/initialized"?r.initialized():t==="ui/notifications/size-changed"?r.resize({width:h(l.width),height:h(l.height)}):t==="notifications/message"&&r.log(typeof l.level=="string"?l.level:"info",l.data)}}const Ct={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function It(r){const t={};for(const[a,l]of Object.entries(Ct)){const h=r(l).trim();h&&(t[a]=h)}return t}function Rt(r,t,a){const l=Math.round(r.width);return t?{width:l,height:Math.round(r.height)}:{width:l,maxHeight:a}}function Dt(r){return{toolInfo:{tool:r.tool},theme:r.theme,styles:{variables:r.styles},displayMode:r.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:r.dimensions,...r.locale?{locale:r.locale}:{},...r.timeZone?{timeZone:r.timeZone}:{},userAgent:`wheelhouse/${r.version}`,platform:"web",deviceCapabilities:{hover:r.hover??!0,touch:r.touch??!1}}}function Lt(r){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:r}}}const Ft=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function qt(r){return[...new Set(Ft.flatMap(t=>r[t]??[]))]}async function Se(r,t,a){let l;try{l=await fetch(`/api/apps/${r}`,{method:"POST",headers:{"content-type":"application/json",[Ze]:a},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const h=await l.json().catch(()=>null);if(h&&(l.ok||"ok"in h||"state"in h))return h;throw new Error(h?.message??`Wheelhouse answered ${l.status}.`)}const Wt=(r,t)=>Se("open",r,t),Ht=(r,t)=>Se("run",r,t),We=(r,t,a)=>Se("call",{...r,...t},a),Ut=(r,t,a)=>Se("read",{...r,uri:t},a),sn=(r,t)=>Se("chat",{calls:r},t);async function Bt(r,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[Ze]:t},body:JSON.stringify(r)})).json().catch(()=>null)}catch{return null}}const Ie=()=>navigator.keyboard;async function Jt(r,{keepEscape:t=!1}={}){if(document.fullscreenElement!==r){if(typeof r.requestFullscreen!="function")return{full:!1,escapeKept:!1};try{await r.requestFullscreen({navigationUI:"hide"})}catch{return{full:!1,escapeKept:!1}}}let a=!1;return t&&Ie()?.lock&&(a=await Ie().lock(["Escape"]).then(()=>!0).catch(()=>!1)),{full:!0,escapeKept:a}}function He(r){!r||document.fullscreenElement!==r||(Ie()?.unlock?.(),document.exitFullscreen().catch(()=>{}))}class Kt{#e=G(0);get open(){return e(this.#e)}set open(t){O(this.#e,t,!0)}}const ln=new Kt;var Zt=u('<p aria-busy="true">Opening the app…</p>'),Vt=u("<!>Starting…",1),Xt=u("<!> ",1),Gt=u('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),Yt=u('<div data-app-service=""><p> </p> <!></div>'),Qt=u("<p> </p>"),$t=u("<!>Exit full screen",1),er=u('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),tr=u('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),rr=u('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),nr=u('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ar=u('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),or=u('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function sr(r,t){Re(t,!0);const a=720;let l=Me(t,"fill",3,!1),h=Me(t,"maxHeight",3,a);const d=()=>qe.data.sessionToken??"",x=()=>qe.data.health?.version??"0.0.0";let n=G("opening"),z=G(null),H=G(null),ie=G(""),Q=G(null),fe=G(null),ve=G(!1),ge=G(160),j=G("inline"),T=G(null),C=G(null),g=G(()=>{}),s=G(null),m=G(null),S=Promise.resolve();function y(c){const N=S.then(()=>new Promise(J=>{O(s,{...c,answer:te=>{O(s,null),J(te)}},!0)}));return S=N.catch(()=>{}),N}Fe(()=>{e(m)&&(e(s)&&!e(m).open?e(m).showModal():!e(s)&&e(m).open&&e(m).close())});async function p(){O(n,"opening"),O(Q,null);try{const c=await Wt(t.ref,d());c.state==="ready"?(O(z,c),O(ie,c.server.title,!0),O(n,"ready")):c.state==="service"?(O(H,c.service),O(ie,c.server.title,!0),O(n,"service")):(O(Q,c.reason,!0),O(n,"failed"))}catch(c){O(Q,c.message,!0),O(n,"failed")}}async function w(){if(!e(H))return;O(ve,!0);const c=await Bt({plugin:e(H).plugin,service:e(H).service,project:e(H).project},d());O(ve,!1),c?.state==="running"?await p():O(H,c??e(H))}Be(()=>{p()});const i=se(()=>{if(!e(z))return null;const c=new URL(e(z).sandbox);return c.searchParams.set("host",location.origin),c.href}),v=se(()=>e(z)?qt(e(z).csp):[]),A=()=>document.documentElement.classList.contains("dark")?"dark":"light",P=()=>{const c=getComputedStyle(document.documentElement);return It(N=>c.getPropertyValue(N))},E=()=>{const c=e(T)?.getBoundingClientRect()??{width:0,height:0};return e(j)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:Rt(c,l(),h())};Fe(()=>{if(!e(z)||!e(C))return;const c=e(z),N=e(C);return tt(()=>I(c,N))});function I(c,N){const J=new URL(c.sandbox).origin,te=t.ref;let me=!1,$=null,le="";const re=Ht(te,d()).catch(f=>({ok:!1,reason:f.message})),U=f=>N.contentWindow?.postMessage(f,J),F={context:()=>Dt({tool:c.tool,theme:A(),styles:P(),displayMode:e(j),dimensions:E(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:x()}),async callTool(f,q){let ee=await We(te,{name:f,arguments:q,confirmed:!1},d());if(!ee.ok&&ee.confirm){if(!await y({kind:"tool",title:ee.confirm.title,description:ee.confirm.description,args:JSON.stringify(q,null,2)}))throw new Y(ye,"The captain declined the call.");ee=await We(te,{name:f,arguments:q,confirmed:!0},d())}if(!ee.ok)throw new Y(ye,ee.reason);return ee.result},async readResource(f){const q=await Ut(te,f,d());if(!q.ok)throw new Y(ye,q.reason);return q.result},async sendMessage(f){if(!await y({kind:"message",text:f}))return!1;const q=await pt(`From the “${t.title}” app (${t.plugin} plugin):
3
+ `).trim();if(!n)throw new Y(be,"Invalid message format: no text.");if(n.length>Nt)throw new Y(be,"The message is too long.");if(!await r.sendMessage(n))throw new Y(ye,"Message sending denied");return{}}case"ui/request-display-mode":{const x=d.mode;if(x!=="inline"&&x!=="fullscreen"&&x!=="pip")throw new Y(be,"Unknown display mode.");return{mode:await r.displayMode(x)}}default:throw new Y(Tt,`Wheelhouse does not offer ${l}.`)}}}function Ot(r){return(t,a)=>{const l=Pe(a),h=d=>typeof d=="number"&&Number.isFinite(d)&&d>=0?Math.min(d,1e5):void 0;t==="ui/notifications/initialized"?r.initialized():t==="ui/notifications/size-changed"?r.resize({width:h(l.width),height:h(l.height)}):t==="notifications/message"&&r.log(typeof l.level=="string"?l.level:"info",l.data)}}const Ct={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function It(r){const t={};for(const[a,l]of Object.entries(Ct)){const h=r(l).trim();h&&(t[a]=h)}return t}function Rt(r,t,a){const l=Math.round(r.width);return t?{width:l,height:Math.round(r.height)}:{width:l,maxHeight:a}}function Dt(r){return{toolInfo:{tool:r.tool},theme:r.theme,styles:{variables:r.styles},displayMode:r.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:r.dimensions,...r.locale?{locale:r.locale}:{},...r.timeZone?{timeZone:r.timeZone}:{},userAgent:`wheelhouse/${r.version}`,platform:"web",deviceCapabilities:{hover:r.hover??!0,touch:r.touch??!1}}}function Lt(r){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:r}}}const Ft=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function qt(r){return[...new Set(Ft.flatMap(t=>r[t]??[]))]}async function Se(r,t,a){let l;try{l=await fetch(`/api/apps/${r}`,{method:"POST",headers:{"content-type":"application/json",[Ve]:a},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const h=await l.json().catch(()=>null);if(h&&(l.ok||"ok"in h||"state"in h))return h;throw new Error(h?.message??`Wheelhouse answered ${l.status}.`)}const Wt=(r,t)=>Se("open",r,t),Ht=(r,t)=>Se("run",r,t),He=(r,t,a)=>Se("call",{...r,...t},a),Ut=(r,t,a)=>Se("read",{...r,uri:t},a),sn=(r,t)=>Se("chat",{calls:r},t);async function Bt(r,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[Ve]:t},body:JSON.stringify(r)})).json().catch(()=>null)}catch{return null}}const Re=()=>navigator.keyboard;async function Jt(r,{keepEscape:t=!1}={}){if(document.fullscreenElement!==r){if(typeof r.requestFullscreen!="function")return{full:!1,escapeKept:!1};try{await r.requestFullscreen({navigationUI:"hide"})}catch{return{full:!1,escapeKept:!1}}}let a=!1;return t&&Re()?.lock&&(a=await Re().lock(["Escape"]).then(()=>!0).catch(()=>!1)),{full:!0,escapeKept:a}}function Ue(r){!r||document.fullscreenElement!==r||(Re()?.unlock?.(),document.exitFullscreen().catch(()=>{}))}class Kt{#e=G(0);get open(){return e(this.#e)}set open(t){O(this.#e,t,!0)}}const ln=new Kt;var Zt=u('<p aria-busy="true">Opening the app…</p>'),Vt=u("<!>Starting…",1),Xt=u("<!> ",1),Gt=u('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),Yt=u('<div data-app-service=""><p> </p> <!></div>'),Qt=u("<p> </p>"),$t=u("<!>Exit full screen",1),er=u('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),tr=u('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),rr=u('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),nr=u('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ar=u('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),or=u('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function sr(r,t){De(t,!0);const a=720;let l=Me(t,"fill",3,!1),h=Me(t,"maxHeight",3,a);const d=()=>We.data.sessionToken??"",x=()=>We.data.health?.version??"0.0.0";let n=G("opening"),z=G(null),H=G(null),ie=G(""),Q=G(null),fe=G(null),ve=G(!1),ge=G(160),j=G("inline"),T=G(null),C=G(null),g=G(()=>{}),s=G(null),m=G(null),S=Promise.resolve();function y(c){const N=S.then(()=>new Promise(J=>{O(s,{...c,answer:te=>{O(s,null),J(te)}},!0)}));return S=N.catch(()=>{}),N}qe(()=>{e(m)&&(e(s)&&!e(m).open?e(m).showModal():!e(s)&&e(m).open&&e(m).close())});async function p(){O(n,"opening"),O(Q,null);try{const c=await Wt(t.ref,d());c.state==="ready"?(O(z,c),O(ie,c.server.title,!0),O(n,"ready")):c.state==="service"?(O(H,c.service),O(ie,c.server.title,!0),O(n,"service")):(O(Q,c.reason,!0),O(n,"failed"))}catch(c){O(Q,c.message,!0),O(n,"failed")}}async function w(){if(!e(H))return;O(ve,!0);const c=await Bt({plugin:e(H).plugin,service:e(H).service,project:e(H).project},d());O(ve,!1),c?.state==="running"?await p():O(H,c??e(H))}Je(()=>{p()});const i=se(()=>{if(!e(z))return null;const c=new URL(Ce.sandbox(e(z).sandbox));return c.searchParams.set("host",location.origin),c.href}),v=se(()=>e(z)?qt(e(z).csp):[]),A=()=>document.documentElement.classList.contains("dark")?"dark":"light",P=()=>{const c=getComputedStyle(document.documentElement);return It(N=>c.getPropertyValue(N))},E=()=>{const c=e(T)?.getBoundingClientRect()??{width:0,height:0};return e(j)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:Rt(c,l(),h())};qe(()=>{if(!e(z)||!e(C))return;const c=e(z),N=e(C);return rt(()=>I(c,N))});function I(c,N){const J=new URL(Ce.sandbox(c.sandbox)).origin,te=t.ref;let me=!1,$=null,le="";const re=Ht(te,d()).catch(f=>({ok:!1,reason:f.message})),U=f=>N.contentWindow?.postMessage(f,J),F={context:()=>Dt({tool:c.tool,theme:A(),styles:P(),displayMode:e(j),dimensions:E(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:x()}),async callTool(f,q){let ee=await He(te,{name:f,arguments:q,confirmed:!1},d());if(!ee.ok&&ee.confirm){if(!await y({kind:"tool",title:ee.confirm.title,description:ee.confirm.description,args:JSON.stringify(q,null,2)}))throw new Y(ye,"The captain declined the call.");ee=await He(te,{name:f,arguments:q,confirmed:!0},d())}if(!ee.ok)throw new Y(ye,ee.reason);return ee.result},async readResource(f){const q=await Ut(te,f,d());if(!q.ok)throw new Y(ye,q.reason);return q.result},async sendMessage(f){if(!await y({kind:"message",text:f}))return!1;const q=await pt(`From the “${t.title}” app (${t.plugin} plugin):
4
4
 
5
- ${f}`,d());if(!q.ok)throw new Y(ye,q.error);return!0},openLink(f){window.open(mt.view(f),"_blank","noopener,noreferrer")},async displayMode(f){return!(f==="inline"||f==="fullscreen")||$&&!$.includes(f)?e(j):(f!==e(j)&&await ae(f),e(j))},resize({height:f}){f!==void 0&&!l()&&e(j)==="inline"&&O(ge,Math.max(40,Math.min(f,h())),!0)},log(f,q){console.info(`[${t.plugin} app] ${f}:`,q)},initialized(){me||(me=!0,le=JSON.stringify(E()),X.notify("ui/notifications/tool-input",{arguments:c.input}),re.then(f=>{f.ok?X.notify("ui/notifications/tool-result",f.result):(O(fe,`The app’s tool did not run: ${f.reason}`),X.notify("ui/notifications/tool-cancelled",{reason:f.reason}))}))}},B=jt(F,{name:"wheelhouse",version:x()},Lt({...c.csp})),X=new Pt({send:U,onRequest:(f,q)=>{if(f==="ui/initialize"){const ee=q?.appCapabilities;Array.isArray(ee?.availableDisplayModes)&&($=ee.availableDisplayModes)}return B(f,q)},onNotification:Ot(F)});async function ae(f){O(j,f,!0),f==="fullscreen"&&e(T)?await Jt(e(T)):He(e(T)),ce({displayMode:e(j)})}O(g,()=>{ae("inline")});function ce(f={}){if(!me)return;const q=E(),ee=JSON.stringify(q),je={...f,...ee!==le?{containerDimensions:q}:{}};le=ee,Object.keys(je).length&&X.notify("ui/notifications/host-context-changed",je)}let ne=!1;const de=f=>{if(f.source!==N.contentWindow||f.origin!==J)return;const q=f.data;if(q&&q.method==="ui/notifications/sandbox-proxy-ready"){if(ne)return;ne=!0,U({jsonrpc:"2.0",method:"ui/notifications/sandbox-resource-ready",params:{html:c.html,csp:c.csp}});return}X.receive(f.data)};window.addEventListener("message",de);const pe=new MutationObserver(()=>ce({theme:A(),styles:{variables:P()}}));pe.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});const ke=new ResizeObserver(()=>ce());e(T)&&ke.observe(e(T));const Le=()=>{!document.fullscreenElement&&e(j)==="fullscreen"&&ae("inline")};return document.addEventListener("fullscreenchange",Le),()=>{me&&X.request("ui/resource-teardown",{},1e3).catch(()=>{}),X.close(),window.removeEventListener("message",de),pe.disconnect(),ke.disconnect(),document.removeEventListener("fullscreenchange",Le),He(e(T)),O(g,()=>{})}}const Z=se(()=>e(z)?.prefersBorder!==!1);var k=or(),V=K(k);{var we=c=>{var N=Zt();b(()=>oe(N,1,`text-sm text-muted-foreground ${l()?"px-4 py-10 sm:px-6":""}`)),o(c,N)},Ge=c=>{var N=Yt(),J=L(N),te=D(J),me=R(J,2);{var $=re=>{ze(re,{class:"mt-3",size:"sm",get disabled(){return e(ve)},onclick:w,children:(U,F)=>{var B=he(),X=K(B);{var ae=ne=>{var de=Vt(),pe=K(de);Ve(pe,{class:"size-4 animate-spin","aria-hidden":"true"}),Te(),o(ne,de)},ce=ne=>{var de=Xt(),pe=K(de);gt(pe,{class:"size-4","aria-hidden":"true"});var ke=R(pe);b(()=>M(ke,`Start ${e(H).title??""}`)),o(ne,de)};W(X,ne=>{e(ve)?ne(ae):ne(ce,-1)})}o(U,B)},$$slots:{default:!0}})},le=re=>{var U=Gt(),F=R(L(U)),B=D(F,!0);_(U),b(()=>M(B,e(H).hint)),o(re,U)};W(me,re=>{e(H).launchable?re($):e(H).hint&&re(le,1)})}_(N),b(()=>{oe(N,1,`text-sm ${l()?"px-4 py-10 sm:px-6":""}`),M(te,`The app runs on ${e(H).title??""}, which is not running.${e(H).reason?` ${e(H).reason}`:""}`)}),o(c,N)},Ye=c=>{var N=Qt(),J=D(N);b(()=>{oe(N,1,`text-sm text-muted-foreground ${l()?"px-4 py-10 sm:px-6":""}`),M(J,`Not available. ${e(Q)??""}`)}),o(c,N)},Qe=c=>{var N=tr(),J=K(N),te=L(J);{var me=F=>{var B=er(),X=L(B),ae=D(X,!0),ce=R(X,2);ze(ce,{variant:"outline",size:"sm",onclick:()=>e(g)(),children:(ne,de)=>{var pe=$t(),ke=K(pe);St(ke,{class:"size-4","aria-hidden":"true"}),Te(),o(ne,pe)},$$slots:{default:!0}}),_(B),b(()=>M(ae,t.title)),o(F,B)};W(te,F=>{e(j)==="fullscreen"&&F(me)})}var $=R(te,2);let le;Oe($,F=>O(C,F),()=>e(C)),_(J),Oe(J,F=>O(T,F),()=>e(T));var re=R(J,2),U=D(re);b(F=>{oe(J,1,ct(e(j)==="fullscreen"?"fixed inset-0 z-50 flex flex-col bg-background":l()?"flex min-h-0 flex-1 flex-col":"")),ue(J,"data-app","chat"in t.ref?`chat/${t.ref.chat}`:`${t.ref.plugin}/${t.ref.contribution}`),ue($,"src",e(i)),ue($,"title",`${t.title}: an app from ${e(z).server.title}`),oe($,1,`block w-full ${e(j)==="fullscreen"||l()?"min-h-0 flex-1":""} ${e(Z)&&e(j)==="inline"?"rounded-md border bg-card":""}`),le=dt($,"",le,{height:e(j)==="inline"&&!l()?`${e(ge)}px`:null}),oe(re,1,`text-xs text-muted-foreground ${l()?"px-4 pt-1.5 sm:px-6":"mt-1.5"}`),M(U,`An MCP app from ${e(z).server.title??""}, in a sandbox${F??""}.${e(fe)?` ${e(fe)}`:""}`)},[()=>e(v).length?`; it may reach ${e(v).join(", ")}`:", with no network access"]),o(c,N)};W(V,c=>{e(n)==="opening"?c(we):e(n)==="service"&&e(H)?c(Ge,1):e(n)==="failed"?c(Ye,2):e(z)&&e(i)&&c(Qe,3)})}var Ee=R(V,2),$e=L(Ee);{var et=c=>{var N=ar(),J=L(N);{var te=U=>{var F=rr(),B=K(F),X=D(B),ae=R(B,2),ce=D(ae),ne=R(ae,2),de=D(ne,!0);b(()=>{M(X,`Let the app run “${e(s).title??""}”?`),M(ce,`The ${t.title??""} app asks ${e(ie)??""} to run a tool that does not say it only reads, so it may
6
- change something.${e(s).description?` ${e(s).description}`:""}`),M(de,e(s).args)}),o(U,F)},me=U=>{var F=nr(),B=R(K(F),2),X=D(B),ae=R(B,2),ce=D(ae,!0);b(()=>{M(X,`The ${t.title??""} app wrote it. It goes as a message from you, marked as from the app.`),M(ce,e(s).text)}),o(U,F)};W(J,U=>{e(s).kind==="tool"?U(te):U(me,-1)})}var $=R(J,2),le=L($);ze(le,{variant:"outline",onclick:()=>e(s)?.answer(!1),children:(U,F)=>{Te();var B=Ne("No");o(U,B)},$$slots:{default:!0}});var re=R(le,2);ze(re,{onclick:()=>e(s)?.answer(!0),children:(U,F)=>{Te();var B=Ne();b(()=>M(B,e(s).kind==="tool"?"Run it once":"Send it")),o(U,B)},$$slots:{default:!0}}),_($),_(N),o(c,N)};W($e,c=>{e(s)&&c(et)})}_(Ee),Oe(Ee,c=>O(m,c),()=>e(m)),rt("close",Ee,()=>{e(m)?.open||e(s)?.answer(!1)}),o(r,k),De()}function Ae(r){if(typeof r!="string"||r.length>2048)return null;if(r.startsWith("/")&&!r.startsWith("//")&&!r.startsWith("/\\"))return r;try{const t=new URL(r);return t.protocol==="http:"||t.protocol==="https:"?r:null}catch{return null}}function cn(r,t){const a=new Set(ft(r));if(!a.size)return[];const l=[];for(const h of t)if(!(h.slot!=="bridge.card"||!h.content.available))for(const d of h.content.value)d.mentions.some(x=>a.has(x))&&l.push({entry:h,card:d});return l}var ir=u("<a> <!></a>"),lr=u('<p data-block="text.v1"> </p>'),cr=u('<dt class="truncate text-muted-foreground"> </dt> <dd class="min-w-0 break-words"><!></dd>',1),dr=u('<dl class="grid grid-cols-[minmax(0,8rem)_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm" data-block="kv.v1"></dl>'),ur=u('<span class="ml-1.5 text-muted-foreground"> </span>'),fr=u('<li class="min-w-0"><!><!></li>'),vr=u('<ul class="flex flex-wrap gap-x-5 gap-y-1.5 text-sm" data-block="links.v1"></ul>'),mr=u('<th class="px-3 py-2 font-medium"> </th>'),pr=u('<thead class="border-b text-left text-xs text-muted-foreground"><tr></tr></thead>'),hr=u('<td class="px-3 py-2"><!></td>'),gr=u("<tr></tr>"),xr=u('<div class="overflow-x-auto rounded-lg border" data-block="table.v1"><table class="w-full text-sm"><!><tbody class="divide-y"></tbody></table></div>'),_r=u('<a target="_blank" rel="noreferrer"><img loading="lazy" class="max-h-96 rounded-lg border"/></a>'),yr=u('<img loading="lazy" class="max-h-96 rounded-lg border"/>'),wr=u('<figure data-block="image.v1"><!></figure>'),kr=u('<span class="block text-muted-foreground"> </span>'),br=u('<p class="flex items-start gap-2 text-sm" data-block="status.v1"><span aria-hidden="true"><!></span> <span class="min-w-0"><span> </span> <!></span></p>'),Mr=u('<span class="ml-1 text-muted-foreground"> </span>'),Sr=u('<li class="rounded-md bg-muted px-2 py-0.5 text-xs"> <!></li>'),Er=u("<li> </li>"),Tr=u('<ul class="mt-2 space-y-0.5 font-mono text-xs text-muted-foreground"></ul>'),zr=u('<div class="rounded-lg border border-dashed p-3 text-sm" data-block="graph.v1"><p class="text-xs text-muted-foreground"> </p> <ul class="mt-2 flex flex-wrap gap-1.5"></ul> <!></div>'),Ar=u('<pre class="mt-2 font-mono break-all whitespace-pre-wrap text-muted-foreground"> </pre>'),Pr=u('<div class="rounded-lg border border-dashed p-3 text-xs" data-block="unknown"><p class="flex items-center gap-1.5 text-muted-foreground"><!> </p> <!></div>'),Nr=u('<div class="space-y-3"></div>');function jr(r,t){Re(t,!0);const a=(x,n=Ce,z=Ce,H)=>{let ie=nt(()=>at(H?.(),"text-sea hover:underline"));const Q=se(()=>Ae(z()));var fe=he(),ve=K(fe);{var ge=T=>{var C=ir(),g=L(C,!0),s=R(g);{var m=y=>{wt(y,{class:"size-3.5 shrink-0","aria-hidden":"true"})},S=se(()=>h(e(Q)));W(s,y=>{e(S)&&y(m)})}_(C),b((y,p)=>{ue(C,"href",e(Q)),oe(C,1,`inline-flex items-center gap-1 ${e(ie)??""}`),ue(C,"target",y),ue(C,"rel",p),M(g,n())},[()=>h(e(Q))?"_blank":void 0,()=>h(e(Q))?"noreferrer":void 0]),o(T,C)},j=T=>{var C=Ne();b(()=>M(C,n())),o(T,C)};W(ve,T=>{e(Q)?T(ge):T(j,-1)})}o(x,fe)},l={ok:"text-success",warn:"text-warning",fail:"text-danger",pending:"text-muted-foreground",unknown:"text-muted-foreground"},h=x=>!x.startsWith("/");var d=Nr();xe(d,21,()=>t.blocks,_e,(x,n)=>{var z=he(),H=K(z);{var ie=g=>{var s=lr(),m=D(s,!0);b(()=>{oe(s,1,`text-sm leading-relaxed whitespace-pre-line ${e(n).muted?"text-muted-foreground":""}`),M(m,e(n).text)}),o(g,s)},Q=g=>{var s=dr();xe(s,21,()=>e(n).items,_e,(m,S)=>{var y=cr(),p=K(y),w=D(p,!0),i=R(p,2),v=L(i);a(v,()=>e(S).value,()=>e(S).href),_(i),b(()=>M(w,e(S).key)),o(m,y)}),_(s),o(g,s)},fe=g=>{var s=vr();xe(s,21,()=>e(n).links,_e,(m,S)=>{var y=fr(),p=L(y);a(p,()=>e(S).label,()=>e(S).href);var w=R(p);{var i=v=>{var A=ur(),P=D(A,!0);b(()=>M(P,e(S).note)),o(v,A)};W(w,v=>{e(S).note&&v(i)})}_(y),o(m,y)}),_(s),o(g,s)},ve=g=>{var s=xr(),m=L(s),S=L(m);{var y=w=>{var i=pr(),v=L(i);xe(v,21,()=>e(n).columns,_e,(A,P)=>{var E=mr(),I=D(E,!0);b(()=>M(I,e(P))),o(A,E)}),_(v),_(i),o(w,i)};W(S,w=>{e(n).columns.length&&w(y)})}var p=R(S);xe(p,21,()=>e(n).rows,_e,(w,i)=>{var v=gr();xe(v,21,()=>e(i),_e,(A,P)=>{var E=hr(),I=L(E);{var Z=V=>{var we=Ne();b(()=>M(we,e(P))),o(V,we)},k=V=>{a(V,()=>e(P).text,()=>e(P).href)};W(I,V=>{typeof e(P)=="string"?V(Z):V(k,-1)})}_(E),o(A,E)}),_(v),o(w,v)}),_(p),_(m),_(s),o(g,s)},ge=g=>{const s=se(()=>Ae(e(n).src));var m=he(),S=K(m);{var y=p=>{var w=wr(),i=L(w);{var v=E=>{var I=_r(),Z=D(I);b(k=>{ue(I,"href",k),ue(Z,"src",e(s)),ue(Z,"alt",e(n).alt)},[()=>Ae(e(n).href)]),o(E,I)},A=se(()=>Ae(e(n).href)),P=E=>{var I=yr();b(()=>{ue(I,"src",e(s)),ue(I,"alt",e(n).alt)}),o(E,I)};W(i,E=>{e(A)?E(v):E(P,-1)})}_(w),o(p,w)};W(S,p=>{e(s)&&p(y)})}o(g,m)},j=g=>{var s=br(),m=L(s),S=L(m);{var y=k=>{_t(k,{class:"size-4"})},p=k=>{st(k,{class:"size-4"})},w=k=>{yt(k,{class:"size-4"})},i=k=>{Ve(k,{class:"size-4"})},v=k=>{bt(k,{class:"size-4"})};W(S,k=>{e(n).tone==="ok"?k(y):e(n).tone==="fail"?k(p,1):e(n).tone==="warn"?k(w,2):e(n).tone==="pending"?k(i,3):k(v,-1)})}_(m);var A=R(m,2),P=L(A),E=D(P,!0),I=R(P,2);{var Z=k=>{var V=kr(),we=D(V,!0);b(()=>M(we,e(n).detail)),o(k,V)};W(I,k=>{e(n).detail&&k(Z)})}_(A),_(s),b(()=>{oe(m,1,`mt-0.5 ${l[e(n).tone]??""}`),oe(P,1,`font-medium ${(e(n).tone==="fail"||e(n).tone==="warn"?l[e(n).tone]:"")??""}`),M(E,e(n).label)}),o(g,s)},T=g=>{var s=zr(),m=L(s),S=D(m,!0),y=R(m,2);xe(y,21,()=>e(n).nodes,i=>i.id,(i,v)=>{var A=Sr(),P=L(A,!0),E=R(P);{var I=Z=>{var k=Mr(),V=D(k,!0);b(()=>M(V,e(v).kind)),o(Z,k)};W(E,Z=>{e(v).kind&&Z(I)})}_(A),b(()=>M(P,e(v).label)),o(i,A)}),_(y);var p=R(y,2);{var w=i=>{var v=Tr();xe(v,21,()=>e(n).edges,_e,(A,P)=>{var E=Er(),I=D(E);b(()=>M(I,`${e(P).from??""} → ${e(P).to??""}${e(P).label?` (${e(P).label})`:""}`)),o(A,E)}),_(v),o(i,v)};W(p,i=>{e(n).edges.length&&i(w)})}_(s),b(()=>M(S,`${e(n).nodes.length} ${e(n).nodes.length===1?"node":"nodes"}, ${e(n).edges.length} ${e(n).edges.length===1?"link":"links"}`)),o(g,s)},C=g=>{var s=Pr(),m=L(s),S=L(m);xt(S,{class:"size-3.5","aria-hidden":"true"});var y=R(S);_(m);var p=R(m,2);{var w=i=>{var v=Ar(),A=D(v,!0);b(()=>M(A,e(n).preview)),o(i,v)};W(p,i=>{e(n).block==="unknown"&&i(w)})}_(s),b(()=>M(y,`This Wheelhouse cannot show a “${(e(n).block==="unknown"?e(n).type:"unknown")??""}” block.`)),o(g,s)};W(H,g=>{e(n).block==="text.v1"?g(ie):e(n).block==="kv.v1"?g(Q,1):e(n).block==="links.v1"?g(fe,2):e(n).block==="table.v1"?g(ve,3):e(n).block==="image.v1"?g(ge,4):e(n).block==="status.v1"?g(j,5):e(n).block==="graph.v1"?g(T,6):g(C,-1)})}o(x,z)}),_(d),o(r,d),De()}var Or=u('<p class="text-sm text-muted-foreground" aria-busy="true">Loading…</p>'),Ue=u('<p class="text-sm text-muted-foreground"> </p>'),Cr=u("<p> </p>"),Ir=u('<div class="flex min-h-0 flex-1 flex-col"><!></div>'),Rr=u('<div class="min-h-0 flex-1 overflow-y-auto px-4 py-6 sm:px-6"><!></div>'),Dr=u("<!> <p> </p>",1);function dn(r,t){Re(t,!0);const a=(j,T=Ce)=>{var C=he(),g=K(C);{var s=i=>{jr(i,{get blocks(){return T()}})},m=i=>{var v=Or();o(i,v)},S=i=>{var v=he(),A=K(v);ot(A,{failed:E=>{var I=Ue(),Z=D(I);b(()=>M(Z,`Not available. The ${t.entry.pluginId??""} plugin’s panel could not be shown.`)),o(E,I)}},E=>{var I=he(),Z=K(I);lt(Z,()=>e(x),(k,V)=>{V(k,{get data(){return T()},get entry(){return t.entry}})}),o(E,I)}),o(i,v)},y=i=>{ht(i,{get entry(){return t.entry},get data(){return T()}})},p=i=>{var v=he(),A=K(v);it(A,()=>e(H),P=>{{let E=se(()=>({plugin:t.entry.pluginId,contribution:t.entry.contributionId,project:t.entry.projectId,task:t.entry.taskId??null}));sr(P,{get ref(){return e(E)},get title(){return t.entry.title},get plugin(){return t.entry.pluginId},get fill(){return d()}})}}),o(i,v)},w=i=>{var v=Ue(),A=D(v);b(()=>M(A,`Not available. This Wheelhouse does not include the “${t.entry.render.component??""}” panel.`)),o(i,v)};W(g,i=>{"blocks"in t.entry.render?i(s):(e(x)||e(n)||e(z))&&!e(ie)?i(m,1):e(x)?i(S,2):e(n)?i(y,3):e(z)?i(p,4):"component"in t.entry.render&&i(w,5)})}o(j,C)};let l=Me(t,"now",19,()=>Date.now()),h=Me(t,"panels",3,vt),d=Me(t,"fill",3,!1);const x=se(()=>"component"in t.entry.render?h()[t.entry.render.component]:void 0),n=se(()=>"element"in t.entry.render),z=se(()=>"app"in t.entry.render),H=se(()=>e(z)&&t.entry.content.available?`${t.entry.key} ${JSON.stringify(t.entry.content.value)}`:"");let ie=G(!1);Be(()=>{O(ie,!0)});var Q=he(),fe=K(Q);{var ve=j=>{var T=Cr(),C=D(T);b(()=>{oe(T,1,`text-sm text-muted-foreground ${d()?"px-4 py-10 sm:px-6":""}`),M(C,`Not available. ${t.entry.content.reason??""}`)}),o(j,T)},ge=j=>{var T=Dr(),C=K(T);{var g=p=>{a(p,()=>t.entry.content.value)},s=p=>{var w=Ir(),i=L(w);a(i,()=>t.entry.content.value),_(w),o(p,w)},m=p=>{var w=Rr(),i=L(w);a(i,()=>t.entry.content.value),_(w),o(p,w)};W(C,p=>{d()?(e(x)||e(n)||e(z))&&e(ie)?p(s,1):p(m,-1):p(g)})}var S=R(C,2),y=D(S);b(p=>{oe(S,1,`text-xs text-muted-foreground ${d()?"shrink-0 border-t px-4 py-1.5 sm:px-6":"mt-1.5"}`),M(y,`From ${t.entry.content.source??""}${p??""}.`)},[()=>t.entry.content.observedAt?`, ${ut(t.entry.content.observedAt,l())}`:""]),o(j,T)};W(fe,j=>{t.entry.content.available?j(ge,-1):j(ve)})}o(r,Q),De()}export{sr as A,jr as B,St as M,dn as S,sn as a,ln as c,Jt as e,He as l,cn as m};
5
+ ${f}`,d());if(!q.ok)throw new Y(ye,q.error);return!0},openLink(f){window.open(Ce.view(f),"_blank","noopener,noreferrer")},async displayMode(f){return!(f==="inline"||f==="fullscreen")||$&&!$.includes(f)?e(j):(f!==e(j)&&await ae(f),e(j))},resize({height:f}){f!==void 0&&!l()&&e(j)==="inline"&&O(ge,Math.max(40,Math.min(f,h())),!0)},log(f,q){console.info(`[${t.plugin} app] ${f}:`,q)},initialized(){me||(me=!0,le=JSON.stringify(E()),X.notify("ui/notifications/tool-input",{arguments:c.input}),re.then(f=>{f.ok?X.notify("ui/notifications/tool-result",f.result):(O(fe,`The app’s tool did not run: ${f.reason}`),X.notify("ui/notifications/tool-cancelled",{reason:f.reason}))}))}},B=jt(F,{name:"wheelhouse",version:x()},Lt({...c.csp})),X=new Pt({send:U,onRequest:(f,q)=>{if(f==="ui/initialize"){const ee=q?.appCapabilities;Array.isArray(ee?.availableDisplayModes)&&($=ee.availableDisplayModes)}return B(f,q)},onNotification:Ot(F)});async function ae(f){O(j,f,!0),f==="fullscreen"&&e(T)?await Jt(e(T)):Ue(e(T)),ce({displayMode:e(j)})}O(g,()=>{ae("inline")});function ce(f={}){if(!me)return;const q=E(),ee=JSON.stringify(q),je={...f,...ee!==le?{containerDimensions:q}:{}};le=ee,Object.keys(je).length&&X.notify("ui/notifications/host-context-changed",je)}let ne=!1;const de=f=>{if(f.source!==N.contentWindow||f.origin!==J)return;const q=f.data;if(q&&q.method==="ui/notifications/sandbox-proxy-ready"){if(ne)return;ne=!0,U({jsonrpc:"2.0",method:"ui/notifications/sandbox-resource-ready",params:{html:c.html,csp:c.csp}});return}X.receive(f.data)};window.addEventListener("message",de);const pe=new MutationObserver(()=>ce({theme:A(),styles:{variables:P()}}));pe.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});const ke=new ResizeObserver(()=>ce());e(T)&&ke.observe(e(T));const Fe=()=>{!document.fullscreenElement&&e(j)==="fullscreen"&&ae("inline")};return document.addEventListener("fullscreenchange",Fe),()=>{me&&X.request("ui/resource-teardown",{},1e3).catch(()=>{}),X.close(),window.removeEventListener("message",de),pe.disconnect(),ke.disconnect(),document.removeEventListener("fullscreenchange",Fe),Ue(e(T)),O(g,()=>{})}}const Z=se(()=>e(z)?.prefersBorder!==!1);var k=or(),V=K(k);{var we=c=>{var N=Zt();b(()=>oe(N,1,`text-sm text-muted-foreground ${l()?"px-4 py-10 sm:px-6":""}`)),o(c,N)},Ye=c=>{var N=Yt(),J=L(N),te=D(J),me=R(J,2);{var $=re=>{ze(re,{class:"mt-3",size:"sm",get disabled(){return e(ve)},onclick:w,children:(U,F)=>{var B=he(),X=K(B);{var ae=ne=>{var de=Vt(),pe=K(de);Xe(pe,{class:"size-4 animate-spin","aria-hidden":"true"}),Te(),o(ne,de)},ce=ne=>{var de=Xt(),pe=K(de);gt(pe,{class:"size-4","aria-hidden":"true"});var ke=R(pe);b(()=>M(ke,`Start ${e(H).title??""}`)),o(ne,de)};W(X,ne=>{e(ve)?ne(ae):ne(ce,-1)})}o(U,B)},$$slots:{default:!0}})},le=re=>{var U=Gt(),F=R(L(U)),B=D(F,!0);_(U),b(()=>M(B,e(H).hint)),o(re,U)};W(me,re=>{e(H).launchable?re($):e(H).hint&&re(le,1)})}_(N),b(()=>{oe(N,1,`text-sm ${l()?"px-4 py-10 sm:px-6":""}`),M(te,`The app runs on ${e(H).title??""}, which is not running.${e(H).reason?` ${e(H).reason}`:""}`)}),o(c,N)},Qe=c=>{var N=Qt(),J=D(N);b(()=>{oe(N,1,`text-sm text-muted-foreground ${l()?"px-4 py-10 sm:px-6":""}`),M(J,`Not available. ${e(Q)??""}`)}),o(c,N)},$e=c=>{var N=tr(),J=K(N),te=L(J);{var me=F=>{var B=er(),X=L(B),ae=D(X,!0),ce=R(X,2);ze(ce,{variant:"outline",size:"sm",onclick:()=>e(g)(),children:(ne,de)=>{var pe=$t(),ke=K(pe);St(ke,{class:"size-4","aria-hidden":"true"}),Te(),o(ne,pe)},$$slots:{default:!0}}),_(B),b(()=>M(ae,t.title)),o(F,B)};W(te,F=>{e(j)==="fullscreen"&&F(me)})}var $=R(te,2);let le;Oe($,F=>O(C,F),()=>e(C)),_(J),Oe(J,F=>O(T,F),()=>e(T));var re=R(J,2),U=D(re);b(F=>{oe(J,1,dt(e(j)==="fullscreen"?"fixed inset-0 z-50 flex flex-col bg-background":l()?"flex min-h-0 flex-1 flex-col":"")),ue(J,"data-app","chat"in t.ref?`chat/${t.ref.chat}`:`${t.ref.plugin}/${t.ref.contribution}`),ue($,"src",e(i)),ue($,"title",`${t.title}: an app from ${e(z).server.title}`),oe($,1,`block w-full ${e(j)==="fullscreen"||l()?"min-h-0 flex-1":""} ${e(Z)&&e(j)==="inline"?"rounded-md border bg-card":""}`),le=ut($,"",le,{height:e(j)==="inline"&&!l()?`${e(ge)}px`:null}),oe(re,1,`text-xs text-muted-foreground ${l()?"px-4 pt-1.5 sm:px-6":"mt-1.5"}`),M(U,`An MCP app from ${e(z).server.title??""}, in a sandbox${F??""}.${e(fe)?` ${e(fe)}`:""}`)},[()=>e(v).length?`; it may reach ${e(v).join(", ")}`:", with no network access"]),o(c,N)};W(V,c=>{e(n)==="opening"?c(we):e(n)==="service"&&e(H)?c(Ye,1):e(n)==="failed"?c(Qe,2):e(z)&&e(i)&&c($e,3)})}var Ee=R(V,2),et=L(Ee);{var tt=c=>{var N=ar(),J=L(N);{var te=U=>{var F=rr(),B=K(F),X=D(B),ae=R(B,2),ce=D(ae),ne=R(ae,2),de=D(ne,!0);b(()=>{M(X,`Let the app run “${e(s).title??""}”?`),M(ce,`The ${t.title??""} app asks ${e(ie)??""} to run a tool that does not say it only reads, so it may
6
+ change something.${e(s).description?` ${e(s).description}`:""}`),M(de,e(s).args)}),o(U,F)},me=U=>{var F=nr(),B=R(K(F),2),X=D(B),ae=R(B,2),ce=D(ae,!0);b(()=>{M(X,`The ${t.title??""} app wrote it. It goes as a message from you, marked as from the app.`),M(ce,e(s).text)}),o(U,F)};W(J,U=>{e(s).kind==="tool"?U(te):U(me,-1)})}var $=R(J,2),le=L($);ze(le,{variant:"outline",onclick:()=>e(s)?.answer(!1),children:(U,F)=>{Te();var B=Ne("No");o(U,B)},$$slots:{default:!0}});var re=R(le,2);ze(re,{onclick:()=>e(s)?.answer(!0),children:(U,F)=>{Te();var B=Ne();b(()=>M(B,e(s).kind==="tool"?"Run it once":"Send it")),o(U,B)},$$slots:{default:!0}}),_($),_(N),o(c,N)};W(et,c=>{e(s)&&c(tt)})}_(Ee),Oe(Ee,c=>O(m,c),()=>e(m)),nt("close",Ee,()=>{e(m)?.open||e(s)?.answer(!1)}),o(r,k),Le()}function Ae(r){if(typeof r!="string"||r.length>2048)return null;if(r.startsWith("/")&&!r.startsWith("//")&&!r.startsWith("/\\"))return r;try{const t=new URL(r);return t.protocol==="http:"||t.protocol==="https:"?r:null}catch{return null}}function cn(r,t){const a=new Set(vt(r));if(!a.size)return[];const l=[];for(const h of t)if(!(h.slot!=="bridge.card"||!h.content.available))for(const d of h.content.value)d.mentions.some(x=>a.has(x))&&l.push({entry:h,card:d});return l}var ir=u("<a> <!></a>"),lr=u('<p data-block="text.v1"> </p>'),cr=u('<dt class="truncate text-muted-foreground"> </dt> <dd class="min-w-0 break-words"><!></dd>',1),dr=u('<dl class="grid grid-cols-[minmax(0,8rem)_minmax(0,1fr)] gap-x-4 gap-y-1.5 text-sm" data-block="kv.v1"></dl>'),ur=u('<span class="ml-1.5 text-muted-foreground"> </span>'),fr=u('<li class="min-w-0"><!><!></li>'),vr=u('<ul class="flex flex-wrap gap-x-5 gap-y-1.5 text-sm" data-block="links.v1"></ul>'),mr=u('<th class="px-3 py-2 font-medium"> </th>'),pr=u('<thead class="border-b text-left text-xs text-muted-foreground"><tr></tr></thead>'),hr=u('<td class="px-3 py-2"><!></td>'),gr=u("<tr></tr>"),xr=u('<div class="overflow-x-auto rounded-lg border" data-block="table.v1"><table class="w-full text-sm"><!><tbody class="divide-y"></tbody></table></div>'),_r=u('<a target="_blank" rel="noreferrer"><img loading="lazy" class="max-h-96 rounded-lg border"/></a>'),yr=u('<img loading="lazy" class="max-h-96 rounded-lg border"/>'),wr=u('<figure data-block="image.v1"><!></figure>'),kr=u('<span class="block text-muted-foreground"> </span>'),br=u('<p class="flex items-start gap-2 text-sm" data-block="status.v1"><span aria-hidden="true"><!></span> <span class="min-w-0"><span> </span> <!></span></p>'),Mr=u('<span class="ml-1 text-muted-foreground"> </span>'),Sr=u('<li class="rounded-md bg-muted px-2 py-0.5 text-xs"> <!></li>'),Er=u("<li> </li>"),Tr=u('<ul class="mt-2 space-y-0.5 font-mono text-xs text-muted-foreground"></ul>'),zr=u('<div class="rounded-lg border border-dashed p-3 text-sm" data-block="graph.v1"><p class="text-xs text-muted-foreground"> </p> <ul class="mt-2 flex flex-wrap gap-1.5"></ul> <!></div>'),Ar=u('<pre class="mt-2 font-mono break-all whitespace-pre-wrap text-muted-foreground"> </pre>'),Pr=u('<div class="rounded-lg border border-dashed p-3 text-xs" data-block="unknown"><p class="flex items-center gap-1.5 text-muted-foreground"><!> </p> <!></div>'),Nr=u('<div class="space-y-3"></div>');function jr(r,t){De(t,!0);const a=(x,n=Ie,z=Ie,H)=>{let ie=at(()=>ot(H?.(),"text-sea hover:underline"));const Q=se(()=>Ae(z()));var fe=he(),ve=K(fe);{var ge=T=>{var C=ir(),g=L(C,!0),s=R(g);{var m=y=>{wt(y,{class:"size-3.5 shrink-0","aria-hidden":"true"})},S=se(()=>h(e(Q)));W(s,y=>{e(S)&&y(m)})}_(C),b((y,p)=>{ue(C,"href",e(Q)),oe(C,1,`inline-flex items-center gap-1 ${e(ie)??""}`),ue(C,"target",y),ue(C,"rel",p),M(g,n())},[()=>h(e(Q))?"_blank":void 0,()=>h(e(Q))?"noreferrer":void 0]),o(T,C)},j=T=>{var C=Ne();b(()=>M(C,n())),o(T,C)};W(ve,T=>{e(Q)?T(ge):T(j,-1)})}o(x,fe)},l={ok:"text-success",warn:"text-warning",fail:"text-danger",pending:"text-muted-foreground",unknown:"text-muted-foreground"},h=x=>!x.startsWith("/");var d=Nr();xe(d,21,()=>t.blocks,_e,(x,n)=>{var z=he(),H=K(z);{var ie=g=>{var s=lr(),m=D(s,!0);b(()=>{oe(s,1,`text-sm leading-relaxed whitespace-pre-line ${e(n).muted?"text-muted-foreground":""}`),M(m,e(n).text)}),o(g,s)},Q=g=>{var s=dr();xe(s,21,()=>e(n).items,_e,(m,S)=>{var y=cr(),p=K(y),w=D(p,!0),i=R(p,2),v=L(i);a(v,()=>e(S).value,()=>e(S).href),_(i),b(()=>M(w,e(S).key)),o(m,y)}),_(s),o(g,s)},fe=g=>{var s=vr();xe(s,21,()=>e(n).links,_e,(m,S)=>{var y=fr(),p=L(y);a(p,()=>e(S).label,()=>e(S).href);var w=R(p);{var i=v=>{var A=ur(),P=D(A,!0);b(()=>M(P,e(S).note)),o(v,A)};W(w,v=>{e(S).note&&v(i)})}_(y),o(m,y)}),_(s),o(g,s)},ve=g=>{var s=xr(),m=L(s),S=L(m);{var y=w=>{var i=pr(),v=L(i);xe(v,21,()=>e(n).columns,_e,(A,P)=>{var E=mr(),I=D(E,!0);b(()=>M(I,e(P))),o(A,E)}),_(v),_(i),o(w,i)};W(S,w=>{e(n).columns.length&&w(y)})}var p=R(S);xe(p,21,()=>e(n).rows,_e,(w,i)=>{var v=gr();xe(v,21,()=>e(i),_e,(A,P)=>{var E=hr(),I=L(E);{var Z=V=>{var we=Ne();b(()=>M(we,e(P))),o(V,we)},k=V=>{a(V,()=>e(P).text,()=>e(P).href)};W(I,V=>{typeof e(P)=="string"?V(Z):V(k,-1)})}_(E),o(A,E)}),_(v),o(w,v)}),_(p),_(m),_(s),o(g,s)},ge=g=>{const s=se(()=>Ae(e(n).src));var m=he(),S=K(m);{var y=p=>{var w=wr(),i=L(w);{var v=E=>{var I=_r(),Z=D(I);b(k=>{ue(I,"href",k),ue(Z,"src",e(s)),ue(Z,"alt",e(n).alt)},[()=>Ae(e(n).href)]),o(E,I)},A=se(()=>Ae(e(n).href)),P=E=>{var I=yr();b(()=>{ue(I,"src",e(s)),ue(I,"alt",e(n).alt)}),o(E,I)};W(i,E=>{e(A)?E(v):E(P,-1)})}_(w),o(p,w)};W(S,p=>{e(s)&&p(y)})}o(g,m)},j=g=>{var s=br(),m=L(s),S=L(m);{var y=k=>{_t(k,{class:"size-4"})},p=k=>{it(k,{class:"size-4"})},w=k=>{yt(k,{class:"size-4"})},i=k=>{Xe(k,{class:"size-4"})},v=k=>{bt(k,{class:"size-4"})};W(S,k=>{e(n).tone==="ok"?k(y):e(n).tone==="fail"?k(p,1):e(n).tone==="warn"?k(w,2):e(n).tone==="pending"?k(i,3):k(v,-1)})}_(m);var A=R(m,2),P=L(A),E=D(P,!0),I=R(P,2);{var Z=k=>{var V=kr(),we=D(V,!0);b(()=>M(we,e(n).detail)),o(k,V)};W(I,k=>{e(n).detail&&k(Z)})}_(A),_(s),b(()=>{oe(m,1,`mt-0.5 ${l[e(n).tone]??""}`),oe(P,1,`font-medium ${(e(n).tone==="fail"||e(n).tone==="warn"?l[e(n).tone]:"")??""}`),M(E,e(n).label)}),o(g,s)},T=g=>{var s=zr(),m=L(s),S=D(m,!0),y=R(m,2);xe(y,21,()=>e(n).nodes,i=>i.id,(i,v)=>{var A=Sr(),P=L(A,!0),E=R(P);{var I=Z=>{var k=Mr(),V=D(k,!0);b(()=>M(V,e(v).kind)),o(Z,k)};W(E,Z=>{e(v).kind&&Z(I)})}_(A),b(()=>M(P,e(v).label)),o(i,A)}),_(y);var p=R(y,2);{var w=i=>{var v=Tr();xe(v,21,()=>e(n).edges,_e,(A,P)=>{var E=Er(),I=D(E);b(()=>M(I,`${e(P).from??""} → ${e(P).to??""}${e(P).label?` (${e(P).label})`:""}`)),o(A,E)}),_(v),o(i,v)};W(p,i=>{e(n).edges.length&&i(w)})}_(s),b(()=>M(S,`${e(n).nodes.length} ${e(n).nodes.length===1?"node":"nodes"}, ${e(n).edges.length} ${e(n).edges.length===1?"link":"links"}`)),o(g,s)},C=g=>{var s=Pr(),m=L(s),S=L(m);xt(S,{class:"size-3.5","aria-hidden":"true"});var y=R(S);_(m);var p=R(m,2);{var w=i=>{var v=Ar(),A=D(v,!0);b(()=>M(A,e(n).preview)),o(i,v)};W(p,i=>{e(n).block==="unknown"&&i(w)})}_(s),b(()=>M(y,`This Wheelhouse cannot show a “${(e(n).block==="unknown"?e(n).type:"unknown")??""}” block.`)),o(g,s)};W(H,g=>{e(n).block==="text.v1"?g(ie):e(n).block==="kv.v1"?g(Q,1):e(n).block==="links.v1"?g(fe,2):e(n).block==="table.v1"?g(ve,3):e(n).block==="image.v1"?g(ge,4):e(n).block==="status.v1"?g(j,5):e(n).block==="graph.v1"?g(T,6):g(C,-1)})}o(x,z)}),_(d),o(r,d),Le()}var Or=u('<p class="text-sm text-muted-foreground" aria-busy="true">Loading…</p>'),Be=u('<p class="text-sm text-muted-foreground"> </p>'),Cr=u("<p> </p>"),Ir=u('<div class="flex min-h-0 flex-1 flex-col"><!></div>'),Rr=u('<div class="min-h-0 flex-1 overflow-y-auto px-4 py-6 sm:px-6"><!></div>'),Dr=u("<!> <p> </p>",1);function dn(r,t){De(t,!0);const a=(j,T=Ie)=>{var C=he(),g=K(C);{var s=i=>{jr(i,{get blocks(){return T()}})},m=i=>{var v=Or();o(i,v)},S=i=>{var v=he(),A=K(v);st(A,{failed:E=>{var I=Be(),Z=D(I);b(()=>M(Z,`Not available. The ${t.entry.pluginId??""} plugin’s panel could not be shown.`)),o(E,I)}},E=>{var I=he(),Z=K(I);ct(Z,()=>e(x),(k,V)=>{V(k,{get data(){return T()},get entry(){return t.entry}})}),o(E,I)}),o(i,v)},y=i=>{ht(i,{get entry(){return t.entry},get data(){return T()}})},p=i=>{var v=he(),A=K(v);lt(A,()=>e(H),P=>{{let E=se(()=>({plugin:t.entry.pluginId,contribution:t.entry.contributionId,project:t.entry.projectId,task:t.entry.taskId??null}));sr(P,{get ref(){return e(E)},get title(){return t.entry.title},get plugin(){return t.entry.pluginId},get fill(){return d()}})}}),o(i,v)},w=i=>{var v=Be(),A=D(v);b(()=>M(A,`Not available. This Wheelhouse does not include the “${t.entry.render.component??""}” panel.`)),o(i,v)};W(g,i=>{"blocks"in t.entry.render?i(s):(e(x)||e(n)||e(z))&&!e(ie)?i(m,1):e(x)?i(S,2):e(n)?i(y,3):e(z)?i(p,4):"component"in t.entry.render&&i(w,5)})}o(j,C)};let l=Me(t,"now",19,()=>Date.now()),h=Me(t,"panels",3,mt),d=Me(t,"fill",3,!1);const x=se(()=>"component"in t.entry.render?h()[t.entry.render.component]:void 0),n=se(()=>"element"in t.entry.render),z=se(()=>"app"in t.entry.render),H=se(()=>e(z)&&t.entry.content.available?`${t.entry.key} ${JSON.stringify(t.entry.content.value)}`:"");let ie=G(!1);Je(()=>{O(ie,!0)});var Q=he(),fe=K(Q);{var ve=j=>{var T=Cr(),C=D(T);b(()=>{oe(T,1,`text-sm text-muted-foreground ${d()?"px-4 py-10 sm:px-6":""}`),M(C,`Not available. ${t.entry.content.reason??""}`)}),o(j,T)},ge=j=>{var T=Dr(),C=K(T);{var g=p=>{a(p,()=>t.entry.content.value)},s=p=>{var w=Ir(),i=L(w);a(i,()=>t.entry.content.value),_(w),o(p,w)},m=p=>{var w=Rr(),i=L(w);a(i,()=>t.entry.content.value),_(w),o(p,w)};W(C,p=>{d()?(e(x)||e(n)||e(z))&&e(ie)?p(s,1):p(m,-1):p(g)})}var S=R(C,2),y=D(S);b(p=>{oe(S,1,`text-xs text-muted-foreground ${d()?"shrink-0 border-t px-4 py-1.5 sm:px-6":"mt-1.5"}`),M(y,`From ${t.entry.content.source??""}${p??""}.`)},[()=>t.entry.content.observedAt?`, ${ft(t.entry.content.observedAt,l())}`:""]),o(j,T)};W(fe,j=>{t.entry.content.available?j(ge,-1):j(ve)})}o(r,Q),Le()}export{sr as A,jr as B,St as M,dn as S,sn as a,ln as c,Jt as e,Ue as l,cn as m};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{i as c}from"./hKkTZgiP.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./DFFTcnMk.js";import{e as w,s as o}from"./VI4uBLfk.js";import{p as n}from"./DMDL4MuU.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
1
+ import"./DsnmJJEf.js";import{i as c}from"./hKkTZgiP.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./DFFTcnMk.js";import{e as w,s as o}from"./VI4uBLfk.js";import{p as n}from"./Mzyfuo21.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
@@ -1,2 +1,2 @@
1
- import{l as ee}from"./3bC4bjBI.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as r,o as D,b as oe}from"./DFFTcnMk.js";import{i as m}from"./fxwDaXQ6.js";import{a as A,e as H,f as J,j as re,k as ie,r as ne,s as le}from"./VI4uBLfk.js";import{L as Y}from"./DLeaKE5r.js";import{C as B}from"./D1KdArBH.js";import{a as pe}from"./DJKfepuw.js";import{p as G}from"./DtxmqMMR.js";async function _(e,a,i){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(i??{})}),d=await p.json().catch(()=>null);return p.ok&&d?{ok:!0,value:d}:{ok:!1,error:d?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>_("/api/plugins/updates",null),Ne=e=>_("/api/plugins/updates",e),Oe=(e=!1)=>_(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>_("/api/plugins/inspect",a,e),We=(e,a,i)=>_("/api/plugins/install",i,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Ae=(e,a,i)=>_(`/api/plugins/${encodeURIComponent(e.id)}/update`,i,{ref:e.ref,commit:e.commit,settings:a});function Fe(e=6e4){return new Promise(a=>{const i=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(i),p(),a(!0)})})}const Le=(e,a,i)=>_(`/api/plugins/${encodeURIComponent(e)}/config`,i,a),De=(e,a)=>_(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
1
+ import{l as ee}from"./BEc8oFj4.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as r,o as D,b as oe}from"./DFFTcnMk.js";import{i as m}from"./fxwDaXQ6.js";import{a as A,e as H,f as J,j as re,k as ie,r as ne,s as le}from"./VI4uBLfk.js";import{L as Y}from"./DLeaKE5r.js";import{C as B}from"./D1KdArBH.js";import{a as pe}from"./DJKfepuw.js";import{p as G}from"./DtxmqMMR.js";async function _(e,a,i){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(i??{})}),d=await p.json().catch(()=>null);return p.ok&&d?{ok:!0,value:d}:{ok:!1,error:d?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>_("/api/plugins/updates",null),Ne=e=>_("/api/plugins/updates",e),Oe=(e=!1)=>_(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>_("/api/plugins/inspect",a,e),We=(e,a,i)=>_("/api/plugins/install",i,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Ae=(e,a,i)=>_(`/api/plugins/${encodeURIComponent(e.id)}/update`,i,{ref:e.ref,commit:e.commit,settings:a});function Fe(e=6e4){return new Promise(a=>{const i=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(i),p(),a(!0)})})}const Le=(e,a,i)=>_(`/api/plugins/${encodeURIComponent(e)}/config`,i,a),De=(e,a)=>_(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
2
2
  change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function He(e,a){var i=de(),p=h(i),d=h(p),w=h(d);{var I=s=>{Y(s,{class:"size-4 animate-spin text-sea"})},S=s=>{B(s,{class:"size-4 text-success"})};m(w,s=>{a.phase==="saving"?s(I):s(S,-1)})}var o=f(w,1,!0);b(d);var g=f(d,2),P=h(g);{var R=s=>{Y(s,{class:"size-4 animate-spin text-sea"})},E=s=>{B(s,{class:"size-4 text-success"})},N=s=>{var j=ce();l(s,j)};m(P,s=>{a.phase==="restarting"||a.phase==="slow"?s(R):a.phase==="done"?s(E,1):s(N,-1)})}te(),b(g),b(p);var O=f(p,2);{var q=s=>{var j=ue();l(s,j)};m(O,s=>{a.phase==="slow"&&s(q)})}b(i),k(()=>{z(o,a.label),A(g,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,i)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Je=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var fe=u('<span class="text-danger" aria-hidden="true">&nbsp;*</span>'),me=u('<span class="text-muted-foreground">&nbsp;(optional)</span>'),_e=u("<option>Not set</option>"),ge=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Ye(e,a){se(a,!0);let i=G(a,"answers",15),p=G(a,"disabled",3,!1);const d="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,S=>S.key,(S,o)=>{var g=ke(),P=h(g),R=h(P,!0),E=f(R);{var N=n=>{var t=fe();l(n,t)},O=n=>{var t=me();l(n,t)};m(E,n=>{r(o).required?n(N):n(O,-1)})}b(P);var q=f(P,2);{var s=n=>{var t=be();A(t,1,J(d));var x=h(t);{var Q=c=>{var v=_e();v.value=v.__value="",l(c,v)};m(x,c=>{r(o).required||c(Q)})}var V=f(x);{var X=c=>{var v=L(),C=W(v);H(C,17,()=>r(o).options,y=>y.value,(y,F)=>{var U=ge(),$=D(U,!0),T={};k(()=>{z($,r(F).label),T!==(T=r(F).value)&&(U.value=(U.__value=T)??"")}),l(y,U)}),l(c,v)},Z=c=>{var v=he(),C=W(v);C.value=C.__value="yes";var y=f(C,2);y.value=y.__value="no",l(c,v)};m(V,c=>{r(o).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=r(o).required,t.disabled=p()}),ie(t,()=>i()[r(o).key],c=>i(i()[r(o).key]=c,!0)),l(n,t)},j=n=>{var t=xe();ne(t),A(t,1,J(d)),k(()=>{le(t,"inputmode",r(o).type==="number"?"decimal":void 0),t.required=r(o).required,t.disabled=p()}),pe(t,()=>i()[r(o).key],x=>i(i()[r(o).key]=x,!0)),l(n,t)};m(q,n=>{r(o).type==="boolean"||r(o).options?n(s):n(j,-1)})}var K=f(q,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${r(o).description??""??""}${r(o).type==="list"?`${r(o).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};m(K,n=>{(r(o).description||r(o).type==="list")&&n(M)})}b(g),k(()=>z(R,r(o).title)),l(S,g)}),l(e,w),oe()}export{He as C,Ye as S,Je as a,Fe as b,Le as c,Te as d,Ne as e,ve as f,We as i,De as l,Oe as m,Ee as p,Ae as u};
@@ -0,0 +1,5 @@
1
+ import"./DsnmJJEf.js";import{m as g,g as l,v as m,p as Y,u as R,A as $,f as Z,s as tt,t as q,a as W,b as et,i as _,o as st,d as nt,c as V,q as N}from"./DFFTcnMk.js";import{i as rt}from"./fxwDaXQ6.js";import{s as ot}from"./VI4uBLfk.js";import{b as it}from"./C_YTgp31.js";import{p as C}from"./DtxmqMMR.js";import{p as at}from"./Mzyfuo21.js";import{S as A}from"./BXN538J3.js";import{r as P}from"./xjN9NojQ.js";import{w as ut}from"./BEc8oFj4.js";const ct=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),lt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function dt(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function ht(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!ct.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return lt(s)?s:null}function D(e,t){const s=ht(e);if(s===null||t.reserved?.includes(s))return e;const n=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${n.pathname}${n.search}${n.hash}`}const X=new Set(["127.0.0.1","localhost"]);function te(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let n=!0;try{n=new URL(e).origin===t}catch{}return n?s:`${s} allow-same-origin`}const mt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function ft(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!X.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return mt(s)?s:null}function pt(e,t,s){const n=t?ft(e):null;if(n===null||!t)return e;const r=s.port||(s.protocol==="https:"?"443":"80");if(X.has(s.hostname.toLowerCase())&&String(n)===r)return e;const i=new URL(e),a=t.replace("{port}",String(n));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class gt{#t=g(null);get to(){return l(this.#t)}set to(t){m(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){m(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){m(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?P(t,this.remote,location.origin):this.hosted?D(t,this.hosted):this.to?pt(t,this.to,location):t}sandbox(t){return this.remote?P(t,this.remote,location.origin):this.hosted&&dt(this.hosted.pattern)?D(t,{pattern:this.hosted.pattern}):t}}const O=new gt;function ee(e){const t=n=>{if(!O.active)return;const r=n.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!r)return;const i=O.view(r.href);i!==r.href&&(r.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const n of s)e.addEventListener(n,t,!0);return()=>{for(const n of s)e.removeEventListener(n,t,!0)}}async function yt(e,t,s,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[A]:s},body:JSON.stringify(t)});if(r.ok){const a=await r.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:r.status===202}}return{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function kt(e,t,s){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);return n.ok&&Array.isArray(r?.points)?{ok:!0,points:r.points}:{ok:!1,error:r?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const bt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function wt(e){try{const t=await fetch(`/api/services?${bt(e)}`);return t.ok?await t.json():null}catch{return null}}async function vt(e,t,s=null){const n=window.open("","_blank");try{n?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let r=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});r=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{r=null}const i=r?.state==="running"?s??r.url:null;if(i){const a=O.view(i);n?n.location.href=a:window.open(a,"_blank")}else n?.close();return r}const St=5e3,U=new Map;function xt(e,t){let s=U.get(e);return s||(s=t(e).catch(n=>{throw U.delete(e),n}),U.set(e,s)),s}const F=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function _t(e,t){const s=e.pluginId,n=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},r=i=>{const a=typeof i=="object"&&i!==null?i:{},d=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return d?{taskId:d,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(n(i,a.project)),launch:async(i,a={})=>t.launch(n(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??F)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=r(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??F)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=r(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Et(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await xt(t.ui,t.importer??(r=>import(r)))}catch(r){throw new Error(`its UI bundle did not load (${r instanceof Error?r.message:String(r)})`)}let n;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((r,i)=>{n=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??St)})])}finally{clearTimeout(n)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var Tt=V('<p class="text-sm text-muted-foreground"> </p>'),At=V('<div class="contents"></div> <!>',1);function se(e,t){Y(t,!0);let s=C(t,"preview",3,void 0),n=C(t,"quiet",3,!1);const r=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),d=g(null),b=g(null);R(()=>{if(!l(a)||!l(r))return;const k=l(a);let v=!1,T=null;return m(b,null),Et(k,{tag:l(r),ui:l(i),data:$(()=>t.data),entry:$(()=>t.entry),host:_t($(()=>t.entry),{status:wt,launch:vt,feedback:yt,summarise:kt,token:()=>at.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():m(d,o,!0)},o=>{v||m(b,o.message,!0)}),()=>{v=!0,T?.remove(),m(d,null)}}),R(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var y=At(),x=Z(y);it(x,k=>m(a,k),()=>l(a));var E=tt(x,2);{var w=k=>{var v=Tt(),T=st(v);q(()=>nt(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),W(k,v)};rt(E,k=>{l(b)&&!n()&&k(w)})}q(()=>ot(x,"data-plugin-element",l(r))),W(e,y),et()}const jt=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,J=/^\[Request interrupted by user/,It=/\u001b\[[0-9;?]*[A-Za-z]/g,L=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
2
+ `)[0].trim(),$t=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function Ut(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||M(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:L(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:L(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:L(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:$t(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:M(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||M(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function Lt(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
3
+ `):""}const j=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),Mt=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,H=e=>{const t=e.match(Mt);return t&&j(t[1])||null};function I(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function B(e){const t=I(e,"command-name");if(!t)return null;const s=I(e,"command-args");return s?`${t} ${s}`:t}function Ot(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(n=>({label:String(n?.label??""),description:String(n?.description??"")}))}))}function Rt(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([r,i])=>[r,String(i)]));const n={};for(const r of t.matchAll(/"([^"]+)"="([^"]*)"/g))n[r[1]]=r[2];return n}function qt(e){const t=[],s=new Map,n=new Map;let r=null,i=null,a=null,d=null,b=!1;const y=()=>{i=null},x=o=>(i||(i={kind:"turn",id:o.uuid,parts:[],at:o.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:b?"background":"captain"},b=!1,t.push(i),a=i),i),E=o=>{const p=x(o),u=p.parts[p.parts.length-1];if(u?.kind==="activity")return u;const c={kind:"activity",id:`${o.uuid}-a`,steps:[]};return p.parts.push(c),c},w=(o,p,u={})=>{y(),b=!1,t.push({kind:"user",id:o.uuid,text:p,at:o.timestamp,queued:!!u.queued,command:!!u.command})},k=(o,p,u,c=o.uuid)=>{i&&E(o).steps.push({kind:"context",id:c,label:p,detail:u})};for(const o of e){if(!o||typeof o!="object"||o.isSidechain)continue;const p=o.timestamp??null;switch(o.type){case"ai-title":r=o.aiTitle??r;break;case"user":{const u=o.message?.content;if(typeof u=="string")if(o.origin?.kind==="task-notification"||u.trimStart().startsWith("<task-notification>"))y(),b=!0;else if(o.isMeta){const c=H(u);c?w(o,c,{queued:!0}):k(o,"Context added",u)}else if(J.test(u.trim()))a&&(a.interrupted=!0);else{const c=B(u);if(c)w(o,c,{command:!0});else if(!u.includes("<local-command-stdout>")){const h=j(u);h&&w(o,h)}}else if(Array.isArray(u))for(const c of u)if(c?.type==="tool_result"){const h=Lt(c.content),f=s.get(c.tool_use_id);f&&(f.result=h,f.isError=!!c.is_error);const S=n.get(c.tool_use_id);S&&(S.answers=c.is_error?{}:Rt(o,h))}else if(c?.type==="text"){const h=String(c.text??""),f=H(h);if(J.test(h.trim()))a&&(a.interrupted=!0);else if(f)w(o,f,{queued:!0});else if(o.isMeta||o.sourceToolUseID){const S=h.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";k(o,S,h,`${o.uuid}-${S}`)}else{const S=j(h);S&&w(o,S)}}else c?.type==="image"&&w(o,"[image]");break}case"assistant":{for(const u of o.message?.content??[])if(u?.type==="thinking"||u?.type==="redacted_thinking"){const c=d&&p?Date.parse(p)-Date.parse(d):null;E(o).steps.push({kind:"thinking",id:`${o.uuid}-th`,ms:c})}else if(u?.type==="tool_use"&&u.name==="AskUserQuestion"){const c={kind:"question",id:u.id,questions:Ot(u.input),answers:null};n.set(u.id,c),x(o).parts.push(c)}else if(u?.type==="tool_use"){const c=Ut(String(u.name),u.input??{}),h={kind:"tool",id:u.id,name:String(u.name),...c,input:u.input,result:null,isError:!1};s.set(u.id,h),E(o).steps.push(h)}else if(u?.type==="text"){if(!String(u.text??"").trim())continue;x(o).parts.push({kind:"text",id:`${o.uuid}-t`,text:u.text})}break}case"attachment":{const u=o.attachment??{};if(u.type==="queued_command"&&typeof u.prompt=="string"&&(u.commandMode??"prompt")==="prompt"){const c=j(u.prompt);c&&w(o,c,{queued:!0})}else if(u.type==="hook_additional_context"){const c=Array.isArray(u.content)?u.content.join(`
4
+ `):String(u.content??"");k(o,`Hook added context${u.hookEvent?` (${u.hookEvent})`:""}`,c)}break}case"system":{if(o.subtype==="turn_duration")a&&(a.durationMs=o.durationMs??null,a.done=!0),y();else if(o.subtype==="away_summary")y(),t.push({kind:"notice",id:o.uuid,title:"While you were away",detail:String(o.content??""),at:o.timestamp});else if(o.subtype==="local_command"){const u=String(o.content??""),c=I(u,"local-command-stdout")??I(u,"local-command-stderr"),h=B(u);if(h)w(o,h,{command:!0});else if(c!==null){const f=c.replace(It,"").trim();f&&t.push({kind:"output",id:o.uuid,text:f,at:o.timestamp})}}break}}p&&(d=p)}const v=[];return{items:t.filter((o,p)=>{if(o.kind!=="turn"||o.trigger!=="background")return!0;const u=o.parts.filter(f=>f.kind==="text").map(f=>f.text).join(`
5
+ `).trim(),h=!o.parts.some(f=>f.kind==="question")&&(!u||jt.test(u));return v.push({id:o.id,at:o.at,durationMs:o.durationMs,done:o.done||p<t.length-1,outcome:h?"quiet":"reported"}),!h}),title:r,checks:v}}function ne(e){const t=new Map;let s=!1,n=0;for(const i of e){if(i.kind==="thinking"&&(s=!0,n+=i.ms??0),i.kind!=="tool")continue;const a=t.get(i.noun[0])??{n:0,noun:i.noun};a.n++,t.set(i.noun[0],a)}const r=[...t.values()].map(i=>`${i.n} ${i.n===1?i.noun[0]:i.noun[1]}`);return r.length?r.join(", "):s?n>=1e3?`Thought for ${Wt(n)}`:"Thought briefly":"Read some context"}function Wt(e){if(e==null||e<0)return"";const t=Math.round(e/1e3);if(t<60)return`${t}s`;const s=Math.floor(t/60);return s<60?`${s}m ${t%60}s`:`${Math.floor(s/60)}h ${s%60}m`}function re(e){const t=[];for(const s of e)if(s.kind==="turn"){for(const n of s.parts)if(n.kind==="activity")for(const r of n.steps)r.kind==="tool"&&r.result!==null&&r.name.startsWith("mcp__")&&t.push(r.id)}return t}const Nt=2,Q=e=>` ${e.replace(/\s+/g," ").trim()} `,z=e=>e[e.length-1]?.id??null,Ct=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),G=e=>e?.kind==="turn";function Pt(e,t){const s=new Map;return e.filter(n=>{if(n.state==="sending"||n.state==="failed")return!0;const r=Ct(t,n.after),i=t.slice(r+1);if(n.via==="inbox")return!i.some(G);const a=Q(n.text),d=s.get(a)??0;return i.filter(y=>y.kind==="user"&&Q(y.text).includes(a)).length>d?(s.set(a,d+1),!1):i.filter(y=>G(y)&&y.done).length<Nt})}function oe(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const K=6e3;class Dt{#t=g(null);get session(){return l(this.#t)}set session(t){m(this.#t,t,!0)}#e=g(null);get source(){return l(this.#e)}set source(t){m(this.#e,t,!0)}#s=g([]);get records(){return l(this.#s)}set records(t){m(this.#s,t)}#n=g("connecting");get connection(){return l(this.#n)}set connection(t){m(this.#n,t,!0)}#r=g(0);get resets(){return l(this.#r)}set resets(t){m(this.#r,t,!0)}#o=g(!1);get synced(){return l(this.#o)}set synced(t){m(this.#o,t,!0)}#i=g(N([]));get commands(){return l(this.#i)}set commands(t){m(this.#i,t,!0)}#a=_(()=>qt(this.records));get chat(){return l(this.#a)}set chat(t){m(this.#a,t)}#u=_(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return l(this.#u)}set working(t){m(this.#u,t)}#c=_(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&this.working);get atWork(){return l(this.#c)}set atWork(t){m(this.#c,t)}#l=g(N([]));get outbox(){return l(this.#l)}set outbox(t){m(this.#l,t,!0)}#d=_(()=>Pt(this.outbox,this.chat.items));get pending(){return l(this.#d)}set pending(t){m(this.#d,t)}close=null;connect(){if(this.close)return()=>{};this.synced=!1;const t=s=>{s.addEventListener("session",n=>{this.session=JSON.parse(n.data),this.connection="open"}),s.addEventListener("reset",n=>{this.source=JSON.parse(n.data),this.records=[],this.resets++}),s.addEventListener("records",n=>{const r=[...this.records,...JSON.parse(n.data)];this.records=r.length>K?r.slice(-K):r}),s.addEventListener("synced",()=>this.synced=!0)};return this.close=ut("/api/firstmate/chat",t,s=>this.connection=s),this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}async send(t,s,n,r){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:z(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],n,r)}retry(t,s,n){const r=this.outbox.find(i=>i.id===t);!r||r.state!=="failed"||(r.after=z(this.chat.items),this.deliver(r,s,n))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,n){t.state="sending",t.error=null;const r=t.via==="inbox"?await Jt(t.text,s):await Ft("/api/firstmate/input",s,{text:t.text});return r.ok?t.state=n&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=r.error),r}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const ie=new Dt;async function Ft(e,t,s){try{const n=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify(s??{})});return n.ok?{ok:!0}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Jt(e,t,s=null,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[A]:t},body:JSON.stringify({text:e,taskId:s})});return r.ok?{ok:!0,pending:r.status===202}:{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{se as P,O as a,X as b,ne as c,Wt as d,ie as e,te as f,Ft as g,re as h,oe as p,ee as r,Jt as s};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{s as g,r as m,p}from"./DtxmqMMR.js";import{I as u}from"./CDH1GGn5.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./DFFTcnMk.js";import{p as i}from"./DMDL4MuU.js";import{i as s}from"./BNvTK-L4.js";import{D as _,a as D}from"./D9coJX5q.js";var b=new Set(["$$slots","$$events","$$legacy"]);function I(a,e){let n=m(e,b);const t={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9"}]]};u(a,g(()=>n,{get icon(){return t}}))}function L(a,e){f(e,!0);let n=p(e,"project",3,null),t=v(!1);const c=o(()=>i.data.sessionToken??"");{let l=o(()=>s.view(i.data.inbox)?.canAnswer??!1),d=o(()=>s.errors[e.card.id]??null);_(a,{get card(){return e.card},get project(){return n()},get expanded(){return r(t)},get canAnswer(){return r(l)},get error(){return r(d)},get now(){return e.now},onAgree:()=>D(e.card,r(c)),get onLater(){return e.onLater},onClose:()=>s.answer(e.card,"close",null,r(c)),onToggle:()=>x(t,!r(t))})}w()}export{I as G,L as O};
1
+ import"./DsnmJJEf.js";import{s as g,r as m,p}from"./DtxmqMMR.js";import{I as u}from"./CDH1GGn5.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./DFFTcnMk.js";import{p as i}from"./Mzyfuo21.js";import{i as s}from"./BNvTK-L4.js";import{D as _,a as D}from"./CTb_ccym.js";var b=new Set(["$$slots","$$events","$$legacy"]);function I(a,e){let n=m(e,b);const t={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9"}]]};u(a,g(()=>n,{get icon(){return t}}))}function L(a,e){f(e,!0);let n=p(e,"project",3,null),t=v(!1);const c=o(()=>i.data.sessionToken??"");{let l=o(()=>s.view(i.data.inbox)?.canAnswer??!1),d=o(()=>s.errors[e.card.id]??null);_(a,{get card(){return e.card},get project(){return n()},get expanded(){return r(t)},get canAnswer(){return r(l)},get error(){return r(d)},get now(){return e.now},onAgree:()=>D(e.card,r(c)),get onLater(){return e.onLater},onClose:()=>s.answer(e.card,"close",null,r(c)),onToggle:()=>x(t,!r(t))})}w()}export{I as G,L as O};