@wix/evalforge-types 0.88.0 → 0.90.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
@@ -185,6 +185,7 @@ __export(index_exports, {
185
185
  SubAgentSchema: () => SubAgentSchema,
186
186
  TRACE_EVENT_PREFIX: () => TRACE_EVENT_PREFIX,
187
187
  TargetSchema: () => TargetSchema,
188
+ TemplateFileEntrySchema: () => TemplateFileEntrySchema,
188
189
  TemplateFileSchema: () => TemplateFileSchema,
189
190
  TemplateFileStatus: () => TemplateFileStatus,
190
191
  TemplateSchema: () => TemplateSchema,
@@ -283,7 +284,9 @@ var MCPEntitySchema = TenantEntitySchema.extend({
283
284
  /** Display name for the MCP entity (independent of the server key in config) */
284
285
  name: import_zod3.z.string().min(1),
285
286
  /** Keyed MCP server config — top-level key is the server name, value is its config */
286
- config: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.unknown())
287
+ config: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.unknown()),
288
+ /** GitHub source reference for live content fetching (single config file) */
289
+ source: GitHubSourceSchema.optional()
287
290
  });
288
291
  var CreateMcpInputSchema = MCPEntitySchema.omit({
289
292
  id: true,
@@ -397,10 +400,7 @@ var ModelConfigSchema = import_zod4.z.object({
397
400
  // In Zod v4, z.preprocess() creates ZodEffects which is not recognized as optional
398
401
  // by the object schema. Outer .optional() ensures missing keys are accepted; inner
399
402
  // .optional() handles null→undefined conversion from the preprocessor.
400
- temperature: import_zod4.z.preprocess(
401
- nullToUndefined,
402
- import_zod4.z.number().min(0).max(1).optional()
403
- ).optional(),
403
+ temperature: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(0).max(1).optional()).optional(),
404
404
  maxTokens: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().min(1).optional()).optional(),
405
405
  /** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
406
406
  maxTurns: import_zod4.z.preprocess(nullToUndefined, import_zod4.z.number().int().min(0).optional()).optional()
@@ -417,7 +417,9 @@ var RuleTypeSchema = import_zod5.z.enum([
417
417
  var RuleSchema = TenantEntitySchema.extend({
418
418
  ruleType: RuleTypeSchema,
419
419
  content: import_zod5.z.string(),
420
- directory: import_zod5.z.string().max(500).optional()
420
+ directory: import_zod5.z.string().max(500).optional(),
421
+ /** GitHub source reference for live content fetching (single rule file) */
422
+ source: GitHubSourceSchema.optional()
421
423
  });
422
424
  var RuleInputBaseSchema = RuleSchema.omit({
423
425
  id: true,
@@ -809,6 +811,7 @@ function capabilityToRule(cap) {
809
811
  ruleType: content?.ruleType ?? "claude-md",
810
812
  content: content?.content ?? "",
811
813
  ...content?.directory ? { directory: content.directory } : {},
814
+ source: cap.source,
812
815
  createdAt: cap.createdAt,
813
816
  updatedAt: cap.updatedAt,
814
817
  deleted: cap.deleted
@@ -822,6 +825,7 @@ function capabilityToMcp(cap) {
822
825
  name: cap.name,
823
826
  description: cap.description,
824
827
  config: content?.config ?? {},
828
+ source: cap.source,
825
829
  createdAt: cap.createdAt,
826
830
  updatedAt: cap.updatedAt,
827
831
  deleted: cap.deleted
@@ -2207,6 +2211,11 @@ var ExtraFileSchema = import_zod35.z.object({
2207
2211
  }).refine((ef) => ef.content !== void 0 || ef.gitSource !== void 0, {
2208
2212
  message: "ExtraFile must have either content or gitSource"
2209
2213
  });
2214
+ var TemplateFileEntrySchema = import_zod35.z.object({
2215
+ path: import_zod35.z.string().min(1),
2216
+ content: import_zod35.z.string(),
2217
+ extra: import_zod35.z.boolean()
2218
+ });
2210
2219
  var TemplateSchema = TenantEntitySchema.extend({
2211
2220
  source: GitHubSourceSchema.optional(),
2212
2221
  sourceFiles: import_zod35.z.array(SourceFileSchema).optional(),
@@ -2541,6 +2550,7 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
2541
2550
  SubAgentSchema,
2542
2551
  TRACE_EVENT_PREFIX,
2543
2552
  TargetSchema,
2553
+ TemplateFileEntrySchema,
2544
2554
  TemplateFileSchema,
2545
2555
  TemplateFileStatus,
2546
2556
  TemplateSchema,