@thanh01.pmt/curriculum-kit 1.0.21 → 1.1.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.
@@ -2222,9 +2222,20 @@ var SessionPlanSchema = z.object({
2222
2222
  differentiation: z.object({ bronze: z.string(), silver: z.string(), gold: z.string() })
2223
2223
  });
2224
2224
  var TranslationPolicySchema = z.object({
2225
- policy: z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
2225
+ policy: z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
2226
2226
  target_language: z.string().nullable().default(null)
2227
- });
2227
+ }).refine(
2228
+ (data) => {
2229
+ if (data.policy === "native") {
2230
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
2231
+ }
2232
+ return true;
2233
+ },
2234
+ {
2235
+ message: "When translation policy is 'native', target_language must be a non-empty string",
2236
+ path: ["target_language"]
2237
+ }
2238
+ );
2228
2239
  var CoverageReportSchema = z.object({
2229
2240
  assigned_node_ids: z.array(z.string()),
2230
2241
  unassigned_node_ids: z.array(z.string()),
@@ -6194,6 +6205,7 @@ var LLMJudgeEngine = class {
6194
6205
 
6195
6206
  // src/services/lessonProductionService.ts
6196
6207
  init_errors();
6208
+ init_errors();
6197
6209
 
6198
6210
  // src/services/lessonProductionService.ts
6199
6211
  var __filename$1 = typeof import.meta?.url === "string" ? fileURLToPath(import.meta.url) : "";