@tangle-network/agent-interface 0.21.0 → 0.22.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.
@@ -1079,3 +1079,1390 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1079
1079
  }, z.core.$strict>], "kind">;
1080
1080
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1081
1081
  }, z.core.$strict>;
1082
+ export declare const agentCandidateRunReceiptV2Schema: z.ZodObject<{
1083
+ schemaVersion: z.ZodLiteral<2>;
1084
+ kind: z.ZodLiteral<"agent-candidate-run">;
1085
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1086
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1087
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1088
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1089
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1090
+ mode: z.ZodLiteral<"disabled">;
1091
+ }, z.core.$strict>, z.ZodObject<{
1092
+ mode: z.ZodLiteral<"isolated">;
1093
+ scope: z.ZodLiteral<"task">;
1094
+ effectiveNamespace: z.ZodString;
1095
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1096
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1097
+ afterState: z.ZodObject<{
1098
+ schemaVersion: z.ZodLiteral<1>;
1099
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1100
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1101
+ material: z.ZodObject<{
1102
+ schemaVersion: z.ZodLiteral<1>;
1103
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1104
+ files: z.ZodArray<z.ZodObject<{
1105
+ path: z.ZodString;
1106
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1107
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1108
+ byteLength: z.ZodNumber;
1109
+ }, z.core.$strict>>;
1110
+ }, z.core.$strict>;
1111
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1112
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1113
+ kind: z.ZodLiteral<"s3">;
1114
+ bucket: z.ZodString;
1115
+ key: z.ZodString;
1116
+ region: z.ZodOptional<z.ZodString>;
1117
+ }, z.core.$strict>, z.ZodObject<{
1118
+ kind: z.ZodLiteral<"ipfs">;
1119
+ cid: z.ZodString;
1120
+ path: z.ZodOptional<z.ZodString>;
1121
+ }, z.core.$strict>], "kind">;
1122
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1123
+ byteLength: z.ZodNumber;
1124
+ }, z.core.$strict>, z.ZodObject<{
1125
+ encoding: z.ZodLiteral<"base64">;
1126
+ content: z.ZodString;
1127
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1128
+ byteLength: z.ZodNumber;
1129
+ }, z.core.$strict>]>;
1130
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1131
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1132
+ kind: z.ZodLiteral<"s3">;
1133
+ bucket: z.ZodString;
1134
+ key: z.ZodString;
1135
+ region: z.ZodOptional<z.ZodString>;
1136
+ }, z.core.$strict>, z.ZodObject<{
1137
+ kind: z.ZodLiteral<"ipfs">;
1138
+ cid: z.ZodString;
1139
+ path: z.ZodOptional<z.ZodString>;
1140
+ }, z.core.$strict>], "kind">;
1141
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1142
+ byteLength: z.ZodNumber;
1143
+ }, z.core.$strict>, z.ZodObject<{
1144
+ encoding: z.ZodLiteral<"base64">;
1145
+ content: z.ZodString;
1146
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1147
+ byteLength: z.ZodNumber;
1148
+ }, z.core.$strict>]>;
1149
+ }, z.core.$strict>;
1150
+ }, z.core.$strict>], "mode">;
1151
+ usage: z.ZodObject<{
1152
+ costUsd: z.ZodNumber;
1153
+ inputTokens: z.ZodNumber;
1154
+ outputTokens: z.ZodNumber;
1155
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1156
+ modelCalls: z.ZodNumber;
1157
+ }, z.core.$strict>;
1158
+ modelUsage: z.ZodObject<{
1159
+ resolved: z.ZodObject<{
1160
+ requested: z.ZodString;
1161
+ provider: z.ZodString;
1162
+ model: z.ZodString;
1163
+ snapshot: z.ZodString;
1164
+ reasoningEffort: z.ZodEnum<{
1165
+ none: "none";
1166
+ minimal: "minimal";
1167
+ low: "low";
1168
+ medium: "medium";
1169
+ high: "high";
1170
+ xhigh: "xhigh";
1171
+ ultracode: "ultracode";
1172
+ }>;
1173
+ }, z.core.$strict>;
1174
+ usage: z.ZodObject<{
1175
+ costUsd: z.ZodNumber;
1176
+ inputTokens: z.ZodNumber;
1177
+ outputTokens: z.ZodNumber;
1178
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1179
+ modelCalls: z.ZodNumber;
1180
+ }, z.core.$strict>;
1181
+ }, z.core.$strict>;
1182
+ trace: z.ZodObject<{
1183
+ schemaVersion: z.ZodLiteral<1>;
1184
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1185
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1186
+ kind: z.ZodLiteral<"s3">;
1187
+ bucket: z.ZodString;
1188
+ key: z.ZodString;
1189
+ region: z.ZodOptional<z.ZodString>;
1190
+ }, z.core.$strict>, z.ZodObject<{
1191
+ kind: z.ZodLiteral<"ipfs">;
1192
+ cid: z.ZodString;
1193
+ path: z.ZodOptional<z.ZodString>;
1194
+ }, z.core.$strict>], "kind">;
1195
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1196
+ byteLength: z.ZodNumber;
1197
+ }, z.core.$strict>, z.ZodObject<{
1198
+ encoding: z.ZodLiteral<"base64">;
1199
+ content: z.ZodString;
1200
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1201
+ byteLength: z.ZodNumber;
1202
+ }, z.core.$strict>]>;
1203
+ eventCount: z.ZodNumber;
1204
+ modelCallCount: z.ZodNumber;
1205
+ }, z.core.$strict>;
1206
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1207
+ kind: z.ZodLiteral<"exit">;
1208
+ exitCode: z.ZodNumber;
1209
+ }, z.core.$strict>, z.ZodObject<{
1210
+ kind: z.ZodLiteral<"timeout">;
1211
+ timeoutMs: z.ZodNumber;
1212
+ }, z.core.$strict>, z.ZodObject<{
1213
+ kind: z.ZodLiteral<"signal">;
1214
+ signal: z.ZodString;
1215
+ }, z.core.$strict>, z.ZodObject<{
1216
+ kind: z.ZodLiteral<"cancelled">;
1217
+ }, z.core.$strict>], "kind">;
1218
+ fixedUsage: z.ZodObject<{
1219
+ inputTokens: z.ZodNumber;
1220
+ outputTokens: z.ZodNumber;
1221
+ cachedInputTokens: z.ZodNumber;
1222
+ reasoningTokens: z.ZodNumber;
1223
+ modelCalls: z.ZodNumber;
1224
+ costUsdNanos: z.ZodNumber;
1225
+ }, z.core.$strict>;
1226
+ modelSettlement: z.ZodObject<{
1227
+ schemaVersion: z.ZodLiteral<1>;
1228
+ kind: z.ZodLiteral<"agent-candidate-model-settlement">;
1229
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1230
+ material: z.ZodType<{
1231
+ schemaVersion: 1;
1232
+ kind: "agent-candidate-model-settlement-material";
1233
+ executionPlanDigest: `sha256:${string}`;
1234
+ preparationId: string;
1235
+ grantDigest: `sha256:${string}`;
1236
+ closed: true;
1237
+ resolved: {
1238
+ requested: string;
1239
+ provider: string;
1240
+ model: string;
1241
+ snapshot: string;
1242
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1243
+ };
1244
+ calls: {
1245
+ callId: string;
1246
+ traceSpanId: string;
1247
+ model: string;
1248
+ inputTokens: number;
1249
+ outputTokens: number;
1250
+ cachedInputTokens: number;
1251
+ reasoningTokens: number;
1252
+ costUsdNanos: number;
1253
+ }[];
1254
+ usage: {
1255
+ inputTokens: number;
1256
+ outputTokens: number;
1257
+ cachedInputTokens: number;
1258
+ reasoningTokens: number;
1259
+ modelCalls: number;
1260
+ costUsdNanos: number;
1261
+ };
1262
+ }, unknown, z.core.$ZodTypeInternals<{
1263
+ schemaVersion: 1;
1264
+ kind: "agent-candidate-model-settlement-material";
1265
+ executionPlanDigest: `sha256:${string}`;
1266
+ preparationId: string;
1267
+ grantDigest: `sha256:${string}`;
1268
+ closed: true;
1269
+ resolved: {
1270
+ requested: string;
1271
+ provider: string;
1272
+ model: string;
1273
+ snapshot: string;
1274
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1275
+ };
1276
+ calls: {
1277
+ callId: string;
1278
+ traceSpanId: string;
1279
+ model: string;
1280
+ inputTokens: number;
1281
+ outputTokens: number;
1282
+ cachedInputTokens: number;
1283
+ reasoningTokens: number;
1284
+ costUsdNanos: number;
1285
+ }[];
1286
+ usage: {
1287
+ inputTokens: number;
1288
+ outputTokens: number;
1289
+ cachedInputTokens: number;
1290
+ reasoningTokens: number;
1291
+ modelCalls: number;
1292
+ costUsdNanos: number;
1293
+ };
1294
+ }, unknown>>;
1295
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1296
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1297
+ kind: z.ZodLiteral<"s3">;
1298
+ bucket: z.ZodString;
1299
+ key: z.ZodString;
1300
+ region: z.ZodOptional<z.ZodString>;
1301
+ }, z.core.$strict>, z.ZodObject<{
1302
+ kind: z.ZodLiteral<"ipfs">;
1303
+ cid: z.ZodString;
1304
+ path: z.ZodOptional<z.ZodString>;
1305
+ }, z.core.$strict>], "kind">;
1306
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1307
+ byteLength: z.ZodNumber;
1308
+ }, z.core.$strict>, z.ZodObject<{
1309
+ encoding: z.ZodLiteral<"base64">;
1310
+ content: z.ZodString;
1311
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1312
+ byteLength: z.ZodNumber;
1313
+ }, z.core.$strict>]>;
1314
+ }, z.core.$strict>;
1315
+ taskOutcome: z.ZodObject<{
1316
+ schemaVersion: z.ZodLiteral<1>;
1317
+ kind: z.ZodLiteral<"agent-candidate-task-outcome">;
1318
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1319
+ material: z.ZodType<{
1320
+ schemaVersion: 1;
1321
+ kind: "agent-candidate-task-outcome-material";
1322
+ executionPlanDigest: `sha256:${string}`;
1323
+ baseRepository: {
1324
+ identity: string;
1325
+ rootIdentity: string;
1326
+ commit: string;
1327
+ tree: string;
1328
+ };
1329
+ resultRepository: {
1330
+ identity: string;
1331
+ rootIdentity: string;
1332
+ commit: string;
1333
+ tree: string;
1334
+ };
1335
+ afterState: {
1336
+ schemaVersion: 1;
1337
+ kind: "agent-candidate-workspace-snapshot";
1338
+ digest: `sha256:${string}`;
1339
+ material: {
1340
+ schemaVersion: 1;
1341
+ kind: "agent-candidate-workspace-manifest";
1342
+ files: {
1343
+ path: string;
1344
+ mode: 420 | 493;
1345
+ sha256: `sha256:${string}`;
1346
+ byteLength: number;
1347
+ }[];
1348
+ };
1349
+ manifest: {
1350
+ locator: {
1351
+ kind: "s3";
1352
+ bucket: string;
1353
+ key: string;
1354
+ region?: string | undefined;
1355
+ } | {
1356
+ kind: "ipfs";
1357
+ cid: string;
1358
+ path?: string | undefined;
1359
+ };
1360
+ sha256: `sha256:${string}`;
1361
+ byteLength: number;
1362
+ } | {
1363
+ encoding: "base64";
1364
+ content: string;
1365
+ sha256: `sha256:${string}`;
1366
+ byteLength: number;
1367
+ };
1368
+ archive: {
1369
+ locator: {
1370
+ kind: "s3";
1371
+ bucket: string;
1372
+ key: string;
1373
+ region?: string | undefined;
1374
+ } | {
1375
+ kind: "ipfs";
1376
+ cid: string;
1377
+ path?: string | undefined;
1378
+ };
1379
+ sha256: `sha256:${string}`;
1380
+ byteLength: number;
1381
+ } | {
1382
+ encoding: "base64";
1383
+ content: string;
1384
+ sha256: `sha256:${string}`;
1385
+ byteLength: number;
1386
+ };
1387
+ };
1388
+ gitDiff: {
1389
+ format: "git-diff-binary";
1390
+ artifact: {
1391
+ locator: {
1392
+ kind: "s3";
1393
+ bucket: string;
1394
+ key: string;
1395
+ region?: string | undefined;
1396
+ } | {
1397
+ kind: "ipfs";
1398
+ cid: string;
1399
+ path?: string | undefined;
1400
+ };
1401
+ sha256: `sha256:${string}`;
1402
+ byteLength: number;
1403
+ };
1404
+ };
1405
+ }, unknown, z.core.$ZodTypeInternals<{
1406
+ schemaVersion: 1;
1407
+ kind: "agent-candidate-task-outcome-material";
1408
+ executionPlanDigest: `sha256:${string}`;
1409
+ baseRepository: {
1410
+ identity: string;
1411
+ rootIdentity: string;
1412
+ commit: string;
1413
+ tree: string;
1414
+ };
1415
+ resultRepository: {
1416
+ identity: string;
1417
+ rootIdentity: string;
1418
+ commit: string;
1419
+ tree: string;
1420
+ };
1421
+ afterState: {
1422
+ schemaVersion: 1;
1423
+ kind: "agent-candidate-workspace-snapshot";
1424
+ digest: `sha256:${string}`;
1425
+ material: {
1426
+ schemaVersion: 1;
1427
+ kind: "agent-candidate-workspace-manifest";
1428
+ files: {
1429
+ path: string;
1430
+ mode: 420 | 493;
1431
+ sha256: `sha256:${string}`;
1432
+ byteLength: number;
1433
+ }[];
1434
+ };
1435
+ manifest: {
1436
+ locator: {
1437
+ kind: "s3";
1438
+ bucket: string;
1439
+ key: string;
1440
+ region?: string | undefined;
1441
+ } | {
1442
+ kind: "ipfs";
1443
+ cid: string;
1444
+ path?: string | undefined;
1445
+ };
1446
+ sha256: `sha256:${string}`;
1447
+ byteLength: number;
1448
+ } | {
1449
+ encoding: "base64";
1450
+ content: string;
1451
+ sha256: `sha256:${string}`;
1452
+ byteLength: number;
1453
+ };
1454
+ archive: {
1455
+ locator: {
1456
+ kind: "s3";
1457
+ bucket: string;
1458
+ key: string;
1459
+ region?: string | undefined;
1460
+ } | {
1461
+ kind: "ipfs";
1462
+ cid: string;
1463
+ path?: string | undefined;
1464
+ };
1465
+ sha256: `sha256:${string}`;
1466
+ byteLength: number;
1467
+ } | {
1468
+ encoding: "base64";
1469
+ content: string;
1470
+ sha256: `sha256:${string}`;
1471
+ byteLength: number;
1472
+ };
1473
+ };
1474
+ gitDiff: {
1475
+ format: "git-diff-binary";
1476
+ artifact: {
1477
+ locator: {
1478
+ kind: "s3";
1479
+ bucket: string;
1480
+ key: string;
1481
+ region?: string | undefined;
1482
+ } | {
1483
+ kind: "ipfs";
1484
+ cid: string;
1485
+ path?: string | undefined;
1486
+ };
1487
+ sha256: `sha256:${string}`;
1488
+ byteLength: number;
1489
+ };
1490
+ };
1491
+ }, unknown>>;
1492
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1493
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
+ kind: z.ZodLiteral<"s3">;
1495
+ bucket: z.ZodString;
1496
+ key: z.ZodString;
1497
+ region: z.ZodOptional<z.ZodString>;
1498
+ }, z.core.$strict>, z.ZodObject<{
1499
+ kind: z.ZodLiteral<"ipfs">;
1500
+ cid: z.ZodString;
1501
+ path: z.ZodOptional<z.ZodString>;
1502
+ }, z.core.$strict>], "kind">;
1503
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1504
+ byteLength: z.ZodNumber;
1505
+ }, z.core.$strict>, z.ZodObject<{
1506
+ encoding: z.ZodLiteral<"base64">;
1507
+ content: z.ZodString;
1508
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1509
+ byteLength: z.ZodNumber;
1510
+ }, z.core.$strict>]>;
1511
+ }, z.core.$strict>;
1512
+ benchmarkResult: z.ZodObject<{
1513
+ schemaVersion: z.ZodLiteral<1>;
1514
+ kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
1515
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1516
+ material: z.ZodType<{
1517
+ schemaVersion: 1;
1518
+ kind: "agent-candidate-benchmark-result-material";
1519
+ executionPlanDigest: `sha256:${string}`;
1520
+ taskOutcomeDigest: `sha256:${string}`;
1521
+ benchmark: {
1522
+ name: string;
1523
+ version: string;
1524
+ taskId: string;
1525
+ splitDigest: `sha256:${string}`;
1526
+ };
1527
+ grader: {
1528
+ name: string;
1529
+ version: string;
1530
+ artifact: {
1531
+ locator: {
1532
+ kind: "s3";
1533
+ bucket: string;
1534
+ key: string;
1535
+ region?: string | undefined;
1536
+ } | {
1537
+ kind: "ipfs";
1538
+ cid: string;
1539
+ path?: string | undefined;
1540
+ };
1541
+ sha256: `sha256:${string}`;
1542
+ byteLength: number;
1543
+ };
1544
+ };
1545
+ evidence: {
1546
+ locator: {
1547
+ kind: "s3";
1548
+ bucket: string;
1549
+ key: string;
1550
+ region?: string | undefined;
1551
+ } | {
1552
+ kind: "ipfs";
1553
+ cid: string;
1554
+ path?: string | undefined;
1555
+ };
1556
+ sha256: `sha256:${string}`;
1557
+ byteLength: number;
1558
+ };
1559
+ score: number;
1560
+ passed: boolean;
1561
+ dimensions: {
1562
+ name: string;
1563
+ score: number;
1564
+ }[];
1565
+ }, unknown, z.core.$ZodTypeInternals<{
1566
+ schemaVersion: 1;
1567
+ kind: "agent-candidate-benchmark-result-material";
1568
+ executionPlanDigest: `sha256:${string}`;
1569
+ taskOutcomeDigest: `sha256:${string}`;
1570
+ benchmark: {
1571
+ name: string;
1572
+ version: string;
1573
+ taskId: string;
1574
+ splitDigest: `sha256:${string}`;
1575
+ };
1576
+ grader: {
1577
+ name: string;
1578
+ version: string;
1579
+ artifact: {
1580
+ locator: {
1581
+ kind: "s3";
1582
+ bucket: string;
1583
+ key: string;
1584
+ region?: string | undefined;
1585
+ } | {
1586
+ kind: "ipfs";
1587
+ cid: string;
1588
+ path?: string | undefined;
1589
+ };
1590
+ sha256: `sha256:${string}`;
1591
+ byteLength: number;
1592
+ };
1593
+ };
1594
+ evidence: {
1595
+ locator: {
1596
+ kind: "s3";
1597
+ bucket: string;
1598
+ key: string;
1599
+ region?: string | undefined;
1600
+ } | {
1601
+ kind: "ipfs";
1602
+ cid: string;
1603
+ path?: string | undefined;
1604
+ };
1605
+ sha256: `sha256:${string}`;
1606
+ byteLength: number;
1607
+ };
1608
+ score: number;
1609
+ passed: boolean;
1610
+ dimensions: {
1611
+ name: string;
1612
+ score: number;
1613
+ }[];
1614
+ }, unknown>>;
1615
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1616
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1617
+ kind: z.ZodLiteral<"s3">;
1618
+ bucket: z.ZodString;
1619
+ key: z.ZodString;
1620
+ region: z.ZodOptional<z.ZodString>;
1621
+ }, z.core.$strict>, z.ZodObject<{
1622
+ kind: z.ZodLiteral<"ipfs">;
1623
+ cid: z.ZodString;
1624
+ path: z.ZodOptional<z.ZodString>;
1625
+ }, z.core.$strict>], "kind">;
1626
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1627
+ byteLength: z.ZodNumber;
1628
+ }, z.core.$strict>, z.ZodObject<{
1629
+ encoding: z.ZodLiteral<"base64">;
1630
+ content: z.ZodString;
1631
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1632
+ byteLength: z.ZodNumber;
1633
+ }, z.core.$strict>]>;
1634
+ }, z.core.$strict>;
1635
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1636
+ }, z.core.$strict>;
1637
+ /** Explicit V1 alias; the original schema export remains unchanged. */
1638
+ export declare const agentCandidateRunReceiptV1Schema: z.ZodObject<{
1639
+ schemaVersion: z.ZodLiteral<1>;
1640
+ kind: z.ZodLiteral<"agent-candidate-run">;
1641
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1642
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1643
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1644
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1645
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1646
+ mode: z.ZodLiteral<"disabled">;
1647
+ }, z.core.$strict>, z.ZodObject<{
1648
+ mode: z.ZodLiteral<"isolated">;
1649
+ scope: z.ZodLiteral<"task">;
1650
+ effectiveNamespace: z.ZodString;
1651
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1652
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1653
+ afterState: z.ZodObject<{
1654
+ schemaVersion: z.ZodLiteral<1>;
1655
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1656
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1657
+ material: z.ZodObject<{
1658
+ schemaVersion: z.ZodLiteral<1>;
1659
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1660
+ files: z.ZodArray<z.ZodObject<{
1661
+ path: z.ZodString;
1662
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1663
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1664
+ byteLength: z.ZodNumber;
1665
+ }, z.core.$strict>>;
1666
+ }, z.core.$strict>;
1667
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1668
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1669
+ kind: z.ZodLiteral<"s3">;
1670
+ bucket: z.ZodString;
1671
+ key: z.ZodString;
1672
+ region: z.ZodOptional<z.ZodString>;
1673
+ }, z.core.$strict>, z.ZodObject<{
1674
+ kind: z.ZodLiteral<"ipfs">;
1675
+ cid: z.ZodString;
1676
+ path: z.ZodOptional<z.ZodString>;
1677
+ }, z.core.$strict>], "kind">;
1678
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1679
+ byteLength: z.ZodNumber;
1680
+ }, z.core.$strict>, z.ZodObject<{
1681
+ encoding: z.ZodLiteral<"base64">;
1682
+ content: z.ZodString;
1683
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1684
+ byteLength: z.ZodNumber;
1685
+ }, z.core.$strict>]>;
1686
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1687
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1688
+ kind: z.ZodLiteral<"s3">;
1689
+ bucket: z.ZodString;
1690
+ key: z.ZodString;
1691
+ region: z.ZodOptional<z.ZodString>;
1692
+ }, z.core.$strict>, z.ZodObject<{
1693
+ kind: z.ZodLiteral<"ipfs">;
1694
+ cid: z.ZodString;
1695
+ path: z.ZodOptional<z.ZodString>;
1696
+ }, z.core.$strict>], "kind">;
1697
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1698
+ byteLength: z.ZodNumber;
1699
+ }, z.core.$strict>, z.ZodObject<{
1700
+ encoding: z.ZodLiteral<"base64">;
1701
+ content: z.ZodString;
1702
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1703
+ byteLength: z.ZodNumber;
1704
+ }, z.core.$strict>]>;
1705
+ }, z.core.$strict>;
1706
+ }, z.core.$strict>], "mode">;
1707
+ usage: z.ZodObject<{
1708
+ costUsd: z.ZodNumber;
1709
+ inputTokens: z.ZodNumber;
1710
+ outputTokens: z.ZodNumber;
1711
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1712
+ modelCalls: z.ZodNumber;
1713
+ }, z.core.$strict>;
1714
+ modelUsage: z.ZodObject<{
1715
+ resolved: z.ZodObject<{
1716
+ requested: z.ZodString;
1717
+ provider: z.ZodString;
1718
+ model: z.ZodString;
1719
+ snapshot: z.ZodString;
1720
+ reasoningEffort: z.ZodEnum<{
1721
+ none: "none";
1722
+ minimal: "minimal";
1723
+ low: "low";
1724
+ medium: "medium";
1725
+ high: "high";
1726
+ xhigh: "xhigh";
1727
+ ultracode: "ultracode";
1728
+ }>;
1729
+ }, z.core.$strict>;
1730
+ usage: z.ZodObject<{
1731
+ costUsd: z.ZodNumber;
1732
+ inputTokens: z.ZodNumber;
1733
+ outputTokens: z.ZodNumber;
1734
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1735
+ modelCalls: z.ZodNumber;
1736
+ }, z.core.$strict>;
1737
+ }, z.core.$strict>;
1738
+ trace: z.ZodObject<{
1739
+ schemaVersion: z.ZodLiteral<1>;
1740
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1741
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1742
+ kind: z.ZodLiteral<"s3">;
1743
+ bucket: z.ZodString;
1744
+ key: z.ZodString;
1745
+ region: z.ZodOptional<z.ZodString>;
1746
+ }, z.core.$strict>, z.ZodObject<{
1747
+ kind: z.ZodLiteral<"ipfs">;
1748
+ cid: z.ZodString;
1749
+ path: z.ZodOptional<z.ZodString>;
1750
+ }, z.core.$strict>], "kind">;
1751
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1752
+ byteLength: z.ZodNumber;
1753
+ }, z.core.$strict>, z.ZodObject<{
1754
+ encoding: z.ZodLiteral<"base64">;
1755
+ content: z.ZodString;
1756
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1757
+ byteLength: z.ZodNumber;
1758
+ }, z.core.$strict>]>;
1759
+ eventCount: z.ZodNumber;
1760
+ modelCallCount: z.ZodNumber;
1761
+ }, z.core.$strict>;
1762
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1763
+ kind: z.ZodLiteral<"exit">;
1764
+ exitCode: z.ZodNumber;
1765
+ }, z.core.$strict>, z.ZodObject<{
1766
+ kind: z.ZodLiteral<"timeout">;
1767
+ timeoutMs: z.ZodNumber;
1768
+ }, z.core.$strict>, z.ZodObject<{
1769
+ kind: z.ZodLiteral<"signal">;
1770
+ signal: z.ZodString;
1771
+ }, z.core.$strict>, z.ZodObject<{
1772
+ kind: z.ZodLiteral<"cancelled">;
1773
+ }, z.core.$strict>], "kind">;
1774
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1775
+ }, z.core.$strict>;
1776
+ /** Parses both receipt generations without changing the original V1 export. */
1777
+ export declare const agentCandidateRunReceiptAnyVersionSchema: z.ZodUnion<readonly [z.ZodObject<{
1778
+ schemaVersion: z.ZodLiteral<1>;
1779
+ kind: z.ZodLiteral<"agent-candidate-run">;
1780
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1781
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1782
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1783
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1784
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1785
+ mode: z.ZodLiteral<"disabled">;
1786
+ }, z.core.$strict>, z.ZodObject<{
1787
+ mode: z.ZodLiteral<"isolated">;
1788
+ scope: z.ZodLiteral<"task">;
1789
+ effectiveNamespace: z.ZodString;
1790
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1791
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1792
+ afterState: z.ZodObject<{
1793
+ schemaVersion: z.ZodLiteral<1>;
1794
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1795
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1796
+ material: z.ZodObject<{
1797
+ schemaVersion: z.ZodLiteral<1>;
1798
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1799
+ files: z.ZodArray<z.ZodObject<{
1800
+ path: z.ZodString;
1801
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1802
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1803
+ byteLength: z.ZodNumber;
1804
+ }, z.core.$strict>>;
1805
+ }, z.core.$strict>;
1806
+ manifest: 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
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1826
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1827
+ kind: z.ZodLiteral<"s3">;
1828
+ bucket: z.ZodString;
1829
+ key: z.ZodString;
1830
+ region: z.ZodOptional<z.ZodString>;
1831
+ }, z.core.$strict>, z.ZodObject<{
1832
+ kind: z.ZodLiteral<"ipfs">;
1833
+ cid: z.ZodString;
1834
+ path: z.ZodOptional<z.ZodString>;
1835
+ }, z.core.$strict>], "kind">;
1836
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1837
+ byteLength: z.ZodNumber;
1838
+ }, z.core.$strict>, z.ZodObject<{
1839
+ encoding: z.ZodLiteral<"base64">;
1840
+ content: z.ZodString;
1841
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1842
+ byteLength: z.ZodNumber;
1843
+ }, z.core.$strict>]>;
1844
+ }, z.core.$strict>;
1845
+ }, z.core.$strict>], "mode">;
1846
+ usage: z.ZodObject<{
1847
+ costUsd: z.ZodNumber;
1848
+ inputTokens: z.ZodNumber;
1849
+ outputTokens: z.ZodNumber;
1850
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1851
+ modelCalls: z.ZodNumber;
1852
+ }, z.core.$strict>;
1853
+ modelUsage: z.ZodObject<{
1854
+ resolved: z.ZodObject<{
1855
+ requested: z.ZodString;
1856
+ provider: z.ZodString;
1857
+ model: z.ZodString;
1858
+ snapshot: z.ZodString;
1859
+ reasoningEffort: z.ZodEnum<{
1860
+ none: "none";
1861
+ minimal: "minimal";
1862
+ low: "low";
1863
+ medium: "medium";
1864
+ high: "high";
1865
+ xhigh: "xhigh";
1866
+ ultracode: "ultracode";
1867
+ }>;
1868
+ }, z.core.$strict>;
1869
+ usage: z.ZodObject<{
1870
+ costUsd: z.ZodNumber;
1871
+ inputTokens: z.ZodNumber;
1872
+ outputTokens: z.ZodNumber;
1873
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1874
+ modelCalls: z.ZodNumber;
1875
+ }, z.core.$strict>;
1876
+ }, z.core.$strict>;
1877
+ trace: z.ZodObject<{
1878
+ schemaVersion: z.ZodLiteral<1>;
1879
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1880
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1881
+ kind: z.ZodLiteral<"s3">;
1882
+ bucket: z.ZodString;
1883
+ key: z.ZodString;
1884
+ region: z.ZodOptional<z.ZodString>;
1885
+ }, z.core.$strict>, z.ZodObject<{
1886
+ kind: z.ZodLiteral<"ipfs">;
1887
+ cid: z.ZodString;
1888
+ path: z.ZodOptional<z.ZodString>;
1889
+ }, z.core.$strict>], "kind">;
1890
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1891
+ byteLength: z.ZodNumber;
1892
+ }, z.core.$strict>, z.ZodObject<{
1893
+ encoding: z.ZodLiteral<"base64">;
1894
+ content: z.ZodString;
1895
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1896
+ byteLength: z.ZodNumber;
1897
+ }, z.core.$strict>]>;
1898
+ eventCount: z.ZodNumber;
1899
+ modelCallCount: z.ZodNumber;
1900
+ }, z.core.$strict>;
1901
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1902
+ kind: z.ZodLiteral<"exit">;
1903
+ exitCode: z.ZodNumber;
1904
+ }, z.core.$strict>, z.ZodObject<{
1905
+ kind: z.ZodLiteral<"timeout">;
1906
+ timeoutMs: z.ZodNumber;
1907
+ }, z.core.$strict>, z.ZodObject<{
1908
+ kind: z.ZodLiteral<"signal">;
1909
+ signal: z.ZodString;
1910
+ }, z.core.$strict>, z.ZodObject<{
1911
+ kind: z.ZodLiteral<"cancelled">;
1912
+ }, z.core.$strict>], "kind">;
1913
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1914
+ }, z.core.$strict>, z.ZodObject<{
1915
+ schemaVersion: z.ZodLiteral<2>;
1916
+ kind: z.ZodLiteral<"agent-candidate-run">;
1917
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1918
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1919
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1920
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1921
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1922
+ mode: z.ZodLiteral<"disabled">;
1923
+ }, z.core.$strict>, z.ZodObject<{
1924
+ mode: z.ZodLiteral<"isolated">;
1925
+ scope: z.ZodLiteral<"task">;
1926
+ effectiveNamespace: z.ZodString;
1927
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1928
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1929
+ afterState: z.ZodObject<{
1930
+ schemaVersion: z.ZodLiteral<1>;
1931
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1932
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1933
+ material: z.ZodObject<{
1934
+ schemaVersion: z.ZodLiteral<1>;
1935
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1936
+ files: z.ZodArray<z.ZodObject<{
1937
+ path: z.ZodString;
1938
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1939
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1940
+ byteLength: z.ZodNumber;
1941
+ }, z.core.$strict>>;
1942
+ }, z.core.$strict>;
1943
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1944
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1945
+ kind: z.ZodLiteral<"s3">;
1946
+ bucket: z.ZodString;
1947
+ key: z.ZodString;
1948
+ region: z.ZodOptional<z.ZodString>;
1949
+ }, z.core.$strict>, z.ZodObject<{
1950
+ kind: z.ZodLiteral<"ipfs">;
1951
+ cid: z.ZodString;
1952
+ path: z.ZodOptional<z.ZodString>;
1953
+ }, z.core.$strict>], "kind">;
1954
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1955
+ byteLength: z.ZodNumber;
1956
+ }, z.core.$strict>, z.ZodObject<{
1957
+ encoding: z.ZodLiteral<"base64">;
1958
+ content: z.ZodString;
1959
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1960
+ byteLength: z.ZodNumber;
1961
+ }, z.core.$strict>]>;
1962
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1963
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1964
+ kind: z.ZodLiteral<"s3">;
1965
+ bucket: z.ZodString;
1966
+ key: z.ZodString;
1967
+ region: z.ZodOptional<z.ZodString>;
1968
+ }, z.core.$strict>, z.ZodObject<{
1969
+ kind: z.ZodLiteral<"ipfs">;
1970
+ cid: z.ZodString;
1971
+ path: z.ZodOptional<z.ZodString>;
1972
+ }, z.core.$strict>], "kind">;
1973
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1974
+ byteLength: z.ZodNumber;
1975
+ }, z.core.$strict>, z.ZodObject<{
1976
+ encoding: z.ZodLiteral<"base64">;
1977
+ content: z.ZodString;
1978
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1979
+ byteLength: z.ZodNumber;
1980
+ }, z.core.$strict>]>;
1981
+ }, z.core.$strict>;
1982
+ }, z.core.$strict>], "mode">;
1983
+ usage: z.ZodObject<{
1984
+ costUsd: z.ZodNumber;
1985
+ inputTokens: z.ZodNumber;
1986
+ outputTokens: z.ZodNumber;
1987
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1988
+ modelCalls: z.ZodNumber;
1989
+ }, z.core.$strict>;
1990
+ modelUsage: z.ZodObject<{
1991
+ resolved: z.ZodObject<{
1992
+ requested: z.ZodString;
1993
+ provider: z.ZodString;
1994
+ model: z.ZodString;
1995
+ snapshot: z.ZodString;
1996
+ reasoningEffort: z.ZodEnum<{
1997
+ none: "none";
1998
+ minimal: "minimal";
1999
+ low: "low";
2000
+ medium: "medium";
2001
+ high: "high";
2002
+ xhigh: "xhigh";
2003
+ ultracode: "ultracode";
2004
+ }>;
2005
+ }, z.core.$strict>;
2006
+ usage: z.ZodObject<{
2007
+ costUsd: z.ZodNumber;
2008
+ inputTokens: z.ZodNumber;
2009
+ outputTokens: z.ZodNumber;
2010
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2011
+ modelCalls: z.ZodNumber;
2012
+ }, z.core.$strict>;
2013
+ }, z.core.$strict>;
2014
+ trace: z.ZodObject<{
2015
+ schemaVersion: z.ZodLiteral<1>;
2016
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2017
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2018
+ kind: z.ZodLiteral<"s3">;
2019
+ bucket: z.ZodString;
2020
+ key: z.ZodString;
2021
+ region: z.ZodOptional<z.ZodString>;
2022
+ }, z.core.$strict>, z.ZodObject<{
2023
+ kind: z.ZodLiteral<"ipfs">;
2024
+ cid: z.ZodString;
2025
+ path: z.ZodOptional<z.ZodString>;
2026
+ }, z.core.$strict>], "kind">;
2027
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2028
+ byteLength: z.ZodNumber;
2029
+ }, z.core.$strict>, z.ZodObject<{
2030
+ encoding: z.ZodLiteral<"base64">;
2031
+ content: z.ZodString;
2032
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2033
+ byteLength: z.ZodNumber;
2034
+ }, z.core.$strict>]>;
2035
+ eventCount: z.ZodNumber;
2036
+ modelCallCount: z.ZodNumber;
2037
+ }, z.core.$strict>;
2038
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
2039
+ kind: z.ZodLiteral<"exit">;
2040
+ exitCode: z.ZodNumber;
2041
+ }, z.core.$strict>, z.ZodObject<{
2042
+ kind: z.ZodLiteral<"timeout">;
2043
+ timeoutMs: z.ZodNumber;
2044
+ }, z.core.$strict>, z.ZodObject<{
2045
+ kind: z.ZodLiteral<"signal">;
2046
+ signal: z.ZodString;
2047
+ }, z.core.$strict>, z.ZodObject<{
2048
+ kind: z.ZodLiteral<"cancelled">;
2049
+ }, z.core.$strict>], "kind">;
2050
+ fixedUsage: z.ZodObject<{
2051
+ inputTokens: z.ZodNumber;
2052
+ outputTokens: z.ZodNumber;
2053
+ cachedInputTokens: z.ZodNumber;
2054
+ reasoningTokens: z.ZodNumber;
2055
+ modelCalls: z.ZodNumber;
2056
+ costUsdNanos: z.ZodNumber;
2057
+ }, z.core.$strict>;
2058
+ modelSettlement: z.ZodObject<{
2059
+ schemaVersion: z.ZodLiteral<1>;
2060
+ kind: z.ZodLiteral<"agent-candidate-model-settlement">;
2061
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2062
+ material: z.ZodType<{
2063
+ schemaVersion: 1;
2064
+ kind: "agent-candidate-model-settlement-material";
2065
+ executionPlanDigest: `sha256:${string}`;
2066
+ preparationId: string;
2067
+ grantDigest: `sha256:${string}`;
2068
+ closed: true;
2069
+ resolved: {
2070
+ requested: string;
2071
+ provider: string;
2072
+ model: string;
2073
+ snapshot: string;
2074
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2075
+ };
2076
+ calls: {
2077
+ callId: string;
2078
+ traceSpanId: string;
2079
+ model: string;
2080
+ inputTokens: number;
2081
+ outputTokens: number;
2082
+ cachedInputTokens: number;
2083
+ reasoningTokens: number;
2084
+ costUsdNanos: number;
2085
+ }[];
2086
+ usage: {
2087
+ inputTokens: number;
2088
+ outputTokens: number;
2089
+ cachedInputTokens: number;
2090
+ reasoningTokens: number;
2091
+ modelCalls: number;
2092
+ costUsdNanos: number;
2093
+ };
2094
+ }, unknown, z.core.$ZodTypeInternals<{
2095
+ schemaVersion: 1;
2096
+ kind: "agent-candidate-model-settlement-material";
2097
+ executionPlanDigest: `sha256:${string}`;
2098
+ preparationId: string;
2099
+ grantDigest: `sha256:${string}`;
2100
+ closed: true;
2101
+ resolved: {
2102
+ requested: string;
2103
+ provider: string;
2104
+ model: string;
2105
+ snapshot: string;
2106
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2107
+ };
2108
+ calls: {
2109
+ callId: string;
2110
+ traceSpanId: string;
2111
+ model: string;
2112
+ inputTokens: number;
2113
+ outputTokens: number;
2114
+ cachedInputTokens: number;
2115
+ reasoningTokens: number;
2116
+ costUsdNanos: number;
2117
+ }[];
2118
+ usage: {
2119
+ inputTokens: number;
2120
+ outputTokens: number;
2121
+ cachedInputTokens: number;
2122
+ reasoningTokens: number;
2123
+ modelCalls: number;
2124
+ costUsdNanos: number;
2125
+ };
2126
+ }, unknown>>;
2127
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2128
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2129
+ kind: z.ZodLiteral<"s3">;
2130
+ bucket: z.ZodString;
2131
+ key: z.ZodString;
2132
+ region: z.ZodOptional<z.ZodString>;
2133
+ }, z.core.$strict>, z.ZodObject<{
2134
+ kind: z.ZodLiteral<"ipfs">;
2135
+ cid: z.ZodString;
2136
+ path: z.ZodOptional<z.ZodString>;
2137
+ }, z.core.$strict>], "kind">;
2138
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2139
+ byteLength: z.ZodNumber;
2140
+ }, z.core.$strict>, z.ZodObject<{
2141
+ encoding: z.ZodLiteral<"base64">;
2142
+ content: z.ZodString;
2143
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2144
+ byteLength: z.ZodNumber;
2145
+ }, z.core.$strict>]>;
2146
+ }, z.core.$strict>;
2147
+ taskOutcome: z.ZodObject<{
2148
+ schemaVersion: z.ZodLiteral<1>;
2149
+ kind: z.ZodLiteral<"agent-candidate-task-outcome">;
2150
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2151
+ material: z.ZodType<{
2152
+ schemaVersion: 1;
2153
+ kind: "agent-candidate-task-outcome-material";
2154
+ executionPlanDigest: `sha256:${string}`;
2155
+ baseRepository: {
2156
+ identity: string;
2157
+ rootIdentity: string;
2158
+ commit: string;
2159
+ tree: string;
2160
+ };
2161
+ resultRepository: {
2162
+ identity: string;
2163
+ rootIdentity: string;
2164
+ commit: string;
2165
+ tree: string;
2166
+ };
2167
+ afterState: {
2168
+ schemaVersion: 1;
2169
+ kind: "agent-candidate-workspace-snapshot";
2170
+ digest: `sha256:${string}`;
2171
+ material: {
2172
+ schemaVersion: 1;
2173
+ kind: "agent-candidate-workspace-manifest";
2174
+ files: {
2175
+ path: string;
2176
+ mode: 420 | 493;
2177
+ sha256: `sha256:${string}`;
2178
+ byteLength: number;
2179
+ }[];
2180
+ };
2181
+ manifest: {
2182
+ locator: {
2183
+ kind: "s3";
2184
+ bucket: string;
2185
+ key: string;
2186
+ region?: string | undefined;
2187
+ } | {
2188
+ kind: "ipfs";
2189
+ cid: string;
2190
+ path?: string | undefined;
2191
+ };
2192
+ sha256: `sha256:${string}`;
2193
+ byteLength: number;
2194
+ } | {
2195
+ encoding: "base64";
2196
+ content: string;
2197
+ sha256: `sha256:${string}`;
2198
+ byteLength: number;
2199
+ };
2200
+ archive: {
2201
+ locator: {
2202
+ kind: "s3";
2203
+ bucket: string;
2204
+ key: string;
2205
+ region?: string | undefined;
2206
+ } | {
2207
+ kind: "ipfs";
2208
+ cid: string;
2209
+ path?: string | undefined;
2210
+ };
2211
+ sha256: `sha256:${string}`;
2212
+ byteLength: number;
2213
+ } | {
2214
+ encoding: "base64";
2215
+ content: string;
2216
+ sha256: `sha256:${string}`;
2217
+ byteLength: number;
2218
+ };
2219
+ };
2220
+ gitDiff: {
2221
+ format: "git-diff-binary";
2222
+ artifact: {
2223
+ locator: {
2224
+ kind: "s3";
2225
+ bucket: string;
2226
+ key: string;
2227
+ region?: string | undefined;
2228
+ } | {
2229
+ kind: "ipfs";
2230
+ cid: string;
2231
+ path?: string | undefined;
2232
+ };
2233
+ sha256: `sha256:${string}`;
2234
+ byteLength: number;
2235
+ };
2236
+ };
2237
+ }, unknown, z.core.$ZodTypeInternals<{
2238
+ schemaVersion: 1;
2239
+ kind: "agent-candidate-task-outcome-material";
2240
+ executionPlanDigest: `sha256:${string}`;
2241
+ baseRepository: {
2242
+ identity: string;
2243
+ rootIdentity: string;
2244
+ commit: string;
2245
+ tree: string;
2246
+ };
2247
+ resultRepository: {
2248
+ identity: string;
2249
+ rootIdentity: string;
2250
+ commit: string;
2251
+ tree: string;
2252
+ };
2253
+ afterState: {
2254
+ schemaVersion: 1;
2255
+ kind: "agent-candidate-workspace-snapshot";
2256
+ digest: `sha256:${string}`;
2257
+ material: {
2258
+ schemaVersion: 1;
2259
+ kind: "agent-candidate-workspace-manifest";
2260
+ files: {
2261
+ path: string;
2262
+ mode: 420 | 493;
2263
+ sha256: `sha256:${string}`;
2264
+ byteLength: number;
2265
+ }[];
2266
+ };
2267
+ manifest: {
2268
+ locator: {
2269
+ kind: "s3";
2270
+ bucket: string;
2271
+ key: string;
2272
+ region?: string | undefined;
2273
+ } | {
2274
+ kind: "ipfs";
2275
+ cid: string;
2276
+ path?: string | undefined;
2277
+ };
2278
+ sha256: `sha256:${string}`;
2279
+ byteLength: number;
2280
+ } | {
2281
+ encoding: "base64";
2282
+ content: string;
2283
+ sha256: `sha256:${string}`;
2284
+ byteLength: number;
2285
+ };
2286
+ archive: {
2287
+ locator: {
2288
+ kind: "s3";
2289
+ bucket: string;
2290
+ key: string;
2291
+ region?: string | undefined;
2292
+ } | {
2293
+ kind: "ipfs";
2294
+ cid: string;
2295
+ path?: string | undefined;
2296
+ };
2297
+ sha256: `sha256:${string}`;
2298
+ byteLength: number;
2299
+ } | {
2300
+ encoding: "base64";
2301
+ content: string;
2302
+ sha256: `sha256:${string}`;
2303
+ byteLength: number;
2304
+ };
2305
+ };
2306
+ gitDiff: {
2307
+ format: "git-diff-binary";
2308
+ artifact: {
2309
+ locator: {
2310
+ kind: "s3";
2311
+ bucket: string;
2312
+ key: string;
2313
+ region?: string | undefined;
2314
+ } | {
2315
+ kind: "ipfs";
2316
+ cid: string;
2317
+ path?: string | undefined;
2318
+ };
2319
+ sha256: `sha256:${string}`;
2320
+ byteLength: number;
2321
+ };
2322
+ };
2323
+ }, unknown>>;
2324
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2325
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2326
+ kind: z.ZodLiteral<"s3">;
2327
+ bucket: z.ZodString;
2328
+ key: z.ZodString;
2329
+ region: z.ZodOptional<z.ZodString>;
2330
+ }, z.core.$strict>, z.ZodObject<{
2331
+ kind: z.ZodLiteral<"ipfs">;
2332
+ cid: z.ZodString;
2333
+ path: z.ZodOptional<z.ZodString>;
2334
+ }, z.core.$strict>], "kind">;
2335
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2336
+ byteLength: z.ZodNumber;
2337
+ }, z.core.$strict>, z.ZodObject<{
2338
+ encoding: z.ZodLiteral<"base64">;
2339
+ content: z.ZodString;
2340
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2341
+ byteLength: z.ZodNumber;
2342
+ }, z.core.$strict>]>;
2343
+ }, z.core.$strict>;
2344
+ benchmarkResult: z.ZodObject<{
2345
+ schemaVersion: z.ZodLiteral<1>;
2346
+ kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
2347
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2348
+ material: z.ZodType<{
2349
+ schemaVersion: 1;
2350
+ kind: "agent-candidate-benchmark-result-material";
2351
+ executionPlanDigest: `sha256:${string}`;
2352
+ taskOutcomeDigest: `sha256:${string}`;
2353
+ benchmark: {
2354
+ name: string;
2355
+ version: string;
2356
+ taskId: string;
2357
+ splitDigest: `sha256:${string}`;
2358
+ };
2359
+ grader: {
2360
+ name: string;
2361
+ version: string;
2362
+ artifact: {
2363
+ locator: {
2364
+ kind: "s3";
2365
+ bucket: string;
2366
+ key: string;
2367
+ region?: string | undefined;
2368
+ } | {
2369
+ kind: "ipfs";
2370
+ cid: string;
2371
+ path?: string | undefined;
2372
+ };
2373
+ sha256: `sha256:${string}`;
2374
+ byteLength: number;
2375
+ };
2376
+ };
2377
+ evidence: {
2378
+ locator: {
2379
+ kind: "s3";
2380
+ bucket: string;
2381
+ key: string;
2382
+ region?: string | undefined;
2383
+ } | {
2384
+ kind: "ipfs";
2385
+ cid: string;
2386
+ path?: string | undefined;
2387
+ };
2388
+ sha256: `sha256:${string}`;
2389
+ byteLength: number;
2390
+ };
2391
+ score: number;
2392
+ passed: boolean;
2393
+ dimensions: {
2394
+ name: string;
2395
+ score: number;
2396
+ }[];
2397
+ }, unknown, z.core.$ZodTypeInternals<{
2398
+ schemaVersion: 1;
2399
+ kind: "agent-candidate-benchmark-result-material";
2400
+ executionPlanDigest: `sha256:${string}`;
2401
+ taskOutcomeDigest: `sha256:${string}`;
2402
+ benchmark: {
2403
+ name: string;
2404
+ version: string;
2405
+ taskId: string;
2406
+ splitDigest: `sha256:${string}`;
2407
+ };
2408
+ grader: {
2409
+ name: string;
2410
+ version: string;
2411
+ artifact: {
2412
+ locator: {
2413
+ kind: "s3";
2414
+ bucket: string;
2415
+ key: string;
2416
+ region?: string | undefined;
2417
+ } | {
2418
+ kind: "ipfs";
2419
+ cid: string;
2420
+ path?: string | undefined;
2421
+ };
2422
+ sha256: `sha256:${string}`;
2423
+ byteLength: number;
2424
+ };
2425
+ };
2426
+ evidence: {
2427
+ locator: {
2428
+ kind: "s3";
2429
+ bucket: string;
2430
+ key: string;
2431
+ region?: string | undefined;
2432
+ } | {
2433
+ kind: "ipfs";
2434
+ cid: string;
2435
+ path?: string | undefined;
2436
+ };
2437
+ sha256: `sha256:${string}`;
2438
+ byteLength: number;
2439
+ };
2440
+ score: number;
2441
+ passed: boolean;
2442
+ dimensions: {
2443
+ name: string;
2444
+ score: number;
2445
+ }[];
2446
+ }, unknown>>;
2447
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2448
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2449
+ kind: z.ZodLiteral<"s3">;
2450
+ bucket: z.ZodString;
2451
+ key: z.ZodString;
2452
+ region: z.ZodOptional<z.ZodString>;
2453
+ }, z.core.$strict>, z.ZodObject<{
2454
+ kind: z.ZodLiteral<"ipfs">;
2455
+ cid: z.ZodString;
2456
+ path: z.ZodOptional<z.ZodString>;
2457
+ }, z.core.$strict>], "kind">;
2458
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2459
+ byteLength: z.ZodNumber;
2460
+ }, z.core.$strict>, z.ZodObject<{
2461
+ encoding: z.ZodLiteral<"base64">;
2462
+ content: z.ZodString;
2463
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2464
+ byteLength: z.ZodNumber;
2465
+ }, z.core.$strict>]>;
2466
+ }, z.core.$strict>;
2467
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2468
+ }, z.core.$strict>]>;