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