@wix/evalforge-types 0.48.0 → 0.50.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 -1
- package/build/index.js +45 -24
- package/build/index.js.map +3 -3
- package/build/index.mjs +42 -21
- package/build/index.mjs.map +3 -3
- package/build/types/common/github-source.d.ts +3 -2
- package/build/types/evaluation/eval-run.d.ts +8 -6
- package/build/types/target/index.d.ts +1 -1
- package/build/types/target/preset.d.ts +54 -0
- package/build/types/target/sub-agent.d.ts +21 -0
- package/package.json +2 -2
- package/build/types/target/skills-group.d.ts +0 -37
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* GitHub source reference for a directory in a GitHub repository.
|
|
4
|
-
* Used by skills and templates
|
|
3
|
+
* GitHub source reference for a file or directory in a GitHub repository.
|
|
4
|
+
* Used by skills and templates (directory) and sub-agents (single file)
|
|
5
|
+
* to point to content that can be fetched via the GitHub API.
|
|
5
6
|
*/
|
|
6
7
|
export declare const GitHubSourceSchema: z.ZodObject<{
|
|
7
8
|
owner: z.ZodString;
|
|
@@ -234,7 +234,8 @@ export declare const EvalRunSchema: z.ZodObject<{
|
|
|
234
234
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
235
235
|
projectId: z.ZodString;
|
|
236
236
|
agentId: z.ZodOptional<z.ZodString>;
|
|
237
|
-
|
|
237
|
+
presetId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
skillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
238
239
|
skillVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
239
240
|
scenarioIds: z.ZodArray<z.ZodString>;
|
|
240
241
|
status: z.ZodEnum<typeof import("./metrics.js").EvalStatus>;
|
|
@@ -536,10 +537,14 @@ export declare const CreateEvalRunInputSchema: z.ZodObject<{
|
|
|
536
537
|
description: z.ZodString;
|
|
537
538
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
538
539
|
projectId: z.ZodString;
|
|
539
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
540
540
|
agentId: z.ZodOptional<z.ZodString>;
|
|
541
|
-
|
|
541
|
+
skillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
542
542
|
skillVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
543
|
+
mcpIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
544
|
+
subAgentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
545
|
+
ruleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
546
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
547
|
+
presetId: z.ZodOptional<z.ZodString>;
|
|
543
548
|
failureAnalyses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
544
549
|
category: z.ZodEnum<typeof FailureCategory>;
|
|
545
550
|
severity: z.ZodEnum<typeof FailureSeverity>;
|
|
@@ -641,9 +646,6 @@ export declare const CreateEvalRunInputSchema: z.ZodObject<{
|
|
|
641
646
|
jobStatus: z.ZodOptional<z.ZodString>;
|
|
642
647
|
jobError: z.ZodOptional<z.ZodString>;
|
|
643
648
|
jobStatusCheckedAt: z.ZodOptional<z.ZodString>;
|
|
644
|
-
mcpIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
645
|
-
subAgentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
646
|
-
ruleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
647
649
|
scenarioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
648
650
|
}, z.core.$strip>;
|
|
649
651
|
export type CreateEvalRunInput = z.infer<typeof CreateEvalRunInputSchema>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Preset schema - a reusable evaluation configuration that bundles
|
|
4
|
+
* an agent with skills, MCPs, sub-agents, and rules.
|
|
5
|
+
*
|
|
6
|
+
* Users create presets once, then trigger eval runs by selecting a test suite.
|
|
7
|
+
* At least one of skillIds, mcpIds, subAgentIds, or ruleIds must be non-empty.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PresetSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
createdAt: z.ZodString;
|
|
14
|
+
updatedAt: z.ZodString;
|
|
15
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
projectId: z.ZodString;
|
|
17
|
+
agentId: z.ZodString;
|
|
18
|
+
skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
19
|
+
skillVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20
|
+
mcpIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
|
+
subAgentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
|
+
ruleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type Preset = z.infer<typeof PresetSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* Input schema for creating a new Preset.
|
|
27
|
+
*/
|
|
28
|
+
export declare const CreatePresetInputSchema: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
description: z.ZodString;
|
|
31
|
+
projectId: z.ZodString;
|
|
32
|
+
agentId: z.ZodString;
|
|
33
|
+
skillIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
34
|
+
skillVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35
|
+
mcpIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
36
|
+
subAgentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
37
|
+
ruleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type CreatePresetInput = z.infer<typeof CreatePresetInputSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* Input schema for updating a Preset.
|
|
42
|
+
*/
|
|
43
|
+
export declare const UpdatePresetInputSchema: z.ZodObject<{
|
|
44
|
+
name: z.ZodOptional<z.ZodString>;
|
|
45
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
skillIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
49
|
+
skillVersions: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
50
|
+
mcpIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
51
|
+
subAgentIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
52
|
+
ruleIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type UpdatePresetInput = z.infer<typeof UpdatePresetInputSchema>;
|
|
@@ -6,6 +6,9 @@ import { z } from 'zod';
|
|
|
6
6
|
* defined in Markdown with frontmatter (name, description, tools, model, etc.).
|
|
7
7
|
* The body is the system prompt.
|
|
8
8
|
*
|
|
9
|
+
* Content can be provided inline via `subAgentMd` or sourced from GitHub
|
|
10
|
+
* via `source`. When `source` is set, the evaluator live-fetches the .md
|
|
11
|
+
* file at run time (template pattern).
|
|
9
12
|
*/
|
|
10
13
|
export declare const SubAgentSchema: z.ZodObject<{
|
|
11
14
|
id: z.ZodString;
|
|
@@ -16,12 +19,24 @@ export declare const SubAgentSchema: z.ZodObject<{
|
|
|
16
19
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
17
20
|
projectId: z.ZodString;
|
|
18
21
|
subAgentMd: z.ZodString;
|
|
22
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
owner: z.ZodString;
|
|
24
|
+
repo: z.ZodString;
|
|
25
|
+
path: z.ZodString;
|
|
26
|
+
ref: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
19
28
|
}, z.core.$strip>;
|
|
20
29
|
export type SubAgent = z.infer<typeof SubAgentSchema>;
|
|
21
30
|
export declare const CreateSubAgentInputSchema: z.ZodObject<{
|
|
22
31
|
name: z.ZodString;
|
|
23
32
|
description: z.ZodString;
|
|
24
33
|
projectId: z.ZodString;
|
|
34
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
owner: z.ZodString;
|
|
36
|
+
repo: z.ZodString;
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
ref: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
25
40
|
subAgentMd: z.ZodString;
|
|
26
41
|
}, z.core.$strip>;
|
|
27
42
|
export type CreateSubAgentInput = z.infer<typeof CreateSubAgentInputSchema>;
|
|
@@ -29,6 +44,12 @@ export declare const UpdateSubAgentInputSchema: z.ZodObject<{
|
|
|
29
44
|
name: z.ZodOptional<z.ZodString>;
|
|
30
45
|
description: z.ZodOptional<z.ZodString>;
|
|
31
46
|
projectId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
48
|
+
owner: z.ZodString;
|
|
49
|
+
repo: z.ZodString;
|
|
50
|
+
path: z.ZodString;
|
|
51
|
+
ref: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>>;
|
|
32
53
|
subAgentMd: z.ZodOptional<z.ZodString>;
|
|
33
54
|
}, z.core.$strip>;
|
|
34
55
|
export type UpdateSubAgentInput = z.infer<typeof UpdateSubAgentInputSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"description": "Unified types for EvalForge agent evaluation system",
|
|
5
5
|
"files": [
|
|
6
6
|
"build"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"artifactId": "evalforge-types"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "160206370dd7d4bc96c12d6f53c2dbf8065906ab2af6c8aad590ba12"
|
|
51
51
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* SkillsGroup schema - a collection of skills (replaces TargetGroup for the new model).
|
|
4
|
-
*
|
|
5
|
-
* Eval runs can be scoped to a skills group to run against all skills in the group.
|
|
6
|
-
*/
|
|
7
|
-
export declare const SkillsGroupSchema: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
description: z.ZodString;
|
|
11
|
-
createdAt: z.ZodString;
|
|
12
|
-
updatedAt: z.ZodString;
|
|
13
|
-
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
projectId: z.ZodString;
|
|
15
|
-
skillIds: z.ZodArray<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type SkillsGroup = z.infer<typeof SkillsGroupSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* Input schema for creating a new SkillsGroup.
|
|
20
|
-
*/
|
|
21
|
-
export declare const CreateSkillsGroupInputSchema: z.ZodObject<{
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
description: z.ZodString;
|
|
24
|
-
projectId: z.ZodString;
|
|
25
|
-
skillIds: z.ZodArray<z.ZodString>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export type CreateSkillsGroupInput = z.infer<typeof CreateSkillsGroupInputSchema>;
|
|
28
|
-
/**
|
|
29
|
-
* Input schema for updating a SkillsGroup.
|
|
30
|
-
*/
|
|
31
|
-
export declare const UpdateSkillsGroupInputSchema: z.ZodObject<{
|
|
32
|
-
name: z.ZodOptional<z.ZodString>;
|
|
33
|
-
description: z.ZodOptional<z.ZodString>;
|
|
34
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
35
|
-
skillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export type UpdateSkillsGroupInput = z.infer<typeof UpdateSkillsGroupInputSchema>;
|