cognova 0.2.13 → 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/{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/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/{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 +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/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,226 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TreeItem } from '~/composables/useFileTree'
|
|
3
|
+
|
|
4
|
+
const showNewFile = defineModel<boolean>('showNewFile', { required: true })
|
|
5
|
+
const showNewFolder = defineModel<boolean>('showNewFolder', { required: true })
|
|
6
|
+
const showRename = defineModel<boolean>('showRename', { required: true })
|
|
7
|
+
const showDelete = defineModel<boolean>('showDelete', { required: true })
|
|
8
|
+
|
|
9
|
+
const props = defineProps<{
|
|
10
|
+
contextTarget: TreeItem | null
|
|
11
|
+
}>()
|
|
12
|
+
|
|
13
|
+
const emit = defineEmits<{
|
|
14
|
+
createFile: [name: string]
|
|
15
|
+
createFolder: [name: string]
|
|
16
|
+
rename: [name: string]
|
|
17
|
+
delete: []
|
|
18
|
+
}>()
|
|
19
|
+
|
|
20
|
+
const newItemName = ref('')
|
|
21
|
+
|
|
22
|
+
// Pre-fill name when rename opens
|
|
23
|
+
watch(showRename, (open) => {
|
|
24
|
+
if (open && props.contextTarget)
|
|
25
|
+
newItemName.value = props.contextTarget.label
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
// Clear name when new file/folder opens
|
|
29
|
+
watch(showNewFile, (open) => {
|
|
30
|
+
if (open) newItemName.value = ''
|
|
31
|
+
})
|
|
32
|
+
watch(showNewFolder, (open) => {
|
|
33
|
+
if (open) newItemName.value = ''
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
function handleCreateFile() {
|
|
37
|
+
if (!newItemName.value.trim()) return
|
|
38
|
+
emit('createFile', newItemName.value.trim())
|
|
39
|
+
showNewFile.value = false
|
|
40
|
+
newItemName.value = ''
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function handleCreateFolder() {
|
|
44
|
+
if (!newItemName.value.trim()) return
|
|
45
|
+
emit('createFolder', newItemName.value.trim())
|
|
46
|
+
showNewFolder.value = false
|
|
47
|
+
newItemName.value = ''
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function handleRename() {
|
|
51
|
+
if (!newItemName.value.trim()) return
|
|
52
|
+
emit('rename', newItemName.value.trim())
|
|
53
|
+
showRename.value = false
|
|
54
|
+
newItemName.value = ''
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function handleDelete() {
|
|
58
|
+
emit('delete')
|
|
59
|
+
showDelete.value = false
|
|
60
|
+
}
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<template>
|
|
64
|
+
<!-- New File Modal -->
|
|
65
|
+
<UModal v-model:open="showNewFile">
|
|
66
|
+
<template #content>
|
|
67
|
+
<UCard>
|
|
68
|
+
<template #header>
|
|
69
|
+
<div class="flex items-center gap-2">
|
|
70
|
+
<UIcon
|
|
71
|
+
name="i-lucide-file-plus"
|
|
72
|
+
class="size-5"
|
|
73
|
+
/>
|
|
74
|
+
<span class="font-semibold">New File</span>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<UInput
|
|
79
|
+
v-model="newItemName"
|
|
80
|
+
placeholder="filename.md"
|
|
81
|
+
autofocus
|
|
82
|
+
@keyup.enter="handleCreateFile"
|
|
83
|
+
/>
|
|
84
|
+
|
|
85
|
+
<template #footer>
|
|
86
|
+
<div class="flex justify-end gap-2">
|
|
87
|
+
<UButton
|
|
88
|
+
color="neutral"
|
|
89
|
+
variant="ghost"
|
|
90
|
+
@click="showNewFile = false"
|
|
91
|
+
>
|
|
92
|
+
Cancel
|
|
93
|
+
</UButton>
|
|
94
|
+
<UButton @click="handleCreateFile">
|
|
95
|
+
Create
|
|
96
|
+
</UButton>
|
|
97
|
+
</div>
|
|
98
|
+
</template>
|
|
99
|
+
</UCard>
|
|
100
|
+
</template>
|
|
101
|
+
</UModal>
|
|
102
|
+
|
|
103
|
+
<!-- New Folder Modal -->
|
|
104
|
+
<UModal v-model:open="showNewFolder">
|
|
105
|
+
<template #content>
|
|
106
|
+
<UCard>
|
|
107
|
+
<template #header>
|
|
108
|
+
<div class="flex items-center gap-2">
|
|
109
|
+
<UIcon
|
|
110
|
+
name="i-lucide-folder-plus"
|
|
111
|
+
class="size-5"
|
|
112
|
+
/>
|
|
113
|
+
<span class="font-semibold">New Folder</span>
|
|
114
|
+
</div>
|
|
115
|
+
</template>
|
|
116
|
+
|
|
117
|
+
<UInput
|
|
118
|
+
v-model="newItemName"
|
|
119
|
+
placeholder="folder-name"
|
|
120
|
+
autofocus
|
|
121
|
+
@keyup.enter="handleCreateFolder"
|
|
122
|
+
/>
|
|
123
|
+
|
|
124
|
+
<template #footer>
|
|
125
|
+
<div class="flex justify-end gap-2">
|
|
126
|
+
<UButton
|
|
127
|
+
color="neutral"
|
|
128
|
+
variant="ghost"
|
|
129
|
+
@click="showNewFolder = false"
|
|
130
|
+
>
|
|
131
|
+
Cancel
|
|
132
|
+
</UButton>
|
|
133
|
+
<UButton @click="handleCreateFolder">
|
|
134
|
+
Create
|
|
135
|
+
</UButton>
|
|
136
|
+
</div>
|
|
137
|
+
</template>
|
|
138
|
+
</UCard>
|
|
139
|
+
</template>
|
|
140
|
+
</UModal>
|
|
141
|
+
|
|
142
|
+
<!-- Rename Modal -->
|
|
143
|
+
<UModal v-model:open="showRename">
|
|
144
|
+
<template #content>
|
|
145
|
+
<UCard>
|
|
146
|
+
<template #header>
|
|
147
|
+
<div class="flex items-center gap-2">
|
|
148
|
+
<UIcon
|
|
149
|
+
name="i-lucide-pencil"
|
|
150
|
+
class="size-5"
|
|
151
|
+
/>
|
|
152
|
+
<span class="font-semibold">Rename</span>
|
|
153
|
+
</div>
|
|
154
|
+
</template>
|
|
155
|
+
|
|
156
|
+
<UInput
|
|
157
|
+
v-model="newItemName"
|
|
158
|
+
placeholder="new-name"
|
|
159
|
+
autofocus
|
|
160
|
+
@keyup.enter="handleRename"
|
|
161
|
+
/>
|
|
162
|
+
|
|
163
|
+
<template #footer>
|
|
164
|
+
<div class="flex justify-end gap-2">
|
|
165
|
+
<UButton
|
|
166
|
+
color="neutral"
|
|
167
|
+
variant="ghost"
|
|
168
|
+
@click="showRename = false"
|
|
169
|
+
>
|
|
170
|
+
Cancel
|
|
171
|
+
</UButton>
|
|
172
|
+
<UButton @click="handleRename">
|
|
173
|
+
Rename
|
|
174
|
+
</UButton>
|
|
175
|
+
</div>
|
|
176
|
+
</template>
|
|
177
|
+
</UCard>
|
|
178
|
+
</template>
|
|
179
|
+
</UModal>
|
|
180
|
+
|
|
181
|
+
<!-- Delete Confirmation -->
|
|
182
|
+
<UModal v-model:open="showDelete">
|
|
183
|
+
<template #content>
|
|
184
|
+
<UCard>
|
|
185
|
+
<template #header>
|
|
186
|
+
<div class="flex items-center gap-2 text-error">
|
|
187
|
+
<UIcon
|
|
188
|
+
name="i-lucide-trash-2"
|
|
189
|
+
class="size-5"
|
|
190
|
+
/>
|
|
191
|
+
<span class="font-semibold">Delete</span>
|
|
192
|
+
</div>
|
|
193
|
+
</template>
|
|
194
|
+
|
|
195
|
+
<p>
|
|
196
|
+
Are you sure you want to delete
|
|
197
|
+
<strong>{{ contextTarget?.label }}</strong>?
|
|
198
|
+
</p>
|
|
199
|
+
<p
|
|
200
|
+
v-if="contextTarget?.type === 'directory'"
|
|
201
|
+
class="text-sm text-dimmed mt-1"
|
|
202
|
+
>
|
|
203
|
+
This will delete all files and folders inside.
|
|
204
|
+
</p>
|
|
205
|
+
|
|
206
|
+
<template #footer>
|
|
207
|
+
<div class="flex justify-end gap-2">
|
|
208
|
+
<UButton
|
|
209
|
+
color="neutral"
|
|
210
|
+
variant="ghost"
|
|
211
|
+
@click="showDelete = false"
|
|
212
|
+
>
|
|
213
|
+
Cancel
|
|
214
|
+
</UButton>
|
|
215
|
+
<UButton
|
|
216
|
+
color="error"
|
|
217
|
+
@click="handleDelete"
|
|
218
|
+
>
|
|
219
|
+
Delete
|
|
220
|
+
</UButton>
|
|
221
|
+
</div>
|
|
222
|
+
</template>
|
|
223
|
+
</UCard>
|
|
224
|
+
</template>
|
|
225
|
+
</UModal>
|
|
226
|
+
</template>
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HookEventStats } from '~~/shared/types'
|
|
3
|
+
import { formatDuration } from '~~/shared/utils/formatting'
|
|
3
4
|
|
|
4
5
|
const props = defineProps<{
|
|
5
6
|
stats: HookEventStats | null
|
|
6
7
|
loading?: boolean
|
|
7
8
|
}>()
|
|
8
9
|
|
|
9
|
-
function formatDuration(ms: number): string {
|
|
10
|
-
if (ms < 1000) return `${ms}ms`
|
|
11
|
-
if (ms < 60000) return `${(ms / 1000).toFixed(1)}s`
|
|
12
|
-
return `${(ms / 60000).toFixed(1)}m`
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
const displayStats = computed(() => {
|
|
16
11
|
if (!props.stats) return []
|
|
17
12
|
const s = props.stats
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { HookToolBreakdown } from '~~/shared/types'
|
|
3
|
+
import { formatDuration } from '~~/shared/utils/formatting'
|
|
3
4
|
|
|
4
5
|
defineProps<{
|
|
5
6
|
data: HookToolBreakdown[]
|
|
6
7
|
loading?: boolean
|
|
7
8
|
}>()
|
|
8
9
|
|
|
9
|
-
function formatDuration(ms: number): string {
|
|
10
|
-
if (ms < 1000) return `${ms}ms`
|
|
11
|
-
if (ms < 60000) return `${(ms / 1000).toFixed(1)}s`
|
|
12
|
-
return `${(ms / 60000).toFixed(1)}m`
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
function getBlockRateColor(blocked: number, total: number): string {
|
|
16
11
|
const rate = total > 0 ? (blocked / total) * 100 : 0
|
|
17
12
|
if (rate > 50) return 'text-error'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { CommandPaletteGroup, CommandPaletteItem } from '@nuxt/ui'
|
|
3
|
+
import { formatRelativeTime } from '~~/shared/utils/formatting'
|
|
3
4
|
|
|
4
5
|
const router = useRouter()
|
|
5
6
|
const toast = useToast()
|
|
@@ -88,6 +89,42 @@ const groups = computed<CommandPaletteGroup[]>(() => {
|
|
|
88
89
|
})
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
// Agents group (only show if we have results)
|
|
93
|
+
if (results.value.agents.length) {
|
|
94
|
+
g.push({
|
|
95
|
+
id: 'agents',
|
|
96
|
+
label: 'Agents',
|
|
97
|
+
ignoreFilter: true,
|
|
98
|
+
items: results.value.agents.map(a => ({
|
|
99
|
+
label: a.name,
|
|
100
|
+
icon: a.enabled ? 'i-lucide-bot' : 'i-lucide-bot-off',
|
|
101
|
+
suffix: a.schedule,
|
|
102
|
+
onSelect: () => {
|
|
103
|
+
router.push(`/agents/${a.id}`)
|
|
104
|
+
reset()
|
|
105
|
+
}
|
|
106
|
+
}))
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Conversations group (only show if we have results)
|
|
111
|
+
if (results.value.conversations.length) {
|
|
112
|
+
g.push({
|
|
113
|
+
id: 'conversations',
|
|
114
|
+
label: 'Conversations',
|
|
115
|
+
ignoreFilter: true,
|
|
116
|
+
items: results.value.conversations.map(c => ({
|
|
117
|
+
label: c.title || 'Untitled chat',
|
|
118
|
+
icon: 'i-lucide-message-square',
|
|
119
|
+
suffix: formatRelativeTime(c.startedAt),
|
|
120
|
+
onSelect: () => {
|
|
121
|
+
router.push({ path: '/chat', query: { conversation: c.id } })
|
|
122
|
+
reset()
|
|
123
|
+
}
|
|
124
|
+
}))
|
|
125
|
+
})
|
|
126
|
+
}
|
|
127
|
+
|
|
91
128
|
// Navigation group (always visible)
|
|
92
129
|
g.push({
|
|
93
130
|
id: 'navigation',
|
|
@@ -116,7 +153,7 @@ const groups = computed<CommandPaletteGroup[]>(() => {
|
|
|
116
153
|
v-model:search-term="searchTerm"
|
|
117
154
|
:groups="groups"
|
|
118
155
|
:loading="loading"
|
|
119
|
-
placeholder="Search tasks, docs,
|
|
156
|
+
placeholder="Search tasks, docs, agents, chats..."
|
|
120
157
|
:fuse="{ resultLimit: 10 }"
|
|
121
158
|
/>
|
|
122
159
|
</template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Task } from '~~/shared/types'
|
|
3
|
+
import { formatDateShort } from '~~/shared/utils/formatting'
|
|
3
4
|
|
|
4
5
|
const props = defineProps<{
|
|
5
6
|
task: Task
|
|
@@ -35,12 +36,6 @@ const isOverdue = computed(() => {
|
|
|
35
36
|
return new Date(props.task.dueDate) < new Date()
|
|
36
37
|
})
|
|
37
38
|
|
|
38
|
-
function formatDate(date: Date | string | undefined) {
|
|
39
|
-
if (!date) return null
|
|
40
|
-
const d = new Date(date)
|
|
41
|
-
return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })
|
|
42
|
-
}
|
|
43
|
-
|
|
44
39
|
const menuItems = computed(() => [[
|
|
45
40
|
{
|
|
46
41
|
label: 'Edit',
|
|
@@ -146,7 +141,7 @@ const menuItems = computed(() => [[
|
|
|
146
141
|
name="i-lucide-calendar"
|
|
147
142
|
class="size-3"
|
|
148
143
|
/>
|
|
149
|
-
{{
|
|
144
|
+
{{ formatDateShort(task.dueDate) }}
|
|
150
145
|
</span>
|
|
151
146
|
|
|
152
147
|
<!-- Tags -->
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Task } from '~~/shared/types'
|
|
3
|
+
import { formatDateLong } from '~~/shared/utils/formatting'
|
|
3
4
|
|
|
4
5
|
const props = defineProps<{
|
|
5
6
|
task: Task
|
|
@@ -27,12 +28,6 @@ const statusConfig = {
|
|
|
27
28
|
const priority = computed(() => priorityConfig[props.task.priority as 1 | 2 | 3] || priorityConfig[2])
|
|
28
29
|
const status = computed(() => statusConfig[props.task.status])
|
|
29
30
|
const isComplete = computed(() => props.task.status === 'done')
|
|
30
|
-
|
|
31
|
-
function formatDate(date: Date | string | undefined) {
|
|
32
|
-
if (!date) return null
|
|
33
|
-
const d = new Date(date)
|
|
34
|
-
return d.toLocaleDateString('en-US', { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric' })
|
|
35
|
-
}
|
|
36
31
|
</script>
|
|
37
32
|
|
|
38
33
|
<template>
|
|
@@ -87,7 +82,7 @@ function formatDate(date: Date | string | undefined) {
|
|
|
87
82
|
name="i-lucide-calendar"
|
|
88
83
|
class="size-4 text-dimmed"
|
|
89
84
|
/>
|
|
90
|
-
<span class="text-dimmed">{{
|
|
85
|
+
<span class="text-dimmed">{{ formatDateLong(task.dueDate) }}</span>
|
|
91
86
|
</div>
|
|
92
87
|
</div>
|
|
93
88
|
|
|
@@ -120,11 +115,11 @@ function formatDate(date: Date | string | undefined) {
|
|
|
120
115
|
<!-- Timestamps & Audit -->
|
|
121
116
|
<div class="pt-2 border-t border-default text-xs text-dimmed space-y-1">
|
|
122
117
|
<p>
|
|
123
|
-
Created: {{
|
|
118
|
+
Created: {{ formatDateLong(task.createdAt) }}
|
|
124
119
|
<span v-if="task.creator"> by {{ task.creator.name }}</span>
|
|
125
120
|
</p>
|
|
126
121
|
<p v-if="task.completedAt">
|
|
127
|
-
Completed: {{
|
|
122
|
+
Completed: {{ formatDateLong(task.completedAt) }}
|
|
128
123
|
</p>
|
|
129
124
|
</div>
|
|
130
125
|
</div>
|
|
@@ -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 {
|