@wix/evalforge-types 0.95.0 → 0.97.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/build/index.js +27 -4
- package/build/index.js.map +2 -2
- package/build/index.mjs +27 -4
- package/build/index.mjs.map +2 -2
- package/build/types/evaluation/eval-result.d.ts +13 -0
- package/build/types/evaluation/eval-run.d.ts +13 -0
- package/build/types/scenario/batch-import.d.ts +2 -0
- package/build/types/scenario/site-setup.d.ts +8 -0
- package/build/types/scenario/test-scenario.d.ts +3 -0
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -871,7 +871,13 @@ var WixSiteSummarySchema = z23.object({
|
|
|
871
871
|
var ProvisionedSiteSchema = z23.object({
|
|
872
872
|
id: z23.string(),
|
|
873
873
|
url: z23.string().optional(),
|
|
874
|
-
editorUrl: z23.string().optional()
|
|
874
|
+
editorUrl: z23.string().optional(),
|
|
875
|
+
/**
|
|
876
|
+
* Outcome of the site's bootstrap steps, if any ran. Carried alongside the
|
|
877
|
+
* site so a failed bootstrap step is visible in the run result instead of
|
|
878
|
+
* being silently discarded. Absent when the scenario requested no bootstrap.
|
|
879
|
+
*/
|
|
880
|
+
bootstrapResult: SiteBootstrapResultSchema.optional()
|
|
875
881
|
});
|
|
876
882
|
|
|
877
883
|
// src/scenario/test-scenario.ts
|
|
@@ -1342,7 +1348,15 @@ var TestScenarioSchema = TenantEntitySchema.extend({
|
|
|
1342
1348
|
/** Base64-encoded images attached to the trigger prompt (max 3) */
|
|
1343
1349
|
triggerPromptImages: z26.array(TriggerPromptImageSchema).max(3).optional(),
|
|
1344
1350
|
/** Optional per-scenario Wix site provisioning instructions. Absent ≡ no site. */
|
|
1345
|
-
siteSetup: SiteSetupConfigSchema.optional()
|
|
1351
|
+
siteSetup: SiteSetupConfigSchema.optional(),
|
|
1352
|
+
/**
|
|
1353
|
+
* Read-only scenarios are managed outside the UI (seeded/imported) and must
|
|
1354
|
+
* not be edited or deleted from the UI. Plain optional (no `.default(false)`):
|
|
1355
|
+
* `UpdateTestScenarioInputSchema` is the create schema `.partial()`, and a Zod
|
|
1356
|
+
* default would coerce an omitted `readOnly` back to `false` on update,
|
|
1357
|
+
* clobbering it. Defaulted to `false` at the repo/DB layer instead.
|
|
1358
|
+
*/
|
|
1359
|
+
readOnly: z26.boolean().optional()
|
|
1346
1360
|
});
|
|
1347
1361
|
var SITE_SETUP_EXCLUSIVE_VARIABLES = ["site-id"];
|
|
1348
1362
|
function extractVariableNamesFromPrompt(prompt) {
|
|
@@ -1454,7 +1468,9 @@ var BatchScenarioEntrySchema = z27.object({
|
|
|
1454
1468
|
triggerPrompt: z27.string().min(10, "triggerPrompt: Must be at least 10 characters"),
|
|
1455
1469
|
templateId: z27.string().nullish(),
|
|
1456
1470
|
tags: z27.array(z27.string()).optional(),
|
|
1457
|
-
assertionLinks: z27.array(BatchAssertionLinkSchema).optional()
|
|
1471
|
+
assertionLinks: z27.array(BatchAssertionLinkSchema).optional(),
|
|
1472
|
+
/** Mark the imported scenario as read-only (managed outside the UI). */
|
|
1473
|
+
readOnly: z27.boolean().optional()
|
|
1458
1474
|
}).superRefine((data, ctx) => {
|
|
1459
1475
|
if (!data.assertionLinks) return;
|
|
1460
1476
|
const objectLinks = data.assertionLinks.filter(
|
|
@@ -1963,7 +1979,14 @@ var EvalRunResultSchema = z33.object({
|
|
|
1963
1979
|
/** Full conversation messages (only present in transit; stripped before DB storage) */
|
|
1964
1980
|
conversation: z33.array(ConversationMessageSchema).optional(),
|
|
1965
1981
|
/** 0-based iteration index when a scenario is run multiple times within a single eval run */
|
|
1966
|
-
iterationIndex: z33.number().int().min(0).optional()
|
|
1982
|
+
iterationIndex: z33.number().int().min(0).optional(),
|
|
1983
|
+
/**
|
|
1984
|
+
* Site provisioned for this run (present when scenario.siteSetup.mode ≠ 'none').
|
|
1985
|
+
* This is a historical record of what the run used: the site is torn down in
|
|
1986
|
+
* the evaluator's cleanup step once the run finishes, so any `url`/`editorUrl`
|
|
1987
|
+
* here may no longer resolve and must not be presented as a live link.
|
|
1988
|
+
*/
|
|
1989
|
+
provisionedSite: ProvisionedSiteSchema.optional()
|
|
1967
1990
|
});
|
|
1968
1991
|
var PromptResultSchema = z33.object({
|
|
1969
1992
|
text: z33.string(),
|