@recombine-ai/bosun 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.DsZUjxNX.css +1 -0
- package/build/client/_app/immutable/assets/0.DsZUjxNX.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DsZUjxNX.css.gz +0 -0
- package/build/client/_app/immutable/assets/{2.DOE0DQ6H.css → 2.DxwYfh1z.css} +1 -1
- package/build/client/_app/immutable/assets/2.DxwYfh1z.css.br +0 -0
- package/build/client/_app/immutable/assets/2.DxwYfh1z.css.gz +0 -0
- package/build/client/_app/immutable/assets/8.BX46PfEJ.css +1 -0
- package/build/client/_app/immutable/assets/8.BX46PfEJ.css.br +0 -0
- package/build/client/_app/immutable/assets/8.BX46PfEJ.css.gz +0 -0
- package/build/client/_app/immutable/assets/{AgentSidebar.QeNZJtLq.css → AgentSidebar.BL1i3rB_.css} +1 -1
- package/build/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.br +0 -0
- package/build/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.gz +0 -0
- package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css +1 -0
- package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css.br +0 -0
- package/build/client/_app/immutable/assets/Tab.DlCfjMY1.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{BHkx8tAH.js → B7MYxXp9.js} +1 -1
- package/build/client/_app/immutable/chunks/B7MYxXp9.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7MYxXp9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CZ6iREyA.js → BTlUd_Lo.js} +5 -5
- package/build/client/_app/immutable/chunks/BTlUd_Lo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTlUd_Lo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CbCJfhin.js → BVDwc-2z.js} +1 -1
- package/build/client/_app/immutable/chunks/BVDwc-2z.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVDwc-2z.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CojkI8AD.js → BWo2H__f.js} +3 -3
- package/build/client/_app/immutable/chunks/BWo2H__f.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWo2H__f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{_HWrJCgx.js → BXkrt826.js} +1 -1
- package/build/client/_app/immutable/chunks/BXkrt826.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXkrt826.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DbYdNz4J.js → Bdb5tyDH.js} +1 -1
- package/build/client/_app/immutable/chunks/Bdb5tyDH.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bdb5tyDH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CdTjAjKm.js → BfHUxT3G.js} +7 -7
- package/build/client/_app/immutable/chunks/BfHUxT3G.js.br +0 -0
- package/build/client/_app/immutable/chunks/{CdTjAjKm.js.gz → BfHUxT3G.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{CFcfsVkY.js → Bk1rEq7o.js} +1 -1
- package/build/client/_app/immutable/chunks/Bk1rEq7o.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bk1rEq7o.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cv6CwVfk.js → BkclRFLx.js} +1 -1
- package/build/client/_app/immutable/chunks/BkclRFLx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkclRFLx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cnr0cZA4.js → BnxfhlSj.js} +1 -1
- package/build/client/_app/immutable/chunks/BnxfhlSj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnxfhlSj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Y0ymTIHd.js → BqROrg0C.js} +1 -1
- package/build/client/_app/immutable/chunks/BqROrg0C.js.br +0 -0
- package/build/client/_app/immutable/chunks/BqROrg0C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bub2VLj9.js → ByQey8Oa.js} +1 -1
- package/build/client/_app/immutable/chunks/ByQey8Oa.js.br +0 -0
- package/build/client/_app/immutable/chunks/ByQey8Oa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DrMdBz9b.js → CFwu9ET3.js} +1 -1
- package/build/client/_app/immutable/chunks/CFwu9ET3.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFwu9ET3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BGEE3mf3.js → CIIE25ox.js} +1 -1
- package/build/client/_app/immutable/chunks/CIIE25ox.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIIE25ox.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D8qEOlWC.js → CNMNmz2q.js} +1 -1
- package/build/client/_app/immutable/chunks/CNMNmz2q.js.br +0 -0
- package/build/client/_app/immutable/chunks/CNMNmz2q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CNvyTQrC.js +1 -0
- package/build/client/_app/immutable/chunks/CNvyTQrC.js.br +2 -0
- package/build/client/_app/immutable/chunks/CNvyTQrC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CYkx2jgw.js → CULdW9tk.js} +1 -1
- package/build/client/_app/immutable/chunks/CULdW9tk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CULdW9tk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cp_hX0eh.js → CVHvdSBf.js} +1 -1
- package/build/client/_app/immutable/chunks/CVHvdSBf.js.br +0 -0
- package/build/client/_app/immutable/chunks/{Cp_hX0eh.js.gz → CVHvdSBf.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{DiFAgw_s.js → CYiRxJxs.js} +1 -1
- package/build/client/_app/immutable/chunks/CYiRxJxs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYiRxJxs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZPhtqrs.js +8 -0
- package/build/client/_app/immutable/chunks/CZPhtqrs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZPhtqrs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{qPgPowuc.js → CdzpH-Ca.js} +1 -1
- package/build/client/_app/immutable/chunks/CdzpH-Ca.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdzpH-Ca.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B3K88SyC.js → Cf8q8_nj.js} +1 -1
- package/build/client/_app/immutable/chunks/Cf8q8_nj.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cf8q8_nj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cg3F7Z11.js +1 -0
- package/build/client/_app/immutable/chunks/Cg3F7Z11.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cg3F7Z11.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ri5tqg4N.js → CpSIcnXs.js} +1 -1
- package/build/client/_app/immutable/chunks/CpSIcnXs.js.br +0 -0
- package/build/client/_app/immutable/chunks/CpSIcnXs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{sdLD1XcR.js → Ct9HfpvA.js} +1 -1
- package/build/client/_app/immutable/chunks/Ct9HfpvA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ct9HfpvA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C0sQKHpE.js → DJPBfZIx.js} +1 -1
- package/build/client/_app/immutable/chunks/DJPBfZIx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJPBfZIx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BH7VBnJ7.js → DOatwnEt.js} +1 -1
- package/build/client/_app/immutable/chunks/DOatwnEt.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOatwnEt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C0mQlu7J.js → DQqJYxgt.js} +1 -1
- package/build/client/_app/immutable/chunks/DQqJYxgt.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQqJYxgt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DadWvtYR.js → DSfxalyG.js} +1 -1
- package/build/client/_app/immutable/chunks/DSfxalyG.js.br +0 -0
- package/build/client/_app/immutable/chunks/DSfxalyG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{tLFXBP7P.js → DujX6kBV.js} +1 -1
- package/build/client/_app/immutable/chunks/DujX6kBV.js.br +0 -0
- package/build/client/_app/immutable/chunks/{tLFXBP7P.js.gz → DujX6kBV.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/Dvy68CmD.js +4 -0
- package/build/client/_app/immutable/chunks/Dvy68CmD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dvy68CmD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CmPVG-ki.js → HPBQctDD.js} +1 -1
- package/build/client/_app/immutable/chunks/HPBQctDD.js.br +0 -0
- package/build/client/_app/immutable/chunks/HPBQctDD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Jaf1TUfw.js +1 -0
- package/build/client/_app/immutable/chunks/Jaf1TUfw.js.br +2 -0
- package/build/client/_app/immutable/chunks/Jaf1TUfw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ByppsbS-.js → KDW88ZZa.js} +1 -1
- package/build/client/_app/immutable/chunks/KDW88ZZa.js.br +0 -0
- package/build/client/_app/immutable/chunks/KDW88ZZa.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BOrnwyTp.js → TO5ESkEd.js} +1 -1
- package/build/client/_app/immutable/chunks/TO5ESkEd.js.br +0 -0
- package/build/client/_app/immutable/chunks/TO5ESkEd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/axPa8Xqj.js +1 -0
- package/build/client/_app/immutable/chunks/axPa8Xqj.js.br +0 -0
- package/build/client/_app/immutable/chunks/axPa8Xqj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DU-D8S0B.js → oeB0PCTX.js} +1 -1
- package/build/client/_app/immutable/chunks/oeB0PCTX.js.br +0 -0
- package/build/client/_app/immutable/chunks/oeB0PCTX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DsvX5v5e.js → rtsVMmSs.js} +1 -1
- package/build/client/_app/immutable/chunks/rtsVMmSs.js.br +0 -0
- package/build/client/_app/immutable/chunks/rtsVMmSs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BbaH2eDw.js → yWz0pZR0.js} +1 -1
- package/build/client/_app/immutable/chunks/yWz0pZR0.js.br +0 -0
- package/build/client/_app/immutable/chunks/yWz0pZR0.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.jP0Pyfdy.js → app.CGapw5JN.js} +2 -2
- package/build/client/_app/immutable/entry/app.CGapw5JN.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CGapw5JN.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.-cXTjTEG.js +1 -0
- package/build/client/_app/immutable/entry/start.-cXTjTEG.js.br +2 -0
- package/build/client/_app/immutable/entry/start.-cXTjTEG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.ByrdmeSo.js → 0.BAD72yj-.js} +1 -1
- package/build/client/_app/immutable/nodes/0.BAD72yj-.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BAD72yj-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Poqrp7zI.js +1 -0
- package/build/client/_app/immutable/nodes/1.Poqrp7zI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Poqrp7zI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.DetV1tDO.js → 13.DaAF9e8t.js} +1 -1
- package/build/client/_app/immutable/nodes/13.DaAF9e8t.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DaAF9e8t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.CIH3gHti.js +11 -0
- package/build/client/_app/immutable/nodes/14.CIH3gHti.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CIH3gHti.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BmMuB33m.js +35 -0
- package/build/client/_app/immutable/nodes/2.BmMuB33m.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BmMuB33m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CQPkSYE9.js +1 -0
- package/build/client/_app/immutable/nodes/3.CQPkSYE9.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CQPkSYE9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CtzHYc6x.js → 4.DylMSvDw.js} +1 -1
- package/build/client/_app/immutable/nodes/4.DylMSvDw.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DylMSvDw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DB-2_mc1.js +1 -0
- package/build/client/_app/immutable/nodes/5.DB-2_mc1.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DB-2_mc1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.jI3Ps4Fx.js +2 -0
- package/build/client/_app/immutable/nodes/7.jI3Ps4Fx.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.jI3Ps4Fx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DhQWMEsP.js +6 -0
- package/build/client/_app/immutable/nodes/8.DhQWMEsP.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DhQWMEsP.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/server/chunks/0-DBqZOMqX.js +9 -0
- package/build/server/chunks/{0-CjpeDbMt.js.map → 0-DBqZOMqX.js.map} +1 -1
- package/build/server/chunks/1-DtNOOYEc.js +9 -0
- package/build/server/chunks/{1-M0YzuUQM.js.map → 1-DtNOOYEc.js.map} +1 -1
- package/build/server/chunks/{13-BQ9R_Ex-.js → 13-DPcsc1p-.js} +2 -2
- package/build/server/chunks/{13-BQ9R_Ex-.js.map → 13-DPcsc1p-.js.map} +1 -1
- package/build/server/chunks/14-BB5_NucR.js +9 -0
- package/build/server/chunks/14-BB5_NucR.js.map +1 -0
- package/build/server/chunks/2-DKkz3BEe.js +9 -0
- package/build/server/chunks/2-DKkz3BEe.js.map +1 -0
- package/build/server/chunks/3-CYDXg-UU.js +9 -0
- package/build/server/chunks/3-CYDXg-UU.js.map +1 -0
- package/build/server/chunks/4-BML64sIA.js +9 -0
- package/build/server/chunks/{4-CSgrzh2F.js.map → 4-BML64sIA.js.map} +1 -1
- package/build/server/chunks/5-BRYDEr7f.js +9 -0
- package/build/server/chunks/5-BRYDEr7f.js.map +1 -0
- package/build/server/chunks/7-gY8iwkKY.js +9 -0
- package/build/server/chunks/{7-DewREBAN.js.map → 7-gY8iwkKY.js.map} +1 -1
- package/build/server/chunks/8-CddjGDu2.js +9 -0
- package/build/server/chunks/{8-Dk3ms3jm.js.map → 8-CddjGDu2.js.map} +1 -1
- package/build/server/chunks/{Button-Cd4Yzpdy.js → Button-DZYrr6c0.js} +3 -3
- package/build/server/chunks/Button-DZYrr6c0.js.map +1 -0
- package/build/server/chunks/{ChatStepTrace-cq26gF4B.js → ChatStepTrace-B5HQ8Zv3.js} +5 -139
- package/build/server/chunks/ChatStepTrace-B5HQ8Zv3.js.map +1 -0
- package/build/server/chunks/{ContextEditor-CfjBPLpI.js → ContextEditor-ByGoXY5_.js} +2 -9
- package/build/server/chunks/ContextEditor-ByGoXY5_.js.map +1 -0
- package/build/server/chunks/{Input-BJW36iKz.js → Input-DZT3Mm_-.js} +2 -1
- package/build/server/chunks/Input-DZT3Mm_-.js.map +1 -0
- package/build/server/chunks/{Tab-DheAG-QC.js → Tab-ClYAMM-e.js} +2 -2
- package/build/server/chunks/Tab-ClYAMM-e.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-BL8XnK1E.js → _layout.svelte-h89mGXIj.js} +8 -9
- package/build/server/chunks/_layout.svelte-h89mGXIj.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-DHgaGTP_.js → _layout.svelte-u9Ivvyk-.js} +17 -12
- package/build/server/chunks/_layout.svelte-u9Ivvyk-.js.map +1 -0
- package/build/server/chunks/_page.svelte-CC26hDwf.js +675 -0
- package/build/server/chunks/_page.svelte-CC26hDwf.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CmsDxzfh.js → _page.svelte-CnjXZO9K.js} +3 -4
- package/build/server/chunks/_page.svelte-CnjXZO9K.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BpnUXzfh.js → _page.svelte-Dl3GoTy1.js} +139 -6
- package/build/server/chunks/_page.svelte-Dl3GoTy1.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DCP-PSh0.js → _page.svelte-Hg-ZSzf1.js} +246 -97
- package/build/server/chunks/_page.svelte-Hg-ZSzf1.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +11 -11
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/src/backend/lib/decode-html-entities.spec.ts +0 -1
- package/src/backend/tests/academy.ts +46 -46
- package/src/backend/tests/analyze.ts +21 -7
- package/src/backend/tests/data.ts +3 -1
- package/src/backend/tests/prompt-issues.ts +4 -1
- package/build/client/_app/immutable/assets/0.XjKA4GPF.css +0 -1
- package/build/client/_app/immutable/assets/0.XjKA4GPF.css.br +0 -0
- package/build/client/_app/immutable/assets/0.XjKA4GPF.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.DOE0DQ6H.css.br +0 -0
- package/build/client/_app/immutable/assets/2.DOE0DQ6H.css.gz +0 -0
- package/build/client/_app/immutable/assets/8.DoLA3Mkm.css +0 -1
- package/build/client/_app/immutable/assets/8.DoLA3Mkm.css.br +0 -0
- package/build/client/_app/immutable/assets/8.DoLA3Mkm.css.gz +0 -0
- package/build/client/_app/immutable/assets/AgentSidebar.QeNZJtLq.css.br +0 -0
- package/build/client/_app/immutable/assets/AgentSidebar.QeNZJtLq.css.gz +0 -0
- package/build/client/_app/immutable/assets/Tab.jOjMVh6j.css +0 -1
- package/build/client/_app/immutable/assets/Tab.jOjMVh6j.css.br +0 -0
- package/build/client/_app/immutable/assets/Tab.jOjMVh6j.css.gz +0 -0
- package/build/client/_app/immutable/chunks/7wcu2ga1.js +0 -1
- package/build/client/_app/immutable/chunks/7wcu2ga1.js.br +0 -0
- package/build/client/_app/immutable/chunks/7wcu2ga1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3K88SyC.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3K88SyC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BGEE3mf3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BGEE3mf3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BH7VBnJ7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BH7VBnJ7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHkx8tAH.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHkx8tAH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMwJcaLS.js +0 -1
- package/build/client/_app/immutable/chunks/BMwJcaLS.js.br +0 -2
- package/build/client/_app/immutable/chunks/BMwJcaLS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOrnwyTp.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOrnwyTp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BbaH2eDw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BbaH2eDw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bub2VLj9.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bub2VLj9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ByppsbS-.js.br +0 -0
- package/build/client/_app/immutable/chunks/ByppsbS-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0mQlu7J.js.br +0 -1
- package/build/client/_app/immutable/chunks/C0mQlu7J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0pV4x1v.js +0 -1
- package/build/client/_app/immutable/chunks/C0pV4x1v.js.br +0 -2
- package/build/client/_app/immutable/chunks/C0pV4x1v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0sQKHpE.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0sQKHpE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFcfsVkY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFcfsVkY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYkx2jgw.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYkx2jgw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CZ6iREyA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CZ6iREyA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbCJfhin.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbCJfhin.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CdTjAjKm.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmPVG-ki.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmPVG-ki.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cnr0cZA4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cnr0cZA4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CojkI8AD.js.br +0 -0
- package/build/client/_app/immutable/chunks/CojkI8AD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cp_hX0eh.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv6CwVfk.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv6CwVfk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8qEOlWC.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8qEOlWC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOMF1VtZ.js +0 -8
- package/build/client/_app/immutable/chunks/DOMF1VtZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOMF1VtZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRaGXt8e.js +0 -1
- package/build/client/_app/immutable/chunks/DRaGXt8e.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRaGXt8e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DU-D8S0B.js.br +0 -0
- package/build/client/_app/immutable/chunks/DU-D8S0B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DadWvtYR.js.br +0 -0
- package/build/client/_app/immutable/chunks/DadWvtYR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DbYdNz4J.js.br +0 -0
- package/build/client/_app/immutable/chunks/DbYdNz4J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DiFAgw_s.js.br +0 -0
- package/build/client/_app/immutable/chunks/DiFAgw_s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DrMdBz9b.js.br +0 -0
- package/build/client/_app/immutable/chunks/DrMdBz9b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DsvX5v5e.js.br +0 -0
- package/build/client/_app/immutable/chunks/DsvX5v5e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Y0ymTIHd.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y0ymTIHd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_HWrJCgx.js.br +0 -0
- package/build/client/_app/immutable/chunks/_HWrJCgx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qPgPowuc.js.br +0 -0
- package/build/client/_app/immutable/chunks/qPgPowuc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ri5tqg4N.js.br +0 -0
- package/build/client/_app/immutable/chunks/ri5tqg4N.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sdLD1XcR.js.br +0 -0
- package/build/client/_app/immutable/chunks/sdLD1XcR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/t1v2-usS.js +0 -4
- package/build/client/_app/immutable/chunks/t1v2-usS.js.br +0 -0
- package/build/client/_app/immutable/chunks/t1v2-usS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/tLFXBP7P.js.br +0 -0
- package/build/client/_app/immutable/entry/app.jP0Pyfdy.js.br +0 -0
- package/build/client/_app/immutable/entry/app.jP0Pyfdy.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.KD1JZMOT.js +0 -1
- package/build/client/_app/immutable/entry/start.KD1JZMOT.js.br +0 -2
- package/build/client/_app/immutable/entry/start.KD1JZMOT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.ByrdmeSo.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.ByrdmeSo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.VLeq38lN.js +0 -1
- package/build/client/_app/immutable/nodes/1.VLeq38lN.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.VLeq38lN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DetV1tDO.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DetV1tDO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.I-eiMWQu.js +0 -11
- package/build/client/_app/immutable/nodes/14.I-eiMWQu.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.I-eiMWQu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DX9U9zLg.js +0 -35
- package/build/client/_app/immutable/nodes/2.DX9U9zLg.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DX9U9zLg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Bh8il5iy.js +0 -1
- package/build/client/_app/immutable/nodes/3.Bh8il5iy.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bh8il5iy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CtzHYc6x.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CtzHYc6x.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.B4dlomkV.js +0 -1
- package/build/client/_app/immutable/nodes/5.B4dlomkV.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.B4dlomkV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CBPrYfFp.js +0 -2
- package/build/client/_app/immutable/nodes/7.CBPrYfFp.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CBPrYfFp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.4NTWYv4c.js +0 -6
- package/build/client/_app/immutable/nodes/8.4NTWYv4c.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.4NTWYv4c.js.gz +0 -0
- package/build/server/chunks/0-CjpeDbMt.js +0 -9
- package/build/server/chunks/1-M0YzuUQM.js +0 -9
- package/build/server/chunks/14-BFsI6u_W.js +0 -9
- package/build/server/chunks/14-BFsI6u_W.js.map +0 -1
- package/build/server/chunks/2-Cjh0UTU6.js +0 -9
- package/build/server/chunks/2-Cjh0UTU6.js.map +0 -1
- package/build/server/chunks/3-VrGFs76T.js +0 -9
- package/build/server/chunks/3-VrGFs76T.js.map +0 -1
- package/build/server/chunks/4-CSgrzh2F.js +0 -9
- package/build/server/chunks/5-zKehYil3.js +0 -9
- package/build/server/chunks/5-zKehYil3.js.map +0 -1
- package/build/server/chunks/7-DewREBAN.js +0 -9
- package/build/server/chunks/8-Dk3ms3jm.js +0 -9
- package/build/server/chunks/Button-Cd4Yzpdy.js.map +0 -1
- package/build/server/chunks/ChatStepTrace-cq26gF4B.js.map +0 -1
- package/build/server/chunks/ContextEditor-CfjBPLpI.js.map +0 -1
- package/build/server/chunks/Input-BJW36iKz.js.map +0 -1
- package/build/server/chunks/Tab-DheAG-QC.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BL8XnK1E.js.map +0 -1
- package/build/server/chunks/_layout.svelte-DHgaGTP_.js.map +0 -1
- package/build/server/chunks/_page.svelte-BpnUXzfh.js.map +0 -1
- package/build/server/chunks/_page.svelte-C1YaC_Qg.js +0 -2309
- package/build/server/chunks/_page.svelte-C1YaC_Qg.js.map +0 -1
- package/build/server/chunks/_page.svelte-CmsDxzfh.js.map +0 -1
- package/build/server/chunks/_page.svelte-DCP-PSh0.js.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BfHUxT3G.js","./CpSIcnXs.js","./CVHvdSBf.js","./DujX6kBV.js","../assets/editor.BMIWPGx3.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import"./CWj6FrbW.js";import{o as mt,a as lr,s as K}from"./DujX6kBV.js";import{p as Fe,u as ft,h as s,e as ce,f as J,d as b,r as w,i as Y,b as _,c as qe,T as at,a as Pe,t as X,A as kt,l as N,s as D,n as Oe,k as se}from"./CVHvdSBf.js";import{i as G}from"./BXkrt826.js";import{s as _t,d as cr,c as Ae,I as qt,f as Ut}from"./BkclRFLx.js";import{b as Ye}from"./DQqJYxgt.js";import{p as ne}from"./yWz0pZR0.js";import{e as Jt,a as Xt,M as Et}from"./BTlUd_Lo.js";import{T as Yt,a as Ie}from"./axPa8Xqj.js";import{B as vt}from"./CZPhtqrs.js";import{g as dr}from"./B7MYxXp9.js";import{t as ur}from"./BEJ5fU19.js";import{c as Mt,b as fr}from"./BVDwc-2z.js";import{_ as Gt}from"./CpSIcnXs.js";var ve="top",xe="bottom",be="right",pe="left",At="auto",lt=[ve,xe,be,pe],Ge="start",ot="end",vr="clippingParents",Kt="viewport",rt="popper",pr="reference",Lt=lt.reduce(function(t,e){return t.concat([e+"-"+Ge,e+"-"+ot])},[]),Qt=[].concat(lt,[At]).reduce(function(t,e){return t.concat([e,e+"-"+Ge,e+"-"+ot])},[]),mr="beforeRead",gr="read",hr="afterRead",yr="beforeMain",xr="main",br="afterMain",wr="beforeWrite",_r="write",Or="afterWrite",Pr=[mr,gr,hr,yr,xr,br,wr,_r,Or];function Se(t){return t?(t.nodeName||"").toLowerCase():null}function me(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ve(t){var e=me(t).Element;return t instanceof e||t instanceof Element}function ye(t){var e=me(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ct(t){if(typeof ShadowRoot>"u")return!1;var e=me(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function kr(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},a=e.attributes[r]||{},l=e.elements[r];!ye(l)||!Se(l)||(Object.assign(l.style,n),Object.keys(a).forEach(function(d){var i=a[d];i===!1?l.removeAttribute(d):l.setAttribute(d,i===!0?"":i)}))})}function Er(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var a=e.elements[n],l=e.attributes[n]||{},d=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),i=d.reduce(function(o,v){return o[v]="",o},{});!ye(a)||!Se(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(o){a.removeAttribute(o)}))})}}const Ar={name:"applyStyles",enabled:!0,phase:"write",fn:kr,effect:Er,requires:["computeStyles"]};function Ce(t){return t.split("-")[0]}var ze=Math.max,pt=Math.min,Ke=Math.round;function Ot(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zt(){return!/^((?!chrome|android).)*safari/i.test(Ot())}function Qe(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),a=1,l=1;e&&ye(t)&&(a=t.offsetWidth>0&&Ke(n.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Ke(n.height)/t.offsetHeight||1);var d=Ve(t)?me(t):window,i=d.visualViewport,o=!Zt()&&r,v=(n.left+(o&&i?i.offsetLeft:0))/a,c=(n.top+(o&&i?i.offsetTop:0))/l,f=n.width/a,y=n.height/l;return{width:f,height:y,top:c,right:v+f,bottom:c+y,left:v,x:v,y:c}}function St(t){var e=Qe(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function $t(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Ct(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function De(t){return me(t).getComputedStyle(t)}function Cr(t){return["table","td","th"].indexOf(Se(t))>=0}function Le(t){return((Ve(t)?t.ownerDocument:t.document)||window.document).documentElement}function gt(t){return Se(t)==="html"?t:t.assignedSlot||t.parentNode||(Ct(t)?t.host:null)||Le(t)}function Nt(t){return!ye(t)||De(t).position==="fixed"?null:t.offsetParent}function Sr(t){var e=/firefox/i.test(Ot()),r=/Trident/i.test(Ot());if(r&&ye(t)){var n=De(t);if(n.position==="fixed")return null}var a=gt(t);for(Ct(a)&&(a=a.host);ye(a)&&["html","body"].indexOf(Se(a))<0;){var l=De(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function ct(t){for(var e=me(t),r=Nt(t);r&&Cr(r)&&De(r).position==="static";)r=Nt(r);return r&&(Se(r)==="html"||Se(r)==="body"&&De(r).position==="static")?e:r||Sr(t)||e}function Tt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function nt(t,e,r){return ze(t,pt(e,r))}function Tr(t,e,r){var n=nt(t,e,r);return n>r?r:n}function er(){return{top:0,right:0,bottom:0,left:0}}function tr(t){return Object.assign({},er(),t)}function rr(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var Rr=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,tr(typeof e!="number"?e:rr(e,lt))};function jr(t){var e,r=t.state,n=t.name,a=t.options,l=r.elements.arrow,d=r.modifiersData.popperOffsets,i=Ce(r.placement),o=Tt(i),v=[pe,be].indexOf(i)>=0,c=v?"height":"width";if(!(!l||!d)){var f=Rr(a.padding,r),y=St(l),h=o==="y"?ve:pe,j=o==="y"?xe:be,x=r.rects.reference[c]+r.rects.reference[o]-d[o]-r.rects.popper[c],T=d[o]-r.rects.reference[o],L=ct(l),A=L?o==="y"?L.clientHeight||0:L.clientWidth||0:0,M=x/2-T/2,O=f[h],R=A-y[c]-f[j],C=A/2-y[c]/2+M,W=nt(O,C,R),z=o;r.modifiersData[n]=(e={},e[z]=W,e.centerOffset=W-C,e)}}function Dr(t){var e=t.state,r=t.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||$t(e.elements.popper,a)&&(e.elements.arrow=a))}const Mr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:Dr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ze(t){return t.split("-")[1]}var Lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nr(t,e){var r=t.x,n=t.y,a=e.devicePixelRatio||1;return{x:Ke(r*a)/a||0,y:Ke(n*a)/a||0}}function Bt(t){var e,r=t.popper,n=t.popperRect,a=t.placement,l=t.variation,d=t.offsets,i=t.position,o=t.gpuAcceleration,v=t.adaptive,c=t.roundOffsets,f=t.isFixed,y=d.x,h=y===void 0?0:y,j=d.y,x=j===void 0?0:j,T=typeof c=="function"?c({x:h,y:x}):{x:h,y:x};h=T.x,x=T.y;var L=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),M=pe,O=ve,R=window;if(v){var C=ct(r),W="clientHeight",z="clientWidth";if(C===me(r)&&(C=Le(r),De(C).position!=="static"&&i==="absolute"&&(W="scrollHeight",z="scrollWidth")),C=C,a===ve||(a===pe||a===be)&&l===ot){O=xe;var m=f&&C===R&&R.visualViewport?R.visualViewport.height:C[W];x-=m-n.height,x*=o?1:-1}if(a===pe||(a===ve||a===xe)&&l===ot){M=be;var p=f&&C===R&&R.visualViewport?R.visualViewport.width:C[z];h-=p-n.width,h*=o?1:-1}}var g=Object.assign({position:i},v&&Lr),E=c===!0?Nr({x:h,y:x},me(r)):{x:h,y:x};if(h=E.x,x=E.y,o){var S;return Object.assign({},g,(S={},S[O]=A?"0":"",S[M]=L?"0":"",S.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+x+"px)":"translate3d("+h+"px, "+x+"px, 0)",S))}return Object.assign({},g,(e={},e[O]=A?x+"px":"",e[M]=L?h+"px":"",e.transform="",e))}function Br(t){var e=t.state,r=t.options,n=r.gpuAcceleration,a=n===void 0?!0:n,l=r.adaptive,d=l===void 0?!0:l,i=r.roundOffsets,o=i===void 0?!0:i,v={placement:Ce(e.placement),variation:Ze(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Bt(Object.assign({},v,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:d,roundOffsets:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Bt(Object.assign({},v,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Hr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Br,data:{}};var dt={passive:!0};function Ir(t){var e=t.state,r=t.instance,n=t.options,a=n.scroll,l=a===void 0?!0:a,d=n.resize,i=d===void 0?!0:d,o=me(e.elements.popper),v=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&v.forEach(function(c){c.addEventListener("scroll",r.update,dt)}),i&&o.addEventListener("resize",r.update,dt),function(){l&&v.forEach(function(c){c.removeEventListener("scroll",r.update,dt)}),i&&o.removeEventListener("resize",r.update,dt)}}const Wr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ir,data:{}};var zr={left:"right",right:"left",bottom:"top",top:"bottom"};function ut(t){return t.replace(/left|right|bottom|top/g,function(e){return zr[e]})}var Vr={start:"end",end:"start"};function Ht(t){return t.replace(/start|end/g,function(e){return Vr[e]})}function Rt(t){var e=me(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function jt(t){return Qe(Le(t)).left+Rt(t).scrollLeft}function Fr(t,e){var r=me(t),n=Le(t),a=r.visualViewport,l=n.clientWidth,d=n.clientHeight,i=0,o=0;if(a){l=a.width,d=a.height;var v=Zt();(v||!v&&e==="fixed")&&(i=a.offsetLeft,o=a.offsetTop)}return{width:l,height:d,x:i+jt(t),y:o}}function qr(t){var e,r=Le(t),n=Rt(t),a=(e=t.ownerDocument)==null?void 0:e.body,l=ze(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=ze(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+jt(t),o=-n.scrollTop;return De(a||r).direction==="rtl"&&(i+=ze(r.clientWidth,a?a.clientWidth:0)-l),{width:l,height:d,x:i,y:o}}function Dt(t){var e=De(t),r=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ar(t){return["html","body","#document"].indexOf(Se(t))>=0?t.ownerDocument.body:ye(t)&&Dt(t)?t:ar(gt(t))}function it(t,e){var r;e===void 0&&(e=[]);var n=ar(t),a=n===((r=t.ownerDocument)==null?void 0:r.body),l=me(n),d=a?[l].concat(l.visualViewport||[],Dt(n)?n:[]):n,i=e.concat(d);return a?i:i.concat(it(gt(d)))}function Pt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ur(t,e){var r=Qe(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function It(t,e,r){return e===Kt?Pt(Fr(t,r)):Ve(e)?Ur(e,r):Pt(qr(Le(t)))}function Jr(t){var e=it(gt(t)),r=["absolute","fixed"].indexOf(De(t).position)>=0,n=r&&ye(t)?ct(t):t;return Ve(n)?e.filter(function(a){return Ve(a)&&$t(a,n)&&Se(a)!=="body"}):[]}function Xr(t,e,r,n){var a=e==="clippingParents"?Jr(t):[].concat(e),l=[].concat(a,[r]),d=l[0],i=l.reduce(function(o,v){var c=It(t,v,n);return o.top=ze(c.top,o.top),o.right=pt(c.right,o.right),o.bottom=pt(c.bottom,o.bottom),o.left=ze(c.left,o.left),o},It(t,d,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function nr(t){var e=t.reference,r=t.element,n=t.placement,a=n?Ce(n):null,l=n?Ze(n):null,d=e.x+e.width/2-r.width/2,i=e.y+e.height/2-r.height/2,o;switch(a){case ve:o={x:d,y:e.y-r.height};break;case xe:o={x:d,y:e.y+e.height};break;case be:o={x:e.x+e.width,y:i};break;case pe:o={x:e.x-r.width,y:i};break;default:o={x:e.x,y:e.y}}var v=a?Tt(a):null;if(v!=null){var c=v==="y"?"height":"width";switch(l){case Ge:o[v]=o[v]-(e[c]/2-r[c]/2);break;case ot:o[v]=o[v]+(e[c]/2-r[c]/2);break}}return o}function st(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=n===void 0?t.placement:n,l=r.strategy,d=l===void 0?t.strategy:l,i=r.boundary,o=i===void 0?vr:i,v=r.rootBoundary,c=v===void 0?Kt:v,f=r.elementContext,y=f===void 0?rt:f,h=r.altBoundary,j=h===void 0?!1:h,x=r.padding,T=x===void 0?0:x,L=tr(typeof T!="number"?T:rr(T,lt)),A=y===rt?pr:rt,M=t.rects.popper,O=t.elements[j?A:y],R=Xr(Ve(O)?O:O.contextElement||Le(t.elements.popper),o,c,d),C=Qe(t.elements.reference),W=nr({reference:C,element:M,placement:a}),z=Pt(Object.assign({},M,W)),m=y===rt?z:C,p={top:R.top-m.top+L.top,bottom:m.bottom-R.bottom+L.bottom,left:R.left-m.left+L.left,right:m.right-R.right+L.right},g=t.modifiersData.offset;if(y===rt&&g){var E=g[a];Object.keys(p).forEach(function(S){var U=[be,xe].indexOf(S)>=0?1:-1,V=[ve,xe].indexOf(S)>=0?"y":"x";p[S]+=E[V]*U})}return p}function Yr(t,e){e===void 0&&(e={});var r=e,n=r.placement,a=r.boundary,l=r.rootBoundary,d=r.padding,i=r.flipVariations,o=r.allowedAutoPlacements,v=o===void 0?Qt:o,c=Ze(n),f=c?i?Lt:Lt.filter(function(j){return Ze(j)===c}):lt,y=f.filter(function(j){return v.indexOf(j)>=0});y.length===0&&(y=f);var h=y.reduce(function(j,x){return j[x]=st(t,{placement:x,boundary:a,rootBoundary:l,padding:d})[Ce(x)],j},{});return Object.keys(h).sort(function(j,x){return h[j]-h[x]})}function Gr(t){if(Ce(t)===At)return[];var e=ut(t);return[Ht(t),e,Ht(e)]}function Kr(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var a=r.mainAxis,l=a===void 0?!0:a,d=r.altAxis,i=d===void 0?!0:d,o=r.fallbackPlacements,v=r.padding,c=r.boundary,f=r.rootBoundary,y=r.altBoundary,h=r.flipVariations,j=h===void 0?!0:h,x=r.allowedAutoPlacements,T=e.options.placement,L=Ce(T),A=L===T,M=o||(A||!j?[ut(T)]:Gr(T)),O=[T].concat(M).reduce(function(re,u){return re.concat(Ce(u)===At?Yr(e,{placement:u,boundary:c,rootBoundary:f,padding:v,flipVariations:j,allowedAutoPlacements:x}):u)},[]),R=e.rects.reference,C=e.rects.popper,W=new Map,z=!0,m=O[0],p=0;p<O.length;p++){var g=O[p],E=Ce(g),S=Ze(g)===Ge,U=[ve,xe].indexOf(E)>=0,V=U?"width":"height",H=st(e,{placement:g,boundary:c,rootBoundary:f,altBoundary:y,padding:v}),F=U?S?be:pe:S?xe:ve;R[V]>C[V]&&(F=ut(F));var te=ut(F),Z=[];if(l&&Z.push(H[E]<=0),i&&Z.push(H[F]<=0,H[te]<=0),Z.every(function(re){return re})){m=g,z=!1;break}W.set(g,Z)}if(z)for(var le=j?3:1,Q=function(u){var P=O.find(function(I){var k=W.get(I);if(k)return k.slice(0,u).every(function(de){return de})});if(P)return m=P,"break"},q=le;q>0;q--){var $=Q(q);if($==="break")break}e.placement!==m&&(e.modifiersData[n]._skip=!0,e.placement=m,e.reset=!0)}}const Qr={name:"flip",enabled:!0,phase:"main",fn:Kr,requiresIfExists:["offset"],data:{_skip:!1}};function Wt(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function zt(t){return[ve,be,xe,pe].some(function(e){return t[e]>=0})}function Zr(t){var e=t.state,r=t.name,n=e.rects.reference,a=e.rects.popper,l=e.modifiersData.preventOverflow,d=st(e,{elementContext:"reference"}),i=st(e,{altBoundary:!0}),o=Wt(d,n),v=Wt(i,a,l),c=zt(o),f=zt(v);e.modifiersData[r]={referenceClippingOffsets:o,popperEscapeOffsets:v,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const $r={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function ea(t,e,r){var n=Ce(t),a=[pe,ve].indexOf(n)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,d=l[0],i=l[1];return d=d||0,i=(i||0)*a,[pe,be].indexOf(n)>=0?{x:i,y:d}:{x:d,y:i}}function ta(t){var e=t.state,r=t.options,n=t.name,a=r.offset,l=a===void 0?[0,0]:a,d=Qt.reduce(function(c,f){return c[f]=ea(f,e.rects,l),c},{}),i=d[e.placement],o=i.x,v=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=v),e.modifiersData[n]=d}const ra={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ta};function aa(t){var e=t.state,r=t.name;e.modifiersData[r]=nr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const na={name:"popperOffsets",enabled:!0,phase:"read",fn:aa,data:{}};function ia(t){return t==="x"?"y":"x"}function oa(t){var e=t.state,r=t.options,n=t.name,a=r.mainAxis,l=a===void 0?!0:a,d=r.altAxis,i=d===void 0?!1:d,o=r.boundary,v=r.rootBoundary,c=r.altBoundary,f=r.padding,y=r.tether,h=y===void 0?!0:y,j=r.tetherOffset,x=j===void 0?0:j,T=st(e,{boundary:o,rootBoundary:v,padding:f,altBoundary:c}),L=Ce(e.placement),A=Ze(e.placement),M=!A,O=Tt(L),R=ia(O),C=e.modifiersData.popperOffsets,W=e.rects.reference,z=e.rects.popper,m=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,p=typeof m=="number"?{mainAxis:m,altAxis:m}:Object.assign({mainAxis:0,altAxis:0},m),g=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,E={x:0,y:0};if(C){if(l){var S,U=O==="y"?ve:pe,V=O==="y"?xe:be,H=O==="y"?"height":"width",F=C[O],te=F+T[U],Z=F-T[V],le=h?-z[H]/2:0,Q=A===Ge?W[H]:z[H],q=A===Ge?-z[H]:-W[H],$=e.elements.arrow,re=h&&$?St($):{width:0,height:0},u=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:er(),P=u[U],I=u[V],k=nt(0,W[H],re[H]),de=M?W[H]/2-le-k-P-p.mainAxis:Q-k-P-p.mainAxis,ue=M?-W[H]/2+le+k+I+p.mainAxis:q+k+I+p.mainAxis,B=e.elements.arrow&&ct(e.elements.arrow),ae=B?O==="y"?B.clientTop||0:B.clientLeft||0:0,ie=(S=g==null?void 0:g[O])!=null?S:0,Te=F+de-ie-ae,Ne=F+ue-ie,we=nt(h?pt(te,Te):te,F,h?ze(Z,Ne):Z);C[O]=we,E[O]=we-F}if(i){var fe,ge=O==="x"?ve:pe,ht=O==="x"?xe:be,Re=C[R],Ue=R==="y"?"height":"width",ee=Re+T[ge],ke=Re-T[ht],Ee=[ve,pe].indexOf(L)!==-1,Be=(fe=g==null?void 0:g[R])!=null?fe:0,He=Ee?ee:Re-W[Ue]-z[Ue]-Be+p.altAxis,he=Ee?Re+W[Ue]+z[Ue]-Be-p.altAxis:ke,Me=h&&Ee?Tr(He,Re,he):nt(h?He:ee,Re,h?he:ke);C[R]=Me,E[R]=Me-Re}e.modifiersData[n]=E}}const sa={name:"preventOverflow",enabled:!0,phase:"main",fn:oa,requiresIfExists:["offset"]};function la(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ca(t){return t===me(t)||!ye(t)?Rt(t):la(t)}function da(t){var e=t.getBoundingClientRect(),r=Ke(e.width)/t.offsetWidth||1,n=Ke(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ua(t,e,r){r===void 0&&(r=!1);var n=ye(e),a=ye(e)&&da(e),l=Le(e),d=Qe(t,a,r),i={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(n||!n&&!r)&&((Se(e)!=="body"||Dt(l))&&(i=ca(e)),ye(e)?(o=Qe(e,!0),o.x+=e.clientLeft,o.y+=e.clientTop):l&&(o.x=jt(l))),{x:d.left+i.scrollLeft-o.x,y:d.top+i.scrollTop-o.y,width:d.width,height:d.height}}function fa(t){var e=new Map,r=new Set,n=[];t.forEach(function(l){e.set(l.name,l)});function a(l){r.add(l.name);var d=[].concat(l.requires||[],l.requiresIfExists||[]);d.forEach(function(i){if(!r.has(i)){var o=e.get(i);o&&a(o)}}),n.push(l)}return t.forEach(function(l){r.has(l.name)||a(l)}),n}function va(t){var e=fa(t);return Pr.reduce(function(r,n){return r.concat(e.filter(function(a){return a.phase===n}))},[])}function pa(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ma(t){var e=t.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Vt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ft(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ga(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,a=e.defaultOptions,l=a===void 0?Vt:a;return function(i,o,v){v===void 0&&(v=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vt,l),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},f=[],y=!1,h={state:c,setOptions:function(L){var A=typeof L=="function"?L(c.options):L;x(),c.options=Object.assign({},l,c.options,A),c.scrollParents={reference:Ve(i)?it(i):i.contextElement?it(i.contextElement):[],popper:it(o)};var M=va(ma([].concat(n,c.options.modifiers)));return c.orderedModifiers=M.filter(function(O){return O.enabled}),j(),h.update()},forceUpdate:function(){if(!y){var L=c.elements,A=L.reference,M=L.popper;if(Ft(A,M)){c.rects={reference:ua(A,ct(M),c.options.strategy==="fixed"),popper:St(M)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(p){return c.modifiersData[p.name]=Object.assign({},p.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var R=c.orderedModifiers[O],C=R.fn,W=R.options,z=W===void 0?{}:W,m=R.name;typeof C=="function"&&(c=C({state:c,options:z,name:m,instance:h})||c)}}}},update:pa(function(){return new Promise(function(T){h.forceUpdate(),T(c)})}),destroy:function(){x(),y=!0}};if(!Ft(i,o))return h;h.setOptions(v).then(function(T){!y&&v.onFirstUpdate&&v.onFirstUpdate(T)});function j(){c.orderedModifiers.forEach(function(T){var L=T.name,A=T.options,M=A===void 0?{}:A,O=T.effect;if(typeof O=="function"){var R=O({state:c,name:L,instance:h,options:M}),C=function(){};f.push(R||C)}})}function x(){f.forEach(function(T){return T()}),f=[]}return h}}var ha=[Wr,na,Hr,Ar,ra,Qr,sa,Mr,$r],ya=ga({defaultModifiers:ha}),xa=J('<div class="popper svelte-1dn0eza"><!></div>');function ba(t,e){Fe(e,!0);let r=ne(e,"referenceEl",3,null),n=ne(e,"placement",3,"bottom-start"),a=ne(e,"offset",19,()=>[0,2]),l=ne(e,"flip",3,!0),d=ne(e,"preventOverflow",3,!0),i=ce(null),o=null;function v(){if(!r()||!s(i))return;const x=[];a()&&x.push({name:"offset",options:{offset:a()}}),l()&&x.push({name:"flip",options:{fallbackPlacements:["top-start","bottom-end","top-end"]}}),d()&&x.push({name:"preventOverflow",options:{padding:8}}),o=ya(r(),s(i),{placement:n(),modifiers:x})}function c(){o&&o.update()}mt(()=>(v(),()=>{o&&(o.destroy(),o=null)})),ft(()=>(r()&&s(i)&&v(),()=>{o&&(o.destroy(),o=null)}));function f(){c()}var y={update:f},h=xa(),j=b(h);return lr(j,()=>e.children),w(h),Ye(h,x=>Y(i,x),()=>s(i)),_(t,h),qe(y)}var wa=J('<div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><div class="popover svelte-1fd3ybn" role="dialog" aria-modal="true"><!></div></div>');function mn(t,e){Fe(e,!0);let r=ne(e,"open",3,!1),n=ne(e,"anchorEl",3,null),a=ne(e,"id",3,""),l=ne(e,"placement",3,"bottom-start"),d=ne(e,"offset",19,()=>[0,2]),i=ne(e,"flip",3,!0),o=ne(e,"preventOverflow",3,!0),v=ne(e,"onClose",3,()=>{}),c=ce(null),f=ce(null);function y(){v()()}function h(A){if(r()&&s(c)&&n()){const M=A.target;!s(c).contains(M)&&!n().contains(M)&&y()}}function j(A){A.key==="Escape"&&r()&&y()}mt(()=>{document.addEventListener("click",h,!0),document.addEventListener("keydown",j);const A=()=>{s(f)&&s(f).update()},M=()=>{s(f)&&s(f).update()};return window.addEventListener("resize",A),window.addEventListener("scroll",M,!0),()=>{document.removeEventListener("click",h,!0),document.removeEventListener("keydown",j),window.removeEventListener("resize",A),window.removeEventListener("scroll",M,!0)}});var x=at(),T=Pe(x);{var L=A=>{Ye(ba(A,{get referenceEl(){return n()},get placement(){return l()},get offset(){return d()},get flip(){return i()},get preventOverflow(){return o()},children:O=>{var R=wa(),C=b(R),W=b(C);e.children(W),w(C),Ye(C,z=>Y(c,z),()=>s(c)),w(R),Ye(R,z=>Y(c,z),()=>s(c)),X(()=>{var z;_t(R,"id",a()),_t(C,"id",a()),cr(C,`min-width:${((z=n())==null?void 0:z.offsetWidth)??0}px`)}),_(O,R)},$$slots:{default:!0}}),O=>Y(f,O,!0),()=>s(f))};G(T,A=>{r()&&n()&&A(L)})}_(t,x),qe()}var _a=J('<div><div class="h-full w-full"></div></div>');function We(t,e){Fe(e,!0);let r=ne(e,"language",3,"json"),n=ne(e,"class",3,""),a=null,l=null,d=ce(null),i=ce(!1);mt(()=>{if(!s(d))return;Jt();let c=!1;return Gt(()=>import("./BfHUxT3G.js").then(f=>f.e),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(f=>{c||(Xt(f),a=f.editor.create(s(d),{value:e.value??"",language:r(),theme:"bosun-dark",lineNumbers:"off",readOnly:!0,automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,renderLineHighlight:"none",contextmenu:!1}),l=a.getModel(),Y(i,!0))}).catch(f=>{console.error("ReadOnlyMonaco: failed to init",f)}),()=>{c=!0;const f=l;if(l=null,a){try{a.setModel(null)}catch{}a.dispose(),a=null}try{f==null||f.dispose()}catch{}}}),ft(()=>{if(!a||!s(i))return;const c=e.value??"";a.getValue()!==c&&a.setValue(c)});var o=_a(),v=b(o);Ye(v,c=>Y(d,c),()=>s(d)),w(o),X(()=>Ae(o,1,`overflow-hidden rounded-md border border-rc-gray-700 ${n()}`)),_(t,o),qe()}var Oa=(t,e)=>Y(e,!0),Pa=J('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),ka=J('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Ea=J("<!> <!>",1),Aa=J('<div class="flex flex-col gap-3"><!> <div class="flex flex-wrap items-center justify-between gap-2 text-sm text-rc-gray-200"><div class="flex flex-wrap items-center gap-x-4 gap-y-1"><div><span class="text-rc-gray-400">Timing:</span> </div> <div><span class="text-rc-gray-400">Response time:</span> </div> <div><span class="text-rc-gray-400">URL:</span> </div></div> <!></div> <div><!> <div class="mt-2 h-[55vh]"><!></div></div></div>'),Ca=J('<button type="button" class="flex w-full items-baseline gap-2 truncate rounded-md bg-transparent px-2 py-1 text-left text-sm text-rc-gray-200 hover:bg-rc-gray-800/40"><!> <!> <span> </span></button> <!>',1);function gn(t,e){Fe(e,!0);let r=ce(!1),n=ce("request");function a(p){try{if(typeof p=="string"){const g=p.trim();if(!g)return"";const E=JSON.parse(g);return JSON.stringify(E,null,2)}}catch{}try{return JSON.stringify(p??null,null,2)}catch{return String(p)}}function l(p){return new Date(p).toISOString()}function d(p){if(typeof p!="number"||!Number.isFinite(p))return null;const g=new Date(p);if(Number.isNaN(g.getTime()))return null;const E=String(g.getHours()).padStart(2,"0"),S=String(g.getMinutes()).padStart(2,"0"),U=String(g.getSeconds()).padStart(2,"0");return`${E}:${S}:${U}`}const i=N(()=>d(e.trace.createdAt)),o=N(()=>{if(e.trace.error!=null)return e.trace.error;if(!(e.trace.ok===!1||typeof e.trace.status=="number"&&e.trace.status>=400))return;const g=e.trace.response;return g&&typeof g=="object"&&"error"in g&&g.error!=null?g.error:{status:e.trace.status,ok:e.trace.ok}}),v=N(()=>s(o)!=null),c=N(()=>`API: ${e.trace.operationName}`),f=N(()=>e.trace.operationName),y=N(()=>typeof e.trace.createdAt!="number"?"—":l(e.trace.createdAt));async function h(){const p=a(e.trace);try{await navigator.clipboard.writeText(p)}catch(g){console.error("Failed to copy",g)}}const j=N(()=>a({method:e.trace.method,path:e.trace.path,baseUrl:e.trace.baseUrl,request:e.trace.request})),x=N(()=>a({status:e.trace.status,ok:e.trace.ok,response:e.trace.response,error:s(o)})),T=N(()=>s(o)!=null?a(s(o)):"");var L=Ca(),A=Pe(L);A.__click=[Oa,r];var M=b(A);{let p=N(()=>s(v)?"close":"checkmark"),g=N(()=>s(v)?"self-center text-red-400":"self-center text-rc-green-200");qt(M,{get name(){return s(p)},width:18,height:18,get class(){return s(g)}})}var O=D(M,2);{var R=p=>{var g=Pa(),E=b(g,!0);w(g),X(()=>K(E,s(i))),_(p,g)};G(O,p=>{s(i)&&p(R)})}var C=D(O,2),W=b(C,!0);w(C),w(A);var z=D(A,2);{var m=p=>{Et(p,{get title(){return s(c)},class:"!w-[85vw] !max-w-5xl",get open(){return s(r)},set open(E){Y(r,E,!0)},children:E=>{var S=Aa(),U=b(S);{var V=B=>{var ae=ka(),ie=b(ae,!0);w(ae),X(()=>K(ie,s(T))),_(B,ae)};G(U,B=>{s(T)&&B(V)})}var H=D(U,2),F=b(H),te=b(F),Z=D(b(te));w(te);var le=D(te,2),Q=D(b(le));w(le);var q=D(le,2),$=D(b(q));w(q),w(F);var re=D(F,2);vt(re,{variant:"secondary",size:"small",onclick:h,children:(B,ae)=>{Oe();var ie=se("Copy raw trace");_(B,ie)},$$slots:{default:!0}}),w(H);var u=D(H,2),P=b(u);Yt(P,{get value(){return s(n)},ariaLabel:"API trace tabs",onChange:({value:B})=>Y(n,B,!0),children:(B,ae)=>{var ie=Ea(),Te=Pe(ie);Ie(Te,{value:"request",class:"px-3",children:(we,fe)=>{Oe();var ge=se("Request");_(we,ge)},$$slots:{default:!0}});var Ne=D(Te,2);Ie(Ne,{value:"response",class:"px-3",children:(we,fe)=>{Oe();var ge=se("Response");_(we,ge)},$$slots:{default:!0}}),_(B,ie)},$$slots:{default:!0}});var I=D(P,2),k=b(I);{var de=B=>{We(B,{get value(){return s(j)},language:"json",class:"h-full"})},ue=B=>{We(B,{get value(){return s(x)},language:"json",class:"h-full"})};G(k,B=>{s(n)==="request"?B(de):B(ue,!1)})}w(I),w(u),w(S),X(B=>{K(Z,` ${s(y)??""}`),K(Q,` ${B??""}`),K($,` ${e.trace.path??""}`)},[()=>typeof e.trace.durationMs=="number"?`${Math.round(e.trace.durationMs)}ms`:"—"]),_(E,S)},$$slots:{default:!0}})};G(z,p=>{s(r)&&p(m)})}X(()=>{Ae(C,1,Ut(s(v)?"text-red-200":"")),K(W,s(f))}),_(t,L),qe()}kt(["click"]);var Sa=(t,e)=>Y(e,!0),Ta=J('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),Ra=J('<div class="flex w-full justify-center"><div role="button" tabindex="0"><div class="flex flex-wrap items-baseline gap-x-2 gap-y-0"><!> <div class="min-w-0 break-words"> </div></div></div></div>'),ja=J('<div class="mr-2 mt-1 flex h-5 w-5 shrink-0 items-center justify-center rounded-sm bg-rc-green-700 text-sm uppercase text-rc-gray-100 backdrop-blur-md"> </div>'),Da=(t,e)=>Y(e,!0),Ma=J('<div class="mt-1 text-right text-xs text-rc-gray-200/70"> </div>'),La=(t,e)=>{t.stopPropagation(),e()},Na=J('<button type="button"><!></button>'),Ba=(t,e)=>{t.stopPropagation(),e.onAnalyze(e.trace)},Ha=J('<button type="button" class="cursor-pointer text-nowrap border-0 bg-transparent pb-1 pl-3 pr-1 text-rc-gray-300 transition-colors hover:text-rc-green-200 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:text-rc-gray-400 disabled:hover:text-rc-gray-400">Analyze</button>'),Ia=J('<div class="ml-0 flex flex-col items-start"><!> <!></div>'),Wa=J('<!> <div role="button" tabindex="0"><div><div> </div> <!></div></div> <!>',1),za=J('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Va=J('<div class="flex flex-col gap-3"><!> <div class="flex items-center justify-between gap-2 text-sm text-rc-gray-200"><div class="text-rc-gray-400"> </div> <!></div> <div class="h-[55vh]"><!></div></div>'),Fa=J("<div><!></div> <!>",1);function hn(t,e){Fe(e,!0);let r=ne(e,"analyzeDisabled",3,!1),n=ce(!1),a=ce("idle");function l(m){return m?m.split("/").at(-1)??m:""}function d(m){const p=l(m).trim().charAt(0);return p?p.toUpperCase():"?"}const i=N(()=>e.trace.role==="system"?"system":e.trace.eventName==="finished-main-streaming-step"||e.trace.eventName==="sent-message"?"agent":(e.trace.role==="user","user")),o=N(()=>e.trace.error!=null);function v(m){if(typeof m!="number"||!Number.isFinite(m))return null;const p=new Date(m);if(Number.isNaN(p.getTime()))return null;const g=String(p.getHours()).padStart(2,"0"),E=String(p.getMinutes()).padStart(2,"0"),S=String(p.getSeconds()).padStart(2,"0");return`${g}:${E}:${S}`}const c=N(()=>{var m;return v((m=e.trace)==null?void 0:m.createdAt)});function f(m){try{return JSON.stringify(m??null,null,2)}catch{return String(m)}}async function y(){try{await navigator.clipboard.writeText(f(e.trace))}catch(m){console.error("Failed to copy",m)}}function h(){return s(i)==="agent"&&e.trace.eventName!=="transfer-requested"&&!!(e.agentId&&e.agentId.trim())&&(e.trace.eventName==="finished-main-streaming-step"||e.trace.eventName==="sent-message")}function j(){return s(i)==="agent"&&e.trace.eventName!=="transfer-requested"&&!!(e.agentId&&e.agentId.trim())&&(e.trace.eventName==="finished-main-streaming-step"||e.trace.eventName==="sent-message")}function x(m,p){const g=(m??"").trim();if(!g)return"";const E=g.split(`
|
|
3
|
+
`).map(V=>V.trimEnd()).filter(V=>V.trim()!=="");if(!E.length)return"";const S=E[E.length-1],U=(p??"").trim();return U&&S.includes(U)&&E.pop(),E.join(`
|
|
4
|
+
`)}async function T(){try{Y(a,"idle");const m=(e.agentId||"").trim();if(!m)throw new Error("Agent id is not available; cannot add test");const p=Mt.indexOf(e.trace);let g="";if(p!==-1)for(let V=p-1;V>=0;V--){const H=Mt[V];if(fr(H)&&typeof H.stringifiedConversation=="string"){const F=H.stringifiedConversation.trim();if(F){g=F;break}}}const E=(e.trace.content??"").trim(),U={pinned:"TRUE",assertion_type:"llm-rubric",assertion_value:"",conversation:x(g,E),expected_output:E,similarity_threshold:"60",timeout:"0",context:e.context||{}};await ur.tests.addTest.mutate({agent:m,seed:U,mergeContexts:!0}),Y(a,"ok"),dr(`/edit/${encodeURIComponent(m)}/tests`),setTimeout(()=>Y(a,"idle"),3e3)}catch(m){console.error("Failed to add test",m),Y(a,"error"),setTimeout(()=>Y(a,"idle"),4e3)}}var L=Fa(),A=Pe(L);let M;var O=b(A);{var R=m=>{var p=Ra(),g=b(p);g.__click=[Sa,n];var E=b(g),S=b(E);{var U=F=>{var te=Ta(),Z=b(te,!0);w(te),X(()=>K(Z,s(c))),_(F,te)};G(S,F=>{s(c)&&F(U)})}var V=D(S,2),H=b(V);w(V),w(E),w(g),w(p),X(()=>{Ae(g,1,`rounded-full border border-rc-gray-650 bg-rc-gray-800/40 px-4 py-2 text-sm text-rc-gray-100 ${s(o)?"border-red-500 bg-red-950/30 text-red-200":""}`),K(H,`Transfer requested: ${e.trace.content??""}`)}),_(m,p)},C=m=>{var p=Wa(),g=Pe(p);{var E=Q=>{var q=ja(),$=b(q,!0);w(q),X((re,u)=>{_t(q,"title",re),K($,u)},[()=>l(e.agentId),()=>d(e.agentId)]),_(Q,q)};G(g,Q=>{s(i)==="agent"&&e.agentId&&Q(E)})}var S=D(g,2);S.__click=[Da,n];var U=b(S),V=b(U),H=b(V,!0);w(V);var F=D(V,2);{var te=Q=>{var q=Ma(),$=b(q,!0);w(q),X(()=>K($,s(c))),_(Q,q)};G(F,Q=>{s(c)&&Q(te)})}w(U),w(S);var Z=D(S,2);{var le=Q=>{var q=Ia(),$=b(q);{var re=I=>{var k=Na();k.__click=[La,T];var de=b(k);{var ue=ae=>{var ie=se("Added");_(ae,ie)},B=ae=>{var ie=at(),Te=Pe(ie);{var Ne=fe=>{var ge=se("Failed");_(fe,ge)},we=fe=>{var ge=se("Add test");_(fe,ge)};G(Te,fe=>{s(a)==="error"?fe(Ne):fe(we,!1)},!0)}_(ae,ie)};G(de,ae=>{s(a)==="ok"?ae(ue):ae(B,!1)})}w(k),X(()=>Ae(k,1,`cursor-pointer text-nowrap border-0 bg-transparent pb-1 pl-3 pr-1 transition-colors focus:outline-none focus-visible:outline-none ${s(a)!=="idle"?"text-rc-gray-400":"text-rc-gray-300 hover:text-rc-green-200"}`)),_(I,k)};G($,I=>{h()&&I(re)})}var u=D($,2);{var P=I=>{var k=Ha();k.__click=[Ba,e],X(()=>k.disabled=r()),_(I,k)};G(u,I=>{j()&&e.onAnalyze&&I(P)})}w(q),_(Q,q)};G(Z,Q=>{(j()||h())&&Q(le)})}X(()=>{Ae(S,1,`min-w-0 ${s(i)==="agent"?"max-w-[83%]":""}`),Ae(U,1,`rounded-lg ${s(i)==="system"?"justify-between whitespace-pre-line break-words border border-emerald-500 text-emerald-500":s(i)!=="user"?"w-full whitespace-pre-line break-words bg-rc-green-700 backdrop-blur-md":"max-w5/6 justify-self-end bg-rc-gray-700"} border-thin border-rc-gray-110 p-2 pt-1 text-rc-gray-100 ${s(o)?"border-red-500 bg-red-950/30 text-red-200":""}`),K(H,e.trace.content)}),_(m,p)};G(O,m=>{e.trace.eventName==="transfer-requested"?m(R):m(C,!1)})}w(A);var W=D(A,2);{var z=m=>{{const p=E=>{var S=Va(),U=b(S);{var V=q=>{var $=za(),re=b($,!0);w($),X(u=>K(re,u),[()=>f(e.trace.error)]),_(q,$)};G(U,q=>{s(o)&&q(V)})}var H=D(U,2),F=b(H),te=b(F);w(F);var Z=D(F,2);vt(Z,{variant:"secondary",size:"small",onclick:y,children:(q,$)=>{Oe();var re=se("Copy raw trace");_(q,re)},$$slots:{default:!0}}),w(H);var le=D(H,2),Q=b(le);{let q=N(()=>f(e.trace));We(Q,{get value(){return s(q)},language:"json",class:"h-full"})}w(le),w(S),X(()=>K(te,`${e.trace.role??""} • ${e.trace.medium??""}`)),_(E,S)};let g=N(()=>`Conversation: ${e.trace.eventName}`);Et(m,{get title(){return s(g)},class:"!w-[80vw] !max-w-4xl",get open(){return s(n)},set open(E){Y(n,E,!0)},children:p,$$slots:{default:!0}})}};G(W,m=>{s(n)&&m(z)})}X(m=>M=Ae(A,1,"group mb-2 flex w-full items-center",null,M,m),[()=>({"justify-end":s(i)==="user"||s(i)==="system"})]),_(t,L),qe()}kt(["click"]);var qa=J('<div><div class="h-full w-full"></div></div>');function Ua(t,e){Fe(e,!0);let r=ne(e,"language",3,"markdown"),n=ne(e,"class",3,""),a=ce(null),l=null,d=null,i=null,o=ce(!1);mt(()=>{if(!s(a))return;Jt();let f=!1;return Gt(()=>import("./BfHUxT3G.js").then(y=>y.e),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(y=>{if(f)return;Xt(y),d=y,l=y.editor.createDiffEditor(s(a),{theme:"bosun-dark",readOnly:!0,automaticLayout:!0,lineNumbers:"off",renderSideBySide:!0,renderIndicators:!0,ignoreTrimWhitespace:!1,diffWordWrap:"on",diffAlgorithm:"advanced",maxComputationTime:2e4,renderMarginRevertIcon:!1,renderGutterMenu:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:"on",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,matchBrackets:"never",bracketPairColorization:{enabled:!1},guides:{highlightActiveBracketPair:!1,bracketPairs:!1,bracketPairsHorizontal:!1},occurrencesHighlight:"off",selectionHighlight:!1,renderLineHighlight:"none",contextmenu:!1,originalEditable:!1});const h=y.editor.createModel(e.original??"",r()),j=y.editor.createModel(e.modified??"",r());i={original:h,modified:j},l.setModel({original:h,modified:j}),Y(o,!0)}).catch(y=>{console.error("ReadOnlyMonacoDiff: failed to init",y)}),()=>{if(f=!0,l){try{l.setModel(null)}catch{}l.dispose(),l=null}i&&(i.original.dispose(),i.modified.dispose(),i=null),d=null}}),ft(()=>{if(!l||!i||!s(o))return;const f=e.original??"",y=e.modified??"";i.original.getValue()!==f&&i.original.setValue(f),i.modified.getValue()!==y&&i.modified.setValue(y)}),ft(()=>{if(!l||!i||!s(o)||!d)return;const f=r()||"markdown";i.original.getLanguageId()!==f&&d.editor.setModelLanguage(i.original,f),i.modified.getLanguageId()!==f&&d.editor.setModelLanguage(i.modified,f)});var v=qa(),c=b(v);Ye(c,f=>Y(a,f),()=>s(a)),w(v),X(()=>Ae(v,1,`overflow-hidden rounded-md border border-rc-gray-700 ${n()}`)),_(t,v),qe()}var Ja=(t,e)=>Y(e,!0),Xa=J('<span class="text-[13px] leading-none text-rc-gray-400"> </span>'),Ya=J("<span><!></span>"),Ga=J('<div class="rounded-md border border-red-500 bg-red-950/40 p-3 font-mono text-sm text-red-200"> </div>'),Ka=J("<!> <!> <!> <!> <!>",1),Qa=J('<div class="flex h-full flex-col gap-2"><div class="grid grid-cols-2 gap-2"><div class="flex items-center justify-start"><!></div> <div class="flex items-center justify-end"><!></div></div> <!></div>'),Za=J('<div class="flex flex-col gap-3"><!> <div class="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-rc-gray-200"><div><span class="text-rc-gray-400">Timing:</span> </div> <div><span class="text-rc-gray-400">Response time:</span> —</div> <div><span class="text-rc-gray-400">Model:</span> </div></div> <div><!> <div class="mt-2 h-[55vh]"><!></div></div></div>'),$a=J('<button type="button" class="flex w-full items-baseline gap-2 truncate rounded-md bg-transparent px-2 py-1 text-left text-sm text-rc-gray-200 hover:bg-rc-gray-800/40"><!> <!> <span> </span> <!></button> <!>',1);function yn(t,e){Fe(e,!0);let r=ce(!1),n=ce("response");function a(u){return u&&typeof u.renderedPrompt=="string"?u.renderedPrompt:null}function l(u,P){if(u===P)return u.length;const I=Math.min(u.length,P.length);for(let k=0;k<I;k++)if(u.charCodeAt(k)!==P.charCodeAt(k))return k;return I}function d(u,P){const I=Math.max(u.length,P.length);if(I===0)return 100;const k=l(u,P);return Math.floor(k/I*100)}function i(u){const P=new WeakSet;try{return JSON.stringify(u,(I,k)=>{if(typeof k=="bigint")return k.toString();if(k instanceof Error)return{name:k.name,message:k.message,stack:k.stack};if(typeof k=="object"&&k!==null){if(P.has(k))return"[Circular]";P.add(k)}return k},2)??""}catch{return String(u)}}function o(u){if(u==null)return"";if(typeof u=="string"){const P=u.trim();if(!P)return"";try{return JSON.stringify(JSON.parse(P),null,2)}catch{return u}}return i(u)}function v(u){return new Date(u).toISOString()}function c(u){if(typeof u!="number"||!Number.isFinite(u))return null;const P=new Date(u);if(Number.isNaN(P.getTime()))return null;const I=String(P.getHours()).padStart(2,"0"),k=String(P.getMinutes()).padStart(2,"0"),de=String(P.getSeconds()).padStart(2,"0");return`${I}:${k}:${de}`}const f=N(()=>c(e.trace.createdAt)),y=N(()=>e.trace.error!=null),h=N(()=>`AI: ${e.trace.name}`),j=N(()=>e.trace.name),x=N(()=>{if(e.trace.name!=="main")return null;const u=a(e.trace),P=a(e.compareTrace);return u==null||P==null?null:d(u,P)}),T=N(()=>o(e.trace.response)),L=N(()=>{const u=e.trace.response;if(typeof u!="string")return"json";try{return JSON.parse(u),"json"}catch{return"text"}}),A=N(()=>e.trace.stringifiedConversation??""),M=N(()=>o(e.trace.renderedPrompt)),O=N(()=>o(e.trace.receivedPrompt)),R=N(()=>o(e.trace.receivedContext)),C=N(()=>o(e.trace.schema)),W=N(()=>e.trace.error?i(e.trace.error):"");function z(u){return u==null?"":typeof u=="string"?u:i(u)}const m=N(()=>z(e.trace.receivedPrompt)),p=N(()=>z(e.trace.renderedPrompt));let g=ce(null),E=ce(null);async function S(u){try{const P=u==="raw"?s(m):s(p);await navigator.clipboard.writeText(P),Y(g,u,!0),s(E)&&clearTimeout(s(E)),Y(E,window.setTimeout(()=>{Y(g,null),Y(E,null)},2e3),!0)}catch(P){console.error("Failed to copy prompt",P)}}var U=$a(),V=Pe(U);V.__click=[Ja,r];var H=b(V);{let u=N(()=>s(y)?"close":"checkmark"),P=N(()=>s(y)?"self-center text-red-400":"self-center text-rc-green-200");qt(H,{get name(){return s(u)},width:18,height:18,get class(){return s(P)}})}var F=D(H,2);{var te=u=>{var P=Xa(),I=b(P,!0);w(P),X(()=>K(I,s(f))),_(u,P)};G(F,u=>{s(f)&&u(te)})}var Z=D(F,2),le=b(Z);w(Z);var Q=D(Z,2);{var q=u=>{var P=Ya(),I=b(P);{var k=ue=>{var B=se();X(()=>K(B,`${s(x)??""}% cached - move dynamic parts of prompt to the bottom`)),_(ue,B)},de=ue=>{var B=se();X(()=>K(B,`${s(x)??""}%`)),_(ue,B)};G(I,ue=>{s(x)<80?ue(k):ue(de,!1)})}w(P),X(()=>Ae(P,1,`shrink-0 text-xs ${s(x)<80?"text-red-200":"text-rc-gray-400"}`)),_(u,P)};G(Q,u=>{s(x)!=null&&u(q)})}w(V);var $=D(V,2);{var re=u=>{Et(u,{get title(){return s(h)},class:"!w-[85vw] !max-w-5xl",get open(){return s(r)},set open(I){Y(r,I,!0)},children:I=>{var k=Za(),de=b(k);{var ue=ee=>{var ke=Ga(),Ee=b(ke,!0);w(ke),X(()=>K(Ee,s(W))),_(ee,ke)};G(de,ee=>{s(W)&&ee(ue)})}var B=D(de,2),ae=b(B),ie=D(b(ae));w(ae);var Te=D(ae,4),Ne=D(b(Te));w(Te),w(B);var we=D(B,2),fe=b(we);Yt(fe,{get value(){return s(n)},ariaLabel:"Step trace tabs",onChange:({value:ee})=>Y(n,ee,!0),children:(ee,ke)=>{var Ee=Ka(),Be=Pe(Ee);Ie(Be,{value:"response",class:"px-3",children:(_e,Je)=>{Oe();var oe=se("Response");_(_e,oe)},$$slots:{default:!0}});var He=D(Be,2);Ie(He,{value:"conversation",class:"px-3",children:(_e,Je)=>{Oe();var oe=se("Conversation");_(_e,oe)},$$slots:{default:!0}});var he=D(He,2);Ie(he,{value:"prompt",class:"px-3",children:(_e,Je)=>{Oe();var oe=se("Prompt");_(_e,oe)},$$slots:{default:!0}});var Me=D(he,2);Ie(Me,{value:"context",class:"px-3",children:(_e,Je)=>{Oe();var oe=se("Context");_(_e,oe)},$$slots:{default:!0}});var yt=D(Me,2);Ie(yt,{value:"schema",class:"px-3",children:(_e,Je)=>{Oe();var oe=se("Schema");_(_e,oe)},$$slots:{default:!0}}),_(ee,Ee)},$$slots:{default:!0}});var ge=D(fe,2),ht=b(ge);{var Re=ee=>{We(ee,{get value(){return s(T)},get language(){return s(L)},class:"h-full"})},Ue=ee=>{var ke=at(),Ee=Pe(ke);{var Be=he=>{We(he,{get value(){return s(A)},language:"text",class:"h-full"})},He=he=>{var Me=at(),yt=Pe(Me);{var _e=oe=>{var Xe=Qa(),$e=b(Xe),et=b($e),xt=b(et);{let bt=N(()=>!s(m).trim());vt(xt,{variant:"secondary",size:"small",get disabled(){return s(bt)},onclick:()=>S("raw"),children:(wt,sr)=>{Oe();var tt=se();X(()=>K(tt,s(g)==="raw"?"Copied raw prompt":"Copy raw prompt")),_(wt,tt)},$$slots:{default:!0}})}w(et);var je=D(et,2),ir=b(je);{let bt=N(()=>!s(p).trim());vt(ir,{variant:"secondary",size:"small",get disabled(){return s(bt)},onclick:()=>S("rendered"),children:(wt,sr)=>{Oe();var tt=se();X(()=>K(tt,s(g)==="rendered"?"Copied rendered prompt":"Copy rendered prompt")),_(wt,tt)},$$slots:{default:!0}})}w(je),w($e);var or=D($e,2);Ua(or,{get original(){return s(O)},get modified(){return s(M)},language:"markdown",class:"min-h-0 flex-1"}),w(Xe),_(oe,Xe)},Je=oe=>{var Xe=at(),$e=Pe(Xe);{var et=je=>{We(je,{get value(){return s(R)},language:"json",class:"h-full"})},xt=je=>{We(je,{get value(){return s(C)},language:"json",class:"h-full"})};G($e,je=>{s(n)==="context"?je(et):je(xt,!1)},!0)}_(oe,Xe)};G(yt,oe=>{s(n)==="prompt"?oe(_e):oe(Je,!1)},!0)}_(he,Me)};G(Ee,he=>{s(n)==="conversation"?he(Be):he(He,!1)},!0)}_(ee,ke)};G(ht,ee=>{s(n)==="response"?ee(Re):ee(Ue,!1)})}w(ge),w(we),w(k),X(ee=>{K(ie,` ${ee??""}`),K(Ne,` ${e.trace.model??"—"??""}`)},[()=>typeof e.trace.createdAt=="number"?v(e.trace.createdAt):"—"]),_(I,k)},$$slots:{default:!0}})};G($,u=>{s(r)&&u(re)})}X(()=>{Ae(Z,1,Ut(s(y)?"text-red-200":"")),K(le,`AI: ${s(j)??""}`)}),_(t,U),qe()}kt(["click"]);export{gn as C,mn as D,yn as a,hn as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./
|
|
1
|
+
import{m as s}from"./BfHUxT3G.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as a}from"./CVHvdSBf.js";a();
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./
|
|
1
|
+
import{m as s}from"./BfHUxT3G.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as O,m as I}from"./
|
|
1
|
+
import{t as O,m as I}from"./BfHUxT3G.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./CWj6FrbW.js";import{A as q,p as E,g as N,u as R,ab as B,f as M,d as S,t as T,b as z,c as I,r as C,ac as K,h as _,l as O,e as U,i as j}from"./CVHvdSBf.js";import{w as F,a as L,o as G,c as J}from"./DujX6kBV.js";import{c as V,s as k}from"./BkclRFLx.js";import{p as h,s as P,a as Q}from"./yWz0pZR0.js";import{b as W}from"./DQqJYxgt.js";function X(a,e,l,g,f){const r=e()==="horizontal";if(a.key==="Home"){a.preventDefault(),l.length&&g(l[0].value,!0);return}if(a.key==="End"){a.preventDefault(),l.length&&g(l[l.length-1].value,!0);return}if(r&&(a.key==="ArrowRight"||a.key==="ArrowLeft")){a.preventDefault(),f(a.key==="ArrowRight"?1:-1);return}if(!r&&(a.key==="ArrowDown"||a.key==="ArrowUp")){a.preventDefault(),f(a.key==="ArrowDown"?1:-1);return}}var Y=M('<div><div class="tablist svelte-126ak3w" role="tablist"><!></div></div>');function ie(a,e){E(e,!0);let l=h(e,"value",11,null),g=h(e,"defaultValue",3,null),f=h(e,"ariaLabel",3,"Tabs"),r=h(e,"class",3,""),d=h(e,"orientation",3,"horizontal");const t=N([]);let u=null;const x=F(null);R(()=>{l()!==null?u=l():u===null&&t.length&&(u=g()??t[0].value),x.set(u)});function y(n){var c;const i=t.find(m=>m.value===n);(c=i==null?void 0:i.getEl())==null||c.focus()}function s(n,i=!1){var c;n!==(l()??u)&&(l()===null&&(u=n),(c=e.onChange)==null||c.call(e,{value:n}),i&&queueMicrotask(()=>y(n)))}function D(n){const i=t.findIndex(c=>c.id===n.id);i===-1?t.push(n):t[i]=n}function w(n){var c;const i=t.findIndex(m=>m.id===n);if(i!==-1&&t.splice(i,1),l()===null&&u&&!t.some(m=>m.value===u)&&t.length){const m=t[Math.max(0,i-1)].value;u=m,(c=e.onChange)==null||c.call(e,{value:m})}}function o(n){return t.findIndex(i=>i.value===n)}function A(n){if(!t.length)return;const c=((u?o(u):0)+n+t.length)%t.length;s(t[c].value,!0)}B("rc-tabs",{value:x,requestSelect:n=>s(n),register:D,unregister:w});var b=Y(),v=S(b);v.__keydown=[X,d,t,s,A];var H=S(v);L(H,()=>e.children),C(v),C(b),T(()=>{V(b,1,`tabs-root ${r()}`,"svelte-126ak3w"),k(v,"aria-label",f()),k(v,"aria-orientation",d())}),z(a,b),I()}q(["keydown"]);function Z(a,e,l,g,f){var r;e()||(l==null||l.requestSelect(g()),(r=f.onclick)==null||r.call(f,a))}var p=M('<button type="button" role="tab"><!></button>');function re(a,e){E(e,!0);const l=()=>Q(D,"$valueStore",g),[g,f]=P();let r=h(e,"value",7,""),d=h(e,"id",7,""),t=h(e,"disabled",3,!1),u=h(e,"class",3,"");const x=Math.random().toString(36).slice(2,8);d()||d(`tab-${x}`),r()||r(d());let y=U(null);const s=K("rc-tabs"),D=s.value;let w=O(()=>l()===r());G(()=>{s==null||s.register({id:d(),value:r(),getEl:()=>_(y)})}),J(()=>{s==null||s.unregister(d())});var o=p();let A;o.__click=[Z,t,s,r,e];var b=S(o);L(b,()=>e.children),C(o),W(o,v=>j(y,v),()=>_(y)),T(v=>{A=V(o,1,`tab ${u()??""}`,"svelte-184qymf",A,v),o.disabled=t(),k(o,"id",d()),k(o,"aria-selected",_(w)),k(o,"aria-controls",`panel-${r()}`),k(o,"tabindex",_(w)?0:-1)},[()=>({active:_(w)})]),z(a,o),I(),f()}q(["click"]);export{ie as T,re as a};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{conf as t,language as e}from"./
|
|
1
|
+
import{conf as t,language as e}from"./KDW88ZZa.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as lt}from"./
|
|
1
|
+
import{m as lt}from"./BfHUxT3G.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as L,V as U,W as I,X as N,i as E,h as v,Y as S,Z as Y,_ as B,G as M,a0 as j,g as K,a1 as $,a2 as q,a3 as G,a4 as Z,q as z,a5 as C,a6 as V,a7 as W,a8 as X,S as R,a9 as m,aa as d}from"./
|
|
1
|
+
import{U as L,V as U,W as I,X as N,i as E,h as v,Y as S,Z as Y,_ as B,G as M,a0 as j,g as K,a1 as $,a2 as q,a3 as G,a4 as Z,q as z,a5 as C,a6 as V,a7 as W,a8 as X,S as R,a9 as m,aa as d}from"./CVHvdSBf.js";import{b as F,g as H}from"./DujX6kBV.js";let _=!1,P=Symbol();function ne(e,r,i){const n=i[r]??(i[r]={store:null,source:N(void 0),unsubscribe:I});if(n.store!==e&&!(P in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=I;else{var t=!0;n.unsubscribe=F(e,s=>{t?n.source.v=s:E(n.source,s)}),t=!1}return e&&P in i?H(e):v(n.source)}function ie(){const e={};function r(){L(()=>{for(var i in e)e[i].unsubscribe();U(e,P,{enumerable:!1,value:!0})})}return[e,r]}function J(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const Q={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function te(e,r,i){return new Proxy({props:e,exclude:r},Q)}const k={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let t=e.props[n];d(t)&&(t=t());const s=S(t,r);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const t=S(n,r);return t&&!t.configurable&&(t.configurable=!0),t}}},has(e,r){if(r===R||r===m)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function ue(...e){return new Proxy({props:e},k)}function se(e,r,i,n){var O;var t=!C||(i&V)!==0,s=(i&Z)!==0,x=(i&X)!==0,f=n,b=!0,h=()=>(b&&(b=!1,f=x?z(n):n),f),l;if(s){var D=R in e||m in e;l=((O=S(e,r))==null?void 0:O.set)??(D&&r in e?u=>e[r]=u:void 0)}var o,w=!1;s?[o,w]=J(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=h(),l&&(t&&Y(),l(o)));var a;if(t?a=()=>{var u=e[r];return u===void 0?h():(b=!0,u)}:a=()=>{var u=e[r];return u!==void 0&&(f=void 0),u===void 0?f:u},t&&!(i&B))return a;if(l){var A=e.$$legacy;return function(u,p){return arguments.length>0?((!t||!p||A||w)&&l(p?a():u),u):a()}}var g=!1,c=(i&W?M:j)(()=>(g=!1,a()));s&&v(c);var T=q;return function(u,p){if(arguments.length>0){const y=p?v(c):t&&s?K(u):u;return E(c,y),g=!0,f!==void 0&&(f=y),u}return $&&g||T.f&G?c.v:v(c)}}export{ne as a,ue as b,se as p,te as r,ie as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
var F=r=>{throw TypeError(r)};var H=(r,t,e)=>t.has(r)||F("Cannot "+e);var n=(r,t,e)=>(H(r,t,"read from private field"),e?e.call(r):t.get(r)),G=(r,t,e)=>t.has(r)?F("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),W=(r,t,e,i)=>(H(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{c as L,_ as o}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BAD72yj-.js","../chunks/CWj6FrbW.js","../chunks/DujX6kBV.js","../chunks/CVHvdSBf.js","../chunks/BXkrt826.js","../chunks/CNvyTQrC.js","../chunks/CULdW9tk.js","../chunks/B7MYxXp9.js","../chunks/BUApaBEI.js","../assets/0.DsZUjxNX.css","../nodes/1.Poqrp7zI.js","../chunks/Jaf1TUfw.js","../chunks/BqROrg0C.js","../nodes/2.BmMuB33m.js","../chunks/BTlUd_Lo.js","../chunks/CpSIcnXs.js","../chunks/yWz0pZR0.js","../chunks/BkclRFLx.js","../assets/bosun-theme.tn0RQdqM.css","../chunks/DJPBfZIx.js","../chunks/CYiRxJxs.js","../chunks/CZPhtqrs.js","../chunks/DQqJYxgt.js","../chunks/axPa8Xqj.js","../assets/Tab.DlCfjMY1.css","../chunks/BWo2H__f.js","../chunks/BEJ5fU19.js","../chunks/Cf8q8_nj.js","../assets/AgentSidebar.BL1i3rB_.css","../chunks/BVDwc-2z.js","../chunks/Cg3F7Z11.js","../assets/2.DxwYfh1z.css","../nodes/3.CQPkSYE9.js","../chunks/CFwu9ET3.js","../assets/Input.NBh3BL7E.css","../chunks/W8E9z4jl.js","../assets/3.Dzh7_Q8n.css","../nodes/4.DylMSvDw.js","../assets/4.CZVw96CJ.css","../nodes/5.DB-2_mc1.js","../nodes/6.CPYhLc46.js","../chunks/hp4PFHFv.js","../nodes/7.jI3Ps4Fx.js","../chunks/Dvy68CmD.js","../assets/ChatStepTrace.NFJFjHv0.css","../assets/7.DlSPCZj0.css","../nodes/8.DhQWMEsP.js","../assets/8.BX46PfEJ.css","../nodes/9.BVI-eEdV.js","../nodes/10.BHSGZYEC.js","../nodes/11.CZ_7M4AF.js","../nodes/12.DRr2l3NZ.js","../nodes/13.DaAF9e8t.js","../nodes/14.CIH3gHti.js","../assets/14.C5apk4jm.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F=r=>{throw TypeError(r)};var H=(r,t,e)=>t.has(r)||F("Cannot "+e);var n=(r,t,e)=>(H(r,t,"read from private field"),e?e.call(r):t.get(r)),G=(r,t,e)=>t.has(r)?F("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),W=(r,t,e,i)=>(H(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{c as L,_ as o}from"../chunks/CpSIcnXs.js";import{i as k,a9 as ot,h as l,ai as nt,V as it,X as _t,p as mt,C as ut,u as ct,e as X,x as dt,f as J,a as y,s as lt,b as v,c as ft,T as p,l as T,d as vt,r as gt,k as ht,t as Et}from"../chunks/CVHvdSBf.js";import{h as Pt,m as yt,u as Rt,o as Ot,s as pt}from"../chunks/DujX6kBV.js";import"../chunks/CWj6FrbW.js";import{i as x}from"../chunks/BXkrt826.js";import{b as V}from"../chunks/DQqJYxgt.js";import{p as w}from"../chunks/yWz0pZR0.js";function bt(r){return class extends At{constructor(t){super({component:r,...t})}}}var g,m;class At{constructor(t){G(this,g);G(this,m);var b;var e=new Map,i=(a,s)=>{var f=_t(s,!1,!1);return e.set(a,f),f};const u=new Proxy({...t.props||{},$$events:{}},{get(a,s){return l(e.get(s)??i(s,Reflect.get(a,s)))},has(a,s){return s===ot?!0:(l(e.get(s)??i(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,f){return k(e.get(s)??i(s,f),f),Reflect.set(a,s,f)}});W(this,m,(t.hydrate?Pt:yt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((b=t==null?void 0:t.props)!=null&&b.$$host)||t.sync===!1)&&nt(),W(this,g,u.$$events);for(const a of Object.keys(n(this,m)))a==="$set"||a==="$destroy"||a==="$on"||it(this,a,{get(){return n(this,m)[a]},set(s){n(this,m)[a]=s},enumerable:!0});n(this,m).$set=a=>{Object.assign(u,a)},n(this,m).$destroy=()=>{Rt(n(this,m))}}$set(t){n(this,m).$set(t)}$on(t,e){n(this,g)[t]=n(this,g)[t]||[];const i=(...u)=>e.call(this,...u);return n(this,g)[t].push(i),()=>{n(this,g)[t]=n(this,g)[t].filter(u=>u!==i)}}$destroy(){n(this,m).$destroy()}}g=new WeakMap,m=new WeakMap;const It=({url:r})=>{const t=r.pathname;if(t.startsWith("/view"))return t.replace(/^\/view(?=\/|$)/,"/traces")},qt={};var Lt=J('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Tt=J("<!> <!>",1);function Vt(r,t){mt(t,!0);let e=w(t,"components",23,()=>[]),i=w(t,"data_0",3,null),u=w(t,"data_1",3,null),b=w(t,"data_2",3,null);ut(()=>t.stores.page.set(t.page)),ct(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),b(),t.stores.page.notify()});let a=X(!1),s=X(!1),f=X(null);Ot(()=>{const _=t.stores.page.subscribe(()=>{l(a)&&(k(s,!0),dt().then(()=>{k(f,document.title||"untitled page",!0)}))});return k(a,!0),_});const K=T(()=>t.constructors[2]);var Y=Tt(),q=y(Y);{var N=_=>{const h=T(()=>t.constructors[0]);var E=p(),A=y(E);L(A,()=>l(h),(P,R)=>{V(R(P,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(c,wt)=>{var z=p(),$=y(z);{var tt=O=>{const C=T(()=>t.constructors[1]);var I=p(),j=y(I);L(j,()=>l(C),(S,M)=>{V(M(S,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(d,kt)=>{var B=p(),rt=y(B);L(rt,()=>l(K),(at,st)=>{V(st(at,{get data(){return b()},get form(){return t.form},get params(){return t.page.params}}),D=>e()[2]=D,()=>{var D;return(D=e())==null?void 0:D[2]})}),v(d,B)},$$slots:{default:!0}}),d=>e()[1]=d,()=>{var d;return(d=e())==null?void 0:d[1]})}),v(O,I)},et=O=>{const C=T(()=>t.constructors[1]);var I=p(),j=y(I);L(j,()=>l(C),(S,M)=>{V(M(S,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[1]=d,()=>{var d;return(d=e())==null?void 0:d[1]})}),v(O,I)};x($,O=>{t.constructors[2]?O(tt):O(et,!1)})}v(c,z)},$$slots:{default:!0}}),c=>e()[0]=c,()=>{var c;return(c=e())==null?void 0:c[0]})}),v(_,E)},Q=_=>{const h=T(()=>t.constructors[0]);var E=p(),A=y(E);L(A,()=>l(h),(P,R)=>{V(R(P,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),c=>e()[0]=c,()=>{var c;return(c=e())==null?void 0:c[0]})}),v(_,E)};x(q,_=>{t.constructors[1]?_(N):_(Q,!1)})}var U=lt(q,2);{var Z=_=>{var h=Lt(),E=vt(h);{var A=P=>{var R=ht();Et(()=>pt(R,l(f))),v(P,R)};x(E,P=>{l(s)&&P(A)})}gt(h),v(_,h)};x(U,_=>{l(a)&&_(Z)})}v(r,Y),ft()}const zt=bt(Vt),Bt=[()=>o(()=>import("../nodes/0.BAD72yj-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>o(()=>import("../nodes/1.Poqrp7zI.js"),__vite__mapDeps([10,1,11,3,2,12,6,7,8]),import.meta.url),()=>o(()=>import("../nodes/2.BmMuB33m.js"),__vite__mapDeps([13,1,2,3,4,14,15,16,17,18,19,20,21,22,23,24,25,7,8,6,26,27,28,5,11,12,29,30,31]),import.meta.url),()=>o(()=>import("../nodes/3.CQPkSYE9.js"),__vite__mapDeps([32,1,2,3,4,17,16,7,8,6,21,22,33,19,34,35,23,24,27,28,5,36]),import.meta.url),()=>o(()=>import("../nodes/4.DylMSvDw.js"),__vite__mapDeps([37,1,2,3,27,4,17,16,28,5,26,38]),import.meta.url),()=>o(()=>import("../nodes/5.DB-2_mc1.js"),__vite__mapDeps([39,1,2,3,7,8,5,26,27,4,17,16,28,23,22,24,6]),import.meta.url),()=>o(()=>import("../nodes/6.CPYhLc46.js"),__vite__mapDeps([40,41,8]),import.meta.url),()=>o(()=>import("../nodes/7.jI3Ps4Fx.js"),__vite__mapDeps([42,1,3,4,2,21,17,16,22,43,14,15,18,23,24,7,8,26,29,44,20,33,19,34,30,45]),import.meta.url),()=>o(()=>import("../nodes/8.DhQWMEsP.js"),__vite__mapDeps([46,1,2,3,4,14,15,16,17,18,19,20,21,22,25,33,34,26,47]),import.meta.url),()=>o(()=>import("../nodes/9.BVI-eEdV.js"),__vite__mapDeps([48,41,8]),import.meta.url),()=>o(()=>import("../nodes/10.BHSGZYEC.js"),__vite__mapDeps([49,41,8]),import.meta.url),()=>o(()=>import("../nodes/11.CZ_7M4AF.js"),__vite__mapDeps([50,41,8]),import.meta.url),()=>o(()=>import("../nodes/12.DRr2l3NZ.js"),__vite__mapDeps([51,41,8]),import.meta.url),()=>o(()=>import("../nodes/13.DaAF9e8t.js"),__vite__mapDeps([52,1,11,3]),import.meta.url),()=>o(()=>import("../nodes/14.CIH3gHti.js"),__vite__mapDeps([53,1,11,3,2,4,17,16,12,7,8,35,21,22,43,14,15,18,23,24,26,29,44,54]),import.meta.url)],Ft=[],Ht={"/":[4],"/edit":[5],"/edit/[agent]":[6,[2]],"/edit/[agent]/roleplay":[7,[2]],"/edit/[agent]/tests":[8,[2]],"/roleplay":[9],"/tests":[10],"/tests/[agent]":[11],"/traces":[12],"/traces/conversations":[13,[3]],"/traces/conversations/[conversationId]/traces":[14,[3]]},Dt={handleError:({error:r})=>{console.error(r)},reroute:It||(()=>{}),transport:{}},xt=Object.fromEntries(Object.entries(Dt.transport).map(([r,t])=>[r,t.decode])),Jt=!1,Kt=(r,t)=>xt[r](t);export{Kt as decode,xt as decoders,Ht as dictionary,Jt as hash,Dt as hooks,qt as matchers,Bt as nodes,zt as root,Ft as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/B7MYxXp9.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import{o as w,a as b,s as U}from"../chunks/
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import{o as w,a as b,s as U}from"../chunks/DujX6kBV.js";import{p as E,f as u,b as m,c as _,i as c,e as x,d as l,s as L,h as p,r as h,t as j}from"../chunks/CVHvdSBf.js";import{i as y}from"../chunks/BXkrt826.js";import{s as R}from"../chunks/CNvyTQrC.js";import{p as k}from"../chunks/CULdW9tk.js";import{g as C}from"../chunks/B7MYxXp9.js";var A=u(`<div class="
|
|
2
2
|
absolute bottom-0 right-0 z-50 m-4 rounded-sm border border-red-500 bg-red-50
|
|
3
3
|
px-4 py-2 text-red-800 focus:outline-none focus:ring-0"> </div>`),I=u('<main class="h-screen overflow-hidden bg-gray-600"><!> <!></main>');function B(f,i){E(i,!0);let t=x("");function s(r){c(t,r,!0),setTimeout(()=>{c(t,"")},5e3),console.error(r)}R({onAgentSelect:r=>{const e=new URLSearchParams(k.url.search).get("step");let o=`/edit/${encodeURIComponent(r)}/roleplay`;e&&(o+=`?step=${encodeURIComponent(e)}`),C(o)},onError:s}),w(()=>{const r=e=>{var o;console.error(e),s(`Uncaught error: ${((o=e.error)==null?void 0:o.message)||e.message||"Unknown error"}`)},n=e=>{var o;console.error(e),s(`Unhandled promise rejection: ${((o=e.reason)==null?void 0:o.message)||e.reason||"Unknown error"}`)};return window.addEventListener("error",r),window.addEventListener("unhandledrejection",n),()=>{window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",n)}});var a=I(),d=l(a);b(d,()=>i.children);var g=L(d,2);{var v=r=>{var n=A(),e=l(n,!0);h(n),j(()=>U(e,p(t))),m(r,n)};y(g,r=>{p(t)&&r(v)})}h(a),m(f,a),_()}export{B as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import"../chunks/Jaf1TUfw.js";import{p as c,f as l,a as v,t as u,b as _,c as d,d as e,r as o,s as g}from"../chunks/CVHvdSBf.js";import{s as p}from"../chunks/DujX6kBV.js";import{i as x}from"../chunks/BqROrg0C.js";import{p as m}from"../chunks/CULdW9tk.js";var b=l("<h1> </h1> <p> </p>",1);function z(i,f){c(f,!1),x();var t=b(),r=v(t),n=e(r,!0);o(r);var a=g(r,2),h=e(a,!0);o(a),u(()=>{var s;p(n,m.status),p(h,(s=m.error)==null?void 0:s.message)}),_(i,t),d()}export{z as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/CWj6FrbW.js";import"../chunks/
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import"../chunks/Jaf1TUfw.js";import{A as a,f as r,j as t,b as c,$ as l}from"../chunks/CVHvdSBf.js";var s=e=>e.stopPropagation(),i=r('<div class="flex h-full w-full flex-col bg-rc-gray-980"><div class="flex-none border-b border-rc-gray-300/40 p-4"><h2 class="text-lg font-semibold text-rc-gray-100">Traces</h2></div> <div class="min-h-0 flex-1 overflow-auto p-4"><div class="py-8 text-center text-rc-gray-300">Select a conversation to view traces</div></div></div>');function f(e){var o=i();t(n=>{l.title="Bosun: Telescope"}),o.__click=[s],c(e,o)}a(["click"]);export{f as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import"../chunks/CWj6FrbW.js";import"../chunks/Jaf1TUfw.js";import{s as K,o as Se}from"../chunks/DujX6kBV.js";import{p as ae,u as $e,h as t,e as Wt,i as d,f as T,d as b,a as R,s as k,l as Pe,b as i,k as F,T as ut,r as y,c as ne,n as pt,A as fe,q as v,t as q,F as Jt,a0 as dt,ag as le,ah as Ne,j as Ae,$ as ke,X as tt}from"../chunks/CVHvdSBf.js";import{i as h}from"../chunks/BXkrt826.js";import{I as Ce,c as Ct,e as re,i as ce,h as ue,s as Le}from"../chunks/BkclRFLx.js";import{i as ve}from"../chunks/BqROrg0C.js";import{p as V,s as Ie,a as Oe}from"../chunks/yWz0pZR0.js";import{s as Me}from"../chunks/B7MYxXp9.js";import{T as Je,g as je,m as Ee}from"../chunks/W8E9z4jl.js";import{B as ct}from"../chunks/CZPhtqrs.js";import{D as Re,C as Fe,a as ze,b as De}from"../chunks/Dvy68CmD.js";import{M as de}from"../chunks/BTlUd_Lo.js";const Ue=()=>{const M=Me;return{page:{subscribe:M.page.subscribe},navigating:{subscribe:M.navigating.subscribe},updated:M.updated}},qe={subscribe(M){return Ue().page.subscribe(M)}};var We=T("<!> <!>",1),Be=T('<div class="mt-1 overflow-hidden rounded-lg border border-rc-gray-110 bg-rc-gray-930 shadow-inner-white-soft backdrop-blur-2xl" role="listbox"><!> <!></div>'),He=T("<div><!> <!></div>");function Ke(M,S){ae(S,!0);let C=V(S,"disabled",3,!1),_t=V(S,"dropdownId",3,"copy-traces-dropdown"),J=Wt(!1),mt=Wt(null),et=Wt(null),j=Wt(null);$e(()=>{C()&&t(J)&&d(J,!1)});async function B(L){try{const W=L==="with-prompts"?S.getWithPromptsText():S.getWithoutPromptsText();await navigator.clipboard.writeText(W),d(et,L,!0),t(j)&&clearTimeout(t(j)),d(j,window.setTimeout(()=>{d(et,null),d(j,null)},2e3),!0)}catch(W){console.error("Failed to copy traces",W)}}var X=He(),rt=b(X);ct(rt,{variant:"secondary",size:"small",get disabled(){return C()},get"aria-expanded"(){return t(J)},"aria-haspopup":"listbox",get"aria-controls"(){return _t()},onclick:L=>{L.stopPropagation(),d(J,!t(J))},class:"flex items-center gap-1",get el(){return t(mt)},set el(L){d(mt,L,!0)},children:(L,W)=>{var w=We(),x=R(w);{var ft=N=>{var D=F("Copied traces (without prompts)");i(N,D)},z=N=>{var D=ut(),vt=R(D);{var yt=Q=>{var gt=F("Copied traces (with prompts)");i(Q,gt)},bt=Q=>{var gt=F("Copy traces");i(Q,gt)};h(vt,Q=>{t(et)==="with-prompts"?Q(yt):Q(bt,!1)},!0)}i(N,D)};h(x,N=>{t(et)==="without-prompts"?N(ft):N(z,!1)})}var Y=k(x,2);{let N=Pe(()=>"size-5 text-rc-gray-400 transition-transform duration-200 "+(t(J)?"rotate-180":""));Ce(Y,{name:"chevron-down",get class(){return t(N)}})}i(L,w)},$$slots:{default:!0}});var at=k(rt,2);Re(at,{get id(){return _t()},get open(){return t(J)},onClose:()=>d(J,!1),get anchorEl(){return t(mt)},placement:"bottom-end",offset:[0,1],children:W=>{var w=Be(),x=b(w);ct(x,{variant:"ghost",size:"small",role:"option",onclick:z=>{z.stopPropagation(),d(J,!1),B("without-prompts")},class:"w-full rounded-none border-b border-rc-gray-110 py-2 pr-3 text-left backdrop-blur-2xl hover:bg-rc-gray-700 focus:bg-rc-gray-400",children:(z,Y)=>{pt();var N=F("Without prompts");i(z,N)},$$slots:{default:!0}});var ft=k(x,2);ct(ft,{variant:"ghost",size:"small",role:"option",onclick:z=>{z.stopPropagation(),d(J,!1),B("with-prompts")},class:"w-full rounded-none py-2 pr-3 text-left backdrop-blur-2xl hover:bg-rc-gray-700 focus:bg-rc-gray-400",children:(z,Y)=>{pt();var N=F("With prompts");i(z,N)},$$slots:{default:!0}}),y(w),i(W,w)},$$slots:{default:!0}}),y(X),i(M,X),ne()}function Ye(M,S,C){S()&&M.stopPropagation(),C(!C())}function Ge(M,S){S()&&M.stopPropagation()}var Ve=T("<div> </div>"),Xe=T('<div class="mt-1 whitespace-pre-wrap break-words text-xs italic text-rc-gray-200"> </div>'),Qe=T("<div><!> <!> <!></div>"),Ze=T("<div><div><div> </div> <div><!> <!></div> <!></div></div>"),tr=T('<div class="space-y-3"></div>'),er=T('<div class="whitespace-pre-wrap break-words"><!></div>'),rr=T('<button class="inline-flex text-sm text-rc-green-200 hover:text-rc-green-100"> </button>'),ar=T('<div><span class="whitespace-pre-wrap break-words"><!></span> <!></div>');function nr(M,S){ae(S,!1);let C=V(S,"value",8,""),_t=V(S,"limit",8,200),J=V(S,"maxLines",8,null),mt=V(S,"className",8,""),et=V(S,"collapsedLabel",8,"...more"),j=V(S,"initiallyExpanded",8,!1),B=V(S,"stopPropagation",8,!0),X=V(S,"expanded",28,j),rt=V(S,"treatPlainText",8,!1),at=V(S,"highlightPrompt",8,!1);function L(o){return o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function W(o){const s=w(o);let r=L(s);const f=[];return r=r.replace(/(\{+[\s\S]*?\}+)/g,_=>{const p=f.length;return f.push(_),`__CURLY${p}__`}),r=r.replace(/^(\s*#.*)$/gm,'<span class="prompt-heading">$1</span>'),r=r.replace(/(<[^&]*?>)/g,'<span class="mtk8">$1</span>'),r=r.replace(/^(\s*)(\d+)([.)])(\s+)/gm,(_,p,$,H,m)=>`${p}<span class="mtk8">${$}${H}</span>${m}`),f.forEach((_,p)=>{const $=`<span class="mtk5">${_}</span>`;r=r.replace(`__CURLY${p}__`,$)}),r=r.replace(/\n/g,"<br/>"),r}function w(o){let s=o.replace(/\r\n/g,`
|
|
2
|
+
`);return s=s.replace(/\\n/g,`
|
|
3
|
+
`),s}function x(o){try{if(Array.isArray(o)){const s=o.map(r=>(r==null?void 0:r.text)??(r==null?void 0:r.content)??JSON.stringify(r)).join(" ");return w(s)}if(typeof o=="string")try{const s=JSON.parse(o);if(Array.isArray(s)){const r=s.map(f=>(f==null?void 0:f.text)??(f==null?void 0:f.content)??JSON.stringify(f)).join(" ");return w(r)}return w(o)}catch{return w(o)}return w(JSON.stringify(o))}catch{return w(String(o??""))}}function ft(o){try{if(Array.isArray(o)){const s=o.map(r=>(r==null?void 0:r.text)??(r==null?void 0:r.content)??JSON.stringify(r)).join(`
|
|
4
|
+
`);return w(s)}if(typeof o=="string")try{const s=JSON.parse(o);if(Array.isArray(s)){const r=s.map(f=>(f==null?void 0:f.text)??(f==null?void 0:f.content)??JSON.stringify(f)).join(`
|
|
5
|
+
`);return w(r)}return w(o)}catch{return w(o)}return w(JSON.stringify(o,null,2))}catch{return w(String(o??""))}}function z(o){const r=w(o).split(/\n+/).map($=>$.trim()).filter($=>$.length>0),f=[];let _,p="";for(const $ of r){const H=$.match(/^(user|assistant|system|customer|caller|tool|model|agent)\s*[:\-]\s*(.*)$/i);H?(p&&f.push({text:p,role:_}),_=H[1].toLowerCase(),p=H[2]??""):p?p+=`
|
|
6
|
+
`+$:p=$}return p&&f.push({text:p,role:_}),f}function Y(o){try{let s=o;if(typeof o=="string")try{s=JSON.parse(o)}catch{return rt()?z(o):[]}if(!Array.isArray(s))if(Array.isArray(s==null?void 0:s.messages))s=s.messages;else return[];return s.map(r=>{let f;return(r==null?void 0:r.text)!=null?f=String(r.text):(r==null?void 0:r.content)!=null?Array.isArray(r.content)?f=r.content.map(_=>{var p;return typeof _=="string"?_:typeof(_==null?void 0:_.text)=="string"?_.text:typeof((p=_==null?void 0:_.text)==null?void 0:p.value)=="string"?_.text.value:JSON.stringify(_)}).join(" "):typeof r.content=="string"?f=r.content:f=JSON.stringify(r.content):typeof r=="string"?f=r:f=JSON.stringify(r),{text:w(f),role:r==null?void 0:r.role,time:r==null?void 0:r.time,duration:r==null?void 0:r.duration}}).filter(r=>r.text&&String(r.text).trim().length>0)}catch{return[]}}const N=()=>x(C()),D=()=>ft(C()),vt=()=>N().split(`
|
|
7
|
+
`),yt=()=>Y(C()),bt=()=>yt().length>0,Q=()=>J()!=null?vt().length>J():N().length>_t(),gt=()=>{const o=N();return Q()?J()!=null?vt().slice(0,J()).join(`
|
|
8
|
+
`):o.slice(0,_t()):o};function jt(o){if(!o)return null;try{const s=new Date(o);return Number.isNaN(s.getTime())?o:s.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return o}}function Et(o){if(o==null||!Number.isFinite(o))return null;const s=Number(o),r=Math.floor(s),f=Math.floor(r/60),_=r%60,p=String(f).padStart(2,"0"),$=String(_).padStart(2,"0");return`${p}:${$}`}function Rt(o){if(!o)return"Assistant";const s=o.trim();return s?s.charAt(0).toUpperCase()+s.slice(1):"Assistant"}function Bt(o){const s=(o==null?void 0:o.toLowerCase())??"";return s==="user"||s==="customer"||s==="caller"}function Ft(o){const s=[];return{main:o.replace(/<([^>]+)>/g,(f,_)=>{const p=String(_).trim();return p&&s.push(p),""}).trim(),system:s}}ve();var Lt=ut(),Ht=R(Lt);{var Kt=o=>{var s=ut(),r=R(s);{var f=p=>{var $=tr();re($,5,()=>v(yt),ce,(H,m)=>{const A=dt(()=>(t(m),v(()=>Bt(t(m).role)))),I=dt(()=>(t(m),v(()=>(t(m).role??"").toLowerCase()==="system"))),U=dt(()=>(t(m),v(()=>Ft(t(m).text)))),ot=dt(()=>(t(m),v(()=>jt(t(m).time)))),Tt=dt(()=>(t(m),v(()=>Et(t(m).duration))));var wt=Ze(),It=b(wt),St=b(It),Gt=b(St,!0);y(St);var $t=k(St,2),Ot=b($t);{var Vt=G=>{var Z=Ve(),it=b(Z,!0);y(Z),q(()=>K(it,(Jt(t(U)),v(()=>t(U).main)))),i(G,Z)};h(Ot,G=>{Jt(t(U)),v(()=>t(U).main)&&G(Vt)})}var Xt=k(Ot,2);re(Xt,1,()=>(Jt(t(U)),v(()=>t(U).system)),ce,(G,Z)=>{var it=Xe(),e=b(it);y(it),q(()=>K(e,`<${t(Z)??""}>`)),i(G,it)}),y($t);var Qt=k($t,2);{var zt=G=>{var Z=Qe(),it=b(Z);{var e=u=>{var g=F();q(()=>K(g,t(ot))),i(u,g)};h(it,u=>{t(ot)&&u(e)})}var a=k(it,2);{var n=u=>{var g=F("·");i(u,g)};h(a,u=>{t(ot)&&t(Tt)&&u(n)})}var l=k(a,2);{var c=u=>{var g=F();q(()=>K(g,t(Tt))),i(u,g)};h(l,u=>{t(Tt)&&u(c)})}y(Z),q(()=>Ct(Z,1,`mt-1 text-xs text-rc-gray-300 ${t(A)?"text-right":"text-left"}`)),i(G,Z)};h(Qt,G=>{(t(ot)||t(Tt))&&G(zt)})}y(It),y(wt),q(G=>{Ct(wt,1,`flex ${t(A)?"justify-end":"justify-start"}`),Ct(It,1,`max-w-[70%] break-words rounded-md px-3 py-2 text-sm shadow-sm ${t(A)?"bg-rc-gray-600 text-rc-gray-100":"bg-rc-gray-700 text-rc-gray-100"}`),Ct(St,1,`my-1 text-xs font-semibold uppercase ${t(I)?"text-rc-blue "+(t(A)?"text-right":"text-left"):"text-rc-green-200 "+(t(A)?"text-right":"text-left")}`),K(Gt,G),Ct($t,1,`whitespace-pre-wrap break-words py-1 text-sm ${t(A)?"text-justify":"text-left"} ${t(I)?"italic text-rc-gray-200":""}`)},[()=>(t(m),v(()=>Rt(t(m).role)))]),i(H,wt)}),y($),i(p,$)},_=p=>{var $=er(),H=b($);{var m=I=>{var U=ut(),ot=R(U);ue(ot,()=>v(()=>W(D()))),i(I,U)},A=I=>{var U=F();q(ot=>K(U,ot),[()=>v(D)]),i(I,U)};h(H,I=>{at()?I(m):I(A,!1)})}y($),i(p,$)};h(r,p=>{v(bt)?p(f):p(_,!1)})}i(o,s)},Yt=o=>{var s=ar();s.__click=[Ge,B];var r=b(s),f=b(r);{var _=m=>{var A=ut(),I=R(A);ue(I,()=>v(()=>W(gt()))),i(m,A)},p=m=>{var A=F();q(I=>K(A,I),[()=>v(gt)]),i(m,A)};h(f,m=>{at()?m(_):m(p,!1)})}y(r);var $=k(r,2);{var H=m=>{var A=rr();A.__click=[Ye,B,X];var I=b(A,!0);y(A),q(()=>K(I,et())),i(m,A)};h($,m=>{v(Q)&&m(H)})}y(s),q(()=>Ct(s,1,`mt-1 cursor-text select-text rounded bg-rc-gray-900 p-2 text-sm text-rc-gray-200 ${mt()}`)),i(o,s)};h(Ht,o=>{X()?o(Kt):o(Yt,!1)})}i(M,Lt),ne()}fe(["click"]);var or=M=>M.stopPropagation(),ir=T('<span class="text-rc-gray-100">for conversation Id:</span> <span class="text-rc-green-200"> </span>',1),sr=T('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),lr=T('<div class="mt-2 text-sm text-rc-gray-400">Loading call details…</div>'),cr=T('<div class="mt-2 text-sm text-rc-gray-300"> </div>'),ur=T('<div class="py-8 text-center text-rc-gray-300">No conversation selected</div>'),dr=T('<div class="py-8 text-center text-rc-gray-200">Loading traces...</div>'),fr=T('<div class="z-50 py-8 text-center text-red-400"> </div>'),vr=T('<div class="py-8 text-center text-rc-gray-300">No traces found</div>'),pr=T('<div class="my-3 flex w-full justify-center"><div class="rounded-full border border-rc-gray-650 bg-rc-gray-900/40 px-3 py-1 text-xs text-rc-gray-200"> </div></div>'),mr=T("<!> <!>",1),gr=T('<div class="mt-3 flex justify-center"><!></div>'),_r=T("<div></div> <!>",1),yr=T('<audio class="w-full" controls></audio> <div class="mt-3 break-all text-sm text-rc-gray-300"> </div>',1),xr=T("<!> <!>",1),hr=T('<div class="rc-scroll flex max-h-[60vh] flex-col gap-4 overflow-scroll p-2"><!></div>'),br=T('<div class="flex w-full items-center justify-end gap-5"><!> <!></div>'),Tr=T('<div class="flex h-full w-full flex-col bg-rc-gray-700"><div class="flex-none border-b border-rc-gray-300/40 p-4"><div class="flex flex-wrap items-start justify-between gap-3"><h2 class="text-lg font-semibold text-rc-gray-100">Traces <!></h2> <!></div> <!></div> <div class="rc-scroll min-h-0 flex-1 overflow-scroll p-4"><!></div></div> <!> <!>',1);function jr(M,S){ae(S,!1);const C=()=>Oe(qe,"$page",_t),[_t,J]=Ie();let mt=V(S,"useMock",8,!1);const et=new Je(fetch);et.setSourceId(je()??void 0);let j=tt([]),B=tt([]),X=tt(!1),rt=tt(!1),at=tt(null),L=tt(null),W=null,w=tt(!1),x=tt(null),ft=tt(!1),z=tt(null),Y=tt(!1),N=tt(!1),D=0,vt=0;const yt=new WeakMap;let bt=0;function Q(e){if(typeof e!="string")return null;const a=e.trim();return a||null}function gt(e){const a=Q(e==null?void 0:e.traceId);if(a)return a;const n=yt.get(e);if(n)return n;bt+=1;const l=`synthetic-${e.traceType}-${e.createdAt}-${bt}`;return yt.set(e,l),l}function jt(e){const a=new Set;return e.filter(n=>{const l=Q(n==null?void 0:n.traceId);return l?a.has(l)?!1:(a.add(l),!0):!0})}function Et(e){return e?t(j):t(j).map(a=>{if(a.traceType!=="STEP")return a;const{receivedPrompt:n,renderedPrompt:l,...c}=a;return c})}function Rt(e){return e&&typeof e.renderedPrompt=="string"?e.renderedPrompt:null}function Bt(e,a){for(let n=a-1;n>=0;n--){const l=e[n];if(l.traceType!=="STEP")continue;const c=l;if(c.name==="main"&&Rt(c))return c}for(let n=a-1;n>=0;n--){const l=e[n];if(l.traceType!=="STEP")continue;const c=l;if(c.name==="prewarm"&&Rt(c))return c}return null}function Ft(e){return!!(e!=null&&e.audioUrl&&String(e.audioUrl).trim())}function Lt(e){const a=e==null?void 0:e.transcript;return typeof a=="string"?a.trim()!=="":Array.isArray(a)?a.length>0:!1}function Ht(e){const a=e==null?void 0:e.transcript;return a?typeof a=="string"?a:Array.isArray(a)?a.map(n=>{const l=typeof(n==null?void 0:n.time)=="string"?n.time:"",c=typeof(n==null?void 0:n.role)=="string"?n.role:"",u=typeof(n==null?void 0:n.text)=="string"?n.text:"",g=[l,c].filter(Boolean).join(" • ");return g?`${g}
|
|
9
|
+
${u}`:u}).join(`
|
|
10
|
+
|
|
11
|
+
`):"":""}async function Kt(){try{await navigator.clipboard.writeText(Ht(t(x)))}catch(e){console.error("Failed to copy transcript",e)}}async function Yt(){var e;try{const a=(e=t(x))==null?void 0:e.audioUrl;if(!a)return;await navigator.clipboard.writeText(a)}catch(a){console.error("Failed to copy recording URL",a)}}function o(e){return e.traceType!=="CONVERSATIONAL"?!1:e.eventName==="received-message"||e.eventName==="llm-handler-stream-requested"||e.eventName==="finished-main-streaming-step"||e.eventName==="sent-message"||e.eventName==="transfer-requested"}const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function r(e){if(typeof e!="number"||!Number.isFinite(e))return null;const a=new Date(e);if(Number.isNaN(a.getTime()))return null;const n=a.getFullYear(),l=String(a.getMonth()+1).padStart(2,"0"),c=String(a.getDate()).padStart(2,"0");return`${n}-${l}-${c}`}function f(e){if(typeof e!="number"||!Number.isFinite(e))return null;const a=new Date(e);if(Number.isNaN(a.getTime()))return null;const n=a.getDate(),l=s[a.getMonth()],c=a.getFullYear();return`${n} ${l} ${c}`}async function _(e){const a=++vt;d(ft,!0),d(z,null),d(x,null);try{if(mt())return;const n=await et.getConversation(e);if(a!==vt)return;d(x,n)}catch(n){if(a!==vt)return;d(z,n.message),d(x,null)}finally{if(a!==vt)return;d(ft,!1)}}async function p(e){if(!e||e===t(L))return;const a=++D;d(L,e),d(X,!0),d(rt,!1),d(at,null),W=null,d(w,!1),d(Y,!1),d(N,!1),_(e);try{let n=[],l=null,c=!1;if(mt())n=(await Ee.fetchTraces(e)).items??[];else{const u=await et.getTraces(e,100);n=u.items??[],l=u.lastTraceId??null,c=l!=null}if(a!==D)return;W=l,d(w,c),d(j,jt(n).slice().sort((u,g)=>u.createdAt-g.createdAt))}catch(n){if(a!==D)return;d(at,n.message),d(j,[]),console.error("Failed to load traces:",n)}finally{if(a!==D)return;d(X,!1)}}async function $(){if(!t(L)||!W||t(rt))return;const e=t(L),a=D;d(rt,!0),d(at,null);try{const n=await et.getTraces(e,100,W),l=n.items??[];if(e!==t(L)||a!==D)return;const c=n.lastTraceId??null;W=c,d(w,c!=null),d(j,jt(t(j).concat(l)).slice().sort((u,g)=>u.createdAt-g.createdAt))}catch(n){if(e!==t(L)||a!==D)return;d(at,n.message),console.error("Failed to load more traces:",n)}finally{if(e!==t(L)||a!==D)return;d(rt,!1)}}Se(()=>{const e=C().params.conversationId;e&&p(e)}),le(()=>t(j),()=>{d(B,t(j).filter(e=>e.traceType==="API_CALL"||e.traceType==="STEP"||o(e)))}),le(()=>(C(),t(L)),()=>{const e=C().params.conversationId;e&&e!==t(L)&&p(e)}),Ne(),ve();var H=Tr();Ae(e=>{ke.title="Bosun: Telescope"});var m=R(H);m.__click=[or];var A=b(m),I=b(A),U=b(I),ot=k(b(U));{var Tt=e=>{var a=ir(),n=k(R(a),2),l=b(n,!0);y(n),q(()=>K(l,(C(),v(()=>C().params.conversationId)))),i(e,a)};h(ot,e=>{C(),v(()=>C().params.conversationId)&&e(Tt)})}y(U);var wt=k(U,2);{var It=e=>{var a=sr(),n=b(a);{var l=P=>{ct(P,{variant:"secondary",size:"small",onclick:()=>d(Y,!0),children:(O,nt)=>{pt();var st=F("Recording");i(O,st)},$$slots:{default:!0}})};h(n,P=>{t(x),v(()=>Ft(t(x)))&&P(l)})}var c=k(n,2);{var u=P=>{ct(P,{variant:"secondary",size:"small",onclick:()=>d(N,!0),children:(O,nt)=>{pt();var st=F("Transcript");i(O,st)},$$slots:{default:!0}})};h(c,P=>{t(x),v(()=>Lt(t(x)))&&P(u)})}var g=k(c,2);{let P=dt(()=>(t(j),t(X),v(()=>!t(j).length||t(X))));Ke(g,{get disabled(){return t(P)},getWithPromptsText:()=>JSON.stringify(Et(!0),null,2),getWithoutPromptsText:()=>JSON.stringify(Et(!1),null,2)})}y(a),i(e,a)};h(wt,e=>{C(),v(()=>C().params.conversationId)&&e(It)})}y(I);var St=k(I,2);{var Gt=e=>{var a=lr();i(e,a)},$t=e=>{var a=ut(),n=R(a);{var l=c=>{var u=cr(),g=b(u);y(u),q(()=>K(g,`Call details unavailable: ${t(z)??""}`)),i(c,u)};h(n,c=>{t(z)&&c(l)},!0)}i(e,a)};h(St,e=>{t(ft)?e(Gt):e($t,!1)})}y(A);var Ot=k(A,2),Vt=b(Ot);{var Xt=e=>{var a=ur();i(e,a)},Qt=e=>{var a=ut(),n=R(a);{var l=u=>{var g=dr();i(u,g)},c=u=>{var g=ut(),P=R(g);{var O=st=>{var Pt=fr(),Zt=b(Pt);y(Pt),q(()=>K(Zt,`Error: ${t(at)??""}`)),i(st,Pt)},nt=st=>{var Pt=ut(),Zt=R(Pt);{var pe=Nt=>{var Dt=vr();i(Nt,Dt)},me=Nt=>{var Dt=_r(),te=R(Dt);re(te,7,()=>t(B),xt=>gt(xt),(xt,E,ht)=>{const Ut=dt(()=>(t(E),v(()=>r(t(E).createdAt)))),oe=dt(()=>(Jt(t(ht)),t(B),v(()=>t(ht)>0?r(t(B)[t(ht)-1].createdAt):null))),Mt=dt(()=>(t(E),v(()=>f(t(E).createdAt))));var ie=mr(),se=R(ie);{var ye=lt=>{var At=pr(),qt=b(At),ee=b(qt,!0);y(qt),y(At),q(()=>K(ee,t(Mt))),i(lt,At)};h(se,lt=>{t(Ut)&&t(Mt)&&t(Ut)!==t(oe)&<(ye)})}var xe=k(se,2);{var he=lt=>{Fe(lt,{get trace(){return t(E)}})},be=lt=>{var At=ut(),qt=R(At);{var ee=kt=>{{let we=dt(()=>(t(E),t(B),Jt(t(ht)),v(()=>t(E).name==="main"?Bt(t(B),t(ht)):null)));ze(kt,{get trace(){return t(E)},get compareTrace(){return t(we)}})}},Te=kt=>{De(kt,{get trace(){return t(E)},context:null,agentId:void 0})};h(qt,kt=>{t(E),v(()=>t(E).traceType==="STEP")?kt(ee):kt(Te,!1)},!0)}i(lt,At)};h(xe,lt=>{t(E),v(()=>t(E).traceType==="API_CALL")?lt(he):lt(be,!1)})}i(xt,ie)}),y(te);var ge=k(te,2);{var _e=xt=>{var E=gr(),ht=b(E);ct(ht,{variant:"secondary",size:"small",get disabled(){return t(rt)},onclick:$,children:(Ut,oe)=>{pt();var Mt=F();q(()=>K(Mt,t(rt)?"Loading more…":"Load more")),i(Ut,Mt)},$$slots:{default:!0}}),y(E),i(xt,E)};h(ge,xt=>{t(w)&&xt(_e)})}i(Nt,Dt)};h(Zt,Nt=>{t(B),v(()=>!t(B).length)?Nt(pe):Nt(me,!1)},!0)}i(st,Pt)};h(P,st=>{t(at)?st(O):st(nt,!1)},!0)}i(u,g)};h(n,u=>{t(X)?u(l):u(c,!1)},!0)}i(e,a)};h(Vt,e=>{C(),v(()=>!C().params.conversationId)?e(Xt):e(Qt,!1)})}y(Ot),y(m);var zt=k(m,2);{var G=e=>{de(e,{title:"Recording",class:"!max-w-3xl",get open(){return t(Y)},set open(l){d(Y,l)},children:l=>{var c=yr(),u=R(c),g=k(u,2),P=b(g,!0);y(g),q(()=>{Le(u,"src",(t(x),v(()=>{var O;return(O=t(x))==null?void 0:O.audioUrl}))),K(P,(t(x),v(()=>{var O;return(O=t(x))==null?void 0:O.audioUrl})))}),i(l,c)},footer:l=>{var c=xr(),u=R(c);ct(u,{variant:"secondary",size:"small",onclick:Yt,children:(P,O)=>{pt();var nt=F("Copy URL");i(P,nt)},$$slots:{default:!0}});var g=k(u,2);ct(g,{variant:"secondary",size:"small",onclick:()=>d(Y,!1),children:(P,O)=>{pt();var nt=F("Close");i(P,nt)},$$slots:{default:!0}}),i(l,c)},$$slots:{default:!0,footer:!0},$$legacy:!0})};h(zt,e=>{t(Y),t(x),v(()=>t(Y)&&Ft(t(x)))&&e(G)})}var Z=k(zt,2);{var it=e=>{de(e,{title:"Transcript",class:"!max-w-4xl",get open(){return t(N)},set open(l){d(N,l)},children:l=>{var c=hr(),u=b(c);{var g=P=>{nr(P,{get value(){return t(x),v(()=>t(x).transcript)},limit:500,expanded:!0})};h(u,P=>{t(x),v(()=>{var O;return typeof((O=t(x))==null?void 0:O.transcript)=="string"})&&P(g)})}y(c),i(l,c)},footer:l=>{var c=br(),u=b(c);ct(u,{onclick:Kt,children:(P,O)=>{pt();var nt=F("Copy transcript");i(P,nt)},$$slots:{default:!0}});var g=k(u,2);ct(g,{variant:"secondary",onclick:()=>d(N,!1),children:(P,O)=>{pt();var nt=F("Close");i(P,nt)},$$slots:{default:!0}}),y(c),i(l,c)},$$slots:{default:!0,footer:!0},$$legacy:!0})};h(Z,e=>{t(N),t(x),v(()=>t(N)&&Lt(t(x)))&&e(it)})}i(M,H),ne(),J()}fe(["click"]);export{jr as component};
|
|
Binary file
|
|
Binary file
|