@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.mjs
CHANGED
|
@@ -143,6 +143,9 @@ function normalizeModelId(modelId) {
|
|
|
143
143
|
var nullToUndefined = (val) => val === null ? void 0 : val;
|
|
144
144
|
var ModelConfigSchema = z4.object({
|
|
145
145
|
model: AnyModelSchema,
|
|
146
|
+
// In Zod v4, z.preprocess() creates ZodEffects which is not recognized as optional
|
|
147
|
+
// by the object schema. Outer .optional() ensures missing keys are accepted; inner
|
|
148
|
+
// .optional() handles null→undefined conversion from the preprocessor.
|
|
146
149
|
temperature: z4.preprocess(nullToUndefined, z4.number().min(0).max(1).optional()).optional(),
|
|
147
150
|
maxTokens: z4.preprocess(nullToUndefined, z4.number().min(1).optional()).optional(),
|
|
148
151
|
/** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
|
|
@@ -1950,6 +1953,11 @@ var ExtraFileSchema = z35.object({
|
|
|
1950
1953
|
}).refine((ef) => ef.content !== void 0 || ef.gitSource !== void 0, {
|
|
1951
1954
|
message: "ExtraFile must have either content or gitSource"
|
|
1952
1955
|
});
|
|
1956
|
+
var TemplateFileEntrySchema = z35.object({
|
|
1957
|
+
path: z35.string().min(1),
|
|
1958
|
+
content: z35.string(),
|
|
1959
|
+
extra: z35.boolean()
|
|
1960
|
+
});
|
|
1953
1961
|
var TemplateSchema = TenantEntitySchema.extend({
|
|
1954
1962
|
source: GitHubSourceSchema.optional(),
|
|
1955
1963
|
sourceFiles: z35.array(SourceFileSchema).optional(),
|
|
@@ -2283,6 +2291,7 @@ export {
|
|
|
2283
2291
|
SubAgentSchema,
|
|
2284
2292
|
TRACE_EVENT_PREFIX,
|
|
2285
2293
|
TargetSchema,
|
|
2294
|
+
TemplateFileEntrySchema,
|
|
2286
2295
|
TemplateFileSchema,
|
|
2287
2296
|
TemplateFileStatus,
|
|
2288
2297
|
TemplateSchema,
|