@wix/evalforge-types 0.75.0 → 0.76.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
@@ -574,29 +574,19 @@ var import_zod9 = require("zod");
574
574
  var PresetSchema = TenantEntitySchema.extend({
575
575
  /** Agent ID for this preset */
576
576
  agentId: import_zod9.z.string(),
577
- /** Skill IDs included in this preset */
578
- skillIds: import_zod9.z.array(import_zod9.z.string()).default([]),
579
- /** Optional map of skillId → skillVersionId for version pinning */
580
- skillVersions: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.string()).optional(),
581
- /** MCP server IDs included in this preset */
582
- mcpIds: import_zod9.z.array(import_zod9.z.string()).default([]),
583
- /** Sub-agent IDs included in this preset */
584
- subAgentIds: import_zod9.z.array(import_zod9.z.string()).default([]),
585
- /** Rule IDs included in this preset */
586
- ruleIds: import_zod9.z.array(import_zod9.z.string()).default([]),
587
- /** Unified capability IDs (replaces skill/mcp/subAgent/ruleIds) */
577
+ /** Unified capability IDs */
588
578
  capabilityIds: import_zod9.z.array(import_zod9.z.string()).optional(),
589
579
  /** Map of capabilityId to capabilityVersionId for version pinning */
590
580
  capabilityVersions: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.string()).optional()
591
581
  });
592
- var atLeastOneEntity = (data) => (data.capabilityIds?.length ?? 0) > 0 || (data.skillIds?.length ?? 0) > 0 || (data.mcpIds?.length ?? 0) > 0 || (data.subAgentIds?.length ?? 0) > 0 || (data.ruleIds?.length ?? 0) > 0;
593
- var AT_LEAST_ONE_ENTITY_MESSAGE = "At least one of capabilityIds, skillIds, mcpIds, subAgentIds, or ruleIds must be non-empty";
582
+ var hasCapabilities = (data) => (data.capabilityIds?.length ?? 0) > 0;
583
+ var CAPABILITY_IDS_REQUIRED_MESSAGE = "capabilityIds must be non-empty";
594
584
  var CreatePresetInputSchema = PresetSchema.omit({
595
585
  id: true,
596
586
  createdAt: true,
597
587
  updatedAt: true,
598
588
  deleted: true
599
- }).refine(atLeastOneEntity, { message: AT_LEAST_ONE_ENTITY_MESSAGE });
589
+ }).refine(hasCapabilities, { message: CAPABILITY_IDS_REQUIRED_MESSAGE });
600
590
  var UpdatePresetInputSchema = PresetSchema.omit({
601
591
  id: true,
602
592
  createdAt: true,
@@ -1812,10 +1802,6 @@ var EvalRunSchema = TenantEntitySchema.extend({
1812
1802
  agentId: import_zod30.z.string().optional(),
1813
1803
  /** Preset ID that originated this run (optional) */
1814
1804
  presetId: import_zod30.z.string().optional(),
1815
- /** Skill IDs for this run */
1816
- skillIds: import_zod30.z.array(import_zod30.z.string()).optional(),
1817
- /** Map of skillId to skillVersionId for this run */
1818
- skillVersions: import_zod30.z.record(import_zod30.z.string(), import_zod30.z.string()).optional(),
1819
1805
  /** Scenario IDs to run (always present — resolved server-side from tags when needed) */
1820
1806
  scenarioIds: import_zod30.z.array(import_zod30.z.string()),
1821
1807
  /** Current status */
@@ -1844,13 +1830,7 @@ var EvalRunSchema = TenantEntitySchema.extend({
1844
1830
  jobError: import_zod30.z.string().optional(),
1845
1831
  /** Timestamp of the last job status check */
1846
1832
  jobStatusCheckedAt: import_zod30.z.string().optional(),
1847
- /** MCP server IDs to enable for this run (optional) */
1848
- mcpIds: import_zod30.z.array(import_zod30.z.string()).optional(),
1849
- /** Sub-agent IDs to enable for this run (optional) */
1850
- subAgentIds: import_zod30.z.array(import_zod30.z.string()).optional(),
1851
- /** Rule IDs to enable for this run (optional) */
1852
- ruleIds: import_zod30.z.array(import_zod30.z.string()).optional(),
1853
- /** Unified capability IDs (replaces skill/mcp/subAgent/ruleIds) */
1833
+ /** Unified capability IDs */
1854
1834
  capabilityIds: import_zod30.z.array(import_zod30.z.string()).optional(),
1855
1835
  /** Map of capabilityId to capabilityVersionId for version pinning */
1856
1836
  capabilityVersions: import_zod30.z.record(import_zod30.z.string(), import_zod30.z.string()).optional(),