@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.js +11 -25
- package/build/index.js.map +2 -2
- package/build/index.mjs +10 -25
- package/build/index.mjs.map +2 -2
- package/build/types/evaluation/conversation.d.ts +34 -0
- 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.js
CHANGED
|
@@ -74,6 +74,7 @@ __export(index_exports, {
|
|
|
74
74
|
ConversationBlockSchema: () => ConversationBlockSchema,
|
|
75
75
|
ConversationMessageRoles: () => ConversationMessageRoles,
|
|
76
76
|
ConversationMessageSchema: () => ConversationMessageSchema,
|
|
77
|
+
ConversationResponseSchema: () => ConversationResponseSchema,
|
|
77
78
|
CostAssertionSchema: () => CostAssertionSchema,
|
|
78
79
|
CostConfigSchema: () => CostConfigSchema,
|
|
79
80
|
CreateAgentInputSchema: () => CreateAgentInputSchema,
|
|
@@ -574,29 +575,19 @@ var import_zod9 = require("zod");
|
|
|
574
575
|
var PresetSchema = TenantEntitySchema.extend({
|
|
575
576
|
/** Agent ID for this preset */
|
|
576
577
|
agentId: import_zod9.z.string(),
|
|
577
|
-
/**
|
|
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) */
|
|
578
|
+
/** Unified capability IDs */
|
|
588
579
|
capabilityIds: import_zod9.z.array(import_zod9.z.string()).optional(),
|
|
589
580
|
/** Map of capabilityId to capabilityVersionId for version pinning */
|
|
590
581
|
capabilityVersions: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.string()).optional()
|
|
591
582
|
});
|
|
592
|
-
var
|
|
593
|
-
var
|
|
583
|
+
var hasCapabilities = (data) => (data.capabilityIds?.length ?? 0) > 0;
|
|
584
|
+
var CAPABILITY_IDS_REQUIRED_MESSAGE = "capabilityIds must be non-empty";
|
|
594
585
|
var CreatePresetInputSchema = PresetSchema.omit({
|
|
595
586
|
id: true,
|
|
596
587
|
createdAt: true,
|
|
597
588
|
updatedAt: true,
|
|
598
589
|
deleted: true
|
|
599
|
-
}).refine(
|
|
590
|
+
}).refine(hasCapabilities, { message: CAPABILITY_IDS_REQUIRED_MESSAGE });
|
|
600
591
|
var UpdatePresetInputSchema = PresetSchema.omit({
|
|
601
592
|
id: true,
|
|
602
593
|
createdAt: true,
|
|
@@ -1812,10 +1803,6 @@ var EvalRunSchema = TenantEntitySchema.extend({
|
|
|
1812
1803
|
agentId: import_zod30.z.string().optional(),
|
|
1813
1804
|
/** Preset ID that originated this run (optional) */
|
|
1814
1805
|
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
1806
|
/** Scenario IDs to run (always present — resolved server-side from tags when needed) */
|
|
1820
1807
|
scenarioIds: import_zod30.z.array(import_zod30.z.string()),
|
|
1821
1808
|
/** Current status */
|
|
@@ -1844,13 +1831,7 @@ var EvalRunSchema = TenantEntitySchema.extend({
|
|
|
1844
1831
|
jobError: import_zod30.z.string().optional(),
|
|
1845
1832
|
/** Timestamp of the last job status check */
|
|
1846
1833
|
jobStatusCheckedAt: import_zod30.z.string().optional(),
|
|
1847
|
-
/**
|
|
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) */
|
|
1834
|
+
/** Unified capability IDs */
|
|
1854
1835
|
capabilityIds: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
1855
1836
|
/** Map of capabilityId to capabilityVersionId for version pinning */
|
|
1856
1837
|
capabilityVersions: import_zod30.z.record(import_zod30.z.string(), import_zod30.z.string()).optional(),
|
|
@@ -1964,6 +1945,10 @@ var ScenarioConversationSchema = import_zod31.z.object({
|
|
|
1964
1945
|
messages: import_zod31.z.array(ConversationMessageSchema),
|
|
1965
1946
|
createdAt: import_zod31.z.string()
|
|
1966
1947
|
});
|
|
1948
|
+
var ConversationResponseSchema = import_zod31.z.object({
|
|
1949
|
+
messages: import_zod31.z.array(ConversationMessageSchema),
|
|
1950
|
+
isPartial: import_zod31.z.boolean()
|
|
1951
|
+
});
|
|
1967
1952
|
|
|
1968
1953
|
// src/evaluation/eval-result.ts
|
|
1969
1954
|
var AssertionResultStatus = /* @__PURE__ */ ((AssertionResultStatus2) => {
|
|
@@ -2266,6 +2251,7 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2266
2251
|
ConversationBlockSchema,
|
|
2267
2252
|
ConversationMessageRoles,
|
|
2268
2253
|
ConversationMessageSchema,
|
|
2254
|
+
ConversationResponseSchema,
|
|
2269
2255
|
CostAssertionSchema,
|
|
2270
2256
|
CostConfigSchema,
|
|
2271
2257
|
CreateAgentInputSchema,
|