@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.js
CHANGED
|
@@ -392,21 +392,24 @@ function normalizeModelId(modelId) {
|
|
|
392
392
|
var nullToUndefined = (val) => val === null ? void 0 : val;
|
|
393
393
|
var ModelConfigSchema = import_zod4.z.object({
|
|
394
394
|
model: AnyModelSchema,
|
|
395
|
-
temperature: import_zod4.z.preprocess(
|
|
396
|
-
|
|
397
|
-
import_zod4.z.number().min(0).max(1).optional()
|
|
398
|
-
),
|
|
399
|
-
maxTokens: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(1).optional()),
|
|
395
|
+
temperature: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(0).max(1).optional()).optional(),
|
|
396
|
+
maxTokens: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(1).optional()).optional(),
|
|
400
397
|
/** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
|
|
401
|
-
maxTurns: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().int().min(0).optional())
|
|
398
|
+
maxTurns: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().int().min(0).optional()).optional()
|
|
402
399
|
});
|
|
403
400
|
|
|
404
401
|
// src/common/rule.ts
|
|
405
402
|
var import_zod5 = require("zod");
|
|
406
|
-
var RuleTypeSchema = import_zod5.z.enum([
|
|
403
|
+
var RuleTypeSchema = import_zod5.z.enum([
|
|
404
|
+
"claude-md",
|
|
405
|
+
"agents-md",
|
|
406
|
+
"cursor-rule",
|
|
407
|
+
"generic"
|
|
408
|
+
]);
|
|
407
409
|
var RuleSchema = TenantEntitySchema.extend({
|
|
408
410
|
ruleType: RuleTypeSchema,
|
|
409
|
-
content: import_zod5.z.string()
|
|
411
|
+
content: import_zod5.z.string(),
|
|
412
|
+
directory: import_zod5.z.string().max(500).optional()
|
|
410
413
|
});
|
|
411
414
|
var RuleInputBaseSchema = RuleSchema.omit({
|
|
412
415
|
id: true,
|
|
@@ -797,6 +800,7 @@ function capabilityToRule(cap) {
|
|
|
797
800
|
description: cap.description,
|
|
798
801
|
ruleType: content?.ruleType ?? "claude-md",
|
|
799
802
|
content: content?.content ?? "",
|
|
803
|
+
...content?.directory ? { directory: content.directory } : {},
|
|
800
804
|
createdAt: cap.createdAt,
|
|
801
805
|
updatedAt: cap.updatedAt,
|
|
802
806
|
deleted: cap.deleted
|