@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
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as ModelResolutionOptions } from '../provider-factory-
|
|
2
|
-
export { A as AIProviderName, N as NVIDIA_MODELS, g as getAIModel } from '../provider-factory-
|
|
1
|
+
import { M as ModelResolutionOptions } from '../provider-factory-DxzOVEmh.cjs';
|
|
2
|
+
export { A as AIProviderName, N as NVIDIA_MODELS, g as getAIModel } from '../provider-factory-DxzOVEmh.cjs';
|
|
3
3
|
import { MilestoneInput, LessonPlan, ActivityLab, ProjectGraph, CodeLab, Worksheet, Handout, SlideDeck, TeacherGuide, Extension, CurriculumQualityReport, ProjectInstruction, SelfLab, DiagnosticQuiz } from '../schemas/index.cjs';
|
|
4
4
|
import * as ai from 'ai';
|
|
5
|
-
import { C as ChatMessage, S as StreamRunnerOptions, c as ChunkType } from '../streamRunner-
|
|
6
|
-
export { F as FallbackTarget, e as extractThoughtAndContent, g as getDesignatedFallbackChain, b as getDesignatedFallbackConfig, a as isModelAllowed, i as isProviderEnabled, r as runCurriculumAIInference, s as streamCurriculumAIInference } from '../streamRunner-
|
|
5
|
+
import { C as ChatMessage, S as StreamRunnerOptions, c as ChunkType } from '../streamRunner-CcpmxOf1.cjs';
|
|
6
|
+
export { F as FallbackTarget, e as extractThoughtAndContent, g as getDesignatedFallbackChain, b as getDesignatedFallbackConfig, a as isModelAllowed, i as isProviderEnabled, r as runCurriculumAIInference, s as streamCurriculumAIInference } from '../streamRunner-CcpmxOf1.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
interface LessonPromptInput {
|
|
@@ -1142,7 +1142,7 @@ declare const packagerTools: {
|
|
|
1142
1142
|
* - OpenRouter / Google: google/gemini-3.7-flash (Opus-grade accuracy, 1M context)
|
|
1143
1143
|
* - DeepSeek: deepseek-v4-pro (Build 0813 - Deep CoT Reasoning)
|
|
1144
1144
|
* - Alibaba: qwen3.8-max (2.4T MoE Flagship)
|
|
1145
|
-
* - NVIDIA NIM: nvidia/nemotron-3-ultra-550b-a55b (Robust Free Fallback)
|
|
1145
|
+
* - NVIDIA NIM: nvidia/nemotron-3-ultra-550b-a55b:free (Robust Free Fallback)
|
|
1146
1146
|
*
|
|
1147
1147
|
* 2. Mid & Mid-High Production / Copilot (Tier 2 - Primary Economic):
|
|
1148
1148
|
* - DeepSeek: deepseek-v4-flash (Build 0731 - $0.22/1M, 1M context, 284B MoE)
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as ModelResolutionOptions } from '../provider-factory-
|
|
2
|
-
export { A as AIProviderName, N as NVIDIA_MODELS, g as getAIModel } from '../provider-factory-
|
|
1
|
+
import { M as ModelResolutionOptions } from '../provider-factory-DxzOVEmh.js';
|
|
2
|
+
export { A as AIProviderName, N as NVIDIA_MODELS, g as getAIModel } from '../provider-factory-DxzOVEmh.js';
|
|
3
3
|
import { MilestoneInput, LessonPlan, ActivityLab, ProjectGraph, CodeLab, Worksheet, Handout, SlideDeck, TeacherGuide, Extension, CurriculumQualityReport, ProjectInstruction, SelfLab, DiagnosticQuiz } from '../schemas/index.js';
|
|
4
4
|
import * as ai from 'ai';
|
|
5
|
-
import { C as ChatMessage, S as StreamRunnerOptions, c as ChunkType } from '../streamRunner-
|
|
6
|
-
export { F as FallbackTarget, e as extractThoughtAndContent, g as getDesignatedFallbackChain, b as getDesignatedFallbackConfig, a as isModelAllowed, i as isProviderEnabled, r as runCurriculumAIInference, s as streamCurriculumAIInference } from '../streamRunner-
|
|
5
|
+
import { C as ChatMessage, S as StreamRunnerOptions, c as ChunkType } from '../streamRunner-CcpmxOf1.js';
|
|
6
|
+
export { F as FallbackTarget, e as extractThoughtAndContent, g as getDesignatedFallbackChain, b as getDesignatedFallbackConfig, a as isModelAllowed, i as isProviderEnabled, r as runCurriculumAIInference, s as streamCurriculumAIInference } from '../streamRunner-CcpmxOf1.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
interface LessonPromptInput {
|
|
@@ -1142,7 +1142,7 @@ declare const packagerTools: {
|
|
|
1142
1142
|
* - OpenRouter / Google: google/gemini-3.7-flash (Opus-grade accuracy, 1M context)
|
|
1143
1143
|
* - DeepSeek: deepseek-v4-pro (Build 0813 - Deep CoT Reasoning)
|
|
1144
1144
|
* - Alibaba: qwen3.8-max (2.4T MoE Flagship)
|
|
1145
|
-
* - NVIDIA NIM: nvidia/nemotron-3-ultra-550b-a55b (Robust Free Fallback)
|
|
1145
|
+
* - NVIDIA NIM: nvidia/nemotron-3-ultra-550b-a55b:free (Robust Free Fallback)
|
|
1146
1146
|
*
|
|
1147
1147
|
* 2. Mid & Mid-High Production / Copilot (Tier 2 - Primary Economic):
|
|
1148
1148
|
* - DeepSeek: deepseek-v4-flash (Build 0731 - $0.22/1M, 1M context, 284B MoE)
|
package/dist/ai/index.mjs
CHANGED
|
@@ -168,7 +168,7 @@ function isModelAllowed(model) {
|
|
|
168
168
|
}
|
|
169
169
|
function getDesignatedFallbackChain() {
|
|
170
170
|
const rawProviders = resolveApiKey("FALLBACK_AI_PROVIDER") || resolveApiKey("FALLBACK_AI_PROVIDERS") || resolveApiKey("DEFAULT_AI_PROVIDER") || "nvidia,openrouter";
|
|
171
|
-
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";
|
|
171
|
+
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";
|
|
172
172
|
const providerList = rawProviders.split(",").map((p) => p.trim().toLowerCase()).filter((p) => p.length > 0 && isProviderEnabled(p));
|
|
173
173
|
const modelList = rawModels.split(",").map((m) => m.trim()).filter((m) => m.length > 0 && isModelAllowed(m));
|
|
174
174
|
const chain = [];
|
|
@@ -177,7 +177,7 @@ function getDesignatedFallbackChain() {
|
|
|
177
177
|
if (provider === "nvidia") {
|
|
178
178
|
providerModels = modelList.filter((m) => m.startsWith("nvidia/") || m.startsWith("meta/") || m.startsWith("mistralai/"));
|
|
179
179
|
if (providerModels.length === 0) {
|
|
180
|
-
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
180
|
+
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b:free", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
181
181
|
}
|
|
182
182
|
} else if (provider === "openrouter") {
|
|
183
183
|
providerModels = modelList.filter((m) => m.startsWith("@") || m.includes("/") || m.includes(":"));
|
|
@@ -213,7 +213,7 @@ function getDesignatedFallbackChain() {
|
|
|
213
213
|
function getDesignatedFallbackConfig() {
|
|
214
214
|
const chain = getDesignatedFallbackChain();
|
|
215
215
|
if (chain.length > 0) return chain[0];
|
|
216
|
-
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b" };
|
|
216
|
+
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b:free" };
|
|
217
217
|
}
|
|
218
218
|
function extractThoughtAndContent(rawText) {
|
|
219
219
|
let text = rawText || "";
|
|
@@ -444,8 +444,8 @@ Guidelines:
|
|
|
444
444
|
const isNvidiaPreferred = requestedModel.startsWith("nvidia/") || Boolean(nvidiaKey && !openrouterKey) && isProviderEnabled("nvidia");
|
|
445
445
|
if (nvidiaKey && isProviderEnabled("nvidia")) {
|
|
446
446
|
const candidateNemotronModels = [
|
|
447
|
-
requestedModel.startsWith("nvidia/") ? requestedModel : "nvidia/nemotron-3-ultra-550b-a55b",
|
|
448
|
-
"nvidia/nemotron-3-ultra-550b-a55b",
|
|
447
|
+
requestedModel.startsWith("nvidia/") ? requestedModel : "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
448
|
+
"nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
449
449
|
"nvidia/nemotron-3.5-lightning-30b-a3b",
|
|
450
450
|
"nvidia/nemotron-3-super-120b-a12b",
|
|
451
451
|
"nvidia/llama-3.1-nemotron-70b-instruct"
|
|
@@ -804,7 +804,7 @@ async function runCurriculumAIInference(messages, projectContext, options = {},
|
|
|
804
804
|
|
|
805
805
|
// src/ai/provider-factory.ts
|
|
806
806
|
var DEFAULT_MODELS = {
|
|
807
|
-
nvidia: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
807
|
+
nvidia: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
808
808
|
openrouter: "@preset/coding-free",
|
|
809
809
|
alibaba: "qwen3.7-plus",
|
|
810
810
|
dashscope: "qwen3.7-plus",
|
|
@@ -815,7 +815,7 @@ var DEFAULT_MODELS = {
|
|
|
815
815
|
};
|
|
816
816
|
var NVIDIA_MODELS = {
|
|
817
817
|
codingFast: "nvidia/nemotron-3.5-lightning-30b-a3b",
|
|
818
|
-
reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
818
|
+
reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
819
819
|
superMoE: "nvidia/nemotron-3-super-120b-a12b",
|
|
820
820
|
llamaNemotron: "nvidia/llama-3.1-nemotron-70b-instruct",
|
|
821
821
|
translation: "nvidia/riva-translate-4b-instruct-v2",
|
|
@@ -841,7 +841,7 @@ function getAIModel(options = {}) {
|
|
|
841
841
|
apiKey,
|
|
842
842
|
baseURL: options.baseURL || "https://integrate.api.nvidia.com/v1"
|
|
843
843
|
});
|
|
844
|
-
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b");
|
|
844
|
+
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b:free");
|
|
845
845
|
}
|
|
846
846
|
if (provider === "openrouter") {
|
|
847
847
|
const apiKey = options.apiKey || process.env.OPENROUTER_API_KEY || process.env.OPENAI_API_KEY || "";
|
|
@@ -4328,7 +4328,7 @@ var ModelPolicyResolver = class {
|
|
|
4328
4328
|
{
|
|
4329
4329
|
provider: "nvidia",
|
|
4330
4330
|
providerLabel: "NVIDIA NIM API",
|
|
4331
|
-
modelName: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
4331
|
+
modelName: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
4332
4332
|
maxTokens: 32768,
|
|
4333
4333
|
temperature: 0.15,
|
|
4334
4334
|
reasoningEffort: "high",
|
|
@@ -4753,7 +4753,7 @@ var PROVIDER_ENDPOINTS = {
|
|
|
4753
4753
|
alibaba: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
4754
4754
|
nvidia: "https://integrate.api.nvidia.com/v1/chat/completions"
|
|
4755
4755
|
};
|
|
4756
|
-
var NVIDIA_DEFAULT_MODEL = "nvidia/nemotron-3-ultra-550b-a55b";
|
|
4756
|
+
var NVIDIA_DEFAULT_MODEL = "nvidia/nemotron-3-ultra-550b-a55b:free";
|
|
4757
4757
|
function resolveProviderRoute(options) {
|
|
4758
4758
|
const openrouterKey = options.openrouterKey?.trim() || (typeof process !== "undefined" ? process.env.OPENROUTER_API_KEY || "" : "");
|
|
4759
4759
|
const deepseekKey = options.deepseekKey?.trim() || (typeof process !== "undefined" ? process.env.DEEPSEEK_API_KEY || "" : "");
|