@wix/evalforge-types 0.83.0 → 0.84.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.
@@ -70,7 +70,6 @@ export type SkillWasCalledConfig = z.infer<typeof SkillWasCalledConfigSchema>;
70
70
  * Uses strictObject to reject objects with unknown keys (prevents matching other configs).
71
71
  */
72
72
  export declare const CostConfigSchema: z.ZodObject<{
73
- /** Maximum allowed cost in USD */
74
73
  maxCostUsd: z.ZodNumber;
75
74
  }, z.core.$strict>;
76
75
  export type CostConfig = z.infer<typeof CostConfigSchema>;
@@ -79,11 +78,8 @@ export type CostConfig = z.infer<typeof CostConfigSchema>;
79
78
  * When expectedParams is omitted, the assertion checks only that the tool was called (or not, if negated).
80
79
  */
81
80
  export declare const ToolCalledWithParamConfigSchema: z.ZodObject<{
82
- /** Name of the tool that must have been called */
83
81
  toolName: z.ZodString;
84
- /** JSON string of key-value pairs for expected parameters (substring match). Optional — when omitted, only checks tool presence. */
85
82
  expectedParams: z.ZodOptional<z.ZodString>;
86
- /** If true, the matching tool call must also have succeeded (step.success === true) */
87
83
  requireSuccess: z.ZodOptional<z.ZodBoolean>;
88
84
  }, z.core.$strict>;
89
85
  /**
@@ -91,14 +87,12 @@ export declare const ToolCalledWithParamConfigSchema: z.ZodObject<{
91
87
  * Uses strictObject to reject objects with unknown keys (prevents matching LlmJudge configs).
92
88
  */
93
89
  export declare const BuildPassedConfigSchema: z.ZodObject<{
94
- /** Allowlisted command only (default at runtime: "yarn build") */
95
90
  command: z.ZodOptional<z.ZodEnum<{
96
91
  "npm run build": "npm run build";
97
92
  "yarn build": "yarn build";
98
93
  "pnpm run build": "pnpm run build";
99
94
  "pnpm build": "pnpm build";
100
95
  }>>;
101
- /** Expected exit code (default: 0) */
102
96
  expectedExitCode: z.ZodOptional<z.ZodNumber>;
103
97
  }, z.core.$strict>;
104
98
  export type BuildPassedConfig = z.infer<typeof BuildPassedConfigSchema>;
@@ -107,7 +101,6 @@ export type BuildPassedConfig = z.infer<typeof BuildPassedConfigSchema>;
107
101
  * Uses strictObject to reject objects with unknown keys.
108
102
  */
109
103
  export declare const TimeConfigSchema: z.ZodObject<{
110
- /** Maximum allowed duration in milliseconds */
111
104
  maxDurationMs: z.ZodNumber;
112
105
  }, z.core.$strict>;
113
106
  export type TimeConfig = z.infer<typeof TimeConfigSchema>;
@@ -141,20 +134,14 @@ export type LlmJudgeConfig = z.infer<typeof LlmJudgeConfigSchema>;
141
134
  * Uses strictObject to reject objects with unknown keys.
142
135
  */
143
136
  export declare const ApiCallConfigSchema: z.ZodObject<{
144
- /** URL to call */
145
137
  url: z.ZodString;
146
- /** HTTP method (default GET) */
147
138
  method: z.ZodOptional<z.ZodEnum<{
148
139
  GET: "GET";
149
140
  POST: "POST";
150
141
  }>>;
151
- /** Request body (JSON string, for POST requests) */
152
142
  requestBody: z.ZodOptional<z.ZodString>;
153
- /** Expected JSON response to validate against (subset match — extra fields in actual are OK) */
154
143
  expectedResponse: z.ZodString;
155
- /** Request headers as JSON string of key-value pairs */
156
144
  requestHeaders: z.ZodOptional<z.ZodString>;
157
- /** Request timeout in milliseconds (default 30000) */
158
145
  timeoutMs: z.ZodOptional<z.ZodNumber>;
159
146
  }, z.core.$strict>;
160
147
  export type ApiCallConfig = z.infer<typeof ApiCallConfigSchema>;
@@ -325,43 +312,30 @@ export declare const AssertionConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
325
312
  }, z.core.$strip>, z.ZodObject<{
326
313
  skillNames: z.ZodArray<z.ZodString>;
327
314
  }, z.core.$strip>, z.ZodObject<{
328
- /** Name of the tool that must have been called */
329
315
  toolName: z.ZodString;
330
- /** JSON string of key-value pairs for expected parameters (substring match). Optional — when omitted, only checks tool presence. */
331
316
  expectedParams: z.ZodOptional<z.ZodString>;
332
- /** If true, the matching tool call must also have succeeded (step.success === true) */
333
317
  requireSuccess: z.ZodOptional<z.ZodBoolean>;
334
318
  }, z.core.$strict>, z.ZodObject<{
335
- /** URL to call */
336
319
  url: z.ZodString;
337
- /** HTTP method (default GET) */
338
320
  method: z.ZodOptional<z.ZodEnum<{
339
321
  GET: "GET";
340
322
  POST: "POST";
341
323
  }>>;
342
- /** Request body (JSON string, for POST requests) */
343
324
  requestBody: z.ZodOptional<z.ZodString>;
344
- /** Expected JSON response to validate against (subset match — extra fields in actual are OK) */
345
325
  expectedResponse: z.ZodString;
346
- /** Request headers as JSON string of key-value pairs */
347
326
  requestHeaders: z.ZodOptional<z.ZodString>;
348
- /** Request timeout in milliseconds (default 30000) */
349
327
  timeoutMs: z.ZodOptional<z.ZodNumber>;
350
328
  }, z.core.$strict>, z.ZodObject<{
351
- /** Maximum allowed duration in milliseconds */
352
329
  maxDurationMs: z.ZodNumber;
353
330
  }, z.core.$strict>, z.ZodObject<{
354
- /** Maximum allowed cost in USD */
355
331
  maxCostUsd: z.ZodNumber;
356
332
  }, z.core.$strict>, z.ZodObject<{
357
- /** Allowlisted command only (default at runtime: "yarn build") */
358
333
  command: z.ZodOptional<z.ZodEnum<{
359
334
  "npm run build": "npm run build";
360
335
  "yarn build": "yarn build";
361
336
  "pnpm run build": "pnpm run build";
362
337
  "pnpm build": "pnpm build";
363
338
  }>>;
364
- /** Expected exit code (default: 0) */
365
339
  expectedExitCode: z.ZodOptional<z.ZodNumber>;
366
340
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strip>]>;
367
341
  export type AssertionConfig = z.infer<typeof AssertionConfigSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-types",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "Unified types for EvalForge agent evaluation system",
5
5
  "files": [
6
6
  "build"
@@ -46,5 +46,5 @@
46
46
  "artifactId": "evalforge-types"
47
47
  }
48
48
  },
49
- "falconPackageHash": "89aff2133ef6884e52319a24b06ca238871219d373414b461641cfaf"
49
+ "falconPackageHash": "ea10fac43e953fc150ef93e4d1d051e67ab5f43ba8a4dff6b9e43afc"
50
50
  }