@tangle-network/agent-eval 0.107.0 → 0.108.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/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/dist/adapters/http.d.ts +1 -1
- package/dist/adapters/langchain.d.ts +1 -1
- package/dist/adapters/otel.d.ts +1 -1
- package/dist/benchmarks/index.d.ts +3 -1
- package/dist/benchmarks/index.js +49 -3
- package/dist/campaign/index.d.ts +9 -7
- package/dist/campaign/index.js +72 -3407
- package/dist/campaign/index.js.map +1 -1
- package/dist/chunk-4VLZEPJ3.js +4306 -0
- package/dist/chunk-4VLZEPJ3.js.map +1 -0
- package/dist/{chunk-G4DLZAV5.js → chunk-OVPVM4JC.js} +1044 -643
- package/dist/chunk-OVPVM4JC.js.map +1 -0
- package/dist/chunk-T6W5ADLG.js +766 -0
- package/dist/chunk-T6W5ADLG.js.map +1 -0
- package/dist/contract/index.d.ts +16 -6
- package/dist/contract/index.js +10 -11
- package/dist/contract/index.js.map +1 -1
- package/dist/{gepa-BmqTrdtg.d.ts → gepa-B3x5Ulcv.d.ts} +3 -40
- package/dist/hosted/index.d.ts +1 -1
- package/dist/index-pPtfoIJO.d.ts +423 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/multishot/index.d.ts +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{pre-registration-x3f0VpxT.d.ts → pre-registration-BUhVPzE7.d.ts} +1 -1
- package/dist/{provenance-CIjRcI6m.d.ts → provenance-DdDhf6cg.d.ts} +3 -2
- package/dist/rl.d.ts +1 -1
- package/dist/rl.js +6 -6
- package/dist/storage-Dw_f7WMt.d.ts +39 -0
- package/dist/{types-CNZ0tHET.d.ts → types-BdIv5dvA.d.ts} +1 -1
- package/docs/improvement-glossary.md +5 -1
- package/package.json +1 -1
- package/dist/chunk-6PF6LXRY.js +0 -861
- package/dist/chunk-6PF6LXRY.js.map +0 -1
- package/dist/chunk-6QDKWHLS.js +0 -223
- package/dist/chunk-6QDKWHLS.js.map +0 -1
- package/dist/chunk-G4DLZAV5.js.map +0 -1
- package/dist/chunk-V75NN2ZR.js +0 -421
- package/dist/chunk-V75NN2ZR.js.map +0 -1
- package/dist/index-C2CC_dry.d.ts +0 -159
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { S as Scenario, b as DispatchContext, C as CampaignResult } from './types-BdIv5dvA.js';
|
|
2
|
+
import { b as RunSplitTag } from './run-record-I-Z3JNvO.js';
|
|
3
|
+
import { C as CampaignStorage } from './storage-Dw_f7WMt.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Shared types for the reference benchmark wrappers under
|
|
7
|
+
* `src/benchmarks/`. Each wrapper exports the three functions in
|
|
8
|
+
* `BenchmarkAdapter` plus its own typed `DatasetItem` shape.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
type BenchmarkTaskKind = 'retrieval' | 'rag-answer' | 'hallucination' | 'kb-improvement' | 'routing' | 'custom';
|
|
12
|
+
type BenchmarkFamily = 'beir' | 'mteb-retrieval' | 'msmarco' | 'trec-dl' | 'miracl' | 'lotte' | 'bright' | 'crag' | 'hotpotqa' | 'kilt' | 'ragtruth' | 'faithbench' | 'first-party' | 'custom';
|
|
13
|
+
interface BenchmarkDatasetItem<TPayload = unknown> {
|
|
14
|
+
/** Stable dataset-local item id (used for split assignment + paper
|
|
15
|
+
* references). Unique within a benchmark. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Free-form payload. Each benchmark defines its own shape. */
|
|
18
|
+
payload: TPayload;
|
|
19
|
+
/** Optional precomputed split. When absent, adapters use assignSplit(id). */
|
|
20
|
+
split?: RunSplitTag;
|
|
21
|
+
/** Benchmark family this row came from, e.g. `beir` or `crag`. */
|
|
22
|
+
family?: BenchmarkFamily | string;
|
|
23
|
+
/** Benchmark-local task kind, e.g. retrieval vs answer quality. */
|
|
24
|
+
taskKind?: BenchmarkTaskKind | string;
|
|
25
|
+
/** Slice labels such as language, domain, freshness, multihop, long-tail. */
|
|
26
|
+
tags?: string[];
|
|
27
|
+
/** Dataset provenance, version, URL, or license notes. */
|
|
28
|
+
source?: BenchmarkSource;
|
|
29
|
+
metadata?: Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
interface BenchmarkEvaluation {
|
|
32
|
+
/** [0, 1] score for the response on this item. Exact-match
|
|
33
|
+
* benchmarks use 0/1; partial-credit benchmarks may return
|
|
34
|
+
* fractional values. */
|
|
35
|
+
score: number;
|
|
36
|
+
/** Optional pass/fail projection. Defaults to `score > 0` when absent. */
|
|
37
|
+
passed?: boolean;
|
|
38
|
+
/** Numeric sub-metrics. These become report dimensions. */
|
|
39
|
+
dimensions?: Record<string, number>;
|
|
40
|
+
/** Optional bag of raw scoring signals — e.g. parsed numeric
|
|
41
|
+
* answer, regex match, judge sub-scores. */
|
|
42
|
+
raw: Record<string, unknown>;
|
|
43
|
+
notes?: string;
|
|
44
|
+
}
|
|
45
|
+
interface BenchmarkSource {
|
|
46
|
+
name?: string;
|
|
47
|
+
url?: string;
|
|
48
|
+
version?: string;
|
|
49
|
+
license?: string;
|
|
50
|
+
citation?: string;
|
|
51
|
+
}
|
|
52
|
+
/** Common signature implemented by every adapter under `src/benchmarks/*`. */
|
|
53
|
+
interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string> {
|
|
54
|
+
/** Stable benchmark id such as `beir/nfcorpus` or `crag/smoke`. */
|
|
55
|
+
id?: string;
|
|
56
|
+
family?: BenchmarkFamily | string;
|
|
57
|
+
taskKind?: BenchmarkTaskKind | string;
|
|
58
|
+
description?: string;
|
|
59
|
+
source?: BenchmarkSource;
|
|
60
|
+
defaultMetric?: string;
|
|
61
|
+
/** Load the dataset for the given split. May hit the network on
|
|
62
|
+
* first call but should be cache-friendly. Adapters that don't
|
|
63
|
+
* ship the dataset itself MUST throw a clearly-marked error
|
|
64
|
+
* pointing the caller at the loader script. */
|
|
65
|
+
loadDataset(split: RunSplitTag): Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
66
|
+
/** Score a single response. Pure with respect to the inputs. */
|
|
67
|
+
evaluate(item: BenchmarkDatasetItem<TPayload>, artifact: TArtifact): Promise<BenchmarkEvaluation>;
|
|
68
|
+
/** Deterministic split assignment via item id hashing. The
|
|
69
|
+
* fraction of items in each split is implementation-defined but
|
|
70
|
+
* MUST be stable across processes and platforms. */
|
|
71
|
+
assignSplit(itemId: string): RunSplitTag;
|
|
72
|
+
}
|
|
73
|
+
interface BenchmarkScenario<TPayload = unknown> extends Scenario {
|
|
74
|
+
kind: 'benchmark';
|
|
75
|
+
benchmarkId: string;
|
|
76
|
+
family: BenchmarkFamily | string;
|
|
77
|
+
taskKind: BenchmarkTaskKind | string;
|
|
78
|
+
splitTag: RunSplitTag;
|
|
79
|
+
item: BenchmarkDatasetItem<TPayload>;
|
|
80
|
+
}
|
|
81
|
+
type BenchmarkResponder<TPayload = unknown, TArtifact = string> = (input: {
|
|
82
|
+
scenario: BenchmarkScenario<TPayload>;
|
|
83
|
+
item: BenchmarkDatasetItem<TPayload>;
|
|
84
|
+
context: DispatchContext;
|
|
85
|
+
}) => Promise<TArtifact> | TArtifact;
|
|
86
|
+
/** Split-assignment seed shared across all benchmarks. Bumping this
|
|
87
|
+
* value reshuffles every split — do NOT do that lightly. */
|
|
88
|
+
declare const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
|
|
89
|
+
/**
|
|
90
|
+
* Assign an item id to one of `'search' | 'dev' | 'holdout'` using a
|
|
91
|
+
* stable 32-bit hash of `${seed}::${id}`. Default proportions:
|
|
92
|
+
*
|
|
93
|
+
* search: 60% (optimization-readable)
|
|
94
|
+
* dev: 20% (held-out for tuning, leak-on-purpose during dev)
|
|
95
|
+
* holdout:20% (paper-grade held-out, gated reads)
|
|
96
|
+
*/
|
|
97
|
+
declare function deterministicSplit(itemId: string, seed?: string): RunSplitTag;
|
|
98
|
+
|
|
99
|
+
interface BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> {
|
|
100
|
+
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
|
101
|
+
item: BenchmarkDatasetItem<TPayload>;
|
|
102
|
+
weakArtifact: TArtifact;
|
|
103
|
+
strongArtifact: TArtifact;
|
|
104
|
+
maxWeakScore?: number;
|
|
105
|
+
minStrongScore?: number;
|
|
106
|
+
minGap?: number;
|
|
107
|
+
}
|
|
108
|
+
interface BenchmarkMetricCalibrationResult {
|
|
109
|
+
passed: boolean;
|
|
110
|
+
weak: BenchmarkEvaluation;
|
|
111
|
+
strong: BenchmarkEvaluation;
|
|
112
|
+
weakScore: number;
|
|
113
|
+
strongScore: number;
|
|
114
|
+
gap: number;
|
|
115
|
+
reasons: string[];
|
|
116
|
+
}
|
|
117
|
+
declare function calibrateBenchmarkMetric<TPayload = unknown, TArtifact = string>(options: BenchmarkMetricCalibrationOptions<TPayload, TArtifact>): Promise<BenchmarkMetricCalibrationResult>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Synthetic routing dataset. 16 tasks across 4 categories. Used as a
|
|
121
|
+
* deterministic, dependency-free benchmark for any router that maps a
|
|
122
|
+
* natural-language request to one of a fixed set of route labels.
|
|
123
|
+
*
|
|
124
|
+
* Format (see `routing/README.md` for prose):
|
|
125
|
+
*
|
|
126
|
+
* {
|
|
127
|
+
* id: stable per-task ID (matches across processes).
|
|
128
|
+
* category: one of the four route labels.
|
|
129
|
+
* prompt: the user-facing request the router must classify.
|
|
130
|
+
* route: the ground-truth route the router should pick.
|
|
131
|
+
* synonyms: other strings that count as a correct answer.
|
|
132
|
+
* hardNegatives:close-but-wrong route labels — used to detect the
|
|
133
|
+
* "always picks the popular route" failure mode.
|
|
134
|
+
* }
|
|
135
|
+
*
|
|
136
|
+
* The four categories are intentionally cross-domain (file ops,
|
|
137
|
+
* math, search, conversation) so a router that collapses to one
|
|
138
|
+
* category is easy to spot.
|
|
139
|
+
*/
|
|
140
|
+
interface RoutingItem {
|
|
141
|
+
id: string;
|
|
142
|
+
category: 'file' | 'math' | 'search' | 'chat';
|
|
143
|
+
prompt: string;
|
|
144
|
+
/** Canonical correct route label. */
|
|
145
|
+
route: string;
|
|
146
|
+
/** Alternate route labels that also count as correct. */
|
|
147
|
+
synonyms: string[];
|
|
148
|
+
/** Wrong-but-tempting route labels (for analysis, not grading). */
|
|
149
|
+
hardNegatives: string[];
|
|
150
|
+
}
|
|
151
|
+
declare const ROUTING_DATASET: RoutingItem[];
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Routing benchmark — synthetic, dependency-free, ships in the
|
|
155
|
+
* package. 16 cross-category items in `dataset.ts`. See
|
|
156
|
+
* `routing/README.md` for the format.
|
|
157
|
+
*
|
|
158
|
+
* `evaluate` does case-insensitive exact match against the canonical
|
|
159
|
+
* route plus declared synonyms. The first valid route token in the
|
|
160
|
+
* response wins; everything else is ignored. Wrong answers also
|
|
161
|
+
* report whether they hit a hard negative — useful when triaging
|
|
162
|
+
* "always picks the popular route" failure modes.
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
type RoutingPayload = RoutingItem;
|
|
166
|
+
type RoutingDatasetItem = BenchmarkDatasetItem<RoutingPayload>;
|
|
167
|
+
declare class RoutingAdapter implements BenchmarkAdapter<RoutingDatasetItem, RoutingPayload> {
|
|
168
|
+
readonly id = "first-party/routing";
|
|
169
|
+
readonly family = "first-party";
|
|
170
|
+
readonly taskKind = "routing";
|
|
171
|
+
readonly description = "Synthetic fixed-route classification smoke benchmark";
|
|
172
|
+
readonly defaultMetric = "route_exact_match";
|
|
173
|
+
loadDataset(split: RunSplitTag): Promise<RoutingDatasetItem[]>;
|
|
174
|
+
evaluate(item: RoutingDatasetItem, response: string): Promise<BenchmarkEvaluation>;
|
|
175
|
+
assignSplit(itemId: string): RunSplitTag;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Pull route-shaped tokens out of a model response. Routes look like
|
|
179
|
+
* `category.action` (`fs.write`, `chat.reply`). Bare alphanumerics
|
|
180
|
+
* are not routes, but `category.action` patterns are robust to most
|
|
181
|
+
* model wrappers (JSON output, prose explanations, code fences).
|
|
182
|
+
*/
|
|
183
|
+
declare function extractRouteTokens(response: string): string[];
|
|
184
|
+
declare const loadDataset: (split: RunSplitTag) => Promise<RoutingDatasetItem[]>;
|
|
185
|
+
declare const evaluate: (item: RoutingDatasetItem, response: string) => Promise<BenchmarkEvaluation>;
|
|
186
|
+
declare const assignSplit: (itemId: string) => RunSplitTag;
|
|
187
|
+
|
|
188
|
+
declare const index$1_ROUTING_DATASET: typeof ROUTING_DATASET;
|
|
189
|
+
type index$1_RoutingAdapter = RoutingAdapter;
|
|
190
|
+
declare const index$1_RoutingAdapter: typeof RoutingAdapter;
|
|
191
|
+
type index$1_RoutingDatasetItem = RoutingDatasetItem;
|
|
192
|
+
type index$1_RoutingItem = RoutingItem;
|
|
193
|
+
type index$1_RoutingPayload = RoutingPayload;
|
|
194
|
+
declare const index$1_assignSplit: typeof assignSplit;
|
|
195
|
+
declare const index$1_evaluate: typeof evaluate;
|
|
196
|
+
declare const index$1_extractRouteTokens: typeof extractRouteTokens;
|
|
197
|
+
declare const index$1_loadDataset: typeof loadDataset;
|
|
198
|
+
declare namespace index$1 {
|
|
199
|
+
export { index$1_ROUTING_DATASET as ROUTING_DATASET, index$1_RoutingAdapter as RoutingAdapter, type index$1_RoutingDatasetItem as RoutingDatasetItem, type index$1_RoutingItem as RoutingItem, type index$1_RoutingPayload as RoutingPayload, index$1_assignSplit as assignSplit, index$1_evaluate as evaluate, index$1_extractRouteTokens as extractRouteTokens, index$1_loadDataset as loadDataset };
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface BenchmarkRunOptions<TPayload = unknown, TArtifact = string> {
|
|
203
|
+
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
|
204
|
+
respond: BenchmarkResponder<TPayload, TArtifact>;
|
|
205
|
+
splits?: readonly RunSplitTag[];
|
|
206
|
+
runDir: string;
|
|
207
|
+
repo?: string;
|
|
208
|
+
seed?: number;
|
|
209
|
+
reps?: number;
|
|
210
|
+
resumable?: boolean;
|
|
211
|
+
costCeiling?: number;
|
|
212
|
+
maxConcurrency?: number;
|
|
213
|
+
dispatchTimeoutMs?: number;
|
|
214
|
+
expectUsage?: 'assert' | 'warn' | 'off';
|
|
215
|
+
storage?: CampaignStorage;
|
|
216
|
+
now?: () => Date;
|
|
217
|
+
}
|
|
218
|
+
interface BenchmarkReport {
|
|
219
|
+
benchmarkId: string;
|
|
220
|
+
family: BenchmarkFamily | string;
|
|
221
|
+
taskKind: BenchmarkTaskKind | string;
|
|
222
|
+
source?: BenchmarkAdapter['source'];
|
|
223
|
+
runDir: string;
|
|
224
|
+
manifestHash: string;
|
|
225
|
+
seed: number;
|
|
226
|
+
startedAt: string;
|
|
227
|
+
endedAt: string;
|
|
228
|
+
durationMs: number;
|
|
229
|
+
totalItems: number;
|
|
230
|
+
totalCells: number;
|
|
231
|
+
cellsFailed: number;
|
|
232
|
+
cellsCached: number;
|
|
233
|
+
totalCostUsd: number;
|
|
234
|
+
splits: Record<string, BenchmarkSliceSummary>;
|
|
235
|
+
tags: Record<string, BenchmarkSliceSummary>;
|
|
236
|
+
dimensions: Record<string, BenchmarkDistribution>;
|
|
237
|
+
score: BenchmarkDistribution;
|
|
238
|
+
costUsd: BenchmarkDistribution;
|
|
239
|
+
latencyMs: BenchmarkDistribution;
|
|
240
|
+
}
|
|
241
|
+
interface BenchmarkSliceSummary {
|
|
242
|
+
n: number;
|
|
243
|
+
meanScore: number;
|
|
244
|
+
passRate: number;
|
|
245
|
+
score: BenchmarkDistribution;
|
|
246
|
+
costUsd: BenchmarkDistribution;
|
|
247
|
+
latencyMs: BenchmarkDistribution;
|
|
248
|
+
}
|
|
249
|
+
interface BenchmarkDistribution {
|
|
250
|
+
n: number;
|
|
251
|
+
min: number;
|
|
252
|
+
mean: number;
|
|
253
|
+
median: number;
|
|
254
|
+
p90: number;
|
|
255
|
+
max: number;
|
|
256
|
+
}
|
|
257
|
+
interface BenchmarkRunResult<TPayload = unknown, TArtifact = string> {
|
|
258
|
+
scenarios: Array<BenchmarkScenario<TPayload>>;
|
|
259
|
+
campaign: CampaignResult<TArtifact, BenchmarkScenario<TPayload>>;
|
|
260
|
+
report: BenchmarkReport;
|
|
261
|
+
reportJsonPath: string;
|
|
262
|
+
reportMarkdownPath: string;
|
|
263
|
+
}
|
|
264
|
+
declare function runBenchmarkAdapter<TPayload = unknown, TArtifact = string>(options: BenchmarkRunOptions<TPayload, TArtifact>): Promise<BenchmarkRunResult<TPayload, TArtifact>>;
|
|
265
|
+
declare function summarizeBenchmarkCampaign<TPayload, TArtifact>(input: {
|
|
266
|
+
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
|
267
|
+
scenarios: Array<BenchmarkScenario<TPayload>>;
|
|
268
|
+
campaign: CampaignResult<TArtifact, BenchmarkScenario<TPayload>>;
|
|
269
|
+
}): BenchmarkReport;
|
|
270
|
+
declare function renderBenchmarkReportMarkdown(report: BenchmarkReport): string;
|
|
271
|
+
|
|
272
|
+
interface StandardRetrievalDocument {
|
|
273
|
+
id: string;
|
|
274
|
+
title?: string;
|
|
275
|
+
text: string;
|
|
276
|
+
metadata?: Record<string, unknown>;
|
|
277
|
+
}
|
|
278
|
+
interface StandardRetrievalQuery {
|
|
279
|
+
id: string;
|
|
280
|
+
text: string;
|
|
281
|
+
metadata?: Record<string, unknown>;
|
|
282
|
+
}
|
|
283
|
+
interface StandardRetrievalQrel {
|
|
284
|
+
queryId: string;
|
|
285
|
+
documentId: string;
|
|
286
|
+
score: number;
|
|
287
|
+
}
|
|
288
|
+
interface StandardRetrievalPayload {
|
|
289
|
+
queryId: string;
|
|
290
|
+
query: string;
|
|
291
|
+
expectedDocumentIds: string[];
|
|
292
|
+
expectedScores: Record<string, number>;
|
|
293
|
+
corpus?: Record<string, StandardRetrievalDocument>;
|
|
294
|
+
metadata?: Record<string, unknown>;
|
|
295
|
+
}
|
|
296
|
+
interface BuildStandardRetrievalItemsOptions {
|
|
297
|
+
benchmarkId: string;
|
|
298
|
+
family: BenchmarkFamily | string;
|
|
299
|
+
queries: readonly StandardRetrievalQuery[];
|
|
300
|
+
qrels: readonly StandardRetrievalQrel[];
|
|
301
|
+
corpus?: readonly StandardRetrievalDocument[];
|
|
302
|
+
includeCorpusInPayload?: boolean;
|
|
303
|
+
source?: BenchmarkSource;
|
|
304
|
+
tags?: readonly string[];
|
|
305
|
+
splitOf?: (queryId: string) => RunSplitTag;
|
|
306
|
+
}
|
|
307
|
+
interface RetrievalIdAdapterOptions extends BuildStandardRetrievalItemsOptions {
|
|
308
|
+
responseIdPattern?: RegExp;
|
|
309
|
+
cutoffs?: readonly number[];
|
|
310
|
+
primaryMetric?: string;
|
|
311
|
+
passMetric?: string;
|
|
312
|
+
passThreshold?: number;
|
|
313
|
+
}
|
|
314
|
+
interface StandardRetrievalResult {
|
|
315
|
+
id?: string;
|
|
316
|
+
documentId?: string;
|
|
317
|
+
docId?: string;
|
|
318
|
+
score?: number;
|
|
319
|
+
}
|
|
320
|
+
type StandardRetrievalArtifact = string | readonly string[] | readonly StandardRetrievalResult[] | {
|
|
321
|
+
ids?: readonly string[];
|
|
322
|
+
documentIds?: readonly string[];
|
|
323
|
+
results?: readonly StandardRetrievalResult[];
|
|
324
|
+
};
|
|
325
|
+
interface StandardRetrievalEvaluationOptions {
|
|
326
|
+
responseIdPattern?: RegExp;
|
|
327
|
+
cutoffs?: readonly number[];
|
|
328
|
+
primaryMetric?: string;
|
|
329
|
+
passMetric?: string;
|
|
330
|
+
passThreshold?: number;
|
|
331
|
+
}
|
|
332
|
+
declare function parseJsonlRows<T = unknown>(text: string): T[];
|
|
333
|
+
declare function parseTsvRows(text: string): string[][];
|
|
334
|
+
declare function parseQrels(text: string): StandardRetrievalQrel[];
|
|
335
|
+
declare function parseBeirCorpusJsonl(text: string): StandardRetrievalDocument[];
|
|
336
|
+
declare function parseBeirQueriesJsonl(text: string): StandardRetrievalQuery[];
|
|
337
|
+
declare function buildStandardRetrievalItems(options: BuildStandardRetrievalItemsOptions): Array<BenchmarkDatasetItem<StandardRetrievalPayload>>;
|
|
338
|
+
declare function createRetrievalIdBenchmarkAdapter(options: RetrievalIdAdapterOptions): BenchmarkAdapter<BenchmarkDatasetItem<StandardRetrievalPayload>, StandardRetrievalPayload, StandardRetrievalArtifact>;
|
|
339
|
+
declare function evaluateStandardRetrieval(payload: StandardRetrievalPayload, artifact: StandardRetrievalArtifact, options?: StandardRetrievalEvaluationOptions): {
|
|
340
|
+
score: number;
|
|
341
|
+
passed: boolean;
|
|
342
|
+
dimensions: Record<string, number>;
|
|
343
|
+
raw: {
|
|
344
|
+
rankedDocumentIds: string[];
|
|
345
|
+
expectedDocumentIds: string[];
|
|
346
|
+
expectedScores: Record<string, number>;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
declare function normalizeRetrievedDocumentIds(artifact: StandardRetrievalArtifact, responseIdPattern?: RegExp): string[];
|
|
350
|
+
declare function retrievalMetricsAtCutoff(input: {
|
|
351
|
+
rankedDocumentIds: readonly string[];
|
|
352
|
+
expectedScores: Record<string, number>;
|
|
353
|
+
cutoff: number;
|
|
354
|
+
}): Record<string, number>;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Reference benchmark wrappers — entry point.
|
|
358
|
+
*
|
|
359
|
+
* Core surface (exported here):
|
|
360
|
+
* - The `BenchmarkAdapter` contract.
|
|
361
|
+
* - `runBenchmarkAdapter` for campaign-backed benchmark execution.
|
|
362
|
+
* - `calibrateBenchmarkMetric` for weak/strong metric checks.
|
|
363
|
+
* - Standard retrieval parsers for BEIR/MTEB/MS MARCO/TREC/MIRACL-style files.
|
|
364
|
+
* - `deterministicSplit` + `BENCHMARK_SPLIT_SEED` for split assignment.
|
|
365
|
+
* - `routing` — synthetic 16-task router benchmark. The only novel
|
|
366
|
+
* benchmark we built; ships in the package.
|
|
367
|
+
*
|
|
368
|
+
* Example wrappers (under `examples/benchmarks/`, NOT in the bundle):
|
|
369
|
+
* - `gsm8k` — exact-match math reasoning (HF mirror, dataset
|
|
370
|
+
* not bundled).
|
|
371
|
+
* - `swebench-lite` — 30-instance SWE-Bench subset via an external
|
|
372
|
+
* grader command.
|
|
373
|
+
*
|
|
374
|
+
* The example wrappers are reference implementations of `BenchmarkAdapter`.
|
|
375
|
+
* Read them, copy them, adapt them. They're intentionally not in the main
|
|
376
|
+
* entry — every team will configure them differently.
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
declare const index_BENCHMARK_SPLIT_SEED: typeof BENCHMARK_SPLIT_SEED;
|
|
380
|
+
type index_BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string> = BenchmarkAdapter<_TItem, TPayload, TArtifact>;
|
|
381
|
+
type index_BenchmarkDatasetItem<TPayload = unknown> = BenchmarkDatasetItem<TPayload>;
|
|
382
|
+
type index_BenchmarkDistribution = BenchmarkDistribution;
|
|
383
|
+
type index_BenchmarkEvaluation = BenchmarkEvaluation;
|
|
384
|
+
type index_BenchmarkFamily = BenchmarkFamily;
|
|
385
|
+
type index_BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> = BenchmarkMetricCalibrationOptions<TPayload, TArtifact>;
|
|
386
|
+
type index_BenchmarkMetricCalibrationResult = BenchmarkMetricCalibrationResult;
|
|
387
|
+
type index_BenchmarkReport = BenchmarkReport;
|
|
388
|
+
type index_BenchmarkResponder<TPayload = unknown, TArtifact = string> = BenchmarkResponder<TPayload, TArtifact>;
|
|
389
|
+
type index_BenchmarkRunOptions<TPayload = unknown, TArtifact = string> = BenchmarkRunOptions<TPayload, TArtifact>;
|
|
390
|
+
type index_BenchmarkRunResult<TPayload = unknown, TArtifact = string> = BenchmarkRunResult<TPayload, TArtifact>;
|
|
391
|
+
type index_BenchmarkScenario<TPayload = unknown> = BenchmarkScenario<TPayload>;
|
|
392
|
+
type index_BenchmarkSliceSummary = BenchmarkSliceSummary;
|
|
393
|
+
type index_BenchmarkSource = BenchmarkSource;
|
|
394
|
+
type index_BenchmarkTaskKind = BenchmarkTaskKind;
|
|
395
|
+
type index_BuildStandardRetrievalItemsOptions = BuildStandardRetrievalItemsOptions;
|
|
396
|
+
type index_RetrievalIdAdapterOptions = RetrievalIdAdapterOptions;
|
|
397
|
+
type index_StandardRetrievalArtifact = StandardRetrievalArtifact;
|
|
398
|
+
type index_StandardRetrievalDocument = StandardRetrievalDocument;
|
|
399
|
+
type index_StandardRetrievalEvaluationOptions = StandardRetrievalEvaluationOptions;
|
|
400
|
+
type index_StandardRetrievalPayload = StandardRetrievalPayload;
|
|
401
|
+
type index_StandardRetrievalQrel = StandardRetrievalQrel;
|
|
402
|
+
type index_StandardRetrievalQuery = StandardRetrievalQuery;
|
|
403
|
+
type index_StandardRetrievalResult = StandardRetrievalResult;
|
|
404
|
+
declare const index_buildStandardRetrievalItems: typeof buildStandardRetrievalItems;
|
|
405
|
+
declare const index_calibrateBenchmarkMetric: typeof calibrateBenchmarkMetric;
|
|
406
|
+
declare const index_createRetrievalIdBenchmarkAdapter: typeof createRetrievalIdBenchmarkAdapter;
|
|
407
|
+
declare const index_deterministicSplit: typeof deterministicSplit;
|
|
408
|
+
declare const index_evaluateStandardRetrieval: typeof evaluateStandardRetrieval;
|
|
409
|
+
declare const index_normalizeRetrievedDocumentIds: typeof normalizeRetrievedDocumentIds;
|
|
410
|
+
declare const index_parseBeirCorpusJsonl: typeof parseBeirCorpusJsonl;
|
|
411
|
+
declare const index_parseBeirQueriesJsonl: typeof parseBeirQueriesJsonl;
|
|
412
|
+
declare const index_parseJsonlRows: typeof parseJsonlRows;
|
|
413
|
+
declare const index_parseQrels: typeof parseQrels;
|
|
414
|
+
declare const index_parseTsvRows: typeof parseTsvRows;
|
|
415
|
+
declare const index_renderBenchmarkReportMarkdown: typeof renderBenchmarkReportMarkdown;
|
|
416
|
+
declare const index_retrievalMetricsAtCutoff: typeof retrievalMetricsAtCutoff;
|
|
417
|
+
declare const index_runBenchmarkAdapter: typeof runBenchmarkAdapter;
|
|
418
|
+
declare const index_summarizeBenchmarkCampaign: typeof summarizeBenchmarkCampaign;
|
|
419
|
+
declare namespace index {
|
|
420
|
+
export { index_BENCHMARK_SPLIT_SEED as BENCHMARK_SPLIT_SEED, type index_BenchmarkAdapter as BenchmarkAdapter, type index_BenchmarkDatasetItem as BenchmarkDatasetItem, type index_BenchmarkDistribution as BenchmarkDistribution, type index_BenchmarkEvaluation as BenchmarkEvaluation, type index_BenchmarkFamily as BenchmarkFamily, type index_BenchmarkMetricCalibrationOptions as BenchmarkMetricCalibrationOptions, type index_BenchmarkMetricCalibrationResult as BenchmarkMetricCalibrationResult, type index_BenchmarkReport as BenchmarkReport, type index_BenchmarkResponder as BenchmarkResponder, type index_BenchmarkRunOptions as BenchmarkRunOptions, type index_BenchmarkRunResult as BenchmarkRunResult, type index_BenchmarkScenario as BenchmarkScenario, type index_BenchmarkSliceSummary as BenchmarkSliceSummary, type index_BenchmarkSource as BenchmarkSource, type index_BenchmarkTaskKind as BenchmarkTaskKind, type index_BuildStandardRetrievalItemsOptions as BuildStandardRetrievalItemsOptions, type index_RetrievalIdAdapterOptions as RetrievalIdAdapterOptions, type index_StandardRetrievalArtifact as StandardRetrievalArtifact, type index_StandardRetrievalDocument as StandardRetrievalDocument, type index_StandardRetrievalEvaluationOptions as StandardRetrievalEvaluationOptions, type index_StandardRetrievalPayload as StandardRetrievalPayload, type index_StandardRetrievalQrel as StandardRetrievalQrel, type index_StandardRetrievalQuery as StandardRetrievalQuery, type index_StandardRetrievalResult as StandardRetrievalResult, index_buildStandardRetrievalItems as buildStandardRetrievalItems, index_calibrateBenchmarkMetric as calibrateBenchmarkMetric, index_createRetrievalIdBenchmarkAdapter as createRetrievalIdBenchmarkAdapter, index_deterministicSplit as deterministicSplit, index_evaluateStandardRetrieval as evaluateStandardRetrieval, index_normalizeRetrievedDocumentIds as normalizeRetrievedDocumentIds, index_parseBeirCorpusJsonl as parseBeirCorpusJsonl, index_parseBeirQueriesJsonl as parseBeirQueriesJsonl, index_parseJsonlRows as parseJsonlRows, index_parseQrels as parseQrels, index_parseTsvRows as parseTsvRows, index_renderBenchmarkReportMarkdown as renderBenchmarkReportMarkdown, index_retrievalMetricsAtCutoff as retrievalMetricsAtCutoff, index$1 as routing, index_runBenchmarkAdapter as runBenchmarkAdapter, index_summarizeBenchmarkCampaign as summarizeBenchmarkCampaign };
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export { createRetrievalIdBenchmarkAdapter as A, BENCHMARK_SPLIT_SEED as B, evaluateStandardRetrieval as C, normalizeRetrievedDocumentIds as D, parseBeirCorpusJsonl as E, parseBeirQueriesJsonl as F, parseJsonlRows as G, parseQrels as H, parseTsvRows as I, renderBenchmarkReportMarkdown as J, retrievalMetricsAtCutoff as K, index$1 as L, runBenchmarkAdapter as M, summarizeBenchmarkCampaign as N, type RetrievalIdAdapterOptions as R, type StandardRetrievalArtifact as S, type BenchmarkAdapter as a, type BenchmarkDatasetItem as b, type BenchmarkEvaluation as c, type BenchmarkFamily as d, type BenchmarkResponder as e, type BenchmarkScenario as f, type BenchmarkSource as g, type BenchmarkTaskKind as h, deterministicSplit as i, index as j, type BenchmarkDistribution as k, type BenchmarkMetricCalibrationOptions as l, type BenchmarkMetricCalibrationResult as m, type BenchmarkReport as n, type BenchmarkRunOptions as o, type BenchmarkRunResult as p, type BenchmarkSliceSummary as q, type BuildStandardRetrievalItemsOptions as r, type StandardRetrievalDocument as s, type StandardRetrievalEvaluationOptions as t, type StandardRetrievalPayload as u, type StandardRetrievalQrel as v, type StandardRetrievalQuery as w, type StandardRetrievalResult as x, buildStandardRetrievalItems as y, calibrateBenchmarkMetric as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import { A as AgentEvalError, J as JudgeError, a as ConfigError } from './errors
|
|
|
18
18
|
export { b as AgentEvalErrorCode, C as CaptureIntegrityError, N as NotFoundError, R as ReplayError, V as ValidationError, c as VerificationError } from './errors-oeQrLqXC.js';
|
|
19
19
|
import { b as FeedbackLabel, F as FeedbackTrajectoryStore, a as FeedbackTrajectory } from './feedback-trajectory-C9KCo8ag.js';
|
|
20
20
|
export { c as FeedbackArtifactType, d as FeedbackAttempt, e as FeedbackLabelKind, f as FeedbackLabelSource, g as FeedbackOptimizerRow, h as FeedbackOutcome, i as FeedbackReplayAdapter, j as FeedbackReplayResult, k as FeedbackSeverity, l as FeedbackSplitPolicy, m as FeedbackTask, n as FeedbackTrajectoryFilter, o as FileSystemFeedbackTrajectoryStore, I as InMemoryFeedbackTrajectoryStore, P as PreferenceMemoryEntry, p as ProposedSideEffect, q as assignFeedbackSplit, r as controlRunToFeedbackTrajectory, s as createFeedbackTrajectory, t as feedbackTrajectoriesToDatasetScenarios, u as feedbackTrajectoriesToOptimizerRows, v as feedbackTrajectoryToDatasetScenario, w as feedbackTrajectoryToOptimizerRow, x as parseFeedbackTrajectoriesJsonl, y as renderPreferenceMemoryMarkdown, z as replayFeedbackTrajectories, A as replayFeedbackTrajectory, B as serializeFeedbackTrajectoriesJsonl, C as summarizePreferenceMemory, D as withAssignedFeedbackSplit } from './feedback-trajectory-C9KCo8ag.js';
|
|
21
|
-
import { b as CorrectnessChecker } from './pre-registration-
|
|
22
|
-
export { A as ArtifactCheckArtifact, d as ArtifactEventLike, e as ArtifactValidator, f as BackendIntegrityError, B as BackendIntegrityReport, C as CompletionRequirement, a as CompletionVerdict, H as HypothesisManifest, g as HypothesisResult, h as LlmCorrectnessCheckerOpts, L as LlmJudgeDimension, c as LlmJudgeOptions, i as ProducedProposal, P as ProducedState, j as ProposalEventLike, k as RequirementCheck, R as RuntimeEventLike, m as SatisfiedBy, S as SignedManifest, n as SignedManifestAlgo, T as TaskGold, o as ToolCallEventLike, V as ValidationContext, p as ValidationIssue, q as ValidationResult, r as assertRealBackend, s as byteLengthRange, t as canonicalize, u as completionVerdict, v as composeValidators, w as containsAll, x as createLlmCorrectnessChecker, y as createTokenRecallChecker, z as evaluateHypothesis, D as extractProducedState, E as hashJson, F as jsonHasKeys, l as llmJudge, G as parseCorrectnessResponse, I as regexMatch, J as signManifest, K as summarizeBackendIntegrity, M as verifyCompletion, N as verifyManifest } from './pre-registration-
|
|
21
|
+
import { b as CorrectnessChecker } from './pre-registration-BUhVPzE7.js';
|
|
22
|
+
export { A as ArtifactCheckArtifact, d as ArtifactEventLike, e as ArtifactValidator, f as BackendIntegrityError, B as BackendIntegrityReport, C as CompletionRequirement, a as CompletionVerdict, H as HypothesisManifest, g as HypothesisResult, h as LlmCorrectnessCheckerOpts, L as LlmJudgeDimension, c as LlmJudgeOptions, i as ProducedProposal, P as ProducedState, j as ProposalEventLike, k as RequirementCheck, R as RuntimeEventLike, m as SatisfiedBy, S as SignedManifest, n as SignedManifestAlgo, T as TaskGold, o as ToolCallEventLike, V as ValidationContext, p as ValidationIssue, q as ValidationResult, r as assertRealBackend, s as byteLengthRange, t as canonicalize, u as completionVerdict, v as composeValidators, w as containsAll, x as createLlmCorrectnessChecker, y as createTokenRecallChecker, z as evaluateHypothesis, D as extractProducedState, E as hashJson, F as jsonHasKeys, l as llmJudge, G as parseCorrectnessResponse, I as regexMatch, J as signManifest, K as summarizeBackendIntegrity, M as verifyCompletion, N as verifyManifest } from './pre-registration-BUhVPzE7.js';
|
|
23
23
|
export { DataAcquisitionPlan, KnowledgeAcquisitionMode, KnowledgeBundle, KnowledgeFallbackPolicy, KnowledgeFreshness, KnowledgeImportance, KnowledgeReadinessReport, KnowledgeRecommendedAction, KnowledgeRequirement, KnowledgeRequirementCategory, KnowledgeResponsibleSurface, KnowledgeSensitivity, ScoreKnowledgeReadinessOptions, UserQuestion, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, knowledgeReadinessTracePayload, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from './knowledge/index.js';
|
|
24
24
|
import { h as ReleaseConfidenceThresholds, f as ReleaseConfidenceScorecard } from './release-report-DeJpsBiA.js';
|
|
25
25
|
export { A as ActionableSideInfo, o as AsiSeverity, B as BootstrapOptions, a as BootstrapResult, J as JudgeReplayGateArgs, R as ReleaseConfidenceAxis, b as ReleaseConfidenceAxisName, c as ReleaseConfidenceInput, d as ReleaseConfidenceIssue, e as ReleaseConfidenceMetrics, g as ReleaseConfidenceStatus, i as ReleaseTraceEvidence, j as RenderReleaseReportOptions, V as Verdict, k as assertReleaseConfidence, l as bootstrapCi, m as evaluateReleaseConfidence, n as judgeReplayGate, r as renderReleaseReport } from './release-report-DeJpsBiA.js';
|
|
@@ -31,7 +31,7 @@ import { a as AnalyzeTracesInput, A as AnalyzeTracesOptions, b as AnalyzeTracesR
|
|
|
31
31
|
export { c as AnalyzeTracesTurnSnapshot, d as analyzeTraces } from './analyst-C8HHvfJp.js';
|
|
32
32
|
import { a as TraceAnalystSpan } from './store-C1YxJDEK.js';
|
|
33
33
|
export { D as DEFAULT_TRACE_ANALYST_BUDGETS, b as DatasetOverview, E as ErrorCluster, Q as QueryTracesPage, S as SearchSpanResult, c as SearchTraceResult, d as SpanMatchRecord, e as TRACE_ANALYST_TRUNCATION_MARKER_PREFIX, T as TraceAnalysisStore, f as TraceAnalystByteBudgets, g as TraceAnalystFilters, h as TraceAnalystSpanKind, i as TraceAnalystSpanStatus, j as TraceAnalystTraceSummary, V as ViewSpansResult, k as ViewTraceOversized, l as ViewTraceResult } from './store-C1YxJDEK.js';
|
|
34
|
-
import { a as JudgeConfig, J as JudgeScore, S as Scenario$1,
|
|
34
|
+
import { a as JudgeConfig, J as JudgeScore, S as Scenario$1, f as Gate } from './types-BdIv5dvA.js';
|
|
35
35
|
import { A as AnalyzeRunsOptions } from './analyze-runs-DJYpep3L.js';
|
|
36
36
|
import { S as SteeringBundle } from './harness-optimizer-mOl9XX_O.js';
|
|
37
37
|
export { D as DEFAULT_HARNESS_OBJECTIVES, H as HarnessAdapter, a as HarnessExperimentConfig, b as HarnessExperimentResult, c as HarnessIntervention, d as HarnessRunRequest, e as HarnessRunResult, f as HarnessScenario, g as HarnessSelection, h as HarnessVariant, i as HarnessVariantReport, M as MeasurementPolicy, j as SteeringDelta, k as SteeringRolePrompt, W as WorkflowTopology, m as mergeSteeringBundle, r as renderSteeringText, l as runHarnessExperiment, s as selectHarnessVariant, n as summarizeHarnessResults } from './harness-optimizer-mOl9XX_O.js';
|
|
@@ -71,18 +71,19 @@ import { b as Layer, S as Severity, L as LayerResult, c as VerifyContext } from
|
|
|
71
71
|
export { F as Finding, d as LayerStatus, M as MultiLayerVerifier, a as VerificationReport, V as VerifyOptions, g as gradeSemanticStatus } from './multi-layer-verifier-CI4jdX-q.js';
|
|
72
72
|
import { L as LlmClientOptions } from './llm-client-DyqEH4jH.js';
|
|
73
73
|
export { d as LlmCallError, b as LlmCallRequest, c as LlmCallResult, e as LlmClient, f as LlmMessage, g as LlmRouteAssertionError, a as LlmRouteRequirements, h as LlmUsage, i as assertLlmRoute, j as backoffMs, k as callLlm, l as callLlmJson, m as isTransientLlmError, p as probeLlm, s as stripFencedJson } from './llm-client-DyqEH4jH.js';
|
|
74
|
-
export { B as BENCHMARK_SPLIT_SEED, a as BenchmarkAdapter, b as BenchmarkDatasetItem, c as BenchmarkEvaluation, d as
|
|
74
|
+
export { B as BENCHMARK_SPLIT_SEED, a as BenchmarkAdapter, b as BenchmarkDatasetItem, c as BenchmarkEvaluation, d as BenchmarkFamily, e as BenchmarkResponder, f as BenchmarkScenario, g as BenchmarkSource, h as BenchmarkTaskKind, i as benchmarkDeterministicSplit, j as benchmarks } from './index-pPtfoIJO.js';
|
|
75
75
|
export { C as CallbackResearcher, d as CallbackResearcherOptions, e as CampaignFactoryParams, f as CampaignIntegrityPolicy, g as CampaignRunContext, h as CampaignRunOutcome, i as CampaignRunner, j as CampaignScenario, k as CampaignVariant, c as EvalCampaignOptions, b as EvalCampaignResult, E as ExperimentPlan, a as ExperimentResult, l as FailedRun, F as FailureMode, N as NoopResearcher, R as Researcher, S as SteeringChange, r as runEvalCampaign } from './researcher-Wc7dx6GM.js';
|
|
76
76
|
export { G as GainDistributionBin, a as GainDistributionFigureSpec, b as GainDistributionOptions, m as GateDecision, n as GateEvidence, H as HeldOutGate, o as HeldOutGateConfig, q as HeldOutGateRejectionCode, P as ParetoFigureSpec, c as ParetoPoint, R as RESEARCH_REPORT_HARD_PAIR_FLOOR, d as ResearchReport, e as ResearchReportCandidate, f as ResearchReportDecision, g as ResearchReportMethodology, h as ResearchReportOptions, i as ResearchReportRecommendation, S as SummaryTable, j as SummaryTableOptions, k as SummaryTableRow, l as gainHistogram, p as paretoChart, r as researchReport, s as summaryTable } from './summary-report-QMZVe3P-.js';
|
|
77
77
|
export { L as LockedJsonlAppender } from './testing-C21CHsq2.js';
|
|
78
78
|
export { I as InterimReleaseConfidence, a as InterimReleaseConfidenceInput, P as PairedEvalueOptions, b as PairedEvalueSequence, c as PairedEvalueStep, S as SequentialDecision, e as evaluateInterimReleaseConfidence, p as pairedEvalueSequence } from './sequential-5iSVfzl2.js';
|
|
79
|
-
import {
|
|
79
|
+
import { f as GepaProposerConstraints, a as RunImprovementLoopResult } from './gepa-B3x5Ulcv.js';
|
|
80
80
|
export { IntegrityResult, IntegrityViolation, JourneySpec, PerfBaseline, PerfGateResult, PerfRegression, PerfScenario, PerfStat, ScenarioAxes, assertRecordIntegrity, checkRecordIntegrity, expandMatrix, gatePerf, scenarioKey, summarizeRecords } from './perf/index.js';
|
|
81
81
|
export { AgentProfileRuntimeReceipt, ProductBenchmarkArm, ProductBenchmarkArtifactPaths, ProductBenchmarkBudgets, ProductBenchmarkExportOptions, ProductBenchmarkExportResult, ProductBenchmarkManifest, ProductBenchmarkProfileRef, ProductBenchmarkRecord, ProductBenchmarkRepoRef, ProductBenchmarkRunInput, ProductBenchmarkScenario, ProductBenchmarkSingleRunExportOptions, ProductBenchmarkSplit, ProductBenchmarkSubstrateVersions, ProductBenchmarkValidationReport, RuntimeResolution, assertProductBenchmarkRun, buildProductBenchmarkManifest, exportProductBenchmark, exportProductBenchmarkRuns, findProductBenchmarkArtifacts, productBenchmarkIntegrityFailures, productBenchmarkMutableSurfaces, productBenchmarkRepoIdentity, productBenchmarkSplits, readProductBenchmarkManifest, readProductBenchmarkRecords, runRecordToProductBenchmarkRecord, validateProductBenchmarkManifest, validateProductBenchmarkRecord, validateProductBenchmarkRun } from './product-benchmark/index.js';
|
|
82
82
|
import '@ax-llm/ax';
|
|
83
83
|
import 'zod';
|
|
84
84
|
import './insight-report-B4xrdwEK.js';
|
|
85
85
|
import './outcome-store-rnXLEqSn.js';
|
|
86
|
+
import './storage-Dw_f7WMt.js';
|
|
86
87
|
|
|
87
88
|
/**
|
|
88
89
|
* Automated pull-request transports for the production loop.
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,11 @@ import {
|
|
|
50
50
|
validateProductBenchmarkRecord,
|
|
51
51
|
validateProductBenchmarkRun
|
|
52
52
|
} from "./chunk-FOUG2VVS.js";
|
|
53
|
+
import {
|
|
54
|
+
BENCHMARK_SPLIT_SEED,
|
|
55
|
+
benchmarks_exports,
|
|
56
|
+
deterministicSplit
|
|
57
|
+
} from "./chunk-T6W5ADLG.js";
|
|
53
58
|
import {
|
|
54
59
|
CODING_HARNESSES,
|
|
55
60
|
HARNESS_NATIVE_MODEL,
|
|
@@ -72,7 +77,7 @@ import {
|
|
|
72
77
|
llmJudge,
|
|
73
78
|
parseCorrectnessResponse,
|
|
74
79
|
verifyCompletion
|
|
75
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-4VLZEPJ3.js";
|
|
76
81
|
import {
|
|
77
82
|
DEFAULT_MUTATION_PRIMITIVES,
|
|
78
83
|
DEFAULT_RED_TEAM_CORPUS,
|
|
@@ -96,7 +101,7 @@ import {
|
|
|
96
101
|
scoreRedTeamOutput,
|
|
97
102
|
surfaceContentHash,
|
|
98
103
|
toolNamesForRun
|
|
99
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-OVPVM4JC.js";
|
|
100
105
|
import {
|
|
101
106
|
BackendIntegrityError,
|
|
102
107
|
assertRealBackend,
|
|
@@ -116,11 +121,6 @@ import {
|
|
|
116
121
|
isModelPriced,
|
|
117
122
|
resolveModelPricing
|
|
118
123
|
} from "./chunk-VI2UW6B6.js";
|
|
119
|
-
import {
|
|
120
|
-
BENCHMARK_SPLIT_SEED,
|
|
121
|
-
benchmarks_exports,
|
|
122
|
-
deterministicSplit
|
|
123
|
-
} from "./chunk-6QDKWHLS.js";
|
|
124
124
|
import {
|
|
125
125
|
DEFAULT_RULES,
|
|
126
126
|
classifyFailure,
|
|
@@ -228,6 +228,7 @@ import {
|
|
|
228
228
|
import {
|
|
229
229
|
runEvalCampaign
|
|
230
230
|
} from "./chunk-LIEJUH2I.js";
|
|
231
|
+
import "./chunk-N22ZO7FV.js";
|
|
231
232
|
import {
|
|
232
233
|
LlmCallError,
|
|
233
234
|
LlmClient,
|