@wix/evalforge-types 0.97.0 → 0.99.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 +46 -10
- package/build/index.js.map +2 -2
- package/build/index.mjs +42 -10
- 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,
|
|
@@ -1695,16 +1699,26 @@ var UpdateTestScenarioInputSchema = TestScenarioCreateBaseSchema.partial().super
|
|
|
1695
1699
|
|
|
1696
1700
|
// src/scenario/wix-origin-template-ids.ts
|
|
1697
1701
|
var WIX_ORIGIN_TEMPLATE_ID_BY_ALIAS = {
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
"
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
"
|
|
1702
|
+
// Wix Editor (Classic) dev-site templates
|
|
1703
|
+
"stores-v3-editor": "891cc36f-5385-4356-8185-554ccb20d571",
|
|
1704
|
+
"stores-v1-editor": "0ba64bcc-e069-4da9-a6cd-23a296268d84",
|
|
1705
|
+
"events-editor": "6cd4cc54-d6c8-47d7-95ba-578f45392512",
|
|
1706
|
+
"bookings-editor": "d2924ae8-197b-4693-af63-04e51eb50f4d",
|
|
1707
|
+
"restaurants-editor": "63745f80-0d31-4456-bcd6-68be20045872",
|
|
1708
|
+
"blank-editor": "e3ebcbaf-121a-4932-bc6d-729ec32936fc",
|
|
1709
|
+
// Wix Studio dev-site templates
|
|
1710
|
+
"stores-v3-studio": "1a2e0aa8-9bbc-46a2-9ba3-9d9b996410f1",
|
|
1711
|
+
"stores-v1-studio": "a0b45c43-c3db-4cf8-8360-89351dac5acf",
|
|
1712
|
+
"events-studio": "c1099789-af4c-4f04-ac5a-6dc5ec679468",
|
|
1713
|
+
"bookings-studio": "5ccf90bb-1ef7-4c1c-8d8a-5757036ecd9e",
|
|
1714
|
+
"restaurants-studio": "897f6a4c-3a28-47d6-99d6-b382d85502f1",
|
|
1715
|
+
"blank-studio": "795960ae-3021-4ad3-9734-b987e296780b",
|
|
1716
|
+
// Wix Harmony (Editor 3) dev-site templates
|
|
1717
|
+
"stores-v3-harmony": "15c247d5-0848-40fe-ba9b-e7fb09168049",
|
|
1718
|
+
"events-harmony": "33513975-0b9b-40da-8c02-55cca62763fa",
|
|
1719
|
+
"bookings-harmony": "a3170077-6992-4e51-b39e-d31f2af4084b",
|
|
1720
|
+
"restaurants-harmony": "d364e546-615a-46a6-aacb-23e39ab994ad",
|
|
1721
|
+
"blank-harmony": "91532250-8835-46ac-9666-e4db8770b275"
|
|
1708
1722
|
};
|
|
1709
1723
|
var GUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1710
1724
|
function resolveWixOriginTemplateId(templateId) {
|
|
@@ -2347,6 +2361,24 @@ var CreateProjectInputSchema = ProjectSchema.omit({
|
|
|
2347
2361
|
)
|
|
2348
2362
|
});
|
|
2349
2363
|
var UpdateProjectInputSchema = CreateProjectInputSchema.partial();
|
|
2364
|
+
var APP_READINESS_REASONS = [
|
|
2365
|
+
"no-app-id",
|
|
2366
|
+
"not-registered",
|
|
2367
|
+
"missing-permission",
|
|
2368
|
+
"check-failed"
|
|
2369
|
+
];
|
|
2370
|
+
var AppReadinessReasonSchema = import_zod35.z.enum(APP_READINESS_REASONS);
|
|
2371
|
+
var AppReadinessChecksSchema = import_zod35.z.object({
|
|
2372
|
+
hasAppId: import_zod35.z.boolean().describe("project.appId is set"),
|
|
2373
|
+
isRegistered: import_zod35.z.boolean().describe("App is registered in the Wix AI Gateway (prompt-hub)"),
|
|
2374
|
+
hasEvalforgePermission: import_zod35.z.boolean().describe("App has the SCOPE.CODEAI.EVALFORGE permission")
|
|
2375
|
+
});
|
|
2376
|
+
var AppReadinessStatusSchema = import_zod35.z.object({
|
|
2377
|
+
appId: import_zod35.z.string().nullable().describe("The configured app id, or null"),
|
|
2378
|
+
isReady: import_zod35.z.boolean().describe("True only when every blocking check passes"),
|
|
2379
|
+
checks: AppReadinessChecksSchema,
|
|
2380
|
+
reasons: import_zod35.z.array(AppReadinessReasonSchema).describe("Active problems; empty when ready")
|
|
2381
|
+
});
|
|
2350
2382
|
|
|
2351
2383
|
// src/template/template.ts
|
|
2352
2384
|
var import_zod36 = require("zod");
|
|
@@ -2538,6 +2570,7 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2538
2570
|
AGENT_TYPE_LABELS,
|
|
2539
2571
|
ALLOWED_BUILD_COMMANDS,
|
|
2540
2572
|
ALL_AVAILABLE_MODEL_IDS,
|
|
2573
|
+
APP_READINESS_REASONS,
|
|
2541
2574
|
AVAILABLE_CLAUDE_MODEL_IDS,
|
|
2542
2575
|
AVAILABLE_GEMINI_MODEL_IDS,
|
|
2543
2576
|
AVAILABLE_OPENAI_MODEL_IDS,
|
|
@@ -2553,6 +2586,9 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2553
2586
|
ApiCallAssertionSchema,
|
|
2554
2587
|
ApiCallConfigSchema,
|
|
2555
2588
|
ApiCallSchema,
|
|
2589
|
+
AppReadinessChecksSchema,
|
|
2590
|
+
AppReadinessReasonSchema,
|
|
2591
|
+
AppReadinessStatusSchema,
|
|
2556
2592
|
AssertionConfigSchema,
|
|
2557
2593
|
AssertionParameterSchema,
|
|
2558
2594
|
AssertionParameterTypeSchema,
|