@agentv/core 4.15.9-next.1 → 4.16.0-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-HVEQNYTC.js → chunk-6VZY3B6M.js} +55 -165
- package/dist/chunk-6VZY3B6M.js.map +1 -0
- package/dist/evaluation/validation/index.cjs +18 -17
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +13 -12
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +329 -257
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -25
- package/dist/index.d.ts +71 -25
- package/dist/index.js +249 -59
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-HVEQNYTC.js.map +0 -1
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isEvaluatorKind,
|
|
11
11
|
loadCasesFromFile,
|
|
12
12
|
resolveFileReference
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-6VZY3B6M.js";
|
|
14
14
|
|
|
15
15
|
// src/evaluation/validation/file-type.ts
|
|
16
16
|
import { readFile } from "node:fs/promises";
|
|
@@ -997,8 +997,7 @@ var CODEX_SETTINGS = /* @__PURE__ */ new Set([
|
|
|
997
997
|
"log_directory",
|
|
998
998
|
"log_format",
|
|
999
999
|
"log_output_format",
|
|
1000
|
-
"system_prompt"
|
|
1001
|
-
"workspace_template"
|
|
1000
|
+
"system_prompt"
|
|
1002
1001
|
]);
|
|
1003
1002
|
var COPILOT_SDK_SETTINGS = /* @__PURE__ */ new Set([
|
|
1004
1003
|
...COMMON_SETTINGS,
|
|
@@ -1011,7 +1010,6 @@ var COPILOT_SDK_SETTINGS = /* @__PURE__ */ new Set([
|
|
|
1011
1010
|
"log_dir",
|
|
1012
1011
|
"log_format",
|
|
1013
1012
|
"system_prompt",
|
|
1014
|
-
"workspace_template",
|
|
1015
1013
|
"byok"
|
|
1016
1014
|
]);
|
|
1017
1015
|
var COPILOT_CLI_SETTINGS = /* @__PURE__ */ new Set([
|
|
@@ -1026,13 +1024,11 @@ var COPILOT_CLI_SETTINGS = /* @__PURE__ */ new Set([
|
|
|
1026
1024
|
"timeout_seconds",
|
|
1027
1025
|
"log_dir",
|
|
1028
1026
|
"log_format",
|
|
1029
|
-
"system_prompt"
|
|
1030
|
-
"workspace_template"
|
|
1027
|
+
"system_prompt"
|
|
1031
1028
|
]);
|
|
1032
1029
|
var VSCODE_SETTINGS = /* @__PURE__ */ new Set([
|
|
1033
1030
|
...COMMON_SETTINGS,
|
|
1034
1031
|
"executable",
|
|
1035
|
-
"workspace_template",
|
|
1036
1032
|
"wait",
|
|
1037
1033
|
"dry_run",
|
|
1038
1034
|
"subagent_root",
|
|
@@ -1046,6 +1042,9 @@ var MOCK_SETTINGS = /* @__PURE__ */ new Set([
|
|
|
1046
1042
|
]);
|
|
1047
1043
|
var CLAUDE_SETTINGS = /* @__PURE__ */ new Set([
|
|
1048
1044
|
...COMMON_SETTINGS,
|
|
1045
|
+
"executable",
|
|
1046
|
+
"command",
|
|
1047
|
+
"binary",
|
|
1049
1048
|
"model",
|
|
1050
1049
|
"cwd",
|
|
1051
1050
|
"timeout_seconds",
|
|
@@ -1054,10 +1053,10 @@ var CLAUDE_SETTINGS = /* @__PURE__ */ new Set([
|
|
|
1054
1053
|
"log_format",
|
|
1055
1054
|
"log_output_format",
|
|
1056
1055
|
"system_prompt",
|
|
1057
|
-
"workspace_template",
|
|
1058
1056
|
"max_turns",
|
|
1059
1057
|
"max_budget_usd"
|
|
1060
1058
|
]);
|
|
1059
|
+
var CC_MIRROR_SETTINGS = /* @__PURE__ */ new Set([...CLAUDE_SETTINGS, "variant"]);
|
|
1061
1060
|
function getKnownSettings(provider) {
|
|
1062
1061
|
const normalizedProvider = provider.toLowerCase();
|
|
1063
1062
|
switch (normalizedProvider) {
|
|
@@ -1083,6 +1082,8 @@ function getKnownSettings(provider) {
|
|
|
1083
1082
|
case "copilot":
|
|
1084
1083
|
case "copilot-cli":
|
|
1085
1084
|
return COPILOT_CLI_SETTINGS;
|
|
1085
|
+
case "cc-mirror":
|
|
1086
|
+
return CC_MIRROR_SETTINGS;
|
|
1086
1087
|
case "claude":
|
|
1087
1088
|
case "claude-code":
|
|
1088
1089
|
case "claude-cli":
|
|
@@ -1100,7 +1101,6 @@ function getKnownSettings(provider) {
|
|
|
1100
1101
|
}
|
|
1101
1102
|
}
|
|
1102
1103
|
function validateUnknownSettings(target, provider, absolutePath, location, errors) {
|
|
1103
|
-
const removedTargetFields = /* @__PURE__ */ new Set(["workspace_template", "workspaceTemplate"]);
|
|
1104
1104
|
const knownSettings = getKnownSettings(provider);
|
|
1105
1105
|
if (!knownSettings) {
|
|
1106
1106
|
return;
|
|
@@ -1114,13 +1114,14 @@ function validateUnknownSettings(target, provider, absolutePath, location, error
|
|
|
1114
1114
|
"$schema",
|
|
1115
1115
|
"targets"
|
|
1116
1116
|
]);
|
|
1117
|
+
const removedFields = /* @__PURE__ */ new Set(["workspace_template", "workspaceTemplate"]);
|
|
1117
1118
|
for (const key of Object.keys(target)) {
|
|
1118
|
-
if (
|
|
1119
|
+
if (removedFields.has(key)) {
|
|
1119
1120
|
errors.push({
|
|
1120
|
-
severity: "
|
|
1121
|
+
severity: "warning",
|
|
1121
1122
|
filePath: absolutePath,
|
|
1122
1123
|
location: `${location}.${key}`,
|
|
1123
|
-
message: "
|
|
1124
|
+
message: "workspace_template has been removed from targets. Use eval-level workspace.template instead."
|
|
1124
1125
|
});
|
|
1125
1126
|
continue;
|
|
1126
1127
|
}
|