agentv 4.15.5 → 4.15.6
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/{chunk-K4QF5TNX.js → chunk-FS2VJLII.js} +19 -12
- package/dist/chunk-FS2VJLII.js.map +1 -0
- package/dist/{chunk-UFQJ6BGH.js → chunk-FZA7AWRQ.js} +5 -5
- package/dist/{chunk-UFQJ6BGH.js.map → chunk-FZA7AWRQ.js.map} +1 -1
- package/dist/{chunk-N75UZXEH.js → chunk-NH56CTFS.js} +4 -4
- package/dist/cli.js +3 -3
- package/dist/{dist-ZVTERRJS.js → dist-QUVZ5QKG.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{interactive-EGDQN54F.js → interactive-7Z5D253X.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-K4QF5TNX.js.map +0 -1
- /package/dist/{chunk-N75UZXEH.js.map → chunk-NH56CTFS.js.map} +0 -0
- /package/dist/{dist-ZVTERRJS.js.map → dist-QUVZ5QKG.js.map} +0 -0
- /package/dist/{interactive-EGDQN54F.js.map → interactive-7Z5D253X.js.map} +0 -0
|
@@ -305,7 +305,7 @@ var require_dist = __commonJS({
|
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
// ../../packages/core/dist/chunk-
|
|
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-
|
|
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-
|
|
35761
|
+
//# sourceMappingURL=chunk-FS2VJLII.js.map
|