@roll-agent/runtime 0.23.0 → 0.24.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.
@@ -23,7 +23,7 @@ export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodEffects<z
23
23
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
24
24
  }, "strict", z.ZodTypeAny, {
25
25
  sessionId: number | null;
26
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
26
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
27
27
  messageSequence: number | null;
28
28
  toolExecutionId: string | null;
29
29
  resourceKey: string | null;
@@ -32,7 +32,7 @@ export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodEffects<z
32
32
  snapshotIndex: number | null;
33
33
  }, {
34
34
  sessionId: number | null;
35
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
35
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
36
36
  messageSequence: number | null;
37
37
  toolExecutionId: string | null;
38
38
  resourceKey: string | null;
@@ -41,7 +41,7 @@ export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodEffects<z
41
41
  snapshotIndex?: number | null | undefined;
42
42
  }>, {
43
43
  sessionId: number | null;
44
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
44
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
45
45
  messageSequence: number | null;
46
46
  toolExecutionId: string | null;
47
47
  resourceKey: string | null;
@@ -50,7 +50,7 @@ export declare const compactionProvenanceRefSchema: z.ZodReadonly<z.ZodEffects<z
50
50
  snapshotIndex: number | null;
51
51
  }, {
52
52
  sessionId: number | null;
53
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
53
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
54
54
  messageSequence: number | null;
55
55
  toolExecutionId: string | null;
56
56
  resourceKey: string | null;
@@ -189,15 +189,15 @@ export declare const compactionModelDraftSchema: z.ZodReadonly<z.ZodObject<{
189
189
  sourceEvidenceIds: z.ZodArray<z.ZodString, "many">;
190
190
  sourceQuotes: z.ZodArray<z.ZodString, "many">;
191
191
  }, "strict", z.ZodTypeAny, {
192
- action: "cancel" | "supersede" | "clarify" | "revoke";
193
192
  reason: string;
193
+ action: "cancel" | "supersede" | "clarify" | "revoke";
194
194
  sourceEvidenceIds: string[];
195
195
  sourceQuotes: string[];
196
196
  targetItemId: string;
197
197
  targetCategory: "decision" | "constraint" | "pending_work" | "uncertainty";
198
198
  }, {
199
- action: "cancel" | "supersede" | "clarify" | "revoke";
200
199
  reason: string;
200
+ action: "cancel" | "supersede" | "clarify" | "revoke";
201
201
  sourceEvidenceIds: string[];
202
202
  sourceQuotes: string[];
203
203
  targetItemId: string;
@@ -263,8 +263,8 @@ export declare const compactionModelDraftSchema: z.ZodReadonly<z.ZodObject<{
263
263
  sourceQuotes: string[];
264
264
  }>[];
265
265
  resolutions: Readonly<{
266
- action: "cancel" | "supersede" | "clarify" | "revoke";
267
266
  reason: string;
267
+ action: "cancel" | "supersede" | "clarify" | "revoke";
268
268
  sourceEvidenceIds: string[];
269
269
  sourceQuotes: string[];
270
270
  targetItemId: string;
@@ -322,8 +322,8 @@ export declare const compactionModelDraftSchema: z.ZodReadonly<z.ZodObject<{
322
322
  sourceQuotes: string[];
323
323
  }>[];
324
324
  resolutions: Readonly<{
325
- action: "cancel" | "supersede" | "clarify" | "revoke";
326
325
  reason: string;
326
+ action: "cancel" | "supersede" | "clarify" | "revoke";
327
327
  sourceEvidenceIds: string[];
328
328
  sourceQuotes: string[];
329
329
  targetItemId: string;
@@ -353,7 +353,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
353
353
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
354
354
  }, "strict", z.ZodTypeAny, {
355
355
  sessionId: number | null;
356
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
356
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
357
357
  messageSequence: number | null;
358
358
  toolExecutionId: string | null;
359
359
  resourceKey: string | null;
@@ -362,7 +362,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
362
362
  snapshotIndex: number | null;
363
363
  }, {
364
364
  sessionId: number | null;
365
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
365
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
366
366
  messageSequence: number | null;
367
367
  toolExecutionId: string | null;
368
368
  resourceKey: string | null;
@@ -371,7 +371,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
371
371
  snapshotIndex?: number | null | undefined;
372
372
  }>, {
373
373
  sessionId: number | null;
374
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
374
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
375
375
  messageSequence: number | null;
376
376
  toolExecutionId: string | null;
377
377
  resourceKey: string | null;
@@ -380,7 +380,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
380
380
  snapshotIndex: number | null;
381
381
  }, {
382
382
  sessionId: number | null;
383
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
383
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
384
384
  messageSequence: number | null;
385
385
  toolExecutionId: string | null;
386
386
  resourceKey: string | null;
@@ -390,12 +390,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
390
390
  }>>, "many">;
391
391
  sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
392
392
  }, "strict", z.ZodTypeAny, {
393
- text: string;
394
393
  id: string & z.BRAND<"CompactionSemanticItemId">;
394
+ text: string;
395
395
  sourceQuotes: string[];
396
396
  provenance: Readonly<{
397
397
  sessionId: number | null;
398
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
398
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
399
399
  messageSequence: number | null;
400
400
  toolExecutionId: string | null;
401
401
  resourceKey: string | null;
@@ -404,11 +404,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
404
404
  snapshotIndex: number | null;
405
405
  }>[];
406
406
  }, {
407
- text: string;
408
407
  id: string;
408
+ text: string;
409
409
  provenance: Readonly<{
410
410
  sessionId: number | null;
411
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
411
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
412
412
  messageSequence: number | null;
413
413
  toolExecutionId: string | null;
414
414
  resourceKey: string | null;
@@ -432,7 +432,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
432
432
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
433
433
  }, "strict", z.ZodTypeAny, {
434
434
  sessionId: number | null;
435
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
435
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
436
436
  messageSequence: number | null;
437
437
  toolExecutionId: string | null;
438
438
  resourceKey: string | null;
@@ -441,7 +441,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
441
441
  snapshotIndex: number | null;
442
442
  }, {
443
443
  sessionId: number | null;
444
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
444
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
445
445
  messageSequence: number | null;
446
446
  toolExecutionId: string | null;
447
447
  resourceKey: string | null;
@@ -450,7 +450,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
450
450
  snapshotIndex?: number | null | undefined;
451
451
  }>, {
452
452
  sessionId: number | null;
453
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
453
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
454
454
  messageSequence: number | null;
455
455
  toolExecutionId: string | null;
456
456
  resourceKey: string | null;
@@ -459,7 +459,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
459
459
  snapshotIndex: number | null;
460
460
  }, {
461
461
  sessionId: number | null;
462
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
462
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
463
463
  messageSequence: number | null;
464
464
  toolExecutionId: string | null;
465
465
  resourceKey: string | null;
@@ -469,12 +469,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
469
469
  }>>, "many">;
470
470
  sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
471
471
  }, "strict", z.ZodTypeAny, {
472
- text: string;
473
472
  id: string & z.BRAND<"CompactionSemanticItemId">;
473
+ text: string;
474
474
  sourceQuotes: string[];
475
475
  provenance: Readonly<{
476
476
  sessionId: number | null;
477
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
477
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
478
478
  messageSequence: number | null;
479
479
  toolExecutionId: string | null;
480
480
  resourceKey: string | null;
@@ -483,11 +483,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
483
483
  snapshotIndex: number | null;
484
484
  }>[];
485
485
  }, {
486
- text: string;
487
486
  id: string;
487
+ text: string;
488
488
  provenance: Readonly<{
489
489
  sessionId: number | null;
490
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
490
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
491
491
  messageSequence: number | null;
492
492
  toolExecutionId: string | null;
493
493
  resourceKey: string | null;
@@ -511,7 +511,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
511
511
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
512
512
  }, "strict", z.ZodTypeAny, {
513
513
  sessionId: number | null;
514
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
514
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
515
515
  messageSequence: number | null;
516
516
  toolExecutionId: string | null;
517
517
  resourceKey: string | null;
@@ -520,7 +520,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
520
520
  snapshotIndex: number | null;
521
521
  }, {
522
522
  sessionId: number | null;
523
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
523
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
524
524
  messageSequence: number | null;
525
525
  toolExecutionId: string | null;
526
526
  resourceKey: string | null;
@@ -529,7 +529,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
529
529
  snapshotIndex?: number | null | undefined;
530
530
  }>, {
531
531
  sessionId: number | null;
532
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
532
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
533
533
  messageSequence: number | null;
534
534
  toolExecutionId: string | null;
535
535
  resourceKey: string | null;
@@ -538,7 +538,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
538
538
  snapshotIndex: number | null;
539
539
  }, {
540
540
  sessionId: number | null;
541
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
541
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
542
542
  messageSequence: number | null;
543
543
  toolExecutionId: string | null;
544
544
  resourceKey: string | null;
@@ -548,12 +548,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
548
548
  }>>, "many">;
549
549
  sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
550
550
  }, "strict", z.ZodTypeAny, {
551
- text: string;
552
551
  id: string & z.BRAND<"CompactionSemanticItemId">;
552
+ text: string;
553
553
  sourceQuotes: string[];
554
554
  provenance: Readonly<{
555
555
  sessionId: number | null;
556
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
556
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
557
557
  messageSequence: number | null;
558
558
  toolExecutionId: string | null;
559
559
  resourceKey: string | null;
@@ -562,11 +562,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
562
562
  snapshotIndex: number | null;
563
563
  }>[];
564
564
  }, {
565
- text: string;
566
565
  id: string;
566
+ text: string;
567
567
  provenance: Readonly<{
568
568
  sessionId: number | null;
569
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
569
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
570
570
  messageSequence: number | null;
571
571
  toolExecutionId: string | null;
572
572
  resourceKey: string | null;
@@ -590,7 +590,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
590
590
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
591
591
  }, "strict", z.ZodTypeAny, {
592
592
  sessionId: number | null;
593
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
593
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
594
594
  messageSequence: number | null;
595
595
  toolExecutionId: string | null;
596
596
  resourceKey: string | null;
@@ -599,7 +599,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
599
599
  snapshotIndex: number | null;
600
600
  }, {
601
601
  sessionId: number | null;
602
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
602
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
603
603
  messageSequence: number | null;
604
604
  toolExecutionId: string | null;
605
605
  resourceKey: string | null;
@@ -608,7 +608,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
608
608
  snapshotIndex?: number | null | undefined;
609
609
  }>, {
610
610
  sessionId: number | null;
611
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
611
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
612
612
  messageSequence: number | null;
613
613
  toolExecutionId: string | null;
614
614
  resourceKey: string | null;
@@ -617,7 +617,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
617
617
  snapshotIndex: number | null;
618
618
  }, {
619
619
  sessionId: number | null;
620
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
620
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
621
621
  messageSequence: number | null;
622
622
  toolExecutionId: string | null;
623
623
  resourceKey: string | null;
@@ -627,12 +627,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
627
627
  }>>, "many">;
628
628
  sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
629
629
  }, "strict", z.ZodTypeAny, {
630
- text: string;
631
630
  id: string & z.BRAND<"CompactionSemanticItemId">;
631
+ text: string;
632
632
  sourceQuotes: string[];
633
633
  provenance: Readonly<{
634
634
  sessionId: number | null;
635
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
635
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
636
636
  messageSequence: number | null;
637
637
  toolExecutionId: string | null;
638
638
  resourceKey: string | null;
@@ -641,11 +641,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
641
641
  snapshotIndex: number | null;
642
642
  }>[];
643
643
  }, {
644
- text: string;
645
644
  id: string;
645
+ text: string;
646
646
  provenance: Readonly<{
647
647
  sessionId: number | null;
648
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
648
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
649
649
  messageSequence: number | null;
650
650
  toolExecutionId: string | null;
651
651
  resourceKey: string | null;
@@ -669,7 +669,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
669
669
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
670
670
  }, "strict", z.ZodTypeAny, {
671
671
  sessionId: number | null;
672
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
672
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
673
673
  messageSequence: number | null;
674
674
  toolExecutionId: string | null;
675
675
  resourceKey: string | null;
@@ -678,7 +678,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
678
678
  snapshotIndex: number | null;
679
679
  }, {
680
680
  sessionId: number | null;
681
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
681
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
682
682
  messageSequence: number | null;
683
683
  toolExecutionId: string | null;
684
684
  resourceKey: string | null;
@@ -687,7 +687,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
687
687
  snapshotIndex?: number | null | undefined;
688
688
  }>, {
689
689
  sessionId: number | null;
690
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
690
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
691
691
  messageSequence: number | null;
692
692
  toolExecutionId: string | null;
693
693
  resourceKey: string | null;
@@ -696,7 +696,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
696
696
  snapshotIndex: number | null;
697
697
  }, {
698
698
  sessionId: number | null;
699
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
699
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
700
700
  messageSequence: number | null;
701
701
  toolExecutionId: string | null;
702
702
  resourceKey: string | null;
@@ -706,12 +706,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
706
706
  }>>, "many">;
707
707
  sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
708
708
  }, "strict", z.ZodTypeAny, {
709
- text: string;
710
709
  id: string & z.BRAND<"CompactionSemanticItemId">;
710
+ text: string;
711
711
  sourceQuotes: string[];
712
712
  provenance: Readonly<{
713
713
  sessionId: number | null;
714
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
714
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
715
715
  messageSequence: number | null;
716
716
  toolExecutionId: string | null;
717
717
  resourceKey: string | null;
@@ -720,11 +720,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
720
720
  snapshotIndex: number | null;
721
721
  }>[];
722
722
  }, {
723
- text: string;
724
723
  id: string;
724
+ text: string;
725
725
  provenance: Readonly<{
726
726
  sessionId: number | null;
727
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
727
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
728
728
  messageSequence: number | null;
729
729
  toolExecutionId: string | null;
730
730
  resourceKey: string | null;
@@ -748,7 +748,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
748
748
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
749
749
  }, "strict", z.ZodTypeAny, {
750
750
  sessionId: number | null;
751
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
751
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
752
752
  messageSequence: number | null;
753
753
  toolExecutionId: string | null;
754
754
  resourceKey: string | null;
@@ -757,7 +757,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
757
757
  snapshotIndex: number | null;
758
758
  }, {
759
759
  sessionId: number | null;
760
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
760
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
761
761
  messageSequence: number | null;
762
762
  toolExecutionId: string | null;
763
763
  resourceKey: string | null;
@@ -766,7 +766,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
766
766
  snapshotIndex?: number | null | undefined;
767
767
  }>, {
768
768
  sessionId: number | null;
769
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
769
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
770
770
  messageSequence: number | null;
771
771
  toolExecutionId: string | null;
772
772
  resourceKey: string | null;
@@ -775,7 +775,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
775
775
  snapshotIndex: number | null;
776
776
  }, {
777
777
  sessionId: number | null;
778
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
778
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
779
779
  messageSequence: number | null;
780
780
  toolExecutionId: string | null;
781
781
  resourceKey: string | null;
@@ -788,7 +788,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
788
788
  resourceKey: string;
789
789
  provenance: Readonly<{
790
790
  sessionId: number | null;
791
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
791
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
792
792
  messageSequence: number | null;
793
793
  toolExecutionId: string | null;
794
794
  resourceKey: string | null;
@@ -801,7 +801,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
801
801
  resourceKey: string;
802
802
  provenance: Readonly<{
803
803
  sessionId: number | null;
804
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
804
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
805
805
  messageSequence: number | null;
806
806
  toolExecutionId: string | null;
807
807
  resourceKey: string | null;
@@ -825,7 +825,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
825
825
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
826
826
  }, "strict", z.ZodTypeAny, {
827
827
  sessionId: number | null;
828
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
828
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
829
829
  messageSequence: number | null;
830
830
  toolExecutionId: string | null;
831
831
  resourceKey: string | null;
@@ -834,7 +834,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
834
834
  snapshotIndex: number | null;
835
835
  }, {
836
836
  sessionId: number | null;
837
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
837
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
838
838
  messageSequence: number | null;
839
839
  toolExecutionId: string | null;
840
840
  resourceKey: string | null;
@@ -843,7 +843,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
843
843
  snapshotIndex?: number | null | undefined;
844
844
  }>, {
845
845
  sessionId: number | null;
846
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
846
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
847
847
  messageSequence: number | null;
848
848
  toolExecutionId: string | null;
849
849
  resourceKey: string | null;
@@ -852,7 +852,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
852
852
  snapshotIndex: number | null;
853
853
  }, {
854
854
  sessionId: number | null;
855
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
855
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
856
856
  messageSequence: number | null;
857
857
  toolExecutionId: string | null;
858
858
  resourceKey: string | null;
@@ -866,7 +866,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
866
866
  managerInstanceId: string;
867
867
  provenance: Readonly<{
868
868
  sessionId: number | null;
869
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
869
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
870
870
  messageSequence: number | null;
871
871
  toolExecutionId: string | null;
872
872
  resourceKey: string | null;
@@ -880,7 +880,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
880
880
  managerInstanceId: string;
881
881
  provenance: Readonly<{
882
882
  sessionId: number | null;
883
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
883
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
884
884
  messageSequence: number | null;
885
885
  toolExecutionId: string | null;
886
886
  resourceKey: string | null;
@@ -903,7 +903,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
903
903
  snapshotIndex: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
904
904
  }, "strict", z.ZodTypeAny, {
905
905
  sessionId: number | null;
906
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
906
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
907
907
  messageSequence: number | null;
908
908
  toolExecutionId: string | null;
909
909
  resourceKey: string | null;
@@ -912,7 +912,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
912
912
  snapshotIndex: number | null;
913
913
  }, {
914
914
  sessionId: number | null;
915
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
915
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
916
916
  messageSequence: number | null;
917
917
  toolExecutionId: string | null;
918
918
  resourceKey: string | null;
@@ -921,7 +921,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
921
921
  snapshotIndex?: number | null | undefined;
922
922
  }>, {
923
923
  sessionId: number | null;
924
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
924
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
925
925
  messageSequence: number | null;
926
926
  toolExecutionId: string | null;
927
927
  resourceKey: string | null;
@@ -930,7 +930,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
930
930
  snapshotIndex: number | null;
931
931
  }, {
932
932
  sessionId: number | null;
933
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
933
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
934
934
  messageSequence: number | null;
935
935
  toolExecutionId: string | null;
936
936
  resourceKey: string | null;
@@ -940,12 +940,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
940
940
  }>>, "many">;
941
941
  sourceQuotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
942
942
  }, "strict", z.ZodTypeAny, {
943
- text: string;
944
943
  id: string & z.BRAND<"CompactionSemanticItemId">;
944
+ text: string;
945
945
  sourceQuotes: string[];
946
946
  provenance: Readonly<{
947
947
  sessionId: number | null;
948
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
948
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
949
949
  messageSequence: number | null;
950
950
  toolExecutionId: string | null;
951
951
  resourceKey: string | null;
@@ -954,11 +954,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
954
954
  snapshotIndex: number | null;
955
955
  }>[];
956
956
  }, {
957
- text: string;
958
957
  id: string;
958
+ text: string;
959
959
  provenance: Readonly<{
960
960
  sessionId: number | null;
961
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
961
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
962
962
  messageSequence: number | null;
963
963
  toolExecutionId: string | null;
964
964
  resourceKey: string | null;
@@ -1000,7 +1000,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1000
1000
  resourceKey: string;
1001
1001
  provenance: Readonly<{
1002
1002
  sessionId: number | null;
1003
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1003
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1004
1004
  messageSequence: number | null;
1005
1005
  toolExecutionId: string | null;
1006
1006
  resourceKey: string | null;
@@ -1010,12 +1010,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1010
1010
  }>[];
1011
1011
  }>[];
1012
1012
  goal: Readonly<{
1013
- text: string;
1014
1013
  id: string & z.BRAND<"CompactionSemanticItemId">;
1014
+ text: string;
1015
1015
  sourceQuotes: string[];
1016
1016
  provenance: Readonly<{
1017
1017
  sessionId: number | null;
1018
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1018
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1019
1019
  messageSequence: number | null;
1020
1020
  toolExecutionId: string | null;
1021
1021
  resourceKey: string | null;
@@ -1025,12 +1025,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1025
1025
  }>[];
1026
1026
  }> | null;
1027
1027
  constraints: Readonly<{
1028
- text: string;
1029
1028
  id: string & z.BRAND<"CompactionSemanticItemId">;
1029
+ text: string;
1030
1030
  sourceQuotes: string[];
1031
1031
  provenance: Readonly<{
1032
1032
  sessionId: number | null;
1033
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1033
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1034
1034
  messageSequence: number | null;
1035
1035
  toolExecutionId: string | null;
1036
1036
  resourceKey: string | null;
@@ -1040,12 +1040,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1040
1040
  }>[];
1041
1041
  }>[];
1042
1042
  decisions: Readonly<{
1043
- text: string;
1044
1043
  id: string & z.BRAND<"CompactionSemanticItemId">;
1044
+ text: string;
1045
1045
  sourceQuotes: string[];
1046
1046
  provenance: Readonly<{
1047
1047
  sessionId: number | null;
1048
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1048
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1049
1049
  messageSequence: number | null;
1050
1050
  toolExecutionId: string | null;
1051
1051
  resourceKey: string | null;
@@ -1055,12 +1055,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1055
1055
  }>[];
1056
1056
  }>[];
1057
1057
  completedWork: Readonly<{
1058
- text: string;
1059
1058
  id: string & z.BRAND<"CompactionSemanticItemId">;
1059
+ text: string;
1060
1060
  sourceQuotes: string[];
1061
1061
  provenance: Readonly<{
1062
1062
  sessionId: number | null;
1063
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1063
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1064
1064
  messageSequence: number | null;
1065
1065
  toolExecutionId: string | null;
1066
1066
  resourceKey: string | null;
@@ -1070,12 +1070,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1070
1070
  }>[];
1071
1071
  }>[];
1072
1072
  pendingWork: Readonly<{
1073
- text: string;
1074
1073
  id: string & z.BRAND<"CompactionSemanticItemId">;
1074
+ text: string;
1075
1075
  sourceQuotes: string[];
1076
1076
  provenance: Readonly<{
1077
1077
  sessionId: number | null;
1078
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1078
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1079
1079
  messageSequence: number | null;
1080
1080
  toolExecutionId: string | null;
1081
1081
  resourceKey: string | null;
@@ -1090,7 +1090,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1090
1090
  managerInstanceId: string;
1091
1091
  provenance: Readonly<{
1092
1092
  sessionId: number | null;
1093
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1093
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1094
1094
  messageSequence: number | null;
1095
1095
  toolExecutionId: string | null;
1096
1096
  resourceKey: string | null;
@@ -1100,12 +1100,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1100
1100
  }>[];
1101
1101
  }>[];
1102
1102
  uncertainties: Readonly<{
1103
- text: string;
1104
1103
  id: string & z.BRAND<"CompactionSemanticItemId">;
1104
+ text: string;
1105
1105
  sourceQuotes: string[];
1106
1106
  provenance: Readonly<{
1107
1107
  sessionId: number | null;
1108
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1108
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1109
1109
  messageSequence: number | null;
1110
1110
  toolExecutionId: string | null;
1111
1111
  resourceKey: string | null;
@@ -1130,7 +1130,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1130
1130
  resourceKey: string;
1131
1131
  provenance: Readonly<{
1132
1132
  sessionId: number | null;
1133
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1133
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1134
1134
  messageSequence: number | null;
1135
1135
  toolExecutionId: string | null;
1136
1136
  resourceKey: string | null;
@@ -1140,11 +1140,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1140
1140
  }>[];
1141
1141
  }>[];
1142
1142
  goal: Readonly<{
1143
- text: string;
1144
1143
  id: string;
1144
+ text: string;
1145
1145
  provenance: Readonly<{
1146
1146
  sessionId: number | null;
1147
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1147
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1148
1148
  messageSequence: number | null;
1149
1149
  toolExecutionId: string | null;
1150
1150
  resourceKey: string | null;
@@ -1155,11 +1155,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1155
1155
  sourceQuotes?: string[] | undefined;
1156
1156
  }> | null;
1157
1157
  decisions: Readonly<{
1158
- text: string;
1159
1158
  id: string;
1159
+ text: string;
1160
1160
  provenance: Readonly<{
1161
1161
  sessionId: number | null;
1162
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1162
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1163
1163
  messageSequence: number | null;
1164
1164
  toolExecutionId: string | null;
1165
1165
  resourceKey: string | null;
@@ -1170,11 +1170,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1170
1170
  sourceQuotes?: string[] | undefined;
1171
1171
  }>[];
1172
1172
  completedWork: Readonly<{
1173
- text: string;
1174
1173
  id: string;
1174
+ text: string;
1175
1175
  provenance: Readonly<{
1176
1176
  sessionId: number | null;
1177
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1177
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1178
1178
  messageSequence: number | null;
1179
1179
  toolExecutionId: string | null;
1180
1180
  resourceKey: string | null;
@@ -1185,11 +1185,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1185
1185
  sourceQuotes?: string[] | undefined;
1186
1186
  }>[];
1187
1187
  pendingWork: Readonly<{
1188
- text: string;
1189
1188
  id: string;
1189
+ text: string;
1190
1190
  provenance: Readonly<{
1191
1191
  sessionId: number | null;
1192
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1192
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1193
1193
  messageSequence: number | null;
1194
1194
  toolExecutionId: string | null;
1195
1195
  resourceKey: string | null;
@@ -1205,7 +1205,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1205
1205
  managerInstanceId: string;
1206
1206
  provenance: Readonly<{
1207
1207
  sessionId: number | null;
1208
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1208
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1209
1209
  messageSequence: number | null;
1210
1210
  toolExecutionId: string | null;
1211
1211
  resourceKey: string | null;
@@ -1215,11 +1215,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1215
1215
  }>[];
1216
1216
  }>[];
1217
1217
  uncertainties: Readonly<{
1218
- text: string;
1219
1218
  id: string;
1219
+ text: string;
1220
1220
  provenance: Readonly<{
1221
1221
  sessionId: number | null;
1222
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1222
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1223
1223
  messageSequence: number | null;
1224
1224
  toolExecutionId: string | null;
1225
1225
  resourceKey: string | null;
@@ -1230,11 +1230,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1230
1230
  sourceQuotes?: string[] | undefined;
1231
1231
  }>[];
1232
1232
  constraints?: Readonly<{
1233
- text: string;
1234
1233
  id: string;
1234
+ text: string;
1235
1235
  provenance: Readonly<{
1236
1236
  sessionId: number | null;
1237
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1237
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1238
1238
  messageSequence: number | null;
1239
1239
  toolExecutionId: string | null;
1240
1240
  resourceKey: string | null;
@@ -1260,7 +1260,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1260
1260
  resourceKey: string;
1261
1261
  provenance: Readonly<{
1262
1262
  sessionId: number | null;
1263
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1263
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1264
1264
  messageSequence: number | null;
1265
1265
  toolExecutionId: string | null;
1266
1266
  resourceKey: string | null;
@@ -1270,12 +1270,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1270
1270
  }>[];
1271
1271
  }>[];
1272
1272
  goal: Readonly<{
1273
- text: string;
1274
1273
  id: string & z.BRAND<"CompactionSemanticItemId">;
1274
+ text: string;
1275
1275
  sourceQuotes: string[];
1276
1276
  provenance: Readonly<{
1277
1277
  sessionId: number | null;
1278
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1278
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1279
1279
  messageSequence: number | null;
1280
1280
  toolExecutionId: string | null;
1281
1281
  resourceKey: string | null;
@@ -1285,12 +1285,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1285
1285
  }>[];
1286
1286
  }> | null;
1287
1287
  constraints: Readonly<{
1288
- text: string;
1289
1288
  id: string & z.BRAND<"CompactionSemanticItemId">;
1289
+ text: string;
1290
1290
  sourceQuotes: string[];
1291
1291
  provenance: Readonly<{
1292
1292
  sessionId: number | null;
1293
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1293
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1294
1294
  messageSequence: number | null;
1295
1295
  toolExecutionId: string | null;
1296
1296
  resourceKey: string | null;
@@ -1300,12 +1300,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1300
1300
  }>[];
1301
1301
  }>[];
1302
1302
  decisions: Readonly<{
1303
- text: string;
1304
1303
  id: string & z.BRAND<"CompactionSemanticItemId">;
1304
+ text: string;
1305
1305
  sourceQuotes: string[];
1306
1306
  provenance: Readonly<{
1307
1307
  sessionId: number | null;
1308
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1308
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1309
1309
  messageSequence: number | null;
1310
1310
  toolExecutionId: string | null;
1311
1311
  resourceKey: string | null;
@@ -1315,12 +1315,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1315
1315
  }>[];
1316
1316
  }>[];
1317
1317
  completedWork: Readonly<{
1318
- text: string;
1319
1318
  id: string & z.BRAND<"CompactionSemanticItemId">;
1319
+ text: string;
1320
1320
  sourceQuotes: string[];
1321
1321
  provenance: Readonly<{
1322
1322
  sessionId: number | null;
1323
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1323
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1324
1324
  messageSequence: number | null;
1325
1325
  toolExecutionId: string | null;
1326
1326
  resourceKey: string | null;
@@ -1330,12 +1330,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1330
1330
  }>[];
1331
1331
  }>[];
1332
1332
  pendingWork: Readonly<{
1333
- text: string;
1334
1333
  id: string & z.BRAND<"CompactionSemanticItemId">;
1334
+ text: string;
1335
1335
  sourceQuotes: string[];
1336
1336
  provenance: Readonly<{
1337
1337
  sessionId: number | null;
1338
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1338
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1339
1339
  messageSequence: number | null;
1340
1340
  toolExecutionId: string | null;
1341
1341
  resourceKey: string | null;
@@ -1350,7 +1350,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1350
1350
  managerInstanceId: string;
1351
1351
  provenance: Readonly<{
1352
1352
  sessionId: number | null;
1353
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1353
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1354
1354
  messageSequence: number | null;
1355
1355
  toolExecutionId: string | null;
1356
1356
  resourceKey: string | null;
@@ -1360,12 +1360,12 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1360
1360
  }>[];
1361
1361
  }>[];
1362
1362
  uncertainties: Readonly<{
1363
- text: string;
1364
1363
  id: string & z.BRAND<"CompactionSemanticItemId">;
1364
+ text: string;
1365
1365
  sourceQuotes: string[];
1366
1366
  provenance: Readonly<{
1367
1367
  sessionId: number | null;
1368
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1368
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1369
1369
  messageSequence: number | null;
1370
1370
  toolExecutionId: string | null;
1371
1371
  resourceKey: string | null;
@@ -1390,7 +1390,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1390
1390
  resourceKey: string;
1391
1391
  provenance: Readonly<{
1392
1392
  sessionId: number | null;
1393
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1393
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1394
1394
  messageSequence: number | null;
1395
1395
  toolExecutionId: string | null;
1396
1396
  resourceKey: string | null;
@@ -1400,11 +1400,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1400
1400
  }>[];
1401
1401
  }>[];
1402
1402
  goal: Readonly<{
1403
- text: string;
1404
1403
  id: string;
1404
+ text: string;
1405
1405
  provenance: Readonly<{
1406
1406
  sessionId: number | null;
1407
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1407
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1408
1408
  messageSequence: number | null;
1409
1409
  toolExecutionId: string | null;
1410
1410
  resourceKey: string | null;
@@ -1415,11 +1415,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1415
1415
  sourceQuotes?: string[] | undefined;
1416
1416
  }> | null;
1417
1417
  decisions: Readonly<{
1418
- text: string;
1419
1418
  id: string;
1419
+ text: string;
1420
1420
  provenance: Readonly<{
1421
1421
  sessionId: number | null;
1422
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1422
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1423
1423
  messageSequence: number | null;
1424
1424
  toolExecutionId: string | null;
1425
1425
  resourceKey: string | null;
@@ -1430,11 +1430,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1430
1430
  sourceQuotes?: string[] | undefined;
1431
1431
  }>[];
1432
1432
  completedWork: Readonly<{
1433
- text: string;
1434
1433
  id: string;
1434
+ text: string;
1435
1435
  provenance: Readonly<{
1436
1436
  sessionId: number | null;
1437
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1437
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1438
1438
  messageSequence: number | null;
1439
1439
  toolExecutionId: string | null;
1440
1440
  resourceKey: string | null;
@@ -1445,11 +1445,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1445
1445
  sourceQuotes?: string[] | undefined;
1446
1446
  }>[];
1447
1447
  pendingWork: Readonly<{
1448
- text: string;
1449
1448
  id: string;
1449
+ text: string;
1450
1450
  provenance: Readonly<{
1451
1451
  sessionId: number | null;
1452
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1452
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1453
1453
  messageSequence: number | null;
1454
1454
  toolExecutionId: string | null;
1455
1455
  resourceKey: string | null;
@@ -1465,7 +1465,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1465
1465
  managerInstanceId: string;
1466
1466
  provenance: Readonly<{
1467
1467
  sessionId: number | null;
1468
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1468
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1469
1469
  messageSequence: number | null;
1470
1470
  toolExecutionId: string | null;
1471
1471
  resourceKey: string | null;
@@ -1475,11 +1475,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1475
1475
  }>[];
1476
1476
  }>[];
1477
1477
  uncertainties: Readonly<{
1478
- text: string;
1479
1478
  id: string;
1479
+ text: string;
1480
1480
  provenance: Readonly<{
1481
1481
  sessionId: number | null;
1482
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1482
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1483
1483
  messageSequence: number | null;
1484
1484
  toolExecutionId: string | null;
1485
1485
  resourceKey: string | null;
@@ -1490,11 +1490,11 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
1490
1490
  sourceQuotes?: string[] | undefined;
1491
1491
  }>[];
1492
1492
  constraints?: Readonly<{
1493
- text: string;
1494
1493
  id: string;
1494
+ text: string;
1495
1495
  provenance: Readonly<{
1496
1496
  sessionId: number | null;
1497
- kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
1497
+ kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
1498
1498
  messageSequence: number | null;
1499
1499
  toolExecutionId: string | null;
1500
1500
  resourceKey: string | null;