@indx-workspace/embedded 0.0.0-bootstrap → 0.3.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 (619) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/LICENSE +202 -0
  3. package/README.md +309 -0
  4. package/dist/bin.js +73 -0
  5. package/dist/launch.js +28617 -0
  6. package/dist/migrations/0000_init.sql +119 -0
  7. package/dist/migrations/0001_w2_resources.sql +177 -0
  8. package/dist/migrations/0002_w3_runtime_profiles.sql +34 -0
  9. package/dist/migrations/0003_steep_galactus.sql +91 -0
  10. package/dist/migrations/0004_overconfident_lake.sql +16 -0
  11. package/dist/migrations/0005_durable_sessions_run_tokens.sql +46 -0
  12. package/dist/migrations/0006_familiar_karnak.sql +2 -0
  13. package/dist/migrations/0007_fast_hannibal_king.sql +1 -0
  14. package/dist/migrations/0008_damp_nemesis.sql +31 -0
  15. package/dist/migrations/0009_special_thena.sql +2 -0
  16. package/dist/migrations/0010_little_power_pack.sql +66 -0
  17. package/dist/migrations/0011_goofy_storm.sql +14 -0
  18. package/dist/migrations/0012_legal_shatterstar.sql +14 -0
  19. package/dist/migrations/0013_secret_namora.sql +9 -0
  20. package/dist/migrations/0014_premium_vengeance.sql +16 -0
  21. package/dist/migrations/0015_amazing_screwball.sql +1 -0
  22. package/dist/migrations/0016_next_satana.sql +29 -0
  23. package/dist/migrations/0017_wild_the_executioner.sql +1 -0
  24. package/dist/migrations/0018_heavy_stone_men.sql +2 -0
  25. package/dist/migrations/0019_repair_legacy_run_accounting.sql +20 -0
  26. package/dist/migrations/0020_sparkling_nova.sql +340 -0
  27. package/dist/migrations/0021_slippery_sister_grimm.sql +1 -0
  28. package/dist/migrations/0022_warm_paibok.sql +26 -0
  29. package/dist/migrations/0023_colorful_shotgun.sql +2 -0
  30. package/dist/migrations/0024_curly_molten_man.sql +9 -0
  31. package/dist/migrations/0025_name_the_engine_in_stored_rows.sql +50 -0
  32. package/dist/migrations/0026_create_the_engine_scoped_session_state_store.sql +47 -0
  33. package/dist/migrations/0027_backfill_claude_session_state.sql +66 -0
  34. package/dist/migrations/0028_widen_the_engine_checks_to_openai_agents.sql +14 -0
  35. package/dist/migrations/0029_widen_the_engine_checks_to_pi.sql +14 -0
  36. package/dist/migrations/0030_create_the_cli_sessions_table.sql +23 -0
  37. package/dist/migrations/0031_widen_the_engine_checks_to_mastra.sql +17 -0
  38. package/dist/migrations/0032_mark_the_setup_agent.sql +7 -0
  39. package/dist/migrations/0033_create_the_agent_version_store.sql +41 -0
  40. package/dist/migrations/0034_mark_the_workspace_default_runtime_profile.sql +15 -0
  41. package/dist/migrations/0035_record_who_a_local_runtime_key_acts_for.sql +19 -0
  42. package/dist/migrations/0036_add_connector_kinds_and_the_run_tool_snapshot.sql +34 -0
  43. package/dist/migrations/0037_create_the_surface_session_keys.sql +20 -0
  44. package/dist/migrations/0038_record_feedback_on_a_run.sql +14 -0
  45. package/dist/migrations/0039_record_an_evaluation_of_a_version.sql +18 -0
  46. package/dist/migrations/0040_record_the_materialised_version.sql +23 -0
  47. package/dist/migrations/0041_pin_a_session_to_its_agent_version.sql +4 -0
  48. package/dist/migrations/0042_store_the_prompt_of_a_run.sql +1 -0
  49. package/dist/migrations/0043_record_every_pointer_move.sql +30 -0
  50. package/dist/migrations/meta/0000_snapshot.json +964 -0
  51. package/dist/migrations/meta/0001_snapshot.json +2278 -0
  52. package/dist/migrations/meta/0002_snapshot.json +2550 -0
  53. package/dist/migrations/meta/0003_snapshot.json +3295 -0
  54. package/dist/migrations/meta/0004_snapshot.json +3452 -0
  55. package/dist/migrations/meta/0005_snapshot.json +3921 -0
  56. package/dist/migrations/meta/0006_snapshot.json +3949 -0
  57. package/dist/migrations/meta/0007_snapshot.json +3956 -0
  58. package/dist/migrations/meta/0008_snapshot.json +4177 -0
  59. package/dist/migrations/meta/0009_snapshot.json +4177 -0
  60. package/dist/migrations/meta/0010_snapshot.json +3988 -0
  61. package/dist/migrations/meta/0011_snapshot.json +4491 -0
  62. package/dist/migrations/meta/0012_snapshot.json +4629 -0
  63. package/dist/migrations/meta/0013_snapshot.json +4646 -0
  64. package/dist/migrations/meta/0014_snapshot.json +4313 -0
  65. package/dist/migrations/meta/0015_snapshot.json +4775 -0
  66. package/dist/migrations/meta/0016_snapshot.json +4976 -0
  67. package/dist/migrations/meta/0017_snapshot.json +4982 -0
  68. package/dist/migrations/meta/0018_snapshot.json +4982 -0
  69. package/dist/migrations/meta/0019_snapshot.json +4990 -0
  70. package/dist/migrations/meta/0020_snapshot.json +5469 -0
  71. package/dist/migrations/meta/0021_snapshot.json +5475 -0
  72. package/dist/migrations/meta/0022_snapshot.json +5711 -0
  73. package/dist/migrations/meta/0023_snapshot.json +5722 -0
  74. package/dist/migrations/meta/0024_snapshot.json +5748 -0
  75. package/dist/migrations/meta/0025_snapshot.json +5748 -0
  76. package/dist/migrations/meta/0026_snapshot.json +6151 -0
  77. package/dist/migrations/meta/0027_snapshot.json +6151 -0
  78. package/dist/migrations/meta/0028_snapshot.json +6151 -0
  79. package/dist/migrations/meta/0029_snapshot.json +6151 -0
  80. package/dist/migrations/meta/0030_snapshot.json +6328 -0
  81. package/dist/migrations/meta/0031_snapshot.json +6328 -0
  82. package/dist/migrations/meta/0032_snapshot.json +6334 -0
  83. package/dist/migrations/meta/0033_snapshot.json +6615 -0
  84. package/dist/migrations/meta/0034_snapshot.json +6633 -0
  85. package/dist/migrations/meta/0035_snapshot.json +6662 -0
  86. package/dist/migrations/meta/0036_snapshot.json +6706 -0
  87. package/dist/migrations/meta/0037_snapshot.json +6816 -0
  88. package/dist/migrations/meta/0038_snapshot.json +6927 -0
  89. package/dist/migrations/meta/0039_snapshot.json +7073 -0
  90. package/dist/migrations/meta/0040_snapshot.json +7096 -0
  91. package/dist/migrations/meta/0041_snapshot.json +7119 -0
  92. package/dist/migrations/meta/0042_snapshot.json +7125 -0
  93. package/dist/migrations/meta/0043_snapshot.json +7292 -0
  94. package/dist/migrations/meta/_journal.json +314 -0
  95. package/dist/web/.next-embedded/BUILD_ID +1 -0
  96. package/dist/web/.next-embedded/app-path-routes-manifest.json +108 -0
  97. package/dist/web/.next-embedded/build-manifest.json +20 -0
  98. package/dist/web/.next-embedded/diagnostics/build-diagnostics.json +6 -0
  99. package/dist/web/.next-embedded/diagnostics/framework.json +1 -0
  100. package/dist/web/.next-embedded/export-marker.json +6 -0
  101. package/dist/web/.next-embedded/images-manifest.json +68 -0
  102. package/dist/web/.next-embedded/package.json +1 -0
  103. package/dist/web/.next-embedded/prerender-manifest.json +97 -0
  104. package/dist/web/.next-embedded/react-loadable-manifest.json +1 -0
  105. package/dist/web/.next-embedded/required-server-files.js +355 -0
  106. package/dist/web/.next-embedded/required-server-files.json +355 -0
  107. package/dist/web/.next-embedded/routes-manifest.json +786 -0
  108. package/dist/web/.next-embedded/server/app/(shell)/admin/api-keys/page.js +1 -0
  109. package/dist/web/.next-embedded/server/app/(shell)/admin/api-keys/page_client-reference-manifest.js +1 -0
  110. package/dist/web/.next-embedded/server/app/(shell)/admin/models/new/page.js +1 -0
  111. package/dist/web/.next-embedded/server/app/(shell)/admin/models/new/page_client-reference-manifest.js +1 -0
  112. package/dist/web/.next-embedded/server/app/(shell)/admin/models/page.js +1 -0
  113. package/dist/web/.next-embedded/server/app/(shell)/admin/models/page_client-reference-manifest.js +1 -0
  114. package/dist/web/.next-embedded/server/app/(shell)/admin/runtimes/page.js +1 -0
  115. package/dist/web/.next-embedded/server/app/(shell)/admin/runtimes/page_client-reference-manifest.js +1 -0
  116. package/dist/web/.next-embedded/server/app/(shell)/admin/settings/page.js +1 -0
  117. package/dist/web/.next-embedded/server/app/(shell)/admin/settings/page_client-reference-manifest.js +1 -0
  118. package/dist/web/.next-embedded/server/app/(shell)/admin/shares/page.js +1 -0
  119. package/dist/web/.next-embedded/server/app/(shell)/admin/shares/page_client-reference-manifest.js +1 -0
  120. package/dist/web/.next-embedded/server/app/(shell)/admin/users/page.js +1 -0
  121. package/dist/web/.next-embedded/server/app/(shell)/admin/users/page_client-reference-manifest.js +1 -0
  122. package/dist/web/.next-embedded/server/app/(shell)/agents/[id]/page.js +1 -0
  123. package/dist/web/.next-embedded/server/app/(shell)/agents/[id]/page_client-reference-manifest.js +1 -0
  124. package/dist/web/.next-embedded/server/app/(shell)/agents/new/page.js +1 -0
  125. package/dist/web/.next-embedded/server/app/(shell)/agents/new/page_client-reference-manifest.js +1 -0
  126. package/dist/web/.next-embedded/server/app/(shell)/agents/page.js +1 -0
  127. package/dist/web/.next-embedded/server/app/(shell)/agents/page_client-reference-manifest.js +1 -0
  128. package/dist/web/.next-embedded/server/app/(shell)/connectors/new/page.js +1 -0
  129. package/dist/web/.next-embedded/server/app/(shell)/connectors/new/page_client-reference-manifest.js +1 -0
  130. package/dist/web/.next-embedded/server/app/(shell)/connectors/page.js +1 -0
  131. package/dist/web/.next-embedded/server/app/(shell)/connectors/page_client-reference-manifest.js +1 -0
  132. package/dist/web/.next-embedded/server/app/(shell)/files/page.js +1 -0
  133. package/dist/web/.next-embedded/server/app/(shell)/files/page_client-reference-manifest.js +1 -0
  134. package/dist/web/.next-embedded/server/app/(shell)/page.js +1 -0
  135. package/dist/web/.next-embedded/server/app/(shell)/page_client-reference-manifest.js +1 -0
  136. package/dist/web/.next-embedded/server/app/(shell)/projects/[id]/page.js +1 -0
  137. package/dist/web/.next-embedded/server/app/(shell)/projects/[id]/page_client-reference-manifest.js +1 -0
  138. package/dist/web/.next-embedded/server/app/(shell)/projects/page.js +1 -0
  139. package/dist/web/.next-embedded/server/app/(shell)/projects/page_client-reference-manifest.js +1 -0
  140. package/dist/web/.next-embedded/server/app/(shell)/runs/page.js +1 -0
  141. package/dist/web/.next-embedded/server/app/(shell)/runs/page_client-reference-manifest.js +1 -0
  142. package/dist/web/.next-embedded/server/app/(shell)/skills/[name]/page.js +1 -0
  143. package/dist/web/.next-embedded/server/app/(shell)/skills/[name]/page_client-reference-manifest.js +1 -0
  144. package/dist/web/.next-embedded/server/app/(shell)/skills/page.js +1 -0
  145. package/dist/web/.next-embedded/server/app/(shell)/skills/page_client-reference-manifest.js +1 -0
  146. package/dist/web/.next-embedded/server/app/(shell)/workspaces/page.js +1 -0
  147. package/dist/web/.next-embedded/server/app/(shell)/workspaces/page_client-reference-manifest.js +1 -0
  148. package/dist/web/.next-embedded/server/app/_global-error/page.js +31 -0
  149. package/dist/web/.next-embedded/server/app/_global-error/page_client-reference-manifest.js +1 -0
  150. package/dist/web/.next-embedded/server/app/_global-error.html +1 -0
  151. package/dist/web/.next-embedded/server/app/_global-error.meta +27 -0
  152. package/dist/web/.next-embedded/server/app/_global-error.rsc +14 -0
  153. package/dist/web/.next-embedded/server/app/_global-error.segments/_full.segment.rsc +14 -0
  154. package/dist/web/.next-embedded/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -0
  155. package/dist/web/.next-embedded/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  156. package/dist/web/.next-embedded/server/app/_not-found/page.js +1 -0
  157. package/dist/web/.next-embedded/server/app/_not-found/page_client-reference-manifest.js +1 -0
  158. package/dist/web/.next-embedded/server/app/_not-found.html +1 -0
  159. package/dist/web/.next-embedded/server/app/_not-found.meta +27 -0
  160. package/dist/web/.next-embedded/server/app/_not-found.rsc +15 -0
  161. package/dist/web/.next-embedded/server/app/_not-found.segments/_full.segment.rsc +15 -0
  162. package/dist/web/.next-embedded/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +21 -0
  163. package/dist/web/.next-embedded/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  164. package/dist/web/.next-embedded/server/app/api/agents/[id]/evaluations/route.js +1 -0
  165. package/dist/web/.next-embedded/server/app/api/agents/[id]/evaluations/route_client-reference-manifest.js +1 -0
  166. package/dist/web/.next-embedded/server/app/api/agents/[id]/feedback/route.js +1 -0
  167. package/dist/web/.next-embedded/server/app/api/agents/[id]/feedback/route_client-reference-manifest.js +1 -0
  168. package/dist/web/.next-embedded/server/app/api/agents/[id]/grants/route.js +1 -0
  169. package/dist/web/.next-embedded/server/app/api/agents/[id]/grants/route_client-reference-manifest.js +1 -0
  170. package/dist/web/.next-embedded/server/app/api/agents/[id]/pointers/route.js +1 -0
  171. package/dist/web/.next-embedded/server/app/api/agents/[id]/pointers/route_client-reference-manifest.js +1 -0
  172. package/dist/web/.next-embedded/server/app/api/agents/[id]/policy/route.js +1 -0
  173. package/dist/web/.next-embedded/server/app/api/agents/[id]/policy/route_client-reference-manifest.js +1 -0
  174. package/dist/web/.next-embedded/server/app/api/agents/[id]/promote/route.js +1 -0
  175. package/dist/web/.next-embedded/server/app/api/agents/[id]/promote/route_client-reference-manifest.js +1 -0
  176. package/dist/web/.next-embedded/server/app/api/agents/[id]/resources/route.js +1 -0
  177. package/dist/web/.next-embedded/server/app/api/agents/[id]/resources/route_client-reference-manifest.js +1 -0
  178. package/dist/web/.next-embedded/server/app/api/agents/[id]/rollback/route.js +1 -0
  179. package/dist/web/.next-embedded/server/app/api/agents/[id]/rollback/route_client-reference-manifest.js +1 -0
  180. package/dist/web/.next-embedded/server/app/api/agents/[id]/route.js +1 -0
  181. package/dist/web/.next-embedded/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -0
  182. package/dist/web/.next-embedded/server/app/api/agents/[id]/runs/route.js +1 -0
  183. package/dist/web/.next-embedded/server/app/api/agents/[id]/runs/route_client-reference-manifest.js +1 -0
  184. package/dist/web/.next-embedded/server/app/api/agents/[id]/versions/route.js +1 -0
  185. package/dist/web/.next-embedded/server/app/api/agents/[id]/versions/route_client-reference-manifest.js +1 -0
  186. package/dist/web/.next-embedded/server/app/api/agents/route.js +1 -0
  187. package/dist/web/.next-embedded/server/app/api/agents/route_client-reference-manifest.js +1 -0
  188. package/dist/web/.next-embedded/server/app/api/api-keys/[id]/route.js +1 -0
  189. package/dist/web/.next-embedded/server/app/api/api-keys/[id]/route_client-reference-manifest.js +1 -0
  190. package/dist/web/.next-embedded/server/app/api/api-keys/route.js +1 -0
  191. package/dist/web/.next-embedded/server/app/api/api-keys/route_client-reference-manifest.js +1 -0
  192. package/dist/web/.next-embedded/server/app/api/audit-events/route.js +1 -0
  193. package/dist/web/.next-embedded/server/app/api/audit-events/route_client-reference-manifest.js +1 -0
  194. package/dist/web/.next-embedded/server/app/api/auth/callback/route.js +1 -0
  195. package/dist/web/.next-embedded/server/app/api/auth/callback/route_client-reference-manifest.js +1 -0
  196. package/dist/web/.next-embedded/server/app/api/auth/cli-device/route.js +1 -0
  197. package/dist/web/.next-embedded/server/app/api/auth/cli-device/route_client-reference-manifest.js +1 -0
  198. package/dist/web/.next-embedded/server/app/api/auth/cli-token/route.js +1 -0
  199. package/dist/web/.next-embedded/server/app/api/auth/cli-token/route_client-reference-manifest.js +1 -0
  200. package/dist/web/.next-embedded/server/app/api/auth/cli-verify/route.js +1 -0
  201. package/dist/web/.next-embedded/server/app/api/auth/cli-verify/route_client-reference-manifest.js +1 -0
  202. package/dist/web/.next-embedded/server/app/api/auth/cli-workspace/route.js +1 -0
  203. package/dist/web/.next-embedded/server/app/api/auth/cli-workspace/route_client-reference-manifest.js +1 -0
  204. package/dist/web/.next-embedded/server/app/api/auth/login/route.js +1 -0
  205. package/dist/web/.next-embedded/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
  206. package/dist/web/.next-embedded/server/app/api/auth/workspace/route.js +13 -0
  207. package/dist/web/.next-embedded/server/app/api/auth/workspace/route_client-reference-manifest.js +1 -0
  208. package/dist/web/.next-embedded/server/app/api/connectors/[id]/route.js +1 -0
  209. package/dist/web/.next-embedded/server/app/api/connectors/[id]/route_client-reference-manifest.js +1 -0
  210. package/dist/web/.next-embedded/server/app/api/connectors/[id]/test-connection/route.js +1 -0
  211. package/dist/web/.next-embedded/server/app/api/connectors/[id]/test-connection/route_client-reference-manifest.js +1 -0
  212. package/dist/web/.next-embedded/server/app/api/connectors/route.js +1 -0
  213. package/dist/web/.next-embedded/server/app/api/connectors/route_client-reference-manifest.js +1 -0
  214. package/dist/web/.next-embedded/server/app/api/engines/route.js +1 -0
  215. package/dist/web/.next-embedded/server/app/api/engines/route_client-reference-manifest.js +1 -0
  216. package/dist/web/.next-embedded/server/app/api/files/[id]/route.js +1 -0
  217. package/dist/web/.next-embedded/server/app/api/files/[id]/route_client-reference-manifest.js +1 -0
  218. package/dist/web/.next-embedded/server/app/api/files/route.js +1 -0
  219. package/dist/web/.next-embedded/server/app/api/files/route_client-reference-manifest.js +1 -0
  220. package/dist/web/.next-embedded/server/app/api/invitations/[id]/accept/route.js +1 -0
  221. package/dist/web/.next-embedded/server/app/api/invitations/[id]/accept/route_client-reference-manifest.js +1 -0
  222. package/dist/web/.next-embedded/server/app/api/invitations/[id]/resend/route.js +1 -0
  223. package/dist/web/.next-embedded/server/app/api/invitations/[id]/resend/route_client-reference-manifest.js +1 -0
  224. package/dist/web/.next-embedded/server/app/api/invitations/[id]/route.js +1 -0
  225. package/dist/web/.next-embedded/server/app/api/invitations/[id]/route_client-reference-manifest.js +1 -0
  226. package/dist/web/.next-embedded/server/app/api/invitations/route.js +1 -0
  227. package/dist/web/.next-embedded/server/app/api/invitations/route_client-reference-manifest.js +1 -0
  228. package/dist/web/.next-embedded/server/app/api/me/route.js +1 -0
  229. package/dist/web/.next-embedded/server/app/api/me/route_client-reference-manifest.js +1 -0
  230. package/dist/web/.next-embedded/server/app/api/memberships/[id]/route.js +1 -0
  231. package/dist/web/.next-embedded/server/app/api/memberships/[id]/route_client-reference-manifest.js +1 -0
  232. package/dist/web/.next-embedded/server/app/api/memberships/route.js +1 -0
  233. package/dist/web/.next-embedded/server/app/api/memberships/route_client-reference-manifest.js +1 -0
  234. package/dist/web/.next-embedded/server/app/api/metrics/route.js +1 -0
  235. package/dist/web/.next-embedded/server/app/api/metrics/route_client-reference-manifest.js +1 -0
  236. package/dist/web/.next-embedded/server/app/api/model-connections/[id]/credential/route.js +1 -0
  237. package/dist/web/.next-embedded/server/app/api/model-connections/[id]/credential/route_client-reference-manifest.js +1 -0
  238. package/dist/web/.next-embedded/server/app/api/model-connections/[id]/route.js +1 -0
  239. package/dist/web/.next-embedded/server/app/api/model-connections/[id]/route_client-reference-manifest.js +1 -0
  240. package/dist/web/.next-embedded/server/app/api/model-connections/[id]/test/route.js +1 -0
  241. package/dist/web/.next-embedded/server/app/api/model-connections/[id]/test/route_client-reference-manifest.js +1 -0
  242. package/dist/web/.next-embedded/server/app/api/model-connections/route.js +1 -0
  243. package/dist/web/.next-embedded/server/app/api/model-connections/route_client-reference-manifest.js +1 -0
  244. package/dist/web/.next-embedded/server/app/api/models/route.js +1 -0
  245. package/dist/web/.next-embedded/server/app/api/models/route_client-reference-manifest.js +1 -0
  246. package/dist/web/.next-embedded/server/app/api/projects/[id]/archive/route.js +1 -0
  247. package/dist/web/.next-embedded/server/app/api/projects/[id]/archive/route_client-reference-manifest.js +1 -0
  248. package/dist/web/.next-embedded/server/app/api/projects/[id]/restore/route.js +1 -0
  249. package/dist/web/.next-embedded/server/app/api/projects/[id]/restore/route_client-reference-manifest.js +1 -0
  250. package/dist/web/.next-embedded/server/app/api/projects/[id]/route.js +1 -0
  251. package/dist/web/.next-embedded/server/app/api/projects/[id]/route_client-reference-manifest.js +1 -0
  252. package/dist/web/.next-embedded/server/app/api/projects/[id]/sessions/route.js +1 -0
  253. package/dist/web/.next-embedded/server/app/api/projects/[id]/sessions/route_client-reference-manifest.js +1 -0
  254. package/dist/web/.next-embedded/server/app/api/projects/route.js +1 -0
  255. package/dist/web/.next-embedded/server/app/api/projects/route_client-reference-manifest.js +1 -0
  256. package/dist/web/.next-embedded/server/app/api/runs/[id]/events/route.js +1 -0
  257. package/dist/web/.next-embedded/server/app/api/runs/[id]/events/route_client-reference-manifest.js +1 -0
  258. package/dist/web/.next-embedded/server/app/api/runs/[id]/feedback/route.js +1 -0
  259. package/dist/web/.next-embedded/server/app/api/runs/[id]/feedback/route_client-reference-manifest.js +1 -0
  260. package/dist/web/.next-embedded/server/app/api/runs/[id]/interrupt/route.js +1 -0
  261. package/dist/web/.next-embedded/server/app/api/runs/[id]/interrupt/route_client-reference-manifest.js +1 -0
  262. package/dist/web/.next-embedded/server/app/api/runs/[id]/revoke-tokens/route.js +1 -0
  263. package/dist/web/.next-embedded/server/app/api/runs/[id]/revoke-tokens/route_client-reference-manifest.js +1 -0
  264. package/dist/web/.next-embedded/server/app/api/runs/[id]/route.js +1 -0
  265. package/dist/web/.next-embedded/server/app/api/runs/[id]/route_client-reference-manifest.js +1 -0
  266. package/dist/web/.next-embedded/server/app/api/runs/route.js +1 -0
  267. package/dist/web/.next-embedded/server/app/api/runs/route_client-reference-manifest.js +1 -0
  268. package/dist/web/.next-embedded/server/app/api/runtime-connections/route.js +1 -0
  269. package/dist/web/.next-embedded/server/app/api/runtime-connections/route_client-reference-manifest.js +1 -0
  270. package/dist/web/.next-embedded/server/app/api/runtime-profiles/[id]/route.js +1 -0
  271. package/dist/web/.next-embedded/server/app/api/runtime-profiles/[id]/route_client-reference-manifest.js +1 -0
  272. package/dist/web/.next-embedded/server/app/api/runtime-profiles/route.js +1 -0
  273. package/dist/web/.next-embedded/server/app/api/runtime-profiles/route_client-reference-manifest.js +1 -0
  274. package/dist/web/.next-embedded/server/app/api/runtimes/[id]/route.js +1 -0
  275. package/dist/web/.next-embedded/server/app/api/runtimes/[id]/route_client-reference-manifest.js +1 -0
  276. package/dist/web/.next-embedded/server/app/api/secrets/[id]/route.js +1 -0
  277. package/dist/web/.next-embedded/server/app/api/secrets/[id]/route_client-reference-manifest.js +1 -0
  278. package/dist/web/.next-embedded/server/app/api/secrets/route.js +1 -0
  279. package/dist/web/.next-embedded/server/app/api/secrets/route_client-reference-manifest.js +1 -0
  280. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/route.js +1 -0
  281. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/route_client-reference-manifest.js +1 -0
  282. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-blobs/route.js +1 -0
  283. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-blobs/route_client-reference-manifest.js +1 -0
  284. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-entries/route.js +1 -0
  285. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-entries/route_client-reference-manifest.js +1 -0
  286. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-streams/route.js +1 -0
  287. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/state-streams/route_client-reference-manifest.js +1 -0
  288. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/subkeys/route.js +1 -0
  289. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/subkeys/route_client-reference-manifest.js +1 -0
  290. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/transcript/route.js +1 -0
  291. package/dist/web/.next-embedded/server/app/api/sessions/[engineSessionId]/transcript/route_client-reference-manifest.js +1 -0
  292. package/dist/web/.next-embedded/server/app/api/sessions/route.js +1 -0
  293. package/dist/web/.next-embedded/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  294. package/dist/web/.next-embedded/server/app/api/setup/route.js +1 -0
  295. package/dist/web/.next-embedded/server/app/api/setup/route_client-reference-manifest.js +1 -0
  296. package/dist/web/.next-embedded/server/app/api/setup/runtime-detect/route.js +1 -0
  297. package/dist/web/.next-embedded/server/app/api/setup/runtime-detect/route_client-reference-manifest.js +1 -0
  298. package/dist/web/.next-embedded/server/app/api/shares/[id]/route.js +1 -0
  299. package/dist/web/.next-embedded/server/app/api/shares/[id]/route_client-reference-manifest.js +1 -0
  300. package/dist/web/.next-embedded/server/app/api/shares/route.js +1 -0
  301. package/dist/web/.next-embedded/server/app/api/shares/route_client-reference-manifest.js +1 -0
  302. package/dist/web/.next-embedded/server/app/api/sharing-policies/route.js +1 -0
  303. package/dist/web/.next-embedded/server/app/api/sharing-policies/route_client-reference-manifest.js +1 -0
  304. package/dist/web/.next-embedded/server/app/api/skills/[name]/route.js +1 -0
  305. package/dist/web/.next-embedded/server/app/api/skills/[name]/route_client-reference-manifest.js +1 -0
  306. package/dist/web/.next-embedded/server/app/api/skills/route.js +1 -0
  307. package/dist/web/.next-embedded/server/app/api/skills/route_client-reference-manifest.js +1 -0
  308. package/dist/web/.next-embedded/server/app/api/tokens/route.js +1 -0
  309. package/dist/web/.next-embedded/server/app/api/tokens/route_client-reference-manifest.js +1 -0
  310. package/dist/web/.next-embedded/server/app/api/users/route.js +1 -0
  311. package/dist/web/.next-embedded/server/app/api/users/route_client-reference-manifest.js +1 -0
  312. package/dist/web/.next-embedded/server/app/api/workspaces/[id]/route.js +1 -0
  313. package/dist/web/.next-embedded/server/app/api/workspaces/[id]/route_client-reference-manifest.js +1 -0
  314. package/dist/web/.next-embedded/server/app/api/workspaces/route.js +1 -0
  315. package/dist/web/.next-embedded/server/app/api/workspaces/route_client-reference-manifest.js +1 -0
  316. package/dist/web/.next-embedded/server/app/p/[token]/messages/route.js +1 -0
  317. package/dist/web/.next-embedded/server/app/p/[token]/messages/route_client-reference-manifest.js +1 -0
  318. package/dist/web/.next-embedded/server/app/p/[token]/page.js +1 -0
  319. package/dist/web/.next-embedded/server/app/p/[token]/page_client-reference-manifest.js +1 -0
  320. package/dist/web/.next-embedded/server/app/p/s/[name]/page.js +1 -0
  321. package/dist/web/.next-embedded/server/app/p/s/[name]/page_client-reference-manifest.js +1 -0
  322. package/dist/web/.next-embedded/server/app/p/s/[name]/sessions/route.js +1 -0
  323. package/dist/web/.next-embedded/server/app/p/s/[name]/sessions/route_client-reference-manifest.js +1 -0
  324. package/dist/web/.next-embedded/server/app/p/s/[name]/try/page.js +1 -0
  325. package/dist/web/.next-embedded/server/app/p/s/[name]/try/page_client-reference-manifest.js +1 -0
  326. package/dist/web/.next-embedded/server/app/p/s/[name]/widget.js/route.js +156 -0
  327. package/dist/web/.next-embedded/server/app/p/s/[name]/widget.js/route_client-reference-manifest.js +1 -0
  328. package/dist/web/.next-embedded/server/app/setup/page.js +1 -0
  329. package/dist/web/.next-embedded/server/app/setup/page_client-reference-manifest.js +1 -0
  330. package/dist/web/.next-embedded/server/app/setup.html +1 -0
  331. package/dist/web/.next-embedded/server/app/setup.meta +26 -0
  332. package/dist/web/.next-embedded/server/app/setup.rsc +16 -0
  333. package/dist/web/.next-embedded/server/app/setup.segments/_full.segment.rsc +16 -0
  334. package/dist/web/.next-embedded/server/app/setup.segments/_tree.segment.rsc +2 -0
  335. package/dist/web/.next-embedded/server/app/setup.segments/setup/__PAGE__.segment.rsc +22 -0
  336. package/dist/web/.next-embedded/server/app/signin/page.js +2 -0
  337. package/dist/web/.next-embedded/server/app/signin/page_client-reference-manifest.js +1 -0
  338. package/dist/web/.next-embedded/server/app-paths-manifest.json +108 -0
  339. package/dist/web/.next-embedded/server/chunks/1117.js +1 -0
  340. package/dist/web/.next-embedded/server/chunks/1173.js +1 -0
  341. package/dist/web/.next-embedded/server/chunks/1190.js +1 -0
  342. package/dist/web/.next-embedded/server/chunks/121.js +1 -0
  343. package/dist/web/.next-embedded/server/chunks/1231.js +8 -0
  344. package/dist/web/.next-embedded/server/chunks/1252.js +1 -0
  345. package/dist/web/.next-embedded/server/chunks/1328.js +1 -0
  346. package/dist/web/.next-embedded/server/chunks/1503.js +1 -0
  347. package/dist/web/.next-embedded/server/chunks/1519.js +1 -0
  348. package/dist/web/.next-embedded/server/chunks/1610.js +1 -0
  349. package/dist/web/.next-embedded/server/chunks/1614.js +1 -0
  350. package/dist/web/.next-embedded/server/chunks/1794.js +1 -0
  351. package/dist/web/.next-embedded/server/chunks/1804.js +1 -0
  352. package/dist/web/.next-embedded/server/chunks/1924.js +1 -0
  353. package/dist/web/.next-embedded/server/chunks/1947.js +1 -0
  354. package/dist/web/.next-embedded/server/chunks/1998.js +1 -0
  355. package/dist/web/.next-embedded/server/chunks/2026.js +1 -0
  356. package/dist/web/.next-embedded/server/chunks/2030.js +39 -0
  357. package/dist/web/.next-embedded/server/chunks/2049.js +12 -0
  358. package/dist/web/.next-embedded/server/chunks/2192.js +1 -0
  359. package/dist/web/.next-embedded/server/chunks/2208.js +3 -0
  360. package/dist/web/.next-embedded/server/chunks/2239.js +1 -0
  361. package/dist/web/.next-embedded/server/chunks/2250.js +1 -0
  362. package/dist/web/.next-embedded/server/chunks/2294.js +1 -0
  363. package/dist/web/.next-embedded/server/chunks/2300.js +1 -0
  364. package/dist/web/.next-embedded/server/chunks/235.js +1 -0
  365. package/dist/web/.next-embedded/server/chunks/240.js +2 -0
  366. package/dist/web/.next-embedded/server/chunks/2400.js +1 -0
  367. package/dist/web/.next-embedded/server/chunks/2438.js +2 -0
  368. package/dist/web/.next-embedded/server/chunks/2448.js +1 -0
  369. package/dist/web/.next-embedded/server/chunks/2502.js +1 -0
  370. package/dist/web/.next-embedded/server/chunks/2580.js +1 -0
  371. package/dist/web/.next-embedded/server/chunks/2587.js +1 -0
  372. package/dist/web/.next-embedded/server/chunks/2610.js +1 -0
  373. package/dist/web/.next-embedded/server/chunks/2670.js +1 -0
  374. package/dist/web/.next-embedded/server/chunks/2780.js +165 -0
  375. package/dist/web/.next-embedded/server/chunks/2792.js +1 -0
  376. package/dist/web/.next-embedded/server/chunks/2857.js +1 -0
  377. package/dist/web/.next-embedded/server/chunks/2884.js +1 -0
  378. package/dist/web/.next-embedded/server/chunks/2895.js +19 -0
  379. package/dist/web/.next-embedded/server/chunks/2961.js +1 -0
  380. package/dist/web/.next-embedded/server/chunks/3171.js +1 -0
  381. package/dist/web/.next-embedded/server/chunks/3222.js +2 -0
  382. package/dist/web/.next-embedded/server/chunks/3351.js +1 -0
  383. package/dist/web/.next-embedded/server/chunks/3381.js +1 -0
  384. package/dist/web/.next-embedded/server/chunks/3520.js +8 -0
  385. package/dist/web/.next-embedded/server/chunks/364.js +1 -0
  386. package/dist/web/.next-embedded/server/chunks/411.js +1 -0
  387. package/dist/web/.next-embedded/server/chunks/4119.js +1 -0
  388. package/dist/web/.next-embedded/server/chunks/4128.js +1 -0
  389. package/dist/web/.next-embedded/server/chunks/4191.js +1 -0
  390. package/dist/web/.next-embedded/server/chunks/4200.js +1 -0
  391. package/dist/web/.next-embedded/server/chunks/434.js +1 -0
  392. package/dist/web/.next-embedded/server/chunks/4368.js +1 -0
  393. package/dist/web/.next-embedded/server/chunks/4463.js +1 -0
  394. package/dist/web/.next-embedded/server/chunks/4467.js +1 -0
  395. package/dist/web/.next-embedded/server/chunks/4543.js +8 -0
  396. package/dist/web/.next-embedded/server/chunks/468.js +1 -0
  397. package/dist/web/.next-embedded/server/chunks/4741.js +1 -0
  398. package/dist/web/.next-embedded/server/chunks/4755.js +1 -0
  399. package/dist/web/.next-embedded/server/chunks/4758.js +21 -0
  400. package/dist/web/.next-embedded/server/chunks/4870.js +1 -0
  401. package/dist/web/.next-embedded/server/chunks/4877.js +1 -0
  402. package/dist/web/.next-embedded/server/chunks/4888.js +1 -0
  403. package/dist/web/.next-embedded/server/chunks/491.js +1 -0
  404. package/dist/web/.next-embedded/server/chunks/4911.js +1 -0
  405. package/dist/web/.next-embedded/server/chunks/5036.js +27 -0
  406. package/dist/web/.next-embedded/server/chunks/5052.js +134 -0
  407. package/dist/web/.next-embedded/server/chunks/5057.js +55 -0
  408. package/dist/web/.next-embedded/server/chunks/5126.js +8 -0
  409. package/dist/web/.next-embedded/server/chunks/5133.js +1 -0
  410. package/dist/web/.next-embedded/server/chunks/5173.js +1 -0
  411. package/dist/web/.next-embedded/server/chunks/5225.js +2 -0
  412. package/dist/web/.next-embedded/server/chunks/5277.js +324 -0
  413. package/dist/web/.next-embedded/server/chunks/5398.js +1 -0
  414. package/dist/web/.next-embedded/server/chunks/5568.js +1 -0
  415. package/dist/web/.next-embedded/server/chunks/5576.js +1 -0
  416. package/dist/web/.next-embedded/server/chunks/5634.js +19 -0
  417. package/dist/web/.next-embedded/server/chunks/5645.js +1 -0
  418. package/dist/web/.next-embedded/server/chunks/5684.js +5 -0
  419. package/dist/web/.next-embedded/server/chunks/5699.js +1 -0
  420. package/dist/web/.next-embedded/server/chunks/57.js +2 -0
  421. package/dist/web/.next-embedded/server/chunks/5734.js +1 -0
  422. package/dist/web/.next-embedded/server/chunks/5787.js +1 -0
  423. package/dist/web/.next-embedded/server/chunks/5796.js +1 -0
  424. package/dist/web/.next-embedded/server/chunks/5933.js +1 -0
  425. package/dist/web/.next-embedded/server/chunks/5945.js +1 -0
  426. package/dist/web/.next-embedded/server/chunks/5961.js +1 -0
  427. package/dist/web/.next-embedded/server/chunks/6445.js +55 -0
  428. package/dist/web/.next-embedded/server/chunks/6511.js +18 -0
  429. package/dist/web/.next-embedded/server/chunks/6518.js +1 -0
  430. package/dist/web/.next-embedded/server/chunks/6572.js +1 -0
  431. package/dist/web/.next-embedded/server/chunks/6672.js +2 -0
  432. package/dist/web/.next-embedded/server/chunks/6773.js +1 -0
  433. package/dist/web/.next-embedded/server/chunks/6821.js +1 -0
  434. package/dist/web/.next-embedded/server/chunks/6926.js +1 -0
  435. package/dist/web/.next-embedded/server/chunks/7090.js +25 -0
  436. package/dist/web/.next-embedded/server/chunks/7206.js +1 -0
  437. package/dist/web/.next-embedded/server/chunks/7269.js +1 -0
  438. package/dist/web/.next-embedded/server/chunks/7380.js +1 -0
  439. package/dist/web/.next-embedded/server/chunks/7395.js +1 -0
  440. package/dist/web/.next-embedded/server/chunks/7466.js +1 -0
  441. package/dist/web/.next-embedded/server/chunks/7571.js +1 -0
  442. package/dist/web/.next-embedded/server/chunks/769.js +1 -0
  443. package/dist/web/.next-embedded/server/chunks/784.js +1 -0
  444. package/dist/web/.next-embedded/server/chunks/7861.js +1 -0
  445. package/dist/web/.next-embedded/server/chunks/7944.js +1 -0
  446. package/dist/web/.next-embedded/server/chunks/8020.js +1 -0
  447. package/dist/web/.next-embedded/server/chunks/8061.js +2 -0
  448. package/dist/web/.next-embedded/server/chunks/822.js +1 -0
  449. package/dist/web/.next-embedded/server/chunks/8302.js +1 -0
  450. package/dist/web/.next-embedded/server/chunks/8336.js +1 -0
  451. package/dist/web/.next-embedded/server/chunks/8376.js +1 -0
  452. package/dist/web/.next-embedded/server/chunks/841.js +2 -0
  453. package/dist/web/.next-embedded/server/chunks/8430.js +1 -0
  454. package/dist/web/.next-embedded/server/chunks/8563.js +2 -0
  455. package/dist/web/.next-embedded/server/chunks/8576.js +193 -0
  456. package/dist/web/.next-embedded/server/chunks/8656.js +1 -0
  457. package/dist/web/.next-embedded/server/chunks/8726.js +1 -0
  458. package/dist/web/.next-embedded/server/chunks/8935.js +1 -0
  459. package/dist/web/.next-embedded/server/chunks/9260.js +1 -0
  460. package/dist/web/.next-embedded/server/chunks/9314.js +1 -0
  461. package/dist/web/.next-embedded/server/chunks/9332.js +1 -0
  462. package/dist/web/.next-embedded/server/chunks/9380.js +13 -0
  463. package/dist/web/.next-embedded/server/chunks/951.js +2 -0
  464. package/dist/web/.next-embedded/server/chunks/9537.js +1 -0
  465. package/dist/web/.next-embedded/server/chunks/9840.js +1 -0
  466. package/dist/web/.next-embedded/server/chunks/9913.js +1 -0
  467. package/dist/web/.next-embedded/server/functions-config-manifest.json +97 -0
  468. package/dist/web/.next-embedded/server/instrumentation.js +1 -0
  469. package/dist/web/.next-embedded/server/interception-route-rewrite-manifest.js +1 -0
  470. package/dist/web/.next-embedded/server/middleware-build-manifest.js +1 -0
  471. package/dist/web/.next-embedded/server/middleware-manifest.json +6 -0
  472. package/dist/web/.next-embedded/server/middleware-react-loadable-manifest.js +1 -0
  473. package/dist/web/.next-embedded/server/middleware.js +217 -0
  474. package/dist/web/.next-embedded/server/next-font-manifest.js +1 -0
  475. package/dist/web/.next-embedded/server/next-font-manifest.json +1 -0
  476. package/dist/web/.next-embedded/server/pages/404.html +1 -0
  477. package/dist/web/.next-embedded/server/pages/500.html +1 -0
  478. package/dist/web/.next-embedded/server/pages-manifest.json +4 -0
  479. package/dist/web/.next-embedded/server/prefetch-hints.json +44 -0
  480. package/dist/web/.next-embedded/server/server-reference-manifest.js +1 -0
  481. package/dist/web/.next-embedded/server/server-reference-manifest.json +1 -0
  482. package/dist/web/.next-embedded/server/webpack-runtime.js +1 -0
  483. package/dist/web/.next-embedded/static/DkxmcmiDAUutpm9e7G9xn/_buildManifest.js +1 -0
  484. package/dist/web/.next-embedded/static/DkxmcmiDAUutpm9e7G9xn/_ssgManifest.js +1 -0
  485. package/dist/web/.next-embedded/static/chunks/1000-501917027865ec48.js +52 -0
  486. package/dist/web/.next-embedded/static/chunks/1435-55acf1390b3a2da1.js +1 -0
  487. package/dist/web/.next-embedded/static/chunks/2349-3254a65053329135.js +1 -0
  488. package/dist/web/.next-embedded/static/chunks/2378-4ca744bf47c3dabb.js +1 -0
  489. package/dist/web/.next-embedded/static/chunks/2685-42c2a4f17fb6adb1.js +18 -0
  490. package/dist/web/.next-embedded/static/chunks/5633-9a07d4830813ece7.js +1 -0
  491. package/dist/web/.next-embedded/static/chunks/6365-04af34ae5b1497e3.js +1 -0
  492. package/dist/web/.next-embedded/static/chunks/6482-ecc9c62a178ba724.js +1 -0
  493. package/dist/web/.next-embedded/static/chunks/7413-3a721e7c495f89fb.js +55 -0
  494. package/dist/web/.next-embedded/static/chunks/9595-fea797909cd07d91.js +1 -0
  495. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/api-keys/page-5fe6d7717b0565f1.js +1 -0
  496. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/models/new/page-875800e6afa2dac3.js +1 -0
  497. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/models/page-7c39ee3c51034f12.js +1 -0
  498. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/runtimes/page-d51caeefc8b5ed98.js +1 -0
  499. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/settings/page-7f1874c14b33856a.js +1 -0
  500. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/shares/page-c194edfd7701dc77.js +1 -0
  501. package/dist/web/.next-embedded/static/chunks/app/(shell)/admin/users/page-463489ca2ebf664f.js +1 -0
  502. package/dist/web/.next-embedded/static/chunks/app/(shell)/agents/[id]/page-febe3b0582c996ae.js +1 -0
  503. package/dist/web/.next-embedded/static/chunks/app/(shell)/agents/new/page-a5ba72c5bc40b6e1.js +1 -0
  504. package/dist/web/.next-embedded/static/chunks/app/(shell)/agents/page-89d6af2961318db8.js +1 -0
  505. package/dist/web/.next-embedded/static/chunks/app/(shell)/connectors/new/page-b7ab59a7697ce004.js +1 -0
  506. package/dist/web/.next-embedded/static/chunks/app/(shell)/connectors/page-be6a19d14cc78f0f.js +1 -0
  507. package/dist/web/.next-embedded/static/chunks/app/(shell)/files/page-63febed6b4433238.js +1 -0
  508. package/dist/web/.next-embedded/static/chunks/app/(shell)/layout-4667e8f589776bbe.js +1 -0
  509. package/dist/web/.next-embedded/static/chunks/app/(shell)/page-2cd836e518729ee6.js +1 -0
  510. package/dist/web/.next-embedded/static/chunks/app/(shell)/projects/[id]/page-e6bc2217623b8939.js +1 -0
  511. package/dist/web/.next-embedded/static/chunks/app/(shell)/projects/page-3db56f853165c53c.js +1 -0
  512. package/dist/web/.next-embedded/static/chunks/app/(shell)/runs/page-fe28919e456c3966.js +1 -0
  513. package/dist/web/.next-embedded/static/chunks/app/(shell)/skills/[name]/page-69390975e9417783.js +1 -0
  514. package/dist/web/.next-embedded/static/chunks/app/(shell)/skills/page-1e756149864de860.js +1 -0
  515. package/dist/web/.next-embedded/static/chunks/app/(shell)/workspaces/page-47afb61daed3bbb2.js +1 -0
  516. package/dist/web/.next-embedded/static/chunks/app/_global-error/page-259206b8559c1c4b.js +1 -0
  517. package/dist/web/.next-embedded/static/chunks/app/_not-found/page-1e20f0faf42b5dab.js +1 -0
  518. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/evaluations/route-259206b8559c1c4b.js +1 -0
  519. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/feedback/route-259206b8559c1c4b.js +1 -0
  520. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/grants/route-259206b8559c1c4b.js +1 -0
  521. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/pointers/route-259206b8559c1c4b.js +1 -0
  522. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/policy/route-259206b8559c1c4b.js +1 -0
  523. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/promote/route-259206b8559c1c4b.js +1 -0
  524. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/resources/route-259206b8559c1c4b.js +1 -0
  525. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/rollback/route-259206b8559c1c4b.js +1 -0
  526. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/route-259206b8559c1c4b.js +1 -0
  527. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/runs/route-259206b8559c1c4b.js +1 -0
  528. package/dist/web/.next-embedded/static/chunks/app/api/agents/[id]/versions/route-259206b8559c1c4b.js +1 -0
  529. package/dist/web/.next-embedded/static/chunks/app/api/agents/route-259206b8559c1c4b.js +1 -0
  530. package/dist/web/.next-embedded/static/chunks/app/api/api-keys/[id]/route-259206b8559c1c4b.js +1 -0
  531. package/dist/web/.next-embedded/static/chunks/app/api/api-keys/route-259206b8559c1c4b.js +1 -0
  532. package/dist/web/.next-embedded/static/chunks/app/api/audit-events/route-259206b8559c1c4b.js +1 -0
  533. package/dist/web/.next-embedded/static/chunks/app/api/auth/callback/route-259206b8559c1c4b.js +1 -0
  534. package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-device/route-259206b8559c1c4b.js +1 -0
  535. package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-token/route-259206b8559c1c4b.js +1 -0
  536. package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-verify/route-259206b8559c1c4b.js +1 -0
  537. package/dist/web/.next-embedded/static/chunks/app/api/auth/cli-workspace/route-259206b8559c1c4b.js +1 -0
  538. package/dist/web/.next-embedded/static/chunks/app/api/auth/login/route-259206b8559c1c4b.js +1 -0
  539. package/dist/web/.next-embedded/static/chunks/app/api/auth/workspace/route-259206b8559c1c4b.js +1 -0
  540. package/dist/web/.next-embedded/static/chunks/app/api/connectors/[id]/route-259206b8559c1c4b.js +1 -0
  541. package/dist/web/.next-embedded/static/chunks/app/api/connectors/[id]/test-connection/route-259206b8559c1c4b.js +1 -0
  542. package/dist/web/.next-embedded/static/chunks/app/api/connectors/route-259206b8559c1c4b.js +1 -0
  543. package/dist/web/.next-embedded/static/chunks/app/api/engines/route-259206b8559c1c4b.js +1 -0
  544. package/dist/web/.next-embedded/static/chunks/app/api/files/[id]/route-259206b8559c1c4b.js +1 -0
  545. package/dist/web/.next-embedded/static/chunks/app/api/files/route-259206b8559c1c4b.js +1 -0
  546. package/dist/web/.next-embedded/static/chunks/app/api/invitations/[id]/accept/route-259206b8559c1c4b.js +1 -0
  547. package/dist/web/.next-embedded/static/chunks/app/api/invitations/[id]/resend/route-259206b8559c1c4b.js +1 -0
  548. package/dist/web/.next-embedded/static/chunks/app/api/invitations/[id]/route-259206b8559c1c4b.js +1 -0
  549. package/dist/web/.next-embedded/static/chunks/app/api/invitations/route-259206b8559c1c4b.js +1 -0
  550. package/dist/web/.next-embedded/static/chunks/app/api/me/route-259206b8559c1c4b.js +1 -0
  551. package/dist/web/.next-embedded/static/chunks/app/api/memberships/[id]/route-259206b8559c1c4b.js +1 -0
  552. package/dist/web/.next-embedded/static/chunks/app/api/memberships/route-259206b8559c1c4b.js +1 -0
  553. package/dist/web/.next-embedded/static/chunks/app/api/metrics/route-259206b8559c1c4b.js +1 -0
  554. package/dist/web/.next-embedded/static/chunks/app/api/model-connections/[id]/credential/route-259206b8559c1c4b.js +1 -0
  555. package/dist/web/.next-embedded/static/chunks/app/api/model-connections/[id]/route-259206b8559c1c4b.js +1 -0
  556. package/dist/web/.next-embedded/static/chunks/app/api/model-connections/[id]/test/route-259206b8559c1c4b.js +1 -0
  557. package/dist/web/.next-embedded/static/chunks/app/api/model-connections/route-259206b8559c1c4b.js +1 -0
  558. package/dist/web/.next-embedded/static/chunks/app/api/models/route-259206b8559c1c4b.js +1 -0
  559. package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/archive/route-259206b8559c1c4b.js +1 -0
  560. package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/restore/route-259206b8559c1c4b.js +1 -0
  561. package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/route-259206b8559c1c4b.js +1 -0
  562. package/dist/web/.next-embedded/static/chunks/app/api/projects/[id]/sessions/route-259206b8559c1c4b.js +1 -0
  563. package/dist/web/.next-embedded/static/chunks/app/api/projects/route-259206b8559c1c4b.js +1 -0
  564. package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/events/route-259206b8559c1c4b.js +1 -0
  565. package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/feedback/route-259206b8559c1c4b.js +1 -0
  566. package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/interrupt/route-259206b8559c1c4b.js +1 -0
  567. package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/revoke-tokens/route-259206b8559c1c4b.js +1 -0
  568. package/dist/web/.next-embedded/static/chunks/app/api/runs/[id]/route-259206b8559c1c4b.js +1 -0
  569. package/dist/web/.next-embedded/static/chunks/app/api/runs/route-259206b8559c1c4b.js +1 -0
  570. package/dist/web/.next-embedded/static/chunks/app/api/runtime-connections/route-259206b8559c1c4b.js +1 -0
  571. package/dist/web/.next-embedded/static/chunks/app/api/runtime-profiles/[id]/route-259206b8559c1c4b.js +1 -0
  572. package/dist/web/.next-embedded/static/chunks/app/api/runtime-profiles/route-259206b8559c1c4b.js +1 -0
  573. package/dist/web/.next-embedded/static/chunks/app/api/runtimes/[id]/route-259206b8559c1c4b.js +1 -0
  574. package/dist/web/.next-embedded/static/chunks/app/api/secrets/[id]/route-259206b8559c1c4b.js +1 -0
  575. package/dist/web/.next-embedded/static/chunks/app/api/secrets/route-259206b8559c1c4b.js +1 -0
  576. package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/route-259206b8559c1c4b.js +1 -0
  577. package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/state-blobs/route-259206b8559c1c4b.js +1 -0
  578. package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/state-entries/route-259206b8559c1c4b.js +1 -0
  579. package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/state-streams/route-259206b8559c1c4b.js +1 -0
  580. package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/subkeys/route-259206b8559c1c4b.js +1 -0
  581. package/dist/web/.next-embedded/static/chunks/app/api/sessions/[engineSessionId]/transcript/route-259206b8559c1c4b.js +1 -0
  582. package/dist/web/.next-embedded/static/chunks/app/api/sessions/route-259206b8559c1c4b.js +1 -0
  583. package/dist/web/.next-embedded/static/chunks/app/api/setup/route-259206b8559c1c4b.js +1 -0
  584. package/dist/web/.next-embedded/static/chunks/app/api/setup/runtime-detect/route-259206b8559c1c4b.js +1 -0
  585. package/dist/web/.next-embedded/static/chunks/app/api/shares/[id]/route-259206b8559c1c4b.js +1 -0
  586. package/dist/web/.next-embedded/static/chunks/app/api/shares/route-259206b8559c1c4b.js +1 -0
  587. package/dist/web/.next-embedded/static/chunks/app/api/sharing-policies/route-259206b8559c1c4b.js +1 -0
  588. package/dist/web/.next-embedded/static/chunks/app/api/skills/[name]/route-259206b8559c1c4b.js +1 -0
  589. package/dist/web/.next-embedded/static/chunks/app/api/skills/route-259206b8559c1c4b.js +1 -0
  590. package/dist/web/.next-embedded/static/chunks/app/api/tokens/route-259206b8559c1c4b.js +1 -0
  591. package/dist/web/.next-embedded/static/chunks/app/api/users/route-259206b8559c1c4b.js +1 -0
  592. package/dist/web/.next-embedded/static/chunks/app/api/workspaces/[id]/route-259206b8559c1c4b.js +1 -0
  593. package/dist/web/.next-embedded/static/chunks/app/api/workspaces/route-259206b8559c1c4b.js +1 -0
  594. package/dist/web/.next-embedded/static/chunks/app/layout-2f33ac5af1408328.js +1 -0
  595. package/dist/web/.next-embedded/static/chunks/app/p/[token]/layout-259206b8559c1c4b.js +1 -0
  596. package/dist/web/.next-embedded/static/chunks/app/p/[token]/messages/route-259206b8559c1c4b.js +1 -0
  597. package/dist/web/.next-embedded/static/chunks/app/p/[token]/page-6cd5f2bd228d80dc.js +1 -0
  598. package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/page-3bbe19f3f8fa0cd8.js +1 -0
  599. package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/sessions/route-259206b8559c1c4b.js +1 -0
  600. package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/try/layout-259206b8559c1c4b.js +1 -0
  601. package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/try/page-259206b8559c1c4b.js +1 -0
  602. package/dist/web/.next-embedded/static/chunks/app/p/s/[name]/widget.js/route-259206b8559c1c4b.js +1 -0
  603. package/dist/web/.next-embedded/static/chunks/app/setup/page-1ffa2012b2226832.js +1 -0
  604. package/dist/web/.next-embedded/static/chunks/app/signin/layout-259206b8559c1c4b.js +1 -0
  605. package/dist/web/.next-embedded/static/chunks/app/signin/page-259206b8559c1c4b.js +1 -0
  606. package/dist/web/.next-embedded/static/chunks/b7e071c5-1178abcc3dcc97b7.js +1 -0
  607. package/dist/web/.next-embedded/static/chunks/framework-bd8f371b90cbf524.js +1 -0
  608. package/dist/web/.next-embedded/static/chunks/main-5f1d9db627247614.js +5 -0
  609. package/dist/web/.next-embedded/static/chunks/main-app-736eb94d950bf794.js +1 -0
  610. package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/app-error-259206b8559c1c4b.js +1 -0
  611. package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/forbidden-259206b8559c1c4b.js +1 -0
  612. package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/global-error-bcd4657bc775688d.js +1 -0
  613. package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/not-found-259206b8559c1c4b.js +1 -0
  614. package/dist/web/.next-embedded/static/chunks/next/dist/client/components/builtin/unauthorized-259206b8559c1c4b.js +1 -0
  615. package/dist/web/.next-embedded/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  616. package/dist/web/.next-embedded/static/chunks/webpack-e654bfe3f030a510.js +1 -0
  617. package/dist/web/.next-embedded/static/css/85d72f669bcd1172.css +1 -0
  618. package/dist/web/next.config.mjs +1 -0
  619. package/package.json +51 -3
@@ -0,0 +1,3949 @@
1
+ {
2
+ "id": "d66ec11e-7f69-4bc2-b1cb-7b00f1b4567a",
3
+ "prevId": "6d12cb72-7ae5-4bef-9409-234d9ca23604",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.agent_files": {
8
+ "name": "agent_files",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "workspace_id": {
19
+ "name": "workspace_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "agent_id": {
25
+ "name": "agent_id",
26
+ "type": "uuid",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "file_id": {
31
+ "name": "file_id",
32
+ "type": "uuid",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "access": {
37
+ "name": "access",
38
+ "type": "text",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "created_at": {
43
+ "name": "created_at",
44
+ "type": "timestamp with time zone",
45
+ "primaryKey": false,
46
+ "notNull": true,
47
+ "default": "now()"
48
+ },
49
+ "updated_at": {
50
+ "name": "updated_at",
51
+ "type": "timestamp with time zone",
52
+ "primaryKey": false,
53
+ "notNull": true,
54
+ "default": "now()"
55
+ }
56
+ },
57
+ "indexes": {
58
+ "agent_files_file_idx": {
59
+ "name": "agent_files_file_idx",
60
+ "columns": [
61
+ {
62
+ "expression": "file_id",
63
+ "isExpression": false,
64
+ "asc": true,
65
+ "nulls": "last"
66
+ }
67
+ ],
68
+ "isUnique": false,
69
+ "concurrently": false,
70
+ "method": "btree",
71
+ "with": {}
72
+ }
73
+ },
74
+ "foreignKeys": {
75
+ "agent_files_workspace_id_workspaces_id_fk": {
76
+ "name": "agent_files_workspace_id_workspaces_id_fk",
77
+ "tableFrom": "agent_files",
78
+ "tableTo": "workspaces",
79
+ "columnsFrom": [
80
+ "workspace_id"
81
+ ],
82
+ "columnsTo": [
83
+ "id"
84
+ ],
85
+ "onDelete": "cascade",
86
+ "onUpdate": "no action"
87
+ },
88
+ "agent_files_agent_workspace_fk": {
89
+ "name": "agent_files_agent_workspace_fk",
90
+ "tableFrom": "agent_files",
91
+ "tableTo": "agents",
92
+ "columnsFrom": [
93
+ "agent_id",
94
+ "workspace_id"
95
+ ],
96
+ "columnsTo": [
97
+ "id",
98
+ "workspace_id"
99
+ ],
100
+ "onDelete": "cascade",
101
+ "onUpdate": "no action"
102
+ },
103
+ "agent_files_file_workspace_fk": {
104
+ "name": "agent_files_file_workspace_fk",
105
+ "tableFrom": "agent_files",
106
+ "tableTo": "files",
107
+ "columnsFrom": [
108
+ "file_id",
109
+ "workspace_id"
110
+ ],
111
+ "columnsTo": [
112
+ "id",
113
+ "workspace_id"
114
+ ],
115
+ "onDelete": "cascade",
116
+ "onUpdate": "no action"
117
+ }
118
+ },
119
+ "compositePrimaryKeys": {},
120
+ "uniqueConstraints": {
121
+ "agent_files_workspace_agent_file_key": {
122
+ "name": "agent_files_workspace_agent_file_key",
123
+ "nullsNotDistinct": false,
124
+ "columns": [
125
+ "workspace_id",
126
+ "agent_id",
127
+ "file_id"
128
+ ]
129
+ }
130
+ },
131
+ "policies": {},
132
+ "checkConstraints": {
133
+ "agent_files_access_valid": {
134
+ "name": "agent_files_access_valid",
135
+ "value": "\"agent_files\".\"access\" in ('read', 'read-write')"
136
+ }
137
+ },
138
+ "isRLSEnabled": false
139
+ },
140
+ "public.agent_mcp_servers": {
141
+ "name": "agent_mcp_servers",
142
+ "schema": "",
143
+ "columns": {
144
+ "id": {
145
+ "name": "id",
146
+ "type": "uuid",
147
+ "primaryKey": true,
148
+ "notNull": true,
149
+ "default": "gen_random_uuid()"
150
+ },
151
+ "workspace_id": {
152
+ "name": "workspace_id",
153
+ "type": "uuid",
154
+ "primaryKey": false,
155
+ "notNull": true
156
+ },
157
+ "agent_id": {
158
+ "name": "agent_id",
159
+ "type": "uuid",
160
+ "primaryKey": false,
161
+ "notNull": true
162
+ },
163
+ "mcp_server_id": {
164
+ "name": "mcp_server_id",
165
+ "type": "uuid",
166
+ "primaryKey": false,
167
+ "notNull": true
168
+ },
169
+ "created_at": {
170
+ "name": "created_at",
171
+ "type": "timestamp with time zone",
172
+ "primaryKey": false,
173
+ "notNull": true,
174
+ "default": "now()"
175
+ }
176
+ },
177
+ "indexes": {
178
+ "agent_mcp_servers_server_idx": {
179
+ "name": "agent_mcp_servers_server_idx",
180
+ "columns": [
181
+ {
182
+ "expression": "mcp_server_id",
183
+ "isExpression": false,
184
+ "asc": true,
185
+ "nulls": "last"
186
+ }
187
+ ],
188
+ "isUnique": false,
189
+ "concurrently": false,
190
+ "method": "btree",
191
+ "with": {}
192
+ }
193
+ },
194
+ "foreignKeys": {
195
+ "agent_mcp_servers_workspace_id_workspaces_id_fk": {
196
+ "name": "agent_mcp_servers_workspace_id_workspaces_id_fk",
197
+ "tableFrom": "agent_mcp_servers",
198
+ "tableTo": "workspaces",
199
+ "columnsFrom": [
200
+ "workspace_id"
201
+ ],
202
+ "columnsTo": [
203
+ "id"
204
+ ],
205
+ "onDelete": "cascade",
206
+ "onUpdate": "no action"
207
+ },
208
+ "agent_mcp_servers_agent_workspace_fk": {
209
+ "name": "agent_mcp_servers_agent_workspace_fk",
210
+ "tableFrom": "agent_mcp_servers",
211
+ "tableTo": "agents",
212
+ "columnsFrom": [
213
+ "agent_id",
214
+ "workspace_id"
215
+ ],
216
+ "columnsTo": [
217
+ "id",
218
+ "workspace_id"
219
+ ],
220
+ "onDelete": "cascade",
221
+ "onUpdate": "no action"
222
+ },
223
+ "agent_mcp_servers_server_workspace_fk": {
224
+ "name": "agent_mcp_servers_server_workspace_fk",
225
+ "tableFrom": "agent_mcp_servers",
226
+ "tableTo": "mcp_servers",
227
+ "columnsFrom": [
228
+ "mcp_server_id",
229
+ "workspace_id"
230
+ ],
231
+ "columnsTo": [
232
+ "id",
233
+ "workspace_id"
234
+ ],
235
+ "onDelete": "cascade",
236
+ "onUpdate": "no action"
237
+ }
238
+ },
239
+ "compositePrimaryKeys": {},
240
+ "uniqueConstraints": {
241
+ "agent_mcp_servers_workspace_agent_server_key": {
242
+ "name": "agent_mcp_servers_workspace_agent_server_key",
243
+ "nullsNotDistinct": false,
244
+ "columns": [
245
+ "workspace_id",
246
+ "agent_id",
247
+ "mcp_server_id"
248
+ ]
249
+ }
250
+ },
251
+ "policies": {},
252
+ "checkConstraints": {},
253
+ "isRLSEnabled": false
254
+ },
255
+ "public.agent_skills": {
256
+ "name": "agent_skills",
257
+ "schema": "",
258
+ "columns": {
259
+ "id": {
260
+ "name": "id",
261
+ "type": "uuid",
262
+ "primaryKey": true,
263
+ "notNull": true,
264
+ "default": "gen_random_uuid()"
265
+ },
266
+ "workspace_id": {
267
+ "name": "workspace_id",
268
+ "type": "uuid",
269
+ "primaryKey": false,
270
+ "notNull": true
271
+ },
272
+ "agent_id": {
273
+ "name": "agent_id",
274
+ "type": "uuid",
275
+ "primaryKey": false,
276
+ "notNull": true
277
+ },
278
+ "skill_id": {
279
+ "name": "skill_id",
280
+ "type": "uuid",
281
+ "primaryKey": false,
282
+ "notNull": true
283
+ },
284
+ "created_at": {
285
+ "name": "created_at",
286
+ "type": "timestamp with time zone",
287
+ "primaryKey": false,
288
+ "notNull": true,
289
+ "default": "now()"
290
+ }
291
+ },
292
+ "indexes": {
293
+ "agent_skills_skill_idx": {
294
+ "name": "agent_skills_skill_idx",
295
+ "columns": [
296
+ {
297
+ "expression": "skill_id",
298
+ "isExpression": false,
299
+ "asc": true,
300
+ "nulls": "last"
301
+ }
302
+ ],
303
+ "isUnique": false,
304
+ "concurrently": false,
305
+ "method": "btree",
306
+ "with": {}
307
+ }
308
+ },
309
+ "foreignKeys": {
310
+ "agent_skills_workspace_id_workspaces_id_fk": {
311
+ "name": "agent_skills_workspace_id_workspaces_id_fk",
312
+ "tableFrom": "agent_skills",
313
+ "tableTo": "workspaces",
314
+ "columnsFrom": [
315
+ "workspace_id"
316
+ ],
317
+ "columnsTo": [
318
+ "id"
319
+ ],
320
+ "onDelete": "cascade",
321
+ "onUpdate": "no action"
322
+ },
323
+ "agent_skills_agent_workspace_fk": {
324
+ "name": "agent_skills_agent_workspace_fk",
325
+ "tableFrom": "agent_skills",
326
+ "tableTo": "agents",
327
+ "columnsFrom": [
328
+ "agent_id",
329
+ "workspace_id"
330
+ ],
331
+ "columnsTo": [
332
+ "id",
333
+ "workspace_id"
334
+ ],
335
+ "onDelete": "cascade",
336
+ "onUpdate": "no action"
337
+ },
338
+ "agent_skills_skill_workspace_fk": {
339
+ "name": "agent_skills_skill_workspace_fk",
340
+ "tableFrom": "agent_skills",
341
+ "tableTo": "skills",
342
+ "columnsFrom": [
343
+ "skill_id",
344
+ "workspace_id"
345
+ ],
346
+ "columnsTo": [
347
+ "id",
348
+ "workspace_id"
349
+ ],
350
+ "onDelete": "cascade",
351
+ "onUpdate": "no action"
352
+ }
353
+ },
354
+ "compositePrimaryKeys": {},
355
+ "uniqueConstraints": {
356
+ "agent_skills_workspace_agent_skill_key": {
357
+ "name": "agent_skills_workspace_agent_skill_key",
358
+ "nullsNotDistinct": false,
359
+ "columns": [
360
+ "workspace_id",
361
+ "agent_id",
362
+ "skill_id"
363
+ ]
364
+ }
365
+ },
366
+ "policies": {},
367
+ "checkConstraints": {},
368
+ "isRLSEnabled": false
369
+ },
370
+ "public.agents": {
371
+ "name": "agents",
372
+ "schema": "",
373
+ "columns": {
374
+ "id": {
375
+ "name": "id",
376
+ "type": "uuid",
377
+ "primaryKey": true,
378
+ "notNull": true,
379
+ "default": "gen_random_uuid()"
380
+ },
381
+ "workspace_id": {
382
+ "name": "workspace_id",
383
+ "type": "uuid",
384
+ "primaryKey": false,
385
+ "notNull": true
386
+ },
387
+ "name": {
388
+ "name": "name",
389
+ "type": "text",
390
+ "primaryKey": false,
391
+ "notNull": true
392
+ },
393
+ "instructions": {
394
+ "name": "instructions",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true
398
+ },
399
+ "model_connection_id": {
400
+ "name": "model_connection_id",
401
+ "type": "uuid",
402
+ "primaryKey": false,
403
+ "notNull": false
404
+ },
405
+ "model": {
406
+ "name": "model",
407
+ "type": "text",
408
+ "primaryKey": false,
409
+ "notNull": false
410
+ },
411
+ "runtime_profile_id": {
412
+ "name": "runtime_profile_id",
413
+ "type": "uuid",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "permissions": {
418
+ "name": "permissions",
419
+ "type": "jsonb",
420
+ "primaryKey": false,
421
+ "notNull": true
422
+ },
423
+ "created_at": {
424
+ "name": "created_at",
425
+ "type": "timestamp with time zone",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "default": "now()"
429
+ },
430
+ "updated_at": {
431
+ "name": "updated_at",
432
+ "type": "timestamp with time zone",
433
+ "primaryKey": false,
434
+ "notNull": true,
435
+ "default": "now()"
436
+ }
437
+ },
438
+ "indexes": {
439
+ "agents_workspace_name_key": {
440
+ "name": "agents_workspace_name_key",
441
+ "columns": [
442
+ {
443
+ "expression": "workspace_id",
444
+ "isExpression": false,
445
+ "asc": true,
446
+ "nulls": "last"
447
+ },
448
+ {
449
+ "expression": "name",
450
+ "isExpression": false,
451
+ "asc": true,
452
+ "nulls": "last"
453
+ }
454
+ ],
455
+ "isUnique": true,
456
+ "concurrently": false,
457
+ "method": "btree",
458
+ "with": {}
459
+ },
460
+ "agents_model_connection_idx": {
461
+ "name": "agents_model_connection_idx",
462
+ "columns": [
463
+ {
464
+ "expression": "model_connection_id",
465
+ "isExpression": false,
466
+ "asc": true,
467
+ "nulls": "last"
468
+ }
469
+ ],
470
+ "isUnique": false,
471
+ "concurrently": false,
472
+ "method": "btree",
473
+ "with": {}
474
+ },
475
+ "agents_runtime_profile_idx": {
476
+ "name": "agents_runtime_profile_idx",
477
+ "columns": [
478
+ {
479
+ "expression": "runtime_profile_id",
480
+ "isExpression": false,
481
+ "asc": true,
482
+ "nulls": "last"
483
+ }
484
+ ],
485
+ "isUnique": false,
486
+ "concurrently": false,
487
+ "method": "btree",
488
+ "with": {}
489
+ }
490
+ },
491
+ "foreignKeys": {
492
+ "agents_workspace_id_workspaces_id_fk": {
493
+ "name": "agents_workspace_id_workspaces_id_fk",
494
+ "tableFrom": "agents",
495
+ "tableTo": "workspaces",
496
+ "columnsFrom": [
497
+ "workspace_id"
498
+ ],
499
+ "columnsTo": [
500
+ "id"
501
+ ],
502
+ "onDelete": "cascade",
503
+ "onUpdate": "no action"
504
+ },
505
+ "agents_model_connection_id_model_connections_id_fk": {
506
+ "name": "agents_model_connection_id_model_connections_id_fk",
507
+ "tableFrom": "agents",
508
+ "tableTo": "model_connections",
509
+ "columnsFrom": [
510
+ "model_connection_id"
511
+ ],
512
+ "columnsTo": [
513
+ "id"
514
+ ],
515
+ "onDelete": "set null",
516
+ "onUpdate": "no action"
517
+ },
518
+ "agents_runtime_profile_id_runtime_profiles_id_fk": {
519
+ "name": "agents_runtime_profile_id_runtime_profiles_id_fk",
520
+ "tableFrom": "agents",
521
+ "tableTo": "runtime_profiles",
522
+ "columnsFrom": [
523
+ "runtime_profile_id"
524
+ ],
525
+ "columnsTo": [
526
+ "id"
527
+ ],
528
+ "onDelete": "set null",
529
+ "onUpdate": "no action"
530
+ },
531
+ "agents_model_connection_workspace_fk": {
532
+ "name": "agents_model_connection_workspace_fk",
533
+ "tableFrom": "agents",
534
+ "tableTo": "model_connections",
535
+ "columnsFrom": [
536
+ "model_connection_id",
537
+ "workspace_id"
538
+ ],
539
+ "columnsTo": [
540
+ "id",
541
+ "workspace_id"
542
+ ],
543
+ "onDelete": "no action",
544
+ "onUpdate": "no action"
545
+ },
546
+ "agents_runtime_profile_workspace_fk": {
547
+ "name": "agents_runtime_profile_workspace_fk",
548
+ "tableFrom": "agents",
549
+ "tableTo": "runtime_profiles",
550
+ "columnsFrom": [
551
+ "runtime_profile_id",
552
+ "workspace_id"
553
+ ],
554
+ "columnsTo": [
555
+ "id",
556
+ "workspace_id"
557
+ ],
558
+ "onDelete": "no action",
559
+ "onUpdate": "no action"
560
+ }
561
+ },
562
+ "compositePrimaryKeys": {},
563
+ "uniqueConstraints": {
564
+ "agents_id_workspace_key": {
565
+ "name": "agents_id_workspace_key",
566
+ "nullsNotDistinct": false,
567
+ "columns": [
568
+ "id",
569
+ "workspace_id"
570
+ ]
571
+ }
572
+ },
573
+ "policies": {},
574
+ "checkConstraints": {
575
+ "agents_name_not_blank": {
576
+ "name": "agents_name_not_blank",
577
+ "value": "length(btrim(\"agents\".\"name\")) > 0"
578
+ }
579
+ },
580
+ "isRLSEnabled": false
581
+ },
582
+ "public.api_keys": {
583
+ "name": "api_keys",
584
+ "schema": "",
585
+ "columns": {
586
+ "id": {
587
+ "name": "id",
588
+ "type": "uuid",
589
+ "primaryKey": true,
590
+ "notNull": true,
591
+ "default": "gen_random_uuid()"
592
+ },
593
+ "workspace_id": {
594
+ "name": "workspace_id",
595
+ "type": "uuid",
596
+ "primaryKey": false,
597
+ "notNull": true
598
+ },
599
+ "name": {
600
+ "name": "name",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": true
604
+ },
605
+ "role": {
606
+ "name": "role",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true
610
+ },
611
+ "key_prefix": {
612
+ "name": "key_prefix",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": true
616
+ },
617
+ "key_hash": {
618
+ "name": "key_hash",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": true
622
+ },
623
+ "last_used_at": {
624
+ "name": "last_used_at",
625
+ "type": "timestamp with time zone",
626
+ "primaryKey": false,
627
+ "notNull": false
628
+ },
629
+ "expires_at": {
630
+ "name": "expires_at",
631
+ "type": "timestamp with time zone",
632
+ "primaryKey": false,
633
+ "notNull": false
634
+ },
635
+ "revoked_at": {
636
+ "name": "revoked_at",
637
+ "type": "timestamp with time zone",
638
+ "primaryKey": false,
639
+ "notNull": false
640
+ },
641
+ "created_at": {
642
+ "name": "created_at",
643
+ "type": "timestamp with time zone",
644
+ "primaryKey": false,
645
+ "notNull": true,
646
+ "default": "now()"
647
+ },
648
+ "updated_at": {
649
+ "name": "updated_at",
650
+ "type": "timestamp with time zone",
651
+ "primaryKey": false,
652
+ "notNull": true,
653
+ "default": "now()"
654
+ }
655
+ },
656
+ "indexes": {
657
+ "api_keys_workspace_name_key": {
658
+ "name": "api_keys_workspace_name_key",
659
+ "columns": [
660
+ {
661
+ "expression": "workspace_id",
662
+ "isExpression": false,
663
+ "asc": true,
664
+ "nulls": "last"
665
+ },
666
+ {
667
+ "expression": "name",
668
+ "isExpression": false,
669
+ "asc": true,
670
+ "nulls": "last"
671
+ }
672
+ ],
673
+ "isUnique": true,
674
+ "concurrently": false,
675
+ "method": "btree",
676
+ "with": {}
677
+ },
678
+ "api_keys_key_hash_key": {
679
+ "name": "api_keys_key_hash_key",
680
+ "columns": [
681
+ {
682
+ "expression": "key_hash",
683
+ "isExpression": false,
684
+ "asc": true,
685
+ "nulls": "last"
686
+ }
687
+ ],
688
+ "isUnique": true,
689
+ "concurrently": false,
690
+ "method": "btree",
691
+ "with": {}
692
+ },
693
+ "api_keys_workspace_revoked_idx": {
694
+ "name": "api_keys_workspace_revoked_idx",
695
+ "columns": [
696
+ {
697
+ "expression": "workspace_id",
698
+ "isExpression": false,
699
+ "asc": true,
700
+ "nulls": "last"
701
+ },
702
+ {
703
+ "expression": "revoked_at",
704
+ "isExpression": false,
705
+ "asc": true,
706
+ "nulls": "last"
707
+ }
708
+ ],
709
+ "isUnique": false,
710
+ "concurrently": false,
711
+ "method": "btree",
712
+ "with": {}
713
+ }
714
+ },
715
+ "foreignKeys": {
716
+ "api_keys_workspace_id_workspaces_id_fk": {
717
+ "name": "api_keys_workspace_id_workspaces_id_fk",
718
+ "tableFrom": "api_keys",
719
+ "tableTo": "workspaces",
720
+ "columnsFrom": [
721
+ "workspace_id"
722
+ ],
723
+ "columnsTo": [
724
+ "id"
725
+ ],
726
+ "onDelete": "cascade",
727
+ "onUpdate": "no action"
728
+ }
729
+ },
730
+ "compositePrimaryKeys": {},
731
+ "uniqueConstraints": {},
732
+ "policies": {},
733
+ "checkConstraints": {
734
+ "api_keys_role_valid": {
735
+ "name": "api_keys_role_valid",
736
+ "value": "\"api_keys\".\"role\" in ('owner', 'admin', 'builder', 'viewer')"
737
+ },
738
+ "api_keys_name_not_blank": {
739
+ "name": "api_keys_name_not_blank",
740
+ "value": "length(btrim(\"api_keys\".\"name\")) > 0"
741
+ },
742
+ "api_keys_key_prefix_not_blank": {
743
+ "name": "api_keys_key_prefix_not_blank",
744
+ "value": "length(btrim(\"api_keys\".\"key_prefix\")) > 0"
745
+ },
746
+ "api_keys_key_hash_not_blank": {
747
+ "name": "api_keys_key_hash_not_blank",
748
+ "value": "length(btrim(\"api_keys\".\"key_hash\")) > 0"
749
+ },
750
+ "api_keys_expires_after_created": {
751
+ "name": "api_keys_expires_after_created",
752
+ "value": "\"api_keys\".\"expires_at\" is null or \"api_keys\".\"expires_at\" > \"api_keys\".\"created_at\""
753
+ },
754
+ "api_keys_revoked_after_created": {
755
+ "name": "api_keys_revoked_after_created",
756
+ "value": "\"api_keys\".\"revoked_at\" is null or \"api_keys\".\"revoked_at\" >= \"api_keys\".\"created_at\""
757
+ }
758
+ },
759
+ "isRLSEnabled": false
760
+ },
761
+ "public.audit_events": {
762
+ "name": "audit_events",
763
+ "schema": "",
764
+ "columns": {
765
+ "id": {
766
+ "name": "id",
767
+ "type": "uuid",
768
+ "primaryKey": true,
769
+ "notNull": true,
770
+ "default": "gen_random_uuid()"
771
+ },
772
+ "workspace_id": {
773
+ "name": "workspace_id",
774
+ "type": "uuid",
775
+ "primaryKey": false,
776
+ "notNull": true
777
+ },
778
+ "actor_user_id": {
779
+ "name": "actor_user_id",
780
+ "type": "uuid",
781
+ "primaryKey": false,
782
+ "notNull": false
783
+ },
784
+ "actor_label": {
785
+ "name": "actor_label",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true
789
+ },
790
+ "action": {
791
+ "name": "action",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": true
795
+ },
796
+ "subject_id": {
797
+ "name": "subject_id",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": false
801
+ },
802
+ "subject_label": {
803
+ "name": "subject_label",
804
+ "type": "text",
805
+ "primaryKey": false,
806
+ "notNull": true
807
+ },
808
+ "created_at": {
809
+ "name": "created_at",
810
+ "type": "timestamp with time zone",
811
+ "primaryKey": false,
812
+ "notNull": true,
813
+ "default": "now()"
814
+ }
815
+ },
816
+ "indexes": {
817
+ "audit_events_workspace_created_idx": {
818
+ "name": "audit_events_workspace_created_idx",
819
+ "columns": [
820
+ {
821
+ "expression": "workspace_id",
822
+ "isExpression": false,
823
+ "asc": true,
824
+ "nulls": "last"
825
+ },
826
+ {
827
+ "expression": "created_at",
828
+ "isExpression": false,
829
+ "asc": true,
830
+ "nulls": "last"
831
+ }
832
+ ],
833
+ "isUnique": false,
834
+ "concurrently": false,
835
+ "method": "btree",
836
+ "with": {}
837
+ },
838
+ "audit_events_actor_idx": {
839
+ "name": "audit_events_actor_idx",
840
+ "columns": [
841
+ {
842
+ "expression": "actor_user_id",
843
+ "isExpression": false,
844
+ "asc": true,
845
+ "nulls": "last"
846
+ }
847
+ ],
848
+ "isUnique": false,
849
+ "concurrently": false,
850
+ "method": "btree",
851
+ "with": {}
852
+ }
853
+ },
854
+ "foreignKeys": {
855
+ "audit_events_workspace_id_workspaces_id_fk": {
856
+ "name": "audit_events_workspace_id_workspaces_id_fk",
857
+ "tableFrom": "audit_events",
858
+ "tableTo": "workspaces",
859
+ "columnsFrom": [
860
+ "workspace_id"
861
+ ],
862
+ "columnsTo": [
863
+ "id"
864
+ ],
865
+ "onDelete": "cascade",
866
+ "onUpdate": "no action"
867
+ },
868
+ "audit_events_actor_user_id_users_id_fk": {
869
+ "name": "audit_events_actor_user_id_users_id_fk",
870
+ "tableFrom": "audit_events",
871
+ "tableTo": "users",
872
+ "columnsFrom": [
873
+ "actor_user_id"
874
+ ],
875
+ "columnsTo": [
876
+ "id"
877
+ ],
878
+ "onDelete": "set null",
879
+ "onUpdate": "no action"
880
+ }
881
+ },
882
+ "compositePrimaryKeys": {},
883
+ "uniqueConstraints": {},
884
+ "policies": {},
885
+ "checkConstraints": {
886
+ "audit_events_action_valid": {
887
+ "name": "audit_events_action_valid",
888
+ "value": "\"audit_events\".\"action\" in ('user-created', 'user-deleted', 'agent-changed', 'provider-credential-changed', 'api-key-created', 'api-key-revoked', 'connector-changed', 'permission-changed', 'runtime-profile-changed', 'project-created', 'project-deleted', 'session-published', 'public-link-revoked', 'runnable-link-stopped', 'public-sharing-policy-changed')"
889
+ },
890
+ "audit_events_actor_label_not_blank": {
891
+ "name": "audit_events_actor_label_not_blank",
892
+ "value": "length(btrim(\"audit_events\".\"actor_label\")) > 0"
893
+ },
894
+ "audit_events_subject_label_not_blank": {
895
+ "name": "audit_events_subject_label_not_blank",
896
+ "value": "length(btrim(\"audit_events\".\"subject_label\")) > 0"
897
+ },
898
+ "audit_events_subject_id_shape": {
899
+ "name": "audit_events_subject_id_shape",
900
+ "value": "\"audit_events\".\"subject_id\" is null or \"audit_events\".\"subject_id\" ~ '^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'"
901
+ }
902
+ },
903
+ "isRLSEnabled": false
904
+ },
905
+ "public.files": {
906
+ "name": "files",
907
+ "schema": "",
908
+ "columns": {
909
+ "id": {
910
+ "name": "id",
911
+ "type": "uuid",
912
+ "primaryKey": true,
913
+ "notNull": true,
914
+ "default": "gen_random_uuid()"
915
+ },
916
+ "workspace_id": {
917
+ "name": "workspace_id",
918
+ "type": "uuid",
919
+ "primaryKey": false,
920
+ "notNull": true
921
+ },
922
+ "path": {
923
+ "name": "path",
924
+ "type": "text",
925
+ "primaryKey": false,
926
+ "notNull": true
927
+ },
928
+ "kind": {
929
+ "name": "kind",
930
+ "type": "text",
931
+ "primaryKey": false,
932
+ "notNull": true
933
+ },
934
+ "storage_key": {
935
+ "name": "storage_key",
936
+ "type": "text",
937
+ "primaryKey": false,
938
+ "notNull": false
939
+ },
940
+ "size_bytes": {
941
+ "name": "size_bytes",
942
+ "type": "bigint",
943
+ "primaryKey": false,
944
+ "notNull": true,
945
+ "default": 0
946
+ },
947
+ "content_type": {
948
+ "name": "content_type",
949
+ "type": "text",
950
+ "primaryKey": false,
951
+ "notNull": false
952
+ },
953
+ "created_at": {
954
+ "name": "created_at",
955
+ "type": "timestamp with time zone",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "default": "now()"
959
+ },
960
+ "updated_at": {
961
+ "name": "updated_at",
962
+ "type": "timestamp with time zone",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "default": "now()"
966
+ }
967
+ },
968
+ "indexes": {
969
+ "files_workspace_path_key": {
970
+ "name": "files_workspace_path_key",
971
+ "columns": [
972
+ {
973
+ "expression": "workspace_id",
974
+ "isExpression": false,
975
+ "asc": true,
976
+ "nulls": "last"
977
+ },
978
+ {
979
+ "expression": "path",
980
+ "isExpression": false,
981
+ "asc": true,
982
+ "nulls": "last"
983
+ }
984
+ ],
985
+ "isUnique": true,
986
+ "concurrently": false,
987
+ "method": "btree",
988
+ "with": {}
989
+ }
990
+ },
991
+ "foreignKeys": {
992
+ "files_workspace_id_workspaces_id_fk": {
993
+ "name": "files_workspace_id_workspaces_id_fk",
994
+ "tableFrom": "files",
995
+ "tableTo": "workspaces",
996
+ "columnsFrom": [
997
+ "workspace_id"
998
+ ],
999
+ "columnsTo": [
1000
+ "id"
1001
+ ],
1002
+ "onDelete": "cascade",
1003
+ "onUpdate": "no action"
1004
+ }
1005
+ },
1006
+ "compositePrimaryKeys": {},
1007
+ "uniqueConstraints": {
1008
+ "files_id_workspace_key": {
1009
+ "name": "files_id_workspace_key",
1010
+ "nullsNotDistinct": false,
1011
+ "columns": [
1012
+ "id",
1013
+ "workspace_id"
1014
+ ]
1015
+ }
1016
+ },
1017
+ "policies": {},
1018
+ "checkConstraints": {
1019
+ "files_kind_valid": {
1020
+ "name": "files_kind_valid",
1021
+ "value": "\"files\".\"kind\" in ('file', 'folder')"
1022
+ },
1023
+ "files_path_shape": {
1024
+ "name": "files_path_shape",
1025
+ "value": "\"files\".\"path\" ~ '^[^/[:cntrl:]]+(/[^/[:cntrl:]]+)*$'"
1026
+ },
1027
+ "files_path_no_dot_segments": {
1028
+ "name": "files_path_no_dot_segments",
1029
+ "value": "\"files\".\"path\" !~ '(^|/)[.][.]?(/|$)'"
1030
+ },
1031
+ "files_storage_key_iff_file": {
1032
+ "name": "files_storage_key_iff_file",
1033
+ "value": "(\"files\".\"kind\" = 'file') = (\"files\".\"storage_key\" is not null)"
1034
+ },
1035
+ "files_storage_key_not_blank": {
1036
+ "name": "files_storage_key_not_blank",
1037
+ "value": "\"files\".\"storage_key\" is null or length(btrim(\"files\".\"storage_key\")) > 0"
1038
+ },
1039
+ "files_size_non_negative": {
1040
+ "name": "files_size_non_negative",
1041
+ "value": "\"files\".\"size_bytes\" >= 0"
1042
+ },
1043
+ "files_folder_has_no_content": {
1044
+ "name": "files_folder_has_no_content",
1045
+ "value": "\"files\".\"kind\" <> 'folder' or (\"files\".\"size_bytes\" = 0 and \"files\".\"content_type\" is null)"
1046
+ }
1047
+ },
1048
+ "isRLSEnabled": false
1049
+ },
1050
+ "public.mcp_servers": {
1051
+ "name": "mcp_servers",
1052
+ "schema": "",
1053
+ "columns": {
1054
+ "id": {
1055
+ "name": "id",
1056
+ "type": "uuid",
1057
+ "primaryKey": true,
1058
+ "notNull": true,
1059
+ "default": "gen_random_uuid()"
1060
+ },
1061
+ "workspace_id": {
1062
+ "name": "workspace_id",
1063
+ "type": "uuid",
1064
+ "primaryKey": false,
1065
+ "notNull": true
1066
+ },
1067
+ "name": {
1068
+ "name": "name",
1069
+ "type": "text",
1070
+ "primaryKey": false,
1071
+ "notNull": true
1072
+ },
1073
+ "transport": {
1074
+ "name": "transport",
1075
+ "type": "text",
1076
+ "primaryKey": false,
1077
+ "notNull": true
1078
+ },
1079
+ "command": {
1080
+ "name": "command",
1081
+ "type": "text",
1082
+ "primaryKey": false,
1083
+ "notNull": false
1084
+ },
1085
+ "args": {
1086
+ "name": "args",
1087
+ "type": "jsonb",
1088
+ "primaryKey": false,
1089
+ "notNull": false
1090
+ },
1091
+ "url": {
1092
+ "name": "url",
1093
+ "type": "text",
1094
+ "primaryKey": false,
1095
+ "notNull": false
1096
+ },
1097
+ "auth_type": {
1098
+ "name": "auth_type",
1099
+ "type": "text",
1100
+ "primaryKey": false,
1101
+ "notNull": true,
1102
+ "default": "'none'"
1103
+ },
1104
+ "credential_secret_id": {
1105
+ "name": "credential_secret_id",
1106
+ "type": "uuid",
1107
+ "primaryKey": false,
1108
+ "notNull": false
1109
+ },
1110
+ "enabled": {
1111
+ "name": "enabled",
1112
+ "type": "boolean",
1113
+ "primaryKey": false,
1114
+ "notNull": true,
1115
+ "default": true
1116
+ },
1117
+ "created_at": {
1118
+ "name": "created_at",
1119
+ "type": "timestamp with time zone",
1120
+ "primaryKey": false,
1121
+ "notNull": true,
1122
+ "default": "now()"
1123
+ },
1124
+ "updated_at": {
1125
+ "name": "updated_at",
1126
+ "type": "timestamp with time zone",
1127
+ "primaryKey": false,
1128
+ "notNull": true,
1129
+ "default": "now()"
1130
+ }
1131
+ },
1132
+ "indexes": {
1133
+ "mcp_servers_workspace_name_key": {
1134
+ "name": "mcp_servers_workspace_name_key",
1135
+ "columns": [
1136
+ {
1137
+ "expression": "workspace_id",
1138
+ "isExpression": false,
1139
+ "asc": true,
1140
+ "nulls": "last"
1141
+ },
1142
+ {
1143
+ "expression": "name",
1144
+ "isExpression": false,
1145
+ "asc": true,
1146
+ "nulls": "last"
1147
+ }
1148
+ ],
1149
+ "isUnique": true,
1150
+ "concurrently": false,
1151
+ "method": "btree",
1152
+ "with": {}
1153
+ },
1154
+ "mcp_servers_credential_secret_idx": {
1155
+ "name": "mcp_servers_credential_secret_idx",
1156
+ "columns": [
1157
+ {
1158
+ "expression": "credential_secret_id",
1159
+ "isExpression": false,
1160
+ "asc": true,
1161
+ "nulls": "last"
1162
+ }
1163
+ ],
1164
+ "isUnique": false,
1165
+ "concurrently": false,
1166
+ "method": "btree",
1167
+ "with": {}
1168
+ }
1169
+ },
1170
+ "foreignKeys": {
1171
+ "mcp_servers_workspace_id_workspaces_id_fk": {
1172
+ "name": "mcp_servers_workspace_id_workspaces_id_fk",
1173
+ "tableFrom": "mcp_servers",
1174
+ "tableTo": "workspaces",
1175
+ "columnsFrom": [
1176
+ "workspace_id"
1177
+ ],
1178
+ "columnsTo": [
1179
+ "id"
1180
+ ],
1181
+ "onDelete": "cascade",
1182
+ "onUpdate": "no action"
1183
+ },
1184
+ "mcp_servers_credential_secret_workspace_fk": {
1185
+ "name": "mcp_servers_credential_secret_workspace_fk",
1186
+ "tableFrom": "mcp_servers",
1187
+ "tableTo": "secrets",
1188
+ "columnsFrom": [
1189
+ "credential_secret_id",
1190
+ "workspace_id"
1191
+ ],
1192
+ "columnsTo": [
1193
+ "id",
1194
+ "workspace_id"
1195
+ ],
1196
+ "onDelete": "restrict",
1197
+ "onUpdate": "no action"
1198
+ }
1199
+ },
1200
+ "compositePrimaryKeys": {},
1201
+ "uniqueConstraints": {
1202
+ "mcp_servers_id_workspace_key": {
1203
+ "name": "mcp_servers_id_workspace_key",
1204
+ "nullsNotDistinct": false,
1205
+ "columns": [
1206
+ "id",
1207
+ "workspace_id"
1208
+ ]
1209
+ }
1210
+ },
1211
+ "policies": {},
1212
+ "checkConstraints": {
1213
+ "mcp_servers_transport_valid": {
1214
+ "name": "mcp_servers_transport_valid",
1215
+ "value": "\"mcp_servers\".\"transport\" in ('stdio', 'http', 'sse')"
1216
+ },
1217
+ "mcp_servers_auth_type_valid": {
1218
+ "name": "mcp_servers_auth_type_valid",
1219
+ "value": "\"mcp_servers\".\"auth_type\" in ('none', 'api-key', 'bearer', 'oauth')"
1220
+ },
1221
+ "mcp_servers_stdio_has_command": {
1222
+ "name": "mcp_servers_stdio_has_command",
1223
+ "value": "(\"mcp_servers\".\"transport\" = 'stdio') = (\"mcp_servers\".\"command\" is not null)"
1224
+ },
1225
+ "mcp_servers_remote_has_url": {
1226
+ "name": "mcp_servers_remote_has_url",
1227
+ "value": "(\"mcp_servers\".\"transport\" in ('http', 'sse')) = (\"mcp_servers\".\"url\" is not null)"
1228
+ },
1229
+ "mcp_servers_args_are_stdio_only": {
1230
+ "name": "mcp_servers_args_are_stdio_only",
1231
+ "value": "\"mcp_servers\".\"args\" is null or \"mcp_servers\".\"transport\" = 'stdio'"
1232
+ },
1233
+ "mcp_servers_command_not_blank": {
1234
+ "name": "mcp_servers_command_not_blank",
1235
+ "value": "\"mcp_servers\".\"command\" is null or length(btrim(\"mcp_servers\".\"command\")) > 0"
1236
+ },
1237
+ "mcp_servers_url_shape": {
1238
+ "name": "mcp_servers_url_shape",
1239
+ "value": "\"mcp_servers\".\"url\" is null or \"mcp_servers\".\"url\" ~ '^https?://'"
1240
+ },
1241
+ "mcp_servers_credential_required": {
1242
+ "name": "mcp_servers_credential_required",
1243
+ "value": "(\"mcp_servers\".\"auth_type\" in ('api-key', 'bearer', 'oauth')) = (\"mcp_servers\".\"credential_secret_id\" is not null)"
1244
+ },
1245
+ "mcp_servers_name_not_blank": {
1246
+ "name": "mcp_servers_name_not_blank",
1247
+ "value": "length(btrim(\"mcp_servers\".\"name\")) > 0"
1248
+ }
1249
+ },
1250
+ "isRLSEnabled": false
1251
+ },
1252
+ "public.memberships": {
1253
+ "name": "memberships",
1254
+ "schema": "",
1255
+ "columns": {
1256
+ "id": {
1257
+ "name": "id",
1258
+ "type": "uuid",
1259
+ "primaryKey": true,
1260
+ "notNull": true,
1261
+ "default": "gen_random_uuid()"
1262
+ },
1263
+ "workspace_id": {
1264
+ "name": "workspace_id",
1265
+ "type": "uuid",
1266
+ "primaryKey": false,
1267
+ "notNull": true
1268
+ },
1269
+ "user_id": {
1270
+ "name": "user_id",
1271
+ "type": "uuid",
1272
+ "primaryKey": false,
1273
+ "notNull": true
1274
+ },
1275
+ "role": {
1276
+ "name": "role",
1277
+ "type": "text",
1278
+ "primaryKey": false,
1279
+ "notNull": true
1280
+ },
1281
+ "created_at": {
1282
+ "name": "created_at",
1283
+ "type": "timestamp with time zone",
1284
+ "primaryKey": false,
1285
+ "notNull": true,
1286
+ "default": "now()"
1287
+ },
1288
+ "updated_at": {
1289
+ "name": "updated_at",
1290
+ "type": "timestamp with time zone",
1291
+ "primaryKey": false,
1292
+ "notNull": true,
1293
+ "default": "now()"
1294
+ }
1295
+ },
1296
+ "indexes": {
1297
+ "memberships_user_idx": {
1298
+ "name": "memberships_user_idx",
1299
+ "columns": [
1300
+ {
1301
+ "expression": "user_id",
1302
+ "isExpression": false,
1303
+ "asc": true,
1304
+ "nulls": "last"
1305
+ }
1306
+ ],
1307
+ "isUnique": false,
1308
+ "concurrently": false,
1309
+ "method": "btree",
1310
+ "with": {}
1311
+ }
1312
+ },
1313
+ "foreignKeys": {
1314
+ "memberships_workspace_id_workspaces_id_fk": {
1315
+ "name": "memberships_workspace_id_workspaces_id_fk",
1316
+ "tableFrom": "memberships",
1317
+ "tableTo": "workspaces",
1318
+ "columnsFrom": [
1319
+ "workspace_id"
1320
+ ],
1321
+ "columnsTo": [
1322
+ "id"
1323
+ ],
1324
+ "onDelete": "cascade",
1325
+ "onUpdate": "no action"
1326
+ },
1327
+ "memberships_user_id_users_id_fk": {
1328
+ "name": "memberships_user_id_users_id_fk",
1329
+ "tableFrom": "memberships",
1330
+ "tableTo": "users",
1331
+ "columnsFrom": [
1332
+ "user_id"
1333
+ ],
1334
+ "columnsTo": [
1335
+ "id"
1336
+ ],
1337
+ "onDelete": "cascade",
1338
+ "onUpdate": "no action"
1339
+ }
1340
+ },
1341
+ "compositePrimaryKeys": {},
1342
+ "uniqueConstraints": {
1343
+ "memberships_workspace_user_key": {
1344
+ "name": "memberships_workspace_user_key",
1345
+ "nullsNotDistinct": false,
1346
+ "columns": [
1347
+ "workspace_id",
1348
+ "user_id"
1349
+ ]
1350
+ }
1351
+ },
1352
+ "policies": {},
1353
+ "checkConstraints": {
1354
+ "memberships_role_valid": {
1355
+ "name": "memberships_role_valid",
1356
+ "value": "\"memberships\".\"role\" in ('owner', 'admin', 'builder', 'viewer')"
1357
+ }
1358
+ },
1359
+ "isRLSEnabled": false
1360
+ },
1361
+ "public.model_connections": {
1362
+ "name": "model_connections",
1363
+ "schema": "",
1364
+ "columns": {
1365
+ "id": {
1366
+ "name": "id",
1367
+ "type": "uuid",
1368
+ "primaryKey": true,
1369
+ "notNull": true,
1370
+ "default": "gen_random_uuid()"
1371
+ },
1372
+ "workspace_id": {
1373
+ "name": "workspace_id",
1374
+ "type": "uuid",
1375
+ "primaryKey": false,
1376
+ "notNull": true
1377
+ },
1378
+ "name": {
1379
+ "name": "name",
1380
+ "type": "text",
1381
+ "primaryKey": false,
1382
+ "notNull": true
1383
+ },
1384
+ "provider": {
1385
+ "name": "provider",
1386
+ "type": "text",
1387
+ "primaryKey": false,
1388
+ "notNull": true
1389
+ },
1390
+ "config": {
1391
+ "name": "config",
1392
+ "type": "jsonb",
1393
+ "primaryKey": false,
1394
+ "notNull": true
1395
+ },
1396
+ "created_at": {
1397
+ "name": "created_at",
1398
+ "type": "timestamp with time zone",
1399
+ "primaryKey": false,
1400
+ "notNull": true,
1401
+ "default": "now()"
1402
+ },
1403
+ "updated_at": {
1404
+ "name": "updated_at",
1405
+ "type": "timestamp with time zone",
1406
+ "primaryKey": false,
1407
+ "notNull": true,
1408
+ "default": "now()"
1409
+ }
1410
+ },
1411
+ "indexes": {
1412
+ "model_connections_workspace_name_key": {
1413
+ "name": "model_connections_workspace_name_key",
1414
+ "columns": [
1415
+ {
1416
+ "expression": "workspace_id",
1417
+ "isExpression": false,
1418
+ "asc": true,
1419
+ "nulls": "last"
1420
+ },
1421
+ {
1422
+ "expression": "name",
1423
+ "isExpression": false,
1424
+ "asc": true,
1425
+ "nulls": "last"
1426
+ }
1427
+ ],
1428
+ "isUnique": true,
1429
+ "concurrently": false,
1430
+ "method": "btree",
1431
+ "with": {}
1432
+ }
1433
+ },
1434
+ "foreignKeys": {
1435
+ "model_connections_workspace_id_workspaces_id_fk": {
1436
+ "name": "model_connections_workspace_id_workspaces_id_fk",
1437
+ "tableFrom": "model_connections",
1438
+ "tableTo": "workspaces",
1439
+ "columnsFrom": [
1440
+ "workspace_id"
1441
+ ],
1442
+ "columnsTo": [
1443
+ "id"
1444
+ ],
1445
+ "onDelete": "cascade",
1446
+ "onUpdate": "no action"
1447
+ }
1448
+ },
1449
+ "compositePrimaryKeys": {},
1450
+ "uniqueConstraints": {
1451
+ "model_connections_id_workspace_key": {
1452
+ "name": "model_connections_id_workspace_key",
1453
+ "nullsNotDistinct": false,
1454
+ "columns": [
1455
+ "id",
1456
+ "workspace_id"
1457
+ ]
1458
+ }
1459
+ },
1460
+ "policies": {},
1461
+ "checkConstraints": {
1462
+ "model_connections_provider_valid": {
1463
+ "name": "model_connections_provider_valid",
1464
+ "value": "\"model_connections\".\"provider\" in ('anthropic', 'anthropic-compatible', 'openai', 'azure-openai', 'openai-compatible')"
1465
+ }
1466
+ },
1467
+ "isRLSEnabled": false
1468
+ },
1469
+ "public.project_files": {
1470
+ "name": "project_files",
1471
+ "schema": "",
1472
+ "columns": {
1473
+ "workspace_id": {
1474
+ "name": "workspace_id",
1475
+ "type": "uuid",
1476
+ "primaryKey": false,
1477
+ "notNull": true
1478
+ },
1479
+ "project_id": {
1480
+ "name": "project_id",
1481
+ "type": "uuid",
1482
+ "primaryKey": false,
1483
+ "notNull": true
1484
+ },
1485
+ "file_id": {
1486
+ "name": "file_id",
1487
+ "type": "uuid",
1488
+ "primaryKey": false,
1489
+ "notNull": true
1490
+ }
1491
+ },
1492
+ "indexes": {
1493
+ "project_files_workspace_idx": {
1494
+ "name": "project_files_workspace_idx",
1495
+ "columns": [
1496
+ {
1497
+ "expression": "workspace_id",
1498
+ "isExpression": false,
1499
+ "asc": true,
1500
+ "nulls": "last"
1501
+ }
1502
+ ],
1503
+ "isUnique": false,
1504
+ "concurrently": false,
1505
+ "method": "btree",
1506
+ "with": {}
1507
+ }
1508
+ },
1509
+ "foreignKeys": {
1510
+ "project_files_workspace_id_workspaces_id_fk": {
1511
+ "name": "project_files_workspace_id_workspaces_id_fk",
1512
+ "tableFrom": "project_files",
1513
+ "tableTo": "workspaces",
1514
+ "columnsFrom": [
1515
+ "workspace_id"
1516
+ ],
1517
+ "columnsTo": [
1518
+ "id"
1519
+ ],
1520
+ "onDelete": "cascade",
1521
+ "onUpdate": "no action"
1522
+ },
1523
+ "project_files_project_workspace_fk": {
1524
+ "name": "project_files_project_workspace_fk",
1525
+ "tableFrom": "project_files",
1526
+ "tableTo": "projects",
1527
+ "columnsFrom": [
1528
+ "project_id",
1529
+ "workspace_id"
1530
+ ],
1531
+ "columnsTo": [
1532
+ "id",
1533
+ "workspace_id"
1534
+ ],
1535
+ "onDelete": "cascade",
1536
+ "onUpdate": "no action"
1537
+ },
1538
+ "project_files_file_workspace_fk": {
1539
+ "name": "project_files_file_workspace_fk",
1540
+ "tableFrom": "project_files",
1541
+ "tableTo": "files",
1542
+ "columnsFrom": [
1543
+ "file_id",
1544
+ "workspace_id"
1545
+ ],
1546
+ "columnsTo": [
1547
+ "id",
1548
+ "workspace_id"
1549
+ ],
1550
+ "onDelete": "cascade",
1551
+ "onUpdate": "no action"
1552
+ }
1553
+ },
1554
+ "compositePrimaryKeys": {
1555
+ "project_files_project_id_file_id_pk": {
1556
+ "name": "project_files_project_id_file_id_pk",
1557
+ "columns": [
1558
+ "project_id",
1559
+ "file_id"
1560
+ ]
1561
+ }
1562
+ },
1563
+ "uniqueConstraints": {},
1564
+ "policies": {},
1565
+ "checkConstraints": {},
1566
+ "isRLSEnabled": false
1567
+ },
1568
+ "public.project_mcp_servers": {
1569
+ "name": "project_mcp_servers",
1570
+ "schema": "",
1571
+ "columns": {
1572
+ "workspace_id": {
1573
+ "name": "workspace_id",
1574
+ "type": "uuid",
1575
+ "primaryKey": false,
1576
+ "notNull": true
1577
+ },
1578
+ "project_id": {
1579
+ "name": "project_id",
1580
+ "type": "uuid",
1581
+ "primaryKey": false,
1582
+ "notNull": true
1583
+ },
1584
+ "mcp_server_id": {
1585
+ "name": "mcp_server_id",
1586
+ "type": "uuid",
1587
+ "primaryKey": false,
1588
+ "notNull": true
1589
+ }
1590
+ },
1591
+ "indexes": {
1592
+ "project_mcp_servers_workspace_idx": {
1593
+ "name": "project_mcp_servers_workspace_idx",
1594
+ "columns": [
1595
+ {
1596
+ "expression": "workspace_id",
1597
+ "isExpression": false,
1598
+ "asc": true,
1599
+ "nulls": "last"
1600
+ }
1601
+ ],
1602
+ "isUnique": false,
1603
+ "concurrently": false,
1604
+ "method": "btree",
1605
+ "with": {}
1606
+ }
1607
+ },
1608
+ "foreignKeys": {
1609
+ "project_mcp_servers_workspace_id_workspaces_id_fk": {
1610
+ "name": "project_mcp_servers_workspace_id_workspaces_id_fk",
1611
+ "tableFrom": "project_mcp_servers",
1612
+ "tableTo": "workspaces",
1613
+ "columnsFrom": [
1614
+ "workspace_id"
1615
+ ],
1616
+ "columnsTo": [
1617
+ "id"
1618
+ ],
1619
+ "onDelete": "cascade",
1620
+ "onUpdate": "no action"
1621
+ },
1622
+ "project_mcp_servers_project_workspace_fk": {
1623
+ "name": "project_mcp_servers_project_workspace_fk",
1624
+ "tableFrom": "project_mcp_servers",
1625
+ "tableTo": "projects",
1626
+ "columnsFrom": [
1627
+ "project_id",
1628
+ "workspace_id"
1629
+ ],
1630
+ "columnsTo": [
1631
+ "id",
1632
+ "workspace_id"
1633
+ ],
1634
+ "onDelete": "cascade",
1635
+ "onUpdate": "no action"
1636
+ },
1637
+ "project_mcp_servers_server_workspace_fk": {
1638
+ "name": "project_mcp_servers_server_workspace_fk",
1639
+ "tableFrom": "project_mcp_servers",
1640
+ "tableTo": "mcp_servers",
1641
+ "columnsFrom": [
1642
+ "mcp_server_id",
1643
+ "workspace_id"
1644
+ ],
1645
+ "columnsTo": [
1646
+ "id",
1647
+ "workspace_id"
1648
+ ],
1649
+ "onDelete": "cascade",
1650
+ "onUpdate": "no action"
1651
+ }
1652
+ },
1653
+ "compositePrimaryKeys": {
1654
+ "project_mcp_servers_project_id_mcp_server_id_pk": {
1655
+ "name": "project_mcp_servers_project_id_mcp_server_id_pk",
1656
+ "columns": [
1657
+ "project_id",
1658
+ "mcp_server_id"
1659
+ ]
1660
+ }
1661
+ },
1662
+ "uniqueConstraints": {},
1663
+ "policies": {},
1664
+ "checkConstraints": {},
1665
+ "isRLSEnabled": false
1666
+ },
1667
+ "public.projects": {
1668
+ "name": "projects",
1669
+ "schema": "",
1670
+ "columns": {
1671
+ "id": {
1672
+ "name": "id",
1673
+ "type": "uuid",
1674
+ "primaryKey": true,
1675
+ "notNull": true,
1676
+ "default": "gen_random_uuid()"
1677
+ },
1678
+ "workspace_id": {
1679
+ "name": "workspace_id",
1680
+ "type": "uuid",
1681
+ "primaryKey": false,
1682
+ "notNull": true
1683
+ },
1684
+ "name": {
1685
+ "name": "name",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": true
1689
+ },
1690
+ "instructions": {
1691
+ "name": "instructions",
1692
+ "type": "text",
1693
+ "primaryKey": false,
1694
+ "notNull": false
1695
+ },
1696
+ "default_agent_id": {
1697
+ "name": "default_agent_id",
1698
+ "type": "uuid",
1699
+ "primaryKey": false,
1700
+ "notNull": false
1701
+ },
1702
+ "visibility": {
1703
+ "name": "visibility",
1704
+ "type": "text",
1705
+ "primaryKey": false,
1706
+ "notNull": true,
1707
+ "default": "'private'"
1708
+ },
1709
+ "created_by": {
1710
+ "name": "created_by",
1711
+ "type": "uuid",
1712
+ "primaryKey": false,
1713
+ "notNull": true
1714
+ },
1715
+ "created_at": {
1716
+ "name": "created_at",
1717
+ "type": "timestamp with time zone",
1718
+ "primaryKey": false,
1719
+ "notNull": true,
1720
+ "default": "now()"
1721
+ },
1722
+ "updated_at": {
1723
+ "name": "updated_at",
1724
+ "type": "timestamp with time zone",
1725
+ "primaryKey": false,
1726
+ "notNull": true,
1727
+ "default": "now()"
1728
+ }
1729
+ },
1730
+ "indexes": {
1731
+ "projects_workspace_name_key": {
1732
+ "name": "projects_workspace_name_key",
1733
+ "columns": [
1734
+ {
1735
+ "expression": "workspace_id",
1736
+ "isExpression": false,
1737
+ "asc": true,
1738
+ "nulls": "last"
1739
+ },
1740
+ {
1741
+ "expression": "name",
1742
+ "isExpression": false,
1743
+ "asc": true,
1744
+ "nulls": "last"
1745
+ }
1746
+ ],
1747
+ "isUnique": true,
1748
+ "concurrently": false,
1749
+ "method": "btree",
1750
+ "with": {}
1751
+ },
1752
+ "projects_default_agent_idx": {
1753
+ "name": "projects_default_agent_idx",
1754
+ "columns": [
1755
+ {
1756
+ "expression": "default_agent_id",
1757
+ "isExpression": false,
1758
+ "asc": true,
1759
+ "nulls": "last"
1760
+ }
1761
+ ],
1762
+ "isUnique": false,
1763
+ "concurrently": false,
1764
+ "method": "btree",
1765
+ "with": {}
1766
+ }
1767
+ },
1768
+ "foreignKeys": {
1769
+ "projects_workspace_id_workspaces_id_fk": {
1770
+ "name": "projects_workspace_id_workspaces_id_fk",
1771
+ "tableFrom": "projects",
1772
+ "tableTo": "workspaces",
1773
+ "columnsFrom": [
1774
+ "workspace_id"
1775
+ ],
1776
+ "columnsTo": [
1777
+ "id"
1778
+ ],
1779
+ "onDelete": "cascade",
1780
+ "onUpdate": "no action"
1781
+ },
1782
+ "projects_created_by_users_id_fk": {
1783
+ "name": "projects_created_by_users_id_fk",
1784
+ "tableFrom": "projects",
1785
+ "tableTo": "users",
1786
+ "columnsFrom": [
1787
+ "created_by"
1788
+ ],
1789
+ "columnsTo": [
1790
+ "id"
1791
+ ],
1792
+ "onDelete": "restrict",
1793
+ "onUpdate": "no action"
1794
+ },
1795
+ "projects_default_agent_workspace_fk": {
1796
+ "name": "projects_default_agent_workspace_fk",
1797
+ "tableFrom": "projects",
1798
+ "tableTo": "agents",
1799
+ "columnsFrom": [
1800
+ "default_agent_id",
1801
+ "workspace_id"
1802
+ ],
1803
+ "columnsTo": [
1804
+ "id",
1805
+ "workspace_id"
1806
+ ],
1807
+ "onDelete": "set null",
1808
+ "onUpdate": "no action"
1809
+ }
1810
+ },
1811
+ "compositePrimaryKeys": {},
1812
+ "uniqueConstraints": {
1813
+ "projects_id_workspace_key": {
1814
+ "name": "projects_id_workspace_key",
1815
+ "nullsNotDistinct": false,
1816
+ "columns": [
1817
+ "id",
1818
+ "workspace_id"
1819
+ ]
1820
+ }
1821
+ },
1822
+ "policies": {},
1823
+ "checkConstraints": {
1824
+ "projects_visibility_valid": {
1825
+ "name": "projects_visibility_valid",
1826
+ "value": "\"projects\".\"visibility\" in ('private', 'workspace', 'public')"
1827
+ },
1828
+ "projects_name_not_blank": {
1829
+ "name": "projects_name_not_blank",
1830
+ "value": "length(btrim(\"projects\".\"name\")) > 0"
1831
+ }
1832
+ },
1833
+ "isRLSEnabled": false
1834
+ },
1835
+ "public.runs": {
1836
+ "name": "runs",
1837
+ "schema": "",
1838
+ "columns": {
1839
+ "id": {
1840
+ "name": "id",
1841
+ "type": "uuid",
1842
+ "primaryKey": true,
1843
+ "notNull": true,
1844
+ "default": "gen_random_uuid()"
1845
+ },
1846
+ "workspace_id": {
1847
+ "name": "workspace_id",
1848
+ "type": "uuid",
1849
+ "primaryKey": false,
1850
+ "notNull": true
1851
+ },
1852
+ "session_id": {
1853
+ "name": "session_id",
1854
+ "type": "uuid",
1855
+ "primaryKey": false,
1856
+ "notNull": true
1857
+ },
1858
+ "status": {
1859
+ "name": "status",
1860
+ "type": "text",
1861
+ "primaryKey": false,
1862
+ "notNull": true,
1863
+ "default": "'queued'"
1864
+ },
1865
+ "model": {
1866
+ "name": "model",
1867
+ "type": "text",
1868
+ "primaryKey": false,
1869
+ "notNull": false
1870
+ },
1871
+ "provider": {
1872
+ "name": "provider",
1873
+ "type": "text",
1874
+ "primaryKey": false,
1875
+ "notNull": false
1876
+ },
1877
+ "started_at": {
1878
+ "name": "started_at",
1879
+ "type": "timestamp with time zone",
1880
+ "primaryKey": false,
1881
+ "notNull": false
1882
+ },
1883
+ "ended_at": {
1884
+ "name": "ended_at",
1885
+ "type": "timestamp with time zone",
1886
+ "primaryKey": false,
1887
+ "notNull": false
1888
+ },
1889
+ "input_tokens": {
1890
+ "name": "input_tokens",
1891
+ "type": "integer",
1892
+ "primaryKey": false,
1893
+ "notNull": true,
1894
+ "default": 0
1895
+ },
1896
+ "output_tokens": {
1897
+ "name": "output_tokens",
1898
+ "type": "integer",
1899
+ "primaryKey": false,
1900
+ "notNull": true,
1901
+ "default": 0
1902
+ },
1903
+ "cost_usd": {
1904
+ "name": "cost_usd",
1905
+ "type": "numeric(14, 6)",
1906
+ "primaryKey": false,
1907
+ "notNull": true,
1908
+ "default": "'0'"
1909
+ },
1910
+ "tool_calls": {
1911
+ "name": "tool_calls",
1912
+ "type": "integer",
1913
+ "primaryKey": false,
1914
+ "notNull": true,
1915
+ "default": 0
1916
+ },
1917
+ "error": {
1918
+ "name": "error",
1919
+ "type": "text",
1920
+ "primaryKey": false,
1921
+ "notNull": false
1922
+ },
1923
+ "created_at": {
1924
+ "name": "created_at",
1925
+ "type": "timestamp with time zone",
1926
+ "primaryKey": false,
1927
+ "notNull": true,
1928
+ "default": "now()"
1929
+ },
1930
+ "updated_at": {
1931
+ "name": "updated_at",
1932
+ "type": "timestamp with time zone",
1933
+ "primaryKey": false,
1934
+ "notNull": true,
1935
+ "default": "now()"
1936
+ }
1937
+ },
1938
+ "indexes": {
1939
+ "runs_workspace_created_idx": {
1940
+ "name": "runs_workspace_created_idx",
1941
+ "columns": [
1942
+ {
1943
+ "expression": "workspace_id",
1944
+ "isExpression": false,
1945
+ "asc": true,
1946
+ "nulls": "last"
1947
+ },
1948
+ {
1949
+ "expression": "created_at",
1950
+ "isExpression": false,
1951
+ "asc": true,
1952
+ "nulls": "last"
1953
+ }
1954
+ ],
1955
+ "isUnique": false,
1956
+ "concurrently": false,
1957
+ "method": "btree",
1958
+ "with": {}
1959
+ },
1960
+ "runs_session_created_idx": {
1961
+ "name": "runs_session_created_idx",
1962
+ "columns": [
1963
+ {
1964
+ "expression": "session_id",
1965
+ "isExpression": false,
1966
+ "asc": true,
1967
+ "nulls": "last"
1968
+ },
1969
+ {
1970
+ "expression": "created_at",
1971
+ "isExpression": false,
1972
+ "asc": true,
1973
+ "nulls": "last"
1974
+ }
1975
+ ],
1976
+ "isUnique": false,
1977
+ "concurrently": false,
1978
+ "method": "btree",
1979
+ "with": {}
1980
+ },
1981
+ "runs_id_workspace_unique": {
1982
+ "name": "runs_id_workspace_unique",
1983
+ "columns": [
1984
+ {
1985
+ "expression": "id",
1986
+ "isExpression": false,
1987
+ "asc": true,
1988
+ "nulls": "last"
1989
+ },
1990
+ {
1991
+ "expression": "workspace_id",
1992
+ "isExpression": false,
1993
+ "asc": true,
1994
+ "nulls": "last"
1995
+ }
1996
+ ],
1997
+ "isUnique": true,
1998
+ "concurrently": false,
1999
+ "method": "btree",
2000
+ "with": {}
2001
+ }
2002
+ },
2003
+ "foreignKeys": {
2004
+ "runs_workspace_id_workspaces_id_fk": {
2005
+ "name": "runs_workspace_id_workspaces_id_fk",
2006
+ "tableFrom": "runs",
2007
+ "tableTo": "workspaces",
2008
+ "columnsFrom": [
2009
+ "workspace_id"
2010
+ ],
2011
+ "columnsTo": [
2012
+ "id"
2013
+ ],
2014
+ "onDelete": "cascade",
2015
+ "onUpdate": "no action"
2016
+ },
2017
+ "runs_session_workspace_fk": {
2018
+ "name": "runs_session_workspace_fk",
2019
+ "tableFrom": "runs",
2020
+ "tableTo": "sessions",
2021
+ "columnsFrom": [
2022
+ "session_id",
2023
+ "workspace_id"
2024
+ ],
2025
+ "columnsTo": [
2026
+ "id",
2027
+ "workspace_id"
2028
+ ],
2029
+ "onDelete": "cascade",
2030
+ "onUpdate": "no action"
2031
+ }
2032
+ },
2033
+ "compositePrimaryKeys": {},
2034
+ "uniqueConstraints": {},
2035
+ "policies": {},
2036
+ "checkConstraints": {
2037
+ "runs_status_valid": {
2038
+ "name": "runs_status_valid",
2039
+ "value": "\"runs\".\"status\" in ('queued', 'running', 'completed', 'failed', 'cancelled')"
2040
+ },
2041
+ "runs_provider_valid": {
2042
+ "name": "runs_provider_valid",
2043
+ "value": "\"runs\".\"provider\" in ('anthropic', 'anthropic-compatible', 'openai', 'azure-openai', 'openai-compatible')"
2044
+ },
2045
+ "runs_ended_at_iff_terminal": {
2046
+ "name": "runs_ended_at_iff_terminal",
2047
+ "value": "(\"runs\".\"status\" in ('completed', 'failed', 'cancelled')) = (\"runs\".\"ended_at\" is not null)"
2048
+ },
2049
+ "runs_ended_after_started": {
2050
+ "name": "runs_ended_after_started",
2051
+ "value": "\"runs\".\"ended_at\" is null or \"runs\".\"started_at\" is null or \"runs\".\"ended_at\" >= \"runs\".\"started_at\""
2052
+ },
2053
+ "runs_counters_non_negative": {
2054
+ "name": "runs_counters_non_negative",
2055
+ "value": "\"runs\".\"input_tokens\" >= 0 and \"runs\".\"output_tokens\" >= 0 and \"runs\".\"tool_calls\" >= 0 and \"runs\".\"cost_usd\" >= 0"
2056
+ }
2057
+ },
2058
+ "isRLSEnabled": false
2059
+ },
2060
+ "public.run_events": {
2061
+ "name": "run_events",
2062
+ "schema": "",
2063
+ "columns": {
2064
+ "run_id": {
2065
+ "name": "run_id",
2066
+ "type": "uuid",
2067
+ "primaryKey": false,
2068
+ "notNull": true
2069
+ },
2070
+ "workspace_id": {
2071
+ "name": "workspace_id",
2072
+ "type": "uuid",
2073
+ "primaryKey": false,
2074
+ "notNull": true
2075
+ },
2076
+ "sequence": {
2077
+ "name": "sequence",
2078
+ "type": "bigint",
2079
+ "primaryKey": false,
2080
+ "notNull": true
2081
+ },
2082
+ "type": {
2083
+ "name": "type",
2084
+ "type": "text",
2085
+ "primaryKey": false,
2086
+ "notNull": true
2087
+ },
2088
+ "data": {
2089
+ "name": "data",
2090
+ "type": "jsonb",
2091
+ "primaryKey": false,
2092
+ "notNull": true
2093
+ },
2094
+ "created_at": {
2095
+ "name": "created_at",
2096
+ "type": "timestamp with time zone",
2097
+ "primaryKey": false,
2098
+ "notNull": true,
2099
+ "default": "now()"
2100
+ }
2101
+ },
2102
+ "indexes": {
2103
+ "run_events_workspace_sequence_idx": {
2104
+ "name": "run_events_workspace_sequence_idx",
2105
+ "columns": [
2106
+ {
2107
+ "expression": "workspace_id",
2108
+ "isExpression": false,
2109
+ "asc": true,
2110
+ "nulls": "last"
2111
+ },
2112
+ {
2113
+ "expression": "run_id",
2114
+ "isExpression": false,
2115
+ "asc": true,
2116
+ "nulls": "last"
2117
+ },
2118
+ {
2119
+ "expression": "sequence",
2120
+ "isExpression": false,
2121
+ "asc": true,
2122
+ "nulls": "last"
2123
+ }
2124
+ ],
2125
+ "isUnique": false,
2126
+ "concurrently": false,
2127
+ "method": "btree",
2128
+ "with": {}
2129
+ },
2130
+ "run_events_run_sequence_idx": {
2131
+ "name": "run_events_run_sequence_idx",
2132
+ "columns": [
2133
+ {
2134
+ "expression": "run_id",
2135
+ "isExpression": false,
2136
+ "asc": true,
2137
+ "nulls": "last"
2138
+ },
2139
+ {
2140
+ "expression": "sequence",
2141
+ "isExpression": false,
2142
+ "asc": true,
2143
+ "nulls": "last"
2144
+ }
2145
+ ],
2146
+ "isUnique": false,
2147
+ "concurrently": false,
2148
+ "method": "btree",
2149
+ "with": {}
2150
+ }
2151
+ },
2152
+ "foreignKeys": {
2153
+ "run_events_workspace_id_workspaces_id_fk": {
2154
+ "name": "run_events_workspace_id_workspaces_id_fk",
2155
+ "tableFrom": "run_events",
2156
+ "tableTo": "workspaces",
2157
+ "columnsFrom": [
2158
+ "workspace_id"
2159
+ ],
2160
+ "columnsTo": [
2161
+ "id"
2162
+ ],
2163
+ "onDelete": "cascade",
2164
+ "onUpdate": "no action"
2165
+ },
2166
+ "run_events_run_workspace_fk": {
2167
+ "name": "run_events_run_workspace_fk",
2168
+ "tableFrom": "run_events",
2169
+ "tableTo": "runs",
2170
+ "columnsFrom": [
2171
+ "run_id",
2172
+ "workspace_id"
2173
+ ],
2174
+ "columnsTo": [
2175
+ "id",
2176
+ "workspace_id"
2177
+ ],
2178
+ "onDelete": "cascade",
2179
+ "onUpdate": "no action"
2180
+ }
2181
+ },
2182
+ "compositePrimaryKeys": {
2183
+ "run_events_pkey": {
2184
+ "name": "run_events_pkey",
2185
+ "columns": [
2186
+ "run_id",
2187
+ "sequence"
2188
+ ]
2189
+ }
2190
+ },
2191
+ "uniqueConstraints": {},
2192
+ "policies": {},
2193
+ "checkConstraints": {},
2194
+ "isRLSEnabled": false
2195
+ },
2196
+ "public.run_tokens": {
2197
+ "name": "run_tokens",
2198
+ "schema": "",
2199
+ "columns": {
2200
+ "id": {
2201
+ "name": "id",
2202
+ "type": "uuid",
2203
+ "primaryKey": true,
2204
+ "notNull": true,
2205
+ "default": "gen_random_uuid()"
2206
+ },
2207
+ "run_id": {
2208
+ "name": "run_id",
2209
+ "type": "uuid",
2210
+ "primaryKey": false,
2211
+ "notNull": true
2212
+ },
2213
+ "workspace_id": {
2214
+ "name": "workspace_id",
2215
+ "type": "uuid",
2216
+ "primaryKey": false,
2217
+ "notNull": true
2218
+ },
2219
+ "token_hash": {
2220
+ "name": "token_hash",
2221
+ "type": "text",
2222
+ "primaryKey": false,
2223
+ "notNull": true
2224
+ },
2225
+ "expires_at": {
2226
+ "name": "expires_at",
2227
+ "type": "timestamp with time zone",
2228
+ "primaryKey": false,
2229
+ "notNull": true
2230
+ },
2231
+ "revoked_at": {
2232
+ "name": "revoked_at",
2233
+ "type": "timestamp with time zone",
2234
+ "primaryKey": false,
2235
+ "notNull": false
2236
+ },
2237
+ "created_at": {
2238
+ "name": "created_at",
2239
+ "type": "timestamp with time zone",
2240
+ "primaryKey": false,
2241
+ "notNull": true,
2242
+ "default": "now()"
2243
+ }
2244
+ },
2245
+ "indexes": {
2246
+ "run_tokens_hash_key": {
2247
+ "name": "run_tokens_hash_key",
2248
+ "columns": [
2249
+ {
2250
+ "expression": "token_hash",
2251
+ "isExpression": false,
2252
+ "asc": true,
2253
+ "nulls": "last"
2254
+ }
2255
+ ],
2256
+ "isUnique": true,
2257
+ "concurrently": false,
2258
+ "method": "btree",
2259
+ "with": {}
2260
+ },
2261
+ "run_tokens_workspace_run_idx": {
2262
+ "name": "run_tokens_workspace_run_idx",
2263
+ "columns": [
2264
+ {
2265
+ "expression": "workspace_id",
2266
+ "isExpression": false,
2267
+ "asc": true,
2268
+ "nulls": "last"
2269
+ },
2270
+ {
2271
+ "expression": "run_id",
2272
+ "isExpression": false,
2273
+ "asc": true,
2274
+ "nulls": "last"
2275
+ }
2276
+ ],
2277
+ "isUnique": false,
2278
+ "concurrently": false,
2279
+ "method": "btree",
2280
+ "with": {}
2281
+ },
2282
+ "run_tokens_active_idx": {
2283
+ "name": "run_tokens_active_idx",
2284
+ "columns": [
2285
+ {
2286
+ "expression": "workspace_id",
2287
+ "isExpression": false,
2288
+ "asc": true,
2289
+ "nulls": "last"
2290
+ },
2291
+ {
2292
+ "expression": "run_id",
2293
+ "isExpression": false,
2294
+ "asc": true,
2295
+ "nulls": "last"
2296
+ },
2297
+ {
2298
+ "expression": "revoked_at",
2299
+ "isExpression": false,
2300
+ "asc": true,
2301
+ "nulls": "last"
2302
+ },
2303
+ {
2304
+ "expression": "expires_at",
2305
+ "isExpression": false,
2306
+ "asc": true,
2307
+ "nulls": "last"
2308
+ }
2309
+ ],
2310
+ "isUnique": false,
2311
+ "concurrently": false,
2312
+ "method": "btree",
2313
+ "with": {}
2314
+ }
2315
+ },
2316
+ "foreignKeys": {
2317
+ "run_tokens_workspace_id_workspaces_id_fk": {
2318
+ "name": "run_tokens_workspace_id_workspaces_id_fk",
2319
+ "tableFrom": "run_tokens",
2320
+ "tableTo": "workspaces",
2321
+ "columnsFrom": [
2322
+ "workspace_id"
2323
+ ],
2324
+ "columnsTo": [
2325
+ "id"
2326
+ ],
2327
+ "onDelete": "cascade",
2328
+ "onUpdate": "no action"
2329
+ },
2330
+ "run_tokens_run_workspace_fk": {
2331
+ "name": "run_tokens_run_workspace_fk",
2332
+ "tableFrom": "run_tokens",
2333
+ "tableTo": "runs",
2334
+ "columnsFrom": [
2335
+ "run_id",
2336
+ "workspace_id"
2337
+ ],
2338
+ "columnsTo": [
2339
+ "id",
2340
+ "workspace_id"
2341
+ ],
2342
+ "onDelete": "cascade",
2343
+ "onUpdate": "no action"
2344
+ }
2345
+ },
2346
+ "compositePrimaryKeys": {},
2347
+ "uniqueConstraints": {},
2348
+ "policies": {},
2349
+ "checkConstraints": {
2350
+ "run_tokens_expiry_after_created": {
2351
+ "name": "run_tokens_expiry_after_created",
2352
+ "value": "\"run_tokens\".\"expires_at\" > \"run_tokens\".\"created_at\""
2353
+ },
2354
+ "run_tokens_revoked_after_created": {
2355
+ "name": "run_tokens_revoked_after_created",
2356
+ "value": "\"run_tokens\".\"revoked_at\" is null or \"run_tokens\".\"revoked_at\" >= \"run_tokens\".\"created_at\""
2357
+ }
2358
+ },
2359
+ "isRLSEnabled": false
2360
+ },
2361
+ "public.runtime_profiles": {
2362
+ "name": "runtime_profiles",
2363
+ "schema": "",
2364
+ "columns": {
2365
+ "id": {
2366
+ "name": "id",
2367
+ "type": "uuid",
2368
+ "primaryKey": true,
2369
+ "notNull": true,
2370
+ "default": "gen_random_uuid()"
2371
+ },
2372
+ "workspace_id": {
2373
+ "name": "workspace_id",
2374
+ "type": "uuid",
2375
+ "primaryKey": false,
2376
+ "notNull": true
2377
+ },
2378
+ "name": {
2379
+ "name": "name",
2380
+ "type": "text",
2381
+ "primaryKey": false,
2382
+ "notNull": true
2383
+ },
2384
+ "driver": {
2385
+ "name": "driver",
2386
+ "type": "text",
2387
+ "primaryKey": false,
2388
+ "notNull": true
2389
+ },
2390
+ "runtime_connection_id": {
2391
+ "name": "runtime_connection_id",
2392
+ "type": "uuid",
2393
+ "primaryKey": false,
2394
+ "notNull": false
2395
+ },
2396
+ "cpu": {
2397
+ "name": "cpu",
2398
+ "type": "integer",
2399
+ "primaryKey": false,
2400
+ "notNull": false
2401
+ },
2402
+ "memory_mb": {
2403
+ "name": "memory_mb",
2404
+ "type": "integer",
2405
+ "primaryKey": false,
2406
+ "notNull": false
2407
+ },
2408
+ "disk_mb": {
2409
+ "name": "disk_mb",
2410
+ "type": "integer",
2411
+ "primaryKey": false,
2412
+ "notNull": false
2413
+ },
2414
+ "network_policy": {
2415
+ "name": "network_policy",
2416
+ "type": "text",
2417
+ "primaryKey": false,
2418
+ "notNull": true
2419
+ },
2420
+ "allowed_domains": {
2421
+ "name": "allowed_domains",
2422
+ "type": "jsonb",
2423
+ "primaryKey": false,
2424
+ "notNull": false
2425
+ },
2426
+ "filesystem": {
2427
+ "name": "filesystem",
2428
+ "type": "text",
2429
+ "primaryKey": false,
2430
+ "notNull": true
2431
+ },
2432
+ "persist_paths": {
2433
+ "name": "persist_paths",
2434
+ "type": "jsonb",
2435
+ "primaryKey": false,
2436
+ "notNull": false
2437
+ },
2438
+ "timeout_seconds": {
2439
+ "name": "timeout_seconds",
2440
+ "type": "integer",
2441
+ "primaryKey": false,
2442
+ "notNull": false
2443
+ },
2444
+ "idle_timeout_seconds": {
2445
+ "name": "idle_timeout_seconds",
2446
+ "type": "integer",
2447
+ "primaryKey": false,
2448
+ "notNull": false
2449
+ },
2450
+ "driver_config": {
2451
+ "name": "driver_config",
2452
+ "type": "jsonb",
2453
+ "primaryKey": false,
2454
+ "notNull": false
2455
+ },
2456
+ "created_at": {
2457
+ "name": "created_at",
2458
+ "type": "timestamp with time zone",
2459
+ "primaryKey": false,
2460
+ "notNull": true,
2461
+ "default": "now()"
2462
+ },
2463
+ "updated_at": {
2464
+ "name": "updated_at",
2465
+ "type": "timestamp with time zone",
2466
+ "primaryKey": false,
2467
+ "notNull": true,
2468
+ "default": "now()"
2469
+ }
2470
+ },
2471
+ "indexes": {
2472
+ "runtime_profiles_workspace_name_key": {
2473
+ "name": "runtime_profiles_workspace_name_key",
2474
+ "columns": [
2475
+ {
2476
+ "expression": "workspace_id",
2477
+ "isExpression": false,
2478
+ "asc": true,
2479
+ "nulls": "last"
2480
+ },
2481
+ {
2482
+ "expression": "name",
2483
+ "isExpression": false,
2484
+ "asc": true,
2485
+ "nulls": "last"
2486
+ }
2487
+ ],
2488
+ "isUnique": true,
2489
+ "concurrently": false,
2490
+ "method": "btree",
2491
+ "with": {}
2492
+ },
2493
+ "runtime_profiles_runtime_connection_idx": {
2494
+ "name": "runtime_profiles_runtime_connection_idx",
2495
+ "columns": [
2496
+ {
2497
+ "expression": "runtime_connection_id",
2498
+ "isExpression": false,
2499
+ "asc": true,
2500
+ "nulls": "last"
2501
+ }
2502
+ ],
2503
+ "isUnique": false,
2504
+ "concurrently": false,
2505
+ "method": "btree",
2506
+ "with": {}
2507
+ }
2508
+ },
2509
+ "foreignKeys": {
2510
+ "runtime_profiles_workspace_id_workspaces_id_fk": {
2511
+ "name": "runtime_profiles_workspace_id_workspaces_id_fk",
2512
+ "tableFrom": "runtime_profiles",
2513
+ "tableTo": "workspaces",
2514
+ "columnsFrom": [
2515
+ "workspace_id"
2516
+ ],
2517
+ "columnsTo": [
2518
+ "id"
2519
+ ],
2520
+ "onDelete": "cascade",
2521
+ "onUpdate": "no action"
2522
+ },
2523
+ "runtime_profiles_runtime_connection_id_secrets_id_fk": {
2524
+ "name": "runtime_profiles_runtime_connection_id_secrets_id_fk",
2525
+ "tableFrom": "runtime_profiles",
2526
+ "tableTo": "secrets",
2527
+ "columnsFrom": [
2528
+ "runtime_connection_id"
2529
+ ],
2530
+ "columnsTo": [
2531
+ "id"
2532
+ ],
2533
+ "onDelete": "set null",
2534
+ "onUpdate": "no action"
2535
+ },
2536
+ "runtime_profiles_runtime_connection_workspace_fk": {
2537
+ "name": "runtime_profiles_runtime_connection_workspace_fk",
2538
+ "tableFrom": "runtime_profiles",
2539
+ "tableTo": "secrets",
2540
+ "columnsFrom": [
2541
+ "runtime_connection_id",
2542
+ "workspace_id"
2543
+ ],
2544
+ "columnsTo": [
2545
+ "id",
2546
+ "workspace_id"
2547
+ ],
2548
+ "onDelete": "no action",
2549
+ "onUpdate": "no action"
2550
+ }
2551
+ },
2552
+ "compositePrimaryKeys": {},
2553
+ "uniqueConstraints": {
2554
+ "runtime_profiles_id_workspace_key": {
2555
+ "name": "runtime_profiles_id_workspace_key",
2556
+ "nullsNotDistinct": false,
2557
+ "columns": [
2558
+ "id",
2559
+ "workspace_id"
2560
+ ]
2561
+ }
2562
+ },
2563
+ "policies": {},
2564
+ "checkConstraints": {
2565
+ "runtime_profiles_name_not_blank": {
2566
+ "name": "runtime_profiles_name_not_blank",
2567
+ "value": "length(btrim(\"runtime_profiles\".\"name\")) > 0"
2568
+ },
2569
+ "runtime_profiles_driver_valid": {
2570
+ "name": "runtime_profiles_driver_valid",
2571
+ "value": "\"runtime_profiles\".\"driver\" in ('local', 'sandbox-runtime', 'docker', 'kubernetes', 'gke-agent-sandbox', 'aca-sessions', 'aws-agentcore', 'aws-ecs', 'cloud-run-sandbox', 'external')"
2572
+ },
2573
+ "runtime_profiles_network_policy_valid": {
2574
+ "name": "runtime_profiles_network_policy_valid",
2575
+ "value": "\"runtime_profiles\".\"network_policy\" in ('none', 'restricted', 'open')"
2576
+ },
2577
+ "runtime_profiles_filesystem_valid": {
2578
+ "name": "runtime_profiles_filesystem_valid",
2579
+ "value": "\"runtime_profiles\".\"filesystem\" in ('read-only', 'read-write')"
2580
+ }
2581
+ },
2582
+ "isRLSEnabled": false
2583
+ },
2584
+ "public.secrets": {
2585
+ "name": "secrets",
2586
+ "schema": "",
2587
+ "columns": {
2588
+ "id": {
2589
+ "name": "id",
2590
+ "type": "uuid",
2591
+ "primaryKey": true,
2592
+ "notNull": true,
2593
+ "default": "gen_random_uuid()"
2594
+ },
2595
+ "workspace_id": {
2596
+ "name": "workspace_id",
2597
+ "type": "uuid",
2598
+ "primaryKey": false,
2599
+ "notNull": true
2600
+ },
2601
+ "name": {
2602
+ "name": "name",
2603
+ "type": "text",
2604
+ "primaryKey": false,
2605
+ "notNull": true
2606
+ },
2607
+ "algorithm": {
2608
+ "name": "algorithm",
2609
+ "type": "text",
2610
+ "primaryKey": false,
2611
+ "notNull": true
2612
+ },
2613
+ "master_key_id": {
2614
+ "name": "master_key_id",
2615
+ "type": "text",
2616
+ "primaryKey": false,
2617
+ "notNull": true
2618
+ },
2619
+ "wrapped_data_key": {
2620
+ "name": "wrapped_data_key",
2621
+ "type": "bytea",
2622
+ "primaryKey": false,
2623
+ "notNull": true
2624
+ },
2625
+ "wrapped_data_key_nonce": {
2626
+ "name": "wrapped_data_key_nonce",
2627
+ "type": "bytea",
2628
+ "primaryKey": false,
2629
+ "notNull": true
2630
+ },
2631
+ "wrapped_data_key_tag": {
2632
+ "name": "wrapped_data_key_tag",
2633
+ "type": "bytea",
2634
+ "primaryKey": false,
2635
+ "notNull": true
2636
+ },
2637
+ "ciphertext": {
2638
+ "name": "ciphertext",
2639
+ "type": "bytea",
2640
+ "primaryKey": false,
2641
+ "notNull": true
2642
+ },
2643
+ "ciphertext_nonce": {
2644
+ "name": "ciphertext_nonce",
2645
+ "type": "bytea",
2646
+ "primaryKey": false,
2647
+ "notNull": true
2648
+ },
2649
+ "ciphertext_tag": {
2650
+ "name": "ciphertext_tag",
2651
+ "type": "bytea",
2652
+ "primaryKey": false,
2653
+ "notNull": true
2654
+ },
2655
+ "created_at": {
2656
+ "name": "created_at",
2657
+ "type": "timestamp with time zone",
2658
+ "primaryKey": false,
2659
+ "notNull": true,
2660
+ "default": "now()"
2661
+ },
2662
+ "updated_at": {
2663
+ "name": "updated_at",
2664
+ "type": "timestamp with time zone",
2665
+ "primaryKey": false,
2666
+ "notNull": true,
2667
+ "default": "now()"
2668
+ }
2669
+ },
2670
+ "indexes": {
2671
+ "secrets_workspace_name_key": {
2672
+ "name": "secrets_workspace_name_key",
2673
+ "columns": [
2674
+ {
2675
+ "expression": "workspace_id",
2676
+ "isExpression": false,
2677
+ "asc": true,
2678
+ "nulls": "last"
2679
+ },
2680
+ {
2681
+ "expression": "name",
2682
+ "isExpression": false,
2683
+ "asc": true,
2684
+ "nulls": "last"
2685
+ }
2686
+ ],
2687
+ "isUnique": true,
2688
+ "concurrently": false,
2689
+ "method": "btree",
2690
+ "with": {}
2691
+ }
2692
+ },
2693
+ "foreignKeys": {
2694
+ "secrets_workspace_id_workspaces_id_fk": {
2695
+ "name": "secrets_workspace_id_workspaces_id_fk",
2696
+ "tableFrom": "secrets",
2697
+ "tableTo": "workspaces",
2698
+ "columnsFrom": [
2699
+ "workspace_id"
2700
+ ],
2701
+ "columnsTo": [
2702
+ "id"
2703
+ ],
2704
+ "onDelete": "cascade",
2705
+ "onUpdate": "no action"
2706
+ }
2707
+ },
2708
+ "compositePrimaryKeys": {},
2709
+ "uniqueConstraints": {
2710
+ "secrets_id_workspace_key": {
2711
+ "name": "secrets_id_workspace_key",
2712
+ "nullsNotDistinct": false,
2713
+ "columns": [
2714
+ "id",
2715
+ "workspace_id"
2716
+ ]
2717
+ }
2718
+ },
2719
+ "policies": {},
2720
+ "checkConstraints": {
2721
+ "secrets_name_shape": {
2722
+ "name": "secrets_name_shape",
2723
+ "value": "\"secrets\".\"name\" ~ '^[A-Z][A-Z0-9_]{0,127}$'"
2724
+ },
2725
+ "secrets_master_key_id_not_blank": {
2726
+ "name": "secrets_master_key_id_not_blank",
2727
+ "value": "length(btrim(\"secrets\".\"master_key_id\")) > 0"
2728
+ },
2729
+ "secrets_algorithm_valid": {
2730
+ "name": "secrets_algorithm_valid",
2731
+ "value": "\"secrets\".\"algorithm\" in ('aes-256-gcm')"
2732
+ },
2733
+ "secrets_wrapped_data_key_size": {
2734
+ "name": "secrets_wrapped_data_key_size",
2735
+ "value": "octet_length(\"secrets\".\"wrapped_data_key\") = 32"
2736
+ },
2737
+ "secrets_nonce_sizes": {
2738
+ "name": "secrets_nonce_sizes",
2739
+ "value": "octet_length(\"secrets\".\"wrapped_data_key_nonce\") = 12 and octet_length(\"secrets\".\"ciphertext_nonce\") = 12"
2740
+ },
2741
+ "secrets_tag_sizes": {
2742
+ "name": "secrets_tag_sizes",
2743
+ "value": "octet_length(\"secrets\".\"wrapped_data_key_tag\") = 16 and octet_length(\"secrets\".\"ciphertext_tag\") = 16"
2744
+ },
2745
+ "secrets_ciphertext_not_empty": {
2746
+ "name": "secrets_ciphertext_not_empty",
2747
+ "value": "octet_length(\"secrets\".\"ciphertext\") > 0"
2748
+ }
2749
+ },
2750
+ "isRLSEnabled": false
2751
+ },
2752
+ "public.session_messages": {
2753
+ "name": "session_messages",
2754
+ "schema": "",
2755
+ "columns": {
2756
+ "workspace_id": {
2757
+ "name": "workspace_id",
2758
+ "type": "uuid",
2759
+ "primaryKey": false,
2760
+ "notNull": true
2761
+ },
2762
+ "project_key": {
2763
+ "name": "project_key",
2764
+ "type": "text",
2765
+ "primaryKey": false,
2766
+ "notNull": true
2767
+ },
2768
+ "session_id": {
2769
+ "name": "session_id",
2770
+ "type": "uuid",
2771
+ "primaryKey": false,
2772
+ "notNull": true
2773
+ },
2774
+ "subpath": {
2775
+ "name": "subpath",
2776
+ "type": "text",
2777
+ "primaryKey": false,
2778
+ "notNull": true,
2779
+ "default": "''"
2780
+ },
2781
+ "sequence": {
2782
+ "name": "sequence",
2783
+ "type": "bigint",
2784
+ "primaryKey": false,
2785
+ "notNull": true
2786
+ },
2787
+ "position": {
2788
+ "name": "position",
2789
+ "type": "bigint",
2790
+ "primaryKey": false,
2791
+ "notNull": true
2792
+ },
2793
+ "entry_uuid": {
2794
+ "name": "entry_uuid",
2795
+ "type": "text",
2796
+ "primaryKey": false,
2797
+ "notNull": false
2798
+ },
2799
+ "entry": {
2800
+ "name": "entry",
2801
+ "type": "jsonb",
2802
+ "primaryKey": false,
2803
+ "notNull": true
2804
+ },
2805
+ "created_at": {
2806
+ "name": "created_at",
2807
+ "type": "timestamp with time zone",
2808
+ "primaryKey": false,
2809
+ "notNull": true,
2810
+ "default": "now()"
2811
+ }
2812
+ },
2813
+ "indexes": {
2814
+ "session_messages_key_sequence_idx": {
2815
+ "name": "session_messages_key_sequence_idx",
2816
+ "columns": [
2817
+ {
2818
+ "expression": "workspace_id",
2819
+ "isExpression": false,
2820
+ "asc": true,
2821
+ "nulls": "last"
2822
+ },
2823
+ {
2824
+ "expression": "project_key",
2825
+ "isExpression": false,
2826
+ "asc": true,
2827
+ "nulls": "last"
2828
+ },
2829
+ {
2830
+ "expression": "session_id",
2831
+ "isExpression": false,
2832
+ "asc": true,
2833
+ "nulls": "last"
2834
+ },
2835
+ {
2836
+ "expression": "subpath",
2837
+ "isExpression": false,
2838
+ "asc": true,
2839
+ "nulls": "last"
2840
+ },
2841
+ {
2842
+ "expression": "sequence",
2843
+ "isExpression": false,
2844
+ "asc": true,
2845
+ "nulls": "last"
2846
+ }
2847
+ ],
2848
+ "isUnique": false,
2849
+ "concurrently": false,
2850
+ "method": "btree",
2851
+ "with": {}
2852
+ },
2853
+ "session_messages_key_uuid_idx": {
2854
+ "name": "session_messages_key_uuid_idx",
2855
+ "columns": [
2856
+ {
2857
+ "expression": "workspace_id",
2858
+ "isExpression": false,
2859
+ "asc": true,
2860
+ "nulls": "last"
2861
+ },
2862
+ {
2863
+ "expression": "project_key",
2864
+ "isExpression": false,
2865
+ "asc": true,
2866
+ "nulls": "last"
2867
+ },
2868
+ {
2869
+ "expression": "session_id",
2870
+ "isExpression": false,
2871
+ "asc": true,
2872
+ "nulls": "last"
2873
+ },
2874
+ {
2875
+ "expression": "subpath",
2876
+ "isExpression": false,
2877
+ "asc": true,
2878
+ "nulls": "last"
2879
+ },
2880
+ {
2881
+ "expression": "entry_uuid",
2882
+ "isExpression": false,
2883
+ "asc": true,
2884
+ "nulls": "last"
2885
+ },
2886
+ {
2887
+ "expression": "sequence",
2888
+ "isExpression": false,
2889
+ "asc": true,
2890
+ "nulls": "last"
2891
+ }
2892
+ ],
2893
+ "isUnique": false,
2894
+ "concurrently": false,
2895
+ "method": "btree",
2896
+ "with": {}
2897
+ }
2898
+ },
2899
+ "foreignKeys": {
2900
+ "session_messages_workspace_id_workspaces_id_fk": {
2901
+ "name": "session_messages_workspace_id_workspaces_id_fk",
2902
+ "tableFrom": "session_messages",
2903
+ "tableTo": "workspaces",
2904
+ "columnsFrom": [
2905
+ "workspace_id"
2906
+ ],
2907
+ "columnsTo": [
2908
+ "id"
2909
+ ],
2910
+ "onDelete": "cascade",
2911
+ "onUpdate": "no action"
2912
+ },
2913
+ "session_messages_transcript_fk": {
2914
+ "name": "session_messages_transcript_fk",
2915
+ "tableFrom": "session_messages",
2916
+ "tableTo": "session_transcripts",
2917
+ "columnsFrom": [
2918
+ "workspace_id",
2919
+ "project_key",
2920
+ "session_id",
2921
+ "subpath"
2922
+ ],
2923
+ "columnsTo": [
2924
+ "workspace_id",
2925
+ "project_key",
2926
+ "session_id",
2927
+ "subpath"
2928
+ ],
2929
+ "onDelete": "cascade",
2930
+ "onUpdate": "no action"
2931
+ }
2932
+ },
2933
+ "compositePrimaryKeys": {
2934
+ "session_messages_pkey": {
2935
+ "name": "session_messages_pkey",
2936
+ "columns": [
2937
+ "workspace_id",
2938
+ "project_key",
2939
+ "session_id",
2940
+ "subpath",
2941
+ "sequence"
2942
+ ]
2943
+ }
2944
+ },
2945
+ "uniqueConstraints": {},
2946
+ "policies": {},
2947
+ "checkConstraints": {},
2948
+ "isRLSEnabled": false
2949
+ },
2950
+ "public.session_transcripts": {
2951
+ "name": "session_transcripts",
2952
+ "schema": "",
2953
+ "columns": {
2954
+ "workspace_id": {
2955
+ "name": "workspace_id",
2956
+ "type": "uuid",
2957
+ "primaryKey": false,
2958
+ "notNull": true
2959
+ },
2960
+ "project_key": {
2961
+ "name": "project_key",
2962
+ "type": "text",
2963
+ "primaryKey": false,
2964
+ "notNull": true
2965
+ },
2966
+ "session_id": {
2967
+ "name": "session_id",
2968
+ "type": "uuid",
2969
+ "primaryKey": false,
2970
+ "notNull": true
2971
+ },
2972
+ "subpath": {
2973
+ "name": "subpath",
2974
+ "type": "text",
2975
+ "primaryKey": false,
2976
+ "notNull": true,
2977
+ "default": "''"
2978
+ },
2979
+ "created_at": {
2980
+ "name": "created_at",
2981
+ "type": "timestamp with time zone",
2982
+ "primaryKey": false,
2983
+ "notNull": true,
2984
+ "default": "now()"
2985
+ },
2986
+ "updated_at": {
2987
+ "name": "updated_at",
2988
+ "type": "timestamp with time zone",
2989
+ "primaryKey": false,
2990
+ "notNull": true,
2991
+ "default": "now()"
2992
+ }
2993
+ },
2994
+ "indexes": {
2995
+ "session_transcripts_workspace_updated_idx": {
2996
+ "name": "session_transcripts_workspace_updated_idx",
2997
+ "columns": [
2998
+ {
2999
+ "expression": "workspace_id",
3000
+ "isExpression": false,
3001
+ "asc": true,
3002
+ "nulls": "last"
3003
+ },
3004
+ {
3005
+ "expression": "updated_at",
3006
+ "isExpression": false,
3007
+ "asc": true,
3008
+ "nulls": "last"
3009
+ }
3010
+ ],
3011
+ "isUnique": false,
3012
+ "concurrently": false,
3013
+ "method": "btree",
3014
+ "with": {}
3015
+ },
3016
+ "session_transcripts_project_updated_idx": {
3017
+ "name": "session_transcripts_project_updated_idx",
3018
+ "columns": [
3019
+ {
3020
+ "expression": "project_key",
3021
+ "isExpression": false,
3022
+ "asc": true,
3023
+ "nulls": "last"
3024
+ },
3025
+ {
3026
+ "expression": "updated_at",
3027
+ "isExpression": false,
3028
+ "asc": true,
3029
+ "nulls": "last"
3030
+ }
3031
+ ],
3032
+ "isUnique": false,
3033
+ "concurrently": false,
3034
+ "method": "btree",
3035
+ "with": {}
3036
+ }
3037
+ },
3038
+ "foreignKeys": {
3039
+ "session_transcripts_workspace_id_workspaces_id_fk": {
3040
+ "name": "session_transcripts_workspace_id_workspaces_id_fk",
3041
+ "tableFrom": "session_transcripts",
3042
+ "tableTo": "workspaces",
3043
+ "columnsFrom": [
3044
+ "workspace_id"
3045
+ ],
3046
+ "columnsTo": [
3047
+ "id"
3048
+ ],
3049
+ "onDelete": "cascade",
3050
+ "onUpdate": "no action"
3051
+ },
3052
+ "session_transcripts_session_workspace_fk": {
3053
+ "name": "session_transcripts_session_workspace_fk",
3054
+ "tableFrom": "session_transcripts",
3055
+ "tableTo": "sessions",
3056
+ "columnsFrom": [
3057
+ "session_id",
3058
+ "workspace_id"
3059
+ ],
3060
+ "columnsTo": [
3061
+ "id",
3062
+ "workspace_id"
3063
+ ],
3064
+ "onDelete": "cascade",
3065
+ "onUpdate": "no action"
3066
+ }
3067
+ },
3068
+ "compositePrimaryKeys": {
3069
+ "session_transcripts_pkey": {
3070
+ "name": "session_transcripts_pkey",
3071
+ "columns": [
3072
+ "workspace_id",
3073
+ "project_key",
3074
+ "session_id",
3075
+ "subpath"
3076
+ ]
3077
+ }
3078
+ },
3079
+ "uniqueConstraints": {},
3080
+ "policies": {},
3081
+ "checkConstraints": {},
3082
+ "isRLSEnabled": false
3083
+ },
3084
+ "public.sessions": {
3085
+ "name": "sessions",
3086
+ "schema": "",
3087
+ "columns": {
3088
+ "id": {
3089
+ "name": "id",
3090
+ "type": "uuid",
3091
+ "primaryKey": true,
3092
+ "notNull": true,
3093
+ "default": "gen_random_uuid()"
3094
+ },
3095
+ "workspace_id": {
3096
+ "name": "workspace_id",
3097
+ "type": "uuid",
3098
+ "primaryKey": false,
3099
+ "notNull": true
3100
+ },
3101
+ "user_id": {
3102
+ "name": "user_id",
3103
+ "type": "uuid",
3104
+ "primaryKey": false,
3105
+ "notNull": true
3106
+ },
3107
+ "agent_id": {
3108
+ "name": "agent_id",
3109
+ "type": "uuid",
3110
+ "primaryKey": false,
3111
+ "notNull": true
3112
+ },
3113
+ "project_id": {
3114
+ "name": "project_id",
3115
+ "type": "uuid",
3116
+ "primaryKey": false,
3117
+ "notNull": false
3118
+ },
3119
+ "claude_session_id": {
3120
+ "name": "claude_session_id",
3121
+ "type": "text",
3122
+ "primaryKey": false,
3123
+ "notNull": false
3124
+ },
3125
+ "title": {
3126
+ "name": "title",
3127
+ "type": "text",
3128
+ "primaryKey": false,
3129
+ "notNull": false
3130
+ },
3131
+ "status": {
3132
+ "name": "status",
3133
+ "type": "text",
3134
+ "primaryKey": false,
3135
+ "notNull": true,
3136
+ "default": "'active'"
3137
+ },
3138
+ "created_at": {
3139
+ "name": "created_at",
3140
+ "type": "timestamp with time zone",
3141
+ "primaryKey": false,
3142
+ "notNull": true,
3143
+ "default": "now()"
3144
+ },
3145
+ "updated_at": {
3146
+ "name": "updated_at",
3147
+ "type": "timestamp with time zone",
3148
+ "primaryKey": false,
3149
+ "notNull": true,
3150
+ "default": "now()"
3151
+ }
3152
+ },
3153
+ "indexes": {
3154
+ "sessions_workspace_updated_idx": {
3155
+ "name": "sessions_workspace_updated_idx",
3156
+ "columns": [
3157
+ {
3158
+ "expression": "workspace_id",
3159
+ "isExpression": false,
3160
+ "asc": true,
3161
+ "nulls": "last"
3162
+ },
3163
+ {
3164
+ "expression": "updated_at",
3165
+ "isExpression": false,
3166
+ "asc": true,
3167
+ "nulls": "last"
3168
+ }
3169
+ ],
3170
+ "isUnique": false,
3171
+ "concurrently": false,
3172
+ "method": "btree",
3173
+ "with": {}
3174
+ },
3175
+ "sessions_workspace_claude_session_key": {
3176
+ "name": "sessions_workspace_claude_session_key",
3177
+ "columns": [
3178
+ {
3179
+ "expression": "workspace_id",
3180
+ "isExpression": false,
3181
+ "asc": true,
3182
+ "nulls": "last"
3183
+ },
3184
+ {
3185
+ "expression": "claude_session_id",
3186
+ "isExpression": false,
3187
+ "asc": true,
3188
+ "nulls": "last"
3189
+ }
3190
+ ],
3191
+ "isUnique": true,
3192
+ "concurrently": false,
3193
+ "method": "btree",
3194
+ "with": {}
3195
+ },
3196
+ "sessions_agent_idx": {
3197
+ "name": "sessions_agent_idx",
3198
+ "columns": [
3199
+ {
3200
+ "expression": "agent_id",
3201
+ "isExpression": false,
3202
+ "asc": true,
3203
+ "nulls": "last"
3204
+ }
3205
+ ],
3206
+ "isUnique": false,
3207
+ "concurrently": false,
3208
+ "method": "btree",
3209
+ "with": {}
3210
+ },
3211
+ "sessions_project_idx": {
3212
+ "name": "sessions_project_idx",
3213
+ "columns": [
3214
+ {
3215
+ "expression": "project_id",
3216
+ "isExpression": false,
3217
+ "asc": true,
3218
+ "nulls": "last"
3219
+ }
3220
+ ],
3221
+ "isUnique": false,
3222
+ "concurrently": false,
3223
+ "method": "btree",
3224
+ "with": {}
3225
+ },
3226
+ "sessions_user_idx": {
3227
+ "name": "sessions_user_idx",
3228
+ "columns": [
3229
+ {
3230
+ "expression": "user_id",
3231
+ "isExpression": false,
3232
+ "asc": true,
3233
+ "nulls": "last"
3234
+ }
3235
+ ],
3236
+ "isUnique": false,
3237
+ "concurrently": false,
3238
+ "method": "btree",
3239
+ "with": {}
3240
+ }
3241
+ },
3242
+ "foreignKeys": {
3243
+ "sessions_workspace_id_workspaces_id_fk": {
3244
+ "name": "sessions_workspace_id_workspaces_id_fk",
3245
+ "tableFrom": "sessions",
3246
+ "tableTo": "workspaces",
3247
+ "columnsFrom": [
3248
+ "workspace_id"
3249
+ ],
3250
+ "columnsTo": [
3251
+ "id"
3252
+ ],
3253
+ "onDelete": "cascade",
3254
+ "onUpdate": "no action"
3255
+ },
3256
+ "sessions_user_id_users_id_fk": {
3257
+ "name": "sessions_user_id_users_id_fk",
3258
+ "tableFrom": "sessions",
3259
+ "tableTo": "users",
3260
+ "columnsFrom": [
3261
+ "user_id"
3262
+ ],
3263
+ "columnsTo": [
3264
+ "id"
3265
+ ],
3266
+ "onDelete": "restrict",
3267
+ "onUpdate": "no action"
3268
+ },
3269
+ "sessions_agent_workspace_fk": {
3270
+ "name": "sessions_agent_workspace_fk",
3271
+ "tableFrom": "sessions",
3272
+ "tableTo": "agents",
3273
+ "columnsFrom": [
3274
+ "agent_id",
3275
+ "workspace_id"
3276
+ ],
3277
+ "columnsTo": [
3278
+ "id",
3279
+ "workspace_id"
3280
+ ],
3281
+ "onDelete": "cascade",
3282
+ "onUpdate": "no action"
3283
+ },
3284
+ "sessions_project_workspace_fk": {
3285
+ "name": "sessions_project_workspace_fk",
3286
+ "tableFrom": "sessions",
3287
+ "tableTo": "projects",
3288
+ "columnsFrom": [
3289
+ "project_id",
3290
+ "workspace_id"
3291
+ ],
3292
+ "columnsTo": [
3293
+ "id",
3294
+ "workspace_id"
3295
+ ],
3296
+ "onDelete": "set null",
3297
+ "onUpdate": "no action"
3298
+ },
3299
+ "sessions_member_workspace_fk": {
3300
+ "name": "sessions_member_workspace_fk",
3301
+ "tableFrom": "sessions",
3302
+ "tableTo": "memberships",
3303
+ "columnsFrom": [
3304
+ "workspace_id",
3305
+ "user_id"
3306
+ ],
3307
+ "columnsTo": [
3308
+ "workspace_id",
3309
+ "user_id"
3310
+ ],
3311
+ "onDelete": "no action",
3312
+ "onUpdate": "no action"
3313
+ }
3314
+ },
3315
+ "compositePrimaryKeys": {},
3316
+ "uniqueConstraints": {
3317
+ "sessions_id_workspace_key": {
3318
+ "name": "sessions_id_workspace_key",
3319
+ "nullsNotDistinct": false,
3320
+ "columns": [
3321
+ "id",
3322
+ "workspace_id"
3323
+ ]
3324
+ }
3325
+ },
3326
+ "policies": {},
3327
+ "checkConstraints": {
3328
+ "sessions_status_valid": {
3329
+ "name": "sessions_status_valid",
3330
+ "value": "\"sessions\".\"status\" in ('active', 'archived')"
3331
+ }
3332
+ },
3333
+ "isRLSEnabled": false
3334
+ },
3335
+ "public.share_views": {
3336
+ "name": "share_views",
3337
+ "schema": "",
3338
+ "columns": {
3339
+ "id": {
3340
+ "name": "id",
3341
+ "type": "uuid",
3342
+ "primaryKey": true,
3343
+ "notNull": true,
3344
+ "default": "gen_random_uuid()"
3345
+ },
3346
+ "workspace_id": {
3347
+ "name": "workspace_id",
3348
+ "type": "uuid",
3349
+ "primaryKey": false,
3350
+ "notNull": true
3351
+ },
3352
+ "share_id": {
3353
+ "name": "share_id",
3354
+ "type": "uuid",
3355
+ "primaryKey": false,
3356
+ "notNull": true
3357
+ },
3358
+ "visitor_key": {
3359
+ "name": "visitor_key",
3360
+ "type": "text",
3361
+ "primaryKey": false,
3362
+ "notNull": false
3363
+ },
3364
+ "created_at": {
3365
+ "name": "created_at",
3366
+ "type": "timestamp with time zone",
3367
+ "primaryKey": false,
3368
+ "notNull": true,
3369
+ "default": "now()"
3370
+ }
3371
+ },
3372
+ "indexes": {
3373
+ "share_views_workspace_share_created_idx": {
3374
+ "name": "share_views_workspace_share_created_idx",
3375
+ "columns": [
3376
+ {
3377
+ "expression": "workspace_id",
3378
+ "isExpression": false,
3379
+ "asc": true,
3380
+ "nulls": "last"
3381
+ },
3382
+ {
3383
+ "expression": "share_id",
3384
+ "isExpression": false,
3385
+ "asc": true,
3386
+ "nulls": "last"
3387
+ },
3388
+ {
3389
+ "expression": "created_at",
3390
+ "isExpression": false,
3391
+ "asc": true,
3392
+ "nulls": "last"
3393
+ }
3394
+ ],
3395
+ "isUnique": false,
3396
+ "concurrently": false,
3397
+ "method": "btree",
3398
+ "with": {}
3399
+ }
3400
+ },
3401
+ "foreignKeys": {
3402
+ "share_views_workspace_id_workspaces_id_fk": {
3403
+ "name": "share_views_workspace_id_workspaces_id_fk",
3404
+ "tableFrom": "share_views",
3405
+ "tableTo": "workspaces",
3406
+ "columnsFrom": [
3407
+ "workspace_id"
3408
+ ],
3409
+ "columnsTo": [
3410
+ "id"
3411
+ ],
3412
+ "onDelete": "cascade",
3413
+ "onUpdate": "no action"
3414
+ },
3415
+ "share_views_share_workspace_fk": {
3416
+ "name": "share_views_share_workspace_fk",
3417
+ "tableFrom": "share_views",
3418
+ "tableTo": "shares",
3419
+ "columnsFrom": [
3420
+ "share_id",
3421
+ "workspace_id"
3422
+ ],
3423
+ "columnsTo": [
3424
+ "id",
3425
+ "workspace_id"
3426
+ ],
3427
+ "onDelete": "cascade",
3428
+ "onUpdate": "no action"
3429
+ }
3430
+ },
3431
+ "compositePrimaryKeys": {},
3432
+ "uniqueConstraints": {},
3433
+ "policies": {},
3434
+ "checkConstraints": {},
3435
+ "isRLSEnabled": false
3436
+ },
3437
+ "public.shares": {
3438
+ "name": "shares",
3439
+ "schema": "",
3440
+ "columns": {
3441
+ "id": {
3442
+ "name": "id",
3443
+ "type": "uuid",
3444
+ "primaryKey": true,
3445
+ "notNull": true,
3446
+ "default": "gen_random_uuid()"
3447
+ },
3448
+ "workspace_id": {
3449
+ "name": "workspace_id",
3450
+ "type": "uuid",
3451
+ "primaryKey": false,
3452
+ "notNull": true
3453
+ },
3454
+ "token": {
3455
+ "name": "token",
3456
+ "type": "text",
3457
+ "primaryKey": false,
3458
+ "notNull": true
3459
+ },
3460
+ "subject_type": {
3461
+ "name": "subject_type",
3462
+ "type": "text",
3463
+ "primaryKey": false,
3464
+ "notNull": true
3465
+ },
3466
+ "subject_id": {
3467
+ "name": "subject_id",
3468
+ "type": "text",
3469
+ "primaryKey": false,
3470
+ "notNull": true
3471
+ },
3472
+ "subject_label": {
3473
+ "name": "subject_label",
3474
+ "type": "text",
3475
+ "primaryKey": false,
3476
+ "notNull": true
3477
+ },
3478
+ "visibility": {
3479
+ "name": "visibility",
3480
+ "type": "text",
3481
+ "primaryKey": false,
3482
+ "notNull": true
3483
+ },
3484
+ "mode": {
3485
+ "name": "mode",
3486
+ "type": "text",
3487
+ "primaryKey": false,
3488
+ "notNull": false
3489
+ },
3490
+ "snapshot": {
3491
+ "name": "snapshot",
3492
+ "type": "jsonb",
3493
+ "primaryKey": false,
3494
+ "notNull": false
3495
+ },
3496
+ "include": {
3497
+ "name": "include",
3498
+ "type": "jsonb",
3499
+ "primaryKey": false,
3500
+ "notNull": true,
3501
+ "default": "'{}'::jsonb"
3502
+ },
3503
+ "budget_cap_usd": {
3504
+ "name": "budget_cap_usd",
3505
+ "type": "numeric(12, 4)",
3506
+ "primaryKey": false,
3507
+ "notNull": false
3508
+ },
3509
+ "spent_usd": {
3510
+ "name": "spent_usd",
3511
+ "type": "numeric(12, 4)",
3512
+ "primaryKey": false,
3513
+ "notNull": true,
3514
+ "default": "'0'"
3515
+ },
3516
+ "stopped": {
3517
+ "name": "stopped",
3518
+ "type": "boolean",
3519
+ "primaryKey": false,
3520
+ "notNull": true,
3521
+ "default": false
3522
+ },
3523
+ "expires_at": {
3524
+ "name": "expires_at",
3525
+ "type": "timestamp with time zone",
3526
+ "primaryKey": false,
3527
+ "notNull": false
3528
+ },
3529
+ "passphrase_hash": {
3530
+ "name": "passphrase_hash",
3531
+ "type": "text",
3532
+ "primaryKey": false,
3533
+ "notNull": false
3534
+ },
3535
+ "created_by": {
3536
+ "name": "created_by",
3537
+ "type": "uuid",
3538
+ "primaryKey": false,
3539
+ "notNull": true
3540
+ },
3541
+ "revoked_at": {
3542
+ "name": "revoked_at",
3543
+ "type": "timestamp with time zone",
3544
+ "primaryKey": false,
3545
+ "notNull": false
3546
+ },
3547
+ "suspended_at": {
3548
+ "name": "suspended_at",
3549
+ "type": "timestamp with time zone",
3550
+ "primaryKey": false,
3551
+ "notNull": false
3552
+ },
3553
+ "created_at": {
3554
+ "name": "created_at",
3555
+ "type": "timestamp with time zone",
3556
+ "primaryKey": false,
3557
+ "notNull": true,
3558
+ "default": "now()"
3559
+ }
3560
+ },
3561
+ "indexes": {
3562
+ "shares_workspace_created_idx": {
3563
+ "name": "shares_workspace_created_idx",
3564
+ "columns": [
3565
+ {
3566
+ "expression": "workspace_id",
3567
+ "isExpression": false,
3568
+ "asc": true,
3569
+ "nulls": "last"
3570
+ },
3571
+ {
3572
+ "expression": "created_at",
3573
+ "isExpression": false,
3574
+ "asc": true,
3575
+ "nulls": "last"
3576
+ }
3577
+ ],
3578
+ "isUnique": false,
3579
+ "concurrently": false,
3580
+ "method": "btree",
3581
+ "with": {}
3582
+ }
3583
+ },
3584
+ "foreignKeys": {
3585
+ "shares_workspace_id_workspaces_id_fk": {
3586
+ "name": "shares_workspace_id_workspaces_id_fk",
3587
+ "tableFrom": "shares",
3588
+ "tableTo": "workspaces",
3589
+ "columnsFrom": [
3590
+ "workspace_id"
3591
+ ],
3592
+ "columnsTo": [
3593
+ "id"
3594
+ ],
3595
+ "onDelete": "cascade",
3596
+ "onUpdate": "no action"
3597
+ },
3598
+ "shares_created_by_users_id_fk": {
3599
+ "name": "shares_created_by_users_id_fk",
3600
+ "tableFrom": "shares",
3601
+ "tableTo": "users",
3602
+ "columnsFrom": [
3603
+ "created_by"
3604
+ ],
3605
+ "columnsTo": [
3606
+ "id"
3607
+ ],
3608
+ "onDelete": "restrict",
3609
+ "onUpdate": "no action"
3610
+ },
3611
+ "shares_creator_workspace_fk": {
3612
+ "name": "shares_creator_workspace_fk",
3613
+ "tableFrom": "shares",
3614
+ "tableTo": "memberships",
3615
+ "columnsFrom": [
3616
+ "workspace_id",
3617
+ "created_by"
3618
+ ],
3619
+ "columnsTo": [
3620
+ "workspace_id",
3621
+ "user_id"
3622
+ ],
3623
+ "onDelete": "no action",
3624
+ "onUpdate": "no action"
3625
+ }
3626
+ },
3627
+ "compositePrimaryKeys": {},
3628
+ "uniqueConstraints": {
3629
+ "shares_id_workspace_key": {
3630
+ "name": "shares_id_workspace_key",
3631
+ "nullsNotDistinct": false,
3632
+ "columns": [
3633
+ "id",
3634
+ "workspace_id"
3635
+ ]
3636
+ },
3637
+ "shares_token_key": {
3638
+ "name": "shares_token_key",
3639
+ "nullsNotDistinct": false,
3640
+ "columns": [
3641
+ "token"
3642
+ ]
3643
+ }
3644
+ },
3645
+ "policies": {},
3646
+ "checkConstraints": {
3647
+ "shares_subject_type_valid": {
3648
+ "name": "shares_subject_type_valid",
3649
+ "value": "\"shares\".\"subject_type\" in ('agent', 'session', 'project', 'skill')"
3650
+ },
3651
+ "shares_visibility_valid": {
3652
+ "name": "shares_visibility_valid",
3653
+ "value": "\"shares\".\"visibility\" in ('private', 'workspace', 'public')"
3654
+ },
3655
+ "shares_mode_valid": {
3656
+ "name": "shares_mode_valid",
3657
+ "value": "\"shares\".\"mode\" is null or \"shares\".\"mode\" in ('definition', 'runnable')"
3658
+ },
3659
+ "shares_agent_mode_only": {
3660
+ "name": "shares_agent_mode_only",
3661
+ "value": "\"shares\".\"mode\" is null or \"shares\".\"subject_type\" = 'agent'"
3662
+ },
3663
+ "shares_budget_nonnegative": {
3664
+ "name": "shares_budget_nonnegative",
3665
+ "value": "\"shares\".\"budget_cap_usd\" is null or \"shares\".\"budget_cap_usd\" >= 0"
3666
+ },
3667
+ "shares_spend_nonnegative": {
3668
+ "name": "shares_spend_nonnegative",
3669
+ "value": "\"shares\".\"spent_usd\" >= 0"
3670
+ },
3671
+ "shares_subject_id_not_blank": {
3672
+ "name": "shares_subject_id_not_blank",
3673
+ "value": "length(btrim(\"shares\".\"subject_id\")) > 0"
3674
+ }
3675
+ },
3676
+ "isRLSEnabled": false
3677
+ },
3678
+ "public.skills": {
3679
+ "name": "skills",
3680
+ "schema": "",
3681
+ "columns": {
3682
+ "id": {
3683
+ "name": "id",
3684
+ "type": "uuid",
3685
+ "primaryKey": true,
3686
+ "notNull": true,
3687
+ "default": "gen_random_uuid()"
3688
+ },
3689
+ "workspace_id": {
3690
+ "name": "workspace_id",
3691
+ "type": "uuid",
3692
+ "primaryKey": false,
3693
+ "notNull": true
3694
+ },
3695
+ "name": {
3696
+ "name": "name",
3697
+ "type": "text",
3698
+ "primaryKey": false,
3699
+ "notNull": true
3700
+ },
3701
+ "skill_md": {
3702
+ "name": "skill_md",
3703
+ "type": "text",
3704
+ "primaryKey": false,
3705
+ "notNull": true
3706
+ },
3707
+ "enabled": {
3708
+ "name": "enabled",
3709
+ "type": "boolean",
3710
+ "primaryKey": false,
3711
+ "notNull": true,
3712
+ "default": true
3713
+ },
3714
+ "created_at": {
3715
+ "name": "created_at",
3716
+ "type": "timestamp with time zone",
3717
+ "primaryKey": false,
3718
+ "notNull": true,
3719
+ "default": "now()"
3720
+ },
3721
+ "updated_at": {
3722
+ "name": "updated_at",
3723
+ "type": "timestamp with time zone",
3724
+ "primaryKey": false,
3725
+ "notNull": true,
3726
+ "default": "now()"
3727
+ }
3728
+ },
3729
+ "indexes": {
3730
+ "skills_workspace_name_key": {
3731
+ "name": "skills_workspace_name_key",
3732
+ "columns": [
3733
+ {
3734
+ "expression": "workspace_id",
3735
+ "isExpression": false,
3736
+ "asc": true,
3737
+ "nulls": "last"
3738
+ },
3739
+ {
3740
+ "expression": "name",
3741
+ "isExpression": false,
3742
+ "asc": true,
3743
+ "nulls": "last"
3744
+ }
3745
+ ],
3746
+ "isUnique": true,
3747
+ "concurrently": false,
3748
+ "method": "btree",
3749
+ "with": {}
3750
+ }
3751
+ },
3752
+ "foreignKeys": {
3753
+ "skills_workspace_id_workspaces_id_fk": {
3754
+ "name": "skills_workspace_id_workspaces_id_fk",
3755
+ "tableFrom": "skills",
3756
+ "tableTo": "workspaces",
3757
+ "columnsFrom": [
3758
+ "workspace_id"
3759
+ ],
3760
+ "columnsTo": [
3761
+ "id"
3762
+ ],
3763
+ "onDelete": "cascade",
3764
+ "onUpdate": "no action"
3765
+ }
3766
+ },
3767
+ "compositePrimaryKeys": {},
3768
+ "uniqueConstraints": {
3769
+ "skills_id_workspace_key": {
3770
+ "name": "skills_id_workspace_key",
3771
+ "nullsNotDistinct": false,
3772
+ "columns": [
3773
+ "id",
3774
+ "workspace_id"
3775
+ ]
3776
+ }
3777
+ },
3778
+ "policies": {},
3779
+ "checkConstraints": {
3780
+ "skills_name_shape": {
3781
+ "name": "skills_name_shape",
3782
+ "value": "\"skills\".\"name\" ~ '^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$'"
3783
+ },
3784
+ "skills_skill_md_not_blank": {
3785
+ "name": "skills_skill_md_not_blank",
3786
+ "value": "length(btrim(\"skills\".\"skill_md\")) > 0"
3787
+ }
3788
+ },
3789
+ "isRLSEnabled": false
3790
+ },
3791
+ "public.users": {
3792
+ "name": "users",
3793
+ "schema": "",
3794
+ "columns": {
3795
+ "id": {
3796
+ "name": "id",
3797
+ "type": "uuid",
3798
+ "primaryKey": true,
3799
+ "notNull": true,
3800
+ "default": "gen_random_uuid()"
3801
+ },
3802
+ "email": {
3803
+ "name": "email",
3804
+ "type": "text",
3805
+ "primaryKey": false,
3806
+ "notNull": true
3807
+ },
3808
+ "name": {
3809
+ "name": "name",
3810
+ "type": "text",
3811
+ "primaryKey": false,
3812
+ "notNull": true
3813
+ },
3814
+ "created_at": {
3815
+ "name": "created_at",
3816
+ "type": "timestamp with time zone",
3817
+ "primaryKey": false,
3818
+ "notNull": true,
3819
+ "default": "now()"
3820
+ },
3821
+ "updated_at": {
3822
+ "name": "updated_at",
3823
+ "type": "timestamp with time zone",
3824
+ "primaryKey": false,
3825
+ "notNull": true,
3826
+ "default": "now()"
3827
+ }
3828
+ },
3829
+ "indexes": {
3830
+ "users_email_key": {
3831
+ "name": "users_email_key",
3832
+ "columns": [
3833
+ {
3834
+ "expression": "email",
3835
+ "isExpression": false,
3836
+ "asc": true,
3837
+ "nulls": "last"
3838
+ }
3839
+ ],
3840
+ "isUnique": true,
3841
+ "concurrently": false,
3842
+ "method": "btree",
3843
+ "with": {}
3844
+ }
3845
+ },
3846
+ "foreignKeys": {},
3847
+ "compositePrimaryKeys": {},
3848
+ "uniqueConstraints": {},
3849
+ "policies": {},
3850
+ "checkConstraints": {
3851
+ "users_email_lowercase": {
3852
+ "name": "users_email_lowercase",
3853
+ "value": "\"users\".\"email\" = lower(\"users\".\"email\")"
3854
+ },
3855
+ "users_email_shape": {
3856
+ "name": "users_email_shape",
3857
+ "value": "\"users\".\"email\" ~ '^[^[:space:]@]+@[^[:space:]@]+[.][^[:space:]@]+$'"
3858
+ },
3859
+ "users_name_not_blank": {
3860
+ "name": "users_name_not_blank",
3861
+ "value": "length(btrim(\"users\".\"name\")) > 0"
3862
+ }
3863
+ },
3864
+ "isRLSEnabled": false
3865
+ },
3866
+ "public.workspaces": {
3867
+ "name": "workspaces",
3868
+ "schema": "",
3869
+ "columns": {
3870
+ "id": {
3871
+ "name": "id",
3872
+ "type": "uuid",
3873
+ "primaryKey": true,
3874
+ "notNull": true,
3875
+ "default": "gen_random_uuid()"
3876
+ },
3877
+ "slug": {
3878
+ "name": "slug",
3879
+ "type": "text",
3880
+ "primaryKey": false,
3881
+ "notNull": true
3882
+ },
3883
+ "name": {
3884
+ "name": "name",
3885
+ "type": "text",
3886
+ "primaryKey": false,
3887
+ "notNull": true
3888
+ },
3889
+ "created_at": {
3890
+ "name": "created_at",
3891
+ "type": "timestamp with time zone",
3892
+ "primaryKey": false,
3893
+ "notNull": true,
3894
+ "default": "now()"
3895
+ },
3896
+ "updated_at": {
3897
+ "name": "updated_at",
3898
+ "type": "timestamp with time zone",
3899
+ "primaryKey": false,
3900
+ "notNull": true,
3901
+ "default": "now()"
3902
+ }
3903
+ },
3904
+ "indexes": {
3905
+ "workspaces_slug_key": {
3906
+ "name": "workspaces_slug_key",
3907
+ "columns": [
3908
+ {
3909
+ "expression": "slug",
3910
+ "isExpression": false,
3911
+ "asc": true,
3912
+ "nulls": "last"
3913
+ }
3914
+ ],
3915
+ "isUnique": true,
3916
+ "concurrently": false,
3917
+ "method": "btree",
3918
+ "with": {}
3919
+ }
3920
+ },
3921
+ "foreignKeys": {},
3922
+ "compositePrimaryKeys": {},
3923
+ "uniqueConstraints": {},
3924
+ "policies": {},
3925
+ "checkConstraints": {
3926
+ "workspaces_slug_format": {
3927
+ "name": "workspaces_slug_format",
3928
+ "value": "\"workspaces\".\"slug\" ~ '^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$'"
3929
+ },
3930
+ "workspaces_name_not_blank": {
3931
+ "name": "workspaces_name_not_blank",
3932
+ "value": "length(btrim(\"workspaces\".\"name\")) > 0"
3933
+ }
3934
+ },
3935
+ "isRLSEnabled": false
3936
+ }
3937
+ },
3938
+ "enums": {},
3939
+ "schemas": {},
3940
+ "sequences": {},
3941
+ "roles": {},
3942
+ "policies": {},
3943
+ "views": {},
3944
+ "_meta": {
3945
+ "columns": {},
3946
+ "schemas": {},
3947
+ "tables": {}
3948
+ }
3949
+ }