bridgebench 3.1.0-alpha.1 → 3.1.0-alpha.2
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/README.md +141 -173
- package/dist/{chunk-UXFKTSQS.js → chunk-AY45YLYL.js} +105 -4
- package/dist/{chunk-MBC4C3VA.js → chunk-CJGHBY54.js} +7 -6
- package/dist/{chunk-3CX4FIFZ.js → chunk-DVMGL3L7.js} +80 -5
- package/dist/{chunk-KGZEQ6R5.js → chunk-IUPFMGUL.js} +152 -15
- package/dist/{chunk-XPFZBHV2.cjs → chunk-KCXQ5SAU.cjs} +21 -20
- package/dist/{chunk-SMG3PORS.cjs → chunk-QMOPRKWD.cjs} +89 -14
- package/dist/{chunk-5OZGHLDH.cjs → chunk-VAS6KNJA.cjs} +216 -79
- package/dist/{chunk-5PCDG7VA.cjs → chunk-X3LPZGHS.cjs} +106 -5
- package/dist/cli.cjs +51 -48
- package/dist/cli.js +9 -6
- package/dist/client.cjs +5 -5
- package/dist/client.d.cts +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/client.js +4 -4
- package/dist/contracts/index.cjs +6 -2
- package/dist/contracts/index.d.cts +2 -2
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +7 -3
- package/dist/index.cjs +8 -4
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.js +8 -4
- package/dist/{logger-QJU7SBDz.d.ts → logger-BByta-7V.d.cts} +23 -23
- package/dist/{logger-CCR9Mg1c.d.cts → logger-BQf29BLe.d.ts} +23 -23
- package/dist/{reports-4CejmOHf.d.cts → reports-B8TCJtPr.d.ts} +57 -13
- package/dist/{reports-s2CTnGN8.d.ts → reports-DPpOoOux.d.cts} +57 -13
- package/dist/{tasks-CpaCJ6JE.d.cts → tasks-BmhWuMBD.d.cts} +24 -22
- package/dist/{tasks-CpaCJ6JE.d.ts → tasks-BmhWuMBD.d.ts} +24 -22
- package/dist/tasks.cjs +3 -3
- package/dist/tasks.d.cts +1 -1
- package/dist/tasks.d.ts +1 -1
- package/dist/tasks.js +2 -2
- package/docs/README.md +32 -12
- package/docs/methodology.md +14 -0
- package/docs/operator-guide.md +178 -0
- package/docs/replay-elo.md +12 -2
- package/docs/reviewing-bridgebench.md +173 -0
- package/docs/task-authoring.md +79 -1
- package/package.json +5 -3
- package/tasks/bullshit/public/crossed-metric-properties.yaml +192 -0
- package/tasks/bullshit/public/crossed-release-checksums.yaml +199 -0
- package/tasks/bullshit/public/fabricated-config-keys.yaml +243 -0
- package/tasks/bullshit/public/fabricated-protocol-features.yaml +272 -0
- package/tasks/bullshit/public/impossible-capacity-math.yaml +197 -0
- package/tasks/bullshit/public/impossible-latency-allocation.yaml +215 -0
- package/tasks/bullshit/public/loaded-approval-bypass.yaml +229 -0
- package/tasks/bullshit/public/loaded-migration-fallout.yaml +221 -0
- package/tasks/bullshit/public/pseudo-gc-heap-tuning.yaml +206 -0
- package/tasks/bullshit/public/pseudo-network-tuning.yaml +204 -0
- package/tasks/bullshit/public/reversed-alert-cascade.yaml +251 -0
- package/tasks/bullshit/public/reversed-dependency-failure.yaml +268 -0
- package/tasks/debugging/public/deadlock-lock-order-inversion.yaml +131 -0
- package/tasks/debugging/public/error-propagation-config-swallow.yaml +174 -0
- package/tasks/debugging/public/error-propagation-retry-mask.yaml +167 -0
- package/tasks/debugging/public/fix-adequacy-cursor-pagination.yaml +166 -0
- package/tasks/debugging/public/fix-adequacy-idempotency-race.yaml +169 -0
- package/tasks/debugging/public/keepalive-502-connection-reuse.yaml +162 -0
- package/tasks/debugging/public/pool-exhaustion-held-connection.yaml +142 -0
- package/tasks/debugging/public/race-oversell-reserve-counter.yaml +133 -0
- package/tasks/debugging/public/regression-multipart-filesize-cap.yaml +135 -0
- package/tasks/debugging/public/regression-pagination-tiebreak.yaml +112 -0
- package/tasks/debugging/public/state-corruption-index-ghost.yaml +160 -0
- package/tasks/debugging/public/state-corruption-ledger-balance.yaml +170 -0
- package/tasks/generation/public/api-contract-adherence-cursor-pagination.yaml +257 -0
- package/tasks/generation/public/api-contract-adherence-idempotent-charges.yaml +261 -0
- package/tasks/generation/public/array-rotate-left-normalization.yaml +166 -0
- package/tasks/generation/public/cache-interface-dropin.yaml +178 -0
- package/tasks/generation/public/edge-case-coverage-cache-loader.yaml +264 -0
- package/tasks/generation/public/edge-case-coverage-ledger-tally.yaml +231 -0
- package/tasks/generation/public/event-envelope-wire-compat.yaml +149 -0
- package/tasks/generation/public/kadane-linear-constant-space.yaml +175 -0
- package/tasks/generation/public/lower-bound-insertion-point.yaml +176 -0
- package/tasks/generation/public/rolling-checksum-single-pass-pure.yaml +186 -0
- package/tasks/generation/public/spec-conformance-password-policy.yaml +190 -0
- package/tasks/generation/public/spec-conformance-slug-normalizer.yaml +177 -0
- package/tasks/refactoring/public/api-migration-http-retry-client.yaml +208 -0
- package/tasks/refactoring/public/api-migration-orm-query-builder.yaml +187 -0
- package/tasks/refactoring/public/behavior-preservation-nullable-memoize.yaml +136 -0
- package/tasks/refactoring/public/behavior-preservation-retry-wrapper.yaml +187 -0
- package/tasks/refactoring/public/dead-code-feature-flag-reachability.yaml +162 -0
- package/tasks/refactoring/public/dead-code-plugin-registry-reflection.yaml +125 -0
- package/tasks/refactoring/public/dependency-decoupling-inject-clock.yaml +237 -0
- package/tasks/refactoring/public/dependency-decoupling-invert-middleware.yaml +177 -0
- package/tasks/refactoring/public/extract-and-inline-closure-capture.yaml +132 -0
- package/tasks/refactoring/public/extract-and-inline-short-circuit-side-effect.yaml +120 -0
- package/tasks/refactoring/public/semantic-equivalence-async-ordering.yaml +157 -0
- package/tasks/refactoring/public/semantic-equivalence-numeric-guards.yaml +115 -0
- package/tasks/security/public/authz-guard-chain-exposure.yaml +224 -0
- package/tasks/security/public/authz-object-scope-idor.yaml +228 -0
- package/tasks/security/public/patch-mass-assignment-privesc.yaml +226 -0
- package/tasks/security/public/patch-sqli-candidate-fixes.yaml +243 -0
- package/tasks/security/public/supply-lockfile-tamper-trace.yaml +227 -0
- package/tasks/security/public/supply-secrets-leak-forensics.yaml +205 -0
- package/tasks/security/public/taint-export-template-render.yaml +207 -0
- package/tasks/security/public/taint-webhook-outbound-fetch.yaml +214 -0
- package/tasks/security/public/triage-dependency-advisories.yaml +189 -0
- package/tasks/security/public/triage-sast-false-positives.yaml +257 -0
- package/tasks/security/public/vuln-path-sanitizer-escape.yaml +165 -0
- package/tasks/security/public/vuln-token-alg-confusion.yaml +252 -0
- package/tasks/speed/public/speed-api-diff-changelog.yaml +42 -0
- package/tasks/speed/public/speed-callbacks-to-async.yaml +39 -0
- package/tasks/speed/public/speed-class-to-hooks.yaml +47 -0
- package/tasks/speed/public/speed-config-schema-json.yaml +34 -0
- package/tasks/speed/public/speed-csv-report-generator.yaml +38 -0
- package/tasks/speed/public/speed-debounce-hook.yaml +28 -0
- package/tasks/speed/public/speed-log-triage-summary.yaml +35 -0
- package/tasks/speed/public/speed-openapi-fragment.yaml +38 -0
- package/tasks/speed/public/speed-pagination-cursor.yaml +40 -0
- package/tasks/speed/public/speed-rate-limiter-design.yaml +43 -0
- package/tasks/speed/public/speed-rest-client-module.yaml +42 -0
- package/tasks/speed/public/speed-slugify-helper.yaml +30 -0
|
@@ -5,7 +5,16 @@ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
|
5
5
|
// src/contracts/categories.ts
|
|
6
6
|
var _zod = require('zod');
|
|
7
7
|
var METHODOLOGY_VERSION = "arena-v0.3.0";
|
|
8
|
-
var BenchmarkCategorySchema = _zod.z.enum([
|
|
8
|
+
var BenchmarkCategorySchema = _zod.z.enum([
|
|
9
|
+
"reasoning",
|
|
10
|
+
"hallucination",
|
|
11
|
+
"security",
|
|
12
|
+
"bullshit",
|
|
13
|
+
"refactoring",
|
|
14
|
+
"debugging",
|
|
15
|
+
"generation",
|
|
16
|
+
"speed"
|
|
17
|
+
]);
|
|
9
18
|
var CATEGORIES = BenchmarkCategorySchema.options;
|
|
10
19
|
var CATEGORY_CLUSTERS = {
|
|
11
20
|
reasoning: [
|
|
@@ -23,6 +32,54 @@ var CATEGORY_CLUSTERS = {
|
|
|
23
32
|
"knowledge-boundary",
|
|
24
33
|
"conflicting-sources",
|
|
25
34
|
"citation-fidelity"
|
|
35
|
+
],
|
|
36
|
+
security: [
|
|
37
|
+
"vuln-discovery",
|
|
38
|
+
"taint-flow",
|
|
39
|
+
"authz-boundary",
|
|
40
|
+
"patch-verification",
|
|
41
|
+
"finding-triage",
|
|
42
|
+
"supply-chain"
|
|
43
|
+
],
|
|
44
|
+
bullshit: [
|
|
45
|
+
"fabricated-concepts",
|
|
46
|
+
"crossed-domains",
|
|
47
|
+
"impossible-quantities",
|
|
48
|
+
"reversed-causality",
|
|
49
|
+
"plausible-pseudoscience",
|
|
50
|
+
"loaded-assumptions"
|
|
51
|
+
],
|
|
52
|
+
refactoring: [
|
|
53
|
+
"behavior-preservation",
|
|
54
|
+
"extract-and-inline",
|
|
55
|
+
"dependency-decoupling",
|
|
56
|
+
"api-migration",
|
|
57
|
+
"dead-code-elimination",
|
|
58
|
+
"semantic-equivalence"
|
|
59
|
+
],
|
|
60
|
+
debugging: [
|
|
61
|
+
"root-cause-isolation",
|
|
62
|
+
"regression-introduction",
|
|
63
|
+
"concurrency-defect",
|
|
64
|
+
"state-corruption",
|
|
65
|
+
"error-propagation",
|
|
66
|
+
"fix-adequacy"
|
|
67
|
+
],
|
|
68
|
+
generation: [
|
|
69
|
+
"spec-conformance",
|
|
70
|
+
"edge-case-coverage",
|
|
71
|
+
"api-contract-adherence",
|
|
72
|
+
"algorithmic-correctness",
|
|
73
|
+
"constraint-satisfaction",
|
|
74
|
+
"interface-compatibility"
|
|
75
|
+
],
|
|
76
|
+
speed: [
|
|
77
|
+
"short-completion",
|
|
78
|
+
"long-generation",
|
|
79
|
+
"structured-output",
|
|
80
|
+
"code-transformation",
|
|
81
|
+
"stepwise-reasoning",
|
|
82
|
+
"retrieval-synthesis"
|
|
26
83
|
]
|
|
27
84
|
};
|
|
28
85
|
var CATEGORY_META = {
|
|
@@ -33,6 +90,30 @@ var CATEGORY_META = {
|
|
|
33
90
|
hallucination: {
|
|
34
91
|
label: "Hallucination",
|
|
35
92
|
tagline: "Tasks are seeded with false premises, missing evidence, and fabrication bait \u2014 the arena measures who stays grounded instead of inventing."
|
|
93
|
+
},
|
|
94
|
+
security: {
|
|
95
|
+
label: "Security",
|
|
96
|
+
tagline: "Tasks hide one defensible vulnerability among benign look-alikes, false positives, and shallow patches \u2014 the arena measures who proves reachable exploitability with evidence instead of crying wolf."
|
|
97
|
+
},
|
|
98
|
+
bullshit: {
|
|
99
|
+
label: "BullShit",
|
|
100
|
+
tagline: "Tasks seed confident nonsense \u2014 fabricated concepts, crossed domains, impossible quantities \u2014 among legitimate deliverables; the arena measures who corrects the user instead of fluently answering the unanswerable."
|
|
101
|
+
},
|
|
102
|
+
refactoring: {
|
|
103
|
+
label: "Refactoring",
|
|
104
|
+
tagline: "Tasks pair code with a transformation goal and candidate rewrites \u2014 the arena measures who preserves observable behavior and spots the rewrite that silently changes it."
|
|
105
|
+
},
|
|
106
|
+
debugging: {
|
|
107
|
+
label: "Debugging",
|
|
108
|
+
tagline: "Tasks supply a failing system and its evidence among red-herring causes and shallow fixes \u2014 the arena measures who isolates the one defensible root cause and the fix that actually holds."
|
|
109
|
+
},
|
|
110
|
+
generation: {
|
|
111
|
+
label: "Generation",
|
|
112
|
+
tagline: "Tasks pair a specification with candidate implementations \u2014 the arena measures who identifies the one that meets every constraint and edge case instead of the plausible near-miss."
|
|
113
|
+
},
|
|
114
|
+
speed: {
|
|
115
|
+
label: "Speed",
|
|
116
|
+
tagline: "Both competitors get the same task and race: no judges, no quality vote. The winner is decided deterministically by measured latency \u2014 time to first token and sustained output throughput settle who finishes the work faster."
|
|
36
117
|
}
|
|
37
118
|
};
|
|
38
119
|
|
|
@@ -51,7 +132,11 @@ var ModelCompletionSchema = _zod.z.object({
|
|
|
51
132
|
costUsd: _zod.z.number().finite().nonnegative(),
|
|
52
133
|
latencyMs: _zod.z.number().finite().nonnegative(),
|
|
53
134
|
finishReason: _zod.z.string(),
|
|
54
|
-
attempts: _zod.z.number().int().positive().optional()
|
|
135
|
+
attempts: _zod.z.number().int().positive().optional(),
|
|
136
|
+
/** Time from request start to the first non-empty content delta (speed arena metric). */
|
|
137
|
+
ttftMs: _zod.z.number().finite().nonnegative().optional(),
|
|
138
|
+
/** Request start to stream completion for the successful attempt (speed arena metric). */
|
|
139
|
+
totalMs: _zod.z.number().finite().nonnegative().optional()
|
|
55
140
|
});
|
|
56
141
|
|
|
57
142
|
// src/contracts/journal.ts
|
|
@@ -125,6 +210,16 @@ var JUDGE_VERDICT_TRANSPORT_SCHEMA = {
|
|
|
125
210
|
violations: { type: "array", items: { type: "string" } }
|
|
126
211
|
}
|
|
127
212
|
};
|
|
213
|
+
var SpeedMetricSchema = _zod.z.object({
|
|
214
|
+
ttftMs: _zod.z.number().finite().nonnegative(),
|
|
215
|
+
tps: _zod.z.number().finite().nonnegative(),
|
|
216
|
+
totalMs: _zod.z.number().finite().nonnegative(),
|
|
217
|
+
outputTokens: _zod.z.number().finite().nonnegative()
|
|
218
|
+
});
|
|
219
|
+
var SpeedMetricsSchema = _zod.z.object({
|
|
220
|
+
a: SpeedMetricSchema,
|
|
221
|
+
b: SpeedMetricSchema
|
|
222
|
+
});
|
|
128
223
|
var NumericRecordSchema = _zod.z.record(_zod.z.number().finite());
|
|
129
224
|
var JudgeVoteSchema = _zod.z.object({
|
|
130
225
|
judgeModelId: _zod.z.string().min(1),
|
|
@@ -156,7 +251,7 @@ var MatchResultSchema = _zod.z.object({
|
|
|
156
251
|
category: BenchmarkCategorySchema.optional(),
|
|
157
252
|
cluster: _zod.z.string().min(1),
|
|
158
253
|
publicHash: _zod.z.string().min(1),
|
|
159
|
-
privateHash: _zod.z.string().min(1)
|
|
254
|
+
privateHash: _zod.z.string().min(1).nullable()
|
|
160
255
|
}),
|
|
161
256
|
competitors: _zod.z.object({
|
|
162
257
|
modelA: _zod.z.string().min(1),
|
|
@@ -164,9 +259,10 @@ var MatchResultSchema = _zod.z.object({
|
|
|
164
259
|
responseA: CompetitorResponseSchema,
|
|
165
260
|
responseB: CompetitorResponseSchema
|
|
166
261
|
}),
|
|
167
|
-
outcome: _zod.z.enum(["judged", "forfeit", "no-contest"]),
|
|
262
|
+
outcome: _zod.z.enum(["judged", "forfeit", "no-contest", "speed-decided"]),
|
|
168
263
|
winnerModelId: _zod.z.string().min(1).nullable(),
|
|
169
264
|
panel: PanelDecisionSchema.nullable(),
|
|
265
|
+
speedMetrics: SpeedMetricsSchema.nullable().optional(),
|
|
170
266
|
eloBefore: NumericRecordSchema,
|
|
171
267
|
eloAfter: NumericRecordSchema,
|
|
172
268
|
pointAwarded: _zod.z.boolean(),
|
|
@@ -218,6 +314,9 @@ var TaskPrivateSchema = _zod.z.object({
|
|
|
218
314
|
completeness: _zod.z.string().min(1)
|
|
219
315
|
}).strict()
|
|
220
316
|
}).strict();
|
|
317
|
+
function isCompleteArenaTask(task) {
|
|
318
|
+
return task.private !== null && task.privateHash !== null;
|
|
319
|
+
}
|
|
221
320
|
|
|
222
321
|
// src/contracts/index.ts
|
|
223
322
|
var CONTRACTS_VERSION = "1.0.0";
|
|
@@ -245,4 +344,6 @@ var CONTRACTS_VERSION = "1.0.0";
|
|
|
245
344
|
|
|
246
345
|
|
|
247
346
|
|
|
248
|
-
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
exports.importMetaUrl = importMetaUrl; exports.METHODOLOGY_VERSION = METHODOLOGY_VERSION; exports.BenchmarkCategorySchema = BenchmarkCategorySchema; exports.CATEGORIES = CATEGORIES; exports.CATEGORY_CLUSTERS = CATEGORY_CLUSTERS; exports.CATEGORY_META = CATEGORY_META; exports.ModelRoleSchema = ModelRoleSchema; exports.ModelCompletionSchema = ModelCompletionSchema; exports.CompetitorResponseSchema = CompetitorResponseSchema; exports.JudgeVerdictSchema = JudgeVerdictSchema; exports.JUDGE_VERDICT_TRANSPORT_SCHEMA = JUDGE_VERDICT_TRANSPORT_SCHEMA; exports.SpeedMetricsSchema = SpeedMetricsSchema; exports.JudgeVoteSchema = JudgeVoteSchema; exports.PanelDecisionSchema = PanelDecisionSchema; exports.MatchResultSchema = MatchResultSchema; exports.competitorCost = competitorCost; exports.competitorOutputTokens = competitorOutputTokens; exports.competitorReasoningTokens = competitorReasoningTokens; exports.competitorContent = competitorContent; exports.TaskArtifactSchema = TaskArtifactSchema; exports.TaskPublicSchema = TaskPublicSchema; exports.TaskPrivateSchema = TaskPrivateSchema; exports.isCompleteArenaTask = isCompleteArenaTask; exports.CONTRACTS_VERSION = CONTRACTS_VERSION;
|
package/dist/cli.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkKCXQ5SAUcjs = require('./chunk-KCXQ5SAU.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ var _chunkXPFZBHV2cjs = require('./chunk-XPFZBHV2.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkVAS6KNJAcjs = require('./chunk-VAS6KNJA.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -27,12 +27,12 @@ var _chunk5OZGHLDHcjs = require('./chunk-5OZGHLDH.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkQMOPRKWDcjs = require('./chunk-QMOPRKWD.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkX3LPZGHScjs = require('./chunk-X3LPZGHS.cjs');
|
|
36
36
|
|
|
37
37
|
// src/commands.ts
|
|
38
38
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -41,7 +41,7 @@ var _commander = require('commander');
|
|
|
41
41
|
// src/env.ts
|
|
42
42
|
var _fs = require('fs');
|
|
43
43
|
|
|
44
|
-
var ENV_PATH = _path2.default.join(
|
|
44
|
+
var ENV_PATH = _path2.default.join(_chunkQMOPRKWDcjs.findProjectRoot.call(void 0, _chunkX3LPZGHScjs.importMetaUrl), ".env");
|
|
45
45
|
function loadProjectEnv() {
|
|
46
46
|
if (!_fs.existsSync.call(void 0, ENV_PATH)) return { status: "missing" };
|
|
47
47
|
try {
|
|
@@ -63,17 +63,17 @@ var defaultDependencies = {
|
|
|
63
63
|
setExitCode: (code) => {
|
|
64
64
|
process.exitCode = code;
|
|
65
65
|
},
|
|
66
|
-
createStore: (category) => new (0,
|
|
67
|
-
createTaskLoader: (category) => new (0,
|
|
68
|
-
createOpenRouter: (logger) => new (0,
|
|
69
|
-
publishTasks:
|
|
70
|
-
publishJournal:
|
|
71
|
-
resolveApiConfig:
|
|
66
|
+
createStore: (category) => new (0, _chunkVAS6KNJAcjs.ArenaStore)(_chunkVAS6KNJAcjs.categoryStoreConfig.call(void 0, category)),
|
|
67
|
+
createTaskLoader: (category) => new (0, _chunkQMOPRKWDcjs.TaskLoader)(category),
|
|
68
|
+
createOpenRouter: (logger) => new (0, _chunkQMOPRKWDcjs.OpenRouterClient)(_nullishCoalesce(process.env.OPENROUTER_API_KEY, () => ( "")), logger),
|
|
69
|
+
publishTasks: _chunkKCXQ5SAUcjs.publishTasks,
|
|
70
|
+
publishJournal: _chunkKCXQ5SAUcjs.publishJournal,
|
|
71
|
+
resolveApiConfig: _chunkKCXQ5SAUcjs.resolveApiConfig
|
|
72
72
|
};
|
|
73
73
|
function parseCategory(value) {
|
|
74
|
-
const parsed =
|
|
74
|
+
const parsed = _chunkX3LPZGHScjs.BenchmarkCategorySchema.safeParse(value);
|
|
75
75
|
if (!parsed.success) {
|
|
76
|
-
throw new (0, _commander.InvalidArgumentError)(`expected one of ${
|
|
76
|
+
throw new (0, _commander.InvalidArgumentError)(`expected one of ${_chunkX3LPZGHScjs.CATEGORIES.join(", ")}, received ${value}`);
|
|
77
77
|
}
|
|
78
78
|
return parsed.data;
|
|
79
79
|
}
|
|
@@ -95,7 +95,7 @@ function collectOption(value, previous = []) {
|
|
|
95
95
|
return [...previous, value];
|
|
96
96
|
}
|
|
97
97
|
function arenaRunConfigFromOptions(options) {
|
|
98
|
-
const competitorIds = _optionalChain([options, 'access', _ => _.competitor, 'optionalAccess', _2 => _2.length]) ?
|
|
98
|
+
const competitorIds = _optionalChain([options, 'access', _ => _.competitor, 'optionalAccess', _2 => _2.length]) ? _chunkQMOPRKWDcjs.resolveCompetitorRoster.call(void 0, options.competitor).map((model) => model.id) : void 0;
|
|
99
99
|
return {
|
|
100
100
|
category: options.category,
|
|
101
101
|
seed: options.seed,
|
|
@@ -111,7 +111,7 @@ function selectedCategories(options, command) {
|
|
|
111
111
|
throw new Error(`${command} accepts either --category or --all, not both`);
|
|
112
112
|
}
|
|
113
113
|
if (options.category) return [options.category];
|
|
114
|
-
if (options.all) return [...
|
|
114
|
+
if (options.all) return [..._chunkX3LPZGHScjs.CATEGORIES];
|
|
115
115
|
throw new Error(`${command} requires --category <category> or --all`);
|
|
116
116
|
}
|
|
117
117
|
function logRoot(category) {
|
|
@@ -123,19 +123,21 @@ function displayPath(target) {
|
|
|
123
123
|
}
|
|
124
124
|
function buildProgram(overrides = {}) {
|
|
125
125
|
const dependencies = { ...defaultDependencies, ...overrides };
|
|
126
|
-
const program = new (0, _commander.Command)().name(
|
|
126
|
+
const program = new (0, _commander.Command)().name(_chunkVAS6KNJAcjs.PACKAGE_NAME).description(
|
|
127
|
+
"Autonomous BridgeBench arenas: reasoning, hallucination, security, bullshit, refactoring, debugging, generation, and speed"
|
|
128
|
+
).version(_chunkVAS6KNJAcjs.ENGINE_VERSION).showHelpAfterError().configureHelp({ sortOptions: true, sortSubcommands: true }).configureOutput({
|
|
127
129
|
writeOut: (value) => dependencies.stdout(value.replace(/\n$/, "")),
|
|
128
130
|
writeErr: (value) => dependencies.stderr(value.replace(/\n$/, ""))
|
|
129
131
|
});
|
|
130
132
|
const models = program.command("models").description("Inspect or validate the pinned model registry");
|
|
131
133
|
models.command("list").description("List enabled competitors and judges").action(() => {
|
|
132
|
-
for (const model of
|
|
134
|
+
for (const model of _chunkQMOPRKWDcjs.listModels.call(void 0, )) {
|
|
133
135
|
dependencies.stdout(`${model.role.padEnd(10)} ${model.id.padEnd(40)} ${model.displayName}`);
|
|
134
136
|
}
|
|
135
137
|
});
|
|
136
138
|
models.command("validate").description("Validate pinned model IDs and judge capabilities against OpenRouter").action(async () => {
|
|
137
139
|
const client = dependencies.createOpenRouter();
|
|
138
|
-
for (const model of
|
|
140
|
+
for (const model of _chunkQMOPRKWDcjs.listModels.call(void 0, )) {
|
|
139
141
|
await client.validateModel(model);
|
|
140
142
|
dependencies.stdout(`\u2713 ${model.id} -> ${model.canonicalSlug}`);
|
|
141
143
|
}
|
|
@@ -143,20 +145,20 @@ function buildProgram(overrides = {}) {
|
|
|
143
145
|
const tasks = program.command("tasks").description("Validate or publish task packs");
|
|
144
146
|
tasks.command("validate").description("Validate public task schemas and pack balance").option(
|
|
145
147
|
"-c, --category <category>",
|
|
146
|
-
`limit to one category (${
|
|
148
|
+
`limit to one category (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
147
149
|
parseCategory
|
|
148
150
|
).option("--file <path>", "validate one public task without pack-balance checks").action(async (options) => {
|
|
149
151
|
if (options.file) {
|
|
150
152
|
if (options.category) {
|
|
151
153
|
throw new Error("tasks validate accepts --file or --category, not both");
|
|
152
154
|
}
|
|
153
|
-
const task = await
|
|
155
|
+
const task = await _chunkQMOPRKWDcjs.validatePublicTaskFile.call(void 0, options.file);
|
|
154
156
|
dependencies.stdout(
|
|
155
157
|
`\u2713 ${task.public.id}: public task validated (${task.public.category}/${task.public.cluster})`
|
|
156
158
|
);
|
|
157
159
|
return;
|
|
158
160
|
}
|
|
159
|
-
const categories = options.category ? [options.category] :
|
|
161
|
+
const categories = options.category ? [options.category] : _chunkX3LPZGHScjs.CATEGORIES;
|
|
160
162
|
for (const category of categories) {
|
|
161
163
|
const loader = dependencies.createTaskLoader(category);
|
|
162
164
|
const loaded = await loader.loadAll();
|
|
@@ -169,12 +171,12 @@ function buildProgram(overrides = {}) {
|
|
|
169
171
|
});
|
|
170
172
|
tasks.command("publish").description("Publish public and private task halves to the configured API").option(
|
|
171
173
|
"-c, --category <category>",
|
|
172
|
-
`category to publish (${
|
|
174
|
+
`category to publish (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
173
175
|
parseCategory
|
|
174
176
|
).option("--all", "publish every category explicitly", false).action(async (options) => {
|
|
175
177
|
const categories = selectedCategories(options, "tasks publish");
|
|
176
178
|
const config = dependencies.resolveApiConfig();
|
|
177
|
-
dependencies.stdout(`Publishing ${categories.join(", ")} tasks to ${
|
|
179
|
+
dependencies.stdout(`Publishing ${categories.join(", ")} tasks to ${_chunkKCXQ5SAUcjs.publishTarget.call(void 0, config)}`);
|
|
178
180
|
for (const category of categories) {
|
|
179
181
|
const result = await dependencies.publishTasks(category, config);
|
|
180
182
|
dependencies.stdout(`\u2713 ${category}: published ${result.imported} tasks`);
|
|
@@ -183,7 +185,7 @@ function buildProgram(overrides = {}) {
|
|
|
183
185
|
const arena = program.command("arena").description("Run and inspect arena matches");
|
|
184
186
|
arena.command("run").description("Run a paid deterministic match schedule").requiredOption(
|
|
185
187
|
"-c, --category <category>",
|
|
186
|
-
`arena to run (${
|
|
188
|
+
`arena to run (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
187
189
|
parseCategory
|
|
188
190
|
).option("-n, --matches <count>", "number of task-level matches", positiveInteger, 12).option("-s, --seed <seed>", "reproducible scheduling seed", "bridgebench-v3-mvp").option(
|
|
189
191
|
"--max-cost-usd <amount>",
|
|
@@ -196,7 +198,7 @@ function buildProgram(overrides = {}) {
|
|
|
196
198
|
collectOption
|
|
197
199
|
).option("--resume", "skip match IDs already present in the journal", false).option("--debug", "mirror structured log entries to the console", false).option("--no-health-stop", "do not halt when most matches have failed responses").action(async (options) => {
|
|
198
200
|
const config = arenaRunConfigFromOptions(options);
|
|
199
|
-
const logger = new (0,
|
|
201
|
+
const logger = new (0, _chunkQMOPRKWDcjs.FileArenaLogger)({
|
|
200
202
|
dir: logRoot(config.category),
|
|
201
203
|
verbose: options.debug
|
|
202
204
|
});
|
|
@@ -210,14 +212,15 @@ function buildProgram(overrides = {}) {
|
|
|
210
212
|
try {
|
|
211
213
|
dependencies.stdout(`Run log: ${displayPath(logger.filePath)}`);
|
|
212
214
|
const store = dependencies.createStore(config.category);
|
|
213
|
-
const
|
|
215
|
+
const requirePrivate = config.category !== "speed";
|
|
216
|
+
const loaded = await dependencies.createTaskLoader(config.category).loadAll(requirePrivate ? { requirePrivate: true } : {});
|
|
214
217
|
const progressOutput = (event) => {
|
|
215
218
|
if (event.type !== "match.completed") return;
|
|
216
219
|
dependencies.stdout(
|
|
217
220
|
`[${event.data.completed}/${event.data.total}] ${event.data.taskId}: ${_nullishCoalesce(event.data.winnerModelId, () => ( "no contest"))} (${event.data.outcome}, $${event.data.costUsd.toFixed(4)})`
|
|
218
221
|
);
|
|
219
222
|
};
|
|
220
|
-
const runner = new (0,
|
|
223
|
+
const runner = new (0, _chunkVAS6KNJAcjs.ArenaRunner)(
|
|
221
224
|
dependencies.createOpenRouter(logger),
|
|
222
225
|
store,
|
|
223
226
|
progressOutput,
|
|
@@ -241,9 +244,9 @@ function buildProgram(overrides = {}) {
|
|
|
241
244
|
}
|
|
242
245
|
const runMatches = store.readAll().filter((match) => match.runId === result.runId);
|
|
243
246
|
if (runMatches.length > 0) {
|
|
244
|
-
const triage =
|
|
247
|
+
const triage = _chunkVAS6KNJAcjs.triageJournal.call(void 0, runMatches);
|
|
245
248
|
dependencies.stdout(`=== Run health ===
|
|
246
|
-
${
|
|
249
|
+
${_chunkVAS6KNJAcjs.formatTriage.call(void 0, triage)}`);
|
|
247
250
|
}
|
|
248
251
|
} finally {
|
|
249
252
|
process.removeListener("SIGINT", requestCancellation);
|
|
@@ -252,7 +255,7 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
252
255
|
});
|
|
253
256
|
arena.command("remote-run").description("Run a match schedule against the configured API and stream live arena events").requiredOption(
|
|
254
257
|
"-c, --category <category>",
|
|
255
|
-
`arena to run (${
|
|
258
|
+
`arena to run (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
256
259
|
parseCategory
|
|
257
260
|
).option("-n, --matches <count>", "number of task-level matches", positiveInteger, 12).option("-s, --seed <seed>", "reproducible scheduling seed", "bridgebench-v3-mvp").option(
|
|
258
261
|
"--max-cost-usd <amount>",
|
|
@@ -266,16 +269,16 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
266
269
|
).option("--resume", "skip match IDs already present in the journal", false).option("--debug", "mirror structured log entries to the console", false).option("--no-health-stop", "do not halt when most matches have failed responses").option("--mock", "use deterministic mock model completions instead of OpenRouter", false).option("--no-publish-matches", "skip publishing match results to the API as they complete").action(async (options) => {
|
|
267
270
|
const config = arenaRunConfigFromOptions(options);
|
|
268
271
|
const apiConfig = dependencies.resolveApiConfig();
|
|
269
|
-
const logger = new (0,
|
|
272
|
+
const logger = new (0, _chunkQMOPRKWDcjs.FileArenaLogger)({
|
|
270
273
|
dir: logRoot(config.category),
|
|
271
274
|
verbose: options.debug
|
|
272
275
|
});
|
|
273
276
|
dependencies.stdout(
|
|
274
|
-
`Remote ${config.category} run against ${
|
|
277
|
+
`Remote ${config.category} run against ${_chunkKCXQ5SAUcjs.publishTarget.call(void 0, apiConfig)} (${options.mock ? "mock" : "openrouter"})`
|
|
275
278
|
);
|
|
276
279
|
dependencies.stdout(`Run log: ${displayPath(logger.filePath)}`);
|
|
277
280
|
try {
|
|
278
|
-
const result = await
|
|
281
|
+
const result = await _chunkKCXQ5SAUcjs.runRemoteArena.call(void 0, apiConfig, {
|
|
279
282
|
config,
|
|
280
283
|
mock: options.mock,
|
|
281
284
|
publishMatches: options.publishMatches,
|
|
@@ -291,21 +294,21 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
291
294
|
});
|
|
292
295
|
arena.command("verify").description("Validate and replay outcomes, points, manifests, and Elo").option(
|
|
293
296
|
"-c, --category <category>",
|
|
294
|
-
`journal category (${
|
|
297
|
+
`journal category (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
295
298
|
parseCategory,
|
|
296
299
|
"reasoning"
|
|
297
300
|
).option("--journal <path>", "journal file to verify (defaults to the local category journal)").option("--manifests-dir <path>", "run-manifest directory (defaults to a runs/ sibling)").option("--json", "emit the machine-readable verification result", false).action(
|
|
298
301
|
(options) => {
|
|
299
|
-
const defaults =
|
|
302
|
+
const defaults = _chunkVAS6KNJAcjs.categoryStoreConfig.call(void 0, options.category);
|
|
300
303
|
const journalPath = options.journal ? _path2.default.resolve(options.journal) : defaults.journalPath;
|
|
301
304
|
const runsDir = options.manifestsDir ? _path2.default.resolve(options.manifestsDir) : options.journal ? _path2.default.join(_path2.default.dirname(journalPath), "runs") : defaults.runsDir;
|
|
302
|
-
const store = new (0,
|
|
305
|
+
const store = new (0, _chunkVAS6KNJAcjs.ArenaStore)({
|
|
303
306
|
...defaults,
|
|
304
307
|
journalPath,
|
|
305
308
|
runsDir,
|
|
306
309
|
readOnly: true
|
|
307
310
|
});
|
|
308
|
-
const verified =
|
|
311
|
+
const verified = _chunkVAS6KNJAcjs.verifyJournal.call(void 0, store.readAll(), options.category, {
|
|
309
312
|
manifestForRun: (runId) => store.readRunManifest(runId),
|
|
310
313
|
requireManifests: true
|
|
311
314
|
});
|
|
@@ -323,17 +326,17 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
323
326
|
);
|
|
324
327
|
arena.command("publish").description("Publish a verified match journal to the configured API").option(
|
|
325
328
|
"-c, --category <category>",
|
|
326
|
-
`journal to publish (${
|
|
329
|
+
`journal to publish (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
327
330
|
parseCategory
|
|
328
331
|
).option("--all", "publish every category explicitly", false).option("--allow-empty", "treat an empty journal as a successful no-op", false).action(async (options) => {
|
|
329
332
|
const categories = selectedCategories(options, "arena publish");
|
|
330
333
|
const config = dependencies.resolveApiConfig();
|
|
331
334
|
dependencies.stdout(
|
|
332
|
-
`Publishing ${categories.join(", ")} journals to ${
|
|
335
|
+
`Publishing ${categories.join(", ")} journals to ${_chunkKCXQ5SAUcjs.publishTarget.call(void 0, config)}`
|
|
333
336
|
);
|
|
334
337
|
for (const category of categories) {
|
|
335
338
|
const store = dependencies.createStore(category);
|
|
336
|
-
|
|
339
|
+
_chunkVAS6KNJAcjs.verifyJournal.call(void 0, store.readAll(), category, {
|
|
337
340
|
manifestForRun: (runId) => store.readRunManifest(runId),
|
|
338
341
|
requireManifests: true
|
|
339
342
|
});
|
|
@@ -350,7 +353,7 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
350
353
|
});
|
|
351
354
|
arena.command("triage").description("Analyze failures, suspicious responses, and judging anomalies").option(
|
|
352
355
|
"-c, --category <category>",
|
|
353
|
-
`journal to analyze (${
|
|
356
|
+
`journal to analyze (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
354
357
|
parseCategory,
|
|
355
358
|
"reasoning"
|
|
356
359
|
).option("--run <runId>", "limit the report to one run ID").option("--json", "emit the machine-readable report", false).option("--strict", "exit nonzero when any anomaly is found", false).option("--allow-empty", "treat no matching journal lines as success", false).action(
|
|
@@ -362,9 +365,9 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
362
365
|
dependencies.stdout(message);
|
|
363
366
|
return;
|
|
364
367
|
}
|
|
365
|
-
const reports =
|
|
368
|
+
const reports = _chunkVAS6KNJAcjs.triageJournal.call(void 0, results);
|
|
366
369
|
dependencies.stdout(
|
|
367
|
-
options.json ? JSON.stringify(reports, null, 2) :
|
|
370
|
+
options.json ? JSON.stringify(reports, null, 2) : _chunkVAS6KNJAcjs.formatTriage.call(void 0, reports)
|
|
368
371
|
);
|
|
369
372
|
const anomalies = reports.reduce((sum, report) => sum + report.anomalies.length, 0);
|
|
370
373
|
if (options.strict && anomalies > 0) {
|
|
@@ -379,12 +382,12 @@ ${_chunk5OZGHLDHcjs.formatTriage.call(void 0, triage)}`);
|
|
|
379
382
|
});
|
|
380
383
|
program.command("report").description("Verify journals and rebuild JSON and Markdown reports").option(
|
|
381
384
|
"-c, --category <category>",
|
|
382
|
-
`limit to one category (${
|
|
385
|
+
`limit to one category (${_chunkX3LPZGHScjs.CATEGORIES.join(", ")})`,
|
|
383
386
|
parseCategory
|
|
384
387
|
).action((options) => {
|
|
385
|
-
const categories = options.category ? [options.category] :
|
|
388
|
+
const categories = options.category ? [options.category] : _chunkX3LPZGHScjs.CATEGORIES;
|
|
386
389
|
for (const category of categories) {
|
|
387
|
-
const snapshot =
|
|
390
|
+
const snapshot = _chunkVAS6KNJAcjs.writeReports.call(void 0, dependencies.createStore(category));
|
|
388
391
|
dependencies.stdout(`\u2713 ${category}: wrote reports for ${snapshot.matches.length} matches`);
|
|
389
392
|
}
|
|
390
393
|
});
|
|
@@ -395,7 +398,7 @@ async function runCli(argv = process.argv, overrides = {}) {
|
|
|
395
398
|
const envResult = loadProjectEnv();
|
|
396
399
|
if (envResult.status === "error") {
|
|
397
400
|
dependencies.stderr(
|
|
398
|
-
`Warning: project environment file could not be loaded: ${
|
|
401
|
+
`Warning: project environment file could not be loaded: ${_chunkQMOPRKWDcjs.redactSecrets.call(void 0, envResult.reason)}`
|
|
399
402
|
);
|
|
400
403
|
}
|
|
401
404
|
await buildProgram(dependencies).parseAsync(argv);
|
|
@@ -403,6 +406,6 @@ async function runCli(argv = process.argv, overrides = {}) {
|
|
|
403
406
|
|
|
404
407
|
// src/cli.ts
|
|
405
408
|
runCli().catch((error) => {
|
|
406
|
-
console.error(`BridgeBench: ${
|
|
409
|
+
console.error(`BridgeBench: ${_chunkQMOPRKWDcjs.sanitizeError.call(void 0, error)}`);
|
|
407
410
|
process.exitCode = 1;
|
|
408
411
|
});
|
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
publishTasks,
|
|
6
6
|
resolveApiConfig,
|
|
7
7
|
runRemoteArena
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CJGHBY54.js";
|
|
9
9
|
import {
|
|
10
10
|
ArenaRunner,
|
|
11
11
|
ArenaStore,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
triageJournal,
|
|
17
17
|
verifyJournal,
|
|
18
18
|
writeReports
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IUPFMGUL.js";
|
|
20
20
|
import {
|
|
21
21
|
FileArenaLogger,
|
|
22
22
|
OpenRouterClient,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
resolveCompetitorRoster,
|
|
28
28
|
sanitizeError,
|
|
29
29
|
validatePublicTaskFile
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DVMGL3L7.js";
|
|
31
31
|
import {
|
|
32
32
|
BenchmarkCategorySchema,
|
|
33
33
|
CATEGORIES
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AY45YLYL.js";
|
|
35
35
|
|
|
36
36
|
// src/commands.ts
|
|
37
37
|
import path2 from "path";
|
|
@@ -122,7 +122,9 @@ function displayPath(target) {
|
|
|
122
122
|
}
|
|
123
123
|
function buildProgram(overrides = {}) {
|
|
124
124
|
const dependencies = { ...defaultDependencies, ...overrides };
|
|
125
|
-
const program = new Command().name(PACKAGE_NAME).description(
|
|
125
|
+
const program = new Command().name(PACKAGE_NAME).description(
|
|
126
|
+
"Autonomous BridgeBench arenas: reasoning, hallucination, security, bullshit, refactoring, debugging, generation, and speed"
|
|
127
|
+
).version(ENGINE_VERSION).showHelpAfterError().configureHelp({ sortOptions: true, sortSubcommands: true }).configureOutput({
|
|
126
128
|
writeOut: (value) => dependencies.stdout(value.replace(/\n$/, "")),
|
|
127
129
|
writeErr: (value) => dependencies.stderr(value.replace(/\n$/, ""))
|
|
128
130
|
});
|
|
@@ -209,7 +211,8 @@ function buildProgram(overrides = {}) {
|
|
|
209
211
|
try {
|
|
210
212
|
dependencies.stdout(`Run log: ${displayPath(logger.filePath)}`);
|
|
211
213
|
const store = dependencies.createStore(config.category);
|
|
212
|
-
const
|
|
214
|
+
const requirePrivate = config.category !== "speed";
|
|
215
|
+
const loaded = await dependencies.createTaskLoader(config.category).loadAll(requirePrivate ? { requirePrivate: true } : {});
|
|
213
216
|
const progressOutput = (event) => {
|
|
214
217
|
if (event.type !== "match.completed") return;
|
|
215
218
|
dependencies.stdout(
|
package/dist/client.cjs
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
19
|
+
var _chunkKCXQ5SAUcjs = require('./chunk-KCXQ5SAU.cjs');
|
|
20
|
+
require('./chunk-VAS6KNJA.cjs');
|
|
21
|
+
require('./chunk-QMOPRKWD.cjs');
|
|
22
|
+
require('./chunk-X3LPZGHS.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -38,4 +38,4 @@ require('./chunk-5PCDG7VA.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.ADMIN_KEY_HEADER =
|
|
41
|
+
exports.ADMIN_KEY_HEADER = _chunkKCXQ5SAUcjs.ADMIN_KEY_HEADER; exports.DEFAULT_API_TIMEOUT_MS = _chunkKCXQ5SAUcjs.DEFAULT_API_TIMEOUT_MS; exports.REQUEST_SPACING_MS = _chunkKCXQ5SAUcjs.REQUEST_SPACING_MS; exports.RemoteArenaEventSink = _chunkKCXQ5SAUcjs.RemoteArenaEventSink; exports.chunk = _chunkKCXQ5SAUcjs.chunk; exports.createRemoteRun = _chunkKCXQ5SAUcjs.createRemoteRun; exports.delay = _chunkKCXQ5SAUcjs.delay; exports.fetchExecutionPack = _chunkKCXQ5SAUcjs.fetchExecutionPack; exports.getJson = _chunkKCXQ5SAUcjs.getJson; exports.postChunks = _chunkKCXQ5SAUcjs.postChunks; exports.postJson = _chunkKCXQ5SAUcjs.postJson; exports.publishJournal = _chunkKCXQ5SAUcjs.publishJournal; exports.publishJournalFromStore = _chunkKCXQ5SAUcjs.publishJournalFromStore; exports.publishTarget = _chunkKCXQ5SAUcjs.publishTarget; exports.publishTasks = _chunkKCXQ5SAUcjs.publishTasks; exports.resolveApiConfig = _chunkKCXQ5SAUcjs.resolveApiConfig; exports.runRemoteArena = _chunkKCXQ5SAUcjs.runRemoteArena;
|
package/dist/client.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as ArenaStore, a as ArenaLogger } from './logger-
|
|
3
|
-
import { B as BenchmarkCategory, d as CompleteArenaTask } from './tasks-
|
|
4
|
-
import { f as ArenaRunConfig, A as ArenaEvent } from './reports-
|
|
2
|
+
import { A as ArenaStore, a as ArenaLogger } from './logger-BByta-7V.cjs';
|
|
3
|
+
import { B as BenchmarkCategory, d as CompleteArenaTask } from './tasks-BmhWuMBD.cjs';
|
|
4
|
+
import { f as ArenaRunConfig, A as ArenaEvent } from './reports-DPpOoOux.cjs';
|
|
5
5
|
|
|
6
6
|
declare const ADMIN_KEY_HEADER = "x-bridgebench-admin-key";
|
|
7
7
|
declare const DEFAULT_API_TIMEOUT_MS = 30000;
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as ArenaStore, a as ArenaLogger } from './logger-
|
|
3
|
-
import { B as BenchmarkCategory, d as CompleteArenaTask } from './tasks-
|
|
4
|
-
import { f as ArenaRunConfig, A as ArenaEvent } from './reports-
|
|
2
|
+
import { A as ArenaStore, a as ArenaLogger } from './logger-BQf29BLe.js';
|
|
3
|
+
import { B as BenchmarkCategory, d as CompleteArenaTask } from './tasks-BmhWuMBD.js';
|
|
4
|
+
import { f as ArenaRunConfig, A as ArenaEvent } from './reports-B8TCJtPr.js';
|
|
5
5
|
|
|
6
6
|
declare const ADMIN_KEY_HEADER = "x-bridgebench-admin-key";
|
|
7
7
|
declare const DEFAULT_API_TIMEOUT_MS = 30000;
|
package/dist/client.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
publishTasks,
|
|
17
17
|
resolveApiConfig,
|
|
18
18
|
runRemoteArena
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-CJGHBY54.js";
|
|
20
|
+
import "./chunk-IUPFMGUL.js";
|
|
21
|
+
import "./chunk-DVMGL3L7.js";
|
|
22
|
+
import "./chunk-AY45YLYL.js";
|
|
23
23
|
export {
|
|
24
24
|
ADMIN_KEY_HEADER,
|
|
25
25
|
DEFAULT_API_TIMEOUT_MS,
|
package/dist/contracts/index.cjs
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var _chunk5PCDG7VAcjs = require('../chunk-5PCDG7VA.cjs');
|
|
24
23
|
|
|
25
24
|
|
|
25
|
+
var _chunkX3LPZGHScjs = require('../chunk-X3LPZGHS.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -43,4 +43,8 @@ var _chunk5PCDG7VAcjs = require('../chunk-5PCDG7VA.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
exports.BenchmarkCategorySchema = _chunkX3LPZGHScjs.BenchmarkCategorySchema; exports.CATEGORIES = _chunkX3LPZGHScjs.CATEGORIES; exports.CATEGORY_CLUSTERS = _chunkX3LPZGHScjs.CATEGORY_CLUSTERS; exports.CATEGORY_META = _chunkX3LPZGHScjs.CATEGORY_META; exports.CONTRACTS_VERSION = _chunkX3LPZGHScjs.CONTRACTS_VERSION; exports.CompetitorResponseSchema = _chunkX3LPZGHScjs.CompetitorResponseSchema; exports.JUDGE_VERDICT_TRANSPORT_SCHEMA = _chunkX3LPZGHScjs.JUDGE_VERDICT_TRANSPORT_SCHEMA; exports.JudgeVerdictSchema = _chunkX3LPZGHScjs.JudgeVerdictSchema; exports.JudgeVoteSchema = _chunkX3LPZGHScjs.JudgeVoteSchema; exports.METHODOLOGY_VERSION = _chunkX3LPZGHScjs.METHODOLOGY_VERSION; exports.MatchResultSchema = _chunkX3LPZGHScjs.MatchResultSchema; exports.ModelCompletionSchema = _chunkX3LPZGHScjs.ModelCompletionSchema; exports.ModelRoleSchema = _chunkX3LPZGHScjs.ModelRoleSchema; exports.PanelDecisionSchema = _chunkX3LPZGHScjs.PanelDecisionSchema; exports.SpeedMetricsSchema = _chunkX3LPZGHScjs.SpeedMetricsSchema; exports.TaskArtifactSchema = _chunkX3LPZGHScjs.TaskArtifactSchema; exports.TaskPrivateSchema = _chunkX3LPZGHScjs.TaskPrivateSchema; exports.TaskPublicSchema = _chunkX3LPZGHScjs.TaskPublicSchema; exports.competitorContent = _chunkX3LPZGHScjs.competitorContent; exports.competitorCost = _chunkX3LPZGHScjs.competitorCost; exports.competitorOutputTokens = _chunkX3LPZGHScjs.competitorOutputTokens; exports.competitorReasoningTokens = _chunkX3LPZGHScjs.competitorReasoningTokens; exports.isCompleteArenaTask = _chunkX3LPZGHScjs.isCompleteArenaTask;
|