mycontext-cli 2.0.6 → 2.0.7
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 +10 -9
- package/dist/package.json +6 -5
- package/dist/utils/mcpTools.d.ts +22 -21
- package/dist/utils/mcpTools.d.ts.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -20,16 +20,17 @@ mycontext init my-app
|
|
|
20
20
|
# 2. Generate context files (PRD, features, etc.)
|
|
21
21
|
mycontext generate-context-files --description "Your app idea"
|
|
22
22
|
|
|
23
|
-
# 3.
|
|
23
|
+
# 3. Component list is generated automatically
|
|
24
|
+
# 4. Compile PRD (requires approval)
|
|
24
25
|
mycontext compile-prd
|
|
25
26
|
|
|
26
|
-
#
|
|
27
|
+
# 5. Generate components with validation
|
|
27
28
|
mycontext generate-components all --with-tests
|
|
28
29
|
|
|
29
|
-
#
|
|
30
|
+
# 6. Preview components visually
|
|
30
31
|
mycontext preview components
|
|
31
32
|
|
|
32
|
-
#
|
|
33
|
+
# 7. Build complete app when ready
|
|
33
34
|
mycontext build-app --interactive
|
|
34
35
|
```
|
|
35
36
|
|
|
@@ -38,7 +39,7 @@ mycontext build-app --interactive
|
|
|
38
39
|
**Start Small, Scale Gradually:**
|
|
39
40
|
|
|
40
41
|
1. **Context Files** → Define your app (PRD, features, technical specs)
|
|
41
|
-
2. **Component List** → AI generates list of needed components
|
|
42
|
+
2. **Component List** → AI automatically generates list of needed components
|
|
42
43
|
3. **Build Strategy** → Choose how to approach development
|
|
43
44
|
4. **Component Generation** → Build components one by one with validation
|
|
44
45
|
5. **Visual Preview** → See components in browser before integration
|
|
@@ -160,13 +161,13 @@ mycontext health-check # Verify setup
|
|
|
160
161
|
|
|
161
162
|
## 📚 Documentation
|
|
162
163
|
|
|
163
|
-
- [Getting Started](https://github.com/farajabien/mycontext-
|
|
164
|
-
- [Component Generation](https://github.com/farajabien/mycontext-
|
|
165
|
-
- [Build Strategies](https://github.com/farajabien/mycontext-
|
|
164
|
+
- [Getting Started](https://github.com/farajabien/mycontext-cli#quick-start)
|
|
165
|
+
- [Component Generation](https://github.com/farajabien/mycontext-cli#commands)
|
|
166
|
+
- [Build Strategies](https://github.com/farajabien/mycontext-cli#philosophy-component-first-development)
|
|
166
167
|
|
|
167
168
|
## 🤝 Contributing
|
|
168
169
|
|
|
169
|
-
|
|
170
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
170
171
|
|
|
171
172
|
## 📄 License
|
|
172
173
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mycontext-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Component-first visual builder with zero-error guarantees. Generate and validate React/Next.js components one at a time, preview them visually, then scale to complete applications using Claude Agent SDK.",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
|
-
"url": "git+https://github.com/farajabien/mycontext.git"
|
|
43
|
+
"url": "git+https://github.com/farajabien/mycontext-cli.git"
|
|
44
44
|
},
|
|
45
|
-
"homepage": "https://
|
|
45
|
+
"homepage": "https://github.com/farajabien/mycontext-cli#readme",
|
|
46
46
|
"bugs": {
|
|
47
|
-
"url": "https://github.com/farajabien/mycontext/issues"
|
|
47
|
+
"url": "https://github.com/farajabien/mycontext-cli/issues"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@anthropic-ai/claude-agent-sdk": "^0.1.1",
|
|
@@ -82,5 +82,6 @@
|
|
|
82
82
|
"dist/",
|
|
83
83
|
"README.md",
|
|
84
84
|
"package.json"
|
|
85
|
-
]
|
|
85
|
+
],
|
|
86
|
+
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
|
86
87
|
}
|
package/dist/utils/mcpTools.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* with MyContext-specific functionality.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
+
import * as fs from 'fs-extra';
|
|
8
9
|
/**
|
|
9
10
|
* Analyze React component structure and dependencies
|
|
10
11
|
*/
|
|
@@ -20,7 +21,7 @@ export declare const analyzeComponentTool: {
|
|
|
20
21
|
filePath: string;
|
|
21
22
|
checkTypes?: boolean | undefined;
|
|
22
23
|
checkImports?: boolean | undefined;
|
|
23
|
-
}, extra: unknown) => Promise<
|
|
24
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Validate PRD structure and completeness
|
|
@@ -33,7 +34,7 @@ export declare const validatePRDTool: {
|
|
|
33
34
|
};
|
|
34
35
|
handler: (args: {
|
|
35
36
|
prdPath: string;
|
|
36
|
-
}, extra: unknown) => Promise<
|
|
37
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
40
|
* Check TypeScript types in generated code
|
|
@@ -48,7 +49,7 @@ export declare const checkTypesTool: {
|
|
|
48
49
|
handler: (args: {
|
|
49
50
|
targetPath: string;
|
|
50
51
|
strict?: boolean | undefined;
|
|
51
|
-
}, extra: unknown) => Promise<
|
|
52
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
54
55
|
* Generate component documentation
|
|
@@ -63,7 +64,7 @@ export declare const generateDocsTool: {
|
|
|
63
64
|
handler: (args: {
|
|
64
65
|
componentPath: string;
|
|
65
66
|
outputPath?: string | undefined;
|
|
66
|
-
}, extra: unknown) => Promise<
|
|
67
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
67
68
|
};
|
|
68
69
|
/**
|
|
69
70
|
* Detect existing validated components in the project
|
|
@@ -78,7 +79,7 @@ export declare const detectExistingComponentsTool: {
|
|
|
78
79
|
handler: (args: {
|
|
79
80
|
projectPath: string;
|
|
80
81
|
includeValidation?: boolean | undefined;
|
|
81
|
-
}, extra: unknown) => Promise<
|
|
82
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
82
83
|
};
|
|
83
84
|
/**
|
|
84
85
|
* Map components to routes intelligently
|
|
@@ -111,7 +112,7 @@ export declare const mapComponentsToRoutesTool: {
|
|
|
111
112
|
}[];
|
|
112
113
|
architectureType: "nextjs-app-router" | "nextjs-pages" | "react-spa";
|
|
113
114
|
prdContext?: string | undefined;
|
|
114
|
-
}, extra: unknown) => Promise<
|
|
115
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
115
116
|
};
|
|
116
117
|
/**
|
|
117
118
|
* Generate scaffolding for existing components
|
|
@@ -134,7 +135,7 @@ export declare const generateScaffoldingTool: {
|
|
|
134
135
|
generateHooks: boolean;
|
|
135
136
|
generateLayouts: boolean;
|
|
136
137
|
componentMappings?: any;
|
|
137
|
-
}, extra: unknown) => Promise<
|
|
138
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
138
139
|
};
|
|
139
140
|
/**
|
|
140
141
|
* Get all available MCP tools
|
|
@@ -151,7 +152,7 @@ export declare function getAllMCPTools(): ({
|
|
|
151
152
|
filePath: string;
|
|
152
153
|
checkTypes?: boolean | undefined;
|
|
153
154
|
checkImports?: boolean | undefined;
|
|
154
|
-
}, extra: unknown) => Promise<
|
|
155
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
155
156
|
} | {
|
|
156
157
|
name: string;
|
|
157
158
|
description: string;
|
|
@@ -160,7 +161,7 @@ export declare function getAllMCPTools(): ({
|
|
|
160
161
|
};
|
|
161
162
|
handler: (args: {
|
|
162
163
|
prdPath: string;
|
|
163
|
-
}, extra: unknown) => Promise<
|
|
164
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
164
165
|
} | {
|
|
165
166
|
name: string;
|
|
166
167
|
description: string;
|
|
@@ -171,7 +172,7 @@ export declare function getAllMCPTools(): ({
|
|
|
171
172
|
handler: (args: {
|
|
172
173
|
targetPath: string;
|
|
173
174
|
strict?: boolean | undefined;
|
|
174
|
-
}, extra: unknown) => Promise<
|
|
175
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
175
176
|
} | {
|
|
176
177
|
name: string;
|
|
177
178
|
description: string;
|
|
@@ -182,7 +183,7 @@ export declare function getAllMCPTools(): ({
|
|
|
182
183
|
handler: (args: {
|
|
183
184
|
componentPath: string;
|
|
184
185
|
outputPath?: string | undefined;
|
|
185
|
-
}, extra: unknown) => Promise<
|
|
186
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
186
187
|
} | {
|
|
187
188
|
name: string;
|
|
188
189
|
description: string;
|
|
@@ -193,7 +194,7 @@ export declare function getAllMCPTools(): ({
|
|
|
193
194
|
handler: (args: {
|
|
194
195
|
projectPath: string;
|
|
195
196
|
includeValidation?: boolean | undefined;
|
|
196
|
-
}, extra: unknown) => Promise<
|
|
197
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
197
198
|
} | {
|
|
198
199
|
name: string;
|
|
199
200
|
description: string;
|
|
@@ -222,7 +223,7 @@ export declare function getAllMCPTools(): ({
|
|
|
222
223
|
}[];
|
|
223
224
|
architectureType: "nextjs-app-router" | "nextjs-pages" | "react-spa";
|
|
224
225
|
prdContext?: string | undefined;
|
|
225
|
-
}, extra: unknown) => Promise<
|
|
226
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
226
227
|
} | {
|
|
227
228
|
name: string;
|
|
228
229
|
description: string;
|
|
@@ -241,7 +242,7 @@ export declare function getAllMCPTools(): ({
|
|
|
241
242
|
generateHooks: boolean;
|
|
242
243
|
generateLayouts: boolean;
|
|
243
244
|
componentMappings?: any;
|
|
244
|
-
}, extra: unknown) => Promise<
|
|
245
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
245
246
|
})[];
|
|
246
247
|
/**
|
|
247
248
|
* Get MCP tools by name
|
|
@@ -258,7 +259,7 @@ export declare function getMCPToolByName(name: string): {
|
|
|
258
259
|
filePath: string;
|
|
259
260
|
checkTypes?: boolean | undefined;
|
|
260
261
|
checkImports?: boolean | undefined;
|
|
261
|
-
}, extra: unknown) => Promise<
|
|
262
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
262
263
|
} | {
|
|
263
264
|
name: string;
|
|
264
265
|
description: string;
|
|
@@ -267,7 +268,7 @@ export declare function getMCPToolByName(name: string): {
|
|
|
267
268
|
};
|
|
268
269
|
handler: (args: {
|
|
269
270
|
prdPath: string;
|
|
270
|
-
}, extra: unknown) => Promise<
|
|
271
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
271
272
|
} | {
|
|
272
273
|
name: string;
|
|
273
274
|
description: string;
|
|
@@ -278,7 +279,7 @@ export declare function getMCPToolByName(name: string): {
|
|
|
278
279
|
handler: (args: {
|
|
279
280
|
targetPath: string;
|
|
280
281
|
strict?: boolean | undefined;
|
|
281
|
-
}, extra: unknown) => Promise<
|
|
282
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
282
283
|
} | {
|
|
283
284
|
name: string;
|
|
284
285
|
description: string;
|
|
@@ -289,7 +290,7 @@ export declare function getMCPToolByName(name: string): {
|
|
|
289
290
|
handler: (args: {
|
|
290
291
|
componentPath: string;
|
|
291
292
|
outputPath?: string | undefined;
|
|
292
|
-
}, extra: unknown) => Promise<
|
|
293
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
293
294
|
} | {
|
|
294
295
|
name: string;
|
|
295
296
|
description: string;
|
|
@@ -300,7 +301,7 @@ export declare function getMCPToolByName(name: string): {
|
|
|
300
301
|
handler: (args: {
|
|
301
302
|
projectPath: string;
|
|
302
303
|
includeValidation?: boolean | undefined;
|
|
303
|
-
}, extra: unknown) => Promise<
|
|
304
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
304
305
|
} | {
|
|
305
306
|
name: string;
|
|
306
307
|
description: string;
|
|
@@ -329,7 +330,7 @@ export declare function getMCPToolByName(name: string): {
|
|
|
329
330
|
}[];
|
|
330
331
|
architectureType: "nextjs-app-router" | "nextjs-pages" | "react-spa";
|
|
331
332
|
prdContext?: string | undefined;
|
|
332
|
-
}, extra: unknown) => Promise<
|
|
333
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
333
334
|
} | {
|
|
334
335
|
name: string;
|
|
335
336
|
description: string;
|
|
@@ -348,6 +349,6 @@ export declare function getMCPToolByName(name: string): {
|
|
|
348
349
|
generateHooks: boolean;
|
|
349
350
|
generateLayouts: boolean;
|
|
350
351
|
componentMappings?: any;
|
|
351
|
-
}, extra: unknown) => Promise<
|
|
352
|
+
}, extra: unknown) => Promise<fs.JsonReadOptions>;
|
|
352
353
|
} | undefined;
|
|
353
354
|
//# sourceMappingURL=mcpTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpTools.d.ts","sourceRoot":"","sources":["../../src/utils/mcpTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"mcpTools.d.ts","sourceRoot":"","sources":["../../src/utils/mcpTools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAI/B;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAgFhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;CAkG3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;CAqF1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;CA0F5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;CA0KxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;CA6MnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAU7B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAG5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mycontext-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Component-first visual builder with zero-error guarantees. Generate and validate React/Next.js components one at a time, preview them visually, then scale to complete applications using Claude Agent SDK.",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
|
-
"url": "git+https://github.com/farajabien/mycontext.git"
|
|
43
|
+
"url": "git+https://github.com/farajabien/mycontext-cli.git"
|
|
44
44
|
},
|
|
45
|
-
"homepage": "https://
|
|
45
|
+
"homepage": "https://github.com/farajabien/mycontext-cli#readme",
|
|
46
46
|
"bugs": {
|
|
47
|
-
"url": "https://github.com/farajabien/mycontext/issues"
|
|
47
|
+
"url": "https://github.com/farajabien/mycontext-cli/issues"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@anthropic-ai/claude-agent-sdk": "^0.1.1",
|
|
@@ -82,5 +82,6 @@
|
|
|
82
82
|
"dist/",
|
|
83
83
|
"README.md",
|
|
84
84
|
"package.json"
|
|
85
|
-
]
|
|
85
|
+
],
|
|
86
|
+
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
|
|
86
87
|
}
|