@wix/evalforge-types 0.33.0 → 0.35.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/build/index.js CHANGED
@@ -915,6 +915,9 @@ var require_types_impl = __commonJS({
915
915
  var index_exports = {};
916
916
  __export(index_exports, {
917
917
  AVAILABLE_MODEL_IDS: () => AVAILABLE_MODEL_IDS,
918
+ AVAILABLE_RUN_COMMANDS: () => AVAILABLE_RUN_COMMANDS,
919
+ AgentRunCommand: () => AgentRunCommand,
920
+ AgentRunCommandSchema: () => AgentRunCommandSchema,
918
921
  AgentSchema: () => AgentSchema,
919
922
  AllowedCommands: () => AllowedCommands,
920
923
  ApiCallSchema: () => ApiCallSchema,
@@ -947,6 +950,7 @@ __export(index_exports, {
947
950
  CreateTestScenarioInputSchema: () => CreateTestScenarioInputSchema,
948
951
  CreateTestSuiteInputSchema: () => CreateTestSuiteInputSchema,
949
952
  CustomAssertionSchema: () => CustomAssertionSchema,
953
+ DEFAULT_JUDGE_MODEL: () => DEFAULT_JUDGE_MODEL,
950
954
  DiffContentSchema: () => DiffContentSchema,
951
955
  DiffLineSchema: () => DiffLineSchema,
952
956
  DiffLineTypeSchema: () => DiffLineTypeSchema,
@@ -991,6 +995,7 @@ __export(index_exports, {
991
995
  PlaywrightNLTestSchema: () => PlaywrightNLTestSchema,
992
996
  ProjectSchema: () => ProjectSchema,
993
997
  PromptResultSchema: () => PromptResultSchema,
998
+ RUN_COMMAND_LABELS: () => RUN_COMMAND_LABELS,
994
999
  SEMVER_REGEX: () => SEMVER_REGEX,
995
1000
  SKILL_FOLDER_NAME_REGEX: () => SKILL_FOLDER_NAME_REGEX,
996
1001
  SYSTEM_ASSERTIONS: () => SYSTEM_ASSERTIONS,
@@ -1102,6 +1107,10 @@ var AVAILABLE_MODEL_IDS = Object.values(
1102
1107
  ).filter(
1103
1108
  (v) => typeof v === "string" && v !== import_types.ClaudeModel.UNKNOWN_CLAUDE_MODEL
1104
1109
  );
1110
+ var PREFERRED_JUDGE_MODEL = "CLAUDE_4_5_HAIKU_1_0";
1111
+ var DEFAULT_JUDGE_MODEL = AVAILABLE_MODEL_IDS.includes(
1112
+ PREFERRED_JUDGE_MODEL
1113
+ ) ? PREFERRED_JUDGE_MODEL : AVAILABLE_MODEL_IDS[0];
1105
1114
  var ClaudeModelSchema = import_zod4.z.enum(
1106
1115
  AVAILABLE_MODEL_IDS
1107
1116
  );
@@ -1123,9 +1132,18 @@ var TargetSchema = TenantEntitySchema.extend({
1123
1132
 
1124
1133
  // src/target/agent.ts
1125
1134
  var import_zod5 = require("zod");
1135
+ var AgentRunCommand = /* @__PURE__ */ ((AgentRunCommand2) => {
1136
+ AgentRunCommand2["CLAUDE"] = "claude";
1137
+ return AgentRunCommand2;
1138
+ })(AgentRunCommand || {});
1139
+ var AVAILABLE_RUN_COMMANDS = Object.values(AgentRunCommand);
1140
+ var RUN_COMMAND_LABELS = {
1141
+ ["claude" /* CLAUDE */]: "Claude Code"
1142
+ };
1143
+ var AgentRunCommandSchema = import_zod5.z.nativeEnum(AgentRunCommand);
1126
1144
  var AgentSchema = TargetSchema.extend({
1127
1145
  /** Command to run the agent */
1128
- runCommand: import_zod5.z.string(),
1146
+ runCommand: AgentRunCommandSchema,
1129
1147
  /** Optional model configuration override */
1130
1148
  modelConfig: ModelConfigSchema.optional()
1131
1149
  });
@@ -2216,6 +2234,9 @@ function getSystemAssertion(id) {
2216
2234
  // Annotate the CommonJS export names for ESM import in node:
2217
2235
  0 && (module.exports = {
2218
2236
  AVAILABLE_MODEL_IDS,
2237
+ AVAILABLE_RUN_COMMANDS,
2238
+ AgentRunCommand,
2239
+ AgentRunCommandSchema,
2219
2240
  AgentSchema,
2220
2241
  AllowedCommands,
2221
2242
  ApiCallSchema,
@@ -2248,6 +2269,7 @@ function getSystemAssertion(id) {
2248
2269
  CreateTestScenarioInputSchema,
2249
2270
  CreateTestSuiteInputSchema,
2250
2271
  CustomAssertionSchema,
2272
+ DEFAULT_JUDGE_MODEL,
2251
2273
  DiffContentSchema,
2252
2274
  DiffLineSchema,
2253
2275
  DiffLineTypeSchema,
@@ -2292,6 +2314,7 @@ function getSystemAssertion(id) {
2292
2314
  PlaywrightNLTestSchema,
2293
2315
  ProjectSchema,
2294
2316
  PromptResultSchema,
2317
+ RUN_COMMAND_LABELS,
2295
2318
  SEMVER_REGEX,
2296
2319
  SKILL_FOLDER_NAME_REGEX,
2297
2320
  SYSTEM_ASSERTIONS,