anpord 0.1.21 → 0.1.22

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.
Files changed (43) hide show
  1. package/dist/api-context.d.cts +1 -1
  2. package/dist/api-context.d.mts +1 -1
  3. package/dist/{api-mocks-BenVx0e8.d.cts → api-mocks-B8a93t2t.d.cts} +8 -8
  4. package/dist/{api-mocks-BenVx0e8.d.mts → api-mocks-B8a93t2t.d.mts} +8 -8
  5. package/dist/api-runtime.d.cts +1 -1
  6. package/dist/api-runtime.d.mts +1 -1
  7. package/dist/api.d.cts +1 -1
  8. package/dist/api.d.mts +1 -1
  9. package/dist/bin.cjs +45 -35
  10. package/dist/bin.mjs +45 -35
  11. package/dist/{client-CsGxLUZq.d.cts → client-CE9VurDH.d.cts} +1190 -894
  12. package/dist/{client-BZDftC1x.cjs → client-CWVAt_wk.cjs} +1 -1
  13. package/dist/{client-D0l3kwWV.mjs → client-CfPf0hIc.mjs} +1 -1
  14. package/dist/{client-C7iEhiDm.d.mts → client-EdYxRHX0.d.mts} +1190 -894
  15. package/dist/{compiler-Cy85vNbp.cjs → compiler-B1UrHfCL.cjs} +18 -1
  16. package/dist/{compiler-DSQRHvXS.mjs → compiler-D9jidpZ0.mjs} +13 -2
  17. package/dist/config.cjs +1 -1
  18. package/dist/config.d.cts +1 -1
  19. package/dist/config.d.mts +1 -1
  20. package/dist/config.mjs +1 -1
  21. package/dist/{eval-turns-CTCoSuB6.d.cts → eval-turns-Uwe0G7PS.d.cts} +1 -1
  22. package/dist/{eval-turns-CTCoSuB6.d.mts → eval-turns-Uwe0G7PS.d.mts} +1 -1
  23. package/dist/eval.cjs +1 -1
  24. package/dist/eval.d.cts +1 -1
  25. package/dist/eval.d.mts +1 -1
  26. package/dist/eval.mjs +1 -1
  27. package/dist/{evals-Dw2Ek-mx.d.cts → evals-M2G4zvnS.d.cts} +36 -36
  28. package/dist/{evals-Dw2Ek-mx.d.mts → evals-M2G4zvnS.d.mts} +36 -36
  29. package/dist/{evals-api-CNoLlXL5.cjs → evals-api-DUiZWsyC.cjs} +54 -1
  30. package/dist/{evals-api-CK3F1KoI.mjs → evals-api-NLUUV9tM.mjs} +54 -1
  31. package/dist/index.cjs +3 -2
  32. package/dist/index.d.cts +5 -4
  33. package/dist/index.d.mts +5 -4
  34. package/dist/index.mjs +3 -3
  35. package/dist/source.d.cts +1 -1
  36. package/dist/source.d.mts +1 -1
  37. package/dist/{types-D-h67MVJ.d.mts → types-B1rRGWeL.d.mts} +27 -18
  38. package/dist/{types-Dvd_z5ge.d.cts → types-C1Np-yYM.d.cts} +27 -18
  39. package/dist/validator-runtime.d.cts +1 -1
  40. package/dist/validator-runtime.d.mts +1 -1
  41. package/dist/validators.d.cts +1 -1
  42. package/dist/validators.d.mts +1 -1
  43. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  const require_eval_judges = require("./eval-judges-1zF4PVqV.cjs");
2
2
  const require_api_mocks = require("./api-mocks-CgiC7T9U.cjs");
3
- const require_evals_api = require("./evals-api-CNoLlXL5.cjs");
3
+ const require_evals_api = require("./evals-api-DUiZWsyC.cjs");
4
4
  const require_source = require("./source-aW5nSo2h.cjs");
5
5
  let effect = require("effect");
6
6
  let node_fs_promises = require("node:fs/promises");
@@ -437,6 +437,16 @@ function suite(definition) {
437
437
  value: file
438
438
  });
439
439
  }
440
+ function evalCase(definition) {
441
+ const { prompt, tasks, trials, ...subject } = definition;
442
+ return suite({
443
+ cases: [subject],
444
+ name: subject.name,
445
+ prompt,
446
+ tasks,
447
+ trials
448
+ });
449
+ }
440
450
  const sourceUrlOf = (definition) => definition[SOURCE_URL];
441
451
  //#endregion
442
452
  //#region src/evals/locate.ts
@@ -813,6 +823,7 @@ const compileRefEffect = (ref) => effect.Effect.gen(function* () {
813
823
  name: subject.name,
814
824
  prepare,
815
825
  ...sourceFor(definition, subject),
826
+ ...subject.tags === void 0 ? {} : { tags: subject.tags },
816
827
  user: subject.user ?? null,
817
828
  validator,
818
829
  variables: subject.variables ?? {},
@@ -855,6 +866,12 @@ Object.defineProperty(exports, "compileEvalEffect", {
855
866
  return compileEvalEffect;
856
867
  }
857
868
  });
869
+ Object.defineProperty(exports, "evalCase", {
870
+ enumerable: true,
871
+ get: function() {
872
+ return evalCase;
873
+ }
874
+ });
858
875
  Object.defineProperty(exports, "sourceUrlOf", {
859
876
  enumerable: true,
860
877
  get: function() {
@@ -1,6 +1,6 @@
1
1
  import { t as EvalJudge } from "./eval-judges-Bee_ABJt.mjs";
2
2
  import { r as API_PROGRAM } from "./api-mocks-BYWvJp9v.mjs";
3
- import { c as HarnessProfile, d as profileFitsHarness, f as EvalSourceFiles, l as PROFILE_LIMITS, n as PublicStartEvalRequest, o as EvalValidator, s as EnvName, u as ProfilePath } from "./evals-api-CK3F1KoI.mjs";
3
+ import { c as HarnessProfile, d as profileFitsHarness, f as EvalSourceFiles, l as PROFILE_LIMITS, n as PublicStartEvalRequest, o as EvalValidator, s as EnvName, u as ProfilePath } from "./evals-api-NLUUV9tM.mjs";
4
4
  import { r as repo } from "./source-BP11pzVV.mjs";
5
5
  import { Data, Effect, Option, Schema } from "effect";
6
6
  import { mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
@@ -437,6 +437,16 @@ function suite(definition) {
437
437
  value: file
438
438
  });
439
439
  }
440
+ function evalCase(definition) {
441
+ const { prompt, tasks, trials, ...subject } = definition;
442
+ return suite({
443
+ cases: [subject],
444
+ name: subject.name,
445
+ prompt,
446
+ tasks,
447
+ trials
448
+ });
449
+ }
440
450
  const sourceUrlOf = (definition) => definition[SOURCE_URL];
441
451
  //#endregion
442
452
  //#region src/evals/locate.ts
@@ -813,6 +823,7 @@ const compileRefEffect = (ref) => Effect.gen(function* () {
813
823
  name: subject.name,
814
824
  prepare,
815
825
  ...sourceFor(definition, subject),
826
+ ...subject.tags === void 0 ? {} : { tags: subject.tags },
816
827
  user: subject.user ?? null,
817
828
  validator,
818
829
  variables: subject.variables ?? {},
@@ -837,4 +848,4 @@ const refOfPath = (path) => ({
837
848
  const compileEvalEffect = (path) => compileRefEffect(refOfPath(path));
838
849
  const compileEval = (path) => Effect.runPromise(compileEvalEffect(path));
839
850
  //#endregion
840
- export { suite as a, sourceUrlOf as i, compileEval as n, compileEvalEffect as r, compileDefinition as t };
851
+ export { sourceUrlOf as a, evalCase as i, compileEval as n, suite as o, compileEvalEffect as r, compileDefinition as t };
package/dist/config.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_client = require("./client-BZDftC1x.cjs");
2
+ const require_client = require("./client-CWVAt_wk.cjs");
3
3
  let effect = require("effect");
4
4
  //#region src/client/config.ts
5
5
  const apiKeyConfig = effect.Config.redacted("ANPORD_API_KEY");
package/dist/config.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as AnpordApi } from "./client-CsGxLUZq.cjs";
1
+ import { t as AnpordApi } from "./client-CE9VurDH.cjs";
2
2
  import { Config, Layer } from "effect";
3
3
  //#region src/client/config.d.ts
4
4
  declare const apiKeyConfig: Config.Config<import("effect/Redacted").Redacted<string>>;
package/dist/config.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as AnpordApi } from "./client-C7iEhiDm.mjs";
1
+ import { t as AnpordApi } from "./client-EdYxRHX0.mjs";
2
2
  import { Config, Layer } from "effect";
3
3
  //#region src/client/config.d.ts
4
4
  declare const apiKeyConfig: Config.Config<import("effect/Redacted").Redacted<string>>;
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as DEFAULT_BASE_URL, r as layer } from "./client-D0l3kwWV.mjs";
1
+ import { n as DEFAULT_BASE_URL, r as layer } from "./client-CfPf0hIc.mjs";
2
2
  import { Config, Effect, Layer } from "effect";
3
3
  //#region src/client/config.ts
4
4
  const apiKeyConfig = Config.redacted("ANPORD_API_KEY");
@@ -17,7 +17,7 @@ declare const EvalJudge: Schema.Union<[Schema.Struct<{
17
17
  }>;
18
18
  }>, Schema.Struct<{
19
19
  provider: Schema.optional<typeof Schema.Never>;
20
- harness: Schema.SchemaClass<"cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen", "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen", never>;
20
+ harness: Schema.SchemaClass<"codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor", "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor", never>;
21
21
  kind: Schema.Literal<["judge"]>;
22
22
  name: Schema.filter<Schema.filter<typeof Schema.String>>;
23
23
  model: Schema.filter<Schema.filter<typeof Schema.String>>;
@@ -17,7 +17,7 @@ declare const EvalJudge: Schema.Union<[Schema.Struct<{
17
17
  }>;
18
18
  }>, Schema.Struct<{
19
19
  provider: Schema.optional<typeof Schema.Never>;
20
- harness: Schema.SchemaClass<"cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen", "cursor" | "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen", never>;
20
+ harness: Schema.SchemaClass<"codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor", "codex" | "opencode" | "pi" | "fx" | "claude" | "gemini" | "qwen" | "cursor", never>;
21
21
  kind: Schema.Literal<["judge"]>;
22
22
  name: Schema.filter<Schema.filter<typeof Schema.String>>;
23
23
  model: Schema.filter<Schema.filter<typeof Schema.String>>;
package/dist/eval.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_compiler = require("./compiler-Cy85vNbp.cjs");
2
+ const require_compiler = require("./compiler-B1UrHfCL.cjs");
3
3
  exports.compileDefinition = require_compiler.compileDefinition;
4
4
  exports.compileEval = require_compiler.compileEval;
package/dist/eval.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { h as PublicStartEvalRequest, i as EvalDefinition } from "./types-Dvd_z5ge.cjs";
1
+ import { g as PublicStartEvalRequest, i as EvalDefinition } from "./types-C1Np-yYM.cjs";
2
2
  import { Effect } from "effect";
3
3
  //#region src/evals/compiler.d.ts
4
4
  declare const compileDefinition: (definition: EvalDefinition) => Promise<PublicStartEvalRequest>;
package/dist/eval.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { h as PublicStartEvalRequest, i as EvalDefinition } from "./types-D-h67MVJ.mjs";
1
+ import { g as PublicStartEvalRequest, i as EvalDefinition } from "./types-B1rRGWeL.mjs";
2
2
  import { Effect } from "effect";
3
3
  //#region src/evals/compiler.d.ts
4
4
  declare const compileDefinition: (definition: EvalDefinition) => Promise<PublicStartEvalRequest>;
package/dist/eval.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as compileEval, t as compileDefinition } from "./compiler-DSQRHvXS.mjs";
1
+ import { n as compileEval, t as compileDefinition } from "./compiler-D9jidpZ0.mjs";
2
2
  export { compileDefinition, compileEval };
@@ -91,14 +91,9 @@ declare const EvalTrial: Schema.Struct<{
91
91
  sha256: Schema.filter<typeof Schema.String>;
92
92
  }>>>;
93
93
  validations: Schema.optional<Schema.refine<readonly {
94
- readonly name: string;
95
- readonly id: string;
96
- readonly kind: "command" | "judge" | "code";
97
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
94
+ readonly kind: "judge" | "command" | "code";
98
95
  readonly message: string;
99
- readonly startedAt: number | null;
100
- readonly index: number;
101
- readonly exitCode: number | null;
96
+ readonly name: string;
102
97
  readonly output: {
103
98
  readonly text: string;
104
99
  readonly truncated: boolean;
@@ -111,6 +106,11 @@ declare const EvalTrial: Schema.Struct<{
111
106
  readonly format: "text" | "json";
112
107
  readonly state: "captured" | "disabled" | "unavailable";
113
108
  };
109
+ readonly id: string;
110
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
111
+ readonly startedAt: number | null;
112
+ readonly index: number;
113
+ readonly exitCode: number | null;
114
114
  readonly error: {
115
115
  readonly text: string;
116
116
  readonly truncated: boolean;
@@ -137,8 +137,6 @@ declare const EvalTrial: Schema.Struct<{
137
137
  readonly state: "captured" | "disabled" | "unavailable";
138
138
  } | undefined;
139
139
  readonly calls: readonly {
140
- readonly startedAt: number;
141
- readonly index: number;
142
140
  readonly output: {
143
141
  readonly text: string;
144
142
  readonly truncated: boolean;
@@ -151,6 +149,8 @@ declare const EvalTrial: Schema.Struct<{
151
149
  readonly format: "text" | "json";
152
150
  readonly state: "captured" | "disabled" | "unavailable";
153
151
  };
152
+ readonly startedAt: number;
153
+ readonly index: number;
154
154
  readonly error: {
155
155
  readonly text: string;
156
156
  readonly truncated: boolean;
@@ -434,14 +434,9 @@ declare const EvalCell: Schema.Struct<{
434
434
  sha256: Schema.filter<typeof Schema.String>;
435
435
  }>>>;
436
436
  validations: Schema.optional<Schema.refine<readonly {
437
- readonly name: string;
438
- readonly id: string;
439
- readonly kind: "command" | "judge" | "code";
440
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
437
+ readonly kind: "judge" | "command" | "code";
441
438
  readonly message: string;
442
- readonly startedAt: number | null;
443
- readonly index: number;
444
- readonly exitCode: number | null;
439
+ readonly name: string;
445
440
  readonly output: {
446
441
  readonly text: string;
447
442
  readonly truncated: boolean;
@@ -454,6 +449,11 @@ declare const EvalCell: Schema.Struct<{
454
449
  readonly format: "text" | "json";
455
450
  readonly state: "captured" | "disabled" | "unavailable";
456
451
  };
452
+ readonly id: string;
453
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
454
+ readonly startedAt: number | null;
455
+ readonly index: number;
456
+ readonly exitCode: number | null;
457
457
  readonly error: {
458
458
  readonly text: string;
459
459
  readonly truncated: boolean;
@@ -480,8 +480,6 @@ declare const EvalCell: Schema.Struct<{
480
480
  readonly state: "captured" | "disabled" | "unavailable";
481
481
  } | undefined;
482
482
  readonly calls: readonly {
483
- readonly startedAt: number;
484
- readonly index: number;
485
483
  readonly output: {
486
484
  readonly text: string;
487
485
  readonly truncated: boolean;
@@ -494,6 +492,8 @@ declare const EvalCell: Schema.Struct<{
494
492
  readonly format: "text" | "json";
495
493
  readonly state: "captured" | "disabled" | "unavailable";
496
494
  };
495
+ readonly startedAt: number;
496
+ readonly index: number;
497
497
  readonly error: {
498
498
  readonly text: string;
499
499
  readonly truncated: boolean;
@@ -758,14 +758,9 @@ declare const EvalRun: Schema.Struct<{
758
758
  sha256: Schema.filter<typeof Schema.String>;
759
759
  }>>>;
760
760
  validations: Schema.optional<Schema.refine<readonly {
761
- readonly name: string;
762
- readonly id: string;
763
- readonly kind: "command" | "judge" | "code";
764
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
761
+ readonly kind: "judge" | "command" | "code";
765
762
  readonly message: string;
766
- readonly startedAt: number | null;
767
- readonly index: number;
768
- readonly exitCode: number | null;
763
+ readonly name: string;
769
764
  readonly output: {
770
765
  readonly text: string;
771
766
  readonly truncated: boolean;
@@ -778,6 +773,11 @@ declare const EvalRun: Schema.Struct<{
778
773
  readonly format: "text" | "json";
779
774
  readonly state: "captured" | "disabled" | "unavailable";
780
775
  };
776
+ readonly id: string;
777
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
778
+ readonly startedAt: number | null;
779
+ readonly index: number;
780
+ readonly exitCode: number | null;
781
781
  readonly error: {
782
782
  readonly text: string;
783
783
  readonly truncated: boolean;
@@ -804,8 +804,6 @@ declare const EvalRun: Schema.Struct<{
804
804
  readonly state: "captured" | "disabled" | "unavailable";
805
805
  } | undefined;
806
806
  readonly calls: readonly {
807
- readonly startedAt: number;
808
- readonly index: number;
809
807
  readonly output: {
810
808
  readonly text: string;
811
809
  readonly truncated: boolean;
@@ -818,6 +816,8 @@ declare const EvalRun: Schema.Struct<{
818
816
  readonly format: "text" | "json";
819
817
  readonly state: "captured" | "disabled" | "unavailable";
820
818
  };
819
+ readonly startedAt: number;
820
+ readonly index: number;
821
821
  readonly error: {
822
822
  readonly text: string;
823
823
  readonly truncated: boolean;
@@ -1108,14 +1108,9 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1108
1108
  sha256: Schema.filter<typeof Schema.String>;
1109
1109
  }>>>;
1110
1110
  validations: Schema.optional<Schema.refine<readonly {
1111
- readonly name: string;
1112
- readonly id: string;
1113
- readonly kind: "command" | "judge" | "code";
1114
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
1111
+ readonly kind: "judge" | "command" | "code";
1115
1112
  readonly message: string;
1116
- readonly startedAt: number | null;
1117
- readonly index: number;
1118
- readonly exitCode: number | null;
1113
+ readonly name: string;
1119
1114
  readonly output: {
1120
1115
  readonly text: string;
1121
1116
  readonly truncated: boolean;
@@ -1128,6 +1123,11 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1128
1123
  readonly format: "text" | "json";
1129
1124
  readonly state: "captured" | "disabled" | "unavailable";
1130
1125
  };
1126
+ readonly id: string;
1127
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
1128
+ readonly startedAt: number | null;
1129
+ readonly index: number;
1130
+ readonly exitCode: number | null;
1131
1131
  readonly error: {
1132
1132
  readonly text: string;
1133
1133
  readonly truncated: boolean;
@@ -1154,8 +1154,6 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1154
1154
  readonly state: "captured" | "disabled" | "unavailable";
1155
1155
  } | undefined;
1156
1156
  readonly calls: readonly {
1157
- readonly startedAt: number;
1158
- readonly index: number;
1159
1157
  readonly output: {
1160
1158
  readonly text: string;
1161
1159
  readonly truncated: boolean;
@@ -1168,6 +1166,8 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1168
1166
  readonly format: "text" | "json";
1169
1167
  readonly state: "captured" | "disabled" | "unavailable";
1170
1168
  };
1169
+ readonly startedAt: number;
1170
+ readonly index: number;
1171
1171
  readonly error: {
1172
1172
  readonly text: string;
1173
1173
  readonly truncated: boolean;
@@ -91,14 +91,9 @@ declare const EvalTrial: Schema.Struct<{
91
91
  sha256: Schema.filter<typeof Schema.String>;
92
92
  }>>>;
93
93
  validations: Schema.optional<Schema.refine<readonly {
94
- readonly name: string;
95
- readonly id: string;
96
- readonly kind: "command" | "judge" | "code";
97
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
94
+ readonly kind: "judge" | "command" | "code";
98
95
  readonly message: string;
99
- readonly startedAt: number | null;
100
- readonly index: number;
101
- readonly exitCode: number | null;
96
+ readonly name: string;
102
97
  readonly output: {
103
98
  readonly text: string;
104
99
  readonly truncated: boolean;
@@ -111,6 +106,11 @@ declare const EvalTrial: Schema.Struct<{
111
106
  readonly format: "text" | "json";
112
107
  readonly state: "captured" | "disabled" | "unavailable";
113
108
  };
109
+ readonly id: string;
110
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
111
+ readonly startedAt: number | null;
112
+ readonly index: number;
113
+ readonly exitCode: number | null;
114
114
  readonly error: {
115
115
  readonly text: string;
116
116
  readonly truncated: boolean;
@@ -137,8 +137,6 @@ declare const EvalTrial: Schema.Struct<{
137
137
  readonly state: "captured" | "disabled" | "unavailable";
138
138
  } | undefined;
139
139
  readonly calls: readonly {
140
- readonly startedAt: number;
141
- readonly index: number;
142
140
  readonly output: {
143
141
  readonly text: string;
144
142
  readonly truncated: boolean;
@@ -151,6 +149,8 @@ declare const EvalTrial: Schema.Struct<{
151
149
  readonly format: "text" | "json";
152
150
  readonly state: "captured" | "disabled" | "unavailable";
153
151
  };
152
+ readonly startedAt: number;
153
+ readonly index: number;
154
154
  readonly error: {
155
155
  readonly text: string;
156
156
  readonly truncated: boolean;
@@ -434,14 +434,9 @@ declare const EvalCell: Schema.Struct<{
434
434
  sha256: Schema.filter<typeof Schema.String>;
435
435
  }>>>;
436
436
  validations: Schema.optional<Schema.refine<readonly {
437
- readonly name: string;
438
- readonly id: string;
439
- readonly kind: "command" | "judge" | "code";
440
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
437
+ readonly kind: "judge" | "command" | "code";
441
438
  readonly message: string;
442
- readonly startedAt: number | null;
443
- readonly index: number;
444
- readonly exitCode: number | null;
439
+ readonly name: string;
445
440
  readonly output: {
446
441
  readonly text: string;
447
442
  readonly truncated: boolean;
@@ -454,6 +449,11 @@ declare const EvalCell: Schema.Struct<{
454
449
  readonly format: "text" | "json";
455
450
  readonly state: "captured" | "disabled" | "unavailable";
456
451
  };
452
+ readonly id: string;
453
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
454
+ readonly startedAt: number | null;
455
+ readonly index: number;
456
+ readonly exitCode: number | null;
457
457
  readonly error: {
458
458
  readonly text: string;
459
459
  readonly truncated: boolean;
@@ -480,8 +480,6 @@ declare const EvalCell: Schema.Struct<{
480
480
  readonly state: "captured" | "disabled" | "unavailable";
481
481
  } | undefined;
482
482
  readonly calls: readonly {
483
- readonly startedAt: number;
484
- readonly index: number;
485
483
  readonly output: {
486
484
  readonly text: string;
487
485
  readonly truncated: boolean;
@@ -494,6 +492,8 @@ declare const EvalCell: Schema.Struct<{
494
492
  readonly format: "text" | "json";
495
493
  readonly state: "captured" | "disabled" | "unavailable";
496
494
  };
495
+ readonly startedAt: number;
496
+ readonly index: number;
497
497
  readonly error: {
498
498
  readonly text: string;
499
499
  readonly truncated: boolean;
@@ -758,14 +758,9 @@ declare const EvalRun: Schema.Struct<{
758
758
  sha256: Schema.filter<typeof Schema.String>;
759
759
  }>>>;
760
760
  validations: Schema.optional<Schema.refine<readonly {
761
- readonly name: string;
762
- readonly id: string;
763
- readonly kind: "command" | "judge" | "code";
764
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
761
+ readonly kind: "judge" | "command" | "code";
765
762
  readonly message: string;
766
- readonly startedAt: number | null;
767
- readonly index: number;
768
- readonly exitCode: number | null;
763
+ readonly name: string;
769
764
  readonly output: {
770
765
  readonly text: string;
771
766
  readonly truncated: boolean;
@@ -778,6 +773,11 @@ declare const EvalRun: Schema.Struct<{
778
773
  readonly format: "text" | "json";
779
774
  readonly state: "captured" | "disabled" | "unavailable";
780
775
  };
776
+ readonly id: string;
777
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
778
+ readonly startedAt: number | null;
779
+ readonly index: number;
780
+ readonly exitCode: number | null;
781
781
  readonly error: {
782
782
  readonly text: string;
783
783
  readonly truncated: boolean;
@@ -804,8 +804,6 @@ declare const EvalRun: Schema.Struct<{
804
804
  readonly state: "captured" | "disabled" | "unavailable";
805
805
  } | undefined;
806
806
  readonly calls: readonly {
807
- readonly startedAt: number;
808
- readonly index: number;
809
807
  readonly output: {
810
808
  readonly text: string;
811
809
  readonly truncated: boolean;
@@ -818,6 +816,8 @@ declare const EvalRun: Schema.Struct<{
818
816
  readonly format: "text" | "json";
819
817
  readonly state: "captured" | "disabled" | "unavailable";
820
818
  };
819
+ readonly startedAt: number;
820
+ readonly index: number;
821
821
  readonly error: {
822
822
  readonly text: string;
823
823
  readonly truncated: boolean;
@@ -1108,14 +1108,9 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1108
1108
  sha256: Schema.filter<typeof Schema.String>;
1109
1109
  }>>>;
1110
1110
  validations: Schema.optional<Schema.refine<readonly {
1111
- readonly name: string;
1112
- readonly id: string;
1113
- readonly kind: "command" | "judge" | "code";
1114
- readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
1111
+ readonly kind: "judge" | "command" | "code";
1115
1112
  readonly message: string;
1116
- readonly startedAt: number | null;
1117
- readonly index: number;
1118
- readonly exitCode: number | null;
1113
+ readonly name: string;
1119
1114
  readonly output: {
1120
1115
  readonly text: string;
1121
1116
  readonly truncated: boolean;
@@ -1128,6 +1123,11 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1128
1123
  readonly format: "text" | "json";
1129
1124
  readonly state: "captured" | "disabled" | "unavailable";
1130
1125
  };
1126
+ readonly id: string;
1127
+ readonly status: "passed" | "running" | "failed" | "error" | "queued" | "skipped";
1128
+ readonly startedAt: number | null;
1129
+ readonly index: number;
1130
+ readonly exitCode: number | null;
1131
1131
  readonly error: {
1132
1132
  readonly text: string;
1133
1133
  readonly truncated: boolean;
@@ -1154,8 +1154,6 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1154
1154
  readonly state: "captured" | "disabled" | "unavailable";
1155
1155
  } | undefined;
1156
1156
  readonly calls: readonly {
1157
- readonly startedAt: number;
1158
- readonly index: number;
1159
1157
  readonly output: {
1160
1158
  readonly text: string;
1161
1159
  readonly truncated: boolean;
@@ -1168,6 +1166,8 @@ declare const EvalCellHistoryEntry: Schema.Struct<{
1168
1166
  readonly format: "text" | "json";
1169
1167
  readonly state: "captured" | "disabled" | "unavailable";
1170
1168
  };
1169
+ readonly startedAt: number;
1170
+ readonly index: number;
1171
1171
  readonly error: {
1172
1172
  readonly text: string;
1173
1173
  readonly truncated: boolean;
@@ -117,6 +117,8 @@ var ApiKeyAuthentication = class extends _effect_platform.HttpApiMiddleware.Tag(
117
117
  const PROMPT_LIMIT = 16384;
118
118
  const VERIFY_LIMIT = 8192;
119
119
  const NAME_LIMIT = 200;
120
+ const TAG_LIMIT = 40;
121
+ const TAGS_PER_CASE = 12;
120
122
  const VARIABLE_VALUE_LIMIT = 2048;
121
123
  const EvalPrompt = effect.Schema.String.pipe(effect.Schema.maxLength(PROMPT_LIMIT), effect.Schema.annotations({
122
124
  description: "What the agent is asked to do.",
@@ -133,6 +135,11 @@ const EvalCaseName = effect.Schema.String.pipe(effect.Schema.maxLength(NAME_LIMI
133
135
  identifier: "EvalCaseName",
134
136
  message: () => `A case name must be at most ${NAME_LIMIT} characters.`
135
137
  }));
138
+ effect.Schema.Array(effect.Schema.String.pipe(effect.Schema.minLength(1), effect.Schema.maxLength(TAG_LIMIT))).pipe(effect.Schema.maxItems(TAGS_PER_CASE), effect.Schema.annotations({
139
+ description: "What a case is grouped under.",
140
+ identifier: "EvalCaseTags",
141
+ message: () => `A case may carry at most ${TAGS_PER_CASE} tags of ${TAG_LIMIT} characters.`
142
+ }));
136
143
  const EvalVariableValue = effect.Schema.String.pipe(effect.Schema.maxLength(VARIABLE_VALUE_LIMIT), effect.Schema.annotations({
137
144
  identifier: "EvalVariableValue",
138
145
  message: () => `A variable value must be at most ${VARIABLE_VALUE_LIMIT} characters, because it is substituted into the prompt before it is quoted.`
@@ -536,6 +543,28 @@ const EvalRunPage = effect.Schema.Struct({
536
543
  runs: effect.Schema.Array(EvalRunSummary),
537
544
  total: effect.Schema.Int
538
545
  });
546
+ const EvalCaseSummary = effect.Schema.Struct({
547
+ cellKey: effect.Schema.String,
548
+ distribution: EvalDistribution,
549
+ harness: effect.Schema.String,
550
+ lastRunAtMillis: effect.Schema.Int,
551
+ lastRunId: effect.Schema.String,
552
+ model: effect.Schema.String,
553
+ name: effect.Schema.String,
554
+ runCount: effect.Schema.Int,
555
+ suite: effect.Schema.NullOr(effect.Schema.String),
556
+ tags: effect.Schema.Array(effect.Schema.String)
557
+ }).annotations({
558
+ description: "A case as the list shows it, with its newest run.",
559
+ identifier: "EvalCaseSummary"
560
+ });
561
+ const EvalCasePage = effect.Schema.Struct({
562
+ cases: effect.Schema.Array(EvalCaseSummary),
563
+ tags: effect.Schema.Array(effect.Schema.String)
564
+ }).annotations({
565
+ description: "Cases and every tag they carry between them.",
566
+ identifier: "EvalCasePage"
567
+ });
539
568
  const EvalCellHistoryEntry = effect.Schema.Struct({
540
569
  trigger: effect.Schema.optionalWith(effect.Schema.NullOr(EvalTrigger), { default: () => null }),
541
570
  distribution: EvalDistribution,
@@ -727,6 +756,13 @@ const PublicEvalSandbox = effect.Schema.Literal(...HOSTED_SANDBOXES).annotations
727
756
  description: "The hosted sandbox a task runs in.",
728
757
  identifier: "PublicEvalSandbox"
729
758
  });
759
+ const ListCasesRequest = effect.Schema.Struct({
760
+ limit: effect.Schema.optional(effect.Schema.Int),
761
+ tag: effect.Schema.optional(effect.Schema.NullOr(effect.Schema.String))
762
+ }).annotations({
763
+ description: "Which cases to read.",
764
+ identifier: "ListCasesRequest"
765
+ });
730
766
  const ListEvalsRequest = effect.Schema.Struct({
731
767
  cursor: effect.Schema.optional(effect.Schema.NullOr(EvalPageCursor)),
732
768
  limit: effect.Schema.optional(effect.Schema.Int)
@@ -768,6 +804,23 @@ const PublicStartEvalRequest = effect.Schema.Struct({
768
804
  description: `Start a grid with at most 100 total case, task, and trial combinations.`,
769
805
  identifier: "StartEvalRequest"
770
806
  });
807
+ const CredentialLeaseRequest = effect.Schema.Struct({
808
+ harness: EvalHarness,
809
+ id: effect.Schema.String
810
+ }).annotations({
811
+ description: "Ask for the credentials a run the caller is executing needs, for the harness it names.",
812
+ identifier: "CredentialLeaseRequest"
813
+ });
814
+ const CredentialLease = effect.Schema.Struct({
815
+ expiresAt: effect.Schema.DateTimeUtc,
816
+ values: effect.Schema.Record({
817
+ key: effect.Schema.String,
818
+ value: effect.Schema.String
819
+ })
820
+ }).annotations({
821
+ description: "Credentials for one run, held in memory and never written down. Short-lived: start another run rather than keeping these.",
822
+ identifier: "CredentialLease"
823
+ });
771
824
  const ReportedTrial = effect.Schema.Struct({
772
825
  caseName: EvalCaseName,
773
826
  events: effect.Schema.Array(HarnessEvent),
@@ -787,7 +840,7 @@ const ReportTrialRequest = effect.Schema.Struct({
787
840
  description: "A trial the caller ran, named by the run it belongs to.",
788
841
  identifier: "ReportTrialRequest"
789
842
  });
790
- var PublicEvalsGroup = class extends _effect_platform.HttpApiGroup.make("evals").add(_effect_platform.HttpApiEndpoint.post("list", "/evals.list").setPayload(ListEvalsRequest).addSuccess(EvalRunPage).annotate(_effect_platform.OpenApi.Summary, "List eval runs").annotate(_effect_platform.OpenApi.Description, "Newest first. Pass the `next` cursor from a response to read the page after it; a null `next` means there are no more.")).add(_effect_platform.HttpApiEndpoint.post("start", "/evals.start").setPayload(PublicStartEvalRequest).addSuccess(StartedEval).annotate(_effect_platform.OpenApi.Summary, "Start an eval run").annotate(_effect_platform.OpenApi.Description, `Starts the grid and returns its id while trials continue in the background. ${PROFILE_HARNESS_RULE}`)).add(_effect_platform.HttpApiEndpoint.post("reportTrial", "/evals.reportTrial").setPayload(ReportTrialRequest).addSuccess(effect.Schema.Void).annotate(_effect_platform.OpenApi.Summary, "Report a trial run outside the platform").annotate(_effect_platform.OpenApi.Description, "For a run started with executeLocally. The result is recorded as reported: it was produced somewhere the platform cannot inspect, so it is marked and kept out of baselines.")).add(_effect_platform.HttpApiEndpoint.post("finishRun", "/evals.finishRun").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(_effect_platform.OpenApi.Summary, "Settle a run whose trials the caller ran").annotate(_effect_platform.OpenApi.Description, "Settles the run from the trials reported so far. A run left unsettled is swept like any other abandoned work.")).add(_effect_platform.HttpApiEndpoint.post("artifact", "/evals.artifact").setPayload(EvalArtifactRequest).addSuccess(EvalArtifact)).add(_effect_platform.HttpApiEndpoint.post("get", "/evals.get").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(_effect_platform.OpenApi.Summary, "Get an eval run")).add(_effect_platform.HttpApiEndpoint.post("subscription", "/evals.subscription").setPayload(EvalRunRequest).addSuccess(RunSubscription).annotate(_effect_platform.OpenApi.Summary, "Watch an eval run as it moves").annotate(_effect_platform.OpenApi.Description, "Returns a read-only token scoped to this run, for following it in real time. Short-lived: request another when it expires.")).add(_effect_platform.HttpApiEndpoint.post("cellHistory", "/evals.cellHistory").setPayload(EvalCellRequest).addSuccess(effect.Schema.Array(EvalCellHistoryEntry)).annotate(_effect_platform.OpenApi.Summary, "List a cell's history").annotate(_effect_platform.OpenApi.Description, "Returns the 20 most recent results.")).add(_effect_platform.HttpApiEndpoint.post("rerunCell", "/evals.rerunCell").setPayload(effect.Schema.extend(EvalRunRequest, effect.Schema.extend(EvalCellRequest, RerunCellRequest))).addSuccess(StartedEval).annotate(_effect_platform.OpenApi.Summary, "Rerun one cell")).add(_effect_platform.HttpApiEndpoint.post("models", "/evals.models").setPayload(EvalModelsRequest).addSuccess(ModelCatalogue).annotate(_effect_platform.OpenApi.Summary, "List models available to the harness").annotate(_effect_platform.OpenApi.Description, "The command harness has no catalogue of its own, so its list is empty: the model is whatever the profile's run command reads from ANPORD_MODEL.")).addError(BadRequest).addError(Conflict).addError(Forbidden).addError(NotFound).middleware(ApiKeyAuthentication).annotate(_effect_platform.OpenApi.Title, "Evals").annotate(_effect_platform.OpenApi.Description, "Run cases across harness, model, and sandbox combinations and compare the results with their baselines.") {};
843
+ var PublicEvalsGroup = class extends _effect_platform.HttpApiGroup.make("evals").add(_effect_platform.HttpApiEndpoint.post("list", "/evals.list").setPayload(ListEvalsRequest).addSuccess(EvalRunPage).annotate(_effect_platform.OpenApi.Summary, "List eval runs").annotate(_effect_platform.OpenApi.Description, "Newest first. Pass the `next` cursor from a response to read the page after it; a null `next` means there are no more.")).add(_effect_platform.HttpApiEndpoint.post("cases", "/evals.cases").setPayload(ListCasesRequest).addSuccess(EvalCasePage).annotate(_effect_platform.OpenApi.Summary, "List cases").annotate(_effect_platform.OpenApi.Description, "One row per case, carrying its newest run. Pass `tag` to read only the cases carrying it.")).add(_effect_platform.HttpApiEndpoint.post("start", "/evals.start").setPayload(PublicStartEvalRequest).addSuccess(StartedEval).annotate(_effect_platform.OpenApi.Summary, "Start an eval run").annotate(_effect_platform.OpenApi.Description, `Starts the grid and returns its id while trials continue in the background. ${PROFILE_HARNESS_RULE}`)).add(_effect_platform.HttpApiEndpoint.post("credentials", "/evals.credentials").setPayload(CredentialLeaseRequest).addSuccess(CredentialLease).annotate(_effect_platform.OpenApi.Summary, "Lease the credentials a local run needs").annotate(_effect_platform.OpenApi.Description, "For a run started with executeLocally, so the machine running it holds no credentials of its own. Returns the organization credential for one harness, expiring in minutes. Sandbox credentials are never leased: a local run opens no cloud sandbox.")).add(_effect_platform.HttpApiEndpoint.post("reportTrial", "/evals.reportTrial").setPayload(ReportTrialRequest).addSuccess(effect.Schema.Void).annotate(_effect_platform.OpenApi.Summary, "Report a trial run outside the platform").annotate(_effect_platform.OpenApi.Description, "For a run started with executeLocally. The result is recorded as reported: it was produced somewhere the platform cannot inspect, so it is marked and kept out of baselines.")).add(_effect_platform.HttpApiEndpoint.post("finishRun", "/evals.finishRun").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(_effect_platform.OpenApi.Summary, "Settle a run whose trials the caller ran").annotate(_effect_platform.OpenApi.Description, "Settles the run from the trials reported so far. A run left unsettled is swept like any other abandoned work.")).add(_effect_platform.HttpApiEndpoint.post("artifact", "/evals.artifact").setPayload(EvalArtifactRequest).addSuccess(EvalArtifact)).add(_effect_platform.HttpApiEndpoint.post("get", "/evals.get").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(_effect_platform.OpenApi.Summary, "Get an eval run")).add(_effect_platform.HttpApiEndpoint.post("subscription", "/evals.subscription").setPayload(EvalRunRequest).addSuccess(RunSubscription).annotate(_effect_platform.OpenApi.Summary, "Watch an eval run as it moves").annotate(_effect_platform.OpenApi.Description, "Returns a read-only token scoped to this run, for following it in real time. Short-lived: request another when it expires.")).add(_effect_platform.HttpApiEndpoint.post("cellHistory", "/evals.cellHistory").setPayload(EvalCellRequest).addSuccess(effect.Schema.Array(EvalCellHistoryEntry)).annotate(_effect_platform.OpenApi.Summary, "List a cell's history").annotate(_effect_platform.OpenApi.Description, "Returns the 20 most recent results.")).add(_effect_platform.HttpApiEndpoint.post("rerunCell", "/evals.rerunCell").setPayload(effect.Schema.extend(EvalRunRequest, effect.Schema.extend(EvalCellRequest, RerunCellRequest))).addSuccess(StartedEval).annotate(_effect_platform.OpenApi.Summary, "Rerun one cell")).add(_effect_platform.HttpApiEndpoint.post("models", "/evals.models").setPayload(EvalModelsRequest).addSuccess(ModelCatalogue).annotate(_effect_platform.OpenApi.Summary, "List models available to the harness").annotate(_effect_platform.OpenApi.Description, "The command harness has no catalogue of its own, so its list is empty: the model is whatever the profile's run command reads from ANPORD_MODEL.")).addError(BadRequest).addError(Conflict).addError(Forbidden).addError(NotFound).middleware(ApiKeyAuthentication).annotate(_effect_platform.OpenApi.Title, "Evals").annotate(_effect_platform.OpenApi.Description, "Run cases across harness, model, and sandbox combinations and compare the results with their baselines.") {};
791
844
  //#endregion
792
845
  Object.defineProperty(exports, "ApiKeyAuthentication", {
793
846
  enumerable: true,