@thanh01.pmt/curriculum-kit 1.4.37 → 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 +598 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -5
- package/dist/index.d.ts +229 -5
- package/dist/index.mjs +577 -30
- 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 +63 -2
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs +63 -2
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/workflow/index.cjs
CHANGED
|
@@ -1137,6 +1137,12 @@ var init_provider_factory = __esm({
|
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
1139
|
|
|
1140
|
+
// src/parsers/lessonFlowParser.ts
|
|
1141
|
+
var init_lessonFlowParser = __esm({
|
|
1142
|
+
"src/parsers/lessonFlowParser.ts"() {
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
|
|
1140
1146
|
// src/ai/flows/generateLessonMasterFlow.ts
|
|
1141
1147
|
init_provider_factory();
|
|
1142
1148
|
var LearningObjectiveRowSchema = zod.z.object({
|
|
@@ -1659,11 +1665,51 @@ var ExtensionSchema = zod.z.object({
|
|
|
1659
1665
|
});
|
|
1660
1666
|
var QualityAuditVerdictSchema = zod.z.enum(["PASS", "NEEDS_REVISION", "FAIL"]);
|
|
1661
1667
|
var JudgeCriterionSchema = zod.z.object({
|
|
1662
|
-
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"),
|
|
1663
1669
|
passed: zod.z.boolean(),
|
|
1664
1670
|
score: zod.z.number().min(0).max(100).describe("Score out of 100"),
|
|
1665
1671
|
feedback: zod.z.string().describe("Constructive feedback or citation of issues")
|
|
1666
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
|
+
});
|
|
1667
1713
|
var CurriculumQualityReportSchema = zod.z.object({
|
|
1668
1714
|
targetArtifactType: zod.z.string().describe("Type of artifact audited, e.g. LESSON, ACT, CODE, WKS, SLIDE"),
|
|
1669
1715
|
lessonId: zod.z.string(),
|
|
@@ -1671,7 +1717,8 @@ var CurriculumQualityReportSchema = zod.z.object({
|
|
|
1671
1717
|
totalScore: zod.z.number().min(0).max(100),
|
|
1672
1718
|
languageAdherencePassed: zod.z.boolean().describe("True if content strictly matches the requested target language"),
|
|
1673
1719
|
criteria: zod.z.array(JudgeCriterionSchema).min(3),
|
|
1674
|
-
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()
|
|
1675
1722
|
});
|
|
1676
1723
|
var ProjectProfileSchema = zod.z.object({
|
|
1677
1724
|
id: zod.z.string().optional(),
|
|
@@ -19726,6 +19773,20 @@ function buildDomainLexiconGuardrail(techStack, hardwarePlatform) {
|
|
|
19726
19773
|
}
|
|
19727
19774
|
init_errors();
|
|
19728
19775
|
|
|
19776
|
+
// src/parsers/lessonEntity.ts
|
|
19777
|
+
init_lessonFlowParser();
|
|
19778
|
+
zod.z.object({
|
|
19779
|
+
lessonId: zod.z.string(),
|
|
19780
|
+
title: zod.z.string(),
|
|
19781
|
+
pedagogyModel: zod.z.string().default("5e"),
|
|
19782
|
+
estimatedDuration: zod.z.string().default(""),
|
|
19783
|
+
learningObjectives: zod.z.array(LearningObjectiveRowSchema).default([]),
|
|
19784
|
+
activitySequence: zod.z.array(ActivitySeqRowSchema).default([]),
|
|
19785
|
+
/** Header→cell rows straight from the A4 Assessment Map table (headers vary by template). */
|
|
19786
|
+
assessmentMap: zod.z.array(zod.z.record(zod.z.string())).default([]),
|
|
19787
|
+
tieredScaffolding: zod.z.object({ bronze: zod.z.string().default(""), silver: zod.z.string().default(""), gold: zod.z.string().default("") }).default({ bronze: "", silver: "", gold: "" })
|
|
19788
|
+
});
|
|
19789
|
+
|
|
19729
19790
|
// src/services/lessonProductionService.ts
|
|
19730
19791
|
var __filename$1 = typeof (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) === "string" && typeof url.fileURLToPath === "function" ? url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))) : "";
|
|
19731
19792
|
var _resolvedDir = __filename$1 ? path4__default.default.dirname(__filename$1) : typeof __dirname !== "undefined" ? __dirname : process.cwd();
|