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