@assistkick/create 1.31.0 → 1.33.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 (65) 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/frontend/src/components/GraphLegend.tsx +10 -3
  4. package/templates/assistkick-product-system/packages/frontend/src/constants/graph.ts +8 -1
  5. package/templates/assistkick-product-system/packages/shared/db/migrate.ts +174 -3
  6. package/templates/assistkick-product-system/packages/shared/db/migrations/0003_solid_manta.sql +1 -0
  7. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0003_snapshot.json +992 -18
  8. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/_journal.json +7 -0
  9. package/templates/assistkick-product-system/packages/shared/db/schema.ts +1 -0
  10. package/templates/assistkick-product-system/packages/shared/lib/constants.ts +12 -0
  11. package/templates/assistkick-product-system/packages/shared/lib/embedding_service.test.ts +75 -0
  12. package/templates/assistkick-product-system/packages/shared/lib/embedding_service.ts +100 -0
  13. package/templates/assistkick-product-system/packages/shared/lib/relevance_search.ts +50 -38
  14. package/templates/assistkick-product-system/packages/shared/package.json +1 -0
  15. package/templates/assistkick-product-system/packages/shared/tools/add_node.ts +11 -3
  16. package/templates/assistkick-product-system/packages/shared/tools/delete_note.ts +50 -0
  17. package/templates/assistkick-product-system/packages/shared/tools/save_note.ts +79 -0
  18. package/templates/assistkick-product-system/packages/shared/tools/search_nodes.ts +6 -1
  19. package/templates/assistkick-product-system/packages/shared/tools/search_notes.ts +99 -0
  20. package/templates/assistkick-product-system/packages/shared/tools/update_node.ts +15 -0
  21. package/templates/assistkick-product-system/packages/shared/db/migrations/0000_dashing_gorgon.sql +0 -128
  22. package/templates/assistkick-product-system/packages/shared/db/migrations/0001_vengeful_wallop.sql +0 -1
  23. package/templates/assistkick-product-system/packages/shared/db/migrations/0002_greedy_excalibur.sql +0 -4
  24. package/templates/assistkick-product-system/packages/shared/db/migrations/0003_lonely_cyclops.sql +0 -17
  25. package/templates/assistkick-product-system/packages/shared/db/migrations/0004_tidy_matthew_murdock.sql +0 -9
  26. package/templates/assistkick-product-system/packages/shared/db/migrations/0005_mysterious_falcon.sql +0 -692
  27. package/templates/assistkick-product-system/packages/shared/db/migrations/0006_next_venom.sql +0 -9
  28. package/templates/assistkick-product-system/packages/shared/db/migrations/0007_deep_barracuda.sql +0 -39
  29. package/templates/assistkick-product-system/packages/shared/db/migrations/0008_puzzling_hannibal_king.sql +0 -1
  30. package/templates/assistkick-product-system/packages/shared/db/migrations/0009_amused_beast.sql +0 -8
  31. package/templates/assistkick-product-system/packages/shared/db/migrations/0010_spotty_moira_mactaggert.sql +0 -9
  32. package/templates/assistkick-product-system/packages/shared/db/migrations/0011_goofy_snowbird.sql +0 -3
  33. package/templates/assistkick-product-system/packages/shared/db/migrations/0011_supreme_doctor_octopus.sql +0 -3
  34. package/templates/assistkick-product-system/packages/shared/db/migrations/0013_reflective_prowler.sql +0 -15
  35. package/templates/assistkick-product-system/packages/shared/db/migrations/0014_nifty_punisher.sql +0 -15
  36. package/templates/assistkick-product-system/packages/shared/db/migrations/0015_magenta_jazinda.sql +0 -1
  37. package/templates/assistkick-product-system/packages/shared/db/migrations/0016_giant_xorn.sql +0 -1
  38. package/templates/assistkick-product-system/packages/shared/db/migrations/0017_sloppy_mentor.sql +0 -6
  39. package/templates/assistkick-product-system/packages/shared/db/migrations/0018_vengeful_kabuki.sql +0 -9
  40. package/templates/assistkick-product-system/packages/shared/db/migrations/0019_careful_sentinels.sql +0 -8
  41. package/templates/assistkick-product-system/packages/shared/db/migrations/0020_clever_spot.sql +0 -27
  42. package/templates/assistkick-product-system/packages/shared/db/migrations/0021_graceful_hex.sql +0 -1
  43. package/templates/assistkick-product-system/packages/shared/db/migrations/0022_short_kingpin.sql +0 -1
  44. package/templates/assistkick-product-system/packages/shared/db/migrations/0023_ambiguous_sharon_carter.sql +0 -1
  45. package/templates/assistkick-product-system/packages/shared/db/migrations/0024_fat_unus.sql +0 -1
  46. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0004_snapshot.json +0 -921
  47. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0005_snapshot.json +0 -1042
  48. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0006_snapshot.json +0 -1101
  49. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0007_snapshot.json +0 -1336
  50. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0008_snapshot.json +0 -1275
  51. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0009_snapshot.json +0 -1327
  52. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0010_snapshot.json +0 -1393
  53. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0011_snapshot.json +0 -1436
  54. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0013_snapshot.json +0 -1538
  55. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0014_snapshot.json +0 -1545
  56. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0015_snapshot.json +0 -1552
  57. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0016_snapshot.json +0 -1560
  58. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0017_snapshot.json +0 -1598
  59. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0018_snapshot.json +0 -1657
  60. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0019_snapshot.json +0 -1709
  61. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0020_snapshot.json +0 -1733
  62. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0021_snapshot.json +0 -1740
  63. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0022_snapshot.json +0 -1755
  64. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0023_snapshot.json +0 -1762
  65. package/templates/assistkick-product-system/packages/shared/db/migrations/meta/0024_snapshot.json +0 -1769
@@ -1,1042 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "5d2685e9-273b-40c6-ac1b-7980306543c9",
5
- "prevId": "ff3b7e64-e8fe-469e-b191-02cf390e8f38",
6
- "tables": {
7
- "agents": {
8
- "name": "agents",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "name": {
18
- "name": "name",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "prompt_template": {
25
- "name": "prompt_template",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": true,
29
- "autoincrement": false
30
- },
31
- "project_id": {
32
- "name": "project_id",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": false,
36
- "autoincrement": false
37
- },
38
- "is_default": {
39
- "name": "is_default",
40
- "type": "integer",
41
- "primaryKey": false,
42
- "notNull": true,
43
- "autoincrement": false,
44
- "default": 0
45
- },
46
- "created_at": {
47
- "name": "created_at",
48
- "type": "text",
49
- "primaryKey": false,
50
- "notNull": true,
51
- "autoincrement": false
52
- },
53
- "updated_at": {
54
- "name": "updated_at",
55
- "type": "text",
56
- "primaryKey": false,
57
- "notNull": true,
58
- "autoincrement": false
59
- }
60
- },
61
- "indexes": {},
62
- "foreignKeys": {},
63
- "compositePrimaryKeys": {},
64
- "uniqueConstraints": {},
65
- "checkConstraints": {}
66
- },
67
- "coherence_reviews": {
68
- "name": "coherence_reviews",
69
- "columns": {
70
- "id": {
71
- "name": "id",
72
- "type": "text",
73
- "primaryKey": true,
74
- "notNull": true,
75
- "autoincrement": false
76
- },
77
- "type": {
78
- "name": "type",
79
- "type": "text",
80
- "primaryKey": false,
81
- "notNull": true,
82
- "autoincrement": false
83
- },
84
- "from_id": {
85
- "name": "from_id",
86
- "type": "text",
87
- "primaryKey": false,
88
- "notNull": false,
89
- "autoincrement": false
90
- },
91
- "to_id": {
92
- "name": "to_id",
93
- "type": "text",
94
- "primaryKey": false,
95
- "notNull": false,
96
- "autoincrement": false
97
- },
98
- "relation": {
99
- "name": "relation",
100
- "type": "text",
101
- "primaryKey": false,
102
- "notNull": false,
103
- "autoincrement": false
104
- },
105
- "proposed_node_type": {
106
- "name": "proposed_node_type",
107
- "type": "text",
108
- "primaryKey": false,
109
- "notNull": false,
110
- "autoincrement": false
111
- },
112
- "proposed_node_name": {
113
- "name": "proposed_node_name",
114
- "type": "text",
115
- "primaryKey": false,
116
- "notNull": false,
117
- "autoincrement": false
118
- },
119
- "target_node_id": {
120
- "name": "target_node_id",
121
- "type": "text",
122
- "primaryKey": false,
123
- "notNull": false,
124
- "autoincrement": false
125
- },
126
- "proposed_description": {
127
- "name": "proposed_description",
128
- "type": "text",
129
- "primaryKey": false,
130
- "notNull": false,
131
- "autoincrement": false
132
- },
133
- "confidence": {
134
- "name": "confidence",
135
- "type": "text",
136
- "primaryKey": false,
137
- "notNull": false,
138
- "autoincrement": false
139
- },
140
- "batch_id": {
141
- "name": "batch_id",
142
- "type": "text",
143
- "primaryKey": false,
144
- "notNull": false,
145
- "autoincrement": false
146
- },
147
- "reasoning": {
148
- "name": "reasoning",
149
- "type": "text",
150
- "primaryKey": false,
151
- "notNull": true,
152
- "autoincrement": false
153
- },
154
- "status": {
155
- "name": "status",
156
- "type": "text",
157
- "primaryKey": false,
158
- "notNull": true,
159
- "autoincrement": false
160
- },
161
- "created_at": {
162
- "name": "created_at",
163
- "type": "text",
164
- "primaryKey": false,
165
- "notNull": true,
166
- "autoincrement": false
167
- },
168
- "resolved_at": {
169
- "name": "resolved_at",
170
- "type": "text",
171
- "primaryKey": false,
172
- "notNull": false,
173
- "autoincrement": false
174
- },
175
- "project_id": {
176
- "name": "project_id",
177
- "type": "text",
178
- "primaryKey": false,
179
- "notNull": false,
180
- "autoincrement": false
181
- }
182
- },
183
- "indexes": {},
184
- "foreignKeys": {},
185
- "compositePrimaryKeys": {},
186
- "uniqueConstraints": {},
187
- "checkConstraints": {}
188
- },
189
- "edges": {
190
- "name": "edges",
191
- "columns": {
192
- "from_id": {
193
- "name": "from_id",
194
- "type": "text",
195
- "primaryKey": false,
196
- "notNull": true,
197
- "autoincrement": false
198
- },
199
- "relation": {
200
- "name": "relation",
201
- "type": "text",
202
- "primaryKey": false,
203
- "notNull": true,
204
- "autoincrement": false
205
- },
206
- "to_id": {
207
- "name": "to_id",
208
- "type": "text",
209
- "primaryKey": false,
210
- "notNull": true,
211
- "autoincrement": false
212
- },
213
- "project_id": {
214
- "name": "project_id",
215
- "type": "text",
216
- "primaryKey": false,
217
- "notNull": false,
218
- "autoincrement": false
219
- }
220
- },
221
- "indexes": {},
222
- "foreignKeys": {},
223
- "compositePrimaryKeys": {
224
- "edges_from_id_relation_to_id_pk": {
225
- "columns": [
226
- "from_id",
227
- "relation",
228
- "to_id"
229
- ],
230
- "name": "edges_from_id_relation_to_id_pk"
231
- }
232
- },
233
- "uniqueConstraints": {},
234
- "checkConstraints": {}
235
- },
236
- "invitations": {
237
- "name": "invitations",
238
- "columns": {
239
- "id": {
240
- "name": "id",
241
- "type": "text",
242
- "primaryKey": true,
243
- "notNull": true,
244
- "autoincrement": false
245
- },
246
- "email": {
247
- "name": "email",
248
- "type": "text",
249
- "primaryKey": false,
250
- "notNull": true,
251
- "autoincrement": false
252
- },
253
- "token_hash": {
254
- "name": "token_hash",
255
- "type": "text",
256
- "primaryKey": false,
257
- "notNull": true,
258
- "autoincrement": false
259
- },
260
- "invited_by": {
261
- "name": "invited_by",
262
- "type": "text",
263
- "primaryKey": false,
264
- "notNull": true,
265
- "autoincrement": false
266
- },
267
- "expires_at": {
268
- "name": "expires_at",
269
- "type": "text",
270
- "primaryKey": false,
271
- "notNull": true,
272
- "autoincrement": false
273
- },
274
- "accepted_at": {
275
- "name": "accepted_at",
276
- "type": "text",
277
- "primaryKey": false,
278
- "notNull": false,
279
- "autoincrement": false
280
- },
281
- "created_at": {
282
- "name": "created_at",
283
- "type": "text",
284
- "primaryKey": false,
285
- "notNull": true,
286
- "autoincrement": false
287
- }
288
- },
289
- "indexes": {},
290
- "foreignKeys": {
291
- "invitations_invited_by_users_id_fk": {
292
- "name": "invitations_invited_by_users_id_fk",
293
- "tableFrom": "invitations",
294
- "tableTo": "users",
295
- "columnsFrom": [
296
- "invited_by"
297
- ],
298
- "columnsTo": [
299
- "id"
300
- ],
301
- "onDelete": "no action",
302
- "onUpdate": "no action"
303
- }
304
- },
305
- "compositePrimaryKeys": {},
306
- "uniqueConstraints": {},
307
- "checkConstraints": {}
308
- },
309
- "kanban": {
310
- "name": "kanban",
311
- "columns": {
312
- "node_id": {
313
- "name": "node_id",
314
- "type": "text",
315
- "primaryKey": true,
316
- "notNull": true,
317
- "autoincrement": false
318
- },
319
- "column_name": {
320
- "name": "column_name",
321
- "type": "text",
322
- "primaryKey": false,
323
- "notNull": true,
324
- "autoincrement": false
325
- },
326
- "position": {
327
- "name": "position",
328
- "type": "integer",
329
- "primaryKey": false,
330
- "notNull": true,
331
- "autoincrement": false
332
- },
333
- "project_id": {
334
- "name": "project_id",
335
- "type": "text",
336
- "primaryKey": false,
337
- "notNull": false,
338
- "autoincrement": false
339
- }
340
- },
341
- "indexes": {},
342
- "foreignKeys": {
343
- "kanban_node_id_nodes_id_fk": {
344
- "name": "kanban_node_id_nodes_id_fk",
345
- "tableFrom": "kanban",
346
- "tableTo": "nodes",
347
- "columnsFrom": [
348
- "node_id"
349
- ],
350
- "columnsTo": [
351
- "id"
352
- ],
353
- "onDelete": "no action",
354
- "onUpdate": "no action"
355
- }
356
- },
357
- "compositePrimaryKeys": {},
358
- "uniqueConstraints": {},
359
- "checkConstraints": {}
360
- },
361
- "nodes": {
362
- "name": "nodes",
363
- "columns": {
364
- "id": {
365
- "name": "id",
366
- "type": "text",
367
- "primaryKey": true,
368
- "notNull": true,
369
- "autoincrement": false
370
- },
371
- "type": {
372
- "name": "type",
373
- "type": "text",
374
- "primaryKey": false,
375
- "notNull": true,
376
- "autoincrement": false
377
- },
378
- "name": {
379
- "name": "name",
380
- "type": "text",
381
- "primaryKey": false,
382
- "notNull": true,
383
- "autoincrement": false
384
- },
385
- "status": {
386
- "name": "status",
387
- "type": "text",
388
- "primaryKey": false,
389
- "notNull": true,
390
- "autoincrement": false
391
- },
392
- "priority": {
393
- "name": "priority",
394
- "type": "text",
395
- "primaryKey": false,
396
- "notNull": true,
397
- "autoincrement": false
398
- },
399
- "completeness": {
400
- "name": "completeness",
401
- "type": "real",
402
- "primaryKey": false,
403
- "notNull": true,
404
- "autoincrement": false,
405
- "default": 0
406
- },
407
- "open_questions_count": {
408
- "name": "open_questions_count",
409
- "type": "integer",
410
- "primaryKey": false,
411
- "notNull": true,
412
- "autoincrement": false,
413
- "default": 0
414
- },
415
- "kind": {
416
- "name": "kind",
417
- "type": "text",
418
- "primaryKey": false,
419
- "notNull": false,
420
- "autoincrement": false
421
- },
422
- "created_at": {
423
- "name": "created_at",
424
- "type": "text",
425
- "primaryKey": false,
426
- "notNull": true,
427
- "autoincrement": false
428
- },
429
- "updated_at": {
430
- "name": "updated_at",
431
- "type": "text",
432
- "primaryKey": false,
433
- "notNull": true,
434
- "autoincrement": false
435
- },
436
- "body": {
437
- "name": "body",
438
- "type": "text",
439
- "primaryKey": false,
440
- "notNull": false,
441
- "autoincrement": false
442
- },
443
- "project_id": {
444
- "name": "project_id",
445
- "type": "text",
446
- "primaryKey": false,
447
- "notNull": false,
448
- "autoincrement": false
449
- }
450
- },
451
- "indexes": {},
452
- "foreignKeys": {},
453
- "compositePrimaryKeys": {},
454
- "uniqueConstraints": {},
455
- "checkConstraints": {}
456
- },
457
- "password_reset_tokens": {
458
- "name": "password_reset_tokens",
459
- "columns": {
460
- "id": {
461
- "name": "id",
462
- "type": "text",
463
- "primaryKey": true,
464
- "notNull": true,
465
- "autoincrement": false
466
- },
467
- "user_id": {
468
- "name": "user_id",
469
- "type": "text",
470
- "primaryKey": false,
471
- "notNull": true,
472
- "autoincrement": false
473
- },
474
- "token_hash": {
475
- "name": "token_hash",
476
- "type": "text",
477
- "primaryKey": false,
478
- "notNull": true,
479
- "autoincrement": false
480
- },
481
- "expires_at": {
482
- "name": "expires_at",
483
- "type": "text",
484
- "primaryKey": false,
485
- "notNull": true,
486
- "autoincrement": false
487
- },
488
- "created_at": {
489
- "name": "created_at",
490
- "type": "text",
491
- "primaryKey": false,
492
- "notNull": true,
493
- "autoincrement": false
494
- },
495
- "used_at": {
496
- "name": "used_at",
497
- "type": "text",
498
- "primaryKey": false,
499
- "notNull": false,
500
- "autoincrement": false
501
- }
502
- },
503
- "indexes": {},
504
- "foreignKeys": {
505
- "password_reset_tokens_user_id_users_id_fk": {
506
- "name": "password_reset_tokens_user_id_users_id_fk",
507
- "tableFrom": "password_reset_tokens",
508
- "tableTo": "users",
509
- "columnsFrom": [
510
- "user_id"
511
- ],
512
- "columnsTo": [
513
- "id"
514
- ],
515
- "onDelete": "no action",
516
- "onUpdate": "no action"
517
- }
518
- },
519
- "compositePrimaryKeys": {},
520
- "uniqueConstraints": {},
521
- "checkConstraints": {}
522
- },
523
- "pipeline_state": {
524
- "name": "pipeline_state",
525
- "columns": {
526
- "feature_id": {
527
- "name": "feature_id",
528
- "type": "text",
529
- "primaryKey": true,
530
- "notNull": true,
531
- "autoincrement": false
532
- },
533
- "status": {
534
- "name": "status",
535
- "type": "text",
536
- "primaryKey": false,
537
- "notNull": true,
538
- "autoincrement": false
539
- },
540
- "cycle": {
541
- "name": "cycle",
542
- "type": "integer",
543
- "primaryKey": false,
544
- "notNull": true,
545
- "autoincrement": false,
546
- "default": 1
547
- },
548
- "tasks_json": {
549
- "name": "tasks_json",
550
- "type": "text",
551
- "primaryKey": false,
552
- "notNull": false,
553
- "autoincrement": false
554
- },
555
- "tool_calls_json": {
556
- "name": "tool_calls_json",
557
- "type": "text",
558
- "primaryKey": false,
559
- "notNull": false,
560
- "autoincrement": false
561
- },
562
- "work_summaries_json": {
563
- "name": "work_summaries_json",
564
- "type": "text",
565
- "primaryKey": false,
566
- "notNull": false,
567
- "autoincrement": false
568
- },
569
- "stage_stats_json": {
570
- "name": "stage_stats_json",
571
- "type": "text",
572
- "primaryKey": false,
573
- "notNull": false,
574
- "autoincrement": false
575
- },
576
- "error": {
577
- "name": "error",
578
- "type": "text",
579
- "primaryKey": false,
580
- "notNull": false,
581
- "autoincrement": false
582
- },
583
- "updated_at": {
584
- "name": "updated_at",
585
- "type": "text",
586
- "primaryKey": false,
587
- "notNull": true,
588
- "autoincrement": false
589
- },
590
- "project_id": {
591
- "name": "project_id",
592
- "type": "text",
593
- "primaryKey": false,
594
- "notNull": false,
595
- "autoincrement": false
596
- }
597
- },
598
- "indexes": {},
599
- "foreignKeys": {},
600
- "compositePrimaryKeys": {},
601
- "uniqueConstraints": {},
602
- "checkConstraints": {}
603
- },
604
- "projects": {
605
- "name": "projects",
606
- "columns": {
607
- "id": {
608
- "name": "id",
609
- "type": "text",
610
- "primaryKey": true,
611
- "notNull": true,
612
- "autoincrement": false
613
- },
614
- "name": {
615
- "name": "name",
616
- "type": "text",
617
- "primaryKey": false,
618
- "notNull": true,
619
- "autoincrement": false
620
- },
621
- "is_default": {
622
- "name": "is_default",
623
- "type": "integer",
624
- "primaryKey": false,
625
- "notNull": true,
626
- "autoincrement": false,
627
- "default": 0
628
- },
629
- "archived_at": {
630
- "name": "archived_at",
631
- "type": "text",
632
- "primaryKey": false,
633
- "notNull": false,
634
- "autoincrement": false
635
- },
636
- "repo_url": {
637
- "name": "repo_url",
638
- "type": "text",
639
- "primaryKey": false,
640
- "notNull": false,
641
- "autoincrement": false
642
- },
643
- "github_installation_id": {
644
- "name": "github_installation_id",
645
- "type": "text",
646
- "primaryKey": false,
647
- "notNull": false,
648
- "autoincrement": false
649
- },
650
- "github_repo_full_name": {
651
- "name": "github_repo_full_name",
652
- "type": "text",
653
- "primaryKey": false,
654
- "notNull": false,
655
- "autoincrement": false
656
- },
657
- "base_branch": {
658
- "name": "base_branch",
659
- "type": "text",
660
- "primaryKey": false,
661
- "notNull": false,
662
- "autoincrement": false
663
- },
664
- "created_at": {
665
- "name": "created_at",
666
- "type": "text",
667
- "primaryKey": false,
668
- "notNull": true,
669
- "autoincrement": false
670
- },
671
- "updated_at": {
672
- "name": "updated_at",
673
- "type": "text",
674
- "primaryKey": false,
675
- "notNull": true,
676
- "autoincrement": false
677
- }
678
- },
679
- "indexes": {},
680
- "foreignKeys": {},
681
- "compositePrimaryKeys": {},
682
- "uniqueConstraints": {},
683
- "checkConstraints": {}
684
- },
685
- "refresh_tokens": {
686
- "name": "refresh_tokens",
687
- "columns": {
688
- "id": {
689
- "name": "id",
690
- "type": "text",
691
- "primaryKey": true,
692
- "notNull": true,
693
- "autoincrement": false
694
- },
695
- "user_id": {
696
- "name": "user_id",
697
- "type": "text",
698
- "primaryKey": false,
699
- "notNull": true,
700
- "autoincrement": false
701
- },
702
- "token_hash": {
703
- "name": "token_hash",
704
- "type": "text",
705
- "primaryKey": false,
706
- "notNull": true,
707
- "autoincrement": false
708
- },
709
- "expires_at": {
710
- "name": "expires_at",
711
- "type": "text",
712
- "primaryKey": false,
713
- "notNull": true,
714
- "autoincrement": false
715
- },
716
- "created_at": {
717
- "name": "created_at",
718
- "type": "text",
719
- "primaryKey": false,
720
- "notNull": true,
721
- "autoincrement": false
722
- }
723
- },
724
- "indexes": {},
725
- "foreignKeys": {
726
- "refresh_tokens_user_id_users_id_fk": {
727
- "name": "refresh_tokens_user_id_users_id_fk",
728
- "tableFrom": "refresh_tokens",
729
- "tableTo": "users",
730
- "columnsFrom": [
731
- "user_id"
732
- ],
733
- "columnsTo": [
734
- "id"
735
- ],
736
- "onDelete": "no action",
737
- "onUpdate": "no action"
738
- }
739
- },
740
- "compositePrimaryKeys": {},
741
- "uniqueConstraints": {},
742
- "checkConstraints": {}
743
- },
744
- "review_meta": {
745
- "name": "review_meta",
746
- "columns": {
747
- "key": {
748
- "name": "key",
749
- "type": "text",
750
- "primaryKey": true,
751
- "notNull": true,
752
- "autoincrement": false
753
- },
754
- "value": {
755
- "name": "value",
756
- "type": "text",
757
- "primaryKey": false,
758
- "notNull": true,
759
- "autoincrement": false
760
- },
761
- "project_id": {
762
- "name": "project_id",
763
- "type": "text",
764
- "primaryKey": false,
765
- "notNull": false,
766
- "autoincrement": false
767
- }
768
- },
769
- "indexes": {},
770
- "foreignKeys": {},
771
- "compositePrimaryKeys": {},
772
- "uniqueConstraints": {},
773
- "checkConstraints": {}
774
- },
775
- "sessions": {
776
- "name": "sessions",
777
- "columns": {
778
- "session_number": {
779
- "name": "session_number",
780
- "type": "integer",
781
- "primaryKey": false,
782
- "notNull": true,
783
- "autoincrement": false
784
- },
785
- "started_at": {
786
- "name": "started_at",
787
- "type": "text",
788
- "primaryKey": false,
789
- "notNull": true,
790
- "autoincrement": false
791
- },
792
- "ended_at": {
793
- "name": "ended_at",
794
- "type": "text",
795
- "primaryKey": false,
796
- "notNull": false,
797
- "autoincrement": false
798
- },
799
- "summary": {
800
- "name": "summary",
801
- "type": "text",
802
- "primaryKey": false,
803
- "notNull": false,
804
- "autoincrement": false
805
- },
806
- "nodes_touched": {
807
- "name": "nodes_touched",
808
- "type": "text",
809
- "primaryKey": false,
810
- "notNull": false,
811
- "autoincrement": false
812
- },
813
- "questions_resolved": {
814
- "name": "questions_resolved",
815
- "type": "integer",
816
- "primaryKey": false,
817
- "notNull": true,
818
- "autoincrement": false,
819
- "default": 0
820
- },
821
- "body": {
822
- "name": "body",
823
- "type": "text",
824
- "primaryKey": false,
825
- "notNull": false,
826
- "autoincrement": false
827
- },
828
- "project_id": {
829
- "name": "project_id",
830
- "type": "text",
831
- "primaryKey": false,
832
- "notNull": true,
833
- "autoincrement": false
834
- }
835
- },
836
- "indexes": {},
837
- "foreignKeys": {},
838
- "compositePrimaryKeys": {
839
- "sessions_session_number_project_id_pk": {
840
- "columns": [
841
- "session_number",
842
- "project_id"
843
- ],
844
- "name": "sessions_session_number_project_id_pk"
845
- }
846
- },
847
- "uniqueConstraints": {},
848
- "checkConstraints": {}
849
- },
850
- "stage_assignments": {
851
- "name": "stage_assignments",
852
- "columns": {
853
- "id": {
854
- "name": "id",
855
- "type": "text",
856
- "primaryKey": true,
857
- "notNull": true,
858
- "autoincrement": false
859
- },
860
- "stage": {
861
- "name": "stage",
862
- "type": "text",
863
- "primaryKey": false,
864
- "notNull": true,
865
- "autoincrement": false
866
- },
867
- "agent_id": {
868
- "name": "agent_id",
869
- "type": "text",
870
- "primaryKey": false,
871
- "notNull": true,
872
- "autoincrement": false
873
- },
874
- "project_id": {
875
- "name": "project_id",
876
- "type": "text",
877
- "primaryKey": false,
878
- "notNull": false,
879
- "autoincrement": false
880
- }
881
- },
882
- "indexes": {
883
- "stage_assignments_stage_project_id_unique": {
884
- "name": "stage_assignments_stage_project_id_unique",
885
- "columns": [
886
- "stage",
887
- "project_id"
888
- ],
889
- "isUnique": true
890
- }
891
- },
892
- "foreignKeys": {
893
- "stage_assignments_agent_id_agents_id_fk": {
894
- "name": "stage_assignments_agent_id_agents_id_fk",
895
- "tableFrom": "stage_assignments",
896
- "tableTo": "agents",
897
- "columnsFrom": [
898
- "agent_id"
899
- ],
900
- "columnsTo": [
901
- "id"
902
- ],
903
- "onDelete": "no action",
904
- "onUpdate": "no action"
905
- }
906
- },
907
- "compositePrimaryKeys": {},
908
- "uniqueConstraints": {},
909
- "checkConstraints": {}
910
- },
911
- "terminal_sessions": {
912
- "name": "terminal_sessions",
913
- "columns": {
914
- "id": {
915
- "name": "id",
916
- "type": "text",
917
- "primaryKey": true,
918
- "notNull": true,
919
- "autoincrement": false
920
- },
921
- "claude_session_id": {
922
- "name": "claude_session_id",
923
- "type": "text",
924
- "primaryKey": false,
925
- "notNull": true,
926
- "autoincrement": false
927
- },
928
- "project_id": {
929
- "name": "project_id",
930
- "type": "text",
931
- "primaryKey": false,
932
- "notNull": true,
933
- "autoincrement": false
934
- },
935
- "project_name": {
936
- "name": "project_name",
937
- "type": "text",
938
- "primaryKey": false,
939
- "notNull": true,
940
- "autoincrement": false
941
- },
942
- "name": {
943
- "name": "name",
944
- "type": "text",
945
- "primaryKey": false,
946
- "notNull": true,
947
- "autoincrement": false
948
- },
949
- "created_at": {
950
- "name": "created_at",
951
- "type": "text",
952
- "primaryKey": false,
953
- "notNull": true,
954
- "autoincrement": false
955
- },
956
- "last_used_at": {
957
- "name": "last_used_at",
958
- "type": "text",
959
- "primaryKey": false,
960
- "notNull": true,
961
- "autoincrement": false
962
- }
963
- },
964
- "indexes": {},
965
- "foreignKeys": {},
966
- "compositePrimaryKeys": {},
967
- "uniqueConstraints": {},
968
- "checkConstraints": {}
969
- },
970
- "users": {
971
- "name": "users",
972
- "columns": {
973
- "id": {
974
- "name": "id",
975
- "type": "text",
976
- "primaryKey": true,
977
- "notNull": true,
978
- "autoincrement": false
979
- },
980
- "email": {
981
- "name": "email",
982
- "type": "text",
983
- "primaryKey": false,
984
- "notNull": true,
985
- "autoincrement": false
986
- },
987
- "password_hash": {
988
- "name": "password_hash",
989
- "type": "text",
990
- "primaryKey": false,
991
- "notNull": true,
992
- "autoincrement": false
993
- },
994
- "role": {
995
- "name": "role",
996
- "type": "text",
997
- "primaryKey": false,
998
- "notNull": true,
999
- "autoincrement": false,
1000
- "default": "'user'"
1001
- },
1002
- "created_at": {
1003
- "name": "created_at",
1004
- "type": "text",
1005
- "primaryKey": false,
1006
- "notNull": true,
1007
- "autoincrement": false
1008
- },
1009
- "updated_at": {
1010
- "name": "updated_at",
1011
- "type": "text",
1012
- "primaryKey": false,
1013
- "notNull": true,
1014
- "autoincrement": false
1015
- }
1016
- },
1017
- "indexes": {
1018
- "users_email_unique": {
1019
- "name": "users_email_unique",
1020
- "columns": [
1021
- "email"
1022
- ],
1023
- "isUnique": true
1024
- }
1025
- },
1026
- "foreignKeys": {},
1027
- "compositePrimaryKeys": {},
1028
- "uniqueConstraints": {},
1029
- "checkConstraints": {}
1030
- }
1031
- },
1032
- "views": {},
1033
- "enums": {},
1034
- "_meta": {
1035
- "schemas": {},
1036
- "tables": {},
1037
- "columns": {}
1038
- },
1039
- "internal": {
1040
- "indexes": {}
1041
- }
1042
- }