@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.
package/dist/ai/index.mjs CHANGED
@@ -3574,9 +3574,20 @@ var SessionPlanSchema = z.object({
3574
3574
  differentiation: z.object({ bronze: z.string(), silver: z.string(), gold: z.string() })
3575
3575
  });
3576
3576
  var TranslationPolicySchema = z.object({
3577
- policy: z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
3577
+ policy: z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
3578
3578
  target_language: z.string().nullable().default(null)
3579
- });
3579
+ }).refine(
3580
+ (data) => {
3581
+ if (data.policy === "native") {
3582
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
3583
+ }
3584
+ return true;
3585
+ },
3586
+ {
3587
+ message: "When translation policy is 'native', target_language must be a non-empty string",
3588
+ path: ["target_language"]
3589
+ }
3590
+ );
3580
3591
  var CoverageReportSchema = z.object({
3581
3592
  assigned_node_ids: z.array(z.string()),
3582
3593
  unassigned_node_ids: z.array(z.string()),