@roll-agent/runtime 0.13.0 → 0.14.0

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.
@@ -328,7 +328,7 @@ declare const compactionTranscriptSchema: z.ZodReadonly<z.ZodObject<{
328
328
  fromSequenceExclusive: number;
329
329
  throughSequence: number;
330
330
  };
331
- completeness: "legacy_snapshot" | "complete";
331
+ completeness: "complete" | "legacy_snapshot";
332
332
  }, {
333
333
  messages: {
334
334
  fromSequenceExclusive: number;
@@ -338,7 +338,7 @@ declare const compactionTranscriptSchema: z.ZodReadonly<z.ZodObject<{
338
338
  fromSequenceExclusive: number;
339
339
  throughSequence: number;
340
340
  };
341
- completeness: "legacy_snapshot" | "complete";
341
+ completeness: "complete" | "legacy_snapshot";
342
342
  }>>;
343
343
  export declare const compactionSemanticEvidenceWatermarksSchema: z.ZodReadonly<z.ZodObject<{
344
344
  messagesThroughSequence: z.ZodNumber;
@@ -871,7 +871,7 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
871
871
  fromSequenceExclusive: number;
872
872
  throughSequence: number;
873
873
  };
874
- completeness: "legacy_snapshot" | "complete";
874
+ completeness: "complete" | "legacy_snapshot";
875
875
  }, {
876
876
  messages: {
877
877
  fromSequenceExclusive: number;
@@ -881,7 +881,7 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
881
881
  fromSequenceExclusive: number;
882
882
  throughSequence: number;
883
883
  };
884
- completeness: "legacy_snapshot" | "complete";
884
+ completeness: "complete" | "legacy_snapshot";
885
885
  }>>;
886
886
  goal: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
887
887
  verbatimRequest: z.ZodString;
@@ -1252,7 +1252,7 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1252
1252
  fromSequenceExclusive: number;
1253
1253
  throughSequence: number;
1254
1254
  };
1255
- completeness: "legacy_snapshot" | "complete";
1255
+ completeness: "complete" | "legacy_snapshot";
1256
1256
  }>;
1257
1257
  goal?: Readonly<{
1258
1258
  status: "unknown" | "active" | "interrupted";
@@ -1346,7 +1346,7 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1346
1346
  fromSequenceExclusive: number;
1347
1347
  throughSequence: number;
1348
1348
  };
1349
- completeness: "legacy_snapshot" | "complete";
1349
+ completeness: "complete" | "legacy_snapshot";
1350
1350
  }>;
1351
1351
  goal?: Readonly<{
1352
1352
  status: "unknown" | "active" | "interrupted";
@@ -1404,7 +1404,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1404
1404
  fromSequenceExclusive: number;
1405
1405
  throughSequence: number;
1406
1406
  };
1407
- completeness: "legacy_snapshot" | "complete";
1407
+ completeness: "complete" | "legacy_snapshot";
1408
1408
  }, {
1409
1409
  messages: {
1410
1410
  fromSequenceExclusive: number;
@@ -1414,7 +1414,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1414
1414
  fromSequenceExclusive: number;
1415
1415
  throughSequence: number;
1416
1416
  };
1417
- completeness: "legacy_snapshot" | "complete";
1417
+ completeness: "complete" | "legacy_snapshot";
1418
1418
  }>>;
1419
1419
  semanticState: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
1420
1420
  version: z.ZodLiteral<1>;
@@ -1432,7 +1432,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1432
1432
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1433
1433
  }, "strict", z.ZodTypeAny, {
1434
1434
  sessionId: number | null;
1435
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1435
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1436
1436
  messageSequence: number | null;
1437
1437
  toolExecutionId: string | null;
1438
1438
  resourceKey: string | null;
@@ -1441,7 +1441,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1441
1441
  snapshotIndex: number | null;
1442
1442
  }, {
1443
1443
  sessionId: number | null;
1444
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1444
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1445
1445
  messageSequence: number | null;
1446
1446
  toolExecutionId: string | null;
1447
1447
  resourceKey: string | null;
@@ -1450,7 +1450,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1450
1450
  snapshotIndex?: number | null | undefined;
1451
1451
  }>, {
1452
1452
  sessionId: number | null;
1453
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1453
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1454
1454
  messageSequence: number | null;
1455
1455
  toolExecutionId: string | null;
1456
1456
  resourceKey: string | null;
@@ -1459,7 +1459,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1459
1459
  snapshotIndex: number | null;
1460
1460
  }, {
1461
1461
  sessionId: number | null;
1462
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1462
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1463
1463
  messageSequence: number | null;
1464
1464
  toolExecutionId: string | null;
1465
1465
  resourceKey: string | null;
@@ -1474,7 +1474,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1474
1474
  sourceQuotes: string[];
1475
1475
  provenance: Readonly<{
1476
1476
  sessionId: number | null;
1477
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1477
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1478
1478
  messageSequence: number | null;
1479
1479
  toolExecutionId: string | null;
1480
1480
  resourceKey: string | null;
@@ -1487,7 +1487,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1487
1487
  id: string;
1488
1488
  provenance: Readonly<{
1489
1489
  sessionId: number | null;
1490
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1490
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1491
1491
  messageSequence: number | null;
1492
1492
  toolExecutionId: string | null;
1493
1493
  resourceKey: string | null;
@@ -1511,7 +1511,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1511
1511
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1512
1512
  }, "strict", z.ZodTypeAny, {
1513
1513
  sessionId: number | null;
1514
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1514
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1515
1515
  messageSequence: number | null;
1516
1516
  toolExecutionId: string | null;
1517
1517
  resourceKey: string | null;
@@ -1520,7 +1520,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1520
1520
  snapshotIndex: number | null;
1521
1521
  }, {
1522
1522
  sessionId: number | null;
1523
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1523
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1524
1524
  messageSequence: number | null;
1525
1525
  toolExecutionId: string | null;
1526
1526
  resourceKey: string | null;
@@ -1529,7 +1529,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1529
1529
  snapshotIndex?: number | null | undefined;
1530
1530
  }>, {
1531
1531
  sessionId: number | null;
1532
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1532
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1533
1533
  messageSequence: number | null;
1534
1534
  toolExecutionId: string | null;
1535
1535
  resourceKey: string | null;
@@ -1538,7 +1538,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1538
1538
  snapshotIndex: number | null;
1539
1539
  }, {
1540
1540
  sessionId: number | null;
1541
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1541
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1542
1542
  messageSequence: number | null;
1543
1543
  toolExecutionId: string | null;
1544
1544
  resourceKey: string | null;
@@ -1553,7 +1553,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1553
1553
  sourceQuotes: string[];
1554
1554
  provenance: Readonly<{
1555
1555
  sessionId: number | null;
1556
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1556
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1557
1557
  messageSequence: number | null;
1558
1558
  toolExecutionId: string | null;
1559
1559
  resourceKey: string | null;
@@ -1566,7 +1566,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1566
1566
  id: string;
1567
1567
  provenance: Readonly<{
1568
1568
  sessionId: number | null;
1569
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1569
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1570
1570
  messageSequence: number | null;
1571
1571
  toolExecutionId: string | null;
1572
1572
  resourceKey: string | null;
@@ -1590,7 +1590,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1590
1590
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1591
1591
  }, "strict", z.ZodTypeAny, {
1592
1592
  sessionId: number | null;
1593
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1593
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1594
1594
  messageSequence: number | null;
1595
1595
  toolExecutionId: string | null;
1596
1596
  resourceKey: string | null;
@@ -1599,7 +1599,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1599
1599
  snapshotIndex: number | null;
1600
1600
  }, {
1601
1601
  sessionId: number | null;
1602
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1602
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1603
1603
  messageSequence: number | null;
1604
1604
  toolExecutionId: string | null;
1605
1605
  resourceKey: string | null;
@@ -1608,7 +1608,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1608
1608
  snapshotIndex?: number | null | undefined;
1609
1609
  }>, {
1610
1610
  sessionId: number | null;
1611
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1611
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1612
1612
  messageSequence: number | null;
1613
1613
  toolExecutionId: string | null;
1614
1614
  resourceKey: string | null;
@@ -1617,7 +1617,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1617
1617
  snapshotIndex: number | null;
1618
1618
  }, {
1619
1619
  sessionId: number | null;
1620
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1620
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1621
1621
  messageSequence: number | null;
1622
1622
  toolExecutionId: string | null;
1623
1623
  resourceKey: string | null;
@@ -1632,7 +1632,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1632
1632
  sourceQuotes: string[];
1633
1633
  provenance: Readonly<{
1634
1634
  sessionId: number | null;
1635
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1635
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1636
1636
  messageSequence: number | null;
1637
1637
  toolExecutionId: string | null;
1638
1638
  resourceKey: string | null;
@@ -1645,7 +1645,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1645
1645
  id: string;
1646
1646
  provenance: Readonly<{
1647
1647
  sessionId: number | null;
1648
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1648
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1649
1649
  messageSequence: number | null;
1650
1650
  toolExecutionId: string | null;
1651
1651
  resourceKey: string | null;
@@ -1669,7 +1669,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1669
1669
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1670
1670
  }, "strict", z.ZodTypeAny, {
1671
1671
  sessionId: number | null;
1672
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1672
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1673
1673
  messageSequence: number | null;
1674
1674
  toolExecutionId: string | null;
1675
1675
  resourceKey: string | null;
@@ -1678,7 +1678,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1678
1678
  snapshotIndex: number | null;
1679
1679
  }, {
1680
1680
  sessionId: number | null;
1681
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1681
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1682
1682
  messageSequence: number | null;
1683
1683
  toolExecutionId: string | null;
1684
1684
  resourceKey: string | null;
@@ -1687,7 +1687,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1687
1687
  snapshotIndex?: number | null | undefined;
1688
1688
  }>, {
1689
1689
  sessionId: number | null;
1690
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1690
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1691
1691
  messageSequence: number | null;
1692
1692
  toolExecutionId: string | null;
1693
1693
  resourceKey: string | null;
@@ -1696,7 +1696,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1696
1696
  snapshotIndex: number | null;
1697
1697
  }, {
1698
1698
  sessionId: number | null;
1699
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1699
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1700
1700
  messageSequence: number | null;
1701
1701
  toolExecutionId: string | null;
1702
1702
  resourceKey: string | null;
@@ -1711,7 +1711,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1711
1711
  sourceQuotes: string[];
1712
1712
  provenance: Readonly<{
1713
1713
  sessionId: number | null;
1714
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1714
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1715
1715
  messageSequence: number | null;
1716
1716
  toolExecutionId: string | null;
1717
1717
  resourceKey: string | null;
@@ -1724,7 +1724,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1724
1724
  id: string;
1725
1725
  provenance: Readonly<{
1726
1726
  sessionId: number | null;
1727
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1727
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1728
1728
  messageSequence: number | null;
1729
1729
  toolExecutionId: string | null;
1730
1730
  resourceKey: string | null;
@@ -1748,7 +1748,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1748
1748
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1749
1749
  }, "strict", z.ZodTypeAny, {
1750
1750
  sessionId: number | null;
1751
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1751
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1752
1752
  messageSequence: number | null;
1753
1753
  toolExecutionId: string | null;
1754
1754
  resourceKey: string | null;
@@ -1757,7 +1757,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1757
1757
  snapshotIndex: number | null;
1758
1758
  }, {
1759
1759
  sessionId: number | null;
1760
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1760
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1761
1761
  messageSequence: number | null;
1762
1762
  toolExecutionId: string | null;
1763
1763
  resourceKey: string | null;
@@ -1766,7 +1766,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1766
1766
  snapshotIndex?: number | null | undefined;
1767
1767
  }>, {
1768
1768
  sessionId: number | null;
1769
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1769
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1770
1770
  messageSequence: number | null;
1771
1771
  toolExecutionId: string | null;
1772
1772
  resourceKey: string | null;
@@ -1775,7 +1775,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1775
1775
  snapshotIndex: number | null;
1776
1776
  }, {
1777
1777
  sessionId: number | null;
1778
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1778
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1779
1779
  messageSequence: number | null;
1780
1780
  toolExecutionId: string | null;
1781
1781
  resourceKey: string | null;
@@ -1790,7 +1790,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1790
1790
  sourceQuotes: string[];
1791
1791
  provenance: Readonly<{
1792
1792
  sessionId: number | null;
1793
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1793
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1794
1794
  messageSequence: number | null;
1795
1795
  toolExecutionId: string | null;
1796
1796
  resourceKey: string | null;
@@ -1803,7 +1803,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1803
1803
  id: string;
1804
1804
  provenance: Readonly<{
1805
1805
  sessionId: number | null;
1806
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1806
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1807
1807
  messageSequence: number | null;
1808
1808
  toolExecutionId: string | null;
1809
1809
  resourceKey: string | null;
@@ -1827,7 +1827,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1827
1827
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1828
1828
  }, "strict", z.ZodTypeAny, {
1829
1829
  sessionId: number | null;
1830
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1830
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1831
1831
  messageSequence: number | null;
1832
1832
  toolExecutionId: string | null;
1833
1833
  resourceKey: string | null;
@@ -1836,7 +1836,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1836
1836
  snapshotIndex: number | null;
1837
1837
  }, {
1838
1838
  sessionId: number | null;
1839
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1839
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1840
1840
  messageSequence: number | null;
1841
1841
  toolExecutionId: string | null;
1842
1842
  resourceKey: string | null;
@@ -1845,7 +1845,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1845
1845
  snapshotIndex?: number | null | undefined;
1846
1846
  }>, {
1847
1847
  sessionId: number | null;
1848
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1848
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1849
1849
  messageSequence: number | null;
1850
1850
  toolExecutionId: string | null;
1851
1851
  resourceKey: string | null;
@@ -1854,7 +1854,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1854
1854
  snapshotIndex: number | null;
1855
1855
  }, {
1856
1856
  sessionId: number | null;
1857
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1857
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1858
1858
  messageSequence: number | null;
1859
1859
  toolExecutionId: string | null;
1860
1860
  resourceKey: string | null;
@@ -1867,7 +1867,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1867
1867
  resourceKey: string;
1868
1868
  provenance: Readonly<{
1869
1869
  sessionId: number | null;
1870
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1870
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1871
1871
  messageSequence: number | null;
1872
1872
  toolExecutionId: string | null;
1873
1873
  resourceKey: string | null;
@@ -1880,7 +1880,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1880
1880
  resourceKey: string;
1881
1881
  provenance: Readonly<{
1882
1882
  sessionId: number | null;
1883
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1883
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1884
1884
  messageSequence: number | null;
1885
1885
  toolExecutionId: string | null;
1886
1886
  resourceKey: string | null;
@@ -1904,7 +1904,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1904
1904
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1905
1905
  }, "strict", z.ZodTypeAny, {
1906
1906
  sessionId: number | null;
1907
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1907
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1908
1908
  messageSequence: number | null;
1909
1909
  toolExecutionId: string | null;
1910
1910
  resourceKey: string | null;
@@ -1913,7 +1913,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1913
1913
  snapshotIndex: number | null;
1914
1914
  }, {
1915
1915
  sessionId: number | null;
1916
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1916
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1917
1917
  messageSequence: number | null;
1918
1918
  toolExecutionId: string | null;
1919
1919
  resourceKey: string | null;
@@ -1922,7 +1922,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1922
1922
  snapshotIndex?: number | null | undefined;
1923
1923
  }>, {
1924
1924
  sessionId: number | null;
1925
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1925
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1926
1926
  messageSequence: number | null;
1927
1927
  toolExecutionId: string | null;
1928
1928
  resourceKey: string | null;
@@ -1931,7 +1931,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1931
1931
  snapshotIndex: number | null;
1932
1932
  }, {
1933
1933
  sessionId: number | null;
1934
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1934
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1935
1935
  messageSequence: number | null;
1936
1936
  toolExecutionId: string | null;
1937
1937
  resourceKey: string | null;
@@ -1945,7 +1945,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1945
1945
  managerInstanceId: string;
1946
1946
  provenance: Readonly<{
1947
1947
  sessionId: number | null;
1948
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1948
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1949
1949
  messageSequence: number | null;
1950
1950
  toolExecutionId: string | null;
1951
1951
  resourceKey: string | null;
@@ -1959,7 +1959,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1959
1959
  managerInstanceId: string;
1960
1960
  provenance: Readonly<{
1961
1961
  sessionId: number | null;
1962
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1962
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1963
1963
  messageSequence: number | null;
1964
1964
  toolExecutionId: string | null;
1965
1965
  resourceKey: string | null;
@@ -1982,7 +1982,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1982
1982
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1983
1983
  }, "strict", z.ZodTypeAny, {
1984
1984
  sessionId: number | null;
1985
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1985
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1986
1986
  messageSequence: number | null;
1987
1987
  toolExecutionId: string | null;
1988
1988
  resourceKey: string | null;
@@ -1991,7 +1991,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1991
1991
  snapshotIndex: number | null;
1992
1992
  }, {
1993
1993
  sessionId: number | null;
1994
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
1994
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1995
1995
  messageSequence: number | null;
1996
1996
  toolExecutionId: string | null;
1997
1997
  resourceKey: string | null;
@@ -2000,7 +2000,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2000
2000
  snapshotIndex?: number | null | undefined;
2001
2001
  }>, {
2002
2002
  sessionId: number | null;
2003
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2003
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2004
2004
  messageSequence: number | null;
2005
2005
  toolExecutionId: string | null;
2006
2006
  resourceKey: string | null;
@@ -2009,7 +2009,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2009
2009
  snapshotIndex: number | null;
2010
2010
  }, {
2011
2011
  sessionId: number | null;
2012
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2012
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2013
2013
  messageSequence: number | null;
2014
2014
  toolExecutionId: string | null;
2015
2015
  resourceKey: string | null;
@@ -2024,7 +2024,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2024
2024
  sourceQuotes: string[];
2025
2025
  provenance: Readonly<{
2026
2026
  sessionId: number | null;
2027
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2027
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2028
2028
  messageSequence: number | null;
2029
2029
  toolExecutionId: string | null;
2030
2030
  resourceKey: string | null;
@@ -2037,7 +2037,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2037
2037
  id: string;
2038
2038
  provenance: Readonly<{
2039
2039
  sessionId: number | null;
2040
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2040
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2041
2041
  messageSequence: number | null;
2042
2042
  toolExecutionId: string | null;
2043
2043
  resourceKey: string | null;
@@ -2057,16 +2057,16 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2057
2057
  uncertainty: z.ZodNumber;
2058
2058
  }, "strict", z.ZodTypeAny, {
2059
2059
  resource: number;
2060
+ decision: number;
2060
2061
  running_session: number;
2061
2062
  constraint: number;
2062
- decision: number;
2063
2063
  completed_work: number;
2064
2064
  pending_work: number;
2065
2065
  uncertainty: number;
2066
2066
  }, {
2067
2067
  resource: number;
2068
- running_session: number;
2069
2068
  decision: number;
2069
+ running_session: number;
2070
2070
  completed_work: number;
2071
2071
  pending_work: number;
2072
2072
  uncertainty: number;
@@ -2079,7 +2079,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2079
2079
  resourceKey: string;
2080
2080
  provenance: Readonly<{
2081
2081
  sessionId: number | null;
2082
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2082
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2083
2083
  messageSequence: number | null;
2084
2084
  toolExecutionId: string | null;
2085
2085
  resourceKey: string | null;
@@ -2094,7 +2094,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2094
2094
  sourceQuotes: string[];
2095
2095
  provenance: Readonly<{
2096
2096
  sessionId: number | null;
2097
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2097
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2098
2098
  messageSequence: number | null;
2099
2099
  toolExecutionId: string | null;
2100
2100
  resourceKey: string | null;
@@ -2109,7 +2109,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2109
2109
  sourceQuotes: string[];
2110
2110
  provenance: Readonly<{
2111
2111
  sessionId: number | null;
2112
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2112
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2113
2113
  messageSequence: number | null;
2114
2114
  toolExecutionId: string | null;
2115
2115
  resourceKey: string | null;
@@ -2124,7 +2124,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2124
2124
  sourceQuotes: string[];
2125
2125
  provenance: Readonly<{
2126
2126
  sessionId: number | null;
2127
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2127
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2128
2128
  messageSequence: number | null;
2129
2129
  toolExecutionId: string | null;
2130
2130
  resourceKey: string | null;
@@ -2139,7 +2139,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2139
2139
  sourceQuotes: string[];
2140
2140
  provenance: Readonly<{
2141
2141
  sessionId: number | null;
2142
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2142
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2143
2143
  messageSequence: number | null;
2144
2144
  toolExecutionId: string | null;
2145
2145
  resourceKey: string | null;
@@ -2154,7 +2154,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2154
2154
  sourceQuotes: string[];
2155
2155
  provenance: Readonly<{
2156
2156
  sessionId: number | null;
2157
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2157
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2158
2158
  messageSequence: number | null;
2159
2159
  toolExecutionId: string | null;
2160
2160
  resourceKey: string | null;
@@ -2169,7 +2169,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2169
2169
  managerInstanceId: string;
2170
2170
  provenance: Readonly<{
2171
2171
  sessionId: number | null;
2172
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2172
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2173
2173
  messageSequence: number | null;
2174
2174
  toolExecutionId: string | null;
2175
2175
  resourceKey: string | null;
@@ -2184,7 +2184,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2184
2184
  sourceQuotes: string[];
2185
2185
  provenance: Readonly<{
2186
2186
  sessionId: number | null;
2187
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2187
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2188
2188
  messageSequence: number | null;
2189
2189
  toolExecutionId: string | null;
2190
2190
  resourceKey: string | null;
@@ -2195,9 +2195,9 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2195
2195
  }>[];
2196
2196
  prunedItemCounts: Readonly<{
2197
2197
  resource: number;
2198
+ decision: number;
2198
2199
  running_session: number;
2199
2200
  constraint: number;
2200
- decision: number;
2201
2201
  completed_work: number;
2202
2202
  pending_work: number;
2203
2203
  uncertainty: number;
@@ -2209,7 +2209,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2209
2209
  resourceKey: string;
2210
2210
  provenance: Readonly<{
2211
2211
  sessionId: number | null;
2212
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2212
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2213
2213
  messageSequence: number | null;
2214
2214
  toolExecutionId: string | null;
2215
2215
  resourceKey: string | null;
@@ -2223,7 +2223,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2223
2223
  id: string;
2224
2224
  provenance: Readonly<{
2225
2225
  sessionId: number | null;
2226
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2226
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2227
2227
  messageSequence: number | null;
2228
2228
  toolExecutionId: string | null;
2229
2229
  resourceKey: string | null;
@@ -2238,7 +2238,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2238
2238
  id: string;
2239
2239
  provenance: Readonly<{
2240
2240
  sessionId: number | null;
2241
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2241
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2242
2242
  messageSequence: number | null;
2243
2243
  toolExecutionId: string | null;
2244
2244
  resourceKey: string | null;
@@ -2253,7 +2253,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2253
2253
  id: string;
2254
2254
  provenance: Readonly<{
2255
2255
  sessionId: number | null;
2256
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2256
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2257
2257
  messageSequence: number | null;
2258
2258
  toolExecutionId: string | null;
2259
2259
  resourceKey: string | null;
@@ -2268,7 +2268,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2268
2268
  id: string;
2269
2269
  provenance: Readonly<{
2270
2270
  sessionId: number | null;
2271
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2271
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2272
2272
  messageSequence: number | null;
2273
2273
  toolExecutionId: string | null;
2274
2274
  resourceKey: string | null;
@@ -2284,7 +2284,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2284
2284
  managerInstanceId: string;
2285
2285
  provenance: Readonly<{
2286
2286
  sessionId: number | null;
2287
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2287
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2288
2288
  messageSequence: number | null;
2289
2289
  toolExecutionId: string | null;
2290
2290
  resourceKey: string | null;
@@ -2298,7 +2298,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2298
2298
  id: string;
2299
2299
  provenance: Readonly<{
2300
2300
  sessionId: number | null;
2301
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2301
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2302
2302
  messageSequence: number | null;
2303
2303
  toolExecutionId: string | null;
2304
2304
  resourceKey: string | null;
@@ -2313,7 +2313,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2313
2313
  id: string;
2314
2314
  provenance: Readonly<{
2315
2315
  sessionId: number | null;
2316
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2316
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2317
2317
  messageSequence: number | null;
2318
2318
  toolExecutionId: string | null;
2319
2319
  resourceKey: string | null;
@@ -2325,8 +2325,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2325
2325
  }>[] | undefined;
2326
2326
  prunedItemCounts?: Readonly<{
2327
2327
  resource: number;
2328
- running_session: number;
2329
2328
  decision: number;
2329
+ running_session: number;
2330
2330
  completed_work: number;
2331
2331
  pending_work: number;
2332
2332
  uncertainty: number;
@@ -2339,7 +2339,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2339
2339
  resourceKey: string;
2340
2340
  provenance: Readonly<{
2341
2341
  sessionId: number | null;
2342
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2342
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2343
2343
  messageSequence: number | null;
2344
2344
  toolExecutionId: string | null;
2345
2345
  resourceKey: string | null;
@@ -2354,7 +2354,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2354
2354
  sourceQuotes: string[];
2355
2355
  provenance: Readonly<{
2356
2356
  sessionId: number | null;
2357
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2357
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2358
2358
  messageSequence: number | null;
2359
2359
  toolExecutionId: string | null;
2360
2360
  resourceKey: string | null;
@@ -2369,7 +2369,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2369
2369
  sourceQuotes: string[];
2370
2370
  provenance: Readonly<{
2371
2371
  sessionId: number | null;
2372
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2372
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2373
2373
  messageSequence: number | null;
2374
2374
  toolExecutionId: string | null;
2375
2375
  resourceKey: string | null;
@@ -2384,7 +2384,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2384
2384
  sourceQuotes: string[];
2385
2385
  provenance: Readonly<{
2386
2386
  sessionId: number | null;
2387
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2387
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2388
2388
  messageSequence: number | null;
2389
2389
  toolExecutionId: string | null;
2390
2390
  resourceKey: string | null;
@@ -2399,7 +2399,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2399
2399
  sourceQuotes: string[];
2400
2400
  provenance: Readonly<{
2401
2401
  sessionId: number | null;
2402
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2402
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2403
2403
  messageSequence: number | null;
2404
2404
  toolExecutionId: string | null;
2405
2405
  resourceKey: string | null;
@@ -2414,7 +2414,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2414
2414
  sourceQuotes: string[];
2415
2415
  provenance: Readonly<{
2416
2416
  sessionId: number | null;
2417
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2417
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2418
2418
  messageSequence: number | null;
2419
2419
  toolExecutionId: string | null;
2420
2420
  resourceKey: string | null;
@@ -2429,7 +2429,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2429
2429
  managerInstanceId: string;
2430
2430
  provenance: Readonly<{
2431
2431
  sessionId: number | null;
2432
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2432
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2433
2433
  messageSequence: number | null;
2434
2434
  toolExecutionId: string | null;
2435
2435
  resourceKey: string | null;
@@ -2444,7 +2444,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2444
2444
  sourceQuotes: string[];
2445
2445
  provenance: Readonly<{
2446
2446
  sessionId: number | null;
2447
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2447
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2448
2448
  messageSequence: number | null;
2449
2449
  toolExecutionId: string | null;
2450
2450
  resourceKey: string | null;
@@ -2455,9 +2455,9 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2455
2455
  }>[];
2456
2456
  prunedItemCounts: Readonly<{
2457
2457
  resource: number;
2458
+ decision: number;
2458
2459
  running_session: number;
2459
2460
  constraint: number;
2460
- decision: number;
2461
2461
  completed_work: number;
2462
2462
  pending_work: number;
2463
2463
  uncertainty: number;
@@ -2469,7 +2469,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2469
2469
  resourceKey: string;
2470
2470
  provenance: Readonly<{
2471
2471
  sessionId: number | null;
2472
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2472
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2473
2473
  messageSequence: number | null;
2474
2474
  toolExecutionId: string | null;
2475
2475
  resourceKey: string | null;
@@ -2483,7 +2483,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2483
2483
  id: string;
2484
2484
  provenance: Readonly<{
2485
2485
  sessionId: number | null;
2486
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2486
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2487
2487
  messageSequence: number | null;
2488
2488
  toolExecutionId: string | null;
2489
2489
  resourceKey: string | null;
@@ -2498,7 +2498,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2498
2498
  id: string;
2499
2499
  provenance: Readonly<{
2500
2500
  sessionId: number | null;
2501
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2501
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2502
2502
  messageSequence: number | null;
2503
2503
  toolExecutionId: string | null;
2504
2504
  resourceKey: string | null;
@@ -2513,7 +2513,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2513
2513
  id: string;
2514
2514
  provenance: Readonly<{
2515
2515
  sessionId: number | null;
2516
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2516
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2517
2517
  messageSequence: number | null;
2518
2518
  toolExecutionId: string | null;
2519
2519
  resourceKey: string | null;
@@ -2528,7 +2528,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2528
2528
  id: string;
2529
2529
  provenance: Readonly<{
2530
2530
  sessionId: number | null;
2531
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2531
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2532
2532
  messageSequence: number | null;
2533
2533
  toolExecutionId: string | null;
2534
2534
  resourceKey: string | null;
@@ -2544,7 +2544,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2544
2544
  managerInstanceId: string;
2545
2545
  provenance: Readonly<{
2546
2546
  sessionId: number | null;
2547
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2547
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2548
2548
  messageSequence: number | null;
2549
2549
  toolExecutionId: string | null;
2550
2550
  resourceKey: string | null;
@@ -2558,7 +2558,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2558
2558
  id: string;
2559
2559
  provenance: Readonly<{
2560
2560
  sessionId: number | null;
2561
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2561
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2562
2562
  messageSequence: number | null;
2563
2563
  toolExecutionId: string | null;
2564
2564
  resourceKey: string | null;
@@ -2573,7 +2573,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2573
2573
  id: string;
2574
2574
  provenance: Readonly<{
2575
2575
  sessionId: number | null;
2576
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2576
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2577
2577
  messageSequence: number | null;
2578
2578
  toolExecutionId: string | null;
2579
2579
  resourceKey: string | null;
@@ -2585,8 +2585,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2585
2585
  }>[] | undefined;
2586
2586
  prunedItemCounts?: Readonly<{
2587
2587
  resource: number;
2588
- running_session: number;
2589
2588
  decision: number;
2589
+ running_session: number;
2590
2590
  completed_work: number;
2591
2591
  pending_work: number;
2592
2592
  uncertainty: number;
@@ -2972,7 +2972,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2972
2972
  fromSequenceExclusive: number;
2973
2973
  throughSequence: number;
2974
2974
  };
2975
- completeness: "legacy_snapshot" | "complete";
2975
+ completeness: "complete" | "legacy_snapshot";
2976
2976
  }>;
2977
2977
  semanticState: Readonly<{
2978
2978
  version: 1;
@@ -2981,7 +2981,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2981
2981
  resourceKey: string;
2982
2982
  provenance: Readonly<{
2983
2983
  sessionId: number | null;
2984
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2984
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
2985
2985
  messageSequence: number | null;
2986
2986
  toolExecutionId: string | null;
2987
2987
  resourceKey: string | null;
@@ -2996,7 +2996,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2996
2996
  sourceQuotes: string[];
2997
2997
  provenance: Readonly<{
2998
2998
  sessionId: number | null;
2999
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
2999
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3000
3000
  messageSequence: number | null;
3001
3001
  toolExecutionId: string | null;
3002
3002
  resourceKey: string | null;
@@ -3011,7 +3011,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3011
3011
  sourceQuotes: string[];
3012
3012
  provenance: Readonly<{
3013
3013
  sessionId: number | null;
3014
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3014
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3015
3015
  messageSequence: number | null;
3016
3016
  toolExecutionId: string | null;
3017
3017
  resourceKey: string | null;
@@ -3026,7 +3026,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3026
3026
  sourceQuotes: string[];
3027
3027
  provenance: Readonly<{
3028
3028
  sessionId: number | null;
3029
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3029
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3030
3030
  messageSequence: number | null;
3031
3031
  toolExecutionId: string | null;
3032
3032
  resourceKey: string | null;
@@ -3041,7 +3041,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3041
3041
  sourceQuotes: string[];
3042
3042
  provenance: Readonly<{
3043
3043
  sessionId: number | null;
3044
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3044
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3045
3045
  messageSequence: number | null;
3046
3046
  toolExecutionId: string | null;
3047
3047
  resourceKey: string | null;
@@ -3056,7 +3056,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3056
3056
  sourceQuotes: string[];
3057
3057
  provenance: Readonly<{
3058
3058
  sessionId: number | null;
3059
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3059
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3060
3060
  messageSequence: number | null;
3061
3061
  toolExecutionId: string | null;
3062
3062
  resourceKey: string | null;
@@ -3071,7 +3071,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3071
3071
  managerInstanceId: string;
3072
3072
  provenance: Readonly<{
3073
3073
  sessionId: number | null;
3074
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3074
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3075
3075
  messageSequence: number | null;
3076
3076
  toolExecutionId: string | null;
3077
3077
  resourceKey: string | null;
@@ -3086,7 +3086,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3086
3086
  sourceQuotes: string[];
3087
3087
  provenance: Readonly<{
3088
3088
  sessionId: number | null;
3089
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3089
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3090
3090
  messageSequence: number | null;
3091
3091
  toolExecutionId: string | null;
3092
3092
  resourceKey: string | null;
@@ -3097,9 +3097,9 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3097
3097
  }>[];
3098
3098
  prunedItemCounts: Readonly<{
3099
3099
  resource: number;
3100
+ decision: number;
3100
3101
  running_session: number;
3101
3102
  constraint: number;
3102
- decision: number;
3103
3103
  completed_work: number;
3104
3104
  pending_work: number;
3105
3105
  uncertainty: number;
@@ -3201,7 +3201,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3201
3201
  fromSequenceExclusive: number;
3202
3202
  throughSequence: number;
3203
3203
  };
3204
- completeness: "legacy_snapshot" | "complete";
3204
+ completeness: "complete" | "legacy_snapshot";
3205
3205
  }>;
3206
3206
  semanticState: Readonly<{
3207
3207
  version: 1;
@@ -3210,7 +3210,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3210
3210
  resourceKey: string;
3211
3211
  provenance: Readonly<{
3212
3212
  sessionId: number | null;
3213
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3213
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3214
3214
  messageSequence: number | null;
3215
3215
  toolExecutionId: string | null;
3216
3216
  resourceKey: string | null;
@@ -3224,7 +3224,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3224
3224
  id: string;
3225
3225
  provenance: Readonly<{
3226
3226
  sessionId: number | null;
3227
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3227
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3228
3228
  messageSequence: number | null;
3229
3229
  toolExecutionId: string | null;
3230
3230
  resourceKey: string | null;
@@ -3239,7 +3239,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3239
3239
  id: string;
3240
3240
  provenance: Readonly<{
3241
3241
  sessionId: number | null;
3242
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3242
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3243
3243
  messageSequence: number | null;
3244
3244
  toolExecutionId: string | null;
3245
3245
  resourceKey: string | null;
@@ -3254,7 +3254,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3254
3254
  id: string;
3255
3255
  provenance: Readonly<{
3256
3256
  sessionId: number | null;
3257
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3257
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3258
3258
  messageSequence: number | null;
3259
3259
  toolExecutionId: string | null;
3260
3260
  resourceKey: string | null;
@@ -3269,7 +3269,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3269
3269
  id: string;
3270
3270
  provenance: Readonly<{
3271
3271
  sessionId: number | null;
3272
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3272
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3273
3273
  messageSequence: number | null;
3274
3274
  toolExecutionId: string | null;
3275
3275
  resourceKey: string | null;
@@ -3285,7 +3285,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3285
3285
  managerInstanceId: string;
3286
3286
  provenance: Readonly<{
3287
3287
  sessionId: number | null;
3288
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3288
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3289
3289
  messageSequence: number | null;
3290
3290
  toolExecutionId: string | null;
3291
3291
  resourceKey: string | null;
@@ -3299,7 +3299,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3299
3299
  id: string;
3300
3300
  provenance: Readonly<{
3301
3301
  sessionId: number | null;
3302
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3302
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3303
3303
  messageSequence: number | null;
3304
3304
  toolExecutionId: string | null;
3305
3305
  resourceKey: string | null;
@@ -3314,7 +3314,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3314
3314
  id: string;
3315
3315
  provenance: Readonly<{
3316
3316
  sessionId: number | null;
3317
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3317
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3318
3318
  messageSequence: number | null;
3319
3319
  toolExecutionId: string | null;
3320
3320
  resourceKey: string | null;
@@ -3326,8 +3326,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3326
3326
  }>[] | undefined;
3327
3327
  prunedItemCounts?: Readonly<{
3328
3328
  resource: number;
3329
- running_session: number;
3330
3329
  decision: number;
3330
+ running_session: number;
3331
3331
  completed_work: number;
3332
3332
  pending_work: number;
3333
3333
  uncertainty: number;
@@ -3430,7 +3430,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3430
3430
  fromSequenceExclusive: number;
3431
3431
  throughSequence: number;
3432
3432
  };
3433
- completeness: "legacy_snapshot" | "complete";
3433
+ completeness: "complete" | "legacy_snapshot";
3434
3434
  }>;
3435
3435
  semanticState: Readonly<{
3436
3436
  version: 1;
@@ -3439,7 +3439,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3439
3439
  resourceKey: string;
3440
3440
  provenance: Readonly<{
3441
3441
  sessionId: number | null;
3442
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3442
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3443
3443
  messageSequence: number | null;
3444
3444
  toolExecutionId: string | null;
3445
3445
  resourceKey: string | null;
@@ -3454,7 +3454,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3454
3454
  sourceQuotes: string[];
3455
3455
  provenance: Readonly<{
3456
3456
  sessionId: number | null;
3457
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3457
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3458
3458
  messageSequence: number | null;
3459
3459
  toolExecutionId: string | null;
3460
3460
  resourceKey: string | null;
@@ -3469,7 +3469,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3469
3469
  sourceQuotes: string[];
3470
3470
  provenance: Readonly<{
3471
3471
  sessionId: number | null;
3472
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3472
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3473
3473
  messageSequence: number | null;
3474
3474
  toolExecutionId: string | null;
3475
3475
  resourceKey: string | null;
@@ -3484,7 +3484,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3484
3484
  sourceQuotes: string[];
3485
3485
  provenance: Readonly<{
3486
3486
  sessionId: number | null;
3487
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3487
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3488
3488
  messageSequence: number | null;
3489
3489
  toolExecutionId: string | null;
3490
3490
  resourceKey: string | null;
@@ -3499,7 +3499,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3499
3499
  sourceQuotes: string[];
3500
3500
  provenance: Readonly<{
3501
3501
  sessionId: number | null;
3502
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3502
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3503
3503
  messageSequence: number | null;
3504
3504
  toolExecutionId: string | null;
3505
3505
  resourceKey: string | null;
@@ -3514,7 +3514,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3514
3514
  sourceQuotes: string[];
3515
3515
  provenance: Readonly<{
3516
3516
  sessionId: number | null;
3517
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3517
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3518
3518
  messageSequence: number | null;
3519
3519
  toolExecutionId: string | null;
3520
3520
  resourceKey: string | null;
@@ -3529,7 +3529,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3529
3529
  managerInstanceId: string;
3530
3530
  provenance: Readonly<{
3531
3531
  sessionId: number | null;
3532
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3532
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3533
3533
  messageSequence: number | null;
3534
3534
  toolExecutionId: string | null;
3535
3535
  resourceKey: string | null;
@@ -3544,7 +3544,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3544
3544
  sourceQuotes: string[];
3545
3545
  provenance: Readonly<{
3546
3546
  sessionId: number | null;
3547
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3547
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3548
3548
  messageSequence: number | null;
3549
3549
  toolExecutionId: string | null;
3550
3550
  resourceKey: string | null;
@@ -3555,9 +3555,9 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3555
3555
  }>[];
3556
3556
  prunedItemCounts: Readonly<{
3557
3557
  resource: number;
3558
+ decision: number;
3558
3559
  running_session: number;
3559
3560
  constraint: number;
3560
- decision: number;
3561
3561
  completed_work: number;
3562
3562
  pending_work: number;
3563
3563
  uncertainty: number;
@@ -3659,7 +3659,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3659
3659
  fromSequenceExclusive: number;
3660
3660
  throughSequence: number;
3661
3661
  };
3662
- completeness: "legacy_snapshot" | "complete";
3662
+ completeness: "complete" | "legacy_snapshot";
3663
3663
  }>;
3664
3664
  semanticState: Readonly<{
3665
3665
  version: 1;
@@ -3668,7 +3668,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3668
3668
  resourceKey: string;
3669
3669
  provenance: Readonly<{
3670
3670
  sessionId: number | null;
3671
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3671
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3672
3672
  messageSequence: number | null;
3673
3673
  toolExecutionId: string | null;
3674
3674
  resourceKey: string | null;
@@ -3682,7 +3682,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3682
3682
  id: string;
3683
3683
  provenance: Readonly<{
3684
3684
  sessionId: number | null;
3685
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3685
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3686
3686
  messageSequence: number | null;
3687
3687
  toolExecutionId: string | null;
3688
3688
  resourceKey: string | null;
@@ -3697,7 +3697,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3697
3697
  id: string;
3698
3698
  provenance: Readonly<{
3699
3699
  sessionId: number | null;
3700
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3700
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3701
3701
  messageSequence: number | null;
3702
3702
  toolExecutionId: string | null;
3703
3703
  resourceKey: string | null;
@@ -3712,7 +3712,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3712
3712
  id: string;
3713
3713
  provenance: Readonly<{
3714
3714
  sessionId: number | null;
3715
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3715
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3716
3716
  messageSequence: number | null;
3717
3717
  toolExecutionId: string | null;
3718
3718
  resourceKey: string | null;
@@ -3727,7 +3727,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3727
3727
  id: string;
3728
3728
  provenance: Readonly<{
3729
3729
  sessionId: number | null;
3730
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3730
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3731
3731
  messageSequence: number | null;
3732
3732
  toolExecutionId: string | null;
3733
3733
  resourceKey: string | null;
@@ -3743,7 +3743,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3743
3743
  managerInstanceId: string;
3744
3744
  provenance: Readonly<{
3745
3745
  sessionId: number | null;
3746
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3746
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3747
3747
  messageSequence: number | null;
3748
3748
  toolExecutionId: string | null;
3749
3749
  resourceKey: string | null;
@@ -3757,7 +3757,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3757
3757
  id: string;
3758
3758
  provenance: Readonly<{
3759
3759
  sessionId: number | null;
3760
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3760
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3761
3761
  messageSequence: number | null;
3762
3762
  toolExecutionId: string | null;
3763
3763
  resourceKey: string | null;
@@ -3772,7 +3772,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3772
3772
  id: string;
3773
3773
  provenance: Readonly<{
3774
3774
  sessionId: number | null;
3775
- kind: "resource" | "message" | "tool_execution" | "running_session" | "legacy_snapshot";
3775
+ kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
3776
3776
  messageSequence: number | null;
3777
3777
  toolExecutionId: string | null;
3778
3778
  resourceKey: string | null;
@@ -3784,8 +3784,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3784
3784
  }>[] | undefined;
3785
3785
  prunedItemCounts?: Readonly<{
3786
3786
  resource: number;
3787
- running_session: number;
3788
3787
  decision: number;
3788
+ running_session: number;
3789
3789
  completed_work: number;
3790
3790
  pending_work: number;
3791
3791
  uncertainty: number;
@@ -3826,13 +3826,13 @@ export declare const archivedTranscriptMessageSchema: z.ZodReadonly<z.ZodObject<
3826
3826
  }, "strict", z.ZodTypeAny, {
3827
3827
  createdAt: string;
3828
3828
  message: ModelMessage;
3829
- provenance: "legacy_snapshot" | "native";
3830
3829
  sequence: number;
3830
+ provenance: "legacy_snapshot" | "native";
3831
3831
  }, {
3832
3832
  createdAt: string;
3833
3833
  message: ModelMessage;
3834
- provenance: "legacy_snapshot" | "native";
3835
3834
  sequence: number;
3835
+ provenance: "legacy_snapshot" | "native";
3836
3836
  }>>;
3837
3837
  export type ArchivedTranscriptMessage = z.infer<typeof archivedTranscriptMessageSchema>;
3838
3838
  export declare const compactionConstraintCandidateSchema: z.ZodReadonly<z.ZodObject<{