@chrisjowen/wheelhouse 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/{bOtONP_M.js → A55xgzkD.js} +1 -1
- package/build/client/_app/immutable/chunks/A55xgzkD.js.br +0 -0
- package/build/client/_app/immutable/chunks/A55xgzkD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D69HGG2e.js → BBJBkIrw.js} +1 -1
- package/build/client/_app/immutable/chunks/BBJBkIrw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBJBkIrw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BrlWJk4r.js → BFhVmACN.js} +1 -1
- package/build/client/_app/immutable/chunks/BFhVmACN.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFhVmACN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C6B0JAFe.js → BdTUpAzj.js} +1 -1
- package/build/client/_app/immutable/chunks/BdTUpAzj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdTUpAzj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bw22EWRR.js → Blcu9fuE.js} +1 -1
- package/build/client/_app/immutable/chunks/Blcu9fuE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Blcu9fuE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CL60_qsS.js → CEkqhJ8-.js} +1 -1
- package/build/client/_app/immutable/chunks/CEkqhJ8-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEkqhJ8-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CEHCs8E4.js → CLy6GMrT.js} +1 -1
- package/build/client/_app/immutable/chunks/CLy6GMrT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLy6GMrT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C8OIAOGW.js → CM7YbvcE.js} +1 -1
- package/build/client/_app/immutable/chunks/CM7YbvcE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CM7YbvcE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CeuOu7QI.js → CogyHa6-.js} +1 -1
- package/build/client/_app/immutable/chunks/CogyHa6-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CogyHa6-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8JUY7TGF.js → CuH1GpU9.js} +1 -1
- package/build/client/_app/immutable/chunks/CuH1GpU9.js.br +0 -0
- package/build/client/_app/immutable/chunks/CuH1GpU9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BYUAxBPx.js → D90Ga_Id.js} +1 -1
- package/build/client/_app/immutable/chunks/D90Ga_Id.js.br +0 -0
- package/build/client/_app/immutable/chunks/D90Ga_Id.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dq4WC4aT.js → D9uOQyZY.js} +1 -1
- package/build/client/_app/immutable/chunks/D9uOQyZY.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9uOQyZY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D1QZsS_n.js → DQWdnL7h.js} +1 -1
- package/build/client/_app/immutable/chunks/DQWdnL7h.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQWdnL7h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cn9pLe1S.js → DZhp5Clk.js} +1 -1
- package/build/client/_app/immutable/chunks/DZhp5Clk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZhp5Clk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjTSkyf1.js +2 -0
- package/build/client/_app/immutable/chunks/DjTSkyf1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjTSkyf1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BIJDRvOc.js → Lo9Y985M.js} +1 -1
- package/build/client/_app/immutable/chunks/Lo9Y985M.js.br +0 -0
- package/build/client/_app/immutable/chunks/Lo9Y985M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B78SKOml.js → caSIyyev.js} +1 -1
- package/build/client/_app/immutable/chunks/caSIyyev.js.br +0 -0
- package/build/client/_app/immutable/chunks/caSIyyev.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D3z87-GH.js → n-cYDyaA.js} +1 -1
- package/build/client/_app/immutable/chunks/n-cYDyaA.js.br +0 -0
- package/build/client/_app/immutable/chunks/n-cYDyaA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{QrHSSdjC.js → s_exGbLS.js} +1 -1
- package/build/client/_app/immutable/chunks/s_exGbLS.js.br +2 -0
- package/build/client/_app/immutable/chunks/s_exGbLS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yQaRdTPY.js +1 -0
- package/build/client/_app/immutable/chunks/yQaRdTPY.js.br +0 -0
- package/build/client/_app/immutable/chunks/yQaRdTPY.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.B0SozPUz.js → app.BgHDSK-f.js} +2 -2
- package/build/client/_app/immutable/entry/app.BgHDSK-f.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BgHDSK-f.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Cv7YY8BY.js +1 -0
- package/build/client/_app/immutable/entry/start.Cv7YY8BY.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Cv7YY8BY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.BH-p6KNP.js → 0.DuFkC-WN.js} +1 -1
- package/build/client/_app/immutable/nodes/0.DuFkC-WN.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DuFkC-WN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.5bKMe7me.js → 1.BXoD9o7T.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BXoD9o7T.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BXoD9o7T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.CuyB--Be.js → 10.Cei28q9Z.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Cei28q9Z.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Cei28q9Z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.Cp96bYst.js → 11.BstaTigc.js} +1 -1
- package/build/client/_app/immutable/nodes/11.BstaTigc.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BstaTigc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.B9kS4-UK.js → 12.C26mRRF_.js} +1 -1
- package/build/client/_app/immutable/nodes/12.C26mRRF_.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.C26mRRF_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.ie4sMrRi.js → 13.D5cvQijt.js} +1 -1
- package/build/client/_app/immutable/nodes/13.D5cvQijt.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D5cvQijt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.CqfbcQC3.js → 14.ixNG0i6M.js} +1 -1
- package/build/client/_app/immutable/nodes/14.ixNG0i6M.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.ixNG0i6M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.ClcEiTus.js → 15.U-YpZ2mY.js} +1 -1
- package/build/client/_app/immutable/nodes/15.U-YpZ2mY.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.U-YpZ2mY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.Lubye7rY.js → 16.DYyQlMIj.js} +1 -1
- package/build/client/_app/immutable/nodes/16.DYyQlMIj.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DYyQlMIj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.CZsgvMnU.js → 17.CjNdiCZc.js} +1 -1
- package/build/client/_app/immutable/nodes/17.CjNdiCZc.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CjNdiCZc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.nb4PEk6e.js → 19.aX3EJcGD.js} +1 -1
- package/build/client/_app/immutable/nodes/19.aX3EJcGD.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.aX3EJcGD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.DBpcacIW.js → 2.MoMLMEsA.js} +1 -1
- package/build/client/_app/immutable/nodes/2.MoMLMEsA.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.MoMLMEsA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.DKDJA76m.js → 20.BcpIwTNR.js} +1 -1
- package/build/client/_app/immutable/nodes/20.BcpIwTNR.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BcpIwTNR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.DDSJrVwV.js → 21.BdNRERDN.js} +1 -1
- package/build/client/_app/immutable/nodes/21.BdNRERDN.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BdNRERDN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.Bf2Y4qtK.js → 22.UIlcgKG0.js} +1 -1
- package/build/client/_app/immutable/nodes/22.UIlcgKG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.UIlcgKG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.CgSRzQDr.js → 23.B59tMz3Z.js} +1 -1
- package/build/client/_app/immutable/nodes/23.B59tMz3Z.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.B59tMz3Z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.fKJczgYC.js → 24.DQjTWFAo.js} +1 -1
- package/build/client/_app/immutable/nodes/24.DQjTWFAo.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DQjTWFAo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.BzI2N_Dl.js → 25.DX_SiK1J.js} +1 -1
- package/build/client/_app/immutable/nodes/25.DX_SiK1J.js.br +0 -0
- package/build/client/_app/immutable/nodes/{25.BzI2N_Dl.js.gz → 25.DX_SiK1J.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{26.Bl7bQZez.js → 26.Bqb00dxX.js} +1 -1
- package/build/client/_app/immutable/nodes/26.Bqb00dxX.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bqb00dxX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.B9EWyQv6.js → 28.DAJOyPmp.js} +1 -1
- package/build/client/_app/immutable/nodes/28.DAJOyPmp.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.DAJOyPmp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.DMxCWZ16.js → 3.CU4V9yAo.js} +1 -1
- package/build/client/_app/immutable/nodes/3.CU4V9yAo.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CU4V9yAo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.Bj_V5H0A.js → 4.CIKGpO-h.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CIKGpO-h.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CIKGpO-h.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BAzIGIXP.js → 6.DV-LKwUi.js} +1 -1
- package/build/client/_app/immutable/nodes/6.DV-LKwUi.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DV-LKwUi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CpRItf5T.js → 7.tNzUdkoK.js} +1 -1
- package/build/client/_app/immutable/nodes/7.tNzUdkoK.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.tNzUdkoK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.BRbaXe0L.js → 8._d4-szlB.js} +1 -1
- package/build/client/_app/immutable/nodes/8._d4-szlB.js.br +0 -0
- package/build/client/_app/immutable/nodes/8._d4-szlB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.DpQmfi7O.js → 9.CIkGA4QL.js} +1 -1
- package/build/client/_app/immutable/nodes/9.CIkGA4QL.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CIkGA4QL.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{detail.js-BBCxJBpU.js → detail.js-kIQeRhX8.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-DHLUCzN_.js → feedback.js-Cn_aMwGt.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-CedW099c.js → internal.js--IrZpGIw.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-CspIw1lK.js → keychain.js-EzFAr7ky.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-O-2c34nr.js → marketplace-service.js-BWJLUgci.js} +2 -2
- package/build/server/chunks/chunks/{page.js-BRRl6mg_.js → page.js-uCRgTfkr.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-CLYvgGeM.js → previewhelper2.js-CheYey18.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-BQv7p3Qv.js → repo.js-mwBuCebU.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-ja9fpm3a.js → runtime.js-DOQwJsyV.js} +524 -153
- package/build/server/chunks/chunks/{service.js-CHB5De_m.js → service.js-BhegRU14.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-BSXaHqaf.js → service2.js-CjX60BFh.js} +3 -3
- package/build/server/chunks/chunks/{starter.js-BL6kYdY7.js → starter.js-BoD-v_RX.js} +2 -2
- package/build/server/chunks/chunks/{view.js-DvrTXTsb.js → view.js-DRvLRn9a.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-DJDX8mej.js → _server.ts.js-LjS85cY1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-ZpNBOdE6.js → _server.ts.js-CPapFlxB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-cLGgBi-L.js → _server.ts.js-C5rpQOtz.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-DyA-Ftti.js → _server.ts.js-Bh9CCsJR.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-BRutjWld.js → _server.ts.js-B81tIgYM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CSUsZ_Uy.js → _server.ts.js-DJe3RKYn.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CyMAbBop.js → _server.ts.js-DrNM-EZz.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-C1QNh7Fv.js → _server.ts.js-CyHX-fjj.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-xAS3zgy6.js → _server.ts.js-BGNA3rRL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-C0ChpkPv.js → _server.ts.js-gxW-vjq6.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-Dg8UqJYL.js → _server.ts.js-CjKZKlSx.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-KtXAKUKl.js → _server.ts.js-Bf6fufw1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-SfyGIsms.js → _server.ts.js-CunTg6B4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-uKjVaQqO.js → _server.ts.js-BFn0GxSV.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Bh09YMSB.js → _server.ts.js-BPiDH1by.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DiOWY9as.js → _server.ts.js-CH_ZiSS9.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BRjxK-9y.js → _server.ts.js-CHeUHBaj.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CA3XQih9.js → _server.ts.js-B6-h2R89.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B5MRXVz2.js → _server.ts.js-CtXL8XCq.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-Hj5j2VEd.js → _server.ts.js-CdsJGtOe.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CG5hVtIr.js → _server.ts.js-yVkcjBkv.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-CbfYfN4W.js → _server.ts.js-BLyJO_Mo.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-Cntqh4w-.js → _server.ts.js-Dp9Lk4LX.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DbaYfmK8.js → _server.ts.js-BKYjzuX1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-CMC6khtq.js → _server.ts.js-DXIA842d.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-DiCaOT3E.js → _server.ts.js-DkhsnbSG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-DQZxZKa4.js → _server.ts.js-SeWa829w.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CaQ772k3.js → _server.ts.js-CIQPuCVw.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DkjBSjdS.js → _server.ts.js-DT0sbWwu.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-BLEOrgEt.js → _server.ts.js-Cn2rbNUE.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-rrfRBhVX.js → _server.ts.js-D8cqx7e8.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-DEaeguu1.js → _server.ts.js-DNxzMqSL.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-DGviOddp.js → _server.ts.js-CMrMjFz3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-BfwOLICk.js → _server.ts.js-Dk4WI0lC.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-C3dZCo79.js → _server.ts.js-CybVxq0q.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-QCxCUoaZ.js → _server.ts.js-Du0F1uRC.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-CIHZWmY6.js → _server.ts.js-DktLe6aY.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-9MZ6ZU7W.js → _server.ts.js-B3AFWOQ5.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-YJgYZpm2.js → _server.ts.js-CFZKkvHd.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-DRO0yFlG.js → _server.ts.js-DOuE8mQe.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js--78Nc6jj.js → _server.ts.js-Dnqj-B1I.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-B92-w9Jt.js → _server.ts.js-CsQ9Iy4e.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-BlgDs2xk.js → _server.ts.js-Q9_2hESc.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Cc70st9n.js → _server.ts.js-fJhkF-dq.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-COmpO5sc.js → _server.ts.js-DE5Za2Qf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-DcHNA_QH.js → _server.ts.js-B_Wi2EUQ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-BIBAGkdF.js → _server.ts.js-ESVAlaL0.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-DXKDhcRn.js → _server.ts.js-BYen5YjB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BgJD7i53.js → _server.ts.js-D9JD2y98.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CxKGr5ok.js → _server.ts.js-BcZEsLxW.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-k2erXAMq.js → _server.ts.js-nEQ-LWc3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BUmsnNMT.js → _server.ts.js-BglmY8Dv.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Dic1r8FA.js → _server.ts.js-Dcu4o_kg.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-DCDFOP3H.js → _server.ts.js-D8DNzTCl.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-DyaR3iKq.js → _server.ts.js-C88U185K.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Ds9qnblb.js → _server.ts.js-D5X3NXNQ.js} +3 -3
- package/build/server/chunks/entries/{hooks.server.js-BLsrrww8.js → hooks.server.js-BoVfKVBv.js} +3 -3
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-CWJXWFa8.js → _layout.server.ts.js-DonkPB5v.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DcIo1Fkt.js → _page.server.ts.js-BPlndbwo.js} +2 -2
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-Cumc04zT.js → _page.server.ts.js-D0TSKupF.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BvnBsHnq.js → _page.server.ts.js-DGxVR_vz.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DVzHoqMO.js → _page.server.ts.js-Ccs1E7eE.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-BK7WgAXR.js → _page.server.ts.js-DdVNEwXK.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-B_et4vbk.js → _page.server.ts.js-DJkL5LjM.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-DWY01zRh.js → _page.server.ts.js-zxQIlwfl.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-Be_vf2s9.js → _page.server.ts.js-XD-2cABX.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-euICzR6h.js → _page.server.ts.js-BgCyi1X-.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-CO-iqBAD.js → _page.server.ts.js-fo0xabfK.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-DzQmyVut.js → _page.server.ts.js-Cbg44XDV.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-ByePQa4g.js → _page.server.ts.js-BUp_Y-KL.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-DRj_7nDd.js → _page.server.ts.js-0-aDiI-u.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-QWGL2-Cn.js → _page.server.ts.js-DUYpwlCw.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DAOkZ-fE.js → _page.server.ts.js-B-EvG_LJ.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-jeZvTAgT.js → _page.server.ts.js-e1XEpYYO.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-Bzo5Uals.js → _page.server.ts.js-DQlX1ZXD.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-1XiCbDhc.js → _page.server.ts.js-3vhPyRFz.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DwYnrxXG.js → _page.server.ts.js-CmGgMlAh.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DP--6Ko6.js → _page.server.ts.js-CcUv_Pl5.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-Dl0z8pkQ.js → _page.server.ts.js-BSp2WAoD.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CyPpYkuJ.js → _page.server.ts.js-BUVzUDIr.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DlcJgtrb.js → _page.server.ts.js-CthFCAvj.js} +2 -2
- package/build/server/chunks/{handler-pU2T6cxW.js → handler-CoNcksE3.js} +3 -3
- package/build/server/chunks/{index.js-B3YyBD1_.js → index.js-DeIgBt_r.js} +2 -2
- package/build/server/chunks/{manifest.js-D3OqJAbv.js → manifest.js-DABDEm-u.js} +86 -86
- package/build/server/chunks/nodes/{0.js-DapnlcBu.js → 0.js-YKoWN0t_.js} +5 -5
- package/build/server/chunks/nodes/{1.js-B2zVBiHu.js → 1.js-BrhSX20y.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CwfaDBrN.js → 10.js-DfgINkv2.js} +2 -2
- package/build/server/chunks/nodes/{11.js-BSKCzLBk.js → 11.js-DiTSd3ll.js} +5 -5
- package/build/server/chunks/nodes/{12.js-Cw0R3pzN.js → 12.js-50Nn94Ac.js} +6 -6
- package/build/server/chunks/nodes/{13.js-1CllvmKU.js → 13.js-Bqj2sWs_.js} +6 -6
- package/build/server/chunks/nodes/{14.js-Duo10iYX.js → 14.js-Cv1hpyWZ.js} +7 -7
- package/build/server/chunks/nodes/{15.js-yyKjbIPm.js → 15.js-D7gELe63.js} +6 -6
- package/build/server/chunks/nodes/{16.js-Bw3O413k.js → 16.js-DCHbFZQk.js} +6 -6
- package/build/server/chunks/nodes/{17.js-CKJWbBiG.js → 17.js-CRE1rbZ5.js} +2 -2
- package/build/server/chunks/nodes/{19.js-gqmNp-1X.js → 19.js-CFuW5rd2.js} +6 -6
- package/build/server/chunks/nodes/{2.js-DbAE0QSU.js → 2.js-BgPLJqKL.js} +5 -5
- package/build/server/chunks/nodes/{20.js-DyVwaMHk.js → 20.js-DGixTdKt.js} +5 -5
- package/build/server/chunks/nodes/{21.js-UWLpwye1.js → 21.js-fW8cmY-P.js} +5 -5
- package/build/server/chunks/nodes/{22.js-DjQqtx9a.js → 22.js-BLhqsr4_.js} +5 -5
- package/build/server/chunks/nodes/{23.js-BRxy911D.js → 23.js-I9w_LkUL.js} +6 -6
- package/build/server/chunks/nodes/{24.js-QS0KOwss.js → 24.js-Dbyn5eyG.js} +4 -4
- package/build/server/chunks/nodes/{25.js-PQ5YJuMR.js → 25.js-Dc-E-pmn.js} +6 -6
- package/build/server/chunks/nodes/{26.js-CVgNTrxq.js → 26.js-Cqr1BLCa.js} +6 -6
- package/build/server/chunks/nodes/{27.js-D362fjZ7.js → 27.js-JKZQuSb7.js} +5 -5
- package/build/server/chunks/nodes/{28.js-CquKiHnq.js → 28.js-BN16VFpu.js} +5 -5
- package/build/server/chunks/nodes/{3.js-_ZrsIscU.js → 3.js-CZln8kr1.js} +5 -5
- package/build/server/chunks/nodes/{4.js-CMBAdl6x.js → 4.js-mbQFO9SD.js} +5 -5
- package/build/server/chunks/nodes/{5.js-DRAnyeo0.js → 5.js-gufn1Eo1.js} +4 -4
- package/build/server/chunks/nodes/{6.js-CWsHGKdF.js → 6.js-Cdfpyr6S.js} +5 -5
- package/build/server/chunks/nodes/{7.js-BzkPQGE-.js → 7.js-DRJdiMQL.js} +5 -5
- package/build/server/chunks/nodes/{8.js-DppreJ1j.js → 8.js-B4stLJHw.js} +5 -5
- package/build/server/chunks/nodes/{9.js-CWCKh6Lz.js → 9.js-DYcjt0Hs.js} +2 -2
- package/dist/cli.js +16 -1
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/8JUY7TGF.js.br +0 -0
- package/build/client/_app/immutable/chunks/8JUY7TGF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B78SKOml.js.br +0 -0
- package/build/client/_app/immutable/chunks/B78SKOml.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BIJDRvOc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BIJDRvOc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYUAxBPx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYUAxBPx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrlWJk4r.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrlWJk4r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bw22EWRR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bw22EWRR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6B0JAFe.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6B0JAFe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8OIAOGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8OIAOGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEHCs8E4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEHCs8E4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CL60_qsS.js.br +0 -0
- package/build/client/_app/immutable/chunks/CL60_qsS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeuOu7QI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeuOu7QI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cn9pLe1S.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cn9pLe1S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1QZsS_n.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1QZsS_n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3z87-GH.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3z87-GH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D69HGG2e.js.br +0 -0
- package/build/client/_app/immutable/chunks/D69HGG2e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGZVZsEx.js +0 -1
- package/build/client/_app/immutable/chunks/DGZVZsEx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGZVZsEx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js +0 -2
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dq4WC4aT.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq4WC4aT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QrHSSdjC.js.br +0 -2
- package/build/client/_app/immutable/chunks/QrHSSdjC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bOtONP_M.js.br +0 -0
- package/build/client/_app/immutable/chunks/bOtONP_M.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js +0 -1
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.5bKMe7me.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.5bKMe7me.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CuyB--Be.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CuyB--Be.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Cp96bYst.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Cp96bYst.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.ClcEiTus.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.ClcEiTus.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Lubye7rY.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Lubye7rY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DKDJA76m.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DKDJA76m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.fKJczgYC.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.fKJczgYC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CpRItf5T.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CpRItf5T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DpQmfi7O.js.br +0 -0
- 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-
|
|
4
|
+
import { v as version, d as defaultKeychain } from './keychain.js-EzFAr7ky.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';
|
|
@@ -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$
|
|
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$
|
|
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$
|
|
236
|
-
title: str$
|
|
237
|
-
repo: str$
|
|
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$
|
|
240
|
-
since: str$
|
|
241
|
-
completion: { verb: str$
|
|
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$
|
|
244
|
-
holdSet: str$
|
|
245
|
-
holdBucket: str$
|
|
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$
|
|
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$
|
|
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$
|
|
259
|
-
detail: str$
|
|
260
|
-
observedAt: str$
|
|
261
|
-
freshness: str$
|
|
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$
|
|
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$
|
|
284
|
-
worktree: { path: str$
|
|
285
|
-
report: { path: str$
|
|
286
|
-
lastEvent: last ? { state: str$
|
|
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$
|
|
290
|
+
freshness: str$6(endpoint.freshness),
|
|
291
291
|
target: nonBlank(endpoint.target)
|
|
292
292
|
},
|
|
293
|
-
prUrl: str$
|
|
293
|
+
prUrl: str$6(obj$1(v.pr).url),
|
|
294
294
|
openDecisions: decisions.filter(isObj$2).map((d) => ({
|
|
295
|
-
key: str$
|
|
296
|
-
verb: str$
|
|
297
|
-
summary: str$
|
|
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$
|
|
317
|
-
fmHome: str$
|
|
318
|
-
roots: { fmRoot: str$
|
|
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$
|
|
466
|
-
lock: { state: str$
|
|
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$
|
|
469
|
-
reason: str$
|
|
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$
|
|
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$
|
|
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$
|
|
513
|
-
source: str$
|
|
512
|
+
at: str$6(v.at),
|
|
513
|
+
source: str$6(v.source),
|
|
514
514
|
requestId: nonBlank(v.request_id),
|
|
515
|
-
body: str$
|
|
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$
|
|
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$
|
|
540
|
-
omitted: omitted.map((o) => ({ surface: str$
|
|
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
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
1929
|
-
set("short", str$
|
|
1930
|
-
set("after", str$
|
|
1931
|
-
set("column", str$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
6215
|
-
project: str$
|
|
6216
|
-
harness: str$
|
|
6217
|
-
model: str$
|
|
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$
|
|
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$
|
|
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$
|
|
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(
|
|
8817
|
+
function parseAllowance(json2) {
|
|
8817
8818
|
let doc;
|
|
8818
8819
|
try {
|
|
8819
|
-
doc = JSON.parse(
|
|
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$
|
|
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$
|
|
10354
|
-
const cardId = str$
|
|
10355
|
-
const taskId = str$
|
|
10356
|
-
const key = str$
|
|
10357
|
-
const question = str$
|
|
10358
|
-
const answeredAt = str$
|
|
10359
|
-
const label2 = str$
|
|
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$
|
|
10369
|
-
projectId: str$
|
|
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$
|
|
10374
|
+
askedAt: str$3(r.askedAt, 40),
|
|
10374
10375
|
choice,
|
|
10375
10376
|
label: label2,
|
|
10376
|
-
picks: str$
|
|
10377
|
-
note: str$
|
|
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
|
|
11226
|
+
let json2;
|
|
11226
11227
|
try {
|
|
11227
|
-
|
|
11228
|
+
json2 = JSON.stringify(a.value);
|
|
11228
11229
|
} catch {
|
|
11229
|
-
|
|
11230
|
+
json2 = void 0;
|
|
11230
11231
|
}
|
|
11231
|
-
if (
|
|
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(
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
14749
|
-
this.resumeUrl = str$
|
|
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$
|
|
14752
|
-
if (id) this.self = { id, name: str$
|
|
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$
|
|
14765
|
-
const id = str$
|
|
14766
|
-
const chat = str$
|
|
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$
|
|
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$
|
|
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$
|
|
14782
|
-
inReplyTo: replied ? { chat: str$
|
|
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$
|
|
14789
|
-
const id = str$
|
|
14790
|
-
const token = str$
|
|
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$
|
|
14793
|
+
const from = str$2(user?.id);
|
|
14793
14794
|
const message2 = isObj$1(d.message) ? d.message : null;
|
|
14794
|
-
const chat = str$
|
|
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$
|
|
14797
|
+
const mid = str$2(message2?.id);
|
|
14797
14798
|
return {
|
|
14798
14799
|
kind: "button",
|
|
14799
14800
|
id,
|
|
14800
14801
|
from,
|
|
14801
|
-
fromName: str$
|
|
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$
|
|
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$
|
|
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$
|
|
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,366 @@ 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 herdrError(r) {
|
|
17413
|
+
if (r.ok) return "";
|
|
17414
|
+
const text2 = r.stderr.trim() || r.stdout.trim();
|
|
17415
|
+
try {
|
|
17416
|
+
const parsed = JSON.parse(text2);
|
|
17417
|
+
const message2 = parsed.error?.message ?? parsed.message;
|
|
17418
|
+
if (typeof message2 === "string" && message2) return message2;
|
|
17419
|
+
} catch {
|
|
17420
|
+
}
|
|
17421
|
+
return text2 || r.message;
|
|
17422
|
+
}
|
|
17423
|
+
function herdrCode(r) {
|
|
17424
|
+
if (r.ok) return null;
|
|
17425
|
+
try {
|
|
17426
|
+
const parsed = JSON.parse(r.stderr.trim());
|
|
17427
|
+
const code = parsed.error?.code ?? parsed.code;
|
|
17428
|
+
return typeof code === "string" ? code : null;
|
|
17429
|
+
} catch {
|
|
17430
|
+
return null;
|
|
17431
|
+
}
|
|
17432
|
+
}
|
|
17433
|
+
function json(text2) {
|
|
17434
|
+
try {
|
|
17435
|
+
const v = JSON.parse(text2);
|
|
17436
|
+
return v && typeof v === "object" ? v : null;
|
|
17437
|
+
} catch {
|
|
17438
|
+
return null;
|
|
17439
|
+
}
|
|
17440
|
+
}
|
|
17441
|
+
const obj = (v) => v && typeof v === "object" ? v : {};
|
|
17442
|
+
const str = (v) => typeof v === "string" && v ? v : null;
|
|
17443
|
+
function parseStatus(stdout) {
|
|
17444
|
+
const all = json(stdout);
|
|
17445
|
+
if (!all) return null;
|
|
17446
|
+
const client = obj(all.client);
|
|
17447
|
+
const server = obj(all.server);
|
|
17448
|
+
if (typeof server.running !== "boolean") return null;
|
|
17449
|
+
return {
|
|
17450
|
+
clientVersion: str(client.version),
|
|
17451
|
+
clientProtocol: client.protocol,
|
|
17452
|
+
running: server.running,
|
|
17453
|
+
serverVersion: str(server.version),
|
|
17454
|
+
serverProtocol: server.protocol,
|
|
17455
|
+
compatible: server.compatible
|
|
17456
|
+
};
|
|
17457
|
+
}
|
|
17458
|
+
function parseRecord(text2) {
|
|
17459
|
+
const r = json(text2);
|
|
17460
|
+
if (!r || r.schema !== RECORD_SCHEMA) return null;
|
|
17461
|
+
const env = obj(r.env);
|
|
17462
|
+
if (!str(r.session) || !str(r.paneId) || !str(r.terminalId)) return null;
|
|
17463
|
+
if (!Object.values(env).every((v) => typeof v === "string")) return null;
|
|
17464
|
+
return {
|
|
17465
|
+
schema: RECORD_SCHEMA,
|
|
17466
|
+
session: r.session,
|
|
17467
|
+
paneId: r.paneId,
|
|
17468
|
+
terminalId: r.terminalId,
|
|
17469
|
+
env
|
|
17470
|
+
};
|
|
17471
|
+
}
|
|
17472
|
+
function paneArgv(shBinary, spec) {
|
|
17473
|
+
const unset = PANE_UNSET.filter((name2) => !(name2 in spec.env));
|
|
17474
|
+
const families = PANE_UNSET_PREFIXES.map((p) => `${p}*`).join("|");
|
|
17475
|
+
const script = [
|
|
17476
|
+
`unset ${unset.join(" ")}`,
|
|
17477
|
+
`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`,
|
|
17478
|
+
'exec "$@"'
|
|
17479
|
+
].join("\n");
|
|
17480
|
+
return [shBinary, "-c", script, "sh", ...spec.argv];
|
|
17481
|
+
}
|
|
17482
|
+
class HerdrBackend {
|
|
17483
|
+
label = "herdr";
|
|
17484
|
+
session;
|
|
17485
|
+
recordFile;
|
|
17486
|
+
env;
|
|
17487
|
+
find;
|
|
17488
|
+
run;
|
|
17489
|
+
spawnServer;
|
|
17490
|
+
sleep;
|
|
17491
|
+
/** The record of the pane, while running() last found its terminal live. */
|
|
17492
|
+
live = null;
|
|
17493
|
+
/** Why running() last could not say, for the page. */
|
|
17494
|
+
lastProblem = null;
|
|
17495
|
+
constructor(opts) {
|
|
17496
|
+
this.session = opts.session || DEFAULT_HERDR_SESSION;
|
|
17497
|
+
this.recordFile = opts.recordFile;
|
|
17498
|
+
const env = { ...opts.env };
|
|
17499
|
+
for (const name2 of HERDR_AMBIENT) delete env[name2];
|
|
17500
|
+
this.env = env;
|
|
17501
|
+
this.find = opts.find;
|
|
17502
|
+
this.run = opts.run ?? runBounded;
|
|
17503
|
+
this.spawnServer = opts.spawnServer ?? spawnServer;
|
|
17504
|
+
this.sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
17505
|
+
}
|
|
17506
|
+
unavailable() {
|
|
17507
|
+
if (!HERDR_SESSION.test(this.session)) {
|
|
17508
|
+
return `The herdr session name ${JSON.stringify(this.session)} is not valid; use letters, digits, '_' or '-'.`;
|
|
17509
|
+
}
|
|
17510
|
+
if (!this.find("herdr")) {
|
|
17511
|
+
return `herdr is not installed or not on PATH. Install herdr ${HERDR_MIN_VERSION} or newer and restart Wheelhouse.`;
|
|
17512
|
+
}
|
|
17513
|
+
return null;
|
|
17514
|
+
}
|
|
17515
|
+
problem() {
|
|
17516
|
+
return this.lastProblem;
|
|
17517
|
+
}
|
|
17518
|
+
/**
|
|
17519
|
+
* Run herdr on Wheelhouse's session only: `--session` goes after the
|
|
17520
|
+
* subcommand's own arguments and before any `--`, so it is always read as
|
|
17521
|
+
* herdr's option and never as part of a command or a message.
|
|
17522
|
+
*/
|
|
17523
|
+
herdr(args, extra = {}) {
|
|
17524
|
+
const herdr = this.find("herdr");
|
|
17525
|
+
if (!herdr) return Promise.reject(new Error("herdr is missing"));
|
|
17526
|
+
const dash = args.indexOf("--");
|
|
17527
|
+
const full = dash < 0 ? [...args, "--session", this.session] : [...args.slice(0, dash), "--session", this.session, ...args.slice(dash)];
|
|
17528
|
+
return this.run(herdr, full, {
|
|
17529
|
+
env: this.env,
|
|
17530
|
+
timeoutMs: HERDR_TIMEOUT_MS,
|
|
17531
|
+
maxOutputBytes: 256 * 1024,
|
|
17532
|
+
...extra
|
|
17533
|
+
});
|
|
17534
|
+
}
|
|
17535
|
+
/** herdr's status for the session, or a sentence saying why it cannot be used. */
|
|
17536
|
+
async status() {
|
|
17537
|
+
const r = await this.herdr(["status", "--json"]);
|
|
17538
|
+
const status2 = r.ok ? parseStatus(r.stdout) : null;
|
|
17539
|
+
if (!status2) {
|
|
17540
|
+
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.`;
|
|
17541
|
+
}
|
|
17542
|
+
if (!status2.clientVersion || compareVersions(status2.clientVersion, HERDR_MIN_VERSION) < 0) {
|
|
17543
|
+
return `herdr ${status2.clientVersion ?? "(unknown version)"} is older than Wheelhouse supports. Update herdr to ${HERDR_MIN_VERSION} or newer.`;
|
|
17544
|
+
}
|
|
17545
|
+
if (status2.running && status2.compatible !== true) {
|
|
17546
|
+
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.`;
|
|
17547
|
+
}
|
|
17548
|
+
return status2;
|
|
17549
|
+
}
|
|
17550
|
+
async readRecord() {
|
|
17551
|
+
try {
|
|
17552
|
+
const record = parseRecord(await readFile(this.recordFile, "utf8"));
|
|
17553
|
+
return record && record.session === this.session ? record : null;
|
|
17554
|
+
} catch {
|
|
17555
|
+
return null;
|
|
17556
|
+
}
|
|
17557
|
+
}
|
|
17558
|
+
async writeRecord(record) {
|
|
17559
|
+
const tmp = `${this.recordFile}.${process.pid}.tmp`;
|
|
17560
|
+
await writeFile(tmp, JSON.stringify(record), { mode: 384 });
|
|
17561
|
+
await rename(tmp, this.recordFile);
|
|
17562
|
+
}
|
|
17563
|
+
/** The pane to type into: the one running() found live, else the recorded one. */
|
|
17564
|
+
async pane() {
|
|
17565
|
+
return (this.live ?? await this.readRecord())?.paneId ?? null;
|
|
17566
|
+
}
|
|
17567
|
+
async running() {
|
|
17568
|
+
this.live = null;
|
|
17569
|
+
this.lastProblem = null;
|
|
17570
|
+
if (this.unavailable()) return null;
|
|
17571
|
+
const status2 = await this.status();
|
|
17572
|
+
if (typeof status2 === "string") {
|
|
17573
|
+
this.lastProblem = status2;
|
|
17574
|
+
return null;
|
|
17575
|
+
}
|
|
17576
|
+
if (!status2.running) return false;
|
|
17577
|
+
const record = await this.readRecord();
|
|
17578
|
+
if (!record) return false;
|
|
17579
|
+
const r = await this.herdr(["pane", "get", record.paneId]);
|
|
17580
|
+
if (!r.ok) {
|
|
17581
|
+
if (herdrCode(r) === "pane_not_found") return false;
|
|
17582
|
+
this.lastProblem = `herdr could not report Firstmate's pane: ${herdrError(r)}`;
|
|
17583
|
+
return null;
|
|
17584
|
+
}
|
|
17585
|
+
const pane = obj(obj(json(r.stdout)?.result).pane);
|
|
17586
|
+
const terminal = str(pane.terminal_id);
|
|
17587
|
+
if (!terminal) {
|
|
17588
|
+
this.lastProblem = "herdr gave an answer about Firstmate's pane that Wheelhouse does not understand.";
|
|
17589
|
+
return null;
|
|
17590
|
+
}
|
|
17591
|
+
if (terminal !== record.terminalId) return false;
|
|
17592
|
+
this.live = record;
|
|
17593
|
+
return true;
|
|
17594
|
+
}
|
|
17595
|
+
/** Start the session's herdr server when it is not running, and wait for it to answer. */
|
|
17596
|
+
async serve(cwd) {
|
|
17597
|
+
let status2 = await this.status();
|
|
17598
|
+
if (typeof status2 === "string") return status2;
|
|
17599
|
+
if (status2.running) return null;
|
|
17600
|
+
try {
|
|
17601
|
+
this.spawnServer(this.find("herdr"), ["server", "--session", this.session], {
|
|
17602
|
+
cwd,
|
|
17603
|
+
env: this.env
|
|
17604
|
+
});
|
|
17605
|
+
} catch (e) {
|
|
17606
|
+
return `herdr could not start session "${this.session}": ${e.message}`;
|
|
17607
|
+
}
|
|
17608
|
+
for (let waited2 = 0; waited2 < SERVER_START_MS; waited2 += SERVER_POLL_MS) {
|
|
17609
|
+
await this.sleep(SERVER_POLL_MS);
|
|
17610
|
+
status2 = await this.status();
|
|
17611
|
+
if (typeof status2 === "string") return status2;
|
|
17612
|
+
if (status2.running) return null;
|
|
17613
|
+
}
|
|
17614
|
+
return `herdr session "${this.session}" did not start within ${SERVER_START_MS / 1e3} seconds.`;
|
|
17615
|
+
}
|
|
17616
|
+
async start(spec) {
|
|
17617
|
+
this.live = null;
|
|
17618
|
+
const sh = this.find("sh");
|
|
17619
|
+
if (!sh) return { ok: false, error: "herdr could not start Firstmate: `sh` is not on PATH." };
|
|
17620
|
+
const served = await this.serve(spec.cwd);
|
|
17621
|
+
if (served) return { ok: false, error: served };
|
|
17622
|
+
const r = await this.herdr([
|
|
17623
|
+
"agent",
|
|
17624
|
+
"start",
|
|
17625
|
+
`${FIRSTMATE_AGENT}-${randomBytes(4).toString("hex")}`,
|
|
17626
|
+
"--cwd",
|
|
17627
|
+
spec.cwd,
|
|
17628
|
+
...Object.entries(spec.env).flatMap(([k, v]) => ["--env", `${k}=${v}`]),
|
|
17629
|
+
"--no-focus",
|
|
17630
|
+
"--",
|
|
17631
|
+
...paneArgv(sh, spec)
|
|
17632
|
+
]);
|
|
17633
|
+
if (!r.ok) return { ok: false, error: `herdr could not start Firstmate: ${herdrError(r)}` };
|
|
17634
|
+
const agent = obj(obj(json(r.stdout)?.result).agent);
|
|
17635
|
+
const paneId = str(agent.pane_id);
|
|
17636
|
+
const terminalId = str(agent.terminal_id);
|
|
17637
|
+
if (!paneId || !terminalId) {
|
|
17638
|
+
return {
|
|
17639
|
+
ok: false,
|
|
17640
|
+
error: `herdr started Firstmate but did not say which pane it is in. Close it in herdr session "${this.session}" before starting again.`
|
|
17641
|
+
};
|
|
17642
|
+
}
|
|
17643
|
+
const record = {
|
|
17644
|
+
schema: RECORD_SCHEMA,
|
|
17645
|
+
session: this.session,
|
|
17646
|
+
paneId,
|
|
17647
|
+
terminalId,
|
|
17648
|
+
env: { ...spec.env }
|
|
17649
|
+
};
|
|
17650
|
+
try {
|
|
17651
|
+
await this.writeRecord(record);
|
|
17652
|
+
} catch (e) {
|
|
17653
|
+
return {
|
|
17654
|
+
ok: false,
|
|
17655
|
+
error: `herdr started Firstmate in pane ${paneId}, but Wheelhouse could not record it: ${e.message}`
|
|
17656
|
+
};
|
|
17657
|
+
}
|
|
17658
|
+
this.live = record;
|
|
17659
|
+
await this.herdr([
|
|
17660
|
+
"terminal",
|
|
17661
|
+
"session",
|
|
17662
|
+
"control",
|
|
17663
|
+
terminalId,
|
|
17664
|
+
"--cols",
|
|
17665
|
+
"160",
|
|
17666
|
+
"--rows",
|
|
17667
|
+
"48"
|
|
17668
|
+
]);
|
|
17669
|
+
return { ok: true };
|
|
17670
|
+
}
|
|
17671
|
+
async variable(name2) {
|
|
17672
|
+
return this.live ? this.live.env[name2] ?? "" : null;
|
|
17673
|
+
}
|
|
17674
|
+
async screen() {
|
|
17675
|
+
const pane = await this.pane();
|
|
17676
|
+
if (!pane) return null;
|
|
17677
|
+
const r = await this.herdr(["pane", "read", pane, "--source", "visible"]);
|
|
17678
|
+
return r.ok ? r.stdout : null;
|
|
17679
|
+
}
|
|
17680
|
+
async paste(text2) {
|
|
17681
|
+
const pane = await this.pane();
|
|
17682
|
+
if (!pane) return { ok: false, error: "herdr could not take the message: no Firstmate pane." };
|
|
17683
|
+
let stripped = text2;
|
|
17684
|
+
while (stripped.includes(PASTE_END)) stripped = stripped.split(PASTE_END).join("");
|
|
17685
|
+
const body = `${PASTE_START}${stripped}${PASTE_END}`;
|
|
17686
|
+
if (Buffer.byteLength(body) > PASTE_MAX_BYTES) {
|
|
17687
|
+
return { ok: false, error: "herdr could not take the message: it is too long." };
|
|
17688
|
+
}
|
|
17689
|
+
const r = await this.herdr(["pane", "send-text", pane, body]);
|
|
17690
|
+
if (!r.ok) return { ok: false, error: `herdr could not take the message: ${herdrError(r)}` };
|
|
17691
|
+
return { ok: true };
|
|
17692
|
+
}
|
|
17693
|
+
async key(key) {
|
|
17694
|
+
const pane = await this.pane();
|
|
17695
|
+
if (!pane) return { ok: false, error: "herdr could not send a key: no Firstmate pane." };
|
|
17696
|
+
const r = await this.herdr(["pane", "send-keys", pane, HERDR_KEYS[key]]);
|
|
17697
|
+
if (!r.ok) return { ok: false, error: `herdr could not send a key: ${herdrError(r)}` };
|
|
17698
|
+
return { ok: true };
|
|
17699
|
+
}
|
|
17700
|
+
attach() {
|
|
17701
|
+
return {
|
|
17702
|
+
argv: [this.find("herdr"), "session", "attach", this.session],
|
|
17703
|
+
env: { ...this.env, TERM: "xterm-256color" }
|
|
17704
|
+
};
|
|
17705
|
+
}
|
|
17706
|
+
attachHint() {
|
|
17707
|
+
return shellLine(["herdr", "session", "attach", this.session]);
|
|
17708
|
+
}
|
|
17709
|
+
}
|
|
17352
17710
|
const INPUT_MAX_BYTES = 64 * 1024;
|
|
17353
17711
|
const HOOK_RECORD = path.join("firstmate", "session-start.json");
|
|
17712
|
+
const HERDR_RECORD = path.join("firstmate", "herdr-session.json");
|
|
17354
17713
|
const PASTE_SETTLE_MS = 400;
|
|
17355
17714
|
const KEY_GAP_MS = 120;
|
|
17356
17715
|
const DISMISS_MAX = 5;
|
|
@@ -17471,7 +17830,19 @@ class FirstmateSession {
|
|
|
17471
17830
|
this.skipPermissions = this.harness === "claude" && (opts.skipPermissions ?? true);
|
|
17472
17831
|
this.env = sessionEnv(opts.env ?? process.env);
|
|
17473
17832
|
this.find = opts.find ?? ((name2) => which(name2, this.env.PATH));
|
|
17474
|
-
this.backend = opts.backend ??
|
|
17833
|
+
this.backend = opts.backend ?? (opts.sessionBackend === "herdr" ? new HerdrBackend({
|
|
17834
|
+
session: opts.herdrSession,
|
|
17835
|
+
recordFile: path.join(this.stateDir, HERDR_RECORD),
|
|
17836
|
+
env: this.env,
|
|
17837
|
+
find: this.find,
|
|
17838
|
+
run: opts.run,
|
|
17839
|
+
sleep: opts.sleep
|
|
17840
|
+
}) : new TmuxBackend({
|
|
17841
|
+
socket: opts.tmuxSocket,
|
|
17842
|
+
env: this.env,
|
|
17843
|
+
find: this.find,
|
|
17844
|
+
run: opts.run
|
|
17845
|
+
}));
|
|
17475
17846
|
this.trustStore = opts.trustStore === void 0 ? claudeStore(this.env) : opts.trustStore;
|
|
17476
17847
|
this.sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
17477
17848
|
}
|
|
@@ -17489,7 +17860,7 @@ class FirstmateSession {
|
|
|
17489
17860
|
}
|
|
17490
17861
|
/** The backend could not say whether the session runs. */
|
|
17491
17862
|
get cannotAsk() {
|
|
17492
|
-
return `Wheelhouse could not ask ${this.backend.label} about the session.`;
|
|
17863
|
+
return this.backend.problem?.() ?? `Wheelhouse could not ask ${this.backend.label} about the session.`;
|
|
17493
17864
|
}
|
|
17494
17865
|
/**
|
|
17495
17866
|
* Whether the backend's Firstmate session is running; null when the backend
|
|
@@ -19294,4 +19665,4 @@ const runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
19294
19665
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19295
19666
|
|
|
19296
19667
|
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-
|
|
19668
|
+
//# sourceMappingURL=runtime.js-DOQwJsyV.js.map
|