bridgebench 3.1.0-alpha.0 → 3.1.0-alpha.1
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/{chunk-JTVNKSMO.js → chunk-3CX4FIFZ.js} +1 -2
- package/dist/{chunk-NJTYVNP4.cjs → chunk-5OZGHLDH.cjs} +49 -50
- package/dist/{chunk-CIXITJW6.cjs → chunk-5PCDG7VA.cjs} +0 -1
- package/dist/{chunk-EQHRUV2I.js → chunk-KGZEQ6R5.js} +2 -3
- package/dist/{chunk-LFKEV2YL.js → chunk-MBC4C3VA.js} +3 -4
- package/dist/{chunk-4TWPCPRP.cjs → chunk-SMG3PORS.cjs} +10 -11
- package/dist/{chunk-UECBSKTD.js → chunk-UXFKTSQS.js} +0 -1
- package/dist/{chunk-7YCJSOK7.cjs → chunk-XPFZBHV2.cjs} +18 -19
- package/dist/cli.cjs +47 -48
- package/dist/cli.js +4 -5
- package/dist/client.cjs +5 -6
- package/dist/client.js +4 -5
- package/dist/contracts/index.cjs +2 -3
- package/dist/contracts/index.js +1 -2
- package/dist/index.cjs +4 -5
- package/dist/index.js +3 -4
- package/dist/tasks.cjs +3 -4
- package/dist/tasks.js +2 -3
- package/package.json +1 -1
- package/dist/chunk-4TWPCPRP.cjs.map +0 -1
- package/dist/chunk-7YCJSOK7.cjs.map +0 -1
- package/dist/chunk-CIXITJW6.cjs.map +0 -1
- package/dist/chunk-EQHRUV2I.js.map +0 -1
- package/dist/chunk-JTVNKSMO.js.map +0 -1
- package/dist/chunk-LFKEV2YL.js.map +0 -1
- package/dist/chunk-NJTYVNP4.cjs.map +0 -1
- package/dist/chunk-UECBSKTD.js.map +0 -1
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/client.cjs.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/contracts/index.cjs.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tasks.cjs.map +0 -1
- package/dist/tasks.js.map +0 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
JudgeVerdictSchema,
|
|
5
5
|
TaskPrivateSchema,
|
|
6
6
|
TaskPublicSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UXFKTSQS.js";
|
|
8
8
|
|
|
9
9
|
// src/tasks.ts
|
|
10
10
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1093,4 +1093,3 @@ export {
|
|
|
1093
1093
|
competitorPromptPolicyHash,
|
|
1094
1094
|
buildCompetitorPrompt
|
|
1095
1095
|
};
|
|
1096
|
-
//# sourceMappingURL=chunk-JTVNKSMO.js.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSMG3PORScjs = require('./chunk-SMG3PORS.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ var _chunk4TWPCPRPcjs = require('./chunk-4TWPCPRP.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk5PCDG7VAcjs = require('./chunk-5PCDG7VA.cjs');
|
|
27
27
|
|
|
28
28
|
// src/elo.ts
|
|
29
29
|
var ELO_INITIAL = 1e3;
|
|
@@ -49,7 +49,7 @@ var PackageMetadataSchema = _zod.z.object({
|
|
|
49
49
|
version: _zod.z.string().min(1)
|
|
50
50
|
});
|
|
51
51
|
var metadata = PackageMetadataSchema.parse(
|
|
52
|
-
JSON.parse(_fs.readFileSync.call(void 0, _path2.default.join(
|
|
52
|
+
JSON.parse(_fs.readFileSync.call(void 0, _path2.default.join(_chunkSMG3PORScjs.packageRoot.call(void 0, _chunk5PCDG7VAcjs.importMetaUrl), "package.json"), "utf8"))
|
|
53
53
|
);
|
|
54
54
|
var PACKAGE_NAME = metadata.name;
|
|
55
55
|
var ENGINE_VERSION = metadata.version;
|
|
@@ -80,7 +80,7 @@ var RunManifestSchema = _zod.z.object({
|
|
|
80
80
|
version: _zod.z.literal(RUN_MANIFEST_VERSION),
|
|
81
81
|
methodologyVersion: _zod.z.string().min(1),
|
|
82
82
|
engineVersion: _zod.z.string().min(1),
|
|
83
|
-
category:
|
|
83
|
+
category: _chunk5PCDG7VAcjs.BenchmarkCategorySchema,
|
|
84
84
|
seed: _zod.z.string(),
|
|
85
85
|
matches: _zod.z.number().int().positive(),
|
|
86
86
|
competitors: _zod.z.array(ManifestCompetitorSchema).min(2).superRefine((models, context) => {
|
|
@@ -138,17 +138,17 @@ function runManifestHash(manifest) {
|
|
|
138
138
|
function runIdFromManifest(manifest) {
|
|
139
139
|
return `run-${runManifestHash(manifest).slice(0, 20)}`;
|
|
140
140
|
}
|
|
141
|
-
function createRunManifest(config, tasks, resolvedCompetitors =
|
|
141
|
+
function createRunManifest(config, tasks, resolvedCompetitors = _chunkSMG3PORScjs.resolveCompetitorRoster.call(void 0,
|
|
142
142
|
config.competitorIds
|
|
143
143
|
)) {
|
|
144
|
-
const canonicalCompetitors =
|
|
144
|
+
const canonicalCompetitors = _chunkSMG3PORScjs.resolveCompetitorRoster.call(void 0,
|
|
145
145
|
resolvedCompetitors.map((model) => model.id)
|
|
146
146
|
);
|
|
147
147
|
const competitors = canonicalCompetitors.map((model) => ({ ...manifestModel(model), role: "competitor" })).sort((left, right) => left.id.localeCompare(right.id));
|
|
148
|
-
const judges =
|
|
148
|
+
const judges = _chunkSMG3PORScjs.listModels.call(void 0, "judge").map((model) => ({ ...manifestModel(model), role: "judge" })).sort((left, right) => left.id.localeCompare(right.id));
|
|
149
149
|
const manifest = {
|
|
150
150
|
version: RUN_MANIFEST_VERSION,
|
|
151
|
-
methodologyVersion:
|
|
151
|
+
methodologyVersion: _chunk5PCDG7VAcjs.METHODOLOGY_VERSION,
|
|
152
152
|
engineVersion: ENGINE_VERSION,
|
|
153
153
|
category: config.category,
|
|
154
154
|
seed: config.seed,
|
|
@@ -162,8 +162,8 @@ function createRunManifest(config, tasks, resolvedCompetitors = _chunk4TWPCPRPcj
|
|
|
162
162
|
privateHash: task.privateHash
|
|
163
163
|
})).sort((left, right) => left.id.localeCompare(right.id)),
|
|
164
164
|
promptPolicyHashes: {
|
|
165
|
-
competitor:
|
|
166
|
-
judge:
|
|
165
|
+
competitor: _chunkSMG3PORScjs.competitorPromptPolicyHash.call(void 0, config.category),
|
|
166
|
+
judge: _chunkSMG3PORScjs.judgePromptPolicyHash.call(void 0, config.category)
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
return RunManifestSchema.parse(manifest);
|
|
@@ -171,7 +171,7 @@ function createRunManifest(config, tasks, resolvedCompetitors = _chunk4TWPCPRPcj
|
|
|
171
171
|
|
|
172
172
|
// src/verification.ts
|
|
173
173
|
var LEGACY_METHODOLOGY_VERSION = "reasoning-arena-v0.2.0";
|
|
174
|
-
var SUPPORTED_METHODOLOGY_VERSIONS = /* @__PURE__ */ new Set([LEGACY_METHODOLOGY_VERSION,
|
|
174
|
+
var SUPPORTED_METHODOLOGY_VERSIONS = /* @__PURE__ */ new Set([LEGACY_METHODOLOGY_VERSION, _chunk5PCDG7VAcjs.METHODOLOGY_VERSION]);
|
|
175
175
|
var EPSILON = 1e-9;
|
|
176
176
|
function fail(message) {
|
|
177
177
|
throw new Error(message);
|
|
@@ -266,7 +266,7 @@ function verifyOutcome(match) {
|
|
|
266
266
|
const judgeCost = _nullishCoalesce(_optionalChain([match, 'access', _6 => _6.panel, 'optionalAccess', _7 => _7.votes, 'access', _8 => _8.reduce, 'call', _9 => _9((sum, vote) => sum + (_nullishCoalesce(_optionalChain([vote, 'access', _10 => _10.completion, 'optionalAccess', _11 => _11.costUsd]), () => ( 0))), 0)]), () => ( 0));
|
|
267
267
|
equalNumber(
|
|
268
268
|
match.matchCostUsd,
|
|
269
|
-
|
|
269
|
+
_chunk5PCDG7VAcjs.competitorCost.call(void 0, responseA) + _chunk5PCDG7VAcjs.competitorCost.call(void 0, responseB) + judgeCost,
|
|
270
270
|
"matchCostUsd"
|
|
271
271
|
);
|
|
272
272
|
}
|
|
@@ -420,7 +420,7 @@ function ensureEntry(entries, modelId) {
|
|
|
420
420
|
if (existing) return existing;
|
|
421
421
|
let displayName = modelId;
|
|
422
422
|
try {
|
|
423
|
-
displayName =
|
|
423
|
+
displayName = _chunkSMG3PORScjs.getModel.call(void 0, modelId).displayName;
|
|
424
424
|
} catch (e) {
|
|
425
425
|
}
|
|
426
426
|
const created = emptyEntry(modelId, displayName);
|
|
@@ -430,7 +430,7 @@ function ensureEntry(entries, modelId) {
|
|
|
430
430
|
function buildSnapshot(matches, category, options = {}) {
|
|
431
431
|
const verified = verifyJournal(matches, category, options);
|
|
432
432
|
const entries = /* @__PURE__ */ new Map();
|
|
433
|
-
const competitorIds = _nullishCoalesce(options.competitorIds, () => (
|
|
433
|
+
const competitorIds = _nullishCoalesce(options.competitorIds, () => ( _chunkSMG3PORScjs.listModels.call(void 0, "competitor").map((model) => model.id)));
|
|
434
434
|
for (const modelId of competitorIds) {
|
|
435
435
|
ensureEntry(entries, modelId);
|
|
436
436
|
}
|
|
@@ -439,8 +439,8 @@ function buildSnapshot(matches, category, options = {}) {
|
|
|
439
439
|
const modelB = ensureEntry(entries, match.competitors.modelB);
|
|
440
440
|
modelA.elo = _nullishCoalesce(match.eloAfter[modelA.modelId], () => ( modelA.elo));
|
|
441
441
|
modelB.elo = _nullishCoalesce(match.eloAfter[modelB.modelId], () => ( modelB.elo));
|
|
442
|
-
modelA.totalCostUsd +=
|
|
443
|
-
modelB.totalCostUsd +=
|
|
442
|
+
modelA.totalCostUsd += _chunk5PCDG7VAcjs.competitorCost.call(void 0, match.competitors.responseA);
|
|
443
|
+
modelB.totalCostUsd += _chunk5PCDG7VAcjs.competitorCost.call(void 0, match.competitors.responseB);
|
|
444
444
|
if (match.outcome === "no-contest" || !match.winnerModelId) continue;
|
|
445
445
|
modelA.matches += 1;
|
|
446
446
|
modelB.matches += 1;
|
|
@@ -465,7 +465,7 @@ function buildSnapshot(matches, category, options = {}) {
|
|
|
465
465
|
).map((entry, index) => ({ rank: index + 1, ...entry }));
|
|
466
466
|
return {
|
|
467
467
|
version: "0.2.0",
|
|
468
|
-
methodologyVersion: _nullishCoalesce(verified.methodologyVersion, () => (
|
|
468
|
+
methodologyVersion: _nullishCoalesce(verified.methodologyVersion, () => ( _chunk5PCDG7VAcjs.METHODOLOGY_VERSION)),
|
|
469
469
|
category,
|
|
470
470
|
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
471
471
|
initialElo: ELO_INITIAL,
|
|
@@ -479,7 +479,7 @@ function incrementCluster(current, field) {
|
|
|
479
479
|
return { ...next, [field]: next[field] + 1 };
|
|
480
480
|
}
|
|
481
481
|
function renderMarkdown(snapshot) {
|
|
482
|
-
const meta =
|
|
482
|
+
const meta = _chunk5PCDG7VAcjs.CATEGORY_META[snapshot.category];
|
|
483
483
|
const modelNames = new Map(
|
|
484
484
|
snapshot.leaderboard.map((entry) => [entry.modelId, entry.displayName])
|
|
485
485
|
);
|
|
@@ -567,7 +567,7 @@ function scheduleMatches(input) {
|
|
|
567
567
|
throw new Error("Competitor model IDs must be unique");
|
|
568
568
|
const random = mulberry32(hashSeed(`${input.category}|${input.seed}`));
|
|
569
569
|
const runId = _nullishCoalesce(input.runId, () => ( `run-${stableId([
|
|
570
|
-
|
|
570
|
+
_chunk5PCDG7VAcjs.METHODOLOGY_VERSION,
|
|
571
571
|
input.category,
|
|
572
572
|
input.seed,
|
|
573
573
|
String(input.count),
|
|
@@ -821,17 +821,17 @@ function failedResponse(modelId, error, latencyMs) {
|
|
|
821
821
|
return {
|
|
822
822
|
modelId,
|
|
823
823
|
success: false,
|
|
824
|
-
error:
|
|
824
|
+
error: _chunkSMG3PORScjs.sanitizeError.call(void 0, error),
|
|
825
825
|
latencyMs
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
828
|
var ArenaRunner = class {
|
|
829
|
-
constructor(gateway, store, onEvent, logger =
|
|
829
|
+
constructor(gateway, store, onEvent, logger = _chunkSMG3PORScjs.noopLogger) {
|
|
830
830
|
this.gateway = gateway;
|
|
831
831
|
this.store = store;
|
|
832
832
|
this.onEvent = onEvent;
|
|
833
833
|
this.logger = logger;
|
|
834
|
-
this.judges = new (0,
|
|
834
|
+
this.judges = new (0, _chunkSMG3PORScjs.JudgePanel)(gateway, onEvent, logger);
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
|
|
@@ -892,7 +892,7 @@ var ArenaRunner = class {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
async prepareRun(config, tasks, signal) {
|
|
895
|
-
const competitors =
|
|
895
|
+
const competitors = _chunkSMG3PORScjs.resolveCompetitorRoster.call(void 0, config.competitorIds);
|
|
896
896
|
const competitorIds = competitors.map((model) => model.id);
|
|
897
897
|
const mismatched = tasks.filter((task) => task.public.category !== config.category);
|
|
898
898
|
if (mismatched.length > 0) {
|
|
@@ -901,10 +901,10 @@ var ArenaRunner = class {
|
|
|
901
901
|
);
|
|
902
902
|
}
|
|
903
903
|
const journal = this.store.readAll();
|
|
904
|
-
const incompatible = journal.find((match) => match.methodologyVersion !==
|
|
904
|
+
const incompatible = journal.find((match) => match.methodologyVersion !== _chunk5PCDG7VAcjs.METHODOLOGY_VERSION);
|
|
905
905
|
if (incompatible) {
|
|
906
906
|
throw new Error(
|
|
907
|
-
`Cannot append ${
|
|
907
|
+
`Cannot append ${_chunk5PCDG7VAcjs.METHODOLOGY_VERSION} matches to a ${incompatible.methodologyVersion} journal; archive it and start a new journal`
|
|
908
908
|
);
|
|
909
909
|
}
|
|
910
910
|
this.store.rebuildEloState(competitorIds);
|
|
@@ -937,7 +937,7 @@ var ArenaRunner = class {
|
|
|
937
937
|
if (_optionalChain([signal, 'optionalAccess', _25 => _25.aborted])) return prepared;
|
|
938
938
|
try {
|
|
939
939
|
await Promise.all(
|
|
940
|
-
[...competitors, ...
|
|
940
|
+
[...competitors, ..._chunkSMG3PORScjs.listModels.call(void 0, "judge")].map(
|
|
941
941
|
(model) => this.gateway.validateModel(model, signal)
|
|
942
942
|
)
|
|
943
943
|
);
|
|
@@ -1020,7 +1020,7 @@ var ArenaRunner = class {
|
|
|
1020
1020
|
try {
|
|
1021
1021
|
result = await this.runMatch(match, task, manifestHash, competitorIds, signal);
|
|
1022
1022
|
} catch (error) {
|
|
1023
|
-
if (_optionalChain([signal, 'optionalAccess', _30 => _30.aborted]) ||
|
|
1023
|
+
if (_optionalChain([signal, 'optionalAccess', _30 => _30.aborted]) || _chunkSMG3PORScjs.isArenaCancellationError.call(void 0, error)) {
|
|
1024
1024
|
cancellation.requested();
|
|
1025
1025
|
return this.cancelRun(runId, progress);
|
|
1026
1026
|
}
|
|
@@ -1094,14 +1094,14 @@ var ArenaRunner = class {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
async runMatch(match, task, manifestHash, competitorIds, signal) {
|
|
1097
|
-
|
|
1097
|
+
_chunkSMG3PORScjs.throwIfCancelled.call(void 0, signal);
|
|
1098
1098
|
const state = this.store.rebuildEloState(competitorIds);
|
|
1099
|
-
const prompt =
|
|
1099
|
+
const prompt = _chunkSMG3PORScjs.buildCompetitorPrompt.call(void 0, task);
|
|
1100
1100
|
const [responseA, responseB] = await Promise.all([
|
|
1101
1101
|
this.runCompetitor(match, "A", prompt, signal),
|
|
1102
1102
|
this.runCompetitor(match, "B", prompt, signal)
|
|
1103
1103
|
]);
|
|
1104
|
-
|
|
1104
|
+
_chunkSMG3PORScjs.throwIfCancelled.call(void 0, signal);
|
|
1105
1105
|
this.inspectResponse(match, responseA);
|
|
1106
1106
|
this.inspectResponse(match, responseB);
|
|
1107
1107
|
this.emit({
|
|
@@ -1112,20 +1112,20 @@ var ArenaRunner = class {
|
|
|
1112
1112
|
modelA: {
|
|
1113
1113
|
success: responseA.success,
|
|
1114
1114
|
latencyMs: responseA.latencyMs,
|
|
1115
|
-
costUsd:
|
|
1116
|
-
outputTokens:
|
|
1117
|
-
reasoningTokens: _nullishCoalesce(
|
|
1115
|
+
costUsd: _chunk5PCDG7VAcjs.competitorCost.call(void 0, responseA),
|
|
1116
|
+
outputTokens: _chunk5PCDG7VAcjs.competitorOutputTokens.call(void 0, responseA),
|
|
1117
|
+
reasoningTokens: _nullishCoalesce(_chunk5PCDG7VAcjs.competitorReasoningTokens.call(void 0, responseA), () => ( null))
|
|
1118
1118
|
},
|
|
1119
1119
|
modelB: {
|
|
1120
1120
|
success: responseB.success,
|
|
1121
1121
|
latencyMs: responseB.latencyMs,
|
|
1122
|
-
costUsd:
|
|
1123
|
-
outputTokens:
|
|
1124
|
-
reasoningTokens: _nullishCoalesce(
|
|
1122
|
+
costUsd: _chunk5PCDG7VAcjs.competitorCost.call(void 0, responseB),
|
|
1123
|
+
outputTokens: _chunk5PCDG7VAcjs.competitorOutputTokens.call(void 0, responseB),
|
|
1124
|
+
reasoningTokens: _nullishCoalesce(_chunk5PCDG7VAcjs.competitorReasoningTokens.call(void 0, responseB), () => ( null))
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
1127
|
});
|
|
1128
|
-
|
|
1128
|
+
_chunkSMG3PORScjs.throwIfCancelled.call(void 0, signal);
|
|
1129
1129
|
const eloBefore = {
|
|
1130
1130
|
[match.modelA]: _nullishCoalesce(state.ratings[match.modelA], () => ( ELO_INITIAL)),
|
|
1131
1131
|
[match.modelB]: _nullishCoalesce(state.ratings[match.modelB], () => ( ELO_INITIAL))
|
|
@@ -1141,10 +1141,10 @@ var ArenaRunner = class {
|
|
|
1141
1141
|
this.emit({
|
|
1142
1142
|
id: `${match.id}-judging-started`,
|
|
1143
1143
|
type: "judging.started",
|
|
1144
|
-
data: { matchId: match.id, judges:
|
|
1144
|
+
data: { matchId: match.id, judges: _chunkSMG3PORScjs.listModels.call(void 0, "judge").map((model) => model.id) }
|
|
1145
1145
|
});
|
|
1146
1146
|
panel = await this.judges.judge({ match, task, responseA, responseB }, signal);
|
|
1147
|
-
|
|
1147
|
+
_chunkSMG3PORScjs.throwIfCancelled.call(void 0, signal);
|
|
1148
1148
|
if (panel.winnerModelId) {
|
|
1149
1149
|
outcome = "judged";
|
|
1150
1150
|
winnerModelId = panel.winnerModelId;
|
|
@@ -1161,7 +1161,7 @@ var ArenaRunner = class {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
const judgeCost = _nullishCoalesce(_optionalChain([panel, 'optionalAccess', _34 => _34.votes, 'access', _35 => _35.reduce, 'call', _36 => _36((sum, vote) => sum + (_nullishCoalesce(_optionalChain([vote, 'access', _37 => _37.completion, 'optionalAccess', _38 => _38.costUsd]), () => ( 0))), 0)]), () => ( 0));
|
|
1163
1163
|
return {
|
|
1164
|
-
methodologyVersion:
|
|
1164
|
+
methodologyVersion: _chunk5PCDG7VAcjs.METHODOLOGY_VERSION,
|
|
1165
1165
|
runId: match.runId,
|
|
1166
1166
|
runManifestHash: manifestHash,
|
|
1167
1167
|
matchId: match.id,
|
|
@@ -1183,7 +1183,7 @@ var ArenaRunner = class {
|
|
|
1183
1183
|
eloBefore,
|
|
1184
1184
|
eloAfter,
|
|
1185
1185
|
pointAwarded: winnerModelId !== null,
|
|
1186
|
-
matchCostUsd:
|
|
1186
|
+
matchCostUsd: _chunk5PCDG7VAcjs.competitorCost.call(void 0, responseA) + _chunk5PCDG7VAcjs.competitorCost.call(void 0, responseB) + judgeCost
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
/** Surface signals that make a journaled response untrustworthy or a task too easy. */
|
|
@@ -1226,19 +1226,19 @@ var ArenaRunner = class {
|
|
|
1226
1226
|
});
|
|
1227
1227
|
};
|
|
1228
1228
|
try {
|
|
1229
|
-
|
|
1229
|
+
_chunkSMG3PORScjs.throwIfCancelled.call(void 0, signal);
|
|
1230
1230
|
const completion = await this.gateway.complete({
|
|
1231
|
-
model:
|
|
1231
|
+
model: _chunkSMG3PORScjs.getModel.call(void 0, modelId),
|
|
1232
1232
|
...prompt,
|
|
1233
1233
|
signal,
|
|
1234
1234
|
onDelta: (text) => emitDelta(text, false)
|
|
1235
1235
|
});
|
|
1236
|
-
|
|
1236
|
+
_chunkSMG3PORScjs.throwIfCancelled.call(void 0, signal);
|
|
1237
1237
|
emitDelta(completion.content, true);
|
|
1238
1238
|
return { modelId, success: true, ...completion };
|
|
1239
1239
|
} catch (error) {
|
|
1240
|
-
if (_optionalChain([signal, 'optionalAccess', _39 => _39.aborted]) ||
|
|
1241
|
-
throw new (0,
|
|
1240
|
+
if (_optionalChain([signal, 'optionalAccess', _39 => _39.aborted]) || _chunkSMG3PORScjs.isArenaCancellationError.call(void 0, error)) {
|
|
1241
|
+
throw new (0, _chunkSMG3PORScjs.ArenaCancellationError)();
|
|
1242
1242
|
}
|
|
1243
1243
|
const failed = failedResponse(modelId, error, Date.now() - startedAt);
|
|
1244
1244
|
emitDelta(failed.error, true, false);
|
|
@@ -1288,7 +1288,7 @@ var MockOpenRouterGateway = class {
|
|
|
1288
1288
|
},
|
|
1289
1289
|
violations: []
|
|
1290
1290
|
};
|
|
1291
|
-
void
|
|
1291
|
+
void _chunkSMG3PORScjs.judgeVerdictJsonSchema.call(void 0, );
|
|
1292
1292
|
return baseCompletion(JSON.stringify(payload), `mock-judge-${request.model.id}`);
|
|
1293
1293
|
}
|
|
1294
1294
|
const variantA = [
|
|
@@ -1371,7 +1371,7 @@ var ArenaStore = class {
|
|
|
1371
1371
|
} catch (e2) {
|
|
1372
1372
|
throw new Error(`Malformed arena journal line ${index + 1}; refusing to continue`);
|
|
1373
1373
|
}
|
|
1374
|
-
const parsed =
|
|
1374
|
+
const parsed = _chunk5PCDG7VAcjs.MatchResultSchema.safeParse(decoded);
|
|
1375
1375
|
if (!parsed.success) {
|
|
1376
1376
|
const issue = parsed.error.issues[0];
|
|
1377
1377
|
const location = _optionalChain([issue, 'optionalAccess', _46 => _46.path, 'access', _47 => _47.length]) ? ` at ${issue.path.join(".")}` : "";
|
|
@@ -1409,7 +1409,7 @@ var ArenaStore = class {
|
|
|
1409
1409
|
completedMatchIds() {
|
|
1410
1410
|
return new Set(this.readAll().map((result) => result.matchId));
|
|
1411
1411
|
}
|
|
1412
|
-
rebuildEloState(competitorIds =
|
|
1412
|
+
rebuildEloState(competitorIds = _chunkSMG3PORScjs.listModels.call(void 0, "competitor").map((model) => model.id)) {
|
|
1413
1413
|
const ratings = Object.fromEntries(competitorIds.map((modelId) => [modelId, ELO_INITIAL]));
|
|
1414
1414
|
const points = Object.fromEntries(competitorIds.map((modelId) => [modelId, 0]));
|
|
1415
1415
|
const verified = verifyJournal(this.readAll(), this.category, {
|
|
@@ -1464,4 +1464,3 @@ var ArenaStore = class {
|
|
|
1464
1464
|
|
|
1465
1465
|
|
|
1466
1466
|
exports.ELO_INITIAL = ELO_INITIAL; exports.ELO_K = ELO_K; exports.expectedScore = expectedScore; exports.applyEloWin = applyEloWin; exports.PACKAGE_NAME = PACKAGE_NAME; exports.ENGINE_VERSION = ENGINE_VERSION; exports.RUN_MANIFEST_VERSION = RUN_MANIFEST_VERSION; exports.RunManifestSchema = RunManifestSchema; exports.canonicalJson = canonicalJson; exports.runManifestHash = runManifestHash; exports.runIdFromManifest = runIdFromManifest; exports.createRunManifest = createRunManifest; exports.verifyJournal = verifyJournal; exports.verifiedEloState = verifiedEloState; exports.buildSnapshot = buildSnapshot; exports.renderMarkdown = renderMarkdown; exports.writeReports = writeReports; exports.scheduleMatches = scheduleMatches; exports.FAST_RESPONSE_MS = FAST_RESPONSE_MS; exports.LOW_OUTPUT_TOKENS = LOW_OUTPUT_TOKENS; exports.classifyError = classifyError; exports.detectResponseAnomalies = detectResponseAnomalies; exports.triageJournal = triageJournal; exports.formatTriage = formatTriage; exports.ArenaRunner = ArenaRunner; exports.MockOpenRouterGateway = MockOpenRouterGateway; exports.categoryStoreConfig = categoryStoreConfig; exports.ArenaStore = ArenaStore;
|
|
1467
|
-
//# sourceMappingURL=chunk-NJTYVNP4.cjs.map
|
|
@@ -246,4 +246,3 @@ var CONTRACTS_VERSION = "1.0.0";
|
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
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.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.CONTRACTS_VERSION = CONTRACTS_VERSION;
|
|
249
|
-
//# sourceMappingURL=chunk-CIXITJW6.cjs.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
resolveCompetitorRoster,
|
|
14
14
|
sanitizeError,
|
|
15
15
|
throwIfCancelled
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3CX4FIFZ.js";
|
|
17
17
|
import {
|
|
18
18
|
BenchmarkCategorySchema,
|
|
19
19
|
CATEGORY_META,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
competitorCost,
|
|
23
23
|
competitorOutputTokens,
|
|
24
24
|
competitorReasoningTokens
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UXFKTSQS.js";
|
|
26
26
|
|
|
27
27
|
// src/elo.ts
|
|
28
28
|
var ELO_INITIAL = 1e3;
|
|
@@ -1463,4 +1463,3 @@ export {
|
|
|
1463
1463
|
categoryStoreConfig,
|
|
1464
1464
|
ArenaStore
|
|
1465
1465
|
};
|
|
1466
|
-
//# sourceMappingURL=chunk-EQHRUV2I.js.map
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
createRunManifest,
|
|
7
7
|
runIdFromManifest,
|
|
8
8
|
runManifestHash
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KGZEQ6R5.js";
|
|
10
10
|
import {
|
|
11
11
|
OpenRouterClient,
|
|
12
12
|
TaskLoader,
|
|
13
13
|
noopLogger,
|
|
14
14
|
redactSecrets,
|
|
15
15
|
resolveCompetitorRoster
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3CX4FIFZ.js";
|
|
17
17
|
import {
|
|
18
18
|
METHODOLOGY_VERSION
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UXFKTSQS.js";
|
|
20
20
|
|
|
21
21
|
// src/api-client.ts
|
|
22
22
|
var ADMIN_KEY_HEADER = "x-bridgebench-admin-key";
|
|
@@ -395,4 +395,3 @@ export {
|
|
|
395
395
|
createRemoteRun,
|
|
396
396
|
runRemoteArena
|
|
397
397
|
};
|
|
398
|
-
//# sourceMappingURL=chunk-LFKEV2YL.js.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5PCDG7VAcjs = require('./chunk-5PCDG7VA.cjs');
|
|
9
9
|
|
|
10
10
|
// src/tasks.ts
|
|
11
11
|
var _crypto = require('crypto');
|
|
@@ -269,7 +269,7 @@ function assertPromptSize(request) {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
function judgeVerdictJsonSchema() {
|
|
272
|
-
return
|
|
272
|
+
return _chunk5PCDG7VAcjs.JUDGE_VERDICT_TRANSPORT_SCHEMA;
|
|
273
273
|
}
|
|
274
274
|
function judgeResponseFormat() {
|
|
275
275
|
return {
|
|
@@ -558,7 +558,7 @@ var OpenRouterClient = class {
|
|
|
558
558
|
};
|
|
559
559
|
function parseJudgeVerdict(content) {
|
|
560
560
|
const trimmed = content.trim().replace(/^```(?:json)?\s*/i, "").replace(/\s*```$/, "");
|
|
561
|
-
return
|
|
561
|
+
return _chunk5PCDG7VAcjs.JudgeVerdictSchema.parse(JSON.parse(trimmed));
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
// src/judges.ts
|
|
@@ -837,7 +837,7 @@ function findProjectRoot(fromUrl) {
|
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
// src/tasks.ts
|
|
840
|
-
var ROOT = packageRoot(
|
|
840
|
+
var ROOT = packageRoot(_chunk5PCDG7VAcjs.importMetaUrl);
|
|
841
841
|
var TASKS_PER_CATEGORY = 12;
|
|
842
842
|
var TASKS_PER_CLUSTER = 2;
|
|
843
843
|
var APPROXIMATE_CHARS_PER_TOKEN = 4;
|
|
@@ -875,7 +875,7 @@ function validatePublicTask(file, task, category) {
|
|
|
875
875
|
if (task.category !== category) {
|
|
876
876
|
throw new Error(`${file} declares category ${task.category} inside the ${category} pack`);
|
|
877
877
|
}
|
|
878
|
-
if (!
|
|
878
|
+
if (!_chunk5PCDG7VAcjs.CATEGORY_CLUSTERS[category].includes(task.cluster)) {
|
|
879
879
|
throw new Error(`${file} uses cluster ${task.cluster}, which is not a ${category} cluster`);
|
|
880
880
|
}
|
|
881
881
|
const artifactIds = task.artifacts.map((artifact) => artifact.id);
|
|
@@ -929,7 +929,7 @@ function validatePackComposition(category, tasks) {
|
|
|
929
929
|
if (duplicates.length > 0) {
|
|
930
930
|
throw new Error(`${category} task IDs must be unique: ${duplicates.join(", ")}`);
|
|
931
931
|
}
|
|
932
|
-
for (const cluster of
|
|
932
|
+
for (const cluster of _chunk5PCDG7VAcjs.CATEGORY_CLUSTERS[category]) {
|
|
933
933
|
const count = tasks.filter((task) => task.public.cluster === cluster).length;
|
|
934
934
|
if (count !== TASKS_PER_CLUSTER) {
|
|
935
935
|
throw new Error(`Expected exactly ${TASKS_PER_CLUSTER} ${cluster} tasks, found ${count}`);
|
|
@@ -941,7 +941,7 @@ function validatePackComposition(category, tasks) {
|
|
|
941
941
|
}
|
|
942
942
|
async function validatePublicTaskFile(filePath) {
|
|
943
943
|
const resolved = _path2.default.resolve(filePath);
|
|
944
|
-
const { raw, value } = await parseYamlFile(resolved,
|
|
944
|
+
const { raw, value } = await parseYamlFile(resolved, _chunk5PCDG7VAcjs.TaskPublicSchema);
|
|
945
945
|
validatePublicTask(_path2.default.basename(resolved), value, value.category);
|
|
946
946
|
const task = {
|
|
947
947
|
public: value,
|
|
@@ -979,14 +979,14 @@ var TaskLoader = class {
|
|
|
979
979
|
const publicFile = _path2.default.join(publicDir, file);
|
|
980
980
|
const { raw: publicRaw, value: publicTask } = await parseYamlFile(
|
|
981
981
|
publicFile,
|
|
982
|
-
|
|
982
|
+
_chunk5PCDG7VAcjs.TaskPublicSchema
|
|
983
983
|
);
|
|
984
984
|
validatePublicTask(file, publicTask, this.category);
|
|
985
985
|
let privateRaw = null;
|
|
986
986
|
let privateTask = null;
|
|
987
987
|
if (havePrivate) {
|
|
988
988
|
try {
|
|
989
|
-
const loaded = await parseYamlFile(_path2.default.join(this.privateDir, file),
|
|
989
|
+
const loaded = await parseYamlFile(_path2.default.join(this.privateDir, file), _chunk5PCDG7VAcjs.TaskPrivateSchema);
|
|
990
990
|
privateRaw = loaded.raw;
|
|
991
991
|
privateTask = loaded.value;
|
|
992
992
|
} catch (error) {
|
|
@@ -1020,7 +1020,7 @@ function mergePrivateHalves(tasks, privateHalves) {
|
|
|
1020
1020
|
if (!/^[a-f0-9]{64}$/.test(half.hash)) {
|
|
1021
1021
|
throw new Error(`Private hash for task ${task.public.id} is not a sha256 digest`);
|
|
1022
1022
|
}
|
|
1023
|
-
const privateTask =
|
|
1023
|
+
const privateTask = _chunk5PCDG7VAcjs.TaskPrivateSchema.parse(half.value);
|
|
1024
1024
|
validatePrivatePair(task.public.id, task.public, privateTask);
|
|
1025
1025
|
const complete = {
|
|
1026
1026
|
public: task.public,
|
|
@@ -1094,4 +1094,3 @@ ${artifacts}`
|
|
|
1094
1094
|
|
|
1095
1095
|
|
|
1096
1096
|
exports.ArenaCancellationError = ArenaCancellationError; exports.isArenaCancellationError = isArenaCancellationError; exports.throwIfCancelled = throwIfCancelled; exports.redactSecrets = redactSecrets; exports.noopLogger = noopLogger; exports.FileArenaLogger = FileArenaLogger; exports.MODEL_REGISTRY = MODEL_REGISTRY; exports.SOL_FABLE_PILOT_COMPETITOR_IDS = SOL_FABLE_PILOT_COMPETITOR_IDS; exports.listModels = listModels; exports.resolveCompetitorRoster = resolveCompetitorRoster; exports.getModel = getModel; exports.MAX_PROMPT_CHARS = MAX_PROMPT_CHARS; exports.assertPromptSize = assertPromptSize; exports.judgeVerdictJsonSchema = judgeVerdictJsonSchema; exports.runOpenRouterAttempt = runOpenRouterAttempt; exports.isRetryableError = isRetryableError; exports.sanitizeError = sanitizeError; exports.OpenRouterClient = OpenRouterClient; exports.parseJudgeVerdict = parseJudgeVerdict; exports.anonymizeCompetitorOutput = anonymizeCompetitorOutput; exports.buildJudgePayload = buildJudgePayload; exports.judgePromptPolicyHash = judgePromptPolicyHash; exports.judgeSystemPrompt = judgeSystemPrompt; exports.JudgePanel = JudgePanel; exports.packageRoot = packageRoot; exports.findProjectRoot = findProjectRoot; exports.TASKS_PER_CATEGORY = TASKS_PER_CATEGORY; exports.TASKS_PER_CLUSTER = TASKS_PER_CLUSTER; exports.defaultTaskRoot = defaultTaskRoot; exports.validatePublicTaskFile = validatePublicTaskFile; exports.TaskLoader = TaskLoader; exports.mergePrivateHalves = mergePrivateHalves; exports.competitorPromptPolicyHash = competitorPromptPolicyHash; exports.buildCompetitorPrompt = buildCompetitorPrompt;
|
|
1097
|
-
//# sourceMappingURL=chunk-4TWPCPRP.cjs.map
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk5OZGHLDHcjs = require('./chunk-5OZGHLDH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkSMG3PORScjs = require('./chunk-SMG3PORS.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk5PCDG7VAcjs = require('./chunk-5PCDG7VA.cjs');
|
|
20
20
|
|
|
21
21
|
// src/api-client.ts
|
|
22
22
|
var ADMIN_KEY_HEADER = "x-bridgebench-admin-key";
|
|
@@ -74,7 +74,7 @@ async function getJson(config, path2, schema) {
|
|
|
74
74
|
});
|
|
75
75
|
const text = await response.text();
|
|
76
76
|
if (!response.ok) {
|
|
77
|
-
throw new Error(`GET ${path2} \u2192 ${response.status}: ${
|
|
77
|
+
throw new Error(`GET ${path2} \u2192 ${response.status}: ${_chunkSMG3PORScjs.redactSecrets.call(void 0, text).slice(0, 500)}`);
|
|
78
78
|
}
|
|
79
79
|
let decoded;
|
|
80
80
|
try {
|
|
@@ -110,7 +110,7 @@ async function postJson(config, path2, body, schema) {
|
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
if (!response.ok) {
|
|
113
|
-
throw new Error(`POST ${path2} \u2192 ${response.status}: ${
|
|
113
|
+
throw new Error(`POST ${path2} \u2192 ${response.status}: ${_chunkSMG3PORScjs.redactSecrets.call(void 0, text).slice(0, 500)}`);
|
|
114
114
|
}
|
|
115
115
|
let decoded;
|
|
116
116
|
try {
|
|
@@ -138,7 +138,7 @@ async function postChunks(config, path2, batches, wrap, schema) {
|
|
|
138
138
|
// src/publish.ts
|
|
139
139
|
var _zod = require('zod');
|
|
140
140
|
async function publishTasks(category, config = resolveApiConfig()) {
|
|
141
|
-
const loaded = await new (0,
|
|
141
|
+
const loaded = await new (0, _chunkSMG3PORScjs.TaskLoader)(category).loadAll({
|
|
142
142
|
requirePrivate: true
|
|
143
143
|
});
|
|
144
144
|
const results = await postChunks(
|
|
@@ -173,7 +173,7 @@ async function publishJournalFromStore(store, config = resolveApiConfig()) {
|
|
|
173
173
|
return { imported, skipped, matches: journal.length };
|
|
174
174
|
}
|
|
175
175
|
async function publishJournal(category, config = resolveApiConfig()) {
|
|
176
|
-
return publishJournalFromStore(new (0,
|
|
176
|
+
return publishJournalFromStore(new (0, _chunk5OZGHLDHcjs.ArenaStore)(_chunk5OZGHLDHcjs.categoryStoreConfig.call(void 0, category)), config);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
// src/remote-events.ts
|
|
@@ -297,23 +297,23 @@ async function fetchExecutionPack(config, category) {
|
|
|
297
297
|
`/arena/admin/${category}/execution-pack`,
|
|
298
298
|
ExecutionPackSchema
|
|
299
299
|
);
|
|
300
|
-
if (pack.methodologyVersion !==
|
|
300
|
+
if (pack.methodologyVersion !== _chunk5PCDG7VAcjs.METHODOLOGY_VERSION) {
|
|
301
301
|
throw new Error(
|
|
302
|
-
`Execution pack methodology ${pack.methodologyVersion} does not match engine ${
|
|
302
|
+
`Execution pack methodology ${pack.methodologyVersion} does not match engine ${_chunk5PCDG7VAcjs.METHODOLOGY_VERSION}`
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
return { tasks: pack.tasks };
|
|
306
306
|
}
|
|
307
307
|
async function createRemoteRun(apiConfig, runConfig, tasks) {
|
|
308
|
-
const manifest =
|
|
309
|
-
const manifestHash =
|
|
310
|
-
const runKey =
|
|
311
|
-
const competitorIds =
|
|
308
|
+
const manifest = _chunk5OZGHLDHcjs.createRunManifest.call(void 0, runConfig, [...tasks]);
|
|
309
|
+
const manifestHash = _chunk5OZGHLDHcjs.runManifestHash.call(void 0, manifest);
|
|
310
|
+
const runKey = _chunk5OZGHLDHcjs.runIdFromManifest.call(void 0, manifest);
|
|
311
|
+
const competitorIds = _chunkSMG3PORScjs.resolveCompetitorRoster.call(void 0, runConfig.competitorIds).map((model) => model.id);
|
|
312
312
|
const body = {
|
|
313
313
|
runKey,
|
|
314
314
|
category: runConfig.category,
|
|
315
315
|
seed: runConfig.seed,
|
|
316
|
-
methodologyVersion:
|
|
316
|
+
methodologyVersion: _chunk5PCDG7VAcjs.METHODOLOGY_VERSION,
|
|
317
317
|
competitorIds,
|
|
318
318
|
scheduledCount: runConfig.matches,
|
|
319
319
|
maxCostUsd: runConfig.maxCostUsd,
|
|
@@ -324,7 +324,7 @@ async function createRemoteRun(apiConfig, runConfig, tasks) {
|
|
|
324
324
|
return { runKey: response.run.runKey, created: response.created };
|
|
325
325
|
}
|
|
326
326
|
async function runRemoteArena(apiConfig, options) {
|
|
327
|
-
const { config, mock = false, publishMatches = true, logger =
|
|
327
|
+
const { config, mock = false, publishMatches = true, logger = _chunkSMG3PORScjs.noopLogger } = options;
|
|
328
328
|
const { tasks } = await fetchExecutionPack(apiConfig, config.category);
|
|
329
329
|
const { runKey } = await createRemoteRun(apiConfig, config, tasks);
|
|
330
330
|
const resultsRoot = _path2.default.join(
|
|
@@ -332,10 +332,10 @@ async function runRemoteArena(apiConfig, options) {
|
|
|
332
332
|
"remote",
|
|
333
333
|
config.category
|
|
334
334
|
);
|
|
335
|
-
const store = new (0,
|
|
335
|
+
const store = new (0, _chunk5OZGHLDHcjs.ArenaStore)(remoteStoreConfig(config.category, resultsRoot));
|
|
336
336
|
const eventSink = new RemoteArenaEventSink(apiConfig, runKey);
|
|
337
|
-
const gateway = mock ? new (0,
|
|
338
|
-
const runner = new (0,
|
|
337
|
+
const gateway = mock ? new (0, _chunk5OZGHLDHcjs.MockOpenRouterGateway)({ judgeWinner: "MODEL_A" }) : new (0, _chunkSMG3PORScjs.OpenRouterClient)(_nullishCoalesce(process.env.OPENROUTER_API_KEY, () => ( "")), logger);
|
|
338
|
+
const runner = new (0, _chunk5OZGHLDHcjs.ArenaRunner)(gateway, store, eventSink.sink, logger);
|
|
339
339
|
const cancellation = new AbortController();
|
|
340
340
|
const requestCancellation = () => {
|
|
341
341
|
if (cancellation.signal.aborted) return;
|
|
@@ -395,4 +395,3 @@ async function runRemoteArena(apiConfig, options) {
|
|
|
395
395
|
|
|
396
396
|
|
|
397
397
|
exports.ADMIN_KEY_HEADER = ADMIN_KEY_HEADER; exports.DEFAULT_API_TIMEOUT_MS = DEFAULT_API_TIMEOUT_MS; exports.REQUEST_SPACING_MS = REQUEST_SPACING_MS; exports.resolveApiConfig = resolveApiConfig; exports.publishTarget = publishTarget; exports.delay = delay; exports.chunk = chunk; exports.getJson = getJson; exports.postJson = postJson; exports.postChunks = postChunks; exports.publishTasks = publishTasks; exports.publishJournalFromStore = publishJournalFromStore; exports.publishJournal = publishJournal; exports.RemoteArenaEventSink = RemoteArenaEventSink; exports.fetchExecutionPack = fetchExecutionPack; exports.createRemoteRun = createRemoteRun; exports.runRemoteArena = runRemoteArena;
|
|
398
|
-
//# sourceMappingURL=chunk-7YCJSOK7.cjs.map
|