@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.js
CHANGED
|
@@ -284,7 +284,9 @@ var MCPEntitySchema = TenantEntitySchema.extend({
|
|
|
284
284
|
/** Display name for the MCP entity (independent of the server key in config) */
|
|
285
285
|
name: import_zod3.z.string().min(1),
|
|
286
286
|
/** Keyed MCP server config — top-level key is the server name, value is its config */
|
|
287
|
-
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()
|
|
288
290
|
});
|
|
289
291
|
var CreateMcpInputSchema = MCPEntitySchema.omit({
|
|
290
292
|
id: true,
|
|
@@ -415,7 +417,9 @@ var RuleTypeSchema = import_zod5.z.enum([
|
|
|
415
417
|
var RuleSchema = TenantEntitySchema.extend({
|
|
416
418
|
ruleType: RuleTypeSchema,
|
|
417
419
|
content: import_zod5.z.string(),
|
|
418
|
-
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()
|
|
419
423
|
});
|
|
420
424
|
var RuleInputBaseSchema = RuleSchema.omit({
|
|
421
425
|
id: true,
|
|
@@ -807,6 +811,7 @@ function capabilityToRule(cap) {
|
|
|
807
811
|
ruleType: content?.ruleType ?? "claude-md",
|
|
808
812
|
content: content?.content ?? "",
|
|
809
813
|
...content?.directory ? { directory: content.directory } : {},
|
|
814
|
+
source: cap.source,
|
|
810
815
|
createdAt: cap.createdAt,
|
|
811
816
|
updatedAt: cap.updatedAt,
|
|
812
817
|
deleted: cap.deleted
|
|
@@ -820,6 +825,7 @@ function capabilityToMcp(cap) {
|
|
|
820
825
|
name: cap.name,
|
|
821
826
|
description: cap.description,
|
|
822
827
|
config: content?.config ?? {},
|
|
828
|
+
source: cap.source,
|
|
823
829
|
createdAt: cap.createdAt,
|
|
824
830
|
updatedAt: cap.updatedAt,
|
|
825
831
|
deleted: cap.deleted
|