@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.
- package/dist/ai/index.cjs +194 -2
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +39 -2
- package/dist/ai/index.d.ts +39 -2
- package/dist/ai/index.mjs +191 -3
- package/dist/ai/index.mjs.map +1 -1
- package/dist/index.cjs +326 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -3
- package/dist/index.d.ts +59 -3
- package/dist/index.mjs +310 -3
- package/dist/index.mjs.map +1 -1
- package/dist/pipeline/index.cjs +43 -2
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.mjs +43 -2
- package/dist/pipeline/index.mjs.map +1 -1
- package/dist/schemas/index.cjs +47 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +473 -44
- package/dist/schemas/index.d.ts +473 -44
- package/dist/schemas/index.mjs +44 -3
- package/dist/schemas/index.mjs.map +1 -1
- package/dist/workflow/index.cjs +43 -2
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +43 -2
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/workflow/index.mjs
CHANGED
|
@@ -1656,11 +1656,51 @@ var ExtensionSchema = z.object({
|
|
|
1656
1656
|
});
|
|
1657
1657
|
var QualityAuditVerdictSchema = z.enum(["PASS", "NEEDS_REVISION", "FAIL"]);
|
|
1658
1658
|
var JudgeCriterionSchema = z.object({
|
|
1659
|
-
name: z.string().describe("Criterion name, e.g. Bloom Alignment, Code Validity, Word Count Gate, Language Adherence"),
|
|
1659
|
+
name: z.string().describe("Criterion name, e.g. Bloom Alignment, Code Validity, Word Count Gate, Language Adherence, Step Incrementality"),
|
|
1660
1660
|
passed: z.boolean(),
|
|
1661
1661
|
score: z.number().min(0).max(100).describe("Score out of 100"),
|
|
1662
1662
|
feedback: z.string().describe("Constructive feedback or citation of issues")
|
|
1663
1663
|
});
|
|
1664
|
+
var ActionableRepairActionSchema = z.enum([
|
|
1665
|
+
"SPLIT_STEP",
|
|
1666
|
+
"REVISE_PROVISIONING",
|
|
1667
|
+
"INSERT_RECAP",
|
|
1668
|
+
"ADJUST_TIME_BUDGET",
|
|
1669
|
+
"SUBSTITUTE_FALLBACK",
|
|
1670
|
+
"REVISE_EXIT_EVIDENCE"
|
|
1671
|
+
]);
|
|
1672
|
+
var ActionableRepairPromptSchema = z.object({
|
|
1673
|
+
action: ActionableRepairActionSchema,
|
|
1674
|
+
targetId: z.string().describe("ID of the session, feature, or step requiring repair, e.g. U01_M01_L02 or F1-S3"),
|
|
1675
|
+
severity: z.enum(["CRITICAL", "WARNING", "INFO"]).default("WARNING"),
|
|
1676
|
+
rationale: z.string().describe("Pedagogical or technical rationale for why this repair is mandated"),
|
|
1677
|
+
instruction: z.string().describe("Exact, actionable text instruction for the planner/generator in the next turn")
|
|
1678
|
+
});
|
|
1679
|
+
z.object({
|
|
1680
|
+
schema_version: z.number().default(1),
|
|
1681
|
+
projectId: z.string(),
|
|
1682
|
+
overallVerdict: QualityAuditVerdictSchema,
|
|
1683
|
+
totalScore: z.number().min(0).max(100),
|
|
1684
|
+
toolchainFeasibility: JudgeCriterionSchema.describe("Installation friction, admin rights, IDE/compiler matrix"),
|
|
1685
|
+
provisioningStrategy: JudgeCriterionSchema.describe("Clear model for heavy runtimes: Pre-installed lab, Cloud instance, or Dedicated setup"),
|
|
1686
|
+
hardwareRuntimeEnvelope: JudgeCriterionSchema.describe("Memory/Flash limits, pinout conflicts, hardware platform alignment"),
|
|
1687
|
+
timeToHelloWorld: JudgeCriterionSchema.describe("Student time to achieve first working feedback loop (target <= 15 mins)"),
|
|
1688
|
+
actionableRepairs: z.array(ActionableRepairPromptSchema).default([])
|
|
1689
|
+
});
|
|
1690
|
+
z.object({
|
|
1691
|
+
schema_version: z.number().default(1),
|
|
1692
|
+
planHash: z.string(),
|
|
1693
|
+
overallVerdict: QualityAuditVerdictSchema,
|
|
1694
|
+
totalScore: z.number().min(0).max(100),
|
|
1695
|
+
autoApproved: z.boolean().default(false).describe("True if totalScore >= 85 and overallVerdict is PASS"),
|
|
1696
|
+
stepIncrementality: JudgeCriterionSchema.describe("Single leap principle: <= 1 new syntax or 1 new algorithm per step"),
|
|
1697
|
+
zpdSaturation: JudgeCriterionSchema.describe("Vygotsky ZPD: <= 2 new concepts per session (K-12) / 3 (Adults), with prior anchor"),
|
|
1698
|
+
frictionAdjustedBudget: JudgeCriterionSchema.describe("Student time multiplier (2.5x): total content <= 85% session minutes"),
|
|
1699
|
+
epitomeViability: JudgeCriterionSchema.describe("Reigeluth Walking Skeleton: Unit 1 produces an end-to-end runnable MVP"),
|
|
1700
|
+
exitEvidenceSpecificity: JudgeCriterionSchema.describe("Tangible, measurable student deliverable for every session"),
|
|
1701
|
+
actionableRepairs: z.array(ActionableRepairPromptSchema).default([]),
|
|
1702
|
+
summary: z.string().describe("High-level executive evaluation summary")
|
|
1703
|
+
});
|
|
1664
1704
|
var CurriculumQualityReportSchema = z.object({
|
|
1665
1705
|
targetArtifactType: z.string().describe("Type of artifact audited, e.g. LESSON, ACT, CODE, WKS, SLIDE"),
|
|
1666
1706
|
lessonId: z.string(),
|
|
@@ -1668,7 +1708,8 @@ var CurriculumQualityReportSchema = z.object({
|
|
|
1668
1708
|
totalScore: z.number().min(0).max(100),
|
|
1669
1709
|
languageAdherencePassed: z.boolean().describe("True if content strictly matches the requested target language"),
|
|
1670
1710
|
criteria: z.array(JudgeCriterionSchema).min(3),
|
|
1671
|
-
actionableRepairPrompts: z.array(z.string()).default([]).describe("Concrete instruction prompts to fix detected issues in the next repair turn")
|
|
1711
|
+
actionableRepairPrompts: z.array(z.string()).default([]).describe("Concrete instruction prompts to fix detected issues in the next repair turn"),
|
|
1712
|
+
structuredRepairs: z.array(ActionableRepairPromptSchema).optional()
|
|
1672
1713
|
});
|
|
1673
1714
|
var ProjectProfileSchema = z.object({
|
|
1674
1715
|
id: z.string().optional(),
|