@thanh01.pmt/curriculum-kit 1.4.5 → 1.4.6
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/index.cjs +14 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +14 -13
- package/dist/index.mjs.map +1 -1
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24592,6 +24592,7 @@ ${sg}
|
|
|
24592
24592
|
${ref}${standardsBlock}${glossaryBlock}${expositionBlock}${sessionSliceBlock}`;
|
|
24593
24593
|
let commonContext = assembleCommonContext(effectiveRefPack, effectiveStyleGuide);
|
|
24594
24594
|
const MAX_COMPOSITE_PROMPT_CHARS = 3e4;
|
|
24595
|
+
const runnerOptions = options.customInference ? { customInference: options.customInference } : {};
|
|
24595
24596
|
if (commonContext.length > MAX_COMPOSITE_PROMPT_CHARS && effectiveRefPack.length > 1e3) {
|
|
24596
24597
|
effectiveRefPack = buildSectionAwareExcerpt(refPack, {
|
|
24597
24598
|
priorities: [
|
|
@@ -24638,7 +24639,7 @@ Khi n\u1ED9i dung c\u1EA7n minh h\u1ECDa (diagram quy tr\xECnh, s\u01A1 \u0111\u
|
|
|
24638
24639
|
const rawLesson = await runCurriculumAIInference(
|
|
24639
24640
|
[{ role: "user", content: lessonPrompt }],
|
|
24640
24641
|
commonContext,
|
|
24641
|
-
|
|
24642
|
+
runnerOptions,
|
|
24642
24643
|
(chunk, type) => {
|
|
24643
24644
|
options.onProgress?.("@content", chunk, { type: type || "content", artifactType: "LESSON" });
|
|
24644
24645
|
}
|
|
@@ -24667,7 +24668,7 @@ PREVIOUS ATTEMPT FAILED STRUCTURAL LINT:
|
|
|
24667
24668
|
${blockingIssues.map((i) => "- " + i.message).join("\n")}
|
|
24668
24669
|
Fix ALL issues above and output the complete corrected document.` }],
|
|
24669
24670
|
commonContext,
|
|
24670
|
-
|
|
24671
|
+
runnerOptions,
|
|
24671
24672
|
(chunk, type) => {
|
|
24672
24673
|
options.onProgress?.("@content", chunk, { type: type || "content", artifactType: "LESSON" });
|
|
24673
24674
|
}
|
|
@@ -24791,7 +24792,7 @@ ${repairFeedback}
|
|
|
24791
24792
|
CURRENT DOCUMENT:
|
|
24792
24793
|
${currentContent}` }],
|
|
24793
24794
|
commonContext,
|
|
24794
|
-
|
|
24795
|
+
runnerOptions,
|
|
24795
24796
|
(chunk, type) => {
|
|
24796
24797
|
options.onProgress?.("@repair", chunk, { type: type || "content", artifactType: "LESSON" });
|
|
24797
24798
|
}
|
|
@@ -25038,7 +25039,7 @@ ${buildHeadingDirective("ACT", slcMarkdown, targetLang)}`;
|
|
|
25038
25039
|
const rawAct = await runCurriculumAIInference(
|
|
25039
25040
|
[{ role: "user", content: actPrompt }],
|
|
25040
25041
|
satelliteContext,
|
|
25041
|
-
|
|
25042
|
+
runnerOptions,
|
|
25042
25043
|
(chunk, type) => {
|
|
25043
25044
|
options.onProgress?.("@activity", chunk, { type: type || "content", artifactType: "ACT" });
|
|
25044
25045
|
}
|
|
@@ -25102,7 +25103,7 @@ ${buildHeadingDirective("QUIZ", slcMarkdown, targetLang)}`;
|
|
|
25102
25103
|
const rawQuiz = await runCurriculumAIInference(
|
|
25103
25104
|
[{ role: "user", content: quizPrompt }],
|
|
25104
25105
|
satelliteContext,
|
|
25105
|
-
|
|
25106
|
+
runnerOptions,
|
|
25106
25107
|
(chunk, type) => {
|
|
25107
25108
|
options.onProgress?.("@assessor", chunk, { type: type || "content", artifactType: "QUIZ" });
|
|
25108
25109
|
}
|
|
@@ -25149,7 +25150,7 @@ ${glossaryContext}` : void 0,
|
|
|
25149
25150
|
const rawSlide = await runCurriculumAIInference(
|
|
25150
25151
|
[{ role: "user", content: slidePrompt }],
|
|
25151
25152
|
satelliteContext,
|
|
25152
|
-
|
|
25153
|
+
runnerOptions,
|
|
25153
25154
|
(chunk, type) => {
|
|
25154
25155
|
options.onProgress?.("@illustrator", chunk, { type: type || "content", artifactType: "SLIDE" });
|
|
25155
25156
|
}
|
|
@@ -25190,7 +25191,7 @@ Fix ALL issues and output the complete corrected JSON object strictly matching t
|
|
|
25190
25191
|
const repairedRaw = await runCurriculumAIInference(
|
|
25191
25192
|
[{ role: "user", content: repairPrompt }],
|
|
25192
25193
|
satelliteContext,
|
|
25193
|
-
|
|
25194
|
+
runnerOptions,
|
|
25194
25195
|
(chunk, type) => {
|
|
25195
25196
|
options.onProgress?.("@illustrator", chunk, { type: type || "content", artifactType: "SLIDE" });
|
|
25196
25197
|
}
|
|
@@ -25274,7 +25275,7 @@ footer: "Curriculum OS \u2022 ${lessonCode} (${pedagogyLabel})"
|
|
|
25274
25275
|
const rawSlide = await runCurriculumAIInference(
|
|
25275
25276
|
[{ role: "user", content: slidePrompt }],
|
|
25276
25277
|
satelliteContext,
|
|
25277
|
-
|
|
25278
|
+
runnerOptions,
|
|
25278
25279
|
(chunk, type) => {
|
|
25279
25280
|
options.onProgress?.("@illustrator", chunk, { type: type || "content", artifactType: "SLIDE" });
|
|
25280
25281
|
}
|
|
@@ -25334,7 +25335,7 @@ ${buildHeadingDirective("GUIDE", slcMarkdown, targetLang)}`;
|
|
|
25334
25335
|
const rawGuide = await runCurriculumAIInference(
|
|
25335
25336
|
[{ role: "user", content: guidePrompt }],
|
|
25336
25337
|
satelliteContext,
|
|
25337
|
-
|
|
25338
|
+
runnerOptions,
|
|
25338
25339
|
(chunk, type) => {
|
|
25339
25340
|
options.onProgress?.("@content", chunk, { type: type || "chunk", artifactType: "GUIDE" });
|
|
25340
25341
|
}
|
|
@@ -25385,7 +25386,7 @@ ${buildHeadingDirective("HANDOUT", slcMarkdown, targetLang)}`;
|
|
|
25385
25386
|
const rawHandout = await runCurriculumAIInference(
|
|
25386
25387
|
[{ role: "user", content: handoutPrompt }],
|
|
25387
25388
|
satelliteContext,
|
|
25388
|
-
|
|
25389
|
+
runnerOptions,
|
|
25389
25390
|
(chunk, type) => {
|
|
25390
25391
|
options.onProgress?.("@content", chunk, { type: type || "chunk", artifactType: "HANDOUT" });
|
|
25391
25392
|
}
|
|
@@ -25440,7 +25441,7 @@ ${buildHeadingDirective("WKS", slcMarkdown, targetLang)}`;
|
|
|
25440
25441
|
const rawWks = await runCurriculumAIInference(
|
|
25441
25442
|
[{ role: "user", content: wksPrompt }],
|
|
25442
25443
|
satelliteContext,
|
|
25443
|
-
|
|
25444
|
+
runnerOptions,
|
|
25444
25445
|
(chunk, type) => {
|
|
25445
25446
|
options.onProgress?.("@content", chunk, { type: type || "chunk", artifactType: "WKS" });
|
|
25446
25447
|
}
|
|
@@ -25499,7 +25500,7 @@ ${buildHeadingDirective("CODE", slcMarkdown, targetLang)}`;
|
|
|
25499
25500
|
const rawCode = await runCurriculumAIInference(
|
|
25500
25501
|
[{ role: "user", content: codePrompt }],
|
|
25501
25502
|
satelliteContext,
|
|
25502
|
-
|
|
25503
|
+
runnerOptions,
|
|
25503
25504
|
(chunk, type) => {
|
|
25504
25505
|
options.onProgress?.("@activity", chunk, { type: type || "chunk", artifactType: "CODE" });
|
|
25505
25506
|
}
|
|
@@ -25557,7 +25558,7 @@ ${buildHeadingDirective("EXT", slcMarkdown, targetLang)}`;
|
|
|
25557
25558
|
const rawExt = await runCurriculumAIInference(
|
|
25558
25559
|
[{ role: "user", content: extPrompt }],
|
|
25559
25560
|
satelliteContext,
|
|
25560
|
-
|
|
25561
|
+
runnerOptions,
|
|
25561
25562
|
(chunk, type) => {
|
|
25562
25563
|
options.onProgress?.("@activity", chunk, { type: type || "chunk", artifactType: "EXT" });
|
|
25563
25564
|
}
|