@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.js CHANGED
@@ -403,10 +403,16 @@ var ModelConfigSchema = import_zod4.z.object({
403
403
 
404
404
  // src/common/rule.ts
405
405
  var import_zod5 = require("zod");
406
- var RuleTypeSchema = import_zod5.z.enum(["claude-md", "agents-md", "cursor-rule"]);
406
+ var RuleTypeSchema = import_zod5.z.enum([
407
+ "claude-md",
408
+ "agents-md",
409
+ "cursor-rule",
410
+ "generic"
411
+ ]);
407
412
  var RuleSchema = TenantEntitySchema.extend({
408
413
  ruleType: RuleTypeSchema,
409
- content: import_zod5.z.string()
414
+ content: import_zod5.z.string(),
415
+ directory: import_zod5.z.string().max(500).optional()
410
416
  });
411
417
  var RuleInputBaseSchema = RuleSchema.omit({
412
418
  id: true,
@@ -797,6 +803,7 @@ function capabilityToRule(cap) {
797
803
  description: cap.description,
798
804
  ruleType: content?.ruleType ?? "claude-md",
799
805
  content: content?.content ?? "",
806
+ ...content?.directory ? { directory: content.directory } : {},
800
807
  createdAt: cap.createdAt,
801
808
  updatedAt: cap.updatedAt,
802
809
  deleted: cap.deleted