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
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const { user, updateProfile, changeEmail, changePassword } = useAuth()
|
|
3
|
+
const toast = useToast()
|
|
4
|
+
|
|
5
|
+
// Profile form state
|
|
6
|
+
const profileState = reactive({
|
|
7
|
+
name: ''
|
|
8
|
+
})
|
|
9
|
+
const profileLoading = ref(false)
|
|
10
|
+
|
|
11
|
+
// Email form state
|
|
12
|
+
const emailState = reactive({
|
|
13
|
+
newEmail: ''
|
|
14
|
+
})
|
|
15
|
+
const emailLoading = ref(false)
|
|
16
|
+
|
|
17
|
+
// Password form state
|
|
18
|
+
const passwordState = reactive({
|
|
19
|
+
currentPassword: '',
|
|
20
|
+
newPassword: '',
|
|
21
|
+
confirmPassword: ''
|
|
22
|
+
})
|
|
23
|
+
const passwordLoading = ref(false)
|
|
24
|
+
|
|
25
|
+
// Initialize forms with current user data
|
|
26
|
+
watch(() => user.value, (u) => {
|
|
27
|
+
if (u) {
|
|
28
|
+
profileState.name = u.name || ''
|
|
29
|
+
emailState.newEmail = u.email || ''
|
|
30
|
+
}
|
|
31
|
+
}, { immediate: true })
|
|
32
|
+
|
|
33
|
+
async function handleProfileSubmit() {
|
|
34
|
+
profileLoading.value = true
|
|
35
|
+
const result = await updateProfile({
|
|
36
|
+
name: profileState.name
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
if (result.error) {
|
|
40
|
+
toast.add({
|
|
41
|
+
title: 'Update failed',
|
|
42
|
+
description: result.error.message,
|
|
43
|
+
color: 'error'
|
|
44
|
+
})
|
|
45
|
+
} else {
|
|
46
|
+
toast.add({
|
|
47
|
+
title: 'Profile updated',
|
|
48
|
+
description: 'Your name has been updated successfully.',
|
|
49
|
+
color: 'success'
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
profileLoading.value = false
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function handleEmailSubmit() {
|
|
56
|
+
if (!emailState.newEmail) {
|
|
57
|
+
toast.add({
|
|
58
|
+
title: 'Email required',
|
|
59
|
+
description: 'Please enter a new email address.',
|
|
60
|
+
color: 'error'
|
|
61
|
+
})
|
|
62
|
+
return
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
emailLoading.value = true
|
|
66
|
+
const result = await changeEmail(emailState.newEmail)
|
|
67
|
+
|
|
68
|
+
if (result.error) {
|
|
69
|
+
toast.add({
|
|
70
|
+
title: 'Email change failed',
|
|
71
|
+
description: result.error.message,
|
|
72
|
+
color: 'error'
|
|
73
|
+
})
|
|
74
|
+
} else {
|
|
75
|
+
toast.add({
|
|
76
|
+
title: 'Email updated',
|
|
77
|
+
description: 'Your email has been changed successfully.',
|
|
78
|
+
color: 'success'
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
emailLoading.value = false
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async function handlePasswordSubmit() {
|
|
85
|
+
if (passwordState.newPassword !== passwordState.confirmPassword) {
|
|
86
|
+
toast.add({
|
|
87
|
+
title: 'Passwords do not match',
|
|
88
|
+
description: 'Please make sure your new passwords match.',
|
|
89
|
+
color: 'error'
|
|
90
|
+
})
|
|
91
|
+
return
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (!passwordState.currentPassword || !passwordState.newPassword) {
|
|
95
|
+
toast.add({
|
|
96
|
+
title: 'Missing fields',
|
|
97
|
+
description: 'Please fill in all password fields.',
|
|
98
|
+
color: 'error'
|
|
99
|
+
})
|
|
100
|
+
return
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
passwordLoading.value = true
|
|
104
|
+
const result = await changePassword({
|
|
105
|
+
currentPassword: passwordState.currentPassword,
|
|
106
|
+
newPassword: passwordState.newPassword
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
if (result.error) {
|
|
110
|
+
toast.add({
|
|
111
|
+
title: 'Password change failed',
|
|
112
|
+
description: result.error.message,
|
|
113
|
+
color: 'error'
|
|
114
|
+
})
|
|
115
|
+
} else {
|
|
116
|
+
toast.add({
|
|
117
|
+
title: 'Password changed',
|
|
118
|
+
description: 'Your password has been changed successfully.',
|
|
119
|
+
color: 'success'
|
|
120
|
+
})
|
|
121
|
+
passwordState.currentPassword = ''
|
|
122
|
+
passwordState.newPassword = ''
|
|
123
|
+
passwordState.confirmPassword = ''
|
|
124
|
+
}
|
|
125
|
+
passwordLoading.value = false
|
|
126
|
+
}
|
|
127
|
+
</script>
|
|
128
|
+
|
|
129
|
+
<template>
|
|
130
|
+
<div class="space-y-8 max-w-2xl mx-auto py-6">
|
|
131
|
+
<!-- Profile Section -->
|
|
132
|
+
<div>
|
|
133
|
+
<h3 class="text-lg font-semibold mb-4">
|
|
134
|
+
Profile
|
|
135
|
+
</h3>
|
|
136
|
+
<UForm
|
|
137
|
+
:state="profileState"
|
|
138
|
+
class="space-y-4"
|
|
139
|
+
@submit="handleProfileSubmit"
|
|
140
|
+
>
|
|
141
|
+
<UFormField
|
|
142
|
+
label="Name"
|
|
143
|
+
name="name"
|
|
144
|
+
>
|
|
145
|
+
<UInput
|
|
146
|
+
v-model="profileState.name"
|
|
147
|
+
placeholder="Your name"
|
|
148
|
+
class="w-full"
|
|
149
|
+
/>
|
|
150
|
+
</UFormField>
|
|
151
|
+
<UButton
|
|
152
|
+
type="submit"
|
|
153
|
+
:loading="profileLoading"
|
|
154
|
+
>
|
|
155
|
+
Save Name
|
|
156
|
+
</UButton>
|
|
157
|
+
</UForm>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<USeparator />
|
|
161
|
+
|
|
162
|
+
<!-- Email Section -->
|
|
163
|
+
<div>
|
|
164
|
+
<h3 class="text-lg font-semibold mb-4">
|
|
165
|
+
Email Address
|
|
166
|
+
</h3>
|
|
167
|
+
<UForm
|
|
168
|
+
:state="emailState"
|
|
169
|
+
class="space-y-4"
|
|
170
|
+
@submit="handleEmailSubmit"
|
|
171
|
+
>
|
|
172
|
+
<UFormField
|
|
173
|
+
label="Email"
|
|
174
|
+
name="newEmail"
|
|
175
|
+
>
|
|
176
|
+
<UInput
|
|
177
|
+
v-model="emailState.newEmail"
|
|
178
|
+
type="email"
|
|
179
|
+
placeholder="your@email.com"
|
|
180
|
+
class="w-full"
|
|
181
|
+
/>
|
|
182
|
+
</UFormField>
|
|
183
|
+
<UButton
|
|
184
|
+
type="submit"
|
|
185
|
+
:loading="emailLoading"
|
|
186
|
+
>
|
|
187
|
+
Change Email
|
|
188
|
+
</UButton>
|
|
189
|
+
</UForm>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<USeparator />
|
|
193
|
+
|
|
194
|
+
<!-- Password Section -->
|
|
195
|
+
<div>
|
|
196
|
+
<h3 class="text-lg font-semibold mb-4">
|
|
197
|
+
Change Password
|
|
198
|
+
</h3>
|
|
199
|
+
<UForm
|
|
200
|
+
:state="passwordState"
|
|
201
|
+
class="space-y-4"
|
|
202
|
+
@submit="handlePasswordSubmit"
|
|
203
|
+
>
|
|
204
|
+
<UFormField
|
|
205
|
+
label="Current Password"
|
|
206
|
+
name="currentPassword"
|
|
207
|
+
>
|
|
208
|
+
<UInput
|
|
209
|
+
v-model="passwordState.currentPassword"
|
|
210
|
+
type="password"
|
|
211
|
+
class="w-full"
|
|
212
|
+
/>
|
|
213
|
+
</UFormField>
|
|
214
|
+
<UFormField
|
|
215
|
+
label="New Password"
|
|
216
|
+
name="newPassword"
|
|
217
|
+
>
|
|
218
|
+
<UInput
|
|
219
|
+
v-model="passwordState.newPassword"
|
|
220
|
+
type="password"
|
|
221
|
+
class="w-full"
|
|
222
|
+
/>
|
|
223
|
+
</UFormField>
|
|
224
|
+
<UFormField
|
|
225
|
+
label="Confirm New Password"
|
|
226
|
+
name="confirmPassword"
|
|
227
|
+
>
|
|
228
|
+
<UInput
|
|
229
|
+
v-model="passwordState.confirmPassword"
|
|
230
|
+
type="password"
|
|
231
|
+
class="w-full"
|
|
232
|
+
/>
|
|
233
|
+
</UFormField>
|
|
234
|
+
<UButton
|
|
235
|
+
type="submit"
|
|
236
|
+
:loading="passwordLoading"
|
|
237
|
+
>
|
|
238
|
+
Change Password
|
|
239
|
+
</UButton>
|
|
240
|
+
</UForm>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
</template>
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NotificationPreferences, NotificationResource, NotificationAction } from '~~/shared/types'
|
|
3
|
+
import { defaultNotificationPreferences } from '~~/shared/utils/notification-defaults'
|
|
4
|
+
|
|
5
|
+
const toast = useToast()
|
|
6
|
+
const { updatePreferences } = useNotificationBus()
|
|
7
|
+
|
|
8
|
+
// === App URL ===
|
|
9
|
+
const appUrl = ref('')
|
|
10
|
+
const appUrlSaving = ref(false)
|
|
11
|
+
|
|
12
|
+
async function loadAppUrl() {
|
|
13
|
+
try {
|
|
14
|
+
const { data } = await $fetch<{ data: { key: string, value: string } }>('/api/secrets/APP_URL')
|
|
15
|
+
appUrl.value = data.value || ''
|
|
16
|
+
} catch {
|
|
17
|
+
appUrl.value = ''
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
async function saveAppUrl() {
|
|
22
|
+
appUrlSaving.value = true
|
|
23
|
+
try {
|
|
24
|
+
if (appUrl.value) {
|
|
25
|
+
// Try update first, create if it doesn't exist
|
|
26
|
+
try {
|
|
27
|
+
await $fetch('/api/secrets/APP_URL', {
|
|
28
|
+
method: 'PUT',
|
|
29
|
+
body: { value: appUrl.value, description: 'Public URL for webhooks and auth callbacks' }
|
|
30
|
+
})
|
|
31
|
+
} catch {
|
|
32
|
+
await $fetch('/api/secrets', {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
body: { key: 'APP_URL', value: appUrl.value, description: 'Public URL for webhooks and auth callbacks' }
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
try {
|
|
39
|
+
await $fetch('/api/secrets/APP_URL', { method: 'DELETE' })
|
|
40
|
+
} catch {
|
|
41
|
+
// Secret may not exist, ignore
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
toast.add({ title: 'Public URL saved', description: 'Restart running integrations for changes to take effect.', color: 'success' })
|
|
45
|
+
} catch {
|
|
46
|
+
toast.add({ title: 'Failed to save URL', color: 'error' })
|
|
47
|
+
}
|
|
48
|
+
appUrlSaving.value = false
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// === Notification Preferences ===
|
|
52
|
+
const notifPrefs = ref<NotificationPreferences>({ ...defaultNotificationPreferences })
|
|
53
|
+
const notifLoading = ref(false)
|
|
54
|
+
const notifSaving = ref(false)
|
|
55
|
+
const expandedResources = ref<Set<string>>(new Set())
|
|
56
|
+
|
|
57
|
+
const resourceConfig: { key: NotificationResource, label: string, icon: string, subtypes: NotificationAction[] }[] = [
|
|
58
|
+
{ key: 'task', label: 'Tasks', icon: 'i-lucide-check-square', subtypes: ['create', 'edit', 'delete', 'restore'] },
|
|
59
|
+
{ key: 'project', label: 'Projects', icon: 'i-lucide-folder', subtypes: ['create', 'edit', 'delete'] },
|
|
60
|
+
{ key: 'agent', label: 'Agents', icon: 'i-lucide-bot', subtypes: ['create', 'edit', 'delete', 'run', 'complete', 'fail', 'cancel'] },
|
|
61
|
+
{ key: 'document', label: 'Documents', icon: 'i-lucide-file-text', subtypes: ['edit', 'delete', 'restore'] },
|
|
62
|
+
{ key: 'memory', label: 'Memories', icon: 'i-lucide-brain', subtypes: ['create', 'delete'] },
|
|
63
|
+
{ key: 'reminder', label: 'Reminders', icon: 'i-lucide-bell', subtypes: ['create'] },
|
|
64
|
+
{ key: 'secret', label: 'Secrets', icon: 'i-lucide-key-round', subtypes: ['create', 'edit', 'delete'] },
|
|
65
|
+
{ key: 'hook', label: 'Hooks', icon: 'i-lucide-webhook', subtypes: ['create'] },
|
|
66
|
+
{ key: 'conversation', label: 'Conversations', icon: 'i-lucide-message-square', subtypes: ['delete'] },
|
|
67
|
+
{ key: 'bridge', label: 'Bridges', icon: 'i-lucide-plug', subtypes: ['create', 'edit', 'delete', 'complete', 'fail'] }
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
async function loadNotificationPrefs() {
|
|
71
|
+
notifLoading.value = true
|
|
72
|
+
try {
|
|
73
|
+
const { data } = await $fetch<{ data: { notifications: NotificationPreferences } }>('/api/settings')
|
|
74
|
+
notifPrefs.value = { ...defaultNotificationPreferences, ...data.notifications }
|
|
75
|
+
} catch {
|
|
76
|
+
notifPrefs.value = { ...defaultNotificationPreferences }
|
|
77
|
+
}
|
|
78
|
+
notifLoading.value = false
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async function saveNotificationPrefs() {
|
|
82
|
+
notifSaving.value = true
|
|
83
|
+
try {
|
|
84
|
+
await $fetch('/api/settings', {
|
|
85
|
+
method: 'PUT',
|
|
86
|
+
body: { notifications: notifPrefs.value }
|
|
87
|
+
})
|
|
88
|
+
updatePreferences(notifPrefs.value)
|
|
89
|
+
toast.add({ title: 'Notification preferences saved', color: 'success' })
|
|
90
|
+
} catch {
|
|
91
|
+
toast.add({ title: 'Failed to save preferences', color: 'error' })
|
|
92
|
+
}
|
|
93
|
+
notifSaving.value = false
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function toggleResourceExpand(key: string) {
|
|
97
|
+
if (expandedResources.value.has(key))
|
|
98
|
+
expandedResources.value.delete(key)
|
|
99
|
+
else
|
|
100
|
+
expandedResources.value.add(key)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function setResourceEnabled(key: NotificationResource, enabled: boolean) {
|
|
104
|
+
notifPrefs.value[key] = { ...notifPrefs.value[key], enabled }
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function setSubtypeEnabled(key: NotificationResource, subtype: NotificationAction, enabled: boolean) {
|
|
108
|
+
const current = notifPrefs.value[key]
|
|
109
|
+
notifPrefs.value[key] = {
|
|
110
|
+
...current,
|
|
111
|
+
subtypes: { ...current?.subtypes, [subtype]: enabled }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
onMounted(() => {
|
|
116
|
+
loadAppUrl()
|
|
117
|
+
loadNotificationPrefs()
|
|
118
|
+
})
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<template>
|
|
122
|
+
<div class="max-w-2xl mx-auto py-6">
|
|
123
|
+
<!-- Public URL -->
|
|
124
|
+
<div class="mb-8">
|
|
125
|
+
<h3 class="text-lg font-semibold mb-1">
|
|
126
|
+
Public URL
|
|
127
|
+
</h3>
|
|
128
|
+
<p class="text-sm text-dimmed mb-4">
|
|
129
|
+
The publicly accessible URL for this instance. Used for Telegram webhooks, auth callbacks, and other integrations that need to reach your server.
|
|
130
|
+
</p>
|
|
131
|
+
<div class="flex gap-2">
|
|
132
|
+
<UInput
|
|
133
|
+
v-model="appUrl"
|
|
134
|
+
placeholder="https://example.com"
|
|
135
|
+
class="flex-1"
|
|
136
|
+
/>
|
|
137
|
+
<UButton
|
|
138
|
+
:loading="appUrlSaving"
|
|
139
|
+
@click="saveAppUrl"
|
|
140
|
+
>
|
|
141
|
+
Save
|
|
142
|
+
</UButton>
|
|
143
|
+
</div>
|
|
144
|
+
<p class="text-xs text-dimmed mt-2">
|
|
145
|
+
Leave empty to use long-polling for Telegram instead of webhooks. Changes require restarting running integrations.
|
|
146
|
+
</p>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<USeparator class="mb-8" />
|
|
150
|
+
|
|
151
|
+
<!-- Notification Preferences -->
|
|
152
|
+
<div class="mb-6">
|
|
153
|
+
<h3 class="text-lg font-semibold mb-1">
|
|
154
|
+
Notification Preferences
|
|
155
|
+
</h3>
|
|
156
|
+
<p class="text-sm text-dimmed">
|
|
157
|
+
Choose which resource changes show toast notifications.
|
|
158
|
+
</p>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<div
|
|
162
|
+
v-if="notifLoading"
|
|
163
|
+
class="space-y-3"
|
|
164
|
+
>
|
|
165
|
+
<USkeleton
|
|
166
|
+
v-for="i in 5"
|
|
167
|
+
:key="i"
|
|
168
|
+
class="h-12 w-full"
|
|
169
|
+
/>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div
|
|
173
|
+
v-else
|
|
174
|
+
class="space-y-2"
|
|
175
|
+
>
|
|
176
|
+
<div
|
|
177
|
+
v-for="rc in resourceConfig"
|
|
178
|
+
:key="rc.key"
|
|
179
|
+
class="border border-default rounded-lg"
|
|
180
|
+
>
|
|
181
|
+
<div class="flex items-center justify-between px-4 py-3">
|
|
182
|
+
<div class="flex items-center gap-3">
|
|
183
|
+
<UButton
|
|
184
|
+
variant="ghost"
|
|
185
|
+
size="xs"
|
|
186
|
+
:icon="expandedResources.has(rc.key) ? 'i-lucide-chevron-down' : 'i-lucide-chevron-right'"
|
|
187
|
+
@click="toggleResourceExpand(rc.key)"
|
|
188
|
+
/>
|
|
189
|
+
<UIcon
|
|
190
|
+
:name="rc.icon"
|
|
191
|
+
class="size-5 text-dimmed"
|
|
192
|
+
/>
|
|
193
|
+
<span class="font-medium">{{ rc.label }}</span>
|
|
194
|
+
</div>
|
|
195
|
+
<USwitch
|
|
196
|
+
:model-value="notifPrefs[rc.key]?.enabled ?? false"
|
|
197
|
+
@update:model-value="(v: boolean) => setResourceEnabled(rc.key, v)"
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
<div
|
|
202
|
+
v-if="expandedResources.has(rc.key) && notifPrefs[rc.key]?.enabled"
|
|
203
|
+
class="border-t border-default px-4 py-3 space-y-2 bg-elevated/50"
|
|
204
|
+
>
|
|
205
|
+
<div
|
|
206
|
+
v-for="subtype in rc.subtypes"
|
|
207
|
+
:key="subtype"
|
|
208
|
+
class="flex items-center justify-between pl-11"
|
|
209
|
+
>
|
|
210
|
+
<span class="text-sm text-dimmed capitalize">{{ subtype }}</span>
|
|
211
|
+
<USwitch
|
|
212
|
+
:model-value="notifPrefs[rc.key]?.subtypes?.[subtype] !== false"
|
|
213
|
+
size="sm"
|
|
214
|
+
@update:model-value="(v: boolean) => setSubtypeEnabled(rc.key, subtype, v)"
|
|
215
|
+
/>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<div class="mt-6">
|
|
222
|
+
<UButton
|
|
223
|
+
:loading="notifSaving"
|
|
224
|
+
@click="saveNotificationPrefs"
|
|
225
|
+
>
|
|
226
|
+
Save Preferences
|
|
227
|
+
</UButton>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
</template>
|