@thanh01.pmt/curriculum-kit 1.0.22 → 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.
@@ -2231,9 +2231,20 @@ var SessionPlanSchema = zod.z.object({
2231
2231
  differentiation: zod.z.object({ bronze: zod.z.string(), silver: zod.z.string(), gold: zod.z.string() })
2232
2232
  });
2233
2233
  var TranslationPolicySchema = zod.z.object({
2234
- policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
2234
+ policy: zod.z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
2235
2235
  target_language: zod.z.string().nullable().default(null)
2236
- });
2236
+ }).refine(
2237
+ (data) => {
2238
+ if (data.policy === "native") {
2239
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
2240
+ }
2241
+ return true;
2242
+ },
2243
+ {
2244
+ message: "When translation policy is 'native', target_language must be a non-empty string",
2245
+ path: ["target_language"]
2246
+ }
2247
+ );
2237
2248
  var CoverageReportSchema = zod.z.object({
2238
2249
  assigned_node_ids: zod.z.array(zod.z.string()),
2239
2250
  unassigned_node_ids: zod.z.array(zod.z.string()),
@@ -6203,6 +6214,7 @@ var LLMJudgeEngine = class {
6203
6214
 
6204
6215
  // src/services/lessonProductionService.ts
6205
6216
  init_errors();
6217
+ init_errors();
6206
6218
 
6207
6219
  // src/services/lessonProductionService.ts
6208
6220
  var __filename$1 = typeof (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) === "string" ? url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))) : "";