@memberjunction/ai-provider-bundle 4.0.0 → 4.2.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.
Files changed (2) hide show
  1. package/README.md +21 -42
  2. package/package.json +23 -23
package/README.md CHANGED
@@ -1,54 +1,33 @@
1
1
  # @memberjunction/ai-provider-bundle
2
2
 
3
- AI Provider Bundle for MemberJunction - automatically loads all standard AI providers to prevent tree shaking in production builds.
3
+ Legacy AI provider bundle package for MemberJunction. This package previously contained tree-shaking prevention functions for all standard MemberJunction AI providers.
4
4
 
5
- ## Purpose
5
+ ## Status
6
6
 
7
- This package solves a critical issue in production builds where aggressive tree shaking can remove AI provider classes that are registered dynamically at runtime. By explicitly importing and loading all standard providers, this bundle ensures they remain available throughout the application lifecycle.
7
+ This package is effectively a no-op. Tree-shaking prevention is now handled by the MemberJunction manifest system (see `CLASS_MANIFEST_GUIDE.md` in the CodeGenLib package).
8
8
 
9
- ## Architecture
10
-
11
- This bundle package maintains clean separation of concerns by keeping provider-specific loading logic separate from the core AI Engine infrastructure. Lower-level packages like `@memberjunction/ai`, `@memberjunction/aiengine`, and `@memberjunction/ai-engine-base` remain focused on core functionality without coupling to specific provider implementations.
12
-
13
- ## Usage
9
+ The package is retained solely for backward compatibility with existing imports. No new functionality should be added here.
14
10
 
15
- Call `LoadAIProviders()` early in your application startup:
16
-
17
- ```typescript
18
- import { LoadAIProviders } from '@memberjunction/ai-provider-bundle';
11
+ ## Architecture
19
12
 
20
- // In your application's entry point (index.ts, server.ts, etc.)
21
- LoadAIProviders();
13
+ ```mermaid
14
+ graph TD
15
+ A["@memberjunction/ai-bundle<br/>(Legacy Package)"] -.->|previously loaded| B["All AI Providers"]
16
+ C["Manifest System<br/>(Current)"] -->|prevents tree-shaking| B
17
+ D["@memberjunction/server-bootstrap"] -->|pre-built manifest| C
18
+ E["@memberjunction/ng-bootstrap"] -->|pre-built manifest| C
19
+
20
+ style A fill:#b8762f,stroke:#8a5722,color:#fff
21
+ style B fill:#2d6a9f,stroke:#1a4971,color:#fff
22
+ style C fill:#2d8659,stroke:#1a5c3a,color:#fff
23
+ style D fill:#7c5295,stroke:#563a6b,color:#fff
24
+ style E fill:#7c5295,stroke:#563a6b,color:#fff
22
25
  ```
23
26
 
24
- ## Included Providers
25
-
26
- This bundle loads the following AI providers:
27
-
28
- - **OpenAI** - GPT models and embeddings
29
- - **Anthropic** - Claude models
30
- - **Groq** - High-performance inference
31
- - **Cerebras** - Fast inference models
32
- - **Mistral** - Open-source LLMs
33
- - **LMStudio** - Local model hosting
34
- - **OpenRouter** - Multi-provider routing
35
- - **Ollama** - Local model management
36
- - **xAI** - Grok models
37
- - **LocalEmbeddings** - Local embedding generation
38
-
39
- ## When to Use
40
-
41
- Use this package in any MemberJunction application that:
42
-
43
- 1. Uses production builds with optimization/tree shaking enabled
44
- 2. Dynamically selects AI providers at runtime based on configuration
45
- 3. Needs all standard providers available without explicit imports
46
-
47
- ## When Not to Use
27
+ ## Migration
48
28
 
49
- If your application only uses a specific subset of providers, you can manually import and load only those providers instead of using this bundle to reduce bundle size.
29
+ If you are importing from this package, you can safely remove the import. The manifest system now handles class registration automatically via `@RegisterClass` decorators and the `CLASS_REGISTRATIONS` array generated by `mj codegen manifest`.
50
30
 
51
- ## See Also
31
+ ## Dependencies
52
32
 
53
- - [@memberjunction/aiengine](../Engine/README.md) - Core AI Engine functionality
54
- - [@memberjunction/ai](../../Core/README.md) - Base AI types and interfaces
33
+ None (no-op package).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/ai-provider-bundle",
3
3
  "type": "module",
4
- "version": "4.0.0",
4
+ "version": "4.2.0",
5
5
  "description": "MemberJunction AI Provider Bundle - Loads all standard AI providers to prevent tree shaking",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,28 +18,28 @@
18
18
  "typescript": "^5.9.3"
19
19
  },
20
20
  "dependencies": {
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"
21
+ "@memberjunction/ai-anthropic": "4.2.0",
22
+ "@memberjunction/ai-azure": "4.2.0",
23
+ "@memberjunction/ai-bedrock": "4.2.0",
24
+ "@memberjunction/ai-betty-bot": "4.2.0",
25
+ "@memberjunction/ai-blackforestlabs": "4.2.0",
26
+ "@memberjunction/ai-cerebras": "4.2.0",
27
+ "@memberjunction/ai-cohere": "4.2.0",
28
+ "@memberjunction/ai-elevenlabs": "4.2.0",
29
+ "@memberjunction/ai-fireworks": "4.2.0",
30
+ "@memberjunction/ai-gemini": "4.2.0",
31
+ "@memberjunction/ai-groq": "4.2.0",
32
+ "@memberjunction/ai-heygen": "4.2.0",
33
+ "@memberjunction/ai-lmstudio": "4.2.0",
34
+ "@memberjunction/ai-local-embeddings": "4.2.0",
35
+ "@memberjunction/ai-mistral": "4.2.0",
36
+ "@memberjunction/ai-ollama": "4.2.0",
37
+ "@memberjunction/ai-openai": "4.2.0",
38
+ "@memberjunction/ai-openrouter": "4.2.0",
39
+ "@memberjunction/ai-recommendations-rex": "4.2.0",
40
+ "@memberjunction/ai-vectors-pinecone": "4.2.0",
41
+ "@memberjunction/ai-vertex": "4.2.0",
42
+ "@memberjunction/ai-xai": "4.2.0"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",