@assistkick/create 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/src/scaffolder.d.ts +12 -1
  2. package/dist/src/scaffolder.js +40 -3
  3. package/dist/src/scaffolder.js.map +1 -1
  4. package/package.json +1 -1
  5. package/templates/assistkick-product-system/package.json +1 -1
  6. package/templates/assistkick-product-system/packages/backend/package.json +1 -0
  7. package/templates/assistkick-product-system/packages/backend/src/mcp/permission_mcp_server.ts +196 -0
  8. package/templates/assistkick-product-system/packages/backend/src/routes/agents.ts +31 -7
  9. package/templates/assistkick-product-system/packages/backend/src/routes/auth.ts +15 -12
  10. package/templates/assistkick-product-system/packages/backend/src/routes/chat_files.test.ts +95 -0
  11. package/templates/assistkick-product-system/packages/backend/src/routes/chat_files.ts +97 -0
  12. package/templates/assistkick-product-system/packages/backend/src/routes/chat_permission.ts +94 -0
  13. package/templates/assistkick-product-system/packages/backend/src/routes/chat_sessions.ts +189 -0
  14. package/templates/assistkick-product-system/packages/backend/src/routes/chat_upload.test.ts +131 -0
  15. package/templates/assistkick-product-system/packages/backend/src/routes/chat_upload.ts +94 -0
  16. package/templates/assistkick-product-system/packages/backend/src/routes/files.test.ts +12 -3
  17. package/templates/assistkick-product-system/packages/backend/src/routes/files.ts +2 -2
  18. package/templates/assistkick-product-system/packages/backend/src/routes/git.ts +390 -22
  19. package/templates/assistkick-product-system/packages/backend/src/routes/git_branches.test.ts +306 -0
  20. package/templates/assistkick-product-system/packages/backend/src/routes/git_connect.test.ts +133 -0
  21. package/templates/assistkick-product-system/packages/backend/src/routes/pipeline.ts +66 -9
  22. package/templates/assistkick-product-system/packages/backend/src/routes/preview.ts +204 -0
  23. package/templates/assistkick-product-system/packages/backend/src/routes/projects.test.ts +205 -0
  24. package/templates/assistkick-product-system/packages/backend/src/routes/projects.ts +37 -9
  25. package/templates/assistkick-product-system/packages/backend/src/routes/skills.test.ts +139 -0
  26. package/templates/assistkick-product-system/packages/backend/src/routes/skills.ts +95 -0
  27. package/templates/assistkick-product-system/packages/backend/src/routes/terminal.ts +5 -4
  28. package/templates/assistkick-product-system/packages/backend/src/routes/users.ts +4 -4
  29. package/templates/assistkick-product-system/packages/backend/src/routes/video.ts +8 -8
  30. package/templates/assistkick-product-system/packages/backend/src/routes/workflow_groups.ts +5 -5
  31. package/templates/assistkick-product-system/packages/backend/src/routes/workflows.ts +6 -6
  32. package/templates/assistkick-product-system/packages/backend/src/server.ts +107 -27
  33. package/templates/assistkick-product-system/packages/backend/src/services/agent_service.test.ts +105 -203
  34. package/templates/assistkick-product-system/packages/backend/src/services/agent_service.ts +76 -266
  35. package/templates/assistkick-product-system/packages/backend/src/services/chat_cli_bridge.test.ts +427 -0
  36. package/templates/assistkick-product-system/packages/backend/src/services/chat_cli_bridge.ts +345 -0
  37. package/templates/assistkick-product-system/packages/backend/src/services/chat_message_repository.test.ts +170 -0
  38. package/templates/assistkick-product-system/packages/backend/src/services/chat_message_repository.ts +106 -0
  39. package/templates/assistkick-product-system/packages/backend/src/services/chat_session_service.test.ts +217 -0
  40. package/templates/assistkick-product-system/packages/backend/src/services/chat_session_service.ts +188 -0
  41. package/templates/assistkick-product-system/packages/backend/src/services/chat_ws_handler.test.ts +1243 -0
  42. package/templates/assistkick-product-system/packages/backend/src/services/chat_ws_handler.ts +894 -0
  43. package/templates/assistkick-product-system/packages/backend/src/services/coherence-review.ts +3 -3
  44. package/templates/assistkick-product-system/packages/backend/src/services/dev_command_detector.test.ts +85 -0
  45. package/templates/assistkick-product-system/packages/backend/src/services/dev_command_detector.ts +54 -0
  46. package/templates/assistkick-product-system/packages/backend/src/services/email_service.ts +13 -10
  47. package/templates/assistkick-product-system/packages/backend/src/services/init.ts +11 -3
  48. package/templates/assistkick-product-system/packages/backend/src/services/invitation_service.ts +1 -1
  49. package/templates/assistkick-product-system/packages/backend/src/services/password_reset_service.ts +1 -1
  50. package/templates/assistkick-product-system/packages/backend/src/services/permission_service.test.ts +243 -0
  51. package/templates/assistkick-product-system/packages/backend/src/services/permission_service.ts +259 -0
  52. package/templates/assistkick-product-system/packages/backend/src/services/preview_server_manager.test.ts +172 -0
  53. package/templates/assistkick-product-system/packages/backend/src/services/preview_server_manager.ts +225 -0
  54. package/templates/assistkick-product-system/packages/backend/src/services/project_service.test.ts +29 -0
  55. package/templates/assistkick-product-system/packages/backend/src/services/project_service.ts +17 -0
  56. package/templates/assistkick-product-system/packages/backend/src/services/project_workspace_service.test.ts +255 -0
  57. package/templates/assistkick-product-system/packages/backend/src/services/project_workspace_service.ts +300 -25
  58. package/templates/assistkick-product-system/packages/backend/src/services/pty_session_manager.test.ts +44 -0
  59. package/templates/assistkick-product-system/packages/backend/src/services/pty_session_manager.ts +62 -7
  60. package/templates/assistkick-product-system/packages/backend/src/services/ssh_key_service.test.ts +77 -6
  61. package/templates/assistkick-product-system/packages/backend/src/services/ssh_key_service.ts +129 -8
  62. package/templates/assistkick-product-system/packages/backend/src/services/terminal_ws_handler.ts +2 -1
  63. package/templates/assistkick-product-system/packages/backend/src/services/title_generator_service.test.ts +45 -0
  64. package/templates/assistkick-product-system/packages/backend/src/services/title_generator_service.ts +157 -0
  65. package/templates/assistkick-product-system/packages/backend/src/services/tts_service.ts +4 -3
  66. package/templates/assistkick-product-system/packages/backend/src/services/video_render_service.ts +3 -3
  67. package/templates/assistkick-product-system/packages/frontend/package.json +5 -0
  68. package/templates/assistkick-product-system/packages/frontend/src/App.tsx +2 -0
  69. package/templates/assistkick-product-system/packages/frontend/src/api/client.ts +336 -5
  70. package/templates/assistkick-product-system/packages/frontend/src/components/AgentsView.tsx +192 -12
  71. package/templates/assistkick-product-system/packages/frontend/src/components/AttachmentPreviewList.tsx +98 -0
  72. package/templates/assistkick-product-system/packages/frontend/src/components/AutocompleteDropdown.tsx +65 -0
  73. package/templates/assistkick-product-system/packages/frontend/src/components/ChatAttachButton.tsx +56 -0
  74. package/templates/assistkick-product-system/packages/frontend/src/components/ChatDropZone.tsx +80 -0
  75. package/templates/assistkick-product-system/packages/frontend/src/components/ChatMessageBubble.tsx +155 -0
  76. package/templates/assistkick-product-system/packages/frontend/src/components/ChatMessageContent.tsx +182 -0
  77. package/templates/assistkick-product-system/packages/frontend/src/components/ChatMessageInput.tsx +233 -0
  78. package/templates/assistkick-product-system/packages/frontend/src/components/ChatSessionSidebar.tsx +218 -0
  79. package/templates/assistkick-product-system/packages/frontend/src/components/ChatStopButton.tsx +32 -0
  80. package/templates/assistkick-product-system/packages/frontend/src/components/ChatTodoSidebar.tsx +113 -0
  81. package/templates/assistkick-product-system/packages/frontend/src/components/ChatView.tsx +842 -0
  82. package/templates/assistkick-product-system/packages/frontend/src/components/CommitMessageModal.tsx +82 -0
  83. package/templates/assistkick-product-system/packages/frontend/src/components/DiagramOverlay.tsx +160 -0
  84. package/templates/assistkick-product-system/packages/frontend/src/components/EditorTabBar.tsx +5 -5
  85. package/templates/assistkick-product-system/packages/frontend/src/components/FileTree.tsx +9 -10
  86. package/templates/assistkick-product-system/packages/frontend/src/components/FileTreeInlineInput.tsx +5 -5
  87. package/templates/assistkick-product-system/packages/frontend/src/components/FilesView.tsx +112 -41
  88. package/templates/assistkick-product-system/packages/frontend/src/components/GraphLegend.tsx +2 -2
  89. package/templates/assistkick-product-system/packages/frontend/src/components/HighlightedText.tsx +87 -0
  90. package/templates/assistkick-product-system/packages/frontend/src/components/ImageLightbox.tsx +192 -0
  91. package/templates/assistkick-product-system/packages/frontend/src/components/KanbanView.tsx +2 -2
  92. package/templates/assistkick-product-system/packages/frontend/src/components/MentionPill.tsx +33 -0
  93. package/templates/assistkick-product-system/packages/frontend/src/components/MermaidBlock.tsx +148 -0
  94. package/templates/assistkick-product-system/packages/frontend/src/components/PermissionDialog.tsx +91 -0
  95. package/templates/assistkick-product-system/packages/frontend/src/components/PermissionModeSelector.tsx +229 -0
  96. package/templates/assistkick-product-system/packages/frontend/src/components/ProjectSelector.tsx +249 -83
  97. package/templates/assistkick-product-system/packages/frontend/src/components/QueuedMessageBubble.tsx +38 -0
  98. package/templates/assistkick-product-system/packages/frontend/src/components/SidePanel.tsx +212 -117
  99. package/templates/assistkick-product-system/packages/frontend/src/components/SystemPromptAccordion.tsx +48 -0
  100. package/templates/assistkick-product-system/packages/frontend/src/components/TaskIcon.tsx +11 -0
  101. package/templates/assistkick-product-system/packages/frontend/src/components/TerminalView.tsx +25 -9
  102. package/templates/assistkick-product-system/packages/frontend/src/components/ToolDiffView.tsx +114 -0
  103. package/templates/assistkick-product-system/packages/frontend/src/components/ToolResultCard.tsx +87 -0
  104. package/templates/assistkick-product-system/packages/frontend/src/components/ToolUseCard.tsx +149 -0
  105. package/templates/assistkick-product-system/packages/frontend/src/components/Toolbar.tsx +25 -8
  106. package/templates/assistkick-product-system/packages/frontend/src/components/UnifiedGitWidget.tsx +722 -0
  107. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/GroupNode.tsx +2 -0
  108. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/NodePalette.tsx +2 -1
  109. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/ProgrammableNode.tsx +178 -0
  110. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/WorkflowCanvas.tsx +3 -0
  111. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/WorkflowMonitorModal.tsx +103 -9
  112. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/monitor_nodes.tsx +26 -2
  113. package/templates/assistkick-product-system/packages/frontend/src/components/workflow/workflow_types.ts +42 -1
  114. package/templates/assistkick-product-system/packages/frontend/src/hooks/useDocumentTitle.ts +11 -0
  115. package/templates/assistkick-product-system/packages/frontend/src/hooks/useProjects.ts +1 -0
  116. package/templates/assistkick-product-system/packages/frontend/src/hooks/use_chat_stream.ts +826 -0
  117. package/templates/assistkick-product-system/packages/frontend/src/hooks/use_file_tree_cache.ts +69 -0
  118. package/templates/assistkick-product-system/packages/frontend/src/hooks/use_mention_autocomplete.ts +284 -0
  119. package/templates/assistkick-product-system/packages/frontend/src/lib/attachment_manager.test.ts +183 -0
  120. package/templates/assistkick-product-system/packages/frontend/src/lib/attachment_manager.ts +150 -0
  121. package/templates/assistkick-product-system/packages/frontend/src/lib/chat_message_helpers.test.ts +305 -0
  122. package/templates/assistkick-product-system/packages/frontend/src/lib/chat_message_helpers.ts +113 -0
  123. package/templates/assistkick-product-system/packages/frontend/src/lib/context_usage_helpers.test.ts +157 -0
  124. package/templates/assistkick-product-system/packages/frontend/src/lib/context_usage_helpers.ts +95 -0
  125. package/templates/assistkick-product-system/packages/frontend/src/lib/mermaid_helpers.test.ts +65 -0
  126. package/templates/assistkick-product-system/packages/frontend/src/lib/mermaid_helpers.ts +110 -0
  127. package/templates/assistkick-product-system/packages/frontend/src/lib/message_queue.ts +66 -0
  128. package/templates/assistkick-product-system/packages/frontend/src/lib/tool_use_summary.test.ts +124 -0
  129. package/templates/assistkick-product-system/packages/frontend/src/lib/tool_use_summary.ts +112 -0
  130. package/templates/assistkick-product-system/packages/frontend/src/routes/AgentsRoute.tsx +2 -0
  131. package/templates/assistkick-product-system/packages/frontend/src/routes/ChatRoute.tsx +8 -0
  132. package/templates/assistkick-product-system/packages/frontend/src/routes/CoherenceRoute.tsx +2 -0
  133. package/templates/assistkick-product-system/packages/frontend/src/routes/DashboardLayout.tsx +0 -4
  134. package/templates/assistkick-product-system/packages/frontend/src/routes/DesignSystemRoute.tsx +2 -0
  135. package/templates/assistkick-product-system/packages/frontend/src/routes/FilesRoute.tsx +2 -0
  136. package/templates/assistkick-product-system/packages/frontend/src/routes/GraphRoute.tsx +2 -0
  137. package/templates/assistkick-product-system/packages/frontend/src/routes/KanbanRoute.tsx +2 -0
  138. package/templates/assistkick-product-system/packages/frontend/src/routes/TerminalRoute.tsx +2 -0
  139. package/templates/assistkick-product-system/packages/frontend/src/routes/UsersRoute.tsx +2 -0
  140. package/templates/assistkick-product-system/packages/frontend/src/routes/VideographyRoute.tsx +2 -0
  141. package/templates/assistkick-product-system/packages/frontend/src/routes/WorkflowsRoute.tsx +2 -0
  142. package/templates/assistkick-product-system/packages/frontend/src/routes/accept_invitation.tsx +2 -0
  143. package/templates/assistkick-product-system/packages/frontend/src/routes/forgot_password.tsx +2 -0
  144. package/templates/assistkick-product-system/packages/frontend/src/routes/login.tsx +2 -0
  145. package/templates/assistkick-product-system/packages/frontend/src/routes/register.tsx +2 -0
  146. package/templates/assistkick-product-system/packages/frontend/src/routes/reset_password.tsx +2 -0
  147. package/templates/assistkick-product-system/packages/frontend/src/stores/useAttachmentStore.ts +66 -0
  148. package/templates/assistkick-product-system/packages/frontend/src/stores/useChatSessionStore.ts +107 -0
  149. package/templates/assistkick-product-system/packages/frontend/src/stores/useMessageQueueStore.ts +110 -0
  150. package/templates/assistkick-product-system/packages/frontend/src/stores/usePreviewStore.ts +78 -0
  151. package/templates/assistkick-product-system/packages/frontend/src/stores/useProjectStore.ts +7 -0
  152. package/templates/assistkick-product-system/packages/frontend/src/stores/useSidePanelStore.ts +6 -1
  153. package/templates/assistkick-product-system/packages/frontend/src/styles/index.css +30 -357
  154. package/templates/assistkick-product-system/packages/frontend/src/utils/parse_node_markdown.test.ts +115 -0
  155. package/templates/assistkick-product-system/packages/frontend/src/utils/parse_node_markdown.ts +91 -0
  156. package/templates/assistkick-product-system/packages/frontend/src/utils/preview_utils.test.ts +30 -0
  157. package/templates/assistkick-product-system/packages/frontend/src/utils/preview_utils.ts +3 -0
  158. package/templates/assistkick-product-system/packages/shared/db/migrations/0015_magenta_jazinda.sql +1 -0
  159. package/templates/assistkick-product-system/packages/shared/db/migrations/0016_giant_xorn.sql +1 -0
  160. package/templates/assistkick-product-system/packages/shared/db/migrations/0017_sloppy_mentor.sql +6 -0
  161. package/templates/assistkick-product-system/packages/shared/db/migrations/0018_vengeful_kabuki.sql +9 -0
  162. package/templates/assistkick-product-system/packages/shared/db/migrations/0019_careful_sentinels.sql +8 -0
  163. package/templates/assistkick-product-system/packages/shared/db/migrations/0020_clever_spot.sql +27 -0
  164. package/templates/assistkick-product-system/packages/shared/db/migrations/0021_graceful_hex.sql +1 -0
  165. package/templates/assistkick-product-system/packages/shared/db/migrations/0022_short_kingpin.sql +1 -0
  166. package/templates/assistkick-product-system/packages/shared/db/migrations/0023_ambiguous_sharon_carter.sql +1 -0
  167. package/templates/assistkick-product-system/packages/shared/db/migrations/0024_fat_unus.sql +1 -0
  168. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0015_snapshot.json +1552 -0
  169. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0016_snapshot.json +1560 -0
  170. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0017_snapshot.json +1598 -0
  171. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0018_snapshot.json +1657 -0
  172. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0019_snapshot.json +1709 -0
  173. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0020_snapshot.json +1733 -0
  174. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0021_snapshot.json +1740 -0
  175. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0022_snapshot.json +1755 -0
  176. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0023_snapshot.json +1762 -0
  177. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0024_snapshot.json +1769 -0
  178. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/_journal.json +70 -0
  179. package/templates/assistkick-product-system/packages/shared/db/schema.ts +40 -1
  180. package/templates/assistkick-product-system/packages/shared/lib/claude-service.test.ts +236 -0
  181. package/templates/assistkick-product-system/packages/shared/lib/claude-service.ts +46 -5
  182. package/templates/assistkick-product-system/packages/shared/lib/git_workflow.ts +65 -39
  183. package/templates/assistkick-product-system/packages/shared/lib/programmable_node_executor.test.ts +173 -0
  184. package/templates/assistkick-product-system/packages/shared/lib/programmable_node_executor.ts +213 -0
  185. package/templates/assistkick-product-system/packages/shared/lib/validator.test.ts +70 -0
  186. package/templates/assistkick-product-system/packages/shared/lib/validator.ts +17 -1
  187. package/templates/assistkick-product-system/packages/shared/lib/workflow_engine.test.ts +803 -27
  188. package/templates/assistkick-product-system/packages/shared/lib/workflow_engine.ts +502 -68
  189. package/templates/assistkick-product-system/packages/shared/lib/workflow_orchestrator.ts +4 -4
  190. package/templates/assistkick-product-system/packages/shared/package.json +2 -1
  191. package/templates/assistkick-product-system/packages/shared/test_fixtures/hanging_stream.mjs +46 -0
  192. package/templates/assistkick-product-system/packages/shared/tools/add_node.test.ts +44 -0
  193. package/templates/assistkick-product-system/packages/shared/tools/add_node.ts +7 -0
  194. package/templates/assistkick-product-system/packages/shared/tools/remove_node.ts +2 -1
  195. package/templates/assistkick-product-system/packages/shared/tools/resolve_question.ts +2 -1
  196. package/templates/assistkick-product-system/packages/shared/tools/update_node.ts +2 -1
  197. package/templates/assistkick-product-system/tests/message_queue.test.ts +178 -0
  198. package/templates/assistkick-product-system/tests/message_queue_per_session.test.ts +143 -0
  199. package/templates/skills/assistkick-bootstrap/SKILL.md +26 -26
  200. package/templates/skills/assistkick-code-reviewer/SKILL.md +45 -46
  201. package/templates/skills/assistkick-db-explorer/SKILL.md +13 -13
  202. package/templates/skills/assistkick-debugger/SKILL.md +23 -23
  203. package/templates/skills/assistkick-developer/SKILL.md +59 -63
  204. package/templates/skills/assistkick-interview/SKILL.md +26 -26
  205. package/templates/skills/assistkick-video-composition-agent/SKILL.md +231 -0
  206. package/templates/skills/assistkick-video-script-writer/SKILL.md +136 -0
@@ -0,0 +1,1598 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "09b1d48f-ae75-4d75-935c-885391d5757d",
5
+ "prevId": "2261364e-70c3-49fd-8efb-bf15a0c1f135",
6
+ "tables": {
7
+ "agents": {
8
+ "name": "agents",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "name": {
18
+ "name": "name",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "prompt_template": {
25
+ "name": "prompt_template",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "project_id": {
32
+ "name": "project_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "is_default": {
39
+ "name": "is_default",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": 0
45
+ },
46
+ "created_at": {
47
+ "name": "created_at",
48
+ "type": "text",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false
52
+ },
53
+ "updated_at": {
54
+ "name": "updated_at",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ }
60
+ },
61
+ "indexes": {},
62
+ "foreignKeys": {},
63
+ "compositePrimaryKeys": {},
64
+ "uniqueConstraints": {},
65
+ "checkConstraints": {}
66
+ },
67
+ "chat_permission_rules": {
68
+ "name": "chat_permission_rules",
69
+ "columns": {
70
+ "id": {
71
+ "name": "id",
72
+ "type": "text",
73
+ "primaryKey": true,
74
+ "notNull": true,
75
+ "autoincrement": false
76
+ },
77
+ "project_id": {
78
+ "name": "project_id",
79
+ "type": "text",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "autoincrement": false
83
+ },
84
+ "tool_name": {
85
+ "name": "tool_name",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "created_at": {
92
+ "name": "created_at",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": true,
96
+ "autoincrement": false
97
+ }
98
+ },
99
+ "indexes": {},
100
+ "foreignKeys": {},
101
+ "compositePrimaryKeys": {},
102
+ "uniqueConstraints": {},
103
+ "checkConstraints": {}
104
+ },
105
+ "coherence_reviews": {
106
+ "name": "coherence_reviews",
107
+ "columns": {
108
+ "id": {
109
+ "name": "id",
110
+ "type": "text",
111
+ "primaryKey": true,
112
+ "notNull": true,
113
+ "autoincrement": false
114
+ },
115
+ "type": {
116
+ "name": "type",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": true,
120
+ "autoincrement": false
121
+ },
122
+ "from_id": {
123
+ "name": "from_id",
124
+ "type": "text",
125
+ "primaryKey": false,
126
+ "notNull": false,
127
+ "autoincrement": false
128
+ },
129
+ "to_id": {
130
+ "name": "to_id",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": false,
134
+ "autoincrement": false
135
+ },
136
+ "relation": {
137
+ "name": "relation",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": false,
141
+ "autoincrement": false
142
+ },
143
+ "proposed_node_type": {
144
+ "name": "proposed_node_type",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": false,
148
+ "autoincrement": false
149
+ },
150
+ "proposed_node_name": {
151
+ "name": "proposed_node_name",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ },
157
+ "target_node_id": {
158
+ "name": "target_node_id",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": false,
162
+ "autoincrement": false
163
+ },
164
+ "proposed_description": {
165
+ "name": "proposed_description",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false,
169
+ "autoincrement": false
170
+ },
171
+ "confidence": {
172
+ "name": "confidence",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ },
178
+ "batch_id": {
179
+ "name": "batch_id",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": false,
183
+ "autoincrement": false
184
+ },
185
+ "reasoning": {
186
+ "name": "reasoning",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "status": {
193
+ "name": "status",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ },
199
+ "created_at": {
200
+ "name": "created_at",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "autoincrement": false
205
+ },
206
+ "resolved_at": {
207
+ "name": "resolved_at",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": false,
211
+ "autoincrement": false
212
+ },
213
+ "project_id": {
214
+ "name": "project_id",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false,
218
+ "autoincrement": false
219
+ }
220
+ },
221
+ "indexes": {},
222
+ "foreignKeys": {},
223
+ "compositePrimaryKeys": {},
224
+ "uniqueConstraints": {},
225
+ "checkConstraints": {}
226
+ },
227
+ "edges": {
228
+ "name": "edges",
229
+ "columns": {
230
+ "from_id": {
231
+ "name": "from_id",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true,
235
+ "autoincrement": false
236
+ },
237
+ "relation": {
238
+ "name": "relation",
239
+ "type": "text",
240
+ "primaryKey": false,
241
+ "notNull": true,
242
+ "autoincrement": false
243
+ },
244
+ "to_id": {
245
+ "name": "to_id",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true,
249
+ "autoincrement": false
250
+ },
251
+ "project_id": {
252
+ "name": "project_id",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": false,
256
+ "autoincrement": false
257
+ }
258
+ },
259
+ "indexes": {},
260
+ "foreignKeys": {},
261
+ "compositePrimaryKeys": {
262
+ "edges_from_id_relation_to_id_pk": {
263
+ "columns": [
264
+ "from_id",
265
+ "relation",
266
+ "to_id"
267
+ ],
268
+ "name": "edges_from_id_relation_to_id_pk"
269
+ }
270
+ },
271
+ "uniqueConstraints": {},
272
+ "checkConstraints": {}
273
+ },
274
+ "invitations": {
275
+ "name": "invitations",
276
+ "columns": {
277
+ "id": {
278
+ "name": "id",
279
+ "type": "text",
280
+ "primaryKey": true,
281
+ "notNull": true,
282
+ "autoincrement": false
283
+ },
284
+ "email": {
285
+ "name": "email",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": true,
289
+ "autoincrement": false
290
+ },
291
+ "token_hash": {
292
+ "name": "token_hash",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true,
296
+ "autoincrement": false
297
+ },
298
+ "invited_by": {
299
+ "name": "invited_by",
300
+ "type": "text",
301
+ "primaryKey": false,
302
+ "notNull": true,
303
+ "autoincrement": false
304
+ },
305
+ "expires_at": {
306
+ "name": "expires_at",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": true,
310
+ "autoincrement": false
311
+ },
312
+ "accepted_at": {
313
+ "name": "accepted_at",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": false,
317
+ "autoincrement": false
318
+ },
319
+ "created_at": {
320
+ "name": "created_at",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "autoincrement": false
325
+ }
326
+ },
327
+ "indexes": {},
328
+ "foreignKeys": {
329
+ "invitations_invited_by_users_id_fk": {
330
+ "name": "invitations_invited_by_users_id_fk",
331
+ "tableFrom": "invitations",
332
+ "tableTo": "users",
333
+ "columnsFrom": [
334
+ "invited_by"
335
+ ],
336
+ "columnsTo": [
337
+ "id"
338
+ ],
339
+ "onDelete": "no action",
340
+ "onUpdate": "no action"
341
+ }
342
+ },
343
+ "compositePrimaryKeys": {},
344
+ "uniqueConstraints": {},
345
+ "checkConstraints": {}
346
+ },
347
+ "kanban": {
348
+ "name": "kanban",
349
+ "columns": {
350
+ "node_id": {
351
+ "name": "node_id",
352
+ "type": "text",
353
+ "primaryKey": true,
354
+ "notNull": true,
355
+ "autoincrement": false
356
+ },
357
+ "column_name": {
358
+ "name": "column_name",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false
363
+ },
364
+ "position": {
365
+ "name": "position",
366
+ "type": "integer",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "project_id": {
372
+ "name": "project_id",
373
+ "type": "text",
374
+ "primaryKey": false,
375
+ "notNull": false,
376
+ "autoincrement": false
377
+ }
378
+ },
379
+ "indexes": {},
380
+ "foreignKeys": {
381
+ "kanban_node_id_nodes_id_fk": {
382
+ "name": "kanban_node_id_nodes_id_fk",
383
+ "tableFrom": "kanban",
384
+ "tableTo": "nodes",
385
+ "columnsFrom": [
386
+ "node_id"
387
+ ],
388
+ "columnsTo": [
389
+ "id"
390
+ ],
391
+ "onDelete": "no action",
392
+ "onUpdate": "no action"
393
+ }
394
+ },
395
+ "compositePrimaryKeys": {},
396
+ "uniqueConstraints": {},
397
+ "checkConstraints": {}
398
+ },
399
+ "nodes": {
400
+ "name": "nodes",
401
+ "columns": {
402
+ "id": {
403
+ "name": "id",
404
+ "type": "text",
405
+ "primaryKey": true,
406
+ "notNull": true,
407
+ "autoincrement": false
408
+ },
409
+ "type": {
410
+ "name": "type",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "autoincrement": false
415
+ },
416
+ "name": {
417
+ "name": "name",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false
422
+ },
423
+ "status": {
424
+ "name": "status",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "autoincrement": false
429
+ },
430
+ "priority": {
431
+ "name": "priority",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true,
435
+ "autoincrement": false
436
+ },
437
+ "completeness": {
438
+ "name": "completeness",
439
+ "type": "real",
440
+ "primaryKey": false,
441
+ "notNull": true,
442
+ "autoincrement": false,
443
+ "default": 0
444
+ },
445
+ "open_questions_count": {
446
+ "name": "open_questions_count",
447
+ "type": "integer",
448
+ "primaryKey": false,
449
+ "notNull": true,
450
+ "autoincrement": false,
451
+ "default": 0
452
+ },
453
+ "kind": {
454
+ "name": "kind",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false,
458
+ "autoincrement": false
459
+ },
460
+ "feature_type": {
461
+ "name": "feature_type",
462
+ "type": "text",
463
+ "primaryKey": false,
464
+ "notNull": false,
465
+ "autoincrement": false
466
+ },
467
+ "created_at": {
468
+ "name": "created_at",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": true,
472
+ "autoincrement": false
473
+ },
474
+ "updated_at": {
475
+ "name": "updated_at",
476
+ "type": "text",
477
+ "primaryKey": false,
478
+ "notNull": true,
479
+ "autoincrement": false
480
+ },
481
+ "body": {
482
+ "name": "body",
483
+ "type": "text",
484
+ "primaryKey": false,
485
+ "notNull": false,
486
+ "autoincrement": false
487
+ },
488
+ "project_id": {
489
+ "name": "project_id",
490
+ "type": "text",
491
+ "primaryKey": false,
492
+ "notNull": false,
493
+ "autoincrement": false
494
+ }
495
+ },
496
+ "indexes": {},
497
+ "foreignKeys": {},
498
+ "compositePrimaryKeys": {},
499
+ "uniqueConstraints": {},
500
+ "checkConstraints": {}
501
+ },
502
+ "password_reset_tokens": {
503
+ "name": "password_reset_tokens",
504
+ "columns": {
505
+ "id": {
506
+ "name": "id",
507
+ "type": "text",
508
+ "primaryKey": true,
509
+ "notNull": true,
510
+ "autoincrement": false
511
+ },
512
+ "user_id": {
513
+ "name": "user_id",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "token_hash": {
520
+ "name": "token_hash",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "expires_at": {
527
+ "name": "expires_at",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "autoincrement": false
532
+ },
533
+ "created_at": {
534
+ "name": "created_at",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "autoincrement": false
539
+ },
540
+ "used_at": {
541
+ "name": "used_at",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false,
545
+ "autoincrement": false
546
+ }
547
+ },
548
+ "indexes": {},
549
+ "foreignKeys": {
550
+ "password_reset_tokens_user_id_users_id_fk": {
551
+ "name": "password_reset_tokens_user_id_users_id_fk",
552
+ "tableFrom": "password_reset_tokens",
553
+ "tableTo": "users",
554
+ "columnsFrom": [
555
+ "user_id"
556
+ ],
557
+ "columnsTo": [
558
+ "id"
559
+ ],
560
+ "onDelete": "no action",
561
+ "onUpdate": "no action"
562
+ }
563
+ },
564
+ "compositePrimaryKeys": {},
565
+ "uniqueConstraints": {},
566
+ "checkConstraints": {}
567
+ },
568
+ "pipeline_outputs": {
569
+ "name": "pipeline_outputs",
570
+ "columns": {
571
+ "id": {
572
+ "name": "id",
573
+ "type": "text",
574
+ "primaryKey": true,
575
+ "notNull": true,
576
+ "autoincrement": false
577
+ },
578
+ "feature_id": {
579
+ "name": "feature_id",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true,
583
+ "autoincrement": false
584
+ },
585
+ "stage": {
586
+ "name": "stage",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": true,
590
+ "autoincrement": false
591
+ },
592
+ "cycle": {
593
+ "name": "cycle",
594
+ "type": "integer",
595
+ "primaryKey": false,
596
+ "notNull": true,
597
+ "autoincrement": false
598
+ },
599
+ "output": {
600
+ "name": "output",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": true,
604
+ "autoincrement": false
605
+ },
606
+ "created_at": {
607
+ "name": "created_at",
608
+ "type": "text",
609
+ "primaryKey": false,
610
+ "notNull": true,
611
+ "autoincrement": false
612
+ },
613
+ "project_id": {
614
+ "name": "project_id",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": false,
618
+ "autoincrement": false
619
+ }
620
+ },
621
+ "indexes": {},
622
+ "foreignKeys": {},
623
+ "compositePrimaryKeys": {},
624
+ "uniqueConstraints": {},
625
+ "checkConstraints": {}
626
+ },
627
+ "pipeline_state": {
628
+ "name": "pipeline_state",
629
+ "columns": {
630
+ "feature_id": {
631
+ "name": "feature_id",
632
+ "type": "text",
633
+ "primaryKey": true,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "status": {
638
+ "name": "status",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "autoincrement": false
643
+ },
644
+ "cycle": {
645
+ "name": "cycle",
646
+ "type": "integer",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "autoincrement": false,
650
+ "default": 1
651
+ },
652
+ "tasks_json": {
653
+ "name": "tasks_json",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": false,
657
+ "autoincrement": false
658
+ },
659
+ "tool_calls_json": {
660
+ "name": "tool_calls_json",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": false,
664
+ "autoincrement": false
665
+ },
666
+ "work_summaries_json": {
667
+ "name": "work_summaries_json",
668
+ "type": "text",
669
+ "primaryKey": false,
670
+ "notNull": false,
671
+ "autoincrement": false
672
+ },
673
+ "stage_stats_json": {
674
+ "name": "stage_stats_json",
675
+ "type": "text",
676
+ "primaryKey": false,
677
+ "notNull": false,
678
+ "autoincrement": false
679
+ },
680
+ "error": {
681
+ "name": "error",
682
+ "type": "text",
683
+ "primaryKey": false,
684
+ "notNull": false,
685
+ "autoincrement": false
686
+ },
687
+ "updated_at": {
688
+ "name": "updated_at",
689
+ "type": "text",
690
+ "primaryKey": false,
691
+ "notNull": true,
692
+ "autoincrement": false
693
+ },
694
+ "project_id": {
695
+ "name": "project_id",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": false,
699
+ "autoincrement": false
700
+ }
701
+ },
702
+ "indexes": {},
703
+ "foreignKeys": {},
704
+ "compositePrimaryKeys": {},
705
+ "uniqueConstraints": {},
706
+ "checkConstraints": {}
707
+ },
708
+ "projects": {
709
+ "name": "projects",
710
+ "columns": {
711
+ "id": {
712
+ "name": "id",
713
+ "type": "text",
714
+ "primaryKey": true,
715
+ "notNull": true,
716
+ "autoincrement": false
717
+ },
718
+ "name": {
719
+ "name": "name",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": true,
723
+ "autoincrement": false
724
+ },
725
+ "type": {
726
+ "name": "type",
727
+ "type": "text",
728
+ "primaryKey": false,
729
+ "notNull": true,
730
+ "autoincrement": false,
731
+ "default": "'software'"
732
+ },
733
+ "is_default": {
734
+ "name": "is_default",
735
+ "type": "integer",
736
+ "primaryKey": false,
737
+ "notNull": true,
738
+ "autoincrement": false,
739
+ "default": 0
740
+ },
741
+ "archived_at": {
742
+ "name": "archived_at",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": false,
746
+ "autoincrement": false
747
+ },
748
+ "repo_url": {
749
+ "name": "repo_url",
750
+ "type": "text",
751
+ "primaryKey": false,
752
+ "notNull": false,
753
+ "autoincrement": false
754
+ },
755
+ "github_installation_id": {
756
+ "name": "github_installation_id",
757
+ "type": "text",
758
+ "primaryKey": false,
759
+ "notNull": false,
760
+ "autoincrement": false
761
+ },
762
+ "github_repo_full_name": {
763
+ "name": "github_repo_full_name",
764
+ "type": "text",
765
+ "primaryKey": false,
766
+ "notNull": false,
767
+ "autoincrement": false
768
+ },
769
+ "base_branch": {
770
+ "name": "base_branch",
771
+ "type": "text",
772
+ "primaryKey": false,
773
+ "notNull": false,
774
+ "autoincrement": false
775
+ },
776
+ "git_auth_method": {
777
+ "name": "git_auth_method",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": false,
781
+ "autoincrement": false
782
+ },
783
+ "ssh_private_key_encrypted": {
784
+ "name": "ssh_private_key_encrypted",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": false,
788
+ "autoincrement": false
789
+ },
790
+ "ssh_public_key": {
791
+ "name": "ssh_public_key",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": false,
795
+ "autoincrement": false
796
+ },
797
+ "created_at": {
798
+ "name": "created_at",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": true,
802
+ "autoincrement": false
803
+ },
804
+ "updated_at": {
805
+ "name": "updated_at",
806
+ "type": "text",
807
+ "primaryKey": false,
808
+ "notNull": true,
809
+ "autoincrement": false
810
+ }
811
+ },
812
+ "indexes": {},
813
+ "foreignKeys": {},
814
+ "compositePrimaryKeys": {},
815
+ "uniqueConstraints": {},
816
+ "checkConstraints": {}
817
+ },
818
+ "refresh_tokens": {
819
+ "name": "refresh_tokens",
820
+ "columns": {
821
+ "id": {
822
+ "name": "id",
823
+ "type": "text",
824
+ "primaryKey": true,
825
+ "notNull": true,
826
+ "autoincrement": false
827
+ },
828
+ "user_id": {
829
+ "name": "user_id",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true,
833
+ "autoincrement": false
834
+ },
835
+ "token_hash": {
836
+ "name": "token_hash",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true,
840
+ "autoincrement": false
841
+ },
842
+ "expires_at": {
843
+ "name": "expires_at",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": true,
847
+ "autoincrement": false
848
+ },
849
+ "created_at": {
850
+ "name": "created_at",
851
+ "type": "text",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "autoincrement": false
855
+ }
856
+ },
857
+ "indexes": {},
858
+ "foreignKeys": {
859
+ "refresh_tokens_user_id_users_id_fk": {
860
+ "name": "refresh_tokens_user_id_users_id_fk",
861
+ "tableFrom": "refresh_tokens",
862
+ "tableTo": "users",
863
+ "columnsFrom": [
864
+ "user_id"
865
+ ],
866
+ "columnsTo": [
867
+ "id"
868
+ ],
869
+ "onDelete": "no action",
870
+ "onUpdate": "no action"
871
+ }
872
+ },
873
+ "compositePrimaryKeys": {},
874
+ "uniqueConstraints": {},
875
+ "checkConstraints": {}
876
+ },
877
+ "review_meta": {
878
+ "name": "review_meta",
879
+ "columns": {
880
+ "key": {
881
+ "name": "key",
882
+ "type": "text",
883
+ "primaryKey": true,
884
+ "notNull": true,
885
+ "autoincrement": false
886
+ },
887
+ "value": {
888
+ "name": "value",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": true,
892
+ "autoincrement": false
893
+ },
894
+ "project_id": {
895
+ "name": "project_id",
896
+ "type": "text",
897
+ "primaryKey": false,
898
+ "notNull": false,
899
+ "autoincrement": false
900
+ }
901
+ },
902
+ "indexes": {},
903
+ "foreignKeys": {},
904
+ "compositePrimaryKeys": {},
905
+ "uniqueConstraints": {},
906
+ "checkConstraints": {}
907
+ },
908
+ "sessions": {
909
+ "name": "sessions",
910
+ "columns": {
911
+ "session_number": {
912
+ "name": "session_number",
913
+ "type": "integer",
914
+ "primaryKey": false,
915
+ "notNull": true,
916
+ "autoincrement": false
917
+ },
918
+ "started_at": {
919
+ "name": "started_at",
920
+ "type": "text",
921
+ "primaryKey": false,
922
+ "notNull": true,
923
+ "autoincrement": false
924
+ },
925
+ "ended_at": {
926
+ "name": "ended_at",
927
+ "type": "text",
928
+ "primaryKey": false,
929
+ "notNull": false,
930
+ "autoincrement": false
931
+ },
932
+ "summary": {
933
+ "name": "summary",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": false,
937
+ "autoincrement": false
938
+ },
939
+ "nodes_touched": {
940
+ "name": "nodes_touched",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": false,
944
+ "autoincrement": false
945
+ },
946
+ "questions_resolved": {
947
+ "name": "questions_resolved",
948
+ "type": "integer",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false,
952
+ "default": 0
953
+ },
954
+ "body": {
955
+ "name": "body",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": false,
959
+ "autoincrement": false
960
+ },
961
+ "project_id": {
962
+ "name": "project_id",
963
+ "type": "text",
964
+ "primaryKey": false,
965
+ "notNull": true,
966
+ "autoincrement": false
967
+ }
968
+ },
969
+ "indexes": {},
970
+ "foreignKeys": {},
971
+ "compositePrimaryKeys": {
972
+ "sessions_session_number_project_id_pk": {
973
+ "columns": [
974
+ "session_number",
975
+ "project_id"
976
+ ],
977
+ "name": "sessions_session_number_project_id_pk"
978
+ }
979
+ },
980
+ "uniqueConstraints": {},
981
+ "checkConstraints": {}
982
+ },
983
+ "terminal_sessions": {
984
+ "name": "terminal_sessions",
985
+ "columns": {
986
+ "id": {
987
+ "name": "id",
988
+ "type": "text",
989
+ "primaryKey": true,
990
+ "notNull": true,
991
+ "autoincrement": false
992
+ },
993
+ "claude_session_id": {
994
+ "name": "claude_session_id",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": true,
998
+ "autoincrement": false
999
+ },
1000
+ "project_id": {
1001
+ "name": "project_id",
1002
+ "type": "text",
1003
+ "primaryKey": false,
1004
+ "notNull": true,
1005
+ "autoincrement": false
1006
+ },
1007
+ "project_name": {
1008
+ "name": "project_name",
1009
+ "type": "text",
1010
+ "primaryKey": false,
1011
+ "notNull": true,
1012
+ "autoincrement": false
1013
+ },
1014
+ "name": {
1015
+ "name": "name",
1016
+ "type": "text",
1017
+ "primaryKey": false,
1018
+ "notNull": true,
1019
+ "autoincrement": false
1020
+ },
1021
+ "created_at": {
1022
+ "name": "created_at",
1023
+ "type": "text",
1024
+ "primaryKey": false,
1025
+ "notNull": true,
1026
+ "autoincrement": false
1027
+ },
1028
+ "last_used_at": {
1029
+ "name": "last_used_at",
1030
+ "type": "text",
1031
+ "primaryKey": false,
1032
+ "notNull": true,
1033
+ "autoincrement": false
1034
+ }
1035
+ },
1036
+ "indexes": {},
1037
+ "foreignKeys": {},
1038
+ "compositePrimaryKeys": {},
1039
+ "uniqueConstraints": {},
1040
+ "checkConstraints": {}
1041
+ },
1042
+ "users": {
1043
+ "name": "users",
1044
+ "columns": {
1045
+ "id": {
1046
+ "name": "id",
1047
+ "type": "text",
1048
+ "primaryKey": true,
1049
+ "notNull": true,
1050
+ "autoincrement": false
1051
+ },
1052
+ "email": {
1053
+ "name": "email",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false
1058
+ },
1059
+ "password_hash": {
1060
+ "name": "password_hash",
1061
+ "type": "text",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "autoincrement": false
1065
+ },
1066
+ "role": {
1067
+ "name": "role",
1068
+ "type": "text",
1069
+ "primaryKey": false,
1070
+ "notNull": true,
1071
+ "autoincrement": false,
1072
+ "default": "'user'"
1073
+ },
1074
+ "created_at": {
1075
+ "name": "created_at",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false
1080
+ },
1081
+ "updated_at": {
1082
+ "name": "updated_at",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": true,
1086
+ "autoincrement": false
1087
+ }
1088
+ },
1089
+ "indexes": {
1090
+ "users_email_unique": {
1091
+ "name": "users_email_unique",
1092
+ "columns": [
1093
+ "email"
1094
+ ],
1095
+ "isUnique": true
1096
+ }
1097
+ },
1098
+ "foreignKeys": {},
1099
+ "compositePrimaryKeys": {},
1100
+ "uniqueConstraints": {},
1101
+ "checkConstraints": {}
1102
+ },
1103
+ "video_renders": {
1104
+ "name": "video_renders",
1105
+ "columns": {
1106
+ "id": {
1107
+ "name": "id",
1108
+ "type": "text",
1109
+ "primaryKey": true,
1110
+ "notNull": true,
1111
+ "autoincrement": false
1112
+ },
1113
+ "project_id": {
1114
+ "name": "project_id",
1115
+ "type": "text",
1116
+ "primaryKey": false,
1117
+ "notNull": true,
1118
+ "autoincrement": false
1119
+ },
1120
+ "feature_id": {
1121
+ "name": "feature_id",
1122
+ "type": "text",
1123
+ "primaryKey": false,
1124
+ "notNull": false,
1125
+ "autoincrement": false
1126
+ },
1127
+ "composition_id": {
1128
+ "name": "composition_id",
1129
+ "type": "text",
1130
+ "primaryKey": false,
1131
+ "notNull": true,
1132
+ "autoincrement": false
1133
+ },
1134
+ "status": {
1135
+ "name": "status",
1136
+ "type": "text",
1137
+ "primaryKey": false,
1138
+ "notNull": true,
1139
+ "autoincrement": false
1140
+ },
1141
+ "progress": {
1142
+ "name": "progress",
1143
+ "type": "real",
1144
+ "primaryKey": false,
1145
+ "notNull": true,
1146
+ "autoincrement": false,
1147
+ "default": 0
1148
+ },
1149
+ "file_path": {
1150
+ "name": "file_path",
1151
+ "type": "text",
1152
+ "primaryKey": false,
1153
+ "notNull": false,
1154
+ "autoincrement": false
1155
+ },
1156
+ "file_size": {
1157
+ "name": "file_size",
1158
+ "type": "integer",
1159
+ "primaryKey": false,
1160
+ "notNull": false,
1161
+ "autoincrement": false
1162
+ },
1163
+ "duration_seconds": {
1164
+ "name": "duration_seconds",
1165
+ "type": "real",
1166
+ "primaryKey": false,
1167
+ "notNull": false,
1168
+ "autoincrement": false
1169
+ },
1170
+ "error": {
1171
+ "name": "error",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": false,
1175
+ "autoincrement": false
1176
+ },
1177
+ "resolution": {
1178
+ "name": "resolution",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": false,
1182
+ "autoincrement": false
1183
+ },
1184
+ "created_at": {
1185
+ "name": "created_at",
1186
+ "type": "text",
1187
+ "primaryKey": false,
1188
+ "notNull": true,
1189
+ "autoincrement": false
1190
+ },
1191
+ "completed_at": {
1192
+ "name": "completed_at",
1193
+ "type": "text",
1194
+ "primaryKey": false,
1195
+ "notNull": false,
1196
+ "autoincrement": false
1197
+ }
1198
+ },
1199
+ "indexes": {},
1200
+ "foreignKeys": {},
1201
+ "compositePrimaryKeys": {},
1202
+ "uniqueConstraints": {},
1203
+ "checkConstraints": {}
1204
+ },
1205
+ "workflow_executions": {
1206
+ "name": "workflow_executions",
1207
+ "columns": {
1208
+ "id": {
1209
+ "name": "id",
1210
+ "type": "text",
1211
+ "primaryKey": true,
1212
+ "notNull": true,
1213
+ "autoincrement": false
1214
+ },
1215
+ "workflow_id": {
1216
+ "name": "workflow_id",
1217
+ "type": "text",
1218
+ "primaryKey": false,
1219
+ "notNull": true,
1220
+ "autoincrement": false
1221
+ },
1222
+ "feature_id": {
1223
+ "name": "feature_id",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true,
1227
+ "autoincrement": false
1228
+ },
1229
+ "status": {
1230
+ "name": "status",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": true,
1234
+ "autoincrement": false
1235
+ },
1236
+ "current_node_id": {
1237
+ "name": "current_node_id",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": false,
1241
+ "autoincrement": false
1242
+ },
1243
+ "context": {
1244
+ "name": "context",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "autoincrement": false
1249
+ },
1250
+ "started_at": {
1251
+ "name": "started_at",
1252
+ "type": "text",
1253
+ "primaryKey": false,
1254
+ "notNull": true,
1255
+ "autoincrement": false
1256
+ },
1257
+ "updated_at": {
1258
+ "name": "updated_at",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": true,
1262
+ "autoincrement": false
1263
+ }
1264
+ },
1265
+ "indexes": {},
1266
+ "foreignKeys": {
1267
+ "workflow_executions_workflow_id_workflows_id_fk": {
1268
+ "name": "workflow_executions_workflow_id_workflows_id_fk",
1269
+ "tableFrom": "workflow_executions",
1270
+ "tableTo": "workflows",
1271
+ "columnsFrom": [
1272
+ "workflow_id"
1273
+ ],
1274
+ "columnsTo": [
1275
+ "id"
1276
+ ],
1277
+ "onDelete": "no action",
1278
+ "onUpdate": "no action"
1279
+ }
1280
+ },
1281
+ "compositePrimaryKeys": {},
1282
+ "uniqueConstraints": {},
1283
+ "checkConstraints": {}
1284
+ },
1285
+ "workflow_groups": {
1286
+ "name": "workflow_groups",
1287
+ "columns": {
1288
+ "id": {
1289
+ "name": "id",
1290
+ "type": "text",
1291
+ "primaryKey": true,
1292
+ "notNull": true,
1293
+ "autoincrement": false
1294
+ },
1295
+ "name": {
1296
+ "name": "name",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true,
1300
+ "autoincrement": false
1301
+ },
1302
+ "project_id": {
1303
+ "name": "project_id",
1304
+ "type": "text",
1305
+ "primaryKey": false,
1306
+ "notNull": false,
1307
+ "autoincrement": false
1308
+ },
1309
+ "graph_data": {
1310
+ "name": "graph_data",
1311
+ "type": "text",
1312
+ "primaryKey": false,
1313
+ "notNull": true,
1314
+ "autoincrement": false
1315
+ },
1316
+ "created_at": {
1317
+ "name": "created_at",
1318
+ "type": "text",
1319
+ "primaryKey": false,
1320
+ "notNull": true,
1321
+ "autoincrement": false
1322
+ },
1323
+ "updated_at": {
1324
+ "name": "updated_at",
1325
+ "type": "text",
1326
+ "primaryKey": false,
1327
+ "notNull": true,
1328
+ "autoincrement": false
1329
+ }
1330
+ },
1331
+ "indexes": {},
1332
+ "foreignKeys": {},
1333
+ "compositePrimaryKeys": {},
1334
+ "uniqueConstraints": {},
1335
+ "checkConstraints": {}
1336
+ },
1337
+ "workflow_node_executions": {
1338
+ "name": "workflow_node_executions",
1339
+ "columns": {
1340
+ "id": {
1341
+ "name": "id",
1342
+ "type": "text",
1343
+ "primaryKey": true,
1344
+ "notNull": true,
1345
+ "autoincrement": false
1346
+ },
1347
+ "execution_id": {
1348
+ "name": "execution_id",
1349
+ "type": "text",
1350
+ "primaryKey": false,
1351
+ "notNull": true,
1352
+ "autoincrement": false
1353
+ },
1354
+ "node_id": {
1355
+ "name": "node_id",
1356
+ "type": "text",
1357
+ "primaryKey": false,
1358
+ "notNull": true,
1359
+ "autoincrement": false
1360
+ },
1361
+ "status": {
1362
+ "name": "status",
1363
+ "type": "text",
1364
+ "primaryKey": false,
1365
+ "notNull": true,
1366
+ "autoincrement": false
1367
+ },
1368
+ "started_at": {
1369
+ "name": "started_at",
1370
+ "type": "text",
1371
+ "primaryKey": false,
1372
+ "notNull": false,
1373
+ "autoincrement": false
1374
+ },
1375
+ "completed_at": {
1376
+ "name": "completed_at",
1377
+ "type": "text",
1378
+ "primaryKey": false,
1379
+ "notNull": false,
1380
+ "autoincrement": false
1381
+ },
1382
+ "output_data": {
1383
+ "name": "output_data",
1384
+ "type": "text",
1385
+ "primaryKey": false,
1386
+ "notNull": false,
1387
+ "autoincrement": false
1388
+ },
1389
+ "error": {
1390
+ "name": "error",
1391
+ "type": "text",
1392
+ "primaryKey": false,
1393
+ "notNull": false,
1394
+ "autoincrement": false
1395
+ },
1396
+ "attempt": {
1397
+ "name": "attempt",
1398
+ "type": "integer",
1399
+ "primaryKey": false,
1400
+ "notNull": true,
1401
+ "autoincrement": false,
1402
+ "default": 1
1403
+ },
1404
+ "cycle": {
1405
+ "name": "cycle",
1406
+ "type": "integer",
1407
+ "primaryKey": false,
1408
+ "notNull": true,
1409
+ "autoincrement": false,
1410
+ "default": 1
1411
+ },
1412
+ "claude_session_id": {
1413
+ "name": "claude_session_id",
1414
+ "type": "text",
1415
+ "primaryKey": false,
1416
+ "notNull": false,
1417
+ "autoincrement": false
1418
+ }
1419
+ },
1420
+ "indexes": {},
1421
+ "foreignKeys": {
1422
+ "workflow_node_executions_execution_id_workflow_executions_id_fk": {
1423
+ "name": "workflow_node_executions_execution_id_workflow_executions_id_fk",
1424
+ "tableFrom": "workflow_node_executions",
1425
+ "tableTo": "workflow_executions",
1426
+ "columnsFrom": [
1427
+ "execution_id"
1428
+ ],
1429
+ "columnsTo": [
1430
+ "id"
1431
+ ],
1432
+ "onDelete": "no action",
1433
+ "onUpdate": "no action"
1434
+ }
1435
+ },
1436
+ "compositePrimaryKeys": {},
1437
+ "uniqueConstraints": {},
1438
+ "checkConstraints": {}
1439
+ },
1440
+ "workflow_tool_calls": {
1441
+ "name": "workflow_tool_calls",
1442
+ "columns": {
1443
+ "id": {
1444
+ "name": "id",
1445
+ "type": "text",
1446
+ "primaryKey": true,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "node_execution_id": {
1451
+ "name": "node_execution_id",
1452
+ "type": "text",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "autoincrement": false
1456
+ },
1457
+ "timestamp": {
1458
+ "name": "timestamp",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "autoincrement": false
1463
+ },
1464
+ "tool_name": {
1465
+ "name": "tool_name",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": true,
1469
+ "autoincrement": false
1470
+ },
1471
+ "target": {
1472
+ "name": "target",
1473
+ "type": "text",
1474
+ "primaryKey": false,
1475
+ "notNull": true,
1476
+ "autoincrement": false
1477
+ },
1478
+ "created_at": {
1479
+ "name": "created_at",
1480
+ "type": "text",
1481
+ "primaryKey": false,
1482
+ "notNull": true,
1483
+ "autoincrement": false
1484
+ }
1485
+ },
1486
+ "indexes": {},
1487
+ "foreignKeys": {
1488
+ "workflow_tool_calls_node_execution_id_workflow_node_executions_id_fk": {
1489
+ "name": "workflow_tool_calls_node_execution_id_workflow_node_executions_id_fk",
1490
+ "tableFrom": "workflow_tool_calls",
1491
+ "tableTo": "workflow_node_executions",
1492
+ "columnsFrom": [
1493
+ "node_execution_id"
1494
+ ],
1495
+ "columnsTo": [
1496
+ "id"
1497
+ ],
1498
+ "onDelete": "no action",
1499
+ "onUpdate": "no action"
1500
+ }
1501
+ },
1502
+ "compositePrimaryKeys": {},
1503
+ "uniqueConstraints": {},
1504
+ "checkConstraints": {}
1505
+ },
1506
+ "workflows": {
1507
+ "name": "workflows",
1508
+ "columns": {
1509
+ "id": {
1510
+ "name": "id",
1511
+ "type": "text",
1512
+ "primaryKey": true,
1513
+ "notNull": true,
1514
+ "autoincrement": false
1515
+ },
1516
+ "name": {
1517
+ "name": "name",
1518
+ "type": "text",
1519
+ "primaryKey": false,
1520
+ "notNull": true,
1521
+ "autoincrement": false
1522
+ },
1523
+ "description": {
1524
+ "name": "description",
1525
+ "type": "text",
1526
+ "primaryKey": false,
1527
+ "notNull": false,
1528
+ "autoincrement": false
1529
+ },
1530
+ "project_id": {
1531
+ "name": "project_id",
1532
+ "type": "text",
1533
+ "primaryKey": false,
1534
+ "notNull": false,
1535
+ "autoincrement": false
1536
+ },
1537
+ "feature_type": {
1538
+ "name": "feature_type",
1539
+ "type": "text",
1540
+ "primaryKey": false,
1541
+ "notNull": false,
1542
+ "autoincrement": false
1543
+ },
1544
+ "trigger_column": {
1545
+ "name": "trigger_column",
1546
+ "type": "text",
1547
+ "primaryKey": false,
1548
+ "notNull": false,
1549
+ "autoincrement": false
1550
+ },
1551
+ "is_default": {
1552
+ "name": "is_default",
1553
+ "type": "integer",
1554
+ "primaryKey": false,
1555
+ "notNull": true,
1556
+ "autoincrement": false,
1557
+ "default": 0
1558
+ },
1559
+ "graph_data": {
1560
+ "name": "graph_data",
1561
+ "type": "text",
1562
+ "primaryKey": false,
1563
+ "notNull": true,
1564
+ "autoincrement": false
1565
+ },
1566
+ "created_at": {
1567
+ "name": "created_at",
1568
+ "type": "text",
1569
+ "primaryKey": false,
1570
+ "notNull": true,
1571
+ "autoincrement": false
1572
+ },
1573
+ "updated_at": {
1574
+ "name": "updated_at",
1575
+ "type": "text",
1576
+ "primaryKey": false,
1577
+ "notNull": true,
1578
+ "autoincrement": false
1579
+ }
1580
+ },
1581
+ "indexes": {},
1582
+ "foreignKeys": {},
1583
+ "compositePrimaryKeys": {},
1584
+ "uniqueConstraints": {},
1585
+ "checkConstraints": {}
1586
+ }
1587
+ },
1588
+ "views": {},
1589
+ "enums": {},
1590
+ "_meta": {
1591
+ "schemas": {},
1592
+ "tables": {},
1593
+ "columns": {}
1594
+ },
1595
+ "internal": {
1596
+ "indexes": {}
1597
+ }
1598
+ }