@roll-agent/runtime 0.24.0 → 0.25.1

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.
@@ -135,12 +135,12 @@ declare const compactionToolStateSchema: z.ZodReadonly<z.ZodObject<{
135
135
  toolCallId: z.ZodString;
136
136
  count: z.ZodOptional<z.ZodNumber>;
137
137
  }, "strict", z.ZodTypeAny, {
138
- toolCallId: string;
139
138
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
139
+ toolCallId: string;
140
140
  count?: number | undefined;
141
141
  }, {
142
- toolCallId: string;
143
142
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
143
+ toolCallId: string;
144
144
  count?: number | undefined;
145
145
  }>>, "many">;
146
146
  }, "strict", z.ZodTypeAny, {
@@ -166,8 +166,8 @@ declare const compactionToolStateSchema: z.ZodReadonly<z.ZodObject<{
166
166
  }>[];
167
167
  integrityStatus: "invalid" | "valid" | "sanitized";
168
168
  anomalies: Readonly<{
169
- toolCallId: string;
170
169
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
170
+ toolCallId: string;
171
171
  count?: number | undefined;
172
172
  }>[];
173
173
  }, {
@@ -193,8 +193,8 @@ declare const compactionToolStateSchema: z.ZodReadonly<z.ZodObject<{
193
193
  }>[];
194
194
  integrityStatus: "invalid" | "valid" | "sanitized";
195
195
  anomalies: Readonly<{
196
- toolCallId: string;
197
196
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
197
+ toolCallId: string;
198
198
  count?: number | undefined;
199
199
  }>[];
200
200
  }>>;
@@ -500,12 +500,12 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
500
500
  toolCallId: z.ZodString;
501
501
  count: z.ZodOptional<z.ZodNumber>;
502
502
  }, "strict", z.ZodTypeAny, {
503
- toolCallId: string;
504
503
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
504
+ toolCallId: string;
505
505
  count?: number | undefined;
506
506
  }, {
507
- toolCallId: string;
508
507
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
508
+ toolCallId: string;
509
509
  count?: number | undefined;
510
510
  }>>, "many">;
511
511
  }, "strict", z.ZodTypeAny, {
@@ -531,8 +531,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
531
531
  }>[];
532
532
  integrityStatus: "invalid" | "valid" | "sanitized";
533
533
  anomalies: Readonly<{
534
- toolCallId: string;
535
534
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
535
+ toolCallId: string;
536
536
  count?: number | undefined;
537
537
  }>[];
538
538
  }, {
@@ -558,8 +558,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
558
558
  }>[];
559
559
  integrityStatus: "invalid" | "valid" | "sanitized";
560
560
  anomalies: Readonly<{
561
- toolCallId: string;
562
561
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
562
+ toolCallId: string;
563
563
  count?: number | undefined;
564
564
  }>[];
565
565
  }>>;
@@ -720,8 +720,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
720
720
  }>[];
721
721
  integrityStatus: "invalid" | "valid" | "sanitized";
722
722
  anomalies: Readonly<{
723
- toolCallId: string;
724
723
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
724
+ toolCallId: string;
725
725
  count?: number | undefined;
726
726
  }>[];
727
727
  }>;
@@ -798,8 +798,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
798
798
  }>[];
799
799
  integrityStatus: "invalid" | "valid" | "sanitized";
800
800
  anomalies: Readonly<{
801
- toolCallId: string;
802
801
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
802
+ toolCallId: string;
803
803
  count?: number | undefined;
804
804
  }>[];
805
805
  }>;
@@ -1001,12 +1001,12 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1001
1001
  toolCallId: z.ZodString;
1002
1002
  count: z.ZodOptional<z.ZodNumber>;
1003
1003
  }, "strict", z.ZodTypeAny, {
1004
- toolCallId: string;
1005
1004
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
1005
+ toolCallId: string;
1006
1006
  count?: number | undefined;
1007
1007
  }, {
1008
- toolCallId: string;
1009
1008
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
1009
+ toolCallId: string;
1010
1010
  count?: number | undefined;
1011
1011
  }>>, "many">;
1012
1012
  }, "strict", z.ZodTypeAny, {
@@ -1032,8 +1032,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1032
1032
  }>[];
1033
1033
  integrityStatus: "invalid" | "valid" | "sanitized";
1034
1034
  anomalies: Readonly<{
1035
- toolCallId: string;
1036
1035
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
1036
+ toolCallId: string;
1037
1037
  count?: number | undefined;
1038
1038
  }>[];
1039
1039
  }, {
@@ -1059,8 +1059,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1059
1059
  }>[];
1060
1060
  integrityStatus: "invalid" | "valid" | "sanitized";
1061
1061
  anomalies: Readonly<{
1062
- toolCallId: string;
1063
1062
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
1063
+ toolCallId: string;
1064
1064
  count?: number | undefined;
1065
1065
  }>[];
1066
1066
  }>>;
@@ -1225,8 +1225,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1225
1225
  }>[];
1226
1226
  integrityStatus: "invalid" | "valid" | "sanitized";
1227
1227
  anomalies: Readonly<{
1228
- toolCallId: string;
1229
1228
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
1229
+ toolCallId: string;
1230
1230
  count?: number | undefined;
1231
1231
  }>[];
1232
1232
  }>;
@@ -1319,8 +1319,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
1319
1319
  }>[];
1320
1320
  integrityStatus: "invalid" | "valid" | "sanitized";
1321
1321
  anomalies: Readonly<{
1322
- toolCallId: string;
1323
1322
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
1323
+ toolCallId: string;
1324
1324
  count?: number | undefined;
1325
1325
  }>[];
1326
1326
  }>;
@@ -1431,8 +1431,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1431
1431
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1432
1432
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1433
1433
  }, "strict", z.ZodTypeAny, {
1434
- sessionId: number | null;
1435
1434
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1435
+ sessionId: number | null;
1436
1436
  messageSequence: number | null;
1437
1437
  toolExecutionId: string | null;
1438
1438
  resourceKey: string | null;
@@ -1440,8 +1440,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1440
1440
  checkpointId: string | null;
1441
1441
  snapshotIndex: number | null;
1442
1442
  }, {
1443
- sessionId: number | null;
1444
1443
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1444
+ sessionId: number | null;
1445
1445
  messageSequence: number | null;
1446
1446
  toolExecutionId: string | null;
1447
1447
  resourceKey: string | null;
@@ -1449,8 +1449,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1449
1449
  checkpointId?: string | null | undefined;
1450
1450
  snapshotIndex?: number | null | undefined;
1451
1451
  }>, {
1452
- sessionId: number | null;
1453
1452
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1453
+ sessionId: number | null;
1454
1454
  messageSequence: number | null;
1455
1455
  toolExecutionId: string | null;
1456
1456
  resourceKey: string | null;
@@ -1458,8 +1458,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1458
1458
  checkpointId: string | null;
1459
1459
  snapshotIndex: number | null;
1460
1460
  }, {
1461
- sessionId: number | null;
1462
1461
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1462
+ sessionId: number | null;
1463
1463
  messageSequence: number | null;
1464
1464
  toolExecutionId: string | null;
1465
1465
  resourceKey: string | null;
@@ -1473,8 +1473,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1473
1473
  text: string;
1474
1474
  sourceQuotes: string[];
1475
1475
  provenance: Readonly<{
1476
- sessionId: number | null;
1477
1476
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1477
+ sessionId: number | null;
1478
1478
  messageSequence: number | null;
1479
1479
  toolExecutionId: string | null;
1480
1480
  resourceKey: string | null;
@@ -1486,8 +1486,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1486
1486
  id: string;
1487
1487
  text: string;
1488
1488
  provenance: Readonly<{
1489
- sessionId: number | null;
1490
1489
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1490
+ sessionId: number | null;
1491
1491
  messageSequence: number | null;
1492
1492
  toolExecutionId: string | null;
1493
1493
  resourceKey: string | null;
@@ -1510,8 +1510,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1510
1510
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1511
1511
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1512
1512
  }, "strict", z.ZodTypeAny, {
1513
- sessionId: number | null;
1514
1513
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1514
+ sessionId: number | null;
1515
1515
  messageSequence: number | null;
1516
1516
  toolExecutionId: string | null;
1517
1517
  resourceKey: string | null;
@@ -1519,8 +1519,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1519
1519
  checkpointId: string | null;
1520
1520
  snapshotIndex: number | null;
1521
1521
  }, {
1522
- sessionId: number | null;
1523
1522
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1523
+ sessionId: number | null;
1524
1524
  messageSequence: number | null;
1525
1525
  toolExecutionId: string | null;
1526
1526
  resourceKey: string | null;
@@ -1528,8 +1528,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1528
1528
  checkpointId?: string | null | undefined;
1529
1529
  snapshotIndex?: number | null | undefined;
1530
1530
  }>, {
1531
- sessionId: number | null;
1532
1531
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1532
+ sessionId: number | null;
1533
1533
  messageSequence: number | null;
1534
1534
  toolExecutionId: string | null;
1535
1535
  resourceKey: string | null;
@@ -1537,8 +1537,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1537
1537
  checkpointId: string | null;
1538
1538
  snapshotIndex: number | null;
1539
1539
  }, {
1540
- sessionId: number | null;
1541
1540
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1541
+ sessionId: number | null;
1542
1542
  messageSequence: number | null;
1543
1543
  toolExecutionId: string | null;
1544
1544
  resourceKey: string | null;
@@ -1552,8 +1552,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1552
1552
  text: string;
1553
1553
  sourceQuotes: string[];
1554
1554
  provenance: Readonly<{
1555
- sessionId: number | null;
1556
1555
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1556
+ sessionId: number | null;
1557
1557
  messageSequence: number | null;
1558
1558
  toolExecutionId: string | null;
1559
1559
  resourceKey: string | null;
@@ -1565,8 +1565,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1565
1565
  id: string;
1566
1566
  text: string;
1567
1567
  provenance: Readonly<{
1568
- sessionId: number | null;
1569
1568
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1569
+ sessionId: number | null;
1570
1570
  messageSequence: number | null;
1571
1571
  toolExecutionId: string | null;
1572
1572
  resourceKey: string | null;
@@ -1589,8 +1589,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1589
1589
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1590
1590
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1591
1591
  }, "strict", z.ZodTypeAny, {
1592
- sessionId: number | null;
1593
1592
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1593
+ sessionId: number | null;
1594
1594
  messageSequence: number | null;
1595
1595
  toolExecutionId: string | null;
1596
1596
  resourceKey: string | null;
@@ -1598,8 +1598,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1598
1598
  checkpointId: string | null;
1599
1599
  snapshotIndex: number | null;
1600
1600
  }, {
1601
- sessionId: number | null;
1602
1601
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1602
+ sessionId: number | null;
1603
1603
  messageSequence: number | null;
1604
1604
  toolExecutionId: string | null;
1605
1605
  resourceKey: string | null;
@@ -1607,8 +1607,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1607
1607
  checkpointId?: string | null | undefined;
1608
1608
  snapshotIndex?: number | null | undefined;
1609
1609
  }>, {
1610
- sessionId: number | null;
1611
1610
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1611
+ sessionId: number | null;
1612
1612
  messageSequence: number | null;
1613
1613
  toolExecutionId: string | null;
1614
1614
  resourceKey: string | null;
@@ -1616,8 +1616,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1616
1616
  checkpointId: string | null;
1617
1617
  snapshotIndex: number | null;
1618
1618
  }, {
1619
- sessionId: number | null;
1620
1619
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1620
+ sessionId: number | null;
1621
1621
  messageSequence: number | null;
1622
1622
  toolExecutionId: string | null;
1623
1623
  resourceKey: string | null;
@@ -1631,8 +1631,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1631
1631
  text: string;
1632
1632
  sourceQuotes: string[];
1633
1633
  provenance: Readonly<{
1634
- sessionId: number | null;
1635
1634
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1635
+ sessionId: number | null;
1636
1636
  messageSequence: number | null;
1637
1637
  toolExecutionId: string | null;
1638
1638
  resourceKey: string | null;
@@ -1644,8 +1644,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1644
1644
  id: string;
1645
1645
  text: string;
1646
1646
  provenance: Readonly<{
1647
- sessionId: number | null;
1648
1647
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1648
+ sessionId: number | null;
1649
1649
  messageSequence: number | null;
1650
1650
  toolExecutionId: string | null;
1651
1651
  resourceKey: string | null;
@@ -1668,8 +1668,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1668
1668
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1669
1669
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1670
1670
  }, "strict", z.ZodTypeAny, {
1671
- sessionId: number | null;
1672
1671
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1672
+ sessionId: number | null;
1673
1673
  messageSequence: number | null;
1674
1674
  toolExecutionId: string | null;
1675
1675
  resourceKey: string | null;
@@ -1677,8 +1677,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1677
1677
  checkpointId: string | null;
1678
1678
  snapshotIndex: number | null;
1679
1679
  }, {
1680
- sessionId: number | null;
1681
1680
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1681
+ sessionId: number | null;
1682
1682
  messageSequence: number | null;
1683
1683
  toolExecutionId: string | null;
1684
1684
  resourceKey: string | null;
@@ -1686,8 +1686,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1686
1686
  checkpointId?: string | null | undefined;
1687
1687
  snapshotIndex?: number | null | undefined;
1688
1688
  }>, {
1689
- sessionId: number | null;
1690
1689
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1690
+ sessionId: number | null;
1691
1691
  messageSequence: number | null;
1692
1692
  toolExecutionId: string | null;
1693
1693
  resourceKey: string | null;
@@ -1695,8 +1695,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1695
1695
  checkpointId: string | null;
1696
1696
  snapshotIndex: number | null;
1697
1697
  }, {
1698
- sessionId: number | null;
1699
1698
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1699
+ sessionId: number | null;
1700
1700
  messageSequence: number | null;
1701
1701
  toolExecutionId: string | null;
1702
1702
  resourceKey: string | null;
@@ -1710,8 +1710,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1710
1710
  text: string;
1711
1711
  sourceQuotes: string[];
1712
1712
  provenance: Readonly<{
1713
- sessionId: number | null;
1714
1713
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1714
+ sessionId: number | null;
1715
1715
  messageSequence: number | null;
1716
1716
  toolExecutionId: string | null;
1717
1717
  resourceKey: string | null;
@@ -1723,8 +1723,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1723
1723
  id: string;
1724
1724
  text: string;
1725
1725
  provenance: Readonly<{
1726
- sessionId: number | null;
1727
1726
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1727
+ sessionId: number | null;
1728
1728
  messageSequence: number | null;
1729
1729
  toolExecutionId: string | null;
1730
1730
  resourceKey: string | null;
@@ -1747,8 +1747,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1747
1747
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1748
1748
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1749
1749
  }, "strict", z.ZodTypeAny, {
1750
- sessionId: number | null;
1751
1750
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1751
+ sessionId: number | null;
1752
1752
  messageSequence: number | null;
1753
1753
  toolExecutionId: string | null;
1754
1754
  resourceKey: string | null;
@@ -1756,8 +1756,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1756
1756
  checkpointId: string | null;
1757
1757
  snapshotIndex: number | null;
1758
1758
  }, {
1759
- sessionId: number | null;
1760
1759
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1760
+ sessionId: number | null;
1761
1761
  messageSequence: number | null;
1762
1762
  toolExecutionId: string | null;
1763
1763
  resourceKey: string | null;
@@ -1765,8 +1765,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1765
1765
  checkpointId?: string | null | undefined;
1766
1766
  snapshotIndex?: number | null | undefined;
1767
1767
  }>, {
1768
- sessionId: number | null;
1769
1768
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1769
+ sessionId: number | null;
1770
1770
  messageSequence: number | null;
1771
1771
  toolExecutionId: string | null;
1772
1772
  resourceKey: string | null;
@@ -1774,8 +1774,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1774
1774
  checkpointId: string | null;
1775
1775
  snapshotIndex: number | null;
1776
1776
  }, {
1777
- sessionId: number | null;
1778
1777
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1778
+ sessionId: number | null;
1779
1779
  messageSequence: number | null;
1780
1780
  toolExecutionId: string | null;
1781
1781
  resourceKey: string | null;
@@ -1789,8 +1789,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1789
1789
  text: string;
1790
1790
  sourceQuotes: string[];
1791
1791
  provenance: Readonly<{
1792
- sessionId: number | null;
1793
1792
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1793
+ sessionId: number | null;
1794
1794
  messageSequence: number | null;
1795
1795
  toolExecutionId: string | null;
1796
1796
  resourceKey: string | null;
@@ -1802,8 +1802,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1802
1802
  id: string;
1803
1803
  text: string;
1804
1804
  provenance: Readonly<{
1805
- sessionId: number | null;
1806
1805
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1806
+ sessionId: number | null;
1807
1807
  messageSequence: number | null;
1808
1808
  toolExecutionId: string | null;
1809
1809
  resourceKey: string | null;
@@ -1826,8 +1826,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1826
1826
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1827
1827
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1828
1828
  }, "strict", z.ZodTypeAny, {
1829
- sessionId: number | null;
1830
1829
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1830
+ sessionId: number | null;
1831
1831
  messageSequence: number | null;
1832
1832
  toolExecutionId: string | null;
1833
1833
  resourceKey: string | null;
@@ -1835,8 +1835,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1835
1835
  checkpointId: string | null;
1836
1836
  snapshotIndex: number | null;
1837
1837
  }, {
1838
- sessionId: number | null;
1839
1838
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1839
+ sessionId: number | null;
1840
1840
  messageSequence: number | null;
1841
1841
  toolExecutionId: string | null;
1842
1842
  resourceKey: string | null;
@@ -1844,8 +1844,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1844
1844
  checkpointId?: string | null | undefined;
1845
1845
  snapshotIndex?: number | null | undefined;
1846
1846
  }>, {
1847
- sessionId: number | null;
1848
1847
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1848
+ sessionId: number | null;
1849
1849
  messageSequence: number | null;
1850
1850
  toolExecutionId: string | null;
1851
1851
  resourceKey: string | null;
@@ -1853,8 +1853,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1853
1853
  checkpointId: string | null;
1854
1854
  snapshotIndex: number | null;
1855
1855
  }, {
1856
- sessionId: number | null;
1857
1856
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1857
+ sessionId: number | null;
1858
1858
  messageSequence: number | null;
1859
1859
  toolExecutionId: string | null;
1860
1860
  resourceKey: string | null;
@@ -1866,8 +1866,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1866
1866
  id: string & z.BRAND<"CompactionSemanticItemId">;
1867
1867
  resourceKey: string;
1868
1868
  provenance: Readonly<{
1869
- sessionId: number | null;
1870
1869
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1870
+ sessionId: number | null;
1871
1871
  messageSequence: number | null;
1872
1872
  toolExecutionId: string | null;
1873
1873
  resourceKey: string | null;
@@ -1879,8 +1879,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1879
1879
  id: string;
1880
1880
  resourceKey: string;
1881
1881
  provenance: Readonly<{
1882
- sessionId: number | null;
1883
1882
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1883
+ sessionId: number | null;
1884
1884
  messageSequence: number | null;
1885
1885
  toolExecutionId: string | null;
1886
1886
  resourceKey: string | null;
@@ -1903,8 +1903,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1903
1903
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1904
1904
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1905
1905
  }, "strict", z.ZodTypeAny, {
1906
- sessionId: number | null;
1907
1906
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1907
+ sessionId: number | null;
1908
1908
  messageSequence: number | null;
1909
1909
  toolExecutionId: string | null;
1910
1910
  resourceKey: string | null;
@@ -1912,8 +1912,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1912
1912
  checkpointId: string | null;
1913
1913
  snapshotIndex: number | null;
1914
1914
  }, {
1915
- sessionId: number | null;
1916
1915
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1916
+ sessionId: number | null;
1917
1917
  messageSequence: number | null;
1918
1918
  toolExecutionId: string | null;
1919
1919
  resourceKey: string | null;
@@ -1921,8 +1921,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1921
1921
  checkpointId?: string | null | undefined;
1922
1922
  snapshotIndex?: number | null | undefined;
1923
1923
  }>, {
1924
- sessionId: number | null;
1925
1924
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1925
+ sessionId: number | null;
1926
1926
  messageSequence: number | null;
1927
1927
  toolExecutionId: string | null;
1928
1928
  resourceKey: string | null;
@@ -1930,8 +1930,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1930
1930
  checkpointId: string | null;
1931
1931
  snapshotIndex: number | null;
1932
1932
  }, {
1933
- sessionId: number | null;
1934
1933
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1934
+ sessionId: number | null;
1935
1935
  messageSequence: number | null;
1936
1936
  toolExecutionId: string | null;
1937
1937
  resourceKey: string | null;
@@ -1944,8 +1944,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1944
1944
  sessionId: number;
1945
1945
  managerInstanceId: string;
1946
1946
  provenance: Readonly<{
1947
- sessionId: number | null;
1948
1947
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1948
+ sessionId: number | null;
1949
1949
  messageSequence: number | null;
1950
1950
  toolExecutionId: string | null;
1951
1951
  resourceKey: string | null;
@@ -1958,8 +1958,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1958
1958
  sessionId: number;
1959
1959
  managerInstanceId: string;
1960
1960
  provenance: Readonly<{
1961
- sessionId: number | null;
1962
1961
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1962
+ sessionId: number | null;
1963
1963
  messageSequence: number | null;
1964
1964
  toolExecutionId: string | null;
1965
1965
  resourceKey: string | null;
@@ -1981,8 +1981,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1981
1981
  checkpointId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1982
1982
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1983
1983
  }, "strict", z.ZodTypeAny, {
1984
- sessionId: number | null;
1985
1984
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1985
+ sessionId: number | null;
1986
1986
  messageSequence: number | null;
1987
1987
  toolExecutionId: string | null;
1988
1988
  resourceKey: string | null;
@@ -1990,8 +1990,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1990
1990
  checkpointId: string | null;
1991
1991
  snapshotIndex: number | null;
1992
1992
  }, {
1993
- sessionId: number | null;
1994
1993
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1994
+ sessionId: number | null;
1995
1995
  messageSequence: number | null;
1996
1996
  toolExecutionId: string | null;
1997
1997
  resourceKey: string | null;
@@ -1999,8 +1999,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
1999
1999
  checkpointId?: string | null | undefined;
2000
2000
  snapshotIndex?: number | null | undefined;
2001
2001
  }>, {
2002
- sessionId: number | null;
2003
2002
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2003
+ sessionId: number | null;
2004
2004
  messageSequence: number | null;
2005
2005
  toolExecutionId: string | null;
2006
2006
  resourceKey: string | null;
@@ -2008,8 +2008,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2008
2008
  checkpointId: string | null;
2009
2009
  snapshotIndex: number | null;
2010
2010
  }, {
2011
- sessionId: number | null;
2012
2011
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2012
+ sessionId: number | null;
2013
2013
  messageSequence: number | null;
2014
2014
  toolExecutionId: string | null;
2015
2015
  resourceKey: string | null;
@@ -2023,8 +2023,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2023
2023
  text: string;
2024
2024
  sourceQuotes: string[];
2025
2025
  provenance: Readonly<{
2026
- sessionId: number | null;
2027
2026
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2027
+ sessionId: number | null;
2028
2028
  messageSequence: number | null;
2029
2029
  toolExecutionId: string | null;
2030
2030
  resourceKey: string | null;
@@ -2036,8 +2036,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2036
2036
  id: string;
2037
2037
  text: string;
2038
2038
  provenance: Readonly<{
2039
- sessionId: number | null;
2040
2039
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2040
+ sessionId: number | null;
2041
2041
  messageSequence: number | null;
2042
2042
  toolExecutionId: string | null;
2043
2043
  resourceKey: string | null;
@@ -2078,8 +2078,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2078
2078
  id: string & z.BRAND<"CompactionSemanticItemId">;
2079
2079
  resourceKey: string;
2080
2080
  provenance: Readonly<{
2081
- sessionId: number | null;
2082
2081
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2082
+ sessionId: number | null;
2083
2083
  messageSequence: number | null;
2084
2084
  toolExecutionId: string | null;
2085
2085
  resourceKey: string | null;
@@ -2093,8 +2093,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2093
2093
  text: string;
2094
2094
  sourceQuotes: string[];
2095
2095
  provenance: Readonly<{
2096
- sessionId: number | null;
2097
2096
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2097
+ sessionId: number | null;
2098
2098
  messageSequence: number | null;
2099
2099
  toolExecutionId: string | null;
2100
2100
  resourceKey: string | null;
@@ -2108,8 +2108,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2108
2108
  text: string;
2109
2109
  sourceQuotes: string[];
2110
2110
  provenance: Readonly<{
2111
- sessionId: number | null;
2112
2111
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2112
+ sessionId: number | null;
2113
2113
  messageSequence: number | null;
2114
2114
  toolExecutionId: string | null;
2115
2115
  resourceKey: string | null;
@@ -2123,8 +2123,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2123
2123
  text: string;
2124
2124
  sourceQuotes: string[];
2125
2125
  provenance: Readonly<{
2126
- sessionId: number | null;
2127
2126
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2127
+ sessionId: number | null;
2128
2128
  messageSequence: number | null;
2129
2129
  toolExecutionId: string | null;
2130
2130
  resourceKey: string | null;
@@ -2138,8 +2138,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2138
2138
  text: string;
2139
2139
  sourceQuotes: string[];
2140
2140
  provenance: Readonly<{
2141
- sessionId: number | null;
2142
2141
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2142
+ sessionId: number | null;
2143
2143
  messageSequence: number | null;
2144
2144
  toolExecutionId: string | null;
2145
2145
  resourceKey: string | null;
@@ -2153,8 +2153,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2153
2153
  text: string;
2154
2154
  sourceQuotes: string[];
2155
2155
  provenance: Readonly<{
2156
- sessionId: number | null;
2157
2156
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2157
+ sessionId: number | null;
2158
2158
  messageSequence: number | null;
2159
2159
  toolExecutionId: string | null;
2160
2160
  resourceKey: string | null;
@@ -2168,8 +2168,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2168
2168
  sessionId: number;
2169
2169
  managerInstanceId: string;
2170
2170
  provenance: Readonly<{
2171
- sessionId: number | null;
2172
2171
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2172
+ sessionId: number | null;
2173
2173
  messageSequence: number | null;
2174
2174
  toolExecutionId: string | null;
2175
2175
  resourceKey: string | null;
@@ -2183,8 +2183,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2183
2183
  text: string;
2184
2184
  sourceQuotes: string[];
2185
2185
  provenance: Readonly<{
2186
- sessionId: number | null;
2187
2186
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2187
+ sessionId: number | null;
2188
2188
  messageSequence: number | null;
2189
2189
  toolExecutionId: string | null;
2190
2190
  resourceKey: string | null;
@@ -2208,8 +2208,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2208
2208
  id: string;
2209
2209
  resourceKey: string;
2210
2210
  provenance: Readonly<{
2211
- sessionId: number | null;
2212
2211
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2212
+ sessionId: number | null;
2213
2213
  messageSequence: number | null;
2214
2214
  toolExecutionId: string | null;
2215
2215
  resourceKey: string | null;
@@ -2222,8 +2222,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2222
2222
  id: string;
2223
2223
  text: string;
2224
2224
  provenance: Readonly<{
2225
- sessionId: number | null;
2226
2225
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2226
+ sessionId: number | null;
2227
2227
  messageSequence: number | null;
2228
2228
  toolExecutionId: string | null;
2229
2229
  resourceKey: string | null;
@@ -2237,8 +2237,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2237
2237
  id: string;
2238
2238
  text: string;
2239
2239
  provenance: Readonly<{
2240
- sessionId: number | null;
2241
2240
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2241
+ sessionId: number | null;
2242
2242
  messageSequence: number | null;
2243
2243
  toolExecutionId: string | null;
2244
2244
  resourceKey: string | null;
@@ -2252,8 +2252,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2252
2252
  id: string;
2253
2253
  text: string;
2254
2254
  provenance: Readonly<{
2255
- sessionId: number | null;
2256
2255
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2256
+ sessionId: number | null;
2257
2257
  messageSequence: number | null;
2258
2258
  toolExecutionId: string | null;
2259
2259
  resourceKey: string | null;
@@ -2267,8 +2267,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2267
2267
  id: string;
2268
2268
  text: string;
2269
2269
  provenance: Readonly<{
2270
- sessionId: number | null;
2271
2270
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2271
+ sessionId: number | null;
2272
2272
  messageSequence: number | null;
2273
2273
  toolExecutionId: string | null;
2274
2274
  resourceKey: string | null;
@@ -2283,8 +2283,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2283
2283
  sessionId: number;
2284
2284
  managerInstanceId: string;
2285
2285
  provenance: Readonly<{
2286
- sessionId: number | null;
2287
2286
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2287
+ sessionId: number | null;
2288
2288
  messageSequence: number | null;
2289
2289
  toolExecutionId: string | null;
2290
2290
  resourceKey: string | null;
@@ -2297,8 +2297,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2297
2297
  id: string;
2298
2298
  text: string;
2299
2299
  provenance: Readonly<{
2300
- sessionId: number | null;
2301
2300
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2301
+ sessionId: number | null;
2302
2302
  messageSequence: number | null;
2303
2303
  toolExecutionId: string | null;
2304
2304
  resourceKey: string | null;
@@ -2312,8 +2312,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2312
2312
  id: string;
2313
2313
  text: string;
2314
2314
  provenance: Readonly<{
2315
- sessionId: number | null;
2316
2315
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2316
+ sessionId: number | null;
2317
2317
  messageSequence: number | null;
2318
2318
  toolExecutionId: string | null;
2319
2319
  resourceKey: string | null;
@@ -2338,8 +2338,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2338
2338
  id: string & z.BRAND<"CompactionSemanticItemId">;
2339
2339
  resourceKey: string;
2340
2340
  provenance: Readonly<{
2341
- sessionId: number | null;
2342
2341
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2342
+ sessionId: number | null;
2343
2343
  messageSequence: number | null;
2344
2344
  toolExecutionId: string | null;
2345
2345
  resourceKey: string | null;
@@ -2353,8 +2353,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2353
2353
  text: string;
2354
2354
  sourceQuotes: string[];
2355
2355
  provenance: Readonly<{
2356
- sessionId: number | null;
2357
2356
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2357
+ sessionId: number | null;
2358
2358
  messageSequence: number | null;
2359
2359
  toolExecutionId: string | null;
2360
2360
  resourceKey: string | null;
@@ -2368,8 +2368,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2368
2368
  text: string;
2369
2369
  sourceQuotes: string[];
2370
2370
  provenance: Readonly<{
2371
- sessionId: number | null;
2372
2371
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2372
+ sessionId: number | null;
2373
2373
  messageSequence: number | null;
2374
2374
  toolExecutionId: string | null;
2375
2375
  resourceKey: string | null;
@@ -2383,8 +2383,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2383
2383
  text: string;
2384
2384
  sourceQuotes: string[];
2385
2385
  provenance: Readonly<{
2386
- sessionId: number | null;
2387
2386
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2387
+ sessionId: number | null;
2388
2388
  messageSequence: number | null;
2389
2389
  toolExecutionId: string | null;
2390
2390
  resourceKey: string | null;
@@ -2398,8 +2398,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2398
2398
  text: string;
2399
2399
  sourceQuotes: string[];
2400
2400
  provenance: Readonly<{
2401
- sessionId: number | null;
2402
2401
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2402
+ sessionId: number | null;
2403
2403
  messageSequence: number | null;
2404
2404
  toolExecutionId: string | null;
2405
2405
  resourceKey: string | null;
@@ -2413,8 +2413,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2413
2413
  text: string;
2414
2414
  sourceQuotes: string[];
2415
2415
  provenance: Readonly<{
2416
- sessionId: number | null;
2417
2416
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2417
+ sessionId: number | null;
2418
2418
  messageSequence: number | null;
2419
2419
  toolExecutionId: string | null;
2420
2420
  resourceKey: string | null;
@@ -2428,8 +2428,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2428
2428
  sessionId: number;
2429
2429
  managerInstanceId: string;
2430
2430
  provenance: Readonly<{
2431
- sessionId: number | null;
2432
2431
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2432
+ sessionId: number | null;
2433
2433
  messageSequence: number | null;
2434
2434
  toolExecutionId: string | null;
2435
2435
  resourceKey: string | null;
@@ -2443,8 +2443,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2443
2443
  text: string;
2444
2444
  sourceQuotes: string[];
2445
2445
  provenance: Readonly<{
2446
- sessionId: number | null;
2447
2446
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2447
+ sessionId: number | null;
2448
2448
  messageSequence: number | null;
2449
2449
  toolExecutionId: string | null;
2450
2450
  resourceKey: string | null;
@@ -2468,8 +2468,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2468
2468
  id: string;
2469
2469
  resourceKey: string;
2470
2470
  provenance: Readonly<{
2471
- sessionId: number | null;
2472
2471
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2472
+ sessionId: number | null;
2473
2473
  messageSequence: number | null;
2474
2474
  toolExecutionId: string | null;
2475
2475
  resourceKey: string | null;
@@ -2482,8 +2482,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2482
2482
  id: string;
2483
2483
  text: string;
2484
2484
  provenance: Readonly<{
2485
- sessionId: number | null;
2486
2485
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2486
+ sessionId: number | null;
2487
2487
  messageSequence: number | null;
2488
2488
  toolExecutionId: string | null;
2489
2489
  resourceKey: string | null;
@@ -2497,8 +2497,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2497
2497
  id: string;
2498
2498
  text: string;
2499
2499
  provenance: Readonly<{
2500
- sessionId: number | null;
2501
2500
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2501
+ sessionId: number | null;
2502
2502
  messageSequence: number | null;
2503
2503
  toolExecutionId: string | null;
2504
2504
  resourceKey: string | null;
@@ -2512,8 +2512,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2512
2512
  id: string;
2513
2513
  text: string;
2514
2514
  provenance: Readonly<{
2515
- sessionId: number | null;
2516
2515
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2516
+ sessionId: number | null;
2517
2517
  messageSequence: number | null;
2518
2518
  toolExecutionId: string | null;
2519
2519
  resourceKey: string | null;
@@ -2527,8 +2527,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2527
2527
  id: string;
2528
2528
  text: string;
2529
2529
  provenance: Readonly<{
2530
- sessionId: number | null;
2531
2530
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2531
+ sessionId: number | null;
2532
2532
  messageSequence: number | null;
2533
2533
  toolExecutionId: string | null;
2534
2534
  resourceKey: string | null;
@@ -2543,8 +2543,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2543
2543
  sessionId: number;
2544
2544
  managerInstanceId: string;
2545
2545
  provenance: Readonly<{
2546
- sessionId: number | null;
2547
2546
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2547
+ sessionId: number | null;
2548
2548
  messageSequence: number | null;
2549
2549
  toolExecutionId: string | null;
2550
2550
  resourceKey: string | null;
@@ -2557,8 +2557,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2557
2557
  id: string;
2558
2558
  text: string;
2559
2559
  provenance: Readonly<{
2560
- sessionId: number | null;
2561
2560
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2561
+ sessionId: number | null;
2562
2562
  messageSequence: number | null;
2563
2563
  toolExecutionId: string | null;
2564
2564
  resourceKey: string | null;
@@ -2572,8 +2572,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2572
2572
  id: string;
2573
2573
  text: string;
2574
2574
  provenance: Readonly<{
2575
- sessionId: number | null;
2576
2575
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2576
+ sessionId: number | null;
2577
2577
  messageSequence: number | null;
2578
2578
  toolExecutionId: string | null;
2579
2579
  resourceKey: string | null;
@@ -2721,12 +2721,12 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2721
2721
  toolCallId: z.ZodString;
2722
2722
  count: z.ZodOptional<z.ZodNumber>;
2723
2723
  }, "strict", z.ZodTypeAny, {
2724
- toolCallId: string;
2725
2724
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
2725
+ toolCallId: string;
2726
2726
  count?: number | undefined;
2727
2727
  }, {
2728
- toolCallId: string;
2729
2728
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
2729
+ toolCallId: string;
2730
2730
  count?: number | undefined;
2731
2731
  }>>, "many">;
2732
2732
  }, "strict", z.ZodTypeAny, {
@@ -2752,8 +2752,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2752
2752
  }>[];
2753
2753
  integrityStatus: "invalid" | "valid" | "sanitized";
2754
2754
  anomalies: Readonly<{
2755
- toolCallId: string;
2756
2755
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
2756
+ toolCallId: string;
2757
2757
  count?: number | undefined;
2758
2758
  }>[];
2759
2759
  }, {
@@ -2779,8 +2779,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2779
2779
  }>[];
2780
2780
  integrityStatus: "invalid" | "valid" | "sanitized";
2781
2781
  anomalies: Readonly<{
2782
- toolCallId: string;
2783
2782
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
2783
+ toolCallId: string;
2784
2784
  count?: number | undefined;
2785
2785
  }>[];
2786
2786
  }>>;
@@ -2945,8 +2945,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2945
2945
  }>[];
2946
2946
  integrityStatus: "invalid" | "valid" | "sanitized";
2947
2947
  anomalies: Readonly<{
2948
- toolCallId: string;
2949
2948
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
2949
+ toolCallId: string;
2950
2950
  count?: number | undefined;
2951
2951
  }>[];
2952
2952
  }>;
@@ -2980,8 +2980,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2980
2980
  id: string & z.BRAND<"CompactionSemanticItemId">;
2981
2981
  resourceKey: string;
2982
2982
  provenance: Readonly<{
2983
- sessionId: number | null;
2984
2983
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2984
+ sessionId: number | null;
2985
2985
  messageSequence: number | null;
2986
2986
  toolExecutionId: string | null;
2987
2987
  resourceKey: string | null;
@@ -2995,8 +2995,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
2995
2995
  text: string;
2996
2996
  sourceQuotes: string[];
2997
2997
  provenance: Readonly<{
2998
- sessionId: number | null;
2999
2998
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
2999
+ sessionId: number | null;
3000
3000
  messageSequence: number | null;
3001
3001
  toolExecutionId: string | null;
3002
3002
  resourceKey: string | null;
@@ -3010,8 +3010,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3010
3010
  text: string;
3011
3011
  sourceQuotes: string[];
3012
3012
  provenance: Readonly<{
3013
- sessionId: number | null;
3014
3013
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3014
+ sessionId: number | null;
3015
3015
  messageSequence: number | null;
3016
3016
  toolExecutionId: string | null;
3017
3017
  resourceKey: string | null;
@@ -3025,8 +3025,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3025
3025
  text: string;
3026
3026
  sourceQuotes: string[];
3027
3027
  provenance: Readonly<{
3028
- sessionId: number | null;
3029
3028
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3029
+ sessionId: number | null;
3030
3030
  messageSequence: number | null;
3031
3031
  toolExecutionId: string | null;
3032
3032
  resourceKey: string | null;
@@ -3040,8 +3040,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3040
3040
  text: string;
3041
3041
  sourceQuotes: string[];
3042
3042
  provenance: Readonly<{
3043
- sessionId: number | null;
3044
3043
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3044
+ sessionId: number | null;
3045
3045
  messageSequence: number | null;
3046
3046
  toolExecutionId: string | null;
3047
3047
  resourceKey: string | null;
@@ -3055,8 +3055,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3055
3055
  text: string;
3056
3056
  sourceQuotes: string[];
3057
3057
  provenance: Readonly<{
3058
- sessionId: number | null;
3059
3058
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3059
+ sessionId: number | null;
3060
3060
  messageSequence: number | null;
3061
3061
  toolExecutionId: string | null;
3062
3062
  resourceKey: string | null;
@@ -3070,8 +3070,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3070
3070
  sessionId: number;
3071
3071
  managerInstanceId: string;
3072
3072
  provenance: Readonly<{
3073
- sessionId: number | null;
3074
3073
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3074
+ sessionId: number | null;
3075
3075
  messageSequence: number | null;
3076
3076
  toolExecutionId: string | null;
3077
3077
  resourceKey: string | null;
@@ -3085,8 +3085,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3085
3085
  text: string;
3086
3086
  sourceQuotes: string[];
3087
3087
  provenance: Readonly<{
3088
- sessionId: number | null;
3089
3088
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3089
+ sessionId: number | null;
3090
3090
  messageSequence: number | null;
3091
3091
  toolExecutionId: string | null;
3092
3092
  resourceKey: string | null;
@@ -3174,8 +3174,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3174
3174
  }>[];
3175
3175
  integrityStatus: "invalid" | "valid" | "sanitized";
3176
3176
  anomalies: Readonly<{
3177
- toolCallId: string;
3178
3177
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
3178
+ toolCallId: string;
3179
3179
  count?: number | undefined;
3180
3180
  }>[];
3181
3181
  }>;
@@ -3209,8 +3209,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3209
3209
  id: string;
3210
3210
  resourceKey: string;
3211
3211
  provenance: Readonly<{
3212
- sessionId: number | null;
3213
3212
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3213
+ sessionId: number | null;
3214
3214
  messageSequence: number | null;
3215
3215
  toolExecutionId: string | null;
3216
3216
  resourceKey: string | null;
@@ -3223,8 +3223,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3223
3223
  id: string;
3224
3224
  text: string;
3225
3225
  provenance: Readonly<{
3226
- sessionId: number | null;
3227
3226
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3227
+ sessionId: number | null;
3228
3228
  messageSequence: number | null;
3229
3229
  toolExecutionId: string | null;
3230
3230
  resourceKey: string | null;
@@ -3238,8 +3238,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3238
3238
  id: string;
3239
3239
  text: string;
3240
3240
  provenance: Readonly<{
3241
- sessionId: number | null;
3242
3241
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3242
+ sessionId: number | null;
3243
3243
  messageSequence: number | null;
3244
3244
  toolExecutionId: string | null;
3245
3245
  resourceKey: string | null;
@@ -3253,8 +3253,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3253
3253
  id: string;
3254
3254
  text: string;
3255
3255
  provenance: Readonly<{
3256
- sessionId: number | null;
3257
3256
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3257
+ sessionId: number | null;
3258
3258
  messageSequence: number | null;
3259
3259
  toolExecutionId: string | null;
3260
3260
  resourceKey: string | null;
@@ -3268,8 +3268,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3268
3268
  id: string;
3269
3269
  text: string;
3270
3270
  provenance: Readonly<{
3271
- sessionId: number | null;
3272
3271
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3272
+ sessionId: number | null;
3273
3273
  messageSequence: number | null;
3274
3274
  toolExecutionId: string | null;
3275
3275
  resourceKey: string | null;
@@ -3284,8 +3284,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3284
3284
  sessionId: number;
3285
3285
  managerInstanceId: string;
3286
3286
  provenance: Readonly<{
3287
- sessionId: number | null;
3288
3287
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3288
+ sessionId: number | null;
3289
3289
  messageSequence: number | null;
3290
3290
  toolExecutionId: string | null;
3291
3291
  resourceKey: string | null;
@@ -3298,8 +3298,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3298
3298
  id: string;
3299
3299
  text: string;
3300
3300
  provenance: Readonly<{
3301
- sessionId: number | null;
3302
3301
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3302
+ sessionId: number | null;
3303
3303
  messageSequence: number | null;
3304
3304
  toolExecutionId: string | null;
3305
3305
  resourceKey: string | null;
@@ -3313,8 +3313,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3313
3313
  id: string;
3314
3314
  text: string;
3315
3315
  provenance: Readonly<{
3316
- sessionId: number | null;
3317
3316
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3317
+ sessionId: number | null;
3318
3318
  messageSequence: number | null;
3319
3319
  toolExecutionId: string | null;
3320
3320
  resourceKey: string | null;
@@ -3403,8 +3403,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3403
3403
  }>[];
3404
3404
  integrityStatus: "invalid" | "valid" | "sanitized";
3405
3405
  anomalies: Readonly<{
3406
- toolCallId: string;
3407
3406
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
3407
+ toolCallId: string;
3408
3408
  count?: number | undefined;
3409
3409
  }>[];
3410
3410
  }>;
@@ -3438,8 +3438,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3438
3438
  id: string & z.BRAND<"CompactionSemanticItemId">;
3439
3439
  resourceKey: string;
3440
3440
  provenance: Readonly<{
3441
- sessionId: number | null;
3442
3441
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3442
+ sessionId: number | null;
3443
3443
  messageSequence: number | null;
3444
3444
  toolExecutionId: string | null;
3445
3445
  resourceKey: string | null;
@@ -3453,8 +3453,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3453
3453
  text: string;
3454
3454
  sourceQuotes: string[];
3455
3455
  provenance: Readonly<{
3456
- sessionId: number | null;
3457
3456
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3457
+ sessionId: number | null;
3458
3458
  messageSequence: number | null;
3459
3459
  toolExecutionId: string | null;
3460
3460
  resourceKey: string | null;
@@ -3468,8 +3468,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3468
3468
  text: string;
3469
3469
  sourceQuotes: string[];
3470
3470
  provenance: Readonly<{
3471
- sessionId: number | null;
3472
3471
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3472
+ sessionId: number | null;
3473
3473
  messageSequence: number | null;
3474
3474
  toolExecutionId: string | null;
3475
3475
  resourceKey: string | null;
@@ -3483,8 +3483,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3483
3483
  text: string;
3484
3484
  sourceQuotes: string[];
3485
3485
  provenance: Readonly<{
3486
- sessionId: number | null;
3487
3486
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3487
+ sessionId: number | null;
3488
3488
  messageSequence: number | null;
3489
3489
  toolExecutionId: string | null;
3490
3490
  resourceKey: string | null;
@@ -3498,8 +3498,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3498
3498
  text: string;
3499
3499
  sourceQuotes: string[];
3500
3500
  provenance: Readonly<{
3501
- sessionId: number | null;
3502
3501
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3502
+ sessionId: number | null;
3503
3503
  messageSequence: number | null;
3504
3504
  toolExecutionId: string | null;
3505
3505
  resourceKey: string | null;
@@ -3513,8 +3513,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3513
3513
  text: string;
3514
3514
  sourceQuotes: string[];
3515
3515
  provenance: Readonly<{
3516
- sessionId: number | null;
3517
3516
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3517
+ sessionId: number | null;
3518
3518
  messageSequence: number | null;
3519
3519
  toolExecutionId: string | null;
3520
3520
  resourceKey: string | null;
@@ -3528,8 +3528,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3528
3528
  sessionId: number;
3529
3529
  managerInstanceId: string;
3530
3530
  provenance: Readonly<{
3531
- sessionId: number | null;
3532
3531
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3532
+ sessionId: number | null;
3533
3533
  messageSequence: number | null;
3534
3534
  toolExecutionId: string | null;
3535
3535
  resourceKey: string | null;
@@ -3543,8 +3543,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3543
3543
  text: string;
3544
3544
  sourceQuotes: string[];
3545
3545
  provenance: Readonly<{
3546
- sessionId: number | null;
3547
3546
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3547
+ sessionId: number | null;
3548
3548
  messageSequence: number | null;
3549
3549
  toolExecutionId: string | null;
3550
3550
  resourceKey: string | null;
@@ -3632,8 +3632,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3632
3632
  }>[];
3633
3633
  integrityStatus: "invalid" | "valid" | "sanitized";
3634
3634
  anomalies: Readonly<{
3635
- toolCallId: string;
3636
3635
  kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
3636
+ toolCallId: string;
3637
3637
  count?: number | undefined;
3638
3638
  }>[];
3639
3639
  }>;
@@ -3667,8 +3667,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3667
3667
  id: string;
3668
3668
  resourceKey: string;
3669
3669
  provenance: Readonly<{
3670
- sessionId: number | null;
3671
3670
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3671
+ sessionId: number | null;
3672
3672
  messageSequence: number | null;
3673
3673
  toolExecutionId: string | null;
3674
3674
  resourceKey: string | null;
@@ -3681,8 +3681,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3681
3681
  id: string;
3682
3682
  text: string;
3683
3683
  provenance: Readonly<{
3684
- sessionId: number | null;
3685
3684
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3685
+ sessionId: number | null;
3686
3686
  messageSequence: number | null;
3687
3687
  toolExecutionId: string | null;
3688
3688
  resourceKey: string | null;
@@ -3696,8 +3696,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3696
3696
  id: string;
3697
3697
  text: string;
3698
3698
  provenance: Readonly<{
3699
- sessionId: number | null;
3700
3699
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3700
+ sessionId: number | null;
3701
3701
  messageSequence: number | null;
3702
3702
  toolExecutionId: string | null;
3703
3703
  resourceKey: string | null;
@@ -3711,8 +3711,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3711
3711
  id: string;
3712
3712
  text: string;
3713
3713
  provenance: Readonly<{
3714
- sessionId: number | null;
3715
3714
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3715
+ sessionId: number | null;
3716
3716
  messageSequence: number | null;
3717
3717
  toolExecutionId: string | null;
3718
3718
  resourceKey: string | null;
@@ -3726,8 +3726,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3726
3726
  id: string;
3727
3727
  text: string;
3728
3728
  provenance: Readonly<{
3729
- sessionId: number | null;
3730
3729
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3730
+ sessionId: number | null;
3731
3731
  messageSequence: number | null;
3732
3732
  toolExecutionId: string | null;
3733
3733
  resourceKey: string | null;
@@ -3742,8 +3742,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3742
3742
  sessionId: number;
3743
3743
  managerInstanceId: string;
3744
3744
  provenance: Readonly<{
3745
- sessionId: number | null;
3746
3745
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3746
+ sessionId: number | null;
3747
3747
  messageSequence: number | null;
3748
3748
  toolExecutionId: string | null;
3749
3749
  resourceKey: string | null;
@@ -3756,8 +3756,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3756
3756
  id: string;
3757
3757
  text: string;
3758
3758
  provenance: Readonly<{
3759
- sessionId: number | null;
3760
3759
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3760
+ sessionId: number | null;
3761
3761
  messageSequence: number | null;
3762
3762
  toolExecutionId: string | null;
3763
3763
  resourceKey: string | null;
@@ -3771,8 +3771,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
3771
3771
  id: string;
3772
3772
  text: string;
3773
3773
  provenance: Readonly<{
3774
- sessionId: number | null;
3775
3774
  kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
3775
+ sessionId: number | null;
3776
3776
  messageSequence: number | null;
3777
3777
  toolExecutionId: string | null;
3778
3778
  resourceKey: string | null;