@wix/evalforge-types 0.56.0 → 0.58.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/README.md +1 -0
- package/build/index.js +103 -4
- package/build/index.js.map +4 -4
- package/build/index.mjs +99 -4
- package/build/index.mjs.map +4 -4
- package/build/types/agent/adapter.d.ts +10 -0
- package/build/types/evaluation/eval-result.d.ts +2 -0
- package/build/types/evaluation/eval-run.d.ts +13 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/schedule/eval-schedule.d.ts +76 -0
- package/build/types/schedule/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -141,6 +141,16 @@ export interface AgentAdapter {
|
|
|
141
141
|
readonly name: string;
|
|
142
142
|
/** CLI commands this adapter handles (e.g., ['claude']). Can be empty for SDK-only adapters. */
|
|
143
143
|
readonly supportedCommands: readonly AgentRunCommand[];
|
|
144
|
+
/**
|
|
145
|
+
* Prepare infrastructure files (skills, MCPs, sub-agents, rules, settings)
|
|
146
|
+
* in the working directory before the baseline snapshot is taken.
|
|
147
|
+
*
|
|
148
|
+
* Called by the orchestrator so that infra files don't appear as "new" in diffs.
|
|
149
|
+
* Adapters that write to the filesystem should implement this; others can omit it.
|
|
150
|
+
*
|
|
151
|
+
* @param context - The execution context containing skill, scenario, and configuration
|
|
152
|
+
*/
|
|
153
|
+
prepareEnvironment?(context: AgentExecutionContext): Promise<void>;
|
|
144
154
|
/**
|
|
145
155
|
* Execute a skill against a test scenario using this agent.
|
|
146
156
|
*
|
|
@@ -135,6 +135,7 @@ export declare const EvalRunResultSchema: z.ZodObject<{
|
|
|
135
135
|
lineNumber: z.ZodNumber;
|
|
136
136
|
}, z.core.$strip>>;
|
|
137
137
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
138
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
138
139
|
}, z.core.$strip>>>;
|
|
139
140
|
templateFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
141
|
path: z.ZodString;
|
|
@@ -144,6 +145,7 @@ export declare const EvalRunResultSchema: z.ZodObject<{
|
|
|
144
145
|
modified: "modified";
|
|
145
146
|
new: "new";
|
|
146
147
|
}>;
|
|
148
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
147
149
|
}, z.core.$strip>>>;
|
|
148
150
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
149
151
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -6,7 +6,8 @@ export declare enum TriggerType {
|
|
|
6
6
|
RESOURCES_UPDATED = "RESOURCES_UPDATED",
|
|
7
7
|
MCP_VERSION_RELEASE = "MCP_VERSION_RELEASE",
|
|
8
8
|
MCP_PREVIEW_CREATED = "MCP_PREVIEW_CREATED",
|
|
9
|
-
MANUAL = "MANUAL"
|
|
9
|
+
MANUAL = "MANUAL",
|
|
10
|
+
SCHEDULED = "SCHEDULED"
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Trigger metadata schema.
|
|
@@ -14,6 +15,7 @@ export declare enum TriggerType {
|
|
|
14
15
|
export declare const TriggerMetadataSchema: z.ZodObject<{
|
|
15
16
|
version: z.ZodOptional<z.ZodString>;
|
|
16
17
|
resourceUpdated: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
scheduleId: z.ZodOptional<z.ZodString>;
|
|
17
19
|
}, z.core.$strip>;
|
|
18
20
|
export type TriggerMetadata = z.infer<typeof TriggerMetadataSchema>;
|
|
19
21
|
/**
|
|
@@ -24,6 +26,7 @@ export declare const TriggerSchema: z.ZodObject<{
|
|
|
24
26
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
25
27
|
version: z.ZodOptional<z.ZodString>;
|
|
26
28
|
resourceUpdated: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
+
scheduleId: z.ZodOptional<z.ZodString>;
|
|
27
30
|
}, z.core.$strip>>;
|
|
28
31
|
type: z.ZodEnum<typeof TriggerType>;
|
|
29
32
|
}, z.core.$strip>;
|
|
@@ -87,6 +90,7 @@ export declare const DiffContentSchema: z.ZodObject<{
|
|
|
87
90
|
lineNumber: z.ZodNumber;
|
|
88
91
|
}, z.core.$strip>>;
|
|
89
92
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
93
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
90
94
|
}, z.core.$strip>;
|
|
91
95
|
export type DiffContent = z.infer<typeof DiffContentSchema>;
|
|
92
96
|
/**
|
|
@@ -130,6 +134,7 @@ export declare const TemplateFileSchema: z.ZodObject<{
|
|
|
130
134
|
modified: "modified";
|
|
131
135
|
new: "new";
|
|
132
136
|
}>;
|
|
137
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
133
138
|
}, z.core.$strip>;
|
|
134
139
|
export type TemplateFile = z.infer<typeof TemplateFileSchema>;
|
|
135
140
|
/**
|
|
@@ -195,6 +200,7 @@ export declare const FailureAnalysisSchema: z.ZodObject<{
|
|
|
195
200
|
lineNumber: z.ZodNumber;
|
|
196
201
|
}, z.core.$strip>>;
|
|
197
202
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
203
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
198
204
|
}, z.core.$strip>>;
|
|
199
205
|
executionTrace: z.ZodOptional<z.ZodObject<{
|
|
200
206
|
commands: z.ZodArray<z.ZodObject<{
|
|
@@ -323,6 +329,7 @@ export declare const EvalRunSchema: z.ZodObject<{
|
|
|
323
329
|
lineNumber: z.ZodNumber;
|
|
324
330
|
}, z.core.$strip>>;
|
|
325
331
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
332
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
326
333
|
}, z.core.$strip>>>;
|
|
327
334
|
templateFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
328
335
|
path: z.ZodString;
|
|
@@ -332,6 +339,7 @@ export declare const EvalRunSchema: z.ZodObject<{
|
|
|
332
339
|
modified: "modified";
|
|
333
340
|
new: "new";
|
|
334
341
|
}>;
|
|
342
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
335
343
|
}, z.core.$strip>>>;
|
|
336
344
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
337
345
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -445,6 +453,7 @@ export declare const EvalRunSchema: z.ZodObject<{
|
|
|
445
453
|
lineNumber: z.ZodNumber;
|
|
446
454
|
}, z.core.$strip>>;
|
|
447
455
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
456
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
448
457
|
}, z.core.$strip>>;
|
|
449
458
|
executionTrace: z.ZodOptional<z.ZodObject<{
|
|
450
459
|
commands: z.ZodArray<z.ZodObject<{
|
|
@@ -498,6 +507,7 @@ export declare const EvalRunSchema: z.ZodObject<{
|
|
|
498
507
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
499
508
|
version: z.ZodOptional<z.ZodString>;
|
|
500
509
|
resourceUpdated: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
510
|
+
scheduleId: z.ZodOptional<z.ZodString>;
|
|
501
511
|
}, z.core.$strip>>;
|
|
502
512
|
type: z.ZodEnum<typeof TriggerType>;
|
|
503
513
|
}, z.core.$strip>>;
|
|
@@ -575,6 +585,7 @@ export declare const CreateEvalRunInputSchema: z.ZodObject<{
|
|
|
575
585
|
lineNumber: z.ZodNumber;
|
|
576
586
|
}, z.core.$strip>>;
|
|
577
587
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
588
|
+
isInfrastructure: z.ZodOptional<z.ZodBoolean>;
|
|
578
589
|
}, z.core.$strip>>;
|
|
579
590
|
executionTrace: z.ZodOptional<z.ZodObject<{
|
|
580
591
|
commands: z.ZodArray<z.ZodObject<{
|
|
@@ -628,6 +639,7 @@ export declare const CreateEvalRunInputSchema: z.ZodObject<{
|
|
|
628
639
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
629
640
|
version: z.ZodOptional<z.ZodString>;
|
|
630
641
|
resourceUpdated: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
642
|
+
scheduleId: z.ZodOptional<z.ZodString>;
|
|
631
643
|
}, z.core.$strip>>;
|
|
632
644
|
type: z.ZodEnum<typeof TriggerType>;
|
|
633
645
|
}, z.core.$strip>>;
|
package/build/types/index.d.ts
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Frequency types for scheduled evaluation runs.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum FrequencyType {
|
|
6
|
+
DAILY = "daily",
|
|
7
|
+
WEEKDAY = "weekday",
|
|
8
|
+
WEEKLY = "weekly",
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Evaluation schedule schema.
|
|
13
|
+
*
|
|
14
|
+
* Represents a recurring schedule that automatically triggers evaluation runs.
|
|
15
|
+
* Stores suiteId + presetId; the preset bundles agent + skills + MCPs +
|
|
16
|
+
* sub-agents + rules. Suite scenarios are resolved at trigger time so
|
|
17
|
+
* changes to the suite auto-propagate to future runs.
|
|
18
|
+
*/
|
|
19
|
+
export declare const EvalScheduleSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodString;
|
|
23
|
+
createdAt: z.ZodString;
|
|
24
|
+
updatedAt: z.ZodString;
|
|
25
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
projectId: z.ZodString;
|
|
27
|
+
enabled: z.ZodBoolean;
|
|
28
|
+
suiteId: z.ZodString;
|
|
29
|
+
presetId: z.ZodString;
|
|
30
|
+
frequencyType: z.ZodEnum<typeof FrequencyType>;
|
|
31
|
+
timeOfDay: z.ZodString;
|
|
32
|
+
dayOfWeek: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
timezone: z.ZodString;
|
|
35
|
+
lastRunId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
lastRunStatus: z.ZodOptional<z.ZodString>;
|
|
37
|
+
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
38
|
+
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type EvalSchedule = z.infer<typeof EvalScheduleSchema>;
|
|
41
|
+
/**
|
|
42
|
+
* Input schema for creating a new schedule.
|
|
43
|
+
* Validates that dayOfWeek is present for WEEKLY, dayOfMonth for MONTHLY,
|
|
44
|
+
* and timezone is a valid IANA timezone.
|
|
45
|
+
*/
|
|
46
|
+
export declare const CreateEvalScheduleInputSchema: z.ZodObject<{
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
presetId: z.ZodString;
|
|
50
|
+
suiteId: z.ZodString;
|
|
51
|
+
enabled: z.ZodBoolean;
|
|
52
|
+
frequencyType: z.ZodEnum<typeof FrequencyType>;
|
|
53
|
+
timeOfDay: z.ZodString;
|
|
54
|
+
dayOfWeek: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
timezone: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type CreateEvalScheduleInput = z.infer<typeof CreateEvalScheduleInputSchema>;
|
|
59
|
+
/**
|
|
60
|
+
* Input schema for updating an existing schedule.
|
|
61
|
+
* Partial -- conditional field validation is deferred to the repository
|
|
62
|
+
* which merges with the existing entity.
|
|
63
|
+
*/
|
|
64
|
+
export declare const UpdateEvalScheduleInputSchema: z.ZodObject<{
|
|
65
|
+
name: z.ZodOptional<z.ZodString>;
|
|
66
|
+
description: z.ZodOptional<z.ZodString>;
|
|
67
|
+
presetId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
suiteId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
frequencyType: z.ZodOptional<z.ZodEnum<typeof FrequencyType>>;
|
|
71
|
+
timeOfDay: z.ZodOptional<z.ZodString>;
|
|
72
|
+
dayOfWeek: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
73
|
+
dayOfMonth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
74
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type UpdateEvalScheduleInput = z.infer<typeof UpdateEvalScheduleInputSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './eval-schedule.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.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": "d841ec26ec5d969c31f9e4a9ceec1ca536da8afe333ae529a1922ce5"
|
|
50
50
|
}
|