@edihasaj/recall 0.5.2

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 (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +409 -0
  3. package/dist/chunk-4CV4JOE5.js +27 -0
  4. package/dist/chunk-4CV4JOE5.js.map +1 -0
  5. package/dist/chunk-A5UIRZU6.js +469 -0
  6. package/dist/chunk-A5UIRZU6.js.map +1 -0
  7. package/dist/chunk-AYHFPCGY.js +964 -0
  8. package/dist/chunk-AYHFPCGY.js.map +1 -0
  9. package/dist/chunk-DNFKAHS6.js +204 -0
  10. package/dist/chunk-DNFKAHS6.js.map +1 -0
  11. package/dist/chunk-GC5XMBG4.js +551 -0
  12. package/dist/chunk-GC5XMBG4.js.map +1 -0
  13. package/dist/chunk-IILLSHLM.js +3021 -0
  14. package/dist/chunk-IILLSHLM.js.map +1 -0
  15. package/dist/chunk-LVQW6WHK.js +146 -0
  16. package/dist/chunk-LVQW6WHK.js.map +1 -0
  17. package/dist/chunk-LZ6PMQRX.js +955 -0
  18. package/dist/chunk-LZ6PMQRX.js.map +1 -0
  19. package/dist/chunk-PC43MBX5.js +2960 -0
  20. package/dist/chunk-PC43MBX5.js.map +1 -0
  21. package/dist/chunk-VEPXEHRZ.js +1763 -0
  22. package/dist/chunk-VEPXEHRZ.js.map +1 -0
  23. package/dist/cleanup-TVOX2S2S.js +28 -0
  24. package/dist/cleanup-TVOX2S2S.js.map +1 -0
  25. package/dist/cli.js +3425 -0
  26. package/dist/cli.js.map +1 -0
  27. package/dist/daemon.js +1298 -0
  28. package/dist/daemon.js.map +1 -0
  29. package/dist/dispatcher-UGMU6THT.js +15 -0
  30. package/dist/dispatcher-UGMU6THT.js.map +1 -0
  31. package/dist/keychain-5QG52ANO.js +22 -0
  32. package/dist/keychain-5QG52ANO.js.map +1 -0
  33. package/dist/mcp.js +21 -0
  34. package/dist/mcp.js.map +1 -0
  35. package/dist/quality-Z7LPMMBC.js +17 -0
  36. package/dist/quality-Z7LPMMBC.js.map +1 -0
  37. package/dist/sync-server.js +225 -0
  38. package/dist/sync-server.js.map +1 -0
  39. package/dist/tasks-UOLSPXJQ.js +61 -0
  40. package/dist/tasks-UOLSPXJQ.js.map +1 -0
  41. package/dist/usage-CY3V72YN.js +101 -0
  42. package/dist/usage-CY3V72YN.js.map +1 -0
  43. package/drizzle/0000_initial_create.sql +240 -0
  44. package/drizzle/0001_rich_liz_osborn.sql +21 -0
  45. package/drizzle/0002_unknown_spot.sql +18 -0
  46. package/drizzle/0003_red_wendigo.sql +19 -0
  47. package/drizzle/0004_early_carlie_cooper.sql +1 -0
  48. package/drizzle/0005_simple_emma_frost.sql +96 -0
  49. package/drizzle/0006_keen_mongoose.sql +2 -0
  50. package/drizzle/0007_flawless_maximus.sql +15 -0
  51. package/drizzle/meta/0000_snapshot.json +1630 -0
  52. package/drizzle/meta/0001_snapshot.json +1773 -0
  53. package/drizzle/meta/0002_snapshot.json +1891 -0
  54. package/drizzle/meta/0003_snapshot.json +2014 -0
  55. package/drizzle/meta/0004_snapshot.json +2022 -0
  56. package/drizzle/meta/0005_snapshot.json +2064 -0
  57. package/drizzle/meta/0006_snapshot.json +2078 -0
  58. package/drizzle/meta/0007_snapshot.json +2183 -0
  59. package/drizzle/meta/_journal.json +62 -0
  60. package/package.json +64 -0
  61. package/scripts/recall-claude +7 -0
  62. package/scripts/recall-codex +7 -0
  63. package/scripts/recall-session +71 -0
@@ -0,0 +1,1773 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "2c1361df-11cc-4789-8926-bc25e1bc352a",
5
+ "prevId": "ab7b8233-b011-44b0-926e-f7efd075dc6e",
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
+ "request": {
61
+ "name": "request",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "autoincrement": false,
66
+ "default": "'{}'"
67
+ },
68
+ "result": {
69
+ "name": "result",
70
+ "type": "text",
71
+ "primaryKey": false,
72
+ "notNull": true,
73
+ "autoincrement": false,
74
+ "default": "'{}'"
75
+ },
76
+ "created_at": {
77
+ "name": "created_at",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": true,
81
+ "autoincrement": false
82
+ }
83
+ },
84
+ "indexes": {
85
+ "idx_activity_session": {
86
+ "name": "idx_activity_session",
87
+ "columns": [
88
+ "session_id"
89
+ ],
90
+ "isUnique": false
91
+ },
92
+ "idx_activity_repo": {
93
+ "name": "idx_activity_repo",
94
+ "columns": [
95
+ "repo"
96
+ ],
97
+ "isUnique": false
98
+ },
99
+ "idx_activity_event_type": {
100
+ "name": "idx_activity_event_type",
101
+ "columns": [
102
+ "event_type"
103
+ ],
104
+ "isUnique": false
105
+ },
106
+ "idx_activity_created": {
107
+ "name": "idx_activity_created",
108
+ "columns": [
109
+ "created_at"
110
+ ],
111
+ "isUnique": false
112
+ }
113
+ },
114
+ "foreignKeys": {},
115
+ "compositePrimaryKeys": {},
116
+ "uniqueConstraints": {},
117
+ "checkConstraints": {}
118
+ },
119
+ "approval_requests": {
120
+ "name": "approval_requests",
121
+ "columns": {
122
+ "id": {
123
+ "name": "id",
124
+ "type": "text",
125
+ "primaryKey": true,
126
+ "notNull": true,
127
+ "autoincrement": false
128
+ },
129
+ "memory_id": {
130
+ "name": "memory_id",
131
+ "type": "text",
132
+ "primaryKey": false,
133
+ "notNull": true,
134
+ "autoincrement": false
135
+ },
136
+ "org_id": {
137
+ "name": "org_id",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true,
141
+ "autoincrement": false
142
+ },
143
+ "requested_by": {
144
+ "name": "requested_by",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false
149
+ },
150
+ "status": {
151
+ "name": "status",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": true,
155
+ "autoincrement": false,
156
+ "default": "'pending'"
157
+ },
158
+ "reviewed_by": {
159
+ "name": "reviewed_by",
160
+ "type": "text",
161
+ "primaryKey": false,
162
+ "notNull": false,
163
+ "autoincrement": false
164
+ },
165
+ "reason": {
166
+ "name": "reason",
167
+ "type": "text",
168
+ "primaryKey": false,
169
+ "notNull": false,
170
+ "autoincrement": false
171
+ },
172
+ "created_at": {
173
+ "name": "created_at",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": true,
177
+ "autoincrement": false
178
+ },
179
+ "resolved_at": {
180
+ "name": "resolved_at",
181
+ "type": "text",
182
+ "primaryKey": false,
183
+ "notNull": false,
184
+ "autoincrement": false
185
+ }
186
+ },
187
+ "indexes": {
188
+ "idx_approval_org": {
189
+ "name": "idx_approval_org",
190
+ "columns": [
191
+ "org_id"
192
+ ],
193
+ "isUnique": false
194
+ },
195
+ "idx_approval_status": {
196
+ "name": "idx_approval_status",
197
+ "columns": [
198
+ "status"
199
+ ],
200
+ "isUnique": false
201
+ }
202
+ },
203
+ "foreignKeys": {
204
+ "approval_requests_memory_id_memories_id_fk": {
205
+ "name": "approval_requests_memory_id_memories_id_fk",
206
+ "tableFrom": "approval_requests",
207
+ "tableTo": "memories",
208
+ "columnsFrom": [
209
+ "memory_id"
210
+ ],
211
+ "columnsTo": [
212
+ "id"
213
+ ],
214
+ "onDelete": "no action",
215
+ "onUpdate": "no action"
216
+ }
217
+ },
218
+ "compositePrimaryKeys": {},
219
+ "uniqueConstraints": {},
220
+ "checkConstraints": {}
221
+ },
222
+ "audit_trail": {
223
+ "name": "audit_trail",
224
+ "columns": {
225
+ "id": {
226
+ "name": "id",
227
+ "type": "text",
228
+ "primaryKey": true,
229
+ "notNull": true,
230
+ "autoincrement": false
231
+ },
232
+ "memory_id": {
233
+ "name": "memory_id",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": true,
237
+ "autoincrement": false
238
+ },
239
+ "action": {
240
+ "name": "action",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ },
246
+ "actor": {
247
+ "name": "actor",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true,
251
+ "autoincrement": false
252
+ },
253
+ "before_snapshot": {
254
+ "name": "before_snapshot",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": false,
258
+ "autoincrement": false
259
+ },
260
+ "after_snapshot": {
261
+ "name": "after_snapshot",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": false,
265
+ "autoincrement": false
266
+ },
267
+ "reason": {
268
+ "name": "reason",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": false,
272
+ "autoincrement": false
273
+ },
274
+ "timestamp": {
275
+ "name": "timestamp",
276
+ "type": "text",
277
+ "primaryKey": false,
278
+ "notNull": true,
279
+ "autoincrement": false
280
+ }
281
+ },
282
+ "indexes": {
283
+ "idx_audit_memory": {
284
+ "name": "idx_audit_memory",
285
+ "columns": [
286
+ "memory_id"
287
+ ],
288
+ "isUnique": false
289
+ },
290
+ "idx_audit_timestamp": {
291
+ "name": "idx_audit_timestamp",
292
+ "columns": [
293
+ "timestamp"
294
+ ],
295
+ "isUnique": false
296
+ }
297
+ },
298
+ "foreignKeys": {},
299
+ "compositePrimaryKeys": {},
300
+ "uniqueConstraints": {},
301
+ "checkConstraints": {}
302
+ },
303
+ "contradictions": {
304
+ "name": "contradictions",
305
+ "columns": {
306
+ "id": {
307
+ "name": "id",
308
+ "type": "text",
309
+ "primaryKey": true,
310
+ "notNull": true,
311
+ "autoincrement": false
312
+ },
313
+ "memory_a_id": {
314
+ "name": "memory_a_id",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": true,
318
+ "autoincrement": false
319
+ },
320
+ "memory_b_id": {
321
+ "name": "memory_b_id",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": true,
325
+ "autoincrement": false
326
+ },
327
+ "contradiction_type": {
328
+ "name": "contradiction_type",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": true,
332
+ "autoincrement": false
333
+ },
334
+ "severity": {
335
+ "name": "severity",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "autoincrement": false
340
+ },
341
+ "description": {
342
+ "name": "description",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "resolved": {
349
+ "name": "resolved",
350
+ "type": "integer",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false,
354
+ "default": false
355
+ },
356
+ "resolution": {
357
+ "name": "resolution",
358
+ "type": "text",
359
+ "primaryKey": false,
360
+ "notNull": false,
361
+ "autoincrement": false
362
+ },
363
+ "detected_at": {
364
+ "name": "detected_at",
365
+ "type": "text",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "autoincrement": false
369
+ },
370
+ "resolved_at": {
371
+ "name": "resolved_at",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": false,
375
+ "autoincrement": false
376
+ }
377
+ },
378
+ "indexes": {
379
+ "idx_contradictions_resolved": {
380
+ "name": "idx_contradictions_resolved",
381
+ "columns": [
382
+ "resolved"
383
+ ],
384
+ "isUnique": false
385
+ }
386
+ },
387
+ "foreignKeys": {
388
+ "contradictions_memory_a_id_memories_id_fk": {
389
+ "name": "contradictions_memory_a_id_memories_id_fk",
390
+ "tableFrom": "contradictions",
391
+ "tableTo": "memories",
392
+ "columnsFrom": [
393
+ "memory_a_id"
394
+ ],
395
+ "columnsTo": [
396
+ "id"
397
+ ],
398
+ "onDelete": "no action",
399
+ "onUpdate": "no action"
400
+ },
401
+ "contradictions_memory_b_id_memories_id_fk": {
402
+ "name": "contradictions_memory_b_id_memories_id_fk",
403
+ "tableFrom": "contradictions",
404
+ "tableTo": "memories",
405
+ "columnsFrom": [
406
+ "memory_b_id"
407
+ ],
408
+ "columnsTo": [
409
+ "id"
410
+ ],
411
+ "onDelete": "no action",
412
+ "onUpdate": "no action"
413
+ }
414
+ },
415
+ "compositePrimaryKeys": {},
416
+ "uniqueConstraints": {},
417
+ "checkConstraints": {}
418
+ },
419
+ "eval_sessions": {
420
+ "name": "eval_sessions",
421
+ "columns": {
422
+ "id": {
423
+ "name": "id",
424
+ "type": "text",
425
+ "primaryKey": true,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ },
429
+ "repo": {
430
+ "name": "repo",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "autoincrement": false
435
+ },
436
+ "started_at": {
437
+ "name": "started_at",
438
+ "type": "text",
439
+ "primaryKey": false,
440
+ "notNull": true,
441
+ "autoincrement": false
442
+ },
443
+ "ended_at": {
444
+ "name": "ended_at",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": false,
448
+ "autoincrement": false
449
+ },
450
+ "memories_injected": {
451
+ "name": "memories_injected",
452
+ "type": "integer",
453
+ "primaryKey": false,
454
+ "notNull": true,
455
+ "autoincrement": false,
456
+ "default": 0
457
+ },
458
+ "memories_followed": {
459
+ "name": "memories_followed",
460
+ "type": "integer",
461
+ "primaryKey": false,
462
+ "notNull": true,
463
+ "autoincrement": false,
464
+ "default": 0
465
+ },
466
+ "memories_overridden": {
467
+ "name": "memories_overridden",
468
+ "type": "integer",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false,
472
+ "default": 0
473
+ },
474
+ "user_corrections": {
475
+ "name": "user_corrections",
476
+ "type": "integer",
477
+ "primaryKey": false,
478
+ "notNull": true,
479
+ "autoincrement": false,
480
+ "default": 0
481
+ },
482
+ "test_passes": {
483
+ "name": "test_passes",
484
+ "type": "integer",
485
+ "primaryKey": false,
486
+ "notNull": true,
487
+ "autoincrement": false,
488
+ "default": 0
489
+ },
490
+ "test_failures": {
491
+ "name": "test_failures",
492
+ "type": "integer",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false,
496
+ "default": 0
497
+ }
498
+ },
499
+ "indexes": {
500
+ "idx_eval_repo": {
501
+ "name": "idx_eval_repo",
502
+ "columns": [
503
+ "repo"
504
+ ],
505
+ "isUnique": false
506
+ }
507
+ },
508
+ "foreignKeys": {},
509
+ "compositePrimaryKeys": {},
510
+ "uniqueConstraints": {},
511
+ "checkConstraints": {}
512
+ },
513
+ "feedback_events": {
514
+ "name": "feedback_events",
515
+ "columns": {
516
+ "id": {
517
+ "name": "id",
518
+ "type": "text",
519
+ "primaryKey": true,
520
+ "notNull": true,
521
+ "autoincrement": false
522
+ },
523
+ "memory_id": {
524
+ "name": "memory_id",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "autoincrement": false
529
+ },
530
+ "session_id": {
531
+ "name": "session_id",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": true,
535
+ "autoincrement": false
536
+ },
537
+ "injected": {
538
+ "name": "injected",
539
+ "type": "integer",
540
+ "primaryKey": false,
541
+ "notNull": true,
542
+ "autoincrement": false
543
+ },
544
+ "outcome": {
545
+ "name": "outcome",
546
+ "type": "text",
547
+ "primaryKey": false,
548
+ "notNull": true,
549
+ "autoincrement": false
550
+ },
551
+ "timestamp": {
552
+ "name": "timestamp",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ }
558
+ },
559
+ "indexes": {
560
+ "idx_feedback_memory": {
561
+ "name": "idx_feedback_memory",
562
+ "columns": [
563
+ "memory_id"
564
+ ],
565
+ "isUnique": false
566
+ },
567
+ "idx_feedback_session": {
568
+ "name": "idx_feedback_session",
569
+ "columns": [
570
+ "session_id"
571
+ ],
572
+ "isUnique": false
573
+ }
574
+ },
575
+ "foreignKeys": {
576
+ "feedback_events_memory_id_memories_id_fk": {
577
+ "name": "feedback_events_memory_id_memories_id_fk",
578
+ "tableFrom": "feedback_events",
579
+ "tableTo": "memories",
580
+ "columnsFrom": [
581
+ "memory_id"
582
+ ],
583
+ "columnsTo": [
584
+ "id"
585
+ ],
586
+ "onDelete": "no action",
587
+ "onUpdate": "no action"
588
+ }
589
+ },
590
+ "compositePrimaryKeys": {},
591
+ "uniqueConstraints": {},
592
+ "checkConstraints": {}
593
+ },
594
+ "history_snippet_embeddings": {
595
+ "name": "history_snippet_embeddings",
596
+ "columns": {
597
+ "snippet_id": {
598
+ "name": "snippet_id",
599
+ "type": "text",
600
+ "primaryKey": true,
601
+ "notNull": true,
602
+ "autoincrement": false
603
+ },
604
+ "model": {
605
+ "name": "model",
606
+ "type": "text",
607
+ "primaryKey": false,
608
+ "notNull": true,
609
+ "autoincrement": false
610
+ },
611
+ "embedding_dimensions": {
612
+ "name": "embedding_dimensions",
613
+ "type": "integer",
614
+ "primaryKey": false,
615
+ "notNull": true,
616
+ "autoincrement": false
617
+ },
618
+ "index_dimensions": {
619
+ "name": "index_dimensions",
620
+ "type": "integer",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "autoincrement": false
624
+ },
625
+ "version": {
626
+ "name": "version",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "autoincrement": false
631
+ },
632
+ "content_hash": {
633
+ "name": "content_hash",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": true,
637
+ "autoincrement": false
638
+ },
639
+ "updated_at": {
640
+ "name": "updated_at",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": true,
644
+ "autoincrement": false
645
+ },
646
+ "embedding": {
647
+ "name": "embedding",
648
+ "type": "blob",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ }
653
+ },
654
+ "indexes": {
655
+ "idx_history_embeddings_model": {
656
+ "name": "idx_history_embeddings_model",
657
+ "columns": [
658
+ "model"
659
+ ],
660
+ "isUnique": false
661
+ },
662
+ "idx_history_embeddings_updated": {
663
+ "name": "idx_history_embeddings_updated",
664
+ "columns": [
665
+ "updated_at"
666
+ ],
667
+ "isUnique": false
668
+ }
669
+ },
670
+ "foreignKeys": {
671
+ "history_snippet_embeddings_snippet_id_history_snippets_id_fk": {
672
+ "name": "history_snippet_embeddings_snippet_id_history_snippets_id_fk",
673
+ "tableFrom": "history_snippet_embeddings",
674
+ "tableTo": "history_snippets",
675
+ "columnsFrom": [
676
+ "snippet_id"
677
+ ],
678
+ "columnsTo": [
679
+ "id"
680
+ ],
681
+ "onDelete": "cascade",
682
+ "onUpdate": "no action"
683
+ }
684
+ },
685
+ "compositePrimaryKeys": {},
686
+ "uniqueConstraints": {},
687
+ "checkConstraints": {}
688
+ },
689
+ "history_snippets": {
690
+ "name": "history_snippets",
691
+ "columns": {
692
+ "id": {
693
+ "name": "id",
694
+ "type": "text",
695
+ "primaryKey": true,
696
+ "notNull": true,
697
+ "autoincrement": false
698
+ },
699
+ "repo": {
700
+ "name": "repo",
701
+ "type": "text",
702
+ "primaryKey": false,
703
+ "notNull": false,
704
+ "autoincrement": false
705
+ },
706
+ "session_id": {
707
+ "name": "session_id",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": false,
711
+ "autoincrement": false
712
+ },
713
+ "kind": {
714
+ "name": "kind",
715
+ "type": "text",
716
+ "primaryKey": false,
717
+ "notNull": true,
718
+ "autoincrement": false
719
+ },
720
+ "text": {
721
+ "name": "text",
722
+ "type": "text",
723
+ "primaryKey": false,
724
+ "notNull": true,
725
+ "autoincrement": false
726
+ },
727
+ "source_activity_ids": {
728
+ "name": "source_activity_ids",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": true,
732
+ "autoincrement": false,
733
+ "default": "'[]'"
734
+ },
735
+ "created_at": {
736
+ "name": "created_at",
737
+ "type": "text",
738
+ "primaryKey": false,
739
+ "notNull": true,
740
+ "autoincrement": false
741
+ },
742
+ "updated_at": {
743
+ "name": "updated_at",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": true,
747
+ "autoincrement": false
748
+ }
749
+ },
750
+ "indexes": {
751
+ "idx_history_repo": {
752
+ "name": "idx_history_repo",
753
+ "columns": [
754
+ "repo"
755
+ ],
756
+ "isUnique": false
757
+ },
758
+ "idx_history_session": {
759
+ "name": "idx_history_session",
760
+ "columns": [
761
+ "session_id"
762
+ ],
763
+ "isUnique": false
764
+ },
765
+ "idx_history_kind": {
766
+ "name": "idx_history_kind",
767
+ "columns": [
768
+ "kind"
769
+ ],
770
+ "isUnique": false
771
+ },
772
+ "idx_history_created": {
773
+ "name": "idx_history_created",
774
+ "columns": [
775
+ "created_at"
776
+ ],
777
+ "isUnique": false
778
+ }
779
+ },
780
+ "foreignKeys": {},
781
+ "compositePrimaryKeys": {},
782
+ "uniqueConstraints": {},
783
+ "checkConstraints": {}
784
+ },
785
+ "hook_calls": {
786
+ "name": "hook_calls",
787
+ "columns": {
788
+ "id": {
789
+ "name": "id",
790
+ "type": "text",
791
+ "primaryKey": true,
792
+ "notNull": true,
793
+ "autoincrement": false
794
+ },
795
+ "event": {
796
+ "name": "event",
797
+ "type": "text",
798
+ "primaryKey": false,
799
+ "notNull": true,
800
+ "autoincrement": false
801
+ },
802
+ "agent": {
803
+ "name": "agent",
804
+ "type": "text",
805
+ "primaryKey": false,
806
+ "notNull": true,
807
+ "autoincrement": false
808
+ },
809
+ "duration_ms": {
810
+ "name": "duration_ms",
811
+ "type": "integer",
812
+ "primaryKey": false,
813
+ "notNull": true,
814
+ "autoincrement": false
815
+ },
816
+ "ok": {
817
+ "name": "ok",
818
+ "type": "integer",
819
+ "primaryKey": false,
820
+ "notNull": true,
821
+ "autoincrement": false
822
+ },
823
+ "created_at": {
824
+ "name": "created_at",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "autoincrement": false
829
+ }
830
+ },
831
+ "indexes": {
832
+ "idx_hook_calls_event": {
833
+ "name": "idx_hook_calls_event",
834
+ "columns": [
835
+ "event"
836
+ ],
837
+ "isUnique": false
838
+ },
839
+ "idx_hook_calls_agent": {
840
+ "name": "idx_hook_calls_agent",
841
+ "columns": [
842
+ "agent"
843
+ ],
844
+ "isUnique": false
845
+ },
846
+ "idx_hook_calls_created": {
847
+ "name": "idx_hook_calls_created",
848
+ "columns": [
849
+ "created_at"
850
+ ],
851
+ "isUnique": false
852
+ }
853
+ },
854
+ "foreignKeys": {},
855
+ "compositePrimaryKeys": {},
856
+ "uniqueConstraints": {},
857
+ "checkConstraints": {}
858
+ },
859
+ "implicit_signals": {
860
+ "name": "implicit_signals",
861
+ "columns": {
862
+ "id": {
863
+ "name": "id",
864
+ "type": "text",
865
+ "primaryKey": true,
866
+ "notNull": true,
867
+ "autoincrement": false
868
+ },
869
+ "memory_id": {
870
+ "name": "memory_id",
871
+ "type": "text",
872
+ "primaryKey": false,
873
+ "notNull": true,
874
+ "autoincrement": false
875
+ },
876
+ "session_id": {
877
+ "name": "session_id",
878
+ "type": "text",
879
+ "primaryKey": false,
880
+ "notNull": true,
881
+ "autoincrement": false
882
+ },
883
+ "signal_type": {
884
+ "name": "signal_type",
885
+ "type": "text",
886
+ "primaryKey": false,
887
+ "notNull": true,
888
+ "autoincrement": false
889
+ },
890
+ "timestamp": {
891
+ "name": "timestamp",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true,
895
+ "autoincrement": false
896
+ },
897
+ "context": {
898
+ "name": "context",
899
+ "type": "text",
900
+ "primaryKey": false,
901
+ "notNull": false,
902
+ "autoincrement": false
903
+ }
904
+ },
905
+ "indexes": {
906
+ "idx_implicit_memory": {
907
+ "name": "idx_implicit_memory",
908
+ "columns": [
909
+ "memory_id"
910
+ ],
911
+ "isUnique": false
912
+ },
913
+ "idx_implicit_session": {
914
+ "name": "idx_implicit_session",
915
+ "columns": [
916
+ "session_id"
917
+ ],
918
+ "isUnique": false
919
+ }
920
+ },
921
+ "foreignKeys": {
922
+ "implicit_signals_memory_id_memories_id_fk": {
923
+ "name": "implicit_signals_memory_id_memories_id_fk",
924
+ "tableFrom": "implicit_signals",
925
+ "tableTo": "memories",
926
+ "columnsFrom": [
927
+ "memory_id"
928
+ ],
929
+ "columnsTo": [
930
+ "id"
931
+ ],
932
+ "onDelete": "no action",
933
+ "onUpdate": "no action"
934
+ }
935
+ },
936
+ "compositePrimaryKeys": {},
937
+ "uniqueConstraints": {},
938
+ "checkConstraints": {}
939
+ },
940
+ "llm_usage": {
941
+ "name": "llm_usage",
942
+ "columns": {
943
+ "id": {
944
+ "name": "id",
945
+ "type": "text",
946
+ "primaryKey": true,
947
+ "notNull": true,
948
+ "autoincrement": false
949
+ },
950
+ "provider": {
951
+ "name": "provider",
952
+ "type": "text",
953
+ "primaryKey": false,
954
+ "notNull": true,
955
+ "autoincrement": false
956
+ },
957
+ "model": {
958
+ "name": "model",
959
+ "type": "text",
960
+ "primaryKey": false,
961
+ "notNull": true,
962
+ "autoincrement": false
963
+ },
964
+ "task_kind": {
965
+ "name": "task_kind",
966
+ "type": "text",
967
+ "primaryKey": false,
968
+ "notNull": true,
969
+ "autoincrement": false
970
+ },
971
+ "task_id": {
972
+ "name": "task_id",
973
+ "type": "text",
974
+ "primaryKey": false,
975
+ "notNull": false,
976
+ "autoincrement": false
977
+ },
978
+ "repo": {
979
+ "name": "repo",
980
+ "type": "text",
981
+ "primaryKey": false,
982
+ "notNull": false,
983
+ "autoincrement": false
984
+ },
985
+ "prompt_tokens": {
986
+ "name": "prompt_tokens",
987
+ "type": "integer",
988
+ "primaryKey": false,
989
+ "notNull": true,
990
+ "autoincrement": false,
991
+ "default": 0
992
+ },
993
+ "completion_tokens": {
994
+ "name": "completion_tokens",
995
+ "type": "integer",
996
+ "primaryKey": false,
997
+ "notNull": true,
998
+ "autoincrement": false,
999
+ "default": 0
1000
+ },
1001
+ "total_tokens": {
1002
+ "name": "total_tokens",
1003
+ "type": "integer",
1004
+ "primaryKey": false,
1005
+ "notNull": true,
1006
+ "autoincrement": false,
1007
+ "default": 0
1008
+ },
1009
+ "cost_usd": {
1010
+ "name": "cost_usd",
1011
+ "type": "real",
1012
+ "primaryKey": false,
1013
+ "notNull": false,
1014
+ "autoincrement": false
1015
+ },
1016
+ "duration_ms": {
1017
+ "name": "duration_ms",
1018
+ "type": "integer",
1019
+ "primaryKey": false,
1020
+ "notNull": true,
1021
+ "autoincrement": false,
1022
+ "default": 0
1023
+ },
1024
+ "ok": {
1025
+ "name": "ok",
1026
+ "type": "integer",
1027
+ "primaryKey": false,
1028
+ "notNull": true,
1029
+ "autoincrement": false,
1030
+ "default": true
1031
+ },
1032
+ "error": {
1033
+ "name": "error",
1034
+ "type": "text",
1035
+ "primaryKey": false,
1036
+ "notNull": false,
1037
+ "autoincrement": false
1038
+ },
1039
+ "created_at": {
1040
+ "name": "created_at",
1041
+ "type": "text",
1042
+ "primaryKey": false,
1043
+ "notNull": true,
1044
+ "autoincrement": false
1045
+ }
1046
+ },
1047
+ "indexes": {
1048
+ "idx_llm_usage_created": {
1049
+ "name": "idx_llm_usage_created",
1050
+ "columns": [
1051
+ "created_at"
1052
+ ],
1053
+ "isUnique": false
1054
+ },
1055
+ "idx_llm_usage_provider_model": {
1056
+ "name": "idx_llm_usage_provider_model",
1057
+ "columns": [
1058
+ "provider",
1059
+ "model"
1060
+ ],
1061
+ "isUnique": false
1062
+ },
1063
+ "idx_llm_usage_task_kind": {
1064
+ "name": "idx_llm_usage_task_kind",
1065
+ "columns": [
1066
+ "task_kind"
1067
+ ],
1068
+ "isUnique": false
1069
+ },
1070
+ "idx_llm_usage_repo": {
1071
+ "name": "idx_llm_usage_repo",
1072
+ "columns": [
1073
+ "repo"
1074
+ ],
1075
+ "isUnique": false
1076
+ }
1077
+ },
1078
+ "foreignKeys": {},
1079
+ "compositePrimaryKeys": {},
1080
+ "uniqueConstraints": {},
1081
+ "checkConstraints": {}
1082
+ },
1083
+ "memories": {
1084
+ "name": "memories",
1085
+ "columns": {
1086
+ "id": {
1087
+ "name": "id",
1088
+ "type": "text",
1089
+ "primaryKey": true,
1090
+ "notNull": true,
1091
+ "autoincrement": false
1092
+ },
1093
+ "type": {
1094
+ "name": "type",
1095
+ "type": "text",
1096
+ "primaryKey": false,
1097
+ "notNull": true,
1098
+ "autoincrement": false
1099
+ },
1100
+ "text": {
1101
+ "name": "text",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true,
1105
+ "autoincrement": false
1106
+ },
1107
+ "scope": {
1108
+ "name": "scope",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "autoincrement": false
1113
+ },
1114
+ "path_scope": {
1115
+ "name": "path_scope",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": false,
1119
+ "autoincrement": false
1120
+ },
1121
+ "repo": {
1122
+ "name": "repo",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": false,
1126
+ "autoincrement": false
1127
+ },
1128
+ "status": {
1129
+ "name": "status",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": true,
1133
+ "autoincrement": false
1134
+ },
1135
+ "confidence": {
1136
+ "name": "confidence",
1137
+ "type": "real",
1138
+ "primaryKey": false,
1139
+ "notNull": true,
1140
+ "autoincrement": false,
1141
+ "default": 0
1142
+ },
1143
+ "source": {
1144
+ "name": "source",
1145
+ "type": "text",
1146
+ "primaryKey": false,
1147
+ "notNull": true,
1148
+ "autoincrement": false
1149
+ },
1150
+ "evidence": {
1151
+ "name": "evidence",
1152
+ "type": "text",
1153
+ "primaryKey": false,
1154
+ "notNull": true,
1155
+ "autoincrement": false,
1156
+ "default": "'[]'"
1157
+ },
1158
+ "capture_context": {
1159
+ "name": "capture_context",
1160
+ "type": "text",
1161
+ "primaryKey": false,
1162
+ "notNull": false,
1163
+ "autoincrement": false
1164
+ },
1165
+ "supersedes": {
1166
+ "name": "supersedes",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": false,
1170
+ "autoincrement": false
1171
+ },
1172
+ "created_at": {
1173
+ "name": "created_at",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": true,
1177
+ "autoincrement": false
1178
+ },
1179
+ "updated_at": {
1180
+ "name": "updated_at",
1181
+ "type": "text",
1182
+ "primaryKey": false,
1183
+ "notNull": true,
1184
+ "autoincrement": false
1185
+ },
1186
+ "last_validated_at": {
1187
+ "name": "last_validated_at",
1188
+ "type": "text",
1189
+ "primaryKey": false,
1190
+ "notNull": false,
1191
+ "autoincrement": false
1192
+ },
1193
+ "last_injected_at": {
1194
+ "name": "last_injected_at",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": false,
1198
+ "autoincrement": false
1199
+ },
1200
+ "injection_count": {
1201
+ "name": "injection_count",
1202
+ "type": "integer",
1203
+ "primaryKey": false,
1204
+ "notNull": true,
1205
+ "autoincrement": false,
1206
+ "default": 0
1207
+ },
1208
+ "override_count": {
1209
+ "name": "override_count",
1210
+ "type": "integer",
1211
+ "primaryKey": false,
1212
+ "notNull": true,
1213
+ "autoincrement": false,
1214
+ "default": 0
1215
+ },
1216
+ "repetition_count": {
1217
+ "name": "repetition_count",
1218
+ "type": "integer",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "autoincrement": false,
1222
+ "default": 0
1223
+ },
1224
+ "team_id": {
1225
+ "name": "team_id",
1226
+ "type": "text",
1227
+ "primaryKey": false,
1228
+ "notNull": false,
1229
+ "autoincrement": false
1230
+ },
1231
+ "sync_version": {
1232
+ "name": "sync_version",
1233
+ "type": "integer",
1234
+ "primaryKey": false,
1235
+ "notNull": true,
1236
+ "autoincrement": false,
1237
+ "default": 0
1238
+ }
1239
+ },
1240
+ "indexes": {
1241
+ "idx_memories_repo": {
1242
+ "name": "idx_memories_repo",
1243
+ "columns": [
1244
+ "repo"
1245
+ ],
1246
+ "isUnique": false
1247
+ },
1248
+ "idx_memories_status": {
1249
+ "name": "idx_memories_status",
1250
+ "columns": [
1251
+ "status"
1252
+ ],
1253
+ "isUnique": false
1254
+ },
1255
+ "idx_memories_repo_status": {
1256
+ "name": "idx_memories_repo_status",
1257
+ "columns": [
1258
+ "repo",
1259
+ "status"
1260
+ ],
1261
+ "isUnique": false
1262
+ },
1263
+ "idx_memories_team": {
1264
+ "name": "idx_memories_team",
1265
+ "columns": [
1266
+ "team_id"
1267
+ ],
1268
+ "isUnique": false
1269
+ }
1270
+ },
1271
+ "foreignKeys": {},
1272
+ "compositePrimaryKeys": {},
1273
+ "uniqueConstraints": {},
1274
+ "checkConstraints": {}
1275
+ },
1276
+ "memory_embeddings": {
1277
+ "name": "memory_embeddings",
1278
+ "columns": {
1279
+ "memory_id": {
1280
+ "name": "memory_id",
1281
+ "type": "text",
1282
+ "primaryKey": true,
1283
+ "notNull": true,
1284
+ "autoincrement": false
1285
+ },
1286
+ "model": {
1287
+ "name": "model",
1288
+ "type": "text",
1289
+ "primaryKey": false,
1290
+ "notNull": true,
1291
+ "autoincrement": false
1292
+ },
1293
+ "embedding_dimensions": {
1294
+ "name": "embedding_dimensions",
1295
+ "type": "integer",
1296
+ "primaryKey": false,
1297
+ "notNull": true,
1298
+ "autoincrement": false
1299
+ },
1300
+ "index_dimensions": {
1301
+ "name": "index_dimensions",
1302
+ "type": "integer",
1303
+ "primaryKey": false,
1304
+ "notNull": true,
1305
+ "autoincrement": false
1306
+ },
1307
+ "version": {
1308
+ "name": "version",
1309
+ "type": "text",
1310
+ "primaryKey": false,
1311
+ "notNull": true,
1312
+ "autoincrement": false
1313
+ },
1314
+ "content_hash": {
1315
+ "name": "content_hash",
1316
+ "type": "text",
1317
+ "primaryKey": false,
1318
+ "notNull": true,
1319
+ "autoincrement": false
1320
+ },
1321
+ "updated_at": {
1322
+ "name": "updated_at",
1323
+ "type": "text",
1324
+ "primaryKey": false,
1325
+ "notNull": true,
1326
+ "autoincrement": false
1327
+ },
1328
+ "embedding": {
1329
+ "name": "embedding",
1330
+ "type": "blob",
1331
+ "primaryKey": false,
1332
+ "notNull": true,
1333
+ "autoincrement": false
1334
+ }
1335
+ },
1336
+ "indexes": {
1337
+ "idx_memory_embeddings_model": {
1338
+ "name": "idx_memory_embeddings_model",
1339
+ "columns": [
1340
+ "model"
1341
+ ],
1342
+ "isUnique": false
1343
+ },
1344
+ "idx_memory_embeddings_updated": {
1345
+ "name": "idx_memory_embeddings_updated",
1346
+ "columns": [
1347
+ "updated_at"
1348
+ ],
1349
+ "isUnique": false
1350
+ }
1351
+ },
1352
+ "foreignKeys": {
1353
+ "memory_embeddings_memory_id_memories_id_fk": {
1354
+ "name": "memory_embeddings_memory_id_memories_id_fk",
1355
+ "tableFrom": "memory_embeddings",
1356
+ "tableTo": "memories",
1357
+ "columnsFrom": [
1358
+ "memory_id"
1359
+ ],
1360
+ "columnsTo": [
1361
+ "id"
1362
+ ],
1363
+ "onDelete": "cascade",
1364
+ "onUpdate": "no action"
1365
+ }
1366
+ },
1367
+ "compositePrimaryKeys": {},
1368
+ "uniqueConstraints": {},
1369
+ "checkConstraints": {}
1370
+ },
1371
+ "memory_injections": {
1372
+ "name": "memory_injections",
1373
+ "columns": {
1374
+ "id": {
1375
+ "name": "id",
1376
+ "type": "text",
1377
+ "primaryKey": true,
1378
+ "notNull": true,
1379
+ "autoincrement": false
1380
+ },
1381
+ "memory_id": {
1382
+ "name": "memory_id",
1383
+ "type": "text",
1384
+ "primaryKey": false,
1385
+ "notNull": true,
1386
+ "autoincrement": false
1387
+ },
1388
+ "session_id": {
1389
+ "name": "session_id",
1390
+ "type": "text",
1391
+ "primaryKey": false,
1392
+ "notNull": true,
1393
+ "autoincrement": false
1394
+ },
1395
+ "repo": {
1396
+ "name": "repo",
1397
+ "type": "text",
1398
+ "primaryKey": false,
1399
+ "notNull": false,
1400
+ "autoincrement": false
1401
+ },
1402
+ "injected_at": {
1403
+ "name": "injected_at",
1404
+ "type": "text",
1405
+ "primaryKey": false,
1406
+ "notNull": true,
1407
+ "autoincrement": false
1408
+ },
1409
+ "outcome": {
1410
+ "name": "outcome",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": false,
1414
+ "autoincrement": false
1415
+ },
1416
+ "outcome_at": {
1417
+ "name": "outcome_at",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": false,
1421
+ "autoincrement": false
1422
+ }
1423
+ },
1424
+ "indexes": {
1425
+ "idx_memory_injections_memory": {
1426
+ "name": "idx_memory_injections_memory",
1427
+ "columns": [
1428
+ "memory_id"
1429
+ ],
1430
+ "isUnique": false
1431
+ },
1432
+ "idx_memory_injections_session": {
1433
+ "name": "idx_memory_injections_session",
1434
+ "columns": [
1435
+ "session_id"
1436
+ ],
1437
+ "isUnique": false
1438
+ },
1439
+ "uq_memory_injections_memory_session": {
1440
+ "name": "uq_memory_injections_memory_session",
1441
+ "columns": [
1442
+ "memory_id",
1443
+ "session_id"
1444
+ ],
1445
+ "isUnique": true
1446
+ }
1447
+ },
1448
+ "foreignKeys": {
1449
+ "memory_injections_memory_id_memories_id_fk": {
1450
+ "name": "memory_injections_memory_id_memories_id_fk",
1451
+ "tableFrom": "memory_injections",
1452
+ "tableTo": "memories",
1453
+ "columnsFrom": [
1454
+ "memory_id"
1455
+ ],
1456
+ "columnsTo": [
1457
+ "id"
1458
+ ],
1459
+ "onDelete": "cascade",
1460
+ "onUpdate": "no action"
1461
+ }
1462
+ },
1463
+ "compositePrimaryKeys": {},
1464
+ "uniqueConstraints": {},
1465
+ "checkConstraints": {}
1466
+ },
1467
+ "memory_maintenance_tasks": {
1468
+ "name": "memory_maintenance_tasks",
1469
+ "columns": {
1470
+ "id": {
1471
+ "name": "id",
1472
+ "type": "text",
1473
+ "primaryKey": true,
1474
+ "notNull": true,
1475
+ "autoincrement": false
1476
+ },
1477
+ "kind": {
1478
+ "name": "kind",
1479
+ "type": "text",
1480
+ "primaryKey": false,
1481
+ "notNull": true,
1482
+ "autoincrement": false
1483
+ },
1484
+ "status": {
1485
+ "name": "status",
1486
+ "type": "text",
1487
+ "primaryKey": false,
1488
+ "notNull": true,
1489
+ "autoincrement": false
1490
+ },
1491
+ "priority": {
1492
+ "name": "priority",
1493
+ "type": "integer",
1494
+ "primaryKey": false,
1495
+ "notNull": true,
1496
+ "autoincrement": false,
1497
+ "default": 0
1498
+ },
1499
+ "repo": {
1500
+ "name": "repo",
1501
+ "type": "text",
1502
+ "primaryKey": false,
1503
+ "notNull": false,
1504
+ "autoincrement": false
1505
+ },
1506
+ "target_key": {
1507
+ "name": "target_key",
1508
+ "type": "text",
1509
+ "primaryKey": false,
1510
+ "notNull": true,
1511
+ "autoincrement": false
1512
+ },
1513
+ "payload": {
1514
+ "name": "payload",
1515
+ "type": "text",
1516
+ "primaryKey": false,
1517
+ "notNull": true,
1518
+ "autoincrement": false
1519
+ },
1520
+ "result": {
1521
+ "name": "result",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": false,
1525
+ "autoincrement": false
1526
+ },
1527
+ "failure_reason": {
1528
+ "name": "failure_reason",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": false,
1532
+ "autoincrement": false
1533
+ },
1534
+ "claimed_by": {
1535
+ "name": "claimed_by",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": false,
1539
+ "autoincrement": false
1540
+ },
1541
+ "claimed_at": {
1542
+ "name": "claimed_at",
1543
+ "type": "text",
1544
+ "primaryKey": false,
1545
+ "notNull": false,
1546
+ "autoincrement": false
1547
+ },
1548
+ "claim_expires_at": {
1549
+ "name": "claim_expires_at",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": false,
1553
+ "autoincrement": false
1554
+ },
1555
+ "submitted_at": {
1556
+ "name": "submitted_at",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": false,
1560
+ "autoincrement": false
1561
+ },
1562
+ "completed_at": {
1563
+ "name": "completed_at",
1564
+ "type": "text",
1565
+ "primaryKey": false,
1566
+ "notNull": false,
1567
+ "autoincrement": false
1568
+ },
1569
+ "created_at": {
1570
+ "name": "created_at",
1571
+ "type": "text",
1572
+ "primaryKey": false,
1573
+ "notNull": true,
1574
+ "autoincrement": false
1575
+ },
1576
+ "attempts": {
1577
+ "name": "attempts",
1578
+ "type": "integer",
1579
+ "primaryKey": false,
1580
+ "notNull": true,
1581
+ "autoincrement": false,
1582
+ "default": 0
1583
+ },
1584
+ "max_attempts": {
1585
+ "name": "max_attempts",
1586
+ "type": "integer",
1587
+ "primaryKey": false,
1588
+ "notNull": true,
1589
+ "autoincrement": false,
1590
+ "default": 3
1591
+ }
1592
+ },
1593
+ "indexes": {
1594
+ "idx_mmt_status_priority": {
1595
+ "name": "idx_mmt_status_priority",
1596
+ "columns": [
1597
+ "status",
1598
+ "priority",
1599
+ "created_at"
1600
+ ],
1601
+ "isUnique": false
1602
+ },
1603
+ "idx_mmt_repo_status": {
1604
+ "name": "idx_mmt_repo_status",
1605
+ "columns": [
1606
+ "repo",
1607
+ "status"
1608
+ ],
1609
+ "isUnique": false
1610
+ },
1611
+ "idx_mmt_claim_expires": {
1612
+ "name": "idx_mmt_claim_expires",
1613
+ "columns": [
1614
+ "claim_expires_at"
1615
+ ],
1616
+ "isUnique": false
1617
+ },
1618
+ "idx_mmt_kind_target": {
1619
+ "name": "idx_mmt_kind_target",
1620
+ "columns": [
1621
+ "kind",
1622
+ "target_key"
1623
+ ],
1624
+ "isUnique": false
1625
+ }
1626
+ },
1627
+ "foreignKeys": {},
1628
+ "compositePrimaryKeys": {},
1629
+ "uniqueConstraints": {},
1630
+ "checkConstraints": {}
1631
+ },
1632
+ "policy_rules": {
1633
+ "name": "policy_rules",
1634
+ "columns": {
1635
+ "id": {
1636
+ "name": "id",
1637
+ "type": "text",
1638
+ "primaryKey": true,
1639
+ "notNull": true,
1640
+ "autoincrement": false
1641
+ },
1642
+ "org_id": {
1643
+ "name": "org_id",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": true,
1647
+ "autoincrement": false
1648
+ },
1649
+ "rule_type": {
1650
+ "name": "rule_type",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ },
1656
+ "config": {
1657
+ "name": "config",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false,
1662
+ "default": "'{}'"
1663
+ },
1664
+ "enabled": {
1665
+ "name": "enabled",
1666
+ "type": "integer",
1667
+ "primaryKey": false,
1668
+ "notNull": true,
1669
+ "autoincrement": false,
1670
+ "default": true
1671
+ },
1672
+ "created_at": {
1673
+ "name": "created_at",
1674
+ "type": "text",
1675
+ "primaryKey": false,
1676
+ "notNull": true,
1677
+ "autoincrement": false
1678
+ },
1679
+ "updated_at": {
1680
+ "name": "updated_at",
1681
+ "type": "text",
1682
+ "primaryKey": false,
1683
+ "notNull": true,
1684
+ "autoincrement": false
1685
+ }
1686
+ },
1687
+ "indexes": {
1688
+ "idx_policy_org": {
1689
+ "name": "idx_policy_org",
1690
+ "columns": [
1691
+ "org_id"
1692
+ ],
1693
+ "isUnique": false
1694
+ }
1695
+ },
1696
+ "foreignKeys": {},
1697
+ "compositePrimaryKeys": {},
1698
+ "uniqueConstraints": {},
1699
+ "checkConstraints": {}
1700
+ },
1701
+ "sync_state": {
1702
+ "name": "sync_state",
1703
+ "columns": {
1704
+ "id": {
1705
+ "name": "id",
1706
+ "type": "text",
1707
+ "primaryKey": true,
1708
+ "notNull": true,
1709
+ "autoincrement": false
1710
+ },
1711
+ "remote_url": {
1712
+ "name": "remote_url",
1713
+ "type": "text",
1714
+ "primaryKey": false,
1715
+ "notNull": false,
1716
+ "autoincrement": false
1717
+ },
1718
+ "team_id": {
1719
+ "name": "team_id",
1720
+ "type": "text",
1721
+ "primaryKey": false,
1722
+ "notNull": false,
1723
+ "autoincrement": false
1724
+ },
1725
+ "last_push_at": {
1726
+ "name": "last_push_at",
1727
+ "type": "text",
1728
+ "primaryKey": false,
1729
+ "notNull": false,
1730
+ "autoincrement": false
1731
+ },
1732
+ "last_pull_at": {
1733
+ "name": "last_pull_at",
1734
+ "type": "text",
1735
+ "primaryKey": false,
1736
+ "notNull": false,
1737
+ "autoincrement": false
1738
+ },
1739
+ "last_push_version": {
1740
+ "name": "last_push_version",
1741
+ "type": "integer",
1742
+ "primaryKey": false,
1743
+ "notNull": true,
1744
+ "autoincrement": false,
1745
+ "default": 0
1746
+ },
1747
+ "last_pull_version": {
1748
+ "name": "last_pull_version",
1749
+ "type": "integer",
1750
+ "primaryKey": false,
1751
+ "notNull": true,
1752
+ "autoincrement": false,
1753
+ "default": 0
1754
+ }
1755
+ },
1756
+ "indexes": {},
1757
+ "foreignKeys": {},
1758
+ "compositePrimaryKeys": {},
1759
+ "uniqueConstraints": {},
1760
+ "checkConstraints": {}
1761
+ }
1762
+ },
1763
+ "views": {},
1764
+ "enums": {},
1765
+ "_meta": {
1766
+ "schemas": {},
1767
+ "tables": {},
1768
+ "columns": {}
1769
+ },
1770
+ "internal": {
1771
+ "indexes": {}
1772
+ }
1773
+ }