@chrisjowen/wheelhouse 0.12.0 → 0.13.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 (377) hide show
  1. package/build/client/_app/immutable/chunks/{BrlWJk4r.js → 9-2CzHQD.js} +1 -1
  2. package/build/client/_app/immutable/chunks/9-2CzHQD.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/9-2CzHQD.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{D69HGG2e.js → BDyfTgsS.js} +1 -1
  5. package/build/client/_app/immutable/chunks/BDyfTgsS.js.br +3 -0
  6. package/build/client/_app/immutable/chunks/BDyfTgsS.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{BIJDRvOc.js → BFQWRmh7.js} +1 -1
  8. package/build/client/_app/immutable/chunks/BFQWRmh7.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BFQWRmh7.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{Cn9pLe1S.js → BLxVvWay.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BLxVvWay.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BLxVvWay.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{CeuOu7QI.js → BNxvXFfv.js} +1 -1
  14. package/build/client/_app/immutable/chunks/BNxvXFfv.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BNxvXFfv.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{Dq4WC4aT.js → BPOpB19z.js} +1 -1
  17. package/build/client/_app/immutable/chunks/BPOpB19z.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BPOpB19z.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{DGZVZsEx.js → BSAgOLZf.js} +1 -1
  20. package/build/client/_app/immutable/chunks/BSAgOLZf.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BSAgOLZf.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{Dbi_7cO_.js → BfiwDiDR.js} +2 -2
  23. package/build/client/_app/immutable/chunks/BfiwDiDR.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BfiwDiDR.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{CEHCs8E4.js → CBNJeKYi.js} +1 -1
  26. package/build/client/_app/immutable/chunks/CBNJeKYi.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CBNJeKYi.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{C8OIAOGW.js → CCSre-H4.js} +1 -1
  29. package/build/client/_app/immutable/chunks/CCSre-H4.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CCSre-H4.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{D1QZsS_n.js → CYgerXrU.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CYgerXrU.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CYgerXrU.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{B78SKOml.js → D1bykXRr.js} +1 -1
  35. package/build/client/_app/immutable/chunks/D1bykXRr.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/D1bykXRr.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{CL60_qsS.js → D47Q9TSK.js} +1 -1
  38. package/build/client/_app/immutable/chunks/D47Q9TSK.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/D47Q9TSK.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{C6B0JAFe.js → DLbYUJ4B.js} +1 -1
  41. package/build/client/_app/immutable/chunks/DLbYUJ4B.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/DLbYUJ4B.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{D3z87-GH.js → DcwUckFP.js} +1 -1
  44. package/build/client/_app/immutable/chunks/DcwUckFP.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/DcwUckFP.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{BYUAxBPx.js → DhkAM2zE.js} +1 -1
  47. package/build/client/_app/immutable/chunks/DhkAM2zE.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/DhkAM2zE.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{bOtONP_M.js → Dpd_B5b-.js} +1 -1
  50. package/build/client/_app/immutable/chunks/Dpd_B5b-.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/Dpd_B5b-.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/{Bw22EWRR.js → Dw-B6NqN.js} +1 -1
  53. package/build/client/_app/immutable/chunks/Dw-B6NqN.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/Dw-B6NqN.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{QrHSSdjC.js → Dybu9Tl2.js} +1 -1
  56. package/build/client/_app/immutable/chunks/Dybu9Tl2.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/Dybu9Tl2.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{8JUY7TGF.js → PyVjjQ7z.js} +1 -1
  59. package/build/client/_app/immutable/chunks/PyVjjQ7z.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/PyVjjQ7z.js.gz +0 -0
  61. package/build/client/_app/immutable/entry/{app.B0SozPUz.js → app.T9vftEzW.js} +2 -2
  62. package/build/client/_app/immutable/entry/app.T9vftEzW.js.br +0 -0
  63. package/build/client/_app/immutable/entry/app.T9vftEzW.js.gz +0 -0
  64. package/build/client/_app/immutable/entry/start.DQc5g5Tu.js +1 -0
  65. package/build/client/_app/immutable/entry/start.DQc5g5Tu.js.br +0 -0
  66. package/build/client/_app/immutable/entry/start.DQc5g5Tu.js.gz +0 -0
  67. package/build/client/_app/immutable/nodes/{0.BH-p6KNP.js → 0.CpWdFWTY.js} +1 -1
  68. package/build/client/_app/immutable/nodes/0.CpWdFWTY.js.br +0 -0
  69. package/build/client/_app/immutable/nodes/0.CpWdFWTY.js.gz +0 -0
  70. package/build/client/_app/immutable/nodes/{1.5bKMe7me.js → 1.D0NGKWDz.js} +1 -1
  71. package/build/client/_app/immutable/nodes/1.D0NGKWDz.js.br +0 -0
  72. package/build/client/_app/immutable/nodes/1.D0NGKWDz.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/{10.CuyB--Be.js → 10.Ci7MkSUL.js} +1 -1
  74. package/build/client/_app/immutable/nodes/10.Ci7MkSUL.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/10.Ci7MkSUL.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/{11.Cp96bYst.js → 11.D_y0B-9H.js} +1 -1
  77. package/build/client/_app/immutable/nodes/11.D_y0B-9H.js.br +0 -0
  78. package/build/client/_app/immutable/nodes/11.D_y0B-9H.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{12.B9kS4-UK.js → 12.CKxPW2RY.js} +1 -1
  80. package/build/client/_app/immutable/nodes/12.CKxPW2RY.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/12.CKxPW2RY.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{13.ie4sMrRi.js → 13.DZyxOX0t.js} +1 -1
  83. package/build/client/_app/immutable/nodes/13.DZyxOX0t.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/13.DZyxOX0t.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{14.CqfbcQC3.js → 14.BUbAnBHk.js} +1 -1
  86. package/build/client/_app/immutable/nodes/14.BUbAnBHk.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/14.BUbAnBHk.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{15.ClcEiTus.js → 15.BtPEMzbF.js} +1 -1
  89. package/build/client/_app/immutable/nodes/15.BtPEMzbF.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/15.BtPEMzbF.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{16.Lubye7rY.js → 16.DvC3Yq2k.js} +1 -1
  92. package/build/client/_app/immutable/nodes/16.DvC3Yq2k.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/16.DvC3Yq2k.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{17.CZsgvMnU.js → 17.CwxcyNhq.js} +1 -1
  95. package/build/client/_app/immutable/nodes/17.CwxcyNhq.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/17.CwxcyNhq.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{19.nb4PEk6e.js → 19.DjDChLR4.js} +1 -1
  98. package/build/client/_app/immutable/nodes/19.DjDChLR4.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/19.DjDChLR4.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{2.DBpcacIW.js → 2.BPYs8aMA.js} +1 -1
  101. package/build/client/_app/immutable/nodes/2.BPYs8aMA.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/2.BPYs8aMA.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/{20.DKDJA76m.js → 20.MdyDTrbR.js} +1 -1
  104. package/build/client/_app/immutable/nodes/20.MdyDTrbR.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/20.MdyDTrbR.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{21.DDSJrVwV.js → 21.CRYb46Qk.js} +1 -1
  107. package/build/client/_app/immutable/nodes/21.CRYb46Qk.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/21.CRYb46Qk.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{22.Bf2Y4qtK.js → 22.CSKHHZHk.js} +1 -1
  110. package/build/client/_app/immutable/nodes/22.CSKHHZHk.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/22.CSKHHZHk.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{23.CgSRzQDr.js → 23.woGfpbdg.js} +1 -1
  113. package/build/client/_app/immutable/nodes/23.woGfpbdg.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/23.woGfpbdg.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{24.fKJczgYC.js → 24.j9aSFNGe.js} +1 -1
  116. package/build/client/_app/immutable/nodes/24.j9aSFNGe.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/24.j9aSFNGe.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/25.s65SW_W1.js +15 -0
  119. package/build/client/_app/immutable/nodes/25.s65SW_W1.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/25.s65SW_W1.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{26.Bl7bQZez.js → 26.ByPiyYJ7.js} +1 -1
  122. package/build/client/_app/immutable/nodes/26.ByPiyYJ7.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/26.ByPiyYJ7.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{28.B9EWyQv6.js → 28.BSl2UHEO.js} +1 -1
  125. package/build/client/_app/immutable/nodes/28.BSl2UHEO.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/28.BSl2UHEO.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{3.DMxCWZ16.js → 3.HsKQfKyI.js} +1 -1
  128. package/build/client/_app/immutable/nodes/3.HsKQfKyI.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/3.HsKQfKyI.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{4.Bj_V5H0A.js → 4.-M81LW8I.js} +1 -1
  131. package/build/client/_app/immutable/nodes/4.-M81LW8I.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/4.-M81LW8I.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/{6.BAzIGIXP.js → 6.BD9phDQV.js} +1 -1
  134. package/build/client/_app/immutable/nodes/6.BD9phDQV.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/6.BD9phDQV.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/{7.CpRItf5T.js → 7.BMkpfE5W.js} +1 -1
  137. package/build/client/_app/immutable/nodes/7.BMkpfE5W.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/7.BMkpfE5W.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/{8.BRbaXe0L.js → 8.Cn4W7RJ_.js} +1 -1
  140. package/build/client/_app/immutable/nodes/8.Cn4W7RJ_.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/8.Cn4W7RJ_.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{9.DpQmfi7O.js → 9.Bq63Tfhm.js} +1 -1
  143. package/build/client/_app/immutable/nodes/9.Bq63Tfhm.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/9.Bq63Tfhm.js.gz +0 -0
  145. package/build/client/_app/version.json +1 -1
  146. package/build/client/_app/version.json.br +0 -0
  147. package/build/client/_app/version.json.gz +0 -0
  148. package/build/handler.js +4 -4
  149. package/build/index.js +4 -4
  150. package/build/server/chunks/chunks/{detail.js-BBCxJBpU.js → detail.js-CGQe7z_8.js} +2 -2
  151. package/build/server/chunks/chunks/{feedback.js-DHLUCzN_.js → feedback.js-DFYYSHv7.js} +2 -2
  152. package/build/server/chunks/chunks/{internal.js-CedW099c.js → internal.js-7Q5kbRuG.js} +3 -3
  153. package/build/server/chunks/chunks/{keychain.js-CspIw1lK.js → keychain.js-BdHjaAlL.js} +2 -2
  154. package/build/server/chunks/chunks/{marketplace-service.js-O-2c34nr.js → marketplace-service.js-CQOQRR1u.js} +2 -2
  155. package/build/server/chunks/chunks/{page.js-BRRl6mg_.js → page.js-QC-F57n7.js} +2 -2
  156. package/build/server/chunks/chunks/{previewhelper2.js-CLYvgGeM.js → previewhelper2.js-OKBLOZKR.js} +2 -2
  157. package/build/server/chunks/chunks/{repo.js-BQv7p3Qv.js → repo.js-PsQPQrLd.js} +2 -2
  158. package/build/server/chunks/chunks/{runtime.js-ja9fpm3a.js → runtime.js-COzWLifC.js} +663 -159
  159. package/build/server/chunks/chunks/{service.js-CHB5De_m.js → service.js-CoOFU7OT.js} +2 -2
  160. package/build/server/chunks/chunks/{service2.js-BSXaHqaf.js → service2.js-C0HakbfJ.js} +102 -13
  161. package/build/server/chunks/chunks/{starter.js-BL6kYdY7.js → starter.js-T4H-Lhtt.js} +2 -2
  162. package/build/server/chunks/chunks/{terminal.js-s8yEF1TY.js → terminal.js-BUurgI6D.js} +10 -2
  163. package/build/server/chunks/chunks/{view.js-DvrTXTsb.js → view.js-SsG5PnKg.js} +2 -2
  164. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-DJDX8mej.js → _server.ts.js-9IZtZaIU.js} +4 -4
  165. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-ZpNBOdE6.js → _server.ts.js-C6EL6yba.js} +3 -3
  166. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-cLGgBi-L.js → _server.ts.js-DjpSof2Z.js} +4 -4
  167. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-DyA-Ftti.js → _server.ts.js-kYR7zdIE.js} +4 -4
  168. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-BRutjWld.js → _server.ts.js-NUiqoG3u.js} +4 -4
  169. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CSUsZ_Uy.js → _server.ts.js-DBIPvmn-.js} +4 -4
  170. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CyMAbBop.js → _server.ts.js-CZ6CEIWk.js} +4 -4
  171. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-C1QNh7Fv.js → _server.ts.js-BiZ4SNIF.js} +4 -4
  172. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-xAS3zgy6.js → _server.ts.js-CUAlzyVJ.js} +4 -4
  173. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-C0ChpkPv.js → _server.ts.js-Byzc5IkK.js} +4 -4
  174. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-Dg8UqJYL.js → _server.ts.js-BayDk84h.js} +4 -4
  175. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-KtXAKUKl.js → _server.ts.js-B1cXfwS_.js} +4 -4
  176. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-SfyGIsms.js → _server.ts.js-DE9D2_oI.js} +4 -4
  177. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-uKjVaQqO.js → _server.ts.js-JkVmLb_6.js} +4 -4
  178. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Bh09YMSB.js → _server.ts.js-Dzh8VNFt.js} +4 -4
  179. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DiOWY9as.js → _server.ts.js-C7Zd4J2x.js} +4 -4
  180. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BRjxK-9y.js → _server.ts.js-CRp1TQsv.js} +4 -4
  181. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CA3XQih9.js → _server.ts.js-a4UwbswF.js} +4 -4
  182. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B5MRXVz2.js → _server.ts.js-BCwu9M_t.js} +4 -4
  183. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-Hj5j2VEd.js → _server.ts.js-C4CgXyCW.js} +4 -4
  184. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CG5hVtIr.js → _server.ts.js-Dye6RTP6.js} +4 -4
  185. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-CbfYfN4W.js → _server.ts.js-Vr3iTNTg.js} +5 -5
  186. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-Cntqh4w-.js → _server.ts.js-D2ZC4sxZ.js} +6 -6
  187. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DbaYfmK8.js → _server.ts.js-BulTXo7c.js} +4 -4
  188. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-CMC6khtq.js → _server.ts.js-BH7-CeAP.js} +2 -2
  189. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-DiCaOT3E.js → _server.ts.js-CwBrnFnK.js} +4 -4
  190. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-DQZxZKa4.js → _server.ts.js-PgW7ZklF.js} +2 -2
  191. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CaQ772k3.js → _server.ts.js-DUlrUTo-.js} +4 -4
  192. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DkjBSjdS.js → _server.ts.js-dYnuJJfy.js} +2 -2
  193. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-BLEOrgEt.js → _server.ts.js-XMy5OTYg.js} +2 -2
  194. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-rrfRBhVX.js → _server.ts.js-C5kBp5Y6.js} +5 -5
  195. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-DEaeguu1.js → _server.ts.js-D1qrraqa.js} +5 -5
  196. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-DGviOddp.js → _server.ts.js-DN1UDT_a.js} +5 -5
  197. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-BfwOLICk.js → _server.ts.js-_1QDJM7X.js} +2 -2
  198. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-C3dZCo79.js → _server.ts.js-YFKgwEtn.js} +4 -4
  199. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-QCxCUoaZ.js → _server.ts.js-CuuiERKz.js} +5 -5
  200. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-CIHZWmY6.js → _server.ts.js-zWD7NB0B.js} +5 -5
  201. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-9MZ6ZU7W.js → _server.ts.js-mdx5Ypsj.js} +5 -5
  202. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-YJgYZpm2.js → _server.ts.js-9XfoohP9.js} +5 -5
  203. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-DRO0yFlG.js → _server.ts.js-CU3jD7va.js} +5 -5
  204. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js--78Nc6jj.js → _server.ts.js-CzkjQDwv.js} +5 -5
  205. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-B92-w9Jt.js → _server.ts.js-nWkAqEZ8.js} +4 -4
  206. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-BlgDs2xk.js → _server.ts.js-DC9F8JHt.js} +4 -4
  207. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Cc70st9n.js → _server.ts.js-SEqnGhCL.js} +11 -5
  208. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-COmpO5sc.js → _server.ts.js-CL95AcTk.js} +4 -4
  209. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-DcHNA_QH.js → _server.ts.js-Bt5x_SZo.js} +5 -5
  210. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-BIBAGkdF.js → _server.ts.js-pcCn9wpf.js} +4 -4
  211. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-DXKDhcRn.js → _server.ts.js-DABhamdk.js} +4 -4
  212. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BgJD7i53.js → _server.ts.js-7_Kx5O15.js} +4 -4
  213. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CxKGr5ok.js → _server.ts.js-Dkhl8MfB.js} +4 -4
  214. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-k2erXAMq.js → _server.ts.js-rXi5YwLW.js} +5 -5
  215. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BUmsnNMT.js → _server.ts.js-BIOZoKJd.js} +4 -4
  216. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Dic1r8FA.js → _server.ts.js-DxSvWHt3.js} +2 -2
  217. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-DCDFOP3H.js → _server.ts.js-BlDUZ37s.js} +2 -2
  218. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-DyaR3iKq.js → _server.ts.js-h5V0DXDf.js} +2 -2
  219. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Ds9qnblb.js → _server.ts.js-BPDLxKL3.js} +4 -4
  220. package/build/server/chunks/entries/{hooks.server.js-BLsrrww8.js → hooks.server.js-BEJdV2uP.js} +4 -4
  221. package/build/server/chunks/entries/pages/{_layout.server.ts.js-CWJXWFa8.js → _layout.server.ts.js-oNFsG-OO.js} +2 -2
  222. package/build/server/chunks/entries/pages/{_page.server.ts.js-DcIo1Fkt.js → _page.server.ts.js-C8__0-1Q.js} +2 -2
  223. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-Cumc04zT.js → _page.server.ts.js-CNJeecwR.js} +2 -2
  224. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BvnBsHnq.js → _page.server.ts.js-BoXXVnMS.js} +2 -2
  225. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DVzHoqMO.js → _page.server.ts.js-CyRGlXO9.js} +2 -2
  226. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-BK7WgAXR.js → _page.server.ts.js-D0LotbNu.js} +2 -2
  227. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-B_et4vbk.js → _page.server.ts.js-DRsPRpSl.js} +2 -2
  228. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-DWY01zRh.js → _page.server.ts.js-Doid6WR6.js} +2 -2
  229. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-Be_vf2s9.js → _page.server.ts.js-32XfdeNC.js} +2 -2
  230. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-euICzR6h.js → _page.server.ts.js-GB2nEYS5.js} +3 -3
  231. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-CO-iqBAD.js → _page.server.ts.js-oV82J3pC.js} +3 -3
  232. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-DzQmyVut.js → _page.server.ts.js-I99LutNo.js} +4 -4
  233. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-ByePQa4g.js → _page.server.ts.js-CWe-F3jJ.js} +2 -2
  234. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-DRj_7nDd.js → _page.server.ts.js-CO0S-Fse.js} +2 -2
  235. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-QWGL2-Cn.js → _page.server.ts.js-BIthp0dE.js} +2 -2
  236. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DAOkZ-fE.js → _page.server.ts.js-Bq7pjP9S.js} +2 -2
  237. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-jeZvTAgT.js → _page.server.ts.js-Ds4udNs6.js} +2 -2
  238. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-Bzo5Uals.js → _page.server.ts.js-BhTYPz8W.js} +2 -2
  239. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-1XiCbDhc.js → _page.server.ts.js-DopSQLu-.js} +2 -2
  240. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DwYnrxXG.js → _page.server.ts.js-qmulQ-ge.js} +2 -2
  241. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DP--6Ko6.js → _page.server.ts.js-DMr69bTz.js} +3 -3
  242. package/build/server/chunks/entries/pages/setup/{_page.svelte.js-CB6DNUFE.js → _page.svelte.js-BZsw7k9z.js} +104 -21
  243. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-Dl0z8pkQ.js → _page.server.ts.js-BKT9Gezs.js} +3 -3
  244. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CyPpYkuJ.js → _page.server.ts.js-DKQ7Sfzc.js} +2 -2
  245. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DlcJgtrb.js → _page.server.ts.js-D7dBFLqV.js} +2 -2
  246. package/build/server/chunks/{handler-pU2T6cxW.js → handler-MmGfFHL5.js} +3 -3
  247. package/build/server/chunks/{index.js-B3YyBD1_.js → index.js-FOiuKHW9.js} +2 -2
  248. package/build/server/chunks/{manifest.js-D3OqJAbv.js → manifest.js-CogJYoYY.js} +86 -86
  249. package/build/server/chunks/nodes/{0.js-DapnlcBu.js → 0.js-CRw2ZJSU.js} +6 -6
  250. package/build/server/chunks/nodes/{1.js-B2zVBiHu.js → 1.js-BlgG2zLX.js} +2 -2
  251. package/build/server/chunks/nodes/{10.js-CwfaDBrN.js → 10.js-B7T0NyU9.js} +2 -2
  252. package/build/server/chunks/nodes/{11.js-BSKCzLBk.js → 11.js-FvEHh38s.js} +6 -6
  253. package/build/server/chunks/nodes/{12.js-Cw0R3pzN.js → 12.js-D2nyk1fY.js} +7 -7
  254. package/build/server/chunks/nodes/{13.js-1CllvmKU.js → 13.js-DG_t6I8D.js} +7 -7
  255. package/build/server/chunks/nodes/{14.js-Duo10iYX.js → 14.js-C8iMqGSa.js} +8 -8
  256. package/build/server/chunks/nodes/{15.js-yyKjbIPm.js → 15.js-P4N2OjCp.js} +7 -7
  257. package/build/server/chunks/nodes/{16.js-Bw3O413k.js → 16.js-CW-Li1Rg.js} +6 -6
  258. package/build/server/chunks/nodes/{17.js-CKJWbBiG.js → 17.js-C3BmyWNh.js} +2 -2
  259. package/build/server/chunks/nodes/{19.js-gqmNp-1X.js → 19.js-gCrSgnZV.js} +6 -6
  260. package/build/server/chunks/nodes/{2.js-DbAE0QSU.js → 2.js-D1lhh7rv.js} +6 -6
  261. package/build/server/chunks/nodes/{20.js-DyVwaMHk.js → 20.js-cFxZhrOi.js} +6 -6
  262. package/build/server/chunks/nodes/{21.js-UWLpwye1.js → 21.js-B_sxxEjx.js} +6 -6
  263. package/build/server/chunks/nodes/{22.js-DjQqtx9a.js → 22.js-B9hMJudF.js} +6 -6
  264. package/build/server/chunks/nodes/{23.js-BRxy911D.js → 23.js-CevV9EAu.js} +7 -7
  265. package/build/server/chunks/nodes/{24.js-QS0KOwss.js → 24.js-DKin1eiP.js} +4 -4
  266. package/build/server/chunks/nodes/{25.js-PQ5YJuMR.js → 25.js-BA26f5_P.js} +8 -8
  267. package/build/server/chunks/nodes/{26.js-CVgNTrxq.js → 26.js-D-DeStzU.js} +7 -7
  268. package/build/server/chunks/nodes/{27.js-D362fjZ7.js → 27.js-JuHjQHNw.js} +6 -6
  269. package/build/server/chunks/nodes/{28.js-CquKiHnq.js → 28.js-CfTvF44g.js} +6 -6
  270. package/build/server/chunks/nodes/{3.js-_ZrsIscU.js → 3.js-CPeXHwiv.js} +6 -6
  271. package/build/server/chunks/nodes/{4.js-CMBAdl6x.js → 4.js-o_aK1zpE.js} +6 -6
  272. package/build/server/chunks/nodes/{5.js-DRAnyeo0.js → 5.js-D8wPPlRj.js} +5 -5
  273. package/build/server/chunks/nodes/{6.js-CWsHGKdF.js → 6.js-DMotGXmq.js} +6 -6
  274. package/build/server/chunks/nodes/{7.js-BzkPQGE-.js → 7.js-BiY2LNIQ.js} +6 -6
  275. package/build/server/chunks/nodes/{8.js-DppreJ1j.js → 8.js-DANIuNFx.js} +6 -6
  276. package/build/server/chunks/nodes/{9.js-CWCKh6Lz.js → 9.js-DusPVGyL.js} +2 -2
  277. package/dist/cli.js +215 -69
  278. package/dist/wh-vault.js +1 -1
  279. package/package.json +1 -1
  280. package/build/client/_app/immutable/chunks/8JUY7TGF.js.br +0 -0
  281. package/build/client/_app/immutable/chunks/8JUY7TGF.js.gz +0 -0
  282. package/build/client/_app/immutable/chunks/B78SKOml.js.br +0 -0
  283. package/build/client/_app/immutable/chunks/B78SKOml.js.gz +0 -0
  284. package/build/client/_app/immutable/chunks/BIJDRvOc.js.br +0 -0
  285. package/build/client/_app/immutable/chunks/BIJDRvOc.js.gz +0 -0
  286. package/build/client/_app/immutable/chunks/BYUAxBPx.js.br +0 -0
  287. package/build/client/_app/immutable/chunks/BYUAxBPx.js.gz +0 -0
  288. package/build/client/_app/immutable/chunks/BrlWJk4r.js.br +0 -0
  289. package/build/client/_app/immutable/chunks/BrlWJk4r.js.gz +0 -0
  290. package/build/client/_app/immutable/chunks/Bw22EWRR.js.br +0 -0
  291. package/build/client/_app/immutable/chunks/Bw22EWRR.js.gz +0 -0
  292. package/build/client/_app/immutable/chunks/C6B0JAFe.js.br +0 -0
  293. package/build/client/_app/immutable/chunks/C6B0JAFe.js.gz +0 -0
  294. package/build/client/_app/immutable/chunks/C8OIAOGW.js.br +0 -0
  295. package/build/client/_app/immutable/chunks/C8OIAOGW.js.gz +0 -0
  296. package/build/client/_app/immutable/chunks/CEHCs8E4.js.br +0 -0
  297. package/build/client/_app/immutable/chunks/CEHCs8E4.js.gz +0 -0
  298. package/build/client/_app/immutable/chunks/CL60_qsS.js.br +0 -0
  299. package/build/client/_app/immutable/chunks/CL60_qsS.js.gz +0 -0
  300. package/build/client/_app/immutable/chunks/CeuOu7QI.js.br +0 -0
  301. package/build/client/_app/immutable/chunks/CeuOu7QI.js.gz +0 -0
  302. package/build/client/_app/immutable/chunks/Cn9pLe1S.js.br +0 -0
  303. package/build/client/_app/immutable/chunks/Cn9pLe1S.js.gz +0 -0
  304. package/build/client/_app/immutable/chunks/D1QZsS_n.js.br +0 -0
  305. package/build/client/_app/immutable/chunks/D1QZsS_n.js.gz +0 -0
  306. package/build/client/_app/immutable/chunks/D3z87-GH.js.br +0 -0
  307. package/build/client/_app/immutable/chunks/D3z87-GH.js.gz +0 -0
  308. package/build/client/_app/immutable/chunks/D69HGG2e.js.br +0 -0
  309. package/build/client/_app/immutable/chunks/D69HGG2e.js.gz +0 -0
  310. package/build/client/_app/immutable/chunks/DGZVZsEx.js.br +0 -0
  311. package/build/client/_app/immutable/chunks/DGZVZsEx.js.gz +0 -0
  312. package/build/client/_app/immutable/chunks/Dbi_7cO_.js.br +0 -0
  313. package/build/client/_app/immutable/chunks/Dbi_7cO_.js.gz +0 -0
  314. package/build/client/_app/immutable/chunks/Dq4WC4aT.js.br +0 -0
  315. package/build/client/_app/immutable/chunks/Dq4WC4aT.js.gz +0 -0
  316. package/build/client/_app/immutable/chunks/QrHSSdjC.js.br +0 -2
  317. package/build/client/_app/immutable/chunks/QrHSSdjC.js.gz +0 -0
  318. package/build/client/_app/immutable/chunks/bOtONP_M.js.br +0 -0
  319. package/build/client/_app/immutable/chunks/bOtONP_M.js.gz +0 -0
  320. package/build/client/_app/immutable/entry/app.B0SozPUz.js.br +0 -0
  321. package/build/client/_app/immutable/entry/app.B0SozPUz.js.gz +0 -0
  322. package/build/client/_app/immutable/entry/start.BgyXy-5i.js +0 -1
  323. package/build/client/_app/immutable/entry/start.BgyXy-5i.js.br +0 -0
  324. package/build/client/_app/immutable/entry/start.BgyXy-5i.js.gz +0 -0
  325. package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.br +0 -0
  326. package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.gz +0 -0
  327. package/build/client/_app/immutable/nodes/1.5bKMe7me.js.br +0 -0
  328. package/build/client/_app/immutable/nodes/1.5bKMe7me.js.gz +0 -0
  329. package/build/client/_app/immutable/nodes/10.CuyB--Be.js.br +0 -0
  330. package/build/client/_app/immutable/nodes/10.CuyB--Be.js.gz +0 -0
  331. package/build/client/_app/immutable/nodes/11.Cp96bYst.js.br +0 -0
  332. package/build/client/_app/immutable/nodes/11.Cp96bYst.js.gz +0 -0
  333. package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.br +0 -0
  334. package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.gz +0 -0
  335. package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.br +0 -0
  336. package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.gz +0 -0
  337. package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.br +0 -0
  338. package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.gz +0 -0
  339. package/build/client/_app/immutable/nodes/15.ClcEiTus.js.br +0 -0
  340. package/build/client/_app/immutable/nodes/15.ClcEiTus.js.gz +0 -0
  341. package/build/client/_app/immutable/nodes/16.Lubye7rY.js.br +0 -0
  342. package/build/client/_app/immutable/nodes/16.Lubye7rY.js.gz +0 -0
  343. package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.br +0 -0
  344. package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.gz +0 -0
  345. package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.br +0 -0
  346. package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.gz +0 -0
  347. package/build/client/_app/immutable/nodes/2.DBpcacIW.js.br +0 -0
  348. package/build/client/_app/immutable/nodes/2.DBpcacIW.js.gz +0 -0
  349. package/build/client/_app/immutable/nodes/20.DKDJA76m.js.br +0 -0
  350. package/build/client/_app/immutable/nodes/20.DKDJA76m.js.gz +0 -0
  351. package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.br +0 -0
  352. package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.gz +0 -0
  353. package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.br +0 -0
  354. package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.gz +0 -0
  355. package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.br +0 -0
  356. package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/24.fKJczgYC.js.br +0 -0
  358. package/build/client/_app/immutable/nodes/24.fKJczgYC.js.gz +0 -0
  359. package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js +0 -14
  360. package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js.br +0 -0
  361. package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js.gz +0 -0
  362. package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.br +0 -0
  363. package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.gz +0 -0
  364. package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.br +0 -0
  365. package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.gz +0 -0
  366. package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.br +0 -0
  367. package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.gz +0 -0
  368. package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.br +0 -0
  369. package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.gz +0 -0
  370. package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.br +0 -0
  371. package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.gz +0 -0
  372. package/build/client/_app/immutable/nodes/7.CpRItf5T.js.br +0 -0
  373. package/build/client/_app/immutable/nodes/7.CpRItf5T.js.gz +0 -0
  374. package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.br +0 -0
  375. package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.gz +0 -0
  376. package/build/client/_app/immutable/nodes/9.DpQmfi7O.js.br +0 -0
  377. package/build/client/_app/immutable/nodes/9.DpQmfi7O.js.gz +0 -0
@@ -1,7 +1,7 @@
1
1
  import { readFile, readdir, stat, open, realpath, mkdir, writeFile, rename, rm, access, constants, lstat, chmod, appendFile } 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-CspIw1lK.js';
4
+ import { v as version, d as defaultKeychain } from './keychain.js-BdHjaAlL.js';
5
5
  import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, openSync, closeSync, watch, statSync, fstatSync, readSync, accessSync, constants as constants$1, realpathSync, lstatSync, rmSync } from 'node:fs';
6
6
  import { spawn, execFileSync } from 'node:child_process';
7
7
  import { l as loopbackPreview, f as frameRefusal } from './preview.js-CbgkVvT_.js';
@@ -15,7 +15,7 @@ import { s as shortTitle } from './format.js-D3lWEg6U.js';
15
15
  import { r as runStep, c as checksLine } from './checks.js-DGdGhp1G.js';
16
16
  import net, { createServer } from 'node:net';
17
17
  import { D as DECIDED_MAX, d as detectHosted, p as portInHost, h as hostedAddress } from './decisionform.js-Ds5LU9Wh.js';
18
- import { T as TERMINAL_PATH, a as TERMINAL_PROTOCOL, b as TERMINAL_CLOSE, S as SETUP_TERMINAL_PATH, c as TOKEN_PROTOCOL_PREFIX } from './terminal.js-s8yEF1TY.js';
18
+ import { T as TERMINAL_PATH, a as TERMINAL_PROTOCOL, b as TERMINAL_CLOSE, S as SETUP_TERMINAL_PATH, c as TOKEN_PROTOCOL_PREFIX } from './terminal.js-BUurgI6D.js';
19
19
  import WebSocket, { WebSocketServer } from 'ws';
20
20
  import { timingSafeEqual, randomBytes, randomUUID, createHash, createHmac } from 'node:crypto';
21
21
  import { r as roundId, t as testLine } from './buildlog.js-BCKtSKOt.js';
@@ -201,11 +201,11 @@ class ContractError extends Error {
201
201
  }
202
202
  }
203
203
  const isObj$2 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
204
- const str$5 = (v) => typeof v === "string" ? v : null;
204
+ const str$6 = (v) => typeof v === "string" ? v : null;
205
205
  const nonBlank = (v) => typeof v === "string" && v.trim() ? v : null;
206
206
  const num$2 = (v) => typeof v === "number" && Number.isFinite(v) ? v : null;
207
207
  const bool = (v) => typeof v === "boolean" ? v : null;
208
- const obj = (v) => isObj$2(v) ? v : {};
208
+ const obj$1 = (v) => isObj$2(v) ? v : {};
209
209
  const strings = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : [];
210
210
  const CREW_STATES = [
211
211
  "working",
@@ -227,51 +227,51 @@ function parseJson$1(text2, what) {
227
227
  }
228
228
  function parseBacklogRecord(v) {
229
229
  if (!isObj$2(v)) return null;
230
- const id = str$5(v.id);
230
+ const id = str$6(v.id);
231
231
  if (!id) return null;
232
- const completion = obj(v.completion);
232
+ const completion = obj$1(v.completion);
233
233
  return {
234
234
  id,
235
- state: str$5(v.state) ?? "unknown",
236
- title: str$5(v.title),
237
- repo: str$5(v.repo),
235
+ state: str$6(v.state) ?? "unknown",
236
+ title: str$6(v.title),
237
+ repo: str$6(v.repo),
238
238
  kind: nonBlank(v.kind),
239
- prUrl: str$5(v.pr_url),
240
- since: str$5(v.since),
241
- completion: { verb: str$5(completion.verb), date: str$5(completion.date) },
239
+ prUrl: str$6(v.pr_url),
240
+ since: str$6(v.since),
241
+ completion: { verb: str$6(completion.verb), date: str$6(completion.date) },
242
242
  captainActionable: v.captain_actionable === true,
243
- holdReason: str$5(v.hold_reason),
244
- holdSet: str$5(v.hold_set),
245
- holdBucket: str$5(v.hold_bucket),
243
+ holdReason: str$6(v.hold_reason),
244
+ holdSet: str$6(v.hold_set),
245
+ holdBucket: str$6(v.hold_bucket),
246
246
  unresolvedBlockerIds: strings(v.unresolved_blocker_ids),
247
- bodyExcerpt: str$5(v.body_excerpt),
247
+ bodyExcerpt: str$6(v.body_excerpt),
248
248
  order: num$2(v.order),
249
249
  structured: v.structured !== false
250
250
  };
251
251
  }
252
252
  function parseCurrentState(v) {
253
253
  if (!isObj$2(v)) return null;
254
- const raw = str$5(v.state);
254
+ const raw = str$6(v.state);
255
255
  const state = CREW_STATES.includes(raw ?? "") ? raw : "unknown";
256
256
  return {
257
257
  state,
258
- source: str$5(v.source),
259
- detail: str$5(v.detail),
260
- observedAt: str$5(v.observed_at),
261
- freshness: str$5(v.freshness)
258
+ source: str$6(v.source),
259
+ detail: str$6(v.detail),
260
+ observedAt: str$6(v.observed_at),
261
+ freshness: str$6(v.freshness)
262
262
  };
263
263
  }
264
264
  function parseTask(v) {
265
265
  if (!isObj$2(v)) return null;
266
- const id = str$5(v.id);
266
+ const id = str$6(v.id);
267
267
  if (!id) return null;
268
- const paths = obj(v.paths);
269
- const worktree = obj(paths.worktree);
270
- const report2 = obj(paths.report);
271
- const statusLog = obj(paths.status_log);
268
+ const paths = obj$1(v.paths);
269
+ const worktree = obj$1(paths.worktree);
270
+ const report2 = obj$1(paths.report);
271
+ const statusLog = obj$1(paths.status_log);
272
272
  const last = isObj$2(statusLog.last_event) ? statusLog.last_event : null;
273
- const endpoint = obj(v.endpoint);
274
- const hints = obj(v.hints);
273
+ const endpoint = obj$1(v.endpoint);
274
+ const hints = obj$1(v.hints);
275
275
  const decisions = Array.isArray(hints.open_decisions) ? hints.open_decisions : [];
276
276
  return {
277
277
  id,
@@ -280,21 +280,21 @@ function parseTask(v) {
280
280
  mode: nonBlank(v.mode),
281
281
  yolo: nonBlank(v.yolo),
282
282
  branch: nonBlank(v.branch),
283
- project: str$5(v.project),
284
- worktree: { path: str$5(worktree.path), present: worktree.present === true },
285
- report: { path: str$5(report2.path), present: report2.present === true },
286
- lastEvent: last ? { state: str$5(last.state), note: str$5(last.note), ageSeconds: num$2(last.age_seconds) } : null,
283
+ project: str$6(v.project),
284
+ worktree: { path: str$6(worktree.path), present: worktree.present === true },
285
+ report: { path: str$6(report2.path), present: report2.present === true },
286
+ lastEvent: last ? { state: str$6(last.state), note: str$6(last.note), ageSeconds: num$2(last.age_seconds) } : null,
287
287
  current: parseCurrentState(v.current_state),
288
288
  endpoint: {
289
289
  exists: bool(endpoint.exists),
290
- freshness: str$5(endpoint.freshness),
290
+ freshness: str$6(endpoint.freshness),
291
291
  target: nonBlank(endpoint.target)
292
292
  },
293
- prUrl: str$5(obj(v.pr).url),
293
+ prUrl: str$6(obj$1(v.pr).url),
294
294
  openDecisions: decisions.filter(isObj$2).map((d) => ({
295
- key: str$5(d.key),
296
- verb: str$5(d.verb),
297
- summary: str$5(d.summary)
295
+ key: str$6(d.key),
296
+ verb: str$6(d.verb),
297
+ summary: str$6(d.summary)
298
298
  })),
299
299
  backlog: parseBacklogRecord(v.backlog)
300
300
  };
@@ -308,20 +308,20 @@ function parseFleetSnapshot(text2) {
308
308
  );
309
309
  }
310
310
  if (!Array.isArray(v.tasks)) throw new ContractError("fleet snapshot has no tasks[] array");
311
- const roots = obj(v.roots);
312
- const backlog = obj(v.backlog);
311
+ const roots = obj$1(v.roots);
312
+ const backlog = obj$1(v.backlog);
313
313
  const records2 = Array.isArray(backlog.records) ? backlog.records : [];
314
314
  return {
315
315
  schema: FLEET_SNAPSHOT_SCHEMA,
316
- generated: str$5(v.generated),
317
- fmHome: str$5(v.fm_home),
318
- roots: { fmRoot: str$5(roots.fm_root), data: str$5(roots.data), state: str$5(roots.state) },
316
+ generated: str$6(v.generated),
317
+ fmHome: str$6(v.fm_home),
318
+ roots: { fmRoot: str$6(roots.fm_root), data: str$6(roots.data), state: str$6(roots.state) },
319
319
  tasks: v.tasks.map(parseTask).filter((t) => t !== null),
320
320
  backlog: {
321
321
  present: backlog.present === true,
322
322
  records: records2.map(parseBacklogRecord).filter((r) => r !== null)
323
323
  },
324
- orphanInFlight: strings(obj(v.main_inventory).orphan_in_flight),
324
+ orphanInFlight: strings(obj$1(v.main_inventory).orphan_in_flight),
325
325
  secondMates: parseSecondMates(v.secondmate_current)
326
326
  };
327
327
  }
@@ -334,12 +334,12 @@ function withId(o, f) {
334
334
  }
335
335
  function parseSecondMate(v) {
336
336
  return withId(v, (id) => {
337
- const current = obj(v.current);
338
- const provenance2 = obj(v.provenance);
339
- const freshness = obj(v.freshness);
337
+ const current = obj$1(v.current);
338
+ const provenance2 = obj$1(v.provenance);
339
+ const freshness = obj$1(v.freshness);
340
340
  const parent = isObj$2(v.parent_event) ? v.parent_event : null;
341
341
  const counts = {};
342
- for (const [k, n] of Object.entries(obj(v.counts))) {
342
+ for (const [k, n] of Object.entries(obj$1(v.counts))) {
343
343
  const c = num$2(n);
344
344
  if (c !== null) counts[k] = c;
345
345
  }
@@ -410,7 +410,7 @@ function parseSecondMate(v) {
410
410
  landed: list$1(
411
411
  v.landed,
412
412
  (l) => withId(l, (lid) => {
413
- const completion = obj(l.completion);
413
+ const completion = obj$1(l.completion);
414
414
  return {
415
415
  id: lid,
416
416
  title: nonBlank(l.title),
@@ -424,7 +424,7 @@ function parseSecondMate(v) {
424
424
  endpoints: list$1(
425
425
  v.endpoints,
426
426
  (e) => withId(e, (eid) => {
427
- const ep = obj(e.endpoint);
427
+ const ep = obj$1(e.endpoint);
428
428
  return {
429
429
  id: eid,
430
430
  state: nonBlank(e.state),
@@ -456,20 +456,20 @@ function parsePrimaryReady(text2) {
456
456
  `readiness schema is ${JSON.stringify(v.schema ?? null)}, expected ${PRIMARY_READY_SCHEMA}`
457
457
  );
458
458
  }
459
- const lock = obj(v.lock);
460
- const consumer = obj(v.wake_consumer);
461
- const posture = obj(v.posture);
459
+ const lock = obj$1(v.lock);
460
+ const consumer = obj$1(v.wake_consumer);
461
+ const posture = obj$1(v.posture);
462
462
  const recv = v.can_receive;
463
463
  return {
464
464
  schema: PRIMARY_READY_SCHEMA,
465
- observedAt: str$5(v.observed_at),
466
- lock: { state: str$5(lock.state) ?? "unknown", liveHarness: bool(lock.live_harness) },
465
+ observedAt: str$6(v.observed_at),
466
+ lock: { state: str$6(lock.state) ?? "unknown", liveHarness: bool(lock.live_harness) },
467
467
  wakeConsumer: {
468
- state: str$5(consumer.state) ?? "unknown",
469
- reason: str$5(consumer.reason),
468
+ state: str$6(consumer.state) ?? "unknown",
469
+ reason: str$6(consumer.reason),
470
470
  beaconAgeSeconds: num$2(consumer.beacon_age_seconds)
471
471
  },
472
- posture: str$5(posture.state),
472
+ posture: str$6(posture.state),
473
473
  canReceive: recv === true ? true : recv === false ? false : "unknown"
474
474
  };
475
475
  }
@@ -501,7 +501,7 @@ function parseReply(v) {
501
501
  const noteId = nonBlank(v.id);
502
502
  const cursor = nonBlank(v.cursor);
503
503
  if (!noteId || !cursor) return null;
504
- return { noteId, at: str$5(v.at), body: str$5(v.body) ?? "", cursor };
504
+ return { noteId, at: str$6(v.at), body: str$6(v.body) ?? "", cursor };
505
505
  }
506
506
  function parseReceipt(v, acknowledged) {
507
507
  if (!isObj$2(v)) return null;
@@ -509,10 +509,10 @@ function parseReceipt(v, acknowledged) {
509
509
  if (!noteId) return null;
510
510
  return {
511
511
  noteId,
512
- at: str$5(v.at),
513
- source: str$5(v.source),
512
+ at: str$6(v.at),
513
+ source: str$6(v.source),
514
514
  requestId: nonBlank(v.request_id),
515
- body: str$5(v.body) ?? "",
515
+ body: str$6(v.body) ?? "",
516
516
  acknowledged: v.acknowledged === true || acknowledged,
517
517
  announced: bool(v.announced),
518
518
  reply: parseReply(v.reply)
@@ -532,12 +532,12 @@ function parseInboxReceipts(text2) {
532
532
  const omitted = Array.isArray(v.omitted) ? v.omitted.filter(isObj$2) : [];
533
533
  return {
534
534
  schema: INBOX_RECEIPTS_SCHEMA,
535
- generated: str$5(v.generated),
535
+ generated: str$6(v.generated),
536
536
  pending: v.pending.map((n) => parseReceipt(n, false)).filter((n) => n !== null),
537
537
  handled: v.handled.map((n) => parseReceipt(n, true)).filter((n) => n !== null),
538
538
  replies: v.replies.map(parseReply).filter((r) => r !== null),
539
- replyCursor: str$5(v.reply_cursor) ?? "",
540
- omitted: omitted.map((o) => ({ surface: str$5(o.surface) ?? "", reveal: str$5(o.reveal) }))
539
+ replyCursor: str$6(v.reply_cursor) ?? "",
540
+ omitted: omitted.map((o) => ({ surface: str$6(o.surface) ?? "", reveal: str$6(o.reveal) }))
541
541
  };
542
542
  }
543
543
  const ANSI$1 = /\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)|\u001b[@-_]/g;
@@ -1125,7 +1125,7 @@ function which(name2, envPath) {
1125
1125
  function shellLine(argv) {
1126
1126
  return argv.map((a) => /^[A-Za-z0-9_./=:@%+-]+$/.test(a) ? a : `'${a.replace(/'/g, `'\\''`)}'`).join(" ");
1127
1127
  }
1128
- const DROP = /* @__PURE__ */ new Set([
1128
+ const DROPPED_VARIABLES = [
1129
1129
  "TMUX",
1130
1130
  "TMUX_PANE",
1131
1131
  "FM_HOME",
@@ -1138,7 +1138,8 @@ const DROP = /* @__PURE__ */ new Set([
1138
1138
  "CLAUDE_ENV_FILE",
1139
1139
  "CODEX_THREAD_ID",
1140
1140
  "CODEX_INTERNAL_ORIGINATOR_OVERRIDE"
1141
- ]);
1141
+ ];
1142
+ const DROP = new Set(DROPPED_VARIABLES);
1142
1143
  function sessionEnv(env) {
1143
1144
  const out = {};
1144
1145
  for (const [k, v] of Object.entries(env)) {
@@ -1512,7 +1513,7 @@ function fields(p, where, o, allowed) {
1512
1513
  if (!allowed.includes(k)) p.add(where, `unknown field '${k}'`);
1513
1514
  }
1514
1515
  }
1515
- function str$4(p, where, v, opts = {}) {
1516
+ function str$5(p, where, v, opts = {}) {
1516
1517
  if (v === void 0 || v === null) {
1517
1518
  if (opts.required) p.add(where, "is required");
1518
1519
  return void 0;
@@ -1601,7 +1602,7 @@ function cond(p, where, v, depth = 0) {
1601
1602
  return c === void 0 ? void 0 : { not: c };
1602
1603
  }
1603
1604
  case "mode": {
1604
- const m = str$4(p, `${where}.mode`, inner, {
1605
+ const m = str$5(p, `${where}.mode`, inner, {
1605
1606
  required: true,
1606
1607
  max: 40,
1607
1608
  pattern: /^[A-Za-z][A-Za-z_ -]*$/,
@@ -1620,14 +1621,14 @@ function cond(p, where, v, depth = 0) {
1620
1621
  }
1621
1622
  function note(p, where, v) {
1622
1623
  if (v === void 0) return void 0;
1623
- if (typeof v === "string") return str$4(p, where, v, { max: 1e3 });
1624
+ if (typeof v === "string") return str$5(p, where, v, { max: 1e3 });
1624
1625
  if (!isObject(v)) {
1625
1626
  p.add(where, "must be text, or { when, text }");
1626
1627
  return void 0;
1627
1628
  }
1628
1629
  fields(p, where, v, ["when", "text"]);
1629
1630
  const when = cond(p, `${where}.when`, v.when);
1630
- const text2 = str$4(p, `${where}.text`, v.text, { required: true, max: 1e3 });
1631
+ const text2 = str$5(p, `${where}.text`, v.text, { required: true, max: 1e3 });
1631
1632
  return when !== void 0 && text2 !== void 0 ? { when, text: text2 } : void 0;
1632
1633
  }
1633
1634
  const COMMIT_VALUES = ["merge.commit", "pr.head"];
@@ -1638,18 +1639,18 @@ function check(p, where, v, opts) {
1638
1639
  }
1639
1640
  const before = p.list.length;
1640
1641
  const common = ["type", "label", "interval"];
1641
- const label2 = str$4(p, `${where}.label`, v.label, { max: 80 });
1642
+ const label2 = str$5(p, `${where}.label`, v.label, { max: 80 });
1642
1643
  const interval = duration(p, `${where}.interval`, v.interval, MIN_INTERVAL_MS, MAX_INTERVAL_MS);
1643
1644
  const base = {
1644
1645
  ...label2 !== void 0 ? { label: label2 } : {},
1645
1646
  ...interval !== void 0 ? { interval } : {}
1646
1647
  };
1647
- const repo = () => str$4(p, `${where}.repo`, v.repo, { pattern: REPO, what: "owner/name repository" });
1648
+ const repo = () => str$5(p, `${where}.repo`, v.repo, { pattern: REPO, what: "owner/name repository" });
1648
1649
  let spec;
1649
1650
  switch (v.type) {
1650
1651
  case "github.deployment": {
1651
1652
  fields(p, where, v, [...common, "environment", "ref", "repo"]);
1652
- const environment = str$4(p, `${where}.environment`, v.environment, {
1653
+ const environment = str$5(p, `${where}.environment`, v.environment, {
1653
1654
  required: true,
1654
1655
  max: 100
1655
1656
  });
@@ -1661,14 +1662,14 @@ function check(p, where, v, opts) {
1661
1662
  }
1662
1663
  case "github.workflow": {
1663
1664
  fields(p, where, v, [...common, "workflow", "ref", "event", "repo"]);
1664
- const workflow = str$4(p, `${where}.workflow`, v.workflow, {
1665
+ const workflow = str$5(p, `${where}.workflow`, v.workflow, {
1665
1666
  required: true,
1666
1667
  max: 100,
1667
1668
  pattern: /^[A-Za-z0-9._-]+$/,
1668
1669
  what: "workflow file name or id"
1669
1670
  });
1670
1671
  const ref = oneOf(p, `${where}.ref`, v.ref, COMMIT_VALUES);
1671
- const event = str$4(p, `${where}.event`, v.event, {
1672
+ const event = str$5(p, `${where}.event`, v.event, {
1672
1673
  max: 40,
1673
1674
  pattern: /^[a-z_]+$/,
1674
1675
  what: "event name"
@@ -1689,7 +1690,7 @@ function check(p, where, v, opts) {
1689
1690
  case "github.release": {
1690
1691
  fields(p, where, v, [...common, "contains", "tag_pattern", "repo"]);
1691
1692
  const contains = oneOf(p, `${where}.contains`, v.contains, COMMIT_VALUES);
1692
- const tag = str$4(p, `${where}.tag_pattern`, v.tag_pattern, {
1693
+ const tag = str$5(p, `${where}.tag_pattern`, v.tag_pattern, {
1693
1694
  max: 100,
1694
1695
  pattern: /^[A-Za-z0-9._*/-]+$/,
1695
1696
  what: "tag pattern (letters, digits, . _ - / and *)"
@@ -1707,13 +1708,13 @@ function check(p, where, v, opts) {
1707
1708
  }
1708
1709
  case "npm.published": {
1709
1710
  fields(p, where, v, [...common, "package", "version_from"]);
1710
- const pkg = str$4(p, `${where}.package`, v.package, {
1711
+ const pkg = str$5(p, `${where}.package`, v.package, {
1711
1712
  required: true,
1712
1713
  max: 214,
1713
1714
  pattern: NPM_PACKAGE,
1714
1715
  what: "npm package name"
1715
1716
  });
1716
- const from = str$4(p, `${where}.version_from`, v.version_from, {
1717
+ const from = str$5(p, `${where}.version_from`, v.version_from, {
1717
1718
  required: true,
1718
1719
  pattern: ID$3,
1719
1720
  what: "check id"
@@ -1723,7 +1724,7 @@ function check(p, where, v, opts) {
1723
1724
  }
1724
1725
  case "http": {
1725
1726
  fields(p, where, v, [...common, "url", "method", "expect", "headers_from_env"]);
1726
- const url = str$4(p, `${where}.url`, v.url, { required: true, max: 2e3 });
1727
+ const url = str$5(p, `${where}.url`, v.url, { required: true, max: 2e3 });
1727
1728
  if (url !== void 0) {
1728
1729
  let ok = false;
1729
1730
  try {
@@ -1747,7 +1748,7 @@ function check(p, where, v, opts) {
1747
1748
  p.add(`${where}.expect.status`, "must be an HTTP status code");
1748
1749
  } else expect.status = e.status;
1749
1750
  }
1750
- const ptr = str$4(p, `${where}.expect.json_pointer`, e.json_pointer, {
1751
+ const ptr = str$5(p, `${where}.expect.json_pointer`, e.json_pointer, {
1751
1752
  max: 200,
1752
1753
  pattern: /^(\/[^/]*)+$/,
1753
1754
  what: "JSON pointer"
@@ -1806,7 +1807,7 @@ function check(p, where, v, opts) {
1806
1807
  case "git.contains": {
1807
1808
  fields(p, where, v, [...common, "repo", "ref", "commit"]);
1808
1809
  const r = oneOf(p, `${where}.repo`, v.repo, ["firstmate-root", "project-clone"]);
1809
- const ref = str$4(p, `${where}.ref`, v.ref, { max: 200, pattern: GIT_REF, what: "git ref" });
1810
+ const ref = str$5(p, `${where}.ref`, v.ref, { max: 200, pattern: GIT_REF, what: "git ref" });
1810
1811
  const commit2 = oneOf(p, `${where}.commit`, v.commit, COMMIT_VALUES);
1811
1812
  if (r && commit2) spec = { ...base, type: v.type, repo: r, commit: commit2, ...ref ? { ref } : {} };
1812
1813
  break;
@@ -1836,7 +1837,7 @@ function check(p, where, v, opts) {
1836
1837
  } else if (!v.run[0].trim()) {
1837
1838
  p.add(`${where}.run`, "must start with a program name");
1838
1839
  } else run = [...v.run];
1839
- const cwd = str$4(p, `${where}.cwd`, v.cwd, { max: 200 });
1840
+ const cwd = str$5(p, `${where}.cwd`, v.cwd, { max: 200 });
1840
1841
  if (cwd !== void 0 && !isRelDir(cwd)) {
1841
1842
  p.add(`${where}.cwd`, `'${cwd}' is not a folder inside the project (relative, without ..)`);
1842
1843
  }
@@ -1915,7 +1916,7 @@ function stage(p, where, v) {
1915
1916
  return void 0;
1916
1917
  }
1917
1918
  fields(p, where, v, STAGE_FIELDS);
1918
- const id = str$4(p, `${where}.id`, v.id, {
1919
+ const id = str$5(p, `${where}.id`, v.id, {
1919
1920
  required: true,
1920
1921
  pattern: ID$3,
1921
1922
  what: "step id (lower-case letters, digits and -)"
@@ -1925,14 +1926,14 @@ function stage(p, where, v) {
1925
1926
  const set = (k, val) => {
1926
1927
  if (val !== void 0) s[k] = val;
1927
1928
  };
1928
- set("label", str$4(p, `${at}.label`, v.label, { max: 60 }));
1929
- set("short", str$4(p, `${at}.short`, v.short, { max: 20 }));
1930
- set("after", str$4(p, `${at}.after`, v.after, { pattern: ID$3, what: "step id" }));
1931
- set("column", str$4(p, `${at}.column`, v.column, { pattern: ID$3, what: "step id" }));
1929
+ set("label", str$5(p, `${at}.label`, v.label, { max: 60 }));
1930
+ set("short", str$5(p, `${at}.short`, v.short, { max: 20 }));
1931
+ set("after", str$5(p, `${at}.after`, v.after, { pattern: ID$3, what: "step id" }));
1932
+ set("column", str$5(p, `${at}.column`, v.column, { pattern: ID$3, what: "step id" }));
1932
1933
  if (v.reached_when !== void 0)
1933
1934
  set("reached_when", cond(p, `${at}.reached_when`, v.reached_when));
1934
1935
  if (v.skip_when !== void 0) set("skip_when", cond(p, `${at}.skip_when`, v.skip_when));
1935
- set("skip_note", str$4(p, `${at}.skip_note`, v.skip_note, { max: 300 }));
1936
+ set("skip_note", str$5(p, `${at}.skip_note`, v.skip_note, { max: 300 }));
1936
1937
  if (v.failed_when !== void 0) set("failed_when", cond(p, `${at}.failed_when`, v.failed_when));
1937
1938
  if (v.evidence !== void 0) {
1938
1939
  if (!Array.isArray(v.evidence) || v.evidence.some((e) => typeof e !== "string")) {
@@ -1943,7 +1944,7 @@ function stage(p, where, v) {
1943
1944
  }
1944
1945
  set(
1945
1946
  "primary_link",
1946
- str$4(p, `${at}.primary_link`, v.primary_link, {
1947
+ str$5(p, `${at}.primary_link`, v.primary_link, {
1947
1948
  pattern: /^[a-z][a-z0-9-]*\.url$/,
1948
1949
  what: "link (use <check>.url)"
1949
1950
  })
@@ -1969,7 +1970,7 @@ function validatePassage(doc, opts) {
1969
1970
  out.extends = oneOf(p, "extends", doc.extends ?? "ship", ["ship", "scout"]) ?? "ship";
1970
1971
  }
1971
1972
  if (doc.project !== void 0) {
1972
- const project = str$4(p, "project", doc.project, { max: 128 });
1973
+ const project = str$5(p, "project", doc.project, { max: 128 });
1973
1974
  if (project && opts.project && project !== opts.project) {
1974
1975
  p.add("project", `names '${project}', but this file is for '${opts.project}'`);
1975
1976
  } else if (project) out.project = project;
@@ -2011,7 +2012,7 @@ function validatePassage(doc, opts) {
2011
2012
  if (!isObject(doc.headline)) p.add("headline", "must be a mapping");
2012
2013
  else {
2013
2014
  fields(p, "headline", doc.headline, ["live"]);
2014
- const live = str$4(p, "headline.live", doc.headline.live, { pattern: ID$3, what: "step id" });
2015
+ const live = str$5(p, "headline.live", doc.headline.live, { pattern: ID$3, what: "step id" });
2015
2016
  out.headline = live ? { live } : {};
2016
2017
  }
2017
2018
  }
@@ -6097,7 +6098,7 @@ const MAX_SEEN_LINES = 1e4;
6097
6098
  const INITIAL_TAIL_BYTES = 4 * 1024 * 1024;
6098
6099
  const MAX_READ_BYTES$1 = 2 * 1024 * 1024;
6099
6100
  const NM_KEY = /^nm-([0-9A-Z]{26})-/;
6100
- const str$3 = (v) => typeof v === "string" ? v : null;
6101
+ const str$4 = (v) => typeof v === "string" ? v : null;
6101
6102
  class LedgerReader {
6102
6103
  constructor(file) {
6103
6104
  this.file = file;
@@ -6201,7 +6202,7 @@ class LedgerReader {
6201
6202
  } catch {
6202
6203
  return false;
6203
6204
  }
6204
- const id = str$3(r.task);
6205
+ const id = str$4(r.task);
6205
6206
  const ts = typeof r.ts === "number" ? r.ts : null;
6206
6207
  if (r.v !== 1 || !id || ts === null) return false;
6207
6208
  this.seen.add(trimmed);
@@ -6211,14 +6212,14 @@ class LedgerReader {
6211
6212
  case "task.dispatched":
6212
6213
  t.dispatched = {
6213
6214
  ts,
6214
- kind: str$3(r.kind),
6215
- project: str$3(r.project),
6216
- harness: str$3(r.harness),
6217
- model: str$3(r.model)
6215
+ kind: str$4(r.kind),
6216
+ project: str$4(r.project),
6217
+ harness: str$4(r.harness),
6218
+ model: str$4(r.model)
6218
6219
  };
6219
6220
  break;
6220
6221
  case "task.status": {
6221
- const s = { ts, state: str$3(r.state), key: str$3(r.key), text: (str$3(r.text) ?? "").trim() };
6222
+ const s = { ts, state: str$4(r.state), key: str$4(r.key), text: (str$4(r.text) ?? "").trim() };
6222
6223
  t.statuses.push(s);
6223
6224
  if (t.statuses.length > MAX_STATUSES_PER_TASK) t.statuses.shift();
6224
6225
  const note2 = previewNoteOf(s.text);
@@ -6229,12 +6230,12 @@ class LedgerReader {
6229
6230
  break;
6230
6231
  }
6231
6232
  case "task.pr_ready": {
6232
- const pr = str$3(r.pr);
6233
+ const pr = str$4(r.pr);
6233
6234
  if (pr) t.prReady = { ts, pr };
6234
6235
  break;
6235
6236
  }
6236
6237
  case "task.merged":
6237
- t.merged = { ts, via: str$3(r.via), pr: str$3(r.pr) };
6238
+ t.merged = { ts, via: str$4(r.via), pr: str$4(r.pr) };
6238
6239
  break;
6239
6240
  case "task.cleaned_up":
6240
6241
  t.cleanedUpAt = ts;
@@ -8813,10 +8814,10 @@ function plainLabel(id, label2) {
8813
8814
  for (const [re, l] of PLAIN) if (re.test(s)) return l;
8814
8815
  return label2 ? label2.charAt(0).toUpperCase() + label2.slice(1) : id;
8815
8816
  }
8816
- function parseAllowance(json) {
8817
+ function parseAllowance(json2) {
8817
8818
  let doc;
8818
8819
  try {
8819
- doc = JSON.parse(json);
8820
+ doc = JSON.parse(json2);
8820
8821
  } catch {
8821
8822
  return {
8822
8823
  state: "unavailable",
@@ -10346,17 +10347,17 @@ const MAX_TEXT = 2e3;
10346
10347
  function answeredFileFor(stateDir, homeDir) {
10347
10348
  return path.join(path.dirname(storeFileFor(stateDir, homeDir)), "answered-decisions.json");
10348
10349
  }
10349
- const str$2 = (v, max = MAX_TEXT) => typeof v === "string" && v ? v.slice(0, max) : null;
10350
+ const str$3 = (v, max = MAX_TEXT) => typeof v === "string" && v ? v.slice(0, max) : null;
10350
10351
  function recordFrom(v) {
10351
10352
  if (!v || typeof v !== "object") return null;
10352
10353
  const r = v;
10353
- const requestId = str$2(r.requestId, 200);
10354
- const cardId = str$2(r.cardId, 400);
10355
- const taskId = str$2(r.taskId, 200);
10356
- const key = str$2(r.key, 200);
10357
- const question = str$2(r.question);
10358
- const answeredAt = str$2(r.answeredAt, 40);
10359
- const label2 = str$2(r.label, 80);
10354
+ const requestId = str$3(r.requestId, 200);
10355
+ const cardId = str$3(r.cardId, 400);
10356
+ const taskId = str$3(r.taskId, 200);
10357
+ const key = str$3(r.key, 200);
10358
+ const question = str$3(r.question);
10359
+ const answeredAt = str$3(r.answeredAt, 40);
10360
+ const label2 = str$3(r.label, 80);
10360
10361
  const kind = KINDS$1.find((k) => k === r.kind);
10361
10362
  const choice = r.choice === "close" ? "close" : CHOICES.find((c) => c === r.choice);
10362
10363
  if (!requestId || !cardId || !taskId || !key || !question || !answeredAt || !label2 || !kind || !choice)
@@ -10365,16 +10366,16 @@ function recordFrom(v) {
10365
10366
  requestId,
10366
10367
  cardId,
10367
10368
  taskId,
10368
- taskTitle: str$2(r.taskTitle, 400) ?? taskId,
10369
- projectId: str$2(r.projectId, 200),
10369
+ taskTitle: str$3(r.taskTitle, 400) ?? taskId,
10370
+ projectId: str$3(r.projectId, 200),
10370
10371
  kind,
10371
10372
  key,
10372
10373
  question,
10373
- askedAt: str$2(r.askedAt, 40),
10374
+ askedAt: str$3(r.askedAt, 40),
10374
10375
  choice,
10375
10376
  label: label2,
10376
- picks: str$2(r.picks),
10377
- note: str$2(r.note),
10377
+ picks: str$3(r.picks),
10378
+ note: str$3(r.note),
10378
10379
  answeredAt
10379
10380
  };
10380
10381
  }
@@ -11222,18 +11223,18 @@ function checkResult(r, name2) {
11222
11223
  typeof a.reason === "string" ? a.reason : `The ${name2} plugin has nothing to show.`
11223
11224
  );
11224
11225
  }
11225
- let json;
11226
+ let json2;
11226
11227
  try {
11227
- json = JSON.stringify(a.value);
11228
+ json2 = JSON.stringify(a.value);
11228
11229
  } catch {
11229
- json = void 0;
11230
+ json2 = void 0;
11230
11231
  }
11231
- if (json === void 0 || json.length > MAX_VALUE_BYTES$1) {
11232
+ if (json2 === void 0 || json2.length > MAX_VALUE_BYTES$1) {
11232
11233
  return failed(`The ${name2} plugin returned data Wheelhouse cannot show.`);
11233
11234
  }
11234
11235
  return {
11235
11236
  available: true,
11236
- value: JSON.parse(json),
11237
+ value: JSON.parse(json2),
11237
11238
  source: typeof a.source === "string" ? a.source : `the ${name2} plugin`,
11238
11239
  observedAt: typeof a.observedAt === "string" ? a.observedAt : null
11239
11240
  };
@@ -14526,7 +14527,7 @@ class DiscordError extends Error {
14526
14527
  status;
14527
14528
  }
14528
14529
  const isObj$1 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
14529
- const str$1 = (v) => typeof v === "string" && v ? v : null;
14530
+ const str$2 = (v) => typeof v === "string" && v ? v : null;
14530
14531
  function sleep(ms, signal) {
14531
14532
  return new Promise((resolve) => {
14532
14533
  const t = setTimeout(done, ms);
@@ -14568,7 +14569,7 @@ async function call(transport, token, version2, method, route, what, body) {
14568
14569
  if (!res.ok) {
14569
14570
  let said = "";
14570
14571
  try {
14571
- said = str$1(JSON.parse(text2).message) ?? "";
14572
+ said = str$2(JSON.parse(text2).message) ?? "";
14572
14573
  } catch {
14573
14574
  }
14574
14575
  throw new DiscordError(
@@ -14639,7 +14640,7 @@ class DiscordAdapter {
14639
14640
  if (!this.gatewayUrl) {
14640
14641
  try {
14641
14642
  const g2 = await this.api("GET", "/gateway/bot", "look up its gateway");
14642
- this.gatewayUrl = str$1(g2?.url) ?? "wss://gateway.discord.gg";
14643
+ this.gatewayUrl = str$2(g2?.url) ?? "wss://gateway.discord.gg";
14643
14644
  } catch (e) {
14644
14645
  const status2 = e instanceof DiscordError ? e.status : 0;
14645
14646
  if (status2 === 401 || status2 === 403)
@@ -14723,7 +14724,7 @@ class DiscordAdapter {
14723
14724
  ready = true;
14724
14725
  this.state = { state: "connected", reason: null };
14725
14726
  }
14726
- this.dispatch(str$1(p.t), p.d, sink);
14727
+ this.dispatch(str$2(p.t), p.d, sink);
14727
14728
  break;
14728
14729
  }
14729
14730
  }
@@ -14745,11 +14746,11 @@ class DiscordAdapter {
14745
14746
  dispatch(t, d, sink) {
14746
14747
  if (!isObj$1(d)) return;
14747
14748
  if (t === "READY") {
14748
- this.sessionId = str$1(d.session_id);
14749
- this.resumeUrl = str$1(d.resume_gateway_url);
14749
+ this.sessionId = str$2(d.session_id);
14750
+ this.resumeUrl = str$2(d.resume_gateway_url);
14750
14751
  const u = isObj$1(d.user) ? d.user : {};
14751
- const id = str$1(u.id);
14752
- if (id) this.self = { id, name: str$1(u.global_name) ?? str$1(u.username) ?? id };
14752
+ const id = str$2(u.id);
14753
+ if (id) this.self = { id, name: str$2(u.global_name) ?? str$2(u.username) ?? id };
14753
14754
  return;
14754
14755
  }
14755
14756
  const e = t === "MESSAGE_CREATE" ? this.text(d) : t === "INTERACTION_CREATE" ? this.press(d) : null;
@@ -14761,48 +14762,48 @@ class DiscordAdapter {
14761
14762
  }
14762
14763
  text(d) {
14763
14764
  const author = isObj$1(d.author) ? d.author : null;
14764
- const from = str$1(author?.id);
14765
- const id = str$1(d.id);
14766
- const chat = str$1(d.channel_id);
14765
+ const from = str$2(author?.id);
14766
+ const id = str$2(d.id);
14767
+ const chat = str$2(d.channel_id);
14767
14768
  if (!author || !from || !id || !chat || author.bot === true || from === this.self?.id)
14768
14769
  return null;
14769
14770
  if (d.type !== void 0 && d.type !== 0 && d.type !== 19) return null;
14770
14771
  const ref = isObj$1(d.message_reference) ? d.message_reference : null;
14771
14772
  const forward = ref?.type === 1 || Array.isArray(d.message_snapshots) && d.message_snapshots.length > 0;
14772
14773
  const count = (v) => Array.isArray(v) ? v.length : 0;
14773
- const replied = ref && !forward ? str$1(ref.message_id) : null;
14774
+ const replied = ref && !forward ? str$2(ref.message_id) : null;
14774
14775
  return {
14775
14776
  kind: "text",
14776
14777
  id,
14777
14778
  from,
14778
- fromName: str$1(author.global_name) ?? str$1(author.username) ?? from,
14779
+ fromName: str$2(author.global_name) ?? str$2(author.username) ?? from,
14779
14780
  dm: !d.guild_id,
14780
14781
  chat,
14781
- text: forward ? "" : str$1(d.content) ?? "",
14782
- inReplyTo: replied ? { chat: str$1(ref?.channel_id) ?? chat, id: replied } : null,
14782
+ text: forward ? "" : str$2(d.content) ?? "",
14783
+ inReplyTo: replied ? { chat: str$2(ref?.channel_id) ?? chat, id: replied } : null,
14783
14784
  extras: forward || count(d.attachments) + count(d.sticker_items) + count(d.embeds) > 0
14784
14785
  };
14785
14786
  }
14786
14787
  press(d) {
14787
14788
  if (d.type !== 3 || !isObj$1(d.data)) return null;
14788
- const custom = str$1(d.data.custom_id);
14789
- const id = str$1(d.id);
14790
- const token = str$1(d.token);
14789
+ const custom = str$2(d.data.custom_id);
14790
+ const id = str$2(d.id);
14791
+ const token = str$2(d.token);
14791
14792
  const user = isObj$1(d.user) ? d.user : isObj$1(d.member) && isObj$1(d.member.user) ? d.member.user : null;
14792
- const from = str$1(user?.id);
14793
+ const from = str$2(user?.id);
14793
14794
  const message2 = isObj$1(d.message) ? d.message : null;
14794
- const chat = str$1(d.channel_id) ?? str$1(message2?.channel_id);
14795
+ const chat = str$2(d.channel_id) ?? str$2(message2?.channel_id);
14795
14796
  if (!custom?.startsWith("wh:") || !id || !token || !from || !chat) return null;
14796
- const mid = str$1(message2?.id);
14797
+ const mid = str$2(message2?.id);
14797
14798
  return {
14798
14799
  kind: "button",
14799
14800
  id,
14800
14801
  from,
14801
- fromName: str$1(user?.global_name) ?? str$1(user?.username) ?? from,
14802
+ fromName: str$2(user?.global_name) ?? str$2(user?.username) ?? from,
14802
14803
  dm: !d.guild_id,
14803
14804
  chat,
14804
14805
  token: custom.slice(3),
14805
- message: mid ? { chat: str$1(message2?.channel_id) ?? chat, id: mid } : null,
14806
+ message: mid ? { chat: str$2(message2?.channel_id) ?? chat, id: mid } : null,
14806
14807
  handle: `${id}:${token}`
14807
14808
  };
14808
14809
  }
@@ -14818,7 +14819,7 @@ class DiscordAdapter {
14818
14819
  recipient_id: user
14819
14820
  }
14820
14821
  );
14821
- const id = str$1(c?.id);
14822
+ const id = str$2(c?.id);
14822
14823
  if (!id) throw new DiscordError(0, "Discord did not open a direct message.");
14823
14824
  this.dms.set(user, id);
14824
14825
  return id;
@@ -14850,7 +14851,7 @@ class DiscordAdapter {
14850
14851
  } : {}
14851
14852
  }
14852
14853
  );
14853
- const id = str$1(sent?.id);
14854
+ const id = str$2(sent?.id);
14854
14855
  if (!id) throw new DiscordError(0, "Discord did not say which message it sent.");
14855
14856
  return { chat, id };
14856
14857
  }
@@ -15128,13 +15129,13 @@ function cleanToken(raw) {
15128
15129
  return /^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/.test(t) ? t : null;
15129
15130
  }
15130
15131
  const isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
15131
- const str = (v) => typeof v === "string" && v ? v : null;
15132
+ const str$1 = (v) => typeof v === "string" && v ? v : null;
15132
15133
  const KINDS = new Set(ALERT_KINDS.map((k) => k.kind));
15133
15134
  function parsePeer(v) {
15134
15135
  if (!isObj(v)) return null;
15135
- const id = str(v.id);
15136
+ const id = str$1(v.id);
15136
15137
  if (!id || !/^\d{1,32}$/.test(id)) return null;
15137
- return { id, name: str(v.name) ?? id, dm: str(v.dm), at: str(v.at) ?? (/* @__PURE__ */ new Date(0)).toISOString() };
15138
+ return { id, name: str$1(v.name) ?? id, dm: str$1(v.dm), at: str$1(v.at) ?? (/* @__PURE__ */ new Date(0)).toISOString() };
15138
15139
  }
15139
15140
  function parseChannel(v, fallback) {
15140
15141
  if (!isObj(v)) return fallback;
@@ -15854,7 +15855,7 @@ ${text2}`, taskId);
15854
15855
  function notice(text2) {
15855
15856
  return { text: text2, taskId: null, actions: [], links: [] };
15856
15857
  }
15857
- const RECORD_SCHEMA = "wheelhouse-gateway-record.v1";
15858
+ const RECORD_SCHEMA$1 = "wheelhouse-gateway-record.v1";
15858
15859
  const sameRef = (a, b) => !!a && !!b && a.chat === b.chat && a.id === b.id;
15859
15860
  class GatewayRecord {
15860
15861
  constructor(file, now) {
@@ -15879,7 +15880,7 @@ class GatewayRecord {
15879
15880
  if (text2 === null) return r;
15880
15881
  try {
15881
15882
  const parsed = JSON.parse(text2);
15882
- if (parsed.schema !== RECORD_SCHEMA) throw new Error("not a gateway record");
15883
+ if (parsed.schema !== RECORD_SCHEMA$1) throw new Error("not a gateway record");
15883
15884
  r.notes = Array.isArray(parsed.notes) ? parsed.notes : [];
15884
15885
  r.sent = Array.isArray(parsed.sent) ? parsed.sent : [];
15885
15886
  r.buttons = Array.isArray(parsed.buttons) ? parsed.buttons : [];
@@ -15946,7 +15947,7 @@ class GatewayRecord {
15946
15947
  const now = this.now();
15947
15948
  this.buttons = this.buttons.filter((b) => Date.parse(b.expiresAt) > now - 24 * 36e5).slice(-1e3);
15948
15949
  const data = {
15949
- schema: RECORD_SCHEMA,
15950
+ schema: RECORD_SCHEMA$1,
15950
15951
  notes: this.notes,
15951
15952
  sent: this.sent,
15952
15953
  buttons: this.buttons
@@ -17349,8 +17350,399 @@ async function interruptOpenCode(conn) {
17349
17350
  await boundSession(conn);
17350
17351
  await request(conn, `${sessionRoute(conn)}/interrupt`, {});
17351
17352
  }
17353
+ const DEFAULT_HERDR_SESSION = "wheelhouse";
17354
+ const HERDR_SESSION = /^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/;
17355
+ const HERDR_MIN_VERSION = "0.7.4";
17356
+ const FIRSTMATE_AGENT = "wh-firstmate";
17357
+ const RECORD_SCHEMA = "wheelhouse-herdr-session.v1";
17358
+ const HERDR_TIMEOUT_MS = 1e4;
17359
+ const SERVER_START_MS = 1e4;
17360
+ const SERVER_POLL_MS = 200;
17361
+ const PASTE_MAX_BYTES = 65 * 1024;
17362
+ const PASTE_START = "\x1B[200~";
17363
+ const PASTE_END = "\x1B[201~";
17364
+ const HERDR_AMBIENT = [
17365
+ "HERDR_ENV",
17366
+ "HERDR_SESSION",
17367
+ "HERDR_SOCKET_PATH",
17368
+ "HERDR_PANE_ID",
17369
+ "HERDR_TAB_ID",
17370
+ "HERDR_WORKSPACE_ID"
17371
+ ];
17372
+ const PANE_UNSET = [
17373
+ ...DROPPED_VARIABLES,
17374
+ "CLAUDE_CODE_CHILD_SESSION",
17375
+ "CLAUDE_CODE_SESSION_ID",
17376
+ "CLAUDE_CODE_SESSION_ATTENDED",
17377
+ "CLAUDE_CODE_EXECPATH",
17378
+ "CLAUDE_EFFORT"
17379
+ ];
17380
+ const PANE_UNSET_PREFIXES = ["CLAUDE_CODE_MESSAGING_"];
17381
+ const HERDR_KEYS = {
17382
+ Enter: "Enter",
17383
+ Escape: "Escape",
17384
+ Up: "Up",
17385
+ Down: "Down",
17386
+ "0": "0",
17387
+ "1": "1",
17388
+ "2": "2",
17389
+ "3": "3",
17390
+ "4": "4",
17391
+ "5": "5",
17392
+ "6": "6",
17393
+ "7": "7",
17394
+ "8": "8",
17395
+ "9": "9"
17396
+ };
17397
+ const spawnServer = (file, args, opts) => {
17398
+ const child = spawn(file, args, { ...opts, detached: true, stdio: "ignore" });
17399
+ child.on("error", () => {
17400
+ });
17401
+ child.unref();
17402
+ };
17403
+ function compareVersions(a, b) {
17404
+ const pa = a.split(".").map((n) => parseInt(n, 10) || 0);
17405
+ const pb = b.split(".").map((n) => parseInt(n, 10) || 0);
17406
+ for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
17407
+ const d = (pa[i] ?? 0) - (pb[i] ?? 0);
17408
+ if (d) return Math.sign(d);
17409
+ }
17410
+ return 0;
17411
+ }
17412
+ function parseHerdrVersion(text2) {
17413
+ return text2.match(/\bherdr\s+v?(\d+\.\d+\.\d+)\b/i)?.[1] ?? null;
17414
+ }
17415
+ async function checkHerdr(find, env, run = runBounded) {
17416
+ const file = find("herdr");
17417
+ if (!file) return { path: null, version: null, ok: false, problem: "Not installed" };
17418
+ const clean2 = { ...env };
17419
+ for (const name2 of HERDR_AMBIENT) delete clean2[name2];
17420
+ const r = await run(file, ["--version"], {
17421
+ env: clean2,
17422
+ timeoutMs: 5e3,
17423
+ maxOutputBytes: 8 * 1024
17424
+ });
17425
+ const version2 = r.ok ? parseHerdrVersion(`${r.stdout}
17426
+ ${r.stderr}`) : null;
17427
+ if (!version2) {
17428
+ return {
17429
+ path: file,
17430
+ version: null,
17431
+ ok: false,
17432
+ problem: `Its version could not be read; Wheelhouse needs herdr ${HERDR_MIN_VERSION} or newer`
17433
+ };
17434
+ }
17435
+ if (compareVersions(version2, HERDR_MIN_VERSION) < 0) {
17436
+ return {
17437
+ path: file,
17438
+ version: version2,
17439
+ ok: false,
17440
+ problem: `herdr ${version2} installed; Wheelhouse needs ${HERDR_MIN_VERSION} or newer`
17441
+ };
17442
+ }
17443
+ return { path: file, version: version2, ok: true, problem: null };
17444
+ }
17445
+ function herdrError(r) {
17446
+ if (r.ok) return "";
17447
+ const text2 = r.stderr.trim() || r.stdout.trim();
17448
+ try {
17449
+ const parsed = JSON.parse(text2);
17450
+ const message2 = parsed.error?.message ?? parsed.message;
17451
+ if (typeof message2 === "string" && message2) return message2;
17452
+ } catch {
17453
+ }
17454
+ return text2 || r.message;
17455
+ }
17456
+ function herdrCode(r) {
17457
+ if (r.ok) return null;
17458
+ try {
17459
+ const parsed = JSON.parse(r.stderr.trim());
17460
+ const code = parsed.error?.code ?? parsed.code;
17461
+ return typeof code === "string" ? code : null;
17462
+ } catch {
17463
+ return null;
17464
+ }
17465
+ }
17466
+ function json(text2) {
17467
+ try {
17468
+ const v = JSON.parse(text2);
17469
+ return v && typeof v === "object" ? v : null;
17470
+ } catch {
17471
+ return null;
17472
+ }
17473
+ }
17474
+ const obj = (v) => v && typeof v === "object" ? v : {};
17475
+ const str = (v) => typeof v === "string" && v ? v : null;
17476
+ function parseStatus(stdout) {
17477
+ const all = json(stdout);
17478
+ if (!all) return null;
17479
+ const client = obj(all.client);
17480
+ const server = obj(all.server);
17481
+ if (typeof server.running !== "boolean") return null;
17482
+ return {
17483
+ clientVersion: str(client.version),
17484
+ clientProtocol: client.protocol,
17485
+ running: server.running,
17486
+ serverVersion: str(server.version),
17487
+ serverProtocol: server.protocol,
17488
+ compatible: server.compatible
17489
+ };
17490
+ }
17491
+ function parseRecord(text2) {
17492
+ const r = json(text2);
17493
+ if (!r || r.schema !== RECORD_SCHEMA) return null;
17494
+ const env = obj(r.env);
17495
+ if (!str(r.session) || !str(r.paneId) || !str(r.terminalId)) return null;
17496
+ if (!Object.values(env).every((v) => typeof v === "string")) return null;
17497
+ return {
17498
+ schema: RECORD_SCHEMA,
17499
+ session: r.session,
17500
+ paneId: r.paneId,
17501
+ terminalId: r.terminalId,
17502
+ env
17503
+ };
17504
+ }
17505
+ function paneArgv(shBinary, spec) {
17506
+ const unset = PANE_UNSET.filter((name2) => !(name2 in spec.env));
17507
+ const families = PANE_UNSET_PREFIXES.map((p) => `${p}*`).join("|");
17508
+ const script = [
17509
+ `unset ${unset.join(" ")}`,
17510
+ `for n in $(env | while IFS== read -r n _; do case "$n" in *[!A-Za-z0-9_]*) ;; ${families}) echo "$n" ;; esac; done); do unset "$n"; done`,
17511
+ 'exec "$@"'
17512
+ ].join("\n");
17513
+ return [shBinary, "-c", script, "sh", ...spec.argv];
17514
+ }
17515
+ class HerdrBackend {
17516
+ label = "herdr";
17517
+ session;
17518
+ recordFile;
17519
+ env;
17520
+ find;
17521
+ run;
17522
+ spawnServer;
17523
+ sleep;
17524
+ /** The record of the pane, while running() last found its terminal live. */
17525
+ live = null;
17526
+ /** Why running() last could not say, for the page. */
17527
+ lastProblem = null;
17528
+ constructor(opts) {
17529
+ this.session = opts.session || DEFAULT_HERDR_SESSION;
17530
+ this.recordFile = opts.recordFile;
17531
+ const env = { ...opts.env };
17532
+ for (const name2 of HERDR_AMBIENT) delete env[name2];
17533
+ this.env = env;
17534
+ this.find = opts.find;
17535
+ this.run = opts.run ?? runBounded;
17536
+ this.spawnServer = opts.spawnServer ?? spawnServer;
17537
+ this.sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
17538
+ }
17539
+ unavailable() {
17540
+ if (!HERDR_SESSION.test(this.session)) {
17541
+ return `The herdr session name ${JSON.stringify(this.session)} is not valid; use letters, digits, '_' or '-'.`;
17542
+ }
17543
+ if (!this.find("herdr")) {
17544
+ return `herdr is not installed or not on PATH. Install herdr ${HERDR_MIN_VERSION} or newer and restart Wheelhouse.`;
17545
+ }
17546
+ return null;
17547
+ }
17548
+ problem() {
17549
+ return this.lastProblem;
17550
+ }
17551
+ /**
17552
+ * Run herdr on Wheelhouse's session only: `--session` goes after the
17553
+ * subcommand's own arguments and before any `--`, so it is always read as
17554
+ * herdr's option and never as part of a command or a message.
17555
+ */
17556
+ herdr(args, extra = {}) {
17557
+ const herdr = this.find("herdr");
17558
+ if (!herdr) return Promise.reject(new Error("herdr is missing"));
17559
+ const dash = args.indexOf("--");
17560
+ const full = dash < 0 ? [...args, "--session", this.session] : [...args.slice(0, dash), "--session", this.session, ...args.slice(dash)];
17561
+ return this.run(herdr, full, {
17562
+ env: this.env,
17563
+ timeoutMs: HERDR_TIMEOUT_MS,
17564
+ maxOutputBytes: 256 * 1024,
17565
+ ...extra
17566
+ });
17567
+ }
17568
+ /** herdr's status for the session, or a sentence saying why it cannot be used. */
17569
+ async status() {
17570
+ const r = await this.herdr(["status", "--json"]);
17571
+ const status2 = r.ok ? parseStatus(r.stdout) : null;
17572
+ if (!status2) {
17573
+ return `herdr could not report its status: ${r.ok ? "it gave an answer Wheelhouse does not understand" : herdrError(r)}. Wheelhouse needs herdr ${HERDR_MIN_VERSION} or newer.`;
17574
+ }
17575
+ if (!status2.clientVersion || compareVersions(status2.clientVersion, HERDR_MIN_VERSION) < 0) {
17576
+ return `herdr ${status2.clientVersion ?? "(unknown version)"} is older than Wheelhouse supports. Update herdr to ${HERDR_MIN_VERSION} or newer.`;
17577
+ }
17578
+ if (status2.running && status2.compatible !== true) {
17579
+ return `The herdr server for session "${this.session}" (herdr ${status2.serverVersion ?? "unknown"}, protocol ${String(status2.serverProtocol)}) does not match this herdr (${status2.clientVersion}, protocol ${String(status2.clientProtocol)}). Restart that herdr session yourself; Wheelhouse never restarts it.`;
17580
+ }
17581
+ return status2;
17582
+ }
17583
+ async readRecord() {
17584
+ try {
17585
+ const record = parseRecord(await readFile(this.recordFile, "utf8"));
17586
+ return record && record.session === this.session ? record : null;
17587
+ } catch {
17588
+ return null;
17589
+ }
17590
+ }
17591
+ async writeRecord(record) {
17592
+ const tmp = `${this.recordFile}.${process.pid}.tmp`;
17593
+ await writeFile(tmp, JSON.stringify(record), { mode: 384 });
17594
+ await rename(tmp, this.recordFile);
17595
+ }
17596
+ /** The pane to type into: the one running() found live, else the recorded one. */
17597
+ async pane() {
17598
+ return (this.live ?? await this.readRecord())?.paneId ?? null;
17599
+ }
17600
+ async running() {
17601
+ this.live = null;
17602
+ this.lastProblem = null;
17603
+ if (this.unavailable()) return null;
17604
+ const status2 = await this.status();
17605
+ if (typeof status2 === "string") {
17606
+ this.lastProblem = status2;
17607
+ return null;
17608
+ }
17609
+ if (!status2.running) return false;
17610
+ const record = await this.readRecord();
17611
+ if (!record) return false;
17612
+ const r = await this.herdr(["pane", "get", record.paneId]);
17613
+ if (!r.ok) {
17614
+ if (herdrCode(r) === "pane_not_found") return false;
17615
+ this.lastProblem = `herdr could not report Firstmate's pane: ${herdrError(r)}`;
17616
+ return null;
17617
+ }
17618
+ const pane = obj(obj(json(r.stdout)?.result).pane);
17619
+ const terminal = str(pane.terminal_id);
17620
+ if (!terminal) {
17621
+ this.lastProblem = "herdr gave an answer about Firstmate's pane that Wheelhouse does not understand.";
17622
+ return null;
17623
+ }
17624
+ if (terminal !== record.terminalId) return false;
17625
+ this.live = record;
17626
+ return true;
17627
+ }
17628
+ /** Start the session's herdr server when it is not running, and wait for it to answer. */
17629
+ async serve(cwd) {
17630
+ let status2 = await this.status();
17631
+ if (typeof status2 === "string") return status2;
17632
+ if (status2.running) return null;
17633
+ try {
17634
+ this.spawnServer(this.find("herdr"), ["server", "--session", this.session], {
17635
+ cwd,
17636
+ env: this.env
17637
+ });
17638
+ } catch (e) {
17639
+ return `herdr could not start session "${this.session}": ${e.message}`;
17640
+ }
17641
+ for (let waited2 = 0; waited2 < SERVER_START_MS; waited2 += SERVER_POLL_MS) {
17642
+ await this.sleep(SERVER_POLL_MS);
17643
+ status2 = await this.status();
17644
+ if (typeof status2 === "string") return status2;
17645
+ if (status2.running) return null;
17646
+ }
17647
+ return `herdr session "${this.session}" did not start within ${SERVER_START_MS / 1e3} seconds.`;
17648
+ }
17649
+ async start(spec) {
17650
+ this.live = null;
17651
+ const sh = this.find("sh");
17652
+ if (!sh) return { ok: false, error: "herdr could not start Firstmate: `sh` is not on PATH." };
17653
+ const served = await this.serve(spec.cwd);
17654
+ if (served) return { ok: false, error: served };
17655
+ const r = await this.herdr([
17656
+ "agent",
17657
+ "start",
17658
+ `${FIRSTMATE_AGENT}-${randomBytes(4).toString("hex")}`,
17659
+ "--cwd",
17660
+ spec.cwd,
17661
+ ...Object.entries(spec.env).flatMap(([k, v]) => ["--env", `${k}=${v}`]),
17662
+ "--no-focus",
17663
+ "--",
17664
+ ...paneArgv(sh, spec)
17665
+ ]);
17666
+ if (!r.ok) return { ok: false, error: `herdr could not start Firstmate: ${herdrError(r)}` };
17667
+ const agent = obj(obj(json(r.stdout)?.result).agent);
17668
+ const paneId = str(agent.pane_id);
17669
+ const terminalId = str(agent.terminal_id);
17670
+ if (!paneId || !terminalId) {
17671
+ return {
17672
+ ok: false,
17673
+ error: `herdr started Firstmate but did not say which pane it is in. Close it in herdr session "${this.session}" before starting again.`
17674
+ };
17675
+ }
17676
+ const record = {
17677
+ schema: RECORD_SCHEMA,
17678
+ session: this.session,
17679
+ paneId,
17680
+ terminalId,
17681
+ env: { ...spec.env }
17682
+ };
17683
+ try {
17684
+ await this.writeRecord(record);
17685
+ } catch (e) {
17686
+ return {
17687
+ ok: false,
17688
+ error: `herdr started Firstmate in pane ${paneId}, but Wheelhouse could not record it: ${e.message}`
17689
+ };
17690
+ }
17691
+ this.live = record;
17692
+ await this.herdr([
17693
+ "terminal",
17694
+ "session",
17695
+ "control",
17696
+ terminalId,
17697
+ "--cols",
17698
+ "160",
17699
+ "--rows",
17700
+ "48"
17701
+ ]);
17702
+ return { ok: true };
17703
+ }
17704
+ async variable(name2) {
17705
+ return this.live ? this.live.env[name2] ?? "" : null;
17706
+ }
17707
+ async screen() {
17708
+ const pane = await this.pane();
17709
+ if (!pane) return null;
17710
+ const r = await this.herdr(["pane", "read", pane, "--source", "visible"]);
17711
+ return r.ok ? r.stdout : null;
17712
+ }
17713
+ async paste(text2) {
17714
+ const pane = await this.pane();
17715
+ if (!pane) return { ok: false, error: "herdr could not take the message: no Firstmate pane." };
17716
+ let stripped = text2;
17717
+ while (stripped.includes(PASTE_END)) stripped = stripped.split(PASTE_END).join("");
17718
+ const body = `${PASTE_START}${stripped}${PASTE_END}`;
17719
+ if (Buffer.byteLength(body) > PASTE_MAX_BYTES) {
17720
+ return { ok: false, error: "herdr could not take the message: it is too long." };
17721
+ }
17722
+ const r = await this.herdr(["pane", "send-text", pane, body]);
17723
+ if (!r.ok) return { ok: false, error: `herdr could not take the message: ${herdrError(r)}` };
17724
+ return { ok: true };
17725
+ }
17726
+ async key(key) {
17727
+ const pane = await this.pane();
17728
+ if (!pane) return { ok: false, error: "herdr could not send a key: no Firstmate pane." };
17729
+ const r = await this.herdr(["pane", "send-keys", pane, HERDR_KEYS[key]]);
17730
+ if (!r.ok) return { ok: false, error: `herdr could not send a key: ${herdrError(r)}` };
17731
+ return { ok: true };
17732
+ }
17733
+ attach() {
17734
+ return {
17735
+ argv: [this.find("herdr"), "session", "attach", this.session],
17736
+ env: { ...this.env, TERM: "xterm-256color" }
17737
+ };
17738
+ }
17739
+ attachHint() {
17740
+ return shellLine(["herdr", "session", "attach", this.session]);
17741
+ }
17742
+ }
17352
17743
  const INPUT_MAX_BYTES = 64 * 1024;
17353
17744
  const HOOK_RECORD = path.join("firstmate", "session-start.json");
17745
+ const HERDR_RECORD = path.join("firstmate", "herdr-session.json");
17354
17746
  const PASTE_SETTLE_MS = 400;
17355
17747
  const KEY_GAP_MS = 120;
17356
17748
  const DISMISS_MAX = 5;
@@ -17456,6 +17848,8 @@ class FirstmateSession {
17456
17848
  env;
17457
17849
  find;
17458
17850
  trustStore;
17851
+ /** Why the backend choice could not be used (the runtime fell back to tmux), or null. */
17852
+ backendProblem;
17459
17853
  sleep;
17460
17854
  starting = null;
17461
17855
  /** One input at a time, in order, so two messages never interleave in the paste buffer. */
@@ -17471,12 +17865,26 @@ class FirstmateSession {
17471
17865
  this.skipPermissions = this.harness === "claude" && (opts.skipPermissions ?? true);
17472
17866
  this.env = sessionEnv(opts.env ?? process.env);
17473
17867
  this.find = opts.find ?? ((name2) => which(name2, this.env.PATH));
17474
- this.backend = opts.backend ?? new TmuxBackend({ socket: opts.tmuxSocket, env: this.env, find: this.find, run: opts.run });
17868
+ this.backend = opts.backend ?? (opts.sessionBackend === "herdr" ? new HerdrBackend({
17869
+ session: opts.herdrSession,
17870
+ recordFile: path.join(this.stateDir, HERDR_RECORD),
17871
+ env: this.env,
17872
+ find: this.find,
17873
+ run: opts.run,
17874
+ sleep: opts.sleep
17875
+ }) : new TmuxBackend({
17876
+ socket: opts.tmuxSocket,
17877
+ env: this.env,
17878
+ find: this.find,
17879
+ run: opts.run
17880
+ }));
17475
17881
  this.trustStore = opts.trustStore === void 0 ? claudeStore(this.env) : opts.trustStore;
17882
+ this.backendProblem = opts.backendProblem ?? null;
17476
17883
  this.sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
17477
17884
  }
17478
17885
  /** Why Wheelhouse cannot start or talk to a session here, or null. */
17479
17886
  unavailable(requireHarness = true) {
17887
+ if (this.backendProblem) return this.backendProblem;
17480
17888
  const backend = this.backend.unavailable();
17481
17889
  if (backend) return backend;
17482
17890
  if (requireHarness && !this.find(this.harness)) {
@@ -17489,7 +17897,7 @@ class FirstmateSession {
17489
17897
  }
17490
17898
  /** The backend could not say whether the session runs. */
17491
17899
  get cannotAsk() {
17492
- return `Wheelhouse could not ask ${this.backend.label} about the session.`;
17900
+ return this.backend.problem?.() ?? `Wheelhouse could not ask ${this.backend.label} about the session.`;
17493
17901
  }
17494
17902
  /**
17495
17903
  * Whether the backend's Firstmate session is running; null when the backend
@@ -17895,6 +18303,94 @@ class FirstmateSession {
17895
18303
  return { ok: true, target: { ...this.backend.attach(), cwd: this.firstmateDir } };
17896
18304
  };
17897
18305
  }
18306
+ const SESSION_BACKENDS = ["tmux", "herdr"];
18307
+ const SESSION_BACKEND_FILE = "session-backend.json";
18308
+ function parseSessionBackend(value) {
18309
+ const backend = SESSION_BACKENDS.find((name2) => name2 === value);
18310
+ if (!backend) {
18311
+ throw new Error(
18312
+ `Unknown session backend ${JSON.stringify(value)}. Choose tmux, or herdr (experimental).`
18313
+ );
18314
+ }
18315
+ return backend;
18316
+ }
18317
+ const savedBackendFile = (configDir) => path.join(configDir, SESSION_BACKEND_FILE);
18318
+ function firstmateBackend(homeDir) {
18319
+ if (!homeDir) return null;
18320
+ let text2;
18321
+ try {
18322
+ text2 = readFileSync(path.join(homeDir, "config", "backend"), "utf8");
18323
+ } catch {
18324
+ return null;
18325
+ }
18326
+ for (const line of text2.split("\n")) {
18327
+ const value = line.replace(/\s+/g, "");
18328
+ if (value) return value;
18329
+ }
18330
+ return null;
18331
+ }
18332
+ function readSavedBackend(configDir) {
18333
+ const file = savedBackendFile(configDir);
18334
+ let text2;
18335
+ try {
18336
+ text2 = readFileSync(file, "utf8");
18337
+ } catch (e) {
18338
+ if (e.code === "ENOENT") return { ok: true, backend: null };
18339
+ return { ok: false, error: `Cannot read ${file}. Check its permissions.` };
18340
+ }
18341
+ try {
18342
+ const value = JSON.parse(text2);
18343
+ const backend = value && typeof value === "object" && !Array.isArray(value) ? value.backend : void 0;
18344
+ if (typeof backend !== "string") throw new Error("no backend");
18345
+ return { ok: true, backend: parseSessionBackend(backend) };
18346
+ } catch {
18347
+ return {
18348
+ ok: false,
18349
+ error: `The saved session backend in ${file} is not one Wheelhouse knows. Remove the file, or start Wheelhouse with --session-backend.`
18350
+ };
18351
+ }
18352
+ }
18353
+ function writeSavedBackend(configDir, backend) {
18354
+ const file = savedBackendFile(configDir);
18355
+ if (backend === null) {
18356
+ rmSync(file, { force: true });
18357
+ return;
18358
+ }
18359
+ mkdirSync(configDir, { recursive: true });
18360
+ const tmp = `${file}.${process.pid}.tmp`;
18361
+ writeFileSync(tmp, `${JSON.stringify({ backend })}
18362
+ `, { mode: 420 });
18363
+ renameSync(tmp, file);
18364
+ }
18365
+ function backendMismatch(backend, firstmate) {
18366
+ if (firstmate === null || backend === "herdr" === (firstmate === "herdr")) return null;
18367
+ return `Wheelhouse runs the Firstmate session in ${backend}, but Firstmate's config/backend is ${firstmate}, so its crew start in ${firstmate}, not beside it in ${backend}. Set both to the same backend to keep them together.`;
18368
+ }
18369
+ function resolveSessionBackend(opts) {
18370
+ const firstmate = firstmateBackend(opts.homeDir);
18371
+ const herdrSession = opts.env.WHEELHOUSE_HERDR_SESSION || null;
18372
+ const choice = (backend, source) => ({
18373
+ backend,
18374
+ source,
18375
+ firstmate,
18376
+ herdrSession,
18377
+ warning: backendMismatch(backend, firstmate),
18378
+ error: null
18379
+ });
18380
+ const requested = opts.env.WHEELHOUSE_SESSION_BACKEND;
18381
+ if (requested) {
18382
+ try {
18383
+ return choice(parseSessionBackend(requested), "env");
18384
+ } catch (e) {
18385
+ return { ...choice("tmux", "env"), warning: null, error: e.message };
18386
+ }
18387
+ }
18388
+ const saved = readSavedBackend(opts.configDir);
18389
+ if (!saved.ok) return { ...choice("tmux", "saved"), warning: null, error: saved.error };
18390
+ if (saved.backend) return choice(saved.backend, "saved");
18391
+ if (firstmate !== null) return choice(firstmate === "herdr" ? "herdr" : "tmux", "firstmate");
18392
+ return choice("tmux", "default");
18393
+ }
17898
18394
  const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
17899
18395
  const RECEIPT_BYTES = 64 * 1024;
17900
18396
  const META_BYTES = 1024 * 1024;
@@ -18579,13 +19075,21 @@ async function create(env, opts = {}) {
18579
19075
  () => !!collector.getFleet().collectedAt
18580
19076
  );
18581
19077
  const services = serviceStateOk ? new ServiceManager({ logDir: path.join(serviceState, "services"), env }) : null;
19078
+ const session = resolveSessionBackend({
19079
+ env,
19080
+ configDir: defaultConfigDir(env),
19081
+ homeDir: install.homeDir
19082
+ });
18582
19083
  const firstmate = new FirstmateSession({
18583
19084
  firstmateDir: install.firstmateDir,
18584
19085
  homeDir: install.homeDir,
18585
19086
  stateDir: defaultStateDir(env),
18586
19087
  lock: () => lockState(adapter),
18587
19088
  skipPermissions: env.WHEELHOUSE_SKIP_PERMISSIONS !== "0",
19089
+ sessionBackend: session.backend,
19090
+ backendProblem: session.error,
18588
19091
  tmuxSocket: env.WHEELHOUSE_TMUX_SOCKET || null,
19092
+ herdrSession: session.herdrSession,
18589
19093
  env
18590
19094
  });
18591
19095
  const chat = new ChatFeed({
@@ -18608,16 +19112,16 @@ async function create(env, opts = {}) {
18608
19112
  state
18609
19113
  ) : Promise.resolve(null),
18610
19114
  decode: (raw, harness) => harness === "codex" ? codexRecords(raw) : harness === "claude" && raw !== null && typeof raw === "object" && !Array.isArray(raw) ? [raw] : [],
18611
- snapshot: async (session) => {
18612
- if (session.state !== "ours") return null;
18613
- if (session.harness === "pi")
19115
+ snapshot: async (session2) => {
19116
+ if (session2.state !== "ours") return null;
19117
+ if (session2.harness === "pi")
18614
19118
  return piSnapshot({
18615
19119
  firstmateDir: install.firstmateDir,
18616
19120
  hookFile: firstmate.hookFile,
18617
19121
  sessionNonce: firstmate.sessionNonce,
18618
19122
  agentDir: env.PI_CODING_AGENT_DIR || path.join(env.HOME || homedir(), ".pi", "agent")
18619
19123
  });
18620
- if (session.harness === "opencode") {
19124
+ if (session2.harness === "opencode") {
18621
19125
  if (!firstmate.openCodeConnection)
18622
19126
  throw new OpenCodeError("Restart the OpenCode primary from Wheelhouse to enable chat.");
18623
19127
  return openCodeSnapshot(firstmate.openCodeConnection);
@@ -19293,5 +19797,5 @@ const runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19293
19797
  upgradeRuntime
19294
19798
  }, Symbol.toStringTag, { value: "Module" }));
19295
19799
 
19296
- export { checkCompatibility as $, currentPlugins as A, currentPluginPage as B, watchSettingsError as C, changePluginConfig as D, runBounded as E, which as F, GATEWAY_CHANNELS as G, pluginIconFile as H, INPUT_MAX_BYTES as I, pluginUiFile as J, previewProber as K, LOOPBACK_HOST as L, MAX_CHAT_CALLS as M, MAX_FILE_BYTES$1 as N, PEEK_DEFAULT_LINES as O, PROJECT_ID as P, pluginService as Q, REQUEST_ID$1 as R, refusesSetup as S, findFirstmateDir as T, looksLikeFirstmate as U, SETUP_SUGGESTIONS as V, WATCH_PLUGIN as W, writeRemembered as X, reconnectRuntime as Y, setupWorkDir as Z, setupTerminals as _, sessionToken as a, bundledPluginsDir as a0, currentSlots as a1, GAPS as a2, WORKTREE_GONE as a3, PEEK_MAX_LINES as a4, parseChange as a5, MAX_VALUE_BYTES as a6, currentDecisions as a7, readDoc as a8, currentTime as a9, runtime as aa, currentHostedPreviews as b, currentPullRequestTabs as c, currentAddressRewrites as d, currentInbox as e, currentHeadroom as f, getRuntime as g, currentHealth as h, isMutating as i, currentFleet as j, currentRailInsights as k, loadSlots as l, currentPreviewPorts as m, currentMessages as n, serverInstance as o, unconfiguredHealth as p, currentFileRoots as q, refuseMutation as r, servedOrigin as s, readAsset as t, unconfiguredFleet as u, unavailableFirstmate as v, parseMateTaskId as w, validateSend as x, isReactionId as y, currentGateway as z };
19297
- //# sourceMappingURL=runtime.js-ja9fpm3a.js.map
19800
+ export { DEFAULT_HERDR_SESSION as $, currentPlugins as A, currentPluginPage as B, watchSettingsError as C, changePluginConfig as D, runBounded as E, which as F, GATEWAY_CHANNELS as G, pluginIconFile as H, INPUT_MAX_BYTES as I, pluginUiFile as J, previewProber as K, LOOPBACK_HOST as L, MAX_CHAT_CALLS as M, MAX_FILE_BYTES$1 as N, PEEK_DEFAULT_LINES as O, PROJECT_ID as P, pluginService as Q, REQUEST_ID$1 as R, refusesSetup as S, checkHerdr as T, HERDR_MIN_VERSION as U, findFirstmateDir as V, WATCH_PLUGIN as W, looksLikeFirstmate as X, SETUP_SUGGESTIONS as Y, resolveSessionBackend as Z, readSavedBackend as _, sessionToken as a, writeSavedBackend as a0, writeRemembered as a1, reconnectRuntime as a2, setupWorkDir as a3, setupTerminals as a4, checkCompatibility as a5, bundledPluginsDir as a6, currentSlots as a7, GAPS as a8, WORKTREE_GONE as a9, PEEK_MAX_LINES as aa, parseChange as ab, MAX_VALUE_BYTES as ac, currentDecisions as ad, readDoc as ae, currentTime as af, runtime as ag, currentHostedPreviews as b, currentPullRequestTabs as c, currentAddressRewrites as d, currentInbox as e, currentHeadroom as f, getRuntime as g, currentHealth as h, isMutating as i, currentFleet as j, currentRailInsights as k, loadSlots as l, currentPreviewPorts as m, currentMessages as n, serverInstance as o, unconfiguredHealth as p, currentFileRoots as q, refuseMutation as r, servedOrigin as s, readAsset as t, unconfiguredFleet as u, unavailableFirstmate as v, parseMateTaskId as w, validateSend as x, isReactionId as y, currentGateway as z };
19801
+ //# sourceMappingURL=runtime.js-COzWLifC.js.map