@thanh01.pmt/curriculum-kit 1.0.9 → 1.0.11
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 +56 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.mjs +56 -27
- 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
|
@@ -9,7 +9,7 @@ interface ModelResolutionOptions {
|
|
|
9
9
|
}
|
|
10
10
|
declare const NVIDIA_MODELS: {
|
|
11
11
|
readonly codingFast: "nvidia/nemotron-3.5-lightning-30b-a3b";
|
|
12
|
-
readonly reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b";
|
|
12
|
+
readonly reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b:free";
|
|
13
13
|
readonly superMoE: "nvidia/nemotron-3-super-120b-a12b";
|
|
14
14
|
readonly llamaNemotron: "nvidia/llama-3.1-nemotron-70b-instruct";
|
|
15
15
|
readonly translation: "nvidia/riva-translate-4b-instruct-v2";
|
|
@@ -9,7 +9,7 @@ interface ModelResolutionOptions {
|
|
|
9
9
|
}
|
|
10
10
|
declare const NVIDIA_MODELS: {
|
|
11
11
|
readonly codingFast: "nvidia/nemotron-3.5-lightning-30b-a3b";
|
|
12
|
-
readonly reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b";
|
|
12
|
+
readonly reasoningUltra: "nvidia/nemotron-3-ultra-550b-a55b:free";
|
|
13
13
|
readonly superMoE: "nvidia/nemotron-3-super-120b-a12b";
|
|
14
14
|
readonly llamaNemotron: "nvidia/llama-3.1-nemotron-70b-instruct";
|
|
15
15
|
readonly translation: "nvidia/riva-translate-4b-instruct-v2";
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { I as ICurriculumStorage, a as SotDocument, L as LessonArtifactSummary, P as ProjectStatusReport, c as PipelineState, b as ArtifactLifecycleInfo } from '../types-BUJGYiep.cjs';
|
|
2
2
|
export { A as ArtifactLifecycleState, Q as QualityAuditReport, R as ReviewRecord, S as SmartResumeContext, T as TaskLifecycleState } from '../types-BUJGYiep.cjs';
|
|
3
3
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
4
|
-
import { M as MilestoneCurriculumBundle } from '../milestoneBundleGenerator-
|
|
4
|
+
import { M as MilestoneCurriculumBundle } from '../milestoneBundleGenerator-CzSOeAzU.cjs';
|
|
5
5
|
import '../schemas/index.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../provider-factory-
|
|
7
|
+
import '../provider-factory-DxzOVEmh.cjs';
|
|
8
8
|
import 'ai';
|
|
9
9
|
|
|
10
10
|
declare function computeContentHash(content: string): string;
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { I as ICurriculumStorage, a as SotDocument, L as LessonArtifactSummary, P as ProjectStatusReport, c as PipelineState, b as ArtifactLifecycleInfo } from '../types-BUJGYiep.js';
|
|
2
2
|
export { A as ArtifactLifecycleState, Q as QualityAuditReport, R as ReviewRecord, S as SmartResumeContext, T as TaskLifecycleState } from '../types-BUJGYiep.js';
|
|
3
3
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
4
|
-
import { M as MilestoneCurriculumBundle } from '../milestoneBundleGenerator-
|
|
4
|
+
import { M as MilestoneCurriculumBundle } from '../milestoneBundleGenerator-Bkba8OPG.js';
|
|
5
5
|
import '../schemas/index.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../provider-factory-
|
|
7
|
+
import '../provider-factory-DxzOVEmh.js';
|
|
8
8
|
import 'ai';
|
|
9
9
|
|
|
10
10
|
declare function computeContentHash(content: string): string;
|
|
@@ -55,7 +55,7 @@ interface FallbackTarget {
|
|
|
55
55
|
* Resolves the designated last-resort fallback chain from environment variables.
|
|
56
56
|
* Comma-separated lists are parsed in left-to-right priority order:
|
|
57
57
|
* - FALLBACK_AI_PROVIDER=nvidia,openrouter (Must be enabled / in ALLOWED_AI_PROVIDERS)
|
|
58
|
-
* - FALLBACK_AI_MODEL=nvidia/nemotron-3-ultra-550b-a55b,@preset/coding-free,deepseek/deepseek-chat:free
|
|
58
|
+
* - FALLBACK_AI_MODEL=nvidia/nemotron-3-ultra-550b-a55b:free,@preset/coding-free,deepseek/deepseek-chat:free
|
|
59
59
|
*/
|
|
60
60
|
declare function getDesignatedFallbackChain(): FallbackTarget[];
|
|
61
61
|
declare function getDesignatedFallbackConfig(): FallbackTarget;
|
|
@@ -55,7 +55,7 @@ interface FallbackTarget {
|
|
|
55
55
|
* Resolves the designated last-resort fallback chain from environment variables.
|
|
56
56
|
* Comma-separated lists are parsed in left-to-right priority order:
|
|
57
57
|
* - FALLBACK_AI_PROVIDER=nvidia,openrouter (Must be enabled / in ALLOWED_AI_PROVIDERS)
|
|
58
|
-
* - FALLBACK_AI_MODEL=nvidia/nemotron-3-ultra-550b-a55b,@preset/coding-free,deepseek/deepseek-chat:free
|
|
58
|
+
* - FALLBACK_AI_MODEL=nvidia/nemotron-3-ultra-550b-a55b:free,@preset/coding-free,deepseek/deepseek-chat:free
|
|
59
59
|
*/
|
|
60
60
|
declare function getDesignatedFallbackChain(): FallbackTarget[];
|
|
61
61
|
declare function getDesignatedFallbackConfig(): FallbackTarget;
|
package/dist/workflow/index.cjs
CHANGED
|
@@ -191,7 +191,7 @@ function isModelAllowed(model) {
|
|
|
191
191
|
}
|
|
192
192
|
function getDesignatedFallbackChain() {
|
|
193
193
|
const rawProviders = resolveApiKey("FALLBACK_AI_PROVIDER") || resolveApiKey("FALLBACK_AI_PROVIDERS") || resolveApiKey("DEFAULT_AI_PROVIDER") || "nvidia,openrouter";
|
|
194
|
-
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";
|
|
194
|
+
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";
|
|
195
195
|
const providerList = rawProviders.split(",").map((p) => p.trim().toLowerCase()).filter((p) => p.length > 0 && isProviderEnabled(p));
|
|
196
196
|
const modelList = rawModels.split(",").map((m) => m.trim()).filter((m) => m.length > 0 && isModelAllowed(m));
|
|
197
197
|
const chain = [];
|
|
@@ -200,7 +200,7 @@ function getDesignatedFallbackChain() {
|
|
|
200
200
|
if (provider === "nvidia") {
|
|
201
201
|
providerModels = modelList.filter((m) => m.startsWith("nvidia/") || m.startsWith("meta/") || m.startsWith("mistralai/"));
|
|
202
202
|
if (providerModels.length === 0) {
|
|
203
|
-
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
203
|
+
providerModels = ["nvidia/nemotron-3-ultra-550b-a55b:free", "nvidia/nemotron-3.5-lightning-30b-a3b"];
|
|
204
204
|
}
|
|
205
205
|
} else if (provider === "openrouter") {
|
|
206
206
|
providerModels = modelList.filter((m) => m.startsWith("@") || m.includes("/") || m.includes(":"));
|
|
@@ -236,7 +236,7 @@ function getDesignatedFallbackChain() {
|
|
|
236
236
|
function getDesignatedFallbackConfig() {
|
|
237
237
|
const chain = getDesignatedFallbackChain();
|
|
238
238
|
if (chain.length > 0) return chain[0];
|
|
239
|
-
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b" };
|
|
239
|
+
return { provider: "nvidia", model: "nvidia/nemotron-3-ultra-550b-a55b:free" };
|
|
240
240
|
}
|
|
241
241
|
function extractThoughtAndContent(rawText) {
|
|
242
242
|
let text = rawText || "";
|
|
@@ -467,8 +467,8 @@ Guidelines:
|
|
|
467
467
|
const isNvidiaPreferred = requestedModel.startsWith("nvidia/") || Boolean(nvidiaKey && !openrouterKey) && isProviderEnabled("nvidia");
|
|
468
468
|
if (nvidiaKey && isProviderEnabled("nvidia")) {
|
|
469
469
|
const candidateNemotronModels = [
|
|
470
|
-
requestedModel.startsWith("nvidia/") ? requestedModel : "nvidia/nemotron-3-ultra-550b-a55b",
|
|
471
|
-
"nvidia/nemotron-3-ultra-550b-a55b",
|
|
470
|
+
requestedModel.startsWith("nvidia/") ? requestedModel : "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
471
|
+
"nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
472
472
|
"nvidia/nemotron-3.5-lightning-30b-a3b",
|
|
473
473
|
"nvidia/nemotron-3-super-120b-a12b",
|
|
474
474
|
"nvidia/llama-3.1-nemotron-70b-instruct"
|
|
@@ -830,7 +830,7 @@ var init_streamRunner = __esm({
|
|
|
830
830
|
// src/ai/provider-factory.ts
|
|
831
831
|
init_streamRunner();
|
|
832
832
|
var DEFAULT_MODELS = {
|
|
833
|
-
nvidia: "nvidia/nemotron-3-ultra-550b-a55b",
|
|
833
|
+
nvidia: "nvidia/nemotron-3-ultra-550b-a55b:free",
|
|
834
834
|
openrouter: "@preset/coding-free",
|
|
835
835
|
alibaba: "qwen3.7-plus",
|
|
836
836
|
dashscope: "qwen3.7-plus",
|
|
@@ -858,7 +858,7 @@ function getAIModel(options = {}) {
|
|
|
858
858
|
apiKey,
|
|
859
859
|
baseURL: options.baseURL || "https://integrate.api.nvidia.com/v1"
|
|
860
860
|
});
|
|
861
|
-
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b");
|
|
861
|
+
return nvidia.chat(resolvedModelName || "nvidia/nemotron-3-ultra-550b-a55b:free");
|
|
862
862
|
}
|
|
863
863
|
if (provider === "openrouter") {
|
|
864
864
|
const apiKey = options.apiKey || process.env.OPENROUTER_API_KEY || process.env.OPENAI_API_KEY || "";
|