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