@chrisjowen/wheelhouse 0.18.1 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/README.md +7 -6
  2. package/build/client/_app/immutable/assets/0.Bv6SelNG.css +1 -0
  3. package/build/client/_app/immutable/assets/0.Bv6SelNG.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.Bv6SelNG.css.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{D2Frmdzl.js → -fAn-QZ6.js} +1 -1
  6. package/build/client/_app/immutable/chunks/-fAn-QZ6.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/-fAn-QZ6.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{BL011DGQ.js → 2AbYRrJA.js} +1 -1
  9. package/build/client/_app/immutable/chunks/2AbYRrJA.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/2AbYRrJA.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{DglJ92hi.js → 5DXsVwmq.js} +1 -1
  12. package/build/client/_app/immutable/chunks/5DXsVwmq.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/5DXsVwmq.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/5j8_HxjF.js +1 -0
  15. package/build/client/_app/immutable/chunks/5j8_HxjF.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/5j8_HxjF.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{CspN1OJw.js → BT6Y01Hq.js} +1 -1
  18. package/build/client/_app/immutable/chunks/BT6Y01Hq.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/BT6Y01Hq.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{JUzTNcjv.js → BVJ0lC5K.js} +1 -1
  21. package/build/client/_app/immutable/chunks/BVJ0lC5K.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BVJ0lC5K.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{BSBcdyd3.js → Baxoev3a.js} +1 -1
  24. package/build/client/_app/immutable/chunks/Baxoev3a.js.br +1 -0
  25. package/build/client/_app/immutable/chunks/Baxoev3a.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/{CoQMrCtk.js → BeZgLQLl.js} +1 -1
  27. package/build/client/_app/immutable/chunks/BeZgLQLl.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/BeZgLQLl.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/{BDtt0Y7t.js → CDrKIy6b.js} +1 -1
  30. package/build/client/_app/immutable/chunks/CDrKIy6b.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CDrKIy6b.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/{I4bsCfS2.js → CGVyv1kv.js} +1 -1
  33. package/build/client/_app/immutable/chunks/CGVyv1kv.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/{I4bsCfS2.js.gz → CGVyv1kv.js.gz} +0 -0
  35. package/build/client/_app/immutable/chunks/{Cpxqeawy.js → CGgU6JcF.js} +1 -1
  36. package/build/client/_app/immutable/chunks/CGgU6JcF.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/CGgU6JcF.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/CW2qBe0U.js +1 -0
  39. package/build/client/_app/immutable/chunks/CW2qBe0U.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/CW2qBe0U.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/{CzBY7r8x.js → Cg9h9TA_.js} +1 -1
  42. package/build/client/_app/immutable/chunks/Cg9h9TA_.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/Cg9h9TA_.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/{luPa70aT.js → CiyFCD_Y.js} +1 -1
  45. package/build/client/_app/immutable/chunks/CiyFCD_Y.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/CiyFCD_Y.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/{CtiH9jvV.js → CyEUF6kH.js} +1 -1
  48. package/build/client/_app/immutable/chunks/CyEUF6kH.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/CyEUF6kH.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/{Dcf7qESD.js → D4YFdJ2K.js} +1 -1
  51. package/build/client/_app/immutable/chunks/D4YFdJ2K.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/D4YFdJ2K.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/{COSi3XeB.js → DR64qHvI.js} +1 -1
  54. package/build/client/_app/immutable/chunks/DR64qHvI.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/DR64qHvI.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/DTsBbwsD.js +1 -0
  57. package/build/client/_app/immutable/chunks/DTsBbwsD.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/DTsBbwsD.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/{Bj-Gheej.js → OWl_aob1.js} +1 -1
  60. package/build/client/_app/immutable/chunks/OWl_aob1.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/OWl_aob1.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/Vkbb4g2s.js +2 -0
  63. package/build/client/_app/immutable/chunks/Vkbb4g2s.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/Vkbb4g2s.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/_snkxcQo.js +5 -0
  66. package/build/client/_app/immutable/chunks/_snkxcQo.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/_snkxcQo.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/{Deh9Yuoc.js → gXQLD015.js} +1 -1
  69. package/build/client/_app/immutable/chunks/gXQLD015.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/gXQLD015.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/{C_QL6rvF.js → qLcA5kFM.js} +1 -1
  72. package/build/client/_app/immutable/chunks/qLcA5kFM.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/qLcA5kFM.js.gz +0 -0
  74. package/build/client/_app/immutable/entry/app.Cqo400M3.js +2 -0
  75. package/build/client/_app/immutable/entry/app.Cqo400M3.js.br +0 -0
  76. package/build/client/_app/immutable/entry/app.Cqo400M3.js.gz +0 -0
  77. package/build/client/_app/immutable/entry/start.Ce2sGdnV.js +1 -0
  78. package/build/client/_app/immutable/entry/start.Ce2sGdnV.js.br +0 -0
  79. package/build/client/_app/immutable/entry/start.Ce2sGdnV.js.gz +0 -0
  80. package/build/client/_app/immutable/nodes/0.BDEsJAC6.js +9 -0
  81. package/build/client/_app/immutable/nodes/0.BDEsJAC6.js.br +0 -0
  82. package/build/client/_app/immutable/nodes/0.BDEsJAC6.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/{1.BGpUfjP8.js → 1.BAdh5fLI.js} +1 -1
  84. package/build/client/_app/immutable/nodes/1.BAdh5fLI.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/1.BAdh5fLI.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/{10.Dqja5Hy7.js → 10.BdqmXPBq.js} +1 -1
  87. package/build/client/_app/immutable/nodes/10.BdqmXPBq.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/10.BdqmXPBq.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/{11.C2hpIuul.js → 11.C7GVGBrp.js} +1 -1
  90. package/build/client/_app/immutable/nodes/11.C7GVGBrp.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/11.C7GVGBrp.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/{12.D9gnyWPh.js → 12.CfCz32Hl.js} +1 -1
  93. package/build/client/_app/immutable/nodes/12.CfCz32Hl.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/12.CfCz32Hl.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/{13.DL0THiQT.js → 13.CerB5X05.js} +1 -1
  96. package/build/client/_app/immutable/nodes/13.CerB5X05.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/13.CerB5X05.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/{14.zHzRn1L0.js → 14.B0msOOIX.js} +1 -1
  99. package/build/client/_app/immutable/nodes/14.B0msOOIX.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/14.B0msOOIX.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/{15.CxiJzXJw.js → 15.CU_96PAW.js} +1 -1
  102. package/build/client/_app/immutable/nodes/15.CU_96PAW.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/15.CU_96PAW.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/{16.ltkCLaiY.js → 16.ZuUMnj98.js} +1 -1
  105. package/build/client/_app/immutable/nodes/16.ZuUMnj98.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/16.ZuUMnj98.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/{17.8mjwurTl.js → 17.BSv9bFuE.js} +1 -1
  108. package/build/client/_app/immutable/nodes/17.BSv9bFuE.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/17.BSv9bFuE.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/{19.DIpFUdcm.js → 19.EQTYVr90.js} +1 -1
  111. package/build/client/_app/immutable/nodes/19.EQTYVr90.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/19.EQTYVr90.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/2.9EupRWC-.js +28 -0
  114. package/build/client/_app/immutable/nodes/2.9EupRWC-.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/2.9EupRWC-.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/{20.BP6YYSQm.js → 20.D5cIPU-z.js} +1 -1
  117. package/build/client/_app/immutable/nodes/20.D5cIPU-z.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/20.D5cIPU-z.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/{21.lQoTeuLN.js → 21.DK75zAW4.js} +1 -1
  120. package/build/client/_app/immutable/nodes/21.DK75zAW4.js.br +0 -0
  121. package/build/client/_app/immutable/nodes/21.DK75zAW4.js.gz +0 -0
  122. package/build/client/_app/immutable/nodes/{22.DmHOHt5L.js → 22.Clcens7W.js} +1 -1
  123. package/build/client/_app/immutable/nodes/22.Clcens7W.js.br +0 -0
  124. package/build/client/_app/immutable/nodes/22.Clcens7W.js.gz +0 -0
  125. package/build/client/_app/immutable/nodes/{23.D7UbkVJG.js → 23.B7G5quJX.js} +1 -1
  126. package/build/client/_app/immutable/nodes/23.B7G5quJX.js.br +0 -0
  127. package/build/client/_app/immutable/nodes/23.B7G5quJX.js.gz +0 -0
  128. package/build/client/_app/immutable/nodes/{24.B6o--6Mq.js → 24.DonaWknP.js} +1 -1
  129. package/build/client/_app/immutable/nodes/24.DonaWknP.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/24.DonaWknP.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/25.Dw_k3X_t.js +23 -0
  132. package/build/client/_app/immutable/nodes/25.Dw_k3X_t.js.br +0 -0
  133. package/build/client/_app/immutable/nodes/25.Dw_k3X_t.js.gz +0 -0
  134. package/build/client/_app/immutable/nodes/{26.CbeAF_H2.js → 26.C8O2VDmM.js} +1 -1
  135. package/build/client/_app/immutable/nodes/26.C8O2VDmM.js.br +0 -0
  136. package/build/client/_app/immutable/nodes/26.C8O2VDmM.js.gz +0 -0
  137. package/build/client/_app/immutable/nodes/{28.D3Nqqpa-.js → 28.zLgUNaHR.js} +1 -1
  138. package/build/client/_app/immutable/nodes/28.zLgUNaHR.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/28.zLgUNaHR.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/{3.BgWGx5YP.js → 3.Bf4Qi1i3.js} +1 -1
  141. package/build/client/_app/immutable/nodes/3.Bf4Qi1i3.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/3.Bf4Qi1i3.js.gz +0 -0
  143. package/build/client/_app/immutable/nodes/{4.CmSxKRLa.js → 4.CO6-aByj.js} +1 -1
  144. package/build/client/_app/immutable/nodes/4.CO6-aByj.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/4.CO6-aByj.js.gz +0 -0
  146. package/build/client/_app/immutable/nodes/{6.CExYN4s7.js → 6.B56rBCgR.js} +1 -1
  147. package/build/client/_app/immutable/nodes/6.B56rBCgR.js.br +0 -0
  148. package/build/client/_app/immutable/nodes/6.B56rBCgR.js.gz +0 -0
  149. package/build/client/_app/immutable/nodes/{7.B5DaW8rR.js → 7.CtYzZ1HY.js} +1 -1
  150. package/build/client/_app/immutable/nodes/7.CtYzZ1HY.js.br +0 -0
  151. package/build/client/_app/immutable/nodes/7.CtYzZ1HY.js.gz +0 -0
  152. package/build/client/_app/immutable/nodes/{8.BAxGmD9j.js → 8.N9QG5-DU.js} +1 -1
  153. package/build/client/_app/immutable/nodes/8.N9QG5-DU.js.br +0 -0
  154. package/build/client/_app/immutable/nodes/8.N9QG5-DU.js.gz +0 -0
  155. package/build/client/_app/immutable/nodes/{9.B05Fdcd3.js → 9.aHwzcVbZ.js} +1 -1
  156. package/build/client/_app/immutable/nodes/9.aHwzcVbZ.js.br +0 -0
  157. package/build/client/_app/immutable/nodes/9.aHwzcVbZ.js.gz +0 -0
  158. package/build/client/_app/version.json +1 -1
  159. package/build/client/_app/version.json.br +0 -0
  160. package/build/client/_app/version.json.gz +0 -0
  161. package/build/handler.js +4 -4
  162. package/build/index.js +4 -4
  163. package/build/server/chunks/chunks/{DecisionCard.js-BGSPGiMJ.js → DecisionCard.js-BK-7QlF6.js} +2 -2
  164. package/build/server/chunks/chunks/{OpenDecision.js-D5ZzLDAg.js → OpenDecision.js-ECtCedSr.js} +3 -3
  165. package/build/server/chunks/chunks/{bell.js-DuW71LLn.js → bell.js-kMMKqlsJ.js} +35 -2
  166. package/build/server/chunks/chunks/{chat.svelte.js-BcKQjH6T.js → chat.svelte.js-BtY19xS3.js} +10 -2
  167. package/build/server/chunks/chunks/{detail.js-Cl-2Oh1e.js → detail.js-DfXwWd3N.js} +2 -2
  168. package/build/server/chunks/chunks/{feedback.js-7UNSvLAt.js → feedback.js-CpU0hBIw.js} +2 -2
  169. package/build/server/chunks/chunks/{harness.js-C1CYCy4c.js → harness.js-DvhIhjw1.js} +4 -3
  170. package/build/server/chunks/chunks/{insights.svelte.js-Buez8RTS.js → insights.svelte.js-DZqfDUCl.js} +4 -4
  171. package/build/server/chunks/chunks/{internal.js-DK7xaPVY.js → internal.js-DpvEcL3m.js} +3 -3
  172. package/build/server/chunks/chunks/{keychain.js-CJIUvfTQ.js → keychain.js-CUptlCB0.js} +2 -2
  173. package/build/server/chunks/chunks/{marketplace-service.js-nufBLQts.js → marketplace-service.js-CcEt-Yt_.js} +2 -2
  174. package/build/server/chunks/chunks/{page.js-BVYP5P0m.js → page.js-CSdkAlGz.js} +3 -3
  175. package/build/server/chunks/chunks/{previewhelper2.js-DPz8atKx.js → previewhelper2.js-Dz5p1Ak0.js} +2 -2
  176. package/build/server/chunks/chunks/{starter.js-Bs7SaswL.js → remote.js-B9wIv4yQ.js} +19 -339
  177. package/build/server/chunks/chunks/{repo.js-CPooM_kq.js → repo.js-n0uiFQ_1.js} +2 -2
  178. package/build/server/chunks/chunks/{runtime.js-Bj0q2OTu.js → runtime.js-D8WQmN9S.js} +580 -60
  179. package/build/server/chunks/chunks/{service.js-VAj_rquU.js → service.js-vvxAXEiD.js} +2 -2
  180. package/build/server/chunks/chunks/{service2.js-CbbDamOZ.js → service2.js-BbGi9Cq9.js} +24 -9
  181. package/build/server/chunks/chunks/starter.js-DzoT_I2j.js +333 -0
  182. package/build/server/chunks/chunks/{terminal.js-D6YKc4IS.js → terminal.js-BE8dA5Np.js} +19 -5
  183. package/build/server/chunks/chunks/{view.js-BiofJDNZ.js → view.js-tnJNOMBI.js} +2 -2
  184. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-Bjepmw90.js → _server.ts.js-YypBbX7Z.js} +6 -6
  185. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-BkCwjJYX.js → _server.ts.js-C0uCNqUj.js} +4 -4
  186. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-CXvN0rdQ.js → _server.ts.js-BesIsQP0.js} +6 -6
  187. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-v08IH4y_.js → _server.ts.js-M4ucOHu3.js} +6 -6
  188. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-d0XuZob6.js → _server.ts.js-DgeIgY-t.js} +6 -6
  189. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CZEvtgmJ.js → _server.ts.js-lSl82WdD.js} +6 -6
  190. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DojVtSlb.js → _server.ts.js-CkUo3Q-h.js} +6 -6
  191. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DXBMuJxa.js → _server.ts.js-o9QvLY3R.js} +6 -6
  192. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-CL2HsmMI.js → _server.ts.js-CM5SUIBy.js} +6 -6
  193. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-Bi8yHsen.js → _server.ts.js-Dt0KDwmj.js} +6 -6
  194. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-CiPPnBqE.js → _server.ts.js-DCLz7kjl.js} +6 -6
  195. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-Dm0WehBE.js → _server.ts.js-2U13zCFK.js} +6 -6
  196. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CmK0bQFV.js → _server.ts.js-DT31dvZa.js} +6 -6
  197. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-C4O_w6UX.js +62 -0
  198. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-CIR1beQf.js → _server.ts.js-L-Hjg9xg.js} +6 -6
  199. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-B7G60uTf.js → _server.ts.js-DgHjNrJe.js} +6 -6
  200. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BKqRzjah.js → _server.ts.js-CRltDuWU.js} +6 -6
  201. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-DxYmytE-.js → _server.ts.js-DlLRrX7c.js} +6 -6
  202. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-BHywbWob.js → _server.ts.js-CZgUVpTR.js} +6 -6
  203. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-CK3DFFDx.js → _server.ts.js-DUyWZ3-9.js} +6 -6
  204. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-AUTZjM3m.js → _server.ts.js-2CyCBr_6.js} +6 -6
  205. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-COr7_-xt.js → _server.ts.js-CTkXGNLV.js} +6 -6
  206. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-DdgCnxxi.js → _server.ts.js-ChgUhOxs.js} +7 -7
  207. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-B-Bt7Bbc.js → _server.ts.js-NmoI6TdE.js} +8 -8
  208. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DI9Fk8K7.js → _server.ts.js-BAQlQe2s.js} +6 -6
  209. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-BQvP1Q-R.js → _server.ts.js-D5XxEnCu.js} +2 -2
  210. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-CmtQrDJT.js → _server.ts.js-BGXT3UEn.js} +6 -6
  211. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-CU0RTwoG.js → _server.ts.js-CMVRpUZA.js} +2 -2
  212. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-Bdirqc6N.js → _server.ts.js-Bu9fx6v5.js} +6 -6
  213. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-EbyqpOEx.js → _server.ts.js-ktP3gud-.js} +2 -2
  214. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-BwkGtYFQ.js → _server.ts.js-DQBZvXwa.js} +2 -2
  215. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CYD7YCIF.js → _server.ts.js-DkgeagPj.js} +7 -7
  216. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-gmMaK6QY.js → _server.ts.js-Ca-EjclY.js} +7 -7
  217. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-D43_Ml9Y.js → _server.ts.js-CHcP9p9j.js} +7 -7
  218. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-BEUuxHTl.js → _server.ts.js-DEUeoZL0.js} +6 -6
  219. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-C1xwZyfT.js → _server.ts.js-Cma7QVTl.js} +2 -2
  220. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-qZdJXsGA.js → _server.ts.js-B3OF42Nq.js} +6 -6
  221. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-BM-c0-Ju.js → _server.ts.js-DsdF_bjf.js} +7 -7
  222. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-CHIAK59y.js → _server.ts.js-BYQjR_si.js} +7 -7
  223. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-CH1IHuDe.js → _server.ts.js-ChDPakdg.js} +7 -7
  224. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DgeSMGot.js → _server.ts.js-DeJijkDf.js} +7 -7
  225. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-BQQc8aTH.js → _server.ts.js-Dymz4f3q.js} +7 -7
  226. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-D92Af8_M.js → _server.ts.js-CeqzeUZk.js} +7 -7
  227. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-7v53Dp0B.js → _server.ts.js-BP_16c0K.js} +6 -6
  228. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-cTrwNrLS.js → _server.ts.js-CFk-87JF.js} +6 -6
  229. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-CmmK_jyt.js → _server.ts.js-9cAQuLKz.js} +10 -8
  230. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-D7-4JbRn.js → _server.ts.js-B1kwbXQm.js} +6 -6
  231. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-BI5hlIlZ.js → _server.ts.js-DjqQGx3a.js} +7 -7
  232. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-DIP-NQ7a.js → _server.ts.js-DDMf0gyd.js} +6 -6
  233. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-BP9_6wCq.js → _server.ts.js-Dp3vd0K4.js} +6 -6
  234. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BxO3Yh5r.js → _server.ts.js-D-s6wA_g.js} +6 -6
  235. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-jojxY4wz.js → _server.ts.js-J9_uC4S-.js} +6 -6
  236. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-BAgqe8_d.js → _server.ts.js-Bd0wU1SA.js} +7 -7
  237. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-DBYZ3kuk.js → _server.ts.js-BezlvrlP.js} +6 -6
  238. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Bvrz69xX.js → _server.ts.js-DZ0sSfFq.js} +2 -2
  239. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-CAOg-IEp.js → _server.ts.js-BOL3EB6d.js} +2 -2
  240. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CGEnB-6H.js → _server.ts.js-91XVVYwO.js} +2 -2
  241. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-BL2svrRm.js → _server.ts.js-TYjteIH9.js} +6 -6
  242. package/build/server/chunks/entries/{hooks.server.js-BEXBvrCk.js → hooks.server.js-y6GqC__K.js} +6 -6
  243. package/build/server/chunks/entries/pages/{_layout.server.ts.js-D3NceNiH.js → _layout.server.ts.js-CWR6gzcz.js} +15 -3
  244. package/build/server/chunks/entries/pages/{_layout.svelte.js-CuWnZ-US.js → _layout.svelte.js-BDIlEQ9G.js} +20 -7
  245. package/build/server/chunks/entries/pages/{_page.server.ts.js-DspaiJqP.js → _page.server.ts.js-ClSaGoxW.js} +2 -2
  246. package/build/server/chunks/entries/pages/{_page.svelte.js-dxbEuRWy.js → _page.svelte.js-DAV9f-2z.js} +96 -16
  247. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BmPOLjxU.js → _page.server.ts.js-CmVt5_0H.js} +2 -2
  248. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-CCy338c9.js → _page.server.ts.js-Djt-UMHk.js} +2 -2
  249. package/build/server/chunks/entries/pages/deck/{_page.svelte.js-TazICq1a.js → _page.svelte.js-DYZLLbYM.js} +6 -5
  250. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-bxjhlft-.js → _page.server.ts.js-BD7N_qlq.js} +2 -2
  251. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-CZFURrsD.js → _page.server.ts.js-BWEvvkXd.js} +2 -2
  252. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-DvR2S3u3.js → _page.server.ts.js-DEnGvqY7.js} +2 -2
  253. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-BesipmjT.js → _page.server.ts.js-BcSyMgQ3.js} +2 -2
  254. package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-BOndKRgZ.js → _page.svelte.js-BuV_cnZ4.js} +4 -3
  255. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-DHdujj6W.js → _page.server.ts.js-DICSJ1yk.js} +2 -2
  256. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-xmIQiuu2.js → _page.server.ts.js-qs8fYjoq.js} +3 -3
  257. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-D_Ii0uof.js → _page.server.ts.js-CFVD2206.js} +3 -3
  258. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-n6e3g77p.js → _page.server.ts.js-B_EDdf4-.js} +4 -4
  259. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-ZJwXvTNk.js → _page.server.ts.js-CFc6J118.js} +2 -2
  260. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-DbD1fRK0.js → _page.server.ts.js-YlsNimak.js} +2 -2
  261. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-C_UO9VhC.js → _page.server.ts.js-C18thE2p.js} +2 -2
  262. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DmW9-_yt.js → _page.server.ts.js-D7MA5r8B.js} +2 -2
  263. package/build/server/chunks/entries/pages/settings/gateway/{_page.svelte.js-7xxA_syu.js → _page.svelte.js-DjdutjT9.js} +2 -2
  264. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-BxdFy--G.js → _page.server.ts.js-D7mFW6BU.js} +2 -2
  265. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-BfkLEaaA.js → _page.server.ts.js-B5PRjcEk.js} +2 -2
  266. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-CkR40WPa.js → _page.server.ts.js-BKCf6GI8.js} +2 -2
  267. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-CN1Ahy44.js → _page.server.ts.js-l9818Zmt.js} +2 -2
  268. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-4IWnC99t.js → _page.server.ts.js-CYG3AjLq.js} +3 -3
  269. package/build/server/chunks/entries/pages/setup/{_page.svelte.js-Beyd7UV-.js → _page.svelte.js-ufidrxf2.js} +237 -62
  270. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-BOxovAbm.js → _page.server.ts.js-C8yELGLP.js} +3 -3
  271. package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-Pdk-bUSp.js → _page.svelte.js-ClTXM9u_.js} +5 -4
  272. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-Bmg4TjLJ.js → _page.server.ts.js-DH5FWFco.js} +2 -2
  273. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-D7R4GOAK.js → _page.server.ts.js-CbGVDBOP.js} +2 -2
  274. package/build/server/chunks/{handler-Bsxke96k.js → handler-CXCR8Q4K.js} +3 -3
  275. package/build/server/chunks/{index.js-CcawFdzD.js → index.js-a92jTb4Y.js} +2 -2
  276. package/build/server/chunks/{manifest.js-DkK5FPTc.js → manifest.js-DlPiZuhP.js} +94 -87
  277. package/build/server/chunks/nodes/{0.js-Dr88qrfQ.js → 0.js-CvmTbg3U.js} +11 -11
  278. package/build/server/chunks/nodes/{1.js-D9Gz264j.js → 1.js-BujFb9Zi.js} +2 -2
  279. package/build/server/chunks/nodes/{10.js-DyFJpcP6.js → 10.js-BvDpsiPS.js} +2 -2
  280. package/build/server/chunks/nodes/{11.js-CHYjTTCN.js → 11.js-DnB_0WNt.js} +8 -8
  281. package/build/server/chunks/nodes/{12.js-CMF6MLfu.js → 12.js-DrP06vmh.js} +9 -9
  282. package/build/server/chunks/nodes/{13.js-Y2UOSc1A.js → 13.js-DIl2HIpF.js} +9 -9
  283. package/build/server/chunks/nodes/{14.js-B1dU02LJ.js → 14.js-q-yrKOw8.js} +10 -10
  284. package/build/server/chunks/nodes/{15.js-s36rxaaa.js → 15.js-DRka6ivw.js} +9 -9
  285. package/build/server/chunks/nodes/{16.js-C_GznDot.js → 16.js-DatqsdMm.js} +10 -10
  286. package/build/server/chunks/nodes/{17.js-B_z-Yacj.js → 17.js-Cwu5j1MM.js} +2 -2
  287. package/build/server/chunks/nodes/{19.js-7kkszInA.js → 19.js-Bhq4zmsU.js} +10 -10
  288. package/build/server/chunks/nodes/{2.js-BoKn8yL8.js → 2.js-D9vYoDxc.js} +9 -9
  289. package/build/server/chunks/nodes/{20.js-Duw5u3lU.js → 20.js-ByB6AIfc.js} +9 -9
  290. package/build/server/chunks/nodes/{21.js-DDgwWnZG.js → 21.js-2ShKtow1.js} +8 -8
  291. package/build/server/chunks/nodes/{22.js-8U2MYvHd.js → 22.js-CFCAypxN.js} +8 -8
  292. package/build/server/chunks/nodes/{23.js-Dvy1bm8Z.js → 23.js-Cx3oZxN7.js} +10 -10
  293. package/build/server/chunks/nodes/{24.js-C0hrPaj8.js → 24.js-Cfc2UkWc.js} +4 -4
  294. package/build/server/chunks/nodes/{25.js-DPILN__F.js → 25.js-BS3_PExv.js} +11 -11
  295. package/build/server/chunks/nodes/{26.js-g0xLmQX6.js → 26.js-yOfJBY-o.js} +10 -10
  296. package/build/server/chunks/nodes/{27.js-D-RYuUrP.js → 27.js-Qm4-nQTp.js} +8 -8
  297. package/build/server/chunks/nodes/{28.js-ChEjRlOd.js → 28.js-DvLWpxRU.js} +8 -8
  298. package/build/server/chunks/nodes/{3.js-2LHex_7S.js → 3.js-BVx4SYkn.js} +8 -8
  299. package/build/server/chunks/nodes/{4.js-B0jcFsXF.js → 4.js-BjhjiAF8.js} +9 -9
  300. package/build/server/chunks/nodes/{5.js-CeqH-HPW.js → 5.js-CSFZToQk.js} +7 -7
  301. package/build/server/chunks/nodes/{6.js-BuLAK7U9.js → 6.js-CxehRAvY.js} +8 -8
  302. package/build/server/chunks/nodes/{7.js-Ipoo2cZQ.js → 7.js-BD0AoE9A.js} +8 -8
  303. package/build/server/chunks/nodes/{8.js-BffjWe3B.js → 8.js-D27Ox14R.js} +9 -9
  304. package/build/server/chunks/nodes/{9.js-CCDefHMh.js → 9.js-Cpbe7mvE.js} +2 -2
  305. package/dist/cli.js +33 -10
  306. package/dist/wh-vault.js +1 -1
  307. package/package.json +1 -1
  308. package/skills/manage-wheelhouse/references/operations.md +13 -11
  309. package/build/client/_app/immutable/assets/0.Dyflbqc4.css +0 -1
  310. package/build/client/_app/immutable/assets/0.Dyflbqc4.css.br +0 -0
  311. package/build/client/_app/immutable/assets/0.Dyflbqc4.css.gz +0 -0
  312. package/build/client/_app/immutable/chunks/BDtt0Y7t.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/BDtt0Y7t.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/BL011DGQ.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/BL011DGQ.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/BSBcdyd3.js.br +0 -2
  317. package/build/client/_app/immutable/chunks/BSBcdyd3.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/Bj-Gheej.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/Bj-Gheej.js.gz +0 -0
  320. package/build/client/_app/immutable/chunks/COSi3XeB.js.br +0 -0
  321. package/build/client/_app/immutable/chunks/COSi3XeB.js.gz +0 -0
  322. package/build/client/_app/immutable/chunks/CSzf141e.js +0 -1
  323. package/build/client/_app/immutable/chunks/CSzf141e.js.br +0 -0
  324. package/build/client/_app/immutable/chunks/CSzf141e.js.gz +0 -0
  325. package/build/client/_app/immutable/chunks/C_4BzEag.js +0 -1
  326. package/build/client/_app/immutable/chunks/C_4BzEag.js.br +0 -0
  327. package/build/client/_app/immutable/chunks/C_4BzEag.js.gz +0 -0
  328. package/build/client/_app/immutable/chunks/C_QL6rvF.js.br +0 -0
  329. package/build/client/_app/immutable/chunks/C_QL6rvF.js.gz +0 -0
  330. package/build/client/_app/immutable/chunks/ClsjySa8.js +0 -1
  331. package/build/client/_app/immutable/chunks/ClsjySa8.js.br +0 -0
  332. package/build/client/_app/immutable/chunks/ClsjySa8.js.gz +0 -0
  333. package/build/client/_app/immutable/chunks/CoQMrCtk.js.br +0 -0
  334. package/build/client/_app/immutable/chunks/CoQMrCtk.js.gz +0 -0
  335. package/build/client/_app/immutable/chunks/Cpxqeawy.js.br +0 -0
  336. package/build/client/_app/immutable/chunks/Cpxqeawy.js.gz +0 -0
  337. package/build/client/_app/immutable/chunks/CspN1OJw.js.br +0 -0
  338. package/build/client/_app/immutable/chunks/CspN1OJw.js.gz +0 -0
  339. package/build/client/_app/immutable/chunks/CtiH9jvV.js.br +0 -2
  340. package/build/client/_app/immutable/chunks/CtiH9jvV.js.gz +0 -0
  341. package/build/client/_app/immutable/chunks/CzBY7r8x.js.br +0 -0
  342. package/build/client/_app/immutable/chunks/CzBY7r8x.js.gz +0 -0
  343. package/build/client/_app/immutable/chunks/D2Frmdzl.js.br +0 -0
  344. package/build/client/_app/immutable/chunks/D2Frmdzl.js.gz +0 -0
  345. package/build/client/_app/immutable/chunks/D9kzO4Vy.js +0 -1
  346. package/build/client/_app/immutable/chunks/D9kzO4Vy.js.br +0 -0
  347. package/build/client/_app/immutable/chunks/D9kzO4Vy.js.gz +0 -0
  348. package/build/client/_app/immutable/chunks/Dcf7qESD.js.br +0 -0
  349. package/build/client/_app/immutable/chunks/Dcf7qESD.js.gz +0 -0
  350. package/build/client/_app/immutable/chunks/Deh9Yuoc.js.br +0 -0
  351. package/build/client/_app/immutable/chunks/Deh9Yuoc.js.gz +0 -0
  352. package/build/client/_app/immutable/chunks/DglJ92hi.js.br +0 -0
  353. package/build/client/_app/immutable/chunks/DglJ92hi.js.gz +0 -0
  354. package/build/client/_app/immutable/chunks/I4bsCfS2.js.br +0 -0
  355. package/build/client/_app/immutable/chunks/JUzTNcjv.js.br +0 -0
  356. package/build/client/_app/immutable/chunks/JUzTNcjv.js.gz +0 -0
  357. package/build/client/_app/immutable/chunks/cM1ZMvyM.js +0 -2
  358. package/build/client/_app/immutable/chunks/cM1ZMvyM.js.br +0 -0
  359. package/build/client/_app/immutable/chunks/cM1ZMvyM.js.gz +0 -0
  360. package/build/client/_app/immutable/chunks/luPa70aT.js.br +0 -0
  361. package/build/client/_app/immutable/chunks/luPa70aT.js.gz +0 -0
  362. package/build/client/_app/immutable/chunks/rwLE2q5W.js +0 -5
  363. package/build/client/_app/immutable/chunks/rwLE2q5W.js.br +0 -0
  364. package/build/client/_app/immutable/chunks/rwLE2q5W.js.gz +0 -0
  365. package/build/client/_app/immutable/entry/app.LCo0tRMU.js +0 -2
  366. package/build/client/_app/immutable/entry/app.LCo0tRMU.js.br +0 -0
  367. package/build/client/_app/immutable/entry/app.LCo0tRMU.js.gz +0 -0
  368. package/build/client/_app/immutable/entry/start.Ce3bAKNA.js +0 -1
  369. package/build/client/_app/immutable/entry/start.Ce3bAKNA.js.br +0 -0
  370. package/build/client/_app/immutable/entry/start.Ce3bAKNA.js.gz +0 -0
  371. package/build/client/_app/immutable/nodes/0.DjC9pa5r.js +0 -9
  372. package/build/client/_app/immutable/nodes/0.DjC9pa5r.js.br +0 -0
  373. package/build/client/_app/immutable/nodes/0.DjC9pa5r.js.gz +0 -0
  374. package/build/client/_app/immutable/nodes/1.BGpUfjP8.js.br +0 -0
  375. package/build/client/_app/immutable/nodes/1.BGpUfjP8.js.gz +0 -0
  376. package/build/client/_app/immutable/nodes/10.Dqja5Hy7.js.br +0 -0
  377. package/build/client/_app/immutable/nodes/10.Dqja5Hy7.js.gz +0 -0
  378. package/build/client/_app/immutable/nodes/11.C2hpIuul.js.br +0 -2
  379. package/build/client/_app/immutable/nodes/11.C2hpIuul.js.gz +0 -0
  380. package/build/client/_app/immutable/nodes/12.D9gnyWPh.js.br +0 -0
  381. package/build/client/_app/immutable/nodes/12.D9gnyWPh.js.gz +0 -0
  382. package/build/client/_app/immutable/nodes/13.DL0THiQT.js.br +0 -0
  383. package/build/client/_app/immutable/nodes/13.DL0THiQT.js.gz +0 -0
  384. package/build/client/_app/immutable/nodes/14.zHzRn1L0.js.br +0 -0
  385. package/build/client/_app/immutable/nodes/14.zHzRn1L0.js.gz +0 -0
  386. package/build/client/_app/immutable/nodes/15.CxiJzXJw.js.br +0 -0
  387. package/build/client/_app/immutable/nodes/15.CxiJzXJw.js.gz +0 -0
  388. package/build/client/_app/immutable/nodes/16.ltkCLaiY.js.br +0 -0
  389. package/build/client/_app/immutable/nodes/16.ltkCLaiY.js.gz +0 -0
  390. package/build/client/_app/immutable/nodes/17.8mjwurTl.js.br +0 -0
  391. package/build/client/_app/immutable/nodes/17.8mjwurTl.js.gz +0 -0
  392. package/build/client/_app/immutable/nodes/19.DIpFUdcm.js.br +0 -0
  393. package/build/client/_app/immutable/nodes/19.DIpFUdcm.js.gz +0 -0
  394. package/build/client/_app/immutable/nodes/2.CarjBwi1.js +0 -26
  395. package/build/client/_app/immutable/nodes/2.CarjBwi1.js.br +0 -0
  396. package/build/client/_app/immutable/nodes/2.CarjBwi1.js.gz +0 -0
  397. package/build/client/_app/immutable/nodes/20.BP6YYSQm.js.br +0 -0
  398. package/build/client/_app/immutable/nodes/20.BP6YYSQm.js.gz +0 -0
  399. package/build/client/_app/immutable/nodes/21.lQoTeuLN.js.br +0 -0
  400. package/build/client/_app/immutable/nodes/21.lQoTeuLN.js.gz +0 -0
  401. package/build/client/_app/immutable/nodes/22.DmHOHt5L.js.br +0 -0
  402. package/build/client/_app/immutable/nodes/22.DmHOHt5L.js.gz +0 -0
  403. package/build/client/_app/immutable/nodes/23.D7UbkVJG.js.br +0 -0
  404. package/build/client/_app/immutable/nodes/23.D7UbkVJG.js.gz +0 -0
  405. package/build/client/_app/immutable/nodes/24.B6o--6Mq.js.br +0 -0
  406. package/build/client/_app/immutable/nodes/24.B6o--6Mq.js.gz +0 -0
  407. package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js +0 -20
  408. package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js.br +0 -0
  409. package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js.gz +0 -0
  410. package/build/client/_app/immutable/nodes/26.CbeAF_H2.js.br +0 -0
  411. package/build/client/_app/immutable/nodes/26.CbeAF_H2.js.gz +0 -0
  412. package/build/client/_app/immutable/nodes/28.D3Nqqpa-.js.br +0 -0
  413. package/build/client/_app/immutable/nodes/28.D3Nqqpa-.js.gz +0 -0
  414. package/build/client/_app/immutable/nodes/3.BgWGx5YP.js.br +0 -0
  415. package/build/client/_app/immutable/nodes/3.BgWGx5YP.js.gz +0 -0
  416. package/build/client/_app/immutable/nodes/4.CmSxKRLa.js.br +0 -0
  417. package/build/client/_app/immutable/nodes/4.CmSxKRLa.js.gz +0 -0
  418. package/build/client/_app/immutable/nodes/6.CExYN4s7.js.br +0 -0
  419. package/build/client/_app/immutable/nodes/6.CExYN4s7.js.gz +0 -0
  420. package/build/client/_app/immutable/nodes/7.B5DaW8rR.js.br +0 -0
  421. package/build/client/_app/immutable/nodes/7.B5DaW8rR.js.gz +0 -0
  422. package/build/client/_app/immutable/nodes/8.BAxGmD9j.js.br +0 -0
  423. package/build/client/_app/immutable/nodes/8.BAxGmD9j.js.gz +0 -0
  424. package/build/client/_app/immutable/nodes/9.B05Fdcd3.js.br +0 -0
  425. package/build/client/_app/immutable/nodes/9.B05Fdcd3.js.gz +0 -0
  426. package/build/server/chunks/chunks/remote.js-C8NtkvLx.js +0 -13
@@ -1,7 +1,7 @@
1
1
  import { readFile, readdir, stat, open, realpath, mkdir, writeFile, rename, rm, access, constants, lstat, chmod, appendFile, mkdtemp } from 'node:fs/promises';
2
2
  import os, { homedir, tmpdir } from 'node:os';
3
3
  import path from 'node:path';
4
- import { v as version, d as defaultKeychain } from './keychain.js-CJIUvfTQ.js';
4
+ import { v as version, d as defaultKeychain } from './keychain.js-CUptlCB0.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync, openSync, closeSync, watch, statSync, fstatSync, readSync, accessSync, constants as constants$1, rmSync, realpathSync, lstatSync } from 'node:fs';
6
6
  import { spawn, execFileSync, execFile } from 'node:child_process';
7
7
  import { l as loopbackPreview, f as frameRefusal } from './preview.js-CbgkVvT_.js';
@@ -16,12 +16,12 @@ import { s as shortTitle } from './format.js-D3lWEg6U.js';
16
16
  import { r as runStep, c as checksLine } from './checks.js-DGdGhp1G.js';
17
17
  import net, { createServer } from 'node:net';
18
18
  import { D as DECIDED_MAX, d as detectHosted, p as portInHost, h as hostedAddress } from './decisionform.js-Ds5LU9Wh.js';
19
- import { T as TERMINAL_PATH, a as TERMINAL_PROTOCOL, b as TERMINAL_CLOSE, i as isSetupAgent, c as isAgentAuth, d as isAgentProvider, e as completeChoice, S as SETUP_TERMINAL_PATH, f as TOKEN_PROTOCOL_PREFIX, g as agentName, s as setupAgentOf, h as defaultChoice } from './terminal.js-D6YKc4IS.js';
20
- import { p as parseHarness, H as HARNESS_NAMES, a as HARNESSES } from './harness.js-C1CYCy4c.js';
19
+ import { T as TERMINAL_PATH, a as TERMINAL_PROTOCOL, b as TERMINAL_CLOSE, i as isSetupAgent, c as isAgentAuth, d as isAgentProvider, e as completeChoice, S as SETUP_TERMINAL_PATH, f as TOKEN_PROTOCOL_PREFIX, g as agentName, s as setupAgentOf, h as defaultChoice } from './terminal.js-BE8dA5Np.js';
20
+ import { p as parseHarness, H as HARNESS_NAMES, a as HARNESSES } from './harness.js-DvhIhjw1.js';
21
21
  import { d as defaultConfigDir, P as PluginConfigFile, a as PLUGINS_FILE, R as ROLES, b as SLOT_SCOPE, i as isEnabled, E as EMPTY_CONFIG, S as SLOTS, C as CAPABILITIES, c as chooseRole, e as changePlugin } from './config.js-CjvhJWDv.js';
22
22
  import WebSocket, { WebSocketServer } from 'ws';
23
23
  import { r as roundId, t as testLine } from './buildlog.js-BCKtSKOt.js';
24
- import { a as alertsFor, r as raise, s as sessionAlert, d as digest, A as ALERT_KINDS } from './bell.js-DuW71LLn.js';
24
+ import { a as alertsFor, r as raise, s as sessionWaitAlert, d as digest, A as ALERT_KINDS } from './bell.js-kMMKqlsJ.js';
25
25
  import { C as CHOICES, N as NOTE_MAX, b as closable, p as picksLine, d as closeText, e as answerText, D as DECIDED_LABEL, f as choiceLabel, g as awaitsAnswer, o as optionsFor, h as holdCardId, q as questionLine, a as answerOf } from './inbox.js-CnikIOgr.js';
26
26
  import { D as DOC_EXT$1 } from './docpath.js-D27w_pf9.js';
27
27
  import { d as defaultPluginsDir, r as readInstalled, S as SUPPORTED_API_VERSIONS, s as settingViews, m as manifestPath, p as parseManifest, f as fromExport } from './settings2.js-8JjZvg3U.js';
@@ -1140,7 +1140,9 @@ const DROPPED_VARIABLES = [
1140
1140
  "CLAUDE_PROJECT_DIR",
1141
1141
  "CLAUDE_ENV_FILE",
1142
1142
  "CODEX_THREAD_ID",
1143
- "CODEX_INTERNAL_ORIGINATOR_OVERRIDE"
1143
+ "CODEX_INTERNAL_ORIGINATOR_OVERRIDE",
1144
+ "GROK_AGENT",
1145
+ "GROK_SESSION_ID"
1144
1146
  ];
1145
1147
  const DROP = new Set(DROPPED_VARIABLES);
1146
1148
  const COMMAND_UNSET = [
@@ -1184,6 +1186,7 @@ const SESSION_OPTIONS = [
1184
1186
  const TMUX_KEYS = {
1185
1187
  Enter: "Enter",
1186
1188
  Escape: "Escape",
1189
+ "C-c": "C-c",
1187
1190
  Up: "Up",
1188
1191
  Down: "Down",
1189
1192
  "0": "0",
@@ -1575,9 +1578,9 @@ class Problems {
1575
1578
  if (this.list.length < 50) this.list.push(where ? `${where}: ${message2}` : message2);
1576
1579
  }
1577
1580
  }
1578
- function fields(p, where, o, allowed) {
1581
+ function fields(p, where, o, allowed2) {
1579
1582
  for (const k of Object.keys(o)) {
1580
- if (!allowed.includes(k)) p.add(where, `unknown field '${k}'`);
1583
+ if (!allowed2.includes(k)) p.add(where, `unknown field '${k}'`);
1581
1584
  }
1582
1585
  }
1583
1586
  function str$5(p, where, v, opts = {}) {
@@ -1686,7 +1689,7 @@ function cond(p, where, v, depth = 0) {
1686
1689
  return void 0;
1687
1690
  }
1688
1691
  }
1689
- function note(p, where, v) {
1692
+ function note$1(p, where, v) {
1690
1693
  if (v === void 0) return void 0;
1691
1694
  if (typeof v === "string") return str$5(p, where, v, { max: 1e3 });
1692
1695
  if (!isObject(v)) {
@@ -2017,7 +2020,7 @@ function stage(p, where, v) {
2017
2020
  })
2018
2021
  );
2019
2022
  set("give_up_after", duration(p, `${at}.give_up_after`, v.give_up_after, 6e4, MAX_GIVE_UP_MS));
2020
- set("note", note(p, `${at}.note`, v.note));
2023
+ set("note", note$1(p, `${at}.note`, v.note));
2021
2024
  return id ? s : void 0;
2022
2025
  }
2023
2026
  function validatePassage(doc, opts) {
@@ -5925,6 +5928,7 @@ const HERDR_AMBIENT = [
5925
5928
  const HERDR_KEYS = {
5926
5929
  Enter: "Enter",
5927
5930
  Escape: "Escape",
5931
+ "C-c": "C-c",
5928
5932
  Up: "Up",
5929
5933
  Down: "Down",
5930
5934
  "0": "0",
@@ -6770,13 +6774,24 @@ function readAnswers(configDir) {
6770
6774
  return bad("not JSON.");
6771
6775
  }
6772
6776
  if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return bad("not an object.");
6773
- const { schema, agent, auth, provider } = raw;
6777
+ const { schema, agent, auth, provider, fleetyardUrl } = raw;
6774
6778
  if (schema !== ANSWERS_SCHEMA) return bad(`schema must be "${ANSWERS_SCHEMA}".`);
6775
- if (!isSetupAgent(agent)) return bad("agent must be claude, codex or pi.");
6779
+ if (!isSetupAgent(agent)) return bad("agent must be claude, codex, pi or grok.");
6776
6780
  if (!isAgentAuth(auth)) return bad("auth must be subscription, apikey or ours.");
6777
6781
  if (provider !== void 0 && provider !== null && !isAgentProvider(provider))
6778
- return bad("provider must be claude, chatgpt, anthropic or openai.");
6779
- return { state: "ok", choice: completeChoice(agent, auth, provider, true) };
6782
+ return bad("provider must be claude, chatgpt, anthropic, openai or grok.");
6783
+ return {
6784
+ state: "ok",
6785
+ choice: completeChoice(agent, auth, provider, true),
6786
+ fleetyard: siteUrl(fleetyardUrl)
6787
+ };
6788
+ }
6789
+ function siteUrl(v) {
6790
+ if (typeof v !== "string" || v.length > 2048) return null;
6791
+ const u = URL.parse(v.trim());
6792
+ if (!u || u.protocol !== "https:" && u.protocol !== "http:" || u.username || u.password)
6793
+ return null;
6794
+ return u.href;
6780
6795
  }
6781
6796
  const HARNESS_FILE = "harness.json";
6782
6797
  const harnessFile = (configDir) => path.join(configDir, HARNESS_FILE);
@@ -6834,18 +6849,24 @@ const LOGIN_TIMEOUT_MS = 3e4;
6834
6849
  const AGENT_SPECS = {
6835
6850
  codex: {
6836
6851
  bin: "codex",
6837
- npm: "@openai/codex",
6852
+ install: "npm install -g @openai/codex",
6838
6853
  docs: "https://developers.openai.com/codex/cli",
6839
6854
  what: "Codex: Firstmate runs in it"
6840
6855
  },
6841
6856
  pi: {
6842
6857
  bin: "pi",
6843
- npm: "@earendil-works/pi-coding-agent",
6858
+ install: "npm install -g @earendil-works/pi-coding-agent",
6844
6859
  docs: "https://github.com/earendil-works/pi-mono",
6845
6860
  what: "Pi: Firstmate runs in it"
6861
+ },
6862
+ grok: {
6863
+ bin: "grok",
6864
+ install: "curl -fsSL https://x.ai/cli/install.sh | bash",
6865
+ docs: "https://x.ai/cli",
6866
+ what: "Grok: Firstmate runs in it"
6846
6867
  }
6847
6868
  };
6848
- const installCommand = (agent) => agent === "claude" ? CLAUDE_INSTALL_COMMAND : `npm install -g ${AGENT_SPECS[agent].npm}`;
6869
+ const installCommand = (agent) => agent === "claude" ? CLAUDE_INSTALL_COMMAND : AGENT_SPECS[agent].install;
6849
6870
  function piProvider(c) {
6850
6871
  if (c.agent !== "pi") return null;
6851
6872
  switch (c.provider) {
@@ -6910,6 +6931,7 @@ ${r.stderr}`) : null;
6910
6931
  function testArgs(c) {
6911
6932
  if (c.agent === "codex")
6912
6933
  return ["exec", "--skip-git-repo-check", "--sandbox", "read-only", TEST_PROMPT];
6934
+ if (c.agent === "grok") return ["-p", TEST_PROMPT];
6913
6935
  const provider = piProvider(c);
6914
6936
  return [
6915
6937
  "-p",
@@ -6963,6 +6985,8 @@ function signInArgv(c, bin, cloud) {
6963
6985
  return { ok: true, argv: cloud ? [bin, "login", "--device-auth"] : [bin, "login"] };
6964
6986
  case "pi":
6965
6987
  return { ok: true, argv: [bin, "--no-session"] };
6988
+ case "grok":
6989
+ return { ok: true, argv: cloud ? [bin, "login", "--device-auth"] : [bin, "login"] };
6966
6990
  }
6967
6991
  }
6968
6992
  const piAgentDir = (env) => env.PI_CODING_AGENT_DIR ? path.resolve(env.PI_CODING_AGENT_DIR) : path.join(env.HOME || homedir(), ".pi", "agent");
@@ -10020,9 +10044,12 @@ class ShipsBell {
10020
10044
  this.raise(raised);
10021
10045
  return raised;
10022
10046
  }
10023
- /** Look at the Firstmate session: a new menu waiting on the captain rings; one that left is settled. */
10047
+ /**
10048
+ * Look at the Firstmate session: a new menu, sign-in or terminal screen
10049
+ * waiting on the captain rings; one that left is settled.
10050
+ */
10024
10051
  observeSession(view) {
10025
- const draft = view.picker ? sessionAlert(view.picker) : null;
10052
+ const draft = sessionWaitAlert(view);
10026
10053
  const asked = this.asking;
10027
10054
  if (asked && asked !== draft?.id) {
10028
10055
  this.seen.delete(asked);
@@ -12666,11 +12693,11 @@ function usableRoots(dirs, userHome = os.homedir()) {
12666
12693
  }
12667
12694
  return [...out];
12668
12695
  }
12669
- async function locate(input, r, allowed) {
12696
+ async function locate(input, r, allowed2) {
12670
12697
  const p = input.trim();
12671
12698
  if (!p || p.length > MAX_PATH || p.includes("\0")) return refuse(400, "No file was named.");
12672
12699
  const named = path.isAbsolute(p) ? path.resolve(p) : path.resolve(r.home, p);
12673
- if (!allowed(named)) return refuse(415, "Wheelhouse does not show that kind of file.");
12700
+ if (!allowed2(named)) return refuse(415, "Wheelhouse does not show that kind of file.");
12674
12701
  const outside = refuse(403, "That file is outside the folders Wheelhouse may read.");
12675
12702
  const realRoots = await Promise.all(r.roots.map((root) => realpath(root).catch(() => null)));
12676
12703
  const asWritten = [...r.roots.map((root) => path.resolve(root)), ...realRoots];
@@ -12678,7 +12705,7 @@ async function locate(input, r, allowed) {
12678
12705
  const real2 = await realpath(named).catch(() => null);
12679
12706
  if (!real2) return refuse(404, "There is no such file.");
12680
12707
  if (!realRoots.some((root) => root && inside(real2, root))) return outside;
12681
- if (!allowed(real2)) return refuse(415, "Wheelhouse does not show that kind of file.");
12708
+ if (!allowed2(real2)) return refuse(415, "Wheelhouse does not show that kind of file.");
12682
12709
  const st = await stat(real2).catch(() => null);
12683
12710
  if (!st?.isFile()) return refuse(404, "There is no such file.");
12684
12711
  return { ok: true, file: real2 };
@@ -18064,6 +18091,106 @@ function pickerKeys(picker, action) {
18064
18091
  const k = picker.submitMoves;
18065
18092
  return [...Array(Math.abs(k)).fill(k > 0 ? "Down" : "Up"), "Enter"];
18066
18093
  }
18094
+ const SIGN_IN_HOSTS = ["claude.ai", "claude.com", "anthropic.com", "openai.com", "chatgpt.com"];
18095
+ const URL_START = /^\s*(https:\/\/\S+)\s*$/;
18096
+ const URL_PART = /^\s*([A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]+)\s*$/;
18097
+ const CLAUDE_PASTE = /^\s*Paste code here if prompted\s*>(.*)$/;
18098
+ const PI_ASK = /\bpaste the authorization code\b/i;
18099
+ const PI_FIELD = /^\s*>(.*)$/;
18100
+ const CODEX_WAIT = /^\s*Finish signing in via your browser\s*$/;
18101
+ const ESC_CANCEL = /\besc to cancel\b/i;
18102
+ const DEVICE_CODE = /^\s*([A-Z0-9]{4,}-[A-Z0-9]{4,})\s*$/;
18103
+ const ANOTHER_MACHINE = /\b(remote|headless|another machine)\b/i;
18104
+ const MAX_URL = 4096;
18105
+ function readSignIn(screen) {
18106
+ if (!screen) return null;
18107
+ const lines = screen.replace(/\r/g, "").split("\n");
18108
+ let last = lines.length - 1;
18109
+ while (last >= 0 && !lines[last].trim()) last--;
18110
+ if (last < 0) return null;
18111
+ let paste = false;
18112
+ let typed = "";
18113
+ let end = -1;
18114
+ const claude = CLAUDE_PASTE.exec(lines[last]);
18115
+ if (claude) {
18116
+ paste = true;
18117
+ typed = claude[1].trim();
18118
+ end = last;
18119
+ } else if ((end = piAsk(lines, last)) >= 0) {
18120
+ paste = true;
18121
+ let field = end + 1;
18122
+ while (!lines[field].trim()) field++;
18123
+ typed = PI_FIELD.exec(lines[field])[1].trim();
18124
+ } else if (ESC_CANCEL.test(lines[last]) && lines.some((l) => CODEX_WAIT.test(l))) {
18125
+ end = last;
18126
+ } else {
18127
+ return null;
18128
+ }
18129
+ const start = lines.findLastIndex((l, i) => i < end && URL_START.test(l));
18130
+ if (start < 0) return null;
18131
+ let url = URL_START.exec(lines[start])[1];
18132
+ let after = start + 1;
18133
+ for (; after < end && lines[after].trim(); after++) {
18134
+ const part = URL_PART.exec(lines[after]);
18135
+ if (!part) break;
18136
+ url += part[1];
18137
+ }
18138
+ if (!allowed(url)) return null;
18139
+ const code = paste ? null : lines.slice(after, end).map((l) => DEVICE_CODE.exec(l)?.[1]).find(Boolean) ?? null;
18140
+ const signature = createHash("sha256").update(JSON.stringify([url, code, paste])).digest("hex").slice(0, 16);
18141
+ return { signIn: { url, code, paste, note: note(lines, start, end), signature }, typed };
18142
+ }
18143
+ function allowed(url) {
18144
+ if (url.length > MAX_URL) return false;
18145
+ try {
18146
+ const u = new URL(url);
18147
+ const host = u.hostname.toLowerCase();
18148
+ return u.protocol === "https:" && !u.username && !u.password && SIGN_IN_HOSTS.some((h) => host === h || host.endsWith(`.${h}`));
18149
+ } catch {
18150
+ return false;
18151
+ }
18152
+ }
18153
+ function piAsk(lines, last) {
18154
+ for (let i = last, seen = 0; i >= 0 && seen < 8; i--) {
18155
+ if (!lines[i].trim()) continue;
18156
+ seen++;
18157
+ if (!PI_ASK.test(lines[i])) continue;
18158
+ let field = i + 1;
18159
+ while (field <= last && !lines[field].trim()) field++;
18160
+ return field <= last && PI_FIELD.test(lines[field]) ? i : -1;
18161
+ }
18162
+ return -1;
18163
+ }
18164
+ function note(lines, start, end) {
18165
+ const at = lines.findIndex((l, i) => i > start && i < end && ANOTHER_MACHINE.test(l));
18166
+ if (at < 0) return null;
18167
+ let top = at;
18168
+ while (top > start + 1 && lines[top - 1].trim()) top--;
18169
+ let bottom = at;
18170
+ while (bottom + 1 < end && lines[bottom + 1].trim()) bottom++;
18171
+ return lines.slice(top, bottom + 1).map((l) => l.trim()).join(" ");
18172
+ }
18173
+ const RULE = /^\s*─{8,}\s*$/;
18174
+ const BOX_TOP = /^\s*╭─{8,}/;
18175
+ const PROMPT_ROW = /^\s*(?:[❯>!](?:\s|$)|│\s*>(?:\s|$))/;
18176
+ function atClaudePrompt(screen) {
18177
+ const lines = screen.replace(/\r/g, "").split("\n");
18178
+ for (let i = lines.length - 1; i > 0; i--) {
18179
+ if (!PROMPT_ROW.test(lines[i])) continue;
18180
+ let above = i - 1;
18181
+ while (above >= 0 && !lines[above].trim()) above--;
18182
+ if (above < 0 || !(RULE.test(lines[above]) || BOX_TOP.test(lines[above]))) continue;
18183
+ if (lines.slice(i + 1).some((l) => RULE.test(l) || /^\s*╰─{8,}/.test(l))) return true;
18184
+ }
18185
+ return false;
18186
+ }
18187
+ const DRAWING = /^[\s─━▔╌═│┃╭╮╰╯░▒▓█▄▀.*]*$/;
18188
+ function terminalExcerpt(screen) {
18189
+ return screen.replace(/\r/g, "").split("\n").filter((l) => l.trim() && !DRAWING.test(l)).slice(-3).map((l) => {
18190
+ const t = l.trim();
18191
+ return t.length > 160 ? `${t.slice(0, 159)}…` : t;
18192
+ }).join("\n");
18193
+ }
18067
18194
  const TRUST_FLAG = "hasTrustDialogAccepted";
18068
18195
  const ATTEMPTS = 3;
18069
18196
  function claudeStore(env) {
@@ -18240,7 +18367,7 @@ export default function(pi) {
18240
18367
  }
18241
18368
  `;
18242
18369
  }
18243
- function object$2(value) {
18370
+ function object$3(value) {
18244
18371
  return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
18245
18372
  }
18246
18373
  async function readBounded(file, limit) {
@@ -18264,7 +18391,7 @@ function contentText(content) {
18264
18391
  if (typeof content === "string") return content;
18265
18392
  if (!Array.isArray(content)) return "";
18266
18393
  return content.flatMap((part) => {
18267
- const block = object$2(part);
18394
+ const block = object$3(part);
18268
18395
  if (block?.type === "text" && typeof block.text === "string") return [block.text];
18269
18396
  return block?.type === "image" ? ["[image]"] : [];
18270
18397
  }).join("\n");
@@ -18272,7 +18399,7 @@ function contentText(content) {
18272
18399
  function normalize(entry, sessionId) {
18273
18400
  if (entry.type !== "message" || typeof entry.id !== "string" || typeof entry.timestamp !== "string")
18274
18401
  return [];
18275
- const message2 = object$2(entry.message);
18402
+ const message2 = object$3(entry.message);
18276
18403
  if (!message2 || !Number.isFinite(Date.parse(entry.timestamp))) return [];
18277
18404
  const uuid = `pi:${sessionId}:${entry.id}`;
18278
18405
  const timestamp2 = entry.timestamp;
@@ -18311,14 +18438,14 @@ function normalize(entry, sessionId) {
18311
18438
  ls: "Glob"
18312
18439
  };
18313
18440
  const content = message2.content.flatMap((part) => {
18314
- const block = object$2(part);
18441
+ const block = object$3(part);
18315
18442
  if (!block) return [];
18316
18443
  if (block.type === "text" && typeof block.text === "string")
18317
18444
  return [{ type: "text", text: block.text }];
18318
18445
  if (block.type === "thinking") return [{ type: "thinking", thinking: "", signature: "" }];
18319
18446
  if (block.type !== "toolCall" || typeof block.id !== "string" || typeof block.name !== "string")
18320
18447
  return [];
18321
- const input = object$2(block.arguments);
18448
+ const input = object$3(block.arguments);
18322
18449
  if (!input) return [];
18323
18450
  return [
18324
18451
  {
@@ -18353,7 +18480,7 @@ async function piSnapshot(opts) {
18353
18480
  if (!opts.sessionNonce?.trim()) return null;
18354
18481
  try {
18355
18482
  const receiptText2 = await readBounded(opts.hookFile, RECEIPT_BYTES$1);
18356
- const receipt = receiptText2 === null ? null : object$2(JSON.parse(receiptText2));
18483
+ const receipt = receiptText2 === null ? null : object$3(JSON.parse(receiptText2));
18357
18484
  if (!receipt || receipt.wheelhouse_nonce !== opts.sessionNonce || typeof receipt.session_id !== "string" || !receipt.session_id || typeof receipt.transcript_path !== "string" || !path.isAbsolute(receipt.transcript_path) || typeof receipt.cwd !== "string" || !path.isAbsolute(receipt.cwd) || !(receipt.leaf_id === null || typeof receipt.leaf_id === "string"))
18358
18485
  return null;
18359
18486
  const sessionId = receipt.session_id;
@@ -18370,13 +18497,13 @@ async function piSnapshot(opts) {
18370
18497
  if (text2 === null) return null;
18371
18498
  const lines = text2.split("\n");
18372
18499
  lines.pop();
18373
- const header = object$2(JSON.parse(lines.shift() ?? "null"));
18500
+ const header = object$3(JSON.parse(lines.shift() ?? "null"));
18374
18501
  if (!header || header.type !== "session" || header.version !== 3 || header.id !== receipt.session_id || typeof header.cwd !== "string" || await realpath(header.cwd) !== cwd)
18375
18502
  return null;
18376
18503
  const entries = /* @__PURE__ */ new Map();
18377
18504
  for (const line of lines) {
18378
18505
  if (!line.trim()) continue;
18379
- const entry = object$2(JSON.parse(line));
18506
+ const entry = object$3(JSON.parse(line));
18380
18507
  if (!entry || typeof entry.id !== "string" || !(entry.parentId === null || typeof entry.parentId === "string") || entries.has(entry.id))
18381
18508
  return null;
18382
18509
  entries.set(entry.id, entry);
@@ -18422,6 +18549,261 @@ function piScreen(text2) {
18422
18549
  };
18423
18550
  return { kind: "prompt", busy: /\bWorking\b/.test(lines[top]) };
18424
18551
  }
18552
+ const UUID$2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
18553
+ const REGISTRY_BYTES = 1024 * 1024;
18554
+ const SUMMARY_BYTES = 1024 * 1024;
18555
+ const GROK_SESSION_VARIABLE = "WH_GROK_SESSION";
18556
+ const isGrokSessionId = (value) => typeof value === "string" && UUID$2.test(value);
18557
+ const grokArgv = (binary, sessionId) => [
18558
+ binary,
18559
+ "--trust",
18560
+ "--session-id",
18561
+ sessionId
18562
+ ];
18563
+ function object$2(value) {
18564
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
18565
+ }
18566
+ async function readJson$1(file, limit) {
18567
+ const handle = await open(file, "r");
18568
+ try {
18569
+ const size = (await handle.stat()).size;
18570
+ if (size > limit) return null;
18571
+ const buffer = Buffer.alloc(size);
18572
+ const { bytesRead } = await handle.read(buffer, 0, size, 0);
18573
+ return JSON.parse(buffer.subarray(0, bytesRead).toString("utf8"));
18574
+ } finally {
18575
+ await handle.close();
18576
+ }
18577
+ }
18578
+ async function processSessions(grokHome, launchId) {
18579
+ const launch = [{ id: launchId, openedAt: 0 }];
18580
+ let listed;
18581
+ try {
18582
+ listed = await readJson$1(path.join(grokHome, "active_sessions.json"), REGISTRY_BYTES);
18583
+ } catch {
18584
+ return launch;
18585
+ }
18586
+ if (!Array.isArray(listed)) return launch;
18587
+ const rows = listed.flatMap((value) => {
18588
+ const row = object$2(value);
18589
+ return row && isGrokSessionId(row.session_id) && typeof row.pid === "number" && typeof row.pid_start === "number" ? [row] : [];
18590
+ });
18591
+ const own = rows.find((row) => row.session_id === launchId);
18592
+ if (!own) return launch;
18593
+ return rows.filter((row) => row.pid === own.pid && row.pid_start === own.pid_start).map((row) => ({
18594
+ id: row.session_id,
18595
+ openedAt: typeof row.opened_at === "string" && Date.parse(row.opened_at) || 0
18596
+ }));
18597
+ }
18598
+ const folders = /* @__PURE__ */ new Map();
18599
+ async function sessionFolder(grokHome, id, cwd) {
18600
+ const root = path.join(grokHome, "sessions");
18601
+ const key = `${root}\0${id}`;
18602
+ let folder2 = folders.get(key) ?? null;
18603
+ if (!folder2) {
18604
+ for (const group of await readdir(root)) {
18605
+ const candidate = path.join(root, group, id);
18606
+ const found = await stat(path.join(candidate, "summary.json")).then(
18607
+ (s) => s.isFile(),
18608
+ () => false
18609
+ );
18610
+ if (found) {
18611
+ folder2 = candidate;
18612
+ break;
18613
+ }
18614
+ }
18615
+ }
18616
+ if (!folder2) return null;
18617
+ const summary2 = object$2(await readJson$1(path.join(folder2, "summary.json"), SUMMARY_BYTES));
18618
+ const info = object$2(summary2?.info);
18619
+ if (info?.id !== id || typeof info.cwd !== "string" || !path.isAbsolute(info.cwd) || await realpath(info.cwd) !== cwd)
18620
+ return null;
18621
+ folders.set(key, folder2);
18622
+ return folder2;
18623
+ }
18624
+ async function locateGrokTranscript(opts, state) {
18625
+ const launchId = opts.sessionId;
18626
+ if (state !== "ours" || !isGrokSessionId(launchId)) return null;
18627
+ try {
18628
+ const cwd = await realpath(opts.firstmateDir);
18629
+ let best = null;
18630
+ for (const session of await processSessions(opts.grokHome, launchId)) {
18631
+ const folder2 = await sessionFolder(opts.grokHome, session.id, cwd).catch(() => null);
18632
+ if (!folder2) continue;
18633
+ const file = path.join(folder2, "updates.jsonl");
18634
+ const written = await stat(file).then(
18635
+ (s) => s.mtimeMs,
18636
+ () => 0
18637
+ );
18638
+ const at = Math.max(session.openedAt, written);
18639
+ if (!best || at > best.at) best = { file, at };
18640
+ }
18641
+ return best ? { how: "launch", file: best.file } : null;
18642
+ } catch {
18643
+ return null;
18644
+ }
18645
+ }
18646
+ const TOOL_NAMES = {
18647
+ run_terminal_command: "Bash",
18648
+ read_file: "Read",
18649
+ search_replace: "Edit",
18650
+ write: "Write",
18651
+ grep: "Grep",
18652
+ list_dir: "Glob",
18653
+ web_fetch: "WebFetch",
18654
+ search_tool: "ToolSearch",
18655
+ spawn_subagent: "Task",
18656
+ todo_write: "TodoWrite"
18657
+ };
18658
+ function toolUse(update) {
18659
+ const raw = object$2(update.rawInput) ?? {};
18660
+ const tool = object$2(object$2(update._meta)?.["x.ai/tool"]);
18661
+ const native = typeof tool?.name === "string" ? tool.name : String(update.title ?? "");
18662
+ if (native === "use_tool" && typeof raw.tool_name === "string") {
18663
+ const at = raw.tool_name.indexOf("__");
18664
+ if (at > 0)
18665
+ return {
18666
+ name: `mcp__${raw.tool_name.slice(0, at)}__${raw.tool_name.slice(at + 2)}`,
18667
+ input: object$2(raw.tool_input) ?? {}
18668
+ };
18669
+ }
18670
+ if (raw.variant === "WebSearch") return { name: "WebSearch", input: raw };
18671
+ const input = { ...raw };
18672
+ if (typeof raw.target_file === "string") input.file_path = raw.target_file;
18673
+ if (typeof raw.target_directory === "string") input.pattern = raw.target_directory;
18674
+ return { name: TOOL_NAMES[native] ?? native, input };
18675
+ }
18676
+ const OUTPUT_TEXT = ["tool_output_for_prompt", "output_for_prompt", "message", "text", "Error"];
18677
+ function outputText(value, depth = 0) {
18678
+ if (typeof value === "string") return value;
18679
+ const output = object$2(value);
18680
+ if (!output || depth > 2) return "";
18681
+ for (const key of OUTPUT_TEXT) if (typeof output[key] === "string") return output[key];
18682
+ const nested = outputText(output.output, depth + 1);
18683
+ if (nested) return nested;
18684
+ const rest2 = Object.entries(output).filter(([key]) => key !== "type");
18685
+ return rest2.length === 1 ? outputText(rest2[0][1], depth + 1) : "";
18686
+ }
18687
+ function resultText(update) {
18688
+ const shown = (Array.isArray(update.content) ? update.content : []).flatMap((part) => {
18689
+ const content = object$2(object$2(part)?.content);
18690
+ if (content?.type === "text" && typeof content.text === "string") return [content.text];
18691
+ return content?.type === "image" ? ["[image]"] : [];
18692
+ });
18693
+ return shown.length ? shown.join("\n") : outputText(update.rawOutput);
18694
+ }
18695
+ function grokRecords(raw) {
18696
+ const line = object$2(raw);
18697
+ const params2 = object$2(line?.params);
18698
+ const update = object$2(params2?.update);
18699
+ const meta = object$2(params2?._meta);
18700
+ if (!line || !update || typeof meta?.eventId !== "string" || !meta.eventId) return [];
18701
+ const ms = typeof meta.agentTimestampMs === "number" ? meta.agentTimestampMs : typeof line.timestamp === "number" ? line.timestamp * 1e3 : NaN;
18702
+ if (!Number.isFinite(ms) || Math.abs(ms) > 864e13) return [];
18703
+ const timestamp2 = new Date(ms).toISOString();
18704
+ const uuid = `grok:${meta.eventId}`;
18705
+ const text2 = () => {
18706
+ const content = object$2(update.content);
18707
+ return content?.type === "text" && typeof content.text === "string" ? content.text : "";
18708
+ };
18709
+ const assistant = (content) => ({
18710
+ type: "assistant",
18711
+ uuid,
18712
+ timestamp: timestamp2,
18713
+ message: { id: uuid, role: "assistant", content }
18714
+ });
18715
+ switch (update.sessionUpdate) {
18716
+ case "user_message_chunk": {
18717
+ const hidden = object$2(update._meta);
18718
+ if (hidden?.hideFromScrollback === true || hidden?.syntheticPrompt === true) return [];
18719
+ const content = text2();
18720
+ return content.trim() ? [{ type: "user", uuid, timestamp: timestamp2, message: { role: "user", content } }] : [];
18721
+ }
18722
+ case "agent_message_chunk": {
18723
+ const content = text2();
18724
+ return content.trim() ? [assistant([{ type: "text", text: content }])] : [];
18725
+ }
18726
+ case "agent_thought_chunk":
18727
+ return [assistant([{ type: "thinking", thinking: "", signature: "" }])];
18728
+ case "tool_call": {
18729
+ if (typeof update.toolCallId !== "string" || !update.toolCallId) return [];
18730
+ return [
18731
+ assistant([{ type: "tool_use", id: `grok:${update.toolCallId}`, ...toolUse(update) }])
18732
+ ];
18733
+ }
18734
+ case "tool_call_update": {
18735
+ if (typeof update.toolCallId !== "string" || update.status !== "completed" && update.status !== "failed")
18736
+ return [];
18737
+ const output = object$2(update.rawOutput);
18738
+ return [
18739
+ {
18740
+ type: "user",
18741
+ uuid,
18742
+ timestamp: timestamp2,
18743
+ message: {
18744
+ role: "user",
18745
+ content: [
18746
+ {
18747
+ type: "tool_result",
18748
+ tool_use_id: `grok:${update.toolCallId}`,
18749
+ content: resultText(update),
18750
+ is_error: update.status === "failed" || output?.is_error === true || output?.type === "Bash" && typeof output.exit_code === "number" && output.exit_code !== 0
18751
+ }
18752
+ ]
18753
+ }
18754
+ }
18755
+ ];
18756
+ }
18757
+ case "turn_completed": {
18758
+ const records2 = [];
18759
+ if (update.stop_reason === "error" && typeof update.agent_result === "string")
18760
+ records2.push(assistant([{ type: "text", text: update.agent_result }]));
18761
+ if (update.stop_reason === "cancelled" || update.stop_reason === "interrupted")
18762
+ records2.push({
18763
+ type: "user",
18764
+ uuid: `${uuid}:interrupted`,
18765
+ timestamp: timestamp2,
18766
+ message: { role: "user", content: "[Request interrupted by user]" }
18767
+ });
18768
+ records2.push({
18769
+ type: "system",
18770
+ subtype: "turn_duration",
18771
+ uuid: `${uuid}:done`,
18772
+ timestamp: timestamp2,
18773
+ durationMs: typeof update.elapsed_ms === "number" && Number.isFinite(update.elapsed_ms) ? Math.max(0, update.elapsed_ms) : null
18774
+ });
18775
+ return records2;
18776
+ }
18777
+ default:
18778
+ return [];
18779
+ }
18780
+ }
18781
+ const TOP = /^\s*╭─{12,}.*─╮\s*$/;
18782
+ const BOTTOM = /^\s*╰─{12,}.*─╯\s*$/;
18783
+ const ROW = /^\s*│\s(.*)│\s*$/;
18784
+ const PLACEHOLDER = /^Type a message\.\.\.$/;
18785
+ const COMPOSER_ROWS = 12;
18786
+ function grokScreen(text2) {
18787
+ const blocked = { kind: "blocked", title: "Grok needs attention in its terminal." };
18788
+ if (text2 === null) return blocked;
18789
+ const lines = text2.replace(/\r/g, "").trimEnd().split("\n");
18790
+ const bottom = lines.findLastIndex((line) => BOTTOM.test(line));
18791
+ if (bottom < 2 || bottom < lines.length - 4 || bottom >= lines.length - 1) return blocked;
18792
+ const hints = lines.slice(bottom + 1).join("\n").split(/[│\n]/).map((hint) => hint.trim()).filter(Boolean);
18793
+ if (!hints.includes("Shift+Tab:mode") || !hints.includes("Ctrl+x:shortcuts")) return blocked;
18794
+ let top = bottom - 1;
18795
+ while (top >= Math.max(0, bottom - COMPOSER_ROWS) && ROW.test(lines[top])) top--;
18796
+ const rows = lines.slice(top + 1, bottom).map((line) => ROW.exec(line)[1].trim());
18797
+ if (top < 0 || !TOP.test(lines[top]) || !rows.length || !rows[0].startsWith("❯")) return blocked;
18798
+ const typed = [rows[0].slice(1).trim(), ...rows.slice(1)].join("\n").trim();
18799
+ if (typed && !PLACEHOLDER.test(typed))
18800
+ return {
18801
+ kind: "blocked",
18802
+ title: "Grok has unsent input. Send or clear it in the terminal first."
18803
+ };
18804
+ if (hints.some((hint) => /^(?:Enter|Tab|Esc):/i.test(hint))) return blocked;
18805
+ return { kind: "prompt", busy: hints.includes("Ctrl+c:cancel") };
18806
+ }
18425
18807
  const UUID$1 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
18426
18808
  const INITIAL_BYTES = 8 * 1024 * 1024;
18427
18809
  const MAX_RECORDS = 6e3;
@@ -19312,11 +19694,15 @@ const HOOK_RECORD = path.join("firstmate", "session-start.json");
19312
19694
  const HERDR_RECORD = path.join("firstmate", "herdr-session.json");
19313
19695
  const PASTE_SETTLE_MS = 400;
19314
19696
  const KEY_GAP_MS = 120;
19697
+ const GROK_STOP_HOLD_MS = 1200;
19315
19698
  const DISMISS_MAX = 5;
19316
19699
  const MENU_SETTLE_MS = 400;
19317
19700
  const MENU_REDRAW_WAITS = 5;
19318
19701
  const menuPart = (text2) => text2?.slice(Math.max(0, text2.lastIndexOf("▔"))) ?? null;
19319
19702
  const MENU_OPEN = "A Claude Code menu is open in Firstmate’s session, so nothing was typed. Answer or close it, then send again.";
19703
+ const IN_TERMINAL = "Firstmate is waiting for you in its terminal, so nothing was typed. Open the terminal and answer it there, then send again.";
19704
+ const TERMINAL_SETTLE_MS = 1500;
19705
+ const SIGN_IN_MAX_BYTES = 4096;
19320
19706
  function sessionSettings(hookFile, skipPermissions) {
19321
19707
  const tmp = `${hookFile}.tmp`;
19322
19708
  const command = `cat > ${shellLine([tmp])} && mv -f ${shellLine([tmp])} ${shellLine([hookFile])}`;
@@ -19389,6 +19775,10 @@ child.on('exit', code => { process.exitCode = code ?? 1; })`,
19389
19775
  binary
19390
19776
  ];
19391
19777
  break;
19778
+ case "grok":
19779
+ environment.push(`${GROK_SESSION_VARIABLE}=${options.sessionId}`);
19780
+ command = grokArgv(binary, options.sessionId);
19781
+ break;
19392
19782
  }
19393
19783
  if (fmHome) environment.push(`FM_HOME=${fmHome}`);
19394
19784
  const env = {};
@@ -19410,6 +19800,12 @@ class FirstmateSession {
19410
19800
  get sessionNonce() {
19411
19801
  return this.nativeNonce;
19412
19802
  }
19803
+ grokSession = null;
19804
+ grokStopHold = Promise.resolve();
19805
+ /** The conversation id a running Grok session was started with, or null. */
19806
+ get grokSessionId() {
19807
+ return this.grokSession;
19808
+ }
19413
19809
  firstmateDir;
19414
19810
  homeDir;
19415
19811
  hookFile;
@@ -19424,6 +19820,9 @@ class FirstmateSession {
19424
19820
  /** Why the backend choice could not be used (the runtime fell back to tmux), or null. */
19425
19821
  backendProblem;
19426
19822
  sleep;
19823
+ now;
19824
+ /** Since when the session's screen has been one the chat cannot read or drive, or null. */
19825
+ unreadSince = null;
19427
19826
  starting = null;
19428
19827
  /** One input at a time, in order, so two messages never interleave in the paste buffer. */
19429
19828
  queue = Promise.resolve();
@@ -19455,6 +19854,7 @@ class FirstmateSession {
19455
19854
  this.backendProblem = opts.backendProblem ?? null;
19456
19855
  this.piProvider = opts.piProvider ?? (() => null);
19457
19856
  this.sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
19857
+ this.now = opts.now ?? Date.now;
19458
19858
  }
19459
19859
  /** Why Wheelhouse cannot start or talk to a session here, or null. */
19460
19860
  unavailable(requireHarness = true) {
@@ -19495,6 +19895,10 @@ class FirstmateSession {
19495
19895
  this.nativeNonce = /^[0-9a-f-]{36}$/.test(value) ? value : null;
19496
19896
  this.nativeRecorder &&= this.nativeNonce !== null;
19497
19897
  }
19898
+ if (this.activeHarness === "grok") {
19899
+ const value = await this.backend.variable(GROK_SESSION_VARIABLE);
19900
+ this.grokSession = isGrokSessionId(value) ? value : null;
19901
+ }
19498
19902
  if (this.activeHarness === "opencode") {
19499
19903
  this.openCode = null;
19500
19904
  const file = await this.backend.variable("WH_OPENCODE_CONNECTION") ?? "";
@@ -19511,7 +19915,7 @@ class FirstmateSession {
19511
19915
  return true;
19512
19916
  }
19513
19917
  view(state, reason, screen = { picker: null, menu: null, busy: false }) {
19514
- const needsRestart = state === "ours" && (this.activeHarness === "codex" || this.activeHarness === "pi" ? !this.nativeRecorder : this.activeHarness === "opencode" && !this.openCode);
19918
+ const needsRestart = state === "ours" && (this.activeHarness === "codex" || this.activeHarness === "pi" ? !this.nativeRecorder : this.activeHarness === "grok" ? !this.grokSession : this.activeHarness === "opencode" && !this.openCode);
19515
19919
  return {
19516
19920
  schema: "wheelhouse-firstmate-session.v1",
19517
19921
  harness: this.activeHarness,
@@ -19542,39 +19946,77 @@ class FirstmateSession {
19542
19946
  /**
19543
19947
  * What the screen says: a menu Claude Code waits on (as choices when it has
19544
19948
  * numbered ones), and whether it is busy (it shows "esc to interrupt" while
19545
- * working, before anything reaches the transcript).
19949
+ * working, before anything reaches the transcript). A screen it cannot read
19950
+ * counts as waiting in the terminal once it has stayed, or at once when
19951
+ * `settled` (before typing, where a screen caught halfway must not be typed into).
19546
19952
  */
19547
- async onScreen() {
19953
+ async onScreen(settled2 = false) {
19548
19954
  if (this.activeHarness === "opencode") {
19549
19955
  try {
19550
- if (this.openCode) return await openCodeStatus(this.openCode);
19956
+ if (this.openCode) {
19957
+ const status2 = await openCodeStatus(this.openCode);
19958
+ this.unreadSince = null;
19959
+ return status2;
19960
+ }
19551
19961
  } catch {
19552
19962
  }
19553
- return {
19554
- picker: null,
19555
- menu: {
19556
- title: "OpenCode’s session API is not ready. Retry shortly or open its terminal.",
19557
- canDismiss: false
19558
- },
19559
- busy: false
19560
- };
19963
+ return this.blocked(
19964
+ "OpenCode’s session API is not ready. Retry shortly or open its terminal."
19965
+ );
19561
19966
  }
19562
- if (this.activeHarness === "codex" || this.activeHarness === "pi") {
19967
+ if (this.activeHarness === "codex" || this.activeHarness === "pi" || this.activeHarness === "grok") {
19563
19968
  const text22 = await this.screen().catch(() => null);
19564
- const shown = this.activeHarness === "codex" ? codexScreen(text22) : piScreen(text22);
19969
+ const signIn2 = readSignIn(text22)?.signIn ?? null;
19970
+ if (signIn2) {
19971
+ this.unreadSince = null;
19972
+ return { picker: null, menu: null, busy: false, signIn: signIn2 };
19973
+ }
19974
+ const shown2 = this.activeHarness === "codex" ? codexScreen(text22) : this.activeHarness === "pi" ? piScreen(text22) : grokScreen(text22);
19975
+ if (shown2.kind === "blocked" && text22?.trim()) return this.blocked(shown2.title);
19976
+ this.unreadSince = null;
19565
19977
  return {
19566
- picker: shown.kind === "picker" ? shown.picker : null,
19567
- menu: shown.kind === "blocked" ? { title: shown.title, canDismiss: false } : null,
19568
- busy: shown.kind === "prompt" && shown.busy
19978
+ picker: shown2.kind === "picker" ? shown2.picker : null,
19979
+ menu: shown2.kind === "blocked" ? { title: shown2.title, canDismiss: false } : null,
19980
+ busy: shown2.kind === "prompt" && shown2.busy
19569
19981
  };
19570
19982
  }
19571
19983
  if (this.activeHarness !== "claude") return { picker: null, menu: null, busy: false };
19572
19984
  const text2 = await this.screen().catch(() => null);
19573
19985
  if (text2 === null) return { picker: null, menu: null, busy: false };
19574
- return {
19986
+ const signIn = readSignIn(text2)?.signIn ?? null;
19987
+ if (signIn) {
19988
+ this.unreadSince = null;
19989
+ return { picker: null, menu: null, busy: false, signIn, terminal: null };
19990
+ }
19991
+ const shown = {
19575
19992
  picker: parsePicker(text2),
19576
19993
  menu: parseMenu(text2),
19577
- busy: /\besc to interrupt\b/i.test(text2)
19994
+ busy: /\besc to interrupt\b/i.test(text2),
19995
+ signIn: null,
19996
+ terminal: null
19997
+ };
19998
+ if (shown.picker || shown.menu || !text2.trim() || atClaudePrompt(text2)) {
19999
+ this.unreadSince = null;
20000
+ } else {
20001
+ const now = this.now();
20002
+ this.unreadSince ??= now;
20003
+ if (now - this.unreadSince >= TERMINAL_SETTLE_MS || settled2)
20004
+ shown.terminal = { excerpt: terminalExcerpt(text2) };
20005
+ }
20006
+ return shown;
20007
+ }
20008
+ /**
20009
+ * Another harness's dialog the chat cannot drive: a menu it cannot close,
20010
+ * which counts as waiting in the terminal once it has stayed.
20011
+ */
20012
+ blocked(title) {
20013
+ const now = this.now();
20014
+ this.unreadSince ??= now;
20015
+ return {
20016
+ picker: null,
20017
+ menu: { title, canDismiss: false },
20018
+ busy: false,
20019
+ terminal: now - this.unreadSince >= TERMINAL_SETTLE_MS ? { excerpt: title } : null
19578
20020
  };
19579
20021
  }
19580
20022
  /** Where the Firstmate session stands, as the page shows it. */
@@ -19582,6 +20024,7 @@ class FirstmateSession {
19582
20024
  const reason = this.unavailable();
19583
20025
  const ours = this.unavailable(false) ? null : await this.running();
19584
20026
  if (ours) return this.view("ours", null, await this.onScreen());
20027
+ this.unreadSince = null;
19585
20028
  const lock = await this.lock();
19586
20029
  if (lock === "held") {
19587
20030
  return this.view(
@@ -19676,6 +20119,9 @@ class FirstmateSession {
19676
20119
  launch = { ...common, harness: "opencode", connectionFile };
19677
20120
  break;
19678
20121
  }
20122
+ case "grok":
20123
+ launch = { ...common, harness: "grok", sessionId: nonce };
20124
+ break;
19679
20125
  }
19680
20126
  } catch (error) {
19681
20127
  return this.view(
@@ -19685,9 +20131,11 @@ class FirstmateSession {
19685
20131
  }
19686
20132
  const r = await this.backend.start(launchSpec(launch));
19687
20133
  if (!r.ok) return this.view("unavailable", r.error);
20134
+ this.unreadSince = null;
19688
20135
  this.activeHarness = this.harness;
19689
20136
  this.nativeRecorder = this.harness === "codex" || this.harness === "pi";
19690
20137
  this.nativeNonce = this.nativeRecorder ? nonce : null;
20138
+ this.grokSession = this.harness === "grok" ? nonce : null;
19691
20139
  if (this.openCode && this.harness === "opencode") {
19692
20140
  const until = Date.now() + 2e4;
19693
20141
  let failure2 = "The native TUI is not ready.";
@@ -19760,26 +20208,54 @@ class FirstmateSession {
19760
20208
  status: 409,
19761
20209
  error: `Restart the ${this.activeHarness} session from Wheelhouse to enable its chat recorder.`
19762
20210
  };
20211
+ if (this.activeHarness === "grok" && !this.grokSession)
20212
+ return {
20213
+ ok: false,
20214
+ status: 409,
20215
+ error: "Restart the grok session from Wheelhouse to enable its chat."
20216
+ };
19763
20217
  if (this.activeHarness === "opencode")
19764
20218
  return this.openCodeAction((connection) => sendOpenCode(connection, body));
19765
- const shown = await this.onScreen();
20219
+ const shown = await this.onScreen(true);
19766
20220
  if (shown.picker || shown.menu)
19767
20221
  return {
19768
20222
  ok: false,
19769
20223
  status: 409,
19770
20224
  error: this.activeHarness !== "claude" ? `${this.activeHarness} is waiting for attention. Answer the choice or open its terminal before sending.` : MENU_OPEN
19771
20225
  };
20226
+ if (shown.signIn)
20227
+ return {
20228
+ ok: false,
20229
+ status: 409,
20230
+ error: `${HARNESS_NAMES[this.activeHarness]} is waiting for you to sign in, so nothing was typed. Sign in with the card above, then send again.`
20231
+ };
20232
+ if (shown.terminal) return { ok: false, status: 409, error: IN_TERMINAL };
19772
20233
  const paste = await this.backend.paste(body);
19773
20234
  if (!paste.ok) return { ok: false, status: 500, error: paste.error };
19774
20235
  await this.sleep(PASTE_SETTLE_MS);
19775
20236
  return this.keys(["Enter"]);
19776
20237
  });
19777
20238
  }
19778
- /** Press Escape: Claude Code stops what it is doing. */
20239
+ /**
20240
+ * Press Escape: Claude Code stops what it is doing. Grok cancels a turn with
20241
+ * Ctrl+C (to Escape it only answers "Press Ctrl+c to cancel the turn"), pressed
20242
+ * only while its screen shows a turn it can cancel, so the key reaches nothing else,
20243
+ * and never within GROK_STOP_HOLD_MS of the last press: a second Ctrl+C that soon quits Grok.
20244
+ */
19779
20245
  interrupt() {
19780
20246
  return this.serial(async () => {
19781
20247
  const refused = await this.ours();
19782
20248
  if (refused) return refused;
20249
+ if (this.activeHarness === "grok") {
20250
+ await this.grokStopHold;
20251
+ const shown = grokScreen(await this.screen().catch(() => null));
20252
+ if (shown.kind !== "prompt")
20253
+ return { ok: false, status: 409, error: "Use Grok’s terminal to stop it." };
20254
+ if (!shown.busy) return { ok: true };
20255
+ const pressed = await this.keys(["C-c"]);
20256
+ this.grokStopHold = this.sleep(GROK_STOP_HOLD_MS);
20257
+ return pressed;
20258
+ }
19783
20259
  return this.activeHarness === "opencode" ? this.openCodeAction(interruptOpenCode) : this.keys(["Escape"]);
19784
20260
  });
19785
20261
  }
@@ -19827,6 +20303,40 @@ class FirstmateSession {
19827
20303
  return this.keys(keys);
19828
20304
  });
19829
20305
  }
20306
+ /**
20307
+ * Type the code the captain brought back from the sign-in page into the
20308
+ * harness's sign-in field, and submit it. `signature` names the sign-in the
20309
+ * page showed; if the screen now shows another (or none), or its field
20310
+ * already holds something, nothing is typed.
20311
+ */
20312
+ signIn(signature, code) {
20313
+ return this.serial(async () => {
20314
+ const body = code.trim();
20315
+ if (!body || new RegExp("\\p{Cc}", "u").test(body) || Buffer.byteLength(body) > SIGN_IN_MAX_BYTES)
20316
+ return { ok: false, status: 400, error: "Paste the code the sign-in page gave you." };
20317
+ const refused = await this.ours();
20318
+ if (refused) return refused;
20319
+ if (this.activeHarness === "opencode")
20320
+ return { ok: false, status: 409, error: "Sign in to OpenCode in its terminal." };
20321
+ const now = readSignIn(await this.screen().catch(() => null));
20322
+ if (!now || now.signIn.signature !== signature || !now.signIn.paste)
20323
+ return {
20324
+ ok: false,
20325
+ status: 409,
20326
+ error: "That sign-in is no longer on Firstmate’s screen."
20327
+ };
20328
+ if (now.typed)
20329
+ return {
20330
+ ok: false,
20331
+ status: 409,
20332
+ error: "Something is already typed into the sign-in field. Clear it in Firstmate’s terminal, then try again."
20333
+ };
20334
+ const paste = await this.backend.paste(body);
20335
+ if (!paste.ok) return { ok: false, status: 500, error: paste.error };
20336
+ await this.sleep(PASTE_SETTLE_MS);
20337
+ return this.keys(["Enter"]);
20338
+ });
20339
+ }
19830
20340
  /**
19831
20341
  * Close the menu one of Claude Code's commands opened (such as /mcp):
19832
20342
  * Escape, as often as it takes to back out of its nested screens. After each
@@ -19883,6 +20393,13 @@ class FirstmateSession {
19883
20393
  return { ok: true, target: { ...this.backend.attach(), cwd: this.firstmateDir } };
19884
20394
  };
19885
20395
  }
20396
+ function launchHold(env, startSession = true) {
20397
+ if (!startSession) return "connected by setup; it starts when setup finishes.";
20398
+ if (env.WHEELHOUSE_RESTARTED === "1")
20399
+ return "left as it is; Wheelhouse only restarted its own server.";
20400
+ if (cloudSignInPending(env)) return "starts when setup finishes, once its agent is signed in.";
20401
+ return null;
20402
+ }
19886
20403
  const SESSION_BACKENDS = ["tmux", "herdr"];
19887
20404
  const SESSION_BACKEND_FILE = "session-backend.json";
19888
20405
  function parseSessionBackend(value) {
@@ -20683,6 +21200,13 @@ async function create(env, opts = {}) {
20683
21200
  codexHome: env.CODEX_HOME || path.join(env.HOME || homedir(), ".codex")
20684
21201
  },
20685
21202
  state
21203
+ ) : harness === "grok" ? locateGrokTranscript(
21204
+ {
21205
+ firstmateDir: install.firstmateDir,
21206
+ grokHome: env.GROK_HOME || path.join(env.HOME || homedir(), ".grok"),
21207
+ sessionId: firstmate.grokSessionId
21208
+ },
21209
+ state
20686
21210
  ) : harness === "claude" ? locateTranscript(
20687
21211
  {
20688
21212
  firstmateDir: install.firstmateDir,
@@ -20692,7 +21216,7 @@ async function create(env, opts = {}) {
20692
21216
  },
20693
21217
  state
20694
21218
  ) : Promise.resolve(null),
20695
- decode: (raw, harness) => harness === "codex" ? codexRecords(raw) : harness === "claude" && raw !== null && typeof raw === "object" && !Array.isArray(raw) ? [raw] : [],
21219
+ decode: (raw, harness) => harness === "codex" ? codexRecords(raw) : harness === "grok" ? grokRecords(raw) : harness === "claude" && raw !== null && typeof raw === "object" && !Array.isArray(raw) ? [raw] : [],
20696
21220
  snapshot: async (session2) => {
20697
21221
  if (session2.state !== "ours") return null;
20698
21222
  if (session2.harness === "pi")
@@ -20725,13 +21249,9 @@ async function create(env, opts = {}) {
20725
21249
  const skill = materialSync(install, env, plugins, (line) => console.log(line));
20726
21250
  collector.setMaterial(() => skill.view());
20727
21251
  await skill.sync();
20728
- if (opts.startSession === false) {
20729
- console.log("Firstmate: connected by setup; it starts when setup finishes.");
20730
- } else if (env.WHEELHOUSE_RESTARTED === "1") {
20731
- console.log("Firstmate: left as it is; Wheelhouse only restarted its own server.");
20732
- } else {
20733
- void startFirstmate(firstmate);
20734
- }
21252
+ const held = launchHold(env, opts.startSession);
21253
+ if (held) console.log(`Firstmate: ${held}`);
21254
+ else void startFirstmate(firstmate);
20735
21255
  watchSession(firstmate, bell);
20736
21256
  const terminals = new TerminalServer({ resolve: firstmate.terminal });
20737
21257
  const vault = new VaultService({
@@ -21432,5 +21952,5 @@ const runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
21432
21952
  upgradeRuntime
21433
21953
  }, Symbol.toStringTag, { value: "Module" }));
21434
21954
 
21435
- export { npmWritable as $, isReactionId as A, currentGateway as B, currentPlugins as C, currentPluginPage as D, watchSettingsError as E, changePluginConfig as F, GATEWAY_CHANNELS as G, runBounded as H, INPUT_MAX_BYTES as I, which as J, pluginIconFile as K, LOOPBACK_HOST as L, MAX_CHAT_CALLS as M, pluginUiFile as N, chooseRoleProvider as O, previewProber as P, PROJECT_ID as Q, REQUEST_ID$1 as R, MAX_FILE_BYTES$1 as S, PEEK_DEFAULT_LINES as T, pluginService as U, setupRefuses as V, WATCH_PLUGIN as W, findFirstmateDir as X, looksLikeFirstmate as Y, SETUP_SUGGESTIONS as Z, detectPlatform as _, sessionToken as a, remedy as a0, resolveSessionBackend as a1, readSavedBackend as a2, checkHerdr as a3, HERDR_MIN_VERSION as a4, DEFAULT_HERDR_SESSION as a5, writeSavedBackend as a6, syncForServer as a7, writeRemembered as a8, reconnectRuntime as a9, readDoc as aA, currentTime as aB, runtime as aC, checkTools as aa, stepsFor as ab, setupWorkDir as ac, currentChoice as ad, readAnswers as ae, fixedHarness as af, markSignedIn as ag, writeSavedChoice as ah, setupTerminals as ai, claudeStatus as aj, agentStatus as ak, installCommand as al, oneClickSteps as am, testClaude as an, testAgent as ao, VaultService as ap, bundledPluginsDir as aq, signInWithKey as ar, checkCompatibility as as, currentSlots as at, GAPS as au, WORKTREE_GONE as av, PEEK_MAX_LINES as aw, parseChange as ax, MAX_VALUE_BYTES as ay, currentDecisions as az, currentReviewSurface as b, cloudSignInPending as c, currentPullRequestTabs as d, currentHostedPreviews as e, currentAddressRewrites as f, getRuntime as g, currentInbox as h, isMutating as i, currentHeadroom as j, currentHealth as k, currentFleet as l, currentRailInsights as m, loadSlots as n, currentPreviewPorts as o, currentMessages as p, serverInstance as q, refuseMutation as r, servedOrigin as s, unconfiguredHealth as t, unconfiguredFleet as u, currentFileRoots as v, readAsset as w, unavailableFirstmate as x, parseMateTaskId as y, validateSend as z };
21436
- //# sourceMappingURL=runtime.js-Bj0q2OTu.js.map
21955
+ export { detectPlatform as $, validateSend as A, isReactionId as B, currentGateway as C, currentPlugins as D, currentPluginPage as E, watchSettingsError as F, GATEWAY_CHANNELS as G, changePluginConfig as H, INPUT_MAX_BYTES as I, runBounded as J, which as K, LOOPBACK_HOST as L, MAX_CHAT_CALLS as M, pluginIconFile as N, pluginUiFile as O, chooseRoleProvider as P, previewProber as Q, REQUEST_ID$1 as R, PROJECT_ID as S, MAX_FILE_BYTES$1 as T, PEEK_DEFAULT_LINES as U, pluginService as V, WATCH_PLUGIN as W, setupRefuses as X, findFirstmateDir as Y, looksLikeFirstmate as Z, SETUP_SUGGESTIONS as _, readAnswers as a, npmWritable as a0, remedy as a1, resolveSessionBackend as a2, readSavedBackend as a3, checkHerdr as a4, HERDR_MIN_VERSION as a5, DEFAULT_HERDR_SESSION as a6, writeSavedBackend as a7, syncForServer as a8, writeRemembered as a9, readDoc as aA, currentTime as aB, runtime as aC, reconnectRuntime as aa, checkTools as ab, stepsFor as ac, setupWorkDir as ad, currentChoice as ae, fixedHarness as af, markSignedIn as ag, writeSavedChoice as ah, setupTerminals as ai, claudeStatus as aj, agentStatus as ak, installCommand as al, oneClickSteps as am, testClaude as an, testAgent as ao, VaultService as ap, bundledPluginsDir as aq, signInWithKey as ar, checkCompatibility as as, currentSlots as at, GAPS as au, WORKTREE_GONE as av, PEEK_MAX_LINES as aw, parseChange as ax, MAX_VALUE_BYTES as ay, currentDecisions as az, sessionToken as b, cloudSignInPending as c, currentReviewSurface as d, currentPullRequestTabs as e, currentHostedPreviews as f, getRuntime as g, currentAddressRewrites as h, isMutating as i, currentInbox as j, currentHeadroom as k, currentHealth as l, currentFleet as m, currentRailInsights as n, loadSlots as o, currentPreviewPorts as p, currentMessages as q, refuseMutation as r, servedOrigin as s, serverInstance as t, unconfiguredFleet as u, unconfiguredHealth as v, currentFileRoots as w, readAsset as x, unavailableFirstmate as y, parseMateTaskId as z };
21956
+ //# sourceMappingURL=runtime.js-D8WQmN9S.js.map