@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.js
CHANGED
|
@@ -154,6 +154,7 @@ __export(index_exports, {
|
|
|
154
154
|
OpenCodePermissionSchema: () => OpenCodePermissionSchema,
|
|
155
155
|
PermissionValueSchema: () => PermissionValueSchema,
|
|
156
156
|
PlaywrightNLTestSchema: () => PlaywrightNLTestSchema,
|
|
157
|
+
PluginManifestSchema: () => PluginManifestSchema,
|
|
157
158
|
PresetSchema: () => PresetSchema,
|
|
158
159
|
ProjectSchema: () => ProjectSchema,
|
|
159
160
|
PromptResultSchema: () => PromptResultSchema,
|
|
@@ -650,13 +651,39 @@ var CapabilityTypeSchema = import_zod10.z.enum([
|
|
|
650
651
|
"SKILL",
|
|
651
652
|
"SUB_AGENT",
|
|
652
653
|
"RULE",
|
|
653
|
-
"MCP"
|
|
654
|
+
"MCP",
|
|
655
|
+
"PLUGIN"
|
|
654
656
|
]);
|
|
655
657
|
var CAPABILITY_NAME_REGEX = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
656
658
|
function isValidCapabilityName(name) {
|
|
657
659
|
return typeof name === "string" && name.length > 0 && CAPABILITY_NAME_REGEX.test(name);
|
|
658
660
|
}
|
|
659
661
|
var KEBAB_CASE_MESSAGE2 = "Name must be in kebab-case (lowercase letters, numbers, hyphens only, e.g. my-capability)";
|
|
662
|
+
var StringOrStringArraySchema = import_zod10.z.union([import_zod10.z.string(), import_zod10.z.array(import_zod10.z.string())]);
|
|
663
|
+
var PluginManifestSchema = import_zod10.z.looseObject({
|
|
664
|
+
name: import_zod10.z.string().optional(),
|
|
665
|
+
version: import_zod10.z.string().optional(),
|
|
666
|
+
description: import_zod10.z.string().optional(),
|
|
667
|
+
author: import_zod10.z.union([
|
|
668
|
+
import_zod10.z.string(),
|
|
669
|
+
import_zod10.z.object({
|
|
670
|
+
name: import_zod10.z.string().optional(),
|
|
671
|
+
email: import_zod10.z.string().optional(),
|
|
672
|
+
url: import_zod10.z.string().optional()
|
|
673
|
+
}).partial()
|
|
674
|
+
]).optional(),
|
|
675
|
+
homepage: import_zod10.z.string().optional(),
|
|
676
|
+
repository: import_zod10.z.string().optional(),
|
|
677
|
+
license: import_zod10.z.string().optional(),
|
|
678
|
+
keywords: import_zod10.z.array(import_zod10.z.string()).optional(),
|
|
679
|
+
commands: StringOrStringArraySchema.optional(),
|
|
680
|
+
agents: StringOrStringArraySchema.optional(),
|
|
681
|
+
skills: StringOrStringArraySchema.optional(),
|
|
682
|
+
mcpServers: import_zod10.z.string().optional(),
|
|
683
|
+
hooks: import_zod10.z.string().optional(),
|
|
684
|
+
lspServers: import_zod10.z.string().optional(),
|
|
685
|
+
outputStyles: import_zod10.z.string().optional()
|
|
686
|
+
});
|
|
660
687
|
var CapabilityContentSchema = import_zod10.z.record(import_zod10.z.string(), import_zod10.z.unknown());
|
|
661
688
|
var CapabilityVersionOriginSchema = import_zod10.z.enum(["manual", "pr", "master"]);
|
|
662
689
|
var CapabilitySchema = TenantEntitySchema.extend({
|
|
@@ -1888,6 +1915,8 @@ var EvalRunSchema = TenantEntitySchema.extend({
|
|
|
1888
1915
|
tags: import_zod30.z.array(import_zod30.z.string()).optional(),
|
|
1889
1916
|
/** How many times each scenario is executed within this eval run. Default: 1. Max: 20. */
|
|
1890
1917
|
runsPerScenario: import_zod30.z.number().int().min(1).max(20).optional(),
|
|
1918
|
+
/** Variable values to substitute in scenario trigger prompts at runtime */
|
|
1919
|
+
variables: import_zod30.z.record(import_zod30.z.string(), import_zod30.z.string()).optional(),
|
|
1891
1920
|
/** Snapshot of agent configuration captured at run creation time */
|
|
1892
1921
|
agentSnapshot: import_zod30.z.object({
|
|
1893
1922
|
name: import_zod30.z.string().optional(),
|
|
@@ -2258,7 +2287,9 @@ var EvalScheduleSchema = TenantEntitySchema.extend({
|
|
|
2258
2287
|
/** ISO timestamp of the last run */
|
|
2259
2288
|
lastRunAt: import_zod36.z.string().optional(),
|
|
2260
2289
|
/** Next scheduled run time in UTC (pre-computed for efficient querying, set by backend) */
|
|
2261
|
-
nextRunAt: import_zod36.z.string().optional()
|
|
2290
|
+
nextRunAt: import_zod36.z.string().optional(),
|
|
2291
|
+
/** Per-scenario variable values forwarded to runs triggered by this schedule (scenarioId → varName → value) */
|
|
2292
|
+
variables: import_zod36.z.record(import_zod36.z.string(), import_zod36.z.record(import_zod36.z.string(), import_zod36.z.string())).optional()
|
|
2262
2293
|
});
|
|
2263
2294
|
function isValidTimezone(tz) {
|
|
2264
2295
|
try {
|
|
@@ -2445,6 +2476,7 @@ var UpdateEvalScheduleInputSchema = BaseCreateScheduleSchema.partial().superRefi
|
|
|
2445
2476
|
OpenCodePermissionSchema,
|
|
2446
2477
|
PermissionValueSchema,
|
|
2447
2478
|
PlaywrightNLTestSchema,
|
|
2479
|
+
PluginManifestSchema,
|
|
2448
2480
|
PresetSchema,
|
|
2449
2481
|
ProjectSchema,
|
|
2450
2482
|
PromptResultSchema,
|