@chrisjowen/wheelhouse 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -12
- package/build/client/_app/immutable/assets/0.CnotMMJE.css +1 -0
- package/build/client/_app/immutable/assets/0.CnotMMJE.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CnotMMJE.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.9iA_78o1.css +1 -0
- package/build/client/_app/immutable/assets/2.9iA_78o1.css.br +0 -0
- package/build/client/_app/immutable/assets/2.9iA_78o1.css.gz +0 -0
- package/build/client/_app/immutable/assets/DocSheet.36VhUGpN.css +1 -0
- package/build/client/_app/immutable/assets/DocSheet.36VhUGpN.css.br +0 -0
- package/build/client/_app/immutable/assets/DocSheet.36VhUGpN.css.gz +0 -0
- package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css +1 -0
- package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css.br +0 -0
- package/build/client/_app/immutable/assets/Terminal.B4BtIq8f.css.gz +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-cyrillic-ext-opsz-italic.Bl6DJqma.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-cyrillic-ext-opsz-normal.DIwfbPUE.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-cyrillic-opsz-italic.Dibx14aP.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-cyrillic-opsz-normal.C0olyEE-.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-greek-opsz-italic.CMW9dfKg.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-greek-opsz-normal.DrHU7SY7.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-latin-ext-opsz-italic.BhUEwDRF.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-latin-ext-opsz-normal.HoL-AExg.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-latin-opsz-italic.BOLXpvkj.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-latin-opsz-normal.BpEBLj1O.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-vietnamese-opsz-italic.Hh3oeMt5.woff2 +0 -0
- package/build/client/_app/immutable/assets/source-serif-4-vietnamese-opsz-normal.DX68cEVD.woff2 +0 -0
- package/build/client/_app/immutable/chunks/6KGJY2fN.js +1 -0
- package/build/client/_app/immutable/chunks/6KGJY2fN.js.br +0 -0
- package/build/client/_app/immutable/chunks/6KGJY2fN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/77EackVl.js +1 -0
- package/build/client/_app/immutable/chunks/77EackVl.js.br +0 -0
- package/build/client/_app/immutable/chunks/77EackVl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/81z20Z2j.js +1 -0
- package/build/client/_app/immutable/chunks/81z20Z2j.js.br +0 -0
- package/build/client/_app/immutable/chunks/81z20Z2j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8S76_oNO.js +1 -0
- package/build/client/_app/immutable/chunks/8S76_oNO.js.br +0 -0
- package/build/client/_app/immutable/chunks/8S76_oNO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B03u1hTl.js +1 -0
- package/build/client/_app/immutable/chunks/B03u1hTl.js.br +0 -0
- package/build/client/_app/immutable/chunks/B03u1hTl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1jHxhG9.js +1 -0
- package/build/client/_app/immutable/chunks/B1jHxhG9.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1jHxhG9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2LF3HQi.js +1 -0
- package/build/client/_app/immutable/chunks/B2LF3HQi.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2LF3HQi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BA9P8WCL.js +1 -0
- package/build/client/_app/immutable/chunks/BA9P8WCL.js.br +2 -0
- package/build/client/_app/immutable/chunks/BA9P8WCL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BE9KMngo.js +1 -0
- package/build/client/_app/immutable/chunks/BE9KMngo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BE9KMngo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEnnwCJ1.js +1 -0
- package/build/client/_app/immutable/chunks/BEnnwCJ1.js.br +2 -0
- package/build/client/_app/immutable/chunks/BEnnwCJ1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOaUgn_g.js +1 -0
- package/build/client/_app/immutable/chunks/BOaUgn_g.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOaUgn_g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQff8TZK.js +1 -0
- package/build/client/_app/immutable/chunks/BQff8TZK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQff8TZK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BSz_K-Yf.js +1 -0
- package/build/client/_app/immutable/chunks/BSz_K-Yf.js.br +3 -0
- package/build/client/_app/immutable/chunks/BSz_K-Yf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BW9ETppa.js +12 -0
- package/build/client/_app/immutable/chunks/BW9ETppa.js.br +0 -0
- package/build/client/_app/immutable/chunks/BW9ETppa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BWU6jjG7.js +1 -0
- package/build/client/_app/immutable/chunks/BWU6jjG7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWU6jjG7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXN538J3.js +1 -0
- package/build/client/_app/immutable/chunks/BXN538J3.js.br +2 -0
- package/build/client/_app/immutable/chunks/BXN538J3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BY5XjwMm.js +1 -0
- 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/BY6-BqNq.js +4 -0
- package/build/client/_app/immutable/chunks/BY6-BqNq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BY6-BqNq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_0uUD7w.js +1 -0
- package/build/client/_app/immutable/chunks/B_0uUD7w.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_0uUD7w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcbSpnWm.js +1 -0
- package/build/client/_app/immutable/chunks/BcbSpnWm.js.br +4 -0
- package/build/client/_app/immutable/chunks/BcbSpnWm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bf3vwO3j.js +5 -0
- package/build/client/_app/immutable/chunks/Bf3vwO3j.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bf3vwO3j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjGE9KUs.js +1 -0
- package/build/client/_app/immutable/chunks/BjGE9KUs.js.br +2 -0
- package/build/client/_app/immutable/chunks/BjGE9KUs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bk4GHXy3.js +3 -0
- package/build/client/_app/immutable/chunks/Bk4GHXy3.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk4GHXy3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnTDmUXb.js +1 -0
- package/build/client/_app/immutable/chunks/BnTDmUXb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnTDmUXb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnWmCwuC.js +1 -0
- package/build/client/_app/immutable/chunks/BnWmCwuC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnWmCwuC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqW70ENa.js +1 -0
- package/build/client/_app/immutable/chunks/BqW70ENa.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqW70ENa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bx_jT140.js +1 -0
- package/build/client/_app/immutable/chunks/Bx_jT140.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bx_jT140.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BxcFe1oU.js +1 -0
- package/build/client/_app/immutable/chunks/BxcFe1oU.js.br +0 -0
- package/build/client/_app/immutable/chunks/BxcFe1oU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bxsz_qq0.js +1 -0
- package/build/client/_app/immutable/chunks/Bxsz_qq0.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bxsz_qq0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BzaeIa_Z.js +3 -0
- package/build/client/_app/immutable/chunks/BzaeIa_Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/BzaeIa_Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0GP2-8b.js +1 -0
- package/build/client/_app/immutable/chunks/C0GP2-8b.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0GP2-8b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3tZQRMf.js +1 -0
- package/build/client/_app/immutable/chunks/C3tZQRMf.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3tZQRMf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6r96Eyi.js +1 -0
- package/build/client/_app/immutable/chunks/C6r96Eyi.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6r96Eyi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6z27OE7.js +2 -0
- package/build/client/_app/immutable/chunks/C6z27OE7.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6z27OE7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C78ZDsKk.js +1 -0
- package/build/client/_app/immutable/chunks/C78ZDsKk.js.br +0 -0
- package/build/client/_app/immutable/chunks/C78ZDsKk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7Fs1mBL.js +62 -0
- package/build/client/_app/immutable/chunks/C7Fs1mBL.js.br +0 -0
- package/build/client/_app/immutable/chunks/C7Fs1mBL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCnl98J7.js +1 -0
- package/build/client/_app/immutable/chunks/CCnl98J7.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCnl98J7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMfBOxXQ.js +1 -0
- package/build/client/_app/immutable/chunks/CMfBOxXQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMfBOxXQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COL_5ZfB.js +1 -0
- package/build/client/_app/immutable/chunks/COL_5ZfB.js.br +0 -0
- package/build/client/_app/immutable/chunks/COL_5ZfB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTEB9D1A.js +1 -0
- package/build/client/_app/immutable/chunks/CTEB9D1A.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTEB9D1A.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CVgy9834.js +1 -0
- package/build/client/_app/immutable/chunks/CVgy9834.js.br +0 -0
- package/build/client/_app/immutable/chunks/CVgy9834.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CVml0jfr.js +1 -0
- package/build/client/_app/immutable/chunks/CVml0jfr.js.br +0 -0
- package/build/client/_app/immutable/chunks/CVml0jfr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYYi7yCr.js +6 -0
- package/build/client/_app/immutable/chunks/CYYi7yCr.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYYi7yCr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C_4BzEag.js +1 -0
- package/build/client/_app/immutable/chunks/C_4BzEag.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_4BzEag.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CaZX0vxy.js +1 -0
- package/build/client/_app/immutable/chunks/CaZX0vxy.js.br +0 -0
- package/build/client/_app/immutable/chunks/CaZX0vxy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cf2gKex7.js +1 -0
- package/build/client/_app/immutable/chunks/Cf2gKex7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cf2gKex7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfqBTqtn.js +2 -0
- package/build/client/_app/immutable/chunks/CfqBTqtn.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfqBTqtn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CiUQOetT.js +1 -0
- package/build/client/_app/immutable/chunks/CiUQOetT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CiUQOetT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CiatXE7j.js +1 -0
- package/build/client/_app/immutable/chunks/CiatXE7j.js.br +0 -0
- package/build/client/_app/immutable/chunks/CiatXE7j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ck9EoeAb.js +6 -0
- package/build/client/_app/immutable/chunks/Ck9EoeAb.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ck9EoeAb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClrkSzQd.js +2 -0
- package/build/client/_app/immutable/chunks/ClrkSzQd.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClrkSzQd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClsjySa8.js +1 -0
- package/build/client/_app/immutable/chunks/ClsjySa8.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClsjySa8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cnq9BOc7.js +1 -0
- package/build/client/_app/immutable/chunks/Cnq9BOc7.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cnq9BOc7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cp8hcA3u.js +1 -0
- package/build/client/_app/immutable/chunks/Cp8hcA3u.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cp8hcA3u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CqoCr8Ql.js +1 -0
- package/build/client/_app/immutable/chunks/CqoCr8Ql.js.br +0 -0
- package/build/client/_app/immutable/chunks/CqoCr8Ql.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CseexmPn.js +1 -0
- package/build/client/_app/immutable/chunks/CseexmPn.js.br +0 -0
- package/build/client/_app/immutable/chunks/CseexmPn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CuwOw1LW.js +1 -0
- package/build/client/_app/immutable/chunks/CuwOw1LW.js.br +1 -0
- package/build/client/_app/immutable/chunks/CuwOw1LW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CyY9v8jo.js +1 -0
- package/build/client/_app/immutable/chunks/CyY9v8jo.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyY9v8jo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1FBTLG3.js +1 -0
- package/build/client/_app/immutable/chunks/D1FBTLG3.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1FBTLG3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2znDGM9.js +1 -0
- package/build/client/_app/immutable/chunks/D2znDGM9.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2znDGM9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBe0ItsO.js +1 -0
- package/build/client/_app/immutable/chunks/DBe0ItsO.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBe0ItsO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DEvUyhmD.js +1 -0
- package/build/client/_app/immutable/chunks/DEvUyhmD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEvUyhmD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGzCSaT5.js +1 -0
- package/build/client/_app/immutable/chunks/DGzCSaT5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGzCSaT5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJNADPa5.js +1 -0
- package/build/client/_app/immutable/chunks/DJNADPa5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJNADPa5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKMbfGV2.js +1 -0
- package/build/client/_app/immutable/chunks/DKMbfGV2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKMbfGV2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKQe4Tss.js +1 -0
- package/build/client/_app/immutable/chunks/DKQe4Tss.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKQe4Tss.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMaFToWa.js +1 -0
- package/build/client/_app/immutable/chunks/DMaFToWa.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMaFToWa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOcnk_Iz.js +1 -0
- package/build/client/_app/immutable/chunks/DOcnk_Iz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOcnk_Iz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPG9zo5w.js +1 -0
- package/build/client/_app/immutable/chunks/DPG9zo5w.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPG9zo5w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DaInEhsf.js +1 -0
- package/build/client/_app/immutable/chunks/DaInEhsf.js.br +0 -0
- package/build/client/_app/immutable/chunks/DaInEhsf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DauXN12s.js +1 -0
- package/build/client/_app/immutable/chunks/DauXN12s.js.br +0 -0
- package/build/client/_app/immutable/chunks/DauXN12s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DcMObMK7.js +1 -0
- package/build/client/_app/immutable/chunks/DcMObMK7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DcMObMK7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhAjT9_1.js +5 -0
- package/build/client/_app/immutable/chunks/DhAjT9_1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhAjT9_1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlNTjUcK.js +1 -0
- package/build/client/_app/immutable/chunks/DlNTjUcK.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlNTjUcK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmZFADh0.js +1 -0
- package/build/client/_app/immutable/chunks/DmZFADh0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmZFADh0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmyvifTK.js +1 -0
- package/build/client/_app/immutable/chunks/DmyvifTK.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmyvifTK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DoRw4E3Y.js +2 -0
- package/build/client/_app/immutable/chunks/DoRw4E3Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DoRw4E3Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DqTdajKC.js +1 -0
- package/build/client/_app/immutable/chunks/DqTdajKC.js.br +0 -0
- package/build/client/_app/immutable/chunks/DqTdajKC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dr5WHZNT.js +1 -0
- package/build/client/_app/immutable/chunks/Dr5WHZNT.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dr5WHZNT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dt3N8Hez.js +3 -0
- package/build/client/_app/immutable/chunks/Dt3N8Hez.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dt3N8Hez.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DtD2Y_Dr.js +1 -0
- package/build/client/_app/immutable/chunks/DtD2Y_Dr.js.br +0 -0
- package/build/client/_app/immutable/chunks/DtD2Y_Dr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DyU4yPaU.js +6 -0
- package/build/client/_app/immutable/chunks/DyU4yPaU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DyU4yPaU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/F5SKhJ33.js +1 -0
- package/build/client/_app/immutable/chunks/F5SKhJ33.js.br +0 -0
- package/build/client/_app/immutable/chunks/F5SKhJ33.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FJoUa_PR.js +2 -0
- package/build/client/_app/immutable/chunks/FJoUa_PR.js.br +0 -0
- package/build/client/_app/immutable/chunks/FJoUa_PR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HE_L8BZy.js +1 -0
- package/build/client/_app/immutable/chunks/HE_L8BZy.js.br +0 -0
- package/build/client/_app/immutable/chunks/HE_L8BZy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Jyk2s3ap.js +1 -0
- package/build/client/_app/immutable/chunks/Jyk2s3ap.js.br +0 -0
- package/build/client/_app/immutable/chunks/Jyk2s3ap.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Pq0PSdOV.js +1 -0
- package/build/client/_app/immutable/chunks/Pq0PSdOV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Pq0PSdOV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Qkk13bNR.js +1 -0
- package/build/client/_app/immutable/chunks/Qkk13bNR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Qkk13bNR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WPBAVIF-.js +1 -0
- package/build/client/_app/immutable/chunks/WPBAVIF-.js.br +0 -0
- package/build/client/_app/immutable/chunks/WPBAVIF-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZpfR4O1W.js +1 -0
- package/build/client/_app/immutable/chunks/ZpfR4O1W.js.br +3 -0
- package/build/client/_app/immutable/chunks/ZpfR4O1W.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bz-rffqD.js +1 -0
- package/build/client/_app/immutable/chunks/bz-rffqD.js.br +0 -0
- package/build/client/_app/immutable/chunks/bz-rffqD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cAfuCUf-.js +1 -0
- package/build/client/_app/immutable/chunks/cAfuCUf-.js.br +0 -0
- package/build/client/_app/immutable/chunks/cAfuCUf-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cn3db0Eu.js +1 -0
- package/build/client/_app/immutable/chunks/cn3db0Eu.js.br +0 -0
- package/build/client/_app/immutable/chunks/cn3db0Eu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dPcYB-8F.js +1 -0
- package/build/client/_app/immutable/chunks/dPcYB-8F.js.br +0 -0
- package/build/client/_app/immutable/chunks/dPcYB-8F.js.gz +0 -0
- package/build/client/_app/immutable/chunks/g935d0hS.js +1 -0
- package/build/client/_app/immutable/chunks/g935d0hS.js.br +0 -0
- package/build/client/_app/immutable/chunks/g935d0hS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hABrpXhm.js +1 -0
- package/build/client/_app/immutable/chunks/hABrpXhm.js.br +0 -0
- package/build/client/_app/immutable/chunks/hABrpXhm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hG2NMSLy.js +1 -0
- package/build/client/_app/immutable/chunks/hG2NMSLy.js.br +0 -0
- package/build/client/_app/immutable/chunks/hG2NMSLy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hxhxtxcx.js +1 -0
- package/build/client/_app/immutable/chunks/hxhxtxcx.js.br +0 -0
- package/build/client/_app/immutable/chunks/hxhxtxcx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/k9B4BpVo.js +1 -0
- package/build/client/_app/immutable/chunks/k9B4BpVo.js.br +0 -0
- package/build/client/_app/immutable/chunks/k9B4BpVo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/mldb2ZSY.js +1 -0
- package/build/client/_app/immutable/chunks/mldb2ZSY.js.br +0 -0
- package/build/client/_app/immutable/chunks/mldb2ZSY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pK-hw0Fs.js +1 -0
- package/build/client/_app/immutable/chunks/pK-hw0Fs.js.br +0 -0
- package/build/client/_app/immutable/chunks/pK-hw0Fs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qL90aEhP.js +1 -0
- package/build/client/_app/immutable/chunks/qL90aEhP.js.br +0 -0
- package/build/client/_app/immutable/chunks/qL90aEhP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sJOYqL84.js +1 -0
- package/build/client/_app/immutable/chunks/sJOYqL84.js.br +0 -0
- package/build/client/_app/immutable/chunks/sJOYqL84.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xjN9NojQ.js +1 -0
- package/build/client/_app/immutable/chunks/xjN9NojQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/xjN9NojQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xtM1htB2.js +1 -0
- package/build/client/_app/immutable/chunks/xtM1htB2.js.br +0 -0
- package/build/client/_app/immutable/chunks/xtM1htB2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yErhTWsV.js +1 -0
- package/build/client/_app/immutable/chunks/yErhTWsV.js.br +0 -0
- package/build/client/_app/immutable/chunks/yErhTWsV.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CNYsYhC4.js +2 -0
- package/build/client/_app/immutable/entry/app.CNYsYhC4.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CNYsYhC4.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.mK_UHwMN.js +1 -0
- package/build/client/_app/immutable/entry/start.mK_UHwMN.js.br +0 -0
- package/build/client/_app/immutable/entry/start.mK_UHwMN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DtN4YFje.js +10 -0
- package/build/client/_app/immutable/nodes/0.DtN4YFje.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DtN4YFje.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.ClvVCr4L.js +1 -0
- package/build/client/_app/immutable/nodes/1.ClvVCr4L.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.ClvVCr4L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.OqWsY9Nc.js +1 -0
- package/build/client/_app/immutable/nodes/11.OqWsY9Nc.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.OqWsY9Nc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.DfgqDS8l.js +3 -0
- package/build/client/_app/immutable/nodes/12.DfgqDS8l.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DfgqDS8l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.1duazv8t.js +1 -0
- package/build/client/_app/immutable/nodes/13.1duazv8t.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.1duazv8t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BfIerr4V.js +14 -0
- package/build/client/_app/immutable/nodes/14.BfIerr4V.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BfIerr4V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DmLlt-C-.js +150 -0
- package/build/client/_app/immutable/nodes/15.DmLlt-C-.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DmLlt-C-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.CzFG4aOU.js +3 -0
- package/build/client/_app/immutable/nodes/16.CzFG4aOU.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CzFG4aOU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BaPPg4SL.js +4 -0
- package/build/client/_app/immutable/nodes/17.BaPPg4SL.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BaPPg4SL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.C2oiQ46N.js +2 -0
- package/build/client/_app/immutable/nodes/19.C2oiQ46N.js.br +2 -0
- package/build/client/_app/immutable/nodes/19.C2oiQ46N.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Dq_B0Tbj.js +25 -0
- package/build/client/_app/immutable/nodes/2.Dq_B0Tbj.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Dq_B0Tbj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.CPMVfHf7.js +11 -0
- package/build/client/_app/immutable/nodes/20.CPMVfHf7.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CPMVfHf7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.9YuqSrL7.js +6 -0
- package/build/client/_app/immutable/nodes/21.9YuqSrL7.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.9YuqSrL7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.BO24qytx.js +2 -0
- package/build/client/_app/immutable/nodes/22.BO24qytx.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.BO24qytx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.BZVPu-10.js +4 -0
- package/build/client/_app/immutable/nodes/23.BZVPu-10.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BZVPu-10.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.6GcEKUlO.js +7 -0
- package/build/client/_app/immutable/nodes/24.6GcEKUlO.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.6GcEKUlO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.w0lArDUN.js +12 -0
- package/build/client/_app/immutable/nodes/25.w0lArDUN.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.w0lArDUN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Hf_eo1VF.js +4 -0
- package/build/client/_app/immutable/nodes/26.Hf_eo1VF.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Hf_eo1VF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.BtdPxpe8.js +1 -0
- package/build/client/_app/immutable/nodes/27.BtdPxpe8.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.BtdPxpe8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.CKKhSvp0.js +6 -0
- package/build/client/_app/immutable/nodes/28.CKKhSvp0.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.CKKhSvp0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BtWx-zmQ.js +5 -0
- package/build/client/_app/immutable/nodes/3.BtWx-zmQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BtWx-zmQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BIwEKk5d.js +1 -0
- package/build/client/_app/immutable/nodes/4.BIwEKk5d.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BIwEKk5d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DN5gHj4T.js +1 -0
- package/build/client/_app/immutable/nodes/5.DN5gHj4T.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DN5gHj4T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.B2TumWTu.js +2 -0
- package/build/client/_app/immutable/nodes/6.B2TumWTu.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B2TumWTu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.7HwkhZCu.js +7 -0
- package/build/client/_app/immutable/nodes/7.7HwkhZCu.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.7HwkhZCu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BdDQA39V.js +5 -0
- package/build/client/_app/immutable/nodes/8.BdDQA39V.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BdDQA39V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BFDI6Dge.js +1 -0
- package/build/client/_app/immutable/nodes/9.BFDI6Dge.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BFDI6Dge.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/client/apple-touch-icon.png +0 -0
- package/build/client/icon-192.png +0 -0
- package/build/client/icon-512.png +0 -0
- package/build/client/manifest.webmanifest +15 -0
- package/build/handler.js +6 -6
- package/build/index.js +6 -6
- package/build/server/chunks/chunks/DecisionCard.js-BGiCJsY8.js +1650 -0
- package/build/server/chunks/chunks/DocSheet.js-Bt5HhZU1.js +56 -0
- package/build/server/chunks/chunks/EtaLine.js-B29ZmIHz.js +98 -0
- package/build/server/chunks/chunks/EveryProjectSwitch.js-Y9V_kZu-.js +160 -0
- package/build/server/chunks/chunks/Icon.js-DZKsF3Gu.js +129 -0
- package/build/server/chunks/chunks/InsightsNav.js-BuykbHO_.js +18 -0
- package/build/server/chunks/chunks/InstallFromGitHub.js-D4tZgz1R.js +691 -0
- package/build/server/chunks/chunks/InstallPlugin.js-Bb559YFl.js +18 -0
- package/build/server/chunks/chunks/Lightbox.js-Bx6pV-NL.js +34 -0
- package/build/server/chunks/chunks/LinkedText.js-Bto6J20h.js +24 -0
- package/build/server/chunks/chunks/MateHealthPill.js-DMM619gj.js +22 -0
- package/build/server/chunks/chunks/MicButton.svelte_svelte_type_style_lang.js-BPXrY8rN.js +168 -0
- package/build/server/chunks/chunks/OpenDecision.js-DXWQXckD.js +47 -0
- package/build/server/chunks/chunks/PluginElement.js-B4PKHT2H.js +25 -0
- package/build/server/chunks/chunks/ProjectBanner.js-DGz8m8Rb.js +111 -0
- package/build/server/chunks/chunks/ProjectStateMark.js-ruGL_Mma.js +41 -0
- package/build/server/chunks/chunks/QuestionList.js-CODH1M5Z.js +214 -0
- package/build/server/chunks/chunks/RemotesPanel.js-0dTa0R21.js +235 -0
- package/build/server/chunks/chunks/ResizableRail.js-CsL4ZlsF.js +23 -0
- package/build/server/chunks/chunks/SettingsNav.js-DMJGoXeO.js +25 -0
- package/build/server/chunks/chunks/Sheet.js-13o9LKQh.js +3854 -0
- package/build/server/chunks/chunks/SlotContent.js-CyN_Ifyi.js +687 -0
- package/build/server/chunks/chunks/Switch.js-5SL7Wwa1.js +66 -0
- package/build/server/chunks/chunks/TimeBar.js-Dduf0kTb.js +32 -0
- package/build/server/chunks/chunks/TimeLegend.js-L8tTH6Ey.js +29 -0
- package/build/server/chunks/chunks/WhereBadge.js-DocJaNZe.js +88 -0
- package/build/server/chunks/chunks/addresses.js-DmMJzvLK.js +52 -0
- package/build/server/chunks/chunks/aliases.svelte.js-C2TIS6Rl.js +138 -0
- package/build/server/chunks/chunks/arrow-down.js-aY_1v1NB.js +18 -0
- package/build/server/chunks/chunks/arrow-left.js-B6z6NudH.js +18 -0
- package/build/server/chunks/chunks/arrow-right.js-vz3YukWJ.js +18 -0
- package/build/server/chunks/chunks/arrow-up-right.js-B5ORjULl.js +18 -0
- package/build/server/chunks/chunks/arrow-up.js-D8v3fwUB.js +18 -0
- package/build/server/chunks/chunks/berths.js-B282QffH.js +270 -0
- package/build/server/chunks/chunks/book-open.js-CMP_t0Zr.js +23 -0
- package/build/server/chunks/chunks/bridge.js-DW4bV609.js +60 -0
- package/build/server/chunks/chunks/brief.js-DyAlUufG.js +152 -0
- package/build/server/chunks/chunks/buildlog.js-BCKtSKOt.js +55 -0
- package/build/server/chunks/chunks/button.js-Bg2ee8PR.js +4027 -0
- package/build/server/chunks/chunks/chat.svelte.js-PibwBfjx.js +744 -0
- package/build/server/chunks/chunks/check.js-BizfScOy.js +15 -0
- package/build/server/chunks/chunks/checks.js-DGdGhp1G.js +258 -0
- package/build/server/chunks/chunks/chevron-down.js-DLf9oWYQ.js +15 -0
- package/build/server/chunks/chunks/chevron-left.js-D17b39o2.js +15 -0
- package/build/server/chunks/chunks/chevron-right.js-PPUgqXgy.js +15 -0
- package/build/server/chunks/chunks/circle-alert.js-B6F_Zxc7.js +23 -0
- package/build/server/chunks/chunks/circle-arrow-up.js-CWxi34UW.js +20 -0
- package/build/server/chunks/chunks/circle-check.js-oWgE2-Ib.js +19 -0
- package/build/server/chunks/chunks/circle-dashed.js-DCwzYTH0.js +24 -0
- package/build/server/chunks/chunks/circle-dot.js-DBkCvy7T.js +18 -0
- package/build/server/chunks/chunks/client.js-Z9ZB5A3s.js +24 -0
- package/build/server/chunks/chunks/clock.js-BRFOn_JF.js +18 -0
- package/build/server/chunks/chunks/cloud.js-DiLoEINt.js +30 -0
- package/build/server/chunks/chunks/config.js-E2-TrXNJ.js +185 -0
- package/build/server/chunks/chunks/copy.js-BTlHqk6c.js +33 -0
- package/build/server/chunks/chunks/detail.js-C0HwzMn_.js +146 -0
- package/build/server/chunks/chunks/dialog-content.js-CuWOPqMm.js +3356 -0
- package/build/server/chunks/chunks/external-link.js-DDXtld4W.js +24 -0
- package/build/server/chunks/chunks/eye.js-BTtIKcHk.js +23 -0
- package/build/server/chunks/chunks/feedback.js-C0F-OaSn.js +67 -0
- package/build/server/chunks/chunks/format.js-D3lWEg6U.js +70 -0
- package/build/server/chunks/chunks/git-pull-request.js-DPwvD_k6.js +20 -0
- package/build/server/chunks/chunks/hand.js-OgzocAnn.js +25 -0
- package/build/server/chunks/chunks/index-server.js-qvYADcF_.js +17 -0
- package/build/server/chunks/chunks/index-server2.js-DMc-UvjC.js +19 -0
- package/build/server/chunks/chunks/index.js-CNAJQSM0.js +1524 -0
- package/build/server/chunks/chunks/index2.js-BuH5pXIO.js +46 -0
- package/build/server/chunks/chunks/insights.svelte.js-EX826idS.js +732 -0
- package/build/server/chunks/chunks/internal.js-C0t7gs85.js +151 -0
- package/build/server/chunks/chunks/keychain.js-Bl9yNOSB.js +52 -0
- package/build/server/chunks/chunks/live.svelte.js-DmaKnCsQ.js +241 -0
- package/build/server/chunks/chunks/loader-circle.js-B1RYi3bC.js +16 -0
- package/build/server/chunks/chunks/lock.js-BRFwEIy_.js +48 -0
- package/build/server/chunks/chunks/markdown.js-8EKwlA8M.js +2656 -0
- package/build/server/chunks/chunks/message-square.js-CrZeO0AI.js +22 -0
- package/build/server/chunks/chunks/messages-square.js-Du4pyX-d.js +47 -0
- package/build/server/chunks/chunks/minus.js-oy46PWoK.js +15 -0
- package/build/server/chunks/chunks/nav.js-DcQjV5OF.js +30 -0
- package/build/server/chunks/chunks/page.js-CJdNW_XA.js +11 -0
- package/build/server/chunks/chunks/phone.svelte.js-DSEWkTcb.js +7 -0
- package/build/server/chunks/chunks/plus.js-_sWZi-RM.js +15 -0
- package/build/server/chunks/chunks/previewhelper2.js-BCYWAXyJ.js +165 -0
- package/build/server/chunks/chunks/previewnote.js-DB6VK2fp.js +56 -0
- package/build/server/chunks/chunks/pullrequests.js-CCzk2sqm.js +12 -0
- package/build/server/chunks/chunks/puzzle.js-DISwYPxF.js +22 -0
- package/build/server/chunks/chunks/refresh-cw.js-CbDhy8fm.js +26 -0
- package/build/server/chunks/chunks/remote.js-C8NtkvLx.js +13 -0
- package/build/server/chunks/chunks/repo.js-CNzWdJys.js +33 -0
- package/build/server/chunks/chunks/root.js-BMwYWidL.js +3105 -0
- package/build/server/chunks/chunks/rotate-cw.js-BPC6IxqZ.js +21 -0
- package/build/server/chunks/chunks/runtime.js-DgaQqsVF.js +17833 -0
- package/build/server/chunks/chunks/scale.js-5D4jKhvV.js +21 -0
- package/build/server/chunks/chunks/service.js-Cy0qlGNT.js +1337 -0
- package/build/server/chunks/chunks/service2.js-BUuLZLu5.js +1140 -0
- package/build/server/chunks/chunks/settings.js-CagyrW8Z.js +23 -0
- package/build/server/chunks/chunks/settings2.js-DPuzmbc5.js +694 -0
- package/build/server/chunks/chunks/shield-check.js-CDitrAGo.js +23 -0
- package/build/server/chunks/chunks/ship.js-BVQ9iFsJ.js +31 -0
- package/build/server/chunks/chunks/sparkles.js-Mcsine-_.js +26 -0
- package/build/server/chunks/chunks/square-terminal.js-CBs-sBt1.js +30 -0
- package/build/server/chunks/chunks/starter.js-DRsRq6lV.js +628 -0
- package/build/server/chunks/chunks/terminal.js-BckfZrAP.js +71 -0
- package/build/server/chunks/chunks/tone.js-Dxsl-adt.js +31 -0
- package/build/server/chunks/chunks/triangle-alert.js-DCXyDwgC.js +25 -0
- package/build/server/chunks/chunks/updates.js-CPT_S4vG.js +23 -0
- package/build/server/chunks/chunks/updates.svelte.js-DaHXemUC.js +88 -0
- package/build/server/chunks/chunks/urls.js-CM6aklCF.js +8 -0
- package/build/server/chunks/chunks/users.js-B-CA8JtQ.js +20 -0
- package/build/server/chunks/chunks/utils3.js-ByN3K_WW.js +3290 -0
- package/build/server/chunks/chunks/vault.js-DZFWbeCU.js +162 -0
- package/build/server/chunks/chunks/view.js-BSXOPXh3.js +76 -0
- package/build/server/chunks/chunks/words.js-DoCiNU5f.js +53 -0
- package/build/server/chunks/chunks/x.js-vo5qKISo.js +18 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DHRttFTZ.js +96 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-DRUnwmY_.js +79 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-Bf8mLtRw.js +43 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CFQWYnSF.js +106 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-DivBWRYq.js +55 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-tTC_RJl3.js +89 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-vZvRvOTi.js +125 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-BSZ_yvi2.js +51 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-GcLDzApj.js +57 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-CE4NXzMK.js +50 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CaxvkmW1.js +97 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-DjGy8j6U.js +60 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-B9JTcRZ-.js +71 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-LA2imWIt.js +50 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-CpR9UKUp.js +42 -0
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-Ct3zJpGp.js +106 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-o_9aL7gt.js +42 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DhOBDQa6.js +66 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-BKxB5PDV.js +57 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-D5Gg4kol.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-A1lw0Ldv.js +77 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BFAOjNft.js +66 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-Dmq3DhyB.js +61 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-Z_D76GMl.js +58 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-C8BaVcnJ.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BMYZAEQn.js +65 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-QhAgv3Mq.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-BkXisb_q.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BxBVAipn.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DHe0Y-ck.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DyrnKFGK.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-B5-Q_Pfy.js +65 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CXT0t4GT.js +47 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C4GIfRHH.js +56 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Dc9s4cez.js +68 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-vdzB2xgv.js +55 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-C_FJm_du.js +78 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BULKZ_84.js +61 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BWi__jmG.js +51 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-Dlm9JukW.js +61 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-8KkKfI-b.js +100 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-C0t3n3rC.js +50 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-DhWmfcw8.js +47 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CzSFHZLr.js +66 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-DXLL2NLX.js +59 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-DscE2sa8.js +107 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-qxRt7CO9.js +61 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-CVC67F8h.js +64 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-C9jI7ywJ.js +68 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-QcFb__5e.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-yYEp6hFu.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-YcIPKmyk.js +27 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-Dl5YccjX.js +46 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-C0-QO05E.js +15 -0
- package/build/server/chunks/entries/hooks.server.js-BGT9tj5a.js +79 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-BPqTpXnT.js +27 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-DrL1HCPc.js +5501 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-Ck4LSRvY.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-C0XtmgnT.js +3271 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-ffNDlvSu.js +11 -0
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-CvbTkNdA.js +202 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DF0j_WRo.js +16 -0
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-ByaF4X4f.js +101 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-l4nvknAj.js +17 -0
- package/build/server/chunks/entries/pages/files/_page.svelte.js-C6FWKguz.js +61 -0
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-Dbjsqtp9.js +46 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-DW1Zg1aI.js +750 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CwQpGWGn.js +11 -0
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Bofa0rV1.js +183 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-LnoZxPlZ.js +11 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-NEaMeQr4.js +192 -0
- package/build/server/chunks/entries/pages/more/_page.svelte.js-Biw-GzWK.js +108 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-qN2haElN.js +16 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-IxIvs80b.js +57 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-C_KiW7id.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-CZuOnAvk.js +957 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-Bgx5a4Bq.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-BiaWDy5c.js +79 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BbsvTa0x.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-B3HRzAzL.js +419 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DyN1H2dy.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-DaA-EDRZ.js +1881 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-BYdNkq73.js +11 -0
- package/build/server/chunks/entries/pages/remotes/_page.svelte.js-BSG7dgKM.js +31 -0
- package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-Dd467IE0.js +221 -0
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-oouHUw1O.js +11 -0
- package/build/server/chunks/entries/pages/settings/cloud/_page.svelte.js-CCSostfV.js +33 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-C4QsORKn.js +11 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-7xxA_syu.js +209 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-K1Bl3LMF.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BclcwMMK.js +611 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-Bb7A-51X.js +17 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-DU1PVspq.js +229 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CYEEIqKU.js +11 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-el4jo1--.js +55 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-Bvs60PVx.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-BPBP_MeS.js +61 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-B1wfLoGz.js +18 -0
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-Cnl_NDaT.js +979 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-CpWnd8Ii.js +25 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BsZxwgSh.js +2951 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-B16EJzeL.js +24 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-CbUrpRPl.js +80 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-CqYmO2e_.js +11 -0
- package/build/server/chunks/entries/pages/time/_page.svelte.js-sI9ldCiM.js +108 -0
- package/build/server/chunks/handler-55U1exID.js +1474 -0
- package/build/server/chunks/index.js-_VxtUxOR.js +4296 -0
- package/build/server/chunks/manifest.js-CvlmBvHi.js +642 -0
- package/build/server/chunks/nodes/0.js-0UOgcqd1.js +49 -0
- package/build/server/chunks/nodes/1.js-BpZhjsrX.js +9 -0
- package/build/server/chunks/nodes/10.js-CqEYHIx6.js +12 -0
- package/build/server/chunks/nodes/11.js-D73yUAUK.js +47 -0
- package/build/server/chunks/nodes/12.js-wge33Kh_.js +49 -0
- package/build/server/chunks/nodes/13.js-CP9VWd6v.js +48 -0
- package/build/server/chunks/nodes/14.js-pI9xqI8W.js +49 -0
- package/build/server/chunks/nodes/15.js-BADx9-2h.js +48 -0
- package/build/server/chunks/nodes/16.js-B1DTie2c.js +25 -0
- package/build/server/chunks/nodes/17.js-DqrtuOB_.js +9 -0
- package/build/server/chunks/nodes/18.js-DbSnX-1e.js +12 -0
- package/build/server/chunks/nodes/19.js-DG8BDwO1.js +25 -0
- package/build/server/chunks/nodes/2.js-Blr6vlmx.js +47 -0
- package/build/server/chunks/nodes/20.js-P8jhtZV0.js +47 -0
- package/build/server/chunks/nodes/21.js-Dahbb_SQ.js +47 -0
- package/build/server/chunks/nodes/22.js-Br6SrZKH.js +50 -0
- package/build/server/chunks/nodes/23.js-BS4hjiBj.js +49 -0
- package/build/server/chunks/nodes/24.js-DGa7X3nY.js +26 -0
- package/build/server/chunks/nodes/25.js-C8Rf-PwV.js +51 -0
- package/build/server/chunks/nodes/26.js-B8iZRseb.js +48 -0
- package/build/server/chunks/nodes/27.js-B8HE4f8h.js +48 -0
- package/build/server/chunks/nodes/28.js-NecfT5Uo.js +47 -0
- package/build/server/chunks/nodes/3.js-CsbGbh89.js +47 -0
- package/build/server/chunks/nodes/4.js-B75wgQPd.js +47 -0
- package/build/server/chunks/nodes/5.js-DLOa8tSh.js +47 -0
- package/build/server/chunks/nodes/6.js-CiYesw8R.js +51 -0
- package/build/server/chunks/nodes/7.js-Bs4Z3Vhh.js +47 -0
- package/build/server/chunks/nodes/8.js-BrqJRPDG.js +47 -0
- package/build/server/chunks/nodes/9.js-BxYs6WJn.js +9 -0
- package/dist/cli.js +2437 -404
- package/dist/wh-vault.js +1 -1
- package/package.json +3 -1
- package/plugins/shared-review/.wheelhouse-plugin/plugin.json +2 -1
- package/plugins/shared-review/README.md +3 -1
- package/plugins/shared-review/wheelhouse/server/index.js +11 -2
- package/plugins/shared-review/wheelhouse/ui/index.js +284 -2
- package/plugins/vault/wheelhouse/icon.svg +1 -1
- package/skills/manage-wheelhouse/SKILL.md +103 -0
- package/skills/manage-wheelhouse/references/operations.md +856 -0
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css +0 -1
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.DvyEOdRq.css +0 -1
- package/build/client/_app/immutable/assets/2.DvyEOdRq.css.br +0 -0
- package/build/client/_app/immutable/assets/2.DvyEOdRq.css.gz +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css +0 -1
- package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.br +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-8jzdSzV.js +0 -1
- package/build/client/_app/immutable/chunks/-8jzdSzV.js.br +0 -0
- package/build/client/_app/immutable/chunks/-8jzdSzV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/1WRcPxqg.js +0 -1
- package/build/client/_app/immutable/chunks/1WRcPxqg.js.br +0 -0
- package/build/client/_app/immutable/chunks/1WRcPxqg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/2u5U2sv5.js +0 -1
- package/build/client/_app/immutable/chunks/2u5U2sv5.js.br +0 -2
- package/build/client/_app/immutable/chunks/2u5U2sv5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4VJeJzd5.js +0 -1
- package/build/client/_app/immutable/chunks/4VJeJzd5.js.br +0 -0
- package/build/client/_app/immutable/chunks/4VJeJzd5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6x5fl0iw.js +0 -1
- package/build/client/_app/immutable/chunks/6x5fl0iw.js.br +0 -0
- package/build/client/_app/immutable/chunks/6x5fl0iw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6x9f8OOX.js +0 -1
- package/build/client/_app/immutable/chunks/6x9f8OOX.js.br +0 -0
- package/build/client/_app/immutable/chunks/6x9f8OOX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2ctrXx5.js +0 -1
- package/build/client/_app/immutable/chunks/B2ctrXx5.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2ctrXx5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3j8X7eP.js +0 -1
- package/build/client/_app/immutable/chunks/B3j8X7eP.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3j8X7eP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js +0 -2
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BBWR4qW2.js +0 -1
- package/build/client/_app/immutable/chunks/BBWR4qW2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBWR4qW2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BBk8ftHo.js +0 -1
- package/build/client/_app/immutable/chunks/BBk8ftHo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBk8ftHo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHVTrNhR.js +0 -3
- package/build/client/_app/immutable/chunks/BHVTrNhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHVTrNhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BH_GqTtA.js +0 -1
- package/build/client/_app/immutable/chunks/BH_GqTtA.js.br +0 -0
- package/build/client/_app/immutable/chunks/BH_GqTtA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHu5PcTV.js +0 -1
- package/build/client/_app/immutable/chunks/BHu5PcTV.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHu5PcTV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BKSx-wDn.js +0 -1
- package/build/client/_app/immutable/chunks/BKSx-wDn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BKSx-wDn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOY9WARo.js +0 -2
- package/build/client/_app/immutable/chunks/BOY9WARo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOY9WARo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQle5rwK.js +0 -1
- package/build/client/_app/immutable/chunks/BQle5rwK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQle5rwK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BRuDnHyc.js +0 -2
- package/build/client/_app/immutable/chunks/BRuDnHyc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRuDnHyc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BSMH3sl_.js +0 -1
- package/build/client/_app/immutable/chunks/BSMH3sl_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BSMH3sl_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BV-FSL0u.js +0 -1
- package/build/client/_app/immutable/chunks/BV-FSL0u.js.br +0 -0
- package/build/client/_app/immutable/chunks/BV-FSL0u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXF1nDhR.js +0 -1
- package/build/client/_app/immutable/chunks/BXF1nDhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXF1nDhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BbU5AsRD.js +0 -1
- package/build/client/_app/immutable/chunks/BbU5AsRD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbU5AsRD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkoErw_r.js +0 -1
- package/build/client/_app/immutable/chunks/BkoErw_r.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkoErw_r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js +0 -1
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Blj84s6L.js +0 -1
- package/build/client/_app/immutable/chunks/Blj84s6L.js.br +0 -0
- package/build/client/_app/immutable/chunks/Blj84s6L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo1SMwPt.js +0 -1
- package/build/client/_app/immutable/chunks/Bo1SMwPt.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo1SMwPt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BudxWdUe.js +0 -1
- package/build/client/_app/immutable/chunks/BudxWdUe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BudxWdUe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvCDG8Dd.js +0 -1
- package/build/client/_app/immutable/chunks/BvCDG8Dd.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvCDG8Dd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BwLAIydi.js +0 -1
- package/build/client/_app/immutable/chunks/BwLAIydi.js.br +0 -0
- package/build/client/_app/immutable/chunks/BwLAIydi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bxc9WZZR.js +0 -1
- package/build/client/_app/immutable/chunks/Bxc9WZZR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bxc9WZZR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bxza7kFR.js +0 -1
- package/build/client/_app/immutable/chunks/Bxza7kFR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bxza7kFR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BzYzevxb.js +0 -1
- package/build/client/_app/immutable/chunks/BzYzevxb.js.br +0 -0
- package/build/client/_app/immutable/chunks/BzYzevxb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C03wrLr6.js +0 -1
- package/build/client/_app/immutable/chunks/C03wrLr6.js.br +0 -0
- package/build/client/_app/immutable/chunks/C03wrLr6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0nIjZ3F.js +0 -1
- package/build/client/_app/immutable/chunks/C0nIjZ3F.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0nIjZ3F.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDGwSysF.js +0 -1
- package/build/client/_app/immutable/chunks/CDGwSysF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDGwSysF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEbzGOE-.js +0 -1
- package/build/client/_app/immutable/chunks/CEbzGOE-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEbzGOE-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLeVtrv1.js +0 -1
- package/build/client/_app/immutable/chunks/CLeVtrv1.js.br +0 -3
- package/build/client/_app/immutable/chunks/CLeVtrv1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLsVEPfB.js +0 -1
- package/build/client/_app/immutable/chunks/CLsVEPfB.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLsVEPfB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLubIfWE.js +0 -1
- package/build/client/_app/immutable/chunks/CLubIfWE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLubIfWE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNcEb8rI.js +0 -1
- package/build/client/_app/immutable/chunks/CNcEb8rI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNcEb8rI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CWq2437p.js +0 -1
- package/build/client/_app/immutable/chunks/CWq2437p.js.br +0 -0
- package/build/client/_app/immutable/chunks/CWq2437p.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CaaP7Cfy.js +0 -1
- package/build/client/_app/immutable/chunks/CaaP7Cfy.js.br +0 -0
- package/build/client/_app/immutable/chunks/CaaP7Cfy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbGZd9iT.js +0 -1
- package/build/client/_app/immutable/chunks/CbGZd9iT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbGZd9iT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js +0 -1
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js.br +0 -2
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdUf0vBw.js +0 -1
- package/build/client/_app/immutable/chunks/CdUf0vBw.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdUf0vBw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ce7qVCDI.js +0 -1
- package/build/client/_app/immutable/chunks/Ce7qVCDI.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ce7qVCDI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cio5-ROX.js +0 -6
- package/build/client/_app/immutable/chunks/Cio5-ROX.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cio5-ROX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrPP6AgN.js +0 -1
- package/build/client/_app/immutable/chunks/CrPP6AgN.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrPP6AgN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CyhrvZ9i.js +0 -1
- package/build/client/_app/immutable/chunks/CyhrvZ9i.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyhrvZ9i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1pI6A8q.js +0 -1
- package/build/client/_app/immutable/chunks/D1pI6A8q.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1pI6A8q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D6hXuNzR.js +0 -1
- package/build/client/_app/immutable/chunks/D6hXuNzR.js.br +0 -1
- package/build/client/_app/immutable/chunks/D6hXuNzR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8Hr8rhb.js +0 -1
- package/build/client/_app/immutable/chunks/D8Hr8rhb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8Hr8rhb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8s8J8Og.js +0 -1
- package/build/client/_app/immutable/chunks/D8s8J8Og.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8s8J8Og.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCbu051o.js +0 -1
- package/build/client/_app/immutable/chunks/DCbu051o.js.br +0 -2
- package/build/client/_app/immutable/chunks/DCbu051o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DDUWrtWf.js +0 -1
- package/build/client/_app/immutable/chunks/DDUWrtWf.js.br +0 -0
- package/build/client/_app/immutable/chunks/DDUWrtWf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DEIc6x-v.js +0 -1
- package/build/client/_app/immutable/chunks/DEIc6x-v.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEIc6x-v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DMefFkCx.js +0 -1
- package/build/client/_app/immutable/chunks/DMefFkCx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DMefFkCx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQEmyAe4.js +0 -1
- package/build/client/_app/immutable/chunks/DQEmyAe4.js.br +0 -2
- package/build/client/_app/immutable/chunks/DQEmyAe4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRK9oYED.js +0 -1
- package/build/client/_app/immutable/chunks/DRK9oYED.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRK9oYED.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DU2mz-vL.js +0 -1
- package/build/client/_app/immutable/chunks/DU2mz-vL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DU2mz-vL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DWlSINHC.js +0 -1
- package/build/client/_app/immutable/chunks/DWlSINHC.js.br +0 -0
- package/build/client/_app/immutable/chunks/DWlSINHC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZJnY8Nx.js +0 -1
- package/build/client/_app/immutable/chunks/DZJnY8Nx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZJnY8Nx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdB79emW.js +0 -1
- package/build/client/_app/immutable/chunks/DdB79emW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdB79emW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdRufa9N.js +0 -1
- package/build/client/_app/immutable/chunks/DdRufa9N.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdRufa9N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DgOhqfdF.js +0 -1
- package/build/client/_app/immutable/chunks/DgOhqfdF.js.br +0 -0
- package/build/client/_app/immutable/chunks/DgOhqfdF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dhv6iBq8.js +0 -1
- package/build/client/_app/immutable/chunks/Dhv6iBq8.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dhv6iBq8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js +0 -2
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkG1ReNq.js +0 -1
- package/build/client/_app/immutable/chunks/DkG1ReNq.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkG1ReNq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlcOqcbg.js +0 -1
- package/build/client/_app/immutable/chunks/DlcOqcbg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlcOqcbg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnDesMxN.js +0 -1
- package/build/client/_app/immutable/chunks/DnDesMxN.js.br +0 -0
- package/build/client/_app/immutable/chunks/DnDesMxN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnQR8b1d.js +0 -62
- package/build/client/_app/immutable/chunks/DnQR8b1d.js.br +0 -0
- package/build/client/_app/immutable/chunks/DnQR8b1d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DpSftVJo.js +0 -1
- package/build/client/_app/immutable/chunks/DpSftVJo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DpSftVJo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DqZ9Wm2M.js +0 -1
- package/build/client/_app/immutable/chunks/DqZ9Wm2M.js.br +0 -0
- package/build/client/_app/immutable/chunks/DqZ9Wm2M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DybGBkO1.js +0 -5
- package/build/client/_app/immutable/chunks/DybGBkO1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DybGBkO1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/He17Vv5l.js +0 -1
- package/build/client/_app/immutable/chunks/He17Vv5l.js.br +0 -0
- package/build/client/_app/immutable/chunks/He17Vv5l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/M3zsQDnS.js +0 -2
- package/build/client/_app/immutable/chunks/M3zsQDnS.js.br +0 -0
- package/build/client/_app/immutable/chunks/M3zsQDnS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js +0 -2
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js.br +0 -0
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/TcIaLKEO.js +0 -1
- package/build/client/_app/immutable/chunks/TcIaLKEO.js.br +0 -0
- package/build/client/_app/immutable/chunks/TcIaLKEO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WKkbnawS.js +0 -1
- package/build/client/_app/immutable/chunks/WKkbnawS.js.br +0 -0
- package/build/client/_app/immutable/chunks/WKkbnawS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js +0 -1
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z8zDEyti.js +0 -1
- package/build/client/_app/immutable/chunks/Z8zDEyti.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z8zDEyti.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js +0 -6
- package/build/client/_app/immutable/chunks/dKB0cWc2.js.br +0 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js +0 -6
- package/build/client/_app/immutable/chunks/dPAGVN7v.js.br +0 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dxi_erj0.js +0 -3
- package/build/client/_app/immutable/chunks/dxi_erj0.js.br +0 -0
- package/build/client/_app/immutable/chunks/dxi_erj0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kE4zxzFD.js +0 -1
- package/build/client/_app/immutable/chunks/kE4zxzFD.js.br +0 -0
- package/build/client/_app/immutable/chunks/kE4zxzFD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kWmJZSyZ.js +0 -1
- package/build/client/_app/immutable/chunks/kWmJZSyZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/kWmJZSyZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js +0 -5
- package/build/client/_app/immutable/chunks/ohZIF1HO.js.br +0 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js +0 -2
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js +0 -1
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js +0 -8
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js +0 -1
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js +0 -3
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js +0 -1
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js +0 -14
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js +0 -150
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js +0 -4
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js +0 -11
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BFAervXe.js +0 -9
- package/build/client/_app/immutable/nodes/17.BFAervXe.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BFAervXe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js +0 -2
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js +0 -3
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js +0 -27
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js +0 -1
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js +0 -6
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.COF537Bh.js +0 -5
- package/build/client/_app/immutable/nodes/3.COF537Bh.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.COF537Bh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js +0 -1
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js +0 -2
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js +0 -7
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js +0 -5
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.js +0 -1
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.js.gz +0 -0
- package/build/server/chunks/chunks/DecisionCard.js-DaA8DYYg.js +0 -586
- package/build/server/chunks/chunks/DocSheet.js-COU85_s3.js +0 -50
- package/build/server/chunks/chunks/EtaLine.js-CGeZKC7J.js +0 -98
- package/build/server/chunks/chunks/EveryProjectSwitch.js-BRDpCeoH.js +0 -200
- package/build/server/chunks/chunks/Icon.js-CHJ2UHjC.js +0 -129
- package/build/server/chunks/chunks/InsightsNav.js-6PnqzaPk.js +0 -18
- package/build/server/chunks/chunks/InstallPlugin.js-Cs1ZrPAp.js +0 -45
- package/build/server/chunks/chunks/LinkedText.js-W4YG6iJR.js +0 -34
- package/build/server/chunks/chunks/MateHealthPill.js-BNEGFwH8.js +0 -22
- package/build/server/chunks/chunks/OpenDecision.js-CYba2eq3.js +0 -1614
- package/build/server/chunks/chunks/ProjectBanner.js-DFoHRlbH.js +0 -111
- package/build/server/chunks/chunks/ProjectStateMark.js-Dnky_g-x.js +0 -41
- package/build/server/chunks/chunks/QuestionList.js-BXYtAgRG.js +0 -51
- package/build/server/chunks/chunks/ResizableRail.js-C0NBHdjG.js +0 -50
- package/build/server/chunks/chunks/SettingsNav.js-hmRmEglt.js +0 -22
- package/build/server/chunks/chunks/SlotContent.js-DvHCWpDg.js +0 -738
- package/build/server/chunks/chunks/TaskOverview.js-sfLDib9-.js +0 -568
- package/build/server/chunks/chunks/TimeBar.js-D3XrZtTh.js +0 -32
- package/build/server/chunks/chunks/TimeLegend.js-B5rkpGtG.js +0 -29
- package/build/server/chunks/chunks/WhereBadge.js-CT4hViFh.js +0 -131
- package/build/server/chunks/chunks/addresses.js-DMekVPad.js +0 -52
- package/build/server/chunks/chunks/aliases.svelte.js-D80jyNJf.js +0 -138
- package/build/server/chunks/chunks/arrow-down.js-DUgKe53e.js +0 -18
- package/build/server/chunks/chunks/arrow-left.js-Cq9_JtOh.js +0 -18
- package/build/server/chunks/chunks/arrow-right.js-AjYDyUqN.js +0 -18
- package/build/server/chunks/chunks/arrow-up-right.js-BXDKmOw9.js +0 -18
- package/build/server/chunks/chunks/arrow-up.js-Cd_TyexB.js +0 -18
- package/build/server/chunks/chunks/berths.js-DAg2ReUw.js +0 -270
- package/build/server/chunks/chunks/bridge.js-Cm-aK0Fl.js +0 -3757
- package/build/server/chunks/chunks/brief.js-TS-K0lZ6.js +0 -54
- package/build/server/chunks/chunks/buildlog.js-BGIHToGa.js +0 -55
- package/build/server/chunks/chunks/button.js-Q4mS-EA8.js +0 -7311
- package/build/server/chunks/chunks/changes.js-DLL6A8OG.js +0 -40
- package/build/server/chunks/chunks/check.js-LVN_jfQU.js +0 -15
- package/build/server/chunks/chunks/checks.js-CIo8HrSt.js +0 -221
- package/build/server/chunks/chunks/chevron-left.js-DhF4v3Pt.js +0 -15
- package/build/server/chunks/chunks/chevron-right.js-D4fnSNoh.js +0 -15
- package/build/server/chunks/chunks/circle-alert.js-CTc53lLB.js +0 -23
- package/build/server/chunks/chunks/circle-arrow-up.js-v-nE3jR0.js +0 -20
- package/build/server/chunks/chunks/circle-dashed.js-QwLaO9U2.js +0 -24
- package/build/server/chunks/chunks/circle-dot.js-DMNxPdVx.js +0 -18
- package/build/server/chunks/chunks/client.js-BSbbAByJ.js +0 -24
- package/build/server/chunks/chunks/clock.js-hPyOuzjG.js +0 -18
- package/build/server/chunks/chunks/detail.js-B8abhi3a.js +0 -146
- package/build/server/chunks/chunks/external-link.js-BuWBxV8H.js +0 -24
- package/build/server/chunks/chunks/eye.js-BvS4v0oz.js +0 -23
- package/build/server/chunks/chunks/feedback.js-Jpl8v6Mu.js +0 -67
- package/build/server/chunks/chunks/format.js-DKnw8oWK.js +0 -70
- package/build/server/chunks/chunks/git-pull-request.js-CXtks_Ym.js +0 -20
- package/build/server/chunks/chunks/hand.js-CJ13vqPn.js +0 -25
- package/build/server/chunks/chunks/index-server.js-BY3oucHa.js +0 -17
- package/build/server/chunks/chunks/index-server2.js-DsObimPA.js +0 -9
- package/build/server/chunks/chunks/index.js-C2v29IkD.js +0 -1524
- package/build/server/chunks/chunks/index2.js-DDKi-jKB.js +0 -46
- package/build/server/chunks/chunks/internal.js-bN02E8b0.js +0 -146
- package/build/server/chunks/chunks/live.svelte.js-D1hNGw9_.js +0 -241
- package/build/server/chunks/chunks/loader-circle.js-CNbdxSQ6.js +0 -16
- package/build/server/chunks/chunks/markdown.js-0thJlxxD.js +0 -2656
- package/build/server/chunks/chunks/message-square.js-Ct7UUpHZ.js +0 -22
- package/build/server/chunks/chunks/messages-square.js-S0CnYLu0.js +0 -47
- package/build/server/chunks/chunks/minus.js-B7GNC6Bd.js +0 -15
- package/build/server/chunks/chunks/nav.js-DHSQIdRN.js +0 -29
- package/build/server/chunks/chunks/plain.js-Dc97sYaJ.js +0 -101
- package/build/server/chunks/chunks/plus.js-Dbawo5bL.js +0 -15
- package/build/server/chunks/chunks/previewhelper2.js-Fr7JXr0X.js +0 -165
- package/build/server/chunks/chunks/pullrequests.js-BobjerQv.js +0 -152
- package/build/server/chunks/chunks/pullrequests2.js-CCzk2sqm.js +0 -12
- package/build/server/chunks/chunks/repo.js-D4m77kW0.js +0 -33
- package/build/server/chunks/chunks/review.js-DoWJxV0D.js +0 -141
- package/build/server/chunks/chunks/root.js-iNMFn-Yg.js +0 -3105
- package/build/server/chunks/chunks/rotate-cw.js-BPzrB4So.js +0 -21
- package/build/server/chunks/chunks/runtime.js-BGOuM-Hy.js +0 -17683
- package/build/server/chunks/chunks/scale.js-CkXtBARG.js +0 -21
- package/build/server/chunks/chunks/scroll-lock.js-C4Fj1gEY.js +0 -2797
- package/build/server/chunks/chunks/service.js-CzSbBjc3.js +0 -916
- package/build/server/chunks/chunks/settings.js-BEOX97g7.js +0 -869
- package/build/server/chunks/chunks/shield-check.js-MP-IWW55.js +0 -23
- package/build/server/chunks/chunks/sparkles.js-Cr_IjWR_.js +0 -26
- package/build/server/chunks/chunks/square-terminal.js-DLBEkPpa.js +0 -30
- package/build/server/chunks/chunks/tone.js-oubilaK8.js +0 -59
- package/build/server/chunks/chunks/triangle-alert.js-DGSV_5I9.js +0 -25
- package/build/server/chunks/chunks/urls.js-BrlC6XZ8.js +0 -8
- package/build/server/chunks/chunks/vault.js-CTaWe09z.js +0 -162
- package/build/server/chunks/chunks/view.js-CeInAMHW.js +0 -76
- package/build/server/chunks/chunks/words.js-eWWIwMKr.js +0 -52
- package/build/server/chunks/chunks/x.js-Dhp-BHl8.js +0 -18
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-smS4TCrQ.js +0 -94
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Bqh9AFl3.js +0 -104
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BM0ps5lk.js +0 -53
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-Cm2ckYW2.js +0 -87
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-DZCnbYId.js +0 -123
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-B5fpHEKR.js +0 -49
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-eq3GdIy6.js +0 -55
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-CvXW4Pgj.js +0 -48
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-Ck9lsiPW.js +0 -95
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-S2cNDAv_.js +0 -58
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-Dp5sUKpf.js +0 -69
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-BRyx-SLk.js +0 -48
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DbOj2r3G.js +0 -40
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-CqNT7hdk.js +0 -104
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-s9ct1YaL.js +0 -40
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CCbenPIy.js +0 -64
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-YkdQuW03.js +0 -55
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-jMIRKXVy.js +0 -40
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-CRz5ap0Z.js +0 -75
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BUreXPtQ.js +0 -64
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-aLsUJ-HL.js +0 -59
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BQxGrtDq.js +0 -56
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-DVwdrfyP.js +0 -24
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-fWXa1T6O.js +0 -63
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-GzkA-eH4.js +0 -36
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Du31g-KO.js +0 -40
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CQYj1ZuS.js +0 -36
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-D6Nprf6i.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-DjQvcvOx.js +0 -24
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DcwsTmlB.js +0 -45
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CGPbXNqf.js +0 -54
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CawLRyKI.js +0 -66
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-Cl8Xr77g.js +0 -53
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-B3vEVTxZ.js +0 -76
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-iToq6YEa.js +0 -59
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-CwWCiOV_.js +0 -49
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DW8K_vnR.js +0 -59
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-jQeee3c3.js +0 -48
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-DjmH3APN.js +0 -45
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-BKBTwHdx.js +0 -64
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-Dps2HZrT.js +0 -57
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-CLrEK2JB.js +0 -105
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-Dajmg1QT.js +0 -59
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-DzbKvWf4.js +0 -62
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-lrCSZ8vJ.js +0 -66
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js--J2luqpT.js +0 -24
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-D6jJ1Rr_.js +0 -24
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-DFiNNdmX.js +0 -44
- package/build/server/chunks/entries/fallbacks/error.svelte.js-CB4I_wOd.js +0 -15
- package/build/server/chunks/entries/hooks.server.js-BbTmH2JU.js +0 -58
- package/build/server/chunks/entries/pages/_layout.server.ts.js-DTaBhixQ.js +0 -24
- package/build/server/chunks/entries/pages/_layout.svelte.js-BNA76gGJ.js +0 -5551
- package/build/server/chunks/entries/pages/_page.server.ts.js-BjKksIBz.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-Bgw0FiJG.js +0 -3847
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cr6eZ4p-.js +0 -11
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-DcczyFUP.js +0 -201
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-CA3bfaLe.js +0 -17
- package/build/server/chunks/entries/pages/files/_page.svelte.js-BIMqSkgM.js +0 -60
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CGhoI6xu.js +0 -46
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-BHMB8PKC.js +0 -749
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BRadjeWP.js +0 -11
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Yw5NZV8k.js +0 -183
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CB7PXBV1.js +0 -11
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BLRcCY5u.js +0 -175
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-C9J9SfdQ.js +0 -16
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-DLxqhull.js +0 -53
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-nOOV1sAH.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-Doi5pyAo.js +0 -980
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BpSFvmgx.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Cr__zX_O.js +0 -76
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-08qgrWt_.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-CkM6pjKK.js +0 -418
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Waknjiof.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-CN-WwfgH.js +0 -1880
- package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-CO4DG7gS.js +0 -221
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-D_-2Bk-X.js +0 -11
- package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-DuleT8BP.js +0 -208
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-Hls8GEh4.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BUmIRIz2.js +0 -1854
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-jKmK8VbO.js +0 -17
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-B5PSrA4H.js +0 -227
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BZMRfS-l.js +0 -25
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BYcqWFD7.js +0 -2194
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-CGiroJqZ.js +0 -24
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.svelte.js-QzwiMik4.js +0 -79
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-exp39MHH.js +0 -11
- package/build/server/chunks/entries/pages/time/_page.svelte.js-D0Z16ExE.js +0 -108
- package/build/server/chunks/handler-CwbFN6sE.js +0 -1474
- package/build/server/chunks/index.js-CqvbtJcl.js +0 -4296
- package/build/server/chunks/manifest.js-DBKpxwtf.js +0 -551
- package/build/server/chunks/nodes/0.js-CzHBL2FE.js +0 -45
- package/build/server/chunks/nodes/1.js-DttsMtH5.js +0 -9
- package/build/server/chunks/nodes/10.js-DS6-8M5v.js +0 -47
- package/build/server/chunks/nodes/11.js-UkJPwg90.js +0 -46
- package/build/server/chunks/nodes/12.js-Bttwc2Gj.js +0 -47
- package/build/server/chunks/nodes/13.js-DN0IvWCs.js +0 -46
- package/build/server/chunks/nodes/14.js-BPrf4PxP.js +0 -9
- package/build/server/chunks/nodes/15.js-B9n86nFk.js +0 -12
- package/build/server/chunks/nodes/16.js-MQWaFHIA.js +0 -45
- package/build/server/chunks/nodes/17.js-BqQwHV4F.js +0 -45
- package/build/server/chunks/nodes/18.js-CpKFgiup.js +0 -48
- package/build/server/chunks/nodes/19.js-CCrOg127.js +0 -46
- package/build/server/chunks/nodes/2.js-FPoIQ4QE.js +0 -45
- package/build/server/chunks/nodes/20.js-B5Fv-_hl.js +0 -46
- package/build/server/chunks/nodes/21.js-DIqkKAtP.js +0 -45
- package/build/server/chunks/nodes/3.js-BBLaot9F.js +0 -45
- package/build/server/chunks/nodes/4.js-cmSXc6Wt.js +0 -45
- package/build/server/chunks/nodes/5.js-CxQRjV9G.js +0 -49
- package/build/server/chunks/nodes/6.js-4fNyzqc9.js +0 -45
- package/build/server/chunks/nodes/7.js-D_kCF7ql.js +0 -45
- package/build/server/chunks/nodes/8.js-D32pPbKa.js +0 -12
- package/build/server/chunks/nodes/9.js-Dl3MVT1-.js +0 -45
- /package/build/client/_app/immutable/assets/{5.5dJKCkOT.css → 6.5dJKCkOT.css} +0 -0
- /package/build/client/_app/immutable/assets/{5.5dJKCkOT.css.br → 6.5dJKCkOT.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{5.5dJKCkOT.css.gz → 6.5dJKCkOT.css.gz} +0 -0
- /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css → PreviewStudio.Dga9zAug.css} +0 -0
- /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css.br → PreviewStudio.Dga9zAug.css.br} +0 -0
- /package/build/client/_app/immutable/assets/{pullrequests.Dga9zAug.css.gz → PreviewStudio.Dga9zAug.css.gz} +0 -0
|
@@ -0,0 +1,3271 @@
|
|
|
1
|
+
import { al as head, am as attr_class, _ as derived, ak as escape_html, ao as attr, ap as stringify, a8 as ensure_array_like, ac as spread_props, a6 as clsx, a7 as bind_props, a5 as attributes } from '../../chunks/index.js-CNAJQSM0.js';
|
|
2
|
+
import { p as page } from '../../chunks/index2.js-BuH5pXIO.js';
|
|
3
|
+
import { l as live, a as currentFleet, b as currentMessages, c as currentHealth } from '../../chunks/live.svelte.js-DmaKnCsQ.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 } from '../../chunks/harbour.js-D3N7u1_p.js';
|
|
7
|
+
import { p as parseAttachments, k as kindLabel, f as fileSize, a as UPLOAD_MAX_BYTES, t as thumbUrl, i as isImage, b as pastedName, N as NAME_HEADER, T as TYPE_HEADER } from '../../chunks/attachments.js-BAnnqpd-.js';
|
|
8
|
+
import { L as Lightbox } from '../../chunks/Lightbox.js-Bx6pV-NL.js';
|
|
9
|
+
import { m as markdown, F as File_text } from '../../chunks/markdown.js-8EKwlA8M.js';
|
|
10
|
+
import { r as resolvePicks, W as WRITTEN_MAX, s as callName, t as callRef, u as unpicked, n as escalated, f as choiceLabel, m as cardTaskHref, b as closable } from '../../chunks/inbox.js-CnikIOgr.js';
|
|
11
|
+
import { D as DECIDED_MAX, f as formIn, c as cardForm, d as decidedLabel, w as withoutForm } from '../../chunks/decisionform.js-Cy0nUQ8l.js';
|
|
12
|
+
import { U as UNSORTED, p as parseReply, i as parseThread, j as UNSORTED_TAG, B as Bell, t as topicName, k as foldRuns, l as tagChat, q as quotes, m as parseRefs, n as chipLabel, o as parseMarkers, r as previewCards, s as cardTag, u as threadRows, S as Sheet, P as Popover, v as snippetOf, a as Popover_trigger, b as Popover_content } from '../../chunks/Sheet.js-13o9LKQh.js';
|
|
13
|
+
import { f as firstmateChat, d as duration, p as pendingLabel, a as activitySummary, i as inbox } from '../../chunks/chat.svelte.js-PibwBfjx.js';
|
|
14
|
+
import { m as matchBridgeCards, S as SECRET_NAME, P as PROJECT_ID, b as andList } from '../../chunks/vault.js-DZFWbeCU.js';
|
|
15
|
+
import { h as hue, p as projectLabels, a as aliases } from '../../chunks/aliases.svelte.js-C2TIS6Rl.js';
|
|
16
|
+
import { S as SESSION_HEADER } from '../../chunks/messages.js-CFyGKoqq.js';
|
|
17
|
+
import { a as ago } from '../../chunks/format.js-D3lWEg6U.js';
|
|
18
|
+
import { B as Blocks, A as AppFrame } from '../../chunks/SlotContent.js-CyN_Ifyi.js';
|
|
19
|
+
import { L as LinkedText } from '../../chunks/LinkedText.js-Bto6J20h.js';
|
|
20
|
+
import { L as Loader_circle } from '../../chunks/loader-circle.js-B1RYi3bC.js';
|
|
21
|
+
import { C as Chevron_right } from '../../chunks/chevron-right.js-PPUgqXgy.js';
|
|
22
|
+
import { I as Icon } from '../../chunks/Icon.js-DZKsF3Gu.js';
|
|
23
|
+
import { M as Monitor_play, C as Compass, a as Maximize_2, p as pullRequests, b as previewChecks, u as urlKey } from '../../chunks/MicButton.svelte_svelte_type_style_lang.js-BPXrY8rN.js';
|
|
24
|
+
import { M as Monitor_off, L as Layout_dashboard, b as LivePreview, P as PreviewActions, c as MicButton, S as Square, e as DecisionEvidence, f as answerWith, g as editableTarget, h as PreviewStudio } from '../../chunks/DecisionCard.js-BGiCJsY8.js';
|
|
25
|
+
import { C as Circle_check } from '../../chunks/circle-check.js-oWgE2-Ib.js';
|
|
26
|
+
import { C as Check } from '../../chunks/check.js-BizfScOy.js';
|
|
27
|
+
import { H as Hand } from '../../chunks/hand.js-OgzocAnn.js';
|
|
28
|
+
import { R as Refresh_cw } from '../../chunks/refresh-cw.js-CbDhy8fm.js';
|
|
29
|
+
import { E as External_link } from '../../chunks/external-link.js-DDXtld4W.js';
|
|
30
|
+
import { X } from '../../chunks/x.js-vo5qKISo.js';
|
|
31
|
+
import { C as Circle_x, R as Rail, r as railInsights } from '../../chunks/insights.svelte.js-EX826idS.js';
|
|
32
|
+
import { R as Rotate_cw } from '../../chunks/rotate-cw.js-BPC6IxqZ.js';
|
|
33
|
+
import { A as Arrow_up } from '../../chunks/arrow-up.js-D8v3fwUB.js';
|
|
34
|
+
import { M as Message_circle_question_mark, a as Messages_square } from '../../chunks/messages-square.js-Du4pyX-d.js';
|
|
35
|
+
import { h as html } from '../../chunks/html.js-FW6Ia4bL.js';
|
|
36
|
+
import { P as Puzzle } from '../../chunks/puzzle.js-DISwYPxF.js';
|
|
37
|
+
import { p as parseBatch } from '../../chunks/previewhelper.js-D_I_aa96.js';
|
|
38
|
+
import { G as Git_merge } from '../../chunks/OpenDecision.js-DXWQXckD.js';
|
|
39
|
+
import { G as Git_pull_request } from '../../chunks/git-pull-request.js-DPwvD_k6.js';
|
|
40
|
+
import { C as Circle_dashed } from '../../chunks/circle-dashed.js-DCwzYTH0.js';
|
|
41
|
+
import { C as Circle_alert } from '../../chunks/circle-alert.js-B6F_Zxc7.js';
|
|
42
|
+
import '../../chunks/exports.js-BZBK1HC9.js';
|
|
43
|
+
import '../../chunks/utils2.js-BQzn9ikS.js';
|
|
44
|
+
import '../../chunks/utils.js-BJgm9WbO.js';
|
|
45
|
+
import '../../chunks/root.js-BMwYWidL.js';
|
|
46
|
+
import { P as Plus } from '../../chunks/plus.js-_sWZi-RM.js';
|
|
47
|
+
import { K as Key_round, L as Lock } from '../../chunks/lock.js-BRFwEIy_.js';
|
|
48
|
+
import { S as Square_terminal } from '../../chunks/square-terminal.js-CBs-sBt1.js';
|
|
49
|
+
import { B as Button } from '../../chunks/button.js-Bg2ee8PR.js';
|
|
50
|
+
import { p as phone } from '../../chunks/phone.svelte.js-DSEWkTcb.js';
|
|
51
|
+
import { P as Portal } from '../../chunks/dialog-content.js-CuWOPqMm.js';
|
|
52
|
+
import { t as tick } from '../../chunks/index-server.js-qvYADcF_.js';
|
|
53
|
+
import { T as Triangle_alert } from '../../chunks/triangle-alert.js-DCXyDwgC.js';
|
|
54
|
+
import { R as ResizableRail } from '../../chunks/ResizableRail.js-CsL4ZlsF.js';
|
|
55
|
+
import { g as goto } from '../../chunks/client.js-Z9ZB5A3s.js';
|
|
56
|
+
import '../../chunks/chevron-left.js-D17b39o2.js';
|
|
57
|
+
import '../../chunks/docpath.js-D27w_pf9.js';
|
|
58
|
+
import '../../chunks/index-server2.js-DMc-UvjC.js';
|
|
59
|
+
import '../../chunks/previewnote.js-DB6VK2fp.js';
|
|
60
|
+
import '../../chunks/preview.js-CbgkVvT_.js';
|
|
61
|
+
import '../../chunks/urls.js-CM6aklCF.js';
|
|
62
|
+
import '../../chunks/eye.js-BTtIKcHk.js';
|
|
63
|
+
import '../../chunks/PluginElement.js-B4PKHT2H.js';
|
|
64
|
+
import '../../chunks/pullrequests.js-CCzk2sqm.js';
|
|
65
|
+
import '../../chunks/cloud.js-DiLoEINt.js';
|
|
66
|
+
import '../../chunks/addresses.js-DmMJzvLK.js';
|
|
67
|
+
import '../../chunks/utils3.js-ByN3K_WW.js';
|
|
68
|
+
import '../../chunks/message-square.js-CrZeO0AI.js';
|
|
69
|
+
import '../../chunks/chevron-down.js-DLf9oWYQ.js';
|
|
70
|
+
import '../../chunks/clock.js-BRFOn_JF.js';
|
|
71
|
+
import '../../chunks/scale.js-5D4jKhvV.js';
|
|
72
|
+
import '../../chunks/insights.js-CzzfyHGp.js';
|
|
73
|
+
import '../../chunks/checks.js-DGdGhp1G.js';
|
|
74
|
+
import '../../chunks/TimeBar.js-Dduf0kTb.js';
|
|
75
|
+
import '../../chunks/MateHealthPill.js-DMM619gj.js';
|
|
76
|
+
import '../../chunks/EtaLine.js-B29ZmIHz.js';
|
|
77
|
+
import '../../chunks/WhereBadge.js-DocJaNZe.js';
|
|
78
|
+
import '../../chunks/tone.js-Dxsl-adt.js';
|
|
79
|
+
import '../../chunks/ship.js-BVQ9iFsJ.js';
|
|
80
|
+
import '../../chunks/arrow-up-right.js-B5ORjULl.js';
|
|
81
|
+
import '../../chunks/users.js-B-CA8JtQ.js';
|
|
82
|
+
import '../../chunks/bridge.js-DW4bV609.js';
|
|
83
|
+
import '../../chunks/arrow-right.js-vz3YukWJ.js';
|
|
84
|
+
|
|
85
|
+
function App_window($$renderer, $$props) {
|
|
86
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
87
|
+
const iconData = {
|
|
88
|
+
"name": "app-window",
|
|
89
|
+
"size": 24,
|
|
90
|
+
"node": [
|
|
91
|
+
[
|
|
92
|
+
"rect",
|
|
93
|
+
{ "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }
|
|
94
|
+
],
|
|
95
|
+
["path", { "d": "M10 4v4" }],
|
|
96
|
+
["path", { "d": "M2 8h20" }],
|
|
97
|
+
["path", { "d": "M6 4v4" }]
|
|
98
|
+
]
|
|
99
|
+
};
|
|
100
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
101
|
+
}
|
|
102
|
+
function Arrow_left_right($$renderer, $$props) {
|
|
103
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
104
|
+
const iconData = {
|
|
105
|
+
"name": "arrow-left-right",
|
|
106
|
+
"size": 24,
|
|
107
|
+
"node": [
|
|
108
|
+
["path", { "d": "M8 3 4 7l4 4" }],
|
|
109
|
+
["path", { "d": "M4 7h16" }],
|
|
110
|
+
["path", { "d": "m16 21 4-4-4-4" }],
|
|
111
|
+
["path", { "d": "M20 17H4" }]
|
|
112
|
+
]
|
|
113
|
+
};
|
|
114
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
115
|
+
}
|
|
116
|
+
function Panel_left($$renderer, $$props) {
|
|
117
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
118
|
+
const iconData = {
|
|
119
|
+
"name": "panel-left",
|
|
120
|
+
"size": 24,
|
|
121
|
+
"node": [
|
|
122
|
+
[
|
|
123
|
+
"rect",
|
|
124
|
+
{ "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
|
|
125
|
+
],
|
|
126
|
+
["path", { "d": "M9 3v18" }]
|
|
127
|
+
],
|
|
128
|
+
"aliases": ["sidebar"]
|
|
129
|
+
};
|
|
130
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
131
|
+
}
|
|
132
|
+
function Panel_right($$renderer, $$props) {
|
|
133
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
134
|
+
const iconData = {
|
|
135
|
+
"name": "panel-right",
|
|
136
|
+
"size": 24,
|
|
137
|
+
"node": [
|
|
138
|
+
[
|
|
139
|
+
"rect",
|
|
140
|
+
{ "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
|
|
141
|
+
],
|
|
142
|
+
["path", { "d": "M15 3v18" }]
|
|
143
|
+
]
|
|
144
|
+
};
|
|
145
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
146
|
+
}
|
|
147
|
+
function Paperclip($$renderer, $$props) {
|
|
148
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
149
|
+
const iconData = {
|
|
150
|
+
"name": "paperclip",
|
|
151
|
+
"size": 24,
|
|
152
|
+
"node": [
|
|
153
|
+
[
|
|
154
|
+
"path",
|
|
155
|
+
{
|
|
156
|
+
"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"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
]
|
|
160
|
+
};
|
|
161
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
162
|
+
}
|
|
163
|
+
function Pen_line($$renderer, $$props) {
|
|
164
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
165
|
+
const iconData = {
|
|
166
|
+
"name": "pen-line",
|
|
167
|
+
"size": 24,
|
|
168
|
+
"node": [
|
|
169
|
+
["path", { "d": "M13 21h8" }],
|
|
170
|
+
[
|
|
171
|
+
"path",
|
|
172
|
+
{
|
|
173
|
+
"d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
],
|
|
177
|
+
"aliases": ["edit-3"]
|
|
178
|
+
};
|
|
179
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
180
|
+
}
|
|
181
|
+
function Reply($$renderer, $$props) {
|
|
182
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
183
|
+
const iconData = {
|
|
184
|
+
"name": "reply",
|
|
185
|
+
"size": 24,
|
|
186
|
+
"node": [
|
|
187
|
+
["path", { "d": "M20 18v-2a4 4 0 0 0-4-4H4" }],
|
|
188
|
+
["path", { "d": "m9 17-5-5 5-5" }]
|
|
189
|
+
]
|
|
190
|
+
};
|
|
191
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
192
|
+
}
|
|
193
|
+
function Thumbs_up($$renderer, $$props) {
|
|
194
|
+
let { $$slots, $$events, ...props } = $$props;
|
|
195
|
+
const iconData = {
|
|
196
|
+
"name": "thumbs-up",
|
|
197
|
+
"size": 24,
|
|
198
|
+
"node": [
|
|
199
|
+
[
|
|
200
|
+
"path",
|
|
201
|
+
{
|
|
202
|
+
"d": "M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
["path", { "d": "M7 10v12" }]
|
|
206
|
+
]
|
|
207
|
+
};
|
|
208
|
+
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
209
|
+
}
|
|
210
|
+
function shipHealth(h) {
|
|
211
|
+
if (h.stepFailed.length || h.trouble.some((t) => t.status === "failed")) {
|
|
212
|
+
return { label: "Something failed", tone: "danger" };
|
|
213
|
+
}
|
|
214
|
+
const n = h.needsYou.length;
|
|
215
|
+
if (n) return { label: `${n} need${n === 1 ? "s" : ""} you`, tone: "sea" };
|
|
216
|
+
if (h.trouble.length) return { label: "Keeping an eye on a problem", tone: "warning" };
|
|
217
|
+
return { label: "All well", tone: "success" };
|
|
218
|
+
}
|
|
219
|
+
const TOO_LARGE = `Too large · ${UPLOAD_MAX_BYTES / (1024 * 1024)} MB at most`;
|
|
220
|
+
class Attachments {
|
|
221
|
+
drafts = [];
|
|
222
|
+
/** Files dropped on the chat, for the composer to take. */
|
|
223
|
+
dropped = [];
|
|
224
|
+
inflight = /* @__PURE__ */ new Map();
|
|
225
|
+
/** Add files and start uploading them. `pasted`: from the clipboard, so an image under the browser's generic name gets a readable one. */
|
|
226
|
+
add(files, token, pasted = false) {
|
|
227
|
+
for (const f of files) {
|
|
228
|
+
const generic = pasted && isImage(f.type) && /^image\.\w+$/.test(f.name);
|
|
229
|
+
const name = generic || !f.name ? pastedName(f.type) : f.name;
|
|
230
|
+
this.drafts.push({
|
|
231
|
+
id: crypto.randomUUID(),
|
|
232
|
+
name,
|
|
233
|
+
size: f.size,
|
|
234
|
+
type: f.type,
|
|
235
|
+
preview: isImage(f.type) ? URL.createObjectURL(f) : null,
|
|
236
|
+
state: "uploading",
|
|
237
|
+
progress: 0,
|
|
238
|
+
error: null,
|
|
239
|
+
upload: null
|
|
240
|
+
});
|
|
241
|
+
const d = this.drafts[this.drafts.length - 1];
|
|
242
|
+
if (f.size > UPLOAD_MAX_BYTES) this.fail(d, TOO_LARGE);
|
|
243
|
+
else if (f.size === 0) this.fail(d, "Empty file");
|
|
244
|
+
else this.send(d, f, token);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
remove(id) {
|
|
248
|
+
this.inflight.get(id)?.abort();
|
|
249
|
+
this.inflight.delete(id);
|
|
250
|
+
const d = this.drafts.find((x) => x.id === id);
|
|
251
|
+
if (d?.preview) URL.revokeObjectURL(d.preview);
|
|
252
|
+
this.drafts = this.drafts.filter((x) => x.id !== id);
|
|
253
|
+
}
|
|
254
|
+
/** The uploaded files, handed to the message; failed ones stay listed. */
|
|
255
|
+
take() {
|
|
256
|
+
const ready = this.drafts.filter((d) => d.state === "ready" && d.upload);
|
|
257
|
+
for (const d of ready) if (d.preview) URL.revokeObjectURL(d.preview);
|
|
258
|
+
this.drafts = this.drafts.filter((d) => !ready.includes(d));
|
|
259
|
+
return ready.map((d) => d.upload);
|
|
260
|
+
}
|
|
261
|
+
get uploading() {
|
|
262
|
+
return this.drafts.some((d) => d.state === "uploading");
|
|
263
|
+
}
|
|
264
|
+
get ready() {
|
|
265
|
+
return this.drafts.some((d) => d.state === "ready");
|
|
266
|
+
}
|
|
267
|
+
fail(d, error) {
|
|
268
|
+
d.state = "failed";
|
|
269
|
+
d.error = error;
|
|
270
|
+
}
|
|
271
|
+
send(d, file, token) {
|
|
272
|
+
const xhr = new XMLHttpRequest();
|
|
273
|
+
this.inflight.set(d.id, xhr);
|
|
274
|
+
xhr.open("POST", "/api/firstmate/uploads");
|
|
275
|
+
xhr.setRequestHeader(SESSION_HEADER, token);
|
|
276
|
+
xhr.setRequestHeader(NAME_HEADER, encodeURIComponent(d.name));
|
|
277
|
+
xhr.setRequestHeader(TYPE_HEADER, file.type);
|
|
278
|
+
xhr.setRequestHeader("content-type", "application/octet-stream");
|
|
279
|
+
xhr.upload.onprogress = (e) => {
|
|
280
|
+
if (e.lengthComputable) d.progress = e.loaded / e.total;
|
|
281
|
+
};
|
|
282
|
+
xhr.onload = () => {
|
|
283
|
+
this.inflight.delete(d.id);
|
|
284
|
+
let body = {};
|
|
285
|
+
try {
|
|
286
|
+
body = JSON.parse(xhr.responseText);
|
|
287
|
+
} catch {
|
|
288
|
+
}
|
|
289
|
+
if (xhr.status === 201 && typeof body.path === "string") {
|
|
290
|
+
d.upload = {
|
|
291
|
+
path: body.path,
|
|
292
|
+
name: body.name ?? d.name,
|
|
293
|
+
size: body.size ?? d.size,
|
|
294
|
+
type: body.type ?? ""
|
|
295
|
+
};
|
|
296
|
+
d.progress = 1;
|
|
297
|
+
d.state = "ready";
|
|
298
|
+
} else if (xhr.status === 413) this.fail(d, TOO_LARGE);
|
|
299
|
+
else this.fail(d, body.message ?? `Not uploaded · Wheelhouse answered ${xhr.status}`);
|
|
300
|
+
};
|
|
301
|
+
xhr.onerror = () => {
|
|
302
|
+
this.inflight.delete(d.id);
|
|
303
|
+
this.fail(d, "Could not reach the Wheelhouse server");
|
|
304
|
+
};
|
|
305
|
+
xhr.send(file);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
const attachments = new Attachments();
|
|
309
|
+
function SentFiles($$renderer, $$props) {
|
|
310
|
+
$$renderer.component(($$renderer2) => {
|
|
311
|
+
let { files, pending = false } = $$props;
|
|
312
|
+
let broken = {};
|
|
313
|
+
const thumb = (a) => broken[a.path] ? null : thumbUrl(a);
|
|
314
|
+
const images = derived(() => files.filter((a) => thumb(a)));
|
|
315
|
+
let open = null;
|
|
316
|
+
let $$settled = true;
|
|
317
|
+
let $$inner_renderer;
|
|
318
|
+
function $$render_inner($$renderer3) {
|
|
319
|
+
$$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"><!--[-->`);
|
|
320
|
+
const each_array = ensure_array_like(files);
|
|
321
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
322
|
+
let a = each_array[$$index];
|
|
323
|
+
const src = thumb(a);
|
|
324
|
+
$$renderer3.push(`<li class="flex items-center gap-2.5 py-1.5 text-sm">`);
|
|
325
|
+
if (src) {
|
|
326
|
+
$$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>`);
|
|
327
|
+
} else {
|
|
328
|
+
$$renderer3.push(`<!--[-1--><span class="flex size-10 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
|
|
329
|
+
File_text($$renderer3, { class: "size-4" });
|
|
330
|
+
$$renderer3.push(`<!----></span>`);
|
|
331
|
+
}
|
|
332
|
+
$$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>`);
|
|
333
|
+
}
|
|
334
|
+
$$renderer3.push(`<!--]--></ul></div> `);
|
|
335
|
+
if (images().length) {
|
|
336
|
+
$$renderer3.push("<!--[0-->");
|
|
337
|
+
Lightbox($$renderer3, {
|
|
338
|
+
shots: images().map((a) => ({ name: a.name, url: thumb(a) ?? "" })),
|
|
339
|
+
get index() {
|
|
340
|
+
return open;
|
|
341
|
+
},
|
|
342
|
+
set index($$value) {
|
|
343
|
+
open = $$value;
|
|
344
|
+
$$settled = false;
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
} else {
|
|
348
|
+
$$renderer3.push("<!--[-1-->");
|
|
349
|
+
}
|
|
350
|
+
$$renderer3.push(`<!--]-->`);
|
|
351
|
+
}
|
|
352
|
+
do {
|
|
353
|
+
$$settled = true;
|
|
354
|
+
$$inner_renderer = $$renderer2.copy();
|
|
355
|
+
$$render_inner($$inner_renderer);
|
|
356
|
+
} while (!$$settled);
|
|
357
|
+
$$renderer2.subsume($$inner_renderer);
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
const headOf = (c) => ({
|
|
361
|
+
cardId: c.id,
|
|
362
|
+
taskId: c.taskId,
|
|
363
|
+
taskTitle: c.taskTitle,
|
|
364
|
+
projectId: c.projectId,
|
|
365
|
+
kind: c.kind,
|
|
366
|
+
key: c.key,
|
|
367
|
+
question: c.choices?.intro || c.question,
|
|
368
|
+
askedAt: c.askedAt,
|
|
369
|
+
secondMate: c.secondMate ?? null
|
|
370
|
+
});
|
|
371
|
+
function chatDecisions(cards, answered, local, opened = /* @__PURE__ */ new Set()) {
|
|
372
|
+
const out = [];
|
|
373
|
+
const shown = /* @__PURE__ */ new Set();
|
|
374
|
+
for (const c of cards) {
|
|
375
|
+
const head2 = headOf(c);
|
|
376
|
+
const mine = local[c.id]?.question === c.question ? local[c.id] : null;
|
|
377
|
+
const taken = c.sent && c.sent.delivery !== "failed" ? c.sent : null;
|
|
378
|
+
if (!escalated(c) && !opened.has(c.id) && !mine && !taken) continue;
|
|
379
|
+
if (mine && !(mine.posted && taken)) {
|
|
380
|
+
out.push({
|
|
381
|
+
id: c.id,
|
|
382
|
+
head: head2,
|
|
383
|
+
card: c,
|
|
384
|
+
answer: {
|
|
385
|
+
choice: mine.choice,
|
|
386
|
+
label: choiceLabel(c, mine.choice),
|
|
387
|
+
picks: mine.picks,
|
|
388
|
+
note: mine.note,
|
|
389
|
+
at: null,
|
|
390
|
+
delivery: mine.posted ? null : "sending"
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
} else if (taken) {
|
|
394
|
+
shown.add(taken.requestId);
|
|
395
|
+
out.push({
|
|
396
|
+
id: c.id,
|
|
397
|
+
head: head2,
|
|
398
|
+
card: c,
|
|
399
|
+
answer: {
|
|
400
|
+
choice: taken.choice,
|
|
401
|
+
label: choiceLabel(c, taken.choice),
|
|
402
|
+
picks: taken.picks,
|
|
403
|
+
note: taken.note,
|
|
404
|
+
at: taken.at,
|
|
405
|
+
delivery: taken.delivery
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
} else {
|
|
409
|
+
out.push({ id: c.id, head: head2, card: c, answer: null });
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
const open = new Map(out.map((d) => [d.id, d]));
|
|
413
|
+
for (const a of answered) {
|
|
414
|
+
if (shown.has(a.requestId) || a.delivery === "failed") continue;
|
|
415
|
+
if (open.get(a.cardId)?.head.question === a.question) continue;
|
|
416
|
+
out.push({
|
|
417
|
+
id: `answer:${a.requestId}`,
|
|
418
|
+
head: {
|
|
419
|
+
cardId: a.cardId,
|
|
420
|
+
taskId: a.taskId,
|
|
421
|
+
taskTitle: a.taskTitle,
|
|
422
|
+
projectId: a.projectId,
|
|
423
|
+
kind: a.kind,
|
|
424
|
+
key: a.key,
|
|
425
|
+
question: a.question,
|
|
426
|
+
askedAt: a.askedAt
|
|
427
|
+
},
|
|
428
|
+
card: null,
|
|
429
|
+
answer: {
|
|
430
|
+
choice: a.choice,
|
|
431
|
+
label: a.label,
|
|
432
|
+
picks: a.picks,
|
|
433
|
+
note: a.note,
|
|
434
|
+
at: a.answeredAt,
|
|
435
|
+
delivery: a.delivery
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
return out;
|
|
440
|
+
}
|
|
441
|
+
const time = (s) => {
|
|
442
|
+
const t = s ? Date.parse(s) : NaN;
|
|
443
|
+
return Number.isNaN(t) ? null : t;
|
|
444
|
+
};
|
|
445
|
+
const placeAt = (d) => time(d.head.askedAt) ?? time(d.answer?.at);
|
|
446
|
+
function placeDecisions(items, decisions) {
|
|
447
|
+
const before = /* @__PURE__ */ new Map();
|
|
448
|
+
const end = [];
|
|
449
|
+
const times = items.map((it) => time(it.at));
|
|
450
|
+
const first = times.find((t) => t !== null) ?? null;
|
|
451
|
+
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));
|
|
452
|
+
for (const { d, at } of sorted) {
|
|
453
|
+
if (at === null) {
|
|
454
|
+
end.push(d);
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (d.answer && !d.card && (first === null || at < first)) continue;
|
|
458
|
+
const i = times.findIndex((t) => t !== null && t > at);
|
|
459
|
+
if (i < 0) end.push(d);
|
|
460
|
+
else before.set(i, [...before.get(i) ?? [], d]);
|
|
461
|
+
}
|
|
462
|
+
return { before, end };
|
|
463
|
+
}
|
|
464
|
+
const SLUG = /^[^\s()]+$/;
|
|
465
|
+
const QUOTED = /^> About the decision on ([^\s()]+) \(key ([^\s()]+)\), not an answer yet: “(.*)”\n(?:> [^\n]*\n)*\n([\s\S]+)$/;
|
|
466
|
+
const cardIdOf = (ref) => `${ref.taskId}:${ref.key}`;
|
|
467
|
+
const canDiscuss = (ref) => SLUG.test(ref.taskId) && SLUG.test(ref.key);
|
|
468
|
+
function parseDiscuss(text) {
|
|
469
|
+
const m = text.replace(/\r\n?/g, "\n").match(QUOTED);
|
|
470
|
+
if (!m || !m[4].trim()) return null;
|
|
471
|
+
return { cardId: cardIdOf({ taskId: m[1], key: m[2] }), question: m[3], body: m[4].trim() };
|
|
472
|
+
}
|
|
473
|
+
function refinedForm(thread, question) {
|
|
474
|
+
const quoted = snippetOf(question);
|
|
475
|
+
const msgs = thread?.messages ?? [];
|
|
476
|
+
for (let i = msgs.length - 1; i >= 0; i--) {
|
|
477
|
+
const m = msgs[i];
|
|
478
|
+
const f = m.who === "firstmate" && m.question === quoted ? formIn(m.text) : null;
|
|
479
|
+
if (f) return { id: m.id, form: f };
|
|
480
|
+
}
|
|
481
|
+
return null;
|
|
482
|
+
}
|
|
483
|
+
function byQuestion(thread, question) {
|
|
484
|
+
const quoted = snippetOf(question);
|
|
485
|
+
const earlier = [];
|
|
486
|
+
const current = [];
|
|
487
|
+
for (const m of thread?.messages ?? []) {
|
|
488
|
+
if (m.question === quoted) {
|
|
489
|
+
current.push(m);
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
const last = earlier.at(-1);
|
|
493
|
+
if (last?.question === m.question) last.messages.push(m);
|
|
494
|
+
else earlier.push({ question: m.question, messages: [m] });
|
|
495
|
+
}
|
|
496
|
+
return { earlier, current };
|
|
497
|
+
}
|
|
498
|
+
function threads(items, cards) {
|
|
499
|
+
const byCard = /* @__PURE__ */ new Map();
|
|
500
|
+
const hidden = /* @__PURE__ */ new Set();
|
|
501
|
+
for (let i = 0; i < items.length; i++) {
|
|
502
|
+
const it = items[i];
|
|
503
|
+
if (it.kind !== "user") continue;
|
|
504
|
+
const d = parseDiscuss(it.text);
|
|
505
|
+
if (!d || !cards.has(d.cardId)) continue;
|
|
506
|
+
const thread = byCard.get(d.cardId) ?? { messages: [], answering: false };
|
|
507
|
+
byCard.set(d.cardId, thread);
|
|
508
|
+
thread.messages.push({
|
|
509
|
+
id: it.id,
|
|
510
|
+
who: "captain",
|
|
511
|
+
text: d.body,
|
|
512
|
+
at: it.at,
|
|
513
|
+
question: d.question
|
|
514
|
+
});
|
|
515
|
+
thread.answering = false;
|
|
516
|
+
hidden.add(it.id);
|
|
517
|
+
const next = items[i + 1];
|
|
518
|
+
if (next?.kind !== "turn" || next.trigger !== "captain") continue;
|
|
519
|
+
if (next.parts.some((p) => p.kind === "question")) continue;
|
|
520
|
+
hidden.add(next.id);
|
|
521
|
+
for (const p of next.parts) {
|
|
522
|
+
if (p.kind === "text")
|
|
523
|
+
thread.messages.push({
|
|
524
|
+
id: p.id,
|
|
525
|
+
who: "firstmate",
|
|
526
|
+
text: p.text,
|
|
527
|
+
at: next.at,
|
|
528
|
+
question: d.question
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
thread.answering = !next.done && !next.interrupted;
|
|
532
|
+
i++;
|
|
533
|
+
}
|
|
534
|
+
return { byCard, hidden };
|
|
535
|
+
}
|
|
536
|
+
function pendingThreads(pending) {
|
|
537
|
+
const out = /* @__PURE__ */ new Map();
|
|
538
|
+
for (const p of pending) {
|
|
539
|
+
const d = parseDiscuss(p.text);
|
|
540
|
+
if (!d) continue;
|
|
541
|
+
out.set(d.cardId, [...out.get(d.cardId) ?? [], { pending: p, body: d.body }]);
|
|
542
|
+
}
|
|
543
|
+
return out;
|
|
544
|
+
}
|
|
545
|
+
const BRIEFING_MIN_CHARS = 500;
|
|
546
|
+
function isBriefing(text) {
|
|
547
|
+
if (!text || text.length < BRIEFING_MIN_CHARS) return false;
|
|
548
|
+
const prose = text.replace(
|
|
549
|
+
/^ {0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?(?:^ {0,3}\1[`~]*[ \t]*$|(?![\s\S]))/gm,
|
|
550
|
+
""
|
|
551
|
+
);
|
|
552
|
+
return /^\s{0,3}(?:[-*+]|\d+[.)]|#{1,4})\s+\S/m.test(prose);
|
|
553
|
+
}
|
|
554
|
+
const BLOCK$1 = /```decision-form[^\n]*\n[\s\S]*?(?:```|$)/g;
|
|
555
|
+
const ANSWER = /^Decided: (.+?)(?: — for: “(.+)”)?$/;
|
|
556
|
+
const tidy = (s) => s.replace(/\s+/g, " ").trim();
|
|
557
|
+
function formAtEnd(text) {
|
|
558
|
+
const blocks = [...text.matchAll(BLOCK$1)];
|
|
559
|
+
const last = blocks[blocks.length - 1];
|
|
560
|
+
if (!last || text.slice(last.index + last[0].length).trim()) return null;
|
|
561
|
+
const form = formIn(text);
|
|
562
|
+
return form && { form, words: text.slice(0, last.index).trim() };
|
|
563
|
+
}
|
|
564
|
+
function answerText(form, a, note) {
|
|
565
|
+
const words = tidy(a.decided ?? "").slice(0, DECIDED_MAX);
|
|
566
|
+
if (!words) return "";
|
|
567
|
+
const question = tidy(form.prompt ?? "");
|
|
568
|
+
const line = question ? `Decided: ${words} — for: “${question}”` : `Decided: ${words}`;
|
|
569
|
+
const more = note?.trim();
|
|
570
|
+
return more ? `${line}
|
|
571
|
+
|
|
572
|
+
${more}` : line;
|
|
573
|
+
}
|
|
574
|
+
function parseAnswer(text) {
|
|
575
|
+
const first = text.replace(/\r\n?/g, "\n").trim().split("\n")[0];
|
|
576
|
+
const m = ANSWER.exec(first);
|
|
577
|
+
const words = m ? tidy(m[1]) : "";
|
|
578
|
+
return words ? { words, question: m?.[2] ? tidy(m[2]) : null } : null;
|
|
579
|
+
}
|
|
580
|
+
const fits = (form, words) => form.kind === "text" || form.kind !== "picks" && form.options.some((o) => o.answer.decided === words);
|
|
581
|
+
function chatForms(items, hidden, pending = [], inbox2 = []) {
|
|
582
|
+
const said = [];
|
|
583
|
+
const note = (m) => ({
|
|
584
|
+
id: null,
|
|
585
|
+
text: m.text,
|
|
586
|
+
item: null,
|
|
587
|
+
failed: m.delivery === "failed"
|
|
588
|
+
});
|
|
589
|
+
let n = 0;
|
|
590
|
+
for (const it of items) {
|
|
591
|
+
const at = Date.parse(it.at);
|
|
592
|
+
while (n < inbox2.length && Date.parse(inbox2[n].submittedAt) < at) said.push(note(inbox2[n++]));
|
|
593
|
+
if (hidden.has(it.id)) continue;
|
|
594
|
+
said.push({ id: it.id, text: it.kind === "user" ? it.text : null, item: it, failed: false });
|
|
595
|
+
}
|
|
596
|
+
for (const m of inbox2.slice(n)) said.push(note(m));
|
|
597
|
+
const shown = /* @__PURE__ */ new Set();
|
|
598
|
+
const unshown = pending.filter((p) => {
|
|
599
|
+
const from = said.findIndex((x) => x.id !== null && x.id === p.after);
|
|
600
|
+
const echo = said.findIndex(
|
|
601
|
+
(x, i) => i > from && !shown.has(i) && x.text !== null && tidy(x.text) === tidy(p.text)
|
|
602
|
+
);
|
|
603
|
+
if (echo < 0) return true;
|
|
604
|
+
shown.add(echo);
|
|
605
|
+
return false;
|
|
606
|
+
});
|
|
607
|
+
const out = /* @__PURE__ */ new Map();
|
|
608
|
+
const asked = [];
|
|
609
|
+
const answer = (text) => {
|
|
610
|
+
const a = parseAnswer(text);
|
|
611
|
+
if (!a) return;
|
|
612
|
+
const to = a.question ? asked.findLast((f) => f.decided === null && tidy(f.form.prompt ?? "") === a.question) : asked.at(-1);
|
|
613
|
+
if (to && to.decided === null && (a.question || fits(to.form, a.words))) to.decided = a.words;
|
|
614
|
+
};
|
|
615
|
+
for (const { text, item, failed } of said) {
|
|
616
|
+
if (text !== null && !failed) answer(text);
|
|
617
|
+
if (item?.kind !== "turn") continue;
|
|
618
|
+
for (const p of item.parts) {
|
|
619
|
+
const reply = p.kind === "text" ? formAtEnd(p.text) : null;
|
|
620
|
+
if (!reply) continue;
|
|
621
|
+
const f = { ...reply, decided: null, active: false };
|
|
622
|
+
out.set(p.id, f);
|
|
623
|
+
asked.push(f);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
for (const p of unshown) answer(p.text);
|
|
627
|
+
const seen = /* @__PURE__ */ new Set();
|
|
628
|
+
for (const f of asked.toReversed()) {
|
|
629
|
+
const key = f.form.prompt ? tidy(f.form.prompt) : null;
|
|
630
|
+
f.active = f.decided === null && (key === null ? f === asked.at(-1) : !seen.has(key));
|
|
631
|
+
if (key !== null) seen.add(key);
|
|
632
|
+
}
|
|
633
|
+
return out;
|
|
634
|
+
}
|
|
635
|
+
const PURPOSE_MAX = 300;
|
|
636
|
+
const PROJECTS_MAX = 20;
|
|
637
|
+
const BLOCK = /^```vault-request[ \t]*\r?\n([\s\S]*?)\r?\n?```[ \t]*$/gm;
|
|
638
|
+
const STORED = /^Stored secret ([A-Za-z_][A-Za-z0-9_]{0,127}) in the vault\.(?: |$)/;
|
|
639
|
+
function parseRequest(body) {
|
|
640
|
+
const fields = /* @__PURE__ */ new Map();
|
|
641
|
+
for (const raw of body.split(/\r?\n/)) {
|
|
642
|
+
const line = raw.trim();
|
|
643
|
+
if (!line) continue;
|
|
644
|
+
const m = /^([a-z]+)\s*:\s*(.*)$/i.exec(line);
|
|
645
|
+
if (!m) return null;
|
|
646
|
+
const key = m[1].toLowerCase();
|
|
647
|
+
if (!["name", "purpose", "projects"].includes(key) || fields.has(key)) return null;
|
|
648
|
+
fields.set(key, m[2].trim());
|
|
649
|
+
}
|
|
650
|
+
const name = fields.get("name") ?? "";
|
|
651
|
+
if (!SECRET_NAME.test(name)) return null;
|
|
652
|
+
const purpose = fields.get("purpose") ?? "";
|
|
653
|
+
if (purpose.length > PURPOSE_MAX) return null;
|
|
654
|
+
const projects = [
|
|
655
|
+
...new Set(
|
|
656
|
+
(fields.get("projects") ?? "").split(/[\s,]+/).map((p) => p.trim()).filter(Boolean)
|
|
657
|
+
)
|
|
658
|
+
];
|
|
659
|
+
if (projects.length > PROJECTS_MAX || !projects.every((p) => PROJECT_ID.test(p))) return null;
|
|
660
|
+
return { name, purpose, projects };
|
|
661
|
+
}
|
|
662
|
+
function vaultRequests(text) {
|
|
663
|
+
if (!text.includes("```vault-request")) return { words: text, requests: [] };
|
|
664
|
+
const requests = [];
|
|
665
|
+
const words = text.replace(BLOCK, (block, body) => {
|
|
666
|
+
const r = parseRequest(body);
|
|
667
|
+
if (!r) return block;
|
|
668
|
+
requests.push(r);
|
|
669
|
+
return "";
|
|
670
|
+
});
|
|
671
|
+
return requests.length ? { words: words.replace(/\n{3,}/g, "\n\n").trim(), requests } : { words: text, requests };
|
|
672
|
+
}
|
|
673
|
+
function storedText(name, projects) {
|
|
674
|
+
const who = projects.length ? `${andList(projects)} can use it.` : "No project can use it yet.";
|
|
675
|
+
return `Stored secret ${name} in the vault. ${who}`;
|
|
676
|
+
}
|
|
677
|
+
function parseStored(text) {
|
|
678
|
+
return STORED.exec(text.trim())?.[1] ?? null;
|
|
679
|
+
}
|
|
680
|
+
function vaultAsks(items, pending = [], inbox2 = []) {
|
|
681
|
+
const out = /* @__PURE__ */ new Map();
|
|
682
|
+
const asked = [];
|
|
683
|
+
const stored = (text, at = Infinity) => {
|
|
684
|
+
const name = parseStored(text);
|
|
685
|
+
if (!name) return;
|
|
686
|
+
for (const [a, when] of asked) if (a.request.name === name && when < at) a.stored = true;
|
|
687
|
+
};
|
|
688
|
+
for (const it of items) {
|
|
689
|
+
if (it.kind === "user") stored(it.text);
|
|
690
|
+
if (it.kind !== "turn") continue;
|
|
691
|
+
const at = Date.parse(it.at);
|
|
692
|
+
for (const p of it.parts) {
|
|
693
|
+
if (p.kind !== "text") continue;
|
|
694
|
+
const { requests } = vaultRequests(p.text);
|
|
695
|
+
if (!requests.length) continue;
|
|
696
|
+
const asks = requests.map((request) => ({ request, stored: false }));
|
|
697
|
+
out.set(p.id, asks);
|
|
698
|
+
asked.push(...asks.map((a) => [a, at]));
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
for (const m of inbox2) {
|
|
702
|
+
if (m.delivery !== "failed") stored(m.text, Date.parse(m.submittedAt));
|
|
703
|
+
}
|
|
704
|
+
for (const p of pending) stored(p.text);
|
|
705
|
+
return out;
|
|
706
|
+
}
|
|
707
|
+
const KEY$1 = "wheelhouse-chat-tags";
|
|
708
|
+
const FOLD_KEY = "wheelhouse-chat-fold";
|
|
709
|
+
const MAX = 1e3;
|
|
710
|
+
class ChatTags {
|
|
711
|
+
retags = {};
|
|
712
|
+
fold = false;
|
|
713
|
+
loaded = false;
|
|
714
|
+
load() {
|
|
715
|
+
if (this.loaded) return;
|
|
716
|
+
this.loaded = true;
|
|
717
|
+
try {
|
|
718
|
+
const v = JSON.parse(localStorage.getItem(KEY$1) ?? "{}");
|
|
719
|
+
if (v && typeof v === "object" && !Array.isArray(v)) this.retags = Object.fromEntries(Object.entries(v).filter((e) => typeof e[1] === "string"));
|
|
720
|
+
this.fold = localStorage.getItem(FOLD_KEY) === "1";
|
|
721
|
+
} catch {
|
|
722
|
+
this.retags = {};
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
/** Moves a message or card to a thread. */
|
|
726
|
+
move(key, topic) {
|
|
727
|
+
this.load();
|
|
728
|
+
const next = { ...this.retags };
|
|
729
|
+
delete next[key];
|
|
730
|
+
next[key] = topic;
|
|
731
|
+
const keys = Object.keys(next);
|
|
732
|
+
for (const k of keys.slice(0, Math.max(0, keys.length - MAX))) delete next[k];
|
|
733
|
+
this.retags = next;
|
|
734
|
+
try {
|
|
735
|
+
localStorage.setItem(KEY$1, JSON.stringify(next));
|
|
736
|
+
} catch {
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
setFold(on) {
|
|
740
|
+
this.fold = on;
|
|
741
|
+
try {
|
|
742
|
+
localStorage.setItem(FOLD_KEY, on ? "1" : "0");
|
|
743
|
+
} catch {
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
const chatTags = new ChatTags();
|
|
748
|
+
const KEY = "wheelhouse-chat-decisions";
|
|
749
|
+
class OpenedDecisions {
|
|
750
|
+
ids = [];
|
|
751
|
+
loaded = false;
|
|
752
|
+
load() {
|
|
753
|
+
if (this.loaded) return;
|
|
754
|
+
this.loaded = true;
|
|
755
|
+
try {
|
|
756
|
+
const v = JSON.parse(localStorage.getItem(KEY) ?? "[]");
|
|
757
|
+
if (Array.isArray(v)) this.ids = v.filter((x) => typeof x === "string");
|
|
758
|
+
} catch {
|
|
759
|
+
this.ids = [];
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
add(id) {
|
|
763
|
+
this.load();
|
|
764
|
+
if (this.ids.includes(id)) return;
|
|
765
|
+
this.ids = [...this.ids, id].slice(-50);
|
|
766
|
+
try {
|
|
767
|
+
localStorage.setItem(KEY, JSON.stringify(this.ids));
|
|
768
|
+
} catch {
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
const openedDecisions = new OpenedDecisions();
|
|
773
|
+
const ENDPOINT = "/api/firstmate/reactions";
|
|
774
|
+
const ids = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : null;
|
|
775
|
+
class Reactions {
|
|
776
|
+
liked = [];
|
|
777
|
+
seq = 0;
|
|
778
|
+
/** Reads the marks from the server again. */
|
|
779
|
+
async refresh() {
|
|
780
|
+
const n = ++this.seq;
|
|
781
|
+
try {
|
|
782
|
+
const res = await fetch(ENDPOINT);
|
|
783
|
+
const v = res.ok ? ids((await res.json()).liked) : null;
|
|
784
|
+
if (v && n === this.seq) this.liked = v;
|
|
785
|
+
} catch {
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
has(id) {
|
|
789
|
+
return this.liked.includes(id);
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Marks or unmarks a message at once and has the server keep it; a refused
|
|
793
|
+
* change is undone. True only when the server newly marked it.
|
|
794
|
+
*/
|
|
795
|
+
async set(id, on, token) {
|
|
796
|
+
this.mark(id, on);
|
|
797
|
+
const n = ++this.seq;
|
|
798
|
+
try {
|
|
799
|
+
const res = await fetch(ENDPOINT, {
|
|
800
|
+
method: "POST",
|
|
801
|
+
headers: { "content-type": "application/json", [SESSION_HEADER]: token },
|
|
802
|
+
body: JSON.stringify({ id, on })
|
|
803
|
+
});
|
|
804
|
+
if (res.ok) {
|
|
805
|
+
const data = await res.json().catch(() => null);
|
|
806
|
+
const v = ids(data?.liked);
|
|
807
|
+
if (v && n === this.seq) this.liked = v;
|
|
808
|
+
return on && data?.changed === true;
|
|
809
|
+
}
|
|
810
|
+
} catch {
|
|
811
|
+
}
|
|
812
|
+
if (n === this.seq) this.mark(id, !on);
|
|
813
|
+
return false;
|
|
814
|
+
}
|
|
815
|
+
mark(id, on) {
|
|
816
|
+
const rest = this.liked.filter((x) => x !== id);
|
|
817
|
+
this.liked = on ? [...rest, id] : rest;
|
|
818
|
+
}
|
|
819
|
+
/** Forgets the marks shown, as a fresh page does (for tests). */
|
|
820
|
+
reset() {
|
|
821
|
+
this.seq++;
|
|
822
|
+
this.liked = [];
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
const reactions = new Reactions();
|
|
826
|
+
const composerBus = { decision: null };
|
|
827
|
+
function Activity($$renderer, $$props) {
|
|
828
|
+
$$renderer.component(($$renderer2) => {
|
|
829
|
+
let { steps, live: live2 = false } = $$props;
|
|
830
|
+
let open = false;
|
|
831
|
+
function label(s) {
|
|
832
|
+
if (s.kind === "thinking") {
|
|
833
|
+
return {
|
|
834
|
+
verb: s.ms != null && s.ms >= 1e3 ? `Thought for ${duration(s.ms)}` : "Thought",
|
|
835
|
+
summary: ""
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
if (s.kind === "context") return { verb: s.label, summary: "" };
|
|
839
|
+
return { verb: s.verb, summary: s.summary };
|
|
840
|
+
}
|
|
841
|
+
const latest = derived(() => label(steps[steps.length - 1]));
|
|
842
|
+
$$renderer2.push(`<div><button class="flex w-full max-w-[40rem] cursor-pointer items-center gap-2.5 rounded-xl border bg-card/60 px-4 py-2 text-left text-[0.95rem] text-foreground transition-colors hover:bg-muted"${attr("aria-expanded", open)}>`);
|
|
843
|
+
if (live2) {
|
|
844
|
+
$$renderer2.push("<!--[0-->");
|
|
845
|
+
Loader_circle($$renderer2, {
|
|
846
|
+
class: "size-3.5 shrink-0 animate-spin text-sea",
|
|
847
|
+
"aria-hidden": "true"
|
|
848
|
+
});
|
|
849
|
+
$$renderer2.push(`<!----> <span class="truncate">${escape_html(latest().verb)} ${escape_html(latest().summary)}</span>`);
|
|
850
|
+
} else {
|
|
851
|
+
$$renderer2.push(`<!--[-1--><span class="truncate">${escape_html(activitySummary(steps))}</span>`);
|
|
852
|
+
}
|
|
853
|
+
$$renderer2.push(`<!--]--> `);
|
|
854
|
+
Chevron_right($$renderer2, {
|
|
855
|
+
class: `ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${""}`,
|
|
856
|
+
"aria-hidden": "true"
|
|
857
|
+
});
|
|
858
|
+
$$renderer2.push(`<!----></button> `);
|
|
859
|
+
{
|
|
860
|
+
$$renderer2.push("<!--[-1-->");
|
|
861
|
+
}
|
|
862
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
function Avatar($$renderer, $$props) {
|
|
866
|
+
let { class: className = "" } = $$props;
|
|
867
|
+
const SPOKES = [0, 45, 90, 135, 180, 225, 270, 315];
|
|
868
|
+
$$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><!--[-->`);
|
|
869
|
+
const each_array = ensure_array_like(SPOKES);
|
|
870
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
871
|
+
let a = each_array[$$index];
|
|
872
|
+
$$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>`);
|
|
873
|
+
}
|
|
874
|
+
$$renderer.push(`<!--]--></g><circle cx="16" cy="16" r="2.4" class="fill-primary-foreground"></circle><!--[-->`);
|
|
875
|
+
const each_array_1 = ensure_array_like(SPOKES);
|
|
876
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
877
|
+
let a = each_array_1[$$index_1];
|
|
878
|
+
$$renderer.push(`<circle cx="16" cy="5.2" r="1.3" class="fill-primary-foreground"${attr("transform", `rotate(${stringify(a)} 16 16)`)}></circle>`);
|
|
879
|
+
}
|
|
880
|
+
$$renderer.push(`<!--]--></svg>`);
|
|
881
|
+
}
|
|
882
|
+
function ChatApp($$renderer, $$props) {
|
|
883
|
+
$$renderer.component(($$renderer2) => {
|
|
884
|
+
let {
|
|
885
|
+
id,
|
|
886
|
+
app,
|
|
887
|
+
open = true
|
|
888
|
+
/** Whether the app is drawn: expanded unless the captain collapsed it. */
|
|
889
|
+
} = $$props;
|
|
890
|
+
const MAX_HEIGHT = 480;
|
|
891
|
+
$$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)}>`);
|
|
892
|
+
App_window($$renderer2, {
|
|
893
|
+
class: "size-4 shrink-0 text-muted-foreground",
|
|
894
|
+
"aria-hidden": "true"
|
|
895
|
+
});
|
|
896
|
+
$$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 ? "Collapse" : "Expand")}</span> `);
|
|
897
|
+
Chevron_right($$renderer2, {
|
|
898
|
+
class: `size-3.5 shrink-0 text-muted-foreground transition-transform ${open ? "rotate-90" : ""}`,
|
|
899
|
+
"aria-hidden": "true"
|
|
900
|
+
});
|
|
901
|
+
$$renderer2.push(`<!----></button> `);
|
|
902
|
+
if (open) {
|
|
903
|
+
$$renderer2.push(`<!--[0--><div class="border-t px-4 pt-3 pb-3">`);
|
|
904
|
+
AppFrame($$renderer2, {
|
|
905
|
+
ref: {},
|
|
906
|
+
title: app.title,
|
|
907
|
+
plugin: app.plugin,
|
|
908
|
+
maxHeight: MAX_HEIGHT
|
|
909
|
+
});
|
|
910
|
+
$$renderer2.push(`<!----></div>`);
|
|
911
|
+
} else {
|
|
912
|
+
$$renderer2.push("<!--[-1-->");
|
|
913
|
+
}
|
|
914
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
915
|
+
bind_props($$props, { open });
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
function DecisionForm($$renderer, $$props) {
|
|
919
|
+
$$renderer.component(($$renderer2) => {
|
|
920
|
+
let {
|
|
921
|
+
form,
|
|
922
|
+
name,
|
|
923
|
+
canAnswer = true,
|
|
924
|
+
decided = null,
|
|
925
|
+
onAnswer
|
|
926
|
+
/** Unique per card, for the radio groups. */
|
|
927
|
+
/** The words decided, once answered: shown in place of the controls. */
|
|
928
|
+
} = $$props;
|
|
929
|
+
let picked = null;
|
|
930
|
+
let picks = {};
|
|
931
|
+
let written = "";
|
|
932
|
+
const options = derived(() => form.kind === "buttons" || form.kind === "choice" ? form.options : []);
|
|
933
|
+
const chosen = derived(() => options().find((o) => o.id === picked) ?? options().find((o) => o.recommended) ?? null);
|
|
934
|
+
const missing = derived(() => form.kind === "picks" ? unpicked(form.choices, picks) : []);
|
|
935
|
+
const inRow = (call) => call.options.every((o) => !o.detail && o.label.length <= 28);
|
|
936
|
+
const primary = "border-sea bg-sea text-on-accent hover:bg-sea/90";
|
|
937
|
+
$$renderer2.push(`<div class="mt-3"${attr("data-decision-form", form.kind)}${attr("data-form-from", form.from)}>`);
|
|
938
|
+
if (form.prompt) {
|
|
939
|
+
$$renderer2.push(`<!--[0--><p class="text-sm leading-snug font-medium">${escape_html(form.prompt)}</p>`);
|
|
940
|
+
} else {
|
|
941
|
+
$$renderer2.push("<!--[-1-->");
|
|
942
|
+
}
|
|
943
|
+
$$renderer2.push(`<!--]--> `);
|
|
944
|
+
if (decided !== null) {
|
|
945
|
+
$$renderer2.push(`<!--[0--><p class="mt-2 flex items-start gap-1.5 text-sm leading-snug" data-decided="">`);
|
|
946
|
+
Circle_check($$renderer2, {
|
|
947
|
+
class: "mt-0.5 size-3.5 shrink-0 text-success",
|
|
948
|
+
"aria-hidden": "true"
|
|
949
|
+
});
|
|
950
|
+
$$renderer2.push(`<!----><span>You decided <span class="font-semibold">${escape_html(decided)}</span></span></p>`);
|
|
951
|
+
} else if (form.kind === "buttons") {
|
|
952
|
+
$$renderer2.push(`<!--[1--><div class="mt-2 flex flex-wrap items-center gap-1.5 max-md:flex-col max-md:items-stretch max-md:gap-2" role="group" aria-label="Answer"><!--[-->`);
|
|
953
|
+
const each_array = ensure_array_like(form.options);
|
|
954
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
955
|
+
let o = each_array[$$index];
|
|
956
|
+
$$renderer2.push(`<button${attr_class(`inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base ${o.recommended ? primary : "bg-background hover:bg-accent"}`)}${attr("disabled", !canAnswer, true)}${attr("data-option", o.id)}>${escape_html(o.label)}`);
|
|
957
|
+
if (o.recommended) {
|
|
958
|
+
$$renderer2.push(`<!--[0--><span class="text-xs font-normal opacity-80">· recommended</span>`);
|
|
959
|
+
} else {
|
|
960
|
+
$$renderer2.push("<!--[-1-->");
|
|
961
|
+
}
|
|
962
|
+
$$renderer2.push(`<!--]--></button>`);
|
|
963
|
+
}
|
|
964
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
965
|
+
} else if (form.kind === "choice") {
|
|
966
|
+
$$renderer2.push(`<!--[2--><div class="mt-2 flex flex-col gap-1.5 max-md:gap-2" role="radiogroup"${attr("aria-label", form.prompt ?? "Options")}><!--[-->`);
|
|
967
|
+
const each_array_1 = ensure_array_like(form.options);
|
|
968
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
969
|
+
let o = each_array_1[$$index_1];
|
|
970
|
+
$$renderer2.push(`<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio"${attr("name", `form-${stringify(name)}`)}${attr("value", o.id)}${attr("checked", chosen()?.id === o.id, true)}${attr("disabled", !canAnswer, true)} class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug"><span class="font-semibold">${escape_html(o.label)}</span>`);
|
|
971
|
+
if (o.detail) {
|
|
972
|
+
$$renderer2.push(`<!--[0--><span class="text-foreground/85">${escape_html(` · ${o.detail}`)}</span>`);
|
|
973
|
+
} else {
|
|
974
|
+
$$renderer2.push("<!--[-1-->");
|
|
975
|
+
}
|
|
976
|
+
$$renderer2.push(`<!--]-->`);
|
|
977
|
+
if (o.recommended) {
|
|
978
|
+
$$renderer2.push(`<!--[0--><span class="ml-1.5 text-xs font-medium whitespace-nowrap text-brass">Recommended</span>`);
|
|
979
|
+
} else {
|
|
980
|
+
$$renderer2.push("<!--[-1-->");
|
|
981
|
+
}
|
|
982
|
+
$$renderer2.push(`<!--]--></span></label>`);
|
|
983
|
+
}
|
|
984
|
+
$$renderer2.push(`<!--]--></div> <div class="mt-2.5"><button class="inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90"${attr("disabled", !canAnswer || !chosen(), true)} data-decide="">`);
|
|
985
|
+
Check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
986
|
+
$$renderer2.push(`<!---->Decide${escape_html(chosen() ? `: ${chosen().label}` : "")}</button></div>`);
|
|
987
|
+
} else if (form.kind === "picks") {
|
|
988
|
+
$$renderer2.push("<!--[3-->");
|
|
989
|
+
const all = resolvePicks(form.choices, picks);
|
|
990
|
+
$$renderer2.push(`<div class="mt-2 flex flex-col gap-3" role="group" aria-label="Your picks"><!--[-->`);
|
|
991
|
+
const each_array_2 = ensure_array_like(form.choices.calls);
|
|
992
|
+
for (let $$index_3 = 0, $$length = each_array_2.length; $$index_3 < $$length; $$index_3++) {
|
|
993
|
+
let call = each_array_2[$$index_3];
|
|
994
|
+
$$renderer2.push(`<fieldset class="min-w-0"><legend class="text-sm leading-snug font-medium">`);
|
|
995
|
+
if (call.number !== null) {
|
|
996
|
+
$$renderer2.push(`<!--[0--><span class="mr-1 text-muted-foreground tabular-nums">${escape_html(call.number)}.</span>`);
|
|
997
|
+
} else {
|
|
998
|
+
$$renderer2.push("<!--[-1-->");
|
|
999
|
+
}
|
|
1000
|
+
$$renderer2.push(`<!--]-->${escape_html(call.prompt ?? "Pick one")}`);
|
|
1001
|
+
if (!call.required) {
|
|
1002
|
+
$$renderer2.push(`<!--[0--><span class="ml-1 font-normal text-muted-foreground">· optional</span>`);
|
|
1003
|
+
} else {
|
|
1004
|
+
$$renderer2.push("<!--[-1-->");
|
|
1005
|
+
}
|
|
1006
|
+
$$renderer2.push(`<!--]--></legend> `);
|
|
1007
|
+
if (call.options.length) {
|
|
1008
|
+
$$renderer2.push(`<!--[0--><div${attr_class(`mt-1.5 flex gap-1.5 max-md:flex-col max-md:gap-2 ${inRow(call) ? "flex-wrap" : "flex-col"}`)}><!--[-->`);
|
|
1009
|
+
const each_array_3 = ensure_array_like(call.options);
|
|
1010
|
+
for (let $$index_2 = 0, $$length2 = each_array_3.length; $$index_2 < $$length2; $$index_2++) {
|
|
1011
|
+
let o = each_array_3[$$index_2];
|
|
1012
|
+
$$renderer2.push(`<label class="flex min-w-0 cursor-pointer items-start gap-2 rounded-md border px-2.5 py-1.5 text-sm transition-colors hover:bg-accent has-[:checked]:border-sea has-[:checked]:bg-sea/5 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-60 max-md:min-h-12 max-md:items-center max-md:gap-3 max-md:rounded-lg max-md:px-3.5 max-md:py-2.5 max-md:text-base"><input type="radio"${attr("name", `pick-${stringify(name)}-${stringify(call.id)}`)}${attr("value", o.id)}${attr("checked", all[call.id] === o.id, true)}${attr("disabled", !canAnswer, true)} class="mt-[0.2rem] shrink-0 accent-sea max-md:mt-0 max-md:size-5"/> <span class="min-w-0 leading-snug">`);
|
|
1013
|
+
if (o.detail) {
|
|
1014
|
+
$$renderer2.push(`<!--[0--><span class="font-semibold">${escape_html(o.label)}</span><span class="text-foreground/85">${escape_html(` · ${o.detail}`)}</span>`);
|
|
1015
|
+
} else {
|
|
1016
|
+
$$renderer2.push(`<!--[-1-->${escape_html(o.label)}`);
|
|
1017
|
+
}
|
|
1018
|
+
$$renderer2.push(`<!--]-->`);
|
|
1019
|
+
if (o.recommended) {
|
|
1020
|
+
$$renderer2.push(`<!--[0--><span class="ml-1.5 text-xs font-medium whitespace-nowrap text-brass">Recommended</span>`);
|
|
1021
|
+
} else {
|
|
1022
|
+
$$renderer2.push("<!--[-1-->");
|
|
1023
|
+
}
|
|
1024
|
+
$$renderer2.push(`<!--]--></span></label>`);
|
|
1025
|
+
}
|
|
1026
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1027
|
+
} else {
|
|
1028
|
+
$$renderer2.push(`<!--[-1--><input type="text"${attr("value", picks[call.id] ?? "")}${attr("maxlength", WRITTEN_MAX)}${attr("disabled", !canAnswer, true)} placeholder="Your answer (optional)"${attr("aria-label", `Your answer to ${stringify(callName(call) || "this call")}`)} class="mt-1.5 block h-9 w-full rounded-md border border-input bg-background px-2.5 text-sm placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none max-md:h-12 max-md:text-base"/>`);
|
|
1029
|
+
}
|
|
1030
|
+
$$renderer2.push(`<!--]--></fieldset>`);
|
|
1031
|
+
}
|
|
1032
|
+
$$renderer2.push(`<!--]--></div> <div class="mt-2.5"><button class="inline-flex min-h-10 cursor-pointer items-center gap-1.5 rounded-md border px-3 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 sm:min-h-9 max-md:min-h-12 max-md:w-full max-md:justify-center max-md:text-base border-sea bg-sea text-on-accent hover:bg-sea/90"${attr("disabled", !canAnswer || missing().length > 0, true)} data-decide="">`);
|
|
1033
|
+
Check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1034
|
+
$$renderer2.push(`<!---->Decide</button> `);
|
|
1035
|
+
if (missing().length) {
|
|
1036
|
+
$$renderer2.push(`<!--[0--><p class="mt-1.5 text-xs text-muted-foreground">Pick one for ${escape_html(missing().map(callRef).join(", "))} to decide.</p>`);
|
|
1037
|
+
} else {
|
|
1038
|
+
$$renderer2.push("<!--[-1-->");
|
|
1039
|
+
}
|
|
1040
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1041
|
+
} else {
|
|
1042
|
+
$$renderer2.push(`<!--[-1--><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"${attr("maxlength", DECIDED_MAX)}${attr("disabled", !canAnswer, true)} placeholder="Your answer"${attr("aria-label", form.prompt ?? "Your answer")} 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 max-md:self-center max-md:text-base">`);
|
|
1043
|
+
const $$body = escape_html(written);
|
|
1044
|
+
if ($$body) {
|
|
1045
|
+
$$renderer2.push(`${$$body}`);
|
|
1046
|
+
}
|
|
1047
|
+
$$renderer2.push(`</textarea> <button type="submit" class="inline-flex h-7 shrink-0 cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 text-sm font-medium text-on-accent disabled:cursor-not-allowed disabled:opacity-40 max-md:h-11 max-md:px-3.5"${attr("disabled", !canAnswer || !written.trim(), true)} data-decide="">`);
|
|
1048
|
+
Check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1049
|
+
$$renderer2.push(`<!---->Decide</button></form>`);
|
|
1050
|
+
}
|
|
1051
|
+
$$renderer2.push(`<!--]--> `);
|
|
1052
|
+
if (decided !== null) {
|
|
1053
|
+
$$renderer2.push("<!--[0-->");
|
|
1054
|
+
} else if (canAnswer) {
|
|
1055
|
+
$$renderer2.push(`<!--[2--><button class="mt-1.5 inline-flex cursor-pointer items-center gap-1 rounded px-1 text-xs text-muted-foreground hover:text-foreground max-md:min-h-11 max-md:text-sm">`);
|
|
1056
|
+
Pen_line($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1057
|
+
$$renderer2.push(`<!---->Add a note</button>`);
|
|
1058
|
+
} else {
|
|
1059
|
+
$$renderer2.push("<!--[-1-->");
|
|
1060
|
+
}
|
|
1061
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
function ChatDecision($$renderer, $$props) {
|
|
1065
|
+
$$renderer.component(($$renderer2) => {
|
|
1066
|
+
let {
|
|
1067
|
+
decision,
|
|
1068
|
+
project = null,
|
|
1069
|
+
now,
|
|
1070
|
+
thread = null,
|
|
1071
|
+
pending = [],
|
|
1072
|
+
canAsk
|
|
1073
|
+
} = $$props;
|
|
1074
|
+
const KIND = {
|
|
1075
|
+
review: "Review question",
|
|
1076
|
+
decision: "Decision",
|
|
1077
|
+
blocked: "Stuck",
|
|
1078
|
+
hold: "Your call",
|
|
1079
|
+
merge: "Merge call",
|
|
1080
|
+
preview: "Preview sign-off"
|
|
1081
|
+
};
|
|
1082
|
+
const SUGGEST = [
|
|
1083
|
+
"Why that one?",
|
|
1084
|
+
"What’s the risk?",
|
|
1085
|
+
"What are the other options?"
|
|
1086
|
+
];
|
|
1087
|
+
const head2 = derived(() => decision.head);
|
|
1088
|
+
const answer = derived(() => decision.answer);
|
|
1089
|
+
const count = derived(() => (thread?.messages.length ?? 0) + pending.length);
|
|
1090
|
+
const referable = derived(() => canDiscuss(head2()));
|
|
1091
|
+
const askable = derived(() => canAsk && referable());
|
|
1092
|
+
const open = derived(() => !answer() && count() > 0);
|
|
1093
|
+
let draft = "";
|
|
1094
|
+
let expanded = false;
|
|
1095
|
+
const card = derived(() => decision.card);
|
|
1096
|
+
const token = derived(() => page.data.sessionToken ?? "");
|
|
1097
|
+
const canAnswer = derived(() => inbox.view(page.data.inbox)?.canAnswer ?? false);
|
|
1098
|
+
const refined = derived(() => refinedForm(thread, head2().question));
|
|
1099
|
+
const parts = derived(() => byQuestion(thread, head2().question));
|
|
1100
|
+
const form = derived(() => refined()?.form ?? (card() ? cardForm(card()) : null));
|
|
1101
|
+
const decided = derived(() => answer() ? decidedLabel(cardForm(card() ?? { kind: head2().kind, choices: null, recommendation: null }), answer()) : "");
|
|
1102
|
+
const prLink = derived(() => card()?.evidence.pr ? pullRequests.review(card().projectId, card().evidence.pr) : null);
|
|
1103
|
+
const time2 = (at) => at ? new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : "";
|
|
1104
|
+
const delivered = derived(() => !answer() ? "" : answer().delivery === "sending" ? "Sending to Firstmate…" : answer().delivery === "delivered" ? "Firstmate has it and passes it on" : answer().delivery === "failed" ? "Firstmate did not take it" : answer().delivery === "uncertain" ? "Sent; Firstmate has not confirmed it yet" : "Sent to Firstmate");
|
|
1105
|
+
function message($$renderer3, m, current) {
|
|
1106
|
+
$$renderer3.push(`<li class="flex gap-2.5">`);
|
|
1107
|
+
if (m.who === "firstmate") {
|
|
1108
|
+
$$renderer3.push("<!--[0-->");
|
|
1109
|
+
Avatar($$renderer3, { class: "mt-0.5 size-5" });
|
|
1110
|
+
} else {
|
|
1111
|
+
$$renderer3.push(`<!--[-1--><span class="captain-avatar mt-0.5 !size-5 !text-[0.7rem]">C</span>`);
|
|
1112
|
+
}
|
|
1113
|
+
$$renderer3.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>`);
|
|
1114
|
+
if (m.at) {
|
|
1115
|
+
$$renderer3.push(`<!--[0-->· ${escape_html(time2(m.at))}`);
|
|
1116
|
+
} else {
|
|
1117
|
+
$$renderer3.push("<!--[-1-->");
|
|
1118
|
+
}
|
|
1119
|
+
$$renderer3.push(`<!--]--></p> `);
|
|
1120
|
+
if (m.who === "firstmate") {
|
|
1121
|
+
$$renderer3.push(`<!--[0--><div class="chat-md mt-0.5 text-sm">${html(markdown(withoutForm(m.text), { docLinks: true }))}</div> `);
|
|
1122
|
+
if (current && formIn(m.text)) {
|
|
1123
|
+
$$renderer3.push(`<!--[0--><p class="mt-0.5 text-xs text-muted-foreground">Firstmate updated the options above.</p>`);
|
|
1124
|
+
} else {
|
|
1125
|
+
$$renderer3.push("<!--[-1-->");
|
|
1126
|
+
}
|
|
1127
|
+
$$renderer3.push(`<!--]-->`);
|
|
1128
|
+
} else {
|
|
1129
|
+
$$renderer3.push(`<!--[-1--><p class="mt-0.5 text-sm leading-relaxed whitespace-pre-line">${escape_html(m.text)}</p>`);
|
|
1130
|
+
}
|
|
1131
|
+
$$renderer3.push(`<!--]--></div></li>`);
|
|
1132
|
+
}
|
|
1133
|
+
function discuss($$renderer3) {
|
|
1134
|
+
$$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 max-md:min-h-11 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="">`);
|
|
1135
|
+
Messages_square($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
|
|
1136
|
+
$$renderer3.push(`<!---->Discuss`);
|
|
1137
|
+
if (count()) {
|
|
1138
|
+
$$renderer3.push(`<!--[0--><span class="text-xs tabular-nums">· ${escape_html(count())}</span>`);
|
|
1139
|
+
} else {
|
|
1140
|
+
$$renderer3.push("<!--[-1-->");
|
|
1141
|
+
}
|
|
1142
|
+
$$renderer3.push(`<!--]--></button>`);
|
|
1143
|
+
}
|
|
1144
|
+
$$renderer2.push(`<div class="flex w-full max-w-[min(100%,40rem)] scroll-mt-24 flex-col"${attr("data-chat-decision", decision.id)}>`);
|
|
1145
|
+
if (card() && form() && !answer()) {
|
|
1146
|
+
$$renderer2.push("<!--[0-->");
|
|
1147
|
+
const mine = escalated(card());
|
|
1148
|
+
$$renderer2.push(`<article${attr_class(`rounded-lg border border-l-[3px] bg-card px-4 pt-3.5 pb-3 sm:px-5 ${mine ? "border-l-sea" : "border-l-brass"}`)}${attr("data-open-decision", card().owner)}><header class="flex flex-wrap items-center gap-x-2 gap-y-1">`);
|
|
1149
|
+
if (project) {
|
|
1150
|
+
$$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>`);
|
|
1151
|
+
} else {
|
|
1152
|
+
$$renderer2.push("<!--[-1-->");
|
|
1153
|
+
}
|
|
1154
|
+
$$renderer2.push(`<!--]--> <span${attr_class(`flex items-center gap-1 rounded px-1.5 text-xs leading-[1.15rem] font-medium ${mine ? "bg-sea/10 text-sea" : "bg-muted text-foreground/80"}`)}>`);
|
|
1155
|
+
Hand($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1156
|
+
$$renderer2.push(`<!---->${escape_html(KIND[card().kind])}</span> <span class="text-xs text-muted-foreground">${escape_html(mine ? "Waiting on you" : "Firstmate is handling it; yours to take over")}</span> `);
|
|
1157
|
+
if (card().askedAt) {
|
|
1158
|
+
$$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(card().askedAt, now))}</span>`);
|
|
1159
|
+
} else {
|
|
1160
|
+
$$renderer2.push("<!--[-1-->");
|
|
1161
|
+
}
|
|
1162
|
+
$$renderer2.push(`<!--]--></header> <h3 class="mt-2 font-sans text-base leading-snug font-medium sm:text-[1.05rem]">`);
|
|
1163
|
+
LinkedText($$renderer2, { text: head2().question });
|
|
1164
|
+
$$renderer2.push(`<!----></h3> <a${attr("href", cardTaskHref(head2()))} class="touch-target mt-0.5 block text-xs text-muted-foreground hover:text-foreground hover:underline">${escape_html(head2().taskTitle)}</a> `);
|
|
1165
|
+
if (card().recommendation) {
|
|
1166
|
+
$$renderer2.push(`<!--[0--><p class="mt-2.5 border-l-2 border-brass pl-2.5 text-sm leading-snug"><span class="font-medium">Firstmate recommends</span><span class="text-muted-foreground">· `);
|
|
1167
|
+
LinkedText($$renderer2, { text: card().recommendation.text });
|
|
1168
|
+
$$renderer2.push(`<!----></span></p>`);
|
|
1169
|
+
} else {
|
|
1170
|
+
$$renderer2.push("<!--[-1-->");
|
|
1171
|
+
}
|
|
1172
|
+
$$renderer2.push(`<!--]--> `);
|
|
1173
|
+
DecisionEvidence($$renderer2, { card: card(), expanded, onToggle: () => expanded = !expanded });
|
|
1174
|
+
$$renderer2.push(`<!----> `);
|
|
1175
|
+
if (form().from === "firstmate") {
|
|
1176
|
+
$$renderer2.push(`<!--[0--><p class="mt-3 flex items-center gap-1.5 text-xs text-muted-foreground" data-refined="">`);
|
|
1177
|
+
Refresh_cw($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1178
|
+
$$renderer2.push(`<!---->Firstmate changed the options after your
|
|
1179
|
+
question.</p>`);
|
|
1180
|
+
} else {
|
|
1181
|
+
$$renderer2.push("<!--[-1-->");
|
|
1182
|
+
}
|
|
1183
|
+
$$renderer2.push(`<!--]--> <!---->`);
|
|
1184
|
+
{
|
|
1185
|
+
DecisionForm($$renderer2, {
|
|
1186
|
+
form: form(),
|
|
1187
|
+
name: decision.id,
|
|
1188
|
+
canAnswer: canAnswer(),
|
|
1189
|
+
onAnswer: (a, note) => answerWith(card(), a, note, token())
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
$$renderer2.push(`<!----> `);
|
|
1193
|
+
if (card().sent?.delivery === "failed" && !inbox.errors[card().id]) {
|
|
1194
|
+
$$renderer2.push(`<!--[0--><p class="mt-2 text-sm text-danger" role="alert">Not delivered to Firstmate: ${escape_html(card().sent.picks ?? choiceLabel(card(), card().sent.choice))}. ${escape_html(card().sent.detail ?? "Try again.")}</p>`);
|
|
1195
|
+
} else {
|
|
1196
|
+
$$renderer2.push("<!--[-1-->");
|
|
1197
|
+
}
|
|
1198
|
+
$$renderer2.push(`<!--]--> `);
|
|
1199
|
+
if (inbox.errors[card().id]) {
|
|
1200
|
+
$$renderer2.push(`<!--[0--><p class="mt-2 text-sm text-danger" role="alert">${escape_html(inbox.errors[card().id])}</p>`);
|
|
1201
|
+
} else {
|
|
1202
|
+
$$renderer2.push("<!--[-1-->");
|
|
1203
|
+
}
|
|
1204
|
+
$$renderer2.push(`<!--]--> <div class="mt-2.5 flex flex-wrap items-center gap-1.5 border-t border-hair/70 pt-2">`);
|
|
1205
|
+
discuss($$renderer2);
|
|
1206
|
+
$$renderer2.push(`<!----> `);
|
|
1207
|
+
if (prLink()) {
|
|
1208
|
+
$$renderer2.push(`<!--[0--><a class="inline-flex min-h-10 items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground hover:bg-accent hover:text-foreground max-md:min-h-11 sm:min-h-9"${attr("href", prLink().href)}${attr("target", prLink().external ? "_blank" : void 0)}${attr("rel", prLink().external ? "noreferrer" : void 0)} title="Open the pull request to review it; this answers nothing" data-review-pr="">`);
|
|
1209
|
+
Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1210
|
+
$$renderer2.push(`<!---->Review`);
|
|
1211
|
+
if (prLink().external) {
|
|
1212
|
+
$$renderer2.push("<!--[0-->");
|
|
1213
|
+
External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1214
|
+
} else {
|
|
1215
|
+
$$renderer2.push("<!--[-1-->");
|
|
1216
|
+
}
|
|
1217
|
+
$$renderer2.push(`<!--]--></a>`);
|
|
1218
|
+
} else {
|
|
1219
|
+
$$renderer2.push("<!--[-1-->");
|
|
1220
|
+
}
|
|
1221
|
+
$$renderer2.push(`<!--]--> `);
|
|
1222
|
+
if (closable(card())) {
|
|
1223
|
+
$$renderer2.push(`<!--[0--><button 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 max-md:min-h-11 sm:min-h-9"${attr("disabled", !canAnswer(), true)} title="No answer needed: Firstmate records it closed.">`);
|
|
1224
|
+
X($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1225
|
+
$$renderer2.push(`<!---->Close</button>`);
|
|
1226
|
+
} else {
|
|
1227
|
+
$$renderer2.push("<!--[-1-->");
|
|
1228
|
+
}
|
|
1229
|
+
$$renderer2.push(`<!--]--></div></article>`);
|
|
1230
|
+
} else if (answer()) {
|
|
1231
|
+
$$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">`);
|
|
1232
|
+
if (project) {
|
|
1233
|
+
$$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>`);
|
|
1234
|
+
} else {
|
|
1235
|
+
$$renderer2.push("<!--[-1-->");
|
|
1236
|
+
}
|
|
1237
|
+
$$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">`);
|
|
1238
|
+
Circle_check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1239
|
+
$$renderer2.push(`<!---->Answered</span> `);
|
|
1240
|
+
if (answer().at) {
|
|
1241
|
+
$$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(answer().at, now))}</span>`);
|
|
1242
|
+
} else {
|
|
1243
|
+
$$renderer2.push("<!--[-1-->");
|
|
1244
|
+
}
|
|
1245
|
+
$$renderer2.push(`<!--]--></header> <p class="mt-1.5 text-sm leading-snug text-muted-foreground">${escape_html(head2().question)}</p> <a${attr("href", cardTaskHref(head2()))} 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" data-decided="">`);
|
|
1246
|
+
if (answer().choice === "close") {
|
|
1247
|
+
$$renderer2.push(`<!--[0-->You closed it without an answer`);
|
|
1248
|
+
} else {
|
|
1249
|
+
$$renderer2.push(`<!--[-1-->You decided <span class="font-semibold">${escape_html(decided())}</span>`);
|
|
1250
|
+
}
|
|
1251
|
+
$$renderer2.push(`<!--]--></p> `);
|
|
1252
|
+
if (answer().note) {
|
|
1253
|
+
$$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>`);
|
|
1254
|
+
} else {
|
|
1255
|
+
$$renderer2.push("<!--[-1-->");
|
|
1256
|
+
}
|
|
1257
|
+
$$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">`);
|
|
1258
|
+
if (answer().delivery === "sending") {
|
|
1259
|
+
$$renderer2.push("<!--[0-->");
|
|
1260
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1261
|
+
} else {
|
|
1262
|
+
$$renderer2.push("<!--[-1-->");
|
|
1263
|
+
}
|
|
1264
|
+
$$renderer2.push(`<!--]-->${escape_html(delivered())}${escape_html(answer().at ? ` · ${time2(answer().at)}` : "")}</span> <span class="ml-auto">`);
|
|
1265
|
+
discuss($$renderer2);
|
|
1266
|
+
$$renderer2.push(`<!----></span></div></article>`);
|
|
1267
|
+
} else {
|
|
1268
|
+
$$renderer2.push("<!--[-1-->");
|
|
1269
|
+
}
|
|
1270
|
+
$$renderer2.push(`<!--]--> `);
|
|
1271
|
+
if (open()) {
|
|
1272
|
+
$$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="">`);
|
|
1273
|
+
if (thread?.messages.length || pending.length) {
|
|
1274
|
+
$$renderer2.push(`<!--[0--><ul class="flex flex-col gap-3 pb-1"><!--[-->`);
|
|
1275
|
+
const each_array = ensure_array_like(parts().earlier);
|
|
1276
|
+
for (let i = 0, $$length = each_array.length; i < $$length; i++) {
|
|
1277
|
+
let e = each_array[i];
|
|
1278
|
+
$$renderer2.push(`<li><details data-earlier=""><summary class="cursor-pointer text-xs text-muted-foreground hover:text-foreground">Earlier question: “${escape_html(e.question)}”</summary> <ul class="mt-2 flex flex-col gap-3 border-b border-hair/70 pb-3"><!--[-->`);
|
|
1279
|
+
const each_array_1 = ensure_array_like(e.messages);
|
|
1280
|
+
for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
|
|
1281
|
+
let m = each_array_1[$$index];
|
|
1282
|
+
message($$renderer2, m, false);
|
|
1283
|
+
}
|
|
1284
|
+
$$renderer2.push(`<!--]--></ul></details></li>`);
|
|
1285
|
+
}
|
|
1286
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1287
|
+
const each_array_2 = ensure_array_like(parts().current);
|
|
1288
|
+
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
1289
|
+
let m = each_array_2[$$index_2];
|
|
1290
|
+
message($$renderer2, m, true);
|
|
1291
|
+
}
|
|
1292
|
+
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1293
|
+
const each_array_3 = ensure_array_like(pending);
|
|
1294
|
+
for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
|
|
1295
|
+
let p = each_array_3[$$index_3];
|
|
1296
|
+
$$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">`);
|
|
1297
|
+
if (p.pending.state === "failed") {
|
|
1298
|
+
$$renderer2.push("<!--[0-->");
|
|
1299
|
+
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1300
|
+
$$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">`);
|
|
1301
|
+
Rotate_cw($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1302
|
+
$$renderer2.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
|
|
1303
|
+
} else {
|
|
1304
|
+
$$renderer2.push("<!--[-1-->");
|
|
1305
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1306
|
+
$$renderer2.push(`<!---->${escape_html(pendingLabel(p.pending))}`);
|
|
1307
|
+
}
|
|
1308
|
+
$$renderer2.push(`<!--]--></p></div></li>`);
|
|
1309
|
+
}
|
|
1310
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
1311
|
+
} else {
|
|
1312
|
+
$$renderer2.push(`<!--[-1--><p class="text-xs text-muted-foreground">Ask Firstmate anything about this question. Asking answers nothing; the answer stays yours
|
|
1313
|
+
to give.</p>`);
|
|
1314
|
+
}
|
|
1315
|
+
$$renderer2.push(`<!--]--> `);
|
|
1316
|
+
if (thread?.answering) {
|
|
1317
|
+
$$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>`);
|
|
1318
|
+
} else {
|
|
1319
|
+
$$renderer2.push("<!--[-1-->");
|
|
1320
|
+
}
|
|
1321
|
+
$$renderer2.push(`<!--]--> `);
|
|
1322
|
+
if (askable()) {
|
|
1323
|
+
$$renderer2.push("<!--[0-->");
|
|
1324
|
+
if (!count() && !answer()) {
|
|
1325
|
+
$$renderer2.push(`<!--[0--><div class="mt-2 flex flex-wrap gap-1.5"><!--[-->`);
|
|
1326
|
+
const each_array_4 = ensure_array_like(SUGGEST);
|
|
1327
|
+
for (let $$index_4 = 0, $$length = each_array_4.length; $$index_4 < $$length; $$index_4++) {
|
|
1328
|
+
let s = each_array_4[$$index_4];
|
|
1329
|
+
$$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>`);
|
|
1330
|
+
}
|
|
1331
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1332
|
+
} else {
|
|
1333
|
+
$$renderer2.push("<!--[-1-->");
|
|
1334
|
+
}
|
|
1335
|
+
$$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">`);
|
|
1336
|
+
const $$body = escape_html(draft);
|
|
1337
|
+
if ($$body) {
|
|
1338
|
+
$$renderer2.push(`${$$body}`);
|
|
1339
|
+
}
|
|
1340
|
+
$$renderer2.push(`</textarea> <button type="submit" class="flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md bg-sea text-on-accent disabled:cursor-not-allowed disabled:opacity-40" aria-label="Ask"${attr("disabled", !draft.trim(), true)}>`);
|
|
1341
|
+
Arrow_up($$renderer2, { class: "size-4" });
|
|
1342
|
+
$$renderer2.push(`<!----></button></form>`);
|
|
1343
|
+
} else {
|
|
1344
|
+
$$renderer2.push("<!--[-1-->");
|
|
1345
|
+
}
|
|
1346
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1347
|
+
} else {
|
|
1348
|
+
$$renderer2.push("<!--[-1-->");
|
|
1349
|
+
}
|
|
1350
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
function FeedbackBatch($$renderer, $$props) {
|
|
1354
|
+
$$renderer.component(($$renderer2) => {
|
|
1355
|
+
let { batch, project = null } = $$props;
|
|
1356
|
+
const time2 = (at) => new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
1357
|
+
const settled = derived(() => batch.status.startsWith("Firstmate has it"));
|
|
1358
|
+
const waiting = derived(() => !batch.failed && !settled() && batch.status !== "Sent to Firstmate");
|
|
1359
|
+
const from = derived(() => batch.batch.plugin);
|
|
1360
|
+
const label = derived(() => from() ? `${from().name} feedback` : "preview feedback");
|
|
1361
|
+
$$renderer2.push(`<article class="msg msg-captain"${attr("aria-label", `Your ${label()}, ${stringify(time2(batch.at))}`)} data-feedback-batch=""><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", batch.at)}>${escape_html(time2(batch.at))}</time></header> <div class="w-full max-w-[34rem] rounded-lg border border-l-[3px] border-l-sea bg-card px-4 py-3 text-left"><header class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="flex items-center gap-1 rounded bg-sea/10 px-1.5 text-xs leading-[1.15rem] font-medium text-sea">`);
|
|
1362
|
+
if (from()) {
|
|
1363
|
+
$$renderer2.push("<!--[0-->");
|
|
1364
|
+
Puzzle($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1365
|
+
} else {
|
|
1366
|
+
$$renderer2.push("<!--[-1-->");
|
|
1367
|
+
Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1368
|
+
}
|
|
1369
|
+
$$renderer2.push(`<!--]-->To Firstmate · ${escape_html(label())}</span> `);
|
|
1370
|
+
if (project) {
|
|
1371
|
+
$$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>`);
|
|
1372
|
+
} else {
|
|
1373
|
+
$$renderer2.push("<!--[-1-->");
|
|
1374
|
+
}
|
|
1375
|
+
$$renderer2.push(`<!--]--></header> <a${attr("href", `/tasks/${stringify(encodeURIComponent(batch.batch.taskId))}${from() ? "" : "?tab=preview"}`)} class="mt-1.5 block text-sm font-medium hover:underline">${escape_html(batch.batch.title)}</a> `);
|
|
1376
|
+
if (from()?.subject) {
|
|
1377
|
+
$$renderer2.push(`<!--[0--><p class="mt-0.5 text-xs text-muted-foreground">About ${escape_html(from().subject)}</p>`);
|
|
1378
|
+
} else {
|
|
1379
|
+
$$renderer2.push("<!--[-1-->");
|
|
1380
|
+
}
|
|
1381
|
+
$$renderer2.push(`<!--]--> <ol class="mt-2 list-decimal space-y-1.5 pl-5 text-sm leading-snug"><!--[-->`);
|
|
1382
|
+
const each_array = ensure_array_like(batch.batch.items);
|
|
1383
|
+
for (let i = 0, $$length = each_array.length; i < $$length; i++) {
|
|
1384
|
+
let it = each_array[i];
|
|
1385
|
+
$$renderer2.push(`<li>${escape_html(it.text)} `);
|
|
1386
|
+
if (it.points) {
|
|
1387
|
+
$$renderer2.push(`<!--[0--><span class="mt-0.5 block text-xs text-muted-foreground">Points at ${escape_html(it.points)}</span>`);
|
|
1388
|
+
} else {
|
|
1389
|
+
$$renderer2.push("<!--[-1-->");
|
|
1390
|
+
}
|
|
1391
|
+
$$renderer2.push(`<!--]--></li>`);
|
|
1392
|
+
}
|
|
1393
|
+
$$renderer2.push(`<!--]--></ol> <p${attr_class(`mt-2.5 flex items-center gap-1.5 text-xs ${batch.failed ? "text-danger" : "text-muted-foreground"}`)} role="status">`);
|
|
1394
|
+
if (batch.failed) {
|
|
1395
|
+
$$renderer2.push("<!--[0-->");
|
|
1396
|
+
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1397
|
+
} else if (waiting()) {
|
|
1398
|
+
$$renderer2.push("<!--[1-->");
|
|
1399
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1400
|
+
} else {
|
|
1401
|
+
$$renderer2.push("<!--[-1-->");
|
|
1402
|
+
Circle_check($$renderer2, { class: "size-3.5 text-success", "aria-hidden": "true" });
|
|
1403
|
+
}
|
|
1404
|
+
$$renderer2.push(`<!--]-->${escape_html(batch.status)}</p> `);
|
|
1405
|
+
if (batch.reply) {
|
|
1406
|
+
$$renderer2.push(`<!--[0--><p class="mt-2 rounded-md bg-muted px-3 py-2 text-sm leading-relaxed whitespace-pre-line"><span class="font-medium">Firstmate:</span> ${escape_html(batch.reply)}</p>`);
|
|
1407
|
+
} else {
|
|
1408
|
+
$$renderer2.push("<!--[-1-->");
|
|
1409
|
+
}
|
|
1410
|
+
$$renderer2.push(`<!--]--></div></div></article>`);
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
const STATUS = {
|
|
1414
|
+
sending: "Sending to Firstmate…",
|
|
1415
|
+
uncertain: "Confirming Firstmate has it…",
|
|
1416
|
+
"saved-unannounced": "Saved; Firstmate reads it at its next check",
|
|
1417
|
+
delivered: "Sent to Firstmate",
|
|
1418
|
+
failed: "Not delivered"
|
|
1419
|
+
};
|
|
1420
|
+
function chatBatches(messages) {
|
|
1421
|
+
const out = [];
|
|
1422
|
+
for (const m of messages) {
|
|
1423
|
+
const batch = parseBatch(m.text);
|
|
1424
|
+
if (!batch) continue;
|
|
1425
|
+
out.push({
|
|
1426
|
+
id: m.requestId,
|
|
1427
|
+
at: m.submittedAt,
|
|
1428
|
+
batch,
|
|
1429
|
+
status: m.delivery === "delivered" && m.acknowledged ? "Firstmate has it and passes it to the same task" : STATUS[m.delivery],
|
|
1430
|
+
failed: m.delivery === "failed",
|
|
1431
|
+
reply: m.reply?.body ?? null
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
return out;
|
|
1435
|
+
}
|
|
1436
|
+
function placeBatches(items, batches) {
|
|
1437
|
+
const before = /* @__PURE__ */ new Map();
|
|
1438
|
+
const end = [];
|
|
1439
|
+
const times = items.map((it) => Date.parse(it.at));
|
|
1440
|
+
const first = times.find((t) => !Number.isNaN(t));
|
|
1441
|
+
for (const b of batches) {
|
|
1442
|
+
const at = Date.parse(b.at);
|
|
1443
|
+
if (first !== void 0 && at < first) continue;
|
|
1444
|
+
const i = times.findIndex((t) => !Number.isNaN(t) && t > at);
|
|
1445
|
+
if (i < 0) end.push(b);
|
|
1446
|
+
else before.set(i, [...before.get(i) ?? [], b]);
|
|
1447
|
+
}
|
|
1448
|
+
return { before, end };
|
|
1449
|
+
}
|
|
1450
|
+
function ChatPreview($$renderer, $$props) {
|
|
1451
|
+
$$renderer.component(($$renderer2) => {
|
|
1452
|
+
let { preview, project = null, now } = $$props;
|
|
1453
|
+
const task = derived(() => preview.task);
|
|
1454
|
+
const url = derived(() => task() ? task().preview?.url ?? task().board?.url ?? null : preview.url);
|
|
1455
|
+
const key = derived(() => task()?.preview ? task().id : urlKey(url() ?? ""));
|
|
1456
|
+
const byTask = derived(() => !!task()?.preview);
|
|
1457
|
+
const check = derived(() => previewChecks.checks[key()] ?? null);
|
|
1458
|
+
const checked = derived(() => check()?.state ?? null);
|
|
1459
|
+
const stopped = derived(() => checked() === "down");
|
|
1460
|
+
const shown = derived(() => check()?.url ?? url());
|
|
1461
|
+
const board = derived(() => task()?.preview && task().board ? task().board.url : null);
|
|
1462
|
+
const title = derived(() => task()?.shortTitle ?? (preview.board ? "Review board" : URL.parse(url() ?? "")?.host ?? "Preview"));
|
|
1463
|
+
const action = derived(() => shown() && checked() === "live" ? {
|
|
1464
|
+
url: shown(),
|
|
1465
|
+
taskId: task()?.id ?? null,
|
|
1466
|
+
title: task()?.shortTitle ?? null,
|
|
1467
|
+
projectId: task()?.projectId ?? null,
|
|
1468
|
+
board: preview.board
|
|
1469
|
+
} : null);
|
|
1470
|
+
const prLink = derived(() => task()?.pr ? pullRequests.review(task().projectId, task().pr) : null);
|
|
1471
|
+
let full = false;
|
|
1472
|
+
let from = null;
|
|
1473
|
+
function open() {
|
|
1474
|
+
from = null;
|
|
1475
|
+
full = true;
|
|
1476
|
+
}
|
|
1477
|
+
const CHECKS = {
|
|
1478
|
+
green: {
|
|
1479
|
+
icon: Circle_check,
|
|
1480
|
+
text: "Checks passed",
|
|
1481
|
+
tone: "text-success"
|
|
1482
|
+
},
|
|
1483
|
+
pending: {
|
|
1484
|
+
icon: Circle_dashed,
|
|
1485
|
+
text: "Checks running",
|
|
1486
|
+
tone: "text-muted-foreground"
|
|
1487
|
+
},
|
|
1488
|
+
red: { icon: Circle_x, text: "Checks failed", tone: "text-danger" }
|
|
1489
|
+
};
|
|
1490
|
+
const checks = derived(() => task()?.pipeline?.ci ? CHECKS[task().pipeline.ci] : null);
|
|
1491
|
+
const reported = derived(() => task()?.preview?.reportedAt ?? task()?.board?.reportedAt ?? null);
|
|
1492
|
+
const at = derived(() => preview.landed ? task()?.mergedAt ?? reported() : reported());
|
|
1493
|
+
$$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")}${attr("data-chat-preview-for", task() ? "task" : "link")}><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" : stopped() ? "bg-muted text-muted-foreground" : "bg-sea/10 text-sea"}`)}>`);
|
|
1494
|
+
if (preview.landed) {
|
|
1495
|
+
$$renderer2.push("<!--[0-->");
|
|
1496
|
+
Git_merge($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1497
|
+
$$renderer2.push(`<!---->Landed`);
|
|
1498
|
+
} else if (stopped()) {
|
|
1499
|
+
$$renderer2.push("<!--[1-->");
|
|
1500
|
+
Monitor_off($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1501
|
+
$$renderer2.push(`<!---->${escape_html(preview.board ? "Board stopped" : "Preview stopped")}`);
|
|
1502
|
+
} else if (preview.board) {
|
|
1503
|
+
$$renderer2.push("<!--[2-->");
|
|
1504
|
+
Layout_dashboard($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1505
|
+
$$renderer2.push(`<!---->Review board`);
|
|
1506
|
+
} else {
|
|
1507
|
+
$$renderer2.push("<!--[-1-->");
|
|
1508
|
+
Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1509
|
+
$$renderer2.push(`<!---->Live preview`);
|
|
1510
|
+
}
|
|
1511
|
+
$$renderer2.push(`<!--]--></span> `);
|
|
1512
|
+
if (project) {
|
|
1513
|
+
$$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>`);
|
|
1514
|
+
} else {
|
|
1515
|
+
$$renderer2.push("<!--[-1-->");
|
|
1516
|
+
}
|
|
1517
|
+
$$renderer2.push(`<!--]--> `);
|
|
1518
|
+
if (task()) {
|
|
1519
|
+
$$renderer2.push(`<!--[0--><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>`);
|
|
1520
|
+
} else {
|
|
1521
|
+
$$renderer2.push(`<!--[-1--><span class="order-last min-w-0 basis-full truncate font-mono text-xs text-muted-foreground sm:order-none sm:basis-auto"${attr("title", url())}>${escape_html(url())}</span>`);
|
|
1522
|
+
}
|
|
1523
|
+
$$renderer2.push(`<!--]--> `);
|
|
1524
|
+
if (at()) {
|
|
1525
|
+
$$renderer2.push(`<!--[0--><span class="ml-auto shrink-0 text-xs text-muted-foreground tabular-nums">${escape_html(ago(at(), now))}</span>`);
|
|
1526
|
+
} else {
|
|
1527
|
+
$$renderer2.push("<!--[-1-->");
|
|
1528
|
+
}
|
|
1529
|
+
$$renderer2.push(`<!--]--></header> <div class="border-y border-hair">`);
|
|
1530
|
+
if (byTask()) {
|
|
1531
|
+
$$renderer2.push("<!--[0-->");
|
|
1532
|
+
LivePreview($$renderer2, {
|
|
1533
|
+
taskId: task()?.id,
|
|
1534
|
+
compact: true,
|
|
1535
|
+
toolbar: false,
|
|
1536
|
+
onopen: open
|
|
1537
|
+
});
|
|
1538
|
+
} else {
|
|
1539
|
+
$$renderer2.push("<!--[-1-->");
|
|
1540
|
+
LivePreview($$renderer2, { url: url(), compact: true, toolbar: false, onopen: open });
|
|
1541
|
+
}
|
|
1542
|
+
$$renderer2.push(`<!--]--></div> <footer class="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-2 text-xs">`);
|
|
1543
|
+
if (task()?.pr) {
|
|
1544
|
+
$$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">`);
|
|
1545
|
+
if (preview.landed) {
|
|
1546
|
+
$$renderer2.push("<!--[0-->");
|
|
1547
|
+
Git_merge($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1548
|
+
} else {
|
|
1549
|
+
$$renderer2.push("<!--[-1-->");
|
|
1550
|
+
Git_pull_request($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1551
|
+
}
|
|
1552
|
+
$$renderer2.push(`<!--]--><span class="truncate">${escape_html(task().pr.number ? `Pull request #${task().pr.number}` : "Pull request")}</span></a>`);
|
|
1553
|
+
} else {
|
|
1554
|
+
$$renderer2.push("<!--[-1-->");
|
|
1555
|
+
}
|
|
1556
|
+
$$renderer2.push(`<!--]--> `);
|
|
1557
|
+
if (checks()) {
|
|
1558
|
+
$$renderer2.push(`<!--[0--><span${attr_class(`inline-flex items-center gap-1 ${stringify(checks().tone)}`)}>`);
|
|
1559
|
+
if (checks().icon) {
|
|
1560
|
+
$$renderer2.push("<!--[-->");
|
|
1561
|
+
checks().icon($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1562
|
+
$$renderer2.push("<!--]-->");
|
|
1563
|
+
} else {
|
|
1564
|
+
$$renderer2.push("<!--[!-->");
|
|
1565
|
+
$$renderer2.push("<!--]-->");
|
|
1566
|
+
}
|
|
1567
|
+
$$renderer2.push(`${escape_html(checks().text)}</span>`);
|
|
1568
|
+
} else {
|
|
1569
|
+
$$renderer2.push("<!--[-1-->");
|
|
1570
|
+
}
|
|
1571
|
+
$$renderer2.push(`<!--]--> `);
|
|
1572
|
+
if (board()) {
|
|
1573
|
+
$$renderer2.push(`<!--[0--><a${attr("href", board())} target="_blank" rel="noreferrer" class="inline-flex min-w-0 items-center gap-1 text-sea hover:underline"${attr("title", board())} data-open-board="">`);
|
|
1574
|
+
Layout_dashboard($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1575
|
+
$$renderer2.push(`<!----><span class="truncate">Open the board</span></a>`);
|
|
1576
|
+
} else {
|
|
1577
|
+
$$renderer2.push("<!--[-1-->");
|
|
1578
|
+
}
|
|
1579
|
+
$$renderer2.push(`<!--]--> <span class="ml-auto flex flex-wrap items-center justify-end gap-1">`);
|
|
1580
|
+
if (action()) {
|
|
1581
|
+
$$renderer2.push("<!--[0-->");
|
|
1582
|
+
PreviewActions($$renderer2, { preview: action() });
|
|
1583
|
+
} else {
|
|
1584
|
+
$$renderer2.push("<!--[-1-->");
|
|
1585
|
+
}
|
|
1586
|
+
$$renderer2.push(`<!--]--> `);
|
|
1587
|
+
if (prLink() && !prLink().external) {
|
|
1588
|
+
$$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="">`);
|
|
1589
|
+
Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1590
|
+
$$renderer2.push(`<!---->Review</a>`);
|
|
1591
|
+
} else {
|
|
1592
|
+
$$renderer2.push("<!--[-1-->");
|
|
1593
|
+
}
|
|
1594
|
+
$$renderer2.push(`<!--]--> `);
|
|
1595
|
+
if (checked() === "live") {
|
|
1596
|
+
$$renderer2.push(`<!--[0--><button type="button" class="inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-medium hover:bg-accent">`);
|
|
1597
|
+
Maximize_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1598
|
+
$$renderer2.push(`<!---->Full size</button>`);
|
|
1599
|
+
} else {
|
|
1600
|
+
$$renderer2.push("<!--[-1-->");
|
|
1601
|
+
}
|
|
1602
|
+
$$renderer2.push(`<!--]--> `);
|
|
1603
|
+
if (shown() && (checked() === "live" || checked() === "blocked")) {
|
|
1604
|
+
$$renderer2.push(`<!--[0--><a${attr("href", shown())} 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", shown())}>New tab`);
|
|
1605
|
+
External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1606
|
+
$$renderer2.push(`<!----></a>`);
|
|
1607
|
+
} else {
|
|
1608
|
+
$$renderer2.push("<!--[-1-->");
|
|
1609
|
+
}
|
|
1610
|
+
$$renderer2.push(`<!--]--></span></footer></div> `);
|
|
1611
|
+
if (full && url()) {
|
|
1612
|
+
$$renderer2.push("<!--[0-->");
|
|
1613
|
+
PreviewStudio($$renderer2, {
|
|
1614
|
+
taskId: byTask() ? task()?.id ?? null : null,
|
|
1615
|
+
title: title(),
|
|
1616
|
+
url: url(),
|
|
1617
|
+
talk: !preview.landed,
|
|
1618
|
+
board: preview.board,
|
|
1619
|
+
from,
|
|
1620
|
+
onclose: () => full = false
|
|
1621
|
+
});
|
|
1622
|
+
} else {
|
|
1623
|
+
$$renderer2.push("<!--[-1-->");
|
|
1624
|
+
}
|
|
1625
|
+
$$renderer2.push(`<!--]-->`);
|
|
1626
|
+
});
|
|
1627
|
+
}
|
|
1628
|
+
function AttachedFiles($$renderer, $$props) {
|
|
1629
|
+
$$renderer.component(($$renderer2) => {
|
|
1630
|
+
if (
|
|
1631
|
+
/**
|
|
1632
|
+
* The files waiting to go with the message, under the text in the composer:
|
|
1633
|
+
* one hairline-ruled row each, with a thumbnail for an image, its kind and
|
|
1634
|
+
* size (or how far it has uploaded, or why it failed) and a way to remove it.
|
|
1635
|
+
*/
|
|
1636
|
+
attachments.drafts.length
|
|
1637
|
+
) {
|
|
1638
|
+
$$renderer2.push(`<!--[0--><ul class="mx-2 mb-1 flex flex-col divide-y divide-hair border-t border-hair" aria-label="Attached files"><!--[-->`);
|
|
1639
|
+
const each_array = ensure_array_like(attachments.drafts);
|
|
1640
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1641
|
+
let d = each_array[$$index];
|
|
1642
|
+
$$renderer2.push(`<li class="flex items-center gap-2.5 px-1.5 py-1.5 text-sm"${attr("data-attachment", d.state)}>`);
|
|
1643
|
+
if (d.preview) {
|
|
1644
|
+
$$renderer2.push(`<!--[0--><img${attr("src", d.preview)} alt="" class="size-7 shrink-0 rounded border border-hair object-cover"/>`);
|
|
1645
|
+
} else {
|
|
1646
|
+
$$renderer2.push(`<!--[-1--><span class="flex size-7 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
|
|
1647
|
+
File_text($$renderer2, { class: "size-3.5" });
|
|
1648
|
+
$$renderer2.push(`<!----></span>`);
|
|
1649
|
+
}
|
|
1650
|
+
$$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)}>`);
|
|
1651
|
+
if (d.state === "uploading") {
|
|
1652
|
+
$$renderer2.push("<!--[0-->");
|
|
1653
|
+
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1654
|
+
$$renderer2.push(`<!---->Uploading ${escape_html(Math.round(d.progress * 100))}%`);
|
|
1655
|
+
} else if (d.state === "failed") {
|
|
1656
|
+
$$renderer2.push("<!--[1-->");
|
|
1657
|
+
Circle_alert($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1658
|
+
$$renderer2.push(`<!---->${escape_html(d.error)}`);
|
|
1659
|
+
} else {
|
|
1660
|
+
$$renderer2.push(`<!--[-1-->${escape_html(kindLabel(d))} · ${escape_html(fileSize(d.size))}`);
|
|
1661
|
+
}
|
|
1662
|
+
$$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">`);
|
|
1663
|
+
X($$renderer2, { class: "size-3.5" });
|
|
1664
|
+
$$renderer2.push(`<!----></button></li>`);
|
|
1665
|
+
}
|
|
1666
|
+
$$renderer2.push(`<!--]--></ul>`);
|
|
1667
|
+
} else {
|
|
1668
|
+
$$renderer2.push("<!--[-1-->");
|
|
1669
|
+
}
|
|
1670
|
+
$$renderer2.push(`<!--]-->`);
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
function Composer($$renderer, $$props) {
|
|
1674
|
+
$$renderer.component(($$renderer2) => {
|
|
1675
|
+
let {
|
|
1676
|
+
via,
|
|
1677
|
+
reason,
|
|
1678
|
+
working,
|
|
1679
|
+
held = null,
|
|
1680
|
+
reply = null,
|
|
1681
|
+
thread = null,
|
|
1682
|
+
threads: threads2 = [],
|
|
1683
|
+
onvault
|
|
1684
|
+
/** session: typed into Wheelhouse's session; inbox: Firstmate's inbox; null: nowhere. */
|
|
1685
|
+
/** Why typing is off, shown in place of the placeholder. */
|
|
1686
|
+
/** Why sending waits for now (a menu is open in the session), or null. */
|
|
1687
|
+
/** The message being replied to, or null. */
|
|
1688
|
+
/** The thread the chat is reading, which messages are sent in, or null. */
|
|
1689
|
+
/** The threads a message can be sent in instead. */
|
|
1690
|
+
/** Open the Add a secret popup; no key button without it. */
|
|
1691
|
+
} = $$props;
|
|
1692
|
+
let chosen = void 0;
|
|
1693
|
+
const threadTopic = derived(() => thread?.topic ?? null);
|
|
1694
|
+
const sendIn = derived(() => threadTopic());
|
|
1695
|
+
const sendInName = derived(() => sendIn() ? (threads2.find((t) => t.topic === sendIn()) ?? thread)?.name ?? sendIn() : null);
|
|
1696
|
+
const sendInHue = derived(() => sendIn() ? (threads2.find((t) => t.topic === sendIn()) ?? thread)?.hue ?? null : null);
|
|
1697
|
+
const canSend = derived(() => via !== null);
|
|
1698
|
+
let editor = void 0;
|
|
1699
|
+
let empty = true;
|
|
1700
|
+
let dictating = false;
|
|
1701
|
+
let extrasOpen = false;
|
|
1702
|
+
let stopping = false;
|
|
1703
|
+
const placeholder = derived(() => via === "session" ? "Message Firstmate · / for commands · # for a task or thread" : via === "inbox" ? "Message Firstmate’s inbox · # for a task or thread" : reason ?? "Firstmate is not running here.");
|
|
1704
|
+
const shortPlaceholder = derived(() => via === "session" ? "Message Firstmate" : via === "inbox" ? "Message Firstmate’s inbox" : reason ?? "Firstmate is not running here.");
|
|
1705
|
+
const sendable = derived(() => attachments.ready);
|
|
1706
|
+
let $$settled = true;
|
|
1707
|
+
let $$inner_renderer;
|
|
1708
|
+
function $$render_inner($$renderer3) {
|
|
1709
|
+
$$renderer3.push(`<div class="relative">`);
|
|
1710
|
+
{
|
|
1711
|
+
$$renderer3.push("<!--[-1-->");
|
|
1712
|
+
}
|
|
1713
|
+
$$renderer3.push(`<!--]--> `);
|
|
1714
|
+
if (sendIn() || thread && chosen === null) {
|
|
1715
|
+
$$renderer3.push(`<!--[0--><div class="mb-1.5 flex items-center gap-1.5 text-xs text-muted-foreground" data-send-in="">`);
|
|
1716
|
+
if (sendIn()) {
|
|
1717
|
+
$$renderer3.push(`<!--[0--><span>Sent in</span> <span class="thread-tag pointer-events-none"${attr("data-hue", sendInHue() ?? void 0)}>${escape_html(sendInName())}</span> <button class="cursor-pointer rounded px-1 hover:bg-muted hover:text-foreground" aria-label="Send this message in no thread" title="Send this message in no thread">`);
|
|
1718
|
+
X($$renderer3, { class: "size-3.5" });
|
|
1719
|
+
$$renderer3.push(`<!----></button>`);
|
|
1720
|
+
} else if (thread) {
|
|
1721
|
+
$$renderer3.push(`<!--[1--><span>Sent in no thread ·</span> <button class="cursor-pointer font-medium text-sea hover:underline">Send in ${escape_html(thread.name)}</button>`);
|
|
1722
|
+
} else {
|
|
1723
|
+
$$renderer3.push("<!--[-1-->");
|
|
1724
|
+
}
|
|
1725
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
1726
|
+
} else {
|
|
1727
|
+
$$renderer3.push("<!--[-1-->");
|
|
1728
|
+
}
|
|
1729
|
+
$$renderer3.push(`<!--]--> `);
|
|
1730
|
+
if (reply) {
|
|
1731
|
+
$$renderer3.push(`<!--[0--><div class="reply-draft" role="group" aria-label="Replying to a message">`);
|
|
1732
|
+
Reply($$renderer3, { class: "size-4 shrink-0 text-sea", "aria-hidden": "true" });
|
|
1733
|
+
$$renderer3.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)">`);
|
|
1734
|
+
X($$renderer3, { class: "size-4" });
|
|
1735
|
+
$$renderer3.push(`<!----></button></div>`);
|
|
1736
|
+
} else {
|
|
1737
|
+
$$renderer3.push("<!--[-1-->");
|
|
1738
|
+
}
|
|
1739
|
+
$$renderer3.push(`<!--]--> <div${attr_class(`rounded-xl border bg-card/75 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.5 pl-2"><input type="file" multiple="" class="hidden" tabindex="-1" aria-hidden="true"/> <div class="relative shrink-0 md:hidden"><button type="button" aria-label="Attach files or add a secret"${attr("aria-expanded", extrasOpen)} aria-haspopup="menu"${attr("disabled", !canSend(), true)} class="flex size-11 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">`);
|
|
1740
|
+
Plus($$renderer3, { class: "size-5" });
|
|
1741
|
+
$$renderer3.push(`<!----></button> `);
|
|
1742
|
+
{
|
|
1743
|
+
$$renderer3.push("<!--[-1-->");
|
|
1744
|
+
}
|
|
1745
|
+
$$renderer3.push(`<!--]--></div> <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 max-md:hidden">`);
|
|
1746
|
+
Paperclip($$renderer3, { class: "size-4" });
|
|
1747
|
+
$$renderer3.push(`<!----></button> `);
|
|
1748
|
+
if (onvault) {
|
|
1749
|
+
$$renderer3.push(`<!--[0--><button type="button" aria-label="Add a secret to the vault" title="Add a secret to the vault: its value goes to the Keychain, never into the chat" class="-ml-1 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground max-md:hidden">`);
|
|
1750
|
+
Key_round($$renderer3, { class: "size-4" });
|
|
1751
|
+
$$renderer3.push(`<!----></button>`);
|
|
1752
|
+
} else {
|
|
1753
|
+
$$renderer3.push("<!--[-1-->");
|
|
1754
|
+
}
|
|
1755
|
+
$$renderer3.push(`<!--]--> <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("data-placeholder-short", shortPlaceholder())}${attr_class(`editor no-scrollbar max-h-48 min-h-10 min-w-0 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> <div${attr_class(`contents ${sendable() && !dictating ? "max-md:hidden" : ""}`)}>`);
|
|
1756
|
+
MicButton($$renderer3, {
|
|
1757
|
+
field: editor,
|
|
1758
|
+
target: () => editableTarget(editor),
|
|
1759
|
+
label: "Dictate a message",
|
|
1760
|
+
disabled: !canSend(),
|
|
1761
|
+
get listening() {
|
|
1762
|
+
return dictating;
|
|
1763
|
+
},
|
|
1764
|
+
set listening($$value) {
|
|
1765
|
+
dictating = $$value;
|
|
1766
|
+
$$settled = false;
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
$$renderer3.push(`<!----></div> `);
|
|
1770
|
+
if (working && empty && !attachments.drafts.length && via === "session") {
|
|
1771
|
+
$$renderer3.push(`<!--[0--><button aria-label="Stop Firstmate" title="Stop what Firstmate is doing (Escape)"${attr("disabled", stopping, true)} class="flex size-10 shrink-0 cursor-pointer items-center justify-center rounded-full bg-sea text-on-accent transition-opacity disabled:opacity-40 max-md:size-11">`);
|
|
1772
|
+
{
|
|
1773
|
+
$$renderer3.push("<!--[-1-->");
|
|
1774
|
+
Square($$renderer3, { class: "size-3.5 fill-current" });
|
|
1775
|
+
}
|
|
1776
|
+
$$renderer3.push(`<!--]--></button>`);
|
|
1777
|
+
} else {
|
|
1778
|
+
$$renderer3.push(`<!--[-1--><button aria-label="Send"${attr("disabled", !attachments.ready || !canSend() || !!held || attachments.uploading, true)}${attr_class(`flex size-10 shrink-0 max-md:size-11 ${sendable() ? "" : "max-md:hidden"} cursor-pointer items-center justify-center rounded-full bg-sea text-on-accent transition-opacity disabled:cursor-not-allowed disabled:opacity-30`)}>`);
|
|
1779
|
+
Arrow_up($$renderer3, { class: "size-4" });
|
|
1780
|
+
$$renderer3.push(`<!----></button>`);
|
|
1781
|
+
}
|
|
1782
|
+
$$renderer3.push(`<!--]--></div> `);
|
|
1783
|
+
AttachedFiles($$renderer3);
|
|
1784
|
+
$$renderer3.push(`<!----></div> `);
|
|
1785
|
+
if (held) {
|
|
1786
|
+
$$renderer3.push(`<!--[1--><p class="mt-2 text-xs text-muted-foreground" data-held="">${escape_html(held)}</p>`);
|
|
1787
|
+
} else if (attachments.uploading) {
|
|
1788
|
+
$$renderer3.push(`<!--[2--><p class="mt-2 text-xs text-muted-foreground">Send waits until the files finish uploading.</p>`);
|
|
1789
|
+
} else if (via === "inbox") {
|
|
1790
|
+
$$renderer3.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>`);
|
|
1791
|
+
} else {
|
|
1792
|
+
$$renderer3.push("<!--[-1-->");
|
|
1793
|
+
}
|
|
1794
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
1795
|
+
}
|
|
1796
|
+
do {
|
|
1797
|
+
$$settled = true;
|
|
1798
|
+
$$inner_renderer = $$renderer2.copy();
|
|
1799
|
+
$$render_inner($$inner_renderer);
|
|
1800
|
+
} while (!$$settled);
|
|
1801
|
+
$$renderer2.subsume($$inner_renderer);
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
function MenuCard($$renderer, $$props) {
|
|
1805
|
+
$$renderer.component(($$renderer2) => {
|
|
1806
|
+
let { menu } = $$props;
|
|
1807
|
+
let busy = false;
|
|
1808
|
+
$$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">`);
|
|
1809
|
+
App_window($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
|
|
1810
|
+
$$renderer2.push(`<!---->A Claude Code menu is open</p> <p class="mb-3 text-sm text-muted-foreground">`);
|
|
1811
|
+
if (menu.title) {
|
|
1812
|
+
$$renderer2.push(`<!--[0--><span class="font-medium text-foreground">${escape_html(menu.title)}</span>`);
|
|
1813
|
+
} else {
|
|
1814
|
+
$$renderer2.push(`<!--[-1-->A menu`);
|
|
1815
|
+
}
|
|
1816
|
+
$$renderer2.push(`<!--]--> is open in Firstmate’s session, and the chat can’t use it. Close it to carry on chatting, or use it
|
|
1817
|
+
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)}>`);
|
|
1818
|
+
{
|
|
1819
|
+
$$renderer2.push("<!--[-1-->");
|
|
1820
|
+
X($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1821
|
+
}
|
|
1822
|
+
$$renderer2.push(`<!--]-->Close menu</button> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1823
|
+
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1824
|
+
$$renderer2.push(`<!---->Use it in the terminal</button> `);
|
|
1825
|
+
{
|
|
1826
|
+
$$renderer2.push("<!--[-1-->");
|
|
1827
|
+
}
|
|
1828
|
+
$$renderer2.push(`<!--]--></div></div>`);
|
|
1829
|
+
});
|
|
1830
|
+
}
|
|
1831
|
+
function PickerCard($$renderer, $$props) {
|
|
1832
|
+
$$renderer.component(($$renderer2) => {
|
|
1833
|
+
let { picker } = $$props;
|
|
1834
|
+
let busy = false;
|
|
1835
|
+
$$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">`);
|
|
1836
|
+
Message_circle_question_mark($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
|
|
1837
|
+
$$renderer2.push(`<!---->Firstmate is asking you `);
|
|
1838
|
+
{
|
|
1839
|
+
$$renderer2.push("<!--[-1-->");
|
|
1840
|
+
}
|
|
1841
|
+
$$renderer2.push(`<!--]--></p> `);
|
|
1842
|
+
if (picker.tabs.length > 1) {
|
|
1843
|
+
$$renderer2.push(`<!--[0--><div class="mb-3 flex flex-wrap gap-1.5 text-xs"><!--[-->`);
|
|
1844
|
+
const each_array = ensure_array_like(picker.tabs);
|
|
1845
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1846
|
+
let tab = each_array[$$index];
|
|
1847
|
+
$$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"}`)}>`);
|
|
1848
|
+
if (tab.done) {
|
|
1849
|
+
$$renderer2.push("<!--[0-->");
|
|
1850
|
+
Check($$renderer2, { class: "size-3", "aria-label": "Answered" });
|
|
1851
|
+
} else {
|
|
1852
|
+
$$renderer2.push("<!--[-1-->");
|
|
1853
|
+
}
|
|
1854
|
+
$$renderer2.push(`<!--]-->${escape_html(tab.label)}</span>`);
|
|
1855
|
+
}
|
|
1856
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1857
|
+
} else {
|
|
1858
|
+
$$renderer2.push("<!--[-1-->");
|
|
1859
|
+
}
|
|
1860
|
+
$$renderer2.push(`<!--]--> `);
|
|
1861
|
+
if (picker.title) {
|
|
1862
|
+
$$renderer2.push(`<!--[0--><p class="mb-3 text-base whitespace-pre-line">${escape_html(picker.title)}</p>`);
|
|
1863
|
+
} else {
|
|
1864
|
+
$$renderer2.push("<!--[-1-->");
|
|
1865
|
+
}
|
|
1866
|
+
$$renderer2.push(`<!--]--> <div class="flex flex-col gap-1.5"><!--[-->`);
|
|
1867
|
+
const each_array_1 = ensure_array_like(picker.options);
|
|
1868
|
+
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
1869
|
+
let o = each_array_1[$$index_1];
|
|
1870
|
+
if (o.freeText) {
|
|
1871
|
+
$$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">`);
|
|
1872
|
+
Square_terminal($$renderer2, { class: "size-4 shrink-0", "aria-hidden": "true" });
|
|
1873
|
+
$$renderer2.push(`<!----> <span>Type an answer in Firstmate’s terminal</span></button>`);
|
|
1874
|
+
} else {
|
|
1875
|
+
$$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">`);
|
|
1876
|
+
if (o.checked) {
|
|
1877
|
+
$$renderer2.push("<!--[0-->");
|
|
1878
|
+
Check($$renderer2, { class: "size-4 text-sea", "aria-label": "Chosen" });
|
|
1879
|
+
} else {
|
|
1880
|
+
$$renderer2.push(`<!--[-1-->${escape_html(o.n)}`);
|
|
1881
|
+
}
|
|
1882
|
+
$$renderer2.push(`<!--]--></span> <span class="min-w-0"><span class="font-medium">${escape_html(o.label)}</span> `);
|
|
1883
|
+
if (o.description) {
|
|
1884
|
+
$$renderer2.push(`<!--[0--><span class="block text-xs text-muted-foreground">${escape_html(o.description)}</span>`);
|
|
1885
|
+
} else {
|
|
1886
|
+
$$renderer2.push("<!--[-1-->");
|
|
1887
|
+
}
|
|
1888
|
+
$$renderer2.push(`<!--]--></span></button>`);
|
|
1889
|
+
}
|
|
1890
|
+
$$renderer2.push(`<!--]-->`);
|
|
1891
|
+
}
|
|
1892
|
+
$$renderer2.push(`<!--]--></div> <div class="mt-3 flex flex-wrap items-center gap-3 text-sm">`);
|
|
1893
|
+
if (picker.multiSelect && picker.submitMoves !== null) {
|
|
1894
|
+
$$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>`);
|
|
1895
|
+
} else {
|
|
1896
|
+
$$renderer2.push("<!--[-1-->");
|
|
1897
|
+
}
|
|
1898
|
+
$$renderer2.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1899
|
+
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1900
|
+
$$renderer2.push(`<!---->Answer in the terminal instead</button> `);
|
|
1901
|
+
{
|
|
1902
|
+
$$renderer2.push("<!--[-1-->");
|
|
1903
|
+
}
|
|
1904
|
+
$$renderer2.push(`<!--]--></div></div>`);
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
function QuestionCard($$renderer, $$props) {
|
|
1908
|
+
$$renderer.component(($$renderer2) => {
|
|
1909
|
+
let { part } = $$props;
|
|
1910
|
+
if (part.answers) {
|
|
1911
|
+
$$renderer2.push(`<!--[0--><div class="flex max-w-[80ch] flex-col gap-1 text-sm text-muted-foreground"><!--[-->`);
|
|
1912
|
+
const each_array = ensure_array_like(part.questions);
|
|
1913
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1914
|
+
let q = each_array[$$index];
|
|
1915
|
+
$$renderer2.push(`<p class="flex items-start gap-2">`);
|
|
1916
|
+
Circle_check($$renderer2, {
|
|
1917
|
+
class: "mt-0.5 size-4 shrink-0 text-success",
|
|
1918
|
+
"aria-hidden": "true"
|
|
1919
|
+
});
|
|
1920
|
+
$$renderer2.push(`<!----> <span>${escape_html(q.question)} <span class="font-medium text-foreground">${escape_html(part.answers[q.question] ?? "No answer")}</span></span></p>`);
|
|
1921
|
+
}
|
|
1922
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
1923
|
+
} else {
|
|
1924
|
+
$$renderer2.push("<!--[-1-->");
|
|
1925
|
+
}
|
|
1926
|
+
$$renderer2.push(`<!--]-->`);
|
|
1927
|
+
});
|
|
1928
|
+
}
|
|
1929
|
+
function ThreadTag($$renderer, $$props) {
|
|
1930
|
+
$$renderer.component(($$renderer2) => {
|
|
1931
|
+
let { tag, threads: threads2 } = $$props;
|
|
1932
|
+
const SOURCE = {
|
|
1933
|
+
marker: "Firstmate filed this here",
|
|
1934
|
+
decision: "The decision’s project",
|
|
1935
|
+
task: "The task’s project",
|
|
1936
|
+
thread: "Sent in this thread",
|
|
1937
|
+
you: "You moved this here",
|
|
1938
|
+
guess: "A guess from what it names"
|
|
1939
|
+
};
|
|
1940
|
+
const me = derived(() => threads2.find((t) => t.topic === tag.topic) ?? { topic: tag.topic, name: tag.topic, hue: null });
|
|
1941
|
+
let open = false;
|
|
1942
|
+
let fresh = "";
|
|
1943
|
+
function tagButton($$renderer3, props) {
|
|
1944
|
+
$$renderer3.push(`<button${attributes({
|
|
1945
|
+
...props,
|
|
1946
|
+
class: "thread-tag touch-target",
|
|
1947
|
+
"data-hue": me().hue ?? void 0,
|
|
1948
|
+
"data-unsorted": tag.topic === UNSORTED ? "" : void 0,
|
|
1949
|
+
"data-source": tag.source ?? void 0,
|
|
1950
|
+
title: `${stringify(tag.source ? SOURCE[tag.source] : "Not filed under a thread")}. Click to move it.`,
|
|
1951
|
+
"aria-label": `Thread: ${stringify(me().name)}${tag.source === "guess" ? " (a guess)" : ""}. Move it`
|
|
1952
|
+
})}><span class="thread-tag-name">${escape_html(me().name)}</span>`);
|
|
1953
|
+
if (tag.source === "guess") {
|
|
1954
|
+
$$renderer3.push(`<!--[0--><span class="thread-tag-src">· guess</span>`);
|
|
1955
|
+
} else if (tag.source === "you") {
|
|
1956
|
+
$$renderer3.push(`<!--[1--><span class="thread-tag-src">· moved</span>`);
|
|
1957
|
+
} else {
|
|
1958
|
+
$$renderer3.push("<!--[-1-->");
|
|
1959
|
+
}
|
|
1960
|
+
$$renderer3.push(`<!--]--></button>`);
|
|
1961
|
+
}
|
|
1962
|
+
function moveTo($$renderer3) {
|
|
1963
|
+
$$renderer3.push(`<p class="px-2 pt-1 pb-1.5 text-xs text-muted-foreground max-md:hidden">Move to thread</p> <div class="no-scrollbar max-h-64 overflow-y-auto max-md:max-h-none"><!--[-->`);
|
|
1964
|
+
const each_array = ensure_array_like(threads2);
|
|
1965
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1966
|
+
let t = each_array[$$index];
|
|
1967
|
+
$$renderer3.push(`<button class="flex w-full cursor-pointer items-center gap-2 rounded px-2 py-1.5 text-left hover:bg-muted max-md:min-h-12 max-md:text-base pointer-coarse:min-h-11"><span class="thread-dot"${attr("data-hue", t.hue ?? void 0)} aria-hidden="true"></span> <span class="min-w-0 flex-1 truncate">${escape_html(t.name)}</span> `);
|
|
1968
|
+
if (t.topic === tag.topic) {
|
|
1969
|
+
$$renderer3.push("<!--[0-->");
|
|
1970
|
+
Check($$renderer3, { class: "size-3.5 text-muted-foreground" });
|
|
1971
|
+
} else {
|
|
1972
|
+
$$renderer3.push("<!--[-1-->");
|
|
1973
|
+
}
|
|
1974
|
+
$$renderer3.push(`<!--]--></button>`);
|
|
1975
|
+
}
|
|
1976
|
+
$$renderer3.push(`<!--]--></div> <form class="mt-1 flex items-center gap-1.5 border-t px-1 pt-1.5">`);
|
|
1977
|
+
Plus($$renderer3, {
|
|
1978
|
+
class: "size-3.5 shrink-0 text-muted-foreground",
|
|
1979
|
+
"aria-hidden": "true"
|
|
1980
|
+
});
|
|
1981
|
+
$$renderer3.push(`<!----> <input class="min-w-0 flex-1 bg-transparent py-1 text-sm outline-none placeholder:text-muted-foreground max-md:min-h-12 max-md:text-base" placeholder="New topic…" aria-label="New topic"${attr("value", fresh)}/></form>`);
|
|
1982
|
+
}
|
|
1983
|
+
let $$settled = true;
|
|
1984
|
+
let $$inner_renderer;
|
|
1985
|
+
function $$render_inner($$renderer3) {
|
|
1986
|
+
if (phone.current) {
|
|
1987
|
+
$$renderer3.push("<!--[0-->");
|
|
1988
|
+
tagButton($$renderer3, {
|
|
1989
|
+
type: "button",
|
|
1990
|
+
"aria-haspopup": "dialog",
|
|
1991
|
+
onclick: () => open = true
|
|
1992
|
+
});
|
|
1993
|
+
$$renderer3.push(`<!----> `);
|
|
1994
|
+
Sheet($$renderer3, {
|
|
1995
|
+
title: "Move to thread",
|
|
1996
|
+
get open() {
|
|
1997
|
+
return open;
|
|
1998
|
+
},
|
|
1999
|
+
set open($$value) {
|
|
2000
|
+
open = $$value;
|
|
2001
|
+
$$settled = false;
|
|
2002
|
+
},
|
|
2003
|
+
children: ($$renderer4) => {
|
|
2004
|
+
$$renderer4.push(`<div class="px-3 pb-3">`);
|
|
2005
|
+
moveTo($$renderer4);
|
|
2006
|
+
$$renderer4.push(`<!----></div>`);
|
|
2007
|
+
},
|
|
2008
|
+
$$slots: { default: true }
|
|
2009
|
+
});
|
|
2010
|
+
$$renderer3.push(`<!---->`);
|
|
2011
|
+
} else {
|
|
2012
|
+
$$renderer3.push("<!--[-1-->");
|
|
2013
|
+
if (Popover) {
|
|
2014
|
+
$$renderer3.push("<!--[-->");
|
|
2015
|
+
Popover($$renderer3, {
|
|
2016
|
+
get open() {
|
|
2017
|
+
return open;
|
|
2018
|
+
},
|
|
2019
|
+
set open($$value) {
|
|
2020
|
+
open = $$value;
|
|
2021
|
+
$$settled = false;
|
|
2022
|
+
},
|
|
2023
|
+
children: ($$renderer4) => {
|
|
2024
|
+
{
|
|
2025
|
+
let child = function($$renderer5, { props }) {
|
|
2026
|
+
tagButton($$renderer5, props);
|
|
2027
|
+
};
|
|
2028
|
+
if (Popover_trigger) {
|
|
2029
|
+
$$renderer4.push("<!--[-->");
|
|
2030
|
+
Popover_trigger($$renderer4, { child, $$slots: { child: true } });
|
|
2031
|
+
$$renderer4.push("<!--]-->");
|
|
2032
|
+
} else {
|
|
2033
|
+
$$renderer4.push("<!--[!-->");
|
|
2034
|
+
$$renderer4.push("<!--]-->");
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
$$renderer4.push(` `);
|
|
2038
|
+
if (Portal) {
|
|
2039
|
+
$$renderer4.push("<!--[-->");
|
|
2040
|
+
Portal($$renderer4, {
|
|
2041
|
+
children: ($$renderer5) => {
|
|
2042
|
+
if (Popover_content) {
|
|
2043
|
+
$$renderer5.push("<!--[-->");
|
|
2044
|
+
Popover_content($$renderer5, {
|
|
2045
|
+
align: "start",
|
|
2046
|
+
sideOffset: 4,
|
|
2047
|
+
class: "z-50 w-60 max-w-[calc(100vw-2rem)] rounded-md bg-popover p-1.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10",
|
|
2048
|
+
children: ($$renderer6) => {
|
|
2049
|
+
moveTo($$renderer6);
|
|
2050
|
+
},
|
|
2051
|
+
$$slots: { default: true }
|
|
2052
|
+
});
|
|
2053
|
+
$$renderer5.push("<!--]-->");
|
|
2054
|
+
} else {
|
|
2055
|
+
$$renderer5.push("<!--[!-->");
|
|
2056
|
+
$$renderer5.push("<!--]-->");
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
$$renderer4.push("<!--]-->");
|
|
2061
|
+
} else {
|
|
2062
|
+
$$renderer4.push("<!--[!-->");
|
|
2063
|
+
$$renderer4.push("<!--]-->");
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
$$slots: { default: true }
|
|
2067
|
+
});
|
|
2068
|
+
$$renderer3.push("<!--]-->");
|
|
2069
|
+
} else {
|
|
2070
|
+
$$renderer3.push("<!--[!-->");
|
|
2071
|
+
$$renderer3.push("<!--]-->");
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
$$renderer3.push(`<!--]-->`);
|
|
2075
|
+
}
|
|
2076
|
+
do {
|
|
2077
|
+
$$settled = true;
|
|
2078
|
+
$$inner_renderer = $$renderer2.copy();
|
|
2079
|
+
$$render_inner($$inner_renderer);
|
|
2080
|
+
} while (!$$settled);
|
|
2081
|
+
$$renderer2.subsume($$inner_renderer);
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
function VaultAdd($$renderer, $$props) {
|
|
2085
|
+
$$renderer.component(($$renderer2) => {
|
|
2086
|
+
let {
|
|
2087
|
+
open = false,
|
|
2088
|
+
ask = null,
|
|
2089
|
+
projects,
|
|
2090
|
+
token,
|
|
2091
|
+
onstored
|
|
2092
|
+
/** What Firstmate asked for, to fill in; null for a blank popup. */
|
|
2093
|
+
/** The projects Wheelhouse knows, offered as tick boxes. */
|
|
2094
|
+
/** A secret was stored: its name and every project that can use it. */
|
|
2095
|
+
} = $$props;
|
|
2096
|
+
let name = "";
|
|
2097
|
+
let value = "";
|
|
2098
|
+
let grants = [];
|
|
2099
|
+
let busy = false;
|
|
2100
|
+
let error = null;
|
|
2101
|
+
let exists = false;
|
|
2102
|
+
let replace = false;
|
|
2103
|
+
let status = null;
|
|
2104
|
+
const purpose = derived(() => ask?.purpose ?? "");
|
|
2105
|
+
const unknown = derived(() => ask ? ask.projects.filter((p) => !projects.includes(p)) : []);
|
|
2106
|
+
function close() {
|
|
2107
|
+
value = "";
|
|
2108
|
+
exists = false;
|
|
2109
|
+
replace = false;
|
|
2110
|
+
open = false;
|
|
2111
|
+
}
|
|
2112
|
+
async function replaceIt() {
|
|
2113
|
+
exists = false;
|
|
2114
|
+
replace = true;
|
|
2115
|
+
error = null;
|
|
2116
|
+
await tick();
|
|
2117
|
+
document.getElementById("vault-add-value")?.focus();
|
|
2118
|
+
}
|
|
2119
|
+
$$renderer2.push(`<dialog class="m-auto w-[min(94vw,32rem)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/50" aria-labelledby="vault-add-title" data-vault-add="">`);
|
|
2120
|
+
if (open) {
|
|
2121
|
+
$$renderer2.push(`<!--[0--><form class="grid gap-5 px-5 pt-4 pb-5"><div class="flex items-start gap-3">`);
|
|
2122
|
+
Key_round($$renderer2, {
|
|
2123
|
+
class: "mt-1 size-5 shrink-0 text-brass",
|
|
2124
|
+
"aria-hidden": "true"
|
|
2125
|
+
});
|
|
2126
|
+
$$renderer2.push(`<!----> <div class="min-w-0 flex-1"><h2 id="vault-add-title" class="font-display text-lg">${escape_html(ask ? "Firstmate asks for a secret" : "Add a secret")}</h2> `);
|
|
2127
|
+
if (purpose()) {
|
|
2128
|
+
$$renderer2.push(`<!--[0--><p class="mt-0.5 text-sm text-muted-foreground" data-vault-purpose="">${escape_html(purpose())}</p>`);
|
|
2129
|
+
} else {
|
|
2130
|
+
$$renderer2.push("<!--[-1-->");
|
|
2131
|
+
}
|
|
2132
|
+
$$renderer2.push(`<!--]--></div> <button type="button" class="-mt-1 -mr-2 rounded p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground" aria-label="Cancel"${attr("disabled", busy, true)}>`);
|
|
2133
|
+
X($$renderer2, { class: "size-4" });
|
|
2134
|
+
$$renderer2.push(`<!----></button></div> `);
|
|
2135
|
+
{
|
|
2136
|
+
$$renderer2.push("<!--[-1-->");
|
|
2137
|
+
}
|
|
2138
|
+
$$renderer2.push(`<!--]--> <div class="grid gap-1.5"><label for="vault-add-name" class="text-sm font-medium">Name</label> <input id="vault-add-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN"${attr("value", name)}${attr("disabled", busy, true)}${attr("aria-invalid", void 0)} aria-describedby="vault-add-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> `);
|
|
2139
|
+
{
|
|
2140
|
+
$$renderer2.push(`<!--[-1--><p id="vault-add-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as.</p>`);
|
|
2141
|
+
}
|
|
2142
|
+
$$renderer2.push(`<!--]--></div> `);
|
|
2143
|
+
if (!exists) {
|
|
2144
|
+
$$renderer2.push(`<!--[0--><div class="grid gap-1.5"><label for="vault-add-value" class="text-sm font-medium">Value</label> <input id="vault-add-value" type="password" autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true"${attr("value", value)}${attr("disabled", status?.canStore === false, true)} class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <p class="flex items-start gap-1.5 text-xs text-muted-foreground">`);
|
|
2145
|
+
Lock($$renderer2, { class: "mt-px size-3.5 shrink-0" });
|
|
2146
|
+
$$renderer2.push(`<!----> Goes straight into your Mac’s login Keychain. It never appears in the chat, and Wheelhouse
|
|
2147
|
+
cannot show it again.</p></div>`);
|
|
2148
|
+
} else {
|
|
2149
|
+
$$renderer2.push("<!--[-1-->");
|
|
2150
|
+
}
|
|
2151
|
+
$$renderer2.push(`<!--]--> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> `);
|
|
2152
|
+
if (projects.length) {
|
|
2153
|
+
$$renderer2.push(`<!--[0--><div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group" aria-label="Projects"><!--[-->`);
|
|
2154
|
+
const each_array = ensure_array_like(projects);
|
|
2155
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
2156
|
+
let p = each_array[$$index];
|
|
2157
|
+
$$renderer2.push(`<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"${attr("checked", grants.includes(p), true)}${attr("disabled", busy, true)}/> <span class="truncate">${escape_html(p)}</span></label>`);
|
|
2158
|
+
}
|
|
2159
|
+
$$renderer2.push(`<!--]--></div>`);
|
|
2160
|
+
} else {
|
|
2161
|
+
$$renderer2.push(`<!--[-1--><p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>`);
|
|
2162
|
+
}
|
|
2163
|
+
$$renderer2.push(`<!--]--> <p class="text-xs text-muted-foreground">Optional. You can change this any time on the Vault page. `);
|
|
2164
|
+
if (unknown().length) {
|
|
2165
|
+
$$renderer2.push(`<!--[0-->Firstmate also named ${escape_html(unknown().join(", "))}, which Wheelhouse does not
|
|
2166
|
+
know.`);
|
|
2167
|
+
} else {
|
|
2168
|
+
$$renderer2.push("<!--[-1-->");
|
|
2169
|
+
}
|
|
2170
|
+
$$renderer2.push(`<!--]--></p></div> `);
|
|
2171
|
+
if (exists) {
|
|
2172
|
+
$$renderer2.push(`<!--[0--><p class="rounded-md border border-warning/40 bg-warning/5 px-3 py-2 text-sm" role="alert" data-vault-exists="">A secret named ${escape_html(name)} already exists. Replace it?</p>`);
|
|
2173
|
+
} else if (error) {
|
|
2174
|
+
$$renderer2.push(`<!--[1--><p class="rounded-md border border-danger/40 bg-danger/5 px-3 py-2 text-sm" role="alert">${escape_html(error)}</p>`);
|
|
2175
|
+
} else {
|
|
2176
|
+
$$renderer2.push("<!--[-1-->");
|
|
2177
|
+
}
|
|
2178
|
+
$$renderer2.push(`<!--]--> <div class="flex flex-wrap justify-end gap-2">`);
|
|
2179
|
+
Button($$renderer2, {
|
|
2180
|
+
type: "button",
|
|
2181
|
+
variant: "outline",
|
|
2182
|
+
disabled: busy,
|
|
2183
|
+
onclick: close,
|
|
2184
|
+
children: ($$renderer3) => {
|
|
2185
|
+
$$renderer3.push(`<!---->Cancel`);
|
|
2186
|
+
},
|
|
2187
|
+
$$slots: { default: true }
|
|
2188
|
+
});
|
|
2189
|
+
$$renderer2.push(`<!----> `);
|
|
2190
|
+
if (exists) {
|
|
2191
|
+
$$renderer2.push("<!--[0-->");
|
|
2192
|
+
Button($$renderer2, {
|
|
2193
|
+
type: "button",
|
|
2194
|
+
onclick: replaceIt,
|
|
2195
|
+
children: ($$renderer3) => {
|
|
2196
|
+
$$renderer3.push(`<!---->Replace`);
|
|
2197
|
+
},
|
|
2198
|
+
$$slots: { default: true }
|
|
2199
|
+
});
|
|
2200
|
+
} else {
|
|
2201
|
+
$$renderer2.push("<!--[-1-->");
|
|
2202
|
+
Button($$renderer2, {
|
|
2203
|
+
type: "submit",
|
|
2204
|
+
disabled: !name,
|
|
2205
|
+
children: ($$renderer3) => {
|
|
2206
|
+
$$renderer3.push(`<!---->${escape_html(replace ? "Replace its value" : "Store secret")}`);
|
|
2207
|
+
},
|
|
2208
|
+
$$slots: { default: true }
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2211
|
+
$$renderer2.push(`<!--]--></div></form>`);
|
|
2212
|
+
} else {
|
|
2213
|
+
$$renderer2.push("<!--[-1-->");
|
|
2214
|
+
}
|
|
2215
|
+
$$renderer2.push(`<!--]--></dialog>`);
|
|
2216
|
+
bind_props($$props, { open });
|
|
2217
|
+
});
|
|
2218
|
+
}
|
|
2219
|
+
function captainText($$renderer, text, linked) {
|
|
2220
|
+
$$renderer.push(`<!--[-->`);
|
|
2221
|
+
const each_array_1 = ensure_array_like(parseRefs(text));
|
|
2222
|
+
for (let pi = 0, $$length = each_array_1.length; pi < $$length; pi++) {
|
|
2223
|
+
let piece = each_array_1[pi];
|
|
2224
|
+
if (typeof piece === "string") {
|
|
2225
|
+
$$renderer.push(`<!--[0-->${escape_html(piece)}`);
|
|
2226
|
+
} else if (linked) {
|
|
2227
|
+
$$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>`);
|
|
2228
|
+
} else {
|
|
2229
|
+
$$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>`);
|
|
2230
|
+
}
|
|
2231
|
+
$$renderer.push(`<!--]-->`);
|
|
2232
|
+
}
|
|
2233
|
+
$$renderer.push(`<!--]-->`);
|
|
2234
|
+
}
|
|
2235
|
+
function Chat($$renderer, $$props) {
|
|
2236
|
+
$$renderer.component(($$renderer2) => {
|
|
2237
|
+
let {
|
|
2238
|
+
token,
|
|
2239
|
+
railOpen,
|
|
2240
|
+
railSide = "right",
|
|
2241
|
+
onSwapRail,
|
|
2242
|
+
waiting = 0,
|
|
2243
|
+
health,
|
|
2244
|
+
now,
|
|
2245
|
+
pluginEntries = [],
|
|
2246
|
+
tasks = [],
|
|
2247
|
+
projects = [],
|
|
2248
|
+
thread = null,
|
|
2249
|
+
onPickThread
|
|
2250
|
+
/** Which side of the chat the On deck rail docks to. */
|
|
2251
|
+
/** Moves the rail to the chat's other side; without it there is no button. */
|
|
2252
|
+
/** Items waiting on the captain, for the rail button's dot. */
|
|
2253
|
+
/** Plugin entries for the fleet, whose bridge.card cards follow replies that link them. */
|
|
2254
|
+
/** The fleet's tasks, whose live previews follow the replies about them. */
|
|
2255
|
+
/** The fleet's projects, for the cards' project names. */
|
|
2256
|
+
/** The thread being read (a project id, a topic or Unsorted), or null for all. */
|
|
2257
|
+
/** Picks the thread to read; without it the chat keeps the choice itself. */
|
|
2258
|
+
} = $$props;
|
|
2259
|
+
const HEALTH_ICON = {
|
|
2260
|
+
success: Circle_check,
|
|
2261
|
+
sea: Hand,
|
|
2262
|
+
warning: Triangle_alert,
|
|
2263
|
+
danger: Circle_x
|
|
2264
|
+
};
|
|
2265
|
+
const HEALTH_TEXT = {
|
|
2266
|
+
success: "text-success",
|
|
2267
|
+
sea: "text-sea",
|
|
2268
|
+
warning: "text-warning",
|
|
2269
|
+
danger: "text-danger"
|
|
2270
|
+
};
|
|
2271
|
+
const session = derived(() => firstmateChat.session);
|
|
2272
|
+
const chat = derived(() => firstmateChat.chat);
|
|
2273
|
+
const items = derived(() => chat().items);
|
|
2274
|
+
const lastItem = derived(() => items()[items().length - 1]);
|
|
2275
|
+
const working = derived(() => firstmateChat.working);
|
|
2276
|
+
const picker = derived(() => session()?.canSend ? session().picker : null);
|
|
2277
|
+
const menu = derived(() => session()?.canSend ? session().menu : null);
|
|
2278
|
+
const waitingOnAnswer = derived(() => !!picker() || !!menu());
|
|
2279
|
+
const held = derived(() => picker() ? "Answer the question above to send your message." : menu() ? "Close the Claude Code menu above to send your message." : null);
|
|
2280
|
+
const lastCheck = derived(() => chat().checks[chat().checks.length - 1]);
|
|
2281
|
+
const checking = derived(() => !!lastCheck() && !lastCheck().done);
|
|
2282
|
+
const HIcon = derived(() => HEALTH_ICON[health.tone]);
|
|
2283
|
+
const canSend = derived(() => session()?.canSend === true);
|
|
2284
|
+
const via = derived(() => canSend() ? "session" : session()?.state === "external" && currentHealth()?.messaging.available ? "inbox" : null);
|
|
2285
|
+
const inboxView = derived(() => inbox.view(page.data.inbox));
|
|
2286
|
+
const opened = derived(() => /* @__PURE__ */ new Set([
|
|
2287
|
+
...openedDecisions.ids,
|
|
2288
|
+
...[],
|
|
2289
|
+
...items().flatMap((it) => {
|
|
2290
|
+
const d = it.kind === "user" ? parseDiscuss(it.text) : null;
|
|
2291
|
+
return d ? [d.cardId] : [];
|
|
2292
|
+
}),
|
|
2293
|
+
...firstmateChat.pending.flatMap((p) => {
|
|
2294
|
+
const d = parseDiscuss(p.text);
|
|
2295
|
+
return d ? [d.cardId] : [];
|
|
2296
|
+
})
|
|
2297
|
+
]));
|
|
2298
|
+
const decisions = derived(() => inboxView()?.available ? chatDecisions(inboxView().cards, inboxView().answered ?? [], inbox.pending, opened()) : []);
|
|
2299
|
+
const placed = derived(() => placeDecisions(items(), decisions()));
|
|
2300
|
+
const batches = derived(() => placeBatches(items(), chatBatches(currentMessages()?.messages ?? [])));
|
|
2301
|
+
const shown = derived(() => [...[...placed().before.values()].flat(), ...placed().end]);
|
|
2302
|
+
const decisionIds = derived(() => new Set(shown().map((d) => d.head.cardId)));
|
|
2303
|
+
const discussed = derived(() => threads(items(), decisionIds()));
|
|
2304
|
+
const asking = derived(() => pendingThreads(firstmateChat.pending));
|
|
2305
|
+
const threadOwner = derived(() => {
|
|
2306
|
+
const owner = /* @__PURE__ */ new Map();
|
|
2307
|
+
for (const d of shown()) {
|
|
2308
|
+
const held2 = owner.get(d.head.cardId);
|
|
2309
|
+
if (!held2 || !shown().find((x) => x.id === held2)?.card) owner.set(d.head.cardId, d.id);
|
|
2310
|
+
}
|
|
2311
|
+
return owner;
|
|
2312
|
+
});
|
|
2313
|
+
const chatPending = derived(() => firstmateChat.pending.filter((p) => {
|
|
2314
|
+
const d = parseDiscuss(p.text);
|
|
2315
|
+
return !d || !decisionIds().has(d.cardId);
|
|
2316
|
+
}));
|
|
2317
|
+
const ownPort = derived(() => typeof location !== "undefined" && ["127.0.0.1", "localhost"].includes(location.hostname) ? location.port || (location.protocol === "https:" ? "443" : "80") : null);
|
|
2318
|
+
const previews = derived(() => previewCards(items(), tasks, ownPort()));
|
|
2319
|
+
const projectName = (id) => !id || id === "unassigned" ? null : projects.find((p) => p.id === id)?.name ?? id;
|
|
2320
|
+
const forms = derived(() => chatForms(items(), discussed().hidden, firstmateChat.pending, currentMessages()?.messages ?? []));
|
|
2321
|
+
const replyWords = (part) => parseMarkers(vaultRequests(forms().get(part.id)?.words ?? part.text).words).map((s) => s.text).join("\n\n");
|
|
2322
|
+
const md = (text) => markdown(vaultRequests(text).words, { docLinks: true });
|
|
2323
|
+
const asks = derived(() => vaultAsks(items(), firstmateChat.pending, currentMessages()?.messages ?? []));
|
|
2324
|
+
let vaultOpen = false;
|
|
2325
|
+
let vaultAsk = null;
|
|
2326
|
+
let vaultNotice = null;
|
|
2327
|
+
function addSecret(ask) {
|
|
2328
|
+
vaultAsk = ask;
|
|
2329
|
+
vaultNotice = null;
|
|
2330
|
+
vaultOpen = true;
|
|
2331
|
+
}
|
|
2332
|
+
function secretStored(name, granted) {
|
|
2333
|
+
const text = storedText(name, granted);
|
|
2334
|
+
if (via() && !held()) {
|
|
2335
|
+
void firstmateChat.send(text, via(), token, working() && !waitingOnAnswer());
|
|
2336
|
+
return;
|
|
2337
|
+
}
|
|
2338
|
+
vaultNotice = `${text} Firstmate was not told: ${held() ?? "there is no Firstmate session to send to."}`;
|
|
2339
|
+
}
|
|
2340
|
+
let ownThread = null;
|
|
2341
|
+
const current = derived(() => onPickThread ? thread : ownThread);
|
|
2342
|
+
const tagged = derived(() => tagChat(items(), tasks, projects, chatTags.retags));
|
|
2343
|
+
const labels = derived(() => projectLabels(projects, aliases.names));
|
|
2344
|
+
const threadName = (topic) => topic === UNSORTED ? "Unsorted" : labels().get(topic)?.label ?? topicName(topic);
|
|
2345
|
+
const threadHue = (topic) => topic === UNSORTED ? null : labels().get(topic)?.hue ?? hue(topic);
|
|
2346
|
+
const decisionTag = (d) => cardTag(`decision:${d.head.cardId}`, d.head.projectId, "decision", chatTags.retags);
|
|
2347
|
+
const batchTag = (b) => cardTag(`batch:${b.id}`, tasks.find((t) => t.id === b.batch.taskId)?.projectId, "task", chatTags.retags);
|
|
2348
|
+
const previewTag = (taskId, projectId) => cardTag(`preview:${taskId}`, projectId, "task", chatTags.retags);
|
|
2349
|
+
function itemTopics(it) {
|
|
2350
|
+
if (it.kind === "user") return [tagged().users.get(it.id)?.topic ?? UNSORTED];
|
|
2351
|
+
if (it.kind !== "turn") return [UNSORTED];
|
|
2352
|
+
const out = /* @__PURE__ */ new Set();
|
|
2353
|
+
for (const p of it.parts) {
|
|
2354
|
+
if (p.kind !== "text") continue;
|
|
2355
|
+
for (const sec of tagged().parts.get(p.id) ?? []) if (!sec.intro) out.add(sec.tag.topic);
|
|
2356
|
+
for (const pv of previews().get(p.id) ?? []) if (pv.task) out.add(previewTag(pv.task.id, pv.task.projectId).topic);
|
|
2357
|
+
}
|
|
2358
|
+
if (!out.size) out.add(tagged().turns.get(it.id)?.topic ?? UNSORTED);
|
|
2359
|
+
return [...out];
|
|
2360
|
+
}
|
|
2361
|
+
const entries = derived(() => {
|
|
2362
|
+
const out = [];
|
|
2363
|
+
const decision = (d) => out.push({
|
|
2364
|
+
key: `d:${d.id}`,
|
|
2365
|
+
topics: [decisionTag(d).topic],
|
|
2366
|
+
at: d.head.askedAt,
|
|
2367
|
+
needs: !!d.card && !d.answer
|
|
2368
|
+
});
|
|
2369
|
+
const batch = (b) => out.push({
|
|
2370
|
+
key: `b:${b.id}`,
|
|
2371
|
+
topics: [batchTag(b).topic],
|
|
2372
|
+
at: b.at,
|
|
2373
|
+
needs: false
|
|
2374
|
+
});
|
|
2375
|
+
items().forEach((it, i) => {
|
|
2376
|
+
for (const d of placed().before.get(i) ?? []) decision(d);
|
|
2377
|
+
for (const b of batches().before.get(i) ?? []) batch(b);
|
|
2378
|
+
if (!discussed().hidden.has(it.id)) out.push({ key: it.id, topics: itemTopics(it), at: it.at, needs: false });
|
|
2379
|
+
});
|
|
2380
|
+
for (const d of placed().end) decision(d);
|
|
2381
|
+
for (const b of batches().end) batch(b);
|
|
2382
|
+
return out;
|
|
2383
|
+
});
|
|
2384
|
+
const topicsOf = derived(() => new Map(entries().map((e) => [e.key, e.topics])));
|
|
2385
|
+
const rows = derived(() => threadRows(entries(), current()));
|
|
2386
|
+
const inThread = derived(() => current() ? entries().filter((e) => e.topics.includes(current())).length : entries().length);
|
|
2387
|
+
const moveTo = derived(() => {
|
|
2388
|
+
const seen = new Set(rows().map((r) => r.topic).filter((t) => t !== UNSORTED));
|
|
2389
|
+
const topics = [
|
|
2390
|
+
...seen,
|
|
2391
|
+
...projects.filter((p) => p.registered && !seen.has(p.id)).map((p) => p.id).sort((a, b) => threadName(a).localeCompare(threadName(b))),
|
|
2392
|
+
UNSORTED
|
|
2393
|
+
];
|
|
2394
|
+
return topics.map((topic) => ({ topic, name: threadName(topic), hue: threadHue(topic) }));
|
|
2395
|
+
});
|
|
2396
|
+
const runs = derived(() => current() && chatTags.fold ? foldRuns(entries(), current()) : /* @__PURE__ */ new Map());
|
|
2397
|
+
let openRuns = {};
|
|
2398
|
+
function view(key) {
|
|
2399
|
+
const topics = topicsOf().get(key);
|
|
2400
|
+
if (!current() || !topics || topics.includes(current())) return "show";
|
|
2401
|
+
const run = runs().get(key);
|
|
2402
|
+
if (!run) return "hide";
|
|
2403
|
+
if (openRuns[run.first]) return "dim";
|
|
2404
|
+
return run.first === key ? "line" : "hide";
|
|
2405
|
+
}
|
|
2406
|
+
function lastTopic(it) {
|
|
2407
|
+
if (it.kind === "user") return tagged().users.get(it.id)?.topic ?? null;
|
|
2408
|
+
if (it.kind !== "turn") return null;
|
|
2409
|
+
for (let pi = it.parts.length - 1; pi >= 0; pi--) {
|
|
2410
|
+
const secs = tagged().parts.get(it.parts[pi].id);
|
|
2411
|
+
if (secs?.length) return secs[secs.length - 1].tag.topic;
|
|
2412
|
+
}
|
|
2413
|
+
return tagged().turns.get(it.id)?.topic ?? null;
|
|
2414
|
+
}
|
|
2415
|
+
function layoutTurn(it, all, grouped, prev) {
|
|
2416
|
+
const parts = /* @__PURE__ */ new Map();
|
|
2417
|
+
let head2 = null;
|
|
2418
|
+
let hidden = 0;
|
|
2419
|
+
let first = true;
|
|
2420
|
+
for (const p of it.parts) {
|
|
2421
|
+
if (p.kind !== "text") continue;
|
|
2422
|
+
const every = tagged().parts.get(p.id) ?? [];
|
|
2423
|
+
const inCurrent = (x) => !x.intro && x.tag.topic === current();
|
|
2424
|
+
const asked = forms().get(p.id);
|
|
2425
|
+
const words = asked && parseMarkers(asked.words);
|
|
2426
|
+
const own = !words ? every : all ? every.map((s, i) => ({ ...s, text: words[i]?.text ?? "" })) : every.length ? [every.find(inCurrent) || every[0]] : [];
|
|
2427
|
+
const filed = all ? own : own.filter(inCurrent);
|
|
2428
|
+
const secs = filed.length && own[0]?.intro && !filed.includes(own[0]) ? [own[0], ...filed] : filed;
|
|
2429
|
+
hidden += own.length - secs.length - (own[0]?.intro && !secs.length ? 1 : 0);
|
|
2430
|
+
let above = null;
|
|
2431
|
+
if (secs.length === 1) {
|
|
2432
|
+
if (first && !grouped) head2 = secs[0];
|
|
2433
|
+
else if (secs[0].tag.topic !== prev) above = secs[0];
|
|
2434
|
+
prev = secs[0].tag.topic;
|
|
2435
|
+
} else if (secs.length) prev = null;
|
|
2436
|
+
if (secs.length) first = false;
|
|
2437
|
+
parts.set(p.id, { secs, whole: secs.length === own.length, above });
|
|
2438
|
+
}
|
|
2439
|
+
if (first && !grouped) head2 = {
|
|
2440
|
+
key: `turn:${it.id}`,
|
|
2441
|
+
text: "",
|
|
2442
|
+
tag: tagged().turns.get(it.id) ?? UNSORTED_TAG,
|
|
2443
|
+
intro: false
|
|
2444
|
+
};
|
|
2445
|
+
return { parts, head: head2, hidden };
|
|
2446
|
+
}
|
|
2447
|
+
function decide(partId, a, note) {
|
|
2448
|
+
const asked = forms().get(partId);
|
|
2449
|
+
const text = asked ? answerText(asked.form, a, note) : "";
|
|
2450
|
+
if (!text || !via() || held()) return;
|
|
2451
|
+
void firstmateChat.send(text, via(), token, working() && !waitingOnAnswer());
|
|
2452
|
+
}
|
|
2453
|
+
let showChecks = false;
|
|
2454
|
+
let terminalOpen = false;
|
|
2455
|
+
let apps = {};
|
|
2456
|
+
let collapsedApps = {};
|
|
2457
|
+
let openNotice = {};
|
|
2458
|
+
let starting = false;
|
|
2459
|
+
const GROUP_MS = 5 * 6e4;
|
|
2460
|
+
function previousShown(i) {
|
|
2461
|
+
let j = i - 1;
|
|
2462
|
+
while (j >= 0 && (discussed().hidden.has(items()[j].id) || view(items()[j].id) === "hide")) j--;
|
|
2463
|
+
return j;
|
|
2464
|
+
}
|
|
2465
|
+
function groupedWithPrevious(i) {
|
|
2466
|
+
const j = previousShown(i);
|
|
2467
|
+
const v = view(items()[i].id);
|
|
2468
|
+
if (v !== "show" && runs().get(items()[i].id)?.first === items()[i].id) return false;
|
|
2469
|
+
if (j >= 0 && view(items()[j].id) !== v) return false;
|
|
2470
|
+
for (let k = j + 1; k <= i; k++) if ((placed().before.get(k) ?? []).some((d) => view(`d:${d.id}`) !== "hide") || (batches().before.get(k) ?? []).some((b2) => view(`b:${b2.id}`) !== "hide")) return false;
|
|
2471
|
+
const a = items()[j];
|
|
2472
|
+
const b = items()[i];
|
|
2473
|
+
if (!a || !b || a.kind !== b.kind || b.kind !== "user" && b.kind !== "turn") return false;
|
|
2474
|
+
return Date.parse(b.at) - Date.parse(a.at) <= GROUP_MS;
|
|
2475
|
+
}
|
|
2476
|
+
const time2 = (at) => new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
2477
|
+
const status = derived(() => {
|
|
2478
|
+
if (firstmateChat.connection === "lost") return { dot: "bg-danger", label: "Reconnecting" };
|
|
2479
|
+
if (!session()) return { dot: "bg-muted-foreground", label: "Connecting" };
|
|
2480
|
+
if (session().state === "external") return { dot: "bg-muted-foreground", label: "Read-only" };
|
|
2481
|
+
if (session().state === "starting") return { dot: "animate-pulse bg-sea", label: "Starting" };
|
|
2482
|
+
if (session().state !== "ours") return { dot: "bg-muted-foreground", label: "Not running" };
|
|
2483
|
+
if (picker()) return { dot: "bg-sea", label: "Asking you" };
|
|
2484
|
+
if (menu()) return { dot: "bg-sea", label: "Menu open" };
|
|
2485
|
+
return working() ? { dot: "animate-pulse bg-working", label: "Working" } : { dot: "bg-success", label: "Waiting for you" };
|
|
2486
|
+
});
|
|
2487
|
+
let replyTo = null;
|
|
2488
|
+
const captainWords = (text) => parseAttachments(parseThread(parseReply(text).body).text).text;
|
|
2489
|
+
function original(to, before = items().length) {
|
|
2490
|
+
for (let i = Math.min(before, items().length) - 1; i >= 0; i--) {
|
|
2491
|
+
const it = items()[i];
|
|
2492
|
+
if (to.who === "captain" && it.kind === "user" && quotes(to, captainWords(it.text))) return it.id;
|
|
2493
|
+
if (to.who === "firstmate" && it.kind === "turn") for (let pi = it.parts.length - 1; pi >= 0; pi--) {
|
|
2494
|
+
const part = it.parts[pi];
|
|
2495
|
+
if (part.kind === "text" && quotes(to, replyWords(part))) return part.id;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
return null;
|
|
2499
|
+
}
|
|
2500
|
+
let revealed = null;
|
|
2501
|
+
const isLive = (item, pi) => working() && item === lastItem() && item.kind === "turn" && pi === item.parts.length - 1;
|
|
2502
|
+
function replyButton($$renderer3, key, who, text) {
|
|
2503
|
+
$$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">`);
|
|
2504
|
+
Reply($$renderer3, { class: "size-4", "aria-hidden": "true" });
|
|
2505
|
+
$$renderer3.push(`<!----></button>`);
|
|
2506
|
+
}
|
|
2507
|
+
function thumbsButton($$renderer3, key, words) {
|
|
2508
|
+
const on = reactions.has(key);
|
|
2509
|
+
$$renderer3.push(`<button${attr_class(`reply-btn thumbs-btn ${revealed === key ? "is-revealed" : ""} ${on ? "is-on" : ""}`)}${attr("aria-label", on ? "Take back your thumbs-up" : "Thumbs up this message from Firstmate")}${attr("aria-pressed", on)}${attr("title", on ? "Take back 👍" : "👍")}${attr("disabled", !on && !!held(), true)}>`);
|
|
2510
|
+
Thumbs_up($$renderer3, { class: "size-4", "aria-hidden": "true" });
|
|
2511
|
+
$$renderer3.push(`<!----></button>`);
|
|
2512
|
+
}
|
|
2513
|
+
function quote($$renderer3, to, target) {
|
|
2514
|
+
$$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>`);
|
|
2515
|
+
}
|
|
2516
|
+
function decisionRow($$renderer3, d) {
|
|
2517
|
+
$$renderer3.push(`<div class="msg msg-firstmate msg-grouped"><span class="msg-gutter" aria-hidden="true"></span> <div class="min-w-0 flex-1"><div class="msg-tagline">`);
|
|
2518
|
+
tagOf($$renderer3, decisionTag(d), `decision:${d.head.cardId}`);
|
|
2519
|
+
$$renderer3.push(`<!----></div> `);
|
|
2520
|
+
ChatDecision($$renderer3, {
|
|
2521
|
+
decision: d,
|
|
2522
|
+
project: projectName(d.head.projectId),
|
|
2523
|
+
now,
|
|
2524
|
+
thread: threadOwner().get(d.head.cardId) === d.id ? discussed().byCard.get(d.head.cardId) ?? null : null,
|
|
2525
|
+
pending: threadOwner().get(d.head.cardId) === d.id ? asking().get(d.head.cardId) ?? [] : [],
|
|
2526
|
+
canAsk: !!via(),
|
|
2527
|
+
focus: firstmateChat.synced && composerBus.decision === d.head.cardId && threadOwner().get(d.head.cardId) === d.id
|
|
2528
|
+
});
|
|
2529
|
+
$$renderer3.push(`<!----></div></div>`);
|
|
2530
|
+
}
|
|
2531
|
+
function decisionEntry($$renderer3, d) {
|
|
2532
|
+
const key = `d:${d.id}`;
|
|
2533
|
+
const v = view(key);
|
|
2534
|
+
if (v !== "show" && runs().get(key)?.first === key) {
|
|
2535
|
+
$$renderer3.push("<!--[0-->");
|
|
2536
|
+
foldLine($$renderer3, runs().get(key));
|
|
2537
|
+
} else {
|
|
2538
|
+
$$renderer3.push("<!--[-1-->");
|
|
2539
|
+
}
|
|
2540
|
+
$$renderer3.push(`<!--]--> `);
|
|
2541
|
+
if (v === "show" || v === "dim") {
|
|
2542
|
+
$$renderer3.push(`<!--[0--><div${attr_class(clsx(v === "dim" ? "thread-dim" : "contents"))}>`);
|
|
2543
|
+
decisionRow($$renderer3, d);
|
|
2544
|
+
$$renderer3.push(`<!----></div>`);
|
|
2545
|
+
} else {
|
|
2546
|
+
$$renderer3.push("<!--[-1-->");
|
|
2547
|
+
}
|
|
2548
|
+
$$renderer3.push(`<!--]-->`);
|
|
2549
|
+
}
|
|
2550
|
+
function batchEntry($$renderer3, b) {
|
|
2551
|
+
const key = `b:${b.id}`;
|
|
2552
|
+
const v = view(key);
|
|
2553
|
+
if (v !== "show" && runs().get(key)?.first === key) {
|
|
2554
|
+
$$renderer3.push("<!--[0-->");
|
|
2555
|
+
foldLine($$renderer3, runs().get(key));
|
|
2556
|
+
} else {
|
|
2557
|
+
$$renderer3.push("<!--[-1-->");
|
|
2558
|
+
}
|
|
2559
|
+
$$renderer3.push(`<!--]--> `);
|
|
2560
|
+
if (v === "show" || v === "dim") {
|
|
2561
|
+
$$renderer3.push(`<!--[0--><div${attr_class(`flex flex-col gap-1 ${v === "dim" ? "thread-dim" : ""}`)}><div class="msg-tagline">`);
|
|
2562
|
+
tagOf($$renderer3, batchTag(b), `batch:${b.id}`);
|
|
2563
|
+
$$renderer3.push(`<!----></div> `);
|
|
2564
|
+
FeedbackBatch($$renderer3, {
|
|
2565
|
+
batch: b,
|
|
2566
|
+
project: projectName(tasks.find((t) => t.id === b.batch.taskId)?.projectId ?? null)
|
|
2567
|
+
});
|
|
2568
|
+
$$renderer3.push(`<!----></div>`);
|
|
2569
|
+
} else {
|
|
2570
|
+
$$renderer3.push("<!--[-1-->");
|
|
2571
|
+
}
|
|
2572
|
+
$$renderer3.push(`<!--]-->`);
|
|
2573
|
+
}
|
|
2574
|
+
function tagOf($$renderer3, tag, key) {
|
|
2575
|
+
ThreadTag($$renderer3, {
|
|
2576
|
+
tag,
|
|
2577
|
+
threads: moveTo()
|
|
2578
|
+
});
|
|
2579
|
+
}
|
|
2580
|
+
function foldLine($$renderer3, run) {
|
|
2581
|
+
$$renderer3.push(`<button class="thread-fold"${attr("aria-expanded", !!openRuns[run.first])}${attr("data-fold", run.first)}>`);
|
|
2582
|
+
Chevron_right($$renderer3, {
|
|
2583
|
+
class: `size-3.5 shrink-0 transition-transform ${openRuns[run.first] ? "rotate-90" : ""}`,
|
|
2584
|
+
"aria-hidden": "true"
|
|
2585
|
+
});
|
|
2586
|
+
$$renderer3.push(`<!----> <span class="shrink-0">${escape_html(run.count)} ${escape_html(run.count === 1 ? "message" : "messages")} about</span> <span class="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5"><!--[-->`);
|
|
2587
|
+
const each_array = ensure_array_like(run.topics);
|
|
2588
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
2589
|
+
let t = each_array[$$index];
|
|
2590
|
+
$$renderer3.push(`<span class="inline-flex items-center gap-1"><span class="thread-dot"${attr("data-hue", threadHue(t) ?? void 0)} aria-hidden="true"></span>${escape_html(threadName(t))}</span>`);
|
|
2591
|
+
}
|
|
2592
|
+
$$renderer3.push(`<!--]--></span> `);
|
|
2593
|
+
if (run.from && run.to) {
|
|
2594
|
+
$$renderer3.push(`<!--[0--><span class="tabular ml-auto shrink-0">${escape_html(time2(run.from))}${escape_html(run.to !== run.from ? `–${time2(run.to)}` : "")}</span>`);
|
|
2595
|
+
} else {
|
|
2596
|
+
$$renderer3.push("<!--[-1-->");
|
|
2597
|
+
}
|
|
2598
|
+
$$renderer3.push(`<!--]--></button>`);
|
|
2599
|
+
}
|
|
2600
|
+
let $$settled = true;
|
|
2601
|
+
let $$inner_renderer;
|
|
2602
|
+
function $$render_inner($$renderer3) {
|
|
2603
|
+
$$renderer3.push(`<section class="chat-grid relative flex min-h-0 min-w-0 flex-1 flex-col bg-panel" aria-label="Firstmate">`);
|
|
2604
|
+
{
|
|
2605
|
+
$$renderer3.push("<!--[-1-->");
|
|
2606
|
+
}
|
|
2607
|
+
$$renderer3.push(`<!--]--> <div class="border-b"><div class="flex h-14 items-center gap-3 px-4 text-sm sm:px-6 lg:px-10"><span class="text-[1.08rem] font-bold">Firstmate</span> `);
|
|
2608
|
+
if (chat().title) {
|
|
2609
|
+
$$renderer3.push(`<!--[0--><span class="hidden truncate text-[1.02rem] text-foreground/80 sm:inline">${escape_html(chat().title)}</span>`);
|
|
2610
|
+
} else {
|
|
2611
|
+
$$renderer3.push("<!--[-1-->");
|
|
2612
|
+
}
|
|
2613
|
+
$$renderer3.push(`<!--]--> <div class="relative ml-auto shrink-0"><button class="flex h-8.5 cursor-pointer items-center gap-1.5 rounded-full border bg-card/50 px-3 text-xs transition-colors hover:bg-muted max-md:h-11"${attr("aria-expanded", showChecks)} aria-haspopup="dialog">`);
|
|
2614
|
+
if (HIcon()) {
|
|
2615
|
+
$$renderer3.push("<!--[-->");
|
|
2616
|
+
HIcon()($$renderer3, {
|
|
2617
|
+
class: `size-3.5 ${stringify(HEALTH_TEXT[health.tone])}`,
|
|
2618
|
+
"aria-hidden": "true"
|
|
2619
|
+
});
|
|
2620
|
+
$$renderer3.push("<!--]-->");
|
|
2621
|
+
} else {
|
|
2622
|
+
$$renderer3.push("<!--[!-->");
|
|
2623
|
+
$$renderer3.push("<!--]-->");
|
|
2624
|
+
}
|
|
2625
|
+
$$renderer3.push(` <span class="font-medium">${escape_html(health.label)}</span> <span class="hidden text-muted-foreground md:inline">· `);
|
|
2626
|
+
if (checking()) {
|
|
2627
|
+
$$renderer3.push(`<!--[0--><span class="inline-flex items-center gap-1">`);
|
|
2628
|
+
Loader_circle($$renderer3, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
2629
|
+
$$renderer3.push(`<!---->checking now</span>`);
|
|
2630
|
+
} else if (lastCheck()) {
|
|
2631
|
+
$$renderer3.push(`<!--[1-->checked ${escape_html(ago(lastCheck().at, now))}`);
|
|
2632
|
+
} else {
|
|
2633
|
+
$$renderer3.push(`<!--[-1-->no checks yet`);
|
|
2634
|
+
}
|
|
2635
|
+
$$renderer3.push(`<!--]--></span></button> `);
|
|
2636
|
+
{
|
|
2637
|
+
$$renderer3.push("<!--[-1-->");
|
|
2638
|
+
}
|
|
2639
|
+
$$renderer3.push(`<!--]--></div> <span${attr_class(`hidden h-8.5 shrink-0 items-center gap-2 rounded-full md:flex ${status().label === "Working" ? "border border-working/55 bg-working/10 px-3.5 font-medium text-foreground" : "text-muted-foreground"}`)}><span${attr_class(`size-2 rounded-full ${stringify(status().dot)}`)} aria-hidden="true"></span>${escape_html(status().label)}</span> `);
|
|
2640
|
+
if (canSend()) {
|
|
2641
|
+
$$renderer3.push(`<!--[0--><button${attr_class(`flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border transition-colors hover:bg-muted max-md:size-11 ${"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">`);
|
|
2642
|
+
Square_terminal($$renderer3, { class: "size-4" });
|
|
2643
|
+
$$renderer3.push(`<!----></button>`);
|
|
2644
|
+
} else {
|
|
2645
|
+
$$renderer3.push("<!--[-1-->");
|
|
2646
|
+
}
|
|
2647
|
+
$$renderer3.push(`<!--]--> `);
|
|
2648
|
+
if (onSwapRail && railOpen) {
|
|
2649
|
+
$$renderer3.push(`<!--[0--><button class="hidden size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border 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")}>`);
|
|
2650
|
+
Arrow_left_right($$renderer3, { class: "size-4" });
|
|
2651
|
+
$$renderer3.push(`<!----></button>`);
|
|
2652
|
+
} else {
|
|
2653
|
+
$$renderer3.push("<!--[-1-->");
|
|
2654
|
+
}
|
|
2655
|
+
$$renderer3.push(`<!--]--> <button class="relative flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-lg border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground max-md:hidden"${attr("aria-label", railOpen ? "Hide tasks and decisions" : "Show tasks and decisions")}${attr("aria-pressed", railOpen)}>`);
|
|
2656
|
+
if (railSide === "left") {
|
|
2657
|
+
$$renderer3.push("<!--[0-->");
|
|
2658
|
+
Panel_left($$renderer3, { class: "size-4" });
|
|
2659
|
+
} else {
|
|
2660
|
+
$$renderer3.push("<!--[-1-->");
|
|
2661
|
+
Panel_right($$renderer3, { class: "size-4" });
|
|
2662
|
+
}
|
|
2663
|
+
$$renderer3.push(`<!--]--> `);
|
|
2664
|
+
if (waiting && !railOpen) {
|
|
2665
|
+
$$renderer3.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>`);
|
|
2666
|
+
} else {
|
|
2667
|
+
$$renderer3.push("<!--[-1-->");
|
|
2668
|
+
}
|
|
2669
|
+
$$renderer3.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">`);
|
|
2670
|
+
if (firstmateChat.source?.truncated) {
|
|
2671
|
+
$$renderer3.push(`<!--[0--><p class="text-xs text-muted-foreground">Earlier messages are not shown here; the full conversation is in Firstmate’s terminal.</p>`);
|
|
2672
|
+
} else {
|
|
2673
|
+
$$renderer3.push("<!--[-1-->");
|
|
2674
|
+
}
|
|
2675
|
+
$$renderer3.push(`<!--]--> `);
|
|
2676
|
+
if (session() && session().state !== "ours" && session().state !== "external") {
|
|
2677
|
+
$$renderer3.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> `);
|
|
2678
|
+
if (session().reason && session().state !== "starting") {
|
|
2679
|
+
$$renderer3.push(`<!--[0--><p class="text-sm text-muted-foreground">${escape_html(session().reason)}</p>`);
|
|
2680
|
+
} else {
|
|
2681
|
+
$$renderer3.push("<!--[-1-->");
|
|
2682
|
+
}
|
|
2683
|
+
$$renderer3.push(`<!--]--> `);
|
|
2684
|
+
if (session().state === "none") {
|
|
2685
|
+
$$renderer3.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)}>`);
|
|
2686
|
+
{
|
|
2687
|
+
$$renderer3.push("<!--[-1-->");
|
|
2688
|
+
}
|
|
2689
|
+
$$renderer3.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> `);
|
|
2690
|
+
{
|
|
2691
|
+
$$renderer3.push("<!--[-1-->");
|
|
2692
|
+
}
|
|
2693
|
+
$$renderer3.push(`<!--]-->`);
|
|
2694
|
+
} else {
|
|
2695
|
+
$$renderer3.push("<!--[-1-->");
|
|
2696
|
+
}
|
|
2697
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
2698
|
+
} else if (!items().length) {
|
|
2699
|
+
$$renderer3.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>`);
|
|
2700
|
+
} else {
|
|
2701
|
+
$$renderer3.push("<!--[-1-->");
|
|
2702
|
+
}
|
|
2703
|
+
$$renderer3.push(`<!--]--> `);
|
|
2704
|
+
if (current()) {
|
|
2705
|
+
$$renderer3.push(`<!--[0--><div class="thread-note" role="status" data-thread-note=""><p>Showing the <b>${escape_html(threadName(current()))}</b> thread: ${escape_html(inThread())} of ${escape_html(entries().length)}
|
|
2706
|
+
${escape_html(entries().length === 1 ? "message" : "messages")}.${escape_html(current() !== UNSORTED ? " What you send from here is sent in it." : "")}</p> <div class="flex flex-wrap items-center gap-x-4 gap-y-1"><label class="flex cursor-pointer items-center gap-1.5"><input type="checkbox" class="accent-sea"${attr("checked", chatTags.fold, true)}/>Fold other threads to a line</label> <button class="cursor-pointer font-medium text-sea hover:underline">Show all threads</button></div></div>`);
|
|
2707
|
+
} else {
|
|
2708
|
+
$$renderer3.push("<!--[-1-->");
|
|
2709
|
+
}
|
|
2710
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2711
|
+
const each_array_3 = ensure_array_like(items());
|
|
2712
|
+
for (let i = 0, $$length = each_array_3.length; i < $$length; i++) {
|
|
2713
|
+
let item = each_array_3[i];
|
|
2714
|
+
const grouped = groupedWithPrevious(i);
|
|
2715
|
+
const v = view(item.id);
|
|
2716
|
+
$$renderer3.push(`<!--[-->`);
|
|
2717
|
+
const each_array_4 = ensure_array_like(placed().before.get(i) ?? []);
|
|
2718
|
+
for (let $$index_3 = 0, $$length2 = each_array_4.length; $$index_3 < $$length2; $$index_3++) {
|
|
2719
|
+
let d = each_array_4[$$index_3];
|
|
2720
|
+
decisionEntry($$renderer3, d);
|
|
2721
|
+
}
|
|
2722
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2723
|
+
const each_array_5 = ensure_array_like(batches().before.get(i) ?? []);
|
|
2724
|
+
for (let $$index_4 = 0, $$length2 = each_array_5.length; $$index_4 < $$length2; $$index_4++) {
|
|
2725
|
+
let b = each_array_5[$$index_4];
|
|
2726
|
+
batchEntry($$renderer3, b);
|
|
2727
|
+
}
|
|
2728
|
+
$$renderer3.push(`<!--]--> `);
|
|
2729
|
+
if (discussed().hidden.has(item.id)) {
|
|
2730
|
+
$$renderer3.push("<!--[0-->");
|
|
2731
|
+
} else if (v !== "show" && runs().get(item.id)?.first === item.id) {
|
|
2732
|
+
$$renderer3.push("<!--[1-->");
|
|
2733
|
+
foldLine($$renderer3, runs().get(item.id));
|
|
2734
|
+
} else {
|
|
2735
|
+
$$renderer3.push("<!--[-1-->");
|
|
2736
|
+
}
|
|
2737
|
+
$$renderer3.push(`<!--]--> `);
|
|
2738
|
+
if (discussed().hidden.has(item.id) || v === "hide" || v === "line") {
|
|
2739
|
+
$$renderer3.push("<!--[0-->");
|
|
2740
|
+
} else if (item.kind === "user") {
|
|
2741
|
+
$$renderer3.push("<!--[1-->");
|
|
2742
|
+
const reply = parseReply(item.text);
|
|
2743
|
+
const sent = parseAttachments(parseThread(reply.body).text);
|
|
2744
|
+
const tag = tagged().users.get(item.id) ?? UNSORTED_TAG;
|
|
2745
|
+
const prevAt = previousShown(i);
|
|
2746
|
+
$$renderer3.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""} ${v === "dim" ? "thread-dim" : ""}`)}${attr("aria-label", `You, ${stringify(time2(item.at))}`)}>`);
|
|
2747
|
+
if (grouped) {
|
|
2748
|
+
$$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
2749
|
+
} else {
|
|
2750
|
+
$$renderer3.push(`<!--[-1--><span class="captain-avatar">C</span>`);
|
|
2751
|
+
}
|
|
2752
|
+
$$renderer3.push(`<!--]--> <div class="min-w-0 flex-1">`);
|
|
2753
|
+
if (!grouped) {
|
|
2754
|
+
$$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
|
|
2755
|
+
if (item.queued) {
|
|
2756
|
+
$$renderer3.push(`<!--[0--><span>· sent while Firstmate was working</span>`);
|
|
2757
|
+
} else {
|
|
2758
|
+
$$renderer3.push("<!--[-1-->");
|
|
2759
|
+
}
|
|
2760
|
+
$$renderer3.push(`<!--]--> `);
|
|
2761
|
+
tagOf($$renderer3, tag, item.id);
|
|
2762
|
+
$$renderer3.push(`<!----></header>`);
|
|
2763
|
+
} else if (prevAt < 0 || lastTopic(items()[prevAt]) !== tag.topic) {
|
|
2764
|
+
$$renderer3.push(`<!--[1--><div class="msg-tagline">`);
|
|
2765
|
+
tagOf($$renderer3, tag, item.id);
|
|
2766
|
+
$$renderer3.push(`<!----></div>`);
|
|
2767
|
+
} else {
|
|
2768
|
+
$$renderer3.push("<!--[-1-->");
|
|
2769
|
+
}
|
|
2770
|
+
$$renderer3.push(`<!--]--> `);
|
|
2771
|
+
if (reply.to || sent.text) {
|
|
2772
|
+
$$renderer3.push(`<!--[0--><div class="bubble-row"><div${attr_class(`bubble bubble-captain ${item.command ? "font-mono text-sm" : ""}`)}${attr("data-bubble", item.id)}>`);
|
|
2773
|
+
if (reply.to) {
|
|
2774
|
+
$$renderer3.push("<!--[0-->");
|
|
2775
|
+
quote($$renderer3, reply.to, original(reply.to, i));
|
|
2776
|
+
} else {
|
|
2777
|
+
$$renderer3.push("<!--[-1-->");
|
|
2778
|
+
}
|
|
2779
|
+
$$renderer3.push(`<!--]-->`);
|
|
2780
|
+
captainText($$renderer3, sent.text, true);
|
|
2781
|
+
$$renderer3.push(`<!----></div> `);
|
|
2782
|
+
if (via() && !item.command) {
|
|
2783
|
+
$$renderer3.push("<!--[0-->");
|
|
2784
|
+
replyButton($$renderer3, item.id, "captain", item.text);
|
|
2785
|
+
} else {
|
|
2786
|
+
$$renderer3.push("<!--[-1-->");
|
|
2787
|
+
}
|
|
2788
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
2789
|
+
} else {
|
|
2790
|
+
$$renderer3.push("<!--[-1-->");
|
|
2791
|
+
}
|
|
2792
|
+
$$renderer3.push(`<!--]--> `);
|
|
2793
|
+
if (sent.files.length) {
|
|
2794
|
+
$$renderer3.push("<!--[0-->");
|
|
2795
|
+
SentFiles($$renderer3, { files: sent.files });
|
|
2796
|
+
} else {
|
|
2797
|
+
$$renderer3.push("<!--[-1-->");
|
|
2798
|
+
}
|
|
2799
|
+
$$renderer3.push(`<!--]--></div></article>`);
|
|
2800
|
+
} else if (item.kind === "output") {
|
|
2801
|
+
$$renderer3.push(`<!--[2--><pre${attr_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 ${v === "dim" ? "thread-dim" : ""}`)}>${escape_html(item.text)}</pre>`);
|
|
2802
|
+
} else if (item.kind === "notice") {
|
|
2803
|
+
$$renderer3.push(`<!--[3--><div${attr_class(`flex flex-col items-start ${v === "dim" ? "thread-dim" : ""}`)}><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])}>`);
|
|
2804
|
+
Bell($$renderer3, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
2805
|
+
$$renderer3.push(`<!----> <span class="truncate">${escape_html(item.title)} · ${escape_html(time2(item.at))}</span> `);
|
|
2806
|
+
Chevron_right($$renderer3, {
|
|
2807
|
+
class: `size-3.5 shrink-0 transition-transform ${openNotice[item.id] ? "rotate-90" : ""}`,
|
|
2808
|
+
"aria-hidden": "true"
|
|
2809
|
+
});
|
|
2810
|
+
$$renderer3.push(`<!----></button> `);
|
|
2811
|
+
if (openNotice[item.id]) {
|
|
2812
|
+
$$renderer3.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">`);
|
|
2813
|
+
LinkedText($$renderer3, { text: item.detail });
|
|
2814
|
+
$$renderer3.push(`<!----></div>`);
|
|
2815
|
+
} else {
|
|
2816
|
+
$$renderer3.push("<!--[-1-->");
|
|
2817
|
+
}
|
|
2818
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
2819
|
+
} else {
|
|
2820
|
+
$$renderer3.push("<!--[-1-->");
|
|
2821
|
+
const prevAt = previousShown(i);
|
|
2822
|
+
const lay = layoutTurn(item, v === "dim" || !current(), grouped, prevAt >= 0 ? lastTopic(items()[prevAt]) : null);
|
|
2823
|
+
$$renderer3.push(`<article${attr_class(`msg msg-firstmate ${grouped ? "msg-grouped" : ""} ${v === "dim" ? "thread-dim" : ""}`)}${attr("aria-label", `Firstmate, ${stringify(time2(item.at))}`)}>`);
|
|
2824
|
+
if (grouped) {
|
|
2825
|
+
$$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
2826
|
+
} else {
|
|
2827
|
+
$$renderer3.push("<!--[-1-->");
|
|
2828
|
+
Avatar($$renderer3, { class: "msg-avatar size-8" });
|
|
2829
|
+
}
|
|
2830
|
+
$$renderer3.push(`<!--]--> <div class="flex min-w-0 flex-1 flex-col gap-2">`);
|
|
2831
|
+
if (!grouped) {
|
|
2832
|
+
$$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">Firstmate</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
|
|
2833
|
+
if (lay.head) {
|
|
2834
|
+
$$renderer3.push("<!--[0-->");
|
|
2835
|
+
tagOf($$renderer3, lay.head.tag, lay.head.key);
|
|
2836
|
+
} else {
|
|
2837
|
+
$$renderer3.push("<!--[-1-->");
|
|
2838
|
+
}
|
|
2839
|
+
$$renderer3.push(`<!--]--></header>`);
|
|
2840
|
+
} else {
|
|
2841
|
+
$$renderer3.push("<!--[-1-->");
|
|
2842
|
+
}
|
|
2843
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2844
|
+
const each_array_6 = ensure_array_like(item.parts);
|
|
2845
|
+
for (let pi = 0, $$length2 = each_array_6.length; pi < $$length2; pi++) {
|
|
2846
|
+
let part = each_array_6[pi];
|
|
2847
|
+
if (part.kind === "text") {
|
|
2848
|
+
$$renderer3.push("<!--[0-->");
|
|
2849
|
+
const asked = forms().get(part.id);
|
|
2850
|
+
const words = replyWords(part);
|
|
2851
|
+
const shown2 = lay.parts.get(part.id);
|
|
2852
|
+
if (shown2?.above) {
|
|
2853
|
+
$$renderer3.push(`<!--[0--><div class="msg-tagline -mb-1">`);
|
|
2854
|
+
tagOf($$renderer3, shown2.above.tag, shown2.above.key);
|
|
2855
|
+
$$renderer3.push(`<!----></div>`);
|
|
2856
|
+
} else {
|
|
2857
|
+
$$renderer3.push("<!--[-1-->");
|
|
2858
|
+
}
|
|
2859
|
+
$$renderer3.push(`<!--]--> `);
|
|
2860
|
+
if (words && shown2?.secs.length) {
|
|
2861
|
+
$$renderer3.push("<!--[0-->");
|
|
2862
|
+
const brief = isBriefing(words);
|
|
2863
|
+
$$renderer3.push(`<div class="bubble-row"><div${attr_class(`chat-md bubble bubble-firstmate ${brief ? "bubble-brief" : ""}`)}${attr("data-bubble", part.id)}${attr("data-briefing", brief || void 0)}>`);
|
|
2864
|
+
if (brief) {
|
|
2865
|
+
$$renderer3.push(`<!--[0--><div class="brief-head"><span class="brief-tag">Briefing</span><span class="truncate">Firstmate${escape_html(chat().title ? ` · ${chat().title}` : "")}</span></div>`);
|
|
2866
|
+
} else {
|
|
2867
|
+
$$renderer3.push("<!--[-1-->");
|
|
2868
|
+
}
|
|
2869
|
+
$$renderer3.push(`<!--]--> `);
|
|
2870
|
+
if (shown2.secs.length > 1) {
|
|
2871
|
+
$$renderer3.push(`<!--[0--><!--[-->`);
|
|
2872
|
+
const each_array_7 = ensure_array_like(shown2.secs);
|
|
2873
|
+
for (let $$index_5 = 0, $$length3 = each_array_7.length; $$index_5 < $$length3; $$index_5++) {
|
|
2874
|
+
let sec = each_array_7[$$index_5];
|
|
2875
|
+
if (sec.intro) {
|
|
2876
|
+
$$renderer3.push(`<!--[0--><div class="mb-3">${html(md(sec.text))}</div>`);
|
|
2877
|
+
} else {
|
|
2878
|
+
$$renderer3.push(`<!--[-1--><div class="thread-section"${attr("data-hue", threadHue(sec.tag.topic) ?? void 0)}><div class="mb-1">`);
|
|
2879
|
+
tagOf($$renderer3, sec.tag, sec.key);
|
|
2880
|
+
$$renderer3.push(`<!----></div> ${html(md(sec.text))}</div>`);
|
|
2881
|
+
}
|
|
2882
|
+
$$renderer3.push(`<!--]-->`);
|
|
2883
|
+
}
|
|
2884
|
+
$$renderer3.push(`<!--]-->`);
|
|
2885
|
+
} else {
|
|
2886
|
+
$$renderer3.push(`<!--[-1-->${html(md(shown2.whole ? words : shown2.secs[0].text))}`);
|
|
2887
|
+
}
|
|
2888
|
+
$$renderer3.push(`<!--]-->`);
|
|
2889
|
+
if (reactions.has(part.id)) {
|
|
2890
|
+
$$renderer3.push(`<!--[0--><span class="thumbs-mark" role="img" aria-label="You gave this a thumbs-up">👍</span>`);
|
|
2891
|
+
} else {
|
|
2892
|
+
$$renderer3.push("<!--[-1-->");
|
|
2893
|
+
}
|
|
2894
|
+
$$renderer3.push(`<!--]--></div> `);
|
|
2895
|
+
if (via()) {
|
|
2896
|
+
$$renderer3.push("<!--[0-->");
|
|
2897
|
+
replyButton($$renderer3, part.id, "firstmate");
|
|
2898
|
+
$$renderer3.push(`<!---->`);
|
|
2899
|
+
thumbsButton($$renderer3, part.id);
|
|
2900
|
+
$$renderer3.push(`<!---->`);
|
|
2901
|
+
} else {
|
|
2902
|
+
$$renderer3.push("<!--[-1-->");
|
|
2903
|
+
}
|
|
2904
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
2905
|
+
} else {
|
|
2906
|
+
$$renderer3.push("<!--[-1-->");
|
|
2907
|
+
}
|
|
2908
|
+
$$renderer3.push(`<!--]--> `);
|
|
2909
|
+
if (asked && shown2?.secs.length) {
|
|
2910
|
+
$$renderer3.push(`<!--[0--><div${attr_class(`w-full max-w-[min(100%,40rem)] rounded-lg border border-l-[3px] bg-card px-4 pt-0.5 pb-3 sm:px-5 ${asked.active ? "border-l-sea" : asked.decided !== null ? "border-l-success/70" : "border-l-hair"}`)}${attr("data-chat-form", asked.active ? "open" : asked.decided !== null ? "answered" : "replaced")}>`);
|
|
2911
|
+
DecisionForm($$renderer3, {
|
|
2912
|
+
form: asked.form,
|
|
2913
|
+
name: part.id,
|
|
2914
|
+
canAnswer: asked.active && !!via() && !held(),
|
|
2915
|
+
decided: asked.decided,
|
|
2916
|
+
onAnswer: (a, note) => decide(part.id, a, note)
|
|
2917
|
+
});
|
|
2918
|
+
$$renderer3.push(`<!----> `);
|
|
2919
|
+
if (!asked.active && asked.decided === null) {
|
|
2920
|
+
$$renderer3.push(`<!--[0--><p class="mt-2 text-xs text-muted-foreground">A later question from Firstmate replaced this one.</p>`);
|
|
2921
|
+
} else {
|
|
2922
|
+
$$renderer3.push("<!--[-1-->");
|
|
2923
|
+
}
|
|
2924
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
2925
|
+
} else {
|
|
2926
|
+
$$renderer3.push("<!--[-1-->");
|
|
2927
|
+
}
|
|
2928
|
+
$$renderer3.push(`<!--]--> `);
|
|
2929
|
+
if (shown2?.secs.length) {
|
|
2930
|
+
$$renderer3.push(`<!--[0--><!--[-->`);
|
|
2931
|
+
const each_array_8 = ensure_array_like(asks().get(part.id) ?? []);
|
|
2932
|
+
for (let ai = 0, $$length3 = each_array_8.length; ai < $$length3; ai++) {
|
|
2933
|
+
let a = each_array_8[ai];
|
|
2934
|
+
$$renderer3.push(`<div${attr_class(`flex w-full max-w-[min(100%,40rem)] items-start gap-3 rounded-lg border border-l-[3px] bg-card px-4 py-3 ${a.stored ? "border-l-success/70" : "border-l-brass"}`)}${attr("data-vault-request", a.stored ? "stored" : "open")}>`);
|
|
2935
|
+
Key_round($$renderer3, {
|
|
2936
|
+
class: "mt-0.5 size-4 shrink-0 text-brass",
|
|
2937
|
+
"aria-hidden": "true"
|
|
2938
|
+
});
|
|
2939
|
+
$$renderer3.push(`<!----> <div class="min-w-0 flex-1"><p class="text-sm">Firstmate asks for <span class="font-mono font-medium">${escape_html(a.request.name)}</span></p> `);
|
|
2940
|
+
if (a.request.purpose) {
|
|
2941
|
+
$$renderer3.push(`<!--[0--><p class="mt-0.5 text-sm text-muted-foreground">${escape_html(a.request.purpose)}</p>`);
|
|
2942
|
+
} else {
|
|
2943
|
+
$$renderer3.push("<!--[-1-->");
|
|
2944
|
+
}
|
|
2945
|
+
$$renderer3.push(`<!--]--> `);
|
|
2946
|
+
if (a.stored) {
|
|
2947
|
+
$$renderer3.push(`<!--[0--><p class="mt-1 flex items-center gap-1 text-xs text-muted-foreground">`);
|
|
2948
|
+
Circle_check($$renderer3, { class: "size-3.5 text-success", "aria-hidden": "true" });
|
|
2949
|
+
$$renderer3.push(`<!---->Stored in the vault</p>`);
|
|
2950
|
+
} else {
|
|
2951
|
+
$$renderer3.push("<!--[-1-->");
|
|
2952
|
+
}
|
|
2953
|
+
$$renderer3.push(`<!--]--></div> <button type="button" class="shrink-0 cursor-pointer rounded-md border px-3 py-1.5 text-sm transition-colors hover:bg-muted">${escape_html(a.stored ? "Store again…" : `Add ${a.request.name}…`)}</button></div>`);
|
|
2954
|
+
}
|
|
2955
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2956
|
+
const each_array_9 = ensure_array_like(matchBridgeCards(part.text, pluginEntries));
|
|
2957
|
+
for (let $$index_7 = 0, $$length3 = each_array_9.length; $$index_7 < $$length3; $$index_7++) {
|
|
2958
|
+
let { entry, card } = each_array_9[$$index_7];
|
|
2959
|
+
$$renderer3.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">`);
|
|
2960
|
+
Blocks($$renderer3, { blocks: card.blocks });
|
|
2961
|
+
$$renderer3.push(`<!----></div></div>`);
|
|
2962
|
+
}
|
|
2963
|
+
$$renderer3.push(`<!--]-->`);
|
|
2964
|
+
} else {
|
|
2965
|
+
$$renderer3.push("<!--[-1-->");
|
|
2966
|
+
}
|
|
2967
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2968
|
+
const each_array_10 = ensure_array_like(previews().get(part.id) ?? []);
|
|
2969
|
+
for (let $$index_8 = 0, $$length3 = each_array_10.length; $$index_8 < $$length3; $$index_8++) {
|
|
2970
|
+
let pv = each_array_10[$$index_8];
|
|
2971
|
+
if (!pv.task) {
|
|
2972
|
+
$$renderer3.push("<!--[0-->");
|
|
2973
|
+
ChatPreview($$renderer3, { preview: pv, now });
|
|
2974
|
+
} else {
|
|
2975
|
+
$$renderer3.push("<!--[-1-->");
|
|
2976
|
+
const ptag = previewTag(pv.task.id, pv.task.projectId);
|
|
2977
|
+
if (v === "dim" || !current() || ptag.topic === current()) {
|
|
2978
|
+
$$renderer3.push(`<!--[0--><div class="flex flex-col gap-1"><div class="msg-tagline">`);
|
|
2979
|
+
tagOf($$renderer3, ptag, `preview:${pv.task.id}`);
|
|
2980
|
+
$$renderer3.push(`<!----></div> `);
|
|
2981
|
+
ChatPreview($$renderer3, { preview: pv, project: projectName(pv.task.projectId), now });
|
|
2982
|
+
$$renderer3.push(`<!----></div>`);
|
|
2983
|
+
} else {
|
|
2984
|
+
$$renderer3.push("<!--[-1-->");
|
|
2985
|
+
}
|
|
2986
|
+
$$renderer3.push(`<!--]-->`);
|
|
2987
|
+
}
|
|
2988
|
+
$$renderer3.push(`<!--]-->`);
|
|
2989
|
+
}
|
|
2990
|
+
$$renderer3.push(`<!--]-->`);
|
|
2991
|
+
} else if (part.kind === "question") {
|
|
2992
|
+
$$renderer3.push("<!--[1-->");
|
|
2993
|
+
QuestionCard($$renderer3, { part });
|
|
2994
|
+
} else {
|
|
2995
|
+
$$renderer3.push("<!--[-1-->");
|
|
2996
|
+
Activity($$renderer3, { steps: part.steps, live: isLive(item, pi) });
|
|
2997
|
+
$$renderer3.push(`<!----> <!--[-->`);
|
|
2998
|
+
const each_array_11 = ensure_array_like(part.steps);
|
|
2999
|
+
for (let $$index_9 = 0, $$length3 = each_array_11.length; $$index_9 < $$length3; $$index_9++) {
|
|
3000
|
+
let step = each_array_11[$$index_9];
|
|
3001
|
+
if (apps[step.id]) {
|
|
3002
|
+
$$renderer3.push("<!--[0-->");
|
|
3003
|
+
var bind_get = () => !collapsedApps[step.id];
|
|
3004
|
+
var bind_set = (v2) => collapsedApps[step.id] = !v2;
|
|
3005
|
+
ChatApp($$renderer3, {
|
|
3006
|
+
id: step.id,
|
|
3007
|
+
app: apps[step.id],
|
|
3008
|
+
get open() {
|
|
3009
|
+
return bind_get();
|
|
3010
|
+
},
|
|
3011
|
+
set open($$value) {
|
|
3012
|
+
bind_set($$value);
|
|
3013
|
+
}
|
|
3014
|
+
});
|
|
3015
|
+
} else {
|
|
3016
|
+
$$renderer3.push("<!--[-1-->");
|
|
3017
|
+
}
|
|
3018
|
+
$$renderer3.push(`<!--]-->`);
|
|
3019
|
+
}
|
|
3020
|
+
$$renderer3.push(`<!--]-->`);
|
|
3021
|
+
}
|
|
3022
|
+
$$renderer3.push(`<!--]-->`);
|
|
3023
|
+
}
|
|
3024
|
+
$$renderer3.push(`<!--]--> `);
|
|
3025
|
+
if (lay.hidden) {
|
|
3026
|
+
$$renderer3.push(`<!--[0--><span class="text-xs text-muted-foreground" data-other-threads="">+ ${escape_html(lay.hidden)}
|
|
3027
|
+
${escape_html(lay.hidden === 1 ? "part" : "parts")} about other threads</span>`);
|
|
3028
|
+
} else {
|
|
3029
|
+
$$renderer3.push("<!--[-1-->");
|
|
3030
|
+
}
|
|
3031
|
+
$$renderer3.push(`<!--]--> `);
|
|
3032
|
+
if (item.interrupted) {
|
|
3033
|
+
$$renderer3.push(`<!--[0--><span class="text-xs text-muted-foreground">Stopped</span>`);
|
|
3034
|
+
} else if (item.done && item.durationMs) {
|
|
3035
|
+
$$renderer3.push(`<!--[1--><span class="worked-for">Worked for ${escape_html(duration(item.durationMs))}</span>`);
|
|
3036
|
+
} else {
|
|
3037
|
+
$$renderer3.push("<!--[-1-->");
|
|
3038
|
+
}
|
|
3039
|
+
$$renderer3.push(`<!--]--></div></article>`);
|
|
3040
|
+
}
|
|
3041
|
+
$$renderer3.push(`<!--]-->`);
|
|
3042
|
+
}
|
|
3043
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
3044
|
+
const each_array_12 = ensure_array_like(placed().end);
|
|
3045
|
+
for (let $$index_12 = 0, $$length = each_array_12.length; $$index_12 < $$length; $$index_12++) {
|
|
3046
|
+
let d = each_array_12[$$index_12];
|
|
3047
|
+
decisionEntry($$renderer3, d);
|
|
3048
|
+
}
|
|
3049
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
3050
|
+
const each_array_13 = ensure_array_like(batches().end);
|
|
3051
|
+
for (let $$index_13 = 0, $$length = each_array_13.length; $$index_13 < $$length; $$index_13++) {
|
|
3052
|
+
let b = each_array_13[$$index_13];
|
|
3053
|
+
batchEntry($$renderer3, b);
|
|
3054
|
+
}
|
|
3055
|
+
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
3056
|
+
const each_array_14 = ensure_array_like(chatPending());
|
|
3057
|
+
for (let pi = 0, $$length = each_array_14.length; pi < $$length; pi++) {
|
|
3058
|
+
let p = each_array_14[pi];
|
|
3059
|
+
const grouped = pi > 0 || lastItem()?.kind === "user";
|
|
3060
|
+
const reply = parseReply(p.text);
|
|
3061
|
+
const sent = parseAttachments(parseThread(reply.body).text);
|
|
3062
|
+
$$renderer3.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""}`)}${attr("data-pending", p.state)}${attr("aria-label", `You, ${stringify(pendingLabel(p))}`)}>`);
|
|
3063
|
+
if (grouped) {
|
|
3064
|
+
$$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
3065
|
+
} else {
|
|
3066
|
+
$$renderer3.push(`<!--[-1--><span class="captain-avatar">C</span>`);
|
|
3067
|
+
}
|
|
3068
|
+
$$renderer3.push(`<!--]--> <div class="min-w-0 flex-1">`);
|
|
3069
|
+
if (!grouped) {
|
|
3070
|
+
$$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span></header>`);
|
|
3071
|
+
} else {
|
|
3072
|
+
$$renderer3.push("<!--[-1-->");
|
|
3073
|
+
}
|
|
3074
|
+
$$renderer3.push(`<!--]--> `);
|
|
3075
|
+
if (reply.to || sent.text) {
|
|
3076
|
+
$$renderer3.push(`<!--[0--><div${attr_class(`bubble bubble-captain border-dashed ${p.state === "failed" ? "border-danger/60" : "opacity-60"}`)}>`);
|
|
3077
|
+
if (reply.to) {
|
|
3078
|
+
$$renderer3.push("<!--[0-->");
|
|
3079
|
+
quote($$renderer3, reply.to, original(reply.to));
|
|
3080
|
+
} else {
|
|
3081
|
+
$$renderer3.push("<!--[-1-->");
|
|
3082
|
+
}
|
|
3083
|
+
$$renderer3.push(`<!--]-->`);
|
|
3084
|
+
captainText($$renderer3, sent.text, false);
|
|
3085
|
+
$$renderer3.push(`<!----></div>`);
|
|
3086
|
+
} else {
|
|
3087
|
+
$$renderer3.push("<!--[-1-->");
|
|
3088
|
+
}
|
|
3089
|
+
$$renderer3.push(`<!--]--> `);
|
|
3090
|
+
if (sent.files.length) {
|
|
3091
|
+
$$renderer3.push("<!--[0-->");
|
|
3092
|
+
SentFiles($$renderer3, { files: sent.files, pending: true });
|
|
3093
|
+
} else {
|
|
3094
|
+
$$renderer3.push("<!--[-1-->");
|
|
3095
|
+
}
|
|
3096
|
+
$$renderer3.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">`);
|
|
3097
|
+
if (p.state === "failed") {
|
|
3098
|
+
$$renderer3.push("<!--[0-->");
|
|
3099
|
+
Circle_x($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
|
|
3100
|
+
$$renderer3.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">`);
|
|
3101
|
+
Rotate_cw($$renderer3, { class: "size-3", "aria-hidden": "true" });
|
|
3102
|
+
$$renderer3.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
|
|
3103
|
+
} else {
|
|
3104
|
+
$$renderer3.push("<!--[-1-->");
|
|
3105
|
+
Loader_circle($$renderer3, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
3106
|
+
$$renderer3.push(`<!---->${escape_html(pendingLabel(p))}`);
|
|
3107
|
+
}
|
|
3108
|
+
$$renderer3.push(`<!--]--></p></div></article>`);
|
|
3109
|
+
}
|
|
3110
|
+
$$renderer3.push(`<!--]--> `);
|
|
3111
|
+
if (picker()) {
|
|
3112
|
+
$$renderer3.push("<!--[0-->");
|
|
3113
|
+
PickerCard($$renderer3, {
|
|
3114
|
+
picker: picker()
|
|
3115
|
+
});
|
|
3116
|
+
} else if (menu()) {
|
|
3117
|
+
$$renderer3.push("<!--[1-->");
|
|
3118
|
+
MenuCard($$renderer3, { menu: menu() });
|
|
3119
|
+
} else if (working()) {
|
|
3120
|
+
$$renderer3.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>`);
|
|
3121
|
+
} else {
|
|
3122
|
+
$$renderer3.push("<!--[-1-->");
|
|
3123
|
+
}
|
|
3124
|
+
$$renderer3.push(`<!--]--></div></div> `);
|
|
3125
|
+
{
|
|
3126
|
+
$$renderer3.push("<!--[-1-->");
|
|
3127
|
+
}
|
|
3128
|
+
$$renderer3.push(`<!--]--> `);
|
|
3129
|
+
{
|
|
3130
|
+
$$renderer3.push("<!--[-1-->");
|
|
3131
|
+
}
|
|
3132
|
+
$$renderer3.push(`<!--]--></div> <div class="bg-panel px-4 pb-4 sm:px-6 lg:px-10">`);
|
|
3133
|
+
if (vaultNotice) {
|
|
3134
|
+
$$renderer3.push(`<!--[0--><p class="mb-2 flex items-start gap-2 rounded-md border border-success/40 bg-success/5 px-3 py-2 text-sm" role="status" data-vault-notice=""><span class="min-w-0 flex-1">${escape_html(vaultNotice)}</span> <button class="-my-0.5 shrink-0 cursor-pointer rounded p-0.5 text-muted-foreground hover:text-foreground" aria-label="Dismiss">`);
|
|
3135
|
+
X($$renderer3, { class: "size-4" });
|
|
3136
|
+
$$renderer3.push(`<!----></button></p>`);
|
|
3137
|
+
} else {
|
|
3138
|
+
$$renderer3.push("<!--[-1-->");
|
|
3139
|
+
}
|
|
3140
|
+
$$renderer3.push(`<!--]--> `);
|
|
3141
|
+
Composer($$renderer3, {
|
|
3142
|
+
onvault: () => addSecret(null),
|
|
3143
|
+
via: via(),
|
|
3144
|
+
reason: session()?.reason ?? null,
|
|
3145
|
+
working: working() && !waitingOnAnswer(),
|
|
3146
|
+
held: held(),
|
|
3147
|
+
commands: firstmateChat.commands,
|
|
3148
|
+
reply: replyTo,
|
|
3149
|
+
thread: current() && current() !== UNSORTED ? {
|
|
3150
|
+
topic: current(),
|
|
3151
|
+
name: threadName(current()),
|
|
3152
|
+
hue: threadHue(current())
|
|
3153
|
+
} : null,
|
|
3154
|
+
threads: moveTo().filter((t) => t.topic !== UNSORTED)
|
|
3155
|
+
});
|
|
3156
|
+
$$renderer3.push(`<!----></div> `);
|
|
3157
|
+
VaultAdd($$renderer3, {
|
|
3158
|
+
ask: vaultAsk,
|
|
3159
|
+
projects: projects.map((p) => p.id),
|
|
3160
|
+
token,
|
|
3161
|
+
onstored: secretStored,
|
|
3162
|
+
get open() {
|
|
3163
|
+
return vaultOpen;
|
|
3164
|
+
},
|
|
3165
|
+
set open($$value) {
|
|
3166
|
+
vaultOpen = $$value;
|
|
3167
|
+
$$settled = false;
|
|
3168
|
+
}
|
|
3169
|
+
});
|
|
3170
|
+
$$renderer3.push(`<!----></section>`);
|
|
3171
|
+
}
|
|
3172
|
+
do {
|
|
3173
|
+
$$settled = true;
|
|
3174
|
+
$$inner_renderer = $$renderer2.copy();
|
|
3175
|
+
$$render_inner($$inner_renderer);
|
|
3176
|
+
} while (!$$settled);
|
|
3177
|
+
$$renderer2.subsume($$inner_renderer);
|
|
3178
|
+
});
|
|
3179
|
+
}
|
|
3180
|
+
const RAIL_SIDE_KEY = "wheelhouse-ondeck-side";
|
|
3181
|
+
function parseRailSide(raw) {
|
|
3182
|
+
return raw === "right" ? "right" : "left";
|
|
3183
|
+
}
|
|
3184
|
+
class HomeLayout {
|
|
3185
|
+
side = "left";
|
|
3186
|
+
load() {
|
|
3187
|
+
try {
|
|
3188
|
+
this.side = parseRailSide(localStorage.getItem(RAIL_SIDE_KEY));
|
|
3189
|
+
} catch {
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
swap() {
|
|
3193
|
+
this.side = this.side === "left" ? "right" : "left";
|
|
3194
|
+
try {
|
|
3195
|
+
localStorage.setItem(RAIL_SIDE_KEY, this.side);
|
|
3196
|
+
} catch {
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
}
|
|
3200
|
+
const homeLayout = new HomeLayout();
|
|
3201
|
+
function _page($$renderer, $$props) {
|
|
3202
|
+
$$renderer.component(($$renderer2) => {
|
|
3203
|
+
let { data } = $$props;
|
|
3204
|
+
const fleet = derived(currentFleet);
|
|
3205
|
+
const scope = derived(() => page.url.searchParams.get("project"));
|
|
3206
|
+
const thread = derived(() => page.url.searchParams.get("thread") ?? scope());
|
|
3207
|
+
function pickThread(topic) {
|
|
3208
|
+
const project = topic && fleet()?.projects.some((p) => p.id === topic);
|
|
3209
|
+
const q = !topic ? "" : project ? `?project=${encodeURIComponent(topic)}` : `?thread=${encodeURIComponent(topic)}`;
|
|
3210
|
+
void goto(`/${q}`, {});
|
|
3211
|
+
}
|
|
3212
|
+
const tasks = derived(() => (fleet()?.tasks ?? []).filter((t) => !scope() || t.projectId === scope()));
|
|
3213
|
+
const h = derived(() => harbour(tasks(), live.now));
|
|
3214
|
+
const health = derived(() => shipHealth(h()));
|
|
3215
|
+
const waiting = derived(() => h().needsYou.length + h().stepFailed.length);
|
|
3216
|
+
const pluginEntries = derived(() => slots.entries(slotKey.fleet, data.slots, data.slotsAt));
|
|
3217
|
+
const cards = derived(() => pluginEntries().filter((e) => e.slot === "home.card"));
|
|
3218
|
+
const insights = derived(() => railInsights.value ?? data.insights);
|
|
3219
|
+
let railOpen = true;
|
|
3220
|
+
head("1uha8ag", $$renderer2, ($$renderer3) => {
|
|
3221
|
+
$$renderer3.title(($$renderer4) => {
|
|
3222
|
+
$$renderer4.push(`<title>Firstmate · Wheelhouse</title>`);
|
|
3223
|
+
});
|
|
3224
|
+
});
|
|
3225
|
+
$$renderer2.push(`<main${attr_class(`flex min-h-0 flex-1 ${homeLayout.side === "left" ? "flex-row-reverse" : ""}`)}>`);
|
|
3226
|
+
Chat($$renderer2, {
|
|
3227
|
+
token: data.sessionToken,
|
|
3228
|
+
railOpen,
|
|
3229
|
+
waiting: waiting(),
|
|
3230
|
+
health: health(),
|
|
3231
|
+
now: live.now,
|
|
3232
|
+
pluginEntries: pluginEntries(),
|
|
3233
|
+
tasks: fleet()?.tasks ?? [],
|
|
3234
|
+
projects: fleet()?.projects ?? [],
|
|
3235
|
+
railSide: homeLayout.side,
|
|
3236
|
+
thread: thread(),
|
|
3237
|
+
onPickThread: pickThread,
|
|
3238
|
+
onSwapRail: () => homeLayout.swap()
|
|
3239
|
+
});
|
|
3240
|
+
$$renderer2.push(`<!----> `);
|
|
3241
|
+
{
|
|
3242
|
+
$$renderer2.push("<!--[0-->");
|
|
3243
|
+
ResizableRail($$renderer2, {
|
|
3244
|
+
storageKey: "wheelhouse-rail-width",
|
|
3245
|
+
label: "Resize the rail",
|
|
3246
|
+
defaultWidth: 460,
|
|
3247
|
+
side: homeLayout.side,
|
|
3248
|
+
class: "bg-panel",
|
|
3249
|
+
children: ($$renderer3) => {
|
|
3250
|
+
Rail($$renderer3, {
|
|
3251
|
+
tasks: tasks(),
|
|
3252
|
+
projects: fleet()?.projects ?? [],
|
|
3253
|
+
secondMates: fleet()?.secondMates ?? [],
|
|
3254
|
+
now: live.now,
|
|
3255
|
+
insights: insights(),
|
|
3256
|
+
scope: scope(),
|
|
3257
|
+
cards: cards()
|
|
3258
|
+
});
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
}
|
|
3262
|
+
$$renderer2.push(`<!--]--></main> `);
|
|
3263
|
+
{
|
|
3264
|
+
$$renderer2.push("<!--[-1-->");
|
|
3265
|
+
}
|
|
3266
|
+
$$renderer2.push(`<!--]-->`);
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
export { _page as default };
|
|
3271
|
+
//# sourceMappingURL=_page.svelte.js-C0XtmgnT.js.map
|