@agentv/core 4.15.5-next.1 → 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.
- package/dist/{chunk-AOOU6PLC.js → chunk-HVEQNYTC.js} +1 -1
- package/dist/chunk-HVEQNYTC.js.map +1 -0
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +1 -1
- package/dist/index.cjs +16 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +17 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-AOOU6PLC.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6081,7 +6081,7 @@ async function resolveWorkspaceConfig(raw, evalFileDir) {
|
|
|
6081
6081
|
const workspaceFileDir = import_node_path9.default.dirname(workspaceFilePath);
|
|
6082
6082
|
const resolvedWorkspace = parseWorkspaceConfig(parsed, workspaceFileDir);
|
|
6083
6083
|
if (resolvedWorkspace) {
|
|
6084
|
-
return resolvedWorkspace;
|
|
6084
|
+
return { ...resolvedWorkspace, workspaceFileDir };
|
|
6085
6085
|
}
|
|
6086
6086
|
const parsedObject = parsed;
|
|
6087
6087
|
if ("workspace" in parsedObject && isJsonObject(parsedObject.workspace)) {
|
|
@@ -6172,7 +6172,8 @@ function mergeWorkspaceConfigs(suiteLevel, caseLevel) {
|
|
|
6172
6172
|
...hasHooks && { hooks: mergedHooks },
|
|
6173
6173
|
mode: caseLevel.mode ?? suiteLevel.mode,
|
|
6174
6174
|
path: caseLevel.path ?? suiteLevel.path,
|
|
6175
|
-
docker: caseLevel.docker ?? suiteLevel.docker
|
|
6175
|
+
docker: caseLevel.docker ?? suiteLevel.docker,
|
|
6176
|
+
workspaceFileDir: caseLevel.workspaceFileDir ?? suiteLevel.workspaceFileDir
|
|
6176
6177
|
};
|
|
6177
6178
|
}
|
|
6178
6179
|
function asString5(value) {
|
|
@@ -20611,7 +20612,7 @@ async function executeWorkspaceScript(config, context2, failureMode = "fatal") {
|
|
|
20611
20612
|
case_metadata: context2.caseMetadata ?? null
|
|
20612
20613
|
});
|
|
20613
20614
|
const timeoutMs = config.timeout_ms ?? (failureMode === "fatal" ? 6e4 : 3e4);
|
|
20614
|
-
const cwd = config.cwd ?? context2.evalDir;
|
|
20615
|
+
const cwd = config.cwd ?? context2.workspaceFileDir ?? context2.evalDir;
|
|
20615
20616
|
if (config.script !== void 0 && config.command === void 0) {
|
|
20616
20617
|
console.warn(
|
|
20617
20618
|
"\x1B[33mWarning: 'script' is deprecated in workspace config. Use 'command' instead.\x1B[0m"
|
|
@@ -21224,7 +21225,8 @@ async function runEvaluation(options) {
|
|
|
21224
21225
|
workspacePath: sharedWorkspacePath,
|
|
21225
21226
|
testId: "__before_all__",
|
|
21226
21227
|
evalRunId,
|
|
21227
|
-
evalDir
|
|
21228
|
+
evalDir,
|
|
21229
|
+
workspaceFileDir: suiteWorkspace?.workspaceFileDir
|
|
21228
21230
|
};
|
|
21229
21231
|
try {
|
|
21230
21232
|
beforeAllOutput = await executeWorkspaceScript(
|
|
@@ -21249,7 +21251,8 @@ async function runEvaluation(options) {
|
|
|
21249
21251
|
workspacePath: slot.path,
|
|
21250
21252
|
testId: "__before_all__",
|
|
21251
21253
|
evalRunId,
|
|
21252
|
-
evalDir
|
|
21254
|
+
evalDir,
|
|
21255
|
+
workspaceFileDir: suiteWorkspace?.workspaceFileDir
|
|
21253
21256
|
};
|
|
21254
21257
|
try {
|
|
21255
21258
|
const output = await executeWorkspaceScript(
|
|
@@ -21558,7 +21561,8 @@ async function runEvaluation(options) {
|
|
|
21558
21561
|
workspacePath: wsPath,
|
|
21559
21562
|
testId: "__after_all__",
|
|
21560
21563
|
evalRunId,
|
|
21561
|
-
evalDir
|
|
21564
|
+
evalDir,
|
|
21565
|
+
workspaceFileDir: suiteWorkspace?.workspaceFileDir
|
|
21562
21566
|
};
|
|
21563
21567
|
try {
|
|
21564
21568
|
const afterAllOutput = await executeWorkspaceScript(
|
|
@@ -21934,7 +21938,8 @@ async function runEvalCase(options) {
|
|
|
21934
21938
|
evalRunId: evalRunId ?? "",
|
|
21935
21939
|
caseInput: evalCase.question,
|
|
21936
21940
|
caseMetadata: evalCase.metadata,
|
|
21937
|
-
evalDir
|
|
21941
|
+
evalDir,
|
|
21942
|
+
workspaceFileDir: evalCase.workspace?.workspaceFileDir
|
|
21938
21943
|
};
|
|
21939
21944
|
try {
|
|
21940
21945
|
beforeAllOutput = await executeWorkspaceScript(
|
|
@@ -22004,7 +22009,8 @@ async function runEvalCase(options) {
|
|
|
22004
22009
|
evalRunId: evalRunId ?? "",
|
|
22005
22010
|
caseInput: evalCase.question,
|
|
22006
22011
|
caseMetadata: evalCase.metadata,
|
|
22007
|
-
evalDir
|
|
22012
|
+
evalDir,
|
|
22013
|
+
workspaceFileDir: evalCase.workspace?.workspaceFileDir
|
|
22008
22014
|
};
|
|
22009
22015
|
try {
|
|
22010
22016
|
beforeEachOutput = await executeWorkspaceScript(
|
|
@@ -22208,7 +22214,8 @@ ${providerFileChanges}` : providerFileChanges;
|
|
|
22208
22214
|
evalRunId: evalRunId ?? "",
|
|
22209
22215
|
caseInput: evalCase.question,
|
|
22210
22216
|
caseMetadata: evalCase.metadata,
|
|
22211
|
-
evalDir
|
|
22217
|
+
evalDir,
|
|
22218
|
+
workspaceFileDir: evalCase.workspace?.workspaceFileDir
|
|
22212
22219
|
};
|
|
22213
22220
|
try {
|
|
22214
22221
|
afterEachOutput = await executeWorkspaceScript(
|