cognova 0.2.13 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/-mGU8_Hv.js +1 -0
  3. package/.output/public/_nuxt/0GqCtQ9S.js +1 -0
  4. package/.output/public/_nuxt/{DFpmIy6J.js → 1wCoXZ14.js} +1 -1
  5. package/.output/public/_nuxt/2J1KxdHv.js +1 -0
  6. package/.output/public/_nuxt/6VDUZECX.js +1 -0
  7. package/.output/public/_nuxt/{C7m9zGMG.js → 8WMJQbWG.js} +1 -1
  8. package/.output/public/_nuxt/9Rw88G6h.js +1 -0
  9. package/.output/public/_nuxt/{BjsKx597.js → B-yW4SD3.js} +1 -1
  10. package/.output/public/_nuxt/B20jNAhm.js +1 -0
  11. package/.output/public/_nuxt/B3OpTH_e.js +1 -0
  12. package/.output/public/_nuxt/B9Y3_B5G.js +1 -0
  13. package/.output/public/_nuxt/B9_vmatf.js +1 -0
  14. package/.output/public/_nuxt/B9o6sFST.js +1 -0
  15. package/.output/public/_nuxt/{CseYuM6E.js → BAY3_Hrq.js} +1 -1
  16. package/.output/public/_nuxt/{B_9zJTqe.js → BD5rPkc2.js} +3 -3
  17. package/.output/public/_nuxt/BGYoW3kO.js +1 -0
  18. package/.output/public/_nuxt/BHUy5EAj.js +1 -0
  19. package/.output/public/_nuxt/BLdMRpJD.js +1 -0
  20. package/.output/public/_nuxt/{D6tVZcRs.js → BOCn_SGf.js} +12 -12
  21. package/.output/public/_nuxt/BQi8LIrn.js +1 -0
  22. package/.output/public/_nuxt/BS1t375R.js +1 -0
  23. package/.output/public/_nuxt/BTGeP1bA.js +1 -0
  24. package/.output/public/_nuxt/{pdYvpiud.js → BVYYP4eQ.js} +5 -5
  25. package/.output/public/_nuxt/BWQ7zE01.js +1 -0
  26. package/.output/public/_nuxt/BWqJInD3.js +1 -0
  27. package/.output/public/_nuxt/BXdQ9ASJ.js +1 -0
  28. package/.output/public/_nuxt/{DQhm-UPG.js → BXxZokD_.js} +2 -2
  29. package/.output/public/_nuxt/BZ7DAtPi.js +1 -0
  30. package/.output/public/_nuxt/BZm9w7en.js +1 -0
  31. package/.output/public/_nuxt/B_hNqC64.js +1 -0
  32. package/.output/public/_nuxt/Be47YE2L.js +1 -0
  33. package/.output/public/_nuxt/BgIS9_ti.js +39 -0
  34. package/.output/public/_nuxt/BgavRUl_.js +1 -0
  35. package/.output/public/_nuxt/Bh0yGTzr.js +1 -0
  36. package/.output/public/_nuxt/BhhMUror.js +1 -0
  37. package/.output/public/_nuxt/Bj5e7QPz.js +1 -0
  38. package/.output/public/_nuxt/{9kAKMaPC.js → Bnn59-FS.js} +1 -1
  39. package/.output/public/_nuxt/BoCU3mWu.js +1 -0
  40. package/.output/public/_nuxt/Br6epbzY.js +1 -0
  41. package/.output/public/_nuxt/Br81Sr2R.js +1 -0
  42. package/.output/public/_nuxt/BrkEOLHu.js +9 -0
  43. package/.output/public/_nuxt/BtrNCc2S.js +1 -0
  44. package/.output/public/_nuxt/BxsQlbgl.js +1 -0
  45. package/.output/public/_nuxt/BzrhNhdT.js +1 -0
  46. package/.output/public/_nuxt/{B-DMcEU9.js → C-78dDNd.js} +1 -1
  47. package/.output/public/_nuxt/C1oaoi1p.js +1 -0
  48. package/.output/public/_nuxt/C2-_hcwB.js +1 -0
  49. package/.output/public/_nuxt/{TxMdabnL.js → C2Gh3qqr.js} +1 -1
  50. package/.output/public/_nuxt/C2OHaW6l.js +1 -0
  51. package/.output/public/_nuxt/C3szZmvA.js +1 -0
  52. package/.output/public/_nuxt/C3xzleKP.js +1 -0
  53. package/.output/public/_nuxt/C4sG6rdW.js +1 -0
  54. package/.output/public/_nuxt/C5Cu9Fx6.js +1 -0
  55. package/.output/public/_nuxt/{LRO7YHoH.js → C5gfF7J1.js} +1 -1
  56. package/.output/public/_nuxt/C6Eoiclo.js +1 -0
  57. package/.output/public/_nuxt/C7hFztZL.js +1 -0
  58. package/.output/public/_nuxt/CAVUAxNU.js +2 -0
  59. package/.output/public/_nuxt/{CiNxIhaq.js → CCeM5lW2.js} +1 -1
  60. package/.output/public/_nuxt/CDcQ31Eh.js +1 -0
  61. package/.output/public/_nuxt/CHbHVtCy.js +1 -0
  62. package/.output/public/_nuxt/CHnVFnBW.js +1 -0
  63. package/.output/public/_nuxt/CLNcmNQS.js +1 -0
  64. package/.output/public/_nuxt/{D7N3EZ-I.js → CPwCTHun.js} +1 -1
  65. package/.output/public/_nuxt/{CFmvNggn.js → CS8SdmH2.js} +1 -1
  66. package/.output/public/_nuxt/CTGm_mc8.js +1 -0
  67. package/.output/public/_nuxt/{DNcOC5zj.js → CTQFGHjS.js} +1 -1
  68. package/.output/public/_nuxt/{B0nzD8Sk.js → CVVtVzXC.js} +1 -1
  69. package/.output/public/_nuxt/CZNOaqeX.js +1 -0
  70. package/.output/public/_nuxt/C_A_NkeC.js +2 -0
  71. package/.output/public/_nuxt/{CGplHfmR.js → C_doutX-.js} +1 -1
  72. package/.output/public/_nuxt/{BrX-PnSK.js → CbDLhrNA.js} +2 -2
  73. package/.output/public/_nuxt/CePKCqSb.js +1 -0
  74. package/.output/public/_nuxt/Cet4T_yO.js +1 -0
  75. package/.output/public/_nuxt/{C6OSRpRd.js → CjJPkhbc.js} +1 -1
  76. package/.output/public/_nuxt/CkZT4LGq.js +1 -0
  77. package/.output/public/_nuxt/CkrW8sGL.js +1 -0
  78. package/.output/public/_nuxt/Co0UxVsx.js +1 -0
  79. package/.output/public/_nuxt/CqS0zXYQ.js +1 -0
  80. package/.output/public/_nuxt/CskGv_Km.js +1 -0
  81. package/.output/public/_nuxt/{DuzpliIL.js → CuvkTsqs.js} +1 -1
  82. package/.output/public/_nuxt/{B2wI_pYg.js → CxMuZEwX.js} +1 -1
  83. package/.output/public/_nuxt/{9O1MXkck.js → CxSijT71.js} +8 -8
  84. package/.output/public/_nuxt/Cywo6tZI.js +1 -0
  85. package/.output/public/_nuxt/D1reIfpX.js +1 -0
  86. package/.output/public/_nuxt/D1uV2uir.js +1 -0
  87. package/.output/public/_nuxt/{BWuL2CzO.js → D2edadpd.js} +1 -1
  88. package/.output/public/_nuxt/D3cEeQh7.js +1 -0
  89. package/.output/public/_nuxt/D41A2mE2.js +1 -0
  90. package/.output/public/_nuxt/D49P2RhG.js +1 -0
  91. package/.output/public/_nuxt/D867g6Ds.js +1 -0
  92. package/.output/public/_nuxt/DEFWIjWl.js +1 -0
  93. package/.output/public/_nuxt/DFTEBTzZ.js +1 -0
  94. package/.output/public/_nuxt/{-HePz7lp.js → DHRexj9X.js} +2 -2
  95. package/.output/public/_nuxt/DL4EpgqQ.js +1 -0
  96. package/.output/public/_nuxt/DLHnP6tw.js +1 -0
  97. package/.output/public/_nuxt/DM20WaLq.js +1 -0
  98. package/.output/public/_nuxt/{B8DFEjxA.js → DNAMjHbb.js} +1 -1
  99. package/.output/public/_nuxt/{CLkkdThv.js → DP8t9VWs.js} +24 -24
  100. package/.output/public/_nuxt/DTR31rjp.js +1 -0
  101. package/.output/public/_nuxt/{Bc8bTnkd.js → DTlSLSo1.js} +3 -3
  102. package/.output/public/_nuxt/{DowkFZ2V.js → DVdnhfXT.js} +1 -1
  103. package/.output/public/_nuxt/{DvHS7_h2.js → DZikIgHK.js} +1 -1
  104. package/.output/public/_nuxt/D_YGqvw_.js +1 -0
  105. package/.output/public/_nuxt/D_k1YwXm.js +1 -0
  106. package/.output/public/_nuxt/Daf2MbWG.js +7 -0
  107. package/.output/public/_nuxt/DcJ0GstJ.js +1 -0
  108. package/.output/public/_nuxt/DcYKh6QA.js +1 -0
  109. package/.output/public/_nuxt/DhN3_DYH.js +1 -0
  110. package/.output/public/_nuxt/DhSvBSt3.js +1 -0
  111. package/.output/public/_nuxt/DhlIWT8K.js +1 -0
  112. package/.output/public/_nuxt/DjsqyRqt.js +1 -0
  113. package/.output/public/_nuxt/DpSM97eH.js +1 -0
  114. package/.output/public/_nuxt/DqR9SdeU.js +1 -0
  115. package/.output/public/_nuxt/DqmQtg6Y.js +1 -0
  116. package/.output/public/_nuxt/Dsuag_iW.js +1 -0
  117. package/.output/public/_nuxt/Dtr_0IbE.js +1 -0
  118. package/.output/public/_nuxt/DwrmFEZN.js +1 -0
  119. package/.output/public/_nuxt/DxE8r3r4.js +1 -0
  120. package/.output/public/_nuxt/G_CsVlOR.js +1 -0
  121. package/.output/public/_nuxt/Gyw_2f6x.js +1 -0
  122. package/.output/public/_nuxt/HStC1ZyE.js +1 -0
  123. package/.output/public/_nuxt/Hh9mv0Ek.js +1 -0
  124. package/.output/public/_nuxt/LR0kCjbe.js +1 -0
  125. package/.output/public/_nuxt/MYeLvJGV.js +1 -0
  126. package/.output/public/_nuxt/NKs0EGrh.js +1 -0
  127. package/.output/public/_nuxt/PY5EGujn.js +1 -0
  128. package/.output/public/_nuxt/PamJNol9.js +1 -0
  129. package/.output/public/_nuxt/RlvwEbHv.js +1 -0
  130. package/.output/public/_nuxt/{BghuwIGa.js → TNpdJOlc.js} +1 -1
  131. package/.output/public/_nuxt/TSYrPbLR.js +1 -0
  132. package/.output/public/_nuxt/U-eBrbR4.js +1 -0
  133. package/.output/public/_nuxt/UuqXScSw.js +1 -0
  134. package/.output/public/_nuxt/V04-MrLN.js +1 -0
  135. package/.output/public/_nuxt/X0o5GcBb.js +1 -0
  136. package/.output/public/_nuxt/XQNzmQy9.js +1 -0
  137. package/.output/public/_nuxt/Y59XKprr.js +1 -0
  138. package/.output/public/_nuxt/YZQjZgsH.js +1 -0
  139. package/.output/public/_nuxt/_-TGPiLQ.js +1 -0
  140. package/.output/public/_nuxt/builds/latest.json +1 -1
  141. package/.output/public/_nuxt/builds/meta/7c42ae85-1cae-45f0-8cb9-ad3a10165c2c.json +1 -0
  142. package/.output/public/_nuxt/dashboard.ByJQ-Wzh.css +1 -0
  143. package/.output/public/_nuxt/entry.ZJxWCrU6.css +1 -0
  144. package/.output/public/_nuxt/{D12qPplu.js → hCeWb_38.js} +1 -1
  145. package/.output/public/_nuxt/{sBzyvWMJ.js → hrPTRWjM.js} +1 -1
  146. package/.output/public/_nuxt/jC4pIK1p.js +1 -0
  147. package/.output/public/_nuxt/jTT1R-Vz.js +1 -0
  148. package/.output/public/_nuxt/{CRRw0Thu.js → kkAMoB43.js} +1 -1
  149. package/.output/public/_nuxt/{h_bXa-f2.js → mzM4BGtv.js} +1 -1
  150. package/.output/public/_nuxt/o-s8JBm2.js +1 -0
  151. package/.output/public/_nuxt/pwJTkIQ4.js +1 -0
  152. package/.output/public/_nuxt/{BL1mkqgd.js → rIgg2Arf.js} +3 -3
  153. package/.output/public/_nuxt/subdxgSQ.js +1 -0
  154. package/.output/public/_nuxt/t8B72leH.js +1 -0
  155. package/.output/public/_nuxt/vCFAHwdt.js +1 -0
  156. package/.output/public/_nuxt/z-MP0bB7.js +1 -0
  157. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +1 -1
  158. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
  159. package/.output/server/chunks/build/{EditorToolbar-DIfb5arC.mjs → EditorToolbar-B9OwSI5e.mjs} +3 -3
  160. package/.output/server/chunks/build/{EditorToolbar-DIfb5arC.mjs.map → EditorToolbar-B9OwSI5e.mjs.map} +1 -1
  161. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +1 -1
  162. package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
  163. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
  164. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
  165. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
  166. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
  167. package/.output/server/chunks/build/Tree-DUhXKd8y.mjs +1 -1
  168. package/.output/server/chunks/build/{_id_-DN00UDdO.mjs → _id_-CwBeklIM.mjs} +296 -430
  169. package/.output/server/chunks/build/_id_-CwBeklIM.mjs.map +1 -0
  170. package/.output/server/chunks/build/{_name_-BnS_KEfX.mjs → _name_-D7MtW4Vu.mjs} +2 -2
  171. package/.output/server/chunks/build/{_name_-BnS_KEfX.mjs.map → _name_-D7MtW4Vu.mjs.map} +1 -1
  172. package/.output/server/chunks/build/{_uuid_-DfJaumTE.mjs → _uuid_-lvG92ein.mjs} +4 -4
  173. package/.output/server/chunks/build/{_uuid_-DfJaumTE.mjs.map → _uuid_-lvG92ein.mjs.map} +1 -1
  174. package/.output/server/chunks/build/account-LDZ4TL6x.mjs +513 -0
  175. package/.output/server/chunks/build/account-LDZ4TL6x.mjs.map +1 -0
  176. package/.output/server/chunks/build/app-CGhRZPNT.mjs +252 -0
  177. package/.output/server/chunks/build/app-CGhRZPNT.mjs.map +1 -0
  178. package/.output/server/chunks/build/{chat-m4-n9vC6.mjs → chat-BphuYhvA.mjs} +18 -27
  179. package/.output/server/chunks/build/chat-BphuYhvA.mjs.map +1 -0
  180. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  181. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
  182. package/.output/server/chunks/build/{dashboard-CiVTAZuF.mjs → dashboard-nDujDyOg.mjs} +55 -16
  183. package/.output/server/chunks/build/{dashboard-CiVTAZuF.mjs.map → dashboard-nDujDyOg.mjs.map} +1 -1
  184. package/.output/server/chunks/build/{docs-ChGwOPg5.mjs → docs-Bwucwp0r.mjs} +664 -592
  185. package/.output/server/chunks/build/docs-Bwucwp0r.mjs.map +1 -0
  186. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
  187. package/.output/server/chunks/build/{hooks-D328DcO6.mjs → hooks-D6PmTth8.mjs} +19 -29
  188. package/.output/server/chunks/build/hooks-D6PmTth8.mjs.map +1 -0
  189. package/.output/server/chunks/build/{index-CAnGTRlu.mjs → index-CJkn2jiM.mjs} +2 -2
  190. package/.output/server/chunks/build/{index-CAnGTRlu.mjs.map → index-CJkn2jiM.mjs.map} +1 -1
  191. package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
  192. package/.output/server/chunks/build/index-Cz9Y6NwN.mjs +723 -0
  193. package/.output/server/chunks/build/index-Cz9Y6NwN.mjs.map +1 -0
  194. package/.output/server/chunks/build/index-hwhuKhuZ.mjs +76 -0
  195. package/.output/server/chunks/build/index-hwhuKhuZ.mjs.map +1 -0
  196. package/.output/server/chunks/build/integrations-D5JWURiJ.mjs +1499 -0
  197. package/.output/server/chunks/build/integrations-D5JWURiJ.mjs.map +1 -0
  198. package/.output/server/chunks/build/{library-Aeg7_Lsb.mjs → library-DxRdgP6X.mjs} +2 -2
  199. package/.output/server/chunks/build/{library-Aeg7_Lsb.mjs.map → library-DxRdgP6X.mjs.map} +1 -1
  200. package/.output/server/chunks/build/{login-DnnElTl2.mjs → login-BmER_VoU.mjs} +2 -2
  201. package/.output/server/chunks/build/{login-DnnElTl2.mjs.map → login-BmER_VoU.mjs.map} +1 -1
  202. package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs +669 -0
  203. package/.output/server/chunks/build/manage-secrets-BWzqc_-f.mjs.map +1 -0
  204. package/.output/server/chunks/build/server.mjs +65 -34
  205. package/.output/server/chunks/build/server.mjs.map +1 -1
  206. package/.output/server/chunks/build/settings-neokAVE5.mjs +154 -0
  207. package/.output/server/chunks/build/settings-neokAVE5.mjs.map +1 -0
  208. package/.output/server/chunks/build/styles.mjs +2 -2
  209. package/.output/server/chunks/build/{tasks-DnAFqbtt.mjs → tasks-CnpIQNpS.mjs} +27 -37
  210. package/.output/server/chunks/build/tasks-CnpIQNpS.mjs.map +1 -0
  211. package/.output/server/chunks/build/{useAgents-DHEXiFSc.mjs → useAgents-nmbkB9-_.mjs} +5 -26
  212. package/.output/server/chunks/build/useAgents-nmbkB9-_.mjs.map +1 -0
  213. package/.output/server/chunks/build/{view-n2sYa4Zh.mjs → view-mb0ISqfM.mjs} +3 -3
  214. package/.output/server/chunks/build/{view-n2sYa4Zh.mjs.map → view-mb0ISqfM.mjs.map} +1 -1
  215. package/.output/server/chunks/nitro/nitro.mjs +1000 -858
  216. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  217. package/.output/server/chunks/routes/api/index.get.mjs +17 -2
  218. package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
  219. package/.output/server/chunks/routes/api/index.get3.mjs +21 -3
  220. package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
  221. package/.output/server/chunks/routes/api/index.get4.mjs +10 -9
  222. package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -1
  223. package/.output/server/chunks/routes/api/index.get9.mjs +10 -8
  224. package/.output/server/chunks/routes/api/index.get9.mjs.map +1 -1
  225. package/.output/server/chunks/routes/api/memory/search.get.mjs +10 -5
  226. package/.output/server/chunks/routes/api/memory/search.get.mjs.map +1 -1
  227. package/.output/server/chunks/routes/renderer.mjs +1 -1
  228. package/.output/server/index.mjs +1 -1
  229. package/.output/server/package.json +1 -1
  230. package/app/components/AssistantPanel.client.vue +16 -314
  231. package/app/components/agents/AgentCard.vue +111 -0
  232. package/app/components/agents/AgentInfoCard.vue +54 -0
  233. package/app/components/agents/AgentRunHistory.vue +103 -0
  234. package/app/components/agents/AgentRunModal.vue +1 -24
  235. package/app/components/agents/AgentStatsCards.vue +1 -26
  236. package/app/components/assistant/AssistantChat.vue +156 -0
  237. package/app/components/assistant/AssistantTerminal.client.vue +178 -0
  238. package/app/components/chat/ConversationList.vue +2 -12
  239. package/app/components/files/FileTree.vue +23 -202
  240. package/app/components/files/FileTreeModals.vue +226 -0
  241. package/app/components/hooks/HookStatsCards.vue +1 -6
  242. package/app/components/hooks/ToolBreakdownTable.vue +1 -6
  243. package/app/components/search/DashboardSearch.vue +38 -1
  244. package/app/components/tasks/TaskCard.vue +2 -7
  245. package/app/components/tasks/TaskDetail.vue +4 -9
  246. package/app/composables/useSearch.ts +21 -11
  247. package/app/layouts/dashboard.vue +1 -1
  248. package/app/pages/agents/[id].vue +6 -197
  249. package/app/pages/agents/index.vue +9 -142
  250. package/app/pages/settings/account.vue +243 -0
  251. package/app/pages/settings/app.vue +230 -0
  252. package/app/pages/settings/index.vue +12 -0
  253. package/app/pages/settings/integrations.vue +794 -0
  254. package/app/pages/settings/manage-secrets.vue +295 -0
  255. package/app/pages/settings.vue +20 -1581
  256. package/dist/cli/index.js +676 -212
  257. package/package.json +1 -1
  258. package/server/api/agents/index.get.ts +20 -1
  259. package/server/api/conversations/index.get.ts +23 -5
  260. package/server/api/documents/index.get.ts +11 -9
  261. package/server/api/memory/search.get.ts +11 -6
  262. package/server/api/tasks/index.get.ts +11 -9
  263. package/server/drizzle/migrations/0016_full_text_search.sql +127 -0
  264. package/server/drizzle/migrations/meta/_journal.json +7 -0
  265. package/shared/types/index.ts +7 -1
  266. package/shared/utils/formatting.ts +105 -0
  267. package/.output/public/_nuxt/4ALIM-zZ.js +0 -1
  268. package/.output/public/_nuxt/5sUbkh_6.js +0 -16
  269. package/.output/public/_nuxt/6bB8Ev7a.js +0 -1
  270. package/.output/public/_nuxt/7rT1DCe2.js +0 -1
  271. package/.output/public/_nuxt/B2PqR2Vu.js +0 -1
  272. package/.output/public/_nuxt/B5FuOh7E.js +0 -1
  273. package/.output/public/_nuxt/B6om4MW2.js +0 -1
  274. package/.output/public/_nuxt/B7ikW4eF.js +0 -1
  275. package/.output/public/_nuxt/B9kWNcU7.js +0 -1
  276. package/.output/public/_nuxt/BAZ8sewA.js +0 -1
  277. package/.output/public/_nuxt/BCPwL4ma.js +0 -1
  278. package/.output/public/_nuxt/BCrlmHh_.js +0 -1
  279. package/.output/public/_nuxt/BD-AFJWW.js +0 -1
  280. package/.output/public/_nuxt/BGcQMReV.js +0 -1
  281. package/.output/public/_nuxt/BNJJSRKh.js +0 -1
  282. package/.output/public/_nuxt/BNeeERBt.js +0 -1
  283. package/.output/public/_nuxt/BSJb5amZ.js +0 -1
  284. package/.output/public/_nuxt/BSsaE9Db.js +0 -1
  285. package/.output/public/_nuxt/BVO3XpHT.js +0 -1
  286. package/.output/public/_nuxt/B_Lr1vlV.js +0 -1
  287. package/.output/public/_nuxt/Bl0qBhCG.js +0 -1
  288. package/.output/public/_nuxt/Bl43dkDq.js +0 -1
  289. package/.output/public/_nuxt/BnMTFF5R.js +0 -1
  290. package/.output/public/_nuxt/BtV7oNn3.js +0 -1
  291. package/.output/public/_nuxt/BvFYnRMR.js +0 -1
  292. package/.output/public/_nuxt/BvTUBUNN.js +0 -1
  293. package/.output/public/_nuxt/ByLsRRoQ.js +0 -1
  294. package/.output/public/_nuxt/C1LcEMwB.js +0 -1
  295. package/.output/public/_nuxt/C2IiXp9N.js +0 -2
  296. package/.output/public/_nuxt/C796kFT9.js +0 -1
  297. package/.output/public/_nuxt/C8AtdrMH.js +0 -1
  298. package/.output/public/_nuxt/CAWbHTgy.js +0 -1
  299. package/.output/public/_nuxt/CJPrV25_.js +0 -1
  300. package/.output/public/_nuxt/CKKEWapF.js +0 -1
  301. package/.output/public/_nuxt/CNjv28J2.js +0 -1
  302. package/.output/public/_nuxt/CT8s4rqa.js +0 -1
  303. package/.output/public/_nuxt/CZSOrxUy.js +0 -1
  304. package/.output/public/_nuxt/CaNEL9JC.js +0 -39
  305. package/.output/public/_nuxt/CbTLg9oX.js +0 -1
  306. package/.output/public/_nuxt/CfCXpVn5.js +0 -1
  307. package/.output/public/_nuxt/ChmNlvWR.js +0 -1
  308. package/.output/public/_nuxt/Ck0QYdxe.js +0 -1
  309. package/.output/public/_nuxt/Ckb0pu4-.js +0 -1
  310. package/.output/public/_nuxt/CkwPRs1D.js +0 -1
  311. package/.output/public/_nuxt/CmEJg8C6.js +0 -2
  312. package/.output/public/_nuxt/CmL_vMJD.js +0 -1
  313. package/.output/public/_nuxt/Cq8zPxkT.js +0 -1
  314. package/.output/public/_nuxt/CxRnB4NC.js +0 -1
  315. package/.output/public/_nuxt/D0zMyG8n.js +0 -1
  316. package/.output/public/_nuxt/D1XYB283.js +0 -1
  317. package/.output/public/_nuxt/D2NxqyzW.js +0 -1
  318. package/.output/public/_nuxt/D5xyrvFu.js +0 -1
  319. package/.output/public/_nuxt/D8iBB0Py.js +0 -1
  320. package/.output/public/_nuxt/D8oIH8m1.js +0 -1
  321. package/.output/public/_nuxt/DB2zZev7.js +0 -1
  322. package/.output/public/_nuxt/DBrOAqkm.js +0 -1
  323. package/.output/public/_nuxt/DDXDFweK.js +0 -1
  324. package/.output/public/_nuxt/DFZkCmLQ.js +0 -1
  325. package/.output/public/_nuxt/DKZmgHNU.js +0 -1
  326. package/.output/public/_nuxt/DR8tGJhL.js +0 -1
  327. package/.output/public/_nuxt/DVAEVTjy.js +0 -1
  328. package/.output/public/_nuxt/DVqrPkCJ.js +0 -1
  329. package/.output/public/_nuxt/DWZ9ieYa.js +0 -1
  330. package/.output/public/_nuxt/DWj6VsZv.js +0 -1
  331. package/.output/public/_nuxt/DXJ9PxCv.js +0 -1
  332. package/.output/public/_nuxt/D_ziPROx.js +0 -1
  333. package/.output/public/_nuxt/Da2vwoYG.js +0 -1
  334. package/.output/public/_nuxt/Ddz3HcBB.js +0 -1
  335. package/.output/public/_nuxt/DgYei0bK.js +0 -1
  336. package/.output/public/_nuxt/Di_3GV_R.js +0 -1
  337. package/.output/public/_nuxt/Djog1f_e.js +0 -1
  338. package/.output/public/_nuxt/Dkap2-Pj.js +0 -7
  339. package/.output/public/_nuxt/DlJe_sHk.js +0 -1
  340. package/.output/public/_nuxt/DlPOQpH_.js +0 -1
  341. package/.output/public/_nuxt/DmYWMtVA.js +0 -1
  342. package/.output/public/_nuxt/DmxKU7sH.js +0 -1
  343. package/.output/public/_nuxt/DsodHRrQ.js +0 -1
  344. package/.output/public/_nuxt/DwSY6_2U.js +0 -1
  345. package/.output/public/_nuxt/DypJaSm-.js +0 -1
  346. package/.output/public/_nuxt/DzKaXH6P.js +0 -1
  347. package/.output/public/_nuxt/FK-jSuOT.js +0 -1
  348. package/.output/public/_nuxt/Fc2JsQt4.js +0 -1
  349. package/.output/public/_nuxt/IYCBGuRS.js +0 -1
  350. package/.output/public/_nuxt/NrRzUJNY.js +0 -1
  351. package/.output/public/_nuxt/OeVS0Rsb.js +0 -1
  352. package/.output/public/_nuxt/OlF0QnKF.js +0 -1
  353. package/.output/public/_nuxt/QuAoqY7t.js +0 -1
  354. package/.output/public/_nuxt/RlXHkmOd.js +0 -9
  355. package/.output/public/_nuxt/WZnvL9Dh.js +0 -1
  356. package/.output/public/_nuxt/ZvG7a1W3.js +0 -1
  357. package/.output/public/_nuxt/aPNZBVrG.js +0 -1
  358. package/.output/public/_nuxt/builds/meta/495aca73-bfa5-456e-b96a-f02e009c72d3.json +0 -1
  359. package/.output/public/_nuxt/dashboard.BxCOkJwt.css +0 -1
  360. package/.output/public/_nuxt/entry.C_udkZt9.css +0 -1
  361. package/.output/public/_nuxt/evY81hM3.js +0 -1
  362. package/.output/public/_nuxt/i6QBzaEi.js +0 -1
  363. package/.output/public/_nuxt/iTVKJ1kw.js +0 -1
  364. package/.output/public/_nuxt/j92uR3uR.js +0 -1
  365. package/.output/public/_nuxt/jdUkeAj_.js +0 -1
  366. package/.output/public/_nuxt/jeRvcMHU.js +0 -1
  367. package/.output/public/_nuxt/kuv0zpKq.js +0 -1
  368. package/.output/public/_nuxt/l3lKQs7b.js +0 -1
  369. package/.output/public/_nuxt/qIgZ7OXa.js +0 -1
  370. package/.output/public/_nuxt/qcVwZv8e.js +0 -1
  371. package/.output/public/_nuxt/ru8fqqWs.js +0 -1
  372. package/.output/public/_nuxt/sgmhgpCS.js +0 -1
  373. package/.output/public/_nuxt/y2jv0da-.js +0 -1
  374. package/.output/public/_nuxt/yyS4-kAX.js +0 -1
  375. package/.output/public/_nuxt/zIoBLBHF.js +0 -1
  376. package/.output/public/_nuxt/zpazwPgx.js +0 -1
  377. package/.output/server/chunks/build/_id_-DN00UDdO.mjs.map +0 -1
  378. package/.output/server/chunks/build/chat-m4-n9vC6.mjs.map +0 -1
  379. package/.output/server/chunks/build/docs-ChGwOPg5.mjs.map +0 -1
  380. package/.output/server/chunks/build/hooks-D328DcO6.mjs.map +0 -1
  381. package/.output/server/chunks/build/index-C9PuieXh.mjs +0 -820
  382. package/.output/server/chunks/build/index-C9PuieXh.mjs.map +0 -1
  383. package/.output/server/chunks/build/settings-B2KXoGcz.mjs +0 -3232
  384. package/.output/server/chunks/build/settings-B2KXoGcz.mjs.map +0 -1
  385. package/.output/server/chunks/build/tasks-DnAFqbtt.mjs.map +0 -1
  386. package/.output/server/chunks/build/useAgents-DHEXiFSc.mjs.map +0 -1
@@ -0,0 +1,669 @@
1
+ import { i as useToast, _ as _sfc_main$8, g as _sfc_main$d } from './server.mjs';
2
+ import { _ as _sfc_main$1 } from './Table-DCwTlhCj.mjs';
3
+ import { _ as _sfc_main$2 } from './Modal-Z_SoWhh-.mjs';
4
+ import { _ as _sfc_main$3 } from './Form-X6hlUv6q.mjs';
5
+ import { _ as _sfc_main$4 } from './FormField-Caux_FCv.mjs';
6
+ import { _ as _sfc_main$5 } from './Input-CV2hlBHo.mjs';
7
+ import { defineComponent, ref, reactive, mergeProps, withCtx, createTextVNode, unref, createVNode, toDisplayString, isRef, useSSRContext } from 'vue';
8
+ import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate } from 'vue/server-renderer';
9
+ import { az as formatDate } from '../nitro/nitro.mjs';
10
+ import 'vue-router';
11
+ import 'tailwindcss/colors';
12
+ import '@iconify/vue';
13
+ import 'reka-ui';
14
+ import '@vueuse/core';
15
+ import 'tailwind-variants';
16
+ import '@iconify/utils/lib/css/icon';
17
+ import 'perfect-debounce';
18
+ import '../routes/renderer.mjs';
19
+ import 'vue-bundle-renderer/runtime';
20
+ import 'unhead/server';
21
+ import 'devalue';
22
+ import 'unhead/plugins';
23
+ import 'unhead/utils';
24
+ import '@tanstack/vue-table';
25
+ import '@tanstack/vue-virtual';
26
+ import '@anthropic-ai/claude-agent-sdk';
27
+ import 'module';
28
+ import 'path';
29
+ import 'os';
30
+ import 'node:http';
31
+ import 'node:https';
32
+ import 'node:crypto';
33
+ import 'stream';
34
+ import 'events';
35
+ import 'http';
36
+ import 'crypto';
37
+ import 'buffer';
38
+ import 'zlib';
39
+ import 'https';
40
+ import 'net';
41
+ import 'tls';
42
+ import 'url';
43
+ import 'node:events';
44
+ import 'node:buffer';
45
+ import 'node:fs';
46
+ import 'node:path';
47
+ import 'fs';
48
+ import 'drizzle-orm/postgres-js/migrator';
49
+ import 'drizzle-orm';
50
+ import 'drizzle-orm/postgres-js';
51
+ import 'postgres';
52
+ import 'drizzle-orm/pg-core';
53
+ import 'better-auth';
54
+ import 'better-auth/adapters/drizzle';
55
+ import 'chokidar';
56
+ import 'fs/promises';
57
+ import 'gray-matter';
58
+ import 'cron';
59
+ import 'child_process';
60
+ import 'util';
61
+ import 'node:url';
62
+ import '@iconify/utils';
63
+ import 'consola';
64
+
65
+ const _sfc_main = /* @__PURE__ */ defineComponent({
66
+ __name: "manage-secrets",
67
+ __ssrInlineRender: true,
68
+ setup(__props) {
69
+ const toast = useToast();
70
+ const secretsData = ref([]);
71
+ const secretsLoading = ref(false);
72
+ const secretModal = ref(false);
73
+ const secretDeleteConfirm = ref(false);
74
+ const secretToDelete = ref(null);
75
+ const secretSaving = ref(false);
76
+ const editingSecret = ref(null);
77
+ const secretForm = reactive({
78
+ key: "",
79
+ value: "",
80
+ description: ""
81
+ });
82
+ const secretColumns = [
83
+ { accessorKey: "key", header: "Key" },
84
+ { accessorKey: "description", header: "Description" },
85
+ { accessorKey: "updatedAt", header: "Last Updated" },
86
+ { accessorKey: "actions", header: "" }
87
+ ];
88
+ async function fetchSecrets() {
89
+ secretsLoading.value = true;
90
+ try {
91
+ const { data } = await $fetch("/api/secrets");
92
+ secretsData.value = data;
93
+ } catch {
94
+ toast.add({ title: "Failed to load secrets", color: "error" });
95
+ }
96
+ secretsLoading.value = false;
97
+ }
98
+ function openCreateSecret() {
99
+ editingSecret.value = null;
100
+ secretForm.key = "";
101
+ secretForm.value = "";
102
+ secretForm.description = "";
103
+ secretModal.value = true;
104
+ }
105
+ function openEditSecret(secret) {
106
+ editingSecret.value = secret;
107
+ secretForm.key = secret.key;
108
+ secretForm.value = "";
109
+ secretForm.description = secret.description || "";
110
+ secretModal.value = true;
111
+ }
112
+ function confirmDeleteSecret(secret) {
113
+ secretToDelete.value = secret;
114
+ secretDeleteConfirm.value = true;
115
+ }
116
+ async function handleSecretSubmit() {
117
+ if (!secretForm.key || !editingSecret.value && !secretForm.value) {
118
+ toast.add({
119
+ title: "Missing fields",
120
+ description: editingSecret.value ? "Key is required." : "Key and value are required.",
121
+ color: "error"
122
+ });
123
+ return;
124
+ }
125
+ secretSaving.value = true;
126
+ try {
127
+ if (editingSecret.value) {
128
+ await $fetch(`/api/secrets/${editingSecret.value.key}`, {
129
+ method: "PUT",
130
+ body: {
131
+ value: secretForm.value || void 0,
132
+ description: secretForm.description || void 0
133
+ }
134
+ });
135
+ toast.add({ title: "Secret updated", color: "success" });
136
+ } else {
137
+ await $fetch("/api/secrets", {
138
+ method: "POST",
139
+ body: {
140
+ key: secretForm.key,
141
+ value: secretForm.value,
142
+ description: secretForm.description || void 0
143
+ }
144
+ });
145
+ toast.add({ title: "Secret created", color: "success" });
146
+ }
147
+ secretModal.value = false;
148
+ await fetchSecrets();
149
+ } catch (err) {
150
+ const error = err;
151
+ toast.add({
152
+ title: editingSecret.value ? "Failed to update secret" : "Failed to create secret",
153
+ description: error.data?.message || "An error occurred",
154
+ color: "error"
155
+ });
156
+ }
157
+ secretSaving.value = false;
158
+ }
159
+ async function handleDeleteSecret() {
160
+ if (!secretToDelete.value) return;
161
+ try {
162
+ await $fetch(`/api/secrets/${secretToDelete.value.key}`, { method: "DELETE" });
163
+ toast.add({ title: "Secret deleted", color: "success" });
164
+ secretDeleteConfirm.value = false;
165
+ secretToDelete.value = null;
166
+ await fetchSecrets();
167
+ } catch {
168
+ toast.add({ title: "Failed to delete secret", color: "error" });
169
+ }
170
+ }
171
+ return (_ctx, _push, _parent, _attrs) => {
172
+ const _component_UButton = _sfc_main$8;
173
+ const _component_UTable = _sfc_main$1;
174
+ const _component_UIcon = _sfc_main$d;
175
+ const _component_UModal = _sfc_main$2;
176
+ const _component_UForm = _sfc_main$3;
177
+ const _component_UFormField = _sfc_main$4;
178
+ const _component_UInput = _sfc_main$5;
179
+ _push(`<div${ssrRenderAttrs(mergeProps({ class: "py-6" }, _attrs))}><div class="flex items-center justify-between mb-6"><div><h3 class="text-lg font-semibold"> Secrets </h3><p class="text-sm text-dimmed"> Encrypted key-value store for skills and integrations. </p></div>`);
180
+ _push(ssrRenderComponent(_component_UButton, {
181
+ icon: "i-lucide-plus",
182
+ onClick: openCreateSecret
183
+ }, {
184
+ default: withCtx((_, _push2, _parent2, _scopeId) => {
185
+ if (_push2) {
186
+ _push2(` Add Secret `);
187
+ } else {
188
+ return [
189
+ createTextVNode(" Add Secret ")
190
+ ];
191
+ }
192
+ }),
193
+ _: 1
194
+ }, _parent));
195
+ _push(`</div>`);
196
+ _push(ssrRenderComponent(_component_UTable, {
197
+ columns: secretColumns,
198
+ data: unref(secretsData),
199
+ loading: unref(secretsLoading)
200
+ }, {
201
+ "key-cell": withCtx(({ row }, _push2, _parent2, _scopeId) => {
202
+ if (_push2) {
203
+ _push2(`<code class="text-sm bg-elevated px-2 py-0.5 rounded"${_scopeId}>${ssrInterpolate(row.original.key)}</code>`);
204
+ } else {
205
+ return [
206
+ createVNode("code", { class: "text-sm bg-elevated px-2 py-0.5 rounded" }, toDisplayString(row.original.key), 1)
207
+ ];
208
+ }
209
+ }),
210
+ "description-cell": withCtx(({ row }, _push2, _parent2, _scopeId) => {
211
+ if (_push2) {
212
+ _push2(`<span class="text-dimmed"${_scopeId}>${ssrInterpolate(row.original.description || "—")}</span>`);
213
+ } else {
214
+ return [
215
+ createVNode("span", { class: "text-dimmed" }, toDisplayString(row.original.description || "—"), 1)
216
+ ];
217
+ }
218
+ }),
219
+ "updatedAt-cell": withCtx(({ row }, _push2, _parent2, _scopeId) => {
220
+ if (_push2) {
221
+ _push2(`<span class="text-dimmed text-sm"${_scopeId}>${ssrInterpolate(unref(formatDate)(row.original.updatedAt))}</span>`);
222
+ } else {
223
+ return [
224
+ createVNode("span", { class: "text-dimmed text-sm" }, toDisplayString(unref(formatDate)(row.original.updatedAt)), 1)
225
+ ];
226
+ }
227
+ }),
228
+ "actions-cell": withCtx(({ row }, _push2, _parent2, _scopeId) => {
229
+ if (_push2) {
230
+ _push2(`<div class="flex gap-2 justify-end"${_scopeId}>`);
231
+ _push2(ssrRenderComponent(_component_UButton, {
232
+ variant: "ghost",
233
+ icon: "i-lucide-pencil",
234
+ size: "xs",
235
+ onClick: ($event) => openEditSecret(row.original)
236
+ }, null, _parent2, _scopeId));
237
+ _push2(ssrRenderComponent(_component_UButton, {
238
+ variant: "ghost",
239
+ color: "error",
240
+ icon: "i-lucide-trash-2",
241
+ size: "xs",
242
+ onClick: ($event) => confirmDeleteSecret(row.original)
243
+ }, null, _parent2, _scopeId));
244
+ _push2(`</div>`);
245
+ } else {
246
+ return [
247
+ createVNode("div", { class: "flex gap-2 justify-end" }, [
248
+ createVNode(_component_UButton, {
249
+ variant: "ghost",
250
+ icon: "i-lucide-pencil",
251
+ size: "xs",
252
+ onClick: ($event) => openEditSecret(row.original)
253
+ }, null, 8, ["onClick"]),
254
+ createVNode(_component_UButton, {
255
+ variant: "ghost",
256
+ color: "error",
257
+ icon: "i-lucide-trash-2",
258
+ size: "xs",
259
+ onClick: ($event) => confirmDeleteSecret(row.original)
260
+ }, null, 8, ["onClick"])
261
+ ])
262
+ ];
263
+ }
264
+ }),
265
+ empty: withCtx((_, _push2, _parent2, _scopeId) => {
266
+ if (_push2) {
267
+ _push2(`<div class="py-12 text-center"${_scopeId}>`);
268
+ _push2(ssrRenderComponent(_component_UIcon, {
269
+ name: "i-lucide-key",
270
+ class: "size-12 mx-auto mb-4 text-dimmed"
271
+ }, null, _parent2, _scopeId));
272
+ _push2(`<p class="text-dimmed"${_scopeId}> No secrets yet. Add one to get started. </p></div>`);
273
+ } else {
274
+ return [
275
+ createVNode("div", { class: "py-12 text-center" }, [
276
+ createVNode(_component_UIcon, {
277
+ name: "i-lucide-key",
278
+ class: "size-12 mx-auto mb-4 text-dimmed"
279
+ }),
280
+ createVNode("p", { class: "text-dimmed" }, " No secrets yet. Add one to get started. ")
281
+ ])
282
+ ];
283
+ }
284
+ }),
285
+ _: 1
286
+ }, _parent));
287
+ _push(ssrRenderComponent(_component_UModal, {
288
+ open: unref(secretModal),
289
+ "onUpdate:open": ($event) => isRef(secretModal) ? secretModal.value = $event : null
290
+ }, {
291
+ header: withCtx((_, _push2, _parent2, _scopeId) => {
292
+ if (_push2) {
293
+ _push2(`<h3 class="text-lg font-semibold"${_scopeId}>${ssrInterpolate(unref(editingSecret) ? "Edit Secret" : "Add Secret")}</h3>`);
294
+ } else {
295
+ return [
296
+ createVNode("h3", { class: "text-lg font-semibold" }, toDisplayString(unref(editingSecret) ? "Edit Secret" : "Add Secret"), 1)
297
+ ];
298
+ }
299
+ }),
300
+ body: withCtx((_, _push2, _parent2, _scopeId) => {
301
+ if (_push2) {
302
+ _push2(ssrRenderComponent(_component_UForm, {
303
+ state: unref(secretForm),
304
+ class: "space-y-4",
305
+ onSubmit: handleSecretSubmit
306
+ }, {
307
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
308
+ if (_push3) {
309
+ _push3(ssrRenderComponent(_component_UFormField, {
310
+ label: "Key",
311
+ name: "key",
312
+ hint: unref(editingSecret) ? "" : "SCREAMING_SNAKE_CASE"
313
+ }, {
314
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
315
+ if (_push4) {
316
+ _push4(ssrRenderComponent(_component_UInput, {
317
+ modelValue: unref(secretForm).key,
318
+ "onUpdate:modelValue": ($event) => unref(secretForm).key = $event,
319
+ disabled: !!unref(editingSecret),
320
+ placeholder: "MY_API_KEY",
321
+ class: "w-full font-mono"
322
+ }, null, _parent4, _scopeId3));
323
+ } else {
324
+ return [
325
+ createVNode(_component_UInput, {
326
+ modelValue: unref(secretForm).key,
327
+ "onUpdate:modelValue": ($event) => unref(secretForm).key = $event,
328
+ disabled: !!unref(editingSecret),
329
+ placeholder: "MY_API_KEY",
330
+ class: "w-full font-mono"
331
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
332
+ ];
333
+ }
334
+ }),
335
+ _: 1
336
+ }, _parent3, _scopeId2));
337
+ _push3(ssrRenderComponent(_component_UFormField, {
338
+ label: "Value",
339
+ name: "value",
340
+ hint: unref(editingSecret) ? "Leave empty to keep current value" : ""
341
+ }, {
342
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
343
+ if (_push4) {
344
+ _push4(ssrRenderComponent(_component_UInput, {
345
+ modelValue: unref(secretForm).value,
346
+ "onUpdate:modelValue": ($event) => unref(secretForm).value = $event,
347
+ type: "password",
348
+ placeholder: unref(editingSecret) ? "••••••••" : "Secret value",
349
+ class: "w-full"
350
+ }, null, _parent4, _scopeId3));
351
+ } else {
352
+ return [
353
+ createVNode(_component_UInput, {
354
+ modelValue: unref(secretForm).value,
355
+ "onUpdate:modelValue": ($event) => unref(secretForm).value = $event,
356
+ type: "password",
357
+ placeholder: unref(editingSecret) ? "••••••••" : "Secret value",
358
+ class: "w-full"
359
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
360
+ ];
361
+ }
362
+ }),
363
+ _: 1
364
+ }, _parent3, _scopeId2));
365
+ _push3(ssrRenderComponent(_component_UFormField, {
366
+ label: "Description",
367
+ name: "description"
368
+ }, {
369
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
370
+ if (_push4) {
371
+ _push4(ssrRenderComponent(_component_UInput, {
372
+ modelValue: unref(secretForm).description,
373
+ "onUpdate:modelValue": ($event) => unref(secretForm).description = $event,
374
+ placeholder: "Optional description",
375
+ class: "w-full"
376
+ }, null, _parent4, _scopeId3));
377
+ } else {
378
+ return [
379
+ createVNode(_component_UInput, {
380
+ modelValue: unref(secretForm).description,
381
+ "onUpdate:modelValue": ($event) => unref(secretForm).description = $event,
382
+ placeholder: "Optional description",
383
+ class: "w-full"
384
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
385
+ ];
386
+ }
387
+ }),
388
+ _: 1
389
+ }, _parent3, _scopeId2));
390
+ _push3(`<div class="flex justify-end gap-2 pt-4"${_scopeId2}>`);
391
+ _push3(ssrRenderComponent(_component_UButton, {
392
+ variant: "ghost",
393
+ onClick: ($event) => secretModal.value = false
394
+ }, {
395
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
396
+ if (_push4) {
397
+ _push4(` Cancel `);
398
+ } else {
399
+ return [
400
+ createTextVNode(" Cancel ")
401
+ ];
402
+ }
403
+ }),
404
+ _: 1
405
+ }, _parent3, _scopeId2));
406
+ _push3(ssrRenderComponent(_component_UButton, {
407
+ type: "submit",
408
+ loading: unref(secretSaving)
409
+ }, {
410
+ default: withCtx((_3, _push4, _parent4, _scopeId3) => {
411
+ if (_push4) {
412
+ _push4(`${ssrInterpolate(unref(editingSecret) ? "Update" : "Create")}`);
413
+ } else {
414
+ return [
415
+ createTextVNode(toDisplayString(unref(editingSecret) ? "Update" : "Create"), 1)
416
+ ];
417
+ }
418
+ }),
419
+ _: 1
420
+ }, _parent3, _scopeId2));
421
+ _push3(`</div>`);
422
+ } else {
423
+ return [
424
+ createVNode(_component_UFormField, {
425
+ label: "Key",
426
+ name: "key",
427
+ hint: unref(editingSecret) ? "" : "SCREAMING_SNAKE_CASE"
428
+ }, {
429
+ default: withCtx(() => [
430
+ createVNode(_component_UInput, {
431
+ modelValue: unref(secretForm).key,
432
+ "onUpdate:modelValue": ($event) => unref(secretForm).key = $event,
433
+ disabled: !!unref(editingSecret),
434
+ placeholder: "MY_API_KEY",
435
+ class: "w-full font-mono"
436
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
437
+ ]),
438
+ _: 1
439
+ }, 8, ["hint"]),
440
+ createVNode(_component_UFormField, {
441
+ label: "Value",
442
+ name: "value",
443
+ hint: unref(editingSecret) ? "Leave empty to keep current value" : ""
444
+ }, {
445
+ default: withCtx(() => [
446
+ createVNode(_component_UInput, {
447
+ modelValue: unref(secretForm).value,
448
+ "onUpdate:modelValue": ($event) => unref(secretForm).value = $event,
449
+ type: "password",
450
+ placeholder: unref(editingSecret) ? "••••••••" : "Secret value",
451
+ class: "w-full"
452
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
453
+ ]),
454
+ _: 1
455
+ }, 8, ["hint"]),
456
+ createVNode(_component_UFormField, {
457
+ label: "Description",
458
+ name: "description"
459
+ }, {
460
+ default: withCtx(() => [
461
+ createVNode(_component_UInput, {
462
+ modelValue: unref(secretForm).description,
463
+ "onUpdate:modelValue": ($event) => unref(secretForm).description = $event,
464
+ placeholder: "Optional description",
465
+ class: "w-full"
466
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
467
+ ]),
468
+ _: 1
469
+ }),
470
+ createVNode("div", { class: "flex justify-end gap-2 pt-4" }, [
471
+ createVNode(_component_UButton, {
472
+ variant: "ghost",
473
+ onClick: ($event) => secretModal.value = false
474
+ }, {
475
+ default: withCtx(() => [
476
+ createTextVNode(" Cancel ")
477
+ ]),
478
+ _: 1
479
+ }, 8, ["onClick"]),
480
+ createVNode(_component_UButton, {
481
+ type: "submit",
482
+ loading: unref(secretSaving)
483
+ }, {
484
+ default: withCtx(() => [
485
+ createTextVNode(toDisplayString(unref(editingSecret) ? "Update" : "Create"), 1)
486
+ ]),
487
+ _: 1
488
+ }, 8, ["loading"])
489
+ ])
490
+ ];
491
+ }
492
+ }),
493
+ _: 1
494
+ }, _parent2, _scopeId));
495
+ } else {
496
+ return [
497
+ createVNode(_component_UForm, {
498
+ state: unref(secretForm),
499
+ class: "space-y-4",
500
+ onSubmit: handleSecretSubmit
501
+ }, {
502
+ default: withCtx(() => [
503
+ createVNode(_component_UFormField, {
504
+ label: "Key",
505
+ name: "key",
506
+ hint: unref(editingSecret) ? "" : "SCREAMING_SNAKE_CASE"
507
+ }, {
508
+ default: withCtx(() => [
509
+ createVNode(_component_UInput, {
510
+ modelValue: unref(secretForm).key,
511
+ "onUpdate:modelValue": ($event) => unref(secretForm).key = $event,
512
+ disabled: !!unref(editingSecret),
513
+ placeholder: "MY_API_KEY",
514
+ class: "w-full font-mono"
515
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
516
+ ]),
517
+ _: 1
518
+ }, 8, ["hint"]),
519
+ createVNode(_component_UFormField, {
520
+ label: "Value",
521
+ name: "value",
522
+ hint: unref(editingSecret) ? "Leave empty to keep current value" : ""
523
+ }, {
524
+ default: withCtx(() => [
525
+ createVNode(_component_UInput, {
526
+ modelValue: unref(secretForm).value,
527
+ "onUpdate:modelValue": ($event) => unref(secretForm).value = $event,
528
+ type: "password",
529
+ placeholder: unref(editingSecret) ? "••••••••" : "Secret value",
530
+ class: "w-full"
531
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
532
+ ]),
533
+ _: 1
534
+ }, 8, ["hint"]),
535
+ createVNode(_component_UFormField, {
536
+ label: "Description",
537
+ name: "description"
538
+ }, {
539
+ default: withCtx(() => [
540
+ createVNode(_component_UInput, {
541
+ modelValue: unref(secretForm).description,
542
+ "onUpdate:modelValue": ($event) => unref(secretForm).description = $event,
543
+ placeholder: "Optional description",
544
+ class: "w-full"
545
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
546
+ ]),
547
+ _: 1
548
+ }),
549
+ createVNode("div", { class: "flex justify-end gap-2 pt-4" }, [
550
+ createVNode(_component_UButton, {
551
+ variant: "ghost",
552
+ onClick: ($event) => secretModal.value = false
553
+ }, {
554
+ default: withCtx(() => [
555
+ createTextVNode(" Cancel ")
556
+ ]),
557
+ _: 1
558
+ }, 8, ["onClick"]),
559
+ createVNode(_component_UButton, {
560
+ type: "submit",
561
+ loading: unref(secretSaving)
562
+ }, {
563
+ default: withCtx(() => [
564
+ createTextVNode(toDisplayString(unref(editingSecret) ? "Update" : "Create"), 1)
565
+ ]),
566
+ _: 1
567
+ }, 8, ["loading"])
568
+ ])
569
+ ]),
570
+ _: 1
571
+ }, 8, ["state"])
572
+ ];
573
+ }
574
+ }),
575
+ _: 1
576
+ }, _parent));
577
+ _push(ssrRenderComponent(_component_UModal, {
578
+ open: unref(secretDeleteConfirm),
579
+ "onUpdate:open": ($event) => isRef(secretDeleteConfirm) ? secretDeleteConfirm.value = $event : null
580
+ }, {
581
+ header: withCtx((_, _push2, _parent2, _scopeId) => {
582
+ if (_push2) {
583
+ _push2(`<h3 class="text-lg font-semibold"${_scopeId}> Delete Secret </h3>`);
584
+ } else {
585
+ return [
586
+ createVNode("h3", { class: "text-lg font-semibold" }, " Delete Secret ")
587
+ ];
588
+ }
589
+ }),
590
+ body: withCtx((_, _push2, _parent2, _scopeId) => {
591
+ if (_push2) {
592
+ _push2(`<p class="mb-4"${_scopeId}> Are you sure you want to delete <code class="bg-elevated px-2 py-0.5 rounded"${_scopeId}>${ssrInterpolate(unref(secretToDelete)?.key)}</code>? </p><p class="text-sm text-dimmed"${_scopeId}> This action cannot be undone. Any skills using this secret will stop working. </p><div class="flex justify-end gap-2 pt-6"${_scopeId}>`);
593
+ _push2(ssrRenderComponent(_component_UButton, {
594
+ variant: "ghost",
595
+ onClick: ($event) => secretDeleteConfirm.value = false
596
+ }, {
597
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
598
+ if (_push3) {
599
+ _push3(` Cancel `);
600
+ } else {
601
+ return [
602
+ createTextVNode(" Cancel ")
603
+ ];
604
+ }
605
+ }),
606
+ _: 1
607
+ }, _parent2, _scopeId));
608
+ _push2(ssrRenderComponent(_component_UButton, {
609
+ color: "error",
610
+ onClick: handleDeleteSecret
611
+ }, {
612
+ default: withCtx((_2, _push3, _parent3, _scopeId2) => {
613
+ if (_push3) {
614
+ _push3(` Delete `);
615
+ } else {
616
+ return [
617
+ createTextVNode(" Delete ")
618
+ ];
619
+ }
620
+ }),
621
+ _: 1
622
+ }, _parent2, _scopeId));
623
+ _push2(`</div>`);
624
+ } else {
625
+ return [
626
+ createVNode("p", { class: "mb-4" }, [
627
+ createTextVNode(" Are you sure you want to delete "),
628
+ createVNode("code", { class: "bg-elevated px-2 py-0.5 rounded" }, toDisplayString(unref(secretToDelete)?.key), 1),
629
+ createTextVNode("? ")
630
+ ]),
631
+ createVNode("p", { class: "text-sm text-dimmed" }, " This action cannot be undone. Any skills using this secret will stop working. "),
632
+ createVNode("div", { class: "flex justify-end gap-2 pt-6" }, [
633
+ createVNode(_component_UButton, {
634
+ variant: "ghost",
635
+ onClick: ($event) => secretDeleteConfirm.value = false
636
+ }, {
637
+ default: withCtx(() => [
638
+ createTextVNode(" Cancel ")
639
+ ]),
640
+ _: 1
641
+ }, 8, ["onClick"]),
642
+ createVNode(_component_UButton, {
643
+ color: "error",
644
+ onClick: handleDeleteSecret
645
+ }, {
646
+ default: withCtx(() => [
647
+ createTextVNode(" Delete ")
648
+ ]),
649
+ _: 1
650
+ })
651
+ ])
652
+ ];
653
+ }
654
+ }),
655
+ _: 1
656
+ }, _parent));
657
+ _push(`</div>`);
658
+ };
659
+ }
660
+ });
661
+ const _sfc_setup = _sfc_main.setup;
662
+ _sfc_main.setup = (props, ctx) => {
663
+ const ssrContext = useSSRContext();
664
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/settings/manage-secrets.vue");
665
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
666
+ };
667
+
668
+ export { _sfc_main as default };
669
+ //# sourceMappingURL=manage-secrets-BWzqc_-f.mjs.map