@inf-monkeys-tech/monkeys 1.0.25 → 1.0.27

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.
@@ -176,6 +176,7 @@
176
176
  "enum": [
177
177
  "SESSION_NOT_FOUND",
178
178
  "RUN_NOT_FOUND",
179
+ "ACTIVE_RUN_NOT_FOUND",
179
180
  "RUN_ALREADY_FINISHED",
180
181
  "STOP_TIMEOUT",
181
182
  "COMMAND_NOT_SUPPORTED",
@@ -198,6 +198,80 @@
198
198
  ],
199
199
  "additionalProperties": false
200
200
  },
201
+ {
202
+ "type": "object",
203
+ "properties": {
204
+ "contract": {
205
+ "type": "string",
206
+ "const": "AgentSessionCommand"
207
+ },
208
+ "commandId": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 256
212
+ },
213
+ "sessionId": {
214
+ "type": "string",
215
+ "minLength": 1,
216
+ "maxLength": 256
217
+ },
218
+ "runId": {
219
+ "type": "string",
220
+ "minLength": 1,
221
+ "maxLength": 256
222
+ },
223
+ "idempotencyKey": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 256
227
+ },
228
+ "expectedSequence": {
229
+ "type": "integer",
230
+ "minimum": -1,
231
+ "maximum": 9007199254740991
232
+ },
233
+ "issuedAt": {
234
+ "type": "string",
235
+ "format": "date-time",
236
+ "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)))$"
237
+ },
238
+ "commandType": {
239
+ "type": "string",
240
+ "const": "retry-summary"
241
+ },
242
+ "payload": {
243
+ "type": "object",
244
+ "properties": {
245
+ "sourceEventId": {
246
+ "type": "string",
247
+ "minLength": 1,
248
+ "maxLength": 256
249
+ },
250
+ "sourceRunId": {
251
+ "type": "string",
252
+ "minLength": 1,
253
+ "maxLength": 256
254
+ }
255
+ },
256
+ "required": [
257
+ "sourceEventId",
258
+ "sourceRunId"
259
+ ],
260
+ "additionalProperties": false
261
+ }
262
+ },
263
+ "required": [
264
+ "contract",
265
+ "commandId",
266
+ "sessionId",
267
+ "idempotencyKey",
268
+ "expectedSequence",
269
+ "issuedAt",
270
+ "commandType",
271
+ "payload"
272
+ ],
273
+ "additionalProperties": false
274
+ },
201
275
  {
202
276
  "type": "object",
203
277
  "properties": {
@@ -593,17 +667,14 @@
593
667
  "minLength": 1,
594
668
  "maxLength": 256
595
669
  },
596
- "guidanceParts": {
597
- "minItems": 1,
598
- "type": "array",
599
- "items": {
600
- "$ref": "#/$defs/__schema0"
601
- }
670
+ "text": {
671
+ "type": "string",
672
+ "minLength": 1
602
673
  }
603
674
  },
604
675
  "required": [
605
676
  "targetRunId",
606
- "guidanceParts"
677
+ "text"
607
678
  ],
608
679
  "additionalProperties": false
609
680
  }
@@ -1462,6 +1462,140 @@
1462
1462
  ],
1463
1463
  "additionalProperties": false
1464
1464
  },
1465
+ {
1466
+ "type": "object",
1467
+ "properties": {
1468
+ "contract": {
1469
+ "type": "string",
1470
+ "const": "AgentSessionEvent"
1471
+ },
1472
+ "eventId": {
1473
+ "type": "string",
1474
+ "minLength": 1,
1475
+ "maxLength": 256
1476
+ },
1477
+ "sessionId": {
1478
+ "type": "string",
1479
+ "minLength": 1,
1480
+ "maxLength": 256
1481
+ },
1482
+ "runId": {
1483
+ "type": "string",
1484
+ "minLength": 1,
1485
+ "maxLength": 256
1486
+ },
1487
+ "sourceMessageId": {
1488
+ "type": "string",
1489
+ "minLength": 1,
1490
+ "maxLength": 256
1491
+ },
1492
+ "sequence": {
1493
+ "type": "integer",
1494
+ "minimum": 0,
1495
+ "maximum": 9007199254740991
1496
+ },
1497
+ "idempotencyKey": {
1498
+ "type": "string",
1499
+ "minLength": 1,
1500
+ "maxLength": 256
1501
+ },
1502
+ "occurredAt": {
1503
+ "type": "string",
1504
+ "format": "date-time",
1505
+ "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)))$"
1506
+ },
1507
+ "eventType": {
1508
+ "type": "string",
1509
+ "const": "steer"
1510
+ },
1511
+ "payload": {
1512
+ "type": "object",
1513
+ "properties": {
1514
+ "commandId": {
1515
+ "type": "string",
1516
+ "minLength": 1,
1517
+ "maxLength": 256
1518
+ },
1519
+ "targetRunId": {
1520
+ "type": "string",
1521
+ "minLength": 1,
1522
+ "maxLength": 256
1523
+ },
1524
+ "text": {
1525
+ "type": "string",
1526
+ "minLength": 1
1527
+ },
1528
+ "status": {
1529
+ "type": "string",
1530
+ "enum": [
1531
+ "accepted",
1532
+ "applied",
1533
+ "failed"
1534
+ ]
1535
+ },
1536
+ "error": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "code": {
1540
+ "type": "string",
1541
+ "enum": [
1542
+ "SESSION_NOT_FOUND",
1543
+ "RUN_NOT_FOUND",
1544
+ "ACTIVE_RUN_NOT_FOUND",
1545
+ "RUN_ALREADY_FINISHED",
1546
+ "STOP_TIMEOUT",
1547
+ "COMMAND_NOT_SUPPORTED",
1548
+ "CAPABILITY_UNAVAILABLE",
1549
+ "SEQUENCE_CONFLICT",
1550
+ "INVALID_SESSION_STATE",
1551
+ "TARGET_EVENT_NOT_FOUND",
1552
+ "TARGET_EVENT_NOT_RETRYABLE",
1553
+ "APPROVAL_NOT_FOUND",
1554
+ "APPROVAL_ALREADY_RESOLVED",
1555
+ "SOURCE_THREAD_NOT_FOUND",
1556
+ "SOURCE_MESSAGE_NOT_FOUND",
1557
+ "SOURCE_RUN_NOT_FOUND",
1558
+ "SOURCE_LINEAGE_INVALID",
1559
+ "ACTIVE_BRANCH_NOT_FOUND",
1560
+ "COMMAND_EXECUTION_FAILED"
1561
+ ]
1562
+ },
1563
+ "message": {
1564
+ "type": "string"
1565
+ },
1566
+ "retryable": {
1567
+ "type": "boolean"
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "code",
1572
+ "message",
1573
+ "retryable"
1574
+ ],
1575
+ "additionalProperties": false
1576
+ }
1577
+ },
1578
+ "required": [
1579
+ "commandId",
1580
+ "targetRunId",
1581
+ "text",
1582
+ "status"
1583
+ ],
1584
+ "additionalProperties": false
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "contract",
1589
+ "eventId",
1590
+ "sessionId",
1591
+ "sequence",
1592
+ "idempotencyKey",
1593
+ "occurredAt",
1594
+ "eventType",
1595
+ "payload"
1596
+ ],
1597
+ "additionalProperties": false
1598
+ },
1465
1599
  {
1466
1600
  "type": "object",
1467
1601
  "properties": {
@@ -1462,6 +1462,140 @@
1462
1462
  ],
1463
1463
  "additionalProperties": false
1464
1464
  },
1465
+ {
1466
+ "type": "object",
1467
+ "properties": {
1468
+ "contract": {
1469
+ "type": "string",
1470
+ "const": "AgentSessionEvent"
1471
+ },
1472
+ "eventId": {
1473
+ "type": "string",
1474
+ "minLength": 1,
1475
+ "maxLength": 256
1476
+ },
1477
+ "sessionId": {
1478
+ "type": "string",
1479
+ "minLength": 1,
1480
+ "maxLength": 256
1481
+ },
1482
+ "runId": {
1483
+ "type": "string",
1484
+ "minLength": 1,
1485
+ "maxLength": 256
1486
+ },
1487
+ "sourceMessageId": {
1488
+ "type": "string",
1489
+ "minLength": 1,
1490
+ "maxLength": 256
1491
+ },
1492
+ "sequence": {
1493
+ "type": "integer",
1494
+ "minimum": 0,
1495
+ "maximum": 9007199254740991
1496
+ },
1497
+ "idempotencyKey": {
1498
+ "type": "string",
1499
+ "minLength": 1,
1500
+ "maxLength": 256
1501
+ },
1502
+ "occurredAt": {
1503
+ "type": "string",
1504
+ "format": "date-time",
1505
+ "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)))$"
1506
+ },
1507
+ "eventType": {
1508
+ "type": "string",
1509
+ "const": "steer"
1510
+ },
1511
+ "payload": {
1512
+ "type": "object",
1513
+ "properties": {
1514
+ "commandId": {
1515
+ "type": "string",
1516
+ "minLength": 1,
1517
+ "maxLength": 256
1518
+ },
1519
+ "targetRunId": {
1520
+ "type": "string",
1521
+ "minLength": 1,
1522
+ "maxLength": 256
1523
+ },
1524
+ "text": {
1525
+ "type": "string",
1526
+ "minLength": 1
1527
+ },
1528
+ "status": {
1529
+ "type": "string",
1530
+ "enum": [
1531
+ "accepted",
1532
+ "applied",
1533
+ "failed"
1534
+ ]
1535
+ },
1536
+ "error": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "code": {
1540
+ "type": "string",
1541
+ "enum": [
1542
+ "SESSION_NOT_FOUND",
1543
+ "RUN_NOT_FOUND",
1544
+ "ACTIVE_RUN_NOT_FOUND",
1545
+ "RUN_ALREADY_FINISHED",
1546
+ "STOP_TIMEOUT",
1547
+ "COMMAND_NOT_SUPPORTED",
1548
+ "CAPABILITY_UNAVAILABLE",
1549
+ "SEQUENCE_CONFLICT",
1550
+ "INVALID_SESSION_STATE",
1551
+ "TARGET_EVENT_NOT_FOUND",
1552
+ "TARGET_EVENT_NOT_RETRYABLE",
1553
+ "APPROVAL_NOT_FOUND",
1554
+ "APPROVAL_ALREADY_RESOLVED",
1555
+ "SOURCE_THREAD_NOT_FOUND",
1556
+ "SOURCE_MESSAGE_NOT_FOUND",
1557
+ "SOURCE_RUN_NOT_FOUND",
1558
+ "SOURCE_LINEAGE_INVALID",
1559
+ "ACTIVE_BRANCH_NOT_FOUND",
1560
+ "COMMAND_EXECUTION_FAILED"
1561
+ ]
1562
+ },
1563
+ "message": {
1564
+ "type": "string"
1565
+ },
1566
+ "retryable": {
1567
+ "type": "boolean"
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "code",
1572
+ "message",
1573
+ "retryable"
1574
+ ],
1575
+ "additionalProperties": false
1576
+ }
1577
+ },
1578
+ "required": [
1579
+ "commandId",
1580
+ "targetRunId",
1581
+ "text",
1582
+ "status"
1583
+ ],
1584
+ "additionalProperties": false
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "contract",
1589
+ "eventId",
1590
+ "sessionId",
1591
+ "sequence",
1592
+ "idempotencyKey",
1593
+ "occurredAt",
1594
+ "eventType",
1595
+ "payload"
1596
+ ],
1597
+ "additionalProperties": false
1598
+ },
1465
1599
  {
1466
1600
  "type": "object",
1467
1601
  "properties": {
@@ -200,6 +200,80 @@
200
200
  ],
201
201
  "additionalProperties": false
202
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": "retry-summary"
243
+ },
244
+ "payload": {
245
+ "type": "object",
246
+ "properties": {
247
+ "sourceEventId": {
248
+ "type": "string",
249
+ "minLength": 1,
250
+ "maxLength": 256
251
+ },
252
+ "sourceRunId": {
253
+ "type": "string",
254
+ "minLength": 1,
255
+ "maxLength": 256
256
+ }
257
+ },
258
+ "required": [
259
+ "sourceEventId",
260
+ "sourceRunId"
261
+ ],
262
+ "additionalProperties": false
263
+ }
264
+ },
265
+ "required": [
266
+ "contract",
267
+ "commandId",
268
+ "sessionId",
269
+ "idempotencyKey",
270
+ "expectedSequence",
271
+ "issuedAt",
272
+ "commandType",
273
+ "payload"
274
+ ],
275
+ "additionalProperties": false
276
+ },
203
277
  {
204
278
  "type": "object",
205
279
  "properties": {
@@ -595,17 +669,14 @@
595
669
  "minLength": 1,
596
670
  "maxLength": 256
597
671
  },
598
- "guidanceParts": {
599
- "minItems": 1,
600
- "type": "array",
601
- "items": {
602
- "$ref": "#/$defs/__schema0"
603
- }
672
+ "text": {
673
+ "type": "string",
674
+ "minLength": 1
604
675
  }
605
676
  },
606
677
  "required": [
607
678
  "targetRunId",
608
- "guidanceParts"
679
+ "text"
609
680
  ],
610
681
  "additionalProperties": false
611
682
  }
@@ -1623,6 +1623,140 @@
1623
1623
  ],
1624
1624
  "additionalProperties": false
1625
1625
  },
1626
+ {
1627
+ "type": "object",
1628
+ "properties": {
1629
+ "contract": {
1630
+ "type": "string",
1631
+ "const": "AgentSessionEvent"
1632
+ },
1633
+ "eventId": {
1634
+ "type": "string",
1635
+ "minLength": 1,
1636
+ "maxLength": 256
1637
+ },
1638
+ "sessionId": {
1639
+ "type": "string",
1640
+ "minLength": 1,
1641
+ "maxLength": 256
1642
+ },
1643
+ "runId": {
1644
+ "type": "string",
1645
+ "minLength": 1,
1646
+ "maxLength": 256
1647
+ },
1648
+ "sourceMessageId": {
1649
+ "type": "string",
1650
+ "minLength": 1,
1651
+ "maxLength": 256
1652
+ },
1653
+ "sequence": {
1654
+ "type": "integer",
1655
+ "minimum": 0,
1656
+ "maximum": 9007199254740991
1657
+ },
1658
+ "idempotencyKey": {
1659
+ "type": "string",
1660
+ "minLength": 1,
1661
+ "maxLength": 256
1662
+ },
1663
+ "occurredAt": {
1664
+ "type": "string",
1665
+ "format": "date-time",
1666
+ "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)))$"
1667
+ },
1668
+ "eventType": {
1669
+ "type": "string",
1670
+ "const": "steer"
1671
+ },
1672
+ "payload": {
1673
+ "type": "object",
1674
+ "properties": {
1675
+ "commandId": {
1676
+ "type": "string",
1677
+ "minLength": 1,
1678
+ "maxLength": 256
1679
+ },
1680
+ "targetRunId": {
1681
+ "type": "string",
1682
+ "minLength": 1,
1683
+ "maxLength": 256
1684
+ },
1685
+ "text": {
1686
+ "type": "string",
1687
+ "minLength": 1
1688
+ },
1689
+ "status": {
1690
+ "type": "string",
1691
+ "enum": [
1692
+ "accepted",
1693
+ "applied",
1694
+ "failed"
1695
+ ]
1696
+ },
1697
+ "error": {
1698
+ "type": "object",
1699
+ "properties": {
1700
+ "code": {
1701
+ "type": "string",
1702
+ "enum": [
1703
+ "SESSION_NOT_FOUND",
1704
+ "RUN_NOT_FOUND",
1705
+ "ACTIVE_RUN_NOT_FOUND",
1706
+ "RUN_ALREADY_FINISHED",
1707
+ "STOP_TIMEOUT",
1708
+ "COMMAND_NOT_SUPPORTED",
1709
+ "CAPABILITY_UNAVAILABLE",
1710
+ "SEQUENCE_CONFLICT",
1711
+ "INVALID_SESSION_STATE",
1712
+ "TARGET_EVENT_NOT_FOUND",
1713
+ "TARGET_EVENT_NOT_RETRYABLE",
1714
+ "APPROVAL_NOT_FOUND",
1715
+ "APPROVAL_ALREADY_RESOLVED",
1716
+ "SOURCE_THREAD_NOT_FOUND",
1717
+ "SOURCE_MESSAGE_NOT_FOUND",
1718
+ "SOURCE_RUN_NOT_FOUND",
1719
+ "SOURCE_LINEAGE_INVALID",
1720
+ "ACTIVE_BRANCH_NOT_FOUND",
1721
+ "COMMAND_EXECUTION_FAILED"
1722
+ ]
1723
+ },
1724
+ "message": {
1725
+ "type": "string"
1726
+ },
1727
+ "retryable": {
1728
+ "type": "boolean"
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "code",
1733
+ "message",
1734
+ "retryable"
1735
+ ],
1736
+ "additionalProperties": false
1737
+ }
1738
+ },
1739
+ "required": [
1740
+ "commandId",
1741
+ "targetRunId",
1742
+ "text",
1743
+ "status"
1744
+ ],
1745
+ "additionalProperties": false
1746
+ }
1747
+ },
1748
+ "required": [
1749
+ "contract",
1750
+ "eventId",
1751
+ "sessionId",
1752
+ "sequence",
1753
+ "idempotencyKey",
1754
+ "occurredAt",
1755
+ "eventType",
1756
+ "payload"
1757
+ ],
1758
+ "additionalProperties": false
1759
+ },
1626
1760
  {
1627
1761
  "type": "object",
1628
1762
  "properties": {