@chrisjowen/wheelhouse 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -5
- package/build/client/_app/immutable/assets/0.CF4I5T-G.css +1 -0
- package/build/client/_app/immutable/assets/0.CF4I5T-G.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CF4I5T-G.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-F7frqRp.js +1 -0
- package/build/client/_app/immutable/chunks/-F7frqRp.js.br +0 -0
- package/build/client/_app/immutable/chunks/-F7frqRp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/127nenIp.js +1 -0
- package/build/client/_app/immutable/chunks/127nenIp.js.br +0 -0
- package/build/client/_app/immutable/chunks/127nenIp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/2Frsddx8.js +1 -0
- package/build/client/_app/immutable/chunks/2Frsddx8.js.br +2 -0
- package/build/client/_app/immutable/chunks/2Frsddx8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4nLjU3dc.js +1 -0
- package/build/client/_app/immutable/chunks/4nLjU3dc.js.br +0 -0
- package/build/client/_app/immutable/chunks/4nLjU3dc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6IjAKxKZ.js +1 -0
- package/build/client/_app/immutable/chunks/6IjAKxKZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/6IjAKxKZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6JIb870c.js +1 -0
- package/build/client/_app/immutable/chunks/6JIb870c.js.br +0 -0
- package/build/client/_app/immutable/chunks/6JIb870c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B8szyIrI.js +1 -0
- package/build/client/_app/immutable/chunks/B8szyIrI.js.br +0 -0
- package/build/client/_app/immutable/chunks/B8szyIrI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDL2L18I.js +1 -0
- package/build/client/_app/immutable/chunks/BDL2L18I.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDL2L18I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJ_boZ6o.js +1 -0
- package/build/client/_app/immutable/chunks/BJ_boZ6o.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJ_boZ6o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMOWf_e5.js +1 -0
- package/build/client/_app/immutable/chunks/BMOWf_e5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BMOWf_e5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOOJ9_kJ.js +6 -0
- package/build/client/_app/immutable/chunks/BOOJ9_kJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOOJ9_kJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPEcp4vD.js +1 -0
- package/build/client/_app/immutable/chunks/BPEcp4vD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPEcp4vD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTcSoYfa.js +1 -0
- package/build/client/_app/immutable/chunks/BTcSoYfa.js.br +2 -0
- package/build/client/_app/immutable/chunks/BTcSoYfa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BV_Ro843.js +1 -0
- package/build/client/_app/immutable/chunks/BV_Ro843.js.br +0 -0
- package/build/client/_app/immutable/chunks/BV_Ro843.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BboI5NX2.js +1 -0
- package/build/client/_app/immutable/chunks/BboI5NX2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BboI5NX2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnqQNG8I.js +1 -0
- package/build/client/_app/immutable/chunks/BnqQNG8I.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnqQNG8I.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo3sLJjL.js +3 -0
- package/build/client/_app/immutable/chunks/Bo3sLJjL.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo3sLJjL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bpgn0RyM.js +1 -0
- package/build/client/_app/immutable/chunks/Bpgn0RyM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bpgn0RyM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrGclueo.js +1 -0
- package/build/client/_app/immutable/chunks/BrGclueo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrGclueo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-Ka3szt.js +1 -0
- package/build/client/_app/immutable/chunks/C-Ka3szt.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-Ka3szt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-YySHlv.js +1 -0
- package/build/client/_app/immutable/chunks/C-YySHlv.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-YySHlv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C27rbWKB.js +1 -0
- package/build/client/_app/immutable/chunks/C27rbWKB.js.br +0 -0
- package/build/client/_app/immutable/chunks/C27rbWKB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CA1hL-S6.js +1 -0
- package/build/client/_app/immutable/chunks/CA1hL-S6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CA1hL-S6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFdPbSqS.js +1 -0
- package/build/client/_app/immutable/chunks/CFdPbSqS.js.br +1 -0
- package/build/client/_app/immutable/chunks/CFdPbSqS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJGygju8.js +1 -0
- package/build/client/_app/immutable/chunks/CJGygju8.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJGygju8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLdaRjQZ.js +1 -0
- package/build/client/_app/immutable/chunks/CLdaRjQZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLdaRjQZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CS3TvEHF.js +1 -0
- package/build/client/_app/immutable/chunks/CS3TvEHF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CS3TvEHF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSfYMiqF.js +8 -0
- package/build/client/_app/immutable/chunks/CSfYMiqF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSfYMiqF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CW_pu1E1.js +1 -0
- package/build/client/_app/immutable/chunks/CW_pu1E1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CW_pu1E1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZYAayp0.js +2 -0
- package/build/client/_app/immutable/chunks/CZYAayp0.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZYAayp0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cap_NU8Z.js +1 -0
- package/build/client/_app/immutable/chunks/Cap_NU8Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cap_NU8Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cf6ZwSDE.js +1 -0
- package/build/client/_app/immutable/chunks/Cf6ZwSDE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cf6ZwSDE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch8_zhFw.js +1 -0
- package/build/client/_app/immutable/chunks/Ch8_zhFw.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch8_zhFw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cjji8YKo.js +1 -0
- package/build/client/_app/immutable/chunks/Cjji8YKo.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cjji8YKo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ckfspn2s.js +1 -0
- package/build/client/_app/immutable/chunks/Ckfspn2s.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ckfspn2s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CpkLqQ7l.js +1 -0
- package/build/client/_app/immutable/chunks/CpkLqQ7l.js.br +0 -0
- package/build/client/_app/immutable/chunks/CpkLqQ7l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Crzhp-x5.js +5 -0
- package/build/client/_app/immutable/chunks/Crzhp-x5.js.br +0 -0
- package/build/client/_app/immutable/chunks/Crzhp-x5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cwah_dMw.js +1 -0
- package/build/client/_app/immutable/chunks/Cwah_dMw.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cwah_dMw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzsfD4hc.js +1 -0
- package/build/client/_app/immutable/chunks/CzsfD4hc.js.br +2 -0
- package/build/client/_app/immutable/chunks/CzsfD4hc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D32oVJ_N.js +1 -0
- package/build/client/_app/immutable/chunks/D32oVJ_N.js.br +1 -0
- package/build/client/_app/immutable/chunks/D32oVJ_N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4sWXBG7.js +1 -0
- package/build/client/_app/immutable/chunks/D4sWXBG7.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4sWXBG7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBs-gHlm.js +2 -0
- package/build/client/_app/immutable/chunks/DBs-gHlm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBs-gHlm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DEFXAgPm.js +1 -0
- package/build/client/_app/immutable/chunks/DEFXAgPm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEFXAgPm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHbme8uq.js +1 -0
- package/build/client/_app/immutable/chunks/DHbme8uq.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHbme8uq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMkU8x7K.js +1 -0
- package/build/client/_app/immutable/chunks/DMkU8x7K.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMkU8x7K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRIYWZlo.js +1 -0
- package/build/client/_app/immutable/chunks/DRIYWZlo.js.br +1 -0
- package/build/client/_app/immutable/chunks/DRIYWZlo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUCO61Nb.js +1 -0
- package/build/client/_app/immutable/chunks/DUCO61Nb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUCO61Nb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXz8WA1c.js +1 -0
- package/build/client/_app/immutable/chunks/DXz8WA1c.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXz8WA1c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_4WLGwX.js +1 -0
- package/build/client/_app/immutable/chunks/D_4WLGwX.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_4WLGwX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_5WjoQx.js +1 -0
- package/build/client/_app/immutable/chunks/D_5WjoQx.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_5WjoQx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_C2ZtkZ.js +1 -0
- package/build/client/_app/immutable/chunks/D_C2ZtkZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_C2ZtkZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De5PDvrQ.js +1 -0
- package/build/client/_app/immutable/chunks/De5PDvrQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/De5PDvrQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhWdMQ8J.js +1 -0
- package/build/client/_app/immutable/chunks/DhWdMQ8J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhWdMQ8J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DiCw6gM6.js +1 -0
- package/build/client/_app/immutable/chunks/DiCw6gM6.js.br +0 -0
- package/build/client/_app/immutable/chunks/DiCw6gM6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/JhgT3vN-.js +1 -0
- package/build/client/_app/immutable/chunks/JhgT3vN-.js.br +0 -0
- package/build/client/_app/immutable/chunks/JhgT3vN-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KA4C2mxd.js +1 -0
- package/build/client/_app/immutable/chunks/KA4C2mxd.js.br +0 -0
- package/build/client/_app/immutable/chunks/KA4C2mxd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MoZXz26A.js +2 -0
- package/build/client/_app/immutable/chunks/MoZXz26A.js.br +0 -0
- package/build/client/_app/immutable/chunks/MoZXz26A.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PMi1c_Z5.js +2 -0
- package/build/client/_app/immutable/chunks/PMi1c_Z5.js.br +0 -0
- package/build/client/_app/immutable/chunks/PMi1c_Z5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Pd3Oo-LF.js +1 -0
- package/build/client/_app/immutable/chunks/Pd3Oo-LF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Pd3Oo-LF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RXXzt1fg.js +1 -0
- package/build/client/_app/immutable/chunks/RXXzt1fg.js.br +0 -0
- package/build/client/_app/immutable/chunks/RXXzt1fg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WfixpLtG.js +1 -0
- package/build/client/_app/immutable/chunks/WfixpLtG.js.br +2 -0
- package/build/client/_app/immutable/chunks/WfixpLtG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YB3ysJRI.js +1 -0
- package/build/client/_app/immutable/chunks/YB3ysJRI.js.br +0 -0
- package/build/client/_app/immutable/chunks/YB3ysJRI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YUajk67G.js +1 -0
- package/build/client/_app/immutable/chunks/YUajk67G.js.br +0 -0
- package/build/client/_app/immutable/chunks/YUajk67G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/a2ZeDrXd.js +1 -0
- package/build/client/_app/immutable/chunks/a2ZeDrXd.js.br +0 -0
- package/build/client/_app/immutable/chunks/a2ZeDrXd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/is3b6W5i.js +1 -0
- package/build/client/_app/immutable/chunks/is3b6W5i.js.br +0 -0
- package/build/client/_app/immutable/chunks/is3b6W5i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kM8ObZQs.js +62 -0
- package/build/client/_app/immutable/chunks/kM8ObZQs.js.br +0 -0
- package/build/client/_app/immutable/chunks/kM8ObZQs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qep4C0YL.js +2 -0
- package/build/client/_app/immutable/chunks/qep4C0YL.js.br +0 -0
- package/build/client/_app/immutable/chunks/qep4C0YL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sSJbwAI9.js +1 -0
- package/build/client/_app/immutable/chunks/sSJbwAI9.js.br +0 -0
- package/build/client/_app/immutable/chunks/sSJbwAI9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vAxbu4w9.js +1 -0
- package/build/client/_app/immutable/chunks/vAxbu4w9.js.br +0 -0
- package/build/client/_app/immutable/chunks/vAxbu4w9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zfjlAER1.js +1 -0
- package/build/client/_app/immutable/chunks/zfjlAER1.js.br +0 -0
- package/build/client/_app/immutable/chunks/zfjlAER1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/zrknQfzW.js +1 -0
- package/build/client/_app/immutable/chunks/zrknQfzW.js.br +0 -0
- package/build/client/_app/immutable/chunks/zrknQfzW.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BVW8a1Lc.js +2 -0
- package/build/client/_app/immutable/entry/app.BVW8a1Lc.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BVW8a1Lc.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DfAhzzBh.js +1 -0
- package/build/client/_app/immutable/entry/start.DfAhzzBh.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DfAhzzBh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CByWY48H.js +8 -0
- package/build/client/_app/immutable/nodes/0.CByWY48H.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CByWY48H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BQxkVmZR.js +1 -0
- package/build/client/_app/immutable/nodes/1.BQxkVmZR.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BQxkVmZR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DF_JvWer.js +3 -0
- package/build/client/_app/immutable/nodes/10.DF_JvWer.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DF_JvWer.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Da20qmQ1.js +1 -0
- package/build/client/_app/immutable/nodes/11.Da20qmQ1.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Da20qmQ1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js +14 -0
- package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DeNfg3Jn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js +150 -0
- package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.Vg3b6KJ-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DNQBbVNt.js +11 -0
- package/build/client/_app/immutable/nodes/15.DNQBbVNt.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DNQBbVNt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.PXR5gryE.js +9 -0
- package/build/client/_app/immutable/nodes/16.PXR5gryE.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.PXR5gryE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.D6wwTzw0.js +2 -0
- package/build/client/_app/immutable/nodes/17.D6wwTzw0.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.D6wwTzw0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js +6 -0
- package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BYPKt-Zj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.eOj7WL-z.js +1 -0
- package/build/client/_app/immutable/nodes/19.eOj7WL-z.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.eOj7WL-z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.iGkQWI53.js +14 -0
- package/build/client/_app/immutable/nodes/2.iGkQWI53.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.iGkQWI53.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.COEvYhSn.js +6 -0
- package/build/client/_app/immutable/nodes/20.COEvYhSn.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.COEvYhSn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DgV1VyBd.js +5 -0
- package/build/client/_app/immutable/nodes/3.DgV1VyBd.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DgV1VyBd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BFV94RXa.js +1 -0
- package/build/client/_app/immutable/nodes/4.BFV94RXa.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BFV94RXa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DXQSdCv2.js +1 -0
- package/build/client/_app/immutable/nodes/5.DXQSdCv2.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DXQSdCv2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BVvx9mug.js +7 -0
- package/build/client/_app/immutable/nodes/6.BVvx9mug.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BVvx9mug.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.bgzyRDkn.js +4 -0
- package/build/client/_app/immutable/nodes/7.bgzyRDkn.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.bgzyRDkn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BjRlvbf0.js +1 -0
- package/build/client/_app/immutable/nodes/9.BjRlvbf0.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BjRlvbf0.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-CvR7ULLC.js +461 -0
- package/build/server/chunks/chunks/EtaLine.js-CtcOSLzV.js +79 -0
- package/build/server/chunks/chunks/EveryProjectSwitch.js-DWet6DU1.js +200 -0
- package/build/server/chunks/chunks/ProjectBanner.js-19PQF0LD.js +111 -0
- package/build/server/chunks/chunks/ResizableRail.js-BmMh1aVL.js +801 -0
- package/build/server/chunks/chunks/chat.svelte.js-b0uQXOge.js +545 -0
- package/build/server/chunks/chunks/detail.js-9VHqIqfd.js +121 -0
- package/build/server/chunks/chunks/internal.js-CxWYnS4m.js +146 -0
- package/build/server/chunks/chunks/keys.js-iHygUPeb.js +20 -0
- package/build/server/chunks/chunks/live.svelte.js-DavJCZVs.js +238 -0
- package/build/server/chunks/chunks/pullrequests.js-CWGxTy8C.js +68 -0
- package/build/server/chunks/chunks/pullrequests2.js-CCzk2sqm.js +12 -0
- package/build/server/chunks/chunks/repo.js-DU-pK5Nw.js +33 -0
- package/build/server/chunks/chunks/runtime.js-4msnOWzY.js +15335 -0
- package/build/server/chunks/chunks/service.js-DZR6CoEI.js +914 -0
- package/build/server/chunks/chunks/slots.svelte.js-CLIV5nwM.js +34 -0
- package/build/server/chunks/chunks/store.js-ByNV-OHV.js +323 -0
- package/build/server/chunks/chunks/uploads.js-4OZ09onz.js +107 -0
- package/build/server/chunks/chunks/view.js-BPycofxX.js +76 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DqDt7aNN.js +90 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-D-mwPJ4E.js +100 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DTl4eBah.js +49 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-HFyCRRIx.js +83 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CO7kITUs.js +119 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-CTdaQTFX.js +45 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-DKxlZSX3.js +51 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bp4CsZQ9.js +44 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js--Ti6GfKf.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DudckFen.js +54 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-H09D-uaY.js +44 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-B1jFlBJC.js +31 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-B2h2nWSK.js +39 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BMcNM7_1.js +36 -0
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-CVc8gLps.js +100 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BcVLJq4f.js +36 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DKqY2sWJ.js +60 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-a4l41m0P.js +51 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Cr_YrS6N.js +36 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CZUfk-OY.js +71 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CPBW7xEV.js +23 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Dg2Sbcgq.js +59 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-C9LXRfKc.js +35 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-C7RCx22P.js +36 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CSPS_3gF.js +35 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DWxejv3K.js +38 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BYYXspMy.js +23 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BAPnLV-3.js +41 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-OYV-kJGk.js +50 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-DovNLcSw.js +62 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CYU1VGUf.js +49 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CgCzXBIB.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BZ2S7d9x.js +55 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-CMVRpWqZ.js +55 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-BhhLjW17.js +44 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-Bukv4dSq.js +41 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BsHRnnS7.js +60 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B9eygpXJ.js +48 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-o7w8BRpJ.js +93 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-BaXho4qD.js +110 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CagOXKfp.js +54 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CAcsCtS9.js +23 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CSlKdXcw.js +23 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-OEWlGF9d.js +40 -0
- package/build/server/chunks/entries/hooks.server.js-BeVVnKyB.js +54 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-CFzh0bb7.js +24 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-BQyvY_vc.js +8746 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-DqT-OIkV.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DMDSI7Tw.js +2220 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CGjy1S4B.js +11 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-D6VF_7EK.js +17 -0
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-Cbei7bFp.js +46 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-D8RsASWB.js +580 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DtFxpkIR.js +11 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-Bn5pWt__.js +185 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CybSuVD4.js +16 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DMPiRdLN.js +52 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CroKCV4u.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-_DNqdqJc.js +976 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-Vb8907y2.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-BLTTCa_O.js +74 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-Cor2JYpv.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-BTgNmS_4.js +433 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Dtvwihv0.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-DuitNXlV.js +1880 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BqNGCjSG.js +11 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-CQ9DVI4s.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-U1GPMY59.js +1847 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-C_YGnjmx.js +17 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-C_gSykyo.js +220 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-C-lePqYN.js +25 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Ds1ivkgU.js +2142 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DH7nAB6U.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-Bfe-SSUC.js +11 -0
- package/build/server/chunks/handler-CViJcHBG.js +1474 -0
- package/build/server/chunks/index.js-DO8YdJ_5.js +4296 -0
- package/build/server/chunks/manifest.js-DJYckUS-.js +501 -0
- package/build/server/chunks/nodes/0.js-DZ4kFPNe.js +41 -0
- package/build/server/chunks/nodes/1.js-CLGjQTlS.js +9 -0
- package/build/server/chunks/nodes/10.js-BN4Clcbg.js +43 -0
- package/build/server/chunks/nodes/11.js-DWB1yiJ6.js +42 -0
- package/build/server/chunks/nodes/12.js-CA99401F.js +43 -0
- package/build/server/chunks/nodes/13.js-YsHE2JFx.js +42 -0
- package/build/server/chunks/nodes/15.js-CLdnAt4r.js +41 -0
- package/build/server/chunks/nodes/16.js-B-2Iq3Ye.js +41 -0
- package/build/server/chunks/nodes/17.js-BTM2TsmR.js +44 -0
- package/build/server/chunks/nodes/18.js-D3m0ATU2.js +42 -0
- package/build/server/chunks/nodes/19.js-C3dO33LH.js +42 -0
- package/build/server/chunks/nodes/2.js-51wjL-91.js +41 -0
- package/build/server/chunks/nodes/20.js-e41qDeY7.js +41 -0
- package/build/server/chunks/nodes/3.js-3JUV-tiI.js +41 -0
- package/build/server/chunks/nodes/4.js-CI6WGOXE.js +41 -0
- package/build/server/chunks/nodes/5.js-tZ-lWwlu.js +45 -0
- package/build/server/chunks/nodes/6.js-BgQesykU.js +41 -0
- package/build/server/chunks/nodes/7.js-CFXzqkNQ.js +9 -0
- package/build/server/chunks/nodes/9.js-CUQI6T4W.js +41 -0
- package/dist/cli.js +2 -12
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/assets/0.CKUND0qa.css +0 -1
- package/build/client/_app/immutable/assets/0.CKUND0qa.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CKUND0qa.css.gz +0 -0
- package/build/client/_app/immutable/assets/20.KLSHp5Yu.css +0 -1
- package/build/client/_app/immutable/assets/20.KLSHp5Yu.css.br +0 -0
- package/build/client/_app/immutable/assets/20.KLSHp5Yu.css.gz +0 -0
- package/build/client/_app/immutable/chunks/08Q01-Mc.js +0 -1
- package/build/client/_app/immutable/chunks/08Q01-Mc.js.br +0 -0
- package/build/client/_app/immutable/chunks/08Q01-Mc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/0TvUxbRv.js +0 -1
- package/build/client/_app/immutable/chunks/0TvUxbRv.js.br +0 -2
- package/build/client/_app/immutable/chunks/0TvUxbRv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/3Of2kn6M.js +0 -5
- package/build/client/_app/immutable/chunks/3Of2kn6M.js.br +0 -0
- package/build/client/_app/immutable/chunks/3Of2kn6M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5fVeMNeJ.js +0 -1
- package/build/client/_app/immutable/chunks/5fVeMNeJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/5fVeMNeJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/A8GZ5Uuc.js +0 -1
- package/build/client/_app/immutable/chunks/A8GZ5Uuc.js.br +0 -0
- package/build/client/_app/immutable/chunks/A8GZ5Uuc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/AHy1Hzhf.js +0 -1
- package/build/client/_app/immutable/chunks/AHy1Hzhf.js.br +0 -0
- package/build/client/_app/immutable/chunks/AHy1Hzhf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3jXa2LJ.js +0 -1
- package/build/client/_app/immutable/chunks/B3jXa2LJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3jXa2LJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEDHe9fo.js +0 -1
- package/build/client/_app/immutable/chunks/BEDHe9fo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEDHe9fo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJ_s8GdZ.js +0 -2
- package/build/client/_app/immutable/chunks/BJ_s8GdZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJ_s8GdZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BKd0HUNP.js +0 -1
- package/build/client/_app/immutable/chunks/BKd0HUNP.js.br +0 -1
- package/build/client/_app/immutable/chunks/BKd0HUNP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BLL4xbEj.js +0 -1
- package/build/client/_app/immutable/chunks/BLL4xbEj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BLL4xbEj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUUcNufp.js +0 -1
- package/build/client/_app/immutable/chunks/BUUcNufp.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUUcNufp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BY5XjwMm.js +0 -1
- package/build/client/_app/immutable/chunks/BY5XjwMm.js.br +0 -0
- package/build/client/_app/immutable/chunks/BY5XjwMm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdZ-2OIO.js +0 -1
- package/build/client/_app/immutable/chunks/BdZ-2OIO.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdZ-2OIO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdvB_H6l.js +0 -1
- package/build/client/_app/immutable/chunks/BdvB_H6l.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdvB_H6l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bm8huziG.js +0 -1
- package/build/client/_app/immutable/chunks/Bm8huziG.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bm8huziG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnMEvq-8.js +0 -1
- package/build/client/_app/immutable/chunks/BnMEvq-8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnMEvq-8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BngQrigD.js +0 -1
- package/build/client/_app/immutable/chunks/BngQrigD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BngQrigD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqQtpLRF.js +0 -5
- package/build/client/_app/immutable/chunks/BqQtpLRF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqQtpLRF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bx2K4OII.js +0 -1
- package/build/client/_app/immutable/chunks/Bx2K4OII.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bx2K4OII.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bypc6r1_.js +0 -1
- package/build/client/_app/immutable/chunks/Bypc6r1_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bypc6r1_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C16DfZ5a.js +0 -1
- package/build/client/_app/immutable/chunks/C16DfZ5a.js.br +0 -1
- package/build/client/_app/immutable/chunks/C16DfZ5a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3Yi7wCu.js +0 -1
- package/build/client/_app/immutable/chunks/C3Yi7wCu.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3Yi7wCu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3e5IrpE.js +0 -1
- package/build/client/_app/immutable/chunks/C3e5IrpE.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3e5IrpE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3o9xHsB.js +0 -1
- package/build/client/_app/immutable/chunks/C3o9xHsB.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3o9xHsB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6q0X9xa.js +0 -1
- package/build/client/_app/immutable/chunks/C6q0X9xa.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6q0X9xa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C74jQQYs.js +0 -1
- package/build/client/_app/immutable/chunks/C74jQQYs.js.br +0 -0
- package/build/client/_app/immutable/chunks/C74jQQYs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBHYGBBU.js +0 -4
- package/build/client/_app/immutable/chunks/CBHYGBBU.js.br +0 -0
- package/build/client/_app/immutable/chunks/CBHYGBBU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CD3hbDYc.js +0 -1
- package/build/client/_app/immutable/chunks/CD3hbDYc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CD3hbDYc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CE3Ue5FU.js +0 -1
- package/build/client/_app/immutable/chunks/CE3Ue5FU.js.br +0 -0
- package/build/client/_app/immutable/chunks/CE3Ue5FU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CGGuNYjO.js +0 -1
- package/build/client/_app/immutable/chunks/CGGuNYjO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CGGuNYjO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CH_9Gtej.js +0 -1
- package/build/client/_app/immutable/chunks/CH_9Gtej.js.br +0 -0
- package/build/client/_app/immutable/chunks/CH_9Gtej.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIj4gWfs.js +0 -1
- package/build/client/_app/immutable/chunks/CIj4gWfs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIj4gWfs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJ3NIasv.js +0 -1
- package/build/client/_app/immutable/chunks/CJ3NIasv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJ3NIasv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKEJURpk.js +0 -1
- package/build/client/_app/immutable/chunks/CKEJURpk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKEJURpk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPmGhju_.js +0 -1
- package/build/client/_app/immutable/chunks/CPmGhju_.js.br +0 -1
- package/build/client/_app/immutable/chunks/CPmGhju_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXcL7cOb.js +0 -1
- package/build/client/_app/immutable/chunks/CXcL7cOb.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXcL7cOb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXgAyvD-.js +0 -1
- package/build/client/_app/immutable/chunks/CXgAyvD-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXgAyvD-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZBcpBnY.js +0 -1
- package/build/client/_app/immutable/chunks/CZBcpBnY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZBcpBnY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cb-gOV5k.js +0 -1
- package/build/client/_app/immutable/chunks/Cb-gOV5k.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cb-gOV5k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl7r7DFs.js +0 -1
- package/build/client/_app/immutable/chunks/Cl7r7DFs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cl7r7DFs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cm8CSK8p.js +0 -1
- package/build/client/_app/immutable/chunks/Cm8CSK8p.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cm8CSK8p.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cng04DK0.js +0 -1
- package/build/client/_app/immutable/chunks/Cng04DK0.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cng04DK0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqOnPLsz.js +0 -1
- package/build/client/_app/immutable/chunks/CqOnPLsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CqOnPLsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cqy1lT7e.js +0 -1
- package/build/client/_app/immutable/chunks/Cqy1lT7e.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cqy1lT7e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrjvgIhR.js +0 -1
- package/build/client/_app/immutable/chunks/CrjvgIhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrjvgIhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CsRBDrRN.js +0 -1
- package/build/client/_app/immutable/chunks/CsRBDrRN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CsRBDrRN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CwwFbl61.js +0 -62
- package/build/client/_app/immutable/chunks/CwwFbl61.js.br +0 -0
- package/build/client/_app/immutable/chunks/CwwFbl61.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D0JSbOCt.js +0 -1
- package/build/client/_app/immutable/chunks/D0JSbOCt.js.br +0 -0
- package/build/client/_app/immutable/chunks/D0JSbOCt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D25j-NnT.js +0 -1
- package/build/client/_app/immutable/chunks/D25j-NnT.js.br +0 -0
- package/build/client/_app/immutable/chunks/D25j-NnT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5hwKKRv.js +0 -1
- package/build/client/_app/immutable/chunks/D5hwKKRv.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5hwKKRv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBxUIz0k.js +0 -1
- package/build/client/_app/immutable/chunks/DBxUIz0k.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBxUIz0k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DH7t4M9x.js +0 -1
- package/build/client/_app/immutable/chunks/DH7t4M9x.js.br +0 -0
- package/build/client/_app/immutable/chunks/DH7t4M9x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DIsXG5DF.js +0 -1
- package/build/client/_app/immutable/chunks/DIsXG5DF.js.br +0 -0
- package/build/client/_app/immutable/chunks/DIsXG5DF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNgh8jh8.js +0 -1
- package/build/client/_app/immutable/chunks/DNgh8jh8.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNgh8jh8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOWSzKHL.js +0 -1
- package/build/client/_app/immutable/chunks/DOWSzKHL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOWSzKHL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DSbOoIPC.js +0 -1
- package/build/client/_app/immutable/chunks/DSbOoIPC.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSbOoIPC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUYBhCSA.js +0 -1
- package/build/client/_app/immutable/chunks/DUYBhCSA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUYBhCSA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfDxKk91.js +0 -2
- package/build/client/_app/immutable/chunks/DfDxKk91.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfDxKk91.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhfQd5fc.js +0 -1
- package/build/client/_app/immutable/chunks/DhfQd5fc.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhfQd5fc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmYFgZ4g.js +0 -6
- package/build/client/_app/immutable/chunks/DmYFgZ4g.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmYFgZ4g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dn-83VwV.js +0 -1
- package/build/client/_app/immutable/chunks/Dn-83VwV.js.br +0 -1
- package/build/client/_app/immutable/chunks/Dn-83VwV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dnnuh6qK.js +0 -1
- package/build/client/_app/immutable/chunks/Dnnuh6qK.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dnnuh6qK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DocaGLjv.js +0 -1
- package/build/client/_app/immutable/chunks/DocaGLjv.js.br +0 -0
- package/build/client/_app/immutable/chunks/DocaGLjv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dqlbq2bD.js +0 -2
- package/build/client/_app/immutable/chunks/Dqlbq2bD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dqlbq2bD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dy07EIjs.js +0 -1
- package/build/client/_app/immutable/chunks/Dy07EIjs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy07EIjs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dy_X9Fgu.js +0 -1
- package/build/client/_app/immutable/chunks/Dy_X9Fgu.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy_X9Fgu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I26VQaTs.js +0 -2
- package/build/client/_app/immutable/chunks/I26VQaTs.js.br +0 -0
- package/build/client/_app/immutable/chunks/I26VQaTs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IsTbwoyV.js +0 -1
- package/build/client/_app/immutable/chunks/IsTbwoyV.js.br +0 -0
- package/build/client/_app/immutable/chunks/IsTbwoyV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Km1CymxJ.js +0 -1
- package/build/client/_app/immutable/chunks/Km1CymxJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Km1CymxJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Me06-nC7.js +0 -1
- package/build/client/_app/immutable/chunks/Me06-nC7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Me06-nC7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PQApLOOr.js +0 -1
- package/build/client/_app/immutable/chunks/PQApLOOr.js.br +0 -0
- package/build/client/_app/immutable/chunks/PQApLOOr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WcvPAxq7.js +0 -1
- package/build/client/_app/immutable/chunks/WcvPAxq7.js.br +0 -0
- package/build/client/_app/immutable/chunks/WcvPAxq7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZoG8qKMx.js +0 -1
- package/build/client/_app/immutable/chunks/ZoG8qKMx.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZoG8qKMx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qb_JS6rP.js +0 -1
- package/build/client/_app/immutable/chunks/qb_JS6rP.js.br +0 -0
- package/build/client/_app/immutable/chunks/qb_JS6rP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/riwaJFkb.js +0 -3
- package/build/client/_app/immutable/chunks/riwaJFkb.js.br +0 -0
- package/build/client/_app/immutable/chunks/riwaJFkb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wDLVOANX.js +0 -2
- package/build/client/_app/immutable/chunks/wDLVOANX.js.br +0 -0
- package/build/client/_app/immutable/chunks/wDLVOANX.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CNnpPQtw.js +0 -2
- package/build/client/_app/immutable/entry/app.CNnpPQtw.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CNnpPQtw.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BGpEqKH0.js +0 -1
- package/build/client/_app/immutable/entry/start.BGpEqKH0.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BGpEqKH0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CGlGdRWB.js +0 -8
- package/build/client/_app/immutable/nodes/0.CGlGdRWB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CGlGdRWB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B4M0q1v4.js +0 -1
- package/build/client/_app/immutable/nodes/1.B4M0q1v4.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B4M0q1v4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.LJhhE6c8.js +0 -3
- package/build/client/_app/immutable/nodes/10.LJhhE6c8.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.LJhhE6c8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CM_xAozz.js +0 -1
- package/build/client/_app/immutable/nodes/11.CM_xAozz.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CM_xAozz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.UENbuJYy.js +0 -14
- package/build/client/_app/immutable/nodes/12.UENbuJYy.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.UENbuJYy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.NbAfy9an.js +0 -150
- package/build/client/_app/immutable/nodes/13.NbAfy9an.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.NbAfy9an.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.BgyPK-jf.js +0 -11
- package/build/client/_app/immutable/nodes/15.BgyPK-jf.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.BgyPK-jf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.DcgniGJK.js +0 -9
- package/build/client/_app/immutable/nodes/16.DcgniGJK.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DcgniGJK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CB9DXHxS.js +0 -2
- package/build/client/_app/immutable/nodes/17.CB9DXHxS.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CB9DXHxS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BHa-KoGE.js +0 -6
- package/build/client/_app/immutable/nodes/18.BHa-KoGE.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BHa-KoGE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19._VaGaWBD.js +0 -1
- package/build/client/_app/immutable/nodes/19._VaGaWBD.js.br +0 -0
- package/build/client/_app/immutable/nodes/19._VaGaWBD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DKxd0T79.js +0 -14
- package/build/client/_app/immutable/nodes/2.DKxd0T79.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DKxd0T79.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.C10FVhEw.js +0 -10
- package/build/client/_app/immutable/nodes/20.C10FVhEw.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.C10FVhEw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BhyJIr3P.js +0 -6
- package/build/client/_app/immutable/nodes/21.BhyJIr3P.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BhyJIr3P.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CcRoRYc-.js +0 -5
- package/build/client/_app/immutable/nodes/3.CcRoRYc-.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CcRoRYc-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BulJqGnt.js +0 -1
- package/build/client/_app/immutable/nodes/4.BulJqGnt.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BulJqGnt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BT3hraTU.js +0 -1
- package/build/client/_app/immutable/nodes/5.BT3hraTU.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BT3hraTU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DtNMha3Y.js +0 -7
- package/build/client/_app/immutable/nodes/6.DtNMha3Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DtNMha3Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js +0 -4
- package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Bv6Vn8eC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js +0 -1
- package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DgQz7-Cb.js.gz +0 -0
- package/build/server/chunks/chunks/DecisionCard.js-B1YgF5EF.js +0 -446
- package/build/server/chunks/chunks/DictateTextarea.js-CbkGsd1h.js +0 -415
- package/build/server/chunks/chunks/EtaLine.js-5SCP9O1f.js +0 -79
- package/build/server/chunks/chunks/EveryProjectSwitch.js-DzcwkHh4.js +0 -200
- package/build/server/chunks/chunks/ProjectBanner.js-ByPp7Y_e.js +0 -111
- package/build/server/chunks/chunks/ResizableRail.js-BS8hRLV0.js +0 -395
- package/build/server/chunks/chunks/chat.svelte.js--pRzj_Xo.js +0 -545
- package/build/server/chunks/chunks/compass.js-k2sRSGWn.js +0 -23
- package/build/server/chunks/chunks/detail.js-DDoqeh1A.js +0 -144
- package/build/server/chunks/chunks/git-pull-request.js-BMzktlcs.js +0 -20
- package/build/server/chunks/chunks/http2.js-fIdVBJaD.js +0 -26
- package/build/server/chunks/chunks/internal.js-BlgsFxfY.js +0 -146
- package/build/server/chunks/chunks/keys.js-CdtCzv-v.js +0 -20
- package/build/server/chunks/chunks/live.svelte.js-By2dseJB.js +0 -253
- package/build/server/chunks/chunks/message-square-text.js-CyRiNGB8.js +0 -25
- package/build/server/chunks/chunks/monitor-play.js-4ed3ghDf.js +0 -28
- package/build/server/chunks/chunks/prreview.js-Cg9LDxJp.js +0 -92
- package/build/server/chunks/chunks/repo.js-CuWUNKbP.js +0 -33
- package/build/server/chunks/chunks/runtime.js-BuGWYyZZ.js +0 -16470
- package/build/server/chunks/chunks/service.js-DQK1kj-4.js +0 -914
- package/build/server/chunks/chunks/slots.svelte.js-0Ejhe-hS.js +0 -34
- package/build/server/chunks/chunks/store.js-XXOawxPN.js +0 -317
- package/build/server/chunks/chunks/uploads.js-D45pIvPk.js +0 -107
- package/build/server/chunks/chunks/view.js-CrOFjYk4.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DSkVUNdc.js +0 -90
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CYnLRjOH.js +0 -106
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CG8IGmSp.js +0 -49
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-fmzKkrXb.js +0 -83
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BgIU3add.js +0 -119
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-Ba9E_53E.js +0 -45
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-BQZBERsR.js +0 -51
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BnT3VHSx.js +0 -44
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DRYHwJ7R.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BD2B1ByG.js +0 -54
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DB-m2WWH.js +0 -44
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CK3swjFX.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-WCE63uer.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-D5-3acjK.js +0 -36
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-B2I7jHdc.js +0 -100
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BFSqEG5B.js +0 -36
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BpUaHfsf.js +0 -60
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BNRD4HyF.js +0 -51
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-7808SNDM.js +0 -36
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-B-cQTShG.js +0 -71
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CPAHSih2.js +0 -23
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-DW3M1pzH.js +0 -59
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-DDTSw0pX.js +0 -35
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-BlD-1l6V.js +0 -36
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-IT-jeApI.js +0 -35
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DQqKN2MF.js +0 -38
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-D7rx-bwI.js +0 -23
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BC0HjK9M.js +0 -41
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-aVmcjStV.js +0 -50
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BuHN_WYU.js +0 -62
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Dx0x7sws.js +0 -49
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CcCDMmmF.js +0 -72
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BsOOyTNM.js +0 -55
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DGyU8Zmu.js +0 -55
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-1B8fEiat.js +0 -44
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-D4CKazw-.js +0 -41
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CUKo26Ia.js +0 -60
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-BOa2lgvP.js +0 -48
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BmI8Ofms.js +0 -93
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-C2mJi22c.js +0 -110
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/_server.ts.js-8pN6fHl8.js +0 -43
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/ask/_server.ts.js-D6D9O8Su.js +0 -49
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/check/_server.ts.js-BAaCwzOf.js +0 -48
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/guide/_server.ts.js-DfP2iNta.js +0 -48
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/review/runs/_run_/stop/_server.ts.js-DZDaSSYT.js +0 -41
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CJNUplXf.js +0 -54
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CVqjWsw8.js +0 -23
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CE2zzWtC.js +0 -23
- package/build/server/chunks/entries/hooks.server.js-FjSdw_QS.js +0 -54
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BkWAC802.js +0 -22
- package/build/server/chunks/entries/pages/_layout.svelte.js-DstinFjN.js +0 -8746
- package/build/server/chunks/entries/pages/_page.server.ts.js-BXkuWJh7.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-ehBbQlco.js +0 -2194
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-B2YZfjBk.js +0 -11
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-CT3pm5a6.js +0 -17
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CcLkegHq.js +0 -46
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-hBC6QUHZ.js +0 -580
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BazCFIuz.js +0 -11
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-rjm303kf.js +0 -185
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BRQpg3kQ.js +0 -16
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DazeLLT8.js +0 -52
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BIypd_XU.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DJajtLup.js +0 -945
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BwAOIwUv.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cm8mxt61.js +0 -74
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CnfqlJgl.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CuMA-rCM.js +0 -433
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CG14M19O.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-mtGQO-dJ.js +0 -1880
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-Zgfe-LX9.js +0 -11
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DZ4oJmnj.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-gBZCjZlg.js +0 -1847
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-Dm-tgyir.js +0 -17
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-BFGxdrrb.js +0 -220
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Llp3a0Fb.js +0 -25
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-LgJMZ2RE.js +0 -2107
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DuWuEdZ2.js +0 -24
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.server.ts.js-BMQF9I9c.js +0 -15
- package/build/server/chunks/entries/pages/tasks/_id_/review/_page.svelte.js-k659tqiw.js +0 -657
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-DstGu3ji.js +0 -11
- package/build/server/chunks/handler-BRidfBIY.js +0 -1474
- package/build/server/chunks/index.js-Dhoi5wa_.js +0 -4296
- package/build/server/chunks/manifest.js-CF4aVg77.js +0 -537
- package/build/server/chunks/nodes/0.js-B2yTHeOL.js +0 -41
- package/build/server/chunks/nodes/1.js-BoD2_1or.js +0 -9
- package/build/server/chunks/nodes/10.js-C2XmTW8j.js +0 -43
- package/build/server/chunks/nodes/11.js-CAJnQkWH.js +0 -42
- package/build/server/chunks/nodes/12.js-Cu57dOUj.js +0 -43
- package/build/server/chunks/nodes/13.js-1g1BRnk_.js +0 -42
- package/build/server/chunks/nodes/15.js-BqL5jpLU.js +0 -41
- package/build/server/chunks/nodes/16.js-DibdTAKZ.js +0 -41
- package/build/server/chunks/nodes/17.js-BUFA5Avk.js +0 -44
- package/build/server/chunks/nodes/18.js-cxLrKmMx.js +0 -42
- package/build/server/chunks/nodes/19.js-DMbI3mDp.js +0 -42
- package/build/server/chunks/nodes/2.js-8QSIq2KZ.js +0 -41
- package/build/server/chunks/nodes/20.js-BNXpftag.js +0 -42
- package/build/server/chunks/nodes/21.js-DdJK6h7p.js +0 -41
- package/build/server/chunks/nodes/3.js-DHT7fiTy.js +0 -41
- package/build/server/chunks/nodes/4.js-DvjrLz8n.js +0 -41
- package/build/server/chunks/nodes/5.js-CvUGUQbi.js +0 -45
- package/build/server/chunks/nodes/6.js-ptKHsAn6.js +0 -41
- package/build/server/chunks/nodes/7.js-BigF9SYG.js +0 -9
- package/build/server/chunks/nodes/9.js-DkS4HHqV.js +0 -41
- /package/build/client/_app/immutable/assets/{DictateTextarea.Dga9zAug.css → checks.Dga9zAug.css} +0 -0
- /package/build/client/_app/immutable/assets/{DictateTextarea.Dga9zAug.css.br → checks.Dga9zAug.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{DictateTextarea.Dga9zAug.css.gz → checks.Dga9zAug.css.gz} +0 -0
|
@@ -0,0 +1,2220 @@
|
|
|
1
|
+
import { aj as head, ak as attr_class, al as escape_html, am as attr, an as stringify, a8 as ensure_array_like, _ as derived, ac as spread_props } from '../../chunks/index.js-B0NFhRTN.js';
|
|
2
|
+
import { p as page } from '../../chunks/index2.js-Bxt1T6_K.js';
|
|
3
|
+
import { l as live, a as currentFleet, c as currentHealth } from '../../chunks/live.svelte.js-DavJCZVs.js';
|
|
4
|
+
import { s as slots } from '../../chunks/slots.svelte.js-CLIV5nwM.js';
|
|
5
|
+
import { s as slotKey } from '../../chunks/keys.js-iHygUPeb.js';
|
|
6
|
+
import { h as harbour, b as headline } from '../../chunks/harbour.js-PHLHOFea.js';
|
|
7
|
+
import { p as parseAttachments, a as UPLOAD_MAX_BYTES, k as kindLabel, f as fileSize, i as isImage, b as pastedName, N as NAME_HEADER, T as TYPE_HEADER, t as thumbUrl } from '../../chunks/attachments.js-BAnnqpd-.js';
|
|
8
|
+
import { M as Maximize_2, L as Lightbox, S as StageTrack } from '../../chunks/StageTrack.js-DHvZX7Bl.js';
|
|
9
|
+
import { F as File_text } from '../../chunks/file-text.js-CnuVvHlB.js';
|
|
10
|
+
import { f as choiceLabel } from '../../chunks/inbox.js-Dv8a1ecX.js';
|
|
11
|
+
import { f as firstmateChat, d as duration, p as pendingLabel, a as activitySummary } from '../../chunks/chat.svelte.js-b0uQXOge.js';
|
|
12
|
+
import { m as markdown } from '../../chunks/markdown.js-CApgGpeX.js';
|
|
13
|
+
import { i as inbox } from '../../chunks/inbox.svelte.js-n7K3YnGB.js';
|
|
14
|
+
import { a as ago } from '../../chunks/format.js-D3lWEg6U.js';
|
|
15
|
+
import { m as matchBridgeCards } from '../../chunks/vault.js-CTaWe09z.js';
|
|
16
|
+
import { B as Blocks, S as SlotContent } from '../../chunks/SlotContent.js-B4p1QLQN.js';
|
|
17
|
+
import { L as LinkedText } from '../../chunks/LinkedText.js-COjHV297.js';
|
|
18
|
+
import { L as Loader_circle } from '../../chunks/loader-circle.js-rQHvIWN7.js';
|
|
19
|
+
import { C as Chevron_right } from '../../chunks/chevron-right.js-DCBAqAae.js';
|
|
20
|
+
import '../../chunks/exports.js-BZBK1HC9.js';
|
|
21
|
+
import '../../chunks/utils2.js-BQzn9ikS.js';
|
|
22
|
+
import '../../chunks/utils.js-BJgm9WbO.js';
|
|
23
|
+
import '../../chunks/root.js-60iebdW4.js';
|
|
24
|
+
import '../../chunks/button.js-BF2PsvWw.js';
|
|
25
|
+
import { I as Icon } from '../../chunks/Icon.js-CVZZ-yuB.js';
|
|
26
|
+
import { R as ResizableRail, C as Circle_check, L as LivePreview, M as MicButton, S as Square, O as OpenDecision, P as PreviewStudio, e as editableTarget } from '../../chunks/ResizableRail.js-BmMh1aVL.js';
|
|
27
|
+
import { R as Rotate_cw } from '../../chunks/rotate-cw.js-M4SHOpYI.js';
|
|
28
|
+
import { A as Arrow_up } from '../../chunks/arrow-up.js-DHbXk79z.js';
|
|
29
|
+
import { M as Messages_square } from '../../chunks/messages-square.js-BXH8BHfd.js';
|
|
30
|
+
import { h as html } from '../../chunks/html.js-FW6Ia4bL.js';
|
|
31
|
+
import { M as Monitor_play, G as Git_pull_request, C as Compass, p as pullRequests } from '../../chunks/pullrequests.js-CWGxTy8C.js';
|
|
32
|
+
import { E as External_link } from '../../chunks/external-link.js-BQs1euhR.js';
|
|
33
|
+
import { C as Circle_dashed } from '../../chunks/circle-dashed.js-fXv_bIo-.js';
|
|
34
|
+
import { S as SESSION_HEADER } from '../../chunks/messages.js-CFyGKoqq.js';
|
|
35
|
+
import { C as Circle_alert } from '../../chunks/circle-alert.js-XTuAj7ZH.js';
|
|
36
|
+
import { X } from '../../chunks/x.js-YxaUOlq9.js';
|
|
37
|
+
import { S as Square_terminal } from '../../chunks/square-terminal.js-D9D9_9_V.js';
|
|
38
|
+
import { M as Message_circle_question_mark } from '../../chunks/message-circle-question-mark.js-DbmaS9k_.js';
|
|
39
|
+
import { C as Check } from '../../chunks/check.js-32sYHVxG.js';
|
|
40
|
+
import { B as Bell, G as Gauge } from '../../chunks/gauge.js-Cbb1aqE7.js';
|
|
41
|
+
import { T as Triangle_alert } from '../../chunks/triangle-alert.js-ClLszsZE.js';
|
|
42
|
+
import { H as Hand } from '../../chunks/hand.js-BA9yKAan.js';
|
|
43
|
+
import { a as showsChecks, r as runStep } from '../../chunks/checks.js-DR3fVVpO.js';
|
|
44
|
+
import { d as duration$1, t as total, s as sumSplits } from '../../chunks/insights.js-CzzfyHGp.js';
|
|
45
|
+
import { C as ChecksStrip, E as EtaLine } from '../../chunks/EtaLine.js-CtcOSLzV.js';
|
|
46
|
+
import { A as AllowanceMeter } from '../../chunks/AllowanceMeter.js-DBpmESX6.js';
|
|
47
|
+
import { T as TimeBar } from '../../chunks/TimeBar.js-CUFKEJW9.js';
|
|
48
|
+
import { A as Arrow_right } from '../../chunks/arrow-right.js-CNYqcx0M.js';
|
|
49
|
+
import { A as Anchor, p as projectLabels, a as aliases } from '../../chunks/aliases.svelte.js-C_vCoKdk.js';
|
|
50
|
+
import { S as Scale } from '../../chunks/scale.js-S5g8YUqL.js';
|
|
51
|
+
import { M as Message_square } from '../../chunks/message-square.js-XK15WVZq.js';
|
|
52
|
+
import { O as Octagon_alert } from '../../chunks/DecisionCard.js-CvR7ULLC.js';
|
|
53
|
+
import '../../chunks/chevron-left.js-D5RHY-kD.js';
|
|
54
|
+
import '../../chunks/tone.js-Dxsl-adt.js';
|
|
55
|
+
import '../../chunks/docpath.js-D27w_pf9.js';
|
|
56
|
+
import '../../chunks/urls.js-BrlC6XZ8.js';
|
|
57
|
+
import '../../chunks/preview.js-hrimfbCG.js';
|
|
58
|
+
import '../../chunks/index-server2.js-Fb2GE8KQ.js';
|
|
59
|
+
import '../../chunks/pullrequests2.js-CCzk2sqm.js';
|
|
60
|
+
import '../../chunks/clock.js-CHhHTWK_.js';
|
|
61
|
+
import '../../chunks/chevron-down.js-CH53s_me.js';
|
|
62
|
+
|
|
63
|
+
function App_window($$renderer, $$props) {
|
|
64
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
65
|
+
const iconData = {
|
|
66
|
+
"name": "app-window",
|
|
67
|
+
"size": 24,
|
|
68
|
+
"node": [
|
|
69
|
+
[
|
|
70
|
+
"rect",
|
|
71
|
+
{ "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }
|
|
72
|
+
],
|
|
73
|
+
["path", { "d": "M10 4v4" }],
|
|
74
|
+
["path", { "d": "M2 8h20" }],
|
|
75
|
+
["path", { "d": "M6 4v4" }]
|
|
76
|
+
]
|
|
77
|
+
};
|
|
78
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
79
|
+
}
|
|
80
|
+
function Arrow_left_right($$renderer, $$props) {
|
|
81
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
82
|
+
const iconData = {
|
|
83
|
+
"name": "arrow-left-right",
|
|
84
|
+
"size": 24,
|
|
85
|
+
"node": [
|
|
86
|
+
["path", { "d": "M8 3 4 7l4 4" }],
|
|
87
|
+
["path", { "d": "M4 7h16" }],
|
|
88
|
+
["path", { "d": "m16 21 4-4-4-4" }],
|
|
89
|
+
["path", { "d": "M20 17H4" }]
|
|
90
|
+
]
|
|
91
|
+
};
|
|
92
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
93
|
+
}
|
|
94
|
+
function Arrow_up_right($$renderer, $$props) {
|
|
95
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
96
|
+
const iconData = {
|
|
97
|
+
"name": "arrow-up-right",
|
|
98
|
+
"size": 24,
|
|
99
|
+
"node": [
|
|
100
|
+
["path", { "d": "M7 7h10v10" }],
|
|
101
|
+
["path", { "d": "M7 17 17 7" }]
|
|
102
|
+
]
|
|
103
|
+
};
|
|
104
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
105
|
+
}
|
|
106
|
+
function Circle_x($$renderer, $$props) {
|
|
107
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
108
|
+
const iconData = {
|
|
109
|
+
"name": "circle-x",
|
|
110
|
+
"size": 24,
|
|
111
|
+
"node": [
|
|
112
|
+
["circle", { "cx": "12", "cy": "12", "r": "10" }],
|
|
113
|
+
["path", { "d": "m15 9-6 6" }],
|
|
114
|
+
["path", { "d": "m9 9 6 6" }]
|
|
115
|
+
],
|
|
116
|
+
"aliases": ["x-circle"]
|
|
117
|
+
};
|
|
118
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
119
|
+
}
|
|
120
|
+
function Git_merge($$renderer, $$props) {
|
|
121
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
122
|
+
const iconData = {
|
|
123
|
+
"name": "git-merge",
|
|
124
|
+
"size": 24,
|
|
125
|
+
"node": [
|
|
126
|
+
["circle", { "cx": "18", "cy": "18", "r": "3" }],
|
|
127
|
+
["circle", { "cx": "6", "cy": "6", "r": "3" }],
|
|
128
|
+
["path", { "d": "M6 21V9a9 9 0 0 0 9 9" }]
|
|
129
|
+
]
|
|
130
|
+
};
|
|
131
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
132
|
+
}
|
|
133
|
+
function Message_square_text($$renderer, $$props) {
|
|
134
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
135
|
+
const iconData = {
|
|
136
|
+
"name": "message-square-text",
|
|
137
|
+
"size": 24,
|
|
138
|
+
"node": [
|
|
139
|
+
[
|
|
140
|
+
"path",
|
|
141
|
+
{
|
|
142
|
+
"d": "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
["path", { "d": "M7 11h10" }],
|
|
146
|
+
["path", { "d": "M7 15h6" }],
|
|
147
|
+
["path", { "d": "M7 7h8" }]
|
|
148
|
+
]
|
|
149
|
+
};
|
|
150
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
151
|
+
}
|
|
152
|
+
function Panel_left($$renderer, $$props) {
|
|
153
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
154
|
+
const iconData = {
|
|
155
|
+
"name": "panel-left",
|
|
156
|
+
"size": 24,
|
|
157
|
+
"node": [
|
|
158
|
+
[
|
|
159
|
+
"rect",
|
|
160
|
+
{ "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
|
|
161
|
+
],
|
|
162
|
+
["path", { "d": "M9 3v18" }]
|
|
163
|
+
],
|
|
164
|
+
"aliases": ["sidebar"]
|
|
165
|
+
};
|
|
166
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
167
|
+
}
|
|
168
|
+
function Panel_right($$renderer, $$props) {
|
|
169
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
170
|
+
const iconData = {
|
|
171
|
+
"name": "panel-right",
|
|
172
|
+
"size": 24,
|
|
173
|
+
"node": [
|
|
174
|
+
[
|
|
175
|
+
"rect",
|
|
176
|
+
{ "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
|
|
177
|
+
],
|
|
178
|
+
["path", { "d": "M15 3v18" }]
|
|
179
|
+
]
|
|
180
|
+
};
|
|
181
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
182
|
+
}
|
|
183
|
+
function Paperclip($$renderer, $$props) {
|
|
184
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
185
|
+
const iconData = {
|
|
186
|
+
"name": "paperclip",
|
|
187
|
+
"size": 24,
|
|
188
|
+
"node": [
|
|
189
|
+
[
|
|
190
|
+
"path",
|
|
191
|
+
{
|
|
192
|
+
"d": "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
]
|
|
196
|
+
};
|
|
197
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
198
|
+
}
|
|
199
|
+
function Reply($$renderer, $$props) {
|
|
200
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
201
|
+
const iconData = {
|
|
202
|
+
"name": "reply",
|
|
203
|
+
"size": 24,
|
|
204
|
+
"node": [
|
|
205
|
+
["path", { "d": "M20 18v-2a4 4 0 0 0-4-4H4" }],
|
|
206
|
+
["path", { "d": "m9 17-5-5 5-5" }]
|
|
207
|
+
]
|
|
208
|
+
};
|
|
209
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
210
|
+
}
|
|
211
|
+
function Unplug($$renderer, $$props) {
|
|
212
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
213
|
+
const iconData = {
|
|
214
|
+
"name": "unplug",
|
|
215
|
+
"size": 24,
|
|
216
|
+
"node": [
|
|
217
|
+
["path", { "d": "m19 5 3-3" }],
|
|
218
|
+
["path", { "d": "m2 22 3-3" }],
|
|
219
|
+
[
|
|
220
|
+
"path",
|
|
221
|
+
{
|
|
222
|
+
"d": "M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
["path", { "d": "M7.5 13.5 10 11" }],
|
|
226
|
+
["path", { "d": "M10.5 16.5 13 14" }],
|
|
227
|
+
[
|
|
228
|
+
"path",
|
|
229
|
+
{
|
|
230
|
+
"d": "m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
]
|
|
234
|
+
};
|
|
235
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
236
|
+
}
|
|
237
|
+
function Users($$renderer, $$props) {
|
|
238
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
239
|
+
const iconData = {
|
|
240
|
+
"name": "users",
|
|
241
|
+
"size": 24,
|
|
242
|
+
"node": [
|
|
243
|
+
["path", { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }],
|
|
244
|
+
["path", { "d": "M16 3.128a4 4 0 0 1 0 7.744" }],
|
|
245
|
+
["path", { "d": "M22 21v-2a4 4 0 0 0-3-3.87" }],
|
|
246
|
+
["circle", { "cx": "9", "cy": "7", "r": "4" }]
|
|
247
|
+
]
|
|
248
|
+
};
|
|
249
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
250
|
+
}
|
|
251
|
+
function shipHealth(h) {
|
|
252
|
+
if (h.stepFailed.length || h.trouble.some((t) => t.status === "failed")) {
|
|
253
|
+
return { label: "Something failed", tone: "danger" };
|
|
254
|
+
}
|
|
255
|
+
const n = h.needsYou.length;
|
|
256
|
+
if (n) return { label: `${n} need${n === 1 ? "s" : ""} you`, tone: "sea" };
|
|
257
|
+
if (h.trouble.length) return { label: "Keeping an eye on a problem", tone: "warning" };
|
|
258
|
+
return { label: "All well", tone: "success" };
|
|
259
|
+
}
|
|
260
|
+
const TOO_LARGE = `Too large · ${UPLOAD_MAX_BYTES / (1024 * 1024)} MB at most`;
|
|
261
|
+
class Attachments {
|
|
262
|
+
drafts = [];
|
|
263
|
+
/** Files dropped on the chat, for the composer to take. */
|
|
264
|
+
dropped = [];
|
|
265
|
+
inflight = /* @__PURE__ */ new Map();
|
|
266
|
+
/** Add files and start uploading them. `pasted`: from the clipboard, so an image under the browser's generic name gets a readable one. */
|
|
267
|
+
add(files, token, pasted = false) {
|
|
268
|
+
for (const f of files) {
|
|
269
|
+
const generic = pasted && isImage(f.type) && /^image\.\w+$/.test(f.name);
|
|
270
|
+
const name = generic || !f.name ? pastedName(f.type) : f.name;
|
|
271
|
+
this.drafts.push({
|
|
272
|
+
id: crypto.randomUUID(),
|
|
273
|
+
name,
|
|
274
|
+
size: f.size,
|
|
275
|
+
type: f.type,
|
|
276
|
+
preview: isImage(f.type) ? URL.createObjectURL(f) : null,
|
|
277
|
+
state: "uploading",
|
|
278
|
+
progress: 0,
|
|
279
|
+
error: null,
|
|
280
|
+
upload: null
|
|
281
|
+
});
|
|
282
|
+
const d = this.drafts[this.drafts.length - 1];
|
|
283
|
+
if (f.size > UPLOAD_MAX_BYTES) this.fail(d, TOO_LARGE);
|
|
284
|
+
else if (f.size === 0) this.fail(d, "Empty file");
|
|
285
|
+
else this.send(d, f, token);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
remove(id) {
|
|
289
|
+
this.inflight.get(id)?.abort();
|
|
290
|
+
this.inflight.delete(id);
|
|
291
|
+
const d = this.drafts.find((x) => x.id === id);
|
|
292
|
+
if (d?.preview) URL.revokeObjectURL(d.preview);
|
|
293
|
+
this.drafts = this.drafts.filter((x) => x.id !== id);
|
|
294
|
+
}
|
|
295
|
+
/** The uploaded files, handed to the message; failed ones stay listed. */
|
|
296
|
+
take() {
|
|
297
|
+
const ready = this.drafts.filter((d) => d.state === "ready" && d.upload);
|
|
298
|
+
for (const d of ready) if (d.preview) URL.revokeObjectURL(d.preview);
|
|
299
|
+
this.drafts = this.drafts.filter((d) => !ready.includes(d));
|
|
300
|
+
return ready.map((d) => d.upload);
|
|
301
|
+
}
|
|
302
|
+
get uploading() {
|
|
303
|
+
return this.drafts.some((d) => d.state === "uploading");
|
|
304
|
+
}
|
|
305
|
+
get ready() {
|
|
306
|
+
return this.drafts.some((d) => d.state === "ready");
|
|
307
|
+
}
|
|
308
|
+
fail(d, error) {
|
|
309
|
+
d.state = "failed";
|
|
310
|
+
d.error = error;
|
|
311
|
+
}
|
|
312
|
+
send(d, file, token) {
|
|
313
|
+
const xhr = new XMLHttpRequest();
|
|
314
|
+
this.inflight.set(d.id, xhr);
|
|
315
|
+
xhr.open("POST", "/api/firstmate/uploads");
|
|
316
|
+
xhr.setRequestHeader(SESSION_HEADER, token);
|
|
317
|
+
xhr.setRequestHeader(NAME_HEADER, encodeURIComponent(d.name));
|
|
318
|
+
xhr.setRequestHeader(TYPE_HEADER, file.type);
|
|
319
|
+
xhr.setRequestHeader("content-type", "application/octet-stream");
|
|
320
|
+
xhr.upload.onprogress = (e) => {
|
|
321
|
+
if (e.lengthComputable) d.progress = e.loaded / e.total;
|
|
322
|
+
};
|
|
323
|
+
xhr.onload = () => {
|
|
324
|
+
this.inflight.delete(d.id);
|
|
325
|
+
let body = {};
|
|
326
|
+
try {
|
|
327
|
+
body = JSON.parse(xhr.responseText);
|
|
328
|
+
} catch {
|
|
329
|
+
}
|
|
330
|
+
if (xhr.status === 201 && typeof body.path === "string") {
|
|
331
|
+
d.upload = {
|
|
332
|
+
path: body.path,
|
|
333
|
+
name: body.name ?? d.name,
|
|
334
|
+
size: body.size ?? d.size,
|
|
335
|
+
type: body.type ?? ""
|
|
336
|
+
};
|
|
337
|
+
d.progress = 1;
|
|
338
|
+
d.state = "ready";
|
|
339
|
+
} else if (xhr.status === 413) this.fail(d, TOO_LARGE);
|
|
340
|
+
else this.fail(d, body.message ?? `Not uploaded · Wheelhouse answered ${xhr.status}`);
|
|
341
|
+
};
|
|
342
|
+
xhr.onerror = () => {
|
|
343
|
+
this.inflight.delete(d.id);
|
|
344
|
+
this.fail(d, "Could not reach the Wheelhouse server");
|
|
345
|
+
};
|
|
346
|
+
xhr.send(file);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
const attachments = new Attachments();
|
|
350
|
+
function SentFiles($$renderer, $$props) {
|
|
351
|
+
$$renderer.component(($$renderer2) => {
|
|
352
|
+
let { files, pending = false } = $$props;
|
|
353
|
+
let broken = {};
|
|
354
|
+
const thumb = (a) => broken[a.path] ? null : thumbUrl(a);
|
|
355
|
+
const images = derived(() => files.filter((a) => thumb(a)));
|
|
356
|
+
let open = null;
|
|
357
|
+
let $$settled = true;
|
|
358
|
+
let $$inner_renderer;
|
|
359
|
+
function $$render_inner($$renderer3) {
|
|
360
|
+
$$renderer3.push(`<div${attr_class(`mt-1.5 w-full max-w-[min(85%,62ch)] min-w-0 rounded-lg border border-hair bg-card px-3 py-2 sm:min-w-72 ${pending ? "border-dashed opacity-60" : ""}`)} data-sent-files=""><p class="mb-0.5 text-[0.8rem] font-semibold tracking-[0.08em] text-muted-foreground" style="font-variant-caps: all-small-caps">${escape_html(files.length === 1 ? "1 file attached" : `${files.length} files attached`)}</p> <ul class="flex flex-col divide-y divide-hair"><!--[-->`);
|
|
361
|
+
const each_array = ensure_array_like(files);
|
|
362
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
363
|
+
let a = each_array[$$index];
|
|
364
|
+
const src = thumb(a);
|
|
365
|
+
$$renderer3.push(`<li class="flex items-center gap-2.5 py-1.5 text-sm">`);
|
|
366
|
+
if (src) {
|
|
367
|
+
$$renderer3.push(`<!--[0--><button type="button" class="shrink-0 cursor-zoom-in rounded"${attr("aria-label", `Enlarge ${stringify(a.name)}`)}><img${attr("src", src)} alt="" loading="lazy" class="size-10 rounded border border-hair bg-muted object-cover" onerror="this.__e=event"/></button>`);
|
|
368
|
+
} else {
|
|
369
|
+
$$renderer3.push(`<!--[-1--><span class="flex size-10 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
|
|
370
|
+
File_text($$renderer3, { class: "size-4" });
|
|
371
|
+
$$renderer3.push(`<!----></span>`);
|
|
372
|
+
}
|
|
373
|
+
$$renderer3.push(`<!--]--> <span class="min-w-0 truncate font-medium"${attr("title", a.name)}>${escape_html(a.name)}</span> <span class="ml-auto shrink-0 pl-2 text-xs text-muted-foreground">${escape_html(kindLabel(a))} · ${escape_html(fileSize(a.size))}</span></li>`);
|
|
374
|
+
}
|
|
375
|
+
$$renderer3.push(`<!--]--></ul></div> `);
|
|
376
|
+
if (images().length) {
|
|
377
|
+
$$renderer3.push("<!--[0-->");
|
|
378
|
+
Lightbox($$renderer3, {
|
|
379
|
+
shots: images().map((a) => ({ name: a.name, url: thumb(a) ?? "" })),
|
|
380
|
+
get index() {
|
|
381
|
+
return open;
|
|
382
|
+
},
|
|
383
|
+
set index($$value) {
|
|
384
|
+
open = $$value;
|
|
385
|
+
$$settled = false;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
} else {
|
|
389
|
+
$$renderer3.push("<!--[-1-->");
|
|
390
|
+
}
|
|
391
|
+
$$renderer3.push(`<!--]-->`);
|
|
392
|
+
}
|
|
393
|
+
do {
|
|
394
|
+
$$settled = true;
|
|
395
|
+
$$inner_renderer = $$renderer2.copy();
|
|
396
|
+
$$render_inner($$inner_renderer);
|
|
397
|
+
} while (!$$settled);
|
|
398
|
+
$$renderer2.subsume($$inner_renderer);
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
const headOf = (c) => ({
|
|
402
|
+
cardId: c.id,
|
|
403
|
+
taskId: c.taskId,
|
|
404
|
+
taskTitle: c.taskTitle,
|
|
405
|
+
projectId: c.projectId,
|
|
406
|
+
kind: c.kind,
|
|
407
|
+
key: c.key,
|
|
408
|
+
question: c.choices?.intro || c.question,
|
|
409
|
+
askedAt: c.askedAt
|
|
410
|
+
});
|
|
411
|
+
function chatDecisions(cards, answered, local) {
|
|
412
|
+
const out = [];
|
|
413
|
+
const shown = /* @__PURE__ */ new Set();
|
|
414
|
+
for (const c of cards) {
|
|
415
|
+
const head2 = headOf(c);
|
|
416
|
+
const mine = local[c.id]?.question === c.question ? local[c.id] : null;
|
|
417
|
+
const taken = c.sent && c.sent.delivery !== "failed" ? c.sent : null;
|
|
418
|
+
if (mine && !(mine.posted && taken)) {
|
|
419
|
+
out.push({
|
|
420
|
+
id: c.id,
|
|
421
|
+
head: head2,
|
|
422
|
+
card: c,
|
|
423
|
+
answer: {
|
|
424
|
+
choice: mine.choice,
|
|
425
|
+
label: choiceLabel(c, mine.choice),
|
|
426
|
+
picks: mine.picks,
|
|
427
|
+
note: mine.note,
|
|
428
|
+
at: null,
|
|
429
|
+
delivery: mine.posted ? null : "sending"
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
} else if (taken) {
|
|
433
|
+
shown.add(taken.requestId);
|
|
434
|
+
out.push({
|
|
435
|
+
id: c.id,
|
|
436
|
+
head: head2,
|
|
437
|
+
card: c,
|
|
438
|
+
answer: {
|
|
439
|
+
choice: taken.choice,
|
|
440
|
+
label: choiceLabel(c, taken.choice),
|
|
441
|
+
picks: taken.picks,
|
|
442
|
+
note: taken.note,
|
|
443
|
+
at: taken.at,
|
|
444
|
+
delivery: taken.delivery
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
} else {
|
|
448
|
+
out.push({ id: c.id, head: head2, card: c, answer: null });
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const open = new Map(out.map((d) => [d.id, d]));
|
|
452
|
+
for (const a of answered) {
|
|
453
|
+
if (shown.has(a.requestId) || a.delivery === "failed") continue;
|
|
454
|
+
if (open.get(a.cardId)?.head.question === a.question) continue;
|
|
455
|
+
out.push({
|
|
456
|
+
id: `answer:${a.requestId}`,
|
|
457
|
+
head: {
|
|
458
|
+
cardId: a.cardId,
|
|
459
|
+
taskId: a.taskId,
|
|
460
|
+
taskTitle: a.taskTitle,
|
|
461
|
+
projectId: a.projectId,
|
|
462
|
+
kind: a.kind,
|
|
463
|
+
key: a.key,
|
|
464
|
+
question: a.question,
|
|
465
|
+
askedAt: a.askedAt
|
|
466
|
+
},
|
|
467
|
+
card: null,
|
|
468
|
+
answer: {
|
|
469
|
+
choice: a.choice,
|
|
470
|
+
label: a.label,
|
|
471
|
+
picks: a.picks,
|
|
472
|
+
note: a.note,
|
|
473
|
+
at: a.answeredAt,
|
|
474
|
+
delivery: a.delivery
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
return out;
|
|
479
|
+
}
|
|
480
|
+
const time$1 = (s) => {
|
|
481
|
+
const t = s ? Date.parse(s) : NaN;
|
|
482
|
+
return Number.isNaN(t) ? null : t;
|
|
483
|
+
};
|
|
484
|
+
const placeAt = (d) => time$1(d.head.askedAt) ?? time$1(d.answer?.at);
|
|
485
|
+
function placeDecisions(items, decisions) {
|
|
486
|
+
const before = /* @__PURE__ */ new Map();
|
|
487
|
+
const end = [];
|
|
488
|
+
const times = items.map((it) => time$1(it.at));
|
|
489
|
+
const first = times.find((t) => t !== null) ?? null;
|
|
490
|
+
const sorted = decisions.map((d) => ({ d, at: placeAt(d) })).sort((a, b) => (a.at ?? Infinity) - (b.at ?? Infinity) || a.d.id.localeCompare(b.d.id));
|
|
491
|
+
for (const { d, at } of sorted) {
|
|
492
|
+
if (at === null) {
|
|
493
|
+
end.push(d);
|
|
494
|
+
continue;
|
|
495
|
+
}
|
|
496
|
+
if (d.answer && !d.card && (first === null || at < first)) continue;
|
|
497
|
+
const i = times.findIndex((t) => t !== null && t > at);
|
|
498
|
+
if (i < 0) end.push(d);
|
|
499
|
+
else before.set(i, [...before.get(i) ?? [], d]);
|
|
500
|
+
}
|
|
501
|
+
return { before, end };
|
|
502
|
+
}
|
|
503
|
+
function chipLabel(r, max = 34) {
|
|
504
|
+
const title = r.title.length > max ? `${r.title.slice(0, max - 1)}…` : r.title;
|
|
505
|
+
const num = r.url?.match(/\/pull\/(\d+)/)?.[1];
|
|
506
|
+
return r.kind === "pr" ? `PR${num ? ` #${num}` : ""} ${title}` : `# ${title}`;
|
|
507
|
+
}
|
|
508
|
+
const EXPANDED = /\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*): ([^\]\n]+)\]/g;
|
|
509
|
+
function parseRefs(text) {
|
|
510
|
+
const out = [];
|
|
511
|
+
let at = 0;
|
|
512
|
+
for (const m of text.matchAll(EXPANDED)) {
|
|
513
|
+
if (m.index > at) out.push(text.slice(at, m.index));
|
|
514
|
+
out.push({
|
|
515
|
+
kind: m[1] ? "pr" : "task",
|
|
516
|
+
id: m[2],
|
|
517
|
+
title: m[3].trim(),
|
|
518
|
+
project: null,
|
|
519
|
+
url: m[1] ?? null
|
|
520
|
+
});
|
|
521
|
+
at = m.index + m[0].length;
|
|
522
|
+
}
|
|
523
|
+
if (at < text.length) out.push(text.slice(at));
|
|
524
|
+
return out;
|
|
525
|
+
}
|
|
526
|
+
function plain(text) {
|
|
527
|
+
const md = text.replace(/```[^\n]*\n([\s\S]*?)```/g, "$1").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm, "").replace(/(\*\*|__|~~|`)/g, "").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g, "$1$2");
|
|
528
|
+
return parseRefs(md).map((p) => typeof p === "string" ? p : chipLabel(p, 60)).join("").replace(/\s+/g, " ").trim();
|
|
529
|
+
}
|
|
530
|
+
const QUOTED$1 = /^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;
|
|
531
|
+
function parseReply(text) {
|
|
532
|
+
const m = text.replace(/\r\n?/g, "\n").match(QUOTED$1);
|
|
533
|
+
if (!m || !m[3].trim()) return { to: null, body: text };
|
|
534
|
+
return {
|
|
535
|
+
to: { who: m[1] === "Firstmate" ? "firstmate" : "captain", snippet: m[2] },
|
|
536
|
+
body: m[3]
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function quotes(to, text) {
|
|
540
|
+
const line = plain(text);
|
|
541
|
+
if (!line) return false;
|
|
542
|
+
const s = to.snippet.endsWith("…") ? to.snippet.slice(0, -1) : to.snippet;
|
|
543
|
+
return to.snippet.endsWith("…") ? line.startsWith(s) : line === s;
|
|
544
|
+
}
|
|
545
|
+
const SLUG = /^[^\s()]+$/;
|
|
546
|
+
const QUOTED = /^> About the decision on ([^\s()]+) \(key ([^\s()]+)\), not an answer yet: “(.*)”\n\n([\s\S]+)$/;
|
|
547
|
+
const cardIdOf = (ref) => `${ref.taskId}:${ref.key}`;
|
|
548
|
+
const canDiscuss = (ref) => SLUG.test(ref.taskId) && SLUG.test(ref.key);
|
|
549
|
+
function parseDiscuss(text) {
|
|
550
|
+
const m = text.replace(/\r\n?/g, "\n").match(QUOTED);
|
|
551
|
+
if (!m || !m[4].trim()) return null;
|
|
552
|
+
return { cardId: cardIdOf({ taskId: m[1], key: m[2] }), body: m[4].trim() };
|
|
553
|
+
}
|
|
554
|
+
function threads(items, cards) {
|
|
555
|
+
const byCard = /* @__PURE__ */ new Map();
|
|
556
|
+
const hidden = /* @__PURE__ */ new Set();
|
|
557
|
+
for (let i = 0; i < items.length; i++) {
|
|
558
|
+
const it = items[i];
|
|
559
|
+
if (it.kind !== "user") continue;
|
|
560
|
+
const d = parseDiscuss(it.text);
|
|
561
|
+
if (!d || !cards.has(d.cardId)) continue;
|
|
562
|
+
const thread = byCard.get(d.cardId) ?? { messages: [], answering: false };
|
|
563
|
+
byCard.set(d.cardId, thread);
|
|
564
|
+
thread.messages.push({ id: it.id, who: "captain", text: d.body, at: it.at });
|
|
565
|
+
thread.answering = false;
|
|
566
|
+
hidden.add(it.id);
|
|
567
|
+
const next = items[i + 1];
|
|
568
|
+
if (next?.kind !== "turn" || next.trigger !== "captain") continue;
|
|
569
|
+
if (next.parts.some((p) => p.kind === "question")) continue;
|
|
570
|
+
hidden.add(next.id);
|
|
571
|
+
for (const p of next.parts) {
|
|
572
|
+
if (p.kind === "text")
|
|
573
|
+
thread.messages.push({ id: p.id, who: "firstmate", text: p.text, at: next.at });
|
|
574
|
+
}
|
|
575
|
+
thread.answering = !next.done && !next.interrupted;
|
|
576
|
+
i++;
|
|
577
|
+
}
|
|
578
|
+
return { byCard, hidden };
|
|
579
|
+
}
|
|
580
|
+
function pendingThreads(pending) {
|
|
581
|
+
const out = /* @__PURE__ */ new Map();
|
|
582
|
+
for (const p of pending) {
|
|
583
|
+
const d = parseDiscuss(p.text);
|
|
584
|
+
if (!d) continue;
|
|
585
|
+
out.set(d.cardId, [...out.get(d.cardId) ?? [], { pending: p, body: d.body }]);
|
|
586
|
+
}
|
|
587
|
+
return out;
|
|
588
|
+
}
|
|
589
|
+
const SLACK_MS = 2 * 6e4;
|
|
590
|
+
const escape = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
591
|
+
function mentions(text, task) {
|
|
592
|
+
if (new RegExp(`(?<![\\w-])${escape(task.id)}(?![\\w-])`).test(text)) return true;
|
|
593
|
+
const urls = [task.pr?.url, task.preview?.url].filter((u) => !!u).map((u) => u.replace(/\/+$/, ""));
|
|
594
|
+
return urls.some((u) => new RegExp(`${escape(u)}(?![\\w-])`).test(text));
|
|
595
|
+
}
|
|
596
|
+
const time = (s) => {
|
|
597
|
+
const t = s ? Date.parse(s) : NaN;
|
|
598
|
+
return Number.isNaN(t) ? null : t;
|
|
599
|
+
};
|
|
600
|
+
function previewCards(items, tasks) {
|
|
601
|
+
const out = /* @__PURE__ */ new Map();
|
|
602
|
+
for (const task of tasks) {
|
|
603
|
+
if (!task.preview) continue;
|
|
604
|
+
const reported = time(task.preview.reportedAt);
|
|
605
|
+
const landed = task.status === "landed";
|
|
606
|
+
const merged = landed ? time(task.mergedAt) : null;
|
|
607
|
+
let first = null;
|
|
608
|
+
let since = null;
|
|
609
|
+
for (const it of items) {
|
|
610
|
+
if (it.kind !== "turn") continue;
|
|
611
|
+
const at = time(it.at);
|
|
612
|
+
if (reported !== null && (at === null || at < reported - SLACK_MS)) continue;
|
|
613
|
+
const part = it.parts.find((p) => p.kind === "text" && mentions(p.text, task));
|
|
614
|
+
if (!part) continue;
|
|
615
|
+
first ??= part.id;
|
|
616
|
+
if (landed && (merged === null || at !== null && at >= merged - SLACK_MS)) {
|
|
617
|
+
since = part.id;
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
const anchor = since ?? first;
|
|
622
|
+
if (!anchor) continue;
|
|
623
|
+
out.set(anchor, [...out.get(anchor) ?? [], { task, landed }]);
|
|
624
|
+
}
|
|
625
|
+
return out;
|
|
626
|
+
}
|
|
627
|
+
function Activity($$renderer, $$props) {
|
|
628
|
+
$$renderer.component(($$renderer2) => {
|
|
629
|
+
let { steps, live: live2 = false } = $$props;
|
|
630
|
+
let open = false;
|
|
631
|
+
function label(s) {
|
|
632
|
+
if (s.kind === "thinking") {
|
|
633
|
+
return {
|
|
634
|
+
verb: s.ms != null && s.ms >= 1e3 ? `Thought for ${duration(s.ms)}` : "Thought",
|
|
635
|
+
summary: ""
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
if (s.kind === "context") return { verb: s.label, summary: "" };
|
|
639
|
+
return { verb: s.verb, summary: s.summary };
|
|
640
|
+
}
|
|
641
|
+
const latest = derived(() => label(steps[steps.length - 1]));
|
|
642
|
+
$$renderer2.push(`<div><button class="flex max-w-full cursor-pointer items-center gap-2 rounded-md border border-hair bg-muted/50 px-2.5 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"${attr("aria-expanded", open)}>`);
|
|
643
|
+
if (live2) {
|
|
644
|
+
$$renderer2.push("<!--[0-->");
|
|
645
|
+
Loader_circle($$renderer2, {
|
|
646
|
+
class: "size-3.5 shrink-0 animate-spin text-sea",
|
|
647
|
+
"aria-hidden": "true"
|
|
648
|
+
});
|
|
649
|
+
$$renderer2.push(`<!----> <span class="truncate">${escape_html(latest().verb)} ${escape_html(latest().summary)}</span>`);
|
|
650
|
+
} else {
|
|
651
|
+
$$renderer2.push(`<!--[-1--><span class="truncate">${escape_html(activitySummary(steps))}</span>`);
|
|
652
|
+
}
|
|
653
|
+
$$renderer2.push(`<!--]--> `);
|
|
654
|
+
Chevron_right($$renderer2, {
|
|
655
|
+
class: `size-3.5 shrink-0 transition-transform ${""}`,
|
|
656
|
+
"aria-hidden": "true"
|
|
657
|
+
});
|
|
658
|
+
$$renderer2.push(`<!----></button> `);
|
|
659
|
+
{
|
|
660
|
+
$$renderer2.push("<!--[-1-->");
|
|
661
|
+
}
|
|
662
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
function Avatar($$renderer, $$props) {
|
|
666
|
+
let { class: className = "" } = $$props;
|
|
667
|
+
const SPOKES = [0, 45, 90, 135, 180, 225, 270, 315];
|
|
668
|
+
$$renderer.push(`<svg viewBox="0 0 32 32"${attr_class(`shrink-0 ${stringify(className)}`)} role="img" aria-label="Firstmate" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="15.25" class="fill-primary stroke-brass" stroke-width="1.5"></circle><g class="fill-none stroke-primary-foreground" stroke-linecap="round"><circle cx="16" cy="16" r="7" stroke-width="1.6"></circle><!--[-->`);
|
|
669
|
+
const each_array = ensure_array_like(SPOKES);
|
|
670
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
671
|
+
let a = each_array[$$index];
|
|
672
|
+
$$renderer.push(`<line x1="16" y1="12.4" x2="16" y2="5.6" stroke-width="1.3"${attr("transform", `rotate(${stringify(a)} 16 16)`)}></line>`);
|
|
673
|
+
}
|
|
674
|
+
$$renderer.push(`<!--]--></g><circle cx="16" cy="16" r="2.4" class="fill-primary-foreground"></circle><!--[-->`);
|
|
675
|
+
const each_array_1 = ensure_array_like(SPOKES);
|
|
676
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
677
|
+
let a = each_array_1[$$index_1];
|
|
678
|
+
$$renderer.push(`<circle cx="16" cy="5.2" r="1.3" class="fill-primary-foreground"${attr("transform", `rotate(${stringify(a)} 16 16)`)}></circle>`);
|
|
679
|
+
}
|
|
680
|
+
$$renderer.push(`<!--]--></svg>`);
|
|
681
|
+
}
|
|
682
|
+
function ChatApp($$renderer, $$props) {
|
|
683
|
+
$$renderer.component(($$renderer2) => {
|
|
684
|
+
let { id, app } = $$props;
|
|
685
|
+
let open = false;
|
|
686
|
+
$$renderer2.push(`<div class="max-w-[80ch] rounded-xl border bg-card"${attr("data-chat-app", id)}><button class="flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-xl px-4 py-2.5 text-left text-sm transition-colors hover:bg-muted/60"${attr("aria-expanded", open)}>`);
|
|
687
|
+
App_window($$renderer2, {
|
|
688
|
+
class: "size-4 shrink-0 text-muted-foreground",
|
|
689
|
+
"aria-hidden": "true"
|
|
690
|
+
});
|
|
691
|
+
$$renderer2.push(`<!----> <span class="shrink-0 font-medium">${escape_html(app.title)}</span> <span class="min-w-0 truncate text-muted-foreground">· an app from ${escape_html(app.server.title)}</span> <span class="ml-auto shrink-0 text-xs text-muted-foreground">${escape_html("Open")}</span> `);
|
|
692
|
+
Chevron_right($$renderer2, {
|
|
693
|
+
class: `size-3.5 shrink-0 text-muted-foreground transition-transform ${""}`,
|
|
694
|
+
"aria-hidden": "true"
|
|
695
|
+
});
|
|
696
|
+
$$renderer2.push(`<!----></button> `);
|
|
697
|
+
{
|
|
698
|
+
$$renderer2.push("<!--[-1-->");
|
|
699
|
+
}
|
|
700
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
function ChatDecision($$renderer, $$props) {
|
|
704
|
+
$$renderer.component(($$renderer2) => {
|
|
705
|
+
let {
|
|
706
|
+
decision,
|
|
707
|
+
project = null,
|
|
708
|
+
now,
|
|
709
|
+
thread = null,
|
|
710
|
+
pending = [],
|
|
711
|
+
canAsk
|
|
712
|
+
} = $$props;
|
|
713
|
+
const KIND = {
|
|
714
|
+
review: "Review question",
|
|
715
|
+
decision: "Decision",
|
|
716
|
+
blocked: "Stuck",
|
|
717
|
+
hold: "Your call",
|
|
718
|
+
merge: "Merge call",
|
|
719
|
+
preview: "Preview sign-off"
|
|
720
|
+
};
|
|
721
|
+
const SUGGEST = [
|
|
722
|
+
"What’s the risk?",
|
|
723
|
+
"What would you pick?",
|
|
724
|
+
"What if I leave it?"
|
|
725
|
+
];
|
|
726
|
+
const head2 = derived(() => decision.head);
|
|
727
|
+
const answer = derived(() => decision.answer);
|
|
728
|
+
const count = derived(() => (thread?.messages.length ?? 0) + pending.length);
|
|
729
|
+
const referable = derived(() => canDiscuss(head2()));
|
|
730
|
+
const askable = derived(() => canAsk && referable());
|
|
731
|
+
const open = derived(() => !answer() && count() > 0);
|
|
732
|
+
let draft = "";
|
|
733
|
+
const time2 = (at) => at ? new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : "";
|
|
734
|
+
const delivered = derived(() => !answer() ? "" : answer().delivery === "sending" ? "Sending to Firstmate…" : answer().delivery === "delivered" ? "Firstmate has your answer" : answer().delivery === "failed" ? "Firstmate did not take it" : answer().delivery === "uncertain" ? "Sent; Firstmate has not confirmed it yet" : "Sent to Firstmate");
|
|
735
|
+
function discuss($$renderer3) {
|
|
736
|
+
$$renderer3.push(`<button${attr_class(`inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 ${open() ? "bg-accent text-foreground" : ""}`)}${attr("aria-expanded", open())}${attr("disabled", !referable() || !canAsk && !count(), true)}${attr("title", !referable() ? "This question’s task or key has spaces or brackets, so Firstmate cannot be asked about it here" : canAsk ? "Ask Firstmate about this question; it answers nothing" : "Firstmate cannot be messaged from here right now")} data-discuss="">`);
|
|
737
|
+
Messages_square($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
|
|
738
|
+
$$renderer3.push(`<!---->Discuss`);
|
|
739
|
+
if (count()) {
|
|
740
|
+
$$renderer3.push(`<!--[0--><span class="text-xs tabular-nums">· ${escape_html(count())}</span>`);
|
|
741
|
+
} else {
|
|
742
|
+
$$renderer3.push("<!--[-1-->");
|
|
743
|
+
}
|
|
744
|
+
$$renderer3.push(`<!--]--></button>`);
|
|
745
|
+
}
|
|
746
|
+
$$renderer2.push(`<div class="flex w-full max-w-[min(100%,40rem)] flex-col"${attr("data-chat-decision", decision.id)}>`);
|
|
747
|
+
if (decision.card && !answer()) {
|
|
748
|
+
$$renderer2.push("<!--[0-->");
|
|
749
|
+
OpenDecision($$renderer2, { card: decision.card, project, now, extra: discuss });
|
|
750
|
+
} else if (answer()) {
|
|
751
|
+
$$renderer2.push(`<!--[1--><article class="rounded-lg border border-l-[3px] border-l-success/70 bg-card px-4 pt-3 pb-2 sm:px-5" data-answered=""><header class="flex flex-wrap items-center gap-x-2 gap-y-1">`);
|
|
752
|
+
if (project) {
|
|
753
|
+
$$renderer2.push(`<!--[0--><span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(project)}</span>`);
|
|
754
|
+
} else {
|
|
755
|
+
$$renderer2.push("<!--[-1-->");
|
|
756
|
+
}
|
|
757
|
+
$$renderer2.push(`<!--]--> <span class="rounded bg-muted px-1.5 text-xs leading-[1.15rem] font-medium text-foreground/80">${escape_html(KIND[head2().kind])}</span> <span class="flex items-center gap-1 text-xs text-success">`);
|
|
758
|
+
Circle_check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
759
|
+
$$renderer2.push(`<!---->Answered</span> `);
|
|
760
|
+
if (answer().at) {
|
|
761
|
+
$$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(answer().at, now))}</span>`);
|
|
762
|
+
} else {
|
|
763
|
+
$$renderer2.push("<!--[-1-->");
|
|
764
|
+
}
|
|
765
|
+
$$renderer2.push(`<!--]--></header> <p class="mt-1.5 text-sm leading-snug text-muted-foreground">${escape_html(head2().question)}</p> <a${attr("href", `/tasks/${stringify(encodeURIComponent(head2().taskId))}`)} class="block text-xs text-muted-foreground hover:text-foreground hover:underline">${escape_html(head2().taskTitle)}</a> <p class="mt-1.5 text-sm leading-snug">`);
|
|
766
|
+
if (answer().choice === "close") {
|
|
767
|
+
$$renderer2.push(`<!--[0-->You closed it without an answer`);
|
|
768
|
+
} else if (answer().picks) {
|
|
769
|
+
$$renderer2.push(`<!--[1-->You
|
|
770
|
+
picked <span class="font-semibold">${escape_html(answer().picks)}</span>`);
|
|
771
|
+
} else {
|
|
772
|
+
$$renderer2.push(`<!--[-1-->You answered <span class="font-semibold">${escape_html(answer().label)}</span>`);
|
|
773
|
+
}
|
|
774
|
+
$$renderer2.push(`<!--]--></p> `);
|
|
775
|
+
if (answer().note) {
|
|
776
|
+
$$renderer2.push(`<!--[0--><p class="mt-1 border-l-2 border-hair pl-2.5 text-sm whitespace-pre-line text-muted-foreground">${escape_html(answer().note)}</p>`);
|
|
777
|
+
} else {
|
|
778
|
+
$$renderer2.push("<!--[-1-->");
|
|
779
|
+
}
|
|
780
|
+
$$renderer2.push(`<!--]--> <div class="mt-1 flex flex-wrap items-center gap-2 text-xs text-muted-foreground"><span role="status" class="inline-flex items-center gap-1">`);
|
|
781
|
+
if (answer().delivery === "sending") {
|
|
782
|
+
$$renderer2.push("<!--[0-->");
|
|
783
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
784
|
+
} else {
|
|
785
|
+
$$renderer2.push("<!--[-1-->");
|
|
786
|
+
}
|
|
787
|
+
$$renderer2.push(`<!--]-->${escape_html(delivered())}${escape_html(answer().at ? ` · ${time2(answer().at)}` : "")}</span> <span class="ml-auto">`);
|
|
788
|
+
discuss($$renderer2);
|
|
789
|
+
$$renderer2.push(`<!----></span></div></article>`);
|
|
790
|
+
} else {
|
|
791
|
+
$$renderer2.push("<!--[-1-->");
|
|
792
|
+
}
|
|
793
|
+
$$renderer2.push(`<!--]--> `);
|
|
794
|
+
if (open()) {
|
|
795
|
+
$$renderer2.push(`<!--[0--><div class="mt-1 ml-4 border-l-2 border-hair pt-2 pl-4" role="region" aria-label="Discussion with Firstmate about this question" data-discussion="">`);
|
|
796
|
+
if (thread?.messages.length || pending.length) {
|
|
797
|
+
$$renderer2.push(`<!--[0--><ul class="flex flex-col gap-3 pb-1"><!--[-->`);
|
|
798
|
+
const each_array = ensure_array_like(thread?.messages ?? []);
|
|
799
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
800
|
+
let m = each_array[$$index];
|
|
801
|
+
$$renderer2.push(`<li class="flex gap-2.5">`);
|
|
802
|
+
if (m.who === "firstmate") {
|
|
803
|
+
$$renderer2.push("<!--[0-->");
|
|
804
|
+
Avatar($$renderer2, { class: "mt-0.5 size-5" });
|
|
805
|
+
} else {
|
|
806
|
+
$$renderer2.push(`<!--[-1--><span class="captain-avatar mt-0.5 !size-5 !text-[0.7rem]">C</span>`);
|
|
807
|
+
}
|
|
808
|
+
$$renderer2.push(`<!--]--> <div class="min-w-0 flex-1"><p class="text-xs text-muted-foreground"><span class="font-medium text-foreground">${escape_html(m.who === "firstmate" ? "Firstmate" : "You")}</span>`);
|
|
809
|
+
if (m.at) {
|
|
810
|
+
$$renderer2.push(`<!--[0-->· ${escape_html(time2(m.at))}`);
|
|
811
|
+
} else {
|
|
812
|
+
$$renderer2.push("<!--[-1-->");
|
|
813
|
+
}
|
|
814
|
+
$$renderer2.push(`<!--]--></p> `);
|
|
815
|
+
if (m.who === "firstmate") {
|
|
816
|
+
$$renderer2.push(`<!--[0--><div class="chat-md mt-0.5 text-sm">${html(markdown(m.text, { docLinks: true }))}</div>`);
|
|
817
|
+
} else {
|
|
818
|
+
$$renderer2.push(`<!--[-1--><p class="mt-0.5 text-sm leading-relaxed whitespace-pre-line">${escape_html(m.text)}</p>`);
|
|
819
|
+
}
|
|
820
|
+
$$renderer2.push(`<!--]--></div></li>`);
|
|
821
|
+
}
|
|
822
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
823
|
+
const each_array_1 = ensure_array_like(pending);
|
|
824
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
825
|
+
let p = each_array_1[$$index_1];
|
|
826
|
+
$$renderer2.push(`<li class="flex gap-2.5"${attr("data-pending", p.pending.state)}><span class="captain-avatar mt-0.5 !size-5 !text-[0.7rem]">C</span> <div class="min-w-0 flex-1"><p class="text-sm leading-relaxed whitespace-pre-line opacity-60">${escape_html(p.body)}</p> <p${attr_class(`mt-0.5 flex flex-wrap items-center gap-1.5 text-xs ${p.pending.state === "failed" ? "text-danger" : "text-muted-foreground"}`)} role="status">`);
|
|
827
|
+
if (p.pending.state === "failed") {
|
|
828
|
+
$$renderer2.push("<!--[0-->");
|
|
829
|
+
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
830
|
+
$$renderer2.push(`<!---->${escape_html(pendingLabel(p.pending))} <button class="ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-muted">`);
|
|
831
|
+
Rotate_cw($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
832
|
+
$$renderer2.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
|
|
833
|
+
} else {
|
|
834
|
+
$$renderer2.push("<!--[-1-->");
|
|
835
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
836
|
+
$$renderer2.push(`<!---->${escape_html(pendingLabel(p.pending))}`);
|
|
837
|
+
}
|
|
838
|
+
$$renderer2.push(`<!--]--></p></div></li>`);
|
|
839
|
+
}
|
|
840
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
841
|
+
} else {
|
|
842
|
+
$$renderer2.push(`<!--[-1--><p class="text-xs text-muted-foreground">Ask Firstmate anything about this question. Asking answers nothing; the answer stays yours
|
|
843
|
+
to give.</p>`);
|
|
844
|
+
}
|
|
845
|
+
$$renderer2.push(`<!--]--> `);
|
|
846
|
+
if (thread?.answering) {
|
|
847
|
+
$$renderer2.push(`<!--[0--><div class="flex gap-1 py-2 pl-7" role="status" aria-label="Firstmate 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></div>`);
|
|
848
|
+
} else {
|
|
849
|
+
$$renderer2.push("<!--[-1-->");
|
|
850
|
+
}
|
|
851
|
+
$$renderer2.push(`<!--]--> `);
|
|
852
|
+
if (askable()) {
|
|
853
|
+
$$renderer2.push("<!--[0-->");
|
|
854
|
+
if (!count() && !answer()) {
|
|
855
|
+
$$renderer2.push(`<!--[0--><div class="mt-2 flex flex-wrap gap-1.5"><!--[-->`);
|
|
856
|
+
const each_array_2 = ensure_array_like(SUGGEST);
|
|
857
|
+
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
858
|
+
let s = each_array_2[$$index_2];
|
|
859
|
+
$$renderer2.push(`<button class="cursor-pointer rounded-full border border-hair bg-card px-2.5 py-0.5 text-xs text-muted-foreground hover:bg-accent hover:text-foreground">${escape_html(s)}</button>`);
|
|
860
|
+
}
|
|
861
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
862
|
+
} else {
|
|
863
|
+
$$renderer2.push("<!--[-1-->");
|
|
864
|
+
}
|
|
865
|
+
$$renderer2.push(`<!--]--> <form class="mt-2 flex items-end gap-2 rounded-lg border border-input bg-background px-2.5 py-1.5 focus-within:ring-2 focus-within:ring-ring"><textarea rows="1" maxlength="2000" placeholder="Ask about this question…" aria-label="Ask Firstmate about this question" class="field-sizing-content max-h-32 min-h-7 flex-1 resize-none bg-transparent py-0.5 text-sm placeholder:text-muted-foreground focus:outline-none">`);
|
|
866
|
+
const $$body = escape_html(draft);
|
|
867
|
+
if ($$body) {
|
|
868
|
+
$$renderer2.push(`${$$body}`);
|
|
869
|
+
}
|
|
870
|
+
$$renderer2.push(`</textarea> <button type="submit" class="flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md bg-sea text-white disabled:cursor-not-allowed disabled:opacity-40 dark:text-slate-950" aria-label="Ask"${attr("disabled", !draft.trim(), true)}>`);
|
|
871
|
+
Arrow_up($$renderer2, { class: "size-4" });
|
|
872
|
+
$$renderer2.push(`<!----></button></form>`);
|
|
873
|
+
} else {
|
|
874
|
+
$$renderer2.push("<!--[-1-->");
|
|
875
|
+
}
|
|
876
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
877
|
+
} else {
|
|
878
|
+
$$renderer2.push("<!--[-1-->");
|
|
879
|
+
}
|
|
880
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
function ChatPreview($$renderer, $$props) {
|
|
884
|
+
$$renderer.component(($$renderer2) => {
|
|
885
|
+
let { preview, project = null, now } = $$props;
|
|
886
|
+
const task = derived(() => preview.task);
|
|
887
|
+
const url = derived(() => task().preview?.url ?? null);
|
|
888
|
+
const prLink = derived(() => task().pr ? pullRequests.review(task().projectId, task().pr) : null);
|
|
889
|
+
let full = false;
|
|
890
|
+
const CHECKS = {
|
|
891
|
+
green: {
|
|
892
|
+
icon: Circle_check,
|
|
893
|
+
text: "Checks passed",
|
|
894
|
+
tone: "text-success"
|
|
895
|
+
},
|
|
896
|
+
pending: {
|
|
897
|
+
icon: Circle_dashed,
|
|
898
|
+
text: "Checks running",
|
|
899
|
+
tone: "text-muted-foreground"
|
|
900
|
+
},
|
|
901
|
+
red: { icon: Circle_x, text: "Checks failed", tone: "text-danger" }
|
|
902
|
+
};
|
|
903
|
+
const checks = derived(() => task().pipeline?.ci ? CHECKS[task().pipeline.ci] : null);
|
|
904
|
+
const at = derived(() => preview.landed ? task().mergedAt ?? task().preview?.reportedAt : task().preview?.reportedAt);
|
|
905
|
+
$$renderer2.push(`<div class="w-full max-w-[min(100%,40rem)] overflow-hidden rounded-xl border border-hair bg-card"${attr("data-chat-preview", preview.landed ? "landed" : "live")}><header class="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 px-4 pt-2.5 pb-2 text-sm"><span${attr_class(`flex shrink-0 items-center gap-1 rounded px-1.5 text-xs leading-[1.15rem] font-medium ${preview.landed ? "bg-success/10 text-success" : "bg-sea/10 text-sea"}`)}>`);
|
|
906
|
+
if (preview.landed) {
|
|
907
|
+
$$renderer2.push("<!--[0-->");
|
|
908
|
+
Git_merge($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
909
|
+
$$renderer2.push(`<!---->Landed`);
|
|
910
|
+
} else {
|
|
911
|
+
$$renderer2.push("<!--[-1-->");
|
|
912
|
+
Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
913
|
+
$$renderer2.push(`<!---->Live preview`);
|
|
914
|
+
}
|
|
915
|
+
$$renderer2.push(`<!--]--></span> `);
|
|
916
|
+
if (project) {
|
|
917
|
+
$$renderer2.push(`<!--[0--><span class="shrink-0 rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]">${escape_html(project)}</span>`);
|
|
918
|
+
} else {
|
|
919
|
+
$$renderer2.push("<!--[-1-->");
|
|
920
|
+
}
|
|
921
|
+
$$renderer2.push(`<!--]--> <a${attr("href", `/tasks/${stringify(encodeURIComponent(task().id))}`)} class="order-last min-w-0 basis-full truncate font-medium hover:underline sm:order-none sm:basis-auto">${escape_html(task().shortTitle)}</a> `);
|
|
922
|
+
if (at()) {
|
|
923
|
+
$$renderer2.push(`<!--[0--><span class="ml-auto shrink-0 text-xs text-muted-foreground tabular-nums">${escape_html(ago(at(), now))}</span>`);
|
|
924
|
+
} else {
|
|
925
|
+
$$renderer2.push("<!--[-1-->");
|
|
926
|
+
}
|
|
927
|
+
$$renderer2.push(`<!--]--></header> <div class="border-y border-hair">`);
|
|
928
|
+
LivePreview($$renderer2, {
|
|
929
|
+
taskId: task().id,
|
|
930
|
+
compact: true,
|
|
931
|
+
toolbar: false,
|
|
932
|
+
feedback: false,
|
|
933
|
+
onopen: () => full = true
|
|
934
|
+
});
|
|
935
|
+
$$renderer2.push(`<!----></div> <footer class="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-2 text-xs">`);
|
|
936
|
+
if (task().pr) {
|
|
937
|
+
$$renderer2.push(`<!--[0--><a${attr("href", task().pr.url)} target="_blank" rel="noreferrer" class="inline-flex min-w-0 items-center gap-1 text-sea hover:underline">`);
|
|
938
|
+
if (preview.landed) {
|
|
939
|
+
$$renderer2.push("<!--[0-->");
|
|
940
|
+
Git_merge($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
941
|
+
} else {
|
|
942
|
+
$$renderer2.push("<!--[-1-->");
|
|
943
|
+
Git_pull_request($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
944
|
+
}
|
|
945
|
+
$$renderer2.push(`<!--]--><span class="truncate">${escape_html(task().pr.number ? `Pull request #${task().pr.number}` : "Pull request")}</span></a>`);
|
|
946
|
+
} else {
|
|
947
|
+
$$renderer2.push("<!--[-1-->");
|
|
948
|
+
}
|
|
949
|
+
$$renderer2.push(`<!--]--> `);
|
|
950
|
+
if (checks()) {
|
|
951
|
+
$$renderer2.push(`<!--[0--><span${attr_class(`inline-flex items-center gap-1 ${stringify(checks().tone)}`)}>`);
|
|
952
|
+
if (checks().icon) {
|
|
953
|
+
$$renderer2.push("<!--[-->");
|
|
954
|
+
checks().icon($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
955
|
+
$$renderer2.push("<!--]-->");
|
|
956
|
+
} else {
|
|
957
|
+
$$renderer2.push("<!--[!-->");
|
|
958
|
+
$$renderer2.push("<!--]-->");
|
|
959
|
+
}
|
|
960
|
+
$$renderer2.push(`${escape_html(checks().text)}</span>`);
|
|
961
|
+
} else {
|
|
962
|
+
$$renderer2.push("<!--[-1-->");
|
|
963
|
+
}
|
|
964
|
+
$$renderer2.push(`<!--]--> <span class="ml-auto flex items-center gap-1">`);
|
|
965
|
+
if (prLink() && !prLink().external) {
|
|
966
|
+
$$renderer2.push(`<!--[0--><a${attr("href", prLink().href)} class="inline-flex items-center gap-1 rounded px-1.5 py-0.5 font-medium hover:bg-accent" data-review-pr="">`);
|
|
967
|
+
Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
968
|
+
$$renderer2.push(`<!---->Review</a>`);
|
|
969
|
+
} else {
|
|
970
|
+
$$renderer2.push("<!--[-1-->");
|
|
971
|
+
}
|
|
972
|
+
$$renderer2.push(`<!--]--> <button type="button" class="inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium hover:bg-accent">`);
|
|
973
|
+
Maximize_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
974
|
+
$$renderer2.push(`<!---->Full size</button> `);
|
|
975
|
+
if (url()) {
|
|
976
|
+
$$renderer2.push(`<!--[0--><a${attr("href", url())} target="_blank" rel="noreferrer" class="inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-muted-foreground hover:bg-accent hover:text-foreground"${attr("title", url())}>New tab`);
|
|
977
|
+
External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
978
|
+
$$renderer2.push(`<!----></a>`);
|
|
979
|
+
} else {
|
|
980
|
+
$$renderer2.push("<!--[-1-->");
|
|
981
|
+
}
|
|
982
|
+
$$renderer2.push(`<!--]--></span></footer></div> `);
|
|
983
|
+
if (full && url()) {
|
|
984
|
+
$$renderer2.push("<!--[0-->");
|
|
985
|
+
PreviewStudio($$renderer2, {
|
|
986
|
+
taskId: task().id,
|
|
987
|
+
title: task().shortTitle,
|
|
988
|
+
url: url(),
|
|
989
|
+
feedback: !preview.landed,
|
|
990
|
+
onclose: () => full = false
|
|
991
|
+
});
|
|
992
|
+
} else {
|
|
993
|
+
$$renderer2.push("<!--[-1-->");
|
|
994
|
+
}
|
|
995
|
+
$$renderer2.push(`<!--]-->`);
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
function AttachedFiles($$renderer, $$props) {
|
|
999
|
+
$$renderer.component(($$renderer2) => {
|
|
1000
|
+
if (
|
|
1001
|
+
/**
|
|
1002
|
+
* The files waiting to go with the message, under the text in the composer:
|
|
1003
|
+
* one hairline-ruled row each, with a thumbnail for an image, its kind and
|
|
1004
|
+
* size (or how far it has uploaded, or why it failed) and a way to remove it.
|
|
1005
|
+
*/
|
|
1006
|
+
attachments.drafts.length
|
|
1007
|
+
) {
|
|
1008
|
+
$$renderer2.push(`<!--[0--><ul class="mx-2 mb-1 flex flex-col divide-y divide-hair border-t border-hair" aria-label="Attached files"><!--[-->`);
|
|
1009
|
+
const each_array = ensure_array_like(attachments.drafts);
|
|
1010
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1011
|
+
let d = each_array[$$index];
|
|
1012
|
+
$$renderer2.push(`<li class="flex items-center gap-2.5 px-1.5 py-1.5 text-sm"${attr("data-attachment", d.state)}>`);
|
|
1013
|
+
if (d.preview) {
|
|
1014
|
+
$$renderer2.push(`<!--[0--><img${attr("src", d.preview)} alt="" class="size-7 shrink-0 rounded border border-hair object-cover"/>`);
|
|
1015
|
+
} else {
|
|
1016
|
+
$$renderer2.push(`<!--[-1--><span class="flex size-7 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
|
|
1017
|
+
File_text($$renderer2, { class: "size-3.5" });
|
|
1018
|
+
$$renderer2.push(`<!----></span>`);
|
|
1019
|
+
}
|
|
1020
|
+
$$renderer2.push(`<!--]--> <span class="min-w-0 truncate font-medium"${attr("title", d.name)}>${escape_html(d.name)}</span> <span${attr_class(`flex shrink-0 items-center gap-1 text-xs ${d.state === "failed" ? "text-danger" : "text-muted-foreground"}`)}${attr("role", d.state === "failed" ? "alert" : void 0)}>`);
|
|
1021
|
+
if (d.state === "uploading") {
|
|
1022
|
+
$$renderer2.push("<!--[0-->");
|
|
1023
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1024
|
+
$$renderer2.push(`<!---->Uploading ${escape_html(Math.round(d.progress * 100))}%`);
|
|
1025
|
+
} else if (d.state === "failed") {
|
|
1026
|
+
$$renderer2.push("<!--[1-->");
|
|
1027
|
+
Circle_alert($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1028
|
+
$$renderer2.push(`<!---->${escape_html(d.error)}`);
|
|
1029
|
+
} else {
|
|
1030
|
+
$$renderer2.push(`<!--[-1-->${escape_html(kindLabel(d))} · ${escape_html(fileSize(d.size))}`);
|
|
1031
|
+
}
|
|
1032
|
+
$$renderer2.push(`<!--]--></span> <button type="button" class="ml-auto flex size-7 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"${attr("aria-label", `Remove ${stringify(d.name)}`)} title="Remove">`);
|
|
1033
|
+
X($$renderer2, { class: "size-3.5" });
|
|
1034
|
+
$$renderer2.push(`<!----></button></li>`);
|
|
1035
|
+
}
|
|
1036
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
1037
|
+
} else {
|
|
1038
|
+
$$renderer2.push("<!--[-1-->");
|
|
1039
|
+
}
|
|
1040
|
+
$$renderer2.push(`<!--]-->`);
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
function Composer($$renderer, $$props) {
|
|
1044
|
+
$$renderer.component(($$renderer2) => {
|
|
1045
|
+
let {
|
|
1046
|
+
via,
|
|
1047
|
+
reason,
|
|
1048
|
+
working,
|
|
1049
|
+
held = null,
|
|
1050
|
+
reply = null
|
|
1051
|
+
} = $$props;
|
|
1052
|
+
const canSend = derived(() => via !== null);
|
|
1053
|
+
let editor = void 0;
|
|
1054
|
+
let empty = true;
|
|
1055
|
+
let stopping = false;
|
|
1056
|
+
const placeholder = derived(() => via === "session" ? "Message Firstmate · / for commands · # to mention a task" : via === "inbox" ? "Message Firstmate’s inbox · # to mention a task" : reason ?? "Firstmate is not running here.");
|
|
1057
|
+
$$renderer2.push(`<div class="relative">`);
|
|
1058
|
+
{
|
|
1059
|
+
$$renderer2.push("<!--[-1-->");
|
|
1060
|
+
}
|
|
1061
|
+
$$renderer2.push(`<!--]--> `);
|
|
1062
|
+
if (reply) {
|
|
1063
|
+
$$renderer2.push(`<!--[0--><div class="reply-draft" role="group" aria-label="Replying to a message">`);
|
|
1064
|
+
Reply($$renderer2, { class: "size-4 shrink-0 text-sea", "aria-hidden": "true" });
|
|
1065
|
+
$$renderer2.push(`<!----> <div class="min-w-0 flex-1"><p class="text-xs font-medium text-sea">Replying to ${escape_html(reply.who === "firstmate" ? "Firstmate" : "yourself")}</p> <p class="truncate text-sm text-muted-foreground">${escape_html(reply.snippet)}</p></div> <button class="flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Cancel the reply" title="Cancel the reply (Esc)">`);
|
|
1066
|
+
X($$renderer2, { class: "size-4" });
|
|
1067
|
+
$$renderer2.push(`<!----></button></div>`);
|
|
1068
|
+
} else {
|
|
1069
|
+
$$renderer2.push("<!--[-1-->");
|
|
1070
|
+
}
|
|
1071
|
+
$$renderer2.push(`<!--]--> <div${attr_class(`rounded-lg border border-input bg-card shadow-sm focus-within:ring-2 focus-within:ring-ring/30 ${canSend() ? "" : "opacity-70"} ${reply ? "rounded-t-none" : ""}`)}><div class="flex items-end gap-2 p-2 pl-1.5"><input type="file" multiple="" class="hidden" tabindex="-1" aria-hidden="true"/> <button type="button" aria-label="Attach files"${attr("title", `Attach files (or drop them on the chat, or paste an image), up to ${stringify(UPLOAD_MAX_BYTES / (1024 * 1024))} MB each`)}${attr("disabled", !canSend(), true)} class="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40">`);
|
|
1072
|
+
Paperclip($$renderer2, { class: "size-4" });
|
|
1073
|
+
$$renderer2.push(`<!----></button> <div${attr("contenteditable", canSend() ? "true" : "false")} role="textbox"${attr("tabindex", canSend() ? 0 : -1)} aria-multiline="true" aria-label="Message Firstmate"${attr("aria-disabled", !canSend())}${attr("data-placeholder", placeholder())}${attr_class(`editor no-scrollbar max-h-48 min-h-10 flex-1 overflow-y-auto py-2 text-base leading-relaxed whitespace-pre-wrap outline-none ${"is-empty"} ${canSend() ? "" : "cursor-not-allowed"}`, "svelte-w61w6e")}></div> `);
|
|
1074
|
+
MicButton($$renderer2, {
|
|
1075
|
+
field: editor,
|
|
1076
|
+
target: () => editableTarget(editor),
|
|
1077
|
+
label: "Dictate a message",
|
|
1078
|
+
disabled: !canSend()
|
|
1079
|
+
});
|
|
1080
|
+
$$renderer2.push(`<!----> `);
|
|
1081
|
+
if (working && empty && !attachments.drafts.length && via === "session") {
|
|
1082
|
+
$$renderer2.push(`<!--[0--><button aria-label="Stop Firstmate" title="Stop what Firstmate is doing (Escape)"${attr("disabled", stopping, true)} class="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full bg-foreground text-background transition-opacity disabled:opacity-40">`);
|
|
1083
|
+
{
|
|
1084
|
+
$$renderer2.push("<!--[-1-->");
|
|
1085
|
+
Square($$renderer2, { class: "size-3.5 fill-current" });
|
|
1086
|
+
}
|
|
1087
|
+
$$renderer2.push(`<!--]--></button>`);
|
|
1088
|
+
} else {
|
|
1089
|
+
$$renderer2.push(`<!--[-1--><button aria-label="Send"${attr("disabled", !attachments.ready || !canSend() || !!held || attachments.uploading, true)} class="flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full bg-foreground text-background transition-opacity disabled:cursor-not-allowed disabled:opacity-30">`);
|
|
1090
|
+
Arrow_up($$renderer2, { class: "size-4" });
|
|
1091
|
+
$$renderer2.push(`<!----></button>`);
|
|
1092
|
+
}
|
|
1093
|
+
$$renderer2.push(`<!--]--></div> `);
|
|
1094
|
+
AttachedFiles($$renderer2);
|
|
1095
|
+
$$renderer2.push(`<!----></div> `);
|
|
1096
|
+
if (held) {
|
|
1097
|
+
$$renderer2.push(`<!--[1--><p class="mt-2 text-xs text-muted-foreground" data-held="">${escape_html(held)}</p>`);
|
|
1098
|
+
} else if (attachments.uploading) {
|
|
1099
|
+
$$renderer2.push(`<!--[2--><p class="mt-2 text-xs text-muted-foreground">Send waits until the files finish uploading.</p>`);
|
|
1100
|
+
} else if (via === "inbox") {
|
|
1101
|
+
$$renderer2.push(`<!--[3--><p class="mt-2 text-xs text-muted-foreground">${escape_html("Firstmate runs in another terminal, so messages go to its inbox.")}</p>`);
|
|
1102
|
+
} else {
|
|
1103
|
+
$$renderer2.push("<!--[-1-->");
|
|
1104
|
+
}
|
|
1105
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
function MenuCard($$renderer, $$props) {
|
|
1109
|
+
$$renderer.component(($$renderer2) => {
|
|
1110
|
+
let { menu } = $$props;
|
|
1111
|
+
let busy = false;
|
|
1112
|
+
$$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-sea bg-card p-4" role="group" aria-label="A Claude Code menu is open"><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
|
|
1113
|
+
App_window($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
|
|
1114
|
+
$$renderer2.push(`<!---->A Claude Code menu is open</p> <p class="mb-3 text-sm text-muted-foreground">`);
|
|
1115
|
+
if (menu.title) {
|
|
1116
|
+
$$renderer2.push(`<!--[0--><span class="font-medium text-foreground">${escape_html(menu.title)}</span>`);
|
|
1117
|
+
} else {
|
|
1118
|
+
$$renderer2.push(`<!--[-1-->A menu`);
|
|
1119
|
+
}
|
|
1120
|
+
$$renderer2.push(`<!--]--> is open in Firstmate’s session, and the chat can’t use it. Close it to carry on chatting, or use it
|
|
1121
|
+
in Firstmate’s terminal.</p> <div class="flex flex-wrap items-center gap-3 text-sm"><button class="flex cursor-pointer items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 font-medium text-background disabled:opacity-40"${attr("disabled", busy, true)}>`);
|
|
1122
|
+
{
|
|
1123
|
+
$$renderer2.push("<!--[-1-->");
|
|
1124
|
+
X($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1125
|
+
}
|
|
1126
|
+
$$renderer2.push(`<!--]-->Close menu</button> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1127
|
+
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1128
|
+
$$renderer2.push(`<!---->Use it in the terminal</button> `);
|
|
1129
|
+
{
|
|
1130
|
+
$$renderer2.push("<!--[-1-->");
|
|
1131
|
+
}
|
|
1132
|
+
$$renderer2.push(`<!--]--></div></div>`);
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
function PickerCard($$renderer, $$props) {
|
|
1136
|
+
$$renderer.component(($$renderer2) => {
|
|
1137
|
+
let { picker } = $$props;
|
|
1138
|
+
let busy = false;
|
|
1139
|
+
$$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-sea bg-card p-4" role="group" aria-label="Firstmate is asking you"><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
|
|
1140
|
+
Message_circle_question_mark($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
|
|
1141
|
+
$$renderer2.push(`<!---->Firstmate is asking you `);
|
|
1142
|
+
{
|
|
1143
|
+
$$renderer2.push("<!--[-1-->");
|
|
1144
|
+
}
|
|
1145
|
+
$$renderer2.push(`<!--]--></p> `);
|
|
1146
|
+
if (picker.tabs.length > 1) {
|
|
1147
|
+
$$renderer2.push(`<!--[0--><div class="mb-3 flex flex-wrap gap-1.5 text-xs"><!--[-->`);
|
|
1148
|
+
const each_array = ensure_array_like(picker.tabs);
|
|
1149
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1150
|
+
let tab = each_array[$$index];
|
|
1151
|
+
$$renderer2.push(`<span${attr_class(`flex items-center gap-1 rounded border px-1.5 py-0.5 ${tab.done ? "text-muted-foreground" : "border-sea/50 text-foreground"}`)}>`);
|
|
1152
|
+
if (tab.done) {
|
|
1153
|
+
$$renderer2.push("<!--[0-->");
|
|
1154
|
+
Check($$renderer2, { class: "size-3", "aria-label": "Answered" });
|
|
1155
|
+
} else {
|
|
1156
|
+
$$renderer2.push("<!--[-1-->");
|
|
1157
|
+
}
|
|
1158
|
+
$$renderer2.push(`<!--]-->${escape_html(tab.label)}</span>`);
|
|
1159
|
+
}
|
|
1160
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1161
|
+
} else {
|
|
1162
|
+
$$renderer2.push("<!--[-1-->");
|
|
1163
|
+
}
|
|
1164
|
+
$$renderer2.push(`<!--]--> `);
|
|
1165
|
+
if (picker.title) {
|
|
1166
|
+
$$renderer2.push(`<!--[0--><p class="mb-3 text-base whitespace-pre-line">${escape_html(picker.title)}</p>`);
|
|
1167
|
+
} else {
|
|
1168
|
+
$$renderer2.push("<!--[-1-->");
|
|
1169
|
+
}
|
|
1170
|
+
$$renderer2.push(`<!--]--> <div class="flex flex-col gap-1.5"><!--[-->`);
|
|
1171
|
+
const each_array_1 = ensure_array_like(picker.options);
|
|
1172
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
1173
|
+
let o = each_array_1[$$index_1];
|
|
1174
|
+
if (o.freeText) {
|
|
1175
|
+
$$renderer2.push(`<!--[0--><button class="flex w-full cursor-pointer items-center gap-3 rounded-lg border border-dashed bg-background px-3 py-2 text-left text-sm text-muted-foreground hover:border-sea/60">`);
|
|
1176
|
+
Square_terminal($$renderer2, { class: "size-4 shrink-0", "aria-hidden": "true" });
|
|
1177
|
+
$$renderer2.push(`<!----> <span>Type an answer in Firstmate’s terminal</span></button>`);
|
|
1178
|
+
} else {
|
|
1179
|
+
$$renderer2.push(`<!--[-1--><button${attr_class(`flex w-full cursor-pointer items-start gap-3 rounded-lg border px-3 py-2 text-left text-sm transition-colors disabled:cursor-default ${o.checked ? "border-sea bg-sea/10" : "bg-background hover:border-sea/60"}`)}${attr("disabled", busy, true)}${attr("aria-pressed", o.checked === null ? void 0 : o.checked)}><span class="tabular w-4 shrink-0 text-muted-foreground">`);
|
|
1180
|
+
if (o.checked) {
|
|
1181
|
+
$$renderer2.push("<!--[0-->");
|
|
1182
|
+
Check($$renderer2, { class: "size-4 text-sea", "aria-label": "Chosen" });
|
|
1183
|
+
} else {
|
|
1184
|
+
$$renderer2.push(`<!--[-1-->${escape_html(o.n)}`);
|
|
1185
|
+
}
|
|
1186
|
+
$$renderer2.push(`<!--]--></span> <span class="min-w-0"><span class="font-medium">${escape_html(o.label)}</span> `);
|
|
1187
|
+
if (o.description) {
|
|
1188
|
+
$$renderer2.push(`<!--[0--><span class="block text-xs text-muted-foreground">${escape_html(o.description)}</span>`);
|
|
1189
|
+
} else {
|
|
1190
|
+
$$renderer2.push("<!--[-1-->");
|
|
1191
|
+
}
|
|
1192
|
+
$$renderer2.push(`<!--]--></span></button>`);
|
|
1193
|
+
}
|
|
1194
|
+
$$renderer2.push(`<!--]-->`);
|
|
1195
|
+
}
|
|
1196
|
+
$$renderer2.push(`<!--]--></div> <div class="mt-3 flex flex-wrap items-center gap-3 text-sm">`);
|
|
1197
|
+
if (picker.multiSelect && picker.submitMoves !== null) {
|
|
1198
|
+
$$renderer2.push(`<!--[0--><button class="cursor-pointer rounded-lg bg-foreground px-3 py-1.5 font-medium text-background disabled:opacity-40"${attr("disabled", !picker.options.some((o) => o.checked), true)}>Done</button>`);
|
|
1199
|
+
} else {
|
|
1200
|
+
$$renderer2.push("<!--[-1-->");
|
|
1201
|
+
}
|
|
1202
|
+
$$renderer2.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1203
|
+
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1204
|
+
$$renderer2.push(`<!---->Answer in the terminal instead</button> `);
|
|
1205
|
+
{
|
|
1206
|
+
$$renderer2.push("<!--[-1-->");
|
|
1207
|
+
}
|
|
1208
|
+
$$renderer2.push(`<!--]--></div></div>`);
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
function QuestionCard($$renderer, $$props) {
|
|
1212
|
+
$$renderer.component(($$renderer2) => {
|
|
1213
|
+
let { part } = $$props;
|
|
1214
|
+
if (part.answers) {
|
|
1215
|
+
$$renderer2.push(`<!--[0--><div class="flex max-w-[80ch] flex-col gap-1 text-sm text-muted-foreground"><!--[-->`);
|
|
1216
|
+
const each_array = ensure_array_like(part.questions);
|
|
1217
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1218
|
+
let q = each_array[$$index];
|
|
1219
|
+
$$renderer2.push(`<p class="flex items-start gap-2">`);
|
|
1220
|
+
Circle_check($$renderer2, {
|
|
1221
|
+
class: "mt-0.5 size-4 shrink-0 text-success",
|
|
1222
|
+
"aria-hidden": "true"
|
|
1223
|
+
});
|
|
1224
|
+
$$renderer2.push(`<!----> <span>${escape_html(q.question)} <span class="font-medium text-foreground">${escape_html(part.answers[q.question] ?? "No answer")}</span></span></p>`);
|
|
1225
|
+
}
|
|
1226
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1227
|
+
} else {
|
|
1228
|
+
$$renderer2.push("<!--[-1-->");
|
|
1229
|
+
}
|
|
1230
|
+
$$renderer2.push(`<!--]-->`);
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
function captainText($$renderer, text, linked) {
|
|
1234
|
+
$$renderer.push(`<!--[-->`);
|
|
1235
|
+
const each_array = ensure_array_like(parseRefs(text));
|
|
1236
|
+
for (let pi = 0, $$length = each_array.length; pi < $$length; pi++) {
|
|
1237
|
+
let piece = each_array[pi];
|
|
1238
|
+
if (typeof piece === "string") {
|
|
1239
|
+
$$renderer.push(`<!--[0-->${escape_html(piece)}`);
|
|
1240
|
+
} else if (linked) {
|
|
1241
|
+
$$renderer.push(`<!--[1--><a${attr("href", `/tasks/${stringify(encodeURIComponent(piece.id))}`)} class="mx-px inline-block rounded-md bg-sea/15 px-1.5 text-[0.875em] font-medium whitespace-nowrap text-sea no-underline hover:bg-sea/25"${attr("title", piece.url ?? piece.title)}>${escape_html(chipLabel(piece))}</a>`);
|
|
1242
|
+
} else {
|
|
1243
|
+
$$renderer.push(`<!--[-1--><span class="mx-px inline-block rounded-md bg-sea/15 px-1.5 text-[0.875em] font-medium whitespace-nowrap text-sea">${escape_html(chipLabel(piece))}</span>`);
|
|
1244
|
+
}
|
|
1245
|
+
$$renderer.push(`<!--]-->`);
|
|
1246
|
+
}
|
|
1247
|
+
$$renderer.push(`<!--]-->`);
|
|
1248
|
+
}
|
|
1249
|
+
function Chat($$renderer, $$props) {
|
|
1250
|
+
$$renderer.component(($$renderer2) => {
|
|
1251
|
+
let {
|
|
1252
|
+
railOpen,
|
|
1253
|
+
railSide = "right",
|
|
1254
|
+
onSwapRail,
|
|
1255
|
+
waiting = 0,
|
|
1256
|
+
health,
|
|
1257
|
+
now,
|
|
1258
|
+
pluginEntries = [],
|
|
1259
|
+
tasks = [],
|
|
1260
|
+
projects = []
|
|
1261
|
+
/** Which side of the chat the On deck rail docks to. */
|
|
1262
|
+
/** Moves the rail to the chat's other side; without it there is no button. */
|
|
1263
|
+
/** Items waiting on the captain, for the rail button's dot. */
|
|
1264
|
+
/** Plugin entries for the fleet, whose bridge.card cards follow replies that link them. */
|
|
1265
|
+
/** The fleet's tasks, whose live previews follow the replies about them. */
|
|
1266
|
+
/** The fleet's projects, for the cards' project names. */
|
|
1267
|
+
} = $$props;
|
|
1268
|
+
const HEALTH_ICON = {
|
|
1269
|
+
success: Circle_check,
|
|
1270
|
+
sea: Hand,
|
|
1271
|
+
warning: Triangle_alert,
|
|
1272
|
+
danger: Circle_x
|
|
1273
|
+
};
|
|
1274
|
+
const HEALTH_TEXT = {
|
|
1275
|
+
success: "text-success",
|
|
1276
|
+
sea: "text-sea",
|
|
1277
|
+
warning: "text-warning",
|
|
1278
|
+
danger: "text-danger"
|
|
1279
|
+
};
|
|
1280
|
+
const session = derived(() => firstmateChat.session);
|
|
1281
|
+
const chat = derived(() => firstmateChat.chat);
|
|
1282
|
+
const items = derived(() => chat().items);
|
|
1283
|
+
const lastItem = derived(() => items()[items().length - 1]);
|
|
1284
|
+
const working = derived(() => session()?.busy === true || lastItem()?.kind === "turn" && !lastItem().done && !lastItem().interrupted);
|
|
1285
|
+
const picker = derived(() => session()?.canSend ? session().picker : null);
|
|
1286
|
+
const menu = derived(() => session()?.canSend ? session().menu : null);
|
|
1287
|
+
const waitingOnAnswer = derived(() => !!picker() || !!menu());
|
|
1288
|
+
const held = derived(() => picker() ? "Answer the question above to send your message." : menu() ? "Close the Claude Code menu above to send your message." : null);
|
|
1289
|
+
const lastCheck = derived(() => chat().checks[chat().checks.length - 1]);
|
|
1290
|
+
const checking = derived(() => !!lastCheck() && !lastCheck().done);
|
|
1291
|
+
const HIcon = derived(() => HEALTH_ICON[health.tone]);
|
|
1292
|
+
const canSend = derived(() => session()?.canSend === true);
|
|
1293
|
+
const via = derived(() => canSend() ? "session" : session()?.state === "external" && currentHealth()?.messaging.available ? "inbox" : null);
|
|
1294
|
+
const inboxView = derived(() => inbox.view(page.data.inbox));
|
|
1295
|
+
const decisions = derived(() => inboxView()?.available ? chatDecisions(inboxView().cards, inboxView().answered ?? [], inbox.pending) : []);
|
|
1296
|
+
const placed = derived(() => placeDecisions(items(), decisions()));
|
|
1297
|
+
const shown = derived(() => [...[...placed().before.values()].flat(), ...placed().end]);
|
|
1298
|
+
const decisionIds = derived(() => new Set(shown().map((d) => d.head.cardId)));
|
|
1299
|
+
const discussed = derived(() => threads(items(), decisionIds()));
|
|
1300
|
+
const asking = derived(() => pendingThreads(firstmateChat.pending));
|
|
1301
|
+
const threadOwner = derived(() => {
|
|
1302
|
+
const owner = /* @__PURE__ */ new Map();
|
|
1303
|
+
for (const d of shown()) {
|
|
1304
|
+
const held2 = owner.get(d.head.cardId);
|
|
1305
|
+
if (!held2 || !shown().find((x) => x.id === held2)?.card) owner.set(d.head.cardId, d.id);
|
|
1306
|
+
}
|
|
1307
|
+
return owner;
|
|
1308
|
+
});
|
|
1309
|
+
const chatPending = derived(() => firstmateChat.pending.filter((p) => {
|
|
1310
|
+
const d = parseDiscuss(p.text);
|
|
1311
|
+
return !d || !decisionIds().has(d.cardId);
|
|
1312
|
+
}));
|
|
1313
|
+
const previews = derived(() => previewCards(items(), tasks));
|
|
1314
|
+
const projectName = (id) => !id || id === "unassigned" ? null : projects.find((p) => p.id === id)?.name ?? id;
|
|
1315
|
+
let showChecks = false;
|
|
1316
|
+
let terminalOpen = false;
|
|
1317
|
+
let apps = {};
|
|
1318
|
+
let openNotice = {};
|
|
1319
|
+
let starting = false;
|
|
1320
|
+
const GROUP_MS = 5 * 6e4;
|
|
1321
|
+
function groupedWithPrevious(i) {
|
|
1322
|
+
let j = i - 1;
|
|
1323
|
+
while (j >= 0 && discussed().hidden.has(items()[j].id)) j--;
|
|
1324
|
+
for (let k = j + 1; k <= i; k++) if (placed().before.has(k)) return false;
|
|
1325
|
+
const a = items()[j];
|
|
1326
|
+
const b = items()[i];
|
|
1327
|
+
if (!a || !b || a.kind !== b.kind || b.kind !== "user" && b.kind !== "turn") return false;
|
|
1328
|
+
return Date.parse(b.at) - Date.parse(a.at) <= GROUP_MS;
|
|
1329
|
+
}
|
|
1330
|
+
const time2 = (at) => new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
1331
|
+
const status = derived(() => {
|
|
1332
|
+
if (firstmateChat.connection === "lost") return { dot: "bg-danger", label: "Reconnecting" };
|
|
1333
|
+
if (!session()) return { dot: "bg-muted-foreground", label: "Connecting" };
|
|
1334
|
+
if (session().state === "external") return { dot: "bg-muted-foreground", label: "Read-only" };
|
|
1335
|
+
if (session().state === "starting") return { dot: "animate-pulse bg-sea", label: "Starting" };
|
|
1336
|
+
if (session().state !== "ours") return { dot: "bg-muted-foreground", label: "Not running" };
|
|
1337
|
+
if (picker()) return { dot: "bg-sea", label: "Asking you" };
|
|
1338
|
+
if (menu()) return { dot: "bg-sea", label: "Menu open" };
|
|
1339
|
+
return working() ? { dot: "animate-pulse bg-sea", label: "Working" } : { dot: "bg-success", label: "Waiting for you" };
|
|
1340
|
+
});
|
|
1341
|
+
let replyTo = null;
|
|
1342
|
+
const captainWords = (text) => parseAttachments(parseReply(text).body).text;
|
|
1343
|
+
function original(to, before = items().length) {
|
|
1344
|
+
for (let i = Math.min(before, items().length) - 1; i >= 0; i--) {
|
|
1345
|
+
const it = items()[i];
|
|
1346
|
+
if (to.who === "captain" && it.kind === "user" && quotes(to, captainWords(it.text))) return it.id;
|
|
1347
|
+
if (to.who === "firstmate" && it.kind === "turn") for (let pi = it.parts.length - 1; pi >= 0; pi--) {
|
|
1348
|
+
const part = it.parts[pi];
|
|
1349
|
+
if (part.kind === "text" && quotes(to, part.text)) return part.id;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
return null;
|
|
1353
|
+
}
|
|
1354
|
+
let revealed = null;
|
|
1355
|
+
const isLive = (item, pi) => working() && item === lastItem() && item.kind === "turn" && pi === item.parts.length - 1;
|
|
1356
|
+
function replyButton($$renderer3, key, who, text) {
|
|
1357
|
+
$$renderer3.push(`<button${attr_class(`reply-btn ${revealed === key ? "is-revealed" : ""}`)}${attr("aria-label", who === "firstmate" ? "Reply to this message from Firstmate" : "Reply to your message")} title="Reply">`);
|
|
1358
|
+
Reply($$renderer3, { class: "size-4", "aria-hidden": "true" });
|
|
1359
|
+
$$renderer3.push(`<!----></button>`);
|
|
1360
|
+
}
|
|
1361
|
+
function quote($$renderer3, to, target) {
|
|
1362
|
+
$$renderer3.push(`<button${attr_class(`reply-quote reply-quote-${stringify(to.who)}`)}${attr("disabled", !target, true)}${attr("title", target ? "Show the message this replies to" : "That message is no longer in the chat")}><span class="reply-quote-who">${escape_html(to.who === "firstmate" ? "Firstmate" : "You")}</span> <span class="reply-quote-text">${escape_html(to.snippet)}</span></button>`);
|
|
1363
|
+
}
|
|
1364
|
+
function decisionRow($$renderer3, d) {
|
|
1365
|
+
$$renderer3.push(`<div class="msg msg-firstmate msg-grouped"><span class="msg-gutter" aria-hidden="true"></span> <div class="min-w-0 flex-1">`);
|
|
1366
|
+
ChatDecision($$renderer3, {
|
|
1367
|
+
decision: d,
|
|
1368
|
+
project: projectName(d.head.projectId),
|
|
1369
|
+
now,
|
|
1370
|
+
thread: threadOwner().get(d.head.cardId) === d.id ? discussed().byCard.get(d.head.cardId) ?? null : null,
|
|
1371
|
+
pending: threadOwner().get(d.head.cardId) === d.id ? asking().get(d.head.cardId) ?? [] : [],
|
|
1372
|
+
canAsk: !!via()
|
|
1373
|
+
});
|
|
1374
|
+
$$renderer3.push(`<!----></div></div>`);
|
|
1375
|
+
}
|
|
1376
|
+
$$renderer2.push(`<section class="chat-grid relative flex min-h-0 min-w-0 flex-1 flex-col bg-panel" aria-label="Firstmate">`);
|
|
1377
|
+
{
|
|
1378
|
+
$$renderer2.push("<!--[-1-->");
|
|
1379
|
+
}
|
|
1380
|
+
$$renderer2.push(`<!--]--> <div class="border-b"><div class="flex h-11 items-center gap-3 px-4 text-sm sm:px-6 lg:px-10"><span class="font-medium">Firstmate</span> `);
|
|
1381
|
+
if (chat().title) {
|
|
1382
|
+
$$renderer2.push(`<!--[0--><span class="hidden truncate text-muted-foreground sm:inline">${escape_html(chat().title)}</span>`);
|
|
1383
|
+
} else {
|
|
1384
|
+
$$renderer2.push("<!--[-1-->");
|
|
1385
|
+
}
|
|
1386
|
+
$$renderer2.push(`<!--]--> <div class="relative ml-auto shrink-0"><button class="flex cursor-pointer items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs transition-colors hover:bg-muted"${attr("aria-expanded", showChecks)} aria-haspopup="dialog">`);
|
|
1387
|
+
if (HIcon()) {
|
|
1388
|
+
$$renderer2.push("<!--[-->");
|
|
1389
|
+
HIcon()($$renderer2, {
|
|
1390
|
+
class: `size-3.5 ${stringify(HEALTH_TEXT[health.tone])}`,
|
|
1391
|
+
"aria-hidden": "true"
|
|
1392
|
+
});
|
|
1393
|
+
$$renderer2.push("<!--]-->");
|
|
1394
|
+
} else {
|
|
1395
|
+
$$renderer2.push("<!--[!-->");
|
|
1396
|
+
$$renderer2.push("<!--]-->");
|
|
1397
|
+
}
|
|
1398
|
+
$$renderer2.push(` <span class="font-medium">${escape_html(health.label)}</span> <span class="hidden text-muted-foreground md:inline">· `);
|
|
1399
|
+
if (checking()) {
|
|
1400
|
+
$$renderer2.push(`<!--[0--><span class="inline-flex items-center gap-1">`);
|
|
1401
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1402
|
+
$$renderer2.push(`<!---->checking now</span>`);
|
|
1403
|
+
} else if (lastCheck()) {
|
|
1404
|
+
$$renderer2.push(`<!--[1-->checked ${escape_html(ago(lastCheck().at, now))}`);
|
|
1405
|
+
} else {
|
|
1406
|
+
$$renderer2.push(`<!--[-1-->no checks yet`);
|
|
1407
|
+
}
|
|
1408
|
+
$$renderer2.push(`<!--]--></span></button> `);
|
|
1409
|
+
{
|
|
1410
|
+
$$renderer2.push("<!--[-1-->");
|
|
1411
|
+
}
|
|
1412
|
+
$$renderer2.push(`<!--]--></div> <span class="hidden shrink-0 items-center gap-2 text-muted-foreground md:flex"><span${attr_class(`size-2 rounded-full ${stringify(status().dot)}`)} aria-hidden="true"></span>${escape_html(status().label)}</span> `);
|
|
1413
|
+
if (canSend()) {
|
|
1414
|
+
$$renderer2.push(`<!--[0--><button${attr_class(`flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md transition-colors hover:bg-muted ${"text-muted-foreground"}`)}${attr("aria-label", "Show Firstmate’s terminal")}${attr("aria-pressed", terminalOpen)} title="Firstmate’s own terminal, for anything the chat cannot show">`);
|
|
1415
|
+
Square_terminal($$renderer2, { class: "size-4" });
|
|
1416
|
+
$$renderer2.push(`<!----></button>`);
|
|
1417
|
+
} else {
|
|
1418
|
+
$$renderer2.push("<!--[-1-->");
|
|
1419
|
+
}
|
|
1420
|
+
$$renderer2.push(`<!--]--> `);
|
|
1421
|
+
if (onSwapRail && railOpen) {
|
|
1422
|
+
$$renderer2.push(`<!--[0--><button class="hidden size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground lg:flex"${attr("aria-label", railSide === "left" ? "Move On deck to the right" : "Move On deck to the left")}${attr("title", railSide === "left" ? "Move On deck to the right" : "Move On deck to the left")}>`);
|
|
1423
|
+
Arrow_left_right($$renderer2, { class: "size-4" });
|
|
1424
|
+
$$renderer2.push(`<!----></button>`);
|
|
1425
|
+
} else {
|
|
1426
|
+
$$renderer2.push("<!--[-1-->");
|
|
1427
|
+
}
|
|
1428
|
+
$$renderer2.push(`<!--]--> <button class="relative -mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"${attr("aria-label", railOpen ? "Hide tasks and decisions" : "Show tasks and decisions")}${attr("aria-pressed", railOpen)}>`);
|
|
1429
|
+
if (railSide === "left") {
|
|
1430
|
+
$$renderer2.push("<!--[0-->");
|
|
1431
|
+
Panel_left($$renderer2, { class: "size-4" });
|
|
1432
|
+
} else {
|
|
1433
|
+
$$renderer2.push("<!--[-1-->");
|
|
1434
|
+
Panel_right($$renderer2, { class: "size-4" });
|
|
1435
|
+
}
|
|
1436
|
+
$$renderer2.push(`<!--]--> `);
|
|
1437
|
+
if (waiting && !railOpen) {
|
|
1438
|
+
$$renderer2.push(`<!--[0--><span class="absolute top-1.5 right-1.5 size-2 rounded-full bg-sea"${attr("aria-label", `${stringify(waiting)} waiting on you`)}></span>`);
|
|
1439
|
+
} else {
|
|
1440
|
+
$$renderer2.push("<!--[-1-->");
|
|
1441
|
+
}
|
|
1442
|
+
$$renderer2.push(`<!--]--></button></div></div> <div class="relative min-h-0 flex-1"><div class="no-scrollbar h-full overflow-y-auto"><div class="flex flex-col gap-6 px-4 pt-8 pb-10 sm:px-6 lg:px-10">`);
|
|
1443
|
+
if (firstmateChat.source?.truncated) {
|
|
1444
|
+
$$renderer2.push(`<!--[0--><p class="text-xs text-muted-foreground">Earlier messages are not shown here; the full conversation is in Firstmate’s terminal.</p>`);
|
|
1445
|
+
} else {
|
|
1446
|
+
$$renderer2.push("<!--[-1-->");
|
|
1447
|
+
}
|
|
1448
|
+
$$renderer2.push(`<!--]--> `);
|
|
1449
|
+
if (session() && session().state !== "ours" && session().state !== "external") {
|
|
1450
|
+
$$renderer2.push(`<!--[0--><div class="my-8 flex max-w-md flex-col items-start gap-3"><p class="font-medium">${escape_html(session().state === "starting" ? "Starting Firstmate…" : "Firstmate is not running")}</p> `);
|
|
1451
|
+
if (session().reason && session().state !== "starting") {
|
|
1452
|
+
$$renderer2.push(`<!--[0--><p class="text-sm text-muted-foreground">${escape_html(session().reason)}</p>`);
|
|
1453
|
+
} else {
|
|
1454
|
+
$$renderer2.push("<!--[-1-->");
|
|
1455
|
+
}
|
|
1456
|
+
$$renderer2.push(`<!--]--> `);
|
|
1457
|
+
if (session().state === "none") {
|
|
1458
|
+
$$renderer2.push(`<!--[0--><button class="flex cursor-pointer items-center gap-2 rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background disabled:opacity-50"${attr("disabled", starting, true)}>`);
|
|
1459
|
+
{
|
|
1460
|
+
$$renderer2.push("<!--[-1-->");
|
|
1461
|
+
}
|
|
1462
|
+
$$renderer2.push(`<!--]-->Start Firstmate here</button> <p class="text-xs text-muted-foreground">It runs in Firstmate’s checkout${escape_html(session().skipPermissions ? " with --dangerously-skip-permissions" : "")}, inside a tmux session that keeps going when you close Wheelhouse.</p> `);
|
|
1463
|
+
{
|
|
1464
|
+
$$renderer2.push("<!--[-1-->");
|
|
1465
|
+
}
|
|
1466
|
+
$$renderer2.push(`<!--]-->`);
|
|
1467
|
+
} else {
|
|
1468
|
+
$$renderer2.push("<!--[-1-->");
|
|
1469
|
+
}
|
|
1470
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1471
|
+
} else if (!items().length) {
|
|
1472
|
+
$$renderer2.push(`<!--[1--><p class="py-20 text-sm text-muted-foreground">${escape_html(session() ? "No messages yet. Say hello to Firstmate." : "Reading the conversation…")}</p>`);
|
|
1473
|
+
} else {
|
|
1474
|
+
$$renderer2.push("<!--[-1-->");
|
|
1475
|
+
}
|
|
1476
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1477
|
+
const each_array_2 = ensure_array_like(items());
|
|
1478
|
+
for (let i = 0, $$length = each_array_2.length; i < $$length; i++) {
|
|
1479
|
+
let item = each_array_2[i];
|
|
1480
|
+
const grouped = groupedWithPrevious(i);
|
|
1481
|
+
$$renderer2.push(`<!--[-->`);
|
|
1482
|
+
const each_array_3 = ensure_array_like(placed().before.get(i) ?? []);
|
|
1483
|
+
for (let $$index_2 = 0, $$length2 = each_array_3.length; $$index_2 < $$length2; $$index_2++) {
|
|
1484
|
+
let d = each_array_3[$$index_2];
|
|
1485
|
+
decisionRow($$renderer2, d);
|
|
1486
|
+
}
|
|
1487
|
+
$$renderer2.push(`<!--]--> `);
|
|
1488
|
+
if (discussed().hidden.has(item.id)) {
|
|
1489
|
+
$$renderer2.push("<!--[0-->");
|
|
1490
|
+
} else if (item.kind === "user") {
|
|
1491
|
+
$$renderer2.push("<!--[1-->");
|
|
1492
|
+
const reply = parseReply(item.text);
|
|
1493
|
+
const sent = parseAttachments(reply.body);
|
|
1494
|
+
$$renderer2.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""}`)}${attr("aria-label", `You, ${stringify(time2(item.at))}`)}>`);
|
|
1495
|
+
if (grouped) {
|
|
1496
|
+
$$renderer2.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
1497
|
+
} else {
|
|
1498
|
+
$$renderer2.push(`<!--[-1--><span class="captain-avatar">C</span>`);
|
|
1499
|
+
}
|
|
1500
|
+
$$renderer2.push(`<!--]--> <div class="min-w-0 flex-1">`);
|
|
1501
|
+
if (!grouped) {
|
|
1502
|
+
$$renderer2.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
|
|
1503
|
+
if (item.queued) {
|
|
1504
|
+
$$renderer2.push(`<!--[0--><span>· sent while Firstmate was working</span>`);
|
|
1505
|
+
} else {
|
|
1506
|
+
$$renderer2.push("<!--[-1-->");
|
|
1507
|
+
}
|
|
1508
|
+
$$renderer2.push(`<!--]--></header>`);
|
|
1509
|
+
} else {
|
|
1510
|
+
$$renderer2.push("<!--[-1-->");
|
|
1511
|
+
}
|
|
1512
|
+
$$renderer2.push(`<!--]--> `);
|
|
1513
|
+
if (reply.to || sent.text) {
|
|
1514
|
+
$$renderer2.push(`<!--[0--><div class="bubble-row"><div${attr_class(`bubble bubble-captain ${item.command ? "font-mono text-sm" : ""}`)}${attr("data-bubble", item.id)}>`);
|
|
1515
|
+
if (reply.to) {
|
|
1516
|
+
$$renderer2.push("<!--[0-->");
|
|
1517
|
+
quote($$renderer2, reply.to, original(reply.to, i));
|
|
1518
|
+
} else {
|
|
1519
|
+
$$renderer2.push("<!--[-1-->");
|
|
1520
|
+
}
|
|
1521
|
+
$$renderer2.push(`<!--]-->`);
|
|
1522
|
+
captainText($$renderer2, sent.text, true);
|
|
1523
|
+
$$renderer2.push(`<!----></div> `);
|
|
1524
|
+
if (via() && !item.command) {
|
|
1525
|
+
$$renderer2.push("<!--[0-->");
|
|
1526
|
+
replyButton($$renderer2, item.id, "captain", item.text);
|
|
1527
|
+
} else {
|
|
1528
|
+
$$renderer2.push("<!--[-1-->");
|
|
1529
|
+
}
|
|
1530
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1531
|
+
} else {
|
|
1532
|
+
$$renderer2.push("<!--[-1-->");
|
|
1533
|
+
}
|
|
1534
|
+
$$renderer2.push(`<!--]--> `);
|
|
1535
|
+
if (sent.files.length) {
|
|
1536
|
+
$$renderer2.push("<!--[0-->");
|
|
1537
|
+
SentFiles($$renderer2, { files: sent.files });
|
|
1538
|
+
} else {
|
|
1539
|
+
$$renderer2.push("<!--[-1-->");
|
|
1540
|
+
}
|
|
1541
|
+
$$renderer2.push(`<!--]--></div></article>`);
|
|
1542
|
+
} else if (item.kind === "output") {
|
|
1543
|
+
$$renderer2.push(`<!--[2--><pre class="no-scrollbar max-h-80 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground">${escape_html(item.text)}</pre>`);
|
|
1544
|
+
} else if (item.kind === "notice") {
|
|
1545
|
+
$$renderer2.push(`<!--[3--><div class="flex flex-col items-start"><button class="-ml-3 flex max-w-full cursor-pointer items-center gap-2 rounded-full px-3 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"${attr("aria-expanded", !!openNotice[item.id])}>`);
|
|
1546
|
+
Bell($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1547
|
+
$$renderer2.push(`<!----> <span class="truncate">${escape_html(item.title)} · ${escape_html(time2(item.at))}</span> `);
|
|
1548
|
+
Chevron_right($$renderer2, {
|
|
1549
|
+
class: `size-3.5 shrink-0 transition-transform ${openNotice[item.id] ? "rotate-90" : ""}`,
|
|
1550
|
+
"aria-hidden": "true"
|
|
1551
|
+
});
|
|
1552
|
+
$$renderer2.push(`<!----></button> `);
|
|
1553
|
+
if (openNotice[item.id]) {
|
|
1554
|
+
$$renderer2.push(`<!--[0--><div class="mt-2 w-full max-w-[80ch] rounded-lg border bg-card px-4 py-3 text-sm whitespace-pre-wrap text-muted-foreground">`);
|
|
1555
|
+
LinkedText($$renderer2, { text: item.detail });
|
|
1556
|
+
$$renderer2.push(`<!----></div>`);
|
|
1557
|
+
} else {
|
|
1558
|
+
$$renderer2.push("<!--[-1-->");
|
|
1559
|
+
}
|
|
1560
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1561
|
+
} else {
|
|
1562
|
+
$$renderer2.push(`<!--[-1--><article${attr_class(`msg msg-firstmate ${grouped ? "msg-grouped" : ""}`)}${attr("aria-label", `Firstmate, ${stringify(time2(item.at))}`)}>`);
|
|
1563
|
+
if (grouped) {
|
|
1564
|
+
$$renderer2.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
1565
|
+
} else {
|
|
1566
|
+
$$renderer2.push("<!--[-1-->");
|
|
1567
|
+
Avatar($$renderer2, { class: "size-8" });
|
|
1568
|
+
}
|
|
1569
|
+
$$renderer2.push(`<!--]--> <div class="flex min-w-0 flex-1 flex-col gap-2">`);
|
|
1570
|
+
if (!grouped) {
|
|
1571
|
+
$$renderer2.push(`<!--[0--><header class="msg-head"><span class="msg-name">Firstmate</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time></header>`);
|
|
1572
|
+
} else {
|
|
1573
|
+
$$renderer2.push("<!--[-1-->");
|
|
1574
|
+
}
|
|
1575
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1576
|
+
const each_array_4 = ensure_array_like(item.parts);
|
|
1577
|
+
for (let pi = 0, $$length2 = each_array_4.length; pi < $$length2; pi++) {
|
|
1578
|
+
let part = each_array_4[pi];
|
|
1579
|
+
if (part.kind === "text") {
|
|
1580
|
+
$$renderer2.push(`<!--[0--><div class="bubble-row"><div class="chat-md bubble bubble-firstmate"${attr("data-bubble", part.id)}>${html(markdown(part.text, { docLinks: true }))}</div> `);
|
|
1581
|
+
if (via()) {
|
|
1582
|
+
$$renderer2.push("<!--[0-->");
|
|
1583
|
+
replyButton($$renderer2, part.id, "firstmate", part.text);
|
|
1584
|
+
} else {
|
|
1585
|
+
$$renderer2.push("<!--[-1-->");
|
|
1586
|
+
}
|
|
1587
|
+
$$renderer2.push(`<!--]--></div> <!--[-->`);
|
|
1588
|
+
const each_array_5 = ensure_array_like(matchBridgeCards(part.text, pluginEntries));
|
|
1589
|
+
for (let $$index_3 = 0, $$length3 = each_array_5.length; $$index_3 < $$length3; $$index_3++) {
|
|
1590
|
+
let { entry, card } = each_array_5[$$index_3];
|
|
1591
|
+
$$renderer2.push(`<div class="max-w-[80ch] rounded-xl border bg-card p-4" data-slot="bridge.card"><p class="font-medium">${escape_html(card.title)}</p> <div class="mt-2">`);
|
|
1592
|
+
Blocks($$renderer2, { blocks: card.blocks });
|
|
1593
|
+
$$renderer2.push(`<!----></div></div>`);
|
|
1594
|
+
}
|
|
1595
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1596
|
+
const each_array_6 = ensure_array_like(previews().get(part.id) ?? []);
|
|
1597
|
+
for (let $$index_4 = 0, $$length3 = each_array_6.length; $$index_4 < $$length3; $$index_4++) {
|
|
1598
|
+
let pv = each_array_6[$$index_4];
|
|
1599
|
+
ChatPreview($$renderer2, { preview: pv, project: projectName(pv.task.projectId), now });
|
|
1600
|
+
}
|
|
1601
|
+
$$renderer2.push(`<!--]-->`);
|
|
1602
|
+
} else if (part.kind === "question") {
|
|
1603
|
+
$$renderer2.push("<!--[1-->");
|
|
1604
|
+
QuestionCard($$renderer2, { part });
|
|
1605
|
+
} else {
|
|
1606
|
+
$$renderer2.push("<!--[-1-->");
|
|
1607
|
+
Activity($$renderer2, { steps: part.steps, live: isLive(item, pi) });
|
|
1608
|
+
$$renderer2.push(`<!----> <!--[-->`);
|
|
1609
|
+
const each_array_7 = ensure_array_like(part.steps);
|
|
1610
|
+
for (let $$index_5 = 0, $$length3 = each_array_7.length; $$index_5 < $$length3; $$index_5++) {
|
|
1611
|
+
let step = each_array_7[$$index_5];
|
|
1612
|
+
if (apps[step.id]) {
|
|
1613
|
+
$$renderer2.push("<!--[0-->");
|
|
1614
|
+
ChatApp($$renderer2, { id: step.id, app: apps[step.id] });
|
|
1615
|
+
} else {
|
|
1616
|
+
$$renderer2.push("<!--[-1-->");
|
|
1617
|
+
}
|
|
1618
|
+
$$renderer2.push(`<!--]-->`);
|
|
1619
|
+
}
|
|
1620
|
+
$$renderer2.push(`<!--]-->`);
|
|
1621
|
+
}
|
|
1622
|
+
$$renderer2.push(`<!--]-->`);
|
|
1623
|
+
}
|
|
1624
|
+
$$renderer2.push(`<!--]--> `);
|
|
1625
|
+
if (item.interrupted) {
|
|
1626
|
+
$$renderer2.push(`<!--[0--><span class="text-xs text-muted-foreground">Stopped</span>`);
|
|
1627
|
+
} else if (item.done && item.durationMs) {
|
|
1628
|
+
$$renderer2.push(`<!--[1--><span class="text-xs text-muted-foreground">Worked for ${escape_html(duration(item.durationMs))}</span>`);
|
|
1629
|
+
} else {
|
|
1630
|
+
$$renderer2.push("<!--[-1-->");
|
|
1631
|
+
}
|
|
1632
|
+
$$renderer2.push(`<!--]--></div></article>`);
|
|
1633
|
+
}
|
|
1634
|
+
$$renderer2.push(`<!--]-->`);
|
|
1635
|
+
}
|
|
1636
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1637
|
+
const each_array_8 = ensure_array_like(placed().end);
|
|
1638
|
+
for (let $$index_8 = 0, $$length = each_array_8.length; $$index_8 < $$length; $$index_8++) {
|
|
1639
|
+
let d = each_array_8[$$index_8];
|
|
1640
|
+
decisionRow($$renderer2, d);
|
|
1641
|
+
}
|
|
1642
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1643
|
+
const each_array_9 = ensure_array_like(chatPending());
|
|
1644
|
+
for (let pi = 0, $$length = each_array_9.length; pi < $$length; pi++) {
|
|
1645
|
+
let p = each_array_9[pi];
|
|
1646
|
+
const grouped = pi > 0 || lastItem()?.kind === "user";
|
|
1647
|
+
const reply = parseReply(p.text);
|
|
1648
|
+
const sent = parseAttachments(reply.body);
|
|
1649
|
+
$$renderer2.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""}`)}${attr("data-pending", p.state)}${attr("aria-label", `You, ${stringify(pendingLabel(p))}`)}>`);
|
|
1650
|
+
if (grouped) {
|
|
1651
|
+
$$renderer2.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
1652
|
+
} else {
|
|
1653
|
+
$$renderer2.push(`<!--[-1--><span class="captain-avatar">C</span>`);
|
|
1654
|
+
}
|
|
1655
|
+
$$renderer2.push(`<!--]--> <div class="min-w-0 flex-1">`);
|
|
1656
|
+
if (!grouped) {
|
|
1657
|
+
$$renderer2.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span></header>`);
|
|
1658
|
+
} else {
|
|
1659
|
+
$$renderer2.push("<!--[-1-->");
|
|
1660
|
+
}
|
|
1661
|
+
$$renderer2.push(`<!--]--> `);
|
|
1662
|
+
if (reply.to || sent.text) {
|
|
1663
|
+
$$renderer2.push(`<!--[0--><div${attr_class(`bubble bubble-captain border-dashed ${p.state === "failed" ? "border-danger/60" : "opacity-60"}`)}>`);
|
|
1664
|
+
if (reply.to) {
|
|
1665
|
+
$$renderer2.push("<!--[0-->");
|
|
1666
|
+
quote($$renderer2, reply.to, original(reply.to));
|
|
1667
|
+
} else {
|
|
1668
|
+
$$renderer2.push("<!--[-1-->");
|
|
1669
|
+
}
|
|
1670
|
+
$$renderer2.push(`<!--]-->`);
|
|
1671
|
+
captainText($$renderer2, sent.text, false);
|
|
1672
|
+
$$renderer2.push(`<!----></div>`);
|
|
1673
|
+
} else {
|
|
1674
|
+
$$renderer2.push("<!--[-1-->");
|
|
1675
|
+
}
|
|
1676
|
+
$$renderer2.push(`<!--]--> `);
|
|
1677
|
+
if (sent.files.length) {
|
|
1678
|
+
$$renderer2.push("<!--[0-->");
|
|
1679
|
+
SentFiles($$renderer2, { files: sent.files, pending: true });
|
|
1680
|
+
} else {
|
|
1681
|
+
$$renderer2.push("<!--[-1-->");
|
|
1682
|
+
}
|
|
1683
|
+
$$renderer2.push(`<!--]--> <p${attr_class(`mt-1.5 flex flex-wrap items-center gap-1.5 text-xs ${p.state === "failed" ? "text-danger" : "text-muted-foreground"}`)} role="status">`);
|
|
1684
|
+
if (p.state === "failed") {
|
|
1685
|
+
$$renderer2.push("<!--[0-->");
|
|
1686
|
+
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1687
|
+
$$renderer2.push(`<!---->${escape_html(pendingLabel(p))} <button class="ml-1 inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-muted">`);
|
|
1688
|
+
Rotate_cw($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1689
|
+
$$renderer2.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
|
|
1690
|
+
} else {
|
|
1691
|
+
$$renderer2.push("<!--[-1-->");
|
|
1692
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1693
|
+
$$renderer2.push(`<!---->${escape_html(pendingLabel(p))}`);
|
|
1694
|
+
}
|
|
1695
|
+
$$renderer2.push(`<!--]--></p></div></article>`);
|
|
1696
|
+
}
|
|
1697
|
+
$$renderer2.push(`<!--]--> `);
|
|
1698
|
+
if (picker()) {
|
|
1699
|
+
$$renderer2.push("<!--[0-->");
|
|
1700
|
+
PickerCard($$renderer2, {
|
|
1701
|
+
picker: picker()
|
|
1702
|
+
});
|
|
1703
|
+
} else if (menu()) {
|
|
1704
|
+
$$renderer2.push("<!--[1-->");
|
|
1705
|
+
MenuCard($$renderer2, { menu: menu() });
|
|
1706
|
+
} else if (working()) {
|
|
1707
|
+
$$renderer2.push(`<!--[2--><div class="flex gap-1 py-1" aria-label="Firstmate is working" role="status"><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></div>`);
|
|
1708
|
+
} else {
|
|
1709
|
+
$$renderer2.push("<!--[-1-->");
|
|
1710
|
+
}
|
|
1711
|
+
$$renderer2.push(`<!--]--></div></div> `);
|
|
1712
|
+
{
|
|
1713
|
+
$$renderer2.push("<!--[-1-->");
|
|
1714
|
+
}
|
|
1715
|
+
$$renderer2.push(`<!--]--> `);
|
|
1716
|
+
{
|
|
1717
|
+
$$renderer2.push("<!--[-1-->");
|
|
1718
|
+
}
|
|
1719
|
+
$$renderer2.push(`<!--]--></div> <div class="bg-panel px-4 pb-4 sm:px-6 lg:px-10">`);
|
|
1720
|
+
Composer($$renderer2, {
|
|
1721
|
+
via: via(),
|
|
1722
|
+
reason: session()?.reason ?? null,
|
|
1723
|
+
working: working() && !waitingOnAnswer(),
|
|
1724
|
+
held: held(),
|
|
1725
|
+
commands: firstmateChat.commands,
|
|
1726
|
+
reply: replyTo
|
|
1727
|
+
});
|
|
1728
|
+
$$renderer2.push(`<!----></div></section>`);
|
|
1729
|
+
});
|
|
1730
|
+
}
|
|
1731
|
+
function DecisionStack($$renderer, $$props) {
|
|
1732
|
+
$$renderer.component(($$renderer2) => {
|
|
1733
|
+
let { projects, now, scope = null, limit = 3 } = $$props;
|
|
1734
|
+
const seed = derived(() => page.data.inbox);
|
|
1735
|
+
const view = derived(() => inbox.view(seed()));
|
|
1736
|
+
const waiting = derived(() => inbox.shown(now, seed()).shown.filter((c) => !scope || c.projectId === scope));
|
|
1737
|
+
const stack = derived(() => waiting().slice(0, limit));
|
|
1738
|
+
const projectName = (id) => !id || id === "unassigned" ? null : projects.find((p) => p.id === id)?.name ?? id;
|
|
1739
|
+
if (view()?.available && stack().length) {
|
|
1740
|
+
$$renderer2.push(`<!--[0--><div class="mb-2 flex items-baseline justify-between gap-2"><h2 class="section-label flex-1">Decisions</h2> <a href="/inbox" class="text-xs text-muted-foreground hover:text-foreground">${escape_html(waiting().length > stack().length ? `All ${waiting().length}` : "Open")}</a></div> <ul class="mb-6 flex flex-col gap-2"><!--[-->`);
|
|
1741
|
+
const each_array = ensure_array_like(stack());
|
|
1742
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1743
|
+
let c = each_array[$$index];
|
|
1744
|
+
$$renderer2.push(`<li>`);
|
|
1745
|
+
OpenDecision($$renderer2, {
|
|
1746
|
+
card: c,
|
|
1747
|
+
project: projectName(c.projectId),
|
|
1748
|
+
now,
|
|
1749
|
+
onLater: () => inbox.later(c.id)
|
|
1750
|
+
});
|
|
1751
|
+
$$renderer2.push(`<!----></li>`);
|
|
1752
|
+
}
|
|
1753
|
+
$$renderer2.push(`<!--]--></ul> `);
|
|
1754
|
+
if (waiting().length > stack().length) {
|
|
1755
|
+
$$renderer2.push(`<!--[0--><a href="/inbox" class="-mt-4 mb-6 flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground">${escape_html(waiting().length - stack().length)} more in Decisions `);
|
|
1756
|
+
Arrow_right($$renderer2, { class: "size-3.5" });
|
|
1757
|
+
$$renderer2.push(`<!----></a>`);
|
|
1758
|
+
} else {
|
|
1759
|
+
$$renderer2.push("<!--[-1-->");
|
|
1760
|
+
}
|
|
1761
|
+
$$renderer2.push(`<!--]-->`);
|
|
1762
|
+
} else {
|
|
1763
|
+
$$renderer2.push("<!--[-1-->");
|
|
1764
|
+
}
|
|
1765
|
+
$$renderer2.push(`<!--]-->`);
|
|
1766
|
+
});
|
|
1767
|
+
}
|
|
1768
|
+
function Rail($$renderer, $$props) {
|
|
1769
|
+
$$renderer.component(($$renderer2) => {
|
|
1770
|
+
let {
|
|
1771
|
+
tasks,
|
|
1772
|
+
projects,
|
|
1773
|
+
now,
|
|
1774
|
+
insights = null,
|
|
1775
|
+
scope = null,
|
|
1776
|
+
cards = [],
|
|
1777
|
+
onClose
|
|
1778
|
+
} = $$props;
|
|
1779
|
+
const inScope = (projectId) => !scope || projectId === scope;
|
|
1780
|
+
const decided = derived(() => (insights?.decisions ?? []).filter((d) => inScope(d.projectId)));
|
|
1781
|
+
const midnight = derived(() => new Date(new Date(now).toDateString()).getTime());
|
|
1782
|
+
const decidedToday = derived(() => decided().filter((d) => Date.parse(d.decidedAt) >= midnight()).length);
|
|
1783
|
+
const today = derived(() => sumSplits((insights?.today ?? []).filter((t) => inScope(t.projectId))));
|
|
1784
|
+
const todayTotal = derived(() => total(today()));
|
|
1785
|
+
const todayTasks = derived(() => (insights?.today ?? []).filter((t) => inScope(t.projectId)).length);
|
|
1786
|
+
const share = (k) => todayTotal() ? Math.round(today()[k] / todayTotal() * 100) : 0;
|
|
1787
|
+
const allowance = derived(() => insights?.allowance ?? null);
|
|
1788
|
+
const h = derived(() => harbour(tasks, now));
|
|
1789
|
+
const failedIds = derived(() => new Set(h().stepFailed.map((t) => t.id)));
|
|
1790
|
+
const failed = derived(() => h().stepFailed.filter((t) => !h().needsYou.includes(t)));
|
|
1791
|
+
const underWay = derived(() => [
|
|
1792
|
+
...h().waitingOnFirstmate,
|
|
1793
|
+
...h().waitingOnReviewers,
|
|
1794
|
+
...h().underWay
|
|
1795
|
+
].filter((t) => !failedIds().has(t.id)));
|
|
1796
|
+
let showQueued = false;
|
|
1797
|
+
const STACK = 3;
|
|
1798
|
+
const seed = derived(() => page.data.inbox);
|
|
1799
|
+
const inboxView = derived(() => inbox.view(seed()));
|
|
1800
|
+
const decisions = derived(() => inboxView()?.available ? inbox.shown(now, seed()).shown.filter((c) => inScope(c.projectId)) : []);
|
|
1801
|
+
const holdsOf = (cards2) => new Set(cards2.filter((c) => c.kind === "hold").map((c) => c.taskId));
|
|
1802
|
+
const holds = derived(() => holdsOf(inboxView()?.available ? inboxView().cards : []));
|
|
1803
|
+
const unstacked = derived(() => holdsOf(decisions().slice(STACK)));
|
|
1804
|
+
const needsYou = derived(() => h().needsYou.filter((t) => !(t.attention?.kind === "decision" && holds().has(t.id) && !unstacked().has(t.id))));
|
|
1805
|
+
const heldOpen = derived(() => decisions().slice(0, STACK).filter((c) => c.kind === "hold").length);
|
|
1806
|
+
const tabs = derived(() => [
|
|
1807
|
+
{
|
|
1808
|
+
id: "under",
|
|
1809
|
+
label: "Under way",
|
|
1810
|
+
count: underWay().length,
|
|
1811
|
+
strong: false
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
id: "needs",
|
|
1815
|
+
label: "Needs you",
|
|
1816
|
+
count: failed().length + needsYou().length + heldOpen(),
|
|
1817
|
+
strong: true
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
id: "landed",
|
|
1821
|
+
label: "Landed",
|
|
1822
|
+
count: h().landedRecent.length,
|
|
1823
|
+
strong: false
|
|
1824
|
+
},
|
|
1825
|
+
...cards.map((e) => ({
|
|
1826
|
+
id: e.key,
|
|
1827
|
+
label: e.title,
|
|
1828
|
+
count: e.badge ?? 0,
|
|
1829
|
+
strong: false
|
|
1830
|
+
}))
|
|
1831
|
+
]);
|
|
1832
|
+
let picked = "under";
|
|
1833
|
+
const tab = derived(() => tabs().some((t) => t.id === picked) ? picked : "under");
|
|
1834
|
+
const plugin = derived(() => cards.find((e) => e.key === tab()) ?? null);
|
|
1835
|
+
const projectName = (t) => projects.find((p) => p.id === t.projectId)?.name ?? (t.projectId === "unassigned" ? null : t.projectId);
|
|
1836
|
+
const labels = derived(() => projectLabels(projects, aliases.names));
|
|
1837
|
+
const tagName = (t) => labels().get(t.projectId)?.label ?? projectName(t);
|
|
1838
|
+
const href = (t) => `/tasks/${encodeURIComponent(t.id)}`;
|
|
1839
|
+
const nowText = (t) => t.activity?.text || t.summary || t.statusLabel;
|
|
1840
|
+
const prOf = (t) => t.attention?.url ?? t.pr?.url ?? null;
|
|
1841
|
+
function problem(t) {
|
|
1842
|
+
const step = t.passage.steps[t.passage.current];
|
|
1843
|
+
if (step?.failed) return { label: `${step.label} failed`, icon: Circle_x, tone: "danger" };
|
|
1844
|
+
if (t.status === "failed") return { label: "Failed", icon: Circle_x, tone: "danger" };
|
|
1845
|
+
if (t.status === "blocked") return { label: "Stuck", icon: Octagon_alert, tone: "danger" };
|
|
1846
|
+
if (t.status === "lost" || t.status === "unknown") return { label: "Not responding", icon: Unplug, tone: "warning" };
|
|
1847
|
+
if (t.attention?.owner === "captain") return t.attention.kind === "review" ? {
|
|
1848
|
+
label: t.attention.approved ? "Your merge" : "Your review",
|
|
1849
|
+
icon: Git_pull_request,
|
|
1850
|
+
tone: "sea"
|
|
1851
|
+
} : { label: "Your call", icon: Hand, tone: "sea" };
|
|
1852
|
+
if (t.attention?.owner === "reviewers") return { label: "With reviewers", icon: Users, tone: "muted" };
|
|
1853
|
+
if (t.addressingReview) return {
|
|
1854
|
+
label: runStep(t) ?? "Changes requested",
|
|
1855
|
+
icon: Message_square_text,
|
|
1856
|
+
tone: "muted"
|
|
1857
|
+
};
|
|
1858
|
+
if (t.status === "with-firstmate") return { label: "Firstmate deciding", icon: Anchor, tone: "muted" };
|
|
1859
|
+
return null;
|
|
1860
|
+
}
|
|
1861
|
+
const TONE = {
|
|
1862
|
+
danger: "bg-danger/10 text-danger",
|
|
1863
|
+
warning: "bg-warning/10 text-warning",
|
|
1864
|
+
sea: "bg-sea/10 text-sea",
|
|
1865
|
+
muted: "bg-muted text-muted-foreground"
|
|
1866
|
+
};
|
|
1867
|
+
const EDGE = {
|
|
1868
|
+
danger: "border-l-danger",
|
|
1869
|
+
warning: "border-l-warning",
|
|
1870
|
+
sea: "border-l-sea",
|
|
1871
|
+
muted: "border-l-border"
|
|
1872
|
+
};
|
|
1873
|
+
function card($$renderer3, t, ask) {
|
|
1874
|
+
const p = problem(t);
|
|
1875
|
+
const pr = prOf(t);
|
|
1876
|
+
const Icon2 = p?.icon;
|
|
1877
|
+
$$renderer3.push(`<li${attr_class(`rounded-lg border border-l-[3px] bg-card px-3 pt-2.5 pb-1.5 ${stringify(p ? EDGE[p.tone] : "border-l-border")}`)}><div class="flex flex-wrap items-center gap-1.5">`);
|
|
1878
|
+
if (projectName(t)) {
|
|
1879
|
+
$$renderer3.push(`<!--[0--><span class="rounded-sm border px-1.5 text-[0.95rem] leading-[1.15rem] font-semibold tracking-[0.08em] text-muted-foreground [font-variant-caps:all-small-caps]"${attr("title", projectName(t))}>${escape_html(tagName(t))}</span>`);
|
|
1880
|
+
} else {
|
|
1881
|
+
$$renderer3.push("<!--[-1-->");
|
|
1882
|
+
}
|
|
1883
|
+
$$renderer3.push(`<!--]--> `);
|
|
1884
|
+
if (p && Icon2) {
|
|
1885
|
+
$$renderer3.push(`<!--[0--><span${attr_class(`flex items-center gap-1 rounded px-1.5 text-xs leading-[1.15rem] font-medium ${stringify(TONE[p.tone])}`)}>`);
|
|
1886
|
+
if (Icon2) {
|
|
1887
|
+
$$renderer3.push("<!--[-->");
|
|
1888
|
+
Icon2($$renderer3, { class: "size-3", "aria-hidden": "true" });
|
|
1889
|
+
$$renderer3.push("<!--]-->");
|
|
1890
|
+
} else {
|
|
1891
|
+
$$renderer3.push("<!--[!-->");
|
|
1892
|
+
$$renderer3.push("<!--]-->");
|
|
1893
|
+
}
|
|
1894
|
+
$$renderer3.push(`${escape_html(p.label)}</span>`);
|
|
1895
|
+
} else if (t.busy) {
|
|
1896
|
+
$$renderer3.push(`<!--[1--><span class="flex items-center gap-1.5 text-xs text-muted-foreground"><span class="size-1.5 animate-pulse rounded-full bg-sea" aria-hidden="true"></span>Working</span>`);
|
|
1897
|
+
} else {
|
|
1898
|
+
$$renderer3.push("<!--[-1-->");
|
|
1899
|
+
}
|
|
1900
|
+
$$renderer3.push(`<!--]--></div> <a${attr("href", href(t))} class="mt-1.5 line-clamp-2 block text-sm leading-snug font-medium hover:underline">${escape_html(ask ?? t.shortTitle)}</a> `);
|
|
1901
|
+
if (ask) {
|
|
1902
|
+
$$renderer3.push(`<!--[0--><p class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground">${escape_html(t.shortTitle)}</p>`);
|
|
1903
|
+
} else {
|
|
1904
|
+
$$renderer3.push("<!--[-1-->");
|
|
1905
|
+
}
|
|
1906
|
+
$$renderer3.push(`<!--]--> `);
|
|
1907
|
+
if (showsChecks(t)) {
|
|
1908
|
+
$$renderer3.push(`<!--[0--><div class="mt-1.5">`);
|
|
1909
|
+
ChecksStrip($$renderer3, { pipeline: t.pipeline, busy: t.busy, size: "rail" });
|
|
1910
|
+
$$renderer3.push(`<!----></div>`);
|
|
1911
|
+
} else if (!ask) {
|
|
1912
|
+
$$renderer3.push(`<!--[1--><p class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground">${escape_html(nowText(t))}</p>`);
|
|
1913
|
+
} else {
|
|
1914
|
+
$$renderer3.push("<!--[-1-->");
|
|
1915
|
+
}
|
|
1916
|
+
$$renderer3.push(`<!--]--> `);
|
|
1917
|
+
if (pr) {
|
|
1918
|
+
$$renderer3.push(`<!--[0--><a${attr("href", pr)} target="_blank" rel="noreferrer" class="mt-1 block text-xs break-all text-sea hover:underline">${escape_html(pr)}</a>`);
|
|
1919
|
+
} else {
|
|
1920
|
+
$$renderer3.push("<!--[-1-->");
|
|
1921
|
+
}
|
|
1922
|
+
$$renderer3.push(`<!--]--> `);
|
|
1923
|
+
if (t.passage.steps.length > 1) {
|
|
1924
|
+
$$renderer3.push(`<!--[0--><div class="mt-2.5">`);
|
|
1925
|
+
StageTrack($$renderer3, { task: t });
|
|
1926
|
+
$$renderer3.push(`<!----></div>`);
|
|
1927
|
+
} else {
|
|
1928
|
+
$$renderer3.push("<!--[-1-->");
|
|
1929
|
+
}
|
|
1930
|
+
$$renderer3.push(`<!--]--> `);
|
|
1931
|
+
if (t.eta) {
|
|
1932
|
+
$$renderer3.push(`<!--[0--><div class="mt-2">`);
|
|
1933
|
+
EtaLine($$renderer3, { eta: t.eta });
|
|
1934
|
+
$$renderer3.push(`<!----></div>`);
|
|
1935
|
+
} else {
|
|
1936
|
+
$$renderer3.push("<!--[-1-->");
|
|
1937
|
+
}
|
|
1938
|
+
$$renderer3.push(`<!--]--> <div class="mt-1.5 -mr-1.5 flex justify-end gap-0.5"><a${attr("href", href(t))} class="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground">`);
|
|
1939
|
+
Arrow_up_right($$renderer3, { class: "size-3.5" });
|
|
1940
|
+
$$renderer3.push(`<!---->Open</a> <button class="flex cursor-pointer items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground">`);
|
|
1941
|
+
Message_square($$renderer3, { class: "size-3.5" });
|
|
1942
|
+
$$renderer3.push(`<!---->Chat about this</button></div></li>`);
|
|
1943
|
+
}
|
|
1944
|
+
$$renderer2.push(`<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions"><div class="flex h-11 shrink-0 items-center gap-2 border-b px-4 text-sm"><span class="font-display text-[1.15rem] font-medium">On deck</span> `);
|
|
1945
|
+
if (onClose) {
|
|
1946
|
+
$$renderer2.push(`<!--[0--><button class="-mr-2 ml-auto flex size-9 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Close">`);
|
|
1947
|
+
X($$renderer2, { class: "size-4" });
|
|
1948
|
+
$$renderer2.push(`<!----></button>`);
|
|
1949
|
+
} else {
|
|
1950
|
+
$$renderer2.push("<!--[-1-->");
|
|
1951
|
+
}
|
|
1952
|
+
$$renderer2.push(`<!--]--></div> <div class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-4"><p class="mb-5 text-sm leading-relaxed text-muted-foreground">${escape_html(headline(h()))}</p> `);
|
|
1953
|
+
if (allowance()?.state === "ok" && allowance().windows.length) {
|
|
1954
|
+
$$renderer2.push(`<!--[0--><a href="/headroom" class="mb-6 block rounded-lg border bg-card px-3 py-2.5 hover:border-foreground/20"><span class="flex items-center gap-1.5 text-xs font-medium">`);
|
|
1955
|
+
Gauge($$renderer2, {
|
|
1956
|
+
class: "size-3.5 text-muted-foreground",
|
|
1957
|
+
"aria-hidden": "true"
|
|
1958
|
+
});
|
|
1959
|
+
$$renderer2.push(`<!---->Claude headroom</span> <span class="mt-2 flex flex-col gap-1"><!--[-->`);
|
|
1960
|
+
const each_array = ensure_array_like(allowance().windows.slice(0, 2));
|
|
1961
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1962
|
+
let w = each_array[$$index];
|
|
1963
|
+
AllowanceMeter($$renderer2, { w, now, compact: true });
|
|
1964
|
+
}
|
|
1965
|
+
$$renderer2.push(`<!--]--></span> `);
|
|
1966
|
+
if (insights?.atRisk) {
|
|
1967
|
+
$$renderer2.push(`<!--[0--><span class="mt-1.5 block text-xs text-warning">${escape_html(insights.atRisk.label)} may run out before it resets.</span>`);
|
|
1968
|
+
} else {
|
|
1969
|
+
$$renderer2.push("<!--[-1-->");
|
|
1970
|
+
}
|
|
1971
|
+
$$renderer2.push(`<!--]--></a>`);
|
|
1972
|
+
} else if (allowance()?.state === "connect") {
|
|
1973
|
+
$$renderer2.push(`<!--[1--><a href="/headroom" class="mb-6 flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground">`);
|
|
1974
|
+
Gauge($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1975
|
+
$$renderer2.push(`<!---->Connect your Claude usage to see what is left</a>`);
|
|
1976
|
+
} else {
|
|
1977
|
+
$$renderer2.push("<!--[-1-->");
|
|
1978
|
+
}
|
|
1979
|
+
$$renderer2.push(`<!--]--> <div class="sticky -top-4 z-10 -mx-4 mb-4 no-scrollbar flex justify-between gap-0.5 overflow-x-auto border-b bg-panel px-2.5" role="tablist" aria-label="On deck" tabindex="-1"><!--[-->`);
|
|
1980
|
+
const each_array_1 = ensure_array_like(tabs());
|
|
1981
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
1982
|
+
let t = each_array_1[$$index_1];
|
|
1983
|
+
$$renderer2.push(`<button${attr("id", `rail-tab-${stringify(t.id)}`)} role="tab"${attr("aria-selected", tab() === t.id)} aria-controls="rail-panel"${attr("tabindex", tab() === t.id ? 0 : -1)}${attr_class(`-mb-px flex shrink-0 cursor-pointer items-center gap-1 border-b-2 px-1.5 py-2 text-[0.85rem] whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${tab() === t.id ? "border-brass font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"}`)}>${escape_html(t.label)}`);
|
|
1984
|
+
if (t.count) {
|
|
1985
|
+
$$renderer2.push(`<!--[0--><span${attr_class(`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${t.strong ? "bg-sea text-white dark:text-slate-950" : "bg-muted text-muted-foreground"}`)}>${escape_html(t.count)}</span>`);
|
|
1986
|
+
} else {
|
|
1987
|
+
$$renderer2.push("<!--[-1-->");
|
|
1988
|
+
}
|
|
1989
|
+
$$renderer2.push(`<!--]--></button>`);
|
|
1990
|
+
}
|
|
1991
|
+
$$renderer2.push(`<!--]--></div> <div id="rail-panel" role="tabpanel"${attr("aria-labelledby", `rail-tab-${stringify(tab())}`)}>`);
|
|
1992
|
+
if (tab() === "needs") {
|
|
1993
|
+
$$renderer2.push("<!--[0-->");
|
|
1994
|
+
DecisionStack($$renderer2, { projects, now, scope, limit: STACK });
|
|
1995
|
+
$$renderer2.push(`<!----> `);
|
|
1996
|
+
if (failed().length || needsYou().length) {
|
|
1997
|
+
$$renderer2.push(`<!--[0--><ul class="mb-6 flex flex-col gap-2"><!--[-->`);
|
|
1998
|
+
const each_array_2 = ensure_array_like(failed());
|
|
1999
|
+
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
2000
|
+
let t = each_array_2[$$index_2];
|
|
2001
|
+
card($$renderer2, t, `${t.passage.steps[t.passage.current].label} failed: ${t.shortTitle}`);
|
|
2002
|
+
}
|
|
2003
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
2004
|
+
const each_array_3 = ensure_array_like(needsYou());
|
|
2005
|
+
for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
|
|
2006
|
+
let t = each_array_3[$$index_3];
|
|
2007
|
+
card($$renderer2, t, t.attention?.text || null);
|
|
2008
|
+
}
|
|
2009
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
2010
|
+
} else if (!decisions().length) {
|
|
2011
|
+
$$renderer2.push(`<!--[1--><p class="mb-6 flex items-center gap-2 text-sm text-muted-foreground">`);
|
|
2012
|
+
Check($$renderer2, { class: "size-4 text-success" });
|
|
2013
|
+
$$renderer2.push(`<!---->Nothing needs you right now.</p>`);
|
|
2014
|
+
} else {
|
|
2015
|
+
$$renderer2.push("<!--[-1-->");
|
|
2016
|
+
}
|
|
2017
|
+
$$renderer2.push(`<!--]--> `);
|
|
2018
|
+
if (decided().length) {
|
|
2019
|
+
$$renderer2.push(`<!--[0--><div class="mb-2 flex items-baseline justify-between gap-2"><h2 class="section-label flex-1">Decided for you</h2> <a href="/decisions" class="text-xs text-muted-foreground hover:text-foreground">See all</a></div> `);
|
|
2020
|
+
if (decidedToday()) {
|
|
2021
|
+
$$renderer2.push(`<!--[0--><p class="mb-2 text-xs text-muted-foreground">Firstmate settled ${escape_html(decidedToday())} review ${escape_html(decidedToday() === 1 ? "question" : "questions")} for you today.</p>`);
|
|
2022
|
+
} else {
|
|
2023
|
+
$$renderer2.push("<!--[-1-->");
|
|
2024
|
+
}
|
|
2025
|
+
$$renderer2.push(`<!--]--> <ul class="mb-6 divide-y rounded-lg border bg-card"><!--[-->`);
|
|
2026
|
+
const each_array_4 = ensure_array_like(decided().slice(0, 3));
|
|
2027
|
+
for (let $$index_4 = 0, $$length = each_array_4.length; $$index_4 < $$length; $$index_4++) {
|
|
2028
|
+
let d = each_array_4[$$index_4];
|
|
2029
|
+
$$renderer2.push(`<li><a${attr("href", `/decisions#${stringify(d.id)}`)} class="block px-3 py-2.5 hover:bg-muted/60"><span class="flex items-center gap-2 text-xs">`);
|
|
2030
|
+
Scale($$renderer2, {
|
|
2031
|
+
class: "size-3.5 shrink-0 text-muted-foreground",
|
|
2032
|
+
"aria-hidden": "true"
|
|
2033
|
+
});
|
|
2034
|
+
$$renderer2.push(`<!----> <span class="shrink-0 font-medium whitespace-nowrap">${escape_html(d.verdict)}</span> <span class="min-w-0 truncate text-muted-foreground">· ${escape_html(d.taskTitle)}</span> <span class="ml-auto shrink-0 text-muted-foreground">${escape_html(ago(d.decidedAt, now))}</span></span> <span class="mt-1 line-clamp-2 block text-xs text-muted-foreground">${escape_html(d.question)}</span></a></li>`);
|
|
2035
|
+
}
|
|
2036
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
2037
|
+
} else {
|
|
2038
|
+
$$renderer2.push("<!--[-1-->");
|
|
2039
|
+
}
|
|
2040
|
+
$$renderer2.push(`<!--]-->`);
|
|
2041
|
+
} else if (tab() === "under") {
|
|
2042
|
+
$$renderer2.push("<!--[1-->");
|
|
2043
|
+
if (underWay().length) {
|
|
2044
|
+
$$renderer2.push(`<!--[0--><ul class="mb-6 flex flex-col gap-2"><!--[-->`);
|
|
2045
|
+
const each_array_5 = ensure_array_like(underWay());
|
|
2046
|
+
for (let $$index_5 = 0, $$length = each_array_5.length; $$index_5 < $$length; $$index_5++) {
|
|
2047
|
+
let t = each_array_5[$$index_5];
|
|
2048
|
+
card($$renderer2, t, null);
|
|
2049
|
+
}
|
|
2050
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
2051
|
+
} else {
|
|
2052
|
+
$$renderer2.push(`<!--[-1--><p class="mb-6 text-sm text-muted-foreground">Nothing under way.</p>`);
|
|
2053
|
+
}
|
|
2054
|
+
$$renderer2.push(`<!--]--> `);
|
|
2055
|
+
if (h().queued.length) {
|
|
2056
|
+
$$renderer2.push(`<!--[0--><button class="mb-2 flex w-full cursor-pointer items-center gap-1.5 text-xs font-medium text-muted-foreground hover:text-foreground"${attr("aria-expanded", showQueued)}>Up next · ${escape_html(h().queued.length)} `);
|
|
2057
|
+
Chevron_right($$renderer2, {
|
|
2058
|
+
class: `size-3.5 transition-transform ${""}`
|
|
2059
|
+
});
|
|
2060
|
+
$$renderer2.push(`<!----></button> `);
|
|
2061
|
+
{
|
|
2062
|
+
$$renderer2.push("<!--[-1-->");
|
|
2063
|
+
}
|
|
2064
|
+
$$renderer2.push(`<!--]-->`);
|
|
2065
|
+
} else {
|
|
2066
|
+
$$renderer2.push("<!--[-1-->");
|
|
2067
|
+
}
|
|
2068
|
+
$$renderer2.push(`<!--]-->`);
|
|
2069
|
+
} else if (tab() === "landed") {
|
|
2070
|
+
$$renderer2.push("<!--[2-->");
|
|
2071
|
+
if (h().landedRecent.length) {
|
|
2072
|
+
$$renderer2.push(`<!--[0--><ul class="mb-6 flex flex-col"><!--[-->`);
|
|
2073
|
+
const each_array_7 = ensure_array_like(h().landedRecent);
|
|
2074
|
+
for (let $$index_7 = 0, $$length = each_array_7.length; $$index_7 < $$length; $$index_7++) {
|
|
2075
|
+
let t = each_array_7[$$index_7];
|
|
2076
|
+
$$renderer2.push(`<li><a${attr("href", href(t))} class="flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-muted-foreground hover:bg-muted hover:text-foreground">`);
|
|
2077
|
+
Check($$renderer2, {
|
|
2078
|
+
class: "size-3.5 shrink-0 text-success",
|
|
2079
|
+
"aria-label": "Landed"
|
|
2080
|
+
});
|
|
2081
|
+
$$renderer2.push(`<!---->`);
|
|
2082
|
+
if (projectName(t)) {
|
|
2083
|
+
$$renderer2.push(`<!--[0--><span class="shrink-0 rounded border px-1 font-mono text-xs leading-4"${attr("title", projectName(t))}>${escape_html(tagName(t))}</span>`);
|
|
2084
|
+
} else {
|
|
2085
|
+
$$renderer2.push("<!--[-1-->");
|
|
2086
|
+
}
|
|
2087
|
+
$$renderer2.push(`<!--]--><span class="truncate">${escape_html(t.shortTitle)}</span></a></li>`);
|
|
2088
|
+
}
|
|
2089
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
2090
|
+
} else {
|
|
2091
|
+
$$renderer2.push(`<!--[-1--><p class="mb-6 text-sm text-muted-foreground">Nothing landed in the last day.</p>`);
|
|
2092
|
+
}
|
|
2093
|
+
$$renderer2.push(`<!--]--> `);
|
|
2094
|
+
if (todayTotal() > 0) {
|
|
2095
|
+
$$renderer2.push(`<!--[0--><div class="mb-2 flex items-baseline justify-between gap-2"><h2 class="section-label flex-1">Where time went today</h2> <a href="/time" class="text-xs text-muted-foreground hover:text-foreground">Details</a></div> <a href="/time" class="block rounded-lg border bg-card p-3 hover:border-foreground/20"><span class="block text-sm"><span class="font-medium">${escape_html(duration$1(todayTotal()))}</span> <span class="text-muted-foreground">of crew time on ${escape_html(todayTasks())}
|
|
2096
|
+
${escape_html(todayTasks() === 1 ? "task" : "tasks")}</span></span> <span class="mt-2 block">`);
|
|
2097
|
+
TimeBar($$renderer2, { seconds: today(), label: "Today" });
|
|
2098
|
+
$$renderer2.push(`<!----></span> <span class="mt-2 block text-xs text-muted-foreground">${escape_html(share("build"))}% building · ${escape_html(share("review"))}% automated review · ${escape_html(share("captain"))}% waiting on you</span></a>`);
|
|
2099
|
+
} else {
|
|
2100
|
+
$$renderer2.push("<!--[-1-->");
|
|
2101
|
+
}
|
|
2102
|
+
$$renderer2.push(`<!--]-->`);
|
|
2103
|
+
} else if (plugin()) {
|
|
2104
|
+
$$renderer2.push(`<!--[3--><div data-slot="home.card">`);
|
|
2105
|
+
SlotContent($$renderer2, { entry: plugin(), now });
|
|
2106
|
+
$$renderer2.push(`<!----></div>`);
|
|
2107
|
+
} else {
|
|
2108
|
+
$$renderer2.push("<!--[-1-->");
|
|
2109
|
+
}
|
|
2110
|
+
$$renderer2.push(`<!--]--></div> <a${attr("href", scope ? `/projects/${encodeURIComponent(scope)}` : "/harbour")} class="mt-4 flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground">${escape_html(scope ? "Open the project’s page" : "Open every project in Harbour")} `);
|
|
2111
|
+
Arrow_right($$renderer2, { class: "size-3.5" });
|
|
2112
|
+
$$renderer2.push(`<!----></a></div></aside>`);
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
const RAIL_SIDE_KEY = "wheelhouse-ondeck-side";
|
|
2116
|
+
function parseRailSide(raw) {
|
|
2117
|
+
return raw === "right" ? "right" : "left";
|
|
2118
|
+
}
|
|
2119
|
+
class HomeLayout {
|
|
2120
|
+
side = "left";
|
|
2121
|
+
load() {
|
|
2122
|
+
try {
|
|
2123
|
+
this.side = parseRailSide(localStorage.getItem(RAIL_SIDE_KEY));
|
|
2124
|
+
} catch {
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
swap() {
|
|
2128
|
+
this.side = this.side === "left" ? "right" : "left";
|
|
2129
|
+
try {
|
|
2130
|
+
localStorage.setItem(RAIL_SIDE_KEY, this.side);
|
|
2131
|
+
} catch {
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
const homeLayout = new HomeLayout();
|
|
2136
|
+
const REFRESH_MS = 6e4;
|
|
2137
|
+
class Insights {
|
|
2138
|
+
value = null;
|
|
2139
|
+
seed(v) {
|
|
2140
|
+
if (v) this.value = v;
|
|
2141
|
+
}
|
|
2142
|
+
connect() {
|
|
2143
|
+
let stopped = false;
|
|
2144
|
+
const read = async () => {
|
|
2145
|
+
try {
|
|
2146
|
+
const r = await fetch("/api/insights");
|
|
2147
|
+
if (r.ok && !stopped) this.value = await r.json();
|
|
2148
|
+
} catch {
|
|
2149
|
+
}
|
|
2150
|
+
};
|
|
2151
|
+
const timer = setInterval(read, REFRESH_MS);
|
|
2152
|
+
return () => {
|
|
2153
|
+
stopped = true;
|
|
2154
|
+
clearInterval(timer);
|
|
2155
|
+
};
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
const railInsights = new Insights();
|
|
2159
|
+
function _page($$renderer, $$props) {
|
|
2160
|
+
$$renderer.component(($$renderer2) => {
|
|
2161
|
+
let { data } = $$props;
|
|
2162
|
+
const fleet = derived(currentFleet);
|
|
2163
|
+
const scope = derived(() => page.url.searchParams.get("project"));
|
|
2164
|
+
const tasks = derived(() => (fleet()?.tasks ?? []).filter((t) => !scope() || t.projectId === scope()));
|
|
2165
|
+
const h = derived(() => harbour(tasks(), live.now));
|
|
2166
|
+
const health = derived(() => shipHealth(h()));
|
|
2167
|
+
const waiting = derived(() => h().needsYou.length + h().stepFailed.length);
|
|
2168
|
+
const pluginEntries = derived(() => slots.entries(slotKey.fleet, data.slots, data.slotsAt));
|
|
2169
|
+
const cards = derived(() => pluginEntries().filter((e) => e.slot === "home.card"));
|
|
2170
|
+
const insights = derived(() => railInsights.value ?? data.insights);
|
|
2171
|
+
let railOpen = true;
|
|
2172
|
+
head("1uha8ag", $$renderer2, ($$renderer3) => {
|
|
2173
|
+
$$renderer3.title(($$renderer4) => {
|
|
2174
|
+
$$renderer4.push(`<title>Firstmate · Wheelhouse</title>`);
|
|
2175
|
+
});
|
|
2176
|
+
});
|
|
2177
|
+
$$renderer2.push(`<main${attr_class(`flex min-h-0 flex-1 ${homeLayout.side === "left" ? "flex-row-reverse" : ""}`)}>`);
|
|
2178
|
+
Chat($$renderer2, {
|
|
2179
|
+
token: data.sessionToken,
|
|
2180
|
+
railOpen,
|
|
2181
|
+
waiting: waiting(),
|
|
2182
|
+
health: health(),
|
|
2183
|
+
now: live.now,
|
|
2184
|
+
pluginEntries: pluginEntries(),
|
|
2185
|
+
tasks: fleet()?.tasks ?? [],
|
|
2186
|
+
projects: fleet()?.projects ?? [],
|
|
2187
|
+
railSide: homeLayout.side,
|
|
2188
|
+
onSwapRail: () => homeLayout.swap()
|
|
2189
|
+
});
|
|
2190
|
+
$$renderer2.push(`<!----> `);
|
|
2191
|
+
{
|
|
2192
|
+
$$renderer2.push("<!--[0-->");
|
|
2193
|
+
ResizableRail($$renderer2, {
|
|
2194
|
+
storageKey: "wheelhouse-rail-width",
|
|
2195
|
+
label: "Resize the rail",
|
|
2196
|
+
defaultWidth: 460,
|
|
2197
|
+
side: homeLayout.side,
|
|
2198
|
+
class: "bg-panel",
|
|
2199
|
+
children: ($$renderer3) => {
|
|
2200
|
+
Rail($$renderer3, {
|
|
2201
|
+
tasks: tasks(),
|
|
2202
|
+
projects: fleet()?.projects ?? [],
|
|
2203
|
+
now: live.now,
|
|
2204
|
+
insights: insights(),
|
|
2205
|
+
scope: scope(),
|
|
2206
|
+
cards: cards()
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
$$renderer2.push(`<!--]--></main> `);
|
|
2212
|
+
{
|
|
2213
|
+
$$renderer2.push("<!--[-1-->");
|
|
2214
|
+
}
|
|
2215
|
+
$$renderer2.push(`<!--]-->`);
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
export { _page as default };
|
|
2220
|
+
//# sourceMappingURL=_page.svelte.js-DMDSI7Tw.js.map
|