@wix/evalforge-types 0.89.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,
|
|
@@ -163,7 +165,9 @@ var RuleTypeSchema = z5.enum([
|
|
|
163
165
|
var RuleSchema = TenantEntitySchema.extend({
|
|
164
166
|
ruleType: RuleTypeSchema,
|
|
165
167
|
content: z5.string(),
|
|
166
|
-
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()
|
|
167
171
|
});
|
|
168
172
|
var RuleInputBaseSchema = RuleSchema.omit({
|
|
169
173
|
id: true,
|
|
@@ -555,6 +559,7 @@ function capabilityToRule(cap) {
|
|
|
555
559
|
ruleType: content?.ruleType ?? "claude-md",
|
|
556
560
|
content: content?.content ?? "",
|
|
557
561
|
...content?.directory ? { directory: content.directory } : {},
|
|
562
|
+
source: cap.source,
|
|
558
563
|
createdAt: cap.createdAt,
|
|
559
564
|
updatedAt: cap.updatedAt,
|
|
560
565
|
deleted: cap.deleted
|
|
@@ -568,6 +573,7 @@ function capabilityToMcp(cap) {
|
|
|
568
573
|
name: cap.name,
|
|
569
574
|
description: cap.description,
|
|
570
575
|
config: content?.config ?? {},
|
|
576
|
+
source: cap.source,
|
|
571
577
|
createdAt: cap.createdAt,
|
|
572
578
|
updatedAt: cap.updatedAt,
|
|
573
579
|
deleted: cap.deleted
|