codeden 0.6.3 → 0.7.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 (42) hide show
  1. package/README.md +12 -5
  2. package/dist/cli.js +1 -1
  3. package/dist/drizzle/20261113075317_transcript_search/migration.sql +29 -0
  4. package/dist/drizzle/20261113075317_transcript_search/snapshot.json +3635 -0
  5. package/dist/drizzle/20261113083655_runners/migration.sql +17 -0
  6. package/dist/drizzle/20261113083655_runners/snapshot.json +3792 -0
  7. package/dist/drizzle/20261113165404_search_newest_first/migration.sql +43 -0
  8. package/dist/drizzle/20261113165404_search_newest_first/snapshot.json +3785 -0
  9. package/dist/{main-Bx58CdV4.js → main-BITVD_Bx.js} +4781 -1305
  10. package/dist/main-BITVD_Bx.js.map +1 -0
  11. package/dist/{main-CMt4z1Z9.js → main-NN0iK2tB.js} +2 -2
  12. package/dist/{main-CMt4z1Z9.js.map → main-NN0iK2tB.js.map} +1 -1
  13. package/dist/{mediaType-BCz-hbZl.js → mediaType-N0hKQqG9.js} +2 -2
  14. package/dist/{mediaType-BCz-hbZl.js.map → mediaType-N0hKQqG9.js.map} +1 -1
  15. package/dist/{runner-CiaiUWOE.js → runner-CQYh087M.js} +1302 -304
  16. package/dist/runner-CQYh087M.js.map +1 -0
  17. package/dist/runner.js +1 -1
  18. package/dist/{server-test-b0hHPqXb.js → server-test-BwyCFssm.js} +3 -3
  19. package/dist/{server-test-b0hHPqXb.js.map → server-test-BwyCFssm.js.map} +1 -1
  20. package/dist/{tree-31WAOm5k.js → tree-Bjv-rXir.js} +457 -21
  21. package/dist/tree-Bjv-rXir.js.map +1 -0
  22. package/dist/web/assets/{core-FqX7NQzW.js → core-EsMgAasL.js} +1 -1
  23. package/dist/web/assets/engine-oniguruma-C2eJcn5h.js +1 -0
  24. package/dist/web/assets/{highlighted-body-JLMTFACH-BMKFJRL-.js → highlighted-body-JLMTFACH-Co1oXN1b.js} +1 -1
  25. package/dist/web/assets/{highlights-9yuGk1pg.js → highlights-DUjJZrPQ.js} +1 -1
  26. package/dist/web/assets/index-29XyPQXD.css +1 -0
  27. package/dist/web/assets/index-DK4GsIYY.js +943 -0
  28. package/dist/web/assets/langs-BduZAjBk.js +1 -0
  29. package/dist/web/assets/mermaid-WFAXDIZX-D00b7K53.js +1 -0
  30. package/dist/web/assets/{shiki-Qa-y3xHo.js → shiki-DP8JfDZC.js} +2 -2
  31. package/dist/web/assets/{stream-tokenizer-VL43-ily.js → stream-tokenizer-IR1cpBIQ.js} +1 -1
  32. package/dist/web/assets/{themes-Di4DO5zr.js → themes-D2aixyve.js} +2 -2
  33. package/dist/web/index.html +2 -2
  34. package/package.json +1 -1
  35. package/dist/main-Bx58CdV4.js.map +0 -1
  36. package/dist/runner-CiaiUWOE.js.map +0 -1
  37. package/dist/tree-31WAOm5k.js.map +0 -1
  38. package/dist/web/assets/engine-oniguruma-C5UP18m1.js +0 -1
  39. package/dist/web/assets/index-C3QkKvUn.js +0 -942
  40. package/dist/web/assets/index-CmllrYFx.css +0 -1
  41. package/dist/web/assets/langs-DfCgj44a.js +0 -1
  42. package/dist/web/assets/mermaid-WFAXDIZX-zTA5f8lD.js +0 -1
@@ -0,0 +1,3792 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "id": "0a812f95-b601-4383-8346-7f9365847c23",
5
+ "prevIds": [
6
+ "29a3e392-1efa-4ff0-bb67-c154b140dc55"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "automation_projects",
11
+ "entityType": "tables"
12
+ },
13
+ {
14
+ "name": "automation_schedules",
15
+ "entityType": "tables"
16
+ },
17
+ {
18
+ "name": "artifacts",
19
+ "entityType": "tables"
20
+ },
21
+ {
22
+ "name": "automation_runs",
23
+ "entityType": "tables"
24
+ },
25
+ {
26
+ "name": "automations",
27
+ "entityType": "tables"
28
+ },
29
+ {
30
+ "name": "checkpoints",
31
+ "entityType": "tables"
32
+ },
33
+ {
34
+ "name": "events",
35
+ "entityType": "tables"
36
+ },
37
+ {
38
+ "name": "inbox_items",
39
+ "entityType": "tables"
40
+ },
41
+ {
42
+ "name": "items",
43
+ "entityType": "tables"
44
+ },
45
+ {
46
+ "name": "mcp_tokens",
47
+ "entityType": "tables"
48
+ },
49
+ {
50
+ "name": "projects",
51
+ "entityType": "tables"
52
+ },
53
+ {
54
+ "name": "queued_messages",
55
+ "entityType": "tables"
56
+ },
57
+ {
58
+ "name": "runner_state",
59
+ "entityType": "tables"
60
+ },
61
+ {
62
+ "name": "sessions",
63
+ "entityType": "tables"
64
+ },
65
+ {
66
+ "name": "threads",
67
+ "entityType": "tables"
68
+ },
69
+ {
70
+ "name": "turns",
71
+ "entityType": "tables"
72
+ },
73
+ {
74
+ "name": "factory_digests",
75
+ "entityType": "tables"
76
+ },
77
+ {
78
+ "name": "factory_items",
79
+ "entityType": "tables"
80
+ },
81
+ {
82
+ "name": "factory_loops",
83
+ "entityType": "tables"
84
+ },
85
+ {
86
+ "name": "github_issues",
87
+ "entityType": "tables"
88
+ },
89
+ {
90
+ "name": "github_prs",
91
+ "entityType": "tables"
92
+ },
93
+ {
94
+ "name": "github_sync_state",
95
+ "entityType": "tables"
96
+ },
97
+ {
98
+ "name": "conflicts",
99
+ "entityType": "tables"
100
+ },
101
+ {
102
+ "name": "notices",
103
+ "entityType": "tables"
104
+ },
105
+ {
106
+ "name": "runners",
107
+ "entityType": "tables"
108
+ },
109
+ {
110
+ "name": "item_search",
111
+ "entityType": "tables"
112
+ },
113
+ {
114
+ "name": "rate_limit_windows",
115
+ "entityType": "tables"
116
+ },
117
+ {
118
+ "name": "usage_ledger",
119
+ "entityType": "tables"
120
+ },
121
+ {
122
+ "table": "automation_projects",
123
+ "name": "project_id",
124
+ "type": "text",
125
+ "notNull": false,
126
+ "autoincrement": false,
127
+ "default": null,
128
+ "generated": null,
129
+ "entityType": "columns"
130
+ },
131
+ {
132
+ "table": "automation_projects",
133
+ "name": "enabled",
134
+ "type": "integer",
135
+ "notNull": true,
136
+ "autoincrement": false,
137
+ "default": "true",
138
+ "generated": null,
139
+ "entityType": "columns"
140
+ },
141
+ {
142
+ "table": "automation_projects",
143
+ "name": "updated_at",
144
+ "type": "text",
145
+ "notNull": true,
146
+ "autoincrement": false,
147
+ "default": null,
148
+ "generated": null,
149
+ "entityType": "columns"
150
+ },
151
+ {
152
+ "table": "automation_schedules",
153
+ "name": "automation_id",
154
+ "type": "text",
155
+ "notNull": true,
156
+ "autoincrement": false,
157
+ "default": null,
158
+ "generated": null,
159
+ "entityType": "columns"
160
+ },
161
+ {
162
+ "table": "automation_schedules",
163
+ "name": "project_id",
164
+ "type": "text",
165
+ "notNull": true,
166
+ "autoincrement": false,
167
+ "default": null,
168
+ "generated": null,
169
+ "entityType": "columns"
170
+ },
171
+ {
172
+ "table": "automation_schedules",
173
+ "name": "signature",
174
+ "type": "text",
175
+ "notNull": false,
176
+ "autoincrement": false,
177
+ "default": null,
178
+ "generated": null,
179
+ "entityType": "columns"
180
+ },
181
+ {
182
+ "table": "automation_schedules",
183
+ "name": "next_run_at",
184
+ "type": "text",
185
+ "notNull": false,
186
+ "autoincrement": false,
187
+ "default": null,
188
+ "generated": null,
189
+ "entityType": "columns"
190
+ },
191
+ {
192
+ "table": "automation_schedules",
193
+ "name": "skip_at",
194
+ "type": "text",
195
+ "notNull": false,
196
+ "autoincrement": false,
197
+ "default": null,
198
+ "generated": null,
199
+ "entityType": "columns"
200
+ },
201
+ {
202
+ "table": "automation_schedules",
203
+ "name": "paused",
204
+ "type": "integer",
205
+ "notNull": true,
206
+ "autoincrement": false,
207
+ "default": "false",
208
+ "generated": null,
209
+ "entityType": "columns"
210
+ },
211
+ {
212
+ "table": "automation_schedules",
213
+ "name": "enabled_override",
214
+ "type": "integer",
215
+ "notNull": false,
216
+ "autoincrement": false,
217
+ "default": null,
218
+ "generated": null,
219
+ "entityType": "columns"
220
+ },
221
+ {
222
+ "table": "automation_schedules",
223
+ "name": "last_fired_at",
224
+ "type": "text",
225
+ "notNull": false,
226
+ "autoincrement": false,
227
+ "default": null,
228
+ "generated": null,
229
+ "entityType": "columns"
230
+ },
231
+ {
232
+ "table": "automation_schedules",
233
+ "name": "updated_at",
234
+ "type": "text",
235
+ "notNull": true,
236
+ "autoincrement": false,
237
+ "default": null,
238
+ "generated": null,
239
+ "entityType": "columns"
240
+ },
241
+ {
242
+ "table": "artifacts",
243
+ "name": "id",
244
+ "type": "text",
245
+ "notNull": false,
246
+ "autoincrement": false,
247
+ "default": null,
248
+ "generated": null,
249
+ "entityType": "columns"
250
+ },
251
+ {
252
+ "table": "artifacts",
253
+ "name": "kind",
254
+ "type": "text",
255
+ "notNull": true,
256
+ "autoincrement": false,
257
+ "default": null,
258
+ "generated": null,
259
+ "entityType": "columns"
260
+ },
261
+ {
262
+ "table": "artifacts",
263
+ "name": "name",
264
+ "type": "text",
265
+ "notNull": true,
266
+ "autoincrement": false,
267
+ "default": null,
268
+ "generated": null,
269
+ "entityType": "columns"
270
+ },
271
+ {
272
+ "table": "artifacts",
273
+ "name": "media_type",
274
+ "type": "text",
275
+ "notNull": true,
276
+ "autoincrement": false,
277
+ "default": null,
278
+ "generated": null,
279
+ "entityType": "columns"
280
+ },
281
+ {
282
+ "table": "artifacts",
283
+ "name": "path",
284
+ "type": "text",
285
+ "notNull": true,
286
+ "autoincrement": false,
287
+ "default": null,
288
+ "generated": null,
289
+ "entityType": "columns"
290
+ },
291
+ {
292
+ "table": "artifacts",
293
+ "name": "size_bytes",
294
+ "type": "integer",
295
+ "notNull": true,
296
+ "autoincrement": false,
297
+ "default": null,
298
+ "generated": null,
299
+ "entityType": "columns"
300
+ },
301
+ {
302
+ "table": "artifacts",
303
+ "name": "sha256",
304
+ "type": "text",
305
+ "notNull": false,
306
+ "autoincrement": false,
307
+ "default": null,
308
+ "generated": null,
309
+ "entityType": "columns"
310
+ },
311
+ {
312
+ "table": "artifacts",
313
+ "name": "project_id",
314
+ "type": "text",
315
+ "notNull": false,
316
+ "autoincrement": false,
317
+ "default": null,
318
+ "generated": null,
319
+ "entityType": "columns"
320
+ },
321
+ {
322
+ "table": "artifacts",
323
+ "name": "session_id",
324
+ "type": "text",
325
+ "notNull": false,
326
+ "autoincrement": false,
327
+ "default": null,
328
+ "generated": null,
329
+ "entityType": "columns"
330
+ },
331
+ {
332
+ "table": "artifacts",
333
+ "name": "thread_id",
334
+ "type": "text",
335
+ "notNull": false,
336
+ "autoincrement": false,
337
+ "default": null,
338
+ "generated": null,
339
+ "entityType": "columns"
340
+ },
341
+ {
342
+ "table": "artifacts",
343
+ "name": "item_id",
344
+ "type": "text",
345
+ "notNull": false,
346
+ "autoincrement": false,
347
+ "default": null,
348
+ "generated": null,
349
+ "entityType": "columns"
350
+ },
351
+ {
352
+ "table": "artifacts",
353
+ "name": "created_at",
354
+ "type": "text",
355
+ "notNull": true,
356
+ "autoincrement": false,
357
+ "default": null,
358
+ "generated": null,
359
+ "entityType": "columns"
360
+ },
361
+ {
362
+ "table": "automation_runs",
363
+ "name": "id",
364
+ "type": "text",
365
+ "notNull": false,
366
+ "autoincrement": false,
367
+ "default": null,
368
+ "generated": null,
369
+ "entityType": "columns"
370
+ },
371
+ {
372
+ "table": "automation_runs",
373
+ "name": "automation_id",
374
+ "type": "text",
375
+ "notNull": true,
376
+ "autoincrement": false,
377
+ "default": null,
378
+ "generated": null,
379
+ "entityType": "columns"
380
+ },
381
+ {
382
+ "table": "automation_runs",
383
+ "name": "project_id",
384
+ "type": "text",
385
+ "notNull": false,
386
+ "autoincrement": false,
387
+ "default": null,
388
+ "generated": null,
389
+ "entityType": "columns"
390
+ },
391
+ {
392
+ "table": "automation_runs",
393
+ "name": "status",
394
+ "type": "text",
395
+ "notNull": true,
396
+ "autoincrement": false,
397
+ "default": null,
398
+ "generated": null,
399
+ "entityType": "columns"
400
+ },
401
+ {
402
+ "table": "automation_runs",
403
+ "name": "triggered_by",
404
+ "type": "text",
405
+ "notNull": true,
406
+ "autoincrement": false,
407
+ "default": null,
408
+ "generated": null,
409
+ "entityType": "columns"
410
+ },
411
+ {
412
+ "table": "automation_runs",
413
+ "name": "started_by",
414
+ "type": "text",
415
+ "notNull": true,
416
+ "autoincrement": false,
417
+ "default": null,
418
+ "generated": null,
419
+ "entityType": "columns"
420
+ },
421
+ {
422
+ "table": "automation_runs",
423
+ "name": "purpose",
424
+ "type": "text",
425
+ "notNull": true,
426
+ "autoincrement": false,
427
+ "default": null,
428
+ "generated": null,
429
+ "entityType": "columns"
430
+ },
431
+ {
432
+ "table": "automation_runs",
433
+ "name": "work_key",
434
+ "type": "text",
435
+ "notNull": true,
436
+ "autoincrement": false,
437
+ "default": null,
438
+ "generated": null,
439
+ "entityType": "columns"
440
+ },
441
+ {
442
+ "table": "automation_runs",
443
+ "name": "scope",
444
+ "type": "text",
445
+ "notNull": true,
446
+ "autoincrement": false,
447
+ "default": null,
448
+ "generated": null,
449
+ "entityType": "columns"
450
+ },
451
+ {
452
+ "table": "automation_runs",
453
+ "name": "progress",
454
+ "type": "text",
455
+ "notNull": false,
456
+ "autoincrement": false,
457
+ "default": null,
458
+ "generated": null,
459
+ "entityType": "columns"
460
+ },
461
+ {
462
+ "table": "automation_runs",
463
+ "name": "skip_reason",
464
+ "type": "text",
465
+ "notNull": false,
466
+ "autoincrement": false,
467
+ "default": null,
468
+ "generated": null,
469
+ "entityType": "columns"
470
+ },
471
+ {
472
+ "table": "automation_runs",
473
+ "name": "session_id",
474
+ "type": "text",
475
+ "notNull": false,
476
+ "autoincrement": false,
477
+ "default": null,
478
+ "generated": null,
479
+ "entityType": "columns"
480
+ },
481
+ {
482
+ "table": "automation_runs",
483
+ "name": "issue_number",
484
+ "type": "integer",
485
+ "notNull": false,
486
+ "autoincrement": false,
487
+ "default": null,
488
+ "generated": null,
489
+ "entityType": "columns"
490
+ },
491
+ {
492
+ "table": "automation_runs",
493
+ "name": "started_at",
494
+ "type": "text",
495
+ "notNull": true,
496
+ "autoincrement": false,
497
+ "default": null,
498
+ "generated": null,
499
+ "entityType": "columns"
500
+ },
501
+ {
502
+ "table": "automation_runs",
503
+ "name": "finished_at",
504
+ "type": "text",
505
+ "notNull": false,
506
+ "autoincrement": false,
507
+ "default": null,
508
+ "generated": null,
509
+ "entityType": "columns"
510
+ },
511
+ {
512
+ "table": "automation_runs",
513
+ "name": "error",
514
+ "type": "text",
515
+ "notNull": false,
516
+ "autoincrement": false,
517
+ "default": null,
518
+ "generated": null,
519
+ "entityType": "columns"
520
+ },
521
+ {
522
+ "table": "automations",
523
+ "name": "id",
524
+ "type": "text",
525
+ "notNull": false,
526
+ "autoincrement": false,
527
+ "default": null,
528
+ "generated": null,
529
+ "entityType": "columns"
530
+ },
531
+ {
532
+ "table": "automations",
533
+ "name": "name",
534
+ "type": "text",
535
+ "notNull": true,
536
+ "autoincrement": false,
537
+ "default": null,
538
+ "generated": null,
539
+ "entityType": "columns"
540
+ },
541
+ {
542
+ "table": "automations",
543
+ "name": "description",
544
+ "type": "text",
545
+ "notNull": false,
546
+ "autoincrement": false,
547
+ "default": null,
548
+ "generated": null,
549
+ "entityType": "columns"
550
+ },
551
+ {
552
+ "table": "automations",
553
+ "name": "enabled",
554
+ "type": "integer",
555
+ "notNull": true,
556
+ "autoincrement": false,
557
+ "default": "false",
558
+ "generated": null,
559
+ "entityType": "columns"
560
+ },
561
+ {
562
+ "table": "automations",
563
+ "name": "source",
564
+ "type": "text",
565
+ "notNull": true,
566
+ "autoincrement": false,
567
+ "default": null,
568
+ "generated": null,
569
+ "entityType": "columns"
570
+ },
571
+ {
572
+ "table": "automations",
573
+ "name": "template_id",
574
+ "type": "text",
575
+ "notNull": false,
576
+ "autoincrement": false,
577
+ "default": null,
578
+ "generated": null,
579
+ "entityType": "columns"
580
+ },
581
+ {
582
+ "table": "automations",
583
+ "name": "trigger",
584
+ "type": "text",
585
+ "notNull": true,
586
+ "autoincrement": false,
587
+ "default": null,
588
+ "generated": null,
589
+ "entityType": "columns"
590
+ },
591
+ {
592
+ "table": "automations",
593
+ "name": "action",
594
+ "type": "text",
595
+ "notNull": true,
596
+ "autoincrement": false,
597
+ "default": null,
598
+ "generated": null,
599
+ "entityType": "columns"
600
+ },
601
+ {
602
+ "table": "automations",
603
+ "name": "target",
604
+ "type": "text",
605
+ "notNull": true,
606
+ "autoincrement": false,
607
+ "default": null,
608
+ "generated": null,
609
+ "entityType": "columns"
610
+ },
611
+ {
612
+ "table": "automations",
613
+ "name": "guards",
614
+ "type": "text",
615
+ "notNull": true,
616
+ "autoincrement": false,
617
+ "default": null,
618
+ "generated": null,
619
+ "entityType": "columns"
620
+ },
621
+ {
622
+ "table": "automations",
623
+ "name": "work_key",
624
+ "type": "text",
625
+ "notNull": false,
626
+ "autoincrement": false,
627
+ "default": null,
628
+ "generated": null,
629
+ "entityType": "columns"
630
+ },
631
+ {
632
+ "table": "automations",
633
+ "name": "created_by",
634
+ "type": "text",
635
+ "notNull": false,
636
+ "autoincrement": false,
637
+ "default": null,
638
+ "generated": null,
639
+ "entityType": "columns"
640
+ },
641
+ {
642
+ "table": "automations",
643
+ "name": "created_at",
644
+ "type": "text",
645
+ "notNull": true,
646
+ "autoincrement": false,
647
+ "default": null,
648
+ "generated": null,
649
+ "entityType": "columns"
650
+ },
651
+ {
652
+ "table": "automations",
653
+ "name": "updated_at",
654
+ "type": "text",
655
+ "notNull": true,
656
+ "autoincrement": false,
657
+ "default": null,
658
+ "generated": null,
659
+ "entityType": "columns"
660
+ },
661
+ {
662
+ "table": "checkpoints",
663
+ "name": "session_id",
664
+ "type": "text",
665
+ "notNull": true,
666
+ "autoincrement": false,
667
+ "default": null,
668
+ "generated": null,
669
+ "entityType": "columns"
670
+ },
671
+ {
672
+ "table": "checkpoints",
673
+ "name": "idx",
674
+ "type": "integer",
675
+ "notNull": true,
676
+ "autoincrement": false,
677
+ "default": null,
678
+ "generated": null,
679
+ "entityType": "columns"
680
+ },
681
+ {
682
+ "table": "checkpoints",
683
+ "name": "ref",
684
+ "type": "text",
685
+ "notNull": true,
686
+ "autoincrement": false,
687
+ "default": null,
688
+ "generated": null,
689
+ "entityType": "columns"
690
+ },
691
+ {
692
+ "table": "checkpoints",
693
+ "name": "commit_sha",
694
+ "type": "text",
695
+ "notNull": true,
696
+ "autoincrement": false,
697
+ "default": null,
698
+ "generated": null,
699
+ "entityType": "columns"
700
+ },
701
+ {
702
+ "table": "checkpoints",
703
+ "name": "turn_id",
704
+ "type": "text",
705
+ "notNull": false,
706
+ "autoincrement": false,
707
+ "default": null,
708
+ "generated": null,
709
+ "entityType": "columns"
710
+ },
711
+ {
712
+ "table": "checkpoints",
713
+ "name": "created_at",
714
+ "type": "text",
715
+ "notNull": true,
716
+ "autoincrement": false,
717
+ "default": null,
718
+ "generated": null,
719
+ "entityType": "columns"
720
+ },
721
+ {
722
+ "table": "events",
723
+ "name": "seq",
724
+ "type": "integer",
725
+ "notNull": false,
726
+ "autoincrement": true,
727
+ "default": null,
728
+ "generated": null,
729
+ "entityType": "columns"
730
+ },
731
+ {
732
+ "table": "events",
733
+ "name": "session_id",
734
+ "type": "text",
735
+ "notNull": false,
736
+ "autoincrement": false,
737
+ "default": null,
738
+ "generated": null,
739
+ "entityType": "columns"
740
+ },
741
+ {
742
+ "table": "events",
743
+ "name": "type",
744
+ "type": "text",
745
+ "notNull": true,
746
+ "autoincrement": false,
747
+ "default": null,
748
+ "generated": null,
749
+ "entityType": "columns"
750
+ },
751
+ {
752
+ "table": "events",
753
+ "name": "payload",
754
+ "type": "text",
755
+ "notNull": true,
756
+ "autoincrement": false,
757
+ "default": null,
758
+ "generated": null,
759
+ "entityType": "columns"
760
+ },
761
+ {
762
+ "table": "events",
763
+ "name": "ts",
764
+ "type": "text",
765
+ "notNull": true,
766
+ "autoincrement": false,
767
+ "default": null,
768
+ "generated": null,
769
+ "entityType": "columns"
770
+ },
771
+ {
772
+ "table": "inbox_items",
773
+ "name": "id",
774
+ "type": "text",
775
+ "notNull": false,
776
+ "autoincrement": false,
777
+ "default": null,
778
+ "generated": null,
779
+ "entityType": "columns"
780
+ },
781
+ {
782
+ "table": "inbox_items",
783
+ "name": "kind",
784
+ "type": "text",
785
+ "notNull": true,
786
+ "autoincrement": false,
787
+ "default": null,
788
+ "generated": null,
789
+ "entityType": "columns"
790
+ },
791
+ {
792
+ "table": "inbox_items",
793
+ "name": "status",
794
+ "type": "text",
795
+ "notNull": true,
796
+ "autoincrement": false,
797
+ "default": null,
798
+ "generated": null,
799
+ "entityType": "columns"
800
+ },
801
+ {
802
+ "table": "inbox_items",
803
+ "name": "priority",
804
+ "type": "text",
805
+ "notNull": true,
806
+ "autoincrement": false,
807
+ "default": "'normal'",
808
+ "generated": null,
809
+ "entityType": "columns"
810
+ },
811
+ {
812
+ "table": "inbox_items",
813
+ "name": "notify",
814
+ "type": "text",
815
+ "notNull": true,
816
+ "autoincrement": false,
817
+ "default": "'needs_you'",
818
+ "generated": null,
819
+ "entityType": "columns"
820
+ },
821
+ {
822
+ "table": "inbox_items",
823
+ "name": "title",
824
+ "type": "text",
825
+ "notNull": true,
826
+ "autoincrement": false,
827
+ "default": null,
828
+ "generated": null,
829
+ "entityType": "columns"
830
+ },
831
+ {
832
+ "table": "inbox_items",
833
+ "name": "body",
834
+ "type": "text",
835
+ "notNull": false,
836
+ "autoincrement": false,
837
+ "default": null,
838
+ "generated": null,
839
+ "entityType": "columns"
840
+ },
841
+ {
842
+ "table": "inbox_items",
843
+ "name": "project_id",
844
+ "type": "text",
845
+ "notNull": false,
846
+ "autoincrement": false,
847
+ "default": null,
848
+ "generated": null,
849
+ "entityType": "columns"
850
+ },
851
+ {
852
+ "table": "inbox_items",
853
+ "name": "session_id",
854
+ "type": "text",
855
+ "notNull": false,
856
+ "autoincrement": false,
857
+ "default": null,
858
+ "generated": null,
859
+ "entityType": "columns"
860
+ },
861
+ {
862
+ "table": "inbox_items",
863
+ "name": "thread_id",
864
+ "type": "text",
865
+ "notNull": false,
866
+ "autoincrement": false,
867
+ "default": null,
868
+ "generated": null,
869
+ "entityType": "columns"
870
+ },
871
+ {
872
+ "table": "inbox_items",
873
+ "name": "item_id",
874
+ "type": "text",
875
+ "notNull": false,
876
+ "autoincrement": false,
877
+ "default": null,
878
+ "generated": null,
879
+ "entityType": "columns"
880
+ },
881
+ {
882
+ "table": "inbox_items",
883
+ "name": "request_id",
884
+ "type": "text",
885
+ "notNull": false,
886
+ "autoincrement": false,
887
+ "default": null,
888
+ "generated": null,
889
+ "entityType": "columns"
890
+ },
891
+ {
892
+ "table": "inbox_items",
893
+ "name": "issue",
894
+ "type": "text",
895
+ "notNull": false,
896
+ "autoincrement": false,
897
+ "default": null,
898
+ "generated": null,
899
+ "entityType": "columns"
900
+ },
901
+ {
902
+ "table": "inbox_items",
903
+ "name": "pr",
904
+ "type": "text",
905
+ "notNull": false,
906
+ "autoincrement": false,
907
+ "default": null,
908
+ "generated": null,
909
+ "entityType": "columns"
910
+ },
911
+ {
912
+ "table": "inbox_items",
913
+ "name": "automation_run_id",
914
+ "type": "text",
915
+ "notNull": false,
916
+ "autoincrement": false,
917
+ "default": null,
918
+ "generated": null,
919
+ "entityType": "columns"
920
+ },
921
+ {
922
+ "table": "inbox_items",
923
+ "name": "created_at",
924
+ "type": "text",
925
+ "notNull": true,
926
+ "autoincrement": false,
927
+ "default": null,
928
+ "generated": null,
929
+ "entityType": "columns"
930
+ },
931
+ {
932
+ "table": "inbox_items",
933
+ "name": "updated_at",
934
+ "type": "text",
935
+ "notNull": true,
936
+ "autoincrement": false,
937
+ "default": null,
938
+ "generated": null,
939
+ "entityType": "columns"
940
+ },
941
+ {
942
+ "table": "inbox_items",
943
+ "name": "resolved_at",
944
+ "type": "text",
945
+ "notNull": false,
946
+ "autoincrement": false,
947
+ "default": null,
948
+ "generated": null,
949
+ "entityType": "columns"
950
+ },
951
+ {
952
+ "table": "inbox_items",
953
+ "name": "resolution",
954
+ "type": "text",
955
+ "notNull": false,
956
+ "autoincrement": false,
957
+ "default": null,
958
+ "generated": null,
959
+ "entityType": "columns"
960
+ },
961
+ {
962
+ "table": "items",
963
+ "name": "session_id",
964
+ "type": "text",
965
+ "notNull": true,
966
+ "autoincrement": false,
967
+ "default": null,
968
+ "generated": null,
969
+ "entityType": "columns"
970
+ },
971
+ {
972
+ "table": "items",
973
+ "name": "id",
974
+ "type": "text",
975
+ "notNull": true,
976
+ "autoincrement": false,
977
+ "default": null,
978
+ "generated": null,
979
+ "entityType": "columns"
980
+ },
981
+ {
982
+ "table": "items",
983
+ "name": "thread_id",
984
+ "type": "text",
985
+ "notNull": true,
986
+ "autoincrement": false,
987
+ "default": null,
988
+ "generated": null,
989
+ "entityType": "columns"
990
+ },
991
+ {
992
+ "table": "items",
993
+ "name": "turn_id",
994
+ "type": "text",
995
+ "notNull": true,
996
+ "autoincrement": false,
997
+ "default": null,
998
+ "generated": null,
999
+ "entityType": "columns"
1000
+ },
1001
+ {
1002
+ "table": "items",
1003
+ "name": "position",
1004
+ "type": "integer",
1005
+ "notNull": true,
1006
+ "autoincrement": false,
1007
+ "default": null,
1008
+ "generated": null,
1009
+ "entityType": "columns"
1010
+ },
1011
+ {
1012
+ "table": "items",
1013
+ "name": "kind",
1014
+ "type": "text",
1015
+ "notNull": true,
1016
+ "autoincrement": false,
1017
+ "default": null,
1018
+ "generated": null,
1019
+ "entityType": "columns"
1020
+ },
1021
+ {
1022
+ "table": "items",
1023
+ "name": "status",
1024
+ "type": "text",
1025
+ "notNull": true,
1026
+ "autoincrement": false,
1027
+ "default": null,
1028
+ "generated": null,
1029
+ "entityType": "columns"
1030
+ },
1031
+ {
1032
+ "table": "items",
1033
+ "name": "data",
1034
+ "type": "text",
1035
+ "notNull": true,
1036
+ "autoincrement": false,
1037
+ "default": null,
1038
+ "generated": null,
1039
+ "entityType": "columns"
1040
+ },
1041
+ {
1042
+ "table": "items",
1043
+ "name": "created_at",
1044
+ "type": "text",
1045
+ "notNull": true,
1046
+ "autoincrement": false,
1047
+ "default": null,
1048
+ "generated": null,
1049
+ "entityType": "columns"
1050
+ },
1051
+ {
1052
+ "table": "items",
1053
+ "name": "updated_at",
1054
+ "type": "text",
1055
+ "notNull": true,
1056
+ "autoincrement": false,
1057
+ "default": null,
1058
+ "generated": null,
1059
+ "entityType": "columns"
1060
+ },
1061
+ {
1062
+ "table": "mcp_tokens",
1063
+ "name": "id",
1064
+ "type": "text",
1065
+ "notNull": false,
1066
+ "autoincrement": false,
1067
+ "default": null,
1068
+ "generated": null,
1069
+ "entityType": "columns"
1070
+ },
1071
+ {
1072
+ "table": "mcp_tokens",
1073
+ "name": "token_hash",
1074
+ "type": "text",
1075
+ "notNull": true,
1076
+ "autoincrement": false,
1077
+ "default": null,
1078
+ "generated": null,
1079
+ "entityType": "columns"
1080
+ },
1081
+ {
1082
+ "table": "mcp_tokens",
1083
+ "name": "role",
1084
+ "type": "text",
1085
+ "notNull": true,
1086
+ "autoincrement": false,
1087
+ "default": null,
1088
+ "generated": null,
1089
+ "entityType": "columns"
1090
+ },
1091
+ {
1092
+ "table": "mcp_tokens",
1093
+ "name": "session_id",
1094
+ "type": "text",
1095
+ "notNull": true,
1096
+ "autoincrement": false,
1097
+ "default": null,
1098
+ "generated": null,
1099
+ "entityType": "columns"
1100
+ },
1101
+ {
1102
+ "table": "mcp_tokens",
1103
+ "name": "project_id",
1104
+ "type": "text",
1105
+ "notNull": false,
1106
+ "autoincrement": false,
1107
+ "default": null,
1108
+ "generated": null,
1109
+ "entityType": "columns"
1110
+ },
1111
+ {
1112
+ "table": "mcp_tokens",
1113
+ "name": "created_at",
1114
+ "type": "text",
1115
+ "notNull": true,
1116
+ "autoincrement": false,
1117
+ "default": null,
1118
+ "generated": null,
1119
+ "entityType": "columns"
1120
+ },
1121
+ {
1122
+ "table": "mcp_tokens",
1123
+ "name": "revoked_at",
1124
+ "type": "text",
1125
+ "notNull": false,
1126
+ "autoincrement": false,
1127
+ "default": null,
1128
+ "generated": null,
1129
+ "entityType": "columns"
1130
+ },
1131
+ {
1132
+ "table": "projects",
1133
+ "name": "id",
1134
+ "type": "text",
1135
+ "notNull": false,
1136
+ "autoincrement": false,
1137
+ "default": null,
1138
+ "generated": null,
1139
+ "entityType": "columns"
1140
+ },
1141
+ {
1142
+ "table": "projects",
1143
+ "name": "kind",
1144
+ "type": "text",
1145
+ "notNull": true,
1146
+ "autoincrement": false,
1147
+ "default": null,
1148
+ "generated": null,
1149
+ "entityType": "columns"
1150
+ },
1151
+ {
1152
+ "table": "projects",
1153
+ "name": "name",
1154
+ "type": "text",
1155
+ "notNull": true,
1156
+ "autoincrement": false,
1157
+ "default": null,
1158
+ "generated": null,
1159
+ "entityType": "columns"
1160
+ },
1161
+ {
1162
+ "table": "projects",
1163
+ "name": "slug",
1164
+ "type": "text",
1165
+ "notNull": true,
1166
+ "autoincrement": false,
1167
+ "default": null,
1168
+ "generated": null,
1169
+ "entityType": "columns"
1170
+ },
1171
+ {
1172
+ "table": "projects",
1173
+ "name": "path",
1174
+ "type": "text",
1175
+ "notNull": true,
1176
+ "autoincrement": false,
1177
+ "default": null,
1178
+ "generated": null,
1179
+ "entityType": "columns"
1180
+ },
1181
+ {
1182
+ "table": "projects",
1183
+ "name": "default_branch",
1184
+ "type": "text",
1185
+ "notNull": false,
1186
+ "autoincrement": false,
1187
+ "default": null,
1188
+ "generated": null,
1189
+ "entityType": "columns"
1190
+ },
1191
+ {
1192
+ "table": "projects",
1193
+ "name": "default_provider",
1194
+ "type": "text",
1195
+ "notNull": false,
1196
+ "autoincrement": false,
1197
+ "default": null,
1198
+ "generated": null,
1199
+ "entityType": "columns"
1200
+ },
1201
+ {
1202
+ "table": "projects",
1203
+ "name": "autonomy",
1204
+ "type": "text",
1205
+ "notNull": false,
1206
+ "autoincrement": false,
1207
+ "default": null,
1208
+ "generated": null,
1209
+ "entityType": "columns"
1210
+ },
1211
+ {
1212
+ "table": "projects",
1213
+ "name": "autonomy_mode",
1214
+ "type": "text",
1215
+ "notNull": true,
1216
+ "autoincrement": false,
1217
+ "default": "'assisted'",
1218
+ "generated": null,
1219
+ "entityType": "columns"
1220
+ },
1221
+ {
1222
+ "table": "projects",
1223
+ "name": "vision_path",
1224
+ "type": "text",
1225
+ "notNull": true,
1226
+ "autoincrement": false,
1227
+ "default": "'.codeden/VISION.md'",
1228
+ "generated": null,
1229
+ "entityType": "columns"
1230
+ },
1231
+ {
1232
+ "table": "projects",
1233
+ "name": "factory_limits",
1234
+ "type": "text",
1235
+ "notNull": false,
1236
+ "autoincrement": false,
1237
+ "default": null,
1238
+ "generated": null,
1239
+ "entityType": "columns"
1240
+ },
1241
+ {
1242
+ "table": "projects",
1243
+ "name": "kill_switch",
1244
+ "type": "integer",
1245
+ "notNull": true,
1246
+ "autoincrement": false,
1247
+ "default": "false",
1248
+ "generated": null,
1249
+ "entityType": "columns"
1250
+ },
1251
+ {
1252
+ "table": "projects",
1253
+ "name": "timezone",
1254
+ "type": "text",
1255
+ "notNull": false,
1256
+ "autoincrement": false,
1257
+ "default": null,
1258
+ "generated": null,
1259
+ "entityType": "columns"
1260
+ },
1261
+ {
1262
+ "table": "projects",
1263
+ "name": "pinned",
1264
+ "type": "integer",
1265
+ "notNull": true,
1266
+ "autoincrement": false,
1267
+ "default": "false",
1268
+ "generated": null,
1269
+ "entityType": "columns"
1270
+ },
1271
+ {
1272
+ "table": "projects",
1273
+ "name": "sort_order",
1274
+ "type": "integer",
1275
+ "notNull": true,
1276
+ "autoincrement": false,
1277
+ "default": "0",
1278
+ "generated": null,
1279
+ "entityType": "columns"
1280
+ },
1281
+ {
1282
+ "table": "projects",
1283
+ "name": "github",
1284
+ "type": "text",
1285
+ "notNull": false,
1286
+ "autoincrement": false,
1287
+ "default": null,
1288
+ "generated": null,
1289
+ "entityType": "columns"
1290
+ },
1291
+ {
1292
+ "table": "projects",
1293
+ "name": "remote_warning",
1294
+ "type": "text",
1295
+ "notNull": false,
1296
+ "autoincrement": false,
1297
+ "default": null,
1298
+ "generated": null,
1299
+ "entityType": "columns"
1300
+ },
1301
+ {
1302
+ "table": "projects",
1303
+ "name": "created_at",
1304
+ "type": "text",
1305
+ "notNull": true,
1306
+ "autoincrement": false,
1307
+ "default": null,
1308
+ "generated": null,
1309
+ "entityType": "columns"
1310
+ },
1311
+ {
1312
+ "table": "projects",
1313
+ "name": "updated_at",
1314
+ "type": "text",
1315
+ "notNull": true,
1316
+ "autoincrement": false,
1317
+ "default": null,
1318
+ "generated": null,
1319
+ "entityType": "columns"
1320
+ },
1321
+ {
1322
+ "table": "projects",
1323
+ "name": "archived_at",
1324
+ "type": "text",
1325
+ "notNull": false,
1326
+ "autoincrement": false,
1327
+ "default": null,
1328
+ "generated": null,
1329
+ "entityType": "columns"
1330
+ },
1331
+ {
1332
+ "table": "queued_messages",
1333
+ "name": "id",
1334
+ "type": "text",
1335
+ "notNull": false,
1336
+ "autoincrement": false,
1337
+ "default": null,
1338
+ "generated": null,
1339
+ "entityType": "columns"
1340
+ },
1341
+ {
1342
+ "table": "queued_messages",
1343
+ "name": "session_id",
1344
+ "type": "text",
1345
+ "notNull": true,
1346
+ "autoincrement": false,
1347
+ "default": null,
1348
+ "generated": null,
1349
+ "entityType": "columns"
1350
+ },
1351
+ {
1352
+ "table": "queued_messages",
1353
+ "name": "input",
1354
+ "type": "text",
1355
+ "notNull": true,
1356
+ "autoincrement": false,
1357
+ "default": null,
1358
+ "generated": null,
1359
+ "entityType": "columns"
1360
+ },
1361
+ {
1362
+ "table": "queued_messages",
1363
+ "name": "sender",
1364
+ "type": "text",
1365
+ "notNull": false,
1366
+ "autoincrement": false,
1367
+ "default": null,
1368
+ "generated": null,
1369
+ "entityType": "columns"
1370
+ },
1371
+ {
1372
+ "table": "queued_messages",
1373
+ "name": "created_at",
1374
+ "type": "text",
1375
+ "notNull": true,
1376
+ "autoincrement": false,
1377
+ "default": null,
1378
+ "generated": null,
1379
+ "entityType": "columns"
1380
+ },
1381
+ {
1382
+ "table": "runner_state",
1383
+ "name": "runner_id",
1384
+ "type": "text",
1385
+ "notNull": false,
1386
+ "autoincrement": false,
1387
+ "default": null,
1388
+ "generated": null,
1389
+ "entityType": "columns"
1390
+ },
1391
+ {
1392
+ "table": "runner_state",
1393
+ "name": "last_acked_seq",
1394
+ "type": "integer",
1395
+ "notNull": true,
1396
+ "autoincrement": false,
1397
+ "default": "0",
1398
+ "generated": null,
1399
+ "entityType": "columns"
1400
+ },
1401
+ {
1402
+ "table": "runner_state",
1403
+ "name": "updated_at",
1404
+ "type": "text",
1405
+ "notNull": true,
1406
+ "autoincrement": false,
1407
+ "default": null,
1408
+ "generated": null,
1409
+ "entityType": "columns"
1410
+ },
1411
+ {
1412
+ "table": "sessions",
1413
+ "name": "id",
1414
+ "type": "text",
1415
+ "notNull": false,
1416
+ "autoincrement": false,
1417
+ "default": null,
1418
+ "generated": null,
1419
+ "entityType": "columns"
1420
+ },
1421
+ {
1422
+ "table": "sessions",
1423
+ "name": "project_id",
1424
+ "type": "text",
1425
+ "notNull": false,
1426
+ "autoincrement": false,
1427
+ "default": null,
1428
+ "generated": null,
1429
+ "entityType": "columns"
1430
+ },
1431
+ {
1432
+ "table": "sessions",
1433
+ "name": "role",
1434
+ "type": "text",
1435
+ "notNull": true,
1436
+ "autoincrement": false,
1437
+ "default": null,
1438
+ "generated": null,
1439
+ "entityType": "columns"
1440
+ },
1441
+ {
1442
+ "table": "sessions",
1443
+ "name": "parent_session_id",
1444
+ "type": "text",
1445
+ "notNull": false,
1446
+ "autoincrement": false,
1447
+ "default": null,
1448
+ "generated": null,
1449
+ "entityType": "columns"
1450
+ },
1451
+ {
1452
+ "table": "sessions",
1453
+ "name": "started_by",
1454
+ "type": "text",
1455
+ "notNull": true,
1456
+ "autoincrement": false,
1457
+ "default": null,
1458
+ "generated": null,
1459
+ "entityType": "columns"
1460
+ },
1461
+ {
1462
+ "table": "sessions",
1463
+ "name": "purpose",
1464
+ "type": "text",
1465
+ "notNull": true,
1466
+ "autoincrement": false,
1467
+ "default": null,
1468
+ "generated": null,
1469
+ "entityType": "columns"
1470
+ },
1471
+ {
1472
+ "table": "sessions",
1473
+ "name": "work_key",
1474
+ "type": "text",
1475
+ "notNull": true,
1476
+ "autoincrement": false,
1477
+ "default": null,
1478
+ "generated": null,
1479
+ "entityType": "columns"
1480
+ },
1481
+ {
1482
+ "table": "sessions",
1483
+ "name": "scope",
1484
+ "type": "text",
1485
+ "notNull": true,
1486
+ "autoincrement": false,
1487
+ "default": null,
1488
+ "generated": null,
1489
+ "entityType": "columns"
1490
+ },
1491
+ {
1492
+ "table": "sessions",
1493
+ "name": "progress",
1494
+ "type": "text",
1495
+ "notNull": false,
1496
+ "autoincrement": false,
1497
+ "default": null,
1498
+ "generated": null,
1499
+ "entityType": "columns"
1500
+ },
1501
+ {
1502
+ "table": "sessions",
1503
+ "name": "title",
1504
+ "type": "text",
1505
+ "notNull": false,
1506
+ "autoincrement": false,
1507
+ "default": null,
1508
+ "generated": null,
1509
+ "entityType": "columns"
1510
+ },
1511
+ {
1512
+ "table": "sessions",
1513
+ "name": "provider",
1514
+ "type": "text",
1515
+ "notNull": true,
1516
+ "autoincrement": false,
1517
+ "default": null,
1518
+ "generated": null,
1519
+ "entityType": "columns"
1520
+ },
1521
+ {
1522
+ "table": "sessions",
1523
+ "name": "model",
1524
+ "type": "text",
1525
+ "notNull": false,
1526
+ "autoincrement": false,
1527
+ "default": null,
1528
+ "generated": null,
1529
+ "entityType": "columns"
1530
+ },
1531
+ {
1532
+ "table": "sessions",
1533
+ "name": "effort",
1534
+ "type": "text",
1535
+ "notNull": false,
1536
+ "autoincrement": false,
1537
+ "default": null,
1538
+ "generated": null,
1539
+ "entityType": "columns"
1540
+ },
1541
+ {
1542
+ "table": "sessions",
1543
+ "name": "autonomy",
1544
+ "type": "text",
1545
+ "notNull": true,
1546
+ "autoincrement": false,
1547
+ "default": null,
1548
+ "generated": null,
1549
+ "entityType": "columns"
1550
+ },
1551
+ {
1552
+ "table": "sessions",
1553
+ "name": "plan_mode",
1554
+ "type": "integer",
1555
+ "notNull": true,
1556
+ "autoincrement": false,
1557
+ "default": "false",
1558
+ "generated": null,
1559
+ "entityType": "columns"
1560
+ },
1561
+ {
1562
+ "table": "sessions",
1563
+ "name": "status",
1564
+ "type": "text",
1565
+ "notNull": true,
1566
+ "autoincrement": false,
1567
+ "default": null,
1568
+ "generated": null,
1569
+ "entityType": "columns"
1570
+ },
1571
+ {
1572
+ "table": "sessions",
1573
+ "name": "cwd",
1574
+ "type": "text",
1575
+ "notNull": true,
1576
+ "autoincrement": false,
1577
+ "default": null,
1578
+ "generated": null,
1579
+ "entityType": "columns"
1580
+ },
1581
+ {
1582
+ "table": "sessions",
1583
+ "name": "worktree_path",
1584
+ "type": "text",
1585
+ "notNull": false,
1586
+ "autoincrement": false,
1587
+ "default": null,
1588
+ "generated": null,
1589
+ "entityType": "columns"
1590
+ },
1591
+ {
1592
+ "table": "sessions",
1593
+ "name": "branch",
1594
+ "type": "text",
1595
+ "notNull": false,
1596
+ "autoincrement": false,
1597
+ "default": null,
1598
+ "generated": null,
1599
+ "entityType": "columns"
1600
+ },
1601
+ {
1602
+ "table": "sessions",
1603
+ "name": "base_branch",
1604
+ "type": "text",
1605
+ "notNull": false,
1606
+ "autoincrement": false,
1607
+ "default": null,
1608
+ "generated": null,
1609
+ "entityType": "columns"
1610
+ },
1611
+ {
1612
+ "table": "sessions",
1613
+ "name": "issue",
1614
+ "type": "text",
1615
+ "notNull": false,
1616
+ "autoincrement": false,
1617
+ "default": null,
1618
+ "generated": null,
1619
+ "entityType": "columns"
1620
+ },
1621
+ {
1622
+ "table": "sessions",
1623
+ "name": "pr",
1624
+ "type": "text",
1625
+ "notNull": false,
1626
+ "autoincrement": false,
1627
+ "default": null,
1628
+ "generated": null,
1629
+ "entityType": "columns"
1630
+ },
1631
+ {
1632
+ "table": "sessions",
1633
+ "name": "resume_token",
1634
+ "type": "text",
1635
+ "notNull": false,
1636
+ "autoincrement": false,
1637
+ "default": null,
1638
+ "generated": null,
1639
+ "entityType": "columns"
1640
+ },
1641
+ {
1642
+ "table": "sessions",
1643
+ "name": "runner_id",
1644
+ "type": "text",
1645
+ "notNull": false,
1646
+ "autoincrement": false,
1647
+ "default": null,
1648
+ "generated": null,
1649
+ "entityType": "columns"
1650
+ },
1651
+ {
1652
+ "table": "sessions",
1653
+ "name": "automation_run_id",
1654
+ "type": "text",
1655
+ "notNull": false,
1656
+ "autoincrement": false,
1657
+ "default": null,
1658
+ "generated": null,
1659
+ "entityType": "columns"
1660
+ },
1661
+ {
1662
+ "table": "sessions",
1663
+ "name": "root_thread_id",
1664
+ "type": "text",
1665
+ "notNull": false,
1666
+ "autoincrement": false,
1667
+ "default": null,
1668
+ "generated": null,
1669
+ "entityType": "columns"
1670
+ },
1671
+ {
1672
+ "table": "sessions",
1673
+ "name": "created_at",
1674
+ "type": "text",
1675
+ "notNull": true,
1676
+ "autoincrement": false,
1677
+ "default": null,
1678
+ "generated": null,
1679
+ "entityType": "columns"
1680
+ },
1681
+ {
1682
+ "table": "sessions",
1683
+ "name": "updated_at",
1684
+ "type": "text",
1685
+ "notNull": true,
1686
+ "autoincrement": false,
1687
+ "default": null,
1688
+ "generated": null,
1689
+ "entityType": "columns"
1690
+ },
1691
+ {
1692
+ "table": "sessions",
1693
+ "name": "ended_at",
1694
+ "type": "text",
1695
+ "notNull": false,
1696
+ "autoincrement": false,
1697
+ "default": null,
1698
+ "generated": null,
1699
+ "entityType": "columns"
1700
+ },
1701
+ {
1702
+ "table": "sessions",
1703
+ "name": "archived_at",
1704
+ "type": "text",
1705
+ "notNull": false,
1706
+ "autoincrement": false,
1707
+ "default": null,
1708
+ "generated": null,
1709
+ "entityType": "columns"
1710
+ },
1711
+ {
1712
+ "table": "sessions",
1713
+ "name": "worktree_removed_at",
1714
+ "type": "text",
1715
+ "notNull": false,
1716
+ "autoincrement": false,
1717
+ "default": null,
1718
+ "generated": null,
1719
+ "entityType": "columns"
1720
+ },
1721
+ {
1722
+ "table": "sessions",
1723
+ "name": "forked_from",
1724
+ "type": "text",
1725
+ "notNull": false,
1726
+ "autoincrement": false,
1727
+ "default": null,
1728
+ "generated": null,
1729
+ "entityType": "columns"
1730
+ },
1731
+ {
1732
+ "table": "sessions",
1733
+ "name": "usage",
1734
+ "type": "text",
1735
+ "notNull": false,
1736
+ "autoincrement": false,
1737
+ "default": null,
1738
+ "generated": null,
1739
+ "entityType": "columns"
1740
+ },
1741
+ {
1742
+ "table": "sessions",
1743
+ "name": "start_meta",
1744
+ "type": "text",
1745
+ "notNull": false,
1746
+ "autoincrement": false,
1747
+ "default": null,
1748
+ "generated": null,
1749
+ "entityType": "columns"
1750
+ },
1751
+ {
1752
+ "table": "sessions",
1753
+ "name": "result",
1754
+ "type": "text",
1755
+ "notNull": false,
1756
+ "autoincrement": false,
1757
+ "default": null,
1758
+ "generated": null,
1759
+ "entityType": "columns"
1760
+ },
1761
+ {
1762
+ "table": "threads",
1763
+ "name": "session_id",
1764
+ "type": "text",
1765
+ "notNull": true,
1766
+ "autoincrement": false,
1767
+ "default": null,
1768
+ "generated": null,
1769
+ "entityType": "columns"
1770
+ },
1771
+ {
1772
+ "table": "threads",
1773
+ "name": "id",
1774
+ "type": "text",
1775
+ "notNull": true,
1776
+ "autoincrement": false,
1777
+ "default": null,
1778
+ "generated": null,
1779
+ "entityType": "columns"
1780
+ },
1781
+ {
1782
+ "table": "threads",
1783
+ "name": "parent_thread_id",
1784
+ "type": "text",
1785
+ "notNull": false,
1786
+ "autoincrement": false,
1787
+ "default": null,
1788
+ "generated": null,
1789
+ "entityType": "columns"
1790
+ },
1791
+ {
1792
+ "table": "threads",
1793
+ "name": "parent_item_id",
1794
+ "type": "text",
1795
+ "notNull": false,
1796
+ "autoincrement": false,
1797
+ "default": null,
1798
+ "generated": null,
1799
+ "entityType": "columns"
1800
+ },
1801
+ {
1802
+ "table": "threads",
1803
+ "name": "title",
1804
+ "type": "text",
1805
+ "notNull": false,
1806
+ "autoincrement": false,
1807
+ "default": null,
1808
+ "generated": null,
1809
+ "entityType": "columns"
1810
+ },
1811
+ {
1812
+ "table": "threads",
1813
+ "name": "agent_type",
1814
+ "type": "text",
1815
+ "notNull": false,
1816
+ "autoincrement": false,
1817
+ "default": null,
1818
+ "generated": null,
1819
+ "entityType": "columns"
1820
+ },
1821
+ {
1822
+ "table": "threads",
1823
+ "name": "created_at",
1824
+ "type": "text",
1825
+ "notNull": true,
1826
+ "autoincrement": false,
1827
+ "default": null,
1828
+ "generated": null,
1829
+ "entityType": "columns"
1830
+ },
1831
+ {
1832
+ "table": "turns",
1833
+ "name": "session_id",
1834
+ "type": "text",
1835
+ "notNull": true,
1836
+ "autoincrement": false,
1837
+ "default": null,
1838
+ "generated": null,
1839
+ "entityType": "columns"
1840
+ },
1841
+ {
1842
+ "table": "turns",
1843
+ "name": "id",
1844
+ "type": "text",
1845
+ "notNull": true,
1846
+ "autoincrement": false,
1847
+ "default": null,
1848
+ "generated": null,
1849
+ "entityType": "columns"
1850
+ },
1851
+ {
1852
+ "table": "turns",
1853
+ "name": "thread_id",
1854
+ "type": "text",
1855
+ "notNull": true,
1856
+ "autoincrement": false,
1857
+ "default": null,
1858
+ "generated": null,
1859
+ "entityType": "columns"
1860
+ },
1861
+ {
1862
+ "table": "turns",
1863
+ "name": "status",
1864
+ "type": "text",
1865
+ "notNull": true,
1866
+ "autoincrement": false,
1867
+ "default": null,
1868
+ "generated": null,
1869
+ "entityType": "columns"
1870
+ },
1871
+ {
1872
+ "table": "turns",
1873
+ "name": "started_at",
1874
+ "type": "text",
1875
+ "notNull": true,
1876
+ "autoincrement": false,
1877
+ "default": null,
1878
+ "generated": null,
1879
+ "entityType": "columns"
1880
+ },
1881
+ {
1882
+ "table": "turns",
1883
+ "name": "completed_at",
1884
+ "type": "text",
1885
+ "notNull": false,
1886
+ "autoincrement": false,
1887
+ "default": null,
1888
+ "generated": null,
1889
+ "entityType": "columns"
1890
+ },
1891
+ {
1892
+ "table": "turns",
1893
+ "name": "error",
1894
+ "type": "text",
1895
+ "notNull": false,
1896
+ "autoincrement": false,
1897
+ "default": null,
1898
+ "generated": null,
1899
+ "entityType": "columns"
1900
+ },
1901
+ {
1902
+ "table": "turns",
1903
+ "name": "usage",
1904
+ "type": "text",
1905
+ "notNull": false,
1906
+ "autoincrement": false,
1907
+ "default": null,
1908
+ "generated": null,
1909
+ "entityType": "columns"
1910
+ },
1911
+ {
1912
+ "table": "turns",
1913
+ "name": "fork_point",
1914
+ "type": "text",
1915
+ "notNull": false,
1916
+ "autoincrement": false,
1917
+ "default": null,
1918
+ "generated": null,
1919
+ "entityType": "columns"
1920
+ },
1921
+ {
1922
+ "table": "factory_digests",
1923
+ "name": "id",
1924
+ "type": "text",
1925
+ "notNull": false,
1926
+ "autoincrement": false,
1927
+ "default": null,
1928
+ "generated": null,
1929
+ "entityType": "columns"
1930
+ },
1931
+ {
1932
+ "table": "factory_digests",
1933
+ "name": "project_id",
1934
+ "type": "text",
1935
+ "notNull": true,
1936
+ "autoincrement": false,
1937
+ "default": null,
1938
+ "generated": null,
1939
+ "entityType": "columns"
1940
+ },
1941
+ {
1942
+ "table": "factory_digests",
1943
+ "name": "day",
1944
+ "type": "text",
1945
+ "notNull": true,
1946
+ "autoincrement": false,
1947
+ "default": null,
1948
+ "generated": null,
1949
+ "entityType": "columns"
1950
+ },
1951
+ {
1952
+ "table": "factory_digests",
1953
+ "name": "digest",
1954
+ "type": "text",
1955
+ "notNull": true,
1956
+ "autoincrement": false,
1957
+ "default": null,
1958
+ "generated": null,
1959
+ "entityType": "columns"
1960
+ },
1961
+ {
1962
+ "table": "factory_digests",
1963
+ "name": "created_at",
1964
+ "type": "text",
1965
+ "notNull": true,
1966
+ "autoincrement": false,
1967
+ "default": null,
1968
+ "generated": null,
1969
+ "entityType": "columns"
1970
+ },
1971
+ {
1972
+ "table": "factory_items",
1973
+ "name": "id",
1974
+ "type": "text",
1975
+ "notNull": false,
1976
+ "autoincrement": false,
1977
+ "default": null,
1978
+ "generated": null,
1979
+ "entityType": "columns"
1980
+ },
1981
+ {
1982
+ "table": "factory_items",
1983
+ "name": "project_id",
1984
+ "type": "text",
1985
+ "notNull": true,
1986
+ "autoincrement": false,
1987
+ "default": null,
1988
+ "generated": null,
1989
+ "entityType": "columns"
1990
+ },
1991
+ {
1992
+ "table": "factory_items",
1993
+ "name": "stage",
1994
+ "type": "text",
1995
+ "notNull": true,
1996
+ "autoincrement": false,
1997
+ "default": null,
1998
+ "generated": null,
1999
+ "entityType": "columns"
2000
+ },
2001
+ {
2002
+ "table": "factory_items",
2003
+ "name": "work_key",
2004
+ "type": "text",
2005
+ "notNull": true,
2006
+ "autoincrement": false,
2007
+ "default": null,
2008
+ "generated": null,
2009
+ "entityType": "columns"
2010
+ },
2011
+ {
2012
+ "table": "factory_items",
2013
+ "name": "item",
2014
+ "type": "text",
2015
+ "notNull": true,
2016
+ "autoincrement": false,
2017
+ "default": null,
2018
+ "generated": null,
2019
+ "entityType": "columns"
2020
+ },
2021
+ {
2022
+ "table": "factory_items",
2023
+ "name": "created_at",
2024
+ "type": "text",
2025
+ "notNull": true,
2026
+ "autoincrement": false,
2027
+ "default": null,
2028
+ "generated": null,
2029
+ "entityType": "columns"
2030
+ },
2031
+ {
2032
+ "table": "factory_items",
2033
+ "name": "updated_at",
2034
+ "type": "text",
2035
+ "notNull": true,
2036
+ "autoincrement": false,
2037
+ "default": null,
2038
+ "generated": null,
2039
+ "entityType": "columns"
2040
+ },
2041
+ {
2042
+ "table": "factory_loops",
2043
+ "name": "project_id",
2044
+ "type": "text",
2045
+ "notNull": false,
2046
+ "autoincrement": false,
2047
+ "default": null,
2048
+ "generated": null,
2049
+ "entityType": "columns"
2050
+ },
2051
+ {
2052
+ "table": "factory_loops",
2053
+ "name": "state",
2054
+ "type": "text",
2055
+ "notNull": true,
2056
+ "autoincrement": false,
2057
+ "default": null,
2058
+ "generated": null,
2059
+ "entityType": "columns"
2060
+ },
2061
+ {
2062
+ "table": "factory_loops",
2063
+ "name": "loop",
2064
+ "type": "text",
2065
+ "notNull": true,
2066
+ "autoincrement": false,
2067
+ "default": null,
2068
+ "generated": null,
2069
+ "entityType": "columns"
2070
+ },
2071
+ {
2072
+ "table": "factory_loops",
2073
+ "name": "updated_at",
2074
+ "type": "text",
2075
+ "notNull": true,
2076
+ "autoincrement": false,
2077
+ "default": null,
2078
+ "generated": null,
2079
+ "entityType": "columns"
2080
+ },
2081
+ {
2082
+ "table": "github_issues",
2083
+ "name": "project_id",
2084
+ "type": "text",
2085
+ "notNull": true,
2086
+ "autoincrement": false,
2087
+ "default": null,
2088
+ "generated": null,
2089
+ "entityType": "columns"
2090
+ },
2091
+ {
2092
+ "table": "github_issues",
2093
+ "name": "number",
2094
+ "type": "integer",
2095
+ "notNull": true,
2096
+ "autoincrement": false,
2097
+ "default": null,
2098
+ "generated": null,
2099
+ "entityType": "columns"
2100
+ },
2101
+ {
2102
+ "table": "github_issues",
2103
+ "name": "title",
2104
+ "type": "text",
2105
+ "notNull": true,
2106
+ "autoincrement": false,
2107
+ "default": null,
2108
+ "generated": null,
2109
+ "entityType": "columns"
2110
+ },
2111
+ {
2112
+ "table": "github_issues",
2113
+ "name": "state",
2114
+ "type": "text",
2115
+ "notNull": true,
2116
+ "autoincrement": false,
2117
+ "default": null,
2118
+ "generated": null,
2119
+ "entityType": "columns"
2120
+ },
2121
+ {
2122
+ "table": "github_issues",
2123
+ "name": "url",
2124
+ "type": "text",
2125
+ "notNull": true,
2126
+ "autoincrement": false,
2127
+ "default": null,
2128
+ "generated": null,
2129
+ "entityType": "columns"
2130
+ },
2131
+ {
2132
+ "table": "github_issues",
2133
+ "name": "labels",
2134
+ "type": "text",
2135
+ "notNull": true,
2136
+ "autoincrement": false,
2137
+ "default": null,
2138
+ "generated": null,
2139
+ "entityType": "columns"
2140
+ },
2141
+ {
2142
+ "table": "github_issues",
2143
+ "name": "author",
2144
+ "type": "text",
2145
+ "notNull": false,
2146
+ "autoincrement": false,
2147
+ "default": null,
2148
+ "generated": null,
2149
+ "entityType": "columns"
2150
+ },
2151
+ {
2152
+ "table": "github_issues",
2153
+ "name": "etag",
2154
+ "type": "text",
2155
+ "notNull": false,
2156
+ "autoincrement": false,
2157
+ "default": null,
2158
+ "generated": null,
2159
+ "entityType": "columns"
2160
+ },
2161
+ {
2162
+ "table": "github_issues",
2163
+ "name": "body",
2164
+ "type": "text",
2165
+ "notNull": false,
2166
+ "autoincrement": false,
2167
+ "default": null,
2168
+ "generated": null,
2169
+ "entityType": "columns"
2170
+ },
2171
+ {
2172
+ "table": "github_issues",
2173
+ "name": "comments",
2174
+ "type": "integer",
2175
+ "notNull": true,
2176
+ "autoincrement": false,
2177
+ "default": "0",
2178
+ "generated": null,
2179
+ "entityType": "columns"
2180
+ },
2181
+ {
2182
+ "table": "github_issues",
2183
+ "name": "created_at",
2184
+ "type": "text",
2185
+ "notNull": false,
2186
+ "autoincrement": false,
2187
+ "default": null,
2188
+ "generated": null,
2189
+ "entityType": "columns"
2190
+ },
2191
+ {
2192
+ "table": "github_issues",
2193
+ "name": "updated_at",
2194
+ "type": "text",
2195
+ "notNull": true,
2196
+ "autoincrement": false,
2197
+ "default": null,
2198
+ "generated": null,
2199
+ "entityType": "columns"
2200
+ },
2201
+ {
2202
+ "table": "github_issues",
2203
+ "name": "closed_at",
2204
+ "type": "text",
2205
+ "notNull": false,
2206
+ "autoincrement": false,
2207
+ "default": null,
2208
+ "generated": null,
2209
+ "entityType": "columns"
2210
+ },
2211
+ {
2212
+ "table": "github_issues",
2213
+ "name": "synced_at",
2214
+ "type": "text",
2215
+ "notNull": true,
2216
+ "autoincrement": false,
2217
+ "default": null,
2218
+ "generated": null,
2219
+ "entityType": "columns"
2220
+ },
2221
+ {
2222
+ "table": "github_prs",
2223
+ "name": "project_id",
2224
+ "type": "text",
2225
+ "notNull": true,
2226
+ "autoincrement": false,
2227
+ "default": null,
2228
+ "generated": null,
2229
+ "entityType": "columns"
2230
+ },
2231
+ {
2232
+ "table": "github_prs",
2233
+ "name": "number",
2234
+ "type": "integer",
2235
+ "notNull": true,
2236
+ "autoincrement": false,
2237
+ "default": null,
2238
+ "generated": null,
2239
+ "entityType": "columns"
2240
+ },
2241
+ {
2242
+ "table": "github_prs",
2243
+ "name": "title",
2244
+ "type": "text",
2245
+ "notNull": true,
2246
+ "autoincrement": false,
2247
+ "default": null,
2248
+ "generated": null,
2249
+ "entityType": "columns"
2250
+ },
2251
+ {
2252
+ "table": "github_prs",
2253
+ "name": "state",
2254
+ "type": "text",
2255
+ "notNull": true,
2256
+ "autoincrement": false,
2257
+ "default": null,
2258
+ "generated": null,
2259
+ "entityType": "columns"
2260
+ },
2261
+ {
2262
+ "table": "github_prs",
2263
+ "name": "url",
2264
+ "type": "text",
2265
+ "notNull": true,
2266
+ "autoincrement": false,
2267
+ "default": null,
2268
+ "generated": null,
2269
+ "entityType": "columns"
2270
+ },
2271
+ {
2272
+ "table": "github_prs",
2273
+ "name": "head_branch",
2274
+ "type": "text",
2275
+ "notNull": true,
2276
+ "autoincrement": false,
2277
+ "default": null,
2278
+ "generated": null,
2279
+ "entityType": "columns"
2280
+ },
2281
+ {
2282
+ "table": "github_prs",
2283
+ "name": "base_branch",
2284
+ "type": "text",
2285
+ "notNull": true,
2286
+ "autoincrement": false,
2287
+ "default": null,
2288
+ "generated": null,
2289
+ "entityType": "columns"
2290
+ },
2291
+ {
2292
+ "table": "github_prs",
2293
+ "name": "checks",
2294
+ "type": "text",
2295
+ "notNull": false,
2296
+ "autoincrement": false,
2297
+ "default": null,
2298
+ "generated": null,
2299
+ "entityType": "columns"
2300
+ },
2301
+ {
2302
+ "table": "github_prs",
2303
+ "name": "session_id",
2304
+ "type": "text",
2305
+ "notNull": false,
2306
+ "autoincrement": false,
2307
+ "default": null,
2308
+ "generated": null,
2309
+ "entityType": "columns"
2310
+ },
2311
+ {
2312
+ "table": "github_prs",
2313
+ "name": "etag",
2314
+ "type": "text",
2315
+ "notNull": false,
2316
+ "autoincrement": false,
2317
+ "default": null,
2318
+ "generated": null,
2319
+ "entityType": "columns"
2320
+ },
2321
+ {
2322
+ "table": "github_prs",
2323
+ "name": "author",
2324
+ "type": "text",
2325
+ "notNull": false,
2326
+ "autoincrement": false,
2327
+ "default": null,
2328
+ "generated": null,
2329
+ "entityType": "columns"
2330
+ },
2331
+ {
2332
+ "table": "github_prs",
2333
+ "name": "head_sha",
2334
+ "type": "text",
2335
+ "notNull": false,
2336
+ "autoincrement": false,
2337
+ "default": null,
2338
+ "generated": null,
2339
+ "entityType": "columns"
2340
+ },
2341
+ {
2342
+ "table": "github_prs",
2343
+ "name": "review_decision",
2344
+ "type": "text",
2345
+ "notNull": true,
2346
+ "autoincrement": false,
2347
+ "default": "'none'",
2348
+ "generated": null,
2349
+ "entityType": "columns"
2350
+ },
2351
+ {
2352
+ "table": "github_prs",
2353
+ "name": "reviews",
2354
+ "type": "text",
2355
+ "notNull": true,
2356
+ "autoincrement": false,
2357
+ "default": "'[]'",
2358
+ "generated": null,
2359
+ "entityType": "columns"
2360
+ },
2361
+ {
2362
+ "table": "github_prs",
2363
+ "name": "mergeable",
2364
+ "type": "text",
2365
+ "notNull": true,
2366
+ "autoincrement": false,
2367
+ "default": "'unknown'",
2368
+ "generated": null,
2369
+ "entityType": "columns"
2370
+ },
2371
+ {
2372
+ "table": "github_prs",
2373
+ "name": "linked_issues",
2374
+ "type": "text",
2375
+ "notNull": true,
2376
+ "autoincrement": false,
2377
+ "default": "'[]'",
2378
+ "generated": null,
2379
+ "entityType": "columns"
2380
+ },
2381
+ {
2382
+ "table": "github_prs",
2383
+ "name": "requested_reviewers",
2384
+ "type": "text",
2385
+ "notNull": false,
2386
+ "autoincrement": false,
2387
+ "default": null,
2388
+ "generated": null,
2389
+ "entityType": "columns"
2390
+ },
2391
+ {
2392
+ "table": "github_prs",
2393
+ "name": "commits",
2394
+ "type": "text",
2395
+ "notNull": true,
2396
+ "autoincrement": false,
2397
+ "default": "'[]'",
2398
+ "generated": null,
2399
+ "entityType": "columns"
2400
+ },
2401
+ {
2402
+ "table": "github_prs",
2403
+ "name": "created_at",
2404
+ "type": "text",
2405
+ "notNull": false,
2406
+ "autoincrement": false,
2407
+ "default": null,
2408
+ "generated": null,
2409
+ "entityType": "columns"
2410
+ },
2411
+ {
2412
+ "table": "github_prs",
2413
+ "name": "updated_at",
2414
+ "type": "text",
2415
+ "notNull": true,
2416
+ "autoincrement": false,
2417
+ "default": null,
2418
+ "generated": null,
2419
+ "entityType": "columns"
2420
+ },
2421
+ {
2422
+ "table": "github_prs",
2423
+ "name": "merged_at",
2424
+ "type": "text",
2425
+ "notNull": false,
2426
+ "autoincrement": false,
2427
+ "default": null,
2428
+ "generated": null,
2429
+ "entityType": "columns"
2430
+ },
2431
+ {
2432
+ "table": "github_prs",
2433
+ "name": "closed_at",
2434
+ "type": "text",
2435
+ "notNull": false,
2436
+ "autoincrement": false,
2437
+ "default": null,
2438
+ "generated": null,
2439
+ "entityType": "columns"
2440
+ },
2441
+ {
2442
+ "table": "github_prs",
2443
+ "name": "synced_at",
2444
+ "type": "text",
2445
+ "notNull": true,
2446
+ "autoincrement": false,
2447
+ "default": null,
2448
+ "generated": null,
2449
+ "entityType": "columns"
2450
+ },
2451
+ {
2452
+ "table": "github_sync_state",
2453
+ "name": "project_id",
2454
+ "type": "text",
2455
+ "notNull": false,
2456
+ "autoincrement": false,
2457
+ "default": null,
2458
+ "generated": null,
2459
+ "entityType": "columns"
2460
+ },
2461
+ {
2462
+ "table": "github_sync_state",
2463
+ "name": "etags",
2464
+ "type": "text",
2465
+ "notNull": true,
2466
+ "autoincrement": false,
2467
+ "default": "'{}'",
2468
+ "generated": null,
2469
+ "entityType": "columns"
2470
+ },
2471
+ {
2472
+ "table": "github_sync_state",
2473
+ "name": "since",
2474
+ "type": "text",
2475
+ "notNull": false,
2476
+ "autoincrement": false,
2477
+ "default": null,
2478
+ "generated": null,
2479
+ "entityType": "columns"
2480
+ },
2481
+ {
2482
+ "table": "github_sync_state",
2483
+ "name": "baseline_at",
2484
+ "type": "text",
2485
+ "notNull": false,
2486
+ "autoincrement": false,
2487
+ "default": null,
2488
+ "generated": null,
2489
+ "entityType": "columns"
2490
+ },
2491
+ {
2492
+ "table": "github_sync_state",
2493
+ "name": "last_sync_at",
2494
+ "type": "text",
2495
+ "notNull": false,
2496
+ "autoincrement": false,
2497
+ "default": null,
2498
+ "generated": null,
2499
+ "entityType": "columns"
2500
+ },
2501
+ {
2502
+ "table": "github_sync_state",
2503
+ "name": "last_error",
2504
+ "type": "text",
2505
+ "notNull": false,
2506
+ "autoincrement": false,
2507
+ "default": null,
2508
+ "generated": null,
2509
+ "entityType": "columns"
2510
+ },
2511
+ {
2512
+ "table": "github_sync_state",
2513
+ "name": "updated_at",
2514
+ "type": "text",
2515
+ "notNull": true,
2516
+ "autoincrement": false,
2517
+ "default": null,
2518
+ "generated": null,
2519
+ "entityType": "columns"
2520
+ },
2521
+ {
2522
+ "table": "conflicts",
2523
+ "name": "id",
2524
+ "type": "text",
2525
+ "notNull": false,
2526
+ "autoincrement": false,
2527
+ "default": null,
2528
+ "generated": null,
2529
+ "entityType": "columns"
2530
+ },
2531
+ {
2532
+ "table": "conflicts",
2533
+ "name": "project_id",
2534
+ "type": "text",
2535
+ "notNull": false,
2536
+ "autoincrement": false,
2537
+ "default": null,
2538
+ "generated": null,
2539
+ "entityType": "columns"
2540
+ },
2541
+ {
2542
+ "table": "conflicts",
2543
+ "name": "record",
2544
+ "type": "text",
2545
+ "notNull": true,
2546
+ "autoincrement": false,
2547
+ "default": null,
2548
+ "generated": null,
2549
+ "entityType": "columns"
2550
+ },
2551
+ {
2552
+ "table": "conflicts",
2553
+ "name": "created_at",
2554
+ "type": "text",
2555
+ "notNull": true,
2556
+ "autoincrement": false,
2557
+ "default": null,
2558
+ "generated": null,
2559
+ "entityType": "columns"
2560
+ },
2561
+ {
2562
+ "table": "notices",
2563
+ "name": "id",
2564
+ "type": "text",
2565
+ "notNull": false,
2566
+ "autoincrement": false,
2567
+ "default": null,
2568
+ "generated": null,
2569
+ "entityType": "columns"
2570
+ },
2571
+ {
2572
+ "table": "notices",
2573
+ "name": "type",
2574
+ "type": "text",
2575
+ "notNull": true,
2576
+ "autoincrement": false,
2577
+ "default": null,
2578
+ "generated": null,
2579
+ "entityType": "columns"
2580
+ },
2581
+ {
2582
+ "table": "notices",
2583
+ "name": "target",
2584
+ "type": "text",
2585
+ "notNull": true,
2586
+ "autoincrement": false,
2587
+ "default": null,
2588
+ "generated": null,
2589
+ "entityType": "columns"
2590
+ },
2591
+ {
2592
+ "table": "notices",
2593
+ "name": "project_id",
2594
+ "type": "text",
2595
+ "notNull": false,
2596
+ "autoincrement": false,
2597
+ "default": null,
2598
+ "generated": null,
2599
+ "entityType": "columns"
2600
+ },
2601
+ {
2602
+ "table": "notices",
2603
+ "name": "session_id",
2604
+ "type": "text",
2605
+ "notNull": false,
2606
+ "autoincrement": false,
2607
+ "default": null,
2608
+ "generated": null,
2609
+ "entityType": "columns"
2610
+ },
2611
+ {
2612
+ "table": "notices",
2613
+ "name": "notice",
2614
+ "type": "text",
2615
+ "notNull": true,
2616
+ "autoincrement": false,
2617
+ "default": null,
2618
+ "generated": null,
2619
+ "entityType": "columns"
2620
+ },
2621
+ {
2622
+ "table": "notices",
2623
+ "name": "created_at",
2624
+ "type": "text",
2625
+ "notNull": true,
2626
+ "autoincrement": false,
2627
+ "default": null,
2628
+ "generated": null,
2629
+ "entityType": "columns"
2630
+ },
2631
+ {
2632
+ "table": "notices",
2633
+ "name": "delivered_at",
2634
+ "type": "text",
2635
+ "notNull": false,
2636
+ "autoincrement": false,
2637
+ "default": null,
2638
+ "generated": null,
2639
+ "entityType": "columns"
2640
+ },
2641
+ {
2642
+ "table": "notices",
2643
+ "name": "not_before",
2644
+ "type": "text",
2645
+ "notNull": false,
2646
+ "autoincrement": false,
2647
+ "default": null,
2648
+ "generated": null,
2649
+ "entityType": "columns"
2650
+ },
2651
+ {
2652
+ "table": "runners",
2653
+ "name": "id",
2654
+ "type": "text",
2655
+ "notNull": false,
2656
+ "autoincrement": false,
2657
+ "default": null,
2658
+ "generated": null,
2659
+ "entityType": "columns"
2660
+ },
2661
+ {
2662
+ "table": "runners",
2663
+ "name": "backend",
2664
+ "type": "text",
2665
+ "notNull": true,
2666
+ "autoincrement": false,
2667
+ "default": null,
2668
+ "generated": null,
2669
+ "entityType": "columns"
2670
+ },
2671
+ {
2672
+ "table": "runners",
2673
+ "name": "is_home",
2674
+ "type": "integer",
2675
+ "notNull": true,
2676
+ "autoincrement": false,
2677
+ "default": "false",
2678
+ "generated": null,
2679
+ "entityType": "columns"
2680
+ },
2681
+ {
2682
+ "table": "runners",
2683
+ "name": "runner_id",
2684
+ "type": "text",
2685
+ "notNull": false,
2686
+ "autoincrement": false,
2687
+ "default": null,
2688
+ "generated": null,
2689
+ "entityType": "columns"
2690
+ },
2691
+ {
2692
+ "table": "runners",
2693
+ "name": "sandbox_ref",
2694
+ "type": "text",
2695
+ "notNull": false,
2696
+ "autoincrement": false,
2697
+ "default": null,
2698
+ "generated": null,
2699
+ "entityType": "columns"
2700
+ },
2701
+ {
2702
+ "table": "runners",
2703
+ "name": "project_id",
2704
+ "type": "text",
2705
+ "notNull": false,
2706
+ "autoincrement": false,
2707
+ "default": null,
2708
+ "generated": null,
2709
+ "entityType": "columns"
2710
+ },
2711
+ {
2712
+ "table": "runners",
2713
+ "name": "session_id",
2714
+ "type": "text",
2715
+ "notNull": false,
2716
+ "autoincrement": false,
2717
+ "default": null,
2718
+ "generated": null,
2719
+ "entityType": "columns"
2720
+ },
2721
+ {
2722
+ "table": "runners",
2723
+ "name": "state",
2724
+ "type": "text",
2725
+ "notNull": true,
2726
+ "autoincrement": false,
2727
+ "default": null,
2728
+ "generated": null,
2729
+ "entityType": "columns"
2730
+ },
2731
+ {
2732
+ "table": "runners",
2733
+ "name": "version",
2734
+ "type": "text",
2735
+ "notNull": false,
2736
+ "autoincrement": false,
2737
+ "default": null,
2738
+ "generated": null,
2739
+ "entityType": "columns"
2740
+ },
2741
+ {
2742
+ "table": "runners",
2743
+ "name": "image_version",
2744
+ "type": "text",
2745
+ "notNull": false,
2746
+ "autoincrement": false,
2747
+ "default": null,
2748
+ "generated": null,
2749
+ "entityType": "columns"
2750
+ },
2751
+ {
2752
+ "table": "runners",
2753
+ "name": "created_at",
2754
+ "type": "text",
2755
+ "notNull": true,
2756
+ "autoincrement": false,
2757
+ "default": null,
2758
+ "generated": null,
2759
+ "entityType": "columns"
2760
+ },
2761
+ {
2762
+ "table": "runners",
2763
+ "name": "last_seen_at",
2764
+ "type": "text",
2765
+ "notNull": false,
2766
+ "autoincrement": false,
2767
+ "default": null,
2768
+ "generated": null,
2769
+ "entityType": "columns"
2770
+ },
2771
+ {
2772
+ "table": "runners",
2773
+ "name": "last_error",
2774
+ "type": "text",
2775
+ "notNull": false,
2776
+ "autoincrement": false,
2777
+ "default": null,
2778
+ "generated": null,
2779
+ "entityType": "columns"
2780
+ },
2781
+ {
2782
+ "table": "item_search",
2783
+ "name": "id",
2784
+ "type": "integer",
2785
+ "notNull": false,
2786
+ "autoincrement": true,
2787
+ "default": null,
2788
+ "generated": null,
2789
+ "entityType": "columns"
2790
+ },
2791
+ {
2792
+ "table": "item_search",
2793
+ "name": "session_id",
2794
+ "type": "text",
2795
+ "notNull": true,
2796
+ "autoincrement": false,
2797
+ "default": null,
2798
+ "generated": null,
2799
+ "entityType": "columns"
2800
+ },
2801
+ {
2802
+ "table": "item_search",
2803
+ "name": "item_id",
2804
+ "type": "text",
2805
+ "notNull": true,
2806
+ "autoincrement": false,
2807
+ "default": null,
2808
+ "generated": null,
2809
+ "entityType": "columns"
2810
+ },
2811
+ {
2812
+ "table": "item_search",
2813
+ "name": "thread_id",
2814
+ "type": "text",
2815
+ "notNull": true,
2816
+ "autoincrement": false,
2817
+ "default": null,
2818
+ "generated": null,
2819
+ "entityType": "columns"
2820
+ },
2821
+ {
2822
+ "table": "item_search",
2823
+ "name": "kind",
2824
+ "type": "text",
2825
+ "notNull": true,
2826
+ "autoincrement": false,
2827
+ "default": null,
2828
+ "generated": null,
2829
+ "entityType": "columns"
2830
+ },
2831
+ {
2832
+ "table": "item_search",
2833
+ "name": "tool_kind",
2834
+ "type": "text",
2835
+ "notNull": false,
2836
+ "autoincrement": false,
2837
+ "default": null,
2838
+ "generated": null,
2839
+ "entityType": "columns"
2840
+ },
2841
+ {
2842
+ "table": "item_search",
2843
+ "name": "text",
2844
+ "type": "text",
2845
+ "notNull": true,
2846
+ "autoincrement": false,
2847
+ "default": null,
2848
+ "generated": null,
2849
+ "entityType": "columns"
2850
+ },
2851
+ {
2852
+ "table": "item_search",
2853
+ "name": "created_at",
2854
+ "type": "text",
2855
+ "notNull": true,
2856
+ "autoincrement": false,
2857
+ "default": null,
2858
+ "generated": null,
2859
+ "entityType": "columns"
2860
+ },
2861
+ {
2862
+ "table": "rate_limit_windows",
2863
+ "name": "provider",
2864
+ "type": "text",
2865
+ "notNull": true,
2866
+ "autoincrement": false,
2867
+ "default": null,
2868
+ "generated": null,
2869
+ "entityType": "columns"
2870
+ },
2871
+ {
2872
+ "table": "rate_limit_windows",
2873
+ "name": "window_id",
2874
+ "type": "text",
2875
+ "notNull": true,
2876
+ "autoincrement": false,
2877
+ "default": null,
2878
+ "generated": null,
2879
+ "entityType": "columns"
2880
+ },
2881
+ {
2882
+ "table": "rate_limit_windows",
2883
+ "name": "status",
2884
+ "type": "text",
2885
+ "notNull": true,
2886
+ "autoincrement": false,
2887
+ "default": null,
2888
+ "generated": null,
2889
+ "entityType": "columns"
2890
+ },
2891
+ {
2892
+ "table": "rate_limit_windows",
2893
+ "name": "used_percent",
2894
+ "type": "real",
2895
+ "notNull": false,
2896
+ "autoincrement": false,
2897
+ "default": null,
2898
+ "generated": null,
2899
+ "entityType": "columns"
2900
+ },
2901
+ {
2902
+ "table": "rate_limit_windows",
2903
+ "name": "resets_at",
2904
+ "type": "text",
2905
+ "notNull": false,
2906
+ "autoincrement": false,
2907
+ "default": null,
2908
+ "generated": null,
2909
+ "entityType": "columns"
2910
+ },
2911
+ {
2912
+ "table": "rate_limit_windows",
2913
+ "name": "observed_at",
2914
+ "type": "text",
2915
+ "notNull": true,
2916
+ "autoincrement": false,
2917
+ "default": null,
2918
+ "generated": null,
2919
+ "entityType": "columns"
2920
+ },
2921
+ {
2922
+ "table": "rate_limit_windows",
2923
+ "name": "session_id",
2924
+ "type": "text",
2925
+ "notNull": false,
2926
+ "autoincrement": false,
2927
+ "default": null,
2928
+ "generated": null,
2929
+ "entityType": "columns"
2930
+ },
2931
+ {
2932
+ "table": "usage_ledger",
2933
+ "name": "session_id",
2934
+ "type": "text",
2935
+ "notNull": true,
2936
+ "autoincrement": false,
2937
+ "default": null,
2938
+ "generated": null,
2939
+ "entityType": "columns"
2940
+ },
2941
+ {
2942
+ "table": "usage_ledger",
2943
+ "name": "turn_id",
2944
+ "type": "text",
2945
+ "notNull": true,
2946
+ "autoincrement": false,
2947
+ "default": null,
2948
+ "generated": null,
2949
+ "entityType": "columns"
2950
+ },
2951
+ {
2952
+ "table": "usage_ledger",
2953
+ "name": "thread_id",
2954
+ "type": "text",
2955
+ "notNull": true,
2956
+ "autoincrement": false,
2957
+ "default": null,
2958
+ "generated": null,
2959
+ "entityType": "columns"
2960
+ },
2961
+ {
2962
+ "table": "usage_ledger",
2963
+ "name": "project_id",
2964
+ "type": "text",
2965
+ "notNull": false,
2966
+ "autoincrement": false,
2967
+ "default": null,
2968
+ "generated": null,
2969
+ "entityType": "columns"
2970
+ },
2971
+ {
2972
+ "table": "usage_ledger",
2973
+ "name": "provider",
2974
+ "type": "text",
2975
+ "notNull": true,
2976
+ "autoincrement": false,
2977
+ "default": null,
2978
+ "generated": null,
2979
+ "entityType": "columns"
2980
+ },
2981
+ {
2982
+ "table": "usage_ledger",
2983
+ "name": "model",
2984
+ "type": "text",
2985
+ "notNull": true,
2986
+ "autoincrement": false,
2987
+ "default": null,
2988
+ "generated": null,
2989
+ "entityType": "columns"
2990
+ },
2991
+ {
2992
+ "table": "usage_ledger",
2993
+ "name": "role",
2994
+ "type": "text",
2995
+ "notNull": true,
2996
+ "autoincrement": false,
2997
+ "default": null,
2998
+ "generated": null,
2999
+ "entityType": "columns"
3000
+ },
3001
+ {
3002
+ "table": "usage_ledger",
3003
+ "name": "source",
3004
+ "type": "text",
3005
+ "notNull": true,
3006
+ "autoincrement": false,
3007
+ "default": null,
3008
+ "generated": null,
3009
+ "entityType": "columns"
3010
+ },
3011
+ {
3012
+ "table": "usage_ledger",
3013
+ "name": "automation_id",
3014
+ "type": "text",
3015
+ "notNull": false,
3016
+ "autoincrement": false,
3017
+ "default": null,
3018
+ "generated": null,
3019
+ "entityType": "columns"
3020
+ },
3021
+ {
3022
+ "table": "usage_ledger",
3023
+ "name": "input_tokens",
3024
+ "type": "integer",
3025
+ "notNull": true,
3026
+ "autoincrement": false,
3027
+ "default": "0",
3028
+ "generated": null,
3029
+ "entityType": "columns"
3030
+ },
3031
+ {
3032
+ "table": "usage_ledger",
3033
+ "name": "output_tokens",
3034
+ "type": "integer",
3035
+ "notNull": true,
3036
+ "autoincrement": false,
3037
+ "default": "0",
3038
+ "generated": null,
3039
+ "entityType": "columns"
3040
+ },
3041
+ {
3042
+ "table": "usage_ledger",
3043
+ "name": "cache_read_tokens",
3044
+ "type": "integer",
3045
+ "notNull": true,
3046
+ "autoincrement": false,
3047
+ "default": "0",
3048
+ "generated": null,
3049
+ "entityType": "columns"
3050
+ },
3051
+ {
3052
+ "table": "usage_ledger",
3053
+ "name": "cache_write_tokens",
3054
+ "type": "integer",
3055
+ "notNull": true,
3056
+ "autoincrement": false,
3057
+ "default": "0",
3058
+ "generated": null,
3059
+ "entityType": "columns"
3060
+ },
3061
+ {
3062
+ "table": "usage_ledger",
3063
+ "name": "reasoning_tokens",
3064
+ "type": "integer",
3065
+ "notNull": true,
3066
+ "autoincrement": false,
3067
+ "default": "0",
3068
+ "generated": null,
3069
+ "entityType": "columns"
3070
+ },
3071
+ {
3072
+ "table": "usage_ledger",
3073
+ "name": "reported_cost_usd",
3074
+ "type": "real",
3075
+ "notNull": false,
3076
+ "autoincrement": false,
3077
+ "default": null,
3078
+ "generated": null,
3079
+ "entityType": "columns"
3080
+ },
3081
+ {
3082
+ "table": "usage_ledger",
3083
+ "name": "ts",
3084
+ "type": "text",
3085
+ "notNull": true,
3086
+ "autoincrement": false,
3087
+ "default": null,
3088
+ "generated": null,
3089
+ "entityType": "columns"
3090
+ },
3091
+ {
3092
+ "table": "usage_ledger",
3093
+ "name": "updated_at",
3094
+ "type": "text",
3095
+ "notNull": true,
3096
+ "autoincrement": false,
3097
+ "default": null,
3098
+ "generated": null,
3099
+ "entityType": "columns"
3100
+ },
3101
+ {
3102
+ "table": "automation_runs",
3103
+ "name": "automation_runs_automation",
3104
+ "columns": [
3105
+ {
3106
+ "value": "automation_id",
3107
+ "isExpression": false
3108
+ },
3109
+ {
3110
+ "value": "started_at",
3111
+ "isExpression": false
3112
+ }
3113
+ ],
3114
+ "isUnique": false,
3115
+ "where": null,
3116
+ "origin": "manual",
3117
+ "entityType": "indexes"
3118
+ },
3119
+ {
3120
+ "table": "automation_runs",
3121
+ "name": "automation_runs_work_key",
3122
+ "columns": [
3123
+ {
3124
+ "value": "project_id",
3125
+ "isExpression": false
3126
+ },
3127
+ {
3128
+ "value": "work_key",
3129
+ "isExpression": false
3130
+ }
3131
+ ],
3132
+ "isUnique": false,
3133
+ "where": null,
3134
+ "origin": "manual",
3135
+ "entityType": "indexes"
3136
+ },
3137
+ {
3138
+ "table": "checkpoints",
3139
+ "name": "checkpoints_turn",
3140
+ "columns": [
3141
+ {
3142
+ "value": "session_id",
3143
+ "isExpression": false
3144
+ },
3145
+ {
3146
+ "value": "turn_id",
3147
+ "isExpression": false
3148
+ }
3149
+ ],
3150
+ "isUnique": false,
3151
+ "where": null,
3152
+ "origin": "manual",
3153
+ "entityType": "indexes"
3154
+ },
3155
+ {
3156
+ "table": "events",
3157
+ "name": "events_session_seq",
3158
+ "columns": [
3159
+ {
3160
+ "value": "session_id",
3161
+ "isExpression": false
3162
+ },
3163
+ {
3164
+ "value": "seq",
3165
+ "isExpression": false
3166
+ }
3167
+ ],
3168
+ "isUnique": false,
3169
+ "where": null,
3170
+ "origin": "manual",
3171
+ "entityType": "indexes"
3172
+ },
3173
+ {
3174
+ "table": "events",
3175
+ "name": "events_type",
3176
+ "columns": [
3177
+ {
3178
+ "value": "type",
3179
+ "isExpression": false
3180
+ }
3181
+ ],
3182
+ "isUnique": false,
3183
+ "where": null,
3184
+ "origin": "manual",
3185
+ "entityType": "indexes"
3186
+ },
3187
+ {
3188
+ "table": "inbox_items",
3189
+ "name": "inbox_status",
3190
+ "columns": [
3191
+ {
3192
+ "value": "status",
3193
+ "isExpression": false
3194
+ }
3195
+ ],
3196
+ "isUnique": false,
3197
+ "where": null,
3198
+ "origin": "manual",
3199
+ "entityType": "indexes"
3200
+ },
3201
+ {
3202
+ "table": "items",
3203
+ "name": "items_thread",
3204
+ "columns": [
3205
+ {
3206
+ "value": "session_id",
3207
+ "isExpression": false
3208
+ },
3209
+ {
3210
+ "value": "thread_id",
3211
+ "isExpression": false
3212
+ },
3213
+ {
3214
+ "value": "position",
3215
+ "isExpression": false
3216
+ }
3217
+ ],
3218
+ "isUnique": false,
3219
+ "where": null,
3220
+ "origin": "manual",
3221
+ "entityType": "indexes"
3222
+ },
3223
+ {
3224
+ "table": "mcp_tokens",
3225
+ "name": "mcp_tokens_hash",
3226
+ "columns": [
3227
+ {
3228
+ "value": "token_hash",
3229
+ "isExpression": false
3230
+ }
3231
+ ],
3232
+ "isUnique": true,
3233
+ "where": null,
3234
+ "origin": "manual",
3235
+ "entityType": "indexes"
3236
+ },
3237
+ {
3238
+ "table": "mcp_tokens",
3239
+ "name": "mcp_tokens_session",
3240
+ "columns": [
3241
+ {
3242
+ "value": "session_id",
3243
+ "isExpression": false
3244
+ }
3245
+ ],
3246
+ "isUnique": false,
3247
+ "where": null,
3248
+ "origin": "manual",
3249
+ "entityType": "indexes"
3250
+ },
3251
+ {
3252
+ "table": "projects",
3253
+ "name": "projects_slug",
3254
+ "columns": [
3255
+ {
3256
+ "value": "slug",
3257
+ "isExpression": false
3258
+ }
3259
+ ],
3260
+ "isUnique": true,
3261
+ "where": null,
3262
+ "origin": "manual",
3263
+ "entityType": "indexes"
3264
+ },
3265
+ {
3266
+ "table": "queued_messages",
3267
+ "name": "queued_messages_session",
3268
+ "columns": [
3269
+ {
3270
+ "value": "session_id",
3271
+ "isExpression": false
3272
+ },
3273
+ {
3274
+ "value": "created_at",
3275
+ "isExpression": false
3276
+ }
3277
+ ],
3278
+ "isUnique": false,
3279
+ "where": null,
3280
+ "origin": "manual",
3281
+ "entityType": "indexes"
3282
+ },
3283
+ {
3284
+ "table": "sessions",
3285
+ "name": "sessions_project",
3286
+ "columns": [
3287
+ {
3288
+ "value": "project_id",
3289
+ "isExpression": false
3290
+ }
3291
+ ],
3292
+ "isUnique": false,
3293
+ "where": null,
3294
+ "origin": "manual",
3295
+ "entityType": "indexes"
3296
+ },
3297
+ {
3298
+ "table": "sessions",
3299
+ "name": "sessions_status",
3300
+ "columns": [
3301
+ {
3302
+ "value": "status",
3303
+ "isExpression": false
3304
+ }
3305
+ ],
3306
+ "isUnique": false,
3307
+ "where": null,
3308
+ "origin": "manual",
3309
+ "entityType": "indexes"
3310
+ },
3311
+ {
3312
+ "table": "sessions",
3313
+ "name": "sessions_work_key",
3314
+ "columns": [
3315
+ {
3316
+ "value": "project_id",
3317
+ "isExpression": false
3318
+ },
3319
+ {
3320
+ "value": "work_key",
3321
+ "isExpression": false
3322
+ }
3323
+ ],
3324
+ "isUnique": false,
3325
+ "where": null,
3326
+ "origin": "manual",
3327
+ "entityType": "indexes"
3328
+ },
3329
+ {
3330
+ "table": "factory_digests",
3331
+ "name": "factory_digests_project",
3332
+ "columns": [
3333
+ {
3334
+ "value": "project_id",
3335
+ "isExpression": false
3336
+ },
3337
+ {
3338
+ "value": "created_at",
3339
+ "isExpression": false
3340
+ }
3341
+ ],
3342
+ "isUnique": false,
3343
+ "where": null,
3344
+ "origin": "manual",
3345
+ "entityType": "indexes"
3346
+ },
3347
+ {
3348
+ "table": "factory_items",
3349
+ "name": "factory_items_project_stage",
3350
+ "columns": [
3351
+ {
3352
+ "value": "project_id",
3353
+ "isExpression": false
3354
+ },
3355
+ {
3356
+ "value": "stage",
3357
+ "isExpression": false
3358
+ }
3359
+ ],
3360
+ "isUnique": false,
3361
+ "where": null,
3362
+ "origin": "manual",
3363
+ "entityType": "indexes"
3364
+ },
3365
+ {
3366
+ "table": "factory_items",
3367
+ "name": "factory_items_updated",
3368
+ "columns": [
3369
+ {
3370
+ "value": "project_id",
3371
+ "isExpression": false
3372
+ },
3373
+ {
3374
+ "value": "updated_at",
3375
+ "isExpression": false
3376
+ }
3377
+ ],
3378
+ "isUnique": false,
3379
+ "where": null,
3380
+ "origin": "manual",
3381
+ "entityType": "indexes"
3382
+ },
3383
+ {
3384
+ "table": "github_prs",
3385
+ "name": "github_prs_session",
3386
+ "columns": [
3387
+ {
3388
+ "value": "session_id",
3389
+ "isExpression": false
3390
+ }
3391
+ ],
3392
+ "isUnique": false,
3393
+ "where": null,
3394
+ "origin": "manual",
3395
+ "entityType": "indexes"
3396
+ },
3397
+ {
3398
+ "table": "github_prs",
3399
+ "name": "github_prs_head",
3400
+ "columns": [
3401
+ {
3402
+ "value": "project_id",
3403
+ "isExpression": false
3404
+ },
3405
+ {
3406
+ "value": "head_branch",
3407
+ "isExpression": false
3408
+ }
3409
+ ],
3410
+ "isUnique": false,
3411
+ "where": null,
3412
+ "origin": "manual",
3413
+ "entityType": "indexes"
3414
+ },
3415
+ {
3416
+ "table": "conflicts",
3417
+ "name": "conflicts_project",
3418
+ "columns": [
3419
+ {
3420
+ "value": "project_id",
3421
+ "isExpression": false
3422
+ }
3423
+ ],
3424
+ "isUnique": false,
3425
+ "where": null,
3426
+ "origin": "manual",
3427
+ "entityType": "indexes"
3428
+ },
3429
+ {
3430
+ "table": "notices",
3431
+ "name": "notices_target",
3432
+ "columns": [
3433
+ {
3434
+ "value": "target",
3435
+ "isExpression": false
3436
+ },
3437
+ {
3438
+ "value": "project_id",
3439
+ "isExpression": false
3440
+ },
3441
+ {
3442
+ "value": "delivered_at",
3443
+ "isExpression": false
3444
+ }
3445
+ ],
3446
+ "isUnique": false,
3447
+ "where": null,
3448
+ "origin": "manual",
3449
+ "entityType": "indexes"
3450
+ },
3451
+ {
3452
+ "table": "notices",
3453
+ "name": "notices_created",
3454
+ "columns": [
3455
+ {
3456
+ "value": "created_at",
3457
+ "isExpression": false
3458
+ }
3459
+ ],
3460
+ "isUnique": false,
3461
+ "where": null,
3462
+ "origin": "manual",
3463
+ "entityType": "indexes"
3464
+ },
3465
+ {
3466
+ "table": "runners",
3467
+ "name": "runners_runner_id",
3468
+ "columns": [
3469
+ {
3470
+ "value": "runner_id",
3471
+ "isExpression": false
3472
+ }
3473
+ ],
3474
+ "isUnique": false,
3475
+ "where": null,
3476
+ "origin": "manual",
3477
+ "entityType": "indexes"
3478
+ },
3479
+ {
3480
+ "table": "item_search",
3481
+ "name": "item_search_item",
3482
+ "columns": [
3483
+ {
3484
+ "value": "session_id",
3485
+ "isExpression": false
3486
+ },
3487
+ {
3488
+ "value": "item_id",
3489
+ "isExpression": false
3490
+ }
3491
+ ],
3492
+ "isUnique": true,
3493
+ "where": null,
3494
+ "origin": "manual",
3495
+ "entityType": "indexes"
3496
+ },
3497
+ {
3498
+ "table": "usage_ledger",
3499
+ "name": "usage_ledger_ts",
3500
+ "columns": [
3501
+ {
3502
+ "value": "ts",
3503
+ "isExpression": false
3504
+ }
3505
+ ],
3506
+ "isUnique": false,
3507
+ "where": null,
3508
+ "origin": "manual",
3509
+ "entityType": "indexes"
3510
+ },
3511
+ {
3512
+ "table": "usage_ledger",
3513
+ "name": "usage_ledger_project_ts",
3514
+ "columns": [
3515
+ {
3516
+ "value": "project_id",
3517
+ "isExpression": false
3518
+ },
3519
+ {
3520
+ "value": "ts",
3521
+ "isExpression": false
3522
+ }
3523
+ ],
3524
+ "isUnique": false,
3525
+ "where": null,
3526
+ "origin": "manual",
3527
+ "entityType": "indexes"
3528
+ },
3529
+ {
3530
+ "table": "automation_schedules",
3531
+ "name": "automation_schedules_pk",
3532
+ "columns": [
3533
+ "automation_id",
3534
+ "project_id"
3535
+ ],
3536
+ "nameExplicit": false,
3537
+ "entityType": "pks"
3538
+ },
3539
+ {
3540
+ "table": "checkpoints",
3541
+ "name": "checkpoints_pk",
3542
+ "columns": [
3543
+ "session_id",
3544
+ "idx"
3545
+ ],
3546
+ "nameExplicit": false,
3547
+ "entityType": "pks"
3548
+ },
3549
+ {
3550
+ "table": "items",
3551
+ "name": "items_pk",
3552
+ "columns": [
3553
+ "session_id",
3554
+ "id"
3555
+ ],
3556
+ "nameExplicit": false,
3557
+ "entityType": "pks"
3558
+ },
3559
+ {
3560
+ "table": "threads",
3561
+ "name": "threads_pk",
3562
+ "columns": [
3563
+ "session_id",
3564
+ "id"
3565
+ ],
3566
+ "nameExplicit": false,
3567
+ "entityType": "pks"
3568
+ },
3569
+ {
3570
+ "table": "turns",
3571
+ "name": "turns_pk",
3572
+ "columns": [
3573
+ "session_id",
3574
+ "id"
3575
+ ],
3576
+ "nameExplicit": false,
3577
+ "entityType": "pks"
3578
+ },
3579
+ {
3580
+ "table": "github_issues",
3581
+ "name": "github_issues_pk",
3582
+ "columns": [
3583
+ "project_id",
3584
+ "number"
3585
+ ],
3586
+ "nameExplicit": false,
3587
+ "entityType": "pks"
3588
+ },
3589
+ {
3590
+ "table": "github_prs",
3591
+ "name": "github_prs_pk",
3592
+ "columns": [
3593
+ "project_id",
3594
+ "number"
3595
+ ],
3596
+ "nameExplicit": false,
3597
+ "entityType": "pks"
3598
+ },
3599
+ {
3600
+ "table": "rate_limit_windows",
3601
+ "name": "rate_limit_windows_pk",
3602
+ "columns": [
3603
+ "provider",
3604
+ "window_id"
3605
+ ],
3606
+ "nameExplicit": false,
3607
+ "entityType": "pks"
3608
+ },
3609
+ {
3610
+ "table": "usage_ledger",
3611
+ "name": "usage_ledger_pk",
3612
+ "columns": [
3613
+ "session_id",
3614
+ "turn_id"
3615
+ ],
3616
+ "nameExplicit": false,
3617
+ "entityType": "pks"
3618
+ },
3619
+ {
3620
+ "table": "automation_projects",
3621
+ "name": "automation_projects_pk",
3622
+ "columns": [
3623
+ "project_id"
3624
+ ],
3625
+ "nameExplicit": false,
3626
+ "entityType": "pks"
3627
+ },
3628
+ {
3629
+ "table": "artifacts",
3630
+ "name": "artifacts_pk",
3631
+ "columns": [
3632
+ "id"
3633
+ ],
3634
+ "nameExplicit": false,
3635
+ "entityType": "pks"
3636
+ },
3637
+ {
3638
+ "table": "automation_runs",
3639
+ "name": "automation_runs_pk",
3640
+ "columns": [
3641
+ "id"
3642
+ ],
3643
+ "nameExplicit": false,
3644
+ "entityType": "pks"
3645
+ },
3646
+ {
3647
+ "table": "automations",
3648
+ "name": "automations_pk",
3649
+ "columns": [
3650
+ "id"
3651
+ ],
3652
+ "nameExplicit": false,
3653
+ "entityType": "pks"
3654
+ },
3655
+ {
3656
+ "table": "events",
3657
+ "name": "events_pk",
3658
+ "columns": [
3659
+ "seq"
3660
+ ],
3661
+ "nameExplicit": false,
3662
+ "entityType": "pks"
3663
+ },
3664
+ {
3665
+ "table": "inbox_items",
3666
+ "name": "inbox_items_pk",
3667
+ "columns": [
3668
+ "id"
3669
+ ],
3670
+ "nameExplicit": false,
3671
+ "entityType": "pks"
3672
+ },
3673
+ {
3674
+ "table": "mcp_tokens",
3675
+ "name": "mcp_tokens_pk",
3676
+ "columns": [
3677
+ "id"
3678
+ ],
3679
+ "nameExplicit": false,
3680
+ "entityType": "pks"
3681
+ },
3682
+ {
3683
+ "table": "projects",
3684
+ "name": "projects_pk",
3685
+ "columns": [
3686
+ "id"
3687
+ ],
3688
+ "nameExplicit": false,
3689
+ "entityType": "pks"
3690
+ },
3691
+ {
3692
+ "table": "queued_messages",
3693
+ "name": "queued_messages_pk",
3694
+ "columns": [
3695
+ "id"
3696
+ ],
3697
+ "nameExplicit": false,
3698
+ "entityType": "pks"
3699
+ },
3700
+ {
3701
+ "table": "runner_state",
3702
+ "name": "runner_state_pk",
3703
+ "columns": [
3704
+ "runner_id"
3705
+ ],
3706
+ "nameExplicit": false,
3707
+ "entityType": "pks"
3708
+ },
3709
+ {
3710
+ "table": "sessions",
3711
+ "name": "sessions_pk",
3712
+ "columns": [
3713
+ "id"
3714
+ ],
3715
+ "nameExplicit": false,
3716
+ "entityType": "pks"
3717
+ },
3718
+ {
3719
+ "table": "factory_digests",
3720
+ "name": "factory_digests_pk",
3721
+ "columns": [
3722
+ "id"
3723
+ ],
3724
+ "nameExplicit": false,
3725
+ "entityType": "pks"
3726
+ },
3727
+ {
3728
+ "table": "factory_items",
3729
+ "name": "factory_items_pk",
3730
+ "columns": [
3731
+ "id"
3732
+ ],
3733
+ "nameExplicit": false,
3734
+ "entityType": "pks"
3735
+ },
3736
+ {
3737
+ "table": "factory_loops",
3738
+ "name": "factory_loops_pk",
3739
+ "columns": [
3740
+ "project_id"
3741
+ ],
3742
+ "nameExplicit": false,
3743
+ "entityType": "pks"
3744
+ },
3745
+ {
3746
+ "table": "github_sync_state",
3747
+ "name": "github_sync_state_pk",
3748
+ "columns": [
3749
+ "project_id"
3750
+ ],
3751
+ "nameExplicit": false,
3752
+ "entityType": "pks"
3753
+ },
3754
+ {
3755
+ "table": "conflicts",
3756
+ "name": "conflicts_pk",
3757
+ "columns": [
3758
+ "id"
3759
+ ],
3760
+ "nameExplicit": false,
3761
+ "entityType": "pks"
3762
+ },
3763
+ {
3764
+ "table": "notices",
3765
+ "name": "notices_pk",
3766
+ "columns": [
3767
+ "id"
3768
+ ],
3769
+ "nameExplicit": false,
3770
+ "entityType": "pks"
3771
+ },
3772
+ {
3773
+ "table": "runners",
3774
+ "name": "runners_pk",
3775
+ "columns": [
3776
+ "id"
3777
+ ],
3778
+ "nameExplicit": false,
3779
+ "entityType": "pks"
3780
+ },
3781
+ {
3782
+ "table": "item_search",
3783
+ "name": "item_search_pk",
3784
+ "columns": [
3785
+ "id"
3786
+ ],
3787
+ "nameExplicit": false,
3788
+ "entityType": "pks"
3789
+ }
3790
+ ],
3791
+ "renames": []
3792
+ }