@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.
Files changed (41) hide show
  1. package/dist/ai/index.cjs +10 -10
  2. package/dist/ai/index.cjs.map +1 -1
  3. package/dist/ai/index.d.cts +5 -5
  4. package/dist/ai/index.d.ts +5 -5
  5. package/dist/ai/index.mjs +10 -10
  6. package/dist/ai/index.mjs.map +1 -1
  7. package/dist/{index-BfDHBO7f.d.ts → index-B8lOdFuz.d.ts} +1 -1
  8. package/dist/{index-BEicVaQ9.d.cts → index-DhxvfPoW.d.cts} +1 -1
  9. package/dist/index.cjs +17 -16
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +6 -6
  12. package/dist/index.d.ts +6 -6
  13. package/dist/index.mjs +17 -16
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/media/index.cjs +4 -4
  16. package/dist/media/index.cjs.map +1 -1
  17. package/dist/media/index.d.cts +1 -1
  18. package/dist/media/index.d.ts +1 -1
  19. package/dist/media/index.mjs +4 -4
  20. package/dist/media/index.mjs.map +1 -1
  21. package/dist/{milestoneBundleGenerator-CbXhs1CP.d.ts → milestoneBundleGenerator-Bkba8OPG.d.ts} +1 -1
  22. package/dist/{milestoneBundleGenerator-DrBtHzBO.d.cts → milestoneBundleGenerator-CzSOeAzU.d.cts} +1 -1
  23. package/dist/pipeline/index.cjs +5 -5
  24. package/dist/pipeline/index.cjs.map +1 -1
  25. package/dist/pipeline/index.d.cts +3 -3
  26. package/dist/pipeline/index.d.ts +3 -3
  27. package/dist/pipeline/index.mjs +5 -5
  28. package/dist/pipeline/index.mjs.map +1 -1
  29. package/dist/{provider-factory-DH3udYlN.d.cts → provider-factory-DxzOVEmh.d.cts} +1 -1
  30. package/dist/{provider-factory-DH3udYlN.d.ts → provider-factory-DxzOVEmh.d.ts} +1 -1
  31. package/dist/storage/index.d.cts +2 -2
  32. package/dist/storage/index.d.ts +2 -2
  33. package/dist/{streamRunner-BTTzbb-l.d.cts → streamRunner-CcpmxOf1.d.cts} +1 -1
  34. package/dist/{streamRunner-BTTzbb-l.d.ts → streamRunner-CcpmxOf1.d.ts} +1 -1
  35. package/dist/workflow/index.cjs +7 -7
  36. package/dist/workflow/index.cjs.map +1 -1
  37. package/dist/workflow/index.d.cts +2 -2
  38. package/dist/workflow/index.d.ts +2 -2
  39. package/dist/workflow/index.mjs +7 -7
  40. package/dist/workflow/index.mjs.map +1 -1
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { CurriculumQualityReport, LessonPlan, ActivityLab, CodeLab, Handout, Worksheet, SlideDeck, TeacherGuide, Extension, MilestoneInput } from './schemas/index.js';
2
- import { M as ModelResolutionOptions } from './provider-factory-DH3udYlN.js';
2
+ import { M as ModelResolutionOptions } from './provider-factory-DxzOVEmh.js';
3
3
 
4
4
  interface AutoRepairOptions<T> {
5
5
  artifactType: string;
@@ -1,5 +1,5 @@
1
1
  import { CurriculumQualityReport, LessonPlan, ActivityLab, CodeLab, Handout, Worksheet, SlideDeck, TeacherGuide, Extension, MilestoneInput } from './schemas/index.cjs';
2
- import { M as ModelResolutionOptions } from './provider-factory-DH3udYlN.cjs';
2
+ import { M as ModelResolutionOptions } from './provider-factory-DxzOVEmh.cjs';
3
3
 
4
4
  interface AutoRepairOptions<T> {
5
5
  artifactType: string;
@@ -648,7 +648,7 @@ function isModelAllowed(model) {
648
648
  }
649
649
  function getDesignatedFallbackChain() {
650
650
  const rawProviders = resolveApiKey("FALLBACK_AI_PROVIDER") || resolveApiKey("FALLBACK_AI_PROVIDERS") || resolveApiKey("DEFAULT_AI_PROVIDER") || "nvidia,openrouter";
651
- 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";
651
+ 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";
652
652
  const providerList = rawProviders.split(",").map((p) => p.trim().toLowerCase()).filter((p) => p.length > 0 && isProviderEnabled(p));
653
653
  const modelList = rawModels.split(",").map((m) => m.trim()).filter((m) => m.length > 0 && isModelAllowed(m));
654
654
  const chain = [];
@@ -657,7 +657,7 @@ function getDesignatedFallbackChain() {
657
657
  if (provider === "nvidia") {
658
658
  providerModels = modelList.filter((m) => m.startsWith("nvidia/") || m.startsWith("meta/") || m.startsWith("mistralai/"));
659
659
  if (providerModels.length === 0) {
660
- providerModels = ["nvidia/nemotron-3-ultra-550b-a55b", "nvidia/nemotron-3.5-lightning-30b-a3b"];
660
+ providerModels = ["nvidia/nemotron-3-ultra-550b-a55b:free", "nvidia/nemotron-3.5-lightning-30b-a3b"];
661
661
  }
662
662
  } else if (provider === "openrouter") {
663
663
  providerModels = modelList.filter((m) => m.startsWith("@") || m.includes("/") || m.includes(":"));
@@ -693,12 +693,12 @@ function getDesignatedFallbackChain() {
693
693
  function getDesignatedFallbackConfig() {
694
694
  const chain = getDesignatedFallbackChain();
695
695
  if (chain.length > 0) return chain[0];
696
- return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b" };
696
+ return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b:free" };
697
697
  }
698
698
 
699
699
  // src/ai/provider-factory.ts
700
700
  var DEFAULT_MODELS = {
701
- nvidia: "nvidia/nemotron-3-ultra-550b-a55b",
701
+ nvidia: "nvidia/nemotron-3-ultra-550b-a55b:free",
702
702
  openrouter: "@preset/coding-free",
703
703
  alibaba: "qwen3.7-plus",
704
704
  dashscope: "qwen3.7-plus",
@@ -726,7 +726,7 @@ function getAIModel(options = {}) {
726
726
  apiKey,
727
727
  baseURL: options.baseURL || "https://integrate.api.nvidia.com/v1"
728
728
  });
729
- return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b");
729
+ return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b:free");
730
730
  }
731
731
  if (provider === "openrouter") {
732
732
  const apiKey = options.apiKey || process.env.OPENROUTER_API_KEY || process.env.OPENAI_API_KEY || "";