@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 +5 -25
- package/build/index.js.map +2 -2
- package/build/index.mjs +5 -25
- package/build/index.mjs.map +2 -2
- package/build/types/evaluation/eval-run.d.ts +0 -10
- package/build/types/target/preset.d.ts +0 -15
- package/package.json +2 -2
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
|
-
/**
|
|
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
|
|
359
|
-
var
|
|
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(
|
|
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
|
-
/**
|
|
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(),
|