@chrisjowen/wheelhouse 0.20.0 → 0.20.1

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 (462) hide show
  1. package/build/client/_app/immutable/chunks/{DOKpGhvh.js → B1xoHaDM.js} +1 -1
  2. package/build/client/_app/immutable/chunks/B1xoHaDM.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/B1xoHaDM.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{Bryhm9jB.js → BBzstCoB.js} +1 -1
  5. package/build/client/_app/immutable/chunks/BBzstCoB.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BBzstCoB.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{0o6EA2k5.js → BHlHrhn-.js} +1 -1
  8. package/build/client/_app/immutable/chunks/BHlHrhn-.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BHlHrhn-.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{DzHrCFqI.js → BKi_jr6t.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BKi_jr6t.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BKi_jr6t.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{BaPx3dni.js → BYqCpFaP.js} +1 -1
  14. package/build/client/_app/immutable/chunks/BYqCpFaP.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BYqCpFaP.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{BfJfrrO8.js → BdvLpjSH.js} +1 -1
  17. package/build/client/_app/immutable/chunks/BdvLpjSH.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BdvLpjSH.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{BnLsNzmq.js → Bj0Gz77p.js} +1 -1
  20. package/build/client/_app/immutable/chunks/Bj0Gz77p.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/Bj0Gz77p.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{BbjpG9pU.js → C71Z1uva.js} +1 -1
  23. package/build/client/_app/immutable/chunks/C71Z1uva.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/C71Z1uva.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{DoOMh9hC.js → CDm3HpcI.js} +1 -1
  26. package/build/client/_app/immutable/chunks/CDm3HpcI.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CDm3HpcI.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{B9IElmGa.js → CLTl8CXB.js} +1 -1
  29. package/build/client/_app/immutable/chunks/CLTl8CXB.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CLTl8CXB.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{836-VH6o.js → CbgKt5BB.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CbgKt5BB.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CbgKt5BB.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{MsjsSW3C.js → CeaZ17SZ.js} +1 -1
  35. package/build/client/_app/immutable/chunks/CeaZ17SZ.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CeaZ17SZ.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{Brlhcoi0.js → CshFdfqM.js} +2 -2
  38. package/build/client/_app/immutable/chunks/CshFdfqM.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CshFdfqM.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{DuX2xyeV.js → CzRQxst7.js} +1 -1
  41. package/build/client/_app/immutable/chunks/CzRQxst7.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/CzRQxst7.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{BrQMQ1El.js → D-zX5bG0.js} +1 -1
  44. package/build/client/_app/immutable/chunks/D-zX5bG0.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/D-zX5bG0.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{Bfpz7mtR.js → D3-vGT36.js} +1 -1
  47. package/build/client/_app/immutable/chunks/D3-vGT36.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/D3-vGT36.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{BRBFVvza.js → D3fjuSYa.js} +1 -1
  50. package/build/client/_app/immutable/chunks/D3fjuSYa.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/D3fjuSYa.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/{CWiS3deB.js → D8y9UQyR.js} +1 -1
  53. package/build/client/_app/immutable/chunks/D8y9UQyR.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/D8y9UQyR.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{CJRtKjLj.js → DDbpJ4wH.js} +1 -1
  56. package/build/client/_app/immutable/chunks/DDbpJ4wH.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DDbpJ4wH.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{Ckm9z0eO.js → DPa_SV73.js} +1 -1
  59. package/build/client/_app/immutable/chunks/DPa_SV73.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DPa_SV73.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/{DvD2Hmi1.js → DXM6KoO3.js} +1 -1
  62. package/build/client/_app/immutable/chunks/DXM6KoO3.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/DXM6KoO3.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/{COztkpM6.js → Dy7zzdlr.js} +1 -1
  65. package/build/client/_app/immutable/chunks/Dy7zzdlr.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/Dy7zzdlr.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/{Bk-GLf2s.js → OmkrH6gy.js} +1 -1
  68. package/build/client/_app/immutable/chunks/OmkrH6gy.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/OmkrH6gy.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/{DsnT-RPG.js → Rw-QdBqX.js} +1 -1
  71. package/build/client/_app/immutable/chunks/Rw-QdBqX.js.br +2 -0
  72. package/build/client/_app/immutable/chunks/Rw-QdBqX.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/{BCUUi0V0.js → Ug0gsfQr.js} +1 -1
  74. package/build/client/_app/immutable/chunks/Ug0gsfQr.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/Ug0gsfQr.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/{Bh_WiCgr.js → _zu5-cZO.js} +1 -1
  77. package/build/client/_app/immutable/chunks/_zu5-cZO.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/_zu5-cZO.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/{uQ_tQtGP.js → vhIPlTYz.js} +1 -1
  80. package/build/client/_app/immutable/chunks/vhIPlTYz.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/vhIPlTYz.js.gz +0 -0
  82. package/build/client/_app/immutable/entry/{app.DlrjWkNw.js → app.C3lhpf7p.js} +2 -2
  83. package/build/client/_app/immutable/entry/app.C3lhpf7p.js.br +0 -0
  84. package/build/client/_app/immutable/entry/app.C3lhpf7p.js.gz +0 -0
  85. package/build/client/_app/immutable/entry/start.Gjn1w_bS.js +1 -0
  86. package/build/client/_app/immutable/entry/start.Gjn1w_bS.js.br +0 -0
  87. package/build/client/_app/immutable/entry/start.Gjn1w_bS.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{0.G3KQrG5D.js → 0.Jr7IVgmY.js} +1 -1
  89. package/build/client/_app/immutable/nodes/0.Jr7IVgmY.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/0.Jr7IVgmY.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{1.EjzZdjNu.js → 1.70NIA9tn.js} +1 -1
  92. package/build/client/_app/immutable/nodes/1.70NIA9tn.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/1.70NIA9tn.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{10.C2kPvtXn.js → 10.Df7hKVdv.js} +1 -1
  95. package/build/client/_app/immutable/nodes/10.Df7hKVdv.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/10.Df7hKVdv.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{11.BE5NFrbF.js → 11.Bnn7lvEJ.js} +1 -1
  98. package/build/client/_app/immutable/nodes/11.Bnn7lvEJ.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/11.Bnn7lvEJ.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{12.BGfAum68.js → 12.gc7xxTit.js} +1 -1
  101. package/build/client/_app/immutable/nodes/12.gc7xxTit.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/12.gc7xxTit.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/13.CifeX-Ru.js +3 -0
  104. package/build/client/_app/immutable/nodes/13.CifeX-Ru.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/13.CifeX-Ru.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{14.Dyi9692a.js → 14.BaMTgl0D.js} +1 -1
  107. package/build/client/_app/immutable/nodes/14.BaMTgl0D.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/14.BaMTgl0D.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{15.LsZixPIA.js → 15.BKHphraY.js} +1 -1
  110. package/build/client/_app/immutable/nodes/15.BKHphraY.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/15.BKHphraY.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{16.B3vT83OU.js → 16.DhIKhfTQ.js} +1 -1
  113. package/build/client/_app/immutable/nodes/16.DhIKhfTQ.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/16.DhIKhfTQ.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{17.f8lqwu65.js → 17.Cmg6USzf.js} +1 -1
  116. package/build/client/_app/immutable/nodes/17.Cmg6USzf.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/17.Cmg6USzf.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/{18.B8EAJ1ic.js → 18.CH7PvhuS.js} +1 -1
  119. package/build/client/_app/immutable/nodes/18.CH7PvhuS.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/18.CH7PvhuS.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{2.BAH_oBNX.js → 2.6PBhdwxm.js} +1 -1
  122. package/build/client/_app/immutable/nodes/2.6PBhdwxm.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/2.6PBhdwxm.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{20.DoUYBfHV.js → 20.uqdQhPTw.js} +1 -1
  125. package/build/client/_app/immutable/nodes/20.uqdQhPTw.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/20.uqdQhPTw.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{21.Wq1bxLh7.js → 21.PN5DzMJc.js} +1 -1
  128. package/build/client/_app/immutable/nodes/21.PN5DzMJc.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/21.PN5DzMJc.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{22.BRWQTrNx.js → 22.B8Cpyb0H.js} +1 -1
  131. package/build/client/_app/immutable/nodes/22.B8Cpyb0H.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/22.B8Cpyb0H.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/{23.DPF8UpES.js → 23.CW1aJkQR.js} +1 -1
  134. package/build/client/_app/immutable/nodes/23.CW1aJkQR.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/23.CW1aJkQR.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/{24.DS_Z0W-Q.js → 24.DXpTFCkP.js} +1 -1
  137. package/build/client/_app/immutable/nodes/24.DXpTFCkP.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/24.DXpTFCkP.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/{25.BHK4xoDF.js → 25.Psv5y7w0.js} +1 -1
  140. package/build/client/_app/immutable/nodes/25.Psv5y7w0.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/25.Psv5y7w0.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{26.isUdEHj4.js → 26.cTEoEQqs.js} +1 -1
  143. package/build/client/_app/immutable/nodes/26.cTEoEQqs.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/26.cTEoEQqs.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/27.BnDpnW0u.js +3 -0
  146. package/build/client/_app/immutable/nodes/27.BnDpnW0u.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/27.BnDpnW0u.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/{28.Uh0zu7Y2.js → 28.CTsk767H.js} +1 -1
  149. package/build/client/_app/immutable/nodes/28.CTsk767H.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/28.CTsk767H.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/{29.DWdG8AFx.js → 29.CEkPecBk.js} +1 -1
  152. package/build/client/_app/immutable/nodes/29.CEkPecBk.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/29.CEkPecBk.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/{3.ci45MR89.js → 3.4ty7-fxA.js} +1 -1
  155. package/build/client/_app/immutable/nodes/3.4ty7-fxA.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/3.4ty7-fxA.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/{4.iVqapXGG.js → 4.UaRAPHrC.js} +1 -1
  158. package/build/client/_app/immutable/nodes/4.UaRAPHrC.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/4.UaRAPHrC.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/{5.DrZvA3bh.js → 5.DJoqJ4qv.js} +1 -1
  161. package/build/client/_app/immutable/nodes/5.DJoqJ4qv.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/5.DJoqJ4qv.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/{7.DVSym27K.js → 7.D1RDIsjG.js} +1 -1
  164. package/build/client/_app/immutable/nodes/7.D1RDIsjG.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/7.D1RDIsjG.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/{8.DoNN1dXV.js → 8.C0jVq7am.js} +1 -1
  167. package/build/client/_app/immutable/nodes/8.C0jVq7am.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/8.C0jVq7am.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/{9.6DKcK8s9.js → 9.otejRtBt.js} +1 -1
  170. package/build/client/_app/immutable/nodes/9.otejRtBt.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/9.otejRtBt.js.gz +0 -0
  172. package/build/client/_app/version.json +1 -1
  173. package/build/client/_app/version.json.br +0 -0
  174. package/build/client/_app/version.json.gz +0 -0
  175. package/build/handler.js +4 -4
  176. package/build/index.js +4 -4
  177. package/build/server/chunks/chunks/{DecisionCard.js-DSUTu-JD.js → DecisionCard.js-jZpqG6KZ.js} +2 -2
  178. package/build/server/chunks/chunks/{Discussion.js-Cr7cbq59.js → Discussion.js-b3i5Gjq7.js} +4 -4
  179. package/build/server/chunks/chunks/{EtaLine.js-CGj5iIb4.js → EtaLine.js-DedePd3x.js} +2 -2
  180. package/build/server/chunks/chunks/{OpenDecision.js-7FphdzOA.js → OpenDecision.js-Dqtn2ZKG.js} +2 -2
  181. package/build/server/chunks/chunks/{ProjectBanner.js-DGz8m8Rb.js → ProjectBanner.js-DbMJpMF1.js} +4 -4
  182. package/build/server/chunks/chunks/{ProjectStateMark.js-ruGL_Mma.js → ProjectStateMark.js-1orvBkNp.js} +2 -2
  183. package/build/server/chunks/chunks/{RemotesPanel.js-qXJzfoKH.js → RemotesPanel.js-DBs1dDfn.js} +2 -2
  184. package/build/server/chunks/chunks/{SlotContent.js-Dfh5Tmlb.js → SlotContent.js-CgBC2kiW.js} +2 -2
  185. package/build/server/chunks/chunks/{WhereBadge.js-DocJaNZe.js → WhereBadge.js-BqfT_Odx.js} +2 -2
  186. package/build/server/chunks/chunks/{berths.js-B282QffH.js → berths.js-Dg5Imxvq.js} +2 -2
  187. package/build/server/chunks/chunks/{buildlog.js-BCKtSKOt.js → buildlog.js-DHa9PZVO.js} +2 -2
  188. package/build/server/chunks/chunks/{checks.js-DGdGhp1G.js → checks.js-Cn5S6WhT.js} +2 -2
  189. package/build/server/chunks/chunks/{detail.js-KV7i9wLV.js → detail.js-B9BX3EuV.js} +3 -3
  190. package/build/server/chunks/chunks/{feedback.js-DksN5Z1p.js → feedback.js-DOdFsSku.js} +2 -2
  191. package/build/server/chunks/chunks/{format.js-D3lWEg6U.js → format.js-D72dE2wD.js} +6 -3
  192. package/build/server/chunks/chunks/{insights.svelte.js-CsSCJZQw.js → insights.svelte.js-BM80JJxu.js} +8 -8
  193. package/build/server/chunks/chunks/{internal.js-Kj5mxT2d.js → internal.js-DZu6L9Mu.js} +3 -3
  194. package/build/server/chunks/chunks/{keychain.js-DXK7ULY8.js → keychain.js-BpwpmeK4.js} +2 -2
  195. package/build/server/chunks/chunks/{marketplace-service.js-al5Ed6O6.js → marketplace-service.js-C0SZTz98.js} +2 -2
  196. package/build/server/chunks/chunks/{page.js-BHM2DfGm.js → page.js-BDis9MVK.js} +2 -2
  197. package/build/server/chunks/chunks/{previewhelper2.js-F9C9aNUS.js → previewhelper2.js-DhwPL-RU.js} +2 -2
  198. package/build/server/chunks/chunks/{repo.js-DG9Ad-7N.js → repo.js-G0oGED-q.js} +2 -2
  199. package/build/server/chunks/chunks/{runtime.js-Dk6wFFqw.js → runtime.js-C1B3-TvZ.js} +102 -25
  200. package/build/server/chunks/chunks/{service.js-C0YAaAzV.js → service.js-Uw3bPOFo.js} +2 -2
  201. package/build/server/chunks/chunks/{service2.js-BfK-273E.js → service2.js-CYPhN9D_.js} +2 -2
  202. package/build/server/chunks/chunks/{starter.js-Dtx6l_kK.js → starter.js-CZJkNfyQ.js} +2 -2
  203. package/build/server/chunks/chunks/{view.js-BNSH9Nrs.js → view.js-BfVjcGfI.js} +2 -2
  204. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-CE3Hghnr.js → _server.ts.js-8z8HZdY7.js} +6 -6
  205. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-k-jXDV9c.js → _server.ts.js-ChyTjLX4.js} +3 -3
  206. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-CIXJkK8s.js → _server.ts.js-BXRWlFrp.js} +6 -6
  207. package/build/server/chunks/entries/endpoints/api/crew/{_server.ts.js-g5_huhko.js → _server.ts.js-Dq5fiBvP.js} +6 -6
  208. package/build/server/chunks/entries/endpoints/api/crew/messages/{_server.ts.js-DjGzDBWE.js → _server.ts.js-Q5Mt6qWn.js} +6 -6
  209. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-CTUUPjKg.js → _server.ts.js-C3qZG6DT.js} +6 -6
  210. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-S7AcV7LX.js → _server.ts.js-co_kav-G.js} +6 -6
  211. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-DDl9ndov.js → _server.ts.js-LQ4l02pF.js} +6 -6
  212. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DBcJk-R9.js → _server.ts.js-Bc4h8IGq.js} +6 -6
  213. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-CG6NKPfy.js → _server.ts.js-DBmq8-Fk.js} +6 -6
  214. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-oP7nVFdF.js → _server.ts.js-Ci2gdF6P.js} +6 -6
  215. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DZpD8BX2.js → _server.ts.js-CJiU6E3R.js} +6 -6
  216. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-BGOIlKQk.js → _server.ts.js-CViLaHwI.js} +6 -6
  217. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-BT_5ttQI.js → _server.ts.js-DNr1GeZx.js} +6 -6
  218. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-shtgRKtL.js → _server.ts.js-CGobkg6F.js} +6 -6
  219. package/build/server/chunks/entries/endpoints/api/firstmate/signin/{_server.ts.js-CRXG-M6H.js → _server.ts.js-DrfhND9M.js} +6 -6
  220. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-uG4FDkzf.js → _server.ts.js-CxDnp7TV.js} +6 -6
  221. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-DS4WWrjc.js → _server.ts.js-A6CWesAa.js} +6 -6
  222. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DM3SKpG9.js → _server.ts.js-lNjIbv07.js} +6 -6
  223. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-CNXnTk2B.js → _server.ts.js-ClQY3FmI.js} +6 -6
  224. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CidSF0dg.js → _server.ts.js-jXdhaANw.js} +6 -6
  225. package/build/server/chunks/entries/endpoints/api/inbox/following/{_server.ts.js-DHYypyb6.js → _server.ts.js-Dm5SGJzf.js} +6 -6
  226. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-Cx3MuAJ1.js → _server.ts.js-BqvXByXM.js} +6 -6
  227. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-Cuc9V30r.js → _server.ts.js-DQy8gcVL.js} +6 -6
  228. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-IKn5gKS-.js → _server.ts.js-DXIJDd-I.js} +6 -6
  229. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-BIFYVMFx.js → _server.ts.js-X_mXVqNd.js} +7 -7
  230. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DN0bNgSg.js → _server.ts.js-Dvjm6z1i.js} +8 -8
  231. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-BZnwrLKj.js → _server.ts.js-D7LNtuI3.js} +6 -6
  232. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-CAkLsoU8.js → _server.ts.js-CvVM_nIz.js} +2 -2
  233. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-dbk3X7So.js → _server.ts.js-BrBEl067.js} +6 -6
  234. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-JR7H8oT0.js → _server.ts.js-BWD2e9Fe.js} +2 -2
  235. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-Bf1MLjs8.js → _server.ts.js-CrfFOFIj.js} +6 -6
  236. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-BxGF0kgL.js → _server.ts.js-Pqf_PAqQ.js} +2 -2
  237. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-u8-vZlhm.js → _server.ts.js-B__zwEfe.js} +2 -2
  238. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-BYzKnO62.js → _server.ts.js-BRMcOH6j.js} +7 -7
  239. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-C1ScUx-d.js → _server.ts.js-B6r_S3Y0.js} +7 -7
  240. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-BqWOyseN.js → _server.ts.js-BzhuoQ9I.js} +7 -7
  241. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-DTAhEHPI.js → _server.ts.js-LIjisJOm.js} +6 -6
  242. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-BbR2WGQS.js → _server.ts.js-BK5rv5jv.js} +2 -2
  243. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-Cn8PGQk-.js → _server.ts.js-B3rhDYqQ.js} +6 -6
  244. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-DTbO1LwH.js → _server.ts.js-BGhTXAus.js} +7 -7
  245. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-t22g5ic1.js → _server.ts.js-5cbqm8Y-.js} +7 -7
  246. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DBRybweS.js → _server.ts.js-Cq2p9bCD.js} +7 -7
  247. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-2S9FsNLH.js → _server.ts.js-CXJmd-pR.js} +7 -7
  248. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-C8LFowV7.js → _server.ts.js-DCLBKVMr.js} +7 -7
  249. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-CMD1lInr.js → _server.ts.js-DY3319p4.js} +7 -7
  250. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-4NG2rF0D.js → _server.ts.js-CygL4aMW.js} +6 -6
  251. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-B3jkrOY6.js → _server.ts.js-DXiBJUHT.js} +6 -6
  252. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Bsk9keJl.js → _server.ts.js-mWGQKixa.js} +7 -7
  253. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-C-dQcaGm.js → _server.ts.js-PUEyFZ35.js} +6 -6
  254. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-F0HW4tEQ.js → _server.ts.js-DtEGI0pW.js} +7 -7
  255. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-C1ZiHB4b.js → _server.ts.js-DLIAPiQA.js} +6 -6
  256. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/{_server.ts.js-D6VkLwG9.js → _server.ts.js-DdglGu66.js} +6 -6
  257. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-ChTNUggG.js → _server.ts.js-uHWErzP9.js} +6 -6
  258. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-CH62W4T5.js → _server.ts.js-BTspawC0.js} +6 -6
  259. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-BIkEWIt8.js → _server.ts.js-DR7kFxyP.js} +6 -6
  260. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-Bk2ZkgAH.js → _server.ts.js-BbGdc1-d.js} +7 -7
  261. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-D5K0nC5q.js → _server.ts.js-C4D89SAh.js} +6 -6
  262. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-C23bRMMA.js → _server.ts.js-CzRlGc51.js} +2 -2
  263. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-BxShbmrJ.js → _server.ts.js-D8sHE9gP.js} +2 -2
  264. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-Be-4355Z.js → _server.ts.js-DhkUlS3v.js} +2 -2
  265. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-C9x7fzFd.js → _server.ts.js-CRU86Cv7.js} +6 -6
  266. package/build/server/chunks/entries/{hooks.server.js-Byagptlc.js → hooks.server.js-DVvOoduB.js} +6 -6
  267. package/build/server/chunks/entries/pages/{_layout.server.ts.js-BAKXhT6C.js → _layout.server.ts.js-CH1pyqCC.js} +2 -2
  268. package/build/server/chunks/entries/pages/{_layout.svelte.js-eeReOKz0.js → _layout.svelte.js-B6Kr-XQ7.js} +2 -2
  269. package/build/server/chunks/entries/pages/{_page.server.ts.js-C6f4qiF4.js → _page.server.ts.js-BuE0Relj.js} +2 -2
  270. package/build/server/chunks/entries/pages/{_page.svelte.js-HX4V6CUL.js → _page.svelte.js-CijZ3Eap.js} +9 -9
  271. package/build/server/chunks/entries/pages/crew/{_page.svelte.js-QQ_h2uLY.js → _page.svelte.js-Dj9b8P1z.js} +5 -5
  272. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-CXRWKo3P.js → _page.server.ts.js-Bz8pkYuh.js} +2 -2
  273. package/build/server/chunks/entries/pages/decisions/{_page.svelte.js-qMCvEgGA.js → _page.svelte.js-YyjtlO44.js} +2 -2
  274. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-D-1aBRuN.js → _page.server.ts.js-CtXan3mN.js} +2 -2
  275. package/build/server/chunks/entries/pages/deck/{_page.svelte.js-DzkYHCpZ.js → _page.svelte.js-DVTrGj3Q.js} +9 -9
  276. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-BRuDaWdJ.js → _page.server.ts.js-CCZA3TgM.js} +2 -2
  277. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-DjBDk3s3.js → _page.server.ts.js-Buqs7WP6.js} +3 -3
  278. package/build/server/chunks/entries/pages/harbour/{_page.svelte.js-Dn07qvbp.js → _page.svelte.js-DENXKPC9.js} +4 -4
  279. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-CktNvLc9.js → _page.server.ts.js-CGdJfmVT.js} +2 -2
  280. package/build/server/chunks/entries/pages/headroom/{_page.svelte.js-BCqroYDy.js → _page.svelte.js-CelEg5jn.js} +2 -2
  281. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-Bh5rSmWQ.js → _page.server.ts.js-DLl-PiDq.js} +2 -2
  282. package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-D78L2nEN.js → _page.svelte.js-BNKE-CgZ.js} +3 -3
  283. package/build/server/chunks/entries/pages/plugins/{_page.svelte.js-B72yXiY5.js → _page.svelte.js-9jAPCDsS.js} +2 -2
  284. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-3bNPjFIs.js → _page.server.ts.js-CjUpJ7UC.js} +2 -2
  285. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.svelte.js-DVsLy558.js → _page.svelte.js-BOXOQNGv.js} +3 -3
  286. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-BT2nXTtj.js → _page.server.ts.js-B0Lat6hb.js} +3 -3
  287. package/build/server/chunks/entries/pages/projects/_id_/{_page.svelte.js-yqfpFVPH.js → _page.svelte.js-D5g2l7TO.js} +29 -11
  288. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-q5hBV_mC.js → _page.server.ts.js-cfVa5Uch.js} +3 -3
  289. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.svelte.js-Dun2Or64.js → _page.svelte.js-BrbhOMCC.js} +6 -6
  290. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-C3kikzyV.js → _page.server.ts.js-KGX7CTI7.js} +4 -4
  291. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.svelte.js-ig-Sv-JG.js → _page.svelte.js-DZrL8l0R.js} +5 -5
  292. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-CCWM-tL4.js → _page.server.ts.js-DGBN6RCy.js} +2 -2
  293. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-DltlnXe3.js → _page.server.ts.js-Dv9zdlJZ.js} +2 -2
  294. package/build/server/chunks/entries/pages/remotes/{_page.svelte.js-jCBA0xmJ.js → _page.svelte.js-sCddteas.js} +3 -3
  295. package/build/server/chunks/entries/pages/second-mates/{_page.svelte.js-Et4qV5tx.js → _page.svelte.js-CDKYhCTE.js} +2 -2
  296. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-DdZqlPv6.js → _page.server.ts.js-Cn_8JJY-.js} +2 -2
  297. package/build/server/chunks/entries/pages/settings/cloud/{_page.svelte.js-ZcLxf_7V.js → _page.svelte.js-Dro6bd-Y.js} +3 -3
  298. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-5ONIqDlo.js → _page.server.ts.js-B3pc6bXY.js} +2 -2
  299. package/build/server/chunks/entries/pages/settings/gateway/{_page.svelte.js-8v9MwKXH.js → _page.svelte.js-CQn8Bq5q.js} +2 -2
  300. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-CJ-Dy3yY.js → _page.server.ts.js-Cbjqq4SF.js} +2 -2
  301. package/build/server/chunks/entries/pages/settings/plugins/{_page.svelte.js-BSltAEoV.js → _page.svelte.js-9Wsg_hlN.js} +2 -2
  302. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-Dv9lHzJT.js → _page.server.ts.js-C_4ZzqU-.js} +2 -2
  303. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-WHTvlcQv.js → _page.server.ts.js-q0vcB3BI.js} +2 -2
  304. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-CHwxeGkH.js → _page.server.ts.js-COz6T9EL.js} +2 -2
  305. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-BGgDzU1i.js → _page.server.ts.js-Cr3AzPl4.js} +3 -3
  306. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-B6ozuzhz.js → _page.server.ts.js-JrU3AaRi.js} +3 -3
  307. package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-DC_qob6p.js → _page.svelte.js-DLC9MNAa.js} +47 -17
  308. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CJumiccD.js → _page.server.ts.js-BTYpgJzg.js} +2 -2
  309. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.svelte.js-CbUrpRPl.js → _page.svelte.js-luOdgI2y.js} +3 -3
  310. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-TJvMD0bg.js → _page.server.ts.js-CXraK-SH.js} +2 -2
  311. package/build/server/chunks/{handler-BVGCYoR2.js → handler-CZ4GotX1.js} +3 -3
  312. package/build/server/chunks/{index.js-D-SVKFt2.js → index.js-uDoFMv-7.js} +2 -2
  313. package/build/server/chunks/{manifest.js-DTg2Aczg.js → manifest.js-DKbPtXcZ.js} +93 -93
  314. package/build/server/chunks/nodes/{0.js-CraBy0bz.js → 0.js-CnLDATFz.js} +9 -9
  315. package/build/server/chunks/nodes/{1.js-AV2LyV-i.js → 1.js-BOvj1HV-.js} +2 -2
  316. package/build/server/chunks/nodes/{10.js-CNEDDX1i.js → 10.js-C9hiF6bu.js} +2 -2
  317. package/build/server/chunks/nodes/{11.js-BI_wHzjD.js → 11.js-BKQYXR8p.js} +3 -3
  318. package/build/server/chunks/nodes/{12.js-De8_MGo6.js → 12.js-BEWQLtMe.js} +9 -9
  319. package/build/server/chunks/nodes/{13.js-Bw4wqGQ2.js → 13.js-C3Pz1ZQk.js} +10 -10
  320. package/build/server/chunks/nodes/{14.js-Cx6zaVcm.js → 14.js-TAeHzaET.js} +10 -10
  321. package/build/server/chunks/nodes/{15.js-BG_vsmft.js → 15.js-CUo0LrEd.js} +11 -11
  322. package/build/server/chunks/nodes/{16.js-B7yRKG9h.js → 16.js-C4ehY47A.js} +9 -9
  323. package/build/server/chunks/nodes/{17.js-CstBrPET.js → 17.js-CUsfxeUw.js} +7 -7
  324. package/build/server/chunks/nodes/{18.js-EZcejsT3.js → 18.js-cmn_YqN2.js} +3 -3
  325. package/build/server/chunks/nodes/{2.js-BAckDeYB.js → 2.js-BO30ovN8.js} +9 -9
  326. package/build/server/chunks/nodes/{20.js-Rq8bsbWR.js → 20.js-DaixtluU.js} +7 -7
  327. package/build/server/chunks/nodes/{21.js-34ONZmIF.js → 21.js-Bd83W9x4.js} +9 -9
  328. package/build/server/chunks/nodes/{22.js-DUmjfRfI.js → 22.js-CmVPxGdM.js} +9 -9
  329. package/build/server/chunks/nodes/{23.js-g3AyzgKA.js → 23.js-WgvZAYdg.js} +8 -8
  330. package/build/server/chunks/nodes/{24.js-DPRKHGV9.js → 24.js-BAc7-wS4.js} +9 -9
  331. package/build/server/chunks/nodes/{25.js-BFMFeTLp.js → 25.js-DwvF_zG9.js} +4 -4
  332. package/build/server/chunks/nodes/{26.js-CCSTPkaN.js → 26.js-IOWqYBrK.js} +9 -9
  333. package/build/server/chunks/nodes/{27.js-Ctr-vseZ.js → 27.js-DGfyrC_M.js} +10 -10
  334. package/build/server/chunks/nodes/{28.js-DrVpVt5r.js → 28.js-DOBmomrI.js} +10 -10
  335. package/build/server/chunks/nodes/{29.js-juDb6f-d.js → 29.js-CVey-iio.js} +8 -8
  336. package/build/server/chunks/nodes/{3.js-CFT26_XU.js → 3.js-CD1ZtOdp.js} +3 -3
  337. package/build/server/chunks/nodes/{4.js-8KwmJ9oR.js → 4.js-C0f_ufxf.js} +9 -9
  338. package/build/server/chunks/nodes/{5.js-_WaR4SgK.js → 5.js-BZm90NRq.js} +9 -9
  339. package/build/server/chunks/nodes/{6.js-BItrNEIV.js → 6.js-DbeRWacQ.js} +7 -7
  340. package/build/server/chunks/nodes/{7.js-B37QnipC.js → 7.js-GWtH5lRT.js} +10 -10
  341. package/build/server/chunks/nodes/{8.js-BZi6bb3D.js → 8.js-Cpcl7CMT.js} +9 -9
  342. package/build/server/chunks/nodes/{9.js-DglbcT3_.js → 9.js-5L5Q7aVJ.js} +9 -9
  343. package/dist/cli.js +1 -1
  344. package/dist/wh-vault.js +1 -1
  345. package/package.json +1 -1
  346. package/build/client/_app/immutable/chunks/0o6EA2k5.js.br +0 -0
  347. package/build/client/_app/immutable/chunks/0o6EA2k5.js.gz +0 -0
  348. package/build/client/_app/immutable/chunks/836-VH6o.js.br +0 -0
  349. package/build/client/_app/immutable/chunks/836-VH6o.js.gz +0 -0
  350. package/build/client/_app/immutable/chunks/B9IElmGa.js.br +0 -0
  351. package/build/client/_app/immutable/chunks/B9IElmGa.js.gz +0 -0
  352. package/build/client/_app/immutable/chunks/BCUUi0V0.js.br +0 -0
  353. package/build/client/_app/immutable/chunks/BCUUi0V0.js.gz +0 -0
  354. package/build/client/_app/immutable/chunks/BRBFVvza.js.br +0 -0
  355. package/build/client/_app/immutable/chunks/BRBFVvza.js.gz +0 -0
  356. package/build/client/_app/immutable/chunks/BaPx3dni.js.br +0 -0
  357. package/build/client/_app/immutable/chunks/BaPx3dni.js.gz +0 -0
  358. package/build/client/_app/immutable/chunks/BbjpG9pU.js.br +0 -0
  359. package/build/client/_app/immutable/chunks/BbjpG9pU.js.gz +0 -0
  360. package/build/client/_app/immutable/chunks/BfJfrrO8.js.br +0 -0
  361. package/build/client/_app/immutable/chunks/BfJfrrO8.js.gz +0 -0
  362. package/build/client/_app/immutable/chunks/Bfpz7mtR.js.br +0 -0
  363. package/build/client/_app/immutable/chunks/Bfpz7mtR.js.gz +0 -0
  364. package/build/client/_app/immutable/chunks/Bh_WiCgr.js.br +0 -0
  365. package/build/client/_app/immutable/chunks/Bh_WiCgr.js.gz +0 -0
  366. package/build/client/_app/immutable/chunks/Bk-GLf2s.js.br +0 -0
  367. package/build/client/_app/immutable/chunks/Bk-GLf2s.js.gz +0 -0
  368. package/build/client/_app/immutable/chunks/BnLsNzmq.js.br +0 -0
  369. package/build/client/_app/immutable/chunks/BnLsNzmq.js.gz +0 -0
  370. package/build/client/_app/immutable/chunks/BrQMQ1El.js.br +0 -0
  371. package/build/client/_app/immutable/chunks/BrQMQ1El.js.gz +0 -0
  372. package/build/client/_app/immutable/chunks/Brlhcoi0.js.br +0 -0
  373. package/build/client/_app/immutable/chunks/Brlhcoi0.js.gz +0 -0
  374. package/build/client/_app/immutable/chunks/Bryhm9jB.js.br +0 -0
  375. package/build/client/_app/immutable/chunks/Bryhm9jB.js.gz +0 -0
  376. package/build/client/_app/immutable/chunks/CJRtKjLj.js.br +0 -0
  377. package/build/client/_app/immutable/chunks/CJRtKjLj.js.gz +0 -0
  378. package/build/client/_app/immutable/chunks/COztkpM6.js.br +0 -0
  379. package/build/client/_app/immutable/chunks/COztkpM6.js.gz +0 -0
  380. package/build/client/_app/immutable/chunks/CWiS3deB.js.br +0 -0
  381. package/build/client/_app/immutable/chunks/CWiS3deB.js.gz +0 -0
  382. package/build/client/_app/immutable/chunks/Ckm9z0eO.js.br +0 -0
  383. package/build/client/_app/immutable/chunks/Ckm9z0eO.js.gz +0 -0
  384. package/build/client/_app/immutable/chunks/DOKpGhvh.js.br +0 -0
  385. package/build/client/_app/immutable/chunks/DOKpGhvh.js.gz +0 -0
  386. package/build/client/_app/immutable/chunks/DoOMh9hC.js.br +0 -0
  387. package/build/client/_app/immutable/chunks/DoOMh9hC.js.gz +0 -0
  388. package/build/client/_app/immutable/chunks/DsnT-RPG.js.br +0 -2
  389. package/build/client/_app/immutable/chunks/DsnT-RPG.js.gz +0 -0
  390. package/build/client/_app/immutable/chunks/DuX2xyeV.js.br +0 -0
  391. package/build/client/_app/immutable/chunks/DuX2xyeV.js.gz +0 -0
  392. package/build/client/_app/immutable/chunks/DvD2Hmi1.js.br +0 -0
  393. package/build/client/_app/immutable/chunks/DvD2Hmi1.js.gz +0 -0
  394. package/build/client/_app/immutable/chunks/DzHrCFqI.js.br +0 -0
  395. package/build/client/_app/immutable/chunks/DzHrCFqI.js.gz +0 -0
  396. package/build/client/_app/immutable/chunks/MsjsSW3C.js.br +0 -0
  397. package/build/client/_app/immutable/chunks/MsjsSW3C.js.gz +0 -0
  398. package/build/client/_app/immutable/chunks/uQ_tQtGP.js.br +0 -0
  399. package/build/client/_app/immutable/chunks/uQ_tQtGP.js.gz +0 -0
  400. package/build/client/_app/immutable/entry/app.DlrjWkNw.js.br +0 -0
  401. package/build/client/_app/immutable/entry/app.DlrjWkNw.js.gz +0 -0
  402. package/build/client/_app/immutable/entry/start.BscJWBs_.js +0 -1
  403. package/build/client/_app/immutable/entry/start.BscJWBs_.js.br +0 -0
  404. package/build/client/_app/immutable/entry/start.BscJWBs_.js.gz +0 -0
  405. package/build/client/_app/immutable/nodes/0.G3KQrG5D.js.br +0 -0
  406. package/build/client/_app/immutable/nodes/0.G3KQrG5D.js.gz +0 -0
  407. package/build/client/_app/immutable/nodes/1.EjzZdjNu.js.br +0 -0
  408. package/build/client/_app/immutable/nodes/1.EjzZdjNu.js.gz +0 -0
  409. package/build/client/_app/immutable/nodes/10.C2kPvtXn.js.br +0 -0
  410. package/build/client/_app/immutable/nodes/10.C2kPvtXn.js.gz +0 -0
  411. package/build/client/_app/immutable/nodes/11.BE5NFrbF.js.br +0 -0
  412. package/build/client/_app/immutable/nodes/11.BE5NFrbF.js.gz +0 -0
  413. package/build/client/_app/immutable/nodes/12.BGfAum68.js.br +0 -0
  414. package/build/client/_app/immutable/nodes/12.BGfAum68.js.gz +0 -0
  415. package/build/client/_app/immutable/nodes/13.Dx4cgn3i.js +0 -3
  416. package/build/client/_app/immutable/nodes/13.Dx4cgn3i.js.br +0 -0
  417. package/build/client/_app/immutable/nodes/13.Dx4cgn3i.js.gz +0 -0
  418. package/build/client/_app/immutable/nodes/14.Dyi9692a.js.br +0 -0
  419. package/build/client/_app/immutable/nodes/14.Dyi9692a.js.gz +0 -0
  420. package/build/client/_app/immutable/nodes/15.LsZixPIA.js.br +0 -0
  421. package/build/client/_app/immutable/nodes/15.LsZixPIA.js.gz +0 -0
  422. package/build/client/_app/immutable/nodes/16.B3vT83OU.js.br +0 -0
  423. package/build/client/_app/immutable/nodes/16.B3vT83OU.js.gz +0 -0
  424. package/build/client/_app/immutable/nodes/17.f8lqwu65.js.br +0 -0
  425. package/build/client/_app/immutable/nodes/17.f8lqwu65.js.gz +0 -0
  426. package/build/client/_app/immutable/nodes/18.B8EAJ1ic.js.br +0 -0
  427. package/build/client/_app/immutable/nodes/18.B8EAJ1ic.js.gz +0 -0
  428. package/build/client/_app/immutable/nodes/2.BAH_oBNX.js.br +0 -0
  429. package/build/client/_app/immutable/nodes/2.BAH_oBNX.js.gz +0 -0
  430. package/build/client/_app/immutable/nodes/20.DoUYBfHV.js.br +0 -6
  431. package/build/client/_app/immutable/nodes/20.DoUYBfHV.js.gz +0 -0
  432. package/build/client/_app/immutable/nodes/21.Wq1bxLh7.js.br +0 -0
  433. package/build/client/_app/immutable/nodes/21.Wq1bxLh7.js.gz +0 -0
  434. package/build/client/_app/immutable/nodes/22.BRWQTrNx.js.br +0 -0
  435. package/build/client/_app/immutable/nodes/22.BRWQTrNx.js.gz +0 -0
  436. package/build/client/_app/immutable/nodes/23.DPF8UpES.js.br +0 -0
  437. package/build/client/_app/immutable/nodes/23.DPF8UpES.js.gz +0 -0
  438. package/build/client/_app/immutable/nodes/24.DS_Z0W-Q.js.br +0 -0
  439. package/build/client/_app/immutable/nodes/24.DS_Z0W-Q.js.gz +0 -0
  440. package/build/client/_app/immutable/nodes/25.BHK4xoDF.js.br +0 -0
  441. package/build/client/_app/immutable/nodes/25.BHK4xoDF.js.gz +0 -0
  442. package/build/client/_app/immutable/nodes/26.isUdEHj4.js.br +0 -0
  443. package/build/client/_app/immutable/nodes/26.isUdEHj4.js.gz +0 -0
  444. package/build/client/_app/immutable/nodes/27.BGLZI4Jt.js +0 -3
  445. package/build/client/_app/immutable/nodes/27.BGLZI4Jt.js.br +0 -0
  446. package/build/client/_app/immutable/nodes/27.BGLZI4Jt.js.gz +0 -0
  447. package/build/client/_app/immutable/nodes/28.Uh0zu7Y2.js.br +0 -0
  448. package/build/client/_app/immutable/nodes/28.Uh0zu7Y2.js.gz +0 -0
  449. package/build/client/_app/immutable/nodes/29.DWdG8AFx.js.br +0 -0
  450. package/build/client/_app/immutable/nodes/29.DWdG8AFx.js.gz +0 -0
  451. package/build/client/_app/immutable/nodes/3.ci45MR89.js.br +0 -0
  452. package/build/client/_app/immutable/nodes/3.ci45MR89.js.gz +0 -0
  453. package/build/client/_app/immutable/nodes/4.iVqapXGG.js.br +0 -0
  454. package/build/client/_app/immutable/nodes/4.iVqapXGG.js.gz +0 -0
  455. package/build/client/_app/immutable/nodes/5.DrZvA3bh.js.br +0 -0
  456. package/build/client/_app/immutable/nodes/5.DrZvA3bh.js.gz +0 -0
  457. package/build/client/_app/immutable/nodes/7.DVSym27K.js.br +0 -0
  458. package/build/client/_app/immutable/nodes/7.DVSym27K.js.gz +0 -0
  459. package/build/client/_app/immutable/nodes/8.DoNN1dXV.js.br +0 -0
  460. package/build/client/_app/immutable/nodes/8.DoNN1dXV.js.gz +0 -0
  461. package/build/client/_app/immutable/nodes/9.6DKcK8s9.js.br +0 -0
  462. package/build/client/_app/immutable/nodes/9.6DKcK8s9.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import"./DsnmJJEf.js";import{m as g,g as l,v as d,p as X,u as W,A as L,f as Z,s as tt,t as q,a as N,b as et,i as _,o as st,d as nt,c as K,q as C}from"./BO53-aYh.js";import{i as rt}from"./tbcmS-db.js";import{s as ot}from"./DM1S1Fkj.js";import{b as it}from"./Gfq2dV68.js";import{p as P}from"./CJuHocDw.js";import{p as at}from"./DsnT-RPG.js";import{S as A}from"./BXN538J3.js";import{r as D}from"./xjN9NojQ.js";import{w as ut}from"./Bryhm9jB.js";import{t as ct}from"./Bmo4YW_l.js";const lt=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),dt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function ht(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function mt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!lt.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return dt(s)?s:null}function F(e,t){const s=mt(e);if(s===null||t.reserved?.includes(s))return e;const r=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${r.pathname}${r.search}${r.hash}`}const V=new Set(["127.0.0.1","localhost"]);function se(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let r=!0;try{r=new URL(e).origin===t}catch{}return r?s:`${s} allow-same-origin`}const ft=e=>Number.isInteger(e)&&e>=1&&e<=65535;function pt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!V.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return ft(s)?s:null}function gt(e,t,s){const r=t?pt(e):null;if(r===null||!t)return e;const n=s.port||(s.protocol==="https:"?"443":"80");if(V.has(s.hostname.toLowerCase())&&String(r)===n)return e;const i=new URL(e),a=t.replace("{port}",String(r));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class yt{#t=g(null);get to(){return l(this.#t)}set to(t){d(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){d(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){d(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?D(t,this.remote,location.origin):this.hosted?F(t,this.hosted):this.to?gt(t,this.to,location):t}sandbox(t){return this.remote?D(t,this.remote,location.origin):this.hosted&&ht(this.hosted.pattern)?F(t,{pattern:this.hosted.pattern}):t}}const R=new yt;function ne(e){const t=r=>{if(!R.active)return;const n=r.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!n)return;const i=R.view(n.href);i!==n.href&&(n.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const r of s)e.addEventListener(r,t,!0);return()=>{for(const r of s)e.removeEventListener(r,t,!0)}}async function kt(e,t,s,r=`wh-${crypto.randomUUID()}`){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":r,[A]:s},body:JSON.stringify(t)});if(n.ok){const a=await n.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:n.status===202}}return{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function bt(e,t,s){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),n=await r.json().catch(()=>null);return r.ok&&Array.isArray(n?.points)?{ok:!0,points:n.points}:{ok:!1,error:n?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const wt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function vt(e){try{const t=await fetch(`/api/services?${wt(e)}`);return t.ok?await t.json():null}catch{return null}}async function St(e,t,s=null){const r=window.open("","_blank");try{r?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let n=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});n=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{n=null}const i=n?.state==="running"?s??n.url:null;if(i){const a=R.view(i);r?r.location.href=a:window.open(a,"_blank")}else r?.close();return n}const xt=5e3,U=new Map;function _t(e,t){let s=U.get(e);return s||(s=t(e).catch(r=>{throw U.delete(e),r}),U.set(e,s)),s}const J=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function Et(e,t){const s=e.pluginId,r=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const h=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof h=="string"&&h?h:null}},n=i=>{const a=typeof i=="object"&&i!==null?i:{},h=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return h?{taskId:h,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(r(i,a.project)),launch:async(i,a={})=>t.launch(r(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=n(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=n(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Tt(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await _t(t.ui,t.importer??(n=>import(n)))}catch(n){throw new Error(`its UI bundle did not load (${n instanceof Error?n.message:String(n)})`)}let r;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((n,i)=>{r=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??xt)})])}finally{clearTimeout(r)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var At=K('<p class="text-sm text-muted-foreground"> </p>'),jt=K('<div class="contents"></div> <!>',1);function re(e,t){X(t,!0);let s=P(t,"preview",3,void 0),r=P(t,"quiet",3,!1);const n=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),h=g(null),b=g(null);W(()=>{if(!l(a)||!l(n))return;const k=l(a);let v=!1,T=null;return d(b,null),Tt(k,{tag:l(n),ui:l(i),data:L(()=>t.data),entry:L(()=>t.entry),host:Et(L(()=>t.entry),{status:vt,launch:St,feedback:kt,summarise:bt,token:()=>at.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():d(h,o,!0)},o=>{v||d(b,o.message,!0)}),()=>{v=!0,T?.remove(),d(h,null)}}),W(()=>{l(h)&&(s()!==void 0&&(l(h).preview=s()),l(h).entry=t.entry,l(h).data=t.data)});var y=jt(),x=Z(y);it(x,k=>d(a,k),()=>l(a));var E=tt(x,2);{var w=k=>{var v=At(),T=st(v);q(()=>nt(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),N(k,v)};rt(E,k=>{l(b)&&!r()&&k(w)})}q(()=>ot(x,"data-plugin-element",l(n))),N(e,y),et()}const It=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,H=/^\[Request interrupted by user/,$t=/\u001b\[[0-9;?]*[A-Za-z]/g,O=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
1
+ import"./DsnmJJEf.js";import{m as g,g as l,v as d,p as X,u as W,A as L,f as Z,s as tt,t as q,a as N,b as et,i as _,o as st,d as nt,c as K,q as C}from"./BO53-aYh.js";import{i as rt}from"./tbcmS-db.js";import{s as ot}from"./DM1S1Fkj.js";import{b as it}from"./Gfq2dV68.js";import{p as P}from"./CJuHocDw.js";import{p as at}from"./Rw-QdBqX.js";import{S as A}from"./BXN538J3.js";import{r as D}from"./xjN9NojQ.js";import{w as ut}from"./BBzstCoB.js";import{t as ct}from"./Bmo4YW_l.js";const lt=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),dt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function ht(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function mt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!lt.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return dt(s)?s:null}function F(e,t){const s=mt(e);if(s===null||t.reserved?.includes(s))return e;const r=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${r.pathname}${r.search}${r.hash}`}const V=new Set(["127.0.0.1","localhost"]);function se(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let r=!0;try{r=new URL(e).origin===t}catch{}return r?s:`${s} allow-same-origin`}const ft=e=>Number.isInteger(e)&&e>=1&&e<=65535;function pt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!V.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return ft(s)?s:null}function gt(e,t,s){const r=t?pt(e):null;if(r===null||!t)return e;const n=s.port||(s.protocol==="https:"?"443":"80");if(V.has(s.hostname.toLowerCase())&&String(r)===n)return e;const i=new URL(e),a=t.replace("{port}",String(r));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class yt{#t=g(null);get to(){return l(this.#t)}set to(t){d(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){d(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){d(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?D(t,this.remote,location.origin):this.hosted?F(t,this.hosted):this.to?gt(t,this.to,location):t}sandbox(t){return this.remote?D(t,this.remote,location.origin):this.hosted&&ht(this.hosted.pattern)?F(t,{pattern:this.hosted.pattern}):t}}const R=new yt;function ne(e){const t=r=>{if(!R.active)return;const n=r.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!n)return;const i=R.view(n.href);i!==n.href&&(n.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const r of s)e.addEventListener(r,t,!0);return()=>{for(const r of s)e.removeEventListener(r,t,!0)}}async function kt(e,t,s,r=`wh-${crypto.randomUUID()}`){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":r,[A]:s},body:JSON.stringify(t)});if(n.ok){const a=await n.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:n.status===202}}return{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function bt(e,t,s){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),n=await r.json().catch(()=>null);return r.ok&&Array.isArray(n?.points)?{ok:!0,points:n.points}:{ok:!1,error:n?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const wt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function vt(e){try{const t=await fetch(`/api/services?${wt(e)}`);return t.ok?await t.json():null}catch{return null}}async function St(e,t,s=null){const r=window.open("","_blank");try{r?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let n=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});n=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{n=null}const i=n?.state==="running"?s??n.url:null;if(i){const a=R.view(i);r?r.location.href=a:window.open(a,"_blank")}else r?.close();return n}const xt=5e3,U=new Map;function _t(e,t){let s=U.get(e);return s||(s=t(e).catch(r=>{throw U.delete(e),r}),U.set(e,s)),s}const J=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function Et(e,t){const s=e.pluginId,r=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const h=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof h=="string"&&h?h:null}},n=i=>{const a=typeof i=="object"&&i!==null?i:{},h=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return h?{taskId:h,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(r(i,a.project)),launch:async(i,a={})=>t.launch(r(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=n(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=n(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Tt(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await _t(t.ui,t.importer??(n=>import(n)))}catch(n){throw new Error(`its UI bundle did not load (${n instanceof Error?n.message:String(n)})`)}let r;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((n,i)=>{r=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??xt)})])}finally{clearTimeout(r)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var At=K('<p class="text-sm text-muted-foreground"> </p>'),jt=K('<div class="contents"></div> <!>',1);function re(e,t){X(t,!0);let s=P(t,"preview",3,void 0),r=P(t,"quiet",3,!1);const n=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),h=g(null),b=g(null);W(()=>{if(!l(a)||!l(n))return;const k=l(a);let v=!1,T=null;return d(b,null),Tt(k,{tag:l(n),ui:l(i),data:L(()=>t.data),entry:L(()=>t.entry),host:Et(L(()=>t.entry),{status:vt,launch:St,feedback:kt,summarise:bt,token:()=>at.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():d(h,o,!0)},o=>{v||d(b,o.message,!0)}),()=>{v=!0,T?.remove(),d(h,null)}}),W(()=>{l(h)&&(s()!==void 0&&(l(h).preview=s()),l(h).entry=t.entry,l(h).data=t.data)});var y=jt(),x=Z(y);it(x,k=>d(a,k),()=>l(a));var E=tt(x,2);{var w=k=>{var v=At(),T=st(v);q(()=>nt(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),N(k,v)};rt(E,k=>{l(b)&&!r()&&k(w)})}q(()=>ot(x,"data-plugin-element",l(n))),N(e,y),et()}const It=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,H=/^\[Request interrupted by user/,$t=/\u001b\[[0-9;?]*[A-Za-z]/g,O=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
2
2
  `)[0].trim(),Lt=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function Ut(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||M(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:O(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:O(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:O(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:Lt(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:M(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||M(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function Ot(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
3
3
  `):""}const I=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),Mt=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,B=e=>{const t=e.match(Mt);return t&&I(t[1])||null};function $(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function Y(e){const t=$(e,"command-name");if(!t)return null;const s=$(e,"command-args");return s?`${t} ${s}`:t}function Rt(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(r=>({label:String(r?.label??""),description:String(r?.description??"")}))}))}function Wt(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([n,i])=>[n,String(i)]));const r={};for(const n of t.matchAll(/"([^"]+)"="([^"]*)"/g))r[n[1]]=n[2];return r}function qt(e){const t=[],s=new Map,r=new Map;let n=null,i=null,a=null,h=null,b=!1;const y=()=>{i=null},x=o=>(i||(i={kind:"turn",id:o.uuid,parts:[],at:o.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:b?"background":"captain"},b=!1,t.push(i),a=i),i),E=o=>{const p=x(o),u=p.parts[p.parts.length-1];if(u?.kind==="activity")return u;const c={kind:"activity",id:`${o.uuid}-a`,steps:[]};return p.parts.push(c),c},w=(o,p,u={})=>{y(),b=!1,t.push({kind:"user",id:o.uuid,text:p,at:o.timestamp,queued:!!u.queued,command:!!u.command})},k=(o,p,u,c=o.uuid)=>{i&&E(o).steps.push({kind:"context",id:c,label:p,detail:u})};for(const o of e){if(!o||typeof o!="object"||o.isSidechain)continue;const p=o.timestamp??null;switch(o.type){case"ai-title":n=o.aiTitle??n;break;case"user":{const u=o.message?.content;if(typeof u=="string")if(o.origin?.kind==="task-notification"||u.trimStart().startsWith("<task-notification>"))y(),b=!0;else if(o.isMeta){const c=B(u);c?w(o,c,{queued:!0}):k(o,"Context added",u)}else if(H.test(u.trim()))a&&(a.interrupted=!0);else{const c=Y(u);if(c)w(o,c,{command:!0});else if(!u.includes("<local-command-stdout>")){const m=I(u);m&&w(o,m)}}else if(Array.isArray(u))for(const c of u)if(c?.type==="tool_result"){const m=Ot(c.content),f=s.get(c.tool_use_id);f&&(f.result=m,f.isError=!!c.is_error);const S=r.get(c.tool_use_id);S&&(S.answers=c.is_error?{}:Wt(o,m))}else if(c?.type==="text"){const m=String(c.text??""),f=B(m);if(H.test(m.trim()))a&&(a.interrupted=!0);else if(f)w(o,f,{queued:!0});else if(o.isMeta||o.sourceToolUseID){const S=m.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";k(o,S,m,`${o.uuid}-${S}`)}else{const S=I(m);S&&w(o,S)}}else c?.type==="image"&&w(o,"[image]");break}case"assistant":{for(const u of o.message?.content??[])if(u?.type==="thinking"||u?.type==="redacted_thinking"){const c=h&&p?Date.parse(p)-Date.parse(h):null;E(o).steps.push({kind:"thinking",id:`${o.uuid}-th`,ms:c})}else if(u?.type==="tool_use"&&u.name==="AskUserQuestion"){const c={kind:"question",id:u.id,questions:Rt(u.input),answers:null};r.set(u.id,c),x(o).parts.push(c)}else if(u?.type==="tool_use"){const c=Ut(String(u.name),u.input??{}),m={kind:"tool",id:u.id,name:String(u.name),...c,input:u.input,result:null,isError:!1};s.set(u.id,m),E(o).steps.push(m)}else if(u?.type==="text"){if(!String(u.text??"").trim())continue;x(o).parts.push({kind:"text",id:`${o.uuid}-t`,text:u.text})}break}case"attachment":{const u=o.attachment??{};if(u.type==="queued_command"&&typeof u.prompt=="string"&&(u.commandMode??"prompt")==="prompt"){const c=I(u.prompt);c&&w(o,c,{queued:!0})}else if(u.type==="hook_additional_context"){const c=Array.isArray(u.content)?u.content.join(`
4
4
  `):String(u.content??"");k(o,`Hook added context${u.hookEvent?` (${u.hookEvent})`:""}`,c)}break}case"system":{if(o.subtype==="turn_duration")a&&(a.durationMs=o.durationMs??null,a.done=!0),y();else if(o.subtype==="away_summary")y(),t.push({kind:"notice",id:o.uuid,title:"While you were away",detail:String(o.content??""),at:o.timestamp});else if(o.subtype==="local_command"){const u=String(o.content??""),c=$(u,"local-command-stdout")??$(u,"local-command-stderr"),m=Y(u);if(m)w(o,m,{command:!0});else if(c!==null){const f=c.replace($t,"").trim();f&&t.push({kind:"output",id:o.uuid,text:f,at:o.timestamp})}}break}}p&&(h=p)}const v=[];return{items:t.filter((o,p)=>{if(o.kind!=="turn"||o.trigger!=="background")return!0;const u=o.parts.filter(f=>f.kind==="text").map(f=>f.text).join(`
@@ -1 +1 @@
1
- import{m as o,g as h,v as c,q as g}from"./BO53-aYh.js";import{p}from"./DsnT-RPG.js";const w=5e3,y=3e3;function v(m,e,r){let n="connecting",a=null,t=null,s=null;const l=i=>{n=i,r(i)},d=()=>{t&&clearTimeout(t),t=null,l("lost")},u=()=>{s=null;const i=new EventSource(m);a=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),d(),s??=setTimeout(u,y);return}n!=="lost"&&l("connecting"),t??=setTimeout(d,w)}),e(i)};return u(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),a?.close(),a=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",b=2*6e4;class A{#e=o(null);get fleet(){return h(this.#e)}set fleet(e){c(this.#e,e,!0)}#t=o(null);get health(){return h(this.#t)}set health(e){c(this.#t,e,!0)}#s=o(null);get messages(){return h(this.#s)}set messages(e){c(this.#s,e,!0)}#r=o(null);get crew(){return h(this.#r)}set crew(e){c(this.#r,e,!0)}#a=o("connecting");get connection(){return h(this.#a)}set connection(e){c(this.#a,e,!0)}#n=o(g(Date.now()));get now(){return h(this.#n)}set now(e){c(this.#n,e,!0)}#l=o(0);get revision(){return h(this.#l)}set revision(e){c(this.#l,e,!0)}#i=o(!1);get leader(){return h(this.#i)}set leader(e){c(this.#i,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),n=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),n(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=a=>{const t=a.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const r=new AbortController;let n=()=>{};return navigator.locks.request(S,{signal:r.signal},()=>{const a=this.lead();return new Promise(t=>{n=()=>{a(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{r.abort(),n(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=a=>{this.connection=a,this.post({t:"connection",state:a})},n=v("/api/events",a=>{const t=(s,l)=>a.addEventListener(s,d=>{const u=l(JSON.parse(d.data));this.remember(u),this.apply(u),this.post({t:"event",e:u}),u.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("crew",s=>({type:"crew",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const d=this.claim(l);return{alert:l,fresh:d&&Date.now()-Date.parse(l.at)<=b}})}))},e);return()=>{n(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const r of e.data)this.recentAlerts.set(r.alert.id,r.alert);else this.latest[e.type]=e.data;for(const r of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(r)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(r=>({alert:r,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const r=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,r)for(const n of this.restartListeners)n();break}default:for(const r of this.alertListeners)r(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new A;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}function I(){return f.crew??p.data.crew??null}export{I as a,M as b,k as c,C as d,f as l,v as w};
1
+ import{m as o,g as h,v as c,q as g}from"./BO53-aYh.js";import{p}from"./Rw-QdBqX.js";const w=5e3,y=3e3;function v(m,e,r){let n="connecting",a=null,t=null,s=null;const l=i=>{n=i,r(i)},d=()=>{t&&clearTimeout(t),t=null,l("lost")},u=()=>{s=null;const i=new EventSource(m);a=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),d(),s??=setTimeout(u,y);return}n!=="lost"&&l("connecting"),t??=setTimeout(d,w)}),e(i)};return u(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),a?.close(),a=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",b=2*6e4;class A{#e=o(null);get fleet(){return h(this.#e)}set fleet(e){c(this.#e,e,!0)}#t=o(null);get health(){return h(this.#t)}set health(e){c(this.#t,e,!0)}#s=o(null);get messages(){return h(this.#s)}set messages(e){c(this.#s,e,!0)}#r=o(null);get crew(){return h(this.#r)}set crew(e){c(this.#r,e,!0)}#a=o("connecting");get connection(){return h(this.#a)}set connection(e){c(this.#a,e,!0)}#n=o(g(Date.now()));get now(){return h(this.#n)}set now(e){c(this.#n,e,!0)}#l=o(0);get revision(){return h(this.#l)}set revision(e){c(this.#l,e,!0)}#i=o(!1);get leader(){return h(this.#i)}set leader(e){c(this.#i,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),n=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),n(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=a=>{const t=a.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const r=new AbortController;let n=()=>{};return navigator.locks.request(S,{signal:r.signal},()=>{const a=this.lead();return new Promise(t=>{n=()=>{a(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{r.abort(),n(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=a=>{this.connection=a,this.post({t:"connection",state:a})},n=v("/api/events",a=>{const t=(s,l)=>a.addEventListener(s,d=>{const u=l(JSON.parse(d.data));this.remember(u),this.apply(u),this.post({t:"event",e:u}),u.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("crew",s=>({type:"crew",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const d=this.claim(l);return{alert:l,fresh:d&&Date.now()-Date.parse(l.at)<=b}})}))},e);return()=>{n(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const r of e.data)this.recentAlerts.set(r.alert.id,r.alert);else this.latest[e.type]=e.data;for(const r of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(r)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(r=>({alert:r,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const r=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,r)for(const n of this.restartListeners)n();break}default:for(const r of this.alertListeners)r(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new A;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}function I(){return f.crew??p.data.crew??null}export{I as a,M as b,k as c,C as d,f as l,v as w};
@@ -1,2 +1,2 @@
1
- import{l as ee}from"./Bryhm9jB.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as i,o as D,b as oe}from"./BO53-aYh.js";import{i as g}from"./tbcmS-db.js";import{a as A,e as H,f as J,k as re,l as ie,r as ne,s as le}from"./DM1S1Fkj.js";import{L as Y}from"./BElRY1Sf.js";import{C as B}from"./BnISbURV.js";import{a as pe}from"./DIlYBT-z.js";import{p as G}from"./CJuHocDw.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>d("/api/plugins/updates",null),Ne=e=>d("/api/plugins/updates",e),Oe=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Ae=(e,a)=>d("/api/plugins/inspect",a,e),Fe=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Le=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function De(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const He=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Je=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Ye=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
1
+ import{l as ee}from"./BBzstCoB.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as i,o as D,b as oe}from"./BO53-aYh.js";import{i as g}from"./tbcmS-db.js";import{a as A,e as H,f as J,k as re,l as ie,r as ne,s as le}from"./DM1S1Fkj.js";import{L as Y}from"./BElRY1Sf.js";import{C as B}from"./BnISbURV.js";import{a as pe}from"./DIlYBT-z.js";import{p as G}from"./CJuHocDw.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>d("/api/plugins/updates",null),Ne=e=>d("/api/plugins/updates",e),Oe=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Ae=(e,a)=>d("/api/plugins/inspect",a,e),Fe=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Le=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function De(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const He=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Je=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Ye=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
2
2
  change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Be(e,a){var s=de(),p=h(s),v=h(p),w=h(v);{var I=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},R=o=>{B(o,{class:"size-4 text-success"})};g(w,o=>{a.phase==="saving"?o(I):o(R,-1)})}var r=f(w,1,!0);b(v);var _=f(v,2),S=h(_);{var j=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},E=o=>{B(o,{class:"size-4 text-success"})},N=o=>{var P=ce();l(o,P)};g(S,o=>{a.phase==="restarting"||a.phase==="slow"?o(j):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var q=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(q)})}b(s),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,s)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Ge=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true">&nbsp;*</span>'),fe=u('<span class="text-muted-foreground">&nbsp;(optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Ke(e,a){se(a,!0);let s=G(a,"answers",15),p=G(a,"disabled",3,!1);const v="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,R=>R.key,(R,r)=>{var _=ke(),S=h(_),j=h(S,!0),E=f(j);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{i(r).required?n(N):n(O,-1)})}b(S);var q=f(S,2);{var o=n=>{var t=be();A(t,1,J(v));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{i(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),C=W(m);H(C,17,()=>i(r).options,y=>y.value,(y,F)=>{var U=_e(),$=D(U,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(U.value=(U.__value=T)??"")}),l(y,U)}),l(c,m)},Z=c=>{var m=he(),C=W(m);C.value=C.__value="yes";var y=f(C,2);y.value=y.__value="no",l(c,m)};g(V,c=>{i(r).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=i(r).required,t.disabled=p()}),ie(t,()=>s()[i(r).key],c=>s(s()[i(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(v)),k(()=>{le(t,"inputmode",i(r).type==="number"?"decimal":void 0),t.required=i(r).required,t.disabled=p()}),pe(t,()=>s()[i(r).key],x=>s(s()[i(r).key]=x,!0)),l(n,t)};g(q,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(q,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${i(r).description??""??""}${i(r).type==="list"?`${i(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(i(r).description||i(r).type==="list")&&n(M)})}b(_),k(()=>z(j,i(r).title)),l(R,_)}),l(e,w),oe()}export{Be as C,Ke as S,Ge as a,De as b,He as c,ve as d,Ae as e,Ne as f,Je as g,Te as h,Fe as i,Ye as l,Oe as m,Ee as p,We as r,Le as u};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{p as O,h as C,g as R,s as j,r as W,t as H,d as P,a as F,b as U,i as Y,c as B}from"./BO53-aYh.js";import{c as G}from"./CrUt1p9N.js";import{a as J}from"./DM1S1Fkj.js";import{a as Q}from"./BCUUi0V0.js";import{L as _,l as z,n as V,a as I,s as k,h as K,c as g}from"./BUYzAikv.js";import{P as X,u as Z}from"./Cl68Rk3P.js";import{A as ee}from"./BVIK2EmQ.js";import{C as te}from"./D1r1cOUJ.js";import{S as ne}from"./BK1l_p_h.js";import{T as se}from"./BiNDkSvJ.js";import{H as ae}from"./BIb9G8kN.js";const m=[{key:"queued",label:"Queued",hint:"Waiting its turn"},{key:"building",label:"Building",hint:"The crew is writing it"},{key:"testing",label:"Testing",hint:"Checks and review"},{key:"pr",label:"Pull request",hint:"In CI or with you"},{key:"landed",label:"Landed",hint:"In the last day"}],A={queued:"queued",building:"building",checks:"testing",pr:"pr",review:"pr",landed:"landed"};function b(e){if(e.status==="queued")return"queued";if(e.status==="landed")return"landed";const t=e.passage.steps;for(let s=Math.min(e.passage.current,t.length-1);s>=0;s--){const a=A[t[s].column]??A[t[s].key];if(a)return a}return"building"}const $e={you:"Waiting on you",stuck:"Stuck",firstmate:"With Firstmate",busy:"Busy",idle:"Idle",landed:"Landed"};function re(e){return e.status==="landed"?"landed":V(e)?"you":I(e)||e.passage.steps[e.passage.current]?.failed||e.pipeline?.outcome==="failed"?"stuck":e.status==="with-firstmate"?"firstmate":e.busy?"busy":"idle"}const $={you:0,stuck:1,firstmate:2,busy:3,idle:4,landed:5},ie=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function y(e,t=b(e)){return t==="landed"?z(e):t==="testing"?ie(e.pipeline?.startedAt):null}function Le(e,t,s){const a=new Map;for(const r of t){if(r.status==="closed")continue;const i=b(r),o=r.passage.steps[r.passage.current]?.key??null,n=e.get(r.id);if(!n||n.lane!==i){a.set(r.id,n?{lane:i,step:o,laneSince:s,stepSince:s}:{lane:i,step:o,laneSince:y(r,i),stepSince:null});continue}const l=n.laneSince??y(r,i);a.set(r.id,n.step!==o?{...n,step:o,laneSince:l,stepSince:s}:l!==n.laneSince?{...n,laneSince:l}:n)}return a}const p=3600*1e3,L=.35;function oe(e,t){if(e===null)return L;const s=t-e;if(s<=p)return 1;const a=Math.min(1,(s-p)/(_-p));return 1-(1-L)*a}function xe(e,t,s){const a=new Map(m.map(n=>[n.key,[]])),r={you:0,stuck:0,firstmate:0,busy:0,idle:0,landed:0};let i=0;for(const n of e){if(n.status==="closed")continue;const l=b(n),d=s?.get(n.id),c=d?d.laneSince:y(n,l),f=re(n);if(n.status==="landed"&&(c===null||t-c>_)){i++;continue}r[f]++,a.get(l).push({id:n.id,task:n,lane:l,signal:f,since:c,stepSince:d?.stepSince??null,opacity:f==="landed"?oe(c,t):1})}const o=(n,l)=>n.lane==="landed"?(l.since??0)-(n.since??0):$[n.signal]-$[l.signal]||(n.since??1/0)-(l.since??1/0)||n.id.localeCompare(l.id);return{lanes:m.map(n=>({...n,blips:a.get(n.key).sort(o)})),landedOlder:i,counts:r}}const ve=e=>m.find(t=>t.key===e).label;function ue(e,t){if(e===null)return"unknown";const s=Math.max(0,Math.round((t-e)/6e4));if(s<1)return"under a minute";if(s<60)return`${s} min`;const a=Math.round(s/60);return a<48?`${a} h`:`${Math.round(a/24)} days`}const w=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t},S=["needs-you","held-up","new","under-way","quiet"],le=S.filter(e=>e!=="new"),de=14,ce={"needs-you":"Needs you","held-up":"Held up",new:"New","under-way":"Under way",quiet:"Quiet"},q=e=>!!e.passage.steps[e.passage.current]?.failed;function Me(e,t,s){const a=k(t,"under-way"),r=K(a,s),i=u=>I(u)||q(u),o=r.underWay.filter(i),n=[...r.underWay.filter(u=>!i(u)),...r.waitingOnFirstmate,...r.waitingOnReviewers],l=k(t,"completed"),d=l.filter(u=>u.status==="landed"),c=d.filter(u=>{const T=g(u);return T!==null&&s-T<=X}),f=t.map(u=>Z(u)).filter(u=>u!==null),N=t.map(u=>w(u.since)).filter(u=>u!==null),E=!l.length&&N.length>0&&Math.min(...N)>=s-de*864e5,D=r.needsYou.length?"needs-you":o.length||e.passage?.problems?"held-up":a.length?E?"new":"under-way":"quiet";return{project:e,state:D,yourMove:r.needsYou,heldUp:o,moving:n,queued:r.queued,landed:c,lastLanded:d[0]??null,landings:d.map(u=>g(u)).filter(u=>u!==null),underWay:o.length+n.length,openPullRequests:a.filter(u=>u.pr).length,lastActivity:f.length?Math.max(...f):null}}const h=e=>e.trim().replace(/[.\s]+$/,""),x=e=>e.passage.steps[e.passage.current]?.label??null;function v(e,t,s){const a=[t.activity?.source==="state"?null:w(t.activity?.at),w(t.since)].filter(r=>r!==null);return a.length?` ${e} for ${ue(Math.max(...a),s)}.`:""}function _e(e,t){const s=e.yourMove[0];if(s)return(s.attention?.text?`${s.shortTitle}: ${h(s.attention.text)}.`:`${s.shortTitle} needs you.`)+v("Waiting",s,t);const a=e.heldUp[0];if(a)return(q(a)?`${a.shortTitle}: ${x(a)} failed.`:`${a.shortTitle}: ${h(a.statusLabel)}.`)+v("Held up",a,t);if(e.project.passage?.problems)return"Its passage file has problems.";const r=e.moving[0];if(r){if(r.activity?.text)return`${r.shortTitle}: ${h(r.activity.text)}.`;const n=x(r);return n?`${r.shortTitle} is at ${n}.`:`${r.shortTitle} is under way.`}if(e.queued.length)return`Nothing under way. ${e.queued.length} queued.`;const i=e.lastLanded,o=i?g(i):null;return i&&o!==null?`Nothing under way. ${i.shortTitle} landed ${Q(new Date(o).toISOString(),t)}.`:"No work yet."}function Ie(e){return e.toSorted((t,s)=>S.indexOf(t.state)-S.indexOf(s.state)||(s.lastActivity??-1/0)-(t.lastActivity??-1/0)||t.project.name.localeCompare(s.project.name))}function qe(e){return le.find(t=>t===e)??null}const Ee=(e,t)=>!t||e===t||t==="under-way"&&e==="new",M=(e,t,s)=>`${e} ${e===1?t:s}`;function De(e){const t=e.filter(n=>n.project.id!=="unassigned").length,s=n=>e.reduce((l,d)=>l+n(d),0),a=s(n=>n.yourMove.length),r=s(n=>n.underWay),i=s(n=>n.heldUp.length),o=s(n=>n.landed.length);return[`${M(t,"project","projects")}.`,a?`${M(a,"thing needs","things need")} you;`:"Nothing needs you;",r?`${r} under way${i?`, ${i} of them held up`:""};`:"nothing under way;",o?`${o} landed this week.`:"nothing landed this week."].join(" ")}function Oe(e,t,s){const a=new Array(s).fill(0),r=new Date(t);r.setHours(0,0,0,0);for(const i of e){if(i>t)continue;const o=new Date(i);o.setHours(0,0,0,0);const n=Math.round((r.getTime()-o.getTime())/864e5);n>=0&&n<s&&a[s-1-n]++}return a}var fe=B("<span><!> </span>");function Ce(e,t){O(t,!0);const s={"needs-you":ae,"held-up":se,new:ne,"under-way":te,quiet:ee},a={"needs-you":"border-sea/40 bg-sea/10 text-sea","held-up":"border-danger/40 bg-danger/10 text-danger",new:"border-success/40 bg-success/10 text-success","under-way":"border-hair bg-muted/60 text-foreground",quiet:"border-hair text-muted-foreground"},r=Y(()=>s[t.state]);var i=fe(),o=C(i);G(o,()=>R(r),(l,d)=>{d(l,{class:"size-3.5","aria-hidden":"true"})});var n=j(o,1,!0);W(i),H(()=>{J(i,1,`inline-flex shrink-0 items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium whitespace-nowrap ${a[t.state]??""}`),P(n,ce[t.state])}),F(e,i),U()}export{de as A,le as F,m as L,Ce as P,$e as S,v as a,Me as b,ue as c,Oe as d,Ie as e,De as f,ce as g,qe as h,Ee as i,ve as l,_e as p,xe as r,h as s,Le as t};
1
+ import"./DsnmJJEf.js";import{p as O,h as C,g as R,s as j,r as W,t as H,d as P,a as F,b as U,i as Y,c as B}from"./BO53-aYh.js";import{c as G}from"./CrUt1p9N.js";import{a as J}from"./DM1S1Fkj.js";import{a as Q}from"./Ug0gsfQr.js";import{L as _,l as z,n as V,a as I,s as k,h as K,c as g}from"./BUYzAikv.js";import{P as X,u as Z}from"./Cl68Rk3P.js";import{A as ee}from"./BVIK2EmQ.js";import{C as te}from"./D1r1cOUJ.js";import{S as ne}from"./BK1l_p_h.js";import{T as se}from"./BiNDkSvJ.js";import{H as ae}from"./BIb9G8kN.js";const m=[{key:"queued",label:"Queued",hint:"Waiting its turn"},{key:"building",label:"Building",hint:"The crew is writing it"},{key:"testing",label:"Testing",hint:"Checks and review"},{key:"pr",label:"Pull request",hint:"In CI or with you"},{key:"landed",label:"Landed",hint:"In the last day"}],A={queued:"queued",building:"building",checks:"testing",pr:"pr",review:"pr",landed:"landed"};function b(e){if(e.status==="queued")return"queued";if(e.status==="landed")return"landed";const t=e.passage.steps;for(let s=Math.min(e.passage.current,t.length-1);s>=0;s--){const a=A[t[s].column]??A[t[s].key];if(a)return a}return"building"}const $e={you:"Waiting on you",stuck:"Stuck",firstmate:"With Firstmate",busy:"Busy",idle:"Idle",landed:"Landed"};function re(e){return e.status==="landed"?"landed":V(e)?"you":I(e)||e.passage.steps[e.passage.current]?.failed||e.pipeline?.outcome==="failed"?"stuck":e.status==="with-firstmate"?"firstmate":e.busy?"busy":"idle"}const $={you:0,stuck:1,firstmate:2,busy:3,idle:4,landed:5},ie=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function y(e,t=b(e)){return t==="landed"?z(e):t==="testing"?ie(e.pipeline?.startedAt):null}function Le(e,t,s){const a=new Map;for(const r of t){if(r.status==="closed")continue;const i=b(r),o=r.passage.steps[r.passage.current]?.key??null,n=e.get(r.id);if(!n||n.lane!==i){a.set(r.id,n?{lane:i,step:o,laneSince:s,stepSince:s}:{lane:i,step:o,laneSince:y(r,i),stepSince:null});continue}const l=n.laneSince??y(r,i);a.set(r.id,n.step!==o?{...n,step:o,laneSince:l,stepSince:s}:l!==n.laneSince?{...n,laneSince:l}:n)}return a}const p=3600*1e3,L=.35;function oe(e,t){if(e===null)return L;const s=t-e;if(s<=p)return 1;const a=Math.min(1,(s-p)/(_-p));return 1-(1-L)*a}function xe(e,t,s){const a=new Map(m.map(n=>[n.key,[]])),r={you:0,stuck:0,firstmate:0,busy:0,idle:0,landed:0};let i=0;for(const n of e){if(n.status==="closed")continue;const l=b(n),d=s?.get(n.id),c=d?d.laneSince:y(n,l),f=re(n);if(n.status==="landed"&&(c===null||t-c>_)){i++;continue}r[f]++,a.get(l).push({id:n.id,task:n,lane:l,signal:f,since:c,stepSince:d?.stepSince??null,opacity:f==="landed"?oe(c,t):1})}const o=(n,l)=>n.lane==="landed"?(l.since??0)-(n.since??0):$[n.signal]-$[l.signal]||(n.since??1/0)-(l.since??1/0)||n.id.localeCompare(l.id);return{lanes:m.map(n=>({...n,blips:a.get(n.key).sort(o)})),landedOlder:i,counts:r}}const ve=e=>m.find(t=>t.key===e).label;function ue(e,t){if(e===null)return"unknown";const s=Math.max(0,Math.round((t-e)/6e4));if(s<1)return"under a minute";if(s<60)return`${s} min`;const a=Math.round(s/60);return a<48?`${a} h`:`${Math.round(a/24)} days`}const w=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t},S=["needs-you","held-up","new","under-way","quiet"],le=S.filter(e=>e!=="new"),de=14,ce={"needs-you":"Needs you","held-up":"Held up",new:"New","under-way":"Under way",quiet:"Quiet"},q=e=>!!e.passage.steps[e.passage.current]?.failed;function Me(e,t,s){const a=k(t,"under-way"),r=K(a,s),i=u=>I(u)||q(u),o=r.underWay.filter(i),n=[...r.underWay.filter(u=>!i(u)),...r.waitingOnFirstmate,...r.waitingOnReviewers],l=k(t,"completed"),d=l.filter(u=>u.status==="landed"),c=d.filter(u=>{const T=g(u);return T!==null&&s-T<=X}),f=t.map(u=>Z(u)).filter(u=>u!==null),N=t.map(u=>w(u.since)).filter(u=>u!==null),E=!l.length&&N.length>0&&Math.min(...N)>=s-de*864e5,D=r.needsYou.length?"needs-you":o.length||e.passage?.problems?"held-up":a.length?E?"new":"under-way":"quiet";return{project:e,state:D,yourMove:r.needsYou,heldUp:o,moving:n,queued:r.queued,landed:c,lastLanded:d[0]??null,landings:d.map(u=>g(u)).filter(u=>u!==null),underWay:o.length+n.length,openPullRequests:a.filter(u=>u.pr).length,lastActivity:f.length?Math.max(...f):null}}const h=e=>e.trim().replace(/[.\s]+$/,""),x=e=>e.passage.steps[e.passage.current]?.label??null;function v(e,t,s){const a=[t.activity?.source==="state"?null:w(t.activity?.at),w(t.since)].filter(r=>r!==null);return a.length?` ${e} for ${ue(Math.max(...a),s)}.`:""}function _e(e,t){const s=e.yourMove[0];if(s)return(s.attention?.text?`${s.shortTitle}: ${h(s.attention.text)}.`:`${s.shortTitle} needs you.`)+v("Waiting",s,t);const a=e.heldUp[0];if(a)return(q(a)?`${a.shortTitle}: ${x(a)} failed.`:`${a.shortTitle}: ${h(a.statusLabel)}.`)+v("Held up",a,t);if(e.project.passage?.problems)return"Its passage file has problems.";const r=e.moving[0];if(r){if(r.activity?.text)return`${r.shortTitle}: ${h(r.activity.text)}.`;const n=x(r);return n?`${r.shortTitle} is at ${n}.`:`${r.shortTitle} is under way.`}if(e.queued.length)return`Nothing under way. ${e.queued.length} queued.`;const i=e.lastLanded,o=i?g(i):null;return i&&o!==null?`Nothing under way. ${i.shortTitle} landed ${Q(new Date(o).toISOString(),t)}.`:"No work yet."}function Ie(e){return e.toSorted((t,s)=>S.indexOf(t.state)-S.indexOf(s.state)||(s.lastActivity??-1/0)-(t.lastActivity??-1/0)||t.project.name.localeCompare(s.project.name))}function qe(e){return le.find(t=>t===e)??null}const Ee=(e,t)=>!t||e===t||t==="under-way"&&e==="new",M=(e,t,s)=>`${e} ${e===1?t:s}`;function De(e){const t=e.filter(n=>n.project.id!=="unassigned").length,s=n=>e.reduce((l,d)=>l+n(d),0),a=s(n=>n.yourMove.length),r=s(n=>n.underWay),i=s(n=>n.heldUp.length),o=s(n=>n.landed.length);return[`${M(t,"project","projects")}.`,a?`${M(a,"thing needs","things need")} you;`:"Nothing needs you;",r?`${r} under way${i?`, ${i} of them held up`:""};`:"nothing under way;",o?`${o} landed this week.`:"nothing landed this week."].join(" ")}function Oe(e,t,s){const a=new Array(s).fill(0),r=new Date(t);r.setHours(0,0,0,0);for(const i of e){if(i>t)continue;const o=new Date(i);o.setHours(0,0,0,0);const n=Math.round((r.getTime()-o.getTime())/864e5);n>=0&&n<s&&a[s-1-n]++}return a}var fe=B("<span><!> </span>");function Ce(e,t){O(t,!0);const s={"needs-you":ae,"held-up":se,new:ne,"under-way":te,quiet:ee},a={"needs-you":"border-sea/40 bg-sea/10 text-sea","held-up":"border-danger/40 bg-danger/10 text-danger",new:"border-success/40 bg-success/10 text-success","under-way":"border-hair bg-muted/60 text-foreground",quiet:"border-hair text-muted-foreground"},r=Y(()=>s[t.state]);var i=fe(),o=C(i);G(o,()=>R(r),(l,d)=>{d(l,{class:"size-3.5","aria-hidden":"true"})});var n=j(o,1,!0);W(i),H(()=>{J(i,1,`inline-flex shrink-0 items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium whitespace-nowrap ${a[t.state]??""}`),P(n,ce[t.state])}),F(e,i),U()}export{de as A,le as F,m as L,Ce as P,$e as S,v as a,Me as b,ue as c,Oe as d,Ie as e,De as f,ce as g,qe as h,Ee as i,ve as l,_e as p,xe as r,h as s,Le as t};
@@ -1 +1 @@
1
- import{a}from"./BCUUi0V0.js";const r={decision:"Decision record",readme:"Readme",doc:"Doc"},d={worker:"The worker",firstmate:"Firstmate",captain:"You",review:"The automated review"},t=(e,s,o=`${s}s`)=>`${e} ${e===1?s:o}`;function u(e){if(!e||!e.questions&&!e.docs)return null;const s=e.questions-e.open,o=e.questions?e.open?s?`${t(s,"question")} answered, ${e.open} open`:`${t(e.open,"question")} open`:`${t(e.questions,"question")} answered`:null,n=e.docs?`${t(e.docs,"doc")} referenced${e.docsChanged?` · ${e.docsChanged} changed`:""}`:null;return{questions:o,docs:n}}function c(e,s){const n=`${e.raisedIn.charAt(0).toUpperCase()+e.raisedIn.slice(1)} asked ${e.questions.length===1?"a question":t(e.questions.length,"question")} ${a(e.askedAt,s)}`;return e.status==="answered"?`${n} · Firstmate answered ${a(e.answeredAt,s)}${e.answerCut?" (only the start of its answer was kept)":""}`:e.status==="closed"?`${n} · closed without an answer`:`${n} · waiting on Firstmate`}export{r as D,d as P,u as h,c as r};
1
+ import{a}from"./Ug0gsfQr.js";const r={decision:"Decision record",readme:"Readme",doc:"Doc"},d={worker:"The worker",firstmate:"Firstmate",captain:"You",review:"The automated review"},t=(e,s,o=`${s}s`)=>`${e} ${e===1?s:o}`;function u(e){if(!e||!e.questions&&!e.docs)return null;const s=e.questions-e.open,o=e.questions?e.open?s?`${t(s,"question")} answered, ${e.open} open`:`${t(e.open,"question")} open`:`${t(e.questions,"question")} answered`:null,n=e.docs?`${t(e.docs,"doc")} referenced${e.docsChanged?` · ${e.docsChanged} changed`:""}`:null;return{questions:o,docs:n}}function c(e,s){const n=`${e.raisedIn.charAt(0).toUpperCase()+e.raisedIn.slice(1)} asked ${e.questions.length===1?"a question":t(e.questions.length,"question")} ${a(e.askedAt,s)}`;return e.status==="answered"?`${n} · Firstmate answered ${a(e.answeredAt,s)}${e.answerCut?" (only the start of its answer was kept)":""}`:e.status==="closed"?`${n} · closed without an answer`:`${n} · waiting on Firstmate`}export{r as D,d as P,u as h,c as r};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{o as ea}from"./i-lccxyZ.js";import{q as ta,p as pt,h as d,r as l,s as o,t as y,g as e,a as c,b as gt,i as f,n as X,o as j,d as x,c as m,aU as se,l as Ot,f as Te,y as ve,v as Ne,m as et,aa as jt}from"./BO53-aYh.js";import{i as M}from"./tbcmS-db.js";import{a as ee,s as v,e as ye,f as aa,d as na}from"./DM1S1Fkj.js";import{t as St}from"./B2mEyVjp.js";import{p as xe}from"./CJuHocDw.js";import{S as ra}from"./KfATOUu4.js";import{p as sa}from"./DsnT-RPG.js";import{a as ft}from"./BCUUi0V0.js";import{h as oa,r as ia,b as la}from"./BUYzAikv.js";import{t as da,s as ca,a as ua}from"./CR7y1ULG.js";import{r as va,a as Ht,W as ha,S as ma}from"./MsjsSW3C.js";import{e as qt}from"./Bmo4YW_l.js";import{i as tt}from"./BR2U27At.js";import{r as fa,s as pa}from"./DJNADPa5.js";import{T as ga}from"./D33OMaBC.js";import{S as xa}from"./B9IElmGa.js";import{M as It}from"./Cc9fR8wU.js";import{d as ba}from"./DuX2xyeV.js";import{C as _a,E as wa,a as ka}from"./Bk-GLf2s.js";import{O as ya}from"./BbjpG9pU.js";import{M as mt}from"./BVOMiZyL.js";import{A as Ma}from"./BhOwcODj.js";import{G as Ca}from"./DItjwsQL.js";import{c as ja,g as Sa}from"./DUuK5ujt.js";import{a as zt,A as Tt,p as Ia}from"./BVIK2EmQ.js";import{A as At}from"./BFePDbA3.js";import{G as za}from"./BvDv7v16.js";import{X as Ta}from"./DWt-yDfE.js";import{S as Rt}from"./Domnzv-7.js";import{C as Aa}from"./BnISbURV.js";import{C as Ra}from"./D0j4DzjX.js";import{S as La}from"./qfpRh8ot.js";const Ea=ta({pending:null,draft:null,decision:null}),Me=":firstmate",Ae="all",Nt=i=>i.secondMate?.id??Me;function Oa(i,t){if(i.secondMate)return i.secondMate.id;const T=t.find(b=>b.id===i.taskId);return T?Nt(T):Me}function Ha(i){if(i.length<2)return"";const t=i[0].match(/[-_.][^-_.]+$/)?.[0];return t&&i.every(T=>T.endsWith(t)&&T.length>t.length)?t:""}function qa(i,t=[]){const T=[...new Set(t.map(r=>r.crew))].filter(r=>r!==Me&&!i.some(P=>P.id===r)),b=Ha([...i.map(r=>r.id),...T]),C=r=>b?r.slice(0,-b.length):r;return[{id:Me,label:"Firstmate",short:"Firstmate",mate:null},...i.map(r=>({id:r.id,label:r.id,short:C(r.id),mate:r})),...T.map(r=>({id:r,label:r,short:C(r),mate:null}))]}const Na=(i,t)=>i&&t.some(T=>T.id===i)?i:Ae,at=(i,t)=>i===Ae||i===t;function Fa(i){const t=i.passage.steps[i.passage.current];return t?.failed?{label:`${t.label} failed`,icon:"danger",tone:"danger"}:i.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:i.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:i.status==="lost"||i.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:i.attention?.owner==="captain"?i.attention.kind==="review"?i.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:i.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:i.addressingReview?{label:va(i)??"Changes requested",icon:i.busy?"sailing":"anchored",tone:i.busy?"busy":"muted"}:i.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:i.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:i.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:Ht(i)?{label:`Checks: ${i.pipeline.label}`,icon:"lighthouse",tone:i.busy?"busy":"muted"}:i.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const Da={label:"Your call",icon:"flag",tone:"sea"};function Ft(i,t){const T=i?Date.parse(i):NaN;if(Number.isNaN(T))return"";const b=Math.max(0,(t-T)/1e3);if(b<60)return"now";const C=Math.round(b/60);if(C<60)return`${C}m`;const r=Math.round(C/60);return r<24?`${r}h`:`${Math.round(r/24)}d`}const qe=(i,t)=>({kind:"task",key:`task:${i.id}`,task:i,text:t,crew:Nt(i),at:i.mergedAt??i.activity?.at??i.since});function Wa(i,t,T,b=null){const C=s=>!b||s===b,r=oa(i,t),P=(T?.shown??[]).filter(s=>qt(s)&&C(s.projectId)),S=s=>s.secondMate?.taskId?`${s.secondMate.taskId}@${s.secondMate.id}`:s.taskId,V=new Set((T?.all??[]).filter(s=>s.kind==="hold").map(S)),oe=new Set(P.filter(s=>s.kind==="merge").map(S)),J=new Set(r.stepFailed.map(s=>s.id)),he=r.stepFailed.filter(s=>!r.needsYou.includes(s)),ie=r.needsYou.filter(s=>!(s.attention?.kind==="decision"&&V.has(s.id))&&!(s.attention?.kind==="review"&&oe.has(s.id))),N=s=>s.attention?.kind==="decision"&&s.attention.text||s.shortTitle;return{h:r,needs:[...P.map(s=>({kind:"decision",key:`decision:${s.id}`,card:s,text:s.title,crew:Oa(s,i),at:s.askedAt})),...he.map(s=>qe(s,s.shortTitle)),...ie.map(s=>qe(s,N(s)))],withFirstmate:r.waitingOnFirstmate.filter(s=>!J.has(s.id)).map(s=>qe(s,N(s))),under:ia(r).filter(s=>!J.has(s.id)).map(s=>qe(s,s.shortTitle)),next:r.queued.map(s=>qe(s,s.shortTitle)),landed:r.landedRecent.filter(s=>!J.has(s.id)).map(s=>qe(s,s.shortTitle))}}function Ya(i,t,T){return t.filter(b=>at(T,b.id)).map(b=>({crew:b,lines:i.filter(C=>C.crew===b.id)})).filter(b=>b.lines.length||T!==Ae)}var Ua=se('<g class="boat svelte-98sen8"><path d="M12 2.5v12" class="svelte-98sen8"></path><path d="M12 3.5 18.5 12.5H12" class="svelte-98sen8"></path><path d="M10 5.5 5.5 12.5H10z" class="svelte-98sen8"></path><path d="M3.5 15h17l-3 3.5h-11z" class="svelte-98sen8"></path></g><path class="wake svelte-98sen8" d="M2 21.5c1.5 0 1.5-1 3-1s1.5 1 3 1 1.5-1 3-1 1.5 1 3 1 1.5-1 3-1 1.5 1 3 1"></path>',1),Pa=se('<path d="M12 2.5v12" class="svelte-98sen8"></path><path d="M12 4c.6 3.6 2.2 6.2 4.8 8.5H12" class="svelte-98sen8"></path><path d="M3.5 15h17l-3 3.5h-11z" class="svelte-98sen8"></path><path d="M3 21.5h18" class="svelte-98sen8"></path>',1),Ba=se('<g transform="rotate(-20 12 18)" class="svelte-98sen8"><path d="M12 2.5v12" class="svelte-98sen8"></path><path d="M12 3.5 18.5 12.5H12" class="svelte-98sen8"></path><path d="M3.5 15h17l-3 3.5h-11z" class="svelte-98sen8"></path></g><path d="M2 21.5h11" class="svelte-98sen8"></path><path d="m14 21.5 2.5-3.5 2 2 1-1 2.5 2.5" class="svelte-98sen8"></path>',1),Ga=se('<path d="M12 6v16" class="svelte-98sen8"></path><path d="m19 13 2-1a9 9 0 0 1-18 0l2 1" class="svelte-98sen8"></path><path d="M9 11h6" class="svelte-98sen8"></path><circle cx="12" cy="4" r="2" class="svelte-98sen8"></circle>',1),Va=se('<path class="beam svelte-98sen8" d="M13.5 7 22 4.5v5z"></path><path d="M9.5 5.5 12 3l2.5 2.5z" class="svelte-98sen8"></path><path d="M10 5.5h4v3h-4z" class="svelte-98sen8"></path><path d="M10 8.5 8.5 20.5h7L14 8.5" class="svelte-98sen8"></path><path d="M9.3 14.5h5.4" class="svelte-98sen8"></path><path d="M5 20.5h14" class="svelte-98sen8"></path>',1),Ka=se('<circle class="solid svelte-98sen8" cx="12" cy="3.6" r="1.6"></circle><circle class="solid svelte-98sen8" cx="12" cy="7.6" r="1.6"></circle><path d="M12 9.5v2" class="svelte-98sen8"></path><path d="M8.5 19.5 10 11.5h4l1.5 8z" class="svelte-98sen8"></path><path d="M9.3 15.5h5.4" class="svelte-98sen8"></path><path d="M3 21.5h18" class="svelte-98sen8"></path>',1),Qa=se('<path d="M6 21.5V2.5" class="svelte-98sen8"></path><path class="tint svelte-98sen8" d="M6 3.5h12.5L15 8l3.5 4.5H6"></path><path d="M3.5 21.5h5" class="svelte-98sen8"></path>',1),Xa=se('<path d="m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44" class="svelte-98sen8"></path><path d="m13.56 11.747 4.332-.924" class="svelte-98sen8"></path><path d="m16 21-3.105-6.21" class="svelte-98sen8"></path><path d="M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z" class="svelte-98sen8"></path><path d="m6.158 8.633 1.114 4.456" class="svelte-98sen8"></path><path d="m8 21 3.105-6.21" class="svelte-98sen8"></path><circle cx="12" cy="13" r="2" class="svelte-98sen8"></circle>',1),Ja=se('<circle cx="12" cy="12" r="10" class="svelte-98sen8"></circle><path class="needle svelte-98sen8" d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"></path>',1),Za=se('<circle cx="12" cy="7" r="1.6" class="svelte-98sen8"></circle><path d="M12 8.6V11" class="svelte-98sen8"></path><path d="M6.5 17a5.5 5.5 0 0 1 11 0z" class="svelte-98sen8"></path><path d="M3 17h18" class="svelte-98sen8"></path><path d="M7 20.5h10" class="svelte-98sen8"></path>',1),$a=se('<path d="M8 3v11.5" class="svelte-98sen8"></path><path d="M8 4 13 12.5H8" class="svelte-98sen8"></path><path d="M2 15h13l-2.5 3.5h-8z" class="svelte-98sen8"></path><path d="M15 15c1.6 1.2 3 1.2 4.2-.2" class="svelte-98sen8"></path><path d="M17.5 13h4" class="svelte-98sen8"></path><path d="M19.5 13v8.5" class="svelte-98sen8"></path><path d="M2 21.5h22" class="svelte-98sen8"></path>',1),en=m('<span class="tip svelte-98sen8" aria-hidden="true"> </span>'),tn=m('<span><svg viewBox="0 0 24 24" class="state-icon svelte-98sen8"><!></svg> <!></span>');function Lt(i,t){pt(t,!0);let T=xe(t,"still",3,!1),b=xe(t,"decorative",3,!1),C=xe(t,"class",3,"");const r=f(()=>!T()&&(t.state.tone==="busy"||t.state.tone==="danger"||t.state.icon==="compass"));var P=tn(),S=d(P),V=d(S);{var oe=p=>{var g=Ua();X(),c(p,g)},J=p=>{var g=Pa();X(3),c(p,g)},he=p=>{var g=Ba();X(2),c(p,g)},ie=p=>{var g=Ga();X(3),c(p,g)},N=p=>{var g=Va();X(5),c(p,g)},s=p=>{var g=Ka();X(5),c(p,g)},le=p=>{var g=Qa();X(2),c(p,g)},Re=p=>{var g=Xa();X(6),c(p,g)},E=p=>{var g=Ja();X(),c(p,g)},be=p=>{var g=Za();X(4),c(p,g)},Le=p=>{var g=$a();X(6),c(p,g)};M(V,p=>{t.state.icon==="sailing"?p(oe):t.state.icon==="becalmed"?p(J,1):t.state.icon==="aground"?p(he,2):t.state.icon==="anchored"?p(ie,3):t.state.icon==="lighthouse"?p(N,4):t.state.icon==="danger"?p(s,5):t.state.icon==="flag"?p(le,6):t.state.icon==="spyglass"?p(Re,7):t.state.icon==="compass"?p(E,8):t.state.icon==="buoy"?p(be,9):t.state.icon==="moored"&&p(Le,10)})}l(S);var de=o(S,2);{var Ee=p=>{var g=en(),Ce=j(g,!0);y(()=>x(Ce,t.state.label)),c(p,g)};M(de,p=>{b()||p(Ee)})}l(P),y(()=>{ee(P,1,`state ${C()??""}`,"svelte-98sen8"),v(S,"role",b()?void 0:"img"),v(S,"aria-label",b()?void 0:t.state.label),v(S,"aria-hidden",b()||void 0),v(S,"data-icon",t.state.icon),v(S,"data-tone",t.state.tone),v(S,"data-live",e(r)||void 0)}),c(i,P),gt()}var an=m('<span class="mx-1" aria-hidden="true">·</span>'),nn=m("<!><span> </span>",1),rn=m('<button type="button" title="Chat about this"><!></button>'),sn=m('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),on=m('<span class="text-muted-foreground"> </span>'),ln=m('<span class="ml-auto text-muted-foreground"> </span>'),dn=m('<p class="leading-snug text-muted-foreground"> </p>'),cn=m('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),un=m('<div class="pt-1"><!></div>'),vn=m('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),hn=m('<div class="-mt-2"><!></div>'),mn=m('<div class="flex flex-col gap-2 text-xs"><div class="flex flex-wrap items-center gap-1.5"><span><!> </span> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <div class="-ml-1.5 flex flex-wrap gap-0.5"><a><!>Open</a> <button type="button"><!>Chat about this</button></div></div>'),fn=m('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),pn=m('<div><button type="button" data-deck-line="" class="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md py-2 pr-1 pl-1 text-left focus-visible:outline-2 focus-visible:outline-ring"><!> <span class="min-w-0 flex-1"><span> </span> <span class="block truncate text-xs text-muted-foreground"></span></span></button> <!></div> <!>',1);function gn(i,t){pt(t,!0);let T=xe(t,"dim",3,!1);const b={danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",sea:"bg-sea/10 text-sea",muted:"bg-muted text-muted-foreground",busy:"bg-muted text-foreground",success:"bg-success/10 text-success",quiet:"bg-muted text-muted-foreground"},C=f(()=>t.line.kind==="task"?Fa(t.line.task):Da),r=f(()=>t.line.kind==="task"?t.line.task:null),P=f(()=>`deck-${t.line.key.replace(/[^\w-]/g,"-")}`),S=f(()=>e(r)&&t.line.text!==e(r).shortTitle?e(r).shortTitle:e(r)?.attention?.owner==="captain"&&e(r).attention.text&&e(r).attention.text!==t.line.text?e(r).attention.text:null),V=f(()=>e(r)?e(r).activity?.text||e(r).summary||e(r).statusLabel:null),oe=f(()=>[t.project?{key:"project",text:t.project.tag,title:t.project.name}:null,e(S)??(e(V)&&e(V)!==t.line.text?e(V):null)?{key:"doing",text:e(S)??e(V),title:void 0}:null,t.line.at?{key:"age",text:Ft(t.line.at,t.now),title:ft(t.line.at,t.now)}:null].filter(Y=>Y!==null)),J=f(()=>e(r)?e(r).attention?.url??e(r).pr?.url??null:null),he=f(()=>e(r)?`/tasks/${encodeURIComponent(e(r).id)}`:null),ie="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring";var N=pn(),s=Te(N),le=d(s),Re=d(le);Lt(Re,{get state(){return e(C)},class:"size-5 shrink-0"});var E=o(Re,2),be=d(E),Le=j(be,!0),de=o(be,2);ye(de,23,()=>e(oe),Y=>Y.key,(Y,A,fe)=>{var _e=nn(),je=Te(_e);{var te=ce=>{var Se=an();c(ce,Se)};M(je,ce=>{e(fe)&&ce(te)})}var ae=o(je),U=j(ae,!0);y(()=>{v(ae,"title",e(A).title),v(ae,"data-project-tag",e(A).key==="project"||void 0),x(U,e(A).text)}),c(Y,_e)}),l(de),l(E),l(le);var Ee=o(le,2);{var p=Y=>{var A=rn(),fe=d(A);mt(fe,{class:"size-3.5"}),l(A),y(()=>{ee(A,1,`flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${t.open?"opacity-100":""}`),v(A,"aria-label",`Chat about ${e(r).shortTitle??""}`)}),ve("click",A,()=>t.onChat(e(r))),c(Y,A)},g=Y=>{var A=sn(),fe=d(A);mt(fe,{class:"size-3.5"}),l(A),y(_e=>{v(A,"href",_e),ee(A,1,`flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${t.open?"opacity-100":""}`)},[()=>ba(t.line.card.id)]),c(Y,A)};M(Ee,Y=>{e(r)?Y(p):t.line.kind==="decision"&&Y(g,1)})}l(s);var Ce=o(s,2);{var nt=Y=>{var A=fn(),fe=d(A);{var _e=te=>{{let ae=f(()=>t.project?.name??null);ya(te,{get card(){return t.line.card},get project(){return e(ae)},get now(){return t.now},onLater:()=>tt.later(t.line.card.id)})}},je=te=>{var ae=mn(),U=d(ae),ce=d(U),Se=d(ce);Lt(Se,{get state(){return e(C)},still:!0,decorative:!0,class:"size-3.5"});var rt=o(Se,1,!0);l(ce);var we=o(ce,2);ha(we,{get task(){return e(r)}});var Ie=o(we,2);{var st=_=>{var R=on(),G=j(R,!0);y(()=>x(G,t.project.name)),c(_,R)};M(Ie,_=>{t.project&&_(st)})}var ot=o(Ie,2);{var it=_=>{var R=ln(),G=j(R,!0);y(ke=>x(G,ke),[()=>ft(t.line.at,t.now)]),c(_,R)};M(ot,_=>{t.line.at&&_(it)})}l(U);var Fe=o(U,2);{var Ye=_=>{var R=dn(),G=j(R,!0);y(()=>x(G,e(S))),c(_,R)};M(Fe,_=>{e(S)&&_(Ye)})}var Ue=o(Fe,2);{var Pe=_=>{_a(_,{get pipeline(){return e(r).pipeline},get busy(){return e(r).busy},size:"rail"})},lt=f(()=>Ht(e(r))),dt=_=>{var R=cn(),G=j(R,!0);y(()=>x(G,e(V))),c(_,R)};M(Ue,_=>{e(lt)?_(Pe):e(V)&&e(V)!==t.line.text&&_(dt,1)})}var Be=o(Ue,2);{var me=_=>{var R=un(),G=d(R);ma(G,{get task(){return e(r)}}),l(R),c(_,R)};M(Be,_=>{e(r).passage.steps.length>1&&_(me)})}var Ge=o(Be,2);{var ue=_=>{wa(_,{get eta(){return e(r).eta}})};M(Ge,_=>{e(r).eta&&_(ue)})}var De=o(Ge,2);{var Ve=_=>{var R=vn(),G=d(R);Ca(G,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var ke=o(G,1,!0);l(R),y(()=>{v(R,"href",e(J)),x(ke,e(J))}),c(_,R)};M(De,_=>{e(J)&&_(Ve)})}var Oe=o(De,2);{var Ke=_=>{var R=hn(),G=d(R);ka(G,{get task(){return e(r)}}),l(R),c(_,R)};M(Oe,_=>{e(r).preview&&_(Ke)})}var Qe=o(Oe,2),pe=d(Qe);ee(pe,1,aa(ie));var Xe=d(pe);Ma(Xe,{class:"size-3.5","aria-hidden":"true"}),X(),l(pe);var He=o(pe,2);ee(He,1,"flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring cursor-pointer");var ct=d(He);mt(ct,{class:"size-3.5","aria-hidden":"true"}),X(),l(He),l(Qe),l(ae),y(()=>{ee(ce,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${b[e(C).tone]??""}`),x(rt,e(C).label),v(pe,"href",e(he))}),ve("click",He,()=>t.onChat(e(r))),c(te,ae)};M(fe,te=>{t.line.kind==="decision"?te(_e):e(r)&&te(je,1)})}l(A),y(()=>v(A,"id",e(P))),c(Y,A)};M(Ce,Y=>{t.open&&Y(nt)})}y(()=>{ee(s,1,`group relative flex items-center border-b border-hair transition-colors ${t.open?"bg-muted/70":"hover:bg-muted/50"}`),v(le,"aria-expanded",t.open),v(le,"aria-controls",e(P)),v(E,"title",e(S)?`${t.line.text} (${e(S)})`:t.line.text),ee(be,1,`block truncate text-[0.95rem] font-medium ${T()?"text-muted-foreground":"text-foreground"}`),x(Le,t.line.text)}),ve("click",le,function(...Y){t.onToggle?.apply(this,Y)}),c(i,N),gt()}Ot(["click"]);var xn=se('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),bn=m('<span class="gauge" aria-hidden="true"><svg viewBox="0 0 52 52"><circle cx="26" cy="26" class="gauge-track"></circle><!></svg> <span class="gauge-label"> </span></span>');function Et(i,t){let T=xe(t,"tone",3,"gold");const b=22,C=2*Math.PI*b,r=f(()=>t.value===null?0:Math.max(0,Math.min(100,Math.round(t.value))));var P=bn(),S=d(P),V=d(S);v(V,"r",b);var oe=o(V);{var J=N=>{var s=xn();v(s,"r",b),y(()=>v(s,"stroke-dasharray",`${e(r)/100*C} 138.23007675795088`)),c(N,s)};M(oe,N=>{t.value!==null&&e(r)>0&&N(J)})}l(S);var he=o(S,2),ie=j(he,!0);l(P),y(()=>{v(P,"data-tone",T()),x(ie,t.value===null?"–":`${e(r)}%`)}),c(i,P)}var _n=m('<span class="min-w-0 truncate text-muted-foreground"> </span>'),wn=m('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),kn=m('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),yn=m('<p class="mb-1 flex items-center gap-2 px-1.5 text-xs text-muted-foreground"><!> <span class="min-w-0 truncate"> </span> <a class="ml-auto shrink-0 hover:text-foreground hover:underline">More</a></p>'),Mn=m('<h3 class="mt-3 mb-0.5 first:mt-0"><button type="button"><!> <span class="shrink-0 text-muted-foreground tabular-nums"> </span> <span class="min-w-2 flex-1 border-t border-hair" aria-hidden="true"></span> <!></button></h3> <!>',1),Cn=m("<span> <b> </b> left</span>"),jn=m('<a href="/headroom" class="ml-auto flex min-w-0 flex-col items-end rounded-md px-1.5 py-1 text-xs leading-tight text-muted-foreground hover:bg-muted hover:text-foreground max-md:min-h-11 max-md:justify-center" data-headroom=""><span class="sr-only">Claude headroom:</span> <!></a>'),Sn=m('<a href="/headroom" class="ml-auto flex items-center gap-1.5 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground" title="Connect your Claude usage to see what is left"><!>Connect usage</a>'),In=m('<button aria-label="Close"><!></button>'),zn=m('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),Tn=m('<div class="shrink-0 px-4 pt-4"><div class="flex flex-wrap gap-2 text-[0.9rem]" role="radiogroup" aria-label="Whose work" tabindex="-1"></div></div>'),An=m("<span> </span>"),Rn=m('<button role="tab" aria-controls="rail-panel"> <!></button>'),Ln=m('<div class="px-1.5" data-slot="home.card"><!></div>'),En=m('<button type="button" class="float-right -mt-1 ml-2 flex cursor-pointer items-center gap-0.5 rounded-md px-1.5 py-1 text-xs whitespace-nowrap text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring max-md:float-none max-md:mt-0 max-md:ml-auto max-md:min-h-11 max-md:text-sm"><!> </button>'),On=m("<li><!></li>"),Hn=m("<ul></ul>"),qn=m('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Nn=m("<section><!> <!></section>"),Fn=m('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Dn=m('<li><a class="flex h-8 items-center gap-2 rounded-md px-1.5 hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1 truncate text-[0.875rem] text-muted-foreground"> </span> <span class="shrink-0 text-xs font-medium"> </span> <span class="w-7 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span></a></li>'),Wn=m('<div class="mt-4 mb-0.5 flex items-center gap-2 px-1.5 text-xs"><h3 class="flex items-center gap-1.5 font-medium text-muted-foreground"><!>Decided for you</h3> <span class="flex-1 border-t border-hair" aria-hidden="true"></span> <a href="/decisions" class="text-muted-foreground hover:text-foreground">See all</a></div> <ul></ul>',1),Yn=m('<a href="/time" class="mt-4 block rounded-md px-1.5 py-1 hover:bg-muted/50"><span class="block text-xs text-muted-foreground"><span class="font-medium text-foreground"> </span> </span> <span class="mt-1.5 block"><!></span> <span class="mt-1.5 block text-xs text-muted-foreground"> </span></a>'),Un=m("<!> <div></div> <!> <!>",1),Pn=m('<a href="/second-mates" class="flex items-center justify-between gap-3 border-t px-1 py-3.5 text-muted-foreground hover:text-foreground">Every second mate, with its queue, pull requests and a look at it <!></a>'),Bn=m('<li class="mt-3 max-md:mt-1"><a class="group block text-sm max-md:py-1.5"><span class="flex items-baseline justify-between gap-2" aria-hidden="true"><span class="truncate font-medium group-hover:underline"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span></span> <span class="glance-bar" aria-hidden="true"><span></span></span></a></li>'),Gn=m('<section class="mt-4 rounded-2xl border bg-card/70 px-4 pt-4 pb-4.5" aria-labelledby="rail-glance" data-glance=""><h3 id="rail-glance" class="font-semibold">Harbour at a glance</h3> <p class="text-sm text-muted-foreground">The fleet, without leaving the bridge.</p> <ul></ul></section>'),Vn=m('<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions" aria-describedby="rail-headline"><p id="rail-headline" class="sr-only"> </p> <div class="flex h-16 shrink-0 items-center gap-2 border-b px-5 text-sm"><span class="font-title text-[2.15rem] leading-none">On <em class="text-gold">deck</em></span> <!> <!></div> <div class="grid shrink-0 grid-cols-2 gap-2.5 px-4 pt-4" data-gauges=""><a href="/headroom" class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold"> </span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a> <a class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold">Checks</span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a></div> <!> <div class="mt-3 no-scrollbar flex shrink-0 gap-5 overflow-x-auto border-b px-4" role="tablist" aria-label="On deck" tabindex="-1"></div> <div id="rail-panel" role="tabpanel" class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-3"><!> <nav class="mt-5 flex flex-col" aria-label="More on deck"><a class="flex items-center justify-between gap-3 border-t px-1 py-3.5 font-medium hover:text-gold"> <!></a> <!></nav> <!></div></aside>');function Tr(i,t){pt(t,!0);const T=(a,n=jt,u=jt)=>{var w=Mn(),h=Te(w),F=d(h),D=d(F);{var H=z=>{var O=wn(),k=Te(O);Rt(k,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var W=o(k,2),$=j(W,!0),Q=o(W,2);{var ne=ge=>{var ze=_n(),We=j(ze,!0);y(()=>x(We,n().mate.where==="remote"?`on ${n().mate.host??"another host"}`:"on this computer")),c(ge,ze)};M(Q,ge=>{n().mate&&ge(ne)})}y(()=>x($,n().label)),c(z,O)},re=z=>{var O=kn(),k=Te(O);Tt(k,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var W=o(k,2),$=j(W,!0);y(()=>x($,n().label)),c(z,O)};M(D,z=>{n().id!==Me?z(H):z(re,-1)})}var q=o(D,2),I=j(q,!0),L=o(q,4);{var B=z=>{It(z,{get health(){return n().mate.health}})};M(L,z=>{n().mate&&(n().mate.health.online!=="online"||n().mate.health.cached)&&z(B)})}l(F),l(h);var Z=o(h,2);{var K=z=>{var O=yn(),k=d(O);It(k,{get health(){return n().mate.health}});var W=o(k,2),$=j(W),Q=o(W,2);l(O),y(ne=>{v(O,"data-second-mate",n().mate.id),v(W,"title",n().mate.lastReport?.text),x($,`${n().mate.stateLabel??""}${n().mate.queued.length?` · ${n().mate.queued.length} queued`:""}${n().mate.lastReport?` · “${n().mate.lastReport.text}”`:""}`),v(Q,"href",`/second-mates#mate-${ne??""}`)},[()=>encodeURIComponent(n().mate.id)]),c(z,O)};M(Z,z=>{n().mate&&e(g)===n().id&&z(K)})}y(()=>{v(h,"data-crew",n().id),ee(F,1,`flex h-6 w-full items-center gap-1.5 rounded-md px-1.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring ${e(g)===n().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),v(F,"aria-label",`${n().label??""}${n().mate?`, ${n().mate.where==="remote"?`on ${n().mate.host??"another host"}`:"on this computer"}`:""}: ${u()??""}${e(g)===n().id?"":". Show only this crew"}`),x(I,u())}),ve("click",F,()=>Ce(n().id)),c(a,w)};let b=xe(t,"insights",3,null),C=xe(t,"scope",3,null),r=xe(t,"cards",19,()=>[]),P=xe(t,"secondMates",19,()=>[]);const S=a=>!C()||a===C(),V=f(()=>(b()?.decisions??[]).filter(a=>S(a.projectId))),oe=f(()=>ca((b()?.today??[]).filter(a=>S(a.projectId)))),J=f(()=>da(e(oe))),he=f(()=>(b()?.today??[]).filter(a=>S(a.projectId)).length),ie=a=>e(J)?Math.round(e(oe)[a]/e(J)*100):0,N=f(()=>b()?.allowance??null),s=f(()=>sa.data.inbox),le=f(()=>tt.view(e(s))),Re=f(()=>e(le)?.available?{shown:tt.shown(t.now,e(s)).shown.filter(qt),all:e(le).cards}:null),E=f(()=>Wa(t.tasks,t.now,e(Re),C())),be=f(()=>[...e(E).needs,...e(E).withFirstmate,...e(E).under,...e(E).next,...e(E).landed]),Le=f(()=>C()?P().filter(a=>e(be).some(n=>n.crew===a.id)):P()),de=f(()=>qa(e(Le),e(be))),Ee="wheelhouse-rail-crew";let p=et(null);const g=f(()=>Na(e(p),e(de)));function Ce(a){Ne(p,a,!0);try{localStorage.setItem(Ee,a)}catch{}}function nt(a){if(!["ArrowLeft","ArrowRight","Home","End"].includes(a.key))return;a.preventDefault();const n=[Ae,...e(de).map(h=>h.id)],u=n.indexOf(e(g)),w=a.key==="Home"?0:a.key==="End"?n.length-1:(u+(a.key==="ArrowRight"?1:n.length-1))%n.length;Ce(n[w]),document.getElementById(Y(n[w]))?.focus()}const Y=a=>`rail-crew-${a.replace(/[^\w-]/g,"-")}`,A=a=>a.filter(n=>at(e(g),n.crew)),fe=a=>[...e(E).needs,...e(E).withFirstmate,...e(E).under].filter(n=>at(a,n.crew)).length,_e=a=>e(E).needs.filter(n=>at(a,n.crew)).length,je="wheelhouse-rail-tab",te=f(()=>[{id:"under",label:"Under way",count:A(e(E).under).length,strong:!1},{id:"needs",label:"Needs you",count:A(e(E).needs).length,strong:!0},{id:"landed",label:"Landed",count:A(e(E).landed).length,strong:!1},...r().map(a=>({id:a.key,label:a.title,count:a.badge??0,strong:!1}))]);let ae=et("under");const U=f(()=>e(te).some(a=>a.id===e(ae))?e(ae):"under"),ce=f(()=>r().find(a=>a.key===e(U))??null);ea(()=>{zt.load();try{Ne(ae,localStorage.getItem(je)||"under",!0),Ne(p,localStorage.getItem(Ee),!0)}catch{}});function Se(a){Ne(ae,a,!0);try{localStorage.setItem(je,a)}catch{}}function rt(a){if(a.key!=="ArrowLeft"&&a.key!=="ArrowRight")return;a.preventDefault();const n=e(te).findIndex(w=>w.id===e(U)),u=e(te)[(n+(a.key==="ArrowRight"?1:e(te).length-1))%e(te).length];Se(u.id),document.getElementById(`rail-tab-${u.id}`)?.focus()}let we=et(!1);const Ie=new ra;function st(a){Ie.has(a)?Ie.delete(a):Ie.add(a)}const ot=f(()=>e(U)==="needs"?[...e(E).needs,...e(E).withFirstmate]:e(U)==="under"?[...e(E).under,...e(we)?e(E).next:[]]:e(U)==="landed"?e(E).landed:[]),it=f(()=>Ya(e(ot),e(de),e(g))),Fe=f(()=>A(e(E).next).length),Ye=f(()=>e(g)===Ae||e(g)===Me);function Ue(a){if(!["ArrowDown","ArrowUp","Home","End"].includes(a.key))return;const u=[...a.currentTarget.querySelectorAll("[data-deck-line]")],w=u.indexOf(document.activeElement);if(w<0)return;a.preventDefault();const h=a.key==="Home"?0:a.key==="End"?u.length-1:Math.max(0,Math.min(u.length-1,w+(a.key==="ArrowDown"?1:-1)));u[h]?.focus()}const Pe=a=>!a||a==="unassigned"?null:t.projects.find(n=>n.id===a)?.name??a,lt=f(()=>Ia(t.projects,zt.names));function dt(a){const n=a.kind==="task"?a.task.projectId:a.card.projectId,u=Pe(n);return u?{name:u,tag:e(lt).get(n)?.label??u}:null}function Be(a){Ea.pending={kind:"task",id:a.id,title:a.shortTitle,project:Pe(a.projectId),url:null},t.onChat?.()}const me=f(()=>e(N)?.state==="ok"?e(N).windows.find(a=>/week/i.test(a.label))??e(N).windows[0]??null:null),Ge=f(()=>t.tasks.filter(a=>S(a.projectId))),ue=f(()=>ja(e(Ge))),De=f(()=>Sa(t.projects.filter(a=>S(a.id)&&a.id!=="unassigned"),t.tasks)),Ve={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var Oe=Vn(),Ke=d(Oe),Qe=j(Ke,!0),pe=o(Ke,2),Xe=o(d(pe),2);{var He=a=>{var n=jn(),u=o(d(n),2);ye(u,17,()=>e(N).windows.slice(0,2),w=>w.id,(w,h)=>{var F=Cn(),D=d(F),H=o(D),re=j(H);X(),l(F),y(()=>{ee(F,1,`whitespace-nowrap tabular-nums ${e(h).atRisk?"font-medium text-warning":e(h).id===e(me)?.id?"text-gold":""}`),x(D,`${e(h).label??""} `),ee(H,1,`font-semibold ${e(h).id===e(me)?.id?"":"text-foreground"}`),x(re,`${e(h).percentLeft??""}%`)}),c(w,F)}),l(n),y(w=>v(n,"title",`Claude headroom: ${w??""}${b()?.atRisk?`. ${b().atRisk.label} may run out before it resets.`:""}`),[()=>e(N).windows.slice(0,2).map(w=>`${w.label} ${w.percentLeft}% left`).join(", ")]),c(a,n)},ct=a=>{var n=Sn(),u=d(n);za(u,{class:"size-3.5","aria-hidden":"true"}),X(),l(n),c(a,n)};M(Xe,a=>{e(N)?.state==="ok"&&e(N).windows.length?a(He):e(N)?.state==="connect"&&a(ct,1)})}var _=o(Xe,2);{var R=a=>{var n=In(),u=d(n);Ta(u,{class:"size-4"}),l(n),y(()=>ee(n,1,`-mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground ${e(N)?.state==="ok"||e(N)?.state==="connect"?"":"ml-auto"}`)),ve("click",n,function(...w){t.onClose?.apply(this,w)}),c(a,n)};M(_,a=>{t.onClose&&a(R)})}l(pe);var G=o(pe,2),ke=d(G),xt=d(ke);{let a=f(()=>e(me)?.percentLeft??null);Et(xt,{get value(){return e(a)},tone:"gold"})}var bt=o(xt,2),_t=d(bt),Dt=j(_t,!0),Wt=o(_t,2),Yt=j(Wt,!0);l(bt),l(ke);var Je=o(ke,2),wt=d(Je);Et(wt,{get value(){return e(ue).percent},tone:"teal"});var kt=o(wt,2),Ut=o(d(kt),2),Pt=j(Ut,!0);l(kt),l(Je),l(G);var yt=o(G,2);{var Bt=a=>{var n=Tn(),u=d(n);ye(u,21,()=>[{id:Ae,label:"All",short:"All",mate:null},...e(de)],w=>w.id,(w,h)=>{const F=f(()=>fe(e(h).id)),D=f(()=>_e(e(h).id));var H=zn(),re=d(H);{var q=k=>{Rt(k,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},I=k=>{Tt(k,{class:"size-3 shrink-0","aria-hidden":"true"})};M(re,k=>{e(h).id!==Me&&e(h).id!==Ae?k(q):e(h).id===Me&&k(I,1)})}var L=o(re,2),B=j(L,!0),Z=o(L,2),K=j(Z),z=o(Z,2),O=j(z,!0);l(H),y(k=>{v(H,"id",k),v(H,"aria-checked",e(g)===e(h).id),v(H,"tabindex",e(g)===e(h).id?0:-1),ee(H,1,`flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-1.5 whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-ring ${e(g)===e(h).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),v(H,"title",`${e(h).label??""}${e(h).mate?.host?` on ${e(h).mate.host}`:""}: ${e(F)??""} in play${e(D)?`, ${e(D)} waiting on you`:""}`),x(B,e(h).short),x(K,`: ${e(F)??""} in play${e(D)?`, ${e(D)} waiting on you`:""}`),ee(z,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(D)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),x(O,e(D)||e(F))},[()=>Y(e(h).id)]),ve("click",H,()=>Ce(e(h).id)),c(w,H)}),l(u),l(n),ve("keydown",u,nt),c(a,n)};M(yt,a=>{e(de).length>1&&a(Bt)})}var Ze=o(yt,2);ye(Ze,21,()=>e(te),a=>a.id,(a,n)=>{var u=Rn(),w=d(u,!0),h=o(w);{var F=D=>{var H=An(),re=j(H,!0);y(()=>{ee(H,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(n).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),x(re,e(n).count)}),c(D,H)};M(h,D=>{e(n).count&&D(F)})}l(u),y(()=>{v(u,"id",`rail-tab-${e(n).id??""}`),v(u,"aria-selected",e(U)===e(n).id),v(u,"tabindex",e(U)===e(n).id?0:-1),ee(u,1,`-mb-px flex shrink-0 cursor-pointer items-center gap-1.5 border-b-[2.5px] px-0.5 py-2.5 text-base whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${e(U)===e(n).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),x(w,e(n).label)}),ve("click",u,()=>Se(e(n).id)),c(a,u)}),l(Ze);var ut=o(Ze,2),Mt=d(ut);{var Gt=a=>{var n=Ln(),u=d(n);xa(u,{get entry(){return e(ce)},get now(){return t.now}}),l(n),c(a,n)},Vt=a=>{var n=Un(),u=Te(n);{var w=q=>{var I=En(),L=d(I);{let Z=f(()=>e(we)?"rotate-90":"");Ra(L,{get class(){return`size-3.5 transition-transform ${e(Z)??""}`},"aria-hidden":"true"})}var B=o(L);l(I),y(()=>{v(I,"aria-expanded",e(we)),x(B,`Up next · ${e(Fe)??""}`)}),ve("click",I,()=>Ne(we,!e(we))),c(q,I)};M(u,q=>{e(U)==="under"&&e(Fe)&&q(w)})}var h=o(u,2);ye(h,21,()=>e(it),q=>q.crew.id,(q,I)=>{var L=Nn(),B=d(L);{var Z=k=>{T(k,()=>e(I).crew,()=>e(I).lines.length)};M(B,k=>{e(de).length>1&&k(Z)})}var K=o(B,2);{var z=k=>{var W=Hn();ye(W,21,()=>e(I).lines,$=>$.key,($,Q)=>{var ne=On(),ge=d(ne);{let ze=f(()=>Ie.has(e(Q).key)),We=f(()=>dt(e(Q))),ht=f(()=>e(Q).kind==="task"&&(e(Q).task.status==="queued"||e(Q).task.status==="landed"));gn(ge,{get line(){return e(Q)},get now(){return t.now},get open(){return e(ze)},get project(){return e(We)},get dim(){return e(ht)},onToggle:()=>st(e(Q).key),onChat:Be})}l(ne),St(1,ne,()=>fa),St(2,ne,()=>pa,()=>({word:e(Q).kind==="decision"?tt.stampFor(e(Q).card.id):null})),c($,ne)}),l(W),c(k,W)},O=k=>{var W=qn(),$=j(W,!0);y(()=>x($,Ve[e(U)])),c(k,W)};M(K,k=>{e(I).lines.length?k(z):k(O,-1)})}l(L),y(()=>{v(L,"aria-label",e(I).crew.label),v(L,"data-crew-group",e(I).crew.id)}),c(q,L)},q=>{var I=Fn(),L=d(I);{var B=K=>{Aa(K,{class:"size-4 text-success","aria-hidden":"true"})};M(L,K=>{e(U)==="needs"&&K(B)})}var Z=o(L,1,!0);l(I),y(()=>x(Z,Ve[e(U)])),c(q,I)}),l(h);var F=o(h,2);{var D=q=>{var I=Wn(),L=Te(I),B=d(L),Z=d(B);La(Z,{class:"size-3.5","aria-hidden":"true"}),X(),l(B),X(4),l(L);var K=o(L,2);ye(K,21,()=>e(V).slice(0,3),z=>z.id,(z,O)=>{var k=Dn(),W=d(k),$=d(W),Q=j($,!0),ne=o($,2),ge=j(ne,!0),ze=o(ne,2),We=j(ze,!0);l(W),l(k),y((ht,$t)=>{v(W,"href",`/decisions#${e(O).id??""}`),v(W,"title",e(O).question),x(Q,e(O).taskTitle),x(ge,e(O).verdict),v(ze,"title",ht),x(We,$t)},[()=>ft(e(O).decidedAt,t.now),()=>Ft(e(O).decidedAt,t.now)]),c(z,k)}),l(K),c(q,I)};M(F,q=>{e(U)==="needs"&&e(V).length&&e(Ye)&&q(D)})}var H=o(F,2);{var re=q=>{var I=Yn(),L=d(I),B=d(L),Z=j(B,!0),K=o(B);l(L);var z=o(L,2),O=d(z);ga(O,{get seconds(){return e(oe)},label:"Today"}),l(z);var k=o(z,2),W=j(k);l(I),y(($,Q,ne,ge)=>{x(Z,$),x(K,` of crew time today on ${e(he)??""}
1
+ import"./DsnmJJEf.js";import{o as ea}from"./i-lccxyZ.js";import{q as ta,p as pt,h as d,r as l,s as o,t as y,g as e,a as c,b as gt,i as f,n as X,o as j,d as x,c as m,aU as se,l as Ot,f as Te,y as ve,v as Ne,m as et,aa as jt}from"./BO53-aYh.js";import{i as M}from"./tbcmS-db.js";import{a as ee,s as v,e as ye,f as aa,d as na}from"./DM1S1Fkj.js";import{t as St}from"./B2mEyVjp.js";import{p as xe}from"./CJuHocDw.js";import{S as ra}from"./KfATOUu4.js";import{p as sa}from"./Rw-QdBqX.js";import{a as ft}from"./Ug0gsfQr.js";import{h as oa,r as ia,b as la}from"./BUYzAikv.js";import{t as da,s as ca,a as ua}from"./CR7y1ULG.js";import{r as va,a as Ht,W as ha,S as ma}from"./CeaZ17SZ.js";import{e as qt}from"./Bmo4YW_l.js";import{i as tt}from"./BR2U27At.js";import{r as fa,s as pa}from"./DJNADPa5.js";import{T as ga}from"./D33OMaBC.js";import{S as xa}from"./CLTl8CXB.js";import{M as It}from"./Cc9fR8wU.js";import{d as ba}from"./CzRQxst7.js";import{C as _a,E as wa,a as ka}from"./OmkrH6gy.js";import{O as ya}from"./C71Z1uva.js";import{M as mt}from"./BVOMiZyL.js";import{A as Ma}from"./BhOwcODj.js";import{G as Ca}from"./DItjwsQL.js";import{c as ja,g as Sa}from"./DUuK5ujt.js";import{a as zt,A as Tt,p as Ia}from"./BVIK2EmQ.js";import{A as At}from"./BFePDbA3.js";import{G as za}from"./BvDv7v16.js";import{X as Ta}from"./DWt-yDfE.js";import{S as Rt}from"./Domnzv-7.js";import{C as Aa}from"./BnISbURV.js";import{C as Ra}from"./D0j4DzjX.js";import{S as La}from"./qfpRh8ot.js";const Ea=ta({pending:null,draft:null,decision:null}),Me=":firstmate",Ae="all",Nt=i=>i.secondMate?.id??Me;function Oa(i,t){if(i.secondMate)return i.secondMate.id;const T=t.find(b=>b.id===i.taskId);return T?Nt(T):Me}function Ha(i){if(i.length<2)return"";const t=i[0].match(/[-_.][^-_.]+$/)?.[0];return t&&i.every(T=>T.endsWith(t)&&T.length>t.length)?t:""}function qa(i,t=[]){const T=[...new Set(t.map(r=>r.crew))].filter(r=>r!==Me&&!i.some(P=>P.id===r)),b=Ha([...i.map(r=>r.id),...T]),C=r=>b?r.slice(0,-b.length):r;return[{id:Me,label:"Firstmate",short:"Firstmate",mate:null},...i.map(r=>({id:r.id,label:r.id,short:C(r.id),mate:r})),...T.map(r=>({id:r,label:r,short:C(r),mate:null}))]}const Na=(i,t)=>i&&t.some(T=>T.id===i)?i:Ae,at=(i,t)=>i===Ae||i===t;function Fa(i){const t=i.passage.steps[i.passage.current];return t?.failed?{label:`${t.label} failed`,icon:"danger",tone:"danger"}:i.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:i.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:i.status==="lost"||i.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:i.attention?.owner==="captain"?i.attention.kind==="review"?i.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:i.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:i.addressingReview?{label:va(i)??"Changes requested",icon:i.busy?"sailing":"anchored",tone:i.busy?"busy":"muted"}:i.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:i.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:i.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:Ht(i)?{label:`Checks: ${i.pipeline.label}`,icon:"lighthouse",tone:i.busy?"busy":"muted"}:i.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const Da={label:"Your call",icon:"flag",tone:"sea"};function Ft(i,t){const T=i?Date.parse(i):NaN;if(Number.isNaN(T))return"";const b=Math.max(0,(t-T)/1e3);if(b<60)return"now";const C=Math.round(b/60);if(C<60)return`${C}m`;const r=Math.round(C/60);return r<24?`${r}h`:`${Math.round(r/24)}d`}const qe=(i,t)=>({kind:"task",key:`task:${i.id}`,task:i,text:t,crew:Nt(i),at:i.mergedAt??i.activity?.at??i.since});function Wa(i,t,T,b=null){const C=s=>!b||s===b,r=oa(i,t),P=(T?.shown??[]).filter(s=>qt(s)&&C(s.projectId)),S=s=>s.secondMate?.taskId?`${s.secondMate.taskId}@${s.secondMate.id}`:s.taskId,V=new Set((T?.all??[]).filter(s=>s.kind==="hold").map(S)),oe=new Set(P.filter(s=>s.kind==="merge").map(S)),J=new Set(r.stepFailed.map(s=>s.id)),he=r.stepFailed.filter(s=>!r.needsYou.includes(s)),ie=r.needsYou.filter(s=>!(s.attention?.kind==="decision"&&V.has(s.id))&&!(s.attention?.kind==="review"&&oe.has(s.id))),N=s=>s.attention?.kind==="decision"&&s.attention.text||s.shortTitle;return{h:r,needs:[...P.map(s=>({kind:"decision",key:`decision:${s.id}`,card:s,text:s.title,crew:Oa(s,i),at:s.askedAt})),...he.map(s=>qe(s,s.shortTitle)),...ie.map(s=>qe(s,N(s)))],withFirstmate:r.waitingOnFirstmate.filter(s=>!J.has(s.id)).map(s=>qe(s,N(s))),under:ia(r).filter(s=>!J.has(s.id)).map(s=>qe(s,s.shortTitle)),next:r.queued.map(s=>qe(s,s.shortTitle)),landed:r.landedRecent.filter(s=>!J.has(s.id)).map(s=>qe(s,s.shortTitle))}}function Ya(i,t,T){return t.filter(b=>at(T,b.id)).map(b=>({crew:b,lines:i.filter(C=>C.crew===b.id)})).filter(b=>b.lines.length||T!==Ae)}var Ua=se('<g class="boat svelte-98sen8"><path d="M12 2.5v12" class="svelte-98sen8"></path><path d="M12 3.5 18.5 12.5H12" class="svelte-98sen8"></path><path d="M10 5.5 5.5 12.5H10z" class="svelte-98sen8"></path><path d="M3.5 15h17l-3 3.5h-11z" class="svelte-98sen8"></path></g><path class="wake svelte-98sen8" d="M2 21.5c1.5 0 1.5-1 3-1s1.5 1 3 1 1.5-1 3-1 1.5 1 3 1 1.5-1 3-1 1.5 1 3 1"></path>',1),Pa=se('<path d="M12 2.5v12" class="svelte-98sen8"></path><path d="M12 4c.6 3.6 2.2 6.2 4.8 8.5H12" class="svelte-98sen8"></path><path d="M3.5 15h17l-3 3.5h-11z" class="svelte-98sen8"></path><path d="M3 21.5h18" class="svelte-98sen8"></path>',1),Ba=se('<g transform="rotate(-20 12 18)" class="svelte-98sen8"><path d="M12 2.5v12" class="svelte-98sen8"></path><path d="M12 3.5 18.5 12.5H12" class="svelte-98sen8"></path><path d="M3.5 15h17l-3 3.5h-11z" class="svelte-98sen8"></path></g><path d="M2 21.5h11" class="svelte-98sen8"></path><path d="m14 21.5 2.5-3.5 2 2 1-1 2.5 2.5" class="svelte-98sen8"></path>',1),Ga=se('<path d="M12 6v16" class="svelte-98sen8"></path><path d="m19 13 2-1a9 9 0 0 1-18 0l2 1" class="svelte-98sen8"></path><path d="M9 11h6" class="svelte-98sen8"></path><circle cx="12" cy="4" r="2" class="svelte-98sen8"></circle>',1),Va=se('<path class="beam svelte-98sen8" d="M13.5 7 22 4.5v5z"></path><path d="M9.5 5.5 12 3l2.5 2.5z" class="svelte-98sen8"></path><path d="M10 5.5h4v3h-4z" class="svelte-98sen8"></path><path d="M10 8.5 8.5 20.5h7L14 8.5" class="svelte-98sen8"></path><path d="M9.3 14.5h5.4" class="svelte-98sen8"></path><path d="M5 20.5h14" class="svelte-98sen8"></path>',1),Ka=se('<circle class="solid svelte-98sen8" cx="12" cy="3.6" r="1.6"></circle><circle class="solid svelte-98sen8" cx="12" cy="7.6" r="1.6"></circle><path d="M12 9.5v2" class="svelte-98sen8"></path><path d="M8.5 19.5 10 11.5h4l1.5 8z" class="svelte-98sen8"></path><path d="M9.3 15.5h5.4" class="svelte-98sen8"></path><path d="M3 21.5h18" class="svelte-98sen8"></path>',1),Qa=se('<path d="M6 21.5V2.5" class="svelte-98sen8"></path><path class="tint svelte-98sen8" d="M6 3.5h12.5L15 8l3.5 4.5H6"></path><path d="M3.5 21.5h5" class="svelte-98sen8"></path>',1),Xa=se('<path d="m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44" class="svelte-98sen8"></path><path d="m13.56 11.747 4.332-.924" class="svelte-98sen8"></path><path d="m16 21-3.105-6.21" class="svelte-98sen8"></path><path d="M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z" class="svelte-98sen8"></path><path d="m6.158 8.633 1.114 4.456" class="svelte-98sen8"></path><path d="m8 21 3.105-6.21" class="svelte-98sen8"></path><circle cx="12" cy="13" r="2" class="svelte-98sen8"></circle>',1),Ja=se('<circle cx="12" cy="12" r="10" class="svelte-98sen8"></circle><path class="needle svelte-98sen8" d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"></path>',1),Za=se('<circle cx="12" cy="7" r="1.6" class="svelte-98sen8"></circle><path d="M12 8.6V11" class="svelte-98sen8"></path><path d="M6.5 17a5.5 5.5 0 0 1 11 0z" class="svelte-98sen8"></path><path d="M3 17h18" class="svelte-98sen8"></path><path d="M7 20.5h10" class="svelte-98sen8"></path>',1),$a=se('<path d="M8 3v11.5" class="svelte-98sen8"></path><path d="M8 4 13 12.5H8" class="svelte-98sen8"></path><path d="M2 15h13l-2.5 3.5h-8z" class="svelte-98sen8"></path><path d="M15 15c1.6 1.2 3 1.2 4.2-.2" class="svelte-98sen8"></path><path d="M17.5 13h4" class="svelte-98sen8"></path><path d="M19.5 13v8.5" class="svelte-98sen8"></path><path d="M2 21.5h22" class="svelte-98sen8"></path>',1),en=m('<span class="tip svelte-98sen8" aria-hidden="true"> </span>'),tn=m('<span><svg viewBox="0 0 24 24" class="state-icon svelte-98sen8"><!></svg> <!></span>');function Lt(i,t){pt(t,!0);let T=xe(t,"still",3,!1),b=xe(t,"decorative",3,!1),C=xe(t,"class",3,"");const r=f(()=>!T()&&(t.state.tone==="busy"||t.state.tone==="danger"||t.state.icon==="compass"));var P=tn(),S=d(P),V=d(S);{var oe=p=>{var g=Ua();X(),c(p,g)},J=p=>{var g=Pa();X(3),c(p,g)},he=p=>{var g=Ba();X(2),c(p,g)},ie=p=>{var g=Ga();X(3),c(p,g)},N=p=>{var g=Va();X(5),c(p,g)},s=p=>{var g=Ka();X(5),c(p,g)},le=p=>{var g=Qa();X(2),c(p,g)},Re=p=>{var g=Xa();X(6),c(p,g)},E=p=>{var g=Ja();X(),c(p,g)},be=p=>{var g=Za();X(4),c(p,g)},Le=p=>{var g=$a();X(6),c(p,g)};M(V,p=>{t.state.icon==="sailing"?p(oe):t.state.icon==="becalmed"?p(J,1):t.state.icon==="aground"?p(he,2):t.state.icon==="anchored"?p(ie,3):t.state.icon==="lighthouse"?p(N,4):t.state.icon==="danger"?p(s,5):t.state.icon==="flag"?p(le,6):t.state.icon==="spyglass"?p(Re,7):t.state.icon==="compass"?p(E,8):t.state.icon==="buoy"?p(be,9):t.state.icon==="moored"&&p(Le,10)})}l(S);var de=o(S,2);{var Ee=p=>{var g=en(),Ce=j(g,!0);y(()=>x(Ce,t.state.label)),c(p,g)};M(de,p=>{b()||p(Ee)})}l(P),y(()=>{ee(P,1,`state ${C()??""}`,"svelte-98sen8"),v(S,"role",b()?void 0:"img"),v(S,"aria-label",b()?void 0:t.state.label),v(S,"aria-hidden",b()||void 0),v(S,"data-icon",t.state.icon),v(S,"data-tone",t.state.tone),v(S,"data-live",e(r)||void 0)}),c(i,P),gt()}var an=m('<span class="mx-1" aria-hidden="true">·</span>'),nn=m("<!><span> </span>",1),rn=m('<button type="button" title="Chat about this"><!></button>'),sn=m('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),on=m('<span class="text-muted-foreground"> </span>'),ln=m('<span class="ml-auto text-muted-foreground"> </span>'),dn=m('<p class="leading-snug text-muted-foreground"> </p>'),cn=m('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),un=m('<div class="pt-1"><!></div>'),vn=m('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),hn=m('<div class="-mt-2"><!></div>'),mn=m('<div class="flex flex-col gap-2 text-xs"><div class="flex flex-wrap items-center gap-1.5"><span><!> </span> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <div class="-ml-1.5 flex flex-wrap gap-0.5"><a><!>Open</a> <button type="button"><!>Chat about this</button></div></div>'),fn=m('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),pn=m('<div><button type="button" data-deck-line="" class="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md py-2 pr-1 pl-1 text-left focus-visible:outline-2 focus-visible:outline-ring"><!> <span class="min-w-0 flex-1"><span> </span> <span class="block truncate text-xs text-muted-foreground"></span></span></button> <!></div> <!>',1);function gn(i,t){pt(t,!0);let T=xe(t,"dim",3,!1);const b={danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",sea:"bg-sea/10 text-sea",muted:"bg-muted text-muted-foreground",busy:"bg-muted text-foreground",success:"bg-success/10 text-success",quiet:"bg-muted text-muted-foreground"},C=f(()=>t.line.kind==="task"?Fa(t.line.task):Da),r=f(()=>t.line.kind==="task"?t.line.task:null),P=f(()=>`deck-${t.line.key.replace(/[^\w-]/g,"-")}`),S=f(()=>e(r)&&t.line.text!==e(r).shortTitle?e(r).shortTitle:e(r)?.attention?.owner==="captain"&&e(r).attention.text&&e(r).attention.text!==t.line.text?e(r).attention.text:null),V=f(()=>e(r)?e(r).activity?.text||e(r).summary||e(r).statusLabel:null),oe=f(()=>[t.project?{key:"project",text:t.project.tag,title:t.project.name}:null,e(S)??(e(V)&&e(V)!==t.line.text?e(V):null)?{key:"doing",text:e(S)??e(V),title:void 0}:null,t.line.at?{key:"age",text:Ft(t.line.at,t.now),title:ft(t.line.at,t.now)}:null].filter(Y=>Y!==null)),J=f(()=>e(r)?e(r).attention?.url??e(r).pr?.url??null:null),he=f(()=>e(r)?`/tasks/${encodeURIComponent(e(r).id)}`:null),ie="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring";var N=pn(),s=Te(N),le=d(s),Re=d(le);Lt(Re,{get state(){return e(C)},class:"size-5 shrink-0"});var E=o(Re,2),be=d(E),Le=j(be,!0),de=o(be,2);ye(de,23,()=>e(oe),Y=>Y.key,(Y,A,fe)=>{var _e=nn(),je=Te(_e);{var te=ce=>{var Se=an();c(ce,Se)};M(je,ce=>{e(fe)&&ce(te)})}var ae=o(je),U=j(ae,!0);y(()=>{v(ae,"title",e(A).title),v(ae,"data-project-tag",e(A).key==="project"||void 0),x(U,e(A).text)}),c(Y,_e)}),l(de),l(E),l(le);var Ee=o(le,2);{var p=Y=>{var A=rn(),fe=d(A);mt(fe,{class:"size-3.5"}),l(A),y(()=>{ee(A,1,`flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${t.open?"opacity-100":""}`),v(A,"aria-label",`Chat about ${e(r).shortTitle??""}`)}),ve("click",A,()=>t.onChat(e(r))),c(Y,A)},g=Y=>{var A=sn(),fe=d(A);mt(fe,{class:"size-3.5"}),l(A),y(_e=>{v(A,"href",_e),ee(A,1,`flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${t.open?"opacity-100":""}`)},[()=>ba(t.line.card.id)]),c(Y,A)};M(Ee,Y=>{e(r)?Y(p):t.line.kind==="decision"&&Y(g,1)})}l(s);var Ce=o(s,2);{var nt=Y=>{var A=fn(),fe=d(A);{var _e=te=>{{let ae=f(()=>t.project?.name??null);ya(te,{get card(){return t.line.card},get project(){return e(ae)},get now(){return t.now},onLater:()=>tt.later(t.line.card.id)})}},je=te=>{var ae=mn(),U=d(ae),ce=d(U),Se=d(ce);Lt(Se,{get state(){return e(C)},still:!0,decorative:!0,class:"size-3.5"});var rt=o(Se,1,!0);l(ce);var we=o(ce,2);ha(we,{get task(){return e(r)}});var Ie=o(we,2);{var st=_=>{var R=on(),G=j(R,!0);y(()=>x(G,t.project.name)),c(_,R)};M(Ie,_=>{t.project&&_(st)})}var ot=o(Ie,2);{var it=_=>{var R=ln(),G=j(R,!0);y(ke=>x(G,ke),[()=>ft(t.line.at,t.now)]),c(_,R)};M(ot,_=>{t.line.at&&_(it)})}l(U);var Fe=o(U,2);{var Ye=_=>{var R=dn(),G=j(R,!0);y(()=>x(G,e(S))),c(_,R)};M(Fe,_=>{e(S)&&_(Ye)})}var Ue=o(Fe,2);{var Pe=_=>{_a(_,{get pipeline(){return e(r).pipeline},get busy(){return e(r).busy},size:"rail"})},lt=f(()=>Ht(e(r))),dt=_=>{var R=cn(),G=j(R,!0);y(()=>x(G,e(V))),c(_,R)};M(Ue,_=>{e(lt)?_(Pe):e(V)&&e(V)!==t.line.text&&_(dt,1)})}var Be=o(Ue,2);{var me=_=>{var R=un(),G=d(R);ma(G,{get task(){return e(r)}}),l(R),c(_,R)};M(Be,_=>{e(r).passage.steps.length>1&&_(me)})}var Ge=o(Be,2);{var ue=_=>{wa(_,{get eta(){return e(r).eta}})};M(Ge,_=>{e(r).eta&&_(ue)})}var De=o(Ge,2);{var Ve=_=>{var R=vn(),G=d(R);Ca(G,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var ke=o(G,1,!0);l(R),y(()=>{v(R,"href",e(J)),x(ke,e(J))}),c(_,R)};M(De,_=>{e(J)&&_(Ve)})}var Oe=o(De,2);{var Ke=_=>{var R=hn(),G=d(R);ka(G,{get task(){return e(r)}}),l(R),c(_,R)};M(Oe,_=>{e(r).preview&&_(Ke)})}var Qe=o(Oe,2),pe=d(Qe);ee(pe,1,aa(ie));var Xe=d(pe);Ma(Xe,{class:"size-3.5","aria-hidden":"true"}),X(),l(pe);var He=o(pe,2);ee(He,1,"flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring cursor-pointer");var ct=d(He);mt(ct,{class:"size-3.5","aria-hidden":"true"}),X(),l(He),l(Qe),l(ae),y(()=>{ee(ce,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${b[e(C).tone]??""}`),x(rt,e(C).label),v(pe,"href",e(he))}),ve("click",He,()=>t.onChat(e(r))),c(te,ae)};M(fe,te=>{t.line.kind==="decision"?te(_e):e(r)&&te(je,1)})}l(A),y(()=>v(A,"id",e(P))),c(Y,A)};M(Ce,Y=>{t.open&&Y(nt)})}y(()=>{ee(s,1,`group relative flex items-center border-b border-hair transition-colors ${t.open?"bg-muted/70":"hover:bg-muted/50"}`),v(le,"aria-expanded",t.open),v(le,"aria-controls",e(P)),v(E,"title",e(S)?`${t.line.text} (${e(S)})`:t.line.text),ee(be,1,`block truncate text-[0.95rem] font-medium ${T()?"text-muted-foreground":"text-foreground"}`),x(Le,t.line.text)}),ve("click",le,function(...Y){t.onToggle?.apply(this,Y)}),c(i,N),gt()}Ot(["click"]);var xn=se('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),bn=m('<span class="gauge" aria-hidden="true"><svg viewBox="0 0 52 52"><circle cx="26" cy="26" class="gauge-track"></circle><!></svg> <span class="gauge-label"> </span></span>');function Et(i,t){let T=xe(t,"tone",3,"gold");const b=22,C=2*Math.PI*b,r=f(()=>t.value===null?0:Math.max(0,Math.min(100,Math.round(t.value))));var P=bn(),S=d(P),V=d(S);v(V,"r",b);var oe=o(V);{var J=N=>{var s=xn();v(s,"r",b),y(()=>v(s,"stroke-dasharray",`${e(r)/100*C} 138.23007675795088`)),c(N,s)};M(oe,N=>{t.value!==null&&e(r)>0&&N(J)})}l(S);var he=o(S,2),ie=j(he,!0);l(P),y(()=>{v(P,"data-tone",T()),x(ie,t.value===null?"–":`${e(r)}%`)}),c(i,P)}var _n=m('<span class="min-w-0 truncate text-muted-foreground"> </span>'),wn=m('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),kn=m('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),yn=m('<p class="mb-1 flex items-center gap-2 px-1.5 text-xs text-muted-foreground"><!> <span class="min-w-0 truncate"> </span> <a class="ml-auto shrink-0 hover:text-foreground hover:underline">More</a></p>'),Mn=m('<h3 class="mt-3 mb-0.5 first:mt-0"><button type="button"><!> <span class="shrink-0 text-muted-foreground tabular-nums"> </span> <span class="min-w-2 flex-1 border-t border-hair" aria-hidden="true"></span> <!></button></h3> <!>',1),Cn=m("<span> <b> </b> left</span>"),jn=m('<a href="/headroom" class="ml-auto flex min-w-0 flex-col items-end rounded-md px-1.5 py-1 text-xs leading-tight text-muted-foreground hover:bg-muted hover:text-foreground max-md:min-h-11 max-md:justify-center" data-headroom=""><span class="sr-only">Claude headroom:</span> <!></a>'),Sn=m('<a href="/headroom" class="ml-auto flex items-center gap-1.5 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground" title="Connect your Claude usage to see what is left"><!>Connect usage</a>'),In=m('<button aria-label="Close"><!></button>'),zn=m('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),Tn=m('<div class="shrink-0 px-4 pt-4"><div class="flex flex-wrap gap-2 text-[0.9rem]" role="radiogroup" aria-label="Whose work" tabindex="-1"></div></div>'),An=m("<span> </span>"),Rn=m('<button role="tab" aria-controls="rail-panel"> <!></button>'),Ln=m('<div class="px-1.5" data-slot="home.card"><!></div>'),En=m('<button type="button" class="float-right -mt-1 ml-2 flex cursor-pointer items-center gap-0.5 rounded-md px-1.5 py-1 text-xs whitespace-nowrap text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring max-md:float-none max-md:mt-0 max-md:ml-auto max-md:min-h-11 max-md:text-sm"><!> </button>'),On=m("<li><!></li>"),Hn=m("<ul></ul>"),qn=m('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Nn=m("<section><!> <!></section>"),Fn=m('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Dn=m('<li><a class="flex h-8 items-center gap-2 rounded-md px-1.5 hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1 truncate text-[0.875rem] text-muted-foreground"> </span> <span class="shrink-0 text-xs font-medium"> </span> <span class="w-7 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span></a></li>'),Wn=m('<div class="mt-4 mb-0.5 flex items-center gap-2 px-1.5 text-xs"><h3 class="flex items-center gap-1.5 font-medium text-muted-foreground"><!>Decided for you</h3> <span class="flex-1 border-t border-hair" aria-hidden="true"></span> <a href="/decisions" class="text-muted-foreground hover:text-foreground">See all</a></div> <ul></ul>',1),Yn=m('<a href="/time" class="mt-4 block rounded-md px-1.5 py-1 hover:bg-muted/50"><span class="block text-xs text-muted-foreground"><span class="font-medium text-foreground"> </span> </span> <span class="mt-1.5 block"><!></span> <span class="mt-1.5 block text-xs text-muted-foreground"> </span></a>'),Un=m("<!> <div></div> <!> <!>",1),Pn=m('<a href="/second-mates" class="flex items-center justify-between gap-3 border-t px-1 py-3.5 text-muted-foreground hover:text-foreground">Every second mate, with its queue, pull requests and a look at it <!></a>'),Bn=m('<li class="mt-3 max-md:mt-1"><a class="group block text-sm max-md:py-1.5"><span class="flex items-baseline justify-between gap-2" aria-hidden="true"><span class="truncate font-medium group-hover:underline"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span></span> <span class="glance-bar" aria-hidden="true"><span></span></span></a></li>'),Gn=m('<section class="mt-4 rounded-2xl border bg-card/70 px-4 pt-4 pb-4.5" aria-labelledby="rail-glance" data-glance=""><h3 id="rail-glance" class="font-semibold">Harbour at a glance</h3> <p class="text-sm text-muted-foreground">The fleet, without leaving the bridge.</p> <ul></ul></section>'),Vn=m('<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions" aria-describedby="rail-headline"><p id="rail-headline" class="sr-only"> </p> <div class="flex h-16 shrink-0 items-center gap-2 border-b px-5 text-sm"><span class="font-title text-[2.15rem] leading-none">On <em class="text-gold">deck</em></span> <!> <!></div> <div class="grid shrink-0 grid-cols-2 gap-2.5 px-4 pt-4" data-gauges=""><a href="/headroom" class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold"> </span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a> <a class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold">Checks</span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a></div> <!> <div class="mt-3 no-scrollbar flex shrink-0 gap-5 overflow-x-auto border-b px-4" role="tablist" aria-label="On deck" tabindex="-1"></div> <div id="rail-panel" role="tabpanel" class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-3"><!> <nav class="mt-5 flex flex-col" aria-label="More on deck"><a class="flex items-center justify-between gap-3 border-t px-1 py-3.5 font-medium hover:text-gold"> <!></a> <!></nav> <!></div></aside>');function Tr(i,t){pt(t,!0);const T=(a,n=jt,u=jt)=>{var w=Mn(),h=Te(w),F=d(h),D=d(F);{var H=z=>{var O=wn(),k=Te(O);Rt(k,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var W=o(k,2),$=j(W,!0),Q=o(W,2);{var ne=ge=>{var ze=_n(),We=j(ze,!0);y(()=>x(We,n().mate.where==="remote"?`on ${n().mate.host??"another host"}`:"on this computer")),c(ge,ze)};M(Q,ge=>{n().mate&&ge(ne)})}y(()=>x($,n().label)),c(z,O)},re=z=>{var O=kn(),k=Te(O);Tt(k,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var W=o(k,2),$=j(W,!0);y(()=>x($,n().label)),c(z,O)};M(D,z=>{n().id!==Me?z(H):z(re,-1)})}var q=o(D,2),I=j(q,!0),L=o(q,4);{var B=z=>{It(z,{get health(){return n().mate.health}})};M(L,z=>{n().mate&&(n().mate.health.online!=="online"||n().mate.health.cached)&&z(B)})}l(F),l(h);var Z=o(h,2);{var K=z=>{var O=yn(),k=d(O);It(k,{get health(){return n().mate.health}});var W=o(k,2),$=j(W),Q=o(W,2);l(O),y(ne=>{v(O,"data-second-mate",n().mate.id),v(W,"title",n().mate.lastReport?.text),x($,`${n().mate.stateLabel??""}${n().mate.queued.length?` · ${n().mate.queued.length} queued`:""}${n().mate.lastReport?` · “${n().mate.lastReport.text}”`:""}`),v(Q,"href",`/second-mates#mate-${ne??""}`)},[()=>encodeURIComponent(n().mate.id)]),c(z,O)};M(Z,z=>{n().mate&&e(g)===n().id&&z(K)})}y(()=>{v(h,"data-crew",n().id),ee(F,1,`flex h-6 w-full items-center gap-1.5 rounded-md px-1.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring ${e(g)===n().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),v(F,"aria-label",`${n().label??""}${n().mate?`, ${n().mate.where==="remote"?`on ${n().mate.host??"another host"}`:"on this computer"}`:""}: ${u()??""}${e(g)===n().id?"":". Show only this crew"}`),x(I,u())}),ve("click",F,()=>Ce(n().id)),c(a,w)};let b=xe(t,"insights",3,null),C=xe(t,"scope",3,null),r=xe(t,"cards",19,()=>[]),P=xe(t,"secondMates",19,()=>[]);const S=a=>!C()||a===C(),V=f(()=>(b()?.decisions??[]).filter(a=>S(a.projectId))),oe=f(()=>ca((b()?.today??[]).filter(a=>S(a.projectId)))),J=f(()=>da(e(oe))),he=f(()=>(b()?.today??[]).filter(a=>S(a.projectId)).length),ie=a=>e(J)?Math.round(e(oe)[a]/e(J)*100):0,N=f(()=>b()?.allowance??null),s=f(()=>sa.data.inbox),le=f(()=>tt.view(e(s))),Re=f(()=>e(le)?.available?{shown:tt.shown(t.now,e(s)).shown.filter(qt),all:e(le).cards}:null),E=f(()=>Wa(t.tasks,t.now,e(Re),C())),be=f(()=>[...e(E).needs,...e(E).withFirstmate,...e(E).under,...e(E).next,...e(E).landed]),Le=f(()=>C()?P().filter(a=>e(be).some(n=>n.crew===a.id)):P()),de=f(()=>qa(e(Le),e(be))),Ee="wheelhouse-rail-crew";let p=et(null);const g=f(()=>Na(e(p),e(de)));function Ce(a){Ne(p,a,!0);try{localStorage.setItem(Ee,a)}catch{}}function nt(a){if(!["ArrowLeft","ArrowRight","Home","End"].includes(a.key))return;a.preventDefault();const n=[Ae,...e(de).map(h=>h.id)],u=n.indexOf(e(g)),w=a.key==="Home"?0:a.key==="End"?n.length-1:(u+(a.key==="ArrowRight"?1:n.length-1))%n.length;Ce(n[w]),document.getElementById(Y(n[w]))?.focus()}const Y=a=>`rail-crew-${a.replace(/[^\w-]/g,"-")}`,A=a=>a.filter(n=>at(e(g),n.crew)),fe=a=>[...e(E).needs,...e(E).withFirstmate,...e(E).under].filter(n=>at(a,n.crew)).length,_e=a=>e(E).needs.filter(n=>at(a,n.crew)).length,je="wheelhouse-rail-tab",te=f(()=>[{id:"under",label:"Under way",count:A(e(E).under).length,strong:!1},{id:"needs",label:"Needs you",count:A(e(E).needs).length,strong:!0},{id:"landed",label:"Landed",count:A(e(E).landed).length,strong:!1},...r().map(a=>({id:a.key,label:a.title,count:a.badge??0,strong:!1}))]);let ae=et("under");const U=f(()=>e(te).some(a=>a.id===e(ae))?e(ae):"under"),ce=f(()=>r().find(a=>a.key===e(U))??null);ea(()=>{zt.load();try{Ne(ae,localStorage.getItem(je)||"under",!0),Ne(p,localStorage.getItem(Ee),!0)}catch{}});function Se(a){Ne(ae,a,!0);try{localStorage.setItem(je,a)}catch{}}function rt(a){if(a.key!=="ArrowLeft"&&a.key!=="ArrowRight")return;a.preventDefault();const n=e(te).findIndex(w=>w.id===e(U)),u=e(te)[(n+(a.key==="ArrowRight"?1:e(te).length-1))%e(te).length];Se(u.id),document.getElementById(`rail-tab-${u.id}`)?.focus()}let we=et(!1);const Ie=new ra;function st(a){Ie.has(a)?Ie.delete(a):Ie.add(a)}const ot=f(()=>e(U)==="needs"?[...e(E).needs,...e(E).withFirstmate]:e(U)==="under"?[...e(E).under,...e(we)?e(E).next:[]]:e(U)==="landed"?e(E).landed:[]),it=f(()=>Ya(e(ot),e(de),e(g))),Fe=f(()=>A(e(E).next).length),Ye=f(()=>e(g)===Ae||e(g)===Me);function Ue(a){if(!["ArrowDown","ArrowUp","Home","End"].includes(a.key))return;const u=[...a.currentTarget.querySelectorAll("[data-deck-line]")],w=u.indexOf(document.activeElement);if(w<0)return;a.preventDefault();const h=a.key==="Home"?0:a.key==="End"?u.length-1:Math.max(0,Math.min(u.length-1,w+(a.key==="ArrowDown"?1:-1)));u[h]?.focus()}const Pe=a=>!a||a==="unassigned"?null:t.projects.find(n=>n.id===a)?.name??a,lt=f(()=>Ia(t.projects,zt.names));function dt(a){const n=a.kind==="task"?a.task.projectId:a.card.projectId,u=Pe(n);return u?{name:u,tag:e(lt).get(n)?.label??u}:null}function Be(a){Ea.pending={kind:"task",id:a.id,title:a.shortTitle,project:Pe(a.projectId),url:null},t.onChat?.()}const me=f(()=>e(N)?.state==="ok"?e(N).windows.find(a=>/week/i.test(a.label))??e(N).windows[0]??null:null),Ge=f(()=>t.tasks.filter(a=>S(a.projectId))),ue=f(()=>ja(e(Ge))),De=f(()=>Sa(t.projects.filter(a=>S(a.id)&&a.id!=="unassigned"),t.tasks)),Ve={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var Oe=Vn(),Ke=d(Oe),Qe=j(Ke,!0),pe=o(Ke,2),Xe=o(d(pe),2);{var He=a=>{var n=jn(),u=o(d(n),2);ye(u,17,()=>e(N).windows.slice(0,2),w=>w.id,(w,h)=>{var F=Cn(),D=d(F),H=o(D),re=j(H);X(),l(F),y(()=>{ee(F,1,`whitespace-nowrap tabular-nums ${e(h).atRisk?"font-medium text-warning":e(h).id===e(me)?.id?"text-gold":""}`),x(D,`${e(h).label??""} `),ee(H,1,`font-semibold ${e(h).id===e(me)?.id?"":"text-foreground"}`),x(re,`${e(h).percentLeft??""}%`)}),c(w,F)}),l(n),y(w=>v(n,"title",`Claude headroom: ${w??""}${b()?.atRisk?`. ${b().atRisk.label} may run out before it resets.`:""}`),[()=>e(N).windows.slice(0,2).map(w=>`${w.label} ${w.percentLeft}% left`).join(", ")]),c(a,n)},ct=a=>{var n=Sn(),u=d(n);za(u,{class:"size-3.5","aria-hidden":"true"}),X(),l(n),c(a,n)};M(Xe,a=>{e(N)?.state==="ok"&&e(N).windows.length?a(He):e(N)?.state==="connect"&&a(ct,1)})}var _=o(Xe,2);{var R=a=>{var n=In(),u=d(n);Ta(u,{class:"size-4"}),l(n),y(()=>ee(n,1,`-mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground ${e(N)?.state==="ok"||e(N)?.state==="connect"?"":"ml-auto"}`)),ve("click",n,function(...w){t.onClose?.apply(this,w)}),c(a,n)};M(_,a=>{t.onClose&&a(R)})}l(pe);var G=o(pe,2),ke=d(G),xt=d(ke);{let a=f(()=>e(me)?.percentLeft??null);Et(xt,{get value(){return e(a)},tone:"gold"})}var bt=o(xt,2),_t=d(bt),Dt=j(_t,!0),Wt=o(_t,2),Yt=j(Wt,!0);l(bt),l(ke);var Je=o(ke,2),wt=d(Je);Et(wt,{get value(){return e(ue).percent},tone:"teal"});var kt=o(wt,2),Ut=o(d(kt),2),Pt=j(Ut,!0);l(kt),l(Je),l(G);var yt=o(G,2);{var Bt=a=>{var n=Tn(),u=d(n);ye(u,21,()=>[{id:Ae,label:"All",short:"All",mate:null},...e(de)],w=>w.id,(w,h)=>{const F=f(()=>fe(e(h).id)),D=f(()=>_e(e(h).id));var H=zn(),re=d(H);{var q=k=>{Rt(k,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},I=k=>{Tt(k,{class:"size-3 shrink-0","aria-hidden":"true"})};M(re,k=>{e(h).id!==Me&&e(h).id!==Ae?k(q):e(h).id===Me&&k(I,1)})}var L=o(re,2),B=j(L,!0),Z=o(L,2),K=j(Z),z=o(Z,2),O=j(z,!0);l(H),y(k=>{v(H,"id",k),v(H,"aria-checked",e(g)===e(h).id),v(H,"tabindex",e(g)===e(h).id?0:-1),ee(H,1,`flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-1.5 whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-ring ${e(g)===e(h).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),v(H,"title",`${e(h).label??""}${e(h).mate?.host?` on ${e(h).mate.host}`:""}: ${e(F)??""} in play${e(D)?`, ${e(D)} waiting on you`:""}`),x(B,e(h).short),x(K,`: ${e(F)??""} in play${e(D)?`, ${e(D)} waiting on you`:""}`),ee(z,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(D)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),x(O,e(D)||e(F))},[()=>Y(e(h).id)]),ve("click",H,()=>Ce(e(h).id)),c(w,H)}),l(u),l(n),ve("keydown",u,nt),c(a,n)};M(yt,a=>{e(de).length>1&&a(Bt)})}var Ze=o(yt,2);ye(Ze,21,()=>e(te),a=>a.id,(a,n)=>{var u=Rn(),w=d(u,!0),h=o(w);{var F=D=>{var H=An(),re=j(H,!0);y(()=>{ee(H,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(n).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),x(re,e(n).count)}),c(D,H)};M(h,D=>{e(n).count&&D(F)})}l(u),y(()=>{v(u,"id",`rail-tab-${e(n).id??""}`),v(u,"aria-selected",e(U)===e(n).id),v(u,"tabindex",e(U)===e(n).id?0:-1),ee(u,1,`-mb-px flex shrink-0 cursor-pointer items-center gap-1.5 border-b-[2.5px] px-0.5 py-2.5 text-base whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${e(U)===e(n).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),x(w,e(n).label)}),ve("click",u,()=>Se(e(n).id)),c(a,u)}),l(Ze);var ut=o(Ze,2),Mt=d(ut);{var Gt=a=>{var n=Ln(),u=d(n);xa(u,{get entry(){return e(ce)},get now(){return t.now}}),l(n),c(a,n)},Vt=a=>{var n=Un(),u=Te(n);{var w=q=>{var I=En(),L=d(I);{let Z=f(()=>e(we)?"rotate-90":"");Ra(L,{get class(){return`size-3.5 transition-transform ${e(Z)??""}`},"aria-hidden":"true"})}var B=o(L);l(I),y(()=>{v(I,"aria-expanded",e(we)),x(B,`Up next · ${e(Fe)??""}`)}),ve("click",I,()=>Ne(we,!e(we))),c(q,I)};M(u,q=>{e(U)==="under"&&e(Fe)&&q(w)})}var h=o(u,2);ye(h,21,()=>e(it),q=>q.crew.id,(q,I)=>{var L=Nn(),B=d(L);{var Z=k=>{T(k,()=>e(I).crew,()=>e(I).lines.length)};M(B,k=>{e(de).length>1&&k(Z)})}var K=o(B,2);{var z=k=>{var W=Hn();ye(W,21,()=>e(I).lines,$=>$.key,($,Q)=>{var ne=On(),ge=d(ne);{let ze=f(()=>Ie.has(e(Q).key)),We=f(()=>dt(e(Q))),ht=f(()=>e(Q).kind==="task"&&(e(Q).task.status==="queued"||e(Q).task.status==="landed"));gn(ge,{get line(){return e(Q)},get now(){return t.now},get open(){return e(ze)},get project(){return e(We)},get dim(){return e(ht)},onToggle:()=>st(e(Q).key),onChat:Be})}l(ne),St(1,ne,()=>fa),St(2,ne,()=>pa,()=>({word:e(Q).kind==="decision"?tt.stampFor(e(Q).card.id):null})),c($,ne)}),l(W),c(k,W)},O=k=>{var W=qn(),$=j(W,!0);y(()=>x($,Ve[e(U)])),c(k,W)};M(K,k=>{e(I).lines.length?k(z):k(O,-1)})}l(L),y(()=>{v(L,"aria-label",e(I).crew.label),v(L,"data-crew-group",e(I).crew.id)}),c(q,L)},q=>{var I=Fn(),L=d(I);{var B=K=>{Aa(K,{class:"size-4 text-success","aria-hidden":"true"})};M(L,K=>{e(U)==="needs"&&K(B)})}var Z=o(L,1,!0);l(I),y(()=>x(Z,Ve[e(U)])),c(q,I)}),l(h);var F=o(h,2);{var D=q=>{var I=Wn(),L=Te(I),B=d(L),Z=d(B);La(Z,{class:"size-3.5","aria-hidden":"true"}),X(),l(B),X(4),l(L);var K=o(L,2);ye(K,21,()=>e(V).slice(0,3),z=>z.id,(z,O)=>{var k=Dn(),W=d(k),$=d(W),Q=j($,!0),ne=o($,2),ge=j(ne,!0),ze=o(ne,2),We=j(ze,!0);l(W),l(k),y((ht,$t)=>{v(W,"href",`/decisions#${e(O).id??""}`),v(W,"title",e(O).question),x(Q,e(O).taskTitle),x(ge,e(O).verdict),v(ze,"title",ht),x(We,$t)},[()=>ft(e(O).decidedAt,t.now),()=>Ft(e(O).decidedAt,t.now)]),c(z,k)}),l(K),c(q,I)};M(F,q=>{e(U)==="needs"&&e(V).length&&e(Ye)&&q(D)})}var H=o(F,2);{var re=q=>{var I=Yn(),L=d(I),B=d(L),Z=j(B,!0),K=o(B);l(L);var z=o(L,2),O=d(z);ga(O,{get seconds(){return e(oe)},label:"Today"}),l(z);var k=o(z,2),W=j(k);l(I),y(($,Q,ne,ge)=>{x(Z,$),x(K,` of crew time today on ${e(he)??""}
2
2
  ${e(he)===1?"task":"tasks"}`),x(W,`${Q??""}% building · ${ne??""}% automated review · ${ge??""}%
3
3
  waiting on you`)},[()=>ua(e(J)),()=>ie("build"),()=>ie("review"),()=>ie("captain")]),c(q,I)};M(H,q=>{e(U)==="landed"&&e(J)>0&&e(Ye)&&q(re)})}ve("keydown",h,Ue),c(a,n)};M(Mt,a=>{e(ce)?a(Gt):a(Vt,-1)})}var vt=o(Mt,2),$e=d(vt),Ct=d($e),Kt=o(Ct);At(Kt,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),l($e);var Qt=o($e,2);{var Xt=a=>{var n=Pn(),u=o(d(n));At(u,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),l(n),c(a,n)};M(Qt,a=>{e(Le).length&&a(Xt)})}l(vt);var Jt=o(vt,2);{var Zt=a=>{var n=Gn(),u=o(d(n),4);ye(u,21,()=>e(De),w=>w.id,(w,h)=>{var F=Bn(),D=d(F),H=d(D),re=d(H),q=j(re,!0),I=o(re,2),L=j(I,!0);l(H);var B=o(H,2),Z=d(B);let K;l(B),l(D),l(F),y((z,O)=>{v(D,"href",`/projects/${z??""}`),v(D,"aria-label",`${e(h).name??""}: ${e(h).word??""}, ${e(h).landed??""}% of its work landed`),x(q,e(h).name),x(L,e(h).word),v(B,"data-tone",e(h).tone),K=na(Z,"",K,{width:O})},[()=>encodeURIComponent(e(h).id),()=>`${Math.max(e(h).landed,3)}%`]),c(w,F)}),l(u),l(n),c(a,n)};M(Jt,a=>{e(De).length&&a(Zt)})}l(ut),l(Oe),y((a,n,u)=>{x(Qe,a),v(ke,"aria-label",e(me)?`Claude headroom: ${e(me).label}, ${e(me).percentLeft}% left`:"Claude headroom: not read yet"),x(Dt,e(me)?.label??"Headroom"),x(Yt,e(me)?"Of Claude’s allowance left until it resets":e(N)?.state==="connect"?"Connect your Claude usage to see it":"Claude’s limits are not read yet"),v(Je,"href",n),v(Je,"aria-label",`Checks: ${e(ue).percent??""}% of the work in play has nothing failing${e(ue).failing?`, ${e(ue).failing} failing`:""}`),x(Pt,e(ue).failing?`${e(ue).failing} of ${e(ue).inPlay} in play failing`:e(ue).inPlay?`Nothing failing across ${e(ue).inPlay} in play`:"Nothing in play"),v(ut,"aria-labelledby",`rail-tab-${e(U)??""}`),v($e,"href",u),x(Ct,`${C()?"Open the project’s page":"Open every project in Harbour"} `)},[()=>la(e(E).h),()=>C()?`/projects/${encodeURIComponent(C())}`:"/harbour",()=>C()?`/projects/${encodeURIComponent(C())}`:"/harbour"]),ve("keydown",Ze,rt),c(i,Oe),gt()}Ot(["click","keydown"]);const Kn=6e4;class Qn{#e=et(null);get value(){return e(this.#e)}set value(t){Ne(this.#e,t,!0)}seed(t){t&&(this.value=t)}connect(){let t=!1;const b=setInterval(async()=>{try{const C=await fetch("/api/insights");C.ok&&!t&&(this.value=await C.json())}catch{}},Kn);return()=>{t=!0,clearInterval(b)}}}const Ar=new Qn;export{Tr as R,Ea as c,Ar as r};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{l as Rt,p as qt,q as ot,h as y,s as u,g as t,r as f,t as h,y as H,v as Ot,a as i,b as Jt,m as jt,f as N,o as _,d as g,i as w,n as Kt,c as l}from"./BO53-aYh.js";import{i as x}from"./tbcmS-db.js";import{s as nt,e as Pt,a as st}from"./DM1S1Fkj.js";import{c as Qt}from"./CrUt1p9N.js";import{s as S,r as z,p as Ut}from"./CJuHocDw.js";import{a as Xt,d as Yt}from"./DOKpGhvh.js";import{C as it}from"./D0j4DzjX.js";import{L as lt}from"./BElRY1Sf.js";import{C as Zt}from"./Cspe2k0T.js";import{I}from"./B2mEyVjp.js";import{I as te}from"./C1xZt4HY.js";import{S as ee}from"./BK1l_p_h.js";import{S as dt}from"./DAOwEdVE.js";import{F as re}from"./CNFyO4vc.js";import{S as ae}from"./iMamku9e.js";var oe=new Set(["$$slots","$$events","$$legacy"]);function ct(d,o){let c=z(o,oe);const s={name:"bot",size:24,node:[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]]};I(d,S(()=>c,{get icon(){return s}}))}var ne=new Set(["$$slots","$$events","$$legacy"]);function se(d,o){let c=z(o,ne);const s={name:"brain",size:24,node:[["path",{d:"M12 18V5"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77"}]]};I(d,S(()=>c,{get icon(){return s}}))}var ie=new Set(["$$slots","$$events","$$legacy"]);function Q(d,o){let c=z(o,ie);const s={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z"}]],aliases:["file-edit"]};I(d,S(()=>c,{get icon(){return s}}))}var le=new Set(["$$slots","$$events","$$legacy"]);function ut(d,o){let c=z(o,le);const s={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]]};I(d,S(()=>c,{get icon(){return s}}))}var de=new Set(["$$slots","$$events","$$legacy"]);function ce(d,o){let c=z(o,de);const s={name:"list-todo",size:24,node:[["path",{d:"M13 5h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 19h8"}],["path",{d:"m3 17 2 2 4-4"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1"}]]};I(d,S(()=>c,{get icon(){return s}}))}var ue=new Set(["$$slots","$$events","$$legacy"]);function pt(d,o){let c=z(o,ue);const s={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]]};I(d,S(()=>c,{get icon(){return s}}))}var pe=l('<!> <span class="truncate"> </span>',1),ve=l('<span class="truncate"> </span>'),me=l('<span class="min-w-0 truncate text-muted-foreground"> </span>'),fe=l('<span class="flex shrink-0 items-center gap-1 text-xs text-danger"><!>failed</span>'),he=l('<p class="text-muted-foreground">Claude Code keeps only a sealed signature for its thinking, not the words.</p>'),_e=l('<button class="self-start text-sea hover:underline">Show all</button>'),ge=l('<pre class="no-scrollbar max-h-72 overflow-auto rounded-md bg-muted p-3 font-mono whitespace-pre-wrap text-muted-foreground"> </pre> <!>',1),xe=l('<p class="text-muted-foreground">Still running…</p>'),be=l('<p class="text-muted-foreground">No output.</p>'),ke=l('<button class="mt-1 text-sea hover:underline"> </button>'),ye=l("<pre> </pre> <!>",1),$e=l('<div><div class="mb-1 text-muted-foreground">Input</div> <pre> </pre></div> <div><div class="mb-1 text-muted-foreground"> </div> <!></div>',1),we=l('<div class="mt-1 mb-2 ml-8 flex flex-col gap-2 text-xs"><!></div>'),Me=l('<li class="py-0.5"><button class="flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted"><!> <span class="shrink-0 text-foreground/80"> </span> <!> <!> <!></button> <!></li>'),Se=l('<ol class="mt-1.5 flex max-w-[80ch] flex-col rounded-lg border border-hair bg-bubble-firstmate px-2 py-1.5"></ol>'),ze=l('<div><button class="flex w-full max-w-[40rem] cursor-pointer items-center gap-2.5 rounded-xl border bg-card/60 px-4 py-2 text-left text-[0.95rem] text-foreground transition-colors hover:bg-muted"><!> <!></button> <!></div>');function Oe(d,o){qt(o,!0);let c=Ut(o,"live",3,!1),s=jt(!1),A=ot({}),C=ot({});const vt={Bash:ae,Read:re,Edit:Q,MultiEdit:Q,Write:Q,Grep:dt,Glob:dt,WebSearch:ut,WebFetch:ut,Skill:ee,ToolSearch:pt,Agent:ct,Task:ct,TodoWrite:ce},mt=r=>r.kind==="thinking"?se:r.kind==="context"?te:vt[r.name]??pt;function U(r){return r.kind==="thinking"?{verb:r.ms!=null&&r.ms>=1e3?`Thought for ${Yt(r.ms)}`:"Thought",summary:""}:r.kind==="context"?{verb:r.label,summary:""}:{verb:r.verb,summary:r.summary}}const X=w(()=>U(o.steps[o.steps.length-1])),V=1600,Y=(r,a)=>C[r]||a.length<=V?a:a.slice(0,V);function ft(r){const a=r.input??{};return r.name==="Bash"&&typeof a.command=="string"?{code:a.command,mono:!0}:(r.name==="Agent"||r.name==="Task")&&typeof a.prompt=="string"?{code:a.prompt,mono:!1}:{code:JSON.stringify(a,null,2),mono:!0}}var R=ze(),T=y(R),Z=y(T);{var ht=r=>{var a=pe(),b=N(a);lt(b,{class:"size-3.5 shrink-0 animate-spin text-sea","aria-hidden":"true"});var e=u(b,2),q=_(e);h(()=>g(q,`${t(X).verb??""} ${t(X).summary??""}`)),i(r,a)},_t=r=>{var a=ve(),b=_(a,!0);h(e=>g(b,e),[()=>Xt(o.steps)]),i(r,a)};x(Z,r=>{c()?r(ht):r(_t,-1)})}var gt=u(Z,2);{let r=w(()=>t(s)?"rotate-90":"");it(gt,{get class(){return`ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${t(r)??""}`},"aria-hidden":"true"})}f(T);var xt=u(T,2);{var bt=r=>{var a=Se();Pt(a,21,()=>o.steps,b=>b.id,(b,e)=>{const q=w(()=>mt(t(e))),O=w(()=>U(t(e)));var J=Me(),D=y(J),tt=y(D);Qt(tt,()=>t(q),(n,p)=>{p(n,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})});var et=u(tt,2),kt=_(et,!0),rt=u(et,2);{var yt=n=>{var p=me(),E=_(p,!0);h(()=>g(E,t(O).summary)),i(n,p)};x(rt,n=>{t(O).summary&&n(yt)})}var at=u(rt,2);{var $t=n=>{var p=fe(),E=y(p);Zt(E,{class:"size-3.5","aria-hidden":"true"}),Kt(),f(p),i(n,p)},wt=n=>{lt(n,{class:"size-3.5 shrink-0 animate-spin text-muted-foreground","aria-label":"Running"})};x(at,n=>{t(e).kind==="tool"&&t(e).isError?n($t):t(e).kind==="tool"&&t(e).result==null&&n(wt,1)})}var Mt=u(at,2);{let n=w(()=>A[t(e).id]?"rotate-90":"");it(Mt,{get class(){return`ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${t(n)??""}`},"aria-hidden":"true"})}f(D);var St=u(D,2);{var zt=n=>{var p=we(),E=y(p);{var It=v=>{var $=he();i(v,$)},At=v=>{var $=ge(),B=N($),F=_(B,!0),G=u(B,2);{var j=k=>{var L=_e();H("click",L,()=>C[t(e).id]=!0),i(k,L)};x(G,k=>{t(e).detail.length>V&&!C[t(e).id]&&k(j)})}h(k=>g(F,k),[()=>Y(t(e).id,t(e).detail)]),i(v,$)},Ct=v=>{const $=w(()=>ft(t(e)));var B=$e(),F=N(B),G=u(y(F),2),j=_(G,!0);f(F);var k=u(F,2),L=y(k),Tt=_(L,!0),Dt=u(L,2);{var Et=m=>{var M=xe();i(m,M)},Bt=m=>{var M=be();i(m,M)},Ft=w(()=>!t(e).result.trim()),Lt=m=>{var M=ye(),K=N(M),Wt=_(K,!0),Vt=u(K,2);{var Gt=W=>{var P=ke(),Ht=_(P);h(Nt=>g(Ht,`Show all (${Nt??""}k characters)`),[()=>Math.round(t(e).result.length/1e3)]),H("click",P,()=>C[t(e).id]=!0),i(W,P)};x(Vt,W=>{t(e).result.length>V&&!C[t(e).id]&&W(Gt)})}h(W=>{st(K,1,`no-scrollbar max-h-72 overflow-auto rounded-md bg-muted p-3 font-mono whitespace-pre-wrap ${t(e).isError?"text-danger":""}`),g(Wt,W)},[()=>Y(t(e).id,t(e).result)]),i(m,M)};x(Dt,m=>{t(e).result==null?m(Et):t(Ft)?m(Bt,1):m(Lt,-1)})}f(k),h(()=>{st(G,1,`no-scrollbar max-h-60 overflow-auto rounded-md bg-muted p-3 whitespace-pre-wrap ${t($).mono?"font-mono":"font-sans"}`),g(j,t($).code),g(Tt,t(e).isError?"Error":"Result")}),i(v,B)};x(E,v=>{t(e).kind==="thinking"?v(It):t(e).kind==="context"?v(At,1):v(Ct,-1)})}f(p),i(n,p)};x(St,n=>{A[t(e).id]&&n(zt)})}f(J),h(()=>{nt(D,"aria-expanded",!!A[t(e).id]),g(kt,t(O).verb)}),H("click",D,()=>A[t(e).id]=!A[t(e).id]),i(b,J)}),f(a),i(r,a)};x(xt,r=>{t(s)&&r(bt)})}f(R),h(()=>nt(T,"aria-expanded",t(s))),H("click",T,()=>Ot(s,!t(s))),i(d,R),Jt()}Rt(["click"]);export{Oe as A,ct as B};
1
+ import"./DsnmJJEf.js";import{l as Rt,p as qt,q as ot,h as y,s as u,g as t,r as f,t as h,y as H,v as Ot,a as i,b as Jt,m as jt,f as N,o as _,d as g,i as w,n as Kt,c as l}from"./BO53-aYh.js";import{i as x}from"./tbcmS-db.js";import{s as nt,e as Pt,a as st}from"./DM1S1Fkj.js";import{c as Qt}from"./CrUt1p9N.js";import{s as S,r as z,p as Ut}from"./CJuHocDw.js";import{a as Xt,d as Yt}from"./B1xoHaDM.js";import{C as it}from"./D0j4DzjX.js";import{L as lt}from"./BElRY1Sf.js";import{C as Zt}from"./Cspe2k0T.js";import{I}from"./B2mEyVjp.js";import{I as te}from"./C1xZt4HY.js";import{S as ee}from"./BK1l_p_h.js";import{S as dt}from"./DAOwEdVE.js";import{F as re}from"./CNFyO4vc.js";import{S as ae}from"./iMamku9e.js";var oe=new Set(["$$slots","$$events","$$legacy"]);function ct(d,o){let c=z(o,oe);const s={name:"bot",size:24,node:[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]]};I(d,S(()=>c,{get icon(){return s}}))}var ne=new Set(["$$slots","$$events","$$legacy"]);function se(d,o){let c=z(o,ne);const s={name:"brain",size:24,node:[["path",{d:"M12 18V5"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77"}]]};I(d,S(()=>c,{get icon(){return s}}))}var ie=new Set(["$$slots","$$events","$$legacy"]);function Q(d,o){let c=z(o,ie);const s={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z"}]],aliases:["file-edit"]};I(d,S(()=>c,{get icon(){return s}}))}var le=new Set(["$$slots","$$events","$$legacy"]);function ut(d,o){let c=z(o,le);const s={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]]};I(d,S(()=>c,{get icon(){return s}}))}var de=new Set(["$$slots","$$events","$$legacy"]);function ce(d,o){let c=z(o,de);const s={name:"list-todo",size:24,node:[["path",{d:"M13 5h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 19h8"}],["path",{d:"m3 17 2 2 4-4"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1"}]]};I(d,S(()=>c,{get icon(){return s}}))}var ue=new Set(["$$slots","$$events","$$legacy"]);function pt(d,o){let c=z(o,ue);const s={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]]};I(d,S(()=>c,{get icon(){return s}}))}var pe=l('<!> <span class="truncate"> </span>',1),ve=l('<span class="truncate"> </span>'),me=l('<span class="min-w-0 truncate text-muted-foreground"> </span>'),fe=l('<span class="flex shrink-0 items-center gap-1 text-xs text-danger"><!>failed</span>'),he=l('<p class="text-muted-foreground">Claude Code keeps only a sealed signature for its thinking, not the words.</p>'),_e=l('<button class="self-start text-sea hover:underline">Show all</button>'),ge=l('<pre class="no-scrollbar max-h-72 overflow-auto rounded-md bg-muted p-3 font-mono whitespace-pre-wrap text-muted-foreground"> </pre> <!>',1),xe=l('<p class="text-muted-foreground">Still running…</p>'),be=l('<p class="text-muted-foreground">No output.</p>'),ke=l('<button class="mt-1 text-sea hover:underline"> </button>'),ye=l("<pre> </pre> <!>",1),$e=l('<div><div class="mb-1 text-muted-foreground">Input</div> <pre> </pre></div> <div><div class="mb-1 text-muted-foreground"> </div> <!></div>',1),we=l('<div class="mt-1 mb-2 ml-8 flex flex-col gap-2 text-xs"><!></div>'),Me=l('<li class="py-0.5"><button class="flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted"><!> <span class="shrink-0 text-foreground/80"> </span> <!> <!> <!></button> <!></li>'),Se=l('<ol class="mt-1.5 flex max-w-[80ch] flex-col rounded-lg border border-hair bg-bubble-firstmate px-2 py-1.5"></ol>'),ze=l('<div><button class="flex w-full max-w-[40rem] cursor-pointer items-center gap-2.5 rounded-xl border bg-card/60 px-4 py-2 text-left text-[0.95rem] text-foreground transition-colors hover:bg-muted"><!> <!></button> <!></div>');function Oe(d,o){qt(o,!0);let c=Ut(o,"live",3,!1),s=jt(!1),A=ot({}),C=ot({});const vt={Bash:ae,Read:re,Edit:Q,MultiEdit:Q,Write:Q,Grep:dt,Glob:dt,WebSearch:ut,WebFetch:ut,Skill:ee,ToolSearch:pt,Agent:ct,Task:ct,TodoWrite:ce},mt=r=>r.kind==="thinking"?se:r.kind==="context"?te:vt[r.name]??pt;function U(r){return r.kind==="thinking"?{verb:r.ms!=null&&r.ms>=1e3?`Thought for ${Yt(r.ms)}`:"Thought",summary:""}:r.kind==="context"?{verb:r.label,summary:""}:{verb:r.verb,summary:r.summary}}const X=w(()=>U(o.steps[o.steps.length-1])),V=1600,Y=(r,a)=>C[r]||a.length<=V?a:a.slice(0,V);function ft(r){const a=r.input??{};return r.name==="Bash"&&typeof a.command=="string"?{code:a.command,mono:!0}:(r.name==="Agent"||r.name==="Task")&&typeof a.prompt=="string"?{code:a.prompt,mono:!1}:{code:JSON.stringify(a,null,2),mono:!0}}var R=ze(),T=y(R),Z=y(T);{var ht=r=>{var a=pe(),b=N(a);lt(b,{class:"size-3.5 shrink-0 animate-spin text-sea","aria-hidden":"true"});var e=u(b,2),q=_(e);h(()=>g(q,`${t(X).verb??""} ${t(X).summary??""}`)),i(r,a)},_t=r=>{var a=ve(),b=_(a,!0);h(e=>g(b,e),[()=>Xt(o.steps)]),i(r,a)};x(Z,r=>{c()?r(ht):r(_t,-1)})}var gt=u(Z,2);{let r=w(()=>t(s)?"rotate-90":"");it(gt,{get class(){return`ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${t(r)??""}`},"aria-hidden":"true"})}f(T);var xt=u(T,2);{var bt=r=>{var a=Se();Pt(a,21,()=>o.steps,b=>b.id,(b,e)=>{const q=w(()=>mt(t(e))),O=w(()=>U(t(e)));var J=Me(),D=y(J),tt=y(D);Qt(tt,()=>t(q),(n,p)=>{p(n,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})});var et=u(tt,2),kt=_(et,!0),rt=u(et,2);{var yt=n=>{var p=me(),E=_(p,!0);h(()=>g(E,t(O).summary)),i(n,p)};x(rt,n=>{t(O).summary&&n(yt)})}var at=u(rt,2);{var $t=n=>{var p=fe(),E=y(p);Zt(E,{class:"size-3.5","aria-hidden":"true"}),Kt(),f(p),i(n,p)},wt=n=>{lt(n,{class:"size-3.5 shrink-0 animate-spin text-muted-foreground","aria-label":"Running"})};x(at,n=>{t(e).kind==="tool"&&t(e).isError?n($t):t(e).kind==="tool"&&t(e).result==null&&n(wt,1)})}var Mt=u(at,2);{let n=w(()=>A[t(e).id]?"rotate-90":"");it(Mt,{get class(){return`ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${t(n)??""}`},"aria-hidden":"true"})}f(D);var St=u(D,2);{var zt=n=>{var p=we(),E=y(p);{var It=v=>{var $=he();i(v,$)},At=v=>{var $=ge(),B=N($),F=_(B,!0),G=u(B,2);{var j=k=>{var L=_e();H("click",L,()=>C[t(e).id]=!0),i(k,L)};x(G,k=>{t(e).detail.length>V&&!C[t(e).id]&&k(j)})}h(k=>g(F,k),[()=>Y(t(e).id,t(e).detail)]),i(v,$)},Ct=v=>{const $=w(()=>ft(t(e)));var B=$e(),F=N(B),G=u(y(F),2),j=_(G,!0);f(F);var k=u(F,2),L=y(k),Tt=_(L,!0),Dt=u(L,2);{var Et=m=>{var M=xe();i(m,M)},Bt=m=>{var M=be();i(m,M)},Ft=w(()=>!t(e).result.trim()),Lt=m=>{var M=ye(),K=N(M),Wt=_(K,!0),Vt=u(K,2);{var Gt=W=>{var P=ke(),Ht=_(P);h(Nt=>g(Ht,`Show all (${Nt??""}k characters)`),[()=>Math.round(t(e).result.length/1e3)]),H("click",P,()=>C[t(e).id]=!0),i(W,P)};x(Vt,W=>{t(e).result.length>V&&!C[t(e).id]&&W(Gt)})}h(W=>{st(K,1,`no-scrollbar max-h-72 overflow-auto rounded-md bg-muted p-3 font-mono whitespace-pre-wrap ${t(e).isError?"text-danger":""}`),g(Wt,W)},[()=>Y(t(e).id,t(e).result)]),i(m,M)};x(Dt,m=>{t(e).result==null?m(Et):t(Ft)?m(Bt,1):m(Lt,-1)})}f(k),h(()=>{st(G,1,`no-scrollbar max-h-60 overflow-auto rounded-md bg-muted p-3 whitespace-pre-wrap ${t($).mono?"font-mono":"font-sans"}`),g(j,t($).code),g(Tt,t(e).isError?"Error":"Result")}),i(v,B)};x(E,v=>{t(e).kind==="thinking"?v(It):t(e).kind==="context"?v(At,1):v(Ct,-1)})}f(p),i(n,p)};x(St,n=>{A[t(e).id]&&n(zt)})}f(J),h(()=>{nt(D,"aria-expanded",!!A[t(e).id]),g(kt,t(O).verb)}),H("click",D,()=>A[t(e).id]=!A[t(e).id]),i(b,J)}),f(a),i(r,a)};x(xt,r=>{t(s)&&r(bt)})}f(R),h(()=>nt(T,"aria-expanded",t(s))),H("click",T,()=>Ot(s,!t(s))),i(d,R),Jt()}Rt(["click"]);export{Oe as A,ct as B};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{p as d,v as g,g as r,b as m,m as p,i as a}from"./BO53-aYh.js";import{p as c}from"./CJuHocDw.js";import{p as l}from"./DsnT-RPG.js";import{i as n}from"./BR2U27At.js";import{D as f}from"./DuX2xyeV.js";function A(o,e){d(e,!0);let i=c(e,"project",3,null),t=p(!1);{let s=a(()=>n.view(l.data.inbox)?.canAnswer??!1),u=a(()=>n.errors[e.card.id]??null);f(o,{get card(){return e.card},get project(){return i()},get expanded(){return r(t)},get canAnswer(){return r(s)},get error(){return r(u)},get now(){return e.now},get onLater(){return e.onLater},onToggle:()=>g(t,!r(t))})}m()}export{A as O};
1
+ import"./DsnmJJEf.js";import{p as d,v as g,g as r,b as m,m as p,i as a}from"./BO53-aYh.js";import{p as c}from"./CJuHocDw.js";import{p as l}from"./Rw-QdBqX.js";import{i as n}from"./BR2U27At.js";import{D as f}from"./CzRQxst7.js";function A(o,e){d(e,!0);let i=c(e,"project",3,null),t=p(!1);{let s=a(()=>n.view(l.data.inbox)?.canAnswer??!1),u=a(()=>n.errors[e.card.id]??null);f(o,{get card(){return e.card},get project(){return i()},get expanded(){return r(t)},get canAnswer(){return r(s)},get error(){return r(u)},get now(){return e.now},get onLater(){return e.onLater},onToggle:()=>g(t,!r(t))})}m()}export{A as O};