cognova 0.2.13 → 0.2.15
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/-mGU8_Hv.js +1 -0
- package/.output/public/_nuxt/0GqCtQ9S.js +1 -0
- package/.output/public/_nuxt/{DFpmIy6J.js → 1wCoXZ14.js} +1 -1
- package/.output/public/_nuxt/2J1KxdHv.js +1 -0
- package/.output/public/_nuxt/6VDUZECX.js +1 -0
- package/.output/public/_nuxt/{C7m9zGMG.js → 8WMJQbWG.js} +1 -1
- package/.output/public/_nuxt/9Rw88G6h.js +1 -0
- package/.output/public/_nuxt/{BjsKx597.js → B-yW4SD3.js} +1 -1
- package/.output/public/_nuxt/B20jNAhm.js +1 -0
- package/.output/public/_nuxt/B3OpTH_e.js +1 -0
- package/.output/public/_nuxt/B9Y3_B5G.js +1 -0
- package/.output/public/_nuxt/B9_vmatf.js +1 -0
- package/.output/public/_nuxt/B9o6sFST.js +1 -0
- package/.output/public/_nuxt/{CseYuM6E.js → BAY3_Hrq.js} +1 -1
- package/.output/public/_nuxt/{B_9zJTqe.js → BD5rPkc2.js} +3 -3
- package/.output/public/_nuxt/BGYoW3kO.js +1 -0
- package/.output/public/_nuxt/BHUy5EAj.js +1 -0
- package/.output/public/_nuxt/BLdMRpJD.js +1 -0
- package/.output/public/_nuxt/{D6tVZcRs.js → BOCn_SGf.js} +12 -12
- package/.output/public/_nuxt/BQi8LIrn.js +1 -0
- package/.output/public/_nuxt/BS1t375R.js +1 -0
- package/.output/public/_nuxt/BTGeP1bA.js +1 -0
- package/.output/public/_nuxt/{pdYvpiud.js → BVYYP4eQ.js} +5 -5
- package/.output/public/_nuxt/BWQ7zE01.js +1 -0
- package/.output/public/_nuxt/BWqJInD3.js +1 -0
- package/.output/public/_nuxt/BXdQ9ASJ.js +1 -0
- package/.output/public/_nuxt/{DQhm-UPG.js → BXxZokD_.js} +2 -2
- package/.output/public/_nuxt/BZ7DAtPi.js +1 -0
- package/.output/public/_nuxt/BZm9w7en.js +1 -0
- package/.output/public/_nuxt/B_hNqC64.js +1 -0
- package/.output/public/_nuxt/Be47YE2L.js +1 -0
- package/.output/public/_nuxt/BgIS9_ti.js +39 -0
- package/.output/public/_nuxt/BgavRUl_.js +1 -0
- package/.output/public/_nuxt/Bh0yGTzr.js +1 -0
- package/.output/public/_nuxt/BhhMUror.js +1 -0
- package/.output/public/_nuxt/Bj5e7QPz.js +1 -0
- package/.output/public/_nuxt/{9kAKMaPC.js → Bnn59-FS.js} +1 -1
- package/.output/public/_nuxt/BoCU3mWu.js +1 -0
- package/.output/public/_nuxt/Br6epbzY.js +1 -0
- package/.output/public/_nuxt/Br81Sr2R.js +1 -0
- package/.output/public/_nuxt/BrkEOLHu.js +9 -0
- package/.output/public/_nuxt/BtrNCc2S.js +1 -0
- package/.output/public/_nuxt/BxsQlbgl.js +1 -0
- package/.output/public/_nuxt/BzrhNhdT.js +1 -0
- package/.output/public/_nuxt/{B-DMcEU9.js → C-78dDNd.js} +1 -1
- package/.output/public/_nuxt/C1oaoi1p.js +1 -0
- package/.output/public/_nuxt/C2-_hcwB.js +1 -0
- package/.output/public/_nuxt/{TxMdabnL.js → C2Gh3qqr.js} +1 -1
- package/.output/public/_nuxt/C2OHaW6l.js +1 -0
- package/.output/public/_nuxt/C3szZmvA.js +1 -0
- package/.output/public/_nuxt/C3xzleKP.js +1 -0
- package/.output/public/_nuxt/C4sG6rdW.js +1 -0
- package/.output/public/_nuxt/C5Cu9Fx6.js +1 -0
- package/.output/public/_nuxt/{LRO7YHoH.js → C5gfF7J1.js} +1 -1
- package/.output/public/_nuxt/C6Eoiclo.js +1 -0
- package/.output/public/_nuxt/C7hFztZL.js +1 -0
- package/.output/public/_nuxt/CAVUAxNU.js +2 -0
- package/.output/public/_nuxt/{CiNxIhaq.js → CCeM5lW2.js} +1 -1
- package/.output/public/_nuxt/CDcQ31Eh.js +1 -0
- package/.output/public/_nuxt/CHbHVtCy.js +1 -0
- package/.output/public/_nuxt/CHnVFnBW.js +1 -0
- package/.output/public/_nuxt/CLNcmNQS.js +1 -0
- package/.output/public/_nuxt/{D7N3EZ-I.js → CPwCTHun.js} +1 -1
- package/.output/public/_nuxt/{CFmvNggn.js → CS8SdmH2.js} +1 -1
- package/.output/public/_nuxt/CTGm_mc8.js +1 -0
- package/.output/public/_nuxt/{DNcOC5zj.js → CTQFGHjS.js} +1 -1
- package/.output/public/_nuxt/{B0nzD8Sk.js → CVVtVzXC.js} +1 -1
- package/.output/public/_nuxt/CZNOaqeX.js +1 -0
- package/.output/public/_nuxt/C_A_NkeC.js +2 -0
- package/.output/public/_nuxt/{CGplHfmR.js → C_doutX-.js} +1 -1
- package/.output/public/_nuxt/{BrX-PnSK.js → CbDLhrNA.js} +2 -2
- package/.output/public/_nuxt/CePKCqSb.js +1 -0
- package/.output/public/_nuxt/Cet4T_yO.js +1 -0
- package/.output/public/_nuxt/{C6OSRpRd.js → CjJPkhbc.js} +1 -1
- package/.output/public/_nuxt/CkZT4LGq.js +1 -0
- package/.output/public/_nuxt/CkrW8sGL.js +1 -0
- package/.output/public/_nuxt/Co0UxVsx.js +1 -0
- package/.output/public/_nuxt/CqS0zXYQ.js +1 -0
- package/.output/public/_nuxt/CskGv_Km.js +1 -0
- package/.output/public/_nuxt/{DuzpliIL.js → CuvkTsqs.js} +1 -1
- package/.output/public/_nuxt/{B2wI_pYg.js → CxMuZEwX.js} +1 -1
- package/.output/public/_nuxt/{9O1MXkck.js → CxSijT71.js} +8 -8
- package/.output/public/_nuxt/Cywo6tZI.js +1 -0
- package/.output/public/_nuxt/D1reIfpX.js +1 -0
- package/.output/public/_nuxt/D1uV2uir.js +1 -0
- package/.output/public/_nuxt/{BWuL2CzO.js → D2edadpd.js} +1 -1
- package/.output/public/_nuxt/D3cEeQh7.js +1 -0
- package/.output/public/_nuxt/D41A2mE2.js +1 -0
- package/.output/public/_nuxt/D49P2RhG.js +1 -0
- package/.output/public/_nuxt/D867g6Ds.js +1 -0
- package/.output/public/_nuxt/DEFWIjWl.js +1 -0
- package/.output/public/_nuxt/DFTEBTzZ.js +1 -0
- package/.output/public/_nuxt/{-HePz7lp.js → DHRexj9X.js} +2 -2
- package/.output/public/_nuxt/DL4EpgqQ.js +1 -0
- package/.output/public/_nuxt/DLHnP6tw.js +1 -0
- package/.output/public/_nuxt/DM20WaLq.js +1 -0
- package/.output/public/_nuxt/{B8DFEjxA.js → DNAMjHbb.js} +1 -1
- package/.output/public/_nuxt/{CLkkdThv.js → DP8t9VWs.js} +24 -24
- package/.output/public/_nuxt/DTR31rjp.js +1 -0
- package/.output/public/_nuxt/{Bc8bTnkd.js → DTlSLSo1.js} +3 -3
- package/.output/public/_nuxt/{DowkFZ2V.js → DVdnhfXT.js} +1 -1
- package/.output/public/_nuxt/{DvHS7_h2.js → DZikIgHK.js} +1 -1
- package/.output/public/_nuxt/D_YGqvw_.js +1 -0
- package/.output/public/_nuxt/D_k1YwXm.js +1 -0
- package/.output/public/_nuxt/Daf2MbWG.js +7 -0
- package/.output/public/_nuxt/DcJ0GstJ.js +1 -0
- package/.output/public/_nuxt/DcYKh6QA.js +1 -0
- package/.output/public/_nuxt/DhN3_DYH.js +1 -0
- package/.output/public/_nuxt/DhSvBSt3.js +1 -0
- package/.output/public/_nuxt/DhlIWT8K.js +1 -0
- package/.output/public/_nuxt/DjsqyRqt.js +1 -0
- package/.output/public/_nuxt/DpSM97eH.js +1 -0
- package/.output/public/_nuxt/DqR9SdeU.js +1 -0
- package/.output/public/_nuxt/DqmQtg6Y.js +1 -0
- package/.output/public/_nuxt/Dsuag_iW.js +1 -0
- package/.output/public/_nuxt/Dtr_0IbE.js +1 -0
- package/.output/public/_nuxt/DwrmFEZN.js +1 -0
- package/.output/public/_nuxt/DxE8r3r4.js +1 -0
- package/.output/public/_nuxt/G_CsVlOR.js +1 -0
- package/.output/public/_nuxt/Gyw_2f6x.js +1 -0
- package/.output/public/_nuxt/HStC1ZyE.js +1 -0
- package/.output/public/_nuxt/Hh9mv0Ek.js +1 -0
- package/.output/public/_nuxt/LR0kCjbe.js +1 -0
- package/.output/public/_nuxt/MYeLvJGV.js +1 -0
- package/.output/public/_nuxt/NKs0EGrh.js +1 -0
- package/.output/public/_nuxt/PY5EGujn.js +1 -0
- package/.output/public/_nuxt/PamJNol9.js +1 -0
- package/.output/public/_nuxt/RlvwEbHv.js +1 -0
- package/.output/public/_nuxt/{BghuwIGa.js → TNpdJOlc.js} +1 -1
- package/.output/public/_nuxt/TSYrPbLR.js +1 -0
- package/.output/public/_nuxt/U-eBrbR4.js +1 -0
- package/.output/public/_nuxt/UuqXScSw.js +1 -0
- package/.output/public/_nuxt/V04-MrLN.js +1 -0
- package/.output/public/_nuxt/X0o5GcBb.js +1 -0
- package/.output/public/_nuxt/XQNzmQy9.js +1 -0
- package/.output/public/_nuxt/Y59XKprr.js +1 -0
- package/.output/public/_nuxt/YZQjZgsH.js +1 -0
- package/.output/public/_nuxt/_-TGPiLQ.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7c42ae85-1cae-45f0-8cb9-ad3a10165c2c.json +1 -0
- package/.output/public/_nuxt/dashboard.ByJQ-Wzh.css +1 -0
- package/.output/public/_nuxt/entry.ZJxWCrU6.css +1 -0
- package/.output/public/_nuxt/{D12qPplu.js → hCeWb_38.js} +1 -1
- package/.output/public/_nuxt/{sBzyvWMJ.js → hrPTRWjM.js} +1 -1
- package/.output/public/_nuxt/jC4pIK1p.js +1 -0
- package/.output/public/_nuxt/jTT1R-Vz.js +1 -0
- package/.output/public/_nuxt/{CRRw0Thu.js → kkAMoB43.js} +1 -1
- package/.output/public/_nuxt/{h_bXa-f2.js → mzM4BGtv.js} +1 -1
- package/.output/public/_nuxt/o-s8JBm2.js +1 -0
- package/.output/public/_nuxt/pwJTkIQ4.js +1 -0
- package/.output/public/_nuxt/{BL1mkqgd.js → rIgg2Arf.js} +3 -3
- package/.output/public/_nuxt/subdxgSQ.js +1 -0
- package/.output/public/_nuxt/t8B72leH.js +1 -0
- package/.output/public/_nuxt/vCFAHwdt.js +1 -0
- package/.output/public/_nuxt/z-MP0bB7.js +1 -0
- package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +1 -1
- package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
- package/.output/server/chunks/build/{EditorToolbar-DIfb5arC.mjs → EditorToolbar-B9OwSI5e.mjs} +3 -3
- package/.output/server/chunks/build/{EditorToolbar-DIfb5arC.mjs.map → EditorToolbar-B9OwSI5e.mjs.map} +1 -1
- package/.output/server/chunks/build/Img-CWLmvN1t.mjs +1 -1
- package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
- package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
- package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
- package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
- package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
- package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +1 -1
- package/.output/server/chunks/build/{_id_-DN00UDdO.mjs → _id_-CwBeklIM.mjs} +296 -430
- package/.output/server/chunks/build/_id_-CwBeklIM.mjs.map +1 -0
- package/.output/server/chunks/build/{_name_-BnS_KEfX.mjs → _name_-D7MtW4Vu.mjs} +2 -2
- package/.output/server/chunks/build/{_name_-BnS_KEfX.mjs.map → _name_-D7MtW4Vu.mjs.map} +1 -1
- package/.output/server/chunks/build/{_uuid_-DfJaumTE.mjs → _uuid_-lvG92ein.mjs} +4 -4
- package/.output/server/chunks/build/{_uuid_-DfJaumTE.mjs.map → _uuid_-lvG92ein.mjs.map} +1 -1
- package/.output/server/chunks/build/account-LDZ4TL6x.mjs +513 -0
- package/.output/server/chunks/build/account-LDZ4TL6x.mjs.map +1 -0
- package/.output/server/chunks/build/app-CGhRZPNT.mjs +252 -0
- package/.output/server/chunks/build/app-CGhRZPNT.mjs.map +1 -0
- package/.output/server/chunks/build/{chat-m4-n9vC6.mjs → chat-BphuYhvA.mjs} +18 -27
- package/.output/server/chunks/build/chat-BphuYhvA.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
- package/.output/server/chunks/build/{dashboard-CiVTAZuF.mjs → dashboard-nDujDyOg.mjs} +55 -16
- package/.output/server/chunks/build/{dashboard-CiVTAZuF.mjs.map → dashboard-nDujDyOg.mjs.map} +1 -1
- package/.output/server/chunks/build/{docs-ChGwOPg5.mjs → docs-Bwucwp0r.mjs} +664 -592
- package/.output/server/chunks/build/docs-Bwucwp0r.mjs.map +1 -0
- package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
- package/.output/server/chunks/build/{hooks-D328DcO6.mjs → hooks-D6PmTth8.mjs} +19 -29
- package/.output/server/chunks/build/hooks-D6PmTth8.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CAnGTRlu.mjs → index-CJkn2jiM.mjs} +2 -2
- package/.output/server/chunks/build/{index-CAnGTRlu.mjs.map → index-CJkn2jiM.mjs.map} +1 -1
- package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
- package/.output/server/chunks/build/index-Cz9Y6NwN.mjs +723 -0
- package/.output/server/chunks/build/index-Cz9Y6NwN.mjs.map +1 -0
- package/.output/server/chunks/build/index-hwhuKhuZ.mjs +76 -0
- package/.output/server/chunks/build/index-hwhuKhuZ.mjs.map +1 -0
- package/.output/server/chunks/build/integrations-D5JWURiJ.mjs +1499 -0
- package/.output/server/chunks/build/integrations-D5JWURiJ.mjs.map +1 -0
- package/.output/server/chunks/build/{library-Aeg7_Lsb.mjs → library-DxRdgP6X.mjs} +2 -2
- package/.output/server/chunks/build/{library-Aeg7_Lsb.mjs.map → library-DxRdgP6X.mjs.map} +1 -1
- package/.output/server/chunks/build/{login-DnnElTl2.mjs → login-BmER_VoU.mjs} +2 -2
- package/.output/server/chunks/build/{login-DnnElTl2.mjs.map → login-BmER_VoU.mjs.map} +1 -1
- package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs +669 -0
- package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +65 -34
- package/.output/server/chunks/build/server.mjs.map +1 -1
- package/.output/server/chunks/build/settings-neokAVE5.mjs +154 -0
- package/.output/server/chunks/build/settings-neokAVE5.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +2 -2
- package/.output/server/chunks/build/{tasks-DnAFqbtt.mjs → tasks-CnpIQNpS.mjs} +27 -37
- package/.output/server/chunks/build/tasks-CnpIQNpS.mjs.map +1 -0
- package/.output/server/chunks/build/{useAgents-DHEXiFSc.mjs → useAgents-nmbkB9-_.mjs} +5 -26
- package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs.map +1 -0
- package/.output/server/chunks/build/{view-n2sYa4Zh.mjs → view-mb0ISqfM.mjs} +3 -3
- package/.output/server/chunks/build/{view-n2sYa4Zh.mjs.map → view-mb0ISqfM.mjs.map} +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +1000 -858
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +17 -2
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get3.mjs +21 -3
- package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get4.mjs +10 -9
- package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get9.mjs +10 -8
- package/.output/server/chunks/routes/api/index.get9.mjs.map +1 -1
- package/.output/server/chunks/routes/api/memory/search.get.mjs +10 -5
- package/.output/server/chunks/routes/api/memory/search.get.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/app/components/AssistantPanel.client.vue +16 -314
- package/app/components/agents/AgentCard.vue +111 -0
- package/app/components/agents/AgentInfoCard.vue +54 -0
- package/app/components/agents/AgentRunHistory.vue +103 -0
- package/app/components/agents/AgentRunModal.vue +1 -24
- package/app/components/agents/AgentStatsCards.vue +1 -26
- package/app/components/assistant/AssistantChat.vue +156 -0
- package/app/components/assistant/AssistantTerminal.client.vue +178 -0
- package/app/components/chat/ConversationList.vue +2 -12
- package/app/components/files/FileTree.vue +23 -202
- package/app/components/files/FileTreeModals.vue +226 -0
- package/app/components/hooks/HookStatsCards.vue +1 -6
- package/app/components/hooks/ToolBreakdownTable.vue +1 -6
- package/app/components/search/DashboardSearch.vue +38 -1
- package/app/components/tasks/TaskCard.vue +2 -7
- package/app/components/tasks/TaskDetail.vue +4 -9
- package/app/composables/useSearch.ts +21 -11
- package/app/layouts/dashboard.vue +1 -1
- package/app/pages/agents/[id].vue +6 -197
- package/app/pages/agents/index.vue +9 -142
- package/app/pages/settings/account.vue +243 -0
- package/app/pages/settings/app.vue +230 -0
- package/app/pages/settings/index.vue +12 -0
- package/app/pages/settings/integrations.vue +794 -0
- package/app/pages/settings/manage-secrets.vue +295 -0
- package/app/pages/settings.vue +20 -1581
- package/dist/cli/index.js +676 -212
- package/package.json +1 -1
- package/server/api/agents/index.get.ts +20 -1
- package/server/api/conversations/index.get.ts +23 -5
- package/server/api/documents/index.get.ts +11 -9
- package/server/api/memory/search.get.ts +11 -6
- package/server/api/tasks/index.get.ts +11 -9
- package/server/drizzle/migrations/0016_full_text_search.sql +127 -0
- package/server/drizzle/migrations/meta/_journal.json +7 -0
- package/shared/types/index.ts +7 -1
- package/shared/utils/formatting.ts +105 -0
- package/.output/public/_nuxt/4ALIM-zZ.js +0 -1
- package/.output/public/_nuxt/5sUbkh_6.js +0 -16
- package/.output/public/_nuxt/6bB8Ev7a.js +0 -1
- package/.output/public/_nuxt/7rT1DCe2.js +0 -1
- package/.output/public/_nuxt/B2PqR2Vu.js +0 -1
- package/.output/public/_nuxt/B5FuOh7E.js +0 -1
- package/.output/public/_nuxt/B6om4MW2.js +0 -1
- package/.output/public/_nuxt/B7ikW4eF.js +0 -1
- package/.output/public/_nuxt/B9kWNcU7.js +0 -1
- package/.output/public/_nuxt/BAZ8sewA.js +0 -1
- package/.output/public/_nuxt/BCPwL4ma.js +0 -1
- package/.output/public/_nuxt/BCrlmHh_.js +0 -1
- package/.output/public/_nuxt/BD-AFJWW.js +0 -1
- package/.output/public/_nuxt/BGcQMReV.js +0 -1
- package/.output/public/_nuxt/BNJJSRKh.js +0 -1
- package/.output/public/_nuxt/BNeeERBt.js +0 -1
- package/.output/public/_nuxt/BSJb5amZ.js +0 -1
- package/.output/public/_nuxt/BSsaE9Db.js +0 -1
- package/.output/public/_nuxt/BVO3XpHT.js +0 -1
- package/.output/public/_nuxt/B_Lr1vlV.js +0 -1
- package/.output/public/_nuxt/Bl0qBhCG.js +0 -1
- package/.output/public/_nuxt/Bl43dkDq.js +0 -1
- package/.output/public/_nuxt/BnMTFF5R.js +0 -1
- package/.output/public/_nuxt/BtV7oNn3.js +0 -1
- package/.output/public/_nuxt/BvFYnRMR.js +0 -1
- package/.output/public/_nuxt/BvTUBUNN.js +0 -1
- package/.output/public/_nuxt/ByLsRRoQ.js +0 -1
- package/.output/public/_nuxt/C1LcEMwB.js +0 -1
- package/.output/public/_nuxt/C2IiXp9N.js +0 -2
- package/.output/public/_nuxt/C796kFT9.js +0 -1
- package/.output/public/_nuxt/C8AtdrMH.js +0 -1
- package/.output/public/_nuxt/CAWbHTgy.js +0 -1
- package/.output/public/_nuxt/CJPrV25_.js +0 -1
- package/.output/public/_nuxt/CKKEWapF.js +0 -1
- package/.output/public/_nuxt/CNjv28J2.js +0 -1
- package/.output/public/_nuxt/CT8s4rqa.js +0 -1
- package/.output/public/_nuxt/CZSOrxUy.js +0 -1
- package/.output/public/_nuxt/CaNEL9JC.js +0 -39
- package/.output/public/_nuxt/CbTLg9oX.js +0 -1
- package/.output/public/_nuxt/CfCXpVn5.js +0 -1
- package/.output/public/_nuxt/ChmNlvWR.js +0 -1
- package/.output/public/_nuxt/Ck0QYdxe.js +0 -1
- package/.output/public/_nuxt/Ckb0pu4-.js +0 -1
- package/.output/public/_nuxt/CkwPRs1D.js +0 -1
- package/.output/public/_nuxt/CmEJg8C6.js +0 -2
- package/.output/public/_nuxt/CmL_vMJD.js +0 -1
- package/.output/public/_nuxt/Cq8zPxkT.js +0 -1
- package/.output/public/_nuxt/CxRnB4NC.js +0 -1
- package/.output/public/_nuxt/D0zMyG8n.js +0 -1
- package/.output/public/_nuxt/D1XYB283.js +0 -1
- package/.output/public/_nuxt/D2NxqyzW.js +0 -1
- package/.output/public/_nuxt/D5xyrvFu.js +0 -1
- package/.output/public/_nuxt/D8iBB0Py.js +0 -1
- package/.output/public/_nuxt/D8oIH8m1.js +0 -1
- package/.output/public/_nuxt/DB2zZev7.js +0 -1
- package/.output/public/_nuxt/DBrOAqkm.js +0 -1
- package/.output/public/_nuxt/DDXDFweK.js +0 -1
- package/.output/public/_nuxt/DFZkCmLQ.js +0 -1
- package/.output/public/_nuxt/DKZmgHNU.js +0 -1
- package/.output/public/_nuxt/DR8tGJhL.js +0 -1
- package/.output/public/_nuxt/DVAEVTjy.js +0 -1
- package/.output/public/_nuxt/DVqrPkCJ.js +0 -1
- package/.output/public/_nuxt/DWZ9ieYa.js +0 -1
- package/.output/public/_nuxt/DWj6VsZv.js +0 -1
- package/.output/public/_nuxt/DXJ9PxCv.js +0 -1
- package/.output/public/_nuxt/D_ziPROx.js +0 -1
- package/.output/public/_nuxt/Da2vwoYG.js +0 -1
- package/.output/public/_nuxt/Ddz3HcBB.js +0 -1
- package/.output/public/_nuxt/DgYei0bK.js +0 -1
- package/.output/public/_nuxt/Di_3GV_R.js +0 -1
- package/.output/public/_nuxt/Djog1f_e.js +0 -1
- package/.output/public/_nuxt/Dkap2-Pj.js +0 -7
- package/.output/public/_nuxt/DlJe_sHk.js +0 -1
- package/.output/public/_nuxt/DlPOQpH_.js +0 -1
- package/.output/public/_nuxt/DmYWMtVA.js +0 -1
- package/.output/public/_nuxt/DmxKU7sH.js +0 -1
- package/.output/public/_nuxt/DsodHRrQ.js +0 -1
- package/.output/public/_nuxt/DwSY6_2U.js +0 -1
- package/.output/public/_nuxt/DypJaSm-.js +0 -1
- package/.output/public/_nuxt/DzKaXH6P.js +0 -1
- package/.output/public/_nuxt/FK-jSuOT.js +0 -1
- package/.output/public/_nuxt/Fc2JsQt4.js +0 -1
- package/.output/public/_nuxt/IYCBGuRS.js +0 -1
- package/.output/public/_nuxt/NrRzUJNY.js +0 -1
- package/.output/public/_nuxt/OeVS0Rsb.js +0 -1
- package/.output/public/_nuxt/OlF0QnKF.js +0 -1
- package/.output/public/_nuxt/QuAoqY7t.js +0 -1
- package/.output/public/_nuxt/RlXHkmOd.js +0 -9
- package/.output/public/_nuxt/WZnvL9Dh.js +0 -1
- package/.output/public/_nuxt/ZvG7a1W3.js +0 -1
- package/.output/public/_nuxt/aPNZBVrG.js +0 -1
- package/.output/public/_nuxt/builds/meta/495aca73-bfa5-456e-b96a-f02e009c72d3.json +0 -1
- package/.output/public/_nuxt/dashboard.BxCOkJwt.css +0 -1
- package/.output/public/_nuxt/entry.C_udkZt9.css +0 -1
- package/.output/public/_nuxt/evY81hM3.js +0 -1
- package/.output/public/_nuxt/i6QBzaEi.js +0 -1
- package/.output/public/_nuxt/iTVKJ1kw.js +0 -1
- package/.output/public/_nuxt/j92uR3uR.js +0 -1
- package/.output/public/_nuxt/jdUkeAj_.js +0 -1
- package/.output/public/_nuxt/jeRvcMHU.js +0 -1
- package/.output/public/_nuxt/kuv0zpKq.js +0 -1
- package/.output/public/_nuxt/l3lKQs7b.js +0 -1
- package/.output/public/_nuxt/qIgZ7OXa.js +0 -1
- package/.output/public/_nuxt/qcVwZv8e.js +0 -1
- package/.output/public/_nuxt/ru8fqqWs.js +0 -1
- package/.output/public/_nuxt/sgmhgpCS.js +0 -1
- package/.output/public/_nuxt/y2jv0da-.js +0 -1
- package/.output/public/_nuxt/yyS4-kAX.js +0 -1
- package/.output/public/_nuxt/zIoBLBHF.js +0 -1
- package/.output/public/_nuxt/zpazwPgx.js +0 -1
- package/.output/server/chunks/build/_id_-DN00UDdO.mjs.map +0 -1
- package/.output/server/chunks/build/chat-m4-n9vC6.mjs.map +0 -1
- package/.output/server/chunks/build/docs-ChGwOPg5.mjs.map +0 -1
- package/.output/server/chunks/build/hooks-D328DcO6.mjs.map +0 -1
- package/.output/server/chunks/build/index-C9PuieXh.mjs +0 -820
- package/.output/server/chunks/build/index-C9PuieXh.mjs.map +0 -1
- package/.output/server/chunks/build/settings-B2KXoGcz.mjs +0 -3232
- package/.output/server/chunks/build/settings-B2KXoGcz.mjs.map +0 -1
- package/.output/server/chunks/build/tasks-DnAFqbtt.mjs.map +0 -1
- package/.output/server/chunks/build/useAgents-DHEXiFSc.mjs.map +0 -1
|
@@ -1,820 +0,0 @@
|
|
|
1
|
-
import { _ as _sfc_main$1, a as _sfc_main$5 } from './DashboardNavbar-Cpq8yKA0.mjs';
|
|
2
|
-
import { _ as _sfc_main$6 } from './FieldGroup-KzsWn_XG.mjs';
|
|
3
|
-
import { i as useToast, A as useRouter, g as _sfc_main$d, _ as _sfc_main$8 } from './server.mjs';
|
|
4
|
-
import { u as useAgents, _ as __nuxt_component_4, a as __nuxt_component_5, b as __nuxt_component_11 } from './useAgents-DHEXiFSc.mjs';
|
|
5
|
-
import { _ as _sfc_main$2 } from './Card-G40WAFiH.mjs';
|
|
6
|
-
import { _ as _sfc_main$3 } from './Badge-C1RKkIgG.mjs';
|
|
7
|
-
import { _ as _sfc_main$4 } from './Switch-GWdksmY6.mjs';
|
|
8
|
-
import { _ as _sfc_main$7 } from './Slideover-DJNgcnZ2.mjs';
|
|
9
|
-
import { defineComponent, ref, watch, mergeProps, withCtx, unref, createVNode, createTextVNode, toDisplayString, createBlock, createCommentVNode, openBlock, withModifiers, Fragment, renderList, isRef, useSSRContext } from 'vue';
|
|
10
|
-
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate } from 'vue/server-renderer';
|
|
11
|
-
import { u as useNotificationBus } from './useNotificationBus-BG5JNQf1.mjs';
|
|
12
|
-
import { u as usePreferences } from './usePreferences-DH1QjxOj.mjs';
|
|
13
|
-
import './DashboardSidebarToggle-Chnqv04k.mjs';
|
|
14
|
-
import '@vueuse/core';
|
|
15
|
-
import './cookie-C_iulBi6.mjs';
|
|
16
|
-
import '../nitro/nitro.mjs';
|
|
17
|
-
import '@anthropic-ai/claude-agent-sdk';
|
|
18
|
-
import 'module';
|
|
19
|
-
import 'path';
|
|
20
|
-
import 'os';
|
|
21
|
-
import 'node:http';
|
|
22
|
-
import 'node:https';
|
|
23
|
-
import 'node:crypto';
|
|
24
|
-
import 'stream';
|
|
25
|
-
import 'events';
|
|
26
|
-
import 'http';
|
|
27
|
-
import 'crypto';
|
|
28
|
-
import 'buffer';
|
|
29
|
-
import 'zlib';
|
|
30
|
-
import 'https';
|
|
31
|
-
import 'net';
|
|
32
|
-
import 'tls';
|
|
33
|
-
import 'url';
|
|
34
|
-
import 'node:events';
|
|
35
|
-
import 'node:buffer';
|
|
36
|
-
import 'node:fs';
|
|
37
|
-
import 'node:path';
|
|
38
|
-
import 'fs';
|
|
39
|
-
import 'drizzle-orm/postgres-js/migrator';
|
|
40
|
-
import 'drizzle-orm';
|
|
41
|
-
import 'drizzle-orm/postgres-js';
|
|
42
|
-
import 'postgres';
|
|
43
|
-
import 'drizzle-orm/pg-core';
|
|
44
|
-
import 'better-auth';
|
|
45
|
-
import 'better-auth/adapters/drizzle';
|
|
46
|
-
import 'chokidar';
|
|
47
|
-
import 'fs/promises';
|
|
48
|
-
import 'gray-matter';
|
|
49
|
-
import 'cron';
|
|
50
|
-
import 'child_process';
|
|
51
|
-
import 'util';
|
|
52
|
-
import 'node:url';
|
|
53
|
-
import '@iconify/utils';
|
|
54
|
-
import 'consola';
|
|
55
|
-
import './ssr-Bqnw2a-w.mjs';
|
|
56
|
-
import 'reka-ui';
|
|
57
|
-
import 'vue-router';
|
|
58
|
-
import 'tailwindcss/colors';
|
|
59
|
-
import '@iconify/vue';
|
|
60
|
-
import 'tailwind-variants';
|
|
61
|
-
import '@iconify/utils/lib/css/icon';
|
|
62
|
-
import 'perfect-debounce';
|
|
63
|
-
import '../routes/renderer.mjs';
|
|
64
|
-
import 'vue-bundle-renderer/runtime';
|
|
65
|
-
import 'unhead/server';
|
|
66
|
-
import 'devalue';
|
|
67
|
-
import 'unhead/plugins';
|
|
68
|
-
import 'unhead/utils';
|
|
69
|
-
import './Skeleton-DZqsQzFi.mjs';
|
|
70
|
-
import './FormField-Caux_FCv.mjs';
|
|
71
|
-
import './Input-CV2hlBHo.mjs';
|
|
72
|
-
import './Select-BB1oLrCD.mjs';
|
|
73
|
-
import './EditorToolbar-DIfb5arC.mjs';
|
|
74
|
-
import '@tiptap/core';
|
|
75
|
-
import '@tiptap/extension-horizontal-rule';
|
|
76
|
-
import '@tiptap/extension-image';
|
|
77
|
-
import '@tiptap/extension-mention';
|
|
78
|
-
import '@tiptap/extension-placeholder';
|
|
79
|
-
import '@tiptap/markdown';
|
|
80
|
-
import '@tiptap/starter-kit';
|
|
81
|
-
import '@tiptap/vue-3';
|
|
82
|
-
import '@tiptap/vue-3/menus';
|
|
83
|
-
import './DropdownMenu-BBrV9nXz.mjs';
|
|
84
|
-
import 'reka-ui/namespaced';
|
|
85
|
-
import './Kbd-Daq7k0fm.mjs';
|
|
86
|
-
import './Tooltip-TRyl6dje.mjs';
|
|
87
|
-
|
|
88
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
89
|
-
__name: "index",
|
|
90
|
-
__ssrInlineRender: true,
|
|
91
|
-
setup(__props) {
|
|
92
|
-
const toast = useToast();
|
|
93
|
-
const router = useRouter();
|
|
94
|
-
const { agents, loading, createAgent, updateAgent, toggleEnabled, runAgent, cancelAgent, fetchGlobalStats } = useAgents();
|
|
95
|
-
const { isAgentRunning } = useNotificationBus();
|
|
96
|
-
const { agentStatsPeriod } = usePreferences();
|
|
97
|
-
const period = ref(agentStatsPeriod.value);
|
|
98
|
-
const stats = ref(null);
|
|
99
|
-
const statsLoading = ref(false);
|
|
100
|
-
function checkAgentRunning(agentId) {
|
|
101
|
-
if (isAgentRunning(agentId)) return true;
|
|
102
|
-
return stats.value?.runningAgentIds?.includes(agentId) ?? false;
|
|
103
|
-
}
|
|
104
|
-
const showForm = ref(false);
|
|
105
|
-
const editingAgent = ref(null);
|
|
106
|
-
const periodOptions = [
|
|
107
|
-
{ label: "24h", value: "24h" },
|
|
108
|
-
{ label: "7d", value: "7d" },
|
|
109
|
-
{ label: "30d", value: "30d" }
|
|
110
|
-
];
|
|
111
|
-
function formatSchedule(schedule) {
|
|
112
|
-
const parts = schedule.split(" ");
|
|
113
|
-
if (parts.length !== 5) return schedule;
|
|
114
|
-
const min = parts[0];
|
|
115
|
-
const hour = parts[1];
|
|
116
|
-
const dayOfMonth = parts[2];
|
|
117
|
-
const month = parts[3];
|
|
118
|
-
const dayOfWeek = parts[4];
|
|
119
|
-
if (min === "0" && hour === "*" && dayOfMonth === "*" && month === "*" && dayOfWeek === "*")
|
|
120
|
-
return "Every hour";
|
|
121
|
-
if (min === "*/5" && hour === "*" && dayOfMonth === "*" && month === "*" && dayOfWeek === "*")
|
|
122
|
-
return "Every 5 minutes";
|
|
123
|
-
if (dayOfMonth === "*" && month === "*" && dayOfWeek === "*" && hour !== "*")
|
|
124
|
-
return `Daily at ${hour}:${min.padStart(2, "0")}`;
|
|
125
|
-
if (dayOfWeek === "0" && dayOfMonth === "*" && month === "*")
|
|
126
|
-
return `Weekly on Sunday at ${hour}:${min.padStart(2, "0")}`;
|
|
127
|
-
return schedule;
|
|
128
|
-
}
|
|
129
|
-
function formatRelativeTime(date) {
|
|
130
|
-
if (!date) return "Never";
|
|
131
|
-
const d = new Date(date);
|
|
132
|
-
const now = /* @__PURE__ */ new Date();
|
|
133
|
-
const diff = now.getTime() - d.getTime();
|
|
134
|
-
const minutes = Math.floor(diff / 6e4);
|
|
135
|
-
const hours = Math.floor(diff / 36e5);
|
|
136
|
-
const days = Math.floor(diff / 864e5);
|
|
137
|
-
if (minutes < 1) return "Just now";
|
|
138
|
-
if (minutes < 60) return `${minutes}m ago`;
|
|
139
|
-
if (hours < 24) return `${hours}h ago`;
|
|
140
|
-
return `${days}d ago`;
|
|
141
|
-
}
|
|
142
|
-
function openNewAgentForm() {
|
|
143
|
-
editingAgent.value = null;
|
|
144
|
-
showForm.value = true;
|
|
145
|
-
}
|
|
146
|
-
function openEditForm(agent, event) {
|
|
147
|
-
event.stopPropagation();
|
|
148
|
-
editingAgent.value = agent;
|
|
149
|
-
showForm.value = true;
|
|
150
|
-
}
|
|
151
|
-
function navigateToAgent(agent) {
|
|
152
|
-
router.push(`/agents/${agent.id}`);
|
|
153
|
-
}
|
|
154
|
-
async function handleSubmit(data) {
|
|
155
|
-
try {
|
|
156
|
-
if (editingAgent.value) {
|
|
157
|
-
await updateAgent(editingAgent.value.id, data);
|
|
158
|
-
toast.add({
|
|
159
|
-
title: "Agent updated",
|
|
160
|
-
color: "success",
|
|
161
|
-
icon: "i-lucide-check"
|
|
162
|
-
});
|
|
163
|
-
} else {
|
|
164
|
-
await createAgent(data);
|
|
165
|
-
toast.add({
|
|
166
|
-
title: "Agent created",
|
|
167
|
-
color: "success",
|
|
168
|
-
icon: "i-lucide-check"
|
|
169
|
-
});
|
|
170
|
-
loadStats();
|
|
171
|
-
}
|
|
172
|
-
showForm.value = false;
|
|
173
|
-
editingAgent.value = null;
|
|
174
|
-
} catch (e) {
|
|
175
|
-
toast.add({
|
|
176
|
-
title: "Failed to save agent",
|
|
177
|
-
description: e instanceof Error ? e.message : "An unexpected error occurred",
|
|
178
|
-
color: "error",
|
|
179
|
-
icon: "i-lucide-alert-circle"
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
async function handleToggle(id) {
|
|
184
|
-
try {
|
|
185
|
-
await toggleEnabled(id);
|
|
186
|
-
} catch {
|
|
187
|
-
toast.add({
|
|
188
|
-
title: "Failed to toggle agent",
|
|
189
|
-
color: "error",
|
|
190
|
-
icon: "i-lucide-alert-circle"
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
async function handleRun(id, event) {
|
|
195
|
-
event.stopPropagation();
|
|
196
|
-
try {
|
|
197
|
-
await runAgent(id);
|
|
198
|
-
} catch {
|
|
199
|
-
toast.add({
|
|
200
|
-
title: "Failed to run agent",
|
|
201
|
-
color: "error",
|
|
202
|
-
icon: "i-lucide-alert-circle"
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
async function handleCancel(id, event) {
|
|
207
|
-
event.stopPropagation();
|
|
208
|
-
try {
|
|
209
|
-
await cancelAgent(id);
|
|
210
|
-
toast.add({
|
|
211
|
-
title: "Agent cancelled",
|
|
212
|
-
color: "warning",
|
|
213
|
-
icon: "i-lucide-x-circle"
|
|
214
|
-
});
|
|
215
|
-
} catch {
|
|
216
|
-
toast.add({
|
|
217
|
-
title: "Failed to cancel agent",
|
|
218
|
-
color: "error",
|
|
219
|
-
icon: "i-lucide-alert-circle"
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
function getStatusColor(status) {
|
|
224
|
-
switch (status) {
|
|
225
|
-
case "success":
|
|
226
|
-
return "success";
|
|
227
|
-
case "error":
|
|
228
|
-
return "error";
|
|
229
|
-
case "budget_exceeded":
|
|
230
|
-
return "warning";
|
|
231
|
-
case "running":
|
|
232
|
-
return "info";
|
|
233
|
-
case "cancelled":
|
|
234
|
-
return "neutral";
|
|
235
|
-
default:
|
|
236
|
-
return "neutral";
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
async function loadStats() {
|
|
240
|
-
statsLoading.value = true;
|
|
241
|
-
try {
|
|
242
|
-
stats.value = await fetchGlobalStats(period.value);
|
|
243
|
-
} catch {
|
|
244
|
-
} finally {
|
|
245
|
-
statsLoading.value = false;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
watch(period, (value) => {
|
|
249
|
-
agentStatsPeriod.value = value;
|
|
250
|
-
loadStats();
|
|
251
|
-
});
|
|
252
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
253
|
-
const _component_UDashboardPanel = _sfc_main$1;
|
|
254
|
-
const _component_UDashboardNavbar = _sfc_main$5;
|
|
255
|
-
const _component_UFieldGroup = _sfc_main$6;
|
|
256
|
-
const _component_UButton = _sfc_main$8;
|
|
257
|
-
const _component_AgentsAgentStatsCards = __nuxt_component_4;
|
|
258
|
-
const _component_AgentsAgentActivityChart = __nuxt_component_5;
|
|
259
|
-
const _component_UIcon = _sfc_main$d;
|
|
260
|
-
const _component_UCard = _sfc_main$2;
|
|
261
|
-
const _component_UBadge = _sfc_main$3;
|
|
262
|
-
const _component_USwitch = _sfc_main$4;
|
|
263
|
-
const _component_USlideover = _sfc_main$7;
|
|
264
|
-
const _component_AgentsAgentForm = __nuxt_component_11;
|
|
265
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "contents" }, _attrs))}>`);
|
|
266
|
-
_push(ssrRenderComponent(_component_UDashboardPanel, {
|
|
267
|
-
id: "agents",
|
|
268
|
-
grow: ""
|
|
269
|
-
}, {
|
|
270
|
-
header: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
271
|
-
if (_push2) {
|
|
272
|
-
_push2(ssrRenderComponent(_component_UDashboardNavbar, { title: "Scheduled Agents" }, {
|
|
273
|
-
right: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
274
|
-
if (_push3) {
|
|
275
|
-
_push3(ssrRenderComponent(_component_UFieldGroup, null, {
|
|
276
|
-
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
277
|
-
if (_push4) {
|
|
278
|
-
_push4(`<!--[-->`);
|
|
279
|
-
ssrRenderList(periodOptions, (opt) => {
|
|
280
|
-
_push4(ssrRenderComponent(_component_UButton, {
|
|
281
|
-
key: opt.value,
|
|
282
|
-
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
283
|
-
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
284
|
-
size: "sm",
|
|
285
|
-
onClick: ($event) => period.value = opt.value
|
|
286
|
-
}, {
|
|
287
|
-
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
288
|
-
if (_push5) {
|
|
289
|
-
_push5(`${ssrInterpolate(opt.label)}`);
|
|
290
|
-
} else {
|
|
291
|
-
return [
|
|
292
|
-
createTextVNode(toDisplayString(opt.label), 1)
|
|
293
|
-
];
|
|
294
|
-
}
|
|
295
|
-
}),
|
|
296
|
-
_: 2
|
|
297
|
-
}, _parent4, _scopeId3));
|
|
298
|
-
});
|
|
299
|
-
_push4(`<!--]-->`);
|
|
300
|
-
} else {
|
|
301
|
-
return [
|
|
302
|
-
(openBlock(), createBlock(Fragment, null, renderList(periodOptions, (opt) => {
|
|
303
|
-
return createVNode(_component_UButton, {
|
|
304
|
-
key: opt.value,
|
|
305
|
-
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
306
|
-
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
307
|
-
size: "sm",
|
|
308
|
-
onClick: ($event) => period.value = opt.value
|
|
309
|
-
}, {
|
|
310
|
-
default: withCtx(() => [
|
|
311
|
-
createTextVNode(toDisplayString(opt.label), 1)
|
|
312
|
-
]),
|
|
313
|
-
_: 2
|
|
314
|
-
}, 1032, ["color", "variant", "onClick"]);
|
|
315
|
-
}), 64))
|
|
316
|
-
];
|
|
317
|
-
}
|
|
318
|
-
}),
|
|
319
|
-
_: 1
|
|
320
|
-
}, _parent3, _scopeId2));
|
|
321
|
-
_push3(ssrRenderComponent(_component_UButton, {
|
|
322
|
-
icon: "i-lucide-plus",
|
|
323
|
-
label: "New Agent",
|
|
324
|
-
onClick: openNewAgentForm
|
|
325
|
-
}, null, _parent3, _scopeId2));
|
|
326
|
-
} else {
|
|
327
|
-
return [
|
|
328
|
-
createVNode(_component_UFieldGroup, null, {
|
|
329
|
-
default: withCtx(() => [
|
|
330
|
-
(openBlock(), createBlock(Fragment, null, renderList(periodOptions, (opt) => {
|
|
331
|
-
return createVNode(_component_UButton, {
|
|
332
|
-
key: opt.value,
|
|
333
|
-
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
334
|
-
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
335
|
-
size: "sm",
|
|
336
|
-
onClick: ($event) => period.value = opt.value
|
|
337
|
-
}, {
|
|
338
|
-
default: withCtx(() => [
|
|
339
|
-
createTextVNode(toDisplayString(opt.label), 1)
|
|
340
|
-
]),
|
|
341
|
-
_: 2
|
|
342
|
-
}, 1032, ["color", "variant", "onClick"]);
|
|
343
|
-
}), 64))
|
|
344
|
-
]),
|
|
345
|
-
_: 1
|
|
346
|
-
}),
|
|
347
|
-
createVNode(_component_UButton, {
|
|
348
|
-
icon: "i-lucide-plus",
|
|
349
|
-
label: "New Agent",
|
|
350
|
-
onClick: openNewAgentForm
|
|
351
|
-
})
|
|
352
|
-
];
|
|
353
|
-
}
|
|
354
|
-
}),
|
|
355
|
-
_: 1
|
|
356
|
-
}, _parent2, _scopeId));
|
|
357
|
-
} else {
|
|
358
|
-
return [
|
|
359
|
-
createVNode(_component_UDashboardNavbar, { title: "Scheduled Agents" }, {
|
|
360
|
-
right: withCtx(() => [
|
|
361
|
-
createVNode(_component_UFieldGroup, null, {
|
|
362
|
-
default: withCtx(() => [
|
|
363
|
-
(openBlock(), createBlock(Fragment, null, renderList(periodOptions, (opt) => {
|
|
364
|
-
return createVNode(_component_UButton, {
|
|
365
|
-
key: opt.value,
|
|
366
|
-
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
367
|
-
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
368
|
-
size: "sm",
|
|
369
|
-
onClick: ($event) => period.value = opt.value
|
|
370
|
-
}, {
|
|
371
|
-
default: withCtx(() => [
|
|
372
|
-
createTextVNode(toDisplayString(opt.label), 1)
|
|
373
|
-
]),
|
|
374
|
-
_: 2
|
|
375
|
-
}, 1032, ["color", "variant", "onClick"]);
|
|
376
|
-
}), 64))
|
|
377
|
-
]),
|
|
378
|
-
_: 1
|
|
379
|
-
}),
|
|
380
|
-
createVNode(_component_UButton, {
|
|
381
|
-
icon: "i-lucide-plus",
|
|
382
|
-
label: "New Agent",
|
|
383
|
-
onClick: openNewAgentForm
|
|
384
|
-
})
|
|
385
|
-
]),
|
|
386
|
-
_: 1
|
|
387
|
-
})
|
|
388
|
-
];
|
|
389
|
-
}
|
|
390
|
-
}),
|
|
391
|
-
body: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
392
|
-
if (_push2) {
|
|
393
|
-
_push2(`<div class="p-4 space-y-6"${_scopeId}>`);
|
|
394
|
-
_push2(ssrRenderComponent(_component_AgentsAgentStatsCards, {
|
|
395
|
-
stats: unref(stats),
|
|
396
|
-
loading: unref(statsLoading),
|
|
397
|
-
variant: "global"
|
|
398
|
-
}, null, _parent2, _scopeId));
|
|
399
|
-
if (unref(stats) && unref(stats).dailyRuns.length > 0) {
|
|
400
|
-
_push2(ssrRenderComponent(_component_AgentsAgentActivityChart, {
|
|
401
|
-
data: unref(stats).dailyRuns,
|
|
402
|
-
title: "Run Activity"
|
|
403
|
-
}, null, _parent2, _scopeId));
|
|
404
|
-
} else {
|
|
405
|
-
_push2(`<!---->`);
|
|
406
|
-
}
|
|
407
|
-
if (unref(loading)) {
|
|
408
|
-
_push2(`<div class="flex items-center justify-center h-64"${_scopeId}>`);
|
|
409
|
-
_push2(ssrRenderComponent(_component_UIcon, {
|
|
410
|
-
name: "i-lucide-loader-2",
|
|
411
|
-
class: "w-8 h-8 animate-spin text-neutral-400"
|
|
412
|
-
}, null, _parent2, _scopeId));
|
|
413
|
-
_push2(`</div>`);
|
|
414
|
-
} else if (unref(agents).length === 0) {
|
|
415
|
-
_push2(`<div class="flex flex-col items-center justify-center h-64 text-neutral-500"${_scopeId}>`);
|
|
416
|
-
_push2(ssrRenderComponent(_component_UIcon, {
|
|
417
|
-
name: "i-lucide-bot",
|
|
418
|
-
class: "w-12 h-12 mb-4"
|
|
419
|
-
}, null, _parent2, _scopeId));
|
|
420
|
-
_push2(`<p class="text-lg font-medium"${_scopeId}> No agents yet </p><p class="text-sm"${_scopeId}> Create your first scheduled agent to automate tasks </p>`);
|
|
421
|
-
_push2(ssrRenderComponent(_component_UButton, {
|
|
422
|
-
class: "mt-4",
|
|
423
|
-
icon: "i-lucide-plus",
|
|
424
|
-
label: "Create Agent",
|
|
425
|
-
onClick: openNewAgentForm
|
|
426
|
-
}, null, _parent2, _scopeId));
|
|
427
|
-
_push2(`</div>`);
|
|
428
|
-
} else {
|
|
429
|
-
_push2(`<div class="space-y-4"${_scopeId}><h2 class="text-lg font-semibold"${_scopeId}> Agents </h2><!--[-->`);
|
|
430
|
-
ssrRenderList(unref(agents), (agent) => {
|
|
431
|
-
_push2(ssrRenderComponent(_component_UCard, {
|
|
432
|
-
key: agent.id,
|
|
433
|
-
class: "cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",
|
|
434
|
-
onClick: ($event) => navigateToAgent(agent)
|
|
435
|
-
}, {
|
|
436
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
437
|
-
if (_push3) {
|
|
438
|
-
_push3(`<div class="flex items-start justify-between gap-4"${_scopeId2}><div class="flex-1 min-w-0"${_scopeId2}><div class="flex items-center gap-2"${_scopeId2}><h3 class="font-medium truncate"${_scopeId2}>${ssrInterpolate(agent.name)}</h3>`);
|
|
439
|
-
if (checkAgentRunning(agent.id)) {
|
|
440
|
-
_push3(ssrRenderComponent(_component_UBadge, {
|
|
441
|
-
color: "info",
|
|
442
|
-
variant: "subtle",
|
|
443
|
-
size: "sm"
|
|
444
|
-
}, {
|
|
445
|
-
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
446
|
-
if (_push4) {
|
|
447
|
-
_push4(ssrRenderComponent(_component_UIcon, {
|
|
448
|
-
name: "i-lucide-loader-2",
|
|
449
|
-
class: "w-3 h-3 animate-spin mr-1"
|
|
450
|
-
}, null, _parent4, _scopeId3));
|
|
451
|
-
_push4(` Running `);
|
|
452
|
-
} else {
|
|
453
|
-
return [
|
|
454
|
-
createVNode(_component_UIcon, {
|
|
455
|
-
name: "i-lucide-loader-2",
|
|
456
|
-
class: "w-3 h-3 animate-spin mr-1"
|
|
457
|
-
}),
|
|
458
|
-
createTextVNode(" Running ")
|
|
459
|
-
];
|
|
460
|
-
}
|
|
461
|
-
}),
|
|
462
|
-
_: 2
|
|
463
|
-
}, _parent3, _scopeId2));
|
|
464
|
-
} else if (agent.lastStatus) {
|
|
465
|
-
_push3(ssrRenderComponent(_component_UBadge, {
|
|
466
|
-
color: getStatusColor(agent.lastStatus),
|
|
467
|
-
size: "sm"
|
|
468
|
-
}, {
|
|
469
|
-
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
470
|
-
if (_push4) {
|
|
471
|
-
_push4(`${ssrInterpolate(agent.lastStatus)}`);
|
|
472
|
-
} else {
|
|
473
|
-
return [
|
|
474
|
-
createTextVNode(toDisplayString(agent.lastStatus), 1)
|
|
475
|
-
];
|
|
476
|
-
}
|
|
477
|
-
}),
|
|
478
|
-
_: 2
|
|
479
|
-
}, _parent3, _scopeId2));
|
|
480
|
-
} else {
|
|
481
|
-
_push3(`<!---->`);
|
|
482
|
-
}
|
|
483
|
-
_push3(`</div>`);
|
|
484
|
-
if (agent.description) {
|
|
485
|
-
_push3(`<p class="text-sm text-muted truncate mt-1"${_scopeId2}>${ssrInterpolate(agent.description)}</p>`);
|
|
486
|
-
} else {
|
|
487
|
-
_push3(`<!---->`);
|
|
488
|
-
}
|
|
489
|
-
_push3(`<div class="flex items-center gap-4 mt-2 text-sm text-muted"${_scopeId2}><span class="flex items-center gap-1"${_scopeId2}>`);
|
|
490
|
-
_push3(ssrRenderComponent(_component_UIcon, { name: "i-lucide-clock" }, null, _parent3, _scopeId2));
|
|
491
|
-
_push3(` ${ssrInterpolate(formatSchedule(agent.schedule))}</span>`);
|
|
492
|
-
if (agent.lastRunAt) {
|
|
493
|
-
_push3(`<span class="flex items-center gap-1"${_scopeId2}>`);
|
|
494
|
-
_push3(ssrRenderComponent(_component_UIcon, { name: "i-lucide-activity" }, null, _parent3, _scopeId2));
|
|
495
|
-
_push3(` ${ssrInterpolate(formatRelativeTime(agent.lastRunAt))}</span>`);
|
|
496
|
-
} else {
|
|
497
|
-
_push3(`<!---->`);
|
|
498
|
-
}
|
|
499
|
-
if (agent.maxBudgetUsd) {
|
|
500
|
-
_push3(`<span class="flex items-center gap-1"${_scopeId2}>`);
|
|
501
|
-
_push3(ssrRenderComponent(_component_UIcon, { name: "i-lucide-dollar-sign" }, null, _parent3, _scopeId2));
|
|
502
|
-
_push3(` $${ssrInterpolate(agent.maxBudgetUsd)} limit </span>`);
|
|
503
|
-
} else {
|
|
504
|
-
_push3(`<!---->`);
|
|
505
|
-
}
|
|
506
|
-
_push3(`</div></div><div class="flex items-center gap-2"${_scopeId2}>`);
|
|
507
|
-
_push3(ssrRenderComponent(_component_USwitch, {
|
|
508
|
-
"model-value": agent.enabled,
|
|
509
|
-
onClick: () => {
|
|
510
|
-
},
|
|
511
|
-
"onUpdate:modelValue": ($event) => handleToggle(agent.id)
|
|
512
|
-
}, null, _parent3, _scopeId2));
|
|
513
|
-
if (checkAgentRunning(agent.id)) {
|
|
514
|
-
_push3(ssrRenderComponent(_component_UButton, {
|
|
515
|
-
icon: "i-lucide-square",
|
|
516
|
-
variant: "ghost",
|
|
517
|
-
size: "sm",
|
|
518
|
-
color: "error",
|
|
519
|
-
onClick: ($event) => handleCancel(agent.id, $event)
|
|
520
|
-
}, null, _parent3, _scopeId2));
|
|
521
|
-
} else {
|
|
522
|
-
_push3(ssrRenderComponent(_component_UButton, {
|
|
523
|
-
icon: "i-lucide-play",
|
|
524
|
-
variant: "ghost",
|
|
525
|
-
size: "sm",
|
|
526
|
-
disabled: !agent.enabled,
|
|
527
|
-
onClick: ($event) => handleRun(agent.id, $event)
|
|
528
|
-
}, null, _parent3, _scopeId2));
|
|
529
|
-
}
|
|
530
|
-
_push3(ssrRenderComponent(_component_UButton, {
|
|
531
|
-
icon: "i-lucide-pencil",
|
|
532
|
-
variant: "ghost",
|
|
533
|
-
size: "sm",
|
|
534
|
-
onClick: ($event) => openEditForm(agent, $event)
|
|
535
|
-
}, null, _parent3, _scopeId2));
|
|
536
|
-
_push3(`</div></div>`);
|
|
537
|
-
} else {
|
|
538
|
-
return [
|
|
539
|
-
createVNode("div", { class: "flex items-start justify-between gap-4" }, [
|
|
540
|
-
createVNode("div", { class: "flex-1 min-w-0" }, [
|
|
541
|
-
createVNode("div", { class: "flex items-center gap-2" }, [
|
|
542
|
-
createVNode("h3", { class: "font-medium truncate" }, toDisplayString(agent.name), 1),
|
|
543
|
-
checkAgentRunning(agent.id) ? (openBlock(), createBlock(_component_UBadge, {
|
|
544
|
-
key: 0,
|
|
545
|
-
color: "info",
|
|
546
|
-
variant: "subtle",
|
|
547
|
-
size: "sm"
|
|
548
|
-
}, {
|
|
549
|
-
default: withCtx(() => [
|
|
550
|
-
createVNode(_component_UIcon, {
|
|
551
|
-
name: "i-lucide-loader-2",
|
|
552
|
-
class: "w-3 h-3 animate-spin mr-1"
|
|
553
|
-
}),
|
|
554
|
-
createTextVNode(" Running ")
|
|
555
|
-
]),
|
|
556
|
-
_: 1
|
|
557
|
-
})) : agent.lastStatus ? (openBlock(), createBlock(_component_UBadge, {
|
|
558
|
-
key: 1,
|
|
559
|
-
color: getStatusColor(agent.lastStatus),
|
|
560
|
-
size: "sm"
|
|
561
|
-
}, {
|
|
562
|
-
default: withCtx(() => [
|
|
563
|
-
createTextVNode(toDisplayString(agent.lastStatus), 1)
|
|
564
|
-
]),
|
|
565
|
-
_: 2
|
|
566
|
-
}, 1032, ["color"])) : createCommentVNode("", true)
|
|
567
|
-
]),
|
|
568
|
-
agent.description ? (openBlock(), createBlock("p", {
|
|
569
|
-
key: 0,
|
|
570
|
-
class: "text-sm text-muted truncate mt-1"
|
|
571
|
-
}, toDisplayString(agent.description), 1)) : createCommentVNode("", true),
|
|
572
|
-
createVNode("div", { class: "flex items-center gap-4 mt-2 text-sm text-muted" }, [
|
|
573
|
-
createVNode("span", { class: "flex items-center gap-1" }, [
|
|
574
|
-
createVNode(_component_UIcon, { name: "i-lucide-clock" }),
|
|
575
|
-
createTextVNode(" " + toDisplayString(formatSchedule(agent.schedule)), 1)
|
|
576
|
-
]),
|
|
577
|
-
agent.lastRunAt ? (openBlock(), createBlock("span", {
|
|
578
|
-
key: 0,
|
|
579
|
-
class: "flex items-center gap-1"
|
|
580
|
-
}, [
|
|
581
|
-
createVNode(_component_UIcon, { name: "i-lucide-activity" }),
|
|
582
|
-
createTextVNode(" " + toDisplayString(formatRelativeTime(agent.lastRunAt)), 1)
|
|
583
|
-
])) : createCommentVNode("", true),
|
|
584
|
-
agent.maxBudgetUsd ? (openBlock(), createBlock("span", {
|
|
585
|
-
key: 1,
|
|
586
|
-
class: "flex items-center gap-1"
|
|
587
|
-
}, [
|
|
588
|
-
createVNode(_component_UIcon, { name: "i-lucide-dollar-sign" }),
|
|
589
|
-
createTextVNode(" $" + toDisplayString(agent.maxBudgetUsd) + " limit ", 1)
|
|
590
|
-
])) : createCommentVNode("", true)
|
|
591
|
-
])
|
|
592
|
-
]),
|
|
593
|
-
createVNode("div", { class: "flex items-center gap-2" }, [
|
|
594
|
-
createVNode(_component_USwitch, {
|
|
595
|
-
"model-value": agent.enabled,
|
|
596
|
-
onClick: withModifiers(() => {
|
|
597
|
-
}, ["stop"]),
|
|
598
|
-
"onUpdate:modelValue": ($event) => handleToggle(agent.id)
|
|
599
|
-
}, null, 8, ["model-value", "onClick", "onUpdate:modelValue"]),
|
|
600
|
-
checkAgentRunning(agent.id) ? (openBlock(), createBlock(_component_UButton, {
|
|
601
|
-
key: 0,
|
|
602
|
-
icon: "i-lucide-square",
|
|
603
|
-
variant: "ghost",
|
|
604
|
-
size: "sm",
|
|
605
|
-
color: "error",
|
|
606
|
-
onClick: withModifiers(($event) => handleCancel(agent.id, $event), ["stop"])
|
|
607
|
-
}, null, 8, ["onClick"])) : (openBlock(), createBlock(_component_UButton, {
|
|
608
|
-
key: 1,
|
|
609
|
-
icon: "i-lucide-play",
|
|
610
|
-
variant: "ghost",
|
|
611
|
-
size: "sm",
|
|
612
|
-
disabled: !agent.enabled,
|
|
613
|
-
onClick: withModifiers(($event) => handleRun(agent.id, $event), ["stop"])
|
|
614
|
-
}, null, 8, ["disabled", "onClick"])),
|
|
615
|
-
createVNode(_component_UButton, {
|
|
616
|
-
icon: "i-lucide-pencil",
|
|
617
|
-
variant: "ghost",
|
|
618
|
-
size: "sm",
|
|
619
|
-
onClick: withModifiers(($event) => openEditForm(agent, $event), ["stop"])
|
|
620
|
-
}, null, 8, ["onClick"])
|
|
621
|
-
])
|
|
622
|
-
])
|
|
623
|
-
];
|
|
624
|
-
}
|
|
625
|
-
}),
|
|
626
|
-
_: 2
|
|
627
|
-
}, _parent2, _scopeId));
|
|
628
|
-
});
|
|
629
|
-
_push2(`<!--]--></div>`);
|
|
630
|
-
}
|
|
631
|
-
_push2(`</div>`);
|
|
632
|
-
} else {
|
|
633
|
-
return [
|
|
634
|
-
createVNode("div", { class: "p-4 space-y-6" }, [
|
|
635
|
-
createVNode(_component_AgentsAgentStatsCards, {
|
|
636
|
-
stats: unref(stats),
|
|
637
|
-
loading: unref(statsLoading),
|
|
638
|
-
variant: "global"
|
|
639
|
-
}, null, 8, ["stats", "loading"]),
|
|
640
|
-
unref(stats) && unref(stats).dailyRuns.length > 0 ? (openBlock(), createBlock(_component_AgentsAgentActivityChart, {
|
|
641
|
-
key: 0,
|
|
642
|
-
data: unref(stats).dailyRuns,
|
|
643
|
-
title: "Run Activity"
|
|
644
|
-
}, null, 8, ["data"])) : createCommentVNode("", true),
|
|
645
|
-
unref(loading) ? (openBlock(), createBlock("div", {
|
|
646
|
-
key: 1,
|
|
647
|
-
class: "flex items-center justify-center h-64"
|
|
648
|
-
}, [
|
|
649
|
-
createVNode(_component_UIcon, {
|
|
650
|
-
name: "i-lucide-loader-2",
|
|
651
|
-
class: "w-8 h-8 animate-spin text-neutral-400"
|
|
652
|
-
})
|
|
653
|
-
])) : unref(agents).length === 0 ? (openBlock(), createBlock("div", {
|
|
654
|
-
key: 2,
|
|
655
|
-
class: "flex flex-col items-center justify-center h-64 text-neutral-500"
|
|
656
|
-
}, [
|
|
657
|
-
createVNode(_component_UIcon, {
|
|
658
|
-
name: "i-lucide-bot",
|
|
659
|
-
class: "w-12 h-12 mb-4"
|
|
660
|
-
}),
|
|
661
|
-
createVNode("p", { class: "text-lg font-medium" }, " No agents yet "),
|
|
662
|
-
createVNode("p", { class: "text-sm" }, " Create your first scheduled agent to automate tasks "),
|
|
663
|
-
createVNode(_component_UButton, {
|
|
664
|
-
class: "mt-4",
|
|
665
|
-
icon: "i-lucide-plus",
|
|
666
|
-
label: "Create Agent",
|
|
667
|
-
onClick: openNewAgentForm
|
|
668
|
-
})
|
|
669
|
-
])) : (openBlock(), createBlock("div", {
|
|
670
|
-
key: 3,
|
|
671
|
-
class: "space-y-4"
|
|
672
|
-
}, [
|
|
673
|
-
createVNode("h2", { class: "text-lg font-semibold" }, " Agents "),
|
|
674
|
-
(openBlock(true), createBlock(Fragment, null, renderList(unref(agents), (agent) => {
|
|
675
|
-
return openBlock(), createBlock(_component_UCard, {
|
|
676
|
-
key: agent.id,
|
|
677
|
-
class: "cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",
|
|
678
|
-
onClick: ($event) => navigateToAgent(agent)
|
|
679
|
-
}, {
|
|
680
|
-
default: withCtx(() => [
|
|
681
|
-
createVNode("div", { class: "flex items-start justify-between gap-4" }, [
|
|
682
|
-
createVNode("div", { class: "flex-1 min-w-0" }, [
|
|
683
|
-
createVNode("div", { class: "flex items-center gap-2" }, [
|
|
684
|
-
createVNode("h3", { class: "font-medium truncate" }, toDisplayString(agent.name), 1),
|
|
685
|
-
checkAgentRunning(agent.id) ? (openBlock(), createBlock(_component_UBadge, {
|
|
686
|
-
key: 0,
|
|
687
|
-
color: "info",
|
|
688
|
-
variant: "subtle",
|
|
689
|
-
size: "sm"
|
|
690
|
-
}, {
|
|
691
|
-
default: withCtx(() => [
|
|
692
|
-
createVNode(_component_UIcon, {
|
|
693
|
-
name: "i-lucide-loader-2",
|
|
694
|
-
class: "w-3 h-3 animate-spin mr-1"
|
|
695
|
-
}),
|
|
696
|
-
createTextVNode(" Running ")
|
|
697
|
-
]),
|
|
698
|
-
_: 1
|
|
699
|
-
})) : agent.lastStatus ? (openBlock(), createBlock(_component_UBadge, {
|
|
700
|
-
key: 1,
|
|
701
|
-
color: getStatusColor(agent.lastStatus),
|
|
702
|
-
size: "sm"
|
|
703
|
-
}, {
|
|
704
|
-
default: withCtx(() => [
|
|
705
|
-
createTextVNode(toDisplayString(agent.lastStatus), 1)
|
|
706
|
-
]),
|
|
707
|
-
_: 2
|
|
708
|
-
}, 1032, ["color"])) : createCommentVNode("", true)
|
|
709
|
-
]),
|
|
710
|
-
agent.description ? (openBlock(), createBlock("p", {
|
|
711
|
-
key: 0,
|
|
712
|
-
class: "text-sm text-muted truncate mt-1"
|
|
713
|
-
}, toDisplayString(agent.description), 1)) : createCommentVNode("", true),
|
|
714
|
-
createVNode("div", { class: "flex items-center gap-4 mt-2 text-sm text-muted" }, [
|
|
715
|
-
createVNode("span", { class: "flex items-center gap-1" }, [
|
|
716
|
-
createVNode(_component_UIcon, { name: "i-lucide-clock" }),
|
|
717
|
-
createTextVNode(" " + toDisplayString(formatSchedule(agent.schedule)), 1)
|
|
718
|
-
]),
|
|
719
|
-
agent.lastRunAt ? (openBlock(), createBlock("span", {
|
|
720
|
-
key: 0,
|
|
721
|
-
class: "flex items-center gap-1"
|
|
722
|
-
}, [
|
|
723
|
-
createVNode(_component_UIcon, { name: "i-lucide-activity" }),
|
|
724
|
-
createTextVNode(" " + toDisplayString(formatRelativeTime(agent.lastRunAt)), 1)
|
|
725
|
-
])) : createCommentVNode("", true),
|
|
726
|
-
agent.maxBudgetUsd ? (openBlock(), createBlock("span", {
|
|
727
|
-
key: 1,
|
|
728
|
-
class: "flex items-center gap-1"
|
|
729
|
-
}, [
|
|
730
|
-
createVNode(_component_UIcon, { name: "i-lucide-dollar-sign" }),
|
|
731
|
-
createTextVNode(" $" + toDisplayString(agent.maxBudgetUsd) + " limit ", 1)
|
|
732
|
-
])) : createCommentVNode("", true)
|
|
733
|
-
])
|
|
734
|
-
]),
|
|
735
|
-
createVNode("div", { class: "flex items-center gap-2" }, [
|
|
736
|
-
createVNode(_component_USwitch, {
|
|
737
|
-
"model-value": agent.enabled,
|
|
738
|
-
onClick: withModifiers(() => {
|
|
739
|
-
}, ["stop"]),
|
|
740
|
-
"onUpdate:modelValue": ($event) => handleToggle(agent.id)
|
|
741
|
-
}, null, 8, ["model-value", "onClick", "onUpdate:modelValue"]),
|
|
742
|
-
checkAgentRunning(agent.id) ? (openBlock(), createBlock(_component_UButton, {
|
|
743
|
-
key: 0,
|
|
744
|
-
icon: "i-lucide-square",
|
|
745
|
-
variant: "ghost",
|
|
746
|
-
size: "sm",
|
|
747
|
-
color: "error",
|
|
748
|
-
onClick: withModifiers(($event) => handleCancel(agent.id, $event), ["stop"])
|
|
749
|
-
}, null, 8, ["onClick"])) : (openBlock(), createBlock(_component_UButton, {
|
|
750
|
-
key: 1,
|
|
751
|
-
icon: "i-lucide-play",
|
|
752
|
-
variant: "ghost",
|
|
753
|
-
size: "sm",
|
|
754
|
-
disabled: !agent.enabled,
|
|
755
|
-
onClick: withModifiers(($event) => handleRun(agent.id, $event), ["stop"])
|
|
756
|
-
}, null, 8, ["disabled", "onClick"])),
|
|
757
|
-
createVNode(_component_UButton, {
|
|
758
|
-
icon: "i-lucide-pencil",
|
|
759
|
-
variant: "ghost",
|
|
760
|
-
size: "sm",
|
|
761
|
-
onClick: withModifiers(($event) => openEditForm(agent, $event), ["stop"])
|
|
762
|
-
}, null, 8, ["onClick"])
|
|
763
|
-
])
|
|
764
|
-
])
|
|
765
|
-
]),
|
|
766
|
-
_: 2
|
|
767
|
-
}, 1032, ["onClick"]);
|
|
768
|
-
}), 128))
|
|
769
|
-
]))
|
|
770
|
-
])
|
|
771
|
-
];
|
|
772
|
-
}
|
|
773
|
-
}),
|
|
774
|
-
_: 1
|
|
775
|
-
}, _parent));
|
|
776
|
-
_push(ssrRenderComponent(_component_USlideover, {
|
|
777
|
-
open: unref(showForm),
|
|
778
|
-
"onUpdate:open": ($event) => isRef(showForm) ? showForm.value = $event : null
|
|
779
|
-
}, {
|
|
780
|
-
title: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
781
|
-
if (_push2) {
|
|
782
|
-
_push2(`${ssrInterpolate(unref(editingAgent) ? "Edit Agent" : "New Agent")}`);
|
|
783
|
-
} else {
|
|
784
|
-
return [
|
|
785
|
-
createTextVNode(toDisplayString(unref(editingAgent) ? "Edit Agent" : "New Agent"), 1)
|
|
786
|
-
];
|
|
787
|
-
}
|
|
788
|
-
}),
|
|
789
|
-
body: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
790
|
-
if (_push2) {
|
|
791
|
-
_push2(ssrRenderComponent(_component_AgentsAgentForm, {
|
|
792
|
-
agent: unref(editingAgent),
|
|
793
|
-
onSubmit: handleSubmit,
|
|
794
|
-
onCancel: ($event) => showForm.value = false
|
|
795
|
-
}, null, _parent2, _scopeId));
|
|
796
|
-
} else {
|
|
797
|
-
return [
|
|
798
|
-
createVNode(_component_AgentsAgentForm, {
|
|
799
|
-
agent: unref(editingAgent),
|
|
800
|
-
onSubmit: handleSubmit,
|
|
801
|
-
onCancel: ($event) => showForm.value = false
|
|
802
|
-
}, null, 8, ["agent", "onCancel"])
|
|
803
|
-
];
|
|
804
|
-
}
|
|
805
|
-
}),
|
|
806
|
-
_: 1
|
|
807
|
-
}, _parent));
|
|
808
|
-
_push(`</div>`);
|
|
809
|
-
};
|
|
810
|
-
}
|
|
811
|
-
});
|
|
812
|
-
const _sfc_setup = _sfc_main.setup;
|
|
813
|
-
_sfc_main.setup = (props, ctx) => {
|
|
814
|
-
const ssrContext = useSSRContext();
|
|
815
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/agents/index.vue");
|
|
816
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
export { _sfc_main as default };
|
|
820
|
-
//# sourceMappingURL=index-C9PuieXh.mjs.map
|