@thanh01.pmt/curriculum-kit 1.4.38 → 1.4.39

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.
@@ -523,11 +523,51 @@ var ExtensionSchema = zod.z.object({
523
523
  });
524
524
  var QualityAuditVerdictSchema = zod.z.enum(["PASS", "NEEDS_REVISION", "FAIL"]);
525
525
  var JudgeCriterionSchema = zod.z.object({
526
- name: zod.z.string().describe("Criterion name, e.g. Bloom Alignment, Code Validity, Word Count Gate, Language Adherence"),
526
+ name: zod.z.string().describe("Criterion name, e.g. Bloom Alignment, Code Validity, Word Count Gate, Language Adherence, Step Incrementality"),
527
527
  passed: zod.z.boolean(),
528
528
  score: zod.z.number().min(0).max(100).describe("Score out of 100"),
529
529
  feedback: zod.z.string().describe("Constructive feedback or citation of issues")
530
530
  });
531
+ var ActionableRepairActionSchema = zod.z.enum([
532
+ "SPLIT_STEP",
533
+ "REVISE_PROVISIONING",
534
+ "INSERT_RECAP",
535
+ "ADJUST_TIME_BUDGET",
536
+ "SUBSTITUTE_FALLBACK",
537
+ "REVISE_EXIT_EVIDENCE"
538
+ ]);
539
+ var ActionableRepairPromptSchema = zod.z.object({
540
+ action: ActionableRepairActionSchema,
541
+ targetId: zod.z.string().describe("ID of the session, feature, or step requiring repair, e.g. U01_M01_L02 or F1-S3"),
542
+ severity: zod.z.enum(["CRITICAL", "WARNING", "INFO"]).default("WARNING"),
543
+ rationale: zod.z.string().describe("Pedagogical or technical rationale for why this repair is mandated"),
544
+ instruction: zod.z.string().describe("Exact, actionable text instruction for the planner/generator in the next turn")
545
+ });
546
+ var ProjectGraphAuditSchema = zod.z.object({
547
+ schema_version: zod.z.number().default(1),
548
+ projectId: zod.z.string(),
549
+ overallVerdict: QualityAuditVerdictSchema,
550
+ totalScore: zod.z.number().min(0).max(100),
551
+ toolchainFeasibility: JudgeCriterionSchema.describe("Installation friction, admin rights, IDE/compiler matrix"),
552
+ provisioningStrategy: JudgeCriterionSchema.describe("Clear model for heavy runtimes: Pre-installed lab, Cloud instance, or Dedicated setup"),
553
+ hardwareRuntimeEnvelope: JudgeCriterionSchema.describe("Memory/Flash limits, pinout conflicts, hardware platform alignment"),
554
+ timeToHelloWorld: JudgeCriterionSchema.describe("Student time to achieve first working feedback loop (target <= 15 mins)"),
555
+ actionableRepairs: zod.z.array(ActionableRepairPromptSchema).default([])
556
+ });
557
+ var MacroPedagogyPlanAuditSchema = zod.z.object({
558
+ schema_version: zod.z.number().default(1),
559
+ planHash: zod.z.string(),
560
+ overallVerdict: QualityAuditVerdictSchema,
561
+ totalScore: zod.z.number().min(0).max(100),
562
+ autoApproved: zod.z.boolean().default(false).describe("True if totalScore >= 85 and overallVerdict is PASS"),
563
+ stepIncrementality: JudgeCriterionSchema.describe("Single leap principle: <= 1 new syntax or 1 new algorithm per step"),
564
+ zpdSaturation: JudgeCriterionSchema.describe("Vygotsky ZPD: <= 2 new concepts per session (K-12) / 3 (Adults), with prior anchor"),
565
+ frictionAdjustedBudget: JudgeCriterionSchema.describe("Student time multiplier (2.5x): total content <= 85% session minutes"),
566
+ epitomeViability: JudgeCriterionSchema.describe("Reigeluth Walking Skeleton: Unit 1 produces an end-to-end runnable MVP"),
567
+ exitEvidenceSpecificity: JudgeCriterionSchema.describe("Tangible, measurable student deliverable for every session"),
568
+ actionableRepairs: zod.z.array(ActionableRepairPromptSchema).default([]),
569
+ summary: zod.z.string().describe("High-level executive evaluation summary")
570
+ });
531
571
  var CurriculumQualityReportSchema = zod.z.object({
532
572
  targetArtifactType: zod.z.string().describe("Type of artifact audited, e.g. LESSON, ACT, CODE, WKS, SLIDE"),
533
573
  lessonId: zod.z.string(),
@@ -535,7 +575,8 @@ var CurriculumQualityReportSchema = zod.z.object({
535
575
  totalScore: zod.z.number().min(0).max(100),
536
576
  languageAdherencePassed: zod.z.boolean().describe("True if content strictly matches the requested target language"),
537
577
  criteria: zod.z.array(JudgeCriterionSchema).min(3),
538
- actionableRepairPrompts: zod.z.array(zod.z.string()).default([]).describe("Concrete instruction prompts to fix detected issues in the next repair turn")
578
+ actionableRepairPrompts: zod.z.array(zod.z.string()).default([]).describe("Concrete instruction prompts to fix detected issues in the next repair turn"),
579
+ structuredRepairs: zod.z.array(ActionableRepairPromptSchema).optional()
539
580
  });
540
581
  var ProjectProfileSchema = zod.z.object({
541
582
  id: zod.z.string().optional(),
@@ -1583,6 +1624,8 @@ var RoadmapInputSchema = zod.z.object({
1583
1624
  phases: zod.z.array(PhaseInputSchema).default([])
1584
1625
  });
1585
1626
 
1627
+ exports.ActionableRepairActionSchema = ActionableRepairActionSchema;
1628
+ exports.ActionableRepairPromptSchema = ActionableRepairPromptSchema;
1586
1629
  exports.ActiveLearningWorkflowSchema = ActiveLearningWorkflowSchema;
1587
1630
  exports.ActivityLabSchema = ActivityLabSchema;
1588
1631
  exports.ActivitySeqRowSchema = ActivitySeqRowSchema;
@@ -1648,6 +1691,7 @@ exports.LessonPlan5ESchema = LessonPlan5ESchema;
1648
1691
  exports.LessonPlanEDPSchema = LessonPlanEDPSchema;
1649
1692
  exports.LessonPlanSchema = LessonPlanSchema;
1650
1693
  exports.LessonSectionSchema = LessonSectionSchema;
1694
+ exports.MacroPedagogyPlanAuditSchema = MacroPedagogyPlanAuditSchema;
1651
1695
  exports.MarpSlideSchema = MarpSlideSchema;
1652
1696
  exports.MasteryGateSchema = MasteryGateSchema;
1653
1697
  exports.MentorCheatsheetSchema = MentorCheatsheetSchema;
@@ -1664,6 +1708,7 @@ exports.PrerequisiteDecisionEntrySchema = PrerequisiteDecisionEntrySchema;
1664
1708
  exports.PrerequisiteDecisionSchema = PrerequisiteDecisionSchema;
1665
1709
  exports.ProductGoalSchema = ProductGoalSchema;
1666
1710
  exports.ProgressiveHintsSchema = ProgressiveHintsSchema;
1711
+ exports.ProjectGraphAuditSchema = ProjectGraphAuditSchema;
1667
1712
  exports.ProjectGraphSchema = ProjectGraphSchema;
1668
1713
  exports.ProjectInstructionSchema = ProjectInstructionSchema;
1669
1714
  exports.ProjectProfileSchema = ProjectProfileSchema;