@roll-agent/runtime 0.25.2 → 0.26.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/dist/engine/agent-session.d.ts +45 -14
- 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 +619 -174
- package/dist/engine/compaction-checkpoint.js +1 -1
- package/dist/engine/compaction-media.d.ts +7 -0
- package/dist/engine/compaction-media.js +1 -0
- package/dist/engine/compaction-semantic-state.d.ts +707 -457
- package/dist/engine/compaction-semantic-state.js +1 -1
- package/dist/engine/compactor.d.ts +6 -24
- package/dist/engine/compactor.js +1 -1
- package/dist/engine/conversation-engine.js +1 -1
- package/dist/engine/model-request.d.ts +22 -0
- package/dist/engine/model-request.js +1 -0
- package/dist/engine/request-budget.d.ts +143 -0
- package/dist/engine/request-budget.js +1 -0
- package/dist/engine/system-prompt.js +1 -1
- package/dist/engine/tool-input-activity.d.ts +22 -0
- package/dist/engine/tool-input-activity.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/server/runtime-protocol-adapter.js +1 -1
- package/dist/server/runtime-server.js +1 -1
- package/dist/service/runtime-service.d.ts +4 -3
- package/dist/service/runtime-service.js +1 -1
- package/dist/store/semantic-ledger.d.ts +120 -0
- package/dist/store/semantic-ledger.js +1 -0
- package/dist/store/thread-store.d.ts +54 -19
- package/dist/store/thread-store.js +1 -1
- package/dist/store/turn-input.d.ts +161 -0
- package/dist/store/turn-input.js +1 -0
- package/dist/tool-bridge/build-tools.d.ts +2 -0
- package/dist/tool-bridge/build-tools.js +1 -1
- package/dist/tool-bridge/file-tools/edit-file-tool.d.ts +2 -2
- package/dist/tool-bridge/file-tools/edit-file-tool.js +1 -1
- package/dist/tool-bridge/file-tools/file-change-result.d.ts +2 -0
- package/dist/tool-bridge/file-tools/file-change-result.js +1 -1
- package/dist/tool-bridge/file-tools/file-io.d.ts +2 -0
- package/dist/tool-bridge/file-tools/file-io.js +1 -1
- package/dist/tool-bridge/file-tools/file-write-state.d.ts +31 -0
- package/dist/tool-bridge/file-tools/file-write-state.js +1 -0
- package/dist/tool-bridge/file-tools/text-diff.d.ts +7 -15
- package/dist/tool-bridge/file-tools/text-diff.js +1 -1
- package/dist/tool-bridge/file-tools/write-file-tool.d.ts +2 -1
- package/dist/tool-bridge/file-tools/write-file-tool.js +1 -1
- package/dist/tool-bridge/invalid-schedule-retry.d.ts +1 -1
- package/dist/tool-bridge/invalid-schedule-retry.js +1 -1
- package/dist/tool-bridge/session-exec-tool.d.ts +2 -2
- package/dist/tool-bridge/transcript-tool.d.ts +29 -4
- package/dist/tool-bridge/transcript-tool.js +1 -1
- package/dist/types/events.d.ts +14 -1
- package/package.json +4 -3
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type ModelMessage } from "ai";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { ToolExecutionRecord } from "../tool-bridge/tool-execution-record.ts";
|
|
4
|
-
import {
|
|
4
|
+
import { type CompactionSemanticState } from "./compaction-semantic-state.ts";
|
|
5
|
+
export { MAX_TASK_SUMMARY_CHARS } from "./compactor.ts";
|
|
6
|
+
/** Legacy V2 version; retained for compatibility readers. */
|
|
5
7
|
export declare const COMPACTION_CHECKPOINT_VERSION: 2;
|
|
8
|
+
export declare const TASK_SUMMARY_CHECKPOINT_VERSION: 3;
|
|
6
9
|
export declare const COMPACTION_CHECKPOINT_V1_VERSION: 1;
|
|
7
10
|
export declare class UnsupportedCompactionCheckpointVersionError extends Error {
|
|
8
11
|
readonly checkpointVersion: number;
|
|
@@ -23,12 +26,12 @@ declare const compactionGoalSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
23
26
|
status: z.ZodEnum<["active", "interrupted", "unknown"]>;
|
|
24
27
|
}, "strict", z.ZodTypeAny, {
|
|
25
28
|
status: "unknown" | "active" | "interrupted";
|
|
26
|
-
sourceSequence: number;
|
|
27
29
|
verbatimRequest: string;
|
|
30
|
+
sourceSequence: number;
|
|
28
31
|
}, {
|
|
29
32
|
status: "unknown" | "active" | "interrupted";
|
|
30
|
-
sourceSequence: number;
|
|
31
33
|
verbatimRequest: string;
|
|
34
|
+
sourceSequence: number;
|
|
32
35
|
}>>;
|
|
33
36
|
declare const compactionConstraintSchema: z.ZodReadonly<z.ZodObject<{
|
|
34
37
|
quote: z.ZodString;
|
|
@@ -213,8 +216,8 @@ declare const compactionRunningWorkSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
213
216
|
}, "strict", z.ZodTypeAny, {
|
|
214
217
|
sessionId: number;
|
|
215
218
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
216
|
-
workdir: string;
|
|
217
219
|
managerInstanceId: string;
|
|
220
|
+
workdir: string;
|
|
218
221
|
recoverability: "unavailable" | "live" | "stale";
|
|
219
222
|
commandPreview: string;
|
|
220
223
|
observedAt: string;
|
|
@@ -225,8 +228,8 @@ declare const compactionRunningWorkSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
225
228
|
}, {
|
|
226
229
|
sessionId: number;
|
|
227
230
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
228
|
-
workdir: string;
|
|
229
231
|
managerInstanceId: string;
|
|
232
|
+
workdir: string;
|
|
230
233
|
recoverability: "unavailable" | "live" | "stale";
|
|
231
234
|
commandPreview: string;
|
|
232
235
|
observedAt: string;
|
|
@@ -251,20 +254,20 @@ declare const compactionContextSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
251
254
|
}>>, "many">;
|
|
252
255
|
explicitSkillNames: z.ZodArray<z.ZodString, "many">;
|
|
253
256
|
}, "strict", z.ZodTypeAny, {
|
|
257
|
+
cwd: string;
|
|
254
258
|
skills: Readonly<{
|
|
255
259
|
name: string;
|
|
256
260
|
source: "config" | "user" | "agent" | "project";
|
|
257
261
|
}>[];
|
|
258
|
-
cwd: string;
|
|
259
262
|
stableRuleIds: string[];
|
|
260
263
|
explicitSkillNames: string[];
|
|
261
264
|
systemPromptSha256?: string | undefined;
|
|
262
265
|
}, {
|
|
266
|
+
cwd: string;
|
|
263
267
|
skills: Readonly<{
|
|
264
268
|
name: string;
|
|
265
269
|
source: "config" | "user" | "agent" | "project";
|
|
266
270
|
}>[];
|
|
267
|
-
cwd: string;
|
|
268
271
|
stableRuleIds: string[];
|
|
269
272
|
explicitSkillNames: string[];
|
|
270
273
|
systemPromptSha256?: string | undefined;
|
|
@@ -388,12 +391,12 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
388
391
|
status: z.ZodEnum<["active", "interrupted", "unknown"]>;
|
|
389
392
|
}, "strict", z.ZodTypeAny, {
|
|
390
393
|
status: "unknown" | "active" | "interrupted";
|
|
391
|
-
sourceSequence: number;
|
|
392
394
|
verbatimRequest: string;
|
|
395
|
+
sourceSequence: number;
|
|
393
396
|
}, {
|
|
394
397
|
status: "unknown" | "active" | "interrupted";
|
|
395
|
-
sourceSequence: number;
|
|
396
398
|
verbatimRequest: string;
|
|
399
|
+
sourceSequence: number;
|
|
397
400
|
}>>>;
|
|
398
401
|
constraints: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
399
402
|
quote: z.ZodString;
|
|
@@ -578,8 +581,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
578
581
|
}, "strict", z.ZodTypeAny, {
|
|
579
582
|
sessionId: number;
|
|
580
583
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
581
|
-
workdir: string;
|
|
582
584
|
managerInstanceId: string;
|
|
585
|
+
workdir: string;
|
|
583
586
|
recoverability: "unavailable" | "live" | "stale";
|
|
584
587
|
commandPreview: string;
|
|
585
588
|
observedAt: string;
|
|
@@ -590,8 +593,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
590
593
|
}, {
|
|
591
594
|
sessionId: number;
|
|
592
595
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
593
|
-
workdir: string;
|
|
594
596
|
managerInstanceId: string;
|
|
597
|
+
workdir: string;
|
|
595
598
|
recoverability: "unavailable" | "live" | "stale";
|
|
596
599
|
commandPreview: string;
|
|
597
600
|
observedAt: string;
|
|
@@ -616,20 +619,20 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
616
619
|
}>>, "many">;
|
|
617
620
|
explicitSkillNames: z.ZodArray<z.ZodString, "many">;
|
|
618
621
|
}, "strict", z.ZodTypeAny, {
|
|
622
|
+
cwd: string;
|
|
619
623
|
skills: Readonly<{
|
|
620
624
|
name: string;
|
|
621
625
|
source: "config" | "user" | "agent" | "project";
|
|
622
626
|
}>[];
|
|
623
|
-
cwd: string;
|
|
624
627
|
stableRuleIds: string[];
|
|
625
628
|
explicitSkillNames: string[];
|
|
626
629
|
systemPromptSha256?: string | undefined;
|
|
627
630
|
}, {
|
|
631
|
+
cwd: string;
|
|
628
632
|
skills: Readonly<{
|
|
629
633
|
name: string;
|
|
630
634
|
source: "config" | "user" | "agent" | "project";
|
|
631
635
|
}>[];
|
|
632
|
-
cwd: string;
|
|
633
636
|
stableRuleIds: string[];
|
|
634
637
|
explicitSkillNames: string[];
|
|
635
638
|
systemPromptSha256?: string | undefined;
|
|
@@ -667,11 +670,11 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
667
670
|
}>]>>;
|
|
668
671
|
}, "strict", z.ZodTypeAny, {
|
|
669
672
|
context: Readonly<{
|
|
673
|
+
cwd: string;
|
|
670
674
|
skills: Readonly<{
|
|
671
675
|
name: string;
|
|
672
676
|
source: "config" | "user" | "agent" | "project";
|
|
673
677
|
}>[];
|
|
674
|
-
cwd: string;
|
|
675
678
|
stableRuleIds: string[];
|
|
676
679
|
explicitSkillNames: string[];
|
|
677
680
|
systemPromptSha256?: string | undefined;
|
|
@@ -728,8 +731,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
728
731
|
runningWork: Readonly<{
|
|
729
732
|
sessionId: number;
|
|
730
733
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
731
|
-
workdir: string;
|
|
732
734
|
managerInstanceId: string;
|
|
735
|
+
workdir: string;
|
|
733
736
|
recoverability: "unavailable" | "live" | "stale";
|
|
734
737
|
commandPreview: string;
|
|
735
738
|
observedAt: string;
|
|
@@ -740,16 +743,16 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
740
743
|
}>[];
|
|
741
744
|
goal?: Readonly<{
|
|
742
745
|
status: "unknown" | "active" | "interrupted";
|
|
743
|
-
sourceSequence: number;
|
|
744
746
|
verbatimRequest: string;
|
|
747
|
+
sourceSequence: number;
|
|
745
748
|
}> | undefined;
|
|
746
749
|
}, {
|
|
747
750
|
context: Readonly<{
|
|
751
|
+
cwd: string;
|
|
748
752
|
skills: Readonly<{
|
|
749
753
|
name: string;
|
|
750
754
|
source: "config" | "user" | "agent" | "project";
|
|
751
755
|
}>[];
|
|
752
|
-
cwd: string;
|
|
753
756
|
stableRuleIds: string[];
|
|
754
757
|
explicitSkillNames: string[];
|
|
755
758
|
systemPromptSha256?: string | undefined;
|
|
@@ -806,8 +809,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
806
809
|
runningWork: Readonly<{
|
|
807
810
|
sessionId: number;
|
|
808
811
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
809
|
-
workdir: string;
|
|
810
812
|
managerInstanceId: string;
|
|
813
|
+
workdir: string;
|
|
811
814
|
recoverability: "unavailable" | "live" | "stale";
|
|
812
815
|
commandPreview: string;
|
|
813
816
|
observedAt: string;
|
|
@@ -818,8 +821,8 @@ export declare const compactionCheckpointDraftSchema: z.ZodReadonly<z.ZodObject<
|
|
|
818
821
|
}>[];
|
|
819
822
|
goal?: Readonly<{
|
|
820
823
|
status: "unknown" | "active" | "interrupted";
|
|
821
|
-
sourceSequence: number;
|
|
822
824
|
verbatimRequest: string;
|
|
825
|
+
sourceSequence: number;
|
|
823
826
|
}> | undefined;
|
|
824
827
|
}>>;
|
|
825
828
|
export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -889,12 +892,12 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
889
892
|
status: z.ZodEnum<["active", "interrupted", "unknown"]>;
|
|
890
893
|
}, "strict", z.ZodTypeAny, {
|
|
891
894
|
status: "unknown" | "active" | "interrupted";
|
|
892
|
-
sourceSequence: number;
|
|
893
895
|
verbatimRequest: string;
|
|
896
|
+
sourceSequence: number;
|
|
894
897
|
}, {
|
|
895
898
|
status: "unknown" | "active" | "interrupted";
|
|
896
|
-
sourceSequence: number;
|
|
897
899
|
verbatimRequest: string;
|
|
900
|
+
sourceSequence: number;
|
|
898
901
|
}>>>;
|
|
899
902
|
constraints: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
900
903
|
quote: z.ZodString;
|
|
@@ -1079,8 +1082,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1079
1082
|
}, "strict", z.ZodTypeAny, {
|
|
1080
1083
|
sessionId: number;
|
|
1081
1084
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
1082
|
-
workdir: string;
|
|
1083
1085
|
managerInstanceId: string;
|
|
1086
|
+
workdir: string;
|
|
1084
1087
|
recoverability: "unavailable" | "live" | "stale";
|
|
1085
1088
|
commandPreview: string;
|
|
1086
1089
|
observedAt: string;
|
|
@@ -1091,8 +1094,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1091
1094
|
}, {
|
|
1092
1095
|
sessionId: number;
|
|
1093
1096
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
1094
|
-
workdir: string;
|
|
1095
1097
|
managerInstanceId: string;
|
|
1098
|
+
workdir: string;
|
|
1096
1099
|
recoverability: "unavailable" | "live" | "stale";
|
|
1097
1100
|
commandPreview: string;
|
|
1098
1101
|
observedAt: string;
|
|
@@ -1117,20 +1120,20 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1117
1120
|
}>>, "many">;
|
|
1118
1121
|
explicitSkillNames: z.ZodArray<z.ZodString, "many">;
|
|
1119
1122
|
}, "strict", z.ZodTypeAny, {
|
|
1123
|
+
cwd: string;
|
|
1120
1124
|
skills: Readonly<{
|
|
1121
1125
|
name: string;
|
|
1122
1126
|
source: "config" | "user" | "agent" | "project";
|
|
1123
1127
|
}>[];
|
|
1124
|
-
cwd: string;
|
|
1125
1128
|
stableRuleIds: string[];
|
|
1126
1129
|
explicitSkillNames: string[];
|
|
1127
1130
|
systemPromptSha256?: string | undefined;
|
|
1128
1131
|
}, {
|
|
1132
|
+
cwd: string;
|
|
1129
1133
|
skills: Readonly<{
|
|
1130
1134
|
name: string;
|
|
1131
1135
|
source: "config" | "user" | "agent" | "project";
|
|
1132
1136
|
}>[];
|
|
1133
|
-
cwd: string;
|
|
1134
1137
|
stableRuleIds: string[];
|
|
1135
1138
|
explicitSkillNames: string[];
|
|
1136
1139
|
systemPromptSha256?: string | undefined;
|
|
@@ -1172,11 +1175,11 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1172
1175
|
createdAt: string;
|
|
1173
1176
|
generation: number;
|
|
1174
1177
|
context: Readonly<{
|
|
1178
|
+
cwd: string;
|
|
1175
1179
|
skills: Readonly<{
|
|
1176
1180
|
name: string;
|
|
1177
1181
|
source: "config" | "user" | "agent" | "project";
|
|
1178
1182
|
}>[];
|
|
1179
|
-
cwd: string;
|
|
1180
1183
|
stableRuleIds: string[];
|
|
1181
1184
|
explicitSkillNames: string[];
|
|
1182
1185
|
systemPromptSha256?: string | undefined;
|
|
@@ -1233,8 +1236,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1233
1236
|
runningWork: Readonly<{
|
|
1234
1237
|
sessionId: number;
|
|
1235
1238
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
1236
|
-
workdir: string;
|
|
1237
1239
|
managerInstanceId: string;
|
|
1240
|
+
workdir: string;
|
|
1238
1241
|
recoverability: "unavailable" | "live" | "stale";
|
|
1239
1242
|
commandPreview: string;
|
|
1240
1243
|
observedAt: string;
|
|
@@ -1256,8 +1259,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1256
1259
|
}>;
|
|
1257
1260
|
goal?: Readonly<{
|
|
1258
1261
|
status: "unknown" | "active" | "interrupted";
|
|
1259
|
-
sourceSequence: number;
|
|
1260
1262
|
verbatimRequest: string;
|
|
1263
|
+
sourceSequence: number;
|
|
1261
1264
|
}> | undefined;
|
|
1262
1265
|
previousCheckpointId?: (string & z.BRAND<"CompactionCheckpointId">) | undefined;
|
|
1263
1266
|
}, {
|
|
@@ -1266,11 +1269,11 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1266
1269
|
createdAt: string;
|
|
1267
1270
|
generation: number;
|
|
1268
1271
|
context: Readonly<{
|
|
1272
|
+
cwd: string;
|
|
1269
1273
|
skills: Readonly<{
|
|
1270
1274
|
name: string;
|
|
1271
1275
|
source: "config" | "user" | "agent" | "project";
|
|
1272
1276
|
}>[];
|
|
1273
|
-
cwd: string;
|
|
1274
1277
|
stableRuleIds: string[];
|
|
1275
1278
|
explicitSkillNames: string[];
|
|
1276
1279
|
systemPromptSha256?: string | undefined;
|
|
@@ -1327,8 +1330,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1327
1330
|
runningWork: Readonly<{
|
|
1328
1331
|
sessionId: number;
|
|
1329
1332
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
1330
|
-
workdir: string;
|
|
1331
1333
|
managerInstanceId: string;
|
|
1334
|
+
workdir: string;
|
|
1332
1335
|
recoverability: "unavailable" | "live" | "stale";
|
|
1333
1336
|
commandPreview: string;
|
|
1334
1337
|
observedAt: string;
|
|
@@ -1350,8 +1353,8 @@ export declare const compactionCheckpointV1Schema: z.ZodReadonly<z.ZodObject<{
|
|
|
1350
1353
|
}>;
|
|
1351
1354
|
goal?: Readonly<{
|
|
1352
1355
|
status: "unknown" | "active" | "interrupted";
|
|
1353
|
-
sourceSequence: number;
|
|
1354
1356
|
verbatimRequest: string;
|
|
1357
|
+
sourceSequence: number;
|
|
1355
1358
|
}> | undefined;
|
|
1356
1359
|
previousCheckpointId?: string | undefined;
|
|
1357
1360
|
}>>;
|
|
@@ -1418,8 +1421,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1418
1421
|
}>>;
|
|
1419
1422
|
semanticState: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1420
1423
|
version: z.ZodLiteral<1>;
|
|
1424
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
1421
1425
|
goal: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
1422
1426
|
id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
|
|
1427
|
+
harnessKey: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
|
|
1423
1429
|
text: z.ZodString;
|
|
1424
1430
|
provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1425
1431
|
kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
|
|
@@ -1433,11 +1439,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1433
1439
|
}, "strict", z.ZodTypeAny, {
|
|
1434
1440
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1435
1441
|
sessionId: number | null;
|
|
1442
|
+
checkpointId: string | null;
|
|
1436
1443
|
messageSequence: number | null;
|
|
1437
1444
|
toolExecutionId: string | null;
|
|
1438
1445
|
resourceKey: string | null;
|
|
1439
1446
|
managerInstanceId: string | null;
|
|
1440
|
-
checkpointId: string | null;
|
|
1441
1447
|
snapshotIndex: number | null;
|
|
1442
1448
|
}, {
|
|
1443
1449
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1451,11 +1457,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1451
1457
|
}>, {
|
|
1452
1458
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1453
1459
|
sessionId: number | null;
|
|
1460
|
+
checkpointId: string | null;
|
|
1454
1461
|
messageSequence: number | null;
|
|
1455
1462
|
toolExecutionId: string | null;
|
|
1456
1463
|
resourceKey: string | null;
|
|
1457
1464
|
managerInstanceId: string | null;
|
|
1458
|
-
checkpointId: string | null;
|
|
1459
1465
|
snapshotIndex: number | null;
|
|
1460
1466
|
}, {
|
|
1461
1467
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1471,17 +1477,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1471
1477
|
}, "strict", z.ZodTypeAny, {
|
|
1472
1478
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1473
1479
|
text: string;
|
|
1474
|
-
sourceQuotes: string[];
|
|
1475
1480
|
provenance: Readonly<{
|
|
1476
1481
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1477
1482
|
sessionId: number | null;
|
|
1483
|
+
checkpointId: string | null;
|
|
1478
1484
|
messageSequence: number | null;
|
|
1479
1485
|
toolExecutionId: string | null;
|
|
1480
1486
|
resourceKey: string | null;
|
|
1481
1487
|
managerInstanceId: string | null;
|
|
1482
|
-
checkpointId: string | null;
|
|
1483
1488
|
snapshotIndex: number | null;
|
|
1484
1489
|
}>[];
|
|
1490
|
+
sourceQuotes: string[];
|
|
1491
|
+
harnessKey?: string | undefined;
|
|
1492
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
1485
1493
|
}, {
|
|
1486
1494
|
id: string;
|
|
1487
1495
|
text: string;
|
|
@@ -1495,10 +1503,14 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1495
1503
|
checkpointId?: string | null | undefined;
|
|
1496
1504
|
snapshotIndex?: number | null | undefined;
|
|
1497
1505
|
}>[];
|
|
1506
|
+
harnessKey?: string | undefined;
|
|
1507
|
+
relatedItemId?: string | undefined;
|
|
1498
1508
|
sourceQuotes?: string[] | undefined;
|
|
1499
1509
|
}>>>;
|
|
1500
1510
|
constraints: z.ZodDefault<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1501
1511
|
id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
|
|
1512
|
+
harnessKey: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
|
|
1502
1514
|
text: z.ZodString;
|
|
1503
1515
|
provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1504
1516
|
kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
|
|
@@ -1512,11 +1524,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1512
1524
|
}, "strict", z.ZodTypeAny, {
|
|
1513
1525
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1514
1526
|
sessionId: number | null;
|
|
1527
|
+
checkpointId: string | null;
|
|
1515
1528
|
messageSequence: number | null;
|
|
1516
1529
|
toolExecutionId: string | null;
|
|
1517
1530
|
resourceKey: string | null;
|
|
1518
1531
|
managerInstanceId: string | null;
|
|
1519
|
-
checkpointId: string | null;
|
|
1520
1532
|
snapshotIndex: number | null;
|
|
1521
1533
|
}, {
|
|
1522
1534
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1530,11 +1542,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1530
1542
|
}>, {
|
|
1531
1543
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1532
1544
|
sessionId: number | null;
|
|
1545
|
+
checkpointId: string | null;
|
|
1533
1546
|
messageSequence: number | null;
|
|
1534
1547
|
toolExecutionId: string | null;
|
|
1535
1548
|
resourceKey: string | null;
|
|
1536
1549
|
managerInstanceId: string | null;
|
|
1537
|
-
checkpointId: string | null;
|
|
1538
1550
|
snapshotIndex: number | null;
|
|
1539
1551
|
}, {
|
|
1540
1552
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1550,17 +1562,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1550
1562
|
}, "strict", z.ZodTypeAny, {
|
|
1551
1563
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1552
1564
|
text: string;
|
|
1553
|
-
sourceQuotes: string[];
|
|
1554
1565
|
provenance: Readonly<{
|
|
1555
1566
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1556
1567
|
sessionId: number | null;
|
|
1568
|
+
checkpointId: string | null;
|
|
1557
1569
|
messageSequence: number | null;
|
|
1558
1570
|
toolExecutionId: string | null;
|
|
1559
1571
|
resourceKey: string | null;
|
|
1560
1572
|
managerInstanceId: string | null;
|
|
1561
|
-
checkpointId: string | null;
|
|
1562
1573
|
snapshotIndex: number | null;
|
|
1563
1574
|
}>[];
|
|
1575
|
+
sourceQuotes: string[];
|
|
1576
|
+
harnessKey?: string | undefined;
|
|
1577
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
1564
1578
|
}, {
|
|
1565
1579
|
id: string;
|
|
1566
1580
|
text: string;
|
|
@@ -1574,10 +1588,14 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1574
1588
|
checkpointId?: string | null | undefined;
|
|
1575
1589
|
snapshotIndex?: number | null | undefined;
|
|
1576
1590
|
}>[];
|
|
1591
|
+
harnessKey?: string | undefined;
|
|
1592
|
+
relatedItemId?: string | undefined;
|
|
1577
1593
|
sourceQuotes?: string[] | undefined;
|
|
1578
1594
|
}>>, "many">>;
|
|
1579
1595
|
decisions: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1580
1596
|
id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
|
|
1597
|
+
harnessKey: z.ZodOptional<z.ZodString>;
|
|
1598
|
+
relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
|
|
1581
1599
|
text: z.ZodString;
|
|
1582
1600
|
provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1583
1601
|
kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
|
|
@@ -1591,11 +1609,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1591
1609
|
}, "strict", z.ZodTypeAny, {
|
|
1592
1610
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1593
1611
|
sessionId: number | null;
|
|
1612
|
+
checkpointId: string | null;
|
|
1594
1613
|
messageSequence: number | null;
|
|
1595
1614
|
toolExecutionId: string | null;
|
|
1596
1615
|
resourceKey: string | null;
|
|
1597
1616
|
managerInstanceId: string | null;
|
|
1598
|
-
checkpointId: string | null;
|
|
1599
1617
|
snapshotIndex: number | null;
|
|
1600
1618
|
}, {
|
|
1601
1619
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1609,11 +1627,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1609
1627
|
}>, {
|
|
1610
1628
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1611
1629
|
sessionId: number | null;
|
|
1630
|
+
checkpointId: string | null;
|
|
1612
1631
|
messageSequence: number | null;
|
|
1613
1632
|
toolExecutionId: string | null;
|
|
1614
1633
|
resourceKey: string | null;
|
|
1615
1634
|
managerInstanceId: string | null;
|
|
1616
|
-
checkpointId: string | null;
|
|
1617
1635
|
snapshotIndex: number | null;
|
|
1618
1636
|
}, {
|
|
1619
1637
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1629,17 +1647,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1629
1647
|
}, "strict", z.ZodTypeAny, {
|
|
1630
1648
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1631
1649
|
text: string;
|
|
1632
|
-
sourceQuotes: string[];
|
|
1633
1650
|
provenance: Readonly<{
|
|
1634
1651
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1635
1652
|
sessionId: number | null;
|
|
1653
|
+
checkpointId: string | null;
|
|
1636
1654
|
messageSequence: number | null;
|
|
1637
1655
|
toolExecutionId: string | null;
|
|
1638
1656
|
resourceKey: string | null;
|
|
1639
1657
|
managerInstanceId: string | null;
|
|
1640
|
-
checkpointId: string | null;
|
|
1641
1658
|
snapshotIndex: number | null;
|
|
1642
1659
|
}>[];
|
|
1660
|
+
sourceQuotes: string[];
|
|
1661
|
+
harnessKey?: string | undefined;
|
|
1662
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
1643
1663
|
}, {
|
|
1644
1664
|
id: string;
|
|
1645
1665
|
text: string;
|
|
@@ -1653,10 +1673,14 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1653
1673
|
checkpointId?: string | null | undefined;
|
|
1654
1674
|
snapshotIndex?: number | null | undefined;
|
|
1655
1675
|
}>[];
|
|
1676
|
+
harnessKey?: string | undefined;
|
|
1677
|
+
relatedItemId?: string | undefined;
|
|
1656
1678
|
sourceQuotes?: string[] | undefined;
|
|
1657
1679
|
}>>, "many">;
|
|
1658
1680
|
completedWork: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1659
1681
|
id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
|
|
1682
|
+
harnessKey: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
|
|
1660
1684
|
text: z.ZodString;
|
|
1661
1685
|
provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1662
1686
|
kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
|
|
@@ -1670,11 +1694,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1670
1694
|
}, "strict", z.ZodTypeAny, {
|
|
1671
1695
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1672
1696
|
sessionId: number | null;
|
|
1697
|
+
checkpointId: string | null;
|
|
1673
1698
|
messageSequence: number | null;
|
|
1674
1699
|
toolExecutionId: string | null;
|
|
1675
1700
|
resourceKey: string | null;
|
|
1676
1701
|
managerInstanceId: string | null;
|
|
1677
|
-
checkpointId: string | null;
|
|
1678
1702
|
snapshotIndex: number | null;
|
|
1679
1703
|
}, {
|
|
1680
1704
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1688,11 +1712,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1688
1712
|
}>, {
|
|
1689
1713
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1690
1714
|
sessionId: number | null;
|
|
1715
|
+
checkpointId: string | null;
|
|
1691
1716
|
messageSequence: number | null;
|
|
1692
1717
|
toolExecutionId: string | null;
|
|
1693
1718
|
resourceKey: string | null;
|
|
1694
1719
|
managerInstanceId: string | null;
|
|
1695
|
-
checkpointId: string | null;
|
|
1696
1720
|
snapshotIndex: number | null;
|
|
1697
1721
|
}, {
|
|
1698
1722
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1708,17 +1732,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1708
1732
|
}, "strict", z.ZodTypeAny, {
|
|
1709
1733
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1710
1734
|
text: string;
|
|
1711
|
-
sourceQuotes: string[];
|
|
1712
1735
|
provenance: Readonly<{
|
|
1713
1736
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1714
1737
|
sessionId: number | null;
|
|
1738
|
+
checkpointId: string | null;
|
|
1715
1739
|
messageSequence: number | null;
|
|
1716
1740
|
toolExecutionId: string | null;
|
|
1717
1741
|
resourceKey: string | null;
|
|
1718
1742
|
managerInstanceId: string | null;
|
|
1719
|
-
checkpointId: string | null;
|
|
1720
1743
|
snapshotIndex: number | null;
|
|
1721
1744
|
}>[];
|
|
1745
|
+
sourceQuotes: string[];
|
|
1746
|
+
harnessKey?: string | undefined;
|
|
1747
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
1722
1748
|
}, {
|
|
1723
1749
|
id: string;
|
|
1724
1750
|
text: string;
|
|
@@ -1732,10 +1758,14 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1732
1758
|
checkpointId?: string | null | undefined;
|
|
1733
1759
|
snapshotIndex?: number | null | undefined;
|
|
1734
1760
|
}>[];
|
|
1761
|
+
harnessKey?: string | undefined;
|
|
1762
|
+
relatedItemId?: string | undefined;
|
|
1735
1763
|
sourceQuotes?: string[] | undefined;
|
|
1736
1764
|
}>>, "many">;
|
|
1737
1765
|
pendingWork: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1738
1766
|
id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
|
|
1767
|
+
harnessKey: z.ZodOptional<z.ZodString>;
|
|
1768
|
+
relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
|
|
1739
1769
|
text: z.ZodString;
|
|
1740
1770
|
provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1741
1771
|
kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
|
|
@@ -1749,11 +1779,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1749
1779
|
}, "strict", z.ZodTypeAny, {
|
|
1750
1780
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1751
1781
|
sessionId: number | null;
|
|
1782
|
+
checkpointId: string | null;
|
|
1752
1783
|
messageSequence: number | null;
|
|
1753
1784
|
toolExecutionId: string | null;
|
|
1754
1785
|
resourceKey: string | null;
|
|
1755
1786
|
managerInstanceId: string | null;
|
|
1756
|
-
checkpointId: string | null;
|
|
1757
1787
|
snapshotIndex: number | null;
|
|
1758
1788
|
}, {
|
|
1759
1789
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1767,11 +1797,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1767
1797
|
}>, {
|
|
1768
1798
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1769
1799
|
sessionId: number | null;
|
|
1800
|
+
checkpointId: string | null;
|
|
1770
1801
|
messageSequence: number | null;
|
|
1771
1802
|
toolExecutionId: string | null;
|
|
1772
1803
|
resourceKey: string | null;
|
|
1773
1804
|
managerInstanceId: string | null;
|
|
1774
|
-
checkpointId: string | null;
|
|
1775
1805
|
snapshotIndex: number | null;
|
|
1776
1806
|
}, {
|
|
1777
1807
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1787,17 +1817,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1787
1817
|
}, "strict", z.ZodTypeAny, {
|
|
1788
1818
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
1789
1819
|
text: string;
|
|
1790
|
-
sourceQuotes: string[];
|
|
1791
1820
|
provenance: Readonly<{
|
|
1792
1821
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1793
1822
|
sessionId: number | null;
|
|
1823
|
+
checkpointId: string | null;
|
|
1794
1824
|
messageSequence: number | null;
|
|
1795
1825
|
toolExecutionId: string | null;
|
|
1796
1826
|
resourceKey: string | null;
|
|
1797
1827
|
managerInstanceId: string | null;
|
|
1798
|
-
checkpointId: string | null;
|
|
1799
1828
|
snapshotIndex: number | null;
|
|
1800
1829
|
}>[];
|
|
1830
|
+
sourceQuotes: string[];
|
|
1831
|
+
harnessKey?: string | undefined;
|
|
1832
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
1801
1833
|
}, {
|
|
1802
1834
|
id: string;
|
|
1803
1835
|
text: string;
|
|
@@ -1811,6 +1843,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1811
1843
|
checkpointId?: string | null | undefined;
|
|
1812
1844
|
snapshotIndex?: number | null | undefined;
|
|
1813
1845
|
}>[];
|
|
1846
|
+
harnessKey?: string | undefined;
|
|
1847
|
+
relatedItemId?: string | undefined;
|
|
1814
1848
|
sourceQuotes?: string[] | undefined;
|
|
1815
1849
|
}>>, "many">;
|
|
1816
1850
|
resources: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
@@ -1828,11 +1862,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1828
1862
|
}, "strict", z.ZodTypeAny, {
|
|
1829
1863
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1830
1864
|
sessionId: number | null;
|
|
1865
|
+
checkpointId: string | null;
|
|
1831
1866
|
messageSequence: number | null;
|
|
1832
1867
|
toolExecutionId: string | null;
|
|
1833
1868
|
resourceKey: string | null;
|
|
1834
1869
|
managerInstanceId: string | null;
|
|
1835
|
-
checkpointId: string | null;
|
|
1836
1870
|
snapshotIndex: number | null;
|
|
1837
1871
|
}, {
|
|
1838
1872
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1846,11 +1880,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1846
1880
|
}>, {
|
|
1847
1881
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1848
1882
|
sessionId: number | null;
|
|
1883
|
+
checkpointId: string | null;
|
|
1849
1884
|
messageSequence: number | null;
|
|
1850
1885
|
toolExecutionId: string | null;
|
|
1851
1886
|
resourceKey: string | null;
|
|
1852
1887
|
managerInstanceId: string | null;
|
|
1853
|
-
checkpointId: string | null;
|
|
1854
1888
|
snapshotIndex: number | null;
|
|
1855
1889
|
}, {
|
|
1856
1890
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1868,11 +1902,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1868
1902
|
provenance: Readonly<{
|
|
1869
1903
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1870
1904
|
sessionId: number | null;
|
|
1905
|
+
checkpointId: string | null;
|
|
1871
1906
|
messageSequence: number | null;
|
|
1872
1907
|
toolExecutionId: string | null;
|
|
1873
1908
|
resourceKey: string | null;
|
|
1874
1909
|
managerInstanceId: string | null;
|
|
1875
|
-
checkpointId: string | null;
|
|
1876
1910
|
snapshotIndex: number | null;
|
|
1877
1911
|
}>[];
|
|
1878
1912
|
}, {
|
|
@@ -1905,11 +1939,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1905
1939
|
}, "strict", z.ZodTypeAny, {
|
|
1906
1940
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1907
1941
|
sessionId: number | null;
|
|
1942
|
+
checkpointId: string | null;
|
|
1908
1943
|
messageSequence: number | null;
|
|
1909
1944
|
toolExecutionId: string | null;
|
|
1910
1945
|
resourceKey: string | null;
|
|
1911
1946
|
managerInstanceId: string | null;
|
|
1912
|
-
checkpointId: string | null;
|
|
1913
1947
|
snapshotIndex: number | null;
|
|
1914
1948
|
}, {
|
|
1915
1949
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1923,11 +1957,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1923
1957
|
}>, {
|
|
1924
1958
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1925
1959
|
sessionId: number | null;
|
|
1960
|
+
checkpointId: string | null;
|
|
1926
1961
|
messageSequence: number | null;
|
|
1927
1962
|
toolExecutionId: string | null;
|
|
1928
1963
|
resourceKey: string | null;
|
|
1929
1964
|
managerInstanceId: string | null;
|
|
1930
|
-
checkpointId: string | null;
|
|
1931
1965
|
snapshotIndex: number | null;
|
|
1932
1966
|
}, {
|
|
1933
1967
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -1946,11 +1980,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1946
1980
|
provenance: Readonly<{
|
|
1947
1981
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1948
1982
|
sessionId: number | null;
|
|
1983
|
+
checkpointId: string | null;
|
|
1949
1984
|
messageSequence: number | null;
|
|
1950
1985
|
toolExecutionId: string | null;
|
|
1951
1986
|
resourceKey: string | null;
|
|
1952
1987
|
managerInstanceId: string | null;
|
|
1953
|
-
checkpointId: string | null;
|
|
1954
1988
|
snapshotIndex: number | null;
|
|
1955
1989
|
}>[];
|
|
1956
1990
|
}, {
|
|
@@ -1970,6 +2004,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1970
2004
|
}>>, "many">;
|
|
1971
2005
|
uncertainties: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1972
2006
|
id: z.ZodBranded<z.ZodString, "CompactionSemanticItemId">;
|
|
2007
|
+
harnessKey: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
relatedItemId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionSemanticItemId">>;
|
|
1973
2009
|
text: z.ZodString;
|
|
1974
2010
|
provenance: z.ZodArray<z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
1975
2011
|
kind: z.ZodEnum<["message", "tool_execution", "resource", "running_session", "legacy_snapshot"]>;
|
|
@@ -1983,11 +2019,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
1983
2019
|
}, "strict", z.ZodTypeAny, {
|
|
1984
2020
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
1985
2021
|
sessionId: number | null;
|
|
2022
|
+
checkpointId: string | null;
|
|
1986
2023
|
messageSequence: number | null;
|
|
1987
2024
|
toolExecutionId: string | null;
|
|
1988
2025
|
resourceKey: string | null;
|
|
1989
2026
|
managerInstanceId: string | null;
|
|
1990
|
-
checkpointId: string | null;
|
|
1991
2027
|
snapshotIndex: number | null;
|
|
1992
2028
|
}, {
|
|
1993
2029
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -2001,11 +2037,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2001
2037
|
}>, {
|
|
2002
2038
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2003
2039
|
sessionId: number | null;
|
|
2040
|
+
checkpointId: string | null;
|
|
2004
2041
|
messageSequence: number | null;
|
|
2005
2042
|
toolExecutionId: string | null;
|
|
2006
2043
|
resourceKey: string | null;
|
|
2007
2044
|
managerInstanceId: string | null;
|
|
2008
|
-
checkpointId: string | null;
|
|
2009
2045
|
snapshotIndex: number | null;
|
|
2010
2046
|
}, {
|
|
2011
2047
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
@@ -2021,17 +2057,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2021
2057
|
}, "strict", z.ZodTypeAny, {
|
|
2022
2058
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2023
2059
|
text: string;
|
|
2024
|
-
sourceQuotes: string[];
|
|
2025
2060
|
provenance: Readonly<{
|
|
2026
2061
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2027
2062
|
sessionId: number | null;
|
|
2063
|
+
checkpointId: string | null;
|
|
2028
2064
|
messageSequence: number | null;
|
|
2029
2065
|
toolExecutionId: string | null;
|
|
2030
2066
|
resourceKey: string | null;
|
|
2031
2067
|
managerInstanceId: string | null;
|
|
2032
|
-
checkpointId: string | null;
|
|
2033
2068
|
snapshotIndex: number | null;
|
|
2034
2069
|
}>[];
|
|
2070
|
+
sourceQuotes: string[];
|
|
2071
|
+
harnessKey?: string | undefined;
|
|
2072
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2035
2073
|
}, {
|
|
2036
2074
|
id: string;
|
|
2037
2075
|
text: string;
|
|
@@ -2045,6 +2083,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2045
2083
|
checkpointId?: string | null | undefined;
|
|
2046
2084
|
snapshotIndex?: number | null | undefined;
|
|
2047
2085
|
}>[];
|
|
2086
|
+
harnessKey?: string | undefined;
|
|
2087
|
+
relatedItemId?: string | undefined;
|
|
2048
2088
|
sourceQuotes?: string[] | undefined;
|
|
2049
2089
|
}>>, "many">;
|
|
2050
2090
|
prunedItemCounts: z.ZodDefault<z.ZodReadonly<z.ZodObject<{
|
|
@@ -2080,88 +2120,98 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2080
2120
|
provenance: Readonly<{
|
|
2081
2121
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2082
2122
|
sessionId: number | null;
|
|
2123
|
+
checkpointId: string | null;
|
|
2083
2124
|
messageSequence: number | null;
|
|
2084
2125
|
toolExecutionId: string | null;
|
|
2085
2126
|
resourceKey: string | null;
|
|
2086
2127
|
managerInstanceId: string | null;
|
|
2087
|
-
checkpointId: string | null;
|
|
2088
2128
|
snapshotIndex: number | null;
|
|
2089
2129
|
}>[];
|
|
2090
2130
|
}>[];
|
|
2091
2131
|
goal: Readonly<{
|
|
2092
2132
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2093
2133
|
text: string;
|
|
2094
|
-
sourceQuotes: string[];
|
|
2095
2134
|
provenance: Readonly<{
|
|
2096
2135
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2097
2136
|
sessionId: number | null;
|
|
2137
|
+
checkpointId: string | null;
|
|
2098
2138
|
messageSequence: number | null;
|
|
2099
2139
|
toolExecutionId: string | null;
|
|
2100
2140
|
resourceKey: string | null;
|
|
2101
2141
|
managerInstanceId: string | null;
|
|
2102
|
-
checkpointId: string | null;
|
|
2103
2142
|
snapshotIndex: number | null;
|
|
2104
2143
|
}>[];
|
|
2144
|
+
sourceQuotes: string[];
|
|
2145
|
+
harnessKey?: string | undefined;
|
|
2146
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2105
2147
|
}> | null;
|
|
2106
2148
|
constraints: Readonly<{
|
|
2107
2149
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2108
2150
|
text: string;
|
|
2109
|
-
sourceQuotes: string[];
|
|
2110
2151
|
provenance: Readonly<{
|
|
2111
2152
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2112
2153
|
sessionId: number | null;
|
|
2154
|
+
checkpointId: string | null;
|
|
2113
2155
|
messageSequence: number | null;
|
|
2114
2156
|
toolExecutionId: string | null;
|
|
2115
2157
|
resourceKey: string | null;
|
|
2116
2158
|
managerInstanceId: string | null;
|
|
2117
|
-
checkpointId: string | null;
|
|
2118
2159
|
snapshotIndex: number | null;
|
|
2119
2160
|
}>[];
|
|
2161
|
+
sourceQuotes: string[];
|
|
2162
|
+
harnessKey?: string | undefined;
|
|
2163
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2120
2164
|
}>[];
|
|
2121
2165
|
decisions: Readonly<{
|
|
2122
2166
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2123
2167
|
text: string;
|
|
2124
|
-
sourceQuotes: string[];
|
|
2125
2168
|
provenance: Readonly<{
|
|
2126
2169
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2127
2170
|
sessionId: number | null;
|
|
2171
|
+
checkpointId: string | null;
|
|
2128
2172
|
messageSequence: number | null;
|
|
2129
2173
|
toolExecutionId: string | null;
|
|
2130
2174
|
resourceKey: string | null;
|
|
2131
2175
|
managerInstanceId: string | null;
|
|
2132
|
-
checkpointId: string | null;
|
|
2133
2176
|
snapshotIndex: number | null;
|
|
2134
2177
|
}>[];
|
|
2178
|
+
sourceQuotes: string[];
|
|
2179
|
+
harnessKey?: string | undefined;
|
|
2180
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2135
2181
|
}>[];
|
|
2136
2182
|
completedWork: Readonly<{
|
|
2137
2183
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2138
2184
|
text: string;
|
|
2139
|
-
sourceQuotes: string[];
|
|
2140
2185
|
provenance: Readonly<{
|
|
2141
2186
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2142
2187
|
sessionId: number | null;
|
|
2188
|
+
checkpointId: string | null;
|
|
2143
2189
|
messageSequence: number | null;
|
|
2144
2190
|
toolExecutionId: string | null;
|
|
2145
2191
|
resourceKey: string | null;
|
|
2146
2192
|
managerInstanceId: string | null;
|
|
2147
|
-
checkpointId: string | null;
|
|
2148
2193
|
snapshotIndex: number | null;
|
|
2149
2194
|
}>[];
|
|
2195
|
+
sourceQuotes: string[];
|
|
2196
|
+
harnessKey?: string | undefined;
|
|
2197
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2150
2198
|
}>[];
|
|
2151
2199
|
pendingWork: Readonly<{
|
|
2152
2200
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2153
2201
|
text: string;
|
|
2154
|
-
sourceQuotes: string[];
|
|
2155
2202
|
provenance: Readonly<{
|
|
2156
2203
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2157
2204
|
sessionId: number | null;
|
|
2205
|
+
checkpointId: string | null;
|
|
2158
2206
|
messageSequence: number | null;
|
|
2159
2207
|
toolExecutionId: string | null;
|
|
2160
2208
|
resourceKey: string | null;
|
|
2161
2209
|
managerInstanceId: string | null;
|
|
2162
|
-
checkpointId: string | null;
|
|
2163
2210
|
snapshotIndex: number | null;
|
|
2164
2211
|
}>[];
|
|
2212
|
+
sourceQuotes: string[];
|
|
2213
|
+
harnessKey?: string | undefined;
|
|
2214
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2165
2215
|
}>[];
|
|
2166
2216
|
runningSessions: Readonly<{
|
|
2167
2217
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
@@ -2170,28 +2220,30 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2170
2220
|
provenance: Readonly<{
|
|
2171
2221
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2172
2222
|
sessionId: number | null;
|
|
2223
|
+
checkpointId: string | null;
|
|
2173
2224
|
messageSequence: number | null;
|
|
2174
2225
|
toolExecutionId: string | null;
|
|
2175
2226
|
resourceKey: string | null;
|
|
2176
2227
|
managerInstanceId: string | null;
|
|
2177
|
-
checkpointId: string | null;
|
|
2178
2228
|
snapshotIndex: number | null;
|
|
2179
2229
|
}>[];
|
|
2180
2230
|
}>[];
|
|
2181
2231
|
uncertainties: Readonly<{
|
|
2182
2232
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2183
2233
|
text: string;
|
|
2184
|
-
sourceQuotes: string[];
|
|
2185
2234
|
provenance: Readonly<{
|
|
2186
2235
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2187
2236
|
sessionId: number | null;
|
|
2237
|
+
checkpointId: string | null;
|
|
2188
2238
|
messageSequence: number | null;
|
|
2189
2239
|
toolExecutionId: string | null;
|
|
2190
2240
|
resourceKey: string | null;
|
|
2191
2241
|
managerInstanceId: string | null;
|
|
2192
|
-
checkpointId: string | null;
|
|
2193
2242
|
snapshotIndex: number | null;
|
|
2194
2243
|
}>[];
|
|
2244
|
+
sourceQuotes: string[];
|
|
2245
|
+
harnessKey?: string | undefined;
|
|
2246
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2195
2247
|
}>[];
|
|
2196
2248
|
prunedItemCounts: Readonly<{
|
|
2197
2249
|
resource: number;
|
|
@@ -2202,6 +2254,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2202
2254
|
pending_work: number;
|
|
2203
2255
|
uncertainty: number;
|
|
2204
2256
|
}>;
|
|
2257
|
+
scopeId?: string | undefined;
|
|
2205
2258
|
}, {
|
|
2206
2259
|
version: 1;
|
|
2207
2260
|
resources: Readonly<{
|
|
@@ -2231,6 +2284,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2231
2284
|
checkpointId?: string | null | undefined;
|
|
2232
2285
|
snapshotIndex?: number | null | undefined;
|
|
2233
2286
|
}>[];
|
|
2287
|
+
harnessKey?: string | undefined;
|
|
2288
|
+
relatedItemId?: string | undefined;
|
|
2234
2289
|
sourceQuotes?: string[] | undefined;
|
|
2235
2290
|
}> | null;
|
|
2236
2291
|
decisions: Readonly<{
|
|
@@ -2246,6 +2301,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2246
2301
|
checkpointId?: string | null | undefined;
|
|
2247
2302
|
snapshotIndex?: number | null | undefined;
|
|
2248
2303
|
}>[];
|
|
2304
|
+
harnessKey?: string | undefined;
|
|
2305
|
+
relatedItemId?: string | undefined;
|
|
2249
2306
|
sourceQuotes?: string[] | undefined;
|
|
2250
2307
|
}>[];
|
|
2251
2308
|
completedWork: Readonly<{
|
|
@@ -2261,6 +2318,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2261
2318
|
checkpointId?: string | null | undefined;
|
|
2262
2319
|
snapshotIndex?: number | null | undefined;
|
|
2263
2320
|
}>[];
|
|
2321
|
+
harnessKey?: string | undefined;
|
|
2322
|
+
relatedItemId?: string | undefined;
|
|
2264
2323
|
sourceQuotes?: string[] | undefined;
|
|
2265
2324
|
}>[];
|
|
2266
2325
|
pendingWork: Readonly<{
|
|
@@ -2276,6 +2335,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2276
2335
|
checkpointId?: string | null | undefined;
|
|
2277
2336
|
snapshotIndex?: number | null | undefined;
|
|
2278
2337
|
}>[];
|
|
2338
|
+
harnessKey?: string | undefined;
|
|
2339
|
+
relatedItemId?: string | undefined;
|
|
2279
2340
|
sourceQuotes?: string[] | undefined;
|
|
2280
2341
|
}>[];
|
|
2281
2342
|
runningSessions: Readonly<{
|
|
@@ -2306,8 +2367,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2306
2367
|
checkpointId?: string | null | undefined;
|
|
2307
2368
|
snapshotIndex?: number | null | undefined;
|
|
2308
2369
|
}>[];
|
|
2370
|
+
harnessKey?: string | undefined;
|
|
2371
|
+
relatedItemId?: string | undefined;
|
|
2309
2372
|
sourceQuotes?: string[] | undefined;
|
|
2310
2373
|
}>[];
|
|
2374
|
+
scopeId?: string | undefined;
|
|
2311
2375
|
constraints?: Readonly<{
|
|
2312
2376
|
id: string;
|
|
2313
2377
|
text: string;
|
|
@@ -2321,6 +2385,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2321
2385
|
checkpointId?: string | null | undefined;
|
|
2322
2386
|
snapshotIndex?: number | null | undefined;
|
|
2323
2387
|
}>[];
|
|
2388
|
+
harnessKey?: string | undefined;
|
|
2389
|
+
relatedItemId?: string | undefined;
|
|
2324
2390
|
sourceQuotes?: string[] | undefined;
|
|
2325
2391
|
}>[] | undefined;
|
|
2326
2392
|
prunedItemCounts?: Readonly<{
|
|
@@ -2340,88 +2406,98 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2340
2406
|
provenance: Readonly<{
|
|
2341
2407
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2342
2408
|
sessionId: number | null;
|
|
2409
|
+
checkpointId: string | null;
|
|
2343
2410
|
messageSequence: number | null;
|
|
2344
2411
|
toolExecutionId: string | null;
|
|
2345
2412
|
resourceKey: string | null;
|
|
2346
2413
|
managerInstanceId: string | null;
|
|
2347
|
-
checkpointId: string | null;
|
|
2348
2414
|
snapshotIndex: number | null;
|
|
2349
2415
|
}>[];
|
|
2350
2416
|
}>[];
|
|
2351
2417
|
goal: Readonly<{
|
|
2352
2418
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2353
2419
|
text: string;
|
|
2354
|
-
sourceQuotes: string[];
|
|
2355
2420
|
provenance: Readonly<{
|
|
2356
2421
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2357
2422
|
sessionId: number | null;
|
|
2423
|
+
checkpointId: string | null;
|
|
2358
2424
|
messageSequence: number | null;
|
|
2359
2425
|
toolExecutionId: string | null;
|
|
2360
2426
|
resourceKey: string | null;
|
|
2361
2427
|
managerInstanceId: string | null;
|
|
2362
|
-
checkpointId: string | null;
|
|
2363
2428
|
snapshotIndex: number | null;
|
|
2364
2429
|
}>[];
|
|
2430
|
+
sourceQuotes: string[];
|
|
2431
|
+
harnessKey?: string | undefined;
|
|
2432
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2365
2433
|
}> | null;
|
|
2366
2434
|
constraints: Readonly<{
|
|
2367
2435
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2368
2436
|
text: string;
|
|
2369
|
-
sourceQuotes: string[];
|
|
2370
2437
|
provenance: Readonly<{
|
|
2371
2438
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2372
2439
|
sessionId: number | null;
|
|
2440
|
+
checkpointId: string | null;
|
|
2373
2441
|
messageSequence: number | null;
|
|
2374
2442
|
toolExecutionId: string | null;
|
|
2375
2443
|
resourceKey: string | null;
|
|
2376
2444
|
managerInstanceId: string | null;
|
|
2377
|
-
checkpointId: string | null;
|
|
2378
2445
|
snapshotIndex: number | null;
|
|
2379
2446
|
}>[];
|
|
2447
|
+
sourceQuotes: string[];
|
|
2448
|
+
harnessKey?: string | undefined;
|
|
2449
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2380
2450
|
}>[];
|
|
2381
2451
|
decisions: Readonly<{
|
|
2382
2452
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2383
2453
|
text: string;
|
|
2384
|
-
sourceQuotes: string[];
|
|
2385
2454
|
provenance: Readonly<{
|
|
2386
2455
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2387
2456
|
sessionId: number | null;
|
|
2457
|
+
checkpointId: string | null;
|
|
2388
2458
|
messageSequence: number | null;
|
|
2389
2459
|
toolExecutionId: string | null;
|
|
2390
2460
|
resourceKey: string | null;
|
|
2391
2461
|
managerInstanceId: string | null;
|
|
2392
|
-
checkpointId: string | null;
|
|
2393
2462
|
snapshotIndex: number | null;
|
|
2394
2463
|
}>[];
|
|
2464
|
+
sourceQuotes: string[];
|
|
2465
|
+
harnessKey?: string | undefined;
|
|
2466
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2395
2467
|
}>[];
|
|
2396
2468
|
completedWork: Readonly<{
|
|
2397
2469
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2398
2470
|
text: string;
|
|
2399
|
-
sourceQuotes: string[];
|
|
2400
2471
|
provenance: Readonly<{
|
|
2401
2472
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2402
2473
|
sessionId: number | null;
|
|
2474
|
+
checkpointId: string | null;
|
|
2403
2475
|
messageSequence: number | null;
|
|
2404
2476
|
toolExecutionId: string | null;
|
|
2405
2477
|
resourceKey: string | null;
|
|
2406
2478
|
managerInstanceId: string | null;
|
|
2407
|
-
checkpointId: string | null;
|
|
2408
2479
|
snapshotIndex: number | null;
|
|
2409
2480
|
}>[];
|
|
2481
|
+
sourceQuotes: string[];
|
|
2482
|
+
harnessKey?: string | undefined;
|
|
2483
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2410
2484
|
}>[];
|
|
2411
2485
|
pendingWork: Readonly<{
|
|
2412
2486
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2413
2487
|
text: string;
|
|
2414
|
-
sourceQuotes: string[];
|
|
2415
2488
|
provenance: Readonly<{
|
|
2416
2489
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2417
2490
|
sessionId: number | null;
|
|
2491
|
+
checkpointId: string | null;
|
|
2418
2492
|
messageSequence: number | null;
|
|
2419
2493
|
toolExecutionId: string | null;
|
|
2420
2494
|
resourceKey: string | null;
|
|
2421
2495
|
managerInstanceId: string | null;
|
|
2422
|
-
checkpointId: string | null;
|
|
2423
2496
|
snapshotIndex: number | null;
|
|
2424
2497
|
}>[];
|
|
2498
|
+
sourceQuotes: string[];
|
|
2499
|
+
harnessKey?: string | undefined;
|
|
2500
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2425
2501
|
}>[];
|
|
2426
2502
|
runningSessions: Readonly<{
|
|
2427
2503
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
@@ -2430,28 +2506,30 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2430
2506
|
provenance: Readonly<{
|
|
2431
2507
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2432
2508
|
sessionId: number | null;
|
|
2509
|
+
checkpointId: string | null;
|
|
2433
2510
|
messageSequence: number | null;
|
|
2434
2511
|
toolExecutionId: string | null;
|
|
2435
2512
|
resourceKey: string | null;
|
|
2436
2513
|
managerInstanceId: string | null;
|
|
2437
|
-
checkpointId: string | null;
|
|
2438
2514
|
snapshotIndex: number | null;
|
|
2439
2515
|
}>[];
|
|
2440
2516
|
}>[];
|
|
2441
2517
|
uncertainties: Readonly<{
|
|
2442
2518
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2443
2519
|
text: string;
|
|
2444
|
-
sourceQuotes: string[];
|
|
2445
2520
|
provenance: Readonly<{
|
|
2446
2521
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2447
2522
|
sessionId: number | null;
|
|
2523
|
+
checkpointId: string | null;
|
|
2448
2524
|
messageSequence: number | null;
|
|
2449
2525
|
toolExecutionId: string | null;
|
|
2450
2526
|
resourceKey: string | null;
|
|
2451
2527
|
managerInstanceId: string | null;
|
|
2452
|
-
checkpointId: string | null;
|
|
2453
2528
|
snapshotIndex: number | null;
|
|
2454
2529
|
}>[];
|
|
2530
|
+
sourceQuotes: string[];
|
|
2531
|
+
harnessKey?: string | undefined;
|
|
2532
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
2455
2533
|
}>[];
|
|
2456
2534
|
prunedItemCounts: Readonly<{
|
|
2457
2535
|
resource: number;
|
|
@@ -2462,6 +2540,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2462
2540
|
pending_work: number;
|
|
2463
2541
|
uncertainty: number;
|
|
2464
2542
|
}>;
|
|
2543
|
+
scopeId?: string | undefined;
|
|
2465
2544
|
}, {
|
|
2466
2545
|
version: 1;
|
|
2467
2546
|
resources: Readonly<{
|
|
@@ -2491,6 +2570,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2491
2570
|
checkpointId?: string | null | undefined;
|
|
2492
2571
|
snapshotIndex?: number | null | undefined;
|
|
2493
2572
|
}>[];
|
|
2573
|
+
harnessKey?: string | undefined;
|
|
2574
|
+
relatedItemId?: string | undefined;
|
|
2494
2575
|
sourceQuotes?: string[] | undefined;
|
|
2495
2576
|
}> | null;
|
|
2496
2577
|
decisions: Readonly<{
|
|
@@ -2506,6 +2587,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2506
2587
|
checkpointId?: string | null | undefined;
|
|
2507
2588
|
snapshotIndex?: number | null | undefined;
|
|
2508
2589
|
}>[];
|
|
2590
|
+
harnessKey?: string | undefined;
|
|
2591
|
+
relatedItemId?: string | undefined;
|
|
2509
2592
|
sourceQuotes?: string[] | undefined;
|
|
2510
2593
|
}>[];
|
|
2511
2594
|
completedWork: Readonly<{
|
|
@@ -2521,6 +2604,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2521
2604
|
checkpointId?: string | null | undefined;
|
|
2522
2605
|
snapshotIndex?: number | null | undefined;
|
|
2523
2606
|
}>[];
|
|
2607
|
+
harnessKey?: string | undefined;
|
|
2608
|
+
relatedItemId?: string | undefined;
|
|
2524
2609
|
sourceQuotes?: string[] | undefined;
|
|
2525
2610
|
}>[];
|
|
2526
2611
|
pendingWork: Readonly<{
|
|
@@ -2536,6 +2621,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2536
2621
|
checkpointId?: string | null | undefined;
|
|
2537
2622
|
snapshotIndex?: number | null | undefined;
|
|
2538
2623
|
}>[];
|
|
2624
|
+
harnessKey?: string | undefined;
|
|
2625
|
+
relatedItemId?: string | undefined;
|
|
2539
2626
|
sourceQuotes?: string[] | undefined;
|
|
2540
2627
|
}>[];
|
|
2541
2628
|
runningSessions: Readonly<{
|
|
@@ -2566,8 +2653,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2566
2653
|
checkpointId?: string | null | undefined;
|
|
2567
2654
|
snapshotIndex?: number | null | undefined;
|
|
2568
2655
|
}>[];
|
|
2656
|
+
harnessKey?: string | undefined;
|
|
2657
|
+
relatedItemId?: string | undefined;
|
|
2569
2658
|
sourceQuotes?: string[] | undefined;
|
|
2570
2659
|
}>[];
|
|
2660
|
+
scopeId?: string | undefined;
|
|
2571
2661
|
constraints?: Readonly<{
|
|
2572
2662
|
id: string;
|
|
2573
2663
|
text: string;
|
|
@@ -2581,6 +2671,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2581
2671
|
checkpointId?: string | null | undefined;
|
|
2582
2672
|
snapshotIndex?: number | null | undefined;
|
|
2583
2673
|
}>[];
|
|
2674
|
+
harnessKey?: string | undefined;
|
|
2675
|
+
relatedItemId?: string | undefined;
|
|
2584
2676
|
sourceQuotes?: string[] | undefined;
|
|
2585
2677
|
}>[] | undefined;
|
|
2586
2678
|
prunedItemCounts?: Readonly<{
|
|
@@ -2603,18 +2695,19 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2603
2695
|
messagesThroughSequence: number;
|
|
2604
2696
|
toolExecutionsThroughSequence: number;
|
|
2605
2697
|
}>>>;
|
|
2698
|
+
toolEvidenceCursor: z.ZodOptional<z.ZodNumber>;
|
|
2606
2699
|
goal: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
2607
2700
|
verbatimRequest: z.ZodString;
|
|
2608
2701
|
sourceSequence: z.ZodNumber;
|
|
2609
2702
|
status: z.ZodEnum<["active", "interrupted", "unknown"]>;
|
|
2610
2703
|
}, "strict", z.ZodTypeAny, {
|
|
2611
2704
|
status: "unknown" | "active" | "interrupted";
|
|
2612
|
-
sourceSequence: number;
|
|
2613
2705
|
verbatimRequest: string;
|
|
2706
|
+
sourceSequence: number;
|
|
2614
2707
|
}, {
|
|
2615
2708
|
status: "unknown" | "active" | "interrupted";
|
|
2616
|
-
sourceSequence: number;
|
|
2617
2709
|
verbatimRequest: string;
|
|
2710
|
+
sourceSequence: number;
|
|
2618
2711
|
}>>>;
|
|
2619
2712
|
constraints: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
2620
2713
|
quote: z.ZodString;
|
|
@@ -2799,8 +2892,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2799
2892
|
}, "strict", z.ZodTypeAny, {
|
|
2800
2893
|
sessionId: number;
|
|
2801
2894
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
2802
|
-
workdir: string;
|
|
2803
2895
|
managerInstanceId: string;
|
|
2896
|
+
workdir: string;
|
|
2804
2897
|
recoverability: "unavailable" | "live" | "stale";
|
|
2805
2898
|
commandPreview: string;
|
|
2806
2899
|
observedAt: string;
|
|
@@ -2811,8 +2904,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2811
2904
|
}, {
|
|
2812
2905
|
sessionId: number;
|
|
2813
2906
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
2814
|
-
workdir: string;
|
|
2815
2907
|
managerInstanceId: string;
|
|
2908
|
+
workdir: string;
|
|
2816
2909
|
recoverability: "unavailable" | "live" | "stale";
|
|
2817
2910
|
commandPreview: string;
|
|
2818
2911
|
observedAt: string;
|
|
@@ -2837,20 +2930,20 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2837
2930
|
}>>, "many">;
|
|
2838
2931
|
explicitSkillNames: z.ZodArray<z.ZodString, "many">;
|
|
2839
2932
|
}, "strict", z.ZodTypeAny, {
|
|
2933
|
+
cwd: string;
|
|
2840
2934
|
skills: Readonly<{
|
|
2841
2935
|
name: string;
|
|
2842
2936
|
source: "config" | "user" | "agent" | "project";
|
|
2843
2937
|
}>[];
|
|
2844
|
-
cwd: string;
|
|
2845
2938
|
stableRuleIds: string[];
|
|
2846
2939
|
explicitSkillNames: string[];
|
|
2847
2940
|
systemPromptSha256?: string | undefined;
|
|
2848
2941
|
}, {
|
|
2942
|
+
cwd: string;
|
|
2849
2943
|
skills: Readonly<{
|
|
2850
2944
|
name: string;
|
|
2851
2945
|
source: "config" | "user" | "agent" | "project";
|
|
2852
2946
|
}>[];
|
|
2853
|
-
cwd: string;
|
|
2854
2947
|
stableRuleIds: string[];
|
|
2855
2948
|
explicitSkillNames: string[];
|
|
2856
2949
|
systemPromptSha256?: string | undefined;
|
|
@@ -2892,11 +2985,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2892
2985
|
createdAt: string;
|
|
2893
2986
|
generation: number;
|
|
2894
2987
|
context: Readonly<{
|
|
2988
|
+
cwd: string;
|
|
2895
2989
|
skills: Readonly<{
|
|
2896
2990
|
name: string;
|
|
2897
2991
|
source: "config" | "user" | "agent" | "project";
|
|
2898
2992
|
}>[];
|
|
2899
|
-
cwd: string;
|
|
2900
2993
|
stableRuleIds: string[];
|
|
2901
2994
|
explicitSkillNames: string[];
|
|
2902
2995
|
systemPromptSha256?: string | undefined;
|
|
@@ -2953,8 +3046,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2953
3046
|
runningWork: Readonly<{
|
|
2954
3047
|
sessionId: number;
|
|
2955
3048
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
2956
|
-
workdir: string;
|
|
2957
3049
|
managerInstanceId: string;
|
|
3050
|
+
workdir: string;
|
|
2958
3051
|
recoverability: "unavailable" | "live" | "stale";
|
|
2959
3052
|
commandPreview: string;
|
|
2960
3053
|
observedAt: string;
|
|
@@ -2982,88 +3075,98 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
2982
3075
|
provenance: Readonly<{
|
|
2983
3076
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2984
3077
|
sessionId: number | null;
|
|
3078
|
+
checkpointId: string | null;
|
|
2985
3079
|
messageSequence: number | null;
|
|
2986
3080
|
toolExecutionId: string | null;
|
|
2987
3081
|
resourceKey: string | null;
|
|
2988
3082
|
managerInstanceId: string | null;
|
|
2989
|
-
checkpointId: string | null;
|
|
2990
3083
|
snapshotIndex: number | null;
|
|
2991
3084
|
}>[];
|
|
2992
3085
|
}>[];
|
|
2993
3086
|
goal: Readonly<{
|
|
2994
3087
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
2995
3088
|
text: string;
|
|
2996
|
-
sourceQuotes: string[];
|
|
2997
3089
|
provenance: Readonly<{
|
|
2998
3090
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
2999
3091
|
sessionId: number | null;
|
|
3092
|
+
checkpointId: string | null;
|
|
3000
3093
|
messageSequence: number | null;
|
|
3001
3094
|
toolExecutionId: string | null;
|
|
3002
3095
|
resourceKey: string | null;
|
|
3003
3096
|
managerInstanceId: string | null;
|
|
3004
|
-
checkpointId: string | null;
|
|
3005
3097
|
snapshotIndex: number | null;
|
|
3006
3098
|
}>[];
|
|
3099
|
+
sourceQuotes: string[];
|
|
3100
|
+
harnessKey?: string | undefined;
|
|
3101
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3007
3102
|
}> | null;
|
|
3008
3103
|
constraints: Readonly<{
|
|
3009
3104
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3010
3105
|
text: string;
|
|
3011
|
-
sourceQuotes: string[];
|
|
3012
3106
|
provenance: Readonly<{
|
|
3013
3107
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3014
3108
|
sessionId: number | null;
|
|
3109
|
+
checkpointId: string | null;
|
|
3015
3110
|
messageSequence: number | null;
|
|
3016
3111
|
toolExecutionId: string | null;
|
|
3017
3112
|
resourceKey: string | null;
|
|
3018
3113
|
managerInstanceId: string | null;
|
|
3019
|
-
checkpointId: string | null;
|
|
3020
3114
|
snapshotIndex: number | null;
|
|
3021
3115
|
}>[];
|
|
3116
|
+
sourceQuotes: string[];
|
|
3117
|
+
harnessKey?: string | undefined;
|
|
3118
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3022
3119
|
}>[];
|
|
3023
3120
|
decisions: Readonly<{
|
|
3024
3121
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3025
3122
|
text: string;
|
|
3026
|
-
sourceQuotes: string[];
|
|
3027
3123
|
provenance: Readonly<{
|
|
3028
3124
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3029
3125
|
sessionId: number | null;
|
|
3126
|
+
checkpointId: string | null;
|
|
3030
3127
|
messageSequence: number | null;
|
|
3031
3128
|
toolExecutionId: string | null;
|
|
3032
3129
|
resourceKey: string | null;
|
|
3033
3130
|
managerInstanceId: string | null;
|
|
3034
|
-
checkpointId: string | null;
|
|
3035
3131
|
snapshotIndex: number | null;
|
|
3036
3132
|
}>[];
|
|
3133
|
+
sourceQuotes: string[];
|
|
3134
|
+
harnessKey?: string | undefined;
|
|
3135
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3037
3136
|
}>[];
|
|
3038
3137
|
completedWork: Readonly<{
|
|
3039
3138
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3040
3139
|
text: string;
|
|
3041
|
-
sourceQuotes: string[];
|
|
3042
3140
|
provenance: Readonly<{
|
|
3043
3141
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3044
3142
|
sessionId: number | null;
|
|
3143
|
+
checkpointId: string | null;
|
|
3045
3144
|
messageSequence: number | null;
|
|
3046
3145
|
toolExecutionId: string | null;
|
|
3047
3146
|
resourceKey: string | null;
|
|
3048
3147
|
managerInstanceId: string | null;
|
|
3049
|
-
checkpointId: string | null;
|
|
3050
3148
|
snapshotIndex: number | null;
|
|
3051
3149
|
}>[];
|
|
3150
|
+
sourceQuotes: string[];
|
|
3151
|
+
harnessKey?: string | undefined;
|
|
3152
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3052
3153
|
}>[];
|
|
3053
3154
|
pendingWork: Readonly<{
|
|
3054
3155
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3055
3156
|
text: string;
|
|
3056
|
-
sourceQuotes: string[];
|
|
3057
3157
|
provenance: Readonly<{
|
|
3058
3158
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3059
3159
|
sessionId: number | null;
|
|
3160
|
+
checkpointId: string | null;
|
|
3060
3161
|
messageSequence: number | null;
|
|
3061
3162
|
toolExecutionId: string | null;
|
|
3062
3163
|
resourceKey: string | null;
|
|
3063
3164
|
managerInstanceId: string | null;
|
|
3064
|
-
checkpointId: string | null;
|
|
3065
3165
|
snapshotIndex: number | null;
|
|
3066
3166
|
}>[];
|
|
3167
|
+
sourceQuotes: string[];
|
|
3168
|
+
harnessKey?: string | undefined;
|
|
3169
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3067
3170
|
}>[];
|
|
3068
3171
|
runningSessions: Readonly<{
|
|
3069
3172
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
@@ -3072,28 +3175,30 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3072
3175
|
provenance: Readonly<{
|
|
3073
3176
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3074
3177
|
sessionId: number | null;
|
|
3178
|
+
checkpointId: string | null;
|
|
3075
3179
|
messageSequence: number | null;
|
|
3076
3180
|
toolExecutionId: string | null;
|
|
3077
3181
|
resourceKey: string | null;
|
|
3078
3182
|
managerInstanceId: string | null;
|
|
3079
|
-
checkpointId: string | null;
|
|
3080
3183
|
snapshotIndex: number | null;
|
|
3081
3184
|
}>[];
|
|
3082
3185
|
}>[];
|
|
3083
3186
|
uncertainties: Readonly<{
|
|
3084
3187
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3085
3188
|
text: string;
|
|
3086
|
-
sourceQuotes: string[];
|
|
3087
3189
|
provenance: Readonly<{
|
|
3088
3190
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3089
3191
|
sessionId: number | null;
|
|
3192
|
+
checkpointId: string | null;
|
|
3090
3193
|
messageSequence: number | null;
|
|
3091
3194
|
toolExecutionId: string | null;
|
|
3092
3195
|
resourceKey: string | null;
|
|
3093
3196
|
managerInstanceId: string | null;
|
|
3094
|
-
checkpointId: string | null;
|
|
3095
3197
|
snapshotIndex: number | null;
|
|
3096
3198
|
}>[];
|
|
3199
|
+
sourceQuotes: string[];
|
|
3200
|
+
harnessKey?: string | undefined;
|
|
3201
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3097
3202
|
}>[];
|
|
3098
3203
|
prunedItemCounts: Readonly<{
|
|
3099
3204
|
resource: number;
|
|
@@ -3104,6 +3209,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3104
3209
|
pending_work: number;
|
|
3105
3210
|
uncertainty: number;
|
|
3106
3211
|
}>;
|
|
3212
|
+
scopeId?: string | undefined;
|
|
3107
3213
|
}>;
|
|
3108
3214
|
semanticEvidence: Readonly<{
|
|
3109
3215
|
messagesThroughSequence: number;
|
|
@@ -3111,21 +3217,22 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3111
3217
|
}>;
|
|
3112
3218
|
goal?: Readonly<{
|
|
3113
3219
|
status: "unknown" | "active" | "interrupted";
|
|
3114
|
-
sourceSequence: number;
|
|
3115
3220
|
verbatimRequest: string;
|
|
3221
|
+
sourceSequence: number;
|
|
3116
3222
|
}> | undefined;
|
|
3117
3223
|
previousCheckpointId?: (string & z.BRAND<"CompactionCheckpointId">) | undefined;
|
|
3224
|
+
toolEvidenceCursor?: number | undefined;
|
|
3118
3225
|
}, {
|
|
3119
3226
|
version: 2;
|
|
3120
3227
|
id: string;
|
|
3121
3228
|
createdAt: string;
|
|
3122
3229
|
generation: number;
|
|
3123
3230
|
context: Readonly<{
|
|
3231
|
+
cwd: string;
|
|
3124
3232
|
skills: Readonly<{
|
|
3125
3233
|
name: string;
|
|
3126
3234
|
source: "config" | "user" | "agent" | "project";
|
|
3127
3235
|
}>[];
|
|
3128
|
-
cwd: string;
|
|
3129
3236
|
stableRuleIds: string[];
|
|
3130
3237
|
explicitSkillNames: string[];
|
|
3131
3238
|
systemPromptSha256?: string | undefined;
|
|
@@ -3182,8 +3289,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3182
3289
|
runningWork: Readonly<{
|
|
3183
3290
|
sessionId: number;
|
|
3184
3291
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
3185
|
-
workdir: string;
|
|
3186
3292
|
managerInstanceId: string;
|
|
3293
|
+
workdir: string;
|
|
3187
3294
|
recoverability: "unavailable" | "live" | "stale";
|
|
3188
3295
|
commandPreview: string;
|
|
3189
3296
|
observedAt: string;
|
|
@@ -3232,6 +3339,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3232
3339
|
checkpointId?: string | null | undefined;
|
|
3233
3340
|
snapshotIndex?: number | null | undefined;
|
|
3234
3341
|
}>[];
|
|
3342
|
+
harnessKey?: string | undefined;
|
|
3343
|
+
relatedItemId?: string | undefined;
|
|
3235
3344
|
sourceQuotes?: string[] | undefined;
|
|
3236
3345
|
}> | null;
|
|
3237
3346
|
decisions: Readonly<{
|
|
@@ -3247,6 +3356,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3247
3356
|
checkpointId?: string | null | undefined;
|
|
3248
3357
|
snapshotIndex?: number | null | undefined;
|
|
3249
3358
|
}>[];
|
|
3359
|
+
harnessKey?: string | undefined;
|
|
3360
|
+
relatedItemId?: string | undefined;
|
|
3250
3361
|
sourceQuotes?: string[] | undefined;
|
|
3251
3362
|
}>[];
|
|
3252
3363
|
completedWork: Readonly<{
|
|
@@ -3262,6 +3373,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3262
3373
|
checkpointId?: string | null | undefined;
|
|
3263
3374
|
snapshotIndex?: number | null | undefined;
|
|
3264
3375
|
}>[];
|
|
3376
|
+
harnessKey?: string | undefined;
|
|
3377
|
+
relatedItemId?: string | undefined;
|
|
3265
3378
|
sourceQuotes?: string[] | undefined;
|
|
3266
3379
|
}>[];
|
|
3267
3380
|
pendingWork: Readonly<{
|
|
@@ -3277,6 +3390,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3277
3390
|
checkpointId?: string | null | undefined;
|
|
3278
3391
|
snapshotIndex?: number | null | undefined;
|
|
3279
3392
|
}>[];
|
|
3393
|
+
harnessKey?: string | undefined;
|
|
3394
|
+
relatedItemId?: string | undefined;
|
|
3280
3395
|
sourceQuotes?: string[] | undefined;
|
|
3281
3396
|
}>[];
|
|
3282
3397
|
runningSessions: Readonly<{
|
|
@@ -3307,8 +3422,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3307
3422
|
checkpointId?: string | null | undefined;
|
|
3308
3423
|
snapshotIndex?: number | null | undefined;
|
|
3309
3424
|
}>[];
|
|
3425
|
+
harnessKey?: string | undefined;
|
|
3426
|
+
relatedItemId?: string | undefined;
|
|
3310
3427
|
sourceQuotes?: string[] | undefined;
|
|
3311
3428
|
}>[];
|
|
3429
|
+
scopeId?: string | undefined;
|
|
3312
3430
|
constraints?: Readonly<{
|
|
3313
3431
|
id: string;
|
|
3314
3432
|
text: string;
|
|
@@ -3322,6 +3440,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3322
3440
|
checkpointId?: string | null | undefined;
|
|
3323
3441
|
snapshotIndex?: number | null | undefined;
|
|
3324
3442
|
}>[];
|
|
3443
|
+
harnessKey?: string | undefined;
|
|
3444
|
+
relatedItemId?: string | undefined;
|
|
3325
3445
|
sourceQuotes?: string[] | undefined;
|
|
3326
3446
|
}>[] | undefined;
|
|
3327
3447
|
prunedItemCounts?: Readonly<{
|
|
@@ -3336,25 +3456,26 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3336
3456
|
}>;
|
|
3337
3457
|
goal?: Readonly<{
|
|
3338
3458
|
status: "unknown" | "active" | "interrupted";
|
|
3339
|
-
sourceSequence: number;
|
|
3340
3459
|
verbatimRequest: string;
|
|
3460
|
+
sourceSequence: number;
|
|
3341
3461
|
}> | undefined;
|
|
3342
3462
|
previousCheckpointId?: string | undefined;
|
|
3343
3463
|
semanticEvidence?: Readonly<{
|
|
3344
3464
|
messagesThroughSequence: number;
|
|
3345
3465
|
toolExecutionsThroughSequence: number;
|
|
3346
3466
|
}> | undefined;
|
|
3467
|
+
toolEvidenceCursor?: number | undefined;
|
|
3347
3468
|
}>, {
|
|
3348
3469
|
version: 2;
|
|
3349
3470
|
id: string & z.BRAND<"CompactionCheckpointId">;
|
|
3350
3471
|
createdAt: string;
|
|
3351
3472
|
generation: number;
|
|
3352
3473
|
context: Readonly<{
|
|
3474
|
+
cwd: string;
|
|
3353
3475
|
skills: Readonly<{
|
|
3354
3476
|
name: string;
|
|
3355
3477
|
source: "config" | "user" | "agent" | "project";
|
|
3356
3478
|
}>[];
|
|
3357
|
-
cwd: string;
|
|
3358
3479
|
stableRuleIds: string[];
|
|
3359
3480
|
explicitSkillNames: string[];
|
|
3360
3481
|
systemPromptSha256?: string | undefined;
|
|
@@ -3411,8 +3532,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3411
3532
|
runningWork: Readonly<{
|
|
3412
3533
|
sessionId: number;
|
|
3413
3534
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
3414
|
-
workdir: string;
|
|
3415
3535
|
managerInstanceId: string;
|
|
3536
|
+
workdir: string;
|
|
3416
3537
|
recoverability: "unavailable" | "live" | "stale";
|
|
3417
3538
|
commandPreview: string;
|
|
3418
3539
|
observedAt: string;
|
|
@@ -3440,88 +3561,98 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3440
3561
|
provenance: Readonly<{
|
|
3441
3562
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3442
3563
|
sessionId: number | null;
|
|
3564
|
+
checkpointId: string | null;
|
|
3443
3565
|
messageSequence: number | null;
|
|
3444
3566
|
toolExecutionId: string | null;
|
|
3445
3567
|
resourceKey: string | null;
|
|
3446
3568
|
managerInstanceId: string | null;
|
|
3447
|
-
checkpointId: string | null;
|
|
3448
3569
|
snapshotIndex: number | null;
|
|
3449
3570
|
}>[];
|
|
3450
3571
|
}>[];
|
|
3451
3572
|
goal: Readonly<{
|
|
3452
3573
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3453
3574
|
text: string;
|
|
3454
|
-
sourceQuotes: string[];
|
|
3455
3575
|
provenance: Readonly<{
|
|
3456
3576
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3457
3577
|
sessionId: number | null;
|
|
3578
|
+
checkpointId: string | null;
|
|
3458
3579
|
messageSequence: number | null;
|
|
3459
3580
|
toolExecutionId: string | null;
|
|
3460
3581
|
resourceKey: string | null;
|
|
3461
3582
|
managerInstanceId: string | null;
|
|
3462
|
-
checkpointId: string | null;
|
|
3463
3583
|
snapshotIndex: number | null;
|
|
3464
3584
|
}>[];
|
|
3585
|
+
sourceQuotes: string[];
|
|
3586
|
+
harnessKey?: string | undefined;
|
|
3587
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3465
3588
|
}> | null;
|
|
3466
3589
|
constraints: Readonly<{
|
|
3467
3590
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3468
3591
|
text: string;
|
|
3469
|
-
sourceQuotes: string[];
|
|
3470
3592
|
provenance: Readonly<{
|
|
3471
3593
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3472
3594
|
sessionId: number | null;
|
|
3595
|
+
checkpointId: string | null;
|
|
3473
3596
|
messageSequence: number | null;
|
|
3474
3597
|
toolExecutionId: string | null;
|
|
3475
3598
|
resourceKey: string | null;
|
|
3476
3599
|
managerInstanceId: string | null;
|
|
3477
|
-
checkpointId: string | null;
|
|
3478
3600
|
snapshotIndex: number | null;
|
|
3479
3601
|
}>[];
|
|
3602
|
+
sourceQuotes: string[];
|
|
3603
|
+
harnessKey?: string | undefined;
|
|
3604
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3480
3605
|
}>[];
|
|
3481
3606
|
decisions: Readonly<{
|
|
3482
3607
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3483
3608
|
text: string;
|
|
3484
|
-
sourceQuotes: string[];
|
|
3485
3609
|
provenance: Readonly<{
|
|
3486
3610
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3487
3611
|
sessionId: number | null;
|
|
3612
|
+
checkpointId: string | null;
|
|
3488
3613
|
messageSequence: number | null;
|
|
3489
3614
|
toolExecutionId: string | null;
|
|
3490
3615
|
resourceKey: string | null;
|
|
3491
3616
|
managerInstanceId: string | null;
|
|
3492
|
-
checkpointId: string | null;
|
|
3493
3617
|
snapshotIndex: number | null;
|
|
3494
3618
|
}>[];
|
|
3619
|
+
sourceQuotes: string[];
|
|
3620
|
+
harnessKey?: string | undefined;
|
|
3621
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3495
3622
|
}>[];
|
|
3496
3623
|
completedWork: Readonly<{
|
|
3497
3624
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3498
3625
|
text: string;
|
|
3499
|
-
sourceQuotes: string[];
|
|
3500
3626
|
provenance: Readonly<{
|
|
3501
3627
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3502
3628
|
sessionId: number | null;
|
|
3629
|
+
checkpointId: string | null;
|
|
3503
3630
|
messageSequence: number | null;
|
|
3504
3631
|
toolExecutionId: string | null;
|
|
3505
3632
|
resourceKey: string | null;
|
|
3506
3633
|
managerInstanceId: string | null;
|
|
3507
|
-
checkpointId: string | null;
|
|
3508
3634
|
snapshotIndex: number | null;
|
|
3509
3635
|
}>[];
|
|
3636
|
+
sourceQuotes: string[];
|
|
3637
|
+
harnessKey?: string | undefined;
|
|
3638
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3510
3639
|
}>[];
|
|
3511
3640
|
pendingWork: Readonly<{
|
|
3512
3641
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3513
3642
|
text: string;
|
|
3514
|
-
sourceQuotes: string[];
|
|
3515
3643
|
provenance: Readonly<{
|
|
3516
3644
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3517
3645
|
sessionId: number | null;
|
|
3646
|
+
checkpointId: string | null;
|
|
3518
3647
|
messageSequence: number | null;
|
|
3519
3648
|
toolExecutionId: string | null;
|
|
3520
3649
|
resourceKey: string | null;
|
|
3521
3650
|
managerInstanceId: string | null;
|
|
3522
|
-
checkpointId: string | null;
|
|
3523
3651
|
snapshotIndex: number | null;
|
|
3524
3652
|
}>[];
|
|
3653
|
+
sourceQuotes: string[];
|
|
3654
|
+
harnessKey?: string | undefined;
|
|
3655
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3525
3656
|
}>[];
|
|
3526
3657
|
runningSessions: Readonly<{
|
|
3527
3658
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
@@ -3530,28 +3661,30 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3530
3661
|
provenance: Readonly<{
|
|
3531
3662
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3532
3663
|
sessionId: number | null;
|
|
3664
|
+
checkpointId: string | null;
|
|
3533
3665
|
messageSequence: number | null;
|
|
3534
3666
|
toolExecutionId: string | null;
|
|
3535
3667
|
resourceKey: string | null;
|
|
3536
3668
|
managerInstanceId: string | null;
|
|
3537
|
-
checkpointId: string | null;
|
|
3538
3669
|
snapshotIndex: number | null;
|
|
3539
3670
|
}>[];
|
|
3540
3671
|
}>[];
|
|
3541
3672
|
uncertainties: Readonly<{
|
|
3542
3673
|
id: string & z.BRAND<"CompactionSemanticItemId">;
|
|
3543
3674
|
text: string;
|
|
3544
|
-
sourceQuotes: string[];
|
|
3545
3675
|
provenance: Readonly<{
|
|
3546
3676
|
kind: "message" | "resource" | "legacy_snapshot" | "tool_execution" | "running_session";
|
|
3547
3677
|
sessionId: number | null;
|
|
3678
|
+
checkpointId: string | null;
|
|
3548
3679
|
messageSequence: number | null;
|
|
3549
3680
|
toolExecutionId: string | null;
|
|
3550
3681
|
resourceKey: string | null;
|
|
3551
3682
|
managerInstanceId: string | null;
|
|
3552
|
-
checkpointId: string | null;
|
|
3553
3683
|
snapshotIndex: number | null;
|
|
3554
3684
|
}>[];
|
|
3685
|
+
sourceQuotes: string[];
|
|
3686
|
+
harnessKey?: string | undefined;
|
|
3687
|
+
relatedItemId?: (string & z.BRAND<"CompactionSemanticItemId">) | undefined;
|
|
3555
3688
|
}>[];
|
|
3556
3689
|
prunedItemCounts: Readonly<{
|
|
3557
3690
|
resource: number;
|
|
@@ -3562,6 +3695,7 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3562
3695
|
pending_work: number;
|
|
3563
3696
|
uncertainty: number;
|
|
3564
3697
|
}>;
|
|
3698
|
+
scopeId?: string | undefined;
|
|
3565
3699
|
}>;
|
|
3566
3700
|
semanticEvidence: Readonly<{
|
|
3567
3701
|
messagesThroughSequence: number;
|
|
@@ -3569,21 +3703,22 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3569
3703
|
}>;
|
|
3570
3704
|
goal?: Readonly<{
|
|
3571
3705
|
status: "unknown" | "active" | "interrupted";
|
|
3572
|
-
sourceSequence: number;
|
|
3573
3706
|
verbatimRequest: string;
|
|
3707
|
+
sourceSequence: number;
|
|
3574
3708
|
}> | undefined;
|
|
3575
3709
|
previousCheckpointId?: (string & z.BRAND<"CompactionCheckpointId">) | undefined;
|
|
3710
|
+
toolEvidenceCursor?: number | undefined;
|
|
3576
3711
|
}, {
|
|
3577
3712
|
version: 2;
|
|
3578
3713
|
id: string;
|
|
3579
3714
|
createdAt: string;
|
|
3580
3715
|
generation: number;
|
|
3581
3716
|
context: Readonly<{
|
|
3717
|
+
cwd: string;
|
|
3582
3718
|
skills: Readonly<{
|
|
3583
3719
|
name: string;
|
|
3584
3720
|
source: "config" | "user" | "agent" | "project";
|
|
3585
3721
|
}>[];
|
|
3586
|
-
cwd: string;
|
|
3587
3722
|
stableRuleIds: string[];
|
|
3588
3723
|
explicitSkillNames: string[];
|
|
3589
3724
|
systemPromptSha256?: string | undefined;
|
|
@@ -3640,8 +3775,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3640
3775
|
runningWork: Readonly<{
|
|
3641
3776
|
sessionId: number;
|
|
3642
3777
|
state: "completed" | "cleanup-failed" | "running" | "draining" | "stopping";
|
|
3643
|
-
workdir: string;
|
|
3644
3778
|
managerInstanceId: string;
|
|
3779
|
+
workdir: string;
|
|
3645
3780
|
recoverability: "unavailable" | "live" | "stale";
|
|
3646
3781
|
commandPreview: string;
|
|
3647
3782
|
observedAt: string;
|
|
@@ -3690,6 +3825,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3690
3825
|
checkpointId?: string | null | undefined;
|
|
3691
3826
|
snapshotIndex?: number | null | undefined;
|
|
3692
3827
|
}>[];
|
|
3828
|
+
harnessKey?: string | undefined;
|
|
3829
|
+
relatedItemId?: string | undefined;
|
|
3693
3830
|
sourceQuotes?: string[] | undefined;
|
|
3694
3831
|
}> | null;
|
|
3695
3832
|
decisions: Readonly<{
|
|
@@ -3705,6 +3842,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3705
3842
|
checkpointId?: string | null | undefined;
|
|
3706
3843
|
snapshotIndex?: number | null | undefined;
|
|
3707
3844
|
}>[];
|
|
3845
|
+
harnessKey?: string | undefined;
|
|
3846
|
+
relatedItemId?: string | undefined;
|
|
3708
3847
|
sourceQuotes?: string[] | undefined;
|
|
3709
3848
|
}>[];
|
|
3710
3849
|
completedWork: Readonly<{
|
|
@@ -3720,6 +3859,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3720
3859
|
checkpointId?: string | null | undefined;
|
|
3721
3860
|
snapshotIndex?: number | null | undefined;
|
|
3722
3861
|
}>[];
|
|
3862
|
+
harnessKey?: string | undefined;
|
|
3863
|
+
relatedItemId?: string | undefined;
|
|
3723
3864
|
sourceQuotes?: string[] | undefined;
|
|
3724
3865
|
}>[];
|
|
3725
3866
|
pendingWork: Readonly<{
|
|
@@ -3735,6 +3876,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3735
3876
|
checkpointId?: string | null | undefined;
|
|
3736
3877
|
snapshotIndex?: number | null | undefined;
|
|
3737
3878
|
}>[];
|
|
3879
|
+
harnessKey?: string | undefined;
|
|
3880
|
+
relatedItemId?: string | undefined;
|
|
3738
3881
|
sourceQuotes?: string[] | undefined;
|
|
3739
3882
|
}>[];
|
|
3740
3883
|
runningSessions: Readonly<{
|
|
@@ -3765,8 +3908,11 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3765
3908
|
checkpointId?: string | null | undefined;
|
|
3766
3909
|
snapshotIndex?: number | null | undefined;
|
|
3767
3910
|
}>[];
|
|
3911
|
+
harnessKey?: string | undefined;
|
|
3912
|
+
relatedItemId?: string | undefined;
|
|
3768
3913
|
sourceQuotes?: string[] | undefined;
|
|
3769
3914
|
}>[];
|
|
3915
|
+
scopeId?: string | undefined;
|
|
3770
3916
|
constraints?: Readonly<{
|
|
3771
3917
|
id: string;
|
|
3772
3918
|
text: string;
|
|
@@ -3780,6 +3926,8 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3780
3926
|
checkpointId?: string | null | undefined;
|
|
3781
3927
|
snapshotIndex?: number | null | undefined;
|
|
3782
3928
|
}>[];
|
|
3929
|
+
harnessKey?: string | undefined;
|
|
3930
|
+
relatedItemId?: string | undefined;
|
|
3783
3931
|
sourceQuotes?: string[] | undefined;
|
|
3784
3932
|
}>[] | undefined;
|
|
3785
3933
|
prunedItemCounts?: Readonly<{
|
|
@@ -3794,15 +3942,325 @@ export declare const compactionCheckpointV2Schema: z.ZodReadonly<z.ZodEffects<z.
|
|
|
3794
3942
|
}>;
|
|
3795
3943
|
goal?: Readonly<{
|
|
3796
3944
|
status: "unknown" | "active" | "interrupted";
|
|
3797
|
-
sourceSequence: number;
|
|
3798
3945
|
verbatimRequest: string;
|
|
3946
|
+
sourceSequence: number;
|
|
3799
3947
|
}> | undefined;
|
|
3800
3948
|
previousCheckpointId?: string | undefined;
|
|
3801
3949
|
semanticEvidence?: Readonly<{
|
|
3802
3950
|
messagesThroughSequence: number;
|
|
3803
3951
|
toolExecutionsThroughSequence: number;
|
|
3804
3952
|
}> | undefined;
|
|
3953
|
+
toolEvidenceCursor?: number | undefined;
|
|
3954
|
+
}>>;
|
|
3955
|
+
/** Current checkpoints persist a lossy task summary and Harness facts, never semantic coverage. */
|
|
3956
|
+
export declare const compactionCheckpointV3Schema: z.ZodReadonly<z.ZodObject<{
|
|
3957
|
+
version: z.ZodLiteral<3>;
|
|
3958
|
+
id: z.ZodBranded<z.ZodString, "CompactionCheckpointId">;
|
|
3959
|
+
generation: z.ZodNumber;
|
|
3960
|
+
previousCheckpointId: z.ZodOptional<z.ZodBranded<z.ZodString, "CompactionCheckpointId">>;
|
|
3961
|
+
createdAt: z.ZodString;
|
|
3962
|
+
transcript: z.ZodReadonly<z.ZodObject<{
|
|
3963
|
+
messages: z.ZodEffects<z.ZodObject<{
|
|
3964
|
+
fromSequenceExclusive: z.ZodNumber;
|
|
3965
|
+
throughSequence: z.ZodNumber;
|
|
3966
|
+
}, "strict", z.ZodTypeAny, {
|
|
3967
|
+
fromSequenceExclusive: number;
|
|
3968
|
+
throughSequence: number;
|
|
3969
|
+
}, {
|
|
3970
|
+
fromSequenceExclusive: number;
|
|
3971
|
+
throughSequence: number;
|
|
3972
|
+
}>, {
|
|
3973
|
+
fromSequenceExclusive: number;
|
|
3974
|
+
throughSequence: number;
|
|
3975
|
+
}, {
|
|
3976
|
+
fromSequenceExclusive: number;
|
|
3977
|
+
throughSequence: number;
|
|
3978
|
+
}>;
|
|
3979
|
+
toolExecutions: z.ZodEffects<z.ZodObject<{
|
|
3980
|
+
fromSequenceExclusive: z.ZodNumber;
|
|
3981
|
+
throughSequence: z.ZodNumber;
|
|
3982
|
+
}, "strict", z.ZodTypeAny, {
|
|
3983
|
+
fromSequenceExclusive: number;
|
|
3984
|
+
throughSequence: number;
|
|
3985
|
+
}, {
|
|
3986
|
+
fromSequenceExclusive: number;
|
|
3987
|
+
throughSequence: number;
|
|
3988
|
+
}>, {
|
|
3989
|
+
fromSequenceExclusive: number;
|
|
3990
|
+
throughSequence: number;
|
|
3991
|
+
}, {
|
|
3992
|
+
fromSequenceExclusive: number;
|
|
3993
|
+
throughSequence: number;
|
|
3994
|
+
}>;
|
|
3995
|
+
completeness: z.ZodEnum<["complete", "legacy_snapshot"]>;
|
|
3996
|
+
}, "strict", z.ZodTypeAny, {
|
|
3997
|
+
messages: {
|
|
3998
|
+
fromSequenceExclusive: number;
|
|
3999
|
+
throughSequence: number;
|
|
4000
|
+
};
|
|
4001
|
+
toolExecutions: {
|
|
4002
|
+
fromSequenceExclusive: number;
|
|
4003
|
+
throughSequence: number;
|
|
4004
|
+
};
|
|
4005
|
+
completeness: "complete" | "legacy_snapshot";
|
|
4006
|
+
}, {
|
|
4007
|
+
messages: {
|
|
4008
|
+
fromSequenceExclusive: number;
|
|
4009
|
+
throughSequence: number;
|
|
4010
|
+
};
|
|
4011
|
+
toolExecutions: {
|
|
4012
|
+
fromSequenceExclusive: number;
|
|
4013
|
+
throughSequence: number;
|
|
4014
|
+
};
|
|
4015
|
+
completeness: "complete" | "legacy_snapshot";
|
|
4016
|
+
}>>;
|
|
4017
|
+
taskSummary: z.ZodString;
|
|
4018
|
+
toolState: z.ZodReadonly<z.ZodObject<{
|
|
4019
|
+
countsByOutcome: z.ZodReadonly<z.ZodObject<{
|
|
4020
|
+
success: z.ZodNumber;
|
|
4021
|
+
user_rejected: z.ZodNumber;
|
|
4022
|
+
policy_denied: z.ZodNumber;
|
|
4023
|
+
invalid_input: z.ZodNumber;
|
|
4024
|
+
cancelled: z.ZodNumber;
|
|
4025
|
+
tool_failed: z.ZodNumber;
|
|
4026
|
+
}, "strict", z.ZodTypeAny, {
|
|
4027
|
+
success: number;
|
|
4028
|
+
cancelled: number;
|
|
4029
|
+
invalid_input: number;
|
|
4030
|
+
user_rejected: number;
|
|
4031
|
+
policy_denied: number;
|
|
4032
|
+
tool_failed: number;
|
|
4033
|
+
}, {
|
|
4034
|
+
success: number;
|
|
4035
|
+
cancelled: number;
|
|
4036
|
+
invalid_input: number;
|
|
4037
|
+
user_rejected: number;
|
|
4038
|
+
policy_denied: number;
|
|
4039
|
+
tool_failed: number;
|
|
4040
|
+
}>>;
|
|
4041
|
+
recentRecords: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
4042
|
+
executionId: z.ZodString;
|
|
4043
|
+
sequence: z.ZodNumber;
|
|
4044
|
+
toolCallId: z.ZodString;
|
|
4045
|
+
agentName: z.ZodString;
|
|
4046
|
+
toolName: z.ZodString;
|
|
4047
|
+
outcome: z.ZodReadonly<z.ZodEffects<z.ZodObject<{
|
|
4048
|
+
kind: z.ZodEnum<["success", "user_rejected", "policy_denied", "invalid_input", "cancelled", "tool_failed"]>;
|
|
4049
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4050
|
+
executionState: z.ZodOptional<z.ZodEnum<["not_executed", "outcome_unknown"]>>;
|
|
4051
|
+
}, "strict", z.ZodTypeAny, {
|
|
4052
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4053
|
+
reason?: string | undefined;
|
|
4054
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4055
|
+
}, {
|
|
4056
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4057
|
+
reason?: string | undefined;
|
|
4058
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4059
|
+
}>, {
|
|
4060
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4061
|
+
reason?: string | undefined;
|
|
4062
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4063
|
+
}, {
|
|
4064
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4065
|
+
reason?: string | undefined;
|
|
4066
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4067
|
+
}>>;
|
|
4068
|
+
}, "strict", z.ZodTypeAny, {
|
|
4069
|
+
toolCallId: string;
|
|
4070
|
+
toolName: string;
|
|
4071
|
+
agentName: string;
|
|
4072
|
+
outcome: Readonly<{
|
|
4073
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4074
|
+
reason?: string | undefined;
|
|
4075
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4076
|
+
}>;
|
|
4077
|
+
sequence: number;
|
|
4078
|
+
executionId: string;
|
|
4079
|
+
}, {
|
|
4080
|
+
toolCallId: string;
|
|
4081
|
+
toolName: string;
|
|
4082
|
+
agentName: string;
|
|
4083
|
+
outcome: Readonly<{
|
|
4084
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4085
|
+
reason?: string | undefined;
|
|
4086
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4087
|
+
}>;
|
|
4088
|
+
sequence: number;
|
|
4089
|
+
executionId: string;
|
|
4090
|
+
}>>, "many">;
|
|
4091
|
+
integrityStatus: z.ZodEnum<["valid", "sanitized", "invalid"]>;
|
|
4092
|
+
anomalies: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
4093
|
+
kind: z.ZodEnum<["orphan_result", "dangling_call", "duplicate_call", "duplicate_result", "record_without_call", "record_without_result", "result_without_record"]>;
|
|
4094
|
+
toolCallId: z.ZodString;
|
|
4095
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
4096
|
+
}, "strict", z.ZodTypeAny, {
|
|
4097
|
+
kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
|
|
4098
|
+
toolCallId: string;
|
|
4099
|
+
count?: number | undefined;
|
|
4100
|
+
}, {
|
|
4101
|
+
kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
|
|
4102
|
+
toolCallId: string;
|
|
4103
|
+
count?: number | undefined;
|
|
4104
|
+
}>>, "many">;
|
|
4105
|
+
}, "strict", z.ZodTypeAny, {
|
|
4106
|
+
countsByOutcome: Readonly<{
|
|
4107
|
+
success: number;
|
|
4108
|
+
cancelled: number;
|
|
4109
|
+
invalid_input: number;
|
|
4110
|
+
user_rejected: number;
|
|
4111
|
+
policy_denied: number;
|
|
4112
|
+
tool_failed: number;
|
|
4113
|
+
}>;
|
|
4114
|
+
recentRecords: Readonly<{
|
|
4115
|
+
toolCallId: string;
|
|
4116
|
+
toolName: string;
|
|
4117
|
+
agentName: string;
|
|
4118
|
+
outcome: Readonly<{
|
|
4119
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4120
|
+
reason?: string | undefined;
|
|
4121
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4122
|
+
}>;
|
|
4123
|
+
sequence: number;
|
|
4124
|
+
executionId: string;
|
|
4125
|
+
}>[];
|
|
4126
|
+
integrityStatus: "invalid" | "valid" | "sanitized";
|
|
4127
|
+
anomalies: Readonly<{
|
|
4128
|
+
kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
|
|
4129
|
+
toolCallId: string;
|
|
4130
|
+
count?: number | undefined;
|
|
4131
|
+
}>[];
|
|
4132
|
+
}, {
|
|
4133
|
+
countsByOutcome: Readonly<{
|
|
4134
|
+
success: number;
|
|
4135
|
+
cancelled: number;
|
|
4136
|
+
invalid_input: number;
|
|
4137
|
+
user_rejected: number;
|
|
4138
|
+
policy_denied: number;
|
|
4139
|
+
tool_failed: number;
|
|
4140
|
+
}>;
|
|
4141
|
+
recentRecords: Readonly<{
|
|
4142
|
+
toolCallId: string;
|
|
4143
|
+
toolName: string;
|
|
4144
|
+
agentName: string;
|
|
4145
|
+
outcome: Readonly<{
|
|
4146
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4147
|
+
reason?: string | undefined;
|
|
4148
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4149
|
+
}>;
|
|
4150
|
+
sequence: number;
|
|
4151
|
+
executionId: string;
|
|
4152
|
+
}>[];
|
|
4153
|
+
integrityStatus: "invalid" | "valid" | "sanitized";
|
|
4154
|
+
anomalies: Readonly<{
|
|
4155
|
+
kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
|
|
4156
|
+
toolCallId: string;
|
|
4157
|
+
count?: number | undefined;
|
|
4158
|
+
}>[];
|
|
4159
|
+
}>>;
|
|
4160
|
+
}, "strict", z.ZodTypeAny, {
|
|
4161
|
+
version: 3;
|
|
4162
|
+
id: string & z.BRAND<"CompactionCheckpointId">;
|
|
4163
|
+
createdAt: string;
|
|
4164
|
+
generation: number;
|
|
4165
|
+
toolState: Readonly<{
|
|
4166
|
+
countsByOutcome: Readonly<{
|
|
4167
|
+
success: number;
|
|
4168
|
+
cancelled: number;
|
|
4169
|
+
invalid_input: number;
|
|
4170
|
+
user_rejected: number;
|
|
4171
|
+
policy_denied: number;
|
|
4172
|
+
tool_failed: number;
|
|
4173
|
+
}>;
|
|
4174
|
+
recentRecords: Readonly<{
|
|
4175
|
+
toolCallId: string;
|
|
4176
|
+
toolName: string;
|
|
4177
|
+
agentName: string;
|
|
4178
|
+
outcome: Readonly<{
|
|
4179
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4180
|
+
reason?: string | undefined;
|
|
4181
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4182
|
+
}>;
|
|
4183
|
+
sequence: number;
|
|
4184
|
+
executionId: string;
|
|
4185
|
+
}>[];
|
|
4186
|
+
integrityStatus: "invalid" | "valid" | "sanitized";
|
|
4187
|
+
anomalies: Readonly<{
|
|
4188
|
+
kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
|
|
4189
|
+
toolCallId: string;
|
|
4190
|
+
count?: number | undefined;
|
|
4191
|
+
}>[];
|
|
4192
|
+
}>;
|
|
4193
|
+
transcript: Readonly<{
|
|
4194
|
+
messages: {
|
|
4195
|
+
fromSequenceExclusive: number;
|
|
4196
|
+
throughSequence: number;
|
|
4197
|
+
};
|
|
4198
|
+
toolExecutions: {
|
|
4199
|
+
fromSequenceExclusive: number;
|
|
4200
|
+
throughSequence: number;
|
|
4201
|
+
};
|
|
4202
|
+
completeness: "complete" | "legacy_snapshot";
|
|
4203
|
+
}>;
|
|
4204
|
+
taskSummary: string;
|
|
4205
|
+
previousCheckpointId?: (string & z.BRAND<"CompactionCheckpointId">) | undefined;
|
|
4206
|
+
}, {
|
|
4207
|
+
version: 3;
|
|
4208
|
+
id: string;
|
|
4209
|
+
createdAt: string;
|
|
4210
|
+
generation: number;
|
|
4211
|
+
toolState: Readonly<{
|
|
4212
|
+
countsByOutcome: Readonly<{
|
|
4213
|
+
success: number;
|
|
4214
|
+
cancelled: number;
|
|
4215
|
+
invalid_input: number;
|
|
4216
|
+
user_rejected: number;
|
|
4217
|
+
policy_denied: number;
|
|
4218
|
+
tool_failed: number;
|
|
4219
|
+
}>;
|
|
4220
|
+
recentRecords: Readonly<{
|
|
4221
|
+
toolCallId: string;
|
|
4222
|
+
toolName: string;
|
|
4223
|
+
agentName: string;
|
|
4224
|
+
outcome: Readonly<{
|
|
4225
|
+
kind: "success" | "cancelled" | "invalid_input" | "user_rejected" | "policy_denied" | "tool_failed";
|
|
4226
|
+
reason?: string | undefined;
|
|
4227
|
+
executionState?: "not_executed" | "outcome_unknown" | undefined;
|
|
4228
|
+
}>;
|
|
4229
|
+
sequence: number;
|
|
4230
|
+
executionId: string;
|
|
4231
|
+
}>[];
|
|
4232
|
+
integrityStatus: "invalid" | "valid" | "sanitized";
|
|
4233
|
+
anomalies: Readonly<{
|
|
4234
|
+
kind: "orphan_result" | "dangling_call" | "duplicate_call" | "duplicate_result" | "record_without_call" | "record_without_result" | "result_without_record";
|
|
4235
|
+
toolCallId: string;
|
|
4236
|
+
count?: number | undefined;
|
|
4237
|
+
}>[];
|
|
4238
|
+
}>;
|
|
4239
|
+
transcript: Readonly<{
|
|
4240
|
+
messages: {
|
|
4241
|
+
fromSequenceExclusive: number;
|
|
4242
|
+
throughSequence: number;
|
|
4243
|
+
};
|
|
4244
|
+
toolExecutions: {
|
|
4245
|
+
fromSequenceExclusive: number;
|
|
4246
|
+
throughSequence: number;
|
|
4247
|
+
};
|
|
4248
|
+
completeness: "complete" | "legacy_snapshot";
|
|
4249
|
+
}>;
|
|
4250
|
+
taskSummary: string;
|
|
4251
|
+
previousCheckpointId?: string | undefined;
|
|
3805
4252
|
}>>;
|
|
4253
|
+
export type CompactionCheckpointV3 = z.infer<typeof compactionCheckpointV3Schema>;
|
|
4254
|
+
export type CreateSummaryCheckpointInput = {
|
|
4255
|
+
readonly summary: CompactionCheckpointV3["taskSummary"];
|
|
4256
|
+
readonly generation: CompactionCheckpointV3["generation"];
|
|
4257
|
+
readonly transcript: CompactionCheckpointV3["transcript"];
|
|
4258
|
+
readonly previousCheckpointId?: string;
|
|
4259
|
+
readonly id?: string;
|
|
4260
|
+
readonly createdAt?: string;
|
|
4261
|
+
readonly toolState?: CompactionCheckpointV3["toolState"];
|
|
4262
|
+
};
|
|
4263
|
+
export declare function createSummaryCheckpoint(input: CreateSummaryCheckpointInput): CompactionCheckpointV3;
|
|
3806
4264
|
export type CompactionGoal = z.infer<typeof compactionGoalSchema>;
|
|
3807
4265
|
export type CompactionConstraint = z.infer<typeof compactionConstraintSchema>;
|
|
3808
4266
|
export type CompactionResource = z.infer<typeof compactionResourceSchema>;
|
|
@@ -3817,7 +4275,7 @@ export type CompactionCheckpointDraft = z.infer<typeof compactionCheckpointDraft
|
|
|
3817
4275
|
export type CompactionCheckpointDraftInput = z.input<typeof compactionCheckpointDraftSchema>;
|
|
3818
4276
|
export type CompactionCheckpointV1 = z.infer<typeof compactionCheckpointV1Schema>;
|
|
3819
4277
|
export type CompactionCheckpointV2 = z.infer<typeof compactionCheckpointV2Schema>;
|
|
3820
|
-
export type CompactionCheckpoint = CompactionCheckpointV1 | CompactionCheckpointV2;
|
|
4278
|
+
export type CompactionCheckpoint = CompactionCheckpointV1 | CompactionCheckpointV2 | CompactionCheckpointV3;
|
|
3821
4279
|
export declare const archivedTranscriptMessageSchema: z.ZodReadonly<z.ZodObject<{
|
|
3822
4280
|
sequence: z.ZodNumber;
|
|
3823
4281
|
provenance: z.ZodEnum<["native", "legacy_snapshot"]>;
|
|
@@ -3835,17 +4293,6 @@ export declare const archivedTranscriptMessageSchema: z.ZodReadonly<z.ZodObject<
|
|
|
3835
4293
|
provenance: "legacy_snapshot" | "native";
|
|
3836
4294
|
}>>;
|
|
3837
4295
|
export type ArchivedTranscriptMessage = z.infer<typeof archivedTranscriptMessageSchema>;
|
|
3838
|
-
export declare const compactionConstraintCandidateSchema: z.ZodReadonly<z.ZodObject<{
|
|
3839
|
-
quote: z.ZodString;
|
|
3840
|
-
sourceSequence: z.ZodNumber;
|
|
3841
|
-
}, "strict", z.ZodTypeAny, {
|
|
3842
|
-
sourceSequence: number;
|
|
3843
|
-
quote: string;
|
|
3844
|
-
}, {
|
|
3845
|
-
sourceSequence: number;
|
|
3846
|
-
quote: string;
|
|
3847
|
-
}>>;
|
|
3848
|
-
export type CompactionConstraintCandidate = z.infer<typeof compactionConstraintCandidateSchema>;
|
|
3849
4296
|
export interface SequencedToolExecutionEvidence extends ToolExecutionRecord {
|
|
3850
4297
|
readonly sequence: number;
|
|
3851
4298
|
}
|
|
@@ -3858,38 +4305,36 @@ export interface CreateCompactionCheckpointInput {
|
|
|
3858
4305
|
readonly createdAt?: string;
|
|
3859
4306
|
readonly semanticState?: CompactionSemanticState;
|
|
3860
4307
|
readonly semanticEvidence?: CompactionSemanticEvidenceWatermarks;
|
|
4308
|
+
readonly toolEvidenceCursor?: CompactionCheckpointV2["toolEvidenceCursor"];
|
|
3861
4309
|
}
|
|
3862
|
-
|
|
3863
|
-
export declare function createCheckpointSemanticReminderProjection(state: CompactionSemanticState): ReturnType<typeof createCompactionSemanticReminderProjection>;
|
|
4310
|
+
export declare const MAX_CHECKPOINT_REMINDER_CHARS = 8000;
|
|
3864
4311
|
export declare function createEmptyCompactionToolState(): CompactionToolState;
|
|
3865
4312
|
export declare function buildCompactionToolState(evidenceMessages: readonly ModelMessage[], evidenceRecords: readonly SequencedToolExecutionEvidence[], recentLimit?: number, completeness?: CompactionTranscript["completeness"]): CompactionToolState;
|
|
3866
|
-
export declare function findLatestRealUserGoal(entries: readonly ArchivedTranscriptMessage[], status?: CompactionGoal["status"]): CompactionGoal | undefined;
|
|
3867
|
-
/**
|
|
3868
|
-
* Extracts conservative, verbatim constraint clauses from persisted user transcript evidence.
|
|
3869
|
-
* Every returned quote remains directly verifiable by sourceSequence; continuation-only turns
|
|
3870
|
-
* and ordinary goal prose do not become constraints.
|
|
3871
|
-
*/
|
|
3872
|
-
export declare function extractExplicitCompactionConstraintCandidates(entries: readonly ArchivedTranscriptMessage[]): readonly CompactionConstraintCandidate[];
|
|
3873
|
-
/**
|
|
3874
|
-
* Resolves the bounded set of currently-active explicit constraints.
|
|
3875
|
-
*
|
|
3876
|
-
* Priority is transcript sequence: a later assertion replaces an earlier assertion for the same
|
|
3877
|
-
* normalized scope, while a later explicit allowance/revocation removes that scope. Matching is
|
|
3878
|
-
* intentionally exact after directive/punctuation normalization; implicit paraphrases, synonyms,
|
|
3879
|
-
* and cross-scope contradictions remain outside this deterministic Harness layer.
|
|
3880
|
-
*/
|
|
3881
|
-
export declare function resolveActiveCompactionConstraints(entries: readonly ArchivedTranscriptMessage[], previous?: readonly CompactionConstraint[]): readonly CompactionConstraint[];
|
|
3882
|
-
export declare function verifyCompactionConstraintCandidates(entries: readonly ArchivedTranscriptMessage[], candidates: readonly CompactionConstraintCandidate[], previous?: readonly CompactionConstraint[]): readonly CompactionConstraint[];
|
|
3883
4313
|
export declare function createCompactionSummary(text: string | undefined): CompactionSummary;
|
|
3884
|
-
/**
|
|
3885
|
-
* A non-authoritative quality hint for debug telemetry only. Recovery facts come
|
|
3886
|
-
* from the structured checkpoint, Tool ledger and transcript evidence instead
|
|
3887
|
-
* of language-specific words in the generated prose.
|
|
3888
|
-
*/
|
|
3889
|
-
export declare function compactionSummaryQualityAdvisory(text: string | undefined): string | undefined;
|
|
3890
4314
|
export declare function createCompactionCheckpointDraft(input: CompactionCheckpointDraftInput): CompactionCheckpointDraft;
|
|
3891
4315
|
export declare function createCompactionCheckpoint(input: CreateCompactionCheckpointInput): CompactionCheckpointV2;
|
|
3892
4316
|
export declare function parseCompactionCheckpoint(value: unknown): CompactionCheckpoint;
|
|
3893
4317
|
export declare function isCompactionCheckpoint(value: unknown): value is CompactionCheckpoint;
|
|
3894
|
-
export declare function
|
|
3895
|
-
|
|
4318
|
+
export declare function projectCompactionCheckpointReminder(checkpoint: CompactionCheckpoint, currentManagerInstanceId?: string, transcriptToolId?: string, contextToolId?: string, recoveryReminder?: string): {
|
|
4319
|
+
text: string;
|
|
4320
|
+
semanticProjection: Readonly<{
|
|
4321
|
+
version: 1;
|
|
4322
|
+
items: Readonly<{
|
|
4323
|
+
text: string;
|
|
4324
|
+
sourceQuotes: string[];
|
|
4325
|
+
itemId: string & z.BRAND<"CompactionSemanticItemId">;
|
|
4326
|
+
category: "resource" | "decision" | "running_session" | "goal" | "constraint" | "completed_work" | "pending_work" | "uncertainty";
|
|
4327
|
+
}>[];
|
|
4328
|
+
omittedCounts: Readonly<{
|
|
4329
|
+
resource: number;
|
|
4330
|
+
decision: number;
|
|
4331
|
+
running_session: number;
|
|
4332
|
+
goal: number;
|
|
4333
|
+
constraint: number;
|
|
4334
|
+
completed_work: number;
|
|
4335
|
+
pending_work: number;
|
|
4336
|
+
uncertainty: number;
|
|
4337
|
+
}>;
|
|
4338
|
+
}> | null;
|
|
4339
|
+
};
|
|
4340
|
+
export declare function buildCompactionCheckpointReminder(checkpoint: CompactionCheckpoint, currentManagerInstanceId?: string, transcriptToolId?: string, contextToolId?: string, recoveryReminder?: string): string;
|