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