@tangle-network/agent-interface 0.25.0 → 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.
@@ -23,30 +23,6 @@ export declare const agentCandidateTraceEvidenceSchema: z.ZodObject<{
23
23
  eventCount: z.ZodNumber;
24
24
  modelCallCount: z.ZodNumber;
25
25
  }, z.core.$strict>;
26
- export declare const agentCandidateModelUsageSchema: z.ZodObject<{
27
- resolved: z.ZodObject<{
28
- requested: z.ZodString;
29
- provider: z.ZodString;
30
- model: z.ZodString;
31
- snapshot: z.ZodString;
32
- reasoningEffort: z.ZodEnum<{
33
- none: "none";
34
- minimal: "minimal";
35
- low: "low";
36
- medium: "medium";
37
- high: "high";
38
- xhigh: "xhigh";
39
- ultracode: "ultracode";
40
- }>;
41
- }, z.core.$strict>;
42
- usage: z.ZodObject<{
43
- costUsd: z.ZodNumber;
44
- inputTokens: z.ZodNumber;
45
- outputTokens: z.ZodNumber;
46
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
47
- modelCalls: z.ZodNumber;
48
- }, z.core.$strict>;
49
- }, z.core.$strict>;
50
26
  export declare const agentCandidateMemoryReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
27
  mode: z.ZodLiteral<"disabled">;
52
28
  }, z.core.$strict>, z.ZodObject<{
@@ -56,15 +32,15 @@ export declare const agentCandidateMemoryReceiptSchema: z.ZodDiscriminatedUnion<
56
32
  resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
57
33
  beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
58
34
  afterState: z.ZodObject<{
59
- schemaVersion: z.ZodLiteral<1>;
35
+ schemaVersion: z.ZodLiteral<2>;
60
36
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
61
37
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
62
38
  material: z.ZodObject<{
63
- schemaVersion: z.ZodLiteral<1>;
39
+ schemaVersion: z.ZodLiteral<2>;
64
40
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
65
41
  files: z.ZodArray<z.ZodObject<{
66
42
  path: z.ZodString;
67
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
43
+ mode: z.ZodNumber;
68
44
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
69
45
  byteLength: z.ZodNumber;
70
46
  }, z.core.$strict>>;
@@ -122,7 +98,7 @@ export declare const agentCandidateTerminationSchema: z.ZodDiscriminatedUnion<[z
122
98
  kind: z.ZodLiteral<"cancelled">;
123
99
  }, z.core.$strict>], "kind">;
124
100
  export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
125
- schemaVersion: z.ZodLiteral<1>;
101
+ schemaVersion: z.ZodLiteral<2>;
126
102
  kind: z.ZodLiteral<"agent-candidate-materialization">;
127
103
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
128
104
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -192,11 +168,11 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
192
168
  }, z.core.$strict>]>;
193
169
  }, z.core.$strict>;
194
170
  executionPlan: z.ZodObject<{
195
- schemaVersion: z.ZodLiteral<1>;
171
+ schemaVersion: z.ZodLiteral<2>;
196
172
  kind: z.ZodLiteral<"agent-candidate-execution-plan">;
197
173
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
198
174
  material: z.ZodType<{
199
- schemaVersion: 1;
175
+ schemaVersion: 2;
200
176
  kind: "agent-candidate-execution-plan-material";
201
177
  bundleDigest: `sha256:${string}`;
202
178
  executionId: string;
@@ -224,22 +200,23 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
224
200
  path: "/tangle/input/task.txt";
225
201
  };
226
202
  };
227
- repository: {
228
- identity: string;
229
- rootIdentity: string;
230
- baseCommit: string;
231
- baseTree: string;
203
+ outcome: {
204
+ kind: "workspace";
205
+ } | {
206
+ kind: "output";
207
+ mediaType: string;
208
+ maxBytes: number;
232
209
  };
233
210
  workspace: {
234
- schemaVersion: 1;
211
+ schemaVersion: 2;
235
212
  kind: "agent-candidate-workspace-snapshot";
236
213
  digest: `sha256:${string}`;
237
214
  material: {
238
- schemaVersion: 1;
215
+ schemaVersion: 2;
239
216
  kind: "agent-candidate-workspace-manifest";
240
217
  files: {
241
218
  path: string;
242
- mode: 420 | 493;
219
+ mode: number;
243
220
  sha256: `sha256:${string}`;
244
221
  byteLength: number;
245
222
  }[];
@@ -283,6 +260,12 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
283
260
  byteLength: number;
284
261
  };
285
262
  };
263
+ repository?: {
264
+ identity: string;
265
+ rootIdentity: string;
266
+ baseCommit: string;
267
+ baseTree: string;
268
+ } | undefined;
286
269
  };
287
270
  workspaces: {
288
271
  taskRoot: string;
@@ -403,15 +386,15 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
403
386
  emptyStateDigest: `sha256:${string}`;
404
387
  };
405
388
  beforeState: {
406
- schemaVersion: 1;
389
+ schemaVersion: 2;
407
390
  kind: "agent-candidate-workspace-snapshot";
408
391
  digest: `sha256:${string}`;
409
392
  material: {
410
- schemaVersion: 1;
393
+ schemaVersion: 2;
411
394
  kind: "agent-candidate-workspace-manifest";
412
395
  files: {
413
396
  path: string;
414
- mode: 420 | 493;
397
+ mode: number;
415
398
  sha256: `sha256:${string}`;
416
399
  byteLength: number;
417
400
  }[];
@@ -471,15 +454,15 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
471
454
  mode: "disabled";
472
455
  };
473
456
  candidateWorkspace?: {
474
- schemaVersion: 1;
457
+ schemaVersion: 2;
475
458
  kind: "agent-candidate-workspace-snapshot";
476
459
  digest: `sha256:${string}`;
477
460
  material: {
478
- schemaVersion: 1;
461
+ schemaVersion: 2;
479
462
  kind: "agent-candidate-workspace-manifest";
480
463
  files: {
481
464
  path: string;
482
- mode: 420 | 493;
465
+ mode: number;
483
466
  sha256: `sha256:${string}`;
484
467
  byteLength: number;
485
468
  }[];
@@ -525,7 +508,7 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
525
508
  } | undefined;
526
509
  knowledgeManifestDigest?: `sha256:${string}` | undefined;
527
510
  }, unknown, z.core.$ZodTypeInternals<{
528
- schemaVersion: 1;
511
+ schemaVersion: 2;
529
512
  kind: "agent-candidate-execution-plan-material";
530
513
  bundleDigest: `sha256:${string}`;
531
514
  executionId: string;
@@ -553,22 +536,23 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
553
536
  path: "/tangle/input/task.txt";
554
537
  };
555
538
  };
556
- repository: {
557
- identity: string;
558
- rootIdentity: string;
559
- baseCommit: string;
560
- baseTree: string;
539
+ outcome: {
540
+ kind: "workspace";
541
+ } | {
542
+ kind: "output";
543
+ mediaType: string;
544
+ maxBytes: number;
561
545
  };
562
546
  workspace: {
563
- schemaVersion: 1;
547
+ schemaVersion: 2;
564
548
  kind: "agent-candidate-workspace-snapshot";
565
549
  digest: `sha256:${string}`;
566
550
  material: {
567
- schemaVersion: 1;
551
+ schemaVersion: 2;
568
552
  kind: "agent-candidate-workspace-manifest";
569
553
  files: {
570
554
  path: string;
571
- mode: 420 | 493;
555
+ mode: number;
572
556
  sha256: `sha256:${string}`;
573
557
  byteLength: number;
574
558
  }[];
@@ -612,6 +596,12 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
612
596
  byteLength: number;
613
597
  };
614
598
  };
599
+ repository?: {
600
+ identity: string;
601
+ rootIdentity: string;
602
+ baseCommit: string;
603
+ baseTree: string;
604
+ } | undefined;
615
605
  };
616
606
  workspaces: {
617
607
  taskRoot: string;
@@ -732,15 +722,15 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
732
722
  emptyStateDigest: `sha256:${string}`;
733
723
  };
734
724
  beforeState: {
735
- schemaVersion: 1;
725
+ schemaVersion: 2;
736
726
  kind: "agent-candidate-workspace-snapshot";
737
727
  digest: `sha256:${string}`;
738
728
  material: {
739
- schemaVersion: 1;
729
+ schemaVersion: 2;
740
730
  kind: "agent-candidate-workspace-manifest";
741
731
  files: {
742
732
  path: string;
743
- mode: 420 | 493;
733
+ mode: number;
744
734
  sha256: `sha256:${string}`;
745
735
  byteLength: number;
746
736
  }[];
@@ -800,15 +790,15 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
800
790
  mode: "disabled";
801
791
  };
802
792
  candidateWorkspace?: {
803
- schemaVersion: 1;
793
+ schemaVersion: 2;
804
794
  kind: "agent-candidate-workspace-snapshot";
805
795
  digest: `sha256:${string}`;
806
796
  material: {
807
- schemaVersion: 1;
797
+ schemaVersion: 2;
808
798
  kind: "agent-candidate-workspace-manifest";
809
799
  files: {
810
800
  path: string;
811
- mode: 420 | 493;
801
+ mode: number;
812
802
  sha256: `sha256:${string}`;
813
803
  byteLength: number;
814
804
  }[];
@@ -875,15 +865,15 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
875
865
  }, z.core.$strict>]>;
876
866
  }, z.core.$strict>;
877
867
  candidateWorkspace: z.ZodOptional<z.ZodObject<{
878
- schemaVersion: z.ZodLiteral<1>;
868
+ schemaVersion: z.ZodLiteral<2>;
879
869
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
880
870
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
881
871
  material: z.ZodObject<{
882
- schemaVersion: z.ZodLiteral<1>;
872
+ schemaVersion: z.ZodLiteral<2>;
883
873
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
884
874
  files: z.ZodArray<z.ZodObject<{
885
875
  path: z.ZodString;
886
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
876
+ mode: z.ZodNumber;
887
877
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
888
878
  byteLength: z.ZodNumber;
889
879
  }, z.core.$strict>>;
@@ -990,7 +980,7 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
990
980
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
991
981
  }, z.core.$strict>;
992
982
  export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
993
- schemaVersion: z.ZodLiteral<1>;
983
+ schemaVersion: z.ZodLiteral<3>;
994
984
  kind: z.ZodLiteral<"agent-candidate-run">;
995
985
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
996
986
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -1005,15 +995,15 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1005
995
  resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1006
996
  beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1007
997
  afterState: z.ZodObject<{
1008
- schemaVersion: z.ZodLiteral<1>;
998
+ schemaVersion: z.ZodLiteral<2>;
1009
999
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1010
1000
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1011
1001
  material: z.ZodObject<{
1012
- schemaVersion: z.ZodLiteral<1>;
1002
+ schemaVersion: z.ZodLiteral<2>;
1013
1003
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1014
1004
  files: z.ZodArray<z.ZodObject<{
1015
1005
  path: z.ZodString;
1016
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1006
+ mode: z.ZodNumber;
1017
1007
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1018
1008
  byteLength: z.ZodNumber;
1019
1009
  }, z.core.$strict>>;
@@ -1058,37 +1048,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1058
1048
  }, z.core.$strict>]>;
1059
1049
  }, z.core.$strict>;
1060
1050
  }, z.core.$strict>], "mode">;
1061
- usage: z.ZodObject<{
1062
- costUsd: z.ZodNumber;
1063
- inputTokens: z.ZodNumber;
1064
- outputTokens: z.ZodNumber;
1065
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1066
- modelCalls: z.ZodNumber;
1067
- }, z.core.$strict>;
1068
- modelUsage: z.ZodObject<{
1069
- resolved: z.ZodObject<{
1070
- requested: z.ZodString;
1071
- provider: z.ZodString;
1072
- model: z.ZodString;
1073
- snapshot: z.ZodString;
1074
- reasoningEffort: z.ZodEnum<{
1075
- none: "none";
1076
- minimal: "minimal";
1077
- low: "low";
1078
- medium: "medium";
1079
- high: "high";
1080
- xhigh: "xhigh";
1081
- ultracode: "ultracode";
1082
- }>;
1083
- }, z.core.$strict>;
1084
- usage: z.ZodObject<{
1085
- costUsd: z.ZodNumber;
1086
- inputTokens: z.ZodNumber;
1087
- outputTokens: z.ZodNumber;
1088
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1089
- modelCalls: z.ZodNumber;
1090
- }, z.core.$strict>;
1091
- }, z.core.$strict>;
1092
1051
  trace: z.ZodObject<{
1093
1052
  schemaVersion: z.ZodLiteral<1>;
1094
1053
  artifact: z.ZodUnion<readonly [z.ZodObject<{
@@ -1125,189 +1084,25 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1125
1084
  }, z.core.$strict>, z.ZodObject<{
1126
1085
  kind: z.ZodLiteral<"cancelled">;
1127
1086
  }, z.core.$strict>], "kind">;
1128
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1129
- }, z.core.$strict>;
1130
- export declare const agentCandidateRunReceiptV2Schema: z.ZodObject<{
1131
- schemaVersion: z.ZodLiteral<2>;
1132
- kind: z.ZodLiteral<"agent-candidate-run">;
1133
- digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1134
- bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1135
- materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1136
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1137
- memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1138
- mode: z.ZodLiteral<"disabled">;
1139
- }, z.core.$strict>, z.ZodObject<{
1140
- mode: z.ZodLiteral<"isolated">;
1141
- scope: z.ZodLiteral<"task">;
1142
- effectiveNamespace: z.ZodString;
1143
- resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1144
- beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1145
- afterState: z.ZodObject<{
1146
- schemaVersion: z.ZodLiteral<1>;
1147
- kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1148
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1149
- material: z.ZodObject<{
1150
- schemaVersion: z.ZodLiteral<1>;
1151
- kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1152
- files: z.ZodArray<z.ZodObject<{
1153
- path: z.ZodString;
1154
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1155
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1156
- byteLength: z.ZodNumber;
1157
- }, z.core.$strict>>;
1158
- }, z.core.$strict>;
1159
- manifest: z.ZodUnion<readonly [z.ZodObject<{
1160
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1161
- kind: z.ZodLiteral<"s3">;
1162
- bucket: z.ZodString;
1163
- key: z.ZodString;
1164
- region: z.ZodOptional<z.ZodString>;
1165
- }, z.core.$strict>, z.ZodObject<{
1166
- kind: z.ZodLiteral<"ipfs">;
1167
- cid: z.ZodString;
1168
- path: z.ZodOptional<z.ZodString>;
1169
- }, z.core.$strict>], "kind">;
1170
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1171
- byteLength: z.ZodNumber;
1172
- }, z.core.$strict>, z.ZodObject<{
1173
- encoding: z.ZodLiteral<"base64">;
1174
- content: z.ZodString;
1175
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1176
- byteLength: z.ZodNumber;
1177
- }, z.core.$strict>]>;
1178
- archive: z.ZodUnion<readonly [z.ZodObject<{
1179
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1180
- kind: z.ZodLiteral<"s3">;
1181
- bucket: z.ZodString;
1182
- key: z.ZodString;
1183
- region: z.ZodOptional<z.ZodString>;
1184
- }, z.core.$strict>, z.ZodObject<{
1185
- kind: z.ZodLiteral<"ipfs">;
1186
- cid: z.ZodString;
1187
- path: z.ZodOptional<z.ZodString>;
1188
- }, z.core.$strict>], "kind">;
1189
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1190
- byteLength: z.ZodNumber;
1191
- }, z.core.$strict>, z.ZodObject<{
1192
- encoding: z.ZodLiteral<"base64">;
1193
- content: z.ZodString;
1194
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1195
- byteLength: z.ZodNumber;
1196
- }, z.core.$strict>]>;
1197
- }, z.core.$strict>;
1198
- }, z.core.$strict>], "mode">;
1199
- usage: z.ZodObject<{
1200
- costUsd: z.ZodNumber;
1201
- inputTokens: z.ZodNumber;
1202
- outputTokens: z.ZodNumber;
1203
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1204
- modelCalls: z.ZodNumber;
1205
- }, z.core.$strict>;
1206
- modelUsage: z.ZodObject<{
1207
- resolved: z.ZodObject<{
1208
- requested: z.ZodString;
1209
- provider: z.ZodString;
1210
- model: z.ZodString;
1211
- snapshot: z.ZodString;
1212
- reasoningEffort: z.ZodEnum<{
1213
- none: "none";
1214
- minimal: "minimal";
1215
- low: "low";
1216
- medium: "medium";
1217
- high: "high";
1218
- xhigh: "xhigh";
1219
- ultracode: "ultracode";
1220
- }>;
1221
- }, z.core.$strict>;
1222
- usage: z.ZodObject<{
1223
- costUsd: z.ZodNumber;
1224
- inputTokens: z.ZodNumber;
1225
- outputTokens: z.ZodNumber;
1226
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1227
- modelCalls: z.ZodNumber;
1228
- }, z.core.$strict>;
1229
- }, z.core.$strict>;
1230
- trace: z.ZodObject<{
1231
- schemaVersion: z.ZodLiteral<1>;
1232
- artifact: z.ZodUnion<readonly [z.ZodObject<{
1233
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1234
- kind: z.ZodLiteral<"s3">;
1235
- bucket: z.ZodString;
1236
- key: z.ZodString;
1237
- region: z.ZodOptional<z.ZodString>;
1238
- }, z.core.$strict>, z.ZodObject<{
1239
- kind: z.ZodLiteral<"ipfs">;
1240
- cid: z.ZodString;
1241
- path: z.ZodOptional<z.ZodString>;
1242
- }, z.core.$strict>], "kind">;
1243
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1244
- byteLength: z.ZodNumber;
1087
+ executorCapture: z.ZodObject<{
1088
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1089
+ kind: z.ZodLiteral<"s3">;
1090
+ bucket: z.ZodString;
1091
+ key: z.ZodString;
1092
+ region: z.ZodOptional<z.ZodString>;
1245
1093
  }, z.core.$strict>, z.ZodObject<{
1246
- encoding: z.ZodLiteral<"base64">;
1247
- content: z.ZodString;
1248
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1249
- byteLength: z.ZodNumber;
1250
- }, z.core.$strict>]>;
1251
- eventCount: z.ZodNumber;
1252
- modelCallCount: z.ZodNumber;
1253
- }, z.core.$strict>;
1254
- termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1255
- kind: z.ZodLiteral<"exit">;
1256
- exitCode: z.ZodNumber;
1257
- }, z.core.$strict>, z.ZodObject<{
1258
- kind: z.ZodLiteral<"timeout">;
1259
- timeoutMs: z.ZodNumber;
1260
- }, z.core.$strict>, z.ZodObject<{
1261
- kind: z.ZodLiteral<"signal">;
1262
- signal: z.ZodString;
1263
- }, z.core.$strict>, z.ZodObject<{
1264
- kind: z.ZodLiteral<"cancelled">;
1265
- }, z.core.$strict>], "kind">;
1266
- fixedUsage: z.ZodObject<{
1267
- inputTokens: z.ZodNumber;
1268
- outputTokens: z.ZodNumber;
1269
- cachedInputTokens: z.ZodNumber;
1270
- reasoningTokens: z.ZodNumber;
1271
- modelCalls: z.ZodNumber;
1272
- costUsdNanos: z.ZodNumber;
1094
+ kind: z.ZodLiteral<"ipfs">;
1095
+ cid: z.ZodString;
1096
+ path: z.ZodOptional<z.ZodString>;
1097
+ }, z.core.$strict>], "kind">;
1098
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1099
+ byteLength: z.ZodNumber;
1273
1100
  }, z.core.$strict>;
1274
1101
  modelSettlement: z.ZodObject<{
1275
- schemaVersion: z.ZodLiteral<1>;
1102
+ schemaVersion: z.ZodLiteral<2>;
1276
1103
  kind: z.ZodLiteral<"agent-candidate-model-settlement">;
1277
1104
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1278
1105
  material: z.ZodType<{
1279
- calls: {
1280
- callId: string;
1281
- traceSpanId: string;
1282
- model: string;
1283
- inputTokens: number;
1284
- outputTokens: number;
1285
- cachedInputTokens: number;
1286
- reasoningTokens: number;
1287
- costUsdNanos: number;
1288
- }[];
1289
- kind: "agent-candidate-model-settlement-material";
1290
- executionPlanDigest: `sha256:${string}`;
1291
- preparationId: string;
1292
- grantDigest: `sha256:${string}`;
1293
- closed: true;
1294
- resolved: {
1295
- requested: string;
1296
- provider: string;
1297
- model: string;
1298
- snapshot: string;
1299
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1300
- };
1301
- usage: {
1302
- inputTokens: number;
1303
- outputTokens: number;
1304
- cachedInputTokens: number;
1305
- reasoningTokens: number;
1306
- modelCalls: number;
1307
- costUsdNanos: number;
1308
- };
1309
- schemaVersion: 1;
1310
- } | {
1311
1106
  calls: {
1312
1107
  callId: string;
1313
1108
  generationId: string;
@@ -1344,38 +1139,6 @@ export declare const agentCandidateRunReceiptV2Schema: z.ZodObject<{
1344
1139
  };
1345
1140
  schemaVersion: 2;
1346
1141
  }, unknown, z.core.$ZodTypeInternals<{
1347
- calls: {
1348
- callId: string;
1349
- traceSpanId: string;
1350
- model: string;
1351
- inputTokens: number;
1352
- outputTokens: number;
1353
- cachedInputTokens: number;
1354
- reasoningTokens: number;
1355
- costUsdNanos: number;
1356
- }[];
1357
- kind: "agent-candidate-model-settlement-material";
1358
- executionPlanDigest: `sha256:${string}`;
1359
- preparationId: string;
1360
- grantDigest: `sha256:${string}`;
1361
- closed: true;
1362
- resolved: {
1363
- requested: string;
1364
- provider: string;
1365
- model: string;
1366
- snapshot: string;
1367
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1368
- };
1369
- usage: {
1370
- inputTokens: number;
1371
- outputTokens: number;
1372
- cachedInputTokens: number;
1373
- reasoningTokens: number;
1374
- modelCalls: number;
1375
- costUsdNanos: number;
1376
- };
1377
- schemaVersion: 1;
1378
- } | {
1379
1142
  calls: {
1380
1143
  callId: string;
1381
1144
  generationId: string;
@@ -1433,984 +1196,103 @@ export declare const agentCandidateRunReceiptV2Schema: z.ZodObject<{
1433
1196
  }, z.core.$strict>]>;
1434
1197
  }, z.core.$strict>;
1435
1198
  taskOutcome: z.ZodObject<{
1436
- schemaVersion: z.ZodLiteral<1>;
1199
+ schemaVersion: z.ZodLiteral<2>;
1437
1200
  kind: z.ZodLiteral<"agent-candidate-task-outcome">;
1438
1201
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1439
1202
  material: z.ZodType<{
1440
- schemaVersion: 1;
1203
+ schemaVersion: 2;
1441
1204
  kind: "agent-candidate-task-outcome-material";
1442
1205
  executionPlanDigest: `sha256:${string}`;
1443
- baseRepository: {
1444
- identity: string;
1445
- rootIdentity: string;
1446
- commit: string;
1447
- tree: string;
1448
- };
1449
- resultRepository: {
1450
- identity: string;
1451
- rootIdentity: string;
1452
- commit: string;
1453
- tree: string;
1454
- };
1455
- afterState: {
1456
- schemaVersion: 1;
1457
- kind: "agent-candidate-workspace-snapshot";
1458
- digest: `sha256:${string}`;
1459
- material: {
1460
- schemaVersion: 1;
1461
- kind: "agent-candidate-workspace-manifest";
1462
- files: {
1463
- path: string;
1464
- mode: 420 | 493;
1465
- sha256: `sha256:${string}`;
1466
- byteLength: number;
1467
- }[];
1206
+ outcome: {
1207
+ kind: "workspace";
1208
+ baseRepository: {
1209
+ identity: string;
1210
+ rootIdentity: string;
1211
+ commit: string;
1212
+ tree: string;
1468
1213
  };
1469
- manifest: {
1470
- locator: {
1471
- kind: "s3";
1472
- bucket: string;
1473
- key: string;
1474
- region?: string | undefined;
1475
- } | {
1476
- kind: "ipfs";
1477
- cid: string;
1478
- path?: string | undefined;
1479
- };
1480
- sha256: `sha256:${string}`;
1481
- byteLength: number;
1482
- } | {
1483
- encoding: "base64";
1484
- content: string;
1485
- sha256: `sha256:${string}`;
1486
- byteLength: number;
1487
- };
1488
- archive: {
1489
- locator: {
1490
- kind: "s3";
1491
- bucket: string;
1492
- key: string;
1493
- region?: string | undefined;
1494
- } | {
1495
- kind: "ipfs";
1496
- cid: string;
1497
- path?: string | undefined;
1498
- };
1499
- sha256: `sha256:${string}`;
1500
- byteLength: number;
1501
- } | {
1502
- encoding: "base64";
1503
- content: string;
1504
- sha256: `sha256:${string}`;
1505
- byteLength: number;
1506
- };
1507
- };
1508
- gitDiff: {
1509
- format: "git-diff-binary";
1510
- artifact: {
1511
- locator: {
1512
- kind: "s3";
1513
- bucket: string;
1514
- key: string;
1515
- region?: string | undefined;
1516
- } | {
1517
- kind: "ipfs";
1518
- cid: string;
1519
- path?: string | undefined;
1520
- };
1521
- sha256: `sha256:${string}`;
1522
- byteLength: number;
1523
- };
1524
- };
1525
- }, unknown, z.core.$ZodTypeInternals<{
1526
- schemaVersion: 1;
1527
- kind: "agent-candidate-task-outcome-material";
1528
- executionPlanDigest: `sha256:${string}`;
1529
- baseRepository: {
1530
- identity: string;
1531
- rootIdentity: string;
1532
- commit: string;
1533
- tree: string;
1534
- };
1535
- resultRepository: {
1536
- identity: string;
1537
- rootIdentity: string;
1538
- commit: string;
1539
- tree: string;
1540
- };
1541
- afterState: {
1542
- schemaVersion: 1;
1543
- kind: "agent-candidate-workspace-snapshot";
1544
- digest: `sha256:${string}`;
1545
- material: {
1546
- schemaVersion: 1;
1547
- kind: "agent-candidate-workspace-manifest";
1548
- files: {
1549
- path: string;
1550
- mode: 420 | 493;
1551
- sha256: `sha256:${string}`;
1552
- byteLength: number;
1553
- }[];
1554
- };
1555
- manifest: {
1556
- locator: {
1557
- kind: "s3";
1558
- bucket: string;
1559
- key: string;
1560
- region?: string | undefined;
1561
- } | {
1562
- kind: "ipfs";
1563
- cid: string;
1564
- path?: string | undefined;
1565
- };
1566
- sha256: `sha256:${string}`;
1567
- byteLength: number;
1568
- } | {
1569
- encoding: "base64";
1570
- content: string;
1571
- sha256: `sha256:${string}`;
1572
- byteLength: number;
1573
- };
1574
- archive: {
1575
- locator: {
1576
- kind: "s3";
1577
- bucket: string;
1578
- key: string;
1579
- region?: string | undefined;
1580
- } | {
1581
- kind: "ipfs";
1582
- cid: string;
1583
- path?: string | undefined;
1584
- };
1585
- sha256: `sha256:${string}`;
1586
- byteLength: number;
1587
- } | {
1588
- encoding: "base64";
1589
- content: string;
1590
- sha256: `sha256:${string}`;
1591
- byteLength: number;
1592
- };
1593
- };
1594
- gitDiff: {
1595
- format: "git-diff-binary";
1596
- artifact: {
1597
- locator: {
1598
- kind: "s3";
1599
- bucket: string;
1600
- key: string;
1601
- region?: string | undefined;
1602
- } | {
1603
- kind: "ipfs";
1604
- cid: string;
1605
- path?: string | undefined;
1606
- };
1607
- sha256: `sha256:${string}`;
1608
- byteLength: number;
1609
- };
1610
- };
1611
- }, unknown>>;
1612
- artifact: z.ZodUnion<readonly [z.ZodObject<{
1613
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1614
- kind: z.ZodLiteral<"s3">;
1615
- bucket: z.ZodString;
1616
- key: z.ZodString;
1617
- region: z.ZodOptional<z.ZodString>;
1618
- }, z.core.$strict>, z.ZodObject<{
1619
- kind: z.ZodLiteral<"ipfs">;
1620
- cid: z.ZodString;
1621
- path: z.ZodOptional<z.ZodString>;
1622
- }, z.core.$strict>], "kind">;
1623
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1624
- byteLength: z.ZodNumber;
1625
- }, z.core.$strict>, z.ZodObject<{
1626
- encoding: z.ZodLiteral<"base64">;
1627
- content: z.ZodString;
1628
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1629
- byteLength: z.ZodNumber;
1630
- }, z.core.$strict>]>;
1631
- }, z.core.$strict>;
1632
- benchmarkResult: z.ZodObject<{
1633
- schemaVersion: z.ZodLiteral<1>;
1634
- kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
1635
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1636
- material: z.ZodType<{
1637
- schemaVersion: 1;
1638
- kind: "agent-candidate-benchmark-result-material";
1639
- executionPlanDigest: `sha256:${string}`;
1640
- taskOutcomeDigest: `sha256:${string}`;
1641
- benchmark: {
1642
- name: string;
1643
- version: string;
1644
- taskId: string;
1645
- splitDigest: `sha256:${string}`;
1646
- };
1647
- grader: {
1648
- name: string;
1649
- version: string;
1650
- artifact: {
1651
- locator: {
1652
- kind: "s3";
1653
- bucket: string;
1654
- key: string;
1655
- region?: string | undefined;
1656
- } | {
1657
- kind: "ipfs";
1658
- cid: string;
1659
- path?: string | undefined;
1660
- };
1661
- sha256: `sha256:${string}`;
1662
- byteLength: number;
1663
- };
1664
- };
1665
- evidence: {
1666
- locator: {
1667
- kind: "s3";
1668
- bucket: string;
1669
- key: string;
1670
- region?: string | undefined;
1671
- } | {
1672
- kind: "ipfs";
1673
- cid: string;
1674
- path?: string | undefined;
1675
- };
1676
- sha256: `sha256:${string}`;
1677
- byteLength: number;
1678
- };
1679
- score: number;
1680
- passed: boolean;
1681
- dimensions: {
1682
- name: string;
1683
- score: number;
1684
- }[];
1685
- }, unknown, z.core.$ZodTypeInternals<{
1686
- schemaVersion: 1;
1687
- kind: "agent-candidate-benchmark-result-material";
1688
- executionPlanDigest: `sha256:${string}`;
1689
- taskOutcomeDigest: `sha256:${string}`;
1690
- benchmark: {
1691
- name: string;
1692
- version: string;
1693
- taskId: string;
1694
- splitDigest: `sha256:${string}`;
1695
- };
1696
- grader: {
1697
- name: string;
1698
- version: string;
1699
- artifact: {
1700
- locator: {
1701
- kind: "s3";
1702
- bucket: string;
1703
- key: string;
1704
- region?: string | undefined;
1705
- } | {
1706
- kind: "ipfs";
1707
- cid: string;
1708
- path?: string | undefined;
1709
- };
1710
- sha256: `sha256:${string}`;
1711
- byteLength: number;
1712
- };
1713
- };
1714
- evidence: {
1715
- locator: {
1716
- kind: "s3";
1717
- bucket: string;
1718
- key: string;
1719
- region?: string | undefined;
1720
- } | {
1721
- kind: "ipfs";
1722
- cid: string;
1723
- path?: string | undefined;
1724
- };
1725
- sha256: `sha256:${string}`;
1726
- byteLength: number;
1727
- };
1728
- score: number;
1729
- passed: boolean;
1730
- dimensions: {
1731
- name: string;
1732
- score: number;
1733
- }[];
1734
- }, unknown>>;
1735
- artifact: z.ZodUnion<readonly [z.ZodObject<{
1736
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1737
- kind: z.ZodLiteral<"s3">;
1738
- bucket: z.ZodString;
1739
- key: z.ZodString;
1740
- region: z.ZodOptional<z.ZodString>;
1741
- }, z.core.$strict>, z.ZodObject<{
1742
- kind: z.ZodLiteral<"ipfs">;
1743
- cid: z.ZodString;
1744
- path: z.ZodOptional<z.ZodString>;
1745
- }, z.core.$strict>], "kind">;
1746
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1747
- byteLength: z.ZodNumber;
1748
- }, z.core.$strict>, z.ZodObject<{
1749
- encoding: z.ZodLiteral<"base64">;
1750
- content: z.ZodString;
1751
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1752
- byteLength: z.ZodNumber;
1753
- }, z.core.$strict>]>;
1754
- }, z.core.$strict>;
1755
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1756
- }, z.core.$strict>;
1757
- /** Explicit V1 alias; the original schema export remains unchanged. */
1758
- export declare const agentCandidateRunReceiptV1Schema: z.ZodObject<{
1759
- schemaVersion: z.ZodLiteral<1>;
1760
- kind: z.ZodLiteral<"agent-candidate-run">;
1761
- digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1762
- bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1763
- materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1764
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1765
- memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1766
- mode: z.ZodLiteral<"disabled">;
1767
- }, z.core.$strict>, z.ZodObject<{
1768
- mode: z.ZodLiteral<"isolated">;
1769
- scope: z.ZodLiteral<"task">;
1770
- effectiveNamespace: z.ZodString;
1771
- resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1772
- beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1773
- afterState: z.ZodObject<{
1774
- schemaVersion: z.ZodLiteral<1>;
1775
- kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1776
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1777
- material: z.ZodObject<{
1778
- schemaVersion: z.ZodLiteral<1>;
1779
- kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1780
- files: z.ZodArray<z.ZodObject<{
1781
- path: z.ZodString;
1782
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1783
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1784
- byteLength: z.ZodNumber;
1785
- }, z.core.$strict>>;
1786
- }, z.core.$strict>;
1787
- manifest: z.ZodUnion<readonly [z.ZodObject<{
1788
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1789
- kind: z.ZodLiteral<"s3">;
1790
- bucket: z.ZodString;
1791
- key: z.ZodString;
1792
- region: z.ZodOptional<z.ZodString>;
1793
- }, z.core.$strict>, z.ZodObject<{
1794
- kind: z.ZodLiteral<"ipfs">;
1795
- cid: z.ZodString;
1796
- path: z.ZodOptional<z.ZodString>;
1797
- }, z.core.$strict>], "kind">;
1798
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1799
- byteLength: z.ZodNumber;
1800
- }, z.core.$strict>, z.ZodObject<{
1801
- encoding: z.ZodLiteral<"base64">;
1802
- content: z.ZodString;
1803
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1804
- byteLength: z.ZodNumber;
1805
- }, z.core.$strict>]>;
1806
- archive: z.ZodUnion<readonly [z.ZodObject<{
1807
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1808
- kind: z.ZodLiteral<"s3">;
1809
- bucket: z.ZodString;
1810
- key: z.ZodString;
1811
- region: z.ZodOptional<z.ZodString>;
1812
- }, z.core.$strict>, z.ZodObject<{
1813
- kind: z.ZodLiteral<"ipfs">;
1814
- cid: z.ZodString;
1815
- path: z.ZodOptional<z.ZodString>;
1816
- }, z.core.$strict>], "kind">;
1817
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1818
- byteLength: z.ZodNumber;
1819
- }, z.core.$strict>, z.ZodObject<{
1820
- encoding: z.ZodLiteral<"base64">;
1821
- content: z.ZodString;
1822
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1823
- byteLength: z.ZodNumber;
1824
- }, z.core.$strict>]>;
1825
- }, z.core.$strict>;
1826
- }, z.core.$strict>], "mode">;
1827
- usage: z.ZodObject<{
1828
- costUsd: z.ZodNumber;
1829
- inputTokens: z.ZodNumber;
1830
- outputTokens: z.ZodNumber;
1831
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1832
- modelCalls: z.ZodNumber;
1833
- }, z.core.$strict>;
1834
- modelUsage: z.ZodObject<{
1835
- resolved: z.ZodObject<{
1836
- requested: z.ZodString;
1837
- provider: z.ZodString;
1838
- model: z.ZodString;
1839
- snapshot: z.ZodString;
1840
- reasoningEffort: z.ZodEnum<{
1841
- none: "none";
1842
- minimal: "minimal";
1843
- low: "low";
1844
- medium: "medium";
1845
- high: "high";
1846
- xhigh: "xhigh";
1847
- ultracode: "ultracode";
1848
- }>;
1849
- }, z.core.$strict>;
1850
- usage: z.ZodObject<{
1851
- costUsd: z.ZodNumber;
1852
- inputTokens: z.ZodNumber;
1853
- outputTokens: z.ZodNumber;
1854
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1855
- modelCalls: z.ZodNumber;
1856
- }, z.core.$strict>;
1857
- }, z.core.$strict>;
1858
- trace: z.ZodObject<{
1859
- schemaVersion: z.ZodLiteral<1>;
1860
- artifact: z.ZodUnion<readonly [z.ZodObject<{
1861
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1862
- kind: z.ZodLiteral<"s3">;
1863
- bucket: z.ZodString;
1864
- key: z.ZodString;
1865
- region: z.ZodOptional<z.ZodString>;
1866
- }, z.core.$strict>, z.ZodObject<{
1867
- kind: z.ZodLiteral<"ipfs">;
1868
- cid: z.ZodString;
1869
- path: z.ZodOptional<z.ZodString>;
1870
- }, z.core.$strict>], "kind">;
1871
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1872
- byteLength: z.ZodNumber;
1873
- }, z.core.$strict>, z.ZodObject<{
1874
- encoding: z.ZodLiteral<"base64">;
1875
- content: z.ZodString;
1876
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1877
- byteLength: z.ZodNumber;
1878
- }, z.core.$strict>]>;
1879
- eventCount: z.ZodNumber;
1880
- modelCallCount: z.ZodNumber;
1881
- }, z.core.$strict>;
1882
- termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1883
- kind: z.ZodLiteral<"exit">;
1884
- exitCode: z.ZodNumber;
1885
- }, z.core.$strict>, z.ZodObject<{
1886
- kind: z.ZodLiteral<"timeout">;
1887
- timeoutMs: z.ZodNumber;
1888
- }, z.core.$strict>, z.ZodObject<{
1889
- kind: z.ZodLiteral<"signal">;
1890
- signal: z.ZodString;
1891
- }, z.core.$strict>, z.ZodObject<{
1892
- kind: z.ZodLiteral<"cancelled">;
1893
- }, z.core.$strict>], "kind">;
1894
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1895
- }, z.core.$strict>;
1896
- /** Parses both receipt generations without changing the original V1 export. */
1897
- export declare const agentCandidateRunReceiptAnyVersionSchema: z.ZodUnion<readonly [z.ZodObject<{
1898
- schemaVersion: z.ZodLiteral<1>;
1899
- kind: z.ZodLiteral<"agent-candidate-run">;
1900
- digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1901
- bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1902
- materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1903
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1904
- memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1905
- mode: z.ZodLiteral<"disabled">;
1906
- }, z.core.$strict>, z.ZodObject<{
1907
- mode: z.ZodLiteral<"isolated">;
1908
- scope: z.ZodLiteral<"task">;
1909
- effectiveNamespace: z.ZodString;
1910
- resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1911
- beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1912
- afterState: z.ZodObject<{
1913
- schemaVersion: z.ZodLiteral<1>;
1914
- kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1915
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1916
- material: z.ZodObject<{
1917
- schemaVersion: z.ZodLiteral<1>;
1918
- kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1919
- files: z.ZodArray<z.ZodObject<{
1920
- path: z.ZodString;
1921
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1922
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1923
- byteLength: z.ZodNumber;
1924
- }, z.core.$strict>>;
1925
- }, z.core.$strict>;
1926
- manifest: z.ZodUnion<readonly [z.ZodObject<{
1927
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1928
- kind: z.ZodLiteral<"s3">;
1929
- bucket: z.ZodString;
1930
- key: z.ZodString;
1931
- region: z.ZodOptional<z.ZodString>;
1932
- }, z.core.$strict>, z.ZodObject<{
1933
- kind: z.ZodLiteral<"ipfs">;
1934
- cid: z.ZodString;
1935
- path: z.ZodOptional<z.ZodString>;
1936
- }, z.core.$strict>], "kind">;
1937
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1938
- byteLength: z.ZodNumber;
1939
- }, z.core.$strict>, z.ZodObject<{
1940
- encoding: z.ZodLiteral<"base64">;
1941
- content: z.ZodString;
1942
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1943
- byteLength: z.ZodNumber;
1944
- }, z.core.$strict>]>;
1945
- archive: z.ZodUnion<readonly [z.ZodObject<{
1946
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1947
- kind: z.ZodLiteral<"s3">;
1948
- bucket: z.ZodString;
1949
- key: z.ZodString;
1950
- region: z.ZodOptional<z.ZodString>;
1951
- }, z.core.$strict>, z.ZodObject<{
1952
- kind: z.ZodLiteral<"ipfs">;
1953
- cid: z.ZodString;
1954
- path: z.ZodOptional<z.ZodString>;
1955
- }, z.core.$strict>], "kind">;
1956
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1957
- byteLength: z.ZodNumber;
1958
- }, z.core.$strict>, z.ZodObject<{
1959
- encoding: z.ZodLiteral<"base64">;
1960
- content: z.ZodString;
1961
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1962
- byteLength: z.ZodNumber;
1963
- }, z.core.$strict>]>;
1964
- }, z.core.$strict>;
1965
- }, z.core.$strict>], "mode">;
1966
- usage: z.ZodObject<{
1967
- costUsd: z.ZodNumber;
1968
- inputTokens: z.ZodNumber;
1969
- outputTokens: z.ZodNumber;
1970
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1971
- modelCalls: z.ZodNumber;
1972
- }, z.core.$strict>;
1973
- modelUsage: z.ZodObject<{
1974
- resolved: z.ZodObject<{
1975
- requested: z.ZodString;
1976
- provider: z.ZodString;
1977
- model: z.ZodString;
1978
- snapshot: z.ZodString;
1979
- reasoningEffort: z.ZodEnum<{
1980
- none: "none";
1981
- minimal: "minimal";
1982
- low: "low";
1983
- medium: "medium";
1984
- high: "high";
1985
- xhigh: "xhigh";
1986
- ultracode: "ultracode";
1987
- }>;
1988
- }, z.core.$strict>;
1989
- usage: z.ZodObject<{
1990
- costUsd: z.ZodNumber;
1991
- inputTokens: z.ZodNumber;
1992
- outputTokens: z.ZodNumber;
1993
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1994
- modelCalls: z.ZodNumber;
1995
- }, z.core.$strict>;
1996
- }, z.core.$strict>;
1997
- trace: z.ZodObject<{
1998
- schemaVersion: z.ZodLiteral<1>;
1999
- artifact: z.ZodUnion<readonly [z.ZodObject<{
2000
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2001
- kind: z.ZodLiteral<"s3">;
2002
- bucket: z.ZodString;
2003
- key: z.ZodString;
2004
- region: z.ZodOptional<z.ZodString>;
2005
- }, z.core.$strict>, z.ZodObject<{
2006
- kind: z.ZodLiteral<"ipfs">;
2007
- cid: z.ZodString;
2008
- path: z.ZodOptional<z.ZodString>;
2009
- }, z.core.$strict>], "kind">;
2010
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2011
- byteLength: z.ZodNumber;
2012
- }, z.core.$strict>, z.ZodObject<{
2013
- encoding: z.ZodLiteral<"base64">;
2014
- content: z.ZodString;
2015
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2016
- byteLength: z.ZodNumber;
2017
- }, z.core.$strict>]>;
2018
- eventCount: z.ZodNumber;
2019
- modelCallCount: z.ZodNumber;
2020
- }, z.core.$strict>;
2021
- termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
2022
- kind: z.ZodLiteral<"exit">;
2023
- exitCode: z.ZodNumber;
2024
- }, z.core.$strict>, z.ZodObject<{
2025
- kind: z.ZodLiteral<"timeout">;
2026
- timeoutMs: z.ZodNumber;
2027
- }, z.core.$strict>, z.ZodObject<{
2028
- kind: z.ZodLiteral<"signal">;
2029
- signal: z.ZodString;
2030
- }, z.core.$strict>, z.ZodObject<{
2031
- kind: z.ZodLiteral<"cancelled">;
2032
- }, z.core.$strict>], "kind">;
2033
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2034
- }, z.core.$strict>, z.ZodObject<{
2035
- schemaVersion: z.ZodLiteral<2>;
2036
- kind: z.ZodLiteral<"agent-candidate-run">;
2037
- digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
2038
- bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2039
- materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2040
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2041
- memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2042
- mode: z.ZodLiteral<"disabled">;
2043
- }, z.core.$strict>, z.ZodObject<{
2044
- mode: z.ZodLiteral<"isolated">;
2045
- scope: z.ZodLiteral<"task">;
2046
- effectiveNamespace: z.ZodString;
2047
- resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2048
- beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2049
- afterState: z.ZodObject<{
2050
- schemaVersion: z.ZodLiteral<1>;
2051
- kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
2052
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2053
- material: z.ZodObject<{
2054
- schemaVersion: z.ZodLiteral<1>;
2055
- kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
2056
- files: z.ZodArray<z.ZodObject<{
2057
- path: z.ZodString;
2058
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
2059
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2060
- byteLength: z.ZodNumber;
2061
- }, z.core.$strict>>;
2062
- }, z.core.$strict>;
2063
- manifest: z.ZodUnion<readonly [z.ZodObject<{
2064
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2065
- kind: z.ZodLiteral<"s3">;
2066
- bucket: z.ZodString;
2067
- key: z.ZodString;
2068
- region: z.ZodOptional<z.ZodString>;
2069
- }, z.core.$strict>, z.ZodObject<{
2070
- kind: z.ZodLiteral<"ipfs">;
2071
- cid: z.ZodString;
2072
- path: z.ZodOptional<z.ZodString>;
2073
- }, z.core.$strict>], "kind">;
2074
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2075
- byteLength: z.ZodNumber;
2076
- }, z.core.$strict>, z.ZodObject<{
2077
- encoding: z.ZodLiteral<"base64">;
2078
- content: z.ZodString;
2079
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2080
- byteLength: z.ZodNumber;
2081
- }, z.core.$strict>]>;
2082
- archive: z.ZodUnion<readonly [z.ZodObject<{
2083
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2084
- kind: z.ZodLiteral<"s3">;
2085
- bucket: z.ZodString;
2086
- key: z.ZodString;
2087
- region: z.ZodOptional<z.ZodString>;
2088
- }, z.core.$strict>, z.ZodObject<{
2089
- kind: z.ZodLiteral<"ipfs">;
2090
- cid: z.ZodString;
2091
- path: z.ZodOptional<z.ZodString>;
2092
- }, z.core.$strict>], "kind">;
2093
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2094
- byteLength: z.ZodNumber;
2095
- }, z.core.$strict>, z.ZodObject<{
2096
- encoding: z.ZodLiteral<"base64">;
2097
- content: z.ZodString;
2098
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2099
- byteLength: z.ZodNumber;
2100
- }, z.core.$strict>]>;
2101
- }, z.core.$strict>;
2102
- }, z.core.$strict>], "mode">;
2103
- usage: z.ZodObject<{
2104
- costUsd: z.ZodNumber;
2105
- inputTokens: z.ZodNumber;
2106
- outputTokens: z.ZodNumber;
2107
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2108
- modelCalls: z.ZodNumber;
2109
- }, z.core.$strict>;
2110
- modelUsage: z.ZodObject<{
2111
- resolved: z.ZodObject<{
2112
- requested: z.ZodString;
2113
- provider: z.ZodString;
2114
- model: z.ZodString;
2115
- snapshot: z.ZodString;
2116
- reasoningEffort: z.ZodEnum<{
2117
- none: "none";
2118
- minimal: "minimal";
2119
- low: "low";
2120
- medium: "medium";
2121
- high: "high";
2122
- xhigh: "xhigh";
2123
- ultracode: "ultracode";
2124
- }>;
2125
- }, z.core.$strict>;
2126
- usage: z.ZodObject<{
2127
- costUsd: z.ZodNumber;
2128
- inputTokens: z.ZodNumber;
2129
- outputTokens: z.ZodNumber;
2130
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2131
- modelCalls: z.ZodNumber;
2132
- }, z.core.$strict>;
2133
- }, z.core.$strict>;
2134
- trace: z.ZodObject<{
2135
- schemaVersion: z.ZodLiteral<1>;
2136
- artifact: z.ZodUnion<readonly [z.ZodObject<{
2137
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2138
- kind: z.ZodLiteral<"s3">;
2139
- bucket: z.ZodString;
2140
- key: z.ZodString;
2141
- region: z.ZodOptional<z.ZodString>;
2142
- }, z.core.$strict>, z.ZodObject<{
2143
- kind: z.ZodLiteral<"ipfs">;
2144
- cid: z.ZodString;
2145
- path: z.ZodOptional<z.ZodString>;
2146
- }, z.core.$strict>], "kind">;
2147
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2148
- byteLength: z.ZodNumber;
2149
- }, z.core.$strict>, z.ZodObject<{
2150
- encoding: z.ZodLiteral<"base64">;
2151
- content: z.ZodString;
2152
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2153
- byteLength: z.ZodNumber;
2154
- }, z.core.$strict>]>;
2155
- eventCount: z.ZodNumber;
2156
- modelCallCount: z.ZodNumber;
2157
- }, z.core.$strict>;
2158
- termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
2159
- kind: z.ZodLiteral<"exit">;
2160
- exitCode: z.ZodNumber;
2161
- }, z.core.$strict>, z.ZodObject<{
2162
- kind: z.ZodLiteral<"timeout">;
2163
- timeoutMs: z.ZodNumber;
2164
- }, z.core.$strict>, z.ZodObject<{
2165
- kind: z.ZodLiteral<"signal">;
2166
- signal: z.ZodString;
2167
- }, z.core.$strict>, z.ZodObject<{
2168
- kind: z.ZodLiteral<"cancelled">;
2169
- }, z.core.$strict>], "kind">;
2170
- fixedUsage: z.ZodObject<{
2171
- inputTokens: z.ZodNumber;
2172
- outputTokens: z.ZodNumber;
2173
- cachedInputTokens: z.ZodNumber;
2174
- reasoningTokens: z.ZodNumber;
2175
- modelCalls: z.ZodNumber;
2176
- costUsdNanos: z.ZodNumber;
2177
- }, z.core.$strict>;
2178
- modelSettlement: z.ZodObject<{
2179
- schemaVersion: z.ZodLiteral<1>;
2180
- kind: z.ZodLiteral<"agent-candidate-model-settlement">;
2181
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2182
- material: z.ZodType<{
2183
- calls: {
2184
- callId: string;
2185
- traceSpanId: string;
2186
- model: string;
2187
- inputTokens: number;
2188
- outputTokens: number;
2189
- cachedInputTokens: number;
2190
- reasoningTokens: number;
2191
- costUsdNanos: number;
2192
- }[];
2193
- kind: "agent-candidate-model-settlement-material";
2194
- executionPlanDigest: `sha256:${string}`;
2195
- preparationId: string;
2196
- grantDigest: `sha256:${string}`;
2197
- closed: true;
2198
- resolved: {
2199
- requested: string;
2200
- provider: string;
2201
- model: string;
2202
- snapshot: string;
2203
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2204
- };
2205
- usage: {
2206
- inputTokens: number;
2207
- outputTokens: number;
2208
- cachedInputTokens: number;
2209
- reasoningTokens: number;
2210
- modelCalls: number;
2211
- costUsdNanos: number;
2212
- };
2213
- schemaVersion: 1;
2214
- } | {
2215
- calls: {
2216
- callId: string;
2217
- generationId: string;
2218
- traceSpanId: string;
2219
- status: "succeeded" | "failed";
2220
- model: string;
2221
- startedAtMs: number;
2222
- endedAtMs: number;
2223
- inputTokens: number;
2224
- outputTokens: number;
2225
- cachedInputTokens: number;
2226
- reasoningTokens: number;
2227
- costUsdNanos: number;
2228
- }[];
2229
- kind: "agent-candidate-model-settlement-material";
2230
- executionPlanDigest: `sha256:${string}`;
2231
- preparationId: string;
2232
- grantDigest: `sha256:${string}`;
2233
- closed: true;
2234
- resolved: {
2235
- requested: string;
2236
- provider: string;
2237
- model: string;
2238
- snapshot: string;
2239
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2240
- };
2241
- usage: {
2242
- inputTokens: number;
2243
- outputTokens: number;
2244
- cachedInputTokens: number;
2245
- reasoningTokens: number;
2246
- modelCalls: number;
2247
- costUsdNanos: number;
2248
- };
2249
- schemaVersion: 2;
2250
- }, unknown, z.core.$ZodTypeInternals<{
2251
- calls: {
2252
- callId: string;
2253
- traceSpanId: string;
2254
- model: string;
2255
- inputTokens: number;
2256
- outputTokens: number;
2257
- cachedInputTokens: number;
2258
- reasoningTokens: number;
2259
- costUsdNanos: number;
2260
- }[];
2261
- kind: "agent-candidate-model-settlement-material";
2262
- executionPlanDigest: `sha256:${string}`;
2263
- preparationId: string;
2264
- grantDigest: `sha256:${string}`;
2265
- closed: true;
2266
- resolved: {
2267
- requested: string;
2268
- provider: string;
2269
- model: string;
2270
- snapshot: string;
2271
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2272
- };
2273
- usage: {
2274
- inputTokens: number;
2275
- outputTokens: number;
2276
- cachedInputTokens: number;
2277
- reasoningTokens: number;
2278
- modelCalls: number;
2279
- costUsdNanos: number;
2280
- };
2281
- schemaVersion: 1;
2282
- } | {
2283
- calls: {
2284
- callId: string;
2285
- generationId: string;
2286
- traceSpanId: string;
2287
- status: "succeeded" | "failed";
2288
- model: string;
2289
- startedAtMs: number;
2290
- endedAtMs: number;
2291
- inputTokens: number;
2292
- outputTokens: number;
2293
- cachedInputTokens: number;
2294
- reasoningTokens: number;
2295
- costUsdNanos: number;
2296
- }[];
2297
- kind: "agent-candidate-model-settlement-material";
2298
- executionPlanDigest: `sha256:${string}`;
2299
- preparationId: string;
2300
- grantDigest: `sha256:${string}`;
2301
- closed: true;
2302
- resolved: {
2303
- requested: string;
2304
- provider: string;
2305
- model: string;
2306
- snapshot: string;
2307
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2308
- };
2309
- usage: {
2310
- inputTokens: number;
2311
- outputTokens: number;
2312
- cachedInputTokens: number;
2313
- reasoningTokens: number;
2314
- modelCalls: number;
2315
- costUsdNanos: number;
2316
- };
2317
- schemaVersion: 2;
2318
- }, unknown>>;
2319
- artifact: z.ZodUnion<readonly [z.ZodObject<{
2320
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2321
- kind: z.ZodLiteral<"s3">;
2322
- bucket: z.ZodString;
2323
- key: z.ZodString;
2324
- region: z.ZodOptional<z.ZodString>;
2325
- }, z.core.$strict>, z.ZodObject<{
2326
- kind: z.ZodLiteral<"ipfs">;
2327
- cid: z.ZodString;
2328
- path: z.ZodOptional<z.ZodString>;
2329
- }, z.core.$strict>], "kind">;
2330
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2331
- byteLength: z.ZodNumber;
2332
- }, z.core.$strict>, z.ZodObject<{
2333
- encoding: z.ZodLiteral<"base64">;
2334
- content: z.ZodString;
2335
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2336
- byteLength: z.ZodNumber;
2337
- }, z.core.$strict>]>;
2338
- }, z.core.$strict>;
2339
- taskOutcome: z.ZodObject<{
2340
- schemaVersion: z.ZodLiteral<1>;
2341
- kind: z.ZodLiteral<"agent-candidate-task-outcome">;
2342
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2343
- material: z.ZodType<{
2344
- schemaVersion: 1;
2345
- kind: "agent-candidate-task-outcome-material";
2346
- executionPlanDigest: `sha256:${string}`;
2347
- baseRepository: {
2348
- identity: string;
2349
- rootIdentity: string;
2350
- commit: string;
2351
- tree: string;
2352
- };
2353
- resultRepository: {
2354
- identity: string;
2355
- rootIdentity: string;
2356
- commit: string;
2357
- tree: string;
2358
- };
2359
- afterState: {
2360
- schemaVersion: 1;
2361
- kind: "agent-candidate-workspace-snapshot";
2362
- digest: `sha256:${string}`;
2363
- material: {
2364
- schemaVersion: 1;
2365
- kind: "agent-candidate-workspace-manifest";
2366
- files: {
2367
- path: string;
2368
- mode: 420 | 493;
1214
+ resultRepository: {
1215
+ identity: string;
1216
+ rootIdentity: string;
1217
+ commit: string;
1218
+ tree: string;
1219
+ };
1220
+ afterState: {
1221
+ schemaVersion: 2;
1222
+ kind: "agent-candidate-workspace-snapshot";
1223
+ digest: `sha256:${string}`;
1224
+ material: {
1225
+ schemaVersion: 2;
1226
+ kind: "agent-candidate-workspace-manifest";
1227
+ files: {
1228
+ path: string;
1229
+ mode: number;
1230
+ sha256: `sha256:${string}`;
1231
+ byteLength: number;
1232
+ }[];
1233
+ };
1234
+ manifest: {
1235
+ locator: {
1236
+ kind: "s3";
1237
+ bucket: string;
1238
+ key: string;
1239
+ region?: string | undefined;
1240
+ } | {
1241
+ kind: "ipfs";
1242
+ cid: string;
1243
+ path?: string | undefined;
1244
+ };
2369
1245
  sha256: `sha256:${string}`;
2370
1246
  byteLength: number;
2371
- }[];
2372
- };
2373
- manifest: {
2374
- locator: {
2375
- kind: "s3";
2376
- bucket: string;
2377
- key: string;
2378
- region?: string | undefined;
2379
1247
  } | {
2380
- kind: "ipfs";
2381
- cid: string;
2382
- path?: string | undefined;
1248
+ encoding: "base64";
1249
+ content: string;
1250
+ sha256: `sha256:${string}`;
1251
+ byteLength: number;
2383
1252
  };
2384
- sha256: `sha256:${string}`;
2385
- byteLength: number;
2386
- } | {
2387
- encoding: "base64";
2388
- content: string;
2389
- sha256: `sha256:${string}`;
2390
- byteLength: number;
2391
- };
2392
- archive: {
2393
- locator: {
2394
- kind: "s3";
2395
- bucket: string;
2396
- key: string;
2397
- region?: string | undefined;
1253
+ archive: {
1254
+ locator: {
1255
+ kind: "s3";
1256
+ bucket: string;
1257
+ key: string;
1258
+ region?: string | undefined;
1259
+ } | {
1260
+ kind: "ipfs";
1261
+ cid: string;
1262
+ path?: string | undefined;
1263
+ };
1264
+ sha256: `sha256:${string}`;
1265
+ byteLength: number;
2398
1266
  } | {
2399
- kind: "ipfs";
2400
- cid: string;
2401
- path?: string | undefined;
1267
+ encoding: "base64";
1268
+ content: string;
1269
+ sha256: `sha256:${string}`;
1270
+ byteLength: number;
2402
1271
  };
2403
- sha256: `sha256:${string}`;
2404
- byteLength: number;
2405
- } | {
2406
- encoding: "base64";
2407
- content: string;
2408
- sha256: `sha256:${string}`;
2409
- byteLength: number;
2410
1272
  };
2411
- };
2412
- gitDiff: {
2413
- format: "git-diff-binary";
1273
+ gitDiff: {
1274
+ format: "git-diff-binary";
1275
+ artifact: {
1276
+ locator: {
1277
+ kind: "s3";
1278
+ bucket: string;
1279
+ key: string;
1280
+ region?: string | undefined;
1281
+ } | {
1282
+ kind: "ipfs";
1283
+ cid: string;
1284
+ path?: string | undefined;
1285
+ };
1286
+ sha256: `sha256:${string}`;
1287
+ byteLength: number;
1288
+ };
1289
+ };
1290
+ } | {
1291
+ kind: "output";
1292
+ spec: {
1293
+ mediaType: string;
1294
+ maxBytes: number;
1295
+ };
2414
1296
  artifact: {
2415
1297
  locator: {
2416
1298
  kind: "s3";
@@ -2427,76 +1309,99 @@ export declare const agentCandidateRunReceiptAnyVersionSchema: z.ZodUnion<readon
2427
1309
  };
2428
1310
  };
2429
1311
  }, unknown, z.core.$ZodTypeInternals<{
2430
- schemaVersion: 1;
1312
+ schemaVersion: 2;
2431
1313
  kind: "agent-candidate-task-outcome-material";
2432
1314
  executionPlanDigest: `sha256:${string}`;
2433
- baseRepository: {
2434
- identity: string;
2435
- rootIdentity: string;
2436
- commit: string;
2437
- tree: string;
2438
- };
2439
- resultRepository: {
2440
- identity: string;
2441
- rootIdentity: string;
2442
- commit: string;
2443
- tree: string;
2444
- };
2445
- afterState: {
2446
- schemaVersion: 1;
2447
- kind: "agent-candidate-workspace-snapshot";
2448
- digest: `sha256:${string}`;
2449
- material: {
2450
- schemaVersion: 1;
2451
- kind: "agent-candidate-workspace-manifest";
2452
- files: {
2453
- path: string;
2454
- mode: 420 | 493;
1315
+ outcome: {
1316
+ kind: "workspace";
1317
+ baseRepository: {
1318
+ identity: string;
1319
+ rootIdentity: string;
1320
+ commit: string;
1321
+ tree: string;
1322
+ };
1323
+ resultRepository: {
1324
+ identity: string;
1325
+ rootIdentity: string;
1326
+ commit: string;
1327
+ tree: string;
1328
+ };
1329
+ afterState: {
1330
+ schemaVersion: 2;
1331
+ kind: "agent-candidate-workspace-snapshot";
1332
+ digest: `sha256:${string}`;
1333
+ material: {
1334
+ schemaVersion: 2;
1335
+ kind: "agent-candidate-workspace-manifest";
1336
+ files: {
1337
+ path: string;
1338
+ mode: number;
1339
+ sha256: `sha256:${string}`;
1340
+ byteLength: number;
1341
+ }[];
1342
+ };
1343
+ manifest: {
1344
+ locator: {
1345
+ kind: "s3";
1346
+ bucket: string;
1347
+ key: string;
1348
+ region?: string | undefined;
1349
+ } | {
1350
+ kind: "ipfs";
1351
+ cid: string;
1352
+ path?: string | undefined;
1353
+ };
2455
1354
  sha256: `sha256:${string}`;
2456
1355
  byteLength: number;
2457
- }[];
2458
- };
2459
- manifest: {
2460
- locator: {
2461
- kind: "s3";
2462
- bucket: string;
2463
- key: string;
2464
- region?: string | undefined;
2465
1356
  } | {
2466
- kind: "ipfs";
2467
- cid: string;
2468
- path?: string | undefined;
1357
+ encoding: "base64";
1358
+ content: string;
1359
+ sha256: `sha256:${string}`;
1360
+ byteLength: number;
2469
1361
  };
2470
- sha256: `sha256:${string}`;
2471
- byteLength: number;
2472
- } | {
2473
- encoding: "base64";
2474
- content: string;
2475
- sha256: `sha256:${string}`;
2476
- byteLength: number;
2477
- };
2478
- archive: {
2479
- locator: {
2480
- kind: "s3";
2481
- bucket: string;
2482
- key: string;
2483
- region?: string | undefined;
1362
+ archive: {
1363
+ locator: {
1364
+ kind: "s3";
1365
+ bucket: string;
1366
+ key: string;
1367
+ region?: string | undefined;
1368
+ } | {
1369
+ kind: "ipfs";
1370
+ cid: string;
1371
+ path?: string | undefined;
1372
+ };
1373
+ sha256: `sha256:${string}`;
1374
+ byteLength: number;
2484
1375
  } | {
2485
- kind: "ipfs";
2486
- cid: string;
2487
- path?: string | undefined;
1376
+ encoding: "base64";
1377
+ content: string;
1378
+ sha256: `sha256:${string}`;
1379
+ byteLength: number;
2488
1380
  };
2489
- sha256: `sha256:${string}`;
2490
- byteLength: number;
2491
- } | {
2492
- encoding: "base64";
2493
- content: string;
2494
- sha256: `sha256:${string}`;
2495
- byteLength: number;
2496
1381
  };
2497
- };
2498
- gitDiff: {
2499
- format: "git-diff-binary";
1382
+ gitDiff: {
1383
+ format: "git-diff-binary";
1384
+ artifact: {
1385
+ locator: {
1386
+ kind: "s3";
1387
+ bucket: string;
1388
+ key: string;
1389
+ region?: string | undefined;
1390
+ } | {
1391
+ kind: "ipfs";
1392
+ cid: string;
1393
+ path?: string | undefined;
1394
+ };
1395
+ sha256: `sha256:${string}`;
1396
+ byteLength: number;
1397
+ };
1398
+ };
1399
+ } | {
1400
+ kind: "output";
1401
+ spec: {
1402
+ mediaType: string;
1403
+ maxBytes: number;
1404
+ };
2500
1405
  artifact: {
2501
1406
  locator: {
2502
1407
  kind: "s3";
@@ -2657,4 +1562,4 @@ export declare const agentCandidateRunReceiptAnyVersionSchema: z.ZodUnion<readon
2657
1562
  }, z.core.$strict>]>;
2658
1563
  }, z.core.$strict>;
2659
1564
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2660
- }, z.core.$strict>]>;
1565
+ }, z.core.$strict>;