mycontext-cli 1.0.78 → 1.0.79
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/README.md +25 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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 (
|
|
24
|
-
echo '
|
|
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
|
|
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
|
-
|
|
89
|
+
#### **Recommended (Premium)**
|
|
90
|
+
|
|
91
|
+
1. **X.AI (Grok) - Best for Code Generation**
|
|
90
92
|
|
|
91
93
|
```bash
|
|
92
|
-
echo '
|
|
94
|
+
echo 'MYCONTEXT_XAI_API_KEY=xai-xxx' > .mycontext/.env
|
|
93
95
|
```
|
|
94
96
|
|
|
95
|
-
2. **
|
|
97
|
+
2. **Claude (Anthropic) - Best for Complex Reasoning**
|
|
96
98
|
|
|
97
99
|
```bash
|
|
98
|
-
echo '
|
|
100
|
+
echo 'MYCONTEXT_CLAUDE_API_KEY=sk-ant-xxx' > .mycontext/.env
|
|
99
101
|
```
|
|
100
102
|
|
|
101
|
-
3. **OpenAI (
|
|
103
|
+
3. **OpenAI (GPT-4) - Most Versatile**
|
|
102
104
|
```bash
|
|
103
|
-
echo '
|
|
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
|