@agentv/core 2.1.0 → 2.1.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/evaluation/validation/index.cjs +0 -11
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +0 -11
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +2 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -257,7 +257,6 @@ async function resolveFileReference2(rawValue, searchRoots) {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
// src/evaluation/loaders/config-loader.ts
|
|
260
|
-
var SCHEMA_CONFIG_V2 = "agentv-config-v2";
|
|
261
260
|
var ANSI_YELLOW = "\x1B[33m";
|
|
262
261
|
var ANSI_RESET = "\x1B[0m";
|
|
263
262
|
async function loadConfig(evalFilePath, repoRoot) {
|
|
@@ -275,13 +274,6 @@ async function loadConfig(evalFilePath, repoRoot) {
|
|
|
275
274
|
continue;
|
|
276
275
|
}
|
|
277
276
|
const config = parsed;
|
|
278
|
-
const schema = config.$schema;
|
|
279
|
-
if (schema !== SCHEMA_CONFIG_V2) {
|
|
280
|
-
const message = typeof schema === "string" ? `Invalid $schema value '${schema}' in ${configPath}. Expected '${SCHEMA_CONFIG_V2}'` : `Missing required field '$schema' in ${configPath}.
|
|
281
|
-
Please add '$schema: ${SCHEMA_CONFIG_V2}' at the top of the file.`;
|
|
282
|
-
logWarning(message);
|
|
283
|
-
continue;
|
|
284
|
-
}
|
|
285
277
|
const guidelinePatterns = config.guideline_patterns;
|
|
286
278
|
if (guidelinePatterns !== void 0 && !Array.isArray(guidelinePatterns)) {
|
|
287
279
|
logWarning(`Invalid guideline_patterns in ${configPath}, expected array`);
|
|
@@ -390,7 +382,8 @@ var ANSI_YELLOW3 = "\x1B[33m";
|
|
|
390
382
|
var ANSI_RESET3 = "\x1B[0m";
|
|
391
383
|
async function parseEvaluators(rawEvalCase, globalExecution, searchRoots, evalId) {
|
|
392
384
|
const execution = rawEvalCase.execution;
|
|
393
|
-
const
|
|
385
|
+
const executionObject = isJsonObject2(execution) ? execution : void 0;
|
|
386
|
+
const candidateEvaluators = (executionObject ? executionObject.evaluators : void 0) ?? rawEvalCase.evaluators ?? globalExecution?.evaluators;
|
|
394
387
|
if (candidateEvaluators === void 0) {
|
|
395
388
|
return void 0;
|
|
396
389
|
}
|