@edihasaj/recall 0.6.6 → 0.7.1

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 (64) hide show
  1. package/README.md +57 -1
  2. package/dist/chunk-37K4DPRI.js +17 -0
  3. package/dist/chunk-37K4DPRI.js.map +1 -0
  4. package/dist/chunk-AKODTKWM.js +123 -0
  5. package/dist/chunk-AKODTKWM.js.map +1 -0
  6. package/dist/{chunk-4P3NKEIJ.js → chunk-CPOANMKD.js} +18 -9
  7. package/dist/{chunk-4P3NKEIJ.js.map → chunk-CPOANMKD.js.map} +1 -1
  8. package/dist/{chunk-AJAAK4FK.js → chunk-GNXTOM5K.js} +159 -9
  9. package/dist/chunk-GNXTOM5K.js.map +1 -0
  10. package/dist/chunk-JRIM7VBY.js +2346 -0
  11. package/dist/chunk-JRIM7VBY.js.map +1 -0
  12. package/dist/chunk-PG2ZVVAT.js +6525 -0
  13. package/dist/chunk-PG2ZVVAT.js.map +1 -0
  14. package/dist/{chunk-LFWG3CBM.js → chunk-PH6YNVHR.js} +206 -2381
  15. package/dist/chunk-PH6YNVHR.js.map +1 -0
  16. package/dist/chunk-QDA5M3AJ.js +2617 -0
  17. package/dist/chunk-QDA5M3AJ.js.map +1 -0
  18. package/dist/chunk-QSJKGEID.js +235 -0
  19. package/dist/chunk-QSJKGEID.js.map +1 -0
  20. package/dist/chunk-UBPGOOAN.js +462 -0
  21. package/dist/chunk-UBPGOOAN.js.map +1 -0
  22. package/dist/{chunk-XUM7JEJU.js → chunk-YL23MKB3.js} +10 -4
  23. package/dist/{chunk-XUM7JEJU.js.map → chunk-YL23MKB3.js.map} +1 -1
  24. package/dist/chunk-Z6RT5BUO.js +282 -0
  25. package/dist/chunk-Z6RT5BUO.js.map +1 -0
  26. package/dist/{cleanup-JM3CGHUV.js → cleanup-YGHZIYLJ.js} +6 -3
  27. package/dist/cli.js +160 -26
  28. package/dist/cli.js.map +1 -1
  29. package/dist/daemon.js +662 -42
  30. package/dist/daemon.js.map +1 -1
  31. package/dist/{dispatcher-C5S7SYY6.js → dispatcher-5MDL3QQT.js} +6 -3
  32. package/dist/embeddings-GKNH2E3N.js +48 -0
  33. package/dist/ingest-JWXX22QX.js +19 -0
  34. package/dist/mcp.js +9 -4
  35. package/dist/mcp.js.map +1 -1
  36. package/dist/{quality-YTQKAEY6.js → quality-2JOLSIC3.js} +4 -3
  37. package/dist/quality-2JOLSIC3.js.map +1 -0
  38. package/dist/retrieval-GLAEYWGA.js +13 -0
  39. package/dist/retrieval-GLAEYWGA.js.map +1 -0
  40. package/dist/store-2BPQPOOZ.js +31 -0
  41. package/dist/store-2BPQPOOZ.js.map +1 -0
  42. package/dist/{tasks-KHLJT7MP.js → tasks-6J3LULYO.js} +6 -3
  43. package/dist/tasks-6J3LULYO.js.map +1 -0
  44. package/dist/{usage-DU4TKVJH.js → usage-YBS74UEU.js} +8 -4
  45. package/dist/{usage-DU4TKVJH.js.map → usage-YBS74UEU.js.map} +1 -1
  46. package/dist/webui/assets/index-BJt1Lf-q.css +1 -0
  47. package/dist/webui/assets/index-Bfhwll2B.js +5224 -0
  48. package/dist/webui/assets/index-Bfhwll2B.js.map +1 -0
  49. package/dist/webui/index.html +15 -0
  50. package/dist/webui/recall-icon.png +0 -0
  51. package/drizzle/0008_premium_red_hulk.sql +44 -0
  52. package/drizzle/meta/0008_snapshot.json +2491 -0
  53. package/drizzle/meta/_journal.json +7 -0
  54. package/package.json +8 -3
  55. package/dist/chunk-A6XEULA4.js +0 -470
  56. package/dist/chunk-A6XEULA4.js.map +0 -1
  57. package/dist/chunk-AJAAK4FK.js.map +0 -1
  58. package/dist/chunk-DSNYEUZW.js +0 -2993
  59. package/dist/chunk-DSNYEUZW.js.map +0 -1
  60. package/dist/chunk-LFWG3CBM.js.map +0 -1
  61. /package/dist/{cleanup-JM3CGHUV.js.map → cleanup-YGHZIYLJ.js.map} +0 -0
  62. /package/dist/{dispatcher-C5S7SYY6.js.map → dispatcher-5MDL3QQT.js.map} +0 -0
  63. /package/dist/{quality-YTQKAEY6.js.map → embeddings-GKNH2E3N.js.map} +0 -0
  64. /package/dist/{tasks-KHLJT7MP.js.map → ingest-JWXX22QX.js.map} +0 -0
@@ -0,0 +1,2491 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "462e35f7-84f4-42ca-a82b-e09647692abe",
5
+ "prevId": "df67c83b-f340-4f7d-91ad-7b3763f23ee9",
6
+ "tables": {
7
+ "activity_events": {
8
+ "name": "activity_events",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "session_id": {
18
+ "name": "session_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false,
22
+ "autoincrement": false
23
+ },
24
+ "repo": {
25
+ "name": "repo",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "path": {
32
+ "name": "path",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "source": {
39
+ "name": "source",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "event_type": {
46
+ "name": "event_type",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "memory_ids": {
53
+ "name": "memory_ids",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false,
58
+ "default": "'[]'"
59
+ },
60
+ "dedupe_key": {
61
+ "name": "dedupe_key",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false,
65
+ "autoincrement": false
66
+ },
67
+ "request": {
68
+ "name": "request",
69
+ "type": "text",
70
+ "primaryKey": false,
71
+ "notNull": true,
72
+ "autoincrement": false,
73
+ "default": "'{}'"
74
+ },
75
+ "result": {
76
+ "name": "result",
77
+ "type": "text",
78
+ "primaryKey": false,
79
+ "notNull": true,
80
+ "autoincrement": false,
81
+ "default": "'{}'"
82
+ },
83
+ "created_at": {
84
+ "name": "created_at",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "autoincrement": false
89
+ }
90
+ },
91
+ "indexes": {
92
+ "idx_activity_session": {
93
+ "name": "idx_activity_session",
94
+ "columns": [
95
+ "session_id"
96
+ ],
97
+ "isUnique": false
98
+ },
99
+ "idx_activity_repo": {
100
+ "name": "idx_activity_repo",
101
+ "columns": [
102
+ "repo"
103
+ ],
104
+ "isUnique": false
105
+ },
106
+ "idx_activity_event_type": {
107
+ "name": "idx_activity_event_type",
108
+ "columns": [
109
+ "event_type"
110
+ ],
111
+ "isUnique": false
112
+ },
113
+ "idx_activity_created": {
114
+ "name": "idx_activity_created",
115
+ "columns": [
116
+ "created_at"
117
+ ],
118
+ "isUnique": false
119
+ },
120
+ "uq_activity_events_dedupe_key": {
121
+ "name": "uq_activity_events_dedupe_key",
122
+ "columns": [
123
+ "dedupe_key"
124
+ ],
125
+ "isUnique": true
126
+ }
127
+ },
128
+ "foreignKeys": {},
129
+ "compositePrimaryKeys": {},
130
+ "uniqueConstraints": {},
131
+ "checkConstraints": {}
132
+ },
133
+ "approval_requests": {
134
+ "name": "approval_requests",
135
+ "columns": {
136
+ "id": {
137
+ "name": "id",
138
+ "type": "text",
139
+ "primaryKey": true,
140
+ "notNull": true,
141
+ "autoincrement": false
142
+ },
143
+ "memory_id": {
144
+ "name": "memory_id",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false
149
+ },
150
+ "org_id": {
151
+ "name": "org_id",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": true,
155
+ "autoincrement": false
156
+ },
157
+ "requested_by": {
158
+ "name": "requested_by",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": true,
162
+ "autoincrement": false
163
+ },
164
+ "status": {
165
+ "name": "status",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": true,
169
+ "autoincrement": false,
170
+ "default": "'pending'"
171
+ },
172
+ "reviewed_by": {
173
+ "name": "reviewed_by",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": false,
177
+ "autoincrement": false
178
+ },
179
+ "reason": {
180
+ "name": "reason",
181
+ "type": "text",
182
+ "primaryKey": false,
183
+ "notNull": false,
184
+ "autoincrement": false
185
+ },
186
+ "created_at": {
187
+ "name": "created_at",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "autoincrement": false
192
+ },
193
+ "resolved_at": {
194
+ "name": "resolved_at",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": false,
198
+ "autoincrement": false
199
+ }
200
+ },
201
+ "indexes": {
202
+ "idx_approval_org": {
203
+ "name": "idx_approval_org",
204
+ "columns": [
205
+ "org_id"
206
+ ],
207
+ "isUnique": false
208
+ },
209
+ "idx_approval_status": {
210
+ "name": "idx_approval_status",
211
+ "columns": [
212
+ "status"
213
+ ],
214
+ "isUnique": false
215
+ }
216
+ },
217
+ "foreignKeys": {
218
+ "approval_requests_memory_id_memories_id_fk": {
219
+ "name": "approval_requests_memory_id_memories_id_fk",
220
+ "tableFrom": "approval_requests",
221
+ "tableTo": "memories",
222
+ "columnsFrom": [
223
+ "memory_id"
224
+ ],
225
+ "columnsTo": [
226
+ "id"
227
+ ],
228
+ "onDelete": "no action",
229
+ "onUpdate": "no action"
230
+ }
231
+ },
232
+ "compositePrimaryKeys": {},
233
+ "uniqueConstraints": {},
234
+ "checkConstraints": {}
235
+ },
236
+ "audit_trail": {
237
+ "name": "audit_trail",
238
+ "columns": {
239
+ "id": {
240
+ "name": "id",
241
+ "type": "text",
242
+ "primaryKey": true,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ },
246
+ "memory_id": {
247
+ "name": "memory_id",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true,
251
+ "autoincrement": false
252
+ },
253
+ "action": {
254
+ "name": "action",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "autoincrement": false
259
+ },
260
+ "actor": {
261
+ "name": "actor",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true,
265
+ "autoincrement": false
266
+ },
267
+ "before_snapshot": {
268
+ "name": "before_snapshot",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": false,
272
+ "autoincrement": false
273
+ },
274
+ "after_snapshot": {
275
+ "name": "after_snapshot",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": false,
279
+ "autoincrement": false
280
+ },
281
+ "reason": {
282
+ "name": "reason",
283
+ "type": "text",
284
+ "primaryKey": false,
285
+ "notNull": false,
286
+ "autoincrement": false
287
+ },
288
+ "timestamp": {
289
+ "name": "timestamp",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false
294
+ }
295
+ },
296
+ "indexes": {
297
+ "idx_audit_memory": {
298
+ "name": "idx_audit_memory",
299
+ "columns": [
300
+ "memory_id"
301
+ ],
302
+ "isUnique": false
303
+ },
304
+ "idx_audit_timestamp": {
305
+ "name": "idx_audit_timestamp",
306
+ "columns": [
307
+ "timestamp"
308
+ ],
309
+ "isUnique": false
310
+ }
311
+ },
312
+ "foreignKeys": {},
313
+ "compositePrimaryKeys": {},
314
+ "uniqueConstraints": {},
315
+ "checkConstraints": {}
316
+ },
317
+ "contradictions": {
318
+ "name": "contradictions",
319
+ "columns": {
320
+ "id": {
321
+ "name": "id",
322
+ "type": "text",
323
+ "primaryKey": true,
324
+ "notNull": true,
325
+ "autoincrement": false
326
+ },
327
+ "memory_a_id": {
328
+ "name": "memory_a_id",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": true,
332
+ "autoincrement": false
333
+ },
334
+ "memory_b_id": {
335
+ "name": "memory_b_id",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "autoincrement": false
340
+ },
341
+ "contradiction_type": {
342
+ "name": "contradiction_type",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "severity": {
349
+ "name": "severity",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ },
355
+ "description": {
356
+ "name": "description",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false
361
+ },
362
+ "resolved": {
363
+ "name": "resolved",
364
+ "type": "integer",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "autoincrement": false,
368
+ "default": false
369
+ },
370
+ "resolution": {
371
+ "name": "resolution",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": false,
375
+ "autoincrement": false
376
+ },
377
+ "detected_at": {
378
+ "name": "detected_at",
379
+ "type": "text",
380
+ "primaryKey": false,
381
+ "notNull": true,
382
+ "autoincrement": false
383
+ },
384
+ "resolved_at": {
385
+ "name": "resolved_at",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": false,
389
+ "autoincrement": false
390
+ }
391
+ },
392
+ "indexes": {
393
+ "idx_contradictions_resolved": {
394
+ "name": "idx_contradictions_resolved",
395
+ "columns": [
396
+ "resolved"
397
+ ],
398
+ "isUnique": false
399
+ }
400
+ },
401
+ "foreignKeys": {
402
+ "contradictions_memory_a_id_memories_id_fk": {
403
+ "name": "contradictions_memory_a_id_memories_id_fk",
404
+ "tableFrom": "contradictions",
405
+ "tableTo": "memories",
406
+ "columnsFrom": [
407
+ "memory_a_id"
408
+ ],
409
+ "columnsTo": [
410
+ "id"
411
+ ],
412
+ "onDelete": "no action",
413
+ "onUpdate": "no action"
414
+ },
415
+ "contradictions_memory_b_id_memories_id_fk": {
416
+ "name": "contradictions_memory_b_id_memories_id_fk",
417
+ "tableFrom": "contradictions",
418
+ "tableTo": "memories",
419
+ "columnsFrom": [
420
+ "memory_b_id"
421
+ ],
422
+ "columnsTo": [
423
+ "id"
424
+ ],
425
+ "onDelete": "no action",
426
+ "onUpdate": "no action"
427
+ }
428
+ },
429
+ "compositePrimaryKeys": {},
430
+ "uniqueConstraints": {},
431
+ "checkConstraints": {}
432
+ },
433
+ "entities": {
434
+ "name": "entities",
435
+ "columns": {
436
+ "id": {
437
+ "name": "id",
438
+ "type": "text",
439
+ "primaryKey": true,
440
+ "notNull": true,
441
+ "autoincrement": false
442
+ },
443
+ "kind": {
444
+ "name": "kind",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true,
448
+ "autoincrement": false
449
+ },
450
+ "name": {
451
+ "name": "name",
452
+ "type": "text",
453
+ "primaryKey": false,
454
+ "notNull": true,
455
+ "autoincrement": false
456
+ },
457
+ "normalized_name": {
458
+ "name": "normalized_name",
459
+ "type": "text",
460
+ "primaryKey": false,
461
+ "notNull": true,
462
+ "autoincrement": false
463
+ },
464
+ "repo": {
465
+ "name": "repo",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": false,
469
+ "autoincrement": false
470
+ },
471
+ "description": {
472
+ "name": "description",
473
+ "type": "text",
474
+ "primaryKey": false,
475
+ "notNull": false,
476
+ "autoincrement": false
477
+ },
478
+ "first_seen_memory_id": {
479
+ "name": "first_seen_memory_id",
480
+ "type": "text",
481
+ "primaryKey": false,
482
+ "notNull": false,
483
+ "autoincrement": false
484
+ },
485
+ "mention_count": {
486
+ "name": "mention_count",
487
+ "type": "integer",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "autoincrement": false,
491
+ "default": 0
492
+ },
493
+ "created_at": {
494
+ "name": "created_at",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": true,
498
+ "autoincrement": false
499
+ },
500
+ "updated_at": {
501
+ "name": "updated_at",
502
+ "type": "text",
503
+ "primaryKey": false,
504
+ "notNull": true,
505
+ "autoincrement": false
506
+ }
507
+ },
508
+ "indexes": {
509
+ "idx_entities_normalized": {
510
+ "name": "idx_entities_normalized",
511
+ "columns": [
512
+ "normalized_name"
513
+ ],
514
+ "isUnique": false
515
+ },
516
+ "idx_entities_kind": {
517
+ "name": "idx_entities_kind",
518
+ "columns": [
519
+ "kind"
520
+ ],
521
+ "isUnique": false
522
+ },
523
+ "idx_entities_repo": {
524
+ "name": "idx_entities_repo",
525
+ "columns": [
526
+ "repo"
527
+ ],
528
+ "isUnique": false
529
+ }
530
+ },
531
+ "foreignKeys": {},
532
+ "compositePrimaryKeys": {},
533
+ "uniqueConstraints": {},
534
+ "checkConstraints": {}
535
+ },
536
+ "entity_relations": {
537
+ "name": "entity_relations",
538
+ "columns": {
539
+ "id": {
540
+ "name": "id",
541
+ "type": "text",
542
+ "primaryKey": true,
543
+ "notNull": true,
544
+ "autoincrement": false
545
+ },
546
+ "source_entity_id": {
547
+ "name": "source_entity_id",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": true,
551
+ "autoincrement": false
552
+ },
553
+ "target_entity_id": {
554
+ "name": "target_entity_id",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": true,
558
+ "autoincrement": false
559
+ },
560
+ "relation_type": {
561
+ "name": "relation_type",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": true,
565
+ "autoincrement": false
566
+ },
567
+ "source_memory_id": {
568
+ "name": "source_memory_id",
569
+ "type": "text",
570
+ "primaryKey": false,
571
+ "notNull": false,
572
+ "autoincrement": false
573
+ },
574
+ "confidence": {
575
+ "name": "confidence",
576
+ "type": "real",
577
+ "primaryKey": false,
578
+ "notNull": true,
579
+ "autoincrement": false,
580
+ "default": 0.6
581
+ },
582
+ "created_at": {
583
+ "name": "created_at",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "autoincrement": false
588
+ }
589
+ },
590
+ "indexes": {
591
+ "idx_entity_relations_source": {
592
+ "name": "idx_entity_relations_source",
593
+ "columns": [
594
+ "source_entity_id"
595
+ ],
596
+ "isUnique": false
597
+ },
598
+ "idx_entity_relations_target": {
599
+ "name": "idx_entity_relations_target",
600
+ "columns": [
601
+ "target_entity_id"
602
+ ],
603
+ "isUnique": false
604
+ },
605
+ "idx_entity_relations_type": {
606
+ "name": "idx_entity_relations_type",
607
+ "columns": [
608
+ "relation_type"
609
+ ],
610
+ "isUnique": false
611
+ }
612
+ },
613
+ "foreignKeys": {
614
+ "entity_relations_source_entity_id_entities_id_fk": {
615
+ "name": "entity_relations_source_entity_id_entities_id_fk",
616
+ "tableFrom": "entity_relations",
617
+ "tableTo": "entities",
618
+ "columnsFrom": [
619
+ "source_entity_id"
620
+ ],
621
+ "columnsTo": [
622
+ "id"
623
+ ],
624
+ "onDelete": "no action",
625
+ "onUpdate": "no action"
626
+ },
627
+ "entity_relations_target_entity_id_entities_id_fk": {
628
+ "name": "entity_relations_target_entity_id_entities_id_fk",
629
+ "tableFrom": "entity_relations",
630
+ "tableTo": "entities",
631
+ "columnsFrom": [
632
+ "target_entity_id"
633
+ ],
634
+ "columnsTo": [
635
+ "id"
636
+ ],
637
+ "onDelete": "no action",
638
+ "onUpdate": "no action"
639
+ }
640
+ },
641
+ "compositePrimaryKeys": {},
642
+ "uniqueConstraints": {},
643
+ "checkConstraints": {}
644
+ },
645
+ "eval_sessions": {
646
+ "name": "eval_sessions",
647
+ "columns": {
648
+ "id": {
649
+ "name": "id",
650
+ "type": "text",
651
+ "primaryKey": true,
652
+ "notNull": true,
653
+ "autoincrement": false
654
+ },
655
+ "repo": {
656
+ "name": "repo",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ },
662
+ "started_at": {
663
+ "name": "started_at",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": true,
667
+ "autoincrement": false
668
+ },
669
+ "ended_at": {
670
+ "name": "ended_at",
671
+ "type": "text",
672
+ "primaryKey": false,
673
+ "notNull": false,
674
+ "autoincrement": false
675
+ },
676
+ "memories_injected": {
677
+ "name": "memories_injected",
678
+ "type": "integer",
679
+ "primaryKey": false,
680
+ "notNull": true,
681
+ "autoincrement": false,
682
+ "default": 0
683
+ },
684
+ "memories_followed": {
685
+ "name": "memories_followed",
686
+ "type": "integer",
687
+ "primaryKey": false,
688
+ "notNull": true,
689
+ "autoincrement": false,
690
+ "default": 0
691
+ },
692
+ "memories_overridden": {
693
+ "name": "memories_overridden",
694
+ "type": "integer",
695
+ "primaryKey": false,
696
+ "notNull": true,
697
+ "autoincrement": false,
698
+ "default": 0
699
+ },
700
+ "user_corrections": {
701
+ "name": "user_corrections",
702
+ "type": "integer",
703
+ "primaryKey": false,
704
+ "notNull": true,
705
+ "autoincrement": false,
706
+ "default": 0
707
+ },
708
+ "test_passes": {
709
+ "name": "test_passes",
710
+ "type": "integer",
711
+ "primaryKey": false,
712
+ "notNull": true,
713
+ "autoincrement": false,
714
+ "default": 0
715
+ },
716
+ "test_failures": {
717
+ "name": "test_failures",
718
+ "type": "integer",
719
+ "primaryKey": false,
720
+ "notNull": true,
721
+ "autoincrement": false,
722
+ "default": 0
723
+ }
724
+ },
725
+ "indexes": {
726
+ "idx_eval_repo": {
727
+ "name": "idx_eval_repo",
728
+ "columns": [
729
+ "repo"
730
+ ],
731
+ "isUnique": false
732
+ }
733
+ },
734
+ "foreignKeys": {},
735
+ "compositePrimaryKeys": {},
736
+ "uniqueConstraints": {},
737
+ "checkConstraints": {}
738
+ },
739
+ "feedback_events": {
740
+ "name": "feedback_events",
741
+ "columns": {
742
+ "id": {
743
+ "name": "id",
744
+ "type": "text",
745
+ "primaryKey": true,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ },
749
+ "memory_id": {
750
+ "name": "memory_id",
751
+ "type": "text",
752
+ "primaryKey": false,
753
+ "notNull": true,
754
+ "autoincrement": false
755
+ },
756
+ "session_id": {
757
+ "name": "session_id",
758
+ "type": "text",
759
+ "primaryKey": false,
760
+ "notNull": true,
761
+ "autoincrement": false
762
+ },
763
+ "injected": {
764
+ "name": "injected",
765
+ "type": "integer",
766
+ "primaryKey": false,
767
+ "notNull": true,
768
+ "autoincrement": false
769
+ },
770
+ "outcome": {
771
+ "name": "outcome",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": true,
775
+ "autoincrement": false
776
+ },
777
+ "timestamp": {
778
+ "name": "timestamp",
779
+ "type": "text",
780
+ "primaryKey": false,
781
+ "notNull": true,
782
+ "autoincrement": false
783
+ }
784
+ },
785
+ "indexes": {
786
+ "idx_feedback_memory": {
787
+ "name": "idx_feedback_memory",
788
+ "columns": [
789
+ "memory_id"
790
+ ],
791
+ "isUnique": false
792
+ },
793
+ "idx_feedback_session": {
794
+ "name": "idx_feedback_session",
795
+ "columns": [
796
+ "session_id"
797
+ ],
798
+ "isUnique": false
799
+ }
800
+ },
801
+ "foreignKeys": {
802
+ "feedback_events_memory_id_memories_id_fk": {
803
+ "name": "feedback_events_memory_id_memories_id_fk",
804
+ "tableFrom": "feedback_events",
805
+ "tableTo": "memories",
806
+ "columnsFrom": [
807
+ "memory_id"
808
+ ],
809
+ "columnsTo": [
810
+ "id"
811
+ ],
812
+ "onDelete": "no action",
813
+ "onUpdate": "no action"
814
+ }
815
+ },
816
+ "compositePrimaryKeys": {},
817
+ "uniqueConstraints": {},
818
+ "checkConstraints": {}
819
+ },
820
+ "history_injections": {
821
+ "name": "history_injections",
822
+ "columns": {
823
+ "id": {
824
+ "name": "id",
825
+ "type": "text",
826
+ "primaryKey": true,
827
+ "notNull": true,
828
+ "autoincrement": false
829
+ },
830
+ "snippet_id": {
831
+ "name": "snippet_id",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ },
837
+ "session_id": {
838
+ "name": "session_id",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "repo": {
845
+ "name": "repo",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false,
849
+ "autoincrement": false
850
+ },
851
+ "injected_at": {
852
+ "name": "injected_at",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": true,
856
+ "autoincrement": false
857
+ }
858
+ },
859
+ "indexes": {
860
+ "idx_history_injections_snippet": {
861
+ "name": "idx_history_injections_snippet",
862
+ "columns": [
863
+ "snippet_id"
864
+ ],
865
+ "isUnique": false
866
+ },
867
+ "idx_history_injections_session": {
868
+ "name": "idx_history_injections_session",
869
+ "columns": [
870
+ "session_id"
871
+ ],
872
+ "isUnique": false
873
+ },
874
+ "idx_history_injections_repo": {
875
+ "name": "idx_history_injections_repo",
876
+ "columns": [
877
+ "repo"
878
+ ],
879
+ "isUnique": false
880
+ },
881
+ "uq_history_injections_snippet_session": {
882
+ "name": "uq_history_injections_snippet_session",
883
+ "columns": [
884
+ "snippet_id",
885
+ "session_id"
886
+ ],
887
+ "isUnique": true
888
+ }
889
+ },
890
+ "foreignKeys": {
891
+ "history_injections_snippet_id_history_snippets_id_fk": {
892
+ "name": "history_injections_snippet_id_history_snippets_id_fk",
893
+ "tableFrom": "history_injections",
894
+ "tableTo": "history_snippets",
895
+ "columnsFrom": [
896
+ "snippet_id"
897
+ ],
898
+ "columnsTo": [
899
+ "id"
900
+ ],
901
+ "onDelete": "cascade",
902
+ "onUpdate": "no action"
903
+ }
904
+ },
905
+ "compositePrimaryKeys": {},
906
+ "uniqueConstraints": {},
907
+ "checkConstraints": {}
908
+ },
909
+ "history_snippet_embeddings": {
910
+ "name": "history_snippet_embeddings",
911
+ "columns": {
912
+ "snippet_id": {
913
+ "name": "snippet_id",
914
+ "type": "text",
915
+ "primaryKey": true,
916
+ "notNull": true,
917
+ "autoincrement": false
918
+ },
919
+ "model": {
920
+ "name": "model",
921
+ "type": "text",
922
+ "primaryKey": false,
923
+ "notNull": true,
924
+ "autoincrement": false
925
+ },
926
+ "embedding_dimensions": {
927
+ "name": "embedding_dimensions",
928
+ "type": "integer",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "autoincrement": false
932
+ },
933
+ "index_dimensions": {
934
+ "name": "index_dimensions",
935
+ "type": "integer",
936
+ "primaryKey": false,
937
+ "notNull": true,
938
+ "autoincrement": false
939
+ },
940
+ "version": {
941
+ "name": "version",
942
+ "type": "text",
943
+ "primaryKey": false,
944
+ "notNull": true,
945
+ "autoincrement": false
946
+ },
947
+ "content_hash": {
948
+ "name": "content_hash",
949
+ "type": "text",
950
+ "primaryKey": false,
951
+ "notNull": true,
952
+ "autoincrement": false
953
+ },
954
+ "updated_at": {
955
+ "name": "updated_at",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": true,
959
+ "autoincrement": false
960
+ },
961
+ "embedding": {
962
+ "name": "embedding",
963
+ "type": "blob",
964
+ "primaryKey": false,
965
+ "notNull": true,
966
+ "autoincrement": false
967
+ }
968
+ },
969
+ "indexes": {
970
+ "idx_history_embeddings_model": {
971
+ "name": "idx_history_embeddings_model",
972
+ "columns": [
973
+ "model"
974
+ ],
975
+ "isUnique": false
976
+ },
977
+ "idx_history_embeddings_updated": {
978
+ "name": "idx_history_embeddings_updated",
979
+ "columns": [
980
+ "updated_at"
981
+ ],
982
+ "isUnique": false
983
+ }
984
+ },
985
+ "foreignKeys": {
986
+ "history_snippet_embeddings_snippet_id_history_snippets_id_fk": {
987
+ "name": "history_snippet_embeddings_snippet_id_history_snippets_id_fk",
988
+ "tableFrom": "history_snippet_embeddings",
989
+ "tableTo": "history_snippets",
990
+ "columnsFrom": [
991
+ "snippet_id"
992
+ ],
993
+ "columnsTo": [
994
+ "id"
995
+ ],
996
+ "onDelete": "cascade",
997
+ "onUpdate": "no action"
998
+ }
999
+ },
1000
+ "compositePrimaryKeys": {},
1001
+ "uniqueConstraints": {},
1002
+ "checkConstraints": {}
1003
+ },
1004
+ "history_snippets": {
1005
+ "name": "history_snippets",
1006
+ "columns": {
1007
+ "id": {
1008
+ "name": "id",
1009
+ "type": "text",
1010
+ "primaryKey": true,
1011
+ "notNull": true,
1012
+ "autoincrement": false
1013
+ },
1014
+ "repo": {
1015
+ "name": "repo",
1016
+ "type": "text",
1017
+ "primaryKey": false,
1018
+ "notNull": false,
1019
+ "autoincrement": false
1020
+ },
1021
+ "session_id": {
1022
+ "name": "session_id",
1023
+ "type": "text",
1024
+ "primaryKey": false,
1025
+ "notNull": false,
1026
+ "autoincrement": false
1027
+ },
1028
+ "kind": {
1029
+ "name": "kind",
1030
+ "type": "text",
1031
+ "primaryKey": false,
1032
+ "notNull": true,
1033
+ "autoincrement": false
1034
+ },
1035
+ "text": {
1036
+ "name": "text",
1037
+ "type": "text",
1038
+ "primaryKey": false,
1039
+ "notNull": true,
1040
+ "autoincrement": false
1041
+ },
1042
+ "dedupe_key": {
1043
+ "name": "dedupe_key",
1044
+ "type": "text",
1045
+ "primaryKey": false,
1046
+ "notNull": false,
1047
+ "autoincrement": false
1048
+ },
1049
+ "source_activity_ids": {
1050
+ "name": "source_activity_ids",
1051
+ "type": "text",
1052
+ "primaryKey": false,
1053
+ "notNull": true,
1054
+ "autoincrement": false,
1055
+ "default": "'[]'"
1056
+ },
1057
+ "created_at": {
1058
+ "name": "created_at",
1059
+ "type": "text",
1060
+ "primaryKey": false,
1061
+ "notNull": true,
1062
+ "autoincrement": false
1063
+ },
1064
+ "updated_at": {
1065
+ "name": "updated_at",
1066
+ "type": "text",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "autoincrement": false
1070
+ }
1071
+ },
1072
+ "indexes": {
1073
+ "idx_history_repo": {
1074
+ "name": "idx_history_repo",
1075
+ "columns": [
1076
+ "repo"
1077
+ ],
1078
+ "isUnique": false
1079
+ },
1080
+ "idx_history_session": {
1081
+ "name": "idx_history_session",
1082
+ "columns": [
1083
+ "session_id"
1084
+ ],
1085
+ "isUnique": false
1086
+ },
1087
+ "idx_history_kind": {
1088
+ "name": "idx_history_kind",
1089
+ "columns": [
1090
+ "kind"
1091
+ ],
1092
+ "isUnique": false
1093
+ },
1094
+ "idx_history_created": {
1095
+ "name": "idx_history_created",
1096
+ "columns": [
1097
+ "created_at"
1098
+ ],
1099
+ "isUnique": false
1100
+ },
1101
+ "uq_history_snippets_dedupe_key": {
1102
+ "name": "uq_history_snippets_dedupe_key",
1103
+ "columns": [
1104
+ "dedupe_key"
1105
+ ],
1106
+ "isUnique": true
1107
+ }
1108
+ },
1109
+ "foreignKeys": {},
1110
+ "compositePrimaryKeys": {},
1111
+ "uniqueConstraints": {},
1112
+ "checkConstraints": {}
1113
+ },
1114
+ "hook_calls": {
1115
+ "name": "hook_calls",
1116
+ "columns": {
1117
+ "id": {
1118
+ "name": "id",
1119
+ "type": "text",
1120
+ "primaryKey": true,
1121
+ "notNull": true,
1122
+ "autoincrement": false
1123
+ },
1124
+ "event": {
1125
+ "name": "event",
1126
+ "type": "text",
1127
+ "primaryKey": false,
1128
+ "notNull": true,
1129
+ "autoincrement": false
1130
+ },
1131
+ "agent": {
1132
+ "name": "agent",
1133
+ "type": "text",
1134
+ "primaryKey": false,
1135
+ "notNull": true,
1136
+ "autoincrement": false
1137
+ },
1138
+ "dedupe_key": {
1139
+ "name": "dedupe_key",
1140
+ "type": "text",
1141
+ "primaryKey": false,
1142
+ "notNull": false,
1143
+ "autoincrement": false
1144
+ },
1145
+ "duration_ms": {
1146
+ "name": "duration_ms",
1147
+ "type": "integer",
1148
+ "primaryKey": false,
1149
+ "notNull": true,
1150
+ "autoincrement": false
1151
+ },
1152
+ "ok": {
1153
+ "name": "ok",
1154
+ "type": "integer",
1155
+ "primaryKey": false,
1156
+ "notNull": true,
1157
+ "autoincrement": false
1158
+ },
1159
+ "created_at": {
1160
+ "name": "created_at",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true,
1164
+ "autoincrement": false
1165
+ }
1166
+ },
1167
+ "indexes": {
1168
+ "idx_hook_calls_event": {
1169
+ "name": "idx_hook_calls_event",
1170
+ "columns": [
1171
+ "event"
1172
+ ],
1173
+ "isUnique": false
1174
+ },
1175
+ "idx_hook_calls_agent": {
1176
+ "name": "idx_hook_calls_agent",
1177
+ "columns": [
1178
+ "agent"
1179
+ ],
1180
+ "isUnique": false
1181
+ },
1182
+ "idx_hook_calls_created": {
1183
+ "name": "idx_hook_calls_created",
1184
+ "columns": [
1185
+ "created_at"
1186
+ ],
1187
+ "isUnique": false
1188
+ },
1189
+ "uq_hook_calls_dedupe_key": {
1190
+ "name": "uq_hook_calls_dedupe_key",
1191
+ "columns": [
1192
+ "dedupe_key"
1193
+ ],
1194
+ "isUnique": true
1195
+ }
1196
+ },
1197
+ "foreignKeys": {},
1198
+ "compositePrimaryKeys": {},
1199
+ "uniqueConstraints": {},
1200
+ "checkConstraints": {}
1201
+ },
1202
+ "implicit_signals": {
1203
+ "name": "implicit_signals",
1204
+ "columns": {
1205
+ "id": {
1206
+ "name": "id",
1207
+ "type": "text",
1208
+ "primaryKey": true,
1209
+ "notNull": true,
1210
+ "autoincrement": false
1211
+ },
1212
+ "memory_id": {
1213
+ "name": "memory_id",
1214
+ "type": "text",
1215
+ "primaryKey": false,
1216
+ "notNull": true,
1217
+ "autoincrement": false
1218
+ },
1219
+ "session_id": {
1220
+ "name": "session_id",
1221
+ "type": "text",
1222
+ "primaryKey": false,
1223
+ "notNull": true,
1224
+ "autoincrement": false
1225
+ },
1226
+ "signal_type": {
1227
+ "name": "signal_type",
1228
+ "type": "text",
1229
+ "primaryKey": false,
1230
+ "notNull": true,
1231
+ "autoincrement": false
1232
+ },
1233
+ "timestamp": {
1234
+ "name": "timestamp",
1235
+ "type": "text",
1236
+ "primaryKey": false,
1237
+ "notNull": true,
1238
+ "autoincrement": false
1239
+ },
1240
+ "context": {
1241
+ "name": "context",
1242
+ "type": "text",
1243
+ "primaryKey": false,
1244
+ "notNull": false,
1245
+ "autoincrement": false
1246
+ }
1247
+ },
1248
+ "indexes": {
1249
+ "idx_implicit_memory": {
1250
+ "name": "idx_implicit_memory",
1251
+ "columns": [
1252
+ "memory_id"
1253
+ ],
1254
+ "isUnique": false
1255
+ },
1256
+ "idx_implicit_session": {
1257
+ "name": "idx_implicit_session",
1258
+ "columns": [
1259
+ "session_id"
1260
+ ],
1261
+ "isUnique": false
1262
+ }
1263
+ },
1264
+ "foreignKeys": {
1265
+ "implicit_signals_memory_id_memories_id_fk": {
1266
+ "name": "implicit_signals_memory_id_memories_id_fk",
1267
+ "tableFrom": "implicit_signals",
1268
+ "tableTo": "memories",
1269
+ "columnsFrom": [
1270
+ "memory_id"
1271
+ ],
1272
+ "columnsTo": [
1273
+ "id"
1274
+ ],
1275
+ "onDelete": "no action",
1276
+ "onUpdate": "no action"
1277
+ }
1278
+ },
1279
+ "compositePrimaryKeys": {},
1280
+ "uniqueConstraints": {},
1281
+ "checkConstraints": {}
1282
+ },
1283
+ "llm_usage": {
1284
+ "name": "llm_usage",
1285
+ "columns": {
1286
+ "id": {
1287
+ "name": "id",
1288
+ "type": "text",
1289
+ "primaryKey": true,
1290
+ "notNull": true,
1291
+ "autoincrement": false
1292
+ },
1293
+ "provider": {
1294
+ "name": "provider",
1295
+ "type": "text",
1296
+ "primaryKey": false,
1297
+ "notNull": true,
1298
+ "autoincrement": false
1299
+ },
1300
+ "model": {
1301
+ "name": "model",
1302
+ "type": "text",
1303
+ "primaryKey": false,
1304
+ "notNull": true,
1305
+ "autoincrement": false
1306
+ },
1307
+ "task_kind": {
1308
+ "name": "task_kind",
1309
+ "type": "text",
1310
+ "primaryKey": false,
1311
+ "notNull": true,
1312
+ "autoincrement": false
1313
+ },
1314
+ "task_id": {
1315
+ "name": "task_id",
1316
+ "type": "text",
1317
+ "primaryKey": false,
1318
+ "notNull": false,
1319
+ "autoincrement": false
1320
+ },
1321
+ "repo": {
1322
+ "name": "repo",
1323
+ "type": "text",
1324
+ "primaryKey": false,
1325
+ "notNull": false,
1326
+ "autoincrement": false
1327
+ },
1328
+ "prompt_tokens": {
1329
+ "name": "prompt_tokens",
1330
+ "type": "integer",
1331
+ "primaryKey": false,
1332
+ "notNull": true,
1333
+ "autoincrement": false,
1334
+ "default": 0
1335
+ },
1336
+ "completion_tokens": {
1337
+ "name": "completion_tokens",
1338
+ "type": "integer",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "autoincrement": false,
1342
+ "default": 0
1343
+ },
1344
+ "total_tokens": {
1345
+ "name": "total_tokens",
1346
+ "type": "integer",
1347
+ "primaryKey": false,
1348
+ "notNull": true,
1349
+ "autoincrement": false,
1350
+ "default": 0
1351
+ },
1352
+ "cost_usd": {
1353
+ "name": "cost_usd",
1354
+ "type": "real",
1355
+ "primaryKey": false,
1356
+ "notNull": false,
1357
+ "autoincrement": false
1358
+ },
1359
+ "duration_ms": {
1360
+ "name": "duration_ms",
1361
+ "type": "integer",
1362
+ "primaryKey": false,
1363
+ "notNull": true,
1364
+ "autoincrement": false,
1365
+ "default": 0
1366
+ },
1367
+ "ok": {
1368
+ "name": "ok",
1369
+ "type": "integer",
1370
+ "primaryKey": false,
1371
+ "notNull": true,
1372
+ "autoincrement": false,
1373
+ "default": true
1374
+ },
1375
+ "error": {
1376
+ "name": "error",
1377
+ "type": "text",
1378
+ "primaryKey": false,
1379
+ "notNull": false,
1380
+ "autoincrement": false
1381
+ },
1382
+ "created_at": {
1383
+ "name": "created_at",
1384
+ "type": "text",
1385
+ "primaryKey": false,
1386
+ "notNull": true,
1387
+ "autoincrement": false
1388
+ }
1389
+ },
1390
+ "indexes": {
1391
+ "idx_llm_usage_created": {
1392
+ "name": "idx_llm_usage_created",
1393
+ "columns": [
1394
+ "created_at"
1395
+ ],
1396
+ "isUnique": false
1397
+ },
1398
+ "idx_llm_usage_provider_model": {
1399
+ "name": "idx_llm_usage_provider_model",
1400
+ "columns": [
1401
+ "provider",
1402
+ "model"
1403
+ ],
1404
+ "isUnique": false
1405
+ },
1406
+ "idx_llm_usage_task_kind": {
1407
+ "name": "idx_llm_usage_task_kind",
1408
+ "columns": [
1409
+ "task_kind"
1410
+ ],
1411
+ "isUnique": false
1412
+ },
1413
+ "idx_llm_usage_repo": {
1414
+ "name": "idx_llm_usage_repo",
1415
+ "columns": [
1416
+ "repo"
1417
+ ],
1418
+ "isUnique": false
1419
+ }
1420
+ },
1421
+ "foreignKeys": {},
1422
+ "compositePrimaryKeys": {},
1423
+ "uniqueConstraints": {},
1424
+ "checkConstraints": {}
1425
+ },
1426
+ "maintenance_cleanup_log": {
1427
+ "name": "maintenance_cleanup_log",
1428
+ "columns": {
1429
+ "id": {
1430
+ "name": "id",
1431
+ "type": "text",
1432
+ "primaryKey": true,
1433
+ "notNull": true,
1434
+ "autoincrement": false
1435
+ },
1436
+ "run_id": {
1437
+ "name": "run_id",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true,
1441
+ "autoincrement": false
1442
+ },
1443
+ "action": {
1444
+ "name": "action",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "memory_id": {
1451
+ "name": "memory_id",
1452
+ "type": "text",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "autoincrement": false
1456
+ },
1457
+ "related_memory_id": {
1458
+ "name": "related_memory_id",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": false,
1462
+ "autoincrement": false
1463
+ },
1464
+ "before_snapshot": {
1465
+ "name": "before_snapshot",
1466
+ "type": "text",
1467
+ "primaryKey": false,
1468
+ "notNull": false,
1469
+ "autoincrement": false
1470
+ },
1471
+ "after_snapshot": {
1472
+ "name": "after_snapshot",
1473
+ "type": "text",
1474
+ "primaryKey": false,
1475
+ "notNull": false,
1476
+ "autoincrement": false
1477
+ },
1478
+ "details": {
1479
+ "name": "details",
1480
+ "type": "text",
1481
+ "primaryKey": false,
1482
+ "notNull": true,
1483
+ "autoincrement": false,
1484
+ "default": "'{}'"
1485
+ },
1486
+ "reverted": {
1487
+ "name": "reverted",
1488
+ "type": "integer",
1489
+ "primaryKey": false,
1490
+ "notNull": true,
1491
+ "autoincrement": false,
1492
+ "default": false
1493
+ },
1494
+ "reverted_at": {
1495
+ "name": "reverted_at",
1496
+ "type": "text",
1497
+ "primaryKey": false,
1498
+ "notNull": false,
1499
+ "autoincrement": false
1500
+ },
1501
+ "created_at": {
1502
+ "name": "created_at",
1503
+ "type": "text",
1504
+ "primaryKey": false,
1505
+ "notNull": true,
1506
+ "autoincrement": false
1507
+ }
1508
+ },
1509
+ "indexes": {
1510
+ "idx_cleanup_log_run": {
1511
+ "name": "idx_cleanup_log_run",
1512
+ "columns": [
1513
+ "run_id"
1514
+ ],
1515
+ "isUnique": false
1516
+ },
1517
+ "idx_cleanup_log_memory": {
1518
+ "name": "idx_cleanup_log_memory",
1519
+ "columns": [
1520
+ "memory_id"
1521
+ ],
1522
+ "isUnique": false
1523
+ },
1524
+ "idx_cleanup_log_action": {
1525
+ "name": "idx_cleanup_log_action",
1526
+ "columns": [
1527
+ "action"
1528
+ ],
1529
+ "isUnique": false
1530
+ },
1531
+ "idx_cleanup_log_created": {
1532
+ "name": "idx_cleanup_log_created",
1533
+ "columns": [
1534
+ "created_at"
1535
+ ],
1536
+ "isUnique": false
1537
+ }
1538
+ },
1539
+ "foreignKeys": {},
1540
+ "compositePrimaryKeys": {},
1541
+ "uniqueConstraints": {},
1542
+ "checkConstraints": {}
1543
+ },
1544
+ "memories": {
1545
+ "name": "memories",
1546
+ "columns": {
1547
+ "id": {
1548
+ "name": "id",
1549
+ "type": "text",
1550
+ "primaryKey": true,
1551
+ "notNull": true,
1552
+ "autoincrement": false
1553
+ },
1554
+ "type": {
1555
+ "name": "type",
1556
+ "type": "text",
1557
+ "primaryKey": false,
1558
+ "notNull": true,
1559
+ "autoincrement": false
1560
+ },
1561
+ "text": {
1562
+ "name": "text",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": true,
1566
+ "autoincrement": false
1567
+ },
1568
+ "scope": {
1569
+ "name": "scope",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": true,
1573
+ "autoincrement": false
1574
+ },
1575
+ "path_scope": {
1576
+ "name": "path_scope",
1577
+ "type": "text",
1578
+ "primaryKey": false,
1579
+ "notNull": false,
1580
+ "autoincrement": false
1581
+ },
1582
+ "repo": {
1583
+ "name": "repo",
1584
+ "type": "text",
1585
+ "primaryKey": false,
1586
+ "notNull": false,
1587
+ "autoincrement": false
1588
+ },
1589
+ "status": {
1590
+ "name": "status",
1591
+ "type": "text",
1592
+ "primaryKey": false,
1593
+ "notNull": true,
1594
+ "autoincrement": false
1595
+ },
1596
+ "confidence": {
1597
+ "name": "confidence",
1598
+ "type": "real",
1599
+ "primaryKey": false,
1600
+ "notNull": true,
1601
+ "autoincrement": false,
1602
+ "default": 0
1603
+ },
1604
+ "source": {
1605
+ "name": "source",
1606
+ "type": "text",
1607
+ "primaryKey": false,
1608
+ "notNull": true,
1609
+ "autoincrement": false
1610
+ },
1611
+ "evidence": {
1612
+ "name": "evidence",
1613
+ "type": "text",
1614
+ "primaryKey": false,
1615
+ "notNull": true,
1616
+ "autoincrement": false,
1617
+ "default": "'[]'"
1618
+ },
1619
+ "capture_context": {
1620
+ "name": "capture_context",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": false,
1624
+ "autoincrement": false
1625
+ },
1626
+ "supersedes": {
1627
+ "name": "supersedes",
1628
+ "type": "text",
1629
+ "primaryKey": false,
1630
+ "notNull": false,
1631
+ "autoincrement": false
1632
+ },
1633
+ "dedupe_key": {
1634
+ "name": "dedupe_key",
1635
+ "type": "text",
1636
+ "primaryKey": false,
1637
+ "notNull": false,
1638
+ "autoincrement": false
1639
+ },
1640
+ "created_at": {
1641
+ "name": "created_at",
1642
+ "type": "text",
1643
+ "primaryKey": false,
1644
+ "notNull": true,
1645
+ "autoincrement": false
1646
+ },
1647
+ "updated_at": {
1648
+ "name": "updated_at",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": true,
1652
+ "autoincrement": false
1653
+ },
1654
+ "last_validated_at": {
1655
+ "name": "last_validated_at",
1656
+ "type": "text",
1657
+ "primaryKey": false,
1658
+ "notNull": false,
1659
+ "autoincrement": false
1660
+ },
1661
+ "last_injected_at": {
1662
+ "name": "last_injected_at",
1663
+ "type": "text",
1664
+ "primaryKey": false,
1665
+ "notNull": false,
1666
+ "autoincrement": false
1667
+ },
1668
+ "injection_count": {
1669
+ "name": "injection_count",
1670
+ "type": "integer",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "autoincrement": false,
1674
+ "default": 0
1675
+ },
1676
+ "override_count": {
1677
+ "name": "override_count",
1678
+ "type": "integer",
1679
+ "primaryKey": false,
1680
+ "notNull": true,
1681
+ "autoincrement": false,
1682
+ "default": 0
1683
+ },
1684
+ "repetition_count": {
1685
+ "name": "repetition_count",
1686
+ "type": "integer",
1687
+ "primaryKey": false,
1688
+ "notNull": true,
1689
+ "autoincrement": false,
1690
+ "default": 0
1691
+ },
1692
+ "team_id": {
1693
+ "name": "team_id",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": false,
1697
+ "autoincrement": false
1698
+ },
1699
+ "sync_version": {
1700
+ "name": "sync_version",
1701
+ "type": "integer",
1702
+ "primaryKey": false,
1703
+ "notNull": true,
1704
+ "autoincrement": false,
1705
+ "default": 0
1706
+ },
1707
+ "auto_inject": {
1708
+ "name": "auto_inject",
1709
+ "type": "integer",
1710
+ "primaryKey": false,
1711
+ "notNull": true,
1712
+ "autoincrement": false,
1713
+ "default": true
1714
+ }
1715
+ },
1716
+ "indexes": {
1717
+ "idx_memories_repo": {
1718
+ "name": "idx_memories_repo",
1719
+ "columns": [
1720
+ "repo"
1721
+ ],
1722
+ "isUnique": false
1723
+ },
1724
+ "idx_memories_status": {
1725
+ "name": "idx_memories_status",
1726
+ "columns": [
1727
+ "status"
1728
+ ],
1729
+ "isUnique": false
1730
+ },
1731
+ "idx_memories_repo_status": {
1732
+ "name": "idx_memories_repo_status",
1733
+ "columns": [
1734
+ "repo",
1735
+ "status"
1736
+ ],
1737
+ "isUnique": false
1738
+ },
1739
+ "idx_memories_team": {
1740
+ "name": "idx_memories_team",
1741
+ "columns": [
1742
+ "team_id"
1743
+ ],
1744
+ "isUnique": false
1745
+ },
1746
+ "uq_memories_dedupe_key": {
1747
+ "name": "uq_memories_dedupe_key",
1748
+ "columns": [
1749
+ "dedupe_key"
1750
+ ],
1751
+ "isUnique": true
1752
+ }
1753
+ },
1754
+ "foreignKeys": {},
1755
+ "compositePrimaryKeys": {},
1756
+ "uniqueConstraints": {},
1757
+ "checkConstraints": {}
1758
+ },
1759
+ "memory_embeddings": {
1760
+ "name": "memory_embeddings",
1761
+ "columns": {
1762
+ "memory_id": {
1763
+ "name": "memory_id",
1764
+ "type": "text",
1765
+ "primaryKey": true,
1766
+ "notNull": true,
1767
+ "autoincrement": false
1768
+ },
1769
+ "model": {
1770
+ "name": "model",
1771
+ "type": "text",
1772
+ "primaryKey": false,
1773
+ "notNull": true,
1774
+ "autoincrement": false
1775
+ },
1776
+ "embedding_dimensions": {
1777
+ "name": "embedding_dimensions",
1778
+ "type": "integer",
1779
+ "primaryKey": false,
1780
+ "notNull": true,
1781
+ "autoincrement": false
1782
+ },
1783
+ "index_dimensions": {
1784
+ "name": "index_dimensions",
1785
+ "type": "integer",
1786
+ "primaryKey": false,
1787
+ "notNull": true,
1788
+ "autoincrement": false
1789
+ },
1790
+ "version": {
1791
+ "name": "version",
1792
+ "type": "text",
1793
+ "primaryKey": false,
1794
+ "notNull": true,
1795
+ "autoincrement": false
1796
+ },
1797
+ "content_hash": {
1798
+ "name": "content_hash",
1799
+ "type": "text",
1800
+ "primaryKey": false,
1801
+ "notNull": true,
1802
+ "autoincrement": false
1803
+ },
1804
+ "updated_at": {
1805
+ "name": "updated_at",
1806
+ "type": "text",
1807
+ "primaryKey": false,
1808
+ "notNull": true,
1809
+ "autoincrement": false
1810
+ },
1811
+ "embedding": {
1812
+ "name": "embedding",
1813
+ "type": "blob",
1814
+ "primaryKey": false,
1815
+ "notNull": true,
1816
+ "autoincrement": false
1817
+ }
1818
+ },
1819
+ "indexes": {
1820
+ "idx_memory_embeddings_model": {
1821
+ "name": "idx_memory_embeddings_model",
1822
+ "columns": [
1823
+ "model"
1824
+ ],
1825
+ "isUnique": false
1826
+ },
1827
+ "idx_memory_embeddings_updated": {
1828
+ "name": "idx_memory_embeddings_updated",
1829
+ "columns": [
1830
+ "updated_at"
1831
+ ],
1832
+ "isUnique": false
1833
+ }
1834
+ },
1835
+ "foreignKeys": {
1836
+ "memory_embeddings_memory_id_memories_id_fk": {
1837
+ "name": "memory_embeddings_memory_id_memories_id_fk",
1838
+ "tableFrom": "memory_embeddings",
1839
+ "tableTo": "memories",
1840
+ "columnsFrom": [
1841
+ "memory_id"
1842
+ ],
1843
+ "columnsTo": [
1844
+ "id"
1845
+ ],
1846
+ "onDelete": "cascade",
1847
+ "onUpdate": "no action"
1848
+ }
1849
+ },
1850
+ "compositePrimaryKeys": {},
1851
+ "uniqueConstraints": {},
1852
+ "checkConstraints": {}
1853
+ },
1854
+ "memory_entities": {
1855
+ "name": "memory_entities",
1856
+ "columns": {
1857
+ "id": {
1858
+ "name": "id",
1859
+ "type": "text",
1860
+ "primaryKey": true,
1861
+ "notNull": true,
1862
+ "autoincrement": false
1863
+ },
1864
+ "memory_id": {
1865
+ "name": "memory_id",
1866
+ "type": "text",
1867
+ "primaryKey": false,
1868
+ "notNull": true,
1869
+ "autoincrement": false
1870
+ },
1871
+ "entity_id": {
1872
+ "name": "entity_id",
1873
+ "type": "text",
1874
+ "primaryKey": false,
1875
+ "notNull": true,
1876
+ "autoincrement": false
1877
+ },
1878
+ "source": {
1879
+ "name": "source",
1880
+ "type": "text",
1881
+ "primaryKey": false,
1882
+ "notNull": true,
1883
+ "autoincrement": false,
1884
+ "default": "'heuristic'"
1885
+ },
1886
+ "weight": {
1887
+ "name": "weight",
1888
+ "type": "real",
1889
+ "primaryKey": false,
1890
+ "notNull": true,
1891
+ "autoincrement": false,
1892
+ "default": 1
1893
+ },
1894
+ "created_at": {
1895
+ "name": "created_at",
1896
+ "type": "text",
1897
+ "primaryKey": false,
1898
+ "notNull": true,
1899
+ "autoincrement": false
1900
+ }
1901
+ },
1902
+ "indexes": {
1903
+ "idx_memory_entities_memory": {
1904
+ "name": "idx_memory_entities_memory",
1905
+ "columns": [
1906
+ "memory_id"
1907
+ ],
1908
+ "isUnique": false
1909
+ },
1910
+ "idx_memory_entities_entity": {
1911
+ "name": "idx_memory_entities_entity",
1912
+ "columns": [
1913
+ "entity_id"
1914
+ ],
1915
+ "isUnique": false
1916
+ }
1917
+ },
1918
+ "foreignKeys": {
1919
+ "memory_entities_memory_id_memories_id_fk": {
1920
+ "name": "memory_entities_memory_id_memories_id_fk",
1921
+ "tableFrom": "memory_entities",
1922
+ "tableTo": "memories",
1923
+ "columnsFrom": [
1924
+ "memory_id"
1925
+ ],
1926
+ "columnsTo": [
1927
+ "id"
1928
+ ],
1929
+ "onDelete": "no action",
1930
+ "onUpdate": "no action"
1931
+ },
1932
+ "memory_entities_entity_id_entities_id_fk": {
1933
+ "name": "memory_entities_entity_id_entities_id_fk",
1934
+ "tableFrom": "memory_entities",
1935
+ "tableTo": "entities",
1936
+ "columnsFrom": [
1937
+ "entity_id"
1938
+ ],
1939
+ "columnsTo": [
1940
+ "id"
1941
+ ],
1942
+ "onDelete": "no action",
1943
+ "onUpdate": "no action"
1944
+ }
1945
+ },
1946
+ "compositePrimaryKeys": {},
1947
+ "uniqueConstraints": {},
1948
+ "checkConstraints": {}
1949
+ },
1950
+ "memory_injections": {
1951
+ "name": "memory_injections",
1952
+ "columns": {
1953
+ "id": {
1954
+ "name": "id",
1955
+ "type": "text",
1956
+ "primaryKey": true,
1957
+ "notNull": true,
1958
+ "autoincrement": false
1959
+ },
1960
+ "memory_id": {
1961
+ "name": "memory_id",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": true,
1965
+ "autoincrement": false
1966
+ },
1967
+ "session_id": {
1968
+ "name": "session_id",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": true,
1972
+ "autoincrement": false
1973
+ },
1974
+ "repo": {
1975
+ "name": "repo",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": false,
1979
+ "autoincrement": false
1980
+ },
1981
+ "injected_at": {
1982
+ "name": "injected_at",
1983
+ "type": "text",
1984
+ "primaryKey": false,
1985
+ "notNull": true,
1986
+ "autoincrement": false
1987
+ },
1988
+ "outcome": {
1989
+ "name": "outcome",
1990
+ "type": "text",
1991
+ "primaryKey": false,
1992
+ "notNull": false,
1993
+ "autoincrement": false
1994
+ },
1995
+ "outcome_at": {
1996
+ "name": "outcome_at",
1997
+ "type": "text",
1998
+ "primaryKey": false,
1999
+ "notNull": false,
2000
+ "autoincrement": false
2001
+ }
2002
+ },
2003
+ "indexes": {
2004
+ "idx_memory_injections_memory": {
2005
+ "name": "idx_memory_injections_memory",
2006
+ "columns": [
2007
+ "memory_id"
2008
+ ],
2009
+ "isUnique": false
2010
+ },
2011
+ "idx_memory_injections_session": {
2012
+ "name": "idx_memory_injections_session",
2013
+ "columns": [
2014
+ "session_id"
2015
+ ],
2016
+ "isUnique": false
2017
+ },
2018
+ "uq_memory_injections_memory_session": {
2019
+ "name": "uq_memory_injections_memory_session",
2020
+ "columns": [
2021
+ "memory_id",
2022
+ "session_id"
2023
+ ],
2024
+ "isUnique": true
2025
+ }
2026
+ },
2027
+ "foreignKeys": {
2028
+ "memory_injections_memory_id_memories_id_fk": {
2029
+ "name": "memory_injections_memory_id_memories_id_fk",
2030
+ "tableFrom": "memory_injections",
2031
+ "tableTo": "memories",
2032
+ "columnsFrom": [
2033
+ "memory_id"
2034
+ ],
2035
+ "columnsTo": [
2036
+ "id"
2037
+ ],
2038
+ "onDelete": "cascade",
2039
+ "onUpdate": "no action"
2040
+ }
2041
+ },
2042
+ "compositePrimaryKeys": {},
2043
+ "uniqueConstraints": {},
2044
+ "checkConstraints": {}
2045
+ },
2046
+ "memory_maintenance_tasks": {
2047
+ "name": "memory_maintenance_tasks",
2048
+ "columns": {
2049
+ "id": {
2050
+ "name": "id",
2051
+ "type": "text",
2052
+ "primaryKey": true,
2053
+ "notNull": true,
2054
+ "autoincrement": false
2055
+ },
2056
+ "kind": {
2057
+ "name": "kind",
2058
+ "type": "text",
2059
+ "primaryKey": false,
2060
+ "notNull": true,
2061
+ "autoincrement": false
2062
+ },
2063
+ "status": {
2064
+ "name": "status",
2065
+ "type": "text",
2066
+ "primaryKey": false,
2067
+ "notNull": true,
2068
+ "autoincrement": false
2069
+ },
2070
+ "priority": {
2071
+ "name": "priority",
2072
+ "type": "integer",
2073
+ "primaryKey": false,
2074
+ "notNull": true,
2075
+ "autoincrement": false,
2076
+ "default": 0
2077
+ },
2078
+ "repo": {
2079
+ "name": "repo",
2080
+ "type": "text",
2081
+ "primaryKey": false,
2082
+ "notNull": false,
2083
+ "autoincrement": false
2084
+ },
2085
+ "target_key": {
2086
+ "name": "target_key",
2087
+ "type": "text",
2088
+ "primaryKey": false,
2089
+ "notNull": true,
2090
+ "autoincrement": false
2091
+ },
2092
+ "payload": {
2093
+ "name": "payload",
2094
+ "type": "text",
2095
+ "primaryKey": false,
2096
+ "notNull": true,
2097
+ "autoincrement": false
2098
+ },
2099
+ "result": {
2100
+ "name": "result",
2101
+ "type": "text",
2102
+ "primaryKey": false,
2103
+ "notNull": false,
2104
+ "autoincrement": false
2105
+ },
2106
+ "failure_reason": {
2107
+ "name": "failure_reason",
2108
+ "type": "text",
2109
+ "primaryKey": false,
2110
+ "notNull": false,
2111
+ "autoincrement": false
2112
+ },
2113
+ "claimed_by": {
2114
+ "name": "claimed_by",
2115
+ "type": "text",
2116
+ "primaryKey": false,
2117
+ "notNull": false,
2118
+ "autoincrement": false
2119
+ },
2120
+ "claimed_at": {
2121
+ "name": "claimed_at",
2122
+ "type": "text",
2123
+ "primaryKey": false,
2124
+ "notNull": false,
2125
+ "autoincrement": false
2126
+ },
2127
+ "claim_expires_at": {
2128
+ "name": "claim_expires_at",
2129
+ "type": "text",
2130
+ "primaryKey": false,
2131
+ "notNull": false,
2132
+ "autoincrement": false
2133
+ },
2134
+ "submitted_at": {
2135
+ "name": "submitted_at",
2136
+ "type": "text",
2137
+ "primaryKey": false,
2138
+ "notNull": false,
2139
+ "autoincrement": false
2140
+ },
2141
+ "completed_at": {
2142
+ "name": "completed_at",
2143
+ "type": "text",
2144
+ "primaryKey": false,
2145
+ "notNull": false,
2146
+ "autoincrement": false
2147
+ },
2148
+ "created_at": {
2149
+ "name": "created_at",
2150
+ "type": "text",
2151
+ "primaryKey": false,
2152
+ "notNull": true,
2153
+ "autoincrement": false
2154
+ },
2155
+ "attempts": {
2156
+ "name": "attempts",
2157
+ "type": "integer",
2158
+ "primaryKey": false,
2159
+ "notNull": true,
2160
+ "autoincrement": false,
2161
+ "default": 0
2162
+ },
2163
+ "max_attempts": {
2164
+ "name": "max_attempts",
2165
+ "type": "integer",
2166
+ "primaryKey": false,
2167
+ "notNull": true,
2168
+ "autoincrement": false,
2169
+ "default": 3
2170
+ }
2171
+ },
2172
+ "indexes": {
2173
+ "idx_mmt_status_priority": {
2174
+ "name": "idx_mmt_status_priority",
2175
+ "columns": [
2176
+ "status",
2177
+ "priority",
2178
+ "created_at"
2179
+ ],
2180
+ "isUnique": false
2181
+ },
2182
+ "idx_mmt_repo_status": {
2183
+ "name": "idx_mmt_repo_status",
2184
+ "columns": [
2185
+ "repo",
2186
+ "status"
2187
+ ],
2188
+ "isUnique": false
2189
+ },
2190
+ "idx_mmt_claim_expires": {
2191
+ "name": "idx_mmt_claim_expires",
2192
+ "columns": [
2193
+ "claim_expires_at"
2194
+ ],
2195
+ "isUnique": false
2196
+ },
2197
+ "idx_mmt_kind_target": {
2198
+ "name": "idx_mmt_kind_target",
2199
+ "columns": [
2200
+ "kind",
2201
+ "target_key"
2202
+ ],
2203
+ "isUnique": false
2204
+ }
2205
+ },
2206
+ "foreignKeys": {},
2207
+ "compositePrimaryKeys": {},
2208
+ "uniqueConstraints": {},
2209
+ "checkConstraints": {}
2210
+ },
2211
+ "policy_rules": {
2212
+ "name": "policy_rules",
2213
+ "columns": {
2214
+ "id": {
2215
+ "name": "id",
2216
+ "type": "text",
2217
+ "primaryKey": true,
2218
+ "notNull": true,
2219
+ "autoincrement": false
2220
+ },
2221
+ "org_id": {
2222
+ "name": "org_id",
2223
+ "type": "text",
2224
+ "primaryKey": false,
2225
+ "notNull": true,
2226
+ "autoincrement": false
2227
+ },
2228
+ "rule_type": {
2229
+ "name": "rule_type",
2230
+ "type": "text",
2231
+ "primaryKey": false,
2232
+ "notNull": true,
2233
+ "autoincrement": false
2234
+ },
2235
+ "config": {
2236
+ "name": "config",
2237
+ "type": "text",
2238
+ "primaryKey": false,
2239
+ "notNull": true,
2240
+ "autoincrement": false,
2241
+ "default": "'{}'"
2242
+ },
2243
+ "enabled": {
2244
+ "name": "enabled",
2245
+ "type": "integer",
2246
+ "primaryKey": false,
2247
+ "notNull": true,
2248
+ "autoincrement": false,
2249
+ "default": true
2250
+ },
2251
+ "created_at": {
2252
+ "name": "created_at",
2253
+ "type": "text",
2254
+ "primaryKey": false,
2255
+ "notNull": true,
2256
+ "autoincrement": false
2257
+ },
2258
+ "updated_at": {
2259
+ "name": "updated_at",
2260
+ "type": "text",
2261
+ "primaryKey": false,
2262
+ "notNull": true,
2263
+ "autoincrement": false
2264
+ }
2265
+ },
2266
+ "indexes": {
2267
+ "idx_policy_org": {
2268
+ "name": "idx_policy_org",
2269
+ "columns": [
2270
+ "org_id"
2271
+ ],
2272
+ "isUnique": false
2273
+ }
2274
+ },
2275
+ "foreignKeys": {},
2276
+ "compositePrimaryKeys": {},
2277
+ "uniqueConstraints": {},
2278
+ "checkConstraints": {}
2279
+ },
2280
+ "quality_snapshots": {
2281
+ "name": "quality_snapshots",
2282
+ "columns": {
2283
+ "id": {
2284
+ "name": "id",
2285
+ "type": "text",
2286
+ "primaryKey": true,
2287
+ "notNull": true,
2288
+ "autoincrement": false
2289
+ },
2290
+ "taken_at": {
2291
+ "name": "taken_at",
2292
+ "type": "text",
2293
+ "primaryKey": false,
2294
+ "notNull": true,
2295
+ "autoincrement": false
2296
+ },
2297
+ "window_start": {
2298
+ "name": "window_start",
2299
+ "type": "text",
2300
+ "primaryKey": false,
2301
+ "notNull": true,
2302
+ "autoincrement": false
2303
+ },
2304
+ "window_end": {
2305
+ "name": "window_end",
2306
+ "type": "text",
2307
+ "primaryKey": false,
2308
+ "notNull": true,
2309
+ "autoincrement": false
2310
+ },
2311
+ "injections_total": {
2312
+ "name": "injections_total",
2313
+ "type": "integer",
2314
+ "primaryKey": false,
2315
+ "notNull": true,
2316
+ "autoincrement": false
2317
+ },
2318
+ "injections_resolved": {
2319
+ "name": "injections_resolved",
2320
+ "type": "integer",
2321
+ "primaryKey": false,
2322
+ "notNull": true,
2323
+ "autoincrement": false
2324
+ },
2325
+ "injections_followed": {
2326
+ "name": "injections_followed",
2327
+ "type": "integer",
2328
+ "primaryKey": false,
2329
+ "notNull": true,
2330
+ "autoincrement": false
2331
+ },
2332
+ "injections_overridden": {
2333
+ "name": "injections_overridden",
2334
+ "type": "integer",
2335
+ "primaryKey": false,
2336
+ "notNull": true,
2337
+ "autoincrement": false
2338
+ },
2339
+ "injections_contradicted": {
2340
+ "name": "injections_contradicted",
2341
+ "type": "integer",
2342
+ "primaryKey": false,
2343
+ "notNull": true,
2344
+ "autoincrement": false
2345
+ },
2346
+ "injections_ignored": {
2347
+ "name": "injections_ignored",
2348
+ "type": "integer",
2349
+ "primaryKey": false,
2350
+ "notNull": true,
2351
+ "autoincrement": false
2352
+ },
2353
+ "followed_rate_resolved": {
2354
+ "name": "followed_rate_resolved",
2355
+ "type": "real",
2356
+ "primaryKey": false,
2357
+ "notNull": false,
2358
+ "autoincrement": false
2359
+ },
2360
+ "active_rule_count": {
2361
+ "name": "active_rule_count",
2362
+ "type": "integer",
2363
+ "primaryKey": false,
2364
+ "notNull": true,
2365
+ "autoincrement": false
2366
+ },
2367
+ "active_command_count": {
2368
+ "name": "active_command_count",
2369
+ "type": "integer",
2370
+ "primaryKey": false,
2371
+ "notNull": true,
2372
+ "autoincrement": false
2373
+ },
2374
+ "candidate_correction_count": {
2375
+ "name": "candidate_correction_count",
2376
+ "type": "integer",
2377
+ "primaryKey": false,
2378
+ "notNull": true,
2379
+ "autoincrement": false
2380
+ },
2381
+ "history_injections_total": {
2382
+ "name": "history_injections_total",
2383
+ "type": "integer",
2384
+ "primaryKey": false,
2385
+ "notNull": true,
2386
+ "autoincrement": false,
2387
+ "default": 0
2388
+ },
2389
+ "history_snippets_injected": {
2390
+ "name": "history_snippets_injected",
2391
+ "type": "integer",
2392
+ "primaryKey": false,
2393
+ "notNull": true,
2394
+ "autoincrement": false,
2395
+ "default": 0
2396
+ },
2397
+ "notes": {
2398
+ "name": "notes",
2399
+ "type": "text",
2400
+ "primaryKey": false,
2401
+ "notNull": false,
2402
+ "autoincrement": false
2403
+ }
2404
+ },
2405
+ "indexes": {
2406
+ "idx_quality_snapshots_taken": {
2407
+ "name": "idx_quality_snapshots_taken",
2408
+ "columns": [
2409
+ "taken_at"
2410
+ ],
2411
+ "isUnique": false
2412
+ }
2413
+ },
2414
+ "foreignKeys": {},
2415
+ "compositePrimaryKeys": {},
2416
+ "uniqueConstraints": {},
2417
+ "checkConstraints": {}
2418
+ },
2419
+ "sync_state": {
2420
+ "name": "sync_state",
2421
+ "columns": {
2422
+ "id": {
2423
+ "name": "id",
2424
+ "type": "text",
2425
+ "primaryKey": true,
2426
+ "notNull": true,
2427
+ "autoincrement": false
2428
+ },
2429
+ "remote_url": {
2430
+ "name": "remote_url",
2431
+ "type": "text",
2432
+ "primaryKey": false,
2433
+ "notNull": false,
2434
+ "autoincrement": false
2435
+ },
2436
+ "team_id": {
2437
+ "name": "team_id",
2438
+ "type": "text",
2439
+ "primaryKey": false,
2440
+ "notNull": false,
2441
+ "autoincrement": false
2442
+ },
2443
+ "last_push_at": {
2444
+ "name": "last_push_at",
2445
+ "type": "text",
2446
+ "primaryKey": false,
2447
+ "notNull": false,
2448
+ "autoincrement": false
2449
+ },
2450
+ "last_pull_at": {
2451
+ "name": "last_pull_at",
2452
+ "type": "text",
2453
+ "primaryKey": false,
2454
+ "notNull": false,
2455
+ "autoincrement": false
2456
+ },
2457
+ "last_push_version": {
2458
+ "name": "last_push_version",
2459
+ "type": "integer",
2460
+ "primaryKey": false,
2461
+ "notNull": true,
2462
+ "autoincrement": false,
2463
+ "default": 0
2464
+ },
2465
+ "last_pull_version": {
2466
+ "name": "last_pull_version",
2467
+ "type": "integer",
2468
+ "primaryKey": false,
2469
+ "notNull": true,
2470
+ "autoincrement": false,
2471
+ "default": 0
2472
+ }
2473
+ },
2474
+ "indexes": {},
2475
+ "foreignKeys": {},
2476
+ "compositePrimaryKeys": {},
2477
+ "uniqueConstraints": {},
2478
+ "checkConstraints": {}
2479
+ }
2480
+ },
2481
+ "views": {},
2482
+ "enums": {},
2483
+ "_meta": {
2484
+ "schemas": {},
2485
+ "tables": {},
2486
+ "columns": {}
2487
+ },
2488
+ "internal": {
2489
+ "indexes": {}
2490
+ }
2491
+ }