@chrisjowen/wheelhouse 0.24.0 → 0.24.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 (522) hide show
  1. package/build/client/_app/immutable/chunks/{DlAlt18J.js → BBesepuR.js} +1 -1
  2. package/build/client/_app/immutable/chunks/BBesepuR.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/BBesepuR.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{CyKAWacA.js → BY1C16HZ.js} +1 -1
  5. package/build/client/_app/immutable/chunks/BY1C16HZ.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BY1C16HZ.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{BkAmMVsw.js → BhOOgzoY.js} +1 -1
  8. package/build/client/_app/immutable/chunks/BhOOgzoY.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BhOOgzoY.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{D-IXMU2L.js → BnPVAF08.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BnPVAF08.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BnPVAF08.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{BiW3is2c.js → BoV2Cb3u.js} +1 -1
  14. package/build/client/_app/immutable/chunks/BoV2Cb3u.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BoV2Cb3u.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{C4f5KkA2.js → BxUfJDlK.js} +1 -1
  17. package/build/client/_app/immutable/chunks/BxUfJDlK.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BxUfJDlK.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{kNXqkaLy.js → CEqUfztC.js} +1 -1
  20. package/build/client/_app/immutable/chunks/CEqUfztC.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/CEqUfztC.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{DLdhxfs7.js → CTPaAaT8.js} +1 -1
  23. package/build/client/_app/immutable/chunks/CTPaAaT8.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/CTPaAaT8.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{QOxfJswt.js → CidiHe2w.js} +1 -1
  26. package/build/client/_app/immutable/chunks/CidiHe2w.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CidiHe2w.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{vyMQ5db-.js → CjpC_avs.js} +1 -1
  29. package/build/client/_app/immutable/chunks/CjpC_avs.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CjpC_avs.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{BqTq4oc1.js → CqTNazs8.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CqTNazs8.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CqTNazs8.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{qL93yOki.js → Cv8vU_7G.js} +1 -1
  35. package/build/client/_app/immutable/chunks/Cv8vU_7G.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/Cv8vU_7G.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{DSoS8iw8.js → D0W-yI5k.js} +1 -1
  38. package/build/client/_app/immutable/chunks/D0W-yI5k.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/D0W-yI5k.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{D0_SdZ1Y.js → D3m3qs9L.js} +1 -1
  41. package/build/client/_app/immutable/chunks/D3m3qs9L.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/D3m3qs9L.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{DrAaxSl_.js → D5k4wnt7.js} +1 -1
  44. package/build/client/_app/immutable/chunks/D5k4wnt7.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/D5k4wnt7.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{D64mTvaN.js → DN2Bw8XE.js} +1 -1
  47. package/build/client/_app/immutable/chunks/DN2Bw8XE.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/DN2Bw8XE.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{BlR6_nYR.js → DWJRIYp5.js} +1 -1
  50. package/build/client/_app/immutable/chunks/DWJRIYp5.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DWJRIYp5.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/{BV08B4f2.js → DZhEGM3P.js} +1 -1
  53. package/build/client/_app/immutable/chunks/DZhEGM3P.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/DZhEGM3P.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{xJ7m3_X4.js → De08PyIM.js} +2 -2
  56. package/build/client/_app/immutable/chunks/De08PyIM.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/De08PyIM.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{skcbA-fa.js → DgeYJw1V.js} +1 -1
  59. package/build/client/_app/immutable/chunks/DgeYJw1V.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DgeYJw1V.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/{BsJW6yGO.js → ZFly2pmD.js} +1 -1
  62. package/build/client/_app/immutable/chunks/ZFly2pmD.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/ZFly2pmD.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/{xTuQT2it.js → _sdkObeO.js} +1 -1
  65. package/build/client/_app/immutable/chunks/_sdkObeO.js.br +1 -0
  66. package/build/client/_app/immutable/chunks/_sdkObeO.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/{DK5gnzN6.js → v1_0RI9s.js} +1 -1
  68. package/build/client/_app/immutable/chunks/v1_0RI9s.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/v1_0RI9s.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/{CAaBUUji.js → yLS4MyUX.js} +1 -1
  71. package/build/client/_app/immutable/chunks/yLS4MyUX.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/yLS4MyUX.js.gz +0 -0
  73. package/build/client/_app/immutable/entry/{app.C_bqQknd.js → app.DHcKVmKY.js} +2 -2
  74. package/build/client/_app/immutable/entry/app.DHcKVmKY.js.br +0 -0
  75. package/build/client/_app/immutable/entry/app.DHcKVmKY.js.gz +0 -0
  76. package/build/client/_app/immutable/entry/start.Pwknkd-J.js +1 -0
  77. package/build/client/_app/immutable/entry/start.Pwknkd-J.js.br +0 -0
  78. package/build/client/_app/immutable/entry/start.Pwknkd-J.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{0.DL43MSrJ.js → 0.d_V6I31n.js} +1 -1
  80. package/build/client/_app/immutable/nodes/0.d_V6I31n.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/0.d_V6I31n.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{1.CGFu7RhX.js → 1.BHMHInUO.js} +1 -1
  83. package/build/client/_app/immutable/nodes/{1.CGFu7RhX.js.br → 1.BHMHInUO.js.br} +0 -0
  84. package/build/client/_app/immutable/nodes/1.BHMHInUO.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{10.CY8IKTU1.js → 10.BSyzQxNk.js} +1 -1
  86. package/build/client/_app/immutable/nodes/10.BSyzQxNk.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/10.BSyzQxNk.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{11.DeI53l7V.js → 11.Cj3IvJeL.js} +1 -1
  89. package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/11.Cj3IvJeL.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{12.BcEihrai.js → 12.Cq63mXMK.js} +1 -1
  92. package/build/client/_app/immutable/nodes/12.Cq63mXMK.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/12.Cq63mXMK.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{13.DL0BDw6w.js → 13.BUbIjJfF.js} +1 -1
  95. package/build/client/_app/immutable/nodes/13.BUbIjJfF.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/13.BUbIjJfF.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{14.BDP1SHs8.js → 14.Ddky97Wb.js} +1 -1
  98. package/build/client/_app/immutable/nodes/14.Ddky97Wb.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/14.Ddky97Wb.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{15.BeGytqIn.js → 15.B4xWeGxa.js} +1 -1
  101. package/build/client/_app/immutable/nodes/15.B4xWeGxa.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/15.B4xWeGxa.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/{16.Bzdjoocn.js → 16.LQrwVbEB.js} +1 -1
  104. package/build/client/_app/immutable/nodes/16.LQrwVbEB.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/16.LQrwVbEB.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{17.CqESnpF4.js → 17.DYmttVYk.js} +1 -1
  107. package/build/client/_app/immutable/nodes/17.DYmttVYk.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/17.DYmttVYk.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{18.szNVFqEf.js → 18.B2MYLx89.js} +1 -1
  110. package/build/client/_app/immutable/nodes/18.B2MYLx89.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/18.B2MYLx89.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{19.DzeJRoFz.js → 19.DXwfInRR.js} +1 -1
  113. package/build/client/_app/immutable/nodes/19.DXwfInRR.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/19.DXwfInRR.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{2.qnsqFylJ.js → 2.F5N7XU8C.js} +1 -1
  116. package/build/client/_app/immutable/nodes/2.F5N7XU8C.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/2.F5N7XU8C.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/{20.BhQ-50Hx.js → 20.SAWcBx0p.js} +1 -1
  119. package/build/client/_app/immutable/nodes/20.SAWcBx0p.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/20.SAWcBx0p.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{21.BcUkJ16A.js → 21.D6qFz2sa.js} +1 -1
  122. package/build/client/_app/immutable/nodes/21.D6qFz2sa.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/21.D6qFz2sa.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{22.MH9D7aDR.js → 22.tV2rJSEI.js} +1 -1
  125. package/build/client/_app/immutable/nodes/22.tV2rJSEI.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/22.tV2rJSEI.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{23.Dm68JGQ6.js → 23.DuW8-oym.js} +1 -1
  128. package/build/client/_app/immutable/nodes/23.DuW8-oym.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/23.DuW8-oym.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{24.DGSVlnqh.js → 24.CnP1JJLb.js} +1 -1
  131. package/build/client/_app/immutable/nodes/24.CnP1JJLb.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/24.CnP1JJLb.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/{25.1Zvn6jWz.js → 25.DeEfy92d.js} +1 -1
  134. package/build/client/_app/immutable/nodes/25.DeEfy92d.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/25.DeEfy92d.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/{26.z8zoJnJR.js → 26.D-8mzx-R.js} +1 -1
  137. package/build/client/_app/immutable/nodes/26.D-8mzx-R.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/{26.z8zoJnJR.js.gz → 26.D-8mzx-R.js.gz} +0 -0
  139. package/build/client/_app/immutable/nodes/{28.CzIMeNvZ.js → 28.C2P7oxne.js} +1 -1
  140. package/build/client/_app/immutable/nodes/28.C2P7oxne.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/28.C2P7oxne.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{3.BQbJ7kiA.js → 3.ucJ0Pz2c.js} +1 -1
  143. package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/3.ucJ0Pz2c.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/{30.BK6LOiKB.js → 30.CEgnqL0a.js} +1 -1
  146. package/build/client/_app/immutable/nodes/30.CEgnqL0a.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/30.CEgnqL0a.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/{31.CTbKTPCM.js → 31.BYFAiOJd.js} +1 -1
  149. package/build/client/_app/immutable/nodes/31.BYFAiOJd.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/31.BYFAiOJd.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/{32.Bm9Mrm93.js → 32.BkVMo3VQ.js} +1 -1
  152. package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/32.BkVMo3VQ.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/{33.CxqcHI9-.js → 33.DRQLqVjL.js} +1 -1
  155. package/build/client/_app/immutable/nodes/33.DRQLqVjL.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/33.DRQLqVjL.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/{34.CY6TYWcc.js → 34.DTI61C_T.js} +1 -1
  158. package/build/client/_app/immutable/nodes/34.DTI61C_T.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/34.DTI61C_T.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/{35.fQqixPey.js → 35.-X5S6mPa.js} +1 -1
  161. package/build/client/_app/immutable/nodes/35.-X5S6mPa.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/35.-X5S6mPa.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/{36.BemSOTgX.js → 36.jtWdNkRT.js} +1 -1
  164. package/build/client/_app/immutable/nodes/36.jtWdNkRT.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/36.jtWdNkRT.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/{37.DoB20L2E.js → 37.BL9MLXZv.js} +1 -1
  167. package/build/client/_app/immutable/nodes/37.BL9MLXZv.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/37.BL9MLXZv.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/{38.B7aeIKDX.js → 38.CMuF_Clt.js} +1 -1
  170. package/build/client/_app/immutable/nodes/38.CMuF_Clt.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/38.CMuF_Clt.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/{39.B1817o0R.js → 39.tiSwGz1u.js} +1 -1
  173. package/build/client/_app/immutable/nodes/39.tiSwGz1u.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/39.tiSwGz1u.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/{4.DCcgp6gn.js → 4.dUo8OlOh.js} +1 -1
  176. package/build/client/_app/immutable/nodes/4.dUo8OlOh.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/4.dUo8OlOh.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/{40.CuoCjhyK.js → 40.Cvy3afVQ.js} +1 -1
  179. package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/40.Cvy3afVQ.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/{41.DtgiBysv.js → 41.CCo8O58Y.js} +1 -1
  182. package/build/client/_app/immutable/nodes/41.CCo8O58Y.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/41.CCo8O58Y.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/{42.U66RZJ39.js → 42.CBMdYvRk.js} +1 -1
  185. package/build/client/_app/immutable/nodes/42.CBMdYvRk.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/42.CBMdYvRk.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/{44.D-_cJdZy.js → 44.CZPoIuC8.js} +1 -1
  188. package/build/client/_app/immutable/nodes/44.CZPoIuC8.js.br +0 -0
  189. package/build/client/_app/immutable/nodes/44.CZPoIuC8.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/{5.CsBNIKLl.js → 5.Dafp5GI5.js} +1 -1
  191. package/build/client/_app/immutable/nodes/5.Dafp5GI5.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/5.Dafp5GI5.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/{6.D46lJjHa.js → 6.BE696aJ4.js} +1 -1
  194. package/build/client/_app/immutable/nodes/6.BE696aJ4.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/6.BE696aJ4.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/{9.CLZt4gVs.js → 9.DhQeTbmU.js} +1 -1
  197. package/build/client/_app/immutable/nodes/9.DhQeTbmU.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/9.DhQeTbmU.js.gz +0 -0
  199. package/build/client/_app/version.json +1 -1
  200. package/build/client/_app/version.json.br +0 -0
  201. package/build/client/_app/version.json.gz +0 -0
  202. package/build/handler.js +4 -4
  203. package/build/index.js +4 -4
  204. package/build/server/chunks/chunks/{detail.js-DCkIB4wl.js → detail.js-DgGYGF6E.js} +2 -2
  205. package/build/server/chunks/chunks/{feedback.js-BTR9xkHF.js → feedback.js-C6iqEsPN.js} +2 -2
  206. package/build/server/chunks/chunks/{internal.js-Bg8MvH6G.js → internal.js-DVvBSC2Y.js} +3 -3
  207. package/build/server/chunks/chunks/{marketplace-service.js-CqwpcR5A.js → marketplace-service.js-rqq8C3T1.js} +2 -2
  208. package/build/server/chunks/chunks/{package.js-BOu7yHDP.js → package.js-CVpRo49m.js} +2 -2
  209. package/build/server/chunks/chunks/{page.js-DZmeg344.js → page.js-Zj6kzOqn.js} +3 -3
  210. package/build/server/chunks/chunks/{previewhelper2.js-DhAL5_6K.js → previewhelper2.js-BfPvB6QX.js} +3 -3
  211. package/build/server/chunks/chunks/{remote.js-B8iHzqbR.js → remote.js-TLEFH8L2.js} +22 -3
  212. package/build/server/chunks/chunks/{runtime.js-CCDb6NUe.js → runtime.js-DcSUF_r8.js} +25 -5
  213. package/build/server/chunks/chunks/{scribe.js-CPHlcPWd.js → scribe.js-BwiXC-bJ.js} +3 -3
  214. package/build/server/chunks/chunks/{service.js-DSxBrc6d.js → service.js-D4yz0pF8.js} +2 -2
  215. package/build/server/chunks/chunks/{service2.js-CnOAObr8.js → service2.js-BzDKAz-w.js} +2 -2
  216. package/build/server/chunks/chunks/{service3.js-DpPYyCFX.js → service3.js-8zLUKBxg.js} +2 -2
  217. package/build/server/chunks/chunks/{settings.js-FZbEnILS.js → settings.js-D7vi6kH7.js} +2 -2
  218. package/build/server/chunks/chunks/{starter.js-Z4qUYkMx.js → starter.js-JAh-nUu5.js} +3 -3
  219. package/build/server/chunks/chunks/{view.js-9667u7-H.js → view.js-G_-xy6c3.js} +2 -2
  220. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-D8BEzPks.js → _server.ts.js-B2J5-Jaz.js} +3 -3
  221. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-DsvibwQo.js → _server.ts.js--wAlyFki.js} +5 -5
  222. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-D3QhZ5yy.js → _server.ts.js-BNkJb1Ei.js} +3 -3
  223. package/build/server/chunks/entries/endpoints/api/crew/{_server.ts.js-BQmCAgYI.js → _server.ts.js-CE4ho2tR.js} +3 -3
  224. package/build/server/chunks/entries/endpoints/api/crew/messages/{_server.ts.js-D6vKOU4l.js → _server.ts.js-jEjvyX3L.js} +3 -3
  225. package/build/server/chunks/entries/endpoints/api/documents/{_server.ts.js-DuflqKrA.js → _server.ts.js-vYs_6t0J.js} +3 -3
  226. package/build/server/chunks/entries/endpoints/api/documents/briefing/{_server.ts.js-B9u0JtDZ.js → _server.ts.js-D6QVYL_4.js} +3 -3
  227. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-CXk1I-s5.js → _server.ts.js-BJ3Ravc8.js} +3 -3
  228. package/build/server/chunks/entries/endpoints/api/features/{_server.ts.js-DRXyKXoh.js → _server.ts.js-BEPV7YR2.js} +2 -2
  229. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CHm9En9u.js → _server.ts.js-BcZoObuM.js} +3 -3
  230. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-DZ10q4PZ.js → _server.ts.js-CdU3fF0J.js} +3 -3
  231. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/{_server.ts.js-DWpSMN_e.js → _server.ts.js-XzPx-PzQ.js} +3 -3
  232. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/{_server.ts.js-r5EeGDB9.js → _server.ts.js-CzXJdEjR.js} +3 -3
  233. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/{_server.ts.js-D8axU9Ds.js → _server.ts.js-X5fNEQPZ.js} +3 -3
  234. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DvRi4-bS.js → _server.ts.js-BS5jyhRw.js} +3 -3
  235. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-3D-zqPU7.js → _server.ts.js-DUhm2FN4.js} +3 -3
  236. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-C05dgSJS.js → _server.ts.js-Dm129oxx.js} +3 -3
  237. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DM6G3h5y.js → _server.ts.js-CZVuQvpx.js} +3 -3
  238. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-D45ENMJB.js → _server.ts.js-CKJzfKIQ.js} +3 -3
  239. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-BITiA3fH.js → _server.ts.js-rgQhLN38.js} +3 -3
  240. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-DaWZw8pD.js → _server.ts.js-E5Mf_VJv.js} +3 -3
  241. package/build/server/chunks/entries/endpoints/api/firstmate/signin/{_server.ts.js-CZzxvZ9J.js → _server.ts.js-C4yUZjAY.js} +3 -3
  242. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-CeXazf71.js → _server.ts.js-B86FNiew.js} +3 -3
  243. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-DNakBJpI.js → _server.ts.js-rJYpVlFE.js} +3 -3
  244. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-oSlVw3U-.js → _server.ts.js-D0Nr2g1y.js} +3 -3
  245. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-DKpKqARI.js → _server.ts.js-CqTI0_pM.js} +3 -3
  246. package/build/server/chunks/entries/endpoints/api/inbox/following/{_server.ts.js-Do8VP-YQ.js → _server.ts.js-VNW7HGOT.js} +3 -3
  247. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-ty868lLE.js → _server.ts.js-BU-5ub-I.js} +3 -3
  248. package/build/server/chunks/entries/endpoints/api/inbox/talk/{_server.ts.js-CQkwL0rD.js → _server.ts.js-brrrZ6Zb.js} +4 -4
  249. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-BvzIuaym.js → _server.ts.js-Dhw2YuZk.js} +3 -3
  250. package/build/server/chunks/entries/endpoints/api/library/doc/{_server.ts.js-BCD8UCda.js → _server.ts.js-Dfoof_SQ.js} +3 -3
  251. package/build/server/chunks/entries/endpoints/api/library/promote/{_server.ts.js-DF5QaWdr.js → _server.ts.js-CJ1FKLLp.js} +3 -3
  252. package/build/server/chunks/entries/endpoints/api/live/_id_/end/{_server.ts.js-DYKzL_m9.js → _server.ts.js-DpCseNhF.js} +3 -3
  253. package/build/server/chunks/entries/endpoints/api/live/{_server.ts.js-0F2_nib_.js → _server.ts.js-BvbgYeeF.js} +3 -3
  254. package/build/server/chunks/entries/endpoints/api/live/scouts/{_server.ts.js-VjhDF8Zu.js → _server.ts.js-CodtKfl8.js} +3 -3
  255. package/build/server/chunks/entries/endpoints/api/live/settings/{_server.ts.js-DvJSVSjw.js → _server.ts.js-D1d85rzP.js} +3 -3
  256. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-BMJ7HbQq.js → _server.ts.js-CC45m6Sr.js} +3 -3
  257. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-CO8Af6jn.js → _server.ts.js-DRZ8098M.js} +4 -4
  258. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-CR3QXthM.js → _server.ts.js-BHVex3Sd.js} +5 -5
  259. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DDjhPQRS.js → _server.ts.js-CXlTitlI.js} +3 -3
  260. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-WVmE9mVd.js → _server.ts.js-C-b29jqN.js} +2 -2
  261. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-Cm-9zIoi.js → _server.ts.js-C_DJ_pLg.js} +3 -3
  262. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-BFeAY67I.js → _server.ts.js-xnGpQeHD.js} +2 -2
  263. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CvAQo2kn.js → _server.ts.js-zMwJlAc8.js} +3 -3
  264. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-CHxwtQHh.js → _server.ts.js-44pVKE3k.js} +2 -2
  265. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-DSpQGp27.js → _server.ts.js-DWkAJEde.js} +2 -2
  266. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-DMREi9Pr.js → _server.ts.js-C-d6SYqR.js} +4 -4
  267. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-BeWwqmLG.js → _server.ts.js-BrosK67i.js} +4 -4
  268. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-Dkzta0M_.js → _server.ts.js-otCGnd88.js} +4 -4
  269. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-DwQYqOWh.js → _server.ts.js-BjoKSVe1.js} +3 -3
  270. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-C0Y--kKI.js → _server.ts.js-DX72RZRk.js} +2 -2
  271. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-HcU7dUaN.js → _server.ts.js-CzlxdvlD.js} +4 -4
  272. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-Dnq8SBmx.js → _server.ts.js-DZj1G9bN.js} +4 -4
  273. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-C1IxdPvG.js → _server.ts.js-C5UJ7mLX.js} +4 -4
  274. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-BEkjU0sD.js → _server.ts.js-ClT0DY2-.js} +4 -4
  275. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-FLttbhnI.js → _server.ts.js-BPJkenRn.js} +4 -4
  276. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-Bha1xzEw.js → _server.ts.js-Djs5J_D0.js} +4 -4
  277. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-NjHGpfdP.js → _server.ts.js-CH-_wkku.js} +4 -4
  278. package/build/server/chunks/entries/endpoints/api/second-mate-setup/{_server.ts.js-CKjMYRPa.js → _server.ts.js-BGqL9IgY.js} +5 -5
  279. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/{_server.ts.js-BOJAdcMO.js → _server.ts.js-CZy6ifJ_.js} +3 -3
  280. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-BTCUhVLF.js → _server.ts.js-B_SZ7MPW.js} +3 -3
  281. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-Dt3D1vlP.js → _server.ts.js-4zkQC71I.js} +3 -3
  282. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Nuj2D0ou.js → _server.ts.js-CQ1vZ3MD.js} +4 -4
  283. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-CiEm0rNZ.js → _server.ts.js-B78jOuRe.js} +3 -3
  284. package/build/server/chunks/entries/endpoints/api/soundings/{_server.ts.js-DCeLnaet.js → _server.ts.js-DZv8AryD.js} +3 -3
  285. package/build/server/chunks/entries/endpoints/api/soundings/beacon/{_server.ts.js-X0QaDi3f.js → _server.ts.js-fIpsUXJq.js} +3 -3
  286. package/build/server/chunks/entries/endpoints/api/soundings/settings/{_server.ts.js-DeWAhlq5.js → _server.ts.js-BGaAEIbl.js} +3 -3
  287. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-jpshAN_z.js → _server.ts.js-ksbo_110.js} +4 -4
  288. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-DdHtMz3U.js → _server.ts.js-DkY1Gc2u.js} +3 -3
  289. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/{_server.ts.js-D25Xyng0.js → _server.ts.js-KhbknjpT.js} +3 -3
  290. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-PvhE-sWb.js → _server.ts.js-CViAXfb1.js} +3 -3
  291. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/{_server.ts.js-JA56U2UK.js → _server.ts.js-gDOC8B1N.js} +8 -7
  292. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-D2IAZAi5.js → _server.ts.js-D3Q8zW0q.js} +3 -3
  293. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-ecGZ6usx.js → _server.ts.js-DIqci-Ed.js} +4 -4
  294. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-DIL1cK_3.js → _server.ts.js-BybuPQi8.js} +4 -4
  295. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-CgKjSAlD.js → _server.ts.js-oWGGEMWD.js} +3 -3
  296. package/build/server/chunks/entries/endpoints/api/voice/{_server.ts.js-BOQKIJxn.js → _server.ts.js-_OAduKHo.js} +2 -2
  297. package/build/server/chunks/entries/endpoints/api/voice/hear/{_server.ts.js-CkK5Y82K.js → _server.ts.js-yAP1YQDd.js} +2 -2
  298. package/build/server/chunks/entries/endpoints/api/voice/speak/{_server.ts.js-D-fE-ew4.js → _server.ts.js-D_ecs712.js} +2 -2
  299. package/build/server/chunks/entries/endpoints/api/wh-events/{_server.ts.js-CUasoo5r.js → _server.ts.js-D1Z78xWD.js} +3 -3
  300. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-DmPgbeCW.js → _server.ts.js-BBFI9Moo.js} +2 -2
  301. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-B94AT-sg.js → _server.ts.js-vAklFRiS.js} +2 -2
  302. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-DWi2b9Mx.js → _server.ts.js-DJsAgBb2.js} +2 -2
  303. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/{_server.ts.js-DBjo4_k6.js → _server.ts.js-CyCBaAZh.js} +3 -3
  304. package/build/server/chunks/entries/endpoints/r/_task_/{_server.ts.js-cggeZMBj.js → _server.ts.js-CJgWNPC3.js} +3 -3
  305. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/{_server.ts.js-D3Udbcv-.js → _server.ts.js-zG5FVAtZ.js} +3 -3
  306. package/build/server/chunks/entries/endpoints/tasks/_id_/live/{_server.ts.js-DgSMJqGU.js → _server.ts.js-DX_RntZ9.js} +9 -7
  307. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-B2VjvvAB.js → _server.ts.js-CQOH8Ec_.js} +3 -3
  308. package/build/server/chunks/entries/{hooks.server.js-CRDKWiCw.js → hooks.server.js-_T8-2Tdu.js} +7 -6
  309. package/build/server/chunks/entries/pages/{_layout.server.ts.js-AHV4omRN.js → _layout.server.ts.js-BDFW8AE9.js} +4 -4
  310. package/build/server/chunks/entries/pages/{_page.server.ts.js-Bl64XRGY.js → _page.server.ts.js-CQdBzftA.js} +2 -2
  311. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-YEOJyXaU.js → _page.server.ts.js-CmIcdp1K.js} +2 -2
  312. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-Bn9pyphZ.js → _page.server.ts.js-CP46-bdg.js} +2 -2
  313. package/build/server/chunks/entries/pages/documents/{_page.server.ts.js-DoOEkND3.js → _page.server.ts.js-DoRczVBi.js} +2 -2
  314. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-q_a1EGjA.js → _page.server.ts.js-CZ5J1a0b.js} +2 -2
  315. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-CV4qoB47.js → _page.server.ts.js-B-dJ56_o.js} +2 -2
  316. package/build/server/chunks/entries/pages/health/{_page.server.ts.js-CcJzZPK6.js → _page.server.ts.js-FCGMZnS0.js} +2 -2
  317. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-CZ4oON2g.js → _page.server.ts.js-C1IMl0G3.js} +2 -2
  318. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/{_page.server.ts.js-BI5BADm7.js → _page.server.ts.js-CvH6UZxP.js} +2 -2
  319. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-CtC_6fS-.js → _page.server.ts.js-DYwy2QGP.js} +2 -2
  320. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-BTZY_1yT.js → _page.server.ts.js-CdqA3d8R.js} +2 -2
  321. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-D-8dL2Mn.js → _page.server.ts.js-Dgc8jz0C.js} +2 -2
  322. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-BfBecR-G.js → _page.server.ts.js-BHxIGyYx.js} +3 -3
  323. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-DCeq2QtX.js → _page.server.ts.js-BeGIXTTQ.js} +2 -2
  324. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/{_page.server.ts.js-CiLbofM5.js → _page.server.ts.js-BxSyKg7G.js} +2 -2
  325. package/build/server/chunks/entries/pages/records/_project_/_task_/{_page.server.ts.js-BkPdJPqB.js → _page.server.ts.js-WjfloLST.js} +2 -2
  326. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-CbAvSKX9.js → _page.server.ts.js-BHC_zI7E.js} +2 -2
  327. package/build/server/chunks/entries/pages/settings/chat/{_page.server.ts.js-D5jE8Jm_.js → _page.server.ts.js-C6gVOPBz.js} +2 -2
  328. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-64DsxExR.js → _page.server.ts.js-BDkMLIf6.js} +2 -2
  329. package/build/server/chunks/entries/pages/settings/discussion/{_page.server.ts.js-DUnCuBsq.js → _page.server.ts.js-C28nfj0b.js} +2 -2
  330. package/build/server/chunks/entries/pages/settings/events/{_page.server.ts.js-D8ovHe5z.js → _page.server.ts.js-DD6wxYn3.js} +2 -2
  331. package/build/server/chunks/entries/pages/settings/firstmate/{_page.server.ts.js-CTuAgEM9.js → _page.server.ts.js-w65a8vFY.js} +2 -2
  332. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-LRk_0zzT.js → _page.server.ts.js-Cf9cF9Bz.js} +2 -2
  333. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-BJQ8PVz2.js → _page.server.ts.js-Cp-xHYfh.js} +2 -2
  334. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-BDbQXhzo.js → _page.server.ts.js-B0Yf6JFN.js} +2 -2
  335. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-CWGyxrN7.js → _page.server.ts.js-DlITF4bJ.js} +2 -2
  336. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-Dur6rEz-.js → _page.server.ts.js-BnmlV12r.js} +2 -2
  337. package/build/server/chunks/entries/pages/settings/voice/{_page.server.ts.js-Uca0-iPP.js → _page.server.ts.js-Db7HqVFS.js} +3 -3
  338. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-CLGNe_lT.js → _page.server.ts.js-BipeV31Z.js} +3 -3
  339. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-BXY4jcfM.js → _page.server.ts.js-DHH6191x.js} +3 -3
  340. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-C0y6HLFn.js → _page.server.ts.js-DdNVejxy.js} +2 -2
  341. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-C3KCFmSW.js → _page.server.ts.js-C6_FcMaS.js} +2 -2
  342. package/build/server/chunks/{handler-CmSkir2e.js → handler-DHfoWPhz.js} +3 -3
  343. package/build/server/chunks/{index.js--qZj4Hlt.js → index.js-B6Yr1yas.js} +2 -2
  344. package/build/server/chunks/{manifest.js-DznXX5B1.js → manifest.js-royf2dM1.js} +133 -133
  345. package/build/server/chunks/nodes/{0.js-JGhf3lek.js → 0.js-Dv68eeJF.js} +7 -7
  346. package/build/server/chunks/nodes/{1.js-MDwGT23n.js → 1.js-Bxx2N9rK.js} +2 -2
  347. package/build/server/chunks/nodes/{10.js-BC_tDsXY.js → 10.js-zqhC3nkd.js} +5 -5
  348. package/build/server/chunks/nodes/{11.js-BlbXx-Vo.js → 11.js-DTii3QXJ.js} +5 -5
  349. package/build/server/chunks/nodes/{12.js-DRtVTtQZ.js → 12.js-C7XBevXO.js} +5 -5
  350. package/build/server/chunks/nodes/{13.js-C54S9wq2.js → 13.js-CdiONLGC.js} +5 -5
  351. package/build/server/chunks/nodes/{14.js-pbTZptLH.js → 14.js-Jv0pUrsU.js} +2 -2
  352. package/build/server/chunks/nodes/{15.js-DLYRC91n.js → 15.js-Dbq_BT7w.js} +2 -2
  353. package/build/server/chunks/nodes/{16.js-D7wzRoAT.js → 16.js-DxoDzZTm.js} +2 -2
  354. package/build/server/chunks/nodes/{17.js-BSxNNEBP.js → 17.js-mUmz_n5H.js} +5 -5
  355. package/build/server/chunks/nodes/{18.js-Cw1aobbl.js → 18.js-uI_lyO4m.js} +5 -5
  356. package/build/server/chunks/nodes/{19.js-BZL7Y2jR.js → 19.js-DOjvikEu.js} +5 -5
  357. package/build/server/chunks/nodes/{2.js-CEhzIBTF.js → 2.js-CsyDQ9CR.js} +5 -5
  358. package/build/server/chunks/nodes/{20.js-LT-WErdh.js → 20.js-BhZ3mJKX.js} +6 -6
  359. package/build/server/chunks/nodes/{21.js-Dhf1VdAQ.js → 21.js-B5qpuRmg.js} +6 -6
  360. package/build/server/chunks/nodes/{22.js-C4T-4uGi.js → 22.js-DIBxNE7D.js} +5 -5
  361. package/build/server/chunks/nodes/{23.js-DfmzwOvT.js → 23.js-_XdUJeXm.js} +5 -5
  362. package/build/server/chunks/nodes/{24.js-B8tDbRuD.js → 24.js-DFXLT-Ko.js} +8 -8
  363. package/build/server/chunks/nodes/{25.js-CB_xn9jn.js → 25.js-CubMvH_3.js} +2 -2
  364. package/build/server/chunks/nodes/{26.js-D475mFaM.js → 26.js-xEySzqTy.js} +2 -2
  365. package/build/server/chunks/nodes/{28.js-gzzSRYcM.js → 28.js-5W6qLa9a.js} +5 -5
  366. package/build/server/chunks/nodes/{29.js-CTGodeoy.js → 29.js-Cycdssqz.js} +3 -3
  367. package/build/server/chunks/nodes/{3.js-B398IAtw.js → 3.js-wGSl8npu.js} +2 -2
  368. package/build/server/chunks/nodes/{30.js-6Lb--dFz.js → 30.js-CvU5RIda.js} +5 -5
  369. package/build/server/chunks/nodes/{31.js-CSj1AD7Q.js → 31.js-Cc2URZTj.js} +5 -5
  370. package/build/server/chunks/nodes/{32.js-BbGpHC9C.js → 32.js-BzCsYJ2M.js} +2 -2
  371. package/build/server/chunks/nodes/{33.js-ChlD3UrL.js → 33.js-CsNDupaq.js} +5 -5
  372. package/build/server/chunks/nodes/{34.js-DEdPbVDI.js → 34.js-tUO-53DO.js} +8 -8
  373. package/build/server/chunks/nodes/{35.js-CinHDp_f.js → 35.js-CzPtBxQF.js} +2 -2
  374. package/build/server/chunks/nodes/{36.js-09k2jafz.js → 36.js-vG_Yz-ba.js} +5 -5
  375. package/build/server/chunks/nodes/{37.js-wi0tvsNN.js → 37.js-B_Wn1hwE.js} +5 -5
  376. package/build/server/chunks/nodes/{38.js-CXsKjbLt.js → 38.js-DJipjIA8.js} +6 -6
  377. package/build/server/chunks/nodes/{39.js-DUosso-F.js → 39.js-BZ83h5TG.js} +4 -4
  378. package/build/server/chunks/nodes/{4.js-8nztjXZE.js → 4.js-ueU4Ep-j.js} +5 -5
  379. package/build/server/chunks/nodes/{40.js-Bbiq9IeZ.js → 40.js-nFgIGStD.js} +6 -6
  380. package/build/server/chunks/nodes/{41.js-MEJZh_dk.js → 41.js-Dfq_Yre5.js} +6 -6
  381. package/build/server/chunks/nodes/{42.js-BhCRRutm.js → 42.js-Cb-ls2O-.js} +6 -6
  382. package/build/server/chunks/nodes/{43.js-OOLANNrx.js → 43.js-CL7RkfbH.js} +5 -5
  383. package/build/server/chunks/nodes/{44.js-DiraBnCg.js → 44.js-BxrjdnVk.js} +5 -5
  384. package/build/server/chunks/nodes/{5.js-DgynhGEO.js → 5.js-BsbkF-v-.js} +5 -5
  385. package/build/server/chunks/nodes/{6.js-a6nRdMeq.js → 6.js-TEqG30Pn.js} +5 -5
  386. package/build/server/chunks/nodes/{8.js-YdBDVkOY.js → 8.js-CMqXiMJ-.js} +4 -4
  387. package/build/server/chunks/nodes/{9.js-CFYhuecx.js → 9.js-D53SUe7a.js} +2 -2
  388. package/dist/cli.js +1 -1
  389. package/dist/wh-vault.js +1 -1
  390. package/firstmate-extension/firstmate-extension.json +1 -1
  391. package/package.json +1 -1
  392. package/build/client/_app/immutable/chunks/BV08B4f2.js.br +0 -0
  393. package/build/client/_app/immutable/chunks/BV08B4f2.js.gz +0 -0
  394. package/build/client/_app/immutable/chunks/BiW3is2c.js.br +0 -0
  395. package/build/client/_app/immutable/chunks/BiW3is2c.js.gz +0 -0
  396. package/build/client/_app/immutable/chunks/BkAmMVsw.js.br +0 -0
  397. package/build/client/_app/immutable/chunks/BkAmMVsw.js.gz +0 -0
  398. package/build/client/_app/immutable/chunks/BlR6_nYR.js.br +0 -0
  399. package/build/client/_app/immutable/chunks/BlR6_nYR.js.gz +0 -0
  400. package/build/client/_app/immutable/chunks/BqTq4oc1.js.br +0 -0
  401. package/build/client/_app/immutable/chunks/BqTq4oc1.js.gz +0 -0
  402. package/build/client/_app/immutable/chunks/BsJW6yGO.js.br +0 -0
  403. package/build/client/_app/immutable/chunks/BsJW6yGO.js.gz +0 -0
  404. package/build/client/_app/immutable/chunks/C4f5KkA2.js.br +0 -0
  405. package/build/client/_app/immutable/chunks/C4f5KkA2.js.gz +0 -0
  406. package/build/client/_app/immutable/chunks/CAaBUUji.js.br +0 -0
  407. package/build/client/_app/immutable/chunks/CAaBUUji.js.gz +0 -0
  408. package/build/client/_app/immutable/chunks/CyKAWacA.js.br +0 -0
  409. package/build/client/_app/immutable/chunks/CyKAWacA.js.gz +0 -0
  410. package/build/client/_app/immutable/chunks/D-IXMU2L.js.br +0 -0
  411. package/build/client/_app/immutable/chunks/D-IXMU2L.js.gz +0 -0
  412. package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.br +0 -0
  413. package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.gz +0 -0
  414. package/build/client/_app/immutable/chunks/D64mTvaN.js.br +0 -0
  415. package/build/client/_app/immutable/chunks/D64mTvaN.js.gz +0 -0
  416. package/build/client/_app/immutable/chunks/DK5gnzN6.js.br +0 -0
  417. package/build/client/_app/immutable/chunks/DK5gnzN6.js.gz +0 -0
  418. package/build/client/_app/immutable/chunks/DLdhxfs7.js.br +0 -0
  419. package/build/client/_app/immutable/chunks/DLdhxfs7.js.gz +0 -0
  420. package/build/client/_app/immutable/chunks/DSoS8iw8.js.br +0 -0
  421. package/build/client/_app/immutable/chunks/DSoS8iw8.js.gz +0 -0
  422. package/build/client/_app/immutable/chunks/DlAlt18J.js.br +0 -0
  423. package/build/client/_app/immutable/chunks/DlAlt18J.js.gz +0 -0
  424. package/build/client/_app/immutable/chunks/DrAaxSl_.js.br +0 -0
  425. package/build/client/_app/immutable/chunks/DrAaxSl_.js.gz +0 -0
  426. package/build/client/_app/immutable/chunks/QOxfJswt.js.br +0 -0
  427. package/build/client/_app/immutable/chunks/QOxfJswt.js.gz +0 -0
  428. package/build/client/_app/immutable/chunks/kNXqkaLy.js.br +0 -0
  429. package/build/client/_app/immutable/chunks/kNXqkaLy.js.gz +0 -0
  430. package/build/client/_app/immutable/chunks/qL93yOki.js.br +0 -0
  431. package/build/client/_app/immutable/chunks/qL93yOki.js.gz +0 -0
  432. package/build/client/_app/immutable/chunks/skcbA-fa.js.br +0 -0
  433. package/build/client/_app/immutable/chunks/skcbA-fa.js.gz +0 -0
  434. package/build/client/_app/immutable/chunks/vyMQ5db-.js.br +0 -0
  435. package/build/client/_app/immutable/chunks/vyMQ5db-.js.gz +0 -0
  436. package/build/client/_app/immutable/chunks/xJ7m3_X4.js.br +0 -0
  437. package/build/client/_app/immutable/chunks/xJ7m3_X4.js.gz +0 -0
  438. package/build/client/_app/immutable/chunks/xTuQT2it.js.br +0 -3
  439. package/build/client/_app/immutable/chunks/xTuQT2it.js.gz +0 -0
  440. package/build/client/_app/immutable/entry/app.C_bqQknd.js.br +0 -0
  441. package/build/client/_app/immutable/entry/app.C_bqQknd.js.gz +0 -0
  442. package/build/client/_app/immutable/entry/start.-l6ByH4l.js +0 -1
  443. package/build/client/_app/immutable/entry/start.-l6ByH4l.js.br +0 -0
  444. package/build/client/_app/immutable/entry/start.-l6ByH4l.js.gz +0 -0
  445. package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.br +0 -0
  446. package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.gz +0 -0
  447. package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.gz +0 -0
  448. package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.br +0 -0
  449. package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.gz +0 -0
  450. package/build/client/_app/immutable/nodes/11.DeI53l7V.js.br +0 -0
  451. package/build/client/_app/immutable/nodes/11.DeI53l7V.js.gz +0 -0
  452. package/build/client/_app/immutable/nodes/12.BcEihrai.js.br +0 -0
  453. package/build/client/_app/immutable/nodes/12.BcEihrai.js.gz +0 -0
  454. package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.br +0 -0
  455. package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.gz +0 -0
  456. package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.br +0 -0
  457. package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.gz +0 -0
  458. package/build/client/_app/immutable/nodes/15.BeGytqIn.js.br +0 -0
  459. package/build/client/_app/immutable/nodes/15.BeGytqIn.js.gz +0 -0
  460. package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.br +0 -0
  461. package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.gz +0 -0
  462. package/build/client/_app/immutable/nodes/17.CqESnpF4.js.br +0 -0
  463. package/build/client/_app/immutable/nodes/17.CqESnpF4.js.gz +0 -0
  464. package/build/client/_app/immutable/nodes/18.szNVFqEf.js.br +0 -0
  465. package/build/client/_app/immutable/nodes/18.szNVFqEf.js.gz +0 -0
  466. package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.br +0 -0
  467. package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.gz +0 -0
  468. package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.br +0 -0
  469. package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.gz +0 -0
  470. package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.br +0 -0
  471. package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.gz +0 -0
  472. package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.br +0 -0
  473. package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.gz +0 -0
  474. package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.br +0 -0
  475. package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.gz +0 -0
  476. package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.br +0 -0
  477. package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.gz +0 -0
  478. package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.br +0 -0
  479. package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.gz +0 -0
  480. package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.br +0 -0
  481. package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.gz +0 -0
  482. package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.br +0 -0
  483. package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.br +0 -0
  484. package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.gz +0 -0
  485. package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.br +0 -0
  486. package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.gz +0 -0
  487. package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.br +0 -0
  488. package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.gz +0 -0
  489. package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.br +0 -0
  490. package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.gz +0 -0
  491. package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.br +0 -0
  492. package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.gz +0 -0
  493. package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.br +0 -0
  494. package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.gz +0 -0
  495. package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.br +0 -0
  496. package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.gz +0 -0
  497. package/build/client/_app/immutable/nodes/35.fQqixPey.js.br +0 -0
  498. package/build/client/_app/immutable/nodes/35.fQqixPey.js.gz +0 -0
  499. package/build/client/_app/immutable/nodes/36.BemSOTgX.js.br +0 -0
  500. package/build/client/_app/immutable/nodes/36.BemSOTgX.js.gz +0 -0
  501. package/build/client/_app/immutable/nodes/37.DoB20L2E.js.br +0 -0
  502. package/build/client/_app/immutable/nodes/37.DoB20L2E.js.gz +0 -0
  503. package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.br +0 -0
  504. package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.gz +0 -0
  505. package/build/client/_app/immutable/nodes/39.B1817o0R.js.br +0 -0
  506. package/build/client/_app/immutable/nodes/39.B1817o0R.js.gz +0 -0
  507. package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.br +0 -0
  508. package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.gz +0 -0
  509. package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.br +0 -0
  510. package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.gz +0 -0
  511. package/build/client/_app/immutable/nodes/41.DtgiBysv.js.br +0 -0
  512. package/build/client/_app/immutable/nodes/41.DtgiBysv.js.gz +0 -0
  513. package/build/client/_app/immutable/nodes/42.U66RZJ39.js.br +0 -1
  514. package/build/client/_app/immutable/nodes/42.U66RZJ39.js.gz +0 -0
  515. package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.br +0 -0
  516. package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.gz +0 -0
  517. package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.br +0 -0
  518. package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.gz +0 -0
  519. package/build/client/_app/immutable/nodes/6.D46lJjHa.js.br +0 -0
  520. package/build/client/_app/immutable/nodes/6.D46lJjHa.js.gz +0 -0
  521. package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.br +0 -0
  522. package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.gz +0 -0
@@ -1,2 +1,2 @@
1
- import{l as ee}from"./QOxfJswt.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,a as l,c as u,p as se,x as L,f as W,i,o as D,b as oe}from"./Jk-ASPRO.js";import{s as z}from"./DTApYZoW.js";import{i as g}from"./BEVJas-l.js";import{s as A,e as H,c as J,b as re,d as ie,r as ne,a as le}from"./DNP6oCAK.js";import{L as Y}from"./D73wi9-q.js";import{C as B}from"./c9k4nDgn.js";import{b as pe}from"./CNxxt--f.js";import{p as G}from"./DQWg__9S.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 Ne=()=>d("/api/plugins/updates",null),Oe=e=>d("/api/plugins/updates",e),Te=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),Ae=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Fe=(e,a)=>d("/api/plugins/inspect",a,e),Le=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),De=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function He(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const Je=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Ye=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Be=(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"./CidiHe2w.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,a as l,c as u,p as se,x as L,f as W,i,o as D,b as oe}from"./Jk-ASPRO.js";import{s as z}from"./DTApYZoW.js";import{i as g}from"./BEVJas-l.js";import{s as A,e as H,c as J,b as re,d as ie,r as ne,a as le}from"./DNP6oCAK.js";import{L as Y}from"./D73wi9-q.js";import{C as B}from"./c9k4nDgn.js";import{b as pe}from"./CNxxt--f.js";import{p as G}from"./DQWg__9S.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 Ne=()=>d("/api/plugins/updates",null),Oe=e=>d("/api/plugins/updates",e),Te=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),Ae=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Fe=(e,a)=>d("/api/plugins/inspect",a,e),Le=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),De=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function He(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const Je=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Ye=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Be=(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 Ge(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 q=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(q):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var U=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(U)})}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),Ke=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 Me(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(_),q=h(S,!0),E=f(q);{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 U=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 j=_e(),$=D(j,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(j.value=(j.__value=T)??"")}),l(y,j)}),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(U,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(U,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(q,i(r).title)),l(R,_)}),l(e,w),oe()}export{Ge as C,Me as S,Ke as a,He as b,Je as c,ve as d,Fe as e,Oe as f,Ye as g,We as h,Le as i,Be as l,Te as m,Ne as p,Ae as r,De as u};
@@ -1,3 +1,3 @@
1
- import{w as U,v as F,X as q,ai as N,b9 as P,d as l,i as c,k as u,e as v}from"./Jk-ASPRO.js";import"./DsnmJJEf.js";import{s as C,r as M}from"./DQWg__9S.js";import{I as O}from"./DE0e4nJ8.js";import{p as j}from"./xTuQT2it.js";import{a as D}from"./BdjCJ4uL.js";import{s as E}from"./Cw6Vodkk.js";import{S as b}from"./BXN538J3.js";function at(a,t,e){U(()=>{var s=F(()=>t(a,e?.())||{});if(e&&s?.update){var i=!1,n={};q(()=>{var r=e();N(r),i&&P(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var A=new Set(["$$slots","$$events","$$legacy"]);function ht(a,t){let e=M(t,A);const s={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};O(a,C(()=>e,{get icon(){return s}}))}var _=new Set(["$$slots","$$events","$$legacy"]);function lt(a,t){let e=M(t,_);const s={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};O(a,C(()=>e,{get icon(){return s}}))}const ct=["must","should","could","none"],B={must:"Must fix",should:"Should fix",could:"Could do",none:"Keep"},L=8e3,k=a=>a.replace(/\s+/g," ").trim();function m(a){const t=Math.max(0,Math.round(a/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const w=(a,t)=>`${a} ${t}${a===1?"":"s"}`,W=/\b(this|here|that one|these)\b/i;function G(a,t,e,s,i){const n=a.filter(o=>(o.type==="click"||o.type==="input"||o.type==="choose"||o.type==="mark")&&o.t>=e-L&&o.t<=s).pop()??null,r=n?.type!=="mark"&&W.test(t)&&i&&n&&i.t>n.t+400&&i.selector!==n.el?.selector;return n&&!r?{ev:n}:{pointing:i??null}}function $(a,t){const e=s=>a.find(i=>i.id===s)?.label??"";return[...a.map(s=>({t:s.t,s:`${s.id} ${m(s.t)} ${s.label}${s.type!=="nav"&&s.page?` (on ${s.page})`:""}`})),...t.map(s=>({t:s.t0,s:`${s.id} ${m(s.t0)}–${m(s.t1)} captain said: “${s.text}”${s.anchor?` [about ${s.anchor}: ${e(s.anchor)}]`:""}${s.pointing?` [pointing at ${s.pointing.label}]`:""} (on ${s.page})`}))].sort((s,i)=>s.t-i.t).map(s=>s.s).slice(-160)}function H(a){const t=a.split(/[.(]|, (?:that|which|so|and)\b/)[0].trim();return t.length<=64?t:t.slice(0,64).replace(/\s+\S*$/,"")+"…"}function Q(a,t,e){const s=t.text.toLowerCase(),i=/\b(love|like|nice|great|good|perfect)\b/.test(s)&&!/\bnot\b/.test(s)?"praise":/\?|\bwhy\b|\bnot sure\b/.test(s)?"question":/\b(broken|bug|error|doesn'?t|does not|can'?t|wrong|fails?|nothing happens|confus)/.test(s)?"problem":/\b(maybe|could|would be nice|idea|what if)\b/.test(s)?"idea":"change",n=t.text.charAt(0).toUpperCase()+t.text.slice(1);return{id:a,kind:i,severity:i==="praise"?"none":i==="problem"?"must":i==="idea"?"could":"should",text:`${n}${e?` (about ${e} on ${t.page})`:` (on ${t.page})`}`,quote:t.text,anchor:t.anchor??"",utterances:[t.id]}}const K=a=>/\?\s*$|^(what|how|why|where|when|can you|could you|is this|does|do i|which)\b/i.test(a.trim());function V(a,t){return{summary:a.length?`The captain reviewed ${t.title} for ${m(t.duration)} and raised ${w(a.length,"point")}.`:"Nothing was raised in this session, so there is nothing to pass on yet.",issues:a.map(e=>({title:H(e.text),detail:e.text,severity:e.severity,kind:e.kind,notes:[e.id],anchor:e.anchor,quote:e.quote})),openQuestions:[]}}function J(a,t,e,s,i){const n=[`Preview feedback for ${a.id} (${k(a.title)}), sent together from the Preview tab (${t}):`,`Live review session: ${m(e.duration)}, ${w(e.remarks,"remark")}, ${w(e.clicks,"click")}, ${w(e.pages,"page")}. ${k(s.summary)}`,"The captain requests these changes: the preview is not approved yet."];return s.lines.forEach((r,o)=>{n.push(`${o+1}. [${B[r.severity]}] ${k(r.title)}. ${k(r.detail)}`),r.where&&n.push(` Points at: ${k(r.where)}`),r.quote&&n.push(` Captain said${r.at?` (${r.at})`:""}: “${k(r.quote)}”`),r.shot&&n.push(` Screenshot: ${r.shot}`)}),s.errors.length&&n.push("","Seen on the page during the session:",...s.errors.map(r=>`- ${r}`)),s.openQuestions.length&&n.push("","Open questions for the captain:",...s.openQuestions.map(r=>`- ${r}`)),i&&n.push("",`The whole session (every click, page, remark and screenshot): ${i}`),n.push("","Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours."),n.join(`
1
+ import{w as U,v as F,X as q,ai as N,b9 as P,d as l,i as c,k as u,e as v}from"./Jk-ASPRO.js";import"./DsnmJJEf.js";import{s as C,r as M}from"./DQWg__9S.js";import{I as O}from"./DE0e4nJ8.js";import{p as j}from"./_sdkObeO.js";import{a as D}from"./BdjCJ4uL.js";import{s as E}from"./Cw6Vodkk.js";import{S as b}from"./BXN538J3.js";function at(a,t,e){U(()=>{var s=F(()=>t(a,e?.())||{});if(e&&s?.update){var i=!1,n={};q(()=>{var r=e();N(r),i&&P(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var A=new Set(["$$slots","$$events","$$legacy"]);function ht(a,t){let e=M(t,A);const s={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};O(a,C(()=>e,{get icon(){return s}}))}var _=new Set(["$$slots","$$events","$$legacy"]);function lt(a,t){let e=M(t,_);const s={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};O(a,C(()=>e,{get icon(){return s}}))}const ct=["must","should","could","none"],B={must:"Must fix",should:"Should fix",could:"Could do",none:"Keep"},L=8e3,k=a=>a.replace(/\s+/g," ").trim();function m(a){const t=Math.max(0,Math.round(a/1e3));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}const w=(a,t)=>`${a} ${t}${a===1?"":"s"}`,W=/\b(this|here|that one|these)\b/i;function G(a,t,e,s,i){const n=a.filter(o=>(o.type==="click"||o.type==="input"||o.type==="choose"||o.type==="mark")&&o.t>=e-L&&o.t<=s).pop()??null,r=n?.type!=="mark"&&W.test(t)&&i&&n&&i.t>n.t+400&&i.selector!==n.el?.selector;return n&&!r?{ev:n}:{pointing:i??null}}function $(a,t){const e=s=>a.find(i=>i.id===s)?.label??"";return[...a.map(s=>({t:s.t,s:`${s.id} ${m(s.t)} ${s.label}${s.type!=="nav"&&s.page?` (on ${s.page})`:""}`})),...t.map(s=>({t:s.t0,s:`${s.id} ${m(s.t0)}–${m(s.t1)} captain said: “${s.text}”${s.anchor?` [about ${s.anchor}: ${e(s.anchor)}]`:""}${s.pointing?` [pointing at ${s.pointing.label}]`:""} (on ${s.page})`}))].sort((s,i)=>s.t-i.t).map(s=>s.s).slice(-160)}function H(a){const t=a.split(/[.(]|, (?:that|which|so|and)\b/)[0].trim();return t.length<=64?t:t.slice(0,64).replace(/\s+\S*$/,"")+"…"}function Q(a,t,e){const s=t.text.toLowerCase(),i=/\b(love|like|nice|great|good|perfect)\b/.test(s)&&!/\bnot\b/.test(s)?"praise":/\?|\bwhy\b|\bnot sure\b/.test(s)?"question":/\b(broken|bug|error|doesn'?t|does not|can'?t|wrong|fails?|nothing happens|confus)/.test(s)?"problem":/\b(maybe|could|would be nice|idea|what if)\b/.test(s)?"idea":"change",n=t.text.charAt(0).toUpperCase()+t.text.slice(1);return{id:a,kind:i,severity:i==="praise"?"none":i==="problem"?"must":i==="idea"?"could":"should",text:`${n}${e?` (about ${e} on ${t.page})`:` (on ${t.page})`}`,quote:t.text,anchor:t.anchor??"",utterances:[t.id]}}const K=a=>/\?\s*$|^(what|how|why|where|when|can you|could you|is this|does|do i|which)\b/i.test(a.trim());function V(a,t){return{summary:a.length?`The captain reviewed ${t.title} for ${m(t.duration)} and raised ${w(a.length,"point")}.`:"Nothing was raised in this session, so there is nothing to pass on yet.",issues:a.map(e=>({title:H(e.text),detail:e.text,severity:e.severity,kind:e.kind,notes:[e.id],anchor:e.anchor,quote:e.quote})),openQuestions:[]}}function J(a,t,e,s,i){const n=[`Preview feedback for ${a.id} (${k(a.title)}), sent together from the Preview tab (${t}):`,`Live review session: ${m(e.duration)}, ${w(e.remarks,"remark")}, ${w(e.clicks,"click")}, ${w(e.pages,"page")}. ${k(s.summary)}`,"The captain requests these changes: the preview is not approved yet."];return s.lines.forEach((r,o)=>{n.push(`${o+1}. [${B[r.severity]}] ${k(r.title)}. ${k(r.detail)}`),r.where&&n.push(` Points at: ${k(r.where)}`),r.quote&&n.push(` Captain said${r.at?` (${r.at})`:""}: “${k(r.quote)}”`),r.shot&&n.push(` Screenshot: ${r.shot}`)}),s.errors.length&&n.push("","Seen on the page during the session:",...s.errors.map(r=>`- ${r}`)),s.openQuestions.length&&n.push("","Open questions for the captain:",...s.openQuestions.map(r=>`- ${r}`)),i&&n.push("",`The whole session (every click, page, remark and screenshot): ${i}`),n.push("","Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours."),n.join(`
2
2
  `)}function z(a,t,e){const s=[`Preview approved for ${a.id} (${k(a.title)}): the captain reviewed the preview (${t}) and approves it.`,"This is the captain’s go for its pull request: land it under this project’s rules."];return e.length&&s.push("","Notes the captain took (not blocking):",...e.map(i=>`- ${k(i)}`)),s.join(`
3
3
  `)}const ut=()=>j.data.features?.livereview===!0&&!D.remote&&!D.hosted,pt=(a,t=location.pathname+location.search)=>`/tasks/${encodeURIComponent(a)}/live?back=${encodeURIComponent(t)}`,Y=260,X=450;function R(){const a=globalThis;return a.SpeechRecognition??a.webkitSpeechRecognition??null}const y=a=>{const t=URL.parse(a??"");return t?t.pathname+t.hash||"/":a||"/"};class dt{taskId;title;token;previewUrl="";#t=l(null);get problem(){return c(this.#t)}set problem(t){u(this.#t,t,!0)}#e=l(!1);get on(){return c(this.#e)}set on(t){u(this.#e,t,!0)}#s=l(!1);get paused(){return c(this.#s)}set paused(t){u(this.#s,t,!0)}started=0;#i=l(0);get now(){return c(this.#i)}set now(t){u(this.#i,t,!0)}#n=l("talk");get mode(){return c(this.#n)}set mode(t){u(this.#n,t,!0)}#r=l(!0);get speak(){return c(this.#r)}set speak(t){u(this.#r,t,!0)}#o=l(!0);get mask(){return c(this.#o)}set mask(t){u(this.#o,t,!0)}#a=l(!0);get shootClicks(){return c(this.#a)}set shootClicks(t){u(this.#a,t,!0)}#h=l(v([]));get events(){return c(this.#h)}set events(t){u(this.#h,t,!0)}#l=l(v([]));get remarks(){return c(this.#l)}set remarks(t){u(this.#l,t,!0)}#c=l(v([]));get notes(){return c(this.#c)}set notes(t){u(this.#c,t,!0)}#u=l(v([]));get convo(){return c(this.#u)}set convo(t){u(this.#u,t,!0)}#p=l({});get shots(){return c(this.#p)}set shots(t){u(this.#p,t)}#d=l(v([]));get fresh(){return c(this.#d)}set fresh(t){u(this.#d,t,!0)}#g=l("");get heard(){return c(this.#g)}set heard(t){u(this.#g,t,!0)}#f=l("/");get page(){return c(this.#f)}set page(t){u(this.#f,t,!0)}#k=l(!1);get talking(){return c(this.#k)}set talking(t){u(this.#k,t,!0)}#m=l(!1);get locked(){return c(this.#m)}set locked(t){u(this.#m,t,!0)}#v=l(null);get hearing(){return c(this.#v)}set hearing(t){u(this.#v,t,!0)}#y=l(null);get scribeSays(){return c(this.#y)}set scribeSays(t){u(this.#y,t,!0)}#w=l(!1);get notesBusy(){return c(this.#w)}set notesBusy(t){u(this.#w,t,!0)}#b=l(!1);get replyBusy(){return c(this.#b)}set replyBusy(t){u(this.#b,t,!0)}#$=l(!1);get speaking(){return c(this.#$)}set speaking(t){u(this.#$,t,!0)}#S=l(null);get notice(){return c(this.#S)}set notice(t){u(this.#S,t,!0)}#x=l(null);get pack(){return c(this.#x)}set pack(t){u(this.#x,t,!0)}#I=l(!1);get marking(){return c(this.#I)}set marking(t){u(this.#I,t,!0)}#T=l(!1);get picking(){return c(this.#T)}set picking(t){u(this.#T,t,!0)}#D=l(null);get picked(){return c(this.#D)}set picked(t){u(this.#D,t,!0)}#E=l(null);get approved(){return c(this.#E)}set approved(t){u(this.#E,t,!0)}#R=l(!1);get approving(){return c(this.#R)}set approving(t){u(this.#R,t,!0)}canHear=R()!==null;peer=null;origin="";hover=null;pageText=null;ev=0;ut=0;sh=0;lastShotAt=0;rec=null;cur=null;pressAt=0;lastTap=0;chord=!1;quietEnd=!1;notesAgain=!1;replyNext=null;outlinedCache=new Map;clock=null;player=null;sayGen=0;constructor(t,e){this.taskId=t.id,this.title=t.title,this.token=e}async call(t){try{const e=await fetch(`/api/tasks/${encodeURIComponent(this.taskId)}/livereview`,{method:"POST",headers:{"content-type":"application/json",[b]:this.token},body:JSON.stringify(t)}),s=await e.json().catch(()=>null);return!e.ok||!s?{ok:!1,error:s?.message??`Wheelhouse answered ${e.status}.`}:{ok:!0,value:s}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}connect(t,e,s){this.peer=t,this.origin=e,this.previewUrl=s}toFrame(t){this.origin&&this.peer?.postMessage({__wh:1,...t},this.origin)}get elapsed(){return this.on?this.now-this.started:0}t(){return this.started?Date.now()-this.started:0}get canDone(){return!this.pack&&(this.on||this.remarks.length>0)}start(){this.on=!0,this.paused=!1,this.started=Date.now(),this.now=this.started,this.clock=setInterval(()=>this.now=Date.now(),1e3),this.addEvent({type:"start",label:`Started on ${this.page}`}),this.toFrame({type:"record",on:!0,mask:this.mask}),this.toFrame({type:"gettext"})}setPaused(t){!this.on||this.paused===t||(t&&this.stopTalking(),t&&this.marking&&this.mark(!1),this.paused=t,this.toFrame({type:"record",on:!t,mask:this.mask}),this.addEvent({type:"pause",label:t?"Paused the recording":"Carried on recording"}))}setMask(t){this.mask=t,this.on&&this.toFrame({type:"record",on:!this.paused,mask:t})}setMode(t){this.mode=t,t==="notes"&&this.hush()}close(){this.stopTalking(!0),this.marking&&this.mark(!1),this.hush(),this.toFrame({type:"record",on:!1}),this.on=!1,this.clock&&clearInterval(this.clock)}stopTalking(t=!1){this.locked&&(this.quietEnd=!0,this.locked=!1),this.talking&&this.release(t)}addEvent(t){const e={id:`e${++this.ev}`,t:this.t(),page:this.page,...t};return this.events.push(e),this.events[this.events.length-1]}receive(t){if(!this.peer||t.source!==this.peer||t.origin!==this.origin)return;const e=t.data;if(!(!e||e.__wh!==1)){if(e.type==="hello"){const s=this.on&&y(e.url)!==this.page;this.page=y(e.url),this.on&&(this.toFrame({type:"record",on:!this.paused,mask:this.mask}),s&&!this.paused&&this.addEvent({type:"nav",label:`Opened ${this.page}`}));return}if(e.type==="key")return this.frameKey(e);if(e.type==="marking"){this.marking=!!e.on;return}if(e.type==="picked"){this.picking=!1;const s=e.el??null;this.started||(this.started=Date.now()),this.picked=s?{el:s,shotId:this.shoot(s.selector,s.text)}:null;return}if(e.type==="text"){this.pageText={url:e.url??"",title:e.title??"",text:e.text??"",at:Date.now()};return}if(e.type==="shot"&&e.id){const s=this.shots[e.id];if(!s)return;this.shots={...this.shots,[e.id]:{...s,image:e.image??null,vw:e.vw??0,vh:e.vh??0,el:e.el??s.el,pending:!1}};return}if(!(!this.on||this.paused))switch(e.url&&(this.page=y(e.url)),e.type){case"click":{const s=this.addEvent({type:"click",label:`Clicked ${e.el?.label??"a spot on the page"}`,el:e.el??null});this.shootClicks&&Date.now()-this.lastShotAt>900&&(this.lastShotAt=Date.now(),setTimeout(()=>{s.shotId=this.shoot(e.el?.selector??null,e.el?.text??null,e.at?{...e.at,vw:e.vw??0}:null)},350));break}case"input":this.addEvent({type:"input",label:`Typed ${e.value?`“${e.value}”`:`${e.length??0} characters`} in ${e.el?.label??"a box"}`,el:e.el??null});break;case"choose":this.addEvent({type:"choose",label:`Set ${e.el?.label??"a choice"} to ${e.value}`,el:e.el??null});break;case"nav":this.addEvent({type:"nav",label:`Went to ${y(e.url)}`}),this.toFrame({type:"gettext"});break;case"scroll":{const s=this.events[this.events.length-1];s?.type==="scroll"&&this.t()-s.t<4e3?(s.label=`Scrolled to ${e.pct}%`,s.t=this.t()):this.addEvent({type:"scroll",label:`Scrolled to ${e.pct}%`});break}case"area":{if(!e.rect)break;const s={label:e.n?`marked area ${e.n}`:"the area you marked",text:"",tag:"area",selector:"",rect:e.rect},i=this.addEvent({type:"mark",label:`Marked ${s.label} on ${this.page}`,el:s});i.shotId=this.shoot(null,null,null,s);break}case"hover":this.hover=e.el?{...e.el,t:this.t()}:null;break;case"error":this.addEvent({type:"error",label:e.kind==="network"?`Request failed: ${e.message}`:`${e.kind==="console"?"Console error":"Error"}: ${e.message}`});break}}}shoot(t,e,s=null,i=null){const n=`s${++this.sh}`;return this.shots={...this.shots,[n]:{id:n,t:this.t(),image:null,vw:0,vh:0,el:i,point:s,pending:!0}},this.toFrame({type:"shoot",id:n,selector:t,text:e}),setTimeout(()=>{const r=this.shots[n];r?.pending&&(this.shots={...this.shots,[n]:{...r,pending:!1}})},8e3),n}outlined(t){const e=t?this.shots[t]:null;if(!e?.image)return Promise.resolve(null);const s=`${e.id}:${e.image.length}`,i=this.outlinedCache.get(s);if(i)return i;const n=new Promise(r=>{const o=new Image;o.onload=()=>{const p=document.createElement("canvas");p.width=o.width,p.height=o.height;const h=p.getContext("2d");if(!h)return r(e.image);h.drawImage(o,0,0);const d=o.width/(e.vw||o.width),f=e.el?.rect;if(f&&f.w>0){const g=6*d,[S,x,I,T]=[f.x*d-g,f.y*d-g,f.w*d+g*2,f.h*d+g*2];h.fillStyle="rgba(11,17,24,.38)",h.beginPath(),h.rect(0,0,p.width,p.height),h.roundRect(S,x,I,T,6*d),h.fill("evenodd"),h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*d),h.beginPath(),h.roundRect(S,x,I,T,6*d),h.stroke()}else if(e.point){const g=o.width/(e.point.vw||e.vw||o.width);h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*g),h.beginPath(),h.arc(e.point.x*g,e.point.y*g,16*g,0,Math.PI*2),h.stroke()}r(p.toDataURL("image/jpeg",.85))},o.onerror=()=>r(null),o.src=e.image});return this.outlinedCache.set(s,n),n}newHearing(){const t=this.hover&&this.t()-this.hover.t<2e4?{...this.hover}:null;return{t0:this.t(),t1:0,finals:"",interim:"",hover:t,shotId:this.shoot(t?.selector??null,t?.text??null),pointShot:null}}press(){!this.on||this.paused||this.talking||(this.talking=!0,this.pressAt=Date.now(),this.chord=!1,this.hush(),this.toFrame({type:"gettext"}),this.toFrame({type:"talking",on:!0}),this.cur=this.newHearing(),this.hearing={finals:"",interim:""},this.listen(this.cur))}pressHeld(){this.press(),this.pressAt=Date.now()-1e3}listen(t){const e=R();if(!e)return;const s=new e;s.lang=navigator.language||"en-GB",s.continuous=!0,s.interimResults=!0,this.rec=s;let i=t;s.onresult=n=>{let r="";for(let o=n.resultIndex;o<n.results.length;o++){const p=n.results[o];p.isFinal?(i.finals+=(i.finals?" ":"")+p[0].transcript.trim(),this.locked&&this.rec===s&&(i.interim="",i.t1=this.t(),this.finish(i),i=this.newHearing(),this.cur=i)):r+=p[0].transcript}i.interim=r,!i.pointShot&&this.hover&&/\b(this|here|that one|these)\b/i.test(`${i.finals} ${r}`)&&(i.hover={...this.hover},i.pointShot=this.shoot(this.hover.selector,this.hover.text)),this.talking&&this.cur===i&&(this.hearing={finals:i.finals,interim:i.interim})},s.onerror=n=>{n.error==="not-allowed"||n.error==="service-not-allowed"?this.notice="The microphone is blocked for this page. Type to the scribe instead.":n.error==="network"&&(this.notice="The browser’s speech service could not be reached. Type to the scribe instead.")},s.onend=()=>{if(this.talking&&this.locked&&this.rec===s){try{s.start()}catch{}return}this.rec===s&&(this.rec=null),this.finish(i)};try{s.start()}catch{this.notice="The browser would not start listening. Type to the scribe instead."}}release(t=!1){if(!this.talking||!this.cur)return;this.talking=!1,this.hearing=null,this.toFrame({type:"talking",on:!1});const e=this.rec,s=this.cur;this.rec=null,s.t1=this.t();const i=r=>{try{e?.[r]()}catch{}},n=Date.now()-this.pressAt;if(t||this.chord){s.dropped=!0,i("abort");return}if(!this.locked&&n<Y&&!s.finals&&!s.interim){s.dropped=!0,i("abort"),Date.now()-this.lastTap<X?(this.lastTap=0,this.setLocked(!0)):this.lastTap=Date.now();return}e?(i("stop"),setTimeout(()=>this.finish(s),2500)):this.finish(s)}setLocked(t){this.locked=t,t&&!this.talking?this.pressHeld():!t&&this.talking&&(this.quietEnd=!0,this.release())}keyDown(){if(this.on){if(this.locked)return this.setLocked(!1);this.pressHeld()}}keyUp(){this.on&&!this.locked&&this.release()}chorded(){this.talking&&!this.locked&&(this.chord=!0,this.release())}frameKey(t){t.key==="talk"?t.down?this.keyDown():this.keyUp():t.key==="chord"?this.chorded():t.key==="mark"&&this.mark()}finish(t){if(t.done||t.dropped)return;t.done=!0;const e=`${t.finals} ${t.interim}`.replace(/\s+/g," ").trim(),s=this.quietEnd;if(this.quietEnd=!1,!e){!s&&!this.locked&&(this.notice="Didn’t catch anything. Keep talking a little longer before you let go.");return}this.addRemark(e,t.t0,t.t1||this.t(),t.hover,t.pointShot??t.shotId)}mark(t=!this.marking){t&&(!this.on||this.paused)||(this.marking=t,this.toFrame({type:"mark",on:t}))}pick(t=!0){this.picking=t,this.toFrame({type:"pick",on:t})}comment(t){const e=t.trim();if(!e)return;this.started||(this.started=Date.now());const s=this.t(),i=this.picked,n={id:`u${++this.ut}`,t0:s,t1:s+600,text:e,page:this.page,anchor:null,pointing:i?.el??null,shotId:i?.shotId??this.shoot(null,null)};this.remarks.push(n),this.convo.push({who:"captain",text:e,t:s,uid:n.id}),this.picked=null,this.on&&this.askNotes()}save(){const t=s=>JSON.stringify({v:1,on:this.on,paused:this.paused,started:this.started,mode:this.mode,speak:this.speak,mask:this.mask,shootClicks:this.shootClicks,page:this.page,events:this.events,remarks:this.remarks,notes:this.notes,convo:this.convo,shots:s?this.shots:Object.fromEntries(Object.entries(this.shots).map(([i,n])=>[i,{...n,image:null}])),pack:this.pack,picked:this.picked,approved:this.approved,counts:[this.ev,this.ut,this.sh]}),e=t(!0);return e.length<4e6?e:t(!1)}restore(t){let e=null;try{e=t?JSON.parse(t):null}catch{e=null}if(!e||e.v!==1)return;this.paused=!!e.paused,this.started=Number(e.started)||0,this.mode=e.mode==="notes"?"notes":"talk",this.speak=e.speak!==!1,this.mask=e.mask!==!1,this.shootClicks=e.shootClicks!==!1,this.page=typeof e.page=="string"?e.page:"/",this.events=e.events??[],this.remarks=e.remarks??[],this.notes=e.notes??[],this.convo=e.convo??[],this.shots=e.shots??{},this.pack=e.pack??null,this.pack&&(this.pack.sending=!1),this.picked=e.picked??null,this.approved=e.approved??null;const[s,i,n]=e.counts??[0,0,0];[this.ev,this.ut,this.sh]=[s||0,i||0,n||0],e.on&&(this.on=!0,this.now=Date.now(),this.clock=setInterval(()=>this.now=Date.now(),1e3))}type(t){const e=t.trim();if(!e||!this.on||this.paused)return;const s=this.t();this.toFrame({type:"gettext"});const i=this.hover;this.addRemark(e,s-1500,s,i,this.shoot(i?.selector??null,i?.text??null))}addRemark(t,e,s,i,n){const r=G(this.events,t,e,s,i),o={id:`u${++this.ut}`,t0:e,t1:Math.max(s,e+600),text:t,page:this.page,anchor:"ev"in r?r.ev.id:null,pointing:"pointing"in r?r.pointing:null,shotId:"ev"in r&&r.ev.shotId?r.ev.shotId:n};this.remarks.push(o),this.convo.push({who:"captain",text:t,t:e,uid:o.id}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(o)}about(t){const e=this.remarks.find(i=>t.utterances.includes(i.id)),s=this.events.find(i=>i.id===(t.anchor||e?.anchor));return{el:s?.el??e?.pointing??null,shotId:s?.shotId??e?.shotId??null,page:s?.page??e?.page??"",t:e?.t0??s?.t??0,clicked:!!s}}highlight(t){t&&this.toFrame({type:"highlight",selector:t})}async askNotes(){if(this.notesBusy){this.notesAgain=!0;return}this.notesBusy=!0,this.notesAgain=!1;const t=await this.call({action:"notes",timeline:$(this.events,this.remarks),notes:this.notes});if(this.notesBusy=!1,!!this.on){if(t.ok){const e=new Map(this.notes.map(s=>[s.id,s.text]));this.notes=t.value.notes,this.fresh=t.value.notes.filter(s=>e.get(s.id)!==s.text).map(s=>s.id),this.heard=t.value.heard}else this.notice=`The scribe could not take notes just then (${t.error}). It will try again with your next remark.`;this.notesAgain&&this.askNotes()}}async askReply(t){if(this.replyBusy){this.replyNext=t;return}this.replyBusy=!0;for(let i=0;i<6&&!(this.pageText&&Date.now()-this.pageText.at<15e3);i++)await new Promise(n=>setTimeout(n,100));const e=await this.call({action:"reply",said:t.text,page:this.pageText,timeline:$(this.events,this.remarks),notes:this.notes.map(i=>i.text),convo:this.convo.filter(i=>i.uid!==t.id||i.who==="scribe").map(({who:i,text:n})=>({who:i,text:n}))});if(this.replyBusy=!1,!this.on)return;const s=this.replyNext;if(this.replyNext=null,s)return void this.askReply(s);e.ok&&e.value.reply?(this.convo.push({who:"scribe",text:e.value.reply,t:this.t(),uid:t.id}),this.say(e.value.reply)):e.ok||this.convo.push({who:"scribe",text:`I couldn’t answer just then (${e.error}) but I noted what you said.`,t:this.t(),uid:t.id,error:!0})}say(t){this.scribeSays=t,this.stopVoice();const e=globalThis.speechSynthesis;if(!this.speak){setTimeout(()=>{this.scribeSays===t&&(this.scribeSays=null)},Math.max(4e3,t.split(" ").length*380));return}const s=this.sayGen,i=()=>{this.speaking=!1,setTimeout(()=>{!this.speaking&&this.scribeSays===t&&(this.scribeSays=null)},1200)},n=()=>{if(s!==this.sayGen)return;if(!e)return i();const r=new SpeechSynthesisUtterance(t),o=e.getVoices().filter(p=>/^en/i.test(p.lang));r.voice=o.find(p=>/Google UK English Female|Daniel|Serena|Kate|Samantha|Google US English/.test(p.name))??o[0]??null,r.rate=1.04,r.onstart=()=>this.speaking=!0,r.onend=r.onerror=i,e.speak(r)};this.voiced(t).then(r=>{if(s!==this.sayGen)return;if(!r)return n();const o=new Audio(URL.createObjectURL(r));this.player=o,o.onplaying=()=>this.speaking=!0,o.onended=()=>{URL.revokeObjectURL(o.src),this.player===o&&(this.player=null),i()},o.onerror=()=>{this.player===o&&(this.player=null),n()},o.play().catch(()=>{this.player===o&&(this.player=null),n()})})}async voiced(t){try{const e=await fetch("/api/voice/speak",{method:"POST",headers:{"content-type":"application/json",[b]:this.token},body:JSON.stringify({text:t.slice(0,1200),speed:1})});return e.status===200?await e.blob():null}catch{return null}}stopVoice(){this.sayGen++,this.player?.pause(),this.player=null,globalThis.speechSynthesis?.cancel()}hush(){this.stopVoice(),this.speaking=!1,this.scribeSays=null}async approve(t){if(this.approving||this.approved)return!1;this.approving=!0;const e=[...this.remarks.map(r=>r.text),t.trim()].filter(Boolean),s=await this.openQuestion();let i="message",n=null;if(s){i="answer";try{const r=await fetch("/api/inbox",{method:"POST",headers:{"content-type":"application/json","idempotency-key":`review-${crypto.randomUUID()}`,[b]:this.token},body:JSON.stringify({cardId:s.id,choice:"approve",note:e.length?`From the live review: ${e.join(" · ")}`:null})}),o=await r.json().catch(()=>null);r.ok?typeof o?.message=="object"&&o.message.delivery==="failed"&&(n=o.message.deliveryDetail??"Firstmate did not take the approval."):n=(typeof o?.message=="string"?o.message:null)??`Wheelhouse answered ${r.status}.`}catch{n="Could not reach the Wheelhouse server."}}else{const r=await E(z({id:this.taskId,title:this.title},this.previewUrl,e),this.token,this.taskId);r.ok||(n=r.error)}return this.approving=!1,n?(this.notice=`The approval did not go: ${n}`,!1):(this.approved={how:i,at:Date.now()},!0)}async openQuestion(){try{const t=await fetch("/api/inbox");if(!t.ok)return null;const e=await t.json();if(!e.canAnswer)return null;const s=e.cards.filter(i=>i.taskId===this.taskId&&!i.secondMate);return s.find(i=>i.kind==="merge")??s.find(i=>i.kind==="preview")??null}catch{return null}}point(t,e){const s=this.notes.find(r=>t.notes.includes(r.id)),i=s?this.about(s):null,n=this.events.find(r=>r.id===t.anchor);return{...t,key:`p${e}`,include:!0,el:n?.el??i?.el??null,shotId:n?.shotId??i?.shotId??null,page:n?.page??i?.page??"",t:i?.t??n?.t??0}}view(t,e,s){const i={must:0,should:1,could:2,none:3};return{summary:t.summary,points:t.issues.map((n,r)=>this.point(n,r)).sort((n,r)=>i[n.severity]-i[r.severity]),openQuestions:t.openQuestions,errors:[...new Set(this.events.filter(n=>n.type==="error").map(n=>`${m(n.t)} on ${n.page}: ${n.label}`))],duration:s,from:e,tidying:!1,better:null,tidyFailed:null,edited:!1,sending:!1,sent:null,error:null}}async end(){this.stopTalking(),this.marking&&this.mark(!1),this.hush(),this.paused=!0,this.toFrame({type:"record",on:!1});const t=this.t(),e=new Set(this.notes.flatMap(h=>h.utterances)),s=new Set(this.convo.filter(h=>h.who==="scribe"&&!h.error).map(h=>h.uid)),i=this.remarks.filter(h=>!e.has(h.id)&&!(s.has(h.id)&&K(h.text))).map((h,d)=>Q(`q${d+1}`,h,(h.anchor?this.events.find(f=>f.id===h.anchor)?.el?.label:h.pointing?.label)??null)),n=[...this.notes,...i];this.notes=n;const r=this.view(V(n,{title:this.title,duration:t}),"notes",t);if(r.tidying=this.remarks.length>0,this.pack=r,!r.tidying)return;const o=await this.call({action:"pack",timeline:$(this.events,this.remarks),notes:n}),p=this.pack;!p||p.sent||p.sending||(p.tidying=!1,o.ok&&o.value.issues?.length?p.edited?p.better=o.value:this.pack=this.view(o.value,"scribe",t):p.tidyFailed=o.ok?"no points":o.error)}useBetter(){this.pack?.better&&(this.pack=this.view(this.pack.better,"scribe",this.pack.duration))}resume(){this.pack=null,this.setPaused(!1)}stats(){return{remarks:this.remarks.length,clicks:this.events.filter(t=>t.type==="click").length,pages:new Set(this.events.map(t=>t.page).filter(Boolean)).size,shots:Object.values(this.shots).filter(t=>t.image).length}}message(t){const e=this.pack;if(!e)return"";const s=this.stats();return J({id:this.taskId,title:this.title},this.previewUrl,{duration:e.duration,...s},{summary:e.summary,lines:e.points.filter(i=>i.include).map(i=>({severity:i.severity,title:i.title,detail:i.detail,where:i.el?`${i.el.label}${i.page?` on ${i.page}`:""}`:i.page?`the page ${i.page}`:null,quote:i.quote,at:m(i.t),shot:i.shotId?t?t.shots[i.shotId]??null:`(screenshot ${i.shotId})`:null})),errors:e.errors,openQuestions:e.openQuestions},t?.session??null)}async send(){const t=this.pack;if(!t||t.sending||t.sent)return!1;t.sending=!0,t.error=null;const e={};for(const n of t.points.filter(r=>r.include&&r.shotId)){const r=await this.outlined(n.shotId);r&&(e[n.shotId]=r)}const s=await this.call({action:"save",session:{task:{id:this.taskId,title:this.title},preview:this.previewUrl,startedAt:new Date(this.started).toISOString(),events:this.events,remarks:this.remarks,notes:this.notes,conversation:this.convo.map(({who:n,text:r,t:o})=>({who:n,text:r,at:m(o)}))},shots:e});if(!s.ok)return t.sending=!1,t.error=s.error,!1;const i=await E(this.message(s.value),this.token,this.taskId);return t.sending=!1,i.ok?(t.sent={dir:s.value.dir},!0):(t.error=i.error,!1)}}export{ht as C,dt as L,lt as M,ct as S,at as a,pt as b,ut as l,m,w as p};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import"./BA9bXUEp.js";import{p as c,a as n,b,c as o,o as v,t as d,i as r,r as x}from"./Jk-ASPRO.js";import{s as _}from"./DTApYZoW.js";import{e as y,a as l}from"./DNP6oCAK.js";import{i as w}from"./DlIrtyNJ.js";import{p as i}from"./xTuQT2it.js";var S=o('<a class="nav-tab shrink-0"> </a>'),E=o('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function P(f,h){c(h,!1);const p=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/firstmate",label:"Firstmate"},{href:"/settings/events",label:"Events"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/chat",label:"Chat history"},{href:"/settings/voice",label:"Voice"},{href:"/settings/headroom",label:"Headroom"},{href:"/settings/discussion",label:"Discussion"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"},{href:"/settings/experimental",label:"Experimental features"}].filter(e=>{const t=i.data.features;return e.href==="/settings/gateway"?t?.remotes:e.href==="/settings/events"?t?.events:e.href==="/settings/discussion"?t?.discussion:!0}),u=e=>i.url.pathname===e||i.url.pathname.startsWith(`${e}/`);w();var a=E();y(a,5,()=>p,e=>e.href,(e,t)=>{var s=S(),g=v(s,!0);d(m=>{l(s,"href",r(t).href),l(s,"aria-current",m),_(g,r(t).label)},[()=>u(r(t).href)?"page":void 0]),n(e,s)}),x(a),n(f,a),b()}export{P as S};
1
+ import"./DsnmJJEf.js";import"./BA9bXUEp.js";import{p as c,a as n,b,c as o,o as v,t as d,i as r,r as x}from"./Jk-ASPRO.js";import{s as _}from"./DTApYZoW.js";import{e as y,a as l}from"./DNP6oCAK.js";import{i as w}from"./DlIrtyNJ.js";import{p as i}from"./_sdkObeO.js";var S=o('<a class="nav-tab shrink-0"> </a>'),E=o('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function P(f,h){c(h,!1);const p=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/firstmate",label:"Firstmate"},{href:"/settings/events",label:"Events"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/chat",label:"Chat history"},{href:"/settings/voice",label:"Voice"},{href:"/settings/headroom",label:"Headroom"},{href:"/settings/discussion",label:"Discussion"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"},{href:"/settings/experimental",label:"Experimental features"}].filter(e=>{const t=i.data.features;return e.href==="/settings/gateway"?t?.remotes:e.href==="/settings/events"?t?.events:e.href==="/settings/discussion"?t?.discussion:!0}),u=e=>i.url.pathname===e||i.url.pathname.startsWith(`${e}/`);w();var a=E();y(a,5,()=>p,e=>e.href,(e,t)=>{var s=S(),g=v(s,!0);d(m=>{l(s,"href",r(t).href),l(s,"aria-current",m),_(g,r(t).label)},[()=>u(r(t).href)?"page":void 0]),n(e,s)}),x(a),n(f,a),b()}export{P as S};
@@ -1,4 +1,4 @@
1
- import"./DsnmJJEf.js";import{p as vt,x as ze,f as q,i as e,a as n,b as mt,j as R,h as f,r as d,n as $,c,d as T,k,q as Ke,L as Xe,o as w,s as o,t as D,m as Fe,l as Wt}from"./Jk-ASPRO.js";import{d as $t,s as h,e as Qe,a as Oe}from"./DTApYZoW.js";import{i as C}from"./BEVJas-l.js";import{e as Ve,a as N,s as Ht}from"./DNP6oCAK.js";import{h as Yt,m as Ut}from"./CGnI1F6D.js";import{c as ue}from"./Cq7OFmxz.js";import{b as jt}from"./CNxxt--f.js";import{b as Jt}from"./DLfKkHEy.js";import{s as Ce,r as Ne}from"./DQWg__9S.js";import{k as Bt}from"./nqsqhzVw.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./WRwU91GU.js";import{D as Xt,h as Ze,i as et}from"./DrAaxSl_.js";import{H as Qt}from"./ck3_pj9L.js";import{B as re}from"./VrUPyiEH.js";import{D as Vt}from"./DqyvT7BR.js";import{D as Zt,a as es,b as ts,c as ss,d as as,e as rs}from"./Br5gy4Yk.js";import{A as is}from"./Dze9OLXA.js";import{C as ns}from"./Do7xN4Qx.js";import{p as os}from"./xTuQT2it.js";import{i as tt}from"./gocvF-xl.js";import{l as ls}from"./QOxfJswt.js";import{C as ds}from"./c9k4nDgn.js";import{L as Me}from"./D73wi9-q.js";import{X as cs}from"./m8-RluHE.js";import{C as us}from"./C_BRvYKD.js";import{I as qe}from"./DE0e4nJ8.js";import{C as vs}from"./teNj0U11.js";import{R as ms}from"./BgsPzvvM.js";import{S as st}from"./CuSw1clo.js";import{A as fs}from"./B374TgJF.js";import{P as at}from"./DBLsdElo.js";import{P as rt}from"./B_DDhx9A.js";var ps=new Set(["$$slots","$$events","$$legacy"]);function it(E,s){let i=Ne(s,ps);const v={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var hs=new Set(["$$slots","$$events","$$legacy"]);function _s(E,s){let i=Ne(s,hs);const v={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5"}],["path",{d:"m22 10-7.5 7.5L13 16"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var gs=new Set(["$$slots","$$events","$$legacy"]);function xs(E,s){let i=Ne(s,gs);const v={name:"users-round",size:24,node:[["path",{d:"M18 21a8 8 0 0 0-16 0"}],["circle",{cx:"10",cy:"8",r:"5"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"}]],aliases:["users-2"]};qe(E,Ce(()=>i,{get icon(){return v}}))}var ks=c('<div class="mt-5" data-task-decisions=""><!></div>'),ys=c(`<p class="mt-5 flex items-center gap-2 text-sm text-muted-foreground" role="status" data-task-decisions-answered=""><!>Your answer is with Firstmate,
1
+ import"./DsnmJJEf.js";import{p as vt,x as ze,f as q,i as e,a as n,b as mt,j as R,h as f,r as d,n as $,c,d as T,k,q as Ke,L as Xe,o as w,s as o,t as D,m as Fe,l as Wt}from"./Jk-ASPRO.js";import{d as $t,s as h,e as Qe,a as Oe}from"./DTApYZoW.js";import{i as C}from"./BEVJas-l.js";import{e as Ve,a as N,s as Ht}from"./DNP6oCAK.js";import{h as Yt,m as Ut}from"./CGnI1F6D.js";import{c as ue}from"./Cq7OFmxz.js";import{b as jt}from"./CNxxt--f.js";import{b as Jt}from"./DLfKkHEy.js";import{s as Ce,r as Ne}from"./DQWg__9S.js";import{k as Bt}from"./nqsqhzVw.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./WRwU91GU.js";import{D as Xt,h as Ze,i as et}from"./D5k4wnt7.js";import{H as Qt}from"./ck3_pj9L.js";import{B as re}from"./VrUPyiEH.js";import{D as Vt}from"./DqyvT7BR.js";import{D as Zt,a as es,b as ts,c as ss,d as as,e as rs}from"./Br5gy4Yk.js";import{A as is}from"./Dze9OLXA.js";import{C as ns}from"./Do7xN4Qx.js";import{p as os}from"./_sdkObeO.js";import{i as tt}from"./gocvF-xl.js";import{l as ls}from"./CidiHe2w.js";import{C as ds}from"./c9k4nDgn.js";import{L as Me}from"./D73wi9-q.js";import{X as cs}from"./m8-RluHE.js";import{C as us}from"./C_BRvYKD.js";import{I as qe}from"./DE0e4nJ8.js";import{C as vs}from"./teNj0U11.js";import{R as ms}from"./BgsPzvvM.js";import{S as st}from"./CuSw1clo.js";import{A as fs}from"./B374TgJF.js";import{P as at}from"./DBLsdElo.js";import{P as rt}from"./B_DDhx9A.js";var ps=new Set(["$$slots","$$events","$$legacy"]);function it(E,s){let i=Ne(s,ps);const v={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var hs=new Set(["$$slots","$$events","$$legacy"]);function _s(E,s){let i=Ne(s,hs);const v={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5"}],["path",{d:"m22 10-7.5 7.5L13 16"}]]};qe(E,Ce(()=>i,{get icon(){return v}}))}var gs=new Set(["$$slots","$$events","$$legacy"]);function xs(E,s){let i=Ne(s,gs);const v={name:"users-round",size:24,node:[["path",{d:"M18 21a8 8 0 0 0-16 0"}],["circle",{cx:"10",cy:"8",r:"5"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"}]],aliases:["users-2"]};qe(E,Ce(()=>i,{get icon(){return v}}))}var ks=c('<div class="mt-5" data-task-decisions=""><!></div>'),ys=c(`<p class="mt-5 flex items-center gap-2 text-sm text-muted-foreground" role="status" data-task-decisions-answered=""><!>Your answer is with Firstmate,
2
2
  which passes it on to the crew.</p>`);function ws(E,s){vt(s,!0);const i=R(()=>os.data.inbox),v=R(()=>tt.forTask(s.task.id,e(i),ls.now).length>0),b=R(()=>!e(v)&&s.task.attention?.kind==="decision"&&tt.hasDecision(s.task.id,e(i)));var Q=ze(),le=q(Q);{var Z=y=>{var F=ks(),V=f(F);{let G=R(()=>({taskId:s.task.id}));Xt(V,{get filter(){return e(G)}})}d(F),n(y,F)},we=y=>{var F=ys(),V=f(F);ds(V,{class:"size-4 shrink-0 text-success","aria-hidden":"true"}),$(),d(F),n(y,F)};C(le,y=>{e(v)?y(Z):e(b)&&y(we,1)})}n(E,Q),mt()}function bs(E){return!E.id.includes("@")&&!E.secondMate&&!["queued","done","landed","closed"].includes(E.status)}const Ss=/(?:instruction|operational input) waiting\b/i;function nt(E,s,i,v=!1){const b=[];for(const y of E)y.kind==="user"?Ss.test(y.text)||b.push({kind:"firstmate",at:y.at,item:y}):b.push({kind:"worker",at:y.at,item:y});let Q=0;if(!v){const y=b.findIndex(G=>G.at>=i),F=y<0?b.length:y,V=b.findLastIndex((G,H)=>H<F&&G.kind==="worker");Q=V>=0?V:F}const le=b.slice(Q),Z=s.map(y=>({kind:"captain",at:y.at,message:y}));return{entries:[...le,...Z].sort((y,F)=>y.at<F.at?-1:y.at>F.at?1:0),earlier:Q}}const Pe=6e3;async function ft(E,s,i,v={}){try{const b=await fetch(E,{method:"POST",headers:{"content-type":"application/json",[Gt]:s,...v},body:JSON.stringify(i)});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>null))?.message??`Wheelhouse answered ${b.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const ot=(E,s,i)=>ft("/api/crew",i,{taskId:E,action:s}),Ds=(E,s,i,v,b=crypto.randomUUID())=>ft("/api/crew/messages",v,{taskId:E,kind:s,text:i},{"idempotency-key":b});class Ps{constructor(s){this.taskId=s}taskId;#e=T(null);get session(){return e(this.#e)}set session(s){k(this.#e,s,!0)}#t=T(null);get source(){return e(this.#t)}set source(s){k(this.#t,s,!0)}#s=T([]);get records(){return e(this.#s)}set records(s){k(this.#s,s)}#a=T("connecting");get connection(){return e(this.#a)}set connection(s){k(this.#a,s,!0)}#r=T(!1);get synced(){return e(this.#r)}set synced(s){k(this.#r,s,!0)}#i=R(()=>Bt(this.records));get chat(){return e(this.#i)}set chat(s){k(this.#i,s)}#n=R(()=>{const s=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||s?.kind==="turn"&&!s.done});get working(){return e(this.#n)}set working(s){k(this.#n,s)}connect(){this.synced=!1;const s=i=>{i.addEventListener("session",v=>{this.session=JSON.parse(v.data)}),i.addEventListener("reset",v=>{this.source=JSON.parse(v.data),this.records=[]}),i.addEventListener("records",v=>{const b=[...this.records,...JSON.parse(v.data)];this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("replace",v=>{const b=JSON.parse(v.data);this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("synced",()=>this.synced=!0)};return Kt(`/api/tasks/${encodeURIComponent(this.taskId)}/chat`,s,i=>this.connection=i)}}var zs=c("<!>End discussion",1),Cs=c('<span class="text-xs text-muted-foreground">Read-only</span>'),Es=c(`<p class="crew-banner svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Sidebar</span> <span>You’re talking to <b> </b> directly. It can answer you here, and Firstmate gets a note of
3
3
  each message.</span></p>`),Is=c('<p class="crew-banner crew-banner-read svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Read-only</span> <span> </span></p>'),As=c('<p class="crew-banner crew-banner-paused svelte-1f8gn6y" role="status"><span class="crew-tag svelte-1f8gn6y">Paused</span><span> </span></p>'),Ls=c('<div class="-mt-5"><!></div>'),lt=c('<p class="mt-4 rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground" role="status"> </p>'),Rs=c('<button class="mx-auto mt-4 block cursor-pointer text-sm text-sea hover:underline" data-show-earlier=""> </button>'),Fs=c('<div class="bubble-row"><div class="bubble bubble-captain"> </div></div>'),Os=c('<p class="flex items-center gap-1.5 text-sm text-muted-foreground"><!> </p>'),Ms=c('<button class="inline-flex cursor-pointer items-center gap-1 font-sans font-medium hover:underline"><!>Send again</button>'),dt=c("<span> </span>"),Ns=c('<article class="msg msg-captain"><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="crew-tag svelte-1f8gn6y">Sidebar</span><time> </time></header> <!> <p><!> <span> </span> <!></p></div></article>'),qs=c('<details class="crew-note svelte-1f8gn6y"><summary class="svelte-1f8gn6y">Typed into its session · <time> </time></summary> <p class="mt-2 whitespace-pre-wrap"> </p></details>'),Ts=c('<div class="bubble-row"><div class="chat-md bubble bubble-firstmate"></div></div>'),Ws=c('<p class="rounded-lg border px-4 py-3 text-sm"> <span class="text-muted-foreground">Answer in its terminal, or tell it here.</span></p>'),$s=c('<article class="msg msg-firstmate"><span class="mate-avatar msg-avatar svelte-1f8gn6y" aria-hidden="true"> </span> <div class="flex min-w-0 flex-1 flex-col gap-2"><header class="msg-head"><span class="msg-name font-mono"> </span><!><time> </time></header> <!></div></article>'),Hs=c('<pre class="no-scrollbar max-h-60 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground"> </pre>'),Ys=c('<p class="text-xs text-muted-foreground"> </p>'),Us=c(`<div class="border-t px-4 py-3 sm:px-5" data-discussion-terminal=""><p class="mb-2 flex items-center gap-2 text-xs text-muted-foreground"><!>Its terminal, read-only. Type to it
4
4
  here, not there: what you send goes through its inbox.</p> <!></div>`),js=c("<!>Chat with crew",1),ct=c('<p class="mt-1 text-sm text-danger" role="alert"> </p>'),ut=c("<!> <!>",1),Js=c('<p class="text-sm text-danger" role="alert"> </p>'),Bs=c("<!>Start the discussion",1),Gs=c("<!> <!> <!>",1),Ks=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="flex items-center gap-3 rounded-xl border border-dashed bg-muted/40 py-2 pr-2 pl-4" data-chat-locked=""><span class="flex-1 text-muted-foreground/80">Read-only · talk to Firstmate about this task, or</span> <!></div> <p class="mt-1.5 text-xs text-muted-foreground"> </p> <!></div> <!>',1),Xs=c("<!>Ask for status",1),Qs=c("<!>Resume",1),Vs=c("<!>Pause after this step",1),Zs=c("<!> ",1),ea=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="mb-2 flex flex-wrap gap-2"><!> <!> <!></div> <form class="flex items-end gap-2 rounded-xl border bg-card px-3 py-2 focus-within:ring-3 focus-within:ring-ring/50"><textarea class="field-sizing-content max-h-48 min-h-10 flex-1 resize-none bg-transparent py-1.5 outline-none placeholder:text-muted-foreground" data-discussion-input=""></textarea> <!></form> <p class="mt-1.5 text-xs text-muted-foreground">Goes to its inbox as yours; Firstmate gets a note.</p> <!></div>'),ta=c('<section class="flex h-full min-h-0 flex-col"><header class="flex flex-wrap items-center gap-x-3 gap-y-2 border-b px-4 py-3 sm:px-5"><span class="mate-avatar" aria-hidden="true"> </span> <div class="min-w-0 flex-1"><p class="flex items-baseline gap-2"><a class="font-mono text-sm font-semibold hover:underline"> </a> <span class="truncate text-sm text-muted-foreground"> </span></p> <p class="text-xs text-muted-foreground"> </p></div> <!></header> <!> <!> <div class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-5" aria-live="polite" data-discussion-feed=""><!> <!> <!> <div class="mt-5 flex flex-col gap-6"></div></div> <!> <!></section>');function Na(E,s){vt(s,!0);const i=R(()=>s.taskId);let v=T(null);Ke(()=>{const t=new Ps(e(i));k(v,t,!0);const a=t.connect();return()=>{a(),k(v,null)}});let b=T(!1);const Q=60;let le=T(Q);const Z=R(()=>{if(s.discussion)return nt(e(v)?.chat.items??[],s.discussion.messages,s.discussion.openedAt,e(b));const{entries:t}=nt(e(v)?.chat.items??[],[],"",!0),a=Math.max(0,t.length-e(le));return{entries:t.slice(a),earlier:a}}),we=()=>s.discussion?k(b,!0):k(le,e(le)+Q),y=R(()=>s.task?s.task.secondMate||s.task.id.includes("@")?"Chatting with a second mate’s worker comes later.":bs(s.task)?null:"Its worker is not at work.":"Its task has left the fleet."),F=R(()=>e(v)?.session?.harness??s.task?.worker?.harness??null),V=R(()=>e(F)?Qt[e(F)]??e(F):null);let G=T(""),H=T(null),be=T(!1),he=T(!1),Se=T(!1),De=T(!1);async function pt(){k(De,!0),k(H,null);const t=await ot(e(i),"open",s.token);k(De,!1),t.ok?k(Se,!1):k(H,t.error,!0)}async function _e(t,a="",m){k(H,null);const P=await Ds(e(i),t,a,s.token,m);P.ok||k(H,P.error,!0)}function Te(){const t=e(G).trim();t&&(k(G,""),_e("say",t),Xe().then(()=>$e(!0)))}function ht(t){t.key==="Enter"&&!t.shiftKey&&!t.isComposing&&(t.preventDefault(),Te())}async function _t(){k(be,!0);const t=await ot(e(i),"close",s.token);k(be,!1),t.ok?s.onended?.():k(H,t.error,!0)}let ee=T(null),We=!0;function $e(t=!1){e(ee)&&(t||We)&&(e(ee).scrollTop=e(ee).scrollHeight)}Ke(()=>{e(Z).entries.length,e(v)?.records.length,Xe().then(()=>$e())});const gt=t=>t.delivery==="sending"?"Sending":t.delivery==="failed"?t.error??"Not delivered":t.seen?`Seen by ${e(i)}`:"In its inbox",xt={status:"Asked for status",pause:"Asked to pause",resume:"Asked to resume"};var ve=ta(),Ee=f(ve),Ie=f(Ee),kt=w(Ie,!0),Ae=o(Ie,2),Le=f(Ae),Re=f(Le),yt=w(Re,!0),wt=o(Re,2),bt=w(wt,!0);d(Le);var St=o(Le,2),Dt=w(St);d(Ae);var Pt=o(Ae,2);{var zt=t=>{re(t,{variant:"outline",size:"sm",onclick:_t,get disabled(){return e(be)},"data-end-discussion":!0,children:(a,m)=>{var P=zs(),U=q(P);{var ie=j=>{Me(j,{class:"animate-spin"})},de=j=>{cs(j,{})};C(U,j=>{e(be)?j(ie):j(de,-1)})}$(),n(a,P)},$$slots:{default:!0}})},Ct=t=>{var a=Cs();n(t,a)};C(Pt,t=>{s.discussion?t(zt):t(Ct,-1)})}d(Ee);var He=o(Ee,2);{var Et=t=>{var a=Es(),m=o(f(a),2),P=o(f(m)),U=w(P,!0);$(),d(m),d(a),D(()=>h(U,e(i))),n(t,a)},It=t=>{var a=Is(),m=o(f(a),2),P=w(m);d(a),D(()=>h(P,`${e(i)??""}’s own conversation. You’re watching; Firstmate steers it.`)),n(t,a)};C(He,t=>{s.discussion?t(Et):t(It,-1)})}var Ye=o(He,2);{var At=t=>{var a=As(),m=o(f(a)),P=w(m);d(a),D(()=>h(P,`You asked ${e(i)??""} to stop after its current step. It waits until you resume it.`)),n(t,a)};C(Ye,t=>{s.discussion?.paused&&t(At)})}var ge=o(Ye,2),Ue=f(ge);{var Lt=t=>{var a=Ls(),m=f(a);ws(m,{get task(){return s.task}}),d(a),n(t,a)};C(Ue,t=>{s.task&&s.discussion&&t(Lt)})}var je=o(Ue,2);{var Rt=t=>{var a=lt(),m=w(a,!0);D(()=>h(m,e(v).session.reason)),n(t,a)},Ft=t=>{var a=lt(),m=w(a);D(()=>h(m,`Wheelhouse has not found ${e(i)??""}’s conversation yet.${s.discussion?" What you send still reaches it.":""}`)),n(t,a)};C(je,t=>{e(v)?.session?.reason?t(Rt):e(v)?.synced&&!e(v).source&&t(Ft,1)})}var Je=o(je,2);{var Ot=t=>{var a=Rs(),m=w(a);D(()=>h(m,`Show its earlier work (${e(Z).earlier??""})`)),Oe("click",a,we),n(t,a)};C(Je,t=>{e(Z).earlier&&t(Ot)})}var Be=o(Je,2);Ve(Be,23,()=>e(Z).entries,(t,a)=>t.kind==="captain"?`c-${t.message.id}`:`${t.kind}-${t.item.id}-${a}`,(t,a,m)=>{var P=ze(),U=q(P);{var ie=p=>{const r=R(()=>e(a).message);var g=Ns(),O=o(f(g),2),l=f(O),z=o(f(l)),L=w(z,!0);d(l);var A=o(l,2);{var J=u=>{var x=Fs(),_=f(x),S=w(_,!0);d(x),D(()=>h(S,e(r).text)),n(u,x)},ce=u=>{var x=Os(),_=f(x);{var S=X=>{at(X,{class:"size-3.5","aria-hidden":"true"})},K=X=>{rt(X,{class:"size-3.5","aria-hidden":"true"})},W=X=>{it(X,{class:"size-3.5","aria-hidden":"true"})};C(_,X=>{e(r).kind==="pause"?X(S):e(r).kind==="resume"?X(K,1):X(W,-1)})}var fe=o(_,1,!0);d(x),D(()=>h(fe,xt[e(r).kind])),n(u,x)};C(A,u=>{e(r).kind==="say"?u(J):u(ce,-1)})}var te=o(A,2),oe=f(te);{var me=u=>{Me(u,{class:"size-3 animate-spin","aria-hidden":"true"})},ke=u=>{us(u,{class:"size-3","aria-hidden":"true"})},Y=u=>{_s(u,{class:"size-3 text-success","aria-hidden":"true"})},I=u=>{vs(u,{class:"size-3","aria-hidden":"true"})};C(oe,u=>{e(r).delivery==="sending"?u(me):e(r).delivery==="failed"?u(ke,1):e(r).seen?u(Y,2):u(I,-1)})}var M=o(oe,2),B=w(M,!0),ye=o(M,2);{var se=u=>{var x=Ms(),_=f(x);ms(_,{class:"size-3","aria-hidden":"true"}),$(),d(x),Oe("click",x,()=>_e(e(r).kind,e(r).text,e(r).id)),n(u,x)},ae=u=>{var x=dt(),_=w(x);D(()=>h(_,`· ${e(r).told==="sent"?"Firstmate told":e(r).told==="sending"?"telling Firstmate":e(r).told==="off"?"Firstmate not told (messaging is off)":"Firstmate could not be told"}`)),n(u,x)};C(ye,u=>{e(r).delivery==="failed"?u(se):e(r).delivery==="sent"&&u(ae,1)})}d(te),d(O),d(g),D((u,x,_)=>{N(g,"aria-label",`You, ${u??""}`),N(g,"data-crew-message",e(r).id),N(z,"datetime",e(r).at),h(L,x),Ht(te,1,`mt-1 flex flex-wrap items-center justify-end gap-x-2 font-mono text-[0.72rem] ${e(r).delivery==="failed"?"text-danger":"text-muted-foreground"}`),N(te,"data-receipt",e(r).delivery==="sent"?e(r).seen?"seen":"sent":e(r).delivery),h(B,_)},[()=>pe(e(r).at),()=>pe(e(r).at),()=>gt(e(r))]),n(p,g)},de=p=>{var r=qs(),g=f(r),O=o(f(g)),l=w(O,!0);d(g);var z=o(g,2),L=w(z,!0);d(r),D(A=>{N(O,"datetime",e(a).at),h(l,A),h(L,e(a).item.text)},[()=>pe(e(a).at)]),n(p,r)},j=p=>{const r=R(()=>e(a).item);var g=$s(),O=f(g),l=w(O,!0),z=o(O,2),L=f(z),A=f(L),J=w(A,!0),ce=o(A);{var te=Y=>{var I=dt(),M=w(I,!0);D(()=>h(M,e(V))),n(Y,I)};C(ce,Y=>{e(V)&&Y(te)})}var oe=o(ce),me=w(oe,!0);d(L);var ke=o(L,2);Ve(ke,19,()=>e(r).parts,Y=>Y.id,(Y,I,M)=>{var B=ze(),ye=q(B);{var se=_=>{var S=Ts(),K=f(S);Yt(K,()=>Ut(e(I).text),!0),d(K),d(S),n(_,S)},ae=R(()=>e(I).kind==="text"&&e(I).text.trim()),u=_=>{{let S=R(()=>!e(r).done&&e(M)===e(r).parts.length-1&&e(m)===e(Z).entries.length-1);is(_,{get steps(){return e(I).steps},get live(){return e(S)}})}},x=_=>{var S=Ws(),K=f(S);$(),d(S),D(W=>h(K,`It asked in its session: ${W??""} `),[()=>e(I).questions.map(W=>W.question).join(" ")]),n(_,S)};C(ye,_=>{e(ae)?_(se):e(I).kind==="activity"?_(u,1):e(I).kind==="question"&&_(x,2)})}n(Y,B)}),d(z),d(g),D((Y,I,M,B)=>{N(g,"aria-label",`${e(i)??""}, ${Y??""}`),N(O,"data-hue",I),h(l,M),h(J,e(i)),N(oe,"datetime",e(r).at),h(me,B)},[()=>pe(e(r).at),()=>Ze(e(i)),()=>et(e(i)),()=>pe(e(r).at)]),n(p,g)},xe=p=>{var r=Hs(),g=w(r,!0);D(()=>h(g,e(a).item.text)),n(p,r)},ne=p=>{var r=Ys(),g=w(r);D(O=>h(g,`${e(a).item.title??""} · ${O??""}`),[()=>pe(e(a).item.at)]),n(p,r)};C(U,p=>{e(a).kind==="captain"?p(ie):e(a).kind==="firstmate"?p(de,1):e(a).item.kind==="turn"?p(j,2):e(a).item.kind==="output"?p(xe,3):e(a).item.kind==="notice"&&p(ne,4)})}n(t,P)}),d(Be),d(ge),Jt(ge,t=>k(ee,t),()=>e(ee));var Ge=o(ge,2);{var Mt=t=>{var a=Us(),m=f(a),P=f(m);st(P,{class:"size-3.5","aria-hidden":"true"}),$(),d(m);var U=o(m,2);ns(U,{get task(){return s.task},lines:16}),d(a),n(t,a)};C(Ge,t=>{e(he)&&s.task&&t(Mt)})}var Nt=o(Ge,2);{var qt=t=>{var a=Ks(),m=q(a),P=f(m),U=o(f(P),2);{let p=R(()=>!!e(y)),r=R(()=>e(y)??void 0);re(U,{variant:"outline",size:"sm",get disabled(){return e(p)},get title(){return e(r)},onclick:()=>k(Se,!0),"data-chat-with-crew":!0,children:(g,O)=>{var l=js(),z=q(l);xs(z,{}),$(),n(g,l)},$$slots:{default:!0}})}d(P);var ie=o(P,2),de=w(ie,!0),j=o(ie,2);{var xe=p=>{var r=ct(),g=w(r,!0);D(()=>h(g,e(H))),n(p,r)};C(j,p=>{e(H)&&p(xe)})}d(m);var ne=o(m,2);ue(ne,()=>rs,(p,r)=>{r(p,{get open(){return e(Se)},set open(g){k(Se,g,!0)},children:(g,O)=>{var l=ze(),z=q(l);ue(z,()=>Zt,(L,A)=>{A(L,{class:"sm:max-w-md",children:(J,ce)=>{var te=Gs(),oe=q(te);ue(oe,()=>es,(I,M)=>{M(I,{children:(B,ye)=>{var se=ut(),ae=q(se);ue(ae,()=>ts,(x,_)=>{_(x,{class:"font-display text-lg",children:(S,K)=>{$();var W=Fe();D(()=>h(W,`Talk to ${e(i)??""} directly?`)),n(S,W)},$$slots:{default:!0}})});var u=o(ae,2);ue(u,()=>ss,(x,_)=>{_(x,{children:(S,K)=>{$();var W=Fe(`You’ll message this task’s worker yourself, outside Firstmate’s usual relay. What you
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{a as ra}from"./CeV_7ApB.js";import{e as na,p as Bt,f as he,h as s,s as n,i as e,o as y,t as b,a as d,r as o,b as Nt,j as l,c,n as Me,aB as oa,k as Ee,d as et,x as sa,y as Tt}from"./Jk-ASPRO.js";import{d as Pt,s as f,a as ne}from"./DTApYZoW.js";import{i as x}from"./BEVJas-l.js";import{e as pe,a as m,s as P,c as ia,j as la}from"./DNP6oCAK.js";import{t as zt}from"./DE0e4nJ8.js";import{p as ye}from"./DQWg__9S.js";import{S as da}from"./CbKpBvf7.js";import{p as ua}from"./xTuQT2it.js";import{a as kt}from"./WRwU91GU.js";import{b as ca}from"./BUYzAikv.js";import{W as va,S as ma,p as ht}from"./DSoS8iw8.js";import{t as fa,s as ga,d as pa}from"./Ds4LY5_S.js";import{D as ha,l as xa,s as Ut,d as _a,i as xt,c as ba,a as ka,O as Ze,A as $e,b as wa}from"./DK5gnzN6.js";import{i as _t}from"./gocvF-xl.js";import{h as ya,e as Ca}from"./nqsqhzVw.js";import{a as ja,s as Sa}from"./Z0GxSwEl.js";import{T as Ia}from"./CNrVcIUd.js";import{S as Aa}from"./CAaBUUji.js";import{M as Rt}from"./C4jBfsPB.js";import{s as Ta}from"./BqTq4oc1.js";import{d as za}from"./Dg5Iatf7.js";import{g as Ra}from"./xJ7m3_X4.js";import{E as Ea,C as Ma}from"./DLdhxfs7.js";import{C as Oa}from"./D64mTvaN.js";import{S as Et,G as La}from"./D66j7WEk.js";import{M as bt}from"./DlALRMA8.js";import{A as Ha}from"./BjTe15qL.js";import{G as qa}from"./MgFVe5-f.js";import{c as Da,g as Ba,D as Na}from"./DrAaxSl_.js";import{s as Mt}from"./BwF-OIK3.js";import{a as Ot,p as Pa}from"./DWBTuuo9.js";import{A as Lt}from"./BwauVYjH.js";import{X as Ua}from"./m8-RluHE.js";import{S as Ht}from"./voMZUjSQ.js";import{A as qt}from"./BRYVBL-t.js";import{C as Wa}from"./BfHvf1Rg.js";import{C as Ga}from"./c9k4nDgn.js";import{S as Fa}from"./DP0NWgBG.js";import{p as Ya}from"./XxOJwmzJ.js";const Ka=na({pending:null,draft:null,decision:null});var Qa=c('<span class="absolute inset-y-1.5 -left-1 w-[3px] rounded-full bg-gold" aria-hidden="true"></span>'),Va=c('<span class="mx-1" aria-hidden="true">·</span>'),Xa=c("<!><span> </span>",1),Ja=c('<button type="button" title="Chat about this"><!></button>'),Za=c('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),$a=c('<span class="text-muted-foreground"> </span>'),er=c('<span class="ml-auto text-muted-foreground"> </span>'),tr=c('<p class="leading-snug text-muted-foreground"> </p>'),ar=c('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),rr=c('<div class="pt-1"><!></div>'),nr=c('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),or=c('<div class="-mt-2"><!></div>'),sr=c('<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>'),ir=c('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),lr=c('<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 dr(Ce,r){Bt(r,!0);let ee=ye(r,"dim",3,!1),F=ye(r,"selected",3,!1);const U={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"},te=l(()=>r.line.kind==="task"?xa(r.line.task):ha),v=l(()=>r.line.kind==="task"?r.line.task:null),Q=l(()=>`deck-${r.line.key.replace(/[^\w-]/g,"-")}`),V=l(()=>e(v)&&r.line.text!==e(v).shortTitle?e(v).shortTitle:e(v)?.attention?.owner==="captain"&&e(v).attention.text&&e(v).attention.text!==r.line.text?e(v).attention.text:null),Y=l(()=>e(v)?e(v).activity?.text||e(v).summary||e(v).statusLabel:null),de=l(()=>[r.project?{key:"project",text:r.project.tag,title:r.project.name}:null,e(V)??(e(Y)&&e(Y)!==r.line.text?e(Y):null)?{key:"doing",text:e(V)??e(Y),title:void 0}:null,r.line.at?{key:"age",text:Ut(r.line.at,r.now),title:kt(r.line.at,r.now)}:null].filter(R=>R!==null)),ue=l(()=>e(v)?e(v).attention?.url??e(v).pr?.url??null:null),xe=l(()=>e(v)?`/tasks/${encodeURIComponent(e(v).id)}`:null),H=l(()=>!!(e(v)&&r.onOpen)||r.line.kind==="decision"),ce="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 Oe=lr(),je=he(Oe),z=s(je);{var Be=R=>{var k=Qa();d(R,k)};x(z,R=>{F()&&R(Be)})}var oe=n(z,2),se=s(oe);Et(se,{get state(){return e(te)},class:"size-5 shrink-0"});var Se=n(se,2),_e=s(Se),K=y(_e,!0),Ie=n(_e,2);pe(Ie,23,()=>e(de),R=>R.key,(R,k,X)=>{var A=Xa(),ie=he(A);{var ve=ae=>{var Le=Va();d(ae,Le)};x(ie,ae=>{e(X)&&ae(ve)})}var le=n(ie),J=y(le,!0);b(()=>{m(le,"title",e(k).title),m(le,"data-project-tag",e(k).key==="project"||void 0),f(J,e(k).text)}),d(R,A)}),o(Ie),o(Se),o(oe);var tt=n(oe,2);{var Ne=R=>{var k=Ja(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(()=>{P(k,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 ${r.open?"opacity-100":""}`),m(k,"aria-label",`Chat about ${e(v).shortTitle??""}`)}),ne("click",k,()=>r.onChat(e(v))),d(R,k)},be=R=>{var k=Za(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(A=>{m(k,"href",A),P(k,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 ${r.open?"opacity-100":""}`)},[()=>za(r.line.card.id)]),d(R,k)};x(tt,R=>{e(v)?R(Ne):r.line.kind==="decision"&&R(be,1)})}o(je);var at=n(je,2);{var rt=R=>{var k=ir(),X=s(k);{var A=ie=>{var ve=sr(),le=s(ve),J=s(le),ae=s(J);Et(ae,{get state(){return e(te)},still:!0,decorative:!0,class:"size-3.5"});var Le=n(ae,1,!0);o(J);var Ae=n(J,2);va(Ae,{get task(){return e(v)}});var Pe=n(Ae,2);{var nt=g=>{var C=$a(),D=y(C,!0);b(()=>f(D,r.project.name)),d(g,C)};x(Pe,g=>{r.project&&g(nt)})}var Ue=n(Pe,2);{var We=g=>{var C=er(),D=y(C,!0);b(Re=>f(D,Re),[()=>kt(r.line.at,r.now)]),d(g,C)};x(Ue,g=>{r.line.at&&g(We)})}o(le);var Ge=n(le,2);{var Fe=g=>{var C=tr(),D=y(C,!0);b(()=>f(D,e(V))),d(g,C)};x(Ge,g=>{e(V)&&g(Fe)})}var Ye=n(Ge,2);{var ot=g=>{Oa(g,{get pipeline(){return e(v).pipeline},get busy(){return e(v).busy},size:"rail"})},st=l(()=>Ta(e(v))),it=g=>{var C=ar(),D=y(C,!0);b(()=>f(D,e(Y))),d(g,C)};x(Ye,g=>{e(st)?g(ot):e(Y)&&e(Y)!==r.line.text&&g(it,1)})}var re=n(Ye,2);{var lt=g=>{var C=rr(),D=s(C);ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(re,g=>{e(v).passage.steps.length>1&&g(lt)})}var Z=n(re,2);{var Ke=g=>{Ea(g,{get eta(){return e(v).eta}})};x(Z,g=>{e(v).eta&&g(Ke)})}var He=n(Z,2);{var qe=g=>{var C=nr(),D=s(C);qa(D,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var Re=n(D,1,!0);o(C),b(()=>{m(C,"href",e(ue)),f(Re,e(ue))}),d(g,C)};x(He,g=>{e(ue)&&g(qe)})}var De=n(He,2);{var dt=g=>{var C=or(),D=s(C);Ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(De,g=>{e(v).preview&&g(dt)})}var Te=n(De,2),me=s(Te);P(me,1,ia(ce));var ut=s(me);Ha(ut,{class:"size-3.5","aria-hidden":"true"}),Me(),o(me);var ze=n(me,2);P(ze,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=s(ze);bt(ct,{class:"size-3.5","aria-hidden":"true"}),Me(),o(ze),o(Te),o(ve),b(()=>{P(J,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${U[e(te).tone]??""}`),f(Le,e(te).label),m(me,"href",e(xe))}),ne("click",ze,()=>r.onChat(e(v))),d(ie,ve)};x(X,ie=>{e(v)&&ie(A)})}o(k),b(()=>m(k,"id",e(Q))),d(R,k)};x(at,R=>{r.open&&!e(H)&&R(rt)})}b(()=>{P(je,1,`group relative flex items-center border-b border-hair transition-colors ${r.open||F()?"bg-muted/70":"hover:bg-muted/50"}`),m(oe,"aria-expanded",e(H)?void 0:r.open),m(oe,"aria-controls",e(H)?void 0:e(Q)),m(oe,"aria-haspopup",e(H)?"dialog":void 0),m(Se,"title",e(V)?`${r.line.text} (${e(V)})`:r.line.text),P(_e,1,`block truncate text-[0.95rem] font-medium ${ee()?"text-muted-foreground":"text-foreground"}`),f(K,r.line.text)}),ne("click",oe,()=>r.line.kind==="decision"?void Ra(ya(r.line.card.id)):e(H)&&e(v)?r.onOpen?.(e(v)):r.onToggle()),d(Ce,Oe),Nt()}Pt(["click"]);var ur=oa('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),cr=c('<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 Dt(Ce,r){let ee=ye(r,"tone",3,"gold");const F=22,U=2*Math.PI*F,te=l(()=>r.value===null?0:Math.max(0,Math.min(100,Math.round(r.value))));var v=cr(),Q=s(v),V=s(Q);m(V,"r",F);var Y=n(V);{var de=H=>{var ce=ur();m(ce,"r",F),b(()=>m(ce,"stroke-dasharray",`${e(te)/100*U} 138.23007675795088`)),d(H,ce)};x(Y,H=>{r.value!==null&&e(te)>0&&H(de)})}o(Q);var ue=n(Q,2),xe=y(ue,!0);o(v),b(()=>{m(v,"data-tone",ee()),f(xe,r.value===null?"–":`${e(te)}%`)}),d(Ce,v)}var vr=c('<span class="min-w-0 truncate text-muted-foreground"> </span>'),mr=c('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),fr=c('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),gr=c('<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>'),pr=c('<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),hr=c("<span> <b> </b> left</span>"),xr=c('<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>'),_r=c('<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>'),br=c('<button aria-label="Close"><!></button>'),kr=c('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),wr=c('<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>'),yr=c("<span> </span>"),Cr=c('<button role="tab" aria-controls="rail-panel"> <!></button>'),jr=c('<div class="px-1.5" data-slot="home.card"><!></div>'),Sr=c('<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>'),Ir=c('<div class="mb-2" data-needs-decisions=""><!></div>'),Ar=c("<li><!></li>"),Tr=c("<ul></ul>"),zr=c('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Rr=c("<section><!> <!></section>"),Er=c('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Mr=c('<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>'),Or=c('<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),Lr=c('<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>'),Hr=c("<!> <div><!> <!></div> <!> <!>",1),qr=c('<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>'),Dr=c('<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>'),Br=c('<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>'),Nr=c('<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 Rn(Ce,r){Bt(r,!0);const ee=(t,a=Tt,i=Tt)=>{var h=pr(),u=he(h),E=s(u),M=s(E);{var T=p=>{var I=mr(),j=he(I);Ht(j,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var O=n(j,2),B=y(O,!0),L=n(O,2);{var q=G=>{var N=vr(),$=y(N,!0);b(we=>f($,we),[()=>a().mate.where==="remote"?ht(a().mate.host):"on this computer"]),d(G,N)};x(L,G=>{a().mate&&G(q)})}b(()=>f(B,a().label)),d(p,I)},W=p=>{var I=fr(),j=he(I);qt(j,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var O=n(j,2),B=y(O,!0);b(()=>f(B,a().label)),d(p,I)};x(M,p=>{a().id!==Ze?p(T):p(W,-1)})}var fe=n(M,2),ke=y(fe,!0),ge=n(fe,4);{var w=p=>{Rt(p,{get health(){return a().mate.health}})};x(ge,p=>{a().mate&&(a().mate.health.online!=="online"||a().mate.health.cached)&&p(w)})}o(E),o(u);var _=n(u,2);{var S=p=>{var I=gr(),j=s(I);Rt(j,{get health(){return a().mate.health}});var O=n(j,2),B=y(O),L=n(O,2);o(I),b(q=>{m(I,"data-second-mate",a().mate.id),m(O,"title",a().mate.lastReport?.text),f(B,`${a().mate.stateLabel??""}${a().mate.queued.length?` · ${a().mate.queued.length} queued`:""}${a().mate.lastReport?` · “${a().mate.lastReport.text}”`:""}`),m(L,"href",`/second-mates#mate-${q??""}`)},[()=>encodeURIComponent(a().mate.id)]),d(p,I)};x(_,p=>{a().mate&&e(K)===a().id&&p(S)})}b(p=>{m(u,"data-crew",a().id),P(E,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(K)===a().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),m(E,"aria-label",`${a().label??""}${p??""}: ${i()??""}${e(K)===a().id?"":". Show only this crew"}`),f(ke,i())},[()=>a().mate?`, ${a().mate.where==="remote"?ht(a().mate.host):"on this computer"}`:""]),ne("click",E,()=>Ie(a().id)),d(t,h)};let F=ye(r,"insights",3,null),U=ye(r,"scope",3,null),te=ye(r,"cards",19,()=>[]),v=ye(r,"secondMates",19,()=>[]);const Q=t=>!U()||t===U(),V=l(()=>(F()?.decisions??[]).filter(t=>Q(t.projectId))),Y=l(()=>ga((F()?.today??[]).filter(t=>Q(t.projectId)))),de=l(()=>fa(e(Y))),ue=l(()=>(F()?.today??[]).filter(t=>Q(t.projectId)).length),xe=t=>e(de)?Math.round(e(Y)[t]/e(de)*100):0,H=l(()=>F()?.allowance??null),ce=l(()=>ua.data.inbox),Oe=l(()=>_t.view(e(ce))),je=l(()=>e(Oe)?.available?{shown:_t.shown(r.now,e(ce)).shown.filter(Ca),all:e(Oe).cards}:null),z=l(()=>_a(r.tasks,r.now,e(je),U())),Be=l(()=>[...e(z).needs,...e(z).withFirstmate,...e(z).under,...e(z).next,...e(z).landed]),oe=l(()=>U()?v().filter(t=>e(Be).some(a=>a.crew===t.id)):v()),se=l(()=>ba(e(oe),e(Be))),Se="wheelhouse-rail-crew";let _e=et(null);const K=l(()=>ka(e(_e),e(se)));function Ie(t){Ee(_e,t,!0);try{localStorage.setItem(Se,t)}catch{}}function tt(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const a=[$e,...e(se).map(u=>u.id)],i=a.indexOf(e(K)),h=t.key==="Home"?0:t.key==="End"?a.length-1:(i+(t.key==="ArrowRight"?1:a.length-1))%a.length;Ie(a[h]),document.getElementById(Ne(a[h]))?.focus()}const Ne=t=>`rail-crew-${t.replace(/[^\w-]/g,"-")}`,be=t=>t.filter(a=>xt(e(K),a.crew)),at=t=>[...e(z).needs,...e(z).withFirstmate,...e(z).under].filter(a=>xt(t,a.crew)).length,rt=t=>e(z).needs.filter(a=>xt(t,a.crew)).length,R="wheelhouse-rail-tab",k=l(()=>[{id:"under",label:"Under way",count:be(e(z).under).length,strong:!1},{id:"needs",label:"Needs you",count:be(e(z).needs).length,strong:!0},{id:"landed",label:"Landed",count:be(e(z).landed).length,strong:!1},...te().map(t=>({id:t.key,label:t.title,count:t.badge??0,strong:!1}))]);let X=et("under");const A=l(()=>e(k).some(t=>t.id===e(X))?e(X):"under"),ie=l(()=>te().find(t=>t.key===e(A))??null);ra(()=>{Ot.load();try{Ee(X,localStorage.getItem(R)||"under",!0),Ee(_e,localStorage.getItem(Se),!0)}catch{}});function ve(t){Ee(X,t,!0);try{localStorage.setItem(R,t)}catch{}}function le(t){if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight")return;t.preventDefault();const a=e(k).findIndex(h=>h.id===e(A)),i=e(k)[(a+(t.key==="ArrowRight"?1:e(k).length-1))%e(k).length];ve(i.id),document.getElementById(`rail-tab-${i.id}`)?.focus()}let J=et(!1);const ae=new da;function Le(t){ae.has(t)?ae.delete(t):ae.add(t)}const Ae=l(()=>be(e(z).needs).filter(t=>t.kind==="decision").length),Pe=l(()=>e(A)==="needs"?[...e(z).needs,...e(z).withFirstmate].filter(t=>t.kind!=="decision"):e(A)==="under"?[...e(z).under,...e(J)?e(z).next:[]]:e(A)==="landed"?e(z).landed:[]),nt=l(()=>wa(e(Pe),e(se),e(K))),Ue=l(()=>be(e(z).next).length),We=l(()=>e(K)===$e||e(K)===Ze);function Ge(t){if(!["ArrowDown","ArrowUp","Home","End"].includes(t.key))return;const i=[...t.currentTarget.querySelectorAll("[data-deck-line]")],h=i.indexOf(document.activeElement);if(h<0)return;t.preventDefault();const u=t.key==="Home"?0:t.key==="End"?i.length-1:Math.max(0,Math.min(i.length-1,h+(t.key==="ArrowDown"?1:-1)));i[u]?.focus()}const Fe=t=>!t||t==="unassigned"?null:r.projects.find(a=>a.id===t)?.name??t,Ye=l(()=>Pa(r.projects,Ot.names));function ot(t){const a=t.kind==="task"?t.task.projectId:t.card.projectId,i=Fe(a);return i?{name:i,tag:e(Ye).get(a)?.label??i}:null}const st=l(()=>Mt.taskId);function it(t){Ka.pending={kind:"task",id:t.id,title:t.shortTitle,project:Fe(t.projectId),url:null},r.onChat?.()}const re=l(()=>e(H)?.state==="ok"?e(H).windows.find(t=>/week/i.test(t.label))??e(H).windows[0]??null:null),lt=l(()=>r.tasks.filter(t=>Q(t.projectId))),Z=l(()=>Da(e(lt))),Ke=l(()=>Ba(r.projects.filter(t=>Q(t.id)&&t.id!=="unassigned"),r.tasks)),He={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var qe=Nr(),De=s(qe),dt=y(De,!0),Te=n(De,2),me=n(s(Te),2);{var ut=t=>{var a=xr(),i=n(s(a),2);pe(i,17,()=>e(H).windows.slice(0,2),h=>h.id,(h,u)=>{var E=hr(),M=s(E),T=n(M),W=y(T);Me(),o(E),b(()=>{P(E,1,`whitespace-nowrap tabular-nums ${e(u).atRisk?"font-medium text-warning":e(u).id===e(re)?.id?"text-gold":""}`),f(M,`${e(u).label??""} `),P(T,1,`font-semibold ${e(u).id===e(re)?.id?"":"text-foreground"}`),f(W,`${e(u).percentLeft??""}%`)}),d(h,E)}),o(a),b(h=>m(a,"title",`Claude headroom: ${h??""}${F()?.atRisk?`. ${F().atRisk.label} may run out before it resets.`:""}`),[()=>e(H).windows.slice(0,2).map(h=>`${h.label} ${h.percentLeft}% left`).join(", ")]),d(t,a)},ze=t=>{var a=_r(),i=s(a);La(i,{class:"size-3.5","aria-hidden":"true"}),Me(),o(a),d(t,a)};x(me,t=>{e(H)?.state==="ok"&&e(H).windows.length?t(ut):e(H)?.state==="connect"&&t(ze,1)})}var ct=n(me,2);{var g=t=>{var a=br(),i=s(a);Ua(i,{class:"size-4"}),o(a),b(()=>P(a,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(H)?.state==="ok"||e(H)?.state==="connect"?"":"ml-auto"}`)),ne("click",a,function(...h){r.onClose?.apply(this,h)}),d(t,a)};x(ct,t=>{r.onClose&&t(g)})}o(Te);var C=n(Te,2),D=s(C),Re=s(D);{let t=l(()=>e(re)?.percentLeft??null);Dt(Re,{get value(){return e(t)},tone:"gold"})}var wt=n(Re,2),yt=s(wt),Wt=y(yt,!0),Gt=n(yt,2),Ft=y(Gt,!0);o(wt),o(D);var Qe=n(D,2),Ct=s(Qe);Dt(Ct,{get value(){return e(Z).percent},tone:"teal"});var jt=n(Ct,2),Yt=n(s(jt),2),Kt=y(Yt,!0);o(jt),o(Qe),o(C);var St=n(C,2);{var Qt=t=>{var a=wr(),i=s(a);pe(i,21,()=>[{id:$e,label:"All",short:"All",mate:null},...e(se)],h=>h.id,(h,u)=>{const E=l(()=>at(e(u).id)),M=l(()=>rt(e(u).id));var T=kr(),W=s(T);{var fe=j=>{Ht(j,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},ke=j=>{qt(j,{class:"size-3 shrink-0","aria-hidden":"true"})};x(W,j=>{e(u).id!==Ze&&e(u).id!==$e?j(fe):e(u).id===Ze&&j(ke,1)})}var ge=n(W,2),w=y(ge,!0),_=n(ge,2),S=y(_),p=n(_,2),I=y(p,!0);o(T),b((j,O)=>{m(T,"id",j),m(T,"aria-checked",e(K)===e(u).id),m(T,"tabindex",e(K)===e(u).id?0:-1),P(T,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(K)===e(u).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),m(T,"title",`${e(u).label??""}${O??""}: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),f(w,e(u).short),f(S,`: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),P(p,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(M)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),f(I,e(M)||e(E))},[()=>Ne(e(u).id),()=>e(u).mate?.host?` ${ht(e(u).mate.host)}`:""]),ne("click",T,()=>Ie(e(u).id)),d(h,T)}),o(i),o(a),ne("keydown",i,tt),d(t,a)};x(St,t=>{e(se).length>1&&t(Qt)})}var Ve=n(St,2);pe(Ve,21,()=>e(k),t=>t.id,(t,a)=>{var i=Cr(),h=s(i,!0),u=n(h);{var E=M=>{var T=yr(),W=y(T,!0);b(()=>{P(T,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(a).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),f(W,e(a).count)}),d(M,T)};x(u,M=>{e(a).count&&M(E)})}o(i),b(()=>{m(i,"id",`rail-tab-${e(a).id??""}`),m(i,"aria-selected",e(A)===e(a).id),m(i,"tabindex",e(A)===e(a).id?0:-1),P(i,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(A)===e(a).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),f(h,e(a).label)}),ne("click",i,()=>ve(e(a).id)),d(t,i)}),o(Ve);var vt=n(Ve,2),It=s(vt);{var Vt=t=>{var a=jr(),i=s(a);Aa(i,{get entry(){return e(ie)},get now(){return r.now}}),o(a),d(t,a)},Xt=t=>{var a=Hr(),i=he(a);{var h=w=>{var _=Sr(),S=s(_);{let I=l(()=>e(J)?"rotate-90":"");Wa(S,{get class(){return`size-3.5 transition-transform ${e(I)??""}`},"aria-hidden":"true"})}var p=n(S);o(_),b(()=>{m(_,"aria-expanded",e(J)),f(p,`Up next · ${e(Ue)??""}`)}),ne("click",_,()=>Ee(J,!e(J))),d(w,_)};x(i,w=>{e(A)==="under"&&e(Ue)&&w(h)})}var u=n(i,2),E=s(u);{var M=w=>{var _=Ir(),S=s(_);{let p=l(()=>({projectId:U()}));Na(S,{get filter(){return e(p)},compact:!0})}o(_),d(w,_)};x(E,w=>{e(A)==="needs"&&e(Ae)&&w(M)})}var T=n(E,2);pe(T,17,()=>e(nt),w=>w.crew.id,(w,_)=>{var S=Rr(),p=s(S);{var I=L=>{ee(L,()=>e(_).crew,()=>e(_).lines.length)};x(p,L=>{e(se).length>1&&L(I)})}var j=n(p,2);{var O=L=>{var q=Tr();pe(q,21,()=>e(_).lines,G=>G.key,(G,N)=>{var $=Ar(),we=s($);{let Je=l(()=>ae.has(e(N).key)),ft=l(()=>ot(e(N))),gt=l(()=>e(N).kind==="task"&&(e(N).task.status==="queued"||e(N).task.status==="landed")),pt=l(()=>e(N).kind==="task"&&e(N).task.id===e(st));dr(we,{get line(){return e(N)},get now(){return r.now},get open(){return e(Je)},get project(){return e(ft)},get dim(){return e(gt)},get selected(){return e(pt)},onToggle:()=>Le(e(N).key),onOpen:aa=>Mt.openTask(aa.id),onChat:it})}o($),zt(1,$,()=>ja),zt(2,$,()=>Sa,()=>({word:e(N).kind==="decision"?_t.stampFor(e(N).card.id):null})),d(G,$)}),o(q),d(L,q)},B=L=>{var q=zr(),G=y(q,!0);b(()=>f(G,He[e(A)])),d(L,q)};x(j,L=>{e(_).lines.length?L(O):e(A)==="needs"&&e(Ae)||L(B,1)})}o(S),b(()=>{m(S,"aria-label",e(_).crew.label),m(S,"data-crew-group",e(_).crew.id)}),d(w,S)},w=>{var _=sa(),S=he(_);{var p=I=>{var j=Er(),O=s(j);{var B=q=>{Ga(q,{class:"size-4 text-success","aria-hidden":"true"})};x(O,q=>{e(A)==="needs"&&q(B)})}var L=n(O,1,!0);o(j),b(()=>f(L,He[e(A)])),d(I,j)};x(S,I=>{e(A)==="needs"&&e(Ae)||I(p)})}d(w,_)}),o(u);var W=n(u,2);{var fe=w=>{var _=Or(),S=he(_),p=s(S),I=s(p);Fa(I,{class:"size-3.5","aria-hidden":"true"}),Me(),o(p),Me(4),o(S);var j=n(S,2);pe(j,21,()=>e(V).slice(0,3),O=>O.id,(O,B)=>{var L=Mr(),q=s(L),G=s(q),N=y(G,!0),$=n(G,2),we=y($,!0),Je=n($,2),ft=y(Je,!0);o(q),o(L),b((gt,pt)=>{m(q,"href",`/decisions#${e(B).id??""}`),m(q,"title",e(B).question),f(N,e(B).taskTitle),f(we,e(B).verdict),m(Je,"title",gt),f(ft,pt)},[()=>kt(e(B).decidedAt,r.now),()=>Ut(e(B).decidedAt,r.now)]),d(O,L)}),o(j),d(w,_)};x(W,w=>{e(A)==="needs"&&e(V).length&&e(We)&&w(fe)})}var ke=n(W,2);{var ge=w=>{var _=Lr(),S=s(_),p=s(S),I=y(p,!0),j=n(p);o(S);var O=n(S,2),B=s(O);Ia(B,{get seconds(){return e(Y)},label:"Today"}),o(O);var L=n(O,2),q=y(L);o(_),b((G,N,$,we)=>{f(I,G),f(j,` of crew time today on ${e(ue)??""}
1
+ import"./DsnmJJEf.js";import{a as ra}from"./CeV_7ApB.js";import{e as na,p as Bt,f as he,h as s,s as n,i as e,o as y,t as b,a as d,r as o,b as Nt,j as l,c,n as Me,aB as oa,k as Ee,d as et,x as sa,y as Tt}from"./Jk-ASPRO.js";import{d as Pt,s as f,a as ne}from"./DTApYZoW.js";import{i as x}from"./BEVJas-l.js";import{e as pe,a as m,s as P,c as ia,j as la}from"./DNP6oCAK.js";import{t as zt}from"./DE0e4nJ8.js";import{p as ye}from"./DQWg__9S.js";import{S as da}from"./CbKpBvf7.js";import{p as ua}from"./_sdkObeO.js";import{a as kt}from"./WRwU91GU.js";import{b as ca}from"./BUYzAikv.js";import{W as va,S as ma,p as ht}from"./D0W-yI5k.js";import{t as fa,s as ga,d as pa}from"./Ds4LY5_S.js";import{D as ha,l as xa,s as Ut,d as _a,i as xt,c as ba,a as ka,O as Ze,A as $e,b as wa}from"./v1_0RI9s.js";import{i as _t}from"./gocvF-xl.js";import{h as ya,e as Ca}from"./nqsqhzVw.js";import{a as ja,s as Sa}from"./Z0GxSwEl.js";import{T as Ia}from"./CNrVcIUd.js";import{S as Aa}from"./yLS4MyUX.js";import{M as Rt}from"./C4jBfsPB.js";import{s as Ta}from"./CqTNazs8.js";import{d as za}from"./Dg5Iatf7.js";import{g as Ra}from"./De08PyIM.js";import{E as Ea,C as Ma}from"./CTPaAaT8.js";import{C as Oa}from"./DN2Bw8XE.js";import{S as Et,G as La}from"./D66j7WEk.js";import{M as bt}from"./DlALRMA8.js";import{A as Ha}from"./BjTe15qL.js";import{G as qa}from"./MgFVe5-f.js";import{c as Da,g as Ba,D as Na}from"./D5k4wnt7.js";import{s as Mt}from"./BwF-OIK3.js";import{a as Ot,p as Pa}from"./DWBTuuo9.js";import{A as Lt}from"./BwauVYjH.js";import{X as Ua}from"./m8-RluHE.js";import{S as Ht}from"./voMZUjSQ.js";import{A as qt}from"./BRYVBL-t.js";import{C as Wa}from"./BfHvf1Rg.js";import{C as Ga}from"./c9k4nDgn.js";import{S as Fa}from"./DP0NWgBG.js";import{p as Ya}from"./XxOJwmzJ.js";const Ka=na({pending:null,draft:null,decision:null});var Qa=c('<span class="absolute inset-y-1.5 -left-1 w-[3px] rounded-full bg-gold" aria-hidden="true"></span>'),Va=c('<span class="mx-1" aria-hidden="true">·</span>'),Xa=c("<!><span> </span>",1),Ja=c('<button type="button" title="Chat about this"><!></button>'),Za=c('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),$a=c('<span class="text-muted-foreground"> </span>'),er=c('<span class="ml-auto text-muted-foreground"> </span>'),tr=c('<p class="leading-snug text-muted-foreground"> </p>'),ar=c('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),rr=c('<div class="pt-1"><!></div>'),nr=c('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),or=c('<div class="-mt-2"><!></div>'),sr=c('<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>'),ir=c('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),lr=c('<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 dr(Ce,r){Bt(r,!0);let ee=ye(r,"dim",3,!1),F=ye(r,"selected",3,!1);const U={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"},te=l(()=>r.line.kind==="task"?xa(r.line.task):ha),v=l(()=>r.line.kind==="task"?r.line.task:null),Q=l(()=>`deck-${r.line.key.replace(/[^\w-]/g,"-")}`),V=l(()=>e(v)&&r.line.text!==e(v).shortTitle?e(v).shortTitle:e(v)?.attention?.owner==="captain"&&e(v).attention.text&&e(v).attention.text!==r.line.text?e(v).attention.text:null),Y=l(()=>e(v)?e(v).activity?.text||e(v).summary||e(v).statusLabel:null),de=l(()=>[r.project?{key:"project",text:r.project.tag,title:r.project.name}:null,e(V)??(e(Y)&&e(Y)!==r.line.text?e(Y):null)?{key:"doing",text:e(V)??e(Y),title:void 0}:null,r.line.at?{key:"age",text:Ut(r.line.at,r.now),title:kt(r.line.at,r.now)}:null].filter(R=>R!==null)),ue=l(()=>e(v)?e(v).attention?.url??e(v).pr?.url??null:null),xe=l(()=>e(v)?`/tasks/${encodeURIComponent(e(v).id)}`:null),H=l(()=>!!(e(v)&&r.onOpen)||r.line.kind==="decision"),ce="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 Oe=lr(),je=he(Oe),z=s(je);{var Be=R=>{var k=Qa();d(R,k)};x(z,R=>{F()&&R(Be)})}var oe=n(z,2),se=s(oe);Et(se,{get state(){return e(te)},class:"size-5 shrink-0"});var Se=n(se,2),_e=s(Se),K=y(_e,!0),Ie=n(_e,2);pe(Ie,23,()=>e(de),R=>R.key,(R,k,X)=>{var A=Xa(),ie=he(A);{var ve=ae=>{var Le=Va();d(ae,Le)};x(ie,ae=>{e(X)&&ae(ve)})}var le=n(ie),J=y(le,!0);b(()=>{m(le,"title",e(k).title),m(le,"data-project-tag",e(k).key==="project"||void 0),f(J,e(k).text)}),d(R,A)}),o(Ie),o(Se),o(oe);var tt=n(oe,2);{var Ne=R=>{var k=Ja(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(()=>{P(k,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 ${r.open?"opacity-100":""}`),m(k,"aria-label",`Chat about ${e(v).shortTitle??""}`)}),ne("click",k,()=>r.onChat(e(v))),d(R,k)},be=R=>{var k=Za(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(A=>{m(k,"href",A),P(k,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 ${r.open?"opacity-100":""}`)},[()=>za(r.line.card.id)]),d(R,k)};x(tt,R=>{e(v)?R(Ne):r.line.kind==="decision"&&R(be,1)})}o(je);var at=n(je,2);{var rt=R=>{var k=ir(),X=s(k);{var A=ie=>{var ve=sr(),le=s(ve),J=s(le),ae=s(J);Et(ae,{get state(){return e(te)},still:!0,decorative:!0,class:"size-3.5"});var Le=n(ae,1,!0);o(J);var Ae=n(J,2);va(Ae,{get task(){return e(v)}});var Pe=n(Ae,2);{var nt=g=>{var C=$a(),D=y(C,!0);b(()=>f(D,r.project.name)),d(g,C)};x(Pe,g=>{r.project&&g(nt)})}var Ue=n(Pe,2);{var We=g=>{var C=er(),D=y(C,!0);b(Re=>f(D,Re),[()=>kt(r.line.at,r.now)]),d(g,C)};x(Ue,g=>{r.line.at&&g(We)})}o(le);var Ge=n(le,2);{var Fe=g=>{var C=tr(),D=y(C,!0);b(()=>f(D,e(V))),d(g,C)};x(Ge,g=>{e(V)&&g(Fe)})}var Ye=n(Ge,2);{var ot=g=>{Oa(g,{get pipeline(){return e(v).pipeline},get busy(){return e(v).busy},size:"rail"})},st=l(()=>Ta(e(v))),it=g=>{var C=ar(),D=y(C,!0);b(()=>f(D,e(Y))),d(g,C)};x(Ye,g=>{e(st)?g(ot):e(Y)&&e(Y)!==r.line.text&&g(it,1)})}var re=n(Ye,2);{var lt=g=>{var C=rr(),D=s(C);ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(re,g=>{e(v).passage.steps.length>1&&g(lt)})}var Z=n(re,2);{var Ke=g=>{Ea(g,{get eta(){return e(v).eta}})};x(Z,g=>{e(v).eta&&g(Ke)})}var He=n(Z,2);{var qe=g=>{var C=nr(),D=s(C);qa(D,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var Re=n(D,1,!0);o(C),b(()=>{m(C,"href",e(ue)),f(Re,e(ue))}),d(g,C)};x(He,g=>{e(ue)&&g(qe)})}var De=n(He,2);{var dt=g=>{var C=or(),D=s(C);Ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(De,g=>{e(v).preview&&g(dt)})}var Te=n(De,2),me=s(Te);P(me,1,ia(ce));var ut=s(me);Ha(ut,{class:"size-3.5","aria-hidden":"true"}),Me(),o(me);var ze=n(me,2);P(ze,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=s(ze);bt(ct,{class:"size-3.5","aria-hidden":"true"}),Me(),o(ze),o(Te),o(ve),b(()=>{P(J,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${U[e(te).tone]??""}`),f(Le,e(te).label),m(me,"href",e(xe))}),ne("click",ze,()=>r.onChat(e(v))),d(ie,ve)};x(X,ie=>{e(v)&&ie(A)})}o(k),b(()=>m(k,"id",e(Q))),d(R,k)};x(at,R=>{r.open&&!e(H)&&R(rt)})}b(()=>{P(je,1,`group relative flex items-center border-b border-hair transition-colors ${r.open||F()?"bg-muted/70":"hover:bg-muted/50"}`),m(oe,"aria-expanded",e(H)?void 0:r.open),m(oe,"aria-controls",e(H)?void 0:e(Q)),m(oe,"aria-haspopup",e(H)?"dialog":void 0),m(Se,"title",e(V)?`${r.line.text} (${e(V)})`:r.line.text),P(_e,1,`block truncate text-[0.95rem] font-medium ${ee()?"text-muted-foreground":"text-foreground"}`),f(K,r.line.text)}),ne("click",oe,()=>r.line.kind==="decision"?void Ra(ya(r.line.card.id)):e(H)&&e(v)?r.onOpen?.(e(v)):r.onToggle()),d(Ce,Oe),Nt()}Pt(["click"]);var ur=oa('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),cr=c('<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 Dt(Ce,r){let ee=ye(r,"tone",3,"gold");const F=22,U=2*Math.PI*F,te=l(()=>r.value===null?0:Math.max(0,Math.min(100,Math.round(r.value))));var v=cr(),Q=s(v),V=s(Q);m(V,"r",F);var Y=n(V);{var de=H=>{var ce=ur();m(ce,"r",F),b(()=>m(ce,"stroke-dasharray",`${e(te)/100*U} 138.23007675795088`)),d(H,ce)};x(Y,H=>{r.value!==null&&e(te)>0&&H(de)})}o(Q);var ue=n(Q,2),xe=y(ue,!0);o(v),b(()=>{m(v,"data-tone",ee()),f(xe,r.value===null?"–":`${e(te)}%`)}),d(Ce,v)}var vr=c('<span class="min-w-0 truncate text-muted-foreground"> </span>'),mr=c('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),fr=c('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),gr=c('<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>'),pr=c('<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),hr=c("<span> <b> </b> left</span>"),xr=c('<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>'),_r=c('<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>'),br=c('<button aria-label="Close"><!></button>'),kr=c('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),wr=c('<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>'),yr=c("<span> </span>"),Cr=c('<button role="tab" aria-controls="rail-panel"> <!></button>'),jr=c('<div class="px-1.5" data-slot="home.card"><!></div>'),Sr=c('<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>'),Ir=c('<div class="mb-2" data-needs-decisions=""><!></div>'),Ar=c("<li><!></li>"),Tr=c("<ul></ul>"),zr=c('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Rr=c("<section><!> <!></section>"),Er=c('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Mr=c('<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>'),Or=c('<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),Lr=c('<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>'),Hr=c("<!> <div><!> <!></div> <!> <!>",1),qr=c('<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>'),Dr=c('<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>'),Br=c('<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>'),Nr=c('<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 Rn(Ce,r){Bt(r,!0);const ee=(t,a=Tt,i=Tt)=>{var h=pr(),u=he(h),E=s(u),M=s(E);{var T=p=>{var I=mr(),j=he(I);Ht(j,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var O=n(j,2),B=y(O,!0),L=n(O,2);{var q=G=>{var N=vr(),$=y(N,!0);b(we=>f($,we),[()=>a().mate.where==="remote"?ht(a().mate.host):"on this computer"]),d(G,N)};x(L,G=>{a().mate&&G(q)})}b(()=>f(B,a().label)),d(p,I)},W=p=>{var I=fr(),j=he(I);qt(j,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var O=n(j,2),B=y(O,!0);b(()=>f(B,a().label)),d(p,I)};x(M,p=>{a().id!==Ze?p(T):p(W,-1)})}var fe=n(M,2),ke=y(fe,!0),ge=n(fe,4);{var w=p=>{Rt(p,{get health(){return a().mate.health}})};x(ge,p=>{a().mate&&(a().mate.health.online!=="online"||a().mate.health.cached)&&p(w)})}o(E),o(u);var _=n(u,2);{var S=p=>{var I=gr(),j=s(I);Rt(j,{get health(){return a().mate.health}});var O=n(j,2),B=y(O),L=n(O,2);o(I),b(q=>{m(I,"data-second-mate",a().mate.id),m(O,"title",a().mate.lastReport?.text),f(B,`${a().mate.stateLabel??""}${a().mate.queued.length?` · ${a().mate.queued.length} queued`:""}${a().mate.lastReport?` · “${a().mate.lastReport.text}”`:""}`),m(L,"href",`/second-mates#mate-${q??""}`)},[()=>encodeURIComponent(a().mate.id)]),d(p,I)};x(_,p=>{a().mate&&e(K)===a().id&&p(S)})}b(p=>{m(u,"data-crew",a().id),P(E,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(K)===a().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),m(E,"aria-label",`${a().label??""}${p??""}: ${i()??""}${e(K)===a().id?"":". Show only this crew"}`),f(ke,i())},[()=>a().mate?`, ${a().mate.where==="remote"?ht(a().mate.host):"on this computer"}`:""]),ne("click",E,()=>Ie(a().id)),d(t,h)};let F=ye(r,"insights",3,null),U=ye(r,"scope",3,null),te=ye(r,"cards",19,()=>[]),v=ye(r,"secondMates",19,()=>[]);const Q=t=>!U()||t===U(),V=l(()=>(F()?.decisions??[]).filter(t=>Q(t.projectId))),Y=l(()=>ga((F()?.today??[]).filter(t=>Q(t.projectId)))),de=l(()=>fa(e(Y))),ue=l(()=>(F()?.today??[]).filter(t=>Q(t.projectId)).length),xe=t=>e(de)?Math.round(e(Y)[t]/e(de)*100):0,H=l(()=>F()?.allowance??null),ce=l(()=>ua.data.inbox),Oe=l(()=>_t.view(e(ce))),je=l(()=>e(Oe)?.available?{shown:_t.shown(r.now,e(ce)).shown.filter(Ca),all:e(Oe).cards}:null),z=l(()=>_a(r.tasks,r.now,e(je),U())),Be=l(()=>[...e(z).needs,...e(z).withFirstmate,...e(z).under,...e(z).next,...e(z).landed]),oe=l(()=>U()?v().filter(t=>e(Be).some(a=>a.crew===t.id)):v()),se=l(()=>ba(e(oe),e(Be))),Se="wheelhouse-rail-crew";let _e=et(null);const K=l(()=>ka(e(_e),e(se)));function Ie(t){Ee(_e,t,!0);try{localStorage.setItem(Se,t)}catch{}}function tt(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const a=[$e,...e(se).map(u=>u.id)],i=a.indexOf(e(K)),h=t.key==="Home"?0:t.key==="End"?a.length-1:(i+(t.key==="ArrowRight"?1:a.length-1))%a.length;Ie(a[h]),document.getElementById(Ne(a[h]))?.focus()}const Ne=t=>`rail-crew-${t.replace(/[^\w-]/g,"-")}`,be=t=>t.filter(a=>xt(e(K),a.crew)),at=t=>[...e(z).needs,...e(z).withFirstmate,...e(z).under].filter(a=>xt(t,a.crew)).length,rt=t=>e(z).needs.filter(a=>xt(t,a.crew)).length,R="wheelhouse-rail-tab",k=l(()=>[{id:"under",label:"Under way",count:be(e(z).under).length,strong:!1},{id:"needs",label:"Needs you",count:be(e(z).needs).length,strong:!0},{id:"landed",label:"Landed",count:be(e(z).landed).length,strong:!1},...te().map(t=>({id:t.key,label:t.title,count:t.badge??0,strong:!1}))]);let X=et("under");const A=l(()=>e(k).some(t=>t.id===e(X))?e(X):"under"),ie=l(()=>te().find(t=>t.key===e(A))??null);ra(()=>{Ot.load();try{Ee(X,localStorage.getItem(R)||"under",!0),Ee(_e,localStorage.getItem(Se),!0)}catch{}});function ve(t){Ee(X,t,!0);try{localStorage.setItem(R,t)}catch{}}function le(t){if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight")return;t.preventDefault();const a=e(k).findIndex(h=>h.id===e(A)),i=e(k)[(a+(t.key==="ArrowRight"?1:e(k).length-1))%e(k).length];ve(i.id),document.getElementById(`rail-tab-${i.id}`)?.focus()}let J=et(!1);const ae=new da;function Le(t){ae.has(t)?ae.delete(t):ae.add(t)}const Ae=l(()=>be(e(z).needs).filter(t=>t.kind==="decision").length),Pe=l(()=>e(A)==="needs"?[...e(z).needs,...e(z).withFirstmate].filter(t=>t.kind!=="decision"):e(A)==="under"?[...e(z).under,...e(J)?e(z).next:[]]:e(A)==="landed"?e(z).landed:[]),nt=l(()=>wa(e(Pe),e(se),e(K))),Ue=l(()=>be(e(z).next).length),We=l(()=>e(K)===$e||e(K)===Ze);function Ge(t){if(!["ArrowDown","ArrowUp","Home","End"].includes(t.key))return;const i=[...t.currentTarget.querySelectorAll("[data-deck-line]")],h=i.indexOf(document.activeElement);if(h<0)return;t.preventDefault();const u=t.key==="Home"?0:t.key==="End"?i.length-1:Math.max(0,Math.min(i.length-1,h+(t.key==="ArrowDown"?1:-1)));i[u]?.focus()}const Fe=t=>!t||t==="unassigned"?null:r.projects.find(a=>a.id===t)?.name??t,Ye=l(()=>Pa(r.projects,Ot.names));function ot(t){const a=t.kind==="task"?t.task.projectId:t.card.projectId,i=Fe(a);return i?{name:i,tag:e(Ye).get(a)?.label??i}:null}const st=l(()=>Mt.taskId);function it(t){Ka.pending={kind:"task",id:t.id,title:t.shortTitle,project:Fe(t.projectId),url:null},r.onChat?.()}const re=l(()=>e(H)?.state==="ok"?e(H).windows.find(t=>/week/i.test(t.label))??e(H).windows[0]??null:null),lt=l(()=>r.tasks.filter(t=>Q(t.projectId))),Z=l(()=>Da(e(lt))),Ke=l(()=>Ba(r.projects.filter(t=>Q(t.id)&&t.id!=="unassigned"),r.tasks)),He={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var qe=Nr(),De=s(qe),dt=y(De,!0),Te=n(De,2),me=n(s(Te),2);{var ut=t=>{var a=xr(),i=n(s(a),2);pe(i,17,()=>e(H).windows.slice(0,2),h=>h.id,(h,u)=>{var E=hr(),M=s(E),T=n(M),W=y(T);Me(),o(E),b(()=>{P(E,1,`whitespace-nowrap tabular-nums ${e(u).atRisk?"font-medium text-warning":e(u).id===e(re)?.id?"text-gold":""}`),f(M,`${e(u).label??""} `),P(T,1,`font-semibold ${e(u).id===e(re)?.id?"":"text-foreground"}`),f(W,`${e(u).percentLeft??""}%`)}),d(h,E)}),o(a),b(h=>m(a,"title",`Claude headroom: ${h??""}${F()?.atRisk?`. ${F().atRisk.label} may run out before it resets.`:""}`),[()=>e(H).windows.slice(0,2).map(h=>`${h.label} ${h.percentLeft}% left`).join(", ")]),d(t,a)},ze=t=>{var a=_r(),i=s(a);La(i,{class:"size-3.5","aria-hidden":"true"}),Me(),o(a),d(t,a)};x(me,t=>{e(H)?.state==="ok"&&e(H).windows.length?t(ut):e(H)?.state==="connect"&&t(ze,1)})}var ct=n(me,2);{var g=t=>{var a=br(),i=s(a);Ua(i,{class:"size-4"}),o(a),b(()=>P(a,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(H)?.state==="ok"||e(H)?.state==="connect"?"":"ml-auto"}`)),ne("click",a,function(...h){r.onClose?.apply(this,h)}),d(t,a)};x(ct,t=>{r.onClose&&t(g)})}o(Te);var C=n(Te,2),D=s(C),Re=s(D);{let t=l(()=>e(re)?.percentLeft??null);Dt(Re,{get value(){return e(t)},tone:"gold"})}var wt=n(Re,2),yt=s(wt),Wt=y(yt,!0),Gt=n(yt,2),Ft=y(Gt,!0);o(wt),o(D);var Qe=n(D,2),Ct=s(Qe);Dt(Ct,{get value(){return e(Z).percent},tone:"teal"});var jt=n(Ct,2),Yt=n(s(jt),2),Kt=y(Yt,!0);o(jt),o(Qe),o(C);var St=n(C,2);{var Qt=t=>{var a=wr(),i=s(a);pe(i,21,()=>[{id:$e,label:"All",short:"All",mate:null},...e(se)],h=>h.id,(h,u)=>{const E=l(()=>at(e(u).id)),M=l(()=>rt(e(u).id));var T=kr(),W=s(T);{var fe=j=>{Ht(j,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},ke=j=>{qt(j,{class:"size-3 shrink-0","aria-hidden":"true"})};x(W,j=>{e(u).id!==Ze&&e(u).id!==$e?j(fe):e(u).id===Ze&&j(ke,1)})}var ge=n(W,2),w=y(ge,!0),_=n(ge,2),S=y(_),p=n(_,2),I=y(p,!0);o(T),b((j,O)=>{m(T,"id",j),m(T,"aria-checked",e(K)===e(u).id),m(T,"tabindex",e(K)===e(u).id?0:-1),P(T,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(K)===e(u).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),m(T,"title",`${e(u).label??""}${O??""}: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),f(w,e(u).short),f(S,`: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),P(p,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(M)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),f(I,e(M)||e(E))},[()=>Ne(e(u).id),()=>e(u).mate?.host?` ${ht(e(u).mate.host)}`:""]),ne("click",T,()=>Ie(e(u).id)),d(h,T)}),o(i),o(a),ne("keydown",i,tt),d(t,a)};x(St,t=>{e(se).length>1&&t(Qt)})}var Ve=n(St,2);pe(Ve,21,()=>e(k),t=>t.id,(t,a)=>{var i=Cr(),h=s(i,!0),u=n(h);{var E=M=>{var T=yr(),W=y(T,!0);b(()=>{P(T,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(a).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),f(W,e(a).count)}),d(M,T)};x(u,M=>{e(a).count&&M(E)})}o(i),b(()=>{m(i,"id",`rail-tab-${e(a).id??""}`),m(i,"aria-selected",e(A)===e(a).id),m(i,"tabindex",e(A)===e(a).id?0:-1),P(i,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(A)===e(a).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),f(h,e(a).label)}),ne("click",i,()=>ve(e(a).id)),d(t,i)}),o(Ve);var vt=n(Ve,2),It=s(vt);{var Vt=t=>{var a=jr(),i=s(a);Aa(i,{get entry(){return e(ie)},get now(){return r.now}}),o(a),d(t,a)},Xt=t=>{var a=Hr(),i=he(a);{var h=w=>{var _=Sr(),S=s(_);{let I=l(()=>e(J)?"rotate-90":"");Wa(S,{get class(){return`size-3.5 transition-transform ${e(I)??""}`},"aria-hidden":"true"})}var p=n(S);o(_),b(()=>{m(_,"aria-expanded",e(J)),f(p,`Up next · ${e(Ue)??""}`)}),ne("click",_,()=>Ee(J,!e(J))),d(w,_)};x(i,w=>{e(A)==="under"&&e(Ue)&&w(h)})}var u=n(i,2),E=s(u);{var M=w=>{var _=Ir(),S=s(_);{let p=l(()=>({projectId:U()}));Na(S,{get filter(){return e(p)},compact:!0})}o(_),d(w,_)};x(E,w=>{e(A)==="needs"&&e(Ae)&&w(M)})}var T=n(E,2);pe(T,17,()=>e(nt),w=>w.crew.id,(w,_)=>{var S=Rr(),p=s(S);{var I=L=>{ee(L,()=>e(_).crew,()=>e(_).lines.length)};x(p,L=>{e(se).length>1&&L(I)})}var j=n(p,2);{var O=L=>{var q=Tr();pe(q,21,()=>e(_).lines,G=>G.key,(G,N)=>{var $=Ar(),we=s($);{let Je=l(()=>ae.has(e(N).key)),ft=l(()=>ot(e(N))),gt=l(()=>e(N).kind==="task"&&(e(N).task.status==="queued"||e(N).task.status==="landed")),pt=l(()=>e(N).kind==="task"&&e(N).task.id===e(st));dr(we,{get line(){return e(N)},get now(){return r.now},get open(){return e(Je)},get project(){return e(ft)},get dim(){return e(gt)},get selected(){return e(pt)},onToggle:()=>Le(e(N).key),onOpen:aa=>Mt.openTask(aa.id),onChat:it})}o($),zt(1,$,()=>ja),zt(2,$,()=>Sa,()=>({word:e(N).kind==="decision"?_t.stampFor(e(N).card.id):null})),d(G,$)}),o(q),d(L,q)},B=L=>{var q=zr(),G=y(q,!0);b(()=>f(G,He[e(A)])),d(L,q)};x(j,L=>{e(_).lines.length?L(O):e(A)==="needs"&&e(Ae)||L(B,1)})}o(S),b(()=>{m(S,"aria-label",e(_).crew.label),m(S,"data-crew-group",e(_).crew.id)}),d(w,S)},w=>{var _=sa(),S=he(_);{var p=I=>{var j=Er(),O=s(j);{var B=q=>{Ga(q,{class:"size-4 text-success","aria-hidden":"true"})};x(O,q=>{e(A)==="needs"&&q(B)})}var L=n(O,1,!0);o(j),b(()=>f(L,He[e(A)])),d(I,j)};x(S,I=>{e(A)==="needs"&&e(Ae)||I(p)})}d(w,_)}),o(u);var W=n(u,2);{var fe=w=>{var _=Or(),S=he(_),p=s(S),I=s(p);Fa(I,{class:"size-3.5","aria-hidden":"true"}),Me(),o(p),Me(4),o(S);var j=n(S,2);pe(j,21,()=>e(V).slice(0,3),O=>O.id,(O,B)=>{var L=Mr(),q=s(L),G=s(q),N=y(G,!0),$=n(G,2),we=y($,!0),Je=n($,2),ft=y(Je,!0);o(q),o(L),b((gt,pt)=>{m(q,"href",`/decisions#${e(B).id??""}`),m(q,"title",e(B).question),f(N,e(B).taskTitle),f(we,e(B).verdict),m(Je,"title",gt),f(ft,pt)},[()=>kt(e(B).decidedAt,r.now),()=>Ut(e(B).decidedAt,r.now)]),d(O,L)}),o(j),d(w,_)};x(W,w=>{e(A)==="needs"&&e(V).length&&e(We)&&w(fe)})}var ke=n(W,2);{var ge=w=>{var _=Lr(),S=s(_),p=s(S),I=y(p,!0),j=n(p);o(S);var O=n(S,2),B=s(O);Ia(B,{get seconds(){return e(Y)},label:"Today"}),o(O);var L=n(O,2),q=y(L);o(_),b((G,N,$,we)=>{f(I,G),f(j,` of crew time today on ${e(ue)??""}
2
2
  ${e(ue)===1?"task":"tasks"}`),f(q,`${N??""}% building · ${$??""}% automated review · ${we??""}%
3
3
  waiting on you`)},[()=>pa(e(de)),()=>xe("build"),()=>xe("review"),()=>xe("captain")]),d(w,_)};x(ke,w=>{e(A)==="landed"&&e(de)>0&&e(We)&&w(ge)})}ne("keydown",u,Ge),d(t,a)};x(It,t=>{e(ie)?t(Vt):t(Xt,-1)})}var mt=n(It,2),Xe=s(mt),At=s(Xe),Jt=n(At);Lt(Jt,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),o(Xe);var Zt=n(Xe,2);{var $t=t=>{var a=qr(),i=n(s(a));Lt(i,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),o(a),d(t,a)};x(Zt,t=>{e(oe).length&&t($t)})}o(mt);var ea=n(mt,2);{var ta=t=>{var a=Br(),i=n(s(a),4);pe(i,21,()=>e(Ke),h=>h.id,(h,u)=>{var E=Dr(),M=s(E),T=s(M),W=s(T),fe=y(W,!0),ke=n(W,2),ge=y(ke,!0);o(T);var w=n(T,2),_=s(w);let S;o(w),o(M),o(E),b((p,I)=>{m(M,"href",`/projects/${p??""}`),m(M,"aria-label",`${e(u).name??""}: ${e(u).word??""}, ${e(u).landed??""}% of its work landed`),f(fe,e(u).name),f(ge,e(u).word),m(w,"data-tone",e(u).tone),S=la(_,"",S,{width:I})},[()=>encodeURIComponent(e(u).id),()=>`${Math.max(e(u).landed,3)}%`]),d(h,E)}),o(i),o(a),d(t,a)};x(ea,t=>{e(Ke).length&&t(ta)})}o(vt),o(qe),b((t,a,i)=>{f(dt,t),m(D,"aria-label",e(re)?`Claude headroom: ${e(re).label}, ${e(re).percentLeft}% left`:"Claude headroom: not read yet"),f(Wt,e(re)?.label??"Headroom"),f(Ft,e(re)?"Of Claude’s allowance left until it resets":e(H)?.state==="connect"?"Connect your Claude usage to see it":"Claude’s limits are not read yet"),m(Qe,"href",a),m(Qe,"aria-label",`Checks: ${e(Z).percent??""}% of the work in play has nothing failing${e(Z).failing?`, ${e(Z).failing} failing`:""}`),f(Kt,e(Z).failing?`${e(Z).failing} of ${e(Z).inPlay} in play failing`:e(Z).inPlay?`Nothing failing across ${e(Z).inPlay} in play`:"Nothing in play"),m(vt,"aria-labelledby",`rail-tab-${e(A)??""}`),m(Xe,"href",i),f(At,`${U()?"Open the project’s page":"Open every project in Harbour"} `)},[()=>ca(e(z).h),()=>U()?`/projects/${encodeURIComponent(U())}`:"/harbour",()=>U()?`/projects/${encodeURIComponent(U())}`:"/harbour"]),ne("keydown",Ve,le),d(Ce,qe),Nt()}Pt(["click","keydown"]);const Pr=6e4;class Ur{#e=et(null);get value(){return e(this.#e)}set value(r){Ee(this.#e,r,!0)}seed(r){r&&(this.value=r)}connect(r=document){return Ya({load:async()=>{const ee=await fetch("/api/insights");return ee.ok?await ee.json():null},intervalMs:Pr,immediate:!1,onresult:ee=>{ee&&(this.value=ee)},onerror:()=>{},doc:r})}}const En=new Ur;export{Rn as R,Ka as c,En as r};
@@ -1,3 +1,3 @@
1
- import"./DsnmJJEf.js";import{aC as Ve,p as be,x as Z,f as i,a as r,b as xe,i as e,h as se,y as qe,r as oe,j as y,c as S,d as G,e as Ee,s as d,n as L,m as T,k as a,t as de,o as Ae}from"./Jk-ASPRO.js";import{d as Je,s as ue,e as Ke,a as Me}from"./DTApYZoW.js";import{i as H}from"./BEVJas-l.js";import{c as h}from"./Cq7OFmxz.js";import{l as Qe,r as Be,s as Se,c as ze}from"./DNP6oCAK.js";import{b as Le}from"./CNxxt--f.js";import{p as O,r as We,s as fe}from"./DQWg__9S.js";import{p as Xe}from"./xTuQT2it.js";import{D as Te}from"./DqyvT7BR.js";import{D as Ye,a as et,b as tt,c as rt,d as he,e as at}from"./Br5gy4Yk.js";import{s as Oe}from"./Wu0Biojm.js";import{c as st,a as ot,b as $e,m as lt}from"./1rMfpM_v.js";import{B as Q}from"./VrUPyiEH.js";import{C as nt,e as it,b as dt,i as ut}from"./DlAlt18J.js";import{P as ft,i as pt,f as mt,m as vt}from"./BV08B4f2.js";import{P as ct}from"./CJxikGC0.js";import{L as gt}from"./D73wi9-q.js";import{T as _t}from"./BmXrroyA.js";var ht=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),$t=S("<button><!></button>");function bt(X,o){const N=Ve();be(o,!0);let U=O(o,"id",19,()=>st(N)),V=O(o,"ref",15,null),R=O(o,"disabled",3,!1),t=We(o,ht);const $=ot.create({id:$e(()=>U()),ref:$e(()=>V(),c=>V(c)),disabled:$e(()=>!!R())}),A=y(()=>lt(t,$.props));var u=Z(),f=i(u);{var W=c=>{var k=Z(),q=i(k);Oe(q,()=>o.child,()=>({props:e(A)})),r(c,k)},le=c=>{var k=$t();Qe(k,()=>({...e(A)}));var q=se(k);Oe(q,()=>o.children??qe),oe(k),r(c,k)};H(f,c=>{o.child?c(W):c(le,-1)})}r(X,u),xe()}var xt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function wt(X,o){be(o,!0);let N=O(o,"ref",15,null),U=O(o,"type",3,"button"),V=We(o,xt);var R=Z(),t=i(R);h(t,()=>bt,($,A)=>{A($,fe({"data-slot":"dialog-trigger",get type(){return U()}},()=>V,{get ref(){return N()},set ref(u){N(u)}}))}),r(X,R),xe()}var yt=S("<!> ",1),ae=S("<!> <!>",1),kt=S('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),Pt=S("<!>Fetching…",1),Dt=S('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),It=S('<p class="text-xs text-danger" role="alert"> </p>'),Re=S("<!> <!> <!>",1),Ct=S("<p> </p>");function Kt(X,o){be(o,!0);let N=O(o,"busy",19,()=>[]),U=O(o,"suggested",3,null),V=O(o,"label",3,"Install plugin"),R=G(!1),t=G("form"),$=G(""),A=G(""),u=G(null),f=G(null),W=G(Ee({}));const le=y(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e($).trim())),c=y(()=>e(f)?vt(e(f),e(W)):null),k=()=>Xe.data.sessionToken,q="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function we(){a(t,"form"),a(u,null),a(f,null)}async function je(Y){if(Y.preventDefault(),!e(le)||e(t)==="looking")return;a(t,"looking"),a(u,null);const B=await it({repo:e($).trim(),ref:e(A).trim()||null},k());if(!B.ok){a(u,B.error,!0),a(t,"form");return}a(f,B.value,!0),a(W,pt(B.value),!0),a(t,"review")}async function Fe(){if(!e(f)||e(c))return;a(t,"saving"),a(u,null);const Y=dt(),B=await ut(e(f),mt(e(W)),k());if(!B.ok){a(u,B.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var ye=Z(),Ge=i(ye);h(Ge,()=>at,(Y,B)=>{B(Y,{onOpenChange:E=>{E&&(e(t)==="done"||e(t)==="slow")&&(a($,""),a(A,""),we()),E&&e(t)==="form"&&U()&&!e($)&&a($,U())},get open(){return e(R)},set open(E){a(R,E,!0)},children:(E,At)=>{var ke=ae(),Pe=i(ke);{const pe=(ee,te)=>{Q(ee,fe(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Ie,me)=>{var re=yt(),ne=i(re);ct(ne,{});var ve=d(ne,1,!0);de(()=>ue(ve,V())),r(Ie,re)},$$slots:{default:!0}}))};h(Pe,()=>wt,(ee,te)=>{te(ee,{child:pe,$$slots:{child:!0}})})}var He=d(Pe,2);{let pe=y(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");h(He,()=>Ye,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(pe)},children:(De,Ie)=>{var me=ae(),re=i(me);h(re,()=>et,(b,P)=>{P(b,{children:(g,D)=>{var x=ae(),I=i(x);h(I,()=>tt,(l,p)=>{p(l,{class:"font-display text-lg",children:(j,n)=>{L();var m=T("Install a plugin from GitHub");r(j,m)},$$slots:{default:!0}})});var s=d(I,2);h(s,()=>rt,(l,p)=>{p(l,{children:(j,n)=>{var m=Z(),C=i(m);{var _=v=>{var z=T("Check what it is and where it comes from before you install it.");r(v,z)},w=v=>{var z=T(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
1
+ import"./DsnmJJEf.js";import{aC as Ve,p as be,x as Z,f as i,a as r,b as xe,i as e,h as se,y as qe,r as oe,j as y,c as S,d as G,e as Ee,s as d,n as L,m as T,k as a,t as de,o as Ae}from"./Jk-ASPRO.js";import{d as Je,s as ue,e as Ke,a as Me}from"./DTApYZoW.js";import{i as H}from"./BEVJas-l.js";import{c as h}from"./Cq7OFmxz.js";import{l as Qe,r as Be,s as Se,c as ze}from"./DNP6oCAK.js";import{b as Le}from"./CNxxt--f.js";import{p as O,r as We,s as fe}from"./DQWg__9S.js";import{p as Xe}from"./_sdkObeO.js";import{D as Te}from"./DqyvT7BR.js";import{D as Ye,a as et,b as tt,c as rt,d as he,e as at}from"./Br5gy4Yk.js";import{s as Oe}from"./Wu0Biojm.js";import{c as st,a as ot,b as $e,m as lt}from"./1rMfpM_v.js";import{B as Q}from"./VrUPyiEH.js";import{C as nt,e as it,b as dt,i as ut}from"./BBesepuR.js";import{P as ft,i as pt,f as mt,m as vt}from"./DZhEGM3P.js";import{P as ct}from"./CJxikGC0.js";import{L as gt}from"./D73wi9-q.js";import{T as _t}from"./BmXrroyA.js";var ht=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),$t=S("<button><!></button>");function bt(X,o){const N=Ve();be(o,!0);let U=O(o,"id",19,()=>st(N)),V=O(o,"ref",15,null),R=O(o,"disabled",3,!1),t=We(o,ht);const $=ot.create({id:$e(()=>U()),ref:$e(()=>V(),c=>V(c)),disabled:$e(()=>!!R())}),A=y(()=>lt(t,$.props));var u=Z(),f=i(u);{var W=c=>{var k=Z(),q=i(k);Oe(q,()=>o.child,()=>({props:e(A)})),r(c,k)},le=c=>{var k=$t();Qe(k,()=>({...e(A)}));var q=se(k);Oe(q,()=>o.children??qe),oe(k),r(c,k)};H(f,c=>{o.child?c(W):c(le,-1)})}r(X,u),xe()}var xt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function wt(X,o){be(o,!0);let N=O(o,"ref",15,null),U=O(o,"type",3,"button"),V=We(o,xt);var R=Z(),t=i(R);h(t,()=>bt,($,A)=>{A($,fe({"data-slot":"dialog-trigger",get type(){return U()}},()=>V,{get ref(){return N()},set ref(u){N(u)}}))}),r(X,R),xe()}var yt=S("<!> ",1),ae=S("<!> <!>",1),kt=S('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),Pt=S("<!>Fetching…",1),Dt=S('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),It=S('<p class="text-xs text-danger" role="alert"> </p>'),Re=S("<!> <!> <!>",1),Ct=S("<p> </p>");function Kt(X,o){be(o,!0);let N=O(o,"busy",19,()=>[]),U=O(o,"suggested",3,null),V=O(o,"label",3,"Install plugin"),R=G(!1),t=G("form"),$=G(""),A=G(""),u=G(null),f=G(null),W=G(Ee({}));const le=y(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e($).trim())),c=y(()=>e(f)?vt(e(f),e(W)):null),k=()=>Xe.data.sessionToken,q="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function we(){a(t,"form"),a(u,null),a(f,null)}async function je(Y){if(Y.preventDefault(),!e(le)||e(t)==="looking")return;a(t,"looking"),a(u,null);const B=await it({repo:e($).trim(),ref:e(A).trim()||null},k());if(!B.ok){a(u,B.error,!0),a(t,"form");return}a(f,B.value,!0),a(W,pt(B.value),!0),a(t,"review")}async function Fe(){if(!e(f)||e(c))return;a(t,"saving"),a(u,null);const Y=dt(),B=await ut(e(f),mt(e(W)),k());if(!B.ok){a(u,B.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var ye=Z(),Ge=i(ye);h(Ge,()=>at,(Y,B)=>{B(Y,{onOpenChange:E=>{E&&(e(t)==="done"||e(t)==="slow")&&(a($,""),a(A,""),we()),E&&e(t)==="form"&&U()&&!e($)&&a($,U())},get open(){return e(R)},set open(E){a(R,E,!0)},children:(E,At)=>{var ke=ae(),Pe=i(ke);{const pe=(ee,te)=>{Q(ee,fe(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Ie,me)=>{var re=yt(),ne=i(re);ct(ne,{});var ve=d(ne,1,!0);de(()=>ue(ve,V())),r(Ie,re)},$$slots:{default:!0}}))};h(Pe,()=>wt,(ee,te)=>{te(ee,{child:pe,$$slots:{child:!0}})})}var He=d(Pe,2);{let pe=y(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");h(He,()=>Ye,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(pe)},children:(De,Ie)=>{var me=ae(),re=i(me);h(re,()=>et,(b,P)=>{P(b,{children:(g,D)=>{var x=ae(),I=i(x);h(I,()=>tt,(l,p)=>{p(l,{class:"font-display text-lg",children:(j,n)=>{L();var m=T("Install a plugin from GitHub");r(j,m)},$$slots:{default:!0}})});var s=d(I,2);h(s,()=>rt,(l,p)=>{p(l,{children:(j,n)=>{var m=Z(),C=i(m);{var _=v=>{var z=T("Check what it is and where it comes from before you install it.");r(v,z)},w=v=>{var z=T(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
2
2
  Nothing runs until you install it.`);r(v,z)};H(C,v=>{e(t)==="review"?v(_):v(w,-1)})}r(j,m)},$$slots:{default:!0}})}),r(g,x)},$$slots:{default:!0}})});var ne=d(re,2);{var ve=b=>{var P=Dt(),g=i(P),D=se(g),x=d(se(D),2);Be(x),Se(x,1,ze(q)),L(2),oe(D);var I=d(D,2),s=d(se(I),2);Be(s),Se(s,1,ze(q)),L(2),oe(I);var l=d(I,2);{var p=n=>{var m=kt(),C=se(m);_t(C,{class:"mt-0.5 size-3.5 shrink-0"});var _=d(C,1,!0);oe(m),de(()=>ue(_,e(u))),r(n,m)};H(l,n=>{e(u)&&n(p)})}oe(g);var j=d(g,2);h(j,()=>he,(n,m)=>{m(n,{children:(C,_)=>{var w=ae(),v=i(w);{const F=(J,K)=>{Q(J,fe(()=>(K?.()).props,{variant:"ghost",children:(ge,Ce)=>{L();var _e=T("Cancel");r(ge,_e)},$$slots:{default:!0}}))};h(v,()=>Te,(J,K)=>{K(J,{child:F,$$slots:{child:!0}})})}var z=d(v,2);{let F=y(()=>!e(le)||e(t)==="looking");Q(z,{type:"submit",form:"install-plugin-form",get disabled(){return e(F)},children:(J,K)=>{var ce=Z(),ge=i(ce);{var Ce=M=>{var ie=Pt(),Ue=i(ie);gt(Ue,{class:"animate-spin"}),L(),r(M,ie)},_e=M=>{var ie=T("Look it up");r(M,ie)};H(ge,M=>{e(t)==="looking"?M(Ce):M(_e,-1)})}r(J,ce)},$$slots:{default:!0}})}r(C,w)},$$slots:{default:!0}})}),Ke("submit",g,je),Me("input",x,()=>a(u,null)),Le(x,()=>e($),n=>a($,n)),Le(s,()=>e(A),n=>a(A,n)),r(b,P)},Ze=b=>{var P=Re(),g=i(P);ft(g,{get preview(){return e(f)},get busy(){return N()},get answers(){return e(W)},set answers(s){a(W,s,!0)}});var D=d(g,2);{var x=s=>{var l=It(),p=Ae(l,!0);de(()=>ue(p,e(u))),r(s,l)};H(D,s=>{e(u)&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,j)=>{var n=ae(),m=i(n);Q(m,{variant:"ghost",onclick:we,children:(_,w)=>{L();var v=T("Back");r(_,v)},$$slots:{default:!0}});var C=d(m,2);{let _=y(()=>!!e(c)),w=y(()=>e(c)?`${e(c).title} is needed`:void 0);Q(C,{onclick:Fe,get disabled(){return e(_)},get title(){return e(w)},children:(v,z)=>{L();var F=T("Install and restart");r(v,F)},$$slots:{default:!0}})}r(p,n)},$$slots:{default:!0}})}),r(b,P)},Ne=b=>{var P=Re(),g=i(P);{let s=y(()=>e(f).id),l=y(()=>e(f).commit.slice(0,7)),p=y(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");nt(g,{get label(){return`Install ${e(s)??""} at ${e(l)??""}`},get phase(){return e(p)}})}var D=d(g,2);{var x=s=>{var l=Ct(),p=Ae(l);de(()=>ue(p,`${e(f).name??""}
3
3
  ${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(s,l)};H(D,s=>{e(t)==="done"&&s(x)})}var I=d(D,2);h(I,()=>he,(s,l)=>{l(s,{children:(p,j)=>{var n=Z(),m=i(n);{const C=(_,w)=>{let v=()=>(w?.()).props;{let z=y(()=>e(t)==="saving"||e(t)==="restarting");Q(_,fe(v,{get disabled(){return e(z)},children:(F,J)=>{L();var K=T("Done");r(F,K)},$$slots:{default:!0}}))}};h(m,()=>Te,(_,w)=>{w(_,{child:C,$$slots:{child:!0}})})}r(p,n)},$$slots:{default:!0}})}),r(b,P)};H(ne,b=>{e(t)==="form"||e(t)==="looking"?b(ve):e(t)==="review"&&e(f)?b(Ze,1):e(f)&&b(Ne,2)})}r(De,me)},$$slots:{default:!0}})})}r(E,ke)},$$slots:{default:!0}})}),r(X,ye),xe()}Je(["input"]);export{Kt as I};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{p as v,a as i,b as h,c as p,o as _,t as d,i as r,r as g,j as b}from"./Jk-ASPRO.js";import{s as x}from"./DTApYZoW.js";import{e as L,a as l}from"./DNP6oCAK.js";import{p as n}from"./xTuQT2it.js";import{H as O,L as o}from"./BGZONLpF.js";var H=p('<a class="nav-tab shrink-0"> </a>'),k=p('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function y(f,m){v(m,!0);const c=b(()=>n.data.features?.soundings?[...o.slice(0,-1),O,...o.slice(-1)]:o);var e=k();L(e,21,()=>r(c),s=>s.href,(s,t)=>{var a=H(),u=_(a,!0);d(()=>{l(a,"href",r(t).href),l(a,"aria-current",n.url.pathname===r(t).href?"page":void 0),x(u,r(t).label)}),i(s,a)}),g(e),i(f,e),h()}export{y as I};
1
+ import"./DsnmJJEf.js";import{p as v,a as i,b as h,c as p,o as _,t as d,i as r,r as g,j as b}from"./Jk-ASPRO.js";import{s as x}from"./DTApYZoW.js";import{e as L,a as l}from"./DNP6oCAK.js";import{p as n}from"./_sdkObeO.js";import{H as O,L as o}from"./BGZONLpF.js";var H=p('<a class="nav-tab shrink-0"> </a>'),k=p('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function y(f,m){v(m,!0);const c=b(()=>n.data.features?.soundings?[...o.slice(0,-1),O,...o.slice(-1)]:o);var e=k();L(e,21,()=>r(c),s=>s.href,(s,t)=>{var a=H(),u=_(a,!0);d(()=>{l(a,"href",r(t).href),l(a,"aria-current",n.url.pathname===r(t).href?"page":void 0),x(u,r(t).label)}),i(s,a)}),g(e),i(f,e),h()}export{y as I};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{p as L,f as M,h as k,n as N,r as w,s as c,i as e,a as b,b as P,d as E,k as x,c as y,j as C,o as _,t as z}from"./Jk-ASPRO.js";import{d as O,a as T,s as h}from"./DTApYZoW.js";import{i as I}from"./BEVJas-l.js";import{P as j}from"./BqTq4oc1.js";import{M as q}from"./V9uGi6jc.js";import{s as B,a as D}from"./DNP6oCAK.js";import{e as F,C as R}from"./Ds4LY5_S.js";import{C as S}from"./teNj0U11.js";var W=y('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function $(m,t){L(t,!0);let a=E(null),r=E(!1);function u(s){const n=s.currentTarget,i=n.closest("article"),g=i?.querySelector("[data-card-picture]");x(a,(g??i??n).getBoundingClientRect(),!0),x(r,!0)}var l=W(),d=M(l),o=k(d),f=k(o);q(f,{class:"size-3.5","aria-hidden":"true"}),N(),w(o),w(d);var v=c(d,2);{var p=s=>{{let n=C(()=>t.task.preview?.url??""),i=C(()=>t.task.status!=="landed");j(s,{get taskId(){return t.task.id},get title(){return t.task.shortTitle},get url(){return e(n)},get talk(){return e(i)},get from(){return e(a)},onclose:()=>x(r,!1)})}};I(v,s=>{e(r)&&t.task.preview&&s(p)})}T("click",o,u),b(m,l),P()}O(["click"]);var A=y('<span class="shrink-0 text-muted-foreground"> </span>'),G=y('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function tt(m,t){L(t,!0);const a=C(()=>F(t.eta));var r=G(),u=k(r);S(u,{class:"size-3.5 shrink-0","aria-hidden":"true"});var l=c(u,2),d=_(l,!0),o=c(l,2);{var f=s=>{var n=A(),i=_(n);z(g=>h(i,`· ${g??""}`),[()=>R[t.eta.confidence].toLowerCase()]),b(s,n)};I(o,s=>{e(a).tone==="normal"&&t.eta.confidence!=="none"&&s(f)})}var v=c(o,2),p=_(v,!0);w(r),z(()=>{B(r,1,`flex min-w-0 items-center gap-1.5 text-xs ${e(a).tone==="warning"?"text-warning":e(a).tone==="muted"?"text-muted-foreground":"text-foreground"}`),D(r,"title",e(a).note),h(d,e(a).text),h(p,e(a).note)}),b(m,r),P()}export{$ as C,tt as E};
1
+ import"./DsnmJJEf.js";import{p as L,f as M,h as k,n as N,r as w,s as c,i as e,a as b,b as P,d as E,k as x,c as y,j as C,o as _,t as z}from"./Jk-ASPRO.js";import{d as O,a as T,s as h}from"./DTApYZoW.js";import{i as I}from"./BEVJas-l.js";import{P as j}from"./CqTNazs8.js";import{M as q}from"./V9uGi6jc.js";import{s as B,a as D}from"./DNP6oCAK.js";import{e as F,C as R}from"./Ds4LY5_S.js";import{C as S}from"./teNj0U11.js";var W=y('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function $(m,t){L(t,!0);let a=E(null),r=E(!1);function u(s){const n=s.currentTarget,i=n.closest("article"),g=i?.querySelector("[data-card-picture]");x(a,(g??i??n).getBoundingClientRect(),!0),x(r,!0)}var l=W(),d=M(l),o=k(d),f=k(o);q(f,{class:"size-3.5","aria-hidden":"true"}),N(),w(o),w(d);var v=c(d,2);{var p=s=>{{let n=C(()=>t.task.preview?.url??""),i=C(()=>t.task.status!=="landed");j(s,{get taskId(){return t.task.id},get title(){return t.task.shortTitle},get url(){return e(n)},get talk(){return e(i)},get from(){return e(a)},onclose:()=>x(r,!1)})}};I(v,s=>{e(r)&&t.task.preview&&s(p)})}T("click",o,u),b(m,l),P()}O(["click"]);var A=y('<span class="shrink-0 text-muted-foreground"> </span>'),G=y('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function tt(m,t){L(t,!0);const a=C(()=>F(t.eta));var r=G(),u=k(r);S(u,{class:"size-3.5 shrink-0","aria-hidden":"true"});var l=c(u,2),d=_(l,!0),o=c(l,2);{var f=s=>{var n=A(),i=_(n);z(g=>h(i,`· ${g??""}`),[()=>R[t.eta.confidence].toLowerCase()]),b(s,n)};I(o,s=>{e(a).tone==="normal"&&t.eta.confidence!=="none"&&s(f)})}var v=c(o,2),p=_(v,!0);w(r),z(()=>{B(r,1,`flex min-w-0 items-center gap-1.5 text-xs ${e(a).tone==="warning"?"text-warning":e(a).tone==="muted"?"text-muted-foreground":"text-foreground"}`),D(r,"title",e(a).note),h(d,e(a).text),h(p,e(a).note)}),b(m,r),P()}export{$ as C,tt as E};
@@ -1 +1 @@
1
- import{d as r,i as n,k as i,e as f}from"./Jk-ASPRO.js";import{p as d}from"./xTuQT2it.js";import{w as g}from"./RYvdmj4W.js";const m="wheelhouse-live",w="wheelhouse-live-leader",y=2*6e4;class v{#e=r(null);get fleet(){return n(this.#e)}set fleet(e){i(this.#e,e)}#t=r(null);get eventsPaused(){return n(this.#t)}set eventsPaused(e){i(this.#t,e,!0)}#s=r(null);get health(){return n(this.#s)}set health(e){i(this.#s,e,!0)}#a=r(null);get messages(){return n(this.#a)}set messages(e){i(this.#a,e)}#r=r(null);get crew(){return n(this.#r)}set crew(e){i(this.#r,e,!0)}#n=r("connecting");get connection(){return n(this.#n)}set connection(e){i(this.#n,e,!0)}#i=r(f(Date.now()));get now(){return n(this.#i)}set now(e){i(this.#i,e,!0)}#l=r(0);get revision(){return n(this.#l)}set revision(e){i(this.#l,e,!0)}#h=r(!1);get leader(){return n(this.#h)}set leader(e){i(this.#h,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),l=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),l(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(m);this.channel=e,e.onmessage=h=>{const s=h.data;s.t==="hello"?this.leader&&this.replay():s.t==="connection"?this.leader||(this.connection=s.state):this.leader||this.apply(s.e)};const a=new AbortController;let l=()=>{};return navigator.locks.request(w,{signal:a.signal},()=>{const h=this.lead();return new Promise(s=>{l=()=>{h(),s()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),l(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=h=>{this.connection=h,this.post({t:"connection",state:h})},l=g("/api/events",h=>{const s=(t,o)=>h.addEventListener(t,p=>{const c=o(JSON.parse(p.data));this.remember(c),this.apply(c),this.post({t:"event",e:c}),c.type==="fleet"&&e("open")});s("server",t=>({type:"server",data:t})),s("events-status",t=>({type:"events-status",data:t})),s("fleet",t=>({type:"fleet",data:t})),s("health",t=>({type:"health",data:t})),s("messages",t=>({type:"messages",data:t})),s("crew",t=>({type:"crew",data:t})),s("alert",t=>({type:"alert",data:t,fresh:this.claim(t)})),s("settled",t=>({type:"settled",data:t})),s("alerts",t=>({type:"alerts",data:t.map(o=>{const p=this.claim(o);return{alert:o,fresh:p&&Date.now()-Date.parse(o.at)<=y}})}))},e);return()=>{l(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),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(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;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 a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const l of this.restartListeners)l();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const u=new v;function C(){return u.fleet??d.data.fleet??null}function I(){return u.health??d.data.health??null}function P(){return u.messages??d.data.messages??null}function S(){return u.crew??d.data.crew??null}export{S as a,I as b,C as c,P as d,u as l};
1
+ import{d as r,i as n,k as i,e as f}from"./Jk-ASPRO.js";import{p as d}from"./_sdkObeO.js";import{w as g}from"./RYvdmj4W.js";const m="wheelhouse-live",w="wheelhouse-live-leader",y=2*6e4;class v{#e=r(null);get fleet(){return n(this.#e)}set fleet(e){i(this.#e,e)}#t=r(null);get eventsPaused(){return n(this.#t)}set eventsPaused(e){i(this.#t,e,!0)}#s=r(null);get health(){return n(this.#s)}set health(e){i(this.#s,e,!0)}#a=r(null);get messages(){return n(this.#a)}set messages(e){i(this.#a,e)}#r=r(null);get crew(){return n(this.#r)}set crew(e){i(this.#r,e,!0)}#n=r("connecting");get connection(){return n(this.#n)}set connection(e){i(this.#n,e,!0)}#i=r(f(Date.now()));get now(){return n(this.#i)}set now(e){i(this.#i,e,!0)}#l=r(0);get revision(){return n(this.#l)}set revision(e){i(this.#l,e,!0)}#h=r(!1);get leader(){return n(this.#h)}set leader(e){i(this.#h,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),l=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),l(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(m);this.channel=e,e.onmessage=h=>{const s=h.data;s.t==="hello"?this.leader&&this.replay():s.t==="connection"?this.leader||(this.connection=s.state):this.leader||this.apply(s.e)};const a=new AbortController;let l=()=>{};return navigator.locks.request(w,{signal:a.signal},()=>{const h=this.lead();return new Promise(s=>{l=()=>{h(),s()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),l(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=h=>{this.connection=h,this.post({t:"connection",state:h})},l=g("/api/events",h=>{const s=(t,o)=>h.addEventListener(t,p=>{const c=o(JSON.parse(p.data));this.remember(c),this.apply(c),this.post({t:"event",e:c}),c.type==="fleet"&&e("open")});s("server",t=>({type:"server",data:t})),s("events-status",t=>({type:"events-status",data:t})),s("fleet",t=>({type:"fleet",data:t})),s("health",t=>({type:"health",data:t})),s("messages",t=>({type:"messages",data:t})),s("crew",t=>({type:"crew",data:t})),s("alert",t=>({type:"alert",data:t,fresh:this.claim(t)})),s("settled",t=>({type:"settled",data:t})),s("alerts",t=>({type:"alerts",data:t.map(o=>{const p=this.claim(o);return{alert:o,fresh:p&&Date.now()-Date.parse(o.at)<=y}})}))},e);return()=>{l(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),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(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;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 a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const l of this.restartListeners)l();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const u=new v;function C(){return u.fleet??d.data.fleet??null}function I(){return u.health??d.data.health??null}function P(){return u.messages??d.data.messages??null}function S(){return u.crew??d.data.crew??null}export{S as a,I as b,C as c,P as d,u as l};
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{s as n,r as a}from"./DQWg__9S.js";import{I as o}from"./DE0e4nJ8.js";import{p as l}from"./xTuQT2it.js";var p=new Set(["$$slots","$$events","$$legacy"]);function $(s,e){let t=a(e,p);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{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"}]]};o(s,n(()=>t,{get icon(){return r}}))}const c="{url}";function u(s,e,t){const r=e&&Object.hasOwn(s,e)?s[e]:null;return typeof r!="string"?{href:t.url,external:!0}:{href:r.replace(c,encodeURIComponent(t.url)),external:!1}}const x={review(s,e){const t=l.data?.pullRequestTabs??{};return u(t,s,e)}};export{$ as C,x as p};
1
+ import"./DsnmJJEf.js";import{s as n,r as a}from"./DQWg__9S.js";import{I as o}from"./DE0e4nJ8.js";import{p as l}from"./_sdkObeO.js";var p=new Set(["$$slots","$$events","$$legacy"]);function $(s,e){let t=a(e,p);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{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"}]]};o(s,n(()=>t,{get icon(){return r}}))}const c="{url}";function u(s,e,t){const r=e&&Object.hasOwn(s,e)?s[e]:null;return typeof r!="string"?{href:t.url,external:!0}:{href:r.replace(c,encodeURIComponent(t.url)),external:!1}}const x={review(s,e){const t=l.data?.pullRequestTabs??{};return u(t,s,e)}};export{$ as C,x as p};