agentv 2.18.3 → 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.
@@ -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");
@@ -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-BM77B57R.js.map
49786
+ //# sourceMappingURL=chunk-YTHTGLMT.js.map