agentv 4.15.5 → 4.15.6-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.
@@ -42,7 +42,7 @@ import {
42
42
  validateFileReferences,
43
43
  validateTargetsFile,
44
44
  writeArtifactsFromResults
45
- } from "./chunk-UFQJ6BGH.js";
45
+ } from "./chunk-SXL2E6XR.js";
46
46
  import {
47
47
  DEFAULT_CATEGORY,
48
48
  DEFAULT_THRESHOLD,
@@ -76,7 +76,7 @@ import {
76
76
  toTranscriptJsonLines,
77
77
  transpileEvalYamlFile,
78
78
  trimBaselineResult
79
- } from "./chunk-K4QF5TNX.js";
79
+ } from "./chunk-FS2VJLII.js";
80
80
  import {
81
81
  __commonJS,
82
82
  __require,
@@ -3916,7 +3916,7 @@ var evalRunCommand = command({
3916
3916
  },
3917
3917
  handler: async (args) => {
3918
3918
  if (args.evalPaths.length === 0 && process.stdin.isTTY) {
3919
- const { launchInteractiveWizard } = await import("./interactive-EGDQN54F.js");
3919
+ const { launchInteractiveWizard } = await import("./interactive-4U4UWIFM.js");
3920
3920
  await launchInteractiveWizard();
3921
3921
  return;
3922
3922
  }
@@ -10066,4 +10066,4 @@ export {
10066
10066
  preprocessArgv,
10067
10067
  runCli
10068
10068
  };
10069
- //# sourceMappingURL=chunk-N75UZXEH.js.map
10069
+ //# sourceMappingURL=chunk-CPXIET6B.js.map
@@ -305,7 +305,7 @@ var require_dist = __commonJS({
305
305
  }
306
306
  });
307
307
 
308
- // ../../packages/core/dist/chunk-AOOU6PLC.js
308
+ // ../../packages/core/dist/chunk-HVEQNYTC.js
309
309
  import { constants } from "node:fs";
310
310
  import { access, readFile } from "node:fs/promises";
311
311
  import path from "node:path";
@@ -423,7 +423,7 @@ __export(external_exports2, {
423
423
  void: () => voidType
424
424
  });
425
425
 
426
- // ../../packages/core/dist/chunk-AOOU6PLC.js
426
+ // ../../packages/core/dist/chunk-HVEQNYTC.js
427
427
  import { readFile as readFile2 } from "node:fs/promises";
428
428
  import path3 from "node:path";
429
429
  import fg from "fast-glob";
@@ -18444,7 +18444,7 @@ async function resolveWorkspaceConfig(raw, evalFileDir) {
18444
18444
  const workspaceFileDir = path8.dirname(workspaceFilePath);
18445
18445
  const resolvedWorkspace = parseWorkspaceConfig(parsed, workspaceFileDir);
18446
18446
  if (resolvedWorkspace) {
18447
- return resolvedWorkspace;
18447
+ return { ...resolvedWorkspace, workspaceFileDir };
18448
18448
  }
18449
18449
  const parsedObject = parsed;
18450
18450
  if ("workspace" in parsedObject && isJsonObject(parsedObject.workspace)) {
@@ -18535,7 +18535,8 @@ function mergeWorkspaceConfigs(suiteLevel, caseLevel) {
18535
18535
  ...hasHooks && { hooks: mergedHooks },
18536
18536
  mode: caseLevel.mode ?? suiteLevel.mode,
18537
18537
  path: caseLevel.path ?? suiteLevel.path,
18538
- docker: caseLevel.docker ?? suiteLevel.docker
18538
+ docker: caseLevel.docker ?? suiteLevel.docker,
18539
+ workspaceFileDir: caseLevel.workspaceFileDir ?? suiteLevel.workspaceFileDir
18539
18540
  };
18540
18541
  }
18541
18542
  function asString5(value) {
@@ -30859,7 +30860,7 @@ async function executeWorkspaceScript(config, context2, failureMode = "fatal") {
30859
30860
  case_metadata: context2.caseMetadata ?? null
30860
30861
  });
30861
30862
  const timeoutMs = config.timeout_ms ?? (failureMode === "fatal" ? 6e4 : 3e4);
30862
- const cwd = config.cwd ?? context2.evalDir;
30863
+ const cwd = config.cwd ?? context2.workspaceFileDir ?? context2.evalDir;
30863
30864
  if (config.script !== void 0 && config.command === void 0) {
30864
30865
  console.warn(
30865
30866
  "\x1B[33mWarning: 'script' is deprecated in workspace config. Use 'command' instead.\x1B[0m"
@@ -31470,7 +31471,8 @@ async function runEvaluation(options) {
31470
31471
  workspacePath: sharedWorkspacePath,
31471
31472
  testId: "__before_all__",
31472
31473
  evalRunId,
31473
- evalDir
31474
+ evalDir,
31475
+ workspaceFileDir: suiteWorkspace?.workspaceFileDir
31474
31476
  };
31475
31477
  try {
31476
31478
  beforeAllOutput = await executeWorkspaceScript(
@@ -31495,7 +31497,8 @@ async function runEvaluation(options) {
31495
31497
  workspacePath: slot.path,
31496
31498
  testId: "__before_all__",
31497
31499
  evalRunId,
31498
- evalDir
31500
+ evalDir,
31501
+ workspaceFileDir: suiteWorkspace?.workspaceFileDir
31499
31502
  };
31500
31503
  try {
31501
31504
  const output = await executeWorkspaceScript(
@@ -31804,7 +31807,8 @@ async function runEvaluation(options) {
31804
31807
  workspacePath: wsPath,
31805
31808
  testId: "__after_all__",
31806
31809
  evalRunId,
31807
- evalDir
31810
+ evalDir,
31811
+ workspaceFileDir: suiteWorkspace?.workspaceFileDir
31808
31812
  };
31809
31813
  try {
31810
31814
  const afterAllOutput = await executeWorkspaceScript(
@@ -32180,7 +32184,8 @@ async function runEvalCase(options) {
32180
32184
  evalRunId: evalRunId ?? "",
32181
32185
  caseInput: evalCase.question,
32182
32186
  caseMetadata: evalCase.metadata,
32183
- evalDir
32187
+ evalDir,
32188
+ workspaceFileDir: evalCase.workspace?.workspaceFileDir
32184
32189
  };
32185
32190
  try {
32186
32191
  beforeAllOutput = await executeWorkspaceScript(
@@ -32250,7 +32255,8 @@ async function runEvalCase(options) {
32250
32255
  evalRunId: evalRunId ?? "",
32251
32256
  caseInput: evalCase.question,
32252
32257
  caseMetadata: evalCase.metadata,
32253
- evalDir
32258
+ evalDir,
32259
+ workspaceFileDir: evalCase.workspace?.workspaceFileDir
32254
32260
  };
32255
32261
  try {
32256
32262
  beforeEachOutput = await executeWorkspaceScript(
@@ -32454,7 +32460,8 @@ ${providerFileChanges}` : providerFileChanges;
32454
32460
  evalRunId: evalRunId ?? "",
32455
32461
  caseInput: evalCase.question,
32456
32462
  caseMetadata: evalCase.metadata,
32457
- evalDir
32463
+ evalDir,
32464
+ workspaceFileDir: evalCase.workspace?.workspaceFileDir
32458
32465
  };
32459
32466
  try {
32460
32467
  afterEachOutput = await executeWorkspaceScript(
@@ -35751,4 +35758,4 @@ export {
35751
35758
  TranscriptProvider,
35752
35759
  createAgentKernel
35753
35760
  };
35754
- //# sourceMappingURL=chunk-K4QF5TNX.js.map
35761
+ //# sourceMappingURL=chunk-FS2VJLII.js.map