@wix/evalforge-types 0.87.0 → 0.89.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 +10 -0
- package/build/index.js.map +2 -2
- package/build/index.mjs +9 -0
- package/build/index.mjs.map +2 -2
- package/build/types/template/template.d.ts +6 -0
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -185,6 +185,7 @@ __export(index_exports, {
|
|
|
185
185
|
SubAgentSchema: () => SubAgentSchema,
|
|
186
186
|
TRACE_EVENT_PREFIX: () => TRACE_EVENT_PREFIX,
|
|
187
187
|
TargetSchema: () => TargetSchema,
|
|
188
|
+
TemplateFileEntrySchema: () => TemplateFileEntrySchema,
|
|
188
189
|
TemplateFileSchema: () => TemplateFileSchema,
|
|
189
190
|
TemplateFileStatus: () => TemplateFileStatus,
|
|
190
191
|
TemplateSchema: () => TemplateSchema,
|
|
@@ -394,6 +395,9 @@ function normalizeModelId(modelId) {
|
|
|
394
395
|
var nullToUndefined = (val) => val === null ? void 0 : val;
|
|
395
396
|
var ModelConfigSchema = import_zod4.z.object({
|
|
396
397
|
model: AnyModelSchema,
|
|
398
|
+
// In Zod v4, z.preprocess() creates ZodEffects which is not recognized as optional
|
|
399
|
+
// by the object schema. Outer .optional() ensures missing keys are accepted; inner
|
|
400
|
+
// .optional() handles null→undefined conversion from the preprocessor.
|
|
397
401
|
temperature: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(0).max(1).optional()).optional(),
|
|
398
402
|
maxTokens: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(1).optional()).optional(),
|
|
399
403
|
/** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
|
|
@@ -2201,6 +2205,11 @@ var ExtraFileSchema = import_zod35.z.object({
|
|
|
2201
2205
|
}).refine((ef) => ef.content !== void 0 || ef.gitSource !== void 0, {
|
|
2202
2206
|
message: "ExtraFile must have either content or gitSource"
|
|
2203
2207
|
});
|
|
2208
|
+
var TemplateFileEntrySchema = import_zod35.z.object({
|
|
2209
|
+
path: import_zod35.z.string().min(1),
|
|
2210
|
+
content: import_zod35.z.string(),
|
|
2211
|
+
extra: import_zod35.z.boolean()
|
|
2212
|
+
});
|
|
2204
2213
|
var TemplateSchema = TenantEntitySchema.extend({
|
|
2205
2214
|
source: GitHubSourceSchema.optional(),
|
|
2206
2215
|
sourceFiles: import_zod35.z.array(SourceFileSchema).optional(),
|
|
@@ -2535,6 +2544,7 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2535
2544
|
SubAgentSchema,
|
|
2536
2545
|
TRACE_EVENT_PREFIX,
|
|
2537
2546
|
TargetSchema,
|
|
2547
|
+
TemplateFileEntrySchema,
|
|
2538
2548
|
TemplateFileSchema,
|
|
2539
2549
|
TemplateFileStatus,
|
|
2540
2550
|
TemplateSchema,
|