@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.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
@@ -1080,7 +1086,7 @@ var ALLOWED_BUILD_COMMANDS = [
1080
1086
  "pnpm run build",
1081
1087
  "pnpm build"
1082
1088
  ];
1083
- var DEFAULT_BUILD_PASSED_COMMAND = "yarn build";
1089
+ var DEFAULT_BUILD_PASSED_COMMAND = "npm run build";
1084
1090
  var BUILD_COMMAND_ARGV = {
1085
1091
  "yarn build": ["yarn", "build"],
1086
1092
  "npm run build": ["npm", "run", "build"],
@@ -1156,7 +1162,7 @@ var ToolCalledWithParamConfigSchema = import_zod24.z.strictObject({
1156
1162
  requireSuccess: import_zod24.z.boolean().optional()
1157
1163
  });
1158
1164
  var BuildPassedConfigSchema = import_zod24.z.strictObject({
1159
- /** Allowlisted command only (default at runtime: "yarn build") */
1165
+ /** Allowlisted command only (default at runtime: "npm run build") */
1160
1166
  command: BuildPassedCommandStringSchema.optional(),
1161
1167
  /** Expected exit code (default: 0) */
1162
1168
  expectedExitCode: import_zod24.z.number().int().optional()
@@ -1363,7 +1369,7 @@ var SYSTEM_ASSERTIONS = {
1363
1369
  label: "Build Command",
1364
1370
  type: "string",
1365
1371
  required: false,
1366
- defaultValue: "yarn build"
1372
+ defaultValue: DEFAULT_BUILD_PASSED_COMMAND
1367
1373
  },
1368
1374
  {
1369
1375
  name: "expectedExitCode",