mycontext-cli 1.0.17 → 1.0.20
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 +442 -16
- package/dist/agents/orchestrator/SubAgentOrchestrator.d.ts.map +1 -1
- package/dist/agents/orchestrator/SubAgentOrchestrator.js +3 -2
- package/dist/agents/orchestrator/SubAgentOrchestrator.js.map +1 -1
- package/dist/cli.js +15 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/generate-context-files.d.ts.map +1 -1
- package/dist/commands/generate-context-files.js +20 -19
- package/dist/commands/generate-context-files.js.map +1 -1
- package/dist/commands/history.d.ts +98 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +308 -0
- package/dist/commands/history.js.map +1 -0
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/commands/migrate.js +4 -0
- package/dist/commands/migrate.js.map +1 -1
- package/dist/commands/now.d.ts +34 -0
- package/dist/commands/now.d.ts.map +1 -0
- package/dist/commands/now.js +168 -0
- package/dist/commands/now.js.map +1 -0
- package/dist/commands/timestamp.d.ts +28 -0
- package/dist/commands/timestamp.d.ts.map +1 -0
- package/dist/commands/timestamp.js +105 -0
- package/dist/commands/timestamp.js.map +1 -0
- package/dist/commands/update.d.ts +2 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +74 -25
- package/dist/commands/update.js.map +1 -1
- package/dist/utils/apiKeyManager.d.ts.map +1 -1
- package/dist/utils/apiKeyManager.js +12 -11
- package/dist/utils/apiKeyManager.js.map +1 -1
- package/dist/utils/errorHandler.d.ts +0 -4
- package/dist/utils/errorHandler.d.ts.map +1 -1
- package/dist/utils/errorHandler.js +5 -8
- package/dist/utils/errorHandler.js.map +1 -1
- package/dist/utils/fileSystem.d.ts +8 -0
- package/dist/utils/fileSystem.d.ts.map +1 -1
- package/dist/utils/fileSystem.js +26 -0
- package/dist/utils/fileSystem.js.map +1 -1
- package/dist/utils/hybridAIClient.d.ts.map +1 -1
- package/dist/utils/hybridAIClient.js +10 -6
- package/dist/utils/hybridAIClient.js.map +1 -1
- package/dist/utils/logger.d.ts +40 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +125 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/progress.d.ts +29 -0
- package/dist/utils/progress.d.ts.map +1 -0
- package/dist/utils/progress.js +99 -0
- package/dist/utils/progress.js.map +1 -0
- package/package.json +14 -11
- package/README.md.backup +0 -463
package/README.md.backup
DELETED
|
@@ -1,463 +0,0 @@
|
|
|
1
|
-
# MyContext CLI
|
|
2
|
-
|
|
3
|
-
**🧠 The AI That Actually Understands Your Project**
|
|
4
|
-
|
|
5
|
-
AI-powered tool that generates production-ready React components through an advanced agent-driven workflow that deeply understands your project context.
|
|
6
|
-
|
|
7
|
-
## 🚀 Quick Start
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# Install CLI
|
|
11
|
-
npm install -g mycontext-cli
|
|
12
|
-
|
|
13
|
-
# Initialize project (supports current directory with ".")
|
|
14
|
-
mycontext init . --description "Your project description"
|
|
15
|
-
# OR
|
|
16
|
-
mycontext init my-app --description "Your project description"
|
|
17
|
-
cd my-app
|
|
18
|
-
|
|
19
|
-
# Agent-Driven Workflow (New!)
|
|
20
|
-
mycontext generate-context-files --description "Your project description" # → A/B/C/D context files
|
|
21
|
-
mycontext compile-prd # → Comprehensive PRD
|
|
22
|
-
mycontext build-app --interactive # → Complete app with agents
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## 🤖 Agent-Driven Workflow (New!)
|
|
26
|
-
|
|
27
|
-
MyContext uses 11 specialized AI agents working together in an orchestrated workflow:
|
|
28
|
-
|
|
29
|
-
### 1. Context Generation (Agent: SpecAgent)
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
mycontext generate-context-files --description "Modern e-commerce platform"
|
|
33
|
-
# Generates:
|
|
34
|
-
# - A. Features (.mycontext/features.md)
|
|
35
|
-
# - B. User Flows (.mycontext/user-flows.md)
|
|
36
|
-
# - C. Edge Cases (.mycontext/edge-cases.md)
|
|
37
|
-
# - D. Technical Specs (.mycontext/technical-specs.md)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### 2. PRD Compilation (Agent: PRDAgent)
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
mycontext compile-prd
|
|
44
|
-
# Compiles A/B/C/D context files into:
|
|
45
|
-
# - .mycontext/prd-compiled.md (comprehensive requirements)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### 3. Complete Application Build (Agent Orchestration)
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
mycontext build-app --interactive --max-retries 3
|
|
52
|
-
# Orchestrates multiple agents:
|
|
53
|
-
# - TypesAgent: Generates TypeScript types
|
|
54
|
-
# - BrandAgent: Creates design system
|
|
55
|
-
# - CodeGenAgent: Generates components
|
|
56
|
-
# - QAAgent: Quality assurance
|
|
57
|
-
# - DocsAgent: Documentation
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## 🎯 Core Commands
|
|
61
|
-
|
|
62
|
-
### Context & Planning
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
mycontext generate-context-files # A/B/C/D context files (NEW)
|
|
66
|
-
mycontext compile-prd # Compile to comprehensive PRD (NEW)
|
|
67
|
-
mycontext build-app # Agent-orchestrated full build (NEW)
|
|
68
|
-
mycontext generate types # TypeScript type system
|
|
69
|
-
mycontext generate brand-kit # Complete brand system
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### Component Generation
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
mycontext generate-components all --local --with-tests # All components
|
|
76
|
-
mycontext generate-components <group> --local # Specific group
|
|
77
|
-
mycontext core generate # Design anchor component
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Interactive & Management
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
mycontext enhance <component> --prompt "improvements" # AI enhancement
|
|
84
|
-
mycontext refine <component> --prompt "changes" # AI refinement
|
|
85
|
-
mycontext preview components # Live preview
|
|
86
|
-
mycontext status --detailed # Project analysis
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## Advanced Commands
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# AI predictions and insights
|
|
93
|
-
mycontext predict next # Next development steps
|
|
94
|
-
mycontext predict dependencies # Package suggestions
|
|
95
|
-
mycontext predict patterns # Architecture patterns
|
|
96
|
-
mycontext predict issues # Potential problems
|
|
97
|
-
|
|
98
|
-
# Interactive workflow
|
|
99
|
-
mycontext build-app --interactive # Human-in-the-loop generation
|
|
100
|
-
mycontext build-app --max-retries 5 # Configure retry limits
|
|
101
|
-
|
|
102
|
-
# Model management
|
|
103
|
-
mycontext model list # Available AI models
|
|
104
|
-
mycontext model test # Test AI provider connections
|
|
105
|
-
mycontext setup # Local AI setup
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## 📦 What You Get (Updated Structure)
|
|
109
|
-
|
|
110
|
-
### Context Files (A/B/C/D Workflow)
|
|
111
|
-
|
|
112
|
-
- **`.mycontext/features.md`** — Core product features and capabilities
|
|
113
|
-
- **`.mycontext/user-flows.md`** — User journey maps and interaction patterns
|
|
114
|
-
- **`.mycontext/edge-cases.md`** — Error scenarios and edge conditions
|
|
115
|
-
- **`.mycontext/technical-specs.md`** — Architecture and technical requirements
|
|
116
|
-
- **`.mycontext/prd-compiled.md`** — Comprehensive compiled PRD
|
|
117
|
-
|
|
118
|
-
### Generated Assets
|
|
119
|
-
|
|
120
|
-
- **`.mycontext/types/`** — Complete TypeScript type system (5 files)
|
|
121
|
-
- `index.ts` — Main type exports and interfaces
|
|
122
|
-
- `database.ts` — Database schema and data models
|
|
123
|
-
- `enums.ts` — Enum constants and type guards
|
|
124
|
-
- `ui.ts` — UI component prop types
|
|
125
|
-
- `utils.ts` — Utility types and helpers
|
|
126
|
-
- **`.mycontext/brand-kit/`** — Complete design system
|
|
127
|
-
- `brand-kit.json` — Design tokens and theme configuration
|
|
128
|
-
- `globals.css` — CSS custom properties and variables
|
|
129
|
-
- `colors.md` — Color palette documentation
|
|
130
|
-
- `typography.md` — Typography specifications and hierarchy
|
|
131
|
-
- **`components/`** — Production-ready React components with shadcn/ui
|
|
132
|
-
- **`lib/`** — Shared utilities and hooks
|
|
133
|
-
- **`docs/`** — Auto-generated component documentation
|
|
134
|
-
|
|
135
|
-
## 🤖 Agent Architecture
|
|
136
|
-
|
|
137
|
-
MyContext features a sophisticated multi-agent system with 11 specialized AI agents:
|
|
138
|
-
|
|
139
|
-
### Core Agents
|
|
140
|
-
|
|
141
|
-
- **SpecAgent**: Generates A/B/C/D context files from project descriptions
|
|
142
|
-
- **PRDAgent**: Compiles context files into comprehensive PRDs
|
|
143
|
-
- **TypesAgent**: Creates TypeScript type systems from features and flows
|
|
144
|
-
- **BrandAgent**: Generates complete design systems and brand kits
|
|
145
|
-
- **CodeGenAgent**: Produces production-ready React components
|
|
146
|
-
- **QAAgent**: Performs quality assurance and validation
|
|
147
|
-
- **DocsAgent**: Creates comprehensive documentation
|
|
148
|
-
|
|
149
|
-
### Support Agents
|
|
150
|
-
|
|
151
|
-
- **ArchitectAgent**: Provides architectural analysis and recommendations
|
|
152
|
-
- **SecurityAgent**: Performs security analysis and best practices
|
|
153
|
-
- **InteractiveAgent**: Handles human-in-the-loop interactions
|
|
154
|
-
- **ProjectSetupAgent**: Manages project initialization and structure
|
|
155
|
-
- **WorkflowAgent**: Orchestrates complete build processes
|
|
156
|
-
|
|
157
|
-
### Agent Orchestration
|
|
158
|
-
|
|
159
|
-
```bash
|
|
160
|
-
mycontext build-app --interactive
|
|
161
|
-
# Automatically coordinates all agents in the optimal sequence
|
|
162
|
-
# Provides progress updates and handles failures gracefully
|
|
163
|
-
# Supports human intervention when needed
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
## 💰 Business Model & Pricing
|
|
167
|
-
|
|
168
|
-
### **Free Tier (Always Free)**
|
|
169
|
-
|
|
170
|
-
- ✅ Unlimited basic generation with Qwen3 Coder
|
|
171
|
-
- ✅ Core CLI features and commands
|
|
172
|
-
- ✅ Community support and documentation
|
|
173
|
-
- ✅ Local AI setup with Ollama
|
|
174
|
-
|
|
175
|
-
### **Pro Tier ($9/month)**
|
|
176
|
-
|
|
177
|
-
- ✅ Advanced AI generation with premium providers
|
|
178
|
-
- ✅ Priority support and faster response times
|
|
179
|
-
- ✅ Enhanced features and beta access
|
|
180
|
-
- ✅ Team collaboration tools
|
|
181
|
-
|
|
182
|
-
### **Enterprise Tier ($29/month)**
|
|
183
|
-
|
|
184
|
-
- ✅ Custom AI model training and fine-tuning
|
|
185
|
-
- ✅ White-label solutions and branding
|
|
186
|
-
- ✅ On-premise deployment options
|
|
187
|
-
- ✅ Dedicated enterprise support and SLAs
|
|
188
|
-
|
|
189
|
-
### **Bring Your Own Keys (BYOK)**
|
|
190
|
-
|
|
191
|
-
- ✅ Use your existing API provider accounts
|
|
192
|
-
- ✅ Pay only for your actual API usage
|
|
193
|
-
- ✅ Full control over costs and performance
|
|
194
|
-
- ✅ No rate limits or usage tracking
|
|
195
|
-
|
|
196
|
-
## 🤖 AI Provider Options
|
|
197
|
-
|
|
198
|
-
MyContext supports multiple AI providers with intelligent fallback:
|
|
199
|
-
|
|
200
|
-
### **Bring Your Own Keys (BYOK)**
|
|
201
|
-
|
|
202
|
-
| Provider | Environment Variable | Best For | Cost |
|
|
203
|
-
| ---------------------- | -------------------------- | -------------------------------- | -------------- |
|
|
204
|
-
| **Qwen3 Coder** | `MYCONTEXT_QWEN_API_KEY` | Free code generation, OpenRouter | **FREE** |
|
|
205
|
-
| **GitHub Models** | `MYCONTEXT_GITHUB_TOKEN` | Fast, high-quality generation | Your API costs |
|
|
206
|
-
| **Claude (Anthropic)** | `MYCONTEXT_CLAUDE_API_KEY` | Complex reasoning, detailed PRDs | Your API costs |
|
|
207
|
-
| **OpenAI** | `MYCONTEXT_OPENAI_API_KEY` | Versatile generation, refinement | Your API costs |
|
|
208
|
-
| **X.AI (Grok)** | `MYCONTEXT_GROK_TOKEN` | Creative tasks, quick iterations | Your API costs |
|
|
209
|
-
|
|
210
|
-
### **MyContext Managed Service**
|
|
211
|
-
|
|
212
|
-
- **Rate Limited**: 10 requests per hour for free tier
|
|
213
|
-
- **Paid Credits**: Purchase credits for unlimited usage
|
|
214
|
-
- **Multi-Provider**: Automatic fallback across providers
|
|
215
|
-
- **Usage Tracking**: Quality improvement and analytics
|
|
216
|
-
|
|
217
|
-
### **Provider Priority Chain**
|
|
218
|
-
|
|
219
|
-
1. **Your API Keys** (highest performance, your costs)
|
|
220
|
-
2. **MyContext Managed Service** (balanced, our costs)
|
|
221
|
-
3. **Qwen3 Coder FREE** (fallback, completely free)
|
|
222
|
-
4. **Basic Templates** (ultimate fallback)
|
|
223
|
-
|
|
224
|
-
## Environment Setup
|
|
225
|
-
|
|
226
|
-
### Option 1: Bring Your Own API Keys (Recommended)
|
|
227
|
-
|
|
228
|
-
Set up your preferred AI provider for best performance and cost control:
|
|
229
|
-
|
|
230
|
-
```bash
|
|
231
|
-
# Qwen3 Coder (FREE via OpenRouter - Recommended!)
|
|
232
|
-
echo 'MYCONTEXT_QWEN_API_KEY=sk-or-xxx' > .mycontext/.env
|
|
233
|
-
|
|
234
|
-
# Or GitHub Models (Fast, high-quality)
|
|
235
|
-
echo 'MYCONTEXT_GITHUB_TOKEN=ghp_xxx' > .mycontext/.env
|
|
236
|
-
|
|
237
|
-
# Or Claude (Best for complex reasoning)
|
|
238
|
-
echo 'MYCONTEXT_CLAUDE_API_KEY=sk-ant-xxx' > .mycontext/.env
|
|
239
|
-
|
|
240
|
-
# Or OpenAI (Most versatile)
|
|
241
|
-
echo 'MYCONTEXT_OPENAI_API_KEY=sk-xxx' > .mycontext/.env
|
|
242
|
-
|
|
243
|
-
# Or X.AI (Creative tasks)
|
|
244
|
-
echo 'MYCONTEXT_GROK_TOKEN=xai-xxx' > .mycontext/.env
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Option 2: Use MyContext Managed Service
|
|
248
|
-
|
|
249
|
-
No setup required! Just start using MyContext:
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
mycontext generate context --description "My project"
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
**Note**: Without API keys, you'll use MyContext's hosted service with rate limits and usage tracking.
|
|
256
|
-
|
|
257
|
-
### Option 3: Local AI Setup (Free & Unlimited)
|
|
258
|
-
|
|
259
|
-
```bash
|
|
260
|
-
# Get Qwen3 Coder API key (FREE)
|
|
261
|
-
# Visit https://openrouter.ai/ and create an account
|
|
262
|
-
# Get your API key and add it to .mycontext/.env
|
|
263
|
-
|
|
264
|
-
# Set up MyContext local AI
|
|
265
|
-
mycontext setup
|
|
266
|
-
|
|
267
|
-
# Verify setup
|
|
268
|
-
mycontext model status
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
## 🧠 **Automatic Context Loading**
|
|
272
|
-
|
|
273
|
-
MyContext commands automatically load context from your project files when no description is provided:
|
|
274
|
-
|
|
275
|
-
```bash
|
|
276
|
-
# These commands automatically use context files
|
|
277
|
-
mycontext generate types # Uses PRD and existing context
|
|
278
|
-
mycontext predict next # Uses project context for predictions
|
|
279
|
-
mycontext enhance Button.tsx # Uses brand and types for enhancements
|
|
280
|
-
mycontext refine LoginForm.tsx # Uses project context for refinements
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Context File Priority
|
|
284
|
-
|
|
285
|
-
When no description is provided, commands load context in this order:
|
|
286
|
-
|
|
287
|
-
1. **PRD** (`.mycontext/01-prd.md`) - Product requirements and project overview
|
|
288
|
-
2. **Types** (`.mycontext/02-types.ts`) - TypeScript type definitions
|
|
289
|
-
3. **User Stories** (`.mycontext/02_user_stories.md`) - User requirements
|
|
290
|
-
4. **Technical Specs** (`.mycontext/03_technical_specs.md`) - Technical details
|
|
291
|
-
5. **Component List** (`.mycontext/04-component-list.json`) - Component architecture
|
|
292
|
-
6. **Brand** (`.mycontext/03-branding.md` or `brand/globals.css`) - Design system
|
|
293
|
-
|
|
294
|
-
### Context Loading Benefits
|
|
295
|
-
|
|
296
|
-
- **No Repetition**: Don't re-enter project details for every command
|
|
297
|
-
- **Consistency**: All commands use the same project context
|
|
298
|
-
- **Efficiency**: Faster workflow with automatic context detection
|
|
299
|
-
- **Accuracy**: Better results with full project understanding
|
|
300
|
-
|
|
301
|
-
## 🎯 **Integration Guide**
|
|
302
|
-
|
|
303
|
-
### Using Generated Types
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
# Move the types folder to your lib directory
|
|
307
|
-
mv .mycontext/types ./lib/
|
|
308
|
-
|
|
309
|
-
# Import types in your components
|
|
310
|
-
import type { User, ApiResponse } from "@/lib/types";
|
|
311
|
-
import { USER_ROLES } from "@/lib/types/enums";
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Using Generated Brand System
|
|
315
|
-
|
|
316
|
-
```bash
|
|
317
|
-
# Copy the CSS to your globals.css
|
|
318
|
-
cp .mycontext/brand/globals.css ./src/app/globals.css
|
|
319
|
-
|
|
320
|
-
# Use the design tokens
|
|
321
|
-
<div className="bg-primary text-primary-foreground p-4 rounded-lg">
|
|
322
|
-
Hello World
|
|
323
|
-
</div>
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
## Key Features
|
|
327
|
-
|
|
328
|
-
### 🤖 **Agent-Driven Development**
|
|
329
|
-
|
|
330
|
-
- **11 Specialized Agents**: Each agent handles specific development tasks
|
|
331
|
-
- **Intelligent Orchestration**: Agents work together seamlessly
|
|
332
|
-
- **Human-in-the-Loop**: Interactive prompts and confirmations
|
|
333
|
-
- **Quality Gates**: Built-in validation and retry mechanisms
|
|
334
|
-
|
|
335
|
-
### 🎯 **Context-Aware Generation**
|
|
336
|
-
|
|
337
|
-
- **Deep Project Understanding**: Analyzes existing codebase patterns
|
|
338
|
-
- **A/B/C/D Context Files**: Comprehensive project specification
|
|
339
|
-
- **Automatic Context Loading**: Commands use project context intelligently
|
|
340
|
-
- **Consistent Results**: Same context produces consistent outputs
|
|
341
|
-
|
|
342
|
-
### 🏗️ **Production-Ready Code**
|
|
343
|
-
|
|
344
|
-
- **TypeScript First**: Complete type system with 5 specialized files
|
|
345
|
-
- **Modern React**: Next.js 15, shadcn/ui, server components
|
|
346
|
-
- **Accessibility**: WCAG compliant components
|
|
347
|
-
- **Testing**: Comprehensive test suites included
|
|
348
|
-
- **Documentation**: Auto-generated component docs
|
|
349
|
-
|
|
350
|
-
### 🎨 **Complete Design System**
|
|
351
|
-
|
|
352
|
-
- **Brand Kit Generation**: Colors, typography, components
|
|
353
|
-
- **CSS Custom Properties**: Theme-able design tokens
|
|
354
|
-
- **Component Library**: Consistent, reusable components
|
|
355
|
-
- **Responsive Design**: Mobile-first approach
|
|
356
|
-
|
|
357
|
-
### 🔧 **Developer Experience**
|
|
358
|
-
|
|
359
|
-
- **Interactive CLI**: Guided workflows with progress indicators
|
|
360
|
-
- **Multiple AI Providers**: Choose your preferred AI service
|
|
361
|
-
- **Fallback Support**: Always works, even without API keys
|
|
362
|
-
- **Extensible Architecture**: Plugin system for custom agents
|
|
363
|
-
|
|
364
|
-
## 🛠️ Development & Contributing
|
|
365
|
-
|
|
366
|
-
### Prerequisites
|
|
367
|
-
|
|
368
|
-
- **Node.js**: 18+ (20+ recommended)
|
|
369
|
-
- **pnpm**: Package manager
|
|
370
|
-
- **Git**: Version control
|
|
371
|
-
|
|
372
|
-
### Local Development
|
|
373
|
-
|
|
374
|
-
```bash
|
|
375
|
-
# Clone the monorepo
|
|
376
|
-
git clone https://github.com/farajabien/mycontext.git
|
|
377
|
-
cd mycontext
|
|
378
|
-
|
|
379
|
-
# Install dependencies
|
|
380
|
-
pnpm install
|
|
381
|
-
|
|
382
|
-
# Build all packages
|
|
383
|
-
pnpm build
|
|
384
|
-
|
|
385
|
-
# Run CLI in development mode
|
|
386
|
-
cd packages/cli
|
|
387
|
-
pnpm dev --help
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
### Project Structure
|
|
391
|
-
|
|
392
|
-
```
|
|
393
|
-
mycontext-monorepo/
|
|
394
|
-
├── packages/
|
|
395
|
-
│ ├── cli/ # Main CLI package
|
|
396
|
-
│ │ ├── src/
|
|
397
|
-
│ │ │ ├── commands/ # CLI command implementations
|
|
398
|
-
│ │ │ ├── agents/ # AI agent implementations
|
|
399
|
-
│ │ │ ├── utils/ # Utility functions
|
|
400
|
-
│ │ │ └── config/ # Configuration files
|
|
401
|
-
│ │ └── docs/ # CLI documentation
|
|
402
|
-
│ └── ui/ # Shared UI components
|
|
403
|
-
├── apps/
|
|
404
|
-
│ └── web/ # Web platform (Next.js)
|
|
405
|
-
└── docs/ # Monorepo documentation
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
### Testing
|
|
409
|
-
|
|
410
|
-
```bash
|
|
411
|
-
# Run all tests
|
|
412
|
-
pnpm test
|
|
413
|
-
|
|
414
|
-
# Run CLI tests specifically
|
|
415
|
-
cd packages/cli && pnpm test
|
|
416
|
-
|
|
417
|
-
# Run with coverage
|
|
418
|
-
pnpm test:coverage
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
### Contributing Guidelines
|
|
422
|
-
|
|
423
|
-
1. **Fork** the repository
|
|
424
|
-
2. **Create** a feature branch (`git checkout -b feature/amazing-feature`)
|
|
425
|
-
3. **Commit** your changes (`git commit -m 'Add amazing feature'`)
|
|
426
|
-
4. **Push** to the branch (`git push origin feature/amazing-feature`)
|
|
427
|
-
5. **Open** a Pull Request
|
|
428
|
-
|
|
429
|
-
### Code Standards
|
|
430
|
-
|
|
431
|
-
- **TypeScript**: Strict type checking enabled
|
|
432
|
-
- **ESLint**: Code quality and consistency
|
|
433
|
-
- **Prettier**: Automatic code formatting
|
|
434
|
-
- **Conventional Commits**: Structured commit messages
|
|
435
|
-
|
|
436
|
-
## 📞 Support & Community
|
|
437
|
-
|
|
438
|
-
### Getting Help
|
|
439
|
-
|
|
440
|
-
- **📧 Email**: hello@fbien.com
|
|
441
|
-
- **🐛 Issues**: [GitHub Issues](https://github.com/farajabien/mycontext/issues)
|
|
442
|
-
- **💬 Discussions**: [GitHub Discussions](https://github.com/farajabien/mycontext/discussions)
|
|
443
|
-
- **📖 Documentation**: [docs.mycontext.fbien.com](https://docs.mycontext.fbien.com)
|
|
444
|
-
|
|
445
|
-
### Community
|
|
446
|
-
|
|
447
|
-
- **Share Components**: Contribute to the component library
|
|
448
|
-
- **Report Bugs**: Help improve stability and reliability
|
|
449
|
-
- **Feature Requests**: Suggest new capabilities and improvements
|
|
450
|
-
- **Beta Testing**: Get early access to new features
|
|
451
|
-
|
|
452
|
-
### Enterprise Support
|
|
453
|
-
|
|
454
|
-
- **Custom Deployments**: On-premise and private cloud options
|
|
455
|
-
- **White-label Solutions**: Custom branding and integration
|
|
456
|
-
- **Dedicated Support**: Priority response and SLAs
|
|
457
|
-
- **Training**: Team onboarding and best practices
|
|
458
|
-
|
|
459
|
-
---
|
|
460
|
-
|
|
461
|
-
**🚀 Ready to transform your development workflow with AI-powered agents?**
|
|
462
|
-
|
|
463
|
-
_Built with ❤️ by the MyContext team - Making AI work for developers, not against them._
|