@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.mjs CHANGED
@@ -32,7 +32,9 @@ var MCPEntitySchema = TenantEntitySchema.extend({
32
32
  /** Display name for the MCP entity (independent of the server key in config) */
33
33
  name: z3.string().min(1),
34
34
  /** Keyed MCP server config — top-level key is the server name, value is its config */
35
- config: z3.record(z3.string(), z3.unknown())
35
+ config: z3.record(z3.string(), z3.unknown()),
36
+ /** GitHub source reference for live content fetching (single config file) */
37
+ source: GitHubSourceSchema.optional()
36
38
  });
37
39
  var CreateMcpInputSchema = MCPEntitySchema.omit({
38
40
  id: true,
@@ -146,10 +148,7 @@ var ModelConfigSchema = z4.object({
146
148
  // In Zod v4, z.preprocess() creates ZodEffects which is not recognized as optional
147
149
  // by the object schema. Outer .optional() ensures missing keys are accepted; inner
148
150
  // .optional() handles null→undefined conversion from the preprocessor.
149
- temperature: z4.preprocess(
150
- nullToUndefined,
151
- z4.number().min(0).max(1).optional()
152
- ).optional(),
151
+ temperature: z4.preprocess(nullToUndefined, z4.number().min(0).max(1).optional()).optional(),
153
152
  maxTokens: z4.preprocess(nullToUndefined, z4.number().min(1).optional()).optional(),
154
153
  /** Number of agentic turns. 0 = unlimited (agent runs until done or timeout). */
155
154
  maxTurns: z4.preprocess(nullToUndefined, z4.number().int().min(0).optional()).optional()
@@ -166,7 +165,9 @@ var RuleTypeSchema = z5.enum([
166
165
  var RuleSchema = TenantEntitySchema.extend({
167
166
  ruleType: RuleTypeSchema,
168
167
  content: z5.string(),
169
- directory: z5.string().max(500).optional()
168
+ directory: z5.string().max(500).optional(),
169
+ /** GitHub source reference for live content fetching (single rule file) */
170
+ source: GitHubSourceSchema.optional()
170
171
  });
171
172
  var RuleInputBaseSchema = RuleSchema.omit({
172
173
  id: true,
@@ -558,6 +559,7 @@ function capabilityToRule(cap) {
558
559
  ruleType: content?.ruleType ?? "claude-md",
559
560
  content: content?.content ?? "",
560
561
  ...content?.directory ? { directory: content.directory } : {},
562
+ source: cap.source,
561
563
  createdAt: cap.createdAt,
562
564
  updatedAt: cap.updatedAt,
563
565
  deleted: cap.deleted
@@ -571,6 +573,7 @@ function capabilityToMcp(cap) {
571
573
  name: cap.name,
572
574
  description: cap.description,
573
575
  config: content?.config ?? {},
576
+ source: cap.source,
574
577
  createdAt: cap.createdAt,
575
578
  updatedAt: cap.updatedAt,
576
579
  deleted: cap.deleted
@@ -1956,6 +1959,11 @@ var ExtraFileSchema = z35.object({
1956
1959
  }).refine((ef) => ef.content !== void 0 || ef.gitSource !== void 0, {
1957
1960
  message: "ExtraFile must have either content or gitSource"
1958
1961
  });
1962
+ var TemplateFileEntrySchema = z35.object({
1963
+ path: z35.string().min(1),
1964
+ content: z35.string(),
1965
+ extra: z35.boolean()
1966
+ });
1959
1967
  var TemplateSchema = TenantEntitySchema.extend({
1960
1968
  source: GitHubSourceSchema.optional(),
1961
1969
  sourceFiles: z35.array(SourceFileSchema).optional(),
@@ -2289,6 +2297,7 @@ export {
2289
2297
  SubAgentSchema,
2290
2298
  TRACE_EVENT_PREFIX,
2291
2299
  TargetSchema,
2300
+ TemplateFileEntrySchema,
2292
2301
  TemplateFileSchema,
2293
2302
  TemplateFileStatus,
2294
2303
  TemplateSchema,