@digimakers/core 0.1.4 → 0.3.20
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/agents/code-formatter.d.ts +2 -0
- package/dist/agents/code-formatter.d.ts.map +1 -0
- package/dist/agents/code-formatter.js +23 -0
- package/dist/agents/code-formatter.js.map +1 -0
- package/dist/docling-cleaner/cleaner.py +34 -0
- package/dist/docling-cleaner/pyproject.toml +10 -0
- package/dist/docling-cleaner/uv.lock +2077 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/parsing/docling-parser.d.ts +17 -0
- package/dist/parsing/docling-parser.d.ts.map +1 -0
- package/dist/parsing/docling-parser.js +109 -0
- package/dist/parsing/docling-parser.js.map +1 -0
- package/dist/parsing/docling-runners.d.ts +2 -0
- package/dist/parsing/docling-runners.d.ts.map +1 -0
- package/dist/parsing/docling-runners.js +85 -0
- package/dist/parsing/docling-runners.js.map +1 -0
- package/dist/parsing/docx-parser.d.ts +2 -2
- package/dist/parsing/docx-parser.d.ts.map +1 -1
- package/dist/parsing/docx-parser.js +130 -37
- package/dist/parsing/docx-parser.js.map +1 -1
- package/dist/parsing/footer-parser.d.ts +7 -0
- package/dist/parsing/footer-parser.d.ts.map +1 -0
- package/dist/parsing/footer-parser.js +49 -0
- package/dist/parsing/footer-parser.js.map +1 -0
- package/dist/parsing/index.d.ts +3 -0
- package/dist/parsing/index.d.ts.map +1 -1
- package/dist/parsing/index.js +2 -0
- package/dist/parsing/index.js.map +1 -1
- package/dist/parsing/normalise.d.ts +3 -0
- package/dist/parsing/normalise.d.ts.map +1 -0
- package/dist/parsing/normalise.js +52 -0
- package/dist/parsing/normalise.js.map +1 -0
- package/dist/parsing/post-processors.d.ts +6 -0
- package/dist/parsing/post-processors.d.ts.map +1 -0
- package/dist/parsing/post-processors.js +217 -0
- package/dist/parsing/post-processors.js.map +1 -0
- package/dist/parsing/prompts.d.ts +5 -0
- package/dist/parsing/prompts.d.ts.map +1 -0
- package/dist/parsing/prompts.js +24 -0
- package/dist/parsing/prompts.js.map +1 -0
- package/dist/pdf-generator.d.ts +18 -6
- package/dist/pdf-generator.d.ts.map +1 -1
- package/dist/pdf-generator.js +80 -70
- package/dist/pdf-generator.js.map +1 -1
- package/dist/sample-data.d.ts +2 -2
- package/dist/sample-data.d.ts.map +1 -1
- package/dist/sample-data.js +16 -10
- package/dist/sample-data.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/lesson.d.ts +404 -44
- package/dist/schemas/lesson.d.ts.map +1 -1
- package/dist/schemas/lesson.js +117 -34
- package/dist/schemas/lesson.js.map +1 -1
- package/package.json +6 -3
package/dist/sample-data.js
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
export const sampleLessonData = {
|
|
2
|
+
lessonType: 'block-based (scratch) lesson',
|
|
2
3
|
topic: 'Decisions',
|
|
3
4
|
project: 'Crossy Road',
|
|
4
5
|
description: 'Decision making is important when there will be situations with multiple options and an option needs to be selected based on the given conditions.',
|
|
5
6
|
projectExplainer: 'In this lesson, we will create a Crossy Road style game where a penguin needs to cross the road and get to the other side without being hit by cars.',
|
|
6
|
-
|
|
7
|
+
programmingLanguage: 'scratch',
|
|
8
|
+
prefaceImageSlots: null,
|
|
7
9
|
getReadySection: ['Add Backdrop "street"', 'Add Sprites: Car and Penguin (set sizes to 40)'],
|
|
8
10
|
addYourCodeSection: [
|
|
9
11
|
{
|
|
10
12
|
step: 'Car: When green flag is clicked, set Rotation style left-right, size 40%. Forever, move 5 steps, if on edge, bounce.',
|
|
11
|
-
|
|
13
|
+
imageSlot: null,
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
step: 'Penguin: When green flag is clicked, Forever: if UP arrow key is pressed, change y by 10.',
|
|
15
|
-
|
|
17
|
+
imageSlot: null,
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
20
|
step: 'Penguin: Inside Forever; If DOWN arrow key is pressed, change y by -10.',
|
|
19
|
-
|
|
21
|
+
imageSlot: null,
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
24
|
step: 'Penguin: Inside Forever; If RIGHT arrow key is pressed, change x by 10.',
|
|
23
|
-
|
|
25
|
+
imageSlot: null,
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
step: 'Penguin: Inside Forever; If LEFT arrow key is pressed, change x by -10.',
|
|
27
|
-
|
|
29
|
+
imageSlot: null,
|
|
28
30
|
},
|
|
29
31
|
{
|
|
30
32
|
step: 'Penguin: Inside Forever; If Penguin touches the car, say "Ouch!" and go back to its start position.',
|
|
31
|
-
|
|
33
|
+
imageSlot: null,
|
|
32
34
|
},
|
|
33
35
|
],
|
|
34
36
|
tryItOutSection: [
|
|
@@ -37,9 +39,13 @@ export const sampleLessonData = {
|
|
|
37
39
|
'Check if the car bounces at the edges',
|
|
38
40
|
],
|
|
39
41
|
challengeSection: [
|
|
40
|
-
{ name: 'Bruise Penguin', task: 'Add sound effects when the penguin gets hit' },
|
|
41
|
-
{ name: 'Add more cars', task: 'Add more cars moving at different speeds' },
|
|
42
|
-
{
|
|
42
|
+
{ name: 'Bruise Penguin', task: 'Add sound effects when the penguin gets hit', hintCode: null },
|
|
43
|
+
{ name: 'Add more cars', task: 'Add more cars moving at different speeds', hintCode: null },
|
|
44
|
+
{
|
|
45
|
+
name: 'Multiple Levels',
|
|
46
|
+
task: 'Create multiple levels with increasing difficulty',
|
|
47
|
+
hintCode: null,
|
|
48
|
+
},
|
|
43
49
|
],
|
|
44
50
|
newProject: {
|
|
45
51
|
name: 'Energy Boost',
|
package/dist/sample-data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sample-data.js","sourceRoot":"","sources":["../src/sample-data.ts"],"names":[],"mappings":"AAEA,M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IAClC,OAAO,EACL,0FAA0F;CAC7F,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { StepWithImageSchema, StepsWithCodeBlockSchema, ChallengeSchema, NewProjectSchema,
|
|
1
|
+
export { StepWithImageSchema, StepsWithCodeBlockSchema, ChallengeSchema, NewProjectSchema, ProgrammingLessonSchema, ScratchLessonSchema, DebugLessonSchema, LessonSchema, LessonLLMSchema, type ImageSlot, type StepWithImage, type StepsWithCodeBlock, type Challenge, type NewProject, type Lesson, } from './lesson.js';
|
|
2
2
|
export { GenerateOptionsSchema, type GenerateOptions } from './generation.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,MAAM,GACZ,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { StepWithImageSchema, StepsWithCodeBlockSchema, ChallengeSchema, NewProjectSchema,
|
|
1
|
+
export { StepWithImageSchema, StepsWithCodeBlockSchema, ChallengeSchema, NewProjectSchema, ProgrammingLessonSchema, ScratchLessonSchema, DebugLessonSchema, LessonSchema, LessonLLMSchema, } from './lesson.js';
|
|
2
2
|
export { GenerateOptionsSchema } from './generation.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAOhB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,qBAAqB,EAAwB,MAAM,iBAAiB,CAAC"}
|
package/dist/schemas/lesson.d.ts
CHANGED
|
@@ -1,70 +1,430 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const languageEnum: z.ZodEnum<{
|
|
3
|
+
none: "none";
|
|
4
|
+
scratch: "scratch";
|
|
5
|
+
"small-basic": "small-basic";
|
|
6
|
+
"javascript or html or css": "javascript or html or css";
|
|
7
|
+
python: "python";
|
|
8
|
+
java: "java";
|
|
9
|
+
c: "c";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const ImageSlotSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const StepsWithCodeBlockSchema: z.ZodObject<{
|
|
16
|
+
steps: z.ZodArray<z.ZodString>;
|
|
17
|
+
codeBlock: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const ChallengeSchema: z.ZodObject<{
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
task: z.ZodString;
|
|
22
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const NewProjectSchema: z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
task: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const ProgrammingLessonSchema: z.ZodObject<{
|
|
29
|
+
lessonType: z.ZodLiteral<"text-based (programming) lesson">;
|
|
30
|
+
topic: z.ZodString;
|
|
31
|
+
project: z.ZodString;
|
|
32
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33
|
+
projectExplainer: z.ZodString;
|
|
34
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
35
|
+
none: "none";
|
|
36
|
+
scratch: "scratch";
|
|
37
|
+
"small-basic": "small-basic";
|
|
38
|
+
"javascript or html or css": "javascript or html or css";
|
|
39
|
+
python: "python";
|
|
40
|
+
java: "java";
|
|
41
|
+
c: "c";
|
|
42
|
+
}>>;
|
|
43
|
+
prefaceImageSlots: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
48
|
+
addYourCodeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
49
|
+
steps: z.ZodArray<z.ZodString>;
|
|
50
|
+
codeBlock: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
53
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
task: z.ZodString;
|
|
56
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
task: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
63
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
2
65
|
export declare const StepWithImageSchema: z.ZodObject<{
|
|
3
66
|
step: z.ZodString;
|
|
4
|
-
|
|
67
|
+
imageSlot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
5
71
|
}, z.core.$strip>;
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
72
|
+
export declare const ScratchLessonSchema: z.ZodObject<{
|
|
73
|
+
topic: z.ZodString;
|
|
74
|
+
project: z.ZodString;
|
|
75
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
76
|
+
projectExplainer: z.ZodString;
|
|
77
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
9
78
|
none: "none";
|
|
79
|
+
scratch: "scratch";
|
|
10
80
|
"small-basic": "small-basic";
|
|
11
81
|
"javascript or html or css": "javascript or html or css";
|
|
12
82
|
python: "python";
|
|
13
83
|
java: "java";
|
|
14
84
|
c: "c";
|
|
15
85
|
}>>;
|
|
16
|
-
|
|
86
|
+
prefaceImageSlots: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
90
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
91
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
92
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
task: z.ZodString;
|
|
95
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
task: z.ZodString;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
102
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
103
|
+
lessonType: z.ZodLiteral<"block-based (scratch) lesson">;
|
|
104
|
+
addYourCodeSection: z.ZodArray<z.ZodObject<{
|
|
105
|
+
step: z.ZodString;
|
|
106
|
+
imageSlot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
17
111
|
}, z.core.$strip>;
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
20
|
-
|
|
112
|
+
export declare const ScratchLessonLLMSchema: z.ZodObject<{
|
|
113
|
+
lessonType: z.ZodLiteral<"block-based (scratch) lesson">;
|
|
114
|
+
topic: z.ZodString;
|
|
115
|
+
project: z.ZodString;
|
|
116
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
117
|
+
projectExplainer: z.ZodString;
|
|
118
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
119
|
+
none: "none";
|
|
120
|
+
scratch: "scratch";
|
|
121
|
+
"small-basic": "small-basic";
|
|
122
|
+
"javascript or html or css": "javascript or html or css";
|
|
123
|
+
python: "python";
|
|
124
|
+
java: "java";
|
|
125
|
+
c: "c";
|
|
126
|
+
}>>;
|
|
127
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
128
|
+
addYourCodeSection: z.ZodArray<z.ZodObject<{
|
|
129
|
+
step: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
132
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
task: z.ZodString;
|
|
135
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
task: z.ZodString;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
142
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
21
143
|
}, z.core.$strip>;
|
|
22
|
-
export declare const
|
|
23
|
-
|
|
24
|
-
|
|
144
|
+
export declare const DebugStepSchema: z.ZodObject<{
|
|
145
|
+
linkToCode: z.ZodURL;
|
|
146
|
+
issue: z.ZodString;
|
|
25
147
|
}, z.core.$strip>;
|
|
26
|
-
export declare const
|
|
148
|
+
export declare const DebugLessonSchema: z.ZodObject<{
|
|
149
|
+
lessonType: z.ZodLiteral<"debugging lesson">;
|
|
150
|
+
topic: z.ZodString;
|
|
151
|
+
project: z.ZodString;
|
|
152
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
153
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
154
|
+
none: "none";
|
|
155
|
+
scratch: "scratch";
|
|
156
|
+
"small-basic": "small-basic";
|
|
157
|
+
"javascript or html or css": "javascript or html or css";
|
|
158
|
+
python: "python";
|
|
159
|
+
java: "java";
|
|
160
|
+
c: "c";
|
|
161
|
+
}>>;
|
|
162
|
+
prefaceImageSlots: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strip>>>;
|
|
166
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
167
|
+
debugSection: z.ZodArray<z.ZodObject<{
|
|
168
|
+
linkToCode: z.ZodURL;
|
|
169
|
+
issue: z.ZodString;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
export declare const DebugLessonLLMSchema: z.ZodObject<{
|
|
173
|
+
lessonType: z.ZodLiteral<"debugging lesson">;
|
|
174
|
+
topic: z.ZodString;
|
|
175
|
+
project: z.ZodString;
|
|
176
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
177
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
178
|
+
none: "none";
|
|
179
|
+
scratch: "scratch";
|
|
180
|
+
"small-basic": "small-basic";
|
|
181
|
+
"javascript or html or css": "javascript or html or css";
|
|
182
|
+
python: "python";
|
|
183
|
+
java: "java";
|
|
184
|
+
c: "c";
|
|
185
|
+
}>>;
|
|
186
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
187
|
+
debugSection: z.ZodArray<z.ZodObject<{
|
|
188
|
+
linkToCode: z.ZodURL;
|
|
189
|
+
issue: z.ZodString;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export declare const LessonSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
|
+
lessonType: z.ZodLiteral<"text-based (programming) lesson">;
|
|
194
|
+
topic: z.ZodString;
|
|
195
|
+
project: z.ZodString;
|
|
196
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
197
|
+
projectExplainer: z.ZodString;
|
|
198
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
199
|
+
none: "none";
|
|
200
|
+
scratch: "scratch";
|
|
201
|
+
"small-basic": "small-basic";
|
|
202
|
+
"javascript or html or css": "javascript or html or css";
|
|
203
|
+
python: "python";
|
|
204
|
+
java: "java";
|
|
205
|
+
c: "c";
|
|
206
|
+
}>>;
|
|
207
|
+
prefaceImageSlots: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$strip>>>;
|
|
211
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
212
|
+
addYourCodeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
213
|
+
steps: z.ZodArray<z.ZodString>;
|
|
214
|
+
codeBlock: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
215
|
+
}, z.core.$strip>>>;
|
|
216
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
217
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
task: z.ZodString;
|
|
220
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
task: z.ZodString;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
227
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
229
|
topic: z.ZodString;
|
|
28
230
|
project: z.ZodString;
|
|
29
|
-
description: z.ZodString
|
|
231
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
30
232
|
projectExplainer: z.ZodString;
|
|
31
|
-
|
|
233
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
234
|
+
none: "none";
|
|
235
|
+
scratch: "scratch";
|
|
236
|
+
"small-basic": "small-basic";
|
|
237
|
+
"javascript or html or css": "javascript or html or css";
|
|
238
|
+
python: "python";
|
|
239
|
+
java: "java";
|
|
240
|
+
c: "c";
|
|
241
|
+
}>>;
|
|
242
|
+
prefaceImageSlots: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, z.core.$strip>>>;
|
|
32
246
|
getReadySection: z.ZodArray<z.ZodString>;
|
|
33
|
-
|
|
247
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
248
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
249
|
+
name: z.ZodString;
|
|
250
|
+
task: z.ZodString;
|
|
251
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
252
|
+
}, z.core.$strip>>>;
|
|
253
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
254
|
+
name: z.ZodString;
|
|
255
|
+
task: z.ZodString;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
258
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
259
|
+
lessonType: z.ZodLiteral<"block-based (scratch) lesson">;
|
|
260
|
+
addYourCodeSection: z.ZodArray<z.ZodObject<{
|
|
34
261
|
step: z.ZodString;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
262
|
+
imageSlot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>>>;
|
|
266
|
+
}, z.core.$strip>>;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
lessonType: z.ZodLiteral<"debugging lesson">;
|
|
269
|
+
topic: z.ZodString;
|
|
270
|
+
project: z.ZodString;
|
|
271
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
272
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
273
|
+
none: "none";
|
|
274
|
+
scratch: "scratch";
|
|
275
|
+
"small-basic": "small-basic";
|
|
276
|
+
"javascript or html or css": "javascript or html or css";
|
|
277
|
+
python: "python";
|
|
278
|
+
java: "java";
|
|
279
|
+
c: "c";
|
|
280
|
+
}>>;
|
|
281
|
+
prefaceImageSlots: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
base64: z.ZodOptional<z.ZodString>;
|
|
284
|
+
}, z.core.$strip>>>;
|
|
285
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
286
|
+
debugSection: z.ZodArray<z.ZodObject<{
|
|
287
|
+
linkToCode: z.ZodURL;
|
|
288
|
+
issue: z.ZodString;
|
|
289
|
+
}, z.core.$strip>>;
|
|
290
|
+
}, z.core.$strip>], "lessonType">;
|
|
291
|
+
export declare const LessonLLMSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
292
|
+
topic: z.ZodString;
|
|
293
|
+
project: z.ZodString;
|
|
294
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
295
|
+
projectExplainer: z.ZodString;
|
|
296
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
297
|
+
none: "none";
|
|
298
|
+
scratch: "scratch";
|
|
299
|
+
"small-basic": "small-basic";
|
|
300
|
+
"javascript or html or css": "javascript or html or css";
|
|
301
|
+
python: "python";
|
|
302
|
+
java: "java";
|
|
303
|
+
c: "c";
|
|
304
|
+
}>>;
|
|
305
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
306
|
+
addYourCodeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
46
307
|
steps: z.ZodArray<z.ZodString>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
308
|
+
codeBlock: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
310
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
311
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
312
|
+
name: z.ZodString;
|
|
313
|
+
task: z.ZodString;
|
|
314
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
315
|
+
}, z.core.$strip>>>;
|
|
316
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
50
317
|
name: z.ZodString;
|
|
51
318
|
task: z.ZodString;
|
|
52
319
|
}, z.core.$strip>>;
|
|
53
|
-
|
|
320
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
topic: z.ZodString;
|
|
323
|
+
project: z.ZodString;
|
|
324
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
325
|
+
projectExplainer: z.ZodString;
|
|
326
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
327
|
+
none: "none";
|
|
328
|
+
scratch: "scratch";
|
|
329
|
+
"small-basic": "small-basic";
|
|
330
|
+
"javascript or html or css": "javascript or html or css";
|
|
331
|
+
python: "python";
|
|
332
|
+
java: "java";
|
|
333
|
+
c: "c";
|
|
334
|
+
}>>;
|
|
335
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
336
|
+
addYourCodeSection: z.ZodArray<z.ZodObject<{
|
|
337
|
+
step: z.ZodString;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
340
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
54
341
|
name: z.ZodString;
|
|
55
342
|
task: z.ZodString;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
343
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>>>;
|
|
345
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
346
|
+
name: z.ZodString;
|
|
347
|
+
task: z.ZodString;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
350
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
+
topic: z.ZodString;
|
|
353
|
+
project: z.ZodString;
|
|
354
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
355
|
+
programmingLanguage: z.ZodDefault<z.ZodEnum<{
|
|
356
|
+
none: "none";
|
|
357
|
+
scratch: "scratch";
|
|
358
|
+
"small-basic": "small-basic";
|
|
359
|
+
"javascript or html or css": "javascript or html or css";
|
|
360
|
+
python: "python";
|
|
361
|
+
java: "java";
|
|
362
|
+
c: "c";
|
|
363
|
+
}>>;
|
|
364
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
365
|
+
debugSection: z.ZodArray<z.ZodObject<{
|
|
366
|
+
linkToCode: z.ZodURL;
|
|
367
|
+
issue: z.ZodString;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
}, z.core.$strip>]>;
|
|
370
|
+
export declare const LessonLLMSchemaWithoutLanguage: z.ZodUnion<readonly [z.ZodObject<{
|
|
371
|
+
topic: z.ZodString;
|
|
372
|
+
project: z.ZodString;
|
|
373
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
374
|
+
projectExplainer: z.ZodString;
|
|
375
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
376
|
+
addYourCodeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
377
|
+
steps: z.ZodArray<z.ZodString>;
|
|
378
|
+
codeBlock: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
}, z.core.$strip>>>;
|
|
380
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
381
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
382
|
+
name: z.ZodString;
|
|
383
|
+
task: z.ZodString;
|
|
384
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>>>;
|
|
386
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
387
|
+
name: z.ZodString;
|
|
388
|
+
task: z.ZodString;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
392
|
+
topic: z.ZodString;
|
|
393
|
+
project: z.ZodString;
|
|
394
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
395
|
+
projectExplainer: z.ZodString;
|
|
396
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
397
|
+
addYourCodeSection: z.ZodArray<z.ZodObject<{
|
|
398
|
+
step: z.ZodString;
|
|
399
|
+
}, z.core.$strip>>;
|
|
400
|
+
tryItOutSection: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
401
|
+
challengeSection: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
402
|
+
name: z.ZodString;
|
|
403
|
+
task: z.ZodString;
|
|
404
|
+
hintCode: z.ZodNullable<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>>>;
|
|
406
|
+
newProject: z.ZodNullable<z.ZodObject<{
|
|
407
|
+
name: z.ZodString;
|
|
408
|
+
task: z.ZodString;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
testYourself: z.ZodNullable<z.ZodString>;
|
|
411
|
+
funFact: z.ZodNullable<z.ZodString>;
|
|
412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
413
|
+
topic: z.ZodString;
|
|
414
|
+
project: z.ZodString;
|
|
415
|
+
description: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
416
|
+
getReadySection: z.ZodArray<z.ZodString>;
|
|
417
|
+
debugSection: z.ZodArray<z.ZodObject<{
|
|
418
|
+
linkToCode: z.ZodURL;
|
|
419
|
+
issue: z.ZodString;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
}, z.core.$strip>]>;
|
|
422
|
+
export type ProgrammingLanguage = z.infer<typeof languageEnum>;
|
|
423
|
+
export type ImageSlot = z.infer<typeof ImageSlotSchema>;
|
|
424
|
+
export type StepWithImage = z.infer<typeof StepWithImageSchema>;
|
|
425
|
+
export type StepsWithCodeBlock = z.infer<typeof StepsWithCodeBlockSchema>;
|
|
426
|
+
export type Challenge = z.infer<typeof ChallengeSchema>;
|
|
427
|
+
export type NewProject = z.infer<typeof NewProjectSchema>;
|
|
428
|
+
export type Lesson = z.infer<typeof LessonSchema>;
|
|
429
|
+
export type LessonLLM = z.infer<typeof LessonLLMSchema>;
|
|
70
430
|
//# sourceMappingURL=lesson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lesson.d.ts","sourceRoot":"","sources":["../../src/schemas/lesson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"lesson.d.ts","sourceRoot":"","sources":["../../src/schemas/lesson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;EAQvB,CAAC;AAKH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;iBAWnC,CAAC;AACH,eAAO,MAAM,eAAe;;;;iBAe1B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;iBAS3B,CAAC;AAKH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmDlC,CAAC;AAOH,eAAO,MAAM,mBAAmB;;;;;;iBAG9B,CAAC;AACH,eAAO,MAAM,m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