agentv 2.15.0 → 2.16.0
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-IKGJTJSU.js → chunk-JZ62HLUC.js} +68 -120
- package/dist/chunk-JZ62HLUC.js.map +1 -0
- package/dist/{chunk-VBK7BJLE.js → chunk-LZ5MPQFM.js} +210 -245
- package/dist/chunk-LZ5MPQFM.js.map +1 -0
- package/dist/{chunk-ZDSLKUCM.js → chunk-QLCVA3ZS.js} +38 -17
- package/dist/chunk-QLCVA3ZS.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{dist-XZPR3AGM.js → dist-BMNEH377.js} +2 -4
- package/dist/index.js +3 -3
- package/dist/{interactive-SSGXAAKA.js → interactive-ZXYNPRCT.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-IKGJTJSU.js.map +0 -1
- package/dist/chunk-VBK7BJLE.js.map +0 -1
- package/dist/chunk-ZDSLKUCM.js.map +0 -1
- /package/dist/{dist-XZPR3AGM.js.map → dist-BMNEH377.js.map} +0 -0
- /package/dist/{interactive-SSGXAAKA.js.map → interactive-ZXYNPRCT.js.map} +0 -0
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
subscribeToCopilotCliLogEntries,
|
|
26
26
|
subscribeToCopilotSdkLogEntries,
|
|
27
27
|
subscribeToPiLogEntries
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LZ5MPQFM.js";
|
|
29
29
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "agentv",
|
|
33
|
-
version: "2.
|
|
33
|
+
version: "2.16.0",
|
|
34
34
|
description: "CLI entry point for AgentV",
|
|
35
35
|
type: "module",
|
|
36
36
|
repository: {
|
|
@@ -1471,7 +1471,8 @@ async function validateEvalFile(filePath) {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
function validateWorkspaceRepoConfig(workspace, filePath, errors) {
|
|
1473
1473
|
const repos = workspace.repos;
|
|
1474
|
-
const
|
|
1474
|
+
const hooks = workspace.hooks;
|
|
1475
|
+
const afterEachHook = isObject(hooks) ? hooks.after_each_test : void 0;
|
|
1475
1476
|
const isolation = workspace.isolation;
|
|
1476
1477
|
if (Array.isArray(repos)) {
|
|
1477
1478
|
for (const repo of repos) {
|
|
@@ -1492,22 +1493,22 @@ function validateWorkspaceRepoConfig(workspace, filePath, errors) {
|
|
|
1492
1493
|
}
|
|
1493
1494
|
}
|
|
1494
1495
|
}
|
|
1495
|
-
if (isObject(
|
|
1496
|
+
if (isObject(afterEachHook) && afterEachHook.reset && afterEachHook.reset !== "none") {
|
|
1496
1497
|
if (!Array.isArray(repos) || repos.length === 0) {
|
|
1497
1498
|
errors.push({
|
|
1498
1499
|
severity: "warning",
|
|
1499
1500
|
filePath,
|
|
1500
|
-
location: "workspace.
|
|
1501
|
-
message: `reset
|
|
1501
|
+
location: "workspace.hooks.after_each_test",
|
|
1502
|
+
message: `hooks.after_each_test.reset '${afterEachHook.reset}' has no effect without repos.`
|
|
1502
1503
|
});
|
|
1503
1504
|
}
|
|
1504
1505
|
}
|
|
1505
|
-
if (isObject(
|
|
1506
|
+
if (isObject(afterEachHook) && afterEachHook.reset && isolation === "per_test") {
|
|
1506
1507
|
errors.push({
|
|
1507
1508
|
severity: "warning",
|
|
1508
1509
|
filePath,
|
|
1509
|
-
location: "workspace.
|
|
1510
|
-
message: "reset
|
|
1510
|
+
location: "workspace.hooks.after_each_test",
|
|
1511
|
+
message: "hooks.after_each_test.reset is redundant with isolation: per_test (each test gets a fresh workspace)."
|
|
1511
1512
|
});
|
|
1512
1513
|
}
|
|
1513
1514
|
}
|
|
@@ -2630,6 +2631,15 @@ function normalizeOptionalNumber(value) {
|
|
|
2630
2631
|
}
|
|
2631
2632
|
return void 0;
|
|
2632
2633
|
}
|
|
2634
|
+
function normalizeWorkspaceMode(value) {
|
|
2635
|
+
return value === "pooled" || value === "ephemeral" || value === "static" ? value : void 0;
|
|
2636
|
+
}
|
|
2637
|
+
function normalizeWorkspaceClean(value) {
|
|
2638
|
+
return value === "standard" || value === "full" ? value : void 0;
|
|
2639
|
+
}
|
|
2640
|
+
function normalizeRetention(value) {
|
|
2641
|
+
return value === "keep" || value === "cleanup" ? value : void 0;
|
|
2642
|
+
}
|
|
2633
2643
|
function normalizeOptions(rawOptions, config, yamlExecution) {
|
|
2634
2644
|
const cliFormat = normalizeString(rawOptions.outputFormat);
|
|
2635
2645
|
const configFormat = config?.output?.format;
|
|
@@ -2695,10 +2705,15 @@ function normalizeOptions(rawOptions, config, yamlExecution) {
|
|
|
2695
2705
|
otelCaptureContent: normalizeBoolean(rawOptions.otelCaptureContent),
|
|
2696
2706
|
otelGroupTurns: normalizeBoolean(rawOptions.otelGroupTurns),
|
|
2697
2707
|
retryErrors: normalizeString(rawOptions.retryErrors),
|
|
2698
|
-
// Pool:
|
|
2699
|
-
poolWorkspaces: normalizeBoolean(rawOptions.poolWorkspaces)
|
|
2708
|
+
// Pool: --no-pool explicitly disables; --pool-workspaces explicitly enables; YAML config; default undefined (orchestrator defaults to true)
|
|
2709
|
+
poolWorkspaces: normalizeBoolean(rawOptions.noPool) ? false : normalizeBoolean(rawOptions.poolWorkspaces) ? true : yamlExecution?.pool_workspaces,
|
|
2700
2710
|
poolMaxSlots: yamlExecution?.pool_slots,
|
|
2701
|
-
workspace: normalizeString(rawOptions.workspace)
|
|
2711
|
+
workspace: normalizeString(rawOptions.workspace),
|
|
2712
|
+
workspaceMode: normalizeWorkspaceMode(rawOptions.workspaceMode),
|
|
2713
|
+
workspacePath: normalizeString(rawOptions.workspacePath),
|
|
2714
|
+
workspaceClean: normalizeWorkspaceClean(rawOptions.workspaceClean),
|
|
2715
|
+
retainOnSuccess: normalizeRetention(rawOptions.retainOnSuccess) ?? (normalizeBoolean(rawOptions.keepWorkspaces) ? "keep" : void 0),
|
|
2716
|
+
retainOnFailure: normalizeRetention(rawOptions.retainOnFailure) ?? (normalizeBoolean(rawOptions.cleanupWorkspaces) ? "cleanup" : void 0)
|
|
2702
2717
|
};
|
|
2703
2718
|
}
|
|
2704
2719
|
async function ensureFileExists(filePath, description) {
|
|
@@ -2931,6 +2946,11 @@ async function runSingleEvalFile(params) {
|
|
|
2931
2946
|
poolWorkspaces: options.poolWorkspaces,
|
|
2932
2947
|
poolMaxSlots: options.poolMaxSlots,
|
|
2933
2948
|
workspace: options.workspace,
|
|
2949
|
+
workspaceMode: options.workspaceMode,
|
|
2950
|
+
workspacePath: options.workspacePath,
|
|
2951
|
+
workspaceClean: options.workspaceClean,
|
|
2952
|
+
retainOnSuccess: options.retainOnSuccess,
|
|
2953
|
+
retainOnFailure: options.retainOnFailure,
|
|
2934
2954
|
trials: trialsConfig,
|
|
2935
2955
|
totalBudgetUsd,
|
|
2936
2956
|
failOnError,
|
|
@@ -3012,8 +3032,9 @@ async function runEvalCommand(input) {
|
|
|
3012
3032
|
"Warning: Both --keep-workspaces and --cleanup-workspaces specified. --cleanup-workspaces takes precedence."
|
|
3013
3033
|
);
|
|
3014
3034
|
}
|
|
3015
|
-
|
|
3016
|
-
|
|
3035
|
+
const explicitWorkspacePath = options.workspacePath ?? options.workspace;
|
|
3036
|
+
if (explicitWorkspacePath) {
|
|
3037
|
+
const resolvedWorkspace = path10.resolve(explicitWorkspacePath);
|
|
3017
3038
|
try {
|
|
3018
3039
|
const { stat: stat2 } = await import("node:fs/promises");
|
|
3019
3040
|
const stats = await stat2(resolvedWorkspace);
|
|
@@ -3026,7 +3047,7 @@ async function runEvalCommand(input) {
|
|
|
3026
3047
|
}
|
|
3027
3048
|
throw err;
|
|
3028
3049
|
}
|
|
3029
|
-
options = { ...options, workspace: resolvedWorkspace };
|
|
3050
|
+
options = { ...options, workspace: resolvedWorkspace, workspacePath: resolvedWorkspace };
|
|
3030
3051
|
}
|
|
3031
3052
|
if (options.verbose) {
|
|
3032
3053
|
console.log(`Repository root: ${repoRoot}`);
|
|
@@ -3035,7 +3056,7 @@ async function runEvalCommand(input) {
|
|
|
3035
3056
|
const useFileExport = !!(options.otelFile || options.traceFile);
|
|
3036
3057
|
if (options.exportOtel || useFileExport) {
|
|
3037
3058
|
try {
|
|
3038
|
-
const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-
|
|
3059
|
+
const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-BMNEH377.js");
|
|
3039
3060
|
let endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT;
|
|
3040
3061
|
let headers = {};
|
|
3041
3062
|
if (options.otelBackend) {
|
|
@@ -3322,4 +3343,4 @@ export {
|
|
|
3322
3343
|
selectTarget,
|
|
3323
3344
|
runEvalCommand
|
|
3324
3345
|
};
|
|
3325
|
-
//# sourceMappingURL=chunk-
|
|
3346
|
+
//# sourceMappingURL=chunk-QLCVA3ZS.js.map
|