@wix/evalforge-types 0.97.0 → 0.98.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 +26 -0
- package/build/index.js.map +2 -2
- package/build/index.mjs +22 -0
- package/build/index.mjs.map +2 -2
- package/build/types/project/project.d.ts +39 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Shared TypeScript types and [Zod](https://zod.dev/) schemas for the EvalForge pl
|
|
|
13
13
|
| `scenario` | Test scenario definitions and environment configuration |
|
|
14
14
|
| `suite` | Test suite organization |
|
|
15
15
|
| `evaluation` | Eval run schemas, configs, results, and statuses |
|
|
16
|
-
| `project` | Project schemas (multi-tenancy root) |
|
|
16
|
+
| `project` | Project schemas (multi-tenancy root), plus `AppReadinessStatus` (AI-Gateway app readiness: registration + EvalForge permission) |
|
|
17
17
|
| `template` | Project template schemas |
|
|
18
18
|
| `schedule` | Recurring evaluation schedule schemas (`EvalSchedule`, `FrequencyType`) |
|
|
19
19
|
| `assertion` | Custom assertion definitions; `system:build_passed` restricts `params.command` to an allowlisted set (`yarn build`, `npm run build`, `pnpm run build`, `pnpm build`) |
|
package/build/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
AGENT_TYPE_LABELS: () => AGENT_TYPE_LABELS,
|
|
24
24
|
ALLOWED_BUILD_COMMANDS: () => ALLOWED_BUILD_COMMANDS,
|
|
25
25
|
ALL_AVAILABLE_MODEL_IDS: () => ALL_AVAILABLE_MODEL_IDS,
|
|
26
|
+
APP_READINESS_REASONS: () => APP_READINESS_REASONS,
|
|
26
27
|
AVAILABLE_CLAUDE_MODEL_IDS: () => AVAILABLE_CLAUDE_MODEL_IDS,
|
|
27
28
|
AVAILABLE_GEMINI_MODEL_IDS: () => AVAILABLE_GEMINI_MODEL_IDS,
|
|
28
29
|
AVAILABLE_OPENAI_MODEL_IDS: () => AVAILABLE_OPENAI_MODEL_IDS,
|
|
@@ -38,6 +39,9 @@ __export(index_exports, {
|
|
|
38
39
|
ApiCallAssertionSchema: () => ApiCallAssertionSchema,
|
|
39
40
|
ApiCallConfigSchema: () => ApiCallConfigSchema,
|
|
40
41
|
ApiCallSchema: () => ApiCallSchema,
|
|
42
|
+
AppReadinessChecksSchema: () => AppReadinessChecksSchema,
|
|
43
|
+
AppReadinessReasonSchema: () => AppReadinessReasonSchema,
|
|
44
|
+
AppReadinessStatusSchema: () => AppReadinessStatusSchema,
|
|
41
45
|
AssertionConfigSchema: () => AssertionConfigSchema,
|
|
42
46
|
AssertionParameterSchema: () => AssertionParameterSchema,
|
|
43
47
|
AssertionParameterTypeSchema: () => AssertionParameterTypeSchema,
|
|
@@ -2347,6 +2351,24 @@ var CreateProjectInputSchema = ProjectSchema.omit({
|
|
|
2347
2351
|
)
|
|
2348
2352
|
});
|
|
2349
2353
|
var UpdateProjectInputSchema = CreateProjectInputSchema.partial();
|
|
2354
|
+
var APP_READINESS_REASONS = [
|
|
2355
|
+
"no-app-id",
|
|
2356
|
+
"not-registered",
|
|
2357
|
+
"missing-permission",
|
|
2358
|
+
"check-failed"
|
|
2359
|
+
];
|
|
2360
|
+
var AppReadinessReasonSchema = import_zod35.z.enum(APP_READINESS_REASONS);
|
|
2361
|
+
var AppReadinessChecksSchema = import_zod35.z.object({
|
|
2362
|
+
hasAppId: import_zod35.z.boolean().describe("project.appId is set"),
|
|
2363
|
+
isRegistered: import_zod35.z.boolean().describe("App is registered in the Wix AI Gateway (prompt-hub)"),
|
|
2364
|
+
hasEvalforgePermission: import_zod35.z.boolean().describe("App has the SCOPE.CODEAI.EVALFORGE permission")
|
|
2365
|
+
});
|
|
2366
|
+
var AppReadinessStatusSchema = import_zod35.z.object({
|
|
2367
|
+
appId: import_zod35.z.string().nullable().describe("The configured app id, or null"),
|
|
2368
|
+
isReady: import_zod35.z.boolean().describe("True only when every blocking check passes"),
|
|
2369
|
+
checks: AppReadinessChecksSchema,
|
|
2370
|
+
reasons: import_zod35.z.array(AppReadinessReasonSchema).describe("Active problems; empty when ready")
|
|
2371
|
+
});
|
|
2350
2372
|
|
|
2351
2373
|
// src/template/template.ts
|
|
2352
2374
|
var import_zod36 = require("zod");
|
|
@@ -2538,6 +2560,7 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2538
2560
|
AGENT_TYPE_LABELS,
|
|
2539
2561
|
ALLOWED_BUILD_COMMANDS,
|
|
2540
2562
|
ALL_AVAILABLE_MODEL_IDS,
|
|
2563
|
+
APP_READINESS_REASONS,
|
|
2541
2564
|
AVAILABLE_CLAUDE_MODEL_IDS,
|
|
2542
2565
|
AVAILABLE_GEMINI_MODEL_IDS,
|
|
2543
2566
|
AVAILABLE_OPENAI_MODEL_IDS,
|
|
@@ -2553,6 +2576,9 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2553
2576
|
ApiCallAssertionSchema,
|
|
2554
2577
|
ApiCallConfigSchema,
|
|
2555
2578
|
ApiCallSchema,
|
|
2579
|
+
AppReadinessChecksSchema,
|
|
2580
|
+
AppReadinessReasonSchema,
|
|
2581
|
+
AppReadinessStatusSchema,
|
|
2556
2582
|
AssertionConfigSchema,
|
|
2557
2583
|
AssertionParameterSchema,
|
|
2558
2584
|
AssertionParameterTypeSchema,
|