@m6d/cortex-server 2.3.0 → 2.4.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 (62) hide show
  1. package/contracts/src/runtime/index.ts +99 -3
  2. package/dist/contracts/src/graph/helpers.d.ts +5 -5
  3. package/dist/contracts/src/runtime/index.d.ts +175 -3
  4. package/dist/src/lib/adapters/database/index.d.ts +20 -2
  5. package/dist/src/lib/adapters/database/mssql/attachments.d.ts +9 -9
  6. package/dist/src/lib/adapters/database/mssql/index.d.ts +133 -28
  7. package/dist/src/lib/adapters/database/mssql/llm-requests.d.ts +3 -2
  8. package/dist/src/lib/adapters/database/mssql/messages.d.ts +6 -5
  9. package/dist/src/lib/adapters/database/mssql/outbox.d.ts +103 -0
  10. package/dist/src/lib/adapters/database/mssql/threads.d.ts +21 -14
  11. package/dist/src/lib/adapters/database/postgres/attachments.d.ts +9 -9
  12. package/dist/src/lib/adapters/database/postgres/index.d.ts +133 -28
  13. package/dist/src/lib/adapters/database/postgres/llm-requests.d.ts +3 -2
  14. package/dist/src/lib/adapters/database/postgres/messages.d.ts +6 -5
  15. package/dist/src/lib/adapters/database/postgres/outbox.d.ts +103 -0
  16. package/dist/src/lib/adapters/database/postgres/threads.d.ts +21 -14
  17. package/dist/src/lib/ai/attachments.d.ts +2 -2
  18. package/dist/src/lib/ai/client-tools.d.ts +1 -1
  19. package/dist/src/lib/auth/middleware.d.ts +2 -2
  20. package/dist/src/lib/auth/playground.d.ts +14 -0
  21. package/dist/src/lib/cc/client.d.ts +9 -1
  22. package/dist/src/lib/cc/flusher.d.ts +40 -0
  23. package/dist/src/lib/cc/sync-events.d.ts +45 -0
  24. package/dist/src/lib/cc/types.d.ts +1 -1
  25. package/dist/src/lib/config.d.ts +11 -0
  26. package/dist/src/lib/db/schema.mssql.d.ts +161 -0
  27. package/dist/src/lib/db/schema.pg.d.ts +199 -0
  28. package/dist/src/lib/factory.d.ts +3 -0
  29. package/dist/src/lib/routes/owned-thread.d.ts +5 -4
  30. package/package.json +1 -1
  31. package/src/lib/adapters/database/index.ts +15 -1
  32. package/src/lib/adapters/database/mssql/index.ts +13 -4
  33. package/src/lib/adapters/database/mssql/llm-requests.ts +35 -15
  34. package/src/lib/adapters/database/mssql/messages.ts +81 -30
  35. package/src/lib/adapters/database/mssql/outbox.ts +71 -0
  36. package/src/lib/adapters/database/mssql/threads.ts +42 -11
  37. package/src/lib/adapters/database/postgres/index.ts +13 -4
  38. package/src/lib/adapters/database/postgres/llm-requests.ts +35 -15
  39. package/src/lib/adapters/database/postgres/messages.ts +81 -30
  40. package/src/lib/adapters/database/postgres/outbox.ts +66 -0
  41. package/src/lib/adapters/database/postgres/threads.ts +39 -11
  42. package/src/lib/ai/finish-turn.ts +3 -1
  43. package/src/lib/ai/prompt.ts +3 -1
  44. package/src/lib/auth/middleware.ts +34 -8
  45. package/src/lib/auth/playground.ts +72 -0
  46. package/src/lib/cc/client.ts +21 -1
  47. package/src/lib/cc/flusher.ts +147 -0
  48. package/src/lib/cc/sync-events.ts +65 -0
  49. package/src/lib/cc/types.ts +3 -0
  50. package/src/lib/config.ts +11 -0
  51. package/src/lib/db/migrations/mssql/20260829050547_friendly_red_shift/migration.sql +8 -0
  52. package/src/lib/db/migrations/mssql/20260829050547_friendly_red_shift/snapshot.json +581 -0
  53. package/src/lib/db/migrations/mssql/20260830022424_easy_nicolaos/migration.sql +5 -0
  54. package/src/lib/db/migrations/mssql/20260830022424_easy_nicolaos/snapshot.json +614 -0
  55. package/src/lib/db/migrations/pg/20260829050547_perfect_wildside/migration.sql +7 -0
  56. package/src/lib/db/migrations/pg/20260829050547_perfect_wildside/snapshot.json +650 -0
  57. package/src/lib/db/migrations/pg/20260830022424_serious_deadpool/migration.sql +4 -0
  58. package/src/lib/db/migrations/pg/20260830022424_serious_deadpool/snapshot.json +690 -0
  59. package/src/lib/db/schema.mssql.ts +32 -1
  60. package/src/lib/db/schema.pg.ts +24 -0
  61. package/src/lib/factory.ts +22 -8
  62. package/src/lib/routes/threads.ts +5 -1
@@ -0,0 +1,690 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "718ceb05-d300-4c05-bb41-cf5821b84114",
5
+ "prevIds": ["2117476b-c06c-4a15-9833-31ba6e927720"],
6
+ "ddl": [
7
+ {
8
+ "name": "ai",
9
+ "entityType": "schemas"
10
+ },
11
+ {
12
+ "isRlsEnabled": false,
13
+ "name": "attachments",
14
+ "entityType": "tables",
15
+ "schema": "ai"
16
+ },
17
+ {
18
+ "isRlsEnabled": false,
19
+ "name": "llm_requests",
20
+ "entityType": "tables",
21
+ "schema": "ai"
22
+ },
23
+ {
24
+ "isRlsEnabled": false,
25
+ "name": "messages",
26
+ "entityType": "tables",
27
+ "schema": "ai"
28
+ },
29
+ {
30
+ "isRlsEnabled": false,
31
+ "name": "sync_meta",
32
+ "entityType": "tables",
33
+ "schema": "ai"
34
+ },
35
+ {
36
+ "isRlsEnabled": false,
37
+ "name": "sync_outbox",
38
+ "entityType": "tables",
39
+ "schema": "ai"
40
+ },
41
+ {
42
+ "isRlsEnabled": false,
43
+ "name": "threads",
44
+ "entityType": "tables",
45
+ "schema": "ai"
46
+ },
47
+ {
48
+ "type": "uuid",
49
+ "typeSchema": null,
50
+ "notNull": true,
51
+ "dimensions": 0,
52
+ "default": "gen_random_uuid()",
53
+ "generated": null,
54
+ "identity": null,
55
+ "name": "id",
56
+ "entityType": "columns",
57
+ "schema": "ai",
58
+ "table": "attachments"
59
+ },
60
+ {
61
+ "type": "uuid",
62
+ "typeSchema": null,
63
+ "notNull": true,
64
+ "dimensions": 0,
65
+ "default": null,
66
+ "generated": null,
67
+ "identity": null,
68
+ "name": "thread_id",
69
+ "entityType": "columns",
70
+ "schema": "ai",
71
+ "table": "attachments"
72
+ },
73
+ {
74
+ "type": "varchar(255)",
75
+ "typeSchema": null,
76
+ "notNull": true,
77
+ "dimensions": 0,
78
+ "default": null,
79
+ "generated": null,
80
+ "identity": null,
81
+ "name": "user_id",
82
+ "entityType": "columns",
83
+ "schema": "ai",
84
+ "table": "attachments"
85
+ },
86
+ {
87
+ "type": "varchar(128)",
88
+ "typeSchema": null,
89
+ "notNull": false,
90
+ "dimensions": 0,
91
+ "default": null,
92
+ "generated": null,
93
+ "identity": null,
94
+ "name": "message_id",
95
+ "entityType": "columns",
96
+ "schema": "ai",
97
+ "table": "attachments"
98
+ },
99
+ {
100
+ "type": "varchar(2048)",
101
+ "typeSchema": null,
102
+ "notNull": true,
103
+ "dimensions": 0,
104
+ "default": null,
105
+ "generated": null,
106
+ "identity": null,
107
+ "name": "filename",
108
+ "entityType": "columns",
109
+ "schema": "ai",
110
+ "table": "attachments"
111
+ },
112
+ {
113
+ "type": "varchar(256)",
114
+ "typeSchema": null,
115
+ "notNull": true,
116
+ "dimensions": 0,
117
+ "default": null,
118
+ "generated": null,
119
+ "identity": null,
120
+ "name": "content_type",
121
+ "entityType": "columns",
122
+ "schema": "ai",
123
+ "table": "attachments"
124
+ },
125
+ {
126
+ "type": "integer",
127
+ "typeSchema": null,
128
+ "notNull": true,
129
+ "dimensions": 0,
130
+ "default": null,
131
+ "generated": null,
132
+ "identity": null,
133
+ "name": "size_bytes",
134
+ "entityType": "columns",
135
+ "schema": "ai",
136
+ "table": "attachments"
137
+ },
138
+ {
139
+ "type": "varchar(512)",
140
+ "typeSchema": null,
141
+ "notNull": true,
142
+ "dimensions": 0,
143
+ "default": null,
144
+ "generated": null,
145
+ "identity": null,
146
+ "name": "storage_key",
147
+ "entityType": "columns",
148
+ "schema": "ai",
149
+ "table": "attachments"
150
+ },
151
+ {
152
+ "type": "varchar(16)",
153
+ "typeSchema": null,
154
+ "notNull": true,
155
+ "dimensions": 0,
156
+ "default": null,
157
+ "generated": null,
158
+ "identity": null,
159
+ "name": "status",
160
+ "entityType": "columns",
161
+ "schema": "ai",
162
+ "table": "attachments"
163
+ },
164
+ {
165
+ "type": "text",
166
+ "typeSchema": null,
167
+ "notNull": false,
168
+ "dimensions": 0,
169
+ "default": null,
170
+ "generated": null,
171
+ "identity": null,
172
+ "name": "description",
173
+ "entityType": "columns",
174
+ "schema": "ai",
175
+ "table": "attachments"
176
+ },
177
+ {
178
+ "type": "timestamp with time zone",
179
+ "typeSchema": null,
180
+ "notNull": true,
181
+ "dimensions": 0,
182
+ "default": null,
183
+ "generated": null,
184
+ "identity": null,
185
+ "name": "created_at",
186
+ "entityType": "columns",
187
+ "schema": "ai",
188
+ "table": "attachments"
189
+ },
190
+ {
191
+ "type": "timestamp with time zone",
192
+ "typeSchema": null,
193
+ "notNull": true,
194
+ "dimensions": 0,
195
+ "default": null,
196
+ "generated": null,
197
+ "identity": null,
198
+ "name": "updated_at",
199
+ "entityType": "columns",
200
+ "schema": "ai",
201
+ "table": "attachments"
202
+ },
203
+ {
204
+ "type": "uuid",
205
+ "typeSchema": null,
206
+ "notNull": true,
207
+ "dimensions": 0,
208
+ "default": "gen_random_uuid()",
209
+ "generated": null,
210
+ "identity": null,
211
+ "name": "id",
212
+ "entityType": "columns",
213
+ "schema": "ai",
214
+ "table": "llm_requests"
215
+ },
216
+ {
217
+ "type": "varchar(128)",
218
+ "typeSchema": null,
219
+ "notNull": true,
220
+ "dimensions": 0,
221
+ "default": null,
222
+ "generated": null,
223
+ "identity": null,
224
+ "name": "message_id",
225
+ "entityType": "columns",
226
+ "schema": "ai",
227
+ "table": "llm_requests"
228
+ },
229
+ {
230
+ "type": "integer",
231
+ "typeSchema": null,
232
+ "notNull": true,
233
+ "dimensions": 0,
234
+ "default": null,
235
+ "generated": null,
236
+ "identity": null,
237
+ "name": "step_number",
238
+ "entityType": "columns",
239
+ "schema": "ai",
240
+ "table": "llm_requests"
241
+ },
242
+ {
243
+ "type": "text",
244
+ "typeSchema": null,
245
+ "notNull": true,
246
+ "dimensions": 0,
247
+ "default": null,
248
+ "generated": null,
249
+ "identity": null,
250
+ "name": "prompt",
251
+ "entityType": "columns",
252
+ "schema": "ai",
253
+ "table": "llm_requests"
254
+ },
255
+ {
256
+ "type": "text",
257
+ "typeSchema": null,
258
+ "notNull": false,
259
+ "dimensions": 0,
260
+ "default": null,
261
+ "generated": null,
262
+ "identity": null,
263
+ "name": "output",
264
+ "entityType": "columns",
265
+ "schema": "ai",
266
+ "table": "llm_requests"
267
+ },
268
+ {
269
+ "type": "jsonb",
270
+ "typeSchema": null,
271
+ "notNull": false,
272
+ "dimensions": 0,
273
+ "default": null,
274
+ "generated": null,
275
+ "identity": null,
276
+ "name": "token_usage",
277
+ "entityType": "columns",
278
+ "schema": "ai",
279
+ "table": "llm_requests"
280
+ },
281
+ {
282
+ "type": "varchar(128)",
283
+ "typeSchema": null,
284
+ "notNull": true,
285
+ "dimensions": 0,
286
+ "default": null,
287
+ "generated": null,
288
+ "identity": null,
289
+ "name": "id",
290
+ "entityType": "columns",
291
+ "schema": "ai",
292
+ "table": "messages"
293
+ },
294
+ {
295
+ "type": "uuid",
296
+ "typeSchema": null,
297
+ "notNull": true,
298
+ "dimensions": 0,
299
+ "default": null,
300
+ "generated": null,
301
+ "identity": null,
302
+ "name": "thread_id",
303
+ "entityType": "columns",
304
+ "schema": "ai",
305
+ "table": "messages"
306
+ },
307
+ {
308
+ "type": "text",
309
+ "typeSchema": null,
310
+ "notNull": false,
311
+ "dimensions": 0,
312
+ "default": null,
313
+ "generated": null,
314
+ "identity": null,
315
+ "name": "text",
316
+ "entityType": "columns",
317
+ "schema": "ai",
318
+ "table": "messages"
319
+ },
320
+ {
321
+ "type": "jsonb",
322
+ "typeSchema": null,
323
+ "notNull": true,
324
+ "dimensions": 0,
325
+ "default": null,
326
+ "generated": null,
327
+ "identity": null,
328
+ "name": "content",
329
+ "entityType": "columns",
330
+ "schema": "ai",
331
+ "table": "messages"
332
+ },
333
+ {
334
+ "type": "integer",
335
+ "typeSchema": null,
336
+ "notNull": true,
337
+ "dimensions": 0,
338
+ "default": "0",
339
+ "generated": null,
340
+ "identity": null,
341
+ "name": "ordinal",
342
+ "entityType": "columns",
343
+ "schema": "ai",
344
+ "table": "messages"
345
+ },
346
+ {
347
+ "type": "varchar(16)",
348
+ "typeSchema": null,
349
+ "notNull": true,
350
+ "dimensions": 0,
351
+ "default": null,
352
+ "generated": null,
353
+ "identity": null,
354
+ "name": "role",
355
+ "entityType": "columns",
356
+ "schema": "ai",
357
+ "table": "messages"
358
+ },
359
+ {
360
+ "type": "timestamp with time zone",
361
+ "typeSchema": null,
362
+ "notNull": true,
363
+ "dimensions": 0,
364
+ "default": null,
365
+ "generated": null,
366
+ "identity": null,
367
+ "name": "created_at",
368
+ "entityType": "columns",
369
+ "schema": "ai",
370
+ "table": "messages"
371
+ },
372
+ {
373
+ "type": "timestamp with time zone",
374
+ "typeSchema": null,
375
+ "notNull": true,
376
+ "dimensions": 0,
377
+ "default": null,
378
+ "generated": null,
379
+ "identity": null,
380
+ "name": "updated_at",
381
+ "entityType": "columns",
382
+ "schema": "ai",
383
+ "table": "messages"
384
+ },
385
+ {
386
+ "type": "integer",
387
+ "typeSchema": null,
388
+ "notNull": true,
389
+ "dimensions": 0,
390
+ "default": null,
391
+ "generated": null,
392
+ "identity": null,
393
+ "name": "id",
394
+ "entityType": "columns",
395
+ "schema": "ai",
396
+ "table": "sync_meta"
397
+ },
398
+ {
399
+ "type": "varchar(36)",
400
+ "typeSchema": null,
401
+ "notNull": true,
402
+ "dimensions": 0,
403
+ "default": null,
404
+ "generated": null,
405
+ "identity": null,
406
+ "name": "epoch",
407
+ "entityType": "columns",
408
+ "schema": "ai",
409
+ "table": "sync_meta"
410
+ },
411
+ {
412
+ "type": "bigserial",
413
+ "typeSchema": null,
414
+ "notNull": true,
415
+ "dimensions": 0,
416
+ "default": null,
417
+ "generated": null,
418
+ "identity": null,
419
+ "name": "id",
420
+ "entityType": "columns",
421
+ "schema": "ai",
422
+ "table": "sync_outbox"
423
+ },
424
+ {
425
+ "type": "jsonb",
426
+ "typeSchema": null,
427
+ "notNull": true,
428
+ "dimensions": 0,
429
+ "default": null,
430
+ "generated": null,
431
+ "identity": null,
432
+ "name": "event",
433
+ "entityType": "columns",
434
+ "schema": "ai",
435
+ "table": "sync_outbox"
436
+ },
437
+ {
438
+ "type": "timestamp with time zone",
439
+ "typeSchema": null,
440
+ "notNull": true,
441
+ "dimensions": 0,
442
+ "default": null,
443
+ "generated": null,
444
+ "identity": null,
445
+ "name": "created_at",
446
+ "entityType": "columns",
447
+ "schema": "ai",
448
+ "table": "sync_outbox"
449
+ },
450
+ {
451
+ "type": "uuid",
452
+ "typeSchema": null,
453
+ "notNull": true,
454
+ "dimensions": 0,
455
+ "default": "gen_random_uuid()",
456
+ "generated": null,
457
+ "identity": null,
458
+ "name": "id",
459
+ "entityType": "columns",
460
+ "schema": "ai",
461
+ "table": "threads"
462
+ },
463
+ {
464
+ "type": "varchar(255)",
465
+ "typeSchema": null,
466
+ "notNull": true,
467
+ "dimensions": 0,
468
+ "default": null,
469
+ "generated": null,
470
+ "identity": null,
471
+ "name": "user_id",
472
+ "entityType": "columns",
473
+ "schema": "ai",
474
+ "table": "threads"
475
+ },
476
+ {
477
+ "type": "varchar(128)",
478
+ "typeSchema": null,
479
+ "notNull": true,
480
+ "dimensions": 0,
481
+ "default": "'default'",
482
+ "generated": null,
483
+ "identity": null,
484
+ "name": "agent_id",
485
+ "entityType": "columns",
486
+ "schema": "ai",
487
+ "table": "threads"
488
+ },
489
+ {
490
+ "type": "varchar(256)",
491
+ "typeSchema": null,
492
+ "notNull": false,
493
+ "dimensions": 0,
494
+ "default": null,
495
+ "generated": null,
496
+ "identity": null,
497
+ "name": "title",
498
+ "entityType": "columns",
499
+ "schema": "ai",
500
+ "table": "threads"
501
+ },
502
+ {
503
+ "type": "boolean",
504
+ "typeSchema": null,
505
+ "notNull": true,
506
+ "dimensions": 0,
507
+ "default": "false",
508
+ "generated": null,
509
+ "identity": null,
510
+ "name": "is_test",
511
+ "entityType": "columns",
512
+ "schema": "ai",
513
+ "table": "threads"
514
+ },
515
+ {
516
+ "type": "jsonb",
517
+ "typeSchema": null,
518
+ "notNull": false,
519
+ "dimensions": 0,
520
+ "default": null,
521
+ "generated": null,
522
+ "identity": null,
523
+ "name": "session",
524
+ "entityType": "columns",
525
+ "schema": "ai",
526
+ "table": "threads"
527
+ },
528
+ {
529
+ "type": "jsonb",
530
+ "typeSchema": null,
531
+ "notNull": false,
532
+ "dimensions": 0,
533
+ "default": null,
534
+ "generated": null,
535
+ "identity": null,
536
+ "name": "context_meta",
537
+ "entityType": "columns",
538
+ "schema": "ai",
539
+ "table": "threads"
540
+ },
541
+ {
542
+ "type": "timestamp with time zone",
543
+ "typeSchema": null,
544
+ "notNull": true,
545
+ "dimensions": 0,
546
+ "default": null,
547
+ "generated": null,
548
+ "identity": null,
549
+ "name": "created_at",
550
+ "entityType": "columns",
551
+ "schema": "ai",
552
+ "table": "threads"
553
+ },
554
+ {
555
+ "type": "timestamp with time zone",
556
+ "typeSchema": null,
557
+ "notNull": true,
558
+ "dimensions": 0,
559
+ "default": null,
560
+ "generated": null,
561
+ "identity": null,
562
+ "name": "updated_at",
563
+ "entityType": "columns",
564
+ "schema": "ai",
565
+ "table": "threads"
566
+ },
567
+ {
568
+ "nameExplicit": true,
569
+ "columns": [
570
+ {
571
+ "value": "thread_id",
572
+ "isExpression": false,
573
+ "asc": true,
574
+ "nullsFirst": false,
575
+ "opclass": null
576
+ }
577
+ ],
578
+ "isUnique": false,
579
+ "where": null,
580
+ "with": "",
581
+ "method": "btree",
582
+ "concurrently": false,
583
+ "name": "attachments_thread_id_index",
584
+ "entityType": "indexes",
585
+ "schema": "ai",
586
+ "table": "attachments"
587
+ },
588
+ {
589
+ "nameExplicit": false,
590
+ "columns": ["thread_id"],
591
+ "schemaTo": "ai",
592
+ "tableTo": "threads",
593
+ "columnsTo": ["id"],
594
+ "onUpdate": "NO ACTION",
595
+ "onDelete": "CASCADE",
596
+ "name": "attachments_thread_id_threads_id_fkey",
597
+ "entityType": "fks",
598
+ "schema": "ai",
599
+ "table": "attachments"
600
+ },
601
+ {
602
+ "nameExplicit": false,
603
+ "columns": ["message_id"],
604
+ "schemaTo": "ai",
605
+ "tableTo": "messages",
606
+ "columnsTo": ["id"],
607
+ "onUpdate": "NO ACTION",
608
+ "onDelete": "NO ACTION",
609
+ "name": "attachments_message_id_messages_id_fkey",
610
+ "entityType": "fks",
611
+ "schema": "ai",
612
+ "table": "attachments"
613
+ },
614
+ {
615
+ "nameExplicit": false,
616
+ "columns": ["message_id"],
617
+ "schemaTo": "ai",
618
+ "tableTo": "messages",
619
+ "columnsTo": ["id"],
620
+ "onUpdate": "NO ACTION",
621
+ "onDelete": "CASCADE",
622
+ "name": "llm_requests_message_id_messages_id_fkey",
623
+ "entityType": "fks",
624
+ "schema": "ai",
625
+ "table": "llm_requests"
626
+ },
627
+ {
628
+ "nameExplicit": false,
629
+ "columns": ["thread_id"],
630
+ "schemaTo": "ai",
631
+ "tableTo": "threads",
632
+ "columnsTo": ["id"],
633
+ "onUpdate": "NO ACTION",
634
+ "onDelete": "CASCADE",
635
+ "name": "messages_thread_id_threads_id_fkey",
636
+ "entityType": "fks",
637
+ "schema": "ai",
638
+ "table": "messages"
639
+ },
640
+ {
641
+ "columns": ["id"],
642
+ "nameExplicit": false,
643
+ "name": "attachments_pkey",
644
+ "schema": "ai",
645
+ "table": "attachments",
646
+ "entityType": "pks"
647
+ },
648
+ {
649
+ "columns": ["id"],
650
+ "nameExplicit": false,
651
+ "name": "llm_requests_pkey",
652
+ "schema": "ai",
653
+ "table": "llm_requests",
654
+ "entityType": "pks"
655
+ },
656
+ {
657
+ "columns": ["id"],
658
+ "nameExplicit": false,
659
+ "name": "messages_pkey",
660
+ "schema": "ai",
661
+ "table": "messages",
662
+ "entityType": "pks"
663
+ },
664
+ {
665
+ "columns": ["id"],
666
+ "nameExplicit": false,
667
+ "name": "sync_meta_pkey",
668
+ "schema": "ai",
669
+ "table": "sync_meta",
670
+ "entityType": "pks"
671
+ },
672
+ {
673
+ "columns": ["id"],
674
+ "nameExplicit": false,
675
+ "name": "sync_outbox_pkey",
676
+ "schema": "ai",
677
+ "table": "sync_outbox",
678
+ "entityType": "pks"
679
+ },
680
+ {
681
+ "columns": ["id"],
682
+ "nameExplicit": false,
683
+ "name": "threads_pkey",
684
+ "schema": "ai",
685
+ "table": "threads",
686
+ "entityType": "pks"
687
+ }
688
+ ],
689
+ "renames": []
690
+ }