@wix/evalforge-types 0.75.0 → 0.77.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
@@ -340,29 +340,19 @@ import { z as z9 } from "zod";
340
340
  var PresetSchema = TenantEntitySchema.extend({
341
341
  /** Agent ID for this preset */
342
342
  agentId: z9.string(),
343
- /** Skill IDs included in this preset */
344
- skillIds: z9.array(z9.string()).default([]),
345
- /** Optional map of skillId → skillVersionId for version pinning */
346
- skillVersions: z9.record(z9.string(), z9.string()).optional(),
347
- /** MCP server IDs included in this preset */
348
- mcpIds: z9.array(z9.string()).default([]),
349
- /** Sub-agent IDs included in this preset */
350
- subAgentIds: z9.array(z9.string()).default([]),
351
- /** Rule IDs included in this preset */
352
- ruleIds: z9.array(z9.string()).default([]),
353
- /** Unified capability IDs (replaces skill/mcp/subAgent/ruleIds) */
343
+ /** Unified capability IDs */
354
344
  capabilityIds: z9.array(z9.string()).optional(),
355
345
  /** Map of capabilityId to capabilityVersionId for version pinning */
356
346
  capabilityVersions: z9.record(z9.string(), z9.string()).optional()
357
347
  });
358
- 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;
359
- var AT_LEAST_ONE_ENTITY_MESSAGE = "At least one of capabilityIds, skillIds, mcpIds, subAgentIds, or ruleIds must be non-empty";
348
+ var hasCapabilities = (data) => (data.capabilityIds?.length ?? 0) > 0;
349
+ var CAPABILITY_IDS_REQUIRED_MESSAGE = "capabilityIds must be non-empty";
360
350
  var CreatePresetInputSchema = PresetSchema.omit({
361
351
  id: true,
362
352
  createdAt: true,
363
353
  updatedAt: true,
364
354
  deleted: true
365
- }).refine(atLeastOneEntity, { message: AT_LEAST_ONE_ENTITY_MESSAGE });
355
+ }).refine(hasCapabilities, { message: CAPABILITY_IDS_REQUIRED_MESSAGE });
366
356
  var UpdatePresetInputSchema = PresetSchema.omit({
367
357
  id: true,
368
358
  createdAt: true,
@@ -1578,10 +1568,6 @@ var EvalRunSchema = TenantEntitySchema.extend({
1578
1568
  agentId: z30.string().optional(),
1579
1569
  /** Preset ID that originated this run (optional) */
1580
1570
  presetId: z30.string().optional(),
1581
- /** Skill IDs for this run */
1582
- skillIds: z30.array(z30.string()).optional(),
1583
- /** Map of skillId to skillVersionId for this run */
1584
- skillVersions: z30.record(z30.string(), z30.string()).optional(),
1585
1571
  /** Scenario IDs to run (always present — resolved server-side from tags when needed) */
1586
1572
  scenarioIds: z30.array(z30.string()),
1587
1573
  /** Current status */
@@ -1610,13 +1596,7 @@ var EvalRunSchema = TenantEntitySchema.extend({
1610
1596
  jobError: z30.string().optional(),
1611
1597
  /** Timestamp of the last job status check */
1612
1598
  jobStatusCheckedAt: z30.string().optional(),
1613
- /** MCP server IDs to enable for this run (optional) */
1614
- mcpIds: z30.array(z30.string()).optional(),
1615
- /** Sub-agent IDs to enable for this run (optional) */
1616
- subAgentIds: z30.array(z30.string()).optional(),
1617
- /** Rule IDs to enable for this run (optional) */
1618
- ruleIds: z30.array(z30.string()).optional(),
1619
- /** Unified capability IDs (replaces skill/mcp/subAgent/ruleIds) */
1599
+ /** Unified capability IDs */
1620
1600
  capabilityIds: z30.array(z30.string()).optional(),
1621
1601
  /** Map of capabilityId to capabilityVersionId for version pinning */
1622
1602
  capabilityVersions: z30.record(z30.string(), z30.string()).optional(),
@@ -1730,6 +1710,10 @@ var ScenarioConversationSchema = z31.object({
1730
1710
  messages: z31.array(ConversationMessageSchema),
1731
1711
  createdAt: z31.string()
1732
1712
  });
1713
+ var ConversationResponseSchema = z31.object({
1714
+ messages: z31.array(ConversationMessageSchema),
1715
+ isPartial: z31.boolean()
1716
+ });
1733
1717
 
1734
1718
  // src/evaluation/eval-result.ts
1735
1719
  var AssertionResultStatus = /* @__PURE__ */ ((AssertionResultStatus2) => {
@@ -2031,6 +2015,7 @@ export {
2031
2015
  ConversationBlockSchema,
2032
2016
  ConversationMessageRoles,
2033
2017
  ConversationMessageSchema,
2018
+ ConversationResponseSchema,
2034
2019
  CostAssertionSchema,
2035
2020
  CostConfigSchema,
2036
2021
  CreateAgentInputSchema,