@thanh01.pmt/curriculum-kit 1.0.0

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.
Files changed (68) hide show
  1. package/README.md +22 -0
  2. package/dist/ai/index.cjs +4980 -0
  3. package/dist/ai/index.cjs.map +1 -0
  4. package/dist/ai/index.d.cts +1287 -0
  5. package/dist/ai/index.d.ts +1287 -0
  6. package/dist/ai/index.mjs +4924 -0
  7. package/dist/ai/index.mjs.map +1 -0
  8. package/dist/index.cjs +15308 -0
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.d.cts +747 -0
  11. package/dist/index.d.ts +747 -0
  12. package/dist/index.mjs +14965 -0
  13. package/dist/index.mjs.map +1 -0
  14. package/dist/media/index.cjs +1238 -0
  15. package/dist/media/index.cjs.map +1 -0
  16. package/dist/media/index.d.cts +254 -0
  17. package/dist/media/index.d.ts +254 -0
  18. package/dist/media/index.mjs +1221 -0
  19. package/dist/media/index.mjs.map +1 -0
  20. package/dist/milestoneBundleGenerator-CbXhs1CP.d.ts +62 -0
  21. package/dist/milestoneBundleGenerator-DrBtHzBO.d.cts +62 -0
  22. package/dist/pipeline/index.cjs +4894 -0
  23. package/dist/pipeline/index.cjs.map +1 -0
  24. package/dist/pipeline/index.d.cts +161 -0
  25. package/dist/pipeline/index.d.ts +161 -0
  26. package/dist/pipeline/index.mjs +4869 -0
  27. package/dist/pipeline/index.mjs.map +1 -0
  28. package/dist/provider-factory-DH3udYlN.d.cts +25 -0
  29. package/dist/provider-factory-DH3udYlN.d.ts +25 -0
  30. package/dist/publishers/index.cjs +575 -0
  31. package/dist/publishers/index.cjs.map +1 -0
  32. package/dist/publishers/index.d.cts +85 -0
  33. package/dist/publishers/index.d.ts +85 -0
  34. package/dist/publishers/index.mjs +561 -0
  35. package/dist/publishers/index.mjs.map +1 -0
  36. package/dist/schemas/index.cjs +1640 -0
  37. package/dist/schemas/index.cjs.map +1 -0
  38. package/dist/schemas/index.d.cts +14194 -0
  39. package/dist/schemas/index.d.ts +14194 -0
  40. package/dist/schemas/index.mjs +1517 -0
  41. package/dist/schemas/index.mjs.map +1 -0
  42. package/dist/standards/index.cjs +910 -0
  43. package/dist/standards/index.cjs.map +1 -0
  44. package/dist/standards/index.d.cts +130 -0
  45. package/dist/standards/index.d.ts +130 -0
  46. package/dist/standards/index.mjs +890 -0
  47. package/dist/standards/index.mjs.map +1 -0
  48. package/dist/standardsCoverageGate-BWAkXY76.d.cts +767 -0
  49. package/dist/standardsCoverageGate-BWAkXY76.d.ts +767 -0
  50. package/dist/storage/index.cjs +595 -0
  51. package/dist/storage/index.cjs.map +1 -0
  52. package/dist/storage/index.d.cts +77 -0
  53. package/dist/storage/index.d.ts +77 -0
  54. package/dist/storage/index.mjs +583 -0
  55. package/dist/storage/index.mjs.map +1 -0
  56. package/dist/streamRunner-C7j5LKon.d.cts +60 -0
  57. package/dist/streamRunner-C7j5LKon.d.ts +60 -0
  58. package/dist/supabasePublisher-C627qXFT.d.cts +63 -0
  59. package/dist/supabasePublisher-C627qXFT.d.ts +63 -0
  60. package/dist/types-BUJGYiep.d.cts +89 -0
  61. package/dist/types-BUJGYiep.d.ts +89 -0
  62. package/dist/workflow/index.cjs +5266 -0
  63. package/dist/workflow/index.cjs.map +1 -0
  64. package/dist/workflow/index.d.cts +295 -0
  65. package/dist/workflow/index.d.ts +295 -0
  66. package/dist/workflow/index.mjs +5216 -0
  67. package/dist/workflow/index.mjs.map +1 -0
  68. package/package.json +105 -0
@@ -0,0 +1,161 @@
1
+ import { LessonPlan, ActivityLab, CodeLab, Handout, ProjectInstruction, SelfLab, DiagnosticQuiz, RoadmapInput, ProjectGraph, MilestoneInput, SelfPacedBundle } from '../schemas/index.cjs';
2
+ import { B as BundleTier, M as MilestoneCurriculumBundle, a as AutoRepairResult } from '../milestoneBundleGenerator-DrBtHzBO.cjs';
3
+ export { A as AutoRepairOptions, G as GenerateMilestoneBundleOptions, g as generateMilestoneCurriculumBundle, w as withAutoRepair } from '../milestoneBundleGenerator-DrBtHzBO.cjs';
4
+ import { M as ModelResolutionOptions } from '../provider-factory-DH3udYlN.cjs';
5
+ import { I as ICurriculumStorage, P as ProjectStatusReport } from '../types-BUJGYiep.cjs';
6
+ import 'zod';
7
+ import 'ai';
8
+
9
+ /**
10
+ * Serializes a LessonPlan object into canonical LESSON.md (5E Model & Deep Technical Standards)
11
+ */
12
+ declare function serializeLessonToMarkdown(lesson: LessonPlan): string;
13
+ /**
14
+ * Serializes an ActivityLab object into canonical ACT.md (Inquiry-Based & Computational Thinking)
15
+ */
16
+ declare function serializeActivityToMarkdown(act: ActivityLab): string;
17
+ /**
18
+ * Serializes CodeLab object into canonical LAB.md (LAB_TEMPLATE standard)
19
+ */
20
+ declare function serializeCodeLabToMarkdown(codeLab: CodeLab): string;
21
+ /**
22
+ * Serializes Handout to HANDOUT.md (5-Second Rule Cheat Sheet standard)
23
+ */
24
+ declare function serializeHandoutToMarkdown(handout: Handout): string;
25
+ /**
26
+ * Serializes ProjectInstruction to Instructable-style INSTRUCTION.md
27
+ */
28
+ declare function serializeProjectInstructionToMarkdown(instruction: ProjectInstruction): string;
29
+
30
+ /**
31
+ * Serializes SelfLab object into canonical SELF_LAB.md with Progressive Hints (Accordion / Spoilers)
32
+ */
33
+ declare function serializeSelfLabToMarkdown(lab: SelfLab): string;
34
+ /**
35
+ * Serializes DiagnosticQuiz object into canonical QUIZ.md
36
+ */
37
+ declare function serializeDiagnosticQuizToMarkdown(quiz: DiagnosticQuiz): string;
38
+
39
+ interface GenerateRoadmapCurriculumOptions {
40
+ roadmap: RoadmapInput;
41
+ language?: string;
42
+ bundleTier?: BundleTier;
43
+ concurrency?: number;
44
+ enableJudgeRepair?: boolean;
45
+ modelOptions?: ModelResolutionOptions;
46
+ onMilestoneProgress?: (milestoneId: string, current: number, total: number) => void;
47
+ }
48
+ interface RoadmapCurriculumOutput {
49
+ projectTitle: string;
50
+ language: string;
51
+ totalMilestones: number;
52
+ bundles: MilestoneCurriculumBundle[];
53
+ }
54
+ /**
55
+ * Generates curriculum bundles for an entire Roadmap from knowledge-tree
56
+ */
57
+ declare function generateRoadmapCurriculum(options: GenerateRoadmapCurriculumOptions): Promise<RoadmapCurriculumOutput>;
58
+
59
+ interface GenerateProjectInstructionOptions {
60
+ projectGraph?: ProjectGraph;
61
+ milestone: MilestoneInput;
62
+ roadmapContext?: {
63
+ projectTitle?: string;
64
+ techStack?: string[];
65
+ phaseTitle?: string;
66
+ };
67
+ researchNotes?: string;
68
+ externalResources?: string[];
69
+ language?: string;
70
+ difficulty?: 'beginner' | 'intermediate' | 'advanced';
71
+ enableJudgeRepair?: boolean;
72
+ modelOptions?: ModelResolutionOptions;
73
+ }
74
+ interface ProjectInstructionResult {
75
+ instruction: ProjectInstruction;
76
+ instructionMarkdown: string;
77
+ judgeResult?: AutoRepairResult<ProjectInstruction>;
78
+ }
79
+ /**
80
+ * Generates an Instructable-style Step-by-Step Project Instruction / Tutorial
81
+ * adhering to researcher/prompts/tutorial.md methodology.
82
+ */
83
+ declare function generateProjectInstruction(options: GenerateProjectInstructionOptions): Promise<ProjectInstructionResult>;
84
+
85
+ interface GenerateSelfPacedBundleInput {
86
+ milestone: MilestoneInput;
87
+ projectGraph?: ProjectGraph;
88
+ language?: string;
89
+ targetTechStack?: string[];
90
+ contextContinuity?: string;
91
+ outputDirectory?: string;
92
+ modelOptions?: ModelResolutionOptions;
93
+ }
94
+ interface SelfPacedBundleOutput {
95
+ bundle: SelfPacedBundle;
96
+ markdown: {
97
+ instructionMd: string;
98
+ selfLabMd: string;
99
+ quizMd: string;
100
+ cheatSheetMd: string;
101
+ codeLabMd?: string;
102
+ };
103
+ outputDirectory?: string;
104
+ }
105
+ /**
106
+ * Orchestrates generation of a complete Autonomous Self-Learner Bundle
107
+ */
108
+ declare function generateSelfPacedBundle(input: GenerateSelfPacedBundleInput): Promise<SelfPacedBundleOutput>;
109
+
110
+ interface ConvertedSotBundle {
111
+ learnerProfile: string;
112
+ projectBrief: string;
113
+ referencePack: string;
114
+ curriculumFramework: string;
115
+ contentStyleGuide: string;
116
+ artDirection: string;
117
+ projectStatus: string;
118
+ }
119
+ /**
120
+ * Normalizes and converts Roadmap JSON and Project Graph JSON from knowledge-tree into 7 Canonical SOT Foundation Files.
121
+ */
122
+ declare function convertRoadmapToFoundationSot(roadmapInput: any, projectGraphInput?: any): ConvertedSotBundle;
123
+ /**
124
+ * High-level function to import Roadmap JSON and Project Graph JSON into storage as a fully initialized SOT project.
125
+ */
126
+ declare function importRoadmapToProject(storage: ICurriculumStorage, projectId: string, roadmapInput: any, projectGraphInput?: any): Promise<ProjectStatusReport>;
127
+
128
+ interface LintIssue {
129
+ line?: number;
130
+ type: 'PREAMBLE' | 'POSTAMBLE' | 'CODE_FENCE' | 'TABLE' | 'MERMAID' | 'FRONTMATTER' | 'PLACEHOLDER' | 'MATH';
131
+ severity: 'ERROR' | 'WARNING';
132
+ message: string;
133
+ autoFixable: boolean;
134
+ }
135
+ interface ArtifactLintReport {
136
+ filePath?: string;
137
+ isValid: boolean;
138
+ issues: LintIssue[];
139
+ autoFixedContent: string;
140
+ fixedCount: number;
141
+ }
142
+ /**
143
+ * Validates Mermaid diagram blocks for common syntax errors
144
+ */
145
+ declare function validateMermaidSyntax(code: string): {
146
+ valid: boolean;
147
+ error?: string;
148
+ };
149
+ /**
150
+ * Validates and repairs markdown tables for column parity
151
+ */
152
+ declare function validateMarkdownTables(raw: string): {
153
+ issues: LintIssue[];
154
+ fixedContent: string;
155
+ };
156
+ /**
157
+ * Scans, lints, and automatically sanitizes an artifact markdown document.
158
+ */
159
+ declare function lintAndSanitizeArtifact(rawContent: string, filePath?: string): ArtifactLintReport;
160
+
161
+ export { type ArtifactLintReport, AutoRepairResult, BundleTier, type ConvertedSotBundle, type GenerateProjectInstructionOptions, type GenerateRoadmapCurriculumOptions, type GenerateSelfPacedBundleInput, type LintIssue, MilestoneCurriculumBundle, type ProjectInstructionResult, type RoadmapCurriculumOutput, type SelfPacedBundleOutput, convertRoadmapToFoundationSot, generateProjectInstruction, generateRoadmapCurriculum, generateSelfPacedBundle, importRoadmapToProject, lintAndSanitizeArtifact, serializeActivityToMarkdown, serializeCodeLabToMarkdown, serializeDiagnosticQuizToMarkdown, serializeHandoutToMarkdown, serializeLessonToMarkdown, serializeProjectInstructionToMarkdown, serializeSelfLabToMarkdown, validateMarkdownTables, validateMermaidSyntax };
@@ -0,0 +1,161 @@
1
+ import { LessonPlan, ActivityLab, CodeLab, Handout, ProjectInstruction, SelfLab, DiagnosticQuiz, RoadmapInput, ProjectGraph, MilestoneInput, SelfPacedBundle } from '../schemas/index.js';
2
+ import { B as BundleTier, M as MilestoneCurriculumBundle, a as AutoRepairResult } from '../milestoneBundleGenerator-CbXhs1CP.js';
3
+ export { A as AutoRepairOptions, G as GenerateMilestoneBundleOptions, g as generateMilestoneCurriculumBundle, w as withAutoRepair } from '../milestoneBundleGenerator-CbXhs1CP.js';
4
+ import { M as ModelResolutionOptions } from '../provider-factory-DH3udYlN.js';
5
+ import { I as ICurriculumStorage, P as ProjectStatusReport } from '../types-BUJGYiep.js';
6
+ import 'zod';
7
+ import 'ai';
8
+
9
+ /**
10
+ * Serializes a LessonPlan object into canonical LESSON.md (5E Model & Deep Technical Standards)
11
+ */
12
+ declare function serializeLessonToMarkdown(lesson: LessonPlan): string;
13
+ /**
14
+ * Serializes an ActivityLab object into canonical ACT.md (Inquiry-Based & Computational Thinking)
15
+ */
16
+ declare function serializeActivityToMarkdown(act: ActivityLab): string;
17
+ /**
18
+ * Serializes CodeLab object into canonical LAB.md (LAB_TEMPLATE standard)
19
+ */
20
+ declare function serializeCodeLabToMarkdown(codeLab: CodeLab): string;
21
+ /**
22
+ * Serializes Handout to HANDOUT.md (5-Second Rule Cheat Sheet standard)
23
+ */
24
+ declare function serializeHandoutToMarkdown(handout: Handout): string;
25
+ /**
26
+ * Serializes ProjectInstruction to Instructable-style INSTRUCTION.md
27
+ */
28
+ declare function serializeProjectInstructionToMarkdown(instruction: ProjectInstruction): string;
29
+
30
+ /**
31
+ * Serializes SelfLab object into canonical SELF_LAB.md with Progressive Hints (Accordion / Spoilers)
32
+ */
33
+ declare function serializeSelfLabToMarkdown(lab: SelfLab): string;
34
+ /**
35
+ * Serializes DiagnosticQuiz object into canonical QUIZ.md
36
+ */
37
+ declare function serializeDiagnosticQuizToMarkdown(quiz: DiagnosticQuiz): string;
38
+
39
+ interface GenerateRoadmapCurriculumOptions {
40
+ roadmap: RoadmapInput;
41
+ language?: string;
42
+ bundleTier?: BundleTier;
43
+ concurrency?: number;
44
+ enableJudgeRepair?: boolean;
45
+ modelOptions?: ModelResolutionOptions;
46
+ onMilestoneProgress?: (milestoneId: string, current: number, total: number) => void;
47
+ }
48
+ interface RoadmapCurriculumOutput {
49
+ projectTitle: string;
50
+ language: string;
51
+ totalMilestones: number;
52
+ bundles: MilestoneCurriculumBundle[];
53
+ }
54
+ /**
55
+ * Generates curriculum bundles for an entire Roadmap from knowledge-tree
56
+ */
57
+ declare function generateRoadmapCurriculum(options: GenerateRoadmapCurriculumOptions): Promise<RoadmapCurriculumOutput>;
58
+
59
+ interface GenerateProjectInstructionOptions {
60
+ projectGraph?: ProjectGraph;
61
+ milestone: MilestoneInput;
62
+ roadmapContext?: {
63
+ projectTitle?: string;
64
+ techStack?: string[];
65
+ phaseTitle?: string;
66
+ };
67
+ researchNotes?: string;
68
+ externalResources?: string[];
69
+ language?: string;
70
+ difficulty?: 'beginner' | 'intermediate' | 'advanced';
71
+ enableJudgeRepair?: boolean;
72
+ modelOptions?: ModelResolutionOptions;
73
+ }
74
+ interface ProjectInstructionResult {
75
+ instruction: ProjectInstruction;
76
+ instructionMarkdown: string;
77
+ judgeResult?: AutoRepairResult<ProjectInstruction>;
78
+ }
79
+ /**
80
+ * Generates an Instructable-style Step-by-Step Project Instruction / Tutorial
81
+ * adhering to researcher/prompts/tutorial.md methodology.
82
+ */
83
+ declare function generateProjectInstruction(options: GenerateProjectInstructionOptions): Promise<ProjectInstructionResult>;
84
+
85
+ interface GenerateSelfPacedBundleInput {
86
+ milestone: MilestoneInput;
87
+ projectGraph?: ProjectGraph;
88
+ language?: string;
89
+ targetTechStack?: string[];
90
+ contextContinuity?: string;
91
+ outputDirectory?: string;
92
+ modelOptions?: ModelResolutionOptions;
93
+ }
94
+ interface SelfPacedBundleOutput {
95
+ bundle: SelfPacedBundle;
96
+ markdown: {
97
+ instructionMd: string;
98
+ selfLabMd: string;
99
+ quizMd: string;
100
+ cheatSheetMd: string;
101
+ codeLabMd?: string;
102
+ };
103
+ outputDirectory?: string;
104
+ }
105
+ /**
106
+ * Orchestrates generation of a complete Autonomous Self-Learner Bundle
107
+ */
108
+ declare function generateSelfPacedBundle(input: GenerateSelfPacedBundleInput): Promise<SelfPacedBundleOutput>;
109
+
110
+ interface ConvertedSotBundle {
111
+ learnerProfile: string;
112
+ projectBrief: string;
113
+ referencePack: string;
114
+ curriculumFramework: string;
115
+ contentStyleGuide: string;
116
+ artDirection: string;
117
+ projectStatus: string;
118
+ }
119
+ /**
120
+ * Normalizes and converts Roadmap JSON and Project Graph JSON from knowledge-tree into 7 Canonical SOT Foundation Files.
121
+ */
122
+ declare function convertRoadmapToFoundationSot(roadmapInput: any, projectGraphInput?: any): ConvertedSotBundle;
123
+ /**
124
+ * High-level function to import Roadmap JSON and Project Graph JSON into storage as a fully initialized SOT project.
125
+ */
126
+ declare function importRoadmapToProject(storage: ICurriculumStorage, projectId: string, roadmapInput: any, projectGraphInput?: any): Promise<ProjectStatusReport>;
127
+
128
+ interface LintIssue {
129
+ line?: number;
130
+ type: 'PREAMBLE' | 'POSTAMBLE' | 'CODE_FENCE' | 'TABLE' | 'MERMAID' | 'FRONTMATTER' | 'PLACEHOLDER' | 'MATH';
131
+ severity: 'ERROR' | 'WARNING';
132
+ message: string;
133
+ autoFixable: boolean;
134
+ }
135
+ interface ArtifactLintReport {
136
+ filePath?: string;
137
+ isValid: boolean;
138
+ issues: LintIssue[];
139
+ autoFixedContent: string;
140
+ fixedCount: number;
141
+ }
142
+ /**
143
+ * Validates Mermaid diagram blocks for common syntax errors
144
+ */
145
+ declare function validateMermaidSyntax(code: string): {
146
+ valid: boolean;
147
+ error?: string;
148
+ };
149
+ /**
150
+ * Validates and repairs markdown tables for column parity
151
+ */
152
+ declare function validateMarkdownTables(raw: string): {
153
+ issues: LintIssue[];
154
+ fixedContent: string;
155
+ };
156
+ /**
157
+ * Scans, lints, and automatically sanitizes an artifact markdown document.
158
+ */
159
+ declare function lintAndSanitizeArtifact(rawContent: string, filePath?: string): ArtifactLintReport;
160
+
161
+ export { type ArtifactLintReport, AutoRepairResult, BundleTier, type ConvertedSotBundle, type GenerateProjectInstructionOptions, type GenerateRoadmapCurriculumOptions, type GenerateSelfPacedBundleInput, type LintIssue, MilestoneCurriculumBundle, type ProjectInstructionResult, type RoadmapCurriculumOutput, type SelfPacedBundleOutput, convertRoadmapToFoundationSot, generateProjectInstruction, generateRoadmapCurriculum, generateSelfPacedBundle, importRoadmapToProject, lintAndSanitizeArtifact, serializeActivityToMarkdown, serializeCodeLabToMarkdown, serializeDiagnosticQuizToMarkdown, serializeHandoutToMarkdown, serializeLessonToMarkdown, serializeProjectInstructionToMarkdown, serializeSelfLabToMarkdown, validateMarkdownTables, validateMermaidSyntax };