@assistkick/create 1.9.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 +391 -23
  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 +149 -14
  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,1709 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "efb92494-6edc-4335-a717-a407d1ae98ce",
5
+ "prevId": "f1648874-a02e-4384-89ae-137ce69f7a5a",
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_messages": {
68
+ "name": "chat_messages",
69
+ "columns": {
70
+ "id": {
71
+ "name": "id",
72
+ "type": "text",
73
+ "primaryKey": true,
74
+ "notNull": true,
75
+ "autoincrement": false
76
+ },
77
+ "session_id": {
78
+ "name": "session_id",
79
+ "type": "text",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "autoincrement": false
83
+ },
84
+ "role": {
85
+ "name": "role",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "content": {
92
+ "name": "content",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": true,
96
+ "autoincrement": false
97
+ },
98
+ "order_index": {
99
+ "name": "order_index",
100
+ "type": "integer",
101
+ "primaryKey": false,
102
+ "notNull": true,
103
+ "autoincrement": false
104
+ },
105
+ "created_at": {
106
+ "name": "created_at",
107
+ "type": "text",
108
+ "primaryKey": false,
109
+ "notNull": true,
110
+ "autoincrement": false
111
+ }
112
+ },
113
+ "indexes": {},
114
+ "foreignKeys": {},
115
+ "compositePrimaryKeys": {},
116
+ "uniqueConstraints": {},
117
+ "checkConstraints": {}
118
+ },
119
+ "chat_permission_rules": {
120
+ "name": "chat_permission_rules",
121
+ "columns": {
122
+ "id": {
123
+ "name": "id",
124
+ "type": "text",
125
+ "primaryKey": true,
126
+ "notNull": true,
127
+ "autoincrement": false
128
+ },
129
+ "project_id": {
130
+ "name": "project_id",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": true,
134
+ "autoincrement": false
135
+ },
136
+ "tool_name": {
137
+ "name": "tool_name",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true,
141
+ "autoincrement": false
142
+ },
143
+ "created_at": {
144
+ "name": "created_at",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false
149
+ }
150
+ },
151
+ "indexes": {},
152
+ "foreignKeys": {},
153
+ "compositePrimaryKeys": {},
154
+ "uniqueConstraints": {},
155
+ "checkConstraints": {}
156
+ },
157
+ "chat_sessions": {
158
+ "name": "chat_sessions",
159
+ "columns": {
160
+ "id": {
161
+ "name": "id",
162
+ "type": "text",
163
+ "primaryKey": true,
164
+ "notNull": true,
165
+ "autoincrement": false
166
+ },
167
+ "claude_session_id": {
168
+ "name": "claude_session_id",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": true,
172
+ "autoincrement": false
173
+ },
174
+ "project_id": {
175
+ "name": "project_id",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": true,
179
+ "autoincrement": false
180
+ },
181
+ "name": {
182
+ "name": "name",
183
+ "type": "text",
184
+ "primaryKey": false,
185
+ "notNull": true,
186
+ "autoincrement": false
187
+ },
188
+ "permission_mode": {
189
+ "name": "permission_mode",
190
+ "type": "text",
191
+ "primaryKey": false,
192
+ "notNull": false,
193
+ "autoincrement": false
194
+ },
195
+ "created_at": {
196
+ "name": "created_at",
197
+ "type": "text",
198
+ "primaryKey": false,
199
+ "notNull": true,
200
+ "autoincrement": false
201
+ },
202
+ "updated_at": {
203
+ "name": "updated_at",
204
+ "type": "text",
205
+ "primaryKey": false,
206
+ "notNull": true,
207
+ "autoincrement": false
208
+ }
209
+ },
210
+ "indexes": {},
211
+ "foreignKeys": {},
212
+ "compositePrimaryKeys": {},
213
+ "uniqueConstraints": {},
214
+ "checkConstraints": {}
215
+ },
216
+ "coherence_reviews": {
217
+ "name": "coherence_reviews",
218
+ "columns": {
219
+ "id": {
220
+ "name": "id",
221
+ "type": "text",
222
+ "primaryKey": true,
223
+ "notNull": true,
224
+ "autoincrement": false
225
+ },
226
+ "type": {
227
+ "name": "type",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false
232
+ },
233
+ "from_id": {
234
+ "name": "from_id",
235
+ "type": "text",
236
+ "primaryKey": false,
237
+ "notNull": false,
238
+ "autoincrement": false
239
+ },
240
+ "to_id": {
241
+ "name": "to_id",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": false,
245
+ "autoincrement": false
246
+ },
247
+ "relation": {
248
+ "name": "relation",
249
+ "type": "text",
250
+ "primaryKey": false,
251
+ "notNull": false,
252
+ "autoincrement": false
253
+ },
254
+ "proposed_node_type": {
255
+ "name": "proposed_node_type",
256
+ "type": "text",
257
+ "primaryKey": false,
258
+ "notNull": false,
259
+ "autoincrement": false
260
+ },
261
+ "proposed_node_name": {
262
+ "name": "proposed_node_name",
263
+ "type": "text",
264
+ "primaryKey": false,
265
+ "notNull": false,
266
+ "autoincrement": false
267
+ },
268
+ "target_node_id": {
269
+ "name": "target_node_id",
270
+ "type": "text",
271
+ "primaryKey": false,
272
+ "notNull": false,
273
+ "autoincrement": false
274
+ },
275
+ "proposed_description": {
276
+ "name": "proposed_description",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": false,
280
+ "autoincrement": false
281
+ },
282
+ "confidence": {
283
+ "name": "confidence",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": false,
287
+ "autoincrement": false
288
+ },
289
+ "batch_id": {
290
+ "name": "batch_id",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": false,
294
+ "autoincrement": false
295
+ },
296
+ "reasoning": {
297
+ "name": "reasoning",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false
302
+ },
303
+ "status": {
304
+ "name": "status",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": true,
308
+ "autoincrement": false
309
+ },
310
+ "created_at": {
311
+ "name": "created_at",
312
+ "type": "text",
313
+ "primaryKey": false,
314
+ "notNull": true,
315
+ "autoincrement": false
316
+ },
317
+ "resolved_at": {
318
+ "name": "resolved_at",
319
+ "type": "text",
320
+ "primaryKey": false,
321
+ "notNull": false,
322
+ "autoincrement": false
323
+ },
324
+ "project_id": {
325
+ "name": "project_id",
326
+ "type": "text",
327
+ "primaryKey": false,
328
+ "notNull": false,
329
+ "autoincrement": false
330
+ }
331
+ },
332
+ "indexes": {},
333
+ "foreignKeys": {},
334
+ "compositePrimaryKeys": {},
335
+ "uniqueConstraints": {},
336
+ "checkConstraints": {}
337
+ },
338
+ "edges": {
339
+ "name": "edges",
340
+ "columns": {
341
+ "from_id": {
342
+ "name": "from_id",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "relation": {
349
+ "name": "relation",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ },
355
+ "to_id": {
356
+ "name": "to_id",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false
361
+ },
362
+ "project_id": {
363
+ "name": "project_id",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": false,
367
+ "autoincrement": false
368
+ }
369
+ },
370
+ "indexes": {},
371
+ "foreignKeys": {},
372
+ "compositePrimaryKeys": {
373
+ "edges_from_id_relation_to_id_pk": {
374
+ "columns": [
375
+ "from_id",
376
+ "relation",
377
+ "to_id"
378
+ ],
379
+ "name": "edges_from_id_relation_to_id_pk"
380
+ }
381
+ },
382
+ "uniqueConstraints": {},
383
+ "checkConstraints": {}
384
+ },
385
+ "invitations": {
386
+ "name": "invitations",
387
+ "columns": {
388
+ "id": {
389
+ "name": "id",
390
+ "type": "text",
391
+ "primaryKey": true,
392
+ "notNull": true,
393
+ "autoincrement": false
394
+ },
395
+ "email": {
396
+ "name": "email",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": true,
400
+ "autoincrement": false
401
+ },
402
+ "token_hash": {
403
+ "name": "token_hash",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "autoincrement": false
408
+ },
409
+ "invited_by": {
410
+ "name": "invited_by",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "autoincrement": false
415
+ },
416
+ "expires_at": {
417
+ "name": "expires_at",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false
422
+ },
423
+ "accepted_at": {
424
+ "name": "accepted_at",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false,
428
+ "autoincrement": false
429
+ },
430
+ "created_at": {
431
+ "name": "created_at",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": true,
435
+ "autoincrement": false
436
+ }
437
+ },
438
+ "indexes": {},
439
+ "foreignKeys": {
440
+ "invitations_invited_by_users_id_fk": {
441
+ "name": "invitations_invited_by_users_id_fk",
442
+ "tableFrom": "invitations",
443
+ "tableTo": "users",
444
+ "columnsFrom": [
445
+ "invited_by"
446
+ ],
447
+ "columnsTo": [
448
+ "id"
449
+ ],
450
+ "onDelete": "no action",
451
+ "onUpdate": "no action"
452
+ }
453
+ },
454
+ "compositePrimaryKeys": {},
455
+ "uniqueConstraints": {},
456
+ "checkConstraints": {}
457
+ },
458
+ "kanban": {
459
+ "name": "kanban",
460
+ "columns": {
461
+ "node_id": {
462
+ "name": "node_id",
463
+ "type": "text",
464
+ "primaryKey": true,
465
+ "notNull": true,
466
+ "autoincrement": false
467
+ },
468
+ "column_name": {
469
+ "name": "column_name",
470
+ "type": "text",
471
+ "primaryKey": false,
472
+ "notNull": true,
473
+ "autoincrement": false
474
+ },
475
+ "position": {
476
+ "name": "position",
477
+ "type": "integer",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false
481
+ },
482
+ "project_id": {
483
+ "name": "project_id",
484
+ "type": "text",
485
+ "primaryKey": false,
486
+ "notNull": false,
487
+ "autoincrement": false
488
+ }
489
+ },
490
+ "indexes": {},
491
+ "foreignKeys": {
492
+ "kanban_node_id_nodes_id_fk": {
493
+ "name": "kanban_node_id_nodes_id_fk",
494
+ "tableFrom": "kanban",
495
+ "tableTo": "nodes",
496
+ "columnsFrom": [
497
+ "node_id"
498
+ ],
499
+ "columnsTo": [
500
+ "id"
501
+ ],
502
+ "onDelete": "no action",
503
+ "onUpdate": "no action"
504
+ }
505
+ },
506
+ "compositePrimaryKeys": {},
507
+ "uniqueConstraints": {},
508
+ "checkConstraints": {}
509
+ },
510
+ "nodes": {
511
+ "name": "nodes",
512
+ "columns": {
513
+ "id": {
514
+ "name": "id",
515
+ "type": "text",
516
+ "primaryKey": true,
517
+ "notNull": true,
518
+ "autoincrement": false
519
+ },
520
+ "type": {
521
+ "name": "type",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false
526
+ },
527
+ "name": {
528
+ "name": "name",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": true,
532
+ "autoincrement": false
533
+ },
534
+ "status": {
535
+ "name": "status",
536
+ "type": "text",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "autoincrement": false
540
+ },
541
+ "priority": {
542
+ "name": "priority",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true,
546
+ "autoincrement": false
547
+ },
548
+ "completeness": {
549
+ "name": "completeness",
550
+ "type": "real",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "autoincrement": false,
554
+ "default": 0
555
+ },
556
+ "open_questions_count": {
557
+ "name": "open_questions_count",
558
+ "type": "integer",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "autoincrement": false,
562
+ "default": 0
563
+ },
564
+ "kind": {
565
+ "name": "kind",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": false,
569
+ "autoincrement": false
570
+ },
571
+ "feature_type": {
572
+ "name": "feature_type",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": false,
576
+ "autoincrement": false
577
+ },
578
+ "created_at": {
579
+ "name": "created_at",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true,
583
+ "autoincrement": false
584
+ },
585
+ "updated_at": {
586
+ "name": "updated_at",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": true,
590
+ "autoincrement": false
591
+ },
592
+ "body": {
593
+ "name": "body",
594
+ "type": "text",
595
+ "primaryKey": false,
596
+ "notNull": false,
597
+ "autoincrement": false
598
+ },
599
+ "project_id": {
600
+ "name": "project_id",
601
+ "type": "text",
602
+ "primaryKey": false,
603
+ "notNull": false,
604
+ "autoincrement": false
605
+ }
606
+ },
607
+ "indexes": {},
608
+ "foreignKeys": {},
609
+ "compositePrimaryKeys": {},
610
+ "uniqueConstraints": {},
611
+ "checkConstraints": {}
612
+ },
613
+ "password_reset_tokens": {
614
+ "name": "password_reset_tokens",
615
+ "columns": {
616
+ "id": {
617
+ "name": "id",
618
+ "type": "text",
619
+ "primaryKey": true,
620
+ "notNull": true,
621
+ "autoincrement": false
622
+ },
623
+ "user_id": {
624
+ "name": "user_id",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": true,
628
+ "autoincrement": false
629
+ },
630
+ "token_hash": {
631
+ "name": "token_hash",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "expires_at": {
638
+ "name": "expires_at",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "autoincrement": false
643
+ },
644
+ "created_at": {
645
+ "name": "created_at",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "autoincrement": false
650
+ },
651
+ "used_at": {
652
+ "name": "used_at",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": false,
656
+ "autoincrement": false
657
+ }
658
+ },
659
+ "indexes": {},
660
+ "foreignKeys": {
661
+ "password_reset_tokens_user_id_users_id_fk": {
662
+ "name": "password_reset_tokens_user_id_users_id_fk",
663
+ "tableFrom": "password_reset_tokens",
664
+ "tableTo": "users",
665
+ "columnsFrom": [
666
+ "user_id"
667
+ ],
668
+ "columnsTo": [
669
+ "id"
670
+ ],
671
+ "onDelete": "no action",
672
+ "onUpdate": "no action"
673
+ }
674
+ },
675
+ "compositePrimaryKeys": {},
676
+ "uniqueConstraints": {},
677
+ "checkConstraints": {}
678
+ },
679
+ "pipeline_outputs": {
680
+ "name": "pipeline_outputs",
681
+ "columns": {
682
+ "id": {
683
+ "name": "id",
684
+ "type": "text",
685
+ "primaryKey": true,
686
+ "notNull": true,
687
+ "autoincrement": false
688
+ },
689
+ "feature_id": {
690
+ "name": "feature_id",
691
+ "type": "text",
692
+ "primaryKey": false,
693
+ "notNull": true,
694
+ "autoincrement": false
695
+ },
696
+ "stage": {
697
+ "name": "stage",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "autoincrement": false
702
+ },
703
+ "cycle": {
704
+ "name": "cycle",
705
+ "type": "integer",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "autoincrement": false
709
+ },
710
+ "output": {
711
+ "name": "output",
712
+ "type": "text",
713
+ "primaryKey": false,
714
+ "notNull": true,
715
+ "autoincrement": false
716
+ },
717
+ "created_at": {
718
+ "name": "created_at",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": true,
722
+ "autoincrement": false
723
+ },
724
+ "project_id": {
725
+ "name": "project_id",
726
+ "type": "text",
727
+ "primaryKey": false,
728
+ "notNull": false,
729
+ "autoincrement": false
730
+ }
731
+ },
732
+ "indexes": {},
733
+ "foreignKeys": {},
734
+ "compositePrimaryKeys": {},
735
+ "uniqueConstraints": {},
736
+ "checkConstraints": {}
737
+ },
738
+ "pipeline_state": {
739
+ "name": "pipeline_state",
740
+ "columns": {
741
+ "feature_id": {
742
+ "name": "feature_id",
743
+ "type": "text",
744
+ "primaryKey": true,
745
+ "notNull": true,
746
+ "autoincrement": false
747
+ },
748
+ "status": {
749
+ "name": "status",
750
+ "type": "text",
751
+ "primaryKey": false,
752
+ "notNull": true,
753
+ "autoincrement": false
754
+ },
755
+ "cycle": {
756
+ "name": "cycle",
757
+ "type": "integer",
758
+ "primaryKey": false,
759
+ "notNull": true,
760
+ "autoincrement": false,
761
+ "default": 1
762
+ },
763
+ "tasks_json": {
764
+ "name": "tasks_json",
765
+ "type": "text",
766
+ "primaryKey": false,
767
+ "notNull": false,
768
+ "autoincrement": false
769
+ },
770
+ "tool_calls_json": {
771
+ "name": "tool_calls_json",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": false,
775
+ "autoincrement": false
776
+ },
777
+ "work_summaries_json": {
778
+ "name": "work_summaries_json",
779
+ "type": "text",
780
+ "primaryKey": false,
781
+ "notNull": false,
782
+ "autoincrement": false
783
+ },
784
+ "stage_stats_json": {
785
+ "name": "stage_stats_json",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": false,
789
+ "autoincrement": false
790
+ },
791
+ "error": {
792
+ "name": "error",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": false,
796
+ "autoincrement": false
797
+ },
798
+ "updated_at": {
799
+ "name": "updated_at",
800
+ "type": "text",
801
+ "primaryKey": false,
802
+ "notNull": true,
803
+ "autoincrement": false
804
+ },
805
+ "project_id": {
806
+ "name": "project_id",
807
+ "type": "text",
808
+ "primaryKey": false,
809
+ "notNull": false,
810
+ "autoincrement": false
811
+ }
812
+ },
813
+ "indexes": {},
814
+ "foreignKeys": {},
815
+ "compositePrimaryKeys": {},
816
+ "uniqueConstraints": {},
817
+ "checkConstraints": {}
818
+ },
819
+ "projects": {
820
+ "name": "projects",
821
+ "columns": {
822
+ "id": {
823
+ "name": "id",
824
+ "type": "text",
825
+ "primaryKey": true,
826
+ "notNull": true,
827
+ "autoincrement": false
828
+ },
829
+ "name": {
830
+ "name": "name",
831
+ "type": "text",
832
+ "primaryKey": false,
833
+ "notNull": true,
834
+ "autoincrement": false
835
+ },
836
+ "type": {
837
+ "name": "type",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "autoincrement": false,
842
+ "default": "'software'"
843
+ },
844
+ "is_default": {
845
+ "name": "is_default",
846
+ "type": "integer",
847
+ "primaryKey": false,
848
+ "notNull": true,
849
+ "autoincrement": false,
850
+ "default": 0
851
+ },
852
+ "archived_at": {
853
+ "name": "archived_at",
854
+ "type": "text",
855
+ "primaryKey": false,
856
+ "notNull": false,
857
+ "autoincrement": false
858
+ },
859
+ "repo_url": {
860
+ "name": "repo_url",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": false,
864
+ "autoincrement": false
865
+ },
866
+ "github_installation_id": {
867
+ "name": "github_installation_id",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": false,
871
+ "autoincrement": false
872
+ },
873
+ "github_repo_full_name": {
874
+ "name": "github_repo_full_name",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": false,
878
+ "autoincrement": false
879
+ },
880
+ "base_branch": {
881
+ "name": "base_branch",
882
+ "type": "text",
883
+ "primaryKey": false,
884
+ "notNull": false,
885
+ "autoincrement": false
886
+ },
887
+ "git_auth_method": {
888
+ "name": "git_auth_method",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": false,
892
+ "autoincrement": false
893
+ },
894
+ "ssh_private_key_encrypted": {
895
+ "name": "ssh_private_key_encrypted",
896
+ "type": "text",
897
+ "primaryKey": false,
898
+ "notNull": false,
899
+ "autoincrement": false
900
+ },
901
+ "ssh_public_key": {
902
+ "name": "ssh_public_key",
903
+ "type": "text",
904
+ "primaryKey": false,
905
+ "notNull": false,
906
+ "autoincrement": false
907
+ },
908
+ "created_at": {
909
+ "name": "created_at",
910
+ "type": "text",
911
+ "primaryKey": false,
912
+ "notNull": true,
913
+ "autoincrement": false
914
+ },
915
+ "updated_at": {
916
+ "name": "updated_at",
917
+ "type": "text",
918
+ "primaryKey": false,
919
+ "notNull": true,
920
+ "autoincrement": false
921
+ }
922
+ },
923
+ "indexes": {},
924
+ "foreignKeys": {},
925
+ "compositePrimaryKeys": {},
926
+ "uniqueConstraints": {},
927
+ "checkConstraints": {}
928
+ },
929
+ "refresh_tokens": {
930
+ "name": "refresh_tokens",
931
+ "columns": {
932
+ "id": {
933
+ "name": "id",
934
+ "type": "text",
935
+ "primaryKey": true,
936
+ "notNull": true,
937
+ "autoincrement": false
938
+ },
939
+ "user_id": {
940
+ "name": "user_id",
941
+ "type": "text",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "autoincrement": false
945
+ },
946
+ "token_hash": {
947
+ "name": "token_hash",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": true,
951
+ "autoincrement": false
952
+ },
953
+ "expires_at": {
954
+ "name": "expires_at",
955
+ "type": "text",
956
+ "primaryKey": false,
957
+ "notNull": true,
958
+ "autoincrement": false
959
+ },
960
+ "created_at": {
961
+ "name": "created_at",
962
+ "type": "text",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "autoincrement": false
966
+ }
967
+ },
968
+ "indexes": {},
969
+ "foreignKeys": {
970
+ "refresh_tokens_user_id_users_id_fk": {
971
+ "name": "refresh_tokens_user_id_users_id_fk",
972
+ "tableFrom": "refresh_tokens",
973
+ "tableTo": "users",
974
+ "columnsFrom": [
975
+ "user_id"
976
+ ],
977
+ "columnsTo": [
978
+ "id"
979
+ ],
980
+ "onDelete": "no action",
981
+ "onUpdate": "no action"
982
+ }
983
+ },
984
+ "compositePrimaryKeys": {},
985
+ "uniqueConstraints": {},
986
+ "checkConstraints": {}
987
+ },
988
+ "review_meta": {
989
+ "name": "review_meta",
990
+ "columns": {
991
+ "key": {
992
+ "name": "key",
993
+ "type": "text",
994
+ "primaryKey": true,
995
+ "notNull": true,
996
+ "autoincrement": false
997
+ },
998
+ "value": {
999
+ "name": "value",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "autoincrement": false
1004
+ },
1005
+ "project_id": {
1006
+ "name": "project_id",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false,
1010
+ "autoincrement": false
1011
+ }
1012
+ },
1013
+ "indexes": {},
1014
+ "foreignKeys": {},
1015
+ "compositePrimaryKeys": {},
1016
+ "uniqueConstraints": {},
1017
+ "checkConstraints": {}
1018
+ },
1019
+ "sessions": {
1020
+ "name": "sessions",
1021
+ "columns": {
1022
+ "session_number": {
1023
+ "name": "session_number",
1024
+ "type": "integer",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "autoincrement": false
1028
+ },
1029
+ "started_at": {
1030
+ "name": "started_at",
1031
+ "type": "text",
1032
+ "primaryKey": false,
1033
+ "notNull": true,
1034
+ "autoincrement": false
1035
+ },
1036
+ "ended_at": {
1037
+ "name": "ended_at",
1038
+ "type": "text",
1039
+ "primaryKey": false,
1040
+ "notNull": false,
1041
+ "autoincrement": false
1042
+ },
1043
+ "summary": {
1044
+ "name": "summary",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": false,
1048
+ "autoincrement": false
1049
+ },
1050
+ "nodes_touched": {
1051
+ "name": "nodes_touched",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": false,
1055
+ "autoincrement": false
1056
+ },
1057
+ "questions_resolved": {
1058
+ "name": "questions_resolved",
1059
+ "type": "integer",
1060
+ "primaryKey": false,
1061
+ "notNull": true,
1062
+ "autoincrement": false,
1063
+ "default": 0
1064
+ },
1065
+ "body": {
1066
+ "name": "body",
1067
+ "type": "text",
1068
+ "primaryKey": false,
1069
+ "notNull": false,
1070
+ "autoincrement": false
1071
+ },
1072
+ "project_id": {
1073
+ "name": "project_id",
1074
+ "type": "text",
1075
+ "primaryKey": false,
1076
+ "notNull": true,
1077
+ "autoincrement": false
1078
+ }
1079
+ },
1080
+ "indexes": {},
1081
+ "foreignKeys": {},
1082
+ "compositePrimaryKeys": {
1083
+ "sessions_session_number_project_id_pk": {
1084
+ "columns": [
1085
+ "session_number",
1086
+ "project_id"
1087
+ ],
1088
+ "name": "sessions_session_number_project_id_pk"
1089
+ }
1090
+ },
1091
+ "uniqueConstraints": {},
1092
+ "checkConstraints": {}
1093
+ },
1094
+ "terminal_sessions": {
1095
+ "name": "terminal_sessions",
1096
+ "columns": {
1097
+ "id": {
1098
+ "name": "id",
1099
+ "type": "text",
1100
+ "primaryKey": true,
1101
+ "notNull": true,
1102
+ "autoincrement": false
1103
+ },
1104
+ "claude_session_id": {
1105
+ "name": "claude_session_id",
1106
+ "type": "text",
1107
+ "primaryKey": false,
1108
+ "notNull": true,
1109
+ "autoincrement": false
1110
+ },
1111
+ "project_id": {
1112
+ "name": "project_id",
1113
+ "type": "text",
1114
+ "primaryKey": false,
1115
+ "notNull": true,
1116
+ "autoincrement": false
1117
+ },
1118
+ "project_name": {
1119
+ "name": "project_name",
1120
+ "type": "text",
1121
+ "primaryKey": false,
1122
+ "notNull": true,
1123
+ "autoincrement": false
1124
+ },
1125
+ "name": {
1126
+ "name": "name",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": true,
1130
+ "autoincrement": false
1131
+ },
1132
+ "created_at": {
1133
+ "name": "created_at",
1134
+ "type": "text",
1135
+ "primaryKey": false,
1136
+ "notNull": true,
1137
+ "autoincrement": false
1138
+ },
1139
+ "last_used_at": {
1140
+ "name": "last_used_at",
1141
+ "type": "text",
1142
+ "primaryKey": false,
1143
+ "notNull": true,
1144
+ "autoincrement": false
1145
+ }
1146
+ },
1147
+ "indexes": {},
1148
+ "foreignKeys": {},
1149
+ "compositePrimaryKeys": {},
1150
+ "uniqueConstraints": {},
1151
+ "checkConstraints": {}
1152
+ },
1153
+ "users": {
1154
+ "name": "users",
1155
+ "columns": {
1156
+ "id": {
1157
+ "name": "id",
1158
+ "type": "text",
1159
+ "primaryKey": true,
1160
+ "notNull": true,
1161
+ "autoincrement": false
1162
+ },
1163
+ "email": {
1164
+ "name": "email",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": true,
1168
+ "autoincrement": false
1169
+ },
1170
+ "password_hash": {
1171
+ "name": "password_hash",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": true,
1175
+ "autoincrement": false
1176
+ },
1177
+ "role": {
1178
+ "name": "role",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": true,
1182
+ "autoincrement": false,
1183
+ "default": "'user'"
1184
+ },
1185
+ "created_at": {
1186
+ "name": "created_at",
1187
+ "type": "text",
1188
+ "primaryKey": false,
1189
+ "notNull": true,
1190
+ "autoincrement": false
1191
+ },
1192
+ "updated_at": {
1193
+ "name": "updated_at",
1194
+ "type": "text",
1195
+ "primaryKey": false,
1196
+ "notNull": true,
1197
+ "autoincrement": false
1198
+ }
1199
+ },
1200
+ "indexes": {
1201
+ "users_email_unique": {
1202
+ "name": "users_email_unique",
1203
+ "columns": [
1204
+ "email"
1205
+ ],
1206
+ "isUnique": true
1207
+ }
1208
+ },
1209
+ "foreignKeys": {},
1210
+ "compositePrimaryKeys": {},
1211
+ "uniqueConstraints": {},
1212
+ "checkConstraints": {}
1213
+ },
1214
+ "video_renders": {
1215
+ "name": "video_renders",
1216
+ "columns": {
1217
+ "id": {
1218
+ "name": "id",
1219
+ "type": "text",
1220
+ "primaryKey": true,
1221
+ "notNull": true,
1222
+ "autoincrement": false
1223
+ },
1224
+ "project_id": {
1225
+ "name": "project_id",
1226
+ "type": "text",
1227
+ "primaryKey": false,
1228
+ "notNull": true,
1229
+ "autoincrement": false
1230
+ },
1231
+ "feature_id": {
1232
+ "name": "feature_id",
1233
+ "type": "text",
1234
+ "primaryKey": false,
1235
+ "notNull": false,
1236
+ "autoincrement": false
1237
+ },
1238
+ "composition_id": {
1239
+ "name": "composition_id",
1240
+ "type": "text",
1241
+ "primaryKey": false,
1242
+ "notNull": true,
1243
+ "autoincrement": false
1244
+ },
1245
+ "status": {
1246
+ "name": "status",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true,
1250
+ "autoincrement": false
1251
+ },
1252
+ "progress": {
1253
+ "name": "progress",
1254
+ "type": "real",
1255
+ "primaryKey": false,
1256
+ "notNull": true,
1257
+ "autoincrement": false,
1258
+ "default": 0
1259
+ },
1260
+ "file_path": {
1261
+ "name": "file_path",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": false,
1265
+ "autoincrement": false
1266
+ },
1267
+ "file_size": {
1268
+ "name": "file_size",
1269
+ "type": "integer",
1270
+ "primaryKey": false,
1271
+ "notNull": false,
1272
+ "autoincrement": false
1273
+ },
1274
+ "duration_seconds": {
1275
+ "name": "duration_seconds",
1276
+ "type": "real",
1277
+ "primaryKey": false,
1278
+ "notNull": false,
1279
+ "autoincrement": false
1280
+ },
1281
+ "error": {
1282
+ "name": "error",
1283
+ "type": "text",
1284
+ "primaryKey": false,
1285
+ "notNull": false,
1286
+ "autoincrement": false
1287
+ },
1288
+ "resolution": {
1289
+ "name": "resolution",
1290
+ "type": "text",
1291
+ "primaryKey": false,
1292
+ "notNull": false,
1293
+ "autoincrement": false
1294
+ },
1295
+ "created_at": {
1296
+ "name": "created_at",
1297
+ "type": "text",
1298
+ "primaryKey": false,
1299
+ "notNull": true,
1300
+ "autoincrement": false
1301
+ },
1302
+ "completed_at": {
1303
+ "name": "completed_at",
1304
+ "type": "text",
1305
+ "primaryKey": false,
1306
+ "notNull": false,
1307
+ "autoincrement": false
1308
+ }
1309
+ },
1310
+ "indexes": {},
1311
+ "foreignKeys": {},
1312
+ "compositePrimaryKeys": {},
1313
+ "uniqueConstraints": {},
1314
+ "checkConstraints": {}
1315
+ },
1316
+ "workflow_executions": {
1317
+ "name": "workflow_executions",
1318
+ "columns": {
1319
+ "id": {
1320
+ "name": "id",
1321
+ "type": "text",
1322
+ "primaryKey": true,
1323
+ "notNull": true,
1324
+ "autoincrement": false
1325
+ },
1326
+ "workflow_id": {
1327
+ "name": "workflow_id",
1328
+ "type": "text",
1329
+ "primaryKey": false,
1330
+ "notNull": true,
1331
+ "autoincrement": false
1332
+ },
1333
+ "feature_id": {
1334
+ "name": "feature_id",
1335
+ "type": "text",
1336
+ "primaryKey": false,
1337
+ "notNull": true,
1338
+ "autoincrement": false
1339
+ },
1340
+ "status": {
1341
+ "name": "status",
1342
+ "type": "text",
1343
+ "primaryKey": false,
1344
+ "notNull": true,
1345
+ "autoincrement": false
1346
+ },
1347
+ "current_node_id": {
1348
+ "name": "current_node_id",
1349
+ "type": "text",
1350
+ "primaryKey": false,
1351
+ "notNull": false,
1352
+ "autoincrement": false
1353
+ },
1354
+ "context": {
1355
+ "name": "context",
1356
+ "type": "text",
1357
+ "primaryKey": false,
1358
+ "notNull": true,
1359
+ "autoincrement": false
1360
+ },
1361
+ "started_at": {
1362
+ "name": "started_at",
1363
+ "type": "text",
1364
+ "primaryKey": false,
1365
+ "notNull": true,
1366
+ "autoincrement": false
1367
+ },
1368
+ "updated_at": {
1369
+ "name": "updated_at",
1370
+ "type": "text",
1371
+ "primaryKey": false,
1372
+ "notNull": true,
1373
+ "autoincrement": false
1374
+ }
1375
+ },
1376
+ "indexes": {},
1377
+ "foreignKeys": {
1378
+ "workflow_executions_workflow_id_workflows_id_fk": {
1379
+ "name": "workflow_executions_workflow_id_workflows_id_fk",
1380
+ "tableFrom": "workflow_executions",
1381
+ "tableTo": "workflows",
1382
+ "columnsFrom": [
1383
+ "workflow_id"
1384
+ ],
1385
+ "columnsTo": [
1386
+ "id"
1387
+ ],
1388
+ "onDelete": "no action",
1389
+ "onUpdate": "no action"
1390
+ }
1391
+ },
1392
+ "compositePrimaryKeys": {},
1393
+ "uniqueConstraints": {},
1394
+ "checkConstraints": {}
1395
+ },
1396
+ "workflow_groups": {
1397
+ "name": "workflow_groups",
1398
+ "columns": {
1399
+ "id": {
1400
+ "name": "id",
1401
+ "type": "text",
1402
+ "primaryKey": true,
1403
+ "notNull": true,
1404
+ "autoincrement": false
1405
+ },
1406
+ "name": {
1407
+ "name": "name",
1408
+ "type": "text",
1409
+ "primaryKey": false,
1410
+ "notNull": true,
1411
+ "autoincrement": false
1412
+ },
1413
+ "project_id": {
1414
+ "name": "project_id",
1415
+ "type": "text",
1416
+ "primaryKey": false,
1417
+ "notNull": false,
1418
+ "autoincrement": false
1419
+ },
1420
+ "graph_data": {
1421
+ "name": "graph_data",
1422
+ "type": "text",
1423
+ "primaryKey": false,
1424
+ "notNull": true,
1425
+ "autoincrement": false
1426
+ },
1427
+ "created_at": {
1428
+ "name": "created_at",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": true,
1432
+ "autoincrement": false
1433
+ },
1434
+ "updated_at": {
1435
+ "name": "updated_at",
1436
+ "type": "text",
1437
+ "primaryKey": false,
1438
+ "notNull": true,
1439
+ "autoincrement": false
1440
+ }
1441
+ },
1442
+ "indexes": {},
1443
+ "foreignKeys": {},
1444
+ "compositePrimaryKeys": {},
1445
+ "uniqueConstraints": {},
1446
+ "checkConstraints": {}
1447
+ },
1448
+ "workflow_node_executions": {
1449
+ "name": "workflow_node_executions",
1450
+ "columns": {
1451
+ "id": {
1452
+ "name": "id",
1453
+ "type": "text",
1454
+ "primaryKey": true,
1455
+ "notNull": true,
1456
+ "autoincrement": false
1457
+ },
1458
+ "execution_id": {
1459
+ "name": "execution_id",
1460
+ "type": "text",
1461
+ "primaryKey": false,
1462
+ "notNull": true,
1463
+ "autoincrement": false
1464
+ },
1465
+ "node_id": {
1466
+ "name": "node_id",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false
1471
+ },
1472
+ "status": {
1473
+ "name": "status",
1474
+ "type": "text",
1475
+ "primaryKey": false,
1476
+ "notNull": true,
1477
+ "autoincrement": false
1478
+ },
1479
+ "started_at": {
1480
+ "name": "started_at",
1481
+ "type": "text",
1482
+ "primaryKey": false,
1483
+ "notNull": false,
1484
+ "autoincrement": false
1485
+ },
1486
+ "completed_at": {
1487
+ "name": "completed_at",
1488
+ "type": "text",
1489
+ "primaryKey": false,
1490
+ "notNull": false,
1491
+ "autoincrement": false
1492
+ },
1493
+ "output_data": {
1494
+ "name": "output_data",
1495
+ "type": "text",
1496
+ "primaryKey": false,
1497
+ "notNull": false,
1498
+ "autoincrement": false
1499
+ },
1500
+ "error": {
1501
+ "name": "error",
1502
+ "type": "text",
1503
+ "primaryKey": false,
1504
+ "notNull": false,
1505
+ "autoincrement": false
1506
+ },
1507
+ "attempt": {
1508
+ "name": "attempt",
1509
+ "type": "integer",
1510
+ "primaryKey": false,
1511
+ "notNull": true,
1512
+ "autoincrement": false,
1513
+ "default": 1
1514
+ },
1515
+ "cycle": {
1516
+ "name": "cycle",
1517
+ "type": "integer",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "autoincrement": false,
1521
+ "default": 1
1522
+ },
1523
+ "claude_session_id": {
1524
+ "name": "claude_session_id",
1525
+ "type": "text",
1526
+ "primaryKey": false,
1527
+ "notNull": false,
1528
+ "autoincrement": false
1529
+ }
1530
+ },
1531
+ "indexes": {},
1532
+ "foreignKeys": {
1533
+ "workflow_node_executions_execution_id_workflow_executions_id_fk": {
1534
+ "name": "workflow_node_executions_execution_id_workflow_executions_id_fk",
1535
+ "tableFrom": "workflow_node_executions",
1536
+ "tableTo": "workflow_executions",
1537
+ "columnsFrom": [
1538
+ "execution_id"
1539
+ ],
1540
+ "columnsTo": [
1541
+ "id"
1542
+ ],
1543
+ "onDelete": "no action",
1544
+ "onUpdate": "no action"
1545
+ }
1546
+ },
1547
+ "compositePrimaryKeys": {},
1548
+ "uniqueConstraints": {},
1549
+ "checkConstraints": {}
1550
+ },
1551
+ "workflow_tool_calls": {
1552
+ "name": "workflow_tool_calls",
1553
+ "columns": {
1554
+ "id": {
1555
+ "name": "id",
1556
+ "type": "text",
1557
+ "primaryKey": true,
1558
+ "notNull": true,
1559
+ "autoincrement": false
1560
+ },
1561
+ "node_execution_id": {
1562
+ "name": "node_execution_id",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "timestamp": {
1569
+ "name": "timestamp",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false
1574
+ },
1575
+ "tool_name": {
1576
+ "name": "tool_name",
1577
+ "type": "text",
1578
+ "primaryKey": false,
1579
+ "notNull": true,
1580
+ "autoincrement": false
1581
+ },
1582
+ "target": {
1583
+ "name": "target",
1584
+ "type": "text",
1585
+ "primaryKey": false,
1586
+ "notNull": true,
1587
+ "autoincrement": false
1588
+ },
1589
+ "created_at": {
1590
+ "name": "created_at",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": true,
1594
+ "autoincrement": false
1595
+ }
1596
+ },
1597
+ "indexes": {},
1598
+ "foreignKeys": {
1599
+ "workflow_tool_calls_node_execution_id_workflow_node_executions_id_fk": {
1600
+ "name": "workflow_tool_calls_node_execution_id_workflow_node_executions_id_fk",
1601
+ "tableFrom": "workflow_tool_calls",
1602
+ "tableTo": "workflow_node_executions",
1603
+ "columnsFrom": [
1604
+ "node_execution_id"
1605
+ ],
1606
+ "columnsTo": [
1607
+ "id"
1608
+ ],
1609
+ "onDelete": "no action",
1610
+ "onUpdate": "no action"
1611
+ }
1612
+ },
1613
+ "compositePrimaryKeys": {},
1614
+ "uniqueConstraints": {},
1615
+ "checkConstraints": {}
1616
+ },
1617
+ "workflows": {
1618
+ "name": "workflows",
1619
+ "columns": {
1620
+ "id": {
1621
+ "name": "id",
1622
+ "type": "text",
1623
+ "primaryKey": true,
1624
+ "notNull": true,
1625
+ "autoincrement": false
1626
+ },
1627
+ "name": {
1628
+ "name": "name",
1629
+ "type": "text",
1630
+ "primaryKey": false,
1631
+ "notNull": true,
1632
+ "autoincrement": false
1633
+ },
1634
+ "description": {
1635
+ "name": "description",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": false,
1639
+ "autoincrement": false
1640
+ },
1641
+ "project_id": {
1642
+ "name": "project_id",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": false,
1646
+ "autoincrement": false
1647
+ },
1648
+ "feature_type": {
1649
+ "name": "feature_type",
1650
+ "type": "text",
1651
+ "primaryKey": false,
1652
+ "notNull": false,
1653
+ "autoincrement": false
1654
+ },
1655
+ "trigger_column": {
1656
+ "name": "trigger_column",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": false,
1660
+ "autoincrement": false
1661
+ },
1662
+ "is_default": {
1663
+ "name": "is_default",
1664
+ "type": "integer",
1665
+ "primaryKey": false,
1666
+ "notNull": true,
1667
+ "autoincrement": false,
1668
+ "default": 0
1669
+ },
1670
+ "graph_data": {
1671
+ "name": "graph_data",
1672
+ "type": "text",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "autoincrement": false
1676
+ },
1677
+ "created_at": {
1678
+ "name": "created_at",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": true,
1682
+ "autoincrement": false
1683
+ },
1684
+ "updated_at": {
1685
+ "name": "updated_at",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": true,
1689
+ "autoincrement": false
1690
+ }
1691
+ },
1692
+ "indexes": {},
1693
+ "foreignKeys": {},
1694
+ "compositePrimaryKeys": {},
1695
+ "uniqueConstraints": {},
1696
+ "checkConstraints": {}
1697
+ }
1698
+ },
1699
+ "views": {},
1700
+ "enums": {},
1701
+ "_meta": {
1702
+ "schemas": {},
1703
+ "tables": {},
1704
+ "columns": {}
1705
+ },
1706
+ "internal": {
1707
+ "indexes": {}
1708
+ }
1709
+ }