agentv 2.18.2 → 2.18.4
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 +11 -2
- package/dist/{chunk-ZCUOH72A.js → chunk-KSUL3F3R.js} +6 -6
- package/dist/chunk-KSUL3F3R.js.map +1 -0
- package/dist/{chunk-PJBBVLLB.js → chunk-RMUVJ44Z.js} +130 -64
- package/dist/chunk-RMUVJ44Z.js.map +1 -0
- package/dist/{chunk-ID5SDIYE.js → chunk-YTHTGLMT.js} +20 -2
- package/dist/chunk-YTHTGLMT.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{dist-CRELSNY6.js → dist-EDQZMZH2.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{interactive-RJTBLMVF.js → interactive-J4IBXJF7.js} +3 -3
- package/dist/templates/.agentv/config.yaml +5 -0
- package/dist/templates/.agentv/targets.yaml +7 -7
- package/package.json +1 -1
- package/dist/chunk-ID5SDIYE.js.map +0 -1
- package/dist/chunk-PJBBVLLB.js.map +0 -1
- package/dist/chunk-ZCUOH72A.js.map +0 -1
- /package/dist/{dist-CRELSNY6.js.map → dist-EDQZMZH2.js.map} +0 -0
- /package/dist/{interactive-RJTBLMVF.js.map → interactive-J4IBXJF7.js.map} +0 -0
|
@@ -34711,6 +34711,11 @@ async function parseEvaluatorList(candidateEvaluators, searchRoots, evalId) {
|
|
|
34711
34711
|
}
|
|
34712
34712
|
if (typeValue === "code-judge") {
|
|
34713
34713
|
let command;
|
|
34714
|
+
if (rawEvaluator.script !== void 0 && rawEvaluator.command === void 0) {
|
|
34715
|
+
console.warn(
|
|
34716
|
+
`${ANSI_YELLOW4}Warning: 'script' is deprecated in evaluator '${name16}' in '${evalId}'. Use 'command' instead.${ANSI_RESET4}`
|
|
34717
|
+
);
|
|
34718
|
+
}
|
|
34714
34719
|
const rawCommand = rawEvaluator.command ?? rawEvaluator.script;
|
|
34715
34720
|
if (typeof rawCommand === "string") {
|
|
34716
34721
|
const trimmed = rawCommand.trim();
|
|
@@ -35469,6 +35474,11 @@ async function parseEvaluatorList(candidateEvaluators, searchRoots, evalId) {
|
|
|
35469
35474
|
let resolvedPromptScript;
|
|
35470
35475
|
let promptScriptConfig;
|
|
35471
35476
|
if (isJsonObject2(rawPrompt)) {
|
|
35477
|
+
if (rawPrompt.script !== void 0 && rawPrompt.command === void 0) {
|
|
35478
|
+
console.warn(
|
|
35479
|
+
`${ANSI_YELLOW4}Warning: 'prompt.script' is deprecated in evaluator '${name16}' in '${evalId}'. Use 'prompt.command' instead.${ANSI_RESET4}`
|
|
35480
|
+
);
|
|
35481
|
+
}
|
|
35472
35482
|
const commandArray = asStringArray(
|
|
35473
35483
|
rawPrompt.command ?? rawPrompt.script,
|
|
35474
35484
|
`prompt.command for evaluator '${name16}' in '${evalId}'`
|
|
@@ -36972,6 +36982,9 @@ var loadEvalCaseById = loadTestById;
|
|
|
36972
36982
|
function parseWorkspaceScriptConfig(raw, evalFileDir) {
|
|
36973
36983
|
if (!isJsonObject(raw)) return void 0;
|
|
36974
36984
|
const obj = raw;
|
|
36985
|
+
if (obj.script !== void 0 && obj.command === void 0) {
|
|
36986
|
+
logWarning6("'script' is deprecated. Use 'command' instead.");
|
|
36987
|
+
}
|
|
36975
36988
|
const commandSource = obj.command ?? obj.script;
|
|
36976
36989
|
if (!Array.isArray(commandSource) || commandSource.length === 0) return void 0;
|
|
36977
36990
|
const commandArr = commandSource.filter((s) => typeof s === "string");
|
|
@@ -41104,7 +41117,7 @@ async function waitForBatchResponses(responseFilesFinal, pollInterval = 1e3, sil
|
|
|
41104
41117
|
var logged = false;
|
|
41105
41118
|
function getAgentvHome() {
|
|
41106
41119
|
const envHome = process.env.AGENTV_HOME;
|
|
41107
|
-
if (envHome) {
|
|
41120
|
+
if (envHome && envHome !== "undefined") {
|
|
41108
41121
|
if (!logged) {
|
|
41109
41122
|
logged = true;
|
|
41110
41123
|
console.warn(`Using AGENTV_HOME: ${envHome}`);
|
|
@@ -47026,6 +47039,11 @@ async function executeWorkspaceScript(config2, context, failureMode = "fatal") {
|
|
|
47026
47039
|
});
|
|
47027
47040
|
const timeoutMs = config2.timeout_ms ?? (failureMode === "fatal" ? 6e4 : 3e4);
|
|
47028
47041
|
const cwd = config2.cwd ?? context.evalDir;
|
|
47042
|
+
if (config2.script !== void 0 && config2.command === void 0) {
|
|
47043
|
+
console.warn(
|
|
47044
|
+
"\x1B[33mWarning: 'script' is deprecated in workspace config. Use 'command' instead.\x1B[0m"
|
|
47045
|
+
);
|
|
47046
|
+
}
|
|
47029
47047
|
const rawCommand = config2.command ?? config2.script ?? [];
|
|
47030
47048
|
const commandArray = interpolateArgs(rawCommand, context);
|
|
47031
47049
|
const result = await execFileWithStdin(commandArray, stdin, {
|
|
@@ -49765,4 +49783,4 @@ export {
|
|
|
49765
49783
|
OtelStreamingObserver,
|
|
49766
49784
|
createAgentKernel
|
|
49767
49785
|
};
|
|
49768
|
-
//# sourceMappingURL=chunk-
|
|
49786
|
+
//# sourceMappingURL=chunk-YTHTGLMT.js.map
|