agentv 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.
|
@@ -35256,7 +35256,6 @@ async function resolveFileReference2(rawValue, searchRoots) {
|
|
|
35256
35256
|
}
|
|
35257
35257
|
return { displayPath, attempted };
|
|
35258
35258
|
}
|
|
35259
|
-
var SCHEMA_CONFIG_V2 = "agentv-config-v2";
|
|
35260
35259
|
var ANSI_YELLOW = "\x1B[33m";
|
|
35261
35260
|
var ANSI_RESET = "\x1B[0m";
|
|
35262
35261
|
async function loadConfig(evalFilePath, repoRoot) {
|
|
@@ -35274,13 +35273,6 @@ async function loadConfig(evalFilePath, repoRoot) {
|
|
|
35274
35273
|
continue;
|
|
35275
35274
|
}
|
|
35276
35275
|
const config2 = parsed;
|
|
35277
|
-
const schema = config2.$schema;
|
|
35278
|
-
if (schema !== SCHEMA_CONFIG_V2) {
|
|
35279
|
-
const message = typeof schema === "string" ? `Invalid $schema value '${schema}' in ${configPath}. Expected '${SCHEMA_CONFIG_V2}'` : `Missing required field '$schema' in ${configPath}.
|
|
35280
|
-
Please add '$schema: ${SCHEMA_CONFIG_V2}' at the top of the file.`;
|
|
35281
|
-
logWarning(message);
|
|
35282
|
-
continue;
|
|
35283
|
-
}
|
|
35284
35276
|
const guidelinePatterns = config2.guideline_patterns;
|
|
35285
35277
|
if (guidelinePatterns !== void 0 && !Array.isArray(guidelinePatterns)) {
|
|
35286
35278
|
logWarning(`Invalid guideline_patterns in ${configPath}, expected array`);
|
|
@@ -35377,7 +35369,8 @@ var ANSI_YELLOW3 = "\x1B[33m";
|
|
|
35377
35369
|
var ANSI_RESET3 = "\x1B[0m";
|
|
35378
35370
|
async function parseEvaluators(rawEvalCase, globalExecution, searchRoots, evalId) {
|
|
35379
35371
|
const execution = rawEvalCase.execution;
|
|
35380
|
-
const
|
|
35372
|
+
const executionObject = isJsonObject2(execution) ? execution : void 0;
|
|
35373
|
+
const candidateEvaluators = (executionObject ? executionObject.evaluators : void 0) ?? rawEvalCase.evaluators ?? globalExecution?.evaluators;
|
|
35381
35374
|
if (candidateEvaluators === void 0) {
|
|
35382
35375
|
return void 0;
|
|
35383
35376
|
}
|
|
@@ -44076,7 +44069,7 @@ import path43 from "node:path";
|
|
|
44076
44069
|
import { parse as parse52 } from "yaml";
|
|
44077
44070
|
var SCHEMA_EVAL_V2 = "agentv-eval-v2";
|
|
44078
44071
|
var SCHEMA_TARGETS_V2 = "agentv-targets-v2.2";
|
|
44079
|
-
var
|
|
44072
|
+
var SCHEMA_CONFIG_V2 = "agentv-config-v2";
|
|
44080
44073
|
async function detectFileType(filePath) {
|
|
44081
44074
|
try {
|
|
44082
44075
|
const content = await readFile7(filePath, "utf8");
|
|
@@ -44094,7 +44087,7 @@ async function detectFileType(filePath) {
|
|
|
44094
44087
|
return "eval";
|
|
44095
44088
|
case SCHEMA_TARGETS_V2:
|
|
44096
44089
|
return "targets";
|
|
44097
|
-
case
|
|
44090
|
+
case SCHEMA_CONFIG_V2:
|
|
44098
44091
|
return "config";
|
|
44099
44092
|
default:
|
|
44100
44093
|
return inferFileTypeFromPath(filePath);
|
|
@@ -44682,7 +44675,6 @@ async function validateTargetsFile(filePath) {
|
|
|
44682
44675
|
errors
|
|
44683
44676
|
};
|
|
44684
44677
|
}
|
|
44685
|
-
var SCHEMA_CONFIG_V222 = "agentv-config-v2";
|
|
44686
44678
|
async function validateConfigFile(filePath) {
|
|
44687
44679
|
const errors = [];
|
|
44688
44680
|
try {
|
|
@@ -44697,16 +44689,6 @@ async function validateConfigFile(filePath) {
|
|
|
44697
44689
|
return { valid: false, filePath, fileType: "config", errors };
|
|
44698
44690
|
}
|
|
44699
44691
|
const config2 = parsed;
|
|
44700
|
-
const schema = config2.$schema;
|
|
44701
|
-
if (schema !== void 0 && schema !== SCHEMA_CONFIG_V222) {
|
|
44702
|
-
const message = `Invalid $schema value '${schema}'. Expected '${SCHEMA_CONFIG_V222}' or omit the field.`;
|
|
44703
|
-
errors.push({
|
|
44704
|
-
severity: "error",
|
|
44705
|
-
filePath,
|
|
44706
|
-
location: "$schema",
|
|
44707
|
-
message
|
|
44708
|
-
});
|
|
44709
|
-
}
|
|
44710
44692
|
const guidelinePatterns = config2.guideline_patterns;
|
|
44711
44693
|
if (guidelinePatterns !== void 0) {
|
|
44712
44694
|
if (!Array.isArray(guidelinePatterns)) {
|
|
@@ -46224,4 +46206,4 @@ export {
|
|
|
46224
46206
|
app,
|
|
46225
46207
|
runCli
|
|
46226
46208
|
};
|
|
46227
|
-
//# sourceMappingURL=chunk-
|
|
46209
|
+
//# sourceMappingURL=chunk-HTTN5OWL.js.map
|