@ls-stack/agent-eval 0.55.1 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -526,6 +526,34 @@ declare const cacheRecordingOpSchema$1: z$1.ZodDiscriminatedUnion<[z$1.ZodObject
526
526
  kind: z$1.ZodLiteral<"setOutput">;
527
527
  key: z$1.ZodString;
528
528
  value: z$1.ZodUnknown;
529
+ column: z$1.ZodOptional<z$1.ZodObject<{
530
+ label: z$1.ZodOptional<z$1.ZodString>;
531
+ format: z$1.ZodOptional<z$1.ZodEnum<{
532
+ number: "number";
533
+ boolean: "boolean";
534
+ file: "file";
535
+ markdown: "markdown";
536
+ json: "json";
537
+ image: "image";
538
+ html: "html";
539
+ pdf: "pdf";
540
+ audio: "audio";
541
+ video: "video";
542
+ duration: "duration";
543
+ percent: "percent";
544
+ passFail: "passFail";
545
+ stars: "stars";
546
+ }>>;
547
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$2, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$2, unknown>>>;
548
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
549
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
550
+ align: z$1.ZodOptional<z$1.ZodEnum<{
551
+ left: "left";
552
+ center: "center";
553
+ right: "right";
554
+ }>>;
555
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
556
+ }, z$1.core.$strip>>;
529
557
  }, z$1.core.$strip>, z$1.ZodObject<{
530
558
  kind: z$1.ZodLiteral<"appendOutput">;
531
559
  key: z$1.ZodString;
@@ -586,6 +614,34 @@ declare const cacheRecordingSchema$1: z$1.ZodObject<{
586
614
  kind: z$1.ZodLiteral<"setOutput">;
587
615
  key: z$1.ZodString;
588
616
  value: z$1.ZodUnknown;
617
+ column: z$1.ZodOptional<z$1.ZodObject<{
618
+ label: z$1.ZodOptional<z$1.ZodString>;
619
+ format: z$1.ZodOptional<z$1.ZodEnum<{
620
+ number: "number";
621
+ boolean: "boolean";
622
+ file: "file";
623
+ markdown: "markdown";
624
+ json: "json";
625
+ image: "image";
626
+ html: "html";
627
+ pdf: "pdf";
628
+ audio: "audio";
629
+ video: "video";
630
+ duration: "duration";
631
+ percent: "percent";
632
+ passFail: "passFail";
633
+ stars: "stars";
634
+ }>>;
635
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$2, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$2, unknown>>>;
636
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
637
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
638
+ align: z$1.ZodOptional<z$1.ZodEnum<{
639
+ left: "left";
640
+ center: "center";
641
+ right: "right";
642
+ }>>;
643
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
644
+ }, z$1.core.$strip>>;
589
645
  }, z$1.core.$strip>, z$1.ZodObject<{
590
646
  kind: z$1.ZodLiteral<"appendOutput">;
591
647
  key: z$1.ZodString;
@@ -659,6 +715,34 @@ declare const cacheEntrySchema$1: z$1.ZodObject<{
659
715
  kind: z$1.ZodLiteral<"setOutput">;
660
716
  key: z$1.ZodString;
661
717
  value: z$1.ZodUnknown;
718
+ column: z$1.ZodOptional<z$1.ZodObject<{
719
+ label: z$1.ZodOptional<z$1.ZodString>;
720
+ format: z$1.ZodOptional<z$1.ZodEnum<{
721
+ number: "number";
722
+ boolean: "boolean";
723
+ file: "file";
724
+ markdown: "markdown";
725
+ json: "json";
726
+ image: "image";
727
+ html: "html";
728
+ pdf: "pdf";
729
+ audio: "audio";
730
+ video: "video";
731
+ duration: "duration";
732
+ percent: "percent";
733
+ passFail: "passFail";
734
+ stars: "stars";
735
+ }>>;
736
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$2, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$2, unknown>>>;
737
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
738
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
739
+ align: z$1.ZodOptional<z$1.ZodEnum<{
740
+ left: "left";
741
+ center: "center";
742
+ right: "right";
743
+ }>>;
744
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
745
+ }, z$1.core.$strip>>;
662
746
  }, z$1.core.$strip>, z$1.ZodObject<{
663
747
  kind: z$1.ZodLiteral<"appendOutput">;
664
748
  key: z$1.ZodString;
@@ -712,6 +796,14 @@ type EvalCase$2<TInput = unknown> = Omit<EvalCase$1$1<TInput>, 'tags'> & {
712
796
  };
713
797
  /** Runtime output values collected from output helpers and `deriveFromTracing`. */
714
798
  type EvalOutputs = Record<string, unknown>;
799
+ /**
800
+ * Display options that can be attached directly to one `setOutput(...)` write.
801
+ *
802
+ * Pass a format string such as `'markdown'` for the common case, or an
803
+ * `EvalColumnOverride` when the output also needs a label, numeric formatting,
804
+ * table visibility, alignment, or star count.
805
+ */
806
+ type EvalOutputOptions = ColumnFormat$1 | EvalColumnOverride;
715
807
  /**
716
808
  * Initial wall-clock time used by an eval's shifted Date clock.
717
809
  *
@@ -755,7 +847,14 @@ key: TKey,
755
847
  * field's declared output type.
756
848
  */
757
849
 
758
- value: TOutputs[TKey]) => void;
850
+ value: TOutputs[TKey],
851
+ /**
852
+ * Optional display format or column override for this output. Runtime
853
+ * options are persisted with the case result and are useful when a one-off
854
+ * output should render as Markdown, JSON, media, a number, duration, etc.
855
+ */
856
+
857
+ options?: EvalOutputOptions) => void;
759
858
  /** Context passed to an eval's `execute` function for a single case run. */
760
859
  type EvalExecuteContext<TInput, TOutputs extends EvalOutputs = EvalOutputs> = {
761
860
  /** Authored input for the active eval case. */input: TInput;
@@ -1362,7 +1461,8 @@ type EvalCaseScope = {
1362
1461
  nextEvalIdCounter: number; /** Authored input for the current case, when provided by the runner. */
1363
1462
  input?: unknown; /** Effective tags for the current case. */
1364
1463
  tags: string[];
1365
- outputs: Record<string, unknown>; /** Structured assertion failures recorded for the current case. */
1464
+ outputs: Record<string, unknown>; /** Runtime display overrides recorded by output helpers for this case. */
1465
+ outputColumnOverrides: Record<string, EvalColumnOverride>; /** Structured assertion failures recorded for the current case. */
1366
1466
  assertionFailures: AssertionFailure$1[]; /** Logs captured from manual `evalLog(...)` calls and enabled console calls. */
1367
1467
  logs: RunLogEntry$1[];
1368
1468
  spans: EvalTraceSpan$2[];
@@ -1399,7 +1499,7 @@ type EvalLogLevelInput = RunLogLevel$1 | 'warning';
1399
1499
  declare class EvalAssertionError extends Error {
1400
1500
  constructor(message: string);
1401
1501
  }
1402
- /** Return the shifted wall-clock time for a stored eval clock state. */
1502
+ /** Return the host process clock, bypassing the eval Date shim. */
1403
1503
  /**
1404
1504
  * Eval time helpers for reading and moving the active eval clock.
1405
1505
  *
@@ -1513,8 +1613,12 @@ declare function nextEvalId(): string;
1513
1613
  *
1514
1614
  * Supported values include scalars, JSON-safe objects/arrays, explicit file
1515
1615
  * refs, and native `Blob`/`File` instances for media or file columns.
1616
+ *
1617
+ * Pass the optional third argument to persist a display format or full column
1618
+ * override with this runtime output, for example `'markdown'` or
1619
+ * `{ label: 'Receipt', format: 'image', hideInTable: true }`.
1516
1620
  */
1517
- declare function setEvalOutput(key: string, value: unknown): void;
1621
+ declare function setEvalOutput(key: string, value: unknown, options?: EvalOutputOptions | undefined): void;
1518
1622
  /**
1519
1623
  * Append an item to an output array in the current case scope.
1520
1624
  *
@@ -1780,15 +1884,15 @@ type ColumnKind = z$1.infer<typeof columnKindSchema>;
1780
1884
  declare const columnFormatSchema: z$1.ZodEnum<{
1781
1885
  number: "number";
1782
1886
  boolean: "boolean";
1887
+ duration: "duration";
1888
+ json: "json";
1783
1889
  file: "file";
1784
1890
  markdown: "markdown";
1785
- json: "json";
1786
1891
  image: "image";
1787
1892
  html: "html";
1788
1893
  pdf: "pdf";
1789
1894
  audio: "audio";
1790
1895
  video: "video";
1791
- duration: "duration";
1792
1896
  percent: "percent";
1793
1897
  passFail: "passFail";
1794
1898
  stars: "stars";
@@ -1807,15 +1911,15 @@ declare const columnDefSchema: z$1.ZodObject<{
1807
1911
  format: z$1.ZodOptional<z$1.ZodEnum<{
1808
1912
  number: "number";
1809
1913
  boolean: "boolean";
1914
+ duration: "duration";
1915
+ json: "json";
1810
1916
  file: "file";
1811
1917
  markdown: "markdown";
1812
- json: "json";
1813
1918
  image: "image";
1814
1919
  html: "html";
1815
1920
  pdf: "pdf";
1816
1921
  audio: "audio";
1817
1922
  video: "video";
1818
- duration: "duration";
1819
1923
  percent: "percent";
1820
1924
  passFail: "passFail";
1821
1925
  stars: "stars";
@@ -1861,8 +1965,8 @@ type CellValue = z$1.infer<typeof cellValueSchema>; //#endregion
1861
1965
  declare const traceAttributeDisplayFormatSchema: z$1.ZodEnum<{
1862
1966
  string: "string";
1863
1967
  number: "number";
1864
- json: "json";
1865
1968
  duration: "duration";
1969
+ json: "json";
1866
1970
  }>;
1867
1971
  /**
1868
1972
  * Formatting hint for trace attribute values rendered by the UI.
@@ -1886,8 +1990,8 @@ declare const traceAttributeDisplaySchema: z$1.ZodObject<{
1886
1990
  format: z$1.ZodOptional<z$1.ZodEnum<{
1887
1991
  string: "string";
1888
1992
  number: "number";
1889
- json: "json";
1890
1993
  duration: "duration";
1994
+ json: "json";
1891
1995
  }>>;
1892
1996
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
1893
1997
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -1922,8 +2026,8 @@ declare const traceDisplayConfigSchema: z$1.ZodObject<{
1922
2026
  format: z$1.ZodOptional<z$1.ZodEnum<{
1923
2027
  string: "string";
1924
2028
  number: "number";
1925
- json: "json";
1926
2029
  duration: "duration";
2030
+ json: "json";
1927
2031
  }>>;
1928
2032
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
1929
2033
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -1962,8 +2066,8 @@ declare const traceAttributeDisplayInputSchema: z$1.ZodObject<{
1962
2066
  format: z$1.ZodOptional<z$1.ZodEnum<{
1963
2067
  string: "string";
1964
2068
  number: "number";
1965
- json: "json";
1966
2069
  duration: "duration";
2070
+ json: "json";
1967
2071
  }>>;
1968
2072
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
1969
2073
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -2000,8 +2104,8 @@ declare const traceDisplayInputConfigSchema: z$1.ZodObject<{
2000
2104
  format: z$1.ZodOptional<z$1.ZodEnum<{
2001
2105
  string: "string";
2002
2106
  number: "number";
2003
- json: "json";
2004
2107
  duration: "duration";
2108
+ json: "json";
2005
2109
  }>>;
2006
2110
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
2007
2111
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -2165,15 +2269,15 @@ declare const evalStatItemSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2165
2269
  format: z$1.ZodOptional<z$1.ZodEnum<{
2166
2270
  number: "number";
2167
2271
  boolean: "boolean";
2272
+ duration: "duration";
2273
+ json: "json";
2168
2274
  file: "file";
2169
2275
  markdown: "markdown";
2170
- json: "json";
2171
2276
  image: "image";
2172
2277
  html: "html";
2173
2278
  pdf: "pdf";
2174
2279
  audio: "audio";
2175
2280
  video: "video";
2176
- duration: "duration";
2177
2281
  percent: "percent";
2178
2282
  passFail: "passFail";
2179
2283
  stars: "stars";
@@ -2229,15 +2333,15 @@ declare const evalStatsConfigSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1
2229
2333
  format: z$1.ZodOptional<z$1.ZodEnum<{
2230
2334
  number: "number";
2231
2335
  boolean: "boolean";
2336
+ duration: "duration";
2337
+ json: "json";
2232
2338
  file: "file";
2233
2339
  markdown: "markdown";
2234
- json: "json";
2235
2340
  image: "image";
2236
2341
  html: "html";
2237
2342
  pdf: "pdf";
2238
2343
  audio: "audio";
2239
2344
  video: "video";
2240
- duration: "duration";
2241
2345
  percent: "percent";
2242
2346
  passFail: "passFail";
2243
2347
  stars: "stars";
@@ -2275,15 +2379,15 @@ declare const evalSummarySchema$1: z$1.ZodObject<{
2275
2379
  format: z$1.ZodOptional<z$1.ZodEnum<{
2276
2380
  number: "number";
2277
2381
  boolean: "boolean";
2382
+ duration: "duration";
2383
+ json: "json";
2278
2384
  file: "file";
2279
2385
  markdown: "markdown";
2280
- json: "json";
2281
2386
  image: "image";
2282
2387
  html: "html";
2283
2388
  pdf: "pdf";
2284
2389
  audio: "audio";
2285
2390
  video: "video";
2286
- duration: "duration";
2287
2391
  percent: "percent";
2288
2392
  passFail: "passFail";
2289
2393
  stars: "stars";
@@ -2356,15 +2460,15 @@ declare const evalSummarySchema$1: z$1.ZodObject<{
2356
2460
  format: z$1.ZodOptional<z$1.ZodEnum<{
2357
2461
  number: "number";
2358
2462
  boolean: "boolean";
2463
+ duration: "duration";
2464
+ json: "json";
2359
2465
  file: "file";
2360
2466
  markdown: "markdown";
2361
- json: "json";
2362
2467
  image: "image";
2363
2468
  html: "html";
2364
2469
  pdf: "pdf";
2365
2470
  audio: "audio";
2366
2471
  video: "video";
2367
- duration: "duration";
2368
2472
  percent: "percent";
2369
2473
  passFail: "passFail";
2370
2474
  stars: "stars";
@@ -2397,8 +2501,8 @@ declare const evalSummarySchema$1: z$1.ZodObject<{
2397
2501
  }>;
2398
2502
  label: z$1.ZodOptional<z$1.ZodString>;
2399
2503
  color: z$1.ZodOptional<z$1.ZodEnum<{
2400
- success: "success";
2401
2504
  error: "error";
2505
+ success: "success";
2402
2506
  warning: "warning";
2403
2507
  accent: "accent";
2404
2508
  accentDim: "accentDim";
@@ -2421,8 +2525,8 @@ declare const evalSummarySchema$1: z$1.ZodObject<{
2421
2525
  }>;
2422
2526
  label: z$1.ZodOptional<z$1.ZodString>;
2423
2527
  color: z$1.ZodOptional<z$1.ZodEnum<{
2424
- success: "success";
2425
2528
  error: "error";
2529
+ success: "success";
2426
2530
  warning: "warning";
2427
2531
  accent: "accent";
2428
2532
  accentDim: "accentDim";
@@ -2576,6 +2680,43 @@ declare const caseRowSchema$1: z$1.ZodObject<{
2576
2680
  fileName: z$1.ZodOptional<z$1.ZodString>;
2577
2681
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
2578
2682
  }, z$1.core.$strip>]>]>>;
2683
+ outputColumnDefs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
2684
+ key: z$1.ZodString;
2685
+ label: z$1.ZodString;
2686
+ kind: z$1.ZodEnum<{
2687
+ string: "string";
2688
+ number: "number";
2689
+ boolean: "boolean";
2690
+ }>;
2691
+ format: z$1.ZodOptional<z$1.ZodEnum<{
2692
+ number: "number";
2693
+ boolean: "boolean";
2694
+ duration: "duration";
2695
+ json: "json";
2696
+ file: "file";
2697
+ markdown: "markdown";
2698
+ image: "image";
2699
+ html: "html";
2700
+ pdf: "pdf";
2701
+ audio: "audio";
2702
+ video: "video";
2703
+ percent: "percent";
2704
+ passFail: "passFail";
2705
+ stars: "stars";
2706
+ }>>;
2707
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
2708
+ isScore: z$1.ZodOptional<z$1.ZodBoolean>;
2709
+ isManualScore: z$1.ZodOptional<z$1.ZodBoolean>;
2710
+ passThreshold: z$1.ZodOptional<z$1.ZodNumber>;
2711
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
2712
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
2713
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
2714
+ align: z$1.ZodOptional<z$1.ZodEnum<{
2715
+ left: "left";
2716
+ center: "center";
2717
+ right: "right";
2718
+ }>>;
2719
+ }, z$1.core.$strip>>>;
2579
2720
  trial: z$1.ZodNumber;
2580
2721
  }, z$1.core.$strip>;
2581
2722
  /** Flattened per-case row rendered in run tables and streamed updates. */
@@ -2693,8 +2834,8 @@ declare const scoreTraceSchema: z$1.ZodObject<{
2693
2834
  format: z$1.ZodOptional<z$1.ZodEnum<{
2694
2835
  string: "string";
2695
2836
  number: "number";
2696
- json: "json";
2697
2837
  duration: "duration";
2838
+ json: "json";
2698
2839
  }>>;
2699
2840
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
2700
2841
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -2796,8 +2937,8 @@ declare const caseDetailSchema$1: z$1.ZodObject<{
2796
2937
  format: z$1.ZodOptional<z$1.ZodEnum<{
2797
2938
  string: "string";
2798
2939
  number: "number";
2799
- json: "json";
2800
2940
  duration: "duration";
2941
+ json: "json";
2801
2942
  }>>;
2802
2943
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
2803
2944
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -2865,8 +3006,8 @@ declare const caseDetailSchema$1: z$1.ZodObject<{
2865
3006
  format: z$1.ZodOptional<z$1.ZodEnum<{
2866
3007
  string: "string";
2867
3008
  number: "number";
2868
- json: "json";
2869
3009
  duration: "duration";
3010
+ json: "json";
2870
3011
  }>>;
2871
3012
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
2872
3013
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -2914,6 +3055,43 @@ declare const caseDetailSchema$1: z$1.ZodObject<{
2914
3055
  fileName: z$1.ZodOptional<z$1.ZodString>;
2915
3056
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
2916
3057
  }, z$1.core.$strip>]>]>>;
3058
+ outputColumnDefs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
3059
+ key: z$1.ZodString;
3060
+ label: z$1.ZodString;
3061
+ kind: z$1.ZodEnum<{
3062
+ string: "string";
3063
+ number: "number";
3064
+ boolean: "boolean";
3065
+ }>;
3066
+ format: z$1.ZodOptional<z$1.ZodEnum<{
3067
+ number: "number";
3068
+ boolean: "boolean";
3069
+ duration: "duration";
3070
+ json: "json";
3071
+ file: "file";
3072
+ markdown: "markdown";
3073
+ image: "image";
3074
+ html: "html";
3075
+ pdf: "pdf";
3076
+ audio: "audio";
3077
+ video: "video";
3078
+ percent: "percent";
3079
+ passFail: "passFail";
3080
+ stars: "stars";
3081
+ }>>;
3082
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
3083
+ isScore: z$1.ZodOptional<z$1.ZodBoolean>;
3084
+ isManualScore: z$1.ZodOptional<z$1.ZodBoolean>;
3085
+ passThreshold: z$1.ZodOptional<z$1.ZodNumber>;
3086
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
3087
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
3088
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
3089
+ align: z$1.ZodOptional<z$1.ZodEnum<{
3090
+ left: "left";
3091
+ center: "center";
3092
+ right: "right";
3093
+ }>>;
3094
+ }, z$1.core.$strip>>>;
2917
3095
  assertionFailures: z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodObject<{
2918
3096
  name: z$1.ZodOptional<z$1.ZodString>;
2919
3097
  message: z$1.ZodString;
@@ -3030,8 +3208,8 @@ type EvalChartAggregate = z$1.infer<typeof evalChartAggregateSchema>;
3030
3208
  * not emit raw hex so authored evals stay decoupled from the web theme.
3031
3209
  */
3032
3210
  declare const evalChartColorSchema: z$1.ZodEnum<{
3033
- success: "success";
3034
3211
  error: "error";
3212
+ success: "success";
3035
3213
  warning: "warning";
3036
3214
  accent: "accent";
3037
3215
  accentDim: "accentDim";
@@ -3059,8 +3237,8 @@ declare const evalChartMetricSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3059
3237
  }>;
3060
3238
  label: z$1.ZodOptional<z$1.ZodString>;
3061
3239
  color: z$1.ZodOptional<z$1.ZodEnum<{
3062
- success: "success";
3063
3240
  error: "error";
3241
+ success: "success";
3064
3242
  warning: "warning";
3065
3243
  accent: "accent";
3066
3244
  accentDim: "accentDim";
@@ -3083,8 +3261,8 @@ declare const evalChartMetricSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3083
3261
  }>;
3084
3262
  label: z$1.ZodOptional<z$1.ZodString>;
3085
3263
  color: z$1.ZodOptional<z$1.ZodEnum<{
3086
- success: "success";
3087
3264
  error: "error";
3265
+ success: "success";
3088
3266
  warning: "warning";
3089
3267
  accent: "accent";
3090
3268
  accentDim: "accentDim";
@@ -3142,8 +3320,8 @@ declare const evalChartConfigSchema: z$1.ZodObject<{
3142
3320
  }>;
3143
3321
  label: z$1.ZodOptional<z$1.ZodString>;
3144
3322
  color: z$1.ZodOptional<z$1.ZodEnum<{
3145
- success: "success";
3146
3323
  error: "error";
3324
+ success: "success";
3147
3325
  warning: "warning";
3148
3326
  accent: "accent";
3149
3327
  accentDim: "accentDim";
@@ -3166,8 +3344,8 @@ declare const evalChartConfigSchema: z$1.ZodObject<{
3166
3344
  }>;
3167
3345
  label: z$1.ZodOptional<z$1.ZodString>;
3168
3346
  color: z$1.ZodOptional<z$1.ZodEnum<{
3169
- success: "success";
3170
3347
  error: "error";
3348
+ success: "success";
3171
3349
  warning: "warning";
3172
3350
  accent: "accent";
3173
3351
  accentDim: "accentDim";
@@ -3232,8 +3410,8 @@ declare const evalChartsConfigSchema: z$1.ZodArray<z$1.ZodObject<{
3232
3410
  }>;
3233
3411
  label: z$1.ZodOptional<z$1.ZodString>;
3234
3412
  color: z$1.ZodOptional<z$1.ZodEnum<{
3235
- success: "success";
3236
3413
  error: "error";
3414
+ success: "success";
3237
3415
  warning: "warning";
3238
3416
  accent: "accent";
3239
3417
  accentDim: "accentDim";
@@ -3256,8 +3434,8 @@ declare const evalChartsConfigSchema: z$1.ZodArray<z$1.ZodObject<{
3256
3434
  }>;
3257
3435
  label: z$1.ZodOptional<z$1.ZodString>;
3258
3436
  color: z$1.ZodOptional<z$1.ZodEnum<{
3259
- success: "success";
3260
3437
  error: "error";
3438
+ success: "success";
3261
3439
  warning: "warning";
3262
3440
  accent: "accent";
3263
3441
  accentDim: "accentDim";
@@ -3524,8 +3702,8 @@ declare const llmCallMetricFormatSchema$1: z$1.ZodEnum<{
3524
3702
  string: "string";
3525
3703
  number: "number";
3526
3704
  boolean: "boolean";
3527
- json: "json";
3528
3705
  duration: "duration";
3706
+ json: "json";
3529
3707
  }>;
3530
3708
  /** Render format applied to an LLM-call metric value. */
3531
3709
  type LlmCallMetricFormat = z$1.infer<typeof llmCallMetricFormatSchema$1>;
@@ -3534,8 +3712,8 @@ declare const apiCallMetricFormatSchema$1: z$1.ZodEnum<{
3534
3712
  string: "string";
3535
3713
  number: "number";
3536
3714
  boolean: "boolean";
3537
- json: "json";
3538
3715
  duration: "duration";
3716
+ json: "json";
3539
3717
  }>;
3540
3718
  /** Render format applied to an API-call metric value. */
3541
3719
  type ApiCallMetricFormat = z$1.infer<typeof apiCallMetricFormatSchema$1>;
@@ -3604,8 +3782,8 @@ declare const llmCallMetricSchema: z$1.ZodObject<{
3604
3782
  string: "string";
3605
3783
  number: "number";
3606
3784
  boolean: "boolean";
3607
- json: "json";
3608
3785
  duration: "duration";
3786
+ json: "json";
3609
3787
  }>>;
3610
3788
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
3611
3789
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -3633,8 +3811,8 @@ declare const apiCallMetricSchema: z$1.ZodObject<{
3633
3811
  string: "string";
3634
3812
  number: "number";
3635
3813
  boolean: "boolean";
3636
- json: "json";
3637
3814
  duration: "duration";
3815
+ json: "json";
3638
3816
  }>>;
3639
3817
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
3640
3818
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -3747,8 +3925,8 @@ declare const llmCallsConfigSchema: z$1.ZodObject<{
3747
3925
  string: "string";
3748
3926
  number: "number";
3749
3927
  boolean: "boolean";
3750
- json: "json";
3751
3928
  duration: "duration";
3929
+ json: "json";
3752
3930
  }>>;
3753
3931
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
3754
3932
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -3783,8 +3961,8 @@ declare const apiCallsConfigSchema: z$1.ZodObject<{
3783
3961
  string: "string";
3784
3962
  number: "number";
3785
3963
  boolean: "boolean";
3786
- json: "json";
3787
3964
  duration: "duration";
3965
+ json: "json";
3788
3966
  }>>;
3789
3967
  numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
3790
3968
  placements: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<{
@@ -4042,7 +4220,13 @@ type AgentEvalsConfig$1 = {
4042
4220
  * Exact namespace-specific retention caps. Values override
4043
4221
  * `maxEntriesPerNamespace` for matching namespaces.
4044
4222
  */
4045
- maxEntriesByNamespace?: Record<string, number>; /** Legacy alias for `maxEntriesPerNamespace`, retained so older config files keep working. */
4223
+ maxEntriesByNamespace?: Record<string, number>;
4224
+ /**
4225
+ * Milliseconds the runner waits after becoming idle before pruning indexed
4226
+ * cache entries. Defaults to `5000`; non-positive or non-finite values use
4227
+ * the default.
4228
+ */
4229
+ pruneIdleDelayMs?: number; /** Legacy alias for `maxEntriesPerNamespace`, retained so older config files keep working. */
4046
4230
  maxEntriesPerEval?: number;
4047
4231
  };
4048
4232
  };
@@ -4190,6 +4374,9 @@ declare function simulateTokenAllocation({
4190
4374
  * charged twice. Cache read/write costs still contribute to the total USD cost
4191
4375
  * at their configured rates. The `steps` attribute path may resolve to an array
4192
4376
  * of per-step detail objects, with `stepCount` derived from the array length.
4377
+ * When a matching LLM span does not expose that array, direct child spans with
4378
+ * `kind: 'model_step'` are used as the step details instead. This preserves
4379
+ * Mastra/OpenTelemetry traces where model steps are emitted as child spans.
4193
4380
  * `durationMs` and `tokensPerSecond` are `null` while the span is still
4194
4381
  * running. User-defined `metrics` whose path resolves to
4195
4382
  * `undefined` are dropped, but `null`, `0`, and `false` are preserved as
@@ -4304,22 +4491,25 @@ declare const traceCacheRefSchema: z$1.ZodObject<{
4304
4491
  }, z$1.core.$strip>;
4305
4492
  /** Reference to a value-cache lookup performed via `evalTracer.cache(...)`. */
4306
4493
  type TraceCacheRef$1 = z$1.infer<typeof traceCacheRefSchema>;
4307
- /** Summary of a single persisted cache entry, used by list/delete endpoints. */
4494
+ /** Minimal index-backed summary of a persisted cache entry. */
4308
4495
  declare const cacheListItemSchema$1: z$1.ZodObject<{
4309
4496
  key: z$1.ZodString;
4310
4497
  namespace: z$1.ZodString;
4311
- operationType: z$1.ZodEnum<{
4312
- value: "value";
4313
- span: "span";
4314
- }>;
4315
- operationName: z$1.ZodString;
4316
- spanName: z$1.ZodOptional<z$1.ZodString>;
4317
- spanKind: z$1.ZodOptional<z$1.ZodString>;
4318
4498
  storedAt: z$1.ZodString;
4319
- sizeBytes: z$1.ZodNumber;
4499
+ lastAccessedAt: z$1.ZodString;
4320
4500
  }, z$1.core.$strip>;
4321
- /** Summary row for a single cache entry. */
4501
+ /** Minimal summary row for a single cache entry. */
4322
4502
  type CacheListItem = z$1.infer<typeof cacheListItemSchema$1>;
4503
+ /** Summary of cleanup performed by manual cache repair. */
4504
+ declare const cacheRepairSummarySchema$1: z$1.ZodObject<{
4505
+ removedCacheFiles: z$1.ZodNumber;
4506
+ removedDebugFiles: z$1.ZodNumber;
4507
+ removedBlobFiles: z$1.ZodNumber;
4508
+ removedIndexRows: z$1.ZodNumber;
4509
+ rewrittenIndexes: z$1.ZodNumber;
4510
+ }, z$1.core.$strip>;
4511
+ /** Stable JSON summary returned by manual cache repair. */
4512
+ type CacheRepairSummary = z$1.infer<typeof cacheRepairSummarySchema$1>;
4323
4513
  /** Serialized nested span captured while recording a cached operation. */
4324
4514
  type SerializedCacheSpan = {
4325
4515
  kind: string;
@@ -4343,6 +4533,34 @@ declare const cacheRecordingOpSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4343
4533
  kind: z$1.ZodLiteral<"setOutput">;
4344
4534
  key: z$1.ZodString;
4345
4535
  value: z$1.ZodUnknown;
4536
+ column: z$1.ZodOptional<z$1.ZodObject<{
4537
+ label: z$1.ZodOptional<z$1.ZodString>;
4538
+ format: z$1.ZodOptional<z$1.ZodEnum<{
4539
+ number: "number";
4540
+ boolean: "boolean";
4541
+ duration: "duration";
4542
+ json: "json";
4543
+ file: "file";
4544
+ markdown: "markdown";
4545
+ image: "image";
4546
+ html: "html";
4547
+ pdf: "pdf";
4548
+ audio: "audio";
4549
+ video: "video";
4550
+ percent: "percent";
4551
+ passFail: "passFail";
4552
+ stars: "stars";
4553
+ }>>;
4554
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
4555
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
4556
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
4557
+ align: z$1.ZodOptional<z$1.ZodEnum<{
4558
+ left: "left";
4559
+ center: "center";
4560
+ right: "right";
4561
+ }>>;
4562
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
4563
+ }, z$1.core.$strip>>;
4346
4564
  }, z$1.core.$strip>, z$1.ZodObject<{
4347
4565
  kind: z$1.ZodLiteral<"appendOutput">;
4348
4566
  key: z$1.ZodString;
@@ -4403,6 +4621,34 @@ declare const cacheRecordingSchema: z$1.ZodObject<{
4403
4621
  kind: z$1.ZodLiteral<"setOutput">;
4404
4622
  key: z$1.ZodString;
4405
4623
  value: z$1.ZodUnknown;
4624
+ column: z$1.ZodOptional<z$1.ZodObject<{
4625
+ label: z$1.ZodOptional<z$1.ZodString>;
4626
+ format: z$1.ZodOptional<z$1.ZodEnum<{
4627
+ number: "number";
4628
+ boolean: "boolean";
4629
+ duration: "duration";
4630
+ json: "json";
4631
+ file: "file";
4632
+ markdown: "markdown";
4633
+ image: "image";
4634
+ html: "html";
4635
+ pdf: "pdf";
4636
+ audio: "audio";
4637
+ video: "video";
4638
+ percent: "percent";
4639
+ passFail: "passFail";
4640
+ stars: "stars";
4641
+ }>>;
4642
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
4643
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
4644
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
4645
+ align: z$1.ZodOptional<z$1.ZodEnum<{
4646
+ left: "left";
4647
+ center: "center";
4648
+ right: "right";
4649
+ }>>;
4650
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
4651
+ }, z$1.core.$strip>>;
4406
4652
  }, z$1.core.$strip>, z$1.ZodObject<{
4407
4653
  kind: z$1.ZodLiteral<"appendOutput">;
4408
4654
  key: z$1.ZodString;
@@ -4476,6 +4722,34 @@ declare const cacheEntrySchema: z$1.ZodObject<{
4476
4722
  kind: z$1.ZodLiteral<"setOutput">;
4477
4723
  key: z$1.ZodString;
4478
4724
  value: z$1.ZodUnknown;
4725
+ column: z$1.ZodOptional<z$1.ZodObject<{
4726
+ label: z$1.ZodOptional<z$1.ZodString>;
4727
+ format: z$1.ZodOptional<z$1.ZodEnum<{
4728
+ number: "number";
4729
+ boolean: "boolean";
4730
+ duration: "duration";
4731
+ json: "json";
4732
+ file: "file";
4733
+ markdown: "markdown";
4734
+ image: "image";
4735
+ html: "html";
4736
+ pdf: "pdf";
4737
+ audio: "audio";
4738
+ video: "video";
4739
+ percent: "percent";
4740
+ passFail: "passFail";
4741
+ stars: "stars";
4742
+ }>>;
4743
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
4744
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
4745
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
4746
+ align: z$1.ZodOptional<z$1.ZodEnum<{
4747
+ left: "left";
4748
+ center: "center";
4749
+ right: "right";
4750
+ }>>;
4751
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
4752
+ }, z$1.core.$strip>>;
4479
4753
  }, z$1.core.$strip>, z$1.ZodObject<{
4480
4754
  kind: z$1.ZodLiteral<"appendOutput">;
4481
4755
  key: z$1.ZodString;
@@ -4566,6 +4840,34 @@ declare const cacheDebugKeyEntrySchema: z$1.ZodObject<{
4566
4840
  kind: z$1.ZodLiteral<"setOutput">;
4567
4841
  key: z$1.ZodString;
4568
4842
  value: z$1.ZodUnknown;
4843
+ column: z$1.ZodOptional<z$1.ZodObject<{
4844
+ label: z$1.ZodOptional<z$1.ZodString>;
4845
+ format: z$1.ZodOptional<z$1.ZodEnum<{
4846
+ number: "number";
4847
+ boolean: "boolean";
4848
+ duration: "duration";
4849
+ json: "json";
4850
+ file: "file";
4851
+ markdown: "markdown";
4852
+ image: "image";
4853
+ html: "html";
4854
+ pdf: "pdf";
4855
+ audio: "audio";
4856
+ video: "video";
4857
+ percent: "percent";
4858
+ passFail: "passFail";
4859
+ stars: "stars";
4860
+ }>>;
4861
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
4862
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
4863
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
4864
+ align: z$1.ZodOptional<z$1.ZodEnum<{
4865
+ left: "left";
4866
+ center: "center";
4867
+ right: "right";
4868
+ }>>;
4869
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
4870
+ }, z$1.core.$strip>>;
4569
4871
  }, z$1.core.$strip>, z$1.ZodObject<{
4570
4872
  kind: z$1.ZodLiteral<"appendOutput">;
4571
4873
  key: z$1.ZodString;
@@ -4645,6 +4947,34 @@ declare const cacheEntryWithDebugKeySchema$1: z$1.ZodObject<{
4645
4947
  kind: z$1.ZodLiteral<"setOutput">;
4646
4948
  key: z$1.ZodString;
4647
4949
  value: z$1.ZodUnknown;
4950
+ column: z$1.ZodOptional<z$1.ZodObject<{
4951
+ label: z$1.ZodOptional<z$1.ZodString>;
4952
+ format: z$1.ZodOptional<z$1.ZodEnum<{
4953
+ number: "number";
4954
+ boolean: "boolean";
4955
+ duration: "duration";
4956
+ json: "json";
4957
+ file: "file";
4958
+ markdown: "markdown";
4959
+ image: "image";
4960
+ html: "html";
4961
+ pdf: "pdf";
4962
+ audio: "audio";
4963
+ video: "video";
4964
+ percent: "percent";
4965
+ passFail: "passFail";
4966
+ stars: "stars";
4967
+ }>>;
4968
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
4969
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
4970
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
4971
+ align: z$1.ZodOptional<z$1.ZodEnum<{
4972
+ left: "left";
4973
+ center: "center";
4974
+ right: "right";
4975
+ }>>;
4976
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
4977
+ }, z$1.core.$strip>>;
4648
4978
  }, z$1.core.$strip>, z$1.ZodObject<{
4649
4979
  kind: z$1.ZodLiteral<"appendOutput">;
4650
4980
  key: z$1.ZodString;
@@ -4726,6 +5056,34 @@ declare const cacheEntryWithDebugKeySchema$1: z$1.ZodObject<{
4726
5056
  kind: z$1.ZodLiteral<"setOutput">;
4727
5057
  key: z$1.ZodString;
4728
5058
  value: z$1.ZodUnknown;
5059
+ column: z$1.ZodOptional<z$1.ZodObject<{
5060
+ label: z$1.ZodOptional<z$1.ZodString>;
5061
+ format: z$1.ZodOptional<z$1.ZodEnum<{
5062
+ number: "number";
5063
+ boolean: "boolean";
5064
+ duration: "duration";
5065
+ json: "json";
5066
+ file: "file";
5067
+ markdown: "markdown";
5068
+ image: "image";
5069
+ html: "html";
5070
+ pdf: "pdf";
5071
+ audio: "audio";
5072
+ video: "video";
5073
+ percent: "percent";
5074
+ passFail: "passFail";
5075
+ stars: "stars";
5076
+ }>>;
5077
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
5078
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
5079
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
5080
+ align: z$1.ZodOptional<z$1.ZodEnum<{
5081
+ left: "left";
5082
+ center: "center";
5083
+ right: "right";
5084
+ }>>;
5085
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
5086
+ }, z$1.core.$strip>>;
4729
5087
  }, z$1.core.$strip>, z$1.ZodObject<{
4730
5088
  kind: z$1.ZodLiteral<"appendOutput">;
4731
5089
  key: z$1.ZodString;
@@ -4805,6 +5163,34 @@ declare const cacheFileSchema: z$1.ZodObject<{
4805
5163
  kind: z$1.ZodLiteral<"setOutput">;
4806
5164
  key: z$1.ZodString;
4807
5165
  value: z$1.ZodUnknown;
5166
+ column: z$1.ZodOptional<z$1.ZodObject<{
5167
+ label: z$1.ZodOptional<z$1.ZodString>;
5168
+ format: z$1.ZodOptional<z$1.ZodEnum<{
5169
+ number: "number";
5170
+ boolean: "boolean";
5171
+ duration: "duration";
5172
+ json: "json";
5173
+ file: "file";
5174
+ markdown: "markdown";
5175
+ image: "image";
5176
+ html: "html";
5177
+ pdf: "pdf";
5178
+ audio: "audio";
5179
+ video: "video";
5180
+ percent: "percent";
5181
+ passFail: "passFail";
5182
+ stars: "stars";
5183
+ }>>;
5184
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
5185
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
5186
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
5187
+ align: z$1.ZodOptional<z$1.ZodEnum<{
5188
+ left: "left";
5189
+ center: "center";
5190
+ right: "right";
5191
+ }>>;
5192
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
5193
+ }, z$1.core.$strip>>;
4808
5194
  }, z$1.core.$strip>, z$1.ZodObject<{
4809
5195
  kind: z$1.ZodLiteral<"appendOutput">;
4810
5196
  key: z$1.ZodString;
@@ -4894,6 +5280,34 @@ declare const cacheDebugKeyFileSchema: z$1.ZodObject<{
4894
5280
  kind: z$1.ZodLiteral<"setOutput">;
4895
5281
  key: z$1.ZodString;
4896
5282
  value: z$1.ZodUnknown;
5283
+ column: z$1.ZodOptional<z$1.ZodObject<{
5284
+ label: z$1.ZodOptional<z$1.ZodString>;
5285
+ format: z$1.ZodOptional<z$1.ZodEnum<{
5286
+ number: "number";
5287
+ boolean: "boolean";
5288
+ duration: "duration";
5289
+ json: "json";
5290
+ file: "file";
5291
+ markdown: "markdown";
5292
+ image: "image";
5293
+ html: "html";
5294
+ pdf: "pdf";
5295
+ audio: "audio";
5296
+ video: "video";
5297
+ percent: "percent";
5298
+ passFail: "passFail";
5299
+ stars: "stars";
5300
+ }>>;
5301
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions, unknown>>>;
5302
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
5303
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
5304
+ align: z$1.ZodOptional<z$1.ZodEnum<{
5305
+ left: "left";
5306
+ center: "center";
5307
+ right: "right";
5308
+ }>>;
5309
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
5310
+ }, z$1.core.$strip>>;
4897
5311
  }, z$1.core.$strip>, z$1.ZodObject<{
4898
5312
  kind: z$1.ZodLiteral<"appendOutput">;
4899
5313
  key: z$1.ZodString;
@@ -5628,6 +6042,43 @@ declare const caseRowSchema: z$1.ZodObject<{
5628
6042
  fileName: z$1.ZodOptional<z$1.ZodString>;
5629
6043
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
5630
6044
  }, z$1.core.$strip>]>]>>;
6045
+ outputColumnDefs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
6046
+ key: z$1.ZodString;
6047
+ label: z$1.ZodString;
6048
+ kind: z$1.ZodEnum<{
6049
+ string: "string";
6050
+ number: "number";
6051
+ boolean: "boolean";
6052
+ }>;
6053
+ format: z$1.ZodOptional<z$1.ZodEnum<{
6054
+ number: "number";
6055
+ boolean: "boolean";
6056
+ file: "file";
6057
+ duration: "duration";
6058
+ markdown: "markdown";
6059
+ json: "json";
6060
+ image: "image";
6061
+ html: "html";
6062
+ pdf: "pdf";
6063
+ audio: "audio";
6064
+ video: "video";
6065
+ percent: "percent";
6066
+ passFail: "passFail";
6067
+ stars: "stars";
6068
+ }>>;
6069
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$1, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$1, unknown>>>;
6070
+ isScore: z$1.ZodOptional<z$1.ZodBoolean>;
6071
+ isManualScore: z$1.ZodOptional<z$1.ZodBoolean>;
6072
+ passThreshold: z$1.ZodOptional<z$1.ZodNumber>;
6073
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
6074
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
6075
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
6076
+ align: z$1.ZodOptional<z$1.ZodEnum<{
6077
+ left: "left";
6078
+ center: "center";
6079
+ right: "right";
6080
+ }>>;
6081
+ }, z$1.core.$strip>>>;
5631
6082
  trial: z$1.ZodNumber;
5632
6083
  }, z$1.core.$strip>;
5633
6084
  /** Flattened per-case row rendered in run tables and streamed updates. */
@@ -5814,6 +6265,43 @@ declare const caseDetailSchema: z$1.ZodObject<{
5814
6265
  fileName: z$1.ZodOptional<z$1.ZodString>;
5815
6266
  sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
5816
6267
  }, z$1.core.$strip>]>]>>;
6268
+ outputColumnDefs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
6269
+ key: z$1.ZodString;
6270
+ label: z$1.ZodString;
6271
+ kind: z$1.ZodEnum<{
6272
+ string: "string";
6273
+ number: "number";
6274
+ boolean: "boolean";
6275
+ }>;
6276
+ format: z$1.ZodOptional<z$1.ZodEnum<{
6277
+ number: "number";
6278
+ boolean: "boolean";
6279
+ file: "file";
6280
+ duration: "duration";
6281
+ markdown: "markdown";
6282
+ json: "json";
6283
+ image: "image";
6284
+ html: "html";
6285
+ pdf: "pdf";
6286
+ audio: "audio";
6287
+ video: "video";
6288
+ percent: "percent";
6289
+ passFail: "passFail";
6290
+ stars: "stars";
6291
+ }>>;
6292
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$1, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$1, unknown>>>;
6293
+ isScore: z$1.ZodOptional<z$1.ZodBoolean>;
6294
+ isManualScore: z$1.ZodOptional<z$1.ZodBoolean>;
6295
+ passThreshold: z$1.ZodOptional<z$1.ZodNumber>;
6296
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
6297
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
6298
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
6299
+ align: z$1.ZodOptional<z$1.ZodEnum<{
6300
+ left: "left";
6301
+ center: "center";
6302
+ right: "right";
6303
+ }>>;
6304
+ }, z$1.core.$strip>>>;
5817
6305
  assertionFailures: z$1.ZodArray<z$1.ZodUnion<readonly [z$1.ZodObject<{
5818
6306
  name: z$1.ZodOptional<z$1.ZodString>;
5819
6307
  message: z$1.ZodString;
@@ -6097,22 +6585,25 @@ type ResolvedLlmCallCostCurrency$1 = {
6097
6585
  numberFormat?: NumberDisplayOptions$1;
6098
6586
  }; //#endregion
6099
6587
  //#region ../shared/src/schemas/cache.d.ts
6100
- /** Summary of a single persisted cache entry, used by list/delete endpoints. */
6588
+ /** Minimal index-backed summary of a persisted cache entry. */
6101
6589
  declare const cacheListItemSchema: z$1.ZodObject<{
6102
6590
  key: z$1.ZodString;
6103
6591
  namespace: z$1.ZodString;
6104
- operationType: z$1.ZodEnum<{
6105
- span: "span";
6106
- value: "value";
6107
- }>;
6108
- operationName: z$1.ZodString;
6109
- spanName: z$1.ZodOptional<z$1.ZodString>;
6110
- spanKind: z$1.ZodOptional<z$1.ZodString>;
6111
6592
  storedAt: z$1.ZodString;
6112
- sizeBytes: z$1.ZodNumber;
6593
+ lastAccessedAt: z$1.ZodString;
6113
6594
  }, z$1.core.$strip>;
6114
- /** Summary row for a single cache entry. */
6595
+ /** Minimal summary row for a single cache entry. */
6115
6596
  type CacheListItem$1 = z$1.infer<typeof cacheListItemSchema>;
6597
+ /** Summary of cleanup performed by manual cache repair. */
6598
+ declare const cacheRepairSummarySchema: z$1.ZodObject<{
6599
+ removedCacheFiles: z$1.ZodNumber;
6600
+ removedDebugFiles: z$1.ZodNumber;
6601
+ removedBlobFiles: z$1.ZodNumber;
6602
+ removedIndexRows: z$1.ZodNumber;
6603
+ rewrittenIndexes: z$1.ZodNumber;
6604
+ }, z$1.core.$strip>;
6605
+ /** Stable JSON summary returned by manual cache repair. */
6606
+ type CacheRepairSummary$1 = z$1.infer<typeof cacheRepairSummarySchema>;
6116
6607
  /** Serialized nested span captured while recording a cached operation. */
6117
6608
  type SerializedCacheSpan$1 = {
6118
6609
  kind: string;
@@ -6175,6 +6666,34 @@ declare const cacheEntryWithDebugKeySchema: z$1.ZodObject<{
6175
6666
  kind: z$1.ZodLiteral<"setOutput">;
6176
6667
  key: z$1.ZodString;
6177
6668
  value: z$1.ZodUnknown;
6669
+ column: z$1.ZodOptional<z$1.ZodObject<{
6670
+ label: z$1.ZodOptional<z$1.ZodString>;
6671
+ format: z$1.ZodOptional<z$1.ZodEnum<{
6672
+ number: "number";
6673
+ boolean: "boolean";
6674
+ file: "file";
6675
+ markdown: "markdown";
6676
+ json: "json";
6677
+ image: "image";
6678
+ html: "html";
6679
+ pdf: "pdf";
6680
+ audio: "audio";
6681
+ video: "video";
6682
+ duration: "duration";
6683
+ percent: "percent";
6684
+ passFail: "passFail";
6685
+ stars: "stars";
6686
+ }>>;
6687
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$1, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$1, unknown>>>;
6688
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
6689
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
6690
+ align: z$1.ZodOptional<z$1.ZodEnum<{
6691
+ left: "left";
6692
+ center: "center";
6693
+ right: "right";
6694
+ }>>;
6695
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
6696
+ }, z$1.core.$strip>>;
6178
6697
  }, z$1.core.$strip>, z$1.ZodObject<{
6179
6698
  kind: z$1.ZodLiteral<"appendOutput">;
6180
6699
  key: z$1.ZodString;
@@ -6256,6 +6775,34 @@ declare const cacheEntryWithDebugKeySchema: z$1.ZodObject<{
6256
6775
  kind: z$1.ZodLiteral<"setOutput">;
6257
6776
  key: z$1.ZodString;
6258
6777
  value: z$1.ZodUnknown;
6778
+ column: z$1.ZodOptional<z$1.ZodObject<{
6779
+ label: z$1.ZodOptional<z$1.ZodString>;
6780
+ format: z$1.ZodOptional<z$1.ZodEnum<{
6781
+ number: "number";
6782
+ boolean: "boolean";
6783
+ file: "file";
6784
+ markdown: "markdown";
6785
+ json: "json";
6786
+ image: "image";
6787
+ html: "html";
6788
+ pdf: "pdf";
6789
+ audio: "audio";
6790
+ video: "video";
6791
+ duration: "duration";
6792
+ percent: "percent";
6793
+ passFail: "passFail";
6794
+ stars: "stars";
6795
+ }>>;
6796
+ numberFormat: z$1.ZodOptional<z$1.ZodType<NumberDisplayOptions$1, unknown, z$1.core.$ZodTypeInternals<NumberDisplayOptions$1, unknown>>>;
6797
+ hideInTable: z$1.ZodOptional<z$1.ZodBoolean>;
6798
+ hideIfNoValue: z$1.ZodOptional<z$1.ZodBoolean>;
6799
+ align: z$1.ZodOptional<z$1.ZodEnum<{
6800
+ left: "left";
6801
+ center: "center";
6802
+ right: "right";
6803
+ }>>;
6804
+ maxStars: z$1.ZodOptional<z$1.ZodNumber>;
6805
+ }, z$1.core.$strip>>;
6259
6806
  }, z$1.core.$strip>, z$1.ZodObject<{
6260
6807
  kind: z$1.ZodLiteral<"appendOutput">;
6261
6808
  key: z$1.ZodString;
@@ -6454,7 +7001,8 @@ type EvalRunner = {
6454
7001
  * Remove cache entries matching `filter`, or all entries when no filter is
6455
7002
  * supplied.
6456
7003
  */
6457
- clearCache(filter?: CacheClearFilter): Promise<void>;
7004
+ clearCache(filter?: CacheClearFilter): Promise<void>; /** Remove cache/debug/blob files that are not referenced by cache indexes. */
7005
+ repairCache(): Promise<CacheRepairSummary$1>;
6458
7006
  /**
6459
7007
  * Recompute persisted case and run statuses for terminal runs touching one
6460
7008
  * eval. Accepts the exact eval key.
@@ -6635,4 +7183,4 @@ declare function defineEval<TInput = unknown, TOutputs extends EvalOutputs = Eva
6635
7183
  /** Return whether the active eval case has tags matching the typed input. */
6636
7184
  declare function matchesEvalTags(input: EvalTagMatchInput): boolean;
6637
7185
  //#endregion
6638
- export { AgentEvalTagRegistry, AgentEvalsConfig, type ApiCallEntry, type ApiCallMetric, type ApiCallMetricFormat, type ApiCallMetricPlacement, type ApiCallMetricValue, type ApiCallsConfigInput, type AssertionFailure, type CacheActivityEntry, type CacheAdapter, type CacheDebugKeyEntry, type CacheDebugKeyFile, type CacheDebugKeyWrite, type CacheEntry, type CacheEntryWithDebugKey, type CacheFile, type CacheHitEntry, type CacheKeyHashInput, type CacheKeyHashOptions, type CacheListItem, type CacheMode, type CacheOperationType, type CacheRecording, type CacheRecordingFrame, type CacheRecordingOp, type CacheScopeContext, type CacheSerializationOptions, type CacheStatus, type CallDerivedAttribute, type CallDerivedAttributeContext, type CallDerivedAttributesConfig, type CallDerivedAttributesFn, type CaptureEvalSpanErrorLevel, type CaptureEvalSpanErrorOptions, type CaseDetail, type CaseRow, type CellValue, type ColumnDef, type ColumnFormat, type ColumnKind, type ConfigReloadState, type ConfigReloadStatus, type CreateRunRequest, type DefaultConfigKey, type DerivedStatus, type DiscoveryIssue, EvalAssertionError, type EvalCacheConfig, EvalCase, type EvalCaseScope, type EvalChartAggregate, type EvalChartAxis, type EvalChartBuiltinMetric, type EvalChartColor, type EvalChartConfig, type EvalChartMetric, type EvalChartTooltipExtra, type EvalChartType, type EvalChartsConfig, type EvalColumnOverride, type EvalColumns, EvalDefinition, type EvalDeriveConfig, type EvalDeriveContext, type EvalDeriveFn, type EvalDeriveMap, type EvalDeriveValueFn, type EvalDisplayStatus, type EvalExecuteContext, type EvalExpectation, type EvalFreshnessStatus, type EvalManualInputConfig, type EvalManualScoreDef, type EvalOutputs, type EvalOutputsSchema, type EvalRunner, type EvalRuntimeScope, type EvalScoreContext, type EvalScoreDef, type EvalScoreFn, type EvalSetOutput, type EvalStartTime, type EvalStatAggregate, type EvalStatItem, type EvalStatsConfig, type EvalSummary, EvalTag, EvalTagMatchInput, type EvalTraceTree, type JsonCell, type LlmCallCostBreakdown, type LlmCallCostCurrency, type LlmCallEntry, type LlmCallMetric, type LlmCallMetricFormat, type LlmCallMetricPlacement, type LlmCallMetricValue, type LlmCallPricing, type LlmCallPricingRate, type LlmCallPricingRegistry, type LlmCallSimulatedTokens, type LlmCallsConfigInput, type LlmCostScenario, type ManualInputDescriptor, type ManualInputFieldDescriptor, type ManualInputFieldKind, type ManualInputFieldOverride, type ManualInputFieldsConfig, type ManualInputFileValue, type ManualInputSelectOption, type MaterializeManualInputFilesResult, type NumberDisplayOptions, type ReadManualInputFileResult, type RemoveDefaultConfig, type ResolvedApiCallMetric, type ResolvedApiCallsConfig, type ResolvedCallDerivedAttribute, type ResolvedLlmCallCostCurrency, type ResolvedLlmCallMetric, type ResolvedLlmCallPricing, type ResolvedLlmCallsConfig, type RunInEvalScopeOptions, type RunLogEntry, type RunLogLevel, type RunLogLocation, type RunLogPhase, type RunLogsConfigInput, type RunManifest, type RunSummary, type ScalarCell, type ScopedCaseSummary, type ScoreTrace, type SerializedCacheSpan, type SerializedCacheValue, type SpanCacheOptions, type SseEnvelope, type SseEventType, type TraceActiveSpan, type TraceAttributeDisplay, type TraceAttributeDisplayFormat, type TraceAttributeDisplayInput, type TraceAttributeDisplayPlacement, type TraceAttributeTransform, type TraceAttributeTransformContext, type TraceCacheInfo, type TraceCacheRef, type TraceDisplayConfig, type TraceDisplayInputConfig, type TraceSpanInfo, type TrialSelectionMode, type UpdateManualScoreRequest, appendToEvalOutput, buildTraceTree, captureEvalSpanError, cleanupStagedManualInputFiles, createRunner, defineEval, deserializeCacheRecording, deserializeCacheValue, evalAssert, evalExpect, evalLog, evalSpan, evalTime, evalTracer, extractApiCalls, extractCacheEntries, extractCacheHits, extractLlmCalls, getCurrentScope, getEvalCaseInput, getEvalRegistry, getNestedAttribute, hashCacheKey, hashCacheKeySync, incrementEvalOutput, isInEvalScope, isManualInputFileValue, manualInputFileValueSchema, matchesEvalTags, materializeManualInputFiles, mergeEvalOutput, nextEvalId, readManualInputFile, repoFile, runCli, runInEvalRuntimeScope, runInEvalScope, runInExistingEvalScope, serializeCacheRecording, serializeCacheValue, setEvalOutput, setScopeCacheContext, simulateLlmCallCost, simulateTokenAllocation, stageManualInputFile, stageManualInputFileFromPath, startEvalBackgroundJob, z };
7186
+ export { AgentEvalTagRegistry, AgentEvalsConfig, type ApiCallEntry, type ApiCallMetric, type ApiCallMetricFormat, type ApiCallMetricPlacement, type ApiCallMetricValue, type ApiCallsConfigInput, type AssertionFailure, type CacheActivityEntry, type CacheAdapter, type CacheDebugKeyEntry, type CacheDebugKeyFile, type CacheDebugKeyWrite, type CacheEntry, type CacheEntryWithDebugKey, type CacheFile, type CacheHitEntry, type CacheKeyHashInput, type CacheKeyHashOptions, type CacheListItem, type CacheMode, type CacheOperationType, type CacheRecording, type CacheRecordingFrame, type CacheRecordingOp, type CacheRepairSummary, type CacheScopeContext, type CacheSerializationOptions, type CacheStatus, type CallDerivedAttribute, type CallDerivedAttributeContext, type CallDerivedAttributesConfig, type CallDerivedAttributesFn, type CaptureEvalSpanErrorLevel, type CaptureEvalSpanErrorOptions, type CaseDetail, type CaseRow, type CellValue, type ColumnDef, type ColumnFormat, type ColumnKind, type ConfigReloadState, type ConfigReloadStatus, type CreateRunRequest, type DefaultConfigKey, type DerivedStatus, type DiscoveryIssue, EvalAssertionError, type EvalCacheConfig, EvalCase, type EvalCaseScope, type EvalChartAggregate, type EvalChartAxis, type EvalChartBuiltinMetric, type EvalChartColor, type EvalChartConfig, type EvalChartMetric, type EvalChartTooltipExtra, type EvalChartType, type EvalChartsConfig, type EvalColumnOverride, type EvalColumns, EvalDefinition, type EvalDeriveConfig, type EvalDeriveContext, type EvalDeriveFn, type EvalDeriveMap, type EvalDeriveValueFn, type EvalDisplayStatus, type EvalExecuteContext, type EvalExpectation, type EvalFreshnessStatus, type EvalManualInputConfig, type EvalManualScoreDef, type EvalOutputs, type EvalOutputsSchema, type EvalRunner, type EvalRuntimeScope, type EvalScoreContext, type EvalScoreDef, type EvalScoreFn, type EvalSetOutput, type EvalStartTime, type EvalStatAggregate, type EvalStatItem, type EvalStatsConfig, type EvalSummary, EvalTag, EvalTagMatchInput, type EvalTraceTree, type JsonCell, type LlmCallCostBreakdown, type LlmCallCostCurrency, type LlmCallEntry, type LlmCallMetric, type LlmCallMetricFormat, type LlmCallMetricPlacement, type LlmCallMetricValue, type LlmCallPricing, type LlmCallPricingRate, type LlmCallPricingRegistry, type LlmCallSimulatedTokens, type LlmCallsConfigInput, type LlmCostScenario, type ManualInputDescriptor, type ManualInputFieldDescriptor, type ManualInputFieldKind, type ManualInputFieldOverride, type ManualInputFieldsConfig, type ManualInputFileValue, type ManualInputSelectOption, type MaterializeManualInputFilesResult, type NumberDisplayOptions, type ReadManualInputFileResult, type RemoveDefaultConfig, type ResolvedApiCallMetric, type ResolvedApiCallsConfig, type ResolvedCallDerivedAttribute, type ResolvedLlmCallCostCurrency, type ResolvedLlmCallMetric, type ResolvedLlmCallPricing, type ResolvedLlmCallsConfig, type RunInEvalScopeOptions, type RunLogEntry, type RunLogLevel, type RunLogLocation, type RunLogPhase, type RunLogsConfigInput, type RunManifest, type RunSummary, type ScalarCell, type ScopedCaseSummary, type ScoreTrace, type SerializedCacheSpan, type SerializedCacheValue, type SpanCacheOptions, type SseEnvelope, type SseEventType, type TraceActiveSpan, type TraceAttributeDisplay, type TraceAttributeDisplayFormat, type TraceAttributeDisplayInput, type TraceAttributeDisplayPlacement, type TraceAttributeTransform, type TraceAttributeTransformContext, type TraceCacheInfo, type TraceCacheRef, type TraceDisplayConfig, type TraceDisplayInputConfig, type TraceSpanInfo, type TrialSelectionMode, type UpdateManualScoreRequest, appendToEvalOutput, buildTraceTree, captureEvalSpanError, cleanupStagedManualInputFiles, createRunner, defineEval, deserializeCacheRecording, deserializeCacheValue, evalAssert, evalExpect, evalLog, evalSpan, evalTime, evalTracer, extractApiCalls, extractCacheEntries, extractCacheHits, extractLlmCalls, getCurrentScope, getEvalCaseInput, getEvalRegistry, getNestedAttribute, hashCacheKey, hashCacheKeySync, incrementEvalOutput, isInEvalScope, isManualInputFileValue, manualInputFileValueSchema, matchesEvalTags, materializeManualInputFiles, mergeEvalOutput, nextEvalId, readManualInputFile, repoFile, runCli, runInEvalRuntimeScope, runInEvalScope, runInExistingEvalScope, serializeCacheRecording, serializeCacheValue, setEvalOutput, setScopeCacheContext, simulateLlmCallCost, simulateTokenAllocation, stageManualInputFile, stageManualInputFileFromPath, startEvalBackgroundJob, z };