@recombine-ai/platform 0.2.6-test.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/bin/bosun.js +300 -0
- package/bin/rc-build.js +12 -0
- package/build/agent/index.d.ts +5 -0
- package/build/agent/index.d.ts.map +1 -0
- package/build/agent/index.js +2 -0
- package/build/agent/text-agent.d.ts +14 -0
- package/build/agent/text-agent.d.ts.map +1 -0
- package/build/agent/text-agent.js +28 -0
- package/build/agent/timed.d.ts +2 -0
- package/build/agent/timed.d.ts.map +1 -0
- package/build/agent/timed.js +9 -0
- package/build/agent/voice-agent.d.ts +24 -0
- package/build/agent/voice-agent.d.ts.map +1 -0
- package/build/agent/voice-agent.js +24 -0
- package/build/bosun/context.d.ts +23 -0
- package/build/bosun/context.d.ts.map +1 -0
- package/build/bosun/context.js +41 -0
- package/build/bosun/index.d.ts +11 -0
- package/build/bosun/index.d.ts.map +1 -0
- package/build/bosun/index.js +7 -0
- package/build/bosun/interfaces/agent.d.ts +40 -0
- package/build/bosun/interfaces/agent.d.ts.map +1 -0
- package/build/bosun/interfaces/agent.js +3 -0
- package/build/bosun/mock.d.ts +6 -0
- package/build/bosun/mock.d.ts.map +1 -0
- package/build/bosun/mock.js +28 -0
- package/build/bosun/std-mocks/call-control.d.ts +11 -0
- package/build/bosun/std-mocks/call-control.d.ts.map +1 -0
- package/build/bosun/std-mocks/call-control.js +128 -0
- package/build/bosun/std-mocks/platform.d.ts +8 -0
- package/build/bosun/std-mocks/platform.d.ts.map +1 -0
- package/build/bosun/std-mocks/platform.js +45 -0
- package/build/bosun/test-agent.d.ts +4 -0
- package/build/bosun/test-agent.d.ts.map +1 -0
- package/build/bosun/test-agent.js +70 -0
- package/build/bosun/test-step-registry.d.ts +14 -0
- package/build/bosun/test-step-registry.d.ts.map +1 -0
- package/build/bosun/test-step-registry.js +48 -0
- package/build/bosun/utils.d.ts +4 -0
- package/build/bosun/utils.d.ts.map +1 -0
- package/build/bosun/utils.js +7 -0
- package/build/bosun-app/backend/server.js +48570 -0
- package/build/bosun-app/backend/server.js.map +7 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/0.B5fEz2jr.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/0.B5fEz2jr.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/0.B5fEz2jr.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/10.DIVePEYf.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/10.DIVePEYf.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/10.DIVePEYf.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/18.C5apk4jm.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/18.C5apk4jm.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/18.C5apk4jm.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/2.DtxQDOXx.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/2.DtxQDOXx.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/2.DtxQDOXx.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/3.Dzh7_Q8n.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/3.Dzh7_Q8n.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/3.Dzh7_Q8n.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/5.CZVw96CJ.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/5.CZVw96CJ.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/5.CZVw96CJ.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/9.DlSPCZj0.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/9.DlSPCZj0.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/9.DlSPCZj0.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Input.CJ8KyccG.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Input.CJ8KyccG.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Input.CJ8KyccG.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Popper.CLTyHc88.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Popper.CLTyHc88.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Popper.CLTyHc88.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/ReadOnlyMonacoDiff.iiWNRlR-.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/ReadOnlyMonacoDiff.iiWNRlR-.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/ReadOnlyMonacoDiff.iiWNRlR-.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Tab.DlCfjMY1.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Tab.DlCfjMY1.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/Tab.DlCfjMY1.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/chat-content.Cabnnfyv.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/chat-content.Cabnnfyv.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/chat-content.Cabnnfyv.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/codicon.DCmgc-ay.ttf +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/editor.BMIWPGx3.css +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/editor.BMIWPGx3.css.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/assets/editor.BMIWPGx3.css.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/-UyI9lYi.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/-UyI9lYi.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/-UyI9lYi.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/0cvrggvQ.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/0cvrggvQ.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/0cvrggvQ.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/25W9uPmb.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/25W9uPmb.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/25W9uPmb.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/4Ik7cdeQ.js +8 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/4Ik7cdeQ.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/4Ik7cdeQ.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/5Rap-vPy.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/5Rap-vPy.js.br +3 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/5Rap-vPy.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/9mOMnnWN.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/9mOMnnWN.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/9mOMnnWN.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B03wrqEc.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B03wrqEc.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B03wrqEc.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B0XwC4Ot.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B0XwC4Ot.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B0XwC4Ot.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B0nqNj93.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B0nqNj93.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B0nqNj93.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B1dhmiqQ.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B1dhmiqQ.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B1dhmiqQ.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B5zXfXm9.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B5zXfXm9.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B5zXfXm9.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B8q_gCwD.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B8q_gCwD.js.br +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B8q_gCwD.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B9Xyijhd.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B9Xyijhd.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B9Xyijhd.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B9pMb6OP.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B9pMb6OP.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B9pMb6OP.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BBk8_Xpk.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BBk8_Xpk.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BBk8_Xpk.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BEdAvgYp.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BEdAvgYp.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BEdAvgYp.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BFG1Mk7z.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BFG1Mk7z.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BFG1Mk7z.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BIv9DU6q.js +303 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BIv9DU6q.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BIv9DU6q.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BJ9KKLWf.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BJ9KKLWf.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BJ9KKLWf.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BKW04JRY.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BKW04JRY.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BKW04JRY.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BKlk5iyT.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BKlk5iyT.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BKlk5iyT.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BMYSavKM.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BMYSavKM.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BMYSavKM.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BOiOqwrA.js +3 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BOiOqwrA.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BOiOqwrA.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BQIf5msi.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BQIf5msi.js.br +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BQIf5msi.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BSkB5QuD.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BSkB5QuD.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BSkB5QuD.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BU7aeYn4.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BU7aeYn4.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BU7aeYn4.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BUkXSKT3.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BUkXSKT3.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BUkXSKT3.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BW6P0Ecp.js +33 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BW6P0Ecp.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BW6P0Ecp.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BY8d35y9.js +16 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BY8d35y9.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BY8d35y9.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B_c3zf-v.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B_c3zf-v.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B_c3zf-v.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B_fMsGYe.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B_fMsGYe.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/B_fMsGYe.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BaJupSGV.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BaJupSGV.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BaJupSGV.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BaLxmfj-.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BaLxmfj-.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BaLxmfj-.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bc-ZgV77.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bc-ZgV77.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bc-ZgV77.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BcbX6huO.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BcbX6huO.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BcbX6huO.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BfEKNvv3.js +7 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BfEKNvv3.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BfEKNvv3.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bhzvs7bI.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bhzvs7bI.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bhzvs7bI.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bio4gycK.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bio4gycK.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bio4gycK.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BoFRg7Ot.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BoFRg7Ot.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BoFRg7Ot.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BoX_BZZY.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BoX_BZZY.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BoX_BZZY.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bp8N7Z1t.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bp8N7Z1t.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bp8N7Z1t.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bqgm2twL.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bqgm2twL.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Bqgm2twL.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BrgZPUOV.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BrgZPUOV.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BrgZPUOV.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BsTHnhdd.js +7 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BsTHnhdd.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/BsTHnhdd.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C0rPkxmP.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C0rPkxmP.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C0rPkxmP.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C1FmrZbK.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C1FmrZbK.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C1FmrZbK.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C3cROXCy.js +9 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C3cROXCy.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C3cROXCy.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C4mbwMvt.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C4mbwMvt.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C4mbwMvt.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C5WLch3f.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C5WLch3f.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C5WLch3f.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C9yBjdYI.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C9yBjdYI.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/C9yBjdYI.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CAFoob5N.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CAFoob5N.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CAFoob5N.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CCSDG5nI.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CCSDG5nI.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CCSDG5nI.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CCYriF4C.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CCYriF4C.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CCYriF4C.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CDGzqUPQ.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CDGzqUPQ.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CDGzqUPQ.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CDntyWJ8.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CDntyWJ8.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CDntyWJ8.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CFKIUWau.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CFKIUWau.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CFKIUWau.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CFOPXBzS.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CFOPXBzS.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CFOPXBzS.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CGinwM47.js +8 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CGinwM47.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CGinwM47.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CHCMKZAC.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CHCMKZAC.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CHCMKZAC.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CLLBncYj.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CLLBncYj.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CLLBncYj.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/COyEY5Pt.js +7 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/COyEY5Pt.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/COyEY5Pt.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CPajHgWi.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CPajHgWi.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CPajHgWi.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CR-uVjxM.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CR-uVjxM.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CR-uVjxM.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CR5IRTqC.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CR5IRTqC.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CR5IRTqC.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CVwtpugi.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CVwtpugi.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CVwtpugi.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CX-rkNHf.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CX-rkNHf.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CX-rkNHf.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CXOwvkN_.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CXOwvkN_.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CXOwvkN_.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CdQndTaG.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CdQndTaG.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CdQndTaG.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Ce3n6wWz.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Ce3n6wWz.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Ce3n6wWz.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cg7bfA9N.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cg7bfA9N.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cg7bfA9N.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ClLUwVGq.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ClLUwVGq.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ClLUwVGq.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cp1zYvxS.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cp1zYvxS.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cp1zYvxS.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CpIb_Oan.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CpIb_Oan.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CpIb_Oan.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cpb6xl2v.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cpb6xl2v.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cpb6xl2v.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cphgjts3.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cphgjts3.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Cphgjts3.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CrxwEwqu.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CrxwEwqu.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CrxwEwqu.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CwNk8-XU.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CwNk8-XU.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CwNk8-XU.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CwmAWymP.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CwmAWymP.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CwmAWymP.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CzKuDChf.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CzKuDChf.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/CzKuDChf.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D-MeaMDU.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D-MeaMDU.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D-MeaMDU.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D3h14YRZ.js +8 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D3h14YRZ.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D3h14YRZ.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D5C2fndG.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D5C2fndG.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/D5C2fndG.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DDMPVpvs.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DDMPVpvs.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DDMPVpvs.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DDwshQtU.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DDwshQtU.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DDwshQtU.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DEz15oJb.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DEz15oJb.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DEz15oJb.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DGc0An5V.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DGc0An5V.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DGc0An5V.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DHaeiCBh.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DHaeiCBh.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DHaeiCBh.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DJnDF3d9.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DJnDF3d9.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DJnDF3d9.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DLQqXQ6R.js +751 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DLQqXQ6R.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DLQqXQ6R.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DNvczHUR.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DNvczHUR.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DNvczHUR.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DRIMs3uA.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DRIMs3uA.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DRIMs3uA.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DSZPf7rp.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DSZPf7rp.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DSZPf7rp.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DTECt2xU.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DTECt2xU.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DTECt2xU.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DUeN9t8P.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DUeN9t8P.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DUeN9t8P.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DWH0347h.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DWH0347h.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DWH0347h.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DXsF11_5.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DXsF11_5.js.br +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DXsF11_5.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DXyYeYxl.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DXyYeYxl.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DXyYeYxl.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DZxMt77D.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DZxMt77D.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DZxMt77D.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Dba0_Upf.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Dba0_Upf.js.br +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Dba0_Upf.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Dd3NCNK9.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Dd3NCNK9.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Dd3NCNK9.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DfzH4Xui.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DfzH4Xui.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DfzH4Xui.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DgGeUDDh.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DgGeUDDh.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DgGeUDDh.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DgyLZaXg.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DgyLZaXg.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DgyLZaXg.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DjDhNM9l.js +9 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DjDhNM9l.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DjDhNM9l.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DjujL8K1.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DjujL8K1.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DjujL8K1.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DnHyzjbg.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DnHyzjbg.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DnHyzjbg.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DnMQeiTY.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DnMQeiTY.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DnMQeiTY.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DrQuvNYM.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DrQuvNYM.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DrQuvNYM.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Drc7WvVn.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Drc7WvVn.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Drc7WvVn.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DuQdgMax.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DuQdgMax.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DuQdgMax.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DwJ7jVG9.js +8 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DwJ7jVG9.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DwJ7jVG9.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DyP6w7ZV.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DyP6w7ZV.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/DyP6w7ZV.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/IKQcdn9t.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/IKQcdn9t.js.br +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/IKQcdn9t.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/OERrxy3_.js +64 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/OERrxy3_.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/OERrxy3_.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/T0seCQS_.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/T0seCQS_.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/T0seCQS_.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Tw7wswEv.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Tw7wswEv.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Tw7wswEv.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/YWi4-JPR.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/YWi4-JPR.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/YWi4-JPR.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ZGfwyPNq.js +15 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ZGfwyPNq.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ZGfwyPNq.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Zznr-cwX.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Zznr-cwX.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/Zznr-cwX.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/bynEV6cE.js +9 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/bynEV6cE.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/bynEV6cE.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/dUCx_-0o.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/dUCx_-0o.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/dUCx_-0o.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ddC1NP9R.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ddC1NP9R.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ddC1NP9R.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/deUWdS0T.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/deUWdS0T.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/deUWdS0T.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/i9-g7ZhI.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/i9-g7ZhI.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/i9-g7ZhI.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/joiJcRPz.js +11 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/joiJcRPz.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/joiJcRPz.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/nf6ki56Z.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/nf6ki56Z.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/nf6ki56Z.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ouMvMh56.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ouMvMh56.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/ouMvMh56.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/pnP8ivHi.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/pnP8ivHi.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/pnP8ivHi.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/qiSVE_6c.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/qiSVE_6c.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/qiSVE_6c.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/rUNN04Wq.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/rUNN04Wq.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/rUNN04Wq.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/sKHuRf4Z.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/sKHuRf4Z.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/sKHuRf4Z.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/tGk8EFnU.js +6 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/tGk8EFnU.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/tGk8EFnU.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/wbPk3Yxo.js +81 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/wbPk3Yxo.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/wbPk3Yxo.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/xC2C8d09.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/xC2C8d09.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/chunks/xC2C8d09.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/entry/app.Bni-2yHM.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/entry/app.Bni-2yHM.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/entry/app.Bni-2yHM.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/entry/start.Bwh8stkk.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/entry/start.Bwh8stkk.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/entry/start.Bwh8stkk.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/0.CyFCeOko.js +3 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/0.CyFCeOko.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/0.CyFCeOko.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/1.D9Za90TC.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/1.D9Za90TC.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/1.D9Za90TC.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/10.CQP8ZYdc.js +35 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/10.CQP8ZYdc.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/10.CQP8ZYdc.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/11.1H8cz_S1.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/11.1H8cz_S1.js.br +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/11.1H8cz_S1.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/12.Douyi5CF.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/12.Douyi5CF.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/12.Douyi5CF.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/13.DmDIoZI2.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/13.DmDIoZI2.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/13.DmDIoZI2.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/14.DfC4E0Jp.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/14.DfC4E0Jp.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/14.DfC4E0Jp.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/15.drIyAxl2.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/15.drIyAxl2.js.br +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/15.drIyAxl2.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/16.u0CZMrcc.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/16.u0CZMrcc.js.br +4 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/16.u0CZMrcc.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/17.C-6g-4TG.js +3 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/17.C-6g-4TG.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/17.C-6g-4TG.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/18.CKu_cfLu.js +11 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/18.CKu_cfLu.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/18.CKu_cfLu.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/2.lZxPEqtw.js +35 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/2.lZxPEqtw.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/2.lZxPEqtw.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/3.BjH4Ma-k.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/3.BjH4Ma-k.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/3.BjH4Ma-k.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/4.B_swg0wq.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/4.B_swg0wq.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/4.B_swg0wq.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/5.CJfS926N.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/5.CJfS926N.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/5.CJfS926N.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/6.4aRjHu4u.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/6.4aRjHu4u.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/6.4aRjHu4u.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/7.BzXqUj2v.js +1 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/7.BzXqUj2v.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/7.BzXqUj2v.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/8.BZFIHe4g.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/8.BZFIHe4g.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/8.BZFIHe4g.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/9.BYJRzNt4.js +2 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/9.BYJRzNt4.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/nodes/9.BYJRzNt4.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/css.worker-BRIrhzkG.js +84 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/css.worker-BRIrhzkG.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/css.worker-BRIrhzkG.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/editor.worker-DX6ApQqM.js +12 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/html.worker-CBI4EQBP.js +461 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/html.worker-CBI4EQBP.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/html.worker-CBI4EQBP.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/json.worker-CIZWV9vN.js +49 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/json.worker-CIZWV9vN.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/json.worker-CIZWV9vN.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js +51334 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.br +0 -0
- package/build/bosun-app/frontend/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.gz +0 -0
- package/build/bosun-app/frontend/client/_app/version.json +1 -0
- package/build/bosun-app/frontend/client/_app/version.json.br +0 -0
- package/build/bosun-app/frontend/client/_app/version.json.gz +0 -0
- package/build/bosun-app/frontend/client/favicon.png +0 -0
- package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Black.ttf +0 -0
- package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Bold.ttf +0 -0
- package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Light.ttf +0 -0
- package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Medium.ttf +0 -0
- package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Regular.ttf +0 -0
- package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-SemiBold.ttf +0 -0
- package/build/bosun-app/frontend/client/fonts.css +42 -0
- package/build/bosun-app/frontend/client/fonts.css.br +0 -0
- package/build/bosun-app/frontend/client/fonts.css.gz +0 -0
- package/build/bosun-app/frontend/client/recombine.svg +11 -0
- package/build/bosun-app/frontend/client/recombine.svg.br +0 -0
- package/build/bosun-app/frontend/client/recombine.svg.gz +0 -0
- package/build/bosun-app/frontend/client/telescope-icon.svg +4 -0
- package/build/bosun-app/frontend/client/telescope-icon.svg.br +0 -0
- package/build/bosun-app/frontend/client/telescope-icon.svg.gz +0 -0
- package/build/bosun-app/frontend/client/ui/arrow_tests.svg +3 -0
- package/build/bosun-app/frontend/client/ui/arrow_tests.svg.br +0 -0
- package/build/bosun-app/frontend/client/ui/arrow_tests.svg.gz +0 -0
- package/build/bosun-app/frontend/client/ui/paperclip.svg +3 -0
- package/build/bosun-app/frontend/client/ui/paperclip.svg.br +0 -0
- package/build/bosun-app/frontend/client/ui/paperclip.svg.gz +0 -0
- package/build/bosun-app/frontend/client/ui/send.svg +4 -0
- package/build/bosun-app/frontend/client/ui/send.svg.br +0 -0
- package/build/bosun-app/frontend/client/ui/send.svg.gz +0 -0
- package/build/bosun-app/frontend/env.js +70 -0
- package/build/bosun-app/frontend/env.js.map +1 -0
- package/build/bosun-app/frontend/handler.js +28 -0
- package/build/bosun-app/frontend/handler.js.map +1 -0
- package/build/bosun-app/frontend/index.js +151 -0
- package/build/bosun-app/frontend/index.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/AgentSidebar.js-CFHwsTeS.js +170 -0
- package/build/bosun-app/frontend/server/chunks/chunks/AgentSidebar.js-CFHwsTeS.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Button.js-IbO6ojjD.js +47 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Button.js-IbO6ojjD.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/ChatStepTrace.js-VTtwaKGp.js +558 -0
- package/build/bosun-app/frontend/server/chunks/chunks/ChatStepTrace.js-VTtwaKGp.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Dropdown.js-VxjZvXGD.js +62 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Dropdown.js-VxjZvXGD.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Icon.js-DzsiLkia.js +77 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Icon.js-DzsiLkia.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Input.js-V9tWKRFS.js +22 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Input.js-V9tWKRFS.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Modal.js-BUDSUOER.js +2290 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Modal.js-BUDSUOER.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Panel.js-Dyc_ecR2.js +11 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Panel.js-Dyc_ecR2.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Tab.js-DpBcUmVx.js +83 -0
- package/build/bosun-app/frontend/server/chunks/chunks/Tab.js-DpBcUmVx.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/agents-context.js-DdI5kzRS.js +6 -0
- package/build/bosun-app/frontend/server/chunks/chunks/agents-context.js-DdI5kzRS.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/client.js-C_B2rv3r.js +19 -0
- package/build/bosun-app/frontend/server/chunks/chunks/client.js-C_B2rv3r.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/conversation-view-memory.js-DjOFeigb.js +20 -0
- package/build/bosun-app/frontend/server/chunks/chunks/conversation-view-memory.js-DjOFeigb.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/edit-workspace-context.js-DGPpbvI5.js +6 -0
- package/build/bosun-app/frontend/server/chunks/chunks/edit-workspace-context.js-DGPpbvI5.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/event.js-BfLhxAp5.js +19 -0
- package/build/bosun-app/frontend/server/chunks/chunks/event.js-BfLhxAp5.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/exports.js-8HOoaa4e.js +161 -0
- package/build/bosun-app/frontend/server/chunks/chunks/exports.js-8HOoaa4e.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index-server.js-CALBgpac.js +17 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index-server.js-CALBgpac.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index.js-DczFGj-7.js +3383 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index.js-DczFGj-7.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index2.js-DYVLcO2-.js +28 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index2.js-DYVLcO2-.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index3.js-WpnIn8V1.js +111 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index3.js-WpnIn8V1.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index4.js-C9gg2iSH.js +63 -0
- package/build/bosun-app/frontend/server/chunks/chunks/index4.js-C9gg2iSH.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/internal.js-V8Wfo1-F.js +121 -0
- package/build/bosun-app/frontend/server/chunks/chunks/internal.js-V8Wfo1-F.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/js-yaml.js-Dx-xfeGn.js +733 -0
- package/build/bosun-app/frontend/server/chunks/chunks/js-yaml.js-Dx-xfeGn.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/latency-recordings.js-CqioXMQl.js +117 -0
- package/build/bosun-app/frontend/server/chunks/chunks/latency-recordings.js-CqioXMQl.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/latency.js--f3JYIRg.js +157 -0
- package/build/bosun-app/frontend/server/chunks/chunks/latency.js--f3JYIRg.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/log-content.svelte.js-C6EzbHLC.js +20 -0
- package/build/bosun-app/frontend/server/chunks/chunks/log-content.svelte.js-C6EzbHLC.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/root.js-CJvqqGUj.js +1052 -0
- package/build/bosun-app/frontend/server/chunks/chunks/root.js-CJvqqGUj.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/schemas.js-W-DP3mDr.js +4506 -0
- package/build/bosun-app/frontend/server/chunks/chunks/schemas.js-W-DP3mDr.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/server.js-Bf8x1V_n.js +16 -0
- package/build/bosun-app/frontend/server/chunks/chunks/server.js-Bf8x1V_n.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/shared-server.js-DaWdgxVh.js +11 -0
- package/build/bosun-app/frontend/server/chunks/chunks/shared-server.js-DaWdgxVh.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/source-selection.js-Cc6RX6-m.js +243 -0
- package/build/bosun-app/frontend/server/chunks/chunks/source-selection.js-Cc6RX6-m.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/sources.server.js-B6fpC51P.js +74 -0
- package/build/bosun-app/frontend/server/chunks/chunks/sources.server.js-B6fpC51P.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/state.svelte.js-DDOPLPl-.js +13 -0
- package/build/bosun-app/frontend/server/chunks/chunks/state.svelte.js-DDOPLPl-.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/steps.js-DzZCg39h.js +8 -0
- package/build/bosun-app/frontend/server/chunks/chunks/steps.js-DzZCg39h.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/trpc-client.js-zIPF9ytu.js +1154 -0
- package/build/bosun-app/frontend/server/chunks/chunks/trpc-client.js-zIPF9ytu.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/uneval.js-5Y6J9rDU.js +530 -0
- package/build/bosun-app/frontend/server/chunks/chunks/uneval.js-5Y6J9rDU.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/utils.js-BQzn9ikS.js +38 -0
- package/build/bosun-app/frontend/server/chunks/chunks/utils.js-BQzn9ikS.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/chunks/utils2.js-DyJSCbBx.js +1365 -0
- package/build/bosun-app/frontend/server/chunks/chunks/utils2.js-DyJSCbBx.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/_server.ts.js-hHR2eFvt.js +140 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/_server.ts.js-hHR2eFvt.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/audio/_server.ts.js-BluTfSQd.js +38 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/audio/_server.ts.js-BluTfSQd.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/proxy/_...path_/_server.ts.js-CHrOiduq.js +51 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/proxy/_...path_/_server.ts.js-CHrOiduq.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/sources/_server.ts.js-C2FIU8Kr.js +24 -0
- package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/sources/_server.ts.js-C2FIU8Kr.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/fallbacks/error.svelte.js-CUaQ38ir.js +17 -0
- package/build/bosun-app/frontend/server/chunks/entries/fallbacks/error.svelte.js-CUaQ38ir.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/hooks.universal.js-BJphIAi-.js +8 -0
- package/build/bosun-app/frontend/server/chunks/entries/hooks.universal.js-BJphIAi-.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/_layout.svelte.js-BzoISDtG.js +48 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/_layout.svelte.js-BzoISDtG.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/_page.svelte.js-Dx0vF3Lq.js +47 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/_page.svelte.js-Dx0vF3Lq.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_layout.svelte.js-B2wHKJV7.js +9089 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_layout.svelte.js-B2wHKJV7.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_page.ts.js-CFNiL-gK.js +19 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_page.ts.js-CFNiL-gK.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/configure/_page.svelte.js-CEL_4VPG.js +61 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/configure/_page.svelte.js-CEL_4VPG.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/roleplay/_page.svelte.js-DDcIjgZD.js +1435 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/roleplay/_page.svelte.js-DDcIjgZD.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/tests/_page.svelte.js-UVUg89-t.js +2169 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/tests/_page.svelte.js-UVUg89-t.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_page.svelte.js-kE5Ar91A.js +73 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_page.svelte.js-kE5Ar91A.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/roleplay/_page.ts.js-7xRh8oLz.js +19 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/roleplay/_page.ts.js-7xRh8oLz.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_agent_/_page.ts.js-CoMBAK66.js +15 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_agent_/_page.ts.js-CoMBAK66.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_page.ts.js-BeaHASlP.js +13 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_page.ts.js-BeaHASlP.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/_page.ts.js-BDwYwqJJ.js +14 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/_page.ts.js-BDwYwqJJ.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_layout.svelte.js-BunyOuzX.js +64 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_layout.svelte.js-BunyOuzX.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_page.ts.js-DCdyFx8I.js +14 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_page.ts.js-DCdyFx8I.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/latency/_page.svelte.js-tdUdTo4m.js +1821 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/latency/_page.svelte.js-tdUdTo4m.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/traces/_page.svelte.js-Ca79DBzJ.js +947 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/traces/_page.svelte.js-Ca79DBzJ.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_layout.svelte.js-Dvn3tfM7.js +478 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_layout.svelte.js-Dvn3tfM7.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_page.svelte.js-DvRZkYfo.js +14 -0
- package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_page.svelte.js-DvRZkYfo.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/handler-I7zF-fv9.js +1756 -0
- package/build/bosun-app/frontend/server/chunks/handler-I7zF-fv9.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/index.js-Ca0Ef2Tt.js +4120 -0
- package/build/bosun-app/frontend/server/chunks/index.js-Ca0Ef2Tt.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/manifest.js-D22OChaf.js +177 -0
- package/build/bosun-app/frontend/server/chunks/manifest.js-D22OChaf.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/0.js-CoDyOiLt.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/0.js-CoDyOiLt.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/1.js-BesNpd2w.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/1.js-BesNpd2w.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/10.js-DN5elTKV.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/10.js-DN5elTKV.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/11.js-DY_yGGfd.js +12 -0
- package/build/bosun-app/frontend/server/chunks/nodes/11.js-DY_yGGfd.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/12.js-Y03iWeel.js +12 -0
- package/build/bosun-app/frontend/server/chunks/nodes/12.js-Y03iWeel.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/13.js-1lz41CRL.js +12 -0
- package/build/bosun-app/frontend/server/chunks/nodes/13.js-1lz41CRL.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/14.js-DkuFA-fc.js +12 -0
- package/build/bosun-app/frontend/server/chunks/nodes/14.js-DkuFA-fc.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/15.js-cNd06B9T.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/15.js-cNd06B9T.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/16.js-BnrzEE51.js +12 -0
- package/build/bosun-app/frontend/server/chunks/nodes/16.js-BnrzEE51.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/17.js-DExEAB_e.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/17.js-DExEAB_e.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/18.js-OLWFvVu0.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/18.js-OLWFvVu0.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/2.js-DdMhYSQT.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/2.js-DdMhYSQT.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/3.js-DRo_79wF.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/3.js-DRo_79wF.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/4.js-Bb8ZnG8K.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/4.js-Bb8ZnG8K.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/5.js-DNbqpjRZ.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/5.js-DNbqpjRZ.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/6.js-MMZWg86o.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/6.js-MMZWg86o.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/7.js-CmnAMDtD.js +12 -0
- package/build/bosun-app/frontend/server/chunks/nodes/7.js-CmnAMDtD.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/8.js-Cs981zJ4.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/8.js-Cs981zJ4.js.map +1 -0
- package/build/bosun-app/frontend/server/chunks/nodes/9.js-h4jeZZT-.js +9 -0
- package/build/bosun-app/frontend/server/chunks/nodes/9.js-h4jeZZT-.js.map +1 -0
- package/build/bosun-app/frontend/shims.js +33 -0
- package/build/bosun-app/frontend/shims.js.map +1 -0
- package/build/build/agent-service.d.ts +8 -0
- package/build/build/agent-service.d.ts.map +1 -0
- package/build/build/agent-service.js +32 -0
- package/build/build/cli.d.ts +13 -0
- package/build/build/cli.d.ts.map +1 -0
- package/build/build/cli.js +103 -0
- package/build/build/common.d.ts +12 -0
- package/build/build/common.d.ts.map +1 -0
- package/build/build/common.js +75 -0
- package/build/build/index.d.ts +7 -0
- package/build/build/index.d.ts.map +1 -0
- package/build/build/index.js +3 -0
- package/build/build/text-function.d.ts +6 -0
- package/build/build/text-function.d.ts.map +1 -0
- package/build/build/text-function.js +55 -0
- package/build/call-control/call-control.d.ts +36 -0
- package/build/call-control/call-control.d.ts.map +1 -0
- package/build/call-control/call-control.js +207 -0
- package/build/call-control/call-details/index.d.ts +2 -0
- package/build/call-control/call-details/index.d.ts.map +1 -0
- package/build/call-control/call-details/index.js +1 -0
- package/build/call-control/call-details/noop-storage.d.ts +10 -0
- package/build/call-control/call-details/noop-storage.d.ts.map +1 -0
- package/build/call-control/call-details/noop-storage.js +11 -0
- package/build/call-control/index.d.ts +7 -0
- package/build/call-control/index.d.ts.map +1 -0
- package/build/call-control/index.js +4 -0
- package/build/call-control/port.d.ts +15 -0
- package/build/call-control/port.d.ts.map +1 -0
- package/build/call-control/port.js +1 -0
- package/build/call-control/schemas.generated.d.ts +156 -0
- package/build/call-control/schemas.generated.d.ts.map +1 -0
- package/build/call-control/schemas.generated.js +281 -0
- package/build/call-control/sip-setup-lock.d.ts +6 -0
- package/build/call-control/sip-setup-lock.d.ts.map +1 -0
- package/build/call-control/sip-setup-lock.js +60 -0
- package/build/call-control/sip.d.ts +41 -0
- package/build/call-control/sip.d.ts.map +1 -0
- package/build/call-control/sip.js +423 -0
- package/build/call-control/types.d.ts +352 -0
- package/build/call-control/types.d.ts.map +1 -0
- package/build/call-control/types.js +30 -0
- package/build/call-control/utils.d.ts +13 -0
- package/build/call-control/utils.d.ts.map +1 -0
- package/build/call-control/utils.js +43 -0
- package/build/{context-cache.d.ts → context-cache/index.d.ts} +4 -3
- package/build/context-cache/index.d.ts.map +1 -0
- package/build/{context-cache.js → context-cache/index.js} +20 -8
- package/build/core/index.d.ts +6 -0
- package/build/core/index.d.ts.map +1 -0
- package/build/core/index.js +2 -0
- package/build/core/make-text-platform.d.ts +15 -0
- package/build/core/make-text-platform.d.ts.map +1 -0
- package/build/core/make-text-platform.js +27 -0
- package/build/core/make-voice-platform.d.ts +16 -0
- package/build/core/make-voice-platform.d.ts.map +1 -0
- package/build/core/make-voice-platform.js +51 -0
- package/build/core/platform.d.ts +30 -0
- package/build/core/platform.d.ts.map +1 -0
- package/build/core/platform.js +1 -0
- package/build/dockyard/index.d.ts +4 -0
- package/build/dockyard/index.d.ts.map +1 -0
- package/build/dockyard/index.js +2 -0
- package/build/dockyard/logger/base.d.ts +20 -0
- package/build/dockyard/logger/base.d.ts.map +1 -0
- package/build/dockyard/logger/base.js +26 -0
- package/build/dockyard/logger/configuration.d.ts +13 -0
- package/build/dockyard/logger/configuration.d.ts.map +1 -0
- package/build/dockyard/logger/configuration.js +22 -0
- package/build/dockyard/logger/helpers.d.ts +6 -0
- package/build/dockyard/logger/helpers.d.ts.map +1 -0
- package/build/dockyard/logger/helpers.js +46 -0
- package/build/dockyard/logger/index.d.ts +12 -0
- package/build/dockyard/logger/index.d.ts.map +1 -0
- package/build/dockyard/logger/index.js +92 -0
- package/build/dockyard/logger/local-context.d.ts +11 -0
- package/build/dockyard/logger/local-context.d.ts.map +1 -0
- package/build/dockyard/logger/local-context.js +23 -0
- package/build/engine/bosun/action.d.ts +10 -0
- package/build/engine/bosun/action.d.ts.map +1 -0
- package/build/engine/bosun/action.js +32 -0
- package/build/engine/bosun/agent.d.ts +37 -0
- package/build/engine/bosun/agent.d.ts.map +1 -0
- package/build/engine/bosun/agent.js +3 -0
- package/build/engine/bosun/api-call-tracer.d.ts +8 -0
- package/build/engine/bosun/api-call-tracer.d.ts.map +1 -0
- package/build/engine/bosun/api-call-tracer.js +8 -0
- package/build/engine/bosun/context.d.ts +23 -0
- package/build/engine/bosun/context.d.ts.map +1 -0
- package/build/engine/bosun/context.js +41 -0
- package/build/engine/bosun/conversational-tracer.d.ts +8 -0
- package/build/engine/bosun/conversational-tracer.d.ts.map +1 -0
- package/build/engine/bosun/conversational-tracer.js +8 -0
- package/build/engine/bosun/index.d.ts +9 -0
- package/build/engine/bosun/index.d.ts.map +1 -0
- package/build/engine/bosun/index.js +7 -0
- package/build/engine/bosun/mock.d.ts +6 -0
- package/build/engine/bosun/mock.d.ts.map +1 -0
- package/build/engine/bosun/mock.js +28 -0
- package/build/engine/bosun/step-tracer.d.ts +8 -0
- package/build/engine/bosun/step-tracer.d.ts.map +1 -0
- package/build/engine/bosun/step-tracer.js +29 -0
- package/build/engine/default-logger.d.ts +3 -0
- package/build/engine/default-logger.d.ts.map +1 -0
- package/build/engine/default-logger.js +5 -0
- package/build/engine/engine.d.ts +6 -0
- package/build/engine/engine.d.ts.map +1 -0
- package/build/engine/engine.js +306 -0
- package/build/engine/index.d.ts +15 -0
- package/build/engine/index.d.ts.map +1 -0
- package/build/engine/index.js +7 -0
- package/build/engine/interfaces/adapter.d.ts +12 -0
- package/build/engine/interfaces/adapter.d.ts.map +1 -0
- package/build/engine/interfaces/adapter.js +1 -0
- package/build/engine/interfaces/conversation.d.ts +19 -0
- package/build/engine/interfaces/conversation.d.ts.map +1 -0
- package/build/engine/interfaces/conversation.js +1 -0
- package/build/engine/interfaces/engine.d.ts +21 -0
- package/build/engine/interfaces/engine.d.ts.map +1 -0
- package/build/engine/interfaces/engine.js +1 -0
- package/build/engine/interfaces/index.d.ts +8 -0
- package/build/engine/interfaces/index.d.ts.map +1 -0
- package/build/engine/interfaces/index.js +7 -0
- package/build/engine/interfaces/other.d.ts +7 -0
- package/build/engine/interfaces/other.d.ts.map +1 -0
- package/build/engine/interfaces/other.js +1 -0
- package/build/engine/interfaces/steps.d.ts +33 -0
- package/build/engine/interfaces/steps.d.ts.map +1 -0
- package/build/engine/interfaces/steps.js +1 -0
- package/build/engine/interfaces/stream.d.ts +43 -0
- package/build/engine/interfaces/stream.d.ts.map +1 -0
- package/build/engine/interfaces/stream.js +1 -0
- package/build/engine/interfaces/workflow.d.ts +18 -0
- package/build/engine/interfaces/workflow.d.ts.map +1 -0
- package/build/engine/interfaces/workflow.js +1 -0
- package/build/engine/llm-adapters/index.d.ts +5 -0
- package/build/engine/llm-adapters/index.d.ts.map +1 -0
- package/build/engine/llm-adapters/index.js +4 -0
- package/build/engine/llm-adapters/mock.d.ts +3 -0
- package/build/engine/llm-adapters/mock.d.ts.map +1 -0
- package/build/engine/llm-adapters/mock.js +11 -0
- package/build/engine/llm-adapters/openai-stream.d.ts +6 -0
- package/build/engine/llm-adapters/openai-stream.d.ts.map +1 -0
- package/build/engine/llm-adapters/openai-stream.js +29 -0
- package/build/engine/llm-adapters/openai.d.ts +8 -0
- package/build/engine/llm-adapters/openai.d.ts.map +1 -0
- package/build/engine/llm-adapters/openai.js +34 -0
- package/build/engine/llm-adapters/provider.d.ts +4 -0
- package/build/engine/llm-adapters/provider.d.ts.map +1 -0
- package/build/engine/llm-adapters/provider.js +10 -0
- package/build/engine/monitoring/index.d.ts +2 -0
- package/build/engine/monitoring/index.d.ts.map +1 -0
- package/build/engine/monitoring/index.js +1 -0
- package/build/engine/monitoring/provider-errors.d.ts +19 -0
- package/build/engine/monitoring/provider-errors.d.ts.map +1 -0
- package/build/engine/monitoring/provider-errors.js +133 -0
- package/build/engine/prompt-fs.d.ts +17 -0
- package/build/engine/prompt-fs.d.ts.map +1 -0
- package/build/engine/prompt-fs.js +18 -0
- package/build/engine/schedule.d.ts +30 -0
- package/build/engine/schedule.d.ts.map +1 -0
- package/build/engine/schedule.js +109 -0
- package/build/engine/step-registry.d.ts +19 -0
- package/build/engine/step-registry.d.ts.map +1 -0
- package/build/engine/step-registry.js +16 -0
- package/build/engine/stream/engine.d.ts +3 -0
- package/build/engine/stream/engine.d.ts.map +1 -0
- package/build/engine/stream/engine.js +167 -0
- package/build/engine/stream/get-client.d.ts +15 -0
- package/build/engine/stream/get-client.d.ts.map +1 -0
- package/build/engine/stream/get-client.js +118 -0
- package/build/engine/stream/index.d.ts +4 -0
- package/build/engine/stream/index.d.ts.map +1 -0
- package/build/engine/stream/index.js +2 -0
- package/build/engine/stream/token-transformers.d.ts +6 -0
- package/build/engine/stream/token-transformers.d.ts.map +1 -0
- package/build/engine/stream/token-transformers.js +50 -0
- package/build/index.d.ts +2 -7
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -23
- package/build/notifications/index.d.ts +5 -0
- package/build/notifications/index.d.ts.map +1 -0
- package/build/notifications/index.js +4 -0
- package/build/notifications/logger.d.ts +2 -0
- package/build/notifications/logger.d.ts.map +1 -0
- package/build/notifications/logger.js +2 -0
- package/build/notifications/publisher.d.ts +10 -0
- package/build/notifications/publisher.d.ts.map +1 -0
- package/build/notifications/publisher.js +31 -0
- package/build/notifications/router.d.ts +18 -0
- package/build/notifications/router.d.ts.map +1 -0
- package/build/notifications/router.js +132 -0
- package/build/notifications/transport.d.ts +11 -0
- package/build/notifications/transport.d.ts.map +1 -0
- package/build/notifications/transport.js +31 -0
- package/build/notifications/types.d.ts +20 -0
- package/build/notifications/types.d.ts.map +1 -0
- package/build/notifications/types.js +1 -0
- package/build/steps/helpers.d.ts +11 -0
- package/build/steps/helpers.d.ts.map +1 -0
- package/build/steps/helpers.js +36 -0
- package/build/steps/index.d.ts +10 -0
- package/build/steps/index.d.ts.map +1 -0
- package/build/steps/index.js +5 -0
- package/build/steps/instructions-or-query.d.ts +9 -0
- package/build/steps/instructions-or-query.d.ts.map +1 -0
- package/build/steps/instructions-or-query.js +15 -0
- package/build/steps/make-all-required.d.ts +3 -0
- package/build/steps/make-all-required.d.ts.map +1 -0
- package/build/steps/make-all-required.js +41 -0
- package/build/steps/slot-booker/book-slot/prompt.d.ts +2 -0
- package/build/steps/slot-booker/book-slot/prompt.d.ts.map +1 -0
- package/build/steps/slot-booker/book-slot/prompt.js +24 -0
- package/build/steps/slot-booker/book-slot/step.d.ts +12 -0
- package/build/steps/slot-booker/book-slot/step.d.ts.map +1 -0
- package/build/steps/slot-booker/book-slot/step.js +51 -0
- package/build/steps/slot-booker/check-slots-for-match/prompt.d.ts +2 -0
- package/build/steps/slot-booker/check-slots-for-match/prompt.d.ts.map +1 -0
- package/build/steps/slot-booker/check-slots-for-match/prompt.js +30 -0
- package/build/steps/slot-booker/check-slots-for-match/step.d.ts +9 -0
- package/build/steps/slot-booker/check-slots-for-match/step.d.ts.map +1 -0
- package/build/steps/slot-booker/check-slots-for-match/step.js +23 -0
- package/build/steps/slot-booker/cleanup/step.d.ts +5 -0
- package/build/steps/slot-booker/cleanup/step.d.ts.map +1 -0
- package/build/steps/slot-booker/cleanup/step.js +22 -0
- package/build/steps/slot-booker/context.d.ts +14 -0
- package/build/steps/slot-booker/context.d.ts.map +1 -0
- package/build/steps/slot-booker/context.js +1 -0
- package/build/steps/slot-booker/find-slots/prompt.d.ts +2 -0
- package/build/steps/slot-booker/find-slots/prompt.d.ts.map +1 -0
- package/build/steps/slot-booker/find-slots/prompt.js +27 -0
- package/build/steps/slot-booker/find-slots/step.d.ts +12 -0
- package/build/steps/slot-booker/find-slots/step.d.ts.map +1 -0
- package/build/steps/slot-booker/find-slots/step.js +79 -0
- package/build/steps/slot-booker/init/step.d.ts +5 -0
- package/build/steps/slot-booker/init/step.d.ts.map +1 -0
- package/build/steps/slot-booker/init/step.js +37 -0
- package/build/steps/slot-booker/interfaces.d.ts +29 -0
- package/build/steps/slot-booker/interfaces.d.ts.map +1 -0
- package/build/steps/slot-booker/interfaces.js +1 -0
- package/build/steps/slot-booker/slot-booker.d.ts +27 -0
- package/build/steps/slot-booker/slot-booker.d.ts.map +1 -0
- package/build/steps/slot-booker/slot-booker.js +28 -0
- package/build/steps/slot-booker/util.d.ts +8 -0
- package/build/steps/slot-booker/util.d.ts.map +1 -0
- package/build/steps/slot-booker/util.js +26 -0
- package/build/telescope/api.d.ts +13 -0
- package/build/telescope/api.d.ts.map +1 -0
- package/build/telescope/api.js +43 -0
- package/build/telescope/create-telescope.d.ts +10 -0
- package/build/telescope/create-telescope.d.ts.map +1 -0
- package/build/telescope/create-telescope.js +7 -0
- package/build/telescope/index.d.ts +22 -0
- package/build/telescope/index.d.ts.map +1 -0
- package/build/telescope/index.js +8 -0
- package/build/telescope/interfaces/api-call-tracer.d.ts +21 -0
- package/build/telescope/interfaces/api-call-tracer.d.ts.map +1 -0
- package/build/telescope/interfaces/api-call-tracer.js +1 -0
- package/build/telescope/interfaces/conversation.d.ts +22 -0
- package/build/telescope/interfaces/conversation.d.ts.map +1 -0
- package/build/telescope/interfaces/conversation.js +1 -0
- package/build/telescope/interfaces/conversational-tracer.d.ts +16 -0
- package/build/telescope/interfaces/conversational-tracer.d.ts.map +1 -0
- package/build/telescope/interfaces/conversational-tracer.js +1 -0
- package/build/telescope/interfaces/event-tracer.d.ts +125 -0
- package/build/telescope/interfaces/event-tracer.d.ts.map +1 -0
- package/build/telescope/interfaces/event-tracer.js +1 -0
- package/build/telescope/interfaces/latency-tracer.d.ts +14 -0
- package/build/telescope/interfaces/latency-tracer.d.ts.map +1 -0
- package/build/telescope/interfaces/latency-tracer.js +1 -0
- package/build/telescope/interfaces/step-tracer.d.ts +30 -0
- package/build/telescope/interfaces/step-tracer.d.ts.map +1 -0
- package/build/telescope/interfaces/step-tracer.js +1 -0
- package/build/telescope/interfaces/storage.d.ts +17 -0
- package/build/telescope/interfaces/storage.d.ts.map +1 -0
- package/build/telescope/interfaces/storage.js +1 -0
- package/build/telescope/interfaces/telescope.d.ts +22 -0
- package/build/telescope/interfaces/telescope.d.ts.map +1 -0
- package/build/telescope/interfaces/telescope.js +1 -0
- package/build/telescope/interfaces/traces.d.ts +88 -0
- package/build/telescope/interfaces/traces.d.ts.map +1 -0
- package/build/telescope/interfaces/traces.js +1 -0
- package/build/telescope/latency-events.d.ts +15 -0
- package/build/telescope/latency-events.d.ts.map +1 -0
- package/build/telescope/latency-events.js +41 -0
- package/build/telescope/stub-storage.d.ts +21 -0
- package/build/telescope/stub-storage.d.ts.map +1 -0
- package/build/telescope/stub-storage.js +55 -0
- package/build/telescope/stub-telescope.d.ts +5 -0
- package/build/telescope/stub-telescope.d.ts.map +1 -0
- package/build/telescope/stub-telescope.js +47 -0
- package/build/telescope/stubs.d.ts +22 -0
- package/build/telescope/stubs.d.ts.map +1 -0
- package/build/telescope/stubs.js +51 -0
- package/build/telescope/telescope.d.ts +21 -0
- package/build/telescope/telescope.d.ts.map +1 -0
- package/build/telescope/telescope.js +41 -0
- package/build/telescope/trace-helpers.d.ts +12 -0
- package/build/telescope/trace-helpers.d.ts.map +1 -0
- package/build/telescope/trace-helpers.js +54 -0
- package/build/telescope/tracers/api-call-tracer.d.ts +15 -0
- package/build/telescope/tracers/api-call-tracer.d.ts.map +1 -0
- package/build/telescope/tracers/api-call-tracer.js +53 -0
- package/build/telescope/tracers/conversational-tracer.d.ts +15 -0
- package/build/telescope/tracers/conversational-tracer.d.ts.map +1 -0
- package/build/telescope/tracers/conversational-tracer.js +45 -0
- package/build/telescope/tracers/event-tracer.d.ts +14 -0
- package/build/telescope/tracers/event-tracer.d.ts.map +1 -0
- package/build/telescope/tracers/event-tracer.js +72 -0
- package/build/telescope/tracers/index.d.ts +7 -0
- package/build/telescope/tracers/index.d.ts.map +1 -0
- package/build/telescope/tracers/index.js +5 -0
- package/build/telescope/tracers/latency-tracer.d.ts +15 -0
- package/build/telescope/tracers/latency-tracer.d.ts.map +1 -0
- package/build/telescope/tracers/latency-tracer.js +40 -0
- package/build/telescope/tracers/step-tracer.d.ts +15 -0
- package/build/telescope/tracers/step-tracer.d.ts.map +1 -0
- package/build/telescope/tracers/step-tracer.js +50 -0
- package/build/text-agent-handlers/event.d.ts +11 -0
- package/build/text-agent-handlers/event.d.ts.map +1 -0
- package/build/text-agent-handlers/event.js +1 -0
- package/build/text-agent-handlers/incoming-message.d.ts +17 -0
- package/build/text-agent-handlers/incoming-message.d.ts.map +1 -0
- package/build/text-agent-handlers/incoming-message.js +131 -0
- package/build/text-agent-handlers/index.d.ts +15 -0
- package/build/text-agent-handlers/index.d.ts.map +1 -0
- package/build/text-agent-handlers/index.js +6 -0
- package/build/text-agent-handlers/instrument.d.ts +12 -0
- package/build/text-agent-handlers/instrument.d.ts.map +1 -0
- package/build/text-agent-handlers/instrument.js +27 -0
- package/build/text-agent-handlers/jobs-handler.d.ts +10 -0
- package/build/text-agent-handlers/jobs-handler.d.ts.map +1 -0
- package/build/text-agent-handlers/jobs-handler.js +27 -0
- package/build/text-agent-handlers/jobs.d.ts +19 -0
- package/build/text-agent-handlers/jobs.d.ts.map +1 -0
- package/build/text-agent-handlers/jobs.js +1 -0
- package/build/text-agent-handlers/message-acceptor.d.ts +13 -0
- package/build/text-agent-handlers/message-acceptor.d.ts.map +1 -0
- package/build/text-agent-handlers/message-acceptor.js +32 -0
- package/build/text-agent-handlers/notification-hook.d.ts +14 -0
- package/build/text-agent-handlers/notification-hook.d.ts.map +1 -0
- package/build/text-agent-handlers/notification-hook.js +51 -0
- package/build/text-agent-handlers/ports.d.ts +36 -0
- package/build/text-agent-handlers/ports.d.ts.map +1 -0
- package/build/text-agent-handlers/ports.js +3 -0
- package/build/{timeouts-manager.d.ts → timeout-manager/index.d.ts} +3 -3
- package/build/timeout-manager/index.d.ts.map +1 -0
- package/build/{timeouts-manager.js → timeout-manager/index.js} +1 -5
- package/build/token-storage/index.d.ts +4 -0
- package/build/token-storage/index.d.ts.map +1 -0
- package/build/token-storage/index.js +1 -0
- package/build/voice-agent-api/http-helpers.d.ts +13 -0
- package/build/voice-agent-api/http-helpers.d.ts.map +1 -0
- package/build/voice-agent-api/http-helpers.js +39 -0
- package/build/voice-agent-api/index.d.ts +6 -0
- package/build/voice-agent-api/index.d.ts.map +1 -0
- package/build/voice-agent-api/index.js +3 -0
- package/build/voice-agent-api/llm-completion-handler.d.ts +5 -0
- package/build/voice-agent-api/llm-completion-handler.d.ts.map +1 -0
- package/build/voice-agent-api/llm-completion-handler.js +75 -0
- package/build/voice-agent-api/logger.d.ts +3 -0
- package/build/voice-agent-api/logger.d.ts.map +1 -0
- package/build/voice-agent-api/logger.js +3 -0
- package/build/voice-agent-api/voice-http.d.ts +33 -0
- package/build/voice-agent-api/voice-http.d.ts.map +1 -0
- package/build/voice-agent-api/voice-http.js +370 -0
- package/package.json +49 -11
- package/build/analytics.d.ts +0 -42
- package/build/analytics.d.ts.map +0 -1
- package/build/analytics.js +0 -100
- package/build/context-cache.d.ts.map +0 -1
- package/build/interfaces/platform.d.ts +0 -41
- package/build/interfaces/platform.d.ts.map +0 -1
- package/build/interfaces/platform.js +0 -6
- package/build/interfaces/rc-voice.d.ts +0 -53
- package/build/interfaces/rc-voice.d.ts.map +0 -1
- package/build/interfaces/rc-voice.js +0 -2
- package/build/postgres-analytics-query.d.ts +0 -87
- package/build/postgres-analytics-query.d.ts.map +0 -1
- package/build/postgres-analytics-query.js +0 -384
- package/build/postgres-analytics.d.ts +0 -46
- package/build/postgres-analytics.d.ts.map +0 -1
- package/build/postgres-analytics.js +0 -282
- package/build/timeouts-manager.d.ts.map +0 -1
|
@@ -0,0 +1,2169 @@
|
|
|
1
|
+
import { ap as head, ao as ensure_array_like, a9 as attr_class, a8 as escape_html, ac as clsx, ae as attr, af as attr_style, R as derived, ab as attributes } from '../../../../../chunks/index.js-DczFGj-7.js';
|
|
2
|
+
import { B as Button } from '../../../../../chunks/Button.js-IbO6ojjD.js';
|
|
3
|
+
import { M as Modal } from '../../../../../chunks/Modal.js-BUDSUOER.js';
|
|
4
|
+
import { I as Input } from '../../../../../chunks/Input.js-V9tWKRFS.js';
|
|
5
|
+
import { o as onDestroy } from '../../../../../chunks/index-server.js-CALBgpac.js';
|
|
6
|
+
import { I as Icon$1, h as html } from '../../../../../chunks/Icon.js-DzsiLkia.js';
|
|
7
|
+
import '../../../../../chunks/state.svelte.js-DDOPLPl-.js';
|
|
8
|
+
import '../../../../../chunks/exports.js-8HOoaa4e.js';
|
|
9
|
+
import '../../../../../chunks/utils.js-BQzn9ikS.js';
|
|
10
|
+
import '../../../../../chunks/event.js-BfLhxAp5.js';
|
|
11
|
+
import '../../../../../chunks/root.js-CJvqqGUj.js';
|
|
12
|
+
import '../../../../../chunks/js-yaml.js-Dx-xfeGn.js';
|
|
13
|
+
import '../../../../../chunks/trpc-client.js-zIPF9ytu.js';
|
|
14
|
+
import { g as getEditWorkspaceContext } from '../../../../../chunks/edit-workspace-context.js-DGPpbvI5.js';
|
|
15
|
+
import { i as isMainStepName } from '../../../../../chunks/steps.js-DzZCg39h.js';
|
|
16
|
+
import '../../../../../chunks/uneval.js-5Y6J9rDU.js';
|
|
17
|
+
import '../../../../../chunks/shared-server.js-DaWdgxVh.js';
|
|
18
|
+
|
|
19
|
+
const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
20
|
+
const stringToIcon = (value, validate, allowSimpleName, provider = "") => {
|
|
21
|
+
const colonSeparated = value.split(":");
|
|
22
|
+
if (value.slice(0, 1) === "@") {
|
|
23
|
+
if (colonSeparated.length < 2 || colonSeparated.length > 3) return null;
|
|
24
|
+
provider = colonSeparated.shift().slice(1);
|
|
25
|
+
}
|
|
26
|
+
if (colonSeparated.length > 3 || !colonSeparated.length) return null;
|
|
27
|
+
if (colonSeparated.length > 1) {
|
|
28
|
+
const name2 = colonSeparated.pop();
|
|
29
|
+
const prefix = colonSeparated.pop();
|
|
30
|
+
const result = {
|
|
31
|
+
provider: colonSeparated.length > 0 ? colonSeparated[0] : provider,
|
|
32
|
+
prefix,
|
|
33
|
+
name: name2
|
|
34
|
+
};
|
|
35
|
+
return validate && !validateIconName(result) ? null : result;
|
|
36
|
+
}
|
|
37
|
+
const name = colonSeparated[0];
|
|
38
|
+
const dashSeparated = name.split("-");
|
|
39
|
+
if (dashSeparated.length > 1) {
|
|
40
|
+
const result = {
|
|
41
|
+
provider,
|
|
42
|
+
prefix: dashSeparated.shift(),
|
|
43
|
+
name: dashSeparated.join("-")
|
|
44
|
+
};
|
|
45
|
+
return validate && !validateIconName(result) ? null : result;
|
|
46
|
+
}
|
|
47
|
+
if (allowSimpleName && provider === "") {
|
|
48
|
+
const result = {
|
|
49
|
+
provider,
|
|
50
|
+
prefix: "",
|
|
51
|
+
name
|
|
52
|
+
};
|
|
53
|
+
return validate && !validateIconName(result, allowSimpleName) ? null : result;
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
};
|
|
57
|
+
const validateIconName = (icon, allowSimpleName) => {
|
|
58
|
+
if (!icon) return false;
|
|
59
|
+
return !!((allowSimpleName && icon.prefix === "" || !!icon.prefix) && !!icon.name);
|
|
60
|
+
};
|
|
61
|
+
function getIconsTree(data, names) {
|
|
62
|
+
const icons = data.icons;
|
|
63
|
+
const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
|
|
64
|
+
const resolved = /* @__PURE__ */ Object.create(null);
|
|
65
|
+
function resolve(name) {
|
|
66
|
+
if (icons[name]) return resolved[name] = [];
|
|
67
|
+
if (!(name in resolved)) {
|
|
68
|
+
resolved[name] = null;
|
|
69
|
+
const parent = aliases[name] && aliases[name].parent;
|
|
70
|
+
const value = parent && resolve(parent);
|
|
71
|
+
if (value) resolved[name] = [parent].concat(value);
|
|
72
|
+
}
|
|
73
|
+
return resolved[name];
|
|
74
|
+
}
|
|
75
|
+
Object.keys(icons).concat(Object.keys(aliases)).forEach(resolve);
|
|
76
|
+
return resolved;
|
|
77
|
+
}
|
|
78
|
+
const defaultIconDimensions = Object.freeze({
|
|
79
|
+
left: 0,
|
|
80
|
+
top: 0,
|
|
81
|
+
width: 16,
|
|
82
|
+
height: 16
|
|
83
|
+
});
|
|
84
|
+
const defaultIconTransformations = Object.freeze({
|
|
85
|
+
rotate: 0,
|
|
86
|
+
vFlip: false,
|
|
87
|
+
hFlip: false
|
|
88
|
+
});
|
|
89
|
+
const defaultIconProps = Object.freeze({
|
|
90
|
+
...defaultIconDimensions,
|
|
91
|
+
...defaultIconTransformations
|
|
92
|
+
});
|
|
93
|
+
const defaultExtendedIconProps = Object.freeze({
|
|
94
|
+
...defaultIconProps,
|
|
95
|
+
body: "",
|
|
96
|
+
hidden: false
|
|
97
|
+
});
|
|
98
|
+
function mergeIconTransformations(obj1, obj2) {
|
|
99
|
+
const result = {};
|
|
100
|
+
if (!obj1.hFlip !== !obj2.hFlip) result.hFlip = true;
|
|
101
|
+
if (!obj1.vFlip !== !obj2.vFlip) result.vFlip = true;
|
|
102
|
+
const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;
|
|
103
|
+
if (rotate) result.rotate = rotate;
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
function mergeIconData(parent, child) {
|
|
107
|
+
const result = mergeIconTransformations(parent, child);
|
|
108
|
+
for (const key in defaultExtendedIconProps) if (key in defaultIconTransformations) {
|
|
109
|
+
if (key in parent && !(key in result)) result[key] = defaultIconTransformations[key];
|
|
110
|
+
} else if (key in child) result[key] = child[key];
|
|
111
|
+
else if (key in parent) result[key] = parent[key];
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
function internalGetIconData(data, name, tree) {
|
|
115
|
+
const icons = data.icons;
|
|
116
|
+
const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
|
|
117
|
+
let currentProps = {};
|
|
118
|
+
function parse(name2) {
|
|
119
|
+
currentProps = mergeIconData(icons[name2] || aliases[name2], currentProps);
|
|
120
|
+
}
|
|
121
|
+
parse(name);
|
|
122
|
+
tree.forEach(parse);
|
|
123
|
+
return mergeIconData(data, currentProps);
|
|
124
|
+
}
|
|
125
|
+
function parseIconSet(data, callback) {
|
|
126
|
+
const names = [];
|
|
127
|
+
if (typeof data !== "object" || typeof data.icons !== "object") return names;
|
|
128
|
+
if (data.not_found instanceof Array) data.not_found.forEach((name) => {
|
|
129
|
+
callback(name, null);
|
|
130
|
+
names.push(name);
|
|
131
|
+
});
|
|
132
|
+
const tree = getIconsTree(data);
|
|
133
|
+
for (const name in tree) {
|
|
134
|
+
const item = tree[name];
|
|
135
|
+
if (item) {
|
|
136
|
+
callback(name, internalGetIconData(data, name, item));
|
|
137
|
+
names.push(name);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return names;
|
|
141
|
+
}
|
|
142
|
+
const optionalPropertyDefaults = {
|
|
143
|
+
provider: "",
|
|
144
|
+
aliases: {},
|
|
145
|
+
not_found: {},
|
|
146
|
+
...defaultIconDimensions
|
|
147
|
+
};
|
|
148
|
+
function checkOptionalProps(item, defaults) {
|
|
149
|
+
for (const prop in defaults) if (prop in item && typeof item[prop] !== typeof defaults[prop]) return false;
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
function quicklyValidateIconSet(obj) {
|
|
153
|
+
if (typeof obj !== "object" || obj === null) return null;
|
|
154
|
+
const data = obj;
|
|
155
|
+
if (typeof data.prefix !== "string" || !obj.icons || typeof obj.icons !== "object") return null;
|
|
156
|
+
if (!checkOptionalProps(obj, optionalPropertyDefaults)) return null;
|
|
157
|
+
const icons = data.icons;
|
|
158
|
+
for (const name in icons) {
|
|
159
|
+
const icon = icons[name];
|
|
160
|
+
if (!name || typeof icon.body !== "string" || !checkOptionalProps(icon, defaultExtendedIconProps)) return null;
|
|
161
|
+
}
|
|
162
|
+
const aliases = data.aliases || /* @__PURE__ */ Object.create(null);
|
|
163
|
+
for (const name in aliases) {
|
|
164
|
+
const icon = aliases[name];
|
|
165
|
+
const parent = icon.parent;
|
|
166
|
+
if (!name || typeof parent !== "string" || !icons[parent] && !aliases[parent] || !checkOptionalProps(icon, defaultExtendedIconProps)) return null;
|
|
167
|
+
}
|
|
168
|
+
return data;
|
|
169
|
+
}
|
|
170
|
+
const dataStorage = /* @__PURE__ */ Object.create(null);
|
|
171
|
+
function newStorage(provider, prefix) {
|
|
172
|
+
return {
|
|
173
|
+
provider,
|
|
174
|
+
prefix,
|
|
175
|
+
icons: /* @__PURE__ */ Object.create(null),
|
|
176
|
+
missing: /* @__PURE__ */ new Set()
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
function getStorage(provider, prefix) {
|
|
180
|
+
const providerStorage = dataStorage[provider] || (dataStorage[provider] = /* @__PURE__ */ Object.create(null));
|
|
181
|
+
return providerStorage[prefix] || (providerStorage[prefix] = newStorage(provider, prefix));
|
|
182
|
+
}
|
|
183
|
+
function addIconSet(storage2, data) {
|
|
184
|
+
if (!quicklyValidateIconSet(data)) return [];
|
|
185
|
+
return parseIconSet(data, (name, icon) => {
|
|
186
|
+
if (icon) storage2.icons[name] = icon;
|
|
187
|
+
else storage2.missing.add(name);
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function addIconToStorage(storage2, name, icon) {
|
|
191
|
+
try {
|
|
192
|
+
if (typeof icon.body === "string") {
|
|
193
|
+
storage2.icons[name] = { ...icon };
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
} catch (err) {
|
|
197
|
+
}
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
let simpleNames = false;
|
|
201
|
+
function allowSimpleNames(allow) {
|
|
202
|
+
if (typeof allow === "boolean") simpleNames = allow;
|
|
203
|
+
return simpleNames;
|
|
204
|
+
}
|
|
205
|
+
function getIconData(name) {
|
|
206
|
+
const icon = typeof name === "string" ? stringToIcon(name, true, simpleNames) : name;
|
|
207
|
+
if (icon) {
|
|
208
|
+
const storage2 = getStorage(icon.provider, icon.prefix);
|
|
209
|
+
const iconName = icon.name;
|
|
210
|
+
return storage2.icons[iconName] || (storage2.missing.has(iconName) ? null : void 0);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function addIcon(name, data) {
|
|
214
|
+
const icon = stringToIcon(name, true, simpleNames);
|
|
215
|
+
if (!icon) return false;
|
|
216
|
+
const storage2 = getStorage(icon.provider, icon.prefix);
|
|
217
|
+
if (data) return addIconToStorage(storage2, icon.name, data);
|
|
218
|
+
else {
|
|
219
|
+
storage2.missing.add(icon.name);
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function addCollection(data, provider) {
|
|
224
|
+
if (typeof data !== "object") return false;
|
|
225
|
+
if (typeof provider !== "string") provider = data.provider || "";
|
|
226
|
+
if (simpleNames && !provider && !data.prefix) {
|
|
227
|
+
let added = false;
|
|
228
|
+
if (quicklyValidateIconSet(data)) {
|
|
229
|
+
data.prefix = "";
|
|
230
|
+
parseIconSet(data, (name, icon) => {
|
|
231
|
+
if (addIcon(name, icon)) added = true;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
return added;
|
|
235
|
+
}
|
|
236
|
+
const prefix = data.prefix;
|
|
237
|
+
if (!validateIconName({
|
|
238
|
+
prefix,
|
|
239
|
+
name: "a"
|
|
240
|
+
})) return false;
|
|
241
|
+
return !!addIconSet(getStorage(provider, prefix), data);
|
|
242
|
+
}
|
|
243
|
+
const defaultIconSizeCustomisations = Object.freeze({
|
|
244
|
+
width: null,
|
|
245
|
+
height: null
|
|
246
|
+
});
|
|
247
|
+
const defaultIconCustomisations = Object.freeze({
|
|
248
|
+
...defaultIconSizeCustomisations,
|
|
249
|
+
...defaultIconTransformations
|
|
250
|
+
});
|
|
251
|
+
const unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
|
|
252
|
+
const unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
253
|
+
function calculateSize(size, ratio, precision) {
|
|
254
|
+
if (ratio === 1) return size;
|
|
255
|
+
precision = precision || 100;
|
|
256
|
+
if (typeof size === "number") return Math.ceil(size * ratio * precision) / precision;
|
|
257
|
+
if (typeof size !== "string") return size;
|
|
258
|
+
const oldParts = size.split(unitsSplit);
|
|
259
|
+
if (oldParts === null || !oldParts.length) return size;
|
|
260
|
+
const newParts = [];
|
|
261
|
+
let code = oldParts.shift();
|
|
262
|
+
let isNumber = unitsTest.test(code);
|
|
263
|
+
while (true) {
|
|
264
|
+
if (isNumber) {
|
|
265
|
+
const num = parseFloat(code);
|
|
266
|
+
if (isNaN(num)) newParts.push(code);
|
|
267
|
+
else newParts.push(Math.ceil(num * ratio * precision) / precision);
|
|
268
|
+
} else newParts.push(code);
|
|
269
|
+
code = oldParts.shift();
|
|
270
|
+
if (code === void 0) return newParts.join("");
|
|
271
|
+
isNumber = !isNumber;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
function splitSVGDefs(content, tag = "defs") {
|
|
275
|
+
let defs = "";
|
|
276
|
+
const index = content.indexOf("<" + tag);
|
|
277
|
+
while (index >= 0) {
|
|
278
|
+
const start = content.indexOf(">", index);
|
|
279
|
+
const end = content.indexOf("</" + tag);
|
|
280
|
+
if (start === -1 || end === -1) break;
|
|
281
|
+
const endEnd = content.indexOf(">", end);
|
|
282
|
+
if (endEnd === -1) break;
|
|
283
|
+
defs += content.slice(start + 1, end).trim();
|
|
284
|
+
content = content.slice(0, index).trim() + content.slice(endEnd + 1);
|
|
285
|
+
}
|
|
286
|
+
return {
|
|
287
|
+
defs,
|
|
288
|
+
content
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
function mergeDefsAndContent(defs, content) {
|
|
292
|
+
return defs ? "<defs>" + defs + "</defs>" + content : content;
|
|
293
|
+
}
|
|
294
|
+
function wrapSVGContent(body, start, end) {
|
|
295
|
+
const split = splitSVGDefs(body);
|
|
296
|
+
return mergeDefsAndContent(split.defs, start + split.content + end);
|
|
297
|
+
}
|
|
298
|
+
const isUnsetKeyword = (value) => value === "unset" || value === "undefined" || value === "none";
|
|
299
|
+
function iconToSVG(icon, customisations) {
|
|
300
|
+
const fullIcon = {
|
|
301
|
+
...defaultIconProps,
|
|
302
|
+
...icon
|
|
303
|
+
};
|
|
304
|
+
const fullCustomisations = {
|
|
305
|
+
...defaultIconCustomisations,
|
|
306
|
+
...customisations
|
|
307
|
+
};
|
|
308
|
+
const box = {
|
|
309
|
+
left: fullIcon.left,
|
|
310
|
+
top: fullIcon.top,
|
|
311
|
+
width: fullIcon.width,
|
|
312
|
+
height: fullIcon.height
|
|
313
|
+
};
|
|
314
|
+
let body = fullIcon.body;
|
|
315
|
+
[fullIcon, fullCustomisations].forEach((props) => {
|
|
316
|
+
const transformations = [];
|
|
317
|
+
const hFlip = props.hFlip;
|
|
318
|
+
const vFlip = props.vFlip;
|
|
319
|
+
let rotation = props.rotate;
|
|
320
|
+
if (hFlip) if (vFlip) rotation += 2;
|
|
321
|
+
else {
|
|
322
|
+
transformations.push("translate(" + (box.width + box.left).toString() + " " + (0 - box.top).toString() + ")");
|
|
323
|
+
transformations.push("scale(-1 1)");
|
|
324
|
+
box.top = box.left = 0;
|
|
325
|
+
}
|
|
326
|
+
else if (vFlip) {
|
|
327
|
+
transformations.push("translate(" + (0 - box.left).toString() + " " + (box.height + box.top).toString() + ")");
|
|
328
|
+
transformations.push("scale(1 -1)");
|
|
329
|
+
box.top = box.left = 0;
|
|
330
|
+
}
|
|
331
|
+
let tempValue;
|
|
332
|
+
if (rotation < 0) rotation -= Math.floor(rotation / 4) * 4;
|
|
333
|
+
rotation = rotation % 4;
|
|
334
|
+
switch (rotation) {
|
|
335
|
+
case 1:
|
|
336
|
+
tempValue = box.height / 2 + box.top;
|
|
337
|
+
transformations.unshift("rotate(90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
338
|
+
break;
|
|
339
|
+
case 2:
|
|
340
|
+
transformations.unshift("rotate(180 " + (box.width / 2 + box.left).toString() + " " + (box.height / 2 + box.top).toString() + ")");
|
|
341
|
+
break;
|
|
342
|
+
case 3:
|
|
343
|
+
tempValue = box.width / 2 + box.left;
|
|
344
|
+
transformations.unshift("rotate(-90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
if (rotation % 2 === 1) {
|
|
348
|
+
if (box.left !== box.top) {
|
|
349
|
+
tempValue = box.left;
|
|
350
|
+
box.left = box.top;
|
|
351
|
+
box.top = tempValue;
|
|
352
|
+
}
|
|
353
|
+
if (box.width !== box.height) {
|
|
354
|
+
tempValue = box.width;
|
|
355
|
+
box.width = box.height;
|
|
356
|
+
box.height = tempValue;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
if (transformations.length) body = wrapSVGContent(body, '<g transform="' + transformations.join(" ") + '">', "</g>");
|
|
360
|
+
});
|
|
361
|
+
const customisationsWidth = fullCustomisations.width;
|
|
362
|
+
const customisationsHeight = fullCustomisations.height;
|
|
363
|
+
const boxWidth = box.width;
|
|
364
|
+
const boxHeight = box.height;
|
|
365
|
+
let width;
|
|
366
|
+
let height;
|
|
367
|
+
if (customisationsWidth === null) {
|
|
368
|
+
height = customisationsHeight === null ? "1em" : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
|
|
369
|
+
width = calculateSize(height, boxWidth / boxHeight);
|
|
370
|
+
} else {
|
|
371
|
+
width = customisationsWidth === "auto" ? boxWidth : customisationsWidth;
|
|
372
|
+
height = customisationsHeight === null ? calculateSize(width, boxHeight / boxWidth) : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
|
|
373
|
+
}
|
|
374
|
+
const attributes2 = {};
|
|
375
|
+
const setAttr = (prop, value) => {
|
|
376
|
+
if (!isUnsetKeyword(value)) attributes2[prop] = value.toString();
|
|
377
|
+
};
|
|
378
|
+
setAttr("width", width);
|
|
379
|
+
setAttr("height", height);
|
|
380
|
+
const viewBox = [
|
|
381
|
+
box.left,
|
|
382
|
+
box.top,
|
|
383
|
+
boxWidth,
|
|
384
|
+
boxHeight
|
|
385
|
+
];
|
|
386
|
+
attributes2.viewBox = viewBox.join(" ");
|
|
387
|
+
return {
|
|
388
|
+
attributes: attributes2,
|
|
389
|
+
viewBox,
|
|
390
|
+
body
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
const regex = /\sid="(\S+)"/g;
|
|
394
|
+
const counters = /* @__PURE__ */ new Map();
|
|
395
|
+
function nextID(id) {
|
|
396
|
+
id = id.replace(/[0-9]+$/, "") || "a";
|
|
397
|
+
const count = counters.get(id) || 0;
|
|
398
|
+
counters.set(id, count + 1);
|
|
399
|
+
return count ? `${id}${count}` : id;
|
|
400
|
+
}
|
|
401
|
+
function replaceIDs(body) {
|
|
402
|
+
const ids = [];
|
|
403
|
+
let match;
|
|
404
|
+
while (match = regex.exec(body)) ids.push(match[1]);
|
|
405
|
+
if (!ids.length) return body;
|
|
406
|
+
const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
407
|
+
ids.forEach((id) => {
|
|
408
|
+
const newID = nextID(id);
|
|
409
|
+
const escapedID = id.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
410
|
+
body = body.replace(new RegExp('([#;"])(' + escapedID + ')([")]|\\.[a-z])', "g"), "$1" + newID + suffix + "$3");
|
|
411
|
+
});
|
|
412
|
+
body = body.replace(new RegExp(suffix, "g"), "");
|
|
413
|
+
return body;
|
|
414
|
+
}
|
|
415
|
+
const storage = /* @__PURE__ */ Object.create(null);
|
|
416
|
+
function setAPIModule(provider, item) {
|
|
417
|
+
storage[provider] = item;
|
|
418
|
+
}
|
|
419
|
+
function getAPIModule(provider) {
|
|
420
|
+
return storage[provider] || storage[""];
|
|
421
|
+
}
|
|
422
|
+
function createAPIConfig(source) {
|
|
423
|
+
let resources;
|
|
424
|
+
if (typeof source.resources === "string") resources = [source.resources];
|
|
425
|
+
else {
|
|
426
|
+
resources = source.resources;
|
|
427
|
+
if (!(resources instanceof Array) || !resources.length) return null;
|
|
428
|
+
}
|
|
429
|
+
return {
|
|
430
|
+
resources,
|
|
431
|
+
path: source.path || "/",
|
|
432
|
+
maxURL: source.maxURL || 500,
|
|
433
|
+
rotate: source.rotate || 750,
|
|
434
|
+
timeout: source.timeout || 5e3,
|
|
435
|
+
random: source.random === true,
|
|
436
|
+
index: source.index || 0,
|
|
437
|
+
dataAfterTimeout: source.dataAfterTimeout !== false
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
const configStorage = /* @__PURE__ */ Object.create(null);
|
|
441
|
+
const fallBackAPISources = ["https://api.simplesvg.com", "https://api.unisvg.com"];
|
|
442
|
+
const fallBackAPI = [];
|
|
443
|
+
while (fallBackAPISources.length > 0) if (fallBackAPISources.length === 1) fallBackAPI.push(fallBackAPISources.shift());
|
|
444
|
+
else if (Math.random() > 0.5) fallBackAPI.push(fallBackAPISources.shift());
|
|
445
|
+
else fallBackAPI.push(fallBackAPISources.pop());
|
|
446
|
+
configStorage[""] = createAPIConfig({ resources: ["https://api.iconify.design"].concat(fallBackAPI) });
|
|
447
|
+
function addAPIProvider(provider, customConfig) {
|
|
448
|
+
const config = createAPIConfig(customConfig);
|
|
449
|
+
if (config === null) return false;
|
|
450
|
+
configStorage[provider] = config;
|
|
451
|
+
return true;
|
|
452
|
+
}
|
|
453
|
+
function getAPIConfig(provider) {
|
|
454
|
+
return configStorage[provider];
|
|
455
|
+
}
|
|
456
|
+
const detectFetch = () => {
|
|
457
|
+
let callback;
|
|
458
|
+
try {
|
|
459
|
+
callback = fetch;
|
|
460
|
+
if (typeof callback === "function") return callback;
|
|
461
|
+
} catch (err) {
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
let fetchModule = detectFetch();
|
|
465
|
+
function calculateMaxLength(provider, prefix) {
|
|
466
|
+
const config = getAPIConfig(provider);
|
|
467
|
+
if (!config) return 0;
|
|
468
|
+
let result;
|
|
469
|
+
if (!config.maxURL) result = 0;
|
|
470
|
+
else {
|
|
471
|
+
let maxHostLength = 0;
|
|
472
|
+
config.resources.forEach((item) => {
|
|
473
|
+
maxHostLength = Math.max(maxHostLength, item.length);
|
|
474
|
+
});
|
|
475
|
+
const url = prefix + ".json?icons=";
|
|
476
|
+
result = config.maxURL - maxHostLength - config.path.length - url.length;
|
|
477
|
+
}
|
|
478
|
+
return result;
|
|
479
|
+
}
|
|
480
|
+
function shouldAbort(status) {
|
|
481
|
+
return status === 404;
|
|
482
|
+
}
|
|
483
|
+
const prepare = (provider, prefix, icons) => {
|
|
484
|
+
const results = [];
|
|
485
|
+
const maxLength = calculateMaxLength(provider, prefix);
|
|
486
|
+
const type = "icons";
|
|
487
|
+
let item = {
|
|
488
|
+
type,
|
|
489
|
+
provider,
|
|
490
|
+
prefix,
|
|
491
|
+
icons: []
|
|
492
|
+
};
|
|
493
|
+
let length = 0;
|
|
494
|
+
icons.forEach((name, index) => {
|
|
495
|
+
length += name.length + 1;
|
|
496
|
+
if (length >= maxLength && index > 0) {
|
|
497
|
+
results.push(item);
|
|
498
|
+
item = {
|
|
499
|
+
type,
|
|
500
|
+
provider,
|
|
501
|
+
prefix,
|
|
502
|
+
icons: []
|
|
503
|
+
};
|
|
504
|
+
length = name.length;
|
|
505
|
+
}
|
|
506
|
+
item.icons.push(name);
|
|
507
|
+
});
|
|
508
|
+
results.push(item);
|
|
509
|
+
return results;
|
|
510
|
+
};
|
|
511
|
+
function getPath(provider) {
|
|
512
|
+
if (typeof provider === "string") {
|
|
513
|
+
const config = getAPIConfig(provider);
|
|
514
|
+
if (config) return config.path;
|
|
515
|
+
}
|
|
516
|
+
return "/";
|
|
517
|
+
}
|
|
518
|
+
const send = (host, params, callback) => {
|
|
519
|
+
if (!fetchModule) {
|
|
520
|
+
callback("abort", 424);
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
let path = getPath(params.provider);
|
|
524
|
+
switch (params.type) {
|
|
525
|
+
case "icons": {
|
|
526
|
+
const prefix = params.prefix;
|
|
527
|
+
const iconsList = params.icons.join(",");
|
|
528
|
+
const urlParams = new URLSearchParams({ icons: iconsList });
|
|
529
|
+
path += prefix + ".json?" + urlParams.toString();
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
case "custom": {
|
|
533
|
+
const uri = params.uri;
|
|
534
|
+
path += uri.slice(0, 1) === "/" ? uri.slice(1) : uri;
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
default:
|
|
538
|
+
callback("abort", 400);
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
let defaultError = 503;
|
|
542
|
+
fetchModule(host + path).then((response) => {
|
|
543
|
+
const status = response.status;
|
|
544
|
+
if (status !== 200) {
|
|
545
|
+
setTimeout(() => {
|
|
546
|
+
callback(shouldAbort(status) ? "abort" : "next", status);
|
|
547
|
+
});
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
defaultError = 501;
|
|
551
|
+
return response.json();
|
|
552
|
+
}).then((data) => {
|
|
553
|
+
if (typeof data !== "object" || data === null) {
|
|
554
|
+
setTimeout(() => {
|
|
555
|
+
if (data === 404) callback("abort", data);
|
|
556
|
+
else callback("next", defaultError);
|
|
557
|
+
});
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
setTimeout(() => {
|
|
561
|
+
callback("success", data);
|
|
562
|
+
});
|
|
563
|
+
}).catch(() => {
|
|
564
|
+
callback("next", defaultError);
|
|
565
|
+
});
|
|
566
|
+
};
|
|
567
|
+
const fetchAPIModule = {
|
|
568
|
+
prepare,
|
|
569
|
+
send
|
|
570
|
+
};
|
|
571
|
+
function removeCallback(storages, id) {
|
|
572
|
+
storages.forEach((storage2) => {
|
|
573
|
+
const items = storage2.loaderCallbacks;
|
|
574
|
+
if (items) storage2.loaderCallbacks = items.filter((row) => row.id !== id);
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
function updateCallbacks(storage2) {
|
|
578
|
+
if (!storage2.pendingCallbacksFlag) {
|
|
579
|
+
storage2.pendingCallbacksFlag = true;
|
|
580
|
+
setTimeout(() => {
|
|
581
|
+
storage2.pendingCallbacksFlag = false;
|
|
582
|
+
const items = storage2.loaderCallbacks ? storage2.loaderCallbacks.slice(0) : [];
|
|
583
|
+
if (!items.length) return;
|
|
584
|
+
let hasPending = false;
|
|
585
|
+
const provider = storage2.provider;
|
|
586
|
+
const prefix = storage2.prefix;
|
|
587
|
+
items.forEach((item) => {
|
|
588
|
+
const icons = item.icons;
|
|
589
|
+
const oldLength = icons.pending.length;
|
|
590
|
+
icons.pending = icons.pending.filter((icon) => {
|
|
591
|
+
if (icon.prefix !== prefix) return true;
|
|
592
|
+
const name = icon.name;
|
|
593
|
+
if (storage2.icons[name]) icons.loaded.push({
|
|
594
|
+
provider,
|
|
595
|
+
prefix,
|
|
596
|
+
name
|
|
597
|
+
});
|
|
598
|
+
else if (storage2.missing.has(name)) icons.missing.push({
|
|
599
|
+
provider,
|
|
600
|
+
prefix,
|
|
601
|
+
name
|
|
602
|
+
});
|
|
603
|
+
else {
|
|
604
|
+
hasPending = true;
|
|
605
|
+
return true;
|
|
606
|
+
}
|
|
607
|
+
return false;
|
|
608
|
+
});
|
|
609
|
+
if (icons.pending.length !== oldLength) {
|
|
610
|
+
if (!hasPending) removeCallback([storage2], item.id);
|
|
611
|
+
item.callback(icons.loaded.slice(0), icons.missing.slice(0), icons.pending.slice(0), item.abort);
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
let idCounter = 0;
|
|
618
|
+
function storeCallback(callback, icons, pendingSources) {
|
|
619
|
+
const id = idCounter++;
|
|
620
|
+
const abort = removeCallback.bind(null, pendingSources, id);
|
|
621
|
+
if (!icons.pending.length) return abort;
|
|
622
|
+
const item = {
|
|
623
|
+
id,
|
|
624
|
+
icons,
|
|
625
|
+
callback,
|
|
626
|
+
abort
|
|
627
|
+
};
|
|
628
|
+
pendingSources.forEach((storage2) => {
|
|
629
|
+
(storage2.loaderCallbacks || (storage2.loaderCallbacks = [])).push(item);
|
|
630
|
+
});
|
|
631
|
+
return abort;
|
|
632
|
+
}
|
|
633
|
+
function sortIcons(icons) {
|
|
634
|
+
const result = {
|
|
635
|
+
loaded: [],
|
|
636
|
+
missing: [],
|
|
637
|
+
pending: []
|
|
638
|
+
};
|
|
639
|
+
const storage2 = /* @__PURE__ */ Object.create(null);
|
|
640
|
+
icons.sort((a, b) => {
|
|
641
|
+
if (a.provider !== b.provider) return a.provider.localeCompare(b.provider);
|
|
642
|
+
if (a.prefix !== b.prefix) return a.prefix.localeCompare(b.prefix);
|
|
643
|
+
return a.name.localeCompare(b.name);
|
|
644
|
+
});
|
|
645
|
+
let lastIcon = {
|
|
646
|
+
provider: "",
|
|
647
|
+
prefix: "",
|
|
648
|
+
name: ""
|
|
649
|
+
};
|
|
650
|
+
icons.forEach((icon) => {
|
|
651
|
+
if (lastIcon.name === icon.name && lastIcon.prefix === icon.prefix && lastIcon.provider === icon.provider) return;
|
|
652
|
+
lastIcon = icon;
|
|
653
|
+
const provider = icon.provider;
|
|
654
|
+
const prefix = icon.prefix;
|
|
655
|
+
const name = icon.name;
|
|
656
|
+
const providerStorage = storage2[provider] || (storage2[provider] = /* @__PURE__ */ Object.create(null));
|
|
657
|
+
const localStorage = providerStorage[prefix] || (providerStorage[prefix] = getStorage(provider, prefix));
|
|
658
|
+
let list;
|
|
659
|
+
if (name in localStorage.icons) list = result.loaded;
|
|
660
|
+
else if (prefix === "" || localStorage.missing.has(name)) list = result.missing;
|
|
661
|
+
else list = result.pending;
|
|
662
|
+
const item = {
|
|
663
|
+
provider,
|
|
664
|
+
prefix,
|
|
665
|
+
name
|
|
666
|
+
};
|
|
667
|
+
list.push(item);
|
|
668
|
+
});
|
|
669
|
+
return result;
|
|
670
|
+
}
|
|
671
|
+
function listToIcons(list, validate = true, simpleNames2 = false) {
|
|
672
|
+
const result = [];
|
|
673
|
+
list.forEach((item) => {
|
|
674
|
+
const icon = typeof item === "string" ? stringToIcon(item, validate, simpleNames2) : item;
|
|
675
|
+
if (icon) result.push(icon);
|
|
676
|
+
});
|
|
677
|
+
return result;
|
|
678
|
+
}
|
|
679
|
+
const defaultConfig = {
|
|
680
|
+
resources: [],
|
|
681
|
+
index: 0,
|
|
682
|
+
timeout: 2e3,
|
|
683
|
+
rotate: 750,
|
|
684
|
+
random: false,
|
|
685
|
+
dataAfterTimeout: false
|
|
686
|
+
};
|
|
687
|
+
function sendQuery(config, payload, query, done) {
|
|
688
|
+
const resourcesCount = config.resources.length;
|
|
689
|
+
const startIndex = config.random ? Math.floor(Math.random() * resourcesCount) : config.index;
|
|
690
|
+
let resources;
|
|
691
|
+
if (config.random) {
|
|
692
|
+
let list = config.resources.slice(0);
|
|
693
|
+
resources = [];
|
|
694
|
+
while (list.length > 1) {
|
|
695
|
+
const nextIndex = Math.floor(Math.random() * list.length);
|
|
696
|
+
resources.push(list[nextIndex]);
|
|
697
|
+
list = list.slice(0, nextIndex).concat(list.slice(nextIndex + 1));
|
|
698
|
+
}
|
|
699
|
+
resources = resources.concat(list);
|
|
700
|
+
} else resources = config.resources.slice(startIndex).concat(config.resources.slice(0, startIndex));
|
|
701
|
+
const startTime = Date.now();
|
|
702
|
+
let status = "pending";
|
|
703
|
+
let queriesSent = 0;
|
|
704
|
+
let lastError;
|
|
705
|
+
let timer = null;
|
|
706
|
+
let queue = [];
|
|
707
|
+
let doneCallbacks = [];
|
|
708
|
+
if (typeof done === "function") doneCallbacks.push(done);
|
|
709
|
+
function resetTimer() {
|
|
710
|
+
if (timer) {
|
|
711
|
+
clearTimeout(timer);
|
|
712
|
+
timer = null;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
function abort() {
|
|
716
|
+
if (status === "pending") status = "aborted";
|
|
717
|
+
resetTimer();
|
|
718
|
+
queue.forEach((item) => {
|
|
719
|
+
if (item.status === "pending") item.status = "aborted";
|
|
720
|
+
});
|
|
721
|
+
queue = [];
|
|
722
|
+
}
|
|
723
|
+
function subscribe(callback, overwrite) {
|
|
724
|
+
if (overwrite) doneCallbacks = [];
|
|
725
|
+
if (typeof callback === "function") doneCallbacks.push(callback);
|
|
726
|
+
}
|
|
727
|
+
function getQueryStatus() {
|
|
728
|
+
return {
|
|
729
|
+
startTime,
|
|
730
|
+
payload,
|
|
731
|
+
status,
|
|
732
|
+
queriesSent,
|
|
733
|
+
queriesPending: queue.length,
|
|
734
|
+
subscribe,
|
|
735
|
+
abort
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
function failQuery() {
|
|
739
|
+
status = "failed";
|
|
740
|
+
doneCallbacks.forEach((callback) => {
|
|
741
|
+
callback(void 0, lastError);
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
function clearQueue() {
|
|
745
|
+
queue.forEach((item) => {
|
|
746
|
+
if (item.status === "pending") item.status = "aborted";
|
|
747
|
+
});
|
|
748
|
+
queue = [];
|
|
749
|
+
}
|
|
750
|
+
function moduleResponse(item, response, data) {
|
|
751
|
+
const isError = response !== "success";
|
|
752
|
+
queue = queue.filter((queued) => queued !== item);
|
|
753
|
+
switch (status) {
|
|
754
|
+
case "pending":
|
|
755
|
+
break;
|
|
756
|
+
case "failed":
|
|
757
|
+
if (isError || !config.dataAfterTimeout) return;
|
|
758
|
+
break;
|
|
759
|
+
default:
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
if (response === "abort") {
|
|
763
|
+
lastError = data;
|
|
764
|
+
failQuery();
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
if (isError) {
|
|
768
|
+
lastError = data;
|
|
769
|
+
if (!queue.length) if (!resources.length) failQuery();
|
|
770
|
+
else execNext();
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
resetTimer();
|
|
774
|
+
clearQueue();
|
|
775
|
+
if (!config.random) {
|
|
776
|
+
const index = config.resources.indexOf(item.resource);
|
|
777
|
+
if (index !== -1 && index !== config.index) config.index = index;
|
|
778
|
+
}
|
|
779
|
+
status = "completed";
|
|
780
|
+
doneCallbacks.forEach((callback) => {
|
|
781
|
+
callback(data);
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
function execNext() {
|
|
785
|
+
if (status !== "pending") return;
|
|
786
|
+
resetTimer();
|
|
787
|
+
const resource = resources.shift();
|
|
788
|
+
if (resource === void 0) {
|
|
789
|
+
if (queue.length) {
|
|
790
|
+
timer = setTimeout(() => {
|
|
791
|
+
resetTimer();
|
|
792
|
+
if (status === "pending") {
|
|
793
|
+
clearQueue();
|
|
794
|
+
failQuery();
|
|
795
|
+
}
|
|
796
|
+
}, config.timeout);
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
failQuery();
|
|
800
|
+
return;
|
|
801
|
+
}
|
|
802
|
+
const item = {
|
|
803
|
+
status: "pending",
|
|
804
|
+
resource,
|
|
805
|
+
callback: (status2, data) => {
|
|
806
|
+
moduleResponse(item, status2, data);
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
queue.push(item);
|
|
810
|
+
queriesSent++;
|
|
811
|
+
timer = setTimeout(execNext, config.rotate);
|
|
812
|
+
query(resource, payload, item.callback);
|
|
813
|
+
}
|
|
814
|
+
setTimeout(execNext);
|
|
815
|
+
return getQueryStatus;
|
|
816
|
+
}
|
|
817
|
+
function initRedundancy(cfg) {
|
|
818
|
+
const config = {
|
|
819
|
+
...defaultConfig,
|
|
820
|
+
...cfg
|
|
821
|
+
};
|
|
822
|
+
let queries = [];
|
|
823
|
+
function cleanup() {
|
|
824
|
+
queries = queries.filter((item) => item().status === "pending");
|
|
825
|
+
}
|
|
826
|
+
function query(payload, queryCallback, doneCallback) {
|
|
827
|
+
const query2 = sendQuery(config, payload, queryCallback, (data, error) => {
|
|
828
|
+
cleanup();
|
|
829
|
+
if (doneCallback) doneCallback(data, error);
|
|
830
|
+
});
|
|
831
|
+
queries.push(query2);
|
|
832
|
+
return query2;
|
|
833
|
+
}
|
|
834
|
+
function find(callback) {
|
|
835
|
+
return queries.find((value) => {
|
|
836
|
+
return callback(value);
|
|
837
|
+
}) || null;
|
|
838
|
+
}
|
|
839
|
+
return {
|
|
840
|
+
query,
|
|
841
|
+
find,
|
|
842
|
+
setIndex: (index) => {
|
|
843
|
+
config.index = index;
|
|
844
|
+
},
|
|
845
|
+
getIndex: () => config.index,
|
|
846
|
+
cleanup
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
function emptyCallback$1() {
|
|
850
|
+
}
|
|
851
|
+
const redundancyCache = /* @__PURE__ */ Object.create(null);
|
|
852
|
+
function getRedundancyCache(provider) {
|
|
853
|
+
if (!redundancyCache[provider]) {
|
|
854
|
+
const config = getAPIConfig(provider);
|
|
855
|
+
if (!config) return;
|
|
856
|
+
redundancyCache[provider] = {
|
|
857
|
+
config,
|
|
858
|
+
redundancy: initRedundancy(config)
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
return redundancyCache[provider];
|
|
862
|
+
}
|
|
863
|
+
function sendAPIQuery(target, query, callback) {
|
|
864
|
+
let redundancy;
|
|
865
|
+
let send2;
|
|
866
|
+
if (typeof target === "string") {
|
|
867
|
+
const api = getAPIModule(target);
|
|
868
|
+
if (!api) {
|
|
869
|
+
callback(void 0, 424);
|
|
870
|
+
return emptyCallback$1;
|
|
871
|
+
}
|
|
872
|
+
send2 = api.send;
|
|
873
|
+
const cached = getRedundancyCache(target);
|
|
874
|
+
if (cached) redundancy = cached.redundancy;
|
|
875
|
+
} else {
|
|
876
|
+
const config = createAPIConfig(target);
|
|
877
|
+
if (config) {
|
|
878
|
+
redundancy = initRedundancy(config);
|
|
879
|
+
const api = getAPIModule(target.resources ? target.resources[0] : "");
|
|
880
|
+
if (api) send2 = api.send;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
if (!redundancy || !send2) {
|
|
884
|
+
callback(void 0, 424);
|
|
885
|
+
return emptyCallback$1;
|
|
886
|
+
}
|
|
887
|
+
return redundancy.query(query, send2, callback)().abort;
|
|
888
|
+
}
|
|
889
|
+
function emptyCallback() {
|
|
890
|
+
}
|
|
891
|
+
function loadedNewIcons(storage2) {
|
|
892
|
+
if (!storage2.iconsLoaderFlag) {
|
|
893
|
+
storage2.iconsLoaderFlag = true;
|
|
894
|
+
setTimeout(() => {
|
|
895
|
+
storage2.iconsLoaderFlag = false;
|
|
896
|
+
updateCallbacks(storage2);
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
function checkIconNamesForAPI(icons) {
|
|
901
|
+
const valid = [];
|
|
902
|
+
const invalid = [];
|
|
903
|
+
icons.forEach((name) => {
|
|
904
|
+
(name.match(matchIconName) ? valid : invalid).push(name);
|
|
905
|
+
});
|
|
906
|
+
return {
|
|
907
|
+
valid,
|
|
908
|
+
invalid
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
function parseLoaderResponse(storage2, icons, data) {
|
|
912
|
+
function checkMissing() {
|
|
913
|
+
const pending = storage2.pendingIcons;
|
|
914
|
+
icons.forEach((name) => {
|
|
915
|
+
if (pending) pending.delete(name);
|
|
916
|
+
if (!storage2.icons[name]) storage2.missing.add(name);
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
if (data && typeof data === "object") try {
|
|
920
|
+
if (!addIconSet(storage2, data).length) {
|
|
921
|
+
checkMissing();
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
} catch (err) {
|
|
925
|
+
console.error(err);
|
|
926
|
+
}
|
|
927
|
+
checkMissing();
|
|
928
|
+
loadedNewIcons(storage2);
|
|
929
|
+
}
|
|
930
|
+
function parsePossiblyAsyncResponse(response, callback) {
|
|
931
|
+
if (response instanceof Promise) response.then((data) => {
|
|
932
|
+
callback(data);
|
|
933
|
+
}).catch(() => {
|
|
934
|
+
callback(null);
|
|
935
|
+
});
|
|
936
|
+
else callback(response);
|
|
937
|
+
}
|
|
938
|
+
function loadNewIcons(storage2, icons) {
|
|
939
|
+
if (!storage2.iconsToLoad) storage2.iconsToLoad = icons;
|
|
940
|
+
else storage2.iconsToLoad = storage2.iconsToLoad.concat(icons).sort();
|
|
941
|
+
if (!storage2.iconsQueueFlag) {
|
|
942
|
+
storage2.iconsQueueFlag = true;
|
|
943
|
+
setTimeout(() => {
|
|
944
|
+
storage2.iconsQueueFlag = false;
|
|
945
|
+
const { provider, prefix } = storage2;
|
|
946
|
+
const icons2 = storage2.iconsToLoad;
|
|
947
|
+
delete storage2.iconsToLoad;
|
|
948
|
+
if (!icons2 || !icons2.length) return;
|
|
949
|
+
const customIconLoader = storage2.loadIcon;
|
|
950
|
+
if (storage2.loadIcons && (icons2.length > 1 || !customIconLoader)) {
|
|
951
|
+
parsePossiblyAsyncResponse(storage2.loadIcons(icons2, prefix, provider), (data) => {
|
|
952
|
+
parseLoaderResponse(storage2, icons2, data);
|
|
953
|
+
});
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
956
|
+
if (customIconLoader) {
|
|
957
|
+
icons2.forEach((name) => {
|
|
958
|
+
parsePossiblyAsyncResponse(customIconLoader(name, prefix, provider), (data) => {
|
|
959
|
+
parseLoaderResponse(storage2, [name], data ? {
|
|
960
|
+
prefix,
|
|
961
|
+
icons: { [name]: data }
|
|
962
|
+
} : null);
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
return;
|
|
966
|
+
}
|
|
967
|
+
const { valid, invalid } = checkIconNamesForAPI(icons2);
|
|
968
|
+
if (invalid.length) parseLoaderResponse(storage2, invalid, null);
|
|
969
|
+
if (!valid.length) return;
|
|
970
|
+
const api = prefix.match(matchIconName) ? getAPIModule(provider) : null;
|
|
971
|
+
if (!api) {
|
|
972
|
+
parseLoaderResponse(storage2, valid, null);
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
api.prepare(provider, prefix, valid).forEach((item) => {
|
|
976
|
+
sendAPIQuery(provider, item, (data) => {
|
|
977
|
+
parseLoaderResponse(storage2, item.icons, data);
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
const loadIcons = (icons, callback) => {
|
|
984
|
+
const sortedIcons = sortIcons(listToIcons(icons, true, allowSimpleNames()));
|
|
985
|
+
if (!sortedIcons.pending.length) {
|
|
986
|
+
let callCallback = true;
|
|
987
|
+
if (callback) setTimeout(() => {
|
|
988
|
+
if (callCallback) callback(sortedIcons.loaded, sortedIcons.missing, sortedIcons.pending, emptyCallback);
|
|
989
|
+
});
|
|
990
|
+
return () => {
|
|
991
|
+
callCallback = false;
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
const newIcons = /* @__PURE__ */ Object.create(null);
|
|
995
|
+
const sources = [];
|
|
996
|
+
let lastProvider, lastPrefix;
|
|
997
|
+
sortedIcons.pending.forEach((icon) => {
|
|
998
|
+
const { provider, prefix } = icon;
|
|
999
|
+
if (prefix === lastPrefix && provider === lastProvider) return;
|
|
1000
|
+
lastProvider = provider;
|
|
1001
|
+
lastPrefix = prefix;
|
|
1002
|
+
sources.push(getStorage(provider, prefix));
|
|
1003
|
+
const providerNewIcons = newIcons[provider] || (newIcons[provider] = /* @__PURE__ */ Object.create(null));
|
|
1004
|
+
if (!providerNewIcons[prefix]) providerNewIcons[prefix] = [];
|
|
1005
|
+
});
|
|
1006
|
+
sortedIcons.pending.forEach((icon) => {
|
|
1007
|
+
const { provider, prefix, name } = icon;
|
|
1008
|
+
const storage2 = getStorage(provider, prefix);
|
|
1009
|
+
const pendingQueue = storage2.pendingIcons || (storage2.pendingIcons = /* @__PURE__ */ new Set());
|
|
1010
|
+
if (!pendingQueue.has(name)) {
|
|
1011
|
+
pendingQueue.add(name);
|
|
1012
|
+
newIcons[provider][prefix].push(name);
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
1015
|
+
sources.forEach((storage2) => {
|
|
1016
|
+
const list = newIcons[storage2.provider][storage2.prefix];
|
|
1017
|
+
if (list.length) loadNewIcons(storage2, list);
|
|
1018
|
+
});
|
|
1019
|
+
return callback ? storeCallback(callback, sortedIcons, sources) : emptyCallback;
|
|
1020
|
+
};
|
|
1021
|
+
function mergeCustomisations(defaults, item) {
|
|
1022
|
+
const result = { ...defaults };
|
|
1023
|
+
for (const key in item) {
|
|
1024
|
+
const value = item[key];
|
|
1025
|
+
const valueType = typeof value;
|
|
1026
|
+
if (key in defaultIconSizeCustomisations) {
|
|
1027
|
+
if (value === null || value && (valueType === "string" || valueType === "number")) result[key] = value;
|
|
1028
|
+
} else if (valueType === typeof result[key]) result[key] = key === "rotate" ? value % 4 : value;
|
|
1029
|
+
}
|
|
1030
|
+
return result;
|
|
1031
|
+
}
|
|
1032
|
+
const separator = /[\s,]+/;
|
|
1033
|
+
function flipFromString(custom, flip) {
|
|
1034
|
+
flip.split(separator).forEach((str) => {
|
|
1035
|
+
switch (str.trim()) {
|
|
1036
|
+
case "horizontal":
|
|
1037
|
+
custom.hFlip = true;
|
|
1038
|
+
break;
|
|
1039
|
+
case "vertical":
|
|
1040
|
+
custom.vFlip = true;
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
function rotateFromString(value, defaultValue = 0) {
|
|
1046
|
+
const units = value.replace(/^-?[0-9.]*/, "");
|
|
1047
|
+
function cleanup(value2) {
|
|
1048
|
+
while (value2 < 0) value2 += 4;
|
|
1049
|
+
return value2 % 4;
|
|
1050
|
+
}
|
|
1051
|
+
if (units === "") {
|
|
1052
|
+
const num = parseInt(value);
|
|
1053
|
+
return isNaN(num) ? 0 : cleanup(num);
|
|
1054
|
+
} else if (units !== value) {
|
|
1055
|
+
let split = 0;
|
|
1056
|
+
switch (units) {
|
|
1057
|
+
case "%":
|
|
1058
|
+
split = 25;
|
|
1059
|
+
break;
|
|
1060
|
+
case "deg":
|
|
1061
|
+
split = 90;
|
|
1062
|
+
}
|
|
1063
|
+
if (split) {
|
|
1064
|
+
let num = parseFloat(value.slice(0, value.length - units.length));
|
|
1065
|
+
if (isNaN(num)) return 0;
|
|
1066
|
+
num = num / split;
|
|
1067
|
+
return num % 1 === 0 ? cleanup(num) : 0;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
return defaultValue;
|
|
1071
|
+
}
|
|
1072
|
+
function iconToHTML(body, attributes2) {
|
|
1073
|
+
let renderAttribsHTML = body.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1074
|
+
for (const attr2 in attributes2) renderAttribsHTML += " " + attr2 + '="' + attributes2[attr2] + '"';
|
|
1075
|
+
return '<svg xmlns="http://www.w3.org/2000/svg"' + renderAttribsHTML + ">" + body + "</svg>";
|
|
1076
|
+
}
|
|
1077
|
+
function encodeSVGforURL(svg) {
|
|
1078
|
+
return svg.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1079
|
+
}
|
|
1080
|
+
function svgToData(svg) {
|
|
1081
|
+
return "data:image/svg+xml," + encodeSVGforURL(svg);
|
|
1082
|
+
}
|
|
1083
|
+
function svgToURL(svg) {
|
|
1084
|
+
return 'url("' + svgToData(svg) + '")';
|
|
1085
|
+
}
|
|
1086
|
+
const defaultExtendedIconCustomisations = {
|
|
1087
|
+
...defaultIconCustomisations,
|
|
1088
|
+
inline: false
|
|
1089
|
+
};
|
|
1090
|
+
const svgDefaults = {
|
|
1091
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
1092
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1093
|
+
"aria-hidden": true,
|
|
1094
|
+
"role": "img"
|
|
1095
|
+
};
|
|
1096
|
+
const commonProps = {
|
|
1097
|
+
display: "inline-block"
|
|
1098
|
+
};
|
|
1099
|
+
const monotoneProps = {
|
|
1100
|
+
"background-color": "currentColor"
|
|
1101
|
+
};
|
|
1102
|
+
const coloredProps = {
|
|
1103
|
+
"background-color": "transparent"
|
|
1104
|
+
};
|
|
1105
|
+
const propsToAdd = {
|
|
1106
|
+
image: "var(--svg)",
|
|
1107
|
+
repeat: "no-repeat",
|
|
1108
|
+
size: "100% 100%"
|
|
1109
|
+
};
|
|
1110
|
+
const propsToAddTo = {
|
|
1111
|
+
"-webkit-mask": monotoneProps,
|
|
1112
|
+
"mask": monotoneProps,
|
|
1113
|
+
"background": coloredProps
|
|
1114
|
+
};
|
|
1115
|
+
for (const prefix in propsToAddTo) {
|
|
1116
|
+
const list = propsToAddTo[prefix];
|
|
1117
|
+
for (const prop in propsToAdd) {
|
|
1118
|
+
list[prefix + "-" + prop] = propsToAdd[prop];
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
function fixSize(value) {
|
|
1122
|
+
return value + (value.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1123
|
+
}
|
|
1124
|
+
function render(icon, props) {
|
|
1125
|
+
const customisations = mergeCustomisations(defaultExtendedIconCustomisations, props);
|
|
1126
|
+
const mode = props.mode || "svg";
|
|
1127
|
+
const componentProps = mode === "svg" ? { ...svgDefaults } : {};
|
|
1128
|
+
if (icon.body.indexOf("xlink:") === -1) {
|
|
1129
|
+
delete componentProps["xmlns:xlink"];
|
|
1130
|
+
}
|
|
1131
|
+
let style = typeof props.style === "string" ? props.style : "";
|
|
1132
|
+
for (let key in props) {
|
|
1133
|
+
const value = props[key];
|
|
1134
|
+
if (value === void 0) {
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1137
|
+
switch (key) {
|
|
1138
|
+
case "icon":
|
|
1139
|
+
case "style":
|
|
1140
|
+
case "onLoad":
|
|
1141
|
+
case "mode":
|
|
1142
|
+
case "ssr":
|
|
1143
|
+
break;
|
|
1144
|
+
case "inline":
|
|
1145
|
+
case "hFlip":
|
|
1146
|
+
case "vFlip":
|
|
1147
|
+
customisations[key] = value === true || value === "true" || value === 1;
|
|
1148
|
+
break;
|
|
1149
|
+
case "flip":
|
|
1150
|
+
if (typeof value === "string") {
|
|
1151
|
+
flipFromString(customisations, value);
|
|
1152
|
+
}
|
|
1153
|
+
break;
|
|
1154
|
+
case "color":
|
|
1155
|
+
style = style + (style.length > 0 && style.trim().slice(-1) !== ";" ? ";" : "") + "color: " + value + "; ";
|
|
1156
|
+
break;
|
|
1157
|
+
case "rotate":
|
|
1158
|
+
if (typeof value === "string") {
|
|
1159
|
+
customisations[key] = rotateFromString(value);
|
|
1160
|
+
} else if (typeof value === "number") {
|
|
1161
|
+
customisations[key] = value;
|
|
1162
|
+
}
|
|
1163
|
+
break;
|
|
1164
|
+
case "ariaHidden":
|
|
1165
|
+
case "aria-hidden":
|
|
1166
|
+
if (value !== true && value !== "true") {
|
|
1167
|
+
delete componentProps["aria-hidden"];
|
|
1168
|
+
}
|
|
1169
|
+
break;
|
|
1170
|
+
default:
|
|
1171
|
+
if (key.slice(0, 3) === "on:") {
|
|
1172
|
+
break;
|
|
1173
|
+
}
|
|
1174
|
+
if (defaultExtendedIconCustomisations[key] === void 0) {
|
|
1175
|
+
componentProps[key] = value;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
const item = iconToSVG(icon, customisations);
|
|
1180
|
+
const renderAttribs = item.attributes;
|
|
1181
|
+
if (customisations.inline) {
|
|
1182
|
+
style = "vertical-align: -0.125em; " + style;
|
|
1183
|
+
}
|
|
1184
|
+
if (mode === "svg") {
|
|
1185
|
+
Object.assign(componentProps, renderAttribs);
|
|
1186
|
+
if (style !== "") {
|
|
1187
|
+
componentProps.style = style;
|
|
1188
|
+
}
|
|
1189
|
+
return {
|
|
1190
|
+
svg: true,
|
|
1191
|
+
attributes: componentProps,
|
|
1192
|
+
body: replaceIDs(item.body)
|
|
1193
|
+
};
|
|
1194
|
+
}
|
|
1195
|
+
const { body, width, height } = icon;
|
|
1196
|
+
const useMask = mode === "mask" || (mode === "bg" ? false : body.indexOf("currentColor") !== -1);
|
|
1197
|
+
const html2 = iconToHTML(body, {
|
|
1198
|
+
...renderAttribs,
|
|
1199
|
+
width: width + "",
|
|
1200
|
+
height: height + ""
|
|
1201
|
+
});
|
|
1202
|
+
const url = svgToURL(html2);
|
|
1203
|
+
const styles = {
|
|
1204
|
+
"--svg": url
|
|
1205
|
+
};
|
|
1206
|
+
const size = (prop) => {
|
|
1207
|
+
const value = renderAttribs[prop];
|
|
1208
|
+
if (value) {
|
|
1209
|
+
styles[prop] = fixSize(value);
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
size("width");
|
|
1213
|
+
size("height");
|
|
1214
|
+
Object.assign(styles, commonProps, useMask ? monotoneProps : coloredProps);
|
|
1215
|
+
let customStyle = "";
|
|
1216
|
+
for (const key in styles) {
|
|
1217
|
+
customStyle += key + ": " + styles[key] + ";";
|
|
1218
|
+
}
|
|
1219
|
+
componentProps.style = customStyle + style;
|
|
1220
|
+
return {
|
|
1221
|
+
svg: false,
|
|
1222
|
+
attributes: componentProps
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
allowSimpleNames(true);
|
|
1226
|
+
setAPIModule("", fetchAPIModule);
|
|
1227
|
+
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
|
1228
|
+
const _window = window;
|
|
1229
|
+
if (_window.IconifyPreload !== void 0) {
|
|
1230
|
+
const preload = _window.IconifyPreload;
|
|
1231
|
+
const err = "Invalid IconifyPreload syntax.";
|
|
1232
|
+
if (typeof preload === "object" && preload !== null) {
|
|
1233
|
+
(preload instanceof Array ? preload : [preload]).forEach((item) => {
|
|
1234
|
+
try {
|
|
1235
|
+
if (
|
|
1236
|
+
// Check if item is an object and not null/array
|
|
1237
|
+
typeof item !== "object" || item === null || item instanceof Array || // Check for 'icons' and 'prefix'
|
|
1238
|
+
typeof item.icons !== "object" || typeof item.prefix !== "string" || // Add icon set
|
|
1239
|
+
!addCollection(item)
|
|
1240
|
+
) {
|
|
1241
|
+
console.error(err);
|
|
1242
|
+
}
|
|
1243
|
+
} catch (e) {
|
|
1244
|
+
console.error(err);
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
if (_window.IconifyProviders !== void 0) {
|
|
1250
|
+
const providers = _window.IconifyProviders;
|
|
1251
|
+
if (typeof providers === "object" && providers !== null) {
|
|
1252
|
+
for (let key in providers) {
|
|
1253
|
+
const err = "IconifyProviders[" + key + "] is invalid.";
|
|
1254
|
+
try {
|
|
1255
|
+
const value = providers[key];
|
|
1256
|
+
if (typeof value !== "object" || !value || value.resources === void 0) {
|
|
1257
|
+
continue;
|
|
1258
|
+
}
|
|
1259
|
+
if (!addAPIProvider(key, value)) {
|
|
1260
|
+
console.error(err);
|
|
1261
|
+
}
|
|
1262
|
+
} catch (e) {
|
|
1263
|
+
console.error(err);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
function isSSR() {
|
|
1270
|
+
try {
|
|
1271
|
+
return typeof window !== "object";
|
|
1272
|
+
} catch (err) {
|
|
1273
|
+
return true;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
function checkIconState(icon, state, callback, onload) {
|
|
1277
|
+
function abortLoading() {
|
|
1278
|
+
if (state.loading) {
|
|
1279
|
+
state.loading.abort();
|
|
1280
|
+
state.loading = null;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
if (typeof icon === "object" && icon !== null && typeof icon.body === "string") {
|
|
1284
|
+
state.name = "";
|
|
1285
|
+
abortLoading();
|
|
1286
|
+
return { data: { ...defaultIconProps, ...icon } };
|
|
1287
|
+
}
|
|
1288
|
+
let iconName;
|
|
1289
|
+
if (typeof icon !== "string" || (iconName = stringToIcon(icon, false, true)) === null) {
|
|
1290
|
+
abortLoading();
|
|
1291
|
+
return null;
|
|
1292
|
+
}
|
|
1293
|
+
const data = getIconData(iconName);
|
|
1294
|
+
if (!data) {
|
|
1295
|
+
if (!isSSR() && (!state.loading || state.loading.name !== icon)) {
|
|
1296
|
+
abortLoading();
|
|
1297
|
+
state.name = "";
|
|
1298
|
+
state.loading = {
|
|
1299
|
+
name: icon,
|
|
1300
|
+
abort: loadIcons([iconName], callback)
|
|
1301
|
+
};
|
|
1302
|
+
}
|
|
1303
|
+
return null;
|
|
1304
|
+
}
|
|
1305
|
+
abortLoading();
|
|
1306
|
+
if (state.name !== icon) {
|
|
1307
|
+
state.name = icon;
|
|
1308
|
+
if (onload && !state.destroyed) {
|
|
1309
|
+
setTimeout(() => {
|
|
1310
|
+
onload(icon);
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
const classes = ["iconify"];
|
|
1315
|
+
if (iconName.prefix !== "") {
|
|
1316
|
+
classes.push("iconify--" + iconName.prefix);
|
|
1317
|
+
}
|
|
1318
|
+
if (iconName.provider !== "") {
|
|
1319
|
+
classes.push("iconify--" + iconName.provider);
|
|
1320
|
+
}
|
|
1321
|
+
return { data, classes };
|
|
1322
|
+
}
|
|
1323
|
+
function generateIcon(icon, props) {
|
|
1324
|
+
return icon ? render({
|
|
1325
|
+
...defaultIconProps,
|
|
1326
|
+
...icon
|
|
1327
|
+
}, props) : null;
|
|
1328
|
+
}
|
|
1329
|
+
function Icon($$renderer, $$props) {
|
|
1330
|
+
$$renderer.component(($$renderer2) => {
|
|
1331
|
+
const iconState = {
|
|
1332
|
+
// Last icon name
|
|
1333
|
+
name: "",
|
|
1334
|
+
// Loading status
|
|
1335
|
+
loading: null,
|
|
1336
|
+
// Destroyed status
|
|
1337
|
+
destroyed: false
|
|
1338
|
+
};
|
|
1339
|
+
const { $$slots, $$events, ...props } = $$props;
|
|
1340
|
+
let iconData = derived(() => {
|
|
1341
|
+
return checkIconState(props.icon, iconState, loaded, props.onload);
|
|
1342
|
+
});
|
|
1343
|
+
let data = derived(() => {
|
|
1344
|
+
const generatedData = iconData() ? generateIcon(iconData().data, props) : null;
|
|
1345
|
+
if (generatedData && iconData().classes && props["class"] === void 0) {
|
|
1346
|
+
generatedData.attributes["class"] = (typeof props["class"] === "string" ? props["class"] + " " : "") + iconData().classes.join(" ");
|
|
1347
|
+
}
|
|
1348
|
+
return generatedData;
|
|
1349
|
+
});
|
|
1350
|
+
function loaded() {
|
|
1351
|
+
}
|
|
1352
|
+
onDestroy(() => {
|
|
1353
|
+
iconState.destroyed = true;
|
|
1354
|
+
if (iconState.loading) {
|
|
1355
|
+
iconState.loading.abort();
|
|
1356
|
+
iconState.loading = null;
|
|
1357
|
+
}
|
|
1358
|
+
});
|
|
1359
|
+
if (data()) {
|
|
1360
|
+
$$renderer2.push("<!--[0-->");
|
|
1361
|
+
if (data().svg) {
|
|
1362
|
+
$$renderer2.push("<!--[0-->");
|
|
1363
|
+
$$renderer2.push(`<svg${attributes({ ...data().attributes }, void 0, void 0, void 0, 3)}>${html(data().body)}</svg>`);
|
|
1364
|
+
} else {
|
|
1365
|
+
$$renderer2.push("<!--[-1-->");
|
|
1366
|
+
$$renderer2.push(`<span${attributes({ ...data().attributes })}></span>`);
|
|
1367
|
+
}
|
|
1368
|
+
$$renderer2.push(`<!--]-->`);
|
|
1369
|
+
} else {
|
|
1370
|
+
$$renderer2.push("<!--[-1-->");
|
|
1371
|
+
}
|
|
1372
|
+
$$renderer2.push(`<!--]-->`);
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
function MiniEditor($$renderer, $$props) {
|
|
1376
|
+
$$renderer.component(($$renderer2) => {
|
|
1377
|
+
let editor = null;
|
|
1378
|
+
let model = null;
|
|
1379
|
+
let disposables = [];
|
|
1380
|
+
let editorElement;
|
|
1381
|
+
let {
|
|
1382
|
+
height = 120
|
|
1383
|
+
} = $$props;
|
|
1384
|
+
function handleWheelCapture(e) {
|
|
1385
|
+
e.stopPropagation();
|
|
1386
|
+
}
|
|
1387
|
+
onDestroy(() => {
|
|
1388
|
+
try {
|
|
1389
|
+
editorElement.removeEventListener("wheel", handleWheelCapture, { capture: true });
|
|
1390
|
+
} catch {
|
|
1391
|
+
}
|
|
1392
|
+
for (const d of disposables) {
|
|
1393
|
+
try {
|
|
1394
|
+
d.dispose();
|
|
1395
|
+
} catch {
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
disposables = [];
|
|
1399
|
+
const toDisposeModel = model;
|
|
1400
|
+
model = null;
|
|
1401
|
+
try {
|
|
1402
|
+
if (editor) {
|
|
1403
|
+
try {
|
|
1404
|
+
editor.setModel(null);
|
|
1405
|
+
} catch {
|
|
1406
|
+
}
|
|
1407
|
+
editor.dispose();
|
|
1408
|
+
}
|
|
1409
|
+
} finally {
|
|
1410
|
+
editor = null;
|
|
1411
|
+
}
|
|
1412
|
+
try {
|
|
1413
|
+
toDisposeModel?.dispose();
|
|
1414
|
+
} catch {
|
|
1415
|
+
}
|
|
1416
|
+
});
|
|
1417
|
+
$$renderer2.push(`<div class="w-full"${attr_style(
|
|
1418
|
+
// Update language when prop changes without recreating the editor
|
|
1419
|
+
// External value changes should update the model (avoid loops)
|
|
1420
|
+
`height:${height}px`
|
|
1421
|
+
)}></div>`);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
function RunResultActions($$renderer, $$props) {
|
|
1425
|
+
$$renderer.component(($$renderer2) => {
|
|
1426
|
+
let {
|
|
1427
|
+
actionsDisabled = false,
|
|
1428
|
+
actionsInert = false,
|
|
1429
|
+
addTestDisabled = false,
|
|
1430
|
+
showAnalyze = true,
|
|
1431
|
+
analyzeDisabled = false,
|
|
1432
|
+
fixDisabled = false,
|
|
1433
|
+
onFix
|
|
1434
|
+
} = $$props;
|
|
1435
|
+
let addStatus = "idle";
|
|
1436
|
+
onDestroy(() => {
|
|
1437
|
+
});
|
|
1438
|
+
let $$settled = true;
|
|
1439
|
+
let $$inner_renderer;
|
|
1440
|
+
function $$render_inner($$renderer3) {
|
|
1441
|
+
$$renderer3.push(`<div class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-1">`);
|
|
1442
|
+
if (onFix) {
|
|
1443
|
+
$$renderer3.push("<!--[0-->");
|
|
1444
|
+
$$renderer3.push(`<button type="button"${attr("inert", actionsInert, true)}${attr("disabled", actionsDisabled || fixDisabled, true)} class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-rc-gray-400">Fix</button>`);
|
|
1445
|
+
} else {
|
|
1446
|
+
$$renderer3.push("<!--[-1-->");
|
|
1447
|
+
}
|
|
1448
|
+
$$renderer3.push(`<!--]--> <button type="button"${attr("inert", actionsInert, true)}${attr("disabled", actionsDisabled || addTestDisabled || addStatus === "adding", true)} class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-rc-gray-400">${escape_html("Add test")}</button> `);
|
|
1449
|
+
if (showAnalyze) {
|
|
1450
|
+
$$renderer3.push("<!--[0-->");
|
|
1451
|
+
$$renderer3.push(`<button type="button"${attr("disabled", analyzeDisabled, true)} class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-rc-gray-400">Analyze</button>`);
|
|
1452
|
+
} else {
|
|
1453
|
+
$$renderer3.push("<!--[-1-->");
|
|
1454
|
+
}
|
|
1455
|
+
$$renderer3.push(`<!--]--> <button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">See variants</button> <button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">Prompt</button> <button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">Conversation</button> <button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">Context</button> <button type="button" class="inline-flex items-center text-nowrap rounded border-0 bg-transparent px-1 py-0.5 text-rc-gray-400 transition-colors hover:bg-rc-gray-900 hover:text-rc-gray-200 focus:outline-none focus-visible:outline-none">Debug</button></div> `);
|
|
1456
|
+
{
|
|
1457
|
+
$$renderer3.push("<!--[-1-->");
|
|
1458
|
+
}
|
|
1459
|
+
$$renderer3.push(`<!--]--> `);
|
|
1460
|
+
{
|
|
1461
|
+
$$renderer3.push("<!--[-1-->");
|
|
1462
|
+
}
|
|
1463
|
+
$$renderer3.push(`<!--]--> `);
|
|
1464
|
+
{
|
|
1465
|
+
$$renderer3.push("<!--[-1-->");
|
|
1466
|
+
}
|
|
1467
|
+
$$renderer3.push(`<!--]-->`);
|
|
1468
|
+
}
|
|
1469
|
+
do {
|
|
1470
|
+
$$settled = true;
|
|
1471
|
+
$$inner_renderer = $$renderer2.copy();
|
|
1472
|
+
$$render_inner($$inner_renderer);
|
|
1473
|
+
} while (!$$settled);
|
|
1474
|
+
$$renderer2.subsume($$inner_renderer);
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
function formatTestFixAssertion(label, value) {
|
|
1478
|
+
const normalizedLabel = label.trim() === "LLM" ? "" : label.trim();
|
|
1479
|
+
return [normalizedLabel, value.trim()].filter(Boolean).join(" ");
|
|
1480
|
+
}
|
|
1481
|
+
function buildTestFixRequest(input) {
|
|
1482
|
+
const assertion = formatTestFixAssertion(input.assertionLabel, input.assertionValue);
|
|
1483
|
+
return `You will be given the context, the conversation and the desired output and assertion about it. Change the prompt minimally so this will work. Try to provide as general solution as possible.
|
|
1484
|
+
|
|
1485
|
+
Context:
|
|
1486
|
+
${input.context.trim()}
|
|
1487
|
+
|
|
1488
|
+
Conversation:
|
|
1489
|
+
${input.conversation.trim()}
|
|
1490
|
+
|
|
1491
|
+
Desired outcome:
|
|
1492
|
+
${input.expectedOutput.trim()}
|
|
1493
|
+
|
|
1494
|
+
Assertion about outcome:
|
|
1495
|
+
${assertion}
|
|
1496
|
+
|
|
1497
|
+
Current incorrect outcome:
|
|
1498
|
+
${input.currentIncorrectOutcome.trim()}`;
|
|
1499
|
+
}
|
|
1500
|
+
function erf(x) {
|
|
1501
|
+
const sign = x < 0 ? -1 : 1;
|
|
1502
|
+
const ax = Math.abs(x);
|
|
1503
|
+
const a1 = 0.254829592;
|
|
1504
|
+
const a2 = -0.284496736;
|
|
1505
|
+
const a3 = 1.421413741;
|
|
1506
|
+
const a4 = -1.453152027;
|
|
1507
|
+
const a5 = 1.061405429;
|
|
1508
|
+
const p = 0.3275911;
|
|
1509
|
+
const t = 1 / (1 + p * ax);
|
|
1510
|
+
const y = 1 - ((((a5 * t + a4) * t + a3) * t + a2) * t + a1) * t * Math.exp(-ax * ax);
|
|
1511
|
+
return sign * y;
|
|
1512
|
+
}
|
|
1513
|
+
function normalCdf(x) {
|
|
1514
|
+
return 0.5 * (1 + erf(x / Math.SQRT2));
|
|
1515
|
+
}
|
|
1516
|
+
function twoProportionZTestPValue(x1, n1, x2, n2) {
|
|
1517
|
+
if (!Number.isFinite(x1) || !Number.isFinite(n1) || !Number.isFinite(x2) || !Number.isFinite(n2))
|
|
1518
|
+
return null;
|
|
1519
|
+
if (n1 <= 0 || n2 <= 0) return null;
|
|
1520
|
+
const p1 = x1 / n1;
|
|
1521
|
+
const p2 = x2 / n2;
|
|
1522
|
+
const pooled = (x1 + x2) / (n1 + n2);
|
|
1523
|
+
const denom = Math.sqrt(pooled * (1 - pooled) * (1 / n1 + 1 / n2));
|
|
1524
|
+
if (!Number.isFinite(denom) || denom <= 0) return null;
|
|
1525
|
+
const z = (p2 - p1) / denom;
|
|
1526
|
+
const p = 2 * (1 - normalCdf(Math.abs(z)));
|
|
1527
|
+
return Math.max(0, Math.min(1, p));
|
|
1528
|
+
}
|
|
1529
|
+
function trendLabel(direction) {
|
|
1530
|
+
return direction === "higher" ? "significantly better" : "significantly worse";
|
|
1531
|
+
}
|
|
1532
|
+
function getExpectedTrend(result, expectedRuns) {
|
|
1533
|
+
if (!result || result.isOld) return null;
|
|
1534
|
+
const doneRuns = result.total_runs;
|
|
1535
|
+
if (doneRuns <= 0) return null;
|
|
1536
|
+
const prev = result.previous;
|
|
1537
|
+
const prevRate = prev && prev.total_runs > 0 ? prev.success_count / prev.total_runs : null;
|
|
1538
|
+
const currRate = result.successes / doneRuns;
|
|
1539
|
+
const direction = prevRate === null ? "higher" : currRate >= prevRate ? "higher" : "lower";
|
|
1540
|
+
const significant = (() => {
|
|
1541
|
+
if (doneRuns < 5 || !prev || prev.total_runs <= 0) return false;
|
|
1542
|
+
const pValue = twoProportionZTestPValue(
|
|
1543
|
+
prev.success_count,
|
|
1544
|
+
prev.total_runs,
|
|
1545
|
+
result.successes,
|
|
1546
|
+
doneRuns
|
|
1547
|
+
);
|
|
1548
|
+
return pValue !== null && pValue < 0.05;
|
|
1549
|
+
})();
|
|
1550
|
+
const notPerfectAnymore = prevRate === 1 && currRate < 1;
|
|
1551
|
+
const perfectNow = prevRate !== null && prevRate < 1 && currRate === 1;
|
|
1552
|
+
const comparisonLabel = significant ? trendLabel(direction) : notPerfectAnymore ? "Not 100% anymore" : perfectNow ? "100% now" : void 0;
|
|
1553
|
+
const showExpected = Number.isFinite(expectedRuns) && expectedRuns > 0 && doneRuns < expectedRuns;
|
|
1554
|
+
if (!showExpected && !comparisonLabel) return null;
|
|
1555
|
+
const expectedSuccesses = showExpected ? Math.round(currRate * expectedRuns) : void 0;
|
|
1556
|
+
return {
|
|
1557
|
+
showExpected,
|
|
1558
|
+
expectedSuccesses,
|
|
1559
|
+
expectedRuns,
|
|
1560
|
+
significant,
|
|
1561
|
+
direction,
|
|
1562
|
+
comparisonLabel
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
function _page($$renderer, $$props) {
|
|
1566
|
+
$$renderer.component(($$renderer2) => {
|
|
1567
|
+
const { state: workspace, actions } = getEditWorkspaceContext();
|
|
1568
|
+
const agent = derived(() => workspace.agentId);
|
|
1569
|
+
const region = derived(() => workspace.region);
|
|
1570
|
+
let showViewerModal = false;
|
|
1571
|
+
let viewerTitle = "";
|
|
1572
|
+
let viewerContent = null;
|
|
1573
|
+
let showHistoryModal = false;
|
|
1574
|
+
let historyRuns = [];
|
|
1575
|
+
let historyLoading = false;
|
|
1576
|
+
let selectedHistoryTimestamp = null;
|
|
1577
|
+
let historyDetailLoading = false;
|
|
1578
|
+
let historyExpandedTestIds = [];
|
|
1579
|
+
const selectedHistoryDetail = derived(() => {
|
|
1580
|
+
return null;
|
|
1581
|
+
});
|
|
1582
|
+
const historyInitialLoading = derived(() => historyLoading);
|
|
1583
|
+
const historyDetailInitialLoading = derived(() => historyDetailLoading);
|
|
1584
|
+
const historyExpandedTestIdSet = derived(() => new Set(historyExpandedTestIds));
|
|
1585
|
+
const historyTests = derived(() => {
|
|
1586
|
+
if (!selectedHistoryDetail()) return [];
|
|
1587
|
+
return selectedHistoryDetail().rows.map((row) => parseHistoryTest(selectedHistoryDetail().timestamp, row));
|
|
1588
|
+
});
|
|
1589
|
+
const historyPassingSummary = derived(() => summarizeTestRows(historyTests()));
|
|
1590
|
+
function openJsonViewer(title, value) {
|
|
1591
|
+
viewerTitle = title;
|
|
1592
|
+
viewerContent = JSON.stringify(value ?? {}, null, 2);
|
|
1593
|
+
showViewerModal = true;
|
|
1594
|
+
}
|
|
1595
|
+
let analyzeRunning = false;
|
|
1596
|
+
const baseAssertionTypes = [
|
|
1597
|
+
{ value: "llm-rubric", label: "LLM" },
|
|
1598
|
+
{ value: "answer-relevance", label: "Answer Relevance (LLM)" },
|
|
1599
|
+
{
|
|
1600
|
+
value: "context-faithfulness",
|
|
1601
|
+
label: "Context Faithfulness (LLM)"
|
|
1602
|
+
},
|
|
1603
|
+
{ value: "context-recall", label: "Context Recall (LLM)" },
|
|
1604
|
+
{ value: "context-relevance", label: "Context Relevance (LLM)" },
|
|
1605
|
+
{
|
|
1606
|
+
value: "model-graded-closedqa",
|
|
1607
|
+
label: "Model-Graded Closed QA"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
value: "model-graded-factuality",
|
|
1611
|
+
label: "Model-Graded Factuality"
|
|
1612
|
+
},
|
|
1613
|
+
{ value: "moderation", label: "Moderation" },
|
|
1614
|
+
{ value: "classifier", label: "Classifier" },
|
|
1615
|
+
{ value: "g-eval", label: "G-Eval" },
|
|
1616
|
+
{ value: "factuality", label: "Factuality" },
|
|
1617
|
+
{
|
|
1618
|
+
value: "conversation-relevance",
|
|
1619
|
+
label: "Conversation Relevance"
|
|
1620
|
+
},
|
|
1621
|
+
{ value: "equals", label: "Equals" },
|
|
1622
|
+
{ value: "contains", label: "Contains" },
|
|
1623
|
+
{ value: "icontains", label: "Contains (case-insensitive)" },
|
|
1624
|
+
{ value: "contains-all", label: "Contains All" },
|
|
1625
|
+
{ value: "contains-any", label: "Contains Any" },
|
|
1626
|
+
{ value: "icontains-all", label: "Contains All (iCase)" },
|
|
1627
|
+
{ value: "icontains-any", label: "Contains Any (iCase)" },
|
|
1628
|
+
{ value: "starts-with", label: "Starts With" },
|
|
1629
|
+
{ value: "regex", label: "Regex" },
|
|
1630
|
+
{ value: "levenshtein", label: "Levenshtein Distance" },
|
|
1631
|
+
{ value: "is-refusal", label: "Is Refusal" },
|
|
1632
|
+
{ value: "is-html", label: "Is HTML" },
|
|
1633
|
+
{ value: "contains-html", label: "Contains HTML" },
|
|
1634
|
+
{ value: "is-json", label: "Is JSON" },
|
|
1635
|
+
{ value: "contains-json", label: "Contains JSON" },
|
|
1636
|
+
{ value: "is-xml", label: "Is XML" },
|
|
1637
|
+
{ value: "contains-xml", label: "Contains XML" },
|
|
1638
|
+
{ value: "is-sql", label: "Is SQL" },
|
|
1639
|
+
{ value: "contains-sql", label: "Contains SQL" },
|
|
1640
|
+
{ value: "similar", label: "Semantic Similarity" },
|
|
1641
|
+
{ value: "rouge-n", label: "ROUGE-N" },
|
|
1642
|
+
{ value: "bleu", label: "BLEU" },
|
|
1643
|
+
{ value: "gleu", label: "GLEU" },
|
|
1644
|
+
{ value: "meteor", label: "METEOR" },
|
|
1645
|
+
{ value: "perplexity", label: "Perplexity" },
|
|
1646
|
+
{ value: "perplexity-score", label: "Perplexity Score" },
|
|
1647
|
+
{ value: "latency", label: "Latency" },
|
|
1648
|
+
{ value: "cost", label: "Cost" },
|
|
1649
|
+
{ value: "finish-reason", label: "Finish Reason" },
|
|
1650
|
+
{ value: "trace-error-spans", label: "Trace Error Spans" },
|
|
1651
|
+
{ value: "trace-span-count", label: "Trace Span Count" },
|
|
1652
|
+
{ value: "trace-span-duration", label: "Trace Span Duration" },
|
|
1653
|
+
{
|
|
1654
|
+
value: "is-valid-function-call",
|
|
1655
|
+
label: "Is Valid Function Call"
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
value: "is-valid-openai-function-call",
|
|
1659
|
+
label: "Is Valid OpenAI Function Call"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
value: "is-valid-openai-tools-call",
|
|
1663
|
+
label: "Is Valid OpenAI Tools Call"
|
|
1664
|
+
},
|
|
1665
|
+
{ value: "guardrails", label: "Guardrails" },
|
|
1666
|
+
{ value: "javascript", label: "JavaScript (custom)" },
|
|
1667
|
+
{ value: "python", label: "Python (custom)" },
|
|
1668
|
+
{ value: "webhook", label: "Webhook (custom)" },
|
|
1669
|
+
{ value: "pi", label: "Pi Scorer" }
|
|
1670
|
+
];
|
|
1671
|
+
const assertionTypes = [
|
|
1672
|
+
...baseAssertionTypes,
|
|
1673
|
+
...baseAssertionTypes.map((opt) => ({ value: `not-${opt.value}`, label: `Not ${opt.label}` }))
|
|
1674
|
+
];
|
|
1675
|
+
let running = false;
|
|
1676
|
+
Promise.resolve();
|
|
1677
|
+
let pendingSaveCount = 0;
|
|
1678
|
+
const isSaving = derived(() => pendingSaveCount > 0);
|
|
1679
|
+
function parseHistoryTest(timestamp, row) {
|
|
1680
|
+
const test = row.test;
|
|
1681
|
+
const id = test.id;
|
|
1682
|
+
const rawRuns = row.results;
|
|
1683
|
+
const successCount = rawRuns.reduce((acc, run) => acc + (run.success ? 1 : 0), 0);
|
|
1684
|
+
return {
|
|
1685
|
+
id,
|
|
1686
|
+
pinned: test.pinned === "TRUE",
|
|
1687
|
+
scenario: test.scenario,
|
|
1688
|
+
step: test.step || "main",
|
|
1689
|
+
evaluation_mode: test.evaluation_mode === "json-deep-equal" ? "json-deep-equal" : "assertion",
|
|
1690
|
+
case_sensitive: test.case_sensitive === true,
|
|
1691
|
+
context_mode: test.context_mode === "replace" ? "replace" : "merge",
|
|
1692
|
+
author: test.author || "",
|
|
1693
|
+
assertion_type: test.assertion_type,
|
|
1694
|
+
assertion_value: test.assertion_value,
|
|
1695
|
+
conversation: test.conversation,
|
|
1696
|
+
expected_output: test.expected_output,
|
|
1697
|
+
conversation_ui: buildConversationEditorValue(test.conversation || "", test.expected_output || "", test.step || "main", test.evaluation_mode === "json-deep-equal"),
|
|
1698
|
+
timeout: Number(test.timeout),
|
|
1699
|
+
similarity_threshold: Number(test.similarity_threshold),
|
|
1700
|
+
context: JSON.stringify(test.context),
|
|
1701
|
+
mocks: JSON.stringify(test.mocks || {}),
|
|
1702
|
+
hasMocks: typeof test.mocks !== "undefined",
|
|
1703
|
+
result: {
|
|
1704
|
+
success_rate: row.success_rate,
|
|
1705
|
+
successes: successCount,
|
|
1706
|
+
total_runs: rawRuns.length,
|
|
1707
|
+
isOld: false,
|
|
1708
|
+
runs: rawRuns.map((run, runIndex) => {
|
|
1709
|
+
const params = { agent: agent(), id, timestamp, run: runIndex };
|
|
1710
|
+
return {
|
|
1711
|
+
index: runIndex + 1,
|
|
1712
|
+
success: run.success,
|
|
1713
|
+
text: run.result || "",
|
|
1714
|
+
evaluation: run.evaluation || "",
|
|
1715
|
+
errors: run.errors || "",
|
|
1716
|
+
links: {
|
|
1717
|
+
renderedPrompt: { ...params, key: "rendered_prompt" },
|
|
1718
|
+
receivedPrompt: { ...params, key: "received_prompt" },
|
|
1719
|
+
conversation: { ...params, key: "stringified_conversation" },
|
|
1720
|
+
context: { ...params, key: "received_context" },
|
|
1721
|
+
logs: { ...params, key: "logs" },
|
|
1722
|
+
errors: { ...params, key: "errors" },
|
|
1723
|
+
traces: { ...params, key: "traces" }
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
}).reverse()
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
function summarizeTestRows(rows) {
|
|
1731
|
+
let casesPassing = 0;
|
|
1732
|
+
let casesTotal = 0;
|
|
1733
|
+
let attemptsPassing = 0;
|
|
1734
|
+
let attemptsTotal = 0;
|
|
1735
|
+
for (const row of rows) {
|
|
1736
|
+
const result = row.result;
|
|
1737
|
+
if (!result || result.total_runs <= 0) continue;
|
|
1738
|
+
casesTotal += 1;
|
|
1739
|
+
attemptsPassing += result.successes;
|
|
1740
|
+
attemptsTotal += result.total_runs;
|
|
1741
|
+
if (result.successes === result.total_runs) casesPassing += 1;
|
|
1742
|
+
}
|
|
1743
|
+
return { casesPassing, casesTotal, attemptsPassing, attemptsTotal };
|
|
1744
|
+
}
|
|
1745
|
+
function assertionLabel(value) {
|
|
1746
|
+
return assertionTypes.find((opt) => opt.value === value)?.label ?? value;
|
|
1747
|
+
}
|
|
1748
|
+
function openTestFix(row, currentIncorrectOutcome) {
|
|
1749
|
+
showHistoryModal = false;
|
|
1750
|
+
actions.openAiEdit(buildTestFixRequest({
|
|
1751
|
+
context: row.context,
|
|
1752
|
+
conversation: row.conversation,
|
|
1753
|
+
expectedOutput: row.expected_output,
|
|
1754
|
+
assertionLabel: row.evaluation_mode === "json-deep-equal" ? "" : assertionLabel(row.assertion_type),
|
|
1755
|
+
assertionValue: row.evaluation_mode === "json-deep-equal" ? "" : row.assertion_value,
|
|
1756
|
+
currentIncorrectOutcome
|
|
1757
|
+
}));
|
|
1758
|
+
}
|
|
1759
|
+
function formatRunDate(timestamp) {
|
|
1760
|
+
const d = new Date(timestamp);
|
|
1761
|
+
if (Number.isNaN(d.getTime())) return timestamp;
|
|
1762
|
+
return d.toLocaleDateString(void 0, { month: "short", day: "numeric", year: "numeric" });
|
|
1763
|
+
}
|
|
1764
|
+
function formatRunTime(timestamp) {
|
|
1765
|
+
const d = new Date(timestamp);
|
|
1766
|
+
if (Number.isNaN(d.getTime())) return "";
|
|
1767
|
+
return d.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit" });
|
|
1768
|
+
}
|
|
1769
|
+
function runScopeLabel(scope) {
|
|
1770
|
+
return scope === "all" ? "All tests" : "Pinned tests";
|
|
1771
|
+
}
|
|
1772
|
+
function formatEvaluation(ev) {
|
|
1773
|
+
if (!ev) return "";
|
|
1774
|
+
try {
|
|
1775
|
+
return ev.replace(/^\s*\d+\s*[:.)-]?\s*(?:[❌✖️✔✅✗xX])?\s*/u, "");
|
|
1776
|
+
} catch {
|
|
1777
|
+
return ev;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
function parseJson(s) {
|
|
1781
|
+
try {
|
|
1782
|
+
return s && s.trim() ? JSON.parse(s) : {};
|
|
1783
|
+
} catch {
|
|
1784
|
+
return {};
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
const roleMatch = (line) => line.match(/^\s*(agent|assistant|user|system|step)\s*:\s*(.*)$/i);
|
|
1788
|
+
function expectedBlockRole(step) {
|
|
1789
|
+
return isMainStepName(step) ? "agent" : "step";
|
|
1790
|
+
}
|
|
1791
|
+
function formatJsonForDisplay(value) {
|
|
1792
|
+
try {
|
|
1793
|
+
const parsed = JSON.parse(value);
|
|
1794
|
+
const formatted = JSON.stringify(parsed, null, 2);
|
|
1795
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
1796
|
+
return formatted;
|
|
1797
|
+
}
|
|
1798
|
+
return formatted.split("\n").slice(1, -1).map((line) => line.startsWith(" ") ? line.slice(2) : line).join("\n");
|
|
1799
|
+
} catch {
|
|
1800
|
+
return value;
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
function formatRunOutput(text, errors, jsonMode) {
|
|
1804
|
+
const value = String(text || errors || "—");
|
|
1805
|
+
return jsonMode ? formatJsonForDisplay(value) : value;
|
|
1806
|
+
}
|
|
1807
|
+
function formatExpectedBlock(expected, step, jsonMode) {
|
|
1808
|
+
let value = String(expected ?? "").trimEnd();
|
|
1809
|
+
if (!value) return "";
|
|
1810
|
+
if (jsonMode) value = formatJsonForDisplay(value);
|
|
1811
|
+
const label = expectedBlockRole(step) === "agent" ? "Agent" : "Step";
|
|
1812
|
+
if (jsonMode) return value ? `${label}:
|
|
1813
|
+
${value}` : `${label}:`;
|
|
1814
|
+
return `${label}: ${value}`;
|
|
1815
|
+
}
|
|
1816
|
+
function buildConversationEditorValue(conversation, expected, step, jsonMode) {
|
|
1817
|
+
const conv = String(conversation ?? "").trimEnd();
|
|
1818
|
+
const expectedBlock = formatExpectedBlock(expected, step, jsonMode);
|
|
1819
|
+
if (!expectedBlock) return conv;
|
|
1820
|
+
if (!conv) return expectedBlock;
|
|
1821
|
+
return `${conv}
|
|
1822
|
+
${expectedBlock}`;
|
|
1823
|
+
}
|
|
1824
|
+
function parseExpectedFromConversationEditor(text, row) {
|
|
1825
|
+
const raw = String(text ?? "");
|
|
1826
|
+
const lines = raw.split(/\r?\n/);
|
|
1827
|
+
const blocks = [];
|
|
1828
|
+
let current = null;
|
|
1829
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1830
|
+
const m2 = roleMatch(lines[i]);
|
|
1831
|
+
if (!m2) continue;
|
|
1832
|
+
if (current) {
|
|
1833
|
+
blocks.push({ ...current, endLine: i });
|
|
1834
|
+
}
|
|
1835
|
+
const roleRaw = String(m2[1] ?? "").toLowerCase();
|
|
1836
|
+
const role = roleRaw === "assistant" ? "agent" : roleRaw;
|
|
1837
|
+
current = { role, startLine: i + 1 };
|
|
1838
|
+
}
|
|
1839
|
+
if (current) blocks.push({ ...current, endLine: lines.length });
|
|
1840
|
+
const expectedBlock = blocks.at(-1);
|
|
1841
|
+
const requiredRole = expectedBlockRole(row.step);
|
|
1842
|
+
const canExtractExpected = expectedBlock?.role === requiredRole;
|
|
1843
|
+
if (!canExtractExpected || !expectedBlock) {
|
|
1844
|
+
return { valid: false, expected: "", conversation: raw.trimEnd() };
|
|
1845
|
+
}
|
|
1846
|
+
const expectedLines = lines.slice(expectedBlock.startLine - 1, expectedBlock.endLine);
|
|
1847
|
+
const first = expectedLines[0] ?? "";
|
|
1848
|
+
const m = roleMatch(first);
|
|
1849
|
+
const firstContent = m ? m[2] ?? "" : "";
|
|
1850
|
+
const editorExpected = [firstContent, ...expectedLines.slice(1)].join("\n").trimEnd();
|
|
1851
|
+
let expected = editorExpected;
|
|
1852
|
+
let valid = true;
|
|
1853
|
+
if (row.evaluation_mode === "json-deep-equal") {
|
|
1854
|
+
const candidate = /^\s*[\[{]/.test(editorExpected) ? editorExpected : `{
|
|
1855
|
+
${editorExpected}
|
|
1856
|
+
}`;
|
|
1857
|
+
try {
|
|
1858
|
+
const parsed = JSON.parse(candidate);
|
|
1859
|
+
valid = typeof parsed === "object" && parsed !== null;
|
|
1860
|
+
expected = valid ? JSON.stringify(parsed, null, 2) : candidate;
|
|
1861
|
+
} catch {
|
|
1862
|
+
valid = false;
|
|
1863
|
+
expected = candidate;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
const conversation = lines.slice(0, expectedBlock.startLine - 1).join("\n").trimEnd();
|
|
1867
|
+
return {
|
|
1868
|
+
valid,
|
|
1869
|
+
expected,
|
|
1870
|
+
conversation,
|
|
1871
|
+
highlight: {
|
|
1872
|
+
startLine: row.evaluation_mode === "json-deep-equal" ? Math.min(expectedBlock.endLine, expectedBlock.startLine + 1) : expectedBlock.startLine,
|
|
1873
|
+
endLine: expectedBlock.endLine
|
|
1874
|
+
}
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
function resultCountClass(result) {
|
|
1878
|
+
return result.total_runs > 0 && result.successes < result.total_runs ? "text-rc-red-600" : "text-rc-gray-200";
|
|
1879
|
+
}
|
|
1880
|
+
onDestroy(() => {
|
|
1881
|
+
});
|
|
1882
|
+
let $$settled = true;
|
|
1883
|
+
let $$inner_renderer;
|
|
1884
|
+
function $$render_inner($$renderer3) {
|
|
1885
|
+
head("rdft55", $$renderer3, ($$renderer4) => {
|
|
1886
|
+
$$renderer4.push(`<link rel="preload" href="/ui/arrow_tests.svg" as="image"/>`);
|
|
1887
|
+
});
|
|
1888
|
+
{
|
|
1889
|
+
let children = function($$renderer4) {
|
|
1890
|
+
$$renderer4.push(`<div class="grid min-h-[68vh] grid-cols-[18rem,minmax(0,1fr)] gap-4"><aside class="rc-scroll min-h-0 overflow-auto border-r border-rc-gray-700 pr-3">`);
|
|
1891
|
+
if (historyInitialLoading()) {
|
|
1892
|
+
$$renderer4.push("<!--[0-->");
|
|
1893
|
+
$$renderer4.push(`<div class="p-2 text-gray-300">Loading…</div>`);
|
|
1894
|
+
} else if (historyRuns.length === 0) {
|
|
1895
|
+
$$renderer4.push("<!--[2-->");
|
|
1896
|
+
$$renderer4.push(`<div class="p-2 text-gray-400">No previous runs</div>`);
|
|
1897
|
+
} else {
|
|
1898
|
+
$$renderer4.push("<!--[-1-->");
|
|
1899
|
+
$$renderer4.push(`<div class="flex flex-col gap-2">`);
|
|
1900
|
+
{
|
|
1901
|
+
$$renderer4.push("<!--[-1-->");
|
|
1902
|
+
}
|
|
1903
|
+
$$renderer4.push(`<!--]--> <!--[-->`);
|
|
1904
|
+
const each_array = ensure_array_like(historyRuns);
|
|
1905
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1906
|
+
let run = each_array[$$index];
|
|
1907
|
+
$$renderer4.push(`<button type="button"${attr_class(
|
|
1908
|
+
`w-full rounded border px-3 py-2 text-left transition-colors ${selectedHistoryTimestamp === run.timestamp ? "border-rc-green-200 bg-rc-gray-930 text-rc-gray-100" : "border-rc-gray-700 bg-rc-gray-900 text-rc-gray-300 hover:border-rc-gray-500 hover:bg-rc-gray-800"}`,
|
|
1909
|
+
"svelte-rdft55"
|
|
1910
|
+
)}><div class="flex items-baseline justify-between gap-2"><span class="font-semibold text-rc-gray-100">${escape_html(formatRunDate(run.timestamp))}</span> <span class="text-sm text-rc-gray-400">${escape_html(formatRunTime(run.timestamp))}</span></div> <div class="mt-1 text-sm text-rc-gray-400">${escape_html(run.testCount)}
|
|
1911
|
+
${escape_html(run.testCount === 1 ? "test" : "tests")} · ${escape_html(runScopeLabel(run.runScope))}</div> <div class="mt-2 flex items-center justify-between gap-2 text-sm"><span${attr_class(clsx(run.passed ? "text-rc-green-200" : "text-rc-red-600"))}>${escape_html(run.passed ? "Success" : "Failure")}</span> <span class="text-rc-gray-300">${escape_html(run.successRatePercent)}% (${escape_html(run.successRate)})</span></div></button>`);
|
|
1912
|
+
}
|
|
1913
|
+
$$renderer4.push(`<!--]--></div>`);
|
|
1914
|
+
}
|
|
1915
|
+
$$renderer4.push(`<!--]--></aside> <section class="rc-scroll min-h-0 overflow-auto">`);
|
|
1916
|
+
if (historyDetailInitialLoading()) {
|
|
1917
|
+
$$renderer4.push("<!--[0-->");
|
|
1918
|
+
$$renderer4.push(`<div class="p-2 text-gray-300">Loading…</div>`);
|
|
1919
|
+
} else if (selectedHistoryDetail()) {
|
|
1920
|
+
$$renderer4.push("<!--[2-->");
|
|
1921
|
+
$$renderer4.push(`<div class="flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3 border-b border-rc-gray-700 pb-3"><div class="flex flex-wrap items-center gap-3"><div class="flex items-center gap-2"><label class="text-rc-gray-300">Repeats</label> `);
|
|
1922
|
+
Input($$renderer4, {
|
|
1923
|
+
type: "number",
|
|
1924
|
+
class: "w-16",
|
|
1925
|
+
value: selectedHistoryDetail().runConfig.repeats,
|
|
1926
|
+
disabled: true
|
|
1927
|
+
});
|
|
1928
|
+
$$renderer4.push(`<!----></div> <div class="flex items-center gap-2"><label class="text-rc-gray-300">Concurrency</label> `);
|
|
1929
|
+
Input($$renderer4, {
|
|
1930
|
+
type: "number",
|
|
1931
|
+
class: "w-16",
|
|
1932
|
+
value: selectedHistoryDetail().runConfig.concurrency,
|
|
1933
|
+
disabled: true
|
|
1934
|
+
});
|
|
1935
|
+
$$renderer4.push(`<!----></div> <span class="text-rc-gray-400">${escape_html(runScopeLabel(selectedHistoryDetail().runScope))}</span></div></div> <div class="grid grid-cols-[2.25rem,1fr] items-center gap-2 border-b border-rc-gray-700 p-2"><div></div> <div class="flex flex-wrap items-center gap-x-4 gap-y-1 text-left text-rc-gray-300"><span>${escape_html(historyPassingSummary().casesPassing)}/${escape_html(historyPassingSummary().casesTotal)}
|
|
1936
|
+
cases passing</span> <span>${escape_html(historyPassingSummary().attemptsPassing)}/${escape_html(historyPassingSummary().attemptsTotal)}
|
|
1937
|
+
attempts passing</span></div></div> `);
|
|
1938
|
+
if (historyTests().length === 0) {
|
|
1939
|
+
$$renderer4.push("<!--[0-->");
|
|
1940
|
+
$$renderer4.push(`<div class="p-3 text-gray-400">—</div>`);
|
|
1941
|
+
} else {
|
|
1942
|
+
$$renderer4.push("<!--[-1-->");
|
|
1943
|
+
$$renderer4.push(`<div class="flex flex-col space-y-5"><!--[-->`);
|
|
1944
|
+
const each_array_1 = ensure_array_like(historyTests());
|
|
1945
|
+
for (let $$index_2 = 0, $$length = each_array_1.length; $$index_2 < $$length; $$index_2++) {
|
|
1946
|
+
let t = each_array_1[$$index_2];
|
|
1947
|
+
const expectedInfo = parseExpectedFromConversationEditor(t.conversation_ui, t);
|
|
1948
|
+
const isExpanded = historyExpandedTestIdSet().has(t.id);
|
|
1949
|
+
$$renderer4.push(`<div class="border-b border-rc-gray-700 p-2"${attr("data-id", t.id)}><div class="grid grid-cols-[2.25rem,1fr] gap-2"><div class="flex flex-col items-center gap-1 pt-1">`);
|
|
1950
|
+
Icon($$renderer4, {
|
|
1951
|
+
class: `block ${t.pinned ? "text-rc-green-200" : "text-gray-400"}`,
|
|
1952
|
+
icon: t.pinned ? "mdi:pin" : "mdi:pin-outline",
|
|
1953
|
+
width: 18,
|
|
1954
|
+
height: 18
|
|
1955
|
+
});
|
|
1956
|
+
$$renderer4.push(`<!----></div> <div class="min-w-0"><div${attr_class(`left-details-bg flex flex-col rounded border ${expectedInfo.valid ? "border-rc-gray-700" : "border-rc-red-600"}`, "svelte-rdft55")}><div${attr_class(`left-details-bg rounded-t px-2 pt-2 ${isExpanded ? "border-b border-rc-gray-700 pb-1" : "pb-2"}`, "svelte-rdft55")}><div class="grid grid-cols-[1fr,2.25rem] items-center gap-2"><input class="card-input-title pointer-events-none svelte-rdft55" type="text" placeholder="Scenario"${attr("value", t.scenario)} readonly=""/> <button class="icon-btn justify-self-end text-gray-300 hover:text-gray-100 svelte-rdft55"${attr("aria-label", isExpanded ? "Collapse test" : "Expand test")}${attr("title", isExpanded ? "Collapse" : "Expand")}>`);
|
|
1957
|
+
Icon$1($$renderer4, {
|
|
1958
|
+
name: isExpanded ? "chevron-up" : "chevron-down",
|
|
1959
|
+
width: 20,
|
|
1960
|
+
height: 20,
|
|
1961
|
+
class: "block"
|
|
1962
|
+
});
|
|
1963
|
+
$$renderer4.push(`<!----></button></div> `);
|
|
1964
|
+
if (!isExpanded) {
|
|
1965
|
+
$$renderer4.push("<!--[0-->");
|
|
1966
|
+
$$renderer4.push(`<div class="mt-1 px-1 text-sm font-semibold text-rc-gray-300">`);
|
|
1967
|
+
if (t.result) {
|
|
1968
|
+
$$renderer4.push("<!--[0-->");
|
|
1969
|
+
const trend = getExpectedTrend(t.result, selectedHistoryDetail().runConfig.repeats);
|
|
1970
|
+
$$renderer4.push(`<span${attr_class(clsx(resultCountClass(t.result)), "svelte-rdft55")}>${escape_html(t.result.successes)}/${escape_html(t.result.total_runs)}</span> `);
|
|
1971
|
+
if (trend?.showExpected) {
|
|
1972
|
+
$$renderer4.push("<!--[0-->");
|
|
1973
|
+
$$renderer4.push(`<span class="ml-2 text-rc-gray-400">(${escape_html(trend.expectedSuccesses)}/${escape_html(trend.expectedRuns)}
|
|
1974
|
+
expected)</span>`);
|
|
1975
|
+
} else {
|
|
1976
|
+
$$renderer4.push("<!--[-1-->");
|
|
1977
|
+
}
|
|
1978
|
+
$$renderer4.push(`<!--]-->`);
|
|
1979
|
+
} else {
|
|
1980
|
+
$$renderer4.push("<!--[-1-->");
|
|
1981
|
+
$$renderer4.push(`<span class="text-rc-gray-500">—</span>`);
|
|
1982
|
+
}
|
|
1983
|
+
$$renderer4.push(`<!--]--></div>`);
|
|
1984
|
+
} else {
|
|
1985
|
+
$$renderer4.push("<!--[-1-->");
|
|
1986
|
+
}
|
|
1987
|
+
$$renderer4.push(`<!--]--></div> `);
|
|
1988
|
+
if (isExpanded) {
|
|
1989
|
+
$$renderer4.push("<!--[0-->");
|
|
1990
|
+
$$renderer4.push(`<div class="flex flex-col gap-2 p-2"><input class="card-input-subtle pointer-events-none svelte-rdft55" type="text" placeholder="Author"${attr("value", t.author || "")} readonly=""/> `);
|
|
1991
|
+
if (t.evaluation_mode !== "json-deep-equal") {
|
|
1992
|
+
$$renderer4.push("<!--[0-->");
|
|
1993
|
+
$$renderer4.push(`<div class="flex items-center gap-2"><input class="rc-input w-44 svelte-rdft55" type="text"${attr("value", assertionLabel(t.assertion_type))} readonly=""/> <input class="rc-input min-w-0 flex-1 svelte-rdft55" type="text"${attr("value", t.assertion_value)} placeholder="Assertion value" readonly=""/></div>`);
|
|
1994
|
+
} else {
|
|
1995
|
+
$$renderer4.push("<!--[-1-->");
|
|
1996
|
+
}
|
|
1997
|
+
$$renderer4.push(`<!--]--> <div class="flex flex-wrap items-center gap-3">`);
|
|
1998
|
+
Button($$renderer4, {
|
|
1999
|
+
variant: "secondary",
|
|
2000
|
+
size: "small",
|
|
2001
|
+
onclick: () => openJsonViewer(`Test context — ${t.scenario || "Test"}`, parseJson(t.context)),
|
|
2002
|
+
children: ($$renderer5) => {
|
|
2003
|
+
$$renderer5.push(`<!---->View context`);
|
|
2004
|
+
},
|
|
2005
|
+
$$slots: { default: true }
|
|
2006
|
+
});
|
|
2007
|
+
$$renderer4.push(`<!----> `);
|
|
2008
|
+
Button($$renderer4, {
|
|
2009
|
+
variant: "secondary",
|
|
2010
|
+
size: "small",
|
|
2011
|
+
onclick: () => openJsonViewer(`Test mocks — ${t.scenario || "Test"}`, parseJson(t.mocks)),
|
|
2012
|
+
children: ($$renderer5) => {
|
|
2013
|
+
$$renderer5.push(`<!---->View mocks`);
|
|
2014
|
+
},
|
|
2015
|
+
$$slots: { default: true }
|
|
2016
|
+
});
|
|
2017
|
+
$$renderer4.push(`<!----></div> `);
|
|
2018
|
+
MiniEditor($$renderer4, {
|
|
2019
|
+
value: t.conversation_ui,
|
|
2020
|
+
highlights: expectedInfo.highlight ? [
|
|
2021
|
+
{
|
|
2022
|
+
startLine: expectedInfo.highlight.startLine,
|
|
2023
|
+
endLine: expectedInfo.highlight.endLine,
|
|
2024
|
+
className: t.evaluation_mode === "json-deep-equal" ? "test-expected-json-output" : "test-expected-output"
|
|
2025
|
+
}
|
|
2026
|
+
] : void 0,
|
|
2027
|
+
height: 220
|
|
2028
|
+
});
|
|
2029
|
+
$$renderer4.push(`<!----></div> <div class="rounded-b border-t border-rc-gray-700 bg-rc-gray-980 p-2">`);
|
|
2030
|
+
if (t.result) {
|
|
2031
|
+
$$renderer4.push("<!--[0-->");
|
|
2032
|
+
const trend = getExpectedTrend(t.result, selectedHistoryDetail().runConfig.repeats);
|
|
2033
|
+
$$renderer4.push(`<div class="flex flex-wrap items-center gap-3"><div class="text-lg font-extrabold"><span${attr_class(clsx(resultCountClass(t.result)), "svelte-rdft55")}>${escape_html(t.result.successes)}/${escape_html(t.result.total_runs)}</span> `);
|
|
2034
|
+
if (trend?.showExpected) {
|
|
2035
|
+
$$renderer4.push("<!--[0-->");
|
|
2036
|
+
$$renderer4.push(`<span class="ml-2 text-rc-gray-400">(${escape_html(trend.expectedSuccesses)}/${escape_html(trend.expectedRuns)}
|
|
2037
|
+
expected)</span>`);
|
|
2038
|
+
} else {
|
|
2039
|
+
$$renderer4.push("<!--[-1-->");
|
|
2040
|
+
}
|
|
2041
|
+
$$renderer4.push(`<!--]--></div></div> <div class="mt-3 flex flex-col gap-4"><!--[-->`);
|
|
2042
|
+
const each_array_2 = ensure_array_like(t.result.runs);
|
|
2043
|
+
for (let $$index_1 = 0, $$length2 = each_array_2.length; $$index_1 < $$length2; $$index_1++) {
|
|
2044
|
+
let run = each_array_2[$$index_1];
|
|
2045
|
+
$$renderer4.push(`<div class="flex flex-col gap-2"><div${attr_class(`w-full whitespace-pre-wrap break-words rounded-lg px-3 py-2 text-rc-gray-100 ${t.evaluation_mode === "json-deep-equal" ? "font-mono text-sm leading-6" : ""} ${run.success ? "bg-rc-green-700 backdrop-blur-md" : ""}`, "svelte-rdft55")}${attr_style(!run.success ? "background-color: rgb(156 80 80)" : "")}>${escape_html(formatRunOutput(run.text, run.errors, t.evaluation_mode === "json-deep-equal"))}</div> <div${attr_class(`flex w-full flex-col gap-x-4 whitespace-pre-wrap break-words ${run.success ? "text-rc-green-200" : "text-rc-red-800"}`, "svelte-rdft55")}><div class="flex items-center gap-0">`);
|
|
2046
|
+
if (run.success) {
|
|
2047
|
+
$$renderer4.push("<!--[0-->");
|
|
2048
|
+
Icon$1($$renderer4, {
|
|
2049
|
+
name: "checkmark",
|
|
2050
|
+
width: 20,
|
|
2051
|
+
height: 20,
|
|
2052
|
+
class: "shrink-0 self-end"
|
|
2053
|
+
});
|
|
2054
|
+
} else {
|
|
2055
|
+
$$renderer4.push("<!--[-1-->");
|
|
2056
|
+
Icon$1($$renderer4, {
|
|
2057
|
+
name: "close",
|
|
2058
|
+
width: 18,
|
|
2059
|
+
height: 18,
|
|
2060
|
+
class: "shrink-0 scale-110 self-start"
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
$$renderer4.push(`<!--]--> <span>${escape_html(run.success ? "Pass" : formatEvaluation(run.evaluation) || (run.errors || "").split(/\r?\n/)[0] || "Fail")}</span></div> `);
|
|
2064
|
+
RunResultActions($$renderer4, {
|
|
2065
|
+
scenario: t.scenario || "Test",
|
|
2066
|
+
runIndex: run.index,
|
|
2067
|
+
links: run.links,
|
|
2068
|
+
variants: t.result.runs,
|
|
2069
|
+
region: region(),
|
|
2070
|
+
actionsDisabled: running,
|
|
2071
|
+
actionsInert: isSaving(),
|
|
2072
|
+
addTestDisabled: !run.text.trim(),
|
|
2073
|
+
showAnalyze: t.evaluation_mode !== "json-deep-equal",
|
|
2074
|
+
analyzeDisabled: analyzeRunning,
|
|
2075
|
+
fixDisabled: !!actions.getActivePromptEditId(),
|
|
2076
|
+
onFix: !run.success ? () => openTestFix(t, run.text || run.errors || "—") : void 0
|
|
2077
|
+
});
|
|
2078
|
+
$$renderer4.push(`<!----></div></div>`);
|
|
2079
|
+
}
|
|
2080
|
+
$$renderer4.push(`<!--]--></div>`);
|
|
2081
|
+
} else {
|
|
2082
|
+
$$renderer4.push("<!--[-1-->");
|
|
2083
|
+
}
|
|
2084
|
+
$$renderer4.push(`<!--]--></div>`);
|
|
2085
|
+
} else {
|
|
2086
|
+
$$renderer4.push("<!--[-1-->");
|
|
2087
|
+
}
|
|
2088
|
+
$$renderer4.push(`<!--]--></div></div></div></div>`);
|
|
2089
|
+
}
|
|
2090
|
+
$$renderer4.push(`<!--]--></div>`);
|
|
2091
|
+
}
|
|
2092
|
+
$$renderer4.push(`<!--]--></div>`);
|
|
2093
|
+
} else {
|
|
2094
|
+
$$renderer4.push("<!--[-1-->");
|
|
2095
|
+
}
|
|
2096
|
+
$$renderer4.push(`<!--]--></section></div>`);
|
|
2097
|
+
}, footer = function($$renderer4) {
|
|
2098
|
+
Button($$renderer4, {
|
|
2099
|
+
variant: "outlined",
|
|
2100
|
+
size: "small",
|
|
2101
|
+
onclick: () => showHistoryModal = false,
|
|
2102
|
+
children: ($$renderer5) => {
|
|
2103
|
+
$$renderer5.push(`<!---->Close`);
|
|
2104
|
+
},
|
|
2105
|
+
$$slots: { default: true }
|
|
2106
|
+
});
|
|
2107
|
+
};
|
|
2108
|
+
Modal($$renderer3, {
|
|
2109
|
+
title: "Test history",
|
|
2110
|
+
class: "!w-[95vw] !max-w-[90rem]",
|
|
2111
|
+
get open() {
|
|
2112
|
+
return showHistoryModal;
|
|
2113
|
+
},
|
|
2114
|
+
set open($$value) {
|
|
2115
|
+
showHistoryModal = $$value;
|
|
2116
|
+
$$settled = false;
|
|
2117
|
+
},
|
|
2118
|
+
children,
|
|
2119
|
+
footer,
|
|
2120
|
+
$$slots: { default: true, footer: true }
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
$$renderer3.push(`<!----> `);
|
|
2124
|
+
{
|
|
2125
|
+
let children = function($$renderer4) {
|
|
2126
|
+
$$renderer4.push(`<pre class="whitespace-pre-wrap font-mono text-gray-200">${escape_html(viewerContent || "—")}</pre>`);
|
|
2127
|
+
}, footer = function($$renderer4) {
|
|
2128
|
+
Button($$renderer4, {
|
|
2129
|
+
variant: "outlined",
|
|
2130
|
+
size: "small",
|
|
2131
|
+
onclick: () => showViewerModal = false,
|
|
2132
|
+
children: ($$renderer5) => {
|
|
2133
|
+
$$renderer5.push(`<!---->Close`);
|
|
2134
|
+
},
|
|
2135
|
+
$$slots: { default: true }
|
|
2136
|
+
});
|
|
2137
|
+
};
|
|
2138
|
+
Modal($$renderer3, {
|
|
2139
|
+
title: viewerTitle,
|
|
2140
|
+
class: "!w-[80vw] !max-w-5xl",
|
|
2141
|
+
get open() {
|
|
2142
|
+
return showViewerModal;
|
|
2143
|
+
},
|
|
2144
|
+
set open($$value) {
|
|
2145
|
+
showViewerModal = $$value;
|
|
2146
|
+
$$settled = false;
|
|
2147
|
+
},
|
|
2148
|
+
children,
|
|
2149
|
+
footer,
|
|
2150
|
+
$$slots: { default: true, footer: true }
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
$$renderer3.push(`<!----> `);
|
|
2154
|
+
{
|
|
2155
|
+
$$renderer3.push("<!--[-1-->");
|
|
2156
|
+
}
|
|
2157
|
+
$$renderer3.push(`<!--]-->`);
|
|
2158
|
+
}
|
|
2159
|
+
do {
|
|
2160
|
+
$$settled = true;
|
|
2161
|
+
$$inner_renderer = $$renderer2.copy();
|
|
2162
|
+
$$render_inner($$inner_renderer);
|
|
2163
|
+
} while (!$$settled);
|
|
2164
|
+
$$renderer2.subsume($$inner_renderer);
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
export { _page as default };
|
|
2169
|
+
//# sourceMappingURL=_page.svelte.js-UVUg89-t.js.map
|