@chrisjowen/wheelhouse 0.7.0 → 0.8.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.
- package/README.md +1 -1
- package/build/client/_app/immutable/chunks/{DMDL4MuU.js → AiTV8eMU.js} +1 -1
- package/build/client/_app/immutable/chunks/AiTV8eMU.js.br +3 -0
- package/build/client/_app/immutable/chunks/AiTV8eMU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CzbTCvH8.js → B2lgXXfo.js} +1 -1
- package/build/client/_app/immutable/chunks/B2lgXXfo.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2lgXXfo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BL5PiS2m.js +5 -0
- package/build/client/_app/immutable/chunks/BL5PiS2m.js.br +0 -0
- package/build/client/_app/immutable/chunks/BL5PiS2m.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Om8BmhPE.js → BMTKBS3C.js} +1 -1
- package/build/client/_app/immutable/chunks/BMTKBS3C.js.br +0 -0
- package/build/client/_app/immutable/chunks/BMTKBS3C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{3bC4bjBI.js → BNXbHZ4s.js} +1 -1
- package/build/client/_app/immutable/chunks/BNXbHZ4s.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNXbHZ4s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CgxyeCeP.js → BbaeceI1.js} +1 -1
- package/build/client/_app/immutable/chunks/BbaeceI1.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbaeceI1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dk0_dSfe.js → C31k8QGL.js} +1 -1
- package/build/client/_app/immutable/chunks/C31k8QGL.js.br +0 -0
- package/build/client/_app/immutable/chunks/C31k8QGL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{10ROkIhN.js → CCnNaKfv.js} +1 -1
- package/build/client/_app/immutable/chunks/CCnNaKfv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCnNaKfv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bm0kgZn-.js → CLrvyXks.js} +1 -1
- package/build/client/_app/immutable/chunks/CLrvyXks.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLrvyXks.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CEhBf-yV.js → CisWRQQd.js} +1 -1
- package/build/client/_app/immutable/chunks/CisWRQQd.js.br +0 -0
- package/build/client/_app/immutable/chunks/CisWRQQd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D9coJX5q.js → ClPiDuuz.js} +1 -1
- package/build/client/_app/immutable/chunks/ClPiDuuz.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClPiDuuz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BlJ-AbFb.js → D6cF08T_.js} +1 -1
- package/build/client/_app/immutable/chunks/D6cF08T_.js.br +0 -0
- package/build/client/_app/immutable/chunks/D6cF08T_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D85QHpKq.js +2 -0
- package/build/client/_app/immutable/chunks/D85QHpKq.js.br +0 -0
- package/build/client/_app/immutable/chunks/D85QHpKq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Ns_iZj-K.js → DEvJ7EGc.js} +1 -1
- package/build/client/_app/immutable/chunks/DEvJ7EGc.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEvJ7EGc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BibAhIE3.js → D_KEoseW.js} +1 -1
- package/build/client/_app/immutable/chunks/D_KEoseW.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_KEoseW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CNKI0WqS.js → DjY7ZMGz.js} +1 -1
- package/build/client/_app/immutable/chunks/DjY7ZMGz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjY7ZMGz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DHss7SEY.js → Go4g8RRQ.js} +1 -1
- package/build/client/_app/immutable/chunks/Go4g8RRQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Go4g8RRQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CR4i-JqL.js → ff7mriJ8.js} +1 -1
- package/build/client/_app/immutable/chunks/ff7mriJ8.js.br +0 -0
- package/build/client/_app/immutable/chunks/ff7mriJ8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BrrBgLVG.js → g4TsmxH1.js} +1 -1
- package/build/client/_app/immutable/chunks/g4TsmxH1.js.br +0 -0
- package/build/client/_app/immutable/chunks/g4TsmxH1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/w66b3iDh.js +1 -0
- package/build/client/_app/immutable/chunks/w66b3iDh.js.br +0 -0
- package/build/client/_app/immutable/chunks/w66b3iDh.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.5tTdQ_02.js → app.gl-vT7jm.js} +2 -2
- package/build/client/_app/immutable/entry/app.gl-vT7jm.js.br +0 -0
- package/build/client/_app/immutable/entry/app.gl-vT7jm.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BobUuVbD.js +1 -0
- package/build/client/_app/immutable/entry/start.BobUuVbD.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BobUuVbD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.nyx2R9Qf.js → 0.D7nx1zUv.js} +5 -5
- package/build/client/_app/immutable/nodes/0.D7nx1zUv.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D7nx1zUv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BkR_IPYS.js → 1.GyxmcDpk.js} +1 -1
- package/build/client/_app/immutable/nodes/1.GyxmcDpk.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.GyxmcDpk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.BS87tv1l.js → 10.Bu8ENATY.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Bu8ENATY.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Bu8ENATY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.DddxDkJ4.js → 11.LfkwXgTW.js} +1 -1
- package/build/client/_app/immutable/nodes/11.LfkwXgTW.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.LfkwXgTW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.C9qwM8Di.js → 12.BxPjEbD6.js} +1 -1
- package/build/client/_app/immutable/nodes/12.BxPjEbD6.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BxPjEbD6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.CAV9o7bd.js → 13.BlAJ4Vfy.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BlAJ4Vfy.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BlAJ4Vfy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.B_Err-YM.js → 14.D6gfCfYW.js} +1 -1
- package/build/client/_app/immutable/nodes/14.D6gfCfYW.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.D6gfCfYW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.1PcFIFZ6.js → 15.4lw2WKq9.js} +1 -1
- package/build/client/_app/immutable/nodes/15.4lw2WKq9.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.4lw2WKq9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.CgtK_xkO.js → 16.BmzqQRka.js} +1 -1
- package/build/client/_app/immutable/nodes/16.BmzqQRka.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BmzqQRka.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.BQxfvX3S.js → 17.k-iDf2FK.js} +1 -1
- package/build/client/_app/immutable/nodes/17.k-iDf2FK.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.k-iDf2FK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.Dxd8I8Tp.js → 19.Dp_e5Due.js} +1 -1
- package/build/client/_app/immutable/nodes/19.Dp_e5Due.js.br +5 -0
- package/build/client/_app/immutable/nodes/19.Dp_e5Due.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.D4QEyk_4.js → 2.tfxqjTNR.js} +1 -1
- package/build/client/_app/immutable/nodes/2.tfxqjTNR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.tfxqjTNR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.DYaAa9CP.js → 20.Bz0SO3wK.js} +1 -1
- package/build/client/_app/immutable/nodes/20.Bz0SO3wK.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Bz0SO3wK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.9uUpE64z.js → 21.DfM6w7Sq.js} +1 -1
- package/build/client/_app/immutable/nodes/21.DfM6w7Sq.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DfM6w7Sq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.DcPvaPFW.js → 22.CgDRkCuX.js} +1 -1
- package/build/client/_app/immutable/nodes/22.CgDRkCuX.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.CgDRkCuX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.BRDz0rFN.js → 23.Cqr07Z9o.js} +1 -1
- package/build/client/_app/immutable/nodes/23.Cqr07Z9o.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.Cqr07Z9o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.BStaoFul.js → 24.CRrpf_iS.js} +1 -1
- package/build/client/_app/immutable/nodes/24.CRrpf_iS.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CRrpf_iS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.BlmlFpt5.js → 25.BA3kP5aP.js} +1 -1
- package/build/client/_app/immutable/nodes/25.BA3kP5aP.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BA3kP5aP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.C4_nQTcn.js → 26.CipAeCRP.js} +1 -1
- package/build/client/_app/immutable/nodes/26.CipAeCRP.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CipAeCRP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.CQY0WaJv.js → 28.BSk8udo-.js} +1 -1
- package/build/client/_app/immutable/nodes/28.BSk8udo-.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BSk8udo-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.DxySQdM7.js → 3.Bfp3WQon.js} +1 -1
- package/build/client/_app/immutable/nodes/3.Bfp3WQon.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bfp3WQon.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.BjZ-CStr.js → 4.F2NZin5q.js} +1 -1
- package/build/client/_app/immutable/nodes/4.F2NZin5q.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.F2NZin5q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.CDJqtSQa.js → 6.CiTAJagN.js} +1 -1
- package/build/client/_app/immutable/nodes/6.CiTAJagN.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CiTAJagN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.Cj9o22fB.js → 7.CFAVd444.js} +1 -1
- package/build/client/_app/immutable/nodes/7.CFAVd444.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CFAVd444.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.BN9L31QZ.js → 8.DgSB72Qx.js} +1 -1
- package/build/client/_app/immutable/nodes/8.DgSB72Qx.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DgSB72Qx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.CidVBUPU.js → 9.ClGaEjTD.js} +1 -1
- package/build/client/_app/immutable/nodes/9.ClGaEjTD.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.ClGaEjTD.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/{DecisionCard.js-BGiCJsY8.js → DecisionCard.js-Dyj6ht_j.js} +9 -2
- package/build/server/chunks/chunks/{OpenDecision.js-DXWQXckD.js → OpenDecision.js-0VvKUvGV.js} +2 -2
- package/build/server/chunks/chunks/{decisionform.js-Cy0nUQ8l.js → decisionform.js-BZIm6oAS.js} +56 -2
- package/build/server/chunks/chunks/{detail.js-4QMxTp3B.js → detail.js-C28uCfO4.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-CGKliEXP.js → feedback.js-DbBFs_c7.js} +2 -2
- package/build/server/chunks/chunks/{insights.svelte.js-EX826idS.js → insights.svelte.js-DR4hOMAL.js} +3 -3
- package/build/server/chunks/chunks/{internal.js-D5XVe7pC.js → internal.js-BLKxcmnO.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-DBjGr5_S.js → keychain.js-CLq9ZWSr.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-z40kf_0h.js → marketplace-service.js-CiuqtVb8.js} +2 -2
- package/build/server/chunks/chunks/{page.js-BXexw6ll.js → page.js-CGYLRa54.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-CDywcDnG.js → previewhelper2.js-DvC-jUM7.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-UPu3kKmt.js → repo.js-DVhaDnBj.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-BaL3oaQT.js → runtime.js-CdY5IpD-.js} +36 -7
- package/build/server/chunks/chunks/{service.js-V5RheQmO.js → service.js-DhlDVkLw.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-B4ps0Ctj.js → service2.js-Bt-81oiB.js} +3 -3
- package/build/server/chunks/chunks/{starter.js-CToN2q4C.js → starter.js-8hCfFY7e.js} +2 -2
- package/build/server/chunks/chunks/{view.js-BhCZpcmS.js → view.js-Ch9WrYrC.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-BfVnbEJi.js → _server.ts.js-BY_N9WqF.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-gDIrdF8E.js → _server.ts.js-Bs3squxw.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-DGoN-Aq8.js → _server.ts.js-D7Hh_LA3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-BhzdmLvA.js → _server.ts.js-CnkZHmPh.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CVlgrFXb.js → _server.ts.js-CFVR6_o4.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-9aoy7ZF7.js → _server.ts.js-DN70VJQU.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CyT2Pbcp.js → _server.ts.js-BeRBlf5D.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-Dnqm4dd6.js → _server.ts.js-ThZS58R-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-CavwYEx8.js → _server.ts.js-BadTKi0S.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-GROjQZEh.js → _server.ts.js-DVJ4gMGj.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-BJip-5FK.js → _server.ts.js-DUVZe4wn.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-CCBFlYKv.js → _server.ts.js-Bs1bymHZ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-DTIoU2q2.js → _server.ts.js-CKeFPXLR.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-DPoR4y_N.js → _server.ts.js-Bt501lhC.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-t8tNxBTY.js → _server.ts.js-BcHSC1TK.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DMlSei-s.js → _server.ts.js-BH1fGFoq.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-tSLyvPFZ.js → _server.ts.js-gLB2SuJg.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-tTZENAI_.js → _server.ts.js-CjdGWvfb.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-Cx_L25-b.js → _server.ts.js-C1A5OD4E.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-CPyIyXoH.js → _server.ts.js-TBvdVyc-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CXo4suaA.js → _server.ts.js-CIttYBu6.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-D9RmtexN.js → _server.ts.js-D8oCGNZO.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-d8idtHxV.js → _server.ts.js-g1pY8An3.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-BtKPgMMX.js → _server.ts.js-D4TVO5R1.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DfVFlfmn.js → _server.ts.js-xLCMogeA.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-D_5qmDQj.js → _server.ts.js-CI-gKlsl.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-Be52RhNi.js → _server.ts.js-CoM4JCaD.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CmpFGeGG.js → _server.ts.js-d03KFS_3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-yLFiI4pP.js → _server.ts.js-DETako8r.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-CxgKx6i9.js → _server.ts.js-Ca4RBqlr.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-BU9lEbTp.js → _server.ts.js-Bvl_HTXC.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-C0tLOukZ.js → _server.ts.js-BIJzWvqi.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-DPhrDKSA.js → _server.ts.js-DUDgt9UQ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-Bh9SYfJF.js → _server.ts.js-B8EQR_Y9.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CQFR5-Fw.js → _server.ts.js-DtU-nqAz.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-B39cZnfl.js → _server.ts.js-BOxpnZI1.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DF06LxEL.js → _server.ts.js-zD4NOGXM.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-9xLTcS6U.js → _server.ts.js-DojyOKEB.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-LwwnVgqR.js → _server.ts.js-alp8EfXV.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-DeYHHLdF.js → _server.ts.js-BexKsKLn.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-9Q5rh-nV.js → _server.ts.js-Ml6j0WCs.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-DGOWTcmR.js → _server.ts.js-DNnU2Kh1.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Dq1qaQm4.js → _server.ts.js-DWGEum0i.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-IhCd1sEN.js → _server.ts.js-CyCQh4xv.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-4vgjPOMC.js → _server.ts.js-D-Td7jnF.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-CLBgSJYk.js → _server.ts.js-cjltaY9-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-DxYdVc46.js → _server.ts.js-CUbj1mpd.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-B8TvK9f-.js → _server.ts.js-BT1aeWsT.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-DsnLgqhv.js → _server.ts.js-D3zqfuxP.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-ClpXR-UZ.js → _server.ts.js-pWuSZcd6.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BI3HNCv5.js → _server.ts.js-DRdrgqbU.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Eu3LE6pk.js → _server.ts.js-OSwF25f9.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-AQ1oWw8k.js → _server.ts.js-D0ZPP3Hu.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CyR-bXgz.js → _server.ts.js-pob8ZUA4.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Ct9DiA-K.js → _server.ts.js-Dnn1Ck5w.js} +4 -4
- package/build/server/chunks/entries/{hooks.server.js-B-w5pxTt.js → hooks.server.js-Ba5h-Ow1.js} +4 -4
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-BMt02WMM.js → _layout.server.ts.js-daNn9XCs.js} +4 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DwNm2toz.js → _page.server.ts.js-Ca7VKy_t.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-BtxV2jdf.js → _page.svelte.js-CdplbKoe.js} +5 -5
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-D-44hsr0.js → _page.server.ts.js-BmVbkNhh.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BFheQ1G4.js → _page.server.ts.js-DM9Z4DjM.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.svelte.js-ByaF4X4f.js → _page.svelte.js-DfBCOF77.js} +5 -5
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-BMzddleo.js → _page.server.ts.js-V32EvhsD.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-DmjUOiNJ.js → _page.server.ts.js-ByuPMNrs.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-C7rRpkZm.js → _page.server.ts.js-D4hamuGQ.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-n2HUhlCl.js → _page.server.ts.js-CZ66oSeD.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-NEaMeQr4.js → _page.svelte.js-DNx_cf87.js} +3 -3
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-DDLSBK6u.js → _page.server.ts.js-B66YDJlz.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-DXWoDip6.js → _page.server.ts.js-Dg6skd-i.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-nPHleLS6.js → _page.server.ts.js-LCEiVdUu.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-BbPQRuLV.js → _page.server.ts.js-Bx_qWCvz.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-Dxn5UA86.js → _page.server.ts.js-D8qPhcbQ.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-Bs11MPTR.js → _page.server.ts.js-BYMvJBgQ.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-C_FYYuua.js → _page.server.ts.js-DTKHEBOM.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-BW2cUJKc.js → _page.server.ts.js-CXFxuG8I.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-D2t07ExQ.js → _page.server.ts.js-B_pDK0q3.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-DLp30Ukw.js → _page.server.ts.js-8pc_xbfL.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-BmL2mnpV.js → _page.server.ts.js-CqOE_I-8.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DYuR0iKH.js → _page.server.ts.js-D7Xv3cWu.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DL17BAP4.js → _page.server.ts.js-DmJ-JBh7.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-DnxuSVns.js → _page.server.ts.js-DqCDx4eM.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-DJJ0XJa2.js → _page.svelte.js-Dx2EX3aP.js} +4 -4
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-7MjU8ocn.js → _page.server.ts.js-pBPhifMt.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-CkdUjMfH.js → _page.server.ts.js-DAhkOhKH.js} +2 -2
- package/build/server/chunks/{handler-Dvpbthxv.js → handler-DsF0-ycu.js} +3 -3
- package/build/server/chunks/{index.js-Xrzvi4-9.js → index.js-DtxhOtsl.js} +2 -2
- package/build/server/chunks/{manifest.js-CFBVUirS.js → manifest.js-B9fXERnp.js} +85 -85
- package/build/server/chunks/nodes/{0.js-xs6nMfls.js → 0.js-idvnpSGx.js} +6 -6
- package/build/server/chunks/nodes/{1.js-D44sE2Qh.js → 1.js-BbZVNmme.js} +2 -2
- package/build/server/chunks/nodes/{10.js-DKDSJpCU.js → 10.js-7xwnxTBd.js} +2 -2
- package/build/server/chunks/nodes/{11.js-BPuus2gN.js → 11.js-CN7D7Wtv.js} +6 -6
- package/build/server/chunks/nodes/{12.js-3aQPHNvX.js → 12.js-D0a9JV9J.js} +7 -7
- package/build/server/chunks/nodes/{13.js-gL8EHuM-.js → 13.js-Gyan1Es0.js} +7 -7
- package/build/server/chunks/nodes/{14.js-BYQRhe5N.js → 14.js-BN2FgqUX.js} +8 -8
- package/build/server/chunks/nodes/{15.js-Dqwr_Gqz.js → 15.js-iDbZKSJO.js} +7 -7
- package/build/server/chunks/nodes/{16.js-D3I5Ls7F.js → 16.js-5G5kk7kt.js} +6 -6
- package/build/server/chunks/nodes/{17.js-DzfLONnh.js → 17.js-nlIQGV44.js} +2 -2
- package/build/server/chunks/nodes/{19.js-Fwi2_4BB.js → 19.js-CGgokEZO.js} +6 -6
- package/build/server/chunks/nodes/{2.js-oxG8p7dM.js → 2.js-worFzw4y.js} +7 -7
- package/build/server/chunks/nodes/{20.js-wR9uHTLT.js → 20.js-D0I7U4C9.js} +6 -6
- package/build/server/chunks/nodes/{21.js-C0wKxVsy.js → 21.js-CvRY-52P.js} +6 -6
- package/build/server/chunks/nodes/{22.js-BK5wsznE.js → 22.js-DwK7gqoW.js} +6 -6
- package/build/server/chunks/nodes/{23.js-DIBFab3_.js → 23.js-CJjm9tcQ.js} +7 -7
- package/build/server/chunks/nodes/{24.js-CJkXQqMe.js → 24.js-CckNMPKn.js} +4 -4
- package/build/server/chunks/nodes/{25.js-DjfBbASo.js → 25.js-BBDACqTg.js} +7 -7
- package/build/server/chunks/nodes/{26.js-DohrkkWV.js → 26.js-BWq3B0wW.js} +8 -8
- package/build/server/chunks/nodes/{27.js-Y78p8Mkp.js → 27.js-MgKQWlAq.js} +6 -6
- package/build/server/chunks/nodes/{28.js-B9PS_kQT.js → 28.js-xpq2RBgo.js} +6 -6
- package/build/server/chunks/nodes/{3.js-C0Y4_J3H.js → 3.js-DOJOLxlE.js} +6 -6
- package/build/server/chunks/nodes/{4.js-g7Rvo_y_.js → 4.js-acwNoMWi.js} +7 -7
- package/build/server/chunks/nodes/{5.js-BI6tJn-5.js → 5.js-DYuaSV-G.js} +5 -5
- package/build/server/chunks/nodes/{6.js-C91r2w4N.js → 6.js-DA40mCwd.js} +6 -6
- package/build/server/chunks/nodes/{7.js-DvHVz249.js → 7.js-D9HXWm_c.js} +6 -6
- package/build/server/chunks/nodes/{8.js-DkNCnJN3.js → 8.js-Dsx-zrYi.js} +7 -7
- package/build/server/chunks/nodes/{9.js-CtTaAH6h.js → 9.js-D5YifYpK.js} +2 -2
- package/dist/cli.js +48 -1
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/10ROkIhN.js.br +0 -0
- package/build/client/_app/immutable/chunks/10ROkIhN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/3bC4bjBI.js.br +0 -0
- package/build/client/_app/immutable/chunks/3bC4bjBI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BibAhIE3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BibAhIE3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BlJ-AbFb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BlJ-AbFb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bm0kgZn-.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bm0kgZn-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrrBgLVG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrrBgLVG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C9ed1vbc.js +0 -2
- package/build/client/_app/immutable/chunks/C9ed1vbc.js.br +0 -0
- package/build/client/_app/immutable/chunks/C9ed1vbc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEhBf-yV.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEhBf-yV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNKI0WqS.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNKI0WqS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CR4i-JqL.js.br +0 -0
- package/build/client/_app/immutable/chunks/CR4i-JqL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRK1Q1tO.js +0 -1
- package/build/client/_app/immutable/chunks/CRK1Q1tO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRK1Q1tO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgxyeCeP.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgxyeCeP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzbTCvH8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzbTCvH8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9coJX5q.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9coJX5q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHss7SEY.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHss7SEY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMDL4MuU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMDL4MuU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dk0_dSfe.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dk0_dSfe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrciKyih.js +0 -5
- package/build/client/_app/immutable/chunks/DrciKyih.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrciKyih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ns_iZj-K.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ns_iZj-K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Om8BmhPE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Om8BmhPE.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.5tTdQ_02.js.br +0 -0
- package/build/client/_app/immutable/entry/app.5tTdQ_02.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C62i1LAH.js +0 -1
- package/build/client/_app/immutable/entry/start.C62i1LAH.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C62i1LAH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.nyx2R9Qf.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.nyx2R9Qf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BkR_IPYS.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BkR_IPYS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.BS87tv1l.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BS87tv1l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DddxDkJ4.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DddxDkJ4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.C9qwM8Di.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.C9qwM8Di.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CAV9o7bd.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CAV9o7bd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.B_Err-YM.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.B_Err-YM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.1PcFIFZ6.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.1PcFIFZ6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.CgtK_xkO.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CgtK_xkO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BQxfvX3S.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BQxfvX3S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.Dxd8I8Tp.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.Dxd8I8Tp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.D4QEyk_4.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.D4QEyk_4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DYaAa9CP.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DYaAa9CP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.9uUpE64z.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.9uUpE64z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.DcPvaPFW.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DcPvaPFW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.BRDz0rFN.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BRDz0rFN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.BStaoFul.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BStaoFul.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BlmlFpt5.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.BlmlFpt5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.C4_nQTcn.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.C4_nQTcn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.CQY0WaJv.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.CQY0WaJv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DxySQdM7.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DxySQdM7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BjZ-CStr.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BjZ-CStr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CDJqtSQa.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CDJqtSQa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Cj9o22fB.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Cj9o22fB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BN9L31QZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BN9L31QZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CidVBUPU.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CidVBUPU.js.gz +0 -0
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ Node.js 22 or newer, a Firstmate home (the setup wizard makes one), and `tmux` a
|
|
|
106
106
|
### Privacy and safety
|
|
107
107
|
|
|
108
108
|
- Wheelhouse listens on `127.0.0.1` only and refuses requests from anywhere else.
|
|
109
|
-
- Reaching Wheelhouse from Docker, a cloud workspace or another computer? A plugin such as [Localhost proxy](https://github.com/chrisjowen/localhost-proxy-wheelhouse) can open the crew's localhost previews and links through Wheelhouse's own port; see [Host routes and address rewrites](docs/plugins.md#host-routes-and-address-rewrites).
|
|
109
|
+
- Reaching Wheelhouse from Docker, a cloud workspace or another computer? A plugin such as [Localhost proxy](https://github.com/chrisjowen/localhost-proxy-wheelhouse) can open the crew's localhost previews and links through Wheelhouse's own port; see [Host routes and address rewrites](docs/plugins.md#host-routes-and-address-rewrites). In a hosted dev environment (Ona/Gitpod, GitHub Codespaces, or any host whose ports have URLs of their own, with `--preview-url`), Wheelhouse opens them at the environment's own URL for their port; see [Wheelhouse in a hosted dev environment](docs/guide.md#wheelhouse-in-a-hosted-dev-environment).
|
|
110
110
|
- Everything you type goes to Firstmate; Wheelhouse never stops, reconfigures or bypasses it.
|
|
111
111
|
- Dictation (Ctrl/⌘+Shift+Space, hold for push-to-talk) uses the browser's built-in speech recognition. The microphone is on only while you dictate; in Chrome and Edge your voice goes to the browser maker's speech service (Google, in Chrome). Wheelhouse never records or stores audio, and says so before first use.
|
|
112
112
|
- [Wheelhouse Cloud](docs/guide.md#wheelhouse-cloud) lets you use this Wheelhouse from any browser through a hosted gateway (`https://cloud.chrisjowen.net` by default, or your own): it is off until you press **Start** on the **Remotes** page, and the machine dials out, keeps its key, and relays only to Wheelhouse and its previews.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./
|
|
1
|
+
import{p as r}from"./w66b3iDh.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as ee}from"./
|
|
1
|
+
import{l as ee}from"./BNXbHZ4s.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as r,o as D,b as oe}from"./DFFTcnMk.js";import{i as m}from"./fxwDaXQ6.js";import{a as A,e as H,f as J,j as re,k as ie,r as ne,s as le}from"./VI4uBLfk.js";import{L as Y}from"./DLeaKE5r.js";import{C as B}from"./D1KdArBH.js";import{a as pe}from"./DJKfepuw.js";import{p as G}from"./DtxmqMMR.js";async function _(e,a,i){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(i??{})}),d=await p.json().catch(()=>null);return p.ok&&d?{ok:!0,value:d}:{ok:!1,error:d?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>_("/api/plugins/updates",null),Ne=e=>_("/api/plugins/updates",e),Oe=(e=!1)=>_(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>_("/api/plugins/inspect",a,e),We=(e,a,i)=>_("/api/plugins/install",i,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Ae=(e,a,i)=>_(`/api/plugins/${encodeURIComponent(e.id)}/update`,i,{ref:e.ref,commit:e.commit,settings:a});function Fe(e=6e4){return new Promise(a=>{const i=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(i),p(),a(!0)})})}const Le=(e,a,i)=>_(`/api/plugins/${encodeURIComponent(e)}/config`,i,a),De=(e,a)=>_(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
|
|
2
2
|
change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function He(e,a){var i=de(),p=h(i),d=h(p),w=h(d);{var I=s=>{Y(s,{class:"size-4 animate-spin text-sea"})},S=s=>{B(s,{class:"size-4 text-success"})};m(w,s=>{a.phase==="saving"?s(I):s(S,-1)})}var o=f(w,1,!0);b(d);var g=f(d,2),P=h(g);{var R=s=>{Y(s,{class:"size-4 animate-spin text-sea"})},E=s=>{B(s,{class:"size-4 text-success"})},N=s=>{var j=ce();l(s,j)};m(P,s=>{a.phase==="restarting"||a.phase==="slow"?s(R):a.phase==="done"?s(E,1):s(N,-1)})}te(),b(g),b(p);var O=f(p,2);{var q=s=>{var j=ue();l(s,j)};m(O,s=>{a.phase==="slow"&&s(q)})}b(i),k(()=>{z(o,a.label),A(g,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,i)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Je=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var fe=u('<span class="text-danger" aria-hidden="true"> *</span>'),me=u('<span class="text-muted-foreground"> (optional)</span>'),_e=u("<option>Not set</option>"),ge=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Ye(e,a){se(a,!0);let i=G(a,"answers",15),p=G(a,"disabled",3,!1);const d="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,S=>S.key,(S,o)=>{var g=ke(),P=h(g),R=h(P,!0),E=f(R);{var N=n=>{var t=fe();l(n,t)},O=n=>{var t=me();l(n,t)};m(E,n=>{r(o).required?n(N):n(O,-1)})}b(P);var q=f(P,2);{var s=n=>{var t=be();A(t,1,J(d));var x=h(t);{var Q=c=>{var v=_e();v.value=v.__value="",l(c,v)};m(x,c=>{r(o).required||c(Q)})}var V=f(x);{var X=c=>{var v=L(),C=W(v);H(C,17,()=>r(o).options,y=>y.value,(y,F)=>{var U=ge(),$=D(U,!0),T={};k(()=>{z($,r(F).label),T!==(T=r(F).value)&&(U.value=(U.__value=T)??"")}),l(y,U)}),l(c,v)},Z=c=>{var v=he(),C=W(v);C.value=C.__value="yes";var y=f(C,2);y.value=y.__value="no",l(c,v)};m(V,c=>{r(o).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=r(o).required,t.disabled=p()}),ie(t,()=>i()[r(o).key],c=>i(i()[r(o).key]=c,!0)),l(n,t)},j=n=>{var t=xe();ne(t),A(t,1,J(d)),k(()=>{le(t,"inputmode",r(o).type==="number"?"decimal":void 0),t.required=r(o).required,t.disabled=p()}),pe(t,()=>i()[r(o).key],x=>i(i()[r(o).key]=x,!0)),l(n,t)};m(q,n=>{r(o).type==="boolean"||r(o).options?n(s):n(j,-1)})}var K=f(q,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${r(o).description??""??""}${r(o).type==="list"?`${r(o).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};m(K,n=>{(r(o).description||r(o).type==="list")&&n(M)})}b(g),k(()=>z(R,r(o).title)),l(S,g)}),l(e,w),oe()}export{He as C,Ye as S,Je as a,Fe as b,Le as c,Te as d,Ne as e,ve as f,We as i,De as l,Oe as m,Ee as p,Ae as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import"./DsnmJJEf.js";import{m as g,g as l,v as m,p as V,u as q,A as I,f as X,s as Y,t as O,a as W,b as Z,i as _,o as tt,d as et,c as G,q as N}from"./DFFTcnMk.js";import{i as st}from"./fxwDaXQ6.js";import{s as nt}from"./VI4uBLfk.js";import{b as rt}from"./C_YTgp31.js";import{p as C}from"./DtxmqMMR.js";import{p as ot}from"./AiTV8eMU.js";import{S as A}from"./BXN538J3.js";import{r as it}from"./xjN9NojQ.js";import{w as at}from"./BNXbHZ4s.js";const ut=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),ct=e=>Number.isInteger(e)&&e>=1&&e<=65535;function lt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!ut.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return ct(s)?s:null}function dt(e,t){const s=lt(e);if(s===null||t.reserved?.includes(s))return e;const n=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${n.pathname}${n.search}${n.hash}`}const K=new Set(["127.0.0.1","localhost"]);function Zt(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let n=!0;try{n=new URL(e).origin===t}catch{}return n?s:`${s} allow-same-origin`}const ht=e=>Number.isInteger(e)&&e>=1&&e<=65535;function mt(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!K.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return ht(s)?s:null}function ft(e,t,s){const n=t?mt(e):null;if(n===null||!t)return e;const r=s.port||(s.protocol==="https:"?"443":"80");if(K.has(s.hostname.toLowerCase())&&String(n)===r)return e;const i=new URL(e),a=t.replace("{port}",String(n));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class pt{#t=g(null);get to(){return l(this.#t)}set to(t){m(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){m(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){m(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?it(t,this.remote,location.origin):this.hosted?dt(t,this.hosted):this.to?ft(t,this.to,location):t}}const R=new pt;function te(e){const t=n=>{if(!R.active)return;const r=n.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!r)return;const i=R.view(r.href);i!==r.href&&(r.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const n of s)e.addEventListener(n,t,!0);return()=>{for(const n of s)e.removeEventListener(n,t,!0)}}async function gt(e,t,s,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[A]:s},body:JSON.stringify(t)});if(r.ok){const a=await r.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:r.status===202}}return{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function yt(e,t,s){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),r=await n.json().catch(()=>null);return n.ok&&Array.isArray(r?.points)?{ok:!0,points:r.points}:{ok:!1,error:r?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const kt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function bt(e){try{const t=await fetch(`/api/services?${kt(e)}`);return t.ok?await t.json():null}catch{return null}}async function wt(e,t,s=null){const n=window.open("","_blank");try{n?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let r=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});r=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{r=null}const i=r?.state==="running"?s??r.url:null;if(i){const a=R.view(i);n?n.location.href=a:window.open(a,"_blank")}else n?.close();return r}const vt=5e3,U=new Map;function St(e,t){let s=U.get(e);return s||(s=t(e).catch(n=>{throw U.delete(e),n}),U.set(e,s)),s}const P=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function xt(e,t){const s=e.pluginId,n=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},r=i=>{const a=typeof i=="object"&&i!==null?i:{},d=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return d?{taskId:d,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(n(i,a.project)),launch:async(i,a={})=>t.launch(n(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??P)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=r(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??P)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=r(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function _t(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await St(t.ui,t.importer??(r=>import(r)))}catch(r){throw new Error(`its UI bundle did not load (${r instanceof Error?r.message:String(r)})`)}let n;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((r,i)=>{n=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??vt)})])}finally{clearTimeout(n)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var Et=G('<p class="text-sm text-muted-foreground"> </p>'),Tt=G('<div class="contents"></div> <!>',1);function ee(e,t){V(t,!0);let s=C(t,"preview",3,void 0),n=C(t,"quiet",3,!1);const r=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),d=g(null),b=g(null);q(()=>{if(!l(a)||!l(r))return;const k=l(a);let v=!1,T=null;return m(b,null),_t(k,{tag:l(r),ui:l(i),data:I(()=>t.data),entry:I(()=>t.entry),host:xt(I(()=>t.entry),{status:bt,launch:wt,feedback:gt,summarise:yt,token:()=>ot.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():m(d,o,!0)},o=>{v||m(b,o.message,!0)}),()=>{v=!0,T?.remove(),m(d,null)}}),q(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var y=Tt(),x=X(y);rt(x,k=>m(a,k),()=>l(a));var E=Y(x,2);{var w=k=>{var v=Et(),T=tt(v);O(()=>et(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),W(k,v)};st(E,k=>{l(b)&&!n()&&k(w)})}O(()=>nt(x,"data-plugin-element",l(r))),W(e,y),Z()}const At=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,D=/^\[Request interrupted by user/,jt=/\u001b\[[0-9;?]*[A-Za-z]/g,L=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
|
|
2
|
+
`)[0].trim(),$t=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function It(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||M(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:L(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:L(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:L(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:$t(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:M(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||M(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function Ut(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
|
|
3
|
+
`):""}const j=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),Lt=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,F=e=>{const t=e.match(Lt);return t&&j(t[1])||null};function $(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function J(e){const t=$(e,"command-name");if(!t)return null;const s=$(e,"command-args");return s?`${t} ${s}`:t}function Mt(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(n=>({label:String(n?.label??""),description:String(n?.description??"")}))}))}function Rt(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([r,i])=>[r,String(i)]));const n={};for(const r of t.matchAll(/"([^"]+)"="([^"]*)"/g))n[r[1]]=r[2];return n}function qt(e){const t=[],s=new Map,n=new Map;let r=null,i=null,a=null,d=null,b=!1;const y=()=>{i=null},x=o=>(i||(i={kind:"turn",id:o.uuid,parts:[],at:o.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:b?"background":"captain"},b=!1,t.push(i),a=i),i),E=o=>{const p=x(o),u=p.parts[p.parts.length-1];if(u?.kind==="activity")return u;const c={kind:"activity",id:`${o.uuid}-a`,steps:[]};return p.parts.push(c),c},w=(o,p,u={})=>{y(),b=!1,t.push({kind:"user",id:o.uuid,text:p,at:o.timestamp,queued:!!u.queued,command:!!u.command})},k=(o,p,u,c=o.uuid)=>{i&&E(o).steps.push({kind:"context",id:c,label:p,detail:u})};for(const o of e){if(!o||typeof o!="object"||o.isSidechain)continue;const p=o.timestamp??null;switch(o.type){case"ai-title":r=o.aiTitle??r;break;case"user":{const u=o.message?.content;if(typeof u=="string")if(o.origin?.kind==="task-notification"||u.trimStart().startsWith("<task-notification>"))y(),b=!0;else if(o.isMeta){const c=F(u);c?w(o,c,{queued:!0}):k(o,"Context added",u)}else if(D.test(u.trim()))a&&(a.interrupted=!0);else{const c=J(u);if(c)w(o,c,{command:!0});else if(!u.includes("<local-command-stdout>")){const h=j(u);h&&w(o,h)}}else if(Array.isArray(u))for(const c of u)if(c?.type==="tool_result"){const h=Ut(c.content),f=s.get(c.tool_use_id);f&&(f.result=h,f.isError=!!c.is_error);const S=n.get(c.tool_use_id);S&&(S.answers=c.is_error?{}:Rt(o,h))}else if(c?.type==="text"){const h=String(c.text??""),f=F(h);if(D.test(h.trim()))a&&(a.interrupted=!0);else if(f)w(o,f,{queued:!0});else if(o.isMeta||o.sourceToolUseID){const S=h.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";k(o,S,h,`${o.uuid}-${S}`)}else{const S=j(h);S&&w(o,S)}}else c?.type==="image"&&w(o,"[image]");break}case"assistant":{for(const u of o.message?.content??[])if(u?.type==="thinking"||u?.type==="redacted_thinking"){const c=d&&p?Date.parse(p)-Date.parse(d):null;E(o).steps.push({kind:"thinking",id:`${o.uuid}-th`,ms:c})}else if(u?.type==="tool_use"&&u.name==="AskUserQuestion"){const c={kind:"question",id:u.id,questions:Mt(u.input),answers:null};n.set(u.id,c),x(o).parts.push(c)}else if(u?.type==="tool_use"){const c=It(String(u.name),u.input??{}),h={kind:"tool",id:u.id,name:String(u.name),...c,input:u.input,result:null,isError:!1};s.set(u.id,h),E(o).steps.push(h)}else if(u?.type==="text"){if(!String(u.text??"").trim())continue;x(o).parts.push({kind:"text",id:`${o.uuid}-t`,text:u.text})}break}case"attachment":{const u=o.attachment??{};if(u.type==="queued_command"&&typeof u.prompt=="string"&&(u.commandMode??"prompt")==="prompt"){const c=j(u.prompt);c&&w(o,c,{queued:!0})}else if(u.type==="hook_additional_context"){const c=Array.isArray(u.content)?u.content.join(`
|
|
4
|
+
`):String(u.content??"");k(o,`Hook added context${u.hookEvent?` (${u.hookEvent})`:""}`,c)}break}case"system":{if(o.subtype==="turn_duration")a&&(a.durationMs=o.durationMs??null,a.done=!0),y();else if(o.subtype==="away_summary")y(),t.push({kind:"notice",id:o.uuid,title:"While you were away",detail:String(o.content??""),at:o.timestamp});else if(o.subtype==="local_command"){const u=String(o.content??""),c=$(u,"local-command-stdout")??$(u,"local-command-stderr"),h=J(u);if(h)w(o,h,{command:!0});else if(c!==null){const f=c.replace(jt,"").trim();f&&t.push({kind:"output",id:o.uuid,text:f,at:o.timestamp})}}break}}p&&(d=p)}const v=[];return{items:t.filter((o,p)=>{if(o.kind!=="turn"||o.trigger!=="background")return!0;const u=o.parts.filter(f=>f.kind==="text").map(f=>f.text).join(`
|
|
5
|
+
`).trim(),h=!o.parts.some(f=>f.kind==="question")&&(!u||At.test(u));return v.push({id:o.id,at:o.at,durationMs:o.durationMs,done:o.done||p<t.length-1,outcome:h?"quiet":"reported"}),!h}),title:r,checks:v}}function se(e){const t=new Map;let s=!1,n=0;for(const i of e){if(i.kind==="thinking"&&(s=!0,n+=i.ms??0),i.kind!=="tool")continue;const a=t.get(i.noun[0])??{n:0,noun:i.noun};a.n++,t.set(i.noun[0],a)}const r=[...t.values()].map(i=>`${i.n} ${i.n===1?i.noun[0]:i.noun[1]}`);return r.length?r.join(", "):s?n>=1e3?`Thought for ${Ot(n)}`:"Thought briefly":"Read some context"}function Ot(e){if(e==null||e<0)return"";const t=Math.round(e/1e3);if(t<60)return`${t}s`;const s=Math.floor(t/60);return s<60?`${s}m ${t%60}s`:`${Math.floor(s/60)}h ${s%60}m`}function ne(e){const t=[];for(const s of e)if(s.kind==="turn"){for(const n of s.parts)if(n.kind==="activity")for(const r of n.steps)r.kind==="tool"&&r.result!==null&&r.name.startsWith("mcp__")&&t.push(r.id)}return t}const Wt=2,B=e=>` ${e.replace(/\s+/g," ").trim()} `,H=e=>e[e.length-1]?.id??null,Nt=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),Q=e=>e?.kind==="turn";function Ct(e,t){const s=new Map;return e.filter(n=>{if(n.state==="sending"||n.state==="failed")return!0;const r=Nt(t,n.after),i=t.slice(r+1);if(n.via==="inbox")return!i.some(Q);const a=B(n.text),d=s.get(a)??0;return i.filter(y=>y.kind==="user"&&B(y.text).includes(a)).length>d?(s.set(a,d+1),!1):i.filter(y=>Q(y)&&y.done).length<Wt})}function re(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const z=6e3;class Pt{#t=g(null);get session(){return l(this.#t)}set session(t){m(this.#t,t,!0)}#e=g(null);get source(){return l(this.#e)}set source(t){m(this.#e,t,!0)}#s=g([]);get records(){return l(this.#s)}set records(t){m(this.#s,t)}#n=g("connecting");get connection(){return l(this.#n)}set connection(t){m(this.#n,t,!0)}#r=g(0);get resets(){return l(this.#r)}set resets(t){m(this.#r,t,!0)}#o=g(!1);get synced(){return l(this.#o)}set synced(t){m(this.#o,t,!0)}#i=g(N([]));get commands(){return l(this.#i)}set commands(t){m(this.#i,t,!0)}#a=_(()=>qt(this.records));get chat(){return l(this.#a)}set chat(t){m(this.#a,t)}#u=_(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return l(this.#u)}set working(t){m(this.#u,t)}#c=_(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&this.working);get atWork(){return l(this.#c)}set atWork(t){m(this.#c,t)}#l=g(N([]));get outbox(){return l(this.#l)}set outbox(t){m(this.#l,t,!0)}#d=_(()=>Ct(this.outbox,this.chat.items));get pending(){return l(this.#d)}set pending(t){m(this.#d,t)}close=null;connect(){if(this.close)return()=>{};this.synced=!1;const t=s=>{s.addEventListener("session",n=>{this.session=JSON.parse(n.data),this.connection="open"}),s.addEventListener("reset",n=>{this.source=JSON.parse(n.data),this.records=[],this.resets++}),s.addEventListener("records",n=>{const r=[...this.records,...JSON.parse(n.data)];this.records=r.length>z?r.slice(-z):r}),s.addEventListener("synced",()=>this.synced=!0)};return this.close=at("/api/firstmate/chat",t,s=>this.connection=s),this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}async send(t,s,n,r){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:H(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],n,r)}retry(t,s,n){const r=this.outbox.find(i=>i.id===t);!r||r.state!=="failed"||(r.after=H(this.chat.items),this.deliver(r,s,n))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,n){t.state="sending",t.error=null;const r=t.via==="inbox"?await Ft(t.text,s):await Dt("/api/firstmate/input",s,{text:t.text});return r.ok?t.state=n&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=r.error),r}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const oe=new Pt;async function Dt(e,t,s){try{const n=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify(s??{})});return n.ok?{ok:!0}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Ft(e,t,s=null,n=`wh-${crypto.randomUUID()}`){try{const r=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":n,[A]:t},body:JSON.stringify({text:e,taskId:s})});return r.ok?{ok:!0,pending:r.status===202}:{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{ee as P,R as a,K as b,se as c,Ot as d,oe as e,Zt as f,Dt as g,ne as h,re as p,te as r,Ft as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as _e,r as me,p as W}from"./DtxmqMMR.js";import{I as ze,t as It}from"./CDH1GGn5.js";import{p as st}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as _e,r as me,p as W}from"./DtxmqMMR.js";import{I as ze,t as It}from"./CDH1GGn5.js";import{p as st}from"./AiTV8eMU.js";import{a as jt,o as Ct}from"./l_pUsC7d.js";import{k as Wt,A as Ft,m as M,q as it,g as t,v as b,l as lt,p as Fe,u as We,h as c,s as u,r as l,t as D,a as p,b as Ke,i as _,bE as Kt,o as F,d as O,j as Be,f as Ae,c as f,y as L,n as fe,bF as Et,z as Ut,G as gt,x as Mt,aC as Bt}from"./DFFTcnMk.js";import{i as $}from"./fxwDaXQ6.js";import{a as Le,s as R,f as Yt,d as ut,l as Gt,e as rt,i as Jt,r as Vt,b as Xt}from"./VI4uBLfk.js";import{b as Ge}from"./C_YTgp31.js";import{z as Qt}from"./DJNADPa5.js";import{a as Dt,f as Zt,s as ea,P as ta}from"./BL5PiS2m.js";import{c as aa}from"./BNXbHZ4s.js";import{p as nt}from"./5I3kFTxl.js";import{k as ra,X as Ye}from"./szetP8fm.js";import{R as Pt}from"./CxBV2op4.js";import{E as At}from"./CDPChpWC.js";import{h as na,m as sa}from"./DWWzLM9n.js";import{a as Lt}from"./DJKfepuw.js";import{S as ia}from"./BXN538J3.js";import{c as Rt}from"./BY173wTD.js";import{M as pt}from"./POTd6WHI.js";import{A as oa}from"./ChgpVwh1.js";import{C as la}from"./DiNK0cSx.js";import{C as da}from"./D1KdArBH.js";import{P as xt}from"./CH2k9UCp.js";import{s as ca,a as bt}from"./nShh0HJ4.js";class mt{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#s().observe(e,this.#r),()=>{var o=this.#e.get(e);o.delete(a),o.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){mt.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var ua=new mt({box:"border-box"});function wt(n,e,a){var r=ua.observe(n,()=>a(n[e]));Wt(()=>(Ft(()=>a(n[e])),r))}var va=new Set(["$$slots","$$events","$$legacy"]);function On(n,e){let a=me(e,va);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ha=new Set(["$$slots","$$events","$$legacy"]);function vt(n,e){let a=me(e,ha);const r={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var pa=new Set(["$$slots","$$events","$$legacy"]);function _t(n,e){let a=me(e,pa);const r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function ma(n,e){let a=me(e,fa);const r={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ga=new Set(["$$slots","$$events","$$legacy"]);function yt(n,e){let a=me(e,ga);const r={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var xa=new Set(["$$slots","$$events","$$legacy"]);function kt(n,e){let a=me(e,xa);const r={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ba=new Set(["$$slots","$$events","$$legacy"]);function wa(n,e){let a=me(e,ba);const r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var _a=new Set(["$$slots","$$events","$$legacy"]);function ya(n,e){let a=me(e,_a);const r={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ka=new Set(["$$slots","$$events","$$legacy"]);function za(n,e){let a=me(e,ka);const r={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Sa=new Set(["$$slots","$$events","$$legacy"]);function $a(n,e){let a=me(e,Sa);const r={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ta=new Set(["$$slots","$$events","$$legacy"]);function Ca(n,e){let a=me(e,Ta);const r={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ea=new Set(["$$slots","$$events","$$legacy"]);function Ma(n,e){let a=me(e,Ea);const r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}const Da="{url}";function Pa(n,e,a){const r=e&&Object.hasOwn(n,e)?n[e]:null;return typeof r!="string"?{href:a.url,external:!0}:{href:r.replace(Da,encodeURIComponent(a.url)),external:!1}}const Nn={review(n,e){const a=st.data?.pullRequestTabs??{};return Pa(a,n,e)}},Aa=15e3,Ot=n=>`url:${n}`,La=n=>n.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(n.slice(4))}`:`/api/tasks/${encodeURIComponent(n)}/preview`,Ra=5e3;class Oa{#e=M(it({}));get checks(){return t(this.#e)}set checks(e){b(this.#e,e,!0)}#t=M(it({}));get failed(){return t(this.#t)}set failed(e){b(this.#t,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const a=this.watching.get(e);a?a.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let r=!1;return()=>{if(r)return;r=!0;const o=this.watching.get(e);!o||--o.count>0||(o.timer&&clearTimeout(o.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const a=this.running.get(e);if(a)return a;const r=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,r),r}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const a=await fetch(La(e));if(!a.ok)throw new Error(String(a.status));this.checks[e]=await a.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const a=this.watching.get(e);if(!a)return;a.timer&&clearTimeout(a.timer);const r=this.checks[e]?.state==="live"?Aa:Ra;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},r)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const Qe=new Oa,zt=500,Ze=n=>n.replace(/\s+/g," ").trim(),Na=(n,e)=>n.length>e?n.slice(0,e-1).trimEnd()+"…":n;function ht(n){const e=n.y<.3333333333333333?"top":n.y<.6666666666666666?"middle":"bottom",a=n.x<1/3?"left":n.x<2/3?"":"right";return e==="middle"&&!a?"the middle":`the ${e}${a?` ${a}`:""}`}const Ha={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function qa(n,e,a){const r=n?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??n;if(r&&r.tagName!=="HTML"&&r.tagName!=="BODY"){const o=r.tagName.toLowerCase(),s=r.getAttribute("role")==="button"?"button":Ha[o]??"part of the page",i=Na(Ze(r.value||r.getAttribute("aria-label")||r.getAttribute("alt")||r.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${s}`:`a ${s} near ${ht(e)}`,detail:`<${o}>${i?` “${i}”`:""}, near ${ht(e)} of the page`}}return{kind:"spot",label:`a spot near ${ht(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const Ia=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,ja=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Wa="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",Fa=n=>n.flatMap((e,a)=>[`${a+1}. ${Ze(e.text)}`,...e.points&&Ze(e.points)?[` Points at: ${Ze(e.points)}`]:[]]);function Ka(n,e,a){return[`Preview feedback for ${n.id} (${Ze(n.title)}), sent together from the Preview tab (${e}):`,...Fa(a.map(r=>({text:r.text,points:r.points?.label??null}))),"",Wa].join(`
|
|
2
2
|
`)}function Hn(n){const e=n.replace(/\r\n?/g,`
|
|
3
3
|
`).split(`
|
|
4
4
|
`),a=Ia.exec(e[0]??""),r=a?null:ja.exec(e[0]??""),o=a??r;if(!o)return null;const s=[];for(const i of e.slice(1)){const d=/^\d+\. (.+)$/.exec(i);if(d){s.push({text:d[1],points:null});continue}const h=/^ {3}Points at: (.+)$/.exec(i);h&&s.length&&(s[s.length-1].points=h[1])}return s.length?{taskId:o[1],title:o[2],url:a?a[3]:null,plugin:r?{id:r[4],name:r[3],subject:r[5]??null}:null,items:s}:null}var Ua=f('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),Ba=f('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),Ya=f('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),Ga=f('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),Ja=f('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),Va=f('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),Xa=f("<!> <!>",1),Qa=f('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),Za=f('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),er=f('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),tr=f('<span class="block text-xs"> </span>'),ar=f('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),rr=f('<p class="text-sm"> </p>'),nr=f('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),sr=f('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),ir=f("<div><!> <div><!></div></div>");function or(n,e){Fe(e,!0);let a=W(e,"taskId",3,null),r=W(e,"url",3,null),o=W(e,"compact",3,!1),s=W(e,"fill",3,!1),i=W(e,"desktop",3,!1),d=W(e,"toolbar",3,!0),h=W(e,"pointing",3,!1),g=W(e,"pin",3,null),P=M(null);function N(T){const k=T.currentTarget.getBoundingClientRect(),H=T.clientX-k.left,q=T.clientY-k.top;let U=null;const be=t($e)?t(le):1;try{U=t(P)?.contentDocument?.elementFromPoint(H/be,q/be)??null}catch{U=null}const se={x:k.width?H/k.width:0,y:k.height?q/k.height:0};e.onpoint?.(qa(U,se,{w:Math.round(k.width),h:Math.round(k.height)}),se)}const ie={w:1280,h:800};let ue=M(0),Y=M(0),oe=M(0);const ge=_(()=>a()??Ot(r()??""));We(()=>Qe.watch(t(ge)));const K=_(()=>Qe.checks[t(ge)]??null),re=_(()=>!!Qe.failed[t(ge)]),G=_(()=>t(K)?.state==="live"),ne=_(()=>t(K)?.url??null),ve=_(()=>t(ne)&&t(K)?Dt.view(t(ne)):null),Q=_(()=>t(ve)?Zt(t(ve),location.origin):""),le=_(()=>t(Y)?t(Y)/ie.w:0),$e=_(()=>s()&&i()&&t(le)>0&&t(le)<1);function Te(){Kt(ue),Qe.refresh(t(ge))}var Re={reload:Te},xe=ir(),he=c(xe);{var Oe=T=>{var k=Ga(),H=c(k),q=F(H,!0),U=u(H,2);{var be=z=>{var E=Ua(),V=c(E);Pt(V,{class:"size-3.5"}),l(E),D(()=>{R(E,"aria-label",t(G)?"Reload the preview":"Check the preview again"),R(E,"title",t(G)?"Reload":"Check again")}),L("click",E,Te),p(z,E)};$(U,z=>{(t(G)||t(K)?.state==="blocked"||t(K)?.state==="down")&&z(be)})}var se=u(U,2);{var Ce=z=>{var E=Ba(),V=u(c(E));At(V,{class:"size-3.5","aria-hidden":"true"}),l(E),D(()=>R(E,"href",t(ve))),p(z,E)};$(se,z=>{(t(G)||t(K)?.state==="blocked")&&z(Ce)})}var J=u(se,2);{var I=z=>{var E=Ya(),V=c(E);_t(V,{class:"size-3.5","aria-hidden":"true"}),fe(),l(E),L("click",E,function(...ce){e.onfullscreen?.apply(this,ce)}),p(z,E)};$(J,z=>{e.onfullscreen&&t(G)&&z(I)})}l(k),D(()=>{R(H,"title",t(ne)??void 0),O(q,t(ne)??"Live preview")}),p(T,k)};$(he,T=>{d()&&T(Oe)})}var pe=u(he,2),y=c(pe);{var A=T=>{var k=Be(),H=Ae(k);ra(H,()=>`${t(ve)} ${t(ue)}`,q=>{var U=Be(),be=Ae(U);{var se=J=>{var I=Xa(),z=Ae(I);{var E=C=>{var S=Ja();D(()=>{R(S,"src",t(ve)),R(S,"title",`Live preview of ${t(ne)??""}`),R(S,"sandbox",t(Q)),S.inert=!!e.onopen,Le(S,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),ut(S,`width:${ie.w}px;height:${ie.h}px;transform:scale(${t(le)??""})`)}),p(C,S)};$(z,C=>{t(le)&&C(E)})}var V=u(z,2);{var ce=C=>{var S=Va(),Z=c(S),ee=c(Z);_t(ee,{class:"size-3.5","aria-hidden":"true"}),fe(),l(Z),l(S),L("click",S,function(...m){e.onopen?.apply(this,m)}),p(C,S)};$(V,C=>{e.onopen&&C(ce)})}p(J,I)},Ce=J=>{var I=er(),z=Ae(I);Ge(z,C=>b(P,C),()=>t(P));var E=u(z,2);{var V=C=>{var S=Qa(),Z=c(S),ee=c(Z);ya(ee,{class:"size-4","aria-hidden":"true"}),fe(),l(Z),l(S),L("click",S,N),p(C,S)},ce=C=>{var S=Za();D(()=>ut(S,`left:${g().x*100}%;top:${g().y*100}%`)),p(C,S)};$(E,C=>{h()?C(V):g()&&C(ce,1)})}D(()=>{R(z,"src",t(ve)),R(z,"title",`Live preview of ${t(ne)??""}`),R(z,"sandbox",t(Q)),Le(z,1,Yt(t($e)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),ut(z,t($e)?`width:${ie.w}px;height:${t(oe)/t(le)}px;transform:scale(${t(le)})`:void 0)}),p(J,I)};$(be,J=>{o()?J(se):J(Ce,-1)})}p(q,U)}),p(T,k)},de=T=>{const k=_(()=>!t(K)&&!t(re)),H=_(()=>t(k)?"Checking the preview…":t(re)?"Could not check the preview":t(K)?.state==="down"?"Preview stopped":t(K)?.state==="blocked"?"Preview cannot be embedded":t(K)?.state==="refused"?"Preview not shown here":"No live preview reported"),q=_(()=>t(k)?"":t(re)?"Wheelhouse did not answer; it will try again.":t(K)?.state==="blocked"?`${t(K).reason} Open it in a new tab instead.`:t(K)?.reason??"");var U=Be(),be=Ae(U);{var se=J=>{var I=ar(),z=c(I);{var E=ee=>{yt(ee,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};$(z,ee=>{t(k)||ee(E)})}var V=u(z,2),ce=c(V),C=F(ce,!0),S=u(ce,2);{var Z=ee=>{var m=tr(),w=F(m,!0);D(()=>O(w,t(q))),p(ee,m)};$(S,ee=>{t(q)&&ee(Z)})}l(V),l(I),D(()=>{Le(ce,1,`font-medium ${t(k)?"":"text-foreground"}`),O(C,t(H))}),p(J,I)},Ce=J=>{var I=sr(),z=c(I),E=c(z);{var V=C=>{var S=rr(),Z=F(S,!0);D(()=>O(Z,t(H))),p(C,S)},ce=C=>{var S=nr(),Z=Ae(S);yt(Z,{class:"mx-auto size-6","aria-hidden":"true"});var ee=u(Z,2),m=F(ee,!0),w=u(ee,2),v=F(w,!0);D(()=>{O(m,t(H)),O(v,t(q))}),p(C,S)};$(E,C=>{t(k)?C(V):C(ce,-1)})}l(z),l(I),p(J,I)};$(be,J=>{o()?J(se):J(Ce,-1)})}p(T,U)};$(y,T=>{t(G)&&t(ve)?T(A):T(de,-1)})}return l(pe),l(xe),D(()=>{Le(xe,1,`min-w-0 ${s()?"flex h-full flex-col":""}`),R(xe,"data-live-preview",t(K)?.state??"checking"),Le(pe,1,`group relative w-full overflow-hidden bg-muted/40 ${d()?"mt-1.5 rounded-lg border":""} ${o()?t(G)?"aspect-[16/10]":"":s()?"min-h-0 flex-1":t(G)?"h-[70vh] min-h-80":"h-40"}`)}),wt(pe,"clientWidth",T=>b(Y,T)),wt(pe,"clientHeight",T=>b(oe,T)),p(n,xe),Ke(Re)}lt(["click"]);const St="wheelhouse-preview-helper",Nt=()=>({said:[],list:[],asking:!1,error:null,sent:null}),lr=Object.freeze(Nt()),Xe=()=>crypto.randomUUID();class dr{#e=M(it({}));get byTask(){return t(this.#e)}set byTask(e){b(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(St)??"{}");if(e&&typeof e=="object"){for(const a of Object.values(e))a.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(St,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??lr}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Nt()),this.byTask[e]}async ask(e,a,r,o){const s=this.of(e),i=a.trim();if(!i&&!r||s.asking)return;s.said.push({id:Xe(),who:"captain",text:i||"What about this?",points:r}),s.asking=!0,s.error=null,this.save();const d=s.said.filter(h=>!h.notice).map(h=>({who:h.who,text:h.text,points:h.points??null}));try{const h=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[ia]:o},body:JSON.stringify({turns:d,list:s.list.map(P=>P.text)})}),g=await h.json().catch(()=>null);!h.ok||!g?.reply?s.error=g?.message??`The helper could not answer (${h.status}).`:s.said.push({id:Xe(),who:"helper",text:g.reply,suggest:g.suggest.map(P=>({text:P,added:!1}))})}catch{s.error="Wheelhouse could not be reached. Try again."}finally{s.asking=!1,this.save()}}accept(e,a,r){const o=this.of(e),s=o.said.findIndex(h=>h.id===a),i=o.said[s]?.suggest?.[r];if(!i||i.added)return;i.added=!0;const d=o.said.slice(0,s).reverse().find(h=>h.who==="captain");o.list.push({id:Xe(),text:i.text,points:d?.points??null}),o.sent=null,this.save()}addOwn(e,a,r=null){const o=a.trim().slice(0,zt);if(!o)return;const s=this.of(e);s.list.push({id:Xe(),text:o,points:r}),s.sent=null,this.save()}edit(e,a,r){const o=this.of(e).list.find(s=>s.id===a);o&&(o.text=r.slice(0,zt),this.save())}remove(e,a){const r=this.of(e),o=r.list.find(s=>s.id===a);r.list=r.list.filter(s=>s.id!==a);for(const s of r.said)for(const i of s.suggest??[])o&&i.text===o.text&&(i.added=!1);this.save()}async send(e,a,r){const o=this.of(e.id),s=o.list.filter(g=>g.text.trim());if(!s.length)return!1;o.error=null;const i=await ea(Ka(e,a,s),r,e.id);if(!i.ok)return o.error=i.error,this.save(),!1;o.sent={at:new Date().toISOString(),count:s.length};const d=e.id.lastIndexOf("@"),h=d>0?`second mate ${e.id.slice(d+1)}`:"Firstmate";return o.list=[],o.said.push({id:Xe(),who:"helper",notice:!0,text:`Sent to ${h}: ${s.length} ${s.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const a=this.of(e);a.said=[],a.error=null,this.save()}}const He=new dr;var cr=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),ur=f("<textarea></textarea>");function vr(n,e){Fe(e,!0);let a=W(e,"ref",15,null),r=W(e,"value",15),o=W(e,"data-slot",3,"textarea"),s=me(e,cr);var i=ur();Et(i),Gt(i,d=>({"data-slot":o(),class:d,...s}),[()=>Rt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Ge(i,d=>a(d),()=>a()),Lt(i,r),p(n,i),Ke()}const hr={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function $t(){if(typeof window>"u")return null;const n=window;return n.SpeechRecognition??n.webkitSpeechRecognition??null}const pr={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},ot=n=>n.trim().split(/\s+/).filter(Boolean),fr=(n,e)=>n.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")===e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,""),Ht=(n,e)=>e.length<=n.length&&e.every((a,r)=>fr(a,n[r]));function Tt(n,e){const a=ot(n);return!a.length||Ht(ot(e),a)?e:/\s$/.test(n)||/^\s/.test(e)?n+e:`${n} ${e}`}function mr(n,e){const a=ot(n),r=ot(e);return!a.length||!Ht(r,a)?e:r.slice(a.length).join(" ")}const gr={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>$t()!==null,start(n,e){const a=$t();if(!a)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const r=new a;r.lang=n,r.continuous=!0,r.interimResults=!0,r.onresult=o=>{let s="",i="";for(let d=0;d<o.results.length;d++){const h=o.results[d];h.isFinal?s=Tt(s,h[0].transcript):i=Tt(i,h[0].transcript)}e.text(s,mr(s,i))},r.onerror=o=>{o.error!=="aborted"&&e.problem(pr[o.error]??"failed")},r.onend=()=>e.end();try{r.start()}catch{e.problem("failed"),e.end()}return{stop:()=>r.stop(),abort:()=>r.abort()}}};let xr=gr;const ft=()=>xr,br=2e3;class wr{#e=M(null);get owner(){return t(this.#e)}set owner(e){b(this.#e,e)}#t=M("idle");get phase(){return t(this.#t)}set phase(e){b(this.#t,e,!0)}#r=M(0);get startedAt(){return t(this.#r)}set startedAt(e){b(this.#r,e,!0)}#s=M(null);get problem(){return t(this.#s)}set problem(e){b(this.#s,e,!0)}#n=null;#a=null;#i=null;active(e){return this.owner===e&&this.phase!=="idle"}start(e,a,r=_r()){this.phase!=="idle"&&this.commit();const o=ft();if(this.owner=e,this.problem=null,!o.supported()){this.problem="unsupported";return}this.#a=a,a.begin(),this.phase="listening",this.startedAt=Date.now();let s=null;const i=()=>s===null||this.#n===s;s=o.start(r,{text:(d,h)=>{i()&&this.#a===a&&a.show(...yr(d,h))},problem:d=>{i()&&(this.problem=d)},end:()=>{i()&&this.#a===a&&this.#o("finish")}}),this.#a===a&&(this.#n=s)}stop(){this.phase==="listening"&&(this.phase="stopping",this.#n?.stop(),this.#i=setTimeout(()=>this.#o("finish"),br))}commit(){this.phase!=="idle"&&this.#o("finish")}cancel(){this.phase!=="idle"&&this.#o("revert")}dismiss(){this.problem=null}#o(e){const a=this.#n,r=this.#a;this.#n=null,this.#a=null,this.#i&&clearTimeout(this.#i),this.#i=null,this.phase="idle",a?.abort(),r?.[e]()}}const ae=new wr;function _r(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function yr(n,e){const a=n.replace(/\s+/g," ").trim(),r=e.replace(/\s+/g," ").trim();return[a,a&&r?` ${r}`:r]}const qt=n=>n&&!/\s$/.test(n)?" ":"",kr=n=>/^[\p{L}\p{N}]/u.test(n)?" ":"";function zr(n){let e="",a="",r="",o=!1;const s=(i,d)=>{n.value=i;try{n.setSelectionRange(d,d)}catch{}n.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=n.value;const i=n.selectionStart??e.length,d=n.selectionEnd??i;a=e.slice(0,i),r=e.slice(d),o=!1},show(i,d){const h=i+d;if(!h)return;const g=a+qt(a)+h;s(g+kr(r)+r,g.length),o=!0},finish(){},revert(){o&&s(e,a.length),o=!1}}}function qn(n,e){let a=null,r=null,o="";const s=i=>{const d=document.createRange();d.setStartAfter(i),d.collapse(!0);const h=window.getSelection();h?.removeAllRanges(),h?.addRange(d)};return{begin(){const i=window.getSelection();let d;i?.rangeCount&&n.contains(i.getRangeAt(0).startContainer)?(d=i.getRangeAt(0),r=d.extractContents()):(d=document.createRange(),d.selectNodeContents(n),d.collapse(!1),r=null);const h=document.createRange();h.setStart(n,0),h.setEnd(d.startContainer,d.startOffset),o=qt(h.toString().replace(/\u00a0/g," ")),a=document.createElement("span"),a.dataset.dictation="",d.insertNode(a)},show(i,d){if(!a)return;const h=document.createTextNode(i||d?o+i:""),g=document.createElement("span");g.className="dictation-forming",g.textContent=d,a.replaceChildren(h,...d?[g]:[]),e()},finish(){if(!a)return;const i=a.textContent??"";if(i){const d=document.createTextNode(i);a.replaceWith(d),(n.contains(document.activeElement)||document.activeElement===n)&&s(d)}else a.replaceWith(r??"");a=null,r=null,e()},revert(){a?.replaceWith(r??""),a=null,r=null,e()}}}const Sr=n=>n.code==="Space"&&n.shiftKey&&(n.metaKey||n.ctrlKey)&&!n.altKey,$r=450;function Tr(n,e,a){let r=0;const o=i=>{if(Sr(i)){if(i.preventDefault(),i.repeat)return;ae.active(e)?(r=0,ae.stop()):(r=Date.now(),a());return}ae.active(e)&&(i.key==="Escape"?(i.preventDefault(),i.stopPropagation(),r=0,ae.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(i.key)||(r=0,ae.commit()))},s=i=>{if(!r||!(i.code==="Space"||["Shift","Meta","Control"].includes(i.key)))return;const d=Date.now()-r;r=0,d>=$r&&ae.active(e)&&ae.stop()};return n.addEventListener("keydown",o),n.addEventListener("keyup",s),()=>{n.removeEventListener("keydown",o),n.removeEventListener("keyup",s)}}var Cr=f('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),Er=f('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),Mr=f('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),Dr=f('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function Pr(n,e){Fe(e,!0);let a=W(e,"label",3,"Dictate"),r=W(e,"size",3,"md"),o=W(e,"disabled",3,!1),s=W(e,"listening",15,!1);const i={};Ut(()=>{s(ae.active(i))});const d=_(()=>s()&&ae.phase==="stopping"),h=_(()=>ae.owner===i?ae.problem:null);let g=M(!1),P=M(it(Date.now())),N=M("Ctrl+Shift+Space");const ie="wheelhouse.voice.noted";let ue=!1;function Y(){if(ue)return!0;try{return localStorage.getItem(ie)==="1"}catch{return!1}}function oe(){if(o())return;const y=ft();if(y.supported()&&y.privacyNote&&!Y()){b(g,!0);return}ae.start(i,e.target()),e.field?.focus()}function ge(){ue=!0;try{localStorage.setItem(ie,"1")}catch{}b(g,!1),oe()}function K(){s()?ae.stop():t(g)?b(g,!1):oe()}const re=_(()=>{const y=Math.max(0,Math.floor((t(P)-ae.startedAt)/1e3));return`${Math.floor(y/60)}:${String(y%60).padStart(2,"0")}`});We(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&b(N,"⌘⇧Space")}),We(()=>{if(!s())return;b(P,Date.now(),!0);const y=setInterval(()=>b(P,Date.now(),!0),250);return()=>clearInterval(y)}),We(()=>{if(e.field)return Tr(e.field,i,oe)}),We(()=>{if(!s()&&!t(g))return;const y=A=>{A.key!=="Escape"||A.defaultPrevented||(A.preventDefault(),s()&&ae.cancel(),b(g,!1))};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)}),jt(()=>{ae.active(i)&&ae.commit()});var G=Dr(),ne=c(G);{var ve=y=>{var A=Cr(),de=F(A,!0);D(()=>O(de,t(d)?"Finishing…":t(re))),p(y,A)};$(ne,y=>{s()&&y(ve)})}var Q=u(ne,2),le=c(Q);{var $e=y=>{{let A=_(()=>r()==="md"?"size-3.5 fill-current":"size-3 fill-current");Ma(y,{get class(){return t(A)}})}},Te=y=>{{let A=_(()=>r()==="md"?"size-4.5":"size-4");ma(y,{get class(){return t(A)}})}};$(le,y=>{s()?y($e):y(Te,-1)})}l(Q);var Re=u(Q,2),xe=F(Re,!0),he=u(Re,2);{var Oe=y=>{var A=Er(),de=c(A),T=F(de,!0),k=u(de,4),H=c(k),q=u(H,2);l(k),l(A),D(U=>O(T,U),[()=>ft().privacyNote]),L("click",H,()=>b(g,!1)),L("click",q,ge),p(y,A)},pe=y=>{var A=Mr(),de=c(A),T=F(de,!0),k=u(de,2),H=c(k);Ye(H,{class:"size-3.5"}),l(k),l(A),D(()=>O(T,hr[t(h)])),L("click",k,()=>ae.dismiss()),p(y,A)};$(he,y=>{t(g)?y(Oe):t(h)&&y(pe,1)})}l(G),D(()=>{R(Q,"aria-label",s()?"Stop dictating":a()),R(Q,"aria-pressed",s()),R(Q,"title",s()?"Stop dictating · Esc cancels":`${a()} (${t(N)}; hold for push-to-talk)`),Q.disabled=o(),R(Q,"data-dictating",s()?"":void 0),Le(Q,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${r()==="md"?"size-9 max-md:size-11":`size-7 ${nt.current?"touch-target":""}`} ${s()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),O(xe,s()?"Listening":"")}),L("mousedown",Q,y=>y.preventDefault()),L("click",Q,K),p(n,G),Ke()}lt(["mousedown","click"]);var Ar=new Set(["$$slots","$$events","$$legacy","value","class"]),Lr=f('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function Rr(n,e){Fe(e,!0);let a=W(e,"value",15),r=me(e,Ar),o=M(null),s=M(!1);var i=Lr(),d=c(i);{let P=_(()=>Rt(e.class,t(s)?"pr-24":"pr-10"));vr(d,_e({get class(){return t(P)}},()=>r,{get ref(){return t(o)},set ref(N){b(o,N,!0)},get value(){return a()},set value(N){a(N)}}))}var h=u(d,2),g=c(h);{let P=_(()=>!!e.disabled);Pr(g,{get field(){return t(o)},target:()=>zr(t(o)),size:"sm",get disabled(){return t(P)},get listening(){return t(s)},set listening(N){b(s,N,!0)}})}l(h),l(i),p(n,i),Ke()}var Or=f('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),Nr=f('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),Hr=f('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),qr=f('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),Ir=f('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),jr=f('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),Wr=f('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),Fr=f('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),Kr=f('<li class="text-sm text-danger" role="alert"> </li>'),Ur=f('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),Br=f('<span class="text-xs text-muted-foreground">· not sent yet</span>'),Yr=f('<p class="text-xs text-muted-foreground"> </p>'),Gr=f('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40 max-md:text-base"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground max-md:size-11" aria-label="Remove from the list"><!></button></li>'),Jr=f('<ol class="flex flex-col gap-1.5"></ol>'),Vr=f('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),Xr=f('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-11 max-md:text-base"/></form></div>'),Qr=f(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as h,g as c,v as d,q as g}from"./DFFTcnMk.js";import{p}from"./
|
|
1
|
+
import{m as h,g as c,v as d,q as g}from"./DFFTcnMk.js";import{p}from"./AiTV8eMU.js";const y=5e3,v=3e3;function w(m,e,a){let r="connecting",n=null,t=null,s=null;const l=i=>{r=i,a(i)},u=()=>{t&&clearTimeout(t),t=null,l("lost")},o=()=>{s=null;const i=new EventSource(m);n=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),u(),s??=setTimeout(o,v);return}r!=="lost"&&l("connecting"),t??=setTimeout(u,y)}),e(i)};return o(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),n?.close(),n=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",A=2*6e4;class T{#e=h(null);get fleet(){return c(this.#e)}set fleet(e){d(this.#e,e,!0)}#t=h(null);get health(){return c(this.#t)}set health(e){d(this.#t,e,!0)}#s=h(null);get messages(){return c(this.#s)}set messages(e){d(this.#s,e,!0)}#a=h("connecting");get connection(){return c(this.#a)}set connection(e){d(this.#a,e,!0)}#n=h(g(Date.now()));get now(){return c(this.#n)}set now(e){d(this.#n,e,!0)}#r=h(0);get revision(){return c(this.#r)}set revision(e){d(this.#r,e,!0)}#l=h(!1);get leader(){return c(this.#l)}set leader(e){d(this.#l,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),r=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),r(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=n=>{const t=n.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const a=new AbortController;let r=()=>{};return navigator.locks.request(S,{signal:a.signal},()=>{const n=this.lead();return new Promise(t=>{r=()=>{n(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),r(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=n=>{this.connection=n,this.post({t:"connection",state:n})},r=w("/api/events",n=>{const t=(s,l)=>n.addEventListener(s,u=>{const o=l(JSON.parse(u.data));this.remember(o),this.apply(o),this.post({t:"event",e:o}),o.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const u=this.claim(l);return{alert:l,fresh:u&&Date.now()-Date.parse(l.at)<=A}})}))},e);return()=>{r(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const r of this.restartListeners)r();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new T;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}export{M as a,C as b,k as c,f as l,w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./DtxmqMMR.js";import{I as Te}from"./CDH1GGn5.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./DFFTcnMk.js";import{i as X}from"./fxwDaXQ6.js";import{s as V,d as Ce,a as te,e as Se}from"./VI4uBLfk.js";import{b as re}from"./C_YTgp31.js";import{c as fe,m as Me}from"./DKQe4Tss.js";import{e as Le,l as ee,c as ae}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as ye,r as ke,p as Z}from"./DtxmqMMR.js";import{I as Te}from"./CDH1GGn5.js";import{l as se,p as de,u as D,g as e,A as oe,v as _,h as k,r as y,t as z,x as le,a as c,b as ue,m as O,i as ie,s as g,o as N,d as w,y as ne,c as T,w as U,f as ve,q as Ee}from"./DFFTcnMk.js";import{i as X}from"./fxwDaXQ6.js";import{s as V,d as Ce,a as te,e as Se}from"./VI4uBLfk.js";import{b as re}from"./C_YTgp31.js";import{c as fe,m as Me}from"./DKQe4Tss.js";import{e as Le,l as ee,c as ae}from"./D6cF08T_.js";import{b as ce,a as Oe}from"./BMTKBS3C.js";import{S as me}from"./B94WFLDK.js";import{X as Ne}from"./szetP8fm.js";var ze=new Set(["$$slots","$$events","$$legacy"]);function pt(r,a){let n=ke(a,ze);const d={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]]};Te(r,ye(()=>n,{get icon(){return d}}))}const Ie="No screenshots saved",Ae="No live preview reported",Pe="No pull request recorded",ht=r=>r.attention?.owner==="captain"&&r.attention.kind==="review";function Fe(r){return r<=0?Ie:`${r} ${r===1?"screenshot":"screenshots"}`}function xt(r,a=null){const n=a??[],d=a?n.length:r.screenshots,u=r.preview?.url??r.passage.link?.url??null;return{shots:n,shotsText:Fe(d),preview:u?{url:u}:null,previewText:u?"Live preview":Ae,pr:r.pr?{url:r.pr.url,label:r.pr.number?`PR #${r.pr.number}`:"Pull request"}:null,prText:r.pr?r.pr.number?`PR #${r.pr.number}`:"Pull request":Pe}}const pe={full:1e3,window:2e3},He=80,he=1.45,Re=11,We=32;function je(r){let a=0;for(const n of r)a=Math.max(a,[...n.trimEnd()].length);return Math.max(He,a)}function Xe(r){const a=r.lineHeight??he,n=Math.max(1,Math.floor(r.cols)),d=r.width/(n*(r.charWidth>0?r.charWidth:.6)),u=Number.isFinite(d)?Math.min(We,Math.max(Re,d)):13,o=Math.floor(u*10)/10,s=Math.max(1,Math.floor(Math.max(0,r.height)/(o*a)));return{fontSize:o,cols:n,rows:s}}function Qe({load:r,intervalMs:a,onresult:n,onerror:d,doc:u}){let o=!1,s=!1,t;const E=()=>{clearTimeout(t),o||(t=setTimeout(x,a))},x=async()=>{if(!(o||s)){if(u.hidden)return E();s=!0;try{const m=await r();o||n(m)}catch(m){o||d(m instanceof Error?m:new Error(String(m)))}finally{s=!1}E()}},C=()=>{!u.hidden&&!s&&(clearTimeout(t),x())};return u.addEventListener("visibilitychange",C),x(),()=>{o=!0,clearTimeout(t),u.removeEventListener("visibilitychange",C)}}function xe(r,a,n,d,u=document){const o=`/api/tasks/${encodeURIComponent(r)}/output?lines=${a}`;return Qe({load:async()=>{const s=await fetch(o);if(!s.ok)throw new Error(`HTTP ${s.status}`);return await s.json()},intervalMs:n,doc:u,...d})}var De=T('<pre class="mt-auto whitespace-pre" aria-label="The worker’s terminal"> </pre>'),Ue=T('<p class="grid flex-1 place-items-center px-4 text-center font-sans text-sm text-terminal-foreground/60"><!></p>'),Ve=T('<div class="flex h-full flex-col"><div class="flex shrink-0 items-center gap-2 border-b border-terminal-foreground/15 px-4 py-2.5 text-sm sm:px-6"><!> <span class="min-w-0 truncate font-medium"> </span> <span class="hidden text-terminal-foreground/60 sm:inline"> </span> <span class="ml-auto hidden text-xs text-terminal-foreground/60 sm:inline">Esc to close</span> <button type="button" class="-mr-2 flex size-8 items-center justify-center rounded-md text-terminal-foreground/80 hover:bg-terminal-foreground/10 hover:text-terminal-foreground sm:ml-2" aria-label="Close the full-screen console"><!></button></div> <div class="flex min-h-0 flex-1 flex-col overflow-auto font-mono"><!></div></div>'),Ge=T('<dialog class="m-0 h-dvh max-h-none w-dvw max-w-none overflow-hidden bg-terminal p-0 text-terminal-foreground backdrop:bg-black/70"><!></dialog>');function Be(r,a){de(a,!0);let n=Z(a,"open",15,!1);const d=200,u=16;let o=O(null),s=O(null),t=O(null),E=O(!1),x=O(0),C=O(0),m=O(.6),H=!0;D(()=>{if(e(o))if(n()&&!e(o).open){H=!0;const v=e(o);Le(document.documentElement).then(()=>{!n()||!v.isConnected?ee(document.documentElement):v.open||v.showModal()})}else!n()&&e(o).open&&e(o).close()}),D(()=>{if(!n())return;const v=document.documentElement;let h=!1;const f=()=>{document.fullscreenElement===v?h=!0:h&&(h=!1,n(!1))};return document.addEventListener("fullscreenchange",f),()=>{document.removeEventListener("fullscreenchange",f),ee(v)}}),D(()=>{if(!n())return;oe(()=>ae.open++);const v=xe(a.task.id,d,pe.full,{onresult:h=>{_(t,h,!0),_(E,!1)},onerror:()=>_(E,!0)});return()=>{v(),oe(()=>ae.open--)}}),D(()=>{if(!e(s))return;const v=getComputedStyle(e(s)).fontFamily,h=document.createElement("canvas").getContext("2d");if(!h)return;h.font=`100px ${v}`;const f=h.measureText("M".repeat(10)).width/1e3;f>0&&_(m,f)});const P=ie(()=>e(t)?.available?e(t).lines:[]),R=ie(()=>Xe({width:e(x)-2*u,height:e(C)-2*u,cols:je(e(P)),charWidth:e(m)}));D(()=>{e(t),e(R),e(s)&&H&&(e(s).scrollTop=e(s).scrollHeight)});const G=()=>{e(s)&&(H=e(s).scrollHeight-e(s).scrollTop-e(s).clientHeight<24)};var I=Ge(),J=k(I);{var K=v=>{var h=Ve(),f=k(h),l=k(f);me(l,{class:"size-4 text-terminal-foreground/70","aria-hidden":"true"});var p=g(l,2),W=N(p,!0),S=g(p,2),B=N(S),A=g(S,4),F=k(A);Ne(F,{class:"size-4"}),y(A),y(f);var i=g(f,2),M=k(i);{var ge=b=>{var j=De();let Y;var $=N(j,!0);z(q=>{V(j,"data-cols",e(R).cols),V(j,"data-rows",e(R).rows),Y=Ce(j,"",Y,{padding:"16px","font-size":`${e(R).fontSize??""}px`,"line-height":he}),w($,q)},[()=>e(P).join(`
|
|
2
2
|
`)]),c(b,j)},_e=b=>{var j=Ue(),Y=k(j);{var $=L=>{var Q=U("Could not reach the Wheelhouse server.");c(L,Q)},q=L=>{var Q=U("Reading the worker’s terminal…");c(L,Q)},be=L=>{var Q=U();z(()=>w(Q,e(t).reason)),c(L,Q)},we=L=>{var Q=U("The terminal is empty.");c(L,Q)};X(Y,L=>{e(E)?L($):e(t)?e(t).available?L(we,-1):L(be,2):L(q,1)})}y(j),c(b,j)};X(M,b=>{e(P).length?b(ge):b(_e,-1)})}y(i),re(i,b=>_(s,b),()=>e(s)),y(h),z(b=>{w(W,a.task.shortTitle),w(B,`· live console, read-only${b??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",A,()=>n(!1)),le("scroll",i,G),ce(i,"clientWidth",b=>_(x,b)),ce(i,"clientHeight",b=>_(C,b)),c(v,h)};X(J,v=>{n()&&v(K)})}y(I),re(I,v=>_(o,v),()=>e(o)),z(()=>{V(I,"aria-label",`${a.task.shortTitle??""}: live console`),V(I,"data-console-fullscreen",a.task.id)}),le("close",I,()=>{ee(document.documentElement),n(!1)}),c(r,I),ue()}se(["click"]);var Je=T('<pre class="flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-3 py-2 font-mono text-xs leading-[1.45] whitespace-pre max-md:[overflow-wrap:anywhere] max-md:whitespace-pre-wrap" aria-label="Latest lines of the worker’s terminal"> </pre>'),Ke=T('<p class="grid flex-1 place-items-center px-4 text-center text-xs text-terminal-foreground/60"><!></p>'),Ye=T('<div><button type="button" class="absolute inset-0 z-10 rounded-[inherit] focus-visible:ring-3 focus-visible:ring-ring/60 focus-visible:outline-none" title="Open full screen"></button> <div class="flex items-center gap-1.5 border-b border-terminal-foreground/10 px-3 py-1.5 text-xs text-terminal-foreground/60"><!> <span class="max-md:whitespace-nowrap">Live console</span> <span class="ml-auto max-md:min-w-0 max-md:truncate"> </span> <!></div> <!></div> <!>',1);function gt(r,a){de(a,!0);let n=Z(a,"lines",3,12),d=Z(a,"class",3,"");const u=24;let o=O(null),s=O(!1),t=O(null),E=O(!1),x=O(!1);D(()=>{if(!e(o))return;const l=new IntersectionObserver(([p])=>_(s,p.isIntersecting,!0),{rootMargin:"100px"});return l.observe(e(o)),()=>l.disconnect()}),D(()=>{if(!(!e(s)||ae.open>0))return xe(a.task.id,n()+u,pe.window,{onresult:l=>{_(t,l,!0),_(E,!1)},onerror:()=>_(E,!0)})}),D(()=>{a.onsample?.(e(t)?.available&&e(t).lines.length?{line:Me(e(t).lines),capturedAt:e(t).capturedAt}:null)});var C=Ye(),m=ve(C),H=k(m),P=g(H,2),R=k(P);me(R,{class:"size-3","aria-hidden":"true"});var G=g(R,4),I=N(G),J=g(G,2);Oe(J,{class:"size-3.5 text-terminal-foreground/60 transition-colors group-hover/console:text-terminal-foreground","aria-hidden":"true"}),y(P);var K=g(P,2);{var v=l=>{var p=Je(),W=N(p,!0);z(S=>w(W,S),[()=>e(t).lines.slice(-n()).join(`
|
|
3
3
|
`)]),c(l,p)},h=l=>{var p=Ke(),W=k(p);{var S=i=>{var M=U("Could not reach the Wheelhouse server.");c(i,M)},B=i=>{var M=U("Reading the worker’s terminal…");c(i,M)},A=i=>{var M=U();z(()=>w(M,e(t).reason)),c(i,M)},F=i=>{var M=U("The terminal is empty.");c(i,M)};X(W,i=>{e(E)?i(S):e(t)?e(t).available?i(F,-1):i(A,2):i(B,1)})}y(p),c(l,p)};X(K,l=>{e(t)?.available&&e(t).lines.length?l(v):l(h,-1)})}y(m),re(m,l=>_(o,l),()=>e(o));var f=g(m,2);Be(f,{get task(){return a.task},get open(){return e(x)},set open(l){_(x,l,!0)}}),z(l=>{te(m,1,`group/console relative z-10 flex aspect-[16/10] flex-col overflow-hidden rounded-sm border bg-terminal text-terminal-foreground ${d()??""}`),V(m,"data-console",a.task.id),V(H,"aria-label",`Open ${a.task.shortTitle??""}’s live console full screen`),w(I,`read-only${l??""}`)},[()=>e(t)?.capturedAt?` · ${fe(e(t).capturedAt)}`:""]),ne("click",H,()=>_(x,!0)),c(r,C),ue()}se(["click"]);var Ze=T('<p class="mt-1.5 leading-relaxed whitespace-pre-line text-muted-foreground" data-question-detail=""> </p>'),$e=T('<!> <button type="button" class="touch-target mt-1 text-xs text-muted-foreground hover:text-foreground hover:underline"> </button>',1),qe=T('<p class="mt-0.5 leading-relaxed"> </p>'),et=T('<div class="mt-2 border-l-2 border-brass/60 pl-2.5" data-question-call=""><p class="text-xs text-muted-foreground">Firstmate decided: <span class="font-medium text-foreground"> </span></p> <!></div>'),tt=T('<li><div class="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1"><p class="text-xs text-muted-foreground"> </p> <span> </span></div> <p class="mt-1 leading-relaxed"> </p> <!> <!></li>'),rt=T('<ol class="space-y-2" data-questions=""></ol>');function _t(r,a){let n=Z(a,"size",3,"page"),d=Ee({});const u={waiting:{label:"Waiting on Firstmate",class:"bg-warning/10 text-warning"},answered:{label:"Answered",class:"bg-success/10 text-success"},closed:{label:"Closed without an answer",class:"bg-muted text-muted-foreground"}};var o=rt();Se(o,23,()=>a.questions,s=>s.id,(s,t,E)=>{var x=tt(),C=k(x),m=k(C),H=N(m),P=g(m,2),R=N(P,!0);y(C);var G=g(C,2),I=N(G,!0),J=g(G,2);{var K=f=>{var l=$e(),p=ve(l);{var W=A=>{var F=Ze(),i=N(F,!0);z(()=>w(i,e(t).detail)),c(A,F)};X(p,A=>{d[e(t).id]&&A(W)})}var S=g(p,2),B=N(S,!0);z(()=>{V(S,"aria-expanded",!!d[e(t).id]),w(B,d[e(t).id]?"Show less":"Show the whole question")}),ne("click",S,()=>d[e(t).id]=!d[e(t).id]),c(f,l)};X(J,f=>{e(t).detail&&f(K)})}var v=g(J,2);{var h=f=>{var l=et(),p=k(l),W=g(k(p)),S=N(W,!0);y(p);var B=g(p,2);{var A=F=>{var i=qe(),M=N(i,!0);z(()=>w(M,e(t).reason)),c(F,i)};X(B,F=>{e(t).reason&&F(A)})}y(l),z(()=>w(S,e(t).verdict)),c(f,l)};X(v,f=>{e(t).verdict&&f(h)})}y(x),z(()=>{te(x,1,`rounded-md border border-hair bg-card ${n()==="card"?"px-2.5 py-2 text-xs":"px-3 py-2.5 text-sm"}`),V(x,"data-question",e(t).status),w(H,`Question ${e(E)+1}${e(t).where?` · ${e(t).where}`:""}${e(t).serious?" · marked serious":""}`),te(P,1,`rounded-full px-2 py-0.5 text-xs font-medium ${u[e(t).status].class??""}`),w(R,u[e(t).status].label),w(I,e(t).summary)}),c(s,x)}),y(o),c(r,o)}se(["click"]);export{gt as C,pt as I,_t as Q,ht as a,xt as r,Fe as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./DFFTcnMk.js";import{i as F}from"./fxwDaXQ6.js";import{M as K,P as Q}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./DFFTcnMk.js";import{i as F}from"./fxwDaXQ6.js";import{M as K,P as Q}from"./BMTKBS3C.js";import{e as U,a as T,s as _,d as V}from"./VI4uBLfk.js";import{p as S}from"./DtxmqMMR.js";import{l as X}from"./BNXbHZ4s.js";import{s as Y,c as Z}from"./D_ohfsLu.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./BxqvNU6L.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function ke(z,e){N(e,!0);let s=j(null),o=j(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");M(s,(L??u??l).getBoundingClientRect(),!0),M(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>M(o,!1)})}};F(E,n=>{r(o)&&e.task.preview&&n(g)})}H("click",d,x),c(z,v),O()}D(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},B={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function we(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${B[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var I=ne();p(()=>{T(I,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(I,"title",`${m().label??""}: ${B[b()]??""}`)}),c(t,I)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};F(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),H("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};F(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}D(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function Ce(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};F(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{we as C,Ce as E,ke as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{aF as Ue,p as ve,j as G,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./DFFTcnMk.js";import{i as V}from"./fxwDaXQ6.js";import{c as _}from"./CTO6Jnxr.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./VI4uBLfk.js";import{a as Te}from"./DJKfepuw.js";import{p as C,r as we,s as le}from"./DtxmqMMR.js";import{p as Xe}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{aF as Ue,p as ve,j as G,f as l,a as r,b as ge,g as e,h as se,aa as Ve,r as oe,i as P,c as T,l as Ee,m as U,q as Je,s as u,n as W,w as j,v as a,t as ue,d as fe,x as Ke,y as Me,o as Be}from"./DFFTcnMk.js";import{i as V}from"./fxwDaXQ6.js";import{c as _}from"./CTO6Jnxr.js";import{l as Qe,r as Ce,a as ze,f as Le}from"./VI4uBLfk.js";import{a as Te}from"./DJKfepuw.js";import{p as C,r as we,s as le}from"./DtxmqMMR.js";import{p as Xe}from"./AiTV8eMU.js";import{c as Ye,D as et,b as be,m as tt,a as rt}from"./BaVXUP2t.js";import{D as at,a as st,b as ot,c as lt,d as xe,P as nt,e as it,i as dt,f as ut,m as ft}from"./DjY7ZMGz.js";import{s as Fe}from"./B9PwX1FR.js";import{B as X}from"./I9e8Fl7s.js";import{C as vt,d as gt,b as ct,i as pt}from"./B2lgXXfo.js";import{P as mt}from"./CH2k9UCp.js";import{L as _t}from"./DLeaKE5r.js";import{T as ht}from"./CxBx2YtS.js";var $t=new Set(["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]),bt=T("<button><!></button>");function xt(H,s){const z=Ue();ve(s,!0);let F=C(s,"id",19,()=>Ye(z)),O=C(s,"ref",15,null),k=C(s,"disabled",3,!1),t=we(s,$t);const p=et.create({id:be(()=>F()),ref:be(()=>O(),m=>O(m)),disabled:be(()=>!!k())}),b=P(()=>tt(t,p.props));var n=G(),f=l(n);{var Z=m=>{var D=G(),E=l(D);Fe(E,()=>s.child,()=>({props:e(b)})),r(m,D)},ne=m=>{var D=bt();Qe(D,()=>({...e(b)}));var E=se(D);Fe(E,()=>s.children??Ve),oe(D),r(m,D)};V(f,m=>{s.child?m(Z):m(ne,-1)})}r(H,n),ge()}var wt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Oe(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,wt);var k=G(),t=l(k);_(t,()=>rt,(p,b)=>{b(p,le({"data-slot":"dialog-close",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var yt=new Set(["$$slots","$$events","$$legacy","ref","type"]);function Pt(H,s){ve(s,!0);let z=C(s,"ref",15,null),F=C(s,"type",3,"button"),O=we(s,yt);var k=G(),t=l(k);_(t,()=>xt,(p,b)=>{b(p,le({"data-slot":"dialog-trigger",get type(){return F()}},()=>O,{get ref(){return z()},set ref(n){z(n)}}))}),r(H,k),ge()}var kt=T("<!> ",1),ae=T("<!> <!>",1),Dt=T('<p class="flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-xs text-danger" role="alert"><!> </p>'),It=T("<!>Fetching…",1),St=T('<form class="grid gap-4" id="install-plugin-form"><label class="grid gap-1"><span class="text-xs font-medium">Repository</span> <input name="repository" placeholder="org/repo" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">On github.com, such as chrisjowen/improve.</span></label> <label class="grid gap-1"><span class="text-xs font-medium">Version <span class="font-normal text-muted-foreground">(optional)</span></span> <input name="ref" placeholder="tag, branch or commit" autocomplete="off" spellcheck="false"/> <span class="text-xs text-muted-foreground">Leave it empty for the default branch. A tag keeps it on that release.</span></label> <!></form> <!>',1),At=T('<p class="text-xs text-danger" role="alert"> </p>'),Re=T("<!> <!> <!>",1),Bt=T("<p> </p>");function Jt(H,s){ve(s,!0);let z=C(s,"busy",19,()=>[]),F=C(s,"suggested",3,null),O=C(s,"label",3,"Install plugin"),k=U(!1),t=U("form"),p=U(""),b=U(""),n=U(null),f=U(null),Z=U(Je({}));const ne=P(()=>/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(e(p).trim())),m=P(()=>e(f)?ft(e(f),e(Z)):null),D=()=>Xe.data.sessionToken,E="h-9 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring";function ye(){a(t,"form"),a(n,null),a(f,null)}async function We(Y){if(Y.preventDefault(),!e(ne)||e(t)==="looking")return;a(t,"looking"),a(n,null);const L=await gt({repo:e(p).trim(),ref:e(b).trim()||null},D());if(!L.ok){a(n,L.error,!0),a(t,"form");return}a(f,L.value,!0),a(Z,dt(L.value),!0),a(t,"review")}async function je(){if(!e(f)||e(m))return;a(t,"saving"),a(n,null);const Y=ct(),L=await pt(e(f),ut(e(Z)),D());if(!L.ok){a(n,L.error,!0),a(t,"review");return}a(t,"restarting"),a(t,await Y?"done":"slow",!0)}var Pe=G(),Ge=l(Pe);_(Ge,()=>it,(Y,L)=>{L(Y,{onOpenChange:J=>{J&&(e(t)==="done"||e(t)==="slow")&&(a(p,""),a(b,""),ye()),J&&e(t)==="form"&&F()&&!e(p)&&a(p,F())},get open(){return e(k)},set open(J){a(k,J,!0)},children:(J,Ct)=>{var ke=ae(),De=l(ke);{const ce=(ee,te)=>{X(ee,le(()=>(te?.()).props,{variant:"outline",size:"sm",children:(Se,pe)=>{var re=kt(),ie=l(re);mt(ie,{});var me=u(ie,1,!0);ue(()=>fe(me,O())),r(Se,re)},$$slots:{default:!0}}))};_(De,()=>Pt,(ee,te)=>{te(ee,{child:ce,$$slots:{child:!0}})})}var He=u(De,2);{let ce=P(()=>e(t)==="saving"||e(t)==="restarting"?"ignore":"close");_(He,()=>at,(ee,te)=>{te(ee,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(ce)},children:(Ie,Se)=>{var pe=ae(),re=l(pe);_(re,()=>st,(x,I)=>{I(x,{children:(h,S)=>{var w=ae(),A=l(w);_(A,()=>ot,(i,v)=>{v(i,{class:"font-display text-lg",children:(q,d)=>{W();var g=j("Install a plugin from GitHub");r(q,g)},$$slots:{default:!0}})});var o=u(A,2);_(o,()=>lt,(i,v)=>{v(i,{children:(q,d)=>{var g=G(),B=l(g);{var $=c=>{var R=j("Check what it is and where it comes from before you install it.");r(c,R)},y=c=>{var R=j(`Wheelhouse fetches the repository, pins the exact commit and shows you its manifest first.
|
|
2
2
|
Nothing runs until you install it.`);r(c,R)};V(B,c=>{e(t)==="review"?c($):c(y,-1)})}r(q,g)},$$slots:{default:!0}})}),r(h,w)},$$slots:{default:!0}})});var ie=u(re,2);{var me=x=>{var I=St(),h=l(I),S=se(h),w=u(se(S),2);Ce(w),ze(w,1,Le(E)),W(2),oe(S);var A=u(S,2),o=u(se(A),2);Ce(o),ze(o,1,Le(E)),W(2),oe(A);var i=u(A,2);{var v=d=>{var g=Dt(),B=se(g);ht(B,{class:"mt-0.5 size-3.5 shrink-0"});var $=u(B,1,!0);oe(g),ue(()=>fe($,e(n))),r(d,g)};V(i,d=>{e(n)&&d(v)})}oe(h);var q=u(h,2);_(q,()=>xe,(d,g)=>{g(d,{children:(B,$)=>{var y=ae(),c=l(y);{const N=(K,M)=>{X(K,le(()=>(M?.()).props,{variant:"ghost",children:(he,Ae)=>{W();var $e=j("Cancel");r(he,$e)},$$slots:{default:!0}}))};_(c,()=>Oe,(K,M)=>{M(K,{child:N,$$slots:{child:!0}})})}var R=u(c,2);{let N=P(()=>!e(ne)||e(t)==="looking");X(R,{type:"submit",form:"install-plugin-form",get disabled(){return e(N)},children:(K,M)=>{var _e=G(),he=l(_e);{var Ae=Q=>{var de=It(),Ne=l(de);_t(Ne,{class:"animate-spin"}),W(),r(Q,de)},$e=Q=>{var de=j("Look it up");r(Q,de)};V(he,Q=>{e(t)==="looking"?Q(Ae):Q($e,-1)})}r(K,_e)},$$slots:{default:!0}})}r(B,y)},$$slots:{default:!0}})}),Ke("submit",h,We),Me("input",w,()=>a(n,null)),Te(w,()=>e(p),d=>a(p,d)),Te(o,()=>e(b),d=>a(b,d)),r(x,I)},Ze=x=>{var I=Re(),h=l(I);nt(h,{get preview(){return e(f)},get busy(){return z()},get answers(){return e(Z)},set answers(o){a(Z,o,!0)}});var S=u(h,2);{var w=o=>{var i=At(),v=Be(i,!0);ue(()=>fe(v,e(n))),r(o,i)};V(S,o=>{e(n)&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=ae(),g=l(d);X(g,{variant:"ghost",onclick:ye,children:($,y)=>{W();var c=j("Back");r($,c)},$$slots:{default:!0}});var B=u(g,2);{let $=P(()=>!!e(m)),y=P(()=>e(m)?`${e(m).title} is needed`:void 0);X(B,{onclick:je,get disabled(){return e($)},get title(){return e(y)},children:(c,R)=>{W();var N=j("Install and restart");r(c,N)},$$slots:{default:!0}})}r(v,d)},$$slots:{default:!0}})}),r(x,I)},qe=x=>{var I=Re(),h=l(I);{let o=P(()=>e(f).id),i=P(()=>e(f).commit.slice(0,7)),v=P(()=>e(t)==="saving"||e(t)==="restarting"||e(t)==="done"||e(t)==="slow"?e(t):"saving");vt(h,{get label(){return`Install ${e(o)??""} at ${e(i)??""}`},get phase(){return e(v)}})}var S=u(h,2);{var w=o=>{var i=Bt(),v=Be(i);ue(()=>fe(v,`${e(f).name??""}
|
|
3
3
|
${e(f).version??""} is installed and Wheelhouse restarted. Its row shows whether it loaded.`)),r(o,i)};V(S,o=>{e(t)==="done"&&o(w)})}var A=u(S,2);_(A,()=>xe,(o,i)=>{i(o,{children:(v,q)=>{var d=G(),g=l(d);{const B=($,y)=>{let c=()=>(y?.()).props;{let R=P(()=>e(t)==="saving"||e(t)==="restarting");X($,le(c,{get disabled(){return e(R)},children:(N,K)=>{W();var M=j("Done");r(N,M)},$$slots:{default:!0}}))}};_(g,()=>Oe,($,y)=>{y($,{child:B,$$slots:{child:!0}})})}r(v,d)},$$slots:{default:!0}})}),r(x,I)};V(ie,x=>{e(t)==="form"||e(t)==="looking"?x(me):e(t)==="review"&&e(f)?x(Ze,1):e(f)&&x(qe,2)})}r(Ie,pe)},$$slots:{default:!0}})})}r(J,ke)},$$slots:{default:!0}})}),r(H,Pe),ge()}Ee(["input"]);export{Oe as D,Jt as I};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{l as rt,p as st,m as A,q as ot,f as be,s,h as d,g as e,r as i,a as l,b as nt,i as ne,n as C,w as L,o as w,t as k,d as _,x as Le,y as ve,v as n,c as p,aa as le,j as lt}from"./DFFTcnMk.js";import{i as R}from"./fxwDaXQ6.js";import{r as Pe,s as O,e as ye,i as it,b as dt,c as ut}from"./VI4uBLfk.js";import{a as ct}from"./DJKfepuw.js";import{p as Me}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{l as rt,p as st,m as A,q as ot,f as be,s,h as d,g as e,r as i,a as l,b as nt,i as ne,n as C,w as L,o as w,t as k,d as _,x as Le,y as ve,v as n,c as p,aa as le,j as lt}from"./DFFTcnMk.js";import{i as R}from"./fxwDaXQ6.js";import{r as Pe,s as O,e as ye,i as it,b as dt,c as ut}from"./VI4uBLfk.js";import{a as ct}from"./DJKfepuw.js";import{p as Me}from"./AiTV8eMU.js";import{S as vt}from"./BXN538J3.js";import{B as W}from"./I9e8Fl7s.js";import{L as pt,K as Ie}from"./IpTBlU5z.js";import{C as mt}from"./BJ22bl3x.js";import{s as ft,r as gt}from"./DtxmqMMR.js";import{I as _t}from"./CDH1GGn5.js";import{E as ht}from"./KzJrxDZe.js";const xt=/https?:\/\/[^\s<>"'`]+/g,bt=/[.,;:!?)\]}'"*]+$/;function ia(M){return[...M.matchAll(xt)].map(H=>H[0].replace(bt,""))}var yt=new Set(["$$slots","$$events","$$legacy"]);function $t(M,H){let pe=gt(H,yt);const me={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};_t(M,ft(()=>pe,{get icon(){return me}}))}const wt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,da=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function kt(M){return M.length<=1?M.join(""):`${M.slice(0,-1).join(", ")} and ${M.at(-1)}`}var jt=p('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),zt=p('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),At=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Pt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Et=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),St=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Nt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Rt=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Tt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ct=p('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> Goes straight into your Mac’s login Keychain. Wheelhouse cannot show it again.</p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),Dt=p('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Kt=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Lt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Mt=p('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),It=p(`<p>Remove <span class="font-mono"> </span>? Its value is deleted from the
|
|
2
2
|
Keychain and every project loses it. This cannot be undone.</p> <div class="flex flex-wrap gap-2"><!> <!></div>`,1),Vt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Ot=p('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Wt=p('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),Ut=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),Zt=p('<a class="text-sea hover:underline"> </a>'),Ht=p('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),Bt=p('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),Ft=p(`<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground">Secrets your projects can use by name. Values stay in your Mac’s login Keychain; Wheelhouse
|
|
3
3
|
never shows one.</p> <!></div> <!> <!> <!> <!> <!> <!>`,1);function Gt(M,H){st(H,!0);const pe=(t,a=le,r=le,o=le)=>{var m=jt(),f=d(m);Pe(f);var u=s(f,2),T=d(u);{var h=v=>{$t(v,{class:"size-4"})},x=v=>{ht(v,{class:"size-4"})};R(T,v=>{e(U)?v(h):v(x,-1)})}i(u),i(m),k(v=>{O(f,"id",a()),O(f,"type",e(U)?"text":"password"),dt(f,v),f.disabled=e(y),O(u,"aria-label",e(U)?"Hide what you typed":"Show what you typed"),O(u,"aria-pressed",e(U))},[()=>r()()]),ve("input",f,v=>o()(v.currentTarget.value)),ve("click",u,()=>n(U,!e(U))),l(t,m)},me=(t,a=le,r=le,o=le)=>{var m=lt(),f=be(m);{var u=h=>{var x=At();ye(x,20,()=>e(Ee),v=>v,(v,Z)=>{var D=zt(),g=d(D);Pe(g);var b=s(g,2),P=w(b,!0);i(D),k(E=>{ut(g,E),g.disabled=e(y),_(P,Z)},[()=>r().includes(Z)]),ve("change",g,E=>{const c=E.currentTarget;o()(Z,c.checked,c)}),l(v,D)}),i(x),k(()=>O(x,"aria-label",a())),l(h,x)},T=h=>{var x=Pt();l(h,x)};R(f,h=>{e(Ee).length?h(u):h(T,-1)})}l(t,m)},ie=ne(()=>H.data);let fe=A(null);const de=ne(()=>{const t=H.entry.content.available?Date.parse(H.entry.content.observedAt??""):NaN;return e(fe)&&!(t>e(fe).at)?e(fe).secrets:e(ie).secrets}),Ee=ne(()=>{const t=(Me.data.fleet?.projects??[]).map(r=>r.id),a=e(de).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let F=A(null),Q=A(!1),ue=A(null),ce=A(null),y=A(!1),X=A(null),ee=A(null),G=A(""),J=A(""),te=A(ot([])),U=A(!1),ae=A(""),Y=A("");function $e(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function ge(){n(J,""),n(Y,""),n(U,!1)}function Se(){n(G,""),n(te,[],!0),n(ae,""),n(X,null),n(ee,null),ge(),n(Q,!0)}function Ve(){n(Q,!1),ge()}async function _e(t){n(y,!0),n(ee,null),n(X,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[vt]:Me.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(fe,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(X,r?.message??"Done.",!0),!0):(n(ee,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),!1)}catch{return n(ee,"Wheelhouse could not be reached. Try again."),!1}finally{n(y,!1)}}async function Oe(t){if(t.preventDefault(),!wt.test(e(G))){n(ae,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(J))return;const a={action:"set",name:e(G),value:e(J),projects:e(te)};n(J,""),n(U,!1),await _e(a)&&(n(Q,!1),n(F,e(G),!0))}async function We(t,a){if(t.preventDefault(),!e(Y))return;const r={action:"set",name:a.name,value:e(Y),projects:[]};n(Y,""),n(U,!1),await _e(r)&&n(ue,null)}async function Ue(t,a,r,o){await _e({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ze(t){await _e({action:"remove",name:t.name})&&(n(ce,null),n(F,null))}function He(t){n(F,e(F)===t?null:t,!0),n(ce,null),n(ue,null),ge()}var Ne=Ft(),we=be(Ne),Be=s(d(we),2);{var Fe=t=>{W(t,{onclick:Se,get disabled(){return e(y)},children:(a,r)=>{C();var o=L("Add a secret");l(a,o)},$$slots:{default:!0}})};R(Be,t=>{e(de).length&&!e(Q)&&t(Fe)})}i(we);var Re=s(we,2);{var Ge=t=>{var a=Et(),r=w(a,!0);k(()=>_(r,e(X))),l(t,a)};R(Re,t=>{e(X)&&t(Ge)})}var Te=s(Re,2);{var Je=t=>{var a=St(),r=w(a,!0);k(()=>_(r,e(ee))),l(t,a)};R(Te,t=>{e(ee)&&t(Je)})}var Ce=s(Te,2);{var Ye=t=>{var a=Nt(),r=w(a,!0);k(()=>_(r,e(ie).problem)),l(t,a)};R(Ce,t=>{e(ie).problem&&t(Ye)})}var De=s(Ce,2);{var qe=t=>{var a=Ct(),r=s(d(a),4),o=d(r),m=s(d(o),2);Pe(m);var f=s(m,2);{var u=c=>{var j=Rt(),K=w(j,!0);k(()=>_(K,e(ae))),l(c,j)},T=c=>{var j=Tt();l(c,j)};R(f,c=>{e(ae)?c(u):c(T,-1)})}i(o);var h=s(o,2),x=s(d(h),2);pe(x,()=>"vault-value",()=>()=>e(J),()=>c=>n(J,c,!0));var v=s(x,2),Z=d(v);pt(Z,{class:"mt-px size-3.5 shrink-0"}),C(),i(v),i(h);var D=s(h,2),g=s(d(D),4);me(g,()=>"Projects that may use it",()=>e(te),()=>(c,j)=>{n(te,j?[...e(te),c]:e(te).filter(K=>K!==c),!0)}),i(D);var b=s(D,2),P=d(b);{let c=ne(()=>e(y)||!e(G)||!e(J));W(P,{type:"submit",get disabled(){return e(c)},children:(j,K)=>{C();var q=L("Store secret");l(j,q)},$$slots:{default:!0}})}var E=s(P,2);W(E,{type:"button",variant:"outline",get disabled(){return e(y)},onclick:Ve,children:(c,j)=>{C();var K=L("Cancel");l(c,K)},$$slots:{default:!0}}),i(b),i(r),i(a),k(()=>{m.disabled=e(y),O(m,"aria-invalid",e(ae)?"true":void 0)}),Le("submit",r,Oe),ve("input",m,()=>n(ae,"")),ct(m,()=>e(G),c=>n(G,c)),l(t,a)};R(De,t=>{e(Q)&&t(qe)})}var Ke=s(De,2);{var Qe=t=>{var a=Dt(),r=d(a);Ie(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);W(o,{class:"mt-5",onclick:Se,get disabled(){return e(y)},children:(m,f)=>{C();var u=L("Add a secret");l(m,u)},$$slots:{default:!0}}),i(a),l(t,a)},Xe=t=>{var a=Ut();ye(a,21,()=>e(de),r=>r.name,(r,o)=>{var m=Wt(),f=d(m),u=d(f);Ie(u,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var T=s(u,2),h=w(T,!0),x=s(T,2);ye(x,20,()=>e(o).projects,g=>g,(g,b)=>{var P=Kt(),E=w(P,!0);k(()=>_(E,b)),l(g,P)},g=>{var b=Lt();l(g,b)}),i(x);var v=s(x,2);{let g=ne(()=>e(F)===e(o).name?"rotate-90":"");mt(v,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(g)??""}`},"aria-hidden":"true"})}i(f);var Z=s(f,2);{var D=g=>{var b=Ot(),P=d(b),E=s(d(P),2);me(E,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(S,$,N)=>Ue(e(o),S,$,N));var c=s(E,2),j=w(c,!0);i(P);var K=s(P,2),q=d(K),he=d(q),I=s(he,2);i(q);var V=s(q,2);{var ke=S=>{var $=Mt(),N=s(d($),2);pe(N,()=>"vault-replace",()=>()=>e(Y),()=>z=>n(Y,z,!0));var re=s(N,2),B=d(re);{let z=ne(()=>e(y)||!e(Y));W(B,{type:"submit",size:"sm",get disabled(){return e(z)},children:(xe,oe)=>{C();var ze=L("Replace");l(xe,ze)},$$slots:{default:!0}})}var se=s(B,2);W(se,{type:"button",size:"sm",variant:"outline",get disabled(){return e(y)},onclick:()=>{n(ue,null),ge()},children:(z,xe)=>{C();var oe=L("Cancel");l(z,oe)},$$slots:{default:!0}}),i(re),i($),Le("submit",$,z=>We(z,e(o))),l(S,$)},je=S=>{var $=It(),N=be($),re=s(d(N)),B=w(re,!0);C(),i(N);var se=s(N,2),z=d(se);W(z,{size:"sm",variant:"destructive",get disabled(){return e(y)},onclick:()=>Ze(e(o)),children:(oe,ze)=>{C();var Ae=L("Remove");l(oe,Ae)},$$slots:{default:!0}});var xe=s(z,2);W(xe,{size:"sm",variant:"outline",get disabled(){return e(y)},onclick:()=>n(ce,null),children:(oe,ze)=>{C();var Ae=L("Keep it");l(oe,Ae)},$$slots:{default:!0}}),i(se),k(()=>_(B,e(o).name)),l(S,$)},at=S=>{var $=Vt(),N=d($);W(N,{size:"sm",variant:"outline",get disabled(){return e(y)},onclick:()=>{n(ue,e(o).name,!0),n(X,null)},children:(B,se)=>{C();var z=L("Replace value");l(B,z)},$$slots:{default:!0}});var re=s(N,2);W(re,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e(y)},onclick:()=>n(ce,e(o).name,!0),children:(B,se)=>{C();var z=L("Remove…");l(B,z)},$$slots:{default:!0}}),i($),l(S,$)};R(V,S=>{e(ue)===e(o).name?S(ke):e(ce)===e(o).name?S(je,1):S(at,-1)})}i(K),i(b),k((S,$,N)=>{O(b,"id",`vault-${e(o).name??""}`),_(j,S),_(he,`Value set ${$??""}`),_(I,`Last used ${N??""}`)},[()=>e(o).projects.length?`A command ${kt(e(o).projects)} ${e(o).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>$e(e(o).updatedAt),()=>$e(e(o).lastUsedAt)]),l(g,b)};R(Z,g=>{e(F)===e(o).name&&g(D)})}i(m),k(()=>{O(f,"aria-expanded",e(F)===e(o).name),O(f,"aria-controls",`vault-${e(o).name??""}`),_(h,e(o).name)}),ve("click",f,()=>He(e(o).name)),l(r,m)}),i(a),l(t,a)};R(Ke,t=>{!e(de).length&&!e(Q)?t(Qe):e(de).length&&t(Xe,1)})}var et=s(Ke,2);{var tt=t=>{var a=Bt(),r=s(be(a),2),o=d(r),m=s(d(o));ye(m,21,()=>e(ie).used,it,(f,u)=>{var T=Ht(),h=d(T),x=w(h,!0),v=s(h),Z=d(v);{var D=I=>{var V=Zt(),ke=w(V,!0);k(je=>{O(V,"href",`/tasks/${je??""}`),_(ke,e(u).task)},[()=>encodeURIComponent(e(u).task)]),l(I,V)},g=I=>{var V=L();k(()=>_(V,e(u).task??"—")),l(I,V)};R(Z,I=>{e(u).task&&e(u).taskKnown?I(D):I(g,-1)})}i(v);var b=s(v),P=w(b,!0),E=s(b),c=w(E,!0),j=s(E),K=w(j,!0),q=s(j),he=w(q,!0);i(T),k((I,V)=>{_(x,I),_(P,e(u).project??"—"),_(c,V),_(K,e(u).program??"—"),_(he,e(u).result)},[()=>$e(e(u).at),()=>e(u).names.join(", ")||"—"]),l(f,T)}),i(m),i(o),i(r),l(t,a)};R(et,t=>{e(ie).used.length&&t(tt)})}l(M,Ne),nt()}rt(["input","click","change"]);const ua={"vault/overview":Gt};export{ua as P,wt as S,kt as a,da as b,ia as e};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{i as c}from"./hKkTZgiP.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./DFFTcnMk.js";import{e as w,s as o}from"./VI4uBLfk.js";import{p as n}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{i as c}from"./hKkTZgiP.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./DFFTcnMk.js";import{e as w,s as o}from"./VI4uBLfk.js";import{p as n}from"./AiTV8eMU.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
|
|
Binary file
|
|
Binary file
|