@wix/evalforge-types 0.17.0 → 0.18.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.
@@ -0,0 +1,42 @@
1
+ import type { AssertionParameter, AssertionType } from './assertion.js';
2
+ /**
3
+ * System assertion definition - built-in assertions available to all projects.
4
+ * These are not stored in the database but defined in code.
5
+ */
6
+ export interface SystemAssertion {
7
+ /** Unique ID prefixed with 'system:' */
8
+ id: string;
9
+ /** Display name */
10
+ name: string;
11
+ /** Description of what the assertion checks */
12
+ description: string;
13
+ /** Assertion type */
14
+ type: AssertionType;
15
+ /** Parameters that can be configured per-scenario */
16
+ parameters: AssertionParameter[];
17
+ }
18
+ /**
19
+ * System assertion IDs - prefixed with 'system:' to distinguish from custom assertions.
20
+ */
21
+ export declare const SYSTEM_ASSERTION_IDS: {
22
+ readonly SKILL_WAS_CALLED: "system:skill_was_called";
23
+ readonly BUILD_PASSED: "system:build_passed";
24
+ };
25
+ export type SystemAssertionId = (typeof SYSTEM_ASSERTION_IDS)[keyof typeof SYSTEM_ASSERTION_IDS];
26
+ /**
27
+ * Check if an assertion ID is a system assertion.
28
+ */
29
+ export declare function isSystemAssertionId(id: string): id is SystemAssertionId;
30
+ /**
31
+ * Built-in system assertions.
32
+ * These are available to all projects without needing to create them.
33
+ */
34
+ export declare const SYSTEM_ASSERTIONS: Record<SystemAssertionId, SystemAssertion>;
35
+ /**
36
+ * Get all system assertions as an array.
37
+ */
38
+ export declare function getSystemAssertions(): SystemAssertion[];
39
+ /**
40
+ * Get a system assertion by ID.
41
+ */
42
+ export declare function getSystemAssertion(id: SystemAssertionId): SystemAssertion | undefined;
@@ -42,6 +42,10 @@ export declare const TestScenarioSchema: z.ZodObject<{
42
42
  temperature: z.ZodOptional<z.ZodNumber>;
43
43
  }, z.core.$strip>]>>>;
44
44
  assertionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ assertionLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
46
+ assertionId: z.ZodString;
47
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
48
+ }, z.core.$strip>>>;
45
49
  }, z.core.$strip>;
46
50
  export type TestScenario = z.infer<typeof TestScenarioSchema>;
47
51
  /**
@@ -70,6 +74,10 @@ export declare const CreateTestScenarioInputSchema: z.ZodObject<{
70
74
  temperature: z.ZodOptional<z.ZodNumber>;
71
75
  }, z.core.$strip>]>>>;
72
76
  assertionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
77
+ assertionLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
+ assertionId: z.ZodString;
79
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
80
+ }, z.core.$strip>>>;
73
81
  }, z.core.$strip>;
74
82
  export type CreateTestScenarioInput = z.infer<typeof CreateTestScenarioInputSchema>;
75
83
  /**
@@ -98,5 +106,9 @@ export declare const UpdateTestScenarioInputSchema: z.ZodObject<{
98
106
  temperature: z.ZodOptional<z.ZodNumber>;
99
107
  }, z.core.$strip>]>>>>;
100
108
  assertionIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
109
+ assertionLinks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
110
+ assertionId: z.ZodString;
111
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
112
+ }, z.core.$strip>>>>;
101
113
  }, z.core.$strip>;
102
114
  export type UpdateTestScenarioInput = z.infer<typeof UpdateTestScenarioInputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-types",
3
- "version": "0.17.0",
3
+ "version": "0.18.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": "b5481b07d4eec5a7dcbbee877c0e6038b48ded2030306b438bac6246"
49
+ "falconPackageHash": "99055e21a0b36ab3ea066f8ffe6d6f2e0c8b2458f81f89cec56968a6"
50
50
  }