@roll-agent/runtime 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/engine/agent-session.d.ts +11 -0
- package/dist/engine/agent-session.js +1 -1
- package/dist/engine/capability-manifest.d.ts +1 -0
- package/dist/engine/capability-manifest.js +1 -1
- package/dist/engine/compaction-checkpoint.d.ts +136 -136
- package/dist/engine/compaction-semantic-state.d.ts +102 -102
- package/dist/engine/system-prompt.d.ts +1 -0
- package/dist/engine/system-prompt.js +1 -1
- package/dist/interaction/user-input-interaction-manager.d.ts +28 -0
- package/dist/interaction/user-input-interaction-manager.js +1 -0
- package/dist/server/protocol.d.ts +2 -2
- package/dist/server/runtime-client-interaction-lifecycle.d.ts +88 -0
- package/dist/server/runtime-client-interaction-lifecycle.js +1 -0
- package/dist/server/runtime-client-request-coordinator.d.ts +37 -8
- package/dist/server/runtime-client-request-coordinator.js +1 -1
- package/dist/server/runtime-protocol-adapter.d.ts +24 -3
- package/dist/server/runtime-protocol-adapter.js +1 -1
- package/dist/server/runtime-server.d.ts +1 -0
- package/dist/server/runtime-server.js +1 -1
- package/dist/service/runtime-service.d.ts +43 -7
- package/dist/service/runtime-service.js +1 -1
- package/dist/store/thread-store.d.ts +42 -0
- package/dist/store/thread-store.js +1 -1
- package/dist/tool-bridge/user-input-tool.d.ts +16 -0
- package/dist/tool-bridge/user-input-tool.js +1 -0
- package/dist/types/events.d.ts +15 -0
- package/package.json +3 -3
|
@@ -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" | "
|
|
26
|
+
kind: "resource" | "message" | "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" | "
|
|
35
|
+
kind: "resource" | "message" | "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" | "
|
|
44
|
+
kind: "resource" | "message" | "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" | "
|
|
53
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
54
54
|
messageSequence: number | null;
|
|
55
55
|
toolExecutionId: string | null;
|
|
56
56
|
resourceKey: string | null;
|
|
@@ -194,14 +194,14 @@ export declare const compactionModelDraftSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
194
194
|
sourceEvidenceIds: string[];
|
|
195
195
|
sourceQuotes: string[];
|
|
196
196
|
targetItemId: string;
|
|
197
|
-
targetCategory: "
|
|
197
|
+
targetCategory: "decision" | "constraint" | "pending_work" | "uncertainty";
|
|
198
198
|
}, {
|
|
199
199
|
action: "cancel" | "supersede" | "clarify" | "revoke";
|
|
200
200
|
reason: string;
|
|
201
201
|
sourceEvidenceIds: string[];
|
|
202
202
|
sourceQuotes: string[];
|
|
203
203
|
targetItemId: string;
|
|
204
|
-
targetCategory: "
|
|
204
|
+
targetCategory: "decision" | "constraint" | "pending_work" | "uncertainty";
|
|
205
205
|
}>>, "many">;
|
|
206
206
|
evidenceReviews: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
207
207
|
evidenceId: z.ZodString;
|
|
@@ -268,7 +268,7 @@ export declare const compactionModelDraftSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
268
268
|
sourceEvidenceIds: string[];
|
|
269
269
|
sourceQuotes: string[];
|
|
270
270
|
targetItemId: string;
|
|
271
|
-
targetCategory: "
|
|
271
|
+
targetCategory: "decision" | "constraint" | "pending_work" | "uncertainty";
|
|
272
272
|
}>[];
|
|
273
273
|
evidenceReviews: Readonly<{
|
|
274
274
|
reason: string;
|
|
@@ -327,7 +327,7 @@ export declare const compactionModelDraftSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
327
327
|
sourceEvidenceIds: string[];
|
|
328
328
|
sourceQuotes: string[];
|
|
329
329
|
targetItemId: string;
|
|
330
|
-
targetCategory: "
|
|
330
|
+
targetCategory: "decision" | "constraint" | "pending_work" | "uncertainty";
|
|
331
331
|
}>[];
|
|
332
332
|
evidenceReviews: Readonly<{
|
|
333
333
|
reason: 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" | "
|
|
356
|
+
kind: "resource" | "message" | "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" | "
|
|
365
|
+
kind: "resource" | "message" | "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" | "
|
|
374
|
+
kind: "resource" | "message" | "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" | "
|
|
383
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
384
384
|
messageSequence: number | null;
|
|
385
385
|
toolExecutionId: string | null;
|
|
386
386
|
resourceKey: string | null;
|
|
@@ -395,7 +395,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
395
395
|
sourceQuotes: string[];
|
|
396
396
|
provenance: Readonly<{
|
|
397
397
|
sessionId: number | null;
|
|
398
|
-
kind: "resource" | "message" | "
|
|
398
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
399
399
|
messageSequence: number | null;
|
|
400
400
|
toolExecutionId: string | null;
|
|
401
401
|
resourceKey: string | null;
|
|
@@ -408,7 +408,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
408
408
|
id: string;
|
|
409
409
|
provenance: Readonly<{
|
|
410
410
|
sessionId: number | null;
|
|
411
|
-
kind: "resource" | "message" | "
|
|
411
|
+
kind: "resource" | "message" | "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" | "
|
|
435
|
+
kind: "resource" | "message" | "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" | "
|
|
444
|
+
kind: "resource" | "message" | "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" | "
|
|
453
|
+
kind: "resource" | "message" | "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" | "
|
|
462
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
463
463
|
messageSequence: number | null;
|
|
464
464
|
toolExecutionId: string | null;
|
|
465
465
|
resourceKey: string | null;
|
|
@@ -474,7 +474,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
474
474
|
sourceQuotes: string[];
|
|
475
475
|
provenance: Readonly<{
|
|
476
476
|
sessionId: number | null;
|
|
477
|
-
kind: "resource" | "message" | "
|
|
477
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
478
478
|
messageSequence: number | null;
|
|
479
479
|
toolExecutionId: string | null;
|
|
480
480
|
resourceKey: string | null;
|
|
@@ -487,7 +487,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
487
487
|
id: string;
|
|
488
488
|
provenance: Readonly<{
|
|
489
489
|
sessionId: number | null;
|
|
490
|
-
kind: "resource" | "message" | "
|
|
490
|
+
kind: "resource" | "message" | "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" | "
|
|
514
|
+
kind: "resource" | "message" | "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" | "
|
|
523
|
+
kind: "resource" | "message" | "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" | "
|
|
532
|
+
kind: "resource" | "message" | "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" | "
|
|
541
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
542
542
|
messageSequence: number | null;
|
|
543
543
|
toolExecutionId: string | null;
|
|
544
544
|
resourceKey: string | null;
|
|
@@ -553,7 +553,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
553
553
|
sourceQuotes: string[];
|
|
554
554
|
provenance: Readonly<{
|
|
555
555
|
sessionId: number | null;
|
|
556
|
-
kind: "resource" | "message" | "
|
|
556
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
557
557
|
messageSequence: number | null;
|
|
558
558
|
toolExecutionId: string | null;
|
|
559
559
|
resourceKey: string | null;
|
|
@@ -566,7 +566,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
566
566
|
id: string;
|
|
567
567
|
provenance: Readonly<{
|
|
568
568
|
sessionId: number | null;
|
|
569
|
-
kind: "resource" | "message" | "
|
|
569
|
+
kind: "resource" | "message" | "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" | "
|
|
593
|
+
kind: "resource" | "message" | "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" | "
|
|
602
|
+
kind: "resource" | "message" | "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" | "
|
|
611
|
+
kind: "resource" | "message" | "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" | "
|
|
620
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
621
621
|
messageSequence: number | null;
|
|
622
622
|
toolExecutionId: string | null;
|
|
623
623
|
resourceKey: string | null;
|
|
@@ -632,7 +632,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
632
632
|
sourceQuotes: string[];
|
|
633
633
|
provenance: Readonly<{
|
|
634
634
|
sessionId: number | null;
|
|
635
|
-
kind: "resource" | "message" | "
|
|
635
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
636
636
|
messageSequence: number | null;
|
|
637
637
|
toolExecutionId: string | null;
|
|
638
638
|
resourceKey: string | null;
|
|
@@ -645,7 +645,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
645
645
|
id: string;
|
|
646
646
|
provenance: Readonly<{
|
|
647
647
|
sessionId: number | null;
|
|
648
|
-
kind: "resource" | "message" | "
|
|
648
|
+
kind: "resource" | "message" | "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" | "
|
|
672
|
+
kind: "resource" | "message" | "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" | "
|
|
681
|
+
kind: "resource" | "message" | "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" | "
|
|
690
|
+
kind: "resource" | "message" | "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" | "
|
|
699
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
700
700
|
messageSequence: number | null;
|
|
701
701
|
toolExecutionId: string | null;
|
|
702
702
|
resourceKey: string | null;
|
|
@@ -711,7 +711,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
711
711
|
sourceQuotes: string[];
|
|
712
712
|
provenance: Readonly<{
|
|
713
713
|
sessionId: number | null;
|
|
714
|
-
kind: "resource" | "message" | "
|
|
714
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
715
715
|
messageSequence: number | null;
|
|
716
716
|
toolExecutionId: string | null;
|
|
717
717
|
resourceKey: string | null;
|
|
@@ -724,7 +724,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
724
724
|
id: string;
|
|
725
725
|
provenance: Readonly<{
|
|
726
726
|
sessionId: number | null;
|
|
727
|
-
kind: "resource" | "message" | "
|
|
727
|
+
kind: "resource" | "message" | "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" | "
|
|
751
|
+
kind: "resource" | "message" | "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" | "
|
|
760
|
+
kind: "resource" | "message" | "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" | "
|
|
769
|
+
kind: "resource" | "message" | "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" | "
|
|
778
|
+
kind: "resource" | "message" | "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" | "
|
|
791
|
+
kind: "resource" | "message" | "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" | "
|
|
804
|
+
kind: "resource" | "message" | "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" | "
|
|
828
|
+
kind: "resource" | "message" | "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" | "
|
|
837
|
+
kind: "resource" | "message" | "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" | "
|
|
846
|
+
kind: "resource" | "message" | "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" | "
|
|
855
|
+
kind: "resource" | "message" | "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" | "
|
|
869
|
+
kind: "resource" | "message" | "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" | "
|
|
883
|
+
kind: "resource" | "message" | "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" | "
|
|
906
|
+
kind: "resource" | "message" | "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" | "
|
|
915
|
+
kind: "resource" | "message" | "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" | "
|
|
924
|
+
kind: "resource" | "message" | "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" | "
|
|
933
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
934
934
|
messageSequence: number | null;
|
|
935
935
|
toolExecutionId: string | null;
|
|
936
936
|
resourceKey: string | null;
|
|
@@ -945,7 +945,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
945
945
|
sourceQuotes: string[];
|
|
946
946
|
provenance: Readonly<{
|
|
947
947
|
sessionId: number | null;
|
|
948
|
-
kind: "resource" | "message" | "
|
|
948
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
949
949
|
messageSequence: number | null;
|
|
950
950
|
toolExecutionId: string | null;
|
|
951
951
|
resourceKey: string | null;
|
|
@@ -958,7 +958,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
958
958
|
id: string;
|
|
959
959
|
provenance: Readonly<{
|
|
960
960
|
sessionId: number | null;
|
|
961
|
-
kind: "resource" | "message" | "
|
|
961
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
962
962
|
messageSequence: number | null;
|
|
963
963
|
toolExecutionId: string | null;
|
|
964
964
|
resourceKey: string | null;
|
|
@@ -978,16 +978,16 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
978
978
|
uncertainty: z.ZodNumber;
|
|
979
979
|
}, "strict", z.ZodTypeAny, {
|
|
980
980
|
resource: number;
|
|
981
|
+
decision: number;
|
|
981
982
|
running_session: number;
|
|
982
983
|
constraint: number;
|
|
983
|
-
decision: number;
|
|
984
984
|
completed_work: number;
|
|
985
985
|
pending_work: number;
|
|
986
986
|
uncertainty: number;
|
|
987
987
|
}, {
|
|
988
988
|
resource: number;
|
|
989
|
-
running_session: number;
|
|
990
989
|
decision: number;
|
|
990
|
+
running_session: number;
|
|
991
991
|
completed_work: number;
|
|
992
992
|
pending_work: number;
|
|
993
993
|
uncertainty: number;
|
|
@@ -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" | "
|
|
1003
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1004
1004
|
messageSequence: number | null;
|
|
1005
1005
|
toolExecutionId: string | null;
|
|
1006
1006
|
resourceKey: string | null;
|
|
@@ -1015,7 +1015,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1015
1015
|
sourceQuotes: string[];
|
|
1016
1016
|
provenance: Readonly<{
|
|
1017
1017
|
sessionId: number | null;
|
|
1018
|
-
kind: "resource" | "message" | "
|
|
1018
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1019
1019
|
messageSequence: number | null;
|
|
1020
1020
|
toolExecutionId: string | null;
|
|
1021
1021
|
resourceKey: string | null;
|
|
@@ -1030,7 +1030,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1030
1030
|
sourceQuotes: string[];
|
|
1031
1031
|
provenance: Readonly<{
|
|
1032
1032
|
sessionId: number | null;
|
|
1033
|
-
kind: "resource" | "message" | "
|
|
1033
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1034
1034
|
messageSequence: number | null;
|
|
1035
1035
|
toolExecutionId: string | null;
|
|
1036
1036
|
resourceKey: string | null;
|
|
@@ -1045,7 +1045,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1045
1045
|
sourceQuotes: string[];
|
|
1046
1046
|
provenance: Readonly<{
|
|
1047
1047
|
sessionId: number | null;
|
|
1048
|
-
kind: "resource" | "message" | "
|
|
1048
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1049
1049
|
messageSequence: number | null;
|
|
1050
1050
|
toolExecutionId: string | null;
|
|
1051
1051
|
resourceKey: string | null;
|
|
@@ -1060,7 +1060,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1060
1060
|
sourceQuotes: string[];
|
|
1061
1061
|
provenance: Readonly<{
|
|
1062
1062
|
sessionId: number | null;
|
|
1063
|
-
kind: "resource" | "message" | "
|
|
1063
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1064
1064
|
messageSequence: number | null;
|
|
1065
1065
|
toolExecutionId: string | null;
|
|
1066
1066
|
resourceKey: string | null;
|
|
@@ -1075,7 +1075,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1075
1075
|
sourceQuotes: string[];
|
|
1076
1076
|
provenance: Readonly<{
|
|
1077
1077
|
sessionId: number | null;
|
|
1078
|
-
kind: "resource" | "message" | "
|
|
1078
|
+
kind: "resource" | "message" | "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" | "
|
|
1093
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1094
1094
|
messageSequence: number | null;
|
|
1095
1095
|
toolExecutionId: string | null;
|
|
1096
1096
|
resourceKey: string | null;
|
|
@@ -1105,7 +1105,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1105
1105
|
sourceQuotes: string[];
|
|
1106
1106
|
provenance: Readonly<{
|
|
1107
1107
|
sessionId: number | null;
|
|
1108
|
-
kind: "resource" | "message" | "
|
|
1108
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1109
1109
|
messageSequence: number | null;
|
|
1110
1110
|
toolExecutionId: string | null;
|
|
1111
1111
|
resourceKey: string | null;
|
|
@@ -1116,9 +1116,9 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1116
1116
|
}>[];
|
|
1117
1117
|
prunedItemCounts: Readonly<{
|
|
1118
1118
|
resource: number;
|
|
1119
|
+
decision: number;
|
|
1119
1120
|
running_session: number;
|
|
1120
1121
|
constraint: number;
|
|
1121
|
-
decision: number;
|
|
1122
1122
|
completed_work: number;
|
|
1123
1123
|
pending_work: number;
|
|
1124
1124
|
uncertainty: number;
|
|
@@ -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" | "
|
|
1133
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1134
1134
|
messageSequence: number | null;
|
|
1135
1135
|
toolExecutionId: string | null;
|
|
1136
1136
|
resourceKey: string | null;
|
|
@@ -1144,7 +1144,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1144
1144
|
id: string;
|
|
1145
1145
|
provenance: Readonly<{
|
|
1146
1146
|
sessionId: number | null;
|
|
1147
|
-
kind: "resource" | "message" | "
|
|
1147
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1148
1148
|
messageSequence: number | null;
|
|
1149
1149
|
toolExecutionId: string | null;
|
|
1150
1150
|
resourceKey: string | null;
|
|
@@ -1159,7 +1159,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1159
1159
|
id: string;
|
|
1160
1160
|
provenance: Readonly<{
|
|
1161
1161
|
sessionId: number | null;
|
|
1162
|
-
kind: "resource" | "message" | "
|
|
1162
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1163
1163
|
messageSequence: number | null;
|
|
1164
1164
|
toolExecutionId: string | null;
|
|
1165
1165
|
resourceKey: string | null;
|
|
@@ -1174,7 +1174,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1174
1174
|
id: string;
|
|
1175
1175
|
provenance: Readonly<{
|
|
1176
1176
|
sessionId: number | null;
|
|
1177
|
-
kind: "resource" | "message" | "
|
|
1177
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1178
1178
|
messageSequence: number | null;
|
|
1179
1179
|
toolExecutionId: string | null;
|
|
1180
1180
|
resourceKey: string | null;
|
|
@@ -1189,7 +1189,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1189
1189
|
id: string;
|
|
1190
1190
|
provenance: Readonly<{
|
|
1191
1191
|
sessionId: number | null;
|
|
1192
|
-
kind: "resource" | "message" | "
|
|
1192
|
+
kind: "resource" | "message" | "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" | "
|
|
1208
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1209
1209
|
messageSequence: number | null;
|
|
1210
1210
|
toolExecutionId: string | null;
|
|
1211
1211
|
resourceKey: string | null;
|
|
@@ -1219,7 +1219,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1219
1219
|
id: string;
|
|
1220
1220
|
provenance: Readonly<{
|
|
1221
1221
|
sessionId: number | null;
|
|
1222
|
-
kind: "resource" | "message" | "
|
|
1222
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1223
1223
|
messageSequence: number | null;
|
|
1224
1224
|
toolExecutionId: string | null;
|
|
1225
1225
|
resourceKey: string | null;
|
|
@@ -1234,7 +1234,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1234
1234
|
id: string;
|
|
1235
1235
|
provenance: Readonly<{
|
|
1236
1236
|
sessionId: number | null;
|
|
1237
|
-
kind: "resource" | "message" | "
|
|
1237
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1238
1238
|
messageSequence: number | null;
|
|
1239
1239
|
toolExecutionId: string | null;
|
|
1240
1240
|
resourceKey: string | null;
|
|
@@ -1246,8 +1246,8 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1246
1246
|
}>[] | undefined;
|
|
1247
1247
|
prunedItemCounts?: Readonly<{
|
|
1248
1248
|
resource: number;
|
|
1249
|
-
running_session: number;
|
|
1250
1249
|
decision: number;
|
|
1250
|
+
running_session: number;
|
|
1251
1251
|
completed_work: number;
|
|
1252
1252
|
pending_work: number;
|
|
1253
1253
|
uncertainty: number;
|
|
@@ -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" | "
|
|
1263
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1264
1264
|
messageSequence: number | null;
|
|
1265
1265
|
toolExecutionId: string | null;
|
|
1266
1266
|
resourceKey: string | null;
|
|
@@ -1275,7 +1275,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1275
1275
|
sourceQuotes: string[];
|
|
1276
1276
|
provenance: Readonly<{
|
|
1277
1277
|
sessionId: number | null;
|
|
1278
|
-
kind: "resource" | "message" | "
|
|
1278
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1279
1279
|
messageSequence: number | null;
|
|
1280
1280
|
toolExecutionId: string | null;
|
|
1281
1281
|
resourceKey: string | null;
|
|
@@ -1290,7 +1290,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1290
1290
|
sourceQuotes: string[];
|
|
1291
1291
|
provenance: Readonly<{
|
|
1292
1292
|
sessionId: number | null;
|
|
1293
|
-
kind: "resource" | "message" | "
|
|
1293
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1294
1294
|
messageSequence: number | null;
|
|
1295
1295
|
toolExecutionId: string | null;
|
|
1296
1296
|
resourceKey: string | null;
|
|
@@ -1305,7 +1305,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1305
1305
|
sourceQuotes: string[];
|
|
1306
1306
|
provenance: Readonly<{
|
|
1307
1307
|
sessionId: number | null;
|
|
1308
|
-
kind: "resource" | "message" | "
|
|
1308
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1309
1309
|
messageSequence: number | null;
|
|
1310
1310
|
toolExecutionId: string | null;
|
|
1311
1311
|
resourceKey: string | null;
|
|
@@ -1320,7 +1320,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1320
1320
|
sourceQuotes: string[];
|
|
1321
1321
|
provenance: Readonly<{
|
|
1322
1322
|
sessionId: number | null;
|
|
1323
|
-
kind: "resource" | "message" | "
|
|
1323
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1324
1324
|
messageSequence: number | null;
|
|
1325
1325
|
toolExecutionId: string | null;
|
|
1326
1326
|
resourceKey: string | null;
|
|
@@ -1335,7 +1335,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1335
1335
|
sourceQuotes: string[];
|
|
1336
1336
|
provenance: Readonly<{
|
|
1337
1337
|
sessionId: number | null;
|
|
1338
|
-
kind: "resource" | "message" | "
|
|
1338
|
+
kind: "resource" | "message" | "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" | "
|
|
1353
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1354
1354
|
messageSequence: number | null;
|
|
1355
1355
|
toolExecutionId: string | null;
|
|
1356
1356
|
resourceKey: string | null;
|
|
@@ -1365,7 +1365,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1365
1365
|
sourceQuotes: string[];
|
|
1366
1366
|
provenance: Readonly<{
|
|
1367
1367
|
sessionId: number | null;
|
|
1368
|
-
kind: "resource" | "message" | "
|
|
1368
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1369
1369
|
messageSequence: number | null;
|
|
1370
1370
|
toolExecutionId: string | null;
|
|
1371
1371
|
resourceKey: string | null;
|
|
@@ -1376,9 +1376,9 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1376
1376
|
}>[];
|
|
1377
1377
|
prunedItemCounts: Readonly<{
|
|
1378
1378
|
resource: number;
|
|
1379
|
+
decision: number;
|
|
1379
1380
|
running_session: number;
|
|
1380
1381
|
constraint: number;
|
|
1381
|
-
decision: number;
|
|
1382
1382
|
completed_work: number;
|
|
1383
1383
|
pending_work: number;
|
|
1384
1384
|
uncertainty: number;
|
|
@@ -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" | "
|
|
1393
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1394
1394
|
messageSequence: number | null;
|
|
1395
1395
|
toolExecutionId: string | null;
|
|
1396
1396
|
resourceKey: string | null;
|
|
@@ -1404,7 +1404,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1404
1404
|
id: string;
|
|
1405
1405
|
provenance: Readonly<{
|
|
1406
1406
|
sessionId: number | null;
|
|
1407
|
-
kind: "resource" | "message" | "
|
|
1407
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1408
1408
|
messageSequence: number | null;
|
|
1409
1409
|
toolExecutionId: string | null;
|
|
1410
1410
|
resourceKey: string | null;
|
|
@@ -1419,7 +1419,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1419
1419
|
id: string;
|
|
1420
1420
|
provenance: Readonly<{
|
|
1421
1421
|
sessionId: number | null;
|
|
1422
|
-
kind: "resource" | "message" | "
|
|
1422
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1423
1423
|
messageSequence: number | null;
|
|
1424
1424
|
toolExecutionId: string | null;
|
|
1425
1425
|
resourceKey: string | null;
|
|
@@ -1434,7 +1434,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1434
1434
|
id: string;
|
|
1435
1435
|
provenance: Readonly<{
|
|
1436
1436
|
sessionId: number | null;
|
|
1437
|
-
kind: "resource" | "message" | "
|
|
1437
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1438
1438
|
messageSequence: number | null;
|
|
1439
1439
|
toolExecutionId: string | null;
|
|
1440
1440
|
resourceKey: string | null;
|
|
@@ -1449,7 +1449,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1449
1449
|
id: string;
|
|
1450
1450
|
provenance: Readonly<{
|
|
1451
1451
|
sessionId: number | null;
|
|
1452
|
-
kind: "resource" | "message" | "
|
|
1452
|
+
kind: "resource" | "message" | "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" | "
|
|
1468
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1469
1469
|
messageSequence: number | null;
|
|
1470
1470
|
toolExecutionId: string | null;
|
|
1471
1471
|
resourceKey: string | null;
|
|
@@ -1479,7 +1479,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1479
1479
|
id: string;
|
|
1480
1480
|
provenance: Readonly<{
|
|
1481
1481
|
sessionId: number | null;
|
|
1482
|
-
kind: "resource" | "message" | "
|
|
1482
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1483
1483
|
messageSequence: number | null;
|
|
1484
1484
|
toolExecutionId: string | null;
|
|
1485
1485
|
resourceKey: string | null;
|
|
@@ -1494,7 +1494,7 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1494
1494
|
id: string;
|
|
1495
1495
|
provenance: Readonly<{
|
|
1496
1496
|
sessionId: number | null;
|
|
1497
|
-
kind: "resource" | "message" | "
|
|
1497
|
+
kind: "resource" | "message" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1498
1498
|
messageSequence: number | null;
|
|
1499
1499
|
toolExecutionId: string | null;
|
|
1500
1500
|
resourceKey: string | null;
|
|
@@ -1506,8 +1506,8 @@ export declare const compactionSemanticStateSchema: z.ZodReadonly<z.ZodEffects<z
|
|
|
1506
1506
|
}>[] | undefined;
|
|
1507
1507
|
prunedItemCounts?: Readonly<{
|
|
1508
1508
|
resource: number;
|
|
1509
|
-
running_session: number;
|
|
1510
1509
|
decision: number;
|
|
1510
|
+
running_session: number;
|
|
1511
1511
|
completed_work: number;
|
|
1512
1512
|
pending_work: number;
|
|
1513
1513
|
uncertainty: number;
|
|
@@ -1529,12 +1529,12 @@ export declare const compactionSemanticReminderProjectionSchema: z.ZodReadonly<z
|
|
|
1529
1529
|
text: string;
|
|
1530
1530
|
sourceQuotes: string[];
|
|
1531
1531
|
itemId: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1532
|
-
category: "resource" | "
|
|
1532
|
+
category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
|
|
1533
1533
|
}, {
|
|
1534
1534
|
text: string;
|
|
1535
1535
|
sourceQuotes: string[];
|
|
1536
1536
|
itemId: string;
|
|
1537
|
-
category: "resource" | "
|
|
1537
|
+
category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
|
|
1538
1538
|
}>>, "many">;
|
|
1539
1539
|
omittedCounts: z.ZodReadonly<z.ZodObject<{
|
|
1540
1540
|
goal: z.ZodNumber;
|
|
@@ -1547,19 +1547,19 @@ export declare const compactionSemanticReminderProjectionSchema: z.ZodReadonly<z
|
|
|
1547
1547
|
uncertainty: z.ZodNumber;
|
|
1548
1548
|
}, "strict", z.ZodTypeAny, {
|
|
1549
1549
|
resource: number;
|
|
1550
|
+
decision: number;
|
|
1550
1551
|
running_session: number;
|
|
1551
1552
|
goal: number;
|
|
1552
1553
|
constraint: number;
|
|
1553
|
-
decision: number;
|
|
1554
1554
|
completed_work: number;
|
|
1555
1555
|
pending_work: number;
|
|
1556
1556
|
uncertainty: number;
|
|
1557
1557
|
}, {
|
|
1558
1558
|
resource: number;
|
|
1559
|
+
decision: number;
|
|
1559
1560
|
running_session: number;
|
|
1560
1561
|
goal: number;
|
|
1561
1562
|
constraint: number;
|
|
1562
|
-
decision: number;
|
|
1563
1563
|
completed_work: number;
|
|
1564
1564
|
pending_work: number;
|
|
1565
1565
|
uncertainty: number;
|
|
@@ -1570,14 +1570,14 @@ export declare const compactionSemanticReminderProjectionSchema: z.ZodReadonly<z
|
|
|
1570
1570
|
text: string;
|
|
1571
1571
|
sourceQuotes: string[];
|
|
1572
1572
|
itemId: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1573
|
-
category: "resource" | "
|
|
1573
|
+
category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
|
|
1574
1574
|
}>[];
|
|
1575
1575
|
omittedCounts: Readonly<{
|
|
1576
1576
|
resource: number;
|
|
1577
|
+
decision: number;
|
|
1577
1578
|
running_session: number;
|
|
1578
1579
|
goal: number;
|
|
1579
1580
|
constraint: number;
|
|
1580
|
-
decision: number;
|
|
1581
1581
|
completed_work: number;
|
|
1582
1582
|
pending_work: number;
|
|
1583
1583
|
uncertainty: number;
|
|
@@ -1588,14 +1588,14 @@ export declare const compactionSemanticReminderProjectionSchema: z.ZodReadonly<z
|
|
|
1588
1588
|
text: string;
|
|
1589
1589
|
sourceQuotes: string[];
|
|
1590
1590
|
itemId: string;
|
|
1591
|
-
category: "resource" | "
|
|
1591
|
+
category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
|
|
1592
1592
|
}>[];
|
|
1593
1593
|
omittedCounts: Readonly<{
|
|
1594
1594
|
resource: number;
|
|
1595
|
+
decision: number;
|
|
1595
1596
|
running_session: number;
|
|
1596
1597
|
goal: number;
|
|
1597
1598
|
constraint: number;
|
|
1598
|
-
decision: number;
|
|
1599
1599
|
completed_work: number;
|
|
1600
1600
|
pending_work: number;
|
|
1601
1601
|
uncertainty: number;
|