@wix/evalforge-types 0.83.0 → 0.85.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>;
|
|
@@ -3,6 +3,7 @@ export declare const RuleTypeSchema: z.ZodEnum<{
|
|
|
3
3
|
"claude-md": "claude-md";
|
|
4
4
|
"agents-md": "agents-md";
|
|
5
5
|
"cursor-rule": "cursor-rule";
|
|
6
|
+
generic: "generic";
|
|
6
7
|
}>;
|
|
7
8
|
export type RuleType = z.infer<typeof RuleTypeSchema>;
|
|
8
9
|
export declare const RuleSchema: z.ZodObject<{
|
|
@@ -17,8 +18,10 @@ export declare const RuleSchema: z.ZodObject<{
|
|
|
17
18
|
"claude-md": "claude-md";
|
|
18
19
|
"agents-md": "agents-md";
|
|
19
20
|
"cursor-rule": "cursor-rule";
|
|
21
|
+
generic: "generic";
|
|
20
22
|
}>;
|
|
21
23
|
content: z.ZodString;
|
|
24
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
22
25
|
}, z.core.$strip>;
|
|
23
26
|
export type Rule = z.infer<typeof RuleSchema>;
|
|
24
27
|
export declare const CreateRuleInputSchema: z.ZodObject<{
|
|
@@ -29,8 +32,10 @@ export declare const CreateRuleInputSchema: z.ZodObject<{
|
|
|
29
32
|
"claude-md": "claude-md";
|
|
30
33
|
"agents-md": "agents-md";
|
|
31
34
|
"cursor-rule": "cursor-rule";
|
|
35
|
+
generic: "generic";
|
|
32
36
|
}>;
|
|
33
37
|
content: z.ZodString;
|
|
38
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
34
39
|
}, z.core.$strip>;
|
|
35
40
|
export type CreateRuleInput = z.infer<typeof CreateRuleInputSchema>;
|
|
36
41
|
export declare const UpdateRuleInputSchema: z.ZodObject<{
|
|
@@ -41,7 +46,9 @@ export declare const UpdateRuleInputSchema: z.ZodObject<{
|
|
|
41
46
|
"claude-md": "claude-md";
|
|
42
47
|
"agents-md": "agents-md";
|
|
43
48
|
"cursor-rule": "cursor-rule";
|
|
49
|
+
generic: "generic";
|
|
44
50
|
}>>;
|
|
45
51
|
content: z.ZodOptional<z.ZodString>;
|
|
52
|
+
directory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
46
53
|
}, z.core.$strip>;
|
|
47
54
|
export type UpdateRuleInput = z.infer<typeof UpdateRuleInputSchema>;
|
|
@@ -35,8 +35,9 @@ export interface SubAgentContent {
|
|
|
35
35
|
}
|
|
36
36
|
/** Rule version content: rule type + markdown content */
|
|
37
37
|
export interface RuleContent {
|
|
38
|
-
ruleType: 'claude-md' | 'agents-md' | 'cursor-rule';
|
|
38
|
+
ruleType: 'claude-md' | 'agents-md' | 'cursor-rule' | 'generic';
|
|
39
39
|
content: string;
|
|
40
|
+
directory?: string;
|
|
40
41
|
}
|
|
41
42
|
/** MCP version content: keyed server config for .mcp.json */
|
|
42
43
|
export interface McpContent {
|
|
@@ -67,7 +68,8 @@ export interface CachedRule {
|
|
|
67
68
|
name: string;
|
|
68
69
|
content: string;
|
|
69
70
|
path: string;
|
|
70
|
-
ruleType: 'claude-md' | 'agents-md' | 'cursor-rule';
|
|
71
|
+
ruleType: 'claude-md' | 'agents-md' | 'cursor-rule' | 'generic';
|
|
72
|
+
directory?: string;
|
|
71
73
|
}
|
|
72
74
|
/** An MCP server discovered inside a plugin's .mcp.json */
|
|
73
75
|
export interface CachedMcp {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.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": "
|
|
49
|
+
"falconPackageHash": "d3c51614a0cbb3bb85120aa0c847f7f95eb67344c2517d25202dca7a"
|
|
50
50
|
}
|