@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.js
CHANGED
|
@@ -1136,7 +1136,13 @@ var WixSiteSummarySchema = import_zod23.z.object({
|
|
|
1136
1136
|
var ProvisionedSiteSchema = import_zod23.z.object({
|
|
1137
1137
|
id: import_zod23.z.string(),
|
|
1138
1138
|
url: import_zod23.z.string().optional(),
|
|
1139
|
-
editorUrl: import_zod23.z.string().optional()
|
|
1139
|
+
editorUrl: import_zod23.z.string().optional(),
|
|
1140
|
+
/**
|
|
1141
|
+
* Outcome of the site's bootstrap steps, if any ran. Carried alongside the
|
|
1142
|
+
* site so a failed bootstrap step is visible in the run result instead of
|
|
1143
|
+
* being silently discarded. Absent when the scenario requested no bootstrap.
|
|
1144
|
+
*/
|
|
1145
|
+
bootstrapResult: SiteBootstrapResultSchema.optional()
|
|
1140
1146
|
});
|
|
1141
1147
|
|
|
1142
1148
|
// src/scenario/test-scenario.ts
|
|
@@ -1607,7 +1613,15 @@ var TestScenarioSchema = TenantEntitySchema.extend({
|
|
|
1607
1613
|
/** Base64-encoded images attached to the trigger prompt (max 3) */
|
|
1608
1614
|
triggerPromptImages: import_zod26.z.array(TriggerPromptImageSchema).max(3).optional(),
|
|
1609
1615
|
/** Optional per-scenario Wix site provisioning instructions. Absent ≡ no site. */
|
|
1610
|
-
siteSetup: SiteSetupConfigSchema.optional()
|
|
1616
|
+
siteSetup: SiteSetupConfigSchema.optional(),
|
|
1617
|
+
/**
|
|
1618
|
+
* Read-only scenarios are managed outside the UI (seeded/imported) and must
|
|
1619
|
+
* not be edited or deleted from the UI. Plain optional (no `.default(false)`):
|
|
1620
|
+
* `UpdateTestScenarioInputSchema` is the create schema `.partial()`, and a Zod
|
|
1621
|
+
* default would coerce an omitted `readOnly` back to `false` on update,
|
|
1622
|
+
* clobbering it. Defaulted to `false` at the repo/DB layer instead.
|
|
1623
|
+
*/
|
|
1624
|
+
readOnly: import_zod26.z.boolean().optional()
|
|
1611
1625
|
});
|
|
1612
1626
|
var SITE_SETUP_EXCLUSIVE_VARIABLES = ["site-id"];
|
|
1613
1627
|
function extractVariableNamesFromPrompt(prompt) {
|
|
@@ -1719,7 +1733,9 @@ var BatchScenarioEntrySchema = import_zod27.z.object({
|
|
|
1719
1733
|
triggerPrompt: import_zod27.z.string().min(10, "triggerPrompt: Must be at least 10 characters"),
|
|
1720
1734
|
templateId: import_zod27.z.string().nullish(),
|
|
1721
1735
|
tags: import_zod27.z.array(import_zod27.z.string()).optional(),
|
|
1722
|
-
assertionLinks: import_zod27.z.array(BatchAssertionLinkSchema).optional()
|
|
1736
|
+
assertionLinks: import_zod27.z.array(BatchAssertionLinkSchema).optional(),
|
|
1737
|
+
/** Mark the imported scenario as read-only (managed outside the UI). */
|
|
1738
|
+
readOnly: import_zod27.z.boolean().optional()
|
|
1723
1739
|
}).superRefine((data, ctx) => {
|
|
1724
1740
|
if (!data.assertionLinks) return;
|
|
1725
1741
|
const objectLinks = data.assertionLinks.filter(
|
|
@@ -2228,7 +2244,14 @@ var EvalRunResultSchema = import_zod33.z.object({
|
|
|
2228
2244
|
/** Full conversation messages (only present in transit; stripped before DB storage) */
|
|
2229
2245
|
conversation: import_zod33.z.array(ConversationMessageSchema).optional(),
|
|
2230
2246
|
/** 0-based iteration index when a scenario is run multiple times within a single eval run */
|
|
2231
|
-
iterationIndex: import_zod33.z.number().int().min(0).optional()
|
|
2247
|
+
iterationIndex: import_zod33.z.number().int().min(0).optional(),
|
|
2248
|
+
/**
|
|
2249
|
+
* Site provisioned for this run (present when scenario.siteSetup.mode ≠ 'none').
|
|
2250
|
+
* This is a historical record of what the run used: the site is torn down in
|
|
2251
|
+
* the evaluator's cleanup step once the run finishes, so any `url`/`editorUrl`
|
|
2252
|
+
* here may no longer resolve and must not be presented as a live link.
|
|
2253
|
+
*/
|
|
2254
|
+
provisionedSite: ProvisionedSiteSchema.optional()
|
|
2232
2255
|
});
|
|
2233
2256
|
var PromptResultSchema = import_zod33.z.object({
|
|
2234
2257
|
text: import_zod33.z.string(),
|