@wix/evalforge-types 0.96.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
CHANGED
|
@@ -1613,7 +1613,15 @@ var TestScenarioSchema = TenantEntitySchema.extend({
|
|
|
1613
1613
|
/** Base64-encoded images attached to the trigger prompt (max 3) */
|
|
1614
1614
|
triggerPromptImages: import_zod26.z.array(TriggerPromptImageSchema).max(3).optional(),
|
|
1615
1615
|
/** Optional per-scenario Wix site provisioning instructions. Absent ≡ no site. */
|
|
1616
|
-
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()
|
|
1617
1625
|
});
|
|
1618
1626
|
var SITE_SETUP_EXCLUSIVE_VARIABLES = ["site-id"];
|
|
1619
1627
|
function extractVariableNamesFromPrompt(prompt) {
|
|
@@ -1725,7 +1733,9 @@ var BatchScenarioEntrySchema = import_zod27.z.object({
|
|
|
1725
1733
|
triggerPrompt: import_zod27.z.string().min(10, "triggerPrompt: Must be at least 10 characters"),
|
|
1726
1734
|
templateId: import_zod27.z.string().nullish(),
|
|
1727
1735
|
tags: import_zod27.z.array(import_zod27.z.string()).optional(),
|
|
1728
|
-
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()
|
|
1729
1739
|
}).superRefine((data, ctx) => {
|
|
1730
1740
|
if (!data.assertionLinks) return;
|
|
1731
1741
|
const objectLinks = data.assertionLinks.filter(
|