@wix/evalforge-types 0.55.0 → 0.57.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 +100 -3
- package/build/index.js.map +4 -4
- package/build/index.mjs +96 -3
- package/build/index.mjs.map +4 -4
- package/build/types/evaluation/eval-run.d.ts +6 -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/build/types/target/agent.d.ts +2 -1
- package/package.json +2 -2
|
@@ -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>;
|
|
@@ -498,6 +501,7 @@ export declare const EvalRunSchema: z.ZodObject<{
|
|
|
498
501
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
499
502
|
version: z.ZodOptional<z.ZodString>;
|
|
500
503
|
resourceUpdated: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
504
|
+
scheduleId: z.ZodOptional<z.ZodString>;
|
|
501
505
|
}, z.core.$strip>>;
|
|
502
506
|
type: z.ZodEnum<typeof TriggerType>;
|
|
503
507
|
}, z.core.$strip>>;
|
|
@@ -628,6 +632,7 @@ export declare const CreateEvalRunInputSchema: z.ZodObject<{
|
|
|
628
632
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
629
633
|
version: z.ZodOptional<z.ZodString>;
|
|
630
634
|
resourceUpdated: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
635
|
+
scheduleId: z.ZodOptional<z.ZodString>;
|
|
631
636
|
}, z.core.$strip>>;
|
|
632
637
|
type: z.ZodEnum<typeof TriggerType>;
|
|
633
638
|
}, 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';
|
|
@@ -28,7 +28,8 @@ export declare const AGENT_TYPE_LABELS: Record<AgentTypeValue, string>;
|
|
|
28
28
|
* When adding a new CLI agent adapter, add its command here first.
|
|
29
29
|
*/
|
|
30
30
|
export declare enum AgentRunCommand {
|
|
31
|
-
CLAUDE = "claude"
|
|
31
|
+
CLAUDE = "claude",
|
|
32
|
+
OPENCODE = "opencode"
|
|
32
33
|
}
|
|
33
34
|
/** All available run commands for use in dropdowns and validation. */
|
|
34
35
|
export declare const AVAILABLE_RUN_COMMANDS: AgentRunCommand[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.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": "750eb50b3c346e953727c56678d308d54f70ab4bcb582613c5966140"
|
|
50
50
|
}
|