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