cognova 0.1.9 → 0.2.0

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 (299) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{B4LjQa2N.js → 4MiwzAAt.js} +2 -2
  3. package/.output/public/_nuxt/{BZZeOWzQ.js → 5ZXA0Ckq.js} +1 -1
  4. package/.output/public/_nuxt/{B194okoV.js → 9IQmsEjr.js} +1 -1
  5. package/.output/public/_nuxt/{DQ_ZoW_9.js → 9QnH0xQM.js} +1 -1
  6. package/.output/public/_nuxt/{CF0HGIV6.js → B1X4Bzcy.js} +1 -1
  7. package/.output/public/_nuxt/{D9lowtoI.js → B3y_Qqox.js} +1 -1
  8. package/.output/public/_nuxt/{BB1R_SaV.js → B6S_ob86.js} +1 -1
  9. package/.output/public/_nuxt/{DVf1IpSh.js → BAIz-dEB.js} +1 -1
  10. package/.output/public/_nuxt/{CNFNMRY1.js → BCtfQCzC.js} +1 -1
  11. package/.output/public/_nuxt/BIIJhjQO.js +1 -0
  12. package/.output/public/_nuxt/BIckl6wA.js +1 -0
  13. package/.output/public/_nuxt/{Biy6boRV.js → BJ3o57WW.js} +1 -1
  14. package/.output/public/_nuxt/{B5rIsDOv.js → BNetzZzF.js} +1 -1
  15. package/.output/public/_nuxt/{DFXLcgxL.js → BOj6t-oo.js} +1 -1
  16. package/.output/public/_nuxt/{BDUpLPg_.js → BS0ofHJK.js} +1 -1
  17. package/.output/public/_nuxt/{DIdcflWi.js → BWhMnjID.js} +1 -1
  18. package/.output/public/_nuxt/{CExLOuIW.js → BYjadNrw.js} +1 -1
  19. package/.output/public/_nuxt/{C8ytOrRD.js → BZXMQuYP.js} +1 -1
  20. package/.output/public/_nuxt/{Ddih3UKd.js → B_3_hrpn.js} +1 -1
  21. package/.output/public/_nuxt/{CxSyRXlk.js → BaBZjmMC.js} +1 -1
  22. package/.output/public/_nuxt/BaMqDm5u.js +1 -0
  23. package/.output/public/_nuxt/BasgsT_S.js +1 -0
  24. package/.output/public/_nuxt/{Cehzuz52.js → BffWCM73.js} +1 -1
  25. package/.output/public/_nuxt/{Dh0BcDEI.js → BhzMoffi.js} +1 -1
  26. package/.output/public/_nuxt/{DmV68Eyp.js → BjjCvHLT.js} +1 -1
  27. package/.output/public/_nuxt/{nzAH3Wk0.js → BlAZO7nq.js} +1 -1
  28. package/.output/public/_nuxt/{BRPJdy3u.js → BlhFigLL.js} +1 -1
  29. package/.output/public/_nuxt/{CfTFjEuh.js → Bm9LyG4F.js} +1 -1
  30. package/.output/public/_nuxt/BoIxv-gM.js +1 -0
  31. package/.output/public/_nuxt/{BslL2E8V.js → BqKFIuRj.js} +1 -1
  32. package/.output/public/_nuxt/Br19oYkq.js +1 -0
  33. package/.output/public/_nuxt/{PtGESE-F.js → BrNqhp1a.js} +3 -3
  34. package/.output/public/_nuxt/{FvV9sv7q.js → BsEZoHd1.js} +1 -1
  35. package/.output/public/_nuxt/{BaPPQtFe.js → BxXOsXrM.js} +10 -10
  36. package/.output/public/_nuxt/BzOqrmGa.js +7 -0
  37. package/.output/public/_nuxt/{BNAsyazX.js → C0JKNMDO.js} +1 -1
  38. package/.output/public/_nuxt/C0kh_F7v.js +1 -0
  39. package/.output/public/_nuxt/{4Ew5YctE.js → C3FxIITy.js} +1 -1
  40. package/.output/public/_nuxt/{DnToOWVx.js → C4pxqdgg.js} +1 -1
  41. package/.output/public/_nuxt/{C5Ue4WbD.js → C61KgSco.js} +1 -1
  42. package/.output/public/_nuxt/{DcMvYcFq.js → C69W7k2j.js} +1 -1
  43. package/.output/public/_nuxt/{BnnFvWzv.js → C6RC3lA1.js} +1 -1
  44. package/.output/public/_nuxt/{DBENYi9d.js → C6aqGHu1.js} +1 -1
  45. package/.output/public/_nuxt/{YldWqMAh.js → CJUdYEdO.js} +1 -1
  46. package/.output/public/_nuxt/{BPAM-iC7.js → CKkC3Ptm.js} +1 -1
  47. package/.output/public/_nuxt/{CTXhFIUN.js → CNnJrDvu.js} +1 -1
  48. package/.output/public/_nuxt/{BwH2E0-a.js → CVJQGP1Q.js} +1 -1
  49. package/.output/public/_nuxt/{q0vhMpUB.js → CVgTJeSq.js} +1 -1
  50. package/.output/public/_nuxt/CWMUi89H.js +1 -0
  51. package/.output/public/_nuxt/{BU9VyOEC.js → CYP_MLH8.js} +1 -1
  52. package/.output/public/_nuxt/{76CHU1js.js → C_BdYLzz.js} +1 -1
  53. package/.output/public/_nuxt/{BQbnVFXA.js → Cdt3I3Go.js} +1 -1
  54. package/.output/public/_nuxt/Cdu2qGgq.js +1 -0
  55. package/.output/public/_nuxt/{ChMIRIq6.js → CeIVm4A3.js} +1 -1
  56. package/.output/public/_nuxt/CeIu7z4p.js +1 -0
  57. package/.output/public/_nuxt/{CZZw0T2a.js → Ci7UEZQh.js} +1 -1
  58. package/.output/public/_nuxt/{BP_jQhKs.js → CihWZmJe.js} +2 -2
  59. package/.output/public/_nuxt/{Bluqlt6l.js → CitkKxhw.js} +1 -1
  60. package/.output/public/_nuxt/{DIM73BjE.js → CmzH6R-N.js} +2 -2
  61. package/.output/public/_nuxt/{CD5hHJBM.js → Cp2MA0cm.js} +1 -1
  62. package/.output/public/_nuxt/{DflBkWfa.js → CqU2XbzO.js} +1 -1
  63. package/.output/public/_nuxt/{Ccc8OoR8.js → Cqy_L_ip.js} +1 -1
  64. package/.output/public/_nuxt/Cr8ixbr1.js +1 -0
  65. package/.output/public/_nuxt/{DdLGO0wP.js → CsJ9KhQ4.js} +1 -1
  66. package/.output/public/_nuxt/{mHNfVoS0.js → CtYFj7k1.js} +1 -1
  67. package/.output/public/_nuxt/{DIBimEIe.js → CtchsY6e.js} +1 -1
  68. package/.output/public/_nuxt/{BboG47Wz.js → Cvp7FI3T.js} +1 -1
  69. package/.output/public/_nuxt/CxuZBC8n.js +70 -0
  70. package/.output/public/_nuxt/D2689qk4.js +1 -0
  71. package/.output/public/_nuxt/{CWWmC6Y7.js → D31L7Ks6.js} +1 -1
  72. package/.output/public/_nuxt/{JxSV3wOO.js → D3RiUGdz.js} +1 -1
  73. package/.output/public/_nuxt/{C1tYtAeV.js → D3e44mCL.js} +1 -1
  74. package/.output/public/_nuxt/{BTWyDDBM.js → D6t3dcTl.js} +1 -1
  75. package/.output/public/_nuxt/{DpLjEbYb.js → DAQhmSv4.js} +1 -1
  76. package/.output/public/_nuxt/{BnwR3LQL.js → DB359q8R.js} +1 -1
  77. package/.output/public/_nuxt/{jCKYMNtT.js → DCzfkCGa.js} +1 -1
  78. package/.output/public/_nuxt/{BXWm1qrj.js → DG-T44jj.js} +1 -1
  79. package/.output/public/_nuxt/{BBygTbuF.js → DGX0tzL8.js} +1 -1
  80. package/.output/public/_nuxt/DHG66LPS.js +1 -0
  81. package/.output/public/_nuxt/{jBqB49XU.js → DHKLCQRG.js} +1 -1
  82. package/.output/public/_nuxt/{BDw-JoCx.js → DIoI0uJm.js} +1 -1
  83. package/.output/public/_nuxt/{DOQA5CEF.js → DJ5V-y_x.js} +1 -1
  84. package/.output/public/_nuxt/{BGaNWD0s.js → DJMS2og1.js} +1 -1
  85. package/.output/public/_nuxt/{UmgHYYVi.js → DJjDvbZE.js} +1 -1
  86. package/.output/public/_nuxt/{DdtX5kio.js → DK9jxJ0g.js} +1 -1
  87. package/.output/public/_nuxt/{Cc6GlQCO.js → DKZxeXDQ.js} +1 -1
  88. package/.output/public/_nuxt/{Tp-9mt9j.js → DLETdGFL.js} +1 -1
  89. package/.output/public/_nuxt/DOICd-Ld.js +1 -0
  90. package/.output/public/_nuxt/DPEcH-gi.js +65 -0
  91. package/.output/public/_nuxt/{CVNY6Bll.js → DSRrg8JT.js} +1 -1
  92. package/.output/public/_nuxt/{Sm7TJN7_.js → DTDgHTuh.js} +2 -2
  93. package/.output/public/_nuxt/{DeGKAWfY.js → D_3Rq1BS.js} +1 -1
  94. package/.output/public/_nuxt/{BvnL4Jyv.js → Daz4MeL6.js} +1 -1
  95. package/.output/public/_nuxt/{Dyd3g9po.js → Db2v8O7O.js} +1 -1
  96. package/.output/public/_nuxt/{D0FBwEzN.js → Db8-_gO7.js} +1 -1
  97. package/.output/public/_nuxt/{Cv4Qjbqk.js → DfQu3kEw.js} +1 -1
  98. package/.output/public/_nuxt/{c-RGQpsW.js → DgV-EDJ9.js} +1 -1
  99. package/.output/public/_nuxt/{CSF2cTe9.js → DnjGH3SQ.js} +1 -1
  100. package/.output/public/_nuxt/Dp2X5R2m.js +1 -0
  101. package/.output/public/_nuxt/DqB723Z0.js +1 -0
  102. package/.output/public/_nuxt/{DhRePYUI.js → DyRelyfs.js} +1 -1
  103. package/.output/public/_nuxt/{DZiAD6YN.js → Dy_Cq5LQ.js} +1 -1
  104. package/.output/public/_nuxt/{DWQMV4k2.js → DznawRFW.js} +1 -1
  105. package/.output/public/_nuxt/EuOqK1A6.js +1 -0
  106. package/.output/public/_nuxt/{BVZHIuu-.js → FNC8XZTk.js} +1 -1
  107. package/.output/public/_nuxt/{Dsk8JtTw.js → Fukkqjkf.js} +1 -1
  108. package/.output/public/_nuxt/{DNpdNXnv.js → FvlxxmNk.js} +2 -2
  109. package/.output/public/_nuxt/{zt0Txq93.js → IRSbVPIu.js} +1 -1
  110. package/.output/public/_nuxt/{T_w6A2Zo.js → JJ3634gV.js} +9 -9
  111. package/.output/public/_nuxt/{6Tt_Iaya.js → Jez9DHn7.js} +1 -1
  112. package/.output/public/_nuxt/{Cr7nQmYw.js → KKK6HVeG.js} +1 -1
  113. package/.output/public/_nuxt/{BJPw54Qz.js → Lwdv_RKd.js} +1 -1
  114. package/.output/public/_nuxt/{WqUIRM3G.js → Nb2jBtYT.js} +1 -1
  115. package/.output/public/_nuxt/Q8Ps7oN5.js +1 -0
  116. package/.output/public/_nuxt/SXTDhzp6.js +1 -0
  117. package/.output/public/_nuxt/{rfcePMfo.js → Sg2Lwc46.js} +1 -1
  118. package/.output/public/_nuxt/{gEpwc5gO.js → YuTZB7sD.js} +1 -1
  119. package/.output/public/_nuxt/{B2OKrc4G.js → _CYZi8HN.js} +1 -1
  120. package/.output/public/_nuxt/_J_7XIn-.js +1 -0
  121. package/.output/public/_nuxt/builds/latest.json +1 -1
  122. package/.output/public/_nuxt/builds/meta/a1e9100c-1a4f-4f7e-bb53-9dbe0d07effb.json +1 -0
  123. package/.output/public/_nuxt/{Bwx_Kl-4.js → cABRLVee.js} +1 -1
  124. package/.output/public/_nuxt/{DPuJYSUH.js → eko-0FUm.js} +1 -1
  125. package/.output/public/_nuxt/entry.CGxIBGAf.css +1 -0
  126. package/.output/public/_nuxt/{TQOIXkvr.js → g20UHUCv.js} +1 -1
  127. package/.output/public/_nuxt/{zOs8gUGl.js → gBC9k4Qj.js} +1 -1
  128. package/.output/public/_nuxt/{CJ3DQEW9.js → ghuJ76mD.js} +1 -1
  129. package/.output/public/_nuxt/{S6GTaxiQ.js → iBGCpHdw.js} +1 -1
  130. package/.output/public/_nuxt/{VGlRzjk3.js → inmzPrjz.js} +1 -1
  131. package/.output/public/_nuxt/{CCkumwhk.js → m5kGCDpI.js} +4 -4
  132. package/.output/public/_nuxt/{CXkbkhUa.js → nIU2F7ia.js} +3 -3
  133. package/.output/public/_nuxt/oIX-ZDN6.js +1 -0
  134. package/.output/public/_nuxt/{TsIha0iy.js → pcUI-zuY.js} +1 -1
  135. package/.output/public/_nuxt/{BN_2zhBR.js → sf57orEk.js} +1 -1
  136. package/.output/public/_nuxt/usage.vakN1lvi.css +1 -0
  137. package/.output/public/_nuxt/{DHYn0MnY.js → wCGVE8_e.js} +1 -1
  138. package/.output/public/_nuxt/{DMkXE4gH.js → xuzLdW-o.js} +1 -1
  139. package/.output/public/_nuxt/{DdoFnl6e.js → yNrp2XvX.js} +1 -1
  140. package/.output/public/_nuxt/{4hIPJQLp.js → yuf23kh9.js} +1 -1
  141. package/.output/server/chunks/build/CodeIcon-CWD5HcV7.mjs +1 -1
  142. package/.output/server/chunks/build/DropdownMenu-BBrV9nXz.mjs +1 -1
  143. package/.output/server/chunks/build/EditorToolbar-DIfb5arC.mjs +1 -1
  144. package/.output/server/chunks/build/Img-CWLmvN1t.mjs +1 -1
  145. package/.output/server/chunks/build/MDC-Dx0YPDhe.mjs +1 -1
  146. package/.output/server/chunks/build/Select-BB1oLrCD.mjs +1 -1
  147. package/.output/server/chunks/build/SelectMenu-DPssg6zD.mjs +1 -1
  148. package/.output/server/chunks/build/Table-DCwTlhCj.mjs +1 -1
  149. package/.output/server/chunks/build/Tooltip-TRyl6dje.mjs +1 -1
  150. package/.output/server/chunks/build/{_uuid_-CQEMsF1D.mjs → _uuid_-0UgdUhfY.mjs} +8 -7
  151. package/.output/server/chunks/build/{_uuid_-CQEMsF1D.mjs.map → _uuid_-0UgdUhfY.mjs.map} +1 -1
  152. package/.output/server/chunks/build/chat-CZMiB68R.mjs.map +1 -1
  153. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  154. package/.output/server/chunks/build/cookie-C_iulBi6.mjs +1 -1
  155. package/.output/server/chunks/build/{dashboard-24rCroiO.mjs → dashboard-CpMVYnDV.mjs} +13 -6
  156. package/.output/server/chunks/build/{dashboard-24rCroiO.mjs.map → dashboard-CpMVYnDV.mjs.map} +1 -1
  157. package/.output/server/chunks/build/dashboard-YEscLBQN.mjs +1109 -0
  158. package/.output/server/chunks/build/dashboard-YEscLBQN.mjs.map +1 -0
  159. package/.output/server/chunks/build/{docs-DOGZUctm.mjs → docs-Dk2JnYq3.mjs} +8 -7
  160. package/.output/server/chunks/build/{docs-DOGZUctm.mjs.map → docs-Dk2JnYq3.mjs.map} +1 -1
  161. package/.output/server/chunks/build/fetch-BB7Qzkwe.mjs +1 -1
  162. package/.output/server/chunks/build/{hooks-CuyNIRFI.mjs → hooks-DP8WoUPS.mjs} +2 -2
  163. package/.output/server/chunks/build/{hooks-CuyNIRFI.mjs.map → hooks-DP8WoUPS.mjs.map} +1 -1
  164. package/.output/server/chunks/build/{index-BZI-Mj1-.mjs → index-Ba_bPJgk.mjs} +2 -2
  165. package/.output/server/chunks/build/{index-BZI-Mj1-.mjs.map → index-Ba_bPJgk.mjs.map} +1 -1
  166. package/.output/server/chunks/build/index-CxDxc9fm.mjs +1 -1
  167. package/.output/server/chunks/build/server.mjs +26 -17
  168. package/.output/server/chunks/build/server.mjs.map +1 -1
  169. package/.output/server/chunks/build/settings-DdkKCJ00.mjs +1 -1
  170. package/.output/server/chunks/build/styles.mjs +2 -2
  171. package/.output/server/chunks/build/{tasks-DR55Wjpi.mjs → tasks-DiOi1HG_.mjs} +2 -2
  172. package/.output/server/chunks/build/{tasks-DR55Wjpi.mjs.map → tasks-DiOi1HG_.mjs.map} +1 -1
  173. package/.output/server/chunks/build/usage-H_mcd_fz.mjs +1578 -0
  174. package/.output/server/chunks/build/usage-H_mcd_fz.mjs.map +1 -0
  175. package/.output/server/chunks/build/{CodeEditorFallback-DfYly7f5.mjs → useCopyToClipboard-vi6FYyyZ.mjs} +29 -2
  176. package/.output/server/chunks/build/useCopyToClipboard-vi6FYyyZ.mjs.map +1 -0
  177. package/.output/server/chunks/build/useNotificationBus-BG5JNQf1.mjs +1 -1
  178. package/.output/server/chunks/build/{usePreferences-CUvZsOq5.mjs → usePreferences-CzC8fRzd.mjs} +7 -1
  179. package/.output/server/chunks/build/usePreferences-CzC8fRzd.mjs.map +1 -0
  180. package/.output/server/chunks/build/view-Dc8mvzCB.mjs +1 -1
  181. package/.output/server/chunks/nitro/nitro.mjs +884 -818
  182. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  183. package/.output/server/chunks/routes/_ws/chat.mjs +18 -4
  184. package/.output/server/chunks/routes/_ws/chat.mjs.map +1 -1
  185. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs +149 -0
  186. package/.output/server/chunks/routes/api/dashboard/overview.get.mjs.map +1 -0
  187. package/.output/server/chunks/routes/api/documents/_id/public.get.mjs +1 -1
  188. package/.output/server/chunks/routes/api/documents/_id/restore.post.mjs +1 -1
  189. package/.output/server/chunks/routes/api/documents/by-path.post.mjs +1 -1
  190. package/.output/server/chunks/routes/api/documents/index.delete.mjs +1 -1
  191. package/.output/server/chunks/routes/api/documents/index.put.mjs +1 -1
  192. package/.output/server/chunks/routes/api/fs/delete.post.mjs +1 -1
  193. package/.output/server/chunks/routes/api/fs/list.get.mjs +1 -1
  194. package/.output/server/chunks/routes/api/fs/mkdir.post.mjs +1 -1
  195. package/.output/server/chunks/routes/api/fs/move.post.mjs +1 -1
  196. package/.output/server/chunks/routes/api/fs/read.post.mjs +1 -1
  197. package/.output/server/chunks/routes/api/fs/rename.post.mjs +1 -1
  198. package/.output/server/chunks/routes/api/fs/write.post.mjs +1 -1
  199. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  200. package/.output/server/chunks/routes/api/home.get.mjs +1 -1
  201. package/.output/server/chunks/routes/api/hooks/index.get.mjs +1 -1
  202. package/.output/server/chunks/routes/api/hooks/index.post.mjs +1 -1
  203. package/.output/server/chunks/routes/api/hooks/stats.get.mjs +1 -1
  204. package/.output/server/chunks/routes/api/index.get3.mjs +1 -1
  205. package/.output/server/chunks/routes/api/index.get4.mjs +1 -1
  206. package/.output/server/chunks/routes/api/index.get5.mjs +1 -1
  207. package/.output/server/chunks/routes/api/index.get6.mjs +1 -1
  208. package/.output/server/chunks/routes/api/index.get7.mjs +1 -1
  209. package/.output/server/chunks/routes/api/index.get8.mjs +82 -0
  210. package/.output/server/chunks/routes/api/index.get8.mjs.map +1 -0
  211. package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
  212. package/.output/server/chunks/routes/api/index.post3.mjs +1 -1
  213. package/.output/server/chunks/routes/api/index.post4.mjs +1 -1
  214. package/.output/server/chunks/routes/api/index.put.mjs +1 -1
  215. package/.output/server/chunks/routes/api/memory/_id_.delete.mjs +1 -1
  216. package/.output/server/chunks/routes/api/memory/context.get.mjs +1 -1
  217. package/.output/server/chunks/routes/api/memory/extract.post.mjs +20 -1
  218. package/.output/server/chunks/routes/api/memory/extract.post.mjs.map +1 -1
  219. package/.output/server/chunks/routes/api/memory/search.get.mjs +1 -1
  220. package/.output/server/chunks/routes/api/memory/store.post.mjs +1 -1
  221. package/.output/server/chunks/routes/api/projects/index.delete.mjs +1 -1
  222. package/.output/server/chunks/routes/api/projects/index.get.mjs +1 -1
  223. package/.output/server/chunks/routes/api/projects/index.put.mjs +1 -1
  224. package/.output/server/chunks/routes/api/secrets/_key_.delete.mjs +1 -1
  225. package/.output/server/chunks/routes/api/secrets/_key_.get.mjs +1 -1
  226. package/.output/server/chunks/routes/api/secrets/_key_.put.mjs +1 -1
  227. package/.output/server/chunks/routes/api/tasks/_id/restore.post.mjs +1 -1
  228. package/.output/server/chunks/routes/api/tasks/index.delete.mjs +1 -1
  229. package/.output/server/chunks/routes/api/tasks/index.put.mjs +1 -1
  230. package/.output/server/chunks/routes/api/tasks/tags.get.mjs +1 -1
  231. package/.output/server/chunks/routes/api/usage/stats.get.mjs +130 -0
  232. package/.output/server/chunks/routes/api/usage/stats.get.mjs.map +1 -0
  233. package/.output/server/chunks/routes/api/user/email.patch.mjs +1 -1
  234. package/.output/server/chunks/routes/notifications.mjs +1 -1
  235. package/.output/server/chunks/routes/renderer.mjs +1 -1
  236. package/.output/server/chunks/routes/terminal.mjs +1 -1
  237. package/.output/server/index.mjs +1 -1
  238. package/.output/server/package.json +1 -1
  239. package/app/components/dashboard/RecentChats.vue +93 -0
  240. package/app/components/dashboard/RecentDocs.vue +108 -0
  241. package/app/components/dashboard/StatCards.vue +82 -0
  242. package/app/components/dashboard/UpcomingTasks.vue +119 -0
  243. package/app/components/dashboard/UsageSummary.vue +94 -0
  244. package/app/components/editor/DocumentEditor.vue +5 -3
  245. package/app/components/usage/UsageCostChart.client.vue +174 -0
  246. package/app/components/usage/UsageCostChart.server.vue +22 -0
  247. package/app/components/usage/UsageRecordsTable.vue +249 -0
  248. package/app/components/usage/UsageSourceDonut.client.vue +93 -0
  249. package/app/components/usage/UsageSourceDonut.server.vue +21 -0
  250. package/app/components/usage/UsageStatsCards.vue +101 -0
  251. package/app/components/usage/UsageTopConsumers.vue +89 -0
  252. package/app/composables/useCopyToClipboard.ts +37 -0
  253. package/app/composables/usePreferences.ts +10 -0
  254. package/app/layouts/dashboard.vue +8 -1
  255. package/app/pages/chat.vue +11 -1
  256. package/app/pages/dashboard.vue +65 -64
  257. package/app/pages/usage.vue +130 -0
  258. package/app/pages/view/[uuid].vue +4 -3
  259. package/package.json +1 -1
  260. package/server/api/dashboard/overview.get.ts +133 -0
  261. package/server/api/usage/index.get.ts +69 -0
  262. package/server/api/usage/stats.get.ts +127 -0
  263. package/server/db/schema.ts +17 -0
  264. package/server/drizzle/migrations/0011_tearful_johnny_storm.sql +12 -0
  265. package/server/drizzle/migrations/meta/0011_snapshot.json +1634 -0
  266. package/server/drizzle/migrations/meta/_journal.json +7 -0
  267. package/server/routes/_ws/chat.ts +29 -2
  268. package/server/services/agent-executor.ts +13 -0
  269. package/server/services/memory-extractor.ts +25 -0
  270. package/server/utils/log-token-usage.ts +22 -0
  271. package/shared/types/index.ts +81 -0
  272. package/.output/public/_nuxt/B34UfOg4.js +0 -1
  273. package/.output/public/_nuxt/B3DmiwBX.js +0 -1
  274. package/.output/public/_nuxt/BESViHC6.js +0 -1
  275. package/.output/public/_nuxt/BIm_buQF.js +0 -1
  276. package/.output/public/_nuxt/BMh-dHBK.js +0 -1
  277. package/.output/public/_nuxt/Bkv1Ouue.js +0 -1
  278. package/.output/public/_nuxt/C4i10ReQ.js +0 -1
  279. package/.output/public/_nuxt/C5euqjeX.js +0 -1
  280. package/.output/public/_nuxt/C9hy_rtV.js +0 -1
  281. package/.output/public/_nuxt/CWJhKIyp.js +0 -1
  282. package/.output/public/_nuxt/Ck24Z-8o.js +0 -1
  283. package/.output/public/_nuxt/D1JmZKz7.js +0 -1
  284. package/.output/public/_nuxt/D6xvQUYG.js +0 -1
  285. package/.output/public/_nuxt/DGTbw5AQ.js +0 -1
  286. package/.output/public/_nuxt/Da8Xd1w6.js +0 -1
  287. package/.output/public/_nuxt/DamUHI17.js +0 -1
  288. package/.output/public/_nuxt/DoIiMqKa.js +0 -76
  289. package/.output/public/_nuxt/builds/meta/75ff59f2-0860-4bfc-a288-c670397cae5c.json +0 -1
  290. package/.output/public/_nuxt/entry.tLLAvqs1.css +0 -1
  291. package/.output/public/_nuxt/iJ4KRInq.js +0 -1
  292. package/.output/public/_nuxt/mSr5c6cB.js +0 -1
  293. package/.output/public/_nuxt/r8g_V5AH.js +0 -1
  294. package/.output/public/_nuxt/rZmMQHiC.js +0 -1
  295. package/.output/server/chunks/build/CodeEditorFallback-DfYly7f5.mjs.map +0 -1
  296. package/.output/server/chunks/build/dashboard-DtbGchTa.mjs +0 -277
  297. package/.output/server/chunks/build/dashboard-DtbGchTa.mjs.map +0 -1
  298. package/.output/server/chunks/build/usePreferences-CUvZsOq5.mjs.map +0 -1
  299. /package/.output/public/_nuxt/{language-detection.Be_IvFWy.css → useCopyToClipboard.Be_IvFWy.css} +0 -0
@@ -0,0 +1,1634 @@
1
+ {
2
+ "id": "e6011a9b-7a1b-443d-862e-a2d74eba0fd8",
3
+ "prevId": "cf7a50ed-9cba-4756-85e1-8b2307d1068b",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "user_id": {
18
+ "name": "user_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "account_id": {
24
+ "name": "account_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "provider_id": {
30
+ "name": "provider_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "access_token_expires_at": {
48
+ "name": "access_token_expires_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "refresh_token_expires_at": {
54
+ "name": "refresh_token_expires_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "scope": {
60
+ "name": "scope",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "id_token": {
66
+ "name": "id_token",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp with time zone",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp with time zone",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "default": "now()"
90
+ }
91
+ },
92
+ "indexes": {},
93
+ "foreignKeys": {
94
+ "account_user_id_user_id_fk": {
95
+ "name": "account_user_id_user_id_fk",
96
+ "tableFrom": "account",
97
+ "tableTo": "user",
98
+ "columnsFrom": [
99
+ "user_id"
100
+ ],
101
+ "columnsTo": [
102
+ "id"
103
+ ],
104
+ "onDelete": "cascade",
105
+ "onUpdate": "no action"
106
+ }
107
+ },
108
+ "compositePrimaryKeys": {},
109
+ "uniqueConstraints": {},
110
+ "policies": {},
111
+ "checkConstraints": {},
112
+ "isRLSEnabled": false
113
+ },
114
+ "public.conversation_messages": {
115
+ "name": "conversation_messages",
116
+ "schema": "",
117
+ "columns": {
118
+ "id": {
119
+ "name": "id",
120
+ "type": "uuid",
121
+ "primaryKey": true,
122
+ "notNull": true,
123
+ "default": "gen_random_uuid()"
124
+ },
125
+ "conversation_id": {
126
+ "name": "conversation_id",
127
+ "type": "uuid",
128
+ "primaryKey": false,
129
+ "notNull": true
130
+ },
131
+ "role": {
132
+ "name": "role",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true
136
+ },
137
+ "content": {
138
+ "name": "content",
139
+ "type": "text",
140
+ "primaryKey": false,
141
+ "notNull": true
142
+ },
143
+ "cost_usd": {
144
+ "name": "cost_usd",
145
+ "type": "real",
146
+ "primaryKey": false,
147
+ "notNull": false
148
+ },
149
+ "duration_ms": {
150
+ "name": "duration_ms",
151
+ "type": "integer",
152
+ "primaryKey": false,
153
+ "notNull": false
154
+ },
155
+ "created_at": {
156
+ "name": "created_at",
157
+ "type": "timestamp with time zone",
158
+ "primaryKey": false,
159
+ "notNull": true,
160
+ "default": "now()"
161
+ }
162
+ },
163
+ "indexes": {},
164
+ "foreignKeys": {
165
+ "conversation_messages_conversation_id_conversations_id_fk": {
166
+ "name": "conversation_messages_conversation_id_conversations_id_fk",
167
+ "tableFrom": "conversation_messages",
168
+ "tableTo": "conversations",
169
+ "columnsFrom": [
170
+ "conversation_id"
171
+ ],
172
+ "columnsTo": [
173
+ "id"
174
+ ],
175
+ "onDelete": "cascade",
176
+ "onUpdate": "no action"
177
+ }
178
+ },
179
+ "compositePrimaryKeys": {},
180
+ "uniqueConstraints": {},
181
+ "policies": {},
182
+ "checkConstraints": {},
183
+ "isRLSEnabled": false
184
+ },
185
+ "public.conversations": {
186
+ "name": "conversations",
187
+ "schema": "",
188
+ "columns": {
189
+ "id": {
190
+ "name": "id",
191
+ "type": "uuid",
192
+ "primaryKey": true,
193
+ "notNull": true,
194
+ "default": "gen_random_uuid()"
195
+ },
196
+ "session_id": {
197
+ "name": "session_id",
198
+ "type": "text",
199
+ "primaryKey": false,
200
+ "notNull": true
201
+ },
202
+ "sdk_session_id": {
203
+ "name": "sdk_session_id",
204
+ "type": "text",
205
+ "primaryKey": false,
206
+ "notNull": false
207
+ },
208
+ "title": {
209
+ "name": "title",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": false
213
+ },
214
+ "summary": {
215
+ "name": "summary",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": false
219
+ },
220
+ "status": {
221
+ "name": "status",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": true,
225
+ "default": "'idle'"
226
+ },
227
+ "total_cost_usd": {
228
+ "name": "total_cost_usd",
229
+ "type": "real",
230
+ "primaryKey": false,
231
+ "notNull": true,
232
+ "default": 0
233
+ },
234
+ "started_at": {
235
+ "name": "started_at",
236
+ "type": "timestamp with time zone",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "default": "now()"
240
+ },
241
+ "ended_at": {
242
+ "name": "ended_at",
243
+ "type": "timestamp with time zone",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "message_count": {
248
+ "name": "message_count",
249
+ "type": "integer",
250
+ "primaryKey": false,
251
+ "notNull": true,
252
+ "default": 0
253
+ }
254
+ },
255
+ "indexes": {},
256
+ "foreignKeys": {},
257
+ "compositePrimaryKeys": {},
258
+ "uniqueConstraints": {
259
+ "conversations_session_id_unique": {
260
+ "name": "conversations_session_id_unique",
261
+ "nullsNotDistinct": false,
262
+ "columns": [
263
+ "session_id"
264
+ ]
265
+ }
266
+ },
267
+ "policies": {},
268
+ "checkConstraints": {},
269
+ "isRLSEnabled": false
270
+ },
271
+ "public.cron_agent_runs": {
272
+ "name": "cron_agent_runs",
273
+ "schema": "",
274
+ "columns": {
275
+ "id": {
276
+ "name": "id",
277
+ "type": "uuid",
278
+ "primaryKey": true,
279
+ "notNull": true,
280
+ "default": "gen_random_uuid()"
281
+ },
282
+ "agent_id": {
283
+ "name": "agent_id",
284
+ "type": "uuid",
285
+ "primaryKey": false,
286
+ "notNull": true
287
+ },
288
+ "status": {
289
+ "name": "status",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true
293
+ },
294
+ "output": {
295
+ "name": "output",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": false
299
+ },
300
+ "error": {
301
+ "name": "error",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": false
305
+ },
306
+ "cost_usd": {
307
+ "name": "cost_usd",
308
+ "type": "real",
309
+ "primaryKey": false,
310
+ "notNull": false
311
+ },
312
+ "input_tokens": {
313
+ "name": "input_tokens",
314
+ "type": "integer",
315
+ "primaryKey": false,
316
+ "notNull": false
317
+ },
318
+ "output_tokens": {
319
+ "name": "output_tokens",
320
+ "type": "integer",
321
+ "primaryKey": false,
322
+ "notNull": false
323
+ },
324
+ "num_turns": {
325
+ "name": "num_turns",
326
+ "type": "integer",
327
+ "primaryKey": false,
328
+ "notNull": false
329
+ },
330
+ "started_at": {
331
+ "name": "started_at",
332
+ "type": "timestamp with time zone",
333
+ "primaryKey": false,
334
+ "notNull": true,
335
+ "default": "now()"
336
+ },
337
+ "completed_at": {
338
+ "name": "completed_at",
339
+ "type": "timestamp with time zone",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ },
343
+ "duration_ms": {
344
+ "name": "duration_ms",
345
+ "type": "integer",
346
+ "primaryKey": false,
347
+ "notNull": false
348
+ }
349
+ },
350
+ "indexes": {},
351
+ "foreignKeys": {
352
+ "cron_agent_runs_agent_id_cron_agents_id_fk": {
353
+ "name": "cron_agent_runs_agent_id_cron_agents_id_fk",
354
+ "tableFrom": "cron_agent_runs",
355
+ "tableTo": "cron_agents",
356
+ "columnsFrom": [
357
+ "agent_id"
358
+ ],
359
+ "columnsTo": [
360
+ "id"
361
+ ],
362
+ "onDelete": "cascade",
363
+ "onUpdate": "no action"
364
+ }
365
+ },
366
+ "compositePrimaryKeys": {},
367
+ "uniqueConstraints": {},
368
+ "policies": {},
369
+ "checkConstraints": {},
370
+ "isRLSEnabled": false
371
+ },
372
+ "public.cron_agents": {
373
+ "name": "cron_agents",
374
+ "schema": "",
375
+ "columns": {
376
+ "id": {
377
+ "name": "id",
378
+ "type": "uuid",
379
+ "primaryKey": true,
380
+ "notNull": true,
381
+ "default": "gen_random_uuid()"
382
+ },
383
+ "name": {
384
+ "name": "name",
385
+ "type": "text",
386
+ "primaryKey": false,
387
+ "notNull": true
388
+ },
389
+ "description": {
390
+ "name": "description",
391
+ "type": "text",
392
+ "primaryKey": false,
393
+ "notNull": false
394
+ },
395
+ "schedule": {
396
+ "name": "schedule",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": true
400
+ },
401
+ "prompt": {
402
+ "name": "prompt",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": true
406
+ },
407
+ "enabled": {
408
+ "name": "enabled",
409
+ "type": "boolean",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "default": true
413
+ },
414
+ "max_turns": {
415
+ "name": "max_turns",
416
+ "type": "integer",
417
+ "primaryKey": false,
418
+ "notNull": false,
419
+ "default": 50
420
+ },
421
+ "max_budget_usd": {
422
+ "name": "max_budget_usd",
423
+ "type": "real",
424
+ "primaryKey": false,
425
+ "notNull": false
426
+ },
427
+ "last_run_at": {
428
+ "name": "last_run_at",
429
+ "type": "timestamp with time zone",
430
+ "primaryKey": false,
431
+ "notNull": false
432
+ },
433
+ "last_status": {
434
+ "name": "last_status",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": false
438
+ },
439
+ "created_at": {
440
+ "name": "created_at",
441
+ "type": "timestamp with time zone",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "default": "now()"
445
+ },
446
+ "updated_at": {
447
+ "name": "updated_at",
448
+ "type": "timestamp with time zone",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "default": "now()"
452
+ },
453
+ "created_by": {
454
+ "name": "created_by",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false
458
+ }
459
+ },
460
+ "indexes": {},
461
+ "foreignKeys": {
462
+ "cron_agents_created_by_user_id_fk": {
463
+ "name": "cron_agents_created_by_user_id_fk",
464
+ "tableFrom": "cron_agents",
465
+ "tableTo": "user",
466
+ "columnsFrom": [
467
+ "created_by"
468
+ ],
469
+ "columnsTo": [
470
+ "id"
471
+ ],
472
+ "onDelete": "set null",
473
+ "onUpdate": "no action"
474
+ }
475
+ },
476
+ "compositePrimaryKeys": {},
477
+ "uniqueConstraints": {},
478
+ "policies": {},
479
+ "checkConstraints": {},
480
+ "isRLSEnabled": false
481
+ },
482
+ "public.documents": {
483
+ "name": "documents",
484
+ "schema": "",
485
+ "columns": {
486
+ "id": {
487
+ "name": "id",
488
+ "type": "uuid",
489
+ "primaryKey": true,
490
+ "notNull": true,
491
+ "default": "gen_random_uuid()"
492
+ },
493
+ "title": {
494
+ "name": "title",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": true
498
+ },
499
+ "path": {
500
+ "name": "path",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true
504
+ },
505
+ "content": {
506
+ "name": "content",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false
510
+ },
511
+ "content_hash": {
512
+ "name": "content_hash",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": false
516
+ },
517
+ "tags": {
518
+ "name": "tags",
519
+ "type": "text[]",
520
+ "primaryKey": false,
521
+ "notNull": false,
522
+ "default": "'{}'"
523
+ },
524
+ "project_id": {
525
+ "name": "project_id",
526
+ "type": "uuid",
527
+ "primaryKey": false,
528
+ "notNull": false
529
+ },
530
+ "shared": {
531
+ "name": "shared",
532
+ "type": "boolean",
533
+ "primaryKey": false,
534
+ "notNull": true,
535
+ "default": false
536
+ },
537
+ "share_type": {
538
+ "name": "share_type",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": false
542
+ },
543
+ "file_type": {
544
+ "name": "file_type",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": true
548
+ },
549
+ "mime_type": {
550
+ "name": "mime_type",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": false
554
+ },
555
+ "synced_at": {
556
+ "name": "synced_at",
557
+ "type": "timestamp with time zone",
558
+ "primaryKey": false,
559
+ "notNull": false
560
+ },
561
+ "created_at": {
562
+ "name": "created_at",
563
+ "type": "timestamp with time zone",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "default": "now()"
567
+ },
568
+ "created_by": {
569
+ "name": "created_by",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": false
573
+ },
574
+ "modified_at": {
575
+ "name": "modified_at",
576
+ "type": "timestamp with time zone",
577
+ "primaryKey": false,
578
+ "notNull": false
579
+ },
580
+ "modified_by": {
581
+ "name": "modified_by",
582
+ "type": "text",
583
+ "primaryKey": false,
584
+ "notNull": false
585
+ },
586
+ "deleted_at": {
587
+ "name": "deleted_at",
588
+ "type": "timestamp with time zone",
589
+ "primaryKey": false,
590
+ "notNull": false
591
+ },
592
+ "deleted_by": {
593
+ "name": "deleted_by",
594
+ "type": "text",
595
+ "primaryKey": false,
596
+ "notNull": false
597
+ }
598
+ },
599
+ "indexes": {},
600
+ "foreignKeys": {
601
+ "documents_project_id_projects_id_fk": {
602
+ "name": "documents_project_id_projects_id_fk",
603
+ "tableFrom": "documents",
604
+ "tableTo": "projects",
605
+ "columnsFrom": [
606
+ "project_id"
607
+ ],
608
+ "columnsTo": [
609
+ "id"
610
+ ],
611
+ "onDelete": "set null",
612
+ "onUpdate": "no action"
613
+ },
614
+ "documents_created_by_user_id_fk": {
615
+ "name": "documents_created_by_user_id_fk",
616
+ "tableFrom": "documents",
617
+ "tableTo": "user",
618
+ "columnsFrom": [
619
+ "created_by"
620
+ ],
621
+ "columnsTo": [
622
+ "id"
623
+ ],
624
+ "onDelete": "set null",
625
+ "onUpdate": "no action"
626
+ },
627
+ "documents_modified_by_user_id_fk": {
628
+ "name": "documents_modified_by_user_id_fk",
629
+ "tableFrom": "documents",
630
+ "tableTo": "user",
631
+ "columnsFrom": [
632
+ "modified_by"
633
+ ],
634
+ "columnsTo": [
635
+ "id"
636
+ ],
637
+ "onDelete": "set null",
638
+ "onUpdate": "no action"
639
+ },
640
+ "documents_deleted_by_user_id_fk": {
641
+ "name": "documents_deleted_by_user_id_fk",
642
+ "tableFrom": "documents",
643
+ "tableTo": "user",
644
+ "columnsFrom": [
645
+ "deleted_by"
646
+ ],
647
+ "columnsTo": [
648
+ "id"
649
+ ],
650
+ "onDelete": "set null",
651
+ "onUpdate": "no action"
652
+ }
653
+ },
654
+ "compositePrimaryKeys": {},
655
+ "uniqueConstraints": {
656
+ "documents_path_unique": {
657
+ "name": "documents_path_unique",
658
+ "nullsNotDistinct": false,
659
+ "columns": [
660
+ "path"
661
+ ]
662
+ }
663
+ },
664
+ "policies": {},
665
+ "checkConstraints": {},
666
+ "isRLSEnabled": false
667
+ },
668
+ "public.hook_events": {
669
+ "name": "hook_events",
670
+ "schema": "",
671
+ "columns": {
672
+ "id": {
673
+ "name": "id",
674
+ "type": "uuid",
675
+ "primaryKey": true,
676
+ "notNull": true,
677
+ "default": "gen_random_uuid()"
678
+ },
679
+ "event_type": {
680
+ "name": "event_type",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true
684
+ },
685
+ "session_id": {
686
+ "name": "session_id",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": false
690
+ },
691
+ "project_dir": {
692
+ "name": "project_dir",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": false
696
+ },
697
+ "tool_name": {
698
+ "name": "tool_name",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": false
702
+ },
703
+ "tool_matcher": {
704
+ "name": "tool_matcher",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": false
708
+ },
709
+ "event_data": {
710
+ "name": "event_data",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": false
714
+ },
715
+ "exit_code": {
716
+ "name": "exit_code",
717
+ "type": "integer",
718
+ "primaryKey": false,
719
+ "notNull": false
720
+ },
721
+ "blocked": {
722
+ "name": "blocked",
723
+ "type": "boolean",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "default": false
727
+ },
728
+ "block_reason": {
729
+ "name": "block_reason",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": false
733
+ },
734
+ "duration_ms": {
735
+ "name": "duration_ms",
736
+ "type": "integer",
737
+ "primaryKey": false,
738
+ "notNull": false
739
+ },
740
+ "hook_script": {
741
+ "name": "hook_script",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "created_at": {
747
+ "name": "created_at",
748
+ "type": "timestamp with time zone",
749
+ "primaryKey": false,
750
+ "notNull": true,
751
+ "default": "now()"
752
+ }
753
+ },
754
+ "indexes": {},
755
+ "foreignKeys": {},
756
+ "compositePrimaryKeys": {},
757
+ "uniqueConstraints": {},
758
+ "policies": {},
759
+ "checkConstraints": {},
760
+ "isRLSEnabled": false
761
+ },
762
+ "public.memory_chunks": {
763
+ "name": "memory_chunks",
764
+ "schema": "",
765
+ "columns": {
766
+ "id": {
767
+ "name": "id",
768
+ "type": "uuid",
769
+ "primaryKey": true,
770
+ "notNull": true,
771
+ "default": "gen_random_uuid()"
772
+ },
773
+ "session_id": {
774
+ "name": "session_id",
775
+ "type": "text",
776
+ "primaryKey": false,
777
+ "notNull": false
778
+ },
779
+ "project_path": {
780
+ "name": "project_path",
781
+ "type": "text",
782
+ "primaryKey": false,
783
+ "notNull": false
784
+ },
785
+ "chunk_type": {
786
+ "name": "chunk_type",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true
790
+ },
791
+ "content": {
792
+ "name": "content",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": true
796
+ },
797
+ "source_excerpt": {
798
+ "name": "source_excerpt",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": false
802
+ },
803
+ "relevance_score": {
804
+ "name": "relevance_score",
805
+ "type": "real",
806
+ "primaryKey": false,
807
+ "notNull": true,
808
+ "default": 1
809
+ },
810
+ "access_count": {
811
+ "name": "access_count",
812
+ "type": "integer",
813
+ "primaryKey": false,
814
+ "notNull": true,
815
+ "default": 0
816
+ },
817
+ "last_accessed_at": {
818
+ "name": "last_accessed_at",
819
+ "type": "timestamp with time zone",
820
+ "primaryKey": false,
821
+ "notNull": false
822
+ },
823
+ "created_at": {
824
+ "name": "created_at",
825
+ "type": "timestamp with time zone",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "default": "now()"
829
+ },
830
+ "expires_at": {
831
+ "name": "expires_at",
832
+ "type": "timestamp with time zone",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ }
836
+ },
837
+ "indexes": {},
838
+ "foreignKeys": {},
839
+ "compositePrimaryKeys": {},
840
+ "uniqueConstraints": {},
841
+ "policies": {},
842
+ "checkConstraints": {},
843
+ "isRLSEnabled": false
844
+ },
845
+ "public.projects": {
846
+ "name": "projects",
847
+ "schema": "",
848
+ "columns": {
849
+ "id": {
850
+ "name": "id",
851
+ "type": "uuid",
852
+ "primaryKey": true,
853
+ "notNull": true,
854
+ "default": "gen_random_uuid()"
855
+ },
856
+ "name": {
857
+ "name": "name",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": true
861
+ },
862
+ "color": {
863
+ "name": "color",
864
+ "type": "text",
865
+ "primaryKey": false,
866
+ "notNull": true
867
+ },
868
+ "description": {
869
+ "name": "description",
870
+ "type": "text",
871
+ "primaryKey": false,
872
+ "notNull": false
873
+ },
874
+ "created_at": {
875
+ "name": "created_at",
876
+ "type": "timestamp with time zone",
877
+ "primaryKey": false,
878
+ "notNull": true,
879
+ "default": "now()"
880
+ },
881
+ "modified_at": {
882
+ "name": "modified_at",
883
+ "type": "timestamp with time zone",
884
+ "primaryKey": false,
885
+ "notNull": false
886
+ },
887
+ "deleted_at": {
888
+ "name": "deleted_at",
889
+ "type": "timestamp with time zone",
890
+ "primaryKey": false,
891
+ "notNull": false
892
+ },
893
+ "created_by": {
894
+ "name": "created_by",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false
898
+ },
899
+ "modified_by": {
900
+ "name": "modified_by",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": false
904
+ },
905
+ "deleted_by": {
906
+ "name": "deleted_by",
907
+ "type": "text",
908
+ "primaryKey": false,
909
+ "notNull": false
910
+ }
911
+ },
912
+ "indexes": {},
913
+ "foreignKeys": {
914
+ "projects_created_by_user_id_fk": {
915
+ "name": "projects_created_by_user_id_fk",
916
+ "tableFrom": "projects",
917
+ "tableTo": "user",
918
+ "columnsFrom": [
919
+ "created_by"
920
+ ],
921
+ "columnsTo": [
922
+ "id"
923
+ ],
924
+ "onDelete": "set null",
925
+ "onUpdate": "no action"
926
+ },
927
+ "projects_modified_by_user_id_fk": {
928
+ "name": "projects_modified_by_user_id_fk",
929
+ "tableFrom": "projects",
930
+ "tableTo": "user",
931
+ "columnsFrom": [
932
+ "modified_by"
933
+ ],
934
+ "columnsTo": [
935
+ "id"
936
+ ],
937
+ "onDelete": "set null",
938
+ "onUpdate": "no action"
939
+ },
940
+ "projects_deleted_by_user_id_fk": {
941
+ "name": "projects_deleted_by_user_id_fk",
942
+ "tableFrom": "projects",
943
+ "tableTo": "user",
944
+ "columnsFrom": [
945
+ "deleted_by"
946
+ ],
947
+ "columnsTo": [
948
+ "id"
949
+ ],
950
+ "onDelete": "set null",
951
+ "onUpdate": "no action"
952
+ }
953
+ },
954
+ "compositePrimaryKeys": {},
955
+ "uniqueConstraints": {},
956
+ "policies": {},
957
+ "checkConstraints": {},
958
+ "isRLSEnabled": false
959
+ },
960
+ "public.reminders": {
961
+ "name": "reminders",
962
+ "schema": "",
963
+ "columns": {
964
+ "id": {
965
+ "name": "id",
966
+ "type": "uuid",
967
+ "primaryKey": true,
968
+ "notNull": true,
969
+ "default": "gen_random_uuid()"
970
+ },
971
+ "task_id": {
972
+ "name": "task_id",
973
+ "type": "uuid",
974
+ "primaryKey": false,
975
+ "notNull": false
976
+ },
977
+ "message": {
978
+ "name": "message",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true
982
+ },
983
+ "remind_at": {
984
+ "name": "remind_at",
985
+ "type": "timestamp with time zone",
986
+ "primaryKey": false,
987
+ "notNull": true
988
+ },
989
+ "notified": {
990
+ "name": "notified",
991
+ "type": "boolean",
992
+ "primaryKey": false,
993
+ "notNull": true,
994
+ "default": false
995
+ },
996
+ "created_at": {
997
+ "name": "created_at",
998
+ "type": "timestamp with time zone",
999
+ "primaryKey": false,
1000
+ "notNull": true,
1001
+ "default": "now()"
1002
+ }
1003
+ },
1004
+ "indexes": {},
1005
+ "foreignKeys": {
1006
+ "reminders_task_id_tasks_id_fk": {
1007
+ "name": "reminders_task_id_tasks_id_fk",
1008
+ "tableFrom": "reminders",
1009
+ "tableTo": "tasks",
1010
+ "columnsFrom": [
1011
+ "task_id"
1012
+ ],
1013
+ "columnsTo": [
1014
+ "id"
1015
+ ],
1016
+ "onDelete": "cascade",
1017
+ "onUpdate": "no action"
1018
+ }
1019
+ },
1020
+ "compositePrimaryKeys": {},
1021
+ "uniqueConstraints": {},
1022
+ "policies": {},
1023
+ "checkConstraints": {},
1024
+ "isRLSEnabled": false
1025
+ },
1026
+ "public.secrets": {
1027
+ "name": "secrets",
1028
+ "schema": "",
1029
+ "columns": {
1030
+ "id": {
1031
+ "name": "id",
1032
+ "type": "uuid",
1033
+ "primaryKey": true,
1034
+ "notNull": true,
1035
+ "default": "gen_random_uuid()"
1036
+ },
1037
+ "key": {
1038
+ "name": "key",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": true
1042
+ },
1043
+ "encrypted_value": {
1044
+ "name": "encrypted_value",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true
1048
+ },
1049
+ "iv": {
1050
+ "name": "iv",
1051
+ "type": "text",
1052
+ "primaryKey": false,
1053
+ "notNull": true
1054
+ },
1055
+ "description": {
1056
+ "name": "description",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": false
1060
+ },
1061
+ "created_at": {
1062
+ "name": "created_at",
1063
+ "type": "timestamp with time zone",
1064
+ "primaryKey": false,
1065
+ "notNull": true,
1066
+ "default": "now()"
1067
+ },
1068
+ "updated_at": {
1069
+ "name": "updated_at",
1070
+ "type": "timestamp with time zone",
1071
+ "primaryKey": false,
1072
+ "notNull": true,
1073
+ "default": "now()"
1074
+ },
1075
+ "created_by": {
1076
+ "name": "created_by",
1077
+ "type": "text",
1078
+ "primaryKey": false,
1079
+ "notNull": false
1080
+ }
1081
+ },
1082
+ "indexes": {},
1083
+ "foreignKeys": {
1084
+ "secrets_created_by_user_id_fk": {
1085
+ "name": "secrets_created_by_user_id_fk",
1086
+ "tableFrom": "secrets",
1087
+ "tableTo": "user",
1088
+ "columnsFrom": [
1089
+ "created_by"
1090
+ ],
1091
+ "columnsTo": [
1092
+ "id"
1093
+ ],
1094
+ "onDelete": "set null",
1095
+ "onUpdate": "no action"
1096
+ }
1097
+ },
1098
+ "compositePrimaryKeys": {},
1099
+ "uniqueConstraints": {
1100
+ "secrets_key_unique": {
1101
+ "name": "secrets_key_unique",
1102
+ "nullsNotDistinct": false,
1103
+ "columns": [
1104
+ "key"
1105
+ ]
1106
+ }
1107
+ },
1108
+ "policies": {},
1109
+ "checkConstraints": {},
1110
+ "isRLSEnabled": false
1111
+ },
1112
+ "public.session": {
1113
+ "name": "session",
1114
+ "schema": "",
1115
+ "columns": {
1116
+ "id": {
1117
+ "name": "id",
1118
+ "type": "text",
1119
+ "primaryKey": true,
1120
+ "notNull": true
1121
+ },
1122
+ "user_id": {
1123
+ "name": "user_id",
1124
+ "type": "text",
1125
+ "primaryKey": false,
1126
+ "notNull": true
1127
+ },
1128
+ "token": {
1129
+ "name": "token",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": true
1133
+ },
1134
+ "expires_at": {
1135
+ "name": "expires_at",
1136
+ "type": "timestamp with time zone",
1137
+ "primaryKey": false,
1138
+ "notNull": true
1139
+ },
1140
+ "ip_address": {
1141
+ "name": "ip_address",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": false
1145
+ },
1146
+ "user_agent": {
1147
+ "name": "user_agent",
1148
+ "type": "text",
1149
+ "primaryKey": false,
1150
+ "notNull": false
1151
+ },
1152
+ "created_at": {
1153
+ "name": "created_at",
1154
+ "type": "timestamp with time zone",
1155
+ "primaryKey": false,
1156
+ "notNull": true,
1157
+ "default": "now()"
1158
+ },
1159
+ "updated_at": {
1160
+ "name": "updated_at",
1161
+ "type": "timestamp with time zone",
1162
+ "primaryKey": false,
1163
+ "notNull": true,
1164
+ "default": "now()"
1165
+ }
1166
+ },
1167
+ "indexes": {},
1168
+ "foreignKeys": {
1169
+ "session_user_id_user_id_fk": {
1170
+ "name": "session_user_id_user_id_fk",
1171
+ "tableFrom": "session",
1172
+ "tableTo": "user",
1173
+ "columnsFrom": [
1174
+ "user_id"
1175
+ ],
1176
+ "columnsTo": [
1177
+ "id"
1178
+ ],
1179
+ "onDelete": "cascade",
1180
+ "onUpdate": "no action"
1181
+ }
1182
+ },
1183
+ "compositePrimaryKeys": {},
1184
+ "uniqueConstraints": {
1185
+ "session_token_unique": {
1186
+ "name": "session_token_unique",
1187
+ "nullsNotDistinct": false,
1188
+ "columns": [
1189
+ "token"
1190
+ ]
1191
+ }
1192
+ },
1193
+ "policies": {},
1194
+ "checkConstraints": {},
1195
+ "isRLSEnabled": false
1196
+ },
1197
+ "public.tasks": {
1198
+ "name": "tasks",
1199
+ "schema": "",
1200
+ "columns": {
1201
+ "id": {
1202
+ "name": "id",
1203
+ "type": "uuid",
1204
+ "primaryKey": true,
1205
+ "notNull": true,
1206
+ "default": "gen_random_uuid()"
1207
+ },
1208
+ "title": {
1209
+ "name": "title",
1210
+ "type": "text",
1211
+ "primaryKey": false,
1212
+ "notNull": true
1213
+ },
1214
+ "description": {
1215
+ "name": "description",
1216
+ "type": "text",
1217
+ "primaryKey": false,
1218
+ "notNull": false
1219
+ },
1220
+ "status": {
1221
+ "name": "status",
1222
+ "type": "text",
1223
+ "primaryKey": false,
1224
+ "notNull": true,
1225
+ "default": "'todo'"
1226
+ },
1227
+ "priority": {
1228
+ "name": "priority",
1229
+ "type": "integer",
1230
+ "primaryKey": false,
1231
+ "notNull": true,
1232
+ "default": 2
1233
+ },
1234
+ "project_id": {
1235
+ "name": "project_id",
1236
+ "type": "uuid",
1237
+ "primaryKey": false,
1238
+ "notNull": false
1239
+ },
1240
+ "due_date": {
1241
+ "name": "due_date",
1242
+ "type": "timestamp with time zone",
1243
+ "primaryKey": false,
1244
+ "notNull": false
1245
+ },
1246
+ "tags": {
1247
+ "name": "tags",
1248
+ "type": "text[]",
1249
+ "primaryKey": false,
1250
+ "notNull": false,
1251
+ "default": "'{}'"
1252
+ },
1253
+ "created_at": {
1254
+ "name": "created_at",
1255
+ "type": "timestamp with time zone",
1256
+ "primaryKey": false,
1257
+ "notNull": true,
1258
+ "default": "now()"
1259
+ },
1260
+ "modified_at": {
1261
+ "name": "modified_at",
1262
+ "type": "timestamp with time zone",
1263
+ "primaryKey": false,
1264
+ "notNull": false
1265
+ },
1266
+ "completed_at": {
1267
+ "name": "completed_at",
1268
+ "type": "timestamp with time zone",
1269
+ "primaryKey": false,
1270
+ "notNull": false
1271
+ },
1272
+ "deleted_at": {
1273
+ "name": "deleted_at",
1274
+ "type": "timestamp with time zone",
1275
+ "primaryKey": false,
1276
+ "notNull": false
1277
+ },
1278
+ "created_by": {
1279
+ "name": "created_by",
1280
+ "type": "text",
1281
+ "primaryKey": false,
1282
+ "notNull": false
1283
+ },
1284
+ "modified_by": {
1285
+ "name": "modified_by",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": false
1289
+ },
1290
+ "deleted_by": {
1291
+ "name": "deleted_by",
1292
+ "type": "text",
1293
+ "primaryKey": false,
1294
+ "notNull": false
1295
+ }
1296
+ },
1297
+ "indexes": {},
1298
+ "foreignKeys": {
1299
+ "tasks_project_id_projects_id_fk": {
1300
+ "name": "tasks_project_id_projects_id_fk",
1301
+ "tableFrom": "tasks",
1302
+ "tableTo": "projects",
1303
+ "columnsFrom": [
1304
+ "project_id"
1305
+ ],
1306
+ "columnsTo": [
1307
+ "id"
1308
+ ],
1309
+ "onDelete": "set null",
1310
+ "onUpdate": "no action"
1311
+ },
1312
+ "tasks_created_by_user_id_fk": {
1313
+ "name": "tasks_created_by_user_id_fk",
1314
+ "tableFrom": "tasks",
1315
+ "tableTo": "user",
1316
+ "columnsFrom": [
1317
+ "created_by"
1318
+ ],
1319
+ "columnsTo": [
1320
+ "id"
1321
+ ],
1322
+ "onDelete": "set null",
1323
+ "onUpdate": "no action"
1324
+ },
1325
+ "tasks_modified_by_user_id_fk": {
1326
+ "name": "tasks_modified_by_user_id_fk",
1327
+ "tableFrom": "tasks",
1328
+ "tableTo": "user",
1329
+ "columnsFrom": [
1330
+ "modified_by"
1331
+ ],
1332
+ "columnsTo": [
1333
+ "id"
1334
+ ],
1335
+ "onDelete": "set null",
1336
+ "onUpdate": "no action"
1337
+ },
1338
+ "tasks_deleted_by_user_id_fk": {
1339
+ "name": "tasks_deleted_by_user_id_fk",
1340
+ "tableFrom": "tasks",
1341
+ "tableTo": "user",
1342
+ "columnsFrom": [
1343
+ "deleted_by"
1344
+ ],
1345
+ "columnsTo": [
1346
+ "id"
1347
+ ],
1348
+ "onDelete": "set null",
1349
+ "onUpdate": "no action"
1350
+ }
1351
+ },
1352
+ "compositePrimaryKeys": {},
1353
+ "uniqueConstraints": {},
1354
+ "policies": {},
1355
+ "checkConstraints": {},
1356
+ "isRLSEnabled": false
1357
+ },
1358
+ "public.token_usage": {
1359
+ "name": "token_usage",
1360
+ "schema": "",
1361
+ "columns": {
1362
+ "id": {
1363
+ "name": "id",
1364
+ "type": "uuid",
1365
+ "primaryKey": true,
1366
+ "notNull": true,
1367
+ "default": "gen_random_uuid()"
1368
+ },
1369
+ "source": {
1370
+ "name": "source",
1371
+ "type": "text",
1372
+ "primaryKey": false,
1373
+ "notNull": true
1374
+ },
1375
+ "source_id": {
1376
+ "name": "source_id",
1377
+ "type": "text",
1378
+ "primaryKey": false,
1379
+ "notNull": false
1380
+ },
1381
+ "source_name": {
1382
+ "name": "source_name",
1383
+ "type": "text",
1384
+ "primaryKey": false,
1385
+ "notNull": false
1386
+ },
1387
+ "input_tokens": {
1388
+ "name": "input_tokens",
1389
+ "type": "integer",
1390
+ "primaryKey": false,
1391
+ "notNull": true,
1392
+ "default": 0
1393
+ },
1394
+ "output_tokens": {
1395
+ "name": "output_tokens",
1396
+ "type": "integer",
1397
+ "primaryKey": false,
1398
+ "notNull": true,
1399
+ "default": 0
1400
+ },
1401
+ "cost_usd": {
1402
+ "name": "cost_usd",
1403
+ "type": "real",
1404
+ "primaryKey": false,
1405
+ "notNull": true,
1406
+ "default": 0
1407
+ },
1408
+ "duration_ms": {
1409
+ "name": "duration_ms",
1410
+ "type": "integer",
1411
+ "primaryKey": false,
1412
+ "notNull": false
1413
+ },
1414
+ "num_turns": {
1415
+ "name": "num_turns",
1416
+ "type": "integer",
1417
+ "primaryKey": false,
1418
+ "notNull": false
1419
+ },
1420
+ "created_at": {
1421
+ "name": "created_at",
1422
+ "type": "timestamp with time zone",
1423
+ "primaryKey": false,
1424
+ "notNull": true,
1425
+ "default": "now()"
1426
+ }
1427
+ },
1428
+ "indexes": {},
1429
+ "foreignKeys": {},
1430
+ "compositePrimaryKeys": {},
1431
+ "uniqueConstraints": {},
1432
+ "policies": {},
1433
+ "checkConstraints": {},
1434
+ "isRLSEnabled": false
1435
+ },
1436
+ "public.user": {
1437
+ "name": "user",
1438
+ "schema": "",
1439
+ "columns": {
1440
+ "id": {
1441
+ "name": "id",
1442
+ "type": "text",
1443
+ "primaryKey": true,
1444
+ "notNull": true
1445
+ },
1446
+ "name": {
1447
+ "name": "name",
1448
+ "type": "text",
1449
+ "primaryKey": false,
1450
+ "notNull": true
1451
+ },
1452
+ "email": {
1453
+ "name": "email",
1454
+ "type": "text",
1455
+ "primaryKey": false,
1456
+ "notNull": true
1457
+ },
1458
+ "email_verified": {
1459
+ "name": "email_verified",
1460
+ "type": "boolean",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "default": false
1464
+ },
1465
+ "image": {
1466
+ "name": "image",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": false
1470
+ },
1471
+ "created_at": {
1472
+ "name": "created_at",
1473
+ "type": "timestamp with time zone",
1474
+ "primaryKey": false,
1475
+ "notNull": true,
1476
+ "default": "now()"
1477
+ },
1478
+ "updated_at": {
1479
+ "name": "updated_at",
1480
+ "type": "timestamp with time zone",
1481
+ "primaryKey": false,
1482
+ "notNull": true,
1483
+ "default": "now()"
1484
+ }
1485
+ },
1486
+ "indexes": {},
1487
+ "foreignKeys": {},
1488
+ "compositePrimaryKeys": {},
1489
+ "uniqueConstraints": {
1490
+ "user_email_unique": {
1491
+ "name": "user_email_unique",
1492
+ "nullsNotDistinct": false,
1493
+ "columns": [
1494
+ "email"
1495
+ ]
1496
+ }
1497
+ },
1498
+ "policies": {},
1499
+ "checkConstraints": {},
1500
+ "isRLSEnabled": false
1501
+ },
1502
+ "public.user_settings": {
1503
+ "name": "user_settings",
1504
+ "schema": "",
1505
+ "columns": {
1506
+ "id": {
1507
+ "name": "id",
1508
+ "type": "uuid",
1509
+ "primaryKey": true,
1510
+ "notNull": true,
1511
+ "default": "gen_random_uuid()"
1512
+ },
1513
+ "user_id": {
1514
+ "name": "user_id",
1515
+ "type": "text",
1516
+ "primaryKey": false,
1517
+ "notNull": true
1518
+ },
1519
+ "settings": {
1520
+ "name": "settings",
1521
+ "type": "text",
1522
+ "primaryKey": false,
1523
+ "notNull": true,
1524
+ "default": "'{}'"
1525
+ },
1526
+ "created_at": {
1527
+ "name": "created_at",
1528
+ "type": "timestamp with time zone",
1529
+ "primaryKey": false,
1530
+ "notNull": true,
1531
+ "default": "now()"
1532
+ },
1533
+ "updated_at": {
1534
+ "name": "updated_at",
1535
+ "type": "timestamp with time zone",
1536
+ "primaryKey": false,
1537
+ "notNull": true,
1538
+ "default": "now()"
1539
+ }
1540
+ },
1541
+ "indexes": {},
1542
+ "foreignKeys": {
1543
+ "user_settings_user_id_user_id_fk": {
1544
+ "name": "user_settings_user_id_user_id_fk",
1545
+ "tableFrom": "user_settings",
1546
+ "tableTo": "user",
1547
+ "columnsFrom": [
1548
+ "user_id"
1549
+ ],
1550
+ "columnsTo": [
1551
+ "id"
1552
+ ],
1553
+ "onDelete": "cascade",
1554
+ "onUpdate": "no action"
1555
+ }
1556
+ },
1557
+ "compositePrimaryKeys": {},
1558
+ "uniqueConstraints": {
1559
+ "user_settings_user_id_unique": {
1560
+ "name": "user_settings_user_id_unique",
1561
+ "nullsNotDistinct": false,
1562
+ "columns": [
1563
+ "user_id"
1564
+ ]
1565
+ }
1566
+ },
1567
+ "policies": {},
1568
+ "checkConstraints": {},
1569
+ "isRLSEnabled": false
1570
+ },
1571
+ "public.verification": {
1572
+ "name": "verification",
1573
+ "schema": "",
1574
+ "columns": {
1575
+ "id": {
1576
+ "name": "id",
1577
+ "type": "text",
1578
+ "primaryKey": true,
1579
+ "notNull": true
1580
+ },
1581
+ "identifier": {
1582
+ "name": "identifier",
1583
+ "type": "text",
1584
+ "primaryKey": false,
1585
+ "notNull": true
1586
+ },
1587
+ "value": {
1588
+ "name": "value",
1589
+ "type": "text",
1590
+ "primaryKey": false,
1591
+ "notNull": true
1592
+ },
1593
+ "expires_at": {
1594
+ "name": "expires_at",
1595
+ "type": "timestamp with time zone",
1596
+ "primaryKey": false,
1597
+ "notNull": true
1598
+ },
1599
+ "created_at": {
1600
+ "name": "created_at",
1601
+ "type": "timestamp with time zone",
1602
+ "primaryKey": false,
1603
+ "notNull": true,
1604
+ "default": "now()"
1605
+ },
1606
+ "updated_at": {
1607
+ "name": "updated_at",
1608
+ "type": "timestamp with time zone",
1609
+ "primaryKey": false,
1610
+ "notNull": true,
1611
+ "default": "now()"
1612
+ }
1613
+ },
1614
+ "indexes": {},
1615
+ "foreignKeys": {},
1616
+ "compositePrimaryKeys": {},
1617
+ "uniqueConstraints": {},
1618
+ "policies": {},
1619
+ "checkConstraints": {},
1620
+ "isRLSEnabled": false
1621
+ }
1622
+ },
1623
+ "enums": {},
1624
+ "schemas": {},
1625
+ "sequences": {},
1626
+ "roles": {},
1627
+ "policies": {},
1628
+ "views": {},
1629
+ "_meta": {
1630
+ "columns": {},
1631
+ "schemas": {},
1632
+ "tables": {}
1633
+ }
1634
+ }