@chrisjowen/wheelhouse 0.20.5 → 0.21.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 +6 -6
- package/build/client/_app/immutable/assets/0.DPXXVvQJ.css +1 -0
- package/build/client/_app/immutable/assets/0.DPXXVvQJ.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DPXXVvQJ.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-7ouQdsG.js +1 -0
- package/build/client/_app/immutable/chunks/-7ouQdsG.js.br +0 -0
- package/build/client/_app/immutable/chunks/-7ouQdsG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/1c_L7VrA.js +3 -0
- package/build/client/_app/immutable/chunks/1c_L7VrA.js.br +0 -0
- package/build/client/_app/immutable/chunks/1c_L7VrA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4pTUx6eL.js +1 -0
- package/build/client/_app/immutable/chunks/4pTUx6eL.js.br +4 -0
- package/build/client/_app/immutable/chunks/4pTUx6eL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/55XEoNtX.js +1 -0
- package/build/client/_app/immutable/chunks/55XEoNtX.js.br +2 -0
- package/build/client/_app/immutable/chunks/55XEoNtX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6DAn206W.js +1 -0
- package/build/client/_app/immutable/chunks/6DAn206W.js.br +0 -0
- package/build/client/_app/immutable/chunks/6DAn206W.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6rTUl_co.js +1 -0
- package/build/client/_app/immutable/chunks/6rTUl_co.js.br +0 -0
- package/build/client/_app/immutable/chunks/6rTUl_co.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8Fai-wPF.js +1 -0
- package/build/client/_app/immutable/chunks/8Fai-wPF.js.br +0 -0
- package/build/client/_app/immutable/chunks/8Fai-wPF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-0qqE45.js +1 -0
- package/build/client/_app/immutable/chunks/B-0qqE45.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-0qqE45.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B0-xhMiU.js +5 -0
- package/build/client/_app/immutable/chunks/B0-xhMiU.js.br +0 -0
- package/build/client/_app/immutable/chunks/B0-xhMiU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B60LYfBd.js +1 -0
- package/build/client/_app/immutable/chunks/B60LYfBd.js.br +0 -0
- package/build/client/_app/immutable/chunks/B60LYfBd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAsiHkaZ.js +1 -0
- package/build/client/_app/immutable/chunks/BAsiHkaZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAsiHkaZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BAuCcuxw.js +1 -0
- package/build/client/_app/immutable/chunks/BAuCcuxw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAuCcuxw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BG4ZPCNg.js +5 -0
- package/build/client/_app/immutable/chunks/BG4ZPCNg.js.br +0 -0
- package/build/client/_app/immutable/chunks/BG4ZPCNg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BGW1RfKQ.js +1 -0
- package/build/client/_app/immutable/chunks/BGW1RfKQ.js.br +2 -0
- package/build/client/_app/immutable/chunks/BGW1RfKQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJoMiuA8.js +1 -0
- package/build/client/_app/immutable/chunks/BJoMiuA8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJoMiuA8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOy3K7xN.js +1 -0
- package/build/client/_app/immutable/chunks/BOy3K7xN.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOy3K7xN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPcURVOt.js +3 -0
- package/build/client/_app/immutable/chunks/BPcURVOt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPcURVOt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQ56-tK5.js +2 -0
- package/build/client/_app/immutable/chunks/BQ56-tK5.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQ56-tK5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTUBKbNp.js +1 -0
- package/build/client/_app/immutable/chunks/BTUBKbNp.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTUBKbNp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BWPYBmh1.js +1 -0
- package/build/client/_app/immutable/chunks/BWPYBmh1.js.br +2 -0
- package/build/client/_app/immutable/chunks/BWPYBmh1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BW_JnYeB.js +1 -0
- package/build/client/_app/immutable/chunks/BW_JnYeB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BW_JnYeB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BbNNG5a4.js +1 -0
- package/build/client/_app/immutable/chunks/BbNNG5a4.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbNNG5a4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcCorYoj.js +1 -0
- package/build/client/_app/immutable/chunks/BcCorYoj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcCorYoj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bf46oUeB.js +1 -0
- package/build/client/_app/immutable/chunks/Bf46oUeB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bf46oUeB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfNiKjWt.js +1 -0
- package/build/client/_app/immutable/chunks/BfNiKjWt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfNiKjWt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BgdwPfvE.js +1 -0
- package/build/client/_app/immutable/chunks/BgdwPfvE.js.br +0 -0
- package/build/client/_app/immutable/chunks/BgdwPfvE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjfHpW4u.js +1 -0
- package/build/client/_app/immutable/chunks/BjfHpW4u.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjfHpW4u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjlKuhi7.js +1 -0
- package/build/client/_app/immutable/chunks/BjlKuhi7.js.br +3 -0
- package/build/client/_app/immutable/chunks/BjlKuhi7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bt6KUUDH.js +1 -0
- package/build/client/_app/immutable/chunks/Bt6KUUDH.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bt6KUUDH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Buvnupwl.js +1 -0
- package/build/client/_app/immutable/chunks/Buvnupwl.js.br +0 -0
- package/build/client/_app/immutable/chunks/Buvnupwl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bvjx1IR1.js +1 -0
- package/build/client/_app/immutable/chunks/Bvjx1IR1.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bvjx1IR1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-hNi8vR.js +1 -0
- package/build/client/_app/immutable/chunks/C-hNi8vR.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-hNi8vR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3RYx8bC.js +1 -0
- package/build/client/_app/immutable/chunks/C3RYx8bC.js.br +0 -0
- package/build/client/_app/immutable/chunks/C3RYx8bC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C3tLc6qk.js +1 -0
- package/build/client/_app/immutable/chunks/C3tLc6qk.js.br +2 -0
- package/build/client/_app/immutable/chunks/C3tLc6qk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6Hf7_tG.js +1 -0
- package/build/client/_app/immutable/chunks/C6Hf7_tG.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6Hf7_tG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8KbmUF3.js +1 -0
- package/build/client/_app/immutable/chunks/C8KbmUF3.js.br +2 -0
- package/build/client/_app/immutable/chunks/C8KbmUF3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CA87s_sP.js +1 -0
- package/build/client/_app/immutable/chunks/CA87s_sP.js.br +0 -0
- package/build/client/_app/immutable/chunks/CA87s_sP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CCwsNQVJ.js +1 -0
- package/build/client/_app/immutable/chunks/CCwsNQVJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CCwsNQVJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFm6pZG0.js +1 -0
- package/build/client/_app/immutable/chunks/CFm6pZG0.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFm6pZG0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIMsnGRb.js +2 -0
- package/build/client/_app/immutable/chunks/CIMsnGRb.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIMsnGRb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJNEYVWj.js +2 -0
- package/build/client/_app/immutable/chunks/CJNEYVWj.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJNEYVWj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLd-Yktx.js +1 -0
- package/build/client/_app/immutable/chunks/CLd-Yktx.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLd-Yktx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMHkuJ4s.js +1 -0
- package/build/client/_app/immutable/chunks/CMHkuJ4s.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMHkuJ4s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CONXZwsH.js +1 -0
- package/build/client/_app/immutable/chunks/CONXZwsH.js.br +0 -0
- package/build/client/_app/immutable/chunks/CONXZwsH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CPGokFxi.js +7 -0
- package/build/client/_app/immutable/chunks/CPGokFxi.js.br +0 -0
- package/build/client/_app/immutable/chunks/CPGokFxi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQL7onaq.js +1 -0
- package/build/client/_app/immutable/chunks/CQL7onaq.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQL7onaq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CVZBXS_-.js +6 -0
- package/build/client/_app/immutable/chunks/CVZBXS_-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CVZBXS_-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js +1 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZPeboo-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cd67i1u_.js +62 -0
- package/build/client/_app/immutable/chunks/Cd67i1u_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cd67i1u_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CddGcyNX.js +1 -0
- package/build/client/_app/immutable/chunks/CddGcyNX.js.br +0 -0
- package/build/client/_app/immutable/chunks/CddGcyNX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeEmbWm6.js +1 -0
- package/build/client/_app/immutable/chunks/CeEmbWm6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeEmbWm6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cf6pdpsz.js +1 -0
- package/build/client/_app/immutable/chunks/Cf6pdpsz.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cf6pdpsz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cg5o-Sdi.js +1 -0
- package/build/client/_app/immutable/chunks/Cg5o-Sdi.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cg5o-Sdi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkNCm7Ts.js +1 -0
- package/build/client/_app/immutable/chunks/CkNCm7Ts.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkNCm7Ts.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CloMQgCF.js +1 -0
- package/build/client/_app/immutable/chunks/CloMQgCF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CloMQgCF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CmLAxoyv.js +1 -0
- package/build/client/_app/immutable/chunks/CmLAxoyv.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmLAxoyv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CmYKKTYS.js +1 -0
- package/build/client/_app/immutable/chunks/CmYKKTYS.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmYKKTYS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cox57RCx.js +1 -0
- package/build/client/_app/immutable/chunks/Cox57RCx.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cox57RCx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrfUP_VX.js +1 -0
- package/build/client/_app/immutable/chunks/CrfUP_VX.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrfUP_VX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvmB6XOk.js +1 -0
- package/build/client/_app/immutable/chunks/CvmB6XOk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvmB6XOk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cx5j6iHA.js +1 -0
- package/build/client/_app/immutable/chunks/Cx5j6iHA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cx5j6iHA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CyXpILz0.js +1 -0
- package/build/client/_app/immutable/chunks/CyXpILz0.js.br +3 -0
- package/build/client/_app/immutable/chunks/CyXpILz0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzzMm39R.js +1 -0
- package/build/client/_app/immutable/chunks/CzzMm39R.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzzMm39R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3nPFlu1.js +1 -0
- package/build/client/_app/immutable/chunks/D3nPFlu1.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3nPFlu1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5JDx3SO.js +1 -0
- package/build/client/_app/immutable/chunks/D5JDx3SO.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5JDx3SO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D6iImB2R.js +1 -0
- package/build/client/_app/immutable/chunks/D6iImB2R.js.br +0 -0
- package/build/client/_app/immutable/chunks/D6iImB2R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D7FYExvP.js +1 -0
- package/build/client/_app/immutable/chunks/D7FYExvP.js.br +0 -0
- package/build/client/_app/immutable/chunks/D7FYExvP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCCfudFU.js +1 -0
- package/build/client/_app/immutable/chunks/DCCfudFU.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCCfudFU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DDdiwn-U.js +1 -0
- package/build/client/_app/immutable/chunks/DDdiwn-U.js.br +0 -0
- package/build/client/_app/immutable/chunks/DDdiwn-U.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHpOAFQk.js +6 -0
- package/build/client/_app/immutable/chunks/DHpOAFQk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHpOAFQk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNoFJI2q.js +1 -0
- package/build/client/_app/immutable/chunks/DNoFJI2q.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNoFJI2q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNy30I3F.js +1 -0
- package/build/client/_app/immutable/chunks/DNy30I3F.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNy30I3F.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DP4AJpRJ.js +1 -0
- package/build/client/_app/immutable/chunks/DP4AJpRJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DP4AJpRJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQ1JWnwW.js +1 -0
- package/build/client/_app/immutable/chunks/DQ1JWnwW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQ1JWnwW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRN_mvpb.js +1 -0
- package/build/client/_app/immutable/chunks/DRN_mvpb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRN_mvpb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DY9OJPPO.js +1 -0
- package/build/client/_app/immutable/chunks/DY9OJPPO.js.br +0 -0
- package/build/client/_app/immutable/chunks/DY9OJPPO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DYyCX7y8.js +1 -0
- package/build/client/_app/immutable/chunks/DYyCX7y8.js.br +0 -0
- package/build/client/_app/immutable/chunks/DYyCX7y8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZCe_kkO.js +1 -0
- package/build/client/_app/immutable/chunks/DZCe_kkO.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZCe_kkO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Daq2sibJ.js +1 -0
- package/build/client/_app/immutable/chunks/Daq2sibJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Daq2sibJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DcVEd5MS.js +1 -0
- package/build/client/_app/immutable/chunks/DcVEd5MS.js.br +0 -0
- package/build/client/_app/immutable/chunks/DcVEd5MS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De2vcdXM.js +2 -0
- package/build/client/_app/immutable/chunks/De2vcdXM.js.br +0 -0
- package/build/client/_app/immutable/chunks/De2vcdXM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/De4O2In1.js +1 -0
- package/build/client/_app/immutable/chunks/De4O2In1.js.br +0 -0
- package/build/client/_app/immutable/chunks/De4O2In1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DflltLwV.js +1 -0
- package/build/client/_app/immutable/chunks/DflltLwV.js.br +0 -0
- package/build/client/_app/immutable/chunks/DflltLwV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DlKNcnrA.js +1 -0
- package/build/client/_app/immutable/chunks/DlKNcnrA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DlKNcnrA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmM4WIRE.js +2 -0
- package/build/client/_app/immutable/chunks/DmM4WIRE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmM4WIRE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Do3aY-pJ.js +3 -0
- package/build/client/_app/immutable/chunks/Do3aY-pJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Do3aY-pJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dr1I4h-s.js +1 -0
- package/build/client/_app/immutable/chunks/Dr1I4h-s.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dr1I4h-s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DupmVJLw.js +4 -0
- package/build/client/_app/immutable/chunks/DupmVJLw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DupmVJLw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dx4-AA8Z.js +1 -0
- package/build/client/_app/immutable/chunks/Dx4-AA8Z.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dx4-AA8Z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DyxFq-Tu.js +1 -0
- package/build/client/_app/immutable/chunks/DyxFq-Tu.js.br +0 -0
- package/build/client/_app/immutable/chunks/DyxFq-Tu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/JUcpD7p2.js +1 -0
- package/build/client/_app/immutable/chunks/JUcpD7p2.js.br +0 -0
- package/build/client/_app/immutable/chunks/JUcpD7p2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Jwgp9Ian.js +1 -0
- package/build/client/_app/immutable/chunks/Jwgp9Ian.js.br +0 -0
- package/build/client/_app/immutable/chunks/Jwgp9Ian.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Kc5eW0mD.js +1 -0
- package/build/client/_app/immutable/chunks/Kc5eW0mD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Kc5eW0mD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MfmuqTIn.js +2 -0
- package/build/client/_app/immutable/chunks/MfmuqTIn.js.br +0 -0
- package/build/client/_app/immutable/chunks/MfmuqTIn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OB0MS-qW.js +1 -0
- package/build/client/_app/immutable/chunks/OB0MS-qW.js.br +0 -0
- package/build/client/_app/immutable/chunks/OB0MS-qW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OLaJBqkk.js +6 -0
- package/build/client/_app/immutable/chunks/OLaJBqkk.js.br +0 -0
- package/build/client/_app/immutable/chunks/OLaJBqkk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Rgz0--W-.js +1 -0
- package/build/client/_app/immutable/chunks/Rgz0--W-.js.br +0 -0
- package/build/client/_app/immutable/chunks/Rgz0--W-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RqfDdPGP.js +1 -0
- package/build/client/_app/immutable/chunks/RqfDdPGP.js.br +0 -0
- package/build/client/_app/immutable/chunks/RqfDdPGP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/SwQNkIpc.js +1 -0
- package/build/client/_app/immutable/chunks/SwQNkIpc.js.br +0 -0
- package/build/client/_app/immutable/chunks/SwQNkIpc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Sz_v_ihG.js +1 -0
- package/build/client/_app/immutable/chunks/Sz_v_ihG.js.br +0 -0
- package/build/client/_app/immutable/chunks/Sz_v_ihG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XNI4QyoL.js +1 -0
- package/build/client/_app/immutable/chunks/XNI4QyoL.js.br +0 -0
- package/build/client/_app/immutable/chunks/XNI4QyoL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XcArh8sq.js +1 -0
- package/build/client/_app/immutable/chunks/XcArh8sq.js.br +0 -0
- package/build/client/_app/immutable/chunks/XcArh8sq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Y8TXbmCY.js +1 -0
- package/build/client/_app/immutable/chunks/Y8TXbmCY.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y8TXbmCY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/YAQH2TLS.js +1 -0
- package/build/client/_app/immutable/chunks/YAQH2TLS.js.br +2 -0
- package/build/client/_app/immutable/chunks/YAQH2TLS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bFJ0wt-E.js +1 -0
- package/build/client/_app/immutable/chunks/bFJ0wt-E.js.br +0 -0
- package/build/client/_app/immutable/chunks/bFJ0wt-E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/j2tARAl0.js +1 -0
- package/build/client/_app/immutable/chunks/j2tARAl0.js.br +0 -0
- package/build/client/_app/immutable/chunks/j2tARAl0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pJK9uwuX.js +1 -0
- package/build/client/_app/immutable/chunks/pJK9uwuX.js.br +0 -0
- package/build/client/_app/immutable/chunks/pJK9uwuX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/siUtttqk.js +1 -0
- package/build/client/_app/immutable/chunks/siUtttqk.js.br +0 -0
- package/build/client/_app/immutable/chunks/siUtttqk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tpeuVjMv.js +1 -0
- package/build/client/_app/immutable/chunks/tpeuVjMv.js.br +0 -0
- package/build/client/_app/immutable/chunks/tpeuVjMv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vvzN7ZZi.js +1 -0
- package/build/client/_app/immutable/chunks/vvzN7ZZi.js.br +0 -0
- package/build/client/_app/immutable/chunks/vvzN7ZZi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wu_NjAkT.js +1 -0
- package/build/client/_app/immutable/chunks/wu_NjAkT.js.br +0 -0
- package/build/client/_app/immutable/chunks/wu_NjAkT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/x63vhHzM.js +1 -0
- package/build/client/_app/immutable/chunks/x63vhHzM.js.br +0 -0
- package/build/client/_app/immutable/chunks/x63vhHzM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yNn5dmAl.js +1 -0
- package/build/client/_app/immutable/chunks/yNn5dmAl.js.br +0 -0
- package/build/client/_app/immutable/chunks/yNn5dmAl.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DFIrP568.js +2 -0
- package/build/client/_app/immutable/entry/app.DFIrP568.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DFIrP568.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C06u36g3.js +1 -0
- package/build/client/_app/immutable/entry/start.C06u36g3.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C06u36g3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DnTfQD5x.js +9 -0
- package/build/client/_app/immutable/nodes/0.DnTfQD5x.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DnTfQD5x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DYf3eeEz.js +1 -0
- package/build/client/_app/immutable/nodes/1.DYf3eeEz.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DYf3eeEz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Tup2MsME.js +6 -0
- package/build/client/_app/immutable/nodes/10.Tup2MsME.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Tup2MsME.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CeQYv8eh.js +1 -0
- package/build/client/_app/immutable/nodes/11.CeQYv8eh.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CeQYv8eh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.B8vOqWp-.js +10 -0
- package/build/client/_app/immutable/nodes/12.B8vOqWp-.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.B8vOqWp-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js +1 -0
- package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CWPNAkXZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BomHFWNP.js +3 -0
- package/build/client/_app/immutable/nodes/14.BomHFWNP.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BomHFWNP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.D7wICcdV.js +1 -0
- package/build/client/_app/immutable/nodes/15.D7wICcdV.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.D7wICcdV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.CwYX0DD0.js +14 -0
- package/build/client/_app/immutable/nodes/16.CwYX0DD0.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CwYX0DD0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CP6SSMQz.js +150 -0
- package/build/client/_app/immutable/nodes/17.CP6SSMQz.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CP6SSMQz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.dinO_mGJ.js +25 -0
- package/build/client/_app/immutable/nodes/18.dinO_mGJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.dinO_mGJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.B3LIDplG.js +5 -0
- package/build/client/_app/immutable/nodes/19.B3LIDplG.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.B3LIDplG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js +28 -0
- package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.Ds7AG1Sp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.GeOCbpc_.js +4 -0
- package/build/client/_app/immutable/nodes/21.GeOCbpc_.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.GeOCbpc_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.BirH-Y0c.js +1 -0
- package/build/client/_app/immutable/nodes/22.BirH-Y0c.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.BirH-Y0c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.BhQVufuj.js +8 -0
- package/build/client/_app/immutable/nodes/23.BhQVufuj.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BhQVufuj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.D1qQjP2S.js +3 -0
- package/build/client/_app/immutable/nodes/24.D1qQjP2S.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.D1qQjP2S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DjtNBrX-.js +5 -0
- package/build/client/_app/immutable/nodes/25.DjtNBrX-.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DjtNBrX-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.1W95w8Kh.js +4 -0
- package/build/client/_app/immutable/nodes/26.1W95w8Kh.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.1W95w8Kh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.DuJzt0BC.js +7 -0
- package/build/client/_app/immutable/nodes/27.DuJzt0BC.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.DuJzt0BC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BcUVR-We.js +2 -0
- package/build/client/_app/immutable/nodes/28.BcUVR-We.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BcUVR-We.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.CSQdxeSK.js +4 -0
- package/build/client/_app/immutable/nodes/29.CSQdxeSK.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.CSQdxeSK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Dysdqlw7.js +2 -0
- package/build/client/_app/immutable/nodes/3.Dysdqlw7.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Dysdqlw7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.BFp98q1T.js +7 -0
- package/build/client/_app/immutable/nodes/30.BFp98q1T.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.BFp98q1T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.DMpLzXiB.js +23 -0
- package/build/client/_app/immutable/nodes/31.DMpLzXiB.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.DMpLzXiB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.CnTU-Fay.js +3 -0
- package/build/client/_app/immutable/nodes/32.CnTU-Fay.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.CnTU-Fay.js.gz +0 -0
- package/build/client/_app/immutable/nodes/33.DEE9D8C0.js +1 -0
- package/build/client/_app/immutable/nodes/33.DEE9D8C0.js.br +0 -0
- package/build/client/_app/immutable/nodes/33.DEE9D8C0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/34.D2flYQ6C.js +6 -0
- package/build/client/_app/immutable/nodes/34.D2flYQ6C.js.br +0 -0
- package/build/client/_app/immutable/nodes/34.D2flYQ6C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js +5 -0
- package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CWkCY0Gp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.8mHB8XXE.js +1 -0
- package/build/client/_app/immutable/nodes/5.8mHB8XXE.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.8mHB8XXE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DE_eLV5y.js +1 -0
- package/build/client/_app/immutable/nodes/7.DE_eLV5y.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DE_eLV5y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DkWdKRyC.js +2 -0
- package/build/client/_app/immutable/nodes/8.DkWdKRyC.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DkWdKRyC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js +7 -0
- package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.Gvdpdyk5.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/Activity.js-DXjVG5xT.js +46 -0
- package/build/server/chunks/chunks/ConsoleWindow.js-DEk3iKGa.js +120 -0
- package/build/server/chunks/chunks/DecisionCard.js-86G6u4pB.js +2206 -0
- package/build/server/chunks/chunks/Discussion.js-IMI0BumV.js +592 -0
- package/build/server/chunks/chunks/EtaLine.js-CKEZyLau.js +98 -0
- package/build/server/chunks/chunks/InsightsNav.js-B21jABX7.js +18 -0
- package/build/server/chunks/chunks/InstallFromGitHub.js-DTgSNvPF.js +272 -0
- package/build/server/chunks/chunks/MicButton.svelte_svelte_type_style_lang.js-B10vMz9A.js +200 -0
- package/build/server/chunks/chunks/OpenDecision.js-BMOUb2a9.js +29 -0
- package/build/server/chunks/chunks/PluginElement.js-B4PKHT2H.js +25 -0
- package/build/server/chunks/chunks/SettingsNav.js-D2wjoTYl.js +36 -0
- package/build/server/chunks/chunks/SlotContent.js-yg9VzqdZ.js +702 -0
- package/build/server/chunks/chunks/agent.js-CvIBjJ8-.js +122 -0
- package/build/server/chunks/chunks/bell.js-D6xuggvQ.js +189 -0
- package/build/server/chunks/chunks/chat.svelte.js-Jj2-jIOn.js +981 -0
- package/build/server/chunks/chunks/client.js-Z9ZB5A3s.js +24 -0
- package/build/server/chunks/chunks/cloud.js-CNJrzYEH.js +30 -0
- package/build/server/chunks/chunks/detail.js-DxYLE5pO.js +146 -0
- package/build/server/chunks/chunks/features.js-BNl8N8us.js +124 -0
- package/build/server/chunks/chunks/feedback.js-CXkVSg-e.js +67 -0
- package/build/server/chunks/chunks/inbox.js-cDDxDr-d.js +227 -0
- package/build/server/chunks/chunks/index2.js-BuH5pXIO.js +46 -0
- package/build/server/chunks/chunks/insights.svelte.js-DJcO7VuV.js +681 -0
- package/build/server/chunks/chunks/internal.js-P5l_A-5A.js +151 -0
- package/build/server/chunks/chunks/live.svelte.js-CBuX_3NN.js +259 -0
- package/build/server/chunks/chunks/marketplace-service.js-CGVSX8p6.js +557 -0
- package/build/server/chunks/chunks/nav.js-BPe-bdte.js +40 -0
- package/build/server/chunks/chunks/package.js-BDDNJbGn.js +154 -0
- package/build/server/chunks/chunks/page.js-BgfXtu-S.js +11 -0
- package/build/server/chunks/chunks/plugins.js-Du4zNBUe.js +58 -0
- package/build/server/chunks/chunks/previewhelper2.js-NdpLxkBo.js +165 -0
- package/build/server/chunks/chunks/remote.js-CXfaPpKJ.js +13 -0
- package/build/server/chunks/chunks/repo.js-CyflQovd.js +33 -0
- package/build/server/chunks/chunks/runtime.js-D2Y_y1vM.js +23293 -0
- package/build/server/chunks/chunks/service.js-CcUA1MNf.js +1339 -0
- package/build/server/chunks/chunks/service2.js-Bcz1_dhB.js +834 -0
- package/build/server/chunks/chunks/settings.js-0qSOXxJ2.js +379 -0
- package/build/server/chunks/chunks/settings2.js-CagyrW8Z.js +23 -0
- package/build/server/chunks/chunks/settings3.js-8JjZvg3U.js +690 -0
- package/build/server/chunks/chunks/starter.js-B1Io2RMM.js +400 -0
- package/build/server/chunks/chunks/store.js-BMO4ONBd.js +332 -0
- package/build/server/chunks/chunks/terminal.js-CjdVxoU8.js +86 -0
- package/build/server/chunks/chunks/uploads.js-C85r452k.js +107 -0
- package/build/server/chunks/chunks/view.js-BgivR0p2.js +76 -0
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-CtVCWCgm.js +103 -0
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-DTQ6l-_K.js +111 -0
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-DVqDb5ph.js +50 -0
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-DVKRUKVj.js +66 -0
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-bZHq-SMc.js +70 -0
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DTxFJR1V.js +132 -0
- package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-DNgC2fr8.js +54 -0
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-du3b3Ua-.js +62 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DNDT3Z4d.js +96 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-B8O-PapK.js +74 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-n8fHjcWz.js +63 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-uLIM5Rap.js +57 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BmfvCF25.js +57 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DLvuxrgl.js +58 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-BdE7Nbi8.js +64 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-C5hgha-_.js +57 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BuYdy0_e.js +106 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-D8ix-KMV.js +67 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DCrszJBd.js +78 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-DiRR2F11.js +66 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-uy69dgQl.js +57 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CCjkymcc.js +32 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-Domnv8kX.js +40 -0
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-aWmREBg4.js +49 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BxMzoJpi.js +49 -0
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-Dyd0MZRM.js +76 -0
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-B_cXfz2Y.js +74 -0
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-ZDiOr7_Q.js +67 -0
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-CUma0b0j.js +49 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-fjQ2v9Ce.js +84 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-WZowbKT7.js +73 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DzBIDGRQ.js +68 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BiHE49Iv.js +65 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-DLIcirzt.js +27 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-utxduCZr.js +72 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-f0B4cC8P.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DnD5DtX6.js +49 -0
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-DpihWANb.js +39 -0
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-KUYI13Aa.js +42 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-DhVmKcI9.js +54 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-D_tX9zNT.js +63 -0
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-D6rcu4Aq.js +60 -0
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CarsSrsd.js +64 -0
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-Dhu23C6L.js +27 -0
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BjSLckyg.js +72 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CEhSuDsm.js +54 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-De82q9RO.js +63 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CmLpNwYf.js +75 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-DJ3zl97H.js +62 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-RAts5XHT.js +85 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DrIMVE1H.js +68 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-1Ds5x_14.js +79 -0
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DmR6P1jj.js +58 -0
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-L-UHmfql.js +68 -0
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-gtT9iS_p.js +128 -0
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-C2Y5B6rW.js +57 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-c-TVwbRQ.js +54 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-D29QxZKX.js +73 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-Cy9CBznv.js +98 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-_yBEHTVc.js +66 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BEz3gaAM.js +114 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-CrGpz4qm.js +68 -0
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-sH01ulMQ.js +71 -0
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-BOVzuP-v.js +72 -0
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-CdpcII5l.js +84 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BPQoTrFi.js +40 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-B6sAaEgs.js +27 -0
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-Bn4SoRIm.js +27 -0
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-AYH3pZmL.js +53 -0
- package/build/server/chunks/entries/fallbacks/error.svelte.js-C0-QO05E.js +15 -0
- package/build/server/chunks/entries/hooks.server.js-D6a2gyRp.js +95 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-CvHliDGo.js +54 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-Bl5-NbQq.js +5624 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-BSjI8PFH.js +16 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-BlopBrAk.js +3279 -0
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-BF5K8zoV.js +134 -0
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CugjhhJ0.js +11 -0
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-Ds4xjfuV.js +202 -0
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DRIsp4Z8.js +16 -0
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-B3j1apFG.js +107 -0
- package/build/server/chunks/entries/pages/events/_page.server.ts.js-Bh2gPzrc.js +11 -0
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-Cy8Z9bx2.js +17 -0
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CBlLK4ps.js +46 -0
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-osLHLxVk.js +751 -0
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CO4Z6ira.js +11 -0
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-Bax8UYm0.js +183 -0
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DGZW2L8Q.js +11 -0
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-B15AVX_c.js +215 -0
- package/build/server/chunks/entries/pages/more/_page.svelte.js-DOf4Awv5.js +143 -0
- package/build/server/chunks/entries/pages/plugins/_page.svelte.js-CLdrz-XA.js +676 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-vWTk7VOf.js +16 -0
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-CkcJyKQ4.js +58 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-PlLgOOyO.js +23 -0
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-BTXYH5-g.js +978 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-BLuhmEnf.js +21 -0
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-CD_Blsw9.js +80 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-qgMZkmkx.js +27 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-61qrv1Hx.js +419 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-935RdFbz.js +15 -0
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-B49gjxTM.js +1866 -0
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CSdxnjGK.js +11 -0
- package/build/server/chunks/entries/pages/remotes/_page.svelte.js-BKjibxGx.js +335 -0
- package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-D0ng6b-W.js +421 -0
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-Cr5jVgGI.js +12 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-opY1gfOw.js +18 -0
- package/build/server/chunks/entries/pages/settings/chat/_page.svelte.js-Bppo_LHG.js +76 -0
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-BGElCxzg.js +15 -0
- package/build/server/chunks/entries/pages/settings/cloud/_page.svelte.js-DrJB-pyS.js +15 -0
- package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-DYo-qcBu.js +16 -0
- package/build/server/chunks/entries/pages/settings/events/_page.svelte.js-BMgyxQA5.js +110 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DvXcvQMa.js +15 -0
- package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-DMgIFEB6.js +53 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-C8Tad0XT.js +796 -0
- package/build/server/chunks/entries/pages/settings/firstmate/_page.svelte.js-CJZx5WlZ.js +253 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-QvEiw0LD.js +11 -0
- package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-Iwfr2BCD.js +247 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-Cul9MxiY.js +19 -0
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-BGjIG10E.js +565 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-iJh09d16.js +17 -0
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-Dfi_Loha.js +238 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-DKYLb57v.js +11 -0
- package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-CLRHx36O.js +55 -0
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-D9a8uPep.js +11 -0
- package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-BXbaUlyB.js +61 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-D67sZMdF.js +18 -0
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-Ba-ZtZ1O.js +1438 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-DAkSnSQA.js +25 -0
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-C12olDYH.js +2987 -0
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-CQE8Ijr4.js +24 -0
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-Db0rnwb5.js +11 -0
- package/build/server/chunks/entries/pages/time/_page.svelte.js-Covw-Y4G.js +108 -0
- package/build/server/chunks/handler-D0Goy_gj.js +1474 -0
- package/build/server/chunks/index.js-pXu9ObUY.js +4296 -0
- package/build/server/chunks/manifest.js-Do1T4-VF.js +788 -0
- package/build/server/chunks/nodes/0.js-BZTsbmJz.js +57 -0
- package/build/server/chunks/nodes/1.js-CdP0WXa2.js +9 -0
- package/build/server/chunks/nodes/10.js-CNrino7f.js +54 -0
- package/build/server/chunks/nodes/11.js-DGF3qkTE.js +9 -0
- package/build/server/chunks/nodes/12.js-1BjONRNw.js +9 -0
- package/build/server/chunks/nodes/13.js-DKhpmZJk.js +54 -0
- package/build/server/chunks/nodes/14.js-C0nSMejk.js +57 -0
- package/build/server/chunks/nodes/15.js-Bv9h9CZN.js +55 -0
- package/build/server/chunks/nodes/16.js-CQJ-fJmL.js +56 -0
- package/build/server/chunks/nodes/17.js-DfTBudeO.js +55 -0
- package/build/server/chunks/nodes/18.js-CPQ8qvV7.js +26 -0
- package/build/server/chunks/nodes/19.js-QxfpabCN.js +9 -0
- package/build/server/chunks/nodes/2.js-DHnUGSut.js +54 -0
- package/build/server/chunks/nodes/20.js-CO0jqK-v.js +25 -0
- package/build/server/chunks/nodes/21.js-CyU03Rv0.js +54 -0
- package/build/server/chunks/nodes/22.js-Bu0MnVtI.js +16 -0
- package/build/server/chunks/nodes/23.js-Duh3S-2m.js +54 -0
- package/build/server/chunks/nodes/24.js-BSW5HPZi.js +25 -0
- package/build/server/chunks/nodes/25.js-D-_N0Mbw.js +54 -0
- package/build/server/chunks/nodes/26.js-BvY1ynuu.js +26 -0
- package/build/server/chunks/nodes/27.js-CkuIeOqp.js +54 -0
- package/build/server/chunks/nodes/28.js-CITEOjWA.js +57 -0
- package/build/server/chunks/nodes/29.js-v2pVe4SR.js +56 -0
- package/build/server/chunks/nodes/3.js-CCBAkyWc.js +9 -0
- package/build/server/chunks/nodes/30.js-CqZkNWNo.js +26 -0
- package/build/server/chunks/nodes/31.js-D6hGifSX.js +58 -0
- package/build/server/chunks/nodes/32.js-DUZFV2hq.js +55 -0
- package/build/server/chunks/nodes/33.js-fhp8akGp.js +55 -0
- package/build/server/chunks/nodes/34.js-vu6Q9-ea.js +54 -0
- package/build/server/chunks/nodes/4.js-CHh9z8tT.js +54 -0
- package/build/server/chunks/nodes/5.js-BBqBq22l.js +54 -0
- package/build/server/chunks/nodes/6.js-Icsevceu.js +12 -0
- package/build/server/chunks/nodes/7.js-BI4oQA5p.js +54 -0
- package/build/server/chunks/nodes/8.js-DA9me9XO.js +59 -0
- package/build/server/chunks/nodes/9.js-BoVoGe6z.js +54 -0
- package/dist/cli.js +441 -810
- package/dist/wh-vault.js +1 -1
- package/firstmate-extension/bin/wheelhouse-events.mjs +1 -1
- package/firstmate-extension/firstmate-extension.json +1 -1
- package/package.json +1 -1
- package/skills/manage-wheelhouse/SKILL.md +2 -4
- package/skills/manage-wheelhouse/references/operations.md +127 -255
- package/build/client/_app/immutable/assets/0.C9oMrRqy.css +0 -1
- package/build/client/_app/immutable/assets/0.C9oMrRqy.css.br +0 -0
- package/build/client/_app/immutable/assets/0.C9oMrRqy.css.gz +0 -0
- package/build/client/_app/immutable/chunks/-R5UuA6W.js +0 -1
- package/build/client/_app/immutable/chunks/-R5UuA6W.js.br +0 -0
- package/build/client/_app/immutable/chunks/-R5UuA6W.js.gz +0 -0
- package/build/client/_app/immutable/chunks/17yQXv5H.js +0 -1
- package/build/client/_app/immutable/chunks/17yQXv5H.js.br +0 -0
- package/build/client/_app/immutable/chunks/17yQXv5H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/2j58cjmP.js +0 -1
- package/build/client/_app/immutable/chunks/2j58cjmP.js.br +0 -0
- package/build/client/_app/immutable/chunks/2j58cjmP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/2zkIFCHW.js +0 -1
- package/build/client/_app/immutable/chunks/2zkIFCHW.js.br +0 -0
- package/build/client/_app/immutable/chunks/2zkIFCHW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4PvCEbg9.js +0 -1
- package/build/client/_app/immutable/chunks/4PvCEbg9.js.br +0 -0
- package/build/client/_app/immutable/chunks/4PvCEbg9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5bsXDvv7.js +0 -1
- package/build/client/_app/immutable/chunks/5bsXDvv7.js.br +0 -0
- package/build/client/_app/immutable/chunks/5bsXDvv7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/AkTMb629.js +0 -1
- package/build/client/_app/immutable/chunks/AkTMb629.js.br +0 -0
- package/build/client/_app/immutable/chunks/AkTMb629.js.gz +0 -0
- package/build/client/_app/immutable/chunks/AyZjNvxJ.js +0 -1
- package/build/client/_app/immutable/chunks/AyZjNvxJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/AyZjNvxJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B0qylhKn.js +0 -1
- package/build/client/_app/immutable/chunks/B0qylhKn.js.br +0 -0
- package/build/client/_app/immutable/chunks/B0qylhKn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2dilrJ1.js +0 -1
- package/build/client/_app/immutable/chunks/B2dilrJ1.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2dilrJ1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3YZ_h1V.js +0 -1
- package/build/client/_app/immutable/chunks/B3YZ_h1V.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3YZ_h1V.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B8TYiGSn.js +0 -1
- package/build/client/_app/immutable/chunks/B8TYiGSn.js.br +0 -3
- package/build/client/_app/immutable/chunks/B8TYiGSn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BEuyZd_H.js +0 -1
- package/build/client/_app/immutable/chunks/BEuyZd_H.js.br +0 -0
- package/build/client/_app/immutable/chunks/BEuyZd_H.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHFV4QD0.js +0 -2
- package/build/client/_app/immutable/chunks/BHFV4QD0.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHFV4QD0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJf07_Tq.js +0 -1
- package/build/client/_app/immutable/chunks/BJf07_Tq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJf07_Tq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNPWPwBA.js +0 -1
- package/build/client/_app/immutable/chunks/BNPWPwBA.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNPWPwBA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BO7mWV3q.js +0 -1
- package/build/client/_app/immutable/chunks/BO7mWV3q.js.br +0 -0
- package/build/client/_app/immutable/chunks/BO7mWV3q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQgkZ2sq.js +0 -1
- package/build/client/_app/immutable/chunks/BQgkZ2sq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQgkZ2sq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQx3kH94.js +0 -1
- package/build/client/_app/immutable/chunks/BQx3kH94.js.br +0 -1
- package/build/client/_app/immutable/chunks/BQx3kH94.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTgiX7q6.js +0 -1
- package/build/client/_app/immutable/chunks/BTgiX7q6.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTgiX7q6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BW6TXKVP.js +0 -5
- package/build/client/_app/immutable/chunks/BW6TXKVP.js.br +0 -0
- package/build/client/_app/immutable/chunks/BW6TXKVP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BWOsRt2c.js +0 -1
- package/build/client/_app/immutable/chunks/BWOsRt2c.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWOsRt2c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BX05yreF.js +0 -2
- package/build/client/_app/immutable/chunks/BX05yreF.js.br +0 -0
- package/build/client/_app/immutable/chunks/BX05yreF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B_2t3_By.js +0 -2
- package/build/client/_app/immutable/chunks/B_2t3_By.js.br +0 -0
- package/build/client/_app/immutable/chunks/B_2t3_By.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BapAUJpM.js +0 -1
- package/build/client/_app/immutable/chunks/BapAUJpM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BapAUJpM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BapGo5xB.js +0 -1
- package/build/client/_app/immutable/chunks/BapGo5xB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BapGo5xB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Benn2ku8.js +0 -1
- package/build/client/_app/immutable/chunks/Benn2ku8.js.br +0 -2
- package/build/client/_app/immutable/chunks/Benn2ku8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BhhO0W5d.js +0 -1
- package/build/client/_app/immutable/chunks/BhhO0W5d.js.br +0 -0
- package/build/client/_app/immutable/chunks/BhhO0W5d.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiQ6rAAv.js +0 -1
- package/build/client/_app/immutable/chunks/BiQ6rAAv.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiQ6rAAv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bizxuiru.js +0 -1
- package/build/client/_app/immutable/chunks/Bizxuiru.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bizxuiru.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bn3Yq4pv.js +0 -1
- package/build/client/_app/immutable/chunks/Bn3Yq4pv.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bn3Yq4pv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bo_sYRYh.js +0 -1
- package/build/client/_app/immutable/chunks/Bo_sYRYh.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bo_sYRYh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bqxwq-OA.js +0 -1
- package/build/client/_app/immutable/chunks/Bqxwq-OA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bqxwq-OA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrgoBMfa.js +0 -1
- package/build/client/_app/immutable/chunks/BrgoBMfa.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrgoBMfa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bs3Fc3H6.js +0 -1
- package/build/client/_app/immutable/chunks/Bs3Fc3H6.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bs3Fc3H6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BtjNjERu.js +0 -2
- package/build/client/_app/immutable/chunks/BtjNjERu.js.br +0 -0
- package/build/client/_app/immutable/chunks/BtjNjERu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuCMZvY_.js +0 -1
- package/build/client/_app/immutable/chunks/BuCMZvY_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuCMZvY_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuyWbyHQ.js +0 -1
- package/build/client/_app/immutable/chunks/BuyWbyHQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuyWbyHQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvlEi_yv.js +0 -1
- package/build/client/_app/immutable/chunks/BvlEi_yv.js.br +0 -2
- package/build/client/_app/immutable/chunks/BvlEi_yv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvmFKihg.js +0 -1
- package/build/client/_app/immutable/chunks/BvmFKihg.js.br +0 -3
- package/build/client/_app/immutable/chunks/BvmFKihg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BzqQZpUn.js +0 -3
- package/build/client/_app/immutable/chunks/BzqQZpUn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BzqQZpUn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-hfRMtG.js +0 -1
- package/build/client/_app/immutable/chunks/C-hfRMtG.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-hfRMtG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0iPAjbe.js +0 -1
- package/build/client/_app/immutable/chunks/C0iPAjbe.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0iPAjbe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1J1JoZv.js +0 -1
- package/build/client/_app/immutable/chunks/C1J1JoZv.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1J1JoZv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C1fJjW6r.js +0 -1
- package/build/client/_app/immutable/chunks/C1fJjW6r.js.br +0 -0
- package/build/client/_app/immutable/chunks/C1fJjW6r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEHelnn6.js +0 -1
- package/build/client/_app/immutable/chunks/CEHelnn6.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEHelnn6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CHoTQHT3.js +0 -1
- package/build/client/_app/immutable/chunks/CHoTQHT3.js.br +0 -0
- package/build/client/_app/immutable/chunks/CHoTQHT3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKQAWVle.js +0 -23
- package/build/client/_app/immutable/chunks/CKQAWVle.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKQAWVle.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLTYT9e_.js +0 -1
- package/build/client/_app/immutable/chunks/CLTYT9e_.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLTYT9e_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQP42D-O.js +0 -1
- package/build/client/_app/immutable/chunks/CQP42D-O.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQP42D-O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CRvuGMFq.js +0 -1
- package/build/client/_app/immutable/chunks/CRvuGMFq.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRvuGMFq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSUgYWmY.js +0 -5
- package/build/client/_app/immutable/chunks/CSUgYWmY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSUgYWmY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTq9Zkgo.js +0 -1
- package/build/client/_app/immutable/chunks/CTq9Zkgo.js.br +0 -0
- package/build/client/_app/immutable/chunks/CTq9Zkgo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CUnlHiFK.js +0 -1
- package/build/client/_app/immutable/chunks/CUnlHiFK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUnlHiFK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CUpIQKLG.js +0 -1
- package/build/client/_app/immutable/chunks/CUpIQKLG.js.br +0 -2
- package/build/client/_app/immutable/chunks/CUpIQKLG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYsAwvcP.js +0 -1
- package/build/client/_app/immutable/chunks/CYsAwvcP.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYsAwvcP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZHskyAQ.js +0 -1
- package/build/client/_app/immutable/chunks/CZHskyAQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZHskyAQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch4_uHvF.js +0 -1
- package/build/client/_app/immutable/chunks/Ch4_uHvF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch4_uHvF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ChZ3Y1Am.js +0 -1
- package/build/client/_app/immutable/chunks/ChZ3Y1Am.js.br +0 -0
- package/build/client/_app/immutable/chunks/ChZ3Y1Am.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CjpcPh0U.js +0 -1
- package/build/client/_app/immutable/chunks/CjpcPh0U.js.br +0 -0
- package/build/client/_app/immutable/chunks/CjpcPh0U.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ckl9qtEi.js +0 -2
- package/build/client/_app/immutable/chunks/Ckl9qtEi.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ckl9qtEi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClbWd3RW.js +0 -1
- package/build/client/_app/immutable/chunks/ClbWd3RW.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClbWd3RW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CpSr00yK.js +0 -1
- package/build/client/_app/immutable/chunks/CpSr00yK.js.br +0 -0
- package/build/client/_app/immutable/chunks/CpSr00yK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cq6_CyIs.js +0 -1
- package/build/client/_app/immutable/chunks/Cq6_CyIs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cq6_CyIs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CsPG_LA4.js +0 -1
- package/build/client/_app/immutable/chunks/CsPG_LA4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CsPG_LA4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtiQA67R.js +0 -1
- package/build/client/_app/immutable/chunks/CtiQA67R.js.br +0 -0
- package/build/client/_app/immutable/chunks/CtiQA67R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzGYb3br.js +0 -1
- package/build/client/_app/immutable/chunks/CzGYb3br.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzGYb3br.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1LHuj6C.js +0 -6
- package/build/client/_app/immutable/chunks/D1LHuj6C.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1LHuj6C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1Y0sGqc.js +0 -1
- package/build/client/_app/immutable/chunks/D1Y0sGqc.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1Y0sGqc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1dJhPyZ.js +0 -1
- package/build/client/_app/immutable/chunks/D1dJhPyZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1dJhPyZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3MAu9x6.js +0 -1
- package/build/client/_app/immutable/chunks/D3MAu9x6.js.br +0 -3
- package/build/client/_app/immutable/chunks/D3MAu9x6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3n9jOLY.js +0 -1
- package/build/client/_app/immutable/chunks/D3n9jOLY.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3n9jOLY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9lrqYT9.js +0 -1
- package/build/client/_app/immutable/chunks/D9lrqYT9.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9lrqYT9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCRmlPWP.js +0 -3
- package/build/client/_app/immutable/chunks/DCRmlPWP.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCRmlPWP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DDu_0v2E.js +0 -1
- package/build/client/_app/immutable/chunks/DDu_0v2E.js.br +0 -0
- package/build/client/_app/immutable/chunks/DDu_0v2E.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJ0-LAiq.js +0 -1
- package/build/client/_app/immutable/chunks/DJ0-LAiq.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJ0-LAiq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DL-tzkRg.js +0 -1
- package/build/client/_app/immutable/chunks/DL-tzkRg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DL-tzkRg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DL7m5xRh.js +0 -1
- package/build/client/_app/immutable/chunks/DL7m5xRh.js.br +0 -0
- package/build/client/_app/immutable/chunks/DL7m5xRh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPNMQI-f.js +0 -3
- package/build/client/_app/immutable/chunks/DPNMQI-f.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPNMQI-f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DPogH2wV.js +0 -1
- package/build/client/_app/immutable/chunks/DPogH2wV.js.br +0 -0
- package/build/client/_app/immutable/chunks/DPogH2wV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQiAdhQw.js +0 -1
- package/build/client/_app/immutable/chunks/DQiAdhQw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQiAdhQw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTqpqrtJ.js +0 -1
- package/build/client/_app/immutable/chunks/DTqpqrtJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTqpqrtJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXfo8PmL.js +0 -1
- package/build/client/_app/immutable/chunks/DXfo8PmL.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXfo8PmL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DapSVwmz.js +0 -1
- package/build/client/_app/immutable/chunks/DapSVwmz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DapSVwmz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DcVq5qZV.js +0 -1
- package/build/client/_app/immutable/chunks/DcVq5qZV.js.br +0 -0
- package/build/client/_app/immutable/chunks/DcVq5qZV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DeLXvZYw.js +0 -1
- package/build/client/_app/immutable/chunks/DeLXvZYw.js.br +0 -0
- package/build/client/_app/immutable/chunks/DeLXvZYw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dg53M_ti.js +0 -1
- package/build/client/_app/immutable/chunks/Dg53M_ti.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dg53M_ti.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dj-8AZ7f.js +0 -1
- package/build/client/_app/immutable/chunks/Dj-8AZ7f.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dj-8AZ7f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dk_xZSyL.js +0 -1
- package/build/client/_app/immutable/chunks/Dk_xZSyL.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dk_xZSyL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dlwil2KJ.js +0 -2
- package/build/client/_app/immutable/chunks/Dlwil2KJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dlwil2KJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrJnxSPo.js +0 -6
- package/build/client/_app/immutable/chunks/DrJnxSPo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrJnxSPo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ds3uOF6e.js +0 -1
- package/build/client/_app/immutable/chunks/Ds3uOF6e.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ds3uOF6e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DthKTLUm.js +0 -1
- package/build/client/_app/immutable/chunks/DthKTLUm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DthKTLUm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwcCQttf.js +0 -1
- package/build/client/_app/immutable/chunks/DwcCQttf.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwcCQttf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DxWXrUGk.js +0 -1
- package/build/client/_app/immutable/chunks/DxWXrUGk.js.br +0 -1
- package/build/client/_app/immutable/chunks/DxWXrUGk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DzB904xK.js +0 -1
- package/build/client/_app/immutable/chunks/DzB904xK.js.br +0 -0
- package/build/client/_app/immutable/chunks/DzB904xK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/G0OxOo-j.js +0 -1
- package/build/client/_app/immutable/chunks/G0OxOo-j.js.br +0 -0
- package/build/client/_app/immutable/chunks/G0OxOo-j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HGOM9FQp.js +0 -1
- package/build/client/_app/immutable/chunks/HGOM9FQp.js.br +0 -0
- package/build/client/_app/immutable/chunks/HGOM9FQp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Itz0igUV.js +0 -1
- package/build/client/_app/immutable/chunks/Itz0igUV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Itz0igUV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Jz25bDPF.js +0 -6
- package/build/client/_app/immutable/chunks/Jz25bDPF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Jz25bDPF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RwkF0GJx.js +0 -1
- package/build/client/_app/immutable/chunks/RwkF0GJx.js.br +0 -0
- package/build/client/_app/immutable/chunks/RwkF0GJx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/TmlbWVoX.js +0 -1
- package/build/client/_app/immutable/chunks/TmlbWVoX.js.br +0 -0
- package/build/client/_app/immutable/chunks/TmlbWVoX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Tw4ZagXG.js +0 -4
- package/build/client/_app/immutable/chunks/Tw4ZagXG.js.br +0 -0
- package/build/client/_app/immutable/chunks/Tw4ZagXG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XHroc4sZ.js +0 -7
- package/build/client/_app/immutable/chunks/XHroc4sZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/XHroc4sZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Z63H-b9Q.js +0 -1
- package/build/client/_app/immutable/chunks/Z63H-b9Q.js.br +0 -0
- package/build/client/_app/immutable/chunks/Z63H-b9Q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dnEz5smc.js +0 -1
- package/build/client/_app/immutable/chunks/dnEz5smc.js.br +0 -0
- package/build/client/_app/immutable/chunks/dnEz5smc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/mDP9WxDP.js +0 -1
- package/build/client/_app/immutable/chunks/mDP9WxDP.js.br +0 -0
- package/build/client/_app/immutable/chunks/mDP9WxDP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qeJeFzXW.js +0 -1
- package/build/client/_app/immutable/chunks/qeJeFzXW.js.br +0 -0
- package/build/client/_app/immutable/chunks/qeJeFzXW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tmzKHh8K.js +0 -62
- package/build/client/_app/immutable/chunks/tmzKHh8K.js.br +0 -0
- package/build/client/_app/immutable/chunks/tmzKHh8K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/u8Xomwfh.js +0 -1
- package/build/client/_app/immutable/chunks/u8Xomwfh.js.br +0 -0
- package/build/client/_app/immutable/chunks/u8Xomwfh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/uu_Hh4wT.js +0 -1
- package/build/client/_app/immutable/chunks/uu_Hh4wT.js.br +0 -0
- package/build/client/_app/immutable/chunks/uu_Hh4wT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xjN9NojQ.js +0 -1
- 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/entry/app.DjxuUrhT.js +0 -2
- package/build/client/_app/immutable/entry/app.DjxuUrhT.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DjxuUrhT.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DI3PHIhx.js +0 -1
- package/build/client/_app/immutable/entry/start.DI3PHIhx.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DI3PHIhx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CYp4e3qo.js +0 -9
- package/build/client/_app/immutable/nodes/0.CYp4e3qo.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CYp4e3qo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.2Eyd_ISp.js +0 -1
- package/build/client/_app/immutable/nodes/1.2Eyd_ISp.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.2Eyd_ISp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.DQVYCJ9_.js +0 -6
- package/build/client/_app/immutable/nodes/10.DQVYCJ9_.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DQVYCJ9_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CdV2fuqq.js +0 -1
- package/build/client/_app/immutable/nodes/11.CdV2fuqq.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CdV2fuqq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BLQom29i.js +0 -10
- package/build/client/_app/immutable/nodes/12.BLQom29i.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BLQom29i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.D_gcFahq.js +0 -1
- package/build/client/_app/immutable/nodes/13.D_gcFahq.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D_gcFahq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.C6WDkV_x.js +0 -3
- package/build/client/_app/immutable/nodes/14.C6WDkV_x.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C6WDkV_x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DZXYHjDC.js +0 -1
- package/build/client/_app/immutable/nodes/15.DZXYHjDC.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DZXYHjDC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Yy_rmXn6.js +0 -14
- package/build/client/_app/immutable/nodes/16.Yy_rmXn6.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Yy_rmXn6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.DGewNhAZ.js +0 -150
- package/build/client/_app/immutable/nodes/17.DGewNhAZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.DGewNhAZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.BqIbjxg4.js +0 -3
- package/build/client/_app/immutable/nodes/18.BqIbjxg4.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.BqIbjxg4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.CUuca56L.js +0 -5
- package/build/client/_app/immutable/nodes/19.CUuca56L.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.CUuca56L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.imyQ6LK3.js +0 -28
- package/build/client/_app/immutable/nodes/2.imyQ6LK3.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.imyQ6LK3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.B9lrhviU.js +0 -4
- package/build/client/_app/immutable/nodes/21.B9lrhviU.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.B9lrhviU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.BiV0VupJ.js +0 -2
- package/build/client/_app/immutable/nodes/22.BiV0VupJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.BiV0VupJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.Cd9baK3q.js +0 -5
- package/build/client/_app/immutable/nodes/23.Cd9baK3q.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.Cd9baK3q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.CH7E-1aM.js +0 -11
- package/build/client/_app/immutable/nodes/24.CH7E-1aM.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CH7E-1aM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.-XZtgn61.js +0 -7
- package/build/client/_app/immutable/nodes/25.-XZtgn61.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.-XZtgn61.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.fblEnZVC.js +0 -2
- package/build/client/_app/immutable/nodes/26.fblEnZVC.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.fblEnZVC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.Ap8vGMnf.js +0 -4
- package/build/client/_app/immutable/nodes/27.Ap8vGMnf.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.Ap8vGMnf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.B1aSpnD2.js +0 -7
- package/build/client/_app/immutable/nodes/28.B1aSpnD2.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.B1aSpnD2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.DKiRzT35.js +0 -23
- package/build/client/_app/immutable/nodes/29.DKiRzT35.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.DKiRzT35.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.HeJpVpRR.js +0 -2
- package/build/client/_app/immutable/nodes/3.HeJpVpRR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.HeJpVpRR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DS8z5JZu.js +0 -3
- package/build/client/_app/immutable/nodes/30.DS8z5JZu.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DS8z5JZu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.r71umLj1.js +0 -1
- package/build/client/_app/immutable/nodes/31.r71umLj1.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.r71umLj1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.DFfdrbNY.js +0 -6
- package/build/client/_app/immutable/nodes/32.DFfdrbNY.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.DFfdrbNY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.B0FMKg07.js +0 -5
- package/build/client/_app/immutable/nodes/4.B0FMKg07.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.B0FMKg07.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DTXXi82P.js +0 -1
- package/build/client/_app/immutable/nodes/5.DTXXi82P.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DTXXi82P.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CQkqycyD.js +0 -8
- package/build/client/_app/immutable/nodes/6.CQkqycyD.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CQkqycyD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.veuzIXkf.js +0 -1
- package/build/client/_app/immutable/nodes/7.veuzIXkf.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.veuzIXkf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BZVO6Msr.js +0 -2
- package/build/client/_app/immutable/nodes/8.BZVO6Msr.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BZVO6Msr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.Bd7xkirj.js +0 -7
- package/build/client/_app/immutable/nodes/9.Bd7xkirj.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.Bd7xkirj.js.gz +0 -0
- package/build/server/chunks/chunks/Activity.js-CxD2wX1f.js +0 -46
- package/build/server/chunks/chunks/ConsoleWindow.js-Dg95qjnD.js +0 -120
- package/build/server/chunks/chunks/DecisionCard.js-WGJAKgzq.js +0 -2206
- package/build/server/chunks/chunks/Discussion.js-Bzd7lD9u.js +0 -592
- package/build/server/chunks/chunks/EtaLine.js-CdLq1uWs.js +0 -98
- package/build/server/chunks/chunks/InsightsNav.js-C_dVsHn9.js +0 -18
- package/build/server/chunks/chunks/InstallFromGitHub.js-B8olI6o3.js +0 -272
- package/build/server/chunks/chunks/MicButton.svelte_svelte_type_style_lang.js-ChvZV7Pf.js +0 -200
- package/build/server/chunks/chunks/OpenDecision.js-D1FDRBCl.js +0 -29
- package/build/server/chunks/chunks/PluginElement.js-DW1ooWEo.js +0 -25
- package/build/server/chunks/chunks/RemotesPanel.js-KDwwgFLi.js +0 -315
- package/build/server/chunks/chunks/SettingsNav.js-BQRPyE0b.js +0 -27
- package/build/server/chunks/chunks/SlotContent.js-B04EjwnQ.js +0 -703
- package/build/server/chunks/chunks/bell.js-CpM8DqYk.js +0 -189
- package/build/server/chunks/chunks/chat.svelte.js-Bey5d2gx.js +0 -981
- package/build/server/chunks/chunks/client.js-eyO8nh9R.js +0 -24
- package/build/server/chunks/chunks/cloud.js-DiLoEINt.js +0 -30
- package/build/server/chunks/chunks/detail.js-C8yd-Z-k.js +0 -146
- package/build/server/chunks/chunks/feedback.js-Ct_PXfnL.js +0 -67
- package/build/server/chunks/chunks/inbox.js-Bng-BpZZ.js +0 -227
- package/build/server/chunks/chunks/index2.js-CwJbkPWB.js +0 -40
- package/build/server/chunks/chunks/insights.svelte.js-B7CDDra-.js +0 -681
- package/build/server/chunks/chunks/internal.js-BVfSrIaO.js +0 -151
- package/build/server/chunks/chunks/keychain.js-Bwhnlb47.js +0 -201
- package/build/server/chunks/chunks/live.svelte.js-bE0H0fOh.js +0 -259
- package/build/server/chunks/chunks/marketplace-service.js-Bf67a5qK.js +0 -557
- package/build/server/chunks/chunks/nav.js-BDNfqN62.js +0 -34
- package/build/server/chunks/chunks/page.js-DRSgP4Nf.js +0 -11
- package/build/server/chunks/chunks/plugins.js-CEZaeLDm.js +0 -58
- package/build/server/chunks/chunks/previewhelper2.js-DgImM7LU.js +0 -165
- package/build/server/chunks/chunks/remote.js-CjqBh4V7.js +0 -379
- package/build/server/chunks/chunks/repo.js-1Zz6jztZ.js +0 -33
- package/build/server/chunks/chunks/runtime.js-D4GFKvTr.js +0 -24904
- package/build/server/chunks/chunks/service.js-BFMNOfIl.js +0 -1339
- package/build/server/chunks/chunks/service2.js-DGWkj8bc.js +0 -832
- package/build/server/chunks/chunks/settings.js-CagyrW8Z.js +0 -23
- package/build/server/chunks/chunks/settings2.js-8JjZvg3U.js +0 -690
- package/build/server/chunks/chunks/starter.js-Ci5SG2-L.js +0 -333
- package/build/server/chunks/chunks/state.svelte.js-kNm-eS2R.js +0 -13
- package/build/server/chunks/chunks/store.js-B9jMXKuN.js +0 -332
- package/build/server/chunks/chunks/terminal.js-BE8dA5Np.js +0 -203
- package/build/server/chunks/chunks/uploads.js-BrtmTDb4.js +0 -107
- package/build/server/chunks/chunks/view.js-D-abQADs.js +0 -76
- package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-C_qHN0HZ.js +0 -102
- package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-BQdIbOEp.js +0 -88
- package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-Dg0sSFAY.js +0 -49
- package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-3uKP02RI.js +0 -65
- package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-D2jib9aE.js +0 -69
- package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-Blxykvvt.js +0 -126
- package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-B1y3z-jS.js +0 -61
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-PkfhyzwW.js +0 -95
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-gJ5xScUm.js +0 -73
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-DGXQ-zkQ.js +0 -62
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CMbtapbw.js +0 -56
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BwMIk6K7.js +0 -56
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-Dy1X4RoW.js +0 -57
- package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-CQdKAHK1.js +0 -63
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bijfioyt.js +0 -56
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-B8wHGl1U.js +0 -103
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-CLmEMzHE.js +0 -66
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DPfnSrOP.js +0 -77
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-DpuxD6ra.js +0 -65
- package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-GFk3YNTI.js +0 -56
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-y3uJDvvB.js +0 -32
- package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-NgY968RP.js +0 -40
- package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DtJ7o3h6.js +0 -48
- package/build/server/chunks/entries/endpoints/api/gateway/_server.ts.js-BNYPioH6.js +0 -112
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-CL6_xTqD.js +0 -48
- package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CTJ1GCqi.js +0 -72
- package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-juvjDkla.js +0 -70
- package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-VwTGmwWy.js +0 -63
- package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-PlAADCGh.js +0 -48
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-D2nDWuXi.js +0 -83
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BwsQgq9l.js +0 -72
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-296HIX3X.js +0 -67
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-Cz86xALS.js +0 -64
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-Bkab19gV.js +0 -27
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-B1JQjGvk.js +0 -71
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-ClJT6vre.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Db2VDYLf.js +0 -48
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-B7EHCLQr.js +0 -39
- package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-CM8y655N.js +0 -42
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-CklmEXNl.js +0 -53
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-DcQ3oNpD.js +0 -62
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-C2MPwwhM.js +0 -59
- package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-Cq9U-mk0.js +0 -63
- package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BV6J-_1C.js +0 -27
- package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BbgdGXkP.js +0 -71
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-BRKM86Bs.js +0 -53
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-B4BHMlUn.js +0 -62
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-Cz2d0sgC.js +0 -74
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-ClL33GrR.js +0 -61
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CgDc-SZX.js +0 -84
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-C5bEur-E.js +0 -67
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CmZejtbC.js +0 -78
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BIC3r0mF.js +0 -57
- package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-bSpFuNd-.js +0 -67
- package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-kkD1zOY6.js +0 -127
- package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-WASxVWAE.js +0 -56
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-KcdGmRww.js +0 -53
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-dzU1Tand.js +0 -72
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-DcSxHjSj.js +0 -97
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-rxKgHNdD.js +0 -65
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-Bc0jvWRj.js +0 -113
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-V_v19918.js +0 -67
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-C9_37C0G.js +0 -70
- package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CgKsoNyb.js +0 -71
- package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-Dyykjvue.js +0 -79
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-XlsKACr7.js +0 -40
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DRkz98X1.js +0 -27
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CMlPSnOW.js +0 -27
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-C94kkRCF.js +0 -52
- package/build/server/chunks/entries/fallbacks/error.svelte.js-CQ6LuoCk.js +0 -16
- package/build/server/chunks/entries/hooks.server.js-X02y8x8r.js +0 -85
- package/build/server/chunks/entries/pages/_layout.server.ts.js-C7De-Isg.js +0 -48
- package/build/server/chunks/entries/pages/_layout.svelte.js-CWSWEU4c.js +0 -5625
- package/build/server/chunks/entries/pages/_page.server.ts.js-BAoJ3p8C.js +0 -16
- package/build/server/chunks/entries/pages/_page.svelte.js-WLrYNqLJ.js +0 -3280
- package/build/server/chunks/entries/pages/crew/_page.svelte.js-DxLSCEIo.js +0 -135
- package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CwcgPuy9.js +0 -11
- package/build/server/chunks/entries/pages/decisions/_page.svelte.js-DtlvbBRE.js +0 -203
- package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DRYNelWn.js +0 -16
- package/build/server/chunks/entries/pages/deck/_page.svelte.js-40raAOC5.js +0 -108
- package/build/server/chunks/entries/pages/events/_page.server.ts.js-DxTqj4QH.js +0 -16
- package/build/server/chunks/entries/pages/events/_page.svelte.js-DFIdYx55.js +0 -107
- package/build/server/chunks/entries/pages/files/_page.server.ts.js-B028x03Y.js +0 -17
- package/build/server/chunks/entries/pages/harbour/_page.server.ts.js-CwZ_MiRj.js +0 -46
- package/build/server/chunks/entries/pages/harbour/_page.svelte.js-B9TjegrQ.js +0 -752
- package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-y5BkosA3.js +0 -11
- package/build/server/chunks/entries/pages/headroom/_page.svelte.js-BYHQmCiS.js +0 -184
- package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-BtKe-bOo.js +0 -11
- package/build/server/chunks/entries/pages/inbox/_page.svelte.js-DEKnkNaY.js +0 -216
- package/build/server/chunks/entries/pages/more/_page.svelte.js-drke36Ab.js +0 -124
- package/build/server/chunks/entries/pages/plugins/_page.svelte.js-D_89AE35.js +0 -677
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BoeEQKEq.js +0 -16
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-CqRkGC72.js +0 -59
- package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BY-JZmZi.js +0 -23
- package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DvLV4o64.js +0 -979
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DShuuT5L.js +0 -21
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-38_zNs2V.js +0 -81
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CmpeC-xY.js +0 -27
- package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-BEja-Msc.js +0 -420
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-BsB9NTOF.js +0 -15
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.svelte.js-BvylSr-u.js +0 -1867
- package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-DnrV_9t0.js +0 -11
- package/build/server/chunks/entries/pages/remotes/_page.svelte.js-C398numQ.js +0 -32
- package/build/server/chunks/entries/pages/second-mates/_page.svelte.js-D_GQXruo.js +0 -422
- package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DnBg1UuM.js +0 -11
- package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-BqytLDW-.js +0 -18
- package/build/server/chunks/entries/pages/settings/chat/_page.svelte.js-hdj1DraE.js +0 -77
- package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-D6cmKIUU.js +0 -11
- package/build/server/chunks/entries/pages/settings/cloud/_page.svelte.js-DYVlEJGP.js +0 -34
- package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-D2TwcU53.js +0 -796
- package/build/server/chunks/entries/pages/settings/firstmate/_page.svelte.js-vnwQYzgl.js +0 -254
- package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-Ca_Lj96a.js +0 -11
- package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-DrnGU-9C.js +0 -210
- package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-HxNKn5zw.js +0 -19
- package/build/server/chunks/entries/pages/settings/plugins/_page.svelte.js-C2DrueB0.js +0 -566
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BQMJ-Kte.js +0 -17
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.svelte.js-CIWh1t9z.js +0 -239
- package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-C7Vk4FGL.js +0 -11
- package/build/server/chunks/entries/pages/settings/setup/_page.svelte.js-Cg5U-PSZ.js +0 -56
- package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-DGHgCNKB.js +0 -11
- package/build/server/chunks/entries/pages/settings/update/_page.svelte.js-CxG-h6al.js +0 -62
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-C9W4cn9Q.js +0 -18
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-4CoLb-P8.js +0 -1438
- package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-Cn9hZ81D.js +0 -25
- package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-riLrMlJp.js +0 -2988
- package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-CqF-vZjS.js +0 -24
- package/build/server/chunks/entries/pages/time/_page.server.ts.js-rE2OhxUx.js +0 -11
- package/build/server/chunks/entries/pages/time/_page.svelte.js-DzN2bkPN.js +0 -109
- package/build/server/chunks/handler-CXlqSeVI.js +0 -1474
- package/build/server/chunks/index.js-BE0h2CLl.js +0 -4296
- package/build/server/chunks/manifest.js-CCp6WrG-.js +0 -772
- package/build/server/chunks/nodes/0.js-DqKFTZad.js +0 -55
- package/build/server/chunks/nodes/1.js-DDvuIMoz.js +0 -9
- package/build/server/chunks/nodes/10.js-CTJlIxhf.js +0 -53
- package/build/server/chunks/nodes/11.js-qXwPzT50.js +0 -9
- package/build/server/chunks/nodes/12.js-D4bnpDqF.js +0 -9
- package/build/server/chunks/nodes/13.js-BWjauumk.js +0 -53
- package/build/server/chunks/nodes/14.js-iK973EDW.js +0 -55
- package/build/server/chunks/nodes/15.js-BrRpoa5n.js +0 -54
- package/build/server/chunks/nodes/16.js-ayLJiAkU.js +0 -55
- package/build/server/chunks/nodes/17.js-BXDUhzn7.js +0 -54
- package/build/server/chunks/nodes/18.js-CCFiSZZD.js +0 -25
- package/build/server/chunks/nodes/19.js-C4nFTEr6.js +0 -9
- package/build/server/chunks/nodes/2.js-CKzutINN.js +0 -53
- package/build/server/chunks/nodes/20.js-BSfJvl7Q.js +0 -12
- package/build/server/chunks/nodes/21.js-s1mZQB9c.js +0 -53
- package/build/server/chunks/nodes/22.js-o3wibsmt.js +0 -25
- package/build/server/chunks/nodes/23.js-dQ-HEgpb.js +0 -53
- package/build/server/chunks/nodes/24.js-Pk3RgT1X.js +0 -53
- package/build/server/chunks/nodes/25.js-1SvEg7Ql.js +0 -53
- package/build/server/chunks/nodes/26.js-C0KicoTL.js +0 -56
- package/build/server/chunks/nodes/27.js-DyWUP9dG.js +0 -55
- package/build/server/chunks/nodes/28.js-CyXp2PZz.js +0 -26
- package/build/server/chunks/nodes/29.js-DGGDOikE.js +0 -57
- package/build/server/chunks/nodes/3.js-CtsL2qbK.js +0 -9
- package/build/server/chunks/nodes/30.js-CgaDeD1E.js +0 -54
- package/build/server/chunks/nodes/31.js-C6IaBAVj.js +0 -54
- package/build/server/chunks/nodes/32.js-DXcY33im.js +0 -53
- package/build/server/chunks/nodes/4.js-Dk5MOmfD.js +0 -53
- package/build/server/chunks/nodes/5.js-xtHohvf6.js +0 -53
- package/build/server/chunks/nodes/6.js-BVSUG-yi.js +0 -53
- package/build/server/chunks/nodes/7.js-B4DOvwnj.js +0 -53
- package/build/server/chunks/nodes/8.js-CAppruo9.js +0 -57
- package/build/server/chunks/nodes/9.js-CimsOVlj.js +0 -53
|
@@ -1,3280 +0,0 @@
|
|
|
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-CwJbkPWB.js';
|
|
3
|
-
import { l as live, a as currentFleet, d as currentMessages, b as currentHealth } from '../../chunks/live.svelte.js-bE0H0fOh.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 { a as Monitor_play, C as Compass, M as Maximize_2, L as Lightbox, p as pullRequests, b as previewChecks, u as urlKey } from '../../chunks/MicButton.svelte_svelte_type_style_lang.js-ChvZV7Pf.js';
|
|
9
|
-
import { m as markdown, F as File_text } from '../../chunks/markdown.js-8EKwlA8M.js';
|
|
10
|
-
import { t as escalated, w as cardContext, g as choiceLabel, y as cardTaskHref } from '../../chunks/inbox.js-Bng-BpZZ.js';
|
|
11
|
-
import { f as formIn, a as formIdIn, c as cardForm, b as decidedLabel, w as withoutForm, D as DECIDED_MAX } from '../../chunks/decisionform.js-BgBiAAsS.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-CkERuQ6f.js';
|
|
13
|
-
import { f as firstmateChat, d as duration, p as pendingLabel, i as inbox } from '../../chunks/chat.svelte.js-Bey5d2gx.js';
|
|
14
|
-
import { m as matchBridgeCards, s as storeWhere, S as SECRET_NAME, P as PROJECT_ID, b as andList } from '../../chunks/vault.js-kx-rYEM0.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-D72dE2wD.js';
|
|
18
|
-
import { H as HARNESS_NAMES } from '../../chunks/harness.js-DvhIhjw1.js';
|
|
19
|
-
import { t as terminalWait } from '../../chunks/bell.js-CpM8DqYk.js';
|
|
20
|
-
import { B as Blocks, A as AppFrame } from '../../chunks/SlotContent.js-B04EjwnQ.js';
|
|
21
|
-
import { L as LinkedText } from '../../chunks/LinkedText.js-Bto6J20h.js';
|
|
22
|
-
import { A as Activity } from '../../chunks/Activity.js-CxD2wX1f.js';
|
|
23
|
-
import { I as Icon } from '../../chunks/Icon.js-DZKsF3Gu.js';
|
|
24
|
-
import { C as Chevron_right } from '../../chunks/chevron-right.js-PPUgqXgy.js';
|
|
25
|
-
import { a as DecisionForm, C as Circle_x, M as Monitor_off, L as Layout_dashboard, b as LivePreview, P as PreviewActions, c as DecisionLinks, e as answerWith, f as chatAboutHref, U as Undo_2, g as DecisionDetails, r as reviewSurface, h as MicButton, S as Square, i as editableTarget, j as PreviewStudio } from '../../chunks/DecisionCard.js-WGJAKgzq.js';
|
|
26
|
-
import { M as Messages_square } from '../../chunks/messages-square.js-K86OwN55.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 { M as Message_square } from '../../chunks/message-square.js-CrZeO0AI.js';
|
|
30
|
-
import { E as External_link } from '../../chunks/external-link.js-DDXtld4W.js';
|
|
31
|
-
import { X } from '../../chunks/x.js-vo5qKISo.js';
|
|
32
|
-
import { C as Circle_check } from '../../chunks/circle-check.js-oWgE2-Ib.js';
|
|
33
|
-
import { L as Loader_circle } from '../../chunks/loader-circle.js-B1RYi3bC.js';
|
|
34
|
-
import { R as Rotate_cw } from '../../chunks/rotate-cw.js-BPC6IxqZ.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 { R as ResizableRail, G as Git_merge } from '../../chunks/ResizableRail.js-Clu-Wya9.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/state.svelte.js-kNm-eS2R.js';
|
|
43
|
-
import '../../chunks/exports.js-BZBK1HC9.js';
|
|
44
|
-
import '../../chunks/utils2.js-BQzn9ikS.js';
|
|
45
|
-
import '../../chunks/utils.js-BJgm9WbO.js';
|
|
46
|
-
import '../../chunks/root.js-BMwYWidL.js';
|
|
47
|
-
import { P as Plus } from '../../chunks/plus.js-_sWZi-RM.js';
|
|
48
|
-
import { K as Key_round } from '../../chunks/key-round.js-Ch8DEqV4.js';
|
|
49
|
-
import { A as Arrow_up } from '../../chunks/arrow-up.js-D8v3fwUB.js';
|
|
50
|
-
import { S as Square_terminal } from '../../chunks/square-terminal.js-CBs-sBt1.js';
|
|
51
|
-
import { M as Message_circle_question_mark } from '../../chunks/message-circle-question-mark.js-DhKP-ciZ.js';
|
|
52
|
-
import { C as Check } from '../../chunks/check.js-BizfScOy.js';
|
|
53
|
-
import { C as Copy } from '../../chunks/copy.js-BTlHqk6c.js';
|
|
54
|
-
import { B as Button } from '../../chunks/button.js-Bg2ee8PR.js';
|
|
55
|
-
import { p as phone } from '../../chunks/phone.svelte.js-DSEWkTcb.js';
|
|
56
|
-
import { P as Portal } from '../../chunks/dialog-content.js-p_-FwAQn.js';
|
|
57
|
-
import { t as tick } from '../../chunks/index-server.js-qvYADcF_.js';
|
|
58
|
-
import { L as Lock } from '../../chunks/lock.js-NF_B51Fb.js';
|
|
59
|
-
import { S as Search } from '../../chunks/search.js-D4_Ymk2F.js';
|
|
60
|
-
import { T as Triangle_alert } from '../../chunks/triangle-alert.js-DCXyDwgC.js';
|
|
61
|
-
import { R as Rail, r as railInsights } from '../../chunks/insights.svelte.js-B7CDDra-.js';
|
|
62
|
-
import { g as goto } from '../../chunks/client.js-eyO8nh9R.js';
|
|
63
|
-
import '../../chunks/chevron-left.js-D17b39o2.js';
|
|
64
|
-
import '../../chunks/pullrequests.js-CCzk2sqm.js';
|
|
65
|
-
import '../../chunks/docpath.js-D27w_pf9.js';
|
|
66
|
-
import '../../chunks/index-server2.js-DMc-UvjC.js';
|
|
67
|
-
import '../../chunks/previewnote.js-DB6VK2fp.js';
|
|
68
|
-
import '../../chunks/preview.js-CbgkVvT_.js';
|
|
69
|
-
import '../../chunks/urls.js-CM6aklCF.js';
|
|
70
|
-
import '../../chunks/eye.js-BTtIKcHk.js';
|
|
71
|
-
import '../../chunks/PluginElement.js-DW1ooWEo.js';
|
|
72
|
-
import '../../chunks/chevron-down.js-DLf9oWYQ.js';
|
|
73
|
-
import '../../chunks/cloud.js-DiLoEINt.js';
|
|
74
|
-
import '../../chunks/addresses.js-DmMJzvLK.js';
|
|
75
|
-
import '../../chunks/utils3.js-ByN3K_WW.js';
|
|
76
|
-
import '../../chunks/clock.js-BRFOn_JF.js';
|
|
77
|
-
import '../../chunks/scale.js-5D4jKhvV.js';
|
|
78
|
-
import '../../chunks/matelink.js-D9ilVdpZ.js';
|
|
79
|
-
import '../../chunks/insights.js-CzzfyHGp.js';
|
|
80
|
-
import '../../chunks/checks.js-Cn5S6WhT.js';
|
|
81
|
-
import '../../chunks/TimeBar.js-Dduf0kTb.js';
|
|
82
|
-
import '../../chunks/MateHealthPill.js-DlhkG33B.js';
|
|
83
|
-
import '../../chunks/EtaLine.js-CdLq1uWs.js';
|
|
84
|
-
import '../../chunks/WhereBadge.js-bxjlBG9F.js';
|
|
85
|
-
import '../../chunks/tone.js-Ci1XHrIZ.js';
|
|
86
|
-
import '../../chunks/ship.js-BVQ9iFsJ.js';
|
|
87
|
-
import '../../chunks/OpenDecision.js-D1FDRBCl.js';
|
|
88
|
-
import '../../chunks/arrow-up-right.js-B5ORjULl.js';
|
|
89
|
-
import '../../chunks/bridge.js-D-xKM47V.js';
|
|
90
|
-
import '../../chunks/gauge.js-cdrDtC-R.js';
|
|
91
|
-
import '../../chunks/arrow-right.js-vz3YukWJ.js';
|
|
92
|
-
|
|
93
|
-
function App_window($$renderer, $$props) {
|
|
94
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
95
|
-
const iconData = {
|
|
96
|
-
"name": "app-window",
|
|
97
|
-
"size": 24,
|
|
98
|
-
"node": [
|
|
99
|
-
[
|
|
100
|
-
"rect",
|
|
101
|
-
{ "x": "2", "y": "4", "width": "20", "height": "16", "rx": "2" }
|
|
102
|
-
],
|
|
103
|
-
["path", { "d": "M10 4v4" }],
|
|
104
|
-
["path", { "d": "M2 8h20" }],
|
|
105
|
-
["path", { "d": "M6 4v4" }]
|
|
106
|
-
]
|
|
107
|
-
};
|
|
108
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
109
|
-
}
|
|
110
|
-
function Arrow_left_right($$renderer, $$props) {
|
|
111
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
112
|
-
const iconData = {
|
|
113
|
-
"name": "arrow-left-right",
|
|
114
|
-
"size": 24,
|
|
115
|
-
"node": [
|
|
116
|
-
["path", { "d": "M8 3 4 7l4 4" }],
|
|
117
|
-
["path", { "d": "M4 7h16" }],
|
|
118
|
-
["path", { "d": "m16 21 4-4-4-4" }],
|
|
119
|
-
["path", { "d": "M20 17H4" }]
|
|
120
|
-
]
|
|
121
|
-
};
|
|
122
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
123
|
-
}
|
|
124
|
-
function Panel_left($$renderer, $$props) {
|
|
125
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
126
|
-
const iconData = {
|
|
127
|
-
"name": "panel-left",
|
|
128
|
-
"size": 24,
|
|
129
|
-
"node": [
|
|
130
|
-
[
|
|
131
|
-
"rect",
|
|
132
|
-
{ "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
|
|
133
|
-
],
|
|
134
|
-
["path", { "d": "M9 3v18" }]
|
|
135
|
-
],
|
|
136
|
-
"aliases": ["sidebar"]
|
|
137
|
-
};
|
|
138
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
139
|
-
}
|
|
140
|
-
function Panel_right($$renderer, $$props) {
|
|
141
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
142
|
-
const iconData = {
|
|
143
|
-
"name": "panel-right",
|
|
144
|
-
"size": 24,
|
|
145
|
-
"node": [
|
|
146
|
-
[
|
|
147
|
-
"rect",
|
|
148
|
-
{ "width": "18", "height": "18", "x": "3", "y": "3", "rx": "2" }
|
|
149
|
-
],
|
|
150
|
-
["path", { "d": "M15 3v18" }]
|
|
151
|
-
]
|
|
152
|
-
};
|
|
153
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
154
|
-
}
|
|
155
|
-
function Paperclip($$renderer, $$props) {
|
|
156
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
157
|
-
const iconData = {
|
|
158
|
-
"name": "paperclip",
|
|
159
|
-
"size": 24,
|
|
160
|
-
"node": [
|
|
161
|
-
[
|
|
162
|
-
"path",
|
|
163
|
-
{
|
|
164
|
-
"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"
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
]
|
|
168
|
-
};
|
|
169
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
170
|
-
}
|
|
171
|
-
function Reply($$renderer, $$props) {
|
|
172
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
173
|
-
const iconData = {
|
|
174
|
-
"name": "reply",
|
|
175
|
-
"size": 24,
|
|
176
|
-
"node": [
|
|
177
|
-
["path", { "d": "M20 18v-2a4 4 0 0 0-4-4H4" }],
|
|
178
|
-
["path", { "d": "m9 17-5-5 5-5" }]
|
|
179
|
-
]
|
|
180
|
-
};
|
|
181
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
182
|
-
}
|
|
183
|
-
function Thumbs_up($$renderer, $$props) {
|
|
184
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
185
|
-
const iconData = {
|
|
186
|
-
"name": "thumbs-up",
|
|
187
|
-
"size": 24,
|
|
188
|
-
"node": [
|
|
189
|
-
[
|
|
190
|
-
"path",
|
|
191
|
-
{
|
|
192
|
-
"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"
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
["path", { "d": "M7 10v12" }]
|
|
196
|
-
]
|
|
197
|
-
};
|
|
198
|
-
Icon($$renderer, spread_props([props, { icon: iconData }]));
|
|
199
|
-
}
|
|
200
|
-
function shipHealth(h) {
|
|
201
|
-
if (h.stepFailed.length || h.trouble.some((t) => t.status === "failed")) {
|
|
202
|
-
return { label: "Something failed", tone: "danger" };
|
|
203
|
-
}
|
|
204
|
-
const n = h.needsYou.length;
|
|
205
|
-
if (n) return { label: `${n} need${n === 1 ? "s" : ""} you`, tone: "sea" };
|
|
206
|
-
if (h.trouble.length) return { label: "Keeping an eye on a problem", tone: "warning" };
|
|
207
|
-
return { label: "All well", tone: "success" };
|
|
208
|
-
}
|
|
209
|
-
const TOO_LARGE = `Too large · ${UPLOAD_MAX_BYTES / (1024 * 1024)} MB at most`;
|
|
210
|
-
class Attachments {
|
|
211
|
-
drafts = [];
|
|
212
|
-
/** Files dropped on the chat, for the composer to take. */
|
|
213
|
-
dropped = [];
|
|
214
|
-
inflight = /* @__PURE__ */ new Map();
|
|
215
|
-
/** Add files and start uploading them. `pasted`: from the clipboard, so an image under the browser's generic name gets a readable one. */
|
|
216
|
-
add(files, token, pasted = false) {
|
|
217
|
-
for (const f of files) {
|
|
218
|
-
const generic = pasted && isImage(f.type) && /^image\.\w+$/.test(f.name);
|
|
219
|
-
const name = generic || !f.name ? pastedName(f.type) : f.name;
|
|
220
|
-
this.drafts.push({
|
|
221
|
-
id: crypto.randomUUID(),
|
|
222
|
-
name,
|
|
223
|
-
size: f.size,
|
|
224
|
-
type: f.type,
|
|
225
|
-
preview: isImage(f.type) ? URL.createObjectURL(f) : null,
|
|
226
|
-
state: "uploading",
|
|
227
|
-
progress: 0,
|
|
228
|
-
error: null,
|
|
229
|
-
upload: null
|
|
230
|
-
});
|
|
231
|
-
const d = this.drafts[this.drafts.length - 1];
|
|
232
|
-
if (f.size > UPLOAD_MAX_BYTES) this.fail(d, TOO_LARGE);
|
|
233
|
-
else if (f.size === 0) this.fail(d, "Empty file");
|
|
234
|
-
else this.send(d, f, token);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
remove(id) {
|
|
238
|
-
this.inflight.get(id)?.abort();
|
|
239
|
-
this.inflight.delete(id);
|
|
240
|
-
const d = this.drafts.find((x) => x.id === id);
|
|
241
|
-
if (d?.preview) URL.revokeObjectURL(d.preview);
|
|
242
|
-
this.drafts = this.drafts.filter((x) => x.id !== id);
|
|
243
|
-
}
|
|
244
|
-
/** The uploaded files, handed to the message; failed ones stay listed. */
|
|
245
|
-
take() {
|
|
246
|
-
const ready = this.drafts.filter((d) => d.state === "ready" && d.upload);
|
|
247
|
-
for (const d of ready) if (d.preview) URL.revokeObjectURL(d.preview);
|
|
248
|
-
this.drafts = this.drafts.filter((d) => !ready.includes(d));
|
|
249
|
-
return ready.map((d) => d.upload);
|
|
250
|
-
}
|
|
251
|
-
get uploading() {
|
|
252
|
-
return this.drafts.some((d) => d.state === "uploading");
|
|
253
|
-
}
|
|
254
|
-
get ready() {
|
|
255
|
-
return this.drafts.some((d) => d.state === "ready");
|
|
256
|
-
}
|
|
257
|
-
fail(d, error) {
|
|
258
|
-
d.state = "failed";
|
|
259
|
-
d.error = error;
|
|
260
|
-
}
|
|
261
|
-
send(d, file, token) {
|
|
262
|
-
const xhr = new XMLHttpRequest();
|
|
263
|
-
this.inflight.set(d.id, xhr);
|
|
264
|
-
xhr.open("POST", "/api/firstmate/uploads");
|
|
265
|
-
xhr.setRequestHeader(SESSION_HEADER, token);
|
|
266
|
-
xhr.setRequestHeader(NAME_HEADER, encodeURIComponent(d.name));
|
|
267
|
-
xhr.setRequestHeader(TYPE_HEADER, file.type);
|
|
268
|
-
xhr.setRequestHeader("content-type", "application/octet-stream");
|
|
269
|
-
xhr.upload.onprogress = (e) => {
|
|
270
|
-
if (e.lengthComputable) d.progress = e.loaded / e.total;
|
|
271
|
-
};
|
|
272
|
-
xhr.onload = () => {
|
|
273
|
-
this.inflight.delete(d.id);
|
|
274
|
-
let body = {};
|
|
275
|
-
try {
|
|
276
|
-
body = JSON.parse(xhr.responseText);
|
|
277
|
-
} catch {
|
|
278
|
-
}
|
|
279
|
-
if (xhr.status === 201 && typeof body.path === "string") {
|
|
280
|
-
d.upload = {
|
|
281
|
-
path: body.path,
|
|
282
|
-
name: body.name ?? d.name,
|
|
283
|
-
size: body.size ?? d.size,
|
|
284
|
-
type: body.type ?? ""
|
|
285
|
-
};
|
|
286
|
-
d.progress = 1;
|
|
287
|
-
d.state = "ready";
|
|
288
|
-
} else if (xhr.status === 413) this.fail(d, TOO_LARGE);
|
|
289
|
-
else this.fail(d, body.message ?? `Not uploaded · Wheelhouse answered ${xhr.status}`);
|
|
290
|
-
};
|
|
291
|
-
xhr.onerror = () => {
|
|
292
|
-
this.inflight.delete(d.id);
|
|
293
|
-
this.fail(d, "Could not reach the Wheelhouse server");
|
|
294
|
-
};
|
|
295
|
-
xhr.send(file);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
const attachments = new Attachments();
|
|
299
|
-
function SentFiles($$renderer, $$props) {
|
|
300
|
-
$$renderer.component(($$renderer2) => {
|
|
301
|
-
let { files, pending = false } = $$props;
|
|
302
|
-
let broken = {};
|
|
303
|
-
const thumb = (a) => broken[a.path] ? null : thumbUrl(a);
|
|
304
|
-
const images = derived(() => files.filter((a) => thumb(a)));
|
|
305
|
-
let open = null;
|
|
306
|
-
let $$settled = true;
|
|
307
|
-
let $$inner_renderer;
|
|
308
|
-
function $$render_inner($$renderer3) {
|
|
309
|
-
$$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"><!--[-->`);
|
|
310
|
-
const each_array = ensure_array_like(files);
|
|
311
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
312
|
-
let a = each_array[$$index];
|
|
313
|
-
const src = thumb(a);
|
|
314
|
-
$$renderer3.push(`<li class="flex items-center gap-2.5 py-1.5 text-sm">`);
|
|
315
|
-
if (src) {
|
|
316
|
-
$$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>`);
|
|
317
|
-
} else {
|
|
318
|
-
$$renderer3.push(`<!--[-1--><span class="flex size-10 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
|
|
319
|
-
File_text($$renderer3, { class: "size-4" });
|
|
320
|
-
$$renderer3.push(`<!----></span>`);
|
|
321
|
-
}
|
|
322
|
-
$$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>`);
|
|
323
|
-
}
|
|
324
|
-
$$renderer3.push(`<!--]--></ul></div> `);
|
|
325
|
-
if (images().length) {
|
|
326
|
-
$$renderer3.push("<!--[0-->");
|
|
327
|
-
Lightbox($$renderer3, {
|
|
328
|
-
shots: images().map((a) => ({ name: a.name, url: thumb(a) ?? "" })),
|
|
329
|
-
get index() {
|
|
330
|
-
return open;
|
|
331
|
-
},
|
|
332
|
-
set index($$value) {
|
|
333
|
-
open = $$value;
|
|
334
|
-
$$settled = false;
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
} else {
|
|
338
|
-
$$renderer3.push("<!--[-1-->");
|
|
339
|
-
}
|
|
340
|
-
$$renderer3.push(`<!--]-->`);
|
|
341
|
-
}
|
|
342
|
-
do {
|
|
343
|
-
$$settled = true;
|
|
344
|
-
$$inner_renderer = $$renderer2.copy();
|
|
345
|
-
$$render_inner($$inner_renderer);
|
|
346
|
-
} while (!$$settled);
|
|
347
|
-
$$renderer2.subsume($$inner_renderer);
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
const headOf = (c) => ({
|
|
351
|
-
cardId: c.id,
|
|
352
|
-
taskId: c.taskId,
|
|
353
|
-
taskTitle: c.taskTitle,
|
|
354
|
-
projectId: c.projectId,
|
|
355
|
-
kind: c.kind,
|
|
356
|
-
key: c.key,
|
|
357
|
-
question: c.title,
|
|
358
|
-
askedAt: c.askedAt,
|
|
359
|
-
secondMate: c.secondMate ?? null
|
|
360
|
-
});
|
|
361
|
-
function chatDecisions(cards, answered, local, opened = /* @__PURE__ */ new Set()) {
|
|
362
|
-
const out = [];
|
|
363
|
-
const shown = /* @__PURE__ */ new Set();
|
|
364
|
-
for (const c of cards) {
|
|
365
|
-
const head2 = headOf(c);
|
|
366
|
-
const mine = local[c.id]?.question === c.question ? local[c.id] : null;
|
|
367
|
-
const taken = c.sent && c.sent.delivery !== "failed" ? c.sent : null;
|
|
368
|
-
if (!escalated(c) && !opened.has(c.id) && !mine && !taken) continue;
|
|
369
|
-
if (mine && !(mine.posted && taken)) {
|
|
370
|
-
out.push({
|
|
371
|
-
id: c.id,
|
|
372
|
-
head: head2,
|
|
373
|
-
card: c,
|
|
374
|
-
answer: {
|
|
375
|
-
choice: mine.choice,
|
|
376
|
-
label: choiceLabel(c, mine.choice),
|
|
377
|
-
picks: mine.picks,
|
|
378
|
-
note: mine.note,
|
|
379
|
-
at: null,
|
|
380
|
-
delivery: mine.posted ? null : "sending"
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
} else if (taken) {
|
|
384
|
-
shown.add(taken.requestId);
|
|
385
|
-
out.push({
|
|
386
|
-
id: c.id,
|
|
387
|
-
head: head2,
|
|
388
|
-
card: c,
|
|
389
|
-
answer: {
|
|
390
|
-
choice: taken.choice,
|
|
391
|
-
label: choiceLabel(c, taken.choice),
|
|
392
|
-
picks: taken.picks,
|
|
393
|
-
note: taken.note,
|
|
394
|
-
at: taken.at,
|
|
395
|
-
delivery: taken.delivery
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
} else {
|
|
399
|
-
out.push({ id: c.id, head: head2, card: c, answer: null });
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
const open = new Map(out.map((d) => [d.id, d]));
|
|
403
|
-
for (const a of answered) {
|
|
404
|
-
if (shown.has(a.requestId) || a.delivery === "failed") continue;
|
|
405
|
-
if (open.get(a.cardId)?.head.question === a.question) continue;
|
|
406
|
-
out.push({
|
|
407
|
-
id: `answer:${a.requestId}`,
|
|
408
|
-
head: {
|
|
409
|
-
cardId: a.cardId,
|
|
410
|
-
taskId: a.taskId,
|
|
411
|
-
taskTitle: a.taskTitle,
|
|
412
|
-
projectId: a.projectId,
|
|
413
|
-
kind: a.kind,
|
|
414
|
-
key: a.key,
|
|
415
|
-
question: a.question,
|
|
416
|
-
askedAt: a.askedAt
|
|
417
|
-
},
|
|
418
|
-
card: null,
|
|
419
|
-
answer: {
|
|
420
|
-
choice: a.choice,
|
|
421
|
-
label: a.label,
|
|
422
|
-
picks: a.picks,
|
|
423
|
-
note: a.note,
|
|
424
|
-
at: a.answeredAt,
|
|
425
|
-
delivery: a.delivery
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
return out;
|
|
430
|
-
}
|
|
431
|
-
function decisionFor(id, decisions) {
|
|
432
|
-
if (!id) return null;
|
|
433
|
-
const held = decisions.filter((d) => d.head.kind === "hold");
|
|
434
|
-
const named = (d) => d.head.taskId === id || d.head.key === id;
|
|
435
|
-
return held.find((d) => d.card && named(d)) ?? held.findLast(named) ?? null;
|
|
436
|
-
}
|
|
437
|
-
const time = (s) => {
|
|
438
|
-
const t = s ? Date.parse(s) : NaN;
|
|
439
|
-
return Number.isNaN(t) ? null : t;
|
|
440
|
-
};
|
|
441
|
-
const placeAt = (d) => time(d.head.askedAt) ?? time(d.answer?.at);
|
|
442
|
-
function placeDecisions(items, decisions) {
|
|
443
|
-
const before = /* @__PURE__ */ new Map();
|
|
444
|
-
const end = [];
|
|
445
|
-
const times = items.map((it) => time(it.at));
|
|
446
|
-
const first = times.find((t) => t !== null) ?? null;
|
|
447
|
-
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));
|
|
448
|
-
for (const { d, at } of sorted) {
|
|
449
|
-
if (at === null) {
|
|
450
|
-
end.push(d);
|
|
451
|
-
continue;
|
|
452
|
-
}
|
|
453
|
-
if (d.answer && !d.card && (first === null || at < first)) continue;
|
|
454
|
-
const i = times.findIndex((t) => t !== null && t > at);
|
|
455
|
-
if (i < 0) end.push(d);
|
|
456
|
-
else before.set(i, [...before.get(i) ?? [], d]);
|
|
457
|
-
}
|
|
458
|
-
return { before, end };
|
|
459
|
-
}
|
|
460
|
-
const QUOTED = /^> About the decision on ([^\s()]+) \(key ([^\s()]+)\), not an answer yet: “(.*)”\n(?:> [^\n]*\n)*\n([\s\S]+)$/;
|
|
461
|
-
const cardIdOf = (ref) => `${ref.taskId}:${ref.key}`;
|
|
462
|
-
function parseDiscuss(text) {
|
|
463
|
-
const m = text.replace(/\r\n?/g, "\n").match(QUOTED);
|
|
464
|
-
if (!m || !m[4].trim()) return null;
|
|
465
|
-
return { cardId: cardIdOf({ taskId: m[1], key: m[2] }), question: m[3], body: m[4].trim() };
|
|
466
|
-
}
|
|
467
|
-
function refinedForm(thread, question) {
|
|
468
|
-
const quoted = snippetOf(question);
|
|
469
|
-
const msgs = thread?.messages ?? [];
|
|
470
|
-
for (let i = msgs.length - 1; i >= 0; i--) {
|
|
471
|
-
const m = msgs[i];
|
|
472
|
-
const f = m.who === "firstmate" && m.question === quoted ? formIn(m.text) : null;
|
|
473
|
-
if (f) return { id: m.id, form: f };
|
|
474
|
-
}
|
|
475
|
-
return null;
|
|
476
|
-
}
|
|
477
|
-
function byQuestion(thread, question) {
|
|
478
|
-
const quoted = snippetOf(question);
|
|
479
|
-
const earlier = [];
|
|
480
|
-
const current = [];
|
|
481
|
-
for (const m of thread?.messages ?? []) {
|
|
482
|
-
if (m.question === quoted) {
|
|
483
|
-
current.push(m);
|
|
484
|
-
continue;
|
|
485
|
-
}
|
|
486
|
-
const last = earlier.at(-1);
|
|
487
|
-
if (last?.question === m.question) last.messages.push(m);
|
|
488
|
-
else earlier.push({ question: m.question, messages: [m] });
|
|
489
|
-
}
|
|
490
|
-
return { earlier, current };
|
|
491
|
-
}
|
|
492
|
-
function threads(items, cards) {
|
|
493
|
-
const byCard = /* @__PURE__ */ new Map();
|
|
494
|
-
const hidden = /* @__PURE__ */ new Set();
|
|
495
|
-
for (let i = 0; i < items.length; i++) {
|
|
496
|
-
const it = items[i];
|
|
497
|
-
if (it.kind !== "user") continue;
|
|
498
|
-
const d = parseDiscuss(it.text);
|
|
499
|
-
if (!d || !cards.has(d.cardId)) continue;
|
|
500
|
-
const thread = byCard.get(d.cardId) ?? { messages: [], answering: false };
|
|
501
|
-
byCard.set(d.cardId, thread);
|
|
502
|
-
thread.messages.push({
|
|
503
|
-
id: it.id,
|
|
504
|
-
who: "captain",
|
|
505
|
-
text: d.body,
|
|
506
|
-
at: it.at,
|
|
507
|
-
question: d.question
|
|
508
|
-
});
|
|
509
|
-
thread.answering = false;
|
|
510
|
-
hidden.add(it.id);
|
|
511
|
-
const next = items[i + 1];
|
|
512
|
-
if (next?.kind !== "turn" || next.trigger !== "captain") continue;
|
|
513
|
-
if (next.parts.some((p) => p.kind === "question")) continue;
|
|
514
|
-
hidden.add(next.id);
|
|
515
|
-
for (const p of next.parts) {
|
|
516
|
-
if (p.kind === "text")
|
|
517
|
-
thread.messages.push({
|
|
518
|
-
id: p.id,
|
|
519
|
-
who: "firstmate",
|
|
520
|
-
text: p.text,
|
|
521
|
-
at: next.at,
|
|
522
|
-
question: d.question
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
thread.answering = !next.done && !next.interrupted;
|
|
526
|
-
i++;
|
|
527
|
-
}
|
|
528
|
-
return { byCard, hidden };
|
|
529
|
-
}
|
|
530
|
-
function pendingThreads(pending) {
|
|
531
|
-
const out = /* @__PURE__ */ new Map();
|
|
532
|
-
for (const p of pending) {
|
|
533
|
-
const d = parseDiscuss(p.text);
|
|
534
|
-
if (!d) continue;
|
|
535
|
-
out.set(d.cardId, [...out.get(d.cardId) ?? [], { pending: p, body: d.body }]);
|
|
536
|
-
}
|
|
537
|
-
return out;
|
|
538
|
-
}
|
|
539
|
-
const BRIEFING_MIN_CHARS = 500;
|
|
540
|
-
function isBriefing(text) {
|
|
541
|
-
if (!text || text.length < BRIEFING_MIN_CHARS) return false;
|
|
542
|
-
const prose = text.replace(
|
|
543
|
-
/^ {0,3}(`{3,}|~{3,})[^\n]*\n[\s\S]*?(?:^ {0,3}\1[`~]*[ \t]*$|(?![\s\S]))/gm,
|
|
544
|
-
""
|
|
545
|
-
);
|
|
546
|
-
return /^\s{0,3}(?:[-*+]|\d+[.)]|#{1,4})\s+\S/m.test(prose);
|
|
547
|
-
}
|
|
548
|
-
const BLOCK$1 = /```decision-form[^\n]*\n[\s\S]*?(?:```|$)/g;
|
|
549
|
-
const ANSWER = /^Decided( \(other\))?: (.+?)(?: — for: “(.+)”)?$/;
|
|
550
|
-
const DISMISSED = /^Dismissed(?: — for: “(.+)”)?$/;
|
|
551
|
-
const tidy = (s) => s.replace(/\s+/g, " ").trim();
|
|
552
|
-
function formAtEnd(text) {
|
|
553
|
-
const blocks = [...text.matchAll(BLOCK$1)];
|
|
554
|
-
const last = blocks[blocks.length - 1];
|
|
555
|
-
if (!last || text.slice(last.index + last[0].length).trim()) return null;
|
|
556
|
-
const form = formIn(text);
|
|
557
|
-
return form && { form, words: text.slice(0, last.index).trim(), id: formIdIn(text) };
|
|
558
|
-
}
|
|
559
|
-
function answerText(form, a, note) {
|
|
560
|
-
const words = tidy(a.decided ?? "").slice(0, DECIDED_MAX);
|
|
561
|
-
if (!words) return "";
|
|
562
|
-
const question = tidy(form.prompt ?? "");
|
|
563
|
-
const line = question ? `Decided: ${words} — for: “${question}”` : `Decided${a.other ? " (other)" : ""}: ${words}`;
|
|
564
|
-
const more = note?.trim();
|
|
565
|
-
return more ? `${line}
|
|
566
|
-
|
|
567
|
-
${more}` : line;
|
|
568
|
-
}
|
|
569
|
-
function dismissText(form, reason) {
|
|
570
|
-
const question = tidy(form.prompt ?? "");
|
|
571
|
-
const line = question ? `Dismissed — for: “${question}”` : "Dismissed";
|
|
572
|
-
const why = tidy(reason ?? "");
|
|
573
|
-
return why ? `${line}
|
|
574
|
-
|
|
575
|
-
Reason: ${why}` : line;
|
|
576
|
-
}
|
|
577
|
-
function parseAnswer(text) {
|
|
578
|
-
const lines = text.replace(/\r\n?/g, "\n").trim().split("\n");
|
|
579
|
-
const d = DISMISSED.exec(lines[0]);
|
|
580
|
-
if (d) {
|
|
581
|
-
const why = lines.slice(1).find((l) => l.startsWith("Reason: "));
|
|
582
|
-
return {
|
|
583
|
-
words: "",
|
|
584
|
-
question: d[1] ? tidy(d[1]) : null,
|
|
585
|
-
other: false,
|
|
586
|
-
dismissed: why ? tidy(why.slice("Reason: ".length)) : ""
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
const m = ANSWER.exec(lines[0]);
|
|
590
|
-
const words = m ? tidy(m[2]) : "";
|
|
591
|
-
return words ? { words, question: m?.[3] ? tidy(m[3]) : null, other: !!m?.[1], dismissed: null } : null;
|
|
592
|
-
}
|
|
593
|
-
const fits = (form, a) => a.other || a.dismissed !== null || form.kind === "text" || form.kind !== "picks" && form.options.some((o) => o.answer.decided === a.words);
|
|
594
|
-
function chatForms(items, hidden, pending = [], inbox2 = []) {
|
|
595
|
-
const said = [];
|
|
596
|
-
const note = (m) => ({
|
|
597
|
-
id: null,
|
|
598
|
-
text: m.text,
|
|
599
|
-
item: null,
|
|
600
|
-
failed: m.delivery === "failed"
|
|
601
|
-
});
|
|
602
|
-
let n = 0;
|
|
603
|
-
for (const it of items) {
|
|
604
|
-
const at = Date.parse(it.at);
|
|
605
|
-
while (n < inbox2.length && Date.parse(inbox2[n].submittedAt) < at) said.push(note(inbox2[n++]));
|
|
606
|
-
if (hidden.has(it.id)) continue;
|
|
607
|
-
said.push({ id: it.id, text: it.kind === "user" ? it.text : null, item: it, failed: false });
|
|
608
|
-
}
|
|
609
|
-
for (const m of inbox2.slice(n)) said.push(note(m));
|
|
610
|
-
const shown = /* @__PURE__ */ new Set();
|
|
611
|
-
const unshown = pending.filter((p) => {
|
|
612
|
-
const from = said.findIndex((x) => x.id !== null && x.id === p.after);
|
|
613
|
-
const echo = said.findIndex(
|
|
614
|
-
(x, i) => i > from && !shown.has(i) && x.text !== null && tidy(x.text) === tidy(p.text)
|
|
615
|
-
);
|
|
616
|
-
if (echo < 0) return true;
|
|
617
|
-
shown.add(echo);
|
|
618
|
-
return false;
|
|
619
|
-
});
|
|
620
|
-
const out = /* @__PURE__ */ new Map();
|
|
621
|
-
const asked = [];
|
|
622
|
-
const waiting = (f) => f.decided === null && f.dismissed === null;
|
|
623
|
-
const answer = (text) => {
|
|
624
|
-
const a = parseAnswer(text);
|
|
625
|
-
if (!a) return;
|
|
626
|
-
const to = a.question ? asked.findLast((f) => waiting(f) && tidy(f.form.prompt ?? "") === a.question) : asked.at(-1);
|
|
627
|
-
if (!to || !waiting(to) || !(a.question || fits(to.form, a))) return;
|
|
628
|
-
if (a.dismissed !== null) to.dismissed = a.dismissed;
|
|
629
|
-
else to.decided = a.words;
|
|
630
|
-
};
|
|
631
|
-
for (const { text, item, failed } of said) {
|
|
632
|
-
if (text !== null && !failed) answer(text);
|
|
633
|
-
if (item?.kind !== "turn") continue;
|
|
634
|
-
for (const p of item.parts) {
|
|
635
|
-
const reply = p.kind === "text" ? formAtEnd(p.text) : null;
|
|
636
|
-
if (!reply) continue;
|
|
637
|
-
const f = { ...reply, decided: null, dismissed: null, active: false };
|
|
638
|
-
out.set(p.id, f);
|
|
639
|
-
asked.push(f);
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
for (const p of unshown) answer(p.text);
|
|
643
|
-
const seen = /* @__PURE__ */ new Set();
|
|
644
|
-
for (const f of asked.toReversed()) {
|
|
645
|
-
const key = f.form.prompt ? tidy(f.form.prompt) : null;
|
|
646
|
-
f.active = waiting(f) && (key === null ? f === asked.at(-1) : !seen.has(key));
|
|
647
|
-
if (key !== null) seen.add(key);
|
|
648
|
-
}
|
|
649
|
-
return out;
|
|
650
|
-
}
|
|
651
|
-
const PURPOSE_MAX = 300;
|
|
652
|
-
const PROJECTS_MAX = 20;
|
|
653
|
-
const BLOCK = /^```vault-request[ \t]*\r?\n([\s\S]*?)\r?\n?```[ \t]*$/gm;
|
|
654
|
-
const STORED = /^Stored secret ([A-Za-z_][A-Za-z0-9_]{0,127}) in the vault\.(?: |$)/;
|
|
655
|
-
function parseRequest(body) {
|
|
656
|
-
const fields = /* @__PURE__ */ new Map();
|
|
657
|
-
for (const raw of body.split(/\r?\n/)) {
|
|
658
|
-
const line = raw.trim();
|
|
659
|
-
if (!line) continue;
|
|
660
|
-
const m = /^([a-z]+)\s*:\s*(.*)$/i.exec(line);
|
|
661
|
-
if (!m) return null;
|
|
662
|
-
const key = m[1].toLowerCase();
|
|
663
|
-
if (!["name", "purpose", "projects"].includes(key) || fields.has(key)) return null;
|
|
664
|
-
fields.set(key, m[2].trim());
|
|
665
|
-
}
|
|
666
|
-
const name = fields.get("name") ?? "";
|
|
667
|
-
if (!SECRET_NAME.test(name)) return null;
|
|
668
|
-
const purpose = fields.get("purpose") ?? "";
|
|
669
|
-
if (purpose.length > PURPOSE_MAX) return null;
|
|
670
|
-
const projects = [
|
|
671
|
-
...new Set(
|
|
672
|
-
(fields.get("projects") ?? "").split(/[\s,]+/).map((p) => p.trim()).filter(Boolean)
|
|
673
|
-
)
|
|
674
|
-
];
|
|
675
|
-
if (projects.length > PROJECTS_MAX || !projects.every((p) => PROJECT_ID.test(p))) return null;
|
|
676
|
-
return { name, purpose, projects };
|
|
677
|
-
}
|
|
678
|
-
function vaultRequests(text) {
|
|
679
|
-
if (!text.includes("```vault-request")) return { words: text, requests: [] };
|
|
680
|
-
const requests = [];
|
|
681
|
-
const words = text.replace(BLOCK, (block, body) => {
|
|
682
|
-
const r = parseRequest(body);
|
|
683
|
-
if (!r) return block;
|
|
684
|
-
requests.push(r);
|
|
685
|
-
return "";
|
|
686
|
-
});
|
|
687
|
-
return requests.length ? { words: words.replace(/\n{3,}/g, "\n\n").trim(), requests } : { words: text, requests };
|
|
688
|
-
}
|
|
689
|
-
function storedText(name, projects) {
|
|
690
|
-
const who = projects.length ? `${andList(projects)} can use it.` : "No project can use it yet.";
|
|
691
|
-
return `Stored secret ${name} in the vault. ${who}`;
|
|
692
|
-
}
|
|
693
|
-
function parseStored(text) {
|
|
694
|
-
return STORED.exec(text.trim())?.[1] ?? null;
|
|
695
|
-
}
|
|
696
|
-
function vaultAsks(items, pending = [], inbox2 = []) {
|
|
697
|
-
const out = /* @__PURE__ */ new Map();
|
|
698
|
-
const asked = [];
|
|
699
|
-
const stored = (text, at = Infinity) => {
|
|
700
|
-
const name = parseStored(text);
|
|
701
|
-
if (!name) return;
|
|
702
|
-
for (const [a, when] of asked) if (a.request.name === name && when < at) a.stored = true;
|
|
703
|
-
};
|
|
704
|
-
for (const it of items) {
|
|
705
|
-
if (it.kind === "user") stored(it.text);
|
|
706
|
-
if (it.kind !== "turn") continue;
|
|
707
|
-
const at = Date.parse(it.at);
|
|
708
|
-
for (const p of it.parts) {
|
|
709
|
-
if (p.kind !== "text") continue;
|
|
710
|
-
const { requests } = vaultRequests(p.text);
|
|
711
|
-
if (!requests.length) continue;
|
|
712
|
-
const asks = requests.map((request) => ({ request, stored: false }));
|
|
713
|
-
out.set(p.id, asks);
|
|
714
|
-
asked.push(...asks.map((a) => [a, at]));
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
for (const m of inbox2) {
|
|
718
|
-
if (m.delivery !== "failed") stored(m.text, Date.parse(m.submittedAt));
|
|
719
|
-
}
|
|
720
|
-
for (const p of pending) stored(p.text);
|
|
721
|
-
return out;
|
|
722
|
-
}
|
|
723
|
-
const KEY$1 = "wheelhouse-chat-tags";
|
|
724
|
-
const FOLD_KEY = "wheelhouse-chat-fold";
|
|
725
|
-
const MAX = 1e3;
|
|
726
|
-
class ChatTags {
|
|
727
|
-
retags = {};
|
|
728
|
-
fold = false;
|
|
729
|
-
loaded = false;
|
|
730
|
-
load() {
|
|
731
|
-
if (this.loaded) return;
|
|
732
|
-
this.loaded = true;
|
|
733
|
-
try {
|
|
734
|
-
const v = JSON.parse(localStorage.getItem(KEY$1) ?? "{}");
|
|
735
|
-
if (v && typeof v === "object" && !Array.isArray(v)) this.retags = Object.fromEntries(Object.entries(v).filter((e) => typeof e[1] === "string"));
|
|
736
|
-
this.fold = localStorage.getItem(FOLD_KEY) === "1";
|
|
737
|
-
} catch {
|
|
738
|
-
this.retags = {};
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
/** Moves a message or card to a thread. */
|
|
742
|
-
move(key, topic) {
|
|
743
|
-
this.load();
|
|
744
|
-
const next = { ...this.retags };
|
|
745
|
-
delete next[key];
|
|
746
|
-
next[key] = topic;
|
|
747
|
-
const keys = Object.keys(next);
|
|
748
|
-
for (const k of keys.slice(0, Math.max(0, keys.length - MAX))) delete next[k];
|
|
749
|
-
this.retags = next;
|
|
750
|
-
try {
|
|
751
|
-
localStorage.setItem(KEY$1, JSON.stringify(next));
|
|
752
|
-
} catch {
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
setFold(on) {
|
|
756
|
-
this.fold = on;
|
|
757
|
-
try {
|
|
758
|
-
localStorage.setItem(FOLD_KEY, on ? "1" : "0");
|
|
759
|
-
} catch {
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
const chatTags = new ChatTags();
|
|
764
|
-
const KEY = "wheelhouse-chat-decisions";
|
|
765
|
-
class OpenedDecisions {
|
|
766
|
-
ids = [];
|
|
767
|
-
loaded = false;
|
|
768
|
-
load() {
|
|
769
|
-
if (this.loaded) return;
|
|
770
|
-
this.loaded = true;
|
|
771
|
-
try {
|
|
772
|
-
const v = JSON.parse(localStorage.getItem(KEY) ?? "[]");
|
|
773
|
-
if (Array.isArray(v)) this.ids = v.filter((x) => typeof x === "string");
|
|
774
|
-
} catch {
|
|
775
|
-
this.ids = [];
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
add(id) {
|
|
779
|
-
this.load();
|
|
780
|
-
if (this.ids.includes(id)) return;
|
|
781
|
-
this.ids = [...this.ids, id].slice(-50);
|
|
782
|
-
try {
|
|
783
|
-
localStorage.setItem(KEY, JSON.stringify(this.ids));
|
|
784
|
-
} catch {
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
const openedDecisions = new OpenedDecisions();
|
|
789
|
-
const ENDPOINT = "/api/firstmate/reactions";
|
|
790
|
-
const ids = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : null;
|
|
791
|
-
class Reactions {
|
|
792
|
-
liked = [];
|
|
793
|
-
seq = 0;
|
|
794
|
-
/** Reads the marks from the server again. */
|
|
795
|
-
async refresh() {
|
|
796
|
-
const n = ++this.seq;
|
|
797
|
-
try {
|
|
798
|
-
const res = await fetch(ENDPOINT);
|
|
799
|
-
const v = res.ok ? ids((await res.json()).liked) : null;
|
|
800
|
-
if (v && n === this.seq) this.liked = v;
|
|
801
|
-
} catch {
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
has(id) {
|
|
805
|
-
return this.liked.includes(id);
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
* Marks or unmarks a message at once and has the server keep it; a refused
|
|
809
|
-
* change is undone. True only when the server newly marked it.
|
|
810
|
-
*/
|
|
811
|
-
async set(id, on, token) {
|
|
812
|
-
this.mark(id, on);
|
|
813
|
-
const n = ++this.seq;
|
|
814
|
-
try {
|
|
815
|
-
const res = await fetch(ENDPOINT, {
|
|
816
|
-
method: "POST",
|
|
817
|
-
headers: { "content-type": "application/json", [SESSION_HEADER]: token },
|
|
818
|
-
body: JSON.stringify({ id, on })
|
|
819
|
-
});
|
|
820
|
-
if (res.ok) {
|
|
821
|
-
const data = await res.json().catch(() => null);
|
|
822
|
-
const v = ids(data?.liked);
|
|
823
|
-
if (v && n === this.seq) this.liked = v;
|
|
824
|
-
return on && data?.changed === true;
|
|
825
|
-
}
|
|
826
|
-
} catch {
|
|
827
|
-
}
|
|
828
|
-
if (n === this.seq) this.mark(id, !on);
|
|
829
|
-
return false;
|
|
830
|
-
}
|
|
831
|
-
mark(id, on) {
|
|
832
|
-
const rest = this.liked.filter((x) => x !== id);
|
|
833
|
-
this.liked = on ? [...rest, id] : rest;
|
|
834
|
-
}
|
|
835
|
-
/** Forgets the marks shown, as a fresh page does (for tests). */
|
|
836
|
-
reset() {
|
|
837
|
-
this.seq++;
|
|
838
|
-
this.liked = [];
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
const reactions = new Reactions();
|
|
842
|
-
const composerBus = { decision: null };
|
|
843
|
-
function Avatar($$renderer, $$props) {
|
|
844
|
-
let { class: className = "" } = $$props;
|
|
845
|
-
const SPOKES = [0, 45, 90, 135, 180, 225, 270, 315];
|
|
846
|
-
$$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><!--[-->`);
|
|
847
|
-
const each_array = ensure_array_like(SPOKES);
|
|
848
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
849
|
-
let a = each_array[$$index];
|
|
850
|
-
$$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>`);
|
|
851
|
-
}
|
|
852
|
-
$$renderer.push(`<!--]--></g><circle cx="16" cy="16" r="2.4" class="fill-primary-foreground"></circle><!--[-->`);
|
|
853
|
-
const each_array_1 = ensure_array_like(SPOKES);
|
|
854
|
-
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
855
|
-
let a = each_array_1[$$index_1];
|
|
856
|
-
$$renderer.push(`<circle cx="16" cy="5.2" r="1.3" class="fill-primary-foreground"${attr("transform", `rotate(${stringify(a)} 16 16)`)}></circle>`);
|
|
857
|
-
}
|
|
858
|
-
$$renderer.push(`<!--]--></svg>`);
|
|
859
|
-
}
|
|
860
|
-
function ChatApp($$renderer, $$props) {
|
|
861
|
-
$$renderer.component(($$renderer2) => {
|
|
862
|
-
let {
|
|
863
|
-
id,
|
|
864
|
-
app,
|
|
865
|
-
open = true
|
|
866
|
-
/** Whether the app is drawn: expanded unless the captain collapsed it. */
|
|
867
|
-
} = $$props;
|
|
868
|
-
const MAX_HEIGHT = 480;
|
|
869
|
-
$$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)}>`);
|
|
870
|
-
App_window($$renderer2, {
|
|
871
|
-
class: "size-4 shrink-0 text-muted-foreground",
|
|
872
|
-
"aria-hidden": "true"
|
|
873
|
-
});
|
|
874
|
-
$$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> `);
|
|
875
|
-
Chevron_right($$renderer2, {
|
|
876
|
-
class: `size-3.5 shrink-0 text-muted-foreground transition-transform ${open ? "rotate-90" : ""}`,
|
|
877
|
-
"aria-hidden": "true"
|
|
878
|
-
});
|
|
879
|
-
$$renderer2.push(`<!----></button> `);
|
|
880
|
-
if (open) {
|
|
881
|
-
$$renderer2.push(`<!--[0--><div class="border-t px-4 pt-3 pb-3">`);
|
|
882
|
-
AppFrame($$renderer2, {
|
|
883
|
-
ref: {},
|
|
884
|
-
title: app.title,
|
|
885
|
-
plugin: app.plugin,
|
|
886
|
-
maxHeight: MAX_HEIGHT
|
|
887
|
-
});
|
|
888
|
-
$$renderer2.push(`<!----></div>`);
|
|
889
|
-
} else {
|
|
890
|
-
$$renderer2.push("<!--[-1-->");
|
|
891
|
-
}
|
|
892
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
893
|
-
bind_props($$props, { open });
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
function ChatDecision($$renderer, $$props) {
|
|
897
|
-
$$renderer.component(($$renderer2) => {
|
|
898
|
-
let {
|
|
899
|
-
decision,
|
|
900
|
-
project = null,
|
|
901
|
-
now,
|
|
902
|
-
thread = null,
|
|
903
|
-
pending = [],
|
|
904
|
-
asked = null
|
|
905
|
-
} = $$props;
|
|
906
|
-
const KIND = {
|
|
907
|
-
review: "Review question",
|
|
908
|
-
decision: "Decision",
|
|
909
|
-
blocked: "Stuck",
|
|
910
|
-
hold: "Your call",
|
|
911
|
-
merge: "Merge call",
|
|
912
|
-
preview: "Preview sign-off"
|
|
913
|
-
};
|
|
914
|
-
const head2 = derived(() => decision.head);
|
|
915
|
-
const answer = derived(() => decision.answer);
|
|
916
|
-
const count = derived(() => (thread?.messages.length ?? 0) + pending.length);
|
|
917
|
-
const open = derived(() => count() > 0 && (!answer() && pending.length > 0));
|
|
918
|
-
let expanded = false;
|
|
919
|
-
let dismissing = false;
|
|
920
|
-
const card = derived(() => decision.card);
|
|
921
|
-
const token = derived(() => page.data.sessionToken ?? "");
|
|
922
|
-
const canAnswer = derived(() => inbox.view(page.data.inbox)?.canAnswer ?? false);
|
|
923
|
-
const refined = derived(() => refinedForm(thread, head2().question));
|
|
924
|
-
const parts = derived(() => byQuestion(thread, head2().question));
|
|
925
|
-
const plain = (s) => (s ?? "").replace(/[\s?.:]+$/, "").trim().toLowerCase();
|
|
926
|
-
const form = derived(() => {
|
|
927
|
-
const f = refined()?.form ?? asked ?? (card() ? cardForm(card()) : null);
|
|
928
|
-
return f && f.prompt && plain(f.prompt) === plain(head2().question) ? { ...f, prompt: null } : f;
|
|
929
|
-
});
|
|
930
|
-
const decided = derived(() => answer() ? decidedLabel(cardForm(card() ?? { kind: head2().kind, choices: null, recommendation: null }), answer()) : "");
|
|
931
|
-
const prLink = derived(() => card()?.evidence.pr ? pullRequests.review(card().projectId, card().evidence.pr) : null);
|
|
932
|
-
const quiet = "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";
|
|
933
|
-
const time2 = (at) => at ? new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) : "";
|
|
934
|
-
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");
|
|
935
|
-
function message($$renderer3, m, current) {
|
|
936
|
-
$$renderer3.push(`<li class="flex gap-2.5">`);
|
|
937
|
-
if (m.who === "firstmate") {
|
|
938
|
-
$$renderer3.push("<!--[0-->");
|
|
939
|
-
Avatar($$renderer3, { class: "mt-0.5 size-5" });
|
|
940
|
-
} else {
|
|
941
|
-
$$renderer3.push(`<!--[-1--><span class="captain-avatar mt-0.5 !size-5 !text-[0.7rem]">C</span>`);
|
|
942
|
-
}
|
|
943
|
-
$$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>`);
|
|
944
|
-
if (m.at) {
|
|
945
|
-
$$renderer3.push(`<!--[0-->· ${escape_html(time2(m.at))}`);
|
|
946
|
-
} else {
|
|
947
|
-
$$renderer3.push("<!--[-1-->");
|
|
948
|
-
}
|
|
949
|
-
$$renderer3.push(`<!--]--></p> `);
|
|
950
|
-
if (m.who === "firstmate") {
|
|
951
|
-
$$renderer3.push(`<!--[0--><div class="chat-md mt-0.5 text-sm">${html(markdown(withoutForm(m.text), { docLinks: true }))}</div> `);
|
|
952
|
-
if (current && formIn(m.text)) {
|
|
953
|
-
$$renderer3.push(`<!--[0--><p class="mt-0.5 text-xs text-muted-foreground">Firstmate updated the options above.</p>`);
|
|
954
|
-
} else {
|
|
955
|
-
$$renderer3.push("<!--[-1-->");
|
|
956
|
-
}
|
|
957
|
-
$$renderer3.push(`<!--]-->`);
|
|
958
|
-
} else {
|
|
959
|
-
$$renderer3.push(`<!--[-1--><p class="mt-0.5 text-sm leading-relaxed whitespace-pre-line">${escape_html(m.text)}</p>`);
|
|
960
|
-
}
|
|
961
|
-
$$renderer3.push(`<!--]--></div></li>`);
|
|
962
|
-
}
|
|
963
|
-
function talk($$renderer3) {
|
|
964
|
-
if (count()) {
|
|
965
|
-
$$renderer3.push(`<!--[0--><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())} title="What you and Firstmate said about it under this card before" data-discuss="">`);
|
|
966
|
-
Messages_square($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
|
|
967
|
-
$$renderer3.push(`<!---->Earlier talk<span class="text-xs tabular-nums">· ${escape_html(count())}</span></button>`);
|
|
968
|
-
} else {
|
|
969
|
-
$$renderer3.push("<!--[-1-->");
|
|
970
|
-
}
|
|
971
|
-
$$renderer3.push(`<!--]-->`);
|
|
972
|
-
}
|
|
973
|
-
$$renderer2.push(`<div class="flex w-full max-w-[min(100%,40rem)] scroll-mt-24 flex-col"${attr("data-chat-decision", decision.id)}>`);
|
|
974
|
-
if (card() && form() && !answer()) {
|
|
975
|
-
$$renderer2.push("<!--[0-->");
|
|
976
|
-
const mine = escalated(card());
|
|
977
|
-
const following = !!card().following;
|
|
978
|
-
$$renderer2.push(`<article${attr_class(`rounded-lg border border-l-[3px] bg-card px-4 pt-3.5 pb-3 sm:px-5 ${following ? "border-l-sea/50" : mine ? "border-l-sea" : "border-l-brass"}`)}${attr("data-open-decision", card().owner)}${attr("data-following", following || void 0)}><header class="flex flex-wrap items-center gap-x-2 gap-y-1">`);
|
|
979
|
-
if (project) {
|
|
980
|
-
$$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>`);
|
|
981
|
-
} else {
|
|
982
|
-
$$renderer2.push("<!--[-1-->");
|
|
983
|
-
}
|
|
984
|
-
$$renderer2.push(`<!--]--> `);
|
|
985
|
-
if (following) {
|
|
986
|
-
$$renderer2.push(`<!--[0--><span class="flex items-center gap-1 rounded bg-muted px-1.5 text-xs leading-[1.15rem] font-medium text-sea">`);
|
|
987
|
-
Messages_square($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
988
|
-
$$renderer2.push(`<!---->Following up</span>`);
|
|
989
|
-
} else {
|
|
990
|
-
$$renderer2.push(`<!--[-1--><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"}`)}>`);
|
|
991
|
-
Hand($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
992
|
-
$$renderer2.push(`<!---->${escape_html(KIND[card().kind])}</span>`);
|
|
993
|
-
}
|
|
994
|
-
$$renderer2.push(`<!--]--> <span class="text-xs text-muted-foreground">${escape_html(following ? "Following up with Firstmate separately" : mine ? "Waiting on you" : "Firstmate is handling it; yours to take over")}</span> `);
|
|
995
|
-
if (card().askedAt) {
|
|
996
|
-
$$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(card().askedAt, now))}</span>`);
|
|
997
|
-
} else {
|
|
998
|
-
$$renderer2.push("<!--[-1-->");
|
|
999
|
-
}
|
|
1000
|
-
$$renderer2.push(`<!--]--></header> <h3 class="mt-2 font-sans text-base leading-snug font-medium sm:text-[1.05rem]">`);
|
|
1001
|
-
LinkedText($$renderer2, { text: head2().question });
|
|
1002
|
-
$$renderer2.push(`<!----></h3> `);
|
|
1003
|
-
if (cardContext(card())) {
|
|
1004
|
-
$$renderer2.push(`<!--[0--><p class="mt-0.5 line-clamp-3 text-sm leading-snug text-muted-foreground" data-context="">`);
|
|
1005
|
-
LinkedText($$renderer2, { text: cardContext(card()) ?? "" });
|
|
1006
|
-
$$renderer2.push(`<!----></p>`);
|
|
1007
|
-
} else {
|
|
1008
|
-
$$renderer2.push("<!--[-1-->");
|
|
1009
|
-
}
|
|
1010
|
-
$$renderer2.push(`<!--]--> <p class="mt-0.5 text-xs text-muted-foreground">${escape_html(head2().taskTitle)}</p> `);
|
|
1011
|
-
DecisionLinks($$renderer2, { card: card() });
|
|
1012
|
-
$$renderer2.push(`<!----> `);
|
|
1013
|
-
if (card().recommendation) {
|
|
1014
|
-
$$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">· `);
|
|
1015
|
-
LinkedText($$renderer2, { text: card().recommendation.text });
|
|
1016
|
-
$$renderer2.push(`<!----></span></p>`);
|
|
1017
|
-
} else {
|
|
1018
|
-
$$renderer2.push("<!--[-1-->");
|
|
1019
|
-
}
|
|
1020
|
-
$$renderer2.push(`<!--]--> `);
|
|
1021
|
-
if (refined()) {
|
|
1022
|
-
$$renderer2.push(`<!--[0--><p class="mt-3 flex items-center gap-1.5 text-xs text-muted-foreground" data-refined="">`);
|
|
1023
|
-
Refresh_cw($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1024
|
-
$$renderer2.push(`<!---->Firstmate changed the options after your
|
|
1025
|
-
question.</p>`);
|
|
1026
|
-
} else {
|
|
1027
|
-
$$renderer2.push("<!--[-1-->");
|
|
1028
|
-
}
|
|
1029
|
-
$$renderer2.push(`<!--]--> <!---->`);
|
|
1030
|
-
{
|
|
1031
|
-
DecisionForm($$renderer2, {
|
|
1032
|
-
form: form(),
|
|
1033
|
-
name: decision.id,
|
|
1034
|
-
canAnswer: canAnswer(),
|
|
1035
|
-
onAnswer: (a, note) => answerWith(card(), a, note, token())
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
$$renderer2.push(`<!----> `);
|
|
1039
|
-
if (card().sent?.delivery === "failed" && !inbox.errors[card().id]) {
|
|
1040
|
-
$$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>`);
|
|
1041
|
-
} else {
|
|
1042
|
-
$$renderer2.push("<!--[-1-->");
|
|
1043
|
-
}
|
|
1044
|
-
$$renderer2.push(`<!--]--> `);
|
|
1045
|
-
if (inbox.errors[card().id]) {
|
|
1046
|
-
$$renderer2.push(`<!--[0--><p class="mt-2 text-sm text-danger" role="alert">${escape_html(inbox.errors[card().id])}</p>`);
|
|
1047
|
-
} else {
|
|
1048
|
-
$$renderer2.push("<!--[-1-->");
|
|
1049
|
-
}
|
|
1050
|
-
$$renderer2.push(`<!--]--> <div class="mt-2.5 flex flex-wrap items-center gap-1.5 border-t border-hair/70 pt-2"><a${attr("href", chatAboutHref(card()))}${attr_class(clsx(quiet))} title="Start a message to Firstmate about this; it waits as following up meanwhile" data-chat-about="">`);
|
|
1051
|
-
Message_square($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1052
|
-
$$renderer2.push(`<!---->Chat with Firstmate about this</a> `);
|
|
1053
|
-
if (following) {
|
|
1054
|
-
$$renderer2.push(`<!--[0--><button${attr_class(clsx(quiet))} title="It waits on you again, and counts as waiting" data-unfollow="">`);
|
|
1055
|
-
Undo_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1056
|
-
$$renderer2.push(`<!---->Back to waiting</button>`);
|
|
1057
|
-
} else {
|
|
1058
|
-
$$renderer2.push("<!--[-1-->");
|
|
1059
|
-
}
|
|
1060
|
-
$$renderer2.push(`<!--]--> `);
|
|
1061
|
-
talk($$renderer2);
|
|
1062
|
-
$$renderer2.push(`<!----> `);
|
|
1063
|
-
if (prLink()) {
|
|
1064
|
-
$$renderer2.push(`<!--[0--><a${attr_class(clsx(quiet))}${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="">`);
|
|
1065
|
-
Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1066
|
-
$$renderer2.push(`<!---->Review`);
|
|
1067
|
-
if (prLink().external) {
|
|
1068
|
-
$$renderer2.push("<!--[0-->");
|
|
1069
|
-
External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1070
|
-
} else {
|
|
1071
|
-
$$renderer2.push("<!--[-1-->");
|
|
1072
|
-
}
|
|
1073
|
-
$$renderer2.push(`<!--]--></a>`);
|
|
1074
|
-
} else {
|
|
1075
|
-
$$renderer2.push("<!--[-1-->");
|
|
1076
|
-
}
|
|
1077
|
-
$$renderer2.push(`<!--]--> <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 ml-auto"${attr("disabled", !canAnswer(), true)}${attr("aria-expanded", dismissing)} title="No answer needed: Firstmate records it closed, with your reason" data-dismiss="">`);
|
|
1078
|
-
X($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1079
|
-
$$renderer2.push(`<!---->Dismiss</button></div> `);
|
|
1080
|
-
{
|
|
1081
|
-
$$renderer2.push("<!--[-1-->");
|
|
1082
|
-
}
|
|
1083
|
-
$$renderer2.push(`<!--]--> `);
|
|
1084
|
-
DecisionDetails($$renderer2, { card: card(), expanded, onToggle: () => expanded = !expanded });
|
|
1085
|
-
$$renderer2.push(`<!----></article>`);
|
|
1086
|
-
} else if (answer()) {
|
|
1087
|
-
$$renderer2.push("<!--[1-->");
|
|
1088
|
-
const closed = answer().choice === "close";
|
|
1089
|
-
$$renderer2.push(`<article${attr_class(`rounded-lg border border-l-[3px] bg-card px-4 pt-3 pb-2 sm:px-5 ${closed ? "border-l-hair" : "border-l-success/70"}`)}${attr("data-answered", closed ? "dismissed" : "answered")}><header class="flex flex-wrap items-center gap-x-2 gap-y-1">`);
|
|
1090
|
-
if (project) {
|
|
1091
|
-
$$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>`);
|
|
1092
|
-
} else {
|
|
1093
|
-
$$renderer2.push("<!--[-1-->");
|
|
1094
|
-
}
|
|
1095
|
-
$$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> `);
|
|
1096
|
-
if (closed) {
|
|
1097
|
-
$$renderer2.push(`<!--[0--><span class="flex items-center gap-1 text-xs text-muted-foreground">`);
|
|
1098
|
-
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1099
|
-
$$renderer2.push(`<!---->Dismissed</span>`);
|
|
1100
|
-
} else {
|
|
1101
|
-
$$renderer2.push(`<!--[-1--><span class="flex items-center gap-1 text-xs text-success">`);
|
|
1102
|
-
Circle_check($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1103
|
-
$$renderer2.push(`<!---->Answered</span>`);
|
|
1104
|
-
}
|
|
1105
|
-
$$renderer2.push(`<!--]--> `);
|
|
1106
|
-
if (answer().at) {
|
|
1107
|
-
$$renderer2.push(`<!--[0--><span class="ml-auto text-xs text-muted-foreground tabular-nums">${escape_html(ago(answer().at, now))}</span>`);
|
|
1108
|
-
} else {
|
|
1109
|
-
$$renderer2.push("<!--[-1-->");
|
|
1110
|
-
}
|
|
1111
|
-
$$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="">`);
|
|
1112
|
-
if (closed) {
|
|
1113
|
-
$$renderer2.push(`<!--[0-->You dismissed it without an answer`);
|
|
1114
|
-
} else {
|
|
1115
|
-
$$renderer2.push(`<!--[-1-->You decided <span class="font-semibold">${escape_html(decided())}</span>`);
|
|
1116
|
-
}
|
|
1117
|
-
$$renderer2.push(`<!--]--></p> `);
|
|
1118
|
-
if (answer().note) {
|
|
1119
|
-
$$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(closed ? `Why: ${answer().note}` : answer().note)}</p>`);
|
|
1120
|
-
} else {
|
|
1121
|
-
$$renderer2.push("<!--[-1-->");
|
|
1122
|
-
}
|
|
1123
|
-
$$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">`);
|
|
1124
|
-
if (answer().delivery === "sending") {
|
|
1125
|
-
$$renderer2.push("<!--[0-->");
|
|
1126
|
-
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1127
|
-
} else {
|
|
1128
|
-
$$renderer2.push("<!--[-1-->");
|
|
1129
|
-
}
|
|
1130
|
-
$$renderer2.push(`<!--]-->${escape_html(delivered())}${escape_html(answer().at ? ` · ${time2(answer().at)}` : "")}</span> <span class="ml-auto">`);
|
|
1131
|
-
talk($$renderer2);
|
|
1132
|
-
$$renderer2.push(`<!----></span></div></article>`);
|
|
1133
|
-
} else {
|
|
1134
|
-
$$renderer2.push("<!--[-1-->");
|
|
1135
|
-
}
|
|
1136
|
-
$$renderer2.push(`<!--]--> `);
|
|
1137
|
-
if (open()) {
|
|
1138
|
-
$$renderer2.push(`<!--[0--><div class="mt-1 ml-4 border-l-2 border-hair pt-2 pl-4" role="region" aria-label="What was said about this question before" data-discussion="">`);
|
|
1139
|
-
if (thread?.messages.length || pending.length) {
|
|
1140
|
-
$$renderer2.push(`<!--[0--><ul class="flex flex-col gap-3 pb-1"><!--[-->`);
|
|
1141
|
-
const each_array = ensure_array_like(parts().earlier);
|
|
1142
|
-
for (let i = 0, $$length = each_array.length; i < $$length; i++) {
|
|
1143
|
-
let e = each_array[i];
|
|
1144
|
-
$$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"><!--[-->`);
|
|
1145
|
-
const each_array_1 = ensure_array_like(e.messages);
|
|
1146
|
-
for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
|
|
1147
|
-
let m = each_array_1[$$index];
|
|
1148
|
-
message($$renderer2, m, false);
|
|
1149
|
-
}
|
|
1150
|
-
$$renderer2.push(`<!--]--></ul></details></li>`);
|
|
1151
|
-
}
|
|
1152
|
-
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1153
|
-
const each_array_2 = ensure_array_like(parts().current);
|
|
1154
|
-
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
1155
|
-
let m = each_array_2[$$index_2];
|
|
1156
|
-
message($$renderer2, m, true);
|
|
1157
|
-
}
|
|
1158
|
-
$$renderer2.push(`<!--]--> <!--[-->`);
|
|
1159
|
-
const each_array_3 = ensure_array_like(pending);
|
|
1160
|
-
for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
|
|
1161
|
-
let p = each_array_3[$$index_3];
|
|
1162
|
-
$$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">`);
|
|
1163
|
-
if (p.pending.state === "failed") {
|
|
1164
|
-
$$renderer2.push("<!--[0-->");
|
|
1165
|
-
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1166
|
-
$$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">`);
|
|
1167
|
-
Rotate_cw($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1168
|
-
$$renderer2.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
|
|
1169
|
-
} else {
|
|
1170
|
-
$$renderer2.push("<!--[-1-->");
|
|
1171
|
-
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1172
|
-
$$renderer2.push(`<!---->${escape_html(pendingLabel(p.pending))}`);
|
|
1173
|
-
}
|
|
1174
|
-
$$renderer2.push(`<!--]--></p></div></li>`);
|
|
1175
|
-
}
|
|
1176
|
-
$$renderer2.push(`<!--]--></ul>`);
|
|
1177
|
-
} else {
|
|
1178
|
-
$$renderer2.push(`<!--[-1--><p class="text-xs text-muted-foreground">Nothing was said about it here.</p>`);
|
|
1179
|
-
}
|
|
1180
|
-
$$renderer2.push(`<!--]--> `);
|
|
1181
|
-
if (thread?.answering) {
|
|
1182
|
-
$$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>`);
|
|
1183
|
-
} else {
|
|
1184
|
-
$$renderer2.push("<!--[-1-->");
|
|
1185
|
-
}
|
|
1186
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
1187
|
-
} else {
|
|
1188
|
-
$$renderer2.push("<!--[-1-->");
|
|
1189
|
-
}
|
|
1190
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
function FeedbackBatch($$renderer, $$props) {
|
|
1194
|
-
$$renderer.component(($$renderer2) => {
|
|
1195
|
-
let { batch, project = null } = $$props;
|
|
1196
|
-
const time2 = (at) => new Date(at).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
1197
|
-
const settled = derived(() => batch.status.startsWith("Firstmate has it"));
|
|
1198
|
-
const waiting = derived(() => !batch.failed && !settled() && batch.status !== "Sent to Firstmate");
|
|
1199
|
-
const from = derived(() => batch.batch.plugin);
|
|
1200
|
-
const label = derived(() => from() ? `${from().name} feedback` : "preview feedback");
|
|
1201
|
-
$$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">`);
|
|
1202
|
-
if (from()) {
|
|
1203
|
-
$$renderer2.push("<!--[0-->");
|
|
1204
|
-
Puzzle($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1205
|
-
} else {
|
|
1206
|
-
$$renderer2.push("<!--[-1-->");
|
|
1207
|
-
Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1208
|
-
}
|
|
1209
|
-
$$renderer2.push(`<!--]-->To Firstmate · ${escape_html(label())}</span> `);
|
|
1210
|
-
if (project) {
|
|
1211
|
-
$$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>`);
|
|
1212
|
-
} else {
|
|
1213
|
-
$$renderer2.push("<!--[-1-->");
|
|
1214
|
-
}
|
|
1215
|
-
$$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> `);
|
|
1216
|
-
if (from()?.subject) {
|
|
1217
|
-
$$renderer2.push(`<!--[0--><p class="mt-0.5 text-xs text-muted-foreground">About ${escape_html(from().subject)}</p>`);
|
|
1218
|
-
} else {
|
|
1219
|
-
$$renderer2.push("<!--[-1-->");
|
|
1220
|
-
}
|
|
1221
|
-
$$renderer2.push(`<!--]--> <ol class="mt-2 list-decimal space-y-1.5 pl-5 text-sm leading-snug"><!--[-->`);
|
|
1222
|
-
const each_array = ensure_array_like(batch.batch.items);
|
|
1223
|
-
for (let i = 0, $$length = each_array.length; i < $$length; i++) {
|
|
1224
|
-
let it = each_array[i];
|
|
1225
|
-
$$renderer2.push(`<li>${escape_html(it.text)} `);
|
|
1226
|
-
if (it.points) {
|
|
1227
|
-
$$renderer2.push(`<!--[0--><span class="mt-0.5 block text-xs text-muted-foreground">Points at ${escape_html(it.points)}</span>`);
|
|
1228
|
-
} else {
|
|
1229
|
-
$$renderer2.push("<!--[-1-->");
|
|
1230
|
-
}
|
|
1231
|
-
$$renderer2.push(`<!--]--></li>`);
|
|
1232
|
-
}
|
|
1233
|
-
$$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">`);
|
|
1234
|
-
if (batch.failed) {
|
|
1235
|
-
$$renderer2.push("<!--[0-->");
|
|
1236
|
-
Circle_x($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1237
|
-
} else if (waiting()) {
|
|
1238
|
-
$$renderer2.push("<!--[1-->");
|
|
1239
|
-
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1240
|
-
} else {
|
|
1241
|
-
$$renderer2.push("<!--[-1-->");
|
|
1242
|
-
Circle_check($$renderer2, { class: "size-3.5 text-success", "aria-hidden": "true" });
|
|
1243
|
-
}
|
|
1244
|
-
$$renderer2.push(`<!--]-->${escape_html(batch.status)}</p> `);
|
|
1245
|
-
if (batch.reply) {
|
|
1246
|
-
$$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>`);
|
|
1247
|
-
} else {
|
|
1248
|
-
$$renderer2.push("<!--[-1-->");
|
|
1249
|
-
}
|
|
1250
|
-
$$renderer2.push(`<!--]--></div></div></article>`);
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
const STATUS = {
|
|
1254
|
-
sending: "Sending to Firstmate…",
|
|
1255
|
-
uncertain: "Confirming Firstmate has it…",
|
|
1256
|
-
"saved-unannounced": "Saved; Firstmate reads it at its next check",
|
|
1257
|
-
delivered: "Sent to Firstmate",
|
|
1258
|
-
failed: "Not delivered"
|
|
1259
|
-
};
|
|
1260
|
-
function chatBatches(messages) {
|
|
1261
|
-
const out = [];
|
|
1262
|
-
for (const m of messages) {
|
|
1263
|
-
const batch = parseBatch(m.text);
|
|
1264
|
-
if (!batch) continue;
|
|
1265
|
-
out.push({
|
|
1266
|
-
id: m.requestId,
|
|
1267
|
-
at: m.submittedAt,
|
|
1268
|
-
batch,
|
|
1269
|
-
status: m.delivery === "delivered" && m.acknowledged ? "Firstmate has it and passes it to the same task" : STATUS[m.delivery],
|
|
1270
|
-
failed: m.delivery === "failed",
|
|
1271
|
-
reply: m.reply?.body ?? null
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
return out;
|
|
1275
|
-
}
|
|
1276
|
-
function placeBatches(items, batches) {
|
|
1277
|
-
const before = /* @__PURE__ */ new Map();
|
|
1278
|
-
const end = [];
|
|
1279
|
-
const times = items.map((it) => Date.parse(it.at));
|
|
1280
|
-
const first = times.find((t) => !Number.isNaN(t));
|
|
1281
|
-
for (const b of batches) {
|
|
1282
|
-
const at = Date.parse(b.at);
|
|
1283
|
-
if (first !== void 0 && at < first) continue;
|
|
1284
|
-
const i = times.findIndex((t) => !Number.isNaN(t) && t > at);
|
|
1285
|
-
if (i < 0) end.push(b);
|
|
1286
|
-
else before.set(i, [...before.get(i) ?? [], b]);
|
|
1287
|
-
}
|
|
1288
|
-
return { before, end };
|
|
1289
|
-
}
|
|
1290
|
-
function ChatPreview($$renderer, $$props) {
|
|
1291
|
-
$$renderer.component(($$renderer2) => {
|
|
1292
|
-
let { preview, project = null, now } = $$props;
|
|
1293
|
-
const task = derived(() => preview.task);
|
|
1294
|
-
const url = derived(() => task() ? task().preview?.url ?? task().board?.url ?? null : preview.url);
|
|
1295
|
-
const key = derived(() => task()?.preview ? task().id : urlKey(url() ?? ""));
|
|
1296
|
-
const byTask = derived(() => !!task()?.preview);
|
|
1297
|
-
const check = derived(() => previewChecks.checks[key()] ?? null);
|
|
1298
|
-
const checked = derived(() => check()?.state ?? null);
|
|
1299
|
-
const stopped = derived(() => checked() === "down");
|
|
1300
|
-
const shown = derived(() => check()?.url ?? url());
|
|
1301
|
-
const board = derived(() => task()?.preview && task().board && !reviewSurface() ? task().board.url : null);
|
|
1302
|
-
const title = derived(() => task()?.shortTitle ?? (preview.board ? "Review board" : URL.parse(url() ?? "")?.host ?? "Preview"));
|
|
1303
|
-
const action = derived(() => shown() && checked() === "live" ? {
|
|
1304
|
-
url: shown(),
|
|
1305
|
-
taskId: task()?.id ?? null,
|
|
1306
|
-
title: task()?.shortTitle ?? null,
|
|
1307
|
-
projectId: task()?.projectId ?? null,
|
|
1308
|
-
board: preview.board
|
|
1309
|
-
} : null);
|
|
1310
|
-
const prLink = derived(() => task()?.pr ? pullRequests.review(task().projectId, task().pr) : null);
|
|
1311
|
-
let full = false;
|
|
1312
|
-
let from = null;
|
|
1313
|
-
function open() {
|
|
1314
|
-
from = null;
|
|
1315
|
-
full = true;
|
|
1316
|
-
}
|
|
1317
|
-
const CHECKS = {
|
|
1318
|
-
green: {
|
|
1319
|
-
icon: Circle_check,
|
|
1320
|
-
text: "Checks passed",
|
|
1321
|
-
tone: "text-success"
|
|
1322
|
-
},
|
|
1323
|
-
pending: {
|
|
1324
|
-
icon: Circle_dashed,
|
|
1325
|
-
text: "Checks running",
|
|
1326
|
-
tone: "text-muted-foreground"
|
|
1327
|
-
},
|
|
1328
|
-
red: { icon: Circle_x, text: "Checks failed", tone: "text-danger" }
|
|
1329
|
-
};
|
|
1330
|
-
const checks = derived(() => task()?.pipeline?.ci ? CHECKS[task().pipeline.ci] : null);
|
|
1331
|
-
const reported = derived(() => task()?.preview?.reportedAt ?? task()?.board?.reportedAt ?? null);
|
|
1332
|
-
const at = derived(() => preview.landed ? task()?.mergedAt ?? reported() : reported());
|
|
1333
|
-
$$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"}`)}>`);
|
|
1334
|
-
if (preview.landed) {
|
|
1335
|
-
$$renderer2.push("<!--[0-->");
|
|
1336
|
-
Git_merge($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1337
|
-
$$renderer2.push(`<!---->Landed`);
|
|
1338
|
-
} else if (stopped()) {
|
|
1339
|
-
$$renderer2.push("<!--[1-->");
|
|
1340
|
-
Monitor_off($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1341
|
-
$$renderer2.push(`<!---->${escape_html(preview.board ? "Board stopped" : "Preview stopped")}`);
|
|
1342
|
-
} else if (preview.board) {
|
|
1343
|
-
$$renderer2.push("<!--[2-->");
|
|
1344
|
-
Layout_dashboard($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1345
|
-
$$renderer2.push(`<!---->Review board`);
|
|
1346
|
-
} else {
|
|
1347
|
-
$$renderer2.push("<!--[-1-->");
|
|
1348
|
-
Monitor_play($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1349
|
-
$$renderer2.push(`<!---->Live preview`);
|
|
1350
|
-
}
|
|
1351
|
-
$$renderer2.push(`<!--]--></span> `);
|
|
1352
|
-
if (project) {
|
|
1353
|
-
$$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>`);
|
|
1354
|
-
} else {
|
|
1355
|
-
$$renderer2.push("<!--[-1-->");
|
|
1356
|
-
}
|
|
1357
|
-
$$renderer2.push(`<!--]--> `);
|
|
1358
|
-
if (task()) {
|
|
1359
|
-
$$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>`);
|
|
1360
|
-
} else {
|
|
1361
|
-
$$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>`);
|
|
1362
|
-
}
|
|
1363
|
-
$$renderer2.push(`<!--]--> `);
|
|
1364
|
-
if (at()) {
|
|
1365
|
-
$$renderer2.push(`<!--[0--><span class="ml-auto shrink-0 text-xs text-muted-foreground tabular-nums">${escape_html(ago(at(), now))}</span>`);
|
|
1366
|
-
} else {
|
|
1367
|
-
$$renderer2.push("<!--[-1-->");
|
|
1368
|
-
}
|
|
1369
|
-
$$renderer2.push(`<!--]--></header> <div class="border-y border-hair">`);
|
|
1370
|
-
if (byTask()) {
|
|
1371
|
-
$$renderer2.push("<!--[0-->");
|
|
1372
|
-
LivePreview($$renderer2, {
|
|
1373
|
-
taskId: task()?.id,
|
|
1374
|
-
compact: true,
|
|
1375
|
-
toolbar: false,
|
|
1376
|
-
onopen: open
|
|
1377
|
-
});
|
|
1378
|
-
} else {
|
|
1379
|
-
$$renderer2.push("<!--[-1-->");
|
|
1380
|
-
LivePreview($$renderer2, { url: url(), compact: true, toolbar: false, onopen: open });
|
|
1381
|
-
}
|
|
1382
|
-
$$renderer2.push(`<!--]--></div> <footer class="flex flex-wrap items-center gap-x-3 gap-y-1 px-4 py-2 text-xs">`);
|
|
1383
|
-
if (task()?.pr) {
|
|
1384
|
-
$$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">`);
|
|
1385
|
-
if (preview.landed) {
|
|
1386
|
-
$$renderer2.push("<!--[0-->");
|
|
1387
|
-
Git_merge($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1388
|
-
} else {
|
|
1389
|
-
$$renderer2.push("<!--[-1-->");
|
|
1390
|
-
Git_pull_request($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1391
|
-
}
|
|
1392
|
-
$$renderer2.push(`<!--]--><span class="truncate">${escape_html(task().pr.number ? `Pull request #${task().pr.number}` : "Pull request")}</span></a>`);
|
|
1393
|
-
} else {
|
|
1394
|
-
$$renderer2.push("<!--[-1-->");
|
|
1395
|
-
}
|
|
1396
|
-
$$renderer2.push(`<!--]--> `);
|
|
1397
|
-
if (checks()) {
|
|
1398
|
-
$$renderer2.push(`<!--[0--><span${attr_class(`inline-flex items-center gap-1 ${stringify(checks().tone)}`)}>`);
|
|
1399
|
-
if (checks().icon) {
|
|
1400
|
-
$$renderer2.push("<!--[-->");
|
|
1401
|
-
checks().icon($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1402
|
-
$$renderer2.push("<!--]-->");
|
|
1403
|
-
} else {
|
|
1404
|
-
$$renderer2.push("<!--[!-->");
|
|
1405
|
-
$$renderer2.push("<!--]-->");
|
|
1406
|
-
}
|
|
1407
|
-
$$renderer2.push(`${escape_html(checks().text)}</span>`);
|
|
1408
|
-
} else {
|
|
1409
|
-
$$renderer2.push("<!--[-1-->");
|
|
1410
|
-
}
|
|
1411
|
-
$$renderer2.push(`<!--]--> `);
|
|
1412
|
-
if (board()) {
|
|
1413
|
-
$$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="">`);
|
|
1414
|
-
Layout_dashboard($$renderer2, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
1415
|
-
$$renderer2.push(`<!----><span class="truncate">Open the board</span></a>`);
|
|
1416
|
-
} else {
|
|
1417
|
-
$$renderer2.push("<!--[-1-->");
|
|
1418
|
-
}
|
|
1419
|
-
$$renderer2.push(`<!--]--> <span class="ml-auto flex flex-wrap items-center justify-end gap-1">`);
|
|
1420
|
-
if (action()) {
|
|
1421
|
-
$$renderer2.push("<!--[0-->");
|
|
1422
|
-
PreviewActions($$renderer2, { preview: action() });
|
|
1423
|
-
} else {
|
|
1424
|
-
$$renderer2.push("<!--[-1-->");
|
|
1425
|
-
}
|
|
1426
|
-
$$renderer2.push(`<!--]--> `);
|
|
1427
|
-
if (prLink() && !prLink().external) {
|
|
1428
|
-
$$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="">`);
|
|
1429
|
-
Compass($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1430
|
-
$$renderer2.push(`<!---->Review</a>`);
|
|
1431
|
-
} else {
|
|
1432
|
-
$$renderer2.push("<!--[-1-->");
|
|
1433
|
-
}
|
|
1434
|
-
$$renderer2.push(`<!--]--> `);
|
|
1435
|
-
if (checked() === "live") {
|
|
1436
|
-
$$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">`);
|
|
1437
|
-
Maximize_2($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1438
|
-
$$renderer2.push(`<!---->Full size</button>`);
|
|
1439
|
-
} else {
|
|
1440
|
-
$$renderer2.push("<!--[-1-->");
|
|
1441
|
-
}
|
|
1442
|
-
$$renderer2.push(`<!--]--> `);
|
|
1443
|
-
if (shown() && (checked() === "live" || checked() === "blocked")) {
|
|
1444
|
-
$$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`);
|
|
1445
|
-
External_link($$renderer2, { class: "size-3.5", "aria-hidden": "true" });
|
|
1446
|
-
$$renderer2.push(`<!----></a>`);
|
|
1447
|
-
} else {
|
|
1448
|
-
$$renderer2.push("<!--[-1-->");
|
|
1449
|
-
}
|
|
1450
|
-
$$renderer2.push(`<!--]--></span></footer></div> `);
|
|
1451
|
-
if (full && url()) {
|
|
1452
|
-
$$renderer2.push("<!--[0-->");
|
|
1453
|
-
PreviewStudio($$renderer2, {
|
|
1454
|
-
taskId: byTask() ? task()?.id ?? null : null,
|
|
1455
|
-
title: title(),
|
|
1456
|
-
url: url(),
|
|
1457
|
-
talk: !preview.landed,
|
|
1458
|
-
board: preview.board,
|
|
1459
|
-
from,
|
|
1460
|
-
onclose: () => full = false
|
|
1461
|
-
});
|
|
1462
|
-
} else {
|
|
1463
|
-
$$renderer2.push("<!--[-1-->");
|
|
1464
|
-
}
|
|
1465
|
-
$$renderer2.push(`<!--]-->`);
|
|
1466
|
-
});
|
|
1467
|
-
}
|
|
1468
|
-
function AttachedFiles($$renderer, $$props) {
|
|
1469
|
-
$$renderer.component(($$renderer2) => {
|
|
1470
|
-
if (
|
|
1471
|
-
/**
|
|
1472
|
-
* The files waiting to go with the message, under the text in the composer:
|
|
1473
|
-
* one hairline-ruled row each, with a thumbnail for an image, its kind and
|
|
1474
|
-
* size (or how far it has uploaded, or why it failed) and a way to remove it.
|
|
1475
|
-
*/
|
|
1476
|
-
attachments.drafts.length
|
|
1477
|
-
) {
|
|
1478
|
-
$$renderer2.push(`<!--[0--><ul class="mx-2 mb-1 flex flex-col divide-y divide-hair border-t border-hair" aria-label="Attached files"><!--[-->`);
|
|
1479
|
-
const each_array = ensure_array_like(attachments.drafts);
|
|
1480
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1481
|
-
let d = each_array[$$index];
|
|
1482
|
-
$$renderer2.push(`<li class="flex items-center gap-2.5 px-1.5 py-1.5 text-sm"${attr("data-attachment", d.state)}>`);
|
|
1483
|
-
if (d.preview) {
|
|
1484
|
-
$$renderer2.push(`<!--[0--><img${attr("src", d.preview)} alt="" class="size-7 shrink-0 rounded border border-hair object-cover"/>`);
|
|
1485
|
-
} else {
|
|
1486
|
-
$$renderer2.push(`<!--[-1--><span class="flex size-7 shrink-0 items-center justify-center rounded bg-sea/10 text-sea" aria-hidden="true">`);
|
|
1487
|
-
File_text($$renderer2, { class: "size-3.5" });
|
|
1488
|
-
$$renderer2.push(`<!----></span>`);
|
|
1489
|
-
}
|
|
1490
|
-
$$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)}>`);
|
|
1491
|
-
if (d.state === "uploading") {
|
|
1492
|
-
$$renderer2.push("<!--[0-->");
|
|
1493
|
-
Loader_circle($$renderer2, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
1494
|
-
$$renderer2.push(`<!---->Uploading ${escape_html(Math.round(d.progress * 100))}%`);
|
|
1495
|
-
} else if (d.state === "failed") {
|
|
1496
|
-
$$renderer2.push("<!--[1-->");
|
|
1497
|
-
Circle_alert($$renderer2, { class: "size-3", "aria-hidden": "true" });
|
|
1498
|
-
$$renderer2.push(`<!---->${escape_html(d.error)}`);
|
|
1499
|
-
} else {
|
|
1500
|
-
$$renderer2.push(`<!--[-1-->${escape_html(kindLabel(d))} · ${escape_html(fileSize(d.size))}`);
|
|
1501
|
-
}
|
|
1502
|
-
$$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">`);
|
|
1503
|
-
X($$renderer2, { class: "size-3.5" });
|
|
1504
|
-
$$renderer2.push(`<!----></button></li>`);
|
|
1505
|
-
}
|
|
1506
|
-
$$renderer2.push(`<!--]--></ul>`);
|
|
1507
|
-
} else {
|
|
1508
|
-
$$renderer2.push("<!--[-1-->");
|
|
1509
|
-
}
|
|
1510
|
-
$$renderer2.push(`<!--]-->`);
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
function Composer($$renderer, $$props) {
|
|
1514
|
-
$$renderer.component(($$renderer2) => {
|
|
1515
|
-
let {
|
|
1516
|
-
via,
|
|
1517
|
-
reason,
|
|
1518
|
-
working,
|
|
1519
|
-
held = null,
|
|
1520
|
-
reply = null,
|
|
1521
|
-
thread = null,
|
|
1522
|
-
threads: threads2 = [],
|
|
1523
|
-
onvault
|
|
1524
|
-
/** session: typed into Wheelhouse's session; inbox: Firstmate's inbox; null: nowhere. */
|
|
1525
|
-
/** Why typing is off, shown in place of the placeholder. */
|
|
1526
|
-
/** Why sending waits for now (a menu is open in the session), or null. */
|
|
1527
|
-
/** The message being replied to, or null. */
|
|
1528
|
-
/** The thread the chat is reading, which messages are sent in, or null. */
|
|
1529
|
-
/** The threads a message can be sent in instead. */
|
|
1530
|
-
/** Open the Add a secret popup; no key button without it. */
|
|
1531
|
-
} = $$props;
|
|
1532
|
-
let chosen = void 0;
|
|
1533
|
-
const threadTopic = derived(() => thread?.topic ?? null);
|
|
1534
|
-
const sendIn = derived(() => threadTopic());
|
|
1535
|
-
const sendInName = derived(() => sendIn() ? (threads2.find((t) => t.topic === sendIn()) ?? thread)?.name ?? sendIn() : null);
|
|
1536
|
-
const sendInHue = derived(() => sendIn() ? (threads2.find((t) => t.topic === sendIn()) ?? thread)?.hue ?? null : null);
|
|
1537
|
-
const canSend = derived(() => via !== null);
|
|
1538
|
-
let editor = void 0;
|
|
1539
|
-
let empty = true;
|
|
1540
|
-
let dictating = false;
|
|
1541
|
-
let extrasOpen = false;
|
|
1542
|
-
let stopping = false;
|
|
1543
|
-
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.");
|
|
1544
|
-
const shortPlaceholder = derived(() => via === "session" ? "Message Firstmate" : via === "inbox" ? "Message Firstmate’s inbox" : reason ?? "Firstmate is not running here.");
|
|
1545
|
-
const sendable = derived(() => attachments.ready);
|
|
1546
|
-
let $$settled = true;
|
|
1547
|
-
let $$inner_renderer;
|
|
1548
|
-
function $$render_inner($$renderer3) {
|
|
1549
|
-
$$renderer3.push(`<div class="relative">`);
|
|
1550
|
-
{
|
|
1551
|
-
$$renderer3.push("<!--[-1-->");
|
|
1552
|
-
}
|
|
1553
|
-
$$renderer3.push(`<!--]--> `);
|
|
1554
|
-
if (sendIn() || thread && chosen === null) {
|
|
1555
|
-
$$renderer3.push(`<!--[0--><div class="mb-1.5 flex items-center gap-1.5 text-xs text-muted-foreground" data-send-in="">`);
|
|
1556
|
-
if (sendIn()) {
|
|
1557
|
-
$$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">`);
|
|
1558
|
-
X($$renderer3, { class: "size-3.5" });
|
|
1559
|
-
$$renderer3.push(`<!----></button>`);
|
|
1560
|
-
} else if (thread) {
|
|
1561
|
-
$$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>`);
|
|
1562
|
-
} else {
|
|
1563
|
-
$$renderer3.push("<!--[-1-->");
|
|
1564
|
-
}
|
|
1565
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
1566
|
-
} else {
|
|
1567
|
-
$$renderer3.push("<!--[-1-->");
|
|
1568
|
-
}
|
|
1569
|
-
$$renderer3.push(`<!--]--> `);
|
|
1570
|
-
if (reply) {
|
|
1571
|
-
$$renderer3.push(`<!--[0--><div class="reply-draft" role="group" aria-label="Replying to a message">`);
|
|
1572
|
-
Reply($$renderer3, { class: "size-4 shrink-0 text-sea", "aria-hidden": "true" });
|
|
1573
|
-
$$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)">`);
|
|
1574
|
-
X($$renderer3, { class: "size-4" });
|
|
1575
|
-
$$renderer3.push(`<!----></button></div>`);
|
|
1576
|
-
} else {
|
|
1577
|
-
$$renderer3.push("<!--[-1-->");
|
|
1578
|
-
}
|
|
1579
|
-
$$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">`);
|
|
1580
|
-
Plus($$renderer3, { class: "size-5" });
|
|
1581
|
-
$$renderer3.push(`<!----></button> `);
|
|
1582
|
-
{
|
|
1583
|
-
$$renderer3.push("<!--[-1-->");
|
|
1584
|
-
}
|
|
1585
|
-
$$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">`);
|
|
1586
|
-
Paperclip($$renderer3, { class: "size-4" });
|
|
1587
|
-
$$renderer3.push(`<!----></button> `);
|
|
1588
|
-
if (onvault) {
|
|
1589
|
-
$$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">`);
|
|
1590
|
-
Key_round($$renderer3, { class: "size-4" });
|
|
1591
|
-
$$renderer3.push(`<!----></button>`);
|
|
1592
|
-
} else {
|
|
1593
|
-
$$renderer3.push("<!--[-1-->");
|
|
1594
|
-
}
|
|
1595
|
-
$$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" : ""}`)}>`);
|
|
1596
|
-
MicButton($$renderer3, {
|
|
1597
|
-
field: editor,
|
|
1598
|
-
target: () => editableTarget(editor),
|
|
1599
|
-
label: "Dictate a message",
|
|
1600
|
-
disabled: !canSend(),
|
|
1601
|
-
get listening() {
|
|
1602
|
-
return dictating;
|
|
1603
|
-
},
|
|
1604
|
-
set listening($$value) {
|
|
1605
|
-
dictating = $$value;
|
|
1606
|
-
$$settled = false;
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
$$renderer3.push(`<!----></div> `);
|
|
1610
|
-
if (working && empty && !attachments.drafts.length && via === "session") {
|
|
1611
|
-
$$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">`);
|
|
1612
|
-
{
|
|
1613
|
-
$$renderer3.push("<!--[-1-->");
|
|
1614
|
-
Square($$renderer3, { class: "size-3.5 fill-current" });
|
|
1615
|
-
}
|
|
1616
|
-
$$renderer3.push(`<!--]--></button>`);
|
|
1617
|
-
} else {
|
|
1618
|
-
$$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`)}>`);
|
|
1619
|
-
Arrow_up($$renderer3, { class: "size-4" });
|
|
1620
|
-
$$renderer3.push(`<!----></button>`);
|
|
1621
|
-
}
|
|
1622
|
-
$$renderer3.push(`<!--]--></div> `);
|
|
1623
|
-
AttachedFiles($$renderer3);
|
|
1624
|
-
$$renderer3.push(`<!----></div> `);
|
|
1625
|
-
if (held) {
|
|
1626
|
-
$$renderer3.push(`<!--[1--><p class="mt-2 text-xs text-muted-foreground" data-held="">${escape_html(held)}</p>`);
|
|
1627
|
-
} else if (attachments.uploading) {
|
|
1628
|
-
$$renderer3.push(`<!--[2--><p class="mt-2 text-xs text-muted-foreground">Send waits until the files finish uploading.</p>`);
|
|
1629
|
-
} else if (via === "inbox") {
|
|
1630
|
-
$$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>`);
|
|
1631
|
-
} else {
|
|
1632
|
-
$$renderer3.push("<!--[-1-->");
|
|
1633
|
-
}
|
|
1634
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
1635
|
-
}
|
|
1636
|
-
do {
|
|
1637
|
-
$$settled = true;
|
|
1638
|
-
$$inner_renderer = $$renderer2.copy();
|
|
1639
|
-
$$render_inner($$inner_renderer);
|
|
1640
|
-
} while (!$$settled);
|
|
1641
|
-
$$renderer2.subsume($$inner_renderer);
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
function MenuCard($$renderer, $$props) {
|
|
1645
|
-
$$renderer.component(($$renderer2) => {
|
|
1646
|
-
let { menu, tool = "Claude Code" } = $$props;
|
|
1647
|
-
let busy = false;
|
|
1648
|
-
$$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-sea bg-card p-4" role="group"${attr("aria-label", `A ${stringify(tool)} menu is open`)}><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
|
|
1649
|
-
App_window($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
|
|
1650
|
-
$$renderer2.push(`<!---->A ${escape_html(tool)} menu is open</p> <p class="mb-3 text-sm text-muted-foreground">`);
|
|
1651
|
-
if (menu.title) {
|
|
1652
|
-
$$renderer2.push(`<!--[0--><span class="font-medium text-foreground">${escape_html(menu.title)}</span>`);
|
|
1653
|
-
} else {
|
|
1654
|
-
$$renderer2.push(`<!--[-1-->A menu`);
|
|
1655
|
-
}
|
|
1656
|
-
$$renderer2.push(`<!--]--> is open in Firstmate’s session, and the chat can’t use it. Close it to carry on chatting, or use it
|
|
1657
|
-
in Firstmate’s terminal.</p> <div class="flex flex-wrap items-center gap-3 text-sm">`);
|
|
1658
|
-
if (menu.canDismiss !== false) {
|
|
1659
|
-
$$renderer2.push(`<!--[0--><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)}>`);
|
|
1660
|
-
{
|
|
1661
|
-
$$renderer2.push("<!--[-1-->");
|
|
1662
|
-
X($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1663
|
-
}
|
|
1664
|
-
$$renderer2.push(`<!--]-->Close menu</button>`);
|
|
1665
|
-
} else {
|
|
1666
|
-
$$renderer2.push("<!--[-1-->");
|
|
1667
|
-
}
|
|
1668
|
-
$$renderer2.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1669
|
-
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1670
|
-
$$renderer2.push(`<!---->Use it in the terminal</button> `);
|
|
1671
|
-
{
|
|
1672
|
-
$$renderer2.push("<!--[-1-->");
|
|
1673
|
-
}
|
|
1674
|
-
$$renderer2.push(`<!--]--></div></div>`);
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
function PickerCard($$renderer, $$props) {
|
|
1678
|
-
$$renderer.component(($$renderer2) => {
|
|
1679
|
-
let { picker } = $$props;
|
|
1680
|
-
let busy = false;
|
|
1681
|
-
$$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">`);
|
|
1682
|
-
Message_circle_question_mark($$renderer2, { class: "size-4 text-sea", "aria-hidden": "true" });
|
|
1683
|
-
$$renderer2.push(`<!---->Firstmate is asking you `);
|
|
1684
|
-
{
|
|
1685
|
-
$$renderer2.push("<!--[-1-->");
|
|
1686
|
-
}
|
|
1687
|
-
$$renderer2.push(`<!--]--></p> `);
|
|
1688
|
-
if (picker.tabs.length > 1) {
|
|
1689
|
-
$$renderer2.push(`<!--[0--><div class="mb-3 flex flex-wrap gap-1.5 text-xs"><!--[-->`);
|
|
1690
|
-
const each_array = ensure_array_like(picker.tabs);
|
|
1691
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1692
|
-
let tab = each_array[$$index];
|
|
1693
|
-
$$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"}`)}>`);
|
|
1694
|
-
if (tab.done) {
|
|
1695
|
-
$$renderer2.push("<!--[0-->");
|
|
1696
|
-
Check($$renderer2, { class: "size-3", "aria-label": "Answered" });
|
|
1697
|
-
} else {
|
|
1698
|
-
$$renderer2.push("<!--[-1-->");
|
|
1699
|
-
}
|
|
1700
|
-
$$renderer2.push(`<!--]-->${escape_html(tab.label)}</span>`);
|
|
1701
|
-
}
|
|
1702
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
1703
|
-
} else {
|
|
1704
|
-
$$renderer2.push("<!--[-1-->");
|
|
1705
|
-
}
|
|
1706
|
-
$$renderer2.push(`<!--]--> `);
|
|
1707
|
-
if (picker.title) {
|
|
1708
|
-
$$renderer2.push(`<!--[0--><p class="mb-3 text-base whitespace-pre-line">${escape_html(picker.title)}</p>`);
|
|
1709
|
-
} else {
|
|
1710
|
-
$$renderer2.push("<!--[-1-->");
|
|
1711
|
-
}
|
|
1712
|
-
$$renderer2.push(`<!--]--> <div class="flex flex-col gap-1.5"><!--[-->`);
|
|
1713
|
-
const each_array_1 = ensure_array_like(picker.options);
|
|
1714
|
-
for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
|
|
1715
|
-
let o = each_array_1[$$index_1];
|
|
1716
|
-
if (o.freeText) {
|
|
1717
|
-
$$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">`);
|
|
1718
|
-
Square_terminal($$renderer2, { class: "size-4 shrink-0", "aria-hidden": "true" });
|
|
1719
|
-
$$renderer2.push(`<!----> <span>Type an answer in Firstmate’s terminal</span></button>`);
|
|
1720
|
-
} else {
|
|
1721
|
-
$$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">`);
|
|
1722
|
-
if (o.checked) {
|
|
1723
|
-
$$renderer2.push("<!--[0-->");
|
|
1724
|
-
Check($$renderer2, { class: "size-4 text-sea", "aria-label": "Chosen" });
|
|
1725
|
-
} else {
|
|
1726
|
-
$$renderer2.push(`<!--[-1-->${escape_html(o.n)}`);
|
|
1727
|
-
}
|
|
1728
|
-
$$renderer2.push(`<!--]--></span> <span class="min-w-0"><span class="font-medium">${escape_html(o.label)}</span> `);
|
|
1729
|
-
if (o.description) {
|
|
1730
|
-
$$renderer2.push(`<!--[0--><span class="block text-xs text-muted-foreground">${escape_html(o.description)}</span>`);
|
|
1731
|
-
} else {
|
|
1732
|
-
$$renderer2.push("<!--[-1-->");
|
|
1733
|
-
}
|
|
1734
|
-
$$renderer2.push(`<!--]--></span></button>`);
|
|
1735
|
-
}
|
|
1736
|
-
$$renderer2.push(`<!--]-->`);
|
|
1737
|
-
}
|
|
1738
|
-
$$renderer2.push(`<!--]--></div> <div class="mt-3 flex flex-wrap items-center gap-3 text-sm">`);
|
|
1739
|
-
if (picker.multiSelect && picker.submitMoves !== null) {
|
|
1740
|
-
$$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>`);
|
|
1741
|
-
} else {
|
|
1742
|
-
$$renderer2.push("<!--[-1-->");
|
|
1743
|
-
}
|
|
1744
|
-
$$renderer2.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1745
|
-
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1746
|
-
$$renderer2.push(`<!---->Answer in the terminal instead</button> `);
|
|
1747
|
-
{
|
|
1748
|
-
$$renderer2.push("<!--[-1-->");
|
|
1749
|
-
}
|
|
1750
|
-
$$renderer2.push(`<!--]--></div></div>`);
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
function QuestionCard($$renderer, $$props) {
|
|
1754
|
-
$$renderer.component(($$renderer2) => {
|
|
1755
|
-
let { part } = $$props;
|
|
1756
|
-
if (part.answers) {
|
|
1757
|
-
$$renderer2.push(`<!--[0--><div class="flex max-w-[80ch] flex-col gap-1 text-sm text-muted-foreground"><!--[-->`);
|
|
1758
|
-
const each_array = ensure_array_like(part.questions);
|
|
1759
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1760
|
-
let q = each_array[$$index];
|
|
1761
|
-
$$renderer2.push(`<p class="flex items-start gap-2">`);
|
|
1762
|
-
Circle_check($$renderer2, {
|
|
1763
|
-
class: "mt-0.5 size-4 shrink-0 text-success",
|
|
1764
|
-
"aria-hidden": "true"
|
|
1765
|
-
});
|
|
1766
|
-
$$renderer2.push(`<!----> <span>${escape_html(q.question)} <span class="font-medium text-foreground">${escape_html(part.answers[q.question] ?? "No answer")}</span></span></p>`);
|
|
1767
|
-
}
|
|
1768
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
1769
|
-
} else {
|
|
1770
|
-
$$renderer2.push("<!--[-1-->");
|
|
1771
|
-
}
|
|
1772
|
-
$$renderer2.push(`<!--]-->`);
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
function SignInCard($$renderer, $$props) {
|
|
1776
|
-
$$renderer.component(($$renderer2) => {
|
|
1777
|
-
let { signIn, tool = "Claude Code" } = $$props;
|
|
1778
|
-
let code = "";
|
|
1779
|
-
let busy = false;
|
|
1780
|
-
$$renderer2.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-warning bg-card p-4" role="group"${attr("aria-label", `Sign in to ${stringify(tool)}`)} data-sign-in=""><p class="mb-1 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
|
|
1781
|
-
Key_round($$renderer2, { class: "size-4 text-warning", "aria-hidden": "true" });
|
|
1782
|
-
$$renderer2.push(`<!---->Sign in to ${escape_html(tool)}</p> <p class="mb-4 text-sm text-muted-foreground">Firstmate is waiting for you to sign ${escape_html(tool)} in before it can carry on.</p> <ol class="flex flex-col gap-4 text-sm"><li class="flex flex-col gap-2"><span><span class="tabular text-muted-foreground">1.</span> Open the sign-in page and sign in.</span> <a class="flex w-fit items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 font-medium text-background hover:opacity-90"${attr("href", signIn.url)} target="_blank" rel="noopener noreferrer">`);
|
|
1783
|
-
External_link($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1784
|
-
$$renderer2.push(`<!---->Open the sign-in page</a></li> `);
|
|
1785
|
-
if (signIn.code) {
|
|
1786
|
-
$$renderer2.push(`<!--[0--><li class="flex flex-col gap-2"><span><span class="tabular text-muted-foreground">2.</span> Enter this code on that page.</span> <span class="flex items-center gap-2"><code class="rounded border bg-background px-2 py-1 font-mono text-base tracking-wider select-all">${escape_html(signIn.code)}</code> <button class="flex cursor-pointer items-center gap-1 text-muted-foreground hover:text-foreground">`);
|
|
1787
|
-
{
|
|
1788
|
-
$$renderer2.push("<!--[-1-->");
|
|
1789
|
-
Copy($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1790
|
-
$$renderer2.push(`<!---->Copy code`);
|
|
1791
|
-
}
|
|
1792
|
-
$$renderer2.push(`<!--]--></button></span></li>`);
|
|
1793
|
-
} else {
|
|
1794
|
-
$$renderer2.push("<!--[-1-->");
|
|
1795
|
-
}
|
|
1796
|
-
$$renderer2.push(`<!--]--> `);
|
|
1797
|
-
if (signIn.paste) {
|
|
1798
|
-
$$renderer2.push(`<!--[0--><li class="flex flex-col gap-2"><label for="wh-sign-in-code"><span class="tabular text-muted-foreground">2.</span> Paste the code the page gives you.</label> <form class="flex flex-wrap items-center gap-2"><input id="wh-sign-in-code" class="min-w-0 flex-1 rounded-lg border bg-background px-3 py-1.5 font-mono text-sm" autocomplete="off" autocapitalize="off" spellcheck="false" placeholder="Sign-in code"${attr("value", code)}${attr("disabled", busy, true)}/> <button type="submit" class="flex cursor-pointer items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 font-medium text-background disabled:cursor-default disabled:opacity-40"${attr("disabled", !code.trim(), true)}>`);
|
|
1799
|
-
{
|
|
1800
|
-
$$renderer2.push("<!--[-1-->");
|
|
1801
|
-
}
|
|
1802
|
-
$$renderer2.push(`<!--]-->Sign in</button></form> `);
|
|
1803
|
-
{
|
|
1804
|
-
$$renderer2.push("<!--[-1-->");
|
|
1805
|
-
}
|
|
1806
|
-
$$renderer2.push(`<!--]--></li>`);
|
|
1807
|
-
} else {
|
|
1808
|
-
$$renderer2.push(`<!--[-1--><li class="text-muted-foreground">${escape_html(tool)} carries on by itself once you have signed in.</li>`);
|
|
1809
|
-
}
|
|
1810
|
-
$$renderer2.push(`<!--]--></ol> `);
|
|
1811
|
-
if (signIn.note) {
|
|
1812
|
-
$$renderer2.push(`<!--[0--><p class="mt-3 text-xs text-muted-foreground">${escape_html(signIn.note)}</p>`);
|
|
1813
|
-
} else {
|
|
1814
|
-
$$renderer2.push("<!--[-1-->");
|
|
1815
|
-
}
|
|
1816
|
-
$$renderer2.push(`<!--]--> <div class="mt-4 flex flex-wrap items-center gap-3 text-sm"><button class="flex cursor-pointer items-center gap-1.5 text-muted-foreground hover:text-foreground">`);
|
|
1817
|
-
Square_terminal($$renderer2, { class: "size-4", "aria-hidden": "true" });
|
|
1818
|
-
$$renderer2.push(`<!---->Sign in in the terminal instead</button> `);
|
|
1819
|
-
{
|
|
1820
|
-
$$renderer2.push("<!--[-1-->");
|
|
1821
|
-
}
|
|
1822
|
-
$$renderer2.push(`<!--]--></div></div>`);
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
function TerminalNotice($$renderer, $$props) {
|
|
1826
|
-
let { detail, tool = "Claude Code" } = $$props;
|
|
1827
|
-
$$renderer.push(`<div class="max-w-[80ch] rounded-lg border border-t-2 border-t-warning bg-card p-4" role="alert" aria-label="Firstmate is waiting for you in the terminal" data-terminal-notice=""><p class="mb-2 flex items-center gap-2 font-display text-[1.15rem] font-medium">`);
|
|
1828
|
-
Square_terminal($$renderer, { class: "size-4 text-warning", "aria-hidden": "true" });
|
|
1829
|
-
$$renderer.push(`<!---->Firstmate is waiting for you in
|
|
1830
|
-
the terminal</p> <p class="mb-3 text-sm text-muted-foreground">${escape_html(tool)} is showing something the chat can’t answer. Open the terminal to carry on; the chat picks up
|
|
1831
|
-
again once it’s done.</p> `);
|
|
1832
|
-
if (detail) {
|
|
1833
|
-
$$renderer.push(`<!--[0--><pre class="mb-3 overflow-x-auto rounded border bg-background px-3 py-2 font-mono text-xs whitespace-pre-wrap text-muted-foreground">${escape_html(detail)}</pre>`);
|
|
1834
|
-
} else {
|
|
1835
|
-
$$renderer.push("<!--[-1-->");
|
|
1836
|
-
}
|
|
1837
|
-
$$renderer.push(`<!--]--> <button class="flex cursor-pointer items-center gap-1.5 rounded-lg bg-foreground px-3 py-1.5 text-sm font-medium text-background hover:opacity-90">`);
|
|
1838
|
-
Square_terminal($$renderer, { class: "size-4", "aria-hidden": "true" });
|
|
1839
|
-
$$renderer.push(`<!---->Open terminal</button></div>`);
|
|
1840
|
-
}
|
|
1841
|
-
function ThreadTag($$renderer, $$props) {
|
|
1842
|
-
$$renderer.component(($$renderer2) => {
|
|
1843
|
-
let { tag, threads: threads2 } = $$props;
|
|
1844
|
-
const SOURCE = {
|
|
1845
|
-
marker: "Firstmate filed this here",
|
|
1846
|
-
decision: "The decision’s project",
|
|
1847
|
-
task: "The task’s project",
|
|
1848
|
-
thread: "Sent in this thread",
|
|
1849
|
-
you: "You moved this here",
|
|
1850
|
-
guess: "A guess from what it names"
|
|
1851
|
-
};
|
|
1852
|
-
const me = derived(() => threads2.find((t) => t.topic === tag.topic) ?? { topic: tag.topic, name: tag.topic, hue: null });
|
|
1853
|
-
let open = false;
|
|
1854
|
-
let fresh = "";
|
|
1855
|
-
function tagButton($$renderer3, props) {
|
|
1856
|
-
$$renderer3.push(`<button${attributes({
|
|
1857
|
-
...props,
|
|
1858
|
-
class: "thread-tag touch-target",
|
|
1859
|
-
"data-hue": me().hue ?? void 0,
|
|
1860
|
-
"data-unsorted": tag.topic === UNSORTED ? "" : void 0,
|
|
1861
|
-
"data-source": tag.source ?? void 0,
|
|
1862
|
-
title: `${stringify(tag.source ? SOURCE[tag.source] : "Not filed under a thread")}. Click to move it.`,
|
|
1863
|
-
"aria-label": `Thread: ${stringify(me().name)}${tag.source === "guess" ? " (a guess)" : ""}. Move it`
|
|
1864
|
-
})}><span class="thread-tag-name">${escape_html(me().name)}</span>`);
|
|
1865
|
-
if (tag.source === "guess") {
|
|
1866
|
-
$$renderer3.push(`<!--[0--><span class="thread-tag-src">· guess</span>`);
|
|
1867
|
-
} else if (tag.source === "you") {
|
|
1868
|
-
$$renderer3.push(`<!--[1--><span class="thread-tag-src">· moved</span>`);
|
|
1869
|
-
} else {
|
|
1870
|
-
$$renderer3.push("<!--[-1-->");
|
|
1871
|
-
}
|
|
1872
|
-
$$renderer3.push(`<!--]--></button>`);
|
|
1873
|
-
}
|
|
1874
|
-
function moveTo($$renderer3) {
|
|
1875
|
-
$$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"><!--[-->`);
|
|
1876
|
-
const each_array = ensure_array_like(threads2);
|
|
1877
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1878
|
-
let t = each_array[$$index];
|
|
1879
|
-
$$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> `);
|
|
1880
|
-
if (t.topic === tag.topic) {
|
|
1881
|
-
$$renderer3.push("<!--[0-->");
|
|
1882
|
-
Check($$renderer3, { class: "size-3.5 text-muted-foreground" });
|
|
1883
|
-
} else {
|
|
1884
|
-
$$renderer3.push("<!--[-1-->");
|
|
1885
|
-
}
|
|
1886
|
-
$$renderer3.push(`<!--]--></button>`);
|
|
1887
|
-
}
|
|
1888
|
-
$$renderer3.push(`<!--]--></div> <form class="mt-1 flex items-center gap-1.5 border-t px-1 pt-1.5">`);
|
|
1889
|
-
Plus($$renderer3, {
|
|
1890
|
-
class: "size-3.5 shrink-0 text-muted-foreground",
|
|
1891
|
-
"aria-hidden": "true"
|
|
1892
|
-
});
|
|
1893
|
-
$$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>`);
|
|
1894
|
-
}
|
|
1895
|
-
let $$settled = true;
|
|
1896
|
-
let $$inner_renderer;
|
|
1897
|
-
function $$render_inner($$renderer3) {
|
|
1898
|
-
if (phone.current) {
|
|
1899
|
-
$$renderer3.push("<!--[0-->");
|
|
1900
|
-
tagButton($$renderer3, {
|
|
1901
|
-
type: "button",
|
|
1902
|
-
"aria-haspopup": "dialog",
|
|
1903
|
-
onclick: () => open = true
|
|
1904
|
-
});
|
|
1905
|
-
$$renderer3.push(`<!----> `);
|
|
1906
|
-
Sheet($$renderer3, {
|
|
1907
|
-
title: "Move to thread",
|
|
1908
|
-
get open() {
|
|
1909
|
-
return open;
|
|
1910
|
-
},
|
|
1911
|
-
set open($$value) {
|
|
1912
|
-
open = $$value;
|
|
1913
|
-
$$settled = false;
|
|
1914
|
-
},
|
|
1915
|
-
children: ($$renderer4) => {
|
|
1916
|
-
$$renderer4.push(`<div class="px-3 pb-3">`);
|
|
1917
|
-
moveTo($$renderer4);
|
|
1918
|
-
$$renderer4.push(`<!----></div>`);
|
|
1919
|
-
},
|
|
1920
|
-
$$slots: { default: true }
|
|
1921
|
-
});
|
|
1922
|
-
$$renderer3.push(`<!---->`);
|
|
1923
|
-
} else {
|
|
1924
|
-
$$renderer3.push("<!--[-1-->");
|
|
1925
|
-
if (Popover) {
|
|
1926
|
-
$$renderer3.push("<!--[-->");
|
|
1927
|
-
Popover($$renderer3, {
|
|
1928
|
-
get open() {
|
|
1929
|
-
return open;
|
|
1930
|
-
},
|
|
1931
|
-
set open($$value) {
|
|
1932
|
-
open = $$value;
|
|
1933
|
-
$$settled = false;
|
|
1934
|
-
},
|
|
1935
|
-
children: ($$renderer4) => {
|
|
1936
|
-
{
|
|
1937
|
-
let child = function($$renderer5, { props }) {
|
|
1938
|
-
tagButton($$renderer5, props);
|
|
1939
|
-
};
|
|
1940
|
-
if (Popover_trigger) {
|
|
1941
|
-
$$renderer4.push("<!--[-->");
|
|
1942
|
-
Popover_trigger($$renderer4, { child, $$slots: { child: true } });
|
|
1943
|
-
$$renderer4.push("<!--]-->");
|
|
1944
|
-
} else {
|
|
1945
|
-
$$renderer4.push("<!--[!-->");
|
|
1946
|
-
$$renderer4.push("<!--]-->");
|
|
1947
|
-
}
|
|
1948
|
-
}
|
|
1949
|
-
$$renderer4.push(` `);
|
|
1950
|
-
if (Portal) {
|
|
1951
|
-
$$renderer4.push("<!--[-->");
|
|
1952
|
-
Portal($$renderer4, {
|
|
1953
|
-
children: ($$renderer5) => {
|
|
1954
|
-
if (Popover_content) {
|
|
1955
|
-
$$renderer5.push("<!--[-->");
|
|
1956
|
-
Popover_content($$renderer5, {
|
|
1957
|
-
align: "start",
|
|
1958
|
-
sideOffset: 4,
|
|
1959
|
-
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",
|
|
1960
|
-
children: ($$renderer6) => {
|
|
1961
|
-
moveTo($$renderer6);
|
|
1962
|
-
},
|
|
1963
|
-
$$slots: { default: true }
|
|
1964
|
-
});
|
|
1965
|
-
$$renderer5.push("<!--]-->");
|
|
1966
|
-
} else {
|
|
1967
|
-
$$renderer5.push("<!--[!-->");
|
|
1968
|
-
$$renderer5.push("<!--]-->");
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
});
|
|
1972
|
-
$$renderer4.push("<!--]-->");
|
|
1973
|
-
} else {
|
|
1974
|
-
$$renderer4.push("<!--[!-->");
|
|
1975
|
-
$$renderer4.push("<!--]-->");
|
|
1976
|
-
}
|
|
1977
|
-
},
|
|
1978
|
-
$$slots: { default: true }
|
|
1979
|
-
});
|
|
1980
|
-
$$renderer3.push("<!--]-->");
|
|
1981
|
-
} else {
|
|
1982
|
-
$$renderer3.push("<!--[!-->");
|
|
1983
|
-
$$renderer3.push("<!--]-->");
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
$$renderer3.push(`<!--]-->`);
|
|
1987
|
-
}
|
|
1988
|
-
do {
|
|
1989
|
-
$$settled = true;
|
|
1990
|
-
$$inner_renderer = $$renderer2.copy();
|
|
1991
|
-
$$render_inner($$inner_renderer);
|
|
1992
|
-
} while (!$$settled);
|
|
1993
|
-
$$renderer2.subsume($$inner_renderer);
|
|
1994
|
-
});
|
|
1995
|
-
}
|
|
1996
|
-
function VaultAdd($$renderer, $$props) {
|
|
1997
|
-
$$renderer.component(($$renderer2) => {
|
|
1998
|
-
let {
|
|
1999
|
-
open = false,
|
|
2000
|
-
ask = null,
|
|
2001
|
-
projects,
|
|
2002
|
-
token,
|
|
2003
|
-
onstored
|
|
2004
|
-
/** What Firstmate asked for, to fill in; null for a blank popup. */
|
|
2005
|
-
/** The projects Wheelhouse knows, offered as tick boxes. */
|
|
2006
|
-
/** A secret was stored: its name and every project that can use it. */
|
|
2007
|
-
} = $$props;
|
|
2008
|
-
let name = "";
|
|
2009
|
-
let value = "";
|
|
2010
|
-
let grants = [];
|
|
2011
|
-
let busy = false;
|
|
2012
|
-
let error = null;
|
|
2013
|
-
let exists = false;
|
|
2014
|
-
let replace = false;
|
|
2015
|
-
let status = null;
|
|
2016
|
-
const purpose = derived(() => ask?.purpose ?? "");
|
|
2017
|
-
const unknown = derived(() => ask ? ask.projects.filter((p) => !projects.includes(p)) : []);
|
|
2018
|
-
function close() {
|
|
2019
|
-
value = "";
|
|
2020
|
-
exists = false;
|
|
2021
|
-
replace = false;
|
|
2022
|
-
open = false;
|
|
2023
|
-
}
|
|
2024
|
-
async function replaceIt() {
|
|
2025
|
-
exists = false;
|
|
2026
|
-
replace = true;
|
|
2027
|
-
error = null;
|
|
2028
|
-
await tick();
|
|
2029
|
-
document.getElementById("vault-add-value")?.focus();
|
|
2030
|
-
}
|
|
2031
|
-
$$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="">`);
|
|
2032
|
-
if (open) {
|
|
2033
|
-
$$renderer2.push(`<!--[0--><form class="grid gap-5 px-5 pt-4 pb-5"><div class="flex items-start gap-3">`);
|
|
2034
|
-
Key_round($$renderer2, {
|
|
2035
|
-
class: "mt-1 size-5 shrink-0 text-brass",
|
|
2036
|
-
"aria-hidden": "true"
|
|
2037
|
-
});
|
|
2038
|
-
$$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> `);
|
|
2039
|
-
if (purpose()) {
|
|
2040
|
-
$$renderer2.push(`<!--[0--><p class="mt-0.5 text-sm text-muted-foreground" data-vault-purpose="">${escape_html(purpose())}</p>`);
|
|
2041
|
-
} else {
|
|
2042
|
-
$$renderer2.push("<!--[-1-->");
|
|
2043
|
-
}
|
|
2044
|
-
$$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)}>`);
|
|
2045
|
-
X($$renderer2, { class: "size-4" });
|
|
2046
|
-
$$renderer2.push(`<!----></button></div> `);
|
|
2047
|
-
{
|
|
2048
|
-
$$renderer2.push("<!--[-1-->");
|
|
2049
|
-
}
|
|
2050
|
-
$$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"/> `);
|
|
2051
|
-
{
|
|
2052
|
-
$$renderer2.push(`<!--[-1--><p id="vault-add-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as.</p>`);
|
|
2053
|
-
}
|
|
2054
|
-
$$renderer2.push(`<!--]--></div> `);
|
|
2055
|
-
if (!exists) {
|
|
2056
|
-
$$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">`);
|
|
2057
|
-
Lock($$renderer2, { class: "mt-px size-3.5 shrink-0" });
|
|
2058
|
-
$$renderer2.push(`<!----> Goes straight into ${escape_html(storeWhere(status))}. It never appears in the chat, and Wheelhouse
|
|
2059
|
-
cannot show it again.</p></div>`);
|
|
2060
|
-
} else {
|
|
2061
|
-
$$renderer2.push("<!--[-1-->");
|
|
2062
|
-
}
|
|
2063
|
-
$$renderer2.push(`<!--]--> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> `);
|
|
2064
|
-
if (projects.length) {
|
|
2065
|
-
$$renderer2.push(`<!--[0--><div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group" aria-label="Projects"><!--[-->`);
|
|
2066
|
-
const each_array = ensure_array_like(projects);
|
|
2067
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
2068
|
-
let p = each_array[$$index];
|
|
2069
|
-
$$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>`);
|
|
2070
|
-
}
|
|
2071
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
2072
|
-
} else {
|
|
2073
|
-
$$renderer2.push(`<!--[-1--><p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>`);
|
|
2074
|
-
}
|
|
2075
|
-
$$renderer2.push(`<!--]--> <p class="text-xs text-muted-foreground">Optional. You can change this any time on the Vault page. `);
|
|
2076
|
-
if (unknown().length) {
|
|
2077
|
-
$$renderer2.push(`<!--[0-->Firstmate also named ${escape_html(unknown().join(", "))}, which Wheelhouse does not
|
|
2078
|
-
know.`);
|
|
2079
|
-
} else {
|
|
2080
|
-
$$renderer2.push("<!--[-1-->");
|
|
2081
|
-
}
|
|
2082
|
-
$$renderer2.push(`<!--]--></p></div> `);
|
|
2083
|
-
if (exists) {
|
|
2084
|
-
$$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>`);
|
|
2085
|
-
} else if (error) {
|
|
2086
|
-
$$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>`);
|
|
2087
|
-
} else {
|
|
2088
|
-
$$renderer2.push("<!--[-1-->");
|
|
2089
|
-
}
|
|
2090
|
-
$$renderer2.push(`<!--]--> <div class="flex flex-wrap justify-end gap-2">`);
|
|
2091
|
-
Button($$renderer2, {
|
|
2092
|
-
type: "button",
|
|
2093
|
-
variant: "outline",
|
|
2094
|
-
disabled: busy,
|
|
2095
|
-
onclick: close,
|
|
2096
|
-
children: ($$renderer3) => {
|
|
2097
|
-
$$renderer3.push(`<!---->Cancel`);
|
|
2098
|
-
},
|
|
2099
|
-
$$slots: { default: true }
|
|
2100
|
-
});
|
|
2101
|
-
$$renderer2.push(`<!----> `);
|
|
2102
|
-
if (exists) {
|
|
2103
|
-
$$renderer2.push("<!--[0-->");
|
|
2104
|
-
Button($$renderer2, {
|
|
2105
|
-
type: "button",
|
|
2106
|
-
onclick: replaceIt,
|
|
2107
|
-
children: ($$renderer3) => {
|
|
2108
|
-
$$renderer3.push(`<!---->Replace`);
|
|
2109
|
-
},
|
|
2110
|
-
$$slots: { default: true }
|
|
2111
|
-
});
|
|
2112
|
-
} else {
|
|
2113
|
-
$$renderer2.push("<!--[-1-->");
|
|
2114
|
-
Button($$renderer2, {
|
|
2115
|
-
type: "submit",
|
|
2116
|
-
disabled: !name,
|
|
2117
|
-
children: ($$renderer3) => {
|
|
2118
|
-
$$renderer3.push(`<!---->${escape_html(replace ? "Replace its value" : "Store secret")}`);
|
|
2119
|
-
},
|
|
2120
|
-
$$slots: { default: true }
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
$$renderer2.push(`<!--]--></div></form>`);
|
|
2124
|
-
} else {
|
|
2125
|
-
$$renderer2.push("<!--[-1-->");
|
|
2126
|
-
}
|
|
2127
|
-
$$renderer2.push(`<!--]--></dialog>`);
|
|
2128
|
-
bind_props($$props, { open });
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
function captainText($$renderer, text, linked) {
|
|
2132
|
-
$$renderer.push(`<!--[-->`);
|
|
2133
|
-
const each_array_1 = ensure_array_like(parseRefs(text));
|
|
2134
|
-
for (let pi = 0, $$length = each_array_1.length; pi < $$length; pi++) {
|
|
2135
|
-
let piece = each_array_1[pi];
|
|
2136
|
-
if (typeof piece === "string") {
|
|
2137
|
-
$$renderer.push(`<!--[0-->${escape_html(piece)}`);
|
|
2138
|
-
} else if (linked) {
|
|
2139
|
-
$$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>`);
|
|
2140
|
-
} else {
|
|
2141
|
-
$$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>`);
|
|
2142
|
-
}
|
|
2143
|
-
$$renderer.push(`<!--]-->`);
|
|
2144
|
-
}
|
|
2145
|
-
$$renderer.push(`<!--]-->`);
|
|
2146
|
-
}
|
|
2147
|
-
function Chat($$renderer, $$props) {
|
|
2148
|
-
$$renderer.component(($$renderer2) => {
|
|
2149
|
-
let {
|
|
2150
|
-
token,
|
|
2151
|
-
railOpen,
|
|
2152
|
-
railSide = "right",
|
|
2153
|
-
onSwapRail,
|
|
2154
|
-
waiting = 0,
|
|
2155
|
-
health,
|
|
2156
|
-
now,
|
|
2157
|
-
pluginEntries = [],
|
|
2158
|
-
tasks = [],
|
|
2159
|
-
projects = [],
|
|
2160
|
-
thread = null,
|
|
2161
|
-
onPickThread
|
|
2162
|
-
/** Which side of the chat the On deck rail docks to. */
|
|
2163
|
-
/** Moves the rail to the chat's other side; without it there is no button. */
|
|
2164
|
-
/** Items waiting on the captain, for the rail button's dot. */
|
|
2165
|
-
/** Plugin entries for the fleet, whose bridge.card cards follow replies that link them. */
|
|
2166
|
-
/** The fleet's tasks, whose live previews follow the replies about them. */
|
|
2167
|
-
/** The fleet's projects, for the cards' project names. */
|
|
2168
|
-
/** The thread being read (a project id, a topic or Unsorted), or null for all. */
|
|
2169
|
-
/** Picks the thread to read; without it the chat keeps the choice itself. */
|
|
2170
|
-
} = $$props;
|
|
2171
|
-
const HEALTH_ICON = {
|
|
2172
|
-
success: Circle_check,
|
|
2173
|
-
sea: Hand,
|
|
2174
|
-
warning: Triangle_alert,
|
|
2175
|
-
danger: Circle_x
|
|
2176
|
-
};
|
|
2177
|
-
const HEALTH_TEXT = {
|
|
2178
|
-
success: "text-success",
|
|
2179
|
-
sea: "text-sea",
|
|
2180
|
-
warning: "text-warning",
|
|
2181
|
-
danger: "text-danger"
|
|
2182
|
-
};
|
|
2183
|
-
const session = derived(() => firstmateChat.session);
|
|
2184
|
-
const chat = derived(() => firstmateChat.chat);
|
|
2185
|
-
const items = derived(() => chat().items);
|
|
2186
|
-
const lastItem = derived(() => items()[items().length - 1]);
|
|
2187
|
-
const working = derived(() => firstmateChat.working);
|
|
2188
|
-
const picker = derived(() => session()?.canSend ? session().picker : null);
|
|
2189
|
-
const menu = derived(() => session()?.canSend ? session().menu : null);
|
|
2190
|
-
const signIn = derived(() => session()?.canSend ? session().signIn ?? null : null);
|
|
2191
|
-
const inTerminal = derived(() => session()?.canSend ? terminalWait(session()) : null);
|
|
2192
|
-
const tool = derived(() => HARNESS_NAMES[session()?.harness ?? "claude"]);
|
|
2193
|
-
const waitingOnAnswer = derived(() => !!picker() || !!menu() || !!signIn() || !!inTerminal());
|
|
2194
|
-
const held = derived(() => picker() ? "Answer the question above to send your message." : signIn() ? `Sign in to ${tool()} above to send your message.` : inTerminal() ? "Firstmate is waiting for you in its terminal. Open it and answer there to send your message." : menu() ? "Close the menu above to send your message." : null);
|
|
2195
|
-
const lastCheck = derived(() => chat().checks[chat().checks.length - 1]);
|
|
2196
|
-
const checking = derived(() => !!lastCheck() && !lastCheck().done);
|
|
2197
|
-
const HIcon = derived(() => HEALTH_ICON[health.tone]);
|
|
2198
|
-
const canSend = derived(() => session()?.canSend === true);
|
|
2199
|
-
const via = derived(() => canSend() ? "session" : session()?.state === "external" && currentHealth()?.messaging.available ? "inbox" : null);
|
|
2200
|
-
const inboxView = derived(() => inbox.view(page.data.inbox));
|
|
2201
|
-
const opened = derived(() => /* @__PURE__ */ new Set([
|
|
2202
|
-
...openedDecisions.ids,
|
|
2203
|
-
...[],
|
|
2204
|
-
...items().flatMap((it) => {
|
|
2205
|
-
const d = it.kind === "user" ? parseDiscuss(it.text) : null;
|
|
2206
|
-
return d ? [d.cardId] : [];
|
|
2207
|
-
}),
|
|
2208
|
-
...firstmateChat.pending.flatMap((p) => {
|
|
2209
|
-
const d = parseDiscuss(p.text);
|
|
2210
|
-
return d ? [d.cardId] : [];
|
|
2211
|
-
})
|
|
2212
|
-
]));
|
|
2213
|
-
const decisions = derived(() => inboxView()?.available ? chatDecisions(inboxView().cards, inboxView().answered ?? [], inbox.pending, opened()) : []);
|
|
2214
|
-
const allPlaced = derived(() => placeDecisions(items(), decisions()));
|
|
2215
|
-
const batches = derived(() => placeBatches(items(), chatBatches(currentMessages()?.messages ?? [])));
|
|
2216
|
-
const shown = derived(() => [
|
|
2217
|
-
...[...allPlaced().before.values()].flat(),
|
|
2218
|
-
...allPlaced().end
|
|
2219
|
-
]);
|
|
2220
|
-
const decisionIds = derived(() => new Set(shown().map((d) => d.head.cardId)));
|
|
2221
|
-
const discussed = derived(() => threads(items(), decisionIds()));
|
|
2222
|
-
const asking = derived(() => pendingThreads(firstmateChat.pending));
|
|
2223
|
-
const threadOwner = derived(() => {
|
|
2224
|
-
const owner = /* @__PURE__ */ new Map();
|
|
2225
|
-
for (const d of shown()) {
|
|
2226
|
-
const held2 = owner.get(d.head.cardId);
|
|
2227
|
-
if (!held2 || !shown().find((x) => x.id === held2)?.card) owner.set(d.head.cardId, d.id);
|
|
2228
|
-
}
|
|
2229
|
-
return owner;
|
|
2230
|
-
});
|
|
2231
|
-
const chatPending = derived(() => firstmateChat.pending.filter((p) => {
|
|
2232
|
-
const d = parseDiscuss(p.text);
|
|
2233
|
-
return !d || !decisionIds().has(d.cardId);
|
|
2234
|
-
}));
|
|
2235
|
-
const ownPort = derived(() => typeof location !== "undefined" && ["127.0.0.1", "localhost"].includes(location.hostname) ? location.port || (location.protocol === "https:" ? "443" : "80") : null);
|
|
2236
|
-
const previews = derived(() => previewCards(items(), tasks, ownPort()));
|
|
2237
|
-
const projectName = (id) => !id || id === "unassigned" ? null : projects.find((p) => p.id === id)?.name ?? id;
|
|
2238
|
-
const forms = derived(() => chatForms(items(), discussed().hidden, firstmateChat.pending, currentMessages()?.messages ?? []));
|
|
2239
|
-
const formLinks = derived(() => {
|
|
2240
|
-
const linked2 = /* @__PURE__ */ new Map();
|
|
2241
|
-
const earlier = /* @__PURE__ */ new Map();
|
|
2242
|
-
const taken = /* @__PURE__ */ new Map();
|
|
2243
|
-
for (const [partId, f] of forms()) {
|
|
2244
|
-
const d = decisionFor(f.id, decisions());
|
|
2245
|
-
if (!d) continue;
|
|
2246
|
-
const before = taken.get(d.id);
|
|
2247
|
-
if (before) {
|
|
2248
|
-
linked2.delete(before);
|
|
2249
|
-
earlier.set(before, d);
|
|
2250
|
-
}
|
|
2251
|
-
linked2.set(partId, d);
|
|
2252
|
-
taken.set(d.id, partId);
|
|
2253
|
-
}
|
|
2254
|
-
return { linked: linked2, earlier };
|
|
2255
|
-
});
|
|
2256
|
-
const linked = derived(() => formLinks().linked);
|
|
2257
|
-
const linkedIds = derived(() => new Set([...linked().values()].map((d) => d.id)));
|
|
2258
|
-
const placed = derived(() => ({
|
|
2259
|
-
before: new Map([...allPlaced().before].map(([i, ds]) => [i, ds.filter((d) => !linkedIds().has(d.id))]).filter(([, ds]) => ds.length)),
|
|
2260
|
-
end: allPlaced().end.filter((d) => !linkedIds().has(d.id))
|
|
2261
|
-
}));
|
|
2262
|
-
const replyWords = (part) => parseMarkers(vaultRequests(forms().get(part.id)?.words ?? part.text).words).map((s) => s.text).join("\n\n");
|
|
2263
|
-
const md = (text) => markdown(vaultRequests(text).words, { docLinks: true });
|
|
2264
|
-
const asks = derived(() => vaultAsks(items(), firstmateChat.pending, currentMessages()?.messages ?? []));
|
|
2265
|
-
let vaultOpen = false;
|
|
2266
|
-
let vaultAsk = null;
|
|
2267
|
-
let vaultNotice = null;
|
|
2268
|
-
function addSecret(ask) {
|
|
2269
|
-
vaultAsk = ask;
|
|
2270
|
-
vaultNotice = null;
|
|
2271
|
-
vaultOpen = true;
|
|
2272
|
-
}
|
|
2273
|
-
function secretStored(name, granted) {
|
|
2274
|
-
const text = storedText(name, granted);
|
|
2275
|
-
if (via() && !held()) {
|
|
2276
|
-
void firstmateChat.send(text, via(), token, working() && !waitingOnAnswer());
|
|
2277
|
-
return;
|
|
2278
|
-
}
|
|
2279
|
-
vaultNotice = `${text} Firstmate was not told: ${held() ?? "there is no Firstmate session to send to."}`;
|
|
2280
|
-
}
|
|
2281
|
-
let ownThread = null;
|
|
2282
|
-
const current = derived(() => onPickThread ? thread : ownThread);
|
|
2283
|
-
const tagged = derived(() => tagChat(items(), tasks, projects, chatTags.retags));
|
|
2284
|
-
const labels = derived(() => projectLabels(projects, aliases.names));
|
|
2285
|
-
const threadName = (topic) => topic === UNSORTED ? "Unsorted" : labels().get(topic)?.label ?? topicName(topic);
|
|
2286
|
-
const threadHue = (topic) => topic === UNSORTED ? null : labels().get(topic)?.hue ?? hue(topic);
|
|
2287
|
-
const decisionTag = (d) => cardTag(`decision:${d.head.cardId}`, d.head.projectId, "decision", chatTags.retags);
|
|
2288
|
-
const batchTag = (b) => cardTag(`batch:${b.id}`, tasks.find((t) => t.id === b.batch.taskId)?.projectId, "task", chatTags.retags);
|
|
2289
|
-
const previewTag = (taskId, projectId) => cardTag(`preview:${taskId}`, projectId, "task", chatTags.retags);
|
|
2290
|
-
function itemTopics(it) {
|
|
2291
|
-
if (it.kind === "user") return [tagged().users.get(it.id)?.topic ?? UNSORTED];
|
|
2292
|
-
if (it.kind !== "turn") return [UNSORTED];
|
|
2293
|
-
const out = /* @__PURE__ */ new Set();
|
|
2294
|
-
for (const p of it.parts) {
|
|
2295
|
-
if (p.kind !== "text") continue;
|
|
2296
|
-
for (const sec of tagged().parts.get(p.id) ?? []) if (!sec.intro) out.add(sec.tag.topic);
|
|
2297
|
-
for (const pv of previews().get(p.id) ?? []) if (pv.task) out.add(previewTag(pv.task.id, pv.task.projectId).topic);
|
|
2298
|
-
}
|
|
2299
|
-
if (!out.size) out.add(tagged().turns.get(it.id)?.topic ?? UNSORTED);
|
|
2300
|
-
return [...out];
|
|
2301
|
-
}
|
|
2302
|
-
const entries = derived(() => {
|
|
2303
|
-
const out = [];
|
|
2304
|
-
const decision = (d) => out.push({
|
|
2305
|
-
key: `d:${d.id}`,
|
|
2306
|
-
topics: [decisionTag(d).topic],
|
|
2307
|
-
at: d.head.askedAt,
|
|
2308
|
-
needs: !!d.card && !d.answer
|
|
2309
|
-
});
|
|
2310
|
-
const batch = (b) => out.push({
|
|
2311
|
-
key: `b:${b.id}`,
|
|
2312
|
-
topics: [batchTag(b).topic],
|
|
2313
|
-
at: b.at,
|
|
2314
|
-
needs: false
|
|
2315
|
-
});
|
|
2316
|
-
items().forEach((it, i) => {
|
|
2317
|
-
for (const d of placed().before.get(i) ?? []) decision(d);
|
|
2318
|
-
for (const b of batches().before.get(i) ?? []) batch(b);
|
|
2319
|
-
if (!discussed().hidden.has(it.id) && it.kind !== "session") out.push({ key: it.id, topics: itemTopics(it), at: it.at, needs: false });
|
|
2320
|
-
});
|
|
2321
|
-
for (const d of placed().end) decision(d);
|
|
2322
|
-
for (const b of batches().end) batch(b);
|
|
2323
|
-
return out;
|
|
2324
|
-
});
|
|
2325
|
-
const topicsOf = derived(() => new Map(entries().map((e) => [e.key, e.topics])));
|
|
2326
|
-
const rows = derived(() => threadRows(entries(), current()));
|
|
2327
|
-
const inThread = derived(() => current() ? entries().filter((e) => e.topics.includes(current())).length : entries().length);
|
|
2328
|
-
const moveTo = derived(() => {
|
|
2329
|
-
const seen = new Set(rows().map((r) => r.topic).filter((t) => t !== UNSORTED));
|
|
2330
|
-
const topics = [
|
|
2331
|
-
...seen,
|
|
2332
|
-
...projects.filter((p) => p.registered && !seen.has(p.id)).map((p) => p.id).sort((a, b) => threadName(a).localeCompare(threadName(b))),
|
|
2333
|
-
UNSORTED
|
|
2334
|
-
];
|
|
2335
|
-
return topics.map((topic) => ({ topic, name: threadName(topic), hue: threadHue(topic) }));
|
|
2336
|
-
});
|
|
2337
|
-
const runs = derived(() => current() && chatTags.fold ? foldRuns(entries(), current()) : /* @__PURE__ */ new Map());
|
|
2338
|
-
let openRuns = {};
|
|
2339
|
-
function view(key) {
|
|
2340
|
-
const topics = topicsOf().get(key);
|
|
2341
|
-
if (!current() || !topics || topics.includes(current())) return "show";
|
|
2342
|
-
const run = runs().get(key);
|
|
2343
|
-
if (!run) return "hide";
|
|
2344
|
-
if (openRuns[run.first]) return "dim";
|
|
2345
|
-
return run.first === key ? "line" : "hide";
|
|
2346
|
-
}
|
|
2347
|
-
function lastTopic(it) {
|
|
2348
|
-
if (it.kind === "user") return tagged().users.get(it.id)?.topic ?? null;
|
|
2349
|
-
if (it.kind !== "turn") return null;
|
|
2350
|
-
for (let pi = it.parts.length - 1; pi >= 0; pi--) {
|
|
2351
|
-
const secs = tagged().parts.get(it.parts[pi].id);
|
|
2352
|
-
if (secs?.length) return secs[secs.length - 1].tag.topic;
|
|
2353
|
-
}
|
|
2354
|
-
return tagged().turns.get(it.id)?.topic ?? null;
|
|
2355
|
-
}
|
|
2356
|
-
function layoutTurn(it, all, grouped, prev) {
|
|
2357
|
-
const parts = /* @__PURE__ */ new Map();
|
|
2358
|
-
let head2 = null;
|
|
2359
|
-
let hidden = 0;
|
|
2360
|
-
let first = true;
|
|
2361
|
-
for (const p of it.parts) {
|
|
2362
|
-
if (p.kind !== "text") continue;
|
|
2363
|
-
const every = tagged().parts.get(p.id) ?? [];
|
|
2364
|
-
const inCurrent = (x) => !x.intro && x.tag.topic === current();
|
|
2365
|
-
const asked = forms().get(p.id);
|
|
2366
|
-
const words = asked && parseMarkers(asked.words);
|
|
2367
|
-
const own = !words ? every : all ? every.map((s, i) => ({ ...s, text: words[i]?.text ?? "" })) : every.length ? [every.find(inCurrent) || every[0]] : [];
|
|
2368
|
-
const filed = all ? own : own.filter(inCurrent);
|
|
2369
|
-
const secs = filed.length && own[0]?.intro && !filed.includes(own[0]) ? [own[0], ...filed] : filed;
|
|
2370
|
-
hidden += own.length - secs.length - (own[0]?.intro && !secs.length ? 1 : 0);
|
|
2371
|
-
let above = null;
|
|
2372
|
-
if (secs.length === 1) {
|
|
2373
|
-
if (first && !grouped) head2 = secs[0];
|
|
2374
|
-
else if (secs[0].tag.topic !== prev) above = secs[0];
|
|
2375
|
-
prev = secs[0].tag.topic;
|
|
2376
|
-
} else if (secs.length) prev = null;
|
|
2377
|
-
if (secs.length) first = false;
|
|
2378
|
-
parts.set(p.id, { secs, whole: secs.length === own.length, above });
|
|
2379
|
-
}
|
|
2380
|
-
if (first && !grouped) head2 = {
|
|
2381
|
-
key: `turn:${it.id}`,
|
|
2382
|
-
text: "",
|
|
2383
|
-
tag: tagged().turns.get(it.id) ?? UNSORTED_TAG,
|
|
2384
|
-
intro: false
|
|
2385
|
-
};
|
|
2386
|
-
return { parts, head: head2, hidden };
|
|
2387
|
-
}
|
|
2388
|
-
function decide(partId, a, note) {
|
|
2389
|
-
const asked = forms().get(partId);
|
|
2390
|
-
const text = asked ? answerText(asked.form, a, note) : "";
|
|
2391
|
-
if (!text || !via() || held()) return;
|
|
2392
|
-
void firstmateChat.send(text, via(), token, working() && !waitingOnAnswer());
|
|
2393
|
-
}
|
|
2394
|
-
function dismissForm(partId, reason) {
|
|
2395
|
-
const asked = forms().get(partId);
|
|
2396
|
-
if (!asked || !via() || held()) return;
|
|
2397
|
-
void firstmateChat.send(dismissText(asked.form, reason), via(), token, working() && !waitingOnAnswer());
|
|
2398
|
-
}
|
|
2399
|
-
let showChecks = false;
|
|
2400
|
-
let terminalOpen = false;
|
|
2401
|
-
let apps = {};
|
|
2402
|
-
let collapsedApps = {};
|
|
2403
|
-
let openNotice = {};
|
|
2404
|
-
let starting = false;
|
|
2405
|
-
const GROUP_MS = 5 * 6e4;
|
|
2406
|
-
function previousShown(i) {
|
|
2407
|
-
let j = i - 1;
|
|
2408
|
-
while (j >= 0 && (discussed().hidden.has(items()[j].id) || view(items()[j].id) === "hide")) j--;
|
|
2409
|
-
return j;
|
|
2410
|
-
}
|
|
2411
|
-
function groupedWithPrevious(i) {
|
|
2412
|
-
const j = previousShown(i);
|
|
2413
|
-
const v = view(items()[i].id);
|
|
2414
|
-
if (v !== "show" && runs().get(items()[i].id)?.first === items()[i].id) return false;
|
|
2415
|
-
if (j >= 0 && view(items()[j].id) !== v) return false;
|
|
2416
|
-
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;
|
|
2417
|
-
const a = items()[j];
|
|
2418
|
-
const b = items()[i];
|
|
2419
|
-
if (!a || !b || a.kind !== b.kind || b.kind !== "user" && b.kind !== "turn") return false;
|
|
2420
|
-
return Date.parse(b.at) - Date.parse(a.at) <= GROUP_MS;
|
|
2421
|
-
}
|
|
2422
|
-
const time2 = (at) => {
|
|
2423
|
-
const d = new Date(at);
|
|
2424
|
-
const clock = d.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
2425
|
-
return d.toDateString() === new Date(now).toDateString() ? clock : `${d.toLocaleDateString([], { weekday: "short", day: "numeric", month: "short" })}, ${clock}`;
|
|
2426
|
-
};
|
|
2427
|
-
const when = (at) => new Date(at).toLocaleString([], {
|
|
2428
|
-
weekday: "short",
|
|
2429
|
-
day: "numeric",
|
|
2430
|
-
month: "short",
|
|
2431
|
-
hour: "2-digit",
|
|
2432
|
-
minute: "2-digit"
|
|
2433
|
-
});
|
|
2434
|
-
let searching = false;
|
|
2435
|
-
const status = derived(() => {
|
|
2436
|
-
if (firstmateChat.connection === "lost") return { dot: "bg-danger", label: "Reconnecting" };
|
|
2437
|
-
if (!session()) return { dot: "bg-muted-foreground", label: "Connecting" };
|
|
2438
|
-
if (session().state === "external") return { dot: "bg-muted-foreground", label: "Read-only" };
|
|
2439
|
-
if (session().state === "starting") return { dot: "animate-pulse bg-sea", label: "Starting" };
|
|
2440
|
-
if (session().state !== "ours") return { dot: "bg-muted-foreground", label: "Not running" };
|
|
2441
|
-
if (!session().canSend) return { dot: "bg-warning", label: "Restart needed" };
|
|
2442
|
-
if (picker()) return { dot: "bg-sea", label: "Asking you" };
|
|
2443
|
-
if (signIn()) return { dot: "bg-warning", label: "Waiting on you to sign in" };
|
|
2444
|
-
if (inTerminal()) return { dot: "bg-warning", label: "Waiting on you in terminal" };
|
|
2445
|
-
if (menu()) return { dot: "bg-sea", label: "Menu open" };
|
|
2446
|
-
return working() ? { dot: "animate-pulse bg-working", label: "Working" } : { dot: "bg-success", label: "Waiting for you" };
|
|
2447
|
-
});
|
|
2448
|
-
let replyTo = null;
|
|
2449
|
-
const captainWords = (text) => parseAttachments(parseThread(parseReply(text).body).text).text;
|
|
2450
|
-
function original(to, before = items().length) {
|
|
2451
|
-
for (let i = Math.min(before, items().length) - 1; i >= 0; i--) {
|
|
2452
|
-
const it = items()[i];
|
|
2453
|
-
if (to.who === "captain" && it.kind === "user" && quotes(to, captainWords(it.text))) return it.id;
|
|
2454
|
-
if (to.who === "firstmate" && it.kind === "turn") for (let pi = it.parts.length - 1; pi >= 0; pi--) {
|
|
2455
|
-
const part = it.parts[pi];
|
|
2456
|
-
if (part.kind === "text" && quotes(to, replyWords(part))) return part.id;
|
|
2457
|
-
}
|
|
2458
|
-
}
|
|
2459
|
-
return null;
|
|
2460
|
-
}
|
|
2461
|
-
let revealed = null;
|
|
2462
|
-
const isLive = (item, pi) => working() && item === lastItem() && item.kind === "turn" && pi === item.parts.length - 1;
|
|
2463
|
-
function replyButton($$renderer3, key, who, text) {
|
|
2464
|
-
$$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">`);
|
|
2465
|
-
Reply($$renderer3, { class: "size-4", "aria-hidden": "true" });
|
|
2466
|
-
$$renderer3.push(`<!----></button>`);
|
|
2467
|
-
}
|
|
2468
|
-
function thumbsButton($$renderer3, key, words) {
|
|
2469
|
-
const on = reactions.has(key);
|
|
2470
|
-
$$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)}>`);
|
|
2471
|
-
Thumbs_up($$renderer3, { class: "size-4", "aria-hidden": "true" });
|
|
2472
|
-
$$renderer3.push(`<!----></button>`);
|
|
2473
|
-
}
|
|
2474
|
-
function quote($$renderer3, to, target) {
|
|
2475
|
-
$$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>`);
|
|
2476
|
-
}
|
|
2477
|
-
function decisionCard($$renderer3, d, asked) {
|
|
2478
|
-
ChatDecision($$renderer3, {
|
|
2479
|
-
decision: d,
|
|
2480
|
-
project: projectName(d.head.projectId),
|
|
2481
|
-
now,
|
|
2482
|
-
asked,
|
|
2483
|
-
thread: threadOwner().get(d.head.cardId) === d.id ? discussed().byCard.get(d.head.cardId) ?? null : null,
|
|
2484
|
-
pending: threadOwner().get(d.head.cardId) === d.id ? asking().get(d.head.cardId) ?? [] : [],
|
|
2485
|
-
focus: firstmateChat.synced && composerBus.decision === d.head.cardId && threadOwner().get(d.head.cardId) === d.id
|
|
2486
|
-
});
|
|
2487
|
-
}
|
|
2488
|
-
function decisionRow($$renderer3, d) {
|
|
2489
|
-
$$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">`);
|
|
2490
|
-
tagOf($$renderer3, decisionTag(d), `decision:${d.head.cardId}`);
|
|
2491
|
-
$$renderer3.push(`<!----></div> `);
|
|
2492
|
-
decisionCard($$renderer3, d, null);
|
|
2493
|
-
$$renderer3.push(`<!----></div></div>`);
|
|
2494
|
-
}
|
|
2495
|
-
function decisionEntry($$renderer3, d) {
|
|
2496
|
-
const key = `d:${d.id}`;
|
|
2497
|
-
const v = view(key);
|
|
2498
|
-
if (v !== "show" && runs().get(key)?.first === key) {
|
|
2499
|
-
$$renderer3.push("<!--[0-->");
|
|
2500
|
-
foldLine($$renderer3, runs().get(key));
|
|
2501
|
-
} else {
|
|
2502
|
-
$$renderer3.push("<!--[-1-->");
|
|
2503
|
-
}
|
|
2504
|
-
$$renderer3.push(`<!--]--> `);
|
|
2505
|
-
if (v === "show" || v === "dim") {
|
|
2506
|
-
$$renderer3.push(`<!--[0--><div${attr_class(clsx(v === "dim" ? "thread-dim" : "contents"))}>`);
|
|
2507
|
-
decisionRow($$renderer3, d);
|
|
2508
|
-
$$renderer3.push(`<!----></div>`);
|
|
2509
|
-
} else {
|
|
2510
|
-
$$renderer3.push("<!--[-1-->");
|
|
2511
|
-
}
|
|
2512
|
-
$$renderer3.push(`<!--]-->`);
|
|
2513
|
-
}
|
|
2514
|
-
function batchEntry($$renderer3, b) {
|
|
2515
|
-
const key = `b:${b.id}`;
|
|
2516
|
-
const v = view(key);
|
|
2517
|
-
if (v !== "show" && runs().get(key)?.first === key) {
|
|
2518
|
-
$$renderer3.push("<!--[0-->");
|
|
2519
|
-
foldLine($$renderer3, runs().get(key));
|
|
2520
|
-
} else {
|
|
2521
|
-
$$renderer3.push("<!--[-1-->");
|
|
2522
|
-
}
|
|
2523
|
-
$$renderer3.push(`<!--]--> `);
|
|
2524
|
-
if (v === "show" || v === "dim") {
|
|
2525
|
-
$$renderer3.push(`<!--[0--><div${attr_class(`flex flex-col gap-1 ${v === "dim" ? "thread-dim" : ""}`)}><div class="msg-tagline">`);
|
|
2526
|
-
tagOf($$renderer3, batchTag(b), `batch:${b.id}`);
|
|
2527
|
-
$$renderer3.push(`<!----></div> `);
|
|
2528
|
-
FeedbackBatch($$renderer3, {
|
|
2529
|
-
batch: b,
|
|
2530
|
-
project: projectName(tasks.find((t) => t.id === b.batch.taskId)?.projectId ?? null)
|
|
2531
|
-
});
|
|
2532
|
-
$$renderer3.push(`<!----></div>`);
|
|
2533
|
-
} else {
|
|
2534
|
-
$$renderer3.push("<!--[-1-->");
|
|
2535
|
-
}
|
|
2536
|
-
$$renderer3.push(`<!--]-->`);
|
|
2537
|
-
}
|
|
2538
|
-
function tagOf($$renderer3, tag, key) {
|
|
2539
|
-
ThreadTag($$renderer3, {
|
|
2540
|
-
tag,
|
|
2541
|
-
threads: moveTo()
|
|
2542
|
-
});
|
|
2543
|
-
}
|
|
2544
|
-
function foldLine($$renderer3, run) {
|
|
2545
|
-
$$renderer3.push(`<button class="thread-fold"${attr("aria-expanded", !!openRuns[run.first])}${attr("data-fold", run.first)}>`);
|
|
2546
|
-
Chevron_right($$renderer3, {
|
|
2547
|
-
class: `size-3.5 shrink-0 transition-transform ${openRuns[run.first] ? "rotate-90" : ""}`,
|
|
2548
|
-
"aria-hidden": "true"
|
|
2549
|
-
});
|
|
2550
|
-
$$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"><!--[-->`);
|
|
2551
|
-
const each_array = ensure_array_like(run.topics);
|
|
2552
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
2553
|
-
let t = each_array[$$index];
|
|
2554
|
-
$$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>`);
|
|
2555
|
-
}
|
|
2556
|
-
$$renderer3.push(`<!--]--></span> `);
|
|
2557
|
-
if (run.from && run.to) {
|
|
2558
|
-
$$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>`);
|
|
2559
|
-
} else {
|
|
2560
|
-
$$renderer3.push("<!--[-1-->");
|
|
2561
|
-
}
|
|
2562
|
-
$$renderer3.push(`<!--]--></button>`);
|
|
2563
|
-
}
|
|
2564
|
-
let $$settled = true;
|
|
2565
|
-
let $$inner_renderer;
|
|
2566
|
-
function $$render_inner($$renderer3) {
|
|
2567
|
-
$$renderer3.push(`<section class="chat-grid relative flex min-h-0 min-w-0 flex-1 flex-col bg-panel" aria-label="Firstmate">`);
|
|
2568
|
-
{
|
|
2569
|
-
$$renderer3.push("<!--[-1-->");
|
|
2570
|
-
}
|
|
2571
|
-
$$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> `);
|
|
2572
|
-
if (chat().title) {
|
|
2573
|
-
$$renderer3.push(`<!--[0--><span class="hidden truncate text-[1.02rem] text-foreground/80 sm:inline">${escape_html(chat().title)}</span>`);
|
|
2574
|
-
} else {
|
|
2575
|
-
$$renderer3.push("<!--[-1-->");
|
|
2576
|
-
}
|
|
2577
|
-
$$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">`);
|
|
2578
|
-
if (HIcon()) {
|
|
2579
|
-
$$renderer3.push("<!--[-->");
|
|
2580
|
-
HIcon()($$renderer3, {
|
|
2581
|
-
class: `size-3.5 ${stringify(HEALTH_TEXT[health.tone])}`,
|
|
2582
|
-
"aria-hidden": "true"
|
|
2583
|
-
});
|
|
2584
|
-
$$renderer3.push("<!--]-->");
|
|
2585
|
-
} else {
|
|
2586
|
-
$$renderer3.push("<!--[!-->");
|
|
2587
|
-
$$renderer3.push("<!--]-->");
|
|
2588
|
-
}
|
|
2589
|
-
$$renderer3.push(` <span class="font-medium">${escape_html(health.label)}</span> <span class="hidden text-muted-foreground md:inline">· `);
|
|
2590
|
-
if (checking()) {
|
|
2591
|
-
$$renderer3.push(`<!--[0--><span class="inline-flex items-center gap-1">`);
|
|
2592
|
-
Loader_circle($$renderer3, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
2593
|
-
$$renderer3.push(`<!---->checking now</span>`);
|
|
2594
|
-
} else if (lastCheck()) {
|
|
2595
|
-
$$renderer3.push(`<!--[1-->checked ${escape_html(ago(lastCheck().at, now))}`);
|
|
2596
|
-
} else {
|
|
2597
|
-
$$renderer3.push(`<!--[-1-->no checks yet`);
|
|
2598
|
-
}
|
|
2599
|
-
$$renderer3.push(`<!--]--></span></button> `);
|
|
2600
|
-
{
|
|
2601
|
-
$$renderer3.push("<!--[-1-->");
|
|
2602
|
-
}
|
|
2603
|
-
$$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> <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", "Search the chat history")}${attr("aria-pressed", searching)} title="Search every conversation with Firstmate">`);
|
|
2604
|
-
Search($$renderer3, { class: "size-4" });
|
|
2605
|
-
$$renderer3.push(`<!----></button> `);
|
|
2606
|
-
if (session()?.state === "ours") {
|
|
2607
|
-
$$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">`);
|
|
2608
|
-
Square_terminal($$renderer3, { class: "size-4" });
|
|
2609
|
-
$$renderer3.push(`<!----></button>`);
|
|
2610
|
-
} else {
|
|
2611
|
-
$$renderer3.push("<!--[-1-->");
|
|
2612
|
-
}
|
|
2613
|
-
$$renderer3.push(`<!--]--> `);
|
|
2614
|
-
if (onSwapRail && railOpen) {
|
|
2615
|
-
$$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")}>`);
|
|
2616
|
-
Arrow_left_right($$renderer3, { class: "size-4" });
|
|
2617
|
-
$$renderer3.push(`<!----></button>`);
|
|
2618
|
-
} else {
|
|
2619
|
-
$$renderer3.push("<!--[-1-->");
|
|
2620
|
-
}
|
|
2621
|
-
$$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)}>`);
|
|
2622
|
-
if (railSide === "left") {
|
|
2623
|
-
$$renderer3.push("<!--[0-->");
|
|
2624
|
-
Panel_left($$renderer3, { class: "size-4" });
|
|
2625
|
-
} else {
|
|
2626
|
-
$$renderer3.push("<!--[-1-->");
|
|
2627
|
-
Panel_right($$renderer3, { class: "size-4" });
|
|
2628
|
-
}
|
|
2629
|
-
$$renderer3.push(`<!--]--> `);
|
|
2630
|
-
if (waiting && !railOpen) {
|
|
2631
|
-
$$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>`);
|
|
2632
|
-
} else {
|
|
2633
|
-
$$renderer3.push("<!--[-1-->");
|
|
2634
|
-
}
|
|
2635
|
-
$$renderer3.push(`<!--]--></button></div></div> `);
|
|
2636
|
-
{
|
|
2637
|
-
$$renderer3.push("<!--[-1-->");
|
|
2638
|
-
}
|
|
2639
|
-
$$renderer3.push(`<!--]--> <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"><div${attr("data-chat-history", firstmateChat.older)}>`);
|
|
2640
|
-
if (firstmateChat.older === "loading") {
|
|
2641
|
-
$$renderer3.push(`<!--[0--><p class="history-edge" role="status">`);
|
|
2642
|
-
Loader_circle($$renderer3, { class: "size-3.5 animate-spin", "aria-hidden": "true" });
|
|
2643
|
-
$$renderer3.push(`<!---->Reading earlier
|
|
2644
|
-
messages…</p>`);
|
|
2645
|
-
} else if (firstmateChat.older === "failed") {
|
|
2646
|
-
$$renderer3.push(`<!--[1--><p class="history-edge" role="alert">Earlier messages could not be read. <button class="cursor-pointer underline underline-offset-2 hover:text-foreground">Try again</button></p>`);
|
|
2647
|
-
} else if (firstmateChat.older === "more") {
|
|
2648
|
-
$$renderer3.push(`<!--[2--><button class="history-edge cursor-pointer hover:text-foreground">Show earlier messages</button>`);
|
|
2649
|
-
} else if (firstmateChat.older === "none" && items().length) {
|
|
2650
|
-
$$renderer3.push(`<!--[3--><p class="history-edge">The chat history begins here.</p>`);
|
|
2651
|
-
} else if (firstmateChat.older === "unavailable" && firstmateChat.source?.truncated) {
|
|
2652
|
-
$$renderer3.push(`<!--[4--><p class="history-edge">Earlier messages are not shown here; the full conversation is in Firstmate’s terminal.</p>`);
|
|
2653
|
-
} else {
|
|
2654
|
-
$$renderer3.push("<!--[-1-->");
|
|
2655
|
-
}
|
|
2656
|
-
$$renderer3.push(`<!--]--></div> `);
|
|
2657
|
-
if (session()?.state === "ours" && !session().canSend) {
|
|
2658
|
-
$$renderer3.push(`<!--[0--><div class="my-8 flex max-w-lg flex-col items-start gap-3 rounded-lg border border-warning/40 bg-warning/5 p-4" role="alert" data-session-recovery=""><p class="font-medium">Restart needed to connect chat</p> <p class="text-sm text-muted-foreground">${escape_html(session().reason)}</p> <button class="cursor-pointer rounded-lg bg-foreground px-4 py-2 text-sm font-medium text-background">Open Firstmate’s terminal</button> <p class="text-sm text-muted-foreground">Exit the coding tool from its prompt. Closing Wheelhouse alone leaves it running. Then
|
|
2659
|
-
choose “Start Firstmate here” to launch it with chat connected.</p></div>`);
|
|
2660
|
-
} else if (session() && session().state !== "ours" && session().state !== "external") {
|
|
2661
|
-
$$renderer3.push(`<!--[1--><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> `);
|
|
2662
|
-
if (session().reason && session().state !== "starting") {
|
|
2663
|
-
$$renderer3.push(`<!--[0--><p class="text-sm text-muted-foreground">${escape_html(session().reason)}</p>`);
|
|
2664
|
-
} else {
|
|
2665
|
-
$$renderer3.push("<!--[-1-->");
|
|
2666
|
-
}
|
|
2667
|
-
$$renderer3.push(`<!--]--> `);
|
|
2668
|
-
if (session().state === "none") {
|
|
2669
|
-
$$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)}>`);
|
|
2670
|
-
{
|
|
2671
|
-
$$renderer3.push("<!--[-1-->");
|
|
2672
|
-
}
|
|
2673
|
-
$$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> `);
|
|
2674
|
-
{
|
|
2675
|
-
$$renderer3.push("<!--[-1-->");
|
|
2676
|
-
}
|
|
2677
|
-
$$renderer3.push(`<!--]-->`);
|
|
2678
|
-
} else {
|
|
2679
|
-
$$renderer3.push("<!--[-1-->");
|
|
2680
|
-
}
|
|
2681
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
2682
|
-
} else if (!items().length) {
|
|
2683
|
-
$$renderer3.push(`<!--[2--><p class="py-20 text-sm text-muted-foreground">${escape_html(session() ? "No messages yet. Say hello to Firstmate." : "Reading the conversation…")}</p>`);
|
|
2684
|
-
} else {
|
|
2685
|
-
$$renderer3.push("<!--[-1-->");
|
|
2686
|
-
}
|
|
2687
|
-
$$renderer3.push(`<!--]--> `);
|
|
2688
|
-
if (current()) {
|
|
2689
|
-
$$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)}
|
|
2690
|
-
${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>`);
|
|
2691
|
-
} else {
|
|
2692
|
-
$$renderer3.push("<!--[-1-->");
|
|
2693
|
-
}
|
|
2694
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2695
|
-
const each_array_3 = ensure_array_like(items());
|
|
2696
|
-
for (let i = 0, $$length = each_array_3.length; i < $$length; i++) {
|
|
2697
|
-
let item = each_array_3[i];
|
|
2698
|
-
const grouped = groupedWithPrevious(i);
|
|
2699
|
-
const v = view(item.id);
|
|
2700
|
-
$$renderer3.push(`<!--[-->`);
|
|
2701
|
-
const each_array_4 = ensure_array_like(placed().before.get(i) ?? []);
|
|
2702
|
-
for (let $$index_3 = 0, $$length2 = each_array_4.length; $$index_3 < $$length2; $$index_3++) {
|
|
2703
|
-
let d = each_array_4[$$index_3];
|
|
2704
|
-
decisionEntry($$renderer3, d);
|
|
2705
|
-
}
|
|
2706
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2707
|
-
const each_array_5 = ensure_array_like(batches().before.get(i) ?? []);
|
|
2708
|
-
for (let $$index_4 = 0, $$length2 = each_array_5.length; $$index_4 < $$length2; $$index_4++) {
|
|
2709
|
-
let b = each_array_5[$$index_4];
|
|
2710
|
-
batchEntry($$renderer3, b);
|
|
2711
|
-
}
|
|
2712
|
-
$$renderer3.push(`<!--]--> `);
|
|
2713
|
-
if (discussed().hidden.has(item.id)) {
|
|
2714
|
-
$$renderer3.push("<!--[0-->");
|
|
2715
|
-
} else if (v !== "show" && runs().get(item.id)?.first === item.id) {
|
|
2716
|
-
$$renderer3.push("<!--[1-->");
|
|
2717
|
-
foldLine($$renderer3, runs().get(item.id));
|
|
2718
|
-
} else {
|
|
2719
|
-
$$renderer3.push("<!--[-1-->");
|
|
2720
|
-
}
|
|
2721
|
-
$$renderer3.push(`<!--]--> `);
|
|
2722
|
-
if (discussed().hidden.has(item.id) || v === "hide" || v === "line") {
|
|
2723
|
-
$$renderer3.push("<!--[0-->");
|
|
2724
|
-
} else if (item.kind === "user") {
|
|
2725
|
-
$$renderer3.push("<!--[1-->");
|
|
2726
|
-
const reply = parseReply(item.text);
|
|
2727
|
-
const sent = parseAttachments(parseThread(reply.body).text);
|
|
2728
|
-
const tag = tagged().users.get(item.id) ?? UNSORTED_TAG;
|
|
2729
|
-
const prevAt = previousShown(i);
|
|
2730
|
-
$$renderer3.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""} ${v === "dim" ? "thread-dim" : ""}`)}${attr("aria-label", `You, ${stringify(time2(item.at))}`)}>`);
|
|
2731
|
-
if (grouped) {
|
|
2732
|
-
$$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
2733
|
-
} else {
|
|
2734
|
-
$$renderer3.push(`<!--[-1--><span class="captain-avatar">C</span>`);
|
|
2735
|
-
}
|
|
2736
|
-
$$renderer3.push(`<!--]--> <div class="min-w-0 flex-1">`);
|
|
2737
|
-
if (!grouped) {
|
|
2738
|
-
$$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
|
|
2739
|
-
if (item.queued) {
|
|
2740
|
-
$$renderer3.push(`<!--[0--><span>· sent while Firstmate was working</span>`);
|
|
2741
|
-
} else {
|
|
2742
|
-
$$renderer3.push("<!--[-1-->");
|
|
2743
|
-
}
|
|
2744
|
-
$$renderer3.push(`<!--]--> `);
|
|
2745
|
-
tagOf($$renderer3, tag, item.id);
|
|
2746
|
-
$$renderer3.push(`<!----></header>`);
|
|
2747
|
-
} else if (prevAt < 0 || lastTopic(items()[prevAt]) !== tag.topic) {
|
|
2748
|
-
$$renderer3.push(`<!--[1--><div class="msg-tagline">`);
|
|
2749
|
-
tagOf($$renderer3, tag, item.id);
|
|
2750
|
-
$$renderer3.push(`<!----></div>`);
|
|
2751
|
-
} else {
|
|
2752
|
-
$$renderer3.push("<!--[-1-->");
|
|
2753
|
-
}
|
|
2754
|
-
$$renderer3.push(`<!--]--> `);
|
|
2755
|
-
if (reply.to || sent.text) {
|
|
2756
|
-
$$renderer3.push(`<!--[0--><div class="bubble-row"><div${attr_class(`bubble bubble-captain ${item.command ? "font-mono text-sm" : ""}`)}${attr("data-bubble", item.id)}>`);
|
|
2757
|
-
if (reply.to) {
|
|
2758
|
-
$$renderer3.push("<!--[0-->");
|
|
2759
|
-
quote($$renderer3, reply.to, original(reply.to, i));
|
|
2760
|
-
} else {
|
|
2761
|
-
$$renderer3.push("<!--[-1-->");
|
|
2762
|
-
}
|
|
2763
|
-
$$renderer3.push(`<!--]-->`);
|
|
2764
|
-
captainText($$renderer3, sent.text, true);
|
|
2765
|
-
$$renderer3.push(`<!----></div> `);
|
|
2766
|
-
if (via() && !item.command) {
|
|
2767
|
-
$$renderer3.push("<!--[0-->");
|
|
2768
|
-
replyButton($$renderer3, item.id, "captain", item.text);
|
|
2769
|
-
} else {
|
|
2770
|
-
$$renderer3.push("<!--[-1-->");
|
|
2771
|
-
}
|
|
2772
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
2773
|
-
} else {
|
|
2774
|
-
$$renderer3.push("<!--[-1-->");
|
|
2775
|
-
}
|
|
2776
|
-
$$renderer3.push(`<!--]--> `);
|
|
2777
|
-
if (sent.files.length) {
|
|
2778
|
-
$$renderer3.push("<!--[0-->");
|
|
2779
|
-
SentFiles($$renderer3, { files: sent.files });
|
|
2780
|
-
} else {
|
|
2781
|
-
$$renderer3.push("<!--[-1-->");
|
|
2782
|
-
}
|
|
2783
|
-
$$renderer3.push(`<!--]--></div></article>`);
|
|
2784
|
-
} else if (item.kind === "session") {
|
|
2785
|
-
$$renderer3.push(`<!--[2--><div class="session-divider" role="separator"${attr("aria-label", `${item.first ? "Firstmate session started" : "Firstmate restarted"}, ${stringify(when(item.at))}`)} data-session-divider=""><span>${escape_html(item.first ? "Firstmate session started" : "Firstmate restarted")} · <time${attr("datetime", item.at)}>${escape_html(when(item.at))}</time></span></div>`);
|
|
2786
|
-
} else if (item.kind === "output") {
|
|
2787
|
-
$$renderer3.push(`<!--[3--><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>`);
|
|
2788
|
-
} else if (item.kind === "notice") {
|
|
2789
|
-
$$renderer3.push(`<!--[4--><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])}>`);
|
|
2790
|
-
Bell($$renderer3, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
2791
|
-
$$renderer3.push(`<!----> <span class="truncate">${escape_html(item.title)} · ${escape_html(time2(item.at))}</span> `);
|
|
2792
|
-
Chevron_right($$renderer3, {
|
|
2793
|
-
class: `size-3.5 shrink-0 transition-transform ${openNotice[item.id] ? "rotate-90" : ""}`,
|
|
2794
|
-
"aria-hidden": "true"
|
|
2795
|
-
});
|
|
2796
|
-
$$renderer3.push(`<!----></button> `);
|
|
2797
|
-
if (openNotice[item.id]) {
|
|
2798
|
-
$$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">`);
|
|
2799
|
-
LinkedText($$renderer3, { text: item.detail });
|
|
2800
|
-
$$renderer3.push(`<!----></div>`);
|
|
2801
|
-
} else {
|
|
2802
|
-
$$renderer3.push("<!--[-1-->");
|
|
2803
|
-
}
|
|
2804
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
2805
|
-
} else {
|
|
2806
|
-
$$renderer3.push("<!--[-1-->");
|
|
2807
|
-
const prevAt = previousShown(i);
|
|
2808
|
-
const lay = layoutTurn(item, v === "dim" || !current(), grouped, prevAt >= 0 ? lastTopic(items()[prevAt]) : null);
|
|
2809
|
-
$$renderer3.push(`<article${attr_class(`msg msg-firstmate ${grouped ? "msg-grouped" : ""} ${v === "dim" ? "thread-dim" : ""}`)}${attr("aria-label", `Firstmate, ${stringify(time2(item.at))}`)}>`);
|
|
2810
|
-
if (grouped) {
|
|
2811
|
-
$$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
2812
|
-
} else {
|
|
2813
|
-
$$renderer3.push("<!--[-1-->");
|
|
2814
|
-
Avatar($$renderer3, { class: "msg-avatar size-8" });
|
|
2815
|
-
}
|
|
2816
|
-
$$renderer3.push(`<!--]--> <div class="flex min-w-0 flex-1 flex-col gap-2">`);
|
|
2817
|
-
if (!grouped) {
|
|
2818
|
-
$$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">Firstmate</span><time${attr("datetime", item.at)}>${escape_html(time2(item.at))}</time> `);
|
|
2819
|
-
if (lay.head) {
|
|
2820
|
-
$$renderer3.push("<!--[0-->");
|
|
2821
|
-
tagOf($$renderer3, lay.head.tag, lay.head.key);
|
|
2822
|
-
} else {
|
|
2823
|
-
$$renderer3.push("<!--[-1-->");
|
|
2824
|
-
}
|
|
2825
|
-
$$renderer3.push(`<!--]--></header>`);
|
|
2826
|
-
} else {
|
|
2827
|
-
$$renderer3.push("<!--[-1-->");
|
|
2828
|
-
}
|
|
2829
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2830
|
-
const each_array_6 = ensure_array_like(item.parts);
|
|
2831
|
-
for (let pi = 0, $$length2 = each_array_6.length; pi < $$length2; pi++) {
|
|
2832
|
-
let part = each_array_6[pi];
|
|
2833
|
-
if (part.kind === "text") {
|
|
2834
|
-
$$renderer3.push("<!--[0-->");
|
|
2835
|
-
const asked = forms().get(part.id);
|
|
2836
|
-
const words = replyWords(part);
|
|
2837
|
-
const shown2 = lay.parts.get(part.id);
|
|
2838
|
-
const tracked = linked().get(part.id);
|
|
2839
|
-
const again = formLinks().earlier.get(part.id);
|
|
2840
|
-
if (shown2?.above) {
|
|
2841
|
-
$$renderer3.push(`<!--[0--><div class="msg-tagline -mb-1">`);
|
|
2842
|
-
tagOf($$renderer3, shown2.above.tag, shown2.above.key);
|
|
2843
|
-
$$renderer3.push(`<!----></div>`);
|
|
2844
|
-
} else {
|
|
2845
|
-
$$renderer3.push("<!--[-1-->");
|
|
2846
|
-
}
|
|
2847
|
-
$$renderer3.push(`<!--]--> `);
|
|
2848
|
-
if (words && shown2?.secs.length) {
|
|
2849
|
-
$$renderer3.push("<!--[0-->");
|
|
2850
|
-
const brief = isBriefing(words);
|
|
2851
|
-
$$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)}>`);
|
|
2852
|
-
if (brief) {
|
|
2853
|
-
$$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>`);
|
|
2854
|
-
} else {
|
|
2855
|
-
$$renderer3.push("<!--[-1-->");
|
|
2856
|
-
}
|
|
2857
|
-
$$renderer3.push(`<!--]--> `);
|
|
2858
|
-
if (shown2.secs.length > 1) {
|
|
2859
|
-
$$renderer3.push(`<!--[0--><!--[-->`);
|
|
2860
|
-
const each_array_7 = ensure_array_like(shown2.secs);
|
|
2861
|
-
for (let $$index_5 = 0, $$length3 = each_array_7.length; $$index_5 < $$length3; $$index_5++) {
|
|
2862
|
-
let sec = each_array_7[$$index_5];
|
|
2863
|
-
if (sec.intro) {
|
|
2864
|
-
$$renderer3.push(`<!--[0--><div class="mb-3">${html(md(sec.text))}</div>`);
|
|
2865
|
-
} else {
|
|
2866
|
-
$$renderer3.push(`<!--[-1--><div class="thread-section"${attr("data-hue", threadHue(sec.tag.topic) ?? void 0)}><div class="mb-1">`);
|
|
2867
|
-
tagOf($$renderer3, sec.tag, sec.key);
|
|
2868
|
-
$$renderer3.push(`<!----></div> ${html(md(sec.text))}</div>`);
|
|
2869
|
-
}
|
|
2870
|
-
$$renderer3.push(`<!--]-->`);
|
|
2871
|
-
}
|
|
2872
|
-
$$renderer3.push(`<!--]-->`);
|
|
2873
|
-
} else {
|
|
2874
|
-
$$renderer3.push(`<!--[-1-->${html(md(shown2.whole ? words : shown2.secs[0].text))}`);
|
|
2875
|
-
}
|
|
2876
|
-
$$renderer3.push(`<!--]-->`);
|
|
2877
|
-
if (reactions.has(part.id)) {
|
|
2878
|
-
$$renderer3.push(`<!--[0--><span class="thumbs-mark" role="img" aria-label="You gave this a thumbs-up">👍</span>`);
|
|
2879
|
-
} else {
|
|
2880
|
-
$$renderer3.push("<!--[-1-->");
|
|
2881
|
-
}
|
|
2882
|
-
$$renderer3.push(`<!--]--></div> `);
|
|
2883
|
-
if (via()) {
|
|
2884
|
-
$$renderer3.push("<!--[0-->");
|
|
2885
|
-
replyButton($$renderer3, part.id, "firstmate");
|
|
2886
|
-
$$renderer3.push(`<!---->`);
|
|
2887
|
-
thumbsButton($$renderer3, part.id);
|
|
2888
|
-
$$renderer3.push(`<!---->`);
|
|
2889
|
-
} else {
|
|
2890
|
-
$$renderer3.push("<!--[-1-->");
|
|
2891
|
-
}
|
|
2892
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
2893
|
-
} else {
|
|
2894
|
-
$$renderer3.push("<!--[-1-->");
|
|
2895
|
-
}
|
|
2896
|
-
$$renderer3.push(`<!--]--> `);
|
|
2897
|
-
if (asked && tracked && shown2?.secs.length) {
|
|
2898
|
-
$$renderer3.push("<!--[0-->");
|
|
2899
|
-
decisionCard($$renderer3, tracked, asked.form);
|
|
2900
|
-
} else if (asked && again && shown2?.secs.length) {
|
|
2901
|
-
$$renderer3.push(`<!--[1--><p class="flex w-full max-w-[min(100%,40rem)] items-center gap-1.5 rounded-lg border bg-card/60 px-4 py-2 text-xs text-muted-foreground sm:px-5" data-chat-form="replaced"${attr("data-asked-again", again.id)}>`);
|
|
2902
|
-
Message_circle_question_mark($$renderer3, { class: "size-3.5 shrink-0", "aria-hidden": "true" });
|
|
2903
|
-
$$renderer3.push(`<!----><span>Firstmate asked this decision again below: “${escape_html(again.card?.title ?? again.head.question)}”</span></p>`);
|
|
2904
|
-
} else if (asked && shown2?.secs.length) {
|
|
2905
|
-
$$renderer3.push(`<!--[2--><div${attr_class(`w-full max-w-[min(100%,40rem)] rounded-lg border border-dashed bg-card/60 px-4 pt-2 pb-3 sm:px-5 ${asked.active ? "border-sea/60" : ""}`)}${attr("data-chat-form", asked.active ? "open" : asked.decided !== null ? "answered" : asked.dismissed !== null ? "dismissed" : "replaced")} data-quick-question=""><p class="flex items-center gap-1.5 text-xs text-muted-foreground" title="Asked here only: it is not on the Decisions page, and answering it closes nothing there">`);
|
|
2906
|
-
Message_circle_question_mark($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
|
|
2907
|
-
$$renderer3.push(`<!----><span>Quick question · not a tracked decision</span></p> `);
|
|
2908
|
-
DecisionForm($$renderer3, {
|
|
2909
|
-
form: asked.form,
|
|
2910
|
-
name: part.id,
|
|
2911
|
-
canAnswer: asked.active && !!via() && !held(),
|
|
2912
|
-
decided: asked.decided,
|
|
2913
|
-
dismissed: asked.dismissed,
|
|
2914
|
-
onAnswer: (a, note) => decide(part.id, a, note),
|
|
2915
|
-
onDismiss: (reason) => dismissForm(part.id, reason)
|
|
2916
|
-
});
|
|
2917
|
-
$$renderer3.push(`<!----> `);
|
|
2918
|
-
if (!asked.active && asked.decided === null && asked.dismissed === null) {
|
|
2919
|
-
$$renderer3.push(`<!--[0--><p class="mt-2 text-xs text-muted-foreground">A later question from Firstmate replaced this one.</p>`);
|
|
2920
|
-
} else {
|
|
2921
|
-
$$renderer3.push("<!--[-1-->");
|
|
2922
|
-
}
|
|
2923
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
2924
|
-
} else {
|
|
2925
|
-
$$renderer3.push("<!--[-1-->");
|
|
2926
|
-
}
|
|
2927
|
-
$$renderer3.push(`<!--]--> `);
|
|
2928
|
-
if (shown2?.secs.length) {
|
|
2929
|
-
$$renderer3.push(`<!--[0--><!--[-->`);
|
|
2930
|
-
const each_array_8 = ensure_array_like(asks().get(part.id) ?? []);
|
|
2931
|
-
for (let ai = 0, $$length3 = each_array_8.length; ai < $$length3; ai++) {
|
|
2932
|
-
let a = each_array_8[ai];
|
|
2933
|
-
$$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")}>`);
|
|
2934
|
-
Key_round($$renderer3, {
|
|
2935
|
-
class: "mt-0.5 size-4 shrink-0 text-brass",
|
|
2936
|
-
"aria-hidden": "true"
|
|
2937
|
-
});
|
|
2938
|
-
$$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> `);
|
|
2939
|
-
if (a.request.purpose) {
|
|
2940
|
-
$$renderer3.push(`<!--[0--><p class="mt-0.5 text-sm text-muted-foreground">${escape_html(a.request.purpose)}</p>`);
|
|
2941
|
-
} else {
|
|
2942
|
-
$$renderer3.push("<!--[-1-->");
|
|
2943
|
-
}
|
|
2944
|
-
$$renderer3.push(`<!--]--> `);
|
|
2945
|
-
if (a.stored) {
|
|
2946
|
-
$$renderer3.push(`<!--[0--><p class="mt-1 flex items-center gap-1 text-xs text-muted-foreground">`);
|
|
2947
|
-
Circle_check($$renderer3, { class: "size-3.5 text-success", "aria-hidden": "true" });
|
|
2948
|
-
$$renderer3.push(`<!---->Stored in the vault</p>`);
|
|
2949
|
-
} else {
|
|
2950
|
-
$$renderer3.push("<!--[-1-->");
|
|
2951
|
-
}
|
|
2952
|
-
$$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>`);
|
|
2953
|
-
}
|
|
2954
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2955
|
-
const each_array_9 = ensure_array_like(matchBridgeCards(part.text, pluginEntries));
|
|
2956
|
-
for (let $$index_7 = 0, $$length3 = each_array_9.length; $$index_7 < $$length3; $$index_7++) {
|
|
2957
|
-
let { entry, card } = each_array_9[$$index_7];
|
|
2958
|
-
$$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">`);
|
|
2959
|
-
Blocks($$renderer3, { blocks: card.blocks });
|
|
2960
|
-
$$renderer3.push(`<!----></div></div>`);
|
|
2961
|
-
}
|
|
2962
|
-
$$renderer3.push(`<!--]-->`);
|
|
2963
|
-
} else {
|
|
2964
|
-
$$renderer3.push("<!--[-1-->");
|
|
2965
|
-
}
|
|
2966
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
2967
|
-
const each_array_10 = ensure_array_like(previews().get(part.id) ?? []);
|
|
2968
|
-
for (let $$index_8 = 0, $$length3 = each_array_10.length; $$index_8 < $$length3; $$index_8++) {
|
|
2969
|
-
let pv = each_array_10[$$index_8];
|
|
2970
|
-
if (!pv.task) {
|
|
2971
|
-
$$renderer3.push("<!--[0-->");
|
|
2972
|
-
ChatPreview($$renderer3, { preview: pv, now });
|
|
2973
|
-
} else {
|
|
2974
|
-
$$renderer3.push("<!--[-1-->");
|
|
2975
|
-
const ptag = previewTag(pv.task.id, pv.task.projectId);
|
|
2976
|
-
if (v === "dim" || !current() || ptag.topic === current()) {
|
|
2977
|
-
$$renderer3.push(`<!--[0--><div class="flex flex-col gap-1"><div class="msg-tagline">`);
|
|
2978
|
-
tagOf($$renderer3, ptag, `preview:${pv.task.id}`);
|
|
2979
|
-
$$renderer3.push(`<!----></div> `);
|
|
2980
|
-
ChatPreview($$renderer3, { preview: pv, project: projectName(pv.task.projectId), now });
|
|
2981
|
-
$$renderer3.push(`<!----></div>`);
|
|
2982
|
-
} else {
|
|
2983
|
-
$$renderer3.push("<!--[-1-->");
|
|
2984
|
-
}
|
|
2985
|
-
$$renderer3.push(`<!--]-->`);
|
|
2986
|
-
}
|
|
2987
|
-
$$renderer3.push(`<!--]-->`);
|
|
2988
|
-
}
|
|
2989
|
-
$$renderer3.push(`<!--]-->`);
|
|
2990
|
-
} else if (part.kind === "question") {
|
|
2991
|
-
$$renderer3.push("<!--[1-->");
|
|
2992
|
-
QuestionCard($$renderer3, { part });
|
|
2993
|
-
} else {
|
|
2994
|
-
$$renderer3.push("<!--[-1-->");
|
|
2995
|
-
Activity($$renderer3, { steps: part.steps, live: isLive(item, pi) });
|
|
2996
|
-
$$renderer3.push(`<!----> <!--[-->`);
|
|
2997
|
-
const each_array_11 = ensure_array_like(part.steps);
|
|
2998
|
-
for (let $$index_9 = 0, $$length3 = each_array_11.length; $$index_9 < $$length3; $$index_9++) {
|
|
2999
|
-
let step = each_array_11[$$index_9];
|
|
3000
|
-
if (apps[step.id]) {
|
|
3001
|
-
$$renderer3.push("<!--[0-->");
|
|
3002
|
-
var bind_get = () => !collapsedApps[step.id];
|
|
3003
|
-
var bind_set = (v2) => collapsedApps[step.id] = !v2;
|
|
3004
|
-
ChatApp($$renderer3, {
|
|
3005
|
-
id: step.id,
|
|
3006
|
-
app: apps[step.id],
|
|
3007
|
-
get open() {
|
|
3008
|
-
return bind_get();
|
|
3009
|
-
},
|
|
3010
|
-
set open($$value) {
|
|
3011
|
-
bind_set($$value);
|
|
3012
|
-
}
|
|
3013
|
-
});
|
|
3014
|
-
} else {
|
|
3015
|
-
$$renderer3.push("<!--[-1-->");
|
|
3016
|
-
}
|
|
3017
|
-
$$renderer3.push(`<!--]-->`);
|
|
3018
|
-
}
|
|
3019
|
-
$$renderer3.push(`<!--]-->`);
|
|
3020
|
-
}
|
|
3021
|
-
$$renderer3.push(`<!--]-->`);
|
|
3022
|
-
}
|
|
3023
|
-
$$renderer3.push(`<!--]--> `);
|
|
3024
|
-
if (lay.hidden) {
|
|
3025
|
-
$$renderer3.push(`<!--[0--><span class="text-xs text-muted-foreground" data-other-threads="">+ ${escape_html(lay.hidden)}
|
|
3026
|
-
${escape_html(lay.hidden === 1 ? "part" : "parts")} about other threads</span>`);
|
|
3027
|
-
} else {
|
|
3028
|
-
$$renderer3.push("<!--[-1-->");
|
|
3029
|
-
}
|
|
3030
|
-
$$renderer3.push(`<!--]--> `);
|
|
3031
|
-
if (item.interrupted) {
|
|
3032
|
-
$$renderer3.push(`<!--[0--><span class="text-xs text-muted-foreground">Stopped</span>`);
|
|
3033
|
-
} else if (item.done && item.durationMs) {
|
|
3034
|
-
$$renderer3.push(`<!--[1--><span class="worked-for">Worked for ${escape_html(duration(item.durationMs))}</span>`);
|
|
3035
|
-
} else {
|
|
3036
|
-
$$renderer3.push("<!--[-1-->");
|
|
3037
|
-
}
|
|
3038
|
-
$$renderer3.push(`<!--]--></div></article>`);
|
|
3039
|
-
}
|
|
3040
|
-
$$renderer3.push(`<!--]-->`);
|
|
3041
|
-
}
|
|
3042
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
3043
|
-
const each_array_12 = ensure_array_like(placed().end);
|
|
3044
|
-
for (let $$index_12 = 0, $$length = each_array_12.length; $$index_12 < $$length; $$index_12++) {
|
|
3045
|
-
let d = each_array_12[$$index_12];
|
|
3046
|
-
decisionEntry($$renderer3, d);
|
|
3047
|
-
}
|
|
3048
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
3049
|
-
const each_array_13 = ensure_array_like(batches().end);
|
|
3050
|
-
for (let $$index_13 = 0, $$length = each_array_13.length; $$index_13 < $$length; $$index_13++) {
|
|
3051
|
-
let b = each_array_13[$$index_13];
|
|
3052
|
-
batchEntry($$renderer3, b);
|
|
3053
|
-
}
|
|
3054
|
-
$$renderer3.push(`<!--]--> <!--[-->`);
|
|
3055
|
-
const each_array_14 = ensure_array_like(chatPending());
|
|
3056
|
-
for (let pi = 0, $$length = each_array_14.length; pi < $$length; pi++) {
|
|
3057
|
-
let p = each_array_14[pi];
|
|
3058
|
-
const grouped = pi > 0 || lastItem()?.kind === "user";
|
|
3059
|
-
const reply = parseReply(p.text);
|
|
3060
|
-
const sent = parseAttachments(parseThread(reply.body).text);
|
|
3061
|
-
$$renderer3.push(`<article${attr_class(`msg msg-captain ${grouped ? "msg-grouped" : ""}`)}${attr("data-pending", p.state)}${attr("aria-label", `You, ${stringify(pendingLabel(p))}`)}>`);
|
|
3062
|
-
if (grouped) {
|
|
3063
|
-
$$renderer3.push(`<!--[0--><span class="msg-gutter" aria-hidden="true"></span>`);
|
|
3064
|
-
} else {
|
|
3065
|
-
$$renderer3.push(`<!--[-1--><span class="captain-avatar">C</span>`);
|
|
3066
|
-
}
|
|
3067
|
-
$$renderer3.push(`<!--]--> <div class="min-w-0 flex-1">`);
|
|
3068
|
-
if (!grouped) {
|
|
3069
|
-
$$renderer3.push(`<!--[0--><header class="msg-head"><span class="msg-name">You</span></header>`);
|
|
3070
|
-
} else {
|
|
3071
|
-
$$renderer3.push("<!--[-1-->");
|
|
3072
|
-
}
|
|
3073
|
-
$$renderer3.push(`<!--]--> `);
|
|
3074
|
-
if (reply.to || sent.text) {
|
|
3075
|
-
$$renderer3.push(`<!--[0--><div${attr_class(`bubble bubble-captain border-dashed ${p.state === "failed" ? "border-danger/60" : "opacity-60"}`)}>`);
|
|
3076
|
-
if (reply.to) {
|
|
3077
|
-
$$renderer3.push("<!--[0-->");
|
|
3078
|
-
quote($$renderer3, reply.to, original(reply.to));
|
|
3079
|
-
} else {
|
|
3080
|
-
$$renderer3.push("<!--[-1-->");
|
|
3081
|
-
}
|
|
3082
|
-
$$renderer3.push(`<!--]-->`);
|
|
3083
|
-
captainText($$renderer3, sent.text, false);
|
|
3084
|
-
$$renderer3.push(`<!----></div>`);
|
|
3085
|
-
} else {
|
|
3086
|
-
$$renderer3.push("<!--[-1-->");
|
|
3087
|
-
}
|
|
3088
|
-
$$renderer3.push(`<!--]--> `);
|
|
3089
|
-
if (sent.files.length) {
|
|
3090
|
-
$$renderer3.push("<!--[0-->");
|
|
3091
|
-
SentFiles($$renderer3, { files: sent.files, pending: true });
|
|
3092
|
-
} else {
|
|
3093
|
-
$$renderer3.push("<!--[-1-->");
|
|
3094
|
-
}
|
|
3095
|
-
$$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">`);
|
|
3096
|
-
if (p.state === "failed") {
|
|
3097
|
-
$$renderer3.push("<!--[0-->");
|
|
3098
|
-
Circle_x($$renderer3, { class: "size-3.5", "aria-hidden": "true" });
|
|
3099
|
-
$$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">`);
|
|
3100
|
-
Rotate_cw($$renderer3, { class: "size-3", "aria-hidden": "true" });
|
|
3101
|
-
$$renderer3.push(`<!---->Retry</button> <button class="cursor-pointer rounded px-1.5 py-0.5 text-muted-foreground hover:bg-muted">Discard</button>`);
|
|
3102
|
-
} else {
|
|
3103
|
-
$$renderer3.push("<!--[-1-->");
|
|
3104
|
-
Loader_circle($$renderer3, { class: "size-3 animate-spin", "aria-hidden": "true" });
|
|
3105
|
-
$$renderer3.push(`<!---->${escape_html(pendingLabel(p))}`);
|
|
3106
|
-
}
|
|
3107
|
-
$$renderer3.push(`<!--]--></p></div></article>`);
|
|
3108
|
-
}
|
|
3109
|
-
$$renderer3.push(`<!--]--> `);
|
|
3110
|
-
if (picker()) {
|
|
3111
|
-
$$renderer3.push("<!--[0-->");
|
|
3112
|
-
PickerCard($$renderer3, { picker: picker() });
|
|
3113
|
-
} else if (signIn()) {
|
|
3114
|
-
$$renderer3.push("<!--[1-->");
|
|
3115
|
-
SignInCard($$renderer3, {
|
|
3116
|
-
signIn: signIn(),
|
|
3117
|
-
tool: tool()
|
|
3118
|
-
});
|
|
3119
|
-
} else if (inTerminal()) {
|
|
3120
|
-
$$renderer3.push("<!--[2-->");
|
|
3121
|
-
TerminalNotice($$renderer3, {
|
|
3122
|
-
detail: inTerminal().detail,
|
|
3123
|
-
tool: tool()
|
|
3124
|
-
});
|
|
3125
|
-
} else if (menu()) {
|
|
3126
|
-
$$renderer3.push("<!--[3-->");
|
|
3127
|
-
MenuCard($$renderer3, { menu: menu(), tool: tool() });
|
|
3128
|
-
} else if (working()) {
|
|
3129
|
-
$$renderer3.push(`<!--[4--><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>`);
|
|
3130
|
-
} else {
|
|
3131
|
-
$$renderer3.push("<!--[-1-->");
|
|
3132
|
-
}
|
|
3133
|
-
$$renderer3.push(`<!--]--></div></div> `);
|
|
3134
|
-
{
|
|
3135
|
-
$$renderer3.push("<!--[-1-->");
|
|
3136
|
-
}
|
|
3137
|
-
$$renderer3.push(`<!--]--> `);
|
|
3138
|
-
{
|
|
3139
|
-
$$renderer3.push("<!--[-1-->");
|
|
3140
|
-
}
|
|
3141
|
-
$$renderer3.push(`<!--]--></div> <div class="bg-panel px-4 pb-4 sm:px-6 lg:px-10">`);
|
|
3142
|
-
if (vaultNotice) {
|
|
3143
|
-
$$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">`);
|
|
3144
|
-
X($$renderer3, { class: "size-4" });
|
|
3145
|
-
$$renderer3.push(`<!----></button></p>`);
|
|
3146
|
-
} else {
|
|
3147
|
-
$$renderer3.push("<!--[-1-->");
|
|
3148
|
-
}
|
|
3149
|
-
$$renderer3.push(`<!--]--> `);
|
|
3150
|
-
Composer($$renderer3, {
|
|
3151
|
-
onvault: () => addSecret(null),
|
|
3152
|
-
via: via(),
|
|
3153
|
-
reason: session()?.state === "ours" && !session().canSend ? "Open the terminal above to reconnect chat." : session()?.reason ?? null,
|
|
3154
|
-
working: working() && !waitingOnAnswer(),
|
|
3155
|
-
held: held(),
|
|
3156
|
-
commands: firstmateChat.commands,
|
|
3157
|
-
reply: replyTo,
|
|
3158
|
-
thread: current() && current() !== UNSORTED ? {
|
|
3159
|
-
topic: current(),
|
|
3160
|
-
name: threadName(current()),
|
|
3161
|
-
hue: threadHue(current())
|
|
3162
|
-
} : null,
|
|
3163
|
-
threads: moveTo().filter((t) => t.topic !== UNSORTED)
|
|
3164
|
-
});
|
|
3165
|
-
$$renderer3.push(`<!----></div> `);
|
|
3166
|
-
VaultAdd($$renderer3, {
|
|
3167
|
-
ask: vaultAsk,
|
|
3168
|
-
projects: projects.map((p) => p.id),
|
|
3169
|
-
token,
|
|
3170
|
-
onstored: secretStored,
|
|
3171
|
-
get open() {
|
|
3172
|
-
return vaultOpen;
|
|
3173
|
-
},
|
|
3174
|
-
set open($$value) {
|
|
3175
|
-
vaultOpen = $$value;
|
|
3176
|
-
$$settled = false;
|
|
3177
|
-
}
|
|
3178
|
-
});
|
|
3179
|
-
$$renderer3.push(`<!----></section>`);
|
|
3180
|
-
}
|
|
3181
|
-
do {
|
|
3182
|
-
$$settled = true;
|
|
3183
|
-
$$inner_renderer = $$renderer2.copy();
|
|
3184
|
-
$$render_inner($$inner_renderer);
|
|
3185
|
-
} while (!$$settled);
|
|
3186
|
-
$$renderer2.subsume($$inner_renderer);
|
|
3187
|
-
});
|
|
3188
|
-
}
|
|
3189
|
-
const RAIL_SIDE_KEY = "wheelhouse-ondeck-side";
|
|
3190
|
-
function parseRailSide(raw) {
|
|
3191
|
-
return raw === "right" ? "right" : "left";
|
|
3192
|
-
}
|
|
3193
|
-
class HomeLayout {
|
|
3194
|
-
side = "left";
|
|
3195
|
-
load() {
|
|
3196
|
-
try {
|
|
3197
|
-
this.side = parseRailSide(localStorage.getItem(RAIL_SIDE_KEY));
|
|
3198
|
-
} catch {
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
swap() {
|
|
3202
|
-
this.side = this.side === "left" ? "right" : "left";
|
|
3203
|
-
try {
|
|
3204
|
-
localStorage.setItem(RAIL_SIDE_KEY, this.side);
|
|
3205
|
-
} catch {
|
|
3206
|
-
}
|
|
3207
|
-
}
|
|
3208
|
-
}
|
|
3209
|
-
const homeLayout = new HomeLayout();
|
|
3210
|
-
function _page($$renderer, $$props) {
|
|
3211
|
-
$$renderer.component(($$renderer2) => {
|
|
3212
|
-
let { data } = $$props;
|
|
3213
|
-
const fleet = derived(currentFleet);
|
|
3214
|
-
const scope = derived(() => page.url.searchParams.get("project"));
|
|
3215
|
-
const thread = derived(() => page.url.searchParams.get("thread") ?? scope());
|
|
3216
|
-
function pickThread(topic) {
|
|
3217
|
-
const project = topic && fleet()?.projects.some((p) => p.id === topic);
|
|
3218
|
-
const q = !topic ? "" : project ? `?project=${encodeURIComponent(topic)}` : `?thread=${encodeURIComponent(topic)}`;
|
|
3219
|
-
void goto(`/${q}`, {});
|
|
3220
|
-
}
|
|
3221
|
-
const tasks = derived(() => (fleet()?.tasks ?? []).filter((t) => !scope() || t.projectId === scope()));
|
|
3222
|
-
const h = derived(() => harbour(tasks(), live.now));
|
|
3223
|
-
const health = derived(() => shipHealth(h()));
|
|
3224
|
-
const waiting = derived(() => h().needsYou.length + h().stepFailed.length);
|
|
3225
|
-
const pluginEntries = derived(() => slots.entries(slotKey.fleet, data.slots, data.slotsAt));
|
|
3226
|
-
const cards = derived(() => pluginEntries().filter((e) => e.slot === "home.card"));
|
|
3227
|
-
const insights = derived(() => railInsights.value ?? data.insights);
|
|
3228
|
-
let railOpen = true;
|
|
3229
|
-
head("1uha8ag", $$renderer2, ($$renderer3) => {
|
|
3230
|
-
$$renderer3.title(($$renderer4) => {
|
|
3231
|
-
$$renderer4.push(`<title>Firstmate · Wheelhouse</title>`);
|
|
3232
|
-
});
|
|
3233
|
-
});
|
|
3234
|
-
$$renderer2.push(`<main${attr_class(`flex min-h-0 flex-1 ${homeLayout.side === "left" ? "flex-row-reverse" : ""}`)}>`);
|
|
3235
|
-
Chat($$renderer2, {
|
|
3236
|
-
token: data.sessionToken,
|
|
3237
|
-
railOpen,
|
|
3238
|
-
waiting: waiting(),
|
|
3239
|
-
health: health(),
|
|
3240
|
-
now: live.now,
|
|
3241
|
-
pluginEntries: pluginEntries(),
|
|
3242
|
-
tasks: fleet()?.tasks ?? [],
|
|
3243
|
-
projects: fleet()?.projects ?? [],
|
|
3244
|
-
railSide: homeLayout.side,
|
|
3245
|
-
thread: thread(),
|
|
3246
|
-
onPickThread: pickThread,
|
|
3247
|
-
onSwapRail: () => homeLayout.swap()
|
|
3248
|
-
});
|
|
3249
|
-
$$renderer2.push(`<!----> `);
|
|
3250
|
-
{
|
|
3251
|
-
$$renderer2.push("<!--[0-->");
|
|
3252
|
-
ResizableRail($$renderer2, {
|
|
3253
|
-
storageKey: "wheelhouse-rail-width",
|
|
3254
|
-
label: "Resize the rail",
|
|
3255
|
-
defaultWidth: 460,
|
|
3256
|
-
side: homeLayout.side,
|
|
3257
|
-
class: "bg-panel",
|
|
3258
|
-
children: ($$renderer3) => {
|
|
3259
|
-
Rail($$renderer3, {
|
|
3260
|
-
tasks: tasks(),
|
|
3261
|
-
projects: fleet()?.projects ?? [],
|
|
3262
|
-
secondMates: fleet()?.secondMates ?? [],
|
|
3263
|
-
now: live.now,
|
|
3264
|
-
insights: insights(),
|
|
3265
|
-
scope: scope(),
|
|
3266
|
-
cards: cards()
|
|
3267
|
-
});
|
|
3268
|
-
}
|
|
3269
|
-
});
|
|
3270
|
-
}
|
|
3271
|
-
$$renderer2.push(`<!--]--></main> `);
|
|
3272
|
-
{
|
|
3273
|
-
$$renderer2.push("<!--[-1-->");
|
|
3274
|
-
}
|
|
3275
|
-
$$renderer2.push(`<!--]-->`);
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
|
|
3279
|
-
export { _page as default };
|
|
3280
|
-
//# sourceMappingURL=_page.svelte.js-WLrYNqLJ.js.map
|