@wix/evalforge-types 0.81.0 → 0.83.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 +34 -2
- package/build/index.js.map +2 -2
- package/build/index.mjs +33 -2
- package/build/index.mjs.map +2 -2
- package/build/types/evaluation/eval-run.d.ts +2 -0
- package/build/types/schedule/eval-schedule.d.ts +3 -0
- package/build/types/target/capability.d.ts +79 -1
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -402,13 +402,39 @@ var CapabilityTypeSchema = z10.enum([
|
|
|
402
402
|
"SKILL",
|
|
403
403
|
"SUB_AGENT",
|
|
404
404
|
"RULE",
|
|
405
|
-
"MCP"
|
|
405
|
+
"MCP",
|
|
406
|
+
"PLUGIN"
|
|
406
407
|
]);
|
|
407
408
|
var CAPABILITY_NAME_REGEX = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
408
409
|
function isValidCapabilityName(name) {
|
|
409
410
|
return typeof name === "string" && name.length > 0 && CAPABILITY_NAME_REGEX.test(name);
|
|
410
411
|
}
|
|
411
412
|
var KEBAB_CASE_MESSAGE2 = "Name must be in kebab-case (lowercase letters, numbers, hyphens only, e.g. my-capability)";
|
|
413
|
+
var StringOrStringArraySchema = z10.union([z10.string(), z10.array(z10.string())]);
|
|
414
|
+
var PluginManifestSchema = z10.looseObject({
|
|
415
|
+
name: z10.string().optional(),
|
|
416
|
+
version: z10.string().optional(),
|
|
417
|
+
description: z10.string().optional(),
|
|
418
|
+
author: z10.union([
|
|
419
|
+
z10.string(),
|
|
420
|
+
z10.object({
|
|
421
|
+
name: z10.string().optional(),
|
|
422
|
+
email: z10.string().optional(),
|
|
423
|
+
url: z10.string().optional()
|
|
424
|
+
}).partial()
|
|
425
|
+
]).optional(),
|
|
426
|
+
homepage: z10.string().optional(),
|
|
427
|
+
repository: z10.string().optional(),
|
|
428
|
+
license: z10.string().optional(),
|
|
429
|
+
keywords: z10.array(z10.string()).optional(),
|
|
430
|
+
commands: StringOrStringArraySchema.optional(),
|
|
431
|
+
agents: StringOrStringArraySchema.optional(),
|
|
432
|
+
skills: StringOrStringArraySchema.optional(),
|
|
433
|
+
mcpServers: z10.string().optional(),
|
|
434
|
+
hooks: z10.string().optional(),
|
|
435
|
+
lspServers: z10.string().optional(),
|
|
436
|
+
outputStyles: z10.string().optional()
|
|
437
|
+
});
|
|
412
438
|
var CapabilityContentSchema = z10.record(z10.string(), z10.unknown());
|
|
413
439
|
var CapabilityVersionOriginSchema = z10.enum(["manual", "pr", "master"]);
|
|
414
440
|
var CapabilitySchema = TenantEntitySchema.extend({
|
|
@@ -1640,6 +1666,8 @@ var EvalRunSchema = TenantEntitySchema.extend({
|
|
|
1640
1666
|
tags: z30.array(z30.string()).optional(),
|
|
1641
1667
|
/** How many times each scenario is executed within this eval run. Default: 1. Max: 20. */
|
|
1642
1668
|
runsPerScenario: z30.number().int().min(1).max(20).optional(),
|
|
1669
|
+
/** Variable values to substitute in scenario trigger prompts at runtime */
|
|
1670
|
+
variables: z30.record(z30.string(), z30.string()).optional(),
|
|
1643
1671
|
/** Snapshot of agent configuration captured at run creation time */
|
|
1644
1672
|
agentSnapshot: z30.object({
|
|
1645
1673
|
name: z30.string().optional(),
|
|
@@ -2010,7 +2038,9 @@ var EvalScheduleSchema = TenantEntitySchema.extend({
|
|
|
2010
2038
|
/** ISO timestamp of the last run */
|
|
2011
2039
|
lastRunAt: z36.string().optional(),
|
|
2012
2040
|
/** Next scheduled run time in UTC (pre-computed for efficient querying, set by backend) */
|
|
2013
|
-
nextRunAt: z36.string().optional()
|
|
2041
|
+
nextRunAt: z36.string().optional(),
|
|
2042
|
+
/** Per-scenario variable values forwarded to runs triggered by this schedule (scenarioId → varName → value) */
|
|
2043
|
+
variables: z36.record(z36.string(), z36.record(z36.string(), z36.string())).optional()
|
|
2014
2044
|
});
|
|
2015
2045
|
function isValidTimezone(tz) {
|
|
2016
2046
|
try {
|
|
@@ -2196,6 +2226,7 @@ export {
|
|
|
2196
2226
|
OpenCodePermissionSchema,
|
|
2197
2227
|
PermissionValueSchema,
|
|
2198
2228
|
PlaywrightNLTestSchema,
|
|
2229
|
+
PluginManifestSchema,
|
|
2199
2230
|
PresetSchema,
|
|
2200
2231
|
ProjectSchema,
|
|
2201
2232
|
PromptResultSchema,
|