@thanh01.pmt/curriculum-kit 1.0.0 → 1.0.1
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -379,6 +379,8 @@ interface LayerPrefillOptions {
|
|
|
379
379
|
accumulatedData?: Record<string, any>;
|
|
380
380
|
apiKeys?: Record<string, string>;
|
|
381
381
|
liveSearchConfig?: Record<string, boolean>;
|
|
382
|
+
/** Target language for pre-filled wizard values: 'vi' | 'en' (default: 'vi'). */
|
|
383
|
+
language?: string;
|
|
382
384
|
stream?: boolean;
|
|
383
385
|
}
|
|
384
386
|
interface PreliminaryResearchResult {
|
package/dist/index.d.ts
CHANGED
|
@@ -379,6 +379,8 @@ interface LayerPrefillOptions {
|
|
|
379
379
|
accumulatedData?: Record<string, any>;
|
|
380
380
|
apiKeys?: Record<string, string>;
|
|
381
381
|
liveSearchConfig?: Record<string, boolean>;
|
|
382
|
+
/** Target language for pre-filled wizard values: 'vi' | 'en' (default: 'vi'). */
|
|
383
|
+
language?: string;
|
|
382
384
|
stream?: boolean;
|
|
383
385
|
}
|
|
384
386
|
interface PreliminaryResearchResult {
|
package/dist/index.mjs
CHANGED
|
@@ -11683,6 +11683,9 @@ async function streamLayerPrefillWithFallback(options, onChunk) {
|
|
|
11683
11683
|
budgetOrExistingSpecs = "",
|
|
11684
11684
|
cognitiveScaffolding = ""
|
|
11685
11685
|
} = accumulatedData;
|
|
11686
|
+
const language = typeof options.language === "string" && options.language ? options.language : typeof accumulatedData.language === "string" && accumulatedData.language ? accumulatedData.language : "vi";
|
|
11687
|
+
const textLangMandate = language === "vi" ? "natural, fluent Vietnamese (Ti\u1EBFng Vi\u1EC7t)" : language === "en" ? "natural, fluent English" : `natural, fluent ${language}`;
|
|
11688
|
+
const choiceLangMandate = language === "vi" ? "in Vietnamese" : language === "en" ? "in English" : `in ${language}`;
|
|
11686
11689
|
const systemPrompt = `You are @analyst, a Senior Curriculum Architect operating under International Curriculum Standards (UbD, Cognitive Load Theory, Bruner Spiral, BSCS 5E).
|
|
11687
11690
|
STANDARDS POLICY: Any academicBenchmark value you propose MUST be a framework ID from the org's Standards Registry (e.g. 'csta-k12-2017', 'gdpt-2018-tin-hoc'). NEVER name-drop a framework that is not in the registry \u2014 the generation pipeline grounds lessons with VERBATIM statements loaded from the registry by this ID.
|
|
11688
11691
|
Your task is to generate PROACTIVE HIGH-FIDELITY PRE-FILLED values for Layer ${targetLayer} in a 4-Layer Concentric Curriculum Creation Wizard.
|
|
@@ -11718,8 +11721,8 @@ ${targetLayer === 1 ? `
|
|
|
11718
11721
|
- Field 7 (id: 'assessmentStrategy', type: 'single_choice'): Grading weights (e.g. 40% Formative Process + 60% Capstone Rubric).
|
|
11719
11722
|
`}
|
|
11720
11723
|
|
|
11721
|
-
- EVERY text/textarea field MUST have a complete, professional, ready-to-use pre-filled text in
|
|
11722
|
-
- EVERY choice field MUST have realistic concrete options
|
|
11724
|
+
- EVERY text/textarea field MUST have a complete, professional, ready-to-use pre-filled text in ${textLangMandate} adhering strictly to standard pedagogical terminology. NO placeholders, NO empty strings.
|
|
11725
|
+
- EVERY choice field MUST have realistic concrete options ${choiceLangMandate} with EXACTLY ONE recommended option (selected: true).
|
|
11723
11726
|
|
|
11724
11727
|
RETURN STRICT VALID JSON ONLY adhering exactly to this format:
|
|
11725
11728
|
{
|