@thanh01.pmt/curriculum-kit 1.0.8 → 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 +36 -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 +36 -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 +43 -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 +43 -16
- package/dist/index.mjs.map +1 -1
- package/dist/media/index.cjs +30 -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 +30 -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.ts → provider-factory-DxzOVEmh.d.cts} +1 -1
- package/dist/{provider-factory-DH3udYlN.d.cts → 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-C7j5LKon.d.cts → streamRunner-CcpmxOf1.d.cts} +20 -1
- package/dist/{streamRunner-C7j5LKon.d.ts → streamRunner-CcpmxOf1.d.ts} +20 -1
- package/dist/workflow/index.cjs +33 -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 +33 -7
- package/dist/workflow/index.mjs.map +1 -1
- package/package.json +22 -21
- package/LICENSE +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LessonPlan, ActivityLab, CodeLab, Handout, ProjectInstruction, SelfLab, DiagnosticQuiz, RoadmapInput, ProjectGraph, MilestoneInput, SelfPacedBundle } from '../schemas/index.cjs';
|
|
2
|
-
import { B as BundleTier, M as MilestoneCurriculumBundle, a as AutoRepairResult } from '../milestoneBundleGenerator-
|
|
3
|
-
export { A as AutoRepairOptions, G as GenerateMilestoneBundleOptions, g as generateMilestoneCurriculumBundle, w as withAutoRepair } from '../milestoneBundleGenerator-
|
|
4
|
-
import { M as ModelResolutionOptions } from '../provider-factory-
|
|
2
|
+
import { B as BundleTier, M as MilestoneCurriculumBundle, a as AutoRepairResult } from '../milestoneBundleGenerator-CzSOeAzU.cjs';
|
|
3
|
+
export { A as AutoRepairOptions, G as GenerateMilestoneBundleOptions, g as generateMilestoneCurriculumBundle, w as withAutoRepair } from '../milestoneBundleGenerator-CzSOeAzU.cjs';
|
|
4
|
+
import { M as ModelResolutionOptions } from '../provider-factory-DxzOVEmh.cjs';
|
|
5
5
|
import { I as ICurriculumStorage, P as ProjectStatusReport } from '../types-BUJGYiep.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import 'ai';
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LessonPlan, ActivityLab, CodeLab, Handout, ProjectInstruction, SelfLab, DiagnosticQuiz, RoadmapInput, ProjectGraph, MilestoneInput, SelfPacedBundle } from '../schemas/index.js';
|
|
2
|
-
import { B as BundleTier, M as MilestoneCurriculumBundle, a as AutoRepairResult } from '../milestoneBundleGenerator-
|
|
3
|
-
export { A as AutoRepairOptions, G as GenerateMilestoneBundleOptions, g as generateMilestoneCurriculumBundle, w as withAutoRepair } from '../milestoneBundleGenerator-
|
|
4
|
-
import { M as ModelResolutionOptions } from '../provider-factory-
|
|
2
|
+
import { B as BundleTier, M as MilestoneCurriculumBundle, a as AutoRepairResult } from '../milestoneBundleGenerator-Bkba8OPG.js';
|
|
3
|
+
export { A as AutoRepairOptions, G as GenerateMilestoneBundleOptions, g as generateMilestoneCurriculumBundle, w as withAutoRepair } from '../milestoneBundleGenerator-Bkba8OPG.js';
|
|
4
|
+
import { M as ModelResolutionOptions } from '../provider-factory-DxzOVEmh.js';
|
|
5
5
|
import { I as ICurriculumStorage, P as ProjectStatusReport } from '../types-BUJGYiep.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import 'ai';
|
package/dist/pipeline/index.mjs
CHANGED
|
@@ -639,7 +639,7 @@ function isModelAllowed(model) {
|
|
|
639
639
|
}
|
|
640
640
|
function getDesignatedFallbackChain() {
|
|
641
641
|
const rawProviders = resolveApiKey("FALLBACK_AI_PROVIDER") || resolveApiKey("FALLBACK_AI_PROVIDERS") || resolveApiKey("DEFAULT_AI_PROVIDER") || "nvidia,openrouter";
|
|
642
|
-
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";
|
|
642
|
+
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";
|
|
643
643
|
const providerList = rawProviders.split(",").map((p) => p.trim().toLowerCase()).filter((p) => p.length > 0 && isProviderEnabled(p));
|
|
644
644
|
const modelList = rawModels.split(",").map((m) => m.trim()).filter((m) => m.length > 0 && isModelAllowed(m));
|
|
645
645
|
const chain = [];
|
|
@@ -648,7 +648,7 @@ function getDesignatedFallbackChain() {
|
|
|
648
648
|
if (provider === "nvidia") {
|
|
649
649
|
providerModels = modelList.filter((m) => m.startsWith("nvidia/") || m.startsWith("meta/") || m.startsWith("mistralai/"));
|
|
650
650
|
if (providerModels.length === 0) {
|
|
651
|
-
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
651
|
+
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b:free", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
652
652
|
}
|
|
653
653
|
} else if (provider === "openrouter") {
|
|
654
654
|
providerModels = modelList.filter((m) => m.startsWith("@") || m.includes("/") || m.includes(":"));
|
|
@@ -684,12 +684,12 @@ function getDesignatedFallbackChain() {
|
|
|
684
684
|
function getDesignatedFallbackConfig() {
|
|
685
685
|
const chain = getDesignatedFallbackChain();
|
|
686
686
|
if (chain.length > 0) return chain[0];
|
|
687
|
-
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b" };
|
|
687
|
+
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b:free" };
|
|
688
688
|
}
|
|
689
689
|
|
|
690
690
|
// src/ai/provider-factory.ts
|
|
691
691
|
var DEFAULT_MODELS = {
|
|
692
|
-
nvidia: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
692
|
+
nvidia: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
693
693
|
openrouter: "@preset/coding-free",
|
|
694
694
|
alibaba: "qwen3.7-plus",
|
|
695
695
|
dashscope: "qwen3.7-plus",
|
|
@@ -717,7 +717,7 @@ function getAIModel(options = {}) {
|
|
|
717
717
|
apiKey,
|
|
718
718
|
baseURL: options.baseURL || "https://integrate.api.nvidia.com/v1"
|
|
719
719
|
});
|
|
720
|
-
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b");
|
|
720
|
+
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b:free");
|
|
721
721
|
}
|
|
722
722
|
if (provider === "openrouter") {
|
|
723
723
|
const apiKey = options.apiKey || process.env.OPENROUTER_API_KEY || process.env.OPENAI_API_KEY || "";
|