@wix/evalforge-types 0.84.0 → 0.85.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.mjs
CHANGED
|
@@ -154,10 +154,16 @@ var ModelConfigSchema = z4.object({
|
|
|
154
154
|
|
|
155
155
|
// src/common/rule.ts
|
|
156
156
|
import { z as z5 } from "zod";
|
|
157
|
-
var RuleTypeSchema = z5.enum([
|
|
157
|
+
var RuleTypeSchema = z5.enum([
|
|
158
|
+
"claude-md",
|
|
159
|
+
"agents-md",
|
|
160
|
+
"cursor-rule",
|
|
161
|
+
"generic"
|
|
162
|
+
]);
|
|
158
163
|
var RuleSchema = TenantEntitySchema.extend({
|
|
159
164
|
ruleType: RuleTypeSchema,
|
|
160
|
-
content: z5.string()
|
|
165
|
+
content: z5.string(),
|
|
166
|
+
directory: z5.string().max(500).optional()
|
|
161
167
|
});
|
|
162
168
|
var RuleInputBaseSchema = RuleSchema.omit({
|
|
163
169
|
id: true,
|
|
@@ -548,6 +554,7 @@ function capabilityToRule(cap) {
|
|
|
548
554
|
description: cap.description,
|
|
549
555
|
ruleType: content?.ruleType ?? "claude-md",
|
|
550
556
|
content: content?.content ?? "",
|
|
557
|
+
...content?.directory ? { directory: content.directory } : {},
|
|
551
558
|
createdAt: cap.createdAt,
|
|
552
559
|
updatedAt: cap.updatedAt,
|
|
553
560
|
deleted: cap.deleted
|