@wopr-network/defcon 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1169 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "59a38422-9f99-4c9a-bfbf-ed253eb1094c",
5
+ "prevId": "cfd28a51-a8d0-4e83-9a85-c249e14198d1",
6
+ "tables": {
7
+ "domain_events": {
8
+ "name": "domain_events",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "type": {
18
+ "name": "type",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "entity_id": {
25
+ "name": "entity_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "payload": {
32
+ "name": "payload",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "sequence": {
39
+ "name": "sequence",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "emitted_at": {
46
+ "name": "emitted_at",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ }
52
+ },
53
+ "indexes": {
54
+ "domain_events_entity_seq_idx": {
55
+ "name": "domain_events_entity_seq_idx",
56
+ "columns": [
57
+ "entity_id",
58
+ "sequence"
59
+ ],
60
+ "isUnique": false
61
+ },
62
+ "domain_events_type_idx": {
63
+ "name": "domain_events_type_idx",
64
+ "columns": [
65
+ "type",
66
+ "emitted_at"
67
+ ],
68
+ "isUnique": false
69
+ }
70
+ },
71
+ "foreignKeys": {},
72
+ "compositePrimaryKeys": {},
73
+ "uniqueConstraints": {},
74
+ "checkConstraints": {}
75
+ },
76
+ "entities": {
77
+ "name": "entities",
78
+ "columns": {
79
+ "id": {
80
+ "name": "id",
81
+ "type": "text",
82
+ "primaryKey": true,
83
+ "notNull": true,
84
+ "autoincrement": false
85
+ },
86
+ "flow_id": {
87
+ "name": "flow_id",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": true,
91
+ "autoincrement": false
92
+ },
93
+ "state": {
94
+ "name": "state",
95
+ "type": "text",
96
+ "primaryKey": false,
97
+ "notNull": true,
98
+ "autoincrement": false
99
+ },
100
+ "refs": {
101
+ "name": "refs",
102
+ "type": "text",
103
+ "primaryKey": false,
104
+ "notNull": false,
105
+ "autoincrement": false
106
+ },
107
+ "artifacts": {
108
+ "name": "artifacts",
109
+ "type": "text",
110
+ "primaryKey": false,
111
+ "notNull": false,
112
+ "autoincrement": false
113
+ },
114
+ "claimed_by": {
115
+ "name": "claimed_by",
116
+ "type": "text",
117
+ "primaryKey": false,
118
+ "notNull": false,
119
+ "autoincrement": false
120
+ },
121
+ "claimed_at": {
122
+ "name": "claimed_at",
123
+ "type": "integer",
124
+ "primaryKey": false,
125
+ "notNull": false,
126
+ "autoincrement": false
127
+ },
128
+ "flow_version": {
129
+ "name": "flow_version",
130
+ "type": "integer",
131
+ "primaryKey": false,
132
+ "notNull": false,
133
+ "autoincrement": false
134
+ },
135
+ "priority": {
136
+ "name": "priority",
137
+ "type": "integer",
138
+ "primaryKey": false,
139
+ "notNull": false,
140
+ "autoincrement": false,
141
+ "default": 0
142
+ },
143
+ "created_at": {
144
+ "name": "created_at",
145
+ "type": "integer",
146
+ "primaryKey": false,
147
+ "notNull": false,
148
+ "autoincrement": false
149
+ },
150
+ "updated_at": {
151
+ "name": "updated_at",
152
+ "type": "integer",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ },
157
+ "affinity_worker_id": {
158
+ "name": "affinity_worker_id",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": false,
162
+ "autoincrement": false
163
+ },
164
+ "affinity_role": {
165
+ "name": "affinity_role",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false,
169
+ "autoincrement": false
170
+ },
171
+ "affinity_expires_at": {
172
+ "name": "affinity_expires_at",
173
+ "type": "integer",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ }
178
+ },
179
+ "indexes": {
180
+ "entities_flow_state_idx": {
181
+ "name": "entities_flow_state_idx",
182
+ "columns": [
183
+ "flow_id",
184
+ "state"
185
+ ],
186
+ "isUnique": false
187
+ },
188
+ "entities_claim_idx": {
189
+ "name": "entities_claim_idx",
190
+ "columns": [
191
+ "flow_id",
192
+ "state",
193
+ "claimed_by"
194
+ ],
195
+ "isUnique": false
196
+ },
197
+ "entities_affinity_idx": {
198
+ "name": "entities_affinity_idx",
199
+ "columns": [
200
+ "affinity_worker_id",
201
+ "affinity_role",
202
+ "affinity_expires_at"
203
+ ],
204
+ "isUnique": false
205
+ }
206
+ },
207
+ "foreignKeys": {
208
+ "entities_flow_id_flow_definitions_id_fk": {
209
+ "name": "entities_flow_id_flow_definitions_id_fk",
210
+ "tableFrom": "entities",
211
+ "tableTo": "flow_definitions",
212
+ "columnsFrom": [
213
+ "flow_id"
214
+ ],
215
+ "columnsTo": [
216
+ "id"
217
+ ],
218
+ "onDelete": "no action",
219
+ "onUpdate": "no action"
220
+ }
221
+ },
222
+ "compositePrimaryKeys": {},
223
+ "uniqueConstraints": {},
224
+ "checkConstraints": {}
225
+ },
226
+ "entity_history": {
227
+ "name": "entity_history",
228
+ "columns": {
229
+ "id": {
230
+ "name": "id",
231
+ "type": "text",
232
+ "primaryKey": true,
233
+ "notNull": true,
234
+ "autoincrement": false
235
+ },
236
+ "entity_id": {
237
+ "name": "entity_id",
238
+ "type": "text",
239
+ "primaryKey": false,
240
+ "notNull": true,
241
+ "autoincrement": false
242
+ },
243
+ "from_state": {
244
+ "name": "from_state",
245
+ "type": "text",
246
+ "primaryKey": false,
247
+ "notNull": false,
248
+ "autoincrement": false
249
+ },
250
+ "to_state": {
251
+ "name": "to_state",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true,
255
+ "autoincrement": false
256
+ },
257
+ "trigger": {
258
+ "name": "trigger",
259
+ "type": "text",
260
+ "primaryKey": false,
261
+ "notNull": false,
262
+ "autoincrement": false
263
+ },
264
+ "invocation_id": {
265
+ "name": "invocation_id",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false,
269
+ "autoincrement": false
270
+ },
271
+ "timestamp": {
272
+ "name": "timestamp",
273
+ "type": "integer",
274
+ "primaryKey": false,
275
+ "notNull": true,
276
+ "autoincrement": false
277
+ }
278
+ },
279
+ "indexes": {
280
+ "entity_history_entity_ts_idx": {
281
+ "name": "entity_history_entity_ts_idx",
282
+ "columns": [
283
+ "entity_id",
284
+ "timestamp"
285
+ ],
286
+ "isUnique": false
287
+ }
288
+ },
289
+ "foreignKeys": {
290
+ "entity_history_entity_id_entities_id_fk": {
291
+ "name": "entity_history_entity_id_entities_id_fk",
292
+ "tableFrom": "entity_history",
293
+ "tableTo": "entities",
294
+ "columnsFrom": [
295
+ "entity_id"
296
+ ],
297
+ "columnsTo": [
298
+ "id"
299
+ ],
300
+ "onDelete": "no action",
301
+ "onUpdate": "no action"
302
+ },
303
+ "entity_history_invocation_id_invocations_id_fk": {
304
+ "name": "entity_history_invocation_id_invocations_id_fk",
305
+ "tableFrom": "entity_history",
306
+ "tableTo": "invocations",
307
+ "columnsFrom": [
308
+ "invocation_id"
309
+ ],
310
+ "columnsTo": [
311
+ "id"
312
+ ],
313
+ "onDelete": "no action",
314
+ "onUpdate": "no action"
315
+ }
316
+ },
317
+ "compositePrimaryKeys": {},
318
+ "uniqueConstraints": {},
319
+ "checkConstraints": {}
320
+ },
321
+ "events": {
322
+ "name": "events",
323
+ "columns": {
324
+ "id": {
325
+ "name": "id",
326
+ "type": "text",
327
+ "primaryKey": true,
328
+ "notNull": true,
329
+ "autoincrement": false
330
+ },
331
+ "type": {
332
+ "name": "type",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": true,
336
+ "autoincrement": false
337
+ },
338
+ "entity_id": {
339
+ "name": "entity_id",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": false,
343
+ "autoincrement": false
344
+ },
345
+ "flow_id": {
346
+ "name": "flow_id",
347
+ "type": "text",
348
+ "primaryKey": false,
349
+ "notNull": false,
350
+ "autoincrement": false
351
+ },
352
+ "payload": {
353
+ "name": "payload",
354
+ "type": "text",
355
+ "primaryKey": false,
356
+ "notNull": false,
357
+ "autoincrement": false
358
+ },
359
+ "emitted_at": {
360
+ "name": "emitted_at",
361
+ "type": "integer",
362
+ "primaryKey": false,
363
+ "notNull": true,
364
+ "autoincrement": false
365
+ }
366
+ },
367
+ "indexes": {
368
+ "events_type_emitted_idx": {
369
+ "name": "events_type_emitted_idx",
370
+ "columns": [
371
+ "type",
372
+ "emitted_at"
373
+ ],
374
+ "isUnique": false
375
+ }
376
+ },
377
+ "foreignKeys": {},
378
+ "compositePrimaryKeys": {},
379
+ "uniqueConstraints": {},
380
+ "checkConstraints": {}
381
+ },
382
+ "flow_definitions": {
383
+ "name": "flow_definitions",
384
+ "columns": {
385
+ "id": {
386
+ "name": "id",
387
+ "type": "text",
388
+ "primaryKey": true,
389
+ "notNull": true,
390
+ "autoincrement": false
391
+ },
392
+ "name": {
393
+ "name": "name",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": true,
397
+ "autoincrement": false
398
+ },
399
+ "description": {
400
+ "name": "description",
401
+ "type": "text",
402
+ "primaryKey": false,
403
+ "notNull": false,
404
+ "autoincrement": false
405
+ },
406
+ "entity_schema": {
407
+ "name": "entity_schema",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false,
411
+ "autoincrement": false
412
+ },
413
+ "initial_state": {
414
+ "name": "initial_state",
415
+ "type": "text",
416
+ "primaryKey": false,
417
+ "notNull": true,
418
+ "autoincrement": false
419
+ },
420
+ "max_concurrent": {
421
+ "name": "max_concurrent",
422
+ "type": "integer",
423
+ "primaryKey": false,
424
+ "notNull": false,
425
+ "autoincrement": false,
426
+ "default": 0
427
+ },
428
+ "max_concurrent_per_repo": {
429
+ "name": "max_concurrent_per_repo",
430
+ "type": "integer",
431
+ "primaryKey": false,
432
+ "notNull": false,
433
+ "autoincrement": false,
434
+ "default": 0
435
+ },
436
+ "affinity_window_ms": {
437
+ "name": "affinity_window_ms",
438
+ "type": "integer",
439
+ "primaryKey": false,
440
+ "notNull": false,
441
+ "autoincrement": false,
442
+ "default": 300000
443
+ },
444
+ "claim_retry_after_ms": {
445
+ "name": "claim_retry_after_ms",
446
+ "type": "integer",
447
+ "primaryKey": false,
448
+ "notNull": false,
449
+ "autoincrement": false
450
+ },
451
+ "gate_timeout_ms": {
452
+ "name": "gate_timeout_ms",
453
+ "type": "integer",
454
+ "primaryKey": false,
455
+ "notNull": false,
456
+ "autoincrement": false
457
+ },
458
+ "version": {
459
+ "name": "version",
460
+ "type": "integer",
461
+ "primaryKey": false,
462
+ "notNull": false,
463
+ "autoincrement": false,
464
+ "default": 1
465
+ },
466
+ "created_by": {
467
+ "name": "created_by",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": false,
471
+ "autoincrement": false
472
+ },
473
+ "discipline": {
474
+ "name": "discipline",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": false,
478
+ "autoincrement": false
479
+ },
480
+ "default_model_tier": {
481
+ "name": "default_model_tier",
482
+ "type": "text",
483
+ "primaryKey": false,
484
+ "notNull": false,
485
+ "autoincrement": false
486
+ },
487
+ "timeout_prompt": {
488
+ "name": "timeout_prompt",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": false,
492
+ "autoincrement": false
493
+ },
494
+ "paused": {
495
+ "name": "paused",
496
+ "type": "integer",
497
+ "primaryKey": false,
498
+ "notNull": false,
499
+ "autoincrement": false,
500
+ "default": 0
501
+ },
502
+ "created_at": {
503
+ "name": "created_at",
504
+ "type": "integer",
505
+ "primaryKey": false,
506
+ "notNull": false,
507
+ "autoincrement": false
508
+ },
509
+ "updated_at": {
510
+ "name": "updated_at",
511
+ "type": "integer",
512
+ "primaryKey": false,
513
+ "notNull": false,
514
+ "autoincrement": false
515
+ }
516
+ },
517
+ "indexes": {
518
+ "flow_definitions_name_unique": {
519
+ "name": "flow_definitions_name_unique",
520
+ "columns": [
521
+ "name"
522
+ ],
523
+ "isUnique": true
524
+ }
525
+ },
526
+ "foreignKeys": {},
527
+ "compositePrimaryKeys": {},
528
+ "uniqueConstraints": {},
529
+ "checkConstraints": {}
530
+ },
531
+ "flow_versions": {
532
+ "name": "flow_versions",
533
+ "columns": {
534
+ "id": {
535
+ "name": "id",
536
+ "type": "text",
537
+ "primaryKey": true,
538
+ "notNull": true,
539
+ "autoincrement": false
540
+ },
541
+ "flow_id": {
542
+ "name": "flow_id",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true,
546
+ "autoincrement": false
547
+ },
548
+ "version": {
549
+ "name": "version",
550
+ "type": "integer",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "autoincrement": false
554
+ },
555
+ "snapshot": {
556
+ "name": "snapshot",
557
+ "type": "text",
558
+ "primaryKey": false,
559
+ "notNull": false,
560
+ "autoincrement": false
561
+ },
562
+ "changed_by": {
563
+ "name": "changed_by",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": false,
567
+ "autoincrement": false
568
+ },
569
+ "change_reason": {
570
+ "name": "change_reason",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": false,
574
+ "autoincrement": false
575
+ },
576
+ "created_at": {
577
+ "name": "created_at",
578
+ "type": "integer",
579
+ "primaryKey": false,
580
+ "notNull": false,
581
+ "autoincrement": false
582
+ }
583
+ },
584
+ "indexes": {
585
+ "flow_versions_flow_version_unique": {
586
+ "name": "flow_versions_flow_version_unique",
587
+ "columns": [
588
+ "flow_id",
589
+ "version"
590
+ ],
591
+ "isUnique": true
592
+ }
593
+ },
594
+ "foreignKeys": {
595
+ "flow_versions_flow_id_flow_definitions_id_fk": {
596
+ "name": "flow_versions_flow_id_flow_definitions_id_fk",
597
+ "tableFrom": "flow_versions",
598
+ "tableTo": "flow_definitions",
599
+ "columnsFrom": [
600
+ "flow_id"
601
+ ],
602
+ "columnsTo": [
603
+ "id"
604
+ ],
605
+ "onDelete": "no action",
606
+ "onUpdate": "no action"
607
+ }
608
+ },
609
+ "compositePrimaryKeys": {},
610
+ "uniqueConstraints": {},
611
+ "checkConstraints": {}
612
+ },
613
+ "gate_definitions": {
614
+ "name": "gate_definitions",
615
+ "columns": {
616
+ "id": {
617
+ "name": "id",
618
+ "type": "text",
619
+ "primaryKey": true,
620
+ "notNull": true,
621
+ "autoincrement": false
622
+ },
623
+ "name": {
624
+ "name": "name",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": true,
628
+ "autoincrement": false
629
+ },
630
+ "type": {
631
+ "name": "type",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "command": {
638
+ "name": "command",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false,
642
+ "autoincrement": false
643
+ },
644
+ "function_ref": {
645
+ "name": "function_ref",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": false,
649
+ "autoincrement": false
650
+ },
651
+ "api_config": {
652
+ "name": "api_config",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": false,
656
+ "autoincrement": false
657
+ },
658
+ "timeout_ms": {
659
+ "name": "timeout_ms",
660
+ "type": "integer",
661
+ "primaryKey": false,
662
+ "notNull": false,
663
+ "autoincrement": false
664
+ },
665
+ "failure_prompt": {
666
+ "name": "failure_prompt",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": false,
670
+ "autoincrement": false
671
+ },
672
+ "timeout_prompt": {
673
+ "name": "timeout_prompt",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": false,
677
+ "autoincrement": false
678
+ },
679
+ "outcomes": {
680
+ "name": "outcomes",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": false,
684
+ "autoincrement": false
685
+ }
686
+ },
687
+ "indexes": {
688
+ "gate_definitions_name_unique": {
689
+ "name": "gate_definitions_name_unique",
690
+ "columns": [
691
+ "name"
692
+ ],
693
+ "isUnique": true
694
+ }
695
+ },
696
+ "foreignKeys": {},
697
+ "compositePrimaryKeys": {},
698
+ "uniqueConstraints": {},
699
+ "checkConstraints": {}
700
+ },
701
+ "gate_results": {
702
+ "name": "gate_results",
703
+ "columns": {
704
+ "id": {
705
+ "name": "id",
706
+ "type": "text",
707
+ "primaryKey": true,
708
+ "notNull": true,
709
+ "autoincrement": false
710
+ },
711
+ "entity_id": {
712
+ "name": "entity_id",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": true,
716
+ "autoincrement": false
717
+ },
718
+ "gate_id": {
719
+ "name": "gate_id",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": true,
723
+ "autoincrement": false
724
+ },
725
+ "passed": {
726
+ "name": "passed",
727
+ "type": "integer",
728
+ "primaryKey": false,
729
+ "notNull": true,
730
+ "autoincrement": false
731
+ },
732
+ "output": {
733
+ "name": "output",
734
+ "type": "text",
735
+ "primaryKey": false,
736
+ "notNull": false,
737
+ "autoincrement": false
738
+ },
739
+ "evaluated_at": {
740
+ "name": "evaluated_at",
741
+ "type": "integer",
742
+ "primaryKey": false,
743
+ "notNull": false,
744
+ "autoincrement": false
745
+ }
746
+ },
747
+ "indexes": {},
748
+ "foreignKeys": {
749
+ "gate_results_entity_id_entities_id_fk": {
750
+ "name": "gate_results_entity_id_entities_id_fk",
751
+ "tableFrom": "gate_results",
752
+ "tableTo": "entities",
753
+ "columnsFrom": [
754
+ "entity_id"
755
+ ],
756
+ "columnsTo": [
757
+ "id"
758
+ ],
759
+ "onDelete": "no action",
760
+ "onUpdate": "no action"
761
+ },
762
+ "gate_results_gate_id_gate_definitions_id_fk": {
763
+ "name": "gate_results_gate_id_gate_definitions_id_fk",
764
+ "tableFrom": "gate_results",
765
+ "tableTo": "gate_definitions",
766
+ "columnsFrom": [
767
+ "gate_id"
768
+ ],
769
+ "columnsTo": [
770
+ "id"
771
+ ],
772
+ "onDelete": "no action",
773
+ "onUpdate": "no action"
774
+ }
775
+ },
776
+ "compositePrimaryKeys": {},
777
+ "uniqueConstraints": {},
778
+ "checkConstraints": {}
779
+ },
780
+ "invocations": {
781
+ "name": "invocations",
782
+ "columns": {
783
+ "id": {
784
+ "name": "id",
785
+ "type": "text",
786
+ "primaryKey": true,
787
+ "notNull": true,
788
+ "autoincrement": false
789
+ },
790
+ "entity_id": {
791
+ "name": "entity_id",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": true,
795
+ "autoincrement": false
796
+ },
797
+ "stage": {
798
+ "name": "stage",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": true,
802
+ "autoincrement": false
803
+ },
804
+ "agent_role": {
805
+ "name": "agent_role",
806
+ "type": "text",
807
+ "primaryKey": false,
808
+ "notNull": false,
809
+ "autoincrement": false
810
+ },
811
+ "mode": {
812
+ "name": "mode",
813
+ "type": "text",
814
+ "primaryKey": false,
815
+ "notNull": true,
816
+ "autoincrement": false
817
+ },
818
+ "prompt": {
819
+ "name": "prompt",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true,
823
+ "autoincrement": false
824
+ },
825
+ "context": {
826
+ "name": "context",
827
+ "type": "text",
828
+ "primaryKey": false,
829
+ "notNull": false,
830
+ "autoincrement": false
831
+ },
832
+ "claimed_by": {
833
+ "name": "claimed_by",
834
+ "type": "text",
835
+ "primaryKey": false,
836
+ "notNull": false,
837
+ "autoincrement": false
838
+ },
839
+ "claimed_at": {
840
+ "name": "claimed_at",
841
+ "type": "integer",
842
+ "primaryKey": false,
843
+ "notNull": false,
844
+ "autoincrement": false
845
+ },
846
+ "started_at": {
847
+ "name": "started_at",
848
+ "type": "integer",
849
+ "primaryKey": false,
850
+ "notNull": false,
851
+ "autoincrement": false
852
+ },
853
+ "completed_at": {
854
+ "name": "completed_at",
855
+ "type": "integer",
856
+ "primaryKey": false,
857
+ "notNull": false,
858
+ "autoincrement": false
859
+ },
860
+ "failed_at": {
861
+ "name": "failed_at",
862
+ "type": "integer",
863
+ "primaryKey": false,
864
+ "notNull": false,
865
+ "autoincrement": false
866
+ },
867
+ "signal": {
868
+ "name": "signal",
869
+ "type": "text",
870
+ "primaryKey": false,
871
+ "notNull": false,
872
+ "autoincrement": false
873
+ },
874
+ "artifacts": {
875
+ "name": "artifacts",
876
+ "type": "text",
877
+ "primaryKey": false,
878
+ "notNull": false,
879
+ "autoincrement": false
880
+ },
881
+ "error": {
882
+ "name": "error",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": false,
886
+ "autoincrement": false
887
+ },
888
+ "ttl_ms": {
889
+ "name": "ttl_ms",
890
+ "type": "integer",
891
+ "primaryKey": false,
892
+ "notNull": false,
893
+ "autoincrement": false,
894
+ "default": 1800000
895
+ },
896
+ "created_at": {
897
+ "name": "created_at",
898
+ "type": "integer",
899
+ "primaryKey": false,
900
+ "notNull": false,
901
+ "autoincrement": false
902
+ }
903
+ },
904
+ "indexes": {
905
+ "invocations_entity_idx": {
906
+ "name": "invocations_entity_idx",
907
+ "columns": [
908
+ "entity_id"
909
+ ],
910
+ "isUnique": false
911
+ }
912
+ },
913
+ "foreignKeys": {
914
+ "invocations_entity_id_entities_id_fk": {
915
+ "name": "invocations_entity_id_entities_id_fk",
916
+ "tableFrom": "invocations",
917
+ "tableTo": "entities",
918
+ "columnsFrom": [
919
+ "entity_id"
920
+ ],
921
+ "columnsTo": [
922
+ "id"
923
+ ],
924
+ "onDelete": "no action",
925
+ "onUpdate": "no action"
926
+ }
927
+ },
928
+ "compositePrimaryKeys": {},
929
+ "uniqueConstraints": {},
930
+ "checkConstraints": {}
931
+ },
932
+ "state_definitions": {
933
+ "name": "state_definitions",
934
+ "columns": {
935
+ "id": {
936
+ "name": "id",
937
+ "type": "text",
938
+ "primaryKey": true,
939
+ "notNull": true,
940
+ "autoincrement": false
941
+ },
942
+ "flow_id": {
943
+ "name": "flow_id",
944
+ "type": "text",
945
+ "primaryKey": false,
946
+ "notNull": true,
947
+ "autoincrement": false
948
+ },
949
+ "name": {
950
+ "name": "name",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": true,
954
+ "autoincrement": false
955
+ },
956
+ "agent_role": {
957
+ "name": "agent_role",
958
+ "type": "text",
959
+ "primaryKey": false,
960
+ "notNull": false,
961
+ "autoincrement": false
962
+ },
963
+ "model_tier": {
964
+ "name": "model_tier",
965
+ "type": "text",
966
+ "primaryKey": false,
967
+ "notNull": false,
968
+ "autoincrement": false
969
+ },
970
+ "mode": {
971
+ "name": "mode",
972
+ "type": "text",
973
+ "primaryKey": false,
974
+ "notNull": false,
975
+ "autoincrement": false,
976
+ "default": "'passive'"
977
+ },
978
+ "prompt_template": {
979
+ "name": "prompt_template",
980
+ "type": "text",
981
+ "primaryKey": false,
982
+ "notNull": false,
983
+ "autoincrement": false
984
+ },
985
+ "constraints": {
986
+ "name": "constraints",
987
+ "type": "text",
988
+ "primaryKey": false,
989
+ "notNull": false,
990
+ "autoincrement": false
991
+ },
992
+ "on_enter": {
993
+ "name": "on_enter",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": false,
997
+ "autoincrement": false
998
+ },
999
+ "on_exit": {
1000
+ "name": "on_exit",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": false,
1004
+ "autoincrement": false
1005
+ },
1006
+ "retry_after_ms": {
1007
+ "name": "retry_after_ms",
1008
+ "type": "integer",
1009
+ "primaryKey": false,
1010
+ "notNull": false,
1011
+ "autoincrement": false
1012
+ }
1013
+ },
1014
+ "indexes": {
1015
+ "state_definitions_flow_name_unique": {
1016
+ "name": "state_definitions_flow_name_unique",
1017
+ "columns": [
1018
+ "flow_id",
1019
+ "name"
1020
+ ],
1021
+ "isUnique": true
1022
+ }
1023
+ },
1024
+ "foreignKeys": {
1025
+ "state_definitions_flow_id_flow_definitions_id_fk": {
1026
+ "name": "state_definitions_flow_id_flow_definitions_id_fk",
1027
+ "tableFrom": "state_definitions",
1028
+ "tableTo": "flow_definitions",
1029
+ "columnsFrom": [
1030
+ "flow_id"
1031
+ ],
1032
+ "columnsTo": [
1033
+ "id"
1034
+ ],
1035
+ "onDelete": "no action",
1036
+ "onUpdate": "no action"
1037
+ }
1038
+ },
1039
+ "compositePrimaryKeys": {},
1040
+ "uniqueConstraints": {},
1041
+ "checkConstraints": {}
1042
+ },
1043
+ "transition_rules": {
1044
+ "name": "transition_rules",
1045
+ "columns": {
1046
+ "id": {
1047
+ "name": "id",
1048
+ "type": "text",
1049
+ "primaryKey": true,
1050
+ "notNull": true,
1051
+ "autoincrement": false
1052
+ },
1053
+ "flow_id": {
1054
+ "name": "flow_id",
1055
+ "type": "text",
1056
+ "primaryKey": false,
1057
+ "notNull": true,
1058
+ "autoincrement": false
1059
+ },
1060
+ "from_state": {
1061
+ "name": "from_state",
1062
+ "type": "text",
1063
+ "primaryKey": false,
1064
+ "notNull": true,
1065
+ "autoincrement": false
1066
+ },
1067
+ "to_state": {
1068
+ "name": "to_state",
1069
+ "type": "text",
1070
+ "primaryKey": false,
1071
+ "notNull": true,
1072
+ "autoincrement": false
1073
+ },
1074
+ "trigger": {
1075
+ "name": "trigger",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false
1080
+ },
1081
+ "gate_id": {
1082
+ "name": "gate_id",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": false,
1086
+ "autoincrement": false
1087
+ },
1088
+ "condition": {
1089
+ "name": "condition",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": false,
1093
+ "autoincrement": false
1094
+ },
1095
+ "priority": {
1096
+ "name": "priority",
1097
+ "type": "integer",
1098
+ "primaryKey": false,
1099
+ "notNull": false,
1100
+ "autoincrement": false,
1101
+ "default": 0
1102
+ },
1103
+ "spawn_flow": {
1104
+ "name": "spawn_flow",
1105
+ "type": "text",
1106
+ "primaryKey": false,
1107
+ "notNull": false,
1108
+ "autoincrement": false
1109
+ },
1110
+ "spawn_template": {
1111
+ "name": "spawn_template",
1112
+ "type": "text",
1113
+ "primaryKey": false,
1114
+ "notNull": false,
1115
+ "autoincrement": false
1116
+ },
1117
+ "created_at": {
1118
+ "name": "created_at",
1119
+ "type": "integer",
1120
+ "primaryKey": false,
1121
+ "notNull": false,
1122
+ "autoincrement": false
1123
+ }
1124
+ },
1125
+ "indexes": {},
1126
+ "foreignKeys": {
1127
+ "transition_rules_flow_id_flow_definitions_id_fk": {
1128
+ "name": "transition_rules_flow_id_flow_definitions_id_fk",
1129
+ "tableFrom": "transition_rules",
1130
+ "tableTo": "flow_definitions",
1131
+ "columnsFrom": [
1132
+ "flow_id"
1133
+ ],
1134
+ "columnsTo": [
1135
+ "id"
1136
+ ],
1137
+ "onDelete": "no action",
1138
+ "onUpdate": "no action"
1139
+ },
1140
+ "transition_rules_gate_id_gate_definitions_id_fk": {
1141
+ "name": "transition_rules_gate_id_gate_definitions_id_fk",
1142
+ "tableFrom": "transition_rules",
1143
+ "tableTo": "gate_definitions",
1144
+ "columnsFrom": [
1145
+ "gate_id"
1146
+ ],
1147
+ "columnsTo": [
1148
+ "id"
1149
+ ],
1150
+ "onDelete": "no action",
1151
+ "onUpdate": "no action"
1152
+ }
1153
+ },
1154
+ "compositePrimaryKeys": {},
1155
+ "uniqueConstraints": {},
1156
+ "checkConstraints": {}
1157
+ }
1158
+ },
1159
+ "views": {},
1160
+ "enums": {},
1161
+ "_meta": {
1162
+ "schemas": {},
1163
+ "tables": {},
1164
+ "columns": {}
1165
+ },
1166
+ "internal": {
1167
+ "indexes": {}
1168
+ }
1169
+ }