mycontext-cli 1.0.78 → 1.0.80

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 +28 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,11 +7,11 @@ AI-powered tool that generates production-ready React components through an adva
7
7
  ## Installation
8
8
 
9
9
  ```bash
10
- npm install -g @mycontext/cli
10
+ npm install -g mycontext-cli
11
11
  # or
12
- pnpm add -g @mycontext/cli
12
+ pnpm add -g mycontext-cli
13
13
  # or
14
- yarn global add @mycontext/cli
14
+ yarn global add mycontext-cli
15
15
  ```
16
16
 
17
17
  ## Quick Start
@@ -20,8 +20,8 @@ yarn global add @mycontext/cli
20
20
  # Initialize a new project
21
21
  mycontext init my-project
22
22
 
23
- # Set up AI provider (Qwen3 Coder - FREE!)
24
- echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
23
+ # Set up AI provider (X.AI Grok recommended for best results)
24
+ echo 'MYCONTEXT_XAI_API_KEY=xai-xxx' > .mycontext/.env
25
25
 
26
26
  # Generate context files
27
27
  mycontext generate context --full --description 'Modern todo app'
@@ -40,7 +40,7 @@ mycontext generate-components all --with-tests
40
40
  - **🎨 Component Generation**: Create production-ready React components with Shadcn UI
41
41
  - **📋 Context-Aware**: Generates PRDs, types, and branding based on your project
42
42
  - **🔧 Developer-Friendly**: Built-in validation, testing, and preview capabilities
43
- - **🆓 Free Tier**: Use Qwen3 Coder model for free (no API key required for basic usage)
43
+ - **🆓 Free Tier**: Use Qwen3 Coder model for free testing, or premium X.AI/Claude for production
44
44
 
45
45
  ## Commands
46
46
 
@@ -84,23 +84,38 @@ mycontext promote # Promote components to production
84
84
 
85
85
  ### AI Providers
86
86
 
87
- MyContext supports multiple AI providers:
87
+ MyContext supports multiple AI providers with intelligent fallback:
88
88
 
89
- 1. **Qwen3 Coder (Recommended - FREE)**
89
+ #### **Recommended (Premium)**
90
+
91
+ 1. **X.AI (Grok) - Best for Code Generation**
90
92
 
91
93
  ```bash
92
- echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
94
+ echo 'MYCONTEXT_XAI_API_KEY=xai-xxx' > .mycontext/.env
93
95
  ```
94
96
 
95
- 2. **GitHub Models (Self-hosted)**
97
+ 2. **Claude (Anthropic) - Best for Complex Reasoning**
96
98
 
97
99
  ```bash
98
- echo 'MYCONTEXT_GITHUB_TOKEN=ghp_xxx' > .mycontext/.env
100
+ echo 'MYCONTEXT_CLAUDE_API_KEY=sk-ant-xxx' > .mycontext/.env
99
101
  ```
100
102
 
101
- 3. **OpenAI (Paid)**
103
+ 3. **OpenAI (GPT-4) - Most Versatile**
102
104
  ```bash
103
- echo 'OPENAI_API_KEY=sk-xxx' > .mycontext/.env
105
+ echo 'MYCONTEXT_OPENAI_API_KEY=sk-xxx' > .mycontext/.env
106
+ ```
107
+
108
+ #### **Testing & Fallback**
109
+
110
+ 4. **Qwen3 Coder (FREE)**
111
+
112
+ ```bash
113
+ echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
114
+ ```
115
+
116
+ 5. **GitHub Models (Self-hosted)**
117
+ ```bash
118
+ echo 'MYCONTEXT_GITHUB_TOKEN=ghp_xxx' > .mycontext/.env
104
119
  ```
105
120
 
106
121
  ### Project Structure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mycontext-cli",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "MyContext CLI - AI-powered component generation with shadcn/ui and Next.js 15 integration",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {