c0de-agent 1.6.0 → 1.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.
@@ -0,0 +1,849 @@
1
+ {
2
+ "id": "dd22157a-540a-4ad6-8973-22bce10f5a60",
3
+ "prevId": "0e95e275-9eaa-4027-a830-0c6b5ccc43f2",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.compaction_archives": {
8
+ "name": "compaction_archives",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "session_id": {
19
+ "name": "session_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "compaction_id": {
25
+ "name": "compaction_id",
26
+ "type": "uuid",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "archive_type": {
31
+ "name": "archive_type",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "original_entries": {
37
+ "name": "original_entries",
38
+ "type": "jsonb",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "file_snapshots": {
43
+ "name": "file_snapshots",
44
+ "type": "jsonb",
45
+ "primaryKey": false,
46
+ "notNull": false,
47
+ "default": "'[]'::jsonb"
48
+ },
49
+ "summary": {
50
+ "name": "summary",
51
+ "type": "text",
52
+ "primaryKey": false,
53
+ "notNull": true
54
+ },
55
+ "token_count": {
56
+ "name": "token_count",
57
+ "type": "integer",
58
+ "primaryKey": false,
59
+ "notNull": false
60
+ },
61
+ "searchable_text": {
62
+ "name": "searchable_text",
63
+ "type": "text",
64
+ "primaryKey": false,
65
+ "notNull": false
66
+ },
67
+ "created_at": {
68
+ "name": "created_at",
69
+ "type": "timestamp with time zone",
70
+ "primaryKey": false,
71
+ "notNull": true,
72
+ "default": "now()"
73
+ }
74
+ },
75
+ "indexes": {
76
+ "idx_archives_session": {
77
+ "name": "idx_archives_session",
78
+ "columns": [
79
+ {
80
+ "expression": "session_id",
81
+ "isExpression": false,
82
+ "asc": true,
83
+ "nulls": "last"
84
+ }
85
+ ],
86
+ "isUnique": false,
87
+ "concurrently": false,
88
+ "method": "btree",
89
+ "with": {}
90
+ }
91
+ },
92
+ "foreignKeys": {
93
+ "compaction_archives_session_id_sessions_id_fk": {
94
+ "name": "compaction_archives_session_id_sessions_id_fk",
95
+ "tableFrom": "compaction_archives",
96
+ "tableTo": "sessions",
97
+ "columnsFrom": [
98
+ "session_id"
99
+ ],
100
+ "columnsTo": [
101
+ "id"
102
+ ],
103
+ "onDelete": "cascade",
104
+ "onUpdate": "no action"
105
+ }
106
+ },
107
+ "compositePrimaryKeys": {},
108
+ "uniqueConstraints": {},
109
+ "policies": {},
110
+ "checkConstraints": {},
111
+ "isRLSEnabled": false
112
+ },
113
+ "public.file_snapshots": {
114
+ "name": "file_snapshots",
115
+ "schema": "",
116
+ "columns": {
117
+ "id": {
118
+ "name": "id",
119
+ "type": "uuid",
120
+ "primaryKey": true,
121
+ "notNull": true,
122
+ "default": "gen_random_uuid()"
123
+ },
124
+ "session_id": {
125
+ "name": "session_id",
126
+ "type": "uuid",
127
+ "primaryKey": false,
128
+ "notNull": true
129
+ },
130
+ "entry_id": {
131
+ "name": "entry_id",
132
+ "type": "uuid",
133
+ "primaryKey": false,
134
+ "notNull": false
135
+ },
136
+ "file_path": {
137
+ "name": "file_path",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true
141
+ },
142
+ "content": {
143
+ "name": "content",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ },
148
+ "content_hash": {
149
+ "name": "content_hash",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": true
153
+ },
154
+ "token_count": {
155
+ "name": "token_count",
156
+ "type": "integer",
157
+ "primaryKey": false,
158
+ "notNull": false,
159
+ "default": 0
160
+ },
161
+ "version": {
162
+ "name": "version",
163
+ "type": "integer",
164
+ "primaryKey": false,
165
+ "notNull": false,
166
+ "default": 1
167
+ },
168
+ "created_at": {
169
+ "name": "created_at",
170
+ "type": "timestamp with time zone",
171
+ "primaryKey": false,
172
+ "notNull": true,
173
+ "default": "now()"
174
+ }
175
+ },
176
+ "indexes": {
177
+ "idx_snapshots_session_path": {
178
+ "name": "idx_snapshots_session_path",
179
+ "columns": [
180
+ {
181
+ "expression": "session_id",
182
+ "isExpression": false,
183
+ "asc": true,
184
+ "nulls": "last"
185
+ },
186
+ {
187
+ "expression": "file_path",
188
+ "isExpression": false,
189
+ "asc": true,
190
+ "nulls": "last"
191
+ }
192
+ ],
193
+ "isUnique": false,
194
+ "concurrently": false,
195
+ "method": "btree",
196
+ "with": {}
197
+ },
198
+ "idx_snapshots_latest": {
199
+ "name": "idx_snapshots_latest",
200
+ "columns": [
201
+ {
202
+ "expression": "session_id",
203
+ "isExpression": false,
204
+ "asc": true,
205
+ "nulls": "last"
206
+ },
207
+ {
208
+ "expression": "file_path",
209
+ "isExpression": false,
210
+ "asc": true,
211
+ "nulls": "last"
212
+ },
213
+ {
214
+ "expression": "version",
215
+ "isExpression": false,
216
+ "asc": true,
217
+ "nulls": "last"
218
+ }
219
+ ],
220
+ "isUnique": true,
221
+ "concurrently": false,
222
+ "method": "btree",
223
+ "with": {}
224
+ }
225
+ },
226
+ "foreignKeys": {
227
+ "file_snapshots_session_id_sessions_id_fk": {
228
+ "name": "file_snapshots_session_id_sessions_id_fk",
229
+ "tableFrom": "file_snapshots",
230
+ "tableTo": "sessions",
231
+ "columnsFrom": [
232
+ "session_id"
233
+ ],
234
+ "columnsTo": [
235
+ "id"
236
+ ],
237
+ "onDelete": "cascade",
238
+ "onUpdate": "no action"
239
+ }
240
+ },
241
+ "compositePrimaryKeys": {},
242
+ "uniqueConstraints": {},
243
+ "policies": {},
244
+ "checkConstraints": {},
245
+ "isRLSEnabled": false
246
+ },
247
+ "public.kanban_boards": {
248
+ "name": "kanban_boards",
249
+ "schema": "",
250
+ "columns": {
251
+ "id": {
252
+ "name": "id",
253
+ "type": "uuid",
254
+ "primaryKey": true,
255
+ "notNull": true,
256
+ "default": "gen_random_uuid()"
257
+ },
258
+ "project_id": {
259
+ "name": "project_id",
260
+ "type": "text",
261
+ "primaryKey": false,
262
+ "notNull": true
263
+ },
264
+ "columns": {
265
+ "name": "columns",
266
+ "type": "jsonb",
267
+ "primaryKey": false,
268
+ "notNull": true
269
+ },
270
+ "labels": {
271
+ "name": "labels",
272
+ "type": "jsonb",
273
+ "primaryKey": false,
274
+ "notNull": true,
275
+ "default": "'[]'::jsonb"
276
+ },
277
+ "created_at": {
278
+ "name": "created_at",
279
+ "type": "timestamp with time zone",
280
+ "primaryKey": false,
281
+ "notNull": true,
282
+ "default": "now()"
283
+ },
284
+ "updated_at": {
285
+ "name": "updated_at",
286
+ "type": "timestamp with time zone",
287
+ "primaryKey": false,
288
+ "notNull": true,
289
+ "default": "now()"
290
+ }
291
+ },
292
+ "indexes": {
293
+ "uq_kanban_boards_project": {
294
+ "name": "uq_kanban_boards_project",
295
+ "columns": [
296
+ {
297
+ "expression": "project_id",
298
+ "isExpression": false,
299
+ "asc": true,
300
+ "nulls": "last"
301
+ }
302
+ ],
303
+ "isUnique": true,
304
+ "concurrently": false,
305
+ "method": "btree",
306
+ "with": {}
307
+ }
308
+ },
309
+ "foreignKeys": {
310
+ "kanban_boards_project_id_projects_id_fk": {
311
+ "name": "kanban_boards_project_id_projects_id_fk",
312
+ "tableFrom": "kanban_boards",
313
+ "tableTo": "projects",
314
+ "columnsFrom": [
315
+ "project_id"
316
+ ],
317
+ "columnsTo": [
318
+ "id"
319
+ ],
320
+ "onDelete": "cascade",
321
+ "onUpdate": "no action"
322
+ }
323
+ },
324
+ "compositePrimaryKeys": {},
325
+ "uniqueConstraints": {},
326
+ "policies": {},
327
+ "checkConstraints": {},
328
+ "isRLSEnabled": false
329
+ },
330
+ "public.kanban_cards": {
331
+ "name": "kanban_cards",
332
+ "schema": "",
333
+ "columns": {
334
+ "id": {
335
+ "name": "id",
336
+ "type": "uuid",
337
+ "primaryKey": true,
338
+ "notNull": true,
339
+ "default": "gen_random_uuid()"
340
+ },
341
+ "board_id": {
342
+ "name": "board_id",
343
+ "type": "uuid",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "title": {
348
+ "name": "title",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true
352
+ },
353
+ "description": {
354
+ "name": "description",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": false
358
+ },
359
+ "column_id": {
360
+ "name": "column_id",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": true
364
+ },
365
+ "priority": {
366
+ "name": "priority",
367
+ "type": "text",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "default": "'medium'"
371
+ },
372
+ "position": {
373
+ "name": "position",
374
+ "type": "real",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "default": 0
378
+ },
379
+ "labels": {
380
+ "name": "labels",
381
+ "type": "jsonb",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "default": "'[]'::jsonb"
385
+ },
386
+ "created_at": {
387
+ "name": "created_at",
388
+ "type": "timestamp with time zone",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "default": "now()"
392
+ },
393
+ "updated_at": {
394
+ "name": "updated_at",
395
+ "type": "timestamp with time zone",
396
+ "primaryKey": false,
397
+ "notNull": true,
398
+ "default": "now()"
399
+ }
400
+ },
401
+ "indexes": {
402
+ "idx_kanban_cards_board": {
403
+ "name": "idx_kanban_cards_board",
404
+ "columns": [
405
+ {
406
+ "expression": "board_id",
407
+ "isExpression": false,
408
+ "asc": true,
409
+ "nulls": "last"
410
+ },
411
+ {
412
+ "expression": "column_id",
413
+ "isExpression": false,
414
+ "asc": true,
415
+ "nulls": "last"
416
+ },
417
+ {
418
+ "expression": "position",
419
+ "isExpression": false,
420
+ "asc": true,
421
+ "nulls": "last"
422
+ }
423
+ ],
424
+ "isUnique": false,
425
+ "concurrently": false,
426
+ "method": "btree",
427
+ "with": {}
428
+ }
429
+ },
430
+ "foreignKeys": {
431
+ "kanban_cards_board_id_kanban_boards_id_fk": {
432
+ "name": "kanban_cards_board_id_kanban_boards_id_fk",
433
+ "tableFrom": "kanban_cards",
434
+ "tableTo": "kanban_boards",
435
+ "columnsFrom": [
436
+ "board_id"
437
+ ],
438
+ "columnsTo": [
439
+ "id"
440
+ ],
441
+ "onDelete": "cascade",
442
+ "onUpdate": "no action"
443
+ }
444
+ },
445
+ "compositePrimaryKeys": {},
446
+ "uniqueConstraints": {},
447
+ "policies": {},
448
+ "checkConstraints": {},
449
+ "isRLSEnabled": false
450
+ },
451
+ "public.projects": {
452
+ "name": "projects",
453
+ "schema": "",
454
+ "columns": {
455
+ "id": {
456
+ "name": "id",
457
+ "type": "text",
458
+ "primaryKey": true,
459
+ "notNull": true
460
+ },
461
+ "worktree": {
462
+ "name": "worktree",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": true
466
+ },
467
+ "vcs": {
468
+ "name": "vcs",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": false
472
+ },
473
+ "name": {
474
+ "name": "name",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": false
478
+ },
479
+ "git_remote": {
480
+ "name": "git_remote",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": false
484
+ },
485
+ "created_at": {
486
+ "name": "created_at",
487
+ "type": "timestamp with time zone",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "default": "now()"
491
+ },
492
+ "updated_at": {
493
+ "name": "updated_at",
494
+ "type": "timestamp with time zone",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "default": "now()"
498
+ }
499
+ },
500
+ "indexes": {},
501
+ "foreignKeys": {},
502
+ "compositePrimaryKeys": {},
503
+ "uniqueConstraints": {},
504
+ "policies": {},
505
+ "checkConstraints": {},
506
+ "isRLSEnabled": false
507
+ },
508
+ "public.session_entries": {
509
+ "name": "session_entries",
510
+ "schema": "",
511
+ "columns": {
512
+ "id": {
513
+ "name": "id",
514
+ "type": "uuid",
515
+ "primaryKey": true,
516
+ "notNull": true,
517
+ "default": "gen_random_uuid()"
518
+ },
519
+ "session_id": {
520
+ "name": "session_id",
521
+ "type": "uuid",
522
+ "primaryKey": false,
523
+ "notNull": true
524
+ },
525
+ "tag": {
526
+ "name": "tag",
527
+ "type": "text",
528
+ "primaryKey": false,
529
+ "notNull": true
530
+ },
531
+ "role": {
532
+ "name": "role",
533
+ "type": "text",
534
+ "primaryKey": false,
535
+ "notNull": false
536
+ },
537
+ "content": {
538
+ "name": "content",
539
+ "type": "jsonb",
540
+ "primaryKey": false,
541
+ "notNull": true
542
+ },
543
+ "tool_name": {
544
+ "name": "tool_name",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": false
548
+ },
549
+ "token_count": {
550
+ "name": "token_count",
551
+ "type": "integer",
552
+ "primaryKey": false,
553
+ "notNull": false,
554
+ "default": 0
555
+ },
556
+ "created_at": {
557
+ "name": "created_at",
558
+ "type": "timestamp with time zone",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "default": "now()"
562
+ }
563
+ },
564
+ "indexes": {
565
+ "idx_entries_session": {
566
+ "name": "idx_entries_session",
567
+ "columns": [
568
+ {
569
+ "expression": "session_id",
570
+ "isExpression": false,
571
+ "asc": true,
572
+ "nulls": "last"
573
+ },
574
+ {
575
+ "expression": "created_at",
576
+ "isExpression": false,
577
+ "asc": true,
578
+ "nulls": "last"
579
+ }
580
+ ],
581
+ "isUnique": false,
582
+ "concurrently": false,
583
+ "method": "btree",
584
+ "with": {}
585
+ }
586
+ },
587
+ "foreignKeys": {
588
+ "session_entries_session_id_sessions_id_fk": {
589
+ "name": "session_entries_session_id_sessions_id_fk",
590
+ "tableFrom": "session_entries",
591
+ "tableTo": "sessions",
592
+ "columnsFrom": [
593
+ "session_id"
594
+ ],
595
+ "columnsTo": [
596
+ "id"
597
+ ],
598
+ "onDelete": "cascade",
599
+ "onUpdate": "no action"
600
+ }
601
+ },
602
+ "compositePrimaryKeys": {},
603
+ "uniqueConstraints": {},
604
+ "policies": {},
605
+ "checkConstraints": {},
606
+ "isRLSEnabled": false
607
+ },
608
+ "public.sessions": {
609
+ "name": "sessions",
610
+ "schema": "",
611
+ "columns": {
612
+ "id": {
613
+ "name": "id",
614
+ "type": "uuid",
615
+ "primaryKey": true,
616
+ "notNull": true,
617
+ "default": "gen_random_uuid()"
618
+ },
619
+ "title": {
620
+ "name": "title",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true
624
+ },
625
+ "parent_id": {
626
+ "name": "parent_id",
627
+ "type": "uuid",
628
+ "primaryKey": false,
629
+ "notNull": false
630
+ },
631
+ "project_id": {
632
+ "name": "project_id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": false
636
+ },
637
+ "branch_point": {
638
+ "name": "branch_point",
639
+ "type": "integer",
640
+ "primaryKey": false,
641
+ "notNull": false
642
+ },
643
+ "metadata": {
644
+ "name": "metadata",
645
+ "type": "jsonb",
646
+ "primaryKey": false,
647
+ "notNull": true,
648
+ "default": "'{}'::jsonb"
649
+ },
650
+ "agent_type": {
651
+ "name": "agent_type",
652
+ "type": "text",
653
+ "primaryKey": false,
654
+ "notNull": false
655
+ },
656
+ "worktree_path": {
657
+ "name": "worktree_path",
658
+ "type": "text",
659
+ "primaryKey": false,
660
+ "notNull": false
661
+ },
662
+ "created_at": {
663
+ "name": "created_at",
664
+ "type": "timestamp with time zone",
665
+ "primaryKey": false,
666
+ "notNull": true,
667
+ "default": "now()"
668
+ },
669
+ "updated_at": {
670
+ "name": "updated_at",
671
+ "type": "timestamp with time zone",
672
+ "primaryKey": false,
673
+ "notNull": true,
674
+ "default": "now()"
675
+ }
676
+ },
677
+ "indexes": {
678
+ "idx_sessions_parent": {
679
+ "name": "idx_sessions_parent",
680
+ "columns": [
681
+ {
682
+ "expression": "parent_id",
683
+ "isExpression": false,
684
+ "asc": true,
685
+ "nulls": "last"
686
+ }
687
+ ],
688
+ "isUnique": false,
689
+ "concurrently": false,
690
+ "method": "btree",
691
+ "with": {}
692
+ },
693
+ "idx_sessions_project": {
694
+ "name": "idx_sessions_project",
695
+ "columns": [
696
+ {
697
+ "expression": "project_id",
698
+ "isExpression": false,
699
+ "asc": true,
700
+ "nulls": "last"
701
+ }
702
+ ],
703
+ "isUnique": false,
704
+ "concurrently": false,
705
+ "method": "btree",
706
+ "with": {}
707
+ }
708
+ },
709
+ "foreignKeys": {
710
+ "sessions_parent_id_sessions_id_fk": {
711
+ "name": "sessions_parent_id_sessions_id_fk",
712
+ "tableFrom": "sessions",
713
+ "tableTo": "sessions",
714
+ "columnsFrom": [
715
+ "parent_id"
716
+ ],
717
+ "columnsTo": [
718
+ "id"
719
+ ],
720
+ "onDelete": "no action",
721
+ "onUpdate": "no action"
722
+ },
723
+ "sessions_project_id_projects_id_fk": {
724
+ "name": "sessions_project_id_projects_id_fk",
725
+ "tableFrom": "sessions",
726
+ "tableTo": "projects",
727
+ "columnsFrom": [
728
+ "project_id"
729
+ ],
730
+ "columnsTo": [
731
+ "id"
732
+ ],
733
+ "onDelete": "set null",
734
+ "onUpdate": "no action"
735
+ }
736
+ },
737
+ "compositePrimaryKeys": {},
738
+ "uniqueConstraints": {},
739
+ "policies": {},
740
+ "checkConstraints": {},
741
+ "isRLSEnabled": false
742
+ },
743
+ "public.tool_metrics": {
744
+ "name": "tool_metrics",
745
+ "schema": "",
746
+ "columns": {
747
+ "model": {
748
+ "name": "model",
749
+ "type": "text",
750
+ "primaryKey": false,
751
+ "notNull": true
752
+ },
753
+ "tool": {
754
+ "name": "tool",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": true
758
+ },
759
+ "mode": {
760
+ "name": "mode",
761
+ "type": "text",
762
+ "primaryKey": false,
763
+ "notNull": true
764
+ },
765
+ "attempts": {
766
+ "name": "attempts",
767
+ "type": "integer",
768
+ "primaryKey": false,
769
+ "notNull": true,
770
+ "default": 0
771
+ },
772
+ "successes": {
773
+ "name": "successes",
774
+ "type": "integer",
775
+ "primaryKey": false,
776
+ "notNull": true,
777
+ "default": 0
778
+ },
779
+ "failures": {
780
+ "name": "failures",
781
+ "type": "integer",
782
+ "primaryKey": false,
783
+ "notNull": true,
784
+ "default": 0
785
+ },
786
+ "avg_latency_ms": {
787
+ "name": "avg_latency_ms",
788
+ "type": "real",
789
+ "primaryKey": false,
790
+ "notNull": true,
791
+ "default": 0
792
+ },
793
+ "last_used": {
794
+ "name": "last_used",
795
+ "type": "timestamp with time zone",
796
+ "primaryKey": false,
797
+ "notNull": true,
798
+ "default": "now()"
799
+ }
800
+ },
801
+ "indexes": {
802
+ "uq_tool_metrics_model_tool_mode": {
803
+ "name": "uq_tool_metrics_model_tool_mode",
804
+ "columns": [
805
+ {
806
+ "expression": "model",
807
+ "isExpression": false,
808
+ "asc": true,
809
+ "nulls": "last"
810
+ },
811
+ {
812
+ "expression": "tool",
813
+ "isExpression": false,
814
+ "asc": true,
815
+ "nulls": "last"
816
+ },
817
+ {
818
+ "expression": "mode",
819
+ "isExpression": false,
820
+ "asc": true,
821
+ "nulls": "last"
822
+ }
823
+ ],
824
+ "isUnique": true,
825
+ "concurrently": false,
826
+ "method": "btree",
827
+ "with": {}
828
+ }
829
+ },
830
+ "foreignKeys": {},
831
+ "compositePrimaryKeys": {},
832
+ "uniqueConstraints": {},
833
+ "policies": {},
834
+ "checkConstraints": {},
835
+ "isRLSEnabled": false
836
+ }
837
+ },
838
+ "enums": {},
839
+ "schemas": {},
840
+ "sequences": {},
841
+ "roles": {},
842
+ "policies": {},
843
+ "views": {},
844
+ "_meta": {
845
+ "columns": {},
846
+ "schemas": {},
847
+ "tables": {}
848
+ }
849
+ }