anpord 0.1.20 → 0.1.21

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 (57) hide show
  1. package/dist/api-context.cjs +1 -1
  2. package/dist/api-context.d.cts +1 -1
  3. package/dist/api-context.d.mts +1 -1
  4. package/dist/api-context.mjs +1 -1
  5. package/dist/{api-mocks-C3SsliJZ.mjs → api-mocks-BYWvJp9v.mjs} +3 -3
  6. package/dist/{api-mocks-xXKzUFc9.d.cts → api-mocks-BenVx0e8.d.cts} +11 -11
  7. package/dist/{api-mocks-xXKzUFc9.d.mts → api-mocks-BenVx0e8.d.mts} +11 -11
  8. package/dist/{api-mocks-BjnewAya.cjs → api-mocks-CgiC7T9U.cjs} +8 -2
  9. package/dist/api-runtime.cjs +1 -1
  10. package/dist/api-runtime.d.cts +1 -1
  11. package/dist/api-runtime.d.mts +1 -1
  12. package/dist/api-runtime.mjs +1 -1
  13. package/dist/api.cjs +1 -1
  14. package/dist/api.d.cts +1 -1
  15. package/dist/api.d.mts +1 -1
  16. package/dist/api.mjs +1 -1
  17. package/dist/bin.cjs +4005 -50
  18. package/dist/bin.mjs +4008 -53
  19. package/dist/{client-D4SBJEsG.cjs → client-BZDftC1x.cjs} +1 -1
  20. package/dist/{client-ClWUDcPC.d.mts → client-C7iEhiDm.d.mts} +5352 -2328
  21. package/dist/{client-BD2VyKja.d.cts → client-CsGxLUZq.d.cts} +5352 -2328
  22. package/dist/{client-DCSRP55Q.mjs → client-D0l3kwWV.mjs} +1 -1
  23. package/dist/{compiler-DSN62KNe.cjs → compiler-Cy85vNbp.cjs} +2 -2
  24. package/dist/{compiler-BKchnKps.mjs → compiler-DSQRHvXS.mjs} +2 -2
  25. package/dist/config.cjs +1 -1
  26. package/dist/config.d.cts +1 -1
  27. package/dist/config.d.mts +1 -1
  28. package/dist/config.mjs +1 -1
  29. package/dist/{eval-turns-DZTHit19.mjs → eval-turns-BC-GMHD-.mjs} +2 -1
  30. package/dist/{eval-turns-weR_7JIp.cjs → eval-turns-DcJ8_1qr.cjs} +7 -0
  31. package/dist/{eval-validations-D0Cz6xSg.cjs → eval-validations-CZm7vVtQ.cjs} +12 -0
  32. package/dist/{eval-validations-CUG2PvR_.mjs → eval-validations-DNO-qwkU.mjs} +1 -1
  33. package/dist/eval.cjs +1 -1
  34. package/dist/eval.d.cts +1 -1
  35. package/dist/eval.d.mts +1 -1
  36. package/dist/eval.mjs +1 -1
  37. package/dist/{evals-WMHOpPxd.d.cts → evals-Dw2Ek-mx.d.cts} +115 -112
  38. package/dist/{evals-WMHOpPxd.d.mts → evals-Dw2Ek-mx.d.mts} +115 -112
  39. package/dist/{evals-api-B0lnr_R8.mjs → evals-api-CK3F1KoI.mjs} +113 -14
  40. package/dist/{evals-api-DuDr8UdV.cjs → evals-api-CNoLlXL5.cjs} +124 -13
  41. package/dist/index.cjs +2 -2
  42. package/dist/index.d.cts +3 -3
  43. package/dist/index.d.mts +3 -3
  44. package/dist/index.mjs +2 -2
  45. package/dist/{runtime-B5it0Siy.cjs → runtime-Bfs2j0jW.cjs} +2 -2
  46. package/dist/{runtime-ChWJywJY.mjs → runtime-CYr8RbsW.mjs} +2 -2
  47. package/dist/source.d.cts +1 -1
  48. package/dist/source.d.mts +1 -1
  49. package/dist/{types-Cw5k37Uk.d.mts → types-D-h67MVJ.d.mts} +5 -4
  50. package/dist/{types-CUVZ1A_F.d.cts → types-Dvd_z5ge.d.cts} +5 -4
  51. package/dist/validator-runtime.cjs +2 -2
  52. package/dist/validator-runtime.d.cts +1 -1
  53. package/dist/validator-runtime.d.mts +1 -1
  54. package/dist/validator-runtime.mjs +2 -2
  55. package/dist/validators.cjs +1 -1
  56. package/dist/validators.mjs +1 -1
  57. package/package.json +3 -1
@@ -1,6 +1,6 @@
1
1
  import { n as EvalJudgment, r as EvalHarness$1, t as EvalJudge } from "./eval-judges-Bee_ABJt.mjs";
2
- import { t as EvalValidations } from "./eval-validations-CUG2PvR_.mjs";
3
- import { r as EvalUser } from "./eval-turns-DZTHit19.mjs";
2
+ import { n as EvalValidations } from "./eval-validations-DNO-qwkU.mjs";
3
+ import { i as EvalUser } from "./eval-turns-BC-GMHD-.mjs";
4
4
  import { Context, Schema } from "effect";
5
5
  import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, HttpApiSecurity, OpenApi } from "@effect/platform";
6
6
  //#region ../schema/src/domain/credentials.ts
@@ -199,10 +199,11 @@ const PROFILE_HARNESS_RULE = "The command harness needs a profile with a run com
199
199
  //#endregion
200
200
  //#region ../schema/src/domain/evals.ts
201
201
  const EvalHarness = EvalHarness$1;
202
- const EvalSandbox = Schema.Literal("daytona", "e2b", "upstash", "modal", "cloudflare", "vercel");
203
- EvalSandbox.literals;
202
+ const EvalSandbox = Schema.Literal("daytona", "e2b", "upstash", "modal", "cloudflare", "vercel", "local");
203
+ const HOSTED_SANDBOXES = EvalSandbox.literals.filter((sandbox) => sandbox !== "local");
204
204
  const EvalTrialStatus = Schema.Literal("queued", "running", "passed", "failed", "void");
205
205
  const EvalRunStatus = Schema.Literal("running", "finished", "failed");
206
+ const EvalExecutor = Schema.Literal("client");
206
207
  const EvalSource = Schema.Union(Schema.Struct({ kind: Schema.Literal("empty") }), Schema.Struct({
207
208
  kind: Schema.Literal("repo"),
208
209
  ref: Schema.NullOr(Schema.String),
@@ -307,7 +308,7 @@ Schema.Struct({
307
308
  tasks: Schema.Array(EvalTaskRequest).pipe(Schema.minItems(1), Schema.maxItems(20)),
308
309
  trials: Schema.Int.pipe(Schema.between(1, 10))
309
310
  });
310
- const OccurredAtMillis = Schema.NullOr(Schema.Number);
311
+ const OccurredAtMillis$1 = Schema.NullOr(Schema.Number);
311
312
  const EvalUsage = Schema.Struct({
312
313
  cacheReadTokens: Schema.Int,
313
314
  cacheWriteTokens: Schema.Int,
@@ -323,18 +324,18 @@ const EvalJournalEntry = Schema.Union(Schema.Struct({
323
324
  _tag: Schema.Literal("command"),
324
325
  command: Schema.String,
325
326
  exitCode: Schema.NullOr(Schema.Int),
326
- finishedAtMillis: OccurredAtMillis,
327
+ finishedAtMillis: OccurredAtMillis$1,
327
328
  output: Schema.String,
328
329
  outputTruncated: Schema.optional(Schema.Boolean),
329
- startedAtMillis: OccurredAtMillis
330
+ startedAtMillis: OccurredAtMillis$1
330
331
  }), Schema.Struct({
331
332
  _tag: Schema.Literal("message"),
332
- finishedAtMillis: OccurredAtMillis,
333
+ finishedAtMillis: OccurredAtMillis$1,
333
334
  text: Schema.String,
334
335
  usage: Schema.optional(Schema.NullOr(EvalUsage))
335
336
  }), Schema.Struct({
336
337
  _tag: Schema.Literal("toolCall"),
337
- finishedAtMillis: OccurredAtMillis,
338
+ finishedAtMillis: OccurredAtMillis$1,
338
339
  input: Schema.optional(Schema.String),
339
340
  name: Schema.String,
340
341
  output: Schema.optional(Schema.String),
@@ -342,11 +343,11 @@ const EvalJournalEntry = Schema.Union(Schema.Struct({
342
343
  outputTruncated: Schema.optional(Schema.Boolean),
343
344
  inputTruncated: Schema.optional(Schema.Boolean),
344
345
  errorTruncated: Schema.optional(Schema.Boolean),
345
- startedAtMillis: Schema.optional(OccurredAtMillis),
346
+ startedAtMillis: Schema.optional(OccurredAtMillis$1),
346
347
  status: Schema.NullOr(Schema.String)
347
348
  }), Schema.Struct({
348
349
  _tag: Schema.Literal("fileChange"),
349
- finishedAtMillis: OccurredAtMillis,
350
+ finishedAtMillis: OccurredAtMillis$1,
350
351
  paths: Schema.Array(Schema.String)
351
352
  })).annotations({
352
353
  description: "A normalized event recorded from the harness trajectory.",
@@ -493,6 +494,7 @@ const EvalRun = Schema.Struct({
493
494
  cases: Schema.Array(Schema.String),
494
495
  cells: Schema.Array(EvalCell),
495
496
  costs: Schema.NullOr(EvalCosts),
497
+ executedBy: Schema.optionalWith(Schema.NullOr(EvalExecutor), { default: () => null }),
496
498
  failure: Schema.NullOr(Schema.String),
497
499
  finishedAt: Schema.NullOr(EvalTimestamp),
498
500
  id: Schema.String,
@@ -547,6 +549,14 @@ const EvalCellHistoryEntry = Schema.Struct({
547
549
  description: "A previous scored result for the same cell identity.",
548
550
  identifier: "EvalCellHistoryEntry"
549
551
  });
552
+ const RunSubscription = Schema.Struct({
553
+ expiresAtMillis: Schema.Number,
554
+ tag: Schema.String,
555
+ token: Schema.String
556
+ }).annotations({
557
+ description: "A scoped, read-only token for watching one run in real time.",
558
+ identifier: "RunSubscription"
559
+ });
550
560
  //#endregion
551
561
  //#region ../schema/src/domain/eval-playground.ts
552
562
  const PlaygroundCaseView = Schema.Struct({
@@ -628,6 +638,75 @@ const ModelCatalogue = Schema.Struct({
628
638
  identifier: "ModelCatalogue"
629
639
  });
630
640
  //#endregion
641
+ //#region ../schema/src/domain/harness-event.ts
642
+ const OccurredAtMillis = Schema.optional(Schema.Number);
643
+ const HarnessUsage = Schema.Struct({
644
+ cacheReadTokens: Schema.Int,
645
+ cacheWriteTokens: Schema.Int,
646
+ costUsd: Schema.optional(Schema.Number),
647
+ inputTokens: Schema.Int,
648
+ outputTokens: Schema.Int,
649
+ totalTokens: Schema.Int
650
+ });
651
+ const HarnessEvent = Schema.Union(Schema.Struct({
652
+ _tag: Schema.Literal("Started"),
653
+ at: OccurredAtMillis,
654
+ model: Schema.String,
655
+ sessionId: Schema.String
656
+ }), Schema.Struct({
657
+ _tag: Schema.Literal("Message"),
658
+ at: OccurredAtMillis,
659
+ role: Schema.Literal("assistant", "user"),
660
+ text: Schema.String,
661
+ usage: Schema.optional(HarnessUsage)
662
+ }), Schema.Struct({
663
+ _tag: Schema.Literal("Command"),
664
+ at: OccurredAtMillis,
665
+ command: Schema.String,
666
+ exitCode: Schema.NullOr(Schema.Int),
667
+ output: Schema.String,
668
+ startedAt: Schema.optional(Schema.Number)
669
+ }), Schema.Struct({
670
+ _tag: Schema.Literal("FileChange"),
671
+ at: OccurredAtMillis,
672
+ paths: Schema.Array(Schema.String)
673
+ }), Schema.Struct({
674
+ _tag: Schema.Literal("ToolCall"),
675
+ at: OccurredAtMillis,
676
+ callId: Schema.NullOr(Schema.String),
677
+ input: Schema.String,
678
+ name: Schema.String,
679
+ output: Schema.optional(Schema.String),
680
+ error: Schema.optional(Schema.String),
681
+ startedAt: Schema.optional(Schema.Number),
682
+ status: Schema.NullOr(Schema.String)
683
+ }), Schema.Struct({
684
+ _tag: Schema.Literal("Finished"),
685
+ at: OccurredAtMillis,
686
+ reason: Schema.String
687
+ }));
688
+ //#endregion
689
+ //#region ../schema/src/domain/trial.ts
690
+ const TrialStatus = Schema.Literal("queued", "running", "passed", "failed", "void");
691
+ Schema.decodeUnknownOption(TrialStatus);
692
+ const VerifyStepResult = Schema.Struct({
693
+ command: Schema.String,
694
+ exitCode: Schema.Int
695
+ });
696
+ const TrialOutcome = Schema.Struct({
697
+ artifacts: Schema.optional(Schema.Array(EvalArtifactMetadata)),
698
+ validations: Schema.optional(EvalValidations),
699
+ judgments: Schema.optional(Schema.Array(EvalJudgment)),
700
+ commandCount: Schema.Int,
701
+ exitCode: Schema.Int,
702
+ modelMs: Schema.Int,
703
+ passed: Schema.Boolean,
704
+ sandboxMs: Schema.Int,
705
+ status: TrialStatus,
706
+ verifySteps: Schema.Array(VerifyStepResult),
707
+ voidFields: Schema.Array(Schema.String)
708
+ });
709
+ //#endregion
631
710
  //#region ../schema/src/public/evals-api.ts
632
711
  const EvalRunRequest = Schema.Struct({ id: Schema.String }).annotations({
633
712
  description: "Select an eval run by id.",
@@ -644,7 +723,7 @@ const EvalModelsRequest = Schema.Struct({
644
723
  description: "Select a harness whose available models should be listed.",
645
724
  identifier: "EvalModelsRequest"
646
725
  });
647
- const PublicEvalSandbox = EvalSandbox.annotations({
726
+ const PublicEvalSandbox = Schema.Literal(...HOSTED_SANDBOXES).annotations({
648
727
  description: "The hosted sandbox a task runs in.",
649
728
  identifier: "PublicEvalSandbox"
650
729
  });
@@ -680,6 +759,7 @@ const PublicEvalTask = Schema.Struct({
680
759
  const PublicStartEvalRequest = Schema.Struct({
681
760
  trigger: Schema.optional(EvalTrigger),
682
761
  cases: Schema.Array(PublicEvalCase).pipe(Schema.minItems(1), Schema.maxItems(100)),
762
+ executeLocally: Schema.optional(Schema.Boolean),
683
763
  name: Schema.optional(EvalName),
684
764
  prompt: EvalPrompt,
685
765
  tasks: Schema.Array(PublicEvalTask).pipe(Schema.minItems(1), Schema.maxItems(20)),
@@ -688,6 +768,25 @@ const PublicStartEvalRequest = Schema.Struct({
688
768
  description: `Start a grid with at most 100 total case, task, and trial combinations.`,
689
769
  identifier: "StartEvalRequest"
690
770
  });
691
- var PublicEvalsGroup = class extends HttpApiGroup.make("evals").add(HttpApiEndpoint.post("list", "/evals.list").setPayload(ListEvalsRequest).addSuccess(EvalRunPage).annotate(OpenApi.Summary, "List eval runs").annotate(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(HttpApiEndpoint.post("start", "/evals.start").setPayload(PublicStartEvalRequest).addSuccess(StartedEval).annotate(OpenApi.Summary, "Start an eval run").annotate(OpenApi.Description, `Starts the grid and returns its id while trials continue in the background. ${PROFILE_HARNESS_RULE}`)).add(HttpApiEndpoint.post("artifact", "/evals.artifact").setPayload(EvalArtifactRequest).addSuccess(EvalArtifact)).add(HttpApiEndpoint.post("get", "/evals.get").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(OpenApi.Summary, "Get an eval run")).add(HttpApiEndpoint.post("cellHistory", "/evals.cellHistory").setPayload(EvalCellRequest).addSuccess(Schema.Array(EvalCellHistoryEntry)).annotate(OpenApi.Summary, "List a cell's history").annotate(OpenApi.Description, "Returns the 20 most recent results.")).add(HttpApiEndpoint.post("rerunCell", "/evals.rerunCell").setPayload(Schema.extend(EvalRunRequest, Schema.extend(EvalCellRequest, RerunCellRequest))).addSuccess(StartedEval).annotate(OpenApi.Summary, "Rerun one cell")).add(HttpApiEndpoint.post("models", "/evals.models").setPayload(EvalModelsRequest).addSuccess(ModelCatalogue).annotate(OpenApi.Summary, "List models available to the harness").annotate(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(OpenApi.Title, "Evals").annotate(OpenApi.Description, "Run cases across harness, model, and sandbox combinations and compare the results with their baselines.") {};
771
+ const ReportedTrial = Schema.Struct({
772
+ caseName: EvalCaseName,
773
+ events: Schema.Array(HarnessEvent),
774
+ ordinal: Schema.Int.pipe(Schema.nonNegative()),
775
+ outcome: TrialOutcome,
776
+ sandboxId: Schema.optional(Schema.NullOr(Schema.String)),
777
+ taskIndex: Schema.Int.pipe(Schema.nonNegative()),
778
+ usage: Schema.optional(Schema.NullOr(HarnessUsage))
779
+ }).annotations({
780
+ description: "One trial a client ran and is reporting the result of.",
781
+ identifier: "ReportedTrial"
782
+ });
783
+ const ReportTrialRequest = Schema.Struct({
784
+ id: Schema.String,
785
+ trial: ReportedTrial
786
+ }).annotations({
787
+ description: "A trial the caller ran, named by the run it belongs to.",
788
+ identifier: "ReportTrialRequest"
789
+ });
790
+ var PublicEvalsGroup = class extends HttpApiGroup.make("evals").add(HttpApiEndpoint.post("list", "/evals.list").setPayload(ListEvalsRequest).addSuccess(EvalRunPage).annotate(OpenApi.Summary, "List eval runs").annotate(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(HttpApiEndpoint.post("start", "/evals.start").setPayload(PublicStartEvalRequest).addSuccess(StartedEval).annotate(OpenApi.Summary, "Start an eval run").annotate(OpenApi.Description, `Starts the grid and returns its id while trials continue in the background. ${PROFILE_HARNESS_RULE}`)).add(HttpApiEndpoint.post("reportTrial", "/evals.reportTrial").setPayload(ReportTrialRequest).addSuccess(Schema.Void).annotate(OpenApi.Summary, "Report a trial run outside the platform").annotate(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(HttpApiEndpoint.post("finishRun", "/evals.finishRun").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(OpenApi.Summary, "Settle a run whose trials the caller ran").annotate(OpenApi.Description, "Settles the run from the trials reported so far. A run left unsettled is swept like any other abandoned work.")).add(HttpApiEndpoint.post("artifact", "/evals.artifact").setPayload(EvalArtifactRequest).addSuccess(EvalArtifact)).add(HttpApiEndpoint.post("get", "/evals.get").setPayload(EvalRunRequest).addSuccess(EvalRun).annotate(OpenApi.Summary, "Get an eval run")).add(HttpApiEndpoint.post("subscription", "/evals.subscription").setPayload(EvalRunRequest).addSuccess(RunSubscription).annotate(OpenApi.Summary, "Watch an eval run as it moves").annotate(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(HttpApiEndpoint.post("cellHistory", "/evals.cellHistory").setPayload(EvalCellRequest).addSuccess(Schema.Array(EvalCellHistoryEntry)).annotate(OpenApi.Summary, "List a cell's history").annotate(OpenApi.Description, "Returns the 20 most recent results.")).add(HttpApiEndpoint.post("rerunCell", "/evals.rerunCell").setPayload(Schema.extend(EvalRunRequest, Schema.extend(EvalCellRequest, RerunCellRequest))).addSuccess(StartedEval).annotate(OpenApi.Summary, "Rerun one cell")).add(HttpApiEndpoint.post("models", "/evals.models").setPayload(EvalModelsRequest).addSuccess(ModelCatalogue).annotate(OpenApi.Summary, "List models available to the harness").annotate(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(OpenApi.Title, "Evals").annotate(OpenApi.Description, "Run cases across harness, model, and sandbox combinations and compare the results with their baselines.") {};
692
791
  //#endregion
693
- export { CredentialConnection as _, EnvName as a, CredentialValues as b, ProfilePath as c, EvalTrigger as d, ApiKeyAuthentication as f, NotFound as g, Forbidden as h, EvalValidator as i, profileFitsHarness as l, Conflict as m, PublicStartEvalRequest as n, HarnessProfile as o, BadRequest as p, EvalRun as r, PROFILE_LIMITS as s, PublicEvalsGroup as t, EvalSourceFiles as u, CredentialIntegration as v, CredentialScope as y };
792
+ export { CredentialValues as S, Forbidden as _, EvalSandbox as a, CredentialIntegration as b, HarnessProfile as c, profileFitsHarness as d, EvalSourceFiles as f, Conflict as g, BadRequest as h, EvalRun as i, PROFILE_LIMITS as l, ApiKeyAuthentication as m, PublicStartEvalRequest as n, EvalValidator as o, EvalTrigger as p, HarnessEvent as r, EnvName as s, PublicEvalsGroup as t, ProfilePath as u, NotFound as v, CredentialScope as x, CredentialConnection as y };
@@ -1,6 +1,6 @@
1
1
  const require_eval_judges = require("./eval-judges-1zF4PVqV.cjs");
2
- const require_eval_validations = require("./eval-validations-D0Cz6xSg.cjs");
3
- const require_eval_turns = require("./eval-turns-weR_7JIp.cjs");
2
+ const require_eval_validations = require("./eval-validations-CZm7vVtQ.cjs");
3
+ const require_eval_turns = require("./eval-turns-DcJ8_1qr.cjs");
4
4
  let effect = require("effect");
5
5
  let _effect_platform = require("@effect/platform");
6
6
  //#region ../schema/src/domain/credentials.ts
@@ -199,10 +199,11 @@ const PROFILE_HARNESS_RULE = "The command harness needs a profile with a run com
199
199
  //#endregion
200
200
  //#region ../schema/src/domain/evals.ts
201
201
  const EvalHarness = require_eval_judges.EvalHarness;
202
- const EvalSandbox = effect.Schema.Literal("daytona", "e2b", "upstash", "modal", "cloudflare", "vercel");
203
- EvalSandbox.literals;
202
+ const EvalSandbox = effect.Schema.Literal("daytona", "e2b", "upstash", "modal", "cloudflare", "vercel", "local");
203
+ const HOSTED_SANDBOXES = EvalSandbox.literals.filter((sandbox) => sandbox !== "local");
204
204
  const EvalTrialStatus = effect.Schema.Literal("queued", "running", "passed", "failed", "void");
205
205
  const EvalRunStatus = effect.Schema.Literal("running", "finished", "failed");
206
+ const EvalExecutor = effect.Schema.Literal("client");
206
207
  const EvalSource = effect.Schema.Union(effect.Schema.Struct({ kind: effect.Schema.Literal("empty") }), effect.Schema.Struct({
207
208
  kind: effect.Schema.Literal("repo"),
208
209
  ref: effect.Schema.NullOr(effect.Schema.String),
@@ -307,7 +308,7 @@ effect.Schema.Struct({
307
308
  tasks: effect.Schema.Array(EvalTaskRequest).pipe(effect.Schema.minItems(1), effect.Schema.maxItems(20)),
308
309
  trials: effect.Schema.Int.pipe(effect.Schema.between(1, 10))
309
310
  });
310
- const OccurredAtMillis = effect.Schema.NullOr(effect.Schema.Number);
311
+ const OccurredAtMillis$1 = effect.Schema.NullOr(effect.Schema.Number);
311
312
  const EvalUsage = effect.Schema.Struct({
312
313
  cacheReadTokens: effect.Schema.Int,
313
314
  cacheWriteTokens: effect.Schema.Int,
@@ -323,18 +324,18 @@ const EvalJournalEntry = effect.Schema.Union(effect.Schema.Struct({
323
324
  _tag: effect.Schema.Literal("command"),
324
325
  command: effect.Schema.String,
325
326
  exitCode: effect.Schema.NullOr(effect.Schema.Int),
326
- finishedAtMillis: OccurredAtMillis,
327
+ finishedAtMillis: OccurredAtMillis$1,
327
328
  output: effect.Schema.String,
328
329
  outputTruncated: effect.Schema.optional(effect.Schema.Boolean),
329
- startedAtMillis: OccurredAtMillis
330
+ startedAtMillis: OccurredAtMillis$1
330
331
  }), effect.Schema.Struct({
331
332
  _tag: effect.Schema.Literal("message"),
332
- finishedAtMillis: OccurredAtMillis,
333
+ finishedAtMillis: OccurredAtMillis$1,
333
334
  text: effect.Schema.String,
334
335
  usage: effect.Schema.optional(effect.Schema.NullOr(EvalUsage))
335
336
  }), effect.Schema.Struct({
336
337
  _tag: effect.Schema.Literal("toolCall"),
337
- finishedAtMillis: OccurredAtMillis,
338
+ finishedAtMillis: OccurredAtMillis$1,
338
339
  input: effect.Schema.optional(effect.Schema.String),
339
340
  name: effect.Schema.String,
340
341
  output: effect.Schema.optional(effect.Schema.String),
@@ -342,11 +343,11 @@ const EvalJournalEntry = effect.Schema.Union(effect.Schema.Struct({
342
343
  outputTruncated: effect.Schema.optional(effect.Schema.Boolean),
343
344
  inputTruncated: effect.Schema.optional(effect.Schema.Boolean),
344
345
  errorTruncated: effect.Schema.optional(effect.Schema.Boolean),
345
- startedAtMillis: effect.Schema.optional(OccurredAtMillis),
346
+ startedAtMillis: effect.Schema.optional(OccurredAtMillis$1),
346
347
  status: effect.Schema.NullOr(effect.Schema.String)
347
348
  }), effect.Schema.Struct({
348
349
  _tag: effect.Schema.Literal("fileChange"),
349
- finishedAtMillis: OccurredAtMillis,
350
+ finishedAtMillis: OccurredAtMillis$1,
350
351
  paths: effect.Schema.Array(effect.Schema.String)
351
352
  })).annotations({
352
353
  description: "A normalized event recorded from the harness trajectory.",
@@ -493,6 +494,7 @@ const EvalRun = effect.Schema.Struct({
493
494
  cases: effect.Schema.Array(effect.Schema.String),
494
495
  cells: effect.Schema.Array(EvalCell),
495
496
  costs: effect.Schema.NullOr(EvalCosts),
497
+ executedBy: effect.Schema.optionalWith(effect.Schema.NullOr(EvalExecutor), { default: () => null }),
496
498
  failure: effect.Schema.NullOr(effect.Schema.String),
497
499
  finishedAt: effect.Schema.NullOr(EvalTimestamp),
498
500
  id: effect.Schema.String,
@@ -547,6 +549,14 @@ const EvalCellHistoryEntry = effect.Schema.Struct({
547
549
  description: "A previous scored result for the same cell identity.",
548
550
  identifier: "EvalCellHistoryEntry"
549
551
  });
552
+ const RunSubscription = effect.Schema.Struct({
553
+ expiresAtMillis: effect.Schema.Number,
554
+ tag: effect.Schema.String,
555
+ token: effect.Schema.String
556
+ }).annotations({
557
+ description: "A scoped, read-only token for watching one run in real time.",
558
+ identifier: "RunSubscription"
559
+ });
550
560
  //#endregion
551
561
  //#region ../schema/src/domain/eval-playground.ts
552
562
  const PlaygroundCaseView = effect.Schema.Struct({
@@ -628,6 +638,75 @@ const ModelCatalogue = effect.Schema.Struct({
628
638
  identifier: "ModelCatalogue"
629
639
  });
630
640
  //#endregion
641
+ //#region ../schema/src/domain/harness-event.ts
642
+ const OccurredAtMillis = effect.Schema.optional(effect.Schema.Number);
643
+ const HarnessUsage = effect.Schema.Struct({
644
+ cacheReadTokens: effect.Schema.Int,
645
+ cacheWriteTokens: effect.Schema.Int,
646
+ costUsd: effect.Schema.optional(effect.Schema.Number),
647
+ inputTokens: effect.Schema.Int,
648
+ outputTokens: effect.Schema.Int,
649
+ totalTokens: effect.Schema.Int
650
+ });
651
+ const HarnessEvent = effect.Schema.Union(effect.Schema.Struct({
652
+ _tag: effect.Schema.Literal("Started"),
653
+ at: OccurredAtMillis,
654
+ model: effect.Schema.String,
655
+ sessionId: effect.Schema.String
656
+ }), effect.Schema.Struct({
657
+ _tag: effect.Schema.Literal("Message"),
658
+ at: OccurredAtMillis,
659
+ role: effect.Schema.Literal("assistant", "user"),
660
+ text: effect.Schema.String,
661
+ usage: effect.Schema.optional(HarnessUsage)
662
+ }), effect.Schema.Struct({
663
+ _tag: effect.Schema.Literal("Command"),
664
+ at: OccurredAtMillis,
665
+ command: effect.Schema.String,
666
+ exitCode: effect.Schema.NullOr(effect.Schema.Int),
667
+ output: effect.Schema.String,
668
+ startedAt: effect.Schema.optional(effect.Schema.Number)
669
+ }), effect.Schema.Struct({
670
+ _tag: effect.Schema.Literal("FileChange"),
671
+ at: OccurredAtMillis,
672
+ paths: effect.Schema.Array(effect.Schema.String)
673
+ }), effect.Schema.Struct({
674
+ _tag: effect.Schema.Literal("ToolCall"),
675
+ at: OccurredAtMillis,
676
+ callId: effect.Schema.NullOr(effect.Schema.String),
677
+ input: effect.Schema.String,
678
+ name: effect.Schema.String,
679
+ output: effect.Schema.optional(effect.Schema.String),
680
+ error: effect.Schema.optional(effect.Schema.String),
681
+ startedAt: effect.Schema.optional(effect.Schema.Number),
682
+ status: effect.Schema.NullOr(effect.Schema.String)
683
+ }), effect.Schema.Struct({
684
+ _tag: effect.Schema.Literal("Finished"),
685
+ at: OccurredAtMillis,
686
+ reason: effect.Schema.String
687
+ }));
688
+ //#endregion
689
+ //#region ../schema/src/domain/trial.ts
690
+ const TrialStatus = effect.Schema.Literal("queued", "running", "passed", "failed", "void");
691
+ effect.Schema.decodeUnknownOption(TrialStatus);
692
+ const VerifyStepResult = effect.Schema.Struct({
693
+ command: effect.Schema.String,
694
+ exitCode: effect.Schema.Int
695
+ });
696
+ const TrialOutcome = effect.Schema.Struct({
697
+ artifacts: effect.Schema.optional(effect.Schema.Array(EvalArtifactMetadata)),
698
+ validations: effect.Schema.optional(require_eval_validations.EvalValidations),
699
+ judgments: effect.Schema.optional(effect.Schema.Array(require_eval_judges.EvalJudgment)),
700
+ commandCount: effect.Schema.Int,
701
+ exitCode: effect.Schema.Int,
702
+ modelMs: effect.Schema.Int,
703
+ passed: effect.Schema.Boolean,
704
+ sandboxMs: effect.Schema.Int,
705
+ status: TrialStatus,
706
+ verifySteps: effect.Schema.Array(VerifyStepResult),
707
+ voidFields: effect.Schema.Array(effect.Schema.String)
708
+ });
709
+ //#endregion
631
710
  //#region ../schema/src/public/evals-api.ts
632
711
  const EvalRunRequest = effect.Schema.Struct({ id: effect.Schema.String }).annotations({
633
712
  description: "Select an eval run by id.",
@@ -644,7 +723,7 @@ const EvalModelsRequest = effect.Schema.Struct({
644
723
  description: "Select a harness whose available models should be listed.",
645
724
  identifier: "EvalModelsRequest"
646
725
  });
647
- const PublicEvalSandbox = EvalSandbox.annotations({
726
+ const PublicEvalSandbox = effect.Schema.Literal(...HOSTED_SANDBOXES).annotations({
648
727
  description: "The hosted sandbox a task runs in.",
649
728
  identifier: "PublicEvalSandbox"
650
729
  });
@@ -680,6 +759,7 @@ const PublicEvalTask = effect.Schema.Struct({
680
759
  const PublicStartEvalRequest = effect.Schema.Struct({
681
760
  trigger: effect.Schema.optional(EvalTrigger),
682
761
  cases: effect.Schema.Array(PublicEvalCase).pipe(effect.Schema.minItems(1), effect.Schema.maxItems(100)),
762
+ executeLocally: effect.Schema.optional(effect.Schema.Boolean),
683
763
  name: effect.Schema.optional(EvalName),
684
764
  prompt: EvalPrompt,
685
765
  tasks: effect.Schema.Array(PublicEvalTask).pipe(effect.Schema.minItems(1), effect.Schema.maxItems(20)),
@@ -688,7 +768,26 @@ const PublicStartEvalRequest = effect.Schema.Struct({
688
768
  description: `Start a grid with at most 100 total case, task, and trial combinations.`,
689
769
  identifier: "StartEvalRequest"
690
770
  });
691
- 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("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("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.") {};
771
+ const ReportedTrial = effect.Schema.Struct({
772
+ caseName: EvalCaseName,
773
+ events: effect.Schema.Array(HarnessEvent),
774
+ ordinal: effect.Schema.Int.pipe(effect.Schema.nonNegative()),
775
+ outcome: TrialOutcome,
776
+ sandboxId: effect.Schema.optional(effect.Schema.NullOr(effect.Schema.String)),
777
+ taskIndex: effect.Schema.Int.pipe(effect.Schema.nonNegative()),
778
+ usage: effect.Schema.optional(effect.Schema.NullOr(HarnessUsage))
779
+ }).annotations({
780
+ description: "One trial a client ran and is reporting the result of.",
781
+ identifier: "ReportedTrial"
782
+ });
783
+ const ReportTrialRequest = effect.Schema.Struct({
784
+ id: effect.Schema.String,
785
+ trial: ReportedTrial
786
+ }).annotations({
787
+ description: "A trial the caller ran, named by the run it belongs to.",
788
+ identifier: "ReportTrialRequest"
789
+ });
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.") {};
692
791
  //#endregion
693
792
  Object.defineProperty(exports, "ApiKeyAuthentication", {
694
793
  enumerable: true,
@@ -744,6 +843,12 @@ Object.defineProperty(exports, "EvalRun", {
744
843
  return EvalRun;
745
844
  }
746
845
  });
846
+ Object.defineProperty(exports, "EvalSandbox", {
847
+ enumerable: true,
848
+ get: function() {
849
+ return EvalSandbox;
850
+ }
851
+ });
747
852
  Object.defineProperty(exports, "EvalSourceFiles", {
748
853
  enumerable: true,
749
854
  get: function() {
@@ -768,6 +873,12 @@ Object.defineProperty(exports, "Forbidden", {
768
873
  return Forbidden;
769
874
  }
770
875
  });
876
+ Object.defineProperty(exports, "HarnessEvent", {
877
+ enumerable: true,
878
+ get: function() {
879
+ return HarnessEvent;
880
+ }
881
+ });
771
882
  Object.defineProperty(exports, "HarnessProfile", {
772
883
  enumerable: true,
773
884
  get: function() {
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_client = require("./client-D4SBJEsG.cjs");
2
+ const require_client = require("./client-BZDftC1x.cjs");
3
3
  const require_errors = require("./errors-BX1wry8K.cjs");
4
- const require_compiler = require("./compiler-DSN62KNe.cjs");
4
+ const require_compiler = require("./compiler-Cy85vNbp.cjs");
5
5
  const require_source = require("./source-aW5nSo2h.cjs");
6
6
  let effect = require("effect");
7
7
  let _effect_platform = require("@effect/platform");
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { a as layer, i as DEFAULT_BASE_URL, n as AnpordClient, o as make, r as ClientOptions, t as AnpordApi } from "./client-BD2VyKja.cjs";
2
- import { a as EvalTaskDefinition, c as Prepare, d as ProfileRef, f as Validator, i as EvalDefinition, l as PrepareContext, m as ValidatorResult, n as CommandResult, o as ExecOptions, p as ValidatorContext, r as EvalCaseDefinition, s as HarnessRef, t as CaseCache, u as PrepareValue } from "./types-CUVZ1A_F.cjs";
3
- import { _ as EvalVerdict, a as EvalDistribution, c as EvalRun, d as EvalSandbox, f as EvalSource, g as EvalUsage, h as EvalTrialStatus, i as EvalComparison, l as EvalRunStatus, m as EvalTrial, n as EvalCell, o as EvalHarness, p as EvalTask, r as EvalCellHistoryEntry, s as EvalJournalEntry, t as EvalArtifact, u as EvalRunSummary } from "./evals-WMHOpPxd.cjs";
1
+ import { a as layer, i as DEFAULT_BASE_URL, n as AnpordClient, o as make, r as ClientOptions, t as AnpordApi } from "./client-CsGxLUZq.cjs";
2
+ import { a as EvalTaskDefinition, c as Prepare, d as ProfileRef, f as Validator, i as EvalDefinition, l as PrepareContext, m as ValidatorResult, n as CommandResult, o as ExecOptions, p as ValidatorContext, r as EvalCaseDefinition, s as HarnessRef, t as CaseCache, u as PrepareValue } from "./types-Dvd_z5ge.cjs";
3
+ import { _ as EvalVerdict, a as EvalDistribution, c as EvalRun, d as EvalSandbox, f as EvalSource, g as EvalUsage, h as EvalTrialStatus, i as EvalComparison, l as EvalRunStatus, m as EvalTrial, n as EvalCell, o as EvalHarness, p as EvalTask, r as EvalCellHistoryEntry, s as EvalJournalEntry, t as EvalArtifact, u as EvalRunSummary } from "./evals-Dw2Ek-mx.cjs";
4
4
  import { n as McpCallSchema, t as McpCall } from "./calls-DJGZJPrF.cjs";
5
5
  import { n as CliCallSchema, t as CliCall } from "./calls-6Z1EoEa-.cjs";
6
6
  import { empty, files, repo } from "./source.cjs";
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { a as layer, i as DEFAULT_BASE_URL, n as AnpordClient, o as make, r as ClientOptions, t as AnpordApi } from "./client-ClWUDcPC.mjs";
2
- import { a as EvalTaskDefinition, c as Prepare, d as ProfileRef, f as Validator, i as EvalDefinition, l as PrepareContext, m as ValidatorResult, n as CommandResult, o as ExecOptions, p as ValidatorContext, r as EvalCaseDefinition, s as HarnessRef, t as CaseCache, u as PrepareValue } from "./types-Cw5k37Uk.mjs";
3
- import { _ as EvalVerdict, a as EvalDistribution, c as EvalRun, d as EvalSandbox, f as EvalSource, g as EvalUsage, h as EvalTrialStatus, i as EvalComparison, l as EvalRunStatus, m as EvalTrial, n as EvalCell, o as EvalHarness, p as EvalTask, r as EvalCellHistoryEntry, s as EvalJournalEntry, t as EvalArtifact, u as EvalRunSummary } from "./evals-WMHOpPxd.mjs";
1
+ import { a as layer, i as DEFAULT_BASE_URL, n as AnpordClient, o as make, r as ClientOptions, t as AnpordApi } from "./client-C7iEhiDm.mjs";
2
+ import { a as EvalTaskDefinition, c as Prepare, d as ProfileRef, f as Validator, i as EvalDefinition, l as PrepareContext, m as ValidatorResult, n as CommandResult, o as ExecOptions, p as ValidatorContext, r as EvalCaseDefinition, s as HarnessRef, t as CaseCache, u as PrepareValue } from "./types-D-h67MVJ.mjs";
3
+ import { _ as EvalVerdict, a as EvalDistribution, c as EvalRun, d as EvalSandbox, f as EvalSource, g as EvalUsage, h as EvalTrialStatus, i as EvalComparison, l as EvalRunStatus, m as EvalTrial, n as EvalCell, o as EvalHarness, p as EvalTask, r as EvalCellHistoryEntry, s as EvalJournalEntry, t as EvalArtifact, u as EvalRunSummary } from "./evals-Dw2Ek-mx.mjs";
4
4
  import { n as McpCallSchema, t as McpCall } from "./calls-DJGZJPrF.mjs";
5
5
  import { n as CliCallSchema, t as CliCall } from "./calls-6Z1EoEa-.mjs";
6
6
  import { empty, files, repo } from "./source.mjs";
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { i as make, n as DEFAULT_BASE_URL, r as layer, t as AnpordApi } from "./client-DCSRP55Q.mjs";
1
+ import { i as make, n as DEFAULT_BASE_URL, r as layer, t as AnpordApi } from "./client-D0l3kwWV.mjs";
2
2
  import { i as tokenMatcher, n as MissingApiKey, r as asAnpordError, t as AnpordError } from "./errors-B0YknR5V.mjs";
3
- import { a as suite, i as sourceUrlOf, t as compileDefinition } from "./compiler-BKchnKps.mjs";
3
+ import { a as suite, i as sourceUrlOf, t as compileDefinition } from "./compiler-DSQRHvXS.mjs";
4
4
  import { n as files, r as repo, t as empty } from "./source-BP11pzVV.mjs";
5
5
  import { Cache, Cause, Clock, Context, Data, DateTime, Duration, Effect, Exit, Layer, ManagedRuntime, Option, Redacted, Schema } from "effect";
6
6
  import { FetchHttpClient } from "@effect/platform";
@@ -1,5 +1,5 @@
1
- const require_eval_validations = require("./eval-validations-D0Cz6xSg.cjs");
2
- const require_api_mocks = require("./api-mocks-BjnewAya.cjs");
1
+ const require_eval_validations = require("./eval-validations-CZm7vVtQ.cjs");
2
+ const require_api_mocks = require("./api-mocks-CgiC7T9U.cjs");
3
3
  let effect = require("effect");
4
4
  let _effect_platform = require("@effect/platform");
5
5
  let _effect_platform_node_NodeFileSystem = require("@effect/platform-node/NodeFileSystem");
@@ -1,5 +1,5 @@
1
- import { a as validationCapture, i as unavailableValue } from "./eval-validations-CUG2PvR_.mjs";
2
- import { i as API_READY, n as API_MANIFEST, t as API_JOURNAL } from "./api-mocks-C3SsliJZ.mjs";
1
+ import { o as unavailableValue, s as validationCapture } from "./eval-validations-DNO-qwkU.mjs";
2
+ import { i as API_READY, n as API_MANIFEST, t as API_JOURNAL } from "./api-mocks-BYWvJp9v.mjs";
3
3
  import { Clock, Data, Deferred, Effect, Option, Ref, Schema } from "effect";
4
4
  import { FileSystem, HttpRouter, HttpServerRequest, HttpServerResponse } from "@effect/platform";
5
5
  import { layer } from "@effect/platform-node/NodeFileSystem";
package/dist/source.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as EvalSource } from "./evals-WMHOpPxd.cjs";
1
+ import { f as EvalSource } from "./evals-Dw2Ek-mx.cjs";
2
2
  //#region src/evals/source.d.ts
3
3
  declare const repo: (spec: string) => EvalSource;
4
4
  declare const files: (contents: Readonly<Record<string, string>>) => EvalSource;
package/dist/source.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { f as EvalSource } from "./evals-WMHOpPxd.mjs";
1
+ import { f as EvalSource } from "./evals-Dw2Ek-mx.mjs";
2
2
  //#region src/evals/source.d.ts
3
3
  declare const repo: (spec: string) => EvalSource;
4
4
  declare const files: (contents: Readonly<Record<string, string>>) => EvalSource;
@@ -1,7 +1,7 @@
1
1
  import "./errors-aGrd21jy.mjs";
2
- import { t as ApiCall } from "./api-mocks-xXKzUFc9.mjs";
2
+ import { t as ApiCall } from "./api-mocks-BenVx0e8.mjs";
3
3
  import { a as EvalJudge, i as EvalUser, r as EvalTurn } from "./eval-turns-CTCoSuB6.mjs";
4
- import { f as EvalSource, o as EvalHarness } from "./evals-WMHOpPxd.mjs";
4
+ import { f as EvalSource, o as EvalHarness } from "./evals-Dw2Ek-mx.mjs";
5
5
  import { t as McpCall } from "./calls-DJGZJPrF.mjs";
6
6
  import { n as McpServerDefinition } from "./define-HK0eeSNn.mjs";
7
7
  import { t as ApiDefinition } from "./define-NZvmQuIv.mjs";
@@ -200,6 +200,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
200
200
  variables: Schema.optional<Schema.Record$<typeof Schema.String, Schema.refine<string, typeof Schema.String>>>;
201
201
  verify: Schema.NullOr<Schema.refine<string, typeof Schema.String>>;
202
202
  }>>>>>;
203
+ executeLocally: Schema.optional<typeof Schema.Boolean>;
203
204
  name: Schema.optional<Schema.filter<Schema.filter<typeof Schema.String>>>;
204
205
  prompt: Schema.refine<string, typeof Schema.String>;
205
206
  tasks: Schema.filter<Schema.filter<Schema.Array$<Schema.refine<{
@@ -207,7 +208,6 @@ declare const PublicStartEvalRequest: Schema.Struct<{
207
208
  readonly model: string;
208
209
  readonly sandbox?: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel" | undefined;
209
210
  readonly profile?: {
210
- readonly run?: string | undefined;
211
211
  readonly name: string;
212
212
  readonly env?: {
213
213
  readonly [x: string]: string;
@@ -216,6 +216,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
216
216
  readonly [x: string]: string;
217
217
  };
218
218
  readonly install?: string | undefined;
219
+ readonly run?: string | undefined;
219
220
  readonly systemPrompt?: string | undefined;
220
221
  } | undefined;
221
222
  }, Schema.Struct<{
@@ -229,7 +230,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
229
230
  run: Schema.optional<typeof Schema.String>;
230
231
  systemPrompt: Schema.optional<typeof Schema.String>;
231
232
  }>>;
232
- sandbox: Schema.optional<Schema.Literal<["daytona", "e2b", "upstash", "modal", "cloudflare", "vercel"]>>;
233
+ sandbox: Schema.optional<Schema.SchemaClass<"daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel", "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel", never>>;
233
234
  }>>>>>;
234
235
  trials: Schema.filter<typeof Schema.Int>;
235
236
  }>;
@@ -1,7 +1,7 @@
1
1
  import "./errors-aGrd21jy.cjs";
2
- import { t as ApiCall } from "./api-mocks-xXKzUFc9.cjs";
2
+ import { t as ApiCall } from "./api-mocks-BenVx0e8.cjs";
3
3
  import { a as EvalJudge, i as EvalUser, r as EvalTurn } from "./eval-turns-CTCoSuB6.cjs";
4
- import { f as EvalSource, o as EvalHarness } from "./evals-WMHOpPxd.cjs";
4
+ import { f as EvalSource, o as EvalHarness } from "./evals-Dw2Ek-mx.cjs";
5
5
  import { t as McpCall } from "./calls-DJGZJPrF.cjs";
6
6
  import { n as McpServerDefinition } from "./define-HK0eeSNn.cjs";
7
7
  import { t as ApiDefinition } from "./define-NZvmQuIv.cjs";
@@ -200,6 +200,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
200
200
  variables: Schema.optional<Schema.Record$<typeof Schema.String, Schema.refine<string, typeof Schema.String>>>;
201
201
  verify: Schema.NullOr<Schema.refine<string, typeof Schema.String>>;
202
202
  }>>>>>;
203
+ executeLocally: Schema.optional<typeof Schema.Boolean>;
203
204
  name: Schema.optional<Schema.filter<Schema.filter<typeof Schema.String>>>;
204
205
  prompt: Schema.refine<string, typeof Schema.String>;
205
206
  tasks: Schema.filter<Schema.filter<Schema.Array$<Schema.refine<{
@@ -207,7 +208,6 @@ declare const PublicStartEvalRequest: Schema.Struct<{
207
208
  readonly model: string;
208
209
  readonly sandbox?: "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel" | undefined;
209
210
  readonly profile?: {
210
- readonly run?: string | undefined;
211
211
  readonly name: string;
212
212
  readonly env?: {
213
213
  readonly [x: string]: string;
@@ -216,6 +216,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
216
216
  readonly [x: string]: string;
217
217
  };
218
218
  readonly install?: string | undefined;
219
+ readonly run?: string | undefined;
219
220
  readonly systemPrompt?: string | undefined;
220
221
  } | undefined;
221
222
  }, Schema.Struct<{
@@ -229,7 +230,7 @@ declare const PublicStartEvalRequest: Schema.Struct<{
229
230
  run: Schema.optional<typeof Schema.String>;
230
231
  systemPrompt: Schema.optional<typeof Schema.String>;
231
232
  }>>;
232
- sandbox: Schema.optional<Schema.Literal<["daytona", "e2b", "upstash", "modal", "cloudflare", "vercel"]>>;
233
+ sandbox: Schema.optional<Schema.SchemaClass<"daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel", "daytona" | "e2b" | "upstash" | "modal" | "cloudflare" | "vercel", never>>;
233
234
  }>>>>>;
234
235
  trials: Schema.filter<typeof Schema.Int>;
235
236
  }>;
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_eval_validations = require("./eval-validations-D0Cz6xSg.cjs");
2
+ const require_eval_validations = require("./eval-validations-CZm7vVtQ.cjs");
3
3
  const require_api_context = require("./api-context.cjs");
4
4
  let node_fs_promises = require("node:fs/promises");
5
- let node_async_hooks = require("node:async_hooks");
6
5
  let node_child_process = require("node:child_process");
6
+ let node_async_hooks = require("node:async_hooks");
7
7
  let node_util = require("node:util");
8
8
  //#region src/evals/validator-decode.ts
9
9
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);