chat-js 1.0.0-alpha.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 (1145) hide show
  1. package/README.md +141 -0
  2. package/dist/index.js +74613 -0
  3. package/package.json +71 -0
  4. package/templates/chat-app/.env.example +92 -0
  5. package/templates/chat-app/AGENTS.md +66 -0
  6. package/templates/chat-app/CHANGELOG.md +25 -0
  7. package/templates/chat-app/agent/agent.ts +54 -0
  8. package/templates/chat-app/agent/channels/eve.ts +27 -0
  9. package/templates/chat-app/agent/hooks/activity.ts +37 -0
  10. package/templates/chat-app/agent/hooks/billing.ts +60 -0
  11. package/templates/chat-app/agent/hooks/conversation.ts +34 -0
  12. package/templates/chat-app/agent/hooks/followup-suggestions.ts +2 -0
  13. package/templates/chat-app/agent/hooks/persistent-sandbox.ts +14 -0
  14. package/templates/chat-app/agent/hooks/projects.ts +2 -0
  15. package/templates/chat-app/agent/hooks/search.ts +2 -0
  16. package/templates/chat-app/agent/hooks/tool-selection.ts +23 -0
  17. package/templates/chat-app/agent/instructions/chat.ts +14 -0
  18. package/templates/chat-app/agent/instructions/projects.ts +2 -0
  19. package/templates/chat-app/agent/instructions/tool-selection.ts +23 -0
  20. package/templates/chat-app/agent/sandbox.ts +6 -0
  21. package/templates/chat-app/agent/tools/installed.ts +17 -0
  22. package/templates/chat-app/agent/tools/mcp.ts +2 -0
  23. package/templates/chat-app/app/(auth)/device-login/page.tsx +2 -0
  24. package/templates/chat-app/app/(auth)/login/page.tsx +46 -0
  25. package/templates/chat-app/app/(auth)/register/page.tsx +30 -0
  26. package/templates/chat-app/app/(chat)/api/files/[key]/route.test.ts +78 -0
  27. package/templates/chat-app/app/(chat)/api/files/[key]/route.ts +27 -0
  28. package/templates/chat-app/app/(chat)/api/files/upload/route.ts +2 -0
  29. package/templates/chat-app/app/(chat)/chat/[id]/page.tsx +32 -0
  30. package/templates/chat-app/app/(chat)/layout.tsx +113 -0
  31. package/templates/chat-app/app/(chat)/loading.tsx +11 -0
  32. package/templates/chat-app/app/(chat)/page.tsx +11 -0
  33. package/templates/chat-app/app/(chat)/project/[projectId]/chat/[chatId]/page.tsx +2 -0
  34. package/templates/chat-app/app/(chat)/project/[projectId]/page.tsx +2 -0
  35. package/templates/chat-app/app/(chat)/settings/connectors/[connectorId]/page.tsx +8 -0
  36. package/templates/chat-app/app/(chat)/settings/connectors/page.tsx +6 -0
  37. package/templates/chat-app/app/(chat)/settings/layout.tsx +53 -0
  38. package/templates/chat-app/app/(chat)/settings/loading.tsx +11 -0
  39. package/templates/chat-app/app/(chat)/settings/models/page.tsx +2 -0
  40. package/templates/chat-app/app/(chat)/settings/page.tsx +14 -0
  41. package/templates/chat-app/app/(chat)/share/[id]/page.tsx +25 -0
  42. package/templates/chat-app/app/actions/get-chat-models.ts +6 -0
  43. package/templates/chat-app/app/api/agent-conversation-copies/route.test.ts +190 -0
  44. package/templates/chat-app/app/api/agent-conversation-copies/route.ts +105 -0
  45. package/templates/chat-app/app/api/agent-conversations/[id]/route.test.ts +139 -0
  46. package/templates/chat-app/app/api/agent-conversations/[id]/route.ts +155 -0
  47. package/templates/chat-app/app/api/agent-conversations/route.test.ts +103 -0
  48. package/templates/chat-app/app/api/agent-conversations/route.ts +54 -0
  49. package/templates/chat-app/app/api/agent-response-groups/[id]/route.ts +34 -0
  50. package/templates/chat-app/app/api/agent-response-groups/route.test.ts +147 -0
  51. package/templates/chat-app/app/api/agent-response-groups/route.ts +77 -0
  52. package/templates/chat-app/app/api/agent-workspaces/[id]/route.test.ts +92 -0
  53. package/templates/chat-app/app/api/agent-workspaces/[id]/route.ts +52 -0
  54. package/templates/chat-app/app/api/auth/[...all]/route.ts +4 -0
  55. package/templates/chat-app/app/api/chat-model/route.ts +43 -0
  56. package/templates/chat-app/app/api/cron/cleanup/route.ts +26 -0
  57. package/templates/chat-app/app/api/dev-login/route.test.ts +159 -0
  58. package/templates/chat-app/app/api/dev-login/route.ts +142 -0
  59. package/templates/chat-app/app/api/eve/[...path]/relay-response.ts +20 -0
  60. package/templates/chat-app/app/api/eve/[...path]/route.test.ts +230 -0
  61. package/templates/chat-app/app/api/eve/[...path]/route.ts +327 -0
  62. package/templates/chat-app/app/api/eve-guest/route.ts +2 -0
  63. package/templates/chat-app/app/api/health/route.test.ts +91 -0
  64. package/templates/chat-app/app/api/health/route.ts +58 -0
  65. package/templates/chat-app/app/api/mcp/oauth/callback/route.ts +2 -0
  66. package/templates/chat-app/app/api/trpc/[trpc]/route.ts +17 -0
  67. package/templates/chat-app/app/apple-icon.png +0 -0
  68. package/templates/chat-app/app/chatjs.css +178 -0
  69. package/templates/chat-app/app/editor.css +53 -0
  70. package/templates/chat-app/app/favicon.ico +0 -0
  71. package/templates/chat-app/app/globals.css +141 -0
  72. package/templates/chat-app/app/icon.svg +3 -0
  73. package/templates/chat-app/app/layout.tsx +121 -0
  74. package/templates/chat-app/app/loading.tsx +11 -0
  75. package/templates/chat-app/app/manifest.ts +22 -0
  76. package/templates/chat-app/app/not-found.tsx +25 -0
  77. package/templates/chat-app/app/opengraph-image.png +0 -0
  78. package/templates/chat-app/app/privacy/page.tsx +153 -0
  79. package/templates/chat-app/app/sitemap.ts +19 -0
  80. package/templates/chat-app/app/terms/page.tsx +270 -0
  81. package/templates/chat-app/chat.config.ts +134 -0
  82. package/templates/chat-app/chatjs/core/authentication/contracts.ts +19 -0
  83. package/templates/chat-app/chatjs/core/billing/compose.test.ts +25 -0
  84. package/templates/chat-app/chatjs/core/billing/compose.ts +24 -0
  85. package/templates/chat-app/chatjs/core/billing/contracts.ts +11 -0
  86. package/templates/chat-app/chatjs/core/chat/compose.test.ts +61 -0
  87. package/templates/chat-app/chatjs/core/chat/compose.ts +67 -0
  88. package/templates/chat-app/chatjs/core/chat/contracts.ts +83 -0
  89. package/templates/chat-app/chatjs/core/documents/compose-views.ts +12 -0
  90. package/templates/chat-app/chatjs/core/documents/contracts.ts +91 -0
  91. package/templates/chat-app/chatjs/core/documents/document-definition.test.ts +60 -0
  92. package/templates/chat-app/chatjs/core/documents/document-definition.ts +55 -0
  93. package/templates/chat-app/chatjs/core/documents/ui.ts +67 -0
  94. package/templates/chat-app/chatjs/core/installation/contracts.ts +45 -0
  95. package/templates/chat-app/chatjs/core/installation/plugin.ts +13 -0
  96. package/templates/chat-app/chatjs/core/installation/select.ts +10 -0
  97. package/templates/chat-app/chatjs/core/session/contracts.ts +32 -0
  98. package/templates/chat-app/chatjs/core/tools/define-renderer.tsx +191 -0
  99. package/templates/chat-app/chatjs/core/tools/tool-contract.test.tsx +97 -0
  100. package/templates/chat-app/chatjs/core/tools/tool-definition.test.ts +29 -0
  101. package/templates/chat-app/chatjs/core/tools/tool-definition.ts +30 -0
  102. package/templates/chat-app/chatjs/core/tools/validate-output.ts +10 -0
  103. package/templates/chat-app/chatjs/core/ui/slots.tsx +91 -0
  104. package/templates/chat-app/chatjs/core/uploads/use-attachment-picker.ts +83 -0
  105. package/templates/chat-app/chatjs/generated/code-executor.ts +6 -0
  106. package/templates/chat-app/chatjs/generated/composer-tools.ts +17 -0
  107. package/templates/chat-app/chatjs/generated/document-run.ts +12 -0
  108. package/templates/chat-app/chatjs/generated/document-ui.ts +7 -0
  109. package/templates/chat-app/chatjs/generated/documents.ts +6 -0
  110. package/templates/chat-app/chatjs/generated/installed-auth-ui.ts +5 -0
  111. package/templates/chat-app/chatjs/generated/installed-auth.ts +4 -0
  112. package/templates/chat-app/chatjs/generated/installed-billing.ts +4 -0
  113. package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +23 -0
  114. package/templates/chat-app/chatjs/generated/installed-chat.ts +16 -0
  115. package/templates/chat-app/chatjs/generated/installed-cleanup.ts +6 -0
  116. package/templates/chat-app/chatjs/generated/installed-config.ts +17 -0
  117. package/templates/chat-app/chatjs/generated/installed-database.ts +11 -0
  118. package/templates/chat-app/chatjs/generated/installed-instrumentation.ts +6 -0
  119. package/templates/chat-app/chatjs/generated/installed-layout.ts +11 -0
  120. package/templates/chat-app/chatjs/generated/installed-model-visibility.ts +6 -0
  121. package/templates/chat-app/chatjs/generated/installed-navigation.ts +5 -0
  122. package/templates/chat-app/chatjs/generated/installed-routers.ts +20 -0
  123. package/templates/chat-app/chatjs/generated/installed-session-profiles.ts +6 -0
  124. package/templates/chat-app/chatjs/generated/installed-sign-out.ts +5 -0
  125. package/templates/chat-app/chatjs/generated/installed-signed-out.ts +6 -0
  126. package/templates/chat-app/chatjs/generated/installed-tools.ts +6 -0
  127. package/templates/chat-app/chatjs/generated/installed-uploads.ts +6 -0
  128. package/templates/chat-app/chatjs/generated/installed.ts +18 -0
  129. package/templates/chat-app/chatjs/generated/providers.ts +16 -0
  130. package/templates/chat-app/chatjs/generated/tool-availability.ts +10 -0
  131. package/templates/chat-app/chatjs/generated/tool-definitions.ts +5 -0
  132. package/templates/chat-app/chatjs/generated/tools.ts +34 -0
  133. package/templates/chat-app/chatjs/generated/ui.ts +24 -0
  134. package/templates/chat-app/chatjs/generated/workflow-types.ts +7 -0
  135. package/templates/chat-app/chatjs/plugins/ai-titles/chat.ts +9 -0
  136. package/templates/chat-app/chatjs/plugins/ai-titles/chatjs.json +11 -0
  137. package/templates/chat-app/chatjs/plugins/ai-titles/generate-title.ts +115 -0
  138. package/templates/chat-app/chatjs/plugins/ai-titles/title-queries.ts +59 -0
  139. package/templates/chat-app/chatjs/plugins/attachment-uploads/chatjs.json +23 -0
  140. package/templates/chat-app/chatjs/plugins/attachment-uploads/client-plugin.ts +14 -0
  141. package/templates/chat-app/chatjs/plugins/attachment-uploads/controls.tsx +80 -0
  142. package/templates/chat-app/chatjs/plugins/attachment-uploads/integration.tsx +104 -0
  143. package/templates/chat-app/chatjs/plugins/attachment-uploads/routes/upload.ts +170 -0
  144. package/templates/chat-app/chatjs/plugins/attachment-uploads/upload-prep.ts +115 -0
  145. package/templates/chat-app/chatjs/plugins/attachment-uploads/upload.ts +34 -0
  146. package/templates/chat-app/chatjs/plugins/credits/balance.tsx +23 -0
  147. package/templates/chat-app/chatjs/plugins/credits/billing.ts +19 -0
  148. package/templates/chat-app/chatjs/plugins/credits/chatjs.json +25 -0
  149. package/templates/chat-app/chatjs/plugins/credits/client-plugin.ts +9 -0
  150. package/templates/chat-app/chatjs/plugins/credits/credits-queries.ts +37 -0
  151. package/templates/chat-app/chatjs/plugins/credits/credits-schema.ts +17 -0
  152. package/templates/chat-app/chatjs/plugins/credits/router.ts +15 -0
  153. package/templates/chat-app/chatjs/plugins/credits/server-plugin.ts +5 -0
  154. package/templates/chat-app/chatjs/plugins/credits/use-credits.ts +26 -0
  155. package/templates/chat-app/chatjs/plugins/desktop/auth-form.tsx +81 -0
  156. package/templates/chat-app/chatjs/plugins/desktop/auth-handler.tsx +214 -0
  157. package/templates/chat-app/chatjs/plugins/desktop/auth-server.ts +50 -0
  158. package/templates/chat-app/chatjs/plugins/desktop/auth-ui.tsx +151 -0
  159. package/templates/chat-app/chatjs/plugins/desktop/bridge.ts +45 -0
  160. package/templates/chat-app/chatjs/plugins/desktop/chatjs.json +34 -0
  161. package/templates/chat-app/chatjs/plugins/desktop/client-plugin.ts +9 -0
  162. package/templates/chat-app/chatjs/plugins/desktop/desktop-auth-client.ts +26 -0
  163. package/templates/chat-app/chatjs/plugins/desktop/device-login-page.tsx +211 -0
  164. package/templates/chat-app/chatjs/plugins/desktop/device-login-route.tsx +67 -0
  165. package/templates/chat-app/chatjs/plugins/desktop/electron-auth.ts +78 -0
  166. package/templates/chat-app/chatjs/plugins/desktop/navigation.ts +3 -0
  167. package/templates/chat-app/chatjs/plugins/desktop/protocol.ts +5 -0
  168. package/templates/chat-app/chatjs/plugins/desktop/sign-out.ts +18 -0
  169. package/templates/chat-app/chatjs/plugins/feedback/chat.ts +13 -0
  170. package/templates/chat-app/chatjs/plugins/feedback/chatjs.json +26 -0
  171. package/templates/chat-app/chatjs/plugins/feedback/client-plugin.ts +9 -0
  172. package/templates/chat-app/chatjs/plugins/feedback/feedback-actions.tsx +68 -0
  173. package/templates/chat-app/chatjs/plugins/feedback/feedback-queries.ts +116 -0
  174. package/templates/chat-app/chatjs/plugins/feedback/feedback-schema.ts +15 -0
  175. package/templates/chat-app/chatjs/plugins/feedback/message-vote-actions.tsx +50 -0
  176. package/templates/chat-app/chatjs/plugins/feedback/router.ts +52 -0
  177. package/templates/chat-app/chatjs/plugins/feedback/server-plugin.ts +8 -0
  178. package/templates/chat-app/chatjs/plugins/feedback/vote-message.ts +52 -0
  179. package/templates/chat-app/chatjs/plugins/followup-suggestions/chat.ts +13 -0
  180. package/templates/chat-app/chatjs/plugins/followup-suggestions/chatjs.json +35 -0
  181. package/templates/chat-app/chatjs/plugins/followup-suggestions/client-plugin.ts +9 -0
  182. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-completion.ts +19 -0
  183. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-context.ts +36 -0
  184. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-hook.ts +59 -0
  185. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-queries.ts +79 -0
  186. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-schema.ts +31 -0
  187. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-suggestions-view.tsx +61 -0
  188. package/templates/chat-app/chatjs/plugins/followup-suggestions/generate-suggestions.ts +69 -0
  189. package/templates/chat-app/chatjs/plugins/followup-suggestions/router.ts +31 -0
  190. package/templates/chat-app/chatjs/plugins/followup-suggestions/server-plugin.ts +8 -0
  191. package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestion-output.ts +5 -0
  192. package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestions.tsx +29 -0
  193. package/templates/chat-app/chatjs/plugins/followup-suggestions/use-followups.ts +42 -0
  194. package/templates/chat-app/chatjs/plugins/guest-chat/chatjs.json +33 -0
  195. package/templates/chat-app/chatjs/plugins/guest-chat/cleanup.ts +7 -0
  196. package/templates/chat-app/chatjs/plugins/guest-chat/guest-auth.ts +157 -0
  197. package/templates/chat-app/chatjs/plugins/guest-chat/guest-body.ts +34 -0
  198. package/templates/chat-app/chatjs/plugins/guest-chat/guest-cleanup-auth.ts +19 -0
  199. package/templates/chat-app/chatjs/plugins/guest-chat/guest-cleanup.ts +139 -0
  200. package/templates/chat-app/chatjs/plugins/guest-chat/guest-credential.ts +89 -0
  201. package/templates/chat-app/chatjs/plugins/guest-chat/guest-ip.ts +79 -0
  202. package/templates/chat-app/chatjs/plugins/guest-chat/guest-model.ts +106 -0
  203. package/templates/chat-app/chatjs/plugins/guest-chat/guest-policy.ts +20 -0
  204. package/templates/chat-app/chatjs/plugins/guest-chat/guest-queries.ts +303 -0
  205. package/templates/chat-app/chatjs/plugins/guest-chat/guest-scheduler.ts +114 -0
  206. package/templates/chat-app/chatjs/plugins/guest-chat/guest-schema.ts +74 -0
  207. package/templates/chat-app/chatjs/plugins/guest-chat/routes/create-session.ts +141 -0
  208. package/templates/chat-app/chatjs/plugins/guest-chat/server-plugin.ts +12 -0
  209. package/templates/chat-app/chatjs/plugins/guest-chat/session-profile.ts +11 -0
  210. package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +363 -0
  211. package/templates/chat-app/chatjs/plugins/langfuse/chatjs.json +14 -0
  212. package/templates/chat-app/chatjs/plugins/langfuse/credentials.ts +22 -0
  213. package/templates/chat-app/chatjs/plugins/langfuse/instrumentation.ts +22 -0
  214. package/templates/chat-app/chatjs/plugins/langfuse/server-plugin.ts +5 -0
  215. package/templates/chat-app/chatjs/plugins/mcp/chatjs.json +55 -0
  216. package/templates/chat-app/chatjs/plugins/mcp/client-plugin.ts +13 -0
  217. package/templates/chat-app/chatjs/plugins/mcp/composer.tsx +143 -0
  218. package/templates/chat-app/chatjs/plugins/mcp/connector-menu-item.tsx +25 -0
  219. package/templates/chat-app/chatjs/plugins/mcp/db/encrypted-text.ts +78 -0
  220. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-connector-queries.ts +161 -0
  221. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-oauth-lock.ts +118 -0
  222. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-oauth-queries.ts +282 -0
  223. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-queries.ts +21 -0
  224. package/templates/chat-app/chatjs/plugins/mcp/db/mcp-schema.ts +81 -0
  225. package/templates/chat-app/chatjs/plugins/mcp/mcp-env.ts +26 -0
  226. package/templates/chat-app/chatjs/plugins/mcp/oauth/cache.ts +147 -0
  227. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-client-manager.ts +95 -0
  228. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-client.ts +477 -0
  229. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-fetch.ts +43 -0
  230. package/templates/chat-app/chatjs/plugins/mcp/oauth/mcp-oauth-provider.ts +565 -0
  231. package/templates/chat-app/chatjs/plugins/mcp/oauth/oauth-authorization-required-error.ts +33 -0
  232. package/templates/chat-app/chatjs/plugins/mcp/router.ts +852 -0
  233. package/templates/chat-app/chatjs/plugins/mcp/routes/connector-page.tsx +72 -0
  234. package/templates/chat-app/chatjs/plugins/mcp/routes/connectors-page.tsx +58 -0
  235. package/templates/chat-app/chatjs/plugins/mcp/routes/oauth-callback.ts +180 -0
  236. package/templates/chat-app/chatjs/plugins/mcp/runtime/agent-tools.ts +113 -0
  237. package/templates/chat-app/chatjs/plugins/mcp/runtime/mcp-adapter.ts +94 -0
  238. package/templates/chat-app/chatjs/plugins/mcp/runtime/mcp-tools.ts +459 -0
  239. package/templates/chat-app/chatjs/plugins/mcp/search/mcp-search-params.server.ts +19 -0
  240. package/templates/chat-app/chatjs/plugins/mcp/search/mcp-search-params.ts +16 -0
  241. package/templates/chat-app/chatjs/plugins/mcp/server-plugin.ts +5 -0
  242. package/templates/chat-app/chatjs/plugins/mcp/settings.tsx +10 -0
  243. package/templates/chat-app/chatjs/plugins/mcp/setup.ts +18 -0
  244. package/templates/chat-app/chatjs/plugins/mcp/ui/connector-header.tsx +65 -0
  245. package/templates/chat-app/chatjs/plugins/mcp/ui/connectors-settings.tsx +533 -0
  246. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-connect-dialog.tsx +220 -0
  247. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-create-dialog.tsx +355 -0
  248. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-details-page.tsx +575 -0
  249. package/templates/chat-app/chatjs/plugins/mcp/ui/transport-select.tsx +46 -0
  250. package/templates/chat-app/chatjs/plugins/model-preferences/apply-model-preferences.ts +18 -0
  251. package/templates/chat-app/chatjs/plugins/model-preferences/chatjs.json +31 -0
  252. package/templates/chat-app/chatjs/plugins/model-preferences/client-plugin.ts +11 -0
  253. package/templates/chat-app/chatjs/plugins/model-preferences/model-preferences-queries.ts +40 -0
  254. package/templates/chat-app/chatjs/plugins/model-preferences/model-preferences-schema.ts +36 -0
  255. package/templates/chat-app/chatjs/plugins/model-preferences/model-row.tsx +60 -0
  256. package/templates/chat-app/chatjs/plugins/model-preferences/models-page.tsx +55 -0
  257. package/templates/chat-app/chatjs/plugins/model-preferences/models-settings.tsx +60 -0
  258. package/templates/chat-app/chatjs/plugins/model-preferences/models-table.tsx +198 -0
  259. package/templates/chat-app/chatjs/plugins/model-preferences/router.ts +46 -0
  260. package/templates/chat-app/chatjs/plugins/model-preferences/server-plugin.ts +8 -0
  261. package/templates/chat-app/chatjs/plugins/model-preferences/settings-link.tsx +52 -0
  262. package/templates/chat-app/chatjs/plugins/model-preferences/use-model-preferences.ts +26 -0
  263. package/templates/chat-app/chatjs/plugins/projects/chat.ts +55 -0
  264. package/templates/chat-app/chatjs/plugins/projects/chatjs.json +50 -0
  265. package/templates/chat-app/chatjs/plugins/projects/client-plugin.ts +21 -0
  266. package/templates/chat-app/chatjs/plugins/projects/conversation-hook.ts +44 -0
  267. package/templates/chat-app/chatjs/plugins/projects/creation.ts +28 -0
  268. package/templates/chat-app/chatjs/plugins/projects/db/project-queries.ts +180 -0
  269. package/templates/chat-app/chatjs/plugins/projects/db/project-schema.ts +61 -0
  270. package/templates/chat-app/chatjs/plugins/projects/instructions-state.ts +8 -0
  271. package/templates/chat-app/chatjs/plugins/projects/instructions.ts +19 -0
  272. package/templates/chat-app/chatjs/plugins/projects/project-icons.ts +75 -0
  273. package/templates/chat-app/chatjs/plugins/projects/router.ts +316 -0
  274. package/templates/chat-app/chatjs/plugins/projects/routes/project-chat-page.tsx +37 -0
  275. package/templates/chat-app/chatjs/plugins/projects/routes/project-page.tsx +71 -0
  276. package/templates/chat-app/chatjs/plugins/projects/server-plugin.ts +8 -0
  277. package/templates/chat-app/chatjs/plugins/projects/ui/chat-contributions.tsx +102 -0
  278. package/templates/chat-app/chatjs/plugins/projects/ui/delete-project-dialog.tsx +118 -0
  279. package/templates/chat-app/chatjs/plugins/projects/ui/eve-move-project-dialog.tsx +152 -0
  280. package/templates/chat-app/chatjs/plugins/projects/ui/eve-project-home.tsx +202 -0
  281. package/templates/chat-app/chatjs/plugins/projects/ui/move-menu-item.tsx +22 -0
  282. package/templates/chat-app/chatjs/plugins/projects/ui/project-chat-item.tsx +165 -0
  283. package/templates/chat-app/chatjs/plugins/projects/ui/project-config.tsx +75 -0
  284. package/templates/chat-app/chatjs/plugins/projects/ui/project-details-dialog.tsx +200 -0
  285. package/templates/chat-app/chatjs/plugins/projects/ui/project-history.tsx +57 -0
  286. package/templates/chat-app/chatjs/plugins/projects/ui/project-icon-picker.tsx +101 -0
  287. package/templates/chat-app/chatjs/plugins/projects/ui/project-icon.tsx +92 -0
  288. package/templates/chat-app/chatjs/plugins/projects/ui/project-instructions-dialog.tsx +86 -0
  289. package/templates/chat-app/chatjs/plugins/projects/ui/project-menu-items.tsx +27 -0
  290. package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-project-item.tsx +111 -0
  291. package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-projects.tsx +110 -0
  292. package/templates/chat-app/chatjs/plugins/projects/use-projects.ts +87 -0
  293. package/templates/chat-app/chatjs/plugins/search/backfill.ts +187 -0
  294. package/templates/chat-app/chatjs/plugins/search/chat.ts +14 -0
  295. package/templates/chat-app/chatjs/plugins/search/chatjs.json +34 -0
  296. package/templates/chat-app/chatjs/plugins/search/client-plugin.ts +9 -0
  297. package/templates/chat-app/chatjs/plugins/search/router.ts +46 -0
  298. package/templates/chat-app/chatjs/plugins/search/search-backfill.ts +40 -0
  299. package/templates/chat-app/chatjs/plugins/search/search-chats.tsx +250 -0
  300. package/templates/chat-app/chatjs/plugins/search/search-hook.ts +121 -0
  301. package/templates/chat-app/chatjs/plugins/search/search-queries.ts +298 -0
  302. package/templates/chat-app/chatjs/plugins/search/search-results-view.tsx +215 -0
  303. package/templates/chat-app/chatjs/plugins/search/search-schema.ts +33 -0
  304. package/templates/chat-app/chatjs/plugins/search/search-surface-props.ts +8 -0
  305. package/templates/chat-app/chatjs/plugins/search/search-surface.tsx +28 -0
  306. package/templates/chat-app/chatjs/plugins/search/search-text.ts +60 -0
  307. package/templates/chat-app/chatjs/plugins/search/server-plugin.ts +5 -0
  308. package/templates/chat-app/chatjs/plugins/search/sidebar-item.tsx +13 -0
  309. package/templates/chat-app/chatjs/plugins/search/use-debounced-search.ts +23 -0
  310. package/templates/chat-app/chatjs/plugins/sharing/chat.ts +7 -0
  311. package/templates/chat-app/chatjs/plugins/sharing/chatjs.json +31 -0
  312. package/templates/chat-app/chatjs/plugins/sharing/client-plugin.ts +12 -0
  313. package/templates/chat-app/chatjs/plugins/sharing/public-conversation.ts +48 -0
  314. package/templates/chat-app/chatjs/plugins/sharing/queries.ts +72 -0
  315. package/templates/chat-app/chatjs/plugins/sharing/router.ts +27 -0
  316. package/templates/chat-app/chatjs/plugins/sharing/server-plugin.ts +5 -0
  317. package/templates/chat-app/chatjs/plugins/sharing/ui/chat-contributions.tsx +54 -0
  318. package/templates/chat-app/chatjs/plugins/sharing/ui/share-button.tsx +319 -0
  319. package/templates/chat-app/chatjs/plugins/sharing/ui/share-dialog.tsx +57 -0
  320. package/templates/chat-app/chatjs/plugins/sharing/ui/share-menu-item.tsx +20 -0
  321. package/templates/chat-app/chatjs/plugins/sharing/ui/share-menu-surface.tsx +63 -0
  322. package/templates/chat-app/chatjs/plugins/sharing/ui/shared-badge.tsx +21 -0
  323. package/templates/chat-app/chatjs/plugins/sharing/ui/shared-page.tsx +69 -0
  324. package/templates/chat-app/chatjs/plugins/sharing/ui/transcript-messages.tsx +42 -0
  325. package/templates/chat-app/chatjs/plugins/vercel-analytics/chatjs.json +15 -0
  326. package/templates/chat-app/chatjs/plugins/vercel-analytics/client-plugin.ts +9 -0
  327. package/templates/chat-app/chatjs/plugins/vercel-analytics/component.tsx +5 -0
  328. package/templates/chat-app/chatjs/plugins/vercel-speed-insights/chatjs.json +15 -0
  329. package/templates/chat-app/chatjs/plugins/vercel-speed-insights/client-plugin.ts +9 -0
  330. package/templates/chat-app/chatjs/plugins/vercel-speed-insights/component.tsx +4 -0
  331. package/templates/chat-app/chatjs/providers/gateway-defaults.ts +43 -0
  332. package/templates/chat-app/chatjs/providers/gateway.ts +136 -0
  333. package/templates/chat-app/chatjs/providers/sandbox/adapter.ts +232 -0
  334. package/templates/chat-app/chatjs/providers/sandbox/options.ts +13 -0
  335. package/templates/chat-app/chatjs/providers/sandbox/persistent.ts +258 -0
  336. package/templates/chat-app/chatjs/providers/sandbox/provider.ts +27 -0
  337. package/templates/chat-app/chatjs/providers/sandbox/vercel-sandbox-env.ts +22 -0
  338. package/templates/chat-app/chatjs/providers/storage-options.ts +15 -0
  339. package/templates/chat-app/chatjs/providers/storage.ts +13 -0
  340. package/templates/chat-app/chatjs/tools/_shared/code-execution/code-execution-chart.tsx +83 -0
  341. package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-chart-impl.tsx +290 -0
  342. package/templates/chat-app/chatjs/tools/_shared/code-execution/interactive-charts.tsx +24 -0
  343. package/templates/chat-app/chatjs/tools/_shared/code-execution/javascript.ts +222 -0
  344. package/templates/chat-app/chatjs/tools/_shared/code-execution/python.ts +381 -0
  345. package/templates/chat-app/chatjs/tools/_shared/code-execution/types.ts +27 -0
  346. package/templates/chat-app/chatjs/tools/_shared/lib/define-tool-renderer.test.ts +194 -0
  347. package/templates/chat-app/chatjs/tools/code-documents/assistant-actions.ts +16 -0
  348. package/templates/chat-app/chatjs/tools/code-documents/chatjs.json +20 -0
  349. package/templates/chat-app/chatjs/tools/code-documents/configuration-schema.ts +7 -0
  350. package/templates/chat-app/chatjs/tools/code-documents/definition.ts +9 -0
  351. package/templates/chat-app/chatjs/tools/code-documents/document.tsx +33 -0
  352. package/templates/chat-app/chatjs/tools/code-documents/editor.tsx +144 -0
  353. package/templates/chat-app/chatjs/tools/code-documents/guidelines.ts +15 -0
  354. package/templates/chat-app/chatjs/tools/code-documents/tool.ts +54 -0
  355. package/templates/chat-app/chatjs/tools/code-execution/chatjs.json +21 -0
  356. package/templates/chat-app/chatjs/tools/code-execution/python.test.ts +207 -0
  357. package/templates/chat-app/chatjs/tools/code-execution/renderer.test.tsx +142 -0
  358. package/templates/chat-app/chatjs/tools/code-execution/renderer.tsx +68 -0
  359. package/templates/chat-app/chatjs/tools/code-execution/schemas.ts +23 -0
  360. package/templates/chat-app/chatjs/tools/code-execution/tool.ts +93 -0
  361. package/templates/chat-app/chatjs/tools/deep-research/agent.ts +18 -0
  362. package/templates/chat-app/chatjs/tools/deep-research/availability.ts +23 -0
  363. package/templates/chat-app/chatjs/tools/deep-research/chatjs.json +21 -0
  364. package/templates/chat-app/chatjs/tools/deep-research/configuration-schema.ts +36 -0
  365. package/templates/chat-app/chatjs/tools/deep-research/configuration.ts +22 -0
  366. package/templates/chat-app/chatjs/tools/deep-research/progress-panel.tsx +121 -0
  367. package/templates/chat-app/chatjs/tools/deep-research/progress.tsx +23 -0
  368. package/templates/chat-app/chatjs/tools/deep-research/prompts.ts +280 -0
  369. package/templates/chat-app/chatjs/tools/deep-research/renderer.tsx +49 -0
  370. package/templates/chat-app/chatjs/tools/deep-research/schemas.ts +46 -0
  371. package/templates/chat-app/chatjs/tools/deep-research/search-updates.ts +76 -0
  372. package/templates/chat-app/chatjs/tools/deep-research/steps.ts +92 -0
  373. package/templates/chat-app/chatjs/tools/deep-research/task.tsx +69 -0
  374. package/templates/chat-app/chatjs/tools/deep-research/tasks.tsx +53 -0
  375. package/templates/chat-app/chatjs/tools/deep-research/tool.ts +1 -0
  376. package/templates/chat-app/chatjs/tools/delete-document/availability.ts +13 -0
  377. package/templates/chat-app/chatjs/tools/delete-document/chatjs.json +9 -0
  378. package/templates/chat-app/chatjs/tools/delete-document/execute.ts +78 -0
  379. package/templates/chat-app/chatjs/tools/delete-document/schemas.ts +18 -0
  380. package/templates/chat-app/chatjs/tools/delete-document/tool.ts +49 -0
  381. package/templates/chat-app/chatjs/tools/generate-image/chatjs.json +22 -0
  382. package/templates/chat-app/chatjs/tools/generate-image/configuration-schema.ts +9 -0
  383. package/templates/chat-app/chatjs/tools/generate-image/image-errors.ts +59 -0
  384. package/templates/chat-app/chatjs/tools/generate-image/image-generation.ts +257 -0
  385. package/templates/chat-app/chatjs/tools/generate-image/image-input.ts +47 -0
  386. package/templates/chat-app/chatjs/tools/generate-image/image-model.ts +58 -0
  387. package/templates/chat-app/chatjs/tools/generate-image/image-request.ts +140 -0
  388. package/templates/chat-app/chatjs/tools/generate-image/renderer.tsx +102 -0
  389. package/templates/chat-app/chatjs/tools/generate-image/schemas.ts +16 -0
  390. package/templates/chat-app/chatjs/tools/generate-image/tool.test.ts +229 -0
  391. package/templates/chat-app/chatjs/tools/generate-image/tool.ts +21 -0
  392. package/templates/chat-app/chatjs/tools/generate-video/chatjs.json +22 -0
  393. package/templates/chat-app/chatjs/tools/generate-video/configuration-schema.ts +9 -0
  394. package/templates/chat-app/chatjs/tools/generate-video/renderer.tsx +55 -0
  395. package/templates/chat-app/chatjs/tools/generate-video/schemas.ts +28 -0
  396. package/templates/chat-app/chatjs/tools/generate-video/tool.test.ts +123 -0
  397. package/templates/chat-app/chatjs/tools/generate-video/tool.ts +288 -0
  398. package/templates/chat-app/chatjs/tools/get-weather/chatjs.json +14 -0
  399. package/templates/chat-app/chatjs/tools/get-weather/definition.ts +10 -0
  400. package/templates/chat-app/chatjs/tools/get-weather/renderer.test.tsx +57 -0
  401. package/templates/chat-app/chatjs/tools/get-weather/renderer.tsx +290 -0
  402. package/templates/chat-app/chatjs/tools/get-weather/schemas.ts +51 -0
  403. package/templates/chat-app/chatjs/tools/get-weather/tool.ts +34 -0
  404. package/templates/chat-app/chatjs/tools/read-document/chatjs.json +8 -0
  405. package/templates/chat-app/chatjs/tools/read-document/tool.ts +27 -0
  406. package/templates/chat-app/chatjs/tools/retrieve-url/chatjs.json +11 -0
  407. package/templates/chat-app/chatjs/tools/retrieve-url/renderer.tsx +200 -0
  408. package/templates/chat-app/chatjs/tools/retrieve-url/retrieve-url-env.ts +11 -0
  409. package/templates/chat-app/chatjs/tools/retrieve-url/schemas.ts +24 -0
  410. package/templates/chat-app/chatjs/tools/retrieve-url/tool.test.ts +144 -0
  411. package/templates/chat-app/chatjs/tools/retrieve-url/tool.ts +169 -0
  412. package/templates/chat-app/chatjs/tools/saved-code-execution/chatjs.json +12 -0
  413. package/templates/chat-app/chatjs/tools/saved-code-execution/document-runs.ts +31 -0
  414. package/templates/chat-app/chatjs/tools/saved-code-execution/document.tsx +84 -0
  415. package/templates/chat-app/chatjs/tools/saved-code-execution/execute.ts +126 -0
  416. package/templates/chat-app/chatjs/tools/saved-code-execution/renderer.tsx +30 -0
  417. package/templates/chat-app/chatjs/tools/saved-code-execution/result.tsx +42 -0
  418. package/templates/chat-app/chatjs/tools/saved-code-execution/schemas.ts +82 -0
  419. package/templates/chat-app/chatjs/tools/saved-code-execution/tool.ts +12 -0
  420. package/templates/chat-app/chatjs/tools/sheet-documents/assistant-actions.ts +22 -0
  421. package/templates/chat-app/chatjs/tools/sheet-documents/chatjs.json +20 -0
  422. package/templates/chat-app/chatjs/tools/sheet-documents/configuration-schema.ts +10 -0
  423. package/templates/chat-app/chatjs/tools/sheet-documents/definition.ts +9 -0
  424. package/templates/chat-app/chatjs/tools/sheet-documents/document.tsx +41 -0
  425. package/templates/chat-app/chatjs/tools/sheet-documents/editor.tsx +180 -0
  426. package/templates/chat-app/chatjs/tools/sheet-documents/guidelines.ts +5 -0
  427. package/templates/chat-app/chatjs/tools/sheet-documents/tool.ts +54 -0
  428. package/templates/chat-app/chatjs/tools/tavily-search/chatjs.json +19 -0
  429. package/templates/chat-app/chatjs/tools/tavily-search/renderer.tsx +25 -0
  430. package/templates/chat-app/chatjs/tools/tavily-search/schemas.ts +39 -0
  431. package/templates/chat-app/chatjs/tools/tavily-search/tavily-search-env.ts +11 -0
  432. package/templates/chat-app/chatjs/tools/tavily-search/tool.test.ts +114 -0
  433. package/templates/chat-app/chatjs/tools/tavily-search/tool.ts +143 -0
  434. package/templates/chat-app/chatjs/tools/text-documents/assistant-actions.ts +12 -0
  435. package/templates/chat-app/chatjs/tools/text-documents/chatjs.json +20 -0
  436. package/templates/chat-app/chatjs/tools/text-documents/comparison.tsx +72 -0
  437. package/templates/chat-app/chatjs/tools/text-documents/configuration-schema.ts +7 -0
  438. package/templates/chat-app/chatjs/tools/text-documents/definition.ts +9 -0
  439. package/templates/chat-app/chatjs/tools/text-documents/diffview.tsx +214 -0
  440. package/templates/chat-app/chatjs/tools/text-documents/document.tsx +46 -0
  441. package/templates/chat-app/chatjs/tools/text-documents/editor-config.ts +53 -0
  442. package/templates/chat-app/chatjs/tools/text-documents/editor.tsx +139 -0
  443. package/templates/chat-app/chatjs/tools/text-documents/guidelines.ts +7 -0
  444. package/templates/chat-app/chatjs/tools/text-documents/tool.ts +54 -0
  445. package/templates/chat-app/chatjs/tools/word-count/chatjs.json +14 -0
  446. package/templates/chat-app/chatjs/tools/word-count/definition.ts +10 -0
  447. package/templates/chat-app/chatjs/tools/word-count/renderer.tsx +64 -0
  448. package/templates/chat-app/chatjs/tools/word-count/schemas.ts +13 -0
  449. package/templates/chat-app/chatjs/tools/word-count/tool.ts +45 -0
  450. package/templates/chat-app/components/account-form.tsx +22 -0
  451. package/templates/chat-app/components/ai-elements/context-hover.radix.tsx +15 -0
  452. package/templates/chat-app/components/ai-elements/context-hover.tsx +17 -0
  453. package/templates/chat-app/components/ai-elements/context.tsx +405 -0
  454. package/templates/chat-app/components/ai-elements/parse-incomplete-markdown.test.ts +34 -0
  455. package/templates/chat-app/components/ai-elements/parse-incomplete-markdown.tsx +138 -0
  456. package/templates/chat-app/components/ai-elements/response.tsx +51 -0
  457. package/templates/chat-app/components/ai-elements/suggestion.tsx +59 -0
  458. package/templates/chat-app/components/app-sidebar.tsx +94 -0
  459. package/templates/chat-app/components/attachment-card-view.tsx +53 -0
  460. package/templates/chat-app/components/attachment-card.tsx +92 -0
  461. package/templates/chat-app/components/attachment-list.tsx +188 -0
  462. package/templates/chat-app/components/attachment-preview-trigger.radix.tsx +12 -0
  463. package/templates/chat-app/components/attachment-preview-trigger.tsx +8 -0
  464. package/templates/chat-app/components/auth-card-skeleton.tsx +52 -0
  465. package/templates/chat-app/components/auth-form-view.tsx +72 -0
  466. package/templates/chat-app/components/auth-providers.tsx +201 -0
  467. package/templates/chat-app/components/chat/chat-layout.tsx +129 -0
  468. package/templates/chat-app/components/chat/chat-welcome-view.tsx +34 -0
  469. package/templates/chat-app/components/chat-header-view.tsx +36 -0
  470. package/templates/chat-app/components/chat-loading-shell.tsx +24 -0
  471. package/templates/chat-app/components/chat-menu-items.tsx +43 -0
  472. package/templates/chat-app/components/chat-message-view.tsx +39 -0
  473. package/templates/chat-app/components/chat-rename-dialog.tsx +156 -0
  474. package/templates/chat-app/components/chat-sidebar-view.tsx +53 -0
  475. package/templates/chat-app/components/chat-slots.tsx +24 -0
  476. package/templates/chat-app/components/client-snapshot.ts +32 -0
  477. package/templates/chat-app/components/clone-chat-button-view.tsx +43 -0
  478. package/templates/chat-app/components/code-snippet.tsx +35 -0
  479. package/templates/chat-app/components/composer/active-tool.tsx +48 -0
  480. package/templates/chat-app/components/composer/composer-attachments.tsx +26 -0
  481. package/templates/chat-app/components/composer/composer-menu.tsx +92 -0
  482. package/templates/chat-app/components/composer/control.ts +20 -0
  483. package/templates/chat-app/components/composer/editor.css +96 -0
  484. package/templates/chat-app/components/composer/prompt-form.tsx +49 -0
  485. package/templates/chat-app/components/composer/submission.ts +10 -0
  486. package/templates/chat-app/components/composer/tool-controls.tsx +139 -0
  487. package/templates/chat-app/components/composer/tool-display.ts +19 -0
  488. package/templates/chat-app/components/composer/tool-menu-item.radix.tsx +24 -0
  489. package/templates/chat-app/components/composer/tool-menu-item.tsx +25 -0
  490. package/templates/chat-app/components/context-bar.tsx +39 -0
  491. package/templates/chat-app/components/controlled-chat-composer.tsx +197 -0
  492. package/templates/chat-app/components/custom-content.ts +17 -0
  493. package/templates/chat-app/components/dev-login-tool.tsx +29 -0
  494. package/templates/chat-app/components/dialog-button.radix.tsx +13 -0
  495. package/templates/chat-app/components/dialog-button.tsx +11 -0
  496. package/templates/chat-app/components/disclosure-button.radix.tsx +13 -0
  497. package/templates/chat-app/components/disclosure-button.tsx +13 -0
  498. package/templates/chat-app/components/document-skeleton.tsx +33 -0
  499. package/templates/chat-app/components/drawer-close-button.radix.tsx +13 -0
  500. package/templates/chat-app/components/drawer-close-button.tsx +11 -0
  501. package/templates/chat-app/components/editable-bubble-props.ts +6 -0
  502. package/templates/chat-app/components/editable-bubble.radix.tsx +18 -0
  503. package/templates/chat-app/components/editable-bubble.tsx +16 -0
  504. package/templates/chat-app/components/eve/eve-artifact-layout.tsx +722 -0
  505. package/templates/chat-app/components/eve/eve-attachment.tsx +62 -0
  506. package/templates/chat-app/components/eve/eve-chat-error.tsx +16 -0
  507. package/templates/chat-app/components/eve/eve-chat-header.tsx +169 -0
  508. package/templates/chat-app/components/eve/eve-chat-page.tsx +120 -0
  509. package/templates/chat-app/components/eve/eve-composer.tsx +184 -0
  510. package/templates/chat-app/components/eve/eve-conversation.tsx +995 -0
  511. package/templates/chat-app/components/eve/eve-copy-button.tsx +165 -0
  512. package/templates/chat-app/components/eve/eve-creation-recovery.tsx +247 -0
  513. package/templates/chat-app/components/eve/eve-delete-dialog.tsx +195 -0
  514. package/templates/chat-app/components/eve/eve-deletion-provider.tsx +108 -0
  515. package/templates/chat-app/components/eve/eve-document-actions.tsx +124 -0
  516. package/templates/chat-app/components/eve/eve-document-assistant-actions.tsx +157 -0
  517. package/templates/chat-app/components/eve/eve-document-body.tsx +29 -0
  518. package/templates/chat-app/components/eve/eve-document-context.tsx +12 -0
  519. package/templates/chat-app/components/eve/eve-document-preview.tsx +128 -0
  520. package/templates/chat-app/components/eve/eve-document-tool.tsx +190 -0
  521. package/templates/chat-app/components/eve/eve-fork-recovery.tsx +79 -0
  522. package/templates/chat-app/components/eve/eve-history-list.tsx +303 -0
  523. package/templates/chat-app/components/eve/eve-history.tsx +25 -0
  524. package/templates/chat-app/components/eve/eve-initial-message.tsx +24 -0
  525. package/templates/chat-app/components/eve/eve-logical-context.tsx +46 -0
  526. package/templates/chat-app/components/eve/eve-logical-group-recovery.tsx +191 -0
  527. package/templates/chat-app/components/eve/eve-logical-navigation.tsx +38 -0
  528. package/templates/chat-app/components/eve/eve-mcp-result.tsx +41 -0
  529. package/templates/chat-app/components/eve/eve-message-part.tsx +176 -0
  530. package/templates/chat-app/components/eve/eve-messages.tsx +389 -0
  531. package/templates/chat-app/components/eve/eve-model-picker.tsx +35 -0
  532. package/templates/chat-app/components/eve/eve-optimistic-response-group.tsx +70 -0
  533. package/templates/chat-app/components/eve/eve-pending-input.tsx +156 -0
  534. package/templates/chat-app/components/eve/eve-response-group-cards.tsx +83 -0
  535. package/templates/chat-app/components/eve/eve-runtime-provider.tsx +372 -0
  536. package/templates/chat-app/components/eve/eve-thinking-message.tsx +42 -0
  537. package/templates/chat-app/components/eve/eve-tool-result.tsx +63 -0
  538. package/templates/chat-app/components/eve/new-conversation-view.tsx +55 -0
  539. package/templates/chat-app/components/eve/new-eve-conversation.tsx +31 -0
  540. package/templates/chat-app/components/eve/use-document-draft.ts +281 -0
  541. package/templates/chat-app/components/eve/use-eve-attachments.ts +34 -0
  542. package/templates/chat-app/components/eve/use-eve-composer-draft.ts +149 -0
  543. package/templates/chat-app/components/eve/use-eve-delivery-receipt.ts +58 -0
  544. package/templates/chat-app/components/eve/use-eve-fork.ts +537 -0
  545. package/templates/chat-app/components/eve/use-eve-message-delivery.ts +171 -0
  546. package/templates/chat-app/components/eve/use-eve-metadata-mutations.ts +61 -0
  547. package/templates/chat-app/components/eve/use-logical-commands.ts +16 -0
  548. package/templates/chat-app/components/eve/use-new-eve-conversation.tsx +342 -0
  549. package/templates/chat-app/components/favicon-group.tsx +50 -0
  550. package/templates/chat-app/components/favicon.tsx +54 -0
  551. package/templates/chat-app/components/get-google-favicon-url.tsx +21 -0
  552. package/templates/chat-app/components/get-url-without-params.ts +9 -0
  553. package/templates/chat-app/components/header-actions.tsx +48 -0
  554. package/templates/chat-app/components/hint.radix.tsx +26 -0
  555. package/templates/chat-app/components/hint.tsx +26 -0
  556. package/templates/chat-app/components/icons.tsx +53 -0
  557. package/templates/chat-app/components/image-modal.tsx +180 -0
  558. package/templates/chat-app/components/internal-link.tsx +89 -0
  559. package/templates/chat-app/components/keyboard-shortcuts.tsx +58 -0
  560. package/templates/chat-app/components/layout-plugins.tsx +10 -0
  561. package/templates/chat-app/components/layout-slots.tsx +4 -0
  562. package/templates/chat-app/components/lexical-chat-input.tsx +276 -0
  563. package/templates/chat-app/components/login-form.tsx +5 -0
  564. package/templates/chat-app/components/menu-button.radix.tsx +13 -0
  565. package/templates/chat-app/components/menu-button.tsx +13 -0
  566. package/templates/chat-app/components/message-action.tsx +28 -0
  567. package/templates/chat-app/components/message-actions-view.tsx +74 -0
  568. package/templates/chat-app/components/message-siblings-view.tsx +48 -0
  569. package/templates/chat-app/components/model-selection-indicator.radix.tsx +17 -0
  570. package/templates/chat-app/components/model-selection-indicator.tsx +17 -0
  571. package/templates/chat-app/components/model-selector-logo.tsx +37 -0
  572. package/templates/chat-app/components/model-selector-view.tsx +772 -0
  573. package/templates/chat-app/components/model-selector.tsx +46 -0
  574. package/templates/chat-app/components/navigation-links.radix.tsx +50 -0
  575. package/templates/chat-app/components/navigation-links.tsx +48 -0
  576. package/templates/chat-app/components/new-chat-button.tsx +41 -0
  577. package/templates/chat-app/components/optional-content.test.ts +28 -0
  578. package/templates/chat-app/components/parallel-responses/client-plugin.ts +11 -0
  579. package/templates/chat-app/components/parallel-responses/model-picker.tsx +75 -0
  580. package/templates/chat-app/components/parallel-responses/responses.tsx +148 -0
  581. package/templates/chat-app/components/part/document-common.tsx +152 -0
  582. package/templates/chat-app/components/part/mcp-tool-result.tsx +43 -0
  583. package/templates/chat-app/components/part/message-reasoning.tsx +71 -0
  584. package/templates/chat-app/components/part/tool-activity.tsx +93 -0
  585. package/templates/chat-app/components/part/tool-data.tsx +77 -0
  586. package/templates/chat-app/components/part/web-search.tsx +75 -0
  587. package/templates/chat-app/components/popover-button.radix.tsx +13 -0
  588. package/templates/chat-app/components/popover-button.tsx +11 -0
  589. package/templates/chat-app/components/response-choice-cards.tsx +60 -0
  590. package/templates/chat-app/components/retry-button-view.tsx +32 -0
  591. package/templates/chat-app/components/sandbox.tsx +43 -0
  592. package/templates/chat-app/components/settings/settings-header.tsx +21 -0
  593. package/templates/chat-app/components/settings/settings-nav.tsx +25 -0
  594. package/templates/chat-app/components/settings/settings-navigation-link.tsx +29 -0
  595. package/templates/chat-app/components/settings/settings-page.tsx +63 -0
  596. package/templates/chat-app/components/sidebar-chat-item.tsx +176 -0
  597. package/templates/chat-app/components/sidebar-menus.radix.tsx +62 -0
  598. package/templates/chat-app/components/sidebar-menus.tsx +66 -0
  599. package/templates/chat-app/components/sidebar-toggle.tsx +42 -0
  600. package/templates/chat-app/components/sidebar-top-row.tsx +64 -0
  601. package/templates/chat-app/components/sidebar-user-nav.tsx +208 -0
  602. package/templates/chat-app/components/signup-form.tsx +5 -0
  603. package/templates/chat-app/components/source-badge.tsx +50 -0
  604. package/templates/chat-app/components/sources.tsx +140 -0
  605. package/templates/chat-app/components/tag.tsx +23 -0
  606. package/templates/chat-app/components/task-cleanup.test.ts +39 -0
  607. package/templates/chat-app/components/task-cleanup.ts +15 -0
  608. package/templates/chat-app/components/test-dom-harness.ts +22 -0
  609. package/templates/chat-app/components/text-value.ts +7 -0
  610. package/templates/chat-app/components/theme-provider.tsx +14 -0
  611. package/templates/chat-app/components/thinking-message.tsx +17 -0
  612. package/templates/chat-app/components/ui/alert-dialog.tsx +187 -0
  613. package/templates/chat-app/components/ui/alert.tsx +75 -0
  614. package/templates/chat-app/components/ui/attachment.tsx +207 -0
  615. package/templates/chat-app/components/ui/avatar.tsx +108 -0
  616. package/templates/chat-app/components/ui/badge.tsx +51 -0
  617. package/templates/chat-app/components/ui/breadcrumb.tsx +124 -0
  618. package/templates/chat-app/components/ui/bubble.tsx +127 -0
  619. package/templates/chat-app/components/ui/button-group.tsx +87 -0
  620. package/templates/chat-app/components/ui/button.tsx +55 -0
  621. package/templates/chat-app/components/ui/card.tsx +99 -0
  622. package/templates/chat-app/components/ui/checkbox.tsx +28 -0
  623. package/templates/chat-app/components/ui/code-block.tsx +252 -0
  624. package/templates/chat-app/components/ui/collapsible.tsx +21 -0
  625. package/templates/chat-app/components/ui/command.tsx +196 -0
  626. package/templates/chat-app/components/ui/dialog.tsx +160 -0
  627. package/templates/chat-app/components/ui/direction.tsx +6 -0
  628. package/templates/chat-app/components/ui/drawer.tsx +227 -0
  629. package/templates/chat-app/components/ui/dropdown-menu.tsx +267 -0
  630. package/templates/chat-app/components/ui/empty.tsx +103 -0
  631. package/templates/chat-app/components/ui/extra/action-container.tsx +50 -0
  632. package/templates/chat-app/components/ui/field.tsx +238 -0
  633. package/templates/chat-app/components/ui/hover-card.tsx +50 -0
  634. package/templates/chat-app/components/ui/input-group.tsx +157 -0
  635. package/templates/chat-app/components/ui/input.tsx +19 -0
  636. package/templates/chat-app/components/ui/item.tsx +201 -0
  637. package/templates/chat-app/components/ui/label.tsx +19 -0
  638. package/templates/chat-app/components/ui/message-scroller.tsx +130 -0
  639. package/templates/chat-app/components/ui/message.tsx +91 -0
  640. package/templates/chat-app/components/ui/popover.tsx +89 -0
  641. package/templates/chat-app/components/ui/progress.tsx +82 -0
  642. package/templates/chat-app/components/ui/questionnaire.tsx +324 -0
  643. package/templates/chat-app/components/ui/resizable.tsx +49 -0
  644. package/templates/chat-app/components/ui/scroll-area.tsx +54 -0
  645. package/templates/chat-app/components/ui/select.tsx +200 -0
  646. package/templates/chat-app/components/ui/separator.tsx +24 -0
  647. package/templates/chat-app/components/ui/sheet.tsx +138 -0
  648. package/templates/chat-app/components/ui/sidebar.tsx +726 -0
  649. package/templates/chat-app/components/ui/skeleton.tsx +13 -0
  650. package/templates/chat-app/components/ui/slider.tsx +51 -0
  651. package/templates/chat-app/components/ui/spinner.tsx +10 -0
  652. package/templates/chat-app/components/ui/switch.tsx +31 -0
  653. package/templates/chat-app/components/ui/table.tsx +115 -0
  654. package/templates/chat-app/components/ui/tabs.tsx +81 -0
  655. package/templates/chat-app/components/ui/textarea.tsx +17 -0
  656. package/templates/chat-app/components/ui/toggle.tsx +44 -0
  657. package/templates/chat-app/components/ui/tooltip.tsx +65 -0
  658. package/templates/chat-app/components/ui/trace.tsx +162 -0
  659. package/templates/chat-app/components/upgrade-cta/login-cta-banner.tsx +112 -0
  660. package/templates/chat-app/components/upgrade-cta/login-prompt.tsx +34 -0
  661. package/templates/chat-app/components/user-message-view.tsx +92 -0
  662. package/templates/chat-app/components/with-skeleton.tsx +35 -0
  663. package/templates/chat-app/components.json +27 -0
  664. package/templates/chat-app/composer-controls.ts +16 -0
  665. package/templates/chat-app/docs/cleanup.md +21 -0
  666. package/templates/chat-app/docs/guest-sessions.md +29 -0
  667. package/templates/chat-app/docs/single-agent-verification.md +35 -0
  668. package/templates/chat-app/drizzle.config.ts +23 -0
  669. package/templates/chat-app/drizzle.generate.config.ts +9 -0
  670. package/templates/chat-app/hooks/responsive-hooks.test.tsx +20 -0
  671. package/templates/chat-app/hooks/use-artifact.tsx +180 -0
  672. package/templates/chat-app/hooks/use-auto-focus.ts +57 -0
  673. package/templates/chat-app/hooks/use-highlighted-code.ts +75 -0
  674. package/templates/chat-app/hooks/use-image-load-error.ts +20 -0
  675. package/templates/chat-app/hooks/use-media-query.tsx +24 -0
  676. package/templates/chat-app/hooks/use-mobile.ts +19 -0
  677. package/templates/chat-app/hooks/use-mounted.ts +11 -0
  678. package/templates/chat-app/instrumentation.ts +14 -0
  679. package/templates/chat-app/integrations/auth/form.ts +8 -0
  680. package/templates/chat-app/integrations/auth/server.ts +12 -0
  681. package/templates/chat-app/integrations/auth/sign-out.ts +6 -0
  682. package/templates/chat-app/integrations/auth/signed-out.ts +7 -0
  683. package/templates/chat-app/integrations/billing.ts +5 -0
  684. package/templates/chat-app/integrations/chat/model-visibility.ts +8 -0
  685. package/templates/chat-app/integrations/chat/server.ts +5 -0
  686. package/templates/chat-app/integrations/chat/session-profiles.ts +3 -0
  687. package/templates/chat-app/integrations/chat/ui.ts +4 -0
  688. package/templates/chat-app/integrations/chat/uploads.ts +18 -0
  689. package/templates/chat-app/integrations/cleanup.ts +3 -0
  690. package/templates/chat-app/integrations/database.ts +3 -0
  691. package/templates/chat-app/integrations/documents/definitions.ts +4 -0
  692. package/templates/chat-app/integrations/documents/run.ts +1 -0
  693. package/templates/chat-app/integrations/documents/ui.ts +4 -0
  694. package/templates/chat-app/integrations/instrumentation.ts +3 -0
  695. package/templates/chat-app/integrations/layout.ts +3 -0
  696. package/templates/chat-app/integrations/navigation.ts +8 -0
  697. package/templates/chat-app/integrations/plugin-catalog.ts +5 -0
  698. package/templates/chat-app/integrations/providers/gateway.ts +5 -0
  699. package/templates/chat-app/integrations/providers/sandbox.ts +10 -0
  700. package/templates/chat-app/integrations/providers/storage.ts +5 -0
  701. package/templates/chat-app/integrations/routers.ts +3 -0
  702. package/templates/chat-app/integrations/tools/availability.ts +3 -0
  703. package/templates/chat-app/integrations/tools/catalog.ts +10 -0
  704. package/templates/chat-app/integrations/tools/code-executor.ts +1 -0
  705. package/templates/chat-app/integrations/tools/composer.ts +20 -0
  706. package/templates/chat-app/integrations/tools/configuration.ts +3 -0
  707. package/templates/chat-app/integrations/tools/definitions.ts +6 -0
  708. package/templates/chat-app/integrations/tools/execution.ts +15 -0
  709. package/templates/chat-app/integrations/tools/providers.ts +3 -0
  710. package/templates/chat-app/integrations/tools/selection.ts +10 -0
  711. package/templates/chat-app/integrations/tools/ui.ts +4 -0
  712. package/templates/chat-app/lib/ai/active-gateway.ts +24 -0
  713. package/templates/chat-app/lib/ai/app-model-id.ts +23 -0
  714. package/templates/chat-app/lib/ai/app-models.test.ts +92 -0
  715. package/templates/chat-app/lib/ai/app-models.ts +153 -0
  716. package/templates/chat-app/lib/ai/gateways/fallback-models.ts +29 -0
  717. package/templates/chat-app/lib/ai/gateways/registry.ts +71 -0
  718. package/templates/chat-app/lib/ai/mcp-name-id.ts +112 -0
  719. package/templates/chat-app/lib/ai/model-data.ts +35 -0
  720. package/templates/chat-app/lib/ai/models.generated.ts +4242 -0
  721. package/templates/chat-app/lib/ai/models.ts +44 -0
  722. package/templates/chat-app/lib/ai/prompts.ts +25 -0
  723. package/templates/chat-app/lib/ai/providers.ts +41 -0
  724. package/templates/chat-app/lib/ai/telemetry.ts +4 -0
  725. package/templates/chat-app/lib/ai/to-model-data.test.ts +24 -0
  726. package/templates/chat-app/lib/ai/to-model-data.ts +63 -0
  727. package/templates/chat-app/lib/ai/tool-context.ts +28 -0
  728. package/templates/chat-app/lib/ai/tool-renderer-registry.ts +30 -0
  729. package/templates/chat-app/lib/ai/types.ts +85 -0
  730. package/templates/chat-app/lib/ai/usage-token-details.test.ts +76 -0
  731. package/templates/chat-app/lib/ai/usage-token-details.ts +33 -0
  732. package/templates/chat-app/lib/artifacts/artifact-kind.ts +8 -0
  733. package/templates/chat-app/lib/artifacts/types.ts +19 -0
  734. package/templates/chat-app/lib/auth-client.ts +5 -0
  735. package/templates/chat-app/lib/auth-session-options.test.ts +106 -0
  736. package/templates/chat-app/lib/auth-session-options.ts +47 -0
  737. package/templates/chat-app/lib/auth.ts +90 -0
  738. package/templates/chat-app/lib/chat-after-create.test.ts +74 -0
  739. package/templates/chat-app/lib/chat-after-create.ts +32 -0
  740. package/templates/chat-app/lib/chat-route.ts +18 -0
  741. package/templates/chat-app/lib/cleanup/contracts.ts +10 -0
  742. package/templates/chat-app/lib/cleanup/job.ts +53 -0
  743. package/templates/chat-app/lib/cleanup/route.test.ts +47 -0
  744. package/templates/chat-app/lib/config-models.ts +30 -0
  745. package/templates/chat-app/lib/config-requirements.test.ts +162 -0
  746. package/templates/chat-app/lib/config-requirements.ts +110 -0
  747. package/templates/chat-app/lib/config-schema.test.ts +71 -0
  748. package/templates/chat-app/lib/config-schema.ts +411 -0
  749. package/templates/chat-app/lib/config.ts +21 -0
  750. package/templates/chat-app/lib/constants.ts +7 -0
  751. package/templates/chat-app/lib/creation-rejected-error.ts +11 -0
  752. package/templates/chat-app/lib/db/client.ts +13 -0
  753. package/templates/chat-app/lib/db/connection.test.ts +56 -0
  754. package/templates/chat-app/lib/db/connection.ts +75 -0
  755. package/templates/chat-app/lib/db/creation-conflict-error.ts +15 -0
  756. package/templates/chat-app/lib/db/eve-billing.ts +398 -0
  757. package/templates/chat-app/lib/db/eve-code-sandboxes.ts +197 -0
  758. package/templates/chat-app/lib/db/eve-creation-failure.ts +37 -0
  759. package/templates/chat-app/lib/db/eve-current-copy.ts +230 -0
  760. package/templates/chat-app/lib/db/eve-deletion-scope.ts +9 -0
  761. package/templates/chat-app/lib/db/eve-deletion.ts +367 -0
  762. package/templates/chat-app/lib/db/eve-dispatch.ts +283 -0
  763. package/templates/chat-app/lib/db/eve-document-retention.ts +36 -0
  764. package/templates/chat-app/lib/db/eve-documents.ts +700 -0
  765. package/templates/chat-app/lib/db/eve-family-lock.ts +15 -0
  766. package/templates/chat-app/lib/db/eve-file-purge.ts +311 -0
  767. package/templates/chat-app/lib/db/eve-files.ts +335 -0
  768. package/templates/chat-app/lib/db/eve-model-ledger.ts +135 -0
  769. package/templates/chat-app/lib/db/eve-orphaned-files.ts +84 -0
  770. package/templates/chat-app/lib/db/eve-queries.ts +1191 -0
  771. package/templates/chat-app/lib/db/eve-response-groups.ts +603 -0
  772. package/templates/chat-app/lib/db/eve-sandbox-run-coverage.ts +97 -0
  773. package/templates/chat-app/lib/db/eve-subagents.ts +170 -0
  774. package/templates/chat-app/lib/db/eve-title.ts +27 -0
  775. package/templates/chat-app/lib/db/eve-workspace-turns.ts +123 -0
  776. package/templates/chat-app/lib/db/eve-workspaces.ts +64 -0
  777. package/templates/chat-app/lib/db/file-storage-keys.ts +38 -0
  778. package/templates/chat-app/lib/db/health.test.ts +36 -0
  779. package/templates/chat-app/lib/db/health.ts +16 -0
  780. package/templates/chat-app/lib/db/migrate.ts +171 -0
  781. package/templates/chat-app/lib/db/migration-history.test.ts +162 -0
  782. package/templates/chat-app/lib/db/migration-history.ts +109 -0
  783. package/templates/chat-app/lib/db/migrations/0000_eve_baseline.sql +433 -0
  784. package/templates/chat-app/lib/db/migrations/0001_brainy_the_stranger.sql +1 -0
  785. package/templates/chat-app/lib/db/migrations/0002_nappy_caretaker.sql +5 -0
  786. package/templates/chat-app/lib/db/migrations/0003_ambitious_oracle.sql +24 -0
  787. package/templates/chat-app/lib/db/migrations/0004_misty_next_avengers.sql +11 -0
  788. package/templates/chat-app/lib/db/migrations/0005_managed_workflow_safeguards.sql +12 -0
  789. package/templates/chat-app/lib/db/migrations/0006_unpriced_usage_index.sql +2 -0
  790. package/templates/chat-app/lib/db/migrations/0007_kind_charles_xavier.sql +13 -0
  791. package/templates/chat-app/lib/db/migrations/0008_mysterious_excalibur.sql +1 -0
  792. package/templates/chat-app/lib/db/migrations/0009_absent_the_hunter.sql +1 -0
  793. package/templates/chat-app/lib/db/migrations/0010_omniscient_junta.sql +11 -0
  794. package/templates/chat-app/lib/db/migrations/0011_followup_chat_index.sql +1 -0
  795. package/templates/chat-app/lib/db/migrations/0012_aberrant_joseph.sql +16 -0
  796. package/templates/chat-app/lib/db/migrations/0013_current_copy_seed.sql +1 -0
  797. package/templates/chat-app/lib/db/migrations/0014_current_copy_ancestry.sql +13 -0
  798. package/templates/chat-app/lib/db/migrations/0015_conscious_gorilla_man.sql +13 -0
  799. package/templates/chat-app/lib/db/migrations/0016_large_zeigeist.sql +21 -0
  800. package/templates/chat-app/lib/db/migrations/0017_flimsy_whiplash.sql +34 -0
  801. package/templates/chat-app/lib/db/migrations/0018_shallow_tyrannus.sql +1 -0
  802. package/templates/chat-app/lib/db/migrations/0019_woozy_wither.sql +50 -0
  803. package/templates/chat-app/lib/db/migrations/0020_organic_black_panther.sql +12 -0
  804. package/templates/chat-app/lib/db/migrations/0021_glorious_chameleon.sql +6 -0
  805. package/templates/chat-app/lib/db/migrations/0022_hard_photon.sql +16 -0
  806. package/templates/chat-app/lib/db/migrations/meta/0000_snapshot.json +2714 -0
  807. package/templates/chat-app/lib/db/migrations/meta/0001_snapshot.json +2720 -0
  808. package/templates/chat-app/lib/db/migrations/meta/0002_snapshot.json +2732 -0
  809. package/templates/chat-app/lib/db/migrations/meta/0003_snapshot.json +2739 -0
  810. package/templates/chat-app/lib/db/migrations/meta/0004_snapshot.json +2837 -0
  811. package/templates/chat-app/lib/db/migrations/meta/0005_snapshot.json +2874 -0
  812. package/templates/chat-app/lib/db/migrations/meta/0006_snapshot.json +2890 -0
  813. package/templates/chat-app/lib/db/migrations/meta/0007_snapshot.json +2975 -0
  814. package/templates/chat-app/lib/db/migrations/meta/0008_snapshot.json +2982 -0
  815. package/templates/chat-app/lib/db/migrations/meta/0009_snapshot.json +3311 -0
  816. package/templates/chat-app/lib/db/migrations/meta/0010_snapshot.json +3385 -0
  817. package/templates/chat-app/lib/db/migrations/meta/0011_snapshot.json +3401 -0
  818. package/templates/chat-app/lib/db/migrations/meta/0012_snapshot.json +3509 -0
  819. package/templates/chat-app/lib/db/migrations/meta/0013_snapshot.json +3515 -0
  820. package/templates/chat-app/lib/db/migrations/meta/0014_snapshot.json +3515 -0
  821. package/templates/chat-app/lib/db/migrations/meta/0015_snapshot.json +3515 -0
  822. package/templates/chat-app/lib/db/migrations/meta/0016_snapshot.json +3668 -0
  823. package/templates/chat-app/lib/db/migrations/meta/0017_snapshot.json +3881 -0
  824. package/templates/chat-app/lib/db/migrations/meta/0018_snapshot.json +3888 -0
  825. package/templates/chat-app/lib/db/migrations/meta/0019_snapshot.json +3926 -0
  826. package/templates/chat-app/lib/db/migrations/meta/0020_snapshot.json +3920 -0
  827. package/templates/chat-app/lib/db/migrations/meta/0021_snapshot.json +3887 -0
  828. package/templates/chat-app/lib/db/migrations/meta/0022_snapshot.json +3659 -0
  829. package/templates/chat-app/lib/db/migrations/meta/_journal.json +167 -0
  830. package/templates/chat-app/lib/db/queries.ts +23 -0
  831. package/templates/chat-app/lib/db/schema.ts +822 -0
  832. package/templates/chat-app/lib/db/update-owned-chat.ts +58 -0
  833. package/templates/chat-app/lib/db/workflow-backend.ts +28 -0
  834. package/templates/chat-app/lib/env-runtime-options.ts +121 -0
  835. package/templates/chat-app/lib/env-schema.test.ts +107 -0
  836. package/templates/chat-app/lib/env-schema.ts +136 -0
  837. package/templates/chat-app/lib/env.ts +24 -0
  838. package/templates/chat-app/lib/eve/accounting-log.ts +49 -0
  839. package/templates/chat-app/lib/eve/activity.ts +14 -0
  840. package/templates/chat-app/lib/eve/admission-retry.ts +41 -0
  841. package/templates/chat-app/lib/eve/channel-files.test.ts +85 -0
  842. package/templates/chat-app/lib/eve/channel-files.ts +57 -0
  843. package/templates/chat-app/lib/eve/cleanup-orphaned-files.test.ts +88 -0
  844. package/templates/chat-app/lib/eve/cleanup-orphaned-files.ts +68 -0
  845. package/templates/chat-app/lib/eve/code-executor.ts +32 -0
  846. package/templates/chat-app/lib/eve/code-sandbox-name.test.ts +60 -0
  847. package/templates/chat-app/lib/eve/code-sandbox-name.ts +56 -0
  848. package/templates/chat-app/lib/eve/code-sandbox-ownership.ts +88 -0
  849. package/templates/chat-app/lib/eve/command-rejection.test.ts +28 -0
  850. package/templates/chat-app/lib/eve/command-rejection.ts +17 -0
  851. package/templates/chat-app/lib/eve/completed-copy-source.test.ts +114 -0
  852. package/templates/chat-app/lib/eve/completed-copy-source.ts +48 -0
  853. package/templates/chat-app/lib/eve/connection-options.ts +40 -0
  854. package/templates/chat-app/lib/eve/contracts.test.ts +246 -0
  855. package/templates/chat-app/lib/eve/contracts.ts +70 -0
  856. package/templates/chat-app/lib/eve/conversation-scope.test.ts +147 -0
  857. package/templates/chat-app/lib/eve/conversation-scope.ts +102 -0
  858. package/templates/chat-app/lib/eve/conversation-title.ts +40 -0
  859. package/templates/chat-app/lib/eve/copy-input.ts +11 -0
  860. package/templates/chat-app/lib/eve/copy-seed.test.ts +101 -0
  861. package/templates/chat-app/lib/eve/copy-seed.ts +143 -0
  862. package/templates/chat-app/lib/eve/copy-transcript.test.ts +372 -0
  863. package/templates/chat-app/lib/eve/copy-transcript.ts +389 -0
  864. package/templates/chat-app/lib/eve/create-conversation-operation.test.ts +223 -0
  865. package/templates/chat-app/lib/eve/create-conversation-operation.ts +107 -0
  866. package/templates/chat-app/lib/eve/create-conversation.test.ts +143 -0
  867. package/templates/chat-app/lib/eve/create-conversation.ts +75 -0
  868. package/templates/chat-app/lib/eve/create-native-copy.ts +38 -0
  869. package/templates/chat-app/lib/eve/create-response-group.test.ts +268 -0
  870. package/templates/chat-app/lib/eve/create-response-group.ts +158 -0
  871. package/templates/chat-app/lib/eve/creation-content-hash.ts +20 -0
  872. package/templates/chat-app/lib/eve/creation-recovery-error.ts +8 -0
  873. package/templates/chat-app/lib/eve/creation-transport.ts +36 -0
  874. package/templates/chat-app/lib/eve/delete-local-conversation.test.ts +145 -0
  875. package/templates/chat-app/lib/eve/delete-local-conversation.ts +54 -0
  876. package/templates/chat-app/lib/eve/deletion-lifecycle.ts +18 -0
  877. package/templates/chat-app/lib/eve/deletion-policy.ts +27 -0
  878. package/templates/chat-app/lib/eve/document-assistant-actions.test.ts +48 -0
  879. package/templates/chat-app/lib/eve/document-assistant-actions.ts +22 -0
  880. package/templates/chat-app/lib/eve/document-kind-lifecycle.test.ts +148 -0
  881. package/templates/chat-app/lib/eve/document-tools.ts +164 -0
  882. package/templates/chat-app/lib/eve/draft.test.ts +32 -0
  883. package/templates/chat-app/lib/eve/draft.ts +70 -0
  884. package/templates/chat-app/lib/eve/environment.test.ts +257 -0
  885. package/templates/chat-app/lib/eve/environment.ts +126 -0
  886. package/templates/chat-app/lib/eve/execute-conversation-creation.ts +198 -0
  887. package/templates/chat-app/lib/eve/file-references.ts +22 -0
  888. package/templates/chat-app/lib/eve/fork-boundary-error.ts +8 -0
  889. package/templates/chat-app/lib/eve/gateway-auth.test.ts +229 -0
  890. package/templates/chat-app/lib/eve/gateway-auth.ts +182 -0
  891. package/templates/chat-app/lib/eve/generated-files.test.ts +75 -0
  892. package/templates/chat-app/lib/eve/generated-files.ts +46 -0
  893. package/templates/chat-app/lib/eve/history-input.ts +31 -0
  894. package/templates/chat-app/lib/eve/image-context.test.ts +66 -0
  895. package/templates/chat-app/lib/eve/image-context.ts +143 -0
  896. package/templates/chat-app/lib/eve/installed-tools.test.ts +162 -0
  897. package/templates/chat-app/lib/eve/lifecycle/postgres/compatibility.ts +84 -0
  898. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-native-purge.ts +205 -0
  899. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-payload-purge.ts +147 -0
  900. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-fence.ts +82 -0
  901. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-inventory.ts +89 -0
  902. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-queue-purge.ts +250 -0
  903. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-resource-fence.ts +213 -0
  904. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-run-inventory.ts +165 -0
  905. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-sandbox-coverage-proof.ts +140 -0
  906. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-session-fence.ts +108 -0
  907. package/templates/chat-app/lib/eve/lifecycle/postgres/eve-stream-positions.ts +81 -0
  908. package/templates/chat-app/lib/eve/lifecycle/postgres/provider.ts +91 -0
  909. package/templates/chat-app/lib/eve/lifecycle/provider.test.ts +57 -0
  910. package/templates/chat-app/lib/eve/lifecycle/provider.ts +102 -0
  911. package/templates/chat-app/lib/eve/local-deletion-available.test.ts +19 -0
  912. package/templates/chat-app/lib/eve/local-deletion-available.ts +22 -0
  913. package/templates/chat-app/lib/eve/logical-chat.test.ts +400 -0
  914. package/templates/chat-app/lib/eve/logical-chat.ts +477 -0
  915. package/templates/chat-app/lib/eve/logical-commands.ts +42 -0
  916. package/templates/chat-app/lib/eve/logical-response-slots.ts +180 -0
  917. package/templates/chat-app/lib/eve/mcp-result.ts +25 -0
  918. package/templates/chat-app/lib/eve/message-delivery.test.ts +165 -0
  919. package/templates/chat-app/lib/eve/message-delivery.ts +145 -0
  920. package/templates/chat-app/lib/eve/message-display.test.ts +105 -0
  921. package/templates/chat-app/lib/eve/message-display.ts +65 -0
  922. package/templates/chat-app/lib/eve/message-input.ts +69 -0
  923. package/templates/chat-app/lib/eve/message-tool-selection.test.ts +23 -0
  924. package/templates/chat-app/lib/eve/message-tool-selection.ts +31 -0
  925. package/templates/chat-app/lib/eve/model-accounting.test.ts +194 -0
  926. package/templates/chat-app/lib/eve/model-accounting.ts +101 -0
  927. package/templates/chat-app/lib/eve/model-ledger.test.ts +485 -0
  928. package/templates/chat-app/lib/eve/model-ledger.ts +239 -0
  929. package/templates/chat-app/lib/eve/model-selection.test.ts +139 -0
  930. package/templates/chat-app/lib/eve/model-selection.ts +99 -0
  931. package/templates/chat-app/lib/eve/optimistic-metadata.test.ts +85 -0
  932. package/templates/chat-app/lib/eve/optimistic-metadata.ts +139 -0
  933. package/templates/chat-app/lib/eve/pending-create.test.ts +112 -0
  934. package/templates/chat-app/lib/eve/pending-create.ts +246 -0
  935. package/templates/chat-app/lib/eve/persisted-wire-order.test.ts +33 -0
  936. package/templates/chat-app/lib/eve/persistent-sandbox-store.ts +621 -0
  937. package/templates/chat-app/lib/eve/persistent-sandbox.test.ts +209 -0
  938. package/templates/chat-app/lib/eve/persistent-sandbox.ts +328 -0
  939. package/templates/chat-app/lib/eve/prepare-deletion.test.ts +118 -0
  940. package/templates/chat-app/lib/eve/prepare-deletion.ts +62 -0
  941. package/templates/chat-app/lib/eve/prepare-message.test.ts +67 -0
  942. package/templates/chat-app/lib/eve/prepare-message.ts +60 -0
  943. package/templates/chat-app/lib/eve/principal.test.ts +25 -0
  944. package/templates/chat-app/lib/eve/principal.ts +23 -0
  945. package/templates/chat-app/lib/eve/project-creation.ts +22 -0
  946. package/templates/chat-app/lib/eve/projects-absent.test.ts +27 -0
  947. package/templates/chat-app/lib/eve/purge-code-sandboxes.test.ts +125 -0
  948. package/templates/chat-app/lib/eve/purge-code-sandboxes.ts +83 -0
  949. package/templates/chat-app/lib/eve/purge-files.test.ts +41 -0
  950. package/templates/chat-app/lib/eve/purge-files.ts +38 -0
  951. package/templates/chat-app/lib/eve/purge-local-resources.ts +73 -0
  952. package/templates/chat-app/lib/eve/readonly-message-types.ts +19 -0
  953. package/templates/chat-app/lib/eve/reconcile-subagent-usage.ts +99 -0
  954. package/templates/chat-app/lib/eve/reconcile-usage.test.ts +488 -0
  955. package/templates/chat-app/lib/eve/reconcile-usage.ts +238 -0
  956. package/templates/chat-app/lib/eve/reconcile-workspace-turn.ts +137 -0
  957. package/templates/chat-app/lib/eve/recover-creations.test.ts +63 -0
  958. package/templates/chat-app/lib/eve/recover-creations.ts +83 -0
  959. package/templates/chat-app/lib/eve/request-copy.test.ts +95 -0
  960. package/templates/chat-app/lib/eve/request-copy.ts +129 -0
  961. package/templates/chat-app/lib/eve/request-policy.test.ts +54 -0
  962. package/templates/chat-app/lib/eve/request-policy.ts +120 -0
  963. package/templates/chat-app/lib/eve/research-progress.test.ts +95 -0
  964. package/templates/chat-app/lib/eve/research-progress.ts +42 -0
  965. package/templates/chat-app/lib/eve/resolve-creation-request.ts +59 -0
  966. package/templates/chat-app/lib/eve/response-group-candidates.ts +16 -0
  967. package/templates/chat-app/lib/eve/response-group-contracts.ts +23 -0
  968. package/templates/chat-app/lib/eve/response-group-input.ts +39 -0
  969. package/templates/chat-app/lib/eve/response-group-lineage.test.ts +133 -0
  970. package/templates/chat-app/lib/eve/response-group-lineage.ts +201 -0
  971. package/templates/chat-app/lib/eve/response-group.test.ts +101 -0
  972. package/templates/chat-app/lib/eve/response-group.ts +139 -0
  973. package/templates/chat-app/lib/eve/response-model.test.ts +52 -0
  974. package/templates/chat-app/lib/eve/response-model.ts +46 -0
  975. package/templates/chat-app/lib/eve/restore-message-attachments.test.ts +421 -0
  976. package/templates/chat-app/lib/eve/restore-message-attachments.ts +241 -0
  977. package/templates/chat-app/lib/eve/retire-session.test.ts +158 -0
  978. package/templates/chat-app/lib/eve/retire-session.ts +140 -0
  979. package/templates/chat-app/lib/eve/sandbox-environment.test.ts +49 -0
  980. package/templates/chat-app/lib/eve/sandbox-environment.ts +29 -0
  981. package/templates/chat-app/lib/eve/save-copy-operation.ts +33 -0
  982. package/templates/chat-app/lib/eve/save-document.ts +87 -0
  983. package/templates/chat-app/lib/eve/selected-tools.ts +22 -0
  984. package/templates/chat-app/lib/eve/send-command.test.ts +36 -0
  985. package/templates/chat-app/lib/eve/send-command.ts +54 -0
  986. package/templates/chat-app/lib/eve/server.test.ts +90 -0
  987. package/templates/chat-app/lib/eve/server.ts +60 -0
  988. package/templates/chat-app/lib/eve/session-identity.ts +21 -0
  989. package/templates/chat-app/lib/eve/session-mapping-error.ts +19 -0
  990. package/templates/chat-app/lib/eve/session-profile.test.ts +49 -0
  991. package/templates/chat-app/lib/eve/session-profile.ts +22 -0
  992. package/templates/chat-app/lib/eve/shared-messages.test.ts +270 -0
  993. package/templates/chat-app/lib/eve/shared-messages.ts +158 -0
  994. package/templates/chat-app/lib/eve/spending-admission.ts +11 -0
  995. package/templates/chat-app/lib/eve/stream-positions.test.ts +51 -0
  996. package/templates/chat-app/lib/eve/stream-positions.ts +27 -0
  997. package/templates/chat-app/lib/eve/tool-availability.ts +34 -0
  998. package/templates/chat-app/lib/eve/tool-cost.test.ts +46 -0
  999. package/templates/chat-app/lib/eve/tool-cost.ts +111 -0
  1000. package/templates/chat-app/lib/eve/tool-image-context.ts +11 -0
  1001. package/templates/chat-app/lib/eve/tool-model-output.ts +15 -0
  1002. package/templates/chat-app/lib/eve/tool-models.ts +36 -0
  1003. package/templates/chat-app/lib/eve/tool-result.test.ts +20 -0
  1004. package/templates/chat-app/lib/eve/tool-result.ts +97 -0
  1005. package/templates/chat-app/lib/eve/tool-types.test.ts +60 -0
  1006. package/templates/chat-app/lib/eve/tool-types.ts +35 -0
  1007. package/templates/chat-app/lib/eve/tool-ui-state.ts +19 -0
  1008. package/templates/chat-app/lib/eve/tool-usage.ts +152 -0
  1009. package/templates/chat-app/lib/eve/turn-tools.ts +52 -0
  1010. package/templates/chat-app/lib/eve/usage-reconciliation-busy.ts +20 -0
  1011. package/templates/chat-app/lib/eve/usage.test.ts +230 -0
  1012. package/templates/chat-app/lib/eve/usage.ts +82 -0
  1013. package/templates/chat-app/lib/eve/verify-local-coverage.ts +84 -0
  1014. package/templates/chat-app/lib/eve/workspace-attachments.ts +173 -0
  1015. package/templates/chat-app/lib/eve/workspace-turn-evidence.test.ts +131 -0
  1016. package/templates/chat-app/lib/eve/workspace-turn-evidence.ts +51 -0
  1017. package/templates/chat-app/lib/eve/world-config.test.ts +43 -0
  1018. package/templates/chat-app/lib/eve/world-config.ts +24 -0
  1019. package/templates/chat-app/lib/features-config.test.ts +17 -0
  1020. package/templates/chat-app/lib/features-config.ts +88 -0
  1021. package/templates/chat-app/lib/file-content-response.test.ts +116 -0
  1022. package/templates/chat-app/lib/file-content-response.ts +151 -0
  1023. package/templates/chat-app/lib/file-language.test.ts +12 -0
  1024. package/templates/chat-app/lib/file-language.ts +51 -0
  1025. package/templates/chat-app/lib/file-storage.test.ts +123 -0
  1026. package/templates/chat-app/lib/file-storage.ts +184 -0
  1027. package/templates/chat-app/lib/file-url.test.ts +60 -0
  1028. package/templates/chat-app/lib/file-url.ts +49 -0
  1029. package/templates/chat-app/lib/highlighter.tsx +124 -0
  1030. package/templates/chat-app/lib/id.ts +5 -0
  1031. package/templates/chat-app/lib/is-non-empty-string.test.ts +21 -0
  1032. package/templates/chat-app/lib/is-non-empty-string.ts +2 -0
  1033. package/templates/chat-app/lib/limits/tokens.ts +9 -0
  1034. package/templates/chat-app/lib/logger.ts +28 -0
  1035. package/templates/chat-app/lib/playwright-test-environment.ts +17 -0
  1036. package/templates/chat-app/lib/plugin-route.ts +16 -0
  1037. package/templates/chat-app/lib/readonly-native-surface.ts +23 -0
  1038. package/templates/chat-app/lib/readonly-react-node.ts +8 -0
  1039. package/templates/chat-app/lib/required-credentials.test.ts +141 -0
  1040. package/templates/chat-app/lib/required-credentials.ts +66 -0
  1041. package/templates/chat-app/lib/sandbox/runtime.ts +12 -0
  1042. package/templates/chat-app/lib/sign-out.test.ts +19 -0
  1043. package/templates/chat-app/lib/sign-out.ts +17 -0
  1044. package/templates/chat-app/lib/social-auth.test.ts +79 -0
  1045. package/templates/chat-app/lib/social-auth.ts +57 -0
  1046. package/templates/chat-app/lib/url-utils.tsx +13 -0
  1047. package/templates/chat-app/lib/url.test.ts +54 -0
  1048. package/templates/chat-app/lib/url.ts +25 -0
  1049. package/templates/chat-app/lib/utils.ts +1 -0
  1050. package/templates/chat-app/logo.svg +1 -0
  1051. package/templates/chat-app/next-env.d.ts +7 -0
  1052. package/templates/chat-app/next.config.test.ts +45 -0
  1053. package/templates/chat-app/next.config.ts +48 -0
  1054. package/templates/chat-app/oxfmt.config.ts +29 -0
  1055. package/templates/chat-app/oxlint.config.ts +38 -0
  1056. package/templates/chat-app/package.json +165 -0
  1057. package/templates/chat-app/playwright.config.ts +106 -0
  1058. package/templates/chat-app/postcss.config.mjs +8 -0
  1059. package/templates/chat-app/providers/chat-models-provider.tsx +74 -0
  1060. package/templates/chat-app/providers/chat-plugins.tsx +8 -0
  1061. package/templates/chat-app/providers/default-model-provider.tsx +91 -0
  1062. package/templates/chat-app/providers/parse-chat-id-from-pathname.test.ts +126 -0
  1063. package/templates/chat-app/providers/parse-chat-id-from-pathname.ts +51 -0
  1064. package/templates/chat-app/providers/session-provider.tsx +107 -0
  1065. package/templates/chat-app/providers/ui-direction.radix.tsx +11 -0
  1066. package/templates/chat-app/providers/ui-direction.tsx +11 -0
  1067. package/templates/chat-app/proxy.test.ts +104 -0
  1068. package/templates/chat-app/proxy.ts +128 -0
  1069. package/templates/chat-app/scripts/build-eve.ts +28 -0
  1070. package/templates/chat-app/scripts/check-db.test.ts +49 -0
  1071. package/templates/chat-app/scripts/check-db.ts +99 -0
  1072. package/templates/chat-app/scripts/check-env.ts +337 -0
  1073. package/templates/chat-app/scripts/check-worker-typescript.ts +88 -0
  1074. package/templates/chat-app/scripts/check-workflow-backend.ts +29 -0
  1075. package/templates/chat-app/scripts/cleanup.ts +112 -0
  1076. package/templates/chat-app/scripts/dev-health.ts +64 -0
  1077. package/templates/chat-app/scripts/dev-process-tree.ts +41 -0
  1078. package/templates/chat-app/scripts/dev-recovery.ts +38 -0
  1079. package/templates/chat-app/scripts/dev-supervisor.mts +297 -0
  1080. package/templates/chat-app/scripts/environment-validation-report.ts +46 -0
  1081. package/templates/chat-app/scripts/eve-setup-config.test.ts +73 -0
  1082. package/templates/chat-app/scripts/eve-setup-config.ts +51 -0
  1083. package/templates/chat-app/scripts/eve-setup.ts +179 -0
  1084. package/templates/chat-app/scripts/fetch-models.ts +30 -0
  1085. package/templates/chat-app/scripts/gateway-snapshot-warning.test.ts +9 -0
  1086. package/templates/chat-app/scripts/installed-environment-validation.ts +39 -0
  1087. package/templates/chat-app/scripts/persistent-sandbox-cleanup.ts +128 -0
  1088. package/templates/chat-app/scripts/stop-persistent-sandboxes.ts +24 -0
  1089. package/templates/chat-app/scripts/worker-bundle-source.test.ts +37 -0
  1090. package/templates/chat-app/scripts/worker-bundle-source.ts +14 -0
  1091. package/templates/chat-app/scripts/worktree-setup.sh +27 -0
  1092. package/templates/chat-app/tests/artifacts.e2e.ts +7 -0
  1093. package/templates/chat-app/tests/auth.setup.e2e.ts +11 -0
  1094. package/templates/chat-app/tests/chat.e2e.ts +20 -0
  1095. package/templates/chat-app/tests/fixtures/eve-subagent-tool.ts +1 -0
  1096. package/templates/chat-app/tests/fixtures/models/openai.svg +3 -0
  1097. package/templates/chat-app/tests/helpers/eve-dynamic-context.ts +20 -0
  1098. package/templates/chat-app/tests/helpers/eve-hook-context.ts +26 -0
  1099. package/templates/chat-app/tests/helpers/eve-tool-context.ts +24 -0
  1100. package/templates/chat-app/tests/helpers/eve-tool-events.ts +24 -0
  1101. package/templates/chat-app/tests/presentation-fonts.ts +20 -0
  1102. package/templates/chat-app/tests/reasoning.e2e.ts +7 -0
  1103. package/templates/chat-app/tests/reasoning.setup.e2e.ts +11 -0
  1104. package/templates/chat-app/tests/visual-capture.css +4 -0
  1105. package/templates/chat-app/tools/platform/documents/types.ts +11 -0
  1106. package/templates/chat-app/tools/platform/research-updates-schema.ts +60 -0
  1107. package/templates/chat-app/tools/platform/search-presentation.ts +138 -0
  1108. package/templates/chat-app/tools/platform/steps/multi-query-web-search.test.ts +45 -0
  1109. package/templates/chat-app/tools/platform/steps/multi-query-web-search.ts +142 -0
  1110. package/templates/chat-app/tools/platform/steps/search-utils.ts +26 -0
  1111. package/templates/chat-app/trpc/eve-owned-procedure.ts +26 -0
  1112. package/templates/chat-app/trpc/init.ts +173 -0
  1113. package/templates/chat-app/trpc/is-aborted-request.test.ts +26 -0
  1114. package/templates/chat-app/trpc/is-aborted-request.ts +9 -0
  1115. package/templates/chat-app/trpc/preload-query.test.ts +29 -0
  1116. package/templates/chat-app/trpc/preload-query.ts +11 -0
  1117. package/templates/chat-app/trpc/query-client.ts +32 -0
  1118. package/templates/chat-app/trpc/react.tsx +99 -0
  1119. package/templates/chat-app/trpc/routers/_app.ts +29 -0
  1120. package/templates/chat-app/trpc/routers/eve.router.ts +247 -0
  1121. package/templates/chat-app/trpc/server.tsx +33 -0
  1122. package/templates/chat-app/tsconfig.json +50 -0
  1123. package/templates/chat-app/vendor/workflow-world-postgres-5.0.0-beta.40.tgz +0 -0
  1124. package/templates/chat-app/vercel.json +10 -0
  1125. package/templates/chat-app/vitest.config.ts +11 -0
  1126. package/templates/chat-app/vitest.eve-runtime.config.ts +10 -0
  1127. package/templates/electron/CHANGELOG.md +19 -0
  1128. package/templates/electron/entitlements.mac.plist +10 -0
  1129. package/templates/electron/forge.config.ts +207 -0
  1130. package/templates/electron/icon.png +0 -0
  1131. package/templates/electron/package.json +56 -0
  1132. package/templates/electron/scripts/generate-icons.test.js +39 -0
  1133. package/templates/electron/scripts/generate-icons.ts +47 -0
  1134. package/templates/electron/scripts/run-forge.cjs +56 -0
  1135. package/templates/electron/scripts/write-branding.ts +44 -0
  1136. package/templates/electron/src/auth-request-options.test.ts +46 -0
  1137. package/templates/electron/src/auth-request-options.ts +42 -0
  1138. package/templates/electron/src/config.ts +50 -0
  1139. package/templates/electron/src/lib/auth-client.ts +53 -0
  1140. package/templates/electron/src/lib/auth-cookies.test.ts +34 -0
  1141. package/templates/electron/src/lib/auth-cookies.ts +28 -0
  1142. package/templates/electron/src/main.ts +747 -0
  1143. package/templates/electron/src/preload.d.ts +31 -0
  1144. package/templates/electron/src/preload.ts +28 -0
  1145. package/templates/electron/tsconfig.json +24 -0
@@ -0,0 +1,2982 @@
1
+ {
2
+ "id": "caa76187-cf9f-4ab3-95bf-186816ceefdd",
3
+ "prevId": "38719803-4e3a-4459-a537-9c8210b5f8eb",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account": {
8
+ "name": "account",
9
+ "schema": "",
10
+ "columns": {
11
+ "access_token": {
12
+ "name": "access_token",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": false
16
+ },
17
+ "access_token_expires_at": {
18
+ "name": "access_token_expires_at",
19
+ "type": "timestamp",
20
+ "primaryKey": false,
21
+ "notNull": false
22
+ },
23
+ "account_id": {
24
+ "name": "account_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "created_at": {
30
+ "name": "created_at",
31
+ "type": "timestamp",
32
+ "primaryKey": false,
33
+ "notNull": true,
34
+ "default": "now()"
35
+ },
36
+ "id": {
37
+ "name": "id",
38
+ "type": "text",
39
+ "primaryKey": true,
40
+ "notNull": true
41
+ },
42
+ "id_token": {
43
+ "name": "id_token",
44
+ "type": "text",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "password": {
49
+ "name": "password",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "provider_id": {
55
+ "name": "provider_id",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ },
60
+ "refresh_token": {
61
+ "name": "refresh_token",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "refresh_token_expires_at": {
67
+ "name": "refresh_token_expires_at",
68
+ "type": "timestamp",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "scope": {
73
+ "name": "scope",
74
+ "type": "text",
75
+ "primaryKey": false,
76
+ "notNull": false
77
+ },
78
+ "updated_at": {
79
+ "name": "updated_at",
80
+ "type": "timestamp",
81
+ "primaryKey": false,
82
+ "notNull": true
83
+ },
84
+ "user_id": {
85
+ "name": "user_id",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true
89
+ }
90
+ },
91
+ "indexes": {},
92
+ "foreignKeys": {
93
+ "account_user_id_user_id_fk": {
94
+ "name": "account_user_id_user_id_fk",
95
+ "tableFrom": "account",
96
+ "tableTo": "user",
97
+ "columnsFrom": ["user_id"],
98
+ "columnsTo": ["id"],
99
+ "onDelete": "cascade",
100
+ "onUpdate": "no action"
101
+ }
102
+ },
103
+ "compositePrimaryKeys": {},
104
+ "uniqueConstraints": {},
105
+ "policies": {},
106
+ "checkConstraints": {},
107
+ "isRLSEnabled": false
108
+ },
109
+ "public.EveChat": {
110
+ "name": "EveChat",
111
+ "schema": "",
112
+ "columns": {
113
+ "activeConversationId": {
114
+ "name": "activeConversationId",
115
+ "type": "uuid",
116
+ "primaryKey": false,
117
+ "notNull": false
118
+ },
119
+ "createdAt": {
120
+ "name": "createdAt",
121
+ "type": "timestamp",
122
+ "primaryKey": false,
123
+ "notNull": true,
124
+ "default": "now()"
125
+ },
126
+ "id": {
127
+ "name": "id",
128
+ "type": "uuid",
129
+ "primaryKey": true,
130
+ "notNull": true,
131
+ "default": "gen_random_uuid()"
132
+ },
133
+ "isPinned": {
134
+ "name": "isPinned",
135
+ "type": "boolean",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "default": false
139
+ },
140
+ "ownerId": {
141
+ "name": "ownerId",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": true
145
+ },
146
+ "title": {
147
+ "name": "title",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true
151
+ },
152
+ "titleStatus": {
153
+ "name": "titleStatus",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "default": "'pending'"
158
+ },
159
+ "updatedAt": {
160
+ "name": "updatedAt",
161
+ "type": "timestamp",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "default": "now()"
165
+ }
166
+ },
167
+ "indexes": {
168
+ "EveChat_search_title": {
169
+ "name": "EveChat_search_title",
170
+ "columns": [
171
+ {
172
+ "expression": "to_tsvector('simple', \"title\")",
173
+ "asc": true,
174
+ "isExpression": true,
175
+ "nulls": "last"
176
+ }
177
+ ],
178
+ "isUnique": false,
179
+ "concurrently": false,
180
+ "method": "gin",
181
+ "with": {}
182
+ },
183
+ "EveChat_owner_activity": {
184
+ "name": "EveChat_owner_activity",
185
+ "columns": [
186
+ {
187
+ "expression": "ownerId",
188
+ "isExpression": false,
189
+ "asc": true,
190
+ "nulls": "last"
191
+ },
192
+ {
193
+ "expression": "isPinned",
194
+ "isExpression": false,
195
+ "asc": true,
196
+ "nulls": "last"
197
+ },
198
+ {
199
+ "expression": "updatedAt",
200
+ "isExpression": false,
201
+ "asc": true,
202
+ "nulls": "last"
203
+ }
204
+ ],
205
+ "isUnique": false,
206
+ "concurrently": false,
207
+ "method": "btree",
208
+ "with": {}
209
+ }
210
+ },
211
+ "foreignKeys": {
212
+ "EveChat_ownerId_user_id_fk": {
213
+ "name": "EveChat_ownerId_user_id_fk",
214
+ "tableFrom": "EveChat",
215
+ "tableTo": "user",
216
+ "columnsFrom": ["ownerId"],
217
+ "columnsTo": ["id"],
218
+ "onDelete": "cascade",
219
+ "onUpdate": "no action"
220
+ }
221
+ },
222
+ "compositePrimaryKeys": {},
223
+ "uniqueConstraints": {
224
+ "EveChat_id_owner": {
225
+ "name": "EveChat_id_owner",
226
+ "nullsNotDistinct": false,
227
+ "columns": ["id", "ownerId"]
228
+ }
229
+ },
230
+ "policies": {},
231
+ "checkConstraints": {
232
+ "EveChat_title_status": {
233
+ "name": "EveChat_title_status",
234
+ "value": "\"EveChat\".\"titleStatus\" in ('pending', 'fallback', 'generated', 'manual')"
235
+ }
236
+ },
237
+ "isRLSEnabled": false
238
+ },
239
+ "public.EveChatProject": {
240
+ "name": "EveChatProject",
241
+ "schema": "",
242
+ "columns": {
243
+ "chatId": {
244
+ "name": "chatId",
245
+ "type": "uuid",
246
+ "primaryKey": true,
247
+ "notNull": true
248
+ },
249
+ "ownerId": {
250
+ "name": "ownerId",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": true
254
+ },
255
+ "projectId": {
256
+ "name": "projectId",
257
+ "type": "uuid",
258
+ "primaryKey": false,
259
+ "notNull": true
260
+ }
261
+ },
262
+ "indexes": {
263
+ "EveChatProject_project": {
264
+ "name": "EveChatProject_project",
265
+ "columns": [
266
+ {
267
+ "expression": "projectId",
268
+ "isExpression": false,
269
+ "asc": true,
270
+ "nulls": "last"
271
+ }
272
+ ],
273
+ "isUnique": false,
274
+ "concurrently": false,
275
+ "method": "btree",
276
+ "with": {}
277
+ }
278
+ },
279
+ "foreignKeys": {
280
+ "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk": {
281
+ "name": "EveChatProject_chatId_ownerId_EveChat_id_ownerId_fk",
282
+ "tableFrom": "EveChatProject",
283
+ "tableTo": "EveChat",
284
+ "columnsFrom": ["chatId", "ownerId"],
285
+ "columnsTo": ["id", "ownerId"],
286
+ "onDelete": "cascade",
287
+ "onUpdate": "no action"
288
+ },
289
+ "EveChatProject_projectId_ownerId_Project_id_userId_fk": {
290
+ "name": "EveChatProject_projectId_ownerId_Project_id_userId_fk",
291
+ "tableFrom": "EveChatProject",
292
+ "tableTo": "Project",
293
+ "columnsFrom": ["projectId", "ownerId"],
294
+ "columnsTo": ["id", "userId"],
295
+ "onDelete": "cascade",
296
+ "onUpdate": "no action"
297
+ }
298
+ },
299
+ "compositePrimaryKeys": {},
300
+ "uniqueConstraints": {},
301
+ "policies": {},
302
+ "checkConstraints": {},
303
+ "isRLSEnabled": false
304
+ },
305
+ "public.EveCodeSandbox": {
306
+ "name": "EveCodeSandbox",
307
+ "schema": "",
308
+ "columns": {
309
+ "callId": {
310
+ "name": "callId",
311
+ "type": "text",
312
+ "primaryKey": false,
313
+ "notNull": true
314
+ },
315
+ "conversationId": {
316
+ "name": "conversationId",
317
+ "type": "uuid",
318
+ "primaryKey": false,
319
+ "notNull": true
320
+ },
321
+ "createdAt": {
322
+ "name": "createdAt",
323
+ "type": "timestamp",
324
+ "primaryKey": false,
325
+ "notNull": true,
326
+ "default": "now()"
327
+ },
328
+ "creationConfirmed": {
329
+ "name": "creationConfirmed",
330
+ "type": "boolean",
331
+ "primaryKey": false,
332
+ "notNull": true,
333
+ "default": false
334
+ },
335
+ "name": {
336
+ "name": "name",
337
+ "type": "text",
338
+ "primaryKey": true,
339
+ "notNull": true
340
+ },
341
+ "ownerId": {
342
+ "name": "ownerId",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "state": {
348
+ "name": "state",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "default": "'unresolved'"
353
+ }
354
+ },
355
+ "indexes": {
356
+ "EveCodeSandbox_conversation": {
357
+ "name": "EveCodeSandbox_conversation",
358
+ "columns": [
359
+ {
360
+ "expression": "conversationId",
361
+ "isExpression": false,
362
+ "asc": true,
363
+ "nulls": "last"
364
+ }
365
+ ],
366
+ "isUnique": false,
367
+ "concurrently": false,
368
+ "method": "btree",
369
+ "with": {}
370
+ }
371
+ },
372
+ "foreignKeys": {
373
+ "EveCodeSandbox_conversationId_ownerId_EveConversation_id_ownerId_fk": {
374
+ "name": "EveCodeSandbox_conversationId_ownerId_EveConversation_id_ownerId_fk",
375
+ "tableFrom": "EveCodeSandbox",
376
+ "tableTo": "EveConversation",
377
+ "columnsFrom": ["conversationId", "ownerId"],
378
+ "columnsTo": ["id", "ownerId"],
379
+ "onDelete": "no action",
380
+ "onUpdate": "no action"
381
+ }
382
+ },
383
+ "compositePrimaryKeys": {},
384
+ "uniqueConstraints": {},
385
+ "policies": {},
386
+ "checkConstraints": {},
387
+ "isRLSEnabled": false
388
+ },
389
+ "public.EveConversation": {
390
+ "name": "EveConversation",
391
+ "schema": "",
392
+ "columns": {
393
+ "chatId": {
394
+ "name": "chatId",
395
+ "type": "uuid",
396
+ "primaryKey": false,
397
+ "notNull": true
398
+ },
399
+ "createdAt": {
400
+ "name": "createdAt",
401
+ "type": "timestamp",
402
+ "primaryKey": false,
403
+ "notNull": true,
404
+ "default": "now()"
405
+ },
406
+ "creationKind": {
407
+ "name": "creationKind",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "default": "'message'"
412
+ },
413
+ "firstMessage": {
414
+ "name": "firstMessage",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": true
418
+ },
419
+ "forkCheckpointId": {
420
+ "name": "forkCheckpointId",
421
+ "type": "uuid",
422
+ "primaryKey": false,
423
+ "notNull": false
424
+ },
425
+ "forkKind": {
426
+ "name": "forkKind",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": false
430
+ },
431
+ "forkMessageId": {
432
+ "name": "forkMessageId",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": false
436
+ },
437
+ "forkTurnId": {
438
+ "name": "forkTurnId",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": false
442
+ },
443
+ "guestCleanupAttemptedAt": {
444
+ "name": "guestCleanupAttemptedAt",
445
+ "type": "timestamp with time zone",
446
+ "primaryKey": false,
447
+ "notNull": false
448
+ },
449
+ "id": {
450
+ "name": "id",
451
+ "type": "uuid",
452
+ "primaryKey": true,
453
+ "notNull": true,
454
+ "default": "gen_random_uuid()"
455
+ },
456
+ "initialContentHash": {
457
+ "name": "initialContentHash",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": false
461
+ },
462
+ "initialModelId": {
463
+ "name": "initialModelId",
464
+ "type": "text",
465
+ "primaryKey": false,
466
+ "notNull": false
467
+ },
468
+ "initialProjectId": {
469
+ "name": "initialProjectId",
470
+ "type": "uuid",
471
+ "primaryKey": false,
472
+ "notNull": false
473
+ },
474
+ "initialRequest": {
475
+ "name": "initialRequest",
476
+ "type": "jsonb",
477
+ "primaryKey": false,
478
+ "notNull": false
479
+ },
480
+ "operationId": {
481
+ "name": "operationId",
482
+ "type": "uuid",
483
+ "primaryKey": false,
484
+ "notNull": true
485
+ },
486
+ "ownerId": {
487
+ "name": "ownerId",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true
491
+ },
492
+ "parentConversationId": {
493
+ "name": "parentConversationId",
494
+ "type": "uuid",
495
+ "primaryKey": false,
496
+ "notNull": false
497
+ },
498
+ "rootConversationId": {
499
+ "name": "rootConversationId",
500
+ "type": "uuid",
501
+ "primaryKey": false,
502
+ "notNull": false
503
+ },
504
+ "sessionId": {
505
+ "name": "sessionId",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": false
509
+ },
510
+ "state": {
511
+ "name": "state",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": true,
515
+ "default": "'creating'"
516
+ },
517
+ "usageStreamIndex": {
518
+ "name": "usageStreamIndex",
519
+ "type": "integer",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "default": 0
523
+ },
524
+ "visibility": {
525
+ "name": "visibility",
526
+ "type": "varchar",
527
+ "primaryKey": false,
528
+ "notNull": true,
529
+ "default": "'private'"
530
+ }
531
+ },
532
+ "indexes": {
533
+ "EveConversation_owner_chat": {
534
+ "name": "EveConversation_owner_chat",
535
+ "columns": [
536
+ {
537
+ "expression": "ownerId",
538
+ "isExpression": false,
539
+ "asc": true,
540
+ "nulls": "last"
541
+ },
542
+ {
543
+ "expression": "chatId",
544
+ "isExpression": false,
545
+ "asc": true,
546
+ "nulls": "last"
547
+ }
548
+ ],
549
+ "isUnique": false,
550
+ "concurrently": false,
551
+ "method": "btree",
552
+ "with": {}
553
+ },
554
+ "EveConversation_owner_root": {
555
+ "name": "EveConversation_owner_root",
556
+ "columns": [
557
+ {
558
+ "expression": "ownerId",
559
+ "isExpression": false,
560
+ "asc": true,
561
+ "nulls": "last"
562
+ },
563
+ {
564
+ "expression": "rootConversationId",
565
+ "isExpression": false,
566
+ "asc": true,
567
+ "nulls": "last"
568
+ }
569
+ ],
570
+ "isUnique": false,
571
+ "concurrently": false,
572
+ "method": "btree",
573
+ "with": {}
574
+ },
575
+ "EveConversation_owner_operation": {
576
+ "name": "EveConversation_owner_operation",
577
+ "columns": [
578
+ {
579
+ "expression": "ownerId",
580
+ "isExpression": false,
581
+ "asc": true,
582
+ "nulls": "last"
583
+ },
584
+ {
585
+ "expression": "operationId",
586
+ "isExpression": false,
587
+ "asc": true,
588
+ "nulls": "last"
589
+ }
590
+ ],
591
+ "isUnique": true,
592
+ "concurrently": false,
593
+ "method": "btree",
594
+ "with": {}
595
+ }
596
+ },
597
+ "foreignKeys": {
598
+ "EveConversation_ownerId_user_id_fk": {
599
+ "name": "EveConversation_ownerId_user_id_fk",
600
+ "tableFrom": "EveConversation",
601
+ "tableTo": "user",
602
+ "columnsFrom": ["ownerId"],
603
+ "columnsTo": ["id"],
604
+ "onDelete": "no action",
605
+ "onUpdate": "no action"
606
+ },
607
+ "EveConversation_chat_owner_fk": {
608
+ "name": "EveConversation_chat_owner_fk",
609
+ "tableFrom": "EveConversation",
610
+ "tableTo": "EveChat",
611
+ "columnsFrom": ["chatId", "ownerId"],
612
+ "columnsTo": ["id", "ownerId"],
613
+ "onDelete": "no action",
614
+ "onUpdate": "no action"
615
+ },
616
+ "EveConversation_parent_owner_fk": {
617
+ "name": "EveConversation_parent_owner_fk",
618
+ "tableFrom": "EveConversation",
619
+ "tableTo": "EveConversation",
620
+ "columnsFrom": ["parentConversationId", "ownerId", "chatId"],
621
+ "columnsTo": ["id", "ownerId", "chatId"],
622
+ "onDelete": "no action",
623
+ "onUpdate": "no action"
624
+ },
625
+ "EveConversation_root_owner_fk": {
626
+ "name": "EveConversation_root_owner_fk",
627
+ "tableFrom": "EveConversation",
628
+ "tableTo": "EveConversation",
629
+ "columnsFrom": ["rootConversationId", "ownerId", "chatId"],
630
+ "columnsTo": ["id", "ownerId", "chatId"],
631
+ "onDelete": "no action",
632
+ "onUpdate": "no action"
633
+ }
634
+ },
635
+ "compositePrimaryKeys": {},
636
+ "uniqueConstraints": {
637
+ "EveConversation_sessionId_unique": {
638
+ "name": "EveConversation_sessionId_unique",
639
+ "nullsNotDistinct": false,
640
+ "columns": ["sessionId"]
641
+ },
642
+ "EveConversation_id_owner": {
643
+ "name": "EveConversation_id_owner",
644
+ "nullsNotDistinct": false,
645
+ "columns": ["id", "ownerId"]
646
+ },
647
+ "EveConversation_id_owner_chat": {
648
+ "name": "EveConversation_id_owner_chat",
649
+ "nullsNotDistinct": false,
650
+ "columns": ["id", "ownerId", "chatId"]
651
+ }
652
+ },
653
+ "policies": {},
654
+ "checkConstraints": {
655
+ "EveConversation_creation_kind": {
656
+ "name": "EveConversation_creation_kind",
657
+ "value": "\"EveConversation\".\"creationKind\" in ('message', 'copy')"
658
+ },
659
+ "EveConversation_copy_root": {
660
+ "name": "EveConversation_copy_root",
661
+ "value": "\"EveConversation\".\"creationKind\" <> 'copy' or (\n \"EveConversation\".\"parentConversationId\" is null and \"EveConversation\".\"rootConversationId\" is null and\n \"EveConversation\".\"forkTurnId\" is null and \"EveConversation\".\"forkMessageId\" is null and \"EveConversation\".\"forkCheckpointId\" is null and\n \"EveConversation\".\"forkKind\" is null\n )"
662
+ },
663
+ "EveConversation_named_fork_shape": {
664
+ "name": "EveConversation_named_fork_shape",
665
+ "value": "\"EveConversation\".\"forkCheckpointId\" is null or (\n \"EveConversation\".\"parentConversationId\" is not null and \"EveConversation\".\"forkMessageId\" is null\n )"
666
+ },
667
+ "EveConversation_fork_shape": {
668
+ "name": "EveConversation_fork_shape",
669
+ "value": "(\n \"EveConversation\".\"parentConversationId\" is null and \"EveConversation\".\"rootConversationId\" is null and\n \"EveConversation\".\"forkTurnId\" is null and \"EveConversation\".\"forkMessageId\" is null and \"EveConversation\".\"forkKind\" is null\n ) or (\n \"EveConversation\".\"parentConversationId\" is not null and \"EveConversation\".\"rootConversationId\" is not null and\n (\n (\"EveConversation\".\"forkTurnId\" is not null and \"EveConversation\".\"forkTurnId\" ~ '^turn_(0|[1-9][0-9]*)$' and \"EveConversation\".\"forkMessageId\" is null) or\n (\"EveConversation\".\"forkMessageId\" is not null and \"EveConversation\".\"forkMessageId\" ~ '^seed_message_(0|[1-9][0-9]{0,3})$' and \"EveConversation\".\"forkTurnId\" is null)\n ) and\n \"EveConversation\".\"parentConversationId\" <> \"EveConversation\".\"id\" and \"EveConversation\".\"rootConversationId\" <> \"EveConversation\".\"id\"\n )"
670
+ },
671
+ "EveConversation_fork_kind": {
672
+ "name": "EveConversation_fork_kind",
673
+ "value": "\"EveConversation\".\"forkKind\" is null or \"EveConversation\".\"forkKind\" in ('edit', 'regenerate', 'comparison')"
674
+ }
675
+ },
676
+ "isRLSEnabled": false
677
+ },
678
+ "public.EveConversationCopy": {
679
+ "name": "EveConversationCopy",
680
+ "schema": "",
681
+ "columns": {
682
+ "acceptedAt": {
683
+ "name": "acceptedAt",
684
+ "type": "timestamp",
685
+ "primaryKey": false,
686
+ "notNull": false
687
+ },
688
+ "conversationId": {
689
+ "name": "conversationId",
690
+ "type": "uuid",
691
+ "primaryKey": true,
692
+ "notNull": true
693
+ },
694
+ "documentsReady": {
695
+ "name": "documentsReady",
696
+ "type": "boolean",
697
+ "primaryKey": false,
698
+ "notNull": true,
699
+ "default": false
700
+ },
701
+ "ownerId": {
702
+ "name": "ownerId",
703
+ "type": "text",
704
+ "primaryKey": false,
705
+ "notNull": true
706
+ },
707
+ "phase": {
708
+ "name": "phase",
709
+ "type": "text",
710
+ "primaryKey": false,
711
+ "notNull": true,
712
+ "default": "'preparing'"
713
+ },
714
+ "plan": {
715
+ "name": "plan",
716
+ "type": "jsonb",
717
+ "primaryKey": false,
718
+ "notNull": false
719
+ },
720
+ "planHash": {
721
+ "name": "planHash",
722
+ "type": "text",
723
+ "primaryKey": false,
724
+ "notNull": true
725
+ },
726
+ "projectionHash": {
727
+ "name": "projectionHash",
728
+ "type": "text",
729
+ "primaryKey": false,
730
+ "notNull": true
731
+ },
732
+ "seed": {
733
+ "name": "seed",
734
+ "type": "jsonb",
735
+ "primaryKey": false,
736
+ "notNull": false
737
+ },
738
+ "sourceConversationId": {
739
+ "name": "sourceConversationId",
740
+ "type": "uuid",
741
+ "primaryKey": false,
742
+ "notNull": true
743
+ },
744
+ "sourceOwnerId": {
745
+ "name": "sourceOwnerId",
746
+ "type": "text",
747
+ "primaryKey": false,
748
+ "notNull": true
749
+ },
750
+ "sourceSessionId": {
751
+ "name": "sourceSessionId",
752
+ "type": "text",
753
+ "primaryKey": false,
754
+ "notNull": true
755
+ }
756
+ },
757
+ "indexes": {},
758
+ "foreignKeys": {
759
+ "EveConversationCopy_owner_fk": {
760
+ "name": "EveConversationCopy_owner_fk",
761
+ "tableFrom": "EveConversationCopy",
762
+ "tableTo": "EveConversation",
763
+ "columnsFrom": ["conversationId", "ownerId"],
764
+ "columnsTo": ["id", "ownerId"],
765
+ "onDelete": "no action",
766
+ "onUpdate": "no action"
767
+ }
768
+ },
769
+ "compositePrimaryKeys": {},
770
+ "uniqueConstraints": {
771
+ "EveConversationCopy_owner_identity": {
772
+ "name": "EveConversationCopy_owner_identity",
773
+ "nullsNotDistinct": false,
774
+ "columns": ["conversationId", "ownerId"]
775
+ }
776
+ },
777
+ "policies": {},
778
+ "checkConstraints": {
779
+ "EveConversationCopy_phase_payload": {
780
+ "name": "EveConversationCopy_phase_payload",
781
+ "value": "(\n \"EveConversationCopy\".\"phase\" = 'preparing' and \"EveConversationCopy\".\"plan\" is not null and \"EveConversationCopy\".\"seed\" is null and \"EveConversationCopy\".\"acceptedAt\" is null\n ) or (\n \"EveConversationCopy\".\"phase\" = 'accepted' and \"EveConversationCopy\".\"plan\" is null and \"EveConversationCopy\".\"seed\" is not null and \"EveConversationCopy\".\"acceptedAt\" is not null and \"EveConversationCopy\".\"documentsReady\"\n ) or (\n \"EveConversationCopy\".\"phase\" = 'bound' and \"EveConversationCopy\".\"plan\" is null and \"EveConversationCopy\".\"seed\" is null and \"EveConversationCopy\".\"acceptedAt\" is not null and \"EveConversationCopy\".\"documentsReady\"\n ) or (\n \"EveConversationCopy\".\"phase\" = 'rejected' and \"EveConversationCopy\".\"plan\" is null and \"EveConversationCopy\".\"seed\" is null and \"EveConversationCopy\".\"acceptedAt\" is null\n )"
782
+ }
783
+ },
784
+ "isRLSEnabled": false
785
+ },
786
+ "public.EveConversationCopyFile": {
787
+ "name": "EveConversationCopyFile",
788
+ "schema": "",
789
+ "columns": {
790
+ "conversationId": {
791
+ "name": "conversationId",
792
+ "type": "uuid",
793
+ "primaryKey": false,
794
+ "notNull": true
795
+ },
796
+ "key": {
797
+ "name": "key",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": true
801
+ },
802
+ "mediaType": {
803
+ "name": "mediaType",
804
+ "type": "text",
805
+ "primaryKey": false,
806
+ "notNull": true
807
+ },
808
+ "ownerId": {
809
+ "name": "ownerId",
810
+ "type": "text",
811
+ "primaryKey": false,
812
+ "notNull": true
813
+ },
814
+ "sha256": {
815
+ "name": "sha256",
816
+ "type": "text",
817
+ "primaryKey": false,
818
+ "notNull": true
819
+ },
820
+ "size": {
821
+ "name": "size",
822
+ "type": "integer",
823
+ "primaryKey": false,
824
+ "notNull": true
825
+ },
826
+ "writtenAt": {
827
+ "name": "writtenAt",
828
+ "type": "timestamp",
829
+ "primaryKey": false,
830
+ "notNull": false
831
+ }
832
+ },
833
+ "indexes": {},
834
+ "foreignKeys": {
835
+ "EveConversationCopyFile_copy_owner_fk": {
836
+ "name": "EveConversationCopyFile_copy_owner_fk",
837
+ "tableFrom": "EveConversationCopyFile",
838
+ "tableTo": "EveConversationCopy",
839
+ "columnsFrom": ["conversationId", "ownerId"],
840
+ "columnsTo": ["conversationId", "ownerId"],
841
+ "onDelete": "no action",
842
+ "onUpdate": "no action"
843
+ }
844
+ },
845
+ "compositePrimaryKeys": {
846
+ "EveConversationCopyFile_conversationId_key_pk": {
847
+ "name": "EveConversationCopyFile_conversationId_key_pk",
848
+ "columns": ["conversationId", "key"]
849
+ }
850
+ },
851
+ "uniqueConstraints": {},
852
+ "policies": {},
853
+ "checkConstraints": {
854
+ "EveConversationCopyFile_size": {
855
+ "name": "EveConversationCopyFile_size",
856
+ "value": "\"EveConversationCopyFile\".\"size\" > 0"
857
+ },
858
+ "EveConversationCopyFile_hash": {
859
+ "name": "EveConversationCopyFile_hash",
860
+ "value": "\"EveConversationCopyFile\".\"sha256\" ~ '^[a-f0-9]{64}$'"
861
+ }
862
+ },
863
+ "isRLSEnabled": false
864
+ },
865
+ "public.EveDocumentCheckpoint": {
866
+ "name": "EveDocumentCheckpoint",
867
+ "schema": "",
868
+ "columns": {
869
+ "conversationId": {
870
+ "name": "conversationId",
871
+ "type": "uuid",
872
+ "primaryKey": false,
873
+ "notNull": true
874
+ },
875
+ "ownerId": {
876
+ "name": "ownerId",
877
+ "type": "text",
878
+ "primaryKey": false,
879
+ "notNull": true
880
+ },
881
+ "turnIndex": {
882
+ "name": "turnIndex",
883
+ "type": "integer",
884
+ "primaryKey": false,
885
+ "notNull": true
886
+ }
887
+ },
888
+ "indexes": {},
889
+ "foreignKeys": {
890
+ "EveDocumentCheckpoint_conversation_owner_fk": {
891
+ "name": "EveDocumentCheckpoint_conversation_owner_fk",
892
+ "tableFrom": "EveDocumentCheckpoint",
893
+ "tableTo": "EveConversation",
894
+ "columnsFrom": ["conversationId", "ownerId"],
895
+ "columnsTo": ["id", "ownerId"],
896
+ "onDelete": "no action",
897
+ "onUpdate": "no action"
898
+ }
899
+ },
900
+ "compositePrimaryKeys": {
901
+ "EveDocumentCheckpoint_conversationId_turnIndex_pk": {
902
+ "name": "EveDocumentCheckpoint_conversationId_turnIndex_pk",
903
+ "columns": ["conversationId", "turnIndex"]
904
+ }
905
+ },
906
+ "uniqueConstraints": {
907
+ "EveDocumentCheckpoint_owner_identity": {
908
+ "name": "EveDocumentCheckpoint_owner_identity",
909
+ "nullsNotDistinct": false,
910
+ "columns": ["conversationId", "turnIndex", "ownerId"]
911
+ }
912
+ },
913
+ "policies": {},
914
+ "checkConstraints": {
915
+ "EveDocumentCheckpoint_turn_nonnegative": {
916
+ "name": "EveDocumentCheckpoint_turn_nonnegative",
917
+ "value": "\"EveDocumentCheckpoint\".\"turnIndex\" >= 0"
918
+ }
919
+ },
920
+ "isRLSEnabled": false
921
+ },
922
+ "public.EveDocumentCheckpointEntry": {
923
+ "name": "EveDocumentCheckpointEntry",
924
+ "schema": "",
925
+ "columns": {
926
+ "conversationId": {
927
+ "name": "conversationId",
928
+ "type": "uuid",
929
+ "primaryKey": false,
930
+ "notNull": true
931
+ },
932
+ "documentId": {
933
+ "name": "documentId",
934
+ "type": "uuid",
935
+ "primaryKey": false,
936
+ "notNull": true
937
+ },
938
+ "ownerId": {
939
+ "name": "ownerId",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": true
943
+ },
944
+ "revisionId": {
945
+ "name": "revisionId",
946
+ "type": "uuid",
947
+ "primaryKey": false,
948
+ "notNull": true
949
+ },
950
+ "turnIndex": {
951
+ "name": "turnIndex",
952
+ "type": "integer",
953
+ "primaryKey": false,
954
+ "notNull": true
955
+ }
956
+ },
957
+ "indexes": {},
958
+ "foreignKeys": {
959
+ "EveDocumentCheckpointEntry_checkpoint_owner_fk": {
960
+ "name": "EveDocumentCheckpointEntry_checkpoint_owner_fk",
961
+ "tableFrom": "EveDocumentCheckpointEntry",
962
+ "tableTo": "EveDocumentCheckpoint",
963
+ "columnsFrom": ["conversationId", "turnIndex", "ownerId"],
964
+ "columnsTo": ["conversationId", "turnIndex", "ownerId"],
965
+ "onDelete": "no action",
966
+ "onUpdate": "no action"
967
+ },
968
+ "EveDocumentCheckpointEntry_revision_owner_fk": {
969
+ "name": "EveDocumentCheckpointEntry_revision_owner_fk",
970
+ "tableFrom": "EveDocumentCheckpointEntry",
971
+ "tableTo": "EveDocumentRevision",
972
+ "columnsFrom": ["revisionId", "documentId", "ownerId"],
973
+ "columnsTo": ["id", "documentId", "ownerId"],
974
+ "onDelete": "no action",
975
+ "onUpdate": "no action"
976
+ }
977
+ },
978
+ "compositePrimaryKeys": {
979
+ "EveDocumentCheckpointEntry_conversationId_turnIndex_documentId_pk": {
980
+ "name": "EveDocumentCheckpointEntry_conversationId_turnIndex_documentId_pk",
981
+ "columns": ["conversationId", "turnIndex", "documentId"]
982
+ }
983
+ },
984
+ "uniqueConstraints": {},
985
+ "policies": {},
986
+ "checkConstraints": {},
987
+ "isRLSEnabled": false
988
+ },
989
+ "public.EveDocumentHead": {
990
+ "name": "EveDocumentHead",
991
+ "schema": "",
992
+ "columns": {
993
+ "conversationId": {
994
+ "name": "conversationId",
995
+ "type": "uuid",
996
+ "primaryKey": false,
997
+ "notNull": true
998
+ },
999
+ "documentId": {
1000
+ "name": "documentId",
1001
+ "type": "uuid",
1002
+ "primaryKey": false,
1003
+ "notNull": true
1004
+ },
1005
+ "ownerId": {
1006
+ "name": "ownerId",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true
1010
+ },
1011
+ "revisionId": {
1012
+ "name": "revisionId",
1013
+ "type": "uuid",
1014
+ "primaryKey": false,
1015
+ "notNull": true
1016
+ }
1017
+ },
1018
+ "indexes": {},
1019
+ "foreignKeys": {
1020
+ "EveDocumentHead_conversation_owner_fk": {
1021
+ "name": "EveDocumentHead_conversation_owner_fk",
1022
+ "tableFrom": "EveDocumentHead",
1023
+ "tableTo": "EveConversation",
1024
+ "columnsFrom": ["conversationId", "ownerId"],
1025
+ "columnsTo": ["id", "ownerId"],
1026
+ "onDelete": "no action",
1027
+ "onUpdate": "no action"
1028
+ },
1029
+ "EveDocumentHead_revision_document_owner_fk": {
1030
+ "name": "EveDocumentHead_revision_document_owner_fk",
1031
+ "tableFrom": "EveDocumentHead",
1032
+ "tableTo": "EveDocumentRevision",
1033
+ "columnsFrom": ["revisionId", "documentId", "ownerId"],
1034
+ "columnsTo": ["id", "documentId", "ownerId"],
1035
+ "onDelete": "no action",
1036
+ "onUpdate": "no action"
1037
+ }
1038
+ },
1039
+ "compositePrimaryKeys": {
1040
+ "EveDocumentHead_conversationId_documentId_pk": {
1041
+ "name": "EveDocumentHead_conversationId_documentId_pk",
1042
+ "columns": ["conversationId", "documentId"]
1043
+ }
1044
+ },
1045
+ "uniqueConstraints": {},
1046
+ "policies": {},
1047
+ "checkConstraints": {},
1048
+ "isRLSEnabled": false
1049
+ },
1050
+ "public.EveDocumentRevision": {
1051
+ "name": "EveDocumentRevision",
1052
+ "schema": "",
1053
+ "columns": {
1054
+ "content": {
1055
+ "name": "content",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": true
1059
+ },
1060
+ "conversationId": {
1061
+ "name": "conversationId",
1062
+ "type": "uuid",
1063
+ "primaryKey": false,
1064
+ "notNull": true
1065
+ },
1066
+ "createdAt": {
1067
+ "name": "createdAt",
1068
+ "type": "timestamp",
1069
+ "primaryKey": false,
1070
+ "notNull": true,
1071
+ "default": "now()"
1072
+ },
1073
+ "documentId": {
1074
+ "name": "documentId",
1075
+ "type": "uuid",
1076
+ "primaryKey": false,
1077
+ "notNull": true
1078
+ },
1079
+ "fileIds": {
1080
+ "name": "fileIds",
1081
+ "type": "jsonb",
1082
+ "primaryKey": false,
1083
+ "notNull": true,
1084
+ "default": "'[]'::jsonb"
1085
+ },
1086
+ "id": {
1087
+ "name": "id",
1088
+ "type": "uuid",
1089
+ "primaryKey": true,
1090
+ "notNull": true,
1091
+ "default": "gen_random_uuid()"
1092
+ },
1093
+ "kind": {
1094
+ "name": "kind",
1095
+ "type": "varchar",
1096
+ "primaryKey": false,
1097
+ "notNull": true
1098
+ },
1099
+ "operationId": {
1100
+ "name": "operationId",
1101
+ "type": "text",
1102
+ "primaryKey": false,
1103
+ "notNull": true
1104
+ },
1105
+ "ownerId": {
1106
+ "name": "ownerId",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": true
1110
+ },
1111
+ "parentRevisionId": {
1112
+ "name": "parentRevisionId",
1113
+ "type": "uuid",
1114
+ "primaryKey": false,
1115
+ "notNull": false
1116
+ },
1117
+ "title": {
1118
+ "name": "title",
1119
+ "type": "text",
1120
+ "primaryKey": false,
1121
+ "notNull": true
1122
+ },
1123
+ "turnIndex": {
1124
+ "name": "turnIndex",
1125
+ "type": "integer",
1126
+ "primaryKey": false,
1127
+ "notNull": false
1128
+ }
1129
+ },
1130
+ "indexes": {
1131
+ "EveDocumentRevision_operation": {
1132
+ "name": "EveDocumentRevision_operation",
1133
+ "columns": [
1134
+ {
1135
+ "expression": "conversationId",
1136
+ "isExpression": false,
1137
+ "asc": true,
1138
+ "nulls": "last"
1139
+ },
1140
+ {
1141
+ "expression": "operationId",
1142
+ "isExpression": false,
1143
+ "asc": true,
1144
+ "nulls": "last"
1145
+ }
1146
+ ],
1147
+ "isUnique": true,
1148
+ "concurrently": false,
1149
+ "method": "btree",
1150
+ "with": {}
1151
+ }
1152
+ },
1153
+ "foreignKeys": {
1154
+ "EveDocumentRevision_conversation_owner_fk": {
1155
+ "name": "EveDocumentRevision_conversation_owner_fk",
1156
+ "tableFrom": "EveDocumentRevision",
1157
+ "tableTo": "EveConversation",
1158
+ "columnsFrom": ["conversationId", "ownerId"],
1159
+ "columnsTo": ["id", "ownerId"],
1160
+ "onDelete": "no action",
1161
+ "onUpdate": "no action"
1162
+ },
1163
+ "EveDocumentRevision_parent_document_owner_fk": {
1164
+ "name": "EveDocumentRevision_parent_document_owner_fk",
1165
+ "tableFrom": "EveDocumentRevision",
1166
+ "tableTo": "EveDocumentRevision",
1167
+ "columnsFrom": ["parentRevisionId", "documentId", "ownerId"],
1168
+ "columnsTo": ["id", "documentId", "ownerId"],
1169
+ "onDelete": "no action",
1170
+ "onUpdate": "no action"
1171
+ }
1172
+ },
1173
+ "compositePrimaryKeys": {},
1174
+ "uniqueConstraints": {
1175
+ "EveDocumentRevision_identity": {
1176
+ "name": "EveDocumentRevision_identity",
1177
+ "nullsNotDistinct": false,
1178
+ "columns": ["id", "documentId", "ownerId"]
1179
+ }
1180
+ },
1181
+ "policies": {},
1182
+ "checkConstraints": {
1183
+ "EveDocumentRevision_turn_nonnegative": {
1184
+ "name": "EveDocumentRevision_turn_nonnegative",
1185
+ "value": "\"EveDocumentRevision\".\"turnIndex\" >= 0"
1186
+ }
1187
+ },
1188
+ "isRLSEnabled": false
1189
+ },
1190
+ "public.EveFileReference": {
1191
+ "name": "EveFileReference",
1192
+ "schema": "",
1193
+ "columns": {
1194
+ "conversationId": {
1195
+ "name": "conversationId",
1196
+ "type": "uuid",
1197
+ "primaryKey": false,
1198
+ "notNull": true
1199
+ },
1200
+ "key": {
1201
+ "name": "key",
1202
+ "type": "text",
1203
+ "primaryKey": false,
1204
+ "notNull": true
1205
+ },
1206
+ "ownerId": {
1207
+ "name": "ownerId",
1208
+ "type": "text",
1209
+ "primaryKey": false,
1210
+ "notNull": true
1211
+ }
1212
+ },
1213
+ "indexes": {
1214
+ "EveFileReference_key": {
1215
+ "name": "EveFileReference_key",
1216
+ "columns": [
1217
+ {
1218
+ "expression": "key",
1219
+ "isExpression": false,
1220
+ "asc": true,
1221
+ "nulls": "last"
1222
+ }
1223
+ ],
1224
+ "isUnique": false,
1225
+ "concurrently": false,
1226
+ "method": "btree",
1227
+ "with": {}
1228
+ }
1229
+ },
1230
+ "foreignKeys": {
1231
+ "EveFileReference_conversationId_ownerId_EveConversation_id_ownerId_fk": {
1232
+ "name": "EveFileReference_conversationId_ownerId_EveConversation_id_ownerId_fk",
1233
+ "tableFrom": "EveFileReference",
1234
+ "tableTo": "EveConversation",
1235
+ "columnsFrom": ["conversationId", "ownerId"],
1236
+ "columnsTo": ["id", "ownerId"],
1237
+ "onDelete": "no action",
1238
+ "onUpdate": "no action"
1239
+ },
1240
+ "EveFileReference_key_ownerId_EveStoredFile_key_ownerId_fk": {
1241
+ "name": "EveFileReference_key_ownerId_EveStoredFile_key_ownerId_fk",
1242
+ "tableFrom": "EveFileReference",
1243
+ "tableTo": "EveStoredFile",
1244
+ "columnsFrom": ["key", "ownerId"],
1245
+ "columnsTo": ["key", "ownerId"],
1246
+ "onDelete": "no action",
1247
+ "onUpdate": "no action"
1248
+ }
1249
+ },
1250
+ "compositePrimaryKeys": {
1251
+ "EveFileReference_conversationId_key_pk": {
1252
+ "name": "EveFileReference_conversationId_key_pk",
1253
+ "columns": ["conversationId", "key"]
1254
+ }
1255
+ },
1256
+ "uniqueConstraints": {},
1257
+ "policies": {},
1258
+ "checkConstraints": {},
1259
+ "isRLSEnabled": false
1260
+ },
1261
+ "public.EveGuest": {
1262
+ "name": "EveGuest",
1263
+ "schema": "",
1264
+ "columns": {
1265
+ "createdAt": {
1266
+ "name": "createdAt",
1267
+ "type": "timestamp with time zone",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "default": "now()"
1271
+ },
1272
+ "expiresAt": {
1273
+ "name": "expiresAt",
1274
+ "type": "timestamp with time zone",
1275
+ "primaryKey": false,
1276
+ "notNull": true
1277
+ },
1278
+ "messageLimit": {
1279
+ "name": "messageLimit",
1280
+ "type": "integer",
1281
+ "primaryKey": false,
1282
+ "notNull": true
1283
+ },
1284
+ "ownerId": {
1285
+ "name": "ownerId",
1286
+ "type": "text",
1287
+ "primaryKey": true,
1288
+ "notNull": true
1289
+ },
1290
+ "remainingMessages": {
1291
+ "name": "remainingMessages",
1292
+ "type": "integer",
1293
+ "primaryKey": false,
1294
+ "notNull": true
1295
+ },
1296
+ "tokenHash": {
1297
+ "name": "tokenHash",
1298
+ "type": "varchar(64)",
1299
+ "primaryKey": false,
1300
+ "notNull": true
1301
+ }
1302
+ },
1303
+ "indexes": {
1304
+ "EveGuest_expiry_idx": {
1305
+ "name": "EveGuest_expiry_idx",
1306
+ "columns": [
1307
+ {
1308
+ "expression": "expiresAt",
1309
+ "isExpression": false,
1310
+ "asc": true,
1311
+ "nulls": "last"
1312
+ }
1313
+ ],
1314
+ "isUnique": false,
1315
+ "concurrently": false,
1316
+ "method": "btree",
1317
+ "with": {}
1318
+ }
1319
+ },
1320
+ "foreignKeys": {
1321
+ "EveGuest_ownerId_user_id_fk": {
1322
+ "name": "EveGuest_ownerId_user_id_fk",
1323
+ "tableFrom": "EveGuest",
1324
+ "tableTo": "user",
1325
+ "columnsFrom": ["ownerId"],
1326
+ "columnsTo": ["id"],
1327
+ "onDelete": "cascade",
1328
+ "onUpdate": "no action"
1329
+ }
1330
+ },
1331
+ "compositePrimaryKeys": {},
1332
+ "uniqueConstraints": {
1333
+ "EveGuest_tokenHash_unique": {
1334
+ "name": "EveGuest_tokenHash_unique",
1335
+ "nullsNotDistinct": false,
1336
+ "columns": ["tokenHash"]
1337
+ }
1338
+ },
1339
+ "policies": {},
1340
+ "checkConstraints": {
1341
+ "EveGuest_message_balance": {
1342
+ "name": "EveGuest_message_balance",
1343
+ "value": "\"EveGuest\".\"remainingMessages\" >= 0 and \"EveGuest\".\"remainingMessages\" <= \"EveGuest\".\"messageLimit\""
1344
+ },
1345
+ "EveGuest_token_hash": {
1346
+ "name": "EveGuest_token_hash",
1347
+ "value": "\"EveGuest\".\"tokenHash\" ~ '^[0-9a-f]{64}$'"
1348
+ }
1349
+ },
1350
+ "isRLSEnabled": false
1351
+ },
1352
+ "public.EveGuestMessage": {
1353
+ "name": "EveGuestMessage",
1354
+ "schema": "",
1355
+ "columns": {
1356
+ "ipHash": {
1357
+ "name": "ipHash",
1358
+ "type": "varchar(64)",
1359
+ "primaryKey": false,
1360
+ "notNull": true
1361
+ },
1362
+ "operationId": {
1363
+ "name": "operationId",
1364
+ "type": "uuid",
1365
+ "primaryKey": false,
1366
+ "notNull": true
1367
+ },
1368
+ "ownerId": {
1369
+ "name": "ownerId",
1370
+ "type": "text",
1371
+ "primaryKey": false,
1372
+ "notNull": true
1373
+ },
1374
+ "requestHash": {
1375
+ "name": "requestHash",
1376
+ "type": "varchar(64)",
1377
+ "primaryKey": false,
1378
+ "notNull": true
1379
+ },
1380
+ "reservationId": {
1381
+ "name": "reservationId",
1382
+ "type": "uuid",
1383
+ "primaryKey": false,
1384
+ "notNull": true
1385
+ },
1386
+ "reservedAt": {
1387
+ "name": "reservedAt",
1388
+ "type": "timestamp with time zone",
1389
+ "primaryKey": false,
1390
+ "notNull": true
1391
+ },
1392
+ "state": {
1393
+ "name": "state",
1394
+ "type": "text",
1395
+ "primaryKey": false,
1396
+ "notNull": true
1397
+ }
1398
+ },
1399
+ "indexes": {},
1400
+ "foreignKeys": {
1401
+ "EveGuestMessage_ownerId_EveGuest_ownerId_fk": {
1402
+ "name": "EveGuestMessage_ownerId_EveGuest_ownerId_fk",
1403
+ "tableFrom": "EveGuestMessage",
1404
+ "tableTo": "EveGuest",
1405
+ "columnsFrom": ["ownerId"],
1406
+ "columnsTo": ["ownerId"],
1407
+ "onDelete": "cascade",
1408
+ "onUpdate": "no action"
1409
+ }
1410
+ },
1411
+ "compositePrimaryKeys": {
1412
+ "EveGuestMessage_ownerId_operationId_pk": {
1413
+ "name": "EveGuestMessage_ownerId_operationId_pk",
1414
+ "columns": ["ownerId", "operationId"]
1415
+ }
1416
+ },
1417
+ "uniqueConstraints": {},
1418
+ "policies": {},
1419
+ "checkConstraints": {
1420
+ "EveGuestMessage_state": {
1421
+ "name": "EveGuestMessage_state",
1422
+ "value": "\"EveGuestMessage\".\"state\" in ('reserved', 'committed', 'released')"
1423
+ },
1424
+ "EveGuestMessage_request_hash": {
1425
+ "name": "EveGuestMessage_request_hash",
1426
+ "value": "\"EveGuestMessage\".\"requestHash\" ~ '^[0-9a-f]{64}$'"
1427
+ }
1428
+ },
1429
+ "isRLSEnabled": false
1430
+ },
1431
+ "public.EveGuestRate": {
1432
+ "name": "EveGuestRate",
1433
+ "schema": "",
1434
+ "columns": {
1435
+ "ipHash": {
1436
+ "name": "ipHash",
1437
+ "type": "varchar(64)",
1438
+ "primaryKey": false,
1439
+ "notNull": true
1440
+ },
1441
+ "requests": {
1442
+ "name": "requests",
1443
+ "type": "integer",
1444
+ "primaryKey": false,
1445
+ "notNull": true
1446
+ },
1447
+ "startsAt": {
1448
+ "name": "startsAt",
1449
+ "type": "timestamp with time zone",
1450
+ "primaryKey": false,
1451
+ "notNull": true
1452
+ },
1453
+ "windowSeconds": {
1454
+ "name": "windowSeconds",
1455
+ "type": "integer",
1456
+ "primaryKey": false,
1457
+ "notNull": true
1458
+ }
1459
+ },
1460
+ "indexes": {},
1461
+ "foreignKeys": {},
1462
+ "compositePrimaryKeys": {
1463
+ "EveGuestRate_ipHash_windowSeconds_startsAt_pk": {
1464
+ "name": "EveGuestRate_ipHash_windowSeconds_startsAt_pk",
1465
+ "columns": ["ipHash", "windowSeconds", "startsAt"]
1466
+ }
1467
+ },
1468
+ "uniqueConstraints": {},
1469
+ "policies": {},
1470
+ "checkConstraints": {
1471
+ "EveGuestRate_requests": {
1472
+ "name": "EveGuestRate_requests",
1473
+ "value": "\"EveGuestRate\".\"requests\" >= 0"
1474
+ },
1475
+ "EveGuestRate_window": {
1476
+ "name": "EveGuestRate_window",
1477
+ "value": "\"EveGuestRate\".\"windowSeconds\" in (60, 2592000)"
1478
+ }
1479
+ },
1480
+ "isRLSEnabled": false
1481
+ },
1482
+ "public.EveImportedDocumentCheckpoint": {
1483
+ "name": "EveImportedDocumentCheckpoint",
1484
+ "schema": "",
1485
+ "columns": {
1486
+ "conversationId": {
1487
+ "name": "conversationId",
1488
+ "type": "uuid",
1489
+ "primaryKey": false,
1490
+ "notNull": true
1491
+ },
1492
+ "messageIndex": {
1493
+ "name": "messageIndex",
1494
+ "type": "integer",
1495
+ "primaryKey": false,
1496
+ "notNull": true
1497
+ },
1498
+ "ownerId": {
1499
+ "name": "ownerId",
1500
+ "type": "text",
1501
+ "primaryKey": false,
1502
+ "notNull": true
1503
+ }
1504
+ },
1505
+ "indexes": {},
1506
+ "foreignKeys": {
1507
+ "EveImportedDocumentCheckpoint_conversation_owner_fk": {
1508
+ "name": "EveImportedDocumentCheckpoint_conversation_owner_fk",
1509
+ "tableFrom": "EveImportedDocumentCheckpoint",
1510
+ "tableTo": "EveConversation",
1511
+ "columnsFrom": ["conversationId", "ownerId"],
1512
+ "columnsTo": ["id", "ownerId"],
1513
+ "onDelete": "no action",
1514
+ "onUpdate": "no action"
1515
+ }
1516
+ },
1517
+ "compositePrimaryKeys": {
1518
+ "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk": {
1519
+ "name": "EveImportedDocumentCheckpoint_conversationId_messageIndex_pk",
1520
+ "columns": ["conversationId", "messageIndex"]
1521
+ }
1522
+ },
1523
+ "uniqueConstraints": {
1524
+ "EveImportedDocumentCheckpoint_owner_identity": {
1525
+ "name": "EveImportedDocumentCheckpoint_owner_identity",
1526
+ "nullsNotDistinct": false,
1527
+ "columns": ["conversationId", "messageIndex", "ownerId"]
1528
+ }
1529
+ },
1530
+ "policies": {},
1531
+ "checkConstraints": {
1532
+ "EveImportedDocumentCheckpoint_message_range": {
1533
+ "name": "EveImportedDocumentCheckpoint_message_range",
1534
+ "value": "\"EveImportedDocumentCheckpoint\".\"messageIndex\" between 0 and 9999"
1535
+ }
1536
+ },
1537
+ "isRLSEnabled": false
1538
+ },
1539
+ "public.EveImportedDocumentCheckpointEntry": {
1540
+ "name": "EveImportedDocumentCheckpointEntry",
1541
+ "schema": "",
1542
+ "columns": {
1543
+ "conversationId": {
1544
+ "name": "conversationId",
1545
+ "type": "uuid",
1546
+ "primaryKey": false,
1547
+ "notNull": true
1548
+ },
1549
+ "documentId": {
1550
+ "name": "documentId",
1551
+ "type": "uuid",
1552
+ "primaryKey": false,
1553
+ "notNull": true
1554
+ },
1555
+ "messageIndex": {
1556
+ "name": "messageIndex",
1557
+ "type": "integer",
1558
+ "primaryKey": false,
1559
+ "notNull": true
1560
+ },
1561
+ "ownerId": {
1562
+ "name": "ownerId",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true
1566
+ },
1567
+ "revisionId": {
1568
+ "name": "revisionId",
1569
+ "type": "uuid",
1570
+ "primaryKey": false,
1571
+ "notNull": true
1572
+ }
1573
+ },
1574
+ "indexes": {},
1575
+ "foreignKeys": {
1576
+ "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk": {
1577
+ "name": "EveImportedDocumentCheckpointEntry_checkpoint_owner_fk",
1578
+ "tableFrom": "EveImportedDocumentCheckpointEntry",
1579
+ "tableTo": "EveImportedDocumentCheckpoint",
1580
+ "columnsFrom": ["conversationId", "messageIndex", "ownerId"],
1581
+ "columnsTo": ["conversationId", "messageIndex", "ownerId"],
1582
+ "onDelete": "no action",
1583
+ "onUpdate": "no action"
1584
+ },
1585
+ "EveImportedDocumentCheckpointEntry_revision_owner_fk": {
1586
+ "name": "EveImportedDocumentCheckpointEntry_revision_owner_fk",
1587
+ "tableFrom": "EveImportedDocumentCheckpointEntry",
1588
+ "tableTo": "EveDocumentRevision",
1589
+ "columnsFrom": ["revisionId", "documentId", "ownerId"],
1590
+ "columnsTo": ["id", "documentId", "ownerId"],
1591
+ "onDelete": "no action",
1592
+ "onUpdate": "no action"
1593
+ }
1594
+ },
1595
+ "compositePrimaryKeys": {
1596
+ "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk": {
1597
+ "name": "EveImportedDocumentCheckpointEntry_conversationId_messageIndex_documentId_pk",
1598
+ "columns": ["conversationId", "messageIndex", "documentId"]
1599
+ }
1600
+ },
1601
+ "uniqueConstraints": {},
1602
+ "policies": {},
1603
+ "checkConstraints": {},
1604
+ "isRLSEnabled": false
1605
+ },
1606
+ "public.EveNamedDocumentCheckpoint": {
1607
+ "name": "EveNamedDocumentCheckpoint",
1608
+ "schema": "",
1609
+ "columns": {
1610
+ "checkpointId": {
1611
+ "name": "checkpointId",
1612
+ "type": "uuid",
1613
+ "primaryKey": false,
1614
+ "notNull": true
1615
+ },
1616
+ "conversationId": {
1617
+ "name": "conversationId",
1618
+ "type": "uuid",
1619
+ "primaryKey": false,
1620
+ "notNull": true
1621
+ },
1622
+ "ownerId": {
1623
+ "name": "ownerId",
1624
+ "type": "text",
1625
+ "primaryKey": false,
1626
+ "notNull": true
1627
+ },
1628
+ "turnIndex": {
1629
+ "name": "turnIndex",
1630
+ "type": "integer",
1631
+ "primaryKey": false,
1632
+ "notNull": true
1633
+ }
1634
+ },
1635
+ "indexes": {},
1636
+ "foreignKeys": {
1637
+ "EveNamedDocumentCheckpoint_conversation_owner_fk": {
1638
+ "name": "EveNamedDocumentCheckpoint_conversation_owner_fk",
1639
+ "tableFrom": "EveNamedDocumentCheckpoint",
1640
+ "tableTo": "EveConversation",
1641
+ "columnsFrom": ["conversationId", "ownerId"],
1642
+ "columnsTo": ["id", "ownerId"],
1643
+ "onDelete": "no action",
1644
+ "onUpdate": "no action"
1645
+ }
1646
+ },
1647
+ "compositePrimaryKeys": {
1648
+ "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk": {
1649
+ "name": "EveNamedDocumentCheckpoint_conversationId_checkpointId_pk",
1650
+ "columns": ["conversationId", "checkpointId"]
1651
+ }
1652
+ },
1653
+ "uniqueConstraints": {
1654
+ "EveNamedDocumentCheckpoint_owner_identity": {
1655
+ "name": "EveNamedDocumentCheckpoint_owner_identity",
1656
+ "nullsNotDistinct": false,
1657
+ "columns": ["conversationId", "checkpointId", "ownerId"]
1658
+ }
1659
+ },
1660
+ "policies": {},
1661
+ "checkConstraints": {
1662
+ "EveNamedDocumentCheckpoint_turn_nonnegative": {
1663
+ "name": "EveNamedDocumentCheckpoint_turn_nonnegative",
1664
+ "value": "\"EveNamedDocumentCheckpoint\".\"turnIndex\" >= 0"
1665
+ }
1666
+ },
1667
+ "isRLSEnabled": false
1668
+ },
1669
+ "public.EveNamedDocumentCheckpointEntry": {
1670
+ "name": "EveNamedDocumentCheckpointEntry",
1671
+ "schema": "",
1672
+ "columns": {
1673
+ "checkpointId": {
1674
+ "name": "checkpointId",
1675
+ "type": "uuid",
1676
+ "primaryKey": false,
1677
+ "notNull": true
1678
+ },
1679
+ "conversationId": {
1680
+ "name": "conversationId",
1681
+ "type": "uuid",
1682
+ "primaryKey": false,
1683
+ "notNull": true
1684
+ },
1685
+ "documentId": {
1686
+ "name": "documentId",
1687
+ "type": "uuid",
1688
+ "primaryKey": false,
1689
+ "notNull": true
1690
+ },
1691
+ "ownerId": {
1692
+ "name": "ownerId",
1693
+ "type": "text",
1694
+ "primaryKey": false,
1695
+ "notNull": true
1696
+ },
1697
+ "revisionId": {
1698
+ "name": "revisionId",
1699
+ "type": "uuid",
1700
+ "primaryKey": false,
1701
+ "notNull": true
1702
+ }
1703
+ },
1704
+ "indexes": {},
1705
+ "foreignKeys": {
1706
+ "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk": {
1707
+ "name": "EveNamedDocumentCheckpointEntry_checkpoint_owner_fk",
1708
+ "tableFrom": "EveNamedDocumentCheckpointEntry",
1709
+ "tableTo": "EveNamedDocumentCheckpoint",
1710
+ "columnsFrom": ["conversationId", "checkpointId", "ownerId"],
1711
+ "columnsTo": ["conversationId", "checkpointId", "ownerId"],
1712
+ "onDelete": "no action",
1713
+ "onUpdate": "no action"
1714
+ },
1715
+ "EveNamedDocumentCheckpointEntry_revision_owner_fk": {
1716
+ "name": "EveNamedDocumentCheckpointEntry_revision_owner_fk",
1717
+ "tableFrom": "EveNamedDocumentCheckpointEntry",
1718
+ "tableTo": "EveDocumentRevision",
1719
+ "columnsFrom": ["revisionId", "documentId", "ownerId"],
1720
+ "columnsTo": ["id", "documentId", "ownerId"],
1721
+ "onDelete": "no action",
1722
+ "onUpdate": "no action"
1723
+ }
1724
+ },
1725
+ "compositePrimaryKeys": {
1726
+ "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk": {
1727
+ "name": "EveNamedDocumentCheckpointEntry_conversationId_checkpointId_documentId_pk",
1728
+ "columns": ["conversationId", "checkpointId", "documentId"]
1729
+ }
1730
+ },
1731
+ "uniqueConstraints": {},
1732
+ "policies": {},
1733
+ "checkConstraints": {},
1734
+ "isRLSEnabled": false
1735
+ },
1736
+ "public.EveResponseGroup": {
1737
+ "name": "EveResponseGroup",
1738
+ "schema": "",
1739
+ "columns": {
1740
+ "candidateOperationIds": {
1741
+ "name": "candidateOperationIds",
1742
+ "type": "uuid[]",
1743
+ "primaryKey": false,
1744
+ "notNull": true
1745
+ },
1746
+ "candidates": {
1747
+ "name": "candidates",
1748
+ "type": "jsonb",
1749
+ "primaryKey": false,
1750
+ "notNull": false
1751
+ },
1752
+ "createdAt": {
1753
+ "name": "createdAt",
1754
+ "type": "timestamp",
1755
+ "primaryKey": false,
1756
+ "notNull": true,
1757
+ "default": "now()"
1758
+ },
1759
+ "deleted": {
1760
+ "name": "deleted",
1761
+ "type": "boolean",
1762
+ "primaryKey": false,
1763
+ "notNull": true,
1764
+ "default": false
1765
+ },
1766
+ "id": {
1767
+ "name": "id",
1768
+ "type": "uuid",
1769
+ "primaryKey": true,
1770
+ "notNull": true,
1771
+ "default": "gen_random_uuid()"
1772
+ },
1773
+ "inputHash": {
1774
+ "name": "inputHash",
1775
+ "type": "text",
1776
+ "primaryKey": false,
1777
+ "notNull": false
1778
+ },
1779
+ "operationId": {
1780
+ "name": "operationId",
1781
+ "type": "uuid",
1782
+ "primaryKey": false,
1783
+ "notNull": true
1784
+ },
1785
+ "ownerId": {
1786
+ "name": "ownerId",
1787
+ "type": "text",
1788
+ "primaryKey": false,
1789
+ "notNull": true
1790
+ },
1791
+ "sourceConversationId": {
1792
+ "name": "sourceConversationId",
1793
+ "type": "uuid",
1794
+ "primaryKey": false,
1795
+ "notNull": false
1796
+ },
1797
+ "sourceIdentityKnown": {
1798
+ "name": "sourceIdentityKnown",
1799
+ "type": "boolean",
1800
+ "primaryKey": false,
1801
+ "notNull": true,
1802
+ "default": false
1803
+ }
1804
+ },
1805
+ "indexes": {
1806
+ "EveResponseGroup_owner_operation": {
1807
+ "name": "EveResponseGroup_owner_operation",
1808
+ "columns": [
1809
+ {
1810
+ "expression": "ownerId",
1811
+ "isExpression": false,
1812
+ "asc": true,
1813
+ "nulls": "last"
1814
+ },
1815
+ {
1816
+ "expression": "operationId",
1817
+ "isExpression": false,
1818
+ "asc": true,
1819
+ "nulls": "last"
1820
+ }
1821
+ ],
1822
+ "isUnique": true,
1823
+ "concurrently": false,
1824
+ "method": "btree",
1825
+ "with": {}
1826
+ }
1827
+ },
1828
+ "foreignKeys": {
1829
+ "EveResponseGroup_ownerId_user_id_fk": {
1830
+ "name": "EveResponseGroup_ownerId_user_id_fk",
1831
+ "tableFrom": "EveResponseGroup",
1832
+ "tableTo": "user",
1833
+ "columnsFrom": ["ownerId"],
1834
+ "columnsTo": ["id"],
1835
+ "onDelete": "no action",
1836
+ "onUpdate": "no action"
1837
+ }
1838
+ },
1839
+ "compositePrimaryKeys": {},
1840
+ "uniqueConstraints": {},
1841
+ "policies": {},
1842
+ "checkConstraints": {},
1843
+ "isRLSEnabled": false
1844
+ },
1845
+ "public.EveSearchText": {
1846
+ "name": "EveSearchText",
1847
+ "schema": "",
1848
+ "columns": {
1849
+ "conversationId": {
1850
+ "name": "conversationId",
1851
+ "type": "uuid",
1852
+ "primaryKey": false,
1853
+ "notNull": true
1854
+ },
1855
+ "key": {
1856
+ "name": "key",
1857
+ "type": "text",
1858
+ "primaryKey": false,
1859
+ "notNull": true
1860
+ },
1861
+ "ownerId": {
1862
+ "name": "ownerId",
1863
+ "type": "text",
1864
+ "primaryKey": false,
1865
+ "notNull": true
1866
+ },
1867
+ "text": {
1868
+ "name": "text",
1869
+ "type": "text",
1870
+ "primaryKey": false,
1871
+ "notNull": true
1872
+ }
1873
+ },
1874
+ "indexes": {
1875
+ "EveSearchText_owner": {
1876
+ "name": "EveSearchText_owner",
1877
+ "columns": [
1878
+ {
1879
+ "expression": "ownerId",
1880
+ "isExpression": false,
1881
+ "asc": true,
1882
+ "nulls": "last"
1883
+ }
1884
+ ],
1885
+ "isUnique": false,
1886
+ "concurrently": false,
1887
+ "method": "btree",
1888
+ "with": {}
1889
+ },
1890
+ "EveSearchText_content": {
1891
+ "name": "EveSearchText_content",
1892
+ "columns": [
1893
+ {
1894
+ "expression": "to_tsvector('simple', \"text\")",
1895
+ "asc": true,
1896
+ "isExpression": true,
1897
+ "nulls": "last"
1898
+ }
1899
+ ],
1900
+ "isUnique": false,
1901
+ "concurrently": false,
1902
+ "method": "gin",
1903
+ "with": {}
1904
+ }
1905
+ },
1906
+ "foreignKeys": {
1907
+ "EveSearchText_conversationId_ownerId_EveConversation_id_ownerId_fk": {
1908
+ "name": "EveSearchText_conversationId_ownerId_EveConversation_id_ownerId_fk",
1909
+ "tableFrom": "EveSearchText",
1910
+ "tableTo": "EveConversation",
1911
+ "columnsFrom": ["conversationId", "ownerId"],
1912
+ "columnsTo": ["id", "ownerId"],
1913
+ "onDelete": "cascade",
1914
+ "onUpdate": "no action"
1915
+ }
1916
+ },
1917
+ "compositePrimaryKeys": {
1918
+ "EveSearchText_conversationId_key_pk": {
1919
+ "name": "EveSearchText_conversationId_key_pk",
1920
+ "columns": ["conversationId", "key"]
1921
+ }
1922
+ },
1923
+ "uniqueConstraints": {},
1924
+ "policies": {},
1925
+ "checkConstraints": {},
1926
+ "isRLSEnabled": false
1927
+ },
1928
+ "public.EveStoredFile": {
1929
+ "name": "EveStoredFile",
1930
+ "schema": "",
1931
+ "columns": {
1932
+ "createdAt": {
1933
+ "name": "createdAt",
1934
+ "type": "timestamp",
1935
+ "primaryKey": false,
1936
+ "notNull": true,
1937
+ "default": "now()"
1938
+ },
1939
+ "key": {
1940
+ "name": "key",
1941
+ "type": "text",
1942
+ "primaryKey": true,
1943
+ "notNull": true
1944
+ },
1945
+ "ownerId": {
1946
+ "name": "ownerId",
1947
+ "type": "text",
1948
+ "primaryKey": false,
1949
+ "notNull": true
1950
+ },
1951
+ "state": {
1952
+ "name": "state",
1953
+ "type": "text",
1954
+ "primaryKey": false,
1955
+ "notNull": true,
1956
+ "default": "'active'"
1957
+ },
1958
+ "storageKey": {
1959
+ "name": "storageKey",
1960
+ "type": "text",
1961
+ "primaryKey": false,
1962
+ "notNull": true,
1963
+ "default": "gen_random_uuid()::text"
1964
+ }
1965
+ },
1966
+ "indexes": {
1967
+ "EveStoredFile_owner": {
1968
+ "name": "EveStoredFile_owner",
1969
+ "columns": [
1970
+ {
1971
+ "expression": "ownerId",
1972
+ "isExpression": false,
1973
+ "asc": true,
1974
+ "nulls": "last"
1975
+ }
1976
+ ],
1977
+ "isUnique": false,
1978
+ "concurrently": false,
1979
+ "method": "btree",
1980
+ "with": {}
1981
+ }
1982
+ },
1983
+ "foreignKeys": {
1984
+ "EveStoredFile_ownerId_user_id_fk": {
1985
+ "name": "EveStoredFile_ownerId_user_id_fk",
1986
+ "tableFrom": "EveStoredFile",
1987
+ "tableTo": "user",
1988
+ "columnsFrom": ["ownerId"],
1989
+ "columnsTo": ["id"],
1990
+ "onDelete": "no action",
1991
+ "onUpdate": "no action"
1992
+ }
1993
+ },
1994
+ "compositePrimaryKeys": {},
1995
+ "uniqueConstraints": {
1996
+ "EveStoredFile_storageKey_unique": {
1997
+ "name": "EveStoredFile_storageKey_unique",
1998
+ "nullsNotDistinct": false,
1999
+ "columns": ["storageKey"]
2000
+ },
2001
+ "EveStoredFile_key_owner": {
2002
+ "name": "EveStoredFile_key_owner",
2003
+ "nullsNotDistinct": false,
2004
+ "columns": ["key", "ownerId"]
2005
+ }
2006
+ },
2007
+ "policies": {},
2008
+ "checkConstraints": {},
2009
+ "isRLSEnabled": false
2010
+ },
2011
+ "public.EveSubagentSession": {
2012
+ "name": "EveSubagentSession",
2013
+ "schema": "",
2014
+ "columns": {
2015
+ "conversationId": {
2016
+ "name": "conversationId",
2017
+ "type": "uuid",
2018
+ "primaryKey": false,
2019
+ "notNull": true
2020
+ },
2021
+ "ownerId": {
2022
+ "name": "ownerId",
2023
+ "type": "text",
2024
+ "primaryKey": false,
2025
+ "notNull": true
2026
+ },
2027
+ "parentSessionId": {
2028
+ "name": "parentSessionId",
2029
+ "type": "text",
2030
+ "primaryKey": false,
2031
+ "notNull": true
2032
+ },
2033
+ "rootTurnId": {
2034
+ "name": "rootTurnId",
2035
+ "type": "text",
2036
+ "primaryKey": false,
2037
+ "notNull": true
2038
+ },
2039
+ "sessionId": {
2040
+ "name": "sessionId",
2041
+ "type": "text",
2042
+ "primaryKey": true,
2043
+ "notNull": true
2044
+ },
2045
+ "usageStreamIndex": {
2046
+ "name": "usageStreamIndex",
2047
+ "type": "integer",
2048
+ "primaryKey": false,
2049
+ "notNull": true,
2050
+ "default": 0
2051
+ }
2052
+ },
2053
+ "indexes": {
2054
+ "EveSubagentSession_conversation": {
2055
+ "name": "EveSubagentSession_conversation",
2056
+ "columns": [
2057
+ {
2058
+ "expression": "conversationId",
2059
+ "isExpression": false,
2060
+ "asc": true,
2061
+ "nulls": "last"
2062
+ }
2063
+ ],
2064
+ "isUnique": false,
2065
+ "concurrently": false,
2066
+ "method": "btree",
2067
+ "with": {}
2068
+ }
2069
+ },
2070
+ "foreignKeys": {
2071
+ "EveSubagentSession_conversation_owner_fk": {
2072
+ "name": "EveSubagentSession_conversation_owner_fk",
2073
+ "tableFrom": "EveSubagentSession",
2074
+ "tableTo": "EveConversation",
2075
+ "columnsFrom": ["conversationId", "ownerId"],
2076
+ "columnsTo": ["id", "ownerId"],
2077
+ "onDelete": "cascade",
2078
+ "onUpdate": "no action"
2079
+ }
2080
+ },
2081
+ "compositePrimaryKeys": {},
2082
+ "uniqueConstraints": {},
2083
+ "policies": {},
2084
+ "checkConstraints": {
2085
+ "EveSubagentSession_not_self": {
2086
+ "name": "EveSubagentSession_not_self",
2087
+ "value": "\"EveSubagentSession\".\"sessionId\" <> \"EveSubagentSession\".\"parentSessionId\""
2088
+ },
2089
+ "EveSubagentSession_cursor": {
2090
+ "name": "EveSubagentSession_cursor",
2091
+ "value": "\"EveSubagentSession\".\"usageStreamIndex\" >= 0"
2092
+ }
2093
+ },
2094
+ "isRLSEnabled": false
2095
+ },
2096
+ "public.EveUsage": {
2097
+ "name": "EveUsage",
2098
+ "schema": "",
2099
+ "columns": {
2100
+ "chargedCents": {
2101
+ "name": "chargedCents",
2102
+ "type": "integer",
2103
+ "primaryKey": false,
2104
+ "notNull": true,
2105
+ "default": 0
2106
+ },
2107
+ "costUsd": {
2108
+ "name": "costUsd",
2109
+ "type": "numeric(24, 12)",
2110
+ "primaryKey": false,
2111
+ "notNull": false
2112
+ },
2113
+ "createdAt": {
2114
+ "name": "createdAt",
2115
+ "type": "timestamp",
2116
+ "primaryKey": false,
2117
+ "notNull": true,
2118
+ "default": "now()"
2119
+ },
2120
+ "eventId": {
2121
+ "name": "eventId",
2122
+ "type": "text",
2123
+ "primaryKey": true,
2124
+ "notNull": true
2125
+ },
2126
+ "generationId": {
2127
+ "name": "generationId",
2128
+ "type": "text",
2129
+ "primaryKey": false,
2130
+ "notNull": false
2131
+ },
2132
+ "ownerId": {
2133
+ "name": "ownerId",
2134
+ "type": "text",
2135
+ "primaryKey": false,
2136
+ "notNull": true
2137
+ },
2138
+ "sessionId": {
2139
+ "name": "sessionId",
2140
+ "type": "text",
2141
+ "primaryKey": false,
2142
+ "notNull": true
2143
+ },
2144
+ "turnId": {
2145
+ "name": "turnId",
2146
+ "type": "text",
2147
+ "primaryKey": false,
2148
+ "notNull": true
2149
+ }
2150
+ },
2151
+ "indexes": {
2152
+ "EveUsage_session_turn": {
2153
+ "name": "EveUsage_session_turn",
2154
+ "columns": [
2155
+ {
2156
+ "expression": "sessionId",
2157
+ "isExpression": false,
2158
+ "asc": true,
2159
+ "nulls": "last"
2160
+ },
2161
+ {
2162
+ "expression": "turnId",
2163
+ "isExpression": false,
2164
+ "asc": true,
2165
+ "nulls": "last"
2166
+ }
2167
+ ],
2168
+ "isUnique": false,
2169
+ "concurrently": false,
2170
+ "method": "btree",
2171
+ "with": {}
2172
+ },
2173
+ "EveUsage_unpriced_owner": {
2174
+ "name": "EveUsage_unpriced_owner",
2175
+ "columns": [
2176
+ {
2177
+ "expression": "ownerId",
2178
+ "isExpression": false,
2179
+ "asc": true,
2180
+ "nulls": "last"
2181
+ }
2182
+ ],
2183
+ "isUnique": false,
2184
+ "where": "\"EveUsage\".\"costUsd\" is null",
2185
+ "concurrently": false,
2186
+ "method": "btree",
2187
+ "with": {}
2188
+ }
2189
+ },
2190
+ "foreignKeys": {
2191
+ "EveUsage_ownerId_user_id_fk": {
2192
+ "name": "EveUsage_ownerId_user_id_fk",
2193
+ "tableFrom": "EveUsage",
2194
+ "tableTo": "user",
2195
+ "columnsFrom": ["ownerId"],
2196
+ "columnsTo": ["id"],
2197
+ "onDelete": "no action",
2198
+ "onUpdate": "no action"
2199
+ }
2200
+ },
2201
+ "compositePrimaryKeys": {},
2202
+ "uniqueConstraints": {},
2203
+ "policies": {},
2204
+ "checkConstraints": {},
2205
+ "isRLSEnabled": false
2206
+ },
2207
+ "public.EveVote": {
2208
+ "name": "EveVote",
2209
+ "schema": "",
2210
+ "columns": {
2211
+ "conversationId": {
2212
+ "name": "conversationId",
2213
+ "type": "uuid",
2214
+ "primaryKey": false,
2215
+ "notNull": true
2216
+ },
2217
+ "isUpvoted": {
2218
+ "name": "isUpvoted",
2219
+ "type": "boolean",
2220
+ "primaryKey": false,
2221
+ "notNull": true
2222
+ },
2223
+ "messageId": {
2224
+ "name": "messageId",
2225
+ "type": "text",
2226
+ "primaryKey": false,
2227
+ "notNull": true
2228
+ }
2229
+ },
2230
+ "indexes": {},
2231
+ "foreignKeys": {
2232
+ "EveVote_conversationId_EveConversation_id_fk": {
2233
+ "name": "EveVote_conversationId_EveConversation_id_fk",
2234
+ "tableFrom": "EveVote",
2235
+ "tableTo": "EveConversation",
2236
+ "columnsFrom": ["conversationId"],
2237
+ "columnsTo": ["id"],
2238
+ "onDelete": "cascade",
2239
+ "onUpdate": "no action"
2240
+ }
2241
+ },
2242
+ "compositePrimaryKeys": {
2243
+ "EveVote_conversationId_messageId_pk": {
2244
+ "name": "EveVote_conversationId_messageId_pk",
2245
+ "columns": ["conversationId", "messageId"]
2246
+ }
2247
+ },
2248
+ "uniqueConstraints": {},
2249
+ "policies": {},
2250
+ "checkConstraints": {},
2251
+ "isRLSEnabled": false
2252
+ },
2253
+ "public.EveWorkflowBackend": {
2254
+ "name": "EveWorkflowBackend",
2255
+ "schema": "",
2256
+ "columns": {
2257
+ "id": {
2258
+ "name": "id",
2259
+ "type": "integer",
2260
+ "primaryKey": true,
2261
+ "notNull": true,
2262
+ "default": 1
2263
+ },
2264
+ "world": {
2265
+ "name": "world",
2266
+ "type": "text",
2267
+ "primaryKey": false,
2268
+ "notNull": true
2269
+ }
2270
+ },
2271
+ "indexes": {},
2272
+ "foreignKeys": {},
2273
+ "compositePrimaryKeys": {},
2274
+ "uniqueConstraints": {},
2275
+ "policies": {},
2276
+ "checkConstraints": {
2277
+ "EveWorkflowBackend_singleton": {
2278
+ "name": "EveWorkflowBackend_singleton",
2279
+ "value": "\"EveWorkflowBackend\".\"id\" = 1"
2280
+ }
2281
+ },
2282
+ "isRLSEnabled": false
2283
+ },
2284
+ "public.McpConnector": {
2285
+ "name": "McpConnector",
2286
+ "schema": "",
2287
+ "columns": {
2288
+ "createdAt": {
2289
+ "name": "createdAt",
2290
+ "type": "timestamp",
2291
+ "primaryKey": false,
2292
+ "notNull": true,
2293
+ "default": "now()"
2294
+ },
2295
+ "enabled": {
2296
+ "name": "enabled",
2297
+ "type": "boolean",
2298
+ "primaryKey": false,
2299
+ "notNull": true,
2300
+ "default": true
2301
+ },
2302
+ "id": {
2303
+ "name": "id",
2304
+ "type": "uuid",
2305
+ "primaryKey": true,
2306
+ "notNull": true,
2307
+ "default": "gen_random_uuid()"
2308
+ },
2309
+ "name": {
2310
+ "name": "name",
2311
+ "type": "varchar(256)",
2312
+ "primaryKey": false,
2313
+ "notNull": true
2314
+ },
2315
+ "nameId": {
2316
+ "name": "nameId",
2317
+ "type": "varchar(256)",
2318
+ "primaryKey": false,
2319
+ "notNull": true
2320
+ },
2321
+ "oauthClientId": {
2322
+ "name": "oauthClientId",
2323
+ "type": "text",
2324
+ "primaryKey": false,
2325
+ "notNull": false
2326
+ },
2327
+ "oauthClientSecret": {
2328
+ "name": "oauthClientSecret",
2329
+ "type": "text",
2330
+ "primaryKey": false,
2331
+ "notNull": false
2332
+ },
2333
+ "requireApproval": {
2334
+ "name": "requireApproval",
2335
+ "type": "boolean",
2336
+ "primaryKey": false,
2337
+ "notNull": true,
2338
+ "default": false
2339
+ },
2340
+ "type": {
2341
+ "name": "type",
2342
+ "type": "varchar",
2343
+ "primaryKey": false,
2344
+ "notNull": true,
2345
+ "default": "'http'"
2346
+ },
2347
+ "updatedAt": {
2348
+ "name": "updatedAt",
2349
+ "type": "timestamp",
2350
+ "primaryKey": false,
2351
+ "notNull": true,
2352
+ "default": "now()"
2353
+ },
2354
+ "url": {
2355
+ "name": "url",
2356
+ "type": "text",
2357
+ "primaryKey": false,
2358
+ "notNull": true
2359
+ },
2360
+ "userId": {
2361
+ "name": "userId",
2362
+ "type": "text",
2363
+ "primaryKey": false,
2364
+ "notNull": false
2365
+ }
2366
+ },
2367
+ "indexes": {
2368
+ "McpConnector_user_id_idx": {
2369
+ "name": "McpConnector_user_id_idx",
2370
+ "columns": [
2371
+ {
2372
+ "expression": "userId",
2373
+ "isExpression": false,
2374
+ "asc": true,
2375
+ "nulls": "last"
2376
+ }
2377
+ ],
2378
+ "isUnique": false,
2379
+ "concurrently": false,
2380
+ "method": "btree",
2381
+ "with": {}
2382
+ },
2383
+ "McpConnector_user_name_id_idx": {
2384
+ "name": "McpConnector_user_name_id_idx",
2385
+ "columns": [
2386
+ {
2387
+ "expression": "userId",
2388
+ "isExpression": false,
2389
+ "asc": true,
2390
+ "nulls": "last"
2391
+ },
2392
+ {
2393
+ "expression": "nameId",
2394
+ "isExpression": false,
2395
+ "asc": true,
2396
+ "nulls": "last"
2397
+ }
2398
+ ],
2399
+ "isUnique": false,
2400
+ "concurrently": false,
2401
+ "method": "btree",
2402
+ "with": {}
2403
+ },
2404
+ "McpConnector_user_name_id_unique": {
2405
+ "name": "McpConnector_user_name_id_unique",
2406
+ "columns": [
2407
+ {
2408
+ "expression": "userId",
2409
+ "isExpression": false,
2410
+ "asc": true,
2411
+ "nulls": "last"
2412
+ },
2413
+ {
2414
+ "expression": "nameId",
2415
+ "isExpression": false,
2416
+ "asc": true,
2417
+ "nulls": "last"
2418
+ }
2419
+ ],
2420
+ "isUnique": true,
2421
+ "concurrently": false,
2422
+ "method": "btree",
2423
+ "with": {}
2424
+ }
2425
+ },
2426
+ "foreignKeys": {
2427
+ "McpConnector_userId_user_id_fk": {
2428
+ "name": "McpConnector_userId_user_id_fk",
2429
+ "tableFrom": "McpConnector",
2430
+ "tableTo": "user",
2431
+ "columnsFrom": ["userId"],
2432
+ "columnsTo": ["id"],
2433
+ "onDelete": "cascade",
2434
+ "onUpdate": "no action"
2435
+ }
2436
+ },
2437
+ "compositePrimaryKeys": {},
2438
+ "uniqueConstraints": {},
2439
+ "policies": {},
2440
+ "checkConstraints": {},
2441
+ "isRLSEnabled": false
2442
+ },
2443
+ "public.McpOAuthSession": {
2444
+ "name": "McpOAuthSession",
2445
+ "schema": "",
2446
+ "columns": {
2447
+ "clientInfo": {
2448
+ "name": "clientInfo",
2449
+ "type": "text",
2450
+ "primaryKey": false,
2451
+ "notNull": false
2452
+ },
2453
+ "codeVerifier": {
2454
+ "name": "codeVerifier",
2455
+ "type": "text",
2456
+ "primaryKey": false,
2457
+ "notNull": false
2458
+ },
2459
+ "createdAt": {
2460
+ "name": "createdAt",
2461
+ "type": "timestamp",
2462
+ "primaryKey": false,
2463
+ "notNull": true,
2464
+ "default": "now()"
2465
+ },
2466
+ "id": {
2467
+ "name": "id",
2468
+ "type": "uuid",
2469
+ "primaryKey": true,
2470
+ "notNull": true,
2471
+ "default": "gen_random_uuid()"
2472
+ },
2473
+ "mcpConnectorId": {
2474
+ "name": "mcpConnectorId",
2475
+ "type": "uuid",
2476
+ "primaryKey": false,
2477
+ "notNull": true
2478
+ },
2479
+ "serverUrl": {
2480
+ "name": "serverUrl",
2481
+ "type": "text",
2482
+ "primaryKey": false,
2483
+ "notNull": true
2484
+ },
2485
+ "state": {
2486
+ "name": "state",
2487
+ "type": "text",
2488
+ "primaryKey": false,
2489
+ "notNull": false
2490
+ },
2491
+ "tokens": {
2492
+ "name": "tokens",
2493
+ "type": "text",
2494
+ "primaryKey": false,
2495
+ "notNull": false
2496
+ },
2497
+ "updatedAt": {
2498
+ "name": "updatedAt",
2499
+ "type": "timestamp",
2500
+ "primaryKey": false,
2501
+ "notNull": true,
2502
+ "default": "now()"
2503
+ }
2504
+ },
2505
+ "indexes": {
2506
+ "McpOAuthSession_connector_idx": {
2507
+ "name": "McpOAuthSession_connector_idx",
2508
+ "columns": [
2509
+ {
2510
+ "expression": "mcpConnectorId",
2511
+ "isExpression": false,
2512
+ "asc": true,
2513
+ "nulls": "last"
2514
+ }
2515
+ ],
2516
+ "isUnique": false,
2517
+ "concurrently": false,
2518
+ "method": "btree",
2519
+ "with": {}
2520
+ },
2521
+ "McpOAuthSession_state_idx": {
2522
+ "name": "McpOAuthSession_state_idx",
2523
+ "columns": [
2524
+ {
2525
+ "expression": "state",
2526
+ "isExpression": false,
2527
+ "asc": true,
2528
+ "nulls": "last"
2529
+ }
2530
+ ],
2531
+ "isUnique": false,
2532
+ "concurrently": false,
2533
+ "method": "btree",
2534
+ "with": {}
2535
+ }
2536
+ },
2537
+ "foreignKeys": {
2538
+ "McpOAuthSession_mcpConnectorId_McpConnector_id_fk": {
2539
+ "name": "McpOAuthSession_mcpConnectorId_McpConnector_id_fk",
2540
+ "tableFrom": "McpOAuthSession",
2541
+ "tableTo": "McpConnector",
2542
+ "columnsFrom": ["mcpConnectorId"],
2543
+ "columnsTo": ["id"],
2544
+ "onDelete": "cascade",
2545
+ "onUpdate": "no action"
2546
+ }
2547
+ },
2548
+ "compositePrimaryKeys": {},
2549
+ "uniqueConstraints": {
2550
+ "McpOAuthSession_state_unique": {
2551
+ "name": "McpOAuthSession_state_unique",
2552
+ "nullsNotDistinct": false,
2553
+ "columns": ["state"]
2554
+ }
2555
+ },
2556
+ "policies": {},
2557
+ "checkConstraints": {},
2558
+ "isRLSEnabled": false
2559
+ },
2560
+ "public.Project": {
2561
+ "name": "Project",
2562
+ "schema": "",
2563
+ "columns": {
2564
+ "createdAt": {
2565
+ "name": "createdAt",
2566
+ "type": "timestamp",
2567
+ "primaryKey": false,
2568
+ "notNull": true,
2569
+ "default": "now()"
2570
+ },
2571
+ "icon": {
2572
+ "name": "icon",
2573
+ "type": "varchar(64)",
2574
+ "primaryKey": false,
2575
+ "notNull": true,
2576
+ "default": "'folder'"
2577
+ },
2578
+ "iconColor": {
2579
+ "name": "iconColor",
2580
+ "type": "varchar(32)",
2581
+ "primaryKey": false,
2582
+ "notNull": true,
2583
+ "default": "'gray'"
2584
+ },
2585
+ "id": {
2586
+ "name": "id",
2587
+ "type": "uuid",
2588
+ "primaryKey": true,
2589
+ "notNull": true,
2590
+ "default": "gen_random_uuid()"
2591
+ },
2592
+ "instructions": {
2593
+ "name": "instructions",
2594
+ "type": "text",
2595
+ "primaryKey": false,
2596
+ "notNull": true,
2597
+ "default": "''"
2598
+ },
2599
+ "name": {
2600
+ "name": "name",
2601
+ "type": "text",
2602
+ "primaryKey": false,
2603
+ "notNull": true
2604
+ },
2605
+ "updatedAt": {
2606
+ "name": "updatedAt",
2607
+ "type": "timestamp",
2608
+ "primaryKey": false,
2609
+ "notNull": true,
2610
+ "default": "now()"
2611
+ },
2612
+ "userId": {
2613
+ "name": "userId",
2614
+ "type": "text",
2615
+ "primaryKey": false,
2616
+ "notNull": true
2617
+ }
2618
+ },
2619
+ "indexes": {
2620
+ "Project_user_id_idx": {
2621
+ "name": "Project_user_id_idx",
2622
+ "columns": [
2623
+ {
2624
+ "expression": "userId",
2625
+ "isExpression": false,
2626
+ "asc": true,
2627
+ "nulls": "last"
2628
+ }
2629
+ ],
2630
+ "isUnique": false,
2631
+ "concurrently": false,
2632
+ "method": "btree",
2633
+ "with": {}
2634
+ }
2635
+ },
2636
+ "foreignKeys": {
2637
+ "Project_userId_user_id_fk": {
2638
+ "name": "Project_userId_user_id_fk",
2639
+ "tableFrom": "Project",
2640
+ "tableTo": "user",
2641
+ "columnsFrom": ["userId"],
2642
+ "columnsTo": ["id"],
2643
+ "onDelete": "cascade",
2644
+ "onUpdate": "no action"
2645
+ }
2646
+ },
2647
+ "compositePrimaryKeys": {},
2648
+ "uniqueConstraints": {
2649
+ "Project_id_user": {
2650
+ "name": "Project_id_user",
2651
+ "nullsNotDistinct": false,
2652
+ "columns": ["id", "userId"]
2653
+ }
2654
+ },
2655
+ "policies": {},
2656
+ "checkConstraints": {},
2657
+ "isRLSEnabled": false
2658
+ },
2659
+ "public.session": {
2660
+ "name": "session",
2661
+ "schema": "",
2662
+ "columns": {
2663
+ "created_at": {
2664
+ "name": "created_at",
2665
+ "type": "timestamp",
2666
+ "primaryKey": false,
2667
+ "notNull": true,
2668
+ "default": "now()"
2669
+ },
2670
+ "expires_at": {
2671
+ "name": "expires_at",
2672
+ "type": "timestamp",
2673
+ "primaryKey": false,
2674
+ "notNull": true
2675
+ },
2676
+ "id": {
2677
+ "name": "id",
2678
+ "type": "text",
2679
+ "primaryKey": true,
2680
+ "notNull": true
2681
+ },
2682
+ "ip_address": {
2683
+ "name": "ip_address",
2684
+ "type": "text",
2685
+ "primaryKey": false,
2686
+ "notNull": false
2687
+ },
2688
+ "token": {
2689
+ "name": "token",
2690
+ "type": "text",
2691
+ "primaryKey": false,
2692
+ "notNull": true
2693
+ },
2694
+ "updated_at": {
2695
+ "name": "updated_at",
2696
+ "type": "timestamp",
2697
+ "primaryKey": false,
2698
+ "notNull": true
2699
+ },
2700
+ "user_agent": {
2701
+ "name": "user_agent",
2702
+ "type": "text",
2703
+ "primaryKey": false,
2704
+ "notNull": false
2705
+ },
2706
+ "user_id": {
2707
+ "name": "user_id",
2708
+ "type": "text",
2709
+ "primaryKey": false,
2710
+ "notNull": true
2711
+ }
2712
+ },
2713
+ "indexes": {},
2714
+ "foreignKeys": {
2715
+ "session_user_id_user_id_fk": {
2716
+ "name": "session_user_id_user_id_fk",
2717
+ "tableFrom": "session",
2718
+ "tableTo": "user",
2719
+ "columnsFrom": ["user_id"],
2720
+ "columnsTo": ["id"],
2721
+ "onDelete": "cascade",
2722
+ "onUpdate": "no action"
2723
+ }
2724
+ },
2725
+ "compositePrimaryKeys": {},
2726
+ "uniqueConstraints": {
2727
+ "session_token_unique": {
2728
+ "name": "session_token_unique",
2729
+ "nullsNotDistinct": false,
2730
+ "columns": ["token"]
2731
+ }
2732
+ },
2733
+ "policies": {},
2734
+ "checkConstraints": {},
2735
+ "isRLSEnabled": false
2736
+ },
2737
+ "public.user": {
2738
+ "name": "user",
2739
+ "schema": "",
2740
+ "columns": {
2741
+ "created_at": {
2742
+ "name": "created_at",
2743
+ "type": "timestamp",
2744
+ "primaryKey": false,
2745
+ "notNull": true,
2746
+ "default": "now()"
2747
+ },
2748
+ "email": {
2749
+ "name": "email",
2750
+ "type": "text",
2751
+ "primaryKey": false,
2752
+ "notNull": true
2753
+ },
2754
+ "email_verified": {
2755
+ "name": "email_verified",
2756
+ "type": "boolean",
2757
+ "primaryKey": false,
2758
+ "notNull": true,
2759
+ "default": false
2760
+ },
2761
+ "eve_usage_reconciled_at": {
2762
+ "name": "eve_usage_reconciled_at",
2763
+ "type": "timestamp",
2764
+ "primaryKey": false,
2765
+ "notNull": false
2766
+ },
2767
+ "id": {
2768
+ "name": "id",
2769
+ "type": "text",
2770
+ "primaryKey": true,
2771
+ "notNull": true
2772
+ },
2773
+ "image": {
2774
+ "name": "image",
2775
+ "type": "text",
2776
+ "primaryKey": false,
2777
+ "notNull": false
2778
+ },
2779
+ "name": {
2780
+ "name": "name",
2781
+ "type": "text",
2782
+ "primaryKey": false,
2783
+ "notNull": true
2784
+ },
2785
+ "updated_at": {
2786
+ "name": "updated_at",
2787
+ "type": "timestamp",
2788
+ "primaryKey": false,
2789
+ "notNull": true,
2790
+ "default": "now()"
2791
+ }
2792
+ },
2793
+ "indexes": {},
2794
+ "foreignKeys": {},
2795
+ "compositePrimaryKeys": {},
2796
+ "uniqueConstraints": {
2797
+ "user_email_unique": {
2798
+ "name": "user_email_unique",
2799
+ "nullsNotDistinct": false,
2800
+ "columns": ["email"]
2801
+ }
2802
+ },
2803
+ "policies": {},
2804
+ "checkConstraints": {},
2805
+ "isRLSEnabled": false
2806
+ },
2807
+ "public.UserCredit": {
2808
+ "name": "UserCredit",
2809
+ "schema": "",
2810
+ "columns": {
2811
+ "credits": {
2812
+ "name": "credits",
2813
+ "type": "integer",
2814
+ "primaryKey": false,
2815
+ "notNull": true,
2816
+ "default": 50
2817
+ },
2818
+ "userId": {
2819
+ "name": "userId",
2820
+ "type": "text",
2821
+ "primaryKey": true,
2822
+ "notNull": true
2823
+ }
2824
+ },
2825
+ "indexes": {},
2826
+ "foreignKeys": {
2827
+ "UserCredit_userId_user_id_fk": {
2828
+ "name": "UserCredit_userId_user_id_fk",
2829
+ "tableFrom": "UserCredit",
2830
+ "tableTo": "user",
2831
+ "columnsFrom": ["userId"],
2832
+ "columnsTo": ["id"],
2833
+ "onDelete": "cascade",
2834
+ "onUpdate": "no action"
2835
+ }
2836
+ },
2837
+ "compositePrimaryKeys": {},
2838
+ "uniqueConstraints": {},
2839
+ "policies": {},
2840
+ "checkConstraints": {},
2841
+ "isRLSEnabled": false
2842
+ },
2843
+ "public.UserModelPreference": {
2844
+ "name": "UserModelPreference",
2845
+ "schema": "",
2846
+ "columns": {
2847
+ "createdAt": {
2848
+ "name": "createdAt",
2849
+ "type": "timestamp",
2850
+ "primaryKey": false,
2851
+ "notNull": true,
2852
+ "default": "now()"
2853
+ },
2854
+ "enabled": {
2855
+ "name": "enabled",
2856
+ "type": "boolean",
2857
+ "primaryKey": false,
2858
+ "notNull": true
2859
+ },
2860
+ "modelId": {
2861
+ "name": "modelId",
2862
+ "type": "varchar(256)",
2863
+ "primaryKey": false,
2864
+ "notNull": true
2865
+ },
2866
+ "updatedAt": {
2867
+ "name": "updatedAt",
2868
+ "type": "timestamp",
2869
+ "primaryKey": false,
2870
+ "notNull": true,
2871
+ "default": "now()"
2872
+ },
2873
+ "userId": {
2874
+ "name": "userId",
2875
+ "type": "text",
2876
+ "primaryKey": false,
2877
+ "notNull": true
2878
+ }
2879
+ },
2880
+ "indexes": {
2881
+ "UserModelPreference_user_id_idx": {
2882
+ "name": "UserModelPreference_user_id_idx",
2883
+ "columns": [
2884
+ {
2885
+ "expression": "userId",
2886
+ "isExpression": false,
2887
+ "asc": true,
2888
+ "nulls": "last"
2889
+ }
2890
+ ],
2891
+ "isUnique": false,
2892
+ "concurrently": false,
2893
+ "method": "btree",
2894
+ "with": {}
2895
+ }
2896
+ },
2897
+ "foreignKeys": {
2898
+ "UserModelPreference_userId_user_id_fk": {
2899
+ "name": "UserModelPreference_userId_user_id_fk",
2900
+ "tableFrom": "UserModelPreference",
2901
+ "tableTo": "user",
2902
+ "columnsFrom": ["userId"],
2903
+ "columnsTo": ["id"],
2904
+ "onDelete": "cascade",
2905
+ "onUpdate": "no action"
2906
+ }
2907
+ },
2908
+ "compositePrimaryKeys": {
2909
+ "UserModelPreference_userId_modelId_pk": {
2910
+ "name": "UserModelPreference_userId_modelId_pk",
2911
+ "columns": ["userId", "modelId"]
2912
+ }
2913
+ },
2914
+ "uniqueConstraints": {},
2915
+ "policies": {},
2916
+ "checkConstraints": {},
2917
+ "isRLSEnabled": false
2918
+ },
2919
+ "public.verification": {
2920
+ "name": "verification",
2921
+ "schema": "",
2922
+ "columns": {
2923
+ "created_at": {
2924
+ "name": "created_at",
2925
+ "type": "timestamp",
2926
+ "primaryKey": false,
2927
+ "notNull": true,
2928
+ "default": "now()"
2929
+ },
2930
+ "expires_at": {
2931
+ "name": "expires_at",
2932
+ "type": "timestamp",
2933
+ "primaryKey": false,
2934
+ "notNull": true
2935
+ },
2936
+ "id": {
2937
+ "name": "id",
2938
+ "type": "text",
2939
+ "primaryKey": true,
2940
+ "notNull": true
2941
+ },
2942
+ "identifier": {
2943
+ "name": "identifier",
2944
+ "type": "text",
2945
+ "primaryKey": false,
2946
+ "notNull": true
2947
+ },
2948
+ "updated_at": {
2949
+ "name": "updated_at",
2950
+ "type": "timestamp",
2951
+ "primaryKey": false,
2952
+ "notNull": true,
2953
+ "default": "now()"
2954
+ },
2955
+ "value": {
2956
+ "name": "value",
2957
+ "type": "text",
2958
+ "primaryKey": false,
2959
+ "notNull": true
2960
+ }
2961
+ },
2962
+ "indexes": {},
2963
+ "foreignKeys": {},
2964
+ "compositePrimaryKeys": {},
2965
+ "uniqueConstraints": {},
2966
+ "policies": {},
2967
+ "checkConstraints": {},
2968
+ "isRLSEnabled": false
2969
+ }
2970
+ },
2971
+ "enums": {},
2972
+ "schemas": {},
2973
+ "sequences": {},
2974
+ "roles": {},
2975
+ "policies": {},
2976
+ "views": {},
2977
+ "_meta": {
2978
+ "columns": {},
2979
+ "schemas": {},
2980
+ "tables": {}
2981
+ }
2982
+ }