@wix/evalforge-types 0.97.0 → 0.98.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
@@ -2082,6 +2082,24 @@ var CreateProjectInputSchema = ProjectSchema.omit({
2082
2082
  )
2083
2083
  });
2084
2084
  var UpdateProjectInputSchema = CreateProjectInputSchema.partial();
2085
+ var APP_READINESS_REASONS = [
2086
+ "no-app-id",
2087
+ "not-registered",
2088
+ "missing-permission",
2089
+ "check-failed"
2090
+ ];
2091
+ var AppReadinessReasonSchema = z35.enum(APP_READINESS_REASONS);
2092
+ var AppReadinessChecksSchema = z35.object({
2093
+ hasAppId: z35.boolean().describe("project.appId is set"),
2094
+ isRegistered: z35.boolean().describe("App is registered in the Wix AI Gateway (prompt-hub)"),
2095
+ hasEvalforgePermission: z35.boolean().describe("App has the SCOPE.CODEAI.EVALFORGE permission")
2096
+ });
2097
+ var AppReadinessStatusSchema = z35.object({
2098
+ appId: z35.string().nullable().describe("The configured app id, or null"),
2099
+ isReady: z35.boolean().describe("True only when every blocking check passes"),
2100
+ checks: AppReadinessChecksSchema,
2101
+ reasons: z35.array(AppReadinessReasonSchema).describe("Active problems; empty when ready")
2102
+ });
2085
2103
 
2086
2104
  // src/template/template.ts
2087
2105
  import { z as z36 } from "zod";
@@ -2272,6 +2290,7 @@ export {
2272
2290
  AGENT_TYPE_LABELS,
2273
2291
  ALLOWED_BUILD_COMMANDS,
2274
2292
  ALL_AVAILABLE_MODEL_IDS,
2293
+ APP_READINESS_REASONS,
2275
2294
  AVAILABLE_CLAUDE_MODEL_IDS,
2276
2295
  AVAILABLE_GEMINI_MODEL_IDS,
2277
2296
  AVAILABLE_OPENAI_MODEL_IDS,
@@ -2287,6 +2306,9 @@ export {
2287
2306
  ApiCallAssertionSchema,
2288
2307
  ApiCallConfigSchema,
2289
2308
  ApiCallSchema,
2309
+ AppReadinessChecksSchema,
2310
+ AppReadinessReasonSchema,
2311
+ AppReadinessStatusSchema,
2290
2312
  AssertionConfigSchema,
2291
2313
  AssertionParameterSchema,
2292
2314
  AssertionParameterTypeSchema,