@inf-monkeys-tech/monkeys 1.0.25 → 1.0.26

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",
@@ -593,17 +593,14 @@
593
593
  "minLength": 1,
594
594
  "maxLength": 256
595
595
  },
596
- "guidanceParts": {
597
- "minItems": 1,
598
- "type": "array",
599
- "items": {
600
- "$ref": "#/$defs/__schema0"
601
- }
596
+ "text": {
597
+ "type": "string",
598
+ "minLength": 1
602
599
  }
603
600
  },
604
601
  "required": [
605
602
  "targetRunId",
606
- "guidanceParts"
603
+ "text"
607
604
  ],
608
605
  "additionalProperties": false
609
606
  }
@@ -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": {
@@ -595,17 +595,14 @@
595
595
  "minLength": 1,
596
596
  "maxLength": 256
597
597
  },
598
- "guidanceParts": {
599
- "minItems": 1,
600
- "type": "array",
601
- "items": {
602
- "$ref": "#/$defs/__schema0"
603
- }
598
+ "text": {
599
+ "type": "string",
600
+ "minLength": 1
604
601
  }
605
602
  },
606
603
  "required": [
607
604
  "targetRunId",
608
- "guidanceParts"
605
+ "text"
609
606
  ],
610
607
  "additionalProperties": false
611
608
  }
@@ -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": {
@@ -151,7 +151,7 @@ export declare const canonicalContractSchemas: {
151
151
  commandType: import("zod").ZodLiteral<"steer">;
152
152
  payload: import("zod").ZodObject<{
153
153
  targetRunId: import("zod").ZodString;
154
- guidanceParts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
154
+ text: import("zod").ZodString;
155
155
  }, import("zod/v4/core").$strict>;
156
156
  }, import("zod/v4/core").$strict>], "commandType">;
157
157
  readonly 'agent-session-targeted-command': import("zod").ZodIntersection<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -291,7 +291,7 @@ export declare const canonicalContractSchemas: {
291
291
  commandType: import("zod").ZodLiteral<"steer">;
292
292
  payload: import("zod").ZodObject<{
293
293
  targetRunId: import("zod").ZodString;
294
- guidanceParts: import("zod").ZodArray<import("zod").ZodType<import("../contracts/common").JsonValue, unknown, import("zod/v4/core").$ZodTypeInternals<import("../contracts/common").JsonValue, unknown>>>;
294
+ text: import("zod").ZodString;
295
295
  }, import("zod/v4/core").$strict>;
296
296
  }, import("zod/v4/core").$strict>], "commandType">, import("zod").ZodObject<{
297
297
  runId: import("zod").ZodString;
@@ -346,6 +346,7 @@ export declare const canonicalContractSchemas: {
346
346
  code: import("zod").ZodEnum<{
347
347
  SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
348
348
  RUN_NOT_FOUND: "RUN_NOT_FOUND";
349
+ ACTIVE_RUN_NOT_FOUND: "ACTIVE_RUN_NOT_FOUND";
349
350
  RUN_ALREADY_FINISHED: "RUN_ALREADY_FINISHED";
350
351
  STOP_TIMEOUT: "STOP_TIMEOUT";
351
352
  COMMAND_NOT_SUPPORTED: "COMMAND_NOT_SUPPORTED";
@@ -781,6 +782,51 @@ export declare const canonicalContractSchemas: {
781
782
  durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
782
783
  output: import("zod").ZodOptional<import("zod").ZodString>;
783
784
  }, import("zod/v4/core").$strict>;
785
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
786
+ contract: import("zod").ZodLiteral<"AgentSessionEvent">;
787
+ eventId: import("zod").ZodString;
788
+ sessionId: import("zod").ZodString;
789
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
790
+ sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
791
+ sequence: import("zod").ZodNumber;
792
+ idempotencyKey: import("zod").ZodString;
793
+ occurredAt: import("zod").ZodString;
794
+ eventType: import("zod").ZodLiteral<"steer">;
795
+ payload: import("zod").ZodObject<{
796
+ commandId: import("zod").ZodString;
797
+ targetRunId: import("zod").ZodString;
798
+ text: import("zod").ZodString;
799
+ status: import("zod").ZodEnum<{
800
+ failed: "failed";
801
+ accepted: "accepted";
802
+ applied: "applied";
803
+ }>;
804
+ error: import("zod").ZodOptional<import("zod").ZodObject<{
805
+ code: import("zod").ZodEnum<{
806
+ SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
807
+ RUN_NOT_FOUND: "RUN_NOT_FOUND";
808
+ ACTIVE_RUN_NOT_FOUND: "ACTIVE_RUN_NOT_FOUND";
809
+ RUN_ALREADY_FINISHED: "RUN_ALREADY_FINISHED";
810
+ STOP_TIMEOUT: "STOP_TIMEOUT";
811
+ COMMAND_NOT_SUPPORTED: "COMMAND_NOT_SUPPORTED";
812
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
813
+ SEQUENCE_CONFLICT: "SEQUENCE_CONFLICT";
814
+ INVALID_SESSION_STATE: "INVALID_SESSION_STATE";
815
+ TARGET_EVENT_NOT_FOUND: "TARGET_EVENT_NOT_FOUND";
816
+ TARGET_EVENT_NOT_RETRYABLE: "TARGET_EVENT_NOT_RETRYABLE";
817
+ APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND";
818
+ APPROVAL_ALREADY_RESOLVED: "APPROVAL_ALREADY_RESOLVED";
819
+ SOURCE_THREAD_NOT_FOUND: "SOURCE_THREAD_NOT_FOUND";
820
+ SOURCE_MESSAGE_NOT_FOUND: "SOURCE_MESSAGE_NOT_FOUND";
821
+ SOURCE_RUN_NOT_FOUND: "SOURCE_RUN_NOT_FOUND";
822
+ SOURCE_LINEAGE_INVALID: "SOURCE_LINEAGE_INVALID";
823
+ ACTIVE_BRANCH_NOT_FOUND: "ACTIVE_BRANCH_NOT_FOUND";
824
+ COMMAND_EXECUTION_FAILED: "COMMAND_EXECUTION_FAILED";
825
+ }>;
826
+ message: import("zod").ZodString;
827
+ retryable: import("zod").ZodBoolean;
828
+ }, import("zod/v4/core").$strict>>;
829
+ }, import("zod/v4/core").$strict>;
784
830
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
785
831
  contract: import("zod").ZodLiteral<"AgentSessionEvent">;
786
832
  eventId: import("zod").ZodString;
@@ -1142,6 +1188,51 @@ export declare const canonicalContractSchemas: {
1142
1188
  durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
1143
1189
  output: import("zod").ZodOptional<import("zod").ZodString>;
1144
1190
  }, import("zod/v4/core").$strict>;
1191
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1192
+ contract: import("zod").ZodLiteral<"AgentSessionEvent">;
1193
+ eventId: import("zod").ZodString;
1194
+ sessionId: import("zod").ZodString;
1195
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
1196
+ sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
1197
+ sequence: import("zod").ZodNumber;
1198
+ idempotencyKey: import("zod").ZodString;
1199
+ occurredAt: import("zod").ZodString;
1200
+ eventType: import("zod").ZodLiteral<"steer">;
1201
+ payload: import("zod").ZodObject<{
1202
+ commandId: import("zod").ZodString;
1203
+ targetRunId: import("zod").ZodString;
1204
+ text: import("zod").ZodString;
1205
+ status: import("zod").ZodEnum<{
1206
+ failed: "failed";
1207
+ accepted: "accepted";
1208
+ applied: "applied";
1209
+ }>;
1210
+ error: import("zod").ZodOptional<import("zod").ZodObject<{
1211
+ code: import("zod").ZodEnum<{
1212
+ SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
1213
+ RUN_NOT_FOUND: "RUN_NOT_FOUND";
1214
+ ACTIVE_RUN_NOT_FOUND: "ACTIVE_RUN_NOT_FOUND";
1215
+ RUN_ALREADY_FINISHED: "RUN_ALREADY_FINISHED";
1216
+ STOP_TIMEOUT: "STOP_TIMEOUT";
1217
+ COMMAND_NOT_SUPPORTED: "COMMAND_NOT_SUPPORTED";
1218
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1219
+ SEQUENCE_CONFLICT: "SEQUENCE_CONFLICT";
1220
+ INVALID_SESSION_STATE: "INVALID_SESSION_STATE";
1221
+ TARGET_EVENT_NOT_FOUND: "TARGET_EVENT_NOT_FOUND";
1222
+ TARGET_EVENT_NOT_RETRYABLE: "TARGET_EVENT_NOT_RETRYABLE";
1223
+ APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND";
1224
+ APPROVAL_ALREADY_RESOLVED: "APPROVAL_ALREADY_RESOLVED";
1225
+ SOURCE_THREAD_NOT_FOUND: "SOURCE_THREAD_NOT_FOUND";
1226
+ SOURCE_MESSAGE_NOT_FOUND: "SOURCE_MESSAGE_NOT_FOUND";
1227
+ SOURCE_RUN_NOT_FOUND: "SOURCE_RUN_NOT_FOUND";
1228
+ SOURCE_LINEAGE_INVALID: "SOURCE_LINEAGE_INVALID";
1229
+ ACTIVE_BRANCH_NOT_FOUND: "ACTIVE_BRANCH_NOT_FOUND";
1230
+ COMMAND_EXECUTION_FAILED: "COMMAND_EXECUTION_FAILED";
1231
+ }>;
1232
+ message: import("zod").ZodString;
1233
+ retryable: import("zod").ZodBoolean;
1234
+ }, import("zod/v4/core").$strict>>;
1235
+ }, import("zod/v4/core").$strict>;
1145
1236
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1146
1237
  contract: import("zod").ZodLiteral<"AgentSessionEvent">;
1147
1238
  eventId: import("zod").ZodString;
@@ -1565,6 +1656,51 @@ export declare const canonicalContractSchemas: {
1565
1656
  durationMs: import("zod").ZodOptional<import("zod").ZodNumber>;
1566
1657
  output: import("zod").ZodOptional<import("zod").ZodString>;
1567
1658
  }, import("zod/v4/core").$strict>;
1659
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1660
+ contract: import("zod").ZodLiteral<"AgentSessionEvent">;
1661
+ eventId: import("zod").ZodString;
1662
+ sessionId: import("zod").ZodString;
1663
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
1664
+ sourceMessageId: import("zod").ZodOptional<import("zod").ZodString>;
1665
+ sequence: import("zod").ZodNumber;
1666
+ idempotencyKey: import("zod").ZodString;
1667
+ occurredAt: import("zod").ZodString;
1668
+ eventType: import("zod").ZodLiteral<"steer">;
1669
+ payload: import("zod").ZodObject<{
1670
+ commandId: import("zod").ZodString;
1671
+ targetRunId: import("zod").ZodString;
1672
+ text: import("zod").ZodString;
1673
+ status: import("zod").ZodEnum<{
1674
+ failed: "failed";
1675
+ accepted: "accepted";
1676
+ applied: "applied";
1677
+ }>;
1678
+ error: import("zod").ZodOptional<import("zod").ZodObject<{
1679
+ code: import("zod").ZodEnum<{
1680
+ SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
1681
+ RUN_NOT_FOUND: "RUN_NOT_FOUND";
1682
+ ACTIVE_RUN_NOT_FOUND: "ACTIVE_RUN_NOT_FOUND";
1683
+ RUN_ALREADY_FINISHED: "RUN_ALREADY_FINISHED";
1684
+ STOP_TIMEOUT: "STOP_TIMEOUT";
1685
+ COMMAND_NOT_SUPPORTED: "COMMAND_NOT_SUPPORTED";
1686
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1687
+ SEQUENCE_CONFLICT: "SEQUENCE_CONFLICT";
1688
+ INVALID_SESSION_STATE: "INVALID_SESSION_STATE";
1689
+ TARGET_EVENT_NOT_FOUND: "TARGET_EVENT_NOT_FOUND";
1690
+ TARGET_EVENT_NOT_RETRYABLE: "TARGET_EVENT_NOT_RETRYABLE";
1691
+ APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND";
1692
+ APPROVAL_ALREADY_RESOLVED: "APPROVAL_ALREADY_RESOLVED";
1693
+ SOURCE_THREAD_NOT_FOUND: "SOURCE_THREAD_NOT_FOUND";
1694
+ SOURCE_MESSAGE_NOT_FOUND: "SOURCE_MESSAGE_NOT_FOUND";
1695
+ SOURCE_RUN_NOT_FOUND: "SOURCE_RUN_NOT_FOUND";
1696
+ SOURCE_LINEAGE_INVALID: "SOURCE_LINEAGE_INVALID";
1697
+ ACTIVE_BRANCH_NOT_FOUND: "ACTIVE_BRANCH_NOT_FOUND";
1698
+ COMMAND_EXECUTION_FAILED: "COMMAND_EXECUTION_FAILED";
1699
+ }>;
1700
+ message: import("zod").ZodString;
1701
+ retryable: import("zod").ZodBoolean;
1702
+ }, import("zod/v4/core").$strict>>;
1703
+ }, import("zod/v4/core").$strict>;
1568
1704
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1569
1705
  contract: import("zod").ZodLiteral<"AgentSessionEvent">;
1570
1706
  eventId: import("zod").ZodString;