@chrisjowen/wheelhouse 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (874) hide show
  1. package/README.md +1 -1
  2. package/build/client/_app/immutable/assets/0.9zV4DRBy.css +1 -0
  3. package/build/client/_app/immutable/assets/0.9zV4DRBy.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.9zV4DRBy.css.gz +0 -0
  5. package/build/client/_app/immutable/chunks/B3HgbOhB.js +1 -0
  6. package/build/client/_app/immutable/chunks/B3HgbOhB.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/B3HgbOhB.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/B3t206L9.js +1 -0
  9. package/build/client/_app/immutable/chunks/B3t206L9.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/B3t206L9.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/B5hpNZ3H.js +7 -0
  12. package/build/client/_app/immutable/chunks/B5hpNZ3H.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/B5hpNZ3H.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/BOeLL0Qf.js +1 -0
  15. package/build/client/_app/immutable/chunks/BOeLL0Qf.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/BOeLL0Qf.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/BQcFiMAb.js +1 -0
  18. package/build/client/_app/immutable/chunks/BQcFiMAb.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/BQcFiMAb.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/BRSBR-VT.js +1 -0
  21. package/build/client/_app/immutable/chunks/BRSBR-VT.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BRSBR-VT.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/BuQAxjuA.js +2 -0
  24. package/build/client/_app/immutable/chunks/BuQAxjuA.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/BuQAxjuA.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/CNlmITQu.js +3 -0
  27. package/build/client/_app/immutable/chunks/CNlmITQu.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/CNlmITQu.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/CRvVz4D-.js +7 -0
  30. package/build/client/_app/immutable/chunks/CRvVz4D-.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CRvVz4D-.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/CeOwytgW.js +1 -0
  33. package/build/client/_app/immutable/chunks/CeOwytgW.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/CeOwytgW.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/CgNGvzGF.js +1 -0
  36. package/build/client/_app/immutable/chunks/CgNGvzGF.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/CgNGvzGF.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/ChkA2usg.js +1 -0
  39. package/build/client/_app/immutable/chunks/ChkA2usg.js.br +3 -0
  40. package/build/client/_app/immutable/chunks/ChkA2usg.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/Cj3uUFg6.js +3 -0
  42. package/build/client/_app/immutable/chunks/Cj3uUFg6.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/Cj3uUFg6.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/CsXoLlrU.js +6 -0
  45. package/build/client/_app/immutable/chunks/CsXoLlrU.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/CsXoLlrU.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/D4Hy3aIs.js +6 -0
  48. package/build/client/_app/immutable/chunks/D4Hy3aIs.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/D4Hy3aIs.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/D9U5biKW.js +1 -0
  51. package/build/client/_app/immutable/chunks/D9U5biKW.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/D9U5biKW.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/DEpUbK1-.js +1 -0
  54. package/build/client/_app/immutable/chunks/DEpUbK1-.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/DEpUbK1-.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/DSViAsYC.js +8 -0
  57. package/build/client/_app/immutable/chunks/DSViAsYC.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/DSViAsYC.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/DoC8TQNT.js +3 -0
  60. package/build/client/_app/immutable/chunks/DoC8TQNT.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/DoC8TQNT.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/H8Ub7_7D.js +1 -0
  63. package/build/client/_app/immutable/chunks/H8Ub7_7D.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/H8Ub7_7D.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/IzPjmSWx.js +2 -0
  66. package/build/client/_app/immutable/chunks/IzPjmSWx.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/IzPjmSWx.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/TNOrHJN9.js +3 -0
  69. package/build/client/_app/immutable/chunks/TNOrHJN9.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/TNOrHJN9.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/VcYgr5In.js +2 -0
  72. package/build/client/_app/immutable/chunks/VcYgr5In.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/VcYgr5In.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/qq_sYLPT.js +1 -0
  75. package/build/client/_app/immutable/chunks/qq_sYLPT.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/qq_sYLPT.js.gz +0 -0
  77. package/build/client/_app/immutable/entry/app.DXhvsRZo.js +2 -0
  78. package/build/client/_app/immutable/entry/app.DXhvsRZo.js.br +0 -0
  79. package/build/client/_app/immutable/entry/app.DXhvsRZo.js.gz +0 -0
  80. package/build/client/_app/immutable/entry/start.BRqQMRpg.js +1 -0
  81. package/build/client/_app/immutable/entry/start.BRqQMRpg.js.br +0 -0
  82. package/build/client/_app/immutable/entry/start.BRqQMRpg.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/0.d4Q-9Is1.js +9 -0
  84. package/build/client/_app/immutable/nodes/0.d4Q-9Is1.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/0.d4Q-9Is1.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/1.DZ8DkHf0.js +1 -0
  87. package/build/client/_app/immutable/nodes/1.DZ8DkHf0.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/1.DZ8DkHf0.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/10.Bzzn6p2t.js +10 -0
  90. package/build/client/_app/immutable/nodes/10.Bzzn6p2t.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/10.Bzzn6p2t.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/11.Bansm-B4.js +9 -0
  93. package/build/client/_app/immutable/nodes/11.Bansm-B4.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/11.Bansm-B4.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/12.G8LW5nHq.js +11 -0
  96. package/build/client/_app/immutable/nodes/12.G8LW5nHq.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/12.G8LW5nHq.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/13.5bfYk7vK.js +2 -0
  99. package/build/client/_app/immutable/nodes/13.5bfYk7vK.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/13.5bfYk7vK.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/14.BBIJ90qI.js +6 -0
  102. package/build/client/_app/immutable/nodes/14.BBIJ90qI.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/14.BBIJ90qI.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/15.2XBlsH0N.js +1 -0
  105. package/build/client/_app/immutable/nodes/15.2XBlsH0N.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/15.2XBlsH0N.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/16.kICti2l-.js +10 -0
  108. package/build/client/_app/immutable/nodes/16.kICti2l-.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/16.kICti2l-.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/17.DaNQtoHK.js +1 -0
  111. package/build/client/_app/immutable/nodes/17.DaNQtoHK.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/17.DaNQtoHK.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/18.Co8I7LZa.js +3 -0
  114. package/build/client/_app/immutable/nodes/18.Co8I7LZa.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/18.Co8I7LZa.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/19.DuALfcM_.js +1 -0
  117. package/build/client/_app/immutable/nodes/19.DuALfcM_.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/19.DuALfcM_.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/2.Cz6KTbLv.js +29 -0
  120. package/build/client/_app/immutable/nodes/2.Cz6KTbLv.js.br +0 -0
  121. package/build/client/_app/immutable/nodes/2.Cz6KTbLv.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/20.DG7GEl3z.js +14 -0
  123. package/build/client/_app/immutable/nodes/20.DG7GEl3z.js.br +0 -0
  124. package/build/client/_app/immutable/nodes/20.DG7GEl3z.js.gz +0 -0
  125. package/build/client/_app/immutable/nodes/21.BIADid-T.js +150 -0
  126. package/build/client/_app/immutable/nodes/21.BIADid-T.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/21.BIADid-T.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/22.C2Ie9v8h.js +3 -0
  129. package/build/client/_app/immutable/nodes/22.C2Ie9v8h.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/22.C2Ie9v8h.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/23.CwrLjWrB.js +2 -0
  132. package/build/client/_app/immutable/nodes/23.CwrLjWrB.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/23.CwrLjWrB.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/24.oOVYil3b.js +25 -0
  135. package/build/client/_app/immutable/nodes/24.oOVYil3b.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/24.oOVYil3b.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/25.Brfe0BPX.js +5 -0
  138. package/build/client/_app/immutable/nodes/25.Brfe0BPX.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/25.Brfe0BPX.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/26.Bj_0bhGZ.js +18 -0
  141. package/build/client/_app/immutable/nodes/26.Bj_0bhGZ.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/26.Bj_0bhGZ.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/28.DJf0kroy.js +4 -0
  144. package/build/client/_app/immutable/nodes/28.DJf0kroy.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/28.DJf0kroy.js.gz +0 -0
  146. package/build/client/_app/immutable/nodes/3.CD3K0k_n.js +2 -0
  147. package/build/client/_app/immutable/nodes/3.CD3K0k_n.js.br +0 -0
  148. package/build/client/_app/immutable/nodes/3.CD3K0k_n.js.gz +0 -0
  149. package/build/client/_app/immutable/nodes/30.Cc1YMVhn.js +6 -0
  150. package/build/client/_app/immutable/nodes/30.Cc1YMVhn.js.br +0 -0
  151. package/build/client/_app/immutable/nodes/30.Cc1YMVhn.js.gz +0 -0
  152. package/build/client/_app/immutable/nodes/31.Dxx4LhL4.js +8 -0
  153. package/build/client/_app/immutable/nodes/31.Dxx4LhL4.js.br +0 -0
  154. package/build/client/_app/immutable/nodes/31.Dxx4LhL4.js.gz +0 -0
  155. package/build/client/_app/immutable/nodes/32.H-U-s5CE.js +2 -0
  156. package/build/client/_app/immutable/nodes/32.H-U-s5CE.js.br +0 -0
  157. package/build/client/_app/immutable/nodes/32.H-U-s5CE.js.gz +0 -0
  158. package/build/client/_app/immutable/nodes/33.CcV3ivj-.js +5 -0
  159. package/build/client/_app/immutable/nodes/33.CcV3ivj-.js.br +0 -0
  160. package/build/client/_app/immutable/nodes/33.CcV3ivj-.js.gz +0 -0
  161. package/build/client/_app/immutable/nodes/34.DJJGofj5.js +4 -0
  162. package/build/client/_app/immutable/nodes/34.DJJGofj5.js.br +0 -0
  163. package/build/client/_app/immutable/nodes/34.DJJGofj5.js.gz +0 -0
  164. package/build/client/_app/immutable/nodes/35.COUwPu5h.js +3 -0
  165. package/build/client/_app/immutable/nodes/35.COUwPu5h.js.br +0 -0
  166. package/build/client/_app/immutable/nodes/35.COUwPu5h.js.gz +0 -0
  167. package/build/client/_app/immutable/nodes/36.B1uUY9Nr.js +5 -0
  168. package/build/client/_app/immutable/nodes/36.B1uUY9Nr.js.br +0 -0
  169. package/build/client/_app/immutable/nodes/36.B1uUY9Nr.js.gz +0 -0
  170. package/build/client/_app/immutable/nodes/37.DJEnbkpk.js +7 -0
  171. package/build/client/_app/immutable/nodes/37.DJEnbkpk.js.br +0 -0
  172. package/build/client/_app/immutable/nodes/37.DJEnbkpk.js.gz +0 -0
  173. package/build/client/_app/immutable/nodes/38.ya1eCQb4.js +2 -0
  174. package/build/client/_app/immutable/nodes/38.ya1eCQb4.js.br +0 -0
  175. package/build/client/_app/immutable/nodes/38.ya1eCQb4.js.gz +0 -0
  176. package/build/client/_app/immutable/nodes/39.Bqusq33H.js +4 -0
  177. package/build/client/_app/immutable/nodes/39.Bqusq33H.js.br +0 -0
  178. package/build/client/_app/immutable/nodes/39.Bqusq33H.js.gz +0 -0
  179. package/build/client/_app/immutable/nodes/4.BN7pFOXT.js +5 -0
  180. package/build/client/_app/immutable/nodes/4.BN7pFOXT.js.br +0 -0
  181. package/build/client/_app/immutable/nodes/4.BN7pFOXT.js.gz +0 -0
  182. package/build/client/_app/immutable/nodes/40.CrxcOFVV.js +7 -0
  183. package/build/client/_app/immutable/nodes/40.CrxcOFVV.js.br +0 -0
  184. package/build/client/_app/immutable/nodes/40.CrxcOFVV.js.gz +0 -0
  185. package/build/client/_app/immutable/nodes/41.Bok6ppWZ.js +6 -0
  186. package/build/client/_app/immutable/nodes/41.Bok6ppWZ.js.br +0 -0
  187. package/build/client/_app/immutable/nodes/41.Bok6ppWZ.js.gz +0 -0
  188. package/build/client/_app/immutable/nodes/42.De7sxIHz.js +24 -0
  189. package/build/client/_app/immutable/nodes/42.De7sxIHz.js.br +0 -0
  190. package/build/client/_app/immutable/nodes/42.De7sxIHz.js.gz +0 -0
  191. package/build/client/_app/immutable/nodes/43.CwAXHO8S.js +1 -0
  192. package/build/client/_app/immutable/nodes/43.CwAXHO8S.js.br +0 -0
  193. package/build/client/_app/immutable/nodes/43.CwAXHO8S.js.gz +0 -0
  194. package/build/client/_app/immutable/nodes/45.EBQs_Ct6.js +6 -0
  195. package/build/client/_app/immutable/nodes/45.EBQs_Ct6.js.br +0 -0
  196. package/build/client/_app/immutable/nodes/45.EBQs_Ct6.js.gz +0 -0
  197. package/build/client/_app/immutable/nodes/5.BiX-7kdz.js +1 -0
  198. package/build/client/_app/immutable/nodes/5.BiX-7kdz.js.br +0 -0
  199. package/build/client/_app/immutable/nodes/5.BiX-7kdz.js.gz +0 -0
  200. package/build/client/_app/immutable/nodes/6.8vIUou44.js +6 -0
  201. package/build/client/_app/immutable/nodes/6.8vIUou44.js.br +0 -0
  202. package/build/client/_app/immutable/nodes/6.8vIUou44.js.gz +0 -0
  203. package/build/client/_app/immutable/nodes/9.Cwq22cFi.js +3 -0
  204. package/build/client/_app/immutable/nodes/9.Cwq22cFi.js.br +0 -0
  205. package/build/client/_app/immutable/nodes/9.Cwq22cFi.js.gz +0 -0
  206. package/build/client/_app/version.json +1 -1
  207. package/build/client/_app/version.json.br +0 -0
  208. package/build/client/_app/version.json.gz +0 -0
  209. package/build/handler.js +4 -4
  210. package/build/index.js +4 -4
  211. package/build/server/chunks/chunks/DecisionForm.js-CNjXPJWC.js +744 -0
  212. package/build/server/chunks/chunks/PreviewWindow.js-B7AuIuN8.js +966 -0
  213. package/build/server/chunks/chunks/SettingsNav.js-C4DotEBv.js +41 -0
  214. package/build/server/chunks/chunks/TaskView.js-BSUEgehe.js +3109 -0
  215. package/build/server/chunks/chunks/detail.js-DDJQJvxs.js +149 -0
  216. package/build/server/chunks/chunks/features.js-DmbRnUHF.js +181 -0
  217. package/build/server/chunks/chunks/feedback.js-BKDUNjjN.js +67 -0
  218. package/build/server/chunks/chunks/helperprogram.js-BcRfRrUg.js +37 -0
  219. package/build/server/chunks/chunks/internal.js-CI5FQImH.js +151 -0
  220. package/build/server/chunks/chunks/livereview.js-XvyW2kuX.js +261 -0
  221. package/build/server/chunks/chunks/marketplace-service.js-Chg6QytB.js +557 -0
  222. package/build/server/chunks/chunks/package.js-CVKd5h1H.js +160 -0
  223. package/build/server/chunks/chunks/page.js-Bf4Wf6CG.js +13 -0
  224. package/build/server/chunks/chunks/previewhelper.js-9SVj0b-s.js +256 -0
  225. package/build/server/chunks/chunks/previewhelper2.js-DauBnYMh.js +373 -0
  226. package/build/server/chunks/chunks/repo.js-uSnNJ2OR.js +33 -0
  227. package/build/server/chunks/chunks/runtime.js-CeB0c-KV.js +27477 -0
  228. package/build/server/chunks/chunks/scribe.js-BOacIArb.js +1591 -0
  229. package/build/server/chunks/chunks/service.js-BxFLpkMe.js +1339 -0
  230. package/build/server/chunks/chunks/service2.js-Ps0KdjQt.js +884 -0
  231. package/build/server/chunks/chunks/service3.js-CzjFzHeU.js +234 -0
  232. package/build/server/chunks/chunks/sessions.js-CTgcSezb.js +579 -0
  233. package/build/server/chunks/chunks/settings.js-BtWaI2-X.js +379 -0
  234. package/build/server/chunks/chunks/starter.js-gfVv5dcf.js +400 -0
  235. package/build/server/chunks/chunks/store.js-CeotKeYF.js +334 -0
  236. package/build/server/chunks/chunks/terminal.js-itbRYerQ.js +92 -0
  237. package/build/server/chunks/chunks/tmux.js-VIvfTvV9.js +508 -0
  238. package/build/server/chunks/chunks/tools.js-Bm-XlmkD.js +156 -0
  239. package/build/server/chunks/chunks/uploads.js-DsG1DD3-.js +107 -0
  240. package/build/server/chunks/chunks/view.js-Dn_xRKFA.js +76 -0
  241. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-IO1ZRF85.js +116 -0
  242. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CVjFWV91.js +112 -0
  243. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-BLGZUvgm.js +63 -0
  244. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-oQHDLhwO.js +79 -0
  245. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-C6GgEHIj.js +83 -0
  246. package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-DpEX3ze5.js +68 -0
  247. package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-Dww0pXj4.js +73 -0
  248. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CLlTWNLB.js +158 -0
  249. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-Dp9WZ4bf.js +57 -0
  250. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-Dx0iHN84.js +75 -0
  251. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DVKRjbHk.js +111 -0
  252. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-D3X0PxmA.js +87 -0
  253. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-DkQ_jk8b.js +77 -0
  254. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CLqGaG_x.js +70 -0
  255. package/build/server/chunks/entries/endpoints/api/firstmate/cleared/_server.ts.js-DFZBtw7g.js +90 -0
  256. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BvSfTeq7.js +70 -0
  257. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-i_MNZLjT.js +71 -0
  258. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-CqJrsS11.js +77 -0
  259. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BwTD-A8A.js +70 -0
  260. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-i5wVFcPc.js +119 -0
  261. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-Q4WKgahS.js +80 -0
  262. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-BLK5cLi_.js +91 -0
  263. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BJmt_U6l.js +79 -0
  264. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-D5J7OwwH.js +70 -0
  265. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-ey4qcfP4.js +32 -0
  266. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-BrIhEXkY.js +40 -0
  267. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js--2dN7W05.js +62 -0
  268. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BdFnEm25.js +62 -0
  269. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-Dljgia_5.js +89 -0
  270. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CJ9RrCHi.js +87 -0
  271. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CNWCOZ3J.js +80 -0
  272. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DxMsL99D.js +173 -0
  273. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-DcC2tk5e.js +62 -0
  274. package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-CfT5itY6.js +71 -0
  275. package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-3yEeDK5C.js +72 -0
  276. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-U6uZKOP2.js +91 -0
  277. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-Cg0f8D3d.js +72 -0
  278. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-j4XRZ5d-.js +27 -0
  279. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-Dq3RLRbP.js +30 -0
  280. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CN2OSjzz.js +113 -0
  281. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-C15hiK8S.js +74 -0
  282. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-DmSqLkyw.js +122 -0
  283. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-Zmu_ssez.js +76 -0
  284. package/build/server/chunks/entries/endpoints/api/material/_server.ts.js-yC7n2KYv.js +82 -0
  285. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CPV78xW2.js +97 -0
  286. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BxmQE-FE.js +86 -0
  287. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BeWEpiXb.js +82 -0
  288. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-UrWqlFdG.js +78 -0
  289. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BxUjpR2E.js +27 -0
  290. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BGUI1ywR.js +85 -0
  291. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-CG76gb67.js +39 -0
  292. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DUNX2r7_.js +62 -0
  293. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-D9nLVgRb.js +39 -0
  294. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-oMfoh4Ah.js +42 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-JMHGAsyb.js +67 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BCpkntgi.js +76 -0
  297. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-8GRXl64O.js +73 -0
  298. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DhchKC9R.js +77 -0
  299. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-xNIXjWR8.js +27 -0
  300. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-twMdQdvM.js +86 -0
  301. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Cl8Y_XMS.js +67 -0
  302. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-uRKTUcKZ.js +76 -0
  303. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BPqSdloV.js +88 -0
  304. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-ChLvuJzF.js +75 -0
  305. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-BFWcw3uj.js +98 -0
  306. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BDWwIwG4.js +81 -0
  307. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-FIo1kYPG.js +476 -0
  308. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CRK_qlE_.js +92 -0
  309. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-rt_F9Gck.js +71 -0
  310. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CN4N418U.js +81 -0
  311. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-NXDL1AIt.js +147 -0
  312. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-Bx6FOxyH.js +70 -0
  313. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BF7U7hZf.js +84 -0
  314. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-Buwmwr3a.js +70 -0
  315. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-DmFckgQZ.js +73 -0
  316. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-wjPrTCqs.js +67 -0
  317. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BTNbFm0L.js +86 -0
  318. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-DH-GDdeC.js +113 -0
  319. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-CsXUE-jP.js +79 -0
  320. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-lVmWup8R.js +109 -0
  321. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-D-cCDMeu.js +127 -0
  322. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BvKG9E_x.js +82 -0
  323. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-wqjtvkxA.js +85 -0
  324. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CGdlzl2o.js +85 -0
  325. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-D6cH9v5u.js +24 -0
  326. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-DJrHSeDl.js +31 -0
  327. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-_ns8xGIT.js +33 -0
  328. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DA9SIN__.js +97 -0
  329. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-DfbLKNYA.js +40 -0
  330. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-OZhWWX31.js +27 -0
  331. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-nrDhN7SO.js +27 -0
  332. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-BePu6A81.js +78 -0
  333. package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-BAmWOBKl.js +68 -0
  334. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-Dd7M1FY_.js +75 -0
  335. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-C15nYJhw.js +88 -0
  336. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-B5rfjYNn.js +66 -0
  337. package/build/server/chunks/entries/hooks.server.js-BnwrGz6-.js +196 -0
  338. package/build/server/chunks/entries/pages/_layout.server.ts.js-THjNvDD6.js +55 -0
  339. package/build/server/chunks/entries/pages/_layout.svelte.js-Cp8Uxxpi.js +6006 -0
  340. package/build/server/chunks/entries/pages/_page.server.ts.js-DR5lnUFG.js +16 -0
  341. package/build/server/chunks/entries/pages/_page.svelte.js-DLPeUs6p.js +4593 -0
  342. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-C-X-wLp-.js +14 -0
  343. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-CgNhbXK9.js +16 -0
  344. package/build/server/chunks/entries/pages/documents/_page.server.ts.js-C93QYy4e.js +15 -0
  345. package/build/server/chunks/entries/pages/files/_page.server.ts.js-Bv5rH4u-.js +17 -0
  346. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-D5-jEVSP.js +11 -0
  347. package/build/server/chunks/entries/pages/health/_page.server.ts.js-Cu6iCJhZ.js +16 -0
  348. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DkZQKqDd.js +18 -0
  349. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-fsfBoXAj.js +902 -0
  350. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-i3HI6fSD.js +18 -0
  351. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-Ck9tfPyb.js +16 -0
  352. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-Bv6gzh2B.js +23 -0
  353. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DWgjupIJ.js +21 -0
  354. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BxuPoYf-.js +27 -0
  355. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-cL3Sf5fP.js +15 -0
  356. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-nISxJTn1.js +25 -0
  357. package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-B9rsGPmm.js +37 -0
  358. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-Gi4XifDB.js +11 -0
  359. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-V0k1LBjq.js +13 -0
  360. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-C4RWaYbl.js +12 -0
  361. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-PtP3-AwI.js +18 -0
  362. package/build/server/chunks/entries/pages/settings/chat/_page.svelte.js-DhnwhPLy.js +77 -0
  363. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-CKCjjlmG.js +19 -0
  364. package/build/server/chunks/entries/pages/settings/discussion/_page.svelte.js-BGHVqqEn.js +148 -0
  365. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-DguOzst7.js +16 -0
  366. package/build/server/chunks/entries/pages/settings/events/_page.svelte.js-BTqCAzFe.js +111 -0
  367. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-CvY1aFlH.js +15 -0
  368. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-Upw_zfR_.js +83 -0
  369. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-CJ0LFmMB.js +797 -0
  370. package/build/server/chunks/entries/pages/settings/firstmate/_page.svelte.js-Bs2C6cPB.js +254 -0
  371. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-w6uZoR8r.js +11 -0
  372. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-BEZN_fOG.js +262 -0
  373. package/build/server/chunks/entries/pages/settings/headroom/_page.svelte.js-Cph-kvbr.js +126 -0
  374. package/build/server/chunks/entries/pages/settings/material/_page.server.ts.js-CODeGWYL.js +11 -0
  375. package/build/server/chunks/entries/pages/settings/material/_page.svelte.js-C98wh8rG.js +89 -0
  376. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BH5JNU-1.js +19 -0
  377. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-CEa-FVXk.js +567 -0
  378. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BP8mgXtM.js +17 -0
  379. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-BEXyKZie.js +240 -0
  380. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-C7O26AbH.js +11 -0
  381. package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-BPC2SXST.js +56 -0
  382. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-DTb80MKL.js +11 -0
  383. package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-BGHbqtbb.js +62 -0
  384. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-C6NQtUiJ.js +15 -0
  385. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-BJp8vGu3.js +162 -0
  386. package/build/server/chunks/entries/pages/setup/_page.server.ts.js--gBEXLmN.js +18 -0
  387. package/build/server/chunks/entries/pages/setup/_page.svelte.js-DjNN07X-.js +1625 -0
  388. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BSEhQ40F.js +36 -0
  389. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-DN518_Dy.js +123 -0
  390. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-CpXvGvea.js +24 -0
  391. package/build/server/chunks/entries/pages/time/_page.server.ts.js-BrP865Pj.js +11 -0
  392. package/build/server/chunks/handler-n5Bmjcal.js +1474 -0
  393. package/build/server/chunks/index.js-Cl-xjRbU.js +4296 -0
  394. package/build/server/chunks/manifest.js-Bot1VZJG.js +1072 -0
  395. package/build/server/chunks/nodes/0.js-B2dfC98v.js +69 -0
  396. package/build/server/chunks/nodes/1.js-DXdO5VuN.js +9 -0
  397. package/build/server/chunks/nodes/10.js-DrrFBCDb.js +67 -0
  398. package/build/server/chunks/nodes/11.js-eZ6nuJfJ.js +69 -0
  399. package/build/server/chunks/nodes/12.js-W7G3oJaU.js +68 -0
  400. package/build/server/chunks/nodes/13.js-B52LnjRU.js +69 -0
  401. package/build/server/chunks/nodes/14.js-D9RwCROc.js +12 -0
  402. package/build/server/chunks/nodes/15.js-DClU6xqD.js +9 -0
  403. package/build/server/chunks/nodes/16.js-BEQ8CiCf.js +9 -0
  404. package/build/server/chunks/nodes/17.js-s5OiXTrB.js +67 -0
  405. package/build/server/chunks/nodes/18.js-CHw_g3ji.js +70 -0
  406. package/build/server/chunks/nodes/19.js-D4pC2xLj.js +68 -0
  407. package/build/server/chunks/nodes/2.js-CfstDIw0.js +67 -0
  408. package/build/server/chunks/nodes/20.js-BGStlUp6.js +69 -0
  409. package/build/server/chunks/nodes/21.js-u-DDJtGE.js +68 -0
  410. package/build/server/chunks/nodes/22.js-CAPUx3YW.js +69 -0
  411. package/build/server/chunks/nodes/23.js-B13yR7Ub.js +69 -0
  412. package/build/server/chunks/nodes/24.js-yLGoAzKz.js +25 -0
  413. package/build/server/chunks/nodes/25.js-D0zi8gfz.js +25 -0
  414. package/build/server/chunks/nodes/26.js-D5LsUhK5.js +9 -0
  415. package/build/server/chunks/nodes/27.js-BQngZk3i.js +25 -0
  416. package/build/server/chunks/nodes/28.js-He5EkTLY.js +67 -0
  417. package/build/server/chunks/nodes/3.js-DJZYTP8Z.js +9 -0
  418. package/build/server/chunks/nodes/30.js-By0aq65F.js +68 -0
  419. package/build/server/chunks/nodes/31.js-Dgili49D.js +67 -0
  420. package/build/server/chunks/nodes/32.js-Bi71fgsd.js +25 -0
  421. package/build/server/chunks/nodes/33.js-CK_kpBkt.js +67 -0
  422. package/build/server/chunks/nodes/34.js-Wl7k0KX5.js +25 -0
  423. package/build/server/chunks/nodes/35.js-CaG27nIh.js +22 -0
  424. package/build/server/chunks/nodes/36.js-B1Qj1XAO.js +67 -0
  425. package/build/server/chunks/nodes/37.js-DKBgaDTH.js +67 -0
  426. package/build/server/chunks/nodes/38.js-yQwnzphn.js +70 -0
  427. package/build/server/chunks/nodes/39.js-CkxS_B6R.js +70 -0
  428. package/build/server/chunks/nodes/4.js-BpyYS0K7.js +68 -0
  429. package/build/server/chunks/nodes/40.js-CHApU7Ye.js +26 -0
  430. package/build/server/chunks/nodes/41.js-BnlhSCRi.js +69 -0
  431. package/build/server/chunks/nodes/42.js-CJB1oL62.js +72 -0
  432. package/build/server/chunks/nodes/43.js-CAJ8Ml04.js +68 -0
  433. package/build/server/chunks/nodes/44.js-D5GvIT3i.js +68 -0
  434. package/build/server/chunks/nodes/45.js-CWzkEop_.js +67 -0
  435. package/build/server/chunks/nodes/5.js-DHVQ7I4u.js +67 -0
  436. package/build/server/chunks/nodes/6.js-7rcq5GGA.js +67 -0
  437. package/build/server/chunks/nodes/8.js-HKr5XMs3.js +67 -0
  438. package/build/server/chunks/nodes/9.js-BLrvaKEN.js +14 -0
  439. package/dist/cli.js +5366 -5011
  440. package/dist/wh-vault.js +1 -1
  441. package/firstmate-extension/firstmate-extension.json +1 -1
  442. package/package.json +4 -3
  443. package/skills/manage-wheelhouse/SKILL.md +29 -90
  444. package/skills/manage-wheelhouse/references/chat.md +66 -0
  445. package/skills/manage-wheelhouse/references/operations.md +935 -561
  446. package/skills/wheelhouse-passage/SKILL.md +43 -0
  447. package/skills/wheelhouse-preview/SKILL.md +48 -0
  448. package/build/client/_app/immutable/assets/0.DfMBwLbg.css +0 -1
  449. package/build/client/_app/immutable/assets/0.DfMBwLbg.css.br +0 -0
  450. package/build/client/_app/immutable/assets/0.DfMBwLbg.css.gz +0 -0
  451. package/build/client/_app/immutable/chunks/-jGTCgc1.js +0 -6
  452. package/build/client/_app/immutable/chunks/-jGTCgc1.js.br +0 -0
  453. package/build/client/_app/immutable/chunks/-jGTCgc1.js.gz +0 -0
  454. package/build/client/_app/immutable/chunks/549Ic5KL.js +0 -2
  455. package/build/client/_app/immutable/chunks/549Ic5KL.js.br +0 -0
  456. package/build/client/_app/immutable/chunks/549Ic5KL.js.gz +0 -0
  457. package/build/client/_app/immutable/chunks/AYO6DeDt.js +0 -1
  458. package/build/client/_app/immutable/chunks/AYO6DeDt.js.br +0 -0
  459. package/build/client/_app/immutable/chunks/AYO6DeDt.js.gz +0 -0
  460. package/build/client/_app/immutable/chunks/B8nUI-P4.js +0 -2
  461. package/build/client/_app/immutable/chunks/B8nUI-P4.js.br +0 -0
  462. package/build/client/_app/immutable/chunks/B8nUI-P4.js.gz +0 -0
  463. package/build/client/_app/immutable/chunks/BjrKJ4DC.js +0 -1
  464. package/build/client/_app/immutable/chunks/BjrKJ4DC.js.br +0 -0
  465. package/build/client/_app/immutable/chunks/BjrKJ4DC.js.gz +0 -0
  466. package/build/client/_app/immutable/chunks/BoEQDqEX.js +0 -3
  467. package/build/client/_app/immutable/chunks/BoEQDqEX.js.br +0 -0
  468. package/build/client/_app/immutable/chunks/BoEQDqEX.js.gz +0 -0
  469. package/build/client/_app/immutable/chunks/BzEQA6Vz.js +0 -8
  470. package/build/client/_app/immutable/chunks/BzEQA6Vz.js.br +0 -0
  471. package/build/client/_app/immutable/chunks/BzEQA6Vz.js.gz +0 -0
  472. package/build/client/_app/immutable/chunks/CIVuFUrV.js +0 -1
  473. package/build/client/_app/immutable/chunks/CIVuFUrV.js.br +0 -0
  474. package/build/client/_app/immutable/chunks/CIVuFUrV.js.gz +0 -0
  475. package/build/client/_app/immutable/chunks/CJoZbsMe.js +0 -1
  476. package/build/client/_app/immutable/chunks/CJoZbsMe.js.br +0 -0
  477. package/build/client/_app/immutable/chunks/CJoZbsMe.js.gz +0 -0
  478. package/build/client/_app/immutable/chunks/CMo3mxhh.js +0 -1
  479. package/build/client/_app/immutable/chunks/CMo3mxhh.js.br +0 -0
  480. package/build/client/_app/immutable/chunks/CMo3mxhh.js.gz +0 -0
  481. package/build/client/_app/immutable/chunks/CVA6C1xn.js +0 -2
  482. package/build/client/_app/immutable/chunks/CVA6C1xn.js.br +0 -0
  483. package/build/client/_app/immutable/chunks/CVA6C1xn.js.gz +0 -0
  484. package/build/client/_app/immutable/chunks/Ce8pSY2j.js +0 -1
  485. package/build/client/_app/immutable/chunks/Ce8pSY2j.js.br +0 -0
  486. package/build/client/_app/immutable/chunks/Ce8pSY2j.js.gz +0 -0
  487. package/build/client/_app/immutable/chunks/ClVMudf4.js +0 -1
  488. package/build/client/_app/immutable/chunks/ClVMudf4.js.br +0 -0
  489. package/build/client/_app/immutable/chunks/ClVMudf4.js.gz +0 -0
  490. package/build/client/_app/immutable/chunks/CoYgVaEY.js +0 -1
  491. package/build/client/_app/immutable/chunks/CoYgVaEY.js.br +0 -0
  492. package/build/client/_app/immutable/chunks/CoYgVaEY.js.gz +0 -0
  493. package/build/client/_app/immutable/chunks/CqGnq0RM.js +0 -7
  494. package/build/client/_app/immutable/chunks/CqGnq0RM.js.br +0 -0
  495. package/build/client/_app/immutable/chunks/CqGnq0RM.js.gz +0 -0
  496. package/build/client/_app/immutable/chunks/CtDVbF73.js +0 -7
  497. package/build/client/_app/immutable/chunks/CtDVbF73.js.br +0 -0
  498. package/build/client/_app/immutable/chunks/CtDVbF73.js.gz +0 -0
  499. package/build/client/_app/immutable/chunks/DGPy4ilM.js +0 -1
  500. package/build/client/_app/immutable/chunks/DGPy4ilM.js.br +0 -1
  501. package/build/client/_app/immutable/chunks/DGPy4ilM.js.gz +0 -0
  502. package/build/client/_app/immutable/chunks/DV2miOwj.js +0 -3
  503. package/build/client/_app/immutable/chunks/DV2miOwj.js.br +0 -0
  504. package/build/client/_app/immutable/chunks/DV2miOwj.js.gz +0 -0
  505. package/build/client/_app/immutable/chunks/DYeKR0Nw.js +0 -1
  506. package/build/client/_app/immutable/chunks/DYeKR0Nw.js.br +0 -0
  507. package/build/client/_app/immutable/chunks/DYeKR0Nw.js.gz +0 -0
  508. package/build/client/_app/immutable/chunks/DyWlAZsB.js +0 -3
  509. package/build/client/_app/immutable/chunks/DyWlAZsB.js.br +0 -0
  510. package/build/client/_app/immutable/chunks/DyWlAZsB.js.gz +0 -0
  511. package/build/client/_app/immutable/chunks/FU5wjxOp.js +0 -6
  512. package/build/client/_app/immutable/chunks/FU5wjxOp.js.br +0 -0
  513. package/build/client/_app/immutable/chunks/FU5wjxOp.js.gz +0 -0
  514. package/build/client/_app/immutable/chunks/knocoJTV.js +0 -1
  515. package/build/client/_app/immutable/chunks/knocoJTV.js.br +0 -0
  516. package/build/client/_app/immutable/chunks/knocoJTV.js.gz +0 -0
  517. package/build/client/_app/immutable/chunks/nr_HrT2I.js +0 -3
  518. package/build/client/_app/immutable/chunks/nr_HrT2I.js.br +0 -0
  519. package/build/client/_app/immutable/chunks/nr_HrT2I.js.gz +0 -0
  520. package/build/client/_app/immutable/chunks/qmERWKqm.js +0 -1
  521. package/build/client/_app/immutable/chunks/qmERWKqm.js.br +0 -0
  522. package/build/client/_app/immutable/chunks/qmERWKqm.js.gz +0 -0
  523. package/build/client/_app/immutable/entry/app.BwrZZldc.js +0 -2
  524. package/build/client/_app/immutable/entry/app.BwrZZldc.js.br +0 -0
  525. package/build/client/_app/immutable/entry/app.BwrZZldc.js.gz +0 -0
  526. package/build/client/_app/immutable/entry/start.8gVu0EvV.js +0 -1
  527. package/build/client/_app/immutable/entry/start.8gVu0EvV.js.br +0 -0
  528. package/build/client/_app/immutable/entry/start.8gVu0EvV.js.gz +0 -0
  529. package/build/client/_app/immutable/nodes/0.WsipkNVW.js +0 -9
  530. package/build/client/_app/immutable/nodes/0.WsipkNVW.js.br +0 -0
  531. package/build/client/_app/immutable/nodes/0.WsipkNVW.js.gz +0 -0
  532. package/build/client/_app/immutable/nodes/1.CoF2hc0B.js +0 -1
  533. package/build/client/_app/immutable/nodes/1.CoF2hc0B.js.br +0 -0
  534. package/build/client/_app/immutable/nodes/1.CoF2hc0B.js.gz +0 -0
  535. package/build/client/_app/immutable/nodes/10.CBs8D8F0.js +0 -10
  536. package/build/client/_app/immutable/nodes/10.CBs8D8F0.js.br +0 -0
  537. package/build/client/_app/immutable/nodes/10.CBs8D8F0.js.gz +0 -0
  538. package/build/client/_app/immutable/nodes/11.Deb-Pt_F.js +0 -9
  539. package/build/client/_app/immutable/nodes/11.Deb-Pt_F.js.br +0 -0
  540. package/build/client/_app/immutable/nodes/11.Deb-Pt_F.js.gz +0 -0
  541. package/build/client/_app/immutable/nodes/12.BOi495ED.js +0 -11
  542. package/build/client/_app/immutable/nodes/12.BOi495ED.js.br +0 -0
  543. package/build/client/_app/immutable/nodes/12.BOi495ED.js.gz +0 -0
  544. package/build/client/_app/immutable/nodes/13.C1R364Gw.js +0 -2
  545. package/build/client/_app/immutable/nodes/13.C1R364Gw.js.br +0 -0
  546. package/build/client/_app/immutable/nodes/13.C1R364Gw.js.gz +0 -0
  547. package/build/client/_app/immutable/nodes/14.qV3mdMVk.js +0 -6
  548. package/build/client/_app/immutable/nodes/14.qV3mdMVk.js.br +0 -0
  549. package/build/client/_app/immutable/nodes/14.qV3mdMVk.js.gz +0 -0
  550. package/build/client/_app/immutable/nodes/15.srOIugkP.js +0 -1
  551. package/build/client/_app/immutable/nodes/15.srOIugkP.js.br +0 -0
  552. package/build/client/_app/immutable/nodes/15.srOIugkP.js.gz +0 -0
  553. package/build/client/_app/immutable/nodes/16.ClxOSMI2.js +0 -10
  554. package/build/client/_app/immutable/nodes/16.ClxOSMI2.js.br +0 -0
  555. package/build/client/_app/immutable/nodes/16.ClxOSMI2.js.gz +0 -0
  556. package/build/client/_app/immutable/nodes/17.DezPjRpz.js +0 -1
  557. package/build/client/_app/immutable/nodes/17.DezPjRpz.js.br +0 -0
  558. package/build/client/_app/immutable/nodes/17.DezPjRpz.js.gz +0 -0
  559. package/build/client/_app/immutable/nodes/18.BAmXQ3UE.js +0 -3
  560. package/build/client/_app/immutable/nodes/18.BAmXQ3UE.js.br +0 -0
  561. package/build/client/_app/immutable/nodes/18.BAmXQ3UE.js.gz +0 -0
  562. package/build/client/_app/immutable/nodes/19.UH9nrulQ.js +0 -1
  563. package/build/client/_app/immutable/nodes/19.UH9nrulQ.js.br +0 -0
  564. package/build/client/_app/immutable/nodes/19.UH9nrulQ.js.gz +0 -0
  565. package/build/client/_app/immutable/nodes/2.PJdm-thg.js +0 -29
  566. package/build/client/_app/immutable/nodes/2.PJdm-thg.js.br +0 -0
  567. package/build/client/_app/immutable/nodes/2.PJdm-thg.js.gz +0 -0
  568. package/build/client/_app/immutable/nodes/20.DeX6C_3e.js +0 -14
  569. package/build/client/_app/immutable/nodes/20.DeX6C_3e.js.br +0 -0
  570. package/build/client/_app/immutable/nodes/20.DeX6C_3e.js.gz +0 -0
  571. package/build/client/_app/immutable/nodes/21.rH_VYkx2.js +0 -150
  572. package/build/client/_app/immutable/nodes/21.rH_VYkx2.js.br +0 -0
  573. package/build/client/_app/immutable/nodes/21.rH_VYkx2.js.gz +0 -0
  574. package/build/client/_app/immutable/nodes/22.BVL0k6gA.js +0 -3
  575. package/build/client/_app/immutable/nodes/22.BVL0k6gA.js.br +0 -0
  576. package/build/client/_app/immutable/nodes/22.BVL0k6gA.js.gz +0 -0
  577. package/build/client/_app/immutable/nodes/23.CG5Nsj3c.js +0 -2
  578. package/build/client/_app/immutable/nodes/23.CG5Nsj3c.js.br +0 -0
  579. package/build/client/_app/immutable/nodes/23.CG5Nsj3c.js.gz +0 -0
  580. package/build/client/_app/immutable/nodes/24.XaVjcj6d.js +0 -25
  581. package/build/client/_app/immutable/nodes/24.XaVjcj6d.js.br +0 -0
  582. package/build/client/_app/immutable/nodes/24.XaVjcj6d.js.gz +0 -0
  583. package/build/client/_app/immutable/nodes/25.H0iT6Kwh.js +0 -5
  584. package/build/client/_app/immutable/nodes/25.H0iT6Kwh.js.br +0 -0
  585. package/build/client/_app/immutable/nodes/25.H0iT6Kwh.js.gz +0 -0
  586. package/build/client/_app/immutable/nodes/26.Ci4Bfhai.js +0 -18
  587. package/build/client/_app/immutable/nodes/26.Ci4Bfhai.js.br +0 -0
  588. package/build/client/_app/immutable/nodes/26.Ci4Bfhai.js.gz +0 -0
  589. package/build/client/_app/immutable/nodes/28.BkHTjASW.js +0 -4
  590. package/build/client/_app/immutable/nodes/28.BkHTjASW.js.br +0 -0
  591. package/build/client/_app/immutable/nodes/28.BkHTjASW.js.gz +0 -0
  592. package/build/client/_app/immutable/nodes/3.BO9TqrFB.js +0 -2
  593. package/build/client/_app/immutable/nodes/3.BO9TqrFB.js.br +0 -0
  594. package/build/client/_app/immutable/nodes/3.BO9TqrFB.js.gz +0 -0
  595. package/build/client/_app/immutable/nodes/30.D3B2Q4OU.js +0 -6
  596. package/build/client/_app/immutable/nodes/30.D3B2Q4OU.js.br +0 -0
  597. package/build/client/_app/immutable/nodes/30.D3B2Q4OU.js.gz +0 -0
  598. package/build/client/_app/immutable/nodes/31.DBxJBGiO.js +0 -8
  599. package/build/client/_app/immutable/nodes/31.DBxJBGiO.js.br +0 -0
  600. package/build/client/_app/immutable/nodes/31.DBxJBGiO.js.gz +0 -0
  601. package/build/client/_app/immutable/nodes/32.CnHi0wRk.js +0 -2
  602. package/build/client/_app/immutable/nodes/32.CnHi0wRk.js.br +0 -0
  603. package/build/client/_app/immutable/nodes/32.CnHi0wRk.js.gz +0 -0
  604. package/build/client/_app/immutable/nodes/33.DDig6K20.js +0 -5
  605. package/build/client/_app/immutable/nodes/33.DDig6K20.js.br +0 -0
  606. package/build/client/_app/immutable/nodes/33.DDig6K20.js.gz +0 -0
  607. package/build/client/_app/immutable/nodes/34.Bf4X36eZ.js +0 -4
  608. package/build/client/_app/immutable/nodes/34.Bf4X36eZ.js.br +0 -0
  609. package/build/client/_app/immutable/nodes/34.Bf4X36eZ.js.gz +0 -0
  610. package/build/client/_app/immutable/nodes/35.C7ql3_zk.js +0 -3
  611. package/build/client/_app/immutable/nodes/35.C7ql3_zk.js.br +0 -0
  612. package/build/client/_app/immutable/nodes/35.C7ql3_zk.js.gz +0 -0
  613. package/build/client/_app/immutable/nodes/36.DU8cKjZG.js +0 -7
  614. package/build/client/_app/immutable/nodes/36.DU8cKjZG.js.br +0 -0
  615. package/build/client/_app/immutable/nodes/36.DU8cKjZG.js.gz +0 -0
  616. package/build/client/_app/immutable/nodes/37.Do0SMZ1v.js +0 -2
  617. package/build/client/_app/immutable/nodes/37.Do0SMZ1v.js.br +0 -0
  618. package/build/client/_app/immutable/nodes/37.Do0SMZ1v.js.gz +0 -0
  619. package/build/client/_app/immutable/nodes/38.CtS3KKlQ.js +0 -4
  620. package/build/client/_app/immutable/nodes/38.CtS3KKlQ.js.br +0 -0
  621. package/build/client/_app/immutable/nodes/38.CtS3KKlQ.js.gz +0 -0
  622. package/build/client/_app/immutable/nodes/39.4sF9TG4n.js +0 -7
  623. package/build/client/_app/immutable/nodes/39.4sF9TG4n.js.br +0 -0
  624. package/build/client/_app/immutable/nodes/39.4sF9TG4n.js.gz +0 -0
  625. package/build/client/_app/immutable/nodes/4.BN5nbu-t.js +0 -5
  626. package/build/client/_app/immutable/nodes/4.BN5nbu-t.js.br +0 -0
  627. package/build/client/_app/immutable/nodes/4.BN5nbu-t.js.gz +0 -0
  628. package/build/client/_app/immutable/nodes/40.CQ_BoiE-.js +0 -6
  629. package/build/client/_app/immutable/nodes/40.CQ_BoiE-.js.br +0 -0
  630. package/build/client/_app/immutable/nodes/40.CQ_BoiE-.js.gz +0 -0
  631. package/build/client/_app/immutable/nodes/41.CnUbdf5W.js +0 -23
  632. package/build/client/_app/immutable/nodes/41.CnUbdf5W.js.br +0 -0
  633. package/build/client/_app/immutable/nodes/41.CnUbdf5W.js.gz +0 -0
  634. package/build/client/_app/immutable/nodes/42.DjpUCMvB.js +0 -1
  635. package/build/client/_app/immutable/nodes/42.DjpUCMvB.js.br +0 -2
  636. package/build/client/_app/immutable/nodes/42.DjpUCMvB.js.gz +0 -0
  637. package/build/client/_app/immutable/nodes/44._-UvgvOX.js +0 -6
  638. package/build/client/_app/immutable/nodes/44._-UvgvOX.js.br +0 -0
  639. package/build/client/_app/immutable/nodes/44._-UvgvOX.js.gz +0 -0
  640. package/build/client/_app/immutable/nodes/5.CK8GVHQ3.js +0 -1
  641. package/build/client/_app/immutable/nodes/5.CK8GVHQ3.js.br +0 -0
  642. package/build/client/_app/immutable/nodes/5.CK8GVHQ3.js.gz +0 -0
  643. package/build/client/_app/immutable/nodes/6.CoIwniEZ.js +0 -6
  644. package/build/client/_app/immutable/nodes/6.CoIwniEZ.js.br +0 -0
  645. package/build/client/_app/immutable/nodes/6.CoIwniEZ.js.gz +0 -0
  646. package/build/client/_app/immutable/nodes/9.CyH0mhCS.js +0 -3
  647. package/build/client/_app/immutable/nodes/9.CyH0mhCS.js.br +0 -0
  648. package/build/client/_app/immutable/nodes/9.CyH0mhCS.js.gz +0 -0
  649. package/build/server/chunks/chunks/DecisionForm.js-BuZwcsBO.js +0 -744
  650. package/build/server/chunks/chunks/PreviewWindow.js-B0EogasX.js +0 -966
  651. package/build/server/chunks/chunks/SettingsNav.js-BSq75e4G.js +0 -40
  652. package/build/server/chunks/chunks/TaskView.js-DL9dNvag.js +0 -3109
  653. package/build/server/chunks/chunks/detail.js-DEdW3MEW.js +0 -149
  654. package/build/server/chunks/chunks/features.js-Gpn3GBDq.js +0 -181
  655. package/build/server/chunks/chunks/feedback.js-D3C5nGIe.js +0 -67
  656. package/build/server/chunks/chunks/internal.js-Kzj2EI1m.js +0 -151
  657. package/build/server/chunks/chunks/livereview.js-FqdWoyiJ.js +0 -261
  658. package/build/server/chunks/chunks/marketplace-service.js-BoTU54hK.js +0 -557
  659. package/build/server/chunks/chunks/package.js-B8tR4aKS.js +0 -160
  660. package/build/server/chunks/chunks/page.js-CRAwV53x.js +0 -13
  661. package/build/server/chunks/chunks/previewhelper.js-Cz95M8xJ.js +0 -246
  662. package/build/server/chunks/chunks/previewhelper2.js-DxFYGok2.js +0 -214
  663. package/build/server/chunks/chunks/repo.js-BMNiWLpT.js +0 -33
  664. package/build/server/chunks/chunks/runtime.js-g_-BD8g7.js +0 -27006
  665. package/build/server/chunks/chunks/scribe.js-EZeWFEY3.js +0 -1591
  666. package/build/server/chunks/chunks/service.js-C_HJiQyx.js +0 -1339
  667. package/build/server/chunks/chunks/service2.js-CH__qbgl.js +0 -835
  668. package/build/server/chunks/chunks/service3.js-wJ412mDv.js +0 -234
  669. package/build/server/chunks/chunks/sessions.js-OvqNZqST.js +0 -579
  670. package/build/server/chunks/chunks/settings.js-DZtpJOFF.js +0 -379
  671. package/build/server/chunks/chunks/starter.js-CR41FnBv.js +0 -400
  672. package/build/server/chunks/chunks/store.js-CG9738oP.js +0 -334
  673. package/build/server/chunks/chunks/terminal.js-CjdVxoU8.js +0 -86
  674. package/build/server/chunks/chunks/tmux.js-NVfcOTW_.js +0 -504
  675. package/build/server/chunks/chunks/tools.js-BE5l3Gq7.js +0 -156
  676. package/build/server/chunks/chunks/uploads.js-Ca6miTnP.js +0 -107
  677. package/build/server/chunks/chunks/view.js-BCjmTtss.js +0 -76
  678. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-CCN20nox.js +0 -116
  679. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CefR2xcu.js +0 -112
  680. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-D4BWxFvk.js +0 -63
  681. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-apIaGBva.js +0 -79
  682. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-BA4mweHA.js +0 -83
  683. package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-vnrRV3sk.js +0 -68
  684. package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-CFpKDJxi.js +0 -73
  685. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CuKTuMuP.js +0 -158
  686. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-OAN9aLRH.js +0 -57
  687. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DL3-pvG7.js +0 -75
  688. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-6vaXOk25.js +0 -111
  689. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-AvyOejf8.js +0 -87
  690. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-D708sl18.js +0 -77
  691. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CSv_WgyS.js +0 -70
  692. package/build/server/chunks/entries/endpoints/api/firstmate/cleared/_server.ts.js-7pGGYglH.js +0 -90
  693. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-DDPSew2Y.js +0 -70
  694. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DYotrBiw.js +0 -71
  695. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-CKT_-Tom.js +0 -77
  696. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-C0Dd6O1u.js +0 -70
  697. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DZHIQuku.js +0 -119
  698. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-CwB-qCXM.js +0 -80
  699. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-Z7JnUsfb.js +0 -91
  700. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CO3SUEJ6.js +0 -79
  701. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-C5Qy4Dxu.js +0 -70
  702. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CTeOLkL7.js +0 -32
  703. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-BhwGi92i.js +0 -40
  704. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-CBWPt-ot.js +0 -62
  705. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Becq5xQo.js +0 -62
  706. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BFiHEIOD.js +0 -89
  707. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-RCmuDmCd.js +0 -87
  708. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-tny4Bgq7.js +0 -80
  709. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CD9yI1bS.js +0 -172
  710. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-DugLubV_.js +0 -62
  711. package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-CYo7dUaf.js +0 -71
  712. package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-CD1ov81W.js +0 -72
  713. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-vJXynCzA.js +0 -91
  714. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-YSnBSoPJ.js +0 -72
  715. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-DpJi8gTx.js +0 -27
  716. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-Dmi2TtY2.js +0 -30
  717. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-REDr3Ndj.js +0 -113
  718. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-CH0_OmoG.js +0 -74
  719. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-CtWVBAjO.js +0 -122
  720. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BfQNZkaC.js +0 -76
  721. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-DZJKxRjE.js +0 -97
  722. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-C5rxbe6t.js +0 -86
  723. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-Bls2J5Fe.js +0 -81
  724. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-CfO7nc1v.js +0 -78
  725. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BDANbpZN.js +0 -27
  726. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Be4RYbyi.js +0 -85
  727. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DHzKeNwC.js +0 -39
  728. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-ZW-1o57w.js +0 -62
  729. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BMN5NKHZ.js +0 -39
  730. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DkSaTb0S.js +0 -42
  731. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-9rkBUFdC.js +0 -67
  732. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-WXZci3fh.js +0 -76
  733. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-DH1OTSIH.js +0 -73
  734. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BdaOreTA.js +0 -77
  735. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BB0SALBO.js +0 -27
  736. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-CoONGWq8.js +0 -86
  737. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-_M2ap_c4.js +0 -67
  738. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-OuZfsFBw.js +0 -76
  739. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CZWnofsJ.js +0 -88
  740. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CFUG9Ptl.js +0 -75
  741. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-DImVTO-1.js +0 -98
  742. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BxQZG3W_.js +0 -81
  743. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-GWVdCPBO.js +0 -476
  744. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BfNQ8zV_.js +0 -92
  745. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-CKfJJq8u.js +0 -71
  746. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-z8BHfC1w.js +0 -81
  747. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BoGGHHDZ.js +0 -141
  748. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DRlGUg6h.js +0 -70
  749. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DBXlsY3f.js +0 -84
  750. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-Do308VLn.js +0 -70
  751. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-BYqs7wEP.js +0 -73
  752. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CA-193IU.js +0 -67
  753. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DuZyPiUM.js +0 -86
  754. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-CUDR9iq3.js +0 -113
  755. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B0urRJBp.js +0 -79
  756. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-JJJBzysy.js +0 -108
  757. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-CyZI8yvV.js +0 -127
  758. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BoBZG98M.js +0 -82
  759. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-B14NnsT5.js +0 -84
  760. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-qaBnrKL0.js +0 -85
  761. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-DotEfAEV.js +0 -24
  762. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-BYmM-MCP.js +0 -31
  763. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-3cdqA-a4.js +0 -33
  764. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-D-ZRixEx.js +0 -97
  765. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BRGOtUTw.js +0 -40
  766. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DRG22Rni.js +0 -27
  767. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-hTWG_JgC.js +0 -27
  768. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-Bch6ffJs.js +0 -78
  769. package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-D7vDHLJg.js +0 -68
  770. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-CEJGX8xu.js +0 -75
  771. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-CFj-5Wj1.js +0 -87
  772. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DMWwCgjE.js +0 -66
  773. package/build/server/chunks/entries/hooks.server.js-Bv9zGnH7.js +0 -196
  774. package/build/server/chunks/entries/pages/_layout.server.ts.js-B8L2LHMx.js +0 -55
  775. package/build/server/chunks/entries/pages/_layout.svelte.js-mE1ylvZx.js +0 -6006
  776. package/build/server/chunks/entries/pages/_page.server.ts.js-_cOOYy2v.js +0 -16
  777. package/build/server/chunks/entries/pages/_page.svelte.js-DhO54eIH.js +0 -4593
  778. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-D0FTUzmj.js +0 -14
  779. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DZyN65FY.js +0 -16
  780. package/build/server/chunks/entries/pages/documents/_page.server.ts.js-BWYcwsIg.js +0 -15
  781. package/build/server/chunks/entries/pages/files/_page.server.ts.js-BEG03-GD.js +0 -17
  782. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-QMwcrq1B.js +0 -11
  783. package/build/server/chunks/entries/pages/health/_page.server.ts.js-BZIK466B.js +0 -16
  784. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-B-PYU4Fl.js +0 -18
  785. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BNw3v_6q.js +0 -902
  786. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-JGGwQnUU.js +0 -18
  787. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-qTUh4jd_.js +0 -16
  788. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-Dq0GEtkE.js +0 -23
  789. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-C__Eq4JY.js +0 -21
  790. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-yHM36su7.js +0 -27
  791. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-hbuSriG9.js +0 -15
  792. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-BQHx5zkX.js +0 -25
  793. package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-sdZaYFpU.js +0 -37
  794. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-IF1ReD0Y.js +0 -11
  795. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DHwDkHQd.js +0 -13
  796. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-BjXcuDrf.js +0 -12
  797. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B2DL8Hen.js +0 -18
  798. package/build/server/chunks/entries/pages/settings/chat/_page.svelte.js-Bw4n3Rb8.js +0 -77
  799. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-Cehfn6Dc.js +0 -19
  800. package/build/server/chunks/entries/pages/settings/discussion/_page.svelte.js-BULWgids.js +0 -148
  801. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BhxlX7Gw.js +0 -16
  802. package/build/server/chunks/entries/pages/settings/events/_page.svelte.js-C4J3V-Km.js +0 -111
  803. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-Byqrbco1.js +0 -15
  804. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-BcPvOZiU.js +0 -83
  805. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-DkqwVO1w.js +0 -797
  806. package/build/server/chunks/entries/pages/settings/firstmate/_page.svelte.js-COfhIHOO.js +0 -254
  807. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-B8J6hnXZ.js +0 -11
  808. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-CxRXDDvw.js +0 -262
  809. package/build/server/chunks/entries/pages/settings/headroom/_page.svelte.js-KeyPKykf.js +0 -126
  810. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BcEWXMpj.js +0 -19
  811. package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-DYyXp3g1.js +0 -567
  812. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BmHgB8g0.js +0 -17
  813. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-CNoIxuWD.js +0 -240
  814. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-he5GGoc9.js +0 -11
  815. package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-B-HA_xqC.js +0 -56
  816. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BQatahF_.js +0 -11
  817. package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-nHBU_yIB.js +0 -62
  818. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-DNRoQOw4.js +0 -15
  819. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-0Y9P6IE9.js +0 -162
  820. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CjTur-7z.js +0 -18
  821. package/build/server/chunks/entries/pages/setup/_page.svelte.js-BRfAhgMm.js +0 -1440
  822. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-DhiKZqaj.js +0 -36
  823. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-CljLpMWM.js +0 -123
  824. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-D_3thBiH.js +0 -24
  825. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CFc6mAZm.js +0 -11
  826. package/build/server/chunks/handler-CZTr7jnf.js +0 -1474
  827. package/build/server/chunks/index.js-Dnsk3VHl.js +0 -4296
  828. package/build/server/chunks/manifest.js-BUXSVtbr.js +0 -1057
  829. package/build/server/chunks/nodes/0.js-Dy4g-w59.js +0 -69
  830. package/build/server/chunks/nodes/1.js-BZdMlY5T.js +0 -9
  831. package/build/server/chunks/nodes/10.js-BAwlBoJa.js +0 -67
  832. package/build/server/chunks/nodes/11.js-BXZsTLxS.js +0 -69
  833. package/build/server/chunks/nodes/12.js-IGOh0TUk.js +0 -68
  834. package/build/server/chunks/nodes/13.js-xFJQYgPz.js +0 -69
  835. package/build/server/chunks/nodes/14.js-aQFtNZVe.js +0 -12
  836. package/build/server/chunks/nodes/15.js-BWtX0jmg.js +0 -9
  837. package/build/server/chunks/nodes/16.js-ZrU_GIhQ.js +0 -9
  838. package/build/server/chunks/nodes/17.js-B7ewoMMr.js +0 -67
  839. package/build/server/chunks/nodes/18.js-D1EmLvOb.js +0 -70
  840. package/build/server/chunks/nodes/19.js-los6dIzm.js +0 -68
  841. package/build/server/chunks/nodes/2.js-CSAcTmGT.js +0 -67
  842. package/build/server/chunks/nodes/20.js-uSPIUyWQ.js +0 -69
  843. package/build/server/chunks/nodes/21.js-Cwjzhqbm.js +0 -68
  844. package/build/server/chunks/nodes/22.js-DryR746a.js +0 -69
  845. package/build/server/chunks/nodes/23.js-DZfGrqKp.js +0 -69
  846. package/build/server/chunks/nodes/24.js-D8ULrrvO.js +0 -25
  847. package/build/server/chunks/nodes/25.js-DC0gdjpz.js +0 -25
  848. package/build/server/chunks/nodes/26.js-n1NiEHBk.js +0 -9
  849. package/build/server/chunks/nodes/27.js-CnXwkd_G.js +0 -25
  850. package/build/server/chunks/nodes/28.js-COqaynXF.js +0 -67
  851. package/build/server/chunks/nodes/3.js-xcWZp9vG.js +0 -9
  852. package/build/server/chunks/nodes/30.js-BtyTIW9R.js +0 -68
  853. package/build/server/chunks/nodes/31.js-CzIpzC7D.js +0 -67
  854. package/build/server/chunks/nodes/32.js-tfTmk3Nw.js +0 -25
  855. package/build/server/chunks/nodes/33.js-DErSEK-C.js +0 -67
  856. package/build/server/chunks/nodes/34.js-CfY4SSD-.js +0 -25
  857. package/build/server/chunks/nodes/35.js-VfYfgOZZ.js +0 -22
  858. package/build/server/chunks/nodes/36.js-CrzEKA02.js +0 -67
  859. package/build/server/chunks/nodes/37.js-Bn98JH8C.js +0 -70
  860. package/build/server/chunks/nodes/38.js-B4kuntVb.js +0 -69
  861. package/build/server/chunks/nodes/39.js-BmPb84xt.js +0 -26
  862. package/build/server/chunks/nodes/4.js-rxVjhE0q.js +0 -68
  863. package/build/server/chunks/nodes/40.js-EQfEmyHN.js +0 -69
  864. package/build/server/chunks/nodes/41.js-DO9PzJUv.js +0 -71
  865. package/build/server/chunks/nodes/42.js-B2_BtK-a.js +0 -68
  866. package/build/server/chunks/nodes/43.js-EkVxTpuO.js +0 -68
  867. package/build/server/chunks/nodes/44.js-DDxmoID1.js +0 -67
  868. package/build/server/chunks/nodes/5.js-1QWYulk_.js +0 -67
  869. package/build/server/chunks/nodes/6.js-BwrwIHcc.js +0 -67
  870. package/build/server/chunks/nodes/8.js-CXJTtH8s.js +0 -67
  871. package/build/server/chunks/nodes/9.js-Cve5Ypay.js +0 -14
  872. /package/build/client/_app/immutable/nodes/{43.C6Qrs38w.js → 44.C6Qrs38w.js} +0 -0
  873. /package/build/client/_app/immutable/nodes/{43.C6Qrs38w.js.br → 44.C6Qrs38w.js.br} +0 -0
  874. /package/build/client/_app/immutable/nodes/{43.C6Qrs38w.js.gz → 44.C6Qrs38w.js.gz} +0 -0
@@ -1,7 +0,0 @@
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"./Dc0ohDnQ.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./Dd_RZdO_.js";import{D as Xt,h as Ze,i as et}from"./CJoZbsMe.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"./C_D8fRYf.js";import{C as ns}from"./B7CIGGfF.js";import{p as os}from"./DGPy4ilM.js";import{i as tt}from"./CosKnXYm.js";import{l as ls}from"./knocoJTV.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
- 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
- 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
- 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
5
- say goes to its inbox as yours, it can answer you here, and Firstmate gets a note of
6
- each message so it stays in step. End the discussion when you’re done; most of the time,
7
- talk to Firstmate.`);n(S,W)},$$slots:{default:!0}})}),n(B,se)},$$slots:{default:!0}})});var me=o(oe,2);{var ke=I=>{var M=Js(),B=w(M,!0);D(()=>h(B,e(H))),n(I,M)};C(me,I=>{e(H)&&I(ke)})}var Y=o(me,2);ue(Y,()=>as,(I,M)=>{M(I,{children:(B,ye)=>{var se=ut(),ae=q(se);{const x=(_,S)=>{re(_,Ce(()=>(S?.()).props,{variant:"ghost",children:(W,fe)=>{$();var X=Fe("Cancel");n(W,X)},$$slots:{default:!0}}))};ue(ae,()=>Vt,(_,S)=>{S(_,{child:x,$$slots:{child:!0}})})}var u=o(ae,2);re(u,{onclick:pt,get disabled(){return e(De)},"data-crew-confirm":!0,children:(x,_)=>{var S=Bs(),K=q(S);{var W=fe=>{Me(fe,{class:"animate-spin"})};C(K,fe=>{e(De)&&fe(W)})}$(),n(x,S)},$$slots:{default:!0}}),n(B,se)},$$slots:{default:!0}})}),n(J,te)},$$slots:{default:!0}})}),n(g,l)},$$slots:{default:!0}})}),D(()=>h(de,e(y)??"You’ll be asked to confirm first: you talk to the worker directly.")),n(t,a)},Tt=t=>{var a=ea(),m=f(a),P=f(m);re(P,{variant:"outline",size:"sm",onclick:()=>_e("status"),"data-quick":"status",children:(l,z)=>{var L=Xs(),A=q(L);it(A,{}),$(),n(l,L)},$$slots:{default:!0}});var U=o(P,2);{var ie=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("resume"),"data-quick":"resume",children:(z,L)=>{var A=Qs(),J=q(A);rt(J,{}),$(),n(z,A)},$$slots:{default:!0}})},de=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("pause"),"data-quick":"pause",children:(z,L)=>{var A=Vs(),J=q(A);at(J,{}),$(),n(z,A)},$$slots:{default:!0}})};C(U,l=>{s.discussion.paused?l(ie):l(de,-1)})}var j=o(U,2);{var xe=l=>{re(l,{variant:"outline",size:"sm",get"aria-pressed"(){return e(he)},onclick:()=>k(he,!e(he)),"data-quick":"terminal",children:(z,L)=>{var A=Zs(),J=q(A);st(J,{});var ce=o(J);D(()=>h(ce,`${e(he)?"Hide":"Show"} its terminal`)),n(z,A)},$$slots:{default:!0}})};C(j,l=>{s.task&&l(xe)})}d(m);var ne=o(m,2),p=f(ne);Wt(p);var r=o(p,2);{let l=R(()=>!e(G).trim());re(r,{type:"submit",size:"icon",class:"rounded-full",get disabled(){return e(l)},"aria-label":"Send",children:(z,L)=>{fs(z,{})},$$slots:{default:!0}})}d(ne);var g=o(ne,4);{var O=l=>{var z=ct(),L=w(z,!0);D(()=>h(L,e(H))),n(l,z)};C(g,l=>{e(H)&&l(O)})}d(a),D(()=>{N(p,"placeholder",`Message ${e(i)??""} directly`),N(p,"aria-label",`Message ${e(i)??""} directly`)}),Qe("submit",ne,l=>{l.preventDefault(),Te()}),Oe("keydown",p,ht),jt(p,()=>e(G),l=>k(G,l)),n(t,a)};C(Nt,t=>{s.discussion?t(Tt,-1):t(qt)})}d(ve),D((t,a,m)=>{N(ve,"aria-label",s.discussion?`Crew discussion with ${e(i)}`:`${e(i)}’s conversation`),N(ve,"data-discussion",s.discussion?e(i):void 0),N(ve,"data-task-chat",e(i)),N(Ie,"data-hue",t),h(kt,a),N(Re,"href",`/tasks/${m??""}`),h(yt,e(i)),h(bt,s.task?.title??s.discussion?.title??""),h(Dt,`${e(V)??"Worker"??""}${s.task?` · ${s.task.statusLabel}`:" · no longer in the fleet"}`)},[()=>Ze(e(i)),()=>et(e(i)),()=>encodeURIComponent(e(i))]),Qe("scroll",ge,()=>{e(ee)&&(We=e(ee).scrollTop+e(ee).clientHeight>=e(ee).scrollHeight-40)}),n(E,ve),mt()}$t(["click","keydown"]);export{Na as D,ws as T,xs as U};
@@ -1 +0,0 @@
1
- import{p as r}from"./AYO6DeDt.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
@@ -1 +0,0 @@
1
- @��8�j��@�\[������f�ٸ�b��-=� "�ځp����D�'فF����Y�^fTz���m�␨�o��}�g�f7�o±�I���A����ǔ�L��M��lS]+dE��^�~L�Hؓ��֪��HŽ\��0�6
@@ -1,3 +0,0 @@
1
- import{w as O,v as U,X as A,ai as N,b9 as P,d as l,i as c,k as u,e as y}from"./Jk-ASPRO.js";import"./DsnmJJEf.js";import{s as C,r as M}from"./DQWg__9S.js";import{I as F}from"./DE0e4nJ8.js";import{p as q}from"./DGPy4ilM.js";import{a as D}from"./BdjCJ4uL.js";import{s as E}from"./CVUv3vK_.js";import{S as b}from"./BXN538J3.js";function at(a,t,e){O(()=>{var s=U(()=>t(a,e?.())||{});if(e&&s?.update){var i=!1,n={};A(()=>{var r=e();N(r),i&&P(n,r)&&(n=r,s.update(r))}),i=!0}if(s?.destroy)return()=>s.destroy()})}var j=new Set(["$$slots","$$events","$$legacy"]);function ht(a,t){let e=M(t,j);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"}]]};F(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"}]]};F(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
- `)}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
- `)}const ut=()=>q.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 v=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("note");get sendAs(){return c(this.#r)}set sendAs(t){u(this.#r,t,!0)}#o=l(!0);get speak(){return c(this.#o)}set speak(t){u(this.#o,t,!0)}#a=l(!0);get mask(){return c(this.#a)}set mask(t){u(this.#a,t,!0)}#h=l(!0);get shootClicks(){return c(this.#h)}set shootClicks(t){u(this.#h,t,!0)}#l=l(y([]));get events(){return c(this.#l)}set events(t){u(this.#l,t,!0)}#c=l(y([]));get remarks(){return c(this.#c)}set remarks(t){u(this.#c,t,!0)}#u=l(y([]));get notes(){return c(this.#u)}set notes(t){u(this.#u,t,!0)}#p=l(y([]));get convo(){return c(this.#p)}set convo(t){u(this.#p,t,!0)}#d=l({});get shots(){return c(this.#d)}set shots(t){u(this.#d,t)}#f=l(y([]));get fresh(){return c(this.#f)}set fresh(t){u(this.#f,t,!0)}#g=l("");get heard(){return c(this.#g)}set heard(t){u(this.#g,t,!0)}#k=l("/");get page(){return c(this.#k)}set page(t){u(this.#k,t,!0)}#m=l(!1);get talking(){return c(this.#m)}set talking(t){u(this.#m,t,!0)}#y=l(!1);get locked(){return c(this.#y)}set locked(t){u(this.#y,t,!0)}#v=l(null);get hearing(){return c(this.#v)}set hearing(t){u(this.#v,t,!0)}#w=l(null);get scribeSays(){return c(this.#w)}set scribeSays(t){u(this.#w,t,!0)}#b=l(!1);get notesBusy(){return c(this.#b)}set notesBusy(t){u(this.#b,t,!0)}#$=l(!1);get replyBusy(){return c(this.#$)}set replyBusy(t){u(this.#$,t,!0)}#S=l(!1);get speaking(){return c(this.#S)}set speaking(t){u(this.#S,t,!0)}#x=l(null);get notice(){return c(this.#x)}set notice(t){u(this.#x,t,!0)}#I=l(null);get pack(){return c(this.#I)}set pack(t){u(this.#I,t,!0)}#T=l(!1);get marking(){return c(this.#T)}set marking(t){u(this.#T,t,!0)}#D=l(!1);get picking(){return c(this.#D)}set picking(t){u(this.#D,t,!0)}#E=l(null);get picked(){return c(this.#E)}set picked(t){u(this.#E,t,!0)}#R=l(null);get approved(){return c(this.#R)}set approved(t){u(this.#R,t,!0)}#C=l(!1);get approving(){return c(this.#C)}set approving(t){u(this.#C,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&&v(e.url)!==this.page;this.page=v(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==="mode"){this.sendAs=e.mode==="ask"?"ask":"note";return}if(e.type==="inline"){this.inline(e.el??null,e.said??"",e.mode==="ask"?"ask":"note");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=v(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 ${v(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),g=e.el?.rect;if(g&&g.w>0){const f=6*d,[S,x,I,T]=[g.x*d-f,g.y*d-f,g.w*d+f*2,g.h*d+f*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 f=o.width/(e.point.vw||e.vw||o.width);h.strokeStyle="#e8b04a",h.lineWidth=Math.max(3,3*f),h.beginPath(),h.arc(e.point.x*f,e.point.y*f,16*f,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():t.key==="pick"&&this.pick(!this.picking)}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.toFrame({type:"clear"}),this.on&&this.askNotes()}inline(t,e,s){const i=e.trim();if(!i||this.pack)return;if(s==="ask"&&this.paused){this.notice="Paused: carry on to ask the scribe.";return}const n=this.picked;this.started||(this.started=Date.now()),this.picked=t?{el:t,shotId:this.shoot(t.selector,t.text)}:null,s==="note"?this.comment(i):(this.on||this.start(),this.type(i)),this.picked=n}edit(t,e){const s=e.trim(),i=this.remarks.find(n=>n.id===t);if(!(!s||!i||this.pack||i.text===s)){i.text=s;for(const n of this.convo)n.uid===t&&n.who==="captain"&&(n.text=s);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=this.picked;this.picked=null;const o=r?{pointing:r.el}:G(this.events,t,e,s,i),p={id:`u${++this.ut}`,t0:e,t1:Math.max(s,e+600),text:t,page:this.page,anchor:"ev"in o?o.ev.id:null,pointing:"pointing"in o?o.pointing:null,shotId:r?r.shotId:"ev"in o&&o.ev.shotId?o.ev.shotId:n};this.remarks.push(p),this.convo.push({who:"captain",text:t,t:e,uid:p.id}),this.toFrame({type:"clear"}),this.heard="",this.askNotes(),this.mode==="talk"&&this.askReply(p)}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(g=>g.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 +0,0 @@
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"./DGPy4ilM.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,3 +0,0 @@
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"./DGPy4ilM.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"./CVA6C1xn.js";import{P as ft,i as pt,f as mt,m as vt}from"./549Ic5KL.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
- 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
- ${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,6 +0,0 @@
1
- import"./DsnmJJEf.js";import{s as ct,r as mt,p as Me}from"./DQWg__9S.js";import{I as ut}from"./DE0e4nJ8.js";import{i as Kt}from"./CosKnXYm.js";import{p as Ye,d as ge,e as St,h as i,s as a,r as o,t as f,i as e,k as F,a as n,n as we,b as qe,j as S,c as s,q as Ze,o as q,f as ve,l as at,x as Je,m as Ht}from"./Jk-ASPRO.js";import{d as Ge,s as D,a as re,e as lt}from"./DTApYZoW.js";import{i as v}from"./BEVJas-l.js";import{e as Se,r as Be,a as O,g as He,f as dt,s as me,c as Xe,i as Qt}from"./DNP6oCAK.js";import{b as Qe}from"./CNxxt--f.js";import{D as wt,N as xt,w as yt,W as zt,u as Vt,x as Zt,y as Jt,z as $t,A as ea,r as ta}from"./Dc0ohDnQ.js";import{X as bt}from"./m8-RluHE.js";import{C as aa}from"./BbEKXuJh.js";import{C as ra}from"./C_BRvYKD.js";import{P as rt}from"./fzA2mGC3.js";import{C as nt}from"./c9k4nDgn.js";import{L as ot}from"./DFaX1kYU.js";import{C as na}from"./BPBomwti.js";import{G as oa}from"./MgFVe5-f.js";import{F as Lt}from"./CGgXi5F1.js";import{c as Dt}from"./Cq7OFmxz.js";import{L as sa}from"./DZZuZ7Nl.js";import{p as st,u as Mt,L as it,M as Tt}from"./C97qdOZ6.js";import{d as ia,P as da}from"./BoEQDqEX.js";import{M as At,b as la}from"./Bw9VDV5E.js";import{L as ca}from"./B65GEZdd.js";import{E as ht}from"./gEZHG5dd.js";import{h as ma,m as ua}from"./CGnI1F6D.js";import{b as va}from"./DLfKkHEy.js";import{D as pa,d as fa}from"./DMIaeBcI.js";import{L as xa}from"./B6qh5sP6.js";import{D as ha}from"./Um44Ka4n.js";var ga=new Set(["$$slots","$$events","$$legacy"]);function An(x,t){let u=mt(t,ga);const r={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]]};ut(x,ct(()=>u,{get icon(){return r}}))}var ba=new Set(["$$slots","$$events","$$legacy"]);function _a(x,t){let u=mt(t,ba);const r={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]]};ut(x,ct(()=>u,{get icon(){return r}}))}var ka=new Set(["$$slots","$$events","$$legacy"]);function wa(x,t){let u=mt(t,ka);const r={name:"list-checks",size:24,node:[["path",{d:"M13 5h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 19h8"}],["path",{d:"m3 17 2 2 4-4"}],["path",{d:"m3 7 2 2 4-4"}]]};ut(x,ct(()=>u,{get icon(){return r}}))}var ya=new Set(["$$slots","$$events","$$legacy"]);function In(x,t){let u=mt(t,ya);const r={name:"undo-2",size:24,node:[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]]};ut(x,ct(()=>u,{get icon(){return r}}))}const Cn=(x,t,u,r)=>Kt.answer(x,t.choice,u,r,t.picks,t.decided,t.partial),za=28,Ve=300,gt=(x,t={})=>({choice:x,picks:null,decided:null,...t}),Da={merge:[{label:"Merge",choice:"approve"},{label:"Not yet",choice:"skip"}],preview:[{label:"Sign it off",choice:"approve"},{label:"Request changes",choice:"fix"}],hold:[{label:"Go ahead",choice:"approve"},{label:"Not like this",choice:"fix"}],decision:[{label:"Go ahead",choice:"approve"},{label:"Change course",choice:"fix"}],blocked:[{label:"Go ahead",choice:"approve"},{label:"Try another way",choice:"fix"}],review:[{label:"Keep it as is",choice:"approve"},{label:"Fix it",choice:"fix"},{label:"Leave it for later",choice:"skip"}]},Ma=/^(?:which|what|how|where|who|when|why)\b/i;function Ta(x){const t=(x??"").match(/[^.?!]*\?/g),u=t?.[t.length-1]?.trim();return!!u&&Ma.test(u)}function On(x){const t=x.choices;if(t){const[_]=t.calls;return t.calls.length===1&&_.options.length?{kind:"choice",prompt:_.prompt,from:"card",options:_.options.map(p=>({id:p.id,label:p.label,detail:p.detail,recommended:p.recommended,answer:gt("approve",{picks:{[_.id]:p.id}})}))}:{kind:"picks",prompt:null,choices:t,from:"card"}}if((x.kind==="hold"||x.kind==="decision")&&Ta(x.question))return{kind:"text",prompt:null,from:"card"};const u=x.recommendation?.choice??(x.kind==="merge"?"approve":null),r=Da[x.kind],c=r.map(_=>({id:_.choice,label:_.label,detail:null,recommended:_.choice===u,answer:gt(_.choice)}));return{kind:r.length===2?"buttons":"choice",prompt:null,options:c,from:"card"}}const _t=/```decision-form[^\n]*\n([\s\S]*?)(?:```|$)/g,It=/\s*\((?:recommended|rec)\)\s*/i,Aa=/^\(written(?: answer)?\)$/i,Ct=x=>x.replace(/\s+/g," ").trim();function Sn(x){const t=[...x.matchAll(_t)],u=t[t.length-1]?.[1];if(u===void 0)return null;let r=null,c=!1;const _=[];for(const W of u.split(`
2
- `)){const L=W.trim();if(!L)continue;const M=/^[-*•]\s+(.*)$/.exec(L)?.[1];if(M===void 0){r??=Ct(L);continue}if(Aa.test(M.trim())){c=!0;continue}const ne=It.test(M),b=Ct(M.replace(It," ")),U=b.search(/:\s|\s[–—]\s/),P=(U>0?b.slice(0,U):b).trim().slice(0,Ve),Z=U>0&&b.slice(U).replace(/^[:–—]?\s*/,"").trim()||null;P&&_.push({id:`o${_.length+1}`,label:P,detail:Z,recommended:ne,answer:gt("approve",{decided:P})})}return _.length?{kind:_.length===2&&_.every(W=>!W.detail&&W.label.length<=za)?"buttons":"choice",prompt:r,options:_,from:"firstmate"}:c||r?{kind:"text",prompt:r,from:"firstmate"}:null}const Ia=/^```decision-form[^\S\n]+(?:[^\n]*\s)?id=([A-Za-z0-9][\w.@-]{0,199})(?=\s|$)/;function Ln(x){const t=[...x.matchAll(_t)],u=t[t.length-1];return u?Ia.exec(u[0])?.[1]??null:null}const Nn=x=>x.replace(_t,"").trim();function En(x,t){if(t.picks)return t.picks;if(x&&(x.kind==="buttons"||x.kind==="choice")){const u=x.options.find(r=>r.answer.choice===t.choice&&!r.answer.decided);if(u)return u.label}return t.label}var Ca=s('<label class="inline-flex min-h-9 cursor-pointer items-center gap-1.5 rounded-full border px-2.5 text-xs transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 max-md:min-h-11"><input type="radio" class="accent-sea"/> </label>'),Oa=s('<input type="text" placeholder="Why it is not needed" aria-label="Your reason for dismissing it" class="mt-2 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-11 max-md:text-base"/>'),Sa=s('<form class="mt-2 rounded-md border bg-background/60 px-3 py-2.5 text-sm" data-dismiss-picker=""><fieldset><legend class="text-xs font-medium text-muted-foreground">Dismiss it without an answer. Why?</legend> <div class="mt-1.5 flex flex-wrap gap-1.5"></div></fieldset> <!> <div class="mt-2 flex flex-wrap items-center gap-1.5"><button type="submit" class="inline-flex min-h-9 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50 max-md:min-h-11" data-dismiss-confirm=""><!>Dismiss it</button> <button type="button" class="inline-flex min-h-9 cursor-pointer items-center rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground max-md:min-h-11">Cancel</button> <span class="text-xs text-muted-foreground">Firstmate records it closed everywhere.</span></div></form>');function La(x,t){Ye(t,!0);let u=Me(t,"disabled",3,!1);const r="own";let c=ge(St(wt[0])),_=ge("");const p=S(()=>e(c)===r?e(_).trim():e(c));var W=Sa(),L=i(W),M=a(i(L),2);Se(M,20,()=>[...wt,r],A=>A,(A,B)=>{var J=Ca(),ee=i(J);Be(ee);var xe=a(ee,1,!0);o(J),f(()=>{O(ee,"name",`dismiss-${t.name??""}`),He(ee,B),dt(ee,e(c)===B),D(xe,B===r?"Another reason":B)}),re("change",ee,()=>F(c,B,!0)),n(A,J)}),o(M),o(L);var ne=a(L,2);{var b=A=>{var B=Oa();Be(B),f(()=>O(B,"maxlength",xt)),Qe(B,()=>e(_),J=>F(_,J)),n(A,B)};v(ne,A=>{e(c)===r&&A(b)})}var U=a(ne,2),P=i(U),Z=i(P);bt(Z,{class:"size-3.5","aria-hidden":"true"}),we(),o(P);var Q=a(P,2);we(2),o(U),o(W),f(()=>P.disabled=u()||e(c)===r&&!e(p)),lt("submit",W,A=>{A.preventDefault(),!u()&&(e(c)!==r||e(p))&&t.onDismiss(e(p)||null)}),re("click",Q,function(...A){t.onCancel?.apply(this,A)}),n(x,W),qe()}Ge(["change","click"]);var Na=s('<form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" placeholder="Your own answer" aria-label="Your own answer" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none max-md:self-center max-md:text-base" data-other-text=""></textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5" data-other-send=""><!>Send</button></form>'),Ea=s('<p class="text-sm leading-snug font-medium"> </p>'),Ra=s('<p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-decided=""><!><span>You decided <span class="font-semibold"> </span></span></p>'),ja=s('<p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-dismissed=""><!><span> </span></p>'),Wa=s('<span class="text-xs font-normal opacity-80">· recommended</span>'),Pa=s("<button> <!></button>"),Fa=s('<div class="mt-2 flex flex-wrap items-center gap-1.5 max-md:flex-col max-md:items-stretch max-md:gap-2" role="group" aria-label="Answer"><!> <button data-other=""><!>Other…</button></div> <!>',1),Ya=s('<span class="text-foreground/85"> </span>'),Ot=s('<span class="ml-1.5 text-xs font-medium whitespace-nowrap text-brass">Recommended</span>'),qa=s('<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><span class="font-semibold"> </span><!><!></span></label>'),Ua=s('<textarea rows="2" placeholder="Your own answer" aria-label="Your own answer" class="mt-2 block field-sizing-content max-h-40 min-h-12 w-full resize-none rounded-md border border-input bg-background px-2.5 py-1.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:text-base" data-other-text=""></textarea>'),Xa=s('<div class="mt-2 flex flex-col gap-1.5 max-md:gap-2" role="radiogroup"><!> <label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border border-dashed px-2.5 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:checked]:text-foreground has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base" data-other=""><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="inline-flex min-w-0 items-center gap-1 leading-snug"><!>Other: write your own answer</span></label></div> <!> <div class="mt-2.5"><button data-decide=""><!> </button></div>',1),Ba=s("<span> </span>"),Ga=s('<span class="ml-1.5 text-[0.68rem] font-semibold tracking-[0.06em] whitespace-nowrap text-brass uppercase" data-call-key="">matters most</span>'),Ka=s('<span class="ml-1 font-normal text-muted-foreground">· optional</span>'),Ha=s('<span class="font-semibold"> </span><span class="text-foreground/85"> </span>',1),Qa=s('<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio" class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><!><!></span></label>'),Va=s('<p class="mt-1.5 border-l-2 border-brass pl-2.5 text-xs leading-relaxed text-muted-foreground" data-call-why=""><span class="font-medium text-foreground"> </span> </p>'),Za=s("<div></div> <!>",1),Ja=s('<input type="text" placeholder="Your answer (optional)" class="mt-1.5 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-12 max-md:text-base"/>'),$a=s('<fieldset class="min-w-0"><legend class="text-sm leading-snug font-medium"><!> <!><!></legend> <!></fieldset>'),er=s('<p class="mt-2.5 text-xs text-muted-foreground" data-picks-left=""> </p>'),tr=s('<button data-send-partial=""> </button>'),ar=s('<p class="mt-1.5 text-xs text-muted-foreground"> </p>'),rr=s('<div class="mt-2 flex flex-col gap-3" role="group" aria-label="Your picks"></div> <!> <div class="mt-2.5 flex flex-wrap gap-1.5 max-md:flex-col max-md:gap-2"><button data-decide=""><!> </button> <!> <button data-other=""><!>Other…</button> <!></div> <!>',1),nr=s('<form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" placeholder="Your answer" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none max-md:self-center max-md:text-base"></textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5" data-decide=""><!>Decide</button></form>'),or=s('<label class="mt-2 block"><span class="sr-only">Note for Firstmate (optional)</span> <textarea rows="1" placeholder="A note to go with your answer (optional)" class="block field-sizing-content max-h-40 min-h-9 w-full resize-none rounded-md border border-input bg-background px-2.5 py-1.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:text-base"></textarea></label>'),sr=s('<button class="mt-1.5 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm"><!>Add a note</button>'),ir=s('<button class="mt-1.5 ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm" data-dismiss=""><!>Dismiss</button>'),dr=s('<div class="mt-3"><!> <!> <!> <!></div>');function Rn(x,t){Ye(t,!0);const u=d=>{var m=Na(),l=i(m);at(l);var h=a(l,2),T=i(h);nt(T,{class:"size-3.5","aria-hidden":"true"}),we(),o(h),o(m),f(g=>{O(l,"maxlength",Ve),l.disabled=!r(),h.disabled=g},[()=>!r()||!e(P).trim()]),lt("submit",m,g=>{g.preventDefault(),xe()}),Qe(l,()=>e(P),g=>F(P,g)),n(d,m)};let r=Me(t,"canAnswer",3,!0),c=Me(t,"decided",3,null),_=Me(t,"dismissed",3,null),p=Me(t,"other",15,!1),W=Me(t,"draft",3,null),L=ge(null),M=ge(St({})),ne=ge(""),b=ge(""),U=ge(!1),P=ge(""),Z=ge(!1);const Q="other";let A=0;Ze(()=>{if(!W()||W().at===A||t.form.kind!=="picks")return;A=W().at;const d=t.form.choices.calls,m={...e(M)},l=[];for(const[h,T]of Object.entries(W().picks))d.find(g=>g.id===h)?.options.some(g=>g.id===T)&&(m[h]=T);for(const[h,T]of Object.entries(W().words)){const g=d.find(ue=>ue.id===h);if(!g)continue;const H=yt(g)||h;g.options.length?l.push(`${H}${/[?:]$/.test(H)?"":":"} ${T}`):m[h]=T.slice(0,zt)}F(M,m,!0),l.length&&(F(b,[e(b).trim(),...l].filter(Boolean).join(`
3
- `).slice(0,xt),!0),F(U,!0))});const B=S(()=>t.form.kind==="buttons"||t.form.kind==="choice"?t.form.options:[]),J=S(()=>p()?null:e(B).find(d=>d.id===e(L))??e(B).find(d=>d.recommended)??null),ee=S(()=>c()!==null||_()!==null),xe=()=>{const d=e(P).trim();d&&te({choice:"approve",picks:null,decided:d.slice(0,Ve),other:!0})},he=S(()=>t.form.kind==="picks"?$t(t.form.choices,e(M)):[]),I=S(()=>t.form.kind==="picks"?Jt(t.form.choices,e(M)).length:0),R=S(()=>t.form.kind==="picks"?t.form.choices.calls.length:0),te=d=>t.onAnswer(d,e(b).trim()||null),be=d=>d.options.every(m=>!m.detail&&m.label.length<=28),ye="border-sea bg-sea text-on-accent hover:bg-sea/90";var N=dr(),oe=i(N);{var E=d=>{var m=Ea(),l=q(m,!0);f(()=>D(l,t.form.prompt)),n(d,m)};v(oe,d=>{t.form.prompt&&d(E)})}var y=a(oe,2);{var ae=d=>{var m=Ra(),l=i(m);aa(l,{class:"mt-0.5 size-3.5 shrink-0 text-success","aria-hidden":"true"});var h=a(l),T=a(i(h)),g=q(T,!0);o(h),o(m),f(()=>D(g,c())),n(d,m)},k=d=>{var m=ja(),l=i(m);ra(l,{class:"mt-0.5 size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var h=a(l),T=q(h);o(m),f(()=>D(T,`You dismissed it${_()?`: ${_()}`:""}`)),n(d,m)},w=d=>{var m=Fa(),l=ve(m),h=i(l);Se(h,17,()=>t.form.options,pe=>pe.id,(pe,Le)=>{var _e=Pa(),Te=i(_e,!0),ze=a(Te);{var Ke=fe=>{var ce=Wa();n(fe,ce)};v(ze,fe=>{e(Le).recommended&&fe(Ke)})}o(_e),f(()=>{me(_e,1,`inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base ${e(Le).recommended?ye:"bg-background hover:bg-accent"}`),_e.disabled=!r(),O(_e,"data-option",e(Le).id),D(Te,e(Le).label)}),re("click",_e,()=>te(e(Le).answer)),n(pe,_e)});var T=a(h,2);me(T,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-dashed bg-background text-muted-foreground hover:bg-accent hover:text-foreground");var g=i(T);rt(g,{class:"size-3.5","aria-hidden":"true"}),we(),o(T),o(l);var H=a(l,2);{var ue=pe=>{u(pe)};v(H,pe=>{p()&&pe(ue)})}f(()=>{T.disabled=!r(),O(T,"aria-expanded",p())}),re("click",T,()=>p(!p())),n(d,m)},X=d=>{var m=Xa(),l=ve(m),h=i(l);Se(h,17,()=>t.form.options,fe=>fe.id,(fe,ce)=>{var je=qa(),Ne=i(je);Be(Ne);var V=a(Ne,2),C=i(V),De=q(C,!0),Re=a(C);{var Ue=Ae=>{var We=Ya(),pt=q(We,!0);f(()=>D(pt,` · ${e(ce).detail}`)),n(Ae,We)};v(Re,Ae=>{e(ce).detail&&Ae(Ue)})}var $e=a(Re);{var vt=Ae=>{var We=Ot();n(Ae,We)};v($e,Ae=>{e(ce).recommended&&Ae(vt)})}o(V),o(je),f(()=>{O(Ne,"name",`form-${t.name??""}`),He(Ne,e(ce).id),dt(Ne,e(J)?.id===e(ce).id),Ne.disabled=!r(),D(De,e(ce).label)}),re("change",Ne,()=>{F(L,e(ce).id,!0),p(!1)}),n(fe,je)});var T=a(h,2),g=i(T);Be(g),He(g,Q);var H=a(g,2),ue=i(H);rt(ue,{class:"size-3.5 shrink-0","aria-hidden":"true"}),we(),o(H),o(T),o(l);var pe=a(l,2);{var Le=fe=>{var ce=Ua();at(ce),f(()=>{O(ce,"maxlength",Ve),ce.disabled=!r()}),Qe(ce,()=>e(P),je=>F(P,je)),n(fe,ce)};v(pe,fe=>{p()&&fe(Le)})}var _e=a(pe,2),Te=i(_e);me(Te,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90");var ze=i(Te);nt(ze,{class:"size-3.5","aria-hidden":"true"});var Ke=a(ze,1,!0);o(Te),o(_e),f(fe=>{O(l,"aria-label",t.form.prompt??"Options"),O(g,"name",`form-${t.name??""}`),dt(g,p()),g.disabled=!r(),Te.disabled=fe,D(Ke,p()?"Send your answer":`Decide${e(J)?`: ${e(J).label}`:""}`)},[()=>!r()||(p()?!e(P).trim():!e(J))]),re("change",g,()=>p(!0)),re("click",Te,()=>p()?xe():e(J)&&te(e(J).answer)),n(d,m)},j=d=>{const m=S(()=>Zt(t.form.choices,e(M)));var l=rr(),h=ve(l);Se(h,21,()=>t.form.choices.calls,V=>V.id,(V,C)=>{const De=S(()=>Vt(e(C)));var Re=$a(),Ue=i(Re),$e=i(Ue);{var vt=de=>{var le=Ba(),Ie=q(le,!0);f(()=>{me(le,1,`mr-1.5 font-mono text-xs text-muted-foreground tabular-nums ${e(C).key?"text-brass":""}`),D(Ie,e(C).tag?e(De):`${e(De)}.`)}),n(de,le)};v($e,de=>{e(De)!==null&&de(vt)})}var Ae=a($e,1,!0),We=a(Ae);{var pt=de=>{var le=Ga();n(de,le)};v(We,de=>{e(C).key&&de(pt)})}var Nt=a(We);{var Et=de=>{var le=Ka();n(de,le)};v(Nt,de=>{e(C).required||de(Et)})}o(Ue);var Rt=a(Ue,2);{var jt=de=>{var le=Za(),Ie=ve(le);Se(Ie,21,()=>e(C).options,Ee=>Ee.id,(Ee,ke)=>{var Pe=Qa(),Ce=i(Pe);Be(Ce);var et=a(Ce,2),tt=i(et);{var ft=Oe=>{var Fe=Ha(),kt=ve(Fe),Xt=q(kt,!0),Bt=a(kt),Gt=q(Bt,!0);f(()=>{D(Xt,e(ke).label),D(Gt,` · ${e(ke).detail}`)}),n(Oe,Fe)},Yt=Oe=>{var Fe=Ht();f(()=>D(Fe,e(ke).label)),n(Oe,Fe)};v(tt,Oe=>{e(ke).detail?Oe(ft):Oe(Yt,-1)})}var qt=a(tt);{var Ut=Oe=>{var Fe=Ot();n(Oe,Fe)};v(qt,Oe=>{e(ke).recommended&&Oe(Ut)})}o(et),o(Pe),f(()=>{O(Ce,"name",`pick-${t.name??""}-${e(C).id??""}`),He(Ce,e(ke).id),dt(Ce,e(m)[e(C).id]===e(ke).id),Ce.disabled=!r()}),re("change",Ce,()=>F(M,{...e(M),[e(C).id]:e(ke).id},!0)),n(Ee,Pe)}),o(Ie);var Pt=a(Ie,2);{var Ft=Ee=>{const ke=S(()=>e(C).options.find(ft=>ft.recommended));var Pe=Va(),Ce=i(Pe),et=q(Ce),tt=a(Ce);o(Pe),f(()=>{D(et,`Why ${e(ke)?`${e(ke).label.length===1?`(${e(ke).label})`:e(ke).label} is recommended`:"Firstmate recommends it"}:`),D(tt,` ${e(C).why??""}`)}),n(Ee,Pe)};v(Pt,Ee=>{e(C).why&&Ee(Ft)})}f(Ee=>me(Ie,1,`mt-1.5 flex gap-1.5 max-md:flex-col max-md:gap-2 ${Ee??""}`),[()=>be(e(C))?"flex-wrap":"flex-col"]),n(de,le)},Wt=de=>{var le=Ja();Be(le),f(Ie=>{He(le,e(M)[e(C).id]??""),O(le,"maxlength",zt),le.disabled=!r(),O(le,"aria-label",`Your answer to ${Ie??""}`)},[()=>yt(e(C))||"this call"]),re("input",le,Ie=>F(M,{...e(M),[e(C).id]:Ie.currentTarget.value},!0)),n(de,le)};v(Rt,de=>{e(C).options.length?de(jt):de(Wt,-1)})}o(Re),f(()=>{O(Ue,"data-call",e(C).id),D(Ae,e(C).prompt??"Pick one")}),n(V,Re)}),o(h);var T=a(h,2);{var g=V=>{var C=er(),De=q(C);f(()=>D(De,`${e(I)??""} of ${e(R)??""} picked · the calls you leave take the recommendation.`)),n(V,C)};v(T,V=>{e(R)>1&&e(I)<e(R)&&!e(he).length&&V(g)})}var H=a(T,2),ue=i(H);me(ue,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90");var pe=i(ue);nt(pe,{class:"size-3.5","aria-hidden":"true"});var Le=a(pe,1,!0);o(ue);var _e=a(ue,2);{var Te=V=>{var C=tr();me(C,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base bg-background hover:bg-accent");var De=q(C);f(()=>{C.disabled=!r(),D(De,`Send ${e(I)??""}, keep ${e(R)-e(I)} waiting`)}),re("click",C,()=>te({choice:"approve",picks:e(M),decided:null,partial:!0})),n(V,C)};v(_e,V=>{e(R)>1&&e(I)>0&&e(I)<e(R)&&V(Te)})}var ze=a(_e,2);me(ze,1,"inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-dashed bg-background text-muted-foreground hover:bg-accent hover:text-foreground");var Ke=i(ze);rt(Ke,{class:"size-3.5","aria-hidden":"true"}),we(),o(ze);var fe=a(ze,2);{var ce=V=>{var C=ar(),De=q(C);f(Re=>D(De,`Pick one for ${Re??""} to decide.`),[()=>e(he).map(ea).join(", ")]),n(V,C)};v(fe,V=>{e(he).length&&V(ce)})}o(H);var je=a(H,2);{var Ne=V=>{u(V)};v(je,V=>{p()&&V(Ne)})}f(()=>{ue.disabled=!r()||e(he).length>0,D(Le,e(R)>1&&e(I)<e(R)?`Send all ${e(R)}`:"Decide"),ze.disabled=!r(),O(ze,"aria-expanded",p())}),re("click",ue,()=>te({choice:"approve",picks:e(M),decided:null})),re("click",ze,()=>p(!p())),n(d,l)},Y=d=>{var m=nr(),l=i(m);at(l);var h=a(l,2),T=i(h);nt(T,{class:"size-3.5","aria-hidden":"true"}),we(),o(h),o(m),f(g=>{O(l,"maxlength",Ve),l.disabled=!r(),O(l,"aria-label",t.form.prompt??"Your answer"),h.disabled=g},[()=>!r()||!e(ne).trim()]),lt("submit",m,g=>{g.preventDefault();const H=e(ne).trim();H&&te({choice:"approve",picks:null,decided:H})}),Qe(l,()=>e(ne),g=>F(ne,g)),n(d,m)};v(y,d=>{c()!==null?d(ae):_()!==null?d(k,1):t.form.kind==="buttons"?d(w,2):t.form.kind==="choice"?d(X,3):t.form.kind==="picks"?d(j,4):d(Y,-1)})}var G=a(y,2);{var $=d=>{},se=d=>{var m=or(),l=a(i(m),2);at(l),o(m),f(()=>O(l,"maxlength",xt)),Qe(l,()=>e(b),h=>F(b,h)),n(d,m)},ie=d=>{var m=sr(),l=i(m);rt(l,{class:"size-3","aria-hidden":"true"}),we(),o(m),re("click",m,()=>F(U,!0)),n(d,m)};v(G,d=>{e(ee)?d($):e(U)?d(se,1):r()&&d(ie,2)})}var z=a(G,2);{var K=d=>{var m=Je(),l=ve(m);{var h=g=>{La(g,{get name(){return t.name},onDismiss:H=>{F(Z,!1),t.onDismiss(H)},onCancel:()=>F(Z,!1)})},T=g=>{var H=ir(),ue=i(H);bt(ue,{class:"size-3","aria-hidden":"true"}),we(),o(H),re("click",H,()=>F(Z,!0)),n(g,H)};v(l,g=>{e(Z)?g(h):g(T,-1)})}n(d,m)};v(z,d=>{t.onDismiss&&!e(ee)&&r()&&d(K)})}o(N),f(()=>{O(N,"data-decision-form",t.form.kind),O(N,"data-form-from",t.form.from)}),n(x,N),qe()}Ge(["click","change","input"]);var lr=s('<span class="font-normal"> </span>'),cr=s('<dt class="text-muted-foreground">Asked</dt> <dd> </dd>',1),mr=s('<span class="mr-1.5 rounded bg-danger/10 px-1 text-xs font-medium text-danger">Serious</span>'),ur=s('<p class="mt-0.5 font-mono text-xs text-muted-foreground"> </p>'),vr=s('<p class="mt-1 text-xs leading-relaxed text-muted-foreground"><!></p>'),pr=s('<li><p class="leading-snug"><!><!></p> <!> <!></li>'),fr=s('<ol class="space-y-2.5"></ol>'),xr=s('<div><p class="text-xs font-medium text-muted-foreground">As Firstmate wrote it</p> <p class="mt-0.5 leading-relaxed text-muted-foreground"><!></p></div>'),hr=s('<p class="leading-relaxed whitespace-pre-line text-muted-foreground"><!></p>'),gr=s('<span class="ml-1.5 text-muted-foreground"> </span>'),br=s('<li><a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 break-all text-sea hover:underline"><!> </a><!></li>'),_r=s('<li class="inline-flex items-center gap-1 text-muted-foreground"><!>Findings file <span class="font-mono break-all"> </span></li>'),kr=s('<ul class="flex flex-col gap-1 text-xs"><!> <!></ul>'),wr=s('<div class="mt-2 space-y-3 rounded-md border bg-background/60 p-3 text-sm" data-details-panel=""><dl class="grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">Decision</dt> <dd class="min-w-0 font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Raised by</dt> <dd class="min-w-0 break-words"> </dd></dl> <!> <!> <!> <!></div>'),yr=s('<button class="touch-target mt-3 flex cursor-pointer items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground" data-details="">Details<!><!></button> <!>',1);function jn(x,t){Ye(t,!0);let u=Me(t,"expanded",3,!1),r=Me(t,"withText",3,!0);const c=S(()=>t.card.evidence),_=S(()=>t.card.kind==="hold"?t.card.key:`${t.card.taskId} · ${t.card.key}`),p=S(()=>t.card.question!==t.card.title?t.card.question:null),W=S(()=>t.card.askedAt?new Date(t.card.askedAt).toLocaleString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}):null);var L=yr(),M=ve(L),ne=a(i(M));{let Q=S(()=>u()?"rotate-180":"");na(ne,{get class(){return`size-3.5 transition-transform ${e(Q)??""}`},"aria-hidden":"true"})}var b=a(ne);{var U=Q=>{var A=lr(),B=q(A);f(()=>D(B,`${e(c).findings.length?` · ${e(c).findings.length} ${e(c).findings.length===1?"finding":"findings"}`:""}${e(c).pr?" · pull request":""}`)),n(Q,A)};v(b,Q=>{u()||Q(U)})}o(M);var P=a(M,2);{var Z=Q=>{var A=wr(),B=i(A),J=a(i(B),2),ee=q(J,!0),xe=a(J,2);{var he=k=>{var w=cr(),X=a(ve(w),2),j=q(X,!0);f(()=>D(j,e(W))),n(k,w)};v(xe,k=>{e(W)&&k(he)})}var I=a(xe,4),R=q(I,!0);o(B);var te=a(B,2);{var be=k=>{var w=fr();Se(w,21,()=>e(c).findings,X=>X.id,(X,j)=>{var Y=pr(),G=i(Y),$=i(G);{var se=l=>{var h=mr();n(l,h)};v($,l=>{e(j).serious&&l(se)})}var ie=a($);ot(ie,{get text(){return e(j).summary}}),o(G);var z=a(G,2);{var K=l=>{var h=ur(),T=q(h,!0);f(()=>D(T,e(j).where)),n(l,h)};v(z,l=>{e(j).where&&l(K)})}var d=a(z,2);{var m=l=>{var h=vr(),T=i(h);ot(T,{get text(){return e(j).detail}}),o(h),n(l,h)};v(d,l=>{e(j).detail&&l(m)})}o(Y),n(X,Y)}),o(w),n(k,w)};v(te,k=>{e(c).findings.length&&k(be)})}var ye=a(te,2);{var N=k=>{var w=xr(),X=a(i(w),2),j=i(X);ot(j,{get text(){return e(p)}}),o(X),o(w),n(k,w)};v(ye,k=>{e(p)&&k(N)})}var oe=a(ye,2);{var E=k=>{var w=hr(),X=i(w);ot(X,{get text(){return e(c).text}}),o(w),n(k,w)};v(oe,k=>{r()&&e(c).text&&k(E)})}var y=a(oe,2);{var ae=k=>{var w=kr(),X=i(w);{var j=$=>{var se=br(),ie=i(se),z=i(ie);oa(z,{class:"size-3.5 shrink-0","aria-hidden":"true"});var K=a(z,1,!0);o(ie);var d=a(ie);{var m=l=>{var h=gr(),T=q(h);f(()=>D(T,`· checks ${e(c).checks??""}`)),n(l,h)};v(d,l=>{e(c).checks&&l(m)})}o(se),f(()=>{O(ie,"href",e(c).pr.url),D(K,e(c).pr.url)}),n($,se)};v(X,$=>{e(c).pr&&$(j)})}var Y=a(X,2);{var G=$=>{var se=_r(),ie=i(se);Lt(ie,{class:"size-3.5 shrink-0","aria-hidden":"true"});var z=a(ie,2),K=q(z,!0);o(se),f(()=>D(K,e(c).file)),n($,se)};v(Y,$=>{e(c).file&&$(G)})}o(w),n(k,w)};v(y,k=>{(e(c).pr||e(c).file)&&k(ae)})}o(A),f(()=>{D(ee,e(_)),D(R,t.card.origin?`Firstmate, from ${t.card.origin}`:t.card.taskTitle)}),n(Q,A)};v(P,Q=>{u()&&Q(Z)})}f(()=>O(M,"aria-expanded",u())),re("click",M,function(...Q){t.onToggle?.apply(this,Q)}),n(x,L),qe()}Ge(["click"]);var zr=s('<div class="overflow-hidden rounded-t-md border-b"><!></div>'),Dr=s('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-preview="down"><!>Preview stopped</span>'),Mr=s('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 text-muted-foreground hover:text-foreground hover:underline max-md:min-h-11"> <!></a>'),Tr=s('<button type="button" class="inline-flex cursor-pointer items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" aria-haspopup="dialog" data-where-preview=""><!>Open the preview</button> <!>',1),Ar=s('<span class="inline-flex items-center gap-1 text-muted-foreground" data-where-board="down"><!>Board stopped</span>'),Ir=s('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 font-medium text-sea hover:underline max-md:min-h-11" data-where-board=""><!>Open the board<!></a>'),Cr=s('<div class="mt-2.5 rounded-md border bg-background/60 text-xs" data-decision-where=""><!> <div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-2"><span class="text-muted-foreground">Where it is</span> <!> <!></div></div>'),Or=s('<li class="w-48 max-w-full overflow-hidden rounded-md border bg-background" data-thumb-preview=""><!> <p class="flex items-center gap-1 border-t px-2 py-1 text-[0.7rem] text-muted-foreground"><!><span class="truncate"> </span></p></li>'),Sr=s('<li><button type="button" class="block cursor-zoom-in overflow-hidden rounded-md border bg-background" aria-haspopup="dialog" data-thumb-shot=""><img class="h-20 w-32 object-cover object-top sm:h-24 sm:w-36" loading="lazy"/></button></li>'),Lr=s('<ul class="mt-2.5 flex flex-wrap gap-2" aria-label="Thumbnails" data-decision-thumbs=""><!> <!></ul>'),Nr=s("<!> <!> <!> <!>",1);function Er(x,t){Ye(t,!0);let u=Me(t,"inline",3,!1);const r=S(()=>t.card.evidence),c=S(()=>ia()?null:e(r).board),_=S(()=>e(r).previewTask??(e(r).preview?Mt(e(r).preview):null)),p=S(()=>e(c)?Mt(e(c)):null);Ze(()=>{if(e(_))return st.watch(e(_))}),Ze(()=>{if(e(p))return st.watch(e(p))});const W=S(()=>e(_)?st.checks[e(_)]:void 0),L=S(()=>e(p)?st.checks[e(p)]:void 0),M=S(()=>e(W)?.state==="down"),ne=S(()=>e(L)?.state==="down"),b=S(()=>e(W)?.url??e(r).preview),U=N=>N?URL.parse(N)?.host??N:"",P=S(()=>(u()||t.card.kind==="preview")&&!!e(r).preview),Z=S(()=>e(r).screenshots??[]),Q=S(()=>!e(P)&&!!e(_)&&!e(M));let A=ge(null),B=ge(null);const J=N=>F(A,{from:N.currentTarget.getBoundingClientRect()},!0);var ee=Nr(),xe=ve(ee);{var he=N=>{var oe=Cr(),E=i(oe);{var y=Y=>{var G=zr(),$=i(G);{var se=z=>{it(z,{get taskId(){return e(r).previewTask},compact:!0,toolbar:!1,onopen:()=>F(A,{from:null},!0)})},ie=z=>{it(z,{get url(){return e(r).preview},compact:!0,toolbar:!1,onopen:()=>F(A,{from:null},!0)})};v($,z=>{e(r).previewTask?z(se):z(ie,-1)})}o(G),n(Y,G)};v(E,Y=>{e(P)&&e(_)&&Y(y)})}var ae=a(E,2),k=a(i(ae),2);{var w=Y=>{var G=Je(),$=ve(G);{var se=z=>{var K=Dr(),d=i(K);Tt(d,{class:"size-3.5 shrink-0","aria-hidden":"true"}),we(),o(K),n(z,K)},ie=z=>{var K=Tr(),d=ve(K),m=i(d);At(m,{class:"size-3.5 shrink-0","aria-hidden":"true"}),we(),o(d);var l=a(d,2);{var h=T=>{var g=Mr(),H=i(g,!0),ue=a(H);ht(ue,{class:"size-3.5 shrink-0","aria-hidden":"true"}),o(g),f(pe=>{O(g,"href",e(b)),O(g,"title",e(b)),D(H,pe)},[()=>U(e(r).preview)]),n(T,g)};v(l,T=>{e(b)&&T(h)})}re("click",d,J),n(z,K)};v($,z=>{e(M)?z(se):z(ie,-1)})}n(Y,G)};v(k,Y=>{e(r).preview&&Y(w)})}var X=a(k,2);{var j=Y=>{var G=Je(),$=ve(G);{var se=z=>{var K=Ar(),d=i(K);Tt(d,{class:"size-3.5 shrink-0","aria-hidden":"true"}),we(),o(K),n(z,K)},ie=z=>{var K=Ir(),d=i(K);ca(d,{class:"size-3.5 shrink-0","aria-hidden":"true"});var m=a(d,2);ht(m,{class:"size-3.5 shrink-0","aria-hidden":"true"}),o(K),f(()=>{O(K,"href",e(c)),O(K,"title",e(c))}),n(z,K)};v($,z=>{e(ne)?z(se):z(ie,-1)})}n(Y,G)};v(X,Y=>{e(c)&&Y(j)})}o(ae),o(oe),n(N,oe)};v(xe,N=>{(e(r).preview||e(c))&&N(he)})}var I=a(xe,2);{var R=N=>{var oe=Lr(),E=i(oe);{var y=k=>{var w=Or(),X=i(w);{var j=z=>{it(z,{get taskId(){return e(r).previewTask},compact:!0,toolbar:!1,onopen:()=>F(A,{from:null},!0)})},Y=z=>{it(z,{get url(){return e(r).preview},compact:!0,toolbar:!1,onopen:()=>F(A,{from:null},!0)})};v(X,z=>{e(r).previewTask?z(j):z(Y,-1)})}var G=a(X,2),$=i(G);At($,{class:"size-3 shrink-0","aria-hidden":"true"});var se=a($),ie=q(se);o(G),o(w),f(z=>D(ie,`Preview · ${z??""}`),[()=>U(e(r).preview)]),n(k,w)};v(E,k=>{e(Q)&&k(y)})}var ae=a(E,2);Se(ae,19,()=>e(Z),k=>k.url,(k,w,X)=>{var j=Sr(),Y=i(j),G=q(Y);o(j),f(()=>{O(Y,"title",`Enlarge ${e(w).name??""}`),O(G,"src",e(w).url),O(G,"alt",e(w).name)}),re("click",Y,()=>F(B,e(X),!0)),n(k,j)}),o(oe),n(N,oe)};v(I,N=>{(e(Q)||e(Z).length)&&N(R)})}var te=a(I,2);sa(te,{get shots(){return e(Z)},get index(){return e(B)},set index(N){F(B,N,!0)}});var be=a(te,2);{var ye=N=>{{let oe=S(()=>e(A)?.from??null);da(N,{get taskId(){return e(r).previewTask},get title(){return t.card.taskTitle},get url(){return e(r).preview},get from(){return e(oe)},onclose:()=>F(A,null)})}};v(be,N=>{e(A)&&e(r).preview&&N(ye)})}n(x,ee),qe()}Ge(["click"]);var Rr=s('<a target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground">Open in a new tab<!></a>'),jr=s('<p class="text-danger" role="alert"> </p>'),Wr=s('<p class="text-muted-foreground">Reading it…</p>'),Pr=s('<div class="chat-md"></div>'),Fr=s("<span> </span>"),Yr=s('<pre class="font-mono text-xs leading-relaxed whitespace-pre-wrap" data-patch=""></pre>'),qr=s('<div class="flex items-center gap-2 border-b px-4 py-2.5 text-sm"><span class="min-w-0 flex-1"><span class="block truncate font-medium"> </span> <span class="block truncate font-mono text-xs text-muted-foreground"> </span></span> <!> <button type="button" class="flex size-9 cursor-pointer items-center justify-center rounded hover:bg-accent" aria-label="Close"><!></button></div> <div class="min-h-0 flex-1 overflow-y-auto px-4 py-3 text-sm sm:px-6"><!></div>',1),Ur=s('<dialog class="m-auto flex max-h-[90vh] w-[min(94vw,56rem)] flex-col overflow-hidden rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60 [&amp;:not([open])]:hidden" data-doc-modal=""><!></dialog>');function Xr(x,t){Ye(t,!0);let u=Me(t,"doc",15,null),r=ge(null),c=ge(null);const _=S(()=>u()?u().path.split("/").pop()??u().path:""),p=S(()=>!!u()&&pa.test(u().path));Ze(()=>{e(r)&&(u()&&!e(r).open?e(r).showModal():!u()&&e(r).open&&e(r).close())}),Ze(()=>{const b=u()?.url;!b||e(c)?.url===b||(F(c,{url:b,text:null,error:null},!0),fetch(b).then(async U=>{if(!U.ok)throw new Error;const P=await U.text();e(c)?.url===b&&F(c,{url:b,text:P,error:null},!0)}).catch(()=>{e(c)?.url===b&&F(c,{url:b,text:null,error:"It could not be read."},!0)}))});const W=b=>b.startsWith("+")&&!b.startsWith("+++")?"text-success":b.startsWith("-")&&!b.startsWith("---")?"text-danger":b.startsWith("@@")?"text-sea":"";var L=Ur(),M=i(L);{var ne=b=>{var U=qr(),P=ve(U),Z=i(P),Q=i(Z),A=q(Q,!0),B=a(Q,2),J=q(B,!0);o(Z);var ee=a(Z,2);{var xe=E=>{var y=Rr(),ae=a(i(y));ht(ae,{class:"size-3.5","aria-hidden":"true"}),o(y),f(k=>O(y,"href",k),[()=>fa(u().path)]),n(E,y)};v(ee,E=>{e(p)&&E(xe)})}var he=a(ee,2),I=i(he);bt(I,{class:"size-4"}),o(he),o(P);var R=a(P,2),te=i(R);{var be=E=>{var y=jr(),ae=q(y,!0);f(()=>D(ae,e(c).error)),n(E,y)},ye=E=>{var y=Wr();n(E,y)},N=E=>{var y=Pr();ma(y,()=>ua(e(c).text,{docLinks:!0}),!0),o(y),n(E,y)},oe=E=>{var y=Yr();Se(y,21,()=>e(c).text.split(`
4
- `),Qt,(ae,k)=>{var w=Fr(),X=q(w,!0);f(j=>{me(w,1,j),D(X,`${e(k)}
5
- `)},[()=>Xe(W(e(k)))]),n(ae,w)}),o(y),n(E,y)};v(te,E=>{e(c)?.error?E(be):!e(c)||e(c).text===null?E(ye,1):e(p)?E(N,2):E(oe,-1)})}o(R),f(()=>{D(A,e(_)),D(J,u().path)}),re("click",he,()=>e(r)?.close()),n(b,U)};v(M,b=>{u()&&b(ne)})}o(L),va(L,b=>F(r,b),()=>e(r)),f(()=>O(L,"aria-label",e(_)||"Document")),lt("close",L,()=>u(null)),re("click",L,b=>b.target===e(r)&&e(r)?.close()),n(x,L),qe()}Ge(["click"]);var Br=s('<a title="The task this decision came from" data-decision-origin=""><!>From <span> </span></a>'),Gr=s('<button type="button" aria-haspopup="dialog"><!> <span> </span></button>'),Kr=s('<span data-decision-doc="missing"><!> <span> </span> (not found)</span>'),Hr=s('<div class="mt-2.5 flex flex-wrap items-center gap-1.5" data-decision-links=""><a title="Open the task" data-decision-task=""><!>Task <span> </span></a> <!> <!></div> <!> <!>',1);function Wn(x,t){Ye(t,!0);let u=Me(t,"where",3,!0);const r=S(()=>t.card.evidence.docs??[]),c=S(()=>t.card.secondMate?t.card.secondMate.taskId??t.card.secondMate.id:t.card.taskId);let _=ge(null);const p={report:"Report",doc:"Doc",patch:"Patch"},W=I=>I.kind==="report"?I.path:I.path.split("/").pop()??I.path,L="inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11",M="min-w-0 truncate font-mono text-[0.75rem] text-muted-foreground";var ne=Hr(),b=ve(ne),U=i(b);me(U,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 border-brass/60 font-medium");var P=i(U);wa(P,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var Z=a(P,2);me(Z,1,Xe(M));var Q=q(Z,!0);o(U);var A=a(U,2);{var B=I=>{var R=Br();me(R,1,Xe(L));var te=i(R);xa(te,{class:"size-3.5 shrink-0","aria-hidden":"true"});var be=a(te,2);me(be,1,Xe(M));var ye=q(be,!0);o(R),f(N=>{O(R,"href",`/tasks/${N??""}`),D(ye,t.card.origin)},[()=>encodeURIComponent(t.card.origin)]),n(I,R)};v(A,I=>{t.card.origin&&I(B)})}var J=a(A,2);Se(J,17,()=>e(r),I=>I.path,(I,R)=>{const te=S(()=>e(R).kind==="patch"?_a:Lt);var be=Je(),ye=ve(be);{var N=E=>{var y=Gr();me(y,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 cursor-pointer");var ae=i(y);Dt(ae,()=>e(te),(j,Y)=>{Y(j,{class:"size-3.5 shrink-0","aria-hidden":"true"})});var k=a(ae),w=a(k);me(w,1,Xe(M));var X=q(w,!0);o(y),f(j=>{O(y,"title",`Read ${e(R).path??""}`),O(y,"data-decision-doc",e(R).kind),D(k,`${p[e(R).kind]??""} `),D(X,j)},[()=>W(e(R))]),re("click",y,()=>F(_,e(R),!0)),n(E,y)},oe=E=>{var y=Kr();me(y,1,"inline-flex min-h-8 max-w-full items-center gap-1.5 rounded-md border bg-background px-2.5 text-[0.8rem] transition-colors hover:bg-accent max-md:min-h-11 text-muted-foreground hover:bg-background");var ae=i(y);Dt(ae,()=>e(te),(j,Y)=>{Y(j,{class:"size-3.5 shrink-0","aria-hidden":"true"})});var k=a(ae),w=a(k);me(w,1,Xe(M));var X=q(w,!0);we(),o(y),f(j=>{D(k,`${p[e(R).kind]??""} `),D(X,j)},[()=>W(e(R))]),n(E,y)};v(ye,E=>{e(R).url?E(N):E(oe,-1)})}n(I,be)}),o(b);var ee=a(b,2);{var xe=I=>{Er(I,{get card(){return t.card}})};v(ee,I=>{u()&&I(xe)})}var he=a(ee,2);Xr(he,{get doc(){return e(_)},set doc(I){F(_,I,!0)}}),f(I=>{O(U,"href",I),D(Q,e(c))},[()=>ta(t.card)]),n(x,ne),qe()}Ge(["click"]);var Qr=s('<div class="mt-3 grid max-w-[40rem] gap-1.5" data-decision-records=""></div>');function Pn(x,t){Ye(t,!0);const u=S(()=>la.mentioned([...(t.card.evidence.docs??[]).filter(p=>p.kind==="report").map(p=>p.path),t.card.secondMate?"":`data/${t.card.taskId}/report.md`,t.card.origin?`data/${t.card.origin}/report.md`:"",t.card.question].join(`
6
- `)).slice(0,3));var r=Je(),c=ve(r);{var _=p=>{var W=Qr();Se(W,21,()=>e(u),L=>L.kind==="record"?L.record.key:L.kind==="library"?L.doc.key:L.prototype.id,(L,M)=>{ha(L,{get doc(){return e(M)}})}),o(W),n(p,W)};v(c,p=>{e(u).length&&p(_)})}n(x,r),qe()}export{An as A,Xr as D,In as U,Wn as a,Pn as b,jn as c,Rn as d,Cn as e,La as f,Er as g,On as h,Sn as i,Ln as j,Ve as k,En as l,Nn as w};
@@ -1 +0,0 @@
1
- import{d as r,i as n,k as i,e as f}from"./Jk-ASPRO.js";import{p as d}from"./DGPy4ilM.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,3 +0,0 @@
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"./DGPy4ilM.js";import{a as kt}from"./Dd_RZdO_.js";import{b as ca}from"./B0l1zoaP.js";import{W as va,S as ma,p as ht}from"./CoYgVaEY.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"./CIVuFUrV.js";import{i as _t}from"./CosKnXYm.js";import{h as ya,e as Ca}from"./Dc0ohDnQ.js";import{a as ja,s as Sa}from"./D-jtpdBG.js";import{T as Ia}from"./CNrVcIUd.js";import{S as Aa}from"./CqGnq0RM.js";import{M as Rt}from"./C4jBfsPB.js";import{s as Ta}from"./BoEQDqEX.js";import{d as za}from"./BwgWcTqi.js";import{g as Ra}from"./B8nUI-P4.js";import{E as Ea,C as Ma}from"./BjrKJ4DC.js";import{C as Oa}from"./qmERWKqm.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"./CJoZbsMe.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
- ${e(ue)===1?"task":"tasks"}`),f(q,`${N??""}% building · ${$??""}% automated review · ${we??""}%
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 +0,0 @@
1
- import"./DsnmJJEf.js";import{p as G,h as q,t as l,a as d,i as o,r as b,s as j,b as I,j as h,o as x,c as g}from"./Jk-ASPRO.js";import{d as J,s as _,a as K}from"./DTApYZoW.js";import{i as z}from"./BEVJas-l.js";import{e as M,s as k,a as c,j as N}from"./DNP6oCAK.js";import{p as u}from"./DQWg__9S.js";import{l as O}from"./knocoJTV.js";import{a as P,c as Q}from"./BoEQDqEX.js";const R={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},S={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var U=g("<li></li>"),V=g("<span> </span>"),X=g('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),Y=g('<span class="text-foreground/80"> </span>'),Z=g('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function ie(F,a){G(a,!0);let H=u(a,"busy",3,!1),y=u(a,"lead",3,null),L=u(a,"leadClass",3,""),T=u(a,"size",3,"card"),n=u(a,"questions",3,null);const f=h(()=>a.pipeline.steps.map(e=>({s:e,tone:P(e,a.pipeline)}))),w=h(()=>Q(a.pipeline,O.now)),W=h(()=>`Checks: ${o(f).map(({s:e,tone:t})=>`${e.label} ${S[t]}`).join(", ")}`);var p=Z(),i=q(p);M(i,21,()=>o(f),({s:e,tone:t})=>e.key,(e,t)=>{let r=()=>o(t).s,s=()=>o(t).tone;var v=U();l(()=>{k(v,1,`h-1 rounded-full ${R[s()]??""} ${H()&&(s()==="active"||s()==="fixing")?"motion-safe:animate-pulse":""}`),c(v,"title",`${r().label??""}: ${S[s()]??""}`)}),d(e,v)}),b(i);var m=j(i,2),C=q(m);{var A=e=>{var t=V(),r=x(t);l(()=>{k(t,1,`font-medium ${L()??""}`),_(r,`${y()??""}.`)}),d(e,t)};z(C,e=>{y()&&e(A)})}var B=j(C,2);{var D=e=>{var t=X(),r=x(t,!0);l(()=>{c(t,"aria-expanded",n().expanded),c(t,"aria-controls",n().controls),c(t,"title",n().expanded?"Hide the questions":"Show the questions"),_(r,o(w))}),K("click",t,function(...s){n().toggle?.apply(this,s)}),d(e,t)},E=e=>{var t=Y(),r=x(t,!0);l(()=>_(r,o(w))),d(e,t)};z(B,e=>{n()?e(D):e(E,-1)})}b(m),b(p),l(()=>{N(i,`grid-template-columns: repeat(${o(f).length??""}, minmax(0, 1fr))`),c(i,"aria-label",o(W)),k(m,1,`tabular line-clamp-2 text-muted-foreground ${T()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),d(F,p),I()}J(["click"]);export{ie as C};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.WsipkNVW.js","../chunks/DsnmJJEf.js","../chunks/CeV_7ApB.js","../chunks/Jk-ASPRO.js","../chunks/DTApYZoW.js","../chunks/BEVJas-l.js","../chunks/Wu0Biojm.js","../chunks/Cq7OFmxz.js","../chunks/DdRGrlyi.js","../chunks/DNP6oCAK.js","../chunks/B8nUI-P4.js","../chunks/AYO6DeDt.js","../chunks/DGPy4ilM.js","../chunks/knocoJTV.js","../chunks/RYvdmj4W.js","../chunks/CosKnXYm.js","../chunks/Dc0ohDnQ.js","../chunks/BXN538J3.js","../chunks/BdjCJ4uL.js","../chunks/jy9QDtyE.js","../chunks/Ci4VDAEG.js","../chunks/BGZONLpF.js","../chunks/D-jtpdBG.js","../chunks/Br-ErZgz.js","../chunks/DQWg__9S.js","../chunks/DE0e4nJ8.js","../chunks/DLfKkHEy.js","../chunks/CqGnq0RM.js","../chunks/CsFoEe5t.js","../chunks/Dd_RZdO_.js","../chunks/CNxxt--f.js","../chunks/C14pDzYB.js","../chunks/VrUPyiEH.js","../chunks/BOHNp6eX.js","../chunks/Cz0t0Wrt.js","../chunks/C-HYwD2y.js","../chunks/BfHvf1Rg.js","../chunks/KaWfcwy_.js","../chunks/CVUv3vK_.js","../chunks/BMMeDG3C.js","../chunks/D73wi9-q.js","../chunks/B_DDhx9A.js","../chunks/BwqxEF2U.js","../chunks/c9k4nDgn.js","../chunks/m8-RluHE.js","../chunks/CFq-JuCn.js","../chunks/lCxfAEBr.js","../chunks/gEZHG5dd.js","../chunks/Ce8pSY2j.js","../chunks/B0l1zoaP.js","../chunks/BzEQA6Vz.js","../chunks/1rMfpM_v.js","../chunks/CYK2vYXV.js","../chunks/DWBTuuo9.js","../chunks/DV2miOwj.js","../chunks/v0ViZGjy.js","../chunks/CqVYnWrT.js","../chunks/DX7LwCrb.js","../chunks/CJoZbsMe.js","../chunks/BrqXkLnL.js","../chunks/CCSv0LIp.js","../chunks/DrX7Uhja.js","../chunks/CaqSaLai.js","../chunks/Cdpv7rd4.js","../chunks/DckZzLGn.js","../chunks/BmXrroyA.js","../chunks/DQCQ7gMl.js","../chunks/BgW5hi16.js","../chunks/BRYVBL-t.js","../chunks/BKRi8X2-.js","../chunks/D66j7WEk.js","../assets/StateIcon.Dme7y7s6.css","../chunks/BPBomwti.js","../chunks/Bz9tCoED.js","../chunks/DT1mJMTa.js","../chunks/DS5YqfWJ.js","../chunks/Cih51HL5.js","../chunks/voMZUjSQ.js","../chunks/CtDVbF73.js","../chunks/CGnI1F6D.js","../chunks/DMIaeBcI.js","../chunks/ck3_pj9L.js","../chunks/DqyvT7BR.js","../chunks/Br5gy4Yk.js","../chunks/C_D8fRYf.js","../chunks/C1-ZwXJJ.js","../chunks/D92svzym.js","../chunks/C8F_z3tF.js","../chunks/cG4guyTe.js","../chunks/CGgXi5F1.js","../chunks/CuSw1clo.js","../chunks/B7CIGGfF.js","../chunks/XxOJwmzJ.js","../chunks/BbLERgY7.js","../chunks/C_BRvYKD.js","../chunks/teNj0U11.js","../chunks/BgsPzvvM.js","../chunks/B374TgJF.js","../chunks/DBLsdElo.js","../assets/Discussion.DvbZU78X.css","../chunks/DfL_9Z2a.js","../chunks/Xnyx2pJu.js","../chunks/CJxikGC0.js","../chunks/B-JNrTge.js","../chunks/_3k0Ipf9.js","../chunks/BwF-OIK3.js","../chunks/BoEQDqEX.js","../chunks/C97qdOZ6.js","../chunks/Bw9VDV5E.js","../chunks/fE4moRZ8.js","../chunks/BK_MXWSk.js","../chunks/DuiYw-2t.js","../chunks/DlALRMA8.js","../chunks/CIYxJVP-.js","../assets/PreviewWindow.Dga9zAug.css","../chunks/DYeKR0Nw.js","../chunks/Ds4LY5_S.js","../chunks/CIVuFUrV.js","../chunks/-jGTCgc1.js","../chunks/BJDcvTi2.js","../chunks/DZZuZ7Nl.js","../chunks/DD0oUy6v.js","../chunks/DFaX1kYU.js","../chunks/Um44Ka4n.js","../chunks/B9zVXyGS.js","../assets/DocChip.DlKgEuWc.css","../chunks/Bn9TkbIB.js","../chunks/B7AxdNpl.js","../chunks/CoYgVaEY.js","../chunks/BbEKXuJh.js","../chunks/C_Devth_.js","../chunks/MgFVe5-f.js","../chunks/DP0NWgBG.js","../chunks/CNrVcIUd.js","../chunks/BpQy2vJd.js","../chunks/ip3BSDrD.js","../chunks/B65GEZdd.js","../chunks/qmERWKqm.js","../chunks/BjTe15qL.js","../assets/0.DfMBwLbg.css","../nodes/1.CoF2hc0B.js","../nodes/2.PJdm-thg.js","../chunks/B6qh5sP6.js","../chunks/C5MY6dNP.js","../chunks/FU5wjxOp.js","../chunks/fzA2mGC3.js","../chunks/Dww8tpkZ.js","../chunks/DUhuG1Hw.js","../chunks/CEBOwVEW.js","../chunks/CZPeboo-.js","../chunks/BwauVYjH.js","../chunks/B2fcXQUP.js","../chunks/nr_HrT2I.js","../chunks/CbKpBvf7.js","../chunks/C4jBfsPB.js","../chunks/BwgWcTqi.js","../chunks/BjrKJ4DC.js","../chunks/BA9bXUEp.js","../chunks/DlIrtyNJ.js","../chunks/_CCaD_og.js","../chunks/Dd6SLnOK.js","../assets/Terminal.B4BtIq8f.css","../chunks/BMgWgkGl.js","../assets/2.meoe_KFK.css","../nodes/3.BO9TqrFB.js","../nodes/4.BN5nbu-t.js","../chunks/ClVMudf4.js","../nodes/5.CK8GVHQ3.js","../nodes/6.CoIwniEZ.js","../chunks/Ch8vIPte.js","../assets/6.DtDtUpRv.css","../nodes/8.DMqIMsoz.js","../chunks/CkJDm1ZW.js","../assets/DocSheet.DVwT-_8L.css","../nodes/9.CyH0mhCS.js","../chunks/CHWya5-n.js","../assets/9.DodnPJFM.css","../nodes/10.CBs8D8F0.js","../nodes/11.Deb-Pt_F.js","../nodes/12.BOi495ED.js","../nodes/13.C1R364Gw.js","../chunks/F38--nON.js","../nodes/14.qV3mdMVk.js","../chunks/RTsEYL93.js","../nodes/15.srOIugkP.js","../chunks/C24ObgpI.js","../nodes/16.ClxOSMI2.js","../chunks/CVA6C1xn.js","../chunks/549Ic5KL.js","../chunks/B01yhBHF.js","../nodes/17.DezPjRpz.js","../chunks/BaXPxLpc.js","../nodes/18.BAmXQ3UE.js","../chunks/NT4VAohP.js","../chunks/CT1Mi9Rm.js","../nodes/19.UH9nrulQ.js","../nodes/20.DeX6C_3e.js","../chunks/D7IP_ZEm.js","../nodes/21.rH_VYkx2.js","../chunks/9UVXc0hx.js","../nodes/22.BVL0k6gA.js","../nodes/23.CG5Nsj3c.js","../nodes/24.XaVjcj6d.js","../chunks/Bx0PJwhk.js","../nodes/25.H0iT6Kwh.js","../assets/25.BEAKCIvn.css","../nodes/26.Ci4Bfhai.js","../nodes/28.BkHTjASW.js","../chunks/CMo3mxhh.js","../nodes/29.p0VN3jhb.js","../nodes/30.D3B2Q4OU.js","../nodes/31.DBxJBGiO.js","../nodes/32.CnHi0wRk.js","../nodes/33.DDig6K20.js","../nodes/34.Bf4X36eZ.js","../nodes/35.C7ql3_zk.js","../nodes/36.DU8cKjZG.js","../chunks/DyWlAZsB.js","../chunks/BXyVeS8z.js","../nodes/37.Do0SMZ1v.js","../nodes/38.CtS3KKlQ.js","../nodes/39.4sF9TG4n.js","../nodes/40.CQ_BoiE-.js","../nodes/41.CnUbdf5W.js","../nodes/42.DjpUCMvB.js","../nodes/43.C6Qrs38w.js","../nodes/44._-UvgvOX.js"])))=>i.map(i=>d[i]);
2
- import{_ as r}from"../chunks/CZPeboo-.js";import{k as h,ay as N,i as n,F as Y,aM as z,aN as B,p as H,u as J,q as K,L as Q,f as g,s as U,a as E,b as W,d as P,x as O,h as X,r as Z,c as y,j as R,m as $,t as tt}from"../chunks/Jk-ASPRO.js";import{h as rt,m as et,u as ot,s as _t}from"../chunks/DTApYZoW.js";import"../chunks/DsnmJJEf.js";import{a as it}from"../chunks/CeV_7ApB.js";import{i as L}from"../chunks/BEVJas-l.js";import{c as A}from"../chunks/Cq7OFmxz.js";import{b as D}from"../chunks/DLfKkHEy.js";import{p as I}from"../chunks/DQWg__9S.js";const Rt={};function st(_){return class extends at{constructor(t){super({component:_,...t})}}}class at{#r;#t;constructor(t){var i=new Map,a=(e,o)=>{var u=B(o,!1,!1);return i.set(e,u),u};const m=new Proxy({...t.props||{},$$events:{}},{get(e,o){return n(i.get(o)??a(o,Reflect.get(e,o)))},has(e,o){return o===N?!0:(n(i.get(o)??a(o,Reflect.get(e,o))),Reflect.has(e,o))},set(e,o,u){return h(i.get(o)??a(o,u),u),Reflect.set(e,o,u)}});this.#t=(t.hydrate?rt:et)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Y(),this.#r=m.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||z(this,e,{get(){return this.#t[e]},set(o){this.#t[e]=o},enumerable:!0});this.#t.$set=e=>{Object.assign(m,e)},this.#t.$destroy=()=>{ot(this.#t)}}$set(t){this.#t.$set(t)}$on(t,i){this.#r[t]=this.#r[t]||[];const a=(...m)=>i.call(this,...m);return this.#r[t].push(a),()=>{this.#r[t]=this.#r[t].filter(m=>m!==a)}}$destroy(){this.#t.$destroy()}}var mt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ut=y("<!> <!>",1);function nt(_,t){H(t,!0);let i=I(t,"components",23,()=>[]),a=I(t,"data_0",3,null),m=I(t,"data_1",3,null);J(()=>t.stores.page.set(t.page)),K(()=>{t.stores,t.page,t.constructors,i(),t.form,a(),m(),t.stores.page.notify()});let e=P(!1),o=P(!1),u=P(null);it(()=>{const s=t.stores.page.subscribe(()=>{n(e)&&(h(o,!0),Q().then(()=>{h(u,document.title||"untitled page",!0)}))});return h(e,!0),s});const x=R(()=>t.constructors[1]);var T=ut(),V=g(T);{var k=s=>{const d=R(()=>t.constructors[0]);var l=O(),v=g(l);A(v,()=>n(d),(p,c)=>{D(c(p,{get data(){return a()},get form(){return t.form},get params(){return t.page.params},children:(f,lt)=>{var b=O(),S=g(b);A(S,()=>n(x),(q,F)=>{D(F(q,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),G=>i()[1]=G,()=>i()?.[1])}),E(f,b)},$$slots:{default:!0}}),f=>i()[0]=f,()=>i()?.[0])}),E(s,l)},w=s=>{const d=R(()=>t.constructors[0]);var l=O(),v=g(l);A(v,()=>n(d),(p,c)=>{D(c(p,{get data(){return a()},get form(){return t.form},get params(){return t.page.params}}),f=>i()[0]=f,()=>i()?.[0])}),E(s,l)};L(V,s=>{t.constructors[1]?s(k):s(w,-1)})}var C=U(V,2);{var M=s=>{var d=mt(),l=X(d);{var v=p=>{var c=$();tt(()=>_t(c,n(u))),E(p,c)};L(l,p=>{n(o)&&p(v)})}Z(d),E(s,d)};L(C,s=>{n(e)&&s(M)})}E(_,T),W()}const Lt=st(nt),At=[()=>r(()=>import("../nodes/0.WsipkNVW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139]),import.meta.url),()=>r(()=>import("../nodes/1.CoF2hc0B.js"),__vite__mapDeps([140,1,3,4,12,11,2]),import.meta.url),()=>r(()=>import("../nodes/2.PJdm-thg.js"),__vite__mapDeps([141,1,2,3,4,5,8,9,12,11,13,14,38,16,17,20,49,79,80,54,24,25,6,18,19,26,108,123,7,124,89,73,125,50,51,28,27,29,30,31,32,33,34,35,36,37,39,40,41,42,43,44,45,46,47,48,52,142,111,143,144,15,129,94,145,122,72,131,120,121,107,93,109,96,110,106,22,57,112,97,113,102,114,136,65,146,82,83,147,55,148,59,61,149,115,119,150,151,138,53,152,153,128,77,116,117,133,154,155,10,156,95,137,70,71,58,105,68,132,92,81,84,85,86,87,88,90,100,66,101,157,158,76,159,160,69,135,161,162,63,163]),import.meta.url),()=>r(()=>import("../nodes/3.BO9TqrFB.js"),__vite__mapDeps([164,1,3,4,5,28,9,8,10,2,11,12,13,14,58,49,24,15,16,17,59,25,6,36,29,78,79,80,7,30,26,81,32,33,82,51,83,44,84,40,45,85,86,87,88,55,89,90,91,92,39,93,43,94,95,96,97,98,41,99]),import.meta.url),()=>r(()=>import("../nodes/4.BN5nbu-t.js"),__vite__mapDeps([165,1,3,4,5,9,7,8,10,2,11,12,29,116,166,21,122,80,72,24,25,6,112,132,95]),import.meta.url),()=>r(()=>import("../nodes/5.CK8GVHQ3.js"),__vite__mapDeps([167,1,2,3,4,8,12,11,10,13,14,20,152,5,9,25,6,24,153,29,49,128,106,54,18,19,38,16,17,26,22,57,107,28,93,108,109,96,47,110,79,80,30,33,111,44,112,97,72,113,43,102,48,114,61,77,116,117,15,133,27,7,31,32,34,35,36,37,39,40,41,42,45,46,154,155,156,95,137,70,71,138,131,58,59,105,53,150,68,132,92]),import.meta.url),()=>r(()=>import("../nodes/6.CoIwniEZ.js"),__vite__mapDeps([168,1,3,4,5,9,8,12,11,2,10,108,24,25,6,38,16,17,14,30,26,55,44,89,75,73,169,124,170]),import.meta.url),()=>r(()=>import("../chunks/CZPeboo-.js").then(_=>_.a),[],import.meta.url),()=>r(()=>import("../nodes/8.DMqIMsoz.js"),__vite__mapDeps([171,1,3,4,5,8,79,80,172,6,9,26,36,24,25,173,69,89]),import.meta.url),()=>r(()=>import("../nodes/9.CyH0mhCS.js"),__vite__mapDeps([174,1,2,3,4,5,9,7,8,30,12,11,153,53,13,14,29,49,175,52,105,25,6,24,104,22,108,38,16,17,72,150,77,89,51,28,44,138,154,61,26,103,36,176]),import.meta.url),()=>r(()=>import("../nodes/10.CBs8D8F0.js"),__vite__mapDeps([177,1,3,4,5,9,8,29,116,24,166,12,11,2,21,85,25,6,65,112]),import.meta.url),()=>r(()=>import("../nodes/11.Deb-Pt_F.js"),__vite__mapDeps([178,1,3,4,5,9,8,30,12,11,2,32,33,6,26,24,166,21,38,16,17,14,29,96,25,63,62]),import.meta.url),()=>r(()=>import("../nodes/12.BOi495ED.js"),__vite__mapDeps([179,1,2,3,4,5,28,9,25,6,24,8,10,11,12,13,14,15,16,17,29,155,22,79,80,30,26,106,54,18,19,38,57,107,93,108,109,96,47,110,33,111,44,112,97,72,113,43,102,20,48,114,144,129,94,145,122,131,89,7,120,121,36,136,142,143,123,124,73,125,135,69,95,87,117,49]),import.meta.url),()=>r(()=>import("../nodes/13.C1R364Gw.js"),__vite__mapDeps([180,1,2,3,4,5,9,8,30,12,11,10,79,80,108,24,25,6,38,16,17,14,172,26,36,173,123,7,124,89,73,125,146,82,51,28,83,32,33,44,142,111,143,147,55,69,74,56,169,181,43,100,113,40]),import.meta.url),()=>r(()=>import("../nodes/14.qV3mdMVk.js"),__vite__mapDeps([182,1,3,5,8,2,4,9,30,26,12,11,54,24,25,6,18,19,38,16,17,14,148,7,46,86,183,89,110,65,145,43,56,103,44,113,69,72,97,41,98]),import.meta.url),()=>r(()=>import("../nodes/15.srOIugkP.js"),__vite__mapDeps([184,1,3,4,5,9,8,12,11,2,21,13,14,20,23,22,24,25,6,185,75,36,73,101]),import.meta.url),()=>r(()=>import("../nodes/16.ClxOSMI2.js"),__vite__mapDeps([186,1,2,3,4,5,9,8,30,26,12,11,32,33,6,24,7,83,51,28,44,25,187,13,14,17,40,43,188,65,29,102,189,55,66,72,101]),import.meta.url),()=>r(()=>import("../nodes/17.DezPjRpz.js"),__vite__mapDeps([190,1,3,4,5,8,9,12,11,2,13,14,20,191,43,24,25,6,159,27,28,7,29,30,17,31,32,33,26,34,35,36,37,18,19,38,16,39,40,41,42,44,45,46,47,48]),import.meta.url),()=>r(()=>import("../nodes/18.BAmXQ3UE.js"),__vite__mapDeps([192,1,3,4,5,8,12,11,2,13,14,20,49,193,9,24,53,175,29,52,7,68,25,6,194,87,65,59,121,47,128,106,54,18,19,38,16,17,26,22,57,107,28,93,108,109,96,110,79,80,30,33,111,44,112,97,72,113,43,102,48,114,61,77,32,130,89,131,90,127,115,156,116,95,120,36,100,27,31,34,35,37,39,40,41,42,45,46,137,91,92,123,124,73,125,76,135,104,147]),import.meta.url),()=>r(()=>import("../nodes/19.UH9nrulQ.js"),__vite__mapDeps([195,1,3,4,5,8,9,12,11,2,13,14,20,193,24,53,175,29,49,52,7,68,25,6,194,87,65,59,121,47,27,28,30,17,31,32,33,26,34,35,36,37,18,19,38,16,39,40,41,42,43,44,45,46,48]),import.meta.url),()=>r(()=>import("../nodes/20.DeX6C_3e.js"),__vite__mapDeps([196,1,3,4,5,9,8,12,11,2,10,13,14,20,193,24,53,175,29,49,52,7,68,25,6,194,87,65,59,121,47,17,32,33,26,197,45,126,90]),import.meta.url),()=>r(()=>import("../nodes/21.rH_VYkx2.js"),__vite__mapDeps([198,1,3,4,5,28,9,8,10,2,11,12,13,14,30,153,32,33,6,26,24,17,197,69,25,90,151,44,102,97,135,199,41,45,43,194,60,42,129]),import.meta.url),()=>r(()=>import("../nodes/22.BVL0k6gA.js"),__vite__mapDeps([200,1,3,4,5,9,8,12,11,2,80,108,24,25,6,38,16,17,14,107,28,93,26,18,19,109,96,47,110,69,95,199,89]),import.meta.url),()=>r(()=>import("../nodes/23.CG5Nsj3c.js"),__vite__mapDeps([201,1,3,4,5,9,8,79,80,108,24,25,6,38,16,17,14,172,26,36,173,7,30,12,11,2,10,82,51,28,83,32,33,44,181,40,146,142,111,143,147,55,89,73,69,74,159,43,124,126]),import.meta.url),()=>r(()=>import("../nodes/24.XaVjcj6d.js"),__vite__mapDeps([202,1,3,5,8,203,4,9,88,24,25,6,138,12,11,2,17,92,19,29,32,33,26]),import.meta.url),()=>r(()=>import("../nodes/25.H0iT6Kwh.js"),__vite__mapDeps([204,1,3,4,5,9,8,13,12,11,2,14,29,154,24,17,25,6,109,40,47,43,45,35,59,138,131,66,37,102,205]),import.meta.url),()=>r(()=>import("../nodes/26.Ci4Bfhai.js"),__vite__mapDeps([206,1,157,3,2,4,5,9,8,30,12,11,17,13,14,43,24,25,6,40,150,69,66,47,102]),import.meta.url),()=>r(()=>import("../chunks/CZPeboo-.js").then(_=>_.b),[],import.meta.url),()=>r(()=>import("../nodes/28.BkHTjASW.js"),__vite__mapDeps([207,1,3,4,5,9,8,12,11,2,17,208,157,158]),import.meta.url),()=>r(()=>import("../nodes/29.p0VN3jhb.js"),__vite__mapDeps([209,1,157,3,8]),import.meta.url),()=>r(()=>import("../nodes/30.D3B2Q4OU.js"),__vite__mapDeps([210,1,3,4,5,9,8,12,11,2,17,208,157,158,34,24,25,6]),import.meta.url),()=>r(()=>import("../nodes/31.DBxJBGiO.js"),__vite__mapDeps([211,1,2,3,4,5,9,8,30,10,11,12,92,208,157,158]),import.meta.url),()=>r(()=>import("../nodes/32.CnHi0wRk.js"),__vite__mapDeps([212,1,3,4,5,9,8,10,2,11,12,17,208,157,158]),import.meta.url),()=>r(()=>import("../nodes/33.DDig6K20.js"),__vite__mapDeps([213,1,3,4,5,9,8,26,208,157,158,12,11,2,36,24,25,6,44,65,56,112]),import.meta.url),()=>r(()=>import("../nodes/34.Bf4X36eZ.js"),__vite__mapDeps([214,1,3,5,8,203,4,9,88,24,25,6,138,12,11,2,17,92,19,32,33,26,208,157,158]),import.meta.url),()=>r(()=>import("../nodes/35.C7ql3_zk.js"),__vite__mapDeps([215,1,3,4,5,9,8,12,11,2,17,208,157,158,129,24,25,6]),import.meta.url),()=>r(()=>import("../nodes/36.DU8cKjZG.js"),__vite__mapDeps([216,1,2,3,4,5,28,9,8,10,11,12,208,157,158,191,43,24,25,6,159,217,7,30,82,51,83,32,33,26,44,187,13,14,17,40,188,65,102,67,189,218,185,29,66,36]),import.meta.url),()=>r(()=>import("../nodes/37.Do0SMZ1v.js"),__vite__mapDeps([219,1,2,3,4,5,9,8,10,11,12,208,157,158,218,24,185,187,13,14,17,40,25,6,43,30,189,65,32,33,26,96]),import.meta.url),()=>r(()=>import("../nodes/38.CtS3KKlQ.js"),__vite__mapDeps([220,1,3,4,5,8,32,33,9,6,26,24,208,157,158,12,11,2]),import.meta.url),()=>r(()=>import("../nodes/39.4sF9TG4n.js"),__vite__mapDeps([221,1,3,4,5,8,9,30,12,11,2,17,208,157,158,64]),import.meta.url),()=>r(()=>import("../nodes/40.CQ_BoiE-.js"),__vite__mapDeps([222,1,3,4,5,9,8,12,11,2,17,208,157,158,162,30,26,24,31,32,33,6,35,25,44,34,143,183,129]),import.meta.url),()=>r(()=>import("../nodes/41.CnUbdf5W.js"),__vite__mapDeps([223,1,2,3,4,5,9,7,8,30,10,11,12,32,33,6,26,24,160,149,57,69,25,97,135,150,40,96,161,185,81,42,35,45,129,43,159,47,217,82,51,28,83,44,187,13,14,17,188,65,102,77,34]),import.meta.url),()=>r(()=>import("../nodes/42.DjpUCMvB.js"),__vite__mapDeps([224,1,3,12,11,2,4,118,5,9,6,25,24,8,26,29,119,10,13,14,20,27,28,7,30,17,31,32,33,34,35,36,37,18,19,38,16,39,40,41,42,43,44,45,46,47,48,106,54,22,57,107,93,108,109,96,110,79,80,111,112,97,72,113,102,114,91,92,90,120,121,122,123,124,89,73,125,21,126,60,127,128,61,77,129,130,59,131,87,84,85,86,88,55,132,133,116,134,115,15,78,58,49,81,82,51,83,94,95,98,99,69,135,136]),import.meta.url),()=>r(()=>import("../nodes/43.C6Qrs38w.js"),__vite__mapDeps([225,1,3,4,5,8,9,79,80,127,29,172,6,26,36,24,25,173,69,47,132,89]),import.meta.url),()=>r(()=>import("../nodes/44._-UvgvOX.js"),__vite__mapDeps([226,1,3,4,5,9,8,116,166,12,11,2,21,133,24,134]),import.meta.url)],Dt=[0],It={"/":[-3],"/crew":[3],"/decisions":[-5],"/deck":[-6],"/documents":[-7],"/events":[-8],"/files":[-9],"/harbour":[-10],"/headroom":[-11],"/health":[-12],"/inbox":[-13],"/library/[shelf]/[folder]/[slug]":[-14],"/live-review/[id]":[14],"/more":[15],"/plugins":[16],"/plugins/[plugin]/[page]":[-18],"/projects/[id]":[-19],"/projects/[id]/passage":[-21],"/projects/[id]/passage/edit":[-22],"/projects/[id]/[plugin]/[tab]":[-20],"/prototypes/[project]/[task]/[name]":[-23],"/records/[project]/[task]":[-24],"/remotes":[-25],"/second-mates":[-26],"/second-mates/add":[26],"/settings":[-28],"/settings/chat":[-29],"/settings/cloud":[-30],"/settings/discussion":[-31],"/settings/events":[-32],"/settings/experimental":[-33],"/settings/firstmate":[-34],"/settings/gateway":[-35],"/settings/headroom":[-36],"/settings/plugins":[-37],"/settings/plugins/[plugin]":[-38],"/settings/setup":[-39],"/settings/update":[-40],"/settings/voice":[-41],"/setup":[-42],"/tasks/[id]":[-43],"/tasks/[id]/doc":[-44],"/time":[-45]},j={handleError:(({error:_})=>{console.error(_)}),reroute:(()=>{}),transport:{}},dt=Object.fromEntries(Object.entries(j.transport).map(([_,t])=>[_,t.decode])),Tt=Object.fromEntries(Object.entries(j.transport).map(([_,t])=>[_,t.encode])),Vt=!1,bt=(_,t)=>dt[_](t),yt=()=>r(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(_=>_.default);export{bt as decode,dt as decoders,It as dictionary,Tt as encoders,yt as get_error_template,Vt as hash,j as hooks,Rt as matchers,At as nodes,Lt as root,Dt as server_loads};
@@ -1 +0,0 @@
1
- import{s as r}from"../chunks/B8nUI-P4.js";import{z as t}from"../chunks/AYO6DeDt.js";export{t as load_css,r as start};