@thanh01.pmt/curriculum-kit 1.4.38 → 1.4.40

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.
@@ -521,11 +521,51 @@ var ExtensionSchema = z.object({
521
521
  });
522
522
  var QualityAuditVerdictSchema = z.enum(["PASS", "NEEDS_REVISION", "FAIL"]);
523
523
  var JudgeCriterionSchema = z.object({
524
- name: z.string().describe("Criterion name, e.g. Bloom Alignment, Code Validity, Word Count Gate, Language Adherence"),
524
+ name: z.string().describe("Criterion name, e.g. Bloom Alignment, Code Validity, Word Count Gate, Language Adherence, Step Incrementality"),
525
525
  passed: z.boolean(),
526
526
  score: z.number().min(0).max(100).describe("Score out of 100"),
527
527
  feedback: z.string().describe("Constructive feedback or citation of issues")
528
528
  });
529
+ var ActionableRepairActionSchema = z.enum([
530
+ "SPLIT_STEP",
531
+ "REVISE_PROVISIONING",
532
+ "INSERT_RECAP",
533
+ "ADJUST_TIME_BUDGET",
534
+ "SUBSTITUTE_FALLBACK",
535
+ "REVISE_EXIT_EVIDENCE"
536
+ ]);
537
+ var ActionableRepairPromptSchema = z.object({
538
+ action: ActionableRepairActionSchema,
539
+ targetId: z.string().describe("ID of the session, feature, or step requiring repair, e.g. U01_M01_L02 or F1-S3"),
540
+ severity: z.enum(["CRITICAL", "WARNING", "INFO"]).default("WARNING"),
541
+ rationale: z.string().describe("Pedagogical or technical rationale for why this repair is mandated"),
542
+ instruction: z.string().describe("Exact, actionable text instruction for the planner/generator in the next turn")
543
+ });
544
+ var ProjectGraphAuditSchema = z.object({
545
+ schema_version: z.number().default(1),
546
+ projectId: z.string(),
547
+ overallVerdict: QualityAuditVerdictSchema,
548
+ totalScore: z.number().min(0).max(100),
549
+ toolchainFeasibility: JudgeCriterionSchema.describe("Installation friction, admin rights, IDE/compiler matrix"),
550
+ provisioningStrategy: JudgeCriterionSchema.describe("Clear model for heavy runtimes: Pre-installed lab, Cloud instance, or Dedicated setup"),
551
+ hardwareRuntimeEnvelope: JudgeCriterionSchema.describe("Memory/Flash limits, pinout conflicts, hardware platform alignment"),
552
+ timeToHelloWorld: JudgeCriterionSchema.describe("Student time to achieve first working feedback loop (target <= 15 mins)"),
553
+ actionableRepairs: z.array(ActionableRepairPromptSchema).default([])
554
+ });
555
+ var MacroPedagogyPlanAuditSchema = z.object({
556
+ schema_version: z.number().default(1),
557
+ planHash: z.string(),
558
+ overallVerdict: QualityAuditVerdictSchema,
559
+ totalScore: z.number().min(0).max(100),
560
+ autoApproved: z.boolean().default(false).describe("True if totalScore >= 85 and overallVerdict is PASS"),
561
+ stepIncrementality: JudgeCriterionSchema.describe("Single leap principle: <= 1 new syntax or 1 new algorithm per step"),
562
+ zpdSaturation: JudgeCriterionSchema.describe("Vygotsky ZPD: <= 2 new concepts per session (K-12) / 3 (Adults), with prior anchor"),
563
+ frictionAdjustedBudget: JudgeCriterionSchema.describe("Student time multiplier (2.5x): total content <= 85% session minutes"),
564
+ epitomeViability: JudgeCriterionSchema.describe("Reigeluth Walking Skeleton: Unit 1 produces an end-to-end runnable MVP"),
565
+ exitEvidenceSpecificity: JudgeCriterionSchema.describe("Tangible, measurable student deliverable for every session"),
566
+ actionableRepairs: z.array(ActionableRepairPromptSchema).default([]),
567
+ summary: z.string().describe("High-level executive evaluation summary")
568
+ });
529
569
  var CurriculumQualityReportSchema = z.object({
530
570
  targetArtifactType: z.string().describe("Type of artifact audited, e.g. LESSON, ACT, CODE, WKS, SLIDE"),
531
571
  lessonId: z.string(),
@@ -533,7 +573,8 @@ var CurriculumQualityReportSchema = z.object({
533
573
  totalScore: z.number().min(0).max(100),
534
574
  languageAdherencePassed: z.boolean().describe("True if content strictly matches the requested target language"),
535
575
  criteria: z.array(JudgeCriterionSchema).min(3),
536
- actionableRepairPrompts: z.array(z.string()).default([]).describe("Concrete instruction prompts to fix detected issues in the next repair turn")
576
+ actionableRepairPrompts: z.array(z.string()).default([]).describe("Concrete instruction prompts to fix detected issues in the next repair turn"),
577
+ structuredRepairs: z.array(ActionableRepairPromptSchema).optional()
537
578
  });
538
579
  var ProjectProfileSchema = z.object({
539
580
  id: z.string().optional(),
@@ -1581,6 +1622,6 @@ var RoadmapInputSchema = z.object({
1581
1622
  phases: z.array(PhaseInputSchema).default([])
1582
1623
  });
1583
1624
 
1584
- export { ActiveLearningWorkflowSchema, ActivityLabSchema, ActivitySeqRowSchema, ActivityStepSchema, ArtifactContractRowSchema, AssessmentMapRowSchema, AssessmentObjectiveSchema, BellRingerDaySchema, BellRingerSchema, BloomLevelSchema, BronzeTierSchema, CERConclusionSchema, CardTierEnum, ChoiceBoardRubricRowSchema, ChoiceBoardSchema, ChoiceRuleSchema, ChoiceSquareSchema, CodeLabSchema, CodeSnippetSchema, CompetencyRubricRowSchema, ComputationalThinkingSchema, ConceptPrerequisiteEdgeSchema, ConceptSpiralEncounterSchema, CoreConceptSchema, CourseObjectiveSchema, CoverageReportSchema, CurriculumArtifactSchema, CurriculumPlanSchema, CurriculumQualityReportSchema, DependencyEdgeSchema, DepthAssignmentSchema, DepthLevelSchema, DiagnosticQuestionSchema, DiagnosticQuizSchema, EDPPhaseEnum, EntryLevelSchema, ExitTicketBugHuntSchema, ExitTicketMetacognitionSchema, ExitTicketQuickItemSchema, ExitTicketRecallPromptSchema, ExitTicketSchema, ExperimentalDesignSchema, ExtensionChallengeSchema, ExtensionSchema, FiveEFlowPhaseSchema, FiveEPhaseEnum, GlossaryQuickRefRowSchema, GlossarySchema, GlossaryTermSchema, GoldTierSchema, GraphicOrganizerItemSchema, GraphicOrganizerSchema, HandoutSchema, HandoutSectionSchema, InstructionSectionSchema, InstructionStepSchema, JudgeCriterionSchema, LabTierTaskSchema, LearningObjectiveInputSchema, LearningObjectiveRowSchema, LessonFlowPhaseSchema, LessonPlan5ESchema, LessonPlanEDPSchema, LessonPlanSchema, LessonSectionSchema, MarpSlideSchema, MasteryGateSchema, MentorCheatsheetSchema, MilestoneInputSchema, MisconceptionSchema, NodeKindSchema, OrganizerTypeEnum, PhaseInputSchema, PlanConstraintsSchema, PlannerInputSchema, PlanningGraphSchema, PlanningNodeSchema, PrerequisiteDecisionEntrySchema, PrerequisiteDecisionSchema, ProductGoalSchema, ProgressiveHintsSchema, ProjectGraphSchema, ProjectInstructionSchema, ProjectProfileSchema, QualityAuditVerdictSchema, QuizOptionSchema, ResourceMapRowSchema, ReviewGameExportRowSchema, ReviewGameQuestionSchema, ReviewGameSchema, RoadmapInputSchema, RotationStationSchema, RubricCriteriaSchema, RubricSchema, ScaffoldDecisionEntrySchema, ScaffoldDecisionSchema, ScienceLabSchema, ScoringRubricRowSchema, SelfLabSchema, SelfPacedBundleSchema, SelfPacedChallengeSchema, SessionPlanSchema, SessionZpdStatusSchema, SilverTierSchema, SlideDeckSchema, StandardizedTermRowSchema, StationRecordRowSchema, StationRotationSchema, StationTypeEnum, TaskCardSchema, TaskCardsSchema, TeacherGuideSchema, TeachingScriptPhaseSchema, TierLevelEnum, TierObjectiveSchema, TieredPracticeSchema, TranslationPolicySchema, TroubleshootingEntrySchema, TroubleshootingRowSchema, UnitPlanSchema, UserJourneySchema, WalkingSkeletonSchema, WorksheetItemSchema, WorksheetItemTypeEnum, WorksheetPartSchema, WorksheetSchema, ZpdVerdictSchema, validateCurriculumPlan };
1625
+ export { ActionableRepairActionSchema, ActionableRepairPromptSchema, ActiveLearningWorkflowSchema, ActivityLabSchema, ActivitySeqRowSchema, ActivityStepSchema, ArtifactContractRowSchema, AssessmentMapRowSchema, AssessmentObjectiveSchema, BellRingerDaySchema, BellRingerSchema, BloomLevelSchema, BronzeTierSchema, CERConclusionSchema, CardTierEnum, ChoiceBoardRubricRowSchema, ChoiceBoardSchema, ChoiceRuleSchema, ChoiceSquareSchema, CodeLabSchema, CodeSnippetSchema, CompetencyRubricRowSchema, ComputationalThinkingSchema, ConceptPrerequisiteEdgeSchema, ConceptSpiralEncounterSchema, CoreConceptSchema, CourseObjectiveSchema, CoverageReportSchema, CurriculumArtifactSchema, CurriculumPlanSchema, CurriculumQualityReportSchema, DependencyEdgeSchema, DepthAssignmentSchema, DepthLevelSchema, DiagnosticQuestionSchema, DiagnosticQuizSchema, EDPPhaseEnum, EntryLevelSchema, ExitTicketBugHuntSchema, ExitTicketMetacognitionSchema, ExitTicketQuickItemSchema, ExitTicketRecallPromptSchema, ExitTicketSchema, ExperimentalDesignSchema, ExtensionChallengeSchema, ExtensionSchema, FiveEFlowPhaseSchema, FiveEPhaseEnum, GlossaryQuickRefRowSchema, GlossarySchema, GlossaryTermSchema, GoldTierSchema, GraphicOrganizerItemSchema, GraphicOrganizerSchema, HandoutSchema, HandoutSectionSchema, InstructionSectionSchema, InstructionStepSchema, JudgeCriterionSchema, LabTierTaskSchema, LearningObjectiveInputSchema, LearningObjectiveRowSchema, LessonFlowPhaseSchema, LessonPlan5ESchema, LessonPlanEDPSchema, LessonPlanSchema, LessonSectionSchema, MacroPedagogyPlanAuditSchema, MarpSlideSchema, MasteryGateSchema, MentorCheatsheetSchema, MilestoneInputSchema, MisconceptionSchema, NodeKindSchema, OrganizerTypeEnum, PhaseInputSchema, PlanConstraintsSchema, PlannerInputSchema, PlanningGraphSchema, PlanningNodeSchema, PrerequisiteDecisionEntrySchema, PrerequisiteDecisionSchema, ProductGoalSchema, ProgressiveHintsSchema, ProjectGraphAuditSchema, ProjectGraphSchema, ProjectInstructionSchema, ProjectProfileSchema, QualityAuditVerdictSchema, QuizOptionSchema, ResourceMapRowSchema, ReviewGameExportRowSchema, ReviewGameQuestionSchema, ReviewGameSchema, RoadmapInputSchema, RotationStationSchema, RubricCriteriaSchema, RubricSchema, ScaffoldDecisionEntrySchema, ScaffoldDecisionSchema, ScienceLabSchema, ScoringRubricRowSchema, SelfLabSchema, SelfPacedBundleSchema, SelfPacedChallengeSchema, SessionPlanSchema, SessionZpdStatusSchema, SilverTierSchema, SlideDeckSchema, StandardizedTermRowSchema, StationRecordRowSchema, StationRotationSchema, StationTypeEnum, TaskCardSchema, TaskCardsSchema, TeacherGuideSchema, TeachingScriptPhaseSchema, TierLevelEnum, TierObjectiveSchema, TieredPracticeSchema, TranslationPolicySchema, TroubleshootingEntrySchema, TroubleshootingRowSchema, UnitPlanSchema, UserJourneySchema, WalkingSkeletonSchema, WorksheetItemSchema, WorksheetItemTypeEnum, WorksheetPartSchema, WorksheetSchema, ZpdVerdictSchema, validateCurriculumPlan };
1585
1626
  //# sourceMappingURL=index.mjs.map
1586
1627
  //# sourceMappingURL=index.mjs.map