@tangle-network/agent-interface 0.25.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import type { AgentCandidateFixedSpend } from "./agent-candidate.js";
3
2
  export declare const agentCandidateFixedSpendSchema: z.ZodObject<{
4
3
  inputTokens: z.ZodNumber;
5
4
  outputTokens: z.ZodNumber;
@@ -9,16 +8,6 @@ export declare const agentCandidateFixedSpendSchema: z.ZodObject<{
9
8
  costUsdNanos: z.ZodNumber;
10
9
  }, z.core.$strict>;
11
10
  export declare const agentCandidateModelSettlementCallSchema: z.ZodObject<{
12
- callId: z.ZodString;
13
- traceSpanId: z.ZodString;
14
- model: z.ZodString;
15
- inputTokens: z.ZodNumber;
16
- outputTokens: z.ZodNumber;
17
- cachedInputTokens: z.ZodNumber;
18
- reasoningTokens: z.ZodNumber;
19
- costUsdNanos: z.ZodNumber;
20
- }, z.core.$strict>;
21
- export declare const agentCandidateModelSettlementCallV2Schema: z.ZodObject<{
22
11
  callId: z.ZodString;
23
12
  generationId: z.ZodString;
24
13
  traceSpanId: z.ZodString;
@@ -35,48 +24,7 @@ export declare const agentCandidateModelSettlementCallV2Schema: z.ZodObject<{
35
24
  reasoningTokens: z.ZodNumber;
36
25
  costUsdNanos: z.ZodNumber;
37
26
  }, z.core.$strict>;
38
- export declare const agentCandidateModelSettlementMaterialV1Schema: z.ZodObject<{
39
- calls: z.ZodArray<z.ZodObject<{
40
- callId: z.ZodString;
41
- traceSpanId: z.ZodString;
42
- model: z.ZodString;
43
- inputTokens: z.ZodNumber;
44
- outputTokens: z.ZodNumber;
45
- cachedInputTokens: z.ZodNumber;
46
- reasoningTokens: z.ZodNumber;
47
- costUsdNanos: z.ZodNumber;
48
- }, z.core.$strict>>;
49
- kind: z.ZodLiteral<"agent-candidate-model-settlement-material">;
50
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
51
- preparationId: z.ZodString;
52
- grantDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
53
- closed: z.ZodLiteral<true>;
54
- resolved: z.ZodObject<{
55
- requested: z.ZodString;
56
- provider: z.ZodString;
57
- model: z.ZodString;
58
- snapshot: z.ZodString;
59
- reasoningEffort: z.ZodEnum<{
60
- none: "none";
61
- minimal: "minimal";
62
- low: "low";
63
- medium: "medium";
64
- high: "high";
65
- xhigh: "xhigh";
66
- ultracode: "ultracode";
67
- }>;
68
- }, z.core.$strict>;
69
- usage: z.ZodObject<{
70
- inputTokens: z.ZodNumber;
71
- outputTokens: z.ZodNumber;
72
- cachedInputTokens: z.ZodNumber;
73
- reasoningTokens: z.ZodNumber;
74
- modelCalls: z.ZodNumber;
75
- costUsdNanos: z.ZodNumber;
76
- }, z.core.$strict>;
77
- schemaVersion: z.ZodLiteral<1>;
78
- }, z.core.$strict>;
79
- export declare const agentCandidateModelSettlementMaterialV2Schema: z.ZodObject<{
27
+ export declare const agentCandidateModelSettlementMaterialSchema: z.ZodObject<{
80
28
  calls: z.ZodArray<z.ZodObject<{
81
29
  callId: z.ZodString;
82
30
  generationId: z.ZodString;
@@ -124,131 +72,11 @@ export declare const agentCandidateModelSettlementMaterialV2Schema: z.ZodObject<
124
72
  }, z.core.$strict>;
125
73
  schemaVersion: z.ZodLiteral<2>;
126
74
  }, z.core.$strict>;
127
- export declare const agentCandidateModelSettlementMaterialSchema: z.ZodUnion<readonly [z.ZodObject<{
128
- calls: z.ZodArray<z.ZodObject<{
129
- callId: z.ZodString;
130
- traceSpanId: z.ZodString;
131
- model: z.ZodString;
132
- inputTokens: z.ZodNumber;
133
- outputTokens: z.ZodNumber;
134
- cachedInputTokens: z.ZodNumber;
135
- reasoningTokens: z.ZodNumber;
136
- costUsdNanos: z.ZodNumber;
137
- }, z.core.$strict>>;
138
- kind: z.ZodLiteral<"agent-candidate-model-settlement-material">;
139
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
140
- preparationId: z.ZodString;
141
- grantDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
142
- closed: z.ZodLiteral<true>;
143
- resolved: z.ZodObject<{
144
- requested: z.ZodString;
145
- provider: z.ZodString;
146
- model: z.ZodString;
147
- snapshot: z.ZodString;
148
- reasoningEffort: z.ZodEnum<{
149
- none: "none";
150
- minimal: "minimal";
151
- low: "low";
152
- medium: "medium";
153
- high: "high";
154
- xhigh: "xhigh";
155
- ultracode: "ultracode";
156
- }>;
157
- }, z.core.$strict>;
158
- usage: z.ZodObject<{
159
- inputTokens: z.ZodNumber;
160
- outputTokens: z.ZodNumber;
161
- cachedInputTokens: z.ZodNumber;
162
- reasoningTokens: z.ZodNumber;
163
- modelCalls: z.ZodNumber;
164
- costUsdNanos: z.ZodNumber;
165
- }, z.core.$strict>;
166
- schemaVersion: z.ZodLiteral<1>;
167
- }, z.core.$strict>, z.ZodObject<{
168
- calls: z.ZodArray<z.ZodObject<{
169
- callId: z.ZodString;
170
- generationId: z.ZodString;
171
- traceSpanId: z.ZodString;
172
- status: z.ZodEnum<{
173
- succeeded: "succeeded";
174
- failed: "failed";
175
- }>;
176
- model: z.ZodString;
177
- startedAtMs: z.ZodNumber;
178
- endedAtMs: z.ZodNumber;
179
- inputTokens: z.ZodNumber;
180
- outputTokens: z.ZodNumber;
181
- cachedInputTokens: z.ZodNumber;
182
- reasoningTokens: z.ZodNumber;
183
- costUsdNanos: z.ZodNumber;
184
- }, z.core.$strict>>;
185
- kind: z.ZodLiteral<"agent-candidate-model-settlement-material">;
186
- executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
187
- preparationId: z.ZodString;
188
- grantDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
189
- closed: z.ZodLiteral<true>;
190
- resolved: z.ZodObject<{
191
- requested: z.ZodString;
192
- provider: z.ZodString;
193
- model: z.ZodString;
194
- snapshot: z.ZodString;
195
- reasoningEffort: z.ZodEnum<{
196
- none: "none";
197
- minimal: "minimal";
198
- low: "low";
199
- medium: "medium";
200
- high: "high";
201
- xhigh: "xhigh";
202
- ultracode: "ultracode";
203
- }>;
204
- }, z.core.$strict>;
205
- usage: z.ZodObject<{
206
- inputTokens: z.ZodNumber;
207
- outputTokens: z.ZodNumber;
208
- cachedInputTokens: z.ZodNumber;
209
- reasoningTokens: z.ZodNumber;
210
- modelCalls: z.ZodNumber;
211
- costUsdNanos: z.ZodNumber;
212
- }, z.core.$strict>;
213
- schemaVersion: z.ZodLiteral<2>;
214
- }, z.core.$strict>]>;
215
75
  export declare const agentCandidateModelSettlementEvidenceSchema: z.ZodObject<{
216
- schemaVersion: z.ZodLiteral<1>;
76
+ schemaVersion: z.ZodLiteral<2>;
217
77
  kind: z.ZodLiteral<"agent-candidate-model-settlement">;
218
78
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
219
79
  material: z.ZodType<{
220
- calls: {
221
- callId: string;
222
- traceSpanId: string;
223
- model: string;
224
- inputTokens: number;
225
- outputTokens: number;
226
- cachedInputTokens: number;
227
- reasoningTokens: number;
228
- costUsdNanos: number;
229
- }[];
230
- kind: "agent-candidate-model-settlement-material";
231
- executionPlanDigest: `sha256:${string}`;
232
- preparationId: string;
233
- grantDigest: `sha256:${string}`;
234
- closed: true;
235
- resolved: {
236
- requested: string;
237
- provider: string;
238
- model: string;
239
- snapshot: string;
240
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
241
- };
242
- usage: {
243
- inputTokens: number;
244
- outputTokens: number;
245
- cachedInputTokens: number;
246
- reasoningTokens: number;
247
- modelCalls: number;
248
- costUsdNanos: number;
249
- };
250
- schemaVersion: 1;
251
- } | {
252
80
  calls: {
253
81
  callId: string;
254
82
  generationId: string;
@@ -285,38 +113,6 @@ export declare const agentCandidateModelSettlementEvidenceSchema: z.ZodObject<{
285
113
  };
286
114
  schemaVersion: 2;
287
115
  }, unknown, z.core.$ZodTypeInternals<{
288
- calls: {
289
- callId: string;
290
- traceSpanId: string;
291
- model: string;
292
- inputTokens: number;
293
- outputTokens: number;
294
- cachedInputTokens: number;
295
- reasoningTokens: number;
296
- costUsdNanos: number;
297
- }[];
298
- kind: "agent-candidate-model-settlement-material";
299
- executionPlanDigest: `sha256:${string}`;
300
- preparationId: string;
301
- grantDigest: `sha256:${string}`;
302
- closed: true;
303
- resolved: {
304
- requested: string;
305
- provider: string;
306
- model: string;
307
- snapshot: string;
308
- reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
309
- };
310
- usage: {
311
- inputTokens: number;
312
- outputTokens: number;
313
- cachedInputTokens: number;
314
- reasoningTokens: number;
315
- modelCalls: number;
316
- costUsdNanos: number;
317
- };
318
- schemaVersion: 1;
319
- } | {
320
116
  calls: {
321
117
  callId: string;
322
118
  generationId: string;
@@ -380,76 +176,99 @@ export declare const agentCandidateRepositoryStateSchema: z.ZodObject<{
380
176
  tree: z.ZodString;
381
177
  }, z.core.$strict>;
382
178
  export declare const agentCandidateTaskOutcomeMaterialSchema: z.ZodObject<{
383
- schemaVersion: z.ZodLiteral<1>;
179
+ schemaVersion: z.ZodLiteral<2>;
384
180
  kind: z.ZodLiteral<"agent-candidate-task-outcome-material">;
385
181
  executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
386
- baseRepository: z.ZodObject<{
387
- identity: z.ZodString;
388
- rootIdentity: z.ZodString;
389
- commit: z.ZodString;
390
- tree: z.ZodString;
391
- }, z.core.$strict>;
392
- resultRepository: z.ZodObject<{
393
- identity: z.ZodString;
394
- rootIdentity: z.ZodString;
395
- commit: z.ZodString;
396
- tree: z.ZodString;
397
- }, z.core.$strict>;
398
- afterState: z.ZodObject<{
399
- schemaVersion: z.ZodLiteral<1>;
400
- kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
401
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
402
- material: z.ZodObject<{
403
- schemaVersion: z.ZodLiteral<1>;
404
- kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
405
- files: z.ZodArray<z.ZodObject<{
406
- path: z.ZodString;
407
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
182
+ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
183
+ kind: z.ZodLiteral<"workspace">;
184
+ baseRepository: z.ZodObject<{
185
+ identity: z.ZodString;
186
+ rootIdentity: z.ZodString;
187
+ commit: z.ZodString;
188
+ tree: z.ZodString;
189
+ }, z.core.$strict>;
190
+ resultRepository: z.ZodObject<{
191
+ identity: z.ZodString;
192
+ rootIdentity: z.ZodString;
193
+ commit: z.ZodString;
194
+ tree: z.ZodString;
195
+ }, z.core.$strict>;
196
+ afterState: z.ZodObject<{
197
+ schemaVersion: z.ZodLiteral<2>;
198
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
199
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
200
+ material: z.ZodObject<{
201
+ schemaVersion: z.ZodLiteral<2>;
202
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
203
+ files: z.ZodArray<z.ZodObject<{
204
+ path: z.ZodString;
205
+ mode: z.ZodNumber;
206
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
207
+ byteLength: z.ZodNumber;
208
+ }, z.core.$strict>>;
209
+ }, z.core.$strict>;
210
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
211
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ kind: z.ZodLiteral<"s3">;
213
+ bucket: z.ZodString;
214
+ key: z.ZodString;
215
+ region: z.ZodOptional<z.ZodString>;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ kind: z.ZodLiteral<"ipfs">;
218
+ cid: z.ZodString;
219
+ path: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strict>], "kind">;
408
221
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
409
222
  byteLength: z.ZodNumber;
410
- }, z.core.$strict>>;
411
- }, z.core.$strict>;
412
- manifest: z.ZodUnion<readonly [z.ZodObject<{
413
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
414
- kind: z.ZodLiteral<"s3">;
415
- bucket: z.ZodString;
416
- key: z.ZodString;
417
- region: z.ZodOptional<z.ZodString>;
418
223
  }, z.core.$strict>, z.ZodObject<{
419
- kind: z.ZodLiteral<"ipfs">;
420
- cid: z.ZodString;
421
- path: z.ZodOptional<z.ZodString>;
422
- }, z.core.$strict>], "kind">;
423
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
424
- byteLength: z.ZodNumber;
425
- }, z.core.$strict>, z.ZodObject<{
426
- encoding: z.ZodLiteral<"base64">;
427
- content: z.ZodString;
428
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
429
- byteLength: z.ZodNumber;
430
- }, z.core.$strict>]>;
431
- archive: z.ZodUnion<readonly [z.ZodObject<{
432
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
433
- kind: z.ZodLiteral<"s3">;
434
- bucket: z.ZodString;
435
- key: z.ZodString;
436
- region: z.ZodOptional<z.ZodString>;
224
+ encoding: z.ZodLiteral<"base64">;
225
+ content: z.ZodString;
226
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
227
+ byteLength: z.ZodNumber;
228
+ }, z.core.$strict>]>;
229
+ archive: z.ZodUnion<readonly [z.ZodObject<{
230
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
231
+ kind: z.ZodLiteral<"s3">;
232
+ bucket: z.ZodString;
233
+ key: z.ZodString;
234
+ region: z.ZodOptional<z.ZodString>;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"ipfs">;
237
+ cid: z.ZodString;
238
+ path: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strict>], "kind">;
240
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
241
+ byteLength: z.ZodNumber;
437
242
  }, z.core.$strict>, z.ZodObject<{
438
- kind: z.ZodLiteral<"ipfs">;
439
- cid: z.ZodString;
440
- path: z.ZodOptional<z.ZodString>;
441
- }, z.core.$strict>], "kind">;
442
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
443
- byteLength: z.ZodNumber;
444
- }, z.core.$strict>, z.ZodObject<{
445
- encoding: z.ZodLiteral<"base64">;
446
- content: z.ZodString;
447
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
448
- byteLength: z.ZodNumber;
449
- }, z.core.$strict>]>;
450
- }, z.core.$strict>;
451
- gitDiff: z.ZodObject<{
452
- format: z.ZodLiteral<"git-diff-binary">;
243
+ encoding: z.ZodLiteral<"base64">;
244
+ content: z.ZodString;
245
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
246
+ byteLength: z.ZodNumber;
247
+ }, z.core.$strict>]>;
248
+ }, z.core.$strict>;
249
+ gitDiff: z.ZodObject<{
250
+ format: z.ZodLiteral<"git-diff-binary">;
251
+ artifact: z.ZodObject<{
252
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
+ kind: z.ZodLiteral<"s3">;
254
+ bucket: z.ZodString;
255
+ key: z.ZodString;
256
+ region: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ kind: z.ZodLiteral<"ipfs">;
259
+ cid: z.ZodString;
260
+ path: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strict>], "kind">;
262
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
263
+ byteLength: z.ZodNumber;
264
+ }, z.core.$strict>;
265
+ }, z.core.$strict>;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ kind: z.ZodLiteral<"output">;
268
+ spec: z.ZodObject<{
269
+ mediaType: z.ZodString;
270
+ maxBytes: z.ZodNumber;
271
+ }, z.core.$strict>;
453
272
  artifact: z.ZodObject<{
454
273
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
455
274
  kind: z.ZodLiteral<"s3">;
@@ -464,83 +283,106 @@ export declare const agentCandidateTaskOutcomeMaterialSchema: z.ZodObject<{
464
283
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
465
284
  byteLength: z.ZodNumber;
466
285
  }, z.core.$strict>;
467
- }, z.core.$strict>;
286
+ }, z.core.$strict>], "kind">;
468
287
  }, z.core.$strict>;
469
288
  export declare const agentCandidateTaskOutcomeEvidenceSchema: z.ZodObject<{
470
- schemaVersion: z.ZodLiteral<1>;
289
+ schemaVersion: z.ZodLiteral<2>;
471
290
  kind: z.ZodLiteral<"agent-candidate-task-outcome">;
472
291
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
473
292
  material: z.ZodType<{
474
- schemaVersion: 1;
293
+ schemaVersion: 2;
475
294
  kind: "agent-candidate-task-outcome-material";
476
295
  executionPlanDigest: `sha256:${string}`;
477
- baseRepository: {
478
- identity: string;
479
- rootIdentity: string;
480
- commit: string;
481
- tree: string;
482
- };
483
- resultRepository: {
484
- identity: string;
485
- rootIdentity: string;
486
- commit: string;
487
- tree: string;
488
- };
489
- afterState: {
490
- schemaVersion: 1;
491
- kind: "agent-candidate-workspace-snapshot";
492
- digest: `sha256:${string}`;
493
- material: {
494
- schemaVersion: 1;
495
- kind: "agent-candidate-workspace-manifest";
496
- files: {
497
- path: string;
498
- mode: 420 | 493;
296
+ outcome: {
297
+ kind: "workspace";
298
+ baseRepository: {
299
+ identity: string;
300
+ rootIdentity: string;
301
+ commit: string;
302
+ tree: string;
303
+ };
304
+ resultRepository: {
305
+ identity: string;
306
+ rootIdentity: string;
307
+ commit: string;
308
+ tree: string;
309
+ };
310
+ afterState: {
311
+ schemaVersion: 2;
312
+ kind: "agent-candidate-workspace-snapshot";
313
+ digest: `sha256:${string}`;
314
+ material: {
315
+ schemaVersion: 2;
316
+ kind: "agent-candidate-workspace-manifest";
317
+ files: {
318
+ path: string;
319
+ mode: number;
320
+ sha256: `sha256:${string}`;
321
+ byteLength: number;
322
+ }[];
323
+ };
324
+ manifest: {
325
+ locator: {
326
+ kind: "s3";
327
+ bucket: string;
328
+ key: string;
329
+ region?: string | undefined;
330
+ } | {
331
+ kind: "ipfs";
332
+ cid: string;
333
+ path?: string | undefined;
334
+ };
499
335
  sha256: `sha256:${string}`;
500
336
  byteLength: number;
501
- }[];
502
- };
503
- manifest: {
504
- locator: {
505
- kind: "s3";
506
- bucket: string;
507
- key: string;
508
- region?: string | undefined;
509
337
  } | {
510
- kind: "ipfs";
511
- cid: string;
512
- path?: string | undefined;
338
+ encoding: "base64";
339
+ content: string;
340
+ sha256: `sha256:${string}`;
341
+ byteLength: number;
513
342
  };
514
- sha256: `sha256:${string}`;
515
- byteLength: number;
516
- } | {
517
- encoding: "base64";
518
- content: string;
519
- sha256: `sha256:${string}`;
520
- byteLength: number;
521
- };
522
- archive: {
523
- locator: {
524
- kind: "s3";
525
- bucket: string;
526
- key: string;
527
- region?: string | undefined;
343
+ archive: {
344
+ locator: {
345
+ kind: "s3";
346
+ bucket: string;
347
+ key: string;
348
+ region?: string | undefined;
349
+ } | {
350
+ kind: "ipfs";
351
+ cid: string;
352
+ path?: string | undefined;
353
+ };
354
+ sha256: `sha256:${string}`;
355
+ byteLength: number;
528
356
  } | {
529
- kind: "ipfs";
530
- cid: string;
531
- path?: string | undefined;
357
+ encoding: "base64";
358
+ content: string;
359
+ sha256: `sha256:${string}`;
360
+ byteLength: number;
532
361
  };
533
- sha256: `sha256:${string}`;
534
- byteLength: number;
535
- } | {
536
- encoding: "base64";
537
- content: string;
538
- sha256: `sha256:${string}`;
539
- byteLength: number;
540
362
  };
541
- };
542
- gitDiff: {
543
- format: "git-diff-binary";
363
+ gitDiff: {
364
+ format: "git-diff-binary";
365
+ artifact: {
366
+ locator: {
367
+ kind: "s3";
368
+ bucket: string;
369
+ key: string;
370
+ region?: string | undefined;
371
+ } | {
372
+ kind: "ipfs";
373
+ cid: string;
374
+ path?: string | undefined;
375
+ };
376
+ sha256: `sha256:${string}`;
377
+ byteLength: number;
378
+ };
379
+ };
380
+ } | {
381
+ kind: "output";
382
+ spec: {
383
+ mediaType: string;
384
+ maxBytes: number;
385
+ };
544
386
  artifact: {
545
387
  locator: {
546
388
  kind: "s3";
@@ -557,76 +399,99 @@ export declare const agentCandidateTaskOutcomeEvidenceSchema: z.ZodObject<{
557
399
  };
558
400
  };
559
401
  }, unknown, z.core.$ZodTypeInternals<{
560
- schemaVersion: 1;
402
+ schemaVersion: 2;
561
403
  kind: "agent-candidate-task-outcome-material";
562
404
  executionPlanDigest: `sha256:${string}`;
563
- baseRepository: {
564
- identity: string;
565
- rootIdentity: string;
566
- commit: string;
567
- tree: string;
568
- };
569
- resultRepository: {
570
- identity: string;
571
- rootIdentity: string;
572
- commit: string;
573
- tree: string;
574
- };
575
- afterState: {
576
- schemaVersion: 1;
577
- kind: "agent-candidate-workspace-snapshot";
578
- digest: `sha256:${string}`;
579
- material: {
580
- schemaVersion: 1;
581
- kind: "agent-candidate-workspace-manifest";
582
- files: {
583
- path: string;
584
- mode: 420 | 493;
405
+ outcome: {
406
+ kind: "workspace";
407
+ baseRepository: {
408
+ identity: string;
409
+ rootIdentity: string;
410
+ commit: string;
411
+ tree: string;
412
+ };
413
+ resultRepository: {
414
+ identity: string;
415
+ rootIdentity: string;
416
+ commit: string;
417
+ tree: string;
418
+ };
419
+ afterState: {
420
+ schemaVersion: 2;
421
+ kind: "agent-candidate-workspace-snapshot";
422
+ digest: `sha256:${string}`;
423
+ material: {
424
+ schemaVersion: 2;
425
+ kind: "agent-candidate-workspace-manifest";
426
+ files: {
427
+ path: string;
428
+ mode: number;
429
+ sha256: `sha256:${string}`;
430
+ byteLength: number;
431
+ }[];
432
+ };
433
+ manifest: {
434
+ locator: {
435
+ kind: "s3";
436
+ bucket: string;
437
+ key: string;
438
+ region?: string | undefined;
439
+ } | {
440
+ kind: "ipfs";
441
+ cid: string;
442
+ path?: string | undefined;
443
+ };
585
444
  sha256: `sha256:${string}`;
586
445
  byteLength: number;
587
- }[];
588
- };
589
- manifest: {
590
- locator: {
591
- kind: "s3";
592
- bucket: string;
593
- key: string;
594
- region?: string | undefined;
595
446
  } | {
596
- kind: "ipfs";
597
- cid: string;
598
- path?: string | undefined;
447
+ encoding: "base64";
448
+ content: string;
449
+ sha256: `sha256:${string}`;
450
+ byteLength: number;
599
451
  };
600
- sha256: `sha256:${string}`;
601
- byteLength: number;
602
- } | {
603
- encoding: "base64";
604
- content: string;
605
- sha256: `sha256:${string}`;
606
- byteLength: number;
607
- };
608
- archive: {
609
- locator: {
610
- kind: "s3";
611
- bucket: string;
612
- key: string;
613
- region?: string | undefined;
452
+ archive: {
453
+ locator: {
454
+ kind: "s3";
455
+ bucket: string;
456
+ key: string;
457
+ region?: string | undefined;
458
+ } | {
459
+ kind: "ipfs";
460
+ cid: string;
461
+ path?: string | undefined;
462
+ };
463
+ sha256: `sha256:${string}`;
464
+ byteLength: number;
614
465
  } | {
615
- kind: "ipfs";
616
- cid: string;
617
- path?: string | undefined;
466
+ encoding: "base64";
467
+ content: string;
468
+ sha256: `sha256:${string}`;
469
+ byteLength: number;
618
470
  };
619
- sha256: `sha256:${string}`;
620
- byteLength: number;
621
- } | {
622
- encoding: "base64";
623
- content: string;
624
- sha256: `sha256:${string}`;
625
- byteLength: number;
626
471
  };
627
- };
628
- gitDiff: {
629
- format: "git-diff-binary";
472
+ gitDiff: {
473
+ format: "git-diff-binary";
474
+ artifact: {
475
+ locator: {
476
+ kind: "s3";
477
+ bucket: string;
478
+ key: string;
479
+ region?: string | undefined;
480
+ } | {
481
+ kind: "ipfs";
482
+ cid: string;
483
+ path?: string | undefined;
484
+ };
485
+ sha256: `sha256:${string}`;
486
+ byteLength: number;
487
+ };
488
+ };
489
+ } | {
490
+ kind: "output";
491
+ spec: {
492
+ mediaType: string;
493
+ maxBytes: number;
494
+ };
630
495
  artifact: {
631
496
  locator: {
632
497
  kind: "s3";
@@ -840,4 +705,3 @@ export declare const agentCandidateBenchmarkResultEvidenceSchema: z.ZodObject<{
840
705
  byteLength: z.ZodNumber;
841
706
  }, z.core.$strict>]>;
842
707
  }, z.core.$strict>;
843
- export declare function sameFixedSpend(left: AgentCandidateFixedSpend, right: AgentCandidateFixedSpend): boolean;