@wix/evalforge-types 0.84.0 → 0.86.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 +12 -8
- package/build/index.js.map +2 -2
- package/build/index.mjs +12 -8
- package/build/index.mjs.map +2 -2
- package/build/types/common/models.d.ts +3 -3
- package/build/types/common/rule.d.ts +7 -0
- package/build/types/evaluation/eval-result.d.ts +3 -3
- package/build/types/evaluation/eval-run.d.ts +6 -6
- package/build/types/target/agent.d.ts +9 -9
- package/build/types/target/capability.d.ts +4 -2
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -143,21 +143,24 @@ function normalizeModelId(modelId) {
|
|
|
143
143
|
var nullToUndefined = (val) => val === null ? void 0 : val;
|
|
144
144
|
var ModelConfigSchema = z4.object({
|
|
145
145
|
model: AnyModelSchema,
|
|
146
|
-
temperature: z4.preprocess(
|
|
147
|
-
|
|
148
|
-
z4.number().min(0).max(1).optional()
|
|
149
|
-
),
|
|
150
|
-
maxTokens: z4.preprocess(nullToUndefined, z4.number().min(1).optional()),
|
|
146
|
+
temperature: z4.preprocess(nullToUndefined, z4.number().min(0).max(1).optional()).optional(),
|
|
147
|
+
maxTokens: z4.preprocess(nullToUndefined, z4.number().min(1).optional()).optional(),
|
|
151
148
|
/** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
|
|
152
|
-
maxTurns: z4.preprocess(nullToUndefined, z4.number().int().min(0).optional())
|
|
149
|
+
maxTurns: z4.preprocess(nullToUndefined, z4.number().int().min(0).optional()).optional()
|
|
153
150
|
});
|
|
154
151
|
|
|
155
152
|
// src/common/rule.ts
|
|
156
153
|
import { z as z5 } from "zod";
|
|
157
|
-
var RuleTypeSchema = z5.enum([
|
|
154
|
+
var RuleTypeSchema = z5.enum([
|
|
155
|
+
"claude-md",
|
|
156
|
+
"agents-md",
|
|
157
|
+
"cursor-rule",
|
|
158
|
+
"generic"
|
|
159
|
+
]);
|
|
158
160
|
var RuleSchema = TenantEntitySchema.extend({
|
|
159
161
|
ruleType: RuleTypeSchema,
|
|
160
|
-
content: z5.string()
|
|
162
|
+
content: z5.string(),
|
|
163
|
+
directory: z5.string().max(500).optional()
|
|
161
164
|
});
|
|
162
165
|
var RuleInputBaseSchema = RuleSchema.omit({
|
|
163
166
|
id: true,
|
|
@@ -548,6 +551,7 @@ function capabilityToRule(cap) {
|
|
|
548
551
|
description: cap.description,
|
|
549
552
|
ruleType: content?.ruleType ?? "claude-md",
|
|
550
553
|
content: content?.content ?? "",
|
|
554
|
+
...content?.directory ? { directory: content.directory } : {},
|
|
551
555
|
createdAt: cap.createdAt,
|
|
552
556
|
updatedAt: cap.updatedAt,
|
|
553
557
|
deleted: cap.deleted
|