devchain-cli 0.9.2 → 0.10.1

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 (314) hide show
  1. package/README.md +61 -27
  2. package/dist/cli.js +985 -194
  3. package/dist/drizzle/0044_supreme_joshua_kane.sql +57 -0
  4. package/dist/drizzle/0045_provider_auto_compact_threshold.sql +11 -0
  5. package/dist/drizzle/0046_worktrees_owner_project_id.sql +3 -0
  6. package/dist/drizzle/meta/0044_snapshot.json +4620 -0
  7. package/dist/drizzle/meta/_journal.json +22 -1
  8. package/dist/node_modules/@devchain/shared/schemas/export-schema.d.ts +18 -0
  9. package/dist/node_modules/@devchain/shared/schemas/export-schema.d.ts.map +1 -1
  10. package/dist/node_modules/@devchain/shared/schemas/export-schema.js +6 -0
  11. package/dist/node_modules/@devchain/shared/schemas/export-schema.js.map +1 -1
  12. package/dist/node_modules/@devchain/shared/tsconfig.tsbuildinfo +1 -1
  13. package/dist/server/app.main.module.d.ts +4 -0
  14. package/dist/server/app.main.module.js +102 -0
  15. package/dist/server/app.main.module.js.map +1 -0
  16. package/dist/server/app.module.d.ts +1 -4
  17. package/dist/server/app.module.js +2 -78
  18. package/dist/server/app.module.js.map +1 -1
  19. package/dist/server/app.normal.module.d.ts +4 -0
  20. package/dist/server/app.normal.module.js +90 -0
  21. package/dist/server/app.normal.module.js.map +1 -0
  22. package/dist/server/common/config/env.config.d.ts +81 -1
  23. package/dist/server/common/config/env.config.js +52 -2
  24. package/dist/server/common/config/env.config.js.map +1 -1
  25. package/dist/server/common/templates-directory.d.ts +8 -0
  26. package/dist/server/common/templates-directory.js +56 -0
  27. package/dist/server/common/templates-directory.js.map +1 -0
  28. package/dist/server/main.js +58 -7
  29. package/dist/server/main.js.map +1 -1
  30. package/dist/server/modules/chat/dtos/chat.dto.d.ts +2 -2
  31. package/dist/server/modules/core/controllers/health.controller.d.ts +4 -0
  32. package/dist/server/modules/core/controllers/health.controller.js +22 -1
  33. package/dist/server/modules/core/controllers/health.controller.js.map +1 -1
  34. package/dist/server/modules/core/controllers/runtime.controller.d.ts +18 -0
  35. package/dist/server/modules/core/controllers/runtime.controller.js +130 -0
  36. package/dist/server/modules/core/controllers/runtime.controller.js.map +1 -0
  37. package/dist/server/modules/core/core-common.module.d.ts +2 -0
  38. package/dist/server/modules/core/core-common.module.js +24 -0
  39. package/dist/server/modules/core/core-common.module.js.map +1 -0
  40. package/dist/server/modules/core/core-main-health.module.d.ts +2 -0
  41. package/dist/server/modules/core/core-main-health.module.js +32 -0
  42. package/dist/server/modules/core/core-main-health.module.js.map +1 -0
  43. package/dist/server/modules/core/core-normal-health.module.d.ts +2 -0
  44. package/dist/server/modules/core/core-normal-health.module.js +29 -0
  45. package/dist/server/modules/core/core-normal-health.module.js.map +1 -0
  46. package/dist/server/modules/core/core-normal.module.d.ts +2 -0
  47. package/dist/server/modules/core/core-normal.module.js +28 -0
  48. package/dist/server/modules/core/core-normal.module.js.map +1 -0
  49. package/dist/server/modules/core/core.module.js +4 -11
  50. package/dist/server/modules/core/core.module.js.map +1 -1
  51. package/dist/server/modules/core/services/health.service.d.ts +13 -0
  52. package/dist/server/modules/core/services/health.service.js +39 -0
  53. package/dist/server/modules/core/services/health.service.js.map +1 -0
  54. package/dist/server/modules/core/services/main-readiness-checker.service.d.ts +14 -0
  55. package/dist/server/modules/core/services/main-readiness-checker.service.js +82 -0
  56. package/dist/server/modules/core/services/main-readiness-checker.service.js.map +1 -0
  57. package/dist/server/modules/core/services/normal-readiness-checker.service.d.ts +13 -0
  58. package/dist/server/modules/core/services/normal-readiness-checker.service.js +67 -0
  59. package/dist/server/modules/core/services/normal-readiness-checker.service.js.map +1 -0
  60. package/dist/server/modules/core/services/preflight.service.d.ts +1 -0
  61. package/dist/server/modules/core/services/preflight.service.js +18 -1
  62. package/dist/server/modules/core/services/preflight.service.js.map +1 -1
  63. package/dist/server/modules/core/services/provider-mcp-ensure.service.js +8 -0
  64. package/dist/server/modules/core/services/provider-mcp-ensure.service.js.map +1 -1
  65. package/dist/server/modules/epics/epics.module.js +2 -2
  66. package/dist/server/modules/epics/epics.module.js.map +1 -1
  67. package/dist/server/modules/events/catalog/claude.hooks.session.started.d.ts +39 -0
  68. package/dist/server/modules/events/catalog/claude.hooks.session.started.js +20 -0
  69. package/dist/server/modules/events/catalog/claude.hooks.session.started.js.map +1 -0
  70. package/dist/server/modules/events/catalog/epic.created.d.ts +2 -2
  71. package/dist/server/modules/events/catalog/index.d.ts +38 -4
  72. package/dist/server/modules/events/catalog/index.js +2 -0
  73. package/dist/server/modules/events/catalog/index.js.map +1 -1
  74. package/dist/server/modules/events/catalog/terminal.watcher.triggered.d.ts +2 -2
  75. package/dist/server/modules/events/controllers/event-log.controller.d.ts +1 -1
  76. package/dist/server/modules/events/controllers/event-log.controller.js +11 -9
  77. package/dist/server/modules/events/controllers/event-log.controller.js.map +1 -1
  78. package/dist/server/modules/events/dtos/event-log.dto.d.ts +1 -0
  79. package/dist/server/modules/events/events-domain.module.d.ts +2 -0
  80. package/dist/server/modules/events/events-domain.module.js +42 -0
  81. package/dist/server/modules/events/events-domain.module.js.map +1 -0
  82. package/dist/server/modules/events/events-infra.module.d.ts +2 -0
  83. package/dist/server/modules/events/events-infra.module.js +26 -0
  84. package/dist/server/modules/events/events-infra.module.js.map +1 -0
  85. package/dist/server/modules/events/events.module.js +4 -27
  86. package/dist/server/modules/events/events.module.js.map +1 -1
  87. package/dist/server/modules/events/index.d.ts +2 -0
  88. package/dist/server/modules/events/index.js +2 -0
  89. package/dist/server/modules/events/index.js.map +1 -1
  90. package/dist/server/modules/events/services/event-log.service.d.ts +8 -1
  91. package/dist/server/modules/events/services/event-log.service.js +41 -0
  92. package/dist/server/modules/events/services/event-log.service.js.map +1 -1
  93. package/dist/server/modules/events/subscribers/index.js +2 -0
  94. package/dist/server/modules/events/subscribers/index.js.map +1 -1
  95. package/dist/server/modules/events/subscribers/worktree-broadcaster.subscriber.d.ts +8 -0
  96. package/dist/server/modules/events/subscribers/worktree-broadcaster.subscriber.js +48 -0
  97. package/dist/server/modules/events/subscribers/worktree-broadcaster.subscriber.js.map +1 -0
  98. package/dist/server/modules/git/dtos/git.dto.d.ts +1 -1
  99. package/dist/server/modules/guests/guests.module.js +2 -2
  100. package/dist/server/modules/guests/guests.module.js.map +1 -1
  101. package/dist/server/modules/hooks/controllers/hooks.controller.d.ts +7 -0
  102. package/dist/server/modules/hooks/controllers/hooks.controller.js +49 -0
  103. package/dist/server/modules/hooks/controllers/hooks.controller.js.map +1 -0
  104. package/dist/server/modules/hooks/dtos/hook-event.dto.d.ts +41 -0
  105. package/dist/server/modules/hooks/dtos/hook-event.dto.js +19 -0
  106. package/dist/server/modules/hooks/dtos/hook-event.dto.js.map +1 -0
  107. package/dist/server/modules/hooks/hooks.module.d.ts +2 -0
  108. package/dist/server/modules/hooks/hooks.module.js +27 -0
  109. package/dist/server/modules/hooks/hooks.module.js.map +1 -0
  110. package/dist/server/modules/hooks/services/hooks-config.service.d.ts +5 -0
  111. package/dist/server/modules/hooks/services/hooks-config.service.js +215 -0
  112. package/dist/server/modules/hooks/services/hooks-config.service.js.map +1 -0
  113. package/dist/server/modules/hooks/services/hooks.service.d.ts +11 -0
  114. package/dist/server/modules/hooks/services/hooks.service.js +83 -0
  115. package/dist/server/modules/hooks/services/hooks.service.js.map +1 -0
  116. package/dist/server/modules/mcp/dtos/mcp.dto.d.ts +14 -14
  117. package/dist/server/modules/mcp/mcp.module.js +2 -2
  118. package/dist/server/modules/mcp/mcp.module.js.map +1 -1
  119. package/dist/server/modules/orchestrator/docker/docker.module.d.ts +2 -0
  120. package/dist/server/modules/orchestrator/docker/docker.module.js +22 -0
  121. package/dist/server/modules/orchestrator/docker/docker.module.js.map +1 -0
  122. package/dist/server/modules/orchestrator/docker/index.d.ts +3 -0
  123. package/dist/server/modules/orchestrator/docker/index.js +20 -0
  124. package/dist/server/modules/orchestrator/docker/index.js.map +1 -0
  125. package/dist/server/modules/orchestrator/docker/services/docker.service.d.ts +85 -0
  126. package/dist/server/modules/orchestrator/docker/services/docker.service.js +745 -0
  127. package/dist/server/modules/orchestrator/docker/services/docker.service.js.map +1 -0
  128. package/dist/server/modules/orchestrator/docker/services/seed-preparation.service.d.ts +11 -0
  129. package/dist/server/modules/orchestrator/docker/services/seed-preparation.service.js +181 -0
  130. package/dist/server/modules/orchestrator/docker/services/seed-preparation.service.js.map +1 -0
  131. package/dist/server/modules/orchestrator/git/controllers/git.controller.d.ts +8 -0
  132. package/dist/server/modules/orchestrator/git/controllers/git.controller.js +38 -0
  133. package/dist/server/modules/orchestrator/git/controllers/git.controller.js.map +1 -0
  134. package/dist/server/modules/orchestrator/git/git.module.d.ts +2 -0
  135. package/dist/server/modules/orchestrator/git/git.module.js +23 -0
  136. package/dist/server/modules/orchestrator/git/git.module.js.map +1 -0
  137. package/dist/server/modules/orchestrator/git/index.d.ts +3 -0
  138. package/dist/server/modules/orchestrator/git/index.js +20 -0
  139. package/dist/server/modules/orchestrator/git/index.js.map +1 -0
  140. package/dist/server/modules/orchestrator/git/services/git-worktree.service.d.ts +83 -0
  141. package/dist/server/modules/orchestrator/git/services/git-worktree.service.js +474 -0
  142. package/dist/server/modules/orchestrator/git/services/git-worktree.service.js.map +1 -0
  143. package/dist/server/modules/orchestrator/index.d.ts +6 -0
  144. package/dist/server/modules/orchestrator/index.js +23 -0
  145. package/dist/server/modules/orchestrator/index.js.map +1 -0
  146. package/dist/server/modules/orchestrator/orchestrator-storage/db/index.d.ts +1 -0
  147. package/dist/server/modules/orchestrator/orchestrator-storage/db/index.js +18 -0
  148. package/dist/server/modules/orchestrator/orchestrator-storage/db/index.js.map +1 -0
  149. package/dist/server/modules/orchestrator/orchestrator-storage/db/orchestrator.provider.d.ts +5 -0
  150. package/dist/server/modules/orchestrator/orchestrator-storage/db/orchestrator.provider.js +10 -0
  151. package/dist/server/modules/orchestrator/orchestrator-storage/db/orchestrator.provider.js.map +1 -0
  152. package/dist/server/modules/orchestrator/orchestrator-storage/index.d.ts +2 -0
  153. package/dist/server/modules/orchestrator/orchestrator-storage/index.js +19 -0
  154. package/dist/server/modules/orchestrator/orchestrator-storage/index.js.map +1 -0
  155. package/dist/server/modules/orchestrator/orchestrator-storage/orchestrator-storage.module.d.ts +2 -0
  156. package/dist/server/modules/orchestrator/orchestrator-storage/orchestrator-storage.module.js +23 -0
  157. package/dist/server/modules/orchestrator/orchestrator-storage/orchestrator-storage.module.js.map +1 -0
  158. package/dist/server/modules/orchestrator/proxy/index.d.ts +2 -0
  159. package/dist/server/modules/orchestrator/proxy/index.js +19 -0
  160. package/dist/server/modules/orchestrator/proxy/index.js.map +1 -0
  161. package/dist/server/modules/orchestrator/proxy/orchestrator-proxy.module.d.ts +2 -0
  162. package/dist/server/modules/orchestrator/proxy/orchestrator-proxy.module.js +22 -0
  163. package/dist/server/modules/orchestrator/proxy/orchestrator-proxy.module.js.map +1 -0
  164. package/dist/server/modules/orchestrator/proxy/services/orchestrator-proxy.service.d.ts +18 -0
  165. package/dist/server/modules/orchestrator/proxy/services/orchestrator-proxy.service.js +192 -0
  166. package/dist/server/modules/orchestrator/proxy/services/orchestrator-proxy.service.js.map +1 -0
  167. package/dist/server/modules/orchestrator/sync/controllers/overview.controller.d.ts +9 -0
  168. package/dist/server/modules/orchestrator/sync/controllers/overview.controller.js +66 -0
  169. package/dist/server/modules/orchestrator/sync/controllers/overview.controller.js.map +1 -0
  170. package/dist/server/modules/orchestrator/sync/dtos/overview.dto.d.ts +52 -0
  171. package/dist/server/modules/orchestrator/sync/dtos/overview.dto.js +3 -0
  172. package/dist/server/modules/orchestrator/sync/dtos/overview.dto.js.map +1 -0
  173. package/dist/server/modules/orchestrator/sync/dtos/task-merge.dto.d.ts +5 -0
  174. package/dist/server/modules/orchestrator/sync/dtos/task-merge.dto.js +3 -0
  175. package/dist/server/modules/orchestrator/sync/dtos/task-merge.dto.js.map +1 -0
  176. package/dist/server/modules/orchestrator/sync/events/task-merge.events.d.ts +4 -0
  177. package/dist/server/modules/orchestrator/sync/events/task-merge.events.js +5 -0
  178. package/dist/server/modules/orchestrator/sync/events/task-merge.events.js.map +1 -0
  179. package/dist/server/modules/orchestrator/sync/index.d.ts +7 -0
  180. package/dist/server/modules/orchestrator/sync/index.js +24 -0
  181. package/dist/server/modules/orchestrator/sync/index.js.map +1 -0
  182. package/dist/server/modules/orchestrator/sync/services/lazy-fetch.service.d.ts +31 -0
  183. package/dist/server/modules/orchestrator/sync/services/lazy-fetch.service.js +410 -0
  184. package/dist/server/modules/orchestrator/sync/services/lazy-fetch.service.js.map +1 -0
  185. package/dist/server/modules/orchestrator/sync/services/task-merge.service.d.ts +44 -0
  186. package/dist/server/modules/orchestrator/sync/services/task-merge.service.js +730 -0
  187. package/dist/server/modules/orchestrator/sync/services/task-merge.service.js.map +1 -0
  188. package/dist/server/modules/orchestrator/sync/sync.module.d.ts +2 -0
  189. package/dist/server/modules/orchestrator/sync/sync.module.js +36 -0
  190. package/dist/server/modules/orchestrator/sync/sync.module.js.map +1 -0
  191. package/dist/server/modules/orchestrator/ui/app/lib/worktrees.d.ts +118 -0
  192. package/dist/server/modules/orchestrator/ui/app/lib/worktrees.js +297 -0
  193. package/dist/server/modules/orchestrator/ui/app/lib/worktrees.js.map +1 -0
  194. package/dist/server/modules/orchestrator/ui/app/orchestrator-app.d.ts +17 -0
  195. package/dist/server/modules/orchestrator/ui/app/orchestrator-app.js +752 -0
  196. package/dist/server/modules/orchestrator/ui/app/orchestrator-app.js.map +1 -0
  197. package/dist/server/modules/orchestrator/worktrees/controllers/templates.controller.d.ts +15 -0
  198. package/dist/server/modules/orchestrator/worktrees/controllers/templates.controller.js +85 -0
  199. package/dist/server/modules/orchestrator/worktrees/controllers/templates.controller.js.map +1 -0
  200. package/dist/server/modules/orchestrator/worktrees/controllers/worktrees.controller.d.ts +29 -0
  201. package/dist/server/modules/orchestrator/worktrees/controllers/worktrees.controller.js +272 -0
  202. package/dist/server/modules/orchestrator/worktrees/controllers/worktrees.controller.js.map +1 -0
  203. package/dist/server/modules/orchestrator/worktrees/dtos/worktree.dto.d.ts +109 -0
  204. package/dist/server/modules/orchestrator/worktrees/dtos/worktree.dto.js +57 -0
  205. package/dist/server/modules/orchestrator/worktrees/dtos/worktree.dto.js.map +1 -0
  206. package/dist/server/modules/orchestrator/worktrees/events/worktree.events.d.ts +4 -0
  207. package/dist/server/modules/orchestrator/worktrees/events/worktree.events.js +5 -0
  208. package/dist/server/modules/orchestrator/worktrees/events/worktree.events.js.map +1 -0
  209. package/dist/server/modules/orchestrator/worktrees/index.d.ts +7 -0
  210. package/dist/server/modules/orchestrator/worktrees/index.js +24 -0
  211. package/dist/server/modules/orchestrator/worktrees/index.js.map +1 -0
  212. package/dist/server/modules/orchestrator/worktrees/local-worktrees.store.d.ts +18 -0
  213. package/dist/server/modules/orchestrator/worktrees/local-worktrees.store.js +198 -0
  214. package/dist/server/modules/orchestrator/worktrees/local-worktrees.store.js.map +1 -0
  215. package/dist/server/modules/orchestrator/worktrees/services/worktrees.service.d.ts +87 -0
  216. package/dist/server/modules/orchestrator/worktrees/services/worktrees.service.js +1380 -0
  217. package/dist/server/modules/orchestrator/worktrees/services/worktrees.service.js.map +1 -0
  218. package/dist/server/modules/orchestrator/worktrees/worktree-validation.d.ts +4 -0
  219. package/dist/server/modules/orchestrator/worktrees/worktree-validation.js +43 -0
  220. package/dist/server/modules/orchestrator/worktrees/worktree-validation.js.map +1 -0
  221. package/dist/server/modules/orchestrator/worktrees/worktrees.module.d.ts +2 -0
  222. package/dist/server/modules/orchestrator/worktrees/worktrees.module.js +44 -0
  223. package/dist/server/modules/orchestrator/worktrees/worktrees.module.js.map +1 -0
  224. package/dist/server/modules/orchestrator/worktrees/worktrees.store.d.ts +38 -0
  225. package/dist/server/modules/orchestrator/worktrees/worktrees.store.js +5 -0
  226. package/dist/server/modules/orchestrator/worktrees/worktrees.store.js.map +1 -0
  227. package/dist/server/modules/profiles/dto.d.ts +4 -4
  228. package/dist/server/modules/projects/controllers/projects.controller.d.ts +13 -3
  229. package/dist/server/modules/projects/controllers/projects.controller.js +55 -7
  230. package/dist/server/modules/projects/controllers/projects.controller.js.map +1 -1
  231. package/dist/server/modules/projects/projects.module.js +3 -2
  232. package/dist/server/modules/projects/projects.module.js.map +1 -1
  233. package/dist/server/modules/projects/services/main-project-bootstrap.service.d.ts +11 -0
  234. package/dist/server/modules/projects/services/main-project-bootstrap.service.js +76 -0
  235. package/dist/server/modules/projects/services/main-project-bootstrap.service.js.map +1 -0
  236. package/dist/server/modules/projects/services/projects.service.d.ts +8 -0
  237. package/dist/server/modules/projects/services/projects.service.js +115 -37
  238. package/dist/server/modules/projects/services/projects.service.js.map +1 -1
  239. package/dist/server/modules/providers/adapters/gemini.adapter.d.ts +1 -1
  240. package/dist/server/modules/providers/adapters/gemini.adapter.js +6 -4
  241. package/dist/server/modules/providers/adapters/gemini.adapter.js.map +1 -1
  242. package/dist/server/modules/providers/controllers/providers.controller.d.ts +3 -0
  243. package/dist/server/modules/providers/controllers/providers.controller.js +28 -0
  244. package/dist/server/modules/providers/controllers/providers.controller.js.map +1 -1
  245. package/dist/server/modules/providers/providers.module.js +2 -2
  246. package/dist/server/modules/providers/providers.module.js.map +1 -1
  247. package/dist/server/modules/registry/services/unified-template.service.js +6 -18
  248. package/dist/server/modules/registry/services/unified-template.service.js.map +1 -1
  249. package/dist/server/modules/reviews/dtos/review.dto.d.ts +4 -4
  250. package/dist/server/modules/reviews/reviews.module.js +2 -2
  251. package/dist/server/modules/reviews/reviews.module.js.map +1 -1
  252. package/dist/server/modules/seeders/seeders/0005_seed_renew_instructions_subscriber.d.ts +3 -0
  253. package/dist/server/modules/seeders/seeders/0005_seed_renew_instructions_subscriber.js +89 -0
  254. package/dist/server/modules/seeders/seeders/0005_seed_renew_instructions_subscriber.js.map +1 -0
  255. package/dist/server/modules/seeders/seeders/0006_seed_rename_template_slugs.d.ts +3 -0
  256. package/dist/server/modules/seeders/seeders/0006_seed_rename_template_slugs.js +60 -0
  257. package/dist/server/modules/seeders/seeders/0006_seed_rename_template_slugs.js.map +1 -0
  258. package/dist/server/modules/seeders/services/data-seeder.service.js +4 -0
  259. package/dist/server/modules/seeders/services/data-seeder.service.js.map +1 -1
  260. package/dist/server/modules/sessions/services/sessions.service.d.ts +3 -1
  261. package/dist/server/modules/sessions/services/sessions.service.js +79 -22
  262. package/dist/server/modules/sessions/services/sessions.service.js.map +1 -1
  263. package/dist/server/modules/sessions/sessions.module.js +6 -4
  264. package/dist/server/modules/sessions/sessions.module.js.map +1 -1
  265. package/dist/server/modules/sessions/utils/claude-config.d.ts +6 -2
  266. package/dist/server/modules/sessions/utils/claude-config.js +19 -6
  267. package/dist/server/modules/sessions/utils/claude-config.js.map +1 -1
  268. package/dist/server/modules/settings/dtos/settings.dto.d.ts +4 -4
  269. package/dist/server/modules/skills/dtos/community-sources.dto.d.ts +2 -2
  270. package/dist/server/modules/skills/dtos/local-sources.dto.d.ts +2 -2
  271. package/dist/server/modules/skills/dtos/skill.dto.d.ts +7 -7
  272. package/dist/server/modules/storage/db/schema.d.ts +811 -0
  273. package/dist/server/modules/storage/db/schema.js +63 -1
  274. package/dist/server/modules/storage/db/schema.js.map +1 -1
  275. package/dist/server/modules/storage/db/sqlite-json.d.ts +2 -0
  276. package/dist/server/modules/storage/db/sqlite-json.js +8 -0
  277. package/dist/server/modules/storage/db/sqlite-json.js.map +1 -0
  278. package/dist/server/modules/storage/interfaces/storage.interface.d.ts +4 -1
  279. package/dist/server/modules/storage/interfaces/storage.interface.js.map +1 -1
  280. package/dist/server/modules/storage/local/local-storage.service.d.ts +1 -1
  281. package/dist/server/modules/storage/local/local-storage.service.js +19 -2
  282. package/dist/server/modules/storage/local/local-storage.service.js.map +1 -1
  283. package/dist/server/modules/storage/models/domain.models.d.ts +2 -0
  284. package/dist/server/modules/subscribers/dtos/subscriber.dto.d.ts +16 -16
  285. package/dist/server/modules/subscribers/events/event-fields-catalog.js +18 -0
  286. package/dist/server/modules/subscribers/events/event-fields-catalog.js.map +1 -1
  287. package/dist/server/modules/subscribers/subscribers.module.js +2 -2
  288. package/dist/server/modules/subscribers/subscribers.module.js.map +1 -1
  289. package/dist/server/modules/terminal/gateways/terminal.gateway.js +7 -2
  290. package/dist/server/modules/terminal/gateways/terminal.gateway.js.map +1 -1
  291. package/dist/server/modules/terminal/services/tmux.service.d.ts +9 -0
  292. package/dist/server/modules/terminal/services/tmux.service.js +55 -5
  293. package/dist/server/modules/terminal/services/tmux.service.js.map +1 -1
  294. package/dist/server/modules/terminal/terminal.module.js +2 -2
  295. package/dist/server/modules/terminal/terminal.module.js.map +1 -1
  296. package/dist/server/modules/watchers/watchers.module.js +2 -2
  297. package/dist/server/modules/watchers/watchers.module.js.map +1 -1
  298. package/dist/server/templates/3-agents-dev.json +662 -0
  299. package/dist/server/templates/{dev-loop.json → 5-agents-dev.json} +174 -100
  300. package/dist/server/test-setup.js +7 -0
  301. package/dist/server/test-setup.js.map +1 -1
  302. package/dist/server/tsconfig.tsbuildinfo +1 -1
  303. package/dist/server/ui/assets/ReviewDetailPage-CZZQtaY7.js +1 -0
  304. package/dist/server/ui/assets/{ReviewsPage-MKT-vv59.js → ReviewsPage-C209GLQG.js} +1 -1
  305. package/dist/server/ui/assets/index-DvRuLfpZ.css +32 -0
  306. package/dist/server/ui/assets/index-Th1FDtKR.js +977 -0
  307. package/dist/server/ui/assets/{useReviewSubscription-Dc58i6Bk.js → useReviewSubscription-Dcabsa78.js} +1 -1
  308. package/dist/server/ui/index.html +2 -2
  309. package/dist/templates/3-agents-dev.json +662 -0
  310. package/dist/templates/{dev-loop.json → 5-agents-dev.json} +174 -100
  311. package/package.json +18 -1
  312. package/dist/server/ui/assets/ReviewDetailPage-BvSckWKj.js +0 -6
  313. package/dist/server/ui/assets/index-BtUq-Qxb.css +0 -32
  314. package/dist/server/ui/assets/index-kTb634Zp.js +0 -945
@@ -0,0 +1,4620 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c9f9088d-2cd2-4110-a85b-9e9808cd34ae",
5
+ "prevId": "9b20161e-dd3e-4bc3-8b02-abe0042004b4",
6
+ "tables": {
7
+ "agent_profile_prompts": {
8
+ "name": "agent_profile_prompts",
9
+ "columns": {
10
+ "profile_id": {
11
+ "name": "profile_id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "prompt_id": {
18
+ "name": "prompt_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "created_at": {
25
+ "name": "created_at",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ }
31
+ },
32
+ "indexes": {},
33
+ "foreignKeys": {
34
+ "agent_profile_prompts_profile_id_agent_profiles_id_fk": {
35
+ "name": "agent_profile_prompts_profile_id_agent_profiles_id_fk",
36
+ "tableFrom": "agent_profile_prompts",
37
+ "tableTo": "agent_profiles",
38
+ "columnsFrom": [
39
+ "profile_id"
40
+ ],
41
+ "columnsTo": [
42
+ "id"
43
+ ],
44
+ "onDelete": "cascade",
45
+ "onUpdate": "no action"
46
+ },
47
+ "agent_profile_prompts_prompt_id_prompts_id_fk": {
48
+ "name": "agent_profile_prompts_prompt_id_prompts_id_fk",
49
+ "tableFrom": "agent_profile_prompts",
50
+ "tableTo": "prompts",
51
+ "columnsFrom": [
52
+ "prompt_id"
53
+ ],
54
+ "columnsTo": [
55
+ "id"
56
+ ],
57
+ "onDelete": "cascade",
58
+ "onUpdate": "no action"
59
+ }
60
+ },
61
+ "compositePrimaryKeys": {},
62
+ "uniqueConstraints": {},
63
+ "checkConstraints": {}
64
+ },
65
+ "agent_profiles": {
66
+ "name": "agent_profiles",
67
+ "columns": {
68
+ "id": {
69
+ "name": "id",
70
+ "type": "text",
71
+ "primaryKey": true,
72
+ "notNull": true,
73
+ "autoincrement": false
74
+ },
75
+ "project_id": {
76
+ "name": "project_id",
77
+ "type": "text",
78
+ "primaryKey": false,
79
+ "notNull": false,
80
+ "autoincrement": false
81
+ },
82
+ "name": {
83
+ "name": "name",
84
+ "type": "text",
85
+ "primaryKey": false,
86
+ "notNull": true,
87
+ "autoincrement": false
88
+ },
89
+ "family_slug": {
90
+ "name": "family_slug",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": false,
94
+ "autoincrement": false
95
+ },
96
+ "system_prompt": {
97
+ "name": "system_prompt",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": false,
101
+ "autoincrement": false
102
+ },
103
+ "instructions": {
104
+ "name": "instructions",
105
+ "type": "text",
106
+ "primaryKey": false,
107
+ "notNull": false,
108
+ "autoincrement": false
109
+ },
110
+ "temperature": {
111
+ "name": "temperature",
112
+ "type": "integer",
113
+ "primaryKey": false,
114
+ "notNull": false,
115
+ "autoincrement": false
116
+ },
117
+ "max_tokens": {
118
+ "name": "max_tokens",
119
+ "type": "integer",
120
+ "primaryKey": false,
121
+ "notNull": false,
122
+ "autoincrement": false
123
+ },
124
+ "created_at": {
125
+ "name": "created_at",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "autoincrement": false
130
+ },
131
+ "updated_at": {
132
+ "name": "updated_at",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true,
136
+ "autoincrement": false
137
+ }
138
+ },
139
+ "indexes": {
140
+ "agent_profiles_project_name_unique": {
141
+ "name": "agent_profiles_project_name_unique",
142
+ "columns": [
143
+ "project_id",
144
+ "name"
145
+ ],
146
+ "isUnique": true
147
+ },
148
+ "agent_profiles_family_unique": {
149
+ "name": "agent_profiles_family_unique",
150
+ "columns": [
151
+ "project_id",
152
+ "family_slug"
153
+ ],
154
+ "isUnique": true,
155
+ "where": "\"agent_profiles\".\"family_slug\" IS NOT NULL"
156
+ }
157
+ },
158
+ "foreignKeys": {
159
+ "agent_profiles_project_id_projects_id_fk": {
160
+ "name": "agent_profiles_project_id_projects_id_fk",
161
+ "tableFrom": "agent_profiles",
162
+ "tableTo": "projects",
163
+ "columnsFrom": [
164
+ "project_id"
165
+ ],
166
+ "columnsTo": [
167
+ "id"
168
+ ],
169
+ "onDelete": "cascade",
170
+ "onUpdate": "no action"
171
+ }
172
+ },
173
+ "compositePrimaryKeys": {},
174
+ "uniqueConstraints": {},
175
+ "checkConstraints": {}
176
+ },
177
+ "agents": {
178
+ "name": "agents",
179
+ "columns": {
180
+ "id": {
181
+ "name": "id",
182
+ "type": "text",
183
+ "primaryKey": true,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ },
187
+ "project_id": {
188
+ "name": "project_id",
189
+ "type": "text",
190
+ "primaryKey": false,
191
+ "notNull": true,
192
+ "autoincrement": false
193
+ },
194
+ "profile_id": {
195
+ "name": "profile_id",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": true,
199
+ "autoincrement": false
200
+ },
201
+ "provider_config_id": {
202
+ "name": "provider_config_id",
203
+ "type": "text",
204
+ "primaryKey": false,
205
+ "notNull": true,
206
+ "autoincrement": false
207
+ },
208
+ "name": {
209
+ "name": "name",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": true,
213
+ "autoincrement": false
214
+ },
215
+ "description": {
216
+ "name": "description",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": false,
220
+ "autoincrement": false
221
+ },
222
+ "created_at": {
223
+ "name": "created_at",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": true,
227
+ "autoincrement": false
228
+ },
229
+ "updated_at": {
230
+ "name": "updated_at",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": true,
234
+ "autoincrement": false
235
+ }
236
+ },
237
+ "indexes": {},
238
+ "foreignKeys": {
239
+ "agents_project_id_projects_id_fk": {
240
+ "name": "agents_project_id_projects_id_fk",
241
+ "tableFrom": "agents",
242
+ "tableTo": "projects",
243
+ "columnsFrom": [
244
+ "project_id"
245
+ ],
246
+ "columnsTo": [
247
+ "id"
248
+ ],
249
+ "onDelete": "cascade",
250
+ "onUpdate": "no action"
251
+ },
252
+ "agents_profile_id_agent_profiles_id_fk": {
253
+ "name": "agents_profile_id_agent_profiles_id_fk",
254
+ "tableFrom": "agents",
255
+ "tableTo": "agent_profiles",
256
+ "columnsFrom": [
257
+ "profile_id"
258
+ ],
259
+ "columnsTo": [
260
+ "id"
261
+ ],
262
+ "onDelete": "no action",
263
+ "onUpdate": "no action"
264
+ },
265
+ "agents_provider_config_id_profile_provider_configs_id_fk": {
266
+ "name": "agents_provider_config_id_profile_provider_configs_id_fk",
267
+ "tableFrom": "agents",
268
+ "tableTo": "profile_provider_configs",
269
+ "columnsFrom": [
270
+ "provider_config_id"
271
+ ],
272
+ "columnsTo": [
273
+ "id"
274
+ ],
275
+ "onDelete": "restrict",
276
+ "onUpdate": "no action"
277
+ }
278
+ },
279
+ "compositePrimaryKeys": {},
280
+ "uniqueConstraints": {},
281
+ "checkConstraints": {}
282
+ },
283
+ "api_keys": {
284
+ "name": "api_keys",
285
+ "columns": {
286
+ "id": {
287
+ "name": "id",
288
+ "type": "text",
289
+ "primaryKey": true,
290
+ "notNull": true,
291
+ "autoincrement": false
292
+ },
293
+ "user_id": {
294
+ "name": "user_id",
295
+ "type": "text",
296
+ "primaryKey": false,
297
+ "notNull": true,
298
+ "autoincrement": false
299
+ },
300
+ "key_hash": {
301
+ "name": "key_hash",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "autoincrement": false
306
+ },
307
+ "name": {
308
+ "name": "name",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "last_used_at": {
315
+ "name": "last_used_at",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false,
319
+ "autoincrement": false
320
+ },
321
+ "created_at": {
322
+ "name": "created_at",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": true,
326
+ "autoincrement": false
327
+ },
328
+ "updated_at": {
329
+ "name": "updated_at",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": true,
333
+ "autoincrement": false
334
+ }
335
+ },
336
+ "indexes": {},
337
+ "foreignKeys": {
338
+ "api_keys_user_id_users_id_fk": {
339
+ "name": "api_keys_user_id_users_id_fk",
340
+ "tableFrom": "api_keys",
341
+ "tableTo": "users",
342
+ "columnsFrom": [
343
+ "user_id"
344
+ ],
345
+ "columnsTo": [
346
+ "id"
347
+ ],
348
+ "onDelete": "cascade",
349
+ "onUpdate": "no action"
350
+ }
351
+ },
352
+ "compositePrimaryKeys": {},
353
+ "uniqueConstraints": {},
354
+ "checkConstraints": {}
355
+ },
356
+ "automation_subscribers": {
357
+ "name": "automation_subscribers",
358
+ "columns": {
359
+ "id": {
360
+ "name": "id",
361
+ "type": "text",
362
+ "primaryKey": true,
363
+ "notNull": true,
364
+ "autoincrement": false
365
+ },
366
+ "project_id": {
367
+ "name": "project_id",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": true,
371
+ "autoincrement": false
372
+ },
373
+ "name": {
374
+ "name": "name",
375
+ "type": "text",
376
+ "primaryKey": false,
377
+ "notNull": true,
378
+ "autoincrement": false
379
+ },
380
+ "description": {
381
+ "name": "description",
382
+ "type": "text",
383
+ "primaryKey": false,
384
+ "notNull": false,
385
+ "autoincrement": false
386
+ },
387
+ "enabled": {
388
+ "name": "enabled",
389
+ "type": "integer",
390
+ "primaryKey": false,
391
+ "notNull": true,
392
+ "autoincrement": false,
393
+ "default": true
394
+ },
395
+ "event_name": {
396
+ "name": "event_name",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": true,
400
+ "autoincrement": false
401
+ },
402
+ "event_filter": {
403
+ "name": "event_filter",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false,
407
+ "autoincrement": false
408
+ },
409
+ "action_type": {
410
+ "name": "action_type",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "autoincrement": false
415
+ },
416
+ "action_inputs": {
417
+ "name": "action_inputs",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false
422
+ },
423
+ "delay_ms": {
424
+ "name": "delay_ms",
425
+ "type": "integer",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "autoincrement": false,
429
+ "default": 0
430
+ },
431
+ "cooldown_ms": {
432
+ "name": "cooldown_ms",
433
+ "type": "integer",
434
+ "primaryKey": false,
435
+ "notNull": true,
436
+ "autoincrement": false,
437
+ "default": 5000
438
+ },
439
+ "retry_on_error": {
440
+ "name": "retry_on_error",
441
+ "type": "integer",
442
+ "primaryKey": false,
443
+ "notNull": true,
444
+ "autoincrement": false,
445
+ "default": false
446
+ },
447
+ "group_name": {
448
+ "name": "group_name",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": false,
452
+ "autoincrement": false
453
+ },
454
+ "position": {
455
+ "name": "position",
456
+ "type": "integer",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "autoincrement": false,
460
+ "default": 0
461
+ },
462
+ "priority": {
463
+ "name": "priority",
464
+ "type": "integer",
465
+ "primaryKey": false,
466
+ "notNull": true,
467
+ "autoincrement": false,
468
+ "default": 0
469
+ },
470
+ "created_at": {
471
+ "name": "created_at",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "autoincrement": false
476
+ },
477
+ "updated_at": {
478
+ "name": "updated_at",
479
+ "type": "text",
480
+ "primaryKey": false,
481
+ "notNull": true,
482
+ "autoincrement": false
483
+ }
484
+ },
485
+ "indexes": {
486
+ "automation_subscribers_project_id_idx": {
487
+ "name": "automation_subscribers_project_id_idx",
488
+ "columns": [
489
+ "project_id"
490
+ ],
491
+ "isUnique": false
492
+ },
493
+ "automation_subscribers_event_name_idx": {
494
+ "name": "automation_subscribers_event_name_idx",
495
+ "columns": [
496
+ "event_name"
497
+ ],
498
+ "isUnique": false
499
+ },
500
+ "automation_subscribers_enabled_idx": {
501
+ "name": "automation_subscribers_enabled_idx",
502
+ "columns": [
503
+ "enabled"
504
+ ],
505
+ "isUnique": false
506
+ }
507
+ },
508
+ "foreignKeys": {
509
+ "automation_subscribers_project_id_projects_id_fk": {
510
+ "name": "automation_subscribers_project_id_projects_id_fk",
511
+ "tableFrom": "automation_subscribers",
512
+ "tableTo": "projects",
513
+ "columnsFrom": [
514
+ "project_id"
515
+ ],
516
+ "columnsTo": [
517
+ "id"
518
+ ],
519
+ "onDelete": "cascade",
520
+ "onUpdate": "no action"
521
+ }
522
+ },
523
+ "compositePrimaryKeys": {},
524
+ "uniqueConstraints": {},
525
+ "checkConstraints": {}
526
+ },
527
+ "chat_activities": {
528
+ "name": "chat_activities",
529
+ "columns": {
530
+ "id": {
531
+ "name": "id",
532
+ "type": "text",
533
+ "primaryKey": true,
534
+ "notNull": true,
535
+ "autoincrement": false
536
+ },
537
+ "thread_id": {
538
+ "name": "thread_id",
539
+ "type": "text",
540
+ "primaryKey": false,
541
+ "notNull": true,
542
+ "autoincrement": false
543
+ },
544
+ "agent_id": {
545
+ "name": "agent_id",
546
+ "type": "text",
547
+ "primaryKey": false,
548
+ "notNull": true,
549
+ "autoincrement": false
550
+ },
551
+ "title": {
552
+ "name": "title",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "status": {
559
+ "name": "status",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "started_at": {
566
+ "name": "started_at",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true,
570
+ "autoincrement": false
571
+ },
572
+ "finished_at": {
573
+ "name": "finished_at",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": false,
577
+ "autoincrement": false
578
+ },
579
+ "start_message_id": {
580
+ "name": "start_message_id",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": false,
584
+ "autoincrement": false
585
+ },
586
+ "finish_message_id": {
587
+ "name": "finish_message_id",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": false,
591
+ "autoincrement": false
592
+ }
593
+ },
594
+ "indexes": {
595
+ "chat_activities_thread_agent_idx": {
596
+ "name": "chat_activities_thread_agent_idx",
597
+ "columns": [
598
+ "thread_id",
599
+ "agent_id"
600
+ ],
601
+ "isUnique": false
602
+ },
603
+ "chat_activities_started_at_idx": {
604
+ "name": "chat_activities_started_at_idx",
605
+ "columns": [
606
+ "started_at"
607
+ ],
608
+ "isUnique": false
609
+ }
610
+ },
611
+ "foreignKeys": {
612
+ "chat_activities_thread_id_chat_threads_id_fk": {
613
+ "name": "chat_activities_thread_id_chat_threads_id_fk",
614
+ "tableFrom": "chat_activities",
615
+ "tableTo": "chat_threads",
616
+ "columnsFrom": [
617
+ "thread_id"
618
+ ],
619
+ "columnsTo": [
620
+ "id"
621
+ ],
622
+ "onDelete": "cascade",
623
+ "onUpdate": "no action"
624
+ },
625
+ "chat_activities_agent_id_agents_id_fk": {
626
+ "name": "chat_activities_agent_id_agents_id_fk",
627
+ "tableFrom": "chat_activities",
628
+ "tableTo": "agents",
629
+ "columnsFrom": [
630
+ "agent_id"
631
+ ],
632
+ "columnsTo": [
633
+ "id"
634
+ ],
635
+ "onDelete": "cascade",
636
+ "onUpdate": "no action"
637
+ },
638
+ "chat_activities_start_message_id_chat_messages_id_fk": {
639
+ "name": "chat_activities_start_message_id_chat_messages_id_fk",
640
+ "tableFrom": "chat_activities",
641
+ "tableTo": "chat_messages",
642
+ "columnsFrom": [
643
+ "start_message_id"
644
+ ],
645
+ "columnsTo": [
646
+ "id"
647
+ ],
648
+ "onDelete": "set null",
649
+ "onUpdate": "no action"
650
+ },
651
+ "chat_activities_finish_message_id_chat_messages_id_fk": {
652
+ "name": "chat_activities_finish_message_id_chat_messages_id_fk",
653
+ "tableFrom": "chat_activities",
654
+ "tableTo": "chat_messages",
655
+ "columnsFrom": [
656
+ "finish_message_id"
657
+ ],
658
+ "columnsTo": [
659
+ "id"
660
+ ],
661
+ "onDelete": "set null",
662
+ "onUpdate": "no action"
663
+ }
664
+ },
665
+ "compositePrimaryKeys": {},
666
+ "uniqueConstraints": {},
667
+ "checkConstraints": {}
668
+ },
669
+ "chat_members": {
670
+ "name": "chat_members",
671
+ "columns": {
672
+ "thread_id": {
673
+ "name": "thread_id",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": true,
677
+ "autoincrement": false
678
+ },
679
+ "agent_id": {
680
+ "name": "agent_id",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": true,
684
+ "autoincrement": false
685
+ },
686
+ "created_at": {
687
+ "name": "created_at",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ }
693
+ },
694
+ "indexes": {},
695
+ "foreignKeys": {
696
+ "chat_members_thread_id_chat_threads_id_fk": {
697
+ "name": "chat_members_thread_id_chat_threads_id_fk",
698
+ "tableFrom": "chat_members",
699
+ "tableTo": "chat_threads",
700
+ "columnsFrom": [
701
+ "thread_id"
702
+ ],
703
+ "columnsTo": [
704
+ "id"
705
+ ],
706
+ "onDelete": "cascade",
707
+ "onUpdate": "no action"
708
+ },
709
+ "chat_members_agent_id_agents_id_fk": {
710
+ "name": "chat_members_agent_id_agents_id_fk",
711
+ "tableFrom": "chat_members",
712
+ "tableTo": "agents",
713
+ "columnsFrom": [
714
+ "agent_id"
715
+ ],
716
+ "columnsTo": [
717
+ "id"
718
+ ],
719
+ "onDelete": "cascade",
720
+ "onUpdate": "no action"
721
+ }
722
+ },
723
+ "compositePrimaryKeys": {},
724
+ "uniqueConstraints": {},
725
+ "checkConstraints": {}
726
+ },
727
+ "chat_message_reads": {
728
+ "name": "chat_message_reads",
729
+ "columns": {
730
+ "message_id": {
731
+ "name": "message_id",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "autoincrement": false
736
+ },
737
+ "agent_id": {
738
+ "name": "agent_id",
739
+ "type": "text",
740
+ "primaryKey": false,
741
+ "notNull": true,
742
+ "autoincrement": false
743
+ },
744
+ "read_at": {
745
+ "name": "read_at",
746
+ "type": "text",
747
+ "primaryKey": false,
748
+ "notNull": true,
749
+ "autoincrement": false
750
+ }
751
+ },
752
+ "indexes": {
753
+ "chat_message_reads_pk": {
754
+ "name": "chat_message_reads_pk",
755
+ "columns": [
756
+ "message_id",
757
+ "agent_id"
758
+ ],
759
+ "isUnique": true
760
+ },
761
+ "chat_message_reads_message_id_idx": {
762
+ "name": "chat_message_reads_message_id_idx",
763
+ "columns": [
764
+ "message_id"
765
+ ],
766
+ "isUnique": false
767
+ },
768
+ "chat_message_reads_agent_id_idx": {
769
+ "name": "chat_message_reads_agent_id_idx",
770
+ "columns": [
771
+ "agent_id"
772
+ ],
773
+ "isUnique": false
774
+ }
775
+ },
776
+ "foreignKeys": {
777
+ "chat_message_reads_message_id_chat_messages_id_fk": {
778
+ "name": "chat_message_reads_message_id_chat_messages_id_fk",
779
+ "tableFrom": "chat_message_reads",
780
+ "tableTo": "chat_messages",
781
+ "columnsFrom": [
782
+ "message_id"
783
+ ],
784
+ "columnsTo": [
785
+ "id"
786
+ ],
787
+ "onDelete": "cascade",
788
+ "onUpdate": "no action"
789
+ },
790
+ "chat_message_reads_agent_id_agents_id_fk": {
791
+ "name": "chat_message_reads_agent_id_agents_id_fk",
792
+ "tableFrom": "chat_message_reads",
793
+ "tableTo": "agents",
794
+ "columnsFrom": [
795
+ "agent_id"
796
+ ],
797
+ "columnsTo": [
798
+ "id"
799
+ ],
800
+ "onDelete": "cascade",
801
+ "onUpdate": "no action"
802
+ }
803
+ },
804
+ "compositePrimaryKeys": {},
805
+ "uniqueConstraints": {},
806
+ "checkConstraints": {}
807
+ },
808
+ "chat_message_targets": {
809
+ "name": "chat_message_targets",
810
+ "columns": {
811
+ "id": {
812
+ "name": "id",
813
+ "type": "text",
814
+ "primaryKey": true,
815
+ "notNull": true,
816
+ "autoincrement": false
817
+ },
818
+ "message_id": {
819
+ "name": "message_id",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true,
823
+ "autoincrement": false
824
+ },
825
+ "agent_id": {
826
+ "name": "agent_id",
827
+ "type": "text",
828
+ "primaryKey": false,
829
+ "notNull": true,
830
+ "autoincrement": false
831
+ },
832
+ "created_at": {
833
+ "name": "created_at",
834
+ "type": "text",
835
+ "primaryKey": false,
836
+ "notNull": true,
837
+ "autoincrement": false
838
+ }
839
+ },
840
+ "indexes": {},
841
+ "foreignKeys": {
842
+ "chat_message_targets_message_id_chat_messages_id_fk": {
843
+ "name": "chat_message_targets_message_id_chat_messages_id_fk",
844
+ "tableFrom": "chat_message_targets",
845
+ "tableTo": "chat_messages",
846
+ "columnsFrom": [
847
+ "message_id"
848
+ ],
849
+ "columnsTo": [
850
+ "id"
851
+ ],
852
+ "onDelete": "cascade",
853
+ "onUpdate": "no action"
854
+ },
855
+ "chat_message_targets_agent_id_agents_id_fk": {
856
+ "name": "chat_message_targets_agent_id_agents_id_fk",
857
+ "tableFrom": "chat_message_targets",
858
+ "tableTo": "agents",
859
+ "columnsFrom": [
860
+ "agent_id"
861
+ ],
862
+ "columnsTo": [
863
+ "id"
864
+ ],
865
+ "onDelete": "cascade",
866
+ "onUpdate": "no action"
867
+ }
868
+ },
869
+ "compositePrimaryKeys": {},
870
+ "uniqueConstraints": {},
871
+ "checkConstraints": {}
872
+ },
873
+ "chat_messages": {
874
+ "name": "chat_messages",
875
+ "columns": {
876
+ "id": {
877
+ "name": "id",
878
+ "type": "text",
879
+ "primaryKey": true,
880
+ "notNull": true,
881
+ "autoincrement": false
882
+ },
883
+ "thread_id": {
884
+ "name": "thread_id",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false
889
+ },
890
+ "author_type": {
891
+ "name": "author_type",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true,
895
+ "autoincrement": false
896
+ },
897
+ "author_agent_id": {
898
+ "name": "author_agent_id",
899
+ "type": "text",
900
+ "primaryKey": false,
901
+ "notNull": false,
902
+ "autoincrement": false
903
+ },
904
+ "content": {
905
+ "name": "content",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": true,
909
+ "autoincrement": false
910
+ },
911
+ "created_at": {
912
+ "name": "created_at",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": true,
916
+ "autoincrement": false
917
+ }
918
+ },
919
+ "indexes": {
920
+ "chat_messages_thread_id_idx": {
921
+ "name": "chat_messages_thread_id_idx",
922
+ "columns": [
923
+ "thread_id"
924
+ ],
925
+ "isUnique": false
926
+ },
927
+ "chat_messages_created_at_idx": {
928
+ "name": "chat_messages_created_at_idx",
929
+ "columns": [
930
+ "created_at"
931
+ ],
932
+ "isUnique": false
933
+ }
934
+ },
935
+ "foreignKeys": {
936
+ "chat_messages_thread_id_chat_threads_id_fk": {
937
+ "name": "chat_messages_thread_id_chat_threads_id_fk",
938
+ "tableFrom": "chat_messages",
939
+ "tableTo": "chat_threads",
940
+ "columnsFrom": [
941
+ "thread_id"
942
+ ],
943
+ "columnsTo": [
944
+ "id"
945
+ ],
946
+ "onDelete": "cascade",
947
+ "onUpdate": "no action"
948
+ },
949
+ "chat_messages_author_agent_id_agents_id_fk": {
950
+ "name": "chat_messages_author_agent_id_agents_id_fk",
951
+ "tableFrom": "chat_messages",
952
+ "tableTo": "agents",
953
+ "columnsFrom": [
954
+ "author_agent_id"
955
+ ],
956
+ "columnsTo": [
957
+ "id"
958
+ ],
959
+ "onDelete": "set null",
960
+ "onUpdate": "no action"
961
+ }
962
+ },
963
+ "compositePrimaryKeys": {},
964
+ "uniqueConstraints": {},
965
+ "checkConstraints": {}
966
+ },
967
+ "chat_thread_session_invites": {
968
+ "name": "chat_thread_session_invites",
969
+ "columns": {
970
+ "id": {
971
+ "name": "id",
972
+ "type": "text",
973
+ "primaryKey": true,
974
+ "notNull": true,
975
+ "autoincrement": false
976
+ },
977
+ "thread_id": {
978
+ "name": "thread_id",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "autoincrement": false
983
+ },
984
+ "agent_id": {
985
+ "name": "agent_id",
986
+ "type": "text",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "autoincrement": false
990
+ },
991
+ "session_id": {
992
+ "name": "session_id",
993
+ "type": "text",
994
+ "primaryKey": false,
995
+ "notNull": true,
996
+ "autoincrement": false
997
+ },
998
+ "invite_message_id": {
999
+ "name": "invite_message_id",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false
1004
+ },
1005
+ "sent_at": {
1006
+ "name": "sent_at",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "autoincrement": false
1011
+ },
1012
+ "acknowledged_at": {
1013
+ "name": "acknowledged_at",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": false,
1017
+ "autoincrement": false
1018
+ }
1019
+ },
1020
+ "indexes": {
1021
+ "chat_thread_session_invites_unique": {
1022
+ "name": "chat_thread_session_invites_unique",
1023
+ "columns": [
1024
+ "thread_id",
1025
+ "agent_id",
1026
+ "session_id"
1027
+ ],
1028
+ "isUnique": true
1029
+ },
1030
+ "chat_thread_session_invites_thread_agent_idx": {
1031
+ "name": "chat_thread_session_invites_thread_agent_idx",
1032
+ "columns": [
1033
+ "thread_id",
1034
+ "agent_id"
1035
+ ],
1036
+ "isUnique": false
1037
+ }
1038
+ },
1039
+ "foreignKeys": {
1040
+ "chat_thread_session_invites_thread_id_chat_threads_id_fk": {
1041
+ "name": "chat_thread_session_invites_thread_id_chat_threads_id_fk",
1042
+ "tableFrom": "chat_thread_session_invites",
1043
+ "tableTo": "chat_threads",
1044
+ "columnsFrom": [
1045
+ "thread_id"
1046
+ ],
1047
+ "columnsTo": [
1048
+ "id"
1049
+ ],
1050
+ "onDelete": "cascade",
1051
+ "onUpdate": "no action"
1052
+ },
1053
+ "chat_thread_session_invites_agent_id_agents_id_fk": {
1054
+ "name": "chat_thread_session_invites_agent_id_agents_id_fk",
1055
+ "tableFrom": "chat_thread_session_invites",
1056
+ "tableTo": "agents",
1057
+ "columnsFrom": [
1058
+ "agent_id"
1059
+ ],
1060
+ "columnsTo": [
1061
+ "id"
1062
+ ],
1063
+ "onDelete": "cascade",
1064
+ "onUpdate": "no action"
1065
+ },
1066
+ "chat_thread_session_invites_invite_message_id_chat_messages_id_fk": {
1067
+ "name": "chat_thread_session_invites_invite_message_id_chat_messages_id_fk",
1068
+ "tableFrom": "chat_thread_session_invites",
1069
+ "tableTo": "chat_messages",
1070
+ "columnsFrom": [
1071
+ "invite_message_id"
1072
+ ],
1073
+ "columnsTo": [
1074
+ "id"
1075
+ ],
1076
+ "onDelete": "cascade",
1077
+ "onUpdate": "no action"
1078
+ }
1079
+ },
1080
+ "compositePrimaryKeys": {},
1081
+ "uniqueConstraints": {},
1082
+ "checkConstraints": {}
1083
+ },
1084
+ "chat_threads": {
1085
+ "name": "chat_threads",
1086
+ "columns": {
1087
+ "id": {
1088
+ "name": "id",
1089
+ "type": "text",
1090
+ "primaryKey": true,
1091
+ "notNull": true,
1092
+ "autoincrement": false
1093
+ },
1094
+ "project_id": {
1095
+ "name": "project_id",
1096
+ "type": "text",
1097
+ "primaryKey": false,
1098
+ "notNull": true,
1099
+ "autoincrement": false
1100
+ },
1101
+ "title": {
1102
+ "name": "title",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": false,
1106
+ "autoincrement": false
1107
+ },
1108
+ "is_group": {
1109
+ "name": "is_group",
1110
+ "type": "integer",
1111
+ "primaryKey": false,
1112
+ "notNull": true,
1113
+ "autoincrement": false,
1114
+ "default": false
1115
+ },
1116
+ "created_by_type": {
1117
+ "name": "created_by_type",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": true,
1121
+ "autoincrement": false
1122
+ },
1123
+ "created_by_user_id": {
1124
+ "name": "created_by_user_id",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": false,
1128
+ "autoincrement": false
1129
+ },
1130
+ "created_by_agent_id": {
1131
+ "name": "created_by_agent_id",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": false,
1135
+ "autoincrement": false
1136
+ },
1137
+ "last_user_cleared_at": {
1138
+ "name": "last_user_cleared_at",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": false,
1142
+ "autoincrement": false
1143
+ },
1144
+ "created_at": {
1145
+ "name": "created_at",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": true,
1149
+ "autoincrement": false
1150
+ },
1151
+ "updated_at": {
1152
+ "name": "updated_at",
1153
+ "type": "text",
1154
+ "primaryKey": false,
1155
+ "notNull": true,
1156
+ "autoincrement": false
1157
+ }
1158
+ },
1159
+ "indexes": {},
1160
+ "foreignKeys": {
1161
+ "chat_threads_project_id_projects_id_fk": {
1162
+ "name": "chat_threads_project_id_projects_id_fk",
1163
+ "tableFrom": "chat_threads",
1164
+ "tableTo": "projects",
1165
+ "columnsFrom": [
1166
+ "project_id"
1167
+ ],
1168
+ "columnsTo": [
1169
+ "id"
1170
+ ],
1171
+ "onDelete": "cascade",
1172
+ "onUpdate": "no action"
1173
+ }
1174
+ },
1175
+ "compositePrimaryKeys": {},
1176
+ "uniqueConstraints": {},
1177
+ "checkConstraints": {}
1178
+ },
1179
+ "community_skill_sources": {
1180
+ "name": "community_skill_sources",
1181
+ "columns": {
1182
+ "id": {
1183
+ "name": "id",
1184
+ "type": "text",
1185
+ "primaryKey": true,
1186
+ "notNull": true,
1187
+ "autoincrement": false
1188
+ },
1189
+ "name": {
1190
+ "name": "name",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": true,
1194
+ "autoincrement": false
1195
+ },
1196
+ "repo_owner": {
1197
+ "name": "repo_owner",
1198
+ "type": "text",
1199
+ "primaryKey": false,
1200
+ "notNull": true,
1201
+ "autoincrement": false
1202
+ },
1203
+ "repo_name": {
1204
+ "name": "repo_name",
1205
+ "type": "text",
1206
+ "primaryKey": false,
1207
+ "notNull": true,
1208
+ "autoincrement": false
1209
+ },
1210
+ "branch": {
1211
+ "name": "branch",
1212
+ "type": "text",
1213
+ "primaryKey": false,
1214
+ "notNull": true,
1215
+ "autoincrement": false,
1216
+ "default": "'main'"
1217
+ },
1218
+ "created_at": {
1219
+ "name": "created_at",
1220
+ "type": "text",
1221
+ "primaryKey": false,
1222
+ "notNull": true,
1223
+ "autoincrement": false
1224
+ },
1225
+ "updated_at": {
1226
+ "name": "updated_at",
1227
+ "type": "text",
1228
+ "primaryKey": false,
1229
+ "notNull": true,
1230
+ "autoincrement": false
1231
+ }
1232
+ },
1233
+ "indexes": {
1234
+ "community_skill_sources_name_unique": {
1235
+ "name": "community_skill_sources_name_unique",
1236
+ "columns": [
1237
+ "name"
1238
+ ],
1239
+ "isUnique": true
1240
+ },
1241
+ "community_skill_sources_repo_owner_repo_name_unique": {
1242
+ "name": "community_skill_sources_repo_owner_repo_name_unique",
1243
+ "columns": [
1244
+ "repo_owner",
1245
+ "repo_name"
1246
+ ],
1247
+ "isUnique": true
1248
+ }
1249
+ },
1250
+ "foreignKeys": {},
1251
+ "compositePrimaryKeys": {},
1252
+ "uniqueConstraints": {},
1253
+ "checkConstraints": {}
1254
+ },
1255
+ "companies": {
1256
+ "name": "companies",
1257
+ "columns": {
1258
+ "id": {
1259
+ "name": "id",
1260
+ "type": "text",
1261
+ "primaryKey": true,
1262
+ "notNull": true,
1263
+ "autoincrement": false
1264
+ },
1265
+ "name": {
1266
+ "name": "name",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "created_at": {
1273
+ "name": "created_at",
1274
+ "type": "text",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false
1278
+ },
1279
+ "updated_at": {
1280
+ "name": "updated_at",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false
1285
+ }
1286
+ },
1287
+ "indexes": {},
1288
+ "foreignKeys": {},
1289
+ "compositePrimaryKeys": {},
1290
+ "uniqueConstraints": {},
1291
+ "checkConstraints": {}
1292
+ },
1293
+ "document_tags": {
1294
+ "name": "document_tags",
1295
+ "columns": {
1296
+ "document_id": {
1297
+ "name": "document_id",
1298
+ "type": "text",
1299
+ "primaryKey": false,
1300
+ "notNull": true,
1301
+ "autoincrement": false
1302
+ },
1303
+ "tag_id": {
1304
+ "name": "tag_id",
1305
+ "type": "text",
1306
+ "primaryKey": false,
1307
+ "notNull": true,
1308
+ "autoincrement": false
1309
+ }
1310
+ },
1311
+ "indexes": {},
1312
+ "foreignKeys": {
1313
+ "document_tags_document_id_documents_id_fk": {
1314
+ "name": "document_tags_document_id_documents_id_fk",
1315
+ "tableFrom": "document_tags",
1316
+ "tableTo": "documents",
1317
+ "columnsFrom": [
1318
+ "document_id"
1319
+ ],
1320
+ "columnsTo": [
1321
+ "id"
1322
+ ],
1323
+ "onDelete": "cascade",
1324
+ "onUpdate": "no action"
1325
+ },
1326
+ "document_tags_tag_id_tags_id_fk": {
1327
+ "name": "document_tags_tag_id_tags_id_fk",
1328
+ "tableFrom": "document_tags",
1329
+ "tableTo": "tags",
1330
+ "columnsFrom": [
1331
+ "tag_id"
1332
+ ],
1333
+ "columnsTo": [
1334
+ "id"
1335
+ ],
1336
+ "onDelete": "cascade",
1337
+ "onUpdate": "no action"
1338
+ }
1339
+ },
1340
+ "compositePrimaryKeys": {},
1341
+ "uniqueConstraints": {},
1342
+ "checkConstraints": {}
1343
+ },
1344
+ "documents": {
1345
+ "name": "documents",
1346
+ "columns": {
1347
+ "id": {
1348
+ "name": "id",
1349
+ "type": "text",
1350
+ "primaryKey": true,
1351
+ "notNull": true,
1352
+ "autoincrement": false
1353
+ },
1354
+ "project_id": {
1355
+ "name": "project_id",
1356
+ "type": "text",
1357
+ "primaryKey": false,
1358
+ "notNull": false,
1359
+ "autoincrement": false
1360
+ },
1361
+ "title": {
1362
+ "name": "title",
1363
+ "type": "text",
1364
+ "primaryKey": false,
1365
+ "notNull": true,
1366
+ "autoincrement": false
1367
+ },
1368
+ "slug": {
1369
+ "name": "slug",
1370
+ "type": "text",
1371
+ "primaryKey": false,
1372
+ "notNull": true,
1373
+ "autoincrement": false
1374
+ },
1375
+ "content_md": {
1376
+ "name": "content_md",
1377
+ "type": "text",
1378
+ "primaryKey": false,
1379
+ "notNull": true,
1380
+ "autoincrement": false
1381
+ },
1382
+ "version": {
1383
+ "name": "version",
1384
+ "type": "integer",
1385
+ "primaryKey": false,
1386
+ "notNull": true,
1387
+ "autoincrement": false,
1388
+ "default": 1
1389
+ },
1390
+ "archived": {
1391
+ "name": "archived",
1392
+ "type": "integer",
1393
+ "primaryKey": false,
1394
+ "notNull": true,
1395
+ "autoincrement": false,
1396
+ "default": false
1397
+ },
1398
+ "created_at": {
1399
+ "name": "created_at",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": true,
1403
+ "autoincrement": false
1404
+ },
1405
+ "updated_at": {
1406
+ "name": "updated_at",
1407
+ "type": "text",
1408
+ "primaryKey": false,
1409
+ "notNull": true,
1410
+ "autoincrement": false
1411
+ }
1412
+ },
1413
+ "indexes": {
1414
+ "documents_project_slug_unique": {
1415
+ "name": "documents_project_slug_unique",
1416
+ "columns": [
1417
+ "project_id",
1418
+ "slug"
1419
+ ],
1420
+ "isUnique": true
1421
+ }
1422
+ },
1423
+ "foreignKeys": {
1424
+ "documents_project_id_projects_id_fk": {
1425
+ "name": "documents_project_id_projects_id_fk",
1426
+ "tableFrom": "documents",
1427
+ "tableTo": "projects",
1428
+ "columnsFrom": [
1429
+ "project_id"
1430
+ ],
1431
+ "columnsTo": [
1432
+ "id"
1433
+ ],
1434
+ "onDelete": "cascade",
1435
+ "onUpdate": "no action"
1436
+ }
1437
+ },
1438
+ "compositePrimaryKeys": {},
1439
+ "uniqueConstraints": {},
1440
+ "checkConstraints": {}
1441
+ },
1442
+ "epic_comments": {
1443
+ "name": "epic_comments",
1444
+ "columns": {
1445
+ "id": {
1446
+ "name": "id",
1447
+ "type": "text",
1448
+ "primaryKey": true,
1449
+ "notNull": true,
1450
+ "autoincrement": false
1451
+ },
1452
+ "epic_id": {
1453
+ "name": "epic_id",
1454
+ "type": "text",
1455
+ "primaryKey": false,
1456
+ "notNull": true,
1457
+ "autoincrement": false
1458
+ },
1459
+ "author_name": {
1460
+ "name": "author_name",
1461
+ "type": "text",
1462
+ "primaryKey": false,
1463
+ "notNull": true,
1464
+ "autoincrement": false
1465
+ },
1466
+ "content": {
1467
+ "name": "content",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": true,
1471
+ "autoincrement": false
1472
+ },
1473
+ "created_at": {
1474
+ "name": "created_at",
1475
+ "type": "text",
1476
+ "primaryKey": false,
1477
+ "notNull": true,
1478
+ "autoincrement": false
1479
+ },
1480
+ "updated_at": {
1481
+ "name": "updated_at",
1482
+ "type": "text",
1483
+ "primaryKey": false,
1484
+ "notNull": true,
1485
+ "autoincrement": false
1486
+ }
1487
+ },
1488
+ "indexes": {
1489
+ "epic_comments_epic_id_created_at_idx": {
1490
+ "name": "epic_comments_epic_id_created_at_idx",
1491
+ "columns": [
1492
+ "epic_id",
1493
+ "created_at"
1494
+ ],
1495
+ "isUnique": false
1496
+ }
1497
+ },
1498
+ "foreignKeys": {
1499
+ "epic_comments_epic_id_epics_id_fk": {
1500
+ "name": "epic_comments_epic_id_epics_id_fk",
1501
+ "tableFrom": "epic_comments",
1502
+ "tableTo": "epics",
1503
+ "columnsFrom": [
1504
+ "epic_id"
1505
+ ],
1506
+ "columnsTo": [
1507
+ "id"
1508
+ ],
1509
+ "onDelete": "cascade",
1510
+ "onUpdate": "no action"
1511
+ }
1512
+ },
1513
+ "compositePrimaryKeys": {},
1514
+ "uniqueConstraints": {},
1515
+ "checkConstraints": {}
1516
+ },
1517
+ "epic_tags": {
1518
+ "name": "epic_tags",
1519
+ "columns": {
1520
+ "epic_id": {
1521
+ "name": "epic_id",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": true,
1525
+ "autoincrement": false
1526
+ },
1527
+ "tag_id": {
1528
+ "name": "tag_id",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "autoincrement": false
1533
+ },
1534
+ "created_at": {
1535
+ "name": "created_at",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "autoincrement": false
1540
+ }
1541
+ },
1542
+ "indexes": {},
1543
+ "foreignKeys": {
1544
+ "epic_tags_epic_id_epics_id_fk": {
1545
+ "name": "epic_tags_epic_id_epics_id_fk",
1546
+ "tableFrom": "epic_tags",
1547
+ "tableTo": "epics",
1548
+ "columnsFrom": [
1549
+ "epic_id"
1550
+ ],
1551
+ "columnsTo": [
1552
+ "id"
1553
+ ],
1554
+ "onDelete": "cascade",
1555
+ "onUpdate": "no action"
1556
+ },
1557
+ "epic_tags_tag_id_tags_id_fk": {
1558
+ "name": "epic_tags_tag_id_tags_id_fk",
1559
+ "tableFrom": "epic_tags",
1560
+ "tableTo": "tags",
1561
+ "columnsFrom": [
1562
+ "tag_id"
1563
+ ],
1564
+ "columnsTo": [
1565
+ "id"
1566
+ ],
1567
+ "onDelete": "cascade",
1568
+ "onUpdate": "no action"
1569
+ }
1570
+ },
1571
+ "compositePrimaryKeys": {},
1572
+ "uniqueConstraints": {},
1573
+ "checkConstraints": {}
1574
+ },
1575
+ "epics": {
1576
+ "name": "epics",
1577
+ "columns": {
1578
+ "id": {
1579
+ "name": "id",
1580
+ "type": "text",
1581
+ "primaryKey": true,
1582
+ "notNull": true,
1583
+ "autoincrement": false
1584
+ },
1585
+ "project_id": {
1586
+ "name": "project_id",
1587
+ "type": "text",
1588
+ "primaryKey": false,
1589
+ "notNull": true,
1590
+ "autoincrement": false
1591
+ },
1592
+ "title": {
1593
+ "name": "title",
1594
+ "type": "text",
1595
+ "primaryKey": false,
1596
+ "notNull": true,
1597
+ "autoincrement": false
1598
+ },
1599
+ "description": {
1600
+ "name": "description",
1601
+ "type": "text",
1602
+ "primaryKey": false,
1603
+ "notNull": false,
1604
+ "autoincrement": false
1605
+ },
1606
+ "status_id": {
1607
+ "name": "status_id",
1608
+ "type": "text",
1609
+ "primaryKey": false,
1610
+ "notNull": true,
1611
+ "autoincrement": false
1612
+ },
1613
+ "parent_id": {
1614
+ "name": "parent_id",
1615
+ "type": "text",
1616
+ "primaryKey": false,
1617
+ "notNull": false,
1618
+ "autoincrement": false
1619
+ },
1620
+ "agent_id": {
1621
+ "name": "agent_id",
1622
+ "type": "text",
1623
+ "primaryKey": false,
1624
+ "notNull": false,
1625
+ "autoincrement": false
1626
+ },
1627
+ "version": {
1628
+ "name": "version",
1629
+ "type": "integer",
1630
+ "primaryKey": false,
1631
+ "notNull": true,
1632
+ "autoincrement": false,
1633
+ "default": 1
1634
+ },
1635
+ "data": {
1636
+ "name": "data",
1637
+ "type": "text",
1638
+ "primaryKey": false,
1639
+ "notNull": false,
1640
+ "autoincrement": false
1641
+ },
1642
+ "skills_required": {
1643
+ "name": "skills_required",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": false,
1647
+ "autoincrement": false
1648
+ },
1649
+ "created_at": {
1650
+ "name": "created_at",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ },
1656
+ "updated_at": {
1657
+ "name": "updated_at",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false
1662
+ }
1663
+ },
1664
+ "indexes": {
1665
+ "epics_parent_id_idx": {
1666
+ "name": "epics_parent_id_idx",
1667
+ "columns": [
1668
+ "parent_id"
1669
+ ],
1670
+ "isUnique": false
1671
+ },
1672
+ "epics_agent_id_idx": {
1673
+ "name": "epics_agent_id_idx",
1674
+ "columns": [
1675
+ "agent_id"
1676
+ ],
1677
+ "isUnique": false
1678
+ }
1679
+ },
1680
+ "foreignKeys": {
1681
+ "epics_project_id_projects_id_fk": {
1682
+ "name": "epics_project_id_projects_id_fk",
1683
+ "tableFrom": "epics",
1684
+ "tableTo": "projects",
1685
+ "columnsFrom": [
1686
+ "project_id"
1687
+ ],
1688
+ "columnsTo": [
1689
+ "id"
1690
+ ],
1691
+ "onDelete": "cascade",
1692
+ "onUpdate": "no action"
1693
+ },
1694
+ "epics_status_id_statuses_id_fk": {
1695
+ "name": "epics_status_id_statuses_id_fk",
1696
+ "tableFrom": "epics",
1697
+ "tableTo": "statuses",
1698
+ "columnsFrom": [
1699
+ "status_id"
1700
+ ],
1701
+ "columnsTo": [
1702
+ "id"
1703
+ ],
1704
+ "onDelete": "no action",
1705
+ "onUpdate": "no action"
1706
+ },
1707
+ "epics_parent_id_fk": {
1708
+ "name": "epics_parent_id_fk",
1709
+ "tableFrom": "epics",
1710
+ "tableTo": "epics",
1711
+ "columnsFrom": [
1712
+ "parent_id"
1713
+ ],
1714
+ "columnsTo": [
1715
+ "id"
1716
+ ],
1717
+ "onDelete": "no action",
1718
+ "onUpdate": "no action"
1719
+ },
1720
+ "epics_agent_id_fk": {
1721
+ "name": "epics_agent_id_fk",
1722
+ "tableFrom": "epics",
1723
+ "tableTo": "agents",
1724
+ "columnsFrom": [
1725
+ "agent_id"
1726
+ ],
1727
+ "columnsTo": [
1728
+ "id"
1729
+ ],
1730
+ "onDelete": "no action",
1731
+ "onUpdate": "no action"
1732
+ }
1733
+ },
1734
+ "compositePrimaryKeys": {},
1735
+ "uniqueConstraints": {},
1736
+ "checkConstraints": {}
1737
+ },
1738
+ "event_handlers": {
1739
+ "name": "event_handlers",
1740
+ "columns": {
1741
+ "id": {
1742
+ "name": "id",
1743
+ "type": "text",
1744
+ "primaryKey": true,
1745
+ "notNull": true,
1746
+ "autoincrement": false
1747
+ },
1748
+ "event_id": {
1749
+ "name": "event_id",
1750
+ "type": "text",
1751
+ "primaryKey": false,
1752
+ "notNull": true,
1753
+ "autoincrement": false
1754
+ },
1755
+ "handler": {
1756
+ "name": "handler",
1757
+ "type": "text",
1758
+ "primaryKey": false,
1759
+ "notNull": true,
1760
+ "autoincrement": false
1761
+ },
1762
+ "status": {
1763
+ "name": "status",
1764
+ "type": "text",
1765
+ "primaryKey": false,
1766
+ "notNull": true,
1767
+ "autoincrement": false
1768
+ },
1769
+ "detail": {
1770
+ "name": "detail",
1771
+ "type": "text",
1772
+ "primaryKey": false,
1773
+ "notNull": false,
1774
+ "autoincrement": false
1775
+ },
1776
+ "started_at": {
1777
+ "name": "started_at",
1778
+ "type": "text",
1779
+ "primaryKey": false,
1780
+ "notNull": true,
1781
+ "autoincrement": false
1782
+ },
1783
+ "ended_at": {
1784
+ "name": "ended_at",
1785
+ "type": "text",
1786
+ "primaryKey": false,
1787
+ "notNull": false,
1788
+ "autoincrement": false
1789
+ }
1790
+ },
1791
+ "indexes": {
1792
+ "event_handlers_event_id_idx": {
1793
+ "name": "event_handlers_event_id_idx",
1794
+ "columns": [
1795
+ "event_id"
1796
+ ],
1797
+ "isUnique": false
1798
+ },
1799
+ "event_handlers_handler_idx": {
1800
+ "name": "event_handlers_handler_idx",
1801
+ "columns": [
1802
+ "handler"
1803
+ ],
1804
+ "isUnique": false
1805
+ },
1806
+ "event_handlers_status_idx": {
1807
+ "name": "event_handlers_status_idx",
1808
+ "columns": [
1809
+ "status"
1810
+ ],
1811
+ "isUnique": false
1812
+ }
1813
+ },
1814
+ "foreignKeys": {
1815
+ "event_handlers_event_id_events_id_fk": {
1816
+ "name": "event_handlers_event_id_events_id_fk",
1817
+ "tableFrom": "event_handlers",
1818
+ "tableTo": "events",
1819
+ "columnsFrom": [
1820
+ "event_id"
1821
+ ],
1822
+ "columnsTo": [
1823
+ "id"
1824
+ ],
1825
+ "onDelete": "cascade",
1826
+ "onUpdate": "no action"
1827
+ }
1828
+ },
1829
+ "compositePrimaryKeys": {},
1830
+ "uniqueConstraints": {},
1831
+ "checkConstraints": {}
1832
+ },
1833
+ "events": {
1834
+ "name": "events",
1835
+ "columns": {
1836
+ "id": {
1837
+ "name": "id",
1838
+ "type": "text",
1839
+ "primaryKey": true,
1840
+ "notNull": true,
1841
+ "autoincrement": false
1842
+ },
1843
+ "name": {
1844
+ "name": "name",
1845
+ "type": "text",
1846
+ "primaryKey": false,
1847
+ "notNull": true,
1848
+ "autoincrement": false
1849
+ },
1850
+ "payload_json": {
1851
+ "name": "payload_json",
1852
+ "type": "text",
1853
+ "primaryKey": false,
1854
+ "notNull": true,
1855
+ "autoincrement": false
1856
+ },
1857
+ "request_id": {
1858
+ "name": "request_id",
1859
+ "type": "text",
1860
+ "primaryKey": false,
1861
+ "notNull": false,
1862
+ "autoincrement": false
1863
+ },
1864
+ "published_at": {
1865
+ "name": "published_at",
1866
+ "type": "text",
1867
+ "primaryKey": false,
1868
+ "notNull": true,
1869
+ "autoincrement": false
1870
+ }
1871
+ },
1872
+ "indexes": {
1873
+ "events_name_idx": {
1874
+ "name": "events_name_idx",
1875
+ "columns": [
1876
+ "name"
1877
+ ],
1878
+ "isUnique": false
1879
+ },
1880
+ "events_published_at_idx": {
1881
+ "name": "events_published_at_idx",
1882
+ "columns": [
1883
+ "published_at"
1884
+ ],
1885
+ "isUnique": false
1886
+ }
1887
+ },
1888
+ "foreignKeys": {},
1889
+ "compositePrimaryKeys": {},
1890
+ "uniqueConstraints": {},
1891
+ "checkConstraints": {}
1892
+ },
1893
+ "guests": {
1894
+ "name": "guests",
1895
+ "columns": {
1896
+ "id": {
1897
+ "name": "id",
1898
+ "type": "text",
1899
+ "primaryKey": true,
1900
+ "notNull": true,
1901
+ "autoincrement": false
1902
+ },
1903
+ "project_id": {
1904
+ "name": "project_id",
1905
+ "type": "text",
1906
+ "primaryKey": false,
1907
+ "notNull": true,
1908
+ "autoincrement": false
1909
+ },
1910
+ "name": {
1911
+ "name": "name",
1912
+ "type": "text",
1913
+ "primaryKey": false,
1914
+ "notNull": true,
1915
+ "autoincrement": false
1916
+ },
1917
+ "description": {
1918
+ "name": "description",
1919
+ "type": "text",
1920
+ "primaryKey": false,
1921
+ "notNull": false,
1922
+ "autoincrement": false
1923
+ },
1924
+ "tmux_session_id": {
1925
+ "name": "tmux_session_id",
1926
+ "type": "text",
1927
+ "primaryKey": false,
1928
+ "notNull": true,
1929
+ "autoincrement": false
1930
+ },
1931
+ "last_seen_at": {
1932
+ "name": "last_seen_at",
1933
+ "type": "text",
1934
+ "primaryKey": false,
1935
+ "notNull": true,
1936
+ "autoincrement": false
1937
+ },
1938
+ "created_at": {
1939
+ "name": "created_at",
1940
+ "type": "text",
1941
+ "primaryKey": false,
1942
+ "notNull": true,
1943
+ "autoincrement": false
1944
+ },
1945
+ "updated_at": {
1946
+ "name": "updated_at",
1947
+ "type": "text",
1948
+ "primaryKey": false,
1949
+ "notNull": true,
1950
+ "autoincrement": false
1951
+ }
1952
+ },
1953
+ "indexes": {
1954
+ "guests_project_name_unique": {
1955
+ "name": "guests_project_name_unique",
1956
+ "columns": [
1957
+ "project_id",
1958
+ "\"name\" COLLATE NOCASE"
1959
+ ],
1960
+ "isUnique": true
1961
+ },
1962
+ "guests_tmux_session_id_unique": {
1963
+ "name": "guests_tmux_session_id_unique",
1964
+ "columns": [
1965
+ "tmux_session_id"
1966
+ ],
1967
+ "isUnique": true
1968
+ },
1969
+ "guests_project_id_idx": {
1970
+ "name": "guests_project_id_idx",
1971
+ "columns": [
1972
+ "project_id"
1973
+ ],
1974
+ "isUnique": false
1975
+ }
1976
+ },
1977
+ "foreignKeys": {
1978
+ "guests_project_id_projects_id_fk": {
1979
+ "name": "guests_project_id_projects_id_fk",
1980
+ "tableFrom": "guests",
1981
+ "tableTo": "projects",
1982
+ "columnsFrom": [
1983
+ "project_id"
1984
+ ],
1985
+ "columnsTo": [
1986
+ "id"
1987
+ ],
1988
+ "onDelete": "cascade",
1989
+ "onUpdate": "no action"
1990
+ }
1991
+ },
1992
+ "compositePrimaryKeys": {},
1993
+ "uniqueConstraints": {},
1994
+ "checkConstraints": {}
1995
+ },
1996
+ "local_skill_sources": {
1997
+ "name": "local_skill_sources",
1998
+ "columns": {
1999
+ "id": {
2000
+ "name": "id",
2001
+ "type": "text",
2002
+ "primaryKey": true,
2003
+ "notNull": true,
2004
+ "autoincrement": false
2005
+ },
2006
+ "name": {
2007
+ "name": "name",
2008
+ "type": "text",
2009
+ "primaryKey": false,
2010
+ "notNull": true,
2011
+ "autoincrement": false
2012
+ },
2013
+ "folder_path": {
2014
+ "name": "folder_path",
2015
+ "type": "text",
2016
+ "primaryKey": false,
2017
+ "notNull": true,
2018
+ "autoincrement": false
2019
+ },
2020
+ "created_at": {
2021
+ "name": "created_at",
2022
+ "type": "text",
2023
+ "primaryKey": false,
2024
+ "notNull": true,
2025
+ "autoincrement": false
2026
+ },
2027
+ "updated_at": {
2028
+ "name": "updated_at",
2029
+ "type": "text",
2030
+ "primaryKey": false,
2031
+ "notNull": true,
2032
+ "autoincrement": false
2033
+ }
2034
+ },
2035
+ "indexes": {
2036
+ "local_skill_sources_name_unique": {
2037
+ "name": "local_skill_sources_name_unique",
2038
+ "columns": [
2039
+ "name"
2040
+ ],
2041
+ "isUnique": true
2042
+ },
2043
+ "local_skill_sources_folder_path_unique": {
2044
+ "name": "local_skill_sources_folder_path_unique",
2045
+ "columns": [
2046
+ "folder_path"
2047
+ ],
2048
+ "isUnique": true
2049
+ }
2050
+ },
2051
+ "foreignKeys": {},
2052
+ "compositePrimaryKeys": {},
2053
+ "uniqueConstraints": {},
2054
+ "checkConstraints": {}
2055
+ },
2056
+ "memberships": {
2057
+ "name": "memberships",
2058
+ "columns": {
2059
+ "id": {
2060
+ "name": "id",
2061
+ "type": "text",
2062
+ "primaryKey": true,
2063
+ "notNull": true,
2064
+ "autoincrement": false
2065
+ },
2066
+ "user_id": {
2067
+ "name": "user_id",
2068
+ "type": "text",
2069
+ "primaryKey": false,
2070
+ "notNull": true,
2071
+ "autoincrement": false
2072
+ },
2073
+ "company_id": {
2074
+ "name": "company_id",
2075
+ "type": "text",
2076
+ "primaryKey": false,
2077
+ "notNull": true,
2078
+ "autoincrement": false
2079
+ },
2080
+ "role": {
2081
+ "name": "role",
2082
+ "type": "text",
2083
+ "primaryKey": false,
2084
+ "notNull": true,
2085
+ "autoincrement": false
2086
+ },
2087
+ "created_at": {
2088
+ "name": "created_at",
2089
+ "type": "text",
2090
+ "primaryKey": false,
2091
+ "notNull": true,
2092
+ "autoincrement": false
2093
+ },
2094
+ "updated_at": {
2095
+ "name": "updated_at",
2096
+ "type": "text",
2097
+ "primaryKey": false,
2098
+ "notNull": true,
2099
+ "autoincrement": false
2100
+ }
2101
+ },
2102
+ "indexes": {},
2103
+ "foreignKeys": {
2104
+ "memberships_user_id_users_id_fk": {
2105
+ "name": "memberships_user_id_users_id_fk",
2106
+ "tableFrom": "memberships",
2107
+ "tableTo": "users",
2108
+ "columnsFrom": [
2109
+ "user_id"
2110
+ ],
2111
+ "columnsTo": [
2112
+ "id"
2113
+ ],
2114
+ "onDelete": "cascade",
2115
+ "onUpdate": "no action"
2116
+ },
2117
+ "memberships_company_id_companies_id_fk": {
2118
+ "name": "memberships_company_id_companies_id_fk",
2119
+ "tableFrom": "memberships",
2120
+ "tableTo": "companies",
2121
+ "columnsFrom": [
2122
+ "company_id"
2123
+ ],
2124
+ "columnsTo": [
2125
+ "id"
2126
+ ],
2127
+ "onDelete": "cascade",
2128
+ "onUpdate": "no action"
2129
+ }
2130
+ },
2131
+ "compositePrimaryKeys": {},
2132
+ "uniqueConstraints": {},
2133
+ "checkConstraints": {}
2134
+ },
2135
+ "merged_agents": {
2136
+ "name": "merged_agents",
2137
+ "columns": {
2138
+ "id": {
2139
+ "name": "id",
2140
+ "type": "text",
2141
+ "primaryKey": true,
2142
+ "notNull": true,
2143
+ "autoincrement": false
2144
+ },
2145
+ "worktree_id": {
2146
+ "name": "worktree_id",
2147
+ "type": "text",
2148
+ "primaryKey": false,
2149
+ "notNull": true,
2150
+ "autoincrement": false
2151
+ },
2152
+ "devchain_agent_id": {
2153
+ "name": "devchain_agent_id",
2154
+ "type": "text",
2155
+ "primaryKey": false,
2156
+ "notNull": true,
2157
+ "autoincrement": false
2158
+ },
2159
+ "name": {
2160
+ "name": "name",
2161
+ "type": "text",
2162
+ "primaryKey": false,
2163
+ "notNull": false,
2164
+ "autoincrement": false
2165
+ },
2166
+ "profile_name": {
2167
+ "name": "profile_name",
2168
+ "type": "text",
2169
+ "primaryKey": false,
2170
+ "notNull": false,
2171
+ "autoincrement": false
2172
+ },
2173
+ "epics_completed": {
2174
+ "name": "epics_completed",
2175
+ "type": "integer",
2176
+ "primaryKey": false,
2177
+ "notNull": false,
2178
+ "autoincrement": false,
2179
+ "default": 0
2180
+ },
2181
+ "merged_at": {
2182
+ "name": "merged_at",
2183
+ "type": "text",
2184
+ "primaryKey": false,
2185
+ "notNull": true,
2186
+ "autoincrement": false
2187
+ }
2188
+ },
2189
+ "indexes": {
2190
+ "merged_agents_worktree_id_idx": {
2191
+ "name": "merged_agents_worktree_id_idx",
2192
+ "columns": [
2193
+ "worktree_id"
2194
+ ],
2195
+ "isUnique": false
2196
+ },
2197
+ "merged_agents_worktree_agent_unique": {
2198
+ "name": "merged_agents_worktree_agent_unique",
2199
+ "columns": [
2200
+ "worktree_id",
2201
+ "devchain_agent_id"
2202
+ ],
2203
+ "isUnique": true
2204
+ }
2205
+ },
2206
+ "foreignKeys": {
2207
+ "merged_agents_worktree_id_worktrees_id_fk": {
2208
+ "name": "merged_agents_worktree_id_worktrees_id_fk",
2209
+ "tableFrom": "merged_agents",
2210
+ "tableTo": "worktrees",
2211
+ "columnsFrom": [
2212
+ "worktree_id"
2213
+ ],
2214
+ "columnsTo": [
2215
+ "id"
2216
+ ],
2217
+ "onDelete": "cascade",
2218
+ "onUpdate": "no action"
2219
+ }
2220
+ },
2221
+ "compositePrimaryKeys": {},
2222
+ "uniqueConstraints": {},
2223
+ "checkConstraints": {}
2224
+ },
2225
+ "merged_epics": {
2226
+ "name": "merged_epics",
2227
+ "columns": {
2228
+ "id": {
2229
+ "name": "id",
2230
+ "type": "text",
2231
+ "primaryKey": true,
2232
+ "notNull": true,
2233
+ "autoincrement": false
2234
+ },
2235
+ "worktree_id": {
2236
+ "name": "worktree_id",
2237
+ "type": "text",
2238
+ "primaryKey": false,
2239
+ "notNull": true,
2240
+ "autoincrement": false
2241
+ },
2242
+ "devchain_epic_id": {
2243
+ "name": "devchain_epic_id",
2244
+ "type": "text",
2245
+ "primaryKey": false,
2246
+ "notNull": true,
2247
+ "autoincrement": false
2248
+ },
2249
+ "title": {
2250
+ "name": "title",
2251
+ "type": "text",
2252
+ "primaryKey": false,
2253
+ "notNull": true,
2254
+ "autoincrement": false
2255
+ },
2256
+ "description": {
2257
+ "name": "description",
2258
+ "type": "text",
2259
+ "primaryKey": false,
2260
+ "notNull": false,
2261
+ "autoincrement": false
2262
+ },
2263
+ "status_name": {
2264
+ "name": "status_name",
2265
+ "type": "text",
2266
+ "primaryKey": false,
2267
+ "notNull": false,
2268
+ "autoincrement": false
2269
+ },
2270
+ "status_color": {
2271
+ "name": "status_color",
2272
+ "type": "text",
2273
+ "primaryKey": false,
2274
+ "notNull": false,
2275
+ "autoincrement": false
2276
+ },
2277
+ "agent_name": {
2278
+ "name": "agent_name",
2279
+ "type": "text",
2280
+ "primaryKey": false,
2281
+ "notNull": false,
2282
+ "autoincrement": false
2283
+ },
2284
+ "parent_epic_id": {
2285
+ "name": "parent_epic_id",
2286
+ "type": "text",
2287
+ "primaryKey": false,
2288
+ "notNull": false,
2289
+ "autoincrement": false
2290
+ },
2291
+ "tags": {
2292
+ "name": "tags",
2293
+ "type": "text",
2294
+ "primaryKey": false,
2295
+ "notNull": false,
2296
+ "autoincrement": false,
2297
+ "default": "'[]'"
2298
+ },
2299
+ "created_at_source": {
2300
+ "name": "created_at_source",
2301
+ "type": "text",
2302
+ "primaryKey": false,
2303
+ "notNull": false,
2304
+ "autoincrement": false
2305
+ },
2306
+ "merged_at": {
2307
+ "name": "merged_at",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true,
2311
+ "autoincrement": false
2312
+ }
2313
+ },
2314
+ "indexes": {
2315
+ "merged_epics_worktree_id_idx": {
2316
+ "name": "merged_epics_worktree_id_idx",
2317
+ "columns": [
2318
+ "worktree_id"
2319
+ ],
2320
+ "isUnique": false
2321
+ },
2322
+ "merged_epics_worktree_epic_unique": {
2323
+ "name": "merged_epics_worktree_epic_unique",
2324
+ "columns": [
2325
+ "worktree_id",
2326
+ "devchain_epic_id"
2327
+ ],
2328
+ "isUnique": true
2329
+ }
2330
+ },
2331
+ "foreignKeys": {
2332
+ "merged_epics_worktree_id_worktrees_id_fk": {
2333
+ "name": "merged_epics_worktree_id_worktrees_id_fk",
2334
+ "tableFrom": "merged_epics",
2335
+ "tableTo": "worktrees",
2336
+ "columnsFrom": [
2337
+ "worktree_id"
2338
+ ],
2339
+ "columnsTo": [
2340
+ "id"
2341
+ ],
2342
+ "onDelete": "cascade",
2343
+ "onUpdate": "no action"
2344
+ }
2345
+ },
2346
+ "compositePrimaryKeys": {},
2347
+ "uniqueConstraints": {},
2348
+ "checkConstraints": {}
2349
+ },
2350
+ "profile_provider_configs": {
2351
+ "name": "profile_provider_configs",
2352
+ "columns": {
2353
+ "id": {
2354
+ "name": "id",
2355
+ "type": "text",
2356
+ "primaryKey": true,
2357
+ "notNull": true,
2358
+ "autoincrement": false
2359
+ },
2360
+ "profile_id": {
2361
+ "name": "profile_id",
2362
+ "type": "text",
2363
+ "primaryKey": false,
2364
+ "notNull": true,
2365
+ "autoincrement": false
2366
+ },
2367
+ "provider_id": {
2368
+ "name": "provider_id",
2369
+ "type": "text",
2370
+ "primaryKey": false,
2371
+ "notNull": true,
2372
+ "autoincrement": false
2373
+ },
2374
+ "name": {
2375
+ "name": "name",
2376
+ "type": "text",
2377
+ "primaryKey": false,
2378
+ "notNull": true,
2379
+ "autoincrement": false
2380
+ },
2381
+ "options": {
2382
+ "name": "options",
2383
+ "type": "text",
2384
+ "primaryKey": false,
2385
+ "notNull": false,
2386
+ "autoincrement": false
2387
+ },
2388
+ "env": {
2389
+ "name": "env",
2390
+ "type": "text",
2391
+ "primaryKey": false,
2392
+ "notNull": false,
2393
+ "autoincrement": false
2394
+ },
2395
+ "position": {
2396
+ "name": "position",
2397
+ "type": "integer",
2398
+ "primaryKey": false,
2399
+ "notNull": true,
2400
+ "autoincrement": false,
2401
+ "default": 0
2402
+ },
2403
+ "created_at": {
2404
+ "name": "created_at",
2405
+ "type": "text",
2406
+ "primaryKey": false,
2407
+ "notNull": true,
2408
+ "autoincrement": false
2409
+ },
2410
+ "updated_at": {
2411
+ "name": "updated_at",
2412
+ "type": "text",
2413
+ "primaryKey": false,
2414
+ "notNull": true,
2415
+ "autoincrement": false
2416
+ }
2417
+ },
2418
+ "indexes": {
2419
+ "profile_provider_configs_profile_id_idx": {
2420
+ "name": "profile_provider_configs_profile_id_idx",
2421
+ "columns": [
2422
+ "profile_id"
2423
+ ],
2424
+ "isUnique": false
2425
+ },
2426
+ "profile_provider_configs_provider_id_idx": {
2427
+ "name": "profile_provider_configs_provider_id_idx",
2428
+ "columns": [
2429
+ "provider_id"
2430
+ ],
2431
+ "isUnique": false
2432
+ },
2433
+ "profile_provider_configs_profile_name_idx": {
2434
+ "name": "profile_provider_configs_profile_name_idx",
2435
+ "columns": [
2436
+ "profile_id",
2437
+ "name"
2438
+ ],
2439
+ "isUnique": true
2440
+ },
2441
+ "profile_provider_configs_profile_position_idx": {
2442
+ "name": "profile_provider_configs_profile_position_idx",
2443
+ "columns": [
2444
+ "profile_id",
2445
+ "position"
2446
+ ],
2447
+ "isUnique": true
2448
+ }
2449
+ },
2450
+ "foreignKeys": {
2451
+ "profile_provider_configs_profile_id_agent_profiles_id_fk": {
2452
+ "name": "profile_provider_configs_profile_id_agent_profiles_id_fk",
2453
+ "tableFrom": "profile_provider_configs",
2454
+ "tableTo": "agent_profiles",
2455
+ "columnsFrom": [
2456
+ "profile_id"
2457
+ ],
2458
+ "columnsTo": [
2459
+ "id"
2460
+ ],
2461
+ "onDelete": "cascade",
2462
+ "onUpdate": "no action"
2463
+ },
2464
+ "profile_provider_configs_provider_id_providers_id_fk": {
2465
+ "name": "profile_provider_configs_provider_id_providers_id_fk",
2466
+ "tableFrom": "profile_provider_configs",
2467
+ "tableTo": "providers",
2468
+ "columnsFrom": [
2469
+ "provider_id"
2470
+ ],
2471
+ "columnsTo": [
2472
+ "id"
2473
+ ],
2474
+ "onDelete": "no action",
2475
+ "onUpdate": "no action"
2476
+ }
2477
+ },
2478
+ "compositePrimaryKeys": {},
2479
+ "uniqueConstraints": {},
2480
+ "checkConstraints": {}
2481
+ },
2482
+ "project_paths": {
2483
+ "name": "project_paths",
2484
+ "columns": {
2485
+ "id": {
2486
+ "name": "id",
2487
+ "type": "text",
2488
+ "primaryKey": true,
2489
+ "notNull": true,
2490
+ "autoincrement": false
2491
+ },
2492
+ "path": {
2493
+ "name": "path",
2494
+ "type": "text",
2495
+ "primaryKey": false,
2496
+ "notNull": true,
2497
+ "autoincrement": false
2498
+ },
2499
+ "last_accessed_at": {
2500
+ "name": "last_accessed_at",
2501
+ "type": "text",
2502
+ "primaryKey": false,
2503
+ "notNull": true,
2504
+ "autoincrement": false
2505
+ },
2506
+ "created_at": {
2507
+ "name": "created_at",
2508
+ "type": "text",
2509
+ "primaryKey": false,
2510
+ "notNull": true,
2511
+ "autoincrement": false
2512
+ }
2513
+ },
2514
+ "indexes": {
2515
+ "project_paths_path_unique": {
2516
+ "name": "project_paths_path_unique",
2517
+ "columns": [
2518
+ "path"
2519
+ ],
2520
+ "isUnique": true
2521
+ }
2522
+ },
2523
+ "foreignKeys": {},
2524
+ "compositePrimaryKeys": {},
2525
+ "uniqueConstraints": {},
2526
+ "checkConstraints": {}
2527
+ },
2528
+ "projects": {
2529
+ "name": "projects",
2530
+ "columns": {
2531
+ "id": {
2532
+ "name": "id",
2533
+ "type": "text",
2534
+ "primaryKey": true,
2535
+ "notNull": true,
2536
+ "autoincrement": false
2537
+ },
2538
+ "name": {
2539
+ "name": "name",
2540
+ "type": "text",
2541
+ "primaryKey": false,
2542
+ "notNull": true,
2543
+ "autoincrement": false
2544
+ },
2545
+ "description": {
2546
+ "name": "description",
2547
+ "type": "text",
2548
+ "primaryKey": false,
2549
+ "notNull": false,
2550
+ "autoincrement": false
2551
+ },
2552
+ "root_path": {
2553
+ "name": "root_path",
2554
+ "type": "text",
2555
+ "primaryKey": false,
2556
+ "notNull": true,
2557
+ "autoincrement": false
2558
+ },
2559
+ "is_template": {
2560
+ "name": "is_template",
2561
+ "type": "integer",
2562
+ "primaryKey": false,
2563
+ "notNull": true,
2564
+ "autoincrement": false,
2565
+ "default": false
2566
+ },
2567
+ "is_private": {
2568
+ "name": "is_private",
2569
+ "type": "integer",
2570
+ "primaryKey": false,
2571
+ "notNull": false,
2572
+ "autoincrement": false,
2573
+ "default": false
2574
+ },
2575
+ "owner_user_id": {
2576
+ "name": "owner_user_id",
2577
+ "type": "text",
2578
+ "primaryKey": false,
2579
+ "notNull": false,
2580
+ "autoincrement": false
2581
+ },
2582
+ "created_at": {
2583
+ "name": "created_at",
2584
+ "type": "text",
2585
+ "primaryKey": false,
2586
+ "notNull": true,
2587
+ "autoincrement": false
2588
+ },
2589
+ "updated_at": {
2590
+ "name": "updated_at",
2591
+ "type": "text",
2592
+ "primaryKey": false,
2593
+ "notNull": true,
2594
+ "autoincrement": false
2595
+ }
2596
+ },
2597
+ "indexes": {},
2598
+ "foreignKeys": {},
2599
+ "compositePrimaryKeys": {},
2600
+ "uniqueConstraints": {},
2601
+ "checkConstraints": {}
2602
+ },
2603
+ "prompt_tags": {
2604
+ "name": "prompt_tags",
2605
+ "columns": {
2606
+ "prompt_id": {
2607
+ "name": "prompt_id",
2608
+ "type": "text",
2609
+ "primaryKey": false,
2610
+ "notNull": true,
2611
+ "autoincrement": false
2612
+ },
2613
+ "tag_id": {
2614
+ "name": "tag_id",
2615
+ "type": "text",
2616
+ "primaryKey": false,
2617
+ "notNull": true,
2618
+ "autoincrement": false
2619
+ },
2620
+ "created_at": {
2621
+ "name": "created_at",
2622
+ "type": "text",
2623
+ "primaryKey": false,
2624
+ "notNull": true,
2625
+ "autoincrement": false
2626
+ }
2627
+ },
2628
+ "indexes": {},
2629
+ "foreignKeys": {
2630
+ "prompt_tags_prompt_id_prompts_id_fk": {
2631
+ "name": "prompt_tags_prompt_id_prompts_id_fk",
2632
+ "tableFrom": "prompt_tags",
2633
+ "tableTo": "prompts",
2634
+ "columnsFrom": [
2635
+ "prompt_id"
2636
+ ],
2637
+ "columnsTo": [
2638
+ "id"
2639
+ ],
2640
+ "onDelete": "cascade",
2641
+ "onUpdate": "no action"
2642
+ },
2643
+ "prompt_tags_tag_id_tags_id_fk": {
2644
+ "name": "prompt_tags_tag_id_tags_id_fk",
2645
+ "tableFrom": "prompt_tags",
2646
+ "tableTo": "tags",
2647
+ "columnsFrom": [
2648
+ "tag_id"
2649
+ ],
2650
+ "columnsTo": [
2651
+ "id"
2652
+ ],
2653
+ "onDelete": "cascade",
2654
+ "onUpdate": "no action"
2655
+ }
2656
+ },
2657
+ "compositePrimaryKeys": {},
2658
+ "uniqueConstraints": {},
2659
+ "checkConstraints": {}
2660
+ },
2661
+ "prompts": {
2662
+ "name": "prompts",
2663
+ "columns": {
2664
+ "id": {
2665
+ "name": "id",
2666
+ "type": "text",
2667
+ "primaryKey": true,
2668
+ "notNull": true,
2669
+ "autoincrement": false
2670
+ },
2671
+ "project_id": {
2672
+ "name": "project_id",
2673
+ "type": "text",
2674
+ "primaryKey": false,
2675
+ "notNull": false,
2676
+ "autoincrement": false
2677
+ },
2678
+ "title": {
2679
+ "name": "title",
2680
+ "type": "text",
2681
+ "primaryKey": false,
2682
+ "notNull": true,
2683
+ "autoincrement": false
2684
+ },
2685
+ "content": {
2686
+ "name": "content",
2687
+ "type": "text",
2688
+ "primaryKey": false,
2689
+ "notNull": true,
2690
+ "autoincrement": false
2691
+ },
2692
+ "version": {
2693
+ "name": "version",
2694
+ "type": "integer",
2695
+ "primaryKey": false,
2696
+ "notNull": true,
2697
+ "autoincrement": false,
2698
+ "default": 1
2699
+ },
2700
+ "created_at": {
2701
+ "name": "created_at",
2702
+ "type": "text",
2703
+ "primaryKey": false,
2704
+ "notNull": true,
2705
+ "autoincrement": false
2706
+ },
2707
+ "updated_at": {
2708
+ "name": "updated_at",
2709
+ "type": "text",
2710
+ "primaryKey": false,
2711
+ "notNull": true,
2712
+ "autoincrement": false
2713
+ }
2714
+ },
2715
+ "indexes": {},
2716
+ "foreignKeys": {
2717
+ "prompts_project_id_projects_id_fk": {
2718
+ "name": "prompts_project_id_projects_id_fk",
2719
+ "tableFrom": "prompts",
2720
+ "tableTo": "projects",
2721
+ "columnsFrom": [
2722
+ "project_id"
2723
+ ],
2724
+ "columnsTo": [
2725
+ "id"
2726
+ ],
2727
+ "onDelete": "cascade",
2728
+ "onUpdate": "no action"
2729
+ }
2730
+ },
2731
+ "compositePrimaryKeys": {},
2732
+ "uniqueConstraints": {},
2733
+ "checkConstraints": {}
2734
+ },
2735
+ "providers": {
2736
+ "name": "providers",
2737
+ "columns": {
2738
+ "id": {
2739
+ "name": "id",
2740
+ "type": "text",
2741
+ "primaryKey": true,
2742
+ "notNull": true,
2743
+ "autoincrement": false
2744
+ },
2745
+ "name": {
2746
+ "name": "name",
2747
+ "type": "text",
2748
+ "primaryKey": false,
2749
+ "notNull": true,
2750
+ "autoincrement": false
2751
+ },
2752
+ "bin_path": {
2753
+ "name": "bin_path",
2754
+ "type": "text",
2755
+ "primaryKey": false,
2756
+ "notNull": false,
2757
+ "autoincrement": false
2758
+ },
2759
+ "mcp_configured": {
2760
+ "name": "mcp_configured",
2761
+ "type": "integer",
2762
+ "primaryKey": false,
2763
+ "notNull": true,
2764
+ "autoincrement": false,
2765
+ "default": false
2766
+ },
2767
+ "mcp_endpoint": {
2768
+ "name": "mcp_endpoint",
2769
+ "type": "text",
2770
+ "primaryKey": false,
2771
+ "notNull": false,
2772
+ "autoincrement": false
2773
+ },
2774
+ "mcp_registered_at": {
2775
+ "name": "mcp_registered_at",
2776
+ "type": "text",
2777
+ "primaryKey": false,
2778
+ "notNull": false,
2779
+ "autoincrement": false
2780
+ },
2781
+ "created_at": {
2782
+ "name": "created_at",
2783
+ "type": "text",
2784
+ "primaryKey": false,
2785
+ "notNull": true,
2786
+ "autoincrement": false
2787
+ },
2788
+ "updated_at": {
2789
+ "name": "updated_at",
2790
+ "type": "text",
2791
+ "primaryKey": false,
2792
+ "notNull": true,
2793
+ "autoincrement": false
2794
+ }
2795
+ },
2796
+ "indexes": {
2797
+ "providers_name_unique": {
2798
+ "name": "providers_name_unique",
2799
+ "columns": [
2800
+ "name"
2801
+ ],
2802
+ "isUnique": true
2803
+ }
2804
+ },
2805
+ "foreignKeys": {},
2806
+ "compositePrimaryKeys": {},
2807
+ "uniqueConstraints": {},
2808
+ "checkConstraints": {}
2809
+ },
2810
+ "record_tags": {
2811
+ "name": "record_tags",
2812
+ "columns": {
2813
+ "record_id": {
2814
+ "name": "record_id",
2815
+ "type": "text",
2816
+ "primaryKey": false,
2817
+ "notNull": true,
2818
+ "autoincrement": false
2819
+ },
2820
+ "tag_id": {
2821
+ "name": "tag_id",
2822
+ "type": "text",
2823
+ "primaryKey": false,
2824
+ "notNull": true,
2825
+ "autoincrement": false
2826
+ },
2827
+ "created_at": {
2828
+ "name": "created_at",
2829
+ "type": "text",
2830
+ "primaryKey": false,
2831
+ "notNull": true,
2832
+ "autoincrement": false
2833
+ }
2834
+ },
2835
+ "indexes": {},
2836
+ "foreignKeys": {
2837
+ "record_tags_record_id_records_id_fk": {
2838
+ "name": "record_tags_record_id_records_id_fk",
2839
+ "tableFrom": "record_tags",
2840
+ "tableTo": "records",
2841
+ "columnsFrom": [
2842
+ "record_id"
2843
+ ],
2844
+ "columnsTo": [
2845
+ "id"
2846
+ ],
2847
+ "onDelete": "cascade",
2848
+ "onUpdate": "no action"
2849
+ },
2850
+ "record_tags_tag_id_tags_id_fk": {
2851
+ "name": "record_tags_tag_id_tags_id_fk",
2852
+ "tableFrom": "record_tags",
2853
+ "tableTo": "tags",
2854
+ "columnsFrom": [
2855
+ "tag_id"
2856
+ ],
2857
+ "columnsTo": [
2858
+ "id"
2859
+ ],
2860
+ "onDelete": "cascade",
2861
+ "onUpdate": "no action"
2862
+ }
2863
+ },
2864
+ "compositePrimaryKeys": {},
2865
+ "uniqueConstraints": {},
2866
+ "checkConstraints": {}
2867
+ },
2868
+ "records": {
2869
+ "name": "records",
2870
+ "columns": {
2871
+ "id": {
2872
+ "name": "id",
2873
+ "type": "text",
2874
+ "primaryKey": true,
2875
+ "notNull": true,
2876
+ "autoincrement": false
2877
+ },
2878
+ "epic_id": {
2879
+ "name": "epic_id",
2880
+ "type": "text",
2881
+ "primaryKey": false,
2882
+ "notNull": true,
2883
+ "autoincrement": false
2884
+ },
2885
+ "type": {
2886
+ "name": "type",
2887
+ "type": "text",
2888
+ "primaryKey": false,
2889
+ "notNull": true,
2890
+ "autoincrement": false
2891
+ },
2892
+ "data": {
2893
+ "name": "data",
2894
+ "type": "text",
2895
+ "primaryKey": false,
2896
+ "notNull": true,
2897
+ "autoincrement": false
2898
+ },
2899
+ "version": {
2900
+ "name": "version",
2901
+ "type": "integer",
2902
+ "primaryKey": false,
2903
+ "notNull": true,
2904
+ "autoincrement": false,
2905
+ "default": 1
2906
+ },
2907
+ "created_at": {
2908
+ "name": "created_at",
2909
+ "type": "text",
2910
+ "primaryKey": false,
2911
+ "notNull": true,
2912
+ "autoincrement": false
2913
+ },
2914
+ "updated_at": {
2915
+ "name": "updated_at",
2916
+ "type": "text",
2917
+ "primaryKey": false,
2918
+ "notNull": true,
2919
+ "autoincrement": false
2920
+ }
2921
+ },
2922
+ "indexes": {},
2923
+ "foreignKeys": {
2924
+ "records_epic_id_epics_id_fk": {
2925
+ "name": "records_epic_id_epics_id_fk",
2926
+ "tableFrom": "records",
2927
+ "tableTo": "epics",
2928
+ "columnsFrom": [
2929
+ "epic_id"
2930
+ ],
2931
+ "columnsTo": [
2932
+ "id"
2933
+ ],
2934
+ "onDelete": "cascade",
2935
+ "onUpdate": "no action"
2936
+ }
2937
+ },
2938
+ "compositePrimaryKeys": {},
2939
+ "uniqueConstraints": {},
2940
+ "checkConstraints": {}
2941
+ },
2942
+ "review_comment_targets": {
2943
+ "name": "review_comment_targets",
2944
+ "columns": {
2945
+ "id": {
2946
+ "name": "id",
2947
+ "type": "text",
2948
+ "primaryKey": true,
2949
+ "notNull": true,
2950
+ "autoincrement": false
2951
+ },
2952
+ "comment_id": {
2953
+ "name": "comment_id",
2954
+ "type": "text",
2955
+ "primaryKey": false,
2956
+ "notNull": true,
2957
+ "autoincrement": false
2958
+ },
2959
+ "agent_id": {
2960
+ "name": "agent_id",
2961
+ "type": "text",
2962
+ "primaryKey": false,
2963
+ "notNull": true,
2964
+ "autoincrement": false
2965
+ },
2966
+ "created_at": {
2967
+ "name": "created_at",
2968
+ "type": "text",
2969
+ "primaryKey": false,
2970
+ "notNull": true,
2971
+ "autoincrement": false
2972
+ }
2973
+ },
2974
+ "indexes": {
2975
+ "review_comment_targets_comment_id_idx": {
2976
+ "name": "review_comment_targets_comment_id_idx",
2977
+ "columns": [
2978
+ "comment_id"
2979
+ ],
2980
+ "isUnique": false
2981
+ },
2982
+ "review_comment_targets_agent_id_idx": {
2983
+ "name": "review_comment_targets_agent_id_idx",
2984
+ "columns": [
2985
+ "agent_id"
2986
+ ],
2987
+ "isUnique": false
2988
+ }
2989
+ },
2990
+ "foreignKeys": {
2991
+ "review_comment_targets_comment_id_review_comments_id_fk": {
2992
+ "name": "review_comment_targets_comment_id_review_comments_id_fk",
2993
+ "tableFrom": "review_comment_targets",
2994
+ "tableTo": "review_comments",
2995
+ "columnsFrom": [
2996
+ "comment_id"
2997
+ ],
2998
+ "columnsTo": [
2999
+ "id"
3000
+ ],
3001
+ "onDelete": "cascade",
3002
+ "onUpdate": "no action"
3003
+ },
3004
+ "review_comment_targets_agent_id_agents_id_fk": {
3005
+ "name": "review_comment_targets_agent_id_agents_id_fk",
3006
+ "tableFrom": "review_comment_targets",
3007
+ "tableTo": "agents",
3008
+ "columnsFrom": [
3009
+ "agent_id"
3010
+ ],
3011
+ "columnsTo": [
3012
+ "id"
3013
+ ],
3014
+ "onDelete": "cascade",
3015
+ "onUpdate": "no action"
3016
+ }
3017
+ },
3018
+ "compositePrimaryKeys": {},
3019
+ "uniqueConstraints": {},
3020
+ "checkConstraints": {}
3021
+ },
3022
+ "review_comments": {
3023
+ "name": "review_comments",
3024
+ "columns": {
3025
+ "id": {
3026
+ "name": "id",
3027
+ "type": "text",
3028
+ "primaryKey": true,
3029
+ "notNull": true,
3030
+ "autoincrement": false
3031
+ },
3032
+ "review_id": {
3033
+ "name": "review_id",
3034
+ "type": "text",
3035
+ "primaryKey": false,
3036
+ "notNull": true,
3037
+ "autoincrement": false
3038
+ },
3039
+ "file_path": {
3040
+ "name": "file_path",
3041
+ "type": "text",
3042
+ "primaryKey": false,
3043
+ "notNull": false,
3044
+ "autoincrement": false
3045
+ },
3046
+ "parent_id": {
3047
+ "name": "parent_id",
3048
+ "type": "text",
3049
+ "primaryKey": false,
3050
+ "notNull": false,
3051
+ "autoincrement": false
3052
+ },
3053
+ "line_start": {
3054
+ "name": "line_start",
3055
+ "type": "integer",
3056
+ "primaryKey": false,
3057
+ "notNull": false,
3058
+ "autoincrement": false
3059
+ },
3060
+ "line_end": {
3061
+ "name": "line_end",
3062
+ "type": "integer",
3063
+ "primaryKey": false,
3064
+ "notNull": false,
3065
+ "autoincrement": false
3066
+ },
3067
+ "side": {
3068
+ "name": "side",
3069
+ "type": "text",
3070
+ "primaryKey": false,
3071
+ "notNull": false,
3072
+ "autoincrement": false
3073
+ },
3074
+ "content": {
3075
+ "name": "content",
3076
+ "type": "text",
3077
+ "primaryKey": false,
3078
+ "notNull": true,
3079
+ "autoincrement": false
3080
+ },
3081
+ "comment_type": {
3082
+ "name": "comment_type",
3083
+ "type": "text",
3084
+ "primaryKey": false,
3085
+ "notNull": true,
3086
+ "autoincrement": false
3087
+ },
3088
+ "status": {
3089
+ "name": "status",
3090
+ "type": "text",
3091
+ "primaryKey": false,
3092
+ "notNull": true,
3093
+ "autoincrement": false
3094
+ },
3095
+ "author_type": {
3096
+ "name": "author_type",
3097
+ "type": "text",
3098
+ "primaryKey": false,
3099
+ "notNull": true,
3100
+ "autoincrement": false
3101
+ },
3102
+ "author_agent_id": {
3103
+ "name": "author_agent_id",
3104
+ "type": "text",
3105
+ "primaryKey": false,
3106
+ "notNull": false,
3107
+ "autoincrement": false
3108
+ },
3109
+ "version": {
3110
+ "name": "version",
3111
+ "type": "integer",
3112
+ "primaryKey": false,
3113
+ "notNull": true,
3114
+ "autoincrement": false,
3115
+ "default": 1
3116
+ },
3117
+ "edited_at": {
3118
+ "name": "edited_at",
3119
+ "type": "text",
3120
+ "primaryKey": false,
3121
+ "notNull": false,
3122
+ "autoincrement": false
3123
+ },
3124
+ "created_at": {
3125
+ "name": "created_at",
3126
+ "type": "text",
3127
+ "primaryKey": false,
3128
+ "notNull": true,
3129
+ "autoincrement": false
3130
+ },
3131
+ "updated_at": {
3132
+ "name": "updated_at",
3133
+ "type": "text",
3134
+ "primaryKey": false,
3135
+ "notNull": true,
3136
+ "autoincrement": false
3137
+ }
3138
+ },
3139
+ "indexes": {
3140
+ "review_comments_review_id_idx": {
3141
+ "name": "review_comments_review_id_idx",
3142
+ "columns": [
3143
+ "review_id"
3144
+ ],
3145
+ "isUnique": false
3146
+ },
3147
+ "review_comments_parent_id_idx": {
3148
+ "name": "review_comments_parent_id_idx",
3149
+ "columns": [
3150
+ "parent_id"
3151
+ ],
3152
+ "isUnique": false
3153
+ },
3154
+ "review_comments_file_path_idx": {
3155
+ "name": "review_comments_file_path_idx",
3156
+ "columns": [
3157
+ "file_path"
3158
+ ],
3159
+ "isUnique": false
3160
+ },
3161
+ "review_comments_status_idx": {
3162
+ "name": "review_comments_status_idx",
3163
+ "columns": [
3164
+ "status"
3165
+ ],
3166
+ "isUnique": false
3167
+ }
3168
+ },
3169
+ "foreignKeys": {
3170
+ "review_comments_review_id_reviews_id_fk": {
3171
+ "name": "review_comments_review_id_reviews_id_fk",
3172
+ "tableFrom": "review_comments",
3173
+ "tableTo": "reviews",
3174
+ "columnsFrom": [
3175
+ "review_id"
3176
+ ],
3177
+ "columnsTo": [
3178
+ "id"
3179
+ ],
3180
+ "onDelete": "cascade",
3181
+ "onUpdate": "no action"
3182
+ },
3183
+ "review_comments_author_agent_id_agents_id_fk": {
3184
+ "name": "review_comments_author_agent_id_agents_id_fk",
3185
+ "tableFrom": "review_comments",
3186
+ "tableTo": "agents",
3187
+ "columnsFrom": [
3188
+ "author_agent_id"
3189
+ ],
3190
+ "columnsTo": [
3191
+ "id"
3192
+ ],
3193
+ "onDelete": "set null",
3194
+ "onUpdate": "no action"
3195
+ },
3196
+ "review_comments_parent_id_fk": {
3197
+ "name": "review_comments_parent_id_fk",
3198
+ "tableFrom": "review_comments",
3199
+ "tableTo": "review_comments",
3200
+ "columnsFrom": [
3201
+ "parent_id"
3202
+ ],
3203
+ "columnsTo": [
3204
+ "id"
3205
+ ],
3206
+ "onDelete": "no action",
3207
+ "onUpdate": "no action"
3208
+ }
3209
+ },
3210
+ "compositePrimaryKeys": {},
3211
+ "uniqueConstraints": {},
3212
+ "checkConstraints": {}
3213
+ },
3214
+ "reviews": {
3215
+ "name": "reviews",
3216
+ "columns": {
3217
+ "id": {
3218
+ "name": "id",
3219
+ "type": "text",
3220
+ "primaryKey": true,
3221
+ "notNull": true,
3222
+ "autoincrement": false
3223
+ },
3224
+ "project_id": {
3225
+ "name": "project_id",
3226
+ "type": "text",
3227
+ "primaryKey": false,
3228
+ "notNull": true,
3229
+ "autoincrement": false
3230
+ },
3231
+ "epic_id": {
3232
+ "name": "epic_id",
3233
+ "type": "text",
3234
+ "primaryKey": false,
3235
+ "notNull": false,
3236
+ "autoincrement": false
3237
+ },
3238
+ "title": {
3239
+ "name": "title",
3240
+ "type": "text",
3241
+ "primaryKey": false,
3242
+ "notNull": true,
3243
+ "autoincrement": false
3244
+ },
3245
+ "description": {
3246
+ "name": "description",
3247
+ "type": "text",
3248
+ "primaryKey": false,
3249
+ "notNull": false,
3250
+ "autoincrement": false
3251
+ },
3252
+ "status": {
3253
+ "name": "status",
3254
+ "type": "text",
3255
+ "primaryKey": false,
3256
+ "notNull": true,
3257
+ "autoincrement": false
3258
+ },
3259
+ "mode": {
3260
+ "name": "mode",
3261
+ "type": "text",
3262
+ "primaryKey": false,
3263
+ "notNull": true,
3264
+ "autoincrement": false,
3265
+ "default": "'commit'"
3266
+ },
3267
+ "base_ref": {
3268
+ "name": "base_ref",
3269
+ "type": "text",
3270
+ "primaryKey": false,
3271
+ "notNull": true,
3272
+ "autoincrement": false
3273
+ },
3274
+ "head_ref": {
3275
+ "name": "head_ref",
3276
+ "type": "text",
3277
+ "primaryKey": false,
3278
+ "notNull": true,
3279
+ "autoincrement": false
3280
+ },
3281
+ "base_sha": {
3282
+ "name": "base_sha",
3283
+ "type": "text",
3284
+ "primaryKey": false,
3285
+ "notNull": false,
3286
+ "autoincrement": false
3287
+ },
3288
+ "head_sha": {
3289
+ "name": "head_sha",
3290
+ "type": "text",
3291
+ "primaryKey": false,
3292
+ "notNull": false,
3293
+ "autoincrement": false
3294
+ },
3295
+ "created_by": {
3296
+ "name": "created_by",
3297
+ "type": "text",
3298
+ "primaryKey": false,
3299
+ "notNull": true,
3300
+ "autoincrement": false
3301
+ },
3302
+ "created_by_agent_id": {
3303
+ "name": "created_by_agent_id",
3304
+ "type": "text",
3305
+ "primaryKey": false,
3306
+ "notNull": false,
3307
+ "autoincrement": false
3308
+ },
3309
+ "version": {
3310
+ "name": "version",
3311
+ "type": "integer",
3312
+ "primaryKey": false,
3313
+ "notNull": true,
3314
+ "autoincrement": false,
3315
+ "default": 1
3316
+ },
3317
+ "created_at": {
3318
+ "name": "created_at",
3319
+ "type": "text",
3320
+ "primaryKey": false,
3321
+ "notNull": true,
3322
+ "autoincrement": false
3323
+ },
3324
+ "updated_at": {
3325
+ "name": "updated_at",
3326
+ "type": "text",
3327
+ "primaryKey": false,
3328
+ "notNull": true,
3329
+ "autoincrement": false
3330
+ }
3331
+ },
3332
+ "indexes": {
3333
+ "reviews_project_id_idx": {
3334
+ "name": "reviews_project_id_idx",
3335
+ "columns": [
3336
+ "project_id"
3337
+ ],
3338
+ "isUnique": false
3339
+ },
3340
+ "reviews_epic_id_idx": {
3341
+ "name": "reviews_epic_id_idx",
3342
+ "columns": [
3343
+ "epic_id"
3344
+ ],
3345
+ "isUnique": false
3346
+ },
3347
+ "reviews_status_idx": {
3348
+ "name": "reviews_status_idx",
3349
+ "columns": [
3350
+ "status"
3351
+ ],
3352
+ "isUnique": false
3353
+ }
3354
+ },
3355
+ "foreignKeys": {
3356
+ "reviews_project_id_projects_id_fk": {
3357
+ "name": "reviews_project_id_projects_id_fk",
3358
+ "tableFrom": "reviews",
3359
+ "tableTo": "projects",
3360
+ "columnsFrom": [
3361
+ "project_id"
3362
+ ],
3363
+ "columnsTo": [
3364
+ "id"
3365
+ ],
3366
+ "onDelete": "cascade",
3367
+ "onUpdate": "no action"
3368
+ },
3369
+ "reviews_epic_id_epics_id_fk": {
3370
+ "name": "reviews_epic_id_epics_id_fk",
3371
+ "tableFrom": "reviews",
3372
+ "tableTo": "epics",
3373
+ "columnsFrom": [
3374
+ "epic_id"
3375
+ ],
3376
+ "columnsTo": [
3377
+ "id"
3378
+ ],
3379
+ "onDelete": "set null",
3380
+ "onUpdate": "no action"
3381
+ },
3382
+ "reviews_created_by_agent_id_agents_id_fk": {
3383
+ "name": "reviews_created_by_agent_id_agents_id_fk",
3384
+ "tableFrom": "reviews",
3385
+ "tableTo": "agents",
3386
+ "columnsFrom": [
3387
+ "created_by_agent_id"
3388
+ ],
3389
+ "columnsTo": [
3390
+ "id"
3391
+ ],
3392
+ "onDelete": "set null",
3393
+ "onUpdate": "no action"
3394
+ }
3395
+ },
3396
+ "compositePrimaryKeys": {},
3397
+ "uniqueConstraints": {},
3398
+ "checkConstraints": {}
3399
+ },
3400
+ "sessions": {
3401
+ "name": "sessions",
3402
+ "columns": {
3403
+ "id": {
3404
+ "name": "id",
3405
+ "type": "text",
3406
+ "primaryKey": true,
3407
+ "notNull": true,
3408
+ "autoincrement": false
3409
+ },
3410
+ "epic_id": {
3411
+ "name": "epic_id",
3412
+ "type": "text",
3413
+ "primaryKey": false,
3414
+ "notNull": false,
3415
+ "autoincrement": false
3416
+ },
3417
+ "agent_id": {
3418
+ "name": "agent_id",
3419
+ "type": "text",
3420
+ "primaryKey": false,
3421
+ "notNull": false,
3422
+ "autoincrement": false
3423
+ },
3424
+ "tmux_session_id": {
3425
+ "name": "tmux_session_id",
3426
+ "type": "text",
3427
+ "primaryKey": false,
3428
+ "notNull": false,
3429
+ "autoincrement": false
3430
+ },
3431
+ "status": {
3432
+ "name": "status",
3433
+ "type": "text",
3434
+ "primaryKey": false,
3435
+ "notNull": true,
3436
+ "autoincrement": false
3437
+ },
3438
+ "started_at": {
3439
+ "name": "started_at",
3440
+ "type": "text",
3441
+ "primaryKey": false,
3442
+ "notNull": true,
3443
+ "autoincrement": false
3444
+ },
3445
+ "ended_at": {
3446
+ "name": "ended_at",
3447
+ "type": "text",
3448
+ "primaryKey": false,
3449
+ "notNull": false,
3450
+ "autoincrement": false
3451
+ },
3452
+ "last_activity_at": {
3453
+ "name": "last_activity_at",
3454
+ "type": "text",
3455
+ "primaryKey": false,
3456
+ "notNull": false,
3457
+ "autoincrement": false
3458
+ },
3459
+ "activity_state": {
3460
+ "name": "activity_state",
3461
+ "type": "text",
3462
+ "primaryKey": false,
3463
+ "notNull": false,
3464
+ "autoincrement": false
3465
+ },
3466
+ "busy_since": {
3467
+ "name": "busy_since",
3468
+ "type": "text",
3469
+ "primaryKey": false,
3470
+ "notNull": false,
3471
+ "autoincrement": false
3472
+ },
3473
+ "created_at": {
3474
+ "name": "created_at",
3475
+ "type": "text",
3476
+ "primaryKey": false,
3477
+ "notNull": true,
3478
+ "autoincrement": false
3479
+ },
3480
+ "updated_at": {
3481
+ "name": "updated_at",
3482
+ "type": "text",
3483
+ "primaryKey": false,
3484
+ "notNull": true,
3485
+ "autoincrement": false
3486
+ }
3487
+ },
3488
+ "indexes": {
3489
+ "idx_sessions_agent_running": {
3490
+ "name": "idx_sessions_agent_running",
3491
+ "columns": [
3492
+ "agent_id"
3493
+ ],
3494
+ "isUnique": true,
3495
+ "where": "status = 'running' AND agent_id IS NOT NULL"
3496
+ }
3497
+ },
3498
+ "foreignKeys": {
3499
+ "sessions_epic_id_epics_id_fk": {
3500
+ "name": "sessions_epic_id_epics_id_fk",
3501
+ "tableFrom": "sessions",
3502
+ "tableTo": "epics",
3503
+ "columnsFrom": [
3504
+ "epic_id"
3505
+ ],
3506
+ "columnsTo": [
3507
+ "id"
3508
+ ],
3509
+ "onDelete": "set null",
3510
+ "onUpdate": "no action"
3511
+ },
3512
+ "sessions_agent_id_agents_id_fk": {
3513
+ "name": "sessions_agent_id_agents_id_fk",
3514
+ "tableFrom": "sessions",
3515
+ "tableTo": "agents",
3516
+ "columnsFrom": [
3517
+ "agent_id"
3518
+ ],
3519
+ "columnsTo": [
3520
+ "id"
3521
+ ],
3522
+ "onDelete": "restrict",
3523
+ "onUpdate": "no action"
3524
+ }
3525
+ },
3526
+ "compositePrimaryKeys": {},
3527
+ "uniqueConstraints": {},
3528
+ "checkConstraints": {}
3529
+ },
3530
+ "settings": {
3531
+ "name": "settings",
3532
+ "columns": {
3533
+ "id": {
3534
+ "name": "id",
3535
+ "type": "text",
3536
+ "primaryKey": true,
3537
+ "notNull": true,
3538
+ "autoincrement": false
3539
+ },
3540
+ "key": {
3541
+ "name": "key",
3542
+ "type": "text",
3543
+ "primaryKey": false,
3544
+ "notNull": true,
3545
+ "autoincrement": false
3546
+ },
3547
+ "value": {
3548
+ "name": "value",
3549
+ "type": "text",
3550
+ "primaryKey": false,
3551
+ "notNull": true,
3552
+ "autoincrement": false
3553
+ },
3554
+ "created_at": {
3555
+ "name": "created_at",
3556
+ "type": "text",
3557
+ "primaryKey": false,
3558
+ "notNull": true,
3559
+ "autoincrement": false
3560
+ },
3561
+ "updated_at": {
3562
+ "name": "updated_at",
3563
+ "type": "text",
3564
+ "primaryKey": false,
3565
+ "notNull": true,
3566
+ "autoincrement": false
3567
+ }
3568
+ },
3569
+ "indexes": {
3570
+ "settings_key_unique": {
3571
+ "name": "settings_key_unique",
3572
+ "columns": [
3573
+ "key"
3574
+ ],
3575
+ "isUnique": true
3576
+ }
3577
+ },
3578
+ "foreignKeys": {},
3579
+ "compositePrimaryKeys": {},
3580
+ "uniqueConstraints": {},
3581
+ "checkConstraints": {}
3582
+ },
3583
+ "skill_project_disabled": {
3584
+ "name": "skill_project_disabled",
3585
+ "columns": {
3586
+ "id": {
3587
+ "name": "id",
3588
+ "type": "text",
3589
+ "primaryKey": true,
3590
+ "notNull": true,
3591
+ "autoincrement": false
3592
+ },
3593
+ "project_id": {
3594
+ "name": "project_id",
3595
+ "type": "text",
3596
+ "primaryKey": false,
3597
+ "notNull": true,
3598
+ "autoincrement": false
3599
+ },
3600
+ "skill_id": {
3601
+ "name": "skill_id",
3602
+ "type": "text",
3603
+ "primaryKey": false,
3604
+ "notNull": true,
3605
+ "autoincrement": false
3606
+ },
3607
+ "created_at": {
3608
+ "name": "created_at",
3609
+ "type": "text",
3610
+ "primaryKey": false,
3611
+ "notNull": true,
3612
+ "autoincrement": false
3613
+ }
3614
+ },
3615
+ "indexes": {
3616
+ "skill_project_disabled_project_skill_unique": {
3617
+ "name": "skill_project_disabled_project_skill_unique",
3618
+ "columns": [
3619
+ "project_id",
3620
+ "skill_id"
3621
+ ],
3622
+ "isUnique": true
3623
+ }
3624
+ },
3625
+ "foreignKeys": {
3626
+ "skill_project_disabled_project_id_projects_id_fk": {
3627
+ "name": "skill_project_disabled_project_id_projects_id_fk",
3628
+ "tableFrom": "skill_project_disabled",
3629
+ "tableTo": "projects",
3630
+ "columnsFrom": [
3631
+ "project_id"
3632
+ ],
3633
+ "columnsTo": [
3634
+ "id"
3635
+ ],
3636
+ "onDelete": "cascade",
3637
+ "onUpdate": "no action"
3638
+ },
3639
+ "skill_project_disabled_skill_id_skills_id_fk": {
3640
+ "name": "skill_project_disabled_skill_id_skills_id_fk",
3641
+ "tableFrom": "skill_project_disabled",
3642
+ "tableTo": "skills",
3643
+ "columnsFrom": [
3644
+ "skill_id"
3645
+ ],
3646
+ "columnsTo": [
3647
+ "id"
3648
+ ],
3649
+ "onDelete": "cascade",
3650
+ "onUpdate": "no action"
3651
+ }
3652
+ },
3653
+ "compositePrimaryKeys": {},
3654
+ "uniqueConstraints": {},
3655
+ "checkConstraints": {}
3656
+ },
3657
+ "skill_usage_log": {
3658
+ "name": "skill_usage_log",
3659
+ "columns": {
3660
+ "id": {
3661
+ "name": "id",
3662
+ "type": "text",
3663
+ "primaryKey": true,
3664
+ "notNull": true,
3665
+ "autoincrement": false
3666
+ },
3667
+ "skill_id": {
3668
+ "name": "skill_id",
3669
+ "type": "text",
3670
+ "primaryKey": false,
3671
+ "notNull": true,
3672
+ "autoincrement": false
3673
+ },
3674
+ "skill_slug": {
3675
+ "name": "skill_slug",
3676
+ "type": "text",
3677
+ "primaryKey": false,
3678
+ "notNull": true,
3679
+ "autoincrement": false
3680
+ },
3681
+ "project_id": {
3682
+ "name": "project_id",
3683
+ "type": "text",
3684
+ "primaryKey": false,
3685
+ "notNull": false,
3686
+ "autoincrement": false
3687
+ },
3688
+ "agent_id": {
3689
+ "name": "agent_id",
3690
+ "type": "text",
3691
+ "primaryKey": false,
3692
+ "notNull": false,
3693
+ "autoincrement": false
3694
+ },
3695
+ "agent_name_snapshot": {
3696
+ "name": "agent_name_snapshot",
3697
+ "type": "text",
3698
+ "primaryKey": false,
3699
+ "notNull": false,
3700
+ "autoincrement": false
3701
+ },
3702
+ "accessed_at": {
3703
+ "name": "accessed_at",
3704
+ "type": "text",
3705
+ "primaryKey": false,
3706
+ "notNull": true,
3707
+ "autoincrement": false
3708
+ }
3709
+ },
3710
+ "indexes": {
3711
+ "skill_usage_log_skill_id_idx": {
3712
+ "name": "skill_usage_log_skill_id_idx",
3713
+ "columns": [
3714
+ "skill_id"
3715
+ ],
3716
+ "isUnique": false
3717
+ },
3718
+ "skill_usage_log_project_id_idx": {
3719
+ "name": "skill_usage_log_project_id_idx",
3720
+ "columns": [
3721
+ "project_id"
3722
+ ],
3723
+ "isUnique": false
3724
+ },
3725
+ "skill_usage_log_accessed_at_idx": {
3726
+ "name": "skill_usage_log_accessed_at_idx",
3727
+ "columns": [
3728
+ "accessed_at"
3729
+ ],
3730
+ "isUnique": false
3731
+ }
3732
+ },
3733
+ "foreignKeys": {
3734
+ "skill_usage_log_skill_id_skills_id_fk": {
3735
+ "name": "skill_usage_log_skill_id_skills_id_fk",
3736
+ "tableFrom": "skill_usage_log",
3737
+ "tableTo": "skills",
3738
+ "columnsFrom": [
3739
+ "skill_id"
3740
+ ],
3741
+ "columnsTo": [
3742
+ "id"
3743
+ ],
3744
+ "onDelete": "cascade",
3745
+ "onUpdate": "no action"
3746
+ }
3747
+ },
3748
+ "compositePrimaryKeys": {},
3749
+ "uniqueConstraints": {},
3750
+ "checkConstraints": {}
3751
+ },
3752
+ "skills": {
3753
+ "name": "skills",
3754
+ "columns": {
3755
+ "id": {
3756
+ "name": "id",
3757
+ "type": "text",
3758
+ "primaryKey": true,
3759
+ "notNull": true,
3760
+ "autoincrement": false
3761
+ },
3762
+ "slug": {
3763
+ "name": "slug",
3764
+ "type": "text",
3765
+ "primaryKey": false,
3766
+ "notNull": true,
3767
+ "autoincrement": false
3768
+ },
3769
+ "name": {
3770
+ "name": "name",
3771
+ "type": "text",
3772
+ "primaryKey": false,
3773
+ "notNull": true,
3774
+ "autoincrement": false
3775
+ },
3776
+ "display_name": {
3777
+ "name": "display_name",
3778
+ "type": "text",
3779
+ "primaryKey": false,
3780
+ "notNull": true,
3781
+ "autoincrement": false
3782
+ },
3783
+ "description": {
3784
+ "name": "description",
3785
+ "type": "text",
3786
+ "primaryKey": false,
3787
+ "notNull": false,
3788
+ "autoincrement": false
3789
+ },
3790
+ "short_description": {
3791
+ "name": "short_description",
3792
+ "type": "text",
3793
+ "primaryKey": false,
3794
+ "notNull": false,
3795
+ "autoincrement": false
3796
+ },
3797
+ "source": {
3798
+ "name": "source",
3799
+ "type": "text",
3800
+ "primaryKey": false,
3801
+ "notNull": true,
3802
+ "autoincrement": false
3803
+ },
3804
+ "source_url": {
3805
+ "name": "source_url",
3806
+ "type": "text",
3807
+ "primaryKey": false,
3808
+ "notNull": false,
3809
+ "autoincrement": false
3810
+ },
3811
+ "source_commit": {
3812
+ "name": "source_commit",
3813
+ "type": "text",
3814
+ "primaryKey": false,
3815
+ "notNull": false,
3816
+ "autoincrement": false
3817
+ },
3818
+ "category": {
3819
+ "name": "category",
3820
+ "type": "text",
3821
+ "primaryKey": false,
3822
+ "notNull": false,
3823
+ "autoincrement": false
3824
+ },
3825
+ "license": {
3826
+ "name": "license",
3827
+ "type": "text",
3828
+ "primaryKey": false,
3829
+ "notNull": false,
3830
+ "autoincrement": false
3831
+ },
3832
+ "compatibility": {
3833
+ "name": "compatibility",
3834
+ "type": "text",
3835
+ "primaryKey": false,
3836
+ "notNull": false,
3837
+ "autoincrement": false
3838
+ },
3839
+ "frontmatter": {
3840
+ "name": "frontmatter",
3841
+ "type": "text",
3842
+ "primaryKey": false,
3843
+ "notNull": false,
3844
+ "autoincrement": false
3845
+ },
3846
+ "instruction_content": {
3847
+ "name": "instruction_content",
3848
+ "type": "text",
3849
+ "primaryKey": false,
3850
+ "notNull": false,
3851
+ "autoincrement": false
3852
+ },
3853
+ "content_path": {
3854
+ "name": "content_path",
3855
+ "type": "text",
3856
+ "primaryKey": false,
3857
+ "notNull": false,
3858
+ "autoincrement": false
3859
+ },
3860
+ "resources": {
3861
+ "name": "resources",
3862
+ "type": "text",
3863
+ "primaryKey": false,
3864
+ "notNull": false,
3865
+ "autoincrement": false
3866
+ },
3867
+ "status": {
3868
+ "name": "status",
3869
+ "type": "text",
3870
+ "primaryKey": false,
3871
+ "notNull": true,
3872
+ "autoincrement": false,
3873
+ "default": "'available'"
3874
+ },
3875
+ "last_synced_at": {
3876
+ "name": "last_synced_at",
3877
+ "type": "text",
3878
+ "primaryKey": false,
3879
+ "notNull": false,
3880
+ "autoincrement": false
3881
+ },
3882
+ "created_at": {
3883
+ "name": "created_at",
3884
+ "type": "text",
3885
+ "primaryKey": false,
3886
+ "notNull": true,
3887
+ "autoincrement": false
3888
+ },
3889
+ "updated_at": {
3890
+ "name": "updated_at",
3891
+ "type": "text",
3892
+ "primaryKey": false,
3893
+ "notNull": true,
3894
+ "autoincrement": false
3895
+ }
3896
+ },
3897
+ "indexes": {
3898
+ "skills_slug_unique": {
3899
+ "name": "skills_slug_unique",
3900
+ "columns": [
3901
+ "slug"
3902
+ ],
3903
+ "isUnique": true
3904
+ },
3905
+ "skills_source_idx": {
3906
+ "name": "skills_source_idx",
3907
+ "columns": [
3908
+ "source"
3909
+ ],
3910
+ "isUnique": false
3911
+ },
3912
+ "skills_category_idx": {
3913
+ "name": "skills_category_idx",
3914
+ "columns": [
3915
+ "category"
3916
+ ],
3917
+ "isUnique": false
3918
+ },
3919
+ "skills_status_idx": {
3920
+ "name": "skills_status_idx",
3921
+ "columns": [
3922
+ "status"
3923
+ ],
3924
+ "isUnique": false
3925
+ }
3926
+ },
3927
+ "foreignKeys": {},
3928
+ "compositePrimaryKeys": {},
3929
+ "uniqueConstraints": {},
3930
+ "checkConstraints": {}
3931
+ },
3932
+ "source_project_enabled": {
3933
+ "name": "source_project_enabled",
3934
+ "columns": {
3935
+ "id": {
3936
+ "name": "id",
3937
+ "type": "text",
3938
+ "primaryKey": true,
3939
+ "notNull": true,
3940
+ "autoincrement": false
3941
+ },
3942
+ "project_id": {
3943
+ "name": "project_id",
3944
+ "type": "text",
3945
+ "primaryKey": false,
3946
+ "notNull": true,
3947
+ "autoincrement": false
3948
+ },
3949
+ "source_name": {
3950
+ "name": "source_name",
3951
+ "type": "text",
3952
+ "primaryKey": false,
3953
+ "notNull": true,
3954
+ "autoincrement": false
3955
+ },
3956
+ "enabled": {
3957
+ "name": "enabled",
3958
+ "type": "integer",
3959
+ "primaryKey": false,
3960
+ "notNull": true,
3961
+ "autoincrement": false,
3962
+ "default": false
3963
+ },
3964
+ "created_at": {
3965
+ "name": "created_at",
3966
+ "type": "text",
3967
+ "primaryKey": false,
3968
+ "notNull": true,
3969
+ "autoincrement": false
3970
+ }
3971
+ },
3972
+ "indexes": {
3973
+ "source_project_enabled_project_source_unique": {
3974
+ "name": "source_project_enabled_project_source_unique",
3975
+ "columns": [
3976
+ "project_id",
3977
+ "source_name"
3978
+ ],
3979
+ "isUnique": true
3980
+ }
3981
+ },
3982
+ "foreignKeys": {
3983
+ "source_project_enabled_project_id_projects_id_fk": {
3984
+ "name": "source_project_enabled_project_id_projects_id_fk",
3985
+ "tableFrom": "source_project_enabled",
3986
+ "tableTo": "projects",
3987
+ "columnsFrom": [
3988
+ "project_id"
3989
+ ],
3990
+ "columnsTo": [
3991
+ "id"
3992
+ ],
3993
+ "onDelete": "cascade",
3994
+ "onUpdate": "no action"
3995
+ }
3996
+ },
3997
+ "compositePrimaryKeys": {},
3998
+ "uniqueConstraints": {},
3999
+ "checkConstraints": {}
4000
+ },
4001
+ "statuses": {
4002
+ "name": "statuses",
4003
+ "columns": {
4004
+ "id": {
4005
+ "name": "id",
4006
+ "type": "text",
4007
+ "primaryKey": true,
4008
+ "notNull": true,
4009
+ "autoincrement": false
4010
+ },
4011
+ "project_id": {
4012
+ "name": "project_id",
4013
+ "type": "text",
4014
+ "primaryKey": false,
4015
+ "notNull": true,
4016
+ "autoincrement": false
4017
+ },
4018
+ "label": {
4019
+ "name": "label",
4020
+ "type": "text",
4021
+ "primaryKey": false,
4022
+ "notNull": true,
4023
+ "autoincrement": false
4024
+ },
4025
+ "color": {
4026
+ "name": "color",
4027
+ "type": "text",
4028
+ "primaryKey": false,
4029
+ "notNull": true,
4030
+ "autoincrement": false
4031
+ },
4032
+ "position": {
4033
+ "name": "position",
4034
+ "type": "integer",
4035
+ "primaryKey": false,
4036
+ "notNull": true,
4037
+ "autoincrement": false
4038
+ },
4039
+ "mcp_hidden": {
4040
+ "name": "mcp_hidden",
4041
+ "type": "integer",
4042
+ "primaryKey": false,
4043
+ "notNull": true,
4044
+ "autoincrement": false,
4045
+ "default": false
4046
+ },
4047
+ "created_at": {
4048
+ "name": "created_at",
4049
+ "type": "text",
4050
+ "primaryKey": false,
4051
+ "notNull": true,
4052
+ "autoincrement": false
4053
+ },
4054
+ "updated_at": {
4055
+ "name": "updated_at",
4056
+ "type": "text",
4057
+ "primaryKey": false,
4058
+ "notNull": true,
4059
+ "autoincrement": false
4060
+ }
4061
+ },
4062
+ "indexes": {
4063
+ "statuses_project_position_idx": {
4064
+ "name": "statuses_project_position_idx",
4065
+ "columns": [
4066
+ "project_id",
4067
+ "position"
4068
+ ],
4069
+ "isUnique": true
4070
+ }
4071
+ },
4072
+ "foreignKeys": {
4073
+ "statuses_project_id_projects_id_fk": {
4074
+ "name": "statuses_project_id_projects_id_fk",
4075
+ "tableFrom": "statuses",
4076
+ "tableTo": "projects",
4077
+ "columnsFrom": [
4078
+ "project_id"
4079
+ ],
4080
+ "columnsTo": [
4081
+ "id"
4082
+ ],
4083
+ "onDelete": "cascade",
4084
+ "onUpdate": "no action"
4085
+ }
4086
+ },
4087
+ "compositePrimaryKeys": {},
4088
+ "uniqueConstraints": {},
4089
+ "checkConstraints": {}
4090
+ },
4091
+ "tags": {
4092
+ "name": "tags",
4093
+ "columns": {
4094
+ "id": {
4095
+ "name": "id",
4096
+ "type": "text",
4097
+ "primaryKey": true,
4098
+ "notNull": true,
4099
+ "autoincrement": false
4100
+ },
4101
+ "project_id": {
4102
+ "name": "project_id",
4103
+ "type": "text",
4104
+ "primaryKey": false,
4105
+ "notNull": false,
4106
+ "autoincrement": false
4107
+ },
4108
+ "name": {
4109
+ "name": "name",
4110
+ "type": "text",
4111
+ "primaryKey": false,
4112
+ "notNull": true,
4113
+ "autoincrement": false
4114
+ },
4115
+ "created_at": {
4116
+ "name": "created_at",
4117
+ "type": "text",
4118
+ "primaryKey": false,
4119
+ "notNull": true,
4120
+ "autoincrement": false
4121
+ },
4122
+ "updated_at": {
4123
+ "name": "updated_at",
4124
+ "type": "text",
4125
+ "primaryKey": false,
4126
+ "notNull": true,
4127
+ "autoincrement": false
4128
+ }
4129
+ },
4130
+ "indexes": {},
4131
+ "foreignKeys": {
4132
+ "tags_project_id_projects_id_fk": {
4133
+ "name": "tags_project_id_projects_id_fk",
4134
+ "tableFrom": "tags",
4135
+ "tableTo": "projects",
4136
+ "columnsFrom": [
4137
+ "project_id"
4138
+ ],
4139
+ "columnsTo": [
4140
+ "id"
4141
+ ],
4142
+ "onDelete": "cascade",
4143
+ "onUpdate": "no action"
4144
+ }
4145
+ },
4146
+ "compositePrimaryKeys": {},
4147
+ "uniqueConstraints": {},
4148
+ "checkConstraints": {}
4149
+ },
4150
+ "terminal_watchers": {
4151
+ "name": "terminal_watchers",
4152
+ "columns": {
4153
+ "id": {
4154
+ "name": "id",
4155
+ "type": "text",
4156
+ "primaryKey": true,
4157
+ "notNull": true,
4158
+ "autoincrement": false
4159
+ },
4160
+ "project_id": {
4161
+ "name": "project_id",
4162
+ "type": "text",
4163
+ "primaryKey": false,
4164
+ "notNull": true,
4165
+ "autoincrement": false
4166
+ },
4167
+ "name": {
4168
+ "name": "name",
4169
+ "type": "text",
4170
+ "primaryKey": false,
4171
+ "notNull": true,
4172
+ "autoincrement": false
4173
+ },
4174
+ "description": {
4175
+ "name": "description",
4176
+ "type": "text",
4177
+ "primaryKey": false,
4178
+ "notNull": false,
4179
+ "autoincrement": false
4180
+ },
4181
+ "enabled": {
4182
+ "name": "enabled",
4183
+ "type": "integer",
4184
+ "primaryKey": false,
4185
+ "notNull": true,
4186
+ "autoincrement": false,
4187
+ "default": true
4188
+ },
4189
+ "scope": {
4190
+ "name": "scope",
4191
+ "type": "text",
4192
+ "primaryKey": false,
4193
+ "notNull": true,
4194
+ "autoincrement": false,
4195
+ "default": "'all'"
4196
+ },
4197
+ "scope_filter_id": {
4198
+ "name": "scope_filter_id",
4199
+ "type": "text",
4200
+ "primaryKey": false,
4201
+ "notNull": false,
4202
+ "autoincrement": false
4203
+ },
4204
+ "poll_interval_ms": {
4205
+ "name": "poll_interval_ms",
4206
+ "type": "integer",
4207
+ "primaryKey": false,
4208
+ "notNull": true,
4209
+ "autoincrement": false,
4210
+ "default": 5000
4211
+ },
4212
+ "viewport_lines": {
4213
+ "name": "viewport_lines",
4214
+ "type": "integer",
4215
+ "primaryKey": false,
4216
+ "notNull": true,
4217
+ "autoincrement": false,
4218
+ "default": 50
4219
+ },
4220
+ "condition": {
4221
+ "name": "condition",
4222
+ "type": "text",
4223
+ "primaryKey": false,
4224
+ "notNull": true,
4225
+ "autoincrement": false
4226
+ },
4227
+ "idle_after_seconds": {
4228
+ "name": "idle_after_seconds",
4229
+ "type": "integer",
4230
+ "primaryKey": false,
4231
+ "notNull": true,
4232
+ "autoincrement": false,
4233
+ "default": 0
4234
+ },
4235
+ "cooldown_ms": {
4236
+ "name": "cooldown_ms",
4237
+ "type": "integer",
4238
+ "primaryKey": false,
4239
+ "notNull": true,
4240
+ "autoincrement": false,
4241
+ "default": 60000
4242
+ },
4243
+ "cooldown_mode": {
4244
+ "name": "cooldown_mode",
4245
+ "type": "text",
4246
+ "primaryKey": false,
4247
+ "notNull": true,
4248
+ "autoincrement": false,
4249
+ "default": "'time'"
4250
+ },
4251
+ "event_name": {
4252
+ "name": "event_name",
4253
+ "type": "text",
4254
+ "primaryKey": false,
4255
+ "notNull": true,
4256
+ "autoincrement": false
4257
+ },
4258
+ "created_at": {
4259
+ "name": "created_at",
4260
+ "type": "text",
4261
+ "primaryKey": false,
4262
+ "notNull": true,
4263
+ "autoincrement": false
4264
+ },
4265
+ "updated_at": {
4266
+ "name": "updated_at",
4267
+ "type": "text",
4268
+ "primaryKey": false,
4269
+ "notNull": true,
4270
+ "autoincrement": false
4271
+ }
4272
+ },
4273
+ "indexes": {
4274
+ "terminal_watchers_project_id_idx": {
4275
+ "name": "terminal_watchers_project_id_idx",
4276
+ "columns": [
4277
+ "project_id"
4278
+ ],
4279
+ "isUnique": false
4280
+ },
4281
+ "terminal_watchers_enabled_idx": {
4282
+ "name": "terminal_watchers_enabled_idx",
4283
+ "columns": [
4284
+ "enabled"
4285
+ ],
4286
+ "isUnique": false
4287
+ }
4288
+ },
4289
+ "foreignKeys": {
4290
+ "terminal_watchers_project_id_projects_id_fk": {
4291
+ "name": "terminal_watchers_project_id_projects_id_fk",
4292
+ "tableFrom": "terminal_watchers",
4293
+ "tableTo": "projects",
4294
+ "columnsFrom": [
4295
+ "project_id"
4296
+ ],
4297
+ "columnsTo": [
4298
+ "id"
4299
+ ],
4300
+ "onDelete": "cascade",
4301
+ "onUpdate": "no action"
4302
+ }
4303
+ },
4304
+ "compositePrimaryKeys": {},
4305
+ "uniqueConstraints": {},
4306
+ "checkConstraints": {}
4307
+ },
4308
+ "transcripts": {
4309
+ "name": "transcripts",
4310
+ "columns": {
4311
+ "id": {
4312
+ "name": "id",
4313
+ "type": "text",
4314
+ "primaryKey": true,
4315
+ "notNull": true,
4316
+ "autoincrement": false
4317
+ },
4318
+ "session_id": {
4319
+ "name": "session_id",
4320
+ "type": "text",
4321
+ "primaryKey": false,
4322
+ "notNull": true,
4323
+ "autoincrement": false
4324
+ },
4325
+ "content": {
4326
+ "name": "content",
4327
+ "type": "text",
4328
+ "primaryKey": false,
4329
+ "notNull": true,
4330
+ "autoincrement": false
4331
+ },
4332
+ "archived_at": {
4333
+ "name": "archived_at",
4334
+ "type": "text",
4335
+ "primaryKey": false,
4336
+ "notNull": false,
4337
+ "autoincrement": false
4338
+ },
4339
+ "created_at": {
4340
+ "name": "created_at",
4341
+ "type": "text",
4342
+ "primaryKey": false,
4343
+ "notNull": true,
4344
+ "autoincrement": false
4345
+ },
4346
+ "updated_at": {
4347
+ "name": "updated_at",
4348
+ "type": "text",
4349
+ "primaryKey": false,
4350
+ "notNull": true,
4351
+ "autoincrement": false
4352
+ }
4353
+ },
4354
+ "indexes": {},
4355
+ "foreignKeys": {
4356
+ "transcripts_session_id_sessions_id_fk": {
4357
+ "name": "transcripts_session_id_sessions_id_fk",
4358
+ "tableFrom": "transcripts",
4359
+ "tableTo": "sessions",
4360
+ "columnsFrom": [
4361
+ "session_id"
4362
+ ],
4363
+ "columnsTo": [
4364
+ "id"
4365
+ ],
4366
+ "onDelete": "cascade",
4367
+ "onUpdate": "no action"
4368
+ }
4369
+ },
4370
+ "compositePrimaryKeys": {},
4371
+ "uniqueConstraints": {},
4372
+ "checkConstraints": {}
4373
+ },
4374
+ "users": {
4375
+ "name": "users",
4376
+ "columns": {
4377
+ "id": {
4378
+ "name": "id",
4379
+ "type": "text",
4380
+ "primaryKey": true,
4381
+ "notNull": true,
4382
+ "autoincrement": false
4383
+ },
4384
+ "email": {
4385
+ "name": "email",
4386
+ "type": "text",
4387
+ "primaryKey": false,
4388
+ "notNull": true,
4389
+ "autoincrement": false
4390
+ },
4391
+ "name": {
4392
+ "name": "name",
4393
+ "type": "text",
4394
+ "primaryKey": false,
4395
+ "notNull": false,
4396
+ "autoincrement": false
4397
+ },
4398
+ "created_at": {
4399
+ "name": "created_at",
4400
+ "type": "text",
4401
+ "primaryKey": false,
4402
+ "notNull": true,
4403
+ "autoincrement": false
4404
+ },
4405
+ "updated_at": {
4406
+ "name": "updated_at",
4407
+ "type": "text",
4408
+ "primaryKey": false,
4409
+ "notNull": true,
4410
+ "autoincrement": false
4411
+ }
4412
+ },
4413
+ "indexes": {
4414
+ "users_email_unique": {
4415
+ "name": "users_email_unique",
4416
+ "columns": [
4417
+ "email"
4418
+ ],
4419
+ "isUnique": true
4420
+ }
4421
+ },
4422
+ "foreignKeys": {},
4423
+ "compositePrimaryKeys": {},
4424
+ "uniqueConstraints": {},
4425
+ "checkConstraints": {}
4426
+ },
4427
+ "worktrees": {
4428
+ "name": "worktrees",
4429
+ "columns": {
4430
+ "id": {
4431
+ "name": "id",
4432
+ "type": "text",
4433
+ "primaryKey": true,
4434
+ "notNull": true,
4435
+ "autoincrement": false
4436
+ },
4437
+ "name": {
4438
+ "name": "name",
4439
+ "type": "text",
4440
+ "primaryKey": false,
4441
+ "notNull": true,
4442
+ "autoincrement": false
4443
+ },
4444
+ "branch_name": {
4445
+ "name": "branch_name",
4446
+ "type": "text",
4447
+ "primaryKey": false,
4448
+ "notNull": true,
4449
+ "autoincrement": false
4450
+ },
4451
+ "base_branch": {
4452
+ "name": "base_branch",
4453
+ "type": "text",
4454
+ "primaryKey": false,
4455
+ "notNull": true,
4456
+ "autoincrement": false
4457
+ },
4458
+ "repo_path": {
4459
+ "name": "repo_path",
4460
+ "type": "text",
4461
+ "primaryKey": false,
4462
+ "notNull": true,
4463
+ "autoincrement": false
4464
+ },
4465
+ "worktree_path": {
4466
+ "name": "worktree_path",
4467
+ "type": "text",
4468
+ "primaryKey": false,
4469
+ "notNull": false,
4470
+ "autoincrement": false
4471
+ },
4472
+ "container_id": {
4473
+ "name": "container_id",
4474
+ "type": "text",
4475
+ "primaryKey": false,
4476
+ "notNull": false,
4477
+ "autoincrement": false
4478
+ },
4479
+ "container_port": {
4480
+ "name": "container_port",
4481
+ "type": "integer",
4482
+ "primaryKey": false,
4483
+ "notNull": false,
4484
+ "autoincrement": false
4485
+ },
4486
+ "template_slug": {
4487
+ "name": "template_slug",
4488
+ "type": "text",
4489
+ "primaryKey": false,
4490
+ "notNull": true,
4491
+ "autoincrement": false
4492
+ },
4493
+ "status": {
4494
+ "name": "status",
4495
+ "type": "text",
4496
+ "primaryKey": false,
4497
+ "notNull": true,
4498
+ "autoincrement": false,
4499
+ "default": "'creating'"
4500
+ },
4501
+ "description": {
4502
+ "name": "description",
4503
+ "type": "text",
4504
+ "primaryKey": false,
4505
+ "notNull": false,
4506
+ "autoincrement": false
4507
+ },
4508
+ "devchain_project_id": {
4509
+ "name": "devchain_project_id",
4510
+ "type": "text",
4511
+ "primaryKey": false,
4512
+ "notNull": false,
4513
+ "autoincrement": false
4514
+ },
4515
+ "merge_commit": {
4516
+ "name": "merge_commit",
4517
+ "type": "text",
4518
+ "primaryKey": false,
4519
+ "notNull": false,
4520
+ "autoincrement": false
4521
+ },
4522
+ "merge_conflicts": {
4523
+ "name": "merge_conflicts",
4524
+ "type": "text",
4525
+ "primaryKey": false,
4526
+ "notNull": false,
4527
+ "autoincrement": false
4528
+ },
4529
+ "error_message": {
4530
+ "name": "error_message",
4531
+ "type": "text",
4532
+ "primaryKey": false,
4533
+ "notNull": false,
4534
+ "autoincrement": false
4535
+ },
4536
+ "runtime_type": {
4537
+ "name": "runtime_type",
4538
+ "type": "text",
4539
+ "primaryKey": false,
4540
+ "notNull": true,
4541
+ "autoincrement": false,
4542
+ "default": "'container'"
4543
+ },
4544
+ "process_id": {
4545
+ "name": "process_id",
4546
+ "type": "integer",
4547
+ "primaryKey": false,
4548
+ "notNull": false,
4549
+ "autoincrement": false
4550
+ },
4551
+ "runtime_token": {
4552
+ "name": "runtime_token",
4553
+ "type": "text",
4554
+ "primaryKey": false,
4555
+ "notNull": false,
4556
+ "autoincrement": false
4557
+ },
4558
+ "started_at": {
4559
+ "name": "started_at",
4560
+ "type": "text",
4561
+ "primaryKey": false,
4562
+ "notNull": false,
4563
+ "autoincrement": false
4564
+ },
4565
+ "created_at": {
4566
+ "name": "created_at",
4567
+ "type": "text",
4568
+ "primaryKey": false,
4569
+ "notNull": true,
4570
+ "autoincrement": false
4571
+ },
4572
+ "updated_at": {
4573
+ "name": "updated_at",
4574
+ "type": "text",
4575
+ "primaryKey": false,
4576
+ "notNull": true,
4577
+ "autoincrement": false
4578
+ }
4579
+ },
4580
+ "indexes": {
4581
+ "worktrees_name_unique": {
4582
+ "name": "worktrees_name_unique",
4583
+ "columns": [
4584
+ "name"
4585
+ ],
4586
+ "isUnique": true
4587
+ },
4588
+ "worktrees_status_idx": {
4589
+ "name": "worktrees_status_idx",
4590
+ "columns": [
4591
+ "status"
4592
+ ],
4593
+ "isUnique": false
4594
+ }
4595
+ },
4596
+ "foreignKeys": {},
4597
+ "compositePrimaryKeys": {},
4598
+ "uniqueConstraints": {},
4599
+ "checkConstraints": {}
4600
+ }
4601
+ },
4602
+ "views": {},
4603
+ "enums": {},
4604
+ "_meta": {
4605
+ "schemas": {},
4606
+ "tables": {},
4607
+ "columns": {}
4608
+ },
4609
+ "internal": {
4610
+ "indexes": {
4611
+ "guests_project_name_unique": {
4612
+ "columns": {
4613
+ "\"name\" COLLATE NOCASE": {
4614
+ "isExpression": true
4615
+ }
4616
+ }
4617
+ }
4618
+ }
4619
+ }
4620
+ }