runwarden 0.4.0 → 0.6.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,768 @@
1
+ {
2
+ "id": "af2b6352-5382-42c3-a469-8343e029f909",
3
+ "prevId": "0f20ea46-9458-48db-9e27-176f7f13e19d",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "agent_runtime.invocations": {
8
+ "name": "invocations",
9
+ "schema": "agent_runtime",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "bigint",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "identity": {
17
+ "type": "always",
18
+ "name": "invocations_id_seq",
19
+ "schema": "agent_runtime",
20
+ "increment": "1",
21
+ "startWith": "1",
22
+ "minValue": "1",
23
+ "maxValue": "9223372036854775807",
24
+ "cache": "1",
25
+ "cycle": false
26
+ }
27
+ },
28
+ "scope": {
29
+ "name": "scope",
30
+ "type": "text",
31
+ "primaryKey": false,
32
+ "notNull": true
33
+ },
34
+ "conversation_id": {
35
+ "name": "conversation_id",
36
+ "type": "text",
37
+ "primaryKey": false,
38
+ "notNull": false
39
+ },
40
+ "ordering_key": {
41
+ "name": "ordering_key",
42
+ "type": "text",
43
+ "primaryKey": false,
44
+ "notNull": false
45
+ },
46
+ "input": {
47
+ "name": "input",
48
+ "type": "jsonb",
49
+ "primaryKey": false,
50
+ "notNull": true
51
+ },
52
+ "result_text": {
53
+ "name": "result_text",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false
57
+ },
58
+ "result_messages": {
59
+ "name": "result_messages",
60
+ "type": "jsonb",
61
+ "primaryKey": false,
62
+ "notNull": false
63
+ },
64
+ "input_tokens": {
65
+ "name": "input_tokens",
66
+ "type": "bigint",
67
+ "primaryKey": false,
68
+ "notNull": false
69
+ },
70
+ "output_tokens": {
71
+ "name": "output_tokens",
72
+ "type": "bigint",
73
+ "primaryKey": false,
74
+ "notNull": false
75
+ },
76
+ "cache_read_tokens": {
77
+ "name": "cache_read_tokens",
78
+ "type": "bigint",
79
+ "primaryKey": false,
80
+ "notNull": false
81
+ },
82
+ "cache_write_tokens": {
83
+ "name": "cache_write_tokens",
84
+ "type": "bigint",
85
+ "primaryKey": false,
86
+ "notNull": false
87
+ },
88
+ "reasoning_tokens": {
89
+ "name": "reasoning_tokens",
90
+ "type": "bigint",
91
+ "primaryKey": false,
92
+ "notNull": false
93
+ },
94
+ "cost_usd": {
95
+ "name": "cost_usd",
96
+ "type": "numeric(30, 12)",
97
+ "primaryKey": false,
98
+ "notNull": false
99
+ },
100
+ "usage_steps": {
101
+ "name": "usage_steps",
102
+ "type": "jsonb",
103
+ "primaryKey": false,
104
+ "notNull": false
105
+ },
106
+ "idempotency_key": {
107
+ "name": "idempotency_key",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": false
111
+ },
112
+ "status": {
113
+ "name": "status",
114
+ "type": "invocation_status",
115
+ "typeSchema": "agent_runtime",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "default": "'pending'"
119
+ },
120
+ "attempt_count": {
121
+ "name": "attempt_count",
122
+ "type": "integer",
123
+ "primaryKey": false,
124
+ "notNull": true,
125
+ "default": 0
126
+ },
127
+ "max_attempts": {
128
+ "name": "max_attempts",
129
+ "type": "integer",
130
+ "primaryKey": false,
131
+ "notNull": true,
132
+ "default": 3
133
+ },
134
+ "next_attempt_at": {
135
+ "name": "next_attempt_at",
136
+ "type": "timestamp with time zone",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "default": "now()"
140
+ },
141
+ "claimed_at": {
142
+ "name": "claimed_at",
143
+ "type": "timestamp with time zone",
144
+ "primaryKey": false,
145
+ "notNull": false
146
+ },
147
+ "claimed_by": {
148
+ "name": "claimed_by",
149
+ "type": "text",
150
+ "primaryKey": false,
151
+ "notNull": false
152
+ },
153
+ "lease_heartbeat_at": {
154
+ "name": "lease_heartbeat_at",
155
+ "type": "timestamp with time zone",
156
+ "primaryKey": false,
157
+ "notNull": false
158
+ },
159
+ "lease_expires_at": {
160
+ "name": "lease_expires_at",
161
+ "type": "timestamp with time zone",
162
+ "primaryKey": false,
163
+ "notNull": false
164
+ },
165
+ "active_run_id": {
166
+ "name": "active_run_id",
167
+ "type": "uuid",
168
+ "primaryKey": false,
169
+ "notNull": false
170
+ },
171
+ "active_run_registered_at": {
172
+ "name": "active_run_registered_at",
173
+ "type": "timestamp with time zone",
174
+ "primaryKey": false,
175
+ "notNull": false
176
+ },
177
+ "pending_tool_call": {
178
+ "name": "pending_tool_call",
179
+ "type": "jsonb",
180
+ "primaryKey": false,
181
+ "notNull": false
182
+ },
183
+ "started_at": {
184
+ "name": "started_at",
185
+ "type": "timestamp with time zone",
186
+ "primaryKey": false,
187
+ "notNull": false
188
+ },
189
+ "completed_at": {
190
+ "name": "completed_at",
191
+ "type": "timestamp with time zone",
192
+ "primaryKey": false,
193
+ "notNull": false
194
+ },
195
+ "failed_at": {
196
+ "name": "failed_at",
197
+ "type": "timestamp with time zone",
198
+ "primaryKey": false,
199
+ "notNull": false
200
+ },
201
+ "provider": {
202
+ "name": "provider",
203
+ "type": "text",
204
+ "primaryKey": false,
205
+ "notNull": false
206
+ },
207
+ "model": {
208
+ "name": "model",
209
+ "type": "text",
210
+ "primaryKey": false,
211
+ "notNull": false
212
+ },
213
+ "last_error_code": {
214
+ "name": "last_error_code",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false
218
+ },
219
+ "last_error_message": {
220
+ "name": "last_error_message",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false
224
+ },
225
+ "metadata": {
226
+ "name": "metadata",
227
+ "type": "jsonb",
228
+ "primaryKey": false,
229
+ "notNull": false
230
+ },
231
+ "created_at": {
232
+ "name": "created_at",
233
+ "type": "timestamp with time zone",
234
+ "primaryKey": false,
235
+ "notNull": true,
236
+ "default": "now()"
237
+ },
238
+ "updated_at": {
239
+ "name": "updated_at",
240
+ "type": "timestamp with time zone",
241
+ "primaryKey": false,
242
+ "notNull": true,
243
+ "default": "now()"
244
+ }
245
+ },
246
+ "indexes": {
247
+ "invocations_scope_idempotency_key_unique": {
248
+ "name": "invocations_scope_idempotency_key_unique",
249
+ "columns": [
250
+ {
251
+ "expression": "scope",
252
+ "isExpression": false,
253
+ "asc": true,
254
+ "nulls": "last"
255
+ },
256
+ {
257
+ "expression": "idempotency_key",
258
+ "isExpression": false,
259
+ "asc": true,
260
+ "nulls": "last"
261
+ }
262
+ ],
263
+ "isUnique": true,
264
+ "where": "\"agent_runtime\".\"invocations\".\"idempotency_key\" is not null",
265
+ "concurrently": false,
266
+ "method": "btree",
267
+ "with": {}
268
+ },
269
+ "invocations_active_run_id_unique": {
270
+ "name": "invocations_active_run_id_unique",
271
+ "columns": [
272
+ {
273
+ "expression": "active_run_id",
274
+ "isExpression": false,
275
+ "asc": true,
276
+ "nulls": "last"
277
+ }
278
+ ],
279
+ "isUnique": true,
280
+ "where": "\"agent_runtime\".\"invocations\".\"active_run_id\" is not null",
281
+ "concurrently": false,
282
+ "method": "btree",
283
+ "with": {}
284
+ },
285
+ "invocations_status_next_attempt_idx": {
286
+ "name": "invocations_status_next_attempt_idx",
287
+ "columns": [
288
+ {
289
+ "expression": "status",
290
+ "isExpression": false,
291
+ "asc": true,
292
+ "nulls": "last"
293
+ },
294
+ {
295
+ "expression": "next_attempt_at",
296
+ "isExpression": false,
297
+ "asc": true,
298
+ "nulls": "last"
299
+ }
300
+ ],
301
+ "isUnique": false,
302
+ "concurrently": false,
303
+ "method": "btree",
304
+ "with": {}
305
+ },
306
+ "invocations_status_lease_expires_idx": {
307
+ "name": "invocations_status_lease_expires_idx",
308
+ "columns": [
309
+ {
310
+ "expression": "status",
311
+ "isExpression": false,
312
+ "asc": true,
313
+ "nulls": "last"
314
+ },
315
+ {
316
+ "expression": "lease_expires_at",
317
+ "isExpression": false,
318
+ "asc": true,
319
+ "nulls": "last"
320
+ }
321
+ ],
322
+ "isUnique": false,
323
+ "concurrently": false,
324
+ "method": "btree",
325
+ "with": {}
326
+ },
327
+ "invocations_scope_status_next_attempt_idx": {
328
+ "name": "invocations_scope_status_next_attempt_idx",
329
+ "columns": [
330
+ {
331
+ "expression": "scope",
332
+ "isExpression": false,
333
+ "asc": true,
334
+ "nulls": "last"
335
+ },
336
+ {
337
+ "expression": "status",
338
+ "isExpression": false,
339
+ "asc": true,
340
+ "nulls": "last"
341
+ },
342
+ {
343
+ "expression": "next_attempt_at",
344
+ "isExpression": false,
345
+ "asc": true,
346
+ "nulls": "last"
347
+ }
348
+ ],
349
+ "isUnique": false,
350
+ "concurrently": false,
351
+ "method": "btree",
352
+ "with": {}
353
+ },
354
+ "invocations_scope_created_idx": {
355
+ "name": "invocations_scope_created_idx",
356
+ "columns": [
357
+ {
358
+ "expression": "scope",
359
+ "isExpression": false,
360
+ "asc": true,
361
+ "nulls": "last"
362
+ },
363
+ {
364
+ "expression": "created_at",
365
+ "isExpression": false,
366
+ "asc": true,
367
+ "nulls": "last"
368
+ }
369
+ ],
370
+ "isUnique": false,
371
+ "concurrently": false,
372
+ "method": "btree",
373
+ "with": {}
374
+ }
375
+ },
376
+ "foreignKeys": {},
377
+ "compositePrimaryKeys": {},
378
+ "uniqueConstraints": {},
379
+ "policies": {},
380
+ "checkConstraints": {},
381
+ "isRLSEnabled": false
382
+ },
383
+ "agent_runtime.policy_decisions": {
384
+ "name": "policy_decisions",
385
+ "schema": "agent_runtime",
386
+ "columns": {
387
+ "id": {
388
+ "name": "id",
389
+ "type": "bigint",
390
+ "primaryKey": true,
391
+ "notNull": true,
392
+ "identity": {
393
+ "type": "always",
394
+ "name": "policy_decisions_id_seq",
395
+ "schema": "agent_runtime",
396
+ "increment": "1",
397
+ "startWith": "1",
398
+ "minValue": "1",
399
+ "maxValue": "9223372036854775807",
400
+ "cache": "1",
401
+ "cycle": false
402
+ }
403
+ },
404
+ "scope": {
405
+ "name": "scope",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true
409
+ },
410
+ "invocation_id": {
411
+ "name": "invocation_id",
412
+ "type": "bigint",
413
+ "primaryKey": false,
414
+ "notNull": true
415
+ },
416
+ "run_id": {
417
+ "name": "run_id",
418
+ "type": "uuid",
419
+ "primaryKey": false,
420
+ "notNull": true
421
+ },
422
+ "tool_name": {
423
+ "name": "tool_name",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": false
427
+ },
428
+ "rule": {
429
+ "name": "rule",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": true
433
+ },
434
+ "decision": {
435
+ "name": "decision",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": true
439
+ },
440
+ "detail": {
441
+ "name": "detail",
442
+ "type": "jsonb",
443
+ "primaryKey": false,
444
+ "notNull": false
445
+ },
446
+ "created_at": {
447
+ "name": "created_at",
448
+ "type": "timestamp with time zone",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "default": "now()"
452
+ }
453
+ },
454
+ "indexes": {
455
+ "policy_decisions_invocation_idx": {
456
+ "name": "policy_decisions_invocation_idx",
457
+ "columns": [
458
+ {
459
+ "expression": "invocation_id",
460
+ "isExpression": false,
461
+ "asc": true,
462
+ "nulls": "last"
463
+ }
464
+ ],
465
+ "isUnique": false,
466
+ "concurrently": false,
467
+ "method": "btree",
468
+ "with": {}
469
+ },
470
+ "policy_decisions_run_idx": {
471
+ "name": "policy_decisions_run_idx",
472
+ "columns": [
473
+ {
474
+ "expression": "run_id",
475
+ "isExpression": false,
476
+ "asc": true,
477
+ "nulls": "last"
478
+ }
479
+ ],
480
+ "isUnique": false,
481
+ "concurrently": false,
482
+ "method": "btree",
483
+ "with": {}
484
+ }
485
+ },
486
+ "foreignKeys": {
487
+ "policy_decisions_invocation_id_invocations_id_fk": {
488
+ "name": "policy_decisions_invocation_id_invocations_id_fk",
489
+ "tableFrom": "policy_decisions",
490
+ "tableTo": "invocations",
491
+ "schemaTo": "agent_runtime",
492
+ "columnsFrom": [
493
+ "invocation_id"
494
+ ],
495
+ "columnsTo": [
496
+ "id"
497
+ ],
498
+ "onDelete": "no action",
499
+ "onUpdate": "no action"
500
+ }
501
+ },
502
+ "compositePrimaryKeys": {},
503
+ "uniqueConstraints": {},
504
+ "policies": {},
505
+ "checkConstraints": {},
506
+ "isRLSEnabled": false
507
+ },
508
+ "agent_runtime.tool_call_audits": {
509
+ "name": "tool_call_audits",
510
+ "schema": "agent_runtime",
511
+ "columns": {
512
+ "id": {
513
+ "name": "id",
514
+ "type": "bigint",
515
+ "primaryKey": true,
516
+ "notNull": true,
517
+ "identity": {
518
+ "type": "always",
519
+ "name": "tool_call_audits_id_seq",
520
+ "schema": "agent_runtime",
521
+ "increment": "1",
522
+ "startWith": "1",
523
+ "minValue": "1",
524
+ "maxValue": "9223372036854775807",
525
+ "cache": "1",
526
+ "cycle": false
527
+ }
528
+ },
529
+ "invocation_id": {
530
+ "name": "invocation_id",
531
+ "type": "bigint",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "scope": {
536
+ "name": "scope",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "run_id": {
542
+ "name": "run_id",
543
+ "type": "uuid",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "tool_name": {
548
+ "name": "tool_name",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": true
552
+ },
553
+ "idempotency_key": {
554
+ "name": "idempotency_key",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": false
558
+ },
559
+ "status": {
560
+ "name": "status",
561
+ "type": "tool_call_status",
562
+ "typeSchema": "agent_runtime",
563
+ "primaryKey": false,
564
+ "notNull": true
565
+ },
566
+ "requested_at": {
567
+ "name": "requested_at",
568
+ "type": "timestamp with time zone",
569
+ "primaryKey": false,
570
+ "notNull": true,
571
+ "default": "now()"
572
+ },
573
+ "completed_at": {
574
+ "name": "completed_at",
575
+ "type": "timestamp with time zone",
576
+ "primaryKey": false,
577
+ "notNull": false
578
+ },
579
+ "error_code": {
580
+ "name": "error_code",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": false
584
+ },
585
+ "request_snapshot": {
586
+ "name": "request_snapshot",
587
+ "type": "jsonb",
588
+ "primaryKey": false,
589
+ "notNull": false
590
+ },
591
+ "metadata": {
592
+ "name": "metadata",
593
+ "type": "jsonb",
594
+ "primaryKey": false,
595
+ "notNull": false
596
+ },
597
+ "created_at": {
598
+ "name": "created_at",
599
+ "type": "timestamp with time zone",
600
+ "primaryKey": false,
601
+ "notNull": true,
602
+ "default": "now()"
603
+ }
604
+ },
605
+ "indexes": {
606
+ "tool_call_audits_scope_tool_idempotency_unique": {
607
+ "name": "tool_call_audits_scope_tool_idempotency_unique",
608
+ "columns": [
609
+ {
610
+ "expression": "scope",
611
+ "isExpression": false,
612
+ "asc": true,
613
+ "nulls": "last"
614
+ },
615
+ {
616
+ "expression": "tool_name",
617
+ "isExpression": false,
618
+ "asc": true,
619
+ "nulls": "last"
620
+ },
621
+ {
622
+ "expression": "idempotency_key",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ }
627
+ ],
628
+ "isUnique": true,
629
+ "where": "\"agent_runtime\".\"tool_call_audits\".\"idempotency_key\" is not null",
630
+ "concurrently": false,
631
+ "method": "btree",
632
+ "with": {}
633
+ },
634
+ "tool_call_audits_invocation_idx": {
635
+ "name": "tool_call_audits_invocation_idx",
636
+ "columns": [
637
+ {
638
+ "expression": "invocation_id",
639
+ "isExpression": false,
640
+ "asc": true,
641
+ "nulls": "last"
642
+ }
643
+ ],
644
+ "isUnique": false,
645
+ "concurrently": false,
646
+ "method": "btree",
647
+ "with": {}
648
+ },
649
+ "tool_call_audits_run_idx": {
650
+ "name": "tool_call_audits_run_idx",
651
+ "columns": [
652
+ {
653
+ "expression": "run_id",
654
+ "isExpression": false,
655
+ "asc": true,
656
+ "nulls": "last"
657
+ }
658
+ ],
659
+ "isUnique": false,
660
+ "concurrently": false,
661
+ "method": "btree",
662
+ "with": {}
663
+ }
664
+ },
665
+ "foreignKeys": {
666
+ "tool_call_audits_invocation_id_invocations_id_fk": {
667
+ "name": "tool_call_audits_invocation_id_invocations_id_fk",
668
+ "tableFrom": "tool_call_audits",
669
+ "tableTo": "invocations",
670
+ "schemaTo": "agent_runtime",
671
+ "columnsFrom": [
672
+ "invocation_id"
673
+ ],
674
+ "columnsTo": [
675
+ "id"
676
+ ],
677
+ "onDelete": "no action",
678
+ "onUpdate": "no action"
679
+ }
680
+ },
681
+ "compositePrimaryKeys": {},
682
+ "uniqueConstraints": {},
683
+ "policies": {},
684
+ "checkConstraints": {},
685
+ "isRLSEnabled": false
686
+ },
687
+ "agent_runtime.worker_leases": {
688
+ "name": "worker_leases",
689
+ "schema": "agent_runtime",
690
+ "columns": {
691
+ "name": {
692
+ "name": "name",
693
+ "type": "text",
694
+ "primaryKey": true,
695
+ "notNull": true
696
+ },
697
+ "holder_id": {
698
+ "name": "holder_id",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": true
702
+ },
703
+ "acquired_at": {
704
+ "name": "acquired_at",
705
+ "type": "timestamp with time zone",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "default": "now()"
709
+ },
710
+ "heartbeat_at": {
711
+ "name": "heartbeat_at",
712
+ "type": "timestamp with time zone",
713
+ "primaryKey": false,
714
+ "notNull": true,
715
+ "default": "now()"
716
+ },
717
+ "expires_at": {
718
+ "name": "expires_at",
719
+ "type": "timestamp with time zone",
720
+ "primaryKey": false,
721
+ "notNull": true
722
+ }
723
+ },
724
+ "indexes": {},
725
+ "foreignKeys": {},
726
+ "compositePrimaryKeys": {},
727
+ "uniqueConstraints": {},
728
+ "policies": {},
729
+ "checkConstraints": {},
730
+ "isRLSEnabled": false
731
+ }
732
+ },
733
+ "enums": {
734
+ "agent_runtime.invocation_status": {
735
+ "name": "invocation_status",
736
+ "schema": "agent_runtime",
737
+ "values": [
738
+ "pending",
739
+ "running",
740
+ "awaiting_approval",
741
+ "succeeded",
742
+ "failed",
743
+ "cancelled"
744
+ ]
745
+ },
746
+ "agent_runtime.tool_call_status": {
747
+ "name": "tool_call_status",
748
+ "schema": "agent_runtime",
749
+ "values": [
750
+ "started",
751
+ "succeeded",
752
+ "failed"
753
+ ]
754
+ }
755
+ },
756
+ "schemas": {
757
+ "agent_runtime": "agent_runtime"
758
+ },
759
+ "sequences": {},
760
+ "roles": {},
761
+ "policies": {},
762
+ "views": {},
763
+ "_meta": {
764
+ "columns": {},
765
+ "schemas": {},
766
+ "tables": {}
767
+ }
768
+ }