@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.
@@ -8713,14 +8713,20 @@ declare const SessionPlanSchema: z.ZodObject<{
8713
8713
  }[] | undefined;
8714
8714
  }>;
8715
8715
  type SessionPlan = z.infer<typeof SessionPlanSchema>;
8716
- declare const TranslationPolicySchema: z.ZodObject<{
8717
- policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish"]>>;
8716
+ declare const TranslationPolicySchema: z.ZodEffects<z.ZodObject<{
8717
+ policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish", "native"]>>;
8718
8718
  target_language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8719
8719
  }, "strip", z.ZodTypeAny, {
8720
- policy: "after_artifact" | "end_of_unit" | "at_publish";
8720
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
8721
8721
  target_language: string | null;
8722
8722
  }, {
8723
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
8723
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
8724
+ target_language?: string | null | undefined;
8725
+ }>, {
8726
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
8727
+ target_language: string | null;
8728
+ }, {
8729
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
8724
8730
  target_language?: string | null | undefined;
8725
8731
  }>;
8726
8732
  type TranslationPolicy = z.infer<typeof TranslationPolicySchema>;
@@ -9096,14 +9102,20 @@ declare const CurriculumPlanSchema: z.ZodObject<{
9096
9102
  terms: string[];
9097
9103
  session_id: string;
9098
9104
  }>, "many">;
9099
- translation: z.ZodObject<{
9100
- policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish"]>>;
9105
+ translation: z.ZodEffects<z.ZodObject<{
9106
+ policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish", "native"]>>;
9101
9107
  target_language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9102
9108
  }, "strip", z.ZodTypeAny, {
9103
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9109
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9104
9110
  target_language: string | null;
9105
9111
  }, {
9106
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9112
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9113
+ target_language?: string | null | undefined;
9114
+ }>, {
9115
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9116
+ target_language: string | null;
9117
+ }, {
9118
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9107
9119
  target_language?: string | null | undefined;
9108
9120
  }>;
9109
9121
  coverage_report: z.ZodObject<{
@@ -9151,7 +9163,7 @@ declare const CurriculumPlanSchema: z.ZodObject<{
9151
9163
  capstone: string | null;
9152
9164
  };
9153
9165
  translation: {
9154
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9166
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9155
9167
  target_language: string | null;
9156
9168
  };
9157
9169
  plan_id: string;
@@ -9256,7 +9268,7 @@ declare const CurriculumPlanSchema: z.ZodObject<{
9256
9268
  capstone?: string | null | undefined;
9257
9269
  };
9258
9270
  translation: {
9259
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9271
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9260
9272
  target_language?: string | null | undefined;
9261
9273
  };
9262
9274
  plan_id: string;
@@ -9717,14 +9729,20 @@ declare const PlannerInputSchema: z.ZodObject<{
9717
9729
  course_goals?: string[] | undefined;
9718
9730
  capstone?: string | null | undefined;
9719
9731
  }>;
9720
- translation: z.ZodDefault<z.ZodObject<{
9721
- policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish"]>>;
9732
+ translation: z.ZodDefault<z.ZodEffects<z.ZodObject<{
9733
+ policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish", "native"]>>;
9722
9734
  target_language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9723
9735
  }, "strip", z.ZodTypeAny, {
9724
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9736
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9737
+ target_language: string | null;
9738
+ }, {
9739
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9740
+ target_language?: string | null | undefined;
9741
+ }>, {
9742
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9725
9743
  target_language: string | null;
9726
9744
  }, {
9727
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9745
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9728
9746
  target_language?: string | null | undefined;
9729
9747
  }>>;
9730
9748
  }, "strip", z.ZodTypeAny, {
@@ -9739,7 +9757,7 @@ declare const PlannerInputSchema: z.ZodObject<{
9739
9757
  capstone: string | null;
9740
9758
  };
9741
9759
  translation: {
9742
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9760
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9743
9761
  target_language: string | null;
9744
9762
  };
9745
9763
  graph?: unknown;
@@ -9755,7 +9773,7 @@ declare const PlannerInputSchema: z.ZodObject<{
9755
9773
  capstone?: string | null | undefined;
9756
9774
  };
9757
9775
  translation?: {
9758
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9776
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9759
9777
  target_language?: string | null | undefined;
9760
9778
  } | undefined;
9761
9779
  graph?: unknown;
@@ -8713,14 +8713,20 @@ declare const SessionPlanSchema: z.ZodObject<{
8713
8713
  }[] | undefined;
8714
8714
  }>;
8715
8715
  type SessionPlan = z.infer<typeof SessionPlanSchema>;
8716
- declare const TranslationPolicySchema: z.ZodObject<{
8717
- policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish"]>>;
8716
+ declare const TranslationPolicySchema: z.ZodEffects<z.ZodObject<{
8717
+ policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish", "native"]>>;
8718
8718
  target_language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
8719
8719
  }, "strip", z.ZodTypeAny, {
8720
- policy: "after_artifact" | "end_of_unit" | "at_publish";
8720
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
8721
8721
  target_language: string | null;
8722
8722
  }, {
8723
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
8723
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
8724
+ target_language?: string | null | undefined;
8725
+ }>, {
8726
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
8727
+ target_language: string | null;
8728
+ }, {
8729
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
8724
8730
  target_language?: string | null | undefined;
8725
8731
  }>;
8726
8732
  type TranslationPolicy = z.infer<typeof TranslationPolicySchema>;
@@ -9096,14 +9102,20 @@ declare const CurriculumPlanSchema: z.ZodObject<{
9096
9102
  terms: string[];
9097
9103
  session_id: string;
9098
9104
  }>, "many">;
9099
- translation: z.ZodObject<{
9100
- policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish"]>>;
9105
+ translation: z.ZodEffects<z.ZodObject<{
9106
+ policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish", "native"]>>;
9101
9107
  target_language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9102
9108
  }, "strip", z.ZodTypeAny, {
9103
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9109
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9104
9110
  target_language: string | null;
9105
9111
  }, {
9106
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9112
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9113
+ target_language?: string | null | undefined;
9114
+ }>, {
9115
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9116
+ target_language: string | null;
9117
+ }, {
9118
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9107
9119
  target_language?: string | null | undefined;
9108
9120
  }>;
9109
9121
  coverage_report: z.ZodObject<{
@@ -9151,7 +9163,7 @@ declare const CurriculumPlanSchema: z.ZodObject<{
9151
9163
  capstone: string | null;
9152
9164
  };
9153
9165
  translation: {
9154
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9166
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9155
9167
  target_language: string | null;
9156
9168
  };
9157
9169
  plan_id: string;
@@ -9256,7 +9268,7 @@ declare const CurriculumPlanSchema: z.ZodObject<{
9256
9268
  capstone?: string | null | undefined;
9257
9269
  };
9258
9270
  translation: {
9259
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9271
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9260
9272
  target_language?: string | null | undefined;
9261
9273
  };
9262
9274
  plan_id: string;
@@ -9717,14 +9729,20 @@ declare const PlannerInputSchema: z.ZodObject<{
9717
9729
  course_goals?: string[] | undefined;
9718
9730
  capstone?: string | null | undefined;
9719
9731
  }>;
9720
- translation: z.ZodDefault<z.ZodObject<{
9721
- policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish"]>>;
9732
+ translation: z.ZodDefault<z.ZodEffects<z.ZodObject<{
9733
+ policy: z.ZodDefault<z.ZodEnum<["after_artifact", "end_of_unit", "at_publish", "native"]>>;
9722
9734
  target_language: z.ZodDefault<z.ZodNullable<z.ZodString>>;
9723
9735
  }, "strip", z.ZodTypeAny, {
9724
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9736
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9737
+ target_language: string | null;
9738
+ }, {
9739
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9740
+ target_language?: string | null | undefined;
9741
+ }>, {
9742
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9725
9743
  target_language: string | null;
9726
9744
  }, {
9727
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9745
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9728
9746
  target_language?: string | null | undefined;
9729
9747
  }>>;
9730
9748
  }, "strip", z.ZodTypeAny, {
@@ -9739,7 +9757,7 @@ declare const PlannerInputSchema: z.ZodObject<{
9739
9757
  capstone: string | null;
9740
9758
  };
9741
9759
  translation: {
9742
- policy: "after_artifact" | "end_of_unit" | "at_publish";
9760
+ policy: "after_artifact" | "end_of_unit" | "at_publish" | "native";
9743
9761
  target_language: string | null;
9744
9762
  };
9745
9763
  graph?: unknown;
@@ -9755,7 +9773,7 @@ declare const PlannerInputSchema: z.ZodObject<{
9755
9773
  capstone?: string | null | undefined;
9756
9774
  };
9757
9775
  translation?: {
9758
- policy?: "after_artifact" | "end_of_unit" | "at_publish" | undefined;
9776
+ policy?: "after_artifact" | "end_of_unit" | "at_publish" | "native" | undefined;
9759
9777
  target_language?: string | null | undefined;
9760
9778
  } | undefined;
9761
9779
  graph?: unknown;
@@ -1277,9 +1277,20 @@ var SessionPlanSchema = z.object({
1277
1277
  differentiation: z.object({ bronze: z.string(), silver: z.string(), gold: z.string() })
1278
1278
  });
1279
1279
  var TranslationPolicySchema = z.object({
1280
- policy: z.enum(["after_artifact", "end_of_unit", "at_publish"]).default("at_publish"),
1280
+ policy: z.enum(["after_artifact", "end_of_unit", "at_publish", "native"]).default("native"),
1281
1281
  target_language: z.string().nullable().default(null)
1282
- });
1282
+ }).refine(
1283
+ (data) => {
1284
+ if (data.policy === "native") {
1285
+ return typeof data.target_language === "string" && data.target_language.trim().length > 0;
1286
+ }
1287
+ return true;
1288
+ },
1289
+ {
1290
+ message: "When translation policy is 'native', target_language must be a non-empty string",
1291
+ path: ["target_language"]
1292
+ }
1293
+ );
1283
1294
  var CoverageReportSchema = z.object({
1284
1295
  assigned_node_ids: z.array(z.string()),
1285
1296
  unassigned_node_ids: z.array(z.string()),