@wix/evalforge-types 0.49.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.
@@ -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 to point to content that can be fetched via the GitHub API.
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;
@@ -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.49.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": "c8318cc180bbf4042012cb31a3f8256b3390426b1c7a1d99fb3cf314"
50
+ "falconPackageHash": "160206370dd7d4bc96c12d6f53c2dbf8065906ab2af6c8aad590ba12"
51
51
  }