@chrisjowen/wheelhouse 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/README.md +1 -1
  2. package/build/client/_app/immutable/chunks/{BNXbHZ4s.js → BEc8oFj4.js} +1 -1
  3. package/build/client/_app/immutable/chunks/BEc8oFj4.js.br +0 -0
  4. package/build/client/_app/immutable/chunks/BEc8oFj4.js.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{g4TsmxH1.js → BI6mOQIC.js} +1 -1
  6. package/build/client/_app/immutable/chunks/BI6mOQIC.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/BI6mOQIC.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{BbaeceI1.js → BJLLbknR.js} +1 -1
  9. package/build/client/_app/immutable/chunks/BJLLbknR.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/BJLLbknR.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/BNpuLzpy.js +2 -0
  12. package/build/client/_app/immutable/chunks/BNpuLzpy.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/BNpuLzpy.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/{DjY7ZMGz.js → BRfuAoq7.js} +1 -1
  15. package/build/client/_app/immutable/chunks/BRfuAoq7.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/BRfuAoq7.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{D6cF08T_.js → BSRqsJCa.js} +4 -4
  18. package/build/client/_app/immutable/chunks/BSRqsJCa.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/BSRqsJCa.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{CisWRQQd.js → BTTjxuqT.js} +1 -1
  21. package/build/client/_app/immutable/chunks/BTTjxuqT.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BTTjxuqT.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{B2lgXXfo.js → BveXuSek.js} +1 -1
  24. package/build/client/_app/immutable/chunks/BveXuSek.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/BveXuSek.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/C0DPNoH0.js +5 -0
  27. package/build/client/_app/immutable/chunks/C0DPNoH0.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/C0DPNoH0.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/{D_KEoseW.js → CNPFxlMK.js} +1 -1
  30. package/build/client/_app/immutable/chunks/CNPFxlMK.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CNPFxlMK.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/{ClPiDuuz.js → CTb_ccym.js} +1 -1
  33. package/build/client/_app/immutable/chunks/CTb_ccym.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/CTb_ccym.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/{CCnNaKfv.js → CeCmrTGW.js} +1 -1
  36. package/build/client/_app/immutable/chunks/CeCmrTGW.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/CeCmrTGW.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/DCmP9xcb.js +2 -0
  39. package/build/client/_app/immutable/chunks/DCmP9xcb.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/DCmP9xcb.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/{Go4g8RRQ.js → DHiN7982.js} +1 -1
  42. package/build/client/_app/immutable/chunks/DHiN7982.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/DHiN7982.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/{DEvJ7EGc.js → DVPW54rN.js} +1 -1
  45. package/build/client/_app/immutable/chunks/DVPW54rN.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/DVPW54rN.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/{C31k8QGL.js → Dby6Wn4J.js} +1 -1
  48. package/build/client/_app/immutable/chunks/Dby6Wn4J.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/Dby6Wn4J.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/{ff7mriJ8.js → Dzuse5SP.js} +1 -1
  51. package/build/client/_app/immutable/chunks/Dzuse5SP.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/Dzuse5SP.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/Lwq8jsO7.js +1 -0
  54. package/build/client/_app/immutable/chunks/Lwq8jsO7.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/Lwq8jsO7.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/{AiTV8eMU.js → Mzyfuo21.js} +1 -1
  57. package/build/client/_app/immutable/chunks/Mzyfuo21.js.br +1 -0
  58. package/build/client/_app/immutable/chunks/Mzyfuo21.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/{BMTKBS3C.js → kdhJpKON.js} +1 -1
  60. package/build/client/_app/immutable/chunks/kdhJpKON.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/kdhJpKON.js.gz +0 -0
  62. package/build/client/_app/immutable/entry/{app.gl-vT7jm.js → app.DqKfT2WZ.js} +2 -2
  63. package/build/client/_app/immutable/entry/app.DqKfT2WZ.js.br +0 -0
  64. package/build/client/_app/immutable/entry/app.DqKfT2WZ.js.gz +0 -0
  65. package/build/client/_app/immutable/entry/start.DEmSMT5Q.js +1 -0
  66. package/build/client/_app/immutable/entry/start.DEmSMT5Q.js.br +0 -0
  67. package/build/client/_app/immutable/entry/start.DEmSMT5Q.js.gz +0 -0
  68. package/build/client/_app/immutable/nodes/{0.D7nx1zUv.js → 0.CszE2Pm2.js} +1 -1
  69. package/build/client/_app/immutable/nodes/0.CszE2Pm2.js.br +0 -0
  70. package/build/client/_app/immutable/nodes/0.CszE2Pm2.js.gz +0 -0
  71. package/build/client/_app/immutable/nodes/{1.GyxmcDpk.js → 1.DdeexMc3.js} +1 -1
  72. package/build/client/_app/immutable/nodes/1.DdeexMc3.js.br +0 -0
  73. package/build/client/_app/immutable/nodes/1.DdeexMc3.js.gz +0 -0
  74. package/build/client/_app/immutable/nodes/{10.Bu8ENATY.js → 10.C33nTvVg.js} +1 -1
  75. package/build/client/_app/immutable/nodes/10.C33nTvVg.js.br +0 -0
  76. package/build/client/_app/immutable/nodes/10.C33nTvVg.js.gz +0 -0
  77. package/build/client/_app/immutable/nodes/{11.LfkwXgTW.js → 11.Bitd-Um8.js} +1 -1
  78. package/build/client/_app/immutable/nodes/11.Bitd-Um8.js.br +0 -0
  79. package/build/client/_app/immutable/nodes/11.Bitd-Um8.js.gz +0 -0
  80. package/build/client/_app/immutable/nodes/{12.BxPjEbD6.js → 12.DvJMt_BX.js} +1 -1
  81. package/build/client/_app/immutable/nodes/12.DvJMt_BX.js.br +0 -0
  82. package/build/client/_app/immutable/nodes/12.DvJMt_BX.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/{13.BlAJ4Vfy.js → 13.CNcETgxx.js} +1 -1
  84. package/build/client/_app/immutable/nodes/13.CNcETgxx.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/13.CNcETgxx.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/{14.D6gfCfYW.js → 14.D45aaeoF.js} +1 -1
  87. package/build/client/_app/immutable/nodes/14.D45aaeoF.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/14.D45aaeoF.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/{15.4lw2WKq9.js → 15.BeC_sH9Y.js} +1 -1
  90. package/build/client/_app/immutable/nodes/15.BeC_sH9Y.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/15.BeC_sH9Y.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/{16.BmzqQRka.js → 16.CzLyGYG9.js} +1 -1
  93. package/build/client/_app/immutable/nodes/16.CzLyGYG9.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/16.CzLyGYG9.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/{17.k-iDf2FK.js → 17.BHPNPH8i.js} +1 -1
  96. package/build/client/_app/immutable/nodes/17.BHPNPH8i.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/17.BHPNPH8i.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/{19.Dp_e5Due.js → 19.D5AWgi46.js} +1 -1
  99. package/build/client/_app/immutable/nodes/19.D5AWgi46.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/19.D5AWgi46.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/2.D9LnprvD.js +25 -0
  102. package/build/client/_app/immutable/nodes/2.D9LnprvD.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/2.D9LnprvD.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/{20.Bz0SO3wK.js → 20.Ds8FV7bT.js} +1 -1
  105. package/build/client/_app/immutable/nodes/20.Ds8FV7bT.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/20.Ds8FV7bT.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/{21.DfM6w7Sq.js → 21.D-_n5D6I.js} +1 -1
  108. package/build/client/_app/immutable/nodes/21.D-_n5D6I.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/21.D-_n5D6I.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/{22.CgDRkCuX.js → 22.Dvb0-l-Z.js} +1 -1
  111. package/build/client/_app/immutable/nodes/22.Dvb0-l-Z.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/22.Dvb0-l-Z.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/{23.Cqr07Z9o.js → 23.CkYg9r5_.js} +1 -1
  114. package/build/client/_app/immutable/nodes/23.CkYg9r5_.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/23.CkYg9r5_.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/{24.CRrpf_iS.js → 24.BhEQq-vG.js} +1 -1
  117. package/build/client/_app/immutable/nodes/24.BhEQq-vG.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/24.BhEQq-vG.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/{25.BA3kP5aP.js → 25.B8eeSi6k.js} +1 -1
  120. package/build/client/_app/immutable/nodes/25.B8eeSi6k.js.br +0 -0
  121. package/build/client/_app/immutable/nodes/25.B8eeSi6k.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/{26.CipAeCRP.js → 26.DOI4ga1U.js} +1 -1
  123. package/build/client/_app/immutable/nodes/26.DOI4ga1U.js.br +0 -0
  124. package/build/client/_app/immutable/nodes/26.DOI4ga1U.js.gz +0 -0
  125. package/build/client/_app/immutable/nodes/{28.BSk8udo-.js → 28.Be9xcVGE.js} +1 -1
  126. package/build/client/_app/immutable/nodes/28.Be9xcVGE.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/28.Be9xcVGE.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/{3.Bfp3WQon.js → 3.HO48O20f.js} +1 -1
  129. package/build/client/_app/immutable/nodes/3.HO48O20f.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/3.HO48O20f.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/{4.F2NZin5q.js → 4.CviaWtQ7.js} +1 -1
  132. package/build/client/_app/immutable/nodes/4.CviaWtQ7.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/4.CviaWtQ7.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/{6.CiTAJagN.js → 6.CaGWrOVU.js} +1 -1
  135. package/build/client/_app/immutable/nodes/6.CaGWrOVU.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/6.CaGWrOVU.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/{7.CFAVd444.js → 7.Uonnco-V.js} +1 -1
  138. package/build/client/_app/immutable/nodes/7.Uonnco-V.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/{7.CFAVd444.js.gz → 7.Uonnco-V.js.gz} +0 -0
  140. package/build/client/_app/immutable/nodes/{8.DgSB72Qx.js → 8.hwuLwhy_.js} +1 -1
  141. package/build/client/_app/immutable/nodes/8.hwuLwhy_.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/8.hwuLwhy_.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/{9.ClGaEjTD.js → 9.BsDB_kf_.js} +1 -1
  144. package/build/client/_app/immutable/nodes/9.BsDB_kf_.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/9.BsDB_kf_.js.gz +0 -0
  146. package/build/client/_app/version.json +1 -1
  147. package/build/client/_app/version.json.br +0 -0
  148. package/build/client/_app/version.json.gz +0 -0
  149. package/build/handler.js +4 -4
  150. package/build/index.js +4 -4
  151. package/build/server/chunks/chunks/{DecisionCard.js-Dyj6ht_j.js → DecisionCard.js-DNJjQj6y.js} +16 -2
  152. package/build/server/chunks/chunks/{OpenDecision.js-0VvKUvGV.js → OpenDecision.js-evqpdz3O.js} +2 -2
  153. package/build/server/chunks/chunks/{SlotContent.js-CyN_Ifyi.js → SlotContent.js-Dfh5Tmlb.js} +25 -11
  154. package/build/server/chunks/chunks/{decisionform.js-BZIm6oAS.js → decisionform.js-Ds5LU9Wh.js} +7 -2
  155. package/build/server/chunks/chunks/{detail.js-C28uCfO4.js → detail.js-MTO7d0oZ.js} +2 -2
  156. package/build/server/chunks/chunks/{feedback.js-DbBFs_c7.js → feedback.js-BcVOtfsi.js} +2 -2
  157. package/build/server/chunks/chunks/{insights.svelte.js-DR4hOMAL.js → insights.svelte.js-BLHg5qc-.js} +4 -4
  158. package/build/server/chunks/chunks/{internal.js-BLKxcmnO.js → internal.js-B3jvxbpC.js} +3 -3
  159. package/build/server/chunks/chunks/{keychain.js-CLq9ZWSr.js → keychain.js-fsxzS7dh.js} +2 -2
  160. package/build/server/chunks/chunks/{marketplace-service.js-CiuqtVb8.js → marketplace-service.js-DIosJVMH.js} +2 -2
  161. package/build/server/chunks/chunks/{page.js-CGYLRa54.js → page.js-C30cD0Wp.js} +2 -2
  162. package/build/server/chunks/chunks/{previewhelper2.js-DvC-jUM7.js → previewhelper2.js-bodEg9Jj.js} +2 -2
  163. package/build/server/chunks/chunks/{repo.js-DVhaDnBj.js → repo.js-He5oSLdW.js} +2 -2
  164. package/build/server/chunks/chunks/{runtime.js-CdY5IpD-.js → runtime.js-CFXY9khN.js} +140 -29
  165. package/build/server/chunks/chunks/{service.js-DhlDVkLw.js → service.js-CMaRpVXw.js} +2 -2
  166. package/build/server/chunks/chunks/{service2.js-Bt-81oiB.js → service2.js-DxTR_5ki.js} +3 -3
  167. package/build/server/chunks/chunks/{starter.js-8hCfFY7e.js → starter.js-BEeKej_N.js} +2 -2
  168. package/build/server/chunks/chunks/{vault.js-DZFWbeCU.js → vault.js-kx-rYEM0.js} +5 -2
  169. package/build/server/chunks/chunks/{view.js-Ch9WrYrC.js → view.js-BqciV_nu.js} +2 -2
  170. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-BY_N9WqF.js → _server.ts.js-DYk_zGmD.js} +5 -5
  171. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-Bs3squxw.js → _server.ts.js-BZ5xAnps.js} +3 -3
  172. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-D7Hh_LA3.js → _server.ts.js-B1wMsqtV.js} +5 -5
  173. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-CnkZHmPh.js → _server.ts.js-B6yJINJv.js} +5 -5
  174. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CFVR6_o4.js → _server.ts.js-XkHjWwFF.js} +5 -5
  175. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-DN70VJQU.js → _server.ts.js-CSWXw2oP.js} +5 -5
  176. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-BeRBlf5D.js → _server.ts.js-DjUmuNfh.js} +5 -5
  177. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-ThZS58R-.js → _server.ts.js-fo49iwRo.js} +5 -5
  178. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-BadTKi0S.js → _server.ts.js-Ugm4xiSu.js} +5 -5
  179. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DVJ4gMGj.js → _server.ts.js-qhSNM_-L.js} +5 -5
  180. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-DUVZe4wn.js → _server.ts.js-BtpO3tEp.js} +5 -5
  181. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-Bs1bymHZ.js → _server.ts.js-C-wEt7Gp.js} +5 -5
  182. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CKeFPXLR.js → _server.ts.js-gJ_-WFJW.js} +5 -5
  183. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-Bt501lhC.js → _server.ts.js-5vfw0icS.js} +5 -5
  184. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-BcHSC1TK.js → _server.ts.js-Dv0n3oCp.js} +5 -5
  185. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BH1fGFoq.js → _server.ts.js-D1tixfXq.js} +5 -5
  186. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-gLB2SuJg.js → _server.ts.js-oViIkbvM.js} +5 -5
  187. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CjdGWvfb.js → _server.ts.js-C-QStpbo.js} +5 -5
  188. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-C1A5OD4E.js → _server.ts.js-DhpVdO1p.js} +5 -5
  189. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-TBvdVyc-.js → _server.ts.js-DmdgYa9p.js} +5 -5
  190. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CIttYBu6.js → _server.ts.js-Dz22C5Oc.js} +5 -5
  191. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-D8oCGNZO.js → _server.ts.js-DFZimBsr.js} +6 -6
  192. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-g1pY8An3.js → _server.ts.js-xQVDvaLL.js} +7 -7
  193. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-D4TVO5R1.js → _server.ts.js-vSP17Umu.js} +5 -5
  194. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-xLCMogeA.js → _server.ts.js-CRbLNZwV.js} +2 -2
  195. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-CI-gKlsl.js → _server.ts.js-NnSaW2ui.js} +5 -5
  196. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-CoM4JCaD.js → _server.ts.js-B_bNv5Rb.js} +2 -2
  197. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-d03KFS_3.js → _server.ts.js-xDx3TswX.js} +5 -5
  198. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DETako8r.js → _server.ts.js-DXQjVykz.js} +2 -2
  199. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-Ca4RBqlr.js → _server.ts.js-mFTzbdMz.js} +2 -2
  200. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-Bvl_HTXC.js → _server.ts.js-CQwT7ZXd.js} +6 -6
  201. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-BIJzWvqi.js → _server.ts.js-BAO68cNk.js} +6 -6
  202. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-DUDgt9UQ.js → _server.ts.js-CTJ1ub0U.js} +2 -2
  203. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-B8EQR_Y9.js → _server.ts.js-WdB3REaP.js} +5 -5
  204. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-DtU-nqAz.js → _server.ts.js-C9UD4jOU.js} +6 -6
  205. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-BOxpnZI1.js → _server.ts.js-Dkij69tw.js} +6 -6
  206. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-zD4NOGXM.js → _server.ts.js-CeTvV9nP.js} +6 -6
  207. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DojyOKEB.js → _server.ts.js-COx2XJO9.js} +6 -6
  208. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-alp8EfXV.js → _server.ts.js-ftRSLVkK.js} +6 -6
  209. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-BexKsKLn.js → _server.ts.js-Bsx4lHpp.js} +6 -6
  210. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-Ml6j0WCs.js → _server.ts.js-BppnE5BC.js} +5 -5
  211. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-DNnU2Kh1.js → _server.ts.js-Gqwhj3Jr.js} +5 -5
  212. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-DWGEum0i.js → _server.ts.js-CbPpORog.js} +6 -6
  213. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-CyCQh4xv.js → _server.ts.js-DVip_Q6n.js} +5 -5
  214. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-D-Td7jnF.js → _server.ts.js-DnGmNxrE.js} +6 -6
  215. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-cjltaY9-.js → _server.ts.js-zPPo2S2T.js} +5 -5
  216. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-CUbj1mpd.js → _server.ts.js-Bx2c6dMt.js} +5 -5
  217. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BT1aeWsT.js → _server.ts.js-BarbsV9y.js} +5 -5
  218. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-D3zqfuxP.js → _server.ts.js-D4DgKHLG.js} +5 -5
  219. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-pWuSZcd6.js → _server.ts.js-I42PMQ4f.js} +6 -6
  220. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-DRdrgqbU.js → _server.ts.js-Cpcb_-3s.js} +6 -9
  221. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-OSwF25f9.js → _server.ts.js-Bt82w57y.js} +2 -2
  222. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-D0ZPP3Hu.js → _server.ts.js-CBNLk0kR.js} +2 -2
  223. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-pob8ZUA4.js → _server.ts.js-CAy-PnPf.js} +2 -2
  224. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Dnn1Ck5w.js → _server.ts.js-DJsxRu_J.js} +5 -5
  225. package/build/server/chunks/entries/{hooks.server.js-Ba5h-Ow1.js → hooks.server.js-DP6V3oGk.js} +5 -5
  226. package/build/server/chunks/entries/pages/{_layout.server.ts.js-daNn9XCs.js → _layout.server.ts.js-bqdgxqy5.js} +2 -2
  227. package/build/server/chunks/entries/pages/{_page.server.ts.js-Ca7VKy_t.js → _page.server.ts.js-DmT_6LZz.js} +2 -2
  228. package/build/server/chunks/entries/pages/{_page.svelte.js-CdplbKoe.js → _page.svelte.js-DFWU8yJc.js} +8 -8
  229. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BmVbkNhh.js → _page.server.ts.js-BdI5Bl75.js} +2 -2
  230. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-DM9Z4DjM.js → _page.server.ts.js-ZOYAnM_g.js} +2 -2
  231. package/build/server/chunks/entries/pages/deck/{_page.svelte.js-DfBCOF77.js → _page.svelte.js-BE2e7Hyi.js} +7 -7
  232. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-V32EvhsD.js → _page.server.ts.js-CWf8RxOy.js} +2 -2
  233. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-ByuPMNrs.js → _page.server.ts.js-BTfsZht8.js} +2 -2
  234. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-D4hamuGQ.js → _page.server.ts.js-o_cuSwWH.js} +2 -2
  235. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CZ66oSeD.js → _page.server.ts.js-DPqNxi58.js} +2 -2
  236. package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-DNx_cf87.js → _page.svelte.js-BddxZY9X.js} +3 -3
  237. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-B66YDJlz.js → _page.server.ts.js-NvhMRXin.js} +2 -2
  238. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.svelte.js-IxIvs80b.js → _page.svelte.js-BYHP64gx.js} +3 -3
  239. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-Dg6skd-i.js → _page.server.ts.js-ZNFvlLOS.js} +3 -3
  240. package/build/server/chunks/entries/pages/projects/_id_/{_page.svelte.js-CZuOnAvk.js → _page.svelte.js-B9P8UZOd.js} +3 -3
  241. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-LCEiVdUu.js → _page.server.ts.js-CIFxbd8n.js} +3 -3
  242. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.svelte.js-BiaWDy5c.js → _page.svelte.js-CcwDpwg7.js} +3 -3
  243. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-Bx_qWCvz.js → _page.server.ts.js-CxzZpBL2.js} +4 -4
  244. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-D8qPhcbQ.js → _page.server.ts.js-BIwdjBgl.js} +2 -2
  245. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-BYMvJBgQ.js → _page.server.ts.js-C8KVdW_q.js} +2 -2
  246. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-DTKHEBOM.js → _page.server.ts.js-Bdohjqlm.js} +2 -2
  247. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CXFxuG8I.js → _page.server.ts.js-Et20xA2U.js} +2 -2
  248. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-B_pDK0q3.js → _page.server.ts.js-B8chH9Vi.js} +2 -2
  249. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-8pc_xbfL.js → _page.server.ts.js-DzzCMiD4.js} +2 -2
  250. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-CqOE_I-8.js → _page.server.ts.js-BfdXFrRT.js} +2 -2
  251. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-D7Xv3cWu.js → _page.server.ts.js-DVlBLn5S.js} +2 -2
  252. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DmJ-JBh7.js → _page.server.ts.js-D6jIgQJ4.js} +3 -3
  253. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DqCDx4eM.js → _page.server.ts.js-Ux_kUFGa.js} +3 -3
  254. package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-Dx2EX3aP.js → _page.svelte.js-016yK-eG.js} +6 -6
  255. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-pBPhifMt.js → _page.server.ts.js-2jI6Wnm5.js} +2 -2
  256. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DAhkOhKH.js → _page.server.ts.js-Gz8g7Lxm.js} +2 -2
  257. package/build/server/chunks/{handler-DsF0-ycu.js → handler-BBfqHGlL.js} +3 -3
  258. package/build/server/chunks/{index.js-DtxhOtsl.js → index.js-otQ83TL7.js} +2 -2
  259. package/build/server/chunks/{manifest.js-B9fXERnp.js → manifest.js-CwfU9jR_.js} +85 -85
  260. package/build/server/chunks/nodes/{0.js-idvnpSGx.js → 0.js-DY-FCb4h.js} +7 -7
  261. package/build/server/chunks/nodes/{1.js-BbZVNmme.js → 1.js-C1gj4J7r.js} +2 -2
  262. package/build/server/chunks/nodes/{10.js-7xwnxTBd.js → 10.js-D8sF_M7G.js} +2 -2
  263. package/build/server/chunks/nodes/{11.js-CN7D7Wtv.js → 11.js-DGbnw6E-.js} +8 -8
  264. package/build/server/chunks/nodes/{12.js-D0a9JV9J.js → 12.js-yixeL-nb.js} +9 -9
  265. package/build/server/chunks/nodes/{13.js-Gyan1Es0.js → 13.js-CgHVwdU1.js} +9 -9
  266. package/build/server/chunks/nodes/{14.js-BN2FgqUX.js → 14.js-IMBVJfKF.js} +9 -9
  267. package/build/server/chunks/nodes/{15.js-iDbZKSJO.js → 15.js-Bn-Gtc7-.js} +8 -8
  268. package/build/server/chunks/nodes/{16.js-5G5kk7kt.js → 16.js-CaZFpcDh.js} +6 -6
  269. package/build/server/chunks/nodes/{17.js-nlIQGV44.js → 17.js-BR4Pwbjy.js} +2 -2
  270. package/build/server/chunks/nodes/{19.js-CGgokEZO.js → 19.js-DTnGR4UX.js} +6 -6
  271. package/build/server/chunks/nodes/{2.js-worFzw4y.js → 2.js-DuZD1_ae.js} +8 -8
  272. package/build/server/chunks/nodes/{20.js-D0I7U4C9.js → 20.js-c7-2nU-p.js} +7 -7
  273. package/build/server/chunks/nodes/{21.js-CvRY-52P.js → 21.js-Yv1PzkRI.js} +7 -7
  274. package/build/server/chunks/nodes/{22.js-DwK7gqoW.js → 22.js-B_RyHclK.js} +7 -7
  275. package/build/server/chunks/nodes/{23.js-CJjm9tcQ.js → 23.js-BlDPhnR6.js} +8 -8
  276. package/build/server/chunks/nodes/{24.js-CckNMPKn.js → 24.js-D7qarZq6.js} +4 -4
  277. package/build/server/chunks/nodes/{25.js-BBDACqTg.js → 25.js-BIbn9KYt.js} +8 -8
  278. package/build/server/chunks/nodes/{26.js-BWq3B0wW.js → 26.js-D0_dD3EO.js} +9 -9
  279. package/build/server/chunks/nodes/{27.js-MgKQWlAq.js → 27.js-B0p1due2.js} +7 -7
  280. package/build/server/chunks/nodes/{28.js-xpq2RBgo.js → 28.js-CRdgyvv_.js} +7 -7
  281. package/build/server/chunks/nodes/{3.js-DOJOLxlE.js → 3.js-DKrxSrj9.js} +7 -7
  282. package/build/server/chunks/nodes/{4.js-acwNoMWi.js → 4.js-BRXw-v-L.js} +8 -8
  283. package/build/server/chunks/nodes/{5.js-DYuaSV-G.js → 5.js-C3ug9NBN.js} +6 -6
  284. package/build/server/chunks/nodes/{6.js-DA40mCwd.js → 6.js-BuWS4Z2-.js} +7 -7
  285. package/build/server/chunks/nodes/{7.js-D9HXWm_c.js → 7.js-BaxSjbK8.js} +7 -7
  286. package/build/server/chunks/nodes/{8.js-Dsx-zrYi.js → 8.js-Cqzz53er.js} +8 -8
  287. package/build/server/chunks/nodes/{9.js-D5YifYpK.js → 9.js-BGvUqMX3.js} +2 -2
  288. package/dist/cli.js +1 -1
  289. package/dist/wh-vault.js +573 -205
  290. package/package.json +1 -1
  291. package/plugins/vault/.wheelhouse-plugin/plugin.json +1 -1
  292. package/build/client/_app/immutable/chunks/AiTV8eMU.js.br +0 -3
  293. package/build/client/_app/immutable/chunks/AiTV8eMU.js.gz +0 -0
  294. package/build/client/_app/immutable/chunks/B2lgXXfo.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/B2lgXXfo.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/BL5PiS2m.js +0 -5
  297. package/build/client/_app/immutable/chunks/BL5PiS2m.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/BL5PiS2m.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/BMTKBS3C.js.br +0 -0
  300. package/build/client/_app/immutable/chunks/BMTKBS3C.js.gz +0 -0
  301. package/build/client/_app/immutable/chunks/BNXbHZ4s.js.br +0 -0
  302. package/build/client/_app/immutable/chunks/BNXbHZ4s.js.gz +0 -0
  303. package/build/client/_app/immutable/chunks/BbaeceI1.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/BbaeceI1.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/C31k8QGL.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/C31k8QGL.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/CCnNaKfv.js.br +0 -0
  308. package/build/client/_app/immutable/chunks/CCnNaKfv.js.gz +0 -0
  309. package/build/client/_app/immutable/chunks/CLrvyXks.js +0 -3
  310. package/build/client/_app/immutable/chunks/CLrvyXks.js.br +0 -0
  311. package/build/client/_app/immutable/chunks/CLrvyXks.js.gz +0 -0
  312. package/build/client/_app/immutable/chunks/CisWRQQd.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/CisWRQQd.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/ClPiDuuz.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/ClPiDuuz.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/D6cF08T_.js.br +0 -0
  317. package/build/client/_app/immutable/chunks/D6cF08T_.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/D85QHpKq.js +0 -2
  319. package/build/client/_app/immutable/chunks/D85QHpKq.js.br +0 -0
  320. package/build/client/_app/immutable/chunks/D85QHpKq.js.gz +0 -0
  321. package/build/client/_app/immutable/chunks/DEvJ7EGc.js.br +0 -0
  322. package/build/client/_app/immutable/chunks/DEvJ7EGc.js.gz +0 -0
  323. package/build/client/_app/immutable/chunks/D_KEoseW.js.br +0 -0
  324. package/build/client/_app/immutable/chunks/D_KEoseW.js.gz +0 -0
  325. package/build/client/_app/immutable/chunks/DjY7ZMGz.js.br +0 -0
  326. package/build/client/_app/immutable/chunks/DjY7ZMGz.js.gz +0 -0
  327. package/build/client/_app/immutable/chunks/Go4g8RRQ.js.br +0 -0
  328. package/build/client/_app/immutable/chunks/Go4g8RRQ.js.gz +0 -0
  329. package/build/client/_app/immutable/chunks/ff7mriJ8.js.br +0 -0
  330. package/build/client/_app/immutable/chunks/ff7mriJ8.js.gz +0 -0
  331. package/build/client/_app/immutable/chunks/g4TsmxH1.js.br +0 -0
  332. package/build/client/_app/immutable/chunks/g4TsmxH1.js.gz +0 -0
  333. package/build/client/_app/immutable/chunks/w66b3iDh.js +0 -1
  334. package/build/client/_app/immutable/chunks/w66b3iDh.js.br +0 -0
  335. package/build/client/_app/immutable/chunks/w66b3iDh.js.gz +0 -0
  336. package/build/client/_app/immutable/entry/app.gl-vT7jm.js.br +0 -0
  337. package/build/client/_app/immutable/entry/app.gl-vT7jm.js.gz +0 -0
  338. package/build/client/_app/immutable/entry/start.BobUuVbD.js +0 -1
  339. package/build/client/_app/immutable/entry/start.BobUuVbD.js.br +0 -0
  340. package/build/client/_app/immutable/entry/start.BobUuVbD.js.gz +0 -0
  341. package/build/client/_app/immutable/nodes/0.D7nx1zUv.js.br +0 -0
  342. package/build/client/_app/immutable/nodes/0.D7nx1zUv.js.gz +0 -0
  343. package/build/client/_app/immutable/nodes/1.GyxmcDpk.js.br +0 -0
  344. package/build/client/_app/immutable/nodes/1.GyxmcDpk.js.gz +0 -0
  345. package/build/client/_app/immutable/nodes/10.Bu8ENATY.js.br +0 -0
  346. package/build/client/_app/immutable/nodes/10.Bu8ENATY.js.gz +0 -0
  347. package/build/client/_app/immutable/nodes/11.LfkwXgTW.js.br +0 -0
  348. package/build/client/_app/immutable/nodes/11.LfkwXgTW.js.gz +0 -0
  349. package/build/client/_app/immutable/nodes/12.BxPjEbD6.js.br +0 -0
  350. package/build/client/_app/immutable/nodes/12.BxPjEbD6.js.gz +0 -0
  351. package/build/client/_app/immutable/nodes/13.BlAJ4Vfy.js.br +0 -0
  352. package/build/client/_app/immutable/nodes/13.BlAJ4Vfy.js.gz +0 -0
  353. package/build/client/_app/immutable/nodes/14.D6gfCfYW.js.br +0 -0
  354. package/build/client/_app/immutable/nodes/14.D6gfCfYW.js.gz +0 -0
  355. package/build/client/_app/immutable/nodes/15.4lw2WKq9.js.br +0 -0
  356. package/build/client/_app/immutable/nodes/15.4lw2WKq9.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/16.BmzqQRka.js.br +0 -0
  358. package/build/client/_app/immutable/nodes/16.BmzqQRka.js.gz +0 -0
  359. package/build/client/_app/immutable/nodes/17.k-iDf2FK.js.br +0 -0
  360. package/build/client/_app/immutable/nodes/17.k-iDf2FK.js.gz +0 -0
  361. package/build/client/_app/immutable/nodes/19.Dp_e5Due.js.br +0 -5
  362. package/build/client/_app/immutable/nodes/19.Dp_e5Due.js.gz +0 -0
  363. package/build/client/_app/immutable/nodes/2.tfxqjTNR.js +0 -25
  364. package/build/client/_app/immutable/nodes/2.tfxqjTNR.js.br +0 -0
  365. package/build/client/_app/immutable/nodes/2.tfxqjTNR.js.gz +0 -0
  366. package/build/client/_app/immutable/nodes/20.Bz0SO3wK.js.br +0 -0
  367. package/build/client/_app/immutable/nodes/20.Bz0SO3wK.js.gz +0 -0
  368. package/build/client/_app/immutable/nodes/21.DfM6w7Sq.js.br +0 -0
  369. package/build/client/_app/immutable/nodes/21.DfM6w7Sq.js.gz +0 -0
  370. package/build/client/_app/immutable/nodes/22.CgDRkCuX.js.br +0 -0
  371. package/build/client/_app/immutable/nodes/22.CgDRkCuX.js.gz +0 -0
  372. package/build/client/_app/immutable/nodes/23.Cqr07Z9o.js.br +0 -0
  373. package/build/client/_app/immutable/nodes/23.Cqr07Z9o.js.gz +0 -0
  374. package/build/client/_app/immutable/nodes/24.CRrpf_iS.js.br +0 -0
  375. package/build/client/_app/immutable/nodes/24.CRrpf_iS.js.gz +0 -0
  376. package/build/client/_app/immutable/nodes/25.BA3kP5aP.js.br +0 -0
  377. package/build/client/_app/immutable/nodes/25.BA3kP5aP.js.gz +0 -0
  378. package/build/client/_app/immutable/nodes/26.CipAeCRP.js.br +0 -0
  379. package/build/client/_app/immutable/nodes/26.CipAeCRP.js.gz +0 -0
  380. package/build/client/_app/immutable/nodes/28.BSk8udo-.js.br +0 -0
  381. package/build/client/_app/immutable/nodes/28.BSk8udo-.js.gz +0 -0
  382. package/build/client/_app/immutable/nodes/3.Bfp3WQon.js.br +0 -0
  383. package/build/client/_app/immutable/nodes/3.Bfp3WQon.js.gz +0 -0
  384. package/build/client/_app/immutable/nodes/4.F2NZin5q.js.br +0 -0
  385. package/build/client/_app/immutable/nodes/4.F2NZin5q.js.gz +0 -0
  386. package/build/client/_app/immutable/nodes/6.CiTAJagN.js.br +0 -0
  387. package/build/client/_app/immutable/nodes/6.CiTAJagN.js.gz +0 -0
  388. package/build/client/_app/immutable/nodes/7.CFAVd444.js.br +0 -0
  389. package/build/client/_app/immutable/nodes/8.DgSB72Qx.js.br +0 -0
  390. package/build/client/_app/immutable/nodes/8.DgSB72Qx.js.gz +0 -0
  391. package/build/client/_app/immutable/nodes/9.ClGaEjTD.js.br +0 -0
  392. package/build/client/_app/immutable/nodes/9.ClGaEjTD.js.gz +0 -0
@@ -1,3 +1,3 @@
1
- import"../chunks/DsnmJJEf.js";import{l as Be,p as je,j as Pe,f as ie,g as e,a as r,b as ze,i,o as P,t as k,y as Ye,v as Ae,r as s,s as a,c as n,m as De,d as m,h as o,u as kt,n as Le,w as Re,aa as it,q as Mt,ab as Lt,aq as St,bB as Nt,e as Tt,$ as Pt}from"../chunks/DFFTcnMk.js";import{i as d}from"../chunks/fxwDaXQ6.js";import{e as ke,s as y,a as fe,d as mt,m as At,h as Ot}from"../chunks/VI4uBLfk.js";import{p as gt}from"../chunks/AiTV8eMU.js";import{l as Ie,c as Ut}from"../chunks/BNXbHZ4s.js";import{s as _t,a as ht}from"../chunks/nShh0HJ4.js";import{i as Wt,c as Ft,s as xt,h as Dt,g as Vt}from"../chunks/DwXSJzKm.js";import{P as Ht}from"../chunks/DxQ9r3ah.js";import{I as Ve,a as $e,t as Ne}from"../chunks/CDH1GGn5.js";import{n as Et,T as Qt,w as Bt,s as Yt,u as Gt,V as Kt}from"../chunks/XuW16bbU.js";import{s as He,r as Ee,p as Qe}from"../chunks/DtxmqMMR.js";import{S as vt,W as Ge,b as Jt,a as Xt,l as Zt}from"../chunks/D_ohfsLu.js";import{B as Te}from"../chunks/I9e8Fl7s.js";import{b as wt,p as yt,d as $t,n as ea,a as lt}from"../chunks/DKQe4Tss.js";import{a as ta,r as aa,I as pt,C as ra,Q as sa}from"../chunks/BbaeceI1.js";import{h as jt,r as na}from"../chunks/cAfuCUf-.js";import{p as et,d as ut,M as oa,C as ct}from"../chunks/BMTKBS3C.js";import{a as zt,C as ia,E as la}from"../chunks/C31k8QGL.js";import{L as da}from"../chunks/CPqWOIiS.js";import{H as va}from"../chunks/Dve7Csph.js";import{F as ua}from"../chunks/DWWzLM9n.js";import{G as ca}from"../chunks/BZIE5Pwu.js";import{S as fa}from"../chunks/B94WFLDK.js";import{M as ma,a as ga}from"../chunks/DgbXcz16.js";import{E as We}from"../chunks/CDPChpWC.js";import{S as _a}from"../chunks/D6cF08T_.js";import{t as Fe,a as ft,d as dt}from"../chunks/BY5XjwMm.js";import{a as ha,M as tt,b as at,r as rt,f as st}from"../chunks/DJNADPa5.js";import{A as xa}from"../chunks/ChgpVwh1.js";import{A as pa}from"../chunks/Dz3EKdv5.js";import{c as ba}from"../chunks/CTO6Jnxr.js";import{f as nt}from"../chunks/hxhxtxcx.js";var ka=new Set(["$$slots","$$events","$$legacy"]);function wa(A,t){let _=Ee(t,ka);const l={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4"}],["path",{d:"M17 20V4"}],["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}var ya=new Set(["$$slots","$$events","$$legacy"]);function ja(A,t){let _=Ee(t,ya);const l={name:"grid-3x3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]],aliases:["grid","grid-3-x-3"]};Ve(A,He(()=>_,{get icon(){return l}}))}var za=new Set(["$$slots","$$events","$$legacy"]);function Ca(A,t){let _=Ee(t,za);const l={name:"hourglass",size:24,node:[["path",{d:"M5 22h14"}],["path",{d:"M5 2h14"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}var qa=new Set(["$$slots","$$events","$$legacy"]);function Ra(A,t){let _=Ee(t,qa);const l={name:"list",size:24,node:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}var Ia=new Set(["$$slots","$$events","$$legacy"]);function Ma(A,t){let _=Ee(t,Ia);const l={name:"rectangle-horizontal",size:24,node:[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}function La(A,t){try{document.cookie=`${A}=${encodeURIComponent(t)}; path=/; max-age=31536000; samesite=lax`}catch{}}var Sa=n('<button type="button" class="w-20 shrink-0 cursor-zoom-in"><img loading="lazy" class="aspect-[16/10] w-full rounded-md border object-cover object-top"/></button>'),Na=n('<p class="mt-1 text-xs text-muted-foreground"> </p>'),Ta=n('<div class="relative z-10 mt-2 flex flex-wrap gap-1.5" data-card-shots=""></div> <!> <!>',1);function Ct(A,t){je(t,!0);let _=Qe(t,"skip",3,0),l=De(null);const f=i(()=>t.shots.slice(_())),g=i(()=>t.total-t.shots.length);var R=Pe(),q=ie(R);{var U=O=>{var x=Ta(),p=ie(x);ke(p,23,()=>e(f),v=>v.url,(v,z,W)=>{var j=Sa(),I=P(j);k(()=>{y(j,"aria-label",`Enlarge screenshot ${e(z).name??""}`),y(j,"title",e(z).name),y(I,"src",e(z).url),y(I,"alt",e(z).name)}),Ye("click",j,M=>{M.preventDefault(),M.stopPropagation(),Ae(l,e(W)+_())}),r(v,j)}),s(p);var h=a(p,2);{var D=v=>{var z=Na(),W=P(z);k(()=>m(W,`+${e(g)??""} more on the task page`)),r(v,z)};d(h,v=>{e(g)>0&&v(D)})}var w=a(h,2);da(w,{get shots(){return t.shots},get index(){return e(l)},set index(v){Ae(l,v,!0)}}),r(O,x)};d(q,O=>{e(f).length&&O(U)})}r(A,R),ze()}Be(["click"]);var Pa=n('<img loading="lazy" class="size-full object-cover object-top"/>'),Aa=n('<div class="flex items-center gap-2"><span class="w-0 flex-1 truncate font-mono text-xs text-muted-foreground"> </span> <span class="flex h-1.5 w-20 overflow-hidden rounded-full bg-border/60"><span class="bg-success/80"></span> <span class="bg-danger/80"></span></span></div>'),Oa=n('<p class="font-mono text-xs text-muted-foreground"> </p>'),Ua=n('<div class="flex size-full flex-col justify-center gap-1.5 p-4" aria-label="Files changed"><!> <!></div>'),Wa=n('<div class="grid size-full place-items-center text-muted-foreground/50"><!></div>'),Fa=n("<div><!></div>");function qt(A,t){je(t,!0);let _=Qe(t,"class",3,"");const l=i(()=>t.task.thumb),f=i(()=>e(l).kind==="diff"?Math.max(1,...e(l).files.map(x=>x.additions+x.deletions)):1);var g=Fa(),R=o(g);{var q=x=>{var p=Pa();k(()=>{y(p,"src",e(l).url),y(p,"alt",`Latest screenshot: ${e(l).name??""}`)}),r(x,p)},U=x=>{var p=Ua(),h=o(p);ke(h,17,()=>e(l).files,v=>v.path,(v,z)=>{var W=Aa(),j=o(W),I=P(j,!0),M=a(j,2),K=o(M),X=a(K,2);s(M),s(W),k(E=>{m(I,E),mt(K,`width:${e(z).additions/e(f)*100}%`),mt(X,`width:${e(z).deletions/e(f)*100}%`)},[()=>e(z).path.split("/").pop()]),r(v,W)});var D=a(h,2);{var w=v=>{var z=Oa(),W=P(z);k(()=>m(W,`+${e(l).totalFiles-e(l).files.length} more`)),r(v,z)};d(D,v=>{e(l).totalFiles>e(l).files.length&&v(w)})}s(p),r(x,p)},O=x=>{var p=Wa(),h=o(p);{var D=j=>{Ca(j,{class:"size-6","aria-hidden":"true"})},w=j=>{va(j,{class:"size-6","aria-hidden":"true"})},v=j=>{ua(j,{class:"size-6","aria-hidden":"true"})},z=j=>{ca(j,{class:"size-6","aria-hidden":"true"})},W=j=>{fa(j,{class:"size-6","aria-hidden":"true"})};d(h,j=>{t.task.status==="queued"?j(D):t.task.attention?.kind==="decision"?j(w,1):t.task.hasReport?j(v,2):t.task.pr?j(z,3):j(W,-1)})}s(p),r(x,p)};d(R,x=>{e(l).kind==="screenshot"?x(q):e(l).kind==="diff"?x(U,1):x(O,-1)})}s(g),k(()=>fe(g,1,`relative aspect-[16/10] overflow-hidden rounded-lg border bg-muted/40 ${_()??""}`)),r(A,g),ze()}var Da=n("<!>Review PR<!>",1),Va=n('<span class="absolute right-2 bottom-2 inline-flex items-center gap-1 rounded-md bg-background/90 px-1.5 py-0.5 text-xs font-medium shadow-sm"><!> </span>'),Ha=n('<span class="font-medium tracking-wide text-sea" data-project-tag=""> </span> ',1),Ea=n('<p class="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground"><!><span class="min-w-0 truncate"><!> </span></p>'),Qa=n('<a target="_blank" rel="noreferrer" class="truncate text-sea hover:underline"> </a>'),Ba=n('<ul class="mt-3 space-y-1 text-xs text-muted-foreground" aria-label="Review evidence"><li class="flex items-center gap-1.5" data-review="screenshots"><!> </li> <li class="flex items-center gap-1.5" data-review="preview"><!><!></li></ul>'),Ya=n('<a class="hover:text-foreground hover:underline" data-build-docs=""> </a>'),Ga=n('<p class="mt-1 flex items-center gap-1.5 text-xs text-muted-foreground" data-build-hint=""><!><span> <!><!></span></p>'),Ka=n("Open preview<!>",1),bt=n("<!> <!>",1),Ja=n("On GitHub<!>",1),Xa=n('<article class="flex min-w-0 flex-col rounded-lg border border-t-2 border-t-sea bg-card p-3"><a tabindex="-1" aria-hidden="true" class="relative block" data-card-picture=""><!> <!></a> <!> <div class="flex flex-1 flex-col px-1 pt-4 pb-1"><!> <a class="mt-0.5 text-lg leading-snug font-semibold hover:underline"> </a> <p class="mt-2 line-clamp-3 flex-1 text-sm leading-relaxed text-muted-foreground"> </p> <!> <!> <!> <div class="mt-4"><!></div> <div class="mt-5 flex flex-wrap gap-2"><!> <!></div></div></article>');function Za(A,t){je(t,!0);const _=(u,C=it)=>{var T=Pe(),Y=ie(T);{var ve=Q=>{{let xe=i(()=>C()==="default"?"flex-1":""),ce=i(()=>e(x).external?"_blank":void 0),me=i(()=>e(x).external?"noreferrer":void 0);Te(Q,{get class(){return e(xe)},get variant(){return C()},get href(){return e(x).href},get target(){return e(ce)},get rel(){return e(me)},"data-review-pr":!0,children:(se,pe)=>{var oe=Da(),_e=ie(oe);ct(_e,{});var c=a(_e,2);{var b=G=>{We(G,{})};d(c,G=>{e(x).external&&G(b)})}r(se,oe)},$$slots:{default:!0}})}};d(Y,Q=>{e(x)&&Q(ve)})}r(u,T)};let l=Qe(t,"projectName",3,null);const f=i(()=>t.task.attention),g=i(()=>`/tasks/${encodeURIComponent(t.task.id)}`),R=i(()=>ta(t.task)),q=i(()=>aa(t.task)),U=i(()=>e(R)&&!!t.task.preview&&e(q).preview?.url===t.task.preview.url);kt(()=>{if(e(U))return et.watch(t.task.id)});const O=i(()=>e(U)&&et.stopped(t.task.id)?null:e(q).preview),x=i(()=>e(q).pr?ut.review(t.task.projectId,e(q).pr):null),p=i(()=>wt(t.task.worker)),h=i(()=>jt(t.task.build));var D=Xa(),w=o(D),v=o(w);qt(v,{get task(){return t.task},class:"rounded-sm"});var z=a(v,2);{var W=u=>{var C=Va(),T=o(C);pt(T,{class:"size-3.5","aria-hidden":"true"});var Y=a(T,1,!0);s(C),k(()=>m(Y,t.task.screenshots)),r(u,C)};d(z,u=>{e(R)&&t.task.screenshots>0&&u(W)})}s(w);var j=a(w,2);{let u=i(()=>t.task.thumb.kind==="screenshot"?1:0);Ct(j,{get shots(){return t.task.shots},get total(){return t.task.screenshots},get skip(){return e(u)}})}var I=a(j,2),M=o(I);{var K=u=>{var C=Ea(),T=o(C);Ge(T,{get task(){return t.task}});var Y=a(T),ve=o(Y);{var Q=ce=>{var me=Ha(),se=ie(me),pe=P(se,!0),oe=a(se,1,!0);k(()=>{m(pe,l()),m(oe,e(p)?" · ":"")}),r(ce,me)};d(ve,ce=>{l()&&ce(Q)})}var xe=a(ve,1,!0);s(Y),s(C),k(()=>m(xe,e(p)??"")),r(u,C)};d(M,u=>{(l()||e(p)||t.task.secondMate)&&u(K)})}var X=a(M,2),E=P(X,!0),L=a(X,2),H=P(L,!0),Z=a(L,2);{var re=u=>{var C=Ba(),T=o(C),Y=o(T);pt(Y,{class:"size-3.5","aria-hidden":"true"});var ve=a(Y,1,!0);s(T);var Q=a(T,2),xe=o(Q);oa(xe,{class:"size-3.5","aria-hidden":"true"});var ce=a(xe);{var me=oe=>{var _e=Qa(),c=P(_e,!0);k(()=>{y(_e,"href",e(O).url),m(c,e(O).url)}),r(oe,_e)},se=oe=>{var _e=Re();k(()=>m(_e,`Preview stopped. ${et.checks[t.task.id]?.reason??""??""}`)),r(oe,_e)},pe=oe=>{var _e=Re();k(()=>m(_e,e(q).previewText)),r(oe,_e)};d(ce,oe=>{e(O)?oe(me):e(q).preview?oe(se,1):oe(pe,-1)})}s(Q),s(C),k(()=>m(ve,e(q).shotsText)),r(u,C)};d(Z,u=>{e(R)&&u(re)})}var le=a(Z,2);{var te=u=>{var C=Ga(),T=o(C);ma(T,{class:"size-3.5","aria-hidden":"true"});var Y=a(T),ve=o(Y,!0),Q=a(ve);{var xe=se=>{var pe=Re();pe.nodeValue=" · ",r(se,pe)};d(Q,se=>{e(h).questions&&e(h).docs&&se(xe)})}var ce=a(Q);{var me=se=>{var pe=Ya(),oe=P(pe,!0);k(()=>{y(pe,"href",`${e(g)??""}?tab=docs`),m(oe,e(h).docs)}),r(se,pe)};d(ce,se=>{e(h).docs&&se(me)})}s(Y),s(C),k(()=>m(ve,e(h).questions??"")),r(u,C)};d(le,u=>{e(h)&&u(te)})}var V=a(le,2);{var B=u=>{zt(u,{get task(){return t.task}})};d(V,u=>{t.task.preview&&u(B)})}var $=a(V,2),ue=o($);vt(ue,{get task(){return t.task}}),s($);var F=a($,2),de=o(F);{var S=u=>{var C=bt(),T=ie(C);Te(T,{class:"flex-1",get href(){return e(O).url},target:"_blank",rel:"noreferrer",children:(Q,xe)=>{Le();var ce=Ka(),me=a(ie(ce));We(me,{}),r(Q,ce)},$$slots:{default:!0}});var Y=a(T,2);{var ve=Q=>{_(Q,()=>"outline")};d(Y,Q=>{e(x)&&Q(ve)})}r(u,C)},N=u=>{var C=bt(),T=ie(C);_(T,()=>"default");var Y=a(T,2);{var ve=Q=>{Te(Q,{variant:"outline",get href(){return e(q).pr.url},target:"_blank",rel:"noreferrer",children:(xe,ce)=>{Le();var me=Ja(),se=a(ie(me));We(se,{}),r(xe,me)},$$slots:{default:!0}})};d(Y,Q=>{e(x).external||Q(ve)})}r(u,C)},J=u=>{Te(u,{class:"flex-1",get href(){return e(g)},children:(C,T)=>{Le();var Y=Re("Review the work");r(C,Y)},$$slots:{default:!0}})},ae=u=>{Te(u,{class:"flex-1",get href(){return e(g)},children:(C,T)=>{Le();var Y=Re("Read the decision");r(C,Y)},$$slots:{default:!0}})};d(de,u=>{e(R)&&e(O)?u(S):e(R)&&e(q).pr&&e(x)?u(N,1):e(R)?u(J,2):u(ae,-1)})}var ee=a(de,2);Te(ee,{variant:"outline",get href(){return e(g)},children:(u,C)=>{Le();var T=Re("Details");r(u,T)},$$slots:{default:!0}}),s(F),s(I),s(D),k(()=>{y(w,"href",e(g)),y(X,"href",e(g)),y(X,"title",t.task.title),m(E,t.task.shortTitle),m(H,e(f).text)}),r(A,D),ze()}var $a=n('<span class="text-sea" data-project-tag=""> </span> ·',1),er=n('<div class="mt-2"><!></div>'),tr=n('<span class="font-medium"> </span>'),ar=n('<span class="text-muted-foreground"> </span>'),rr=n("<p><!> <span>Now:</span> <!></p>"),sr=n("<p> </p>"),nr=n('<div class="mt-3"><!></div>'),or=n('<button type="button" class="relative z-10 cursor-pointer underline decoration-muted-foreground/40 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-build-questions=""> </button>'),ir=n('<a class="relative z-10 hover:text-foreground hover:underline" data-build-questions=""> </a>'),lr=n('<a class="relative z-10 hover:text-foreground hover:underline" data-build-docs=""> </a>'),dr=n('<p class="tabular mt-3 text-xs text-muted-foreground"><!><!><!><!><!></p>'),vr=n('<section class="relative z-10 mt-3 rounded-md border border-hair bg-panel p-2.5" aria-label="Questions for Firstmate" data-card-questions=""><p class="text-xs font-medium">Questions for Firstmate</p> <p class="mt-0.5 mb-2 text-xs text-muted-foreground"> </p> <!> <a class="mt-2 inline-block text-xs text-muted-foreground hover:text-foreground hover:underline"> </a></section>'),ur=n('<a class="relative z-10 mt-3 block text-xs text-muted-foreground hover:text-foreground hover:underline" data-card-changes=""> </a>'),cr=n('<a class="relative z-10 mt-3 inline-flex items-center gap-1.5 text-xs text-sea hover:underline" data-review-pr=""><!> <!></a>'),fr=n(`<article class="group relative min-w-0 rounded-lg border bg-card p-3 transition-[border-color,box-shadow] duration-200 hover:border-input hover:shadow-[0_1px_0_var(--hair)] has-[a[data-card-link]:focus-visible]:ring-3 has-[a[data-card-link]:focus-visible]:ring-ring/50"><div data-card-picture=""><!></div> <!> <div class="px-1 pt-4 pb-1"><p class="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground"><!><span class="min-w-0 truncate"><!> </span></p> <a data-card-link="" class="mt-0.5 line-clamp-2 leading-snug font-medium group-hover:underline after:absolute after:inset-0 after:rounded-lg after:content-[''] focus-visible:outline-none"> </a> <!> <div class="mt-4"><!></div> <!> <!> <!> <!> <!> <!></div></article>`);function mr(A,t){je(t,!0);let _=Qe(t,"projectName",3,null);const l=i(()=>ft(t.task)),f=i(()=>t.task.pr?ut.review(t.task.projectId,t.task.pr):null),g=i(()=>jt(t.task.build)),R=i(()=>t.task.filesChanged?`${t.task.filesChanged} ${yt(t.task.filesChanged,"file","files")} changed`:null),q=i(()=>t.task.build?.rounds[0]??null);let U=De(!1);const O=i(()=>`questions-${t.task.id}`),x=i(()=>e(q)?{expanded:e(U),controls:e(O),toggle:()=>Ae(U,!e(U))}:null),p=i(()=>!!e(q)&&(e(q).status==="waiting"||!!t.task.pipeline?.answered||!!t.task.pipeline?.gate));let h=De(null);const D=i(()=>$t(t.task)),w=i(()=>ea(t.task,e(D)?e(h):null,Ie.now)),v=i(()=>wt(t.task.worker)??(t.task.status==="queued"?"Not started":"Crew unknown")),z=i(()=>e(l)==="trouble"||e(l)==="firstmate"||t.task.addressingReview?t.task.statusLabel:null),W=i(()=>Zt(t.task)),j=i(()=>e(W)?Jt(e(W).changes):null),I=i(()=>e(w)?.at?e(w).source==="console"?"live":e(w).source==="pipeline"?`started ${lt(e(w).at,Ie.now)}`:lt(e(w).at,Ie.now):null);var M=fr(),K=o(M),X=o(K);{var E=c=>{ra(c,{get task(){return t.task},onsample:b=>Ae(h,b,!0),class:"rounded-sm"})},L=c=>{qt(c,{get task(){return t.task},class:"rounded-sm"})};d(X,c=>{e(D)?c(E):c(L,-1)})}s(K);var H=a(K,2);{let c=i(()=>!e(D)&&t.task.thumb.kind==="screenshot"?1:0);Ct(H,{get shots(){return t.task.shots},get total(){return t.task.screenshots},get skip(){return e(c)}})}var Z=a(H,2),re=o(Z),le=o(re);Ge(le,{get task(){return t.task}});var te=a(le),V=o(te);{var B=c=>{var b=$a(),G=ie(b),he=P(G,!0);Le(),k(()=>m(he,_())),r(c,b)};d(V,c=>{_()&&c(B)})}var $=a(V,1,!0);s(te),s(re);var ue=a(re,2),F=P(ue,!0),de=a(ue,2);{var S=c=>{var b=er(),G=o(b);{let he=i(()=>e(p)?e(x):null);ia(G,{get pipeline(){return t.task.pipeline},get busy(){return t.task.busy},get lead(){return e(z)},get leadClass(){return Fe[e(l)]},get questions(){return e(he)}})}s(b),r(c,b)},N=i(()=>Xt(t.task)),J=c=>{var b=rr(),G=o(b);{var he=be=>{var Me=tr(),Ue=P(Me);k(()=>m(Ue,`${e(z)??""}.`)),r(be,Me)};d(G,be=>{e(z)&&be(he)})}var we=a(G,2),Ce=a(we),ye=a(Ce);{var Oe=be=>{var Me=ar(),Ue=P(Me,!0);k(()=>m(Ue,` · ${e(I)}`)),r(be,Me)};d(ye,be=>{e(I)&&be(Oe)})}s(b),k(()=>{fe(b,1,`mt-1 line-clamp-2 text-sm ${(e(z)?Fe[e(l)]:"text-muted-foreground")??""}`),y(b,"data-now",e(w).source),fe(we,1,`font-medium ${e(z)?"":"text-foreground/80"}`),m(Ce,` ${e(w).text??""}`)}),r(c,b)},ae=c=>{var b=sr(),G=P(b,!0);k(()=>{fe(b,1,`mt-1 line-clamp-1 text-sm ${(e(z)?Fe[e(l)]:"text-muted-foreground")??""}`),y(b,"title",t.task.summary??void 0),m(G,e(z)??t.task.summary??t.task.statusLabel)}),r(c,b)};d(de,c=>{e(N)?c(S):e(w)?c(J,1):c(ae,-1)})}var ee=a(de,2),u=o(ee);vt(u,{get task(){return t.task}}),s(ee);var C=a(ee,2);{var T=c=>{var b=nr(),G=o(b);la(G,{get eta(){return t.task.eta}}),s(b),r(c,b)};d(C,c=>{t.task.eta&&c(T)})}var Y=a(C,2);{var ve=c=>{var b=dr(),G=o(b);{var he=ne=>{var ge=Re();k(()=>m(ge,e(R))),r(ne,ge)};d(G,ne=>{e(R)&&ne(he)})}var we=a(G);{var Ce=ne=>{var ge=Re();ge.nodeValue=" · ",r(ne,ge)};d(we,ne=>{e(R)&&e(g)?.questions&&ne(Ce)})}var ye=a(we);{var Oe=ne=>{var ge=Pe(),Ke=ie(ge);{var Je=Se=>{var qe=or(),Xe=P(qe,!0);k(()=>{y(qe,"aria-expanded",e(x).expanded),y(qe,"aria-controls",e(O)),m(Xe,e(g).questions)}),Ye("click",qe,function(...Ze){e(x).toggle?.apply(this,Ze)}),r(Se,qe)},It=Se=>{var qe=ir(),Xe=P(qe,!0);k(Ze=>{y(qe,"href",`/tasks/${Ze??""}?tab=talk`),m(Xe,e(g).questions)},[()=>encodeURIComponent(t.task.id)]),r(Se,qe)};d(Ke,Se=>{e(x)?Se(Je):Se(It,-1)})}r(ne,ge)};d(ye,ne=>{e(g)?.questions&&ne(Oe)})}var be=a(ye);{var Me=ne=>{var ge=Re();ge.nodeValue=" · ",r(ne,ge)};d(be,ne=>{(e(R)||e(g)?.questions)&&e(g)?.docs&&ne(Me)})}var Ue=a(be);{var Rt=ne=>{var ge=lr(),Ke=P(ge,!0);k(Je=>{y(ge,"href",`/tasks/${Je??""}?tab=docs`),m(Ke,e(g).docs)},[()=>encodeURIComponent(t.task.id)]),r(ne,ge)};d(Ue,ne=>{e(g)?.docs&&ne(Rt)})}s(b),k(()=>y(b,"data-build-hint",e(g)?"":void 0)),r(c,b)};d(Y,c=>{(e(R)||e(g))&&c(ve)})}var Q=a(Y,2);{var xe=c=>{var b=vr(),G=a(o(b),2),he=P(G,!0),we=a(G,2);sa(we,{get questions(){return e(q).questions},size:"card"});var Ce=a(we,2),ye=P(Ce,!0);s(b),k((Oe,be)=>{y(b,"id",e(O)),m(he,Oe),y(Ce,"href",`/tasks/${be??""}?tab=talk`),m(ye,t.task.build&&t.task.build.rounds.length>1?"Earlier questions are in the conversation":"Open the conversation")},[()=>na(e(q),Ie.now),()=>encodeURIComponent(t.task.id)]),r(c,b)};d(Q,c=>{e(q)&&e(U)&&c(xe)})}var ce=a(Q,2);{var me=c=>{var b=ur(),G=P(b);k(he=>{y(b,"href",`/tasks/${he??""}`),m(G,`Run ${e(W)?.n??""}: ${e(j)??""}`)},[()=>encodeURIComponent(t.task.id)]),r(c,b)};d(ce,c=>{e(j)&&c(me)})}var se=a(ce,2);{var pe=c=>{var b=cr(),G=o(b);ct(G,{class:"size-3.5","aria-hidden":"true"});var he=a(G),we=a(he);{var Ce=ye=>{We(ye,{class:"size-3","aria-hidden":"true"})};d(we,ye=>{e(f).external&&ye(Ce)})}s(b),k(()=>{y(b,"href",e(f).href),y(b,"target",e(f).external?"_blank":void 0),y(b,"rel",e(f).external?"noreferrer":void 0),m(he,`Review PR${t.task.pr.number?` #${t.task.pr.number}`:""}`)}),r(c,b)};d(se,c=>{e(f)&&t.task.pr&&c(pe)})}var oe=a(se,2);{var _e=c=>{zt(c,{get task(){return t.task}})};d(oe,c=>{t.task.preview&&c(_e)})}s(Z),s(M),At(M,()=>ha(t.task.status==="landed","wh-landed")),k(c=>{y(re,"title",e(v)),m($,e(v)),y(ue,"href",`/tasks/${c??""}`),y(ue,"title",t.task.title),m(F,t.task.shortTitle)},[()=>encodeURIComponent(t.task.id)]),r(A,M),ze()}Be(["click"]);var gr=n('<span class="text-warning"> </span>'),_r=n('<p class="tabular mt-3 flex items-center gap-1.5 text-xs text-muted-foreground"><!> <!></p>'),hr=n('<a class="relative z-10 mt-2 inline-flex items-center gap-1.5 self-start text-xs text-sea hover:underline" data-review-pr=""><!> <!></a>'),xr=n(`<article data-compact-card=""><div class="flex min-w-0 items-center justify-between gap-2 text-xs"><span class="flex min-w-0 items-center gap-1"><!> <span class="min-w-0 truncate rounded-sm border border-hair bg-panel px-1.5 py-0.5 text-sea" data-project-tag=""> </span></span> <span><span aria-hidden="true"></span> </span></div> <a data-card-link="" class="mt-2 line-clamp-2 leading-snug font-medium group-hover:underline after:absolute after:inset-0 after:rounded-lg after:content-[''] focus-visible:outline-none"> </a> <div class="mt-auto pt-3.5"><!></div> <!> <!></article>`);function pr(A,t){je(t,!0);const _=i(()=>ft(t.task)),l=i(()=>t.task.pr?ut.review(t.task.projectId,t.task.pr):null),f=i(()=>t.task.build?.questions??0),g=i(()=>t.task.build?.open??0);var R=xr(),q=o(R),U=o(q),O=o(U);Ge(O,{get task(){return t.task}});var x=a(O,2),p=P(x,!0);s(U);var h=a(U,2),D=o(h),w=a(D,1,!0);s(h),s(q);var v=a(q,2),z=P(v,!0),W=a(v,2),j=o(W);vt(j,{get task(){return t.task}}),s(W);var I=a(W,2);{var M=E=>{var L=_r(),H=o(L);ga(H,{class:"size-3.5","aria-hidden":"true"});var Z=a(H),re=a(Z);{var le=te=>{var V=gr(),B=P(V,!0);k(()=>m(B,` · ${e(g)} open`)),r(te,V)};d(re,te=>{e(g)&&te(le)})}s(L),k(te=>m(Z,` ${e(f)??""}
1
+ import"../chunks/DsnmJJEf.js";import{l as Be,p as je,j as Pe,f as ie,g as e,a as r,b as ze,i,o as P,t as k,y as Ye,v as Ae,r as s,s as a,c as n,m as De,d as m,h as o,u as kt,n as Le,w as Re,aa as it,q as Mt,ab as Lt,aq as St,bB as Nt,e as Tt,$ as Pt}from"../chunks/DFFTcnMk.js";import{i as d}from"../chunks/fxwDaXQ6.js";import{e as ke,s as y,a as fe,d as mt,m as At,h as Ot}from"../chunks/VI4uBLfk.js";import{p as gt}from"../chunks/Mzyfuo21.js";import{l as Ie,c as Ut}from"../chunks/BEc8oFj4.js";import{s as _t,a as ht}from"../chunks/nShh0HJ4.js";import{i as Wt,c as Ft,s as xt,h as Dt,g as Vt}from"../chunks/DwXSJzKm.js";import{P as Ht}from"../chunks/DxQ9r3ah.js";import{I as Ve,a as $e,t as Ne}from"../chunks/CDH1GGn5.js";import{n as Et,T as Qt,w as Bt,s as Yt,u as Gt,V as Kt}from"../chunks/XuW16bbU.js";import{s as He,r as Ee,p as Qe}from"../chunks/DtxmqMMR.js";import{S as vt,W as Ge,b as Jt,a as Xt,l as Zt}from"../chunks/D_ohfsLu.js";import{B as Te}from"../chunks/I9e8Fl7s.js";import{b as wt,p as yt,d as $t,n as ea,a as lt}from"../chunks/DKQe4Tss.js";import{a as ta,r as aa,I as pt,C as ra,Q as sa}from"../chunks/BJLLbknR.js";import{h as jt,r as na}from"../chunks/cAfuCUf-.js";import{p as et,d as ut,M as oa,C as ct}from"../chunks/kdhJpKON.js";import{a as zt,C as ia,E as la}from"../chunks/Dby6Wn4J.js";import{L as da}from"../chunks/CPqWOIiS.js";import{H as va}from"../chunks/Dve7Csph.js";import{F as ua}from"../chunks/DWWzLM9n.js";import{G as ca}from"../chunks/BZIE5Pwu.js";import{S as fa}from"../chunks/B94WFLDK.js";import{M as ma,a as ga}from"../chunks/DgbXcz16.js";import{E as We}from"../chunks/CDPChpWC.js";import{S as _a}from"../chunks/BSRqsJCa.js";import{t as Fe,a as ft,d as dt}from"../chunks/BY5XjwMm.js";import{a as ha,M as tt,b as at,r as rt,f as st}from"../chunks/DJNADPa5.js";import{A as xa}from"../chunks/ChgpVwh1.js";import{A as pa}from"../chunks/Dz3EKdv5.js";import{c as ba}from"../chunks/CTO6Jnxr.js";import{f as nt}from"../chunks/hxhxtxcx.js";var ka=new Set(["$$slots","$$events","$$legacy"]);function wa(A,t){let _=Ee(t,ka);const l={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4"}],["path",{d:"M17 20V4"}],["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}var ya=new Set(["$$slots","$$events","$$legacy"]);function ja(A,t){let _=Ee(t,ya);const l={name:"grid-3x3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]],aliases:["grid","grid-3-x-3"]};Ve(A,He(()=>_,{get icon(){return l}}))}var za=new Set(["$$slots","$$events","$$legacy"]);function Ca(A,t){let _=Ee(t,za);const l={name:"hourglass",size:24,node:[["path",{d:"M5 22h14"}],["path",{d:"M5 2h14"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}var qa=new Set(["$$slots","$$events","$$legacy"]);function Ra(A,t){let _=Ee(t,qa);const l={name:"list",size:24,node:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}var Ia=new Set(["$$slots","$$events","$$legacy"]);function Ma(A,t){let _=Ee(t,Ia);const l={name:"rectangle-horizontal",size:24,node:[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2"}]]};Ve(A,He(()=>_,{get icon(){return l}}))}function La(A,t){try{document.cookie=`${A}=${encodeURIComponent(t)}; path=/; max-age=31536000; samesite=lax`}catch{}}var Sa=n('<button type="button" class="w-20 shrink-0 cursor-zoom-in"><img loading="lazy" class="aspect-[16/10] w-full rounded-md border object-cover object-top"/></button>'),Na=n('<p class="mt-1 text-xs text-muted-foreground"> </p>'),Ta=n('<div class="relative z-10 mt-2 flex flex-wrap gap-1.5" data-card-shots=""></div> <!> <!>',1);function Ct(A,t){je(t,!0);let _=Qe(t,"skip",3,0),l=De(null);const f=i(()=>t.shots.slice(_())),g=i(()=>t.total-t.shots.length);var R=Pe(),q=ie(R);{var U=O=>{var x=Ta(),p=ie(x);ke(p,23,()=>e(f),v=>v.url,(v,z,W)=>{var j=Sa(),I=P(j);k(()=>{y(j,"aria-label",`Enlarge screenshot ${e(z).name??""}`),y(j,"title",e(z).name),y(I,"src",e(z).url),y(I,"alt",e(z).name)}),Ye("click",j,M=>{M.preventDefault(),M.stopPropagation(),Ae(l,e(W)+_())}),r(v,j)}),s(p);var h=a(p,2);{var D=v=>{var z=Na(),W=P(z);k(()=>m(W,`+${e(g)??""} more on the task page`)),r(v,z)};d(h,v=>{e(g)>0&&v(D)})}var w=a(h,2);da(w,{get shots(){return t.shots},get index(){return e(l)},set index(v){Ae(l,v,!0)}}),r(O,x)};d(q,O=>{e(f).length&&O(U)})}r(A,R),ze()}Be(["click"]);var Pa=n('<img loading="lazy" class="size-full object-cover object-top"/>'),Aa=n('<div class="flex items-center gap-2"><span class="w-0 flex-1 truncate font-mono text-xs text-muted-foreground"> </span> <span class="flex h-1.5 w-20 overflow-hidden rounded-full bg-border/60"><span class="bg-success/80"></span> <span class="bg-danger/80"></span></span></div>'),Oa=n('<p class="font-mono text-xs text-muted-foreground"> </p>'),Ua=n('<div class="flex size-full flex-col justify-center gap-1.5 p-4" aria-label="Files changed"><!> <!></div>'),Wa=n('<div class="grid size-full place-items-center text-muted-foreground/50"><!></div>'),Fa=n("<div><!></div>");function qt(A,t){je(t,!0);let _=Qe(t,"class",3,"");const l=i(()=>t.task.thumb),f=i(()=>e(l).kind==="diff"?Math.max(1,...e(l).files.map(x=>x.additions+x.deletions)):1);var g=Fa(),R=o(g);{var q=x=>{var p=Pa();k(()=>{y(p,"src",e(l).url),y(p,"alt",`Latest screenshot: ${e(l).name??""}`)}),r(x,p)},U=x=>{var p=Ua(),h=o(p);ke(h,17,()=>e(l).files,v=>v.path,(v,z)=>{var W=Aa(),j=o(W),I=P(j,!0),M=a(j,2),K=o(M),X=a(K,2);s(M),s(W),k(E=>{m(I,E),mt(K,`width:${e(z).additions/e(f)*100}%`),mt(X,`width:${e(z).deletions/e(f)*100}%`)},[()=>e(z).path.split("/").pop()]),r(v,W)});var D=a(h,2);{var w=v=>{var z=Oa(),W=P(z);k(()=>m(W,`+${e(l).totalFiles-e(l).files.length} more`)),r(v,z)};d(D,v=>{e(l).totalFiles>e(l).files.length&&v(w)})}s(p),r(x,p)},O=x=>{var p=Wa(),h=o(p);{var D=j=>{Ca(j,{class:"size-6","aria-hidden":"true"})},w=j=>{va(j,{class:"size-6","aria-hidden":"true"})},v=j=>{ua(j,{class:"size-6","aria-hidden":"true"})},z=j=>{ca(j,{class:"size-6","aria-hidden":"true"})},W=j=>{fa(j,{class:"size-6","aria-hidden":"true"})};d(h,j=>{t.task.status==="queued"?j(D):t.task.attention?.kind==="decision"?j(w,1):t.task.hasReport?j(v,2):t.task.pr?j(z,3):j(W,-1)})}s(p),r(x,p)};d(R,x=>{e(l).kind==="screenshot"?x(q):e(l).kind==="diff"?x(U,1):x(O,-1)})}s(g),k(()=>fe(g,1,`relative aspect-[16/10] overflow-hidden rounded-lg border bg-muted/40 ${_()??""}`)),r(A,g),ze()}var Da=n("<!>Review PR<!>",1),Va=n('<span class="absolute right-2 bottom-2 inline-flex items-center gap-1 rounded-md bg-background/90 px-1.5 py-0.5 text-xs font-medium shadow-sm"><!> </span>'),Ha=n('<span class="font-medium tracking-wide text-sea" data-project-tag=""> </span> ',1),Ea=n('<p class="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground"><!><span class="min-w-0 truncate"><!> </span></p>'),Qa=n('<a target="_blank" rel="noreferrer" class="truncate text-sea hover:underline"> </a>'),Ba=n('<ul class="mt-3 space-y-1 text-xs text-muted-foreground" aria-label="Review evidence"><li class="flex items-center gap-1.5" data-review="screenshots"><!> </li> <li class="flex items-center gap-1.5" data-review="preview"><!><!></li></ul>'),Ya=n('<a class="hover:text-foreground hover:underline" data-build-docs=""> </a>'),Ga=n('<p class="mt-1 flex items-center gap-1.5 text-xs text-muted-foreground" data-build-hint=""><!><span> <!><!></span></p>'),Ka=n("Open preview<!>",1),bt=n("<!> <!>",1),Ja=n("On GitHub<!>",1),Xa=n('<article class="flex min-w-0 flex-col rounded-lg border border-t-2 border-t-sea bg-card p-3"><a tabindex="-1" aria-hidden="true" class="relative block" data-card-picture=""><!> <!></a> <!> <div class="flex flex-1 flex-col px-1 pt-4 pb-1"><!> <a class="mt-0.5 text-lg leading-snug font-semibold hover:underline"> </a> <p class="mt-2 line-clamp-3 flex-1 text-sm leading-relaxed text-muted-foreground"> </p> <!> <!> <!> <div class="mt-4"><!></div> <div class="mt-5 flex flex-wrap gap-2"><!> <!></div></div></article>');function Za(A,t){je(t,!0);const _=(u,C=it)=>{var T=Pe(),Y=ie(T);{var ve=Q=>{{let xe=i(()=>C()==="default"?"flex-1":""),ce=i(()=>e(x).external?"_blank":void 0),me=i(()=>e(x).external?"noreferrer":void 0);Te(Q,{get class(){return e(xe)},get variant(){return C()},get href(){return e(x).href},get target(){return e(ce)},get rel(){return e(me)},"data-review-pr":!0,children:(se,pe)=>{var oe=Da(),_e=ie(oe);ct(_e,{});var c=a(_e,2);{var b=G=>{We(G,{})};d(c,G=>{e(x).external&&G(b)})}r(se,oe)},$$slots:{default:!0}})}};d(Y,Q=>{e(x)&&Q(ve)})}r(u,T)};let l=Qe(t,"projectName",3,null);const f=i(()=>t.task.attention),g=i(()=>`/tasks/${encodeURIComponent(t.task.id)}`),R=i(()=>ta(t.task)),q=i(()=>aa(t.task)),U=i(()=>e(R)&&!!t.task.preview&&e(q).preview?.url===t.task.preview.url);kt(()=>{if(e(U))return et.watch(t.task.id)});const O=i(()=>e(U)&&et.stopped(t.task.id)?null:e(q).preview),x=i(()=>e(q).pr?ut.review(t.task.projectId,e(q).pr):null),p=i(()=>wt(t.task.worker)),h=i(()=>jt(t.task.build));var D=Xa(),w=o(D),v=o(w);qt(v,{get task(){return t.task},class:"rounded-sm"});var z=a(v,2);{var W=u=>{var C=Va(),T=o(C);pt(T,{class:"size-3.5","aria-hidden":"true"});var Y=a(T,1,!0);s(C),k(()=>m(Y,t.task.screenshots)),r(u,C)};d(z,u=>{e(R)&&t.task.screenshots>0&&u(W)})}s(w);var j=a(w,2);{let u=i(()=>t.task.thumb.kind==="screenshot"?1:0);Ct(j,{get shots(){return t.task.shots},get total(){return t.task.screenshots},get skip(){return e(u)}})}var I=a(j,2),M=o(I);{var K=u=>{var C=Ea(),T=o(C);Ge(T,{get task(){return t.task}});var Y=a(T),ve=o(Y);{var Q=ce=>{var me=Ha(),se=ie(me),pe=P(se,!0),oe=a(se,1,!0);k(()=>{m(pe,l()),m(oe,e(p)?" · ":"")}),r(ce,me)};d(ve,ce=>{l()&&ce(Q)})}var xe=a(ve,1,!0);s(Y),s(C),k(()=>m(xe,e(p)??"")),r(u,C)};d(M,u=>{(l()||e(p)||t.task.secondMate)&&u(K)})}var X=a(M,2),E=P(X,!0),L=a(X,2),H=P(L,!0),Z=a(L,2);{var re=u=>{var C=Ba(),T=o(C),Y=o(T);pt(Y,{class:"size-3.5","aria-hidden":"true"});var ve=a(Y,1,!0);s(T);var Q=a(T,2),xe=o(Q);oa(xe,{class:"size-3.5","aria-hidden":"true"});var ce=a(xe);{var me=oe=>{var _e=Qa(),c=P(_e,!0);k(()=>{y(_e,"href",e(O).url),m(c,e(O).url)}),r(oe,_e)},se=oe=>{var _e=Re();k(()=>m(_e,`Preview stopped. ${et.checks[t.task.id]?.reason??""??""}`)),r(oe,_e)},pe=oe=>{var _e=Re();k(()=>m(_e,e(q).previewText)),r(oe,_e)};d(ce,oe=>{e(O)?oe(me):e(q).preview?oe(se,1):oe(pe,-1)})}s(Q),s(C),k(()=>m(ve,e(q).shotsText)),r(u,C)};d(Z,u=>{e(R)&&u(re)})}var le=a(Z,2);{var te=u=>{var C=Ga(),T=o(C);ma(T,{class:"size-3.5","aria-hidden":"true"});var Y=a(T),ve=o(Y,!0),Q=a(ve);{var xe=se=>{var pe=Re();pe.nodeValue=" · ",r(se,pe)};d(Q,se=>{e(h).questions&&e(h).docs&&se(xe)})}var ce=a(Q);{var me=se=>{var pe=Ya(),oe=P(pe,!0);k(()=>{y(pe,"href",`${e(g)??""}?tab=docs`),m(oe,e(h).docs)}),r(se,pe)};d(ce,se=>{e(h).docs&&se(me)})}s(Y),s(C),k(()=>m(ve,e(h).questions??"")),r(u,C)};d(le,u=>{e(h)&&u(te)})}var V=a(le,2);{var B=u=>{zt(u,{get task(){return t.task}})};d(V,u=>{t.task.preview&&u(B)})}var $=a(V,2),ue=o($);vt(ue,{get task(){return t.task}}),s($);var F=a($,2),de=o(F);{var S=u=>{var C=bt(),T=ie(C);Te(T,{class:"flex-1",get href(){return e(O).url},target:"_blank",rel:"noreferrer",children:(Q,xe)=>{Le();var ce=Ka(),me=a(ie(ce));We(me,{}),r(Q,ce)},$$slots:{default:!0}});var Y=a(T,2);{var ve=Q=>{_(Q,()=>"outline")};d(Y,Q=>{e(x)&&Q(ve)})}r(u,C)},N=u=>{var C=bt(),T=ie(C);_(T,()=>"default");var Y=a(T,2);{var ve=Q=>{Te(Q,{variant:"outline",get href(){return e(q).pr.url},target:"_blank",rel:"noreferrer",children:(xe,ce)=>{Le();var me=Ja(),se=a(ie(me));We(se,{}),r(xe,me)},$$slots:{default:!0}})};d(Y,Q=>{e(x).external||Q(ve)})}r(u,C)},J=u=>{Te(u,{class:"flex-1",get href(){return e(g)},children:(C,T)=>{Le();var Y=Re("Review the work");r(C,Y)},$$slots:{default:!0}})},ae=u=>{Te(u,{class:"flex-1",get href(){return e(g)},children:(C,T)=>{Le();var Y=Re("Read the decision");r(C,Y)},$$slots:{default:!0}})};d(de,u=>{e(R)&&e(O)?u(S):e(R)&&e(q).pr&&e(x)?u(N,1):e(R)?u(J,2):u(ae,-1)})}var ee=a(de,2);Te(ee,{variant:"outline",get href(){return e(g)},children:(u,C)=>{Le();var T=Re("Details");r(u,T)},$$slots:{default:!0}}),s(F),s(I),s(D),k(()=>{y(w,"href",e(g)),y(X,"href",e(g)),y(X,"title",t.task.title),m(E,t.task.shortTitle),m(H,e(f).text)}),r(A,D),ze()}var $a=n('<span class="text-sea" data-project-tag=""> </span> ·',1),er=n('<div class="mt-2"><!></div>'),tr=n('<span class="font-medium"> </span>'),ar=n('<span class="text-muted-foreground"> </span>'),rr=n("<p><!> <span>Now:</span> <!></p>"),sr=n("<p> </p>"),nr=n('<div class="mt-3"><!></div>'),or=n('<button type="button" class="relative z-10 cursor-pointer underline decoration-muted-foreground/40 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-build-questions=""> </button>'),ir=n('<a class="relative z-10 hover:text-foreground hover:underline" data-build-questions=""> </a>'),lr=n('<a class="relative z-10 hover:text-foreground hover:underline" data-build-docs=""> </a>'),dr=n('<p class="tabular mt-3 text-xs text-muted-foreground"><!><!><!><!><!></p>'),vr=n('<section class="relative z-10 mt-3 rounded-md border border-hair bg-panel p-2.5" aria-label="Questions for Firstmate" data-card-questions=""><p class="text-xs font-medium">Questions for Firstmate</p> <p class="mt-0.5 mb-2 text-xs text-muted-foreground"> </p> <!> <a class="mt-2 inline-block text-xs text-muted-foreground hover:text-foreground hover:underline"> </a></section>'),ur=n('<a class="relative z-10 mt-3 block text-xs text-muted-foreground hover:text-foreground hover:underline" data-card-changes=""> </a>'),cr=n('<a class="relative z-10 mt-3 inline-flex items-center gap-1.5 text-xs text-sea hover:underline" data-review-pr=""><!> <!></a>'),fr=n(`<article class="group relative min-w-0 rounded-lg border bg-card p-3 transition-[border-color,box-shadow] duration-200 hover:border-input hover:shadow-[0_1px_0_var(--hair)] has-[a[data-card-link]:focus-visible]:ring-3 has-[a[data-card-link]:focus-visible]:ring-ring/50"><div data-card-picture=""><!></div> <!> <div class="px-1 pt-4 pb-1"><p class="flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground"><!><span class="min-w-0 truncate"><!> </span></p> <a data-card-link="" class="mt-0.5 line-clamp-2 leading-snug font-medium group-hover:underline after:absolute after:inset-0 after:rounded-lg after:content-[''] focus-visible:outline-none"> </a> <!> <div class="mt-4"><!></div> <!> <!> <!> <!> <!> <!></div></article>`);function mr(A,t){je(t,!0);let _=Qe(t,"projectName",3,null);const l=i(()=>ft(t.task)),f=i(()=>t.task.pr?ut.review(t.task.projectId,t.task.pr):null),g=i(()=>jt(t.task.build)),R=i(()=>t.task.filesChanged?`${t.task.filesChanged} ${yt(t.task.filesChanged,"file","files")} changed`:null),q=i(()=>t.task.build?.rounds[0]??null);let U=De(!1);const O=i(()=>`questions-${t.task.id}`),x=i(()=>e(q)?{expanded:e(U),controls:e(O),toggle:()=>Ae(U,!e(U))}:null),p=i(()=>!!e(q)&&(e(q).status==="waiting"||!!t.task.pipeline?.answered||!!t.task.pipeline?.gate));let h=De(null);const D=i(()=>$t(t.task)),w=i(()=>ea(t.task,e(D)?e(h):null,Ie.now)),v=i(()=>wt(t.task.worker)??(t.task.status==="queued"?"Not started":"Crew unknown")),z=i(()=>e(l)==="trouble"||e(l)==="firstmate"||t.task.addressingReview?t.task.statusLabel:null),W=i(()=>Zt(t.task)),j=i(()=>e(W)?Jt(e(W).changes):null),I=i(()=>e(w)?.at?e(w).source==="console"?"live":e(w).source==="pipeline"?`started ${lt(e(w).at,Ie.now)}`:lt(e(w).at,Ie.now):null);var M=fr(),K=o(M),X=o(K);{var E=c=>{ra(c,{get task(){return t.task},onsample:b=>Ae(h,b,!0),class:"rounded-sm"})},L=c=>{qt(c,{get task(){return t.task},class:"rounded-sm"})};d(X,c=>{e(D)?c(E):c(L,-1)})}s(K);var H=a(K,2);{let c=i(()=>!e(D)&&t.task.thumb.kind==="screenshot"?1:0);Ct(H,{get shots(){return t.task.shots},get total(){return t.task.screenshots},get skip(){return e(c)}})}var Z=a(H,2),re=o(Z),le=o(re);Ge(le,{get task(){return t.task}});var te=a(le),V=o(te);{var B=c=>{var b=$a(),G=ie(b),he=P(G,!0);Le(),k(()=>m(he,_())),r(c,b)};d(V,c=>{_()&&c(B)})}var $=a(V,1,!0);s(te),s(re);var ue=a(re,2),F=P(ue,!0),de=a(ue,2);{var S=c=>{var b=er(),G=o(b);{let he=i(()=>e(p)?e(x):null);ia(G,{get pipeline(){return t.task.pipeline},get busy(){return t.task.busy},get lead(){return e(z)},get leadClass(){return Fe[e(l)]},get questions(){return e(he)}})}s(b),r(c,b)},N=i(()=>Xt(t.task)),J=c=>{var b=rr(),G=o(b);{var he=be=>{var Me=tr(),Ue=P(Me);k(()=>m(Ue,`${e(z)??""}.`)),r(be,Me)};d(G,be=>{e(z)&&be(he)})}var we=a(G,2),Ce=a(we),ye=a(Ce);{var Oe=be=>{var Me=ar(),Ue=P(Me,!0);k(()=>m(Ue,` · ${e(I)}`)),r(be,Me)};d(ye,be=>{e(I)&&be(Oe)})}s(b),k(()=>{fe(b,1,`mt-1 line-clamp-2 text-sm ${(e(z)?Fe[e(l)]:"text-muted-foreground")??""}`),y(b,"data-now",e(w).source),fe(we,1,`font-medium ${e(z)?"":"text-foreground/80"}`),m(Ce,` ${e(w).text??""}`)}),r(c,b)},ae=c=>{var b=sr(),G=P(b,!0);k(()=>{fe(b,1,`mt-1 line-clamp-1 text-sm ${(e(z)?Fe[e(l)]:"text-muted-foreground")??""}`),y(b,"title",t.task.summary??void 0),m(G,e(z)??t.task.summary??t.task.statusLabel)}),r(c,b)};d(de,c=>{e(N)?c(S):e(w)?c(J,1):c(ae,-1)})}var ee=a(de,2),u=o(ee);vt(u,{get task(){return t.task}}),s(ee);var C=a(ee,2);{var T=c=>{var b=nr(),G=o(b);la(G,{get eta(){return t.task.eta}}),s(b),r(c,b)};d(C,c=>{t.task.eta&&c(T)})}var Y=a(C,2);{var ve=c=>{var b=dr(),G=o(b);{var he=ne=>{var ge=Re();k(()=>m(ge,e(R))),r(ne,ge)};d(G,ne=>{e(R)&&ne(he)})}var we=a(G);{var Ce=ne=>{var ge=Re();ge.nodeValue=" · ",r(ne,ge)};d(we,ne=>{e(R)&&e(g)?.questions&&ne(Ce)})}var ye=a(we);{var Oe=ne=>{var ge=Pe(),Ke=ie(ge);{var Je=Se=>{var qe=or(),Xe=P(qe,!0);k(()=>{y(qe,"aria-expanded",e(x).expanded),y(qe,"aria-controls",e(O)),m(Xe,e(g).questions)}),Ye("click",qe,function(...Ze){e(x).toggle?.apply(this,Ze)}),r(Se,qe)},It=Se=>{var qe=ir(),Xe=P(qe,!0);k(Ze=>{y(qe,"href",`/tasks/${Ze??""}?tab=talk`),m(Xe,e(g).questions)},[()=>encodeURIComponent(t.task.id)]),r(Se,qe)};d(Ke,Se=>{e(x)?Se(Je):Se(It,-1)})}r(ne,ge)};d(ye,ne=>{e(g)?.questions&&ne(Oe)})}var be=a(ye);{var Me=ne=>{var ge=Re();ge.nodeValue=" · ",r(ne,ge)};d(be,ne=>{(e(R)||e(g)?.questions)&&e(g)?.docs&&ne(Me)})}var Ue=a(be);{var Rt=ne=>{var ge=lr(),Ke=P(ge,!0);k(Je=>{y(ge,"href",`/tasks/${Je??""}?tab=docs`),m(Ke,e(g).docs)},[()=>encodeURIComponent(t.task.id)]),r(ne,ge)};d(Ue,ne=>{e(g)?.docs&&ne(Rt)})}s(b),k(()=>y(b,"data-build-hint",e(g)?"":void 0)),r(c,b)};d(Y,c=>{(e(R)||e(g))&&c(ve)})}var Q=a(Y,2);{var xe=c=>{var b=vr(),G=a(o(b),2),he=P(G,!0),we=a(G,2);sa(we,{get questions(){return e(q).questions},size:"card"});var Ce=a(we,2),ye=P(Ce,!0);s(b),k((Oe,be)=>{y(b,"id",e(O)),m(he,Oe),y(Ce,"href",`/tasks/${be??""}?tab=talk`),m(ye,t.task.build&&t.task.build.rounds.length>1?"Earlier questions are in the conversation":"Open the conversation")},[()=>na(e(q),Ie.now),()=>encodeURIComponent(t.task.id)]),r(c,b)};d(Q,c=>{e(q)&&e(U)&&c(xe)})}var ce=a(Q,2);{var me=c=>{var b=ur(),G=P(b);k(he=>{y(b,"href",`/tasks/${he??""}`),m(G,`Run ${e(W)?.n??""}: ${e(j)??""}`)},[()=>encodeURIComponent(t.task.id)]),r(c,b)};d(ce,c=>{e(j)&&c(me)})}var se=a(ce,2);{var pe=c=>{var b=cr(),G=o(b);ct(G,{class:"size-3.5","aria-hidden":"true"});var he=a(G),we=a(he);{var Ce=ye=>{We(ye,{class:"size-3","aria-hidden":"true"})};d(we,ye=>{e(f).external&&ye(Ce)})}s(b),k(()=>{y(b,"href",e(f).href),y(b,"target",e(f).external?"_blank":void 0),y(b,"rel",e(f).external?"noreferrer":void 0),m(he,`Review PR${t.task.pr.number?` #${t.task.pr.number}`:""}`)}),r(c,b)};d(se,c=>{e(f)&&t.task.pr&&c(pe)})}var oe=a(se,2);{var _e=c=>{zt(c,{get task(){return t.task}})};d(oe,c=>{t.task.preview&&c(_e)})}s(Z),s(M),At(M,()=>ha(t.task.status==="landed","wh-landed")),k(c=>{y(re,"title",e(v)),m($,e(v)),y(ue,"href",`/tasks/${c??""}`),y(ue,"title",t.task.title),m(F,t.task.shortTitle)},[()=>encodeURIComponent(t.task.id)]),r(A,M),ze()}Be(["click"]);var gr=n('<span class="text-warning"> </span>'),_r=n('<p class="tabular mt-3 flex items-center gap-1.5 text-xs text-muted-foreground"><!> <!></p>'),hr=n('<a class="relative z-10 mt-2 inline-flex items-center gap-1.5 self-start text-xs text-sea hover:underline" data-review-pr=""><!> <!></a>'),xr=n(`<article data-compact-card=""><div class="flex min-w-0 items-center justify-between gap-2 text-xs"><span class="flex min-w-0 items-center gap-1"><!> <span class="min-w-0 truncate rounded-sm border border-hair bg-panel px-1.5 py-0.5 text-sea" data-project-tag=""> </span></span> <span><span aria-hidden="true"></span> </span></div> <a data-card-link="" class="mt-2 line-clamp-2 leading-snug font-medium group-hover:underline after:absolute after:inset-0 after:rounded-lg after:content-[''] focus-visible:outline-none"> </a> <div class="mt-auto pt-3.5"><!></div> <!> <!></article>`);function pr(A,t){je(t,!0);const _=i(()=>ft(t.task)),l=i(()=>t.task.pr?ut.review(t.task.projectId,t.task.pr):null),f=i(()=>t.task.build?.questions??0),g=i(()=>t.task.build?.open??0);var R=xr(),q=o(R),U=o(q),O=o(U);Ge(O,{get task(){return t.task}});var x=a(O,2),p=P(x,!0);s(U);var h=a(U,2),D=o(h),w=a(D,1,!0);s(h),s(q);var v=a(q,2),z=P(v,!0),W=a(v,2),j=o(W);vt(j,{get task(){return t.task}}),s(W);var I=a(W,2);{var M=E=>{var L=_r(),H=o(L);ga(H,{class:"size-3.5","aria-hidden":"true"});var Z=a(H),re=a(Z);{var le=te=>{var V=gr(),B=P(V,!0);k(()=>m(B,` · ${e(g)} open`)),r(te,V)};d(re,te=>{e(g)&&te(le)})}s(L),k(te=>m(Z,` ${e(f)??""}
2
2
  ${te??""}`),[()=>yt(e(f),"question","questions")]),r(E,L)};d(I,E=>{e(f)&&E(M)})}var K=a(I,2);{var X=E=>{var L=hr(),H=o(L);ct(H,{class:"size-3.5","aria-hidden":"true"});var Z=a(H),re=a(Z);{var le=te=>{We(te,{class:"size-3","aria-hidden":"true"})};d(re,te=>{e(l).external&&te(le)})}s(L),k(()=>{y(L,"href",e(l).href),y(L,"target",e(l).external?"_blank":void 0),y(L,"rel",e(l).external?"noreferrer":void 0),m(Z,`Review PR${t.task.pr.number?` #${t.task.pr.number}`:""}`)}),r(E,L)};d(K,E=>{e(l)&&t.task.pr&&E(X)})}s(R),k(E=>{fe(R,1,`group relative flex min-w-0 flex-col rounded-lg border bg-card px-3.5 pt-3 pb-3.5 transition-colors duration-200 hover:border-input hover:shadow-[0_1px_0_var(--hair)] has-[a[data-card-link]:focus-visible]:ring-3 has-[a[data-card-link]:focus-visible]:ring-ring/50 ${e(_)==="you"?"border-t-2 border-t-sea":""}`),y(x,"title",t.projectName),m(p,t.projectName),fe(h,1,`flex shrink-0 items-center gap-1.5 ${Fe[e(_)]??""}`),fe(D,1,`size-1.5 rounded-full ${dt[e(_)]??""}`),m(w,t.task.statusLabel),y(v,"href",`/tasks/${E??""}`),y(v,"title",t.task.title),m(z,t.task.shortTitle)},[()=>encodeURIComponent(t.task.id)]),r(A,R),ze()}var br=n('<th scope="col"><button type="button"> <!></button></th>');function kr(A,t){je(t,!0);let _=Qe(t,"class",3,"");const l=i(()=>t.sort.key===t.column);var f=br(),g=o(f),R=o(g),q=a(R);{var U=x=>{var p=Pe(),h=ie(p);{var D=v=>{xa(v,{class:"size-3.5","aria-hidden":"true"})},w=v=>{pa(v,{class:"size-3.5","aria-hidden":"true"})};d(h,v=>{t.sort.dir==="asc"?v(D):v(w,-1)})}r(x,p)},O=x=>{wa(x,{class:"size-3.5 opacity-40","aria-hidden":"true"})};d(q,x=>{e(l)?x(U):x(O,-1)})}s(g),s(f),k(()=>{fe(f,1,`px-3 py-2 text-left font-medium first:pl-4 last:pr-4 ${_()??""}`),y(f,"aria-sort",e(l)?t.sort.dir==="asc"?"ascending":"descending":"none"),fe(g,1,`-mx-1 inline-flex cursor-pointer items-center gap-1 rounded-sm px-1 py-0.5 whitespace-nowrap hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none ${e(l)?"text-foreground":""}`),m(R,`${t.label??""} `)}),Ye("click",g,()=>t.onsort(Et(t.sort,t.column,t.firstDir))),r(A,f),ze()}Be(["click"]);var wr=n("<span></span>"),yr=n('<tr class="border-b border-hair last:border-0 hover:bg-accent/40"><td class="py-2.5 pr-3 pl-4"><a class="block truncate font-medium hover:underline focus-visible:underline focus-visible:outline-none"> </a></td><td class="hidden px-3 py-2.5 md:table-cell"><span class="block truncate text-sea"> </span> <!></td><td class="hidden px-3 py-2.5 sm:table-cell"><span class="flex min-w-0 items-center gap-2"><span class="flex shrink-0 items-center gap-0.5" aria-hidden="true"></span> <span> </span></span></td><td class="px-3 py-2.5"><span><span aria-hidden="true"></span><span class="truncate"> </span></span></td><td> </td><td class="tabular hidden truncate py-2.5 pr-4 pl-3 text-muted-foreground md:table-cell"> </td></tr>'),jr=n('<div class="overflow-hidden rounded-lg border bg-card"><table class="w-full table-fixed text-sm" data-task-table=""><thead class="border-b border-hair bg-panel text-xs text-muted-foreground"><tr></tr></thead><tbody></tbody></table></div>');function zr(A,t){je(t,!0);const _=i(()=>Yt(t.tasks,t.sort,t.projectName)),l=p=>Wt(p)?Ft(p):Gt(p),f=p=>p===null?null:new Date(p).toISOString(),g=[{key:"task",label:"Task"},{key:"project",label:"Project",class:"hidden w-[10%] md:table-cell"},{key:"stage",label:"Stage",class:"hidden w-[16%] sm:table-cell"},{key:"status",label:"Status",class:"w-[45%] sm:w-[19%]"},{key:"waiting",label:"Waiting on",class:"hidden w-[11%] lg:table-cell"},{key:"updated",label:"Updated",class:"hidden w-[12%] md:table-cell"}];var R=jr(),q=o(R),U=o(q),O=o(U);ke(O,21,()=>g,p=>p.key,(p,h)=>{kr(p,{get label(){return e(h).label},get column(){return e(h).key},get sort(){return t.sort},get firstDir(){return Qt[e(h).key]},get onsort(){return t.onsort},get class(){return e(h).class}})}),s(O),s(U);var x=a(U);ke(x,21,()=>e(_),p=>p.id,(p,h)=>{const D=i(()=>ft(e(h))),w=i(()=>e(h).passage.steps[e(h).passage.current]),v=i(()=>Bt(e(h))),z=i(()=>f(l(e(h))));var W=yr(),j=o(W),I=o(j),M=P(I,!0);s(j);var K=a(j),X=o(K),E=P(X,!0),L=a(X,2);Ge(L,{get task(){return e(h)}}),s(K);var H=a(K),Z=o(H),re=o(Z);ke(re,21,()=>e(h).passage.steps,ae=>ae.key,(ae,ee)=>{var u=wr();k(()=>fe(u,1,`size-1.5 rounded-full ${(e(ee).state==="current"?e(ee).failed?"bg-danger":dt[e(D)]:e(ee).state==="done"?"bg-foreground/45":"border border-border")??""}`)),r(ae,u)}),s(re);var le=a(re,2),te=P(le);s(Z),s(H);var V=a(H),B=o(V),$=o(B),ue=a($),F=P(ue,!0);s(B),s(V);var de=a(V),S=P(de,!0),N=a(de),J=P(N,!0);s(W),k((ae,ee,u,C)=>{y(I,"href",`/tasks/${ae??""}`),y(I,"title",e(h).title),m(M,e(h).shortTitle),m(E,ee),y(Z,"title",`Step ${e(h).passage.current+1} of ${e(h).passage.steps.length??""}`),fe(le,1,`truncate ${e(w)?.failed?"text-danger":""}`),m(te,`${e(w)?.label??""??""}${e(w)?.failed?" failed":""}`),fe(B,1,`flex min-w-0 items-center gap-1.5 ${Fe[e(D)]??""}`),fe($,1,`size-1.5 shrink-0 rounded-full ${dt[e(D)]??""}`),m(F,e(h).statusLabel),fe(de,1,`hidden truncate px-3 py-2.5 lg:table-cell ${e(v).who==="you"?"font-medium text-sea":"text-muted-foreground"}`),m(S,e(v).label),y(N,"title",u),m(J,C)},[()=>encodeURIComponent(e(h).id),()=>t.projectName(e(h)),()=>e(z)?new Date(e(z)).toLocaleString():void 0,()=>e(z)?lt(e(z),t.now):"—"]),r(p,W)}),s(x),s(q),s(R),k(()=>y(q,"aria-label",t.label)),r(A,R),ze()}var Cr=n('<button type="button"><!> </button>'),qr=n('<div class="flex rounded-md border bg-card p-0.5 text-sm" role="group"></div>');function Rr(A,t){je(t,!0);var _=qr();ke(_,21,()=>t.options,l=>l.value,(l,f)=>{var g=Cr(),R=o(g);ba(R,()=>e(f).icon,(U,O)=>{O(U,{class:"size-4"})});var q=a(R,1,!0);s(g),k(()=>{y(g,"aria-pressed",t.value===e(f).value),fe(g,1,`inline-flex cursor-pointer items-center gap-1.5 rounded-sm px-3 py-1.5 whitespace-nowrap transition-colors duration-150 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none ${t.value===e(f).value?"bg-primary font-medium text-primary-foreground":"text-muted-foreground hover:text-foreground"}`),m(q,e(f).label)}),Ye("click",g,()=>t.onchange(e(f).value)),r(l,g)}),s(_),k(()=>y(_,"aria-label",t.label)),r(A,_),ze()}Be(["click"]);var ot=n('<div class="grid"><!></div>'),Ir=n('<div class="grid gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"></div>'),Mr=n('<div class="grid gap-5 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4"></div>'),Lr=n('<div class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4"></div>'),Sr=n('<a role="tab"> </a>'),Nr=n('<section class="surface mt-6 p-5 sm:p-6"><!></section>'),Tr=n('<p class="surface mt-6 p-5 text-muted-foreground sm:p-6">Nothing completed in this project yet.</p>'),Pr=n('<section class="surface mt-6 p-5 sm:p-6" aria-labelledby="your-move"><h2 id="your-move" class="section-label mb-4 text-sea">Your move</h2> <!></section>'),Ar=n('<section class="surface mt-6 p-5 sm:p-6" aria-labelledby="with-firstmate"><h2 id="with-firstmate" class="section-label">Waiting on Firstmate</h2> <p class="mt-1 mb-4 text-sm text-muted-foreground">A worker raised a decision. Firstmate handles it first and brings it to you if it needs you.</p> <!></section>'),Or=n(`<section class="surface mt-6 p-5 sm:p-6" aria-labelledby="with-reviewers"><h2 id="with-reviewers" class="section-label">Waiting on reviewers</h2> <p class="mt-1 mb-4 text-sm text-muted-foreground">Pull requests that are green and waiting on other people's review or approval. Nothing for
3
3
  you to do until they review.</p> <!></section>`),Ur=n('<div class="min-w-0 rounded-xl border bg-card px-4 py-3" data-slot="harbour.card"><p class="mb-2 text-xs font-medium text-muted-foreground"> </p> <!></div>'),Wr=n('<div class="mb-8 grid gap-3 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4"></div>'),Fr=n('<h3 class="section-label mb-3">Under way <span class="tabular"> </span></h3> <!>',1),Dr=n('<a class="hover:text-foreground hover:underline"> </a> ',1),Vr=n('<p class="mt-4 text-sm text-muted-foreground">Queued next: <!></p>'),Hr=n('<p class="text-sm text-muted-foreground"> <a class="hover:text-foreground hover:underline">What it has completed</a></p>'),Er=n('<!> <!> <!> <section class="surface mt-6 p-5 sm:p-6" aria-label="Work"><!> <!> <!> <!></section>',1),Qr=n('<div class="flex flex-wrap items-center justify-between gap-3"><div class="flex rounded-md border bg-card p-0.5 text-sm max-sm:w-full" role="tablist" aria-label="Show"></div> <!></div> <!>',1);function Br(A,t){je(t,!0);const _=(I,M=it,K=it,X)=>{let E=St(()=>Nt(X?.(),"task"));var L=Pe(),H=ie(L);{var Z=V=>{zr(V,{get tasks(){return M()},projectName:R,get sort(){return e(p)},onsort:B=>Ae(p,B,!0),get now(){return Ie.now},get label(){return K()}})},re=V=>{var B=Ir();ke(B,29,M,$=>$.id,($,ue)=>{var F=ot(),de=o(F);pr(de,{get task(){return e(ue)},get projectName(){return t.projectName}}),s(F),$e(F,()=>nt,()=>({duration:at()?0:tt.panel})),Ne(1,F,()=>rt),Ne(2,F,()=>st),r($,F)}),s(B),r(V,B)},le=V=>{var B=Mr();ke(B,29,M,$=>$.id,($,ue)=>{var F=ot(),de=o(F);Za(de,{get task(){return e(ue)},projectName:null}),s(F),$e(F,()=>nt,()=>({duration:at()?0:tt.panel})),Ne(1,F,()=>rt),Ne(2,F,()=>st),r($,F)}),s(B),r(V,B)},te=V=>{var B=Lr();ke(B,29,M,$=>$.id,($,ue)=>{var F=ot(),de=o(F);mr(de,{get task(){return e(ue)},projectName:null}),s(F),$e(F,()=>nt,()=>({duration:at()?0:tt.panel})),Ne(1,F,()=>rt),Ne(2,F,()=>st),r($,F)}),s(B),r(V,B)};d(H,V=>{e(U)==="list"?V(Z):e(U)==="compact"?V(re,1):e(E)==="move"?V(le,2):V(te,-1)})}r(I,L)},l=i(()=>xt(t.tasks,"under-way")),f=i(()=>Dt(e(l),Ie.now)),g=i(()=>xt(t.tasks,"completed")),R=()=>t.projectName;let q=De(null);const U=i(()=>e(q)??t.layout),O=[{value:"large",label:"Large",icon:Ma},{value:"compact",label:"Compact",icon:ja},{value:"list",label:"List",icon:Ra}];function x(I){Ae(q,I,!0),La(Kt.harbour,I)}let p=De(Mt({key:"status",dir:"asc"}));var h=Qr(),D=ie(h),w=o(D);ke(w,20,()=>[["under-way","Under way"],["completed","Completed"]],([I,M])=>I,(I,M)=>{var K=i(()=>Lt(M,2));let X=()=>e(K)[0],E=()=>e(K)[1];var L=Sr(),H=P(L,!0);k(Z=>{y(L,"href",Z),y(L,"aria-selected",t.showing===X()),fe(L,1,`flex-1 rounded-sm px-3 py-1.5 text-center whitespace-nowrap ${t.showing===X()?"bg-primary font-medium text-primary-foreground":"text-muted-foreground hover:text-foreground"}`),m(H,E())},[()=>t.shelfHref(X())]),r(I,L)}),s(w);var v=a(w,2);Rr(v,{get options(){return O},get value(){return e(U)},onchange:x,label:"Layout"}),s(D);var z=a(D,2);{var W=I=>{var M=Pe(),K=ie(M);{var X=L=>{var H=Nr(),Z=o(H);_(Z,()=>e(g),()=>"Completed"),s(H),r(L,H)},E=L=>{var H=Tr();r(L,H)};d(K,L=>{e(g).length?L(X):t.collected&&L(E,1)})}r(I,M)},j=I=>{var M=Er(),K=ie(M);{var X=S=>{var N=Pr(),J=a(o(N),2);_(J,()=>e(f).needsYou,()=>"Your move",()=>"move"),s(N),r(S,N)};d(K,S=>{e(f).needsYou.length&&S(X)})}var E=a(K,2);{var L=S=>{var N=Ar(),J=a(o(N),4);_(J,()=>e(f).waitingOnFirstmate,()=>"Waiting on Firstmate"),s(N),r(S,N)};d(E,S=>{e(f).waitingOnFirstmate.length&&S(L)})}var H=a(E,2);{var Z=S=>{var N=Or(),J=a(o(N),4);_(J,()=>e(f).waitingOnReviewers,()=>"Waiting on reviewers"),s(N),r(S,N)};d(H,S=>{e(f).waitingOnReviewers.length&&S(Z)})}var re=a(H,2),le=o(re);{var te=S=>{var N=Wr();ke(N,21,()=>t.cards,J=>J.key,(J,ae)=>{var ee=Ur(),u=o(ee),C=P(u,!0),T=a(u,2);_a(T,{get entry(){return e(ae)},get now(){return Ie.now}}),s(ee),k(()=>m(C,e(ae).title)),r(J,ee)}),s(N),r(S,N)};d(le,S=>{t.cards.length&&S(te)})}var V=a(le,2);{var B=S=>{var N=Fr(),J=ie(N),ae=a(o(J)),ee=P(ae,!0);s(J);var u=a(J,2);_(u,()=>e(f).underWay,()=>"Under way"),k(()=>m(ee,e(f).underWay.length)),r(S,N)};d(V,S=>{e(f).underWay.length&&S(B)})}var $=a(V,2);{var ue=S=>{var N=Vr(),J=a(o(N));ke(J,19,()=>e(f).queued,ae=>ae.id,(ae,ee,u)=>{var C=Dr(),T=ie(C),Y=P(T,!0),ve=a(T,1,!0);k(Q=>{y(T,"href",`/tasks/${Q??""}`),m(Y,e(ee).shortTitle),m(ve,e(u)<e(f).queued.length-1?", ":".")},[()=>encodeURIComponent(e(ee).id)]),r(ae,C)}),s(N),r(S,N)};d($,S=>{e(f).queued.length&&S(ue)})}var F=a($,2);{var de=S=>{var N=Hr(),J=o(N),ae=a(J);s(N),k(ee=>{m(J,`${e(l).length||!t.collected?"Nothing else under way right now.":"Nothing under way in this project right now."} `),y(ae,"href",ee)},[()=>t.shelfHref("completed")]),r(S,N)};d(F,S=>{!e(f).underWay.length&&!e(f).queued.length&&S(de)})}s(re),r(I,M)};d(z,I=>{t.showing==="completed"?I(W):I(j,-1)})}r(A,h),ze()}var Yr=n('<p class="surface mt-6 p-5 text-muted-foreground sm:p-6"> <a href="/harbour" class="underline hover:text-foreground">Harbour</a>.</p>'),Gr=n('<div class="mt-6"><!></div>'),Kr=n('<main class="px-4 pt-6 pb-24 sm:px-6 lg:px-10"><!> <!></main>');function Is(A,t){je(t,!0);const _=i(()=>gt.params.id),l=i(()=>`/projects/${encodeURIComponent(e(_))}`),f=i(Ut),g=i(()=>e(f)?.projects.find(w=>w.id===e(_))??null),R=i(()=>(e(f)?.tasks??[]).filter(w=>w.projectId===e(_))),q=i(()=>_t.entries(ht.project(e(_)),t.data.slots,t.data.slotsAt));kt(()=>{Ie.revision,_t.refresh(ht.project(e(_)),t.data.slotsAt)});const U=i(()=>Vt(gt.url.searchParams.get("view")));var O=Kr();Ot("ffmenf",w=>{Tt(()=>{Pt.title=`${e(g)?.name??e(_)??""} · Harbour · Wheelhouse`})});var x=o(O);{let w=i(()=>e(q).filter(v=>v.slot==="project.tab"));Ht(x,{get id(){return e(_)},get project(){return e(g)},get tasks(){return e(R)},get tabs(){return e(w)},get repo(){return t.data.repo},current:"work",get now(){return Ie.now}})}var p=a(x,2);{var h=w=>{var v=Yr(),z=o(v);Le(2),s(v),k(()=>m(z,`Firstmate has no project called “${e(_)??""}”. Its projects are all on the `)),r(w,v)},D=w=>{var v=Gr(),z=o(v);{let W=i(()=>e(g)?.name??e(_)),j=i(()=>e(q).filter(M=>M.slot==="harbour.card")),I=i(()=>!!e(f)?.collectedAt);Br(z,{get tasks(){return e(R)},get projectName(){return e(W)},get cards(){return e(j)},get layout(){return t.data.layout},get showing(){return e(U)},shelfHref:M=>M==="completed"?`${e(l)}?view=completed`:e(l),get collected(){return e(I)}})}s(v),r(w,v)};d(p,w=>{e(f)?.collectedAt&&!e(g)?w(h):w(D,-1)})}s(O),r(A,O),ze()}export{Is as component};
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{p as S,u as B,a as c,b as C,e as F,g as t,c as p,i as a,h as _,$ as K,s as W,r as x,t as b,o as q,d as z}from"../chunks/DFFTcnMk.js";import{i as D}from"../chunks/fxwDaXQ6.js";import{h as E,s as G}from"../chunks/VI4uBLfk.js";import{p as m}from"../chunks/AiTV8eMU.js";import{l as f,c as j}from"../chunks/BNXbHZ4s.js";import{s as y,a as k}from"../chunks/nShh0HJ4.js";import{P as H}from"../chunks/DxQ9r3ah.js";import{S as J}from"../chunks/D6cF08T_.js";var L=p('<section class="flex min-h-0 flex-1 flex-col" data-slot="project.tab"><!></section>'),M=p('<p class="surface mx-4 my-6 max-w-3xl p-6 text-muted-foreground sm:mx-6"> </p>'),N=p('<main class="flex min-h-0 flex-1 flex-col"><!> <!></main>');function tt(w,n){S(n,!0);const o=a(()=>m.params.id),u=a(()=>`${m.params.plugin}/${m.params.tab}`),d=a(()=>j()?.projects.find(e=>e.id===t(o))),g=a(()=>t(d)?.name??t(o)),$=a(()=>(j()?.tasks??[]).filter(e=>e.projectId===t(o))),v=a(()=>y.entries(k.project(t(o)),n.data.slots,n.data.slotsAt).filter(e=>e.slot==="project.tab")),s=a(()=>t(v).find(e=>`${e.pluginId}/${e.contributionId}`===t(u))??null);B(()=>{f.revision,y.refresh(k.project(t(o)),n.data.slotsAt)});var i=N();E("1yre5fd",e=>{F(()=>{K.title=`${t(s)?`${t(s).title} · `:""}${t(g)??""} · Wheelhouse`})});var h=_(i);{let e=a(()=>t(d)??null),r=a(()=>t(s)?.key??"");H(h,{get id(){return t(o)},get project(){return t(e)},get tasks(){return t($)},get tabs(){return t(v)},get repo(){return n.data.repo},get current(){return t(r)},get now(){return f.now},compact:!0})}var I=W(h,2);{var A=e=>{var r=L(),l=_(r);J(l,{get entry(){return t(s)},get now(){return f.now},fill:!0}),x(r),b(()=>G(r,"aria-label",t(s).title)),c(e,r)},P=e=>{var r=M(),l=q(r);b(()=>z(l,`${t(g)??""} has no “${t(u)??""}” view. It may belong to a plugin that is off for this project.`)),c(e,r)};D(I,e=>{t(s)?e(A):e(P,-1)})}x(i),c(w,i),C()}export{tt as component};
1
+ import"../chunks/DsnmJJEf.js";import{p as S,u as B,a as c,b as C,e as F,g as t,c as p,i as a,h as _,$ as K,s as W,r as x,t as b,o as q,d as z}from"../chunks/DFFTcnMk.js";import{i as D}from"../chunks/fxwDaXQ6.js";import{h as E,s as G}from"../chunks/VI4uBLfk.js";import{p as m}from"../chunks/Mzyfuo21.js";import{l as f,c as j}from"../chunks/BEc8oFj4.js";import{s as y,a as k}from"../chunks/nShh0HJ4.js";import{P as H}from"../chunks/DxQ9r3ah.js";import{S as J}from"../chunks/BSRqsJCa.js";var L=p('<section class="flex min-h-0 flex-1 flex-col" data-slot="project.tab"><!></section>'),M=p('<p class="surface mx-4 my-6 max-w-3xl p-6 text-muted-foreground sm:mx-6"> </p>'),N=p('<main class="flex min-h-0 flex-1 flex-col"><!> <!></main>');function tt(w,n){S(n,!0);const o=a(()=>m.params.id),u=a(()=>`${m.params.plugin}/${m.params.tab}`),d=a(()=>j()?.projects.find(e=>e.id===t(o))),g=a(()=>t(d)?.name??t(o)),$=a(()=>(j()?.tasks??[]).filter(e=>e.projectId===t(o))),v=a(()=>y.entries(k.project(t(o)),n.data.slots,n.data.slotsAt).filter(e=>e.slot==="project.tab")),s=a(()=>t(v).find(e=>`${e.pluginId}/${e.contributionId}`===t(u))??null);B(()=>{f.revision,y.refresh(k.project(t(o)),n.data.slotsAt)});var i=N();E("1yre5fd",e=>{F(()=>{K.title=`${t(s)?`${t(s).title} · `:""}${t(g)??""} · Wheelhouse`})});var h=_(i);{let e=a(()=>t(d)??null),r=a(()=>t(s)?.key??"");H(h,{get id(){return t(o)},get project(){return t(e)},get tasks(){return t($)},get tabs(){return t(v)},get repo(){return n.data.repo},get current(){return t(r)},get now(){return f.now},compact:!0})}var I=W(h,2);{var A=e=>{var r=L(),l=_(r);J(l,{get entry(){return t(s)},get now(){return f.now},fill:!0}),x(r),b(()=>G(r,"aria-label",t(s).title)),c(e,r)},P=e=>{var r=M(),l=q(r);b(()=>z(l,`${t(g)??""} has no “${t(u)??""}” view. It may belong to a plugin that is off for this project.`)),c(e,r)};D(I,e=>{t(s)?e(A):e(P,-1)})}x(i),c(w,i),C()}export{tt as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{p as ot,u as nt,a as i,b as it,e as lt,g as e,c as h,i as R,h as d,$ as dt,s as t,r,m as _e,o as v,t as w,d as s,f as ie,n as H,w as re,v as se}from"../chunks/DFFTcnMk.js";import{i as k}from"../chunks/fxwDaXQ6.js";import{h as ct,e as Y,s as J,a as le,i as vt}from"../chunks/VI4uBLfk.js";import{p as Ce}from"../chunks/AiTV8eMU.js";import{i as mt}from"../chunks/D85QHpKq.js";import{l as de,c as Pe}from"../chunks/BNXbHZ4s.js";import{s as We,a as ze}from"../chunks/nShh0HJ4.js";import{P as pt}from"../chunks/DxQ9r3ah.js";import{S as ut}from"../chunks/BXN538J3.js";import{a as xe}from"../chunks/DKQe4Tss.js";import{B as ae}from"../chunks/I9e8Fl7s.js";import{s as ht}from"../chunks/D7IP_ZEm.js";import{s as Le,r as Re}from"../chunks/DtxmqMMR.js";import{I as Be}from"../chunks/CDH1GGn5.js";import{C as ft}from"../chunks/CLfYICcI.js";import{S as _t}from"../chunks/Ort8Hmz8.js";import{S as xt}from"../chunks/B94WFLDK.js";var gt=new Set(["$$slots","$$events","$$legacy"]);function bt(oe,B){let V=Re(B,gt);const D={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"m5 16-3 3 3 3"}],["path",{d:"m9 22 3-3-3-3"}]],aliases:["file-code-2"]};Be(oe,Le(()=>V,{get icon(){return D}}))}var wt=new Set(["$$slots","$$events","$$legacy"]);function $t(oe,B){let V=Re(B,wt);const D={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8"}],["path",{d:"m15 5 4 4"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}]]};Be(oe,Le(()=>V,{get icon(){return D}}))}var kt=h('<p class="text-muted-foreground"> </p>'),yt=h("<!>Edit passage",1),jt=h(`<p class="mt-2 text-sm text-warning" data-pending="">An edited version is saved in the project’s clone but is not on the default branch
1
+ import"../chunks/DsnmJJEf.js";import{p as ot,u as nt,a as i,b as it,e as lt,g as e,c as h,i as R,h as d,$ as dt,s as t,r,m as _e,o as v,t as w,d as s,f as ie,n as H,w as re,v as se}from"../chunks/DFFTcnMk.js";import{i as k}from"../chunks/fxwDaXQ6.js";import{h as ct,e as Y,s as J,a as le,i as vt}from"../chunks/VI4uBLfk.js";import{p as Ce}from"../chunks/Mzyfuo21.js";import{i as mt}from"../chunks/DCmP9xcb.js";import{l as de,c as Pe}from"../chunks/BEc8oFj4.js";import{s as We,a as ze}from"../chunks/nShh0HJ4.js";import{P as pt}from"../chunks/DxQ9r3ah.js";import{S as ut}from"../chunks/BXN538J3.js";import{a as xe}from"../chunks/DKQe4Tss.js";import{B as ae}from"../chunks/I9e8Fl7s.js";import{s as ht}from"../chunks/D7IP_ZEm.js";import{s as Le,r as Re}from"../chunks/DtxmqMMR.js";import{I as Be}from"../chunks/CDH1GGn5.js";import{C as ft}from"../chunks/CLfYICcI.js";import{S as _t}from"../chunks/Ort8Hmz8.js";import{S as xt}from"../chunks/B94WFLDK.js";var gt=new Set(["$$slots","$$events","$$legacy"]);function bt(oe,B){let V=Re(B,gt);const D={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"m5 16-3 3 3 3"}],["path",{d:"m9 22 3-3-3-3"}]],aliases:["file-code-2"]};Be(oe,Le(()=>V,{get icon(){return D}}))}var wt=new Set(["$$slots","$$events","$$legacy"]);function $t(oe,B){let V=Re(B,wt);const D={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8"}],["path",{d:"m15 5 4 4"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}]]};Be(oe,Le(()=>V,{get icon(){return D}}))}var kt=h('<p class="text-muted-foreground"> </p>'),yt=h("<!>Edit passage",1),jt=h(`<p class="mt-2 text-sm text-warning" data-pending="">An edited version is saved in the project’s clone but is not on the default branch
2
2
  yet, so this one is still in use.</p> <div class="mt-2 flex flex-wrap gap-2"><!> <!></div>`,1),At=h('<li class="flex gap-2"><!><span class="min-w-0 font-mono text-xs leading-5 break-words"> </span></li>'),St=h('<ul class="mt-3 space-y-1 text-sm text-danger"></ul> <p class="mt-2 text-xs text-muted-foreground">This file is left out until it is fixed; the passage uses the layers below it.</p>',1),Ct=h('<li class="rounded-xl border p-4"><div class="flex flex-wrap items-baseline gap-x-3 gap-y-1"><!> <span class="font-medium"> </span> <span> </span></div> <p class="mt-1 font-mono text-xs break-all text-muted-foreground"> </p> <!> <!></li>'),Pt=h("<li> </li>"),Wt=h('<ul class="mt-3 space-y-1 text-sm text-muted-foreground"></ul>'),zt=h('<li><span class="font-mono text-xs"> </span> </li>'),Te=h('<p class="mt-3 text-sm text-danger"> </p>'),Ie=h('<div class="mt-4 flex gap-2"><!></div>'),Ee=h('<p class="mt-2 text-sm text-danger" role="alert"> </p>'),Tt=h(`<section aria-labelledby="consent"><h2 id="consent"><!> </h2> <p class="mt-2 text-sm leading-relaxed"> </p> <ul class="mt-2 list-disc space-y-1 pl-5 text-sm"></ul> <p class="mt-2 text-xs text-muted-foreground">These network checks only observe; they never deploy or change anything. This version of
3
3
  the file has sha256 <span class="font-mono"> </span> </p> <!> <!></section>`),It=h('<li class="rounded-lg border bg-card p-3 text-sm"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <pre class="mt-2 overflow-x-auto rounded-md bg-terminal px-3 py-2 font-mono text-xs text-terminal-foreground"> </pre> <p class="mt-2 text-xs text-muted-foreground"> </p></li>'),Et=h('<section aria-labelledby="commands"><h2 id="commands"><!> </h2> <p class="mt-2 text-sm leading-relaxed"> </p> <ul class="mt-3 space-y-3"></ul> <p class="mt-3 text-xs text-muted-foreground"> </p> <!> <!></section>'),Lt=h('<div class="flex gap-2"><dt class="w-20 shrink-0 text-muted-foreground">Reached</dt> <dd class="min-w-0 break-words"> </dd></div>'),Rt=h('<div class="flex gap-2"><dt class="w-20 shrink-0 text-muted-foreground">Failed</dt> <dd class="min-w-0 break-words"> </dd></div>'),Bt=h('<div class="flex gap-2"><dt class="w-20 shrink-0 text-muted-foreground">Skipped</dt> <dd class="min-w-0 break-words"> </dd></div>'),Ut=h('<div class="flex gap-2"><dt class="w-20 shrink-0 text-muted-foreground">Shows</dt> <dd class="min-w-0 break-words"> </dd></div>'),Mt=h('<div class="flex gap-2"><dt class="w-20 shrink-0 text-muted-foreground">Link</dt> <dd class="min-w-0"> </dd></div>'),Ot=h('<div class="flex gap-2"><dt class="w-20 shrink-0 text-muted-foreground">Gives up</dt> <dd> </dd></div>'),Dt=h('<p class="pt-1 text-muted-foreground"> </p>'),Ft=h('<details class="pt-1 text-muted-foreground"><summary class="cursor-pointer">Rule as written</summary> <p class="mt-1 font-mono break-words"> </p></details>'),Gt=h('<li class="grid gap-x-6 gap-y-1 px-4 py-3 text-sm md:grid-cols-[12rem_minmax(0,1fr)]"><div class="min-w-0"><p class="font-medium"><span class="tabular mr-1 text-muted-foreground"> </span> </p> <p class="text-xs text-muted-foreground"> </p></div> <dl class="min-w-0 space-y-0.5 text-xs"><!> <!> <!> <!> <!> <!> <!> <!></dl></li>'),Nt=h('<li class="grid gap-x-6 gap-y-1 px-4 py-3 text-sm md:grid-cols-[12rem_minmax(0,1fr)]"><div class="min-w-0"><p class="font-medium"> </p> <p class="text-xs text-muted-foreground"> </p></div> <div class="min-w-0 text-xs"><p><span class="font-mono"> </span> </p> <p class="mt-0.5 text-muted-foreground"> </p></div></li>'),qt=h('<h3 class="mt-6 text-xs font-medium text-muted-foreground">Checks</h3> <ul class="mt-2 divide-y rounded-xl border"></ul>',1),Ht=h('<section class="mt-12"><h2 class="text-sm font-medium"> <span class="font-normal text-muted-foreground"> </span></h2> <ol class="mt-3 divide-y rounded-xl border"></ol> <!></section>'),Kt=h(`<div class="max-w-3xl"><p class="text-sm text-muted-foreground"> </p> <div class="mt-1 flex flex-wrap items-center gap-x-4 gap-y-2"><h1 class="text-2xl font-semibold tracking-tight">Passage</h1> <!></div> <p class="mt-2 leading-relaxed text-muted-foreground">The steps this project’s tasks pass through, and the checks that observe them. Wheelhouse
4
4
  starts from its built-in passage, then layers the project’s <code class="font-mono text-sm">.wheelhouse.yaml</code> from its default branch (never a task branch), then your own Wheelhouse config.</p></div> <section class="mt-10 max-w-3xl" aria-labelledby="files"><h2 id="files" class="text-sm font-medium">Passage files</h2> <ul class="mt-3 space-y-3"></ul> <!></section> <!> <!> <!> <p class="mt-10 max-w-3xl text-xs text-muted-foreground">See Wheelhouse’s <a class="underline underline-offset-2 hover:text-foreground" href="https://github.com/chrisjowen/wheelhouse/blob/main/docs/passages.md" target="_blank" rel="noreferrer">Passage files guide</a> for the format.</p>`,1),Yt=h('<main class="px-4 pt-6 pb-24 sm:px-6 lg:px-10"><!> <div class="surface mt-6 px-5 py-6 sm:px-8 sm:py-8"><!></div></main>');function pa(oe,B){ot(B,!0);let V=_e(null),D=_e(!1),Q=_e(null);const U=R(()=>Ce.params.id),$=R(()=>e(V)?.projectId===e(U)?e(V):B.data.view),ge=R(()=>Pe()?.projects.find(P=>P.id===e(U))),pe=R(()=>e(ge)?.name??e(U)),Ue=R(()=>(Pe()?.tasks??[]).filter(P=>P.projectId===e(U))),Me=R(()=>We.entries(ze.project(e(U)),B.data.slots,B.data.slotsAt).filter(P=>P.slot==="project.tab"));nt(()=>{de.revision,We.refresh(ze.project(e(U)),B.data.slotsAt)});const ce={builtin:"Built-in",project:"Project file",captain:"Your config"},Oe={absent:"Not present",applied:"In use",invalid:"Left out: has errors",unreadable:"Could not be read"},De={ship:"Ship work",scout:"Scout work"};async function ve(P,X="consent"){se(D,!0),se(Q,null);try{const F=await fetch(`/api/projects/${encodeURIComponent(e(U))}/passage/${X}`,{method:"POST",headers:{"content-type":"application/json",[ut]:Ce.data.sessionToken},body:JSON.stringify({digest:P})}),Z=await F.json().catch(()=>null);F.ok&&Z?.schema==="wheelhouse-passage.v1"?se(V,Z,!0):(se(Q,typeof Z?.message=="string"?Z.message:`Wheelhouse answered ${F.status}.`,!0),F.status===409&&await mt())}catch{se(Q,"Could not reach the Wheelhouse server.")}finally{se(D,!1)}}var ue=Yt();ct("1j5yzgw",P=>{lt(()=>{dt.title=`${e(pe)??""} passage · Wheelhouse`})});var be=d(ue);{let P=R(()=>e(ge)??null);pt(be,{get id(){return e(U)},get project(){return e(P)},get tasks(){return e(Ue)},get tabs(){return e(Me)},get repo(){return B.data.repo},current:"passage",get now(){return de.now}})}var we=t(be,2),Fe=d(we);{var Ge=P=>{var X=kt(),F=v(X,!0);w(()=>s(F,B.data.problem??"Loading…")),i(P,X)},Ne=P=>{var X=Kt(),F=ie(X),Z=d(F),qe=v(Z),$e=t(Z,2),He=t(d($e),2);{var Ke=g=>{{let a=R(()=>encodeURIComponent(e(U)));ae(g,{variant:"outline",size:"sm",get href(){return`/projects/${e(a)??""}/passage/edit`},children:(f,y)=>{var W=yt(),L=ie(W);$t(L,{"aria-hidden":"true"}),H(),i(f,W)},$$slots:{default:!0}})}};k(He,g=>{e(U)!=="unassigned"&&g(Ke)})}r($e),H(2),r(F);var he=t(F,2),fe=t(d(he),2);Y(fe,21,()=>e($).sources,g=>g.kind,(g,a)=>{var f=Ct(),y=d(f),W=d(y);bt(W,{class:"size-4 self-center text-muted-foreground","aria-hidden":"true"});var L=t(W,2),K=v(L,!0),G=t(L,2),M=v(G,!0);r(y);var O=t(y,2),C=v(O,!0),o=t(O,2);{var N=A=>{var m=jt(),l=t(ie(m),2),n=d(l);{let _=R(()=>encodeURIComponent(ht(e(pe))));ae(n,{variant:"outline",size:"sm",get href(){return`/?draft=${e(_)??""}`},children:(x,S)=>{H();var b=re("Ask Firstmate to ship it");i(x,b)},$$slots:{default:!0}})}var p=t(n,2);{let _=R(()=>encodeURIComponent(e(U)));ae(p,{variant:"ghost",size:"sm",get href(){return`/projects/${e(_)??""}/passage/edit`},children:(x,S)=>{H();var b=re("Open the editor");i(x,b)},$$slots:{default:!0}})}r(l),i(A,m)};k(o,A=>{e(a).pending&&A(N)})}var z=t(o,2);{var j=A=>{var m=St(),l=ie(m);Y(l,21,()=>e(a).errors,vt,(n,p)=>{var _=At(),x=d(_);ft(x,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"});var S=t(x),b=v(S,!0);r(_),w(()=>s(b,e(p))),i(n,_)}),r(l),H(2),i(A,m)};k(z,A=>{e(a).errors.length&&A(j)})}r(f),w(()=>{J(f,"data-source",e(a).kind),J(f,"data-state",e(a).state),s(K,e(a).kind==="project"?"Project file":"Your config"),le(G,1,`text-sm ${e(a).state==="applied"?"text-success":e(a).state==="absent"?"text-muted-foreground":"text-danger"}`),s(M,Oe[e(a).state]),s(C,e(a).location)}),i(g,f)}),r(fe);var Ye=t(fe,2);{var Je=g=>{var a=Wt();Y(a,20,()=>e($).notes,f=>f,(f,y)=>{var W=Pt(),L=v(W,!0);w(()=>s(L,y)),i(f,W)}),r(a),i(g,a)};k(Ye,g=>{e($).notes.length&&g(Je)})}r(he);var ke=t(he,2);{var Ve=g=>{const a=R(()=>e($).passages.flatMap(n=>n.checks.filter(p=>p.origin==="project"&&p.network)));var f=Tt(),y=d(f),W=d(y);_t(W,{class:"size-4","aria-hidden":"true"});var L=t(W);r(y);var K=t(y,2),G=v(K),M=t(K,2);Y(M,21,()=>e(a),n=>n.id,(n,p)=>{var _=zt(),x=d(_),S=v(x,!0),b=t(x);r(_),w(()=>{s(S,e(p).type),s(b,` ${e(p).params??""}`)}),i(n,_)}),r(M);var O=t(M,2),C=t(d(O)),o=v(C,!0),N=t(C);r(O);var z=t(O,2);{var j=n=>{var p=Te(),_=v(p,!0);w(()=>s(_,e($).consent.unavailable)),i(n,p)},A=n=>{var p=Ie(),_=d(p);{var x=b=>{ae(b,{variant:"outline",size:"sm",get disabled(){return e(D)},onclick:()=>ve(null),children:(I,ee)=>{H();var q=re("Turn these checks off");i(I,q)},$$slots:{default:!0}})},S=b=>{ae(b,{size:"sm",get disabled(){return e(D)},onclick:()=>ve(e($).consent.digest),children:(I,ee)=>{H();var q=re("Enable these checks");i(I,q)},$$slots:{default:!0}})};k(_,b=>{e($).consent.enabled?b(x):b(S,-1)})}r(p),i(n,p)};k(z,n=>{e($).consent.unavailable?n(j):n(A,-1)})}var m=t(z,2);{var l=n=>{var p=Ee(),_=v(p,!0);w(()=>s(_,e(Q))),i(n,p)};k(m,n=>{e(Q)&&n(l)})}r(f),w((n,p)=>{le(f,1,`mt-8 max-w-3xl rounded-xl p-4 ${e($).consent.enabled?"border":"bg-sea/10"}`),le(y,1,`flex items-center gap-2 text-sm font-medium ${e($).consent.enabled?"":"text-sea"}`),s(L,` ${e($).consent.enabled?"The project file’s checks are on":"The project file’s network checks are off"}`),s(G,`The project file asks Wheelhouse to read ${e(a).length===1?"this":`these ${e(a).length}`} from the network, with your GitHub CLI login where it reads
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{l as Pt,p as Dt,h as O,s as m,o as U,r as x,t as B,g as o,a as y,d as M,y as we,b as Kt,aa as yr,i as j,n as We,f as Ee,c as w,bF as $s,u as Bs,v as ae,x as br,m as $e,w as Mt,ab as _r,q as wr,j as mn,e as kr,$ as xr}from"../chunks/DFFTcnMk.js";import{i as G}from"../chunks/fxwDaXQ6.js";import{X as On,k as gn}from"../chunks/szetP8fm.js";import{r as mt,a as Ae,f as Ze,e as Be,s as ge,b as ht,j as bt,n as $t,i as gs,c as Sr,k as mi,h as Nr}from"../chunks/VI4uBLfk.js";import{b as Ar,g as Or}from"../chunks/D85QHpKq.js";import{p as Ps}from"../chunks/AiTV8eMU.js";import{c as Tr}from"../chunks/BNXbHZ4s.js";import{c as Ir,a as Er}from"../chunks/DJKfepuw.js";import{S as Xn}from"../chunks/gg0JPMuv.js";import{B as et}from"../chunks/I9e8Fl7s.js";import{S as vn}from"../chunks/BXN538J3.js";import{C as vs,a as Cr,b as Lr,E as jr,F as Mr,O as $r,o as Br,s as Pr}from"../chunks/D7IP_ZEm.js";import{s as Tn,r as In,p as zt}from"../chunks/DtxmqMMR.js";import{A as gi}from"../chunks/BJWAtCK7.js";import{S as Dr}from"../chunks/B94WFLDK.js";import{I as En}from"../chunks/CDH1GGn5.js";import{b as Kr}from"../chunks/C_YTgp31.js";import{P as Cn}from"../chunks/CH2k9UCp.js";import{A as vi}from"../chunks/ChgpVwh1.js";import{A as yi}from"../chunks/Dz3EKdv5.js";import{P as Rr}from"../chunks/ByKcapt5.js";import{C as bi}from"../chunks/CLfYICcI.js";import{C as Fr}from"../chunks/D1KdArBH.js";import{C as qr}from"../chunks/DNnBMzUq.js";import{M as Ur}from"../chunks/BFckJ-Hh.js";import{C as Wr}from"../chunks/BbYnBq6K.js";import{C as Vr}from"../chunks/Cutrp4Ad.js";var Jr=new Set(["$$slots","$$events","$$legacy"]);function Yr(n,e){let t=In(e,Jr);const s={name:"flask-conical",size:24,node:[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"}],["path",{d:"M6.453 15h11.094"}],["path",{d:"M8.5 2h7"}]]};En(n,Tn(()=>t,{get icon(){return s}}))}var zr=new Set(["$$slots","$$events","$$legacy"]);function Gr(n,e){let t=In(e,zr);const s={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]]};En(n,Tn(()=>t,{get icon(){return s}}))}var Hr=new Set(["$$slots","$$events","$$legacy"]);function _i(n,e){let t=In(e,Hr);const s={name:"trash",size:24,node:[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],aliases:["trash-2"]};En(n,Tn(()=>t,{get icon(){return s}}))}const Ln=Symbol.for("yaml.alias"),yn=Symbol.for("yaml.document"),At=Symbol.for("yaml.map"),wi=Symbol.for("yaml.pair"),gt=Symbol.for("yaml.scalar"),es=Symbol.for("yaml.seq"),ut=Symbol.for("yaml.node.type"),ts=n=>!!n&&typeof n=="object"&&n[ut]===Ln,Fs=n=>!!n&&typeof n=="object"&&n[ut]===yn,rt=n=>!!n&&typeof n=="object"&&n[ut]===At,Ke=n=>!!n&&typeof n=="object"&&n[ut]===wi,xe=n=>!!n&&typeof n=="object"&&n[ut]===gt,wt=n=>!!n&&typeof n=="object"&&n[ut]===es;function Pe(n){if(n&&typeof n=="object")switch(n[ut]){case At:case es:return!0}return!1}function De(n){if(n&&typeof n=="object")switch(n[ut]){case Ln:case At:case gt:case es:return!0}return!1}const ki=n=>(xe(n)||Pe(n))&&!!n.anchor,Ct=Symbol("break visit"),Qr=Symbol("skip children"),hs=Symbol("remove node");function Rt(n,e){const t=Xr(e);Fs(n)?Vt(null,n.contents,t,Object.freeze([n]))===hs&&(n.contents=null):Vt(null,n,t,Object.freeze([]))}Rt.BREAK=Ct;Rt.SKIP=Qr;Rt.REMOVE=hs;function Vt(n,e,t,s){const i=Zr(n,e,t,s);if(De(i)||Ke(i))return ea(n,s,i),Vt(n,i,t,s);if(typeof i!="symbol"){if(Pe(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){const a=Vt(r,e.items[r],t,s);if(typeof a=="number")r=a-1;else{if(a===Ct)return Ct;a===hs&&(e.items.splice(r,1),r-=1)}}}else if(Ke(e)){s=Object.freeze(s.concat(e));const r=Vt("key",e.key,t,s);if(r===Ct)return Ct;r===hs&&(e.key=null);const a=Vt("value",e.value,t,s);if(a===Ct)return Ct;a===hs&&(e.value=null)}}return i}function Xr(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function Zr(n,e,t,s){if(typeof t=="function")return t(n,e,s);if(rt(e))return t.Map?.(n,e,s);if(wt(e))return t.Seq?.(n,e,s);if(Ke(e))return t.Pair?.(n,e,s);if(xe(e))return t.Scalar?.(n,e,s);if(ts(e))return t.Alias?.(n,e,s)}function ea(n,e,t){const s=e[e.length-1];if(Pe(s))s.items[n]=t;else if(Ke(s))n==="key"?s.key=t:s.value=t;else if(Fs(s))s.contents=t;else{const i=ts(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const ta={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},sa=n=>n.replace(/[!,[\]{}]/g,e=>ta[e]);class Ge{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ge.defaultYaml,e),this.tags=Object.assign({},Ge.defaultTags,t)}clone(){const e=new Ge(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Ge(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ge.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ge.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Ge.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ge.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),i=s.shift();switch(i){case"%TAG":{if(s.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[r,a]=s;return this.tags[r]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=s;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const a=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,a),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const a=e.slice(2,-1);return a==="!"||a==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),a)}const[,s,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);const r=this.tags[s];if(r)try{return r+decodeURIComponent(i)}catch(a){return t(String(a)),null}return s==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+sa(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let i;if(e&&s.length>0&&De(e.contents)){const r={};Rt(e.contents,(a,l)=>{De(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,a]of s)r==="!!"&&a==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(a)))&&t.push(`%TAG ${r} ${a}`);return t.join(`
1
+ import"../chunks/DsnmJJEf.js";import{l as Pt,p as Dt,h as O,s as m,o as U,r as x,t as B,g as o,a as y,d as M,y as we,b as Kt,aa as yr,i as j,n as We,f as Ee,c as w,bF as $s,u as Bs,v as ae,x as br,m as $e,w as Mt,ab as _r,q as wr,j as mn,e as kr,$ as xr}from"../chunks/DFFTcnMk.js";import{i as G}from"../chunks/fxwDaXQ6.js";import{X as On,k as gn}from"../chunks/szetP8fm.js";import{r as mt,a as Ae,f as Ze,e as Be,s as ge,b as ht,j as bt,n as $t,i as gs,c as Sr,k as mi,h as Nr}from"../chunks/VI4uBLfk.js";import{b as Ar,g as Or}from"../chunks/DCmP9xcb.js";import{p as Ps}from"../chunks/Mzyfuo21.js";import{c as Tr}from"../chunks/BEc8oFj4.js";import{c as Ir,a as Er}from"../chunks/DJKfepuw.js";import{S as Xn}from"../chunks/gg0JPMuv.js";import{B as et}from"../chunks/I9e8Fl7s.js";import{S as vn}from"../chunks/BXN538J3.js";import{C as vs,a as Cr,b as Lr,E as jr,F as Mr,O as $r,o as Br,s as Pr}from"../chunks/D7IP_ZEm.js";import{s as Tn,r as In,p as zt}from"../chunks/DtxmqMMR.js";import{A as gi}from"../chunks/BJWAtCK7.js";import{S as Dr}from"../chunks/B94WFLDK.js";import{I as En}from"../chunks/CDH1GGn5.js";import{b as Kr}from"../chunks/C_YTgp31.js";import{P as Cn}from"../chunks/CH2k9UCp.js";import{A as vi}from"../chunks/ChgpVwh1.js";import{A as yi}from"../chunks/Dz3EKdv5.js";import{P as Rr}from"../chunks/ByKcapt5.js";import{C as bi}from"../chunks/CLfYICcI.js";import{C as Fr}from"../chunks/D1KdArBH.js";import{C as qr}from"../chunks/DNnBMzUq.js";import{M as Ur}from"../chunks/BFckJ-Hh.js";import{C as Wr}from"../chunks/BbYnBq6K.js";import{C as Vr}from"../chunks/Cutrp4Ad.js";var Jr=new Set(["$$slots","$$events","$$legacy"]);function Yr(n,e){let t=In(e,Jr);const s={name:"flask-conical",size:24,node:[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"}],["path",{d:"M6.453 15h11.094"}],["path",{d:"M8.5 2h7"}]]};En(n,Tn(()=>t,{get icon(){return s}}))}var zr=new Set(["$$slots","$$events","$$legacy"]);function Gr(n,e){let t=In(e,zr);const s={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]]};En(n,Tn(()=>t,{get icon(){return s}}))}var Hr=new Set(["$$slots","$$events","$$legacy"]);function _i(n,e){let t=In(e,Hr);const s={name:"trash",size:24,node:[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],aliases:["trash-2"]};En(n,Tn(()=>t,{get icon(){return s}}))}const Ln=Symbol.for("yaml.alias"),yn=Symbol.for("yaml.document"),At=Symbol.for("yaml.map"),wi=Symbol.for("yaml.pair"),gt=Symbol.for("yaml.scalar"),es=Symbol.for("yaml.seq"),ut=Symbol.for("yaml.node.type"),ts=n=>!!n&&typeof n=="object"&&n[ut]===Ln,Fs=n=>!!n&&typeof n=="object"&&n[ut]===yn,rt=n=>!!n&&typeof n=="object"&&n[ut]===At,Ke=n=>!!n&&typeof n=="object"&&n[ut]===wi,xe=n=>!!n&&typeof n=="object"&&n[ut]===gt,wt=n=>!!n&&typeof n=="object"&&n[ut]===es;function Pe(n){if(n&&typeof n=="object")switch(n[ut]){case At:case es:return!0}return!1}function De(n){if(n&&typeof n=="object")switch(n[ut]){case Ln:case At:case gt:case es:return!0}return!1}const ki=n=>(xe(n)||Pe(n))&&!!n.anchor,Ct=Symbol("break visit"),Qr=Symbol("skip children"),hs=Symbol("remove node");function Rt(n,e){const t=Xr(e);Fs(n)?Vt(null,n.contents,t,Object.freeze([n]))===hs&&(n.contents=null):Vt(null,n,t,Object.freeze([]))}Rt.BREAK=Ct;Rt.SKIP=Qr;Rt.REMOVE=hs;function Vt(n,e,t,s){const i=Zr(n,e,t,s);if(De(i)||Ke(i))return ea(n,s,i),Vt(n,i,t,s);if(typeof i!="symbol"){if(Pe(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){const a=Vt(r,e.items[r],t,s);if(typeof a=="number")r=a-1;else{if(a===Ct)return Ct;a===hs&&(e.items.splice(r,1),r-=1)}}}else if(Ke(e)){s=Object.freeze(s.concat(e));const r=Vt("key",e.key,t,s);if(r===Ct)return Ct;r===hs&&(e.key=null);const a=Vt("value",e.value,t,s);if(a===Ct)return Ct;a===hs&&(e.value=null)}}return i}function Xr(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function Zr(n,e,t,s){if(typeof t=="function")return t(n,e,s);if(rt(e))return t.Map?.(n,e,s);if(wt(e))return t.Seq?.(n,e,s);if(Ke(e))return t.Pair?.(n,e,s);if(xe(e))return t.Scalar?.(n,e,s);if(ts(e))return t.Alias?.(n,e,s)}function ea(n,e,t){const s=e[e.length-1];if(Pe(s))s.items[n]=t;else if(Ke(s))n==="key"?s.key=t:s.value=t;else if(Fs(s))s.contents=t;else{const i=ts(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const ta={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},sa=n=>n.replace(/[!,[\]{}]/g,e=>ta[e]);class Ge{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ge.defaultYaml,e),this.tags=Object.assign({},Ge.defaultTags,t)}clone(){const e=new Ge(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Ge(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ge.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ge.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Ge.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ge.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),i=s.shift();switch(i){case"%TAG":{if(s.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[r,a]=s;return this.tags[r]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=s;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const a=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,a),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const a=e.slice(2,-1);return a==="!"||a==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),a)}const[,s,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);const r=this.tags[s];if(r)try{return r+decodeURIComponent(i)}catch(a){return t(String(a)),null}return s==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+sa(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let i;if(e&&s.length>0&&De(e.contents)){const r={};Rt(e.contents,(a,l)=>{De(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,a]of s)r==="!!"&&a==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(a)))&&t.push(`%TAG ${r} ${a}`);return t.join(`
2
2
  `)}}Ge.defaultYaml={explicit:!1,version:"1.2"};Ge.defaultTags={"!!":"tag:yaml.org,2002:"};function xi(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function Si(n){const e=new Set;return Rt(n,{Value(t,s){s.anchor&&e.add(s.anchor)}}),e}function Ni(n,e){for(let t=1;;++t){const s=`${n}${t}`;if(!e.has(s))return s}}function na(n,e){const t=[],s=new Map;let i=null;return{onAnchor:r=>{t.push(r),i??(i=Si(n));const a=Ni(e,i);return i.add(a),a},setAnchors:()=>{for(const r of t){const a=s.get(r);if(typeof a=="object"&&a.anchor&&(xe(a.node)||Pe(a.node)))a.node.anchor=a.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},sourceObjects:s}}function Jt(n,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let i=0,r=s.length;i<r;++i){const a=s[i],l=Jt(n,s,String(i),a);l===void 0?delete s[i]:l!==a&&(s[i]=l)}else if(s instanceof Map)for(const i of Array.from(s.keys())){const r=s.get(i),a=Jt(n,s,i,r);a===void 0?s.delete(i):a!==r&&s.set(i,a)}else if(s instanceof Set)for(const i of Array.from(s)){const r=Jt(n,s,i,i);r===void 0?s.delete(i):r!==i&&(s.delete(i),s.add(r))}else for(const[i,r]of Object.entries(s)){const a=Jt(n,s,i,r);a===void 0?delete s[i]:a!==r&&(s[i]=a)}return n.call(e,t,s)}function ct(n,e,t){if(Array.isArray(n))return n.map((s,i)=>ct(s,String(i),t));if(n&&typeof n.toJSON=="function"){if(!t||!ki(n))return n.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(n,s),t.onCreate=r=>{s.res=r,delete t.onCreate};const i=n.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof n=="bigint"&&!t?.keep?Number(n):n}class jn{constructor(e){Object.defineProperty(this,ut,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:i,reviver:r}={}){if(!Fs(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},l=ct(this,"",a);if(typeof i=="function")for(const{count:c,res:u}of a.anchors.values())i(u,c);return typeof r=="function"?Jt(r,{"":l},"",l):l}}class Mn extends jn{constructor(e){super(Ln),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let s;t?.aliasResolveCache?s=t.aliasResolveCache:(s=[],Rt(e,{Node:(r,a)=>{(ts(a)||ki(a))&&s.push(a)}}),t&&(t.aliasResolveCache=s));let i;for(const r of s){if(r===this)break;r.anchor===this.source&&(i=r)}if(i&&t){const{anchors:r,doc:a,maxAliasCount:l}=t;let c=r.get(i);if(c||(ct(i,null,t),c=r.get(i)),c?.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(l>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=Ls(a,i,r)),c.count*c.aliasCount>l)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}}return i}toJSON(e,t){if(!t)return{source:this.source};const s=this.resolve(t.doc,t);if(!s){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(i)}return t.anchors.get(s).res}toString(e,t,s){const i=`*${this.source}`;if(e){if(xi(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}}function Ls(n,e,t){if(ts(e)){const s=e.resolve(n),i=t&&s&&t.get(s);return i?i.count*i.aliasCount:0}else if(Pe(e)){let s=0;for(const i of e.items){const r=Ls(n,i,t);r>s&&(s=r)}return s}else if(Ke(e)){const s=Ls(n,e.key,t),i=Ls(n,e.value,t);return Math.max(s,i)}return 1}const Ai=n=>!n||typeof n!="function"&&typeof n!="object";class ue extends jn{constructor(e){super(gt),this.value=e}toJSON(e,t){return t?.keep?this.value:ct(this.value,e,t)}toString(){return String(this.value)}}ue.BLOCK_FOLDED="BLOCK_FOLDED";ue.BLOCK_LITERAL="BLOCK_LITERAL";ue.PLAIN="PLAIN";ue.QUOTE_DOUBLE="QUOTE_DOUBLE";ue.QUOTE_SINGLE="QUOTE_SINGLE";const ia="tag:yaml.org,2002:";function ra(n,e,t){if(e){const s=t.filter(r=>r.tag===e),i=s.find(r=>!r.format)??s[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(s=>s.identify?.(n)&&!s.format)}function ys(n,e,t){if(Fs(n)&&(n=n.contents),De(n))return n;if(Ke(n)){const f=t.schema[At].createNode?.(t.schema,null,t);return f.items.push(n),f}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:s,onAnchor:i,onTagObj:r,schema:a,sourceObjects:l}=t;let c;if(s&&n&&typeof n=="object"){if(c=l.get(n),c)return c.anchor??(c.anchor=i(n)),new Mn(c.anchor);c={anchor:null,node:null},l.set(n,c)}e?.startsWith("!!")&&(e=ia+e.slice(2));let u=ra(n,e,a.tags);if(!u){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const f=new ue(n);return c&&(c.node=f),f}u=n instanceof Map?a[At]:Symbol.iterator in Object(n)?a[es]:a[At]}r&&(r(u),delete t.onTagObj);const h=u?.createNode?u.createNode(t.schema,n,t):typeof u?.nodeClass?.from=="function"?u.nodeClass.from(t.schema,n,t):new ue(n);return e?h.tag=e:u.default||(h.tag=u.tag),c&&(c.node=h),h}function Ds(n,e,t){let s=t;for(let i=e.length-1;i>=0;--i){const r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const a=[];a[r]=s,s=a}else s=new Map([[r,s]])}return ys(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const fs=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Oi extends jn{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>De(s)||Ke(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(fs(e))this.add(t);else{const[s,...i]=e,r=this.get(s,!0);if(Pe(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(s,Ds(this.schema,i,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const i=this.get(t,!0);if(Pe(i))return i.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...i]=e,r=this.get(s,!0);return i.length===0?!t&&xe(r)?r.value:r:Pe(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Ke(t))return!1;const s=t.value;return s==null||e&&xe(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const i=this.get(t,!0);return Pe(i)?i.hasIn(s):!1}setIn(e,t){const[s,...i]=e;if(i.length===0)this.set(s,t);else{const r=this.get(s,!0);if(Pe(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(s,Ds(this.schema,i,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}}}const aa=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function yt(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const Lt=(n,e,t)=>n.endsWith(`
3
3
  `)?yt(t,e):t.includes(`
4
4
  `)?`
@@ -1,3 +1,3 @@
1
- import"../chunks/DsnmJJEf.js";import{p as m,a as h,b as n,k as p,c,$ as l,h as s,s as u,r as o}from"../chunks/DFFTcnMk.js";import{h as d}from"../chunks/VI4uBLfk.js";import{R as f}from"../chunks/ff7mriJ8.js";var x=c(`<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="text-2xl">Remotes</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Reach this Wheelhouse from any browser through a Wheelhouse Cloud gateway. Firstmate, its crew
1
+ import"../chunks/DsnmJJEf.js";import{p as m,a as h,b as n,k as p,c,$ as l,h as s,s as u,r as o}from"../chunks/DFFTcnMk.js";import{h as d}from"../chunks/VI4uBLfk.js";import{R as f}from"../chunks/Dzuse5SP.js";var x=c(`<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="text-2xl">Remotes</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Reach this Wheelhouse from any browser through a Wheelhouse Cloud gateway. Firstmate, its crew
2
2
  and this page keep running on this machine; the gateway only carries the connection, which
3
3
  this machine opens to it. Remote access is off until you start it here.</p> <!></div></main>`);function b(r,t){m(t,!0);var e=x();d("17v5dm0",g=>{p(()=>{l.title="Remotes · Wheelhouse"})});var a=s(e),i=u(s(a),4);f(i,{get view(){return t.data.view}}),o(a),o(e),h(r,e),n()}export{b as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{l as mt,p as ye,h as x,o as m,s,r as v,g as r,t as u,d,a as o,b as Ie,aa as he,j as ge,f as S,m as pe,i as J,w as be,y as vt,c as n,v as B,n as we,k as ct,$ as ut}from"../chunks/DFFTcnMk.js";import{i as f}from"../chunks/fxwDaXQ6.js";import{s as H,a as ie,e as K,h as _t}from"../chunks/VI4uBLfk.js";import{c as xt,l as ft}from"../chunks/BNXbHZ4s.js";import{a as me}from"../chunks/DKQe4Tss.js";import{M as ht}from"../chunks/C8bLcW8p.js";import{H as gt}from"../chunks/Dve7Csph.js";import{A as pt}from"../chunks/DFIuHoeF.js";import{G as bt}from"../chunks/BZIE5Pwu.js";import{R as wt}from"../chunks/B2-9ZWI9.js";import{E as kt}from"../chunks/KzJrxDZe.js";var yt=n('<span class="shrink-0 rounded border px-1 font-mono text-xs leading-4"> </span>'),It=n('<p class="mt-0.5 line-clamp-2 text-xs text-muted-foreground"> </p>'),Rt=n('<a target="_blank" rel="noreferrer" class="mt-0.5 block text-xs break-all text-sea hover:underline"> </a>'),qt=n('<li class="px-3 py-2 text-sm"><div class="flex flex-wrap items-baseline gap-x-2"><span> </span> <a class="min-w-0 flex-1 truncate hover:underline"> </a> <!></div> <!> <!></li>'),At=n('<ul class="divide-y rounded-lg border bg-card"></ul>'),Nt=n('<p class="text-sm text-muted-foreground"> </p>'),ke=n('<span class="block text-xs text-muted-foreground"> </span>'),jt=n('<span class="text-muted-foreground">Not available.</span> <!>',1),Lt=n('<span class="text-muted-foreground">None of its work names a project.</span>'),St=n('<dt class="text-muted-foreground">Home</dt> <dd class="font-mono text-xs break-all"> </dd>',1),Ft=n('<dt class="text-muted-foreground">Last report</dt> <dd> </dd>',1),Ct=n('<a href="/inbox" class="mt-4 flex items-center gap-1.5 rounded-lg border bg-card px-3 py-2 text-sm hover:border-foreground/20"><!> <!></a>'),Ht=n('<span class="text-xs text-success">Landed</span>'),zt=n('<li class="flex items-baseline gap-2"><!> <a target="_blank" rel="noreferrer" class="text-sea hover:underline"> </a> <span class="min-w-0 truncate text-muted-foreground"> </span> <!></li>'),Dt=n('<ul class="flex flex-col gap-1 text-sm"></ul>'),Mt=n('<p class="text-sm text-muted-foreground">No pull requests in what it reports.</p>'),Ot=n('<li><a class="text-sea hover:underline"> </a> <span class="text-xs text-muted-foreground"> </span></li>'),Pt=n('<ul class="mt-2 flex flex-col gap-1 text-sm"></ul>'),Tt=n('<p class="mt-1 text-xs text-muted-foreground"> </p>'),Ut=n('<p class="mt-3 text-xs text-muted-foreground"> </p>'),Et=n("<!>Look again",1),Wt=n("<!>Look at its terminal",1),Gt=n('<button class="flex cursor-pointer items-center gap-1 rounded-md border px-2 py-1 text-xs hover:bg-muted disabled:opacity-60"><!></button>'),Qt=n('<p class="mt-1 text-sm text-muted-foreground"> </p>'),Bt=n('<p class="mt-1 text-sm text-muted-foreground" aria-busy="true">Looking…</p>'),Jt=n('<pre class="mt-2 max-h-80 overflow-auto rounded-lg border bg-muted/40 p-3 font-mono text-xs leading-snug whitespace-pre-wrap"> </pre> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Kt=n("<p> </p>"),Vt=n('<p class="mt-1 text-sm text-muted-foreground">A read-only look at the last lines of its own terminal, when you ask.</p>'),Xt=n('<article><header class="flex flex-wrap items-center gap-2"><h2 class="text-xl"> </h2> <!> <span class="text-sm text-muted-foreground"> </span></header> <dl class="mt-3 grid gap-x-6 gap-y-1 text-sm sm:grid-cols-[auto_1fr]"><dt class="text-muted-foreground">Health</dt> <dd> <!></dd> <dt class="text-muted-foreground">Host load</dt> <dd><!></dd> <dt class="text-muted-foreground">Projects</dt> <dd><!></dd> <!> <!></dl> <!> <section class="mt-5" aria-label="In flight"><h3 class="section-label mb-2">In flight <span class="tabular"> </span></h3> <!></section> <section class="mt-5" aria-label="Queued"><h3 class="section-label mb-2">Queued <span class="tabular"> </span></h3> <!></section> <section class="mt-5" aria-label="Pull requests and previews"><h3 class="section-label mb-2">Pull requests and previews</h3> <!> <!></section> <section class="mt-5" aria-label="Landed"><h3 class="section-label mb-2">Landed <span class="tabular"> </span></h3> <!></section> <!> <section class="mt-5" aria-label="A look at it"><div class="flex flex-wrap items-center gap-2"><h3 class="section-label flex-1">What it is doing</h3> <!></div> <!></section></article>');function Yt(V,t){ye(t,!0);const q=(e,a=he,l=he)=>{var i=ge(),h=S(i);{var c=g=>{var k=At();K(k,21,a,R=>R.id,(R,p)=>{var C=qt(),j=x(C),U=x(j),rt=m(U,!0),Q=s(U,2),st=m(Q,!0),ot=s(Q,2);{var nt=y=>{var L=yt(),E=m(L,!0);u(()=>d(E,r(p).projectId)),o(y,L)};f(ot,y=>{r(p).projectId&&y(nt)})}v(j);var fe=s(j,2);{var lt=y=>{var L=It(),E=m(L,!0);u(()=>d(E,r(p).doing)),o(y,L)};f(fe,y=>{r(p).doing&&y(lt)})}var dt=s(fe,2);{var it=y=>{var L=Rt(),E=m(L,!0);u(()=>{H(L,"href",r(p).pr.url),d(E,r(p).pr.url)}),o(y,L)};f(dt,y=>{r(p).pr&&y(it)})}v(C),u(y=>{H(C,"data-mate-task",r(p).id),ie(U,1,`font-medium ${W[r(p).status]??"text-muted-foreground"??""}`),d(rt,r(p).statusLabel),H(Q,"href",`/tasks/${y??""}`),H(Q,"title",r(p).id),d(st,r(p).title)},[()=>encodeURIComponent(`${r(p).id}@${t.mate.id}`)]),o(R,C)}),v(k),o(g,k)},_=g=>{var k=Nt(),R=m(k,!0);u(()=>d(R,l())),o(g,k)};f(h,g=>{a().length?g(c):g(_,-1)})}o(e,i)};let w=pe(null),N=pe(!1);async function M(){if(!r(N)){B(N,!0);try{const e=await fetch(`/api/second-mates/${encodeURIComponent(t.mate.id)}/peek?lines=40`);B(w,e.ok?await e.json():{available:!1,offline:!1,reason:`Wheelhouse answered ${e.status}.`,lines:[],capturedAt:null,requested:40},!0)}catch{B(w,{available:!1,offline:!1,reason:"Could not reach the Wheelhouse server.",lines:[],capturedAt:null,requested:40},!0)}finally{B(N,!1)}}}const W={"needs-decision":"text-sea",blocked:"text-danger",failed:"text-danger",unknown:"text-warning",working:"text-foreground"},X=J(()=>t.mate.tone==="captain"?"border-l-sea":t.mate.tone==="trouble"?"border-l-warning":"border-l-border");var F=Xt(),O=x(F),G=x(O),Y=m(G,!0),b=s(G,2);ht(b,{get health(){return t.mate.health}});var I=s(b,2),z=m(I);v(O);var P=s(O,2),T=s(x(P),2),A=x(T),D=s(A);{var Z=e=>{var a=ke(),l=m(a,!0);u(()=>d(l,t.mate.health.reason)),o(e,a)};f(D,e=>{t.mate.health.reason&&t.mate.health.online!=="online"&&e(Z)})}v(T);var $=s(T,4),Re=x($);{var qe=e=>{var a=be();u(()=>d(a,`CPU ${t.mate.health.host.cpu??"–"??""} · memory ${t.mate.health.host.memory??"–"??""} · disk ${t.mate.health.host.disk??"–"??""}`)),o(e,a)},Ae=e=>{var a=jt(),l=s(S(a),2);{var i=h=>{var c=ke(),_=m(c,!0);u(()=>d(_,t.mate.health.hostNote)),o(h,c)};f(l,h=>{t.mate.health.hostNote&&h(i)})}o(e,a)};f(Re,e=>{t.mate.health.host.cpu||t.mate.health.host.memory||t.mate.health.host.disk?e(qe):e(Ae,-1)})}v($);var ee=s($,4),Ne=x(ee);{var je=e=>{var a=be();u(l=>d(a,l),[()=>t.mate.projects.join(", ")]),o(e,a)},Le=e=>{var a=Lt();o(e,a)};f(Ne,e=>{t.mate.projects.length?e(je):e(Le,-1)})}v(ee);var ve=s(ee,2);{var Se=e=>{var a=St(),l=s(S(a),2),i=m(l,!0);u(()=>d(i,t.mate.home)),o(e,a)};f(ve,e=>{t.mate.home&&e(Se)})}var Fe=s(ve,2);{var Ce=e=>{var a=Ft(),l=s(S(a),2),i=m(l);u(h=>d(i,`${t.mate.lastReport.text??""}${h??""}`),[()=>t.mate.lastReport.ageSeconds!==null?` (${me(new Date(t.now-t.mate.lastReport.ageSeconds*1e3).toISOString(),t.now)})`:""]),o(e,a)};f(Fe,e=>{t.mate.lastReport&&e(Ce)})}v(P);var ce=s(P,2);{var He=e=>{var a=Ct(),l=x(a);gt(l,{class:"size-4 text-sea","aria-hidden":"true"});var i=s(l),h=s(i);pt(h,{class:"ml-auto size-3.5"}),v(a),u(()=>d(i,` ${`${t.mate.decisions} ${t.mate.decisions===1?"open question":"open questions"}${t.mate.captainDecisions?`, ${t.mate.captainDecisions} waiting on you`:""}, in Decisions`} `)),o(e,a)};f(ce,e=>{t.mate.decisions&&e(He)})}var te=s(ce,2),ae=x(te),ze=s(x(ae)),De=m(ze,!0);v(ae);var Me=s(ae,2);q(Me,()=>t.mate.inFlight,()=>"Nothing in flight."),v(te);var re=s(te,2),se=x(re),Oe=s(x(se)),Pe=m(Oe,!0);v(se);var Te=s(se,2);q(Te,()=>t.mate.queued,()=>"Nothing queued."),v(re);var oe=s(re,2),ue=s(x(oe),2);{var Ue=e=>{var a=Dt();K(a,21,()=>t.mate.prs,l=>l.url,(l,i)=>{var h=zt(),c=x(h);bt(c,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var _=s(c,2),g=m(_,!0),k=s(_,2),R=m(k,!0),p=s(k,2);{var C=j=>{var U=Ht();o(j,U)};f(p,j=>{r(i).landed&&j(C)})}v(h),u(()=>{H(_,"href",r(i).url),d(g,r(i).number?`#${r(i).number}`:r(i).url),d(R,r(i).title)}),o(l,h)}),v(a),o(e,a)},Ee=e=>{var a=Mt();o(e,a)};f(ue,e=>{t.mate.prs.length?e(Ue):e(Ee,-1)})}var We=s(ue,2);{var Ge=e=>{var a=Pt();K(a,21,()=>t.mate.previews,l=>l.taskId,(l,i)=>{var h=Ot(),c=x(h),_=m(c),g=s(c,2),k=m(g);v(h),u((R,p)=>{H(c,"href",`/tasks/${R??""}`),d(_,`Live preview of ${p??""}`),d(k,`(${r(i).url??""})`)},[()=>encodeURIComponent(r(i).taskId),()=>r(i).taskId.slice(0,r(i).taskId.lastIndexOf("@"))]),o(l,h)}),v(a),o(e,a)},Qe=e=>{var a=Tt(),l=m(a,!0);u(()=>d(l,t.mate.previewNote)),o(e,a)};f(We,e=>{t.mate.previews.length?e(Ge):t.mate.previewNote&&e(Qe,1)})}v(oe);var ne=s(oe,2),le=x(ne),Be=s(x(le)),Je=m(Be,!0);v(le);var Ke=s(le,2);q(Ke,()=>t.mate.landed,()=>"Nothing landed that it reports."),v(ne);var _e=s(ne,2);{var Ve=e=>{var a=Ut(),l=m(a);u(i=>d(l,`Firstmate’s summary leaves out ${i??""}.`),[()=>t.mate.omitted.join(", ")]),o(e,a)};f(_e,e=>{t.mate.omitted.length&&e(Ve)})}var xe=s(_e,2),de=x(xe),Xe=s(x(de),2);{var Ye=e=>{var a=Gt(),l=x(a);{var i=c=>{var _=Et(),g=S(_);wt(g,{class:"size-3.5"}),we(),o(c,_)},h=c=>{var _=Wt(),g=S(_);kt(g,{class:"size-3.5"}),we(),o(c,_)};f(l,c=>{r(w)?c(i):c(h,-1)})}v(a),u(()=>a.disabled=r(N)),vt("click",a,M),o(e,a)};f(Xe,e=>{t.mate.peek.available&&e(Ye)})}v(de);var Ze=s(de,2);{var $e=e=>{var a=Qt(),l=m(a);u(()=>d(l,`Not available. ${t.mate.peek.reason??"Its terminal cannot be read."??""}`)),o(e,a)},et=e=>{var a=Bt();o(e,a)},tt=e=>{var a=ge(),l=S(a);{var i=c=>{var _=Jt(),g=S(_),k=m(g,!0),R=s(g,2),p=m(R);u((C,j)=>{d(k,C),d(p,`The last ${r(w).lines.length??""} lines${j??""}. Read-only.`)},[()=>r(w).lines.join(`
1
+ import"../chunks/DsnmJJEf.js";import{l as mt,p as ye,h as x,o as m,s,r as v,g as r,t as u,d,a as o,b as Ie,aa as he,j as ge,f as S,m as pe,i as J,w as be,y as vt,c as n,v as B,n as we,k as ct,$ as ut}from"../chunks/DFFTcnMk.js";import{i as f}from"../chunks/fxwDaXQ6.js";import{s as H,a as ie,e as K,h as _t}from"../chunks/VI4uBLfk.js";import{c as xt,l as ft}from"../chunks/BEc8oFj4.js";import{a as me}from"../chunks/DKQe4Tss.js";import{M as ht}from"../chunks/C8bLcW8p.js";import{H as gt}from"../chunks/Dve7Csph.js";import{A as pt}from"../chunks/DFIuHoeF.js";import{G as bt}from"../chunks/BZIE5Pwu.js";import{R as wt}from"../chunks/B2-9ZWI9.js";import{E as kt}from"../chunks/KzJrxDZe.js";var yt=n('<span class="shrink-0 rounded border px-1 font-mono text-xs leading-4"> </span>'),It=n('<p class="mt-0.5 line-clamp-2 text-xs text-muted-foreground"> </p>'),Rt=n('<a target="_blank" rel="noreferrer" class="mt-0.5 block text-xs break-all text-sea hover:underline"> </a>'),qt=n('<li class="px-3 py-2 text-sm"><div class="flex flex-wrap items-baseline gap-x-2"><span> </span> <a class="min-w-0 flex-1 truncate hover:underline"> </a> <!></div> <!> <!></li>'),At=n('<ul class="divide-y rounded-lg border bg-card"></ul>'),Nt=n('<p class="text-sm text-muted-foreground"> </p>'),ke=n('<span class="block text-xs text-muted-foreground"> </span>'),jt=n('<span class="text-muted-foreground">Not available.</span> <!>',1),Lt=n('<span class="text-muted-foreground">None of its work names a project.</span>'),St=n('<dt class="text-muted-foreground">Home</dt> <dd class="font-mono text-xs break-all"> </dd>',1),Ft=n('<dt class="text-muted-foreground">Last report</dt> <dd> </dd>',1),Ct=n('<a href="/inbox" class="mt-4 flex items-center gap-1.5 rounded-lg border bg-card px-3 py-2 text-sm hover:border-foreground/20"><!> <!></a>'),Ht=n('<span class="text-xs text-success">Landed</span>'),zt=n('<li class="flex items-baseline gap-2"><!> <a target="_blank" rel="noreferrer" class="text-sea hover:underline"> </a> <span class="min-w-0 truncate text-muted-foreground"> </span> <!></li>'),Dt=n('<ul class="flex flex-col gap-1 text-sm"></ul>'),Mt=n('<p class="text-sm text-muted-foreground">No pull requests in what it reports.</p>'),Ot=n('<li><a class="text-sea hover:underline"> </a> <span class="text-xs text-muted-foreground"> </span></li>'),Pt=n('<ul class="mt-2 flex flex-col gap-1 text-sm"></ul>'),Tt=n('<p class="mt-1 text-xs text-muted-foreground"> </p>'),Ut=n('<p class="mt-3 text-xs text-muted-foreground"> </p>'),Et=n("<!>Look again",1),Wt=n("<!>Look at its terminal",1),Gt=n('<button class="flex cursor-pointer items-center gap-1 rounded-md border px-2 py-1 text-xs hover:bg-muted disabled:opacity-60"><!></button>'),Qt=n('<p class="mt-1 text-sm text-muted-foreground"> </p>'),Bt=n('<p class="mt-1 text-sm text-muted-foreground" aria-busy="true">Looking…</p>'),Jt=n('<pre class="mt-2 max-h-80 overflow-auto rounded-lg border bg-muted/40 p-3 font-mono text-xs leading-snug whitespace-pre-wrap"> </pre> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Kt=n("<p> </p>"),Vt=n('<p class="mt-1 text-sm text-muted-foreground">A read-only look at the last lines of its own terminal, when you ask.</p>'),Xt=n('<article><header class="flex flex-wrap items-center gap-2"><h2 class="text-xl"> </h2> <!> <span class="text-sm text-muted-foreground"> </span></header> <dl class="mt-3 grid gap-x-6 gap-y-1 text-sm sm:grid-cols-[auto_1fr]"><dt class="text-muted-foreground">Health</dt> <dd> <!></dd> <dt class="text-muted-foreground">Host load</dt> <dd><!></dd> <dt class="text-muted-foreground">Projects</dt> <dd><!></dd> <!> <!></dl> <!> <section class="mt-5" aria-label="In flight"><h3 class="section-label mb-2">In flight <span class="tabular"> </span></h3> <!></section> <section class="mt-5" aria-label="Queued"><h3 class="section-label mb-2">Queued <span class="tabular"> </span></h3> <!></section> <section class="mt-5" aria-label="Pull requests and previews"><h3 class="section-label mb-2">Pull requests and previews</h3> <!> <!></section> <section class="mt-5" aria-label="Landed"><h3 class="section-label mb-2">Landed <span class="tabular"> </span></h3> <!></section> <!> <section class="mt-5" aria-label="A look at it"><div class="flex flex-wrap items-center gap-2"><h3 class="section-label flex-1">What it is doing</h3> <!></div> <!></section></article>');function Yt(V,t){ye(t,!0);const q=(e,a=he,l=he)=>{var i=ge(),h=S(i);{var c=g=>{var k=At();K(k,21,a,R=>R.id,(R,p)=>{var C=qt(),j=x(C),U=x(j),rt=m(U,!0),Q=s(U,2),st=m(Q,!0),ot=s(Q,2);{var nt=y=>{var L=yt(),E=m(L,!0);u(()=>d(E,r(p).projectId)),o(y,L)};f(ot,y=>{r(p).projectId&&y(nt)})}v(j);var fe=s(j,2);{var lt=y=>{var L=It(),E=m(L,!0);u(()=>d(E,r(p).doing)),o(y,L)};f(fe,y=>{r(p).doing&&y(lt)})}var dt=s(fe,2);{var it=y=>{var L=Rt(),E=m(L,!0);u(()=>{H(L,"href",r(p).pr.url),d(E,r(p).pr.url)}),o(y,L)};f(dt,y=>{r(p).pr&&y(it)})}v(C),u(y=>{H(C,"data-mate-task",r(p).id),ie(U,1,`font-medium ${W[r(p).status]??"text-muted-foreground"??""}`),d(rt,r(p).statusLabel),H(Q,"href",`/tasks/${y??""}`),H(Q,"title",r(p).id),d(st,r(p).title)},[()=>encodeURIComponent(`${r(p).id}@${t.mate.id}`)]),o(R,C)}),v(k),o(g,k)},_=g=>{var k=Nt(),R=m(k,!0);u(()=>d(R,l())),o(g,k)};f(h,g=>{a().length?g(c):g(_,-1)})}o(e,i)};let w=pe(null),N=pe(!1);async function M(){if(!r(N)){B(N,!0);try{const e=await fetch(`/api/second-mates/${encodeURIComponent(t.mate.id)}/peek?lines=40`);B(w,e.ok?await e.json():{available:!1,offline:!1,reason:`Wheelhouse answered ${e.status}.`,lines:[],capturedAt:null,requested:40},!0)}catch{B(w,{available:!1,offline:!1,reason:"Could not reach the Wheelhouse server.",lines:[],capturedAt:null,requested:40},!0)}finally{B(N,!1)}}}const W={"needs-decision":"text-sea",blocked:"text-danger",failed:"text-danger",unknown:"text-warning",working:"text-foreground"},X=J(()=>t.mate.tone==="captain"?"border-l-sea":t.mate.tone==="trouble"?"border-l-warning":"border-l-border");var F=Xt(),O=x(F),G=x(O),Y=m(G,!0),b=s(G,2);ht(b,{get health(){return t.mate.health}});var I=s(b,2),z=m(I);v(O);var P=s(O,2),T=s(x(P),2),A=x(T),D=s(A);{var Z=e=>{var a=ke(),l=m(a,!0);u(()=>d(l,t.mate.health.reason)),o(e,a)};f(D,e=>{t.mate.health.reason&&t.mate.health.online!=="online"&&e(Z)})}v(T);var $=s(T,4),Re=x($);{var qe=e=>{var a=be();u(()=>d(a,`CPU ${t.mate.health.host.cpu??"–"??""} · memory ${t.mate.health.host.memory??"–"??""} · disk ${t.mate.health.host.disk??"–"??""}`)),o(e,a)},Ae=e=>{var a=jt(),l=s(S(a),2);{var i=h=>{var c=ke(),_=m(c,!0);u(()=>d(_,t.mate.health.hostNote)),o(h,c)};f(l,h=>{t.mate.health.hostNote&&h(i)})}o(e,a)};f(Re,e=>{t.mate.health.host.cpu||t.mate.health.host.memory||t.mate.health.host.disk?e(qe):e(Ae,-1)})}v($);var ee=s($,4),Ne=x(ee);{var je=e=>{var a=be();u(l=>d(a,l),[()=>t.mate.projects.join(", ")]),o(e,a)},Le=e=>{var a=Lt();o(e,a)};f(Ne,e=>{t.mate.projects.length?e(je):e(Le,-1)})}v(ee);var ve=s(ee,2);{var Se=e=>{var a=St(),l=s(S(a),2),i=m(l,!0);u(()=>d(i,t.mate.home)),o(e,a)};f(ve,e=>{t.mate.home&&e(Se)})}var Fe=s(ve,2);{var Ce=e=>{var a=Ft(),l=s(S(a),2),i=m(l);u(h=>d(i,`${t.mate.lastReport.text??""}${h??""}`),[()=>t.mate.lastReport.ageSeconds!==null?` (${me(new Date(t.now-t.mate.lastReport.ageSeconds*1e3).toISOString(),t.now)})`:""]),o(e,a)};f(Fe,e=>{t.mate.lastReport&&e(Ce)})}v(P);var ce=s(P,2);{var He=e=>{var a=Ct(),l=x(a);gt(l,{class:"size-4 text-sea","aria-hidden":"true"});var i=s(l),h=s(i);pt(h,{class:"ml-auto size-3.5"}),v(a),u(()=>d(i,` ${`${t.mate.decisions} ${t.mate.decisions===1?"open question":"open questions"}${t.mate.captainDecisions?`, ${t.mate.captainDecisions} waiting on you`:""}, in Decisions`} `)),o(e,a)};f(ce,e=>{t.mate.decisions&&e(He)})}var te=s(ce,2),ae=x(te),ze=s(x(ae)),De=m(ze,!0);v(ae);var Me=s(ae,2);q(Me,()=>t.mate.inFlight,()=>"Nothing in flight."),v(te);var re=s(te,2),se=x(re),Oe=s(x(se)),Pe=m(Oe,!0);v(se);var Te=s(se,2);q(Te,()=>t.mate.queued,()=>"Nothing queued."),v(re);var oe=s(re,2),ue=s(x(oe),2);{var Ue=e=>{var a=Dt();K(a,21,()=>t.mate.prs,l=>l.url,(l,i)=>{var h=zt(),c=x(h);bt(c,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var _=s(c,2),g=m(_,!0),k=s(_,2),R=m(k,!0),p=s(k,2);{var C=j=>{var U=Ht();o(j,U)};f(p,j=>{r(i).landed&&j(C)})}v(h),u(()=>{H(_,"href",r(i).url),d(g,r(i).number?`#${r(i).number}`:r(i).url),d(R,r(i).title)}),o(l,h)}),v(a),o(e,a)},Ee=e=>{var a=Mt();o(e,a)};f(ue,e=>{t.mate.prs.length?e(Ue):e(Ee,-1)})}var We=s(ue,2);{var Ge=e=>{var a=Pt();K(a,21,()=>t.mate.previews,l=>l.taskId,(l,i)=>{var h=Ot(),c=x(h),_=m(c),g=s(c,2),k=m(g);v(h),u((R,p)=>{H(c,"href",`/tasks/${R??""}`),d(_,`Live preview of ${p??""}`),d(k,`(${r(i).url??""})`)},[()=>encodeURIComponent(r(i).taskId),()=>r(i).taskId.slice(0,r(i).taskId.lastIndexOf("@"))]),o(l,h)}),v(a),o(e,a)},Qe=e=>{var a=Tt(),l=m(a,!0);u(()=>d(l,t.mate.previewNote)),o(e,a)};f(We,e=>{t.mate.previews.length?e(Ge):t.mate.previewNote&&e(Qe,1)})}v(oe);var ne=s(oe,2),le=x(ne),Be=s(x(le)),Je=m(Be,!0);v(le);var Ke=s(le,2);q(Ke,()=>t.mate.landed,()=>"Nothing landed that it reports."),v(ne);var _e=s(ne,2);{var Ve=e=>{var a=Ut(),l=m(a);u(i=>d(l,`Firstmate’s summary leaves out ${i??""}.`),[()=>t.mate.omitted.join(", ")]),o(e,a)};f(_e,e=>{t.mate.omitted.length&&e(Ve)})}var xe=s(_e,2),de=x(xe),Xe=s(x(de),2);{var Ye=e=>{var a=Gt(),l=x(a);{var i=c=>{var _=Et(),g=S(_);wt(g,{class:"size-3.5"}),we(),o(c,_)},h=c=>{var _=Wt(),g=S(_);kt(g,{class:"size-3.5"}),we(),o(c,_)};f(l,c=>{r(w)?c(i):c(h,-1)})}v(a),u(()=>a.disabled=r(N)),vt("click",a,M),o(e,a)};f(Xe,e=>{t.mate.peek.available&&e(Ye)})}v(de);var Ze=s(de,2);{var $e=e=>{var a=Qt(),l=m(a);u(()=>d(l,`Not available. ${t.mate.peek.reason??"Its terminal cannot be read."??""}`)),o(e,a)},et=e=>{var a=Bt();o(e,a)},tt=e=>{var a=ge(),l=S(a);{var i=c=>{var _=Jt(),g=S(_),k=m(g,!0),R=s(g,2),p=m(R);u((C,j)=>{d(k,C),d(p,`The last ${r(w).lines.length??""} lines${j??""}. Read-only.`)},[()=>r(w).lines.join(`
2
2
  `),()=>r(w).capturedAt?`, ${me(r(w).capturedAt,t.now)}`:""]),o(c,_)},h=c=>{var _=Kt(),g=m(_,!0);u(()=>{ie(_,1,`mt-1 text-sm ${r(w).offline?"text-warning":"text-muted-foreground"}`),d(g,r(w).reason)}),o(c,_)};f(l,c=>{r(w).available?c(i):c(h,-1)})}o(e,a)},at=e=>{var a=Vt();o(e,a)};f(Ze,e=>{t.mate.peek.available?r(N)&&!r(w)?e(et,1):r(w)?e(tt,2):e(at,-1):e($e)})}v(xe),v(F),u(e=>{H(F,"id",`mate-${t.mate.id??""}`),ie(F,1,`surface scroll-mt-24 border-l-[3px] p-5 sm:p-6 ${r(X)??""}`),H(F,"data-second-mate",t.mate.id),d(Y,t.mate.id),d(z,`${t.mate.where==="remote"?`Remote, on ${t.mate.host??"another host"}`:"On this computer"}
3
3
  · ${t.mate.stateLabel??""}`),d(A,`${t.mate.health.text??""}${e??""} `),d(De,t.mate.inFlight.length),d(Pe,t.mate.queued.length),d(Je,t.mate.landed.length)},[()=>t.mate.health.observedAt?` · read ${me(t.mate.health.observedAt,t.now)}`:""]),o(V,F),Ie()}mt(["click"]);var Zt=n('<p class="mt-3 text-sm text-warning"> </p>'),$t=n('<p class="mt-4 text-sm text-muted-foreground"> </p>'),ea=n('<div class="mt-6 flex flex-col gap-6"></div> <!>',1),ta=n('<p class="surface mt-6 p-5 text-muted-foreground sm:p-6">Firstmate runs no second mates.</p>'),aa=n('<p class="surface mt-6 p-5 text-muted-foreground sm:p-6" aria-busy="true">Reading Firstmate…</p>'),ra=n(`<main class="px-4 py-6 sm:px-6 lg:px-10"><h1 class="text-2xl">Second mates</h1> <p class="mt-1 max-w-3xl text-sm text-muted-foreground">Each second mate runs its own crew, on this computer or another host. This is what Firstmate’s
4
4
  last fleet snapshot says of each; their questions are in Decisions.</p> <!> <!></main>`);function fa(V,t){ye(t,!0);const q=J(xt),w=J(()=>r(q)?.secondMates??[]),N=J(()=>r(q)?.secondMatesOmitted??0);var M=ra();_t("94cbpo",b=>{ct(()=>{ut.title="Second mates · Wheelhouse"})});var W=s(x(M),4);{var X=b=>{var I=Zt(),z=m(I,!0);u(()=>d(z,r(q).staleReason)),o(b,I)};f(W,b=>{r(q)?.stale&&r(q).staleReason&&b(X)})}var F=s(W,2);{var O=b=>{var I=ea(),z=S(I);K(z,21,()=>r(w),A=>A.id,(A,D)=>{Yt(A,{get mate(){return r(D)},get now(){return ft.now}})}),v(z);var P=s(z,2);{var T=A=>{var D=$t(),Z=m(D);u(()=>d(Z,`Firstmate’s snapshot leaves out ${r(N)??""} more ${r(N)===1?"second mate":"second mates"}.`)),o(A,D)};f(P,A=>{r(N)&&A(T)})}o(b,I)},G=b=>{var I=ta();o(b,I)},Y=b=>{var I=aa();o(b,I)};f(F,b=>{r(w).length?b(O):r(q)?.collectedAt?b(G,1):b(Y,-1)})}v(M),o(V,M),Ie()}export{fa as component};
@@ -1,2 +1,2 @@
1
- import"../chunks/DsnmJJEf.js";import{p as n,a as h,b as p,k as l,c as u,s as c,h as t,$ as d,r}from"../chunks/DFFTcnMk.js";import{h as f}from"../chunks/VI4uBLfk.js";import{R as v}from"../chunks/ff7mriJ8.js";import{S as x}from"../chunks/CisWRQQd.js";var g=u(`<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">Cloud</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Reach this Wheelhouse from any browser through a Wheelhouse Cloud gateway: the default one, or
1
+ import"../chunks/DsnmJJEf.js";import{p as n,a as h,b as p,k as l,c as u,s as c,h as t,$ as d,r}from"../chunks/DFFTcnMk.js";import{h as f}from"../chunks/VI4uBLfk.js";import{R as v}from"../chunks/Dzuse5SP.js";import{S as x}from"../chunks/BTTjxuqT.js";var g=u(`<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">Cloud</h1> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Reach this Wheelhouse from any browser through a Wheelhouse Cloud gateway: the default one, or
2
2
  your own. Remote access is off until you start it, here or on <a class="underline" href="/remotes">Remotes</a>.</p> <!></div></main>`);function _(m,a){n(a,!0);var e=g();f("1uqkjhc",y=>{l(()=>{d.title="Cloud · Wheelhouse"})});var s=t(e),o=t(s);x(o,{});var i=c(o,6);v(i,{get view(){return a.data.view}}),r(s),r(e),h(m,e),p()}export{_ as component};