@wix/evalforge-types 0.89.0 → 0.91.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
@@ -828,7 +834,7 @@ var ALLOWED_BUILD_COMMANDS = [
828
834
  "pnpm run build",
829
835
  "pnpm build"
830
836
  ];
831
- var DEFAULT_BUILD_PASSED_COMMAND = "yarn build";
837
+ var DEFAULT_BUILD_PASSED_COMMAND = "npm run build";
832
838
  var BUILD_COMMAND_ARGV = {
833
839
  "yarn build": ["yarn", "build"],
834
840
  "npm run build": ["npm", "run", "build"],
@@ -904,7 +910,7 @@ var ToolCalledWithParamConfigSchema = z24.strictObject({
904
910
  requireSuccess: z24.boolean().optional()
905
911
  });
906
912
  var BuildPassedConfigSchema = z24.strictObject({
907
- /** Allowlisted command only (default at runtime: "yarn build") */
913
+ /** Allowlisted command only (default at runtime: "npm run build") */
908
914
  command: BuildPassedCommandStringSchema.optional(),
909
915
  /** Expected exit code (default: 0) */
910
916
  expectedExitCode: z24.number().int().optional()
@@ -1111,7 +1117,7 @@ var SYSTEM_ASSERTIONS = {
1111
1117
  label: "Build Command",
1112
1118
  type: "string",
1113
1119
  required: false,
1114
- defaultValue: "yarn build"
1120
+ defaultValue: DEFAULT_BUILD_PASSED_COMMAND
1115
1121
  },
1116
1122
  {
1117
1123
  name: "expectedExitCode",