cognova 0.2.12 → 0.2.14
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/{CLfF6dSn.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/{DEd2xVbS.js → 8WMJQbWG.js} +1 -1
- package/.output/public/_nuxt/9Rw88G6h.js +1 -0
- package/.output/public/_nuxt/{PP_4ebzl.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/{D8M722pn.js → BAY3_Hrq.js} +1 -1
- package/.output/public/_nuxt/{0yk-pS3R.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/{2dNDtTiv.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/{4K03TkGA.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/{BHtY0l0l.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/{7oCGSglN.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/{CVqlefTY.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/{rfGRTJJW.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/{JX1oqJI9.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/{t8aDAkZ5.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/{EgKnQnf-.js → CPwCTHun.js} +1 -1
- package/.output/public/_nuxt/{ixlNW2So.js → CS8SdmH2.js} +1 -1
- package/.output/public/_nuxt/CTGm_mc8.js +1 -0
- package/.output/public/_nuxt/{CPutXj8l.js → CTQFGHjS.js} +1 -1
- package/.output/public/_nuxt/{BS2ZNXI1.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/{gTrVszwd.js → C_doutX-.js} +1 -1
- package/.output/public/_nuxt/{CY-QVcA5.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/{fbyIeNkc.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/{Bk6JUtIo.js → CuvkTsqs.js} +1 -1
- package/.output/public/_nuxt/{Db4KMnt8.js → CxMuZEwX.js} +1 -1
- package/.output/public/_nuxt/{vIOxcXKR.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/{CuxrHsu-.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/{DwY7rCd_.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/{BYHCP8x7.js → DNAMjHbb.js} +1 -1
- package/.output/public/_nuxt/{C6qKcgOY.js → DP8t9VWs.js} +26 -26
- package/.output/public/_nuxt/DTR31rjp.js +1 -0
- package/.output/public/_nuxt/{CZoEPC_Q.js → DTlSLSo1.js} +3 -3
- package/.output/public/_nuxt/{DtjjnHnt.js → DVdnhfXT.js} +1 -1
- package/.output/public/_nuxt/DZikIgHK.js +1 -0
- 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/{BKXg-alD.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/d7188f50-b42c-4d2c-afab-066d318f0af8.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/{DhI5cA_n.js → hCeWb_38.js} +1 -1
- package/.output/public/_nuxt/{CQqCBrXj.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/{BLnYhy_t.js → kkAMoB43.js} +1 -1
- package/.output/public/_nuxt/{DzGy77Vr.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/{BDyn4ApB.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-CR3JIVEq.mjs → chat-BphuYhvA.mjs} +532 -39
- 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 +1021 -867
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/_ws/chat.mjs +39 -5
- package/.output/server/chunks/routes/_ws/chat.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/Claude/skills/_lib/api.py +3 -2
- 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/ChatInput.vue +133 -5
- package/app/components/chat/ConversationList.vue +2 -12
- package/app/components/chat/MessageBubble.vue +188 -6
- 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/useAttachments.ts +196 -0
- package/app/composables/useChat.ts +14 -2
- 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/chat.vue +4 -2
- 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 +26 -2
- 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/bridge/adapters/imessage.ts +9 -2
- package/server/drizzle/migrations/0016_full_text_search.sql +127 -0
- package/server/drizzle/migrations/meta/_journal.json +7 -0
- package/server/routes/_ws/chat.ts +61 -7
- package/server/utils/chat-session-manager.ts +20 -2
- package/shared/types/index.ts +34 -2
- package/shared/utils/formatting.ts +105 -0
- package/.output/public/_nuxt/0NJ3PaRM.js +0 -1
- package/.output/public/_nuxt/10_wwHSz.js +0 -1
- package/.output/public/_nuxt/1zUTf4AP.js +0 -1
- package/.output/public/_nuxt/2nOqGUPr.js +0 -1
- package/.output/public/_nuxt/3jQMk_5H.js +0 -1
- package/.output/public/_nuxt/6boMs_nF.js +0 -1
- package/.output/public/_nuxt/8q5NepGW.js +0 -9
- package/.output/public/_nuxt/B93pdGAW.js +0 -1
- package/.output/public/_nuxt/BA_pRWwX.js +0 -1
- package/.output/public/_nuxt/BGgwYWjH.js +0 -1
- package/.output/public/_nuxt/BH0QDWEm.js +0 -1
- package/.output/public/_nuxt/BIXrSYwR.js +0 -1
- package/.output/public/_nuxt/BK8S2ony.js +0 -1
- package/.output/public/_nuxt/BR8bKz8h.js +0 -1
- package/.output/public/_nuxt/BUghTae1.js +0 -1
- package/.output/public/_nuxt/BXuWCWsJ.js +0 -1
- package/.output/public/_nuxt/BZrSPX0S.js +0 -1
- package/.output/public/_nuxt/B_wilgcd.js +0 -1
- package/.output/public/_nuxt/BaZwjF8o.js +0 -1
- package/.output/public/_nuxt/Bciqk4dX.js +0 -1
- package/.output/public/_nuxt/Beom-INj.js +0 -1
- package/.output/public/_nuxt/BfcLZ_fC.js +0 -1
- package/.output/public/_nuxt/BkfI94R8.js +0 -1
- package/.output/public/_nuxt/BmOtR1wX.js +0 -1
- package/.output/public/_nuxt/BmVLxnDU.js +0 -1
- package/.output/public/_nuxt/BtHQ1T0f.js +0 -1
- package/.output/public/_nuxt/ByYh0uRg.js +0 -1
- package/.output/public/_nuxt/C27WoGNZ.js +0 -1
- package/.output/public/_nuxt/C2FxZbO_.js +0 -1
- package/.output/public/_nuxt/C2vq6Te8.js +0 -1
- package/.output/public/_nuxt/C39dQ88F.js +0 -1
- package/.output/public/_nuxt/C3NST0BU.js +0 -1
- package/.output/public/_nuxt/C4mwL7SE.js +0 -7
- package/.output/public/_nuxt/C5R5QaCA.js +0 -1
- package/.output/public/_nuxt/C71_a1IX.js +0 -1
- package/.output/public/_nuxt/C9WIgRRL.js +0 -1
- package/.output/public/_nuxt/CBTkrk2M.js +0 -1
- package/.output/public/_nuxt/CEnSeCqn.js +0 -1
- package/.output/public/_nuxt/CKxSHyww.js +0 -1
- package/.output/public/_nuxt/CSKJ-Ahh.js +0 -1
- package/.output/public/_nuxt/CTCcEJU3.js +0 -1
- package/.output/public/_nuxt/CVFwOzbl.js +0 -1
- package/.output/public/_nuxt/CVdCqaby.js +0 -1
- package/.output/public/_nuxt/CWyMCJQH.js +0 -1
- package/.output/public/_nuxt/CY-cjAwJ.js +0 -1
- package/.output/public/_nuxt/CYPO5o_C.js +0 -1
- package/.output/public/_nuxt/CZRnNmU8.js +0 -1
- package/.output/public/_nuxt/CZVzFlpI.js +0 -1
- package/.output/public/_nuxt/Cc-2ziaZ.js +0 -1
- package/.output/public/_nuxt/ChcO9s3o.js +0 -1
- package/.output/public/_nuxt/Cl-LOSDV.js +0 -1
- package/.output/public/_nuxt/CobqYwkp.js +0 -1
- package/.output/public/_nuxt/CqNwHCpo.js +0 -1
- package/.output/public/_nuxt/CwPdIZ9J.js +0 -1
- package/.output/public/_nuxt/D0ifH682.js +0 -1
- package/.output/public/_nuxt/D3AZaldL.js +0 -1
- package/.output/public/_nuxt/D4UJwDQJ.js +0 -1
- package/.output/public/_nuxt/D5jZq8b3.js +0 -1
- package/.output/public/_nuxt/D5q8SnqE.js +0 -1
- package/.output/public/_nuxt/D8lwrAYS.js +0 -1
- package/.output/public/_nuxt/D9nmzBAw.js +0 -1
- package/.output/public/_nuxt/DC4idAGt.js +0 -1
- package/.output/public/_nuxt/DH4YkDAi.js +0 -1
- package/.output/public/_nuxt/DJTCT0bl.js +0 -1
- package/.output/public/_nuxt/DNP5E1bC.js +0 -39
- package/.output/public/_nuxt/DO9SFIh1.js +0 -1
- package/.output/public/_nuxt/DPklr_tJ.js +0 -2
- package/.output/public/_nuxt/DQM4eBdt.js +0 -1
- package/.output/public/_nuxt/DQh6I9z9.js +0 -1
- package/.output/public/_nuxt/DS2wStH1.js +0 -1
- package/.output/public/_nuxt/DTAStixR.js +0 -1
- package/.output/public/_nuxt/DTGenhcA.js +0 -1
- package/.output/public/_nuxt/DUAAXJ6Q.js +0 -1
- package/.output/public/_nuxt/DUVzIl3o.js +0 -1
- package/.output/public/_nuxt/DXdwpJ-I.js +0 -16
- package/.output/public/_nuxt/DY3uK7wM.js +0 -1
- package/.output/public/_nuxt/DYbZBZet.js +0 -1
- package/.output/public/_nuxt/D_4LPm1U.js +0 -1
- package/.output/public/_nuxt/DcJbYLTp.js +0 -1
- package/.output/public/_nuxt/DfF81NlA.js +0 -1
- package/.output/public/_nuxt/DhuOKJda.js +0 -1
- package/.output/public/_nuxt/Di-Nc75e.js +0 -1
- package/.output/public/_nuxt/Djs0Tlpa.js +0 -1
- package/.output/public/_nuxt/DmmdPt_5.js +0 -1
- package/.output/public/_nuxt/Dn5a-guE.js +0 -1
- package/.output/public/_nuxt/DuvzM-P1.js +0 -1
- package/.output/public/_nuxt/Dya5oK8u.js +0 -1
- package/.output/public/_nuxt/DzA58_Lm.js +0 -1
- package/.output/public/_nuxt/E3rXPwU8.js +0 -1
- package/.output/public/_nuxt/GtEM7xVU.js +0 -1
- package/.output/public/_nuxt/H6JbrRBU.js +0 -1
- package/.output/public/_nuxt/ILEvizzp.js +0 -1
- package/.output/public/_nuxt/JbHa4oXq.js +0 -1
- package/.output/public/_nuxt/Kw0zy3FG.js +0 -1
- package/.output/public/_nuxt/N5XtbYVD.js +0 -1
- package/.output/public/_nuxt/SrncdpaW.js +0 -1
- package/.output/public/_nuxt/U1MWjQMi.js +0 -1
- package/.output/public/_nuxt/Um1vPiAz.js +0 -1
- package/.output/public/_nuxt/XCjS70z4.js +0 -1
- package/.output/public/_nuxt/YX8avsvq.js +0 -2
- package/.output/public/_nuxt/_cy8R3nk.js +0 -1
- package/.output/public/_nuxt/apYB9dr5.js +0 -1
- package/.output/public/_nuxt/builds/meta/a892969f-e07d-4f44-8d7e-57a4b7f33d94.json +0 -1
- package/.output/public/_nuxt/dashboard.BxCOkJwt.css +0 -1
- package/.output/public/_nuxt/entry.NKPfH2kE.css +0 -1
- package/.output/public/_nuxt/g5MjDvm5.js +0 -1
- package/.output/public/_nuxt/nnQqD5pb.js +0 -1
- package/.output/public/_nuxt/vScW1Zgm.js +0 -1
- package/.output/public/_nuxt/wO6z2ugJ.js +0 -1
- package/.output/public/_nuxt/x6FRJ5ac.js +0 -1
- package/.output/public/_nuxt/zq-a1TeT.js +0 -1
- package/.output/server/chunks/build/_id_-DN00UDdO.mjs.map +0 -1
- package/.output/server/chunks/build/chat-CR3JIVEq.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,38 +1,48 @@
|
|
|
1
1
|
import { refDebounced } from '@vueuse/core'
|
|
2
|
-
import type { Task, Document } from '~~/shared/types'
|
|
2
|
+
import type { Task, Document, CronAgent, Conversation } from '~~/shared/types'
|
|
3
3
|
|
|
4
4
|
export interface SearchResults {
|
|
5
5
|
tasks: Task[]
|
|
6
6
|
documents: Document[]
|
|
7
|
+
agents: CronAgent[]
|
|
8
|
+
conversations: Conversation[]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const emptyResults: SearchResults = {
|
|
12
|
+
tasks: [],
|
|
13
|
+
documents: [],
|
|
14
|
+
agents: [],
|
|
15
|
+
conversations: []
|
|
7
16
|
}
|
|
8
17
|
|
|
9
18
|
export function useSearch() {
|
|
10
19
|
const searchTerm = ref('')
|
|
11
20
|
const debouncedSearchTerm = refDebounced(searchTerm, 300)
|
|
12
21
|
const loading = ref(false)
|
|
13
|
-
const results = ref<SearchResults>({
|
|
14
|
-
tasks: [],
|
|
15
|
-
documents: []
|
|
16
|
-
})
|
|
22
|
+
const results = ref<SearchResults>({ ...emptyResults })
|
|
17
23
|
|
|
18
24
|
watch(debouncedSearchTerm, async (term) => {
|
|
19
25
|
if (!term || term.length < 2) {
|
|
20
|
-
results.value = {
|
|
26
|
+
results.value = { ...emptyResults }
|
|
21
27
|
return
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
loading.value = true
|
|
25
31
|
try {
|
|
26
|
-
const [tasksRes, docsRes] = await Promise.all([
|
|
32
|
+
const [tasksRes, docsRes, agentsRes, convsRes] = await Promise.all([
|
|
27
33
|
$fetch<{ data: Task[] }>('/api/tasks', { query: { search: term } }),
|
|
28
|
-
$fetch<{ data: Document[] }>('/api/documents', { query: { search: term } })
|
|
34
|
+
$fetch<{ data: Document[] }>('/api/documents', { query: { search: term } }),
|
|
35
|
+
$fetch<{ data: CronAgent[] }>('/api/agents', { query: { search: term } }),
|
|
36
|
+
$fetch<{ data: Conversation[] }>('/api/conversations', { query: { search: term } })
|
|
29
37
|
])
|
|
30
38
|
results.value = {
|
|
31
39
|
tasks: tasksRes.data.slice(0, 5),
|
|
32
|
-
documents: docsRes.data.slice(0, 5)
|
|
40
|
+
documents: docsRes.data.slice(0, 5),
|
|
41
|
+
agents: agentsRes.data.slice(0, 5),
|
|
42
|
+
conversations: convsRes.data.slice(0, 5)
|
|
33
43
|
}
|
|
34
44
|
} catch {
|
|
35
|
-
results.value = {
|
|
45
|
+
results.value = { ...emptyResults }
|
|
36
46
|
} finally {
|
|
37
47
|
loading.value = false
|
|
38
48
|
}
|
|
@@ -40,7 +50,7 @@ export function useSearch() {
|
|
|
40
50
|
|
|
41
51
|
function reset() {
|
|
42
52
|
searchTerm.value = ''
|
|
43
|
-
results.value = {
|
|
53
|
+
results.value = { ...emptyResults }
|
|
44
54
|
}
|
|
45
55
|
|
|
46
56
|
return {
|
|
@@ -61,72 +61,6 @@ const showDeleteConfirm = ref(false)
|
|
|
61
61
|
const selectedRun = ref<CronAgentRun | null>(null)
|
|
62
62
|
const showRunModal = ref(false)
|
|
63
63
|
|
|
64
|
-
// Format cron expression to human readable
|
|
65
|
-
function formatSchedule(schedule: string) {
|
|
66
|
-
const parts = schedule.split(' ')
|
|
67
|
-
if (parts.length !== 5) return schedule
|
|
68
|
-
|
|
69
|
-
const min = parts[0]!
|
|
70
|
-
const hour = parts[1]!
|
|
71
|
-
const dayOfMonth = parts[2]!
|
|
72
|
-
const month = parts[3]!
|
|
73
|
-
const dayOfWeek = parts[4]!
|
|
74
|
-
|
|
75
|
-
if (min === '0' && hour === '*' && dayOfMonth === '*' && month === '*' && dayOfWeek === '*')
|
|
76
|
-
return 'Every hour'
|
|
77
|
-
if (min === '*/5' && hour === '*' && dayOfMonth === '*' && month === '*' && dayOfWeek === '*')
|
|
78
|
-
return 'Every 5 minutes'
|
|
79
|
-
if (dayOfMonth === '*' && month === '*' && dayOfWeek === '*' && hour !== '*')
|
|
80
|
-
return `Daily at ${hour}:${min.padStart(2, '0')}`
|
|
81
|
-
if (dayOfWeek === '0' && dayOfMonth === '*' && month === '*')
|
|
82
|
-
return `Weekly on Sunday at ${hour}:${min.padStart(2, '0')}`
|
|
83
|
-
|
|
84
|
-
return schedule
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Format relative time
|
|
88
|
-
function formatRelativeTime(date?: Date | string) {
|
|
89
|
-
if (!date) return 'Never'
|
|
90
|
-
const d = new Date(date)
|
|
91
|
-
const now = new Date()
|
|
92
|
-
const diff = now.getTime() - d.getTime()
|
|
93
|
-
const minutes = Math.floor(diff / 60000)
|
|
94
|
-
const hours = Math.floor(diff / 3600000)
|
|
95
|
-
const days = Math.floor(diff / 86400000)
|
|
96
|
-
|
|
97
|
-
if (minutes < 1) return 'Just now'
|
|
98
|
-
if (minutes < 60) return `${minutes}m ago`
|
|
99
|
-
if (hours < 24) return `${hours}h ago`
|
|
100
|
-
return `${days}d ago`
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Format duration
|
|
104
|
-
function formatDuration(ms?: number) {
|
|
105
|
-
if (!ms) return '-'
|
|
106
|
-
if (ms < 1000) return `${ms}ms`
|
|
107
|
-
if (ms < 60000) return `${(ms / 1000).toFixed(1)}s`
|
|
108
|
-
return `${(ms / 60000).toFixed(1)}m`
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Format date time
|
|
112
|
-
function formatDateTime(date?: Date | string) {
|
|
113
|
-
if (!date) return '-'
|
|
114
|
-
const d = new Date(date)
|
|
115
|
-
return d.toLocaleString()
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Status badge color
|
|
119
|
-
function getStatusColor(status?: string) {
|
|
120
|
-
switch (status) {
|
|
121
|
-
case 'success': return 'success'
|
|
122
|
-
case 'error': return 'error'
|
|
123
|
-
case 'budget_exceeded': return 'warning'
|
|
124
|
-
case 'running': return 'info'
|
|
125
|
-
case 'cancelled': return 'neutral'
|
|
126
|
-
default: return 'neutral'
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
64
|
// Load stats
|
|
131
65
|
async function loadStats() {
|
|
132
66
|
statsLoading.value = true
|
|
@@ -256,13 +190,6 @@ function openRunModal(run: CronAgentRun) {
|
|
|
256
190
|
showRunModal.value = true
|
|
257
191
|
}
|
|
258
192
|
|
|
259
|
-
// Truncate output for list display
|
|
260
|
-
function truncateOutput(output?: string, maxLength = 100) {
|
|
261
|
-
if (!output) return '-'
|
|
262
|
-
if (output.length <= maxLength) return output
|
|
263
|
-
return output.substring(0, maxLength) + '...'
|
|
264
|
-
}
|
|
265
|
-
|
|
266
193
|
// Watch period changes
|
|
267
194
|
watch(period, () => {
|
|
268
195
|
loadStats()
|
|
@@ -392,49 +319,7 @@ onMounted(() => {
|
|
|
392
319
|
class="p-4 space-y-6"
|
|
393
320
|
>
|
|
394
321
|
<!-- Agent Info -->
|
|
395
|
-
<
|
|
396
|
-
<div class="space-y-3">
|
|
397
|
-
<div v-if="agent.description">
|
|
398
|
-
<p class="text-sm text-muted uppercase mb-1">
|
|
399
|
-
Description
|
|
400
|
-
</p>
|
|
401
|
-
<p>{{ agent.description }}</p>
|
|
402
|
-
</div>
|
|
403
|
-
|
|
404
|
-
<div class="flex flex-wrap gap-6">
|
|
405
|
-
<div>
|
|
406
|
-
<p class="text-sm text-muted uppercase mb-1">
|
|
407
|
-
Schedule
|
|
408
|
-
</p>
|
|
409
|
-
<p class="flex items-center gap-2">
|
|
410
|
-
<UIcon name="i-lucide-clock" />
|
|
411
|
-
{{ formatSchedule(agent.schedule) }}
|
|
412
|
-
<span class="text-sm text-muted">({{ agent.schedule }})</span>
|
|
413
|
-
</p>
|
|
414
|
-
</div>
|
|
415
|
-
|
|
416
|
-
<div v-if="agent.maxBudgetUsd">
|
|
417
|
-
<p class="text-sm text-muted uppercase mb-1">
|
|
418
|
-
Budget Limit
|
|
419
|
-
</p>
|
|
420
|
-
<p class="flex items-center gap-2">
|
|
421
|
-
<UIcon name="i-lucide-dollar-sign" />
|
|
422
|
-
${{ agent.maxBudgetUsd }} per run
|
|
423
|
-
</p>
|
|
424
|
-
</div>
|
|
425
|
-
|
|
426
|
-
<div v-if="agent.lastRunAt">
|
|
427
|
-
<p class="text-sm text-muted uppercase mb-1">
|
|
428
|
-
Last Run
|
|
429
|
-
</p>
|
|
430
|
-
<p class="flex items-center gap-2">
|
|
431
|
-
<UIcon name="i-lucide-activity" />
|
|
432
|
-
{{ formatRelativeTime(agent.lastRunAt) }}
|
|
433
|
-
</p>
|
|
434
|
-
</div>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
</UCard>
|
|
322
|
+
<AgentsAgentInfoCard :agent="agent" />
|
|
438
323
|
|
|
439
324
|
<!-- Stats Cards -->
|
|
440
325
|
<AgentsAgentStatsCards
|
|
@@ -451,87 +336,11 @@ onMounted(() => {
|
|
|
451
336
|
/>
|
|
452
337
|
|
|
453
338
|
<!-- Run History -->
|
|
454
|
-
<
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
<!-- Loading runs -->
|
|
460
|
-
<div
|
|
461
|
-
v-if="runsLoading"
|
|
462
|
-
class="flex items-center justify-center h-32"
|
|
463
|
-
>
|
|
464
|
-
<UIcon
|
|
465
|
-
name="i-lucide-loader-2"
|
|
466
|
-
class="w-6 h-6 animate-spin text-neutral-400"
|
|
467
|
-
/>
|
|
468
|
-
</div>
|
|
469
|
-
|
|
470
|
-
<!-- Empty state -->
|
|
471
|
-
<div
|
|
472
|
-
v-else-if="runs.length === 0"
|
|
473
|
-
class="flex flex-col items-center justify-center h-32 text-neutral-500"
|
|
474
|
-
>
|
|
475
|
-
<UIcon
|
|
476
|
-
name="i-lucide-history"
|
|
477
|
-
class="w-8 h-8 mb-2"
|
|
478
|
-
/>
|
|
479
|
-
<p>No runs yet</p>
|
|
480
|
-
</div>
|
|
481
|
-
|
|
482
|
-
<!-- Run list -->
|
|
483
|
-
<div
|
|
484
|
-
v-else
|
|
485
|
-
class="space-y-2"
|
|
486
|
-
>
|
|
487
|
-
<UCard
|
|
488
|
-
v-for="run in runs"
|
|
489
|
-
:key="run.id"
|
|
490
|
-
class="cursor-pointer transition-all hover:ring-2 hover:ring-primary/50"
|
|
491
|
-
@click="openRunModal(run)"
|
|
492
|
-
>
|
|
493
|
-
<div class="flex items-start justify-between gap-4">
|
|
494
|
-
<div class="flex-1 min-w-0">
|
|
495
|
-
<div class="flex items-center gap-2 mb-1">
|
|
496
|
-
<UBadge
|
|
497
|
-
v-if="run.status === 'running'"
|
|
498
|
-
color="info"
|
|
499
|
-
variant="subtle"
|
|
500
|
-
size="sm"
|
|
501
|
-
>
|
|
502
|
-
<UIcon
|
|
503
|
-
name="i-lucide-loader-2"
|
|
504
|
-
class="w-3 h-3 animate-spin mr-1"
|
|
505
|
-
/>
|
|
506
|
-
Running
|
|
507
|
-
</UBadge>
|
|
508
|
-
<UBadge
|
|
509
|
-
v-else
|
|
510
|
-
:color="getStatusColor(run.status)"
|
|
511
|
-
size="sm"
|
|
512
|
-
>
|
|
513
|
-
{{ run.status }}
|
|
514
|
-
</UBadge>
|
|
515
|
-
<span class="text-sm text-muted">
|
|
516
|
-
{{ formatDateTime(run.startedAt) }}
|
|
517
|
-
</span>
|
|
518
|
-
</div>
|
|
519
|
-
|
|
520
|
-
<p class="text-sm text-muted truncate">
|
|
521
|
-
{{ run.error ? truncateOutput(run.error) : truncateOutput(run.output) }}
|
|
522
|
-
</p>
|
|
523
|
-
</div>
|
|
524
|
-
|
|
525
|
-
<div class="text-right text-sm text-muted shrink-0">
|
|
526
|
-
<p>{{ formatDuration(run.durationMs) }}</p>
|
|
527
|
-
<p v-if="run.costUsd">
|
|
528
|
-
${{ run.costUsd.toFixed(4) }}
|
|
529
|
-
</p>
|
|
530
|
-
</div>
|
|
531
|
-
</div>
|
|
532
|
-
</UCard>
|
|
533
|
-
</div>
|
|
534
|
-
</div>
|
|
339
|
+
<AgentsAgentRunHistory
|
|
340
|
+
:runs="runs"
|
|
341
|
+
:loading="runsLoading"
|
|
342
|
+
@select="openRunModal"
|
|
343
|
+
/>
|
|
535
344
|
</div>
|
|
536
345
|
</template>
|
|
537
346
|
</UDashboardPanel>
|
|
@@ -36,45 +36,6 @@ const periodOptions = [
|
|
|
36
36
|
{ label: '30d', value: '30d' as StatsPeriod }
|
|
37
37
|
]
|
|
38
38
|
|
|
39
|
-
// Format cron expression to human readable
|
|
40
|
-
function formatSchedule(schedule: string) {
|
|
41
|
-
const parts = schedule.split(' ')
|
|
42
|
-
if (parts.length !== 5) return schedule
|
|
43
|
-
|
|
44
|
-
const min = parts[0]!
|
|
45
|
-
const hour = parts[1]!
|
|
46
|
-
const dayOfMonth = parts[2]!
|
|
47
|
-
const month = parts[3]!
|
|
48
|
-
const dayOfWeek = parts[4]!
|
|
49
|
-
|
|
50
|
-
if (min === '0' && hour === '*' && dayOfMonth === '*' && month === '*' && dayOfWeek === '*')
|
|
51
|
-
return 'Every hour'
|
|
52
|
-
if (min === '*/5' && hour === '*' && dayOfMonth === '*' && month === '*' && dayOfWeek === '*')
|
|
53
|
-
return 'Every 5 minutes'
|
|
54
|
-
if (dayOfMonth === '*' && month === '*' && dayOfWeek === '*' && hour !== '*')
|
|
55
|
-
return `Daily at ${hour}:${min.padStart(2, '0')}`
|
|
56
|
-
if (dayOfWeek === '0' && dayOfMonth === '*' && month === '*')
|
|
57
|
-
return `Weekly on Sunday at ${hour}:${min.padStart(2, '0')}`
|
|
58
|
-
|
|
59
|
-
return schedule
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Format relative time
|
|
63
|
-
function formatRelativeTime(date?: Date | string) {
|
|
64
|
-
if (!date) return 'Never'
|
|
65
|
-
const d = new Date(date)
|
|
66
|
-
const now = new Date()
|
|
67
|
-
const diff = now.getTime() - d.getTime()
|
|
68
|
-
const minutes = Math.floor(diff / 60000)
|
|
69
|
-
const hours = Math.floor(diff / 3600000)
|
|
70
|
-
const days = Math.floor(diff / 86400000)
|
|
71
|
-
|
|
72
|
-
if (minutes < 1) return 'Just now'
|
|
73
|
-
if (minutes < 60) return `${minutes}m ago`
|
|
74
|
-
if (hours < 24) return `${hours}h ago`
|
|
75
|
-
return `${days}d ago`
|
|
76
|
-
}
|
|
77
|
-
|
|
78
39
|
// Open form for new agent
|
|
79
40
|
function openNewAgentForm() {
|
|
80
41
|
editingAgent.value = null
|
|
@@ -171,18 +132,6 @@ async function handleCancel(id: string, event: Event) {
|
|
|
171
132
|
}
|
|
172
133
|
}
|
|
173
134
|
|
|
174
|
-
// Status badge color
|
|
175
|
-
function getStatusColor(status?: string) {
|
|
176
|
-
switch (status) {
|
|
177
|
-
case 'success': return 'success'
|
|
178
|
-
case 'error': return 'error'
|
|
179
|
-
case 'budget_exceeded': return 'warning'
|
|
180
|
-
case 'running': return 'info'
|
|
181
|
-
case 'cancelled': return 'neutral'
|
|
182
|
-
default: return 'neutral'
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
135
|
// Load stats
|
|
187
136
|
async function loadStats() {
|
|
188
137
|
statsLoading.value = true
|
|
@@ -296,99 +245,17 @@ onMounted(async () => {
|
|
|
296
245
|
<h2 class="text-lg font-semibold">
|
|
297
246
|
Agents
|
|
298
247
|
</h2>
|
|
299
|
-
<
|
|
248
|
+
<AgentsAgentCard
|
|
300
249
|
v-for="agent in agents"
|
|
301
250
|
:key="agent.id"
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
</h3>
|
|
311
|
-
<UBadge
|
|
312
|
-
v-if="checkAgentRunning(agent.id)"
|
|
313
|
-
color="info"
|
|
314
|
-
variant="subtle"
|
|
315
|
-
size="sm"
|
|
316
|
-
>
|
|
317
|
-
<UIcon
|
|
318
|
-
name="i-lucide-loader-2"
|
|
319
|
-
class="w-3 h-3 animate-spin mr-1"
|
|
320
|
-
/>
|
|
321
|
-
Running
|
|
322
|
-
</UBadge>
|
|
323
|
-
<UBadge
|
|
324
|
-
v-else-if="agent.lastStatus"
|
|
325
|
-
:color="getStatusColor(agent.lastStatus)"
|
|
326
|
-
size="sm"
|
|
327
|
-
>
|
|
328
|
-
{{ agent.lastStatus }}
|
|
329
|
-
</UBadge>
|
|
330
|
-
</div>
|
|
331
|
-
|
|
332
|
-
<p
|
|
333
|
-
v-if="agent.description"
|
|
334
|
-
class="text-sm text-muted truncate mt-1"
|
|
335
|
-
>
|
|
336
|
-
{{ agent.description }}
|
|
337
|
-
</p>
|
|
338
|
-
|
|
339
|
-
<div class="flex items-center gap-4 mt-2 text-sm text-muted">
|
|
340
|
-
<span class="flex items-center gap-1">
|
|
341
|
-
<UIcon name="i-lucide-clock" />
|
|
342
|
-
{{ formatSchedule(agent.schedule) }}
|
|
343
|
-
</span>
|
|
344
|
-
<span
|
|
345
|
-
v-if="agent.lastRunAt"
|
|
346
|
-
class="flex items-center gap-1"
|
|
347
|
-
>
|
|
348
|
-
<UIcon name="i-lucide-activity" />
|
|
349
|
-
{{ formatRelativeTime(agent.lastRunAt) }}
|
|
350
|
-
</span>
|
|
351
|
-
<span
|
|
352
|
-
v-if="agent.maxBudgetUsd"
|
|
353
|
-
class="flex items-center gap-1"
|
|
354
|
-
>
|
|
355
|
-
<UIcon name="i-lucide-dollar-sign" />
|
|
356
|
-
${{ agent.maxBudgetUsd }} limit
|
|
357
|
-
</span>
|
|
358
|
-
</div>
|
|
359
|
-
</div>
|
|
360
|
-
|
|
361
|
-
<div class="flex items-center gap-2">
|
|
362
|
-
<USwitch
|
|
363
|
-
:model-value="agent.enabled"
|
|
364
|
-
@click.stop
|
|
365
|
-
@update:model-value="handleToggle(agent.id)"
|
|
366
|
-
/>
|
|
367
|
-
<UButton
|
|
368
|
-
v-if="checkAgentRunning(agent.id)"
|
|
369
|
-
icon="i-lucide-square"
|
|
370
|
-
variant="ghost"
|
|
371
|
-
size="sm"
|
|
372
|
-
color="error"
|
|
373
|
-
@click.stop="handleCancel(agent.id, $event)"
|
|
374
|
-
/>
|
|
375
|
-
<UButton
|
|
376
|
-
v-else
|
|
377
|
-
icon="i-lucide-play"
|
|
378
|
-
variant="ghost"
|
|
379
|
-
size="sm"
|
|
380
|
-
:disabled="!agent.enabled"
|
|
381
|
-
@click.stop="handleRun(agent.id, $event)"
|
|
382
|
-
/>
|
|
383
|
-
<UButton
|
|
384
|
-
icon="i-lucide-pencil"
|
|
385
|
-
variant="ghost"
|
|
386
|
-
size="sm"
|
|
387
|
-
@click.stop="openEditForm(agent, $event)"
|
|
388
|
-
/>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
391
|
-
</UCard>
|
|
251
|
+
:agent="agent"
|
|
252
|
+
:running="checkAgentRunning(agent.id)"
|
|
253
|
+
@toggle="handleToggle"
|
|
254
|
+
@run="handleRun"
|
|
255
|
+
@cancel="handleCancel"
|
|
256
|
+
@edit="openEditForm"
|
|
257
|
+
@navigate="navigateToAgent"
|
|
258
|
+
/>
|
|
392
259
|
</div>
|
|
393
260
|
</div>
|
|
394
261
|
</template>
|
package/app/pages/chat.vue
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { ChatImageBlock, ChatDocumentBlock } from '~~/shared/types'
|
|
3
|
+
|
|
2
4
|
definePageMeta({
|
|
3
5
|
layout: 'dashboard',
|
|
4
6
|
middleware: 'auth'
|
|
@@ -53,8 +55,8 @@ onMounted(() => {
|
|
|
53
55
|
}
|
|
54
56
|
})
|
|
55
57
|
|
|
56
|
-
function handleSend(message: string) {
|
|
57
|
-
sendMessage(message)
|
|
58
|
+
function handleSend(message: string, attachments?: ChatImageBlock[], documents?: ChatDocumentBlock[]) {
|
|
59
|
+
sendMessage(message, attachments, documents)
|
|
58
60
|
nextTick(scrollToBottom)
|
|
59
61
|
}
|
|
60
62
|
|