@inf-monkeys-tech/monkeys 1.0.19 → 1.0.21
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.
- package/lib/contracts/agent.d.ts +513 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +155 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/tenant.d.ts +8 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +1 -0
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +142 -2
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +145 -2
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +123 -2
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +130 -2
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-command-result.schema.json +15 -0
- package/lib/json-schema/agent-session-command.schema.json +20 -0
- package/lib/json-schema/agent-session-event.schema.json +179 -0
- package/lib/json-schema/agent-session-run-event.schema.json +1501 -0
- package/lib/json-schema/agent-session-run.schema.json +72 -0
- package/lib/json-schema/agent-session-targeted-command.schema.json +302 -0
- package/lib/json-schema/agent-session-view-model.schema.json +179 -0
- package/lib/json-schema/index.json +3 -0
- package/lib/json-schema/tenant-product-config.schema.json +6 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +6 -0
- package/lib/schemas/index.d.ts +504 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/agent-session-runs.json +51 -0
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"minLength": 1,
|
|
17
17
|
"maxLength": 256
|
|
18
18
|
},
|
|
19
|
+
"runId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"maxLength": 256
|
|
23
|
+
},
|
|
19
24
|
"idempotencyKey": {
|
|
20
25
|
"type": "string",
|
|
21
26
|
"minLength": 1,
|
|
@@ -56,6 +61,13 @@
|
|
|
56
61
|
"maxLength": 256
|
|
57
62
|
}
|
|
58
63
|
},
|
|
64
|
+
"termination": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"requested",
|
|
68
|
+
"confirmed"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
59
71
|
"error": {
|
|
60
72
|
"type": "object",
|
|
61
73
|
"properties": {
|
|
@@ -63,6 +75,9 @@
|
|
|
63
75
|
"type": "string",
|
|
64
76
|
"enum": [
|
|
65
77
|
"SESSION_NOT_FOUND",
|
|
78
|
+
"RUN_NOT_FOUND",
|
|
79
|
+
"RUN_ALREADY_FINISHED",
|
|
80
|
+
"STOP_TIMEOUT",
|
|
66
81
|
"COMMAND_NOT_SUPPORTED",
|
|
67
82
|
"CAPABILITY_UNAVAILABLE",
|
|
68
83
|
"SEQUENCE_CONFLICT",
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"minLength": 1,
|
|
19
19
|
"maxLength": 256
|
|
20
20
|
},
|
|
21
|
+
"runId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 256
|
|
25
|
+
},
|
|
21
26
|
"idempotencyKey": {
|
|
22
27
|
"type": "string",
|
|
23
28
|
"minLength": 1,
|
|
@@ -77,6 +82,11 @@
|
|
|
77
82
|
"minLength": 1,
|
|
78
83
|
"maxLength": 256
|
|
79
84
|
},
|
|
85
|
+
"runId": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"minLength": 1,
|
|
88
|
+
"maxLength": 256
|
|
89
|
+
},
|
|
80
90
|
"idempotencyKey": {
|
|
81
91
|
"type": "string",
|
|
82
92
|
"minLength": 1,
|
|
@@ -137,6 +147,11 @@
|
|
|
137
147
|
"minLength": 1,
|
|
138
148
|
"maxLength": 256
|
|
139
149
|
},
|
|
150
|
+
"runId": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"minLength": 1,
|
|
153
|
+
"maxLength": 256
|
|
154
|
+
},
|
|
140
155
|
"idempotencyKey": {
|
|
141
156
|
"type": "string",
|
|
142
157
|
"minLength": 1,
|
|
@@ -200,6 +215,11 @@
|
|
|
200
215
|
"minLength": 1,
|
|
201
216
|
"maxLength": 256
|
|
202
217
|
},
|
|
218
|
+
"runId": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1,
|
|
221
|
+
"maxLength": 256
|
|
222
|
+
},
|
|
203
223
|
"idempotencyKey": {
|
|
204
224
|
"type": "string",
|
|
205
225
|
"minLength": 1,
|
|
@@ -18,6 +18,16 @@
|
|
|
18
18
|
"minLength": 1,
|
|
19
19
|
"maxLength": 256
|
|
20
20
|
},
|
|
21
|
+
"runId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 256
|
|
25
|
+
},
|
|
26
|
+
"sourceMessageId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 256
|
|
30
|
+
},
|
|
21
31
|
"sequence": {
|
|
22
32
|
"type": "integer",
|
|
23
33
|
"minimum": 0,
|
|
@@ -114,6 +124,16 @@
|
|
|
114
124
|
"minLength": 1,
|
|
115
125
|
"maxLength": 256
|
|
116
126
|
},
|
|
127
|
+
"runId": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"maxLength": 256
|
|
131
|
+
},
|
|
132
|
+
"sourceMessageId": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"maxLength": 256
|
|
136
|
+
},
|
|
117
137
|
"sequence": {
|
|
118
138
|
"type": "integer",
|
|
119
139
|
"minimum": 0,
|
|
@@ -189,6 +209,16 @@
|
|
|
189
209
|
"minLength": 1,
|
|
190
210
|
"maxLength": 256
|
|
191
211
|
},
|
|
212
|
+
"runId": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"minLength": 1,
|
|
215
|
+
"maxLength": 256
|
|
216
|
+
},
|
|
217
|
+
"sourceMessageId": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"minLength": 1,
|
|
220
|
+
"maxLength": 256
|
|
221
|
+
},
|
|
192
222
|
"sequence": {
|
|
193
223
|
"type": "integer",
|
|
194
224
|
"minimum": 0,
|
|
@@ -298,6 +328,16 @@
|
|
|
298
328
|
"minLength": 1,
|
|
299
329
|
"maxLength": 256
|
|
300
330
|
},
|
|
331
|
+
"runId": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"minLength": 1,
|
|
334
|
+
"maxLength": 256
|
|
335
|
+
},
|
|
336
|
+
"sourceMessageId": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"minLength": 1,
|
|
339
|
+
"maxLength": 256
|
|
340
|
+
},
|
|
301
341
|
"sequence": {
|
|
302
342
|
"type": "integer",
|
|
303
343
|
"minimum": 0,
|
|
@@ -379,6 +419,16 @@
|
|
|
379
419
|
"minLength": 1,
|
|
380
420
|
"maxLength": 256
|
|
381
421
|
},
|
|
422
|
+
"runId": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 1,
|
|
425
|
+
"maxLength": 256
|
|
426
|
+
},
|
|
427
|
+
"sourceMessageId": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 1,
|
|
430
|
+
"maxLength": 256
|
|
431
|
+
},
|
|
382
432
|
"sequence": {
|
|
383
433
|
"type": "integer",
|
|
384
434
|
"minimum": 0,
|
|
@@ -477,6 +527,16 @@
|
|
|
477
527
|
"minLength": 1,
|
|
478
528
|
"maxLength": 256
|
|
479
529
|
},
|
|
530
|
+
"runId": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"minLength": 1,
|
|
533
|
+
"maxLength": 256
|
|
534
|
+
},
|
|
535
|
+
"sourceMessageId": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"minLength": 1,
|
|
538
|
+
"maxLength": 256
|
|
539
|
+
},
|
|
480
540
|
"sequence": {
|
|
481
541
|
"type": "integer",
|
|
482
542
|
"minimum": 0,
|
|
@@ -565,6 +625,16 @@
|
|
|
565
625
|
"minLength": 1,
|
|
566
626
|
"maxLength": 256
|
|
567
627
|
},
|
|
628
|
+
"runId": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"minLength": 1,
|
|
631
|
+
"maxLength": 256
|
|
632
|
+
},
|
|
633
|
+
"sourceMessageId": {
|
|
634
|
+
"type": "string",
|
|
635
|
+
"minLength": 1,
|
|
636
|
+
"maxLength": 256
|
|
637
|
+
},
|
|
568
638
|
"sequence": {
|
|
569
639
|
"type": "integer",
|
|
570
640
|
"minimum": 0,
|
|
@@ -601,6 +671,35 @@
|
|
|
601
671
|
},
|
|
602
672
|
"detail": {
|
|
603
673
|
"type": "string"
|
|
674
|
+
},
|
|
675
|
+
"startedAt": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"format": "date-time",
|
|
678
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
679
|
+
},
|
|
680
|
+
"stoppingRequestedAt": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"format": "date-time",
|
|
683
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
684
|
+
},
|
|
685
|
+
"stoppedAt": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"format": "date-time",
|
|
688
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
689
|
+
},
|
|
690
|
+
"completedAt": {
|
|
691
|
+
"type": "string",
|
|
692
|
+
"format": "date-time",
|
|
693
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
694
|
+
},
|
|
695
|
+
"failedAt": {
|
|
696
|
+
"type": "string",
|
|
697
|
+
"format": "date-time",
|
|
698
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
699
|
+
},
|
|
700
|
+
"durationMs": {
|
|
701
|
+
"type": "number",
|
|
702
|
+
"minimum": 0
|
|
604
703
|
}
|
|
605
704
|
},
|
|
606
705
|
"required": [
|
|
@@ -638,6 +737,16 @@
|
|
|
638
737
|
"minLength": 1,
|
|
639
738
|
"maxLength": 256
|
|
640
739
|
},
|
|
740
|
+
"runId": {
|
|
741
|
+
"type": "string",
|
|
742
|
+
"minLength": 1,
|
|
743
|
+
"maxLength": 256
|
|
744
|
+
},
|
|
745
|
+
"sourceMessageId": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"minLength": 1,
|
|
748
|
+
"maxLength": 256
|
|
749
|
+
},
|
|
641
750
|
"sequence": {
|
|
642
751
|
"type": "integer",
|
|
643
752
|
"minimum": 0,
|
|
@@ -744,6 +853,16 @@
|
|
|
744
853
|
"minLength": 1,
|
|
745
854
|
"maxLength": 256
|
|
746
855
|
},
|
|
856
|
+
"runId": {
|
|
857
|
+
"type": "string",
|
|
858
|
+
"minLength": 1,
|
|
859
|
+
"maxLength": 256
|
|
860
|
+
},
|
|
861
|
+
"sourceMessageId": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"minLength": 1,
|
|
864
|
+
"maxLength": 256
|
|
865
|
+
},
|
|
747
866
|
"sequence": {
|
|
748
867
|
"type": "integer",
|
|
749
868
|
"minimum": 0,
|
|
@@ -824,6 +943,16 @@
|
|
|
824
943
|
"minLength": 1,
|
|
825
944
|
"maxLength": 256
|
|
826
945
|
},
|
|
946
|
+
"runId": {
|
|
947
|
+
"type": "string",
|
|
948
|
+
"minLength": 1,
|
|
949
|
+
"maxLength": 256
|
|
950
|
+
},
|
|
951
|
+
"sourceMessageId": {
|
|
952
|
+
"type": "string",
|
|
953
|
+
"minLength": 1,
|
|
954
|
+
"maxLength": 256
|
|
955
|
+
},
|
|
827
956
|
"sequence": {
|
|
828
957
|
"type": "integer",
|
|
829
958
|
"minimum": 0,
|
|
@@ -897,6 +1026,16 @@
|
|
|
897
1026
|
"minLength": 1,
|
|
898
1027
|
"maxLength": 256
|
|
899
1028
|
},
|
|
1029
|
+
"runId": {
|
|
1030
|
+
"type": "string",
|
|
1031
|
+
"minLength": 1,
|
|
1032
|
+
"maxLength": 256
|
|
1033
|
+
},
|
|
1034
|
+
"sourceMessageId": {
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"minLength": 1,
|
|
1037
|
+
"maxLength": 256
|
|
1038
|
+
},
|
|
900
1039
|
"sequence": {
|
|
901
1040
|
"type": "integer",
|
|
902
1041
|
"minimum": 0,
|
|
@@ -981,6 +1120,16 @@
|
|
|
981
1120
|
"minLength": 1,
|
|
982
1121
|
"maxLength": 256
|
|
983
1122
|
},
|
|
1123
|
+
"runId": {
|
|
1124
|
+
"type": "string",
|
|
1125
|
+
"minLength": 1,
|
|
1126
|
+
"maxLength": 256
|
|
1127
|
+
},
|
|
1128
|
+
"sourceMessageId": {
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"minLength": 1,
|
|
1131
|
+
"maxLength": 256
|
|
1132
|
+
},
|
|
984
1133
|
"sequence": {
|
|
985
1134
|
"type": "integer",
|
|
986
1135
|
"minimum": 0,
|
|
@@ -1056,6 +1205,16 @@
|
|
|
1056
1205
|
"minLength": 1,
|
|
1057
1206
|
"maxLength": 256
|
|
1058
1207
|
},
|
|
1208
|
+
"runId": {
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"minLength": 1,
|
|
1211
|
+
"maxLength": 256
|
|
1212
|
+
},
|
|
1213
|
+
"sourceMessageId": {
|
|
1214
|
+
"type": "string",
|
|
1215
|
+
"minLength": 1,
|
|
1216
|
+
"maxLength": 256
|
|
1217
|
+
},
|
|
1059
1218
|
"sequence": {
|
|
1060
1219
|
"type": "integer",
|
|
1061
1220
|
"minimum": 0,
|
|
@@ -1134,6 +1293,16 @@
|
|
|
1134
1293
|
"minLength": 1,
|
|
1135
1294
|
"maxLength": 256
|
|
1136
1295
|
},
|
|
1296
|
+
"runId": {
|
|
1297
|
+
"type": "string",
|
|
1298
|
+
"minLength": 1,
|
|
1299
|
+
"maxLength": 256
|
|
1300
|
+
},
|
|
1301
|
+
"sourceMessageId": {
|
|
1302
|
+
"type": "string",
|
|
1303
|
+
"minLength": 1,
|
|
1304
|
+
"maxLength": 256
|
|
1305
|
+
},
|
|
1137
1306
|
"sequence": {
|
|
1138
1307
|
"type": "integer",
|
|
1139
1308
|
"minimum": 0,
|
|
@@ -1216,6 +1385,16 @@
|
|
|
1216
1385
|
"minLength": 1,
|
|
1217
1386
|
"maxLength": 256
|
|
1218
1387
|
},
|
|
1388
|
+
"runId": {
|
|
1389
|
+
"type": "string",
|
|
1390
|
+
"minLength": 1,
|
|
1391
|
+
"maxLength": 256
|
|
1392
|
+
},
|
|
1393
|
+
"sourceMessageId": {
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"minLength": 1,
|
|
1396
|
+
"maxLength": 256
|
|
1397
|
+
},
|
|
1219
1398
|
"sequence": {
|
|
1220
1399
|
"type": "integer",
|
|
1221
1400
|
"minimum": 0,
|