agentv 2.17.3 → 2.18.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/README.md +13 -5
- package/dist/{chunk-O4FNHLF4.js → chunk-JSA3EH44.js} +5 -49
- package/dist/chunk-JSA3EH44.js.map +1 -0
- package/dist/{chunk-JSOG3FT6.js → chunk-NWQTM4ZK.js} +38 -17
- package/dist/chunk-NWQTM4ZK.js.map +1 -0
- package/dist/{chunk-PL4LNY2N.js → chunk-YSLP2HLP.js} +33 -41
- package/dist/chunk-YSLP2HLP.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{dist-HB2SDRTG.js → dist-QE7SFCGD.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{interactive-GANDKJUX.js → interactive-MQODOYWE.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-JSOG3FT6.js.map +0 -1
- package/dist/chunk-O4FNHLF4.js.map +0 -1
- package/dist/chunk-PL4LNY2N.js.map +0 -1
- /package/dist/{dist-HB2SDRTG.js.map → dist-QE7SFCGD.js.map} +0 -0
- /package/dist/{interactive-GANDKJUX.js.map → interactive-MQODOYWE.js.map} +0 -0
|
@@ -148,7 +148,7 @@ var require_dist = __commonJS({
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
// ../../packages/core/dist/chunk-
|
|
151
|
+
// ../../packages/core/dist/chunk-I4VQY3XJ.js
|
|
152
152
|
import { constants } from "node:fs";
|
|
153
153
|
import { access, readFile } from "node:fs/promises";
|
|
154
154
|
import path from "node:path";
|
|
@@ -4195,7 +4195,7 @@ var coerce = {
|
|
|
4195
4195
|
};
|
|
4196
4196
|
var NEVER = INVALID;
|
|
4197
4197
|
|
|
4198
|
-
// ../../packages/core/dist/chunk-
|
|
4198
|
+
// ../../packages/core/dist/chunk-I4VQY3XJ.js
|
|
4199
4199
|
var TEST_MESSAGE_ROLE_VALUES = ["system", "user", "assistant", "tool"];
|
|
4200
4200
|
var TEST_MESSAGE_ROLES = TEST_MESSAGE_ROLE_VALUES;
|
|
4201
4201
|
var TEST_MESSAGE_ROLE_SET = new Set(TEST_MESSAGE_ROLE_VALUES);
|
|
@@ -4603,6 +4603,11 @@ function resolveRetryConfig(target) {
|
|
|
4603
4603
|
}
|
|
4604
4604
|
function resolveTargetDefinition(definition, env = process.env, evalFilePath) {
|
|
4605
4605
|
const parsed = BASE_TARGET_SCHEMA.parse(definition);
|
|
4606
|
+
if (parsed.workspace_template !== void 0 || parsed.workspaceTemplate !== void 0) {
|
|
4607
|
+
throw new Error(
|
|
4608
|
+
`${parsed.name}: target-level workspace_template has been removed. Use eval-level workspace.template.`
|
|
4609
|
+
);
|
|
4610
|
+
}
|
|
4606
4611
|
const provider = parsed.provider.toLowerCase();
|
|
4607
4612
|
const providerBatching = resolveOptionalBoolean(
|
|
4608
4613
|
parsed.provider_batching ?? parsed.providerBatching
|
|
@@ -37083,6 +37088,17 @@ async function resolveWorkspaceConfig(raw, evalFileDir) {
|
|
|
37083
37088
|
function parseWorkspaceConfig(raw, evalFileDir) {
|
|
37084
37089
|
if (!isJsonObject(raw)) return void 0;
|
|
37085
37090
|
const obj = raw;
|
|
37091
|
+
if ("static_path" in obj) {
|
|
37092
|
+
throw new Error(
|
|
37093
|
+
"workspace.static_path has been removed. Use workspace.path with workspace.mode=static."
|
|
37094
|
+
);
|
|
37095
|
+
}
|
|
37096
|
+
if ("pool" in obj) {
|
|
37097
|
+
throw new Error("workspace.pool has been removed. Use workspace.mode='pooled' or 'temp'.");
|
|
37098
|
+
}
|
|
37099
|
+
if ("static" in obj) {
|
|
37100
|
+
throw new Error("workspace.static has been removed. Use workspace.mode='static'.");
|
|
37101
|
+
}
|
|
37086
37102
|
let template = typeof obj.template === "string" ? obj.template : void 0;
|
|
37087
37103
|
if (template && !path8.isAbsolute(template)) {
|
|
37088
37104
|
template = path8.resolve(evalFileDir, template);
|
|
@@ -37090,19 +37106,17 @@ function parseWorkspaceConfig(raw, evalFileDir) {
|
|
|
37090
37106
|
const isolation = obj.isolation === "shared" || obj.isolation === "per_test" ? obj.isolation : void 0;
|
|
37091
37107
|
const repos = Array.isArray(obj.repos) ? obj.repos.map(parseRepoConfig).filter(Boolean) : void 0;
|
|
37092
37108
|
const hooks = parseWorkspaceHooksConfig(obj.hooks, evalFileDir);
|
|
37093
|
-
const
|
|
37094
|
-
const
|
|
37095
|
-
const
|
|
37096
|
-
if (!template && !isolation && !repos && !hooks && !mode && !
|
|
37097
|
-
return void 0;
|
|
37109
|
+
const explicitMode = obj.mode === "pooled" || obj.mode === "temp" || obj.mode === "static" ? obj.mode : void 0;
|
|
37110
|
+
const workspacePath = typeof obj.path === "string" ? obj.path : void 0;
|
|
37111
|
+
const mode = explicitMode ?? (workspacePath ? "static" : void 0);
|
|
37112
|
+
if (!template && !isolation && !repos && !hooks && !mode && !workspacePath) return void 0;
|
|
37098
37113
|
return {
|
|
37099
37114
|
...template !== void 0 && { template },
|
|
37100
37115
|
...isolation !== void 0 && { isolation },
|
|
37101
37116
|
...repos !== void 0 && { repos },
|
|
37102
37117
|
...hooks !== void 0 && { hooks },
|
|
37103
37118
|
...mode !== void 0 && { mode },
|
|
37104
|
-
...
|
|
37105
|
-
...pool !== void 0 && { pool }
|
|
37119
|
+
...workspacePath !== void 0 && { path: workspacePath }
|
|
37106
37120
|
};
|
|
37107
37121
|
}
|
|
37108
37122
|
function mergeWorkspaceConfigs(suiteLevel, caseLevel) {
|
|
@@ -37129,8 +37143,7 @@ function mergeWorkspaceConfigs(suiteLevel, caseLevel) {
|
|
|
37129
37143
|
repos: caseLevel.repos ?? suiteLevel.repos,
|
|
37130
37144
|
...hasHooks && { hooks: mergedHooks },
|
|
37131
37145
|
mode: caseLevel.mode ?? suiteLevel.mode,
|
|
37132
|
-
|
|
37133
|
-
pool: caseLevel.pool ?? suiteLevel.pool
|
|
37146
|
+
path: caseLevel.path ?? suiteLevel.path
|
|
37134
37147
|
};
|
|
37135
37148
|
}
|
|
37136
37149
|
function asString6(value) {
|
|
@@ -47218,19 +47231,27 @@ async function runEvaluation(options) {
|
|
|
47218
47231
|
}
|
|
47219
47232
|
};
|
|
47220
47233
|
const isPerTestIsolation = suiteWorkspace?.isolation === "per_test";
|
|
47221
|
-
const
|
|
47222
|
-
const
|
|
47223
|
-
|
|
47234
|
+
const cliWorkspacePath = workspacePath ?? legacyWorkspacePath;
|
|
47235
|
+
const yamlWorkspacePath = suiteWorkspace?.path;
|
|
47236
|
+
if (cliWorkspacePath && workspaceMode && workspaceMode !== "static") {
|
|
47237
|
+
throw new Error("--workspace-path requires --workspace-mode static when both are provided");
|
|
47238
|
+
}
|
|
47239
|
+
const configuredMode = cliWorkspacePath ? "static" : workspaceMode ?? suiteWorkspace?.mode ?? (yamlWorkspacePath ? "static" : "pooled");
|
|
47240
|
+
const configuredStaticPath = cliWorkspacePath ?? yamlWorkspacePath;
|
|
47241
|
+
const useStaticWorkspace = configuredMode === "static";
|
|
47224
47242
|
if (useStaticWorkspace && isPerTestIsolation) {
|
|
47225
47243
|
throw new Error(
|
|
47226
47244
|
"static workspace mode is incompatible with isolation: per_test. Use isolation: shared (default)."
|
|
47227
47245
|
);
|
|
47228
47246
|
}
|
|
47229
47247
|
if (configuredMode === "static" && !configuredStaticPath) {
|
|
47230
|
-
throw new Error("workspace.mode=static requires workspace.
|
|
47248
|
+
throw new Error("workspace.mode=static requires workspace.path or --workspace-path");
|
|
47249
|
+
}
|
|
47250
|
+
if (configuredMode !== "static" && configuredStaticPath) {
|
|
47251
|
+
throw new Error("workspace.path requires workspace.mode=static");
|
|
47231
47252
|
}
|
|
47232
47253
|
const hasSharedWorkspace = !!(useStaticWorkspace || workspaceTemplate || suiteWorkspace?.hooks || suiteWorkspace?.repos?.length && !isPerTestIsolation);
|
|
47233
|
-
const poolEnabled = configuredMode === "pooled"
|
|
47254
|
+
const poolEnabled = configuredMode === "pooled";
|
|
47234
47255
|
const usePool = poolEnabled !== false && !!suiteWorkspace?.repos?.length && !isPerTestIsolation && !useStaticWorkspace;
|
|
47235
47256
|
const resolvedRetainOnSuccess = retainOnSuccess ?? (keepWorkspaces ? "keep" : "cleanup");
|
|
47236
47257
|
const resolvedRetainOnFailure = retainOnFailure ?? (cleanupWorkspaces ? "cleanup" : "keep");
|
|
@@ -49711,4 +49732,4 @@ export {
|
|
|
49711
49732
|
OtelStreamingObserver,
|
|
49712
49733
|
createAgentKernel
|
|
49713
49734
|
};
|
|
49714
|
-
//# sourceMappingURL=chunk-
|
|
49735
|
+
//# sourceMappingURL=chunk-NWQTM4ZK.js.map
|