@thanh01.pmt/curriculum-kit 1.0.9 → 1.0.10
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 +10 -10
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +5 -5
- package/dist/ai/index.d.ts +5 -5
- package/dist/ai/index.mjs +10 -10
- package/dist/ai/index.mjs.map +1 -1
- package/dist/{index-BfDHBO7f.d.ts → index-B8lOdFuz.d.ts} +1 -1
- package/dist/{index-BEicVaQ9.d.cts → index-DhxvfPoW.d.cts} +1 -1
- package/dist/index.cjs +17 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +17 -16
- package/dist/index.mjs.map +1 -1
- package/dist/media/index.cjs +4 -4
- package/dist/media/index.cjs.map +1 -1
- package/dist/media/index.d.cts +1 -1
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.mjs +4 -4
- package/dist/media/index.mjs.map +1 -1
- package/dist/{milestoneBundleGenerator-CbXhs1CP.d.ts → milestoneBundleGenerator-Bkba8OPG.d.ts} +1 -1
- package/dist/{milestoneBundleGenerator-DrBtHzBO.d.cts → milestoneBundleGenerator-CzSOeAzU.d.cts} +1 -1
- package/dist/pipeline/index.cjs +5 -5
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.d.cts +3 -3
- package/dist/pipeline/index.d.ts +3 -3
- package/dist/pipeline/index.mjs +5 -5
- package/dist/pipeline/index.mjs.map +1 -1
- package/dist/{provider-factory-DH3udYlN.d.cts → provider-factory-DxzOVEmh.d.cts} +1 -1
- package/dist/{provider-factory-DH3udYlN.d.ts → provider-factory-DxzOVEmh.d.ts} +1 -1
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/{streamRunner-BTTzbb-l.d.cts → streamRunner-CcpmxOf1.d.cts} +1 -1
- package/dist/{streamRunner-BTTzbb-l.d.ts → streamRunner-CcpmxOf1.d.ts} +1 -1
- package/dist/workflow/index.cjs +7 -7
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.d.cts +2 -2
- package/dist/workflow/index.d.ts +2 -2
- package/dist/workflow/index.mjs +7 -7
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MilestoneInput, LessonPlan, CurriculumQualityReport, ActivityLab, CodeLab, SelfLab, DiagnosticQuiz, SlideDeck, Handout, Worksheet, TeacherGuide, Extension, ProjectRoadmap } from './schemas/index.js';
|
|
2
|
-
import { M as ModelResolutionOptions } from './provider-factory-
|
|
2
|
+
import { M as ModelResolutionOptions } from './provider-factory-DxzOVEmh.js';
|
|
3
3
|
import { G as GitPublishOptions, a as GitPublishResult, S as SupabasePublishOptions, b as SupabasePublishResult } from './supabasePublisher-C627qXFT.js';
|
|
4
4
|
import * as workflow from 'workflow';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MilestoneInput, LessonPlan, CurriculumQualityReport, ActivityLab, CodeLab, SelfLab, DiagnosticQuiz, SlideDeck, Handout, Worksheet, TeacherGuide, Extension, ProjectRoadmap } from './schemas/index.cjs';
|
|
2
|
-
import { M as ModelResolutionOptions } from './provider-factory-
|
|
2
|
+
import { M as ModelResolutionOptions } from './provider-factory-DxzOVEmh.cjs';
|
|
3
3
|
import { G as GitPublishOptions, a as GitPublishResult, S as SupabasePublishOptions, b as SupabasePublishResult } from './supabasePublisher-C627qXFT.cjs';
|
|
4
4
|
import * as workflow from 'workflow';
|
|
5
5
|
import { z } from 'zod';
|
package/dist/index.cjs
CHANGED
|
@@ -212,7 +212,7 @@ function isModelAllowed(model) {
|
|
|
212
212
|
}
|
|
213
213
|
function getDesignatedFallbackChain() {
|
|
214
214
|
const rawProviders = resolveApiKey("FALLBACK_AI_PROVIDER") || resolveApiKey("FALLBACK_AI_PROVIDERS") || resolveApiKey("DEFAULT_AI_PROVIDER") || "nvidia,openrouter";
|
|
215
|
-
const rawModels = resolveApiKey("FALLBACK_AI_MODEL") || resolveApiKey("FALLBACK_AI_MODELS") || resolveApiKey("DEFAULT_AI_MODEL") || "nvidia/nemotron-3-ultra-550b-a55b,@preset/coding-free,deepseek/deepseek-chat:free";
|
|
215
|
+
const rawModels = resolveApiKey("FALLBACK_AI_MODEL") || resolveApiKey("FALLBACK_AI_MODELS") || resolveApiKey("DEFAULT_AI_MODEL") || "nvidia/nemotron-3-ultra-550b-a55b:free,@preset/coding-free,deepseek/deepseek-chat:free";
|
|
216
216
|
const providerList = rawProviders.split(",").map((p) => p.trim().toLowerCase()).filter((p) => p.length > 0 && isProviderEnabled(p));
|
|
217
217
|
const modelList = rawModels.split(",").map((m) => m.trim()).filter((m) => m.length > 0 && isModelAllowed(m));
|
|
218
218
|
const chain = [];
|
|
@@ -221,7 +221,7 @@ function getDesignatedFallbackChain() {
|
|
|
221
221
|
if (provider === "nvidia") {
|
|
222
222
|
providerModels = modelList.filter((m) => m.startsWith("nvidia/") || m.startsWith("meta/") || m.startsWith("mistralai/"));
|
|
223
223
|
if (providerModels.length === 0) {
|
|
224
|
-
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
224
|
+
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b:free", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
225
225
|
}
|
|
226
226
|
} else if (provider === "openrouter") {
|
|
227
227
|
providerModels = modelList.filter((m) => m.startsWith("@") || m.includes("/") || m.includes(":"));
|
|
@@ -257,7 +257,7 @@ function getDesignatedFallbackChain() {
|
|
|
257
257
|
function getDesignatedFallbackConfig() {
|
|
258
258
|
const chain = getDesignatedFallbackChain();
|
|
259
259
|
if (chain.length > 0) return chain[0];
|
|
260
|
-
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b" };
|
|
260
|
+
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b:free" };
|
|
261
261
|
}
|
|
262
262
|
function extractThoughtAndContent(rawText) {
|
|
263
263
|
let text = rawText || "";
|
|
@@ -488,8 +488,8 @@ Guidelines:
|
|
|
488
488
|
const isNvidiaPreferred = requestedModel.startsWith("nvidia/") || Boolean(nvidiaKey && !openrouterKey) && isProviderEnabled("nvidia");
|
|
489
489
|
if (nvidiaKey && isProviderEnabled("nvidia")) {
|
|
490
490
|
const candidateNemotronModels = [
|
|
491
|
-
requestedModel.startsWith("nvidia/") ? requestedModel : "nvidia/nemotron-3-ultra-550b-a55b",
|
|
492
|
-
"nvidia/nemotron-3-ultra-550b-a55b",
|
|
491
|
+
requestedModel.startsWith("nvidia/") ? requestedModel : "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
492
|
+
"nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
493
493
|
"nvidia/nemotron-3.5-lightning-30b-a3b",
|
|
494
494
|
"nvidia/nemotron-3-super-120b-a12b",
|
|
495
495
|
"nvidia/llama-3.1-nemotron-70b-instruct"
|
|
@@ -2649,7 +2649,7 @@ var RoadmapInputSchema = zod.z.object({
|
|
|
2649
2649
|
// src/ai/provider-factory.ts
|
|
2650
2650
|
init_streamRunner();
|
|
2651
2651
|
var DEFAULT_MODELS = {
|
|
2652
|
-
nvidia: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
2652
|
+
nvidia: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
2653
2653
|
openrouter: "@preset/coding-free",
|
|
2654
2654
|
alibaba: "qwen3.7-plus",
|
|
2655
2655
|
dashscope: "qwen3.7-plus",
|
|
@@ -2660,7 +2660,7 @@ var DEFAULT_MODELS = {
|
|
|
2660
2660
|
};
|
|
2661
2661
|
var NVIDIA_MODELS = {
|
|
2662
2662
|
codingFast: "nvidia/nemotron-3.5-lightning-30b-a3b",
|
|
2663
|
-
reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
2663
|
+
reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
2664
2664
|
superMoE: "nvidia/nemotron-3-super-120b-a12b",
|
|
2665
2665
|
llamaNemotron: "nvidia/llama-3.1-nemotron-70b-instruct",
|
|
2666
2666
|
translation: "nvidia/riva-translate-4b-instruct-v2",
|
|
@@ -2686,7 +2686,7 @@ function getAIModel(options = {}) {
|
|
|
2686
2686
|
apiKey,
|
|
2687
2687
|
baseURL: options.baseURL || "https://integrate.api.nvidia.com/v1"
|
|
2688
2688
|
});
|
|
2689
|
-
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b");
|
|
2689
|
+
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b:free");
|
|
2690
2690
|
}
|
|
2691
2691
|
if (provider === "openrouter") {
|
|
2692
2692
|
const apiKey = options.apiKey || process.env.OPENROUTER_API_KEY || process.env.OPENAI_API_KEY || "";
|
|
@@ -6351,7 +6351,7 @@ var ModelPolicyResolver = class {
|
|
|
6351
6351
|
{
|
|
6352
6352
|
provider: "nvidia",
|
|
6353
6353
|
providerLabel: "NVIDIA NIM API",
|
|
6354
|
-
modelName: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
6354
|
+
modelName: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
6355
6355
|
maxTokens: 32768,
|
|
6356
6356
|
temperature: 0.15,
|
|
6357
6357
|
reasoningEffort: "high",
|
|
@@ -6776,7 +6776,7 @@ var PROVIDER_ENDPOINTS = {
|
|
|
6776
6776
|
alibaba: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
6777
6777
|
nvidia: "https://integrate.api.nvidia.com/v1/chat/completions"
|
|
6778
6778
|
};
|
|
6779
|
-
var NVIDIA_DEFAULT_MODEL = "nvidia/nemotron-3-ultra-550b-a55b";
|
|
6779
|
+
var NVIDIA_DEFAULT_MODEL = "nvidia/nemotron-3-ultra-550b-a55b:free";
|
|
6780
6780
|
function resolveProviderRoute(options) {
|
|
6781
6781
|
const openrouterKey = options.openrouterKey?.trim() || (typeof process !== "undefined" ? process.env.OPENROUTER_API_KEY || "" : "");
|
|
6782
6782
|
const deepseekKey = options.deepseekKey?.trim() || (typeof process !== "undefined" ? process.env.DEEPSEEK_API_KEY || "" : "");
|
|
@@ -13573,7 +13573,7 @@ async function streamLLMWithFallback(systemPrompt, userPrompt, apiKeys = {}, onC
|
|
|
13573
13573
|
}
|
|
13574
13574
|
if (nvidiaKey && isProviderEnabled("nvidia")) {
|
|
13575
13575
|
const nemotronModels = [
|
|
13576
|
-
"nvidia/nemotron-3-ultra-550b-a55b",
|
|
13576
|
+
"nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
13577
13577
|
"nvidia/nemotron-3.5-lightning-30b-a3b",
|
|
13578
13578
|
"nvidia/nemotron-3-super-120b-a12b",
|
|
13579
13579
|
"nvidia/llama-3.1-nemotron-70b-instruct"
|
|
@@ -13750,11 +13750,12 @@ ${targetLayer === 1 ? `
|
|
|
13750
13750
|
- Field 5 (id: 'entryBridge', type: 'single_choice'): Recommended prerequisite baseline & bridge mechanism for ${targetAge}.
|
|
13751
13751
|
` : targetLayer === 2 ? `
|
|
13752
13752
|
- Layer 2 MUST focus on Teaching Framework, Persona & Lab Logistics (Methodology & Content Style baseline).
|
|
13753
|
-
- Field 1 (id: '
|
|
13754
|
-
- Field 2 (id: '
|
|
13755
|
-
- Field 3 (id: '
|
|
13756
|
-
- Field 4 (id: '
|
|
13757
|
-
- Field 5 (id: '
|
|
13753
|
+
- Field 1 (id: 'lessonPacingModel', type: 'single_choice'): Lesson pacing model (e.g. 1 Session = 1 Independent Lesson vs Multi-session Thematic Units vs Hybrid Modular) with pedagogical pros/cons matching course duration.
|
|
13754
|
+
- Field 2 (id: 'pedagogy', type: 'single_choice'): Core pedagogical model (PBL, EDP, 5E, Hybrid 5E+PBL) with pros/cons analyzed in descriptions.
|
|
13755
|
+
- Field 3 (id: 'voiceAndTone', type: 'single_choice'): Persona & Teaching Voice (CONTENT_STYLE_GUIDE: Encouraging Mentor vs Industry Engineer vs Storyteller Guide vs Socratic Facilitator).
|
|
13756
|
+
- Field 4 (id: 'classDynamic', type: 'single_choice'): Class structure & Kit ratio (1:1 Individual, 2:1 Pair Programming, 3-4 Project Team).
|
|
13757
|
+
- Field 5 (id: 'hardwareDeployment', type: 'single_choice'): Lab logistics deployment (Lab kits provided, BYOD, Cloud simulator, Take-home kit).
|
|
13758
|
+
- Field 6 (id: 'teacherRole', type: 'single_choice'): Teacher role and instructional modality (Teacher-led step-by-step vs Facilitator vs Mentor).
|
|
13758
13759
|
` : `
|
|
13759
13760
|
- Layer 3 MUST focus on Concrete Execution, Art Direction & Packaging (Now that user confirmed Pedagogy '${pedagogy}').
|
|
13760
13761
|
- Field 1 (id: 'capstoneTheme', type: 'textarea'): Detailed Capstone product theme designed strictly around confirmed '${pedagogy}' model and '${exitVision}'.
|