agentv 4.21.0 → 4.22.0-next.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/{artifact-writer-E775664W.js → artifact-writer-S7S6K3XA.js} +4 -4
- package/dist/{chunk-ERSBQAGK.js → chunk-4YZDPAGZ.js} +29 -7
- package/dist/{chunk-ERSBQAGK.js.map → chunk-4YZDPAGZ.js.map} +1 -1
- package/dist/{chunk-27VT2KU2.js → chunk-762UZSGR.js} +69 -2
- package/dist/chunk-762UZSGR.js.map +1 -0
- package/dist/{chunk-FZUNMXBT.js → chunk-CM2AVQAM.js} +3 -3
- package/dist/{chunk-GPGX24OI.js → chunk-E4LRWRQ4.js} +76 -73
- package/dist/chunk-E4LRWRQ4.js.map +1 -0
- package/dist/{chunk-LPSUVXHV.js → chunk-FEOQKY2B.js} +29 -18
- package/dist/{chunk-LPSUVXHV.js.map → chunk-FEOQKY2B.js.map} +1 -1
- package/dist/cli.js +5 -5
- package/dist/{dist-RSAA3T6F.js → dist-6LNJDZAI.js} +9 -3
- package/dist/index.js +5 -5
- package/dist/{interactive-RLMRNXXD.js → interactive-KRKRO7HK.js} +5 -7
- package/dist/{interactive-RLMRNXXD.js.map → interactive-KRKRO7HK.js.map} +1 -1
- package/dist/{ts-eval-loader-HPIPE72C-GDYGJVIA.js → ts-eval-loader-PA4YFM5D-2DKQQQOZ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-27VT2KU2.js.map +0 -1
- package/dist/chunk-GPGX24OI.js.map +0 -1
- /package/dist/{artifact-writer-E775664W.js.map → artifact-writer-S7S6K3XA.js.map} +0 -0
- /package/dist/{chunk-FZUNMXBT.js.map → chunk-CM2AVQAM.js.map} +0 -0
- /package/dist/{dist-RSAA3T6F.js.map → dist-6LNJDZAI.js.map} +0 -0
- /package/dist/{ts-eval-loader-HPIPE72C-GDYGJVIA.js.map → ts-eval-loader-PA4YFM5D-2DKQQQOZ.js.map} +0 -0
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
writeArtifacts,
|
|
14
14
|
writeArtifactsFromResults,
|
|
15
15
|
writePerTestArtifacts
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-CM2AVQAM.js";
|
|
17
|
+
import "./chunk-762UZSGR.js";
|
|
18
18
|
import "./chunk-QOBQ5XYF.js";
|
|
19
19
|
import "./chunk-BPGJ4HBU.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-4YZDPAGZ.js";
|
|
21
21
|
import "./chunk-ZKO2LGRR.js";
|
|
22
22
|
import "./chunk-NPVGBFF6.js";
|
|
23
23
|
import "./chunk-HQDCIXVH.js";
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
writeArtifactsFromResults,
|
|
39
39
|
writePerTestArtifacts
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=artifact-writer-
|
|
41
|
+
//# sourceMappingURL=artifact-writer-S7S6K3XA.js.map
|
|
@@ -8282,7 +8282,7 @@ var _a20;
|
|
|
8282
8282
|
_a20 = symbol20;
|
|
8283
8283
|
var defaultDownload2 = createDownload();
|
|
8284
8284
|
|
|
8285
|
-
// ../../packages/core/dist/chunk-
|
|
8285
|
+
// ../../packages/core/dist/chunk-B3BLJRYI.js
|
|
8286
8286
|
import path46 from "node:path";
|
|
8287
8287
|
import { pathToFileURL as pathToFileURL2 } from "node:url";
|
|
8288
8288
|
import { existsSync as existsSync6 } from "node:fs";
|
|
@@ -12972,7 +12972,7 @@ var openrouter = createOpenRouter({
|
|
|
12972
12972
|
// strict for OpenRouter API
|
|
12973
12973
|
});
|
|
12974
12974
|
|
|
12975
|
-
// ../../packages/core/dist/chunk-
|
|
12975
|
+
// ../../packages/core/dist/chunk-B3BLJRYI.js
|
|
12976
12976
|
import { spawn } from "node:child_process";
|
|
12977
12977
|
import { randomUUID } from "node:crypto";
|
|
12978
12978
|
import { createWriteStream } from "node:fs";
|
|
@@ -14476,7 +14476,7 @@ var RequestError = class _RequestError extends Error {
|
|
|
14476
14476
|
}
|
|
14477
14477
|
};
|
|
14478
14478
|
|
|
14479
|
-
// ../../packages/core/dist/chunk-
|
|
14479
|
+
// ../../packages/core/dist/chunk-B3BLJRYI.js
|
|
14480
14480
|
import { exec as execCallback } from "node:child_process";
|
|
14481
14481
|
import { readdirSync, statSync } from "node:fs";
|
|
14482
14482
|
import { readFile as readFile22, readdir as readdir2, stat as stat2 } from "node:fs/promises";
|
|
@@ -27294,11 +27294,13 @@ async function loadConfig(evalFilePath, repoRoot) {
|
|
|
27294
27294
|
configPath
|
|
27295
27295
|
);
|
|
27296
27296
|
const results = parseResultsConfig(parsed.results, configPath);
|
|
27297
|
+
const hooks = parseHooksConfig(parsed.hooks, configPath);
|
|
27297
27298
|
return {
|
|
27298
27299
|
required_version: requiredVersion,
|
|
27299
27300
|
eval_patterns: evalPatterns,
|
|
27300
27301
|
execution: executionDefaults,
|
|
27301
|
-
results
|
|
27302
|
+
results,
|
|
27303
|
+
...hooks && { hooks }
|
|
27302
27304
|
};
|
|
27303
27305
|
} catch (error) {
|
|
27304
27306
|
logWarning(
|
|
@@ -27650,6 +27652,25 @@ function parseResultsExportConfig(raw, configPath) {
|
|
|
27650
27652
|
...branchPrefix && { branch_prefix: branchPrefix }
|
|
27651
27653
|
};
|
|
27652
27654
|
}
|
|
27655
|
+
function parseHooksConfig(raw, configPath) {
|
|
27656
|
+
if (raw === void 0 || raw === null) {
|
|
27657
|
+
return void 0;
|
|
27658
|
+
}
|
|
27659
|
+
if (typeof raw !== "object" || Array.isArray(raw)) {
|
|
27660
|
+
logWarning(`Invalid hooks in ${configPath}, expected object`);
|
|
27661
|
+
return void 0;
|
|
27662
|
+
}
|
|
27663
|
+
const obj = raw;
|
|
27664
|
+
const beforeSession = obj.before_session;
|
|
27665
|
+
if (beforeSession !== void 0) {
|
|
27666
|
+
if (typeof beforeSession !== "string" || beforeSession.trim().length === 0) {
|
|
27667
|
+
logWarning(`Invalid hooks.before_session in ${configPath}, expected non-empty string`);
|
|
27668
|
+
return void 0;
|
|
27669
|
+
}
|
|
27670
|
+
return { before_session: beforeSession.trim() };
|
|
27671
|
+
}
|
|
27672
|
+
return void 0;
|
|
27673
|
+
}
|
|
27653
27674
|
function logWarning(message) {
|
|
27654
27675
|
console.warn(`${ANSI_YELLOW22}Warning: ${message}${ANSI_RESET3}`);
|
|
27655
27676
|
}
|
|
@@ -30251,7 +30272,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
|
|
|
30251
30272
|
return { tests: await loadTestsFromAgentSkills(evalFilePath) };
|
|
30252
30273
|
}
|
|
30253
30274
|
if (format === "typescript") {
|
|
30254
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
30275
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-PA4YFM5D-2DKQQQOZ.js");
|
|
30255
30276
|
return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
30256
30277
|
}
|
|
30257
30278
|
const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
|
|
@@ -30286,7 +30307,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
|
|
|
30286
30307
|
return loadTestsFromAgentSkills(evalFilePath);
|
|
30287
30308
|
}
|
|
30288
30309
|
if (format === "typescript") {
|
|
30289
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
30310
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-PA4YFM5D-2DKQQQOZ.js");
|
|
30290
30311
|
const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
30291
30312
|
return suite.tests;
|
|
30292
30313
|
}
|
|
@@ -33964,6 +33985,7 @@ export {
|
|
|
33964
33985
|
DEFAULT_GRADER_TEMPLATE,
|
|
33965
33986
|
freeformEvaluationSchema,
|
|
33966
33987
|
rubricEvaluationSchema,
|
|
33988
|
+
scoreRangeEvaluationSchema,
|
|
33967
33989
|
LlmGrader,
|
|
33968
33990
|
buildOutputSchema,
|
|
33969
33991
|
buildRubricOutputSchema,
|
|
@@ -34069,4 +34091,4 @@ export {
|
|
|
34069
34091
|
loadTsEvalFile,
|
|
34070
34092
|
loadTsEvalSuite
|
|
34071
34093
|
};
|
|
34072
|
-
//# sourceMappingURL=chunk-
|
|
34094
|
+
//# sourceMappingURL=chunk-4YZDPAGZ.js.map
|