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
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
import { _ as _sfc_main$1$1, a as _sfc_main$2 } from './DashboardNavbar-Cpq8yKA0.mjs';
|
|
2
|
+
import { _ as _sfc_main$3 } from './FieldGroup-KzsWn_XG.mjs';
|
|
3
|
+
import { i as useToast, Q 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_9 } from './useAgents-nmbkB9-_.mjs';
|
|
5
|
+
import { _ as _sfc_main$5 } from './Card-G40WAFiH.mjs';
|
|
6
|
+
import { _ as _sfc_main$6 } from './Badge-C1RKkIgG.mjs';
|
|
7
|
+
import { _ as _sfc_main$7 } from './Switch-GWdksmY6.mjs';
|
|
8
|
+
import { defineComponent, ref, watch, mergeProps, withCtx, unref, createVNode, createBlock, createCommentVNode, openBlock, Fragment, renderList, createTextVNode, toDisplayString, isRef, withModifiers, useSSRContext } from 'vue';
|
|
9
|
+
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate } from 'vue/server-renderer';
|
|
10
|
+
import { aB as getStatusColor, aA as formatSchedule, ag as formatRelativeTime } from '../nitro/nitro.mjs';
|
|
11
|
+
import { _ as _sfc_main$4 } from './Slideover-DJNgcnZ2.mjs';
|
|
12
|
+
import { u as useNotificationBus } from './useNotificationBus-BG5JNQf1.mjs';
|
|
13
|
+
import { u as usePreferences } from './usePreferences-DH1QjxOj.mjs';
|
|
14
|
+
import './DashboardSidebarToggle-Chnqv04k.mjs';
|
|
15
|
+
import '@vueuse/core';
|
|
16
|
+
import './cookie-C_iulBi6.mjs';
|
|
17
|
+
import './ssr-Bqnw2a-w.mjs';
|
|
18
|
+
import 'reka-ui';
|
|
19
|
+
import 'vue-router';
|
|
20
|
+
import 'tailwindcss/colors';
|
|
21
|
+
import '@iconify/vue';
|
|
22
|
+
import 'tailwind-variants';
|
|
23
|
+
import '@iconify/utils/lib/css/icon';
|
|
24
|
+
import 'perfect-debounce';
|
|
25
|
+
import '../routes/renderer.mjs';
|
|
26
|
+
import 'vue-bundle-renderer/runtime';
|
|
27
|
+
import 'unhead/server';
|
|
28
|
+
import 'devalue';
|
|
29
|
+
import 'unhead/plugins';
|
|
30
|
+
import 'unhead/utils';
|
|
31
|
+
import './Skeleton-DZqsQzFi.mjs';
|
|
32
|
+
import './FormField-Caux_FCv.mjs';
|
|
33
|
+
import './Input-CV2hlBHo.mjs';
|
|
34
|
+
import './Select-BB1oLrCD.mjs';
|
|
35
|
+
import './EditorToolbar-B9OwSI5e.mjs';
|
|
36
|
+
import '@tiptap/core';
|
|
37
|
+
import '@tiptap/extension-horizontal-rule';
|
|
38
|
+
import '@tiptap/extension-image';
|
|
39
|
+
import '@tiptap/extension-mention';
|
|
40
|
+
import '@tiptap/extension-placeholder';
|
|
41
|
+
import '@tiptap/markdown';
|
|
42
|
+
import '@tiptap/starter-kit';
|
|
43
|
+
import '@tiptap/vue-3';
|
|
44
|
+
import '@tiptap/vue-3/menus';
|
|
45
|
+
import './DropdownMenu-BBrV9nXz.mjs';
|
|
46
|
+
import 'reka-ui/namespaced';
|
|
47
|
+
import './Kbd-Daq7k0fm.mjs';
|
|
48
|
+
import './Tooltip-TRyl6dje.mjs';
|
|
49
|
+
import '@anthropic-ai/claude-agent-sdk';
|
|
50
|
+
import 'module';
|
|
51
|
+
import 'path';
|
|
52
|
+
import 'os';
|
|
53
|
+
import 'node:http';
|
|
54
|
+
import 'node:https';
|
|
55
|
+
import 'node:crypto';
|
|
56
|
+
import 'stream';
|
|
57
|
+
import 'events';
|
|
58
|
+
import 'http';
|
|
59
|
+
import 'crypto';
|
|
60
|
+
import 'buffer';
|
|
61
|
+
import 'zlib';
|
|
62
|
+
import 'https';
|
|
63
|
+
import 'net';
|
|
64
|
+
import 'tls';
|
|
65
|
+
import 'url';
|
|
66
|
+
import 'node:events';
|
|
67
|
+
import 'node:buffer';
|
|
68
|
+
import 'node:fs';
|
|
69
|
+
import 'node:path';
|
|
70
|
+
import 'fs';
|
|
71
|
+
import 'drizzle-orm/postgres-js/migrator';
|
|
72
|
+
import 'drizzle-orm';
|
|
73
|
+
import 'drizzle-orm/postgres-js';
|
|
74
|
+
import 'postgres';
|
|
75
|
+
import 'drizzle-orm/pg-core';
|
|
76
|
+
import 'better-auth';
|
|
77
|
+
import 'better-auth/adapters/drizzle';
|
|
78
|
+
import 'chokidar';
|
|
79
|
+
import 'fs/promises';
|
|
80
|
+
import 'gray-matter';
|
|
81
|
+
import 'cron';
|
|
82
|
+
import 'child_process';
|
|
83
|
+
import 'util';
|
|
84
|
+
import 'node:url';
|
|
85
|
+
import '@iconify/utils';
|
|
86
|
+
import 'consola';
|
|
87
|
+
|
|
88
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
89
|
+
__name: "AgentCard",
|
|
90
|
+
__ssrInlineRender: true,
|
|
91
|
+
props: {
|
|
92
|
+
agent: {},
|
|
93
|
+
running: { type: Boolean }
|
|
94
|
+
},
|
|
95
|
+
emits: ["toggle", "run", "cancel", "edit", "navigate"],
|
|
96
|
+
setup(__props, { emit: __emit }) {
|
|
97
|
+
const emit = __emit;
|
|
98
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
99
|
+
const _component_UCard = _sfc_main$5;
|
|
100
|
+
const _component_UBadge = _sfc_main$6;
|
|
101
|
+
const _component_UIcon = _sfc_main$d;
|
|
102
|
+
const _component_USwitch = _sfc_main$7;
|
|
103
|
+
const _component_UButton = _sfc_main$8;
|
|
104
|
+
_push(ssrRenderComponent(_component_UCard, mergeProps({
|
|
105
|
+
class: "cursor-pointer transition-all hover:ring-2 hover:ring-primary/50",
|
|
106
|
+
onClick: ($event) => emit("navigate", __props.agent)
|
|
107
|
+
}, _attrs), {
|
|
108
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
109
|
+
if (_push2) {
|
|
110
|
+
_push2(`<div class="flex items-start justify-between gap-4"${_scopeId}><div class="flex-1 min-w-0"${_scopeId}><div class="flex items-center gap-2"${_scopeId}><h3 class="font-medium truncate"${_scopeId}>${ssrInterpolate(__props.agent.name)}</h3>`);
|
|
111
|
+
if (__props.running) {
|
|
112
|
+
_push2(ssrRenderComponent(_component_UBadge, {
|
|
113
|
+
color: "info",
|
|
114
|
+
variant: "subtle",
|
|
115
|
+
size: "sm"
|
|
116
|
+
}, {
|
|
117
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
118
|
+
if (_push3) {
|
|
119
|
+
_push3(ssrRenderComponent(_component_UIcon, {
|
|
120
|
+
name: "i-lucide-loader-2",
|
|
121
|
+
class: "w-3 h-3 animate-spin mr-1"
|
|
122
|
+
}, null, _parent3, _scopeId2));
|
|
123
|
+
_push3(` Running `);
|
|
124
|
+
} else {
|
|
125
|
+
return [
|
|
126
|
+
createVNode(_component_UIcon, {
|
|
127
|
+
name: "i-lucide-loader-2",
|
|
128
|
+
class: "w-3 h-3 animate-spin mr-1"
|
|
129
|
+
}),
|
|
130
|
+
createTextVNode(" Running ")
|
|
131
|
+
];
|
|
132
|
+
}
|
|
133
|
+
}),
|
|
134
|
+
_: 1
|
|
135
|
+
}, _parent2, _scopeId));
|
|
136
|
+
} else if (__props.agent.lastStatus) {
|
|
137
|
+
_push2(ssrRenderComponent(_component_UBadge, {
|
|
138
|
+
color: unref(getStatusColor)(__props.agent.lastStatus),
|
|
139
|
+
size: "sm"
|
|
140
|
+
}, {
|
|
141
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
142
|
+
if (_push3) {
|
|
143
|
+
_push3(`${ssrInterpolate(__props.agent.lastStatus)}`);
|
|
144
|
+
} else {
|
|
145
|
+
return [
|
|
146
|
+
createTextVNode(toDisplayString(__props.agent.lastStatus), 1)
|
|
147
|
+
];
|
|
148
|
+
}
|
|
149
|
+
}),
|
|
150
|
+
_: 1
|
|
151
|
+
}, _parent2, _scopeId));
|
|
152
|
+
} else {
|
|
153
|
+
_push2(`<!---->`);
|
|
154
|
+
}
|
|
155
|
+
_push2(`</div>`);
|
|
156
|
+
if (__props.agent.description) {
|
|
157
|
+
_push2(`<p class="text-sm text-muted truncate mt-1"${_scopeId}>${ssrInterpolate(__props.agent.description)}</p>`);
|
|
158
|
+
} else {
|
|
159
|
+
_push2(`<!---->`);
|
|
160
|
+
}
|
|
161
|
+
_push2(`<div class="flex items-center gap-4 mt-2 text-sm text-muted"${_scopeId}><span class="flex items-center gap-1"${_scopeId}>`);
|
|
162
|
+
_push2(ssrRenderComponent(_component_UIcon, { name: "i-lucide-clock" }, null, _parent2, _scopeId));
|
|
163
|
+
_push2(` ${ssrInterpolate(unref(formatSchedule)(__props.agent.schedule))}</span>`);
|
|
164
|
+
if (__props.agent.lastRunAt) {
|
|
165
|
+
_push2(`<span class="flex items-center gap-1"${_scopeId}>`);
|
|
166
|
+
_push2(ssrRenderComponent(_component_UIcon, { name: "i-lucide-activity" }, null, _parent2, _scopeId));
|
|
167
|
+
_push2(` ${ssrInterpolate(unref(formatRelativeTime)(__props.agent.lastRunAt))}</span>`);
|
|
168
|
+
} else {
|
|
169
|
+
_push2(`<!---->`);
|
|
170
|
+
}
|
|
171
|
+
if (__props.agent.maxBudgetUsd) {
|
|
172
|
+
_push2(`<span class="flex items-center gap-1"${_scopeId}>`);
|
|
173
|
+
_push2(ssrRenderComponent(_component_UIcon, { name: "i-lucide-dollar-sign" }, null, _parent2, _scopeId));
|
|
174
|
+
_push2(` $${ssrInterpolate(__props.agent.maxBudgetUsd)} limit </span>`);
|
|
175
|
+
} else {
|
|
176
|
+
_push2(`<!---->`);
|
|
177
|
+
}
|
|
178
|
+
_push2(`</div></div><div class="flex items-center gap-2"${_scopeId}>`);
|
|
179
|
+
_push2(ssrRenderComponent(_component_USwitch, {
|
|
180
|
+
"model-value": __props.agent.enabled,
|
|
181
|
+
onClick: () => {
|
|
182
|
+
},
|
|
183
|
+
"onUpdate:modelValue": ($event) => emit("toggle", __props.agent.id)
|
|
184
|
+
}, null, _parent2, _scopeId));
|
|
185
|
+
if (__props.running) {
|
|
186
|
+
_push2(ssrRenderComponent(_component_UButton, {
|
|
187
|
+
icon: "i-lucide-square",
|
|
188
|
+
variant: "ghost",
|
|
189
|
+
size: "sm",
|
|
190
|
+
color: "error",
|
|
191
|
+
onClick: ($event) => emit("cancel", __props.agent.id, $event)
|
|
192
|
+
}, null, _parent2, _scopeId));
|
|
193
|
+
} else {
|
|
194
|
+
_push2(ssrRenderComponent(_component_UButton, {
|
|
195
|
+
icon: "i-lucide-play",
|
|
196
|
+
variant: "ghost",
|
|
197
|
+
size: "sm",
|
|
198
|
+
disabled: !__props.agent.enabled,
|
|
199
|
+
onClick: ($event) => emit("run", __props.agent.id, $event)
|
|
200
|
+
}, null, _parent2, _scopeId));
|
|
201
|
+
}
|
|
202
|
+
_push2(ssrRenderComponent(_component_UButton, {
|
|
203
|
+
icon: "i-lucide-pencil",
|
|
204
|
+
variant: "ghost",
|
|
205
|
+
size: "sm",
|
|
206
|
+
onClick: ($event) => emit("edit", __props.agent, $event)
|
|
207
|
+
}, null, _parent2, _scopeId));
|
|
208
|
+
_push2(`</div></div>`);
|
|
209
|
+
} else {
|
|
210
|
+
return [
|
|
211
|
+
createVNode("div", { class: "flex items-start justify-between gap-4" }, [
|
|
212
|
+
createVNode("div", { class: "flex-1 min-w-0" }, [
|
|
213
|
+
createVNode("div", { class: "flex items-center gap-2" }, [
|
|
214
|
+
createVNode("h3", { class: "font-medium truncate" }, toDisplayString(__props.agent.name), 1),
|
|
215
|
+
__props.running ? (openBlock(), createBlock(_component_UBadge, {
|
|
216
|
+
key: 0,
|
|
217
|
+
color: "info",
|
|
218
|
+
variant: "subtle",
|
|
219
|
+
size: "sm"
|
|
220
|
+
}, {
|
|
221
|
+
default: withCtx(() => [
|
|
222
|
+
createVNode(_component_UIcon, {
|
|
223
|
+
name: "i-lucide-loader-2",
|
|
224
|
+
class: "w-3 h-3 animate-spin mr-1"
|
|
225
|
+
}),
|
|
226
|
+
createTextVNode(" Running ")
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
})) : __props.agent.lastStatus ? (openBlock(), createBlock(_component_UBadge, {
|
|
230
|
+
key: 1,
|
|
231
|
+
color: unref(getStatusColor)(__props.agent.lastStatus),
|
|
232
|
+
size: "sm"
|
|
233
|
+
}, {
|
|
234
|
+
default: withCtx(() => [
|
|
235
|
+
createTextVNode(toDisplayString(__props.agent.lastStatus), 1)
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
}, 8, ["color"])) : createCommentVNode("", true)
|
|
239
|
+
]),
|
|
240
|
+
__props.agent.description ? (openBlock(), createBlock("p", {
|
|
241
|
+
key: 0,
|
|
242
|
+
class: "text-sm text-muted truncate mt-1"
|
|
243
|
+
}, toDisplayString(__props.agent.description), 1)) : createCommentVNode("", true),
|
|
244
|
+
createVNode("div", { class: "flex items-center gap-4 mt-2 text-sm text-muted" }, [
|
|
245
|
+
createVNode("span", { class: "flex items-center gap-1" }, [
|
|
246
|
+
createVNode(_component_UIcon, { name: "i-lucide-clock" }),
|
|
247
|
+
createTextVNode(" " + toDisplayString(unref(formatSchedule)(__props.agent.schedule)), 1)
|
|
248
|
+
]),
|
|
249
|
+
__props.agent.lastRunAt ? (openBlock(), createBlock("span", {
|
|
250
|
+
key: 0,
|
|
251
|
+
class: "flex items-center gap-1"
|
|
252
|
+
}, [
|
|
253
|
+
createVNode(_component_UIcon, { name: "i-lucide-activity" }),
|
|
254
|
+
createTextVNode(" " + toDisplayString(unref(formatRelativeTime)(__props.agent.lastRunAt)), 1)
|
|
255
|
+
])) : createCommentVNode("", true),
|
|
256
|
+
__props.agent.maxBudgetUsd ? (openBlock(), createBlock("span", {
|
|
257
|
+
key: 1,
|
|
258
|
+
class: "flex items-center gap-1"
|
|
259
|
+
}, [
|
|
260
|
+
createVNode(_component_UIcon, { name: "i-lucide-dollar-sign" }),
|
|
261
|
+
createTextVNode(" $" + toDisplayString(__props.agent.maxBudgetUsd) + " limit ", 1)
|
|
262
|
+
])) : createCommentVNode("", true)
|
|
263
|
+
])
|
|
264
|
+
]),
|
|
265
|
+
createVNode("div", { class: "flex items-center gap-2" }, [
|
|
266
|
+
createVNode(_component_USwitch, {
|
|
267
|
+
"model-value": __props.agent.enabled,
|
|
268
|
+
onClick: withModifiers(() => {
|
|
269
|
+
}, ["stop"]),
|
|
270
|
+
"onUpdate:modelValue": ($event) => emit("toggle", __props.agent.id)
|
|
271
|
+
}, null, 8, ["model-value", "onClick", "onUpdate:modelValue"]),
|
|
272
|
+
__props.running ? (openBlock(), createBlock(_component_UButton, {
|
|
273
|
+
key: 0,
|
|
274
|
+
icon: "i-lucide-square",
|
|
275
|
+
variant: "ghost",
|
|
276
|
+
size: "sm",
|
|
277
|
+
color: "error",
|
|
278
|
+
onClick: withModifiers(($event) => emit("cancel", __props.agent.id, $event), ["stop"])
|
|
279
|
+
}, null, 8, ["onClick"])) : (openBlock(), createBlock(_component_UButton, {
|
|
280
|
+
key: 1,
|
|
281
|
+
icon: "i-lucide-play",
|
|
282
|
+
variant: "ghost",
|
|
283
|
+
size: "sm",
|
|
284
|
+
disabled: !__props.agent.enabled,
|
|
285
|
+
onClick: withModifiers(($event) => emit("run", __props.agent.id, $event), ["stop"])
|
|
286
|
+
}, null, 8, ["disabled", "onClick"])),
|
|
287
|
+
createVNode(_component_UButton, {
|
|
288
|
+
icon: "i-lucide-pencil",
|
|
289
|
+
variant: "ghost",
|
|
290
|
+
size: "sm",
|
|
291
|
+
onClick: withModifiers(($event) => emit("edit", __props.agent, $event), ["stop"])
|
|
292
|
+
}, null, 8, ["onClick"])
|
|
293
|
+
])
|
|
294
|
+
])
|
|
295
|
+
];
|
|
296
|
+
}
|
|
297
|
+
}),
|
|
298
|
+
_: 1
|
|
299
|
+
}, _parent));
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
304
|
+
_sfc_main$1.setup = (props, ctx) => {
|
|
305
|
+
const ssrContext = useSSRContext();
|
|
306
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/agents/AgentCard.vue");
|
|
307
|
+
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
308
|
+
};
|
|
309
|
+
const __nuxt_component_7 = Object.assign(_sfc_main$1, { __name: "AgentsAgentCard" });
|
|
310
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
311
|
+
__name: "index",
|
|
312
|
+
__ssrInlineRender: true,
|
|
313
|
+
setup(__props) {
|
|
314
|
+
const toast = useToast();
|
|
315
|
+
const router = useRouter();
|
|
316
|
+
const { agents, loading, createAgent, updateAgent, toggleEnabled, runAgent, cancelAgent, fetchGlobalStats } = useAgents();
|
|
317
|
+
const { isAgentRunning } = useNotificationBus();
|
|
318
|
+
const { agentStatsPeriod } = usePreferences();
|
|
319
|
+
const period = ref(agentStatsPeriod.value);
|
|
320
|
+
const stats = ref(null);
|
|
321
|
+
const statsLoading = ref(false);
|
|
322
|
+
function checkAgentRunning(agentId) {
|
|
323
|
+
if (isAgentRunning(agentId)) return true;
|
|
324
|
+
return stats.value?.runningAgentIds?.includes(agentId) ?? false;
|
|
325
|
+
}
|
|
326
|
+
const showForm = ref(false);
|
|
327
|
+
const editingAgent = ref(null);
|
|
328
|
+
const periodOptions = [
|
|
329
|
+
{ label: "24h", value: "24h" },
|
|
330
|
+
{ label: "7d", value: "7d" },
|
|
331
|
+
{ label: "30d", value: "30d" }
|
|
332
|
+
];
|
|
333
|
+
function openNewAgentForm() {
|
|
334
|
+
editingAgent.value = null;
|
|
335
|
+
showForm.value = true;
|
|
336
|
+
}
|
|
337
|
+
function openEditForm(agent, event) {
|
|
338
|
+
event.stopPropagation();
|
|
339
|
+
editingAgent.value = agent;
|
|
340
|
+
showForm.value = true;
|
|
341
|
+
}
|
|
342
|
+
function navigateToAgent(agent) {
|
|
343
|
+
router.push(`/agents/${agent.id}`);
|
|
344
|
+
}
|
|
345
|
+
async function handleSubmit(data) {
|
|
346
|
+
try {
|
|
347
|
+
if (editingAgent.value) {
|
|
348
|
+
await updateAgent(editingAgent.value.id, data);
|
|
349
|
+
toast.add({
|
|
350
|
+
title: "Agent updated",
|
|
351
|
+
color: "success",
|
|
352
|
+
icon: "i-lucide-check"
|
|
353
|
+
});
|
|
354
|
+
} else {
|
|
355
|
+
await createAgent(data);
|
|
356
|
+
toast.add({
|
|
357
|
+
title: "Agent created",
|
|
358
|
+
color: "success",
|
|
359
|
+
icon: "i-lucide-check"
|
|
360
|
+
});
|
|
361
|
+
loadStats();
|
|
362
|
+
}
|
|
363
|
+
showForm.value = false;
|
|
364
|
+
editingAgent.value = null;
|
|
365
|
+
} catch (e) {
|
|
366
|
+
toast.add({
|
|
367
|
+
title: "Failed to save agent",
|
|
368
|
+
description: e instanceof Error ? e.message : "An unexpected error occurred",
|
|
369
|
+
color: "error",
|
|
370
|
+
icon: "i-lucide-alert-circle"
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
async function handleToggle(id) {
|
|
375
|
+
try {
|
|
376
|
+
await toggleEnabled(id);
|
|
377
|
+
} catch {
|
|
378
|
+
toast.add({
|
|
379
|
+
title: "Failed to toggle agent",
|
|
380
|
+
color: "error",
|
|
381
|
+
icon: "i-lucide-alert-circle"
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
async function handleRun(id, event) {
|
|
386
|
+
event.stopPropagation();
|
|
387
|
+
try {
|
|
388
|
+
await runAgent(id);
|
|
389
|
+
} catch {
|
|
390
|
+
toast.add({
|
|
391
|
+
title: "Failed to run agent",
|
|
392
|
+
color: "error",
|
|
393
|
+
icon: "i-lucide-alert-circle"
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
async function handleCancel(id, event) {
|
|
398
|
+
event.stopPropagation();
|
|
399
|
+
try {
|
|
400
|
+
await cancelAgent(id);
|
|
401
|
+
toast.add({
|
|
402
|
+
title: "Agent cancelled",
|
|
403
|
+
color: "warning",
|
|
404
|
+
icon: "i-lucide-x-circle"
|
|
405
|
+
});
|
|
406
|
+
} catch {
|
|
407
|
+
toast.add({
|
|
408
|
+
title: "Failed to cancel agent",
|
|
409
|
+
color: "error",
|
|
410
|
+
icon: "i-lucide-alert-circle"
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
async function loadStats() {
|
|
415
|
+
statsLoading.value = true;
|
|
416
|
+
try {
|
|
417
|
+
stats.value = await fetchGlobalStats(period.value);
|
|
418
|
+
} catch {
|
|
419
|
+
} finally {
|
|
420
|
+
statsLoading.value = false;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
watch(period, (value) => {
|
|
424
|
+
agentStatsPeriod.value = value;
|
|
425
|
+
loadStats();
|
|
426
|
+
});
|
|
427
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
428
|
+
const _component_UDashboardPanel = _sfc_main$1$1;
|
|
429
|
+
const _component_UDashboardNavbar = _sfc_main$2;
|
|
430
|
+
const _component_UFieldGroup = _sfc_main$3;
|
|
431
|
+
const _component_UButton = _sfc_main$8;
|
|
432
|
+
const _component_AgentsAgentStatsCards = __nuxt_component_4;
|
|
433
|
+
const _component_AgentsAgentActivityChart = __nuxt_component_5;
|
|
434
|
+
const _component_UIcon = _sfc_main$d;
|
|
435
|
+
const _component_AgentsAgentCard = __nuxt_component_7;
|
|
436
|
+
const _component_USlideover = _sfc_main$4;
|
|
437
|
+
const _component_AgentsAgentForm = __nuxt_component_9;
|
|
438
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "contents" }, _attrs))}>`);
|
|
439
|
+
_push(ssrRenderComponent(_component_UDashboardPanel, {
|
|
440
|
+
id: "agents",
|
|
441
|
+
grow: ""
|
|
442
|
+
}, {
|
|
443
|
+
header: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
444
|
+
if (_push2) {
|
|
445
|
+
_push2(ssrRenderComponent(_component_UDashboardNavbar, { title: "Scheduled Agents" }, {
|
|
446
|
+
right: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
447
|
+
if (_push3) {
|
|
448
|
+
_push3(ssrRenderComponent(_component_UFieldGroup, null, {
|
|
449
|
+
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
450
|
+
if (_push4) {
|
|
451
|
+
_push4(`<!--[-->`);
|
|
452
|
+
ssrRenderList(periodOptions, (opt) => {
|
|
453
|
+
_push4(ssrRenderComponent(_component_UButton, {
|
|
454
|
+
key: opt.value,
|
|
455
|
+
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
456
|
+
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
457
|
+
size: "sm",
|
|
458
|
+
onClick: ($event) => period.value = opt.value
|
|
459
|
+
}, {
|
|
460
|
+
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
461
|
+
if (_push5) {
|
|
462
|
+
_push5(`${ssrInterpolate(opt.label)}`);
|
|
463
|
+
} else {
|
|
464
|
+
return [
|
|
465
|
+
createTextVNode(toDisplayString(opt.label), 1)
|
|
466
|
+
];
|
|
467
|
+
}
|
|
468
|
+
}),
|
|
469
|
+
_: 2
|
|
470
|
+
}, _parent4, _scopeId3));
|
|
471
|
+
});
|
|
472
|
+
_push4(`<!--]-->`);
|
|
473
|
+
} else {
|
|
474
|
+
return [
|
|
475
|
+
(openBlock(), createBlock(Fragment, null, renderList(periodOptions, (opt) => {
|
|
476
|
+
return createVNode(_component_UButton, {
|
|
477
|
+
key: opt.value,
|
|
478
|
+
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
479
|
+
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
480
|
+
size: "sm",
|
|
481
|
+
onClick: ($event) => period.value = opt.value
|
|
482
|
+
}, {
|
|
483
|
+
default: withCtx(() => [
|
|
484
|
+
createTextVNode(toDisplayString(opt.label), 1)
|
|
485
|
+
]),
|
|
486
|
+
_: 2
|
|
487
|
+
}, 1032, ["color", "variant", "onClick"]);
|
|
488
|
+
}), 64))
|
|
489
|
+
];
|
|
490
|
+
}
|
|
491
|
+
}),
|
|
492
|
+
_: 1
|
|
493
|
+
}, _parent3, _scopeId2));
|
|
494
|
+
_push3(ssrRenderComponent(_component_UButton, {
|
|
495
|
+
icon: "i-lucide-plus",
|
|
496
|
+
label: "New Agent",
|
|
497
|
+
onClick: openNewAgentForm
|
|
498
|
+
}, null, _parent3, _scopeId2));
|
|
499
|
+
} else {
|
|
500
|
+
return [
|
|
501
|
+
createVNode(_component_UFieldGroup, null, {
|
|
502
|
+
default: withCtx(() => [
|
|
503
|
+
(openBlock(), createBlock(Fragment, null, renderList(periodOptions, (opt) => {
|
|
504
|
+
return createVNode(_component_UButton, {
|
|
505
|
+
key: opt.value,
|
|
506
|
+
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
507
|
+
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
508
|
+
size: "sm",
|
|
509
|
+
onClick: ($event) => period.value = opt.value
|
|
510
|
+
}, {
|
|
511
|
+
default: withCtx(() => [
|
|
512
|
+
createTextVNode(toDisplayString(opt.label), 1)
|
|
513
|
+
]),
|
|
514
|
+
_: 2
|
|
515
|
+
}, 1032, ["color", "variant", "onClick"]);
|
|
516
|
+
}), 64))
|
|
517
|
+
]),
|
|
518
|
+
_: 1
|
|
519
|
+
}),
|
|
520
|
+
createVNode(_component_UButton, {
|
|
521
|
+
icon: "i-lucide-plus",
|
|
522
|
+
label: "New Agent",
|
|
523
|
+
onClick: openNewAgentForm
|
|
524
|
+
})
|
|
525
|
+
];
|
|
526
|
+
}
|
|
527
|
+
}),
|
|
528
|
+
_: 1
|
|
529
|
+
}, _parent2, _scopeId));
|
|
530
|
+
} else {
|
|
531
|
+
return [
|
|
532
|
+
createVNode(_component_UDashboardNavbar, { title: "Scheduled Agents" }, {
|
|
533
|
+
right: withCtx(() => [
|
|
534
|
+
createVNode(_component_UFieldGroup, null, {
|
|
535
|
+
default: withCtx(() => [
|
|
536
|
+
(openBlock(), createBlock(Fragment, null, renderList(periodOptions, (opt) => {
|
|
537
|
+
return createVNode(_component_UButton, {
|
|
538
|
+
key: opt.value,
|
|
539
|
+
color: unref(period) === opt.value ? "primary" : "neutral",
|
|
540
|
+
variant: unref(period) === opt.value ? "solid" : "ghost",
|
|
541
|
+
size: "sm",
|
|
542
|
+
onClick: ($event) => period.value = opt.value
|
|
543
|
+
}, {
|
|
544
|
+
default: withCtx(() => [
|
|
545
|
+
createTextVNode(toDisplayString(opt.label), 1)
|
|
546
|
+
]),
|
|
547
|
+
_: 2
|
|
548
|
+
}, 1032, ["color", "variant", "onClick"]);
|
|
549
|
+
}), 64))
|
|
550
|
+
]),
|
|
551
|
+
_: 1
|
|
552
|
+
}),
|
|
553
|
+
createVNode(_component_UButton, {
|
|
554
|
+
icon: "i-lucide-plus",
|
|
555
|
+
label: "New Agent",
|
|
556
|
+
onClick: openNewAgentForm
|
|
557
|
+
})
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
})
|
|
561
|
+
];
|
|
562
|
+
}
|
|
563
|
+
}),
|
|
564
|
+
body: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
565
|
+
if (_push2) {
|
|
566
|
+
_push2(`<div class="p-4 space-y-6"${_scopeId}>`);
|
|
567
|
+
_push2(ssrRenderComponent(_component_AgentsAgentStatsCards, {
|
|
568
|
+
stats: unref(stats),
|
|
569
|
+
loading: unref(statsLoading),
|
|
570
|
+
variant: "global"
|
|
571
|
+
}, null, _parent2, _scopeId));
|
|
572
|
+
if (unref(stats) && unref(stats).dailyRuns.length > 0) {
|
|
573
|
+
_push2(ssrRenderComponent(_component_AgentsAgentActivityChart, {
|
|
574
|
+
data: unref(stats).dailyRuns,
|
|
575
|
+
title: "Run Activity"
|
|
576
|
+
}, null, _parent2, _scopeId));
|
|
577
|
+
} else {
|
|
578
|
+
_push2(`<!---->`);
|
|
579
|
+
}
|
|
580
|
+
if (unref(loading)) {
|
|
581
|
+
_push2(`<div class="flex items-center justify-center h-64"${_scopeId}>`);
|
|
582
|
+
_push2(ssrRenderComponent(_component_UIcon, {
|
|
583
|
+
name: "i-lucide-loader-2",
|
|
584
|
+
class: "w-8 h-8 animate-spin text-neutral-400"
|
|
585
|
+
}, null, _parent2, _scopeId));
|
|
586
|
+
_push2(`</div>`);
|
|
587
|
+
} else if (unref(agents).length === 0) {
|
|
588
|
+
_push2(`<div class="flex flex-col items-center justify-center h-64 text-neutral-500"${_scopeId}>`);
|
|
589
|
+
_push2(ssrRenderComponent(_component_UIcon, {
|
|
590
|
+
name: "i-lucide-bot",
|
|
591
|
+
class: "w-12 h-12 mb-4"
|
|
592
|
+
}, null, _parent2, _scopeId));
|
|
593
|
+
_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>`);
|
|
594
|
+
_push2(ssrRenderComponent(_component_UButton, {
|
|
595
|
+
class: "mt-4",
|
|
596
|
+
icon: "i-lucide-plus",
|
|
597
|
+
label: "Create Agent",
|
|
598
|
+
onClick: openNewAgentForm
|
|
599
|
+
}, null, _parent2, _scopeId));
|
|
600
|
+
_push2(`</div>`);
|
|
601
|
+
} else {
|
|
602
|
+
_push2(`<div class="space-y-4"${_scopeId}><h2 class="text-lg font-semibold"${_scopeId}> Agents </h2><!--[-->`);
|
|
603
|
+
ssrRenderList(unref(agents), (agent) => {
|
|
604
|
+
_push2(ssrRenderComponent(_component_AgentsAgentCard, {
|
|
605
|
+
key: agent.id,
|
|
606
|
+
agent,
|
|
607
|
+
running: checkAgentRunning(agent.id),
|
|
608
|
+
onToggle: handleToggle,
|
|
609
|
+
onRun: handleRun,
|
|
610
|
+
onCancel: handleCancel,
|
|
611
|
+
onEdit: openEditForm,
|
|
612
|
+
onNavigate: navigateToAgent
|
|
613
|
+
}, null, _parent2, _scopeId));
|
|
614
|
+
});
|
|
615
|
+
_push2(`<!--]--></div>`);
|
|
616
|
+
}
|
|
617
|
+
_push2(`</div>`);
|
|
618
|
+
} else {
|
|
619
|
+
return [
|
|
620
|
+
createVNode("div", { class: "p-4 space-y-6" }, [
|
|
621
|
+
createVNode(_component_AgentsAgentStatsCards, {
|
|
622
|
+
stats: unref(stats),
|
|
623
|
+
loading: unref(statsLoading),
|
|
624
|
+
variant: "global"
|
|
625
|
+
}, null, 8, ["stats", "loading"]),
|
|
626
|
+
unref(stats) && unref(stats).dailyRuns.length > 0 ? (openBlock(), createBlock(_component_AgentsAgentActivityChart, {
|
|
627
|
+
key: 0,
|
|
628
|
+
data: unref(stats).dailyRuns,
|
|
629
|
+
title: "Run Activity"
|
|
630
|
+
}, null, 8, ["data"])) : createCommentVNode("", true),
|
|
631
|
+
unref(loading) ? (openBlock(), createBlock("div", {
|
|
632
|
+
key: 1,
|
|
633
|
+
class: "flex items-center justify-center h-64"
|
|
634
|
+
}, [
|
|
635
|
+
createVNode(_component_UIcon, {
|
|
636
|
+
name: "i-lucide-loader-2",
|
|
637
|
+
class: "w-8 h-8 animate-spin text-neutral-400"
|
|
638
|
+
})
|
|
639
|
+
])) : unref(agents).length === 0 ? (openBlock(), createBlock("div", {
|
|
640
|
+
key: 2,
|
|
641
|
+
class: "flex flex-col items-center justify-center h-64 text-neutral-500"
|
|
642
|
+
}, [
|
|
643
|
+
createVNode(_component_UIcon, {
|
|
644
|
+
name: "i-lucide-bot",
|
|
645
|
+
class: "w-12 h-12 mb-4"
|
|
646
|
+
}),
|
|
647
|
+
createVNode("p", { class: "text-lg font-medium" }, " No agents yet "),
|
|
648
|
+
createVNode("p", { class: "text-sm" }, " Create your first scheduled agent to automate tasks "),
|
|
649
|
+
createVNode(_component_UButton, {
|
|
650
|
+
class: "mt-4",
|
|
651
|
+
icon: "i-lucide-plus",
|
|
652
|
+
label: "Create Agent",
|
|
653
|
+
onClick: openNewAgentForm
|
|
654
|
+
})
|
|
655
|
+
])) : (openBlock(), createBlock("div", {
|
|
656
|
+
key: 3,
|
|
657
|
+
class: "space-y-4"
|
|
658
|
+
}, [
|
|
659
|
+
createVNode("h2", { class: "text-lg font-semibold" }, " Agents "),
|
|
660
|
+
(openBlock(true), createBlock(Fragment, null, renderList(unref(agents), (agent) => {
|
|
661
|
+
return openBlock(), createBlock(_component_AgentsAgentCard, {
|
|
662
|
+
key: agent.id,
|
|
663
|
+
agent,
|
|
664
|
+
running: checkAgentRunning(agent.id),
|
|
665
|
+
onToggle: handleToggle,
|
|
666
|
+
onRun: handleRun,
|
|
667
|
+
onCancel: handleCancel,
|
|
668
|
+
onEdit: openEditForm,
|
|
669
|
+
onNavigate: navigateToAgent
|
|
670
|
+
}, null, 8, ["agent", "running"]);
|
|
671
|
+
}), 128))
|
|
672
|
+
]))
|
|
673
|
+
])
|
|
674
|
+
];
|
|
675
|
+
}
|
|
676
|
+
}),
|
|
677
|
+
_: 1
|
|
678
|
+
}, _parent));
|
|
679
|
+
_push(ssrRenderComponent(_component_USlideover, {
|
|
680
|
+
open: unref(showForm),
|
|
681
|
+
"onUpdate:open": ($event) => isRef(showForm) ? showForm.value = $event : null
|
|
682
|
+
}, {
|
|
683
|
+
title: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
684
|
+
if (_push2) {
|
|
685
|
+
_push2(`${ssrInterpolate(unref(editingAgent) ? "Edit Agent" : "New Agent")}`);
|
|
686
|
+
} else {
|
|
687
|
+
return [
|
|
688
|
+
createTextVNode(toDisplayString(unref(editingAgent) ? "Edit Agent" : "New Agent"), 1)
|
|
689
|
+
];
|
|
690
|
+
}
|
|
691
|
+
}),
|
|
692
|
+
body: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
693
|
+
if (_push2) {
|
|
694
|
+
_push2(ssrRenderComponent(_component_AgentsAgentForm, {
|
|
695
|
+
agent: unref(editingAgent),
|
|
696
|
+
onSubmit: handleSubmit,
|
|
697
|
+
onCancel: ($event) => showForm.value = false
|
|
698
|
+
}, null, _parent2, _scopeId));
|
|
699
|
+
} else {
|
|
700
|
+
return [
|
|
701
|
+
createVNode(_component_AgentsAgentForm, {
|
|
702
|
+
agent: unref(editingAgent),
|
|
703
|
+
onSubmit: handleSubmit,
|
|
704
|
+
onCancel: ($event) => showForm.value = false
|
|
705
|
+
}, null, 8, ["agent", "onCancel"])
|
|
706
|
+
];
|
|
707
|
+
}
|
|
708
|
+
}),
|
|
709
|
+
_: 1
|
|
710
|
+
}, _parent));
|
|
711
|
+
_push(`</div>`);
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
const _sfc_setup = _sfc_main.setup;
|
|
716
|
+
_sfc_main.setup = (props, ctx) => {
|
|
717
|
+
const ssrContext = useSSRContext();
|
|
718
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/agents/index.vue");
|
|
719
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
export { _sfc_main as default };
|
|
723
|
+
//# sourceMappingURL=index-Cz9Y6NwN.mjs.map
|