@tangle-network/agent-interface 0.24.0 → 0.25.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.
@@ -388,6 +388,24 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
388
388
  requested: z.ZodString;
389
389
  }, z.core.$strict>], "kind">>;
390
390
  }, z.core.$strict>;
391
+ grader: z.ZodObject<{
392
+ name: z.ZodString;
393
+ version: z.ZodString;
394
+ artifact: z.ZodObject<{
395
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
396
+ kind: z.ZodLiteral<"s3">;
397
+ bucket: z.ZodString;
398
+ key: z.ZodString;
399
+ region: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strict>, z.ZodObject<{
401
+ kind: z.ZodLiteral<"ipfs">;
402
+ cid: z.ZodString;
403
+ path: z.ZodOptional<z.ZodString>;
404
+ }, z.core.$strict>], "kind">;
405
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
406
+ byteLength: z.ZodNumber;
407
+ }, z.core.$strict>;
408
+ }, z.core.$strict>;
391
409
  launch: z.ZodObject<{
392
410
  executable: z.ZodString;
393
411
  args: z.ZodArray<z.ZodObject<{
@@ -719,6 +737,24 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
719
737
  requested: string;
720
738
  })[];
721
739
  };
740
+ grader: {
741
+ name: string;
742
+ version: string;
743
+ artifact: {
744
+ locator: {
745
+ kind: "s3";
746
+ bucket: string;
747
+ key: string;
748
+ region?: string | undefined;
749
+ } | {
750
+ kind: "ipfs";
751
+ cid: string;
752
+ path?: string | undefined;
753
+ };
754
+ sha256: `sha256:${string}`;
755
+ byteLength: number;
756
+ };
757
+ };
722
758
  launch: {
723
759
  executable: string;
724
760
  args: {
@@ -1030,6 +1066,24 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1030
1066
  requested: string;
1031
1067
  })[];
1032
1068
  };
1069
+ grader: {
1070
+ name: string;
1071
+ version: string;
1072
+ artifact: {
1073
+ locator: {
1074
+ kind: "s3";
1075
+ bucket: string;
1076
+ key: string;
1077
+ region?: string | undefined;
1078
+ } | {
1079
+ kind: "ipfs";
1080
+ cid: string;
1081
+ path?: string | undefined;
1082
+ };
1083
+ sha256: `sha256:${string}`;
1084
+ byteLength: number;
1085
+ };
1086
+ };
1033
1087
  launch: {
1034
1088
  executable: string;
1035
1089
  args: {
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { agentCandidateCapturedArtifactSchema, agentCandidateWorkspaceSnapshotEvidenceSchema, } from "./agent-candidate-artifact-schema.js";
2
+ import { agentCandidateArtifactRefSchema, agentCandidateCapturedArtifactSchema, agentCandidateWorkspaceSnapshotEvidenceSchema, } from "./agent-candidate-artifact-schema.js";
3
3
  import { agentCandidateContainerSchema, agentCandidateInstructionDeliverySchema, agentCandidateWorkingDirectorySchema, } from "./agent-candidate-code-schema.js";
4
4
  import { addDuplicateIssues, agentCandidateConfigValueSchema, environmentConfigSchema, gitObjectSchema, isCanonicalJsonValue, isObviouslyPrivateHostname, isSafeExecutable, isSafeRelativePath, sameGitObjectFormat, sha256DigestSchema, } from "./agent-candidate-schema-common.js";
5
5
  import { harnessTypeSchema } from "./harness.js";
@@ -258,6 +258,13 @@ export const agentCandidateExecutionPlanMaterialSchema = z
258
258
  .min(1),
259
259
  })
260
260
  .strict(),
261
+ grader: z
262
+ .object({
263
+ name: z.string().min(1),
264
+ version: z.string().min(1),
265
+ artifact: agentCandidateArtifactRefSchema,
266
+ })
267
+ .strict(),
261
268
  launch: z
262
269
  .object({
263
270
  executable: z
@@ -342,6 +342,24 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
342
342
  requested: string;
343
343
  })[];
344
344
  };
345
+ grader: {
346
+ name: string;
347
+ version: string;
348
+ artifact: {
349
+ locator: {
350
+ kind: "s3";
351
+ bucket: string;
352
+ key: string;
353
+ region?: string | undefined;
354
+ } | {
355
+ kind: "ipfs";
356
+ cid: string;
357
+ path?: string | undefined;
358
+ };
359
+ sha256: `sha256:${string}`;
360
+ byteLength: number;
361
+ };
362
+ };
345
363
  launch: {
346
364
  executable: string;
347
365
  args: {
@@ -653,6 +671,24 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
653
671
  requested: string;
654
672
  })[];
655
673
  };
674
+ grader: {
675
+ name: string;
676
+ version: string;
677
+ artifact: {
678
+ locator: {
679
+ kind: "s3";
680
+ bucket: string;
681
+ key: string;
682
+ region?: string | undefined;
683
+ } | {
684
+ kind: "ipfs";
685
+ cid: string;
686
+ path?: string | undefined;
687
+ };
688
+ sha256: `sha256:${string}`;
689
+ byteLength: number;
690
+ };
691
+ };
656
692
  launch: {
657
693
  executable: string;
658
694
  args: {
@@ -430,6 +430,12 @@ export interface AgentCandidateExecutionPlanMaterialV1 {
430
430
  requested: string;
431
431
  }>;
432
432
  };
433
+ /** Exact evaluator grader implementation admitted for this plan. */
434
+ grader: {
435
+ name: string;
436
+ version: string;
437
+ artifact: AgentCandidateArtifactRef;
438
+ };
433
439
  launch: {
434
440
  executable: string;
435
441
  args: AgentCandidateConfigValue[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-interface",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",