@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.
@@ -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,113 @@
56
61
  "maxLength": 256
57
62
  }
58
63
  },
64
+ "operation": {
65
+ "type": "object",
66
+ "properties": {
67
+ "lineage": {
68
+ "type": "object",
69
+ "properties": {
70
+ "forkedFromThreadId": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 256
74
+ },
75
+ "forkedFromMessageId": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 256
79
+ },
80
+ "sourceRunId": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 256
84
+ }
85
+ },
86
+ "required": [
87
+ "forkedFromThreadId",
88
+ "forkedFromMessageId",
89
+ "sourceRunId"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ "activeBranch": {
94
+ "type": "object",
95
+ "properties": {
96
+ "branchId": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 256
100
+ },
101
+ "threadId": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "maxLength": 256
105
+ },
106
+ "sourceMessageId": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "maxLength": 256
110
+ },
111
+ "runId": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "maxLength": 256
115
+ },
116
+ "lineage": {
117
+ "type": "object",
118
+ "properties": {
119
+ "forkedFromThreadId": {
120
+ "type": "string",
121
+ "minLength": 1,
122
+ "maxLength": 256
123
+ },
124
+ "forkedFromMessageId": {
125
+ "type": "string",
126
+ "minLength": 1,
127
+ "maxLength": 256
128
+ },
129
+ "sourceRunId": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "maxLength": 256
133
+ }
134
+ },
135
+ "required": [
136
+ "forkedFromThreadId",
137
+ "forkedFromMessageId",
138
+ "sourceRunId"
139
+ ],
140
+ "additionalProperties": false
141
+ },
142
+ "createdAt": {
143
+ "type": "string",
144
+ "format": "date-time",
145
+ "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)))$"
146
+ }
147
+ },
148
+ "required": [
149
+ "branchId",
150
+ "threadId",
151
+ "sourceMessageId",
152
+ "runId",
153
+ "createdAt"
154
+ ],
155
+ "additionalProperties": false
156
+ }
157
+ },
158
+ "required": [
159
+ "lineage",
160
+ "activeBranch"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ "termination": {
165
+ "type": "string",
166
+ "enum": [
167
+ "requested",
168
+ "confirmed"
169
+ ]
170
+ },
59
171
  "error": {
60
172
  "type": "object",
61
173
  "properties": {
@@ -63,6 +175,9 @@
63
175
  "type": "string",
64
176
  "enum": [
65
177
  "SESSION_NOT_FOUND",
178
+ "RUN_NOT_FOUND",
179
+ "RUN_ALREADY_FINISHED",
180
+ "STOP_TIMEOUT",
66
181
  "COMMAND_NOT_SUPPORTED",
67
182
  "CAPABILITY_UNAVAILABLE",
68
183
  "SEQUENCE_CONFLICT",
@@ -71,6 +186,11 @@
71
186
  "TARGET_EVENT_NOT_RETRYABLE",
72
187
  "APPROVAL_NOT_FOUND",
73
188
  "APPROVAL_ALREADY_RESOLVED",
189
+ "SOURCE_THREAD_NOT_FOUND",
190
+ "SOURCE_MESSAGE_NOT_FOUND",
191
+ "SOURCE_RUN_NOT_FOUND",
192
+ "SOURCE_LINEAGE_INVALID",
193
+ "ACTIVE_BRANCH_NOT_FOUND",
74
194
  "COMMAND_EXECUTION_FAILED"
75
195
  ]
76
196
  },
@@ -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,
@@ -257,8 +277,383 @@
257
277
  "payload"
258
278
  ],
259
279
  "additionalProperties": false
280
+ },
281
+ {
282
+ "type": "object",
283
+ "properties": {
284
+ "contract": {
285
+ "type": "string",
286
+ "const": "AgentSessionCommand"
287
+ },
288
+ "commandId": {
289
+ "type": "string",
290
+ "minLength": 1,
291
+ "maxLength": 256
292
+ },
293
+ "sessionId": {
294
+ "type": "string",
295
+ "minLength": 1,
296
+ "maxLength": 256
297
+ },
298
+ "runId": {
299
+ "type": "string",
300
+ "minLength": 1,
301
+ "maxLength": 256
302
+ },
303
+ "idempotencyKey": {
304
+ "type": "string",
305
+ "minLength": 1,
306
+ "maxLength": 256
307
+ },
308
+ "expectedSequence": {
309
+ "type": "integer",
310
+ "minimum": -1,
311
+ "maximum": 9007199254740991
312
+ },
313
+ "issuedAt": {
314
+ "type": "string",
315
+ "format": "date-time",
316
+ "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)))$"
317
+ },
318
+ "commandType": {
319
+ "type": "string",
320
+ "const": "fork"
321
+ },
322
+ "payload": {
323
+ "type": "object",
324
+ "properties": {
325
+ "sourceThreadId": {
326
+ "type": "string",
327
+ "minLength": 1,
328
+ "maxLength": 256
329
+ },
330
+ "sourceMessageId": {
331
+ "type": "string",
332
+ "minLength": 1,
333
+ "maxLength": 256
334
+ },
335
+ "sourceRunId": {
336
+ "type": "string",
337
+ "minLength": 1,
338
+ "maxLength": 256
339
+ },
340
+ "inheritance": {
341
+ "type": "object",
342
+ "properties": {
343
+ "messages": {
344
+ "type": "string",
345
+ "enum": [
346
+ "through-source-message",
347
+ "exclude"
348
+ ]
349
+ },
350
+ "attachments": {
351
+ "type": "string",
352
+ "enum": [
353
+ "inherit",
354
+ "exclude"
355
+ ]
356
+ },
357
+ "summaries": {
358
+ "type": "string",
359
+ "enum": [
360
+ "inherit",
361
+ "exclude"
362
+ ]
363
+ },
364
+ "toolResults": {
365
+ "type": "string",
366
+ "enum": [
367
+ "inherit",
368
+ "exclude"
369
+ ]
370
+ },
371
+ "codeChanges": {
372
+ "type": "string",
373
+ "enum": [
374
+ "inherit",
375
+ "exclude"
376
+ ]
377
+ }
378
+ },
379
+ "required": [
380
+ "messages",
381
+ "attachments",
382
+ "summaries",
383
+ "toolResults",
384
+ "codeChanges"
385
+ ],
386
+ "additionalProperties": false
387
+ }
388
+ },
389
+ "required": [
390
+ "sourceThreadId",
391
+ "sourceMessageId",
392
+ "sourceRunId",
393
+ "inheritance"
394
+ ],
395
+ "additionalProperties": false
396
+ }
397
+ },
398
+ "required": [
399
+ "contract",
400
+ "commandId",
401
+ "sessionId",
402
+ "idempotencyKey",
403
+ "expectedSequence",
404
+ "issuedAt",
405
+ "commandType",
406
+ "payload"
407
+ ],
408
+ "additionalProperties": false
409
+ },
410
+ {
411
+ "type": "object",
412
+ "properties": {
413
+ "contract": {
414
+ "type": "string",
415
+ "const": "AgentSessionCommand"
416
+ },
417
+ "commandId": {
418
+ "type": "string",
419
+ "minLength": 1,
420
+ "maxLength": 256
421
+ },
422
+ "sessionId": {
423
+ "type": "string",
424
+ "minLength": 1,
425
+ "maxLength": 256
426
+ },
427
+ "runId": {
428
+ "type": "string",
429
+ "minLength": 1,
430
+ "maxLength": 256
431
+ },
432
+ "idempotencyKey": {
433
+ "type": "string",
434
+ "minLength": 1,
435
+ "maxLength": 256
436
+ },
437
+ "expectedSequence": {
438
+ "type": "integer",
439
+ "minimum": -1,
440
+ "maximum": 9007199254740991
441
+ },
442
+ "issuedAt": {
443
+ "type": "string",
444
+ "format": "date-time",
445
+ "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)))$"
446
+ },
447
+ "commandType": {
448
+ "type": "string",
449
+ "const": "edit-and-rerun"
450
+ },
451
+ "payload": {
452
+ "type": "object",
453
+ "properties": {
454
+ "sourceThreadId": {
455
+ "type": "string",
456
+ "minLength": 1,
457
+ "maxLength": 256
458
+ },
459
+ "sourceMessageId": {
460
+ "type": "string",
461
+ "minLength": 1,
462
+ "maxLength": 256
463
+ },
464
+ "sourceRunId": {
465
+ "type": "string",
466
+ "minLength": 1,
467
+ "maxLength": 256
468
+ },
469
+ "replacementParts": {
470
+ "minItems": 1,
471
+ "type": "array",
472
+ "items": {
473
+ "$ref": "#/$defs/__schema0"
474
+ }
475
+ },
476
+ "inheritance": {
477
+ "type": "object",
478
+ "properties": {
479
+ "messages": {
480
+ "type": "string",
481
+ "enum": [
482
+ "through-source-message",
483
+ "exclude"
484
+ ]
485
+ },
486
+ "attachments": {
487
+ "type": "string",
488
+ "enum": [
489
+ "inherit",
490
+ "exclude"
491
+ ]
492
+ },
493
+ "summaries": {
494
+ "type": "string",
495
+ "enum": [
496
+ "inherit",
497
+ "exclude"
498
+ ]
499
+ },
500
+ "toolResults": {
501
+ "type": "string",
502
+ "enum": [
503
+ "inherit",
504
+ "exclude"
505
+ ]
506
+ },
507
+ "codeChanges": {
508
+ "type": "string",
509
+ "enum": [
510
+ "inherit",
511
+ "exclude"
512
+ ]
513
+ }
514
+ },
515
+ "required": [
516
+ "messages",
517
+ "attachments",
518
+ "summaries",
519
+ "toolResults",
520
+ "codeChanges"
521
+ ],
522
+ "additionalProperties": false
523
+ }
524
+ },
525
+ "required": [
526
+ "sourceThreadId",
527
+ "sourceMessageId",
528
+ "sourceRunId",
529
+ "replacementParts",
530
+ "inheritance"
531
+ ],
532
+ "additionalProperties": false
533
+ }
534
+ },
535
+ "required": [
536
+ "contract",
537
+ "commandId",
538
+ "sessionId",
539
+ "idempotencyKey",
540
+ "expectedSequence",
541
+ "issuedAt",
542
+ "commandType",
543
+ "payload"
544
+ ],
545
+ "additionalProperties": false
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "contract": {
551
+ "type": "string",
552
+ "const": "AgentSessionCommand"
553
+ },
554
+ "commandId": {
555
+ "type": "string",
556
+ "minLength": 1,
557
+ "maxLength": 256
558
+ },
559
+ "sessionId": {
560
+ "type": "string",
561
+ "minLength": 1,
562
+ "maxLength": 256
563
+ },
564
+ "runId": {
565
+ "type": "string",
566
+ "minLength": 1,
567
+ "maxLength": 256
568
+ },
569
+ "idempotencyKey": {
570
+ "type": "string",
571
+ "minLength": 1,
572
+ "maxLength": 256
573
+ },
574
+ "expectedSequence": {
575
+ "type": "integer",
576
+ "minimum": -1,
577
+ "maximum": 9007199254740991
578
+ },
579
+ "issuedAt": {
580
+ "type": "string",
581
+ "format": "date-time",
582
+ "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)))$"
583
+ },
584
+ "commandType": {
585
+ "type": "string",
586
+ "const": "steer"
587
+ },
588
+ "payload": {
589
+ "type": "object",
590
+ "properties": {
591
+ "targetRunId": {
592
+ "type": "string",
593
+ "minLength": 1,
594
+ "maxLength": 256
595
+ },
596
+ "guidanceParts": {
597
+ "minItems": 1,
598
+ "type": "array",
599
+ "items": {
600
+ "$ref": "#/$defs/__schema0"
601
+ }
602
+ }
603
+ },
604
+ "required": [
605
+ "targetRunId",
606
+ "guidanceParts"
607
+ ],
608
+ "additionalProperties": false
609
+ }
610
+ },
611
+ "required": [
612
+ "contract",
613
+ "commandId",
614
+ "sessionId",
615
+ "idempotencyKey",
616
+ "expectedSequence",
617
+ "issuedAt",
618
+ "commandType",
619
+ "payload"
620
+ ],
621
+ "additionalProperties": false
260
622
  }
261
623
  ],
624
+ "$defs": {
625
+ "__schema0": {
626
+ "anyOf": [
627
+ {
628
+ "type": "string"
629
+ },
630
+ {
631
+ "type": "number"
632
+ },
633
+ {
634
+ "type": "boolean"
635
+ },
636
+ {
637
+ "type": "null"
638
+ },
639
+ {
640
+ "type": "array",
641
+ "items": {
642
+ "$ref": "#/$defs/__schema0"
643
+ }
644
+ },
645
+ {
646
+ "type": "object",
647
+ "propertyNames": {
648
+ "type": "string"
649
+ },
650
+ "additionalProperties": {
651
+ "$ref": "#/$defs/__schema0"
652
+ }
653
+ }
654
+ ]
655
+ }
656
+ },
262
657
  "$id": "https://schemas.infmonkeys.com/contracts/agent-session-command.schema.json",
263
658
  "title": "agent-session-command"
264
659
  }