@memberjunction/ai-provider-bundle 3.3.0 → 4.0.0
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/index.d.ts +4 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -84
- package/dist/index.js.map +1 -1
- package/package.json +26 -24
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AI Provider Bundle
|
|
3
3
|
*
|
|
4
|
-
* This package
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* This package previously contained tree-shaking prevention functions for all
|
|
5
|
+
* standard MemberJunction AI providers. Tree-shaking prevention is now handled
|
|
6
|
+
* by the manifest system, making this package effectively a no-op.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* This bundle package separates provider-specific loading logic from the core AI Engine
|
|
10
|
-
* architecture, maintaining clean separation of concerns between lower-level infrastructure
|
|
11
|
-
* (Core, Engine, EngineBase) and provider implementations.
|
|
8
|
+
* The package is retained for backward compatibility with existing imports.
|
|
12
9
|
*/
|
|
13
|
-
/**
|
|
14
|
-
* Loads all standard AI providers to prevent tree shaking.
|
|
15
|
-
* Call this function early in your application startup (e.g., in index.ts or main server file)
|
|
16
|
-
* to ensure all AI providers are available throughout the application lifecycle.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```typescript
|
|
20
|
-
* // In your application's entry point
|
|
21
|
-
* import { LoadAIProviders } from '@memberjunction/ai-provider-bundle';
|
|
22
|
-
*
|
|
23
|
-
* // Load all providers at startup
|
|
24
|
-
* LoadAIProviders();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare function LoadAIProviders(): void;
|
|
28
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
package/dist/index.js
CHANGED
|
@@ -1,90 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* AI Provider Bundle
|
|
4
3
|
*
|
|
5
|
-
* This package
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* This package previously contained tree-shaking prevention functions for all
|
|
5
|
+
* standard MemberJunction AI providers. Tree-shaking prevention is now handled
|
|
6
|
+
* by the manifest system, making this package effectively a no-op.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
* This bundle package separates provider-specific loading logic from the core AI Engine
|
|
11
|
-
* architecture, maintaining clean separation of concerns between lower-level infrastructure
|
|
12
|
-
* (Core, Engine, EngineBase) and provider implementations.
|
|
8
|
+
* The package is retained for backward compatibility with existing imports.
|
|
13
9
|
*/
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.LoadAIProviders = void 0;
|
|
16
|
-
// Import all AI provider loaders
|
|
17
|
-
const ai_openai_1 = require("@memberjunction/ai-openai");
|
|
18
|
-
const ai_anthropic_1 = require("@memberjunction/ai-anthropic");
|
|
19
|
-
const ai_azure_1 = require("@memberjunction/ai-azure");
|
|
20
|
-
const ai_bedrock_1 = require("@memberjunction/ai-bedrock");
|
|
21
|
-
const ai_betty_bot_1 = require("@memberjunction/ai-betty-bot");
|
|
22
|
-
const ai_cerebras_1 = require("@memberjunction/ai-cerebras");
|
|
23
|
-
const ai_cohere_1 = require("@memberjunction/ai-cohere");
|
|
24
|
-
const ai_elevenlabs_1 = require("@memberjunction/ai-elevenlabs");
|
|
25
|
-
const ai_gemini_1 = require("@memberjunction/ai-gemini");
|
|
26
|
-
const ai_groq_1 = require("@memberjunction/ai-groq");
|
|
27
|
-
const ai_heygen_1 = require("@memberjunction/ai-heygen");
|
|
28
|
-
const ai_lmstudio_1 = require("@memberjunction/ai-lmstudio");
|
|
29
|
-
const ai_local_embeddings_1 = require("@memberjunction/ai-local-embeddings");
|
|
30
|
-
const ai_mistral_1 = require("@memberjunction/ai-mistral");
|
|
31
|
-
const ai_ollama_1 = require("@memberjunction/ai-ollama");
|
|
32
|
-
const ai_openrouter_1 = require("@memberjunction/ai-openrouter");
|
|
33
|
-
const ai_recommendations_rex_1 = require("@memberjunction/ai-recommendations-rex");
|
|
34
|
-
const ai_vectors_pinecone_1 = require("@memberjunction/ai-vectors-pinecone");
|
|
35
|
-
const ai_vertex_1 = require("@memberjunction/ai-vertex");
|
|
36
|
-
const ai_xai_1 = require("@memberjunction/ai-xai");
|
|
37
|
-
const ai_blackforestlabs_1 = require("@memberjunction/ai-blackforestlabs");
|
|
38
|
-
/**
|
|
39
|
-
* Loads all standard AI providers to prevent tree shaking.
|
|
40
|
-
* Call this function early in your application startup (e.g., in index.ts or main server file)
|
|
41
|
-
* to ensure all AI providers are available throughout the application lifecycle.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```typescript
|
|
45
|
-
* // In your application's entry point
|
|
46
|
-
* import { LoadAIProviders } from '@memberjunction/ai-provider-bundle';
|
|
47
|
-
*
|
|
48
|
-
* // Load all providers at startup
|
|
49
|
-
* LoadAIProviders();
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
function LoadAIProviders() {
|
|
53
|
-
// LLM Providers
|
|
54
|
-
(0, ai_openai_1.LoadOpenAILLM)();
|
|
55
|
-
(0, ai_anthropic_1.LoadAnthropicLLM)();
|
|
56
|
-
(0, ai_azure_1.LoadAzureLLM)();
|
|
57
|
-
(0, ai_bedrock_1.LoadBedrockLLM)();
|
|
58
|
-
(0, ai_betty_bot_1.LoadBettyBotLLM)();
|
|
59
|
-
(0, ai_cerebras_1.LoadCerebrasLLM)();
|
|
60
|
-
(0, ai_gemini_1.LoadGeminiLLM)();
|
|
61
|
-
(0, ai_groq_1.LoadGroqLLM)();
|
|
62
|
-
(0, ai_lmstudio_1.LoadLMStudioLLM)();
|
|
63
|
-
(0, ai_mistral_1.LoadMistralLLM)();
|
|
64
|
-
(0, ai_ollama_1.LoadOllamaLLM)();
|
|
65
|
-
(0, ai_openrouter_1.LoadOpenRouterLLM)();
|
|
66
|
-
(0, ai_vertex_1.LoadVertexLLM)();
|
|
67
|
-
(0, ai_xai_1.LoadxAILLM)();
|
|
68
|
-
// Embedding Providers
|
|
69
|
-
(0, ai_openai_1.LoadOpenAIEmbedding)();
|
|
70
|
-
(0, ai_azure_1.LoadAzureEmbedding)();
|
|
71
|
-
(0, ai_bedrock_1.LoadBedrockEmbedding)();
|
|
72
|
-
(0, ai_local_embeddings_1.LoadLocalEmbedding)();
|
|
73
|
-
(0, ai_mistral_1.LoadMistralEmbedding)();
|
|
74
|
-
(0, ai_ollama_1.LoadOllamaEmbedding)();
|
|
75
|
-
// Note: LoadVertexEmbedding() removed - deprecated SDK, will be re-added when @google/genai supports embeddings
|
|
76
|
-
// Audio/Video Providers
|
|
77
|
-
(0, ai_elevenlabs_1.LoadElevenLabsAudioGenerator)();
|
|
78
|
-
(0, ai_heygen_1.LoadHeyGenVideoGenerator)();
|
|
79
|
-
// Image Generation Providers
|
|
80
|
-
(0, ai_openai_1.LoadOpenAIImageGenerator)();
|
|
81
|
-
(0, ai_gemini_1.LoadGeminiImageGenerator)();
|
|
82
|
-
(0, ai_blackforestlabs_1.LoadFLUXImageGenerator)();
|
|
83
|
-
// Specialized Providers
|
|
84
|
-
(0, ai_recommendations_rex_1.LoadRexRecommendationsProvider)();
|
|
85
|
-
(0, ai_vectors_pinecone_1.LoadPineconeVectorDB)();
|
|
86
|
-
// Reranking Providers
|
|
87
|
-
(0, ai_cohere_1.LoadCohereReranker)();
|
|
88
|
-
}
|
|
89
|
-
exports.LoadAIProviders = LoadAIProviders;
|
|
90
10
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ai-provider-bundle",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "4.0.0",
|
|
4
5
|
"description": "MemberJunction AI Provider Bundle - Loads all standard AI providers to prevent tree shaking",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -8,36 +9,37 @@
|
|
|
8
9
|
"/dist"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
+
"build": "tsc && tsc-alias -f",
|
|
12
13
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
14
|
},
|
|
14
15
|
"author": "MemberJunction.com",
|
|
15
16
|
"license": "ISC",
|
|
16
17
|
"devDependencies": {
|
|
17
|
-
"typescript": "^5.
|
|
18
|
+
"typescript": "^5.9.3"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@memberjunction/ai-anthropic": "
|
|
21
|
-
"@memberjunction/ai-azure": "
|
|
22
|
-
"@memberjunction/ai-bedrock": "
|
|
23
|
-
"@memberjunction/ai-betty-bot": "
|
|
24
|
-
"@memberjunction/ai-blackforestlabs": "
|
|
25
|
-
"@memberjunction/ai-cerebras": "
|
|
26
|
-
"@memberjunction/ai-cohere": "
|
|
27
|
-
"@memberjunction/ai-elevenlabs": "
|
|
28
|
-
"@memberjunction/ai-
|
|
29
|
-
"@memberjunction/ai-
|
|
30
|
-
"@memberjunction/ai-
|
|
31
|
-
"@memberjunction/ai-
|
|
32
|
-
"@memberjunction/ai-
|
|
33
|
-
"@memberjunction/ai-
|
|
34
|
-
"@memberjunction/ai-
|
|
35
|
-
"@memberjunction/ai-
|
|
36
|
-
"@memberjunction/ai-
|
|
37
|
-
"@memberjunction/ai-
|
|
38
|
-
"@memberjunction/ai-
|
|
39
|
-
"@memberjunction/ai-
|
|
40
|
-
"@memberjunction/ai-
|
|
21
|
+
"@memberjunction/ai-anthropic": "4.0.0",
|
|
22
|
+
"@memberjunction/ai-azure": "4.0.0",
|
|
23
|
+
"@memberjunction/ai-bedrock": "4.0.0",
|
|
24
|
+
"@memberjunction/ai-betty-bot": "4.0.0",
|
|
25
|
+
"@memberjunction/ai-blackforestlabs": "4.0.0",
|
|
26
|
+
"@memberjunction/ai-cerebras": "4.0.0",
|
|
27
|
+
"@memberjunction/ai-cohere": "4.0.0",
|
|
28
|
+
"@memberjunction/ai-elevenlabs": "4.0.0",
|
|
29
|
+
"@memberjunction/ai-fireworks": "4.0.0",
|
|
30
|
+
"@memberjunction/ai-gemini": "4.0.0",
|
|
31
|
+
"@memberjunction/ai-groq": "4.0.0",
|
|
32
|
+
"@memberjunction/ai-heygen": "4.0.0",
|
|
33
|
+
"@memberjunction/ai-lmstudio": "4.0.0",
|
|
34
|
+
"@memberjunction/ai-local-embeddings": "4.0.0",
|
|
35
|
+
"@memberjunction/ai-mistral": "4.0.0",
|
|
36
|
+
"@memberjunction/ai-ollama": "4.0.0",
|
|
37
|
+
"@memberjunction/ai-openai": "4.0.0",
|
|
38
|
+
"@memberjunction/ai-openrouter": "4.0.0",
|
|
39
|
+
"@memberjunction/ai-recommendations-rex": "4.0.0",
|
|
40
|
+
"@memberjunction/ai-vectors-pinecone": "4.0.0",
|
|
41
|
+
"@memberjunction/ai-vertex": "4.0.0",
|
|
42
|
+
"@memberjunction/ai-xai": "4.0.0"
|
|
41
43
|
},
|
|
42
44
|
"repository": {
|
|
43
45
|
"type": "git",
|