mycontext-cli 0.1.0 → 0.1.2
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 +13 -34
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,9 +13,8 @@ npm install -g mycontext-cli
|
|
|
13
13
|
# Or use pnpm
|
|
14
14
|
pnpm add -g mycontext-cli
|
|
15
15
|
|
|
16
|
-
# Or
|
|
17
|
-
|
|
18
|
-
pnpm link --global
|
|
16
|
+
# Or use yarn
|
|
17
|
+
yarn global add mycontext-cli
|
|
19
18
|
```
|
|
20
19
|
|
|
21
20
|
### Basic Usage
|
|
@@ -194,6 +193,7 @@ mycontext auth:logout
|
|
|
194
193
|
```
|
|
195
194
|
|
|
196
195
|
**Security Features:**
|
|
196
|
+
|
|
197
197
|
- **AES-256-CBC Encryption** with PBKDF2 key derivation
|
|
198
198
|
- **Local Storage** in `~/.mycontext/api-keys.json`
|
|
199
199
|
- **Environment Variable Integration** - Automatically detects `XAI_API_KEY`, `OPENAI_API_KEY`, etc.
|
|
@@ -203,12 +203,12 @@ mycontext auth:logout
|
|
|
203
203
|
|
|
204
204
|
### Supported AI Providers
|
|
205
205
|
|
|
206
|
-
| Provider
|
|
207
|
-
|
|
208
|
-
| **XAI (Grok)** | `xai-*`
|
|
209
|
-
| **OpenAI**
|
|
210
|
-
| **Anthropic**
|
|
211
|
-
| **Google AI**
|
|
206
|
+
| Provider | Key Format | Environment Variable |
|
|
207
|
+
| -------------- | ---------- | -------------------- |
|
|
208
|
+
| **XAI (Grok)** | `xai-*` | `XAI_API_KEY` |
|
|
209
|
+
| **OpenAI** | `sk-*` | `OPENAI_API_KEY` |
|
|
210
|
+
| **Anthropic** | `sk-ant-*` | `ANTHROPIC_API_KEY` |
|
|
211
|
+
| **Google AI** | Various | `GOOGLE_AI_API_KEY` |
|
|
212
212
|
|
|
213
213
|
## 🏗️ Project Structure
|
|
214
214
|
|
|
@@ -310,7 +310,7 @@ mycontext init ecommerce-app --description "Online store with shopping cart"
|
|
|
310
310
|
mycontext generate components-list
|
|
311
311
|
# Generates: ProductList, ShoppingCart, CheckoutForm, OrderHistory, UserProfile
|
|
312
312
|
|
|
313
|
-
# Dashboard app
|
|
313
|
+
# Dashboard app
|
|
314
314
|
mycontext init dashboard-app --description "Analytics dashboard"
|
|
315
315
|
mycontext generate components-list
|
|
316
316
|
# Generates: DashboardOverview, DataGrid, AnalyticsCharts, MetricCards
|
|
@@ -343,7 +343,7 @@ mycontext generate components-list
|
|
|
343
343
|
```bash
|
|
344
344
|
# AI Provider API Keys (automatically detected)
|
|
345
345
|
export XAI_API_KEY="your-xai-key"
|
|
346
|
-
export OPENAI_API_KEY="your-openai-key"
|
|
346
|
+
export OPENAI_API_KEY="your-openai-key"
|
|
347
347
|
export ANTHROPIC_API_KEY="your-anthropic-key"
|
|
348
348
|
export GOOGLE_AI_API_KEY="your-google-key"
|
|
349
349
|
|
|
@@ -393,7 +393,7 @@ cd production-test
|
|
|
393
393
|
|
|
394
394
|
# Test full workflow
|
|
395
395
|
mycontext generate context
|
|
396
|
-
mycontext validate prd
|
|
396
|
+
mycontext validate prd
|
|
397
397
|
mycontext generate types
|
|
398
398
|
mycontext generate components-list
|
|
399
399
|
mycontext status --detailed
|
|
@@ -402,13 +402,6 @@ mycontext status --detailed
|
|
|
402
402
|
mycontext generate components --use-xai
|
|
403
403
|
```
|
|
404
404
|
|
|
405
|
-
## 📚 Documentation
|
|
406
|
-
|
|
407
|
-
- [Platform Overview](../README.md)
|
|
408
|
-
- [Architecture](../docs/architecture/overview.md)
|
|
409
|
-
- [CLI Implementation](../docs/cli/implementation.md)
|
|
410
|
-
- [XAI Integration](../docs/cli/xai-integration.md)
|
|
411
|
-
|
|
412
405
|
## 🤝 Contributing
|
|
413
406
|
|
|
414
407
|
1. Fork the repository
|
|
@@ -419,22 +412,8 @@ mycontext generate components --use-xai
|
|
|
419
412
|
|
|
420
413
|
## 📄 License
|
|
421
414
|
|
|
422
|
-
MIT License - see [LICENSE](
|
|
415
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
423
416
|
|
|
424
417
|
---
|
|
425
418
|
|
|
426
419
|
**MyContext CLI**: Where AI-generated code becomes a valuable, reusable asset rather than technical debt.
|
|
427
|
-
|
|
428
|
-
## 🚀 Production Ready
|
|
429
|
-
|
|
430
|
-
**Current Status: PRODUCTION READY** ✅
|
|
431
|
-
|
|
432
|
-
- **✅ 28+ Passing Tests** - Comprehensive unit test coverage
|
|
433
|
-
- **✅ Enterprise Security** - AES-256-CBC encrypted API key management
|
|
434
|
-
- **✅ Multi-Provider AI** - XAI, OpenAI, Anthropic, Google AI support
|
|
435
|
-
- **✅ Robust Error Handling** - Structured error management with recovery
|
|
436
|
-
- **✅ TypeScript Strict Mode** - Full type safety throughout
|
|
437
|
-
- **✅ Production CLI** - All commands functional and tested
|
|
438
|
-
- **✅ CI/CD Ready** - Non-interactive mode for automation
|
|
439
|
-
|
|
440
|
-
The MyContext CLI is ready for production use with enterprise-grade security, comprehensive testing, and full TypeScript support. All core features are implemented and working.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mycontext-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AI-powered component generation CLI for MyContext platform",
|
|
5
5
|
"main": "dist/cli/src/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
"dist/",
|
|
62
62
|
"README.md"
|
|
63
63
|
]
|
|
64
|
-
}
|
|
64
|
+
}
|