anpord 0.1.13 → 0.1.16

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 (65) hide show
  1. package/dist/api-context.cjs +18 -0
  2. package/dist/api-context.d.cts +8 -0
  3. package/dist/api-context.d.mts +8 -0
  4. package/dist/api-context.mjs +17 -0
  5. package/dist/api-mocks-B3qngoqS.cjs +68 -0
  6. package/dist/api-mocks-BfKw_hXc.mjs +33 -0
  7. package/dist/api-mocks-Bz3G00ve.d.cts +101 -0
  8. package/dist/api-mocks-Bz3G00ve.d.mts +101 -0
  9. package/dist/api-runtime.cjs +4 -0
  10. package/dist/api-runtime.d.cts +13 -0
  11. package/dist/api-runtime.d.mts +13 -0
  12. package/dist/api-runtime.mjs +2 -0
  13. package/dist/api.cjs +5 -0
  14. package/dist/api.d.cts +4 -0
  15. package/dist/api.d.mts +4 -0
  16. package/dist/api.mjs +2 -0
  17. package/dist/bin.cjs +8 -8
  18. package/dist/bin.mjs +6 -6
  19. package/dist/cli-runtime.cjs +1 -1
  20. package/dist/cli-runtime.mjs +1 -1
  21. package/dist/{client-BgRs8JvW.d.mts → client-C8tBcLYs.d.mts} +17 -17
  22. package/dist/{client-BirFO3jz.d.cts → client-CMkx-LKC.d.cts} +16 -16
  23. package/dist/{client-C-P2I00z.cjs → client-CfYNoI3L.cjs} +4 -91
  24. package/dist/{client-BfdjFtlV.mjs → client-YWKJd3f-.mjs} +3 -90
  25. package/dist/{compiler-uwb1pkdK.cjs → compiler-4FKsNxZ-.cjs} +89 -33
  26. package/dist/{compiler-D96wI7UP.mjs → compiler-Dsltkkj5.mjs} +77 -21
  27. package/dist/config.cjs +1 -1
  28. package/dist/config.d.cts +1 -1
  29. package/dist/config.d.mts +1 -1
  30. package/dist/config.mjs +1 -1
  31. package/dist/define-NZvmQuIv.d.cts +34 -0
  32. package/dist/define-NZvmQuIv.d.mts +34 -0
  33. package/dist/{eval-judges-DPPUftbh.d.cts → eval-judges-JiC8cUCE.d.cts} +1 -1
  34. package/dist/{eval-judges-DPPUftbh.d.mts → eval-judges-JiC8cUCE.d.mts} +1 -1
  35. package/dist/{eval-validations-BRdoZrTQ.mjs → eval-validations-Bmagd2y7.mjs} +2 -2
  36. package/dist/{eval-validations-_MlnQ_uv.cjs → eval-validations-CqMUt5ra.cjs} +7 -1
  37. package/dist/eval.cjs +1 -1
  38. package/dist/eval.d.cts +42 -21
  39. package/dist/eval.d.mts +42 -21
  40. package/dist/eval.mjs +1 -1
  41. package/dist/{evals-B6aT3xgH.d.cts → evals-B2UuSop0.d.cts} +136 -136
  42. package/dist/{evals-B6aT3xgH.d.mts → evals-B2UuSop0.d.mts} +136 -136
  43. package/dist/{types-Codjaq-o.d.mts → evals-api-CfAA3cew.d.mts} +12 -112
  44. package/dist/{types-ISsteq95.d.cts → evals-api-Clbj_nEN.d.cts} +11 -111
  45. package/dist/{evals-Dcc_x6jW.mjs → evals-api-DDv4gXU1.mjs} +95 -4
  46. package/dist/{evals-DouMsrsM.cjs → evals-api-kOuyIqvB.cjs} +103 -72
  47. package/dist/index.cjs +2 -2
  48. package/dist/index.d.cts +6 -6
  49. package/dist/index.d.mts +7 -7
  50. package/dist/index.mjs +2 -2
  51. package/dist/mcp-runtime.cjs +1 -1
  52. package/dist/mcp-runtime.mjs +1 -1
  53. package/dist/runtime-C0_JPkef.mjs +269 -0
  54. package/dist/runtime-YVJP5P2r.cjs +292 -0
  55. package/dist/source.d.cts +1 -1
  56. package/dist/source.d.mts +1 -1
  57. package/dist/types-BHokRQpg.d.mts +112 -0
  58. package/dist/types-UKEi5CCa.d.cts +112 -0
  59. package/dist/validator-runtime.cjs +6 -1
  60. package/dist/validator-runtime.d.cts +1 -1
  61. package/dist/validator-runtime.d.mts +1 -1
  62. package/dist/validator-runtime.mjs +6 -1
  63. package/dist/validators.d.cts +1 -1
  64. package/dist/validators.d.mts +1 -1
  65. package/package.json +21 -1
@@ -1,6 +1,6 @@
1
1
  import { a as Unauthorized, i as NotFound, n as Conflict, r as Forbidden, t as BadRequest } from "./errors-aGrd21jy.mjs";
2
- import { HttpClient } from "@effect/platform";
3
2
  import { Effect, Layer, Redacted } from "effect";
3
+ import { HttpClient } from "@effect/platform";
4
4
  //#region ../schema/src/public/client.d.ts
5
5
  declare const DEFAULT_BASE_URL = "https://api.anpord.com";
6
6
  interface ClientOptions {
@@ -325,7 +325,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
325
325
  readonly format: "text" | "json";
326
326
  readonly state: "captured" | "disabled" | "unavailable";
327
327
  };
328
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
328
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
329
329
  }[];
330
330
  readonly logs: readonly {
331
331
  readonly at: number;
@@ -598,7 +598,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
598
598
  readonly format: "text" | "json";
599
599
  readonly state: "captured" | "disabled" | "unavailable";
600
600
  };
601
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
601
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
602
602
  }[];
603
603
  readonly logs: readonly {
604
604
  readonly at: number;
@@ -860,7 +860,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
860
860
  readonly format: "text" | "json";
861
861
  readonly state: "captured" | "disabled" | "unavailable";
862
862
  };
863
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
863
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
864
864
  }[];
865
865
  readonly logs: readonly {
866
866
  readonly at: number;
@@ -1057,7 +1057,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
1057
1057
  readonly format: "text" | "json";
1058
1058
  readonly state: "captured" | "disabled" | "unavailable";
1059
1059
  };
1060
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
1060
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
1061
1061
  }[];
1062
1062
  readonly logs: readonly {
1063
1063
  readonly at: number;
@@ -1696,7 +1696,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
1696
1696
  readonly format: "text" | "json";
1697
1697
  readonly state: "captured" | "disabled" | "unavailable";
1698
1698
  };
1699
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
1699
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
1700
1700
  }[];
1701
1701
  readonly logs: readonly {
1702
1702
  readonly at: number;
@@ -1969,7 +1969,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
1969
1969
  readonly format: "text" | "json";
1970
1970
  readonly state: "captured" | "disabled" | "unavailable";
1971
1971
  };
1972
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
1972
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
1973
1973
  }[];
1974
1974
  readonly logs: readonly {
1975
1975
  readonly at: number;
@@ -2231,7 +2231,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
2231
2231
  readonly format: "text" | "json";
2232
2232
  readonly state: "captured" | "disabled" | "unavailable";
2233
2233
  };
2234
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
2234
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
2235
2235
  }[];
2236
2236
  readonly logs: readonly {
2237
2237
  readonly at: number;
@@ -2428,7 +2428,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
2428
2428
  readonly format: "text" | "json";
2429
2429
  readonly state: "captured" | "disabled" | "unavailable";
2430
2430
  };
2431
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
2431
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
2432
2432
  }[];
2433
2433
  readonly logs: readonly {
2434
2434
  readonly at: number;
@@ -3065,7 +3065,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3065
3065
  readonly format: "text" | "json";
3066
3066
  readonly state: "captured" | "disabled" | "unavailable";
3067
3067
  };
3068
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3068
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3069
3069
  }[];
3070
3070
  readonly logs: readonly {
3071
3071
  readonly at: number;
@@ -3338,7 +3338,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3338
3338
  readonly format: "text" | "json";
3339
3339
  readonly state: "captured" | "disabled" | "unavailable";
3340
3340
  };
3341
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3341
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3342
3342
  }[];
3343
3343
  readonly logs: readonly {
3344
3344
  readonly at: number;
@@ -3600,7 +3600,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3600
3600
  readonly format: "text" | "json";
3601
3601
  readonly state: "captured" | "disabled" | "unavailable";
3602
3602
  };
3603
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3603
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3604
3604
  }[];
3605
3605
  readonly logs: readonly {
3606
3606
  readonly at: number;
@@ -3797,7 +3797,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3797
3797
  readonly format: "text" | "json";
3798
3798
  readonly state: "captured" | "disabled" | "unavailable";
3799
3799
  };
3800
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3800
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3801
3801
  }[];
3802
3802
  readonly logs: readonly {
3803
3803
  readonly at: number;
@@ -4435,7 +4435,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
4435
4435
  readonly format: "text" | "json";
4436
4436
  readonly state: "captured" | "disabled" | "unavailable";
4437
4437
  };
4438
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
4438
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
4439
4439
  }[];
4440
4440
  readonly logs: readonly {
4441
4441
  readonly at: number;
@@ -4708,7 +4708,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
4708
4708
  readonly format: "text" | "json";
4709
4709
  readonly state: "captured" | "disabled" | "unavailable";
4710
4710
  };
4711
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
4711
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
4712
4712
  }[];
4713
4713
  readonly logs: readonly {
4714
4714
  readonly at: number;
@@ -4970,7 +4970,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
4970
4970
  readonly format: "text" | "json";
4971
4971
  readonly state: "captured" | "disabled" | "unavailable";
4972
4972
  };
4973
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
4973
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
4974
4974
  }[];
4975
4975
  readonly logs: readonly {
4976
4976
  readonly at: number;
@@ -5167,7 +5167,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
5167
5167
  readonly format: "text" | "json";
5168
5168
  readonly state: "captured" | "disabled" | "unavailable";
5169
5169
  };
5170
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
5170
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
5171
5171
  }[];
5172
5172
  readonly logs: readonly {
5173
5173
  readonly at: number;
@@ -325,7 +325,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
325
325
  readonly format: "text" | "json";
326
326
  readonly state: "captured" | "disabled" | "unavailable";
327
327
  };
328
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
328
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
329
329
  }[];
330
330
  readonly logs: readonly {
331
331
  readonly at: number;
@@ -598,7 +598,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
598
598
  readonly format: "text" | "json";
599
599
  readonly state: "captured" | "disabled" | "unavailable";
600
600
  };
601
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
601
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
602
602
  }[];
603
603
  readonly logs: readonly {
604
604
  readonly at: number;
@@ -860,7 +860,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
860
860
  readonly format: "text" | "json";
861
861
  readonly state: "captured" | "disabled" | "unavailable";
862
862
  };
863
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
863
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
864
864
  }[];
865
865
  readonly logs: readonly {
866
866
  readonly at: number;
@@ -1057,7 +1057,7 @@ declare const make: ({ apiKey, baseUrl }: ClientOptions) => Effect.Effect<{
1057
1057
  readonly format: "text" | "json";
1058
1058
  readonly state: "captured" | "disabled" | "unavailable";
1059
1059
  };
1060
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
1060
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
1061
1061
  }[];
1062
1062
  readonly logs: readonly {
1063
1063
  readonly at: number;
@@ -1696,7 +1696,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
1696
1696
  readonly format: "text" | "json";
1697
1697
  readonly state: "captured" | "disabled" | "unavailable";
1698
1698
  };
1699
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
1699
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
1700
1700
  }[];
1701
1701
  readonly logs: readonly {
1702
1702
  readonly at: number;
@@ -1969,7 +1969,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
1969
1969
  readonly format: "text" | "json";
1970
1970
  readonly state: "captured" | "disabled" | "unavailable";
1971
1971
  };
1972
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
1972
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
1973
1973
  }[];
1974
1974
  readonly logs: readonly {
1975
1975
  readonly at: number;
@@ -2231,7 +2231,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
2231
2231
  readonly format: "text" | "json";
2232
2232
  readonly state: "captured" | "disabled" | "unavailable";
2233
2233
  };
2234
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
2234
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
2235
2235
  }[];
2236
2236
  readonly logs: readonly {
2237
2237
  readonly at: number;
@@ -2428,7 +2428,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
2428
2428
  readonly format: "text" | "json";
2429
2429
  readonly state: "captured" | "disabled" | "unavailable";
2430
2430
  };
2431
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
2431
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
2432
2432
  }[];
2433
2433
  readonly logs: readonly {
2434
2434
  readonly at: number;
@@ -3065,7 +3065,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3065
3065
  readonly format: "text" | "json";
3066
3066
  readonly state: "captured" | "disabled" | "unavailable";
3067
3067
  };
3068
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3068
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3069
3069
  }[];
3070
3070
  readonly logs: readonly {
3071
3071
  readonly at: number;
@@ -3338,7 +3338,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3338
3338
  readonly format: "text" | "json";
3339
3339
  readonly state: "captured" | "disabled" | "unavailable";
3340
3340
  };
3341
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3341
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3342
3342
  }[];
3343
3343
  readonly logs: readonly {
3344
3344
  readonly at: number;
@@ -3600,7 +3600,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3600
3600
  readonly format: "text" | "json";
3601
3601
  readonly state: "captured" | "disabled" | "unavailable";
3602
3602
  };
3603
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3603
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3604
3604
  }[];
3605
3605
  readonly logs: readonly {
3606
3606
  readonly at: number;
@@ -3797,7 +3797,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
3797
3797
  readonly format: "text" | "json";
3798
3798
  readonly state: "captured" | "disabled" | "unavailable";
3799
3799
  };
3800
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
3800
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
3801
3801
  }[];
3802
3802
  readonly logs: readonly {
3803
3803
  readonly at: number;
@@ -4435,7 +4435,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
4435
4435
  readonly format: "text" | "json";
4436
4436
  readonly state: "captured" | "disabled" | "unavailable";
4437
4437
  };
4438
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
4438
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
4439
4439
  }[];
4440
4440
  readonly logs: readonly {
4441
4441
  readonly at: number;
@@ -4708,7 +4708,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
4708
4708
  readonly format: "text" | "json";
4709
4709
  readonly state: "captured" | "disabled" | "unavailable";
4710
4710
  };
4711
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
4711
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
4712
4712
  }[];
4713
4713
  readonly logs: readonly {
4714
4714
  readonly at: number;
@@ -4970,7 +4970,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
4970
4970
  readonly format: "text" | "json";
4971
4971
  readonly state: "captured" | "disabled" | "unavailable";
4972
4972
  };
4973
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
4973
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
4974
4974
  }[];
4975
4975
  readonly logs: readonly {
4976
4976
  readonly at: number;
@@ -5167,7 +5167,7 @@ declare const AnpordApi_base: import("effect/Context").TagClass<AnpordApi, "@anp
5167
5167
  readonly format: "text" | "json";
5168
5168
  readonly state: "captured" | "disabled" | "unavailable";
5169
5169
  };
5170
- readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "mcp.calls";
5170
+ readonly method: "answer" | "transcript" | "readText" | "exists" | "exec" | "cli.calls" | "api.calls" | "api.url" | "mcp.calls";
5171
5171
  }[];
5172
5172
  readonly logs: readonly {
5173
5173
  readonly at: number;
@@ -1,6 +1,6 @@
1
- const require_evals = require("./evals-DouMsrsM.cjs");
2
- let _effect_platform = require("@effect/platform");
1
+ const require_evals_api = require("./evals-api-kOuyIqvB.cjs");
3
2
  let effect = require("effect");
3
+ let _effect_platform = require("@effect/platform");
4
4
  //#region ../schema/src/domain/prompts.ts
5
5
  const ChannelName = effect.Schema.String.pipe(effect.Schema.minLength(1), effect.Schema.maxLength(36), effect.Schema.pattern(/^[a-z0-9][a-z0-9_-]*$/, { message: () => "Channel must be lowercase alphanumeric, optionally with - or _" }), effect.Schema.brand("ChannelName")).annotations({ description: "Addresses a version. `latest` is derived from the highest version rather than stored, so it cannot drift from the version table." });
6
6
  ChannelName.make("production");
@@ -93,93 +93,6 @@ effect.Schema.Struct({
93
93
  version: effect.Schema.optional(VersionNumber)
94
94
  });
95
95
  //#endregion
96
- //#region ../schema/src/domain/errors.ts
97
- var NotFound = class extends effect.Schema.TaggedError()("NotFound", { message: effect.Schema.String }, _effect_platform.HttpApiSchema.annotations({ status: 404 })) {};
98
- var Conflict = class extends effect.Schema.TaggedError()("Conflict", { message: effect.Schema.String }, _effect_platform.HttpApiSchema.annotations({ status: 409 })) {};
99
- var BadRequest = class extends effect.Schema.TaggedError()("BadRequest", { message: effect.Schema.String }, _effect_platform.HttpApiSchema.annotations({ status: 400 })) {};
100
- var Unauthorized = class extends effect.Schema.TaggedError()("Unauthorized", { message: effect.Schema.String }, _effect_platform.HttpApiSchema.annotations({ status: 401 })) {};
101
- var Forbidden = class extends effect.Schema.TaggedError()("Forbidden", { message: effect.Schema.String }, _effect_platform.HttpApiSchema.annotations({ status: 403 })) {};
102
- effect.Schema.TaggedError()("InternalError", { message: effect.Schema.String }, _effect_platform.HttpApiSchema.annotations({ status: 500 }));
103
- //#endregion
104
- //#region ../schema/src/internal/authentication.ts
105
- var CurrentActor = class extends effect.Context.Tag("@anpord/schema/CurrentActor")() {};
106
- _effect_platform.HttpApiMiddleware.Tag()("@anpord/schema/Authentication", {
107
- failure: Unauthorized,
108
- provides: CurrentActor,
109
- security: { session: _effect_platform.HttpApiSecurity.apiKey({
110
- in: "cookie",
111
- key: "anpord.session_token"
112
- }) }
113
- });
114
- //#endregion
115
- //#region ../schema/src/public/authentication.ts
116
- var ApiKeyAuthentication = class extends _effect_platform.HttpApiMiddleware.Tag()("@anpord/schema/ApiKeyAuthentication", {
117
- failure: Unauthorized,
118
- provides: CurrentActor,
119
- security: { bearer: _effect_platform.HttpApiSecurity.bearer }
120
- }) {};
121
- //#endregion
122
- //#region ../schema/src/public/evals-api.ts
123
- const EvalRunRequest = effect.Schema.Struct({ id: effect.Schema.String }).annotations({
124
- description: "Select an eval run by id.",
125
- identifier: "EvalRunRequest"
126
- });
127
- const EvalCellRequest = effect.Schema.Struct({ cellKey: effect.Schema.String }).annotations({
128
- description: "Select an eval cell by its stable key.",
129
- identifier: "EvalCellRequest"
130
- });
131
- const EvalModelsRequest = effect.Schema.Struct({
132
- harness: require_evals.EvalHarness,
133
- q: effect.Schema.optional(effect.Schema.String)
134
- }).annotations({
135
- description: "Select a harness whose available models should be listed.",
136
- identifier: "EvalModelsRequest"
137
- });
138
- const PublicEvalSandbox = require_evals.EvalSandbox.annotations({
139
- description: "The hosted sandbox a task runs in.",
140
- identifier: "PublicEvalSandbox"
141
- });
142
- const ListEvalsRequest = effect.Schema.Struct({
143
- cursor: effect.Schema.optional(effect.Schema.NullOr(require_evals.EvalPageCursor)),
144
- limit: effect.Schema.optional(effect.Schema.Int)
145
- }).annotations({
146
- description: "Where to read from, and how much.",
147
- identifier: "ListEvalsRequest"
148
- });
149
- const PublicEvalCase = effect.Schema.Struct({
150
- cache: effect.Schema.optional(require_evals.CaseCache),
151
- name: require_evals.EvalCaseName,
152
- prepare: effect.Schema.optional(effect.Schema.NullOr(require_evals.EvalPrepare)),
153
- source: effect.Schema.optional(require_evals.EvalSource),
154
- validator: effect.Schema.optional(effect.Schema.NullOr(require_evals.EvalValidator)),
155
- variables: effect.Schema.optional(require_evals.EvalVariables),
156
- verify: effect.Schema.NullOr(require_evals.EvalVerify)
157
- }).pipe(effect.Schema.filter(({ validator, verify }) => !(validator !== void 0 && validator !== null && verify !== null), { message: () => "Use either validator or verify, not both." })).annotations({
158
- description: "A task, workspace source, setup command, and verifier.",
159
- identifier: "StartEvalCase"
160
- });
161
- const PublicEvalTask = effect.Schema.Struct({
162
- harness: require_evals.EvalHarness,
163
- model: effect.Schema.String.pipe(effect.Schema.minLength(1)),
164
- profile: effect.Schema.optional(require_evals.HarnessProfile),
165
- sandbox: effect.Schema.optional(PublicEvalSandbox)
166
- }).pipe(effect.Schema.filter(require_evals.profileFitsHarness, { message: () => require_evals.PROFILE_HARNESS_RULE })).annotations({
167
- description: `A harness and model, with an optional sandbox and an optional profile layered on the harness. Omit the sandbox to use the default. ${require_evals.PROFILE_HARNESS_RULE}`,
168
- identifier: "StartEvalTask"
169
- });
170
- const PublicStartEvalRequest = effect.Schema.Struct({
171
- trigger: effect.Schema.optional(require_evals.EvalTrigger),
172
- cases: effect.Schema.Array(PublicEvalCase).pipe(effect.Schema.minItems(1), effect.Schema.maxItems(100)),
173
- name: effect.Schema.optional(require_evals.EvalName),
174
- prompt: require_evals.EvalPrompt,
175
- tasks: effect.Schema.Array(PublicEvalTask).pipe(effect.Schema.minItems(1), effect.Schema.maxItems(20)),
176
- trials: effect.Schema.Int.pipe(effect.Schema.between(1, 10))
177
- }).annotations({
178
- description: `Start a grid with at most 100 total case, task, and trial combinations.`,
179
- identifier: "StartEvalRequest"
180
- });
181
- var PublicEvalsGroup = class extends _effect_platform.HttpApiGroup.make("evals").add(_effect_platform.HttpApiEndpoint.post("list", "/evals.list").setPayload(ListEvalsRequest).addSuccess(require_evals.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(require_evals.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. ${require_evals.PROFILE_HARNESS_RULE}`)).add(_effect_platform.HttpApiEndpoint.post("get", "/evals.get").setPayload(EvalRunRequest).addSuccess(require_evals.EvalRun).annotate(_effect_platform.OpenApi.Summary, "Get an eval run")).add(_effect_platform.HttpApiEndpoint.post("cellHistory", "/evals.cellHistory").setPayload(EvalCellRequest).addSuccess(effect.Schema.Array(require_evals.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, require_evals.RerunCellRequest))).addSuccess(require_evals.StartedEval).annotate(_effect_platform.OpenApi.Summary, "Rerun one cell")).add(_effect_platform.HttpApiEndpoint.post("models", "/evals.models").setPayload(EvalModelsRequest).addSuccess(require_evals.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.") {};
182
- //#endregion
183
96
  //#region ../schema/src/public/requests.ts
184
97
  const GetPromptRequest = effect.Schema.Struct({
185
98
  channel: effect.Schema.optional(ChannelName),
@@ -285,10 +198,10 @@ const PromptList = effect.Schema.Struct({ data: effect.Schema.Array(PublicPrompt
285
198
  });
286
199
  //#endregion
287
200
  //#region ../schema/src/public/prompts-api.ts
288
- var PublicPromptsGroup = class extends _effect_platform.HttpApiGroup.make("prompts").add(_effect_platform.HttpApiEndpoint.post("get", "/prompts.get").setPayload(GetPromptRequest).addSuccess(PublicPromptWithVersions).annotate(_effect_platform.OpenApi.Summary, "Resolve a prompt").annotate(_effect_platform.OpenApi.Description, "Returns the content a caller should send to a model. With no selector this follows the organization's default channel.")).add(_effect_platform.HttpApiEndpoint.post("list", "/prompts.list").setPayload(ListPromptsRequest).addSuccess(PromptList).annotate(_effect_platform.OpenApi.Summary, "List prompts").annotate(_effect_platform.OpenApi.Description, "Up to 100 prompts in the organization, without content.")).add(_effect_platform.HttpApiEndpoint.post("create", "/prompts.create").setPayload(CreatePromptRequest).addSuccess(PublicPromptWithVersions).annotate(_effect_platform.OpenApi.Summary, "Create a prompt").annotate(_effect_platform.OpenApi.Description, "Creates the prompt and its first version in one call.")).add(_effect_platform.HttpApiEndpoint.post("update", "/prompts.update").setPayload(UpdatePromptRequest).addSuccess(PublicPromptWithVersions).annotate(_effect_platform.OpenApi.Summary, "Add a version").annotate(_effect_platform.OpenApi.Description, "Content is versioned, so updating a prompt appends a version rather than overwriting one. Earlier versions stay readable.")).add(_effect_platform.HttpApiEndpoint.post("promote", "/prompts.promote").setPayload(PromotePromptRequest).addSuccess(Ok).annotate(_effect_platform.OpenApi.Summary, "Promote a version to a channel").annotate(_effect_platform.OpenApi.Description, "Points a channel, such as production, at a version. This is how a version goes live without callers changing anything.")).addError(BadRequest).addError(Forbidden).addError(Conflict).addError(NotFound).middleware(ApiKeyAuthentication).annotate(_effect_platform.OpenApi.Title, "Prompts").annotate(_effect_platform.OpenApi.Description, "Read and write prompts. Content is versioned, so writes append rather than overwrite, and channels decide which version callers receive.") {};
201
+ var PublicPromptsGroup = class extends _effect_platform.HttpApiGroup.make("prompts").add(_effect_platform.HttpApiEndpoint.post("get", "/prompts.get").setPayload(GetPromptRequest).addSuccess(PublicPromptWithVersions).annotate(_effect_platform.OpenApi.Summary, "Resolve a prompt").annotate(_effect_platform.OpenApi.Description, "Returns the content a caller should send to a model. With no selector this follows the organization's default channel.")).add(_effect_platform.HttpApiEndpoint.post("list", "/prompts.list").setPayload(ListPromptsRequest).addSuccess(PromptList).annotate(_effect_platform.OpenApi.Summary, "List prompts").annotate(_effect_platform.OpenApi.Description, "Up to 100 prompts in the organization, without content.")).add(_effect_platform.HttpApiEndpoint.post("create", "/prompts.create").setPayload(CreatePromptRequest).addSuccess(PublicPromptWithVersions).annotate(_effect_platform.OpenApi.Summary, "Create a prompt").annotate(_effect_platform.OpenApi.Description, "Creates the prompt and its first version in one call.")).add(_effect_platform.HttpApiEndpoint.post("update", "/prompts.update").setPayload(UpdatePromptRequest).addSuccess(PublicPromptWithVersions).annotate(_effect_platform.OpenApi.Summary, "Add a version").annotate(_effect_platform.OpenApi.Description, "Content is versioned, so updating a prompt appends a version rather than overwriting one. Earlier versions stay readable.")).add(_effect_platform.HttpApiEndpoint.post("promote", "/prompts.promote").setPayload(PromotePromptRequest).addSuccess(Ok).annotate(_effect_platform.OpenApi.Summary, "Promote a version to a channel").annotate(_effect_platform.OpenApi.Description, "Points a channel, such as production, at a version. This is how a version goes live without callers changing anything.")).addError(require_evals_api.BadRequest).addError(require_evals_api.Forbidden).addError(require_evals_api.Conflict).addError(require_evals_api.NotFound).middleware(require_evals_api.ApiKeyAuthentication).annotate(_effect_platform.OpenApi.Title, "Prompts").annotate(_effect_platform.OpenApi.Description, "Read and write prompts. Content is versioned, so writes append rather than overwrite, and channels decide which version callers receive.") {};
289
202
  //#endregion
290
203
  //#region ../schema/src/public/api.ts
291
- var PublicApi = class extends _effect_platform.HttpApi.make("anpord-public").add(PublicEvalsGroup).add(PublicPromptsGroup).prefix("/v1").annotate(_effect_platform.OpenApi.Title, "Anpord API").annotate(_effect_platform.OpenApi.Version, "1.0.0").annotate(_effect_platform.OpenApi.Description, "Run agent evals and manage prompts. Every endpoint takes a JSON body over POST and authenticates with a bearer API key.").annotate(_effect_platform.OpenApi.Servers, [{
204
+ var PublicApi = class extends _effect_platform.HttpApi.make("anpord-public").add(require_evals_api.PublicEvalsGroup).add(PublicPromptsGroup).prefix("/v1").annotate(_effect_platform.OpenApi.Title, "Anpord API").annotate(_effect_platform.OpenApi.Version, "1.0.0").annotate(_effect_platform.OpenApi.Description, "Run agent evals and manage prompts. Every endpoint takes a JSON body over POST and authenticates with a bearer API key.").annotate(_effect_platform.OpenApi.Servers, [{
292
205
  description: "Production",
293
206
  url: "https://api.anpord.com"
294
207
  }]) {};
@@ -1,6 +1,6 @@
1
- import { C as EvalTrigger, E as EvalVerify, T as EvalPrompt, _ as HarnessProfile, a as EvalPageCursor, c as EvalRunPage, d as EvalValidator, f as EvalVariables, h as StartedEval, i as EvalName, l as EvalSandbox, m as RerunCellRequest, n as EvalCellHistoryEntry, o as EvalPrepare, p as ModelCatalogue, r as EvalHarness, s as EvalRun, t as CaseCache, u as EvalSource, v as PROFILE_HARNESS_RULE, w as EvalCaseName, x as profileFitsHarness } from "./evals-Dcc_x6jW.mjs";
2
- import { FetchHttpClient, HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, HttpApiSecurity, HttpClient, HttpClientRequest, OpenApi } from "@effect/platform";
3
- import { Context, Effect, Layer, Redacted, Schema } from "effect";
1
+ import { g as NotFound, h as Forbidden, m as Conflict, p as BadRequest, r as ApiKeyAuthentication, t as PublicEvalsGroup } from "./evals-api-DDv4gXU1.mjs";
2
+ import { Effect, Layer, Redacted, Schema } from "effect";
3
+ import { FetchHttpClient, HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpClient, HttpClientRequest, OpenApi } from "@effect/platform";
4
4
  //#region ../schema/src/domain/prompts.ts
5
5
  const ChannelName = Schema.String.pipe(Schema.minLength(1), Schema.maxLength(36), Schema.pattern(/^[a-z0-9][a-z0-9_-]*$/, { message: () => "Channel must be lowercase alphanumeric, optionally with - or _" }), Schema.brand("ChannelName")).annotations({ description: "Addresses a version. `latest` is derived from the highest version rather than stored, so it cannot drift from the version table." });
6
6
  ChannelName.make("production");
@@ -93,93 +93,6 @@ Schema.Struct({
93
93
  version: Schema.optional(VersionNumber)
94
94
  });
95
95
  //#endregion
96
- //#region ../schema/src/domain/errors.ts
97
- var NotFound = class extends Schema.TaggedError()("NotFound", { message: Schema.String }, HttpApiSchema.annotations({ status: 404 })) {};
98
- var Conflict = class extends Schema.TaggedError()("Conflict", { message: Schema.String }, HttpApiSchema.annotations({ status: 409 })) {};
99
- var BadRequest = class extends Schema.TaggedError()("BadRequest", { message: Schema.String }, HttpApiSchema.annotations({ status: 400 })) {};
100
- var Unauthorized = class extends Schema.TaggedError()("Unauthorized", { message: Schema.String }, HttpApiSchema.annotations({ status: 401 })) {};
101
- var Forbidden = class extends Schema.TaggedError()("Forbidden", { message: Schema.String }, HttpApiSchema.annotations({ status: 403 })) {};
102
- Schema.TaggedError()("InternalError", { message: Schema.String }, HttpApiSchema.annotations({ status: 500 }));
103
- //#endregion
104
- //#region ../schema/src/internal/authentication.ts
105
- var CurrentActor = class extends Context.Tag("@anpord/schema/CurrentActor")() {};
106
- HttpApiMiddleware.Tag()("@anpord/schema/Authentication", {
107
- failure: Unauthorized,
108
- provides: CurrentActor,
109
- security: { session: HttpApiSecurity.apiKey({
110
- in: "cookie",
111
- key: "anpord.session_token"
112
- }) }
113
- });
114
- //#endregion
115
- //#region ../schema/src/public/authentication.ts
116
- var ApiKeyAuthentication = class extends HttpApiMiddleware.Tag()("@anpord/schema/ApiKeyAuthentication", {
117
- failure: Unauthorized,
118
- provides: CurrentActor,
119
- security: { bearer: HttpApiSecurity.bearer }
120
- }) {};
121
- //#endregion
122
- //#region ../schema/src/public/evals-api.ts
123
- const EvalRunRequest = Schema.Struct({ id: Schema.String }).annotations({
124
- description: "Select an eval run by id.",
125
- identifier: "EvalRunRequest"
126
- });
127
- const EvalCellRequest = Schema.Struct({ cellKey: Schema.String }).annotations({
128
- description: "Select an eval cell by its stable key.",
129
- identifier: "EvalCellRequest"
130
- });
131
- const EvalModelsRequest = Schema.Struct({
132
- harness: EvalHarness,
133
- q: Schema.optional(Schema.String)
134
- }).annotations({
135
- description: "Select a harness whose available models should be listed.",
136
- identifier: "EvalModelsRequest"
137
- });
138
- const PublicEvalSandbox = EvalSandbox.annotations({
139
- description: "The hosted sandbox a task runs in.",
140
- identifier: "PublicEvalSandbox"
141
- });
142
- const ListEvalsRequest = Schema.Struct({
143
- cursor: Schema.optional(Schema.NullOr(EvalPageCursor)),
144
- limit: Schema.optional(Schema.Int)
145
- }).annotations({
146
- description: "Where to read from, and how much.",
147
- identifier: "ListEvalsRequest"
148
- });
149
- const PublicEvalCase = Schema.Struct({
150
- cache: Schema.optional(CaseCache),
151
- name: EvalCaseName,
152
- prepare: Schema.optional(Schema.NullOr(EvalPrepare)),
153
- source: Schema.optional(EvalSource),
154
- validator: Schema.optional(Schema.NullOr(EvalValidator)),
155
- variables: Schema.optional(EvalVariables),
156
- verify: Schema.NullOr(EvalVerify)
157
- }).pipe(Schema.filter(({ validator, verify }) => !(validator !== void 0 && validator !== null && verify !== null), { message: () => "Use either validator or verify, not both." })).annotations({
158
- description: "A task, workspace source, setup command, and verifier.",
159
- identifier: "StartEvalCase"
160
- });
161
- const PublicEvalTask = Schema.Struct({
162
- harness: EvalHarness,
163
- model: Schema.String.pipe(Schema.minLength(1)),
164
- profile: Schema.optional(HarnessProfile),
165
- sandbox: Schema.optional(PublicEvalSandbox)
166
- }).pipe(Schema.filter(profileFitsHarness, { message: () => PROFILE_HARNESS_RULE })).annotations({
167
- description: `A harness and model, with an optional sandbox and an optional profile layered on the harness. Omit the sandbox to use the default. ${PROFILE_HARNESS_RULE}`,
168
- identifier: "StartEvalTask"
169
- });
170
- const PublicStartEvalRequest = Schema.Struct({
171
- trigger: Schema.optional(EvalTrigger),
172
- cases: Schema.Array(PublicEvalCase).pipe(Schema.minItems(1), Schema.maxItems(100)),
173
- name: Schema.optional(EvalName),
174
- prompt: EvalPrompt,
175
- tasks: Schema.Array(PublicEvalTask).pipe(Schema.minItems(1), Schema.maxItems(20)),
176
- trials: Schema.Int.pipe(Schema.between(1, 10))
177
- }).annotations({
178
- description: `Start a grid with at most 100 total case, task, and trial combinations.`,
179
- identifier: "StartEvalRequest"
180
- });
181
- 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("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.") {};
182
- //#endregion
183
96
  //#region ../schema/src/public/requests.ts
184
97
  const GetPromptRequest = Schema.Struct({
185
98
  channel: Schema.optional(ChannelName),