mycontext-cli 0.2.11 โ 0.2.12
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 +48 -573
- package/dist/agents/implementations/QASubAgent.d.ts +1 -1
- package/dist/agents/implementations/QASubAgent.d.ts.map +1 -1
- package/dist/agents/implementations/QASubAgent.js +4 -9
- package/dist/agents/implementations/QASubAgent.js.map +1 -1
- package/dist/cli.js +17 -5
- package/dist/cli.js.map +1 -1
- package/dist/commands/generate-components.d.ts +15 -0
- package/dist/commands/generate-components.d.ts.map +1 -1
- package/dist/commands/generate-components.js +347 -25
- package/dist/commands/generate-components.js.map +1 -1
- package/dist/commands/generate.d.ts +13 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +403 -76
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +49 -30
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/model.d.ts.map +1 -1
- package/dist/commands/model.js +134 -96
- package/dist/commands/model.js.map +1 -1
- package/dist/config/ai-providers.json +29 -6
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/githubModelsClient.d.ts +27 -0
- package/dist/utils/githubModelsClient.d.ts.map +1 -0
- package/dist/utils/githubModelsClient.js +280 -0
- package/dist/utils/githubModelsClient.js.map +1 -0
- package/dist/utils/hybridAIClient.d.ts +18 -1
- package/dist/utils/hybridAIClient.d.ts.map +1 -1
- package/dist/utils/hybridAIClient.js +113 -12
- package/dist/utils/hybridAIClient.js.map +1 -1
- package/dist/utils/spinner.d.ts +0 -3
- package/dist/utils/spinner.d.ts.map +1 -1
- package/dist/utils/spinner.js +3 -27
- package/dist/utils/spinner.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,613 +1,88 @@
|
|
|
1
|
-
# MyContext CLI
|
|
1
|
+
# MyContext CLI
|
|
2
2
|
|
|
3
|
-
**AI-Powered Component Generation with shadcn/ui & Next.js
|
|
3
|
+
**AI-Powered Component Generation with shadcn/ui & Next.js** ๐
|
|
4
4
|
|
|
5
|
-
MyContext CLI transforms your project ideas into production-ready
|
|
6
|
-
|
|
7
|
-
> **Why MyContext CLI?** A lightweight, self-contained tool that generates unlimited React components locally with zero ongoing costs. Perfect for developers who want AI-powered development without subscription fees.
|
|
8
|
-
|
|
9
|
-
## ๐ Free During Beta
|
|
10
|
-
|
|
11
|
-
**MyContext CLI is completely free during our beta period** - Because we're building the future of AI-powered development:
|
|
12
|
-
|
|
13
|
-
- **๐ฏ Full Access** - All CLI features and capabilities
|
|
14
|
-
- **๐ Unlimited Generation** - Generate as many components as you need
|
|
15
|
-
- **๐ Local AI** - Zero API costs, complete privacy
|
|
16
|
-
- **๐ก Community Driven** - Help shape the future of MyContext
|
|
17
|
-
|
|
18
|
-
_No costs, no usage limits, no hidden fees. You control your own AI infrastructure._
|
|
5
|
+
MyContext CLI transforms your project ideas into production-ready components with a context-first approach. Generate PRD, types, brand, and a component list, then create standardized shadcn/ui components with optional tests.
|
|
19
6
|
|
|
20
7
|
## ๐ Quick Start
|
|
21
8
|
|
|
22
|
-
###
|
|
9
|
+
### Install
|
|
23
10
|
|
|
24
11
|
```bash
|
|
25
|
-
# Install globally
|
|
26
12
|
npm install -g mycontext-cli
|
|
27
|
-
|
|
28
|
-
# Or use pnpm
|
|
13
|
+
# or
|
|
29
14
|
pnpm add -g mycontext-cli
|
|
30
|
-
|
|
31
|
-
# Or use yarn
|
|
32
|
-
yarn global add mycontext-cli
|
|
33
15
|
```
|
|
34
16
|
|
|
35
|
-
###
|
|
17
|
+
### Enable GitHub Models (recommended)
|
|
36
18
|
|
|
37
19
|
```bash
|
|
38
|
-
#
|
|
39
|
-
mycontext
|
|
20
|
+
# Fine-grained PAT with models:read
|
|
21
|
+
echo 'MYCONTEXT_GITHUB_TOKEN=ghp_xxx' > .mycontext/.env
|
|
40
22
|
|
|
41
|
-
#
|
|
42
|
-
mycontext
|
|
23
|
+
# Optional: list available models
|
|
24
|
+
mycontext model list
|
|
43
25
|
```
|
|
44
26
|
|
|
45
|
-
###
|
|
27
|
+
### Generate
|
|
46
28
|
|
|
47
29
|
```bash
|
|
48
|
-
#
|
|
49
|
-
mycontext init my-app --
|
|
30
|
+
# 1) Init and enter project
|
|
31
|
+
mycontext init my-app --description "Simple app"
|
|
32
|
+
cd my-app
|
|
50
33
|
|
|
51
|
-
#
|
|
52
|
-
mycontext generate context
|
|
53
|
-
|
|
54
|
-
# Validate your PRD
|
|
55
|
-
mycontext validate prd
|
|
56
|
-
|
|
57
|
-
# Generate TypeScript types
|
|
34
|
+
# 2) Context & types
|
|
35
|
+
mycontext generate context --description "Simple app"
|
|
58
36
|
mycontext generate types
|
|
59
37
|
|
|
60
|
-
#
|
|
61
|
-
mycontext generate components-list
|
|
62
|
-
|
|
63
|
-
# Generate React components (using your local AI - FREE)
|
|
64
|
-
mycontext generate-components all
|
|
38
|
+
# 3) Plan components (alias supported: component-list)
|
|
39
|
+
mycontext generate components-list --description "Simple app"
|
|
65
40
|
|
|
66
|
-
#
|
|
67
|
-
mycontext
|
|
68
|
-
|
|
69
|
-
# Check project status
|
|
70
|
-
mycontext status
|
|
41
|
+
# 4) Generate components locally (installs shadcn primitives, adds tests)
|
|
42
|
+
mycontext generate-components all --local --with-tests
|
|
71
43
|
```
|
|
72
44
|
|
|
73
|
-
##
|
|
74
|
-
|
|
75
|
-
### **Micro-Tool, Massive Value**
|
|
76
|
-
|
|
77
|
-
- **Tiny CLI** (~10MB) - Easy to install and update
|
|
78
|
-
- **Local AI Generation** - Zero API costs, unlimited usage
|
|
79
|
-
- **User-Controlled Setup** - Each developer manages their own Ollama
|
|
80
|
-
- **๐ Completely Free** - Full access to all features during beta
|
|
45
|
+
## ๐ฆ Outputs
|
|
81
46
|
|
|
82
|
-
|
|
47
|
+
- `context/prd.md` โ PRD
|
|
48
|
+
- `context/types.ts` โ TypeScript types
|
|
49
|
+
- `context/branding.md` โ Brand guidelines
|
|
50
|
+
- `context/component-list.json` โ Component plan (merged by name when re-generated)
|
|
51
|
+
- `components/` โ Generated components
|
|
52
|
+
- Group directories: kebab-case (e.g., `user-interface/`)
|
|
53
|
+
- Component files: PascalCase (e.g., `GameBoard.tsx`)
|
|
83
54
|
|
|
84
|
-
|
|
85
|
-
- **Specialized Models** - We provide the MyContext-optimized AI model
|
|
86
|
-
- **Health Checks** - CLI validates everything works
|
|
87
|
-
- **Fallback Options** - Cloud APIs available if needed
|
|
88
|
-
|
|
89
|
-
## ๐ Commands
|
|
90
|
-
|
|
91
|
-
### `mycontext setup`
|
|
92
|
-
|
|
93
|
-
Set up your local AI environment with Ollama and specialized models.
|
|
55
|
+
## ๐ง Commands (highlights)
|
|
94
56
|
|
|
95
57
|
```bash
|
|
96
|
-
#
|
|
97
|
-
mycontext
|
|
98
|
-
|
|
99
|
-
# Force local setup
|
|
100
|
-
mycontext setup --local
|
|
101
|
-
|
|
102
|
-
# Skip prompts
|
|
103
|
-
mycontext setup --skip-prompts
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Features:**
|
|
107
|
-
|
|
108
|
-
- **Automatic Ollama Installation** - Installs Ollama runtime for your platform
|
|
109
|
-
- **Specialized Model Creation** - Creates MyContext-optimized AI model
|
|
110
|
-
- **Health Checks** - Validates installation and model functionality
|
|
111
|
-
- **Fallback Options** - Always provides cloud-based alternatives
|
|
112
|
-
|
|
113
|
-
### `mycontext model`
|
|
114
|
-
|
|
115
|
-
Manage your local AI models and monitor performance.
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
# Check model status
|
|
119
|
-
mycontext model status
|
|
120
|
-
|
|
121
|
-
# Test model generation
|
|
122
|
-
mycontext model test
|
|
123
|
-
|
|
124
|
-
# Update model
|
|
125
|
-
mycontext model update
|
|
126
|
-
|
|
127
|
-
# Reset model
|
|
128
|
-
mycontext model reset
|
|
129
|
-
|
|
130
|
-
# View statistics
|
|
131
|
-
mycontext model stats
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### `mycontext init <project-name>`
|
|
135
|
-
|
|
136
|
-
Initialize a new MyContext project with proper directory structure.
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
mycontext init todo-app --description "A simple todo application"
|
|
140
|
-
mycontext init ecommerce-app --description "Online store with shopping cart"
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
**Options:**
|
|
144
|
-
|
|
145
|
-
- `--description <desc>` - Project description
|
|
146
|
-
- `--force` - Force reinitialization
|
|
147
|
-
- `--yes` - Skip all prompts (non-interactive mode)
|
|
148
|
-
|
|
149
|
-
### `mycontext generate <type>`
|
|
150
|
-
|
|
151
|
-
Generate various project assets using AI.
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
# Generate context files
|
|
155
|
-
mycontext generate context
|
|
156
|
-
|
|
157
|
-
# Generate TypeScript types
|
|
58
|
+
# Generate (cloud-first GitHub Models, local fallback)
|
|
59
|
+
mycontext generate context --description "Simple app"
|
|
158
60
|
mycontext generate types
|
|
159
|
-
|
|
160
|
-
# Generate branding guidelines
|
|
161
61
|
mycontext generate brand
|
|
162
|
-
|
|
163
|
-
# Generate component list (AI-driven analysis)
|
|
164
62
|
mycontext generate components-list
|
|
165
63
|
|
|
166
|
-
#
|
|
167
|
-
mycontext generate
|
|
168
|
-
|
|
169
|
-
# Generate app structure
|
|
170
|
-
mycontext generate app-structure
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
**Types:**
|
|
174
|
-
|
|
175
|
-
- `context` - PRD, user stories, technical specifications
|
|
176
|
-
- `types` - TypeScript type definitions
|
|
177
|
-
- `brand` - Branding guidelines and design system
|
|
178
|
-
- `components-list` - AI-driven component planning and grouping
|
|
179
|
-
- `components` - Individual component generation
|
|
180
|
-
- `app-structure` - Application structure and routing
|
|
181
|
-
|
|
182
|
-
### Command Options
|
|
183
|
-
|
|
184
|
-
- `--yes` - Skip all prompts and use defaults
|
|
185
|
-
- `--verbose` - Show detailed output
|
|
186
|
-
- `--debug` - Enable debug logging
|
|
187
|
-
- `--temperature` - Set AI generation temperature (0.1-1.0)
|
|
188
|
-
- `--group` - Specify component group for generation
|
|
189
|
-
- `--prompt` - Custom enhancement prompt
|
|
190
|
-
- `--output` - Output directory for generated files
|
|
191
|
-
|
|
192
|
-
### `mycontext generate-components <target>`
|
|
193
|
-
|
|
194
|
-
Generate React components using AI.
|
|
195
|
-
|
|
196
|
-
```bash
|
|
197
|
-
# Generate all components
|
|
198
|
-
mycontext generate-components all
|
|
199
|
-
|
|
200
|
-
# Generate specific component group
|
|
201
|
-
mycontext generate-components group --group "authentication"
|
|
202
|
-
|
|
203
|
-
# Generate single component
|
|
204
|
-
mycontext generate-components component --name "UserProfile" --description "User profile display component"
|
|
205
|
-
|
|
206
|
-
# Generate with custom temperature
|
|
207
|
-
mycontext generate-components all --temperature 0.7
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
**Options:**
|
|
211
|
-
|
|
212
|
-
- `--group <name>` - Generate specific component group
|
|
213
|
-
- `--all` - Generate all components
|
|
214
|
-
- `--output <path>` - Output directory
|
|
215
|
-
- `--template <name>` - Use specific template
|
|
216
|
-
- `--use-xai` - Use XAI (Grok) for generation
|
|
217
|
-
- `--yes` - Skip prompts
|
|
218
|
-
|
|
219
|
-
### `mycontext enhance <target>`
|
|
220
|
-
|
|
221
|
-
Enhance existing React components with AI-powered improvements.
|
|
222
|
-
|
|
223
|
-
```bash
|
|
224
|
-
# Enhance specific component
|
|
225
|
-
mycontext enhance Button.tsx --prompt "Add loading states"
|
|
226
|
-
|
|
227
|
-
# Enhance all components
|
|
228
|
-
mycontext enhance components --prompt "Improve accessibility"
|
|
229
|
-
|
|
230
|
-
# Enhance with custom temperature
|
|
231
|
-
mycontext enhance components --prompt "Add error handling" --temperature 0.8
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
**Options:**
|
|
235
|
-
|
|
236
|
-
- `--prompt <text>` - Enhancement instructions
|
|
237
|
-
- `--use-xai` - Use XAI (Grok) for enhancement
|
|
238
|
-
- `--temperature <number>` - Generation temperature
|
|
239
|
-
- `--max-tokens <number>` - Maximum tokens
|
|
240
|
-
- `--credits <number>` - Credit limit
|
|
241
|
-
- `--yes` - Skip prompts
|
|
242
|
-
|
|
243
|
-
### `mycontext validate <target>`
|
|
244
|
-
|
|
245
|
-
Validate PRD or other context files for quality and completeness.
|
|
246
|
-
|
|
247
|
-
```bash
|
|
248
|
-
mycontext validate prd
|
|
249
|
-
mycontext validate prd --file path/to/prd.md
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
**Options:**
|
|
253
|
-
|
|
254
|
-
- `--file <path>` - Specific file to validate
|
|
255
|
-
- `--interactive` - Interactive validation mode
|
|
256
|
-
|
|
257
|
-
### `mycontext list [type]`
|
|
258
|
-
|
|
259
|
-
List projects, components, files, or all resources.
|
|
260
|
-
|
|
261
|
-
```bash
|
|
262
|
-
mycontext list all
|
|
263
|
-
mycontext list projects
|
|
264
|
-
mycontext list components
|
|
265
|
-
mycontext list files
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
**Types:**
|
|
269
|
-
|
|
270
|
-
- `all` - List everything (default)
|
|
271
|
-
- `projects` - List all projects
|
|
272
|
-
- `components` - List generated components
|
|
273
|
-
- `files` - List context files
|
|
274
|
-
|
|
275
|
-
**Options:**
|
|
276
|
-
|
|
277
|
-
- `--format <format>` - Output format (table, json, simple)
|
|
278
|
-
|
|
279
|
-
### `mycontext status`
|
|
280
|
-
|
|
281
|
-
Check project status and progress through development phases.
|
|
282
|
-
|
|
283
|
-
```bash
|
|
284
|
-
mycontext status
|
|
285
|
-
mycontext status --detailed
|
|
286
|
-
mycontext status --check-health
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
**Options:**
|
|
290
|
-
|
|
291
|
-
- `--detailed` - Show detailed status information
|
|
292
|
-
- `--check-health` - Perform health checks
|
|
293
|
-
|
|
294
|
-
### `mycontext auth`
|
|
295
|
-
|
|
296
|
-
Authenticate with the MyContext platform for enhanced features.
|
|
297
|
-
|
|
298
|
-
```bash
|
|
299
|
-
mycontext auth
|
|
300
|
-
mycontext auth --yes # Non-interactive mode
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
## ๐ Authentication & Security
|
|
304
|
-
|
|
305
|
-
### Local AI Model Management
|
|
306
|
-
|
|
307
|
-
MyContext CLI includes production-ready security features for managing your local AI environment:
|
|
308
|
-
|
|
309
|
-
```bash
|
|
310
|
-
# Set up local AI environment
|
|
311
|
-
mycontext setup
|
|
312
|
-
|
|
313
|
-
# Check model status
|
|
314
|
-
mycontext model status
|
|
315
|
-
|
|
316
|
-
# Test model generation
|
|
317
|
-
mycontext model test
|
|
64
|
+
# Accepts alias
|
|
65
|
+
mycontext generate component-list
|
|
318
66
|
|
|
319
|
-
#
|
|
320
|
-
mycontext
|
|
67
|
+
# Components
|
|
68
|
+
mycontext generate-components all --local --with-tests
|
|
69
|
+
mycontext generate-components authentication --local
|
|
321
70
|
|
|
322
|
-
#
|
|
323
|
-
mycontext model stats
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
**Security Features:**
|
|
327
|
-
|
|
328
|
-
- **Local AI Only** - Your code never leaves your machine
|
|
329
|
-
- **Specialized Models** - MyContext-optimized AI models for React/Shadcn
|
|
330
|
-
- **No API Keys Required** - Zero external dependencies
|
|
331
|
-
- **Complete Privacy** - All processing happens locally
|
|
332
|
-
- **Model Validation** - CLI validates model functionality and health
|
|
333
|
-
|
|
334
|
-
### Specialized MyContext Models
|
|
335
|
-
|
|
336
|
-
- **mycontext-react** - Specialized for React component generation
|
|
337
|
-
- **mycontext-architect** - Specialized for project architecture and context
|
|
338
|
-
- **Custom Models** - Create your own specialized models for specific use cases
|
|
339
|
-
|
|
340
|
-
## ๐ค Local AI Models
|
|
341
|
-
|
|
342
|
-
### Ollama Integration
|
|
343
|
-
|
|
344
|
-
MyContext CLI includes seamless integration with Ollama for local AI generation:
|
|
345
|
-
|
|
346
|
-
```bash
|
|
347
|
-
# Check if Ollama is available
|
|
348
|
-
mycontext model status
|
|
349
|
-
|
|
350
|
-
# Test local model generation
|
|
351
|
-
mycontext model test
|
|
352
|
-
|
|
353
|
-
# Monitor model performance
|
|
354
|
-
mycontext model stats
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
**Benefits:**
|
|
358
|
-
|
|
359
|
-
- **Zero API Costs** - Generate unlimited components locally
|
|
360
|
-
- **Instant Generation** - No network latency
|
|
361
|
-
- **Complete Privacy** - Your code never leaves your machine
|
|
362
|
-
- **Specialized Models** - Models trained specifically for MyContext patterns
|
|
363
|
-
|
|
364
|
-
### Model Management
|
|
365
|
-
|
|
366
|
-
```bash
|
|
367
|
-
# Update base model
|
|
368
|
-
mycontext model update
|
|
369
|
-
|
|
370
|
-
# Reset to clean state
|
|
371
|
-
mycontext model reset
|
|
372
|
-
|
|
373
|
-
# View detailed statistics
|
|
374
|
-
mycontext model stats --detailed
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
## ๐๏ธ Project Structure
|
|
378
|
-
|
|
379
|
-
When you initialize a project, MyContext creates this structure:
|
|
380
|
-
|
|
381
|
-
```
|
|
382
|
-
my-app/
|
|
383
|
-
โโโ .mycontext/
|
|
384
|
-
โ โโโ config.json # Project configuration
|
|
385
|
-
โโโ context/
|
|
386
|
-
โ โโโ prd.md # Product Requirements Document
|
|
387
|
-
โ โโโ 01_PRD.md # Generated PRD (v2)
|
|
388
|
-
โ โโโ 02_user_stories.md # User stories and workflows
|
|
389
|
-
โ โโโ 03_technical_specs.md # Technical specifications
|
|
390
|
-
โ โโโ types.ts # TypeScript type definitions
|
|
391
|
-
โ โโโ branding.md # Branding guidelines (generated)
|
|
392
|
-
โ โโโ component-list.json # Component planning (generated)
|
|
393
|
-
โ โโโ component-list.md # Component planning (markdown)
|
|
394
|
-
โโโ components/
|
|
395
|
-
โโโ generated/ # Generated React components
|
|
396
|
-
โโโ core-todo/ # Main app components
|
|
397
|
-
โโโ forms-input/ # Form components
|
|
398
|
-
โโโ layout-ui/ # Layout components
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
## ๐ Development Workflow
|
|
402
|
-
|
|
403
|
-
MyContext follows a 4-phase development process:
|
|
404
|
-
|
|
405
|
-
### Phase 1: Context & Architecture
|
|
406
|
-
|
|
407
|
-
```bash
|
|
408
|
-
mycontext init my-app
|
|
409
|
-
mycontext generate context
|
|
410
|
-
mycontext validate prd
|
|
411
|
-
mycontext generate types
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
### Phase 2: Brand & Design System
|
|
415
|
-
|
|
416
|
-
```bash
|
|
417
|
-
mycontext generate brand
|
|
418
|
-
mycontext preview brand
|
|
419
|
-
mycontext generate components-list
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
### Phase 3: Component Generation
|
|
423
|
-
|
|
424
|
-
```bash
|
|
425
|
-
mycontext generate-components all
|
|
71
|
+
# Preview
|
|
426
72
|
mycontext preview components
|
|
427
73
|
```
|
|
428
74
|
|
|
429
|
-
###
|
|
430
|
-
|
|
431
|
-
```bash
|
|
432
|
-
mycontext list components
|
|
433
|
-
mycontext status
|
|
434
|
-
mycontext enhance components
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
## ๐ฏ Features
|
|
438
|
-
|
|
439
|
-
### Enterprise-Grade Security & Authentication
|
|
440
|
-
|
|
441
|
-
- **Production-Ready API Key Management** - AES-256-CBC encryption with PBKDF2
|
|
442
|
-
- **Secure Local Storage** - Encrypted storage in `~/.mycontext/api-keys.json`
|
|
443
|
-
- **Password-Protected Backup/Restore** - Secure key export/import
|
|
444
|
-
- **Environment Variable Integration** - Seamless CI/CD integration
|
|
445
|
-
|
|
446
|
-
### Local AI Generation
|
|
447
|
-
|
|
448
|
-
- **Ollama Integration** - Seamless local AI model management
|
|
449
|
-
- **Specialized Models** - MyContext-optimized AI models
|
|
450
|
-
- **Zero API Costs** - Generate unlimited components locally
|
|
451
|
-
- **Complete Privacy** - Your code never leaves your machine
|
|
452
|
-
- **Performance Monitoring** - Track model performance and usage
|
|
453
|
-
|
|
454
|
-
### Business Model Benefits
|
|
455
|
-
|
|
456
|
-
- **๐ Completely Free** - All features available at no cost during beta
|
|
457
|
-
- **Community Driven** - Help shape the future of MyContext
|
|
458
|
-
- **Unlimited Usage** - No API rate limits or usage quotas
|
|
459
|
-
- **User Control** - Each developer manages their own AI infrastructure
|
|
460
|
-
- **Enterprise Ready** - Teams can run their own Ollama instances
|
|
461
|
-
|
|
462
|
-
### Context-First Development
|
|
463
|
-
|
|
464
|
-
- Start with deep understanding before generating code
|
|
465
|
-
- User story mapping for actionable components
|
|
466
|
-
- Building blocks that work across projects
|
|
467
|
-
|
|
468
|
-
### AI-Powered Generation
|
|
469
|
-
|
|
470
|
-
- **Production-Ready CLI** - Fully functional command-line interface
|
|
471
|
-
- **Specialized Local AI Models** - MyContext-optimized models for specific tasks
|
|
472
|
-
- **Local AI Generation** - Ollama integration for cost-free generation
|
|
473
|
-
- **Dynamic app analysis** - Automatically detects app type and generates appropriate components
|
|
474
|
-
- **Brand-compliant component generation** - Components follow your design system
|
|
475
|
-
- **Type-safe TypeScript interfaces** - Full type safety throughout
|
|
476
|
-
- **Robust Error Handling** - Comprehensive error management and recovery
|
|
477
|
-
- **Component Enhancement** - AI-powered refinement of existing components
|
|
478
|
-
|
|
479
|
-
### Dynamic Component Generation
|
|
480
|
-
|
|
481
|
-
MyContext uses intelligent analysis to generate app-specific components:
|
|
482
|
-
|
|
483
|
-
**Supported App Types:**
|
|
484
|
-
|
|
485
|
-
- **Ecommerce**: ProductList, ShoppingCart, CheckoutForm, OrderHistory, UserProfile
|
|
486
|
-
- **Dashboard**: DashboardOverview, DataGrid, AnalyticsCharts, MetricCards
|
|
487
|
-
- **Productivity**: TodoList, TaskDetail, ProjectManager, CalendarView
|
|
488
|
-
- **Weather**: WeatherForecast, WeatherHistory, LocationPicker
|
|
489
|
-
- **Finance**: TransactionList, BudgetOverview, ExpenseTracker
|
|
490
|
-
- **Social**: UserFeed, ProfileCard, CommentThread, SocialActions
|
|
491
|
-
|
|
492
|
-
**Example:**
|
|
493
|
-
|
|
494
|
-
```bash
|
|
495
|
-
# Ecommerce app
|
|
496
|
-
mycontext init ecommerce-app --description "Online store with shopping cart"
|
|
497
|
-
mycontext generate components-list
|
|
498
|
-
# Generates: ProductList, ShoppingCart, CheckoutForm, OrderHistory, UserProfile
|
|
499
|
-
|
|
500
|
-
# Dashboard app
|
|
501
|
-
mycontext init dashboard-app --description "Analytics dashboard"
|
|
502
|
-
mycontext generate components-list
|
|
503
|
-
# Generates: DashboardOverview, DataGrid, AnalyticsCharts, MetricCards
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
### Production-Ready Features
|
|
507
|
-
|
|
508
|
-
- **Comprehensive Test Suite** - 28+ passing unit tests
|
|
509
|
-
- **TypeScript Strict Mode** - Full type safety and validation
|
|
510
|
-
- **Enhanced Error Handling** - Structured error types with recovery suggestions
|
|
511
|
-
- **Interactive CLI Experience** - Modern prompts with progress feedback
|
|
512
|
-
- **Non-Interactive Mode** - Full automation support for CI/CD
|
|
513
|
-
- **Local AI Models** - Ollama integration for cost-free generation
|
|
514
|
-
|
|
515
|
-
### Project Management
|
|
516
|
-
|
|
517
|
-
- Status tracking through development phases
|
|
518
|
-
- File validation and health checks
|
|
519
|
-
- Resource discovery and listing
|
|
520
|
-
- Component enhancement and iteration
|
|
521
|
-
|
|
522
|
-
## ๐ง Configuration
|
|
523
|
-
|
|
524
|
-
### Global Options
|
|
525
|
-
|
|
526
|
-
- `--verbose` - Enable verbose logging
|
|
527
|
-
- `--project <name>` - Specify project name
|
|
528
|
-
- `--yes` - Skip all prompts (non-interactive mode)
|
|
529
|
-
|
|
530
|
-
### Environment Variables
|
|
531
|
-
|
|
532
|
-
```bash
|
|
533
|
-
# Ollama configuration
|
|
534
|
-
export OLLAMA_BASE_URL="http://localhost:11434"
|
|
535
|
-
|
|
536
|
-
# Optional: Custom MyContext API endpoint (for enterprise features)
|
|
537
|
-
export MYCONTEXT_API_ENDPOINT="https://custom-endpoint.com"
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
## ๐งช Testing
|
|
541
|
-
|
|
542
|
-
```bash
|
|
543
|
-
# Test local setup
|
|
544
|
-
mycontext setup --yes
|
|
545
|
-
mycontext model status
|
|
546
|
-
mycontext model test
|
|
547
|
-
|
|
548
|
-
# Test project initialization
|
|
549
|
-
mycontext init test-app --description "Test application" --yes
|
|
550
|
-
|
|
551
|
-
# Test context generation
|
|
552
|
-
cd test-app
|
|
553
|
-
mycontext generate context --yes
|
|
554
|
-
|
|
555
|
-
# Test validation
|
|
556
|
-
mycontext validate prd --yes
|
|
557
|
-
|
|
558
|
-
# Test component list generation
|
|
559
|
-
mycontext generate components-list --yes
|
|
560
|
-
|
|
561
|
-
# Test component generation (requires Ollama)
|
|
562
|
-
mycontext generate-components all --yes
|
|
563
|
-
|
|
564
|
-
# Test component enhancement
|
|
565
|
-
mycontext enhance components --prompt "Add loading states" --yes
|
|
566
|
-
|
|
567
|
-
# Test status checking
|
|
568
|
-
mycontext status --detailed --yes
|
|
569
|
-
|
|
570
|
-
# Clean up
|
|
571
|
-
cd ..
|
|
572
|
-
rm -rf test-app
|
|
573
|
-
```
|
|
574
|
-
|
|
575
|
-
### Production Testing
|
|
576
|
-
|
|
577
|
-
```bash
|
|
578
|
-
# Test with Ollama installed
|
|
579
|
-
mycontext setup
|
|
580
|
-
mycontext init production-test --description "Production testing app"
|
|
581
|
-
cd production-test
|
|
582
|
-
|
|
583
|
-
# Test full workflow
|
|
584
|
-
mycontext generate context
|
|
585
|
-
mycontext validate prd
|
|
586
|
-
mycontext generate types
|
|
587
|
-
mycontext generate components-list
|
|
588
|
-
mycontext generate-components all
|
|
589
|
-
mycontext status --detailed
|
|
590
|
-
|
|
591
|
-
# Test component enhancement
|
|
592
|
-
mycontext enhance components --prompt "Improve accessibility"
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
## ๐ค Contributing
|
|
596
|
-
|
|
597
|
-
1. Fork the repository
|
|
598
|
-
2. Create a feature branch
|
|
599
|
-
3. Make your changes
|
|
600
|
-
4. Add tests if applicable
|
|
601
|
-
5. Submit a pull request
|
|
602
|
-
|
|
603
|
-
## ๐ License
|
|
604
|
-
|
|
605
|
-
MIT License - see [LICENSE](LICENSE) for details.
|
|
606
|
-
|
|
607
|
-
---
|
|
75
|
+
### Flags & behavior
|
|
608
76
|
|
|
609
|
-
|
|
77
|
+
- `--description`, `--context-file`: supply input context
|
|
78
|
+
- `--model`, `--models`/`--use-models`/`--model-candidates`: model override/fallbacks
|
|
79
|
+
- `--local`: generate components without auth; remote storage is skipped silently
|
|
80
|
+
- `--with-tests`: scaffold Jest + RTL and generate per-component tests
|
|
81
|
+
- Component list saves to `context/component-list.json` and merges by group/component name
|
|
82
|
+
- Neutral fallback: if AI times out for component-list, a valid skeleton is written so you can edit and re-run
|
|
610
83
|
|
|
611
|
-
|
|
84
|
+
## ๐ Notes
|
|
612
85
|
|
|
613
|
-
|
|
86
|
+
- Set `MYCONTEXT_GITHUB_TOKEN` (models:read) in `.mycontext/.env` for GitHub Models.
|
|
87
|
+
- Standardized naming ensures clean imports and paths.
|
|
88
|
+
- For advanced envs, see the repo `env.example`.
|
|
@@ -11,7 +11,7 @@ export declare class QASubAgent implements SubAgent<QAValidationInput, QAValidat
|
|
|
11
11
|
personality: string;
|
|
12
12
|
llmProvider: string;
|
|
13
13
|
expertise: string[];
|
|
14
|
-
private
|
|
14
|
+
private ai;
|
|
15
15
|
constructor();
|
|
16
16
|
run(input: QAValidationInput): Promise<QAValidationOutput>;
|
|
17
17
|
validate(input: QAValidationInput): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QASubAgent.d.ts","sourceRoot":"","sources":["../../../src/agents/implementations/QASubAgent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAGhC,qBAAa,UACX,YAAW,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAE1D,IAAI,SAAgB;IACpB,WAAW,SACoE;IAC/E,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"QASubAgent.d.ts","sourceRoot":"","sources":["../../../src/agents/implementations/QASubAgent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAGhC,qBAAa,UACX,YAAW,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAE1D,IAAI,SAAgB;IACpB,WAAW,SACoE;IAC/E,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,CAAiB;;IAcrB,GAAG,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAyB1D,QAAQ,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpD,SAAS,IAAI,OAAO,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;QACnD,OAAO,CAAC,EAAE,IAAI,CAAC;QACf,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;YASY,yBAAyB;YAuCzB,uBAAuB;YAsCvB,kBAAkB;YA6BlB,gBAAgB;YAgChB,aAAa;IA8B3B;;OAEG;IACH,OAAO,CAAC,aAAa;IA8CrB;;OAEG;IACH,OAAO,CAAC,eAAe;CA+CxB"}
|