@inf-monkeys-tech/monkeys 1.0.20 → 1.0.22

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,677 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "allOf": [
4
+ {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "contract": {
10
+ "type": "string",
11
+ "const": "AgentSessionCommand"
12
+ },
13
+ "commandId": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256
17
+ },
18
+ "sessionId": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 256
22
+ },
23
+ "runId": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 256
27
+ },
28
+ "idempotencyKey": {
29
+ "type": "string",
30
+ "minLength": 1,
31
+ "maxLength": 256
32
+ },
33
+ "expectedSequence": {
34
+ "type": "integer",
35
+ "minimum": -1,
36
+ "maximum": 9007199254740991
37
+ },
38
+ "issuedAt": {
39
+ "type": "string",
40
+ "format": "date-time",
41
+ "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)))$"
42
+ },
43
+ "commandType": {
44
+ "type": "string",
45
+ "const": "stop"
46
+ },
47
+ "payload": {
48
+ "type": "object",
49
+ "properties": {
50
+ "reason": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ }
54
+ },
55
+ "additionalProperties": false
56
+ }
57
+ },
58
+ "required": [
59
+ "contract",
60
+ "commandId",
61
+ "sessionId",
62
+ "idempotencyKey",
63
+ "expectedSequence",
64
+ "issuedAt",
65
+ "commandType",
66
+ "payload"
67
+ ],
68
+ "additionalProperties": false
69
+ },
70
+ {
71
+ "type": "object",
72
+ "properties": {
73
+ "contract": {
74
+ "type": "string",
75
+ "const": "AgentSessionCommand"
76
+ },
77
+ "commandId": {
78
+ "type": "string",
79
+ "minLength": 1,
80
+ "maxLength": 256
81
+ },
82
+ "sessionId": {
83
+ "type": "string",
84
+ "minLength": 1,
85
+ "maxLength": 256
86
+ },
87
+ "runId": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "maxLength": 256
91
+ },
92
+ "idempotencyKey": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "maxLength": 256
96
+ },
97
+ "expectedSequence": {
98
+ "type": "integer",
99
+ "minimum": -1,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "issuedAt": {
103
+ "type": "string",
104
+ "format": "date-time",
105
+ "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)))$"
106
+ },
107
+ "commandType": {
108
+ "type": "string",
109
+ "const": "resume"
110
+ },
111
+ "payload": {
112
+ "type": "object",
113
+ "properties": {
114
+ "resumeEventId": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "maxLength": 256
118
+ }
119
+ },
120
+ "additionalProperties": false
121
+ }
122
+ },
123
+ "required": [
124
+ "contract",
125
+ "commandId",
126
+ "sessionId",
127
+ "idempotencyKey",
128
+ "expectedSequence",
129
+ "issuedAt",
130
+ "commandType",
131
+ "payload"
132
+ ],
133
+ "additionalProperties": false
134
+ },
135
+ {
136
+ "type": "object",
137
+ "properties": {
138
+ "contract": {
139
+ "type": "string",
140
+ "const": "AgentSessionCommand"
141
+ },
142
+ "commandId": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "maxLength": 256
146
+ },
147
+ "sessionId": {
148
+ "type": "string",
149
+ "minLength": 1,
150
+ "maxLength": 256
151
+ },
152
+ "runId": {
153
+ "type": "string",
154
+ "minLength": 1,
155
+ "maxLength": 256
156
+ },
157
+ "idempotencyKey": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 256
161
+ },
162
+ "expectedSequence": {
163
+ "type": "integer",
164
+ "minimum": -1,
165
+ "maximum": 9007199254740991
166
+ },
167
+ "issuedAt": {
168
+ "type": "string",
169
+ "format": "date-time",
170
+ "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)))$"
171
+ },
172
+ "commandType": {
173
+ "type": "string",
174
+ "const": "retry"
175
+ },
176
+ "payload": {
177
+ "type": "object",
178
+ "properties": {
179
+ "sourceEventId": {
180
+ "type": "string",
181
+ "minLength": 1,
182
+ "maxLength": 256
183
+ }
184
+ },
185
+ "required": [
186
+ "sourceEventId"
187
+ ],
188
+ "additionalProperties": false
189
+ }
190
+ },
191
+ "required": [
192
+ "contract",
193
+ "commandId",
194
+ "sessionId",
195
+ "idempotencyKey",
196
+ "expectedSequence",
197
+ "issuedAt",
198
+ "commandType",
199
+ "payload"
200
+ ],
201
+ "additionalProperties": false
202
+ },
203
+ {
204
+ "type": "object",
205
+ "properties": {
206
+ "contract": {
207
+ "type": "string",
208
+ "const": "AgentSessionCommand"
209
+ },
210
+ "commandId": {
211
+ "type": "string",
212
+ "minLength": 1,
213
+ "maxLength": 256
214
+ },
215
+ "sessionId": {
216
+ "type": "string",
217
+ "minLength": 1,
218
+ "maxLength": 256
219
+ },
220
+ "runId": {
221
+ "type": "string",
222
+ "minLength": 1,
223
+ "maxLength": 256
224
+ },
225
+ "idempotencyKey": {
226
+ "type": "string",
227
+ "minLength": 1,
228
+ "maxLength": 256
229
+ },
230
+ "expectedSequence": {
231
+ "type": "integer",
232
+ "minimum": -1,
233
+ "maximum": 9007199254740991
234
+ },
235
+ "issuedAt": {
236
+ "type": "string",
237
+ "format": "date-time",
238
+ "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)))$"
239
+ },
240
+ "commandType": {
241
+ "type": "string",
242
+ "const": "approval"
243
+ },
244
+ "payload": {
245
+ "type": "object",
246
+ "properties": {
247
+ "approvalId": {
248
+ "type": "string",
249
+ "minLength": 1,
250
+ "maxLength": 256
251
+ },
252
+ "decision": {
253
+ "type": "string",
254
+ "enum": [
255
+ "approved",
256
+ "rejected"
257
+ ]
258
+ },
259
+ "reason": {
260
+ "type": "string",
261
+ "minLength": 1
262
+ }
263
+ },
264
+ "required": [
265
+ "approvalId",
266
+ "decision"
267
+ ],
268
+ "additionalProperties": false
269
+ }
270
+ },
271
+ "required": [
272
+ "contract",
273
+ "commandId",
274
+ "sessionId",
275
+ "idempotencyKey",
276
+ "expectedSequence",
277
+ "issuedAt",
278
+ "commandType",
279
+ "payload"
280
+ ],
281
+ "additionalProperties": false
282
+ },
283
+ {
284
+ "type": "object",
285
+ "properties": {
286
+ "contract": {
287
+ "type": "string",
288
+ "const": "AgentSessionCommand"
289
+ },
290
+ "commandId": {
291
+ "type": "string",
292
+ "minLength": 1,
293
+ "maxLength": 256
294
+ },
295
+ "sessionId": {
296
+ "type": "string",
297
+ "minLength": 1,
298
+ "maxLength": 256
299
+ },
300
+ "runId": {
301
+ "type": "string",
302
+ "minLength": 1,
303
+ "maxLength": 256
304
+ },
305
+ "idempotencyKey": {
306
+ "type": "string",
307
+ "minLength": 1,
308
+ "maxLength": 256
309
+ },
310
+ "expectedSequence": {
311
+ "type": "integer",
312
+ "minimum": -1,
313
+ "maximum": 9007199254740991
314
+ },
315
+ "issuedAt": {
316
+ "type": "string",
317
+ "format": "date-time",
318
+ "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)))$"
319
+ },
320
+ "commandType": {
321
+ "type": "string",
322
+ "const": "fork"
323
+ },
324
+ "payload": {
325
+ "type": "object",
326
+ "properties": {
327
+ "sourceThreadId": {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "maxLength": 256
331
+ },
332
+ "sourceMessageId": {
333
+ "type": "string",
334
+ "minLength": 1,
335
+ "maxLength": 256
336
+ },
337
+ "sourceRunId": {
338
+ "type": "string",
339
+ "minLength": 1,
340
+ "maxLength": 256
341
+ },
342
+ "inheritance": {
343
+ "type": "object",
344
+ "properties": {
345
+ "messages": {
346
+ "type": "string",
347
+ "enum": [
348
+ "through-source-message",
349
+ "exclude"
350
+ ]
351
+ },
352
+ "attachments": {
353
+ "type": "string",
354
+ "enum": [
355
+ "inherit",
356
+ "exclude"
357
+ ]
358
+ },
359
+ "summaries": {
360
+ "type": "string",
361
+ "enum": [
362
+ "inherit",
363
+ "exclude"
364
+ ]
365
+ },
366
+ "toolResults": {
367
+ "type": "string",
368
+ "enum": [
369
+ "inherit",
370
+ "exclude"
371
+ ]
372
+ },
373
+ "codeChanges": {
374
+ "type": "string",
375
+ "enum": [
376
+ "inherit",
377
+ "exclude"
378
+ ]
379
+ }
380
+ },
381
+ "required": [
382
+ "messages",
383
+ "attachments",
384
+ "summaries",
385
+ "toolResults",
386
+ "codeChanges"
387
+ ],
388
+ "additionalProperties": false
389
+ }
390
+ },
391
+ "required": [
392
+ "sourceThreadId",
393
+ "sourceMessageId",
394
+ "sourceRunId",
395
+ "inheritance"
396
+ ],
397
+ "additionalProperties": false
398
+ }
399
+ },
400
+ "required": [
401
+ "contract",
402
+ "commandId",
403
+ "sessionId",
404
+ "idempotencyKey",
405
+ "expectedSequence",
406
+ "issuedAt",
407
+ "commandType",
408
+ "payload"
409
+ ],
410
+ "additionalProperties": false
411
+ },
412
+ {
413
+ "type": "object",
414
+ "properties": {
415
+ "contract": {
416
+ "type": "string",
417
+ "const": "AgentSessionCommand"
418
+ },
419
+ "commandId": {
420
+ "type": "string",
421
+ "minLength": 1,
422
+ "maxLength": 256
423
+ },
424
+ "sessionId": {
425
+ "type": "string",
426
+ "minLength": 1,
427
+ "maxLength": 256
428
+ },
429
+ "runId": {
430
+ "type": "string",
431
+ "minLength": 1,
432
+ "maxLength": 256
433
+ },
434
+ "idempotencyKey": {
435
+ "type": "string",
436
+ "minLength": 1,
437
+ "maxLength": 256
438
+ },
439
+ "expectedSequence": {
440
+ "type": "integer",
441
+ "minimum": -1,
442
+ "maximum": 9007199254740991
443
+ },
444
+ "issuedAt": {
445
+ "type": "string",
446
+ "format": "date-time",
447
+ "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)))$"
448
+ },
449
+ "commandType": {
450
+ "type": "string",
451
+ "const": "edit-and-rerun"
452
+ },
453
+ "payload": {
454
+ "type": "object",
455
+ "properties": {
456
+ "sourceThreadId": {
457
+ "type": "string",
458
+ "minLength": 1,
459
+ "maxLength": 256
460
+ },
461
+ "sourceMessageId": {
462
+ "type": "string",
463
+ "minLength": 1,
464
+ "maxLength": 256
465
+ },
466
+ "sourceRunId": {
467
+ "type": "string",
468
+ "minLength": 1,
469
+ "maxLength": 256
470
+ },
471
+ "replacementParts": {
472
+ "minItems": 1,
473
+ "type": "array",
474
+ "items": {
475
+ "$ref": "#/$defs/__schema0"
476
+ }
477
+ },
478
+ "inheritance": {
479
+ "type": "object",
480
+ "properties": {
481
+ "messages": {
482
+ "type": "string",
483
+ "enum": [
484
+ "through-source-message",
485
+ "exclude"
486
+ ]
487
+ },
488
+ "attachments": {
489
+ "type": "string",
490
+ "enum": [
491
+ "inherit",
492
+ "exclude"
493
+ ]
494
+ },
495
+ "summaries": {
496
+ "type": "string",
497
+ "enum": [
498
+ "inherit",
499
+ "exclude"
500
+ ]
501
+ },
502
+ "toolResults": {
503
+ "type": "string",
504
+ "enum": [
505
+ "inherit",
506
+ "exclude"
507
+ ]
508
+ },
509
+ "codeChanges": {
510
+ "type": "string",
511
+ "enum": [
512
+ "inherit",
513
+ "exclude"
514
+ ]
515
+ }
516
+ },
517
+ "required": [
518
+ "messages",
519
+ "attachments",
520
+ "summaries",
521
+ "toolResults",
522
+ "codeChanges"
523
+ ],
524
+ "additionalProperties": false
525
+ }
526
+ },
527
+ "required": [
528
+ "sourceThreadId",
529
+ "sourceMessageId",
530
+ "sourceRunId",
531
+ "replacementParts",
532
+ "inheritance"
533
+ ],
534
+ "additionalProperties": false
535
+ }
536
+ },
537
+ "required": [
538
+ "contract",
539
+ "commandId",
540
+ "sessionId",
541
+ "idempotencyKey",
542
+ "expectedSequence",
543
+ "issuedAt",
544
+ "commandType",
545
+ "payload"
546
+ ],
547
+ "additionalProperties": false
548
+ },
549
+ {
550
+ "type": "object",
551
+ "properties": {
552
+ "contract": {
553
+ "type": "string",
554
+ "const": "AgentSessionCommand"
555
+ },
556
+ "commandId": {
557
+ "type": "string",
558
+ "minLength": 1,
559
+ "maxLength": 256
560
+ },
561
+ "sessionId": {
562
+ "type": "string",
563
+ "minLength": 1,
564
+ "maxLength": 256
565
+ },
566
+ "runId": {
567
+ "type": "string",
568
+ "minLength": 1,
569
+ "maxLength": 256
570
+ },
571
+ "idempotencyKey": {
572
+ "type": "string",
573
+ "minLength": 1,
574
+ "maxLength": 256
575
+ },
576
+ "expectedSequence": {
577
+ "type": "integer",
578
+ "minimum": -1,
579
+ "maximum": 9007199254740991
580
+ },
581
+ "issuedAt": {
582
+ "type": "string",
583
+ "format": "date-time",
584
+ "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)))$"
585
+ },
586
+ "commandType": {
587
+ "type": "string",
588
+ "const": "steer"
589
+ },
590
+ "payload": {
591
+ "type": "object",
592
+ "properties": {
593
+ "targetRunId": {
594
+ "type": "string",
595
+ "minLength": 1,
596
+ "maxLength": 256
597
+ },
598
+ "guidanceParts": {
599
+ "minItems": 1,
600
+ "type": "array",
601
+ "items": {
602
+ "$ref": "#/$defs/__schema0"
603
+ }
604
+ }
605
+ },
606
+ "required": [
607
+ "targetRunId",
608
+ "guidanceParts"
609
+ ],
610
+ "additionalProperties": false
611
+ }
612
+ },
613
+ "required": [
614
+ "contract",
615
+ "commandId",
616
+ "sessionId",
617
+ "idempotencyKey",
618
+ "expectedSequence",
619
+ "issuedAt",
620
+ "commandType",
621
+ "payload"
622
+ ],
623
+ "additionalProperties": false
624
+ }
625
+ ]
626
+ },
627
+ {
628
+ "type": "object",
629
+ "properties": {
630
+ "runId": {
631
+ "type": "string",
632
+ "minLength": 1,
633
+ "maxLength": 256
634
+ }
635
+ },
636
+ "required": [
637
+ "runId"
638
+ ],
639
+ "additionalProperties": false
640
+ }
641
+ ],
642
+ "$defs": {
643
+ "__schema0": {
644
+ "anyOf": [
645
+ {
646
+ "type": "string"
647
+ },
648
+ {
649
+ "type": "number"
650
+ },
651
+ {
652
+ "type": "boolean"
653
+ },
654
+ {
655
+ "type": "null"
656
+ },
657
+ {
658
+ "type": "array",
659
+ "items": {
660
+ "$ref": "#/$defs/__schema0"
661
+ }
662
+ },
663
+ {
664
+ "type": "object",
665
+ "propertyNames": {
666
+ "type": "string"
667
+ },
668
+ "additionalProperties": {
669
+ "$ref": "#/$defs/__schema0"
670
+ }
671
+ }
672
+ ]
673
+ }
674
+ },
675
+ "$id": "https://schemas.infmonkeys.com/contracts/agent-session-targeted-command.schema.json",
676
+ "title": "agent-session-targeted-command"
677
+ }