@chrisjowen/wheelhouse 0.21.0 → 0.22.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 (421) hide show
  1. package/build/client/_app/immutable/chunks/{Bvjx1IR1.js → 8WgbCzWs.js} +1 -1
  2. package/build/client/_app/immutable/chunks/8WgbCzWs.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/8WgbCzWs.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{Rgz0--W-.js → B1V3Ajhv.js} +1 -1
  5. package/build/client/_app/immutable/chunks/B1V3Ajhv.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/B1V3Ajhv.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{BQ56-tK5.js → BACvplXC.js} +2 -2
  8. package/build/client/_app/immutable/chunks/BACvplXC.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BACvplXC.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{BG4ZPCNg.js → BBYXgHkS.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BBYXgHkS.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BBYXgHkS.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{CCwsNQVJ.js → BVzdpycb.js} +1 -1
  14. package/build/client/_app/immutable/chunks/BVzdpycb.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BVzdpycb.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{DHpOAFQk.js → BXnxklRE.js} +1 -1
  17. package/build/client/_app/immutable/chunks/BXnxklRE.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BXnxklRE.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{Do3aY-pJ.js → BvA9ozND.js} +1 -1
  20. package/build/client/_app/immutable/chunks/BvA9ozND.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BvA9ozND.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{CVZBXS_-.js → C00jDMn9.js} +1 -1
  23. package/build/client/_app/immutable/chunks/C00jDMn9.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/{CVZBXS_-.js.gz → C00jDMn9.js.gz} +0 -0
  25. package/build/client/_app/immutable/chunks/{De2vcdXM.js → C6jVoo_e.js} +1 -1
  26. package/build/client/_app/immutable/chunks/C6jVoo_e.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/C6jVoo_e.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{BPcURVOt.js → CBDCrDpK.js} +1 -1
  29. package/build/client/_app/immutable/chunks/CBDCrDpK.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CBDCrDpK.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{CPGokFxi.js → CCIw75Yv.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CCIw75Yv.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CCIw75Yv.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{bFJ0wt-E.js → CFTCozxo.js} +1 -1
  35. package/build/client/_app/immutable/chunks/CFTCozxo.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CFTCozxo.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{yNn5dmAl.js → CNX1VoIh.js} +1 -1
  38. package/build/client/_app/immutable/chunks/CNX1VoIh.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CNX1VoIh.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{B-0qqE45.js → CNvNrJS-.js} +1 -1
  41. package/build/client/_app/immutable/chunks/CNvNrJS-.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/CNvNrJS-.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{CIMsnGRb.js → CUE4X2zW.js} +1 -1
  44. package/build/client/_app/immutable/chunks/CUE4X2zW.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/CUE4X2zW.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{DupmVJLw.js → CUngZJag.js} +1 -1
  47. package/build/client/_app/immutable/chunks/CUngZJag.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/CUngZJag.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{YAQH2TLS.js → Cbb01QYB.js} +1 -1
  50. package/build/client/_app/immutable/chunks/Cbb01QYB.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/Cbb01QYB.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/{BOy3K7xN.js → CwMBkOM6.js} +1 -1
  53. package/build/client/_app/immutable/chunks/CwMBkOM6.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/CwMBkOM6.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{1c_L7VrA.js → Duo3wamr.js} +1 -1
  56. package/build/client/_app/immutable/chunks/Duo3wamr.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/Duo3wamr.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{CeEmbWm6.js → H9HCKj99.js} +1 -1
  59. package/build/client/_app/immutable/chunks/H9HCKj99.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/H9HCKj99.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/{DmM4WIRE.js → s22ocs02.js} +1 -1
  62. package/build/client/_app/immutable/chunks/s22ocs02.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/s22ocs02.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/{OLaJBqkk.js → s_pTaNbp.js} +1 -1
  65. package/build/client/_app/immutable/chunks/s_pTaNbp.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/s_pTaNbp.js.gz +0 -0
  67. package/build/client/_app/immutable/entry/{app.DFIrP568.js → app.uuGtI25T.js} +2 -2
  68. package/build/client/_app/immutable/entry/app.uuGtI25T.js.br +0 -0
  69. package/build/client/_app/immutable/entry/app.uuGtI25T.js.gz +0 -0
  70. package/build/client/_app/immutable/entry/start.BSrz3Y1X.js +1 -0
  71. package/build/client/_app/immutable/entry/start.BSrz3Y1X.js.br +0 -0
  72. package/build/client/_app/immutable/entry/start.BSrz3Y1X.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/{0.DnTfQD5x.js → 0.DHLw1DuY.js} +1 -1
  74. package/build/client/_app/immutable/nodes/0.DHLw1DuY.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/0.DHLw1DuY.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/{1.DYf3eeEz.js → 1.BuIhidhM.js} +1 -1
  77. package/build/client/_app/immutable/nodes/{1.DYf3eeEz.js.br → 1.BuIhidhM.js.br} +0 -0
  78. package/build/client/_app/immutable/nodes/1.BuIhidhM.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{10.Tup2MsME.js → 10.E-WSN4T5.js} +1 -1
  80. package/build/client/_app/immutable/nodes/10.E-WSN4T5.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/10.E-WSN4T5.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{11.CeQYv8eh.js → 11.CvugthMP.js} +1 -1
  83. package/build/client/_app/immutable/nodes/11.CvugthMP.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/11.CvugthMP.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{12.B8vOqWp-.js → 12.Fzr8RW6d.js} +1 -1
  86. package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/12.Fzr8RW6d.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{13.CWPNAkXZ.js → 13.BjOr1wFE.js} +1 -1
  89. package/build/client/_app/immutable/nodes/13.BjOr1wFE.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/13.BjOr1wFE.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{14.BomHFWNP.js → 14.DcPZGJeS.js} +1 -1
  92. package/build/client/_app/immutable/nodes/14.DcPZGJeS.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/14.DcPZGJeS.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{15.D7wICcdV.js → 15.Bq0AXBlK.js} +1 -1
  95. package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/15.Bq0AXBlK.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{16.CwYX0DD0.js → 16.GK549RnR.js} +1 -1
  98. package/build/client/_app/immutable/nodes/16.GK549RnR.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/16.GK549RnR.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{17.CP6SSMQz.js → 17.C6Xme4bR.js} +1 -1
  101. package/build/client/_app/immutable/nodes/17.C6Xme4bR.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/17.C6Xme4bR.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/{18.dinO_mGJ.js → 18.DA2gN3Zp.js} +1 -1
  104. package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/18.DA2gN3Zp.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{19.B3LIDplG.js → 19.OMjVNIrY.js} +1 -1
  107. package/build/client/_app/immutable/nodes/19.OMjVNIrY.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/19.OMjVNIrY.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{2.Ds7AG1Sp.js → 2.OhKE5yg3.js} +1 -1
  110. package/build/client/_app/immutable/nodes/2.OhKE5yg3.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/2.OhKE5yg3.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{21.GeOCbpc_.js → 21.C2Elewbr.js} +1 -1
  113. package/build/client/_app/immutable/nodes/21.C2Elewbr.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/21.C2Elewbr.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{23.BhQVufuj.js → 23.BQ06Ajmr.js} +1 -1
  116. package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/23.BQ06Ajmr.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/{24.D1qQjP2S.js → 24.CyKUK8Wm.js} +1 -1
  119. package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/24.CyKUK8Wm.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{25.DjtNBrX-.js → 25.BfpY0ghB.js} +1 -1
  122. package/build/client/_app/immutable/nodes/25.BfpY0ghB.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/{25.DjtNBrX-.js.gz → 25.BfpY0ghB.js.gz} +0 -0
  124. package/build/client/_app/immutable/nodes/{26.1W95w8Kh.js → 26.Drzj3UR-.js} +1 -1
  125. package/build/client/_app/immutable/nodes/26.Drzj3UR-.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/26.Drzj3UR-.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{27.DuJzt0BC.js → 27.DHASVqGW.js} +1 -1
  128. package/build/client/_app/immutable/nodes/27.DHASVqGW.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/27.DHASVqGW.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{28.BcUVR-We.js → 28.BNb2AUP8.js} +1 -1
  131. package/build/client/_app/immutable/nodes/28.BNb2AUP8.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/28.BNb2AUP8.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/{29.CSQdxeSK.js → 29.jpTIxdq3.js} +1 -1
  134. package/build/client/_app/immutable/nodes/29.jpTIxdq3.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/29.jpTIxdq3.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/{3.Dysdqlw7.js → 3.pAUOFGEO.js} +1 -1
  137. package/build/client/_app/immutable/nodes/3.pAUOFGEO.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/3.pAUOFGEO.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/{30.BFp98q1T.js → 30.BQ2dL-8_.js} +1 -1
  140. package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/30.BQ2dL-8_.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{31.DMpLzXiB.js → 31.C5KnXHFg.js} +1 -1
  143. package/build/client/_app/immutable/nodes/31.C5KnXHFg.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/31.C5KnXHFg.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/{32.CnTU-Fay.js → 32.D5rROnzU.js} +1 -1
  146. package/build/client/_app/immutable/nodes/32.D5rROnzU.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/32.D5rROnzU.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/{34.D2flYQ6C.js → 34.DL3OSrSy.js} +1 -1
  149. package/build/client/_app/immutable/nodes/34.DL3OSrSy.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/34.DL3OSrSy.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/{4.CWkCY0Gp.js → 4.BtyNCyAc.js} +1 -1
  152. package/build/client/_app/immutable/nodes/4.BtyNCyAc.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/4.BtyNCyAc.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/{5.8mHB8XXE.js → 5.Cg22lw4L.js} +1 -1
  155. package/build/client/_app/immutable/nodes/5.Cg22lw4L.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/5.Cg22lw4L.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/{8.DkWdKRyC.js → 8.BohzG6Ll.js} +1 -1
  158. package/build/client/_app/immutable/nodes/8.BohzG6Ll.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/{8.DkWdKRyC.js.gz → 8.BohzG6Ll.js.gz} +0 -0
  160. package/build/client/_app/immutable/nodes/9.tKLlJBbl.js +9 -0
  161. package/build/client/_app/immutable/nodes/9.tKLlJBbl.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/9.tKLlJBbl.js.gz +0 -0
  163. package/build/client/_app/version.json +1 -1
  164. package/build/client/_app/version.json.br +0 -0
  165. package/build/client/_app/version.json.gz +0 -0
  166. package/build/handler.js +4 -4
  167. package/build/index.js +4 -4
  168. package/build/server/chunks/chunks/{detail.js-DxYLE5pO.js → detail.js-h2WY9B-a.js} +2 -2
  169. package/build/server/chunks/chunks/{feedback.js-CXkVSg-e.js → feedback.js-DtdkVGaR.js} +2 -2
  170. package/build/server/chunks/chunks/{internal.js-P5l_A-5A.js → internal.js-znYfQ1HJ.js} +3 -3
  171. package/build/server/chunks/chunks/{marketplace-service.js-CGVSX8p6.js → marketplace-service.js-qgfTmeMS.js} +2 -2
  172. package/build/server/chunks/chunks/{package.js-BDDNJbGn.js → package.js-B5dZmzVs.js} +2 -2
  173. package/build/server/chunks/chunks/{page.js-BgfXtu-S.js → page.js-C1VI5Agm.js} +2 -2
  174. package/build/server/chunks/chunks/{previewhelper2.js-NdpLxkBo.js → previewhelper2.js-pH32HExn.js} +2 -2
  175. package/build/server/chunks/chunks/{repo.js-CyflQovd.js → repo.js-TzM_q4Ml.js} +2 -2
  176. package/build/server/chunks/chunks/{runtime.js-D2Y_y1vM.js → runtime.js-iskKh3WS.js} +142 -14
  177. package/build/server/chunks/chunks/{service.js-CcUA1MNf.js → service.js-B8uVAAJO.js} +2 -2
  178. package/build/server/chunks/chunks/{service2.js-Bcz1_dhB.js → service2.js-DJscZN-9.js} +2 -2
  179. package/build/server/chunks/chunks/{settings.js-0qSOXxJ2.js → settings.js-jCWCFSel.js} +2 -2
  180. package/build/server/chunks/chunks/{starter.js-B1Io2RMM.js → starter.js-CNnOITdO.js} +3 -3
  181. package/build/server/chunks/chunks/{view.js-BgivR0p2.js → view.js-Dt9V6vBw.js} +2 -2
  182. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-CtVCWCgm.js → _server.ts.js-BWmPum-r.js} +3 -3
  183. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-DTQ6l-_K.js → _server.ts.js-CHr6cC6-.js} +4 -4
  184. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-DVqDb5ph.js → _server.ts.js-DMcUFEkU.js} +3 -3
  185. package/build/server/chunks/entries/endpoints/api/crew/{_server.ts.js-DVKRUKVj.js → _server.ts.js--5-v-HEh.js} +3 -3
  186. package/build/server/chunks/entries/endpoints/api/crew/messages/{_server.ts.js-bZHq-SMc.js → _server.ts.js-Hzw53ZE9.js} +3 -3
  187. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-DTxFJR1V.js → _server.ts.js-DQs18R-c.js} +3 -3
  188. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-du3b3Ua-.js → _server.ts.js-C3h1JVSm.js} +3 -3
  189. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-DNDT3Z4d.js → _server.ts.js-0fuU3CZy.js} +3 -3
  190. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/{_server.ts.js-B8O-PapK.js → _server.ts.js-BIpJu9lv.js} +3 -3
  191. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/{_server.ts.js-n8fHjcWz.js → _server.ts.js-1qStOVIz.js} +3 -3
  192. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/{_server.ts.js-uLIM5Rap.js → _server.ts.js-DPB-BXzL.js} +3 -3
  193. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-BmfvCF25.js → _server.ts.js-PQdfiXhT.js} +3 -3
  194. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DLvuxrgl.js → _server.ts.js-CgwfyIcM.js} +3 -3
  195. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-BdE7Nbi8.js → _server.ts.js-DB-goAvl.js} +3 -3
  196. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-C5hgha-_.js → _server.ts.js-vfQiQrWY.js} +3 -3
  197. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-BuYdy0_e.js → _server.ts.js-CH9cWr6L.js} +3 -3
  198. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-D8ix-KMV.js → _server.ts.js-DYIjWXk_.js} +3 -3
  199. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-DCrszJBd.js → _server.ts.js-Dwj64bp4.js} +3 -3
  200. package/build/server/chunks/entries/endpoints/api/firstmate/signin/{_server.ts.js-DiRR2F11.js → _server.ts.js-2oBSUOwH.js} +3 -3
  201. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-uy69dgQl.js → _server.ts.js-BOm196n5.js} +3 -3
  202. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-aWmREBg4.js → _server.ts.js-Dzh2dz63.js} +3 -3
  203. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BxMzoJpi.js → _server.ts.js-BVcRcLBW.js} +3 -3
  204. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-Dyd0MZRM.js → _server.ts.js-mtSppklX.js} +3 -3
  205. package/build/server/chunks/entries/endpoints/api/inbox/following/{_server.ts.js-B_cXfz2Y.js → _server.ts.js-CeMDSH3a.js} +3 -3
  206. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-ZDiOr7_Q.js → _server.ts.js-BJghUuJZ.js} +3 -3
  207. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-CUma0b0j.js → _server.ts.js-CaEPa3qc.js} +3 -3
  208. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-fjQ2v9Ce.js → _server.ts.js-BXk4ftaK.js} +3 -3
  209. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-WZowbKT7.js → _server.ts.js-Cx9tobhn.js} +4 -4
  210. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DzBIDGRQ.js → _server.ts.js-CxnHx_UG.js} +5 -5
  211. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-BiHE49Iv.js → _server.ts.js-zzleI1kG.js} +3 -3
  212. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DLIcirzt.js → _server.ts.js-DDL6pYDf.js} +2 -2
  213. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-utxduCZr.js → _server.ts.js-Cjokk0EA.js} +3 -3
  214. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-f0B4cC8P.js → _server.ts.js-DW1Y6-fs.js} +2 -2
  215. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-DnD5DtX6.js → _server.ts.js-C8cuYPAi.js} +3 -3
  216. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DpihWANb.js → _server.ts.js-BOoflE2z.js} +2 -2
  217. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-KUYI13Aa.js → _server.ts.js-DdblLh1l.js} +2 -2
  218. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-DhVmKcI9.js → _server.ts.js-aoiQJ5ui.js} +4 -4
  219. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-D_tX9zNT.js → _server.ts.js-B8dcLLk8.js} +4 -4
  220. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-D6rcu4Aq.js → _server.ts.js-CBvDp3iX.js} +4 -4
  221. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-CarsSrsd.js → _server.ts.js-C1Vy8kpH.js} +3 -3
  222. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-Dhu23C6L.js → _server.ts.js-D0JnNPDZ.js} +2 -2
  223. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-BjSLckyg.js → _server.ts.js-DyeK2SOL.js} +3 -3
  224. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CEhSuDsm.js → _server.ts.js-BDnl2dEb.js} +4 -4
  225. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-De82q9RO.js → _server.ts.js-C2YEnDJy.js} +4 -4
  226. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-CmLpNwYf.js → _server.ts.js-DYvELKvA.js} +4 -4
  227. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DJ3zl97H.js → _server.ts.js-Bu7EKOYw.js} +4 -4
  228. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-RAts5XHT.js → _server.ts.js-Ks8nxeIT.js} +4 -4
  229. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-DrIMVE1H.js → _server.ts.js-Cj3-7RBt.js} +4 -4
  230. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/{_server.ts.js-1Ds5x_14.js → _server.ts.js-BKuYRWDZ.js} +3 -3
  231. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-DmR6P1jj.js → _server.ts.js-qlyQmm3t.js} +3 -3
  232. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-L-UHmfql.js → _server.ts.js-b8w5BaH9.js} +3 -3
  233. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-gtT9iS_p.js → _server.ts.js-CbRX-qIU.js} +4 -4
  234. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-C2Y5B6rW.js → _server.ts.js-DvTNqcoC.js} +3 -3
  235. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-c-TVwbRQ.js → _server.ts.js-BajPdJ_c.js} +4 -4
  236. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-D29QxZKX.js → _server.ts.js-CnqOshFr.js} +3 -3
  237. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/{_server.ts.js-Cy9CBznv.js → _server.ts.js-C5v9kl6f.js} +3 -3
  238. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-_yBEHTVc.js → _server.ts.js-mRxlCUEZ.js} +3 -3
  239. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BEz3gaAM.js → _server.ts.js-QYrbIt8N.js} +3 -3
  240. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CrGpz4qm.js → _server.ts.js-yjFea8cM.js} +3 -3
  241. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-sH01ulMQ.js → _server.ts.js-NaaYRC-R.js} +4 -4
  242. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BOVzuP-v.js → _server.ts.js-B33Rq8m0.js} +3 -3
  243. package/build/server/chunks/entries/endpoints/api/wh-events/{_server.ts.js-CdpcII5l.js → _server.ts.js-IkzH2tH_.js} +3 -3
  244. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-BPQoTrFi.js → _server.ts.js-GxOCpSB8.js} +2 -2
  245. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-B6sAaEgs.js → _server.ts.js-BYjgkknY.js} +2 -2
  246. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-Bn4SoRIm.js → _server.ts.js-IaA8CDCk.js} +2 -2
  247. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-AYH3pZmL.js → _server.ts.js-BmgMztzl.js} +3 -3
  248. package/build/server/chunks/entries/{hooks.server.js-D6a2gyRp.js → hooks.server.js-CqRRwrz6.js} +5 -5
  249. package/build/server/chunks/entries/pages/{_layout.server.ts.js-CvHliDGo.js → _layout.server.ts.js-BwBuidlK.js} +3 -3
  250. package/build/server/chunks/entries/pages/{_page.server.ts.js-BSjI8PFH.js → _page.server.ts.js-B25LNBfB.js} +2 -2
  251. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-CugjhhJ0.js → _page.server.ts.js-VoIJpJDg.js} +2 -2
  252. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-DRIsp4Z8.js → _page.server.ts.js-D8B_Ju1Z.js} +2 -2
  253. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-Cy8Z9bx2.js → _page.server.ts.js-CybDTQNP.js} +2 -2
  254. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-CBlLK4ps.js → _page.server.ts.js-CximdI4O.js} +2 -2
  255. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-CO4Z6ira.js → _page.server.ts.js-Dnr6wtnN.js} +2 -2
  256. package/build/server/chunks/entries/pages/headroom/{_page.svelte.js-Bax8UYm0.js → _page.svelte.js-vvwNnV07.js} +122 -15
  257. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-DGZW2L8Q.js → _page.server.ts.js-DjZU2DUj.js} +2 -2
  258. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-vWTk7VOf.js → _page.server.ts.js-CA69sVMV.js} +2 -2
  259. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-PlLgOOyO.js → _page.server.ts.js-ZsfeRt8m.js} +3 -3
  260. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-BLuhmEnf.js → _page.server.ts.js-B4tTrS9b.js} +3 -3
  261. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-qgMZkmkx.js → _page.server.ts.js-D_EEOAsF.js} +4 -4
  262. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-935RdFbz.js → _page.server.ts.js-Du3_ZEEX.js} +2 -2
  263. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-CSdxnjGK.js → _page.server.ts.js-CZBDXh7w.js} +2 -2
  264. package/build/server/chunks/entries/pages/settings/chat/{_page.server.ts.js-opY1gfOw.js → _page.server.ts.js-DjBwvkNT.js} +2 -2
  265. package/build/server/chunks/entries/pages/settings/events/{_page.server.ts.js-DYo-qcBu.js → _page.server.ts.js-C5XnUVOt.js} +2 -2
  266. package/build/server/chunks/entries/pages/settings/firstmate/{_page.server.ts.js-C8Tad0XT.js → _page.server.ts.js-BUDD0h_g.js} +2 -2
  267. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-QvEiw0LD.js → _page.server.ts.js-VjLJiwM9.js} +2 -2
  268. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-Cul9MxiY.js → _page.server.ts.js-uvSSB2Oi.js} +2 -2
  269. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-iJh09d16.js → _page.server.ts.js-CKiqKIDc.js} +2 -2
  270. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-DKYLb57v.js → _page.server.ts.js-Bs0UiYXi.js} +2 -2
  271. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-D9a8uPep.js → _page.server.ts.js-CUlxKtsU.js} +2 -2
  272. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-D67sZMdF.js → _page.server.ts.js-kecZ3ABg.js} +3 -3
  273. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DAkSnSQA.js → _page.server.ts.js-RTy8XT8u.js} +3 -3
  274. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CQE8Ijr4.js → _page.server.ts.js-Pqf3ZwCG.js} +2 -2
  275. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-Db0rnwb5.js → _page.server.ts.js-CwWtq4ff.js} +2 -2
  276. package/build/server/chunks/{handler-D0Goy_gj.js → handler-OfGhsd7S.js} +3 -3
  277. package/build/server/chunks/{index.js-pXu9ObUY.js → index.js-5hwgreGG.js} +2 -2
  278. package/build/server/chunks/{manifest.js-Do1T4-VF.js → manifest.js-DWiMrbal.js} +100 -100
  279. package/build/server/chunks/nodes/{0.js-BZTsbmJz.js → 0.js-CMzJ5YpG.js} +6 -6
  280. package/build/server/chunks/nodes/{1.js-CdP0WXa2.js → 1.js-CoCqnACa.js} +2 -2
  281. package/build/server/chunks/nodes/{10.js-CNrino7f.js → 10.js-CV5WUHV6.js} +5 -5
  282. package/build/server/chunks/nodes/{11.js-DGF3qkTE.js → 11.js-DuaSbp-S.js} +2 -2
  283. package/build/server/chunks/nodes/{12.js-1BjONRNw.js → 12.js-XW39r-BU.js} +2 -2
  284. package/build/server/chunks/nodes/{13.js-DKhpmZJk.js → 13.js-CNwOSurV.js} +5 -5
  285. package/build/server/chunks/nodes/{14.js-C0nSMejk.js → 14.js-B60MQoH_.js} +6 -6
  286. package/build/server/chunks/nodes/{15.js-Bv9h9CZN.js → 15.js-YPgyj4p-.js} +6 -6
  287. package/build/server/chunks/nodes/{16.js-CQJ-fJmL.js → 16.js-mT1tG4MP.js} +7 -7
  288. package/build/server/chunks/nodes/{17.js-DfTBudeO.js → 17.js-CjbiiilI.js} +6 -6
  289. package/build/server/chunks/nodes/{18.js-CPQ8qvV7.js → 18.js-D0fseh8H.js} +7 -7
  290. package/build/server/chunks/nodes/{19.js-QxfpabCN.js → 19.js-CVpld47s.js} +2 -2
  291. package/build/server/chunks/nodes/{2.js-DHnUGSut.js → 2.js-CFdtvdkb.js} +5 -5
  292. package/build/server/chunks/nodes/{21.js-CyU03Rv0.js → 21.js-DS5xmOBk.js} +5 -5
  293. package/build/server/chunks/nodes/{23.js-Duh3S-2m.js → 23.js-CD-OGmM6.js} +5 -5
  294. package/build/server/chunks/nodes/{24.js-BSW5HPZi.js → 24.js-c8wXfmlV.js} +2 -2
  295. package/build/server/chunks/nodes/{25.js-D-_N0Mbw.js → 25.js-B59EsG7D.js} +5 -5
  296. package/build/server/chunks/nodes/{26.js-BvY1ynuu.js → 26.js-DkHqtg17.js} +7 -7
  297. package/build/server/chunks/nodes/{27.js-CkuIeOqp.js → 27.js-CxaZun20.js} +5 -5
  298. package/build/server/chunks/nodes/{28.js-CITEOjWA.js → 28.js-CywEF58D.js} +5 -5
  299. package/build/server/chunks/nodes/{29.js-v2pVe4SR.js → 29.js-CZ_UpAay.js} +6 -6
  300. package/build/server/chunks/nodes/{3.js-CCBAkyWc.js → 3.js-CN1M_JdV.js} +2 -2
  301. package/build/server/chunks/nodes/{30.js-CqZkNWNo.js → 30.js-Di1OUQf9.js} +4 -4
  302. package/build/server/chunks/nodes/{31.js-D6hGifSX.js → 31.js-Cy0B83mg.js} +6 -6
  303. package/build/server/chunks/nodes/{32.js-DUZFV2hq.js → 32.js-CnFTWdO1.js} +6 -6
  304. package/build/server/chunks/nodes/{33.js-fhp8akGp.js → 33.js-2Yv4Z1FK.js} +5 -5
  305. package/build/server/chunks/nodes/{34.js-vu6Q9-ea.js → 34.js-DnNFCPcR.js} +5 -5
  306. package/build/server/chunks/nodes/{4.js-CHh9z8tT.js → 4.js-CQm39RYP.js} +5 -5
  307. package/build/server/chunks/nodes/{5.js-BBqBq22l.js → 5.js-CqcHx4uC.js} +5 -5
  308. package/build/server/chunks/nodes/{7.js-BI4oQA5p.js → 7.js-BsPk-yGL.js} +4 -4
  309. package/build/server/chunks/nodes/{8.js-DA9me9XO.js → 8.js-B5oF6ymd.js} +5 -5
  310. package/build/server/chunks/nodes/{9.js-BoVoGe6z.js → 9.js-C8L8k8Gd.js} +6 -6
  311. package/dist/cli.js +1 -1
  312. package/dist/wh-vault.js +1 -1
  313. package/firstmate-extension/firstmate-extension.json +1 -1
  314. package/package.json +1 -1
  315. package/skills/manage-wheelhouse/references/operations.md +2 -2
  316. package/build/client/_app/immutable/chunks/1c_L7VrA.js.br +0 -0
  317. package/build/client/_app/immutable/chunks/1c_L7VrA.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/B-0qqE45.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/B-0qqE45.js.gz +0 -0
  320. package/build/client/_app/immutable/chunks/BG4ZPCNg.js.br +0 -0
  321. package/build/client/_app/immutable/chunks/BG4ZPCNg.js.gz +0 -0
  322. package/build/client/_app/immutable/chunks/BOy3K7xN.js.br +0 -0
  323. package/build/client/_app/immutable/chunks/BOy3K7xN.js.gz +0 -0
  324. package/build/client/_app/immutable/chunks/BPcURVOt.js.br +0 -0
  325. package/build/client/_app/immutable/chunks/BPcURVOt.js.gz +0 -0
  326. package/build/client/_app/immutable/chunks/BQ56-tK5.js.br +0 -0
  327. package/build/client/_app/immutable/chunks/BQ56-tK5.js.gz +0 -0
  328. package/build/client/_app/immutable/chunks/Bvjx1IR1.js.br +0 -0
  329. package/build/client/_app/immutable/chunks/Bvjx1IR1.js.gz +0 -0
  330. package/build/client/_app/immutable/chunks/CCwsNQVJ.js.br +0 -0
  331. package/build/client/_app/immutable/chunks/CCwsNQVJ.js.gz +0 -0
  332. package/build/client/_app/immutable/chunks/CIMsnGRb.js.br +0 -0
  333. package/build/client/_app/immutable/chunks/CIMsnGRb.js.gz +0 -0
  334. package/build/client/_app/immutable/chunks/CPGokFxi.js.br +0 -0
  335. package/build/client/_app/immutable/chunks/CPGokFxi.js.gz +0 -0
  336. package/build/client/_app/immutable/chunks/CVZBXS_-.js.br +0 -0
  337. package/build/client/_app/immutable/chunks/CeEmbWm6.js.br +0 -0
  338. package/build/client/_app/immutable/chunks/CeEmbWm6.js.gz +0 -0
  339. package/build/client/_app/immutable/chunks/DHpOAFQk.js.br +0 -0
  340. package/build/client/_app/immutable/chunks/DHpOAFQk.js.gz +0 -0
  341. package/build/client/_app/immutable/chunks/De2vcdXM.js.br +0 -0
  342. package/build/client/_app/immutable/chunks/De2vcdXM.js.gz +0 -0
  343. package/build/client/_app/immutable/chunks/DmM4WIRE.js.br +0 -0
  344. package/build/client/_app/immutable/chunks/DmM4WIRE.js.gz +0 -0
  345. package/build/client/_app/immutable/chunks/Do3aY-pJ.js.br +0 -0
  346. package/build/client/_app/immutable/chunks/Do3aY-pJ.js.gz +0 -0
  347. package/build/client/_app/immutable/chunks/DupmVJLw.js.br +0 -0
  348. package/build/client/_app/immutable/chunks/DupmVJLw.js.gz +0 -0
  349. package/build/client/_app/immutable/chunks/OLaJBqkk.js.br +0 -0
  350. package/build/client/_app/immutable/chunks/OLaJBqkk.js.gz +0 -0
  351. package/build/client/_app/immutable/chunks/Rgz0--W-.js.br +0 -0
  352. package/build/client/_app/immutable/chunks/Rgz0--W-.js.gz +0 -0
  353. package/build/client/_app/immutable/chunks/YAQH2TLS.js.br +0 -2
  354. package/build/client/_app/immutable/chunks/YAQH2TLS.js.gz +0 -0
  355. package/build/client/_app/immutable/chunks/bFJ0wt-E.js.br +0 -0
  356. package/build/client/_app/immutable/chunks/bFJ0wt-E.js.gz +0 -0
  357. package/build/client/_app/immutable/chunks/yNn5dmAl.js.br +0 -0
  358. package/build/client/_app/immutable/chunks/yNn5dmAl.js.gz +0 -0
  359. package/build/client/_app/immutable/entry/app.DFIrP568.js.br +0 -0
  360. package/build/client/_app/immutable/entry/app.DFIrP568.js.gz +0 -0
  361. package/build/client/_app/immutable/entry/start.C06u36g3.js +0 -1
  362. package/build/client/_app/immutable/entry/start.C06u36g3.js.br +0 -0
  363. package/build/client/_app/immutable/entry/start.C06u36g3.js.gz +0 -0
  364. package/build/client/_app/immutable/nodes/0.DnTfQD5x.js.br +0 -0
  365. package/build/client/_app/immutable/nodes/0.DnTfQD5x.js.gz +0 -0
  366. package/build/client/_app/immutable/nodes/1.DYf3eeEz.js.gz +0 -0
  367. package/build/client/_app/immutable/nodes/10.Tup2MsME.js.br +0 -0
  368. package/build/client/_app/immutable/nodes/10.Tup2MsME.js.gz +0 -0
  369. package/build/client/_app/immutable/nodes/11.CeQYv8eh.js.br +0 -0
  370. package/build/client/_app/immutable/nodes/11.CeQYv8eh.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/12.B8vOqWp-.js.br +0 -0
  372. package/build/client/_app/immutable/nodes/12.B8vOqWp-.js.gz +0 -0
  373. package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js.br +0 -0
  374. package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js.gz +0 -0
  375. package/build/client/_app/immutable/nodes/14.BomHFWNP.js.br +0 -0
  376. package/build/client/_app/immutable/nodes/14.BomHFWNP.js.gz +0 -0
  377. package/build/client/_app/immutable/nodes/15.D7wICcdV.js.br +0 -0
  378. package/build/client/_app/immutable/nodes/15.D7wICcdV.js.gz +0 -0
  379. package/build/client/_app/immutable/nodes/16.CwYX0DD0.js.br +0 -0
  380. package/build/client/_app/immutable/nodes/16.CwYX0DD0.js.gz +0 -0
  381. package/build/client/_app/immutable/nodes/17.CP6SSMQz.js.br +0 -0
  382. package/build/client/_app/immutable/nodes/17.CP6SSMQz.js.gz +0 -0
  383. package/build/client/_app/immutable/nodes/18.dinO_mGJ.js.br +0 -0
  384. package/build/client/_app/immutable/nodes/18.dinO_mGJ.js.gz +0 -0
  385. package/build/client/_app/immutable/nodes/19.B3LIDplG.js.br +0 -0
  386. package/build/client/_app/immutable/nodes/19.B3LIDplG.js.gz +0 -0
  387. package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js.br +0 -0
  388. package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js.gz +0 -0
  389. package/build/client/_app/immutable/nodes/21.GeOCbpc_.js.br +0 -0
  390. package/build/client/_app/immutable/nodes/21.GeOCbpc_.js.gz +0 -0
  391. package/build/client/_app/immutable/nodes/23.BhQVufuj.js.br +0 -0
  392. package/build/client/_app/immutable/nodes/23.BhQVufuj.js.gz +0 -0
  393. package/build/client/_app/immutable/nodes/24.D1qQjP2S.js.br +0 -0
  394. package/build/client/_app/immutable/nodes/24.D1qQjP2S.js.gz +0 -0
  395. package/build/client/_app/immutable/nodes/25.DjtNBrX-.js.br +0 -0
  396. package/build/client/_app/immutable/nodes/26.1W95w8Kh.js.br +0 -0
  397. package/build/client/_app/immutable/nodes/26.1W95w8Kh.js.gz +0 -0
  398. package/build/client/_app/immutable/nodes/27.DuJzt0BC.js.br +0 -0
  399. package/build/client/_app/immutable/nodes/27.DuJzt0BC.js.gz +0 -0
  400. package/build/client/_app/immutable/nodes/28.BcUVR-We.js.br +0 -0
  401. package/build/client/_app/immutable/nodes/28.BcUVR-We.js.gz +0 -0
  402. package/build/client/_app/immutable/nodes/29.CSQdxeSK.js.br +0 -0
  403. package/build/client/_app/immutable/nodes/29.CSQdxeSK.js.gz +0 -0
  404. package/build/client/_app/immutable/nodes/3.Dysdqlw7.js.br +0 -0
  405. package/build/client/_app/immutable/nodes/3.Dysdqlw7.js.gz +0 -0
  406. package/build/client/_app/immutable/nodes/30.BFp98q1T.js.br +0 -0
  407. package/build/client/_app/immutable/nodes/30.BFp98q1T.js.gz +0 -0
  408. package/build/client/_app/immutable/nodes/31.DMpLzXiB.js.br +0 -0
  409. package/build/client/_app/immutable/nodes/31.DMpLzXiB.js.gz +0 -0
  410. package/build/client/_app/immutable/nodes/32.CnTU-Fay.js.br +0 -0
  411. package/build/client/_app/immutable/nodes/32.CnTU-Fay.js.gz +0 -0
  412. package/build/client/_app/immutable/nodes/34.D2flYQ6C.js.br +0 -0
  413. package/build/client/_app/immutable/nodes/34.D2flYQ6C.js.gz +0 -0
  414. package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js.br +0 -0
  415. package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js.gz +0 -0
  416. package/build/client/_app/immutable/nodes/5.8mHB8XXE.js.br +0 -0
  417. package/build/client/_app/immutable/nodes/5.8mHB8XXE.js.gz +0 -0
  418. package/build/client/_app/immutable/nodes/8.DkWdKRyC.js.br +0 -0
  419. package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js +0 -7
  420. package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js.br +0 -0
  421. package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{o as ui}from"../chunks/D3nPFlu1.js";import{j as Y,k as _a,g as e,q as p,p as Ut,f as ue,e as i,o as A,s as n,r as o,t as h,a as s,b as Kt,h as f,c as d,b6 as Cn,u as xt,H as Na,n as Ie,i as Pt,x as ia,aA as At,l as vi,w as fi,ay as mi,m as pi,$ as gi}from"../chunks/-7ouQdsG.js";import{d as Qt,s as k,a as $,e as ea,r as hi}from"../chunks/MfmuqTIn.js";import{i as m}from"../chunks/BAuCcuxw.js";import{h as xi}from"../chunks/CloMQgCF.js";import{e as $e,s as L,a as Te,h as Br,c as zr,r as Xa,l as _i,f as Us}from"../chunks/CJNEYVWj.js";import{p as Pa}from"../chunks/YAQH2TLS.js";import{c as Ks,b as bi,d as vn,l as xr}from"../chunks/Rgz0--W-.js";import{e as Ys,w as bn,q as wi,t as ds,z as wr,A as Ee,B as Tr,C as ki,E as yi,h as cs}from"../chunks/BG4ZPCNg.js";import{s as us,a as vs}from"../chunks/DNoFJI2q.js";import{h as Si}from"../chunks/BUYzAikv.js";import{F as Xs,h as Hr,m as Gs}from"../chunks/Cd67i1u_.js";import{c as nr}from"../chunks/CmLAxoyv.js";import{s as Xr,c as wn,e as zi,a as Ti,b as Ii,d as kn,w as Ci,S as Ai,P as Fi,f as qi,g as Ri,U as ma,h as fs,B as ms,p as fn,i as mn,t as ji,j as Mi,k as Ei,l as Di,m as ps,n as gs,o as pn,q as Oi,r as Li,u as hs,v as xs}from"../chunks/OLaJBqkk.js";import{b as ba}from"../chunks/XNI4QyoL.js";import{s as ka,r as ya,p as vt}from"../chunks/8Fai-wPF.js";import{S as An}from"../chunks/BXN538J3.js";import{L as Ni,c as Js,C as Vs,a as Qs,h as Pi,r as Bi,e as Hi,d as _s,g as Wi,M as Zs,P as Ui,p as Ki,u as Yi,i as Xi,j as Gi,k as Ji,S as Vi}from"../chunks/CVZBXS_-.js";import{f as Fn,e as Qi,g as Zi,i as bs,j as $i,k as $s,l as el,m as tl,c as al,U as rl,n as nl,C as sr,o as sl,w as ol,L as ws}from"../chunks/DupmVJLw.js";import{a as il,S as eo,b as ll,s as dl}from"../chunks/De2vcdXM.js";import{a as ks,h as cl,p as ul}from"../chunks/OB0MS-qW.js";import{A as vl,c as fl,m as ml,B as pl,M as gl}from"../chunks/DHpOAFQk.js";import{l as ys,e as hl}from"../chunks/Buvnupwl.js";import{i as Fa}from"../chunks/Bvjx1IR1.js";import{c as oa,r as gn,R as Ss}from"../chunks/Do3aY-pJ.js";import{a as Kr}from"../chunks/Ug0gsfQr.js";import{H as xl}from"../chunks/ck3_pj9L.js";import{L as Wr}from"../chunks/CyXpILz0.js";import{A as _l}from"../chunks/bFJ0wt-E.js";import{I as Sa}from"../chunks/BfNiKjWt.js";import{C as yn}from"../chunks/DRN_mvpb.js";import{k as bl}from"../chunks/CkNCm7Ts.js";import{M as wl}from"../chunks/siUtttqk.js";import{X as wa}from"../chunks/BJoMiuA8.js";import{M as zs}from"../chunks/BTUBKbNp.js";import{H as to}from"../chunks/CONXZwsH.js";import{R as kl}from"../chunks/CvmB6XOk.js";import{C as Ga}from"../chunks/BAsiHkaZ.js";import{L as ta}from"../chunks/wu_NjAkT.js";import{R as ao}from"../chunks/CrfUP_VX.js";import{E as qn}from"../chunks/BWPYBmh1.js";import{P as yl}from"../chunks/Dx4-AA8Z.js";import{C as Sl}from"../chunks/6rTUl_co.js";import{G as Ts,R as zl}from"../chunks/Cg5o-Sdi.js";import{G as ro}from"../chunks/XcArh8sq.js";import{b as yr}from"../chunks/DflltLwV.js";import{S as no}from"../chunks/B60LYfBd.js";import"../chunks/C8KbmUF3.js";import{i as Tl}from"../chunks/C-hNi8vR.js";import{C as Il}from"../chunks/C3tLc6qk.js";import{P as so}from"../chunks/Dr1I4h-s.js";import{K as Sr}from"../chunks/BgdwPfvE.js";import{A as Cl}from"../chunks/DZCe_kkO.js";import{S as Ba}from"../chunks/x63vhHzM.js";import{M as Sn}from"../chunks/DQ1JWnwW.js";import{C as Yr}from"../chunks/55XEoNtX.js";import{C as Al}from"../chunks/Cx5j6iHA.js";import{T as Fl}from"../chunks/DYyCX7y8.js";import{p as ql}from"../chunks/D7FYExvP.js";import{P as Rl}from"../chunks/B0-xhMiU.js";import{B as hn}from"../chunks/Cox57RCx.js";import{L as jl}from"../chunks/6DAn206W.js";import{T as Ml}from"../chunks/BGW1RfKQ.js";import{A as El}from"../chunks/CzzMm39R.js";import{a as Dl,r as Ol,g as Ll}from"../chunks/BQ56-tK5.js";var Nl=new Set(["$$slots","$$events","$$legacy"]);function oo(u,t){let c=ya(t,Nl);const l={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}],["path",{d:"M10 4v4"}],["path",{d:"M2 8h20"}],["path",{d:"M6 4v4"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Pl=new Set(["$$slots","$$events","$$legacy"]);function Bl(u,t){let c=ya(t,Pl);const l={name:"arrow-left-right",size:24,node:[["path",{d:"M8 3 4 7l4 4"}],["path",{d:"M4 7h16"}],["path",{d:"m16 21 4-4-4-4"}],["path",{d:"M20 17H4"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Hl=new Set(["$$slots","$$events","$$legacy"]);function Wl(u,t){let c=ya(t,Hl);const l={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Ul=new Set(["$$slots","$$events","$$legacy"]);function Kl(u,t){let c=ya(t,Ul);const l={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]],aliases:["sidebar"]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Yl=new Set(["$$slots","$$events","$$legacy"]);function Xl(u,t){let c=ya(t,Yl);const l={name:"panel-right",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Gl=new Set(["$$slots","$$events","$$legacy"]);function Is(u,t){let c=ya(t,Gl);const l={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Jl=new Set(["$$slots","$$events","$$legacy"]);function io(u,t){let c=ya(t,Jl);const l={name:"reply",size:24,node:[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"}],["path",{d:"m9 17-5-5 5-5"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Vl=new Set(["$$slots","$$events","$$legacy"]);function Ql(u,t){let c=ya(t,Vl);const l={name:"square-slash",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9"}]],aliases:["slash-square"]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Zl=new Set(["$$slots","$$events","$$legacy"]);function $l(u,t){let c=ya(t,Zl);const l={name:"thumbs-up",size:24,node:[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var ed=new Set(["$$slots","$$events","$$legacy"]);function td(u,t){let c=ya(t,ed);const l={name:"upload",size:24,node:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}function ad(u){if(u.stepFailed.length||u.trouble.some(c=>c.status==="failed"))return{label:"Something failed",tone:"danger"};const t=u.needsYou.length;return t?{label:`${t} need${t===1?"s":""} you`,tone:"sea"}:u.trouble.length?{label:"Keeping an eye on a problem",tone:"warning"}:{label:"All well",tone:"success"}}function rd(){let u=null;return(t,c)=>{const l=t.searchParams.get("chat");if(!l)return u=null,null;if(t.href===u)return null;const v=c?.tasks.find(b=>b.id===l);return v?(u=t.href,{kind:"task",id:v.id,title:v.shortTitle,project:c?.projects.find(b=>b.id===v.projectId)?.name??null,url:null}):null}}function nd(){let u=null;return(t,c)=>{const l=t.searchParams.get("draft");return l?t.href===u||t.searchParams.get("chat")&&!c?null:(u=t.href,l):(u=null,null)}}function sd(u){return u.type==="popstate"?null:u.to?.url.searchParams.get("decision")??null}const od="x-wheelhouse-filename",id="x-wheelhouse-filetype",Gr=25*1024*1024;function Rn(u){return u<1024?`${u} B`:u<1024*1024?`${Math.round(u/1024)} KB`:`${(u/(1024*1024)).toFixed(1)} MB`}function ld(u){return`[attached file ${u.path} — ${u.name}, ${Rn(u.size)}, ${u.type||"unknown type"}]`}const dd=/^\[attached file (\/[^\n]*?\/([^/\n]+)) — \2, ([\d.]+) (B|KB|MB), ([^\]\n,]+)\][ \t]*$/gm,cd={B:1,KB:1024,MB:1024*1024};function xn(u){const t=[],c=u.replace(dd,(l,v,b,_,x,S)=>(t.push({path:v,name:b,size:Math.round(Number(_)*cd[x]),type:S==="unknown type"?"":S}),""));return t.length?{text:c.trim(),files:t}:{text:u,files:t}}const zn=u=>/^image\/(png|jpeg|gif|webp|avif)$/.test(u);function lo(u){if(u.type==="application/pdf")return"PDF";if(u.type.startsWith("image/"))return"Image";const t=/\.([A-Za-z0-9]{1,6})$/.exec(u.name)?.[1];return t?t.toUpperCase():u.type.startsWith("text/")?"Text":"File"}function ud(u){if(!zn(u.type))return null;const t=/\/uploads\/(\d{4}-\d{2}-\d{2})\/([a-f0-9]{12})\/([^/]+)$/.exec(u.path);return t?`/api/firstmate/uploads/${t[1]}/${t[2]}/${encodeURIComponent(t[3])}`:null}function vd(u,t=new Date){const c=/^image\/(png|jpeg|gif|webp|avif)$/.exec(u)?.[1]?.replace("jpeg","jpg")??"png";return`Pasted image ${t.toISOString().slice(0,19).replace("T"," ").replace(/:/g,".")}.${c}`}const Cs=`Too large · ${Gr/(1024*1024)} MB at most`;class fd{#e=Y(_a([]));get drafts(){return e(this.#e)}set drafts(t){p(this.#e,t,!0)}#t=Y([]);get dropped(){return e(this.#t)}set dropped(t){p(this.#t,t)}inflight=new Map;add(t,c,l=!1){for(const v of t){const _=l&&zn(v.type)&&/^image\.\w+$/.test(v.name)||!v.name?vd(v.type):v.name;this.drafts.push({id:crypto.randomUUID(),name:_,size:v.size,type:v.type,preview:zn(v.type)?URL.createObjectURL(v):null,state:"uploading",progress:0,error:null,upload:null});const x=this.drafts[this.drafts.length-1];v.size>Gr?this.fail(x,Cs):v.size===0?this.fail(x,"Empty file"):this.send(x,v,c)}}remove(t){this.inflight.get(t)?.abort(),this.inflight.delete(t);const c=this.drafts.find(l=>l.id===t);c?.preview&&URL.revokeObjectURL(c.preview),this.drafts=this.drafts.filter(l=>l.id!==t)}take(){const t=this.drafts.filter(c=>c.state==="ready"&&c.upload);for(const c of t)c.preview&&URL.revokeObjectURL(c.preview);return this.drafts=this.drafts.filter(c=>!t.includes(c)),t.map(c=>c.upload)}get uploading(){return this.drafts.some(t=>t.state==="uploading")}get ready(){return this.drafts.some(t=>t.state==="ready")}fail(t,c){t.state="failed",t.error=c}send(t,c,l){const v=new XMLHttpRequest;this.inflight.set(t.id,v),v.open("POST","/api/firstmate/uploads"),v.setRequestHeader(An,l),v.setRequestHeader(od,encodeURIComponent(t.name)),v.setRequestHeader(id,c.type),v.setRequestHeader("content-type","application/octet-stream"),v.upload.onprogress=b=>{b.lengthComputable&&(t.progress=b.loaded/b.total)},v.onload=()=>{this.inflight.delete(t.id);let b={};try{b=JSON.parse(v.responseText)}catch{}v.status===201&&typeof b.path=="string"?(t.upload={path:b.path,name:b.name??t.name,size:b.size??t.size,type:b.type??""},t.progress=1,t.state="ready"):v.status===413?this.fail(t,Cs):this.fail(t,b.message??`Not uploaded · Wheelhouse answered ${v.status}`)},v.onerror=()=>{this.inflight.delete(t.id),this.fail(t,"Could not reach the Wheelhouse server")},v.send(c)}}const qt=new fd;var md=d('<button type="button" class="shrink-0 cursor-zoom-in rounded"><img alt="" loading="lazy" class="size-10 rounded border border-hair bg-muted object-cover"/></button>'),pd=d('<span class="flex size-10 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true"><!></span>'),gd=d('<li class="flex items-center gap-2.5 py-1.5 text-sm"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="ml-auto shrink-0 pl-2 text-xs text-muted-foreground"> </span></li>'),hd=d('<div data-sent-files=""><p class="mb-0.5 text-[0.8rem] font-semibold tracking-[0.08em] text-muted-foreground" style="font-variant-caps: all-small-caps"> </p> <ul class="flex flex-col divide-y divide-hair"></ul></div> <!>',1);function As(u,t){Ut(t,!0);let c=vt(t,"pending",3,!1),l=_a({});const v=F=>l[F.path]?null:ud(F),b=f(()=>t.files.filter(F=>v(F)));let _=Y(null);var x=hd(),S=ue(x),D=i(S),R=A(D,!0),B=n(D,2);$e(B,21,()=>t.files,F=>F.path,(F,T)=>{const H=f(()=>v(e(T)));var V=gd(),E=i(V);{var N=Q=>{var q=md(),ee=A(q);h(()=>{L(q,"aria-label",`Enlarge ${e(T).name??""}`),L(ee,"src",e(H))}),$("click",q,()=>p(_,e(b).indexOf(e(T)),!0)),ea("error",ee,()=>l[e(T).path]=!0),hi(ee),s(Q,q)},oe=Q=>{var q=pd(),ee=i(q);Xs(ee,{class:"size-4"}),o(q),s(Q,q)};m(E,Q=>{e(H)?Q(N):Q(oe,-1)})}var C=n(E,2),y=A(C,!0),I=n(C,2),K=A(I);o(V),h((Q,q)=>{L(C,"title",e(T).name),k(y,e(T).name),k(K,`${Q??""} · ${q??""}`)},[()=>lo(e(T)),()=>Rn(e(T).size)]),s(F,V)}),o(B),o(S);var X=n(S,2);{var U=F=>{{let T=f(()=>e(b).map(H=>({name:H.name,url:v(H)??""})));Ni(F,{get shots(){return e(T)},get index(){return e(_)},set index(H){p(_,H,!0)}})}};m(X,F=>{e(b).length&&F(U)})}h(()=>{Te(S,1,`mt-1.5 w-full max-w-[min(85%,62ch)] min-w-0 rounded-lg border border-hair bg-card px-3 py-2 sm:min-w-72 ${c()?"border-dashed opacity-60":""}`),k(R,t.files.length===1?"1 file attached":`${t.files.length} files attached`)}),s(u,x),Kt()}Qt(["click"]);const xd=u=>({cardId:u.id,taskId:u.taskId,taskTitle:u.taskTitle,projectId:u.projectId,kind:u.kind,key:u.key,question:u.title,askedAt:u.askedAt,secondMate:u.secondMate??null});function _d(u,t,c,l=new Set){const v=[],b=new Set;for(const x of u){const S=xd(x),D=c[x.id]?.question===x.question?c[x.id]:null,R=x.sent&&x.sent.delivery!=="failed"?x.sent:null;!Ys(x)&&!l.has(x.id)&&!D&&!R||(D&&!(D.posted&&R)?v.push({id:x.id,head:S,card:x,answer:{choice:D.choice,label:bn(x,D.choice),picks:D.picks,note:D.note,at:null,delivery:D.posted?null:"sending"}}):R?(b.add(R.requestId),v.push({id:x.id,head:S,card:x,answer:{choice:R.choice,label:bn(x,R.choice),picks:R.picks,note:R.note,at:R.at,delivery:R.delivery}})):v.push({id:x.id,head:S,card:x,answer:null}))}const _=new Map(v.map(x=>[x.id,x]));for(const x of t)b.has(x.requestId)||x.delivery==="failed"||_.get(x.cardId)?.head.question!==x.question&&v.push({id:`answer:${x.requestId}`,head:{cardId:x.cardId,taskId:x.taskId,taskTitle:x.taskTitle,projectId:x.projectId,kind:x.kind,key:x.key,question:x.question,askedAt:x.askedAt},card:null,answer:{choice:x.choice,label:x.label,picks:x.picks,note:x.note,at:x.answeredAt,delivery:x.delivery}});return v}function bd(u,t){if(!u)return null;const c=t.filter(v=>v.head.kind==="hold"),l=v=>v.head.taskId===u||v.head.key===u;return c.find(v=>v.card&&l(v))??c.findLast(l)??null}const Tn=u=>{const t=u?Date.parse(u):NaN;return Number.isNaN(t)?null:t},wd=u=>Tn(u.head.askedAt)??Tn(u.answer?.at);function kd(u,t){const c=new Map,l=[],v=u.map(x=>Tn(x.at)),b=v.find(x=>x!==null)??null,_=t.map(x=>({d:x,at:wd(x)})).sort((x,S)=>(x.at??1/0)-(S.at??1/0)||x.d.id.localeCompare(S.d.id));for(const{d:x,at:S}of _){if(S===null){l.push(x);continue}if(x.answer&&!x.card&&(b===null||S<b))continue;const D=v.findIndex(R=>R!==null&&R>S);D<0?l.push(x):c.set(D,[...c.get(D)??[],x])}return{before:c,end:l}}const yd=/^> About the decision on ([^\s()]+) \(key ([^\s()]+)\), not an answer yet: “(.*)”\n(?:> [^\n]*\n)*\n([\s\S]+)$/,Sd=u=>`${u.taskId}:${u.key}`;function kr(u){const t=u.replace(/\r\n?/g,`
1
+ import"../chunks/DsnmJJEf.js";import{o as ui}from"../chunks/D3nPFlu1.js";import{j as Y,k as _a,g as e,q as p,p as Ut,f as ue,e as i,o as A,s as n,r as o,t as h,a as s,b as Kt,h as f,c as d,b6 as Cn,u as xt,H as Na,n as Ie,i as Pt,x as ia,aA as At,l as vi,w as fi,ay as mi,m as pi,$ as gi}from"../chunks/-7ouQdsG.js";import{d as Qt,s as k,a as $,e as ea,r as hi}from"../chunks/MfmuqTIn.js";import{i as m}from"../chunks/BAuCcuxw.js";import{h as xi}from"../chunks/CloMQgCF.js";import{e as $e,s as L,a as Te,h as Br,c as zr,r as Xa,l as _i,f as Us}from"../chunks/CJNEYVWj.js";import{p as Pa}from"../chunks/Cbb01QYB.js";import{c as Ks,b as bi,d as vn,l as xr}from"../chunks/B1V3Ajhv.js";import{e as Ys,w as bn,q as wi,t as ds,z as wr,A as Ee,B as Tr,C as ki,E as yi,h as cs}from"../chunks/BBYXgHkS.js";import{s as us,a as vs}from"../chunks/DNoFJI2q.js";import{h as Si}from"../chunks/BUYzAikv.js";import{F as Xs,h as Hr,m as Gs}from"../chunks/Cd67i1u_.js";import{c as nr}from"../chunks/CmLAxoyv.js";import{s as Xr,c as wn,e as zi,a as Ti,b as Ii,d as kn,w as Ci,S as Ai,P as Fi,f as qi,g as Ri,U as ma,h as fs,B as ms,p as fn,i as mn,t as ji,j as Mi,k as Ei,l as Di,m as ps,n as gs,o as pn,q as Oi,r as Li,u as hs,v as xs}from"../chunks/s_pTaNbp.js";import{b as ba}from"../chunks/XNI4QyoL.js";import{s as ka,r as ya,p as vt}from"../chunks/8Fai-wPF.js";import{S as An}from"../chunks/BXN538J3.js";import{L as Ni,c as Js,C as Vs,a as Qs,h as Pi,r as Bi,e as Hi,d as _s,g as Wi,M as Zs,P as Ui,p as Ki,u as Yi,i as Xi,j as Gi,k as Ji,S as Vi}from"../chunks/C00jDMn9.js";import{f as Fn,e as Qi,g as Zi,i as bs,j as $i,k as $s,l as el,m as tl,c as al,U as rl,n as nl,C as sr,o as sl,w as ol,L as ws}from"../chunks/CUngZJag.js";import{a as il,S as eo,b as ll,s as dl}from"../chunks/C6jVoo_e.js";import{a as ks,h as cl,p as ul}from"../chunks/OB0MS-qW.js";import{A as vl,c as fl,m as ml,B as pl,M as gl}from"../chunks/BXnxklRE.js";import{l as ys,e as hl}from"../chunks/Buvnupwl.js";import{i as Fa}from"../chunks/8WgbCzWs.js";import{c as oa,r as gn,R as Ss}from"../chunks/BvA9ozND.js";import{a as Kr}from"../chunks/Ug0gsfQr.js";import{H as xl}from"../chunks/ck3_pj9L.js";import{L as Wr}from"../chunks/CyXpILz0.js";import{A as _l}from"../chunks/CFTCozxo.js";import{I as Sa}from"../chunks/BfNiKjWt.js";import{C as yn}from"../chunks/DRN_mvpb.js";import{k as bl}from"../chunks/CkNCm7Ts.js";import{M as wl}from"../chunks/siUtttqk.js";import{X as wa}from"../chunks/BJoMiuA8.js";import{M as zs}from"../chunks/BTUBKbNp.js";import{H as to}from"../chunks/CONXZwsH.js";import{R as kl}from"../chunks/CvmB6XOk.js";import{C as Ga}from"../chunks/BAsiHkaZ.js";import{L as ta}from"../chunks/wu_NjAkT.js";import{R as ao}from"../chunks/CrfUP_VX.js";import{E as qn}from"../chunks/BWPYBmh1.js";import{P as yl}from"../chunks/Dx4-AA8Z.js";import{C as Sl}from"../chunks/6rTUl_co.js";import{G as Ts,R as zl}from"../chunks/Cg5o-Sdi.js";import{G as ro}from"../chunks/XcArh8sq.js";import{b as yr}from"../chunks/DflltLwV.js";import{S as no}from"../chunks/B60LYfBd.js";import"../chunks/C8KbmUF3.js";import{i as Tl}from"../chunks/C-hNi8vR.js";import{C as Il}from"../chunks/C3tLc6qk.js";import{P as so}from"../chunks/Dr1I4h-s.js";import{K as Sr}from"../chunks/BgdwPfvE.js";import{A as Cl}from"../chunks/DZCe_kkO.js";import{S as Ba}from"../chunks/x63vhHzM.js";import{M as Sn}from"../chunks/DQ1JWnwW.js";import{C as Yr}from"../chunks/55XEoNtX.js";import{C as Al}from"../chunks/Cx5j6iHA.js";import{T as Fl}from"../chunks/DYyCX7y8.js";import{p as ql}from"../chunks/D7FYExvP.js";import{P as Rl}from"../chunks/B0-xhMiU.js";import{B as hn}from"../chunks/Cox57RCx.js";import{L as jl}from"../chunks/6DAn206W.js";import{T as Ml}from"../chunks/BGW1RfKQ.js";import{A as El}from"../chunks/CzzMm39R.js";import{a as Dl,r as Ol,g as Ll}from"../chunks/BACvplXC.js";var Nl=new Set(["$$slots","$$events","$$legacy"]);function oo(u,t){let c=ya(t,Nl);const l={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}],["path",{d:"M10 4v4"}],["path",{d:"M2 8h20"}],["path",{d:"M6 4v4"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Pl=new Set(["$$slots","$$events","$$legacy"]);function Bl(u,t){let c=ya(t,Pl);const l={name:"arrow-left-right",size:24,node:[["path",{d:"M8 3 4 7l4 4"}],["path",{d:"M4 7h16"}],["path",{d:"m16 21 4-4-4-4"}],["path",{d:"M20 17H4"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Hl=new Set(["$$slots","$$events","$$legacy"]);function Wl(u,t){let c=ya(t,Hl);const l={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Ul=new Set(["$$slots","$$events","$$legacy"]);function Kl(u,t){let c=ya(t,Ul);const l={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]],aliases:["sidebar"]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Yl=new Set(["$$slots","$$events","$$legacy"]);function Xl(u,t){let c=ya(t,Yl);const l={name:"panel-right",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Gl=new Set(["$$slots","$$events","$$legacy"]);function Is(u,t){let c=ya(t,Gl);const l={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Jl=new Set(["$$slots","$$events","$$legacy"]);function io(u,t){let c=ya(t,Jl);const l={name:"reply",size:24,node:[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"}],["path",{d:"m9 17-5-5 5-5"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Vl=new Set(["$$slots","$$events","$$legacy"]);function Ql(u,t){let c=ya(t,Vl);const l={name:"square-slash",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9"}]],aliases:["slash-square"]};Sa(u,ka(()=>c,{get icon(){return l}}))}var Zl=new Set(["$$slots","$$events","$$legacy"]);function $l(u,t){let c=ya(t,Zl);const l={name:"thumbs-up",size:24,node:[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}var ed=new Set(["$$slots","$$events","$$legacy"]);function td(u,t){let c=ya(t,ed);const l={name:"upload",size:24,node:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]]};Sa(u,ka(()=>c,{get icon(){return l}}))}function ad(u){if(u.stepFailed.length||u.trouble.some(c=>c.status==="failed"))return{label:"Something failed",tone:"danger"};const t=u.needsYou.length;return t?{label:`${t} need${t===1?"s":""} you`,tone:"sea"}:u.trouble.length?{label:"Keeping an eye on a problem",tone:"warning"}:{label:"All well",tone:"success"}}function rd(){let u=null;return(t,c)=>{const l=t.searchParams.get("chat");if(!l)return u=null,null;if(t.href===u)return null;const v=c?.tasks.find(b=>b.id===l);return v?(u=t.href,{kind:"task",id:v.id,title:v.shortTitle,project:c?.projects.find(b=>b.id===v.projectId)?.name??null,url:null}):null}}function nd(){let u=null;return(t,c)=>{const l=t.searchParams.get("draft");return l?t.href===u||t.searchParams.get("chat")&&!c?null:(u=t.href,l):(u=null,null)}}function sd(u){return u.type==="popstate"?null:u.to?.url.searchParams.get("decision")??null}const od="x-wheelhouse-filename",id="x-wheelhouse-filetype",Gr=25*1024*1024;function Rn(u){return u<1024?`${u} B`:u<1024*1024?`${Math.round(u/1024)} KB`:`${(u/(1024*1024)).toFixed(1)} MB`}function ld(u){return`[attached file ${u.path} — ${u.name}, ${Rn(u.size)}, ${u.type||"unknown type"}]`}const dd=/^\[attached file (\/[^\n]*?\/([^/\n]+)) — \2, ([\d.]+) (B|KB|MB), ([^\]\n,]+)\][ \t]*$/gm,cd={B:1,KB:1024,MB:1024*1024};function xn(u){const t=[],c=u.replace(dd,(l,v,b,_,x,S)=>(t.push({path:v,name:b,size:Math.round(Number(_)*cd[x]),type:S==="unknown type"?"":S}),""));return t.length?{text:c.trim(),files:t}:{text:u,files:t}}const zn=u=>/^image\/(png|jpeg|gif|webp|avif)$/.test(u);function lo(u){if(u.type==="application/pdf")return"PDF";if(u.type.startsWith("image/"))return"Image";const t=/\.([A-Za-z0-9]{1,6})$/.exec(u.name)?.[1];return t?t.toUpperCase():u.type.startsWith("text/")?"Text":"File"}function ud(u){if(!zn(u.type))return null;const t=/\/uploads\/(\d{4}-\d{2}-\d{2})\/([a-f0-9]{12})\/([^/]+)$/.exec(u.path);return t?`/api/firstmate/uploads/${t[1]}/${t[2]}/${encodeURIComponent(t[3])}`:null}function vd(u,t=new Date){const c=/^image\/(png|jpeg|gif|webp|avif)$/.exec(u)?.[1]?.replace("jpeg","jpg")??"png";return`Pasted image ${t.toISOString().slice(0,19).replace("T"," ").replace(/:/g,".")}.${c}`}const Cs=`Too large · ${Gr/(1024*1024)} MB at most`;class fd{#e=Y(_a([]));get drafts(){return e(this.#e)}set drafts(t){p(this.#e,t,!0)}#t=Y([]);get dropped(){return e(this.#t)}set dropped(t){p(this.#t,t)}inflight=new Map;add(t,c,l=!1){for(const v of t){const _=l&&zn(v.type)&&/^image\.\w+$/.test(v.name)||!v.name?vd(v.type):v.name;this.drafts.push({id:crypto.randomUUID(),name:_,size:v.size,type:v.type,preview:zn(v.type)?URL.createObjectURL(v):null,state:"uploading",progress:0,error:null,upload:null});const x=this.drafts[this.drafts.length-1];v.size>Gr?this.fail(x,Cs):v.size===0?this.fail(x,"Empty file"):this.send(x,v,c)}}remove(t){this.inflight.get(t)?.abort(),this.inflight.delete(t);const c=this.drafts.find(l=>l.id===t);c?.preview&&URL.revokeObjectURL(c.preview),this.drafts=this.drafts.filter(l=>l.id!==t)}take(){const t=this.drafts.filter(c=>c.state==="ready"&&c.upload);for(const c of t)c.preview&&URL.revokeObjectURL(c.preview);return this.drafts=this.drafts.filter(c=>!t.includes(c)),t.map(c=>c.upload)}get uploading(){return this.drafts.some(t=>t.state==="uploading")}get ready(){return this.drafts.some(t=>t.state==="ready")}fail(t,c){t.state="failed",t.error=c}send(t,c,l){const v=new XMLHttpRequest;this.inflight.set(t.id,v),v.open("POST","/api/firstmate/uploads"),v.setRequestHeader(An,l),v.setRequestHeader(od,encodeURIComponent(t.name)),v.setRequestHeader(id,c.type),v.setRequestHeader("content-type","application/octet-stream"),v.upload.onprogress=b=>{b.lengthComputable&&(t.progress=b.loaded/b.total)},v.onload=()=>{this.inflight.delete(t.id);let b={};try{b=JSON.parse(v.responseText)}catch{}v.status===201&&typeof b.path=="string"?(t.upload={path:b.path,name:b.name??t.name,size:b.size??t.size,type:b.type??""},t.progress=1,t.state="ready"):v.status===413?this.fail(t,Cs):this.fail(t,b.message??`Not uploaded · Wheelhouse answered ${v.status}`)},v.onerror=()=>{this.inflight.delete(t.id),this.fail(t,"Could not reach the Wheelhouse server")},v.send(c)}}const qt=new fd;var md=d('<button type="button" class="shrink-0 cursor-zoom-in rounded"><img alt="" loading="lazy" class="size-10 rounded border border-hair bg-muted object-cover"/></button>'),pd=d('<span class="flex size-10 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true"><!></span>'),gd=d('<li class="flex items-center gap-2.5 py-1.5 text-sm"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="ml-auto shrink-0 pl-2 text-xs text-muted-foreground"> </span></li>'),hd=d('<div data-sent-files=""><p class="mb-0.5 text-[0.8rem] font-semibold tracking-[0.08em] text-muted-foreground" style="font-variant-caps: all-small-caps"> </p> <ul class="flex flex-col divide-y divide-hair"></ul></div> <!>',1);function As(u,t){Ut(t,!0);let c=vt(t,"pending",3,!1),l=_a({});const v=F=>l[F.path]?null:ud(F),b=f(()=>t.files.filter(F=>v(F)));let _=Y(null);var x=hd(),S=ue(x),D=i(S),R=A(D,!0),B=n(D,2);$e(B,21,()=>t.files,F=>F.path,(F,T)=>{const H=f(()=>v(e(T)));var V=gd(),E=i(V);{var N=Q=>{var q=md(),ee=A(q);h(()=>{L(q,"aria-label",`Enlarge ${e(T).name??""}`),L(ee,"src",e(H))}),$("click",q,()=>p(_,e(b).indexOf(e(T)),!0)),ea("error",ee,()=>l[e(T).path]=!0),hi(ee),s(Q,q)},oe=Q=>{var q=pd(),ee=i(q);Xs(ee,{class:"size-4"}),o(q),s(Q,q)};m(E,Q=>{e(H)?Q(N):Q(oe,-1)})}var C=n(E,2),y=A(C,!0),I=n(C,2),K=A(I);o(V),h((Q,q)=>{L(C,"title",e(T).name),k(y,e(T).name),k(K,`${Q??""} · ${q??""}`)},[()=>lo(e(T)),()=>Rn(e(T).size)]),s(F,V)}),o(B),o(S);var X=n(S,2);{var U=F=>{{let T=f(()=>e(b).map(H=>({name:H.name,url:v(H)??""})));Ni(F,{get shots(){return e(T)},get index(){return e(_)},set index(H){p(_,H,!0)}})}};m(X,F=>{e(b).length&&F(U)})}h(()=>{Te(S,1,`mt-1.5 w-full max-w-[min(85%,62ch)] min-w-0 rounded-lg border border-hair bg-card px-3 py-2 sm:min-w-72 ${c()?"border-dashed opacity-60":""}`),k(R,t.files.length===1?"1 file attached":`${t.files.length} files attached`)}),s(u,x),Kt()}Qt(["click"]);const xd=u=>({cardId:u.id,taskId:u.taskId,taskTitle:u.taskTitle,projectId:u.projectId,kind:u.kind,key:u.key,question:u.title,askedAt:u.askedAt,secondMate:u.secondMate??null});function _d(u,t,c,l=new Set){const v=[],b=new Set;for(const x of u){const S=xd(x),D=c[x.id]?.question===x.question?c[x.id]:null,R=x.sent&&x.sent.delivery!=="failed"?x.sent:null;!Ys(x)&&!l.has(x.id)&&!D&&!R||(D&&!(D.posted&&R)?v.push({id:x.id,head:S,card:x,answer:{choice:D.choice,label:bn(x,D.choice),picks:D.picks,note:D.note,at:null,delivery:D.posted?null:"sending"}}):R?(b.add(R.requestId),v.push({id:x.id,head:S,card:x,answer:{choice:R.choice,label:bn(x,R.choice),picks:R.picks,note:R.note,at:R.at,delivery:R.delivery}})):v.push({id:x.id,head:S,card:x,answer:null}))}const _=new Map(v.map(x=>[x.id,x]));for(const x of t)b.has(x.requestId)||x.delivery==="failed"||_.get(x.cardId)?.head.question!==x.question&&v.push({id:`answer:${x.requestId}`,head:{cardId:x.cardId,taskId:x.taskId,taskTitle:x.taskTitle,projectId:x.projectId,kind:x.kind,key:x.key,question:x.question,askedAt:x.askedAt},card:null,answer:{choice:x.choice,label:x.label,picks:x.picks,note:x.note,at:x.answeredAt,delivery:x.delivery}});return v}function bd(u,t){if(!u)return null;const c=t.filter(v=>v.head.kind==="hold"),l=v=>v.head.taskId===u||v.head.key===u;return c.find(v=>v.card&&l(v))??c.findLast(l)??null}const Tn=u=>{const t=u?Date.parse(u):NaN;return Number.isNaN(t)?null:t},wd=u=>Tn(u.head.askedAt)??Tn(u.answer?.at);function kd(u,t){const c=new Map,l=[],v=u.map(x=>Tn(x.at)),b=v.find(x=>x!==null)??null,_=t.map(x=>({d:x,at:wd(x)})).sort((x,S)=>(x.at??1/0)-(S.at??1/0)||x.d.id.localeCompare(S.d.id));for(const{d:x,at:S}of _){if(S===null){l.push(x);continue}if(x.answer&&!x.card&&(b===null||S<b))continue;const D=v.findIndex(R=>R!==null&&R>S);D<0?l.push(x):c.set(D,[...c.get(D)??[],x])}return{before:c,end:l}}const yd=/^> About the decision on ([^\s()]+) \(key ([^\s()]+)\), not an answer yet: “(.*)”\n(?:> [^\n]*\n)*\n([\s\S]+)$/,Sd=u=>`${u.taskId}:${u.key}`;function kr(u){const t=u.replace(/\r\n?/g,`
2
2
  `).match(yd);return!t||!t[4].trim()?null:{cardId:Sd({taskId:t[1],key:t[2]}),question:t[3],body:t[4].trim()}}function zd(u,t){const c=Xr(t),l=u?.messages??[];for(let v=l.length-1;v>=0;v--){const b=l[v],_=b.who==="firstmate"&&b.question===c?Fn(b.text):null;if(_)return{id:b.id,form:_}}return null}function Td(u,t){const c=Xr(t),l=[],v=[];for(const b of u?.messages??[]){if(b.question===c){v.push(b);continue}const _=l.at(-1);_?.question===b.question?_.messages.push(b):l.push({question:b.question,messages:[b]})}return{earlier:l,current:v}}function Id(u,t){const c=new Map,l=new Set;for(let v=0;v<u.length;v++){const b=u[v];if(b.kind!=="user")continue;const _=kr(b.text);if(!_||!t.has(_.cardId))continue;const x=c.get(_.cardId)??{messages:[],answering:!1};c.set(_.cardId,x),x.messages.push({id:b.id,who:"captain",text:_.body,at:b.at,question:_.question}),x.answering=!1,l.add(b.id);const S=u[v+1];if(!(S?.kind!=="turn"||S.trigger!=="captain")&&!S.parts.some(D=>D.kind==="question")){l.add(S.id);for(const D of S.parts)D.kind==="text"&&x.messages.push({id:D.id,who:"firstmate",text:D.text,at:S.at,question:_.question});x.answering=!S.done&&!S.interrupted,v++}}return{byCard:c,hidden:l}}function Cd(u){const t=new Map;for(const c of u){const l=kr(c.text);l&&t.set(l.cardId,[...t.get(l.cardId)??[],{pending:c,body:l.body}])}return t}const Ad=500;function Fd(u){if(!u||u.length<Ad)return!1;const t=u.replace(/^ {0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?(?:^ {0,3}\1[`~]*[ \t]*$|(?![\s\S]))/gm,"");return/^\s{0,3}(?:[-*+]|\d+[.)]|#{1,4})\s+\S/m.test(t)}const qd=/```decision-form[^\n]*\n[\s\S]*?(?:```|$)/g,Rd=/^Decided( \(other\))?: (.+?)(?: — for: “(.+)”)?$/,jd=/^Dismissed(?: — for: “(.+)”)?$/,ua=u=>u.replace(/\s+/g," ").trim();function Md(u){const t=[...u.matchAll(qd)],c=t[t.length-1];if(!c||u.slice(c.index+c[0].length).trim())return null;const l=Fn(u);return l&&{form:l,words:u.slice(0,c.index).trim(),id:Qi(u)}}function Ed(u,t,c){const l=ua(t.decided??"").slice(0,Zi);if(!l)return"";const v=ua(u.prompt??""),b=v?`Decided: ${l} — for: “${v}”`:`Decided${t.other?" (other)":""}: ${l}`,_=c?.trim();return _?`${b}
3
3
 
4
4
  ${_}`:b}function Dd(u,t){const c=ua(u.prompt??""),l=c?`Dismissed — for: “${c}”`:"Dismissed",v=ua(t??"");return v?`${l}
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{p as st,j as k,k as B,l as H,a as h,b as rt,m as ot,c as x,$ as dt,e as _,s as r,g as t,r as p,o as l,t as b,f as nt,n as lt,q as m,h as it}from"../chunks/-7ouQdsG.js";import{d as ct,s as i,a as mt}from"../chunks/MfmuqTIn.js";import{i as W}from"../chunks/BAuCcuxw.js";import{e as ut,i as vt,b as ht}from"../chunks/CJNEYVWj.js";import{h as pt}from"../chunks/CloMQgCF.js";import{p as xt}from"../chunks/YAQH2TLS.js";import{S as ft}from"../chunks/BXN538J3.js";import{S as gt}from"../chunks/B-0qqE45.js";var yt=x('<p class="mt-6 text-sm text-muted-foreground" role="status"> </p>'),_t=x("<option> </option>"),bt=x('<p class="mt-2 text-sm text-warning" role="status"> </p>'),wt=x('<p class="mt-2 text-sm text-danger" role="alert"> </p>'),St=x(`<dl class="mt-6 grid max-w-xl grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-sm" data-archive-stats=""><dt class="text-muted-foreground">Sessions</dt> <dd> </dd> <dt class="text-muted-foreground">Records</dt> <dd> </dd> <dt class="text-muted-foreground">On disk</dt> <dd> </dd> <dt class="text-muted-foreground">From</dt> <dd> </dd> <dt class="text-muted-foreground">Kept in</dt> <dd class="font-mono text-xs break-all"> </dd></dl> <div class="mt-8 max-w-xl"><label class="font-medium" for="retention">Keep the chat history</label> <div class="mt-2 flex flex-wrap items-center gap-3"><select id="retention" class="h-9 rounded-lg border bg-card px-3 text-sm"></select> <button class="h-9 cursor-pointer rounded-lg bg-foreground px-4 text-sm font-medium text-background disabled:cursor-default disabled:opacity-50">Save</button></div> <!> <!> <p class="mt-3 text-xs text-muted-foreground">The history is Wheelhouse’s own copy; Firstmate’s transcripts are only ever read, never
1
+ import"../chunks/DsnmJJEf.js";import{p as st,j as k,k as B,l as H,a as h,b as rt,m as ot,c as x,$ as dt,e as _,s as r,g as t,r as p,o as l,t as b,f as nt,n as lt,q as m,h as it}from"../chunks/-7ouQdsG.js";import{d as ct,s as i,a as mt}from"../chunks/MfmuqTIn.js";import{i as W}from"../chunks/BAuCcuxw.js";import{e as ut,i as vt,b as ht}from"../chunks/CJNEYVWj.js";import{h as pt}from"../chunks/CloMQgCF.js";import{p as xt}from"../chunks/Cbb01QYB.js";import{S as ft}from"../chunks/BXN538J3.js";import{S as gt}from"../chunks/CNvNrJS-.js";var yt=x('<p class="mt-6 text-sm text-muted-foreground" role="status"> </p>'),_t=x("<option> </option>"),bt=x('<p class="mt-2 text-sm text-warning" role="status"> </p>'),wt=x('<p class="mt-2 text-sm text-danger" role="alert"> </p>'),St=x(`<dl class="mt-6 grid max-w-xl grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-sm" data-archive-stats=""><dt class="text-muted-foreground">Sessions</dt> <dd> </dd> <dt class="text-muted-foreground">Records</dt> <dd> </dd> <dt class="text-muted-foreground">On disk</dt> <dd> </dd> <dt class="text-muted-foreground">From</dt> <dd> </dd> <dt class="text-muted-foreground">Kept in</dt> <dd class="font-mono text-xs break-all"> </dd></dl> <div class="mt-8 max-w-xl"><label class="font-medium" for="retention">Keep the chat history</label> <div class="mt-2 flex flex-wrap items-center gap-3"><select id="retention" class="h-9 rounded-lg border bg-card px-3 text-sm"></select> <button class="h-9 cursor-pointer rounded-lg bg-foreground px-4 text-sm font-medium text-background disabled:cursor-default disabled:opacity-50">Save</button></div> <!> <!> <p class="mt-3 text-xs text-muted-foreground">The history is Wheelhouse’s own copy; Firstmate’s transcripts are only ever read, never
2
2
  changed. It survives restarts and upgrades of Wheelhouse.</p></div>`,1),kt=x(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Chat history</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Wheelhouse keeps every message of the conversation with Firstmate, from every session, so the
3
3
  chat carries on after Firstmate restarts and can be searched back to its start.</p> <!></div></main>`);function jt(R,w){st(w,!0);const C=[{days:null,label:"Keep everything"},{days:365,label:"One year"},{days:180,label:"Six months"},{days:90,label:"Three months"},{days:30,label:"One month"}];let s=k(B(H(()=>w.data.stats))),c=k(B(H(()=>w.data.stats?.retentionDays??null))),S=k(!1),f=k(null);const $=it(()=>!!t(s)&&t(c)!==null&&(t(s).retentionDays===null||t(c)<t(s).retentionDays)),z=e=>e<1024*1024?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/(1024*1024)).toFixed(1)} MB`,F=e=>e?new Date(e).toLocaleDateString([],{day:"numeric",month:"long",year:"numeric"}):"—";async function A(){m(S,!0),m(f,null);try{const e=await fetch("/api/firstmate/chat/archive",{method:"POST",headers:{"content-type":"application/json",[ft]:xt.data.sessionToken},body:JSON.stringify({retentionDays:t(c)})}),o=await e.json().catch(()=>null);if(!e.ok||!o){m(f,o?.message??`Wheelhouse could not save it (${e.status}).`,!0);return}m(s,o,!0),m(c,o.retentionDays,!0)}catch{m(f,"Wheelhouse did not answer.")}finally{m(S,!1)}}var D=kt();pt("3g5sqr",e=>{ot(()=>{dt.title="Chat history · Wheelhouse"})});var T=_(D),E=_(T);gt(E,{});var J=r(E,6);{var P=e=>{var o=yt(),g=l(o,!0);b(()=>i(g,w.data.reason)),h(e,o)},G=e=>{var o=St(),g=nt(o),K=r(_(g),2),Q=l(K,!0),L=r(K,4),U=l(L,!0),j=r(L,4),V=l(j,!0),I=r(j,4),X=l(I),Y=r(I,4),Z=l(Y,!0);p(g);var M=r(g,2),O=r(_(M),2),v=_(O);ut(v,21,()=>C,a=>a.days,(a,d)=>{var n=_t(),u=l(n,!0),y={};b(()=>{i(u,t(d).label),y!==(y=t(d).days)&&(n.value=(n.__value=y)??"")}),h(a,n)}),p(v),vt(v);var N=r(v,2);p(O);var q=r(O,2);{var tt=a=>{var d=bt(),n=l(d);b(u=>i(n,`Sessions that ended more than ${u??""}
4
4
  ago are deleted from the history when you save. The newest session is always kept.`),[()=>C.find(u=>u.days===t(c))?.label.toLowerCase()]),h(a,d)};W(q,a=>{t($)&&a(tt)})}var et=r(q,2);{var at=a=>{var d=wt(),n=l(d,!0);b(()=>i(n,t(f))),h(a,d)};W(et,a=>{t(f)&&a(at)})}lt(2),p(M),b((a,d,n,u,y)=>{i(Q,a),i(U,d),i(V,n),i(X,`${u??""} to ${y??""}`),i(Z,t(s).dir),v.disabled=t(S),N.disabled=t(S)||t(c)===t(s).retentionDays},[()=>t(s).sessions.toLocaleString(),()=>t(s).records.toLocaleString(),()=>z(t(s).bytes),()=>F(t(s).oldest),()=>F(t(s).newest)]),ht(v,()=>t(c),a=>m(c,a)),mt("click",N,A),h(e,o)};W(J,e=>{t(s)?e(G,-1):e(P)})}p(T),p(D),h(R,D),rt()}ct(["click"]);export{jt as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{o as $e}from"../chunks/D3nPFlu1.js";import{p as et,j as R,k as We,l as tt,u as at,a as v,b as rt,m as st,c as p,e as s,q as i,g as e,$ as ot,s as t,r,o as b,t as y,f as ue,h as lt,v as nt,n as fe}from"../chunks/-7ouQdsG.js";import{d as it,s as m,a as F,e as dt}from"../chunks/MfmuqTIn.js";import{i as B}from"../chunks/BAuCcuxw.js";import{e as le,a as ut,s as ct,r as T,i as he,b as Fe,c as vt,d as pt}from"../chunks/CJNEYVWj.js";import{h as bt}from"../chunks/CloMQgCF.js";import{b as Q,a as Ce}from"../chunks/DflltLwV.js";import{i as mt}from"../chunks/BQ56-tK5.js";import{p as _t}from"../chunks/YAQH2TLS.js";import{S as gt}from"../chunks/B-0qqE45.js";var xt=p('<button class="rounded-lg border px-4 py-2 text-sm"> </button>'),ft=p('<p role="alert" class="rounded-lg border border-red-400 p-4 text-sm"> </p>'),ht=p("<p>Firstmate is not configured.</p>"),yt=p('<p role="alert"> </p>'),kt=p('<p role="status" class="rounded-xl border border-amber-400 bg-amber-100 p-4 text-sm text-amber-950">Events paused. Everything is held, including reminders. Resume to release one digest.</p>'),wt=p("<button> </button>"),Rt=p('<div class="flex flex-wrap items-center justify-between gap-3 p-4"><div><p> </p> <p class="mt-1 text-xs text-muted-foreground"> </p></div> <div class="flex gap-3 text-sm"><button> </button><button>Cancel</button></div></div>'),qt=p('<p class="p-4 text-sm text-muted-foreground">No upcoming reminders.</p>'),St=p('<p class="font-mono text-xs text-muted-foreground"> </p>'),Ft=p('<article class="space-y-1 p-4"><p> </p> <p class="font-mono text-xs text-muted-foreground"> </p> <p class="text-xs text-muted-foreground"> </p> <!></article>'),Ct=p('<p class="p-6 text-sm text-muted-foreground">Events will appear here when a reminder is due.</p>'),Et=p(`<section class="rounded-xl border bg-card p-5"><h2 class="text-lg font-medium">Set a reminder</h2> <p class="mt-1 text-sm text-muted-foreground">Your own words, quoted and labelled as a reminder. Quiet hours do not hold reminders.</p> <form class="mt-4 grid gap-4 sm:grid-cols-2"><label class="grid gap-1 text-sm sm:col-span-2">Reminder<input class="rounded-md border bg-background p-2" maxlength="500" required="" placeholder="Check overnight CI"/></label> <label class="grid gap-1 text-sm">When<input class="rounded-md border bg-background p-2 font-mono text-xs" required=""/></label> <label class="grid gap-1 text-sm">Time zone<input class="rounded-md border bg-background p-2" required="" placeholder="Europe/London"/></label> <p class="text-xs text-muted-foreground sm:col-span-2">once 2026-11-20T09:00 · daily 08:30 · weekdays 08:30 · weekly mon,thu 17:00 · monthly 1
1
+ import"../chunks/DsnmJJEf.js";import{o as $e}from"../chunks/D3nPFlu1.js";import{p as et,j as R,k as We,l as tt,u as at,a as v,b as rt,m as st,c as p,e as s,q as i,g as e,$ as ot,s as t,r,o as b,t as y,f as ue,h as lt,v as nt,n as fe}from"../chunks/-7ouQdsG.js";import{d as it,s as m,a as F,e as dt}from"../chunks/MfmuqTIn.js";import{i as B}from"../chunks/BAuCcuxw.js";import{e as le,a as ut,s as ct,r as T,i as he,b as Fe,c as vt,d as pt}from"../chunks/CJNEYVWj.js";import{h as bt}from"../chunks/CloMQgCF.js";import{b as Q,a as Ce}from"../chunks/DflltLwV.js";import{i as mt}from"../chunks/BACvplXC.js";import{p as _t}from"../chunks/Cbb01QYB.js";import{S as gt}from"../chunks/CNvNrJS-.js";var xt=p('<button class="rounded-lg border px-4 py-2 text-sm"> </button>'),ft=p('<p role="alert" class="rounded-lg border border-red-400 p-4 text-sm"> </p>'),ht=p("<p>Firstmate is not configured.</p>"),yt=p('<p role="alert"> </p>'),kt=p('<p role="status" class="rounded-xl border border-amber-400 bg-amber-100 p-4 text-sm text-amber-950">Events paused. Everything is held, including reminders. Resume to release one digest.</p>'),wt=p("<button> </button>"),Rt=p('<div class="flex flex-wrap items-center justify-between gap-3 p-4"><div><p> </p> <p class="mt-1 text-xs text-muted-foreground"> </p></div> <div class="flex gap-3 text-sm"><button> </button><button>Cancel</button></div></div>'),qt=p('<p class="p-4 text-sm text-muted-foreground">No upcoming reminders.</p>'),St=p('<p class="font-mono text-xs text-muted-foreground"> </p>'),Ft=p('<article class="space-y-1 p-4"><p> </p> <p class="font-mono text-xs text-muted-foreground"> </p> <p class="text-xs text-muted-foreground"> </p> <!></article>'),Ct=p('<p class="p-6 text-sm text-muted-foreground">Events will appear here when a reminder is due.</p>'),Et=p(`<section class="rounded-xl border bg-card p-5"><h2 class="text-lg font-medium">Set a reminder</h2> <p class="mt-1 text-sm text-muted-foreground">Your own words, quoted and labelled as a reminder. Quiet hours do not hold reminders.</p> <form class="mt-4 grid gap-4 sm:grid-cols-2"><label class="grid gap-1 text-sm sm:col-span-2">Reminder<input class="rounded-md border bg-background p-2" maxlength="500" required="" placeholder="Check overnight CI"/></label> <label class="grid gap-1 text-sm">When<input class="rounded-md border bg-background p-2 font-mono text-xs" required=""/></label> <label class="grid gap-1 text-sm">Time zone<input class="rounded-md border bg-background p-2" required="" placeholder="Europe/London"/></label> <p class="text-xs text-muted-foreground sm:col-span-2">once 2026-11-20T09:00 · daily 08:30 · weekdays 08:30 · weekly mon,thu 17:00 · monthly 1
2
2
  09:00 · every 2h (minimum 15m)</p> <label class="grid gap-1 text-sm">If the machine was off<select class="rounded-md border bg-background p-2"><option>One reminder with missed count</option><option>Every missed occurrence</option><option>Skip missed occurrences</option></select></label> <button class="self-end rounded-md bg-primary px-4 py-2 text-sm text-primary-foreground">Set reminder</button></form></section> <section><h2 class="mb-3 text-lg font-medium">Reminders</h2> <div class="divide-y rounded-xl border"></div></section> <section><h2 class="mb-3 text-lg font-medium">Feed</h2> <div class="divide-y rounded-xl border"></div></section>`,1),je=p("<option> </option>"),It=p('<fieldset class="grid gap-3 rounded-xl border p-4 sm:grid-cols-3"><legend class="px-2 text-sm"></legend><label class="grid gap-1 text-sm">Rule id<input class="rounded border bg-background p-2"/></label><label class="grid gap-1 text-sm">Delivery<select class="rounded border bg-background p-2"></select></label><label class="grid gap-1 text-sm">Batch window (minutes)<input class="rounded border bg-background p-2" type="number" min="0" max="30"/></label><label class="grid gap-1 text-sm">Cadence<select class="rounded border bg-background p-2"><option>Batch</option><option>Hourly digest</option><option>Daily digest</option></select></label><label class="grid gap-1 text-sm">Daily digest time<input class="rounded border bg-background p-2" type="time"/></label> <div class="flex items-end gap-3 text-sm"><button>Move up</button><button>Remove</button></div></fieldset>'),Tt=p(`<section class="space-y-4"><h2 class="text-lg font-medium">First match wins</h2> <p class="text-sm text-muted-foreground">Rules stay on this machine. The source default applies last. Every new source starts at
3
3
  notify only. Reminders bypass quiet hours.</p> <!> <div class="flex gap-4 text-sm"><button>Add rule</button><button class="rounded border px-3 py-2">Save rules</button></div></section> <section class="space-y-4 rounded-xl border p-5"><h2 class="text-lg font-medium">Quiet hours</h2> <label class="flex gap-2 text-sm"><input type="checkbox"/>Hold events during quiet hours</label> <div class="flex flex-wrap gap-4"><label class="grid gap-1 text-sm">From<input type="time" class="rounded border bg-background p-2"/></label><label class="grid gap-1 text-sm">Until<input type="time" class="rounded border bg-background p-2"/></label><label class="grid gap-1 text-sm">Time zone<input class="rounded border bg-background p-2"/></label></div> <button class="rounded border px-3 py-2 text-sm">Save quiet hours</button></section> <p class="text-sm text-muted-foreground">Limits: 30 events per source per hour, 12 batches per hour, 20 lines per batch. A source
4
4
  exceeding its limit in three consecutive hourly windows pauses automatically.</p>`,1),Dt=p('<p role="alert" class="text-sm"> </p>'),At=p('<button class="rounded border px-3 py-2 text-sm">Disconnect events and retire binding</button>'),Wt=p(`<p class="text-sm text-muted-foreground">Connect installs a digest-pinned Wheelhouse package using Firstmate’s existing extension
@@ -1,3 +1,3 @@
1
- import"../chunks/DsnmJJEf.js";import{p as A,j as c,k as D,l as H,a as m,b as I,m as J,c as g,e as v,s as i,$ as P,o as u,r as l,t as b,g as n,q as o}from"../chunks/-7ouQdsG.js";import{d as B,s as h,a as G}from"../chunks/MfmuqTIn.js";import{i as R}from"../chunks/BAuCcuxw.js";import{e as K,r as L,f as M,s as Q}from"../chunks/CJNEYVWj.js";import{h as U}from"../chunks/CloMQgCF.js";import{p as V}from"../chunks/YAQH2TLS.js";import{S as X}from"../chunks/BXN538J3.js";import{S as Y}from"../chunks/B-0qqE45.js";var Z=g('<label class="flex cursor-pointer items-start gap-4 p-4"><input class="mt-1 size-4 accent-primary" type="checkbox"/> <span class="min-w-0"><span class="block font-medium"> </span> <span class="mt-1 block text-sm text-muted-foreground"> </span></span></label>'),ee=g('<p class="mt-4 text-sm" role="status"> </p>'),ae=g('<p class="mt-4 text-sm text-danger" role="alert"> </p>'),te=g(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Experimental features</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">These features are early and may change while their design is being worked out. They are off
1
+ import"../chunks/DsnmJJEf.js";import{p as A,j as c,k as D,l as H,a as m,b as I,m as J,c as g,e as v,s as i,$ as P,o as u,r as l,t as b,g as n,q as o}from"../chunks/-7ouQdsG.js";import{d as B,s as h,a as G}from"../chunks/MfmuqTIn.js";import{i as R}from"../chunks/BAuCcuxw.js";import{e as K,r as L,f as M,s as Q}from"../chunks/CJNEYVWj.js";import{h as U}from"../chunks/CloMQgCF.js";import{p as V}from"../chunks/Cbb01QYB.js";import{S as X}from"../chunks/BXN538J3.js";import{S as Y}from"../chunks/CNvNrJS-.js";var Z=g('<label class="flex cursor-pointer items-start gap-4 p-4"><input class="mt-1 size-4 accent-primary" type="checkbox"/> <span class="min-w-0"><span class="block font-medium"> </span> <span class="mt-1 block text-sm text-muted-foreground"> </span></span></label>'),ee=g('<p class="mt-4 text-sm" role="status"> </p>'),ae=g('<p class="mt-4 text-sm text-danger" role="alert"> </p>'),te=g(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Experimental features</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">These features are early and may change while their design is being worked out. They are off
2
2
  by default. Turning one off hides its pages and stops its background work; its saved data is
3
3
  kept and returns if you enable it again.</p> <div class="mt-6 divide-y rounded-lg border"></div> <!> <!></div></main>`);function me(j,k){A(k,!0);let f=c(D(H(()=>k.data.saved))),x=c(null),d=c(""),p=c("");async function N(e,a){const s=a.checked;o(x,e,!0),o(d,""),o(p,"");try{const t=await fetch("/api/features",{method:"POST",headers:{"content-type":"application/json",[X]:V.data.sessionToken},body:JSON.stringify({feature:e,enabled:s})}),r=await t.json();if(!t.ok||!r.saved)throw new Error(r.message??"Could not save this setting.");o(f,r.saved,!0),o(d,r.restartRequired?"Saved. Wheelhouse is restarting to apply the change.":"Saved. Restart Wheelhouse to apply the change.",!0)}catch(t){o(p,t.message,!0),a.checked=n(f)[e]}finally{o(x,null)}}var y=te();U("kgn40n",e=>{J(()=>{P.title="Experimental features · Wheelhouse"})});var S=v(y),w=v(S);Y(w,{});var _=i(w,6);K(_,20,()=>[{id:"events",title:"Events and reminders",detail:"Settings → Events, local reminders, and the Firstmate events connection."},{id:"remotes",title:"Remote access and second mates",detail:"Cloud and Fleetyard pairing, remote access through a gateway, and remote second-mate connections."}],e=>e.id,(e,a)=>{var s=Z(),t=v(s);L(t);var r=i(t,2),T=v(r),q=u(T,!0),C=i(T,2),F=u(C,!0);l(r),l(s),b(()=>{M(t,n(f)[a.id]),t.disabled=n(x)!==null,Q(t,"aria-label",`Enable ${a.title}`),h(q,a.title),h(F,a.detail)}),G("change",t,z=>N(a.id,z.currentTarget)),m(e,s)}),l(_);var E=i(_,2);{var O=e=>{var a=ee(),s=u(a,!0);b(()=>h(s,n(d))),m(e,a)};R(E,e=>{n(d)&&e(O)})}var W=i(E,2);{var $=e=>{var a=ae(),s=u(a,!0);b(()=>h(s,n(p))),m(e,a)};R(W,e=>{n(p)&&e($)})}l(S),l(y),m(j,y),I()}B(["change"]);export{me as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{p as at,f as ie,a as i,b as st,m as ot,ag as dt,c as m,e as n,q as xe,j as Me,$ as nt,s as t,g as e,r,h as ke,o as d,t as f,n as Se}from"../chunks/-7ouQdsG.js";import{d as it,e as lt,s as a,a as X}from"../chunks/MfmuqTIn.js";import{i as C}from"../chunks/BAuCcuxw.js";import{e as L,s as Fe,a as je}from"../chunks/CJNEYVWj.js";import{h as mt}from"../chunks/CloMQgCF.js";import{b as ct}from"../chunks/XNI4QyoL.js";import{S as ut}from"../chunks/B-0qqE45.js";import{C as Re}from"../chunks/DRN_mvpb.js";import{X as vt}from"../chunks/BJoMiuA8.js";import{T as pt}from"../chunks/BGW1RfKQ.js";import{s as Ee,r as He}from"../chunks/8Fai-wPF.js";import{I as Ie}from"../chunks/BfNiKjWt.js";import{P as xt}from"../chunks/4pTUx6eL.js";import{M as Ae}from"../chunks/siUtttqk.js";var ft=new Set(["$$slots","$$events","$$legacy"]);function gt(Z,V){let v=He(V,ft);const ee={name:"lock-keyhole",size:24,node:[["circle",{cx:"12",cy:"16",r:"1"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3"}]]};Ie(Z,Ee(()=>v,{get icon(){return ee}}))}var _t=new Set(["$$slots","$$events","$$legacy"]);function ht(Z,V){let v=He(V,_t);const ee={name:"share-2",size:24,node:[["circle",{cx:"18",cy:"5",r:"3"}],["circle",{cx:"6",cy:"12",r:"3"}],["circle",{cx:"18",cy:"19",r:"3"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}]]};Ie(Z,Ee(()=>v,{get icon(){return ee}}))}const ze=[{id:"workers",name:"Workers & instructions",blurb:"What each worker is told and what it can reach."},{id:"agents",name:"Agents & models",blurb:"Which agent, model and effort Firstmate picks for each kind of work."},{id:"projects",name:"Projects",blurb:"How each project’s work is checked, whether Firstmate may merge it, and how many workers it can take at once."},{id:"runtime",name:"Runtime",blurb:"Where workers run on this machine and how much work can run together."},{id:"mates",name:"Second mates",blurb:"Who this home routes work to, and which settings it says are shared."},{id:"preferences",name:"Your preferences",blurb:"What Firstmate has written down about how you like things done."},{id:"safety",name:"Safety & accounts",blurb:"Settings about worker permissions, accounts and the environment they receive."}];var bt=m('<p class="mt-8 rounded-lg border border-dashed p-6 text-sm text-muted-foreground"> </p>'),yt=m('<div class="mt-5 flex max-w-5xl items-start gap-3 rounded-lg border border-warning/40 bg-warning/5 p-3 text-sm"><!> <p class="flex-1"><strong class="font-semibold text-warning">Your startup notes are over budget.</strong> </p> <button class="rounded-md border px-2.5 py-1 text-xs hover:bg-muted">Review</button></div>'),wt=m('<a class="rounded-full border px-3 py-1 text-xs text-muted-foreground hover:border-foreground/30 hover:text-foreground"> </a>'),kt=m('<button class="grid w-full gap-2 px-4 py-3 text-left hover:bg-muted/50 sm:grid-cols-[minmax(10rem,1.1fr)_minmax(11rem,1fr)_minmax(8rem,.8fr)_minmax(6rem,.7fr)_1.25rem] sm:items-center"><span class="font-medium"> </span> <span class="text-sm text-muted-foreground"> </span> <span> </span> <span class="text-sm text-muted-foreground"> </span> <!></button>'),Le=m('<div class="divide-y"></div>'),St=m('<p class="px-4 py-6 text-sm text-muted-foreground">No projects are registered in this home.</p>'),Ft=m('<div class="overflow-hidden rounded-lg border bg-card"><div class="flex flex-wrap items-center justify-between gap-3 border-b px-4 py-3 text-sm text-muted-foreground"><span> </span> <div class="flex gap-2"><span class="rounded border px-2 py-0.5 text-xs">Editable</span><span class="rounded border px-2 py-0.5 text-xs">This home’s list</span></div></div> <!></div>'),jt=m('<span class="rounded border px-2 py-0.5 text-xs"> </span>'),zt=m('<span class="text-sm text-muted-foreground">No projects listed</span>'),$t=m('<div class="grid gap-2 px-4 py-4 sm:grid-cols-[minmax(10rem,.8fr)_minmax(0,1.2fr)]"><div><h3 class="font-semibold"> </h3> <p class="mt-1 text-sm text-muted-foreground"> </p></div> <div class="flex flex-wrap gap-2"></div></div>'),Ct=m('<p class="px-4 py-5 text-sm text-muted-foreground">No second-mate routes are recorded in this home.</p>'),Tt=m('<span class="rounded border bg-background px-2 py-1 text-xs"> </span>'),Nt=m(`<div class="overflow-hidden rounded-lg border bg-card"><!> <div class="border-t px-4 py-4"><p class="text-sm font-medium">Settings this home says it shares</p> <p class="mt-1 text-xs text-muted-foreground">This is the configured inheritance, not a reading of what any second mate
1
+ import"../chunks/DsnmJJEf.js";import{p as at,f as ie,a as i,b as st,m as ot,ag as dt,c as m,e as n,q as xe,j as Me,$ as nt,s as t,g as e,r,h as ke,o as d,t as f,n as Se}from"../chunks/-7ouQdsG.js";import{d as it,e as lt,s as a,a as X}from"../chunks/MfmuqTIn.js";import{i as C}from"../chunks/BAuCcuxw.js";import{e as L,s as Fe,a as je}from"../chunks/CJNEYVWj.js";import{h as mt}from"../chunks/CloMQgCF.js";import{b as ct}from"../chunks/XNI4QyoL.js";import{S as ut}from"../chunks/CNvNrJS-.js";import{C as Re}from"../chunks/DRN_mvpb.js";import{X as vt}from"../chunks/BJoMiuA8.js";import{T as pt}from"../chunks/BGW1RfKQ.js";import{s as Ee,r as He}from"../chunks/8Fai-wPF.js";import{I as Ie}from"../chunks/BfNiKjWt.js";import{P as xt}from"../chunks/4pTUx6eL.js";import{M as Ae}from"../chunks/siUtttqk.js";var ft=new Set(["$$slots","$$events","$$legacy"]);function gt(Z,V){let v=He(V,ft);const ee={name:"lock-keyhole",size:24,node:[["circle",{cx:"12",cy:"16",r:"1"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3"}]]};Ie(Z,Ee(()=>v,{get icon(){return ee}}))}var _t=new Set(["$$slots","$$events","$$legacy"]);function ht(Z,V){let v=He(V,_t);const ee={name:"share-2",size:24,node:[["circle",{cx:"18",cy:"5",r:"3"}],["circle",{cx:"6",cy:"12",r:"3"}],["circle",{cx:"18",cy:"19",r:"3"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}]]};Ie(Z,Ee(()=>v,{get icon(){return ee}}))}const ze=[{id:"workers",name:"Workers & instructions",blurb:"What each worker is told and what it can reach."},{id:"agents",name:"Agents & models",blurb:"Which agent, model and effort Firstmate picks for each kind of work."},{id:"projects",name:"Projects",blurb:"How each project’s work is checked, whether Firstmate may merge it, and how many workers it can take at once."},{id:"runtime",name:"Runtime",blurb:"Where workers run on this machine and how much work can run together."},{id:"mates",name:"Second mates",blurb:"Who this home routes work to, and which settings it says are shared."},{id:"preferences",name:"Your preferences",blurb:"What Firstmate has written down about how you like things done."},{id:"safety",name:"Safety & accounts",blurb:"Settings about worker permissions, accounts and the environment they receive."}];var bt=m('<p class="mt-8 rounded-lg border border-dashed p-6 text-sm text-muted-foreground"> </p>'),yt=m('<div class="mt-5 flex max-w-5xl items-start gap-3 rounded-lg border border-warning/40 bg-warning/5 p-3 text-sm"><!> <p class="flex-1"><strong class="font-semibold text-warning">Your startup notes are over budget.</strong> </p> <button class="rounded-md border px-2.5 py-1 text-xs hover:bg-muted">Review</button></div>'),wt=m('<a class="rounded-full border px-3 py-1 text-xs text-muted-foreground hover:border-foreground/30 hover:text-foreground"> </a>'),kt=m('<button class="grid w-full gap-2 px-4 py-3 text-left hover:bg-muted/50 sm:grid-cols-[minmax(10rem,1.1fr)_minmax(11rem,1fr)_minmax(8rem,.8fr)_minmax(6rem,.7fr)_1.25rem] sm:items-center"><span class="font-medium"> </span> <span class="text-sm text-muted-foreground"> </span> <span> </span> <span class="text-sm text-muted-foreground"> </span> <!></button>'),Le=m('<div class="divide-y"></div>'),St=m('<p class="px-4 py-6 text-sm text-muted-foreground">No projects are registered in this home.</p>'),Ft=m('<div class="overflow-hidden rounded-lg border bg-card"><div class="flex flex-wrap items-center justify-between gap-3 border-b px-4 py-3 text-sm text-muted-foreground"><span> </span> <div class="flex gap-2"><span class="rounded border px-2 py-0.5 text-xs">Editable</span><span class="rounded border px-2 py-0.5 text-xs">This home’s list</span></div></div> <!></div>'),jt=m('<span class="rounded border px-2 py-0.5 text-xs"> </span>'),zt=m('<span class="text-sm text-muted-foreground">No projects listed</span>'),$t=m('<div class="grid gap-2 px-4 py-4 sm:grid-cols-[minmax(10rem,.8fr)_minmax(0,1.2fr)]"><div><h3 class="font-semibold"> </h3> <p class="mt-1 text-sm text-muted-foreground"> </p></div> <div class="flex flex-wrap gap-2"></div></div>'),Ct=m('<p class="px-4 py-5 text-sm text-muted-foreground">No second-mate routes are recorded in this home.</p>'),Tt=m('<span class="rounded border bg-background px-2 py-1 text-xs"> </span>'),Nt=m(`<div class="overflow-hidden rounded-lg border bg-card"><!> <div class="border-t px-4 py-4"><p class="text-sm font-medium">Settings this home says it shares</p> <p class="mt-1 text-xs text-muted-foreground">This is the configured inheritance, not a reading of what any second mate
2
2
  currently uses.</p> <div class="mt-3 flex flex-wrap gap-2"></div></div></div>`),Bt=m('<span class="mt-0.5 block text-xs text-muted-foreground"> </span>'),Wt=m("<span><!> </span>"),Mt=m('<button class="grid w-full gap-2 px-4 py-3 text-left hover:bg-muted/50 sm:grid-cols-[minmax(12rem,1.05fr)_minmax(12rem,1.2fr)_minmax(12rem,.9fr)_1.25rem] sm:items-center"><span><span class="block font-medium"> </span><span class="mt-0.5 block text-sm leading-snug text-muted-foreground"> </span></span> <span class="text-sm"> <!></span> <span class="flex flex-wrap gap-1.5"><!> <span><!> </span></span> <!></button>'),Rt=m('<div class="divide-y overflow-hidden rounded-lg border bg-card"></div>'),At=m('<section class="mt-10 scroll-mt-20"><h2 class="flex items-center gap-3 font-mono text-xs font-medium tracking-[0.2em] text-muted-foreground uppercase"> <span class="h-px flex-1 bg-hair"></span></h2> <p class="mt-2 mb-3 max-w-3xl text-sm text-muted-foreground"> </p> <!></section>'),Lt=m('<div class="mt-6 flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-muted-foreground"><span class="inline-flex items-center gap-2"><span class="size-2 rounded-full bg-success"></span>Read just now from this Firstmate</span> <span> </span> <span> </span> <span> </span></div> <!> <nav class="mt-6 flex flex-wrap gap-2" aria-label="Firstmate settings topics"></nav> <!>',1),Pe=m('<p class="mt-1 text-sm text-muted-foreground"> </p>'),Pt=m('<div class="grid grid-cols-[minmax(7rem,.7fr)_minmax(0,1.3fr)] gap-3 border-t py-1.5 first:border-0"><dt class="text-xs text-muted-foreground"> </dt> <dd class="m-0 text-sm break-words"> </dd></div>'),Et=m('<div class="mt-4"><h3 class="mb-1 text-xs font-medium tracking-wider text-muted-foreground uppercase"> </h3> <dl class="space-y-1"></dl></div>'),Ht=m('<strong class="font-semibold"> </strong> <!> <!>',1),It=m('<div><dt class="text-xs text-muted-foreground"> </dt> <dd class="m-0 font-medium"> </dd></div>'),Yt=m('<dl class="space-y-2"></dl>'),qt=m('<li class="border-t pt-2 first:border-0 first:pt-0"> </li>'),Dt=m('<dt class="text-muted-foreground">How it takes effect</dt> <dd class="m-0"> </dd>',1),Ot=m('<footer class="flex items-center gap-3 border-t p-4 sm:px-7"><a class="inline-flex h-9 items-center gap-2 rounded-md bg-primary px-3 text-sm text-primary-foreground hover:opacity-90"><!>Ask Firstmate</a> <span class="text-xs text-muted-foreground">Opens a draft in chat; nothing is sent until you send it.</span> <button class="ml-auto rounded-md px-3 py-2 text-sm text-muted-foreground hover:bg-muted">Close</button></footer>'),Gt=m('<footer class="flex justify-end border-t p-4 sm:px-7"><button class="rounded-md px-3 py-2 text-sm text-muted-foreground hover:bg-muted">Close</button></footer>'),Ut=m('<button class="fixed inset-0 z-40 bg-black/40" aria-label="Close setting details"></button> <div class="fixed inset-y-0 right-0 z-50 flex w-full flex-col border-l bg-panel shadow-xl sm:w-[min(44rem,100vw)]" role="dialog" aria-modal="true" aria-labelledby="setting-title" tabindex="-1"><header class="flex items-start gap-3 border-b p-5 sm:px-7"><div class="min-w-0 flex-1"><p class="font-mono text-[0.68rem] tracking-[0.2em] text-muted-foreground uppercase"> </p> <h2 id="setting-title" class="mt-1 font-title text-2xl"> </h2> <!></div> <button class="grid size-9 shrink-0 place-items-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Close"><!></button></header> <div class="min-h-0 flex-1 overflow-y-auto px-5 py-5 sm:px-7"><dl class="grid gap-x-5 gap-y-4 sm:grid-cols-[9rem_minmax(0,1fr)]"><dt class="text-sm text-muted-foreground">Now</dt> <dd class="m-0 text-sm"><!></dd> <dt class="text-sm text-muted-foreground">What it changes</dt> <dd class="m-0 text-sm"> </dd> <dt class="text-sm text-muted-foreground">Second mates</dt> <dd class="m-0 text-sm text-muted-foreground"> </dd></dl> <section class="mt-7"><h3 class="flex items-center gap-3 font-mono text-xs font-medium tracking-[0.2em] text-muted-foreground uppercase">History<span class="h-px flex-1 bg-hair"></span></h3> <ul class="mt-2 space-y-2 text-sm"></ul></section> <details class="mt-6 rounded-lg border border-dashed p-3"><summary class="cursor-pointer text-sm text-muted-foreground">Technical details</summary> <dl class="mt-3 grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[8rem_minmax(0,1fr)]"><dt class="text-muted-foreground">Stored in</dt> <dd class="m-0 font-mono text-xs break-words"> </dd> <dt class="text-muted-foreground">Read by</dt> <dd class="m-0"> </dd> <dt class="text-muted-foreground">Documented</dt> <dd class="m-0"> </dd> <!></dl></details></div> <!></div>',1),Vt=m(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Firstmate</h1> <p class="mt-1 max-w-3xl text-sm text-muted-foreground">How Firstmate runs in this home: what each setting changes and what this home says it shares.
3
3
  This page is read-only; remote second mates’ effective settings are not fetched.</p> <!></div></main> <!>`,1);function mr(Z,V){at(V,!0);const v=ke(()=>V.data.view),ee=ke(()=>e(v).settings.filter(o=>o.share==="shared")),le=ke(()=>e(v).startupBudget&&e(v).startupBudget.used!==null&&e(v).startupBudget.overBy!==null?{used:e(v).startupBudget.used,budget:e(v).startupBudget.budget,overBy:e(v).startupBudget.overBy}:null);let c=Me(null),$e=Me(void 0);function Ce(o){xe(c,{kind:"setting",item:o},!0)}function Ye(o){xe(c,{kind:"project",item:o},!0)}function te(){xe(c,null)}function qe(o){o.key==="Escape"&&te()}function De(o){return ze.find(P=>P.id===o)?.name??"Firstmate"}function Oe(o){return`/?draft=${encodeURIComponent(`Please review how ${o.toLowerCase()} is configured.`)}`}function Ge(o){return o==="shared"?"Shared with second mates":o==="home"?"This home only":"Not applicable"}function Ue(o){return o==="Editable"?"border-foreground/20 text-foreground":o==="Ask Firstmate"?"border-brass/45 bg-brass/5 text-foreground":o==="Security"||o==="Captain only"?"border-dashed text-muted-foreground":"text-muted-foreground"}function Ve(o){return[{label:"How work is checked",value:o.mode},{label:"Merge green work",value:o.autoMerge?"Firstmate merges":"You approve"},{label:"Workers at once",value:o.capacity?`${o.capacity} at once`:"No limit"}]}var Te=Vt();mt("1q8idte",o=>{ot(()=>{nt.title="Firstmate settings · Wheelhouse"})}),lt("keydown",dt,qe);var fe=ie(Te),Ne=n(fe),Be=n(Ne);ut(Be,{});var Xe=t(Be,6);{var Je=o=>{var P=bt(),O=d(P,!0);f(()=>a(O,e(v).reason??"Wheelhouse is not connected to a Firstmate home.")),i(o,P)},Ke=o=>{var P=Lt(),O=ie(P),re=t(n(O),2),ae=d(re),J=t(re,2),me=d(J),ge=t(J,2),ce=d(ge);r(O);var ue=t(O,2);{var _e=N=>{var h=yt(),F=n(h);pt(F,{class:"mt-0.5 size-4 shrink-0 text-warning","aria-hidden":"true"});var B=t(F,2),oe=t(n(B));r(B);var Q=t(B,2);r(h),f((G,U,de)=>a(oe,` Firstmate reads about ${G??""} tokens against a budget of
4
4
  ${U??""} (${de??""} over). Older
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{p as ye,j as y,k as I,l as q,u as De,t as C,a as l,b as he,e as c,s as i,x as j,g as e,q as a,c as w,h as Z,o as h,r as u,n as x,i as Ee,f as pe,m as Fe,$ as Le}from"../chunks/-7ouQdsG.js";import{h as He}from"../chunks/CloMQgCF.js";import{d as Ie,a as ee,s as g}from"../chunks/MfmuqTIn.js";import{i as b}from"../chunks/BAuCcuxw.js";import{i as qe,r as ve,a as Be,j as fe,d as Je,s as ge}from"../chunks/CJNEYVWj.js";import{p as Ke}from"../chunks/YAQH2TLS.js";import{S as Ye}from"../chunks/BXN538J3.js";import{D as _}from"../chunks/tpeuVjMv.js";import{B as z}from"../chunks/Cox57RCx.js";import{S as Me}from"../chunks/B-0qqE45.js";var Qe=w('<p class="text-xs text-muted-foreground"> </p>'),Ve=w('<p class="text-xs text-muted-foreground">HTTPS is required except for HTTP on this computer, for local testing.</p>'),Xe=w("<!> <!>",1),Ze=w(`<section class="rounded-lg border border-warning/50 bg-warning/5 p-4" aria-labelledby="gateway-pairing-title" role="status"><h3 id="gateway-pairing-title" class="font-medium">Approve this pairing with your passkey</h3> <ol class="mt-2 list-decimal space-y-1 pl-5 text-sm"><li>On a device you trust, sign in at <a class="break-all underline" target="_blank" rel="noreferrer noopener"> </a>.</li> <li>Type this one-time code: <code class="tabular rounded bg-background px-1.5 py-0.5"> </code></li> <li>Choose fingerprint <code class="tabular"> </code> and approve with your
1
+ import"../chunks/DsnmJJEf.js";import{p as ye,j as y,k as I,l as q,u as De,t as C,a as l,b as he,e as c,s as i,x as j,g as e,q as a,c as w,h as Z,o as h,r as u,n as x,i as Ee,f as pe,m as Fe,$ as Le}from"../chunks/-7ouQdsG.js";import{h as He}from"../chunks/CloMQgCF.js";import{d as Ie,a as ee,s as g}from"../chunks/MfmuqTIn.js";import{i as b}from"../chunks/BAuCcuxw.js";import{i as qe,r as ve,a as Be,j as fe,d as Je,s as ge}from"../chunks/CJNEYVWj.js";import{p as Ke}from"../chunks/Cbb01QYB.js";import{S as Ye}from"../chunks/BXN538J3.js";import{D as _}from"../chunks/tpeuVjMv.js";import{B as z}from"../chunks/Cox57RCx.js";import{S as Me}from"../chunks/CNvNrJS-.js";var Qe=w('<p class="text-xs text-muted-foreground"> </p>'),Ve=w('<p class="text-xs text-muted-foreground">HTTPS is required except for HTTP on this computer, for local testing.</p>'),Xe=w("<!> <!>",1),Ze=w(`<section class="rounded-lg border border-warning/50 bg-warning/5 p-4" aria-labelledby="gateway-pairing-title" role="status"><h3 id="gateway-pairing-title" class="font-medium">Approve this pairing with your passkey</h3> <ol class="mt-2 list-decimal space-y-1 pl-5 text-sm"><li>On a device you trust, sign in at <a class="break-all underline" target="_blank" rel="noreferrer noopener"> </a>.</li> <li>Type this one-time code: <code class="tabular rounded bg-background px-1.5 py-0.5"> </code></li> <li>Choose fingerprint <code class="tabular"> </code> and approve with your
2
2
  passkey.</li></ol> <p class="mt-3 text-xs text-warning">Only approve a pairing you started. Approval gives this Gateway access to this Wheelhouse,
3
3
  including its terminals.</p></section>`),me=w('<p class="rounded-md border border-danger/40 p-3 text-sm text-danger" role="alert"> </p>'),et=w('<p class="text-sm text-danger" role="alert"> </p>'),tt=w('<p class="text-sm text-muted-foreground" role="status"> </p>'),at=w('<section class="mt-6 overflow-hidden rounded-xl border bg-card" aria-labelledby="gateway-profile-title"><header class="flex flex-wrap items-start justify-between gap-4 border-b px-5 py-4"><div><h2 id="gateway-profile-title" class="font-display text-xl font-semibold">Connection profile</h2> <p class="mt-1 max-w-prose text-sm text-muted-foreground">One sign-in and pairing are shared across the Gateway features in Wheelhouse.</p></div> <p class="flex items-center gap-2 rounded-full border px-3 py-1.5 text-sm" data-testid="gateway-status"><span aria-hidden="true"></span> <span> </span></p></header> <div class="grid gap-5 p-5"><label class="grid gap-1.5 text-sm"><span class="font-medium">Profile name</span> <input class="rounded-md border bg-background px-3 py-2" maxlength="60" aria-label="Gateway profile name"/></label> <div class="grid gap-1.5 text-sm"><label for="gateway-choice" class="font-medium">Gateway</label> <select id="gateway-choice" class="rounded-md border bg-background px-3 py-2"><option>Fleetyard (default)</option><option>Self-hosted or local testing</option></select> <input class="mt-1 rounded-md border bg-background px-3 py-2 disabled:opacity-60" type="url" aria-label="Gateway URL"/> <!></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div> <!> <!> <!> <!> <!> <div class="grid gap-3 border-t pt-4 sm:grid-cols-3" aria-label="Gateway features using this profile"><div class="rounded-lg border p-3"><p class="text-sm font-medium">Remote access</p> <p class="mt-1 text-xs text-muted-foreground">Uses this profile now.</p></div> <div class="rounded-lg border p-3"><p class="text-sm font-medium">Second mates</p> <p class="mt-1 text-xs text-muted-foreground">Will reuse this profile when Gateway setup arrives.</p></div> <div class="rounded-lg border p-3"><p class="text-sm font-medium">Events</p> <p class="mt-1 text-xs text-muted-foreground">Can reuse this profile for later delivery.</p></div></div></div></section>');function rt(B,k){ye(k,!0);let s=y(I(q(()=>k.initial))),S=y(I(q(()=>k.initial.profileName??"Fleetyard"))),p=y(I(q(()=>k.initial.gateway||_))),G=y(I(q(()=>k.initial.gateway===_?"fleetyard":"custom"))),n=y(!1),W=y(!1),T=y(""),v=y(""),D=y(!1);const f=Z(()=>e(s).pairing&&!e(s).pairing.error?e(s).pairing:null),te=Z(()=>e(f)?{label:"Waiting for approval",dot:"bg-warning"}:e(s).state==="online"?{label:"Connected",dot:"bg-success"}:e(s).state==="connecting"?{label:"Connecting",dot:"bg-warning"}:e(s).state==="stopped"?{label:"Connection stopped",dot:"bg-danger"}:e(s).device?{label:"Paired, not connected",dot:"bg-muted-foreground"}:{label:"Not connected",dot:"bg-muted-foreground"});function xe(t){a(G,t,!0),t==="fleetyard"?a(p,_,!0):e(p)===_&&a(p,""),a(W,!0)}async function E(t,r={}){try{const o=await fetch("/api/cloud",{method:"POST",headers:{"content-type":"application/json",[Ye]:Ke.data.sessionToken},body:JSON.stringify({action:t,...r})}),d=await o.json().catch(()=>null);return d?.view&&a(s,d.view,!0),o.ok?(a(v,d?.note??"",!0),!0):(a(T,d?.message??`Wheelhouse could not do that (${o.status}).`,!0),!1)}catch{return a(T,"Wheelhouse could not be reached. Try again."),!1}}async function be(){a(n,!0),a(T,""),a(v,"");const t=e(G)==="fleetyard"?_:e(p).trim();if(!t){a(T,"Paste the URL of your self-hosted or local Gateway first."),a(n,!1);return}try{if(!await E("profile",{profileName:e(S),gateway:t})||(a(W,!1),!await E("start")))return;a(v,e(s).device?"Reconnecting to the Gateway in the background.":"Pairing started. Approve this Wheelhouse on the Gateway to finish connecting.",!0)}finally{a(n,!1)}}async function _e(){a(n,!0),a(T,""),a(v,"");try{await E("stop")&&a(v,"Pairing cancelled. The Gateway profile is unchanged.")}finally{a(n,!1)}}async function we(){a(n,!0),a(T,""),a(v,"");try{await E("disconnect")&&(a(D,!1),a(W,!1),a(v,"Disconnected. The saved Gateway profile is ready to use again."))}finally{a(n,!1)}}async function ke(){try{const t=await fetch("/api/cloud");if(!t.ok)return;const r=await t.json(),o=!!e(f);a(s,r,!0),e(W)||(a(S,r.profileName??"Fleetyard",!0),a(p,r.gateway||_,!0),a(G,e(p)===_?"fleetyard":"custom",!0)),o&&r.device&&a(v,"Connected. This profile is ready for remote access.")}catch{}}De(()=>{const t=setInterval(()=>{ke()},e(f)?1e3:e(s).state==="online"?8e3:3e3);return()=>clearInterval(t)});var J=at(),K=c(J),ae=i(c(K),2),re=c(ae),Ge=i(re,2),Te=h(Ge,!0);u(ae),u(K);var se=i(K,2),Y=c(se),F=i(c(Y),2);ve(F),u(Y);var M=i(Y,2),m=i(c(M),2),Q=c(m);Q.value=Q.__value="fleetyard";var ie=i(Q);ie.value=ie.__value="custom",u(m);var L;qe(m);var N=i(m,2);ve(N);var Pe=i(N,2);{var $e=t=>{var r=Qe(),o=h(r);C(()=>g(o,`Revoke this pairing before switching Gateways. The saved URL is ${e(s).gateway??""}.`)),l(t,r)},Ce=t=>{var r=Ve();l(t,r)};b(Pe,t=>{e(s).device?t($e):t(Ce,-1)})}u(M);var V=i(M,2),oe=c(V);{let t=Z(()=>e(n)||!!e(f));z(oe,{size:"sm",get disabled(){return e(t)},onclick:be,"data-testid":"gateway-connect",children:(r,o)=>{x();var d=j();C(()=>g(d,e(n)?"Connecting…":e(s).device?e(W)?"Save and reconnect":"Reconnect":"Connect")),l(r,d)},$$slots:{default:!0}})}var ne=i(oe,2);{var Se=t=>{z(t,{variant:"outline",size:"sm",get disabled(){return e(n)},onclick:_e,children:(r,o)=>{x();var d=j("Cancel pairing");l(r,d)},$$slots:{default:!0}})};b(ne,t=>{e(f)&&t(Se)})}var We=i(ne,2);{var Ne=t=>{var r=Ee(),o=pe(r);{var d=P=>{var $=Xe(),A=pe($);z(A,{variant:"destructive",size:"sm",get disabled(){return e(n)},onclick:we,children:(R,X)=>{x();var U=j("Confirm disconnect");l(R,U)},$$slots:{default:!0}});var O=i(A,2);z(O,{variant:"ghost",size:"sm",get disabled(){return e(n)},onclick:()=>a(D,!1),children:(R,X)=>{x();var U=j("Keep connected");l(R,U)},$$slots:{default:!0}}),l(P,$)},H=P=>{z(P,{variant:"outline",size:"sm",get disabled(){return e(n)},onclick:()=>a(D,!0),children:($,A)=>{x();var O=j("Disconnect…");l($,O)},$$slots:{default:!0}})};b(o,P=>{e(D)?P(d):P(H,-1)})}l(t,r)};b(We,t=>{e(s).device&&t(Ne)})}u(V);var le=i(V,2);{var Re=t=>{var r=Ze(),o=i(c(r),2),d=c(o),H=i(c(d)),P=h(H,!0);x(),u(d);var $=i(d,2),A=i(c($)),O=h(A,!0);u($);var R=i($,2),X=i(c(R)),U=h(X,!0);x(),u(R),u(o),x(2),u(r),C(()=>{ge(H,"href",e(f).verificationUri),g(P,e(f).verificationUri),g(O,e(f).userCode),g(U,e(f).fingerprint)}),l(t,r)};b(le,t=>{e(f)&&t(Re)})}var de=i(le,2);{var Ae=t=>{var r=me(),o=h(r,!0);C(()=>g(o,e(s).pairing.error)),l(t,r)};b(de,t=>{e(s).pairing?.error&&t(Ae)})}var ce=i(de,2);{var Oe=t=>{var r=me(),o=h(r,!0);C(()=>g(o,e(s).reason)),l(t,r)};b(ce,t=>{e(s).reason&&(e(s).state==="stopped"||e(s).state==="not-paired")&&t(Oe)})}var ue=i(ce,2);{var Ue=t=>{var r=et(),o=h(r,!0);C(()=>g(o,e(T))),l(t,r)};b(ue,t=>{e(T)&&t(Ue)})}var je=i(ue,2);{var ze=t=>{var r=tt(),o=h(r,!0);C(()=>g(o,e(v))),l(t,r)};b(je,t=>{e(v)&&t(ze)})}x(2),u(se),u(J),C(()=>{Be(re,1,`size-2 rounded-full ${e(te).dot??""}`),g(Te,e(te).label),fe(F,e(S)),F.disabled=e(n),m.disabled=e(n)||!!e(s).device,L!==(L=e(G))&&(m.value=(m.__value=L)??"",Je(m,L)),fe(N,e(p)),ge(N,"placeholder",e(G)==="custom"?"https://gateway.example or http://127.0.0.1:4000":_),N.disabled=e(n)||!!e(s).device}),ee("input",F,t=>{a(S,t.currentTarget.value,!0),a(W,!0)}),ee("change",m,t=>xe(t.currentTarget.value)),ee("input",N,t=>{a(p,t.currentTarget.value,!0),a(G,e(p)===_?"fleetyard":"custom",!0),a(W,!0)}),l(B,J),he()}Ie(["input","change"]);var st=w(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Gateway</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">One Gateway connection is shared by remote access, second mates and future event delivery. The
4
4
  default is Fleetyard; you can choose another Gateway or a local one for testing.</p> <!></div></main>`);function mt(B,k){ye(k,!0);var s=st();He("103n3wl",n=>{Fe(()=>{Le.title="Gateway · Wheelhouse"})});var S=c(s),p=c(S);Me(p,{});var G=i(p,6);rt(G,{get initial(){return k.data.view}}),u(S),u(s),l(B,s),he()}export{mt as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{o as mt}from"../chunks/D3nPFlu1.js";import{p as Ve,j as H,k as ot,f as C,e as _,r as m,s as n,i as Te,n as se,x as ie,t as b,a as r,g as e,q as c,h,b as Xe,o as q,c as d,m as _t,$ as pt,ay as ht}from"../chunks/-7ouQdsG.js";import{s as k,d as nt,a as Me}from"../chunks/MfmuqTIn.js";import{i as W}from"../chunks/BAuCcuxw.js";import{k as xt}from"../chunks/CkNCm7Ts.js";import{s as ee,a as Ge,h as He,r as Ye,e as ze,f as Ze}from"../chunks/CJNEYVWj.js";import{h as wt}from"../chunks/CloMQgCF.js";import{i as Ne}from"../chunks/BQ56-tK5.js";import{p as Je}from"../chunks/YAQH2TLS.js";import{S as bt}from"../chunks/B-0qqE45.js";import{I as kt}from"../chunks/JUcpD7p2.js";import{I as yt}from"../chunks/1c_L7VrA.js";import{c as K}from"../chunks/CmLAxoyv.js";import{p as Ke,s as Oe}from"../chunks/8Fai-wPF.js";import{D as Le}from"../chunks/Bt6KUUDH.js";import{D as Pt,a as Ct,b as Tt,c as Dt,d as $e,e as Wt}from"../chunks/De4O2In1.js";import{B as _e}from"../chunks/Cox57RCx.js";import{C as Rt,b as It,u as jt,e as zt,f as St,p as Ut,g as At,c as Et}from"../chunks/CIMsnGRb.js";import{P as Ft,f as Bt,m as Nt,i as Ot}from"../chunks/DmM4WIRE.js";import{L as et}from"../chunks/wu_NjAkT.js";import{T as tt}from"../chunks/BGW1RfKQ.js";import{C as Lt}from"../chunks/55XEoNtX.js";import{C as $t}from"../chunks/CMHkuJ4s.js";import{S as qt}from"../chunks/j2tARAl0.js";import{R as Qe,E as Mt,e as Gt,w as Ht}from"../chunks/BW_JnYeB.js";import{l as at}from"../chunks/Rgz0--W-.js";import{a as Jt}from"../chunks/Ug0gsfQr.js";import{R as Kt}from"../chunks/CvmB6XOk.js";import{C as Qt}from"../chunks/DRN_mvpb.js";var Vt=d('<span class="flex items-center gap-1.5 text-muted-foreground"><!>Checking…</span>'),Xt=d('<span class="flex items-center gap-1.5 text-muted-foreground"><!>Up to date</span>'),Yt=d('<span class="text-muted-foreground" title="Installed at a commit, so it is not checked">Pinned to a commit</span>'),Zt=d('<span class="flex items-center gap-1.5 text-muted-foreground"><!>Could not check</span>'),ea=d("<!> ",1),ta=d('<span class="text-sea"> </span> <!>',1),qe=d("<!> <!>",1),aa=d('<p class="flex items-center gap-2 text-muted-foreground"><!> </p>'),ra=d('<p class="flex items-start gap-2 text-xs text-danger" role="alert"><!> </p> <!>',1),sa=d('<p class="text-xs text-danger" role="alert"> </p>'),rt=d("<!> <!> <!>",1),oa=d("<p> </p>"),na=d('<div class="flex flex-wrap items-center justify-end gap-2 text-xs sm:min-w-48"><!></div> <!>',1);function la(pe,a){Ve(a,!0);let oe=Ke(a,"checking",3,!1),de=Ke(a,"busy",19,()=>[]),U=H(!1),f=H("looking"),I=H(null),x=H(null),Q=H(ot({}));const w=h(()=>e(x)?Nt(e(x),e(Q)):null),N=()=>Je.data.sessionToken;async function O(){c(U,!0),c(f,"looking"),c(I,null),c(x,null);const g=a.update.state==="newer-tag"?a.update.latest?.ref??null:null,u=await zt({id:a.update.id,ref:g},N());if(!u.ok){c(I,u.error,!0),c(f,"failed");return}c(x,u.value,!0),c(Q,Ot(u.value),!0),c(f,"review")}async function ce(){if(!e(x)||e(w))return;c(f,"saving"),c(I,null);const g=It(),u=await jt(e(x),Bt(e(Q)),N());if(!u.ok){c(I,u.error,!0),c(f,"review");return}c(f,"restarting"),c(f,await g?"done":"slow",!0)}var ue=na(),V=C(ue),he=_(V);{var xe=g=>{var u=Vt(),T=_(u);et(T,{class:"size-3.5 animate-spin"}),se(),m(u),r(g,u)},A=g=>{var u=Xt(),T=_(u);Lt(T,{class:"size-3.5 text-success"}),se(),m(u),r(g,u)},E=g=>{var u=Yt();r(g,u)},M=g=>{var u=Zt(),T=_(u);tt(T,{class:"size-3.5 text-warning"}),se(),m(u),b(()=>ee(u,"title",a.update.reason??void 0)),r(g,u)},J=g=>{var u=ta(),T=C(u),te=q(T,!0),ae=n(T,2);_e(ae,{variant:"outline",size:"xs",onclick:O,children:(we,be)=>{var fe=ea(),ve=C(fe);$t(ve,{});var ke=n(ve,1,!0);b(()=>k(ke,a.update.state==="newer-tag"?`Move to ${a.update.latest?.ref}`:"Update")),r(we,fe)},$$slots:{default:!0}}),b(()=>k(te,a.update.state==="newer-tag"?`${a.update.latest?.ref} is out`:`New commits${a.update.ref?` on ${a.update.ref}`:""}`)),r(g,u)};W(he,g=>{oe()?g(xe):a.update.state==="current"?g(A,1):a.update.state==="pinned"?g(E,2):a.update.state==="error"?g(M,3):g(J,-1)})}m(V);var ne=n(V,2);K(ne,()=>Wt,(g,u)=>{u(g,{get open(){return e(U)},set open(T){c(U,T,!0)},children:(T,te)=>{var ae=Te(),we=C(ae);{let be=h(()=>e(f)==="saving"||e(f)==="restarting"?"ignore":"close");K(we,()=>Pt,(fe,ve)=>{ve(fe,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(be)},children:(ke,Se)=>{var De=qe(),ye=C(De);K(ye,()=>Ct,(j,z)=>{z(j,{children:(t,o)=>{var i=qe(),s=C(i);K(s,()=>Tt,(v,P)=>{P(v,{class:"font-display text-lg",children:(G,F)=>{se();var B=ie();b(()=>k(B,`Update ${a.name??""}`)),r(G,B)},$$slots:{default:!0}})});var l=n(s,2);K(l,()=>Dt,(v,P)=>{P(v,{class:"tabular",children:(G,F)=>{var B=Te(),X=C(B);{var S=D=>{var L=ie();b(()=>k(L,`${a.update.version??""} → ${e(x).version??""}${a.update.state==="newer-tag"&&a.update.ref?`, from ${a.update.ref} to ${e(x).ref}`:""}`)),r(D,L)},R=D=>{var L=ie();b(()=>k(L,a.update.repository)),r(D,L)};W(X,D=>{e(x)?D(S):D(R,-1)})}r(G,B)},$$slots:{default:!0}})}),r(t,i)},$$slots:{default:!0}})});var Ue=n(ye,2);{var We=j=>{var z=aa(),t=_(z);et(t,{class:"size-4 animate-spin"});var o=n(t);m(z),b(()=>k(o,`Fetching ${a.update.repository??""}…`)),r(j,z)},Re=j=>{var z=ra(),t=C(z),o=_(t);tt(o,{class:"mt-0.5 size-3.5 shrink-0"});var i=n(o,1,!0);m(t);var s=n(t,2);K(s,()=>$e,(l,v)=>{v(l,{children:(P,G)=>{var F=Te(),B=C(F);{const X=(S,R)=>{_e(S,Oe(()=>(R?.()).props,{variant:"ghost",children:(L,le)=>{se();var Pe=ie("Close");r(L,Pe)},$$slots:{default:!0}}))};K(B,()=>Le,(S,R)=>{R(S,{child:X,$$slots:{child:!0}})})}r(P,F)},$$slots:{default:!0}})}),b(()=>k(i,e(I))),r(j,z)},Ae=j=>{var z=rt(),t=C(z);Ft(t,{get preview(){return e(x)},get busy(){return de()},get answers(){return e(Q)},set answers(l){c(Q,l,!0)}});var o=n(t,2);{var i=l=>{var v=sa(),P=q(v,!0);b(()=>k(P,e(I))),r(l,v)};W(o,l=>{e(I)&&l(i)})}var s=n(o,2);K(s,()=>$e,(l,v)=>{v(l,{children:(P,G)=>{var F=qe(),B=C(F);{const S=(R,D)=>{_e(R,Oe(()=>(D?.()).props,{variant:"ghost",children:(le,Pe)=>{se();var Ce=ie("Cancel");r(le,Ce)},$$slots:{default:!0}}))};K(B,()=>Le,(R,D)=>{D(R,{child:S,$$slots:{child:!0}})})}var X=n(B,2);{let S=h(()=>!!e(w)),R=h(()=>e(w)?`${e(w).title} is needed`:void 0);_e(X,{onclick:ce,get disabled(){return e(S)},get title(){return e(R)},children:(D,L)=>{se();var le=ie("Update and restart");r(D,le)},$$slots:{default:!0}})}r(P,F)},$$slots:{default:!0}})}),r(j,z)},Ee=j=>{var z=rt(),t=C(z);{let l=h(()=>a.update.id),v=h(()=>e(x).version),P=h(()=>e(x).commit.slice(0,7)),G=h(()=>e(f)==="saving"||e(f)==="restarting"||e(f)==="done"||e(f)==="slow"?e(f):"saving");Rt(t,{get label(){return`Replace ${e(l)??""} with ${e(v)??""} at ${e(P)??""}`},get phase(){return e(G)}})}var o=n(t,2);{var i=l=>{var v=oa(),P=q(v);b(()=>k(P,`${a.name??""}
1
+ import"../chunks/DsnmJJEf.js";import{o as mt}from"../chunks/D3nPFlu1.js";import{p as Ve,j as H,k as ot,f as C,e as _,r as m,s as n,i as Te,n as se,x as ie,t as b,a as r,g as e,q as c,h,b as Xe,o as q,c as d,m as _t,$ as pt,ay as ht}from"../chunks/-7ouQdsG.js";import{s as k,d as nt,a as Me}from"../chunks/MfmuqTIn.js";import{i as W}from"../chunks/BAuCcuxw.js";import{k as xt}from"../chunks/CkNCm7Ts.js";import{s as ee,a as Ge,h as He,r as Ye,e as ze,f as Ze}from"../chunks/CJNEYVWj.js";import{h as wt}from"../chunks/CloMQgCF.js";import{i as Ne}from"../chunks/BACvplXC.js";import{p as Je}from"../chunks/Cbb01QYB.js";import{S as bt}from"../chunks/CNvNrJS-.js";import{I as kt}from"../chunks/JUcpD7p2.js";import{I as yt}from"../chunks/Duo3wamr.js";import{c as K}from"../chunks/CmLAxoyv.js";import{p as Ke,s as Oe}from"../chunks/8Fai-wPF.js";import{D as Le}from"../chunks/Bt6KUUDH.js";import{D as Pt,a as Ct,b as Tt,c as Dt,d as $e,e as Wt}from"../chunks/De4O2In1.js";import{B as _e}from"../chunks/Cox57RCx.js";import{C as Rt,b as It,u as jt,e as zt,f as St,p as Ut,g as At,c as Et}from"../chunks/CUE4X2zW.js";import{P as Ft,f as Bt,m as Nt,i as Ot}from"../chunks/s22ocs02.js";import{L as et}from"../chunks/wu_NjAkT.js";import{T as tt}from"../chunks/BGW1RfKQ.js";import{C as Lt}from"../chunks/55XEoNtX.js";import{C as $t}from"../chunks/CMHkuJ4s.js";import{S as qt}from"../chunks/j2tARAl0.js";import{R as Qe,E as Mt,e as Gt,w as Ht}from"../chunks/BW_JnYeB.js";import{l as at}from"../chunks/B1V3Ajhv.js";import{a as Jt}from"../chunks/Ug0gsfQr.js";import{R as Kt}from"../chunks/CvmB6XOk.js";import{C as Qt}from"../chunks/DRN_mvpb.js";var Vt=d('<span class="flex items-center gap-1.5 text-muted-foreground"><!>Checking…</span>'),Xt=d('<span class="flex items-center gap-1.5 text-muted-foreground"><!>Up to date</span>'),Yt=d('<span class="text-muted-foreground" title="Installed at a commit, so it is not checked">Pinned to a commit</span>'),Zt=d('<span class="flex items-center gap-1.5 text-muted-foreground"><!>Could not check</span>'),ea=d("<!> ",1),ta=d('<span class="text-sea"> </span> <!>',1),qe=d("<!> <!>",1),aa=d('<p class="flex items-center gap-2 text-muted-foreground"><!> </p>'),ra=d('<p class="flex items-start gap-2 text-xs text-danger" role="alert"><!> </p> <!>',1),sa=d('<p class="text-xs text-danger" role="alert"> </p>'),rt=d("<!> <!> <!>",1),oa=d("<p> </p>"),na=d('<div class="flex flex-wrap items-center justify-end gap-2 text-xs sm:min-w-48"><!></div> <!>',1);function la(pe,a){Ve(a,!0);let oe=Ke(a,"checking",3,!1),de=Ke(a,"busy",19,()=>[]),U=H(!1),f=H("looking"),I=H(null),x=H(null),Q=H(ot({}));const w=h(()=>e(x)?Nt(e(x),e(Q)):null),N=()=>Je.data.sessionToken;async function O(){c(U,!0),c(f,"looking"),c(I,null),c(x,null);const g=a.update.state==="newer-tag"?a.update.latest?.ref??null:null,u=await zt({id:a.update.id,ref:g},N());if(!u.ok){c(I,u.error,!0),c(f,"failed");return}c(x,u.value,!0),c(Q,Ot(u.value),!0),c(f,"review")}async function ce(){if(!e(x)||e(w))return;c(f,"saving"),c(I,null);const g=It(),u=await jt(e(x),Bt(e(Q)),N());if(!u.ok){c(I,u.error,!0),c(f,"review");return}c(f,"restarting"),c(f,await g?"done":"slow",!0)}var ue=na(),V=C(ue),he=_(V);{var xe=g=>{var u=Vt(),T=_(u);et(T,{class:"size-3.5 animate-spin"}),se(),m(u),r(g,u)},A=g=>{var u=Xt(),T=_(u);Lt(T,{class:"size-3.5 text-success"}),se(),m(u),r(g,u)},E=g=>{var u=Yt();r(g,u)},M=g=>{var u=Zt(),T=_(u);tt(T,{class:"size-3.5 text-warning"}),se(),m(u),b(()=>ee(u,"title",a.update.reason??void 0)),r(g,u)},J=g=>{var u=ta(),T=C(u),te=q(T,!0),ae=n(T,2);_e(ae,{variant:"outline",size:"xs",onclick:O,children:(we,be)=>{var fe=ea(),ve=C(fe);$t(ve,{});var ke=n(ve,1,!0);b(()=>k(ke,a.update.state==="newer-tag"?`Move to ${a.update.latest?.ref}`:"Update")),r(we,fe)},$$slots:{default:!0}}),b(()=>k(te,a.update.state==="newer-tag"?`${a.update.latest?.ref} is out`:`New commits${a.update.ref?` on ${a.update.ref}`:""}`)),r(g,u)};W(he,g=>{oe()?g(xe):a.update.state==="current"?g(A,1):a.update.state==="pinned"?g(E,2):a.update.state==="error"?g(M,3):g(J,-1)})}m(V);var ne=n(V,2);K(ne,()=>Wt,(g,u)=>{u(g,{get open(){return e(U)},set open(T){c(U,T,!0)},children:(T,te)=>{var ae=Te(),we=C(ae);{let be=h(()=>e(f)==="saving"||e(f)==="restarting"?"ignore":"close");K(we,()=>Pt,(fe,ve)=>{ve(fe,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(be)},children:(ke,Se)=>{var De=qe(),ye=C(De);K(ye,()=>Ct,(j,z)=>{z(j,{children:(t,o)=>{var i=qe(),s=C(i);K(s,()=>Tt,(v,P)=>{P(v,{class:"font-display text-lg",children:(G,F)=>{se();var B=ie();b(()=>k(B,`Update ${a.name??""}`)),r(G,B)},$$slots:{default:!0}})});var l=n(s,2);K(l,()=>Dt,(v,P)=>{P(v,{class:"tabular",children:(G,F)=>{var B=Te(),X=C(B);{var S=D=>{var L=ie();b(()=>k(L,`${a.update.version??""} → ${e(x).version??""}${a.update.state==="newer-tag"&&a.update.ref?`, from ${a.update.ref} to ${e(x).ref}`:""}`)),r(D,L)},R=D=>{var L=ie();b(()=>k(L,a.update.repository)),r(D,L)};W(X,D=>{e(x)?D(S):D(R,-1)})}r(G,B)},$$slots:{default:!0}})}),r(t,i)},$$slots:{default:!0}})});var Ue=n(ye,2);{var We=j=>{var z=aa(),t=_(z);et(t,{class:"size-4 animate-spin"});var o=n(t);m(z),b(()=>k(o,`Fetching ${a.update.repository??""}…`)),r(j,z)},Re=j=>{var z=ra(),t=C(z),o=_(t);tt(o,{class:"mt-0.5 size-3.5 shrink-0"});var i=n(o,1,!0);m(t);var s=n(t,2);K(s,()=>$e,(l,v)=>{v(l,{children:(P,G)=>{var F=Te(),B=C(F);{const X=(S,R)=>{_e(S,Oe(()=>(R?.()).props,{variant:"ghost",children:(L,le)=>{se();var Pe=ie("Close");r(L,Pe)},$$slots:{default:!0}}))};K(B,()=>Le,(S,R)=>{R(S,{child:X,$$slots:{child:!0}})})}r(P,F)},$$slots:{default:!0}})}),b(()=>k(i,e(I))),r(j,z)},Ae=j=>{var z=rt(),t=C(z);Ft(t,{get preview(){return e(x)},get busy(){return de()},get answers(){return e(Q)},set answers(l){c(Q,l,!0)}});var o=n(t,2);{var i=l=>{var v=sa(),P=q(v,!0);b(()=>k(P,e(I))),r(l,v)};W(o,l=>{e(I)&&l(i)})}var s=n(o,2);K(s,()=>$e,(l,v)=>{v(l,{children:(P,G)=>{var F=qe(),B=C(F);{const S=(R,D)=>{_e(R,Oe(()=>(D?.()).props,{variant:"ghost",children:(le,Pe)=>{se();var Ce=ie("Cancel");r(le,Ce)},$$slots:{default:!0}}))};K(B,()=>Le,(R,D)=>{D(R,{child:S,$$slots:{child:!0}})})}var X=n(B,2);{let S=h(()=>!!e(w)),R=h(()=>e(w)?`${e(w).title} is needed`:void 0);_e(X,{onclick:ce,get disabled(){return e(S)},get title(){return e(R)},children:(D,L)=>{se();var le=ie("Update and restart");r(D,le)},$$slots:{default:!0}})}r(P,F)},$$slots:{default:!0}})}),r(j,z)},Ee=j=>{var z=rt(),t=C(z);{let l=h(()=>a.update.id),v=h(()=>e(x).version),P=h(()=>e(x).commit.slice(0,7)),G=h(()=>e(f)==="saving"||e(f)==="restarting"||e(f)==="done"||e(f)==="slow"?e(f):"saving");Rt(t,{get label(){return`Replace ${e(l)??""} with ${e(v)??""} at ${e(P)??""}`},get phase(){return e(G)}})}var o=n(t,2);{var i=l=>{var v=oa(),P=q(v);b(()=>k(P,`${a.name??""}
2
2
  ${e(x).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(l,v)};W(o,l=>{e(f)==="done"&&l(i)})}var s=n(o,2);K(s,()=>$e,(l,v)=>{v(l,{children:(P,G)=>{var F=Te(),B=C(F);{const X=(S,R)=>{let D=()=>(R?.()).props;{let L=h(()=>e(f)==="saving"||e(f)==="restarting");_e(S,Oe(D,{get disabled(){return e(L)},children:(le,Pe)=>{se();var Ce=ie("Done");r(le,Ce)},$$slots:{default:!0}}))}};K(B,()=>Le,(S,R)=>{R(S,{child:X,$$slots:{child:!0}})})}r(P,F)},$$slots:{default:!0}})}),r(j,z)};W(Ue,j=>{e(f)==="looking"?j(We):e(f)==="failed"?j(Re,1):e(f)==="review"&&e(x)?j(Ae,2):e(x)&&j(Ee,3)})}r(ke,De)},$$slots:{default:!0}})})}r(T,ae)},$$slots:{default:!0}})}),b(()=>ee(V,"data-update",a.update.state)),r(pe,ue),Xe()}var ia=d('<span class="text-xs text-muted-foreground">· off; turn it on below to choose it</span>'),da=d('<label><input type="radio" class="mt-1"/> <span> <!></span></label>'),ua=d('<p class="mt-2 text-xs text-warning" data-role-off=""> </p>'),va=d(`<fieldset class="rounded-lg border bg-card px-4 py-3"><legend class="px-1 text-sm font-medium"> </legend> <p class="text-xs text-muted-foreground">Where you review what the crew shows you. A plugin chosen here replaces Lavish and the preview
3
3
  helper while it is on; turning it off or removing it brings them back.</p> <div class="mt-2 grid gap-0.5"><label><input type="radio" class="mt-1"/> <span> </span></label> <!></div> <!></fieldset>`);function ca(pe,a){Ve(a,!0);let oe=Ke(a,"disabled",3,!1);const de=h(()=>Qe[a.view.role]),U=h(()=>a.view.chosen!==null&&a.view.active===null?a.view.providers.find(A=>A.id===a.view.chosen)?.name??a.view.chosen:null),f="flex items-start gap-2 rounded-md px-2 py-1.5 text-sm has-[:disabled]:text-muted-foreground has-[:enabled]:cursor-pointer has-[:enabled]:hover:bg-accent";var I=va(),x=_(I),Q=q(x,!0),w=n(x,4),N=_(w);Ge(N,1,He(f));var O=_(N);Ye(O);var ce=n(O,2),ue=q(ce,!0);m(N);var V=n(N,2);ze(V,17,()=>a.view.providers,A=>A.id,(A,E)=>{var M=da();Ge(M,1,He(f));var J=_(M);Ye(J);var ne=n(J,2),g=_(ne,!0),u=n(g);{var T=te=>{var ae=ia();r(te,ae)};W(u,te=>{e(E).on||te(T)})}m(ne),m(M),b(()=>{ee(M,"data-provider",e(E).id),ee(J,"name",`role-${a.view.role??""}`),Ze(J,a.view.chosen===e(E).id),J.disabled=oe()||!e(E).on&&a.view.chosen!==e(E).id,k(g,e(E).name)}),Me("change",J,()=>a.onchoose(e(E).id)),r(A,M)}),m(w);var he=n(w,2);{var xe=A=>{var E=ua(),M=q(E);b(()=>k(M,`${e(U)??""} is chosen but off, so the built-in is in use until it is on again.`)),r(A,E)};W(he,A=>{e(U)&&A(xe)})}m(I),b(()=>{ee(I,"data-role",a.view.role),k(Q,e(de).title),ee(O,"name",`role-${a.view.role??""}`),Ze(O,a.view.chosen===null),O.disabled=oe(),k(ue,e(de).builtin)}),Me("change",O,()=>a.onchoose(null)),r(pe,I),Xe()}nt(["change"]);var fa=d('<span class="hidden text-xs text-muted-foreground sm:inline"> </span>'),ga=d(`<!>Check for
4
4
  updates`,1),ma=d('<p class="mt-3 text-xs text-danger" role="alert"> </p>'),_a=d('<p class="mt-6 rounded-lg border border-danger/40 p-4 text-sm text-danger">Wheelhouse could not read which plugins are installed, so none of them loaded.</p>'),pa=d(`<p class="mt-6 rounded-lg border border-danger/40 p-4 text-sm text-danger">Wheelhouse’s plugins file is not valid, so every plugin keeps its default and nothing can be
@@ -1,2 +1,2 @@
1
- import"../chunks/DsnmJJEf.js";import{o as ft}from"../chunks/D3nPFlu1.js";import{p as pt,j as T,k as Se,w as gt,f as P,t as f,a as d,b as _t,q as u,d as xt,g as e,c as i,e as c,s as a,h as w,o as m,$ as bt,r as v,x as je,n as ee}from"../chunks/-7ouQdsG.js";import{d as ht,s as l,a as te,e as wt}from"../chunks/MfmuqTIn.js";import{i as x}from"../chunks/BAuCcuxw.js";import{e as Ee,s as re,a as yt}from"../chunks/CJNEYVWj.js";import{h as kt}from"../chunks/CloMQgCF.js";import{i as $t}from"../chunks/BQ56-tK5.js";import{p as Wt}from"../chunks/YAQH2TLS.js";import{S as St}from"../chunks/B-0qqE45.js";import{E as jt,w as Et,a as Pt,d as Pe,b as Rt,c as Tt,r as Ot,m as At,e as Bt}from"../chunks/BW_JnYeB.js";import{a as Re,c as Te,S as Ct,C as Ft,b as Nt,l as It}from"../chunks/CIMsnGRb.js";import{S as qt}from"../chunks/j2tARAl0.js";import{B as Oe}from"../chunks/Cox57RCx.js";import{l as zt}from"../chunks/Rgz0--W-.js";import{R as Dt}from"../chunks/CrfUP_VX.js";var Lt=i('<p class="mt-1 max-w-prose text-sm text-muted-foreground"> </p>'),Vt=i('<p class="rounded-lg border border-danger/40 p-4 text-sm text-danger" role="alert"> </p>'),Ht=i('<div class="mt-3"><!></div>'),Mt=i("<!>Load and restart",1),Ut=i('<p class="mt-2 text-muted-foreground">This Wheelhouse cannot restart itself, so turn it on in a terminal with <code> </code>.</p>'),Gt=i('<p class="mt-2 text-danger" role="alert"> </p>'),Jt=i('<p class="mt-0.5 text-muted-foreground"> </p> <!> <!>',1),Kt=i('<section class="rounded-md border border-brass/60 bg-background px-4 py-3 text-sm" aria-labelledby="not-loaded"><h2 id="not-loaded" class="font-medium">Not loaded</h2> <!></section>'),Qt=i('<p class="rounded-lg border border-danger/40 p-4 text-sm text-danger"> </p>'),Xt=i('<p class="mt-2 text-xs text-muted-foreground"> </p>'),Yt=i(' <button type="button" class="cursor-pointer text-sea hover:underline disabled:cursor-not-allowed">Back to the default</button>',1),Zt=i('<button type="button" role="radio"> </button>'),er=i('<li class="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 px-4 py-2.5 text-sm"><span class="min-w-0 break-words"> <span class="text-xs text-muted-foreground"> </span></span> <div class="inline-flex rounded-md border bg-muted/50 p-0.5 text-xs" role="radiogroup"></div></li>'),tr=i('<ul class="mt-2 divide-y rounded-md border bg-background" aria-label="Projects"></ul>'),rr=i('<p class="mt-2 text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),ar=i('<p class="mt-3 text-sm text-muted-foreground"> </p>'),sr=i('<span class="text-xs text-muted-foreground">Not saved yet</span> <button type="button" class="cursor-pointer text-xs text-muted-foreground hover:text-foreground hover:underline">Undo changes</button>',1),or=i('<form class="mt-3 grid max-w-xl gap-4 rounded-md border bg-background px-4 py-4"><!> <div class="flex flex-wrap items-center gap-3"><!> <!></div></form>'),nr=i('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),dr=i('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),lr=i('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),ir=i('<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <p class="mt-6 text-sm text-muted-foreground"><a href="/settings/plugins" class="hover:text-foreground hover:underline">Plugins</a> <span aria-hidden="true">/</span> </p> <h1 class="mt-1 text-2xl"> </h1> <!> <div class="mt-8 grid max-w-3xl gap-8"><!> <!> <section aria-labelledby="where-on"><h2 id="where-on" class="section-label">Where it is on</h2> <!> <div class="mt-3 flex items-center justify-between gap-4 rounded-md border bg-background px-4 py-3"><div class="min-w-0 text-sm"><p class="font-medium">Every project <span class="font-normal text-muted-foreground" data-where=""> </span></p> <p class="text-xs text-muted-foreground" data-testid="every-project"><!></p></div> <!></div> <!></section> <section aria-labelledby="settings"><h2 id="settings" class="section-label">Settings</h2> <!></section> <section aria-labelledby="about"><h2 id="about" class="section-label">About</h2> <dl class="mt-3 grid grid-cols-[7rem_minmax(0,1fr)] gap-x-3 gap-y-1.5 text-sm"><dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <dt class="text-muted-foreground">From</dt> <dd class="break-words"> </dd> <dt class="text-muted-foreground">Version</dt> <dd class="tabular"> </dd> <dt class="text-muted-foreground">By default</dt> <dd> </dd></dl></section></div></div></main> <!>',1);function Sr(Ae,F){pt(F,!0);let N=T(null);const g=w(()=>e(N)??F.data.view),o=w(()=>e(g).plugin),L=()=>Wt.data.sessionToken;let A=T(!1),V=T(null),H;function B(t,r=!0){u(V,{text:t,ok:r},!0),clearTimeout(H),H=setTimeout(()=>u(V,null),r?4e3:8e3)}const Be="It applies now, with no restart.";async function M(t,r){u(A,!0);const s=await Te(e(o).id,t,L());if(u(A,!1),!s.ok)return B(s.error,!1);u(N,s.value,!0),B(`${typeof r=="string"?r:r(s.value)} ${Be}`)}let $=T(Se({})),C=T(Se({}));gt(()=>{const t=Re(F.data.view.settings);u($,{...t},!0),u(C,t,!0)});const ae=w(()=>Object.keys(e($)).some(t=>e($)[t]!==e(C)[t])),se=w(()=>e(g).settings.find(t=>t.required&&!e($)[t.key]?.trim()));async function Ce(t){if(t.preventDefault(),e(se))return B(`${e(se).title} is needed.`,!1);u(A,!0);const r=await Te(e(o).id,{settings:{...e($)}},L());if(u(A,!1),!r.ok)return B(r.error,!1);u(N,r.value,!0),u(C,Re(r.value.settings),!0),u($,{...e(C)},!0),B(`Settings saved. ${e(o).name} uses them from its next look, with no restart.`)}let O=T(null),I=T(null);async function Fe(){u(O,"saving"),u(I,null);const t=Nt(),r=await It(e(o).id,L());if(!r.ok){u(O,null),u(I,r.error,!0);return}u(O,"restarting"),u(O,await t?"done":"slow",!0)}ft(()=>{const t=zt.onRestart(()=>{u(N,null),$t()});return()=>{t(),clearTimeout(H)}});const Ne=[{value:null,label:"As the plugin"},{value:!0,label:"On"},{value:!1,label:"Off"}],Ie=w(()=>e(o).source==="installed"&&e(o).repository?`${e(o).repository}${e(o).commit?` at ${e(o).commit.slice(0,7)}`:""}`:"Comes with Wheelhouse"),oe=w(()=>Rt(e(o).hostRoutes??[],e(o).addressRewrites??[])),ne=w(()=>Tt(e(o).capabilities??[])),de=w(()=>Ot(e(o).provides??[])),q=w(()=>e(A)||!!e(g).configError);var le=ir();kt("kxeh91",t=>{xt(()=>{bt.title=`${e(o).name??""} · Plugins · Wheelhouse`})});var U=P(le),ie=c(U),ue=c(ie);St(ue,{});var G=a(ue,2),qe=a(c(G),3);v(G);var ve=a(G,2),ze=m(ve,!0),ce=a(ve,2);{var De=t=>{var r=Lt(),s=m(r,!0);f(()=>l(s,e(o).description)),d(t,r)};x(ce,t=>{e(o).description&&t(De)})}var me=a(ce,2),fe=c(me);{var Le=t=>{var r=Vt(),s=m(r,!0);f(()=>l(s,e(g).configError)),d(t,r)};x(fe,t=>{e(g).configError&&t(Le)})}var pe=a(fe,2);{var Ve=t=>{var r=Kt(),s=a(c(r),2);{var n=b=>{var h=Ht(),_=c(h);Ft(_,{label:"Turn it on",get phase(){return e(O)}}),v(h),d(b,h)},p=b=>{var h=Jt(),_=P(h),y=m(_),W=a(_,2);{var R=k=>{Oe(k,{class:"mt-3",size:"sm",onclick:Fe,children:(E,z)=>{var D=Mt(),mt=P(D);Dt(mt,{}),ee(),d(E,D)},$$slots:{default:!0}})},S=k=>{var E=Ut(),z=a(c(E)),D=m(z);ee(),v(E),f(()=>l(D,`wheelhouse plugin enable ${e(o).id??""}`)),d(k,E)};x(W,k=>{F.data.canRestart?k(R):k(S,-1)})}var j=a(W,2);{var Z=k=>{var E=Gt(),z=m(E,!0);f(()=>l(z,e(I))),d(k,E)};x(j,k=>{e(I)&&k(Z)})}f(()=>l(y,`${e(o).name??""} is installed but turned off, so Wheelhouse has not started it. Wheelhouse loads
1
+ import"../chunks/DsnmJJEf.js";import{o as ft}from"../chunks/D3nPFlu1.js";import{p as pt,j as T,k as Se,w as gt,f as P,t as f,a as d,b as _t,q as u,d as xt,g as e,c as i,e as c,s as a,h as w,o as m,$ as bt,r as v,x as je,n as ee}from"../chunks/-7ouQdsG.js";import{d as ht,s as l,a as te,e as wt}from"../chunks/MfmuqTIn.js";import{i as x}from"../chunks/BAuCcuxw.js";import{e as Ee,s as re,a as yt}from"../chunks/CJNEYVWj.js";import{h as kt}from"../chunks/CloMQgCF.js";import{i as $t}from"../chunks/BACvplXC.js";import{p as Wt}from"../chunks/Cbb01QYB.js";import{S as St}from"../chunks/CNvNrJS-.js";import{E as jt,w as Et,a as Pt,d as Pe,b as Rt,c as Tt,r as Ot,m as At,e as Bt}from"../chunks/BW_JnYeB.js";import{a as Re,c as Te,S as Ct,C as Ft,b as Nt,l as It}from"../chunks/CUE4X2zW.js";import{S as qt}from"../chunks/j2tARAl0.js";import{B as Oe}from"../chunks/Cox57RCx.js";import{l as zt}from"../chunks/B1V3Ajhv.js";import{R as Dt}from"../chunks/CrfUP_VX.js";var Lt=i('<p class="mt-1 max-w-prose text-sm text-muted-foreground"> </p>'),Vt=i('<p class="rounded-lg border border-danger/40 p-4 text-sm text-danger" role="alert"> </p>'),Ht=i('<div class="mt-3"><!></div>'),Mt=i("<!>Load and restart",1),Ut=i('<p class="mt-2 text-muted-foreground">This Wheelhouse cannot restart itself, so turn it on in a terminal with <code> </code>.</p>'),Gt=i('<p class="mt-2 text-danger" role="alert"> </p>'),Jt=i('<p class="mt-0.5 text-muted-foreground"> </p> <!> <!>',1),Kt=i('<section class="rounded-md border border-brass/60 bg-background px-4 py-3 text-sm" aria-labelledby="not-loaded"><h2 id="not-loaded" class="font-medium">Not loaded</h2> <!></section>'),Qt=i('<p class="rounded-lg border border-danger/40 p-4 text-sm text-danger"> </p>'),Xt=i('<p class="mt-2 text-xs text-muted-foreground"> </p>'),Yt=i(' <button type="button" class="cursor-pointer text-sea hover:underline disabled:cursor-not-allowed">Back to the default</button>',1),Zt=i('<button type="button" role="radio"> </button>'),er=i('<li class="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 px-4 py-2.5 text-sm"><span class="min-w-0 break-words"> <span class="text-xs text-muted-foreground"> </span></span> <div class="inline-flex rounded-md border bg-muted/50 p-0.5 text-xs" role="radiogroup"></div></li>'),tr=i('<ul class="mt-2 divide-y rounded-md border bg-background" aria-label="Projects"></ul>'),rr=i('<p class="mt-2 text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),ar=i('<p class="mt-3 text-sm text-muted-foreground"> </p>'),sr=i('<span class="text-xs text-muted-foreground">Not saved yet</span> <button type="button" class="cursor-pointer text-xs text-muted-foreground hover:text-foreground hover:underline">Undo changes</button>',1),or=i('<form class="mt-3 grid max-w-xl gap-4 rounded-md border bg-background px-4 py-4"><!> <div class="flex flex-wrap items-center gap-3"><!> <!></div></form>'),nr=i('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),dr=i('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),lr=i('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),ir=i('<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <p class="mt-6 text-sm text-muted-foreground"><a href="/settings/plugins" class="hover:text-foreground hover:underline">Plugins</a> <span aria-hidden="true">/</span> </p> <h1 class="mt-1 text-2xl"> </h1> <!> <div class="mt-8 grid max-w-3xl gap-8"><!> <!> <section aria-labelledby="where-on"><h2 id="where-on" class="section-label">Where it is on</h2> <!> <div class="mt-3 flex items-center justify-between gap-4 rounded-md border bg-background px-4 py-3"><div class="min-w-0 text-sm"><p class="font-medium">Every project <span class="font-normal text-muted-foreground" data-where=""> </span></p> <p class="text-xs text-muted-foreground" data-testid="every-project"><!></p></div> <!></div> <!></section> <section aria-labelledby="settings"><h2 id="settings" class="section-label">Settings</h2> <!></section> <section aria-labelledby="about"><h2 id="about" class="section-label">About</h2> <dl class="mt-3 grid grid-cols-[7rem_minmax(0,1fr)] gap-x-3 gap-y-1.5 text-sm"><dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <dt class="text-muted-foreground">From</dt> <dd class="break-words"> </dd> <dt class="text-muted-foreground">Version</dt> <dd class="tabular"> </dd> <dt class="text-muted-foreground">By default</dt> <dd> </dd></dl></section></div></div></main> <!>',1);function Sr(Ae,F){pt(F,!0);let N=T(null);const g=w(()=>e(N)??F.data.view),o=w(()=>e(g).plugin),L=()=>Wt.data.sessionToken;let A=T(!1),V=T(null),H;function B(t,r=!0){u(V,{text:t,ok:r},!0),clearTimeout(H),H=setTimeout(()=>u(V,null),r?4e3:8e3)}const Be="It applies now, with no restart.";async function M(t,r){u(A,!0);const s=await Te(e(o).id,t,L());if(u(A,!1),!s.ok)return B(s.error,!1);u(N,s.value,!0),B(`${typeof r=="string"?r:r(s.value)} ${Be}`)}let $=T(Se({})),C=T(Se({}));gt(()=>{const t=Re(F.data.view.settings);u($,{...t},!0),u(C,t,!0)});const ae=w(()=>Object.keys(e($)).some(t=>e($)[t]!==e(C)[t])),se=w(()=>e(g).settings.find(t=>t.required&&!e($)[t.key]?.trim()));async function Ce(t){if(t.preventDefault(),e(se))return B(`${e(se).title} is needed.`,!1);u(A,!0);const r=await Te(e(o).id,{settings:{...e($)}},L());if(u(A,!1),!r.ok)return B(r.error,!1);u(N,r.value,!0),u(C,Re(r.value.settings),!0),u($,{...e(C)},!0),B(`Settings saved. ${e(o).name} uses them from its next look, with no restart.`)}let O=T(null),I=T(null);async function Fe(){u(O,"saving"),u(I,null);const t=Nt(),r=await It(e(o).id,L());if(!r.ok){u(O,null),u(I,r.error,!0);return}u(O,"restarting"),u(O,await t?"done":"slow",!0)}ft(()=>{const t=zt.onRestart(()=>{u(N,null),$t()});return()=>{t(),clearTimeout(H)}});const Ne=[{value:null,label:"As the plugin"},{value:!0,label:"On"},{value:!1,label:"Off"}],Ie=w(()=>e(o).source==="installed"&&e(o).repository?`${e(o).repository}${e(o).commit?` at ${e(o).commit.slice(0,7)}`:""}`:"Comes with Wheelhouse"),oe=w(()=>Rt(e(o).hostRoutes??[],e(o).addressRewrites??[])),ne=w(()=>Tt(e(o).capabilities??[])),de=w(()=>Ot(e(o).provides??[])),q=w(()=>e(A)||!!e(g).configError);var le=ir();kt("kxeh91",t=>{xt(()=>{bt.title=`${e(o).name??""} · Plugins · Wheelhouse`})});var U=P(le),ie=c(U),ue=c(ie);St(ue,{});var G=a(ue,2),qe=a(c(G),3);v(G);var ve=a(G,2),ze=m(ve,!0),ce=a(ve,2);{var De=t=>{var r=Lt(),s=m(r,!0);f(()=>l(s,e(o).description)),d(t,r)};x(ce,t=>{e(o).description&&t(De)})}var me=a(ce,2),fe=c(me);{var Le=t=>{var r=Vt(),s=m(r,!0);f(()=>l(s,e(g).configError)),d(t,r)};x(fe,t=>{e(g).configError&&t(Le)})}var pe=a(fe,2);{var Ve=t=>{var r=Kt(),s=a(c(r),2);{var n=b=>{var h=Ht(),_=c(h);Ft(_,{label:"Turn it on",get phase(){return e(O)}}),v(h),d(b,h)},p=b=>{var h=Jt(),_=P(h),y=m(_),W=a(_,2);{var R=k=>{Oe(k,{class:"mt-3",size:"sm",onclick:Fe,children:(E,z)=>{var D=Mt(),mt=P(D);Dt(mt,{}),ee(),d(E,D)},$$slots:{default:!0}})},S=k=>{var E=Ut(),z=a(c(E)),D=m(z);ee(),v(E),f(()=>l(D,`wheelhouse plugin enable ${e(o).id??""}`)),d(k,E)};x(W,k=>{F.data.canRestart?k(R):k(S,-1)})}var j=a(W,2);{var Z=k=>{var E=Gt(),z=m(E,!0);f(()=>l(z,e(I))),d(k,E)};x(j,k=>{e(I)&&k(Z)})}f(()=>l(y,`${e(o).name??""} is installed but turned off, so Wheelhouse has not started it. Wheelhouse loads
2
2
  plugins when it starts, so loading it restarts Wheelhouse; Firstmate and its crew keep running.`)),d(b,h)};x(s,b=>{e(O)?b(n):b(p,-1)})}v(r),d(t,r)},He=t=>{var r=Qt(),s=m(r,!0);f(()=>l(s,e(o).reason??"Wheelhouse could not load it.")),d(t,r)};x(pe,t=>{e(o).state==="disabled"?t(Ve):e(o).state!=="loaded"&&t(He,1)})}var J=a(pe,2),ge=a(c(J),2);{var Me=t=>{var r=Xt(),s=m(r);f(()=>l(s,`What you choose here applies once ${e(o).name??""} is loaded.`)),d(t,r)};x(ge,t=>{e(o).state!=="loaded"&&t(Me)})}var K=a(ge,2),Q=c(K),X=c(Q),Ue=a(c(X)),Ge=m(Ue);v(X);var _e=a(X,2),Je=c(_e);{var Ke=t=>{var r=je();f(s=>l(r,`By default: ${s??""}. A project below can differ.`),[()=>At(Pe(e(o)))]),d(t,r)},Qe=t=>{var r=Yt(),s=P(r),n=a(s);f(()=>{l(s,`${e(g).on?"On":"Off"} for every project, except where a project below says otherwise. `),n.disabled=e(q)}),te("click",n,()=>M({enabled:null},Bt)),d(t,r)};x(Je,t=>{e(g).enabled===null?t(Ke):t(Qe,-1)})}v(_e),v(Q);var Xe=a(Q,2);jt(Xe,{get view(){return e(g)},get disabled(){return e(q)},onchange:t=>M({enabled:t},`${e(o).name} is ${t?"on":"off"} for every project.`)}),v(K);var Ye=a(K,2);{var Ze=t=>{var r=tr();Ee(r,21,()=>e(g).projects,s=>s.id,(s,n)=>{var p=er(),b=c(p),h=c(b),_=a(h),y=m(_);v(b);var W=a(b,2);Ee(W,21,()=>Ne,R=>R.label,(R,S)=>{var j=Zt(),Z=m(j,!0);f(()=>{re(j,"aria-checked",e(n).enabled===e(S).value),j.disabled=e(q),yt(j,1,`min-h-7 cursor-pointer rounded px-2.5 py-1 transition-colors disabled:cursor-not-allowed ${e(n).enabled===e(S).value?"bg-card font-medium text-foreground shadow-sm ring-1 ring-hair":"text-muted-foreground hover:text-foreground"}`),l(Z,e(S).label)}),te("click",j,()=>e(n).enabled!==e(S).value&&M({project:e(n).id,enabled:e(S).value},e(S).value===null?`${e(n).name} follows the plugin again.`:`${e(o).name} is ${e(S).value?"on":"off"} for ${e(n).name}.`)),d(R,j)}),v(W),v(p),f(()=>{re(p,"data-project",e(n).id),l(h,`${e(n).name??""} `),l(y,`· ${e(n).on?"on":"off"}${e(n).enabled===null?", as the plugin":""}`),re(W,"aria-label",`${e(o).name??""} for ${e(n).name??""}`)}),d(s,p)}),v(r),d(t,r)},et=t=>{var r=rr();d(t,r)};x(Ye,t=>{e(g).projects.length?t(Ze):t(et,-1)})}v(J);var Y=a(J,2),tt=a(c(Y),2);{var rt=t=>{var r=ar(),s=m(r);f(()=>l(s,`${e(o).name??""} has nothing to set.`)),d(t,r)},at=t=>{var r=or(),s=c(r);{let _=w(()=>!!e(g).configError);Ct(s,{get settings(){return e(g).settings},get disabled(){return e(_)},get answers(){return e($)},set answers(y){u($,y,!0)}})}var n=a(s,2),p=c(n);{let _=w(()=>!e(ae)||e(q));Oe(p,{type:"submit",size:"sm",get disabled(){return e(_)},children:(y,W)=>{ee();var R=je("Save settings");d(y,R)},$$slots:{default:!0}})}var b=a(p,2);{var h=_=>{var y=sr(),W=a(P(y),2);te("click",W,()=>u($,{...e(C)},!0)),d(_,y)};x(b,_=>{e(ae)&&_(h)})}v(n),v(r),wt("submit",r,Ce),d(t,r)};x(tt,t=>{e(g).settings.length===0?t(rt):t(at,-1)})}v(Y);var xe=a(Y,2),be=a(c(xe),2),he=a(c(be),2),st=m(he,!0),we=a(he,2);{var ot=t=>{var r=nr(),s=a(P(r),2),n=m(s,!0);f(p=>l(n,p),[()=>e(oe).join("; ")]),d(t,r)};x(we,t=>{e(oe).length&&t(ot)})}var ye=a(we,2);{var nt=t=>{var r=dr(),s=a(P(r),2),n=m(s,!0);f(p=>l(n,p),[()=>e(ne).join("; ")]),d(t,r)};x(ye,t=>{e(ne).length&&t(nt)})}var ke=a(ye,2);{var dt=t=>{var r=lr(),s=a(P(r),2),n=m(s,!0);f(p=>l(n,p),[()=>e(de).join("; ")]),d(t,r)};x(ke,t=>{e(de).length&&t(dt)})}var $e=a(ke,4),lt=m($e,!0),We=a($e,4),it=m(We,!0),ut=a(We,4),vt=m(ut,!0);v(be),v(xe),v(me),v(ie),v(U);var ct=a(U,2);qt(ct,{get note(){return e(V)}}),f((t,r,s)=>{l(qe,` ${e(o).name??""}`),l(ze,e(o).name),l(Ge,`· ${t??""}`),l(st,r),l(lt,e(Ie)),l(it,e(o).version),l(vt,s)},[()=>Et(e(g)),()=>Pt(e(o).slots),()=>Pe(e(o))]),d(Ae,le),_t()}ht(["click"]);export{Sr as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{p as N,a as n,b as q,m as E,x as b,c as h,e as o,$ as H,s as i,g as s,r as d,n as O,h as P,f as y,o as k,t as f}from"../chunks/-7ouQdsG.js";import{s as m}from"../chunks/MfmuqTIn.js";import{i as $}from"../chunks/BAuCcuxw.js";import{h as T}from"../chunks/CloMQgCF.js";import{B as U}from"../chunks/Cox57RCx.js";import{S as j}from"../chunks/B-0qqE45.js";var A=h('<code class="text-xs break-all text-foreground"> </code> ',1),G=h('<dt class="font-medium">Home</dt> <dd class="min-w-0"><code class="text-xs break-all"> </code></dd>',1),I=h(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Setup</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">The setup wizard clones Firstmate or finds the one you have, checks the tools it needs and
1
+ import"../chunks/DsnmJJEf.js";import{p as N,a as n,b as q,m as E,x as b,c as h,e as o,$ as H,s as i,g as s,r as d,n as O,h as P,f as y,o as k,t as f}from"../chunks/-7ouQdsG.js";import{s as m}from"../chunks/MfmuqTIn.js";import{i as $}from"../chunks/BAuCcuxw.js";import{h as T}from"../chunks/CloMQgCF.js";import{B as U}from"../chunks/Cox57RCx.js";import{S as j}from"../chunks/CNvNrJS-.js";var A=h('<code class="text-xs break-all text-foreground"> </code> ',1),G=h('<dt class="font-medium">Home</dt> <dd class="min-w-0"><code class="text-xs break-all"> </code></dd>',1),I=h(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Setup</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">The setup wizard clones Firstmate or finds the one you have, checks the tools it needs and
2
2
  Claude Code, runs Firstmate’s own checks and suggests plugins. Run it again any time: nothing
3
3
  is installed or changed without you agreeing first.</p> <dl class="mt-6 grid gap-x-6 gap-y-2 text-sm sm:grid-cols-[minmax(0,10rem)_minmax(0,1fr)]"><dt class="font-medium">Firstmate</dt> <dd class="min-w-0 text-muted-foreground"><!></dd> <!></dl> <div class="mt-6"><!></div></div></main>`);function Y(S,x){N(x,!0);const a=P(()=>x.data.setup),D={flag:"given with --firstmate",cwd:"the Firstmate checkout Wheelhouse was started in",remembered:"chosen in setup, and remembered in Wheelhouse’s config"};var l=I();T("8kqwm0",t=>{E(()=>{H.title="Setup · Wheelhouse"})});var g=o(l),_=o(g);j(_,{});var c=i(_,6),u=i(o(c),2),F=o(u);{var C=t=>{var e=A(),r=y(e),p=k(r,!0),v=i(r);f(()=>{m(p,s(a).install.firstmateDir),m(v,`,
4
4
  ${D[s(a).install.source]??""}`)}),n(t,e)},R=t=>{var e=b();f(()=>m(e,`Not connected: ${s(a).problem??""}`)),n(t,e)};$(F,t=>{s(a).install?t(C):t(R,-1)})}d(u);var W=i(u,2);{var z=t=>{var e=G(),r=i(y(e),2),p=o(r),v=k(p,!0);d(r),f(()=>m(v,s(a).install.homeDir)),n(t,e)};$(W,t=>{s(a).install&&s(a).install.homeDir!==s(a).install.firstmateDir&&t(z)})}d(c);var w=i(c,2),B=o(w);U(B,{href:"/setup",children:(t,e)=>{O();var r=b("Run the setup wizard");n(t,r)},$$slots:{default:!0}}),d(w),d(g),d(l),n(S,l),q()}export{Y as component};
@@ -1,2 +1,2 @@
1
- import"../chunks/DsnmJJEf.js";import{p as ra,a as n,b as oa,m as na,c as p,$ as ia,e as m,s as d,g as a,r as i,h as l,o as u,t as w,i as la,f as pa}from"../chunks/-7ouQdsG.js";import{s as f}from"../chunks/MfmuqTIn.js";import{i as b}from"../chunks/BAuCcuxw.js";import{k as ca}from"../chunks/CkNCm7Ts.js";import{e as ma,s as I}from"../chunks/CJNEYVWj.js";import{h as da}from"../chunks/CloMQgCF.js";import{g as ua}from"../chunks/BQ56-tK5.js";import{p as G}from"../chunks/YAQH2TLS.js";import{a as fa,l as va,c as xa}from"../chunks/Rgz0--W-.js";import{h as ha,i as _a}from"../chunks/DUuK5ujt.js";import{a as ka}from"../chunks/Ug0gsfQr.js";import{D as ga}from"../chunks/CPGokFxi.js";var wa=p('<p class="px-5 text-sm text-warning"> </p>'),ba=p('<span class="text-warning">paused</span>'),Ia=p("<span> </span>"),ya=p('<li><a class="nav-item min-h-14 gap-3"><span class="mate-avatar" aria-hidden="true"> </span> <span class="min-w-0 flex-1"><span class="block truncate text-foreground"> </span> <span class="block truncate font-mono text-xs text-muted-foreground"> </span></span> <span class="flex shrink-0 flex-col items-end gap-1 text-xs text-muted-foreground"><span> </span> <!></span></a></li>'),Ca=p('<ul class="flex flex-col gap-0.5 overflow-y-auto px-3 pb-4" aria-label="Open discussions"></ul>'),Da=p('<p class="mt-auto px-5 pb-4 text-xs text-muted-foreground"> </p>'),Fa=p('<div class="m-auto max-w-md px-6 py-10 text-center" data-crew-empty=""><p class="font-display text-xl">No crew discussions open</p> <p class="mt-2 text-sm text-muted-foreground">Most of the time, talk to Firstmate. When you need a worker directly, open its task’s <b>Chat</b> and choose <b>Chat with crew</b>.</p> <a class="mt-4 inline-block text-sm text-sea hover:underline" href="/harbour">Go to the Harbour</a></div>'),$a=p(`<main class="flex min-h-0 flex-1 max-md:flex-col"><section class="flex shrink-0 flex-col border-r max-md:border-r-0 max-md:border-b md:w-[22rem]" aria-labelledby="crew-title"><div class="px-5 pt-6 pb-4"><h1 id="crew-title" class="text-2xl">The <em>crew</em></h1> <p class="mt-1 text-sm text-muted-foreground">Discussions you opened with a worker directly. Start one with Chat with crew on a task’s
1
+ import"../chunks/DsnmJJEf.js";import{p as ra,a as n,b as oa,m as na,c as p,$ as ia,e as m,s as d,g as a,r as i,h as l,o as u,t as w,i as la,f as pa}from"../chunks/-7ouQdsG.js";import{s as f}from"../chunks/MfmuqTIn.js";import{i as b}from"../chunks/BAuCcuxw.js";import{k as ca}from"../chunks/CkNCm7Ts.js";import{e as ma,s as I}from"../chunks/CJNEYVWj.js";import{h as da}from"../chunks/CloMQgCF.js";import{g as ua}from"../chunks/BACvplXC.js";import{p as G}from"../chunks/Cbb01QYB.js";import{a as fa,l as va,c as xa}from"../chunks/B1V3Ajhv.js";import{h as ha,i as _a}from"../chunks/DUuK5ujt.js";import{a as ka}from"../chunks/Ug0gsfQr.js";import{D as ga}from"../chunks/CCIw75Yv.js";var wa=p('<p class="px-5 text-sm text-warning"> </p>'),ba=p('<span class="text-warning">paused</span>'),Ia=p("<span> </span>"),ya=p('<li><a class="nav-item min-h-14 gap-3"><span class="mate-avatar" aria-hidden="true"> </span> <span class="min-w-0 flex-1"><span class="block truncate text-foreground"> </span> <span class="block truncate font-mono text-xs text-muted-foreground"> </span></span> <span class="flex shrink-0 flex-col items-end gap-1 text-xs text-muted-foreground"><span> </span> <!></span></a></li>'),Ca=p('<ul class="flex flex-col gap-0.5 overflow-y-auto px-3 pb-4" aria-label="Open discussions"></ul>'),Da=p('<p class="mt-auto px-5 pb-4 text-xs text-muted-foreground"> </p>'),Fa=p('<div class="m-auto max-w-md px-6 py-10 text-center" data-crew-empty=""><p class="font-display text-xl">No crew discussions open</p> <p class="mt-2 text-sm text-muted-foreground">Most of the time, talk to Firstmate. When you need a worker directly, open its task’s <b>Chat</b> and choose <b>Chat with crew</b>.</p> <a class="mt-4 inline-block text-sm text-sea hover:underline" href="/harbour">Go to the Harbour</a></div>'),$a=p(`<main class="flex min-h-0 flex-1 max-md:flex-col"><section class="flex shrink-0 flex-col border-r max-md:border-r-0 max-md:border-b md:w-[22rem]" aria-labelledby="crew-title"><div class="px-5 pt-6 pb-4"><h1 id="crew-title" class="text-2xl">The <em>crew</em></h1> <p class="mt-1 text-sm text-muted-foreground">Discussions you opened with a worker directly. Start one with Chat with crew on a task’s
2
2
  Chat; Firstmate is told of each.</p></div> <!> <!></section> <div class="flex min-h-0 min-w-0 flex-1 flex-col"><!></div></main>`);function Ra(H,L){ra(L,!0);const c=l(fa),_=l(()=>a(c)?.discussions??[]),S=l(()=>xa()?.tasks??[]),v=l(()=>a(_).find(t=>t.taskId===G.url.searchParams.get("with"))??a(_)[0]??null),M=l(()=>G.data.sessionToken??""),N=t=>t.messages.at(-1)?.at??t.openedAt,P=t=>t.messages.filter(e=>e.delivery==="sent"&&!e.seen).length;var y=$a();da("uqzsny",t=>{na(()=>{ia.title="Crew · Wheelhouse"})});var C=m(y),T=d(m(C),2);{var R=t=>{var e=wa(),o=u(e,!0);w(()=>f(o,a(c).reason)),n(t,e)},U=t=>{var e=Ca();ma(e,21,()=>a(_),o=>o.taskId,(o,s)=>{const k=l(()=>a(S).find(r=>r.id===a(s).taskId)),g=l(()=>P(a(s)));var D=ya(),h=m(D),F=m(h),Q=u(F,!0),$=d(F,2),q=m($),V=u(q,!0),X=d(q,2),Y=u(X);i($);var z=d($,2),A=m(z),Z=u(A,!0),aa=d(A,2);{var ta=r=>{var x=ba();n(r,x)},ea=r=>{var x=Ia(),O=u(x);w(()=>f(O,`${a(g)??""} not read yet`)),n(r,x)};b(aa,r=>{a(s).paused?r(ta):a(g)&&r(ea,1)})}i(z),i(h),i(D),w((r,x,O,sa)=>{I(h,"href",`/crew?with=${r??""}`),I(h,"aria-current",a(v)?.taskId===a(s).taskId?"page":void 0),I(h,"data-crew-row",a(s).taskId),I(F,"data-hue",x),f(Q,O),f(V,a(k)?.title??a(s).title),f(Y,`${a(s).taskId??""} · ${a(k)?.statusLabel??"gone from the fleet"??""}`),f(Z,sa)},[()=>encodeURIComponent(a(s).taskId),()=>ha(a(s).taskId),()=>_a(a(s).taskId),()=>ka(N(a(s)),va.now)]),n(o,D)}),i(e),n(t,e)};b(T,t=>{a(c)&&!a(c).available?t(R):a(_).length&&t(U,1)})}var j=d(T,2);{var B=t=>{var e=Da(),o=u(e,!0);w(()=>f(o,a(c).reason)),n(t,e)};b(j,t=>{a(c)?.reason&&a(c).available&&t(B)})}i(C);var W=d(C,2),E=m(W);{var J=t=>{var e=la(),o=pa(e);ca(o,()=>a(v).taskId,s=>{{let k=l(()=>a(S).find(g=>g.id===a(v).taskId)??null);ga(s,{get taskId(){return a(v).taskId},get discussion(){return a(v)},get task(){return a(k)},get token(){return a(M)},onended:()=>ua("/crew",{replaceState:!0})})}}),n(t,e)},K=t=>{var e=Fa();n(t,e)};b(E,t=>{a(v)?t(J):t(K,-1)})}i(W),i(y),n(H,y),oa()}export{Ra as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{p as ae,j as N,k as re,l as oe,u as ie,t as _,g as e,a as v,b as ne,m as le,e as d,c as j,q as r,h as f,$ as de,s as u,n as O,r as c,o as w,i as ue,f as ce}from"../chunks/-7ouQdsG.js";import{d as pe,a as P,s as y}from"../chunks/MfmuqTIn.js";import{i as W}from"../chunks/BAuCcuxw.js";import{h as me}from"../chunks/CloMQgCF.js";import{r as B}from"../chunks/CJNEYVWj.js";import{c as L}from"../chunks/DflltLwV.js";import{p as he}from"../chunks/YAQH2TLS.js";import{S as ve}from"../chunks/BXN538J3.js";import{S as fe}from"../chunks/B-0qqE45.js";import{w as Q}from"../chunks/vvzN7ZZi.js";var ge=j('<div class="rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-sm"><div class="font-medium text-warning">Install does not match chosen mode</div> <p class="mt-1 text-muted-foreground"> </p> <button type="button" class="mt-2 text-sm text-sea hover:underline disabled:opacity-50"> </button></div>'),V=j('<p class="text-sm text-danger" role="alert"> </p>'),be=j('<p class="text-sm text-muted-foreground" aria-live="polite"> </p>'),xe=j(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Update</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Choose how Wheelhouse updates itself. Switching performs the reinstall or relink for the
1
+ import"../chunks/DsnmJJEf.js";import{p as ae,j as N,k as re,l as oe,u as ie,t as _,g as e,a as v,b as ne,m as le,e as d,c as j,q as r,h as f,$ as de,s as u,n as O,r as c,o as w,i as ue,f as ce}from"../chunks/-7ouQdsG.js";import{d as pe,a as P,s as y}from"../chunks/MfmuqTIn.js";import{i as W}from"../chunks/BAuCcuxw.js";import{h as me}from"../chunks/CloMQgCF.js";import{r as B}from"../chunks/CJNEYVWj.js";import{c as L}from"../chunks/DflltLwV.js";import{p as he}from"../chunks/Cbb01QYB.js";import{S as ve}from"../chunks/BXN538J3.js";import{S as fe}from"../chunks/CNvNrJS-.js";import{w as Q}from"../chunks/vvzN7ZZi.js";var ge=j('<div class="rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-sm"><div class="font-medium text-warning">Install does not match chosen mode</div> <p class="mt-1 text-muted-foreground"> </p> <button type="button" class="mt-2 text-sm text-sea hover:underline disabled:opacity-50"> </button></div>'),V=j('<p class="text-sm text-danger" role="alert"> </p>'),be=j('<p class="text-sm text-muted-foreground" aria-live="polite"> </p>'),xe=j(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!> <h1 class="mt-6 text-2xl">Update</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Choose how Wheelhouse updates itself. Switching performs the reinstall or relink for the
2
2
  chosen mode and restarts Wheelhouse.</p> <div class="mt-6 space-y-6"><div><div class="font-medium">Update source</div> <div class="mt-2 flex flex-col gap-3 text-sm"><label class="flex items-start gap-3"><input type="radio" name="source"/> <div><div class="font-medium">Published release</div> <p class="text-muted-foreground">Checks npm for the latest <code>@chrisjowen/wheelhouse</code> and updates the global npm
3
3
  install.</p></div></label> <label class="flex items-start gap-3"><input type="radio" name="source"/> <div><div class="font-medium">GitHub source</div> <p class="text-muted-foreground">Fast-forwards a local clone from GitHub, rebuilds and relinks (current behaviour).</p></div></label></div></div> <!> <!> <!> <p class="text-xs text-muted-foreground">Until a source is chosen it follows how Wheelhouse is installed. The header's update menu
4
4
  checks the chosen source every six hours and upgrades from it.</p></div></div></main>`);function Te(X,H){ae(H,!0);const R=[],k=f(()=>Q.view??H.data.view),i=f(()=>e(k).source),q=f(()=>e(k).mismatch),Y=f(()=>e(k).installKind),n=f(()=>e(k).job),S=f(()=>e(n)?.state==="running"||e(n)?.state==="restarting");let o=N(re(oe(()=>H.data.view.source))),p=N(!1),g=N(null);ie(()=>{!e(S)&&!e(p)&&r(o,e(i),!0)});async function U(t){if(!(t===e(i)&&!e(q))){r(p,!0),r(g,null);try{const s=await fetch("/api/wheelhouse/source",{method:"POST",headers:{"content-type":"application/json",[ve]:he.data.sessionToken},body:JSON.stringify({source:t})}),a=await s.json().catch(()=>null);if(!s.ok||!a){r(g,a?.message??`Wheelhouse could not switch (${s.status}).`,!0),r(o,e(i),!0);return}a.job&&Q.follow(a)}catch{r(g,"Wheelhouse did not answer."),r(o,e(i),!0)}finally{r(p,!1)}}}var C=xe();me("1grzciw",t=>{le(()=>{de.title="Update · Wheelhouse"})});var z=d(C),A=d(z);fe(A,{});var D=u(A,6),G=d(D),F=u(d(G),2),T=d(F),m=d(T);B(m),m.value=m.__value="published",O(2),c(T);var J=u(T,2),h=d(J);B(h),h.value=h.__value="github",O(2),c(J),c(F),c(G);var K=u(G,2);{var Z=t=>{var s=ge(),a=u(d(s),2),$=w(a),b=u(a,2),l=w(b,!0);c(s),_(()=>{y($,`Wheelhouse is running ${e(Y)==="clone"?"from a git clone":"from the npm package"},