mycontext-cli 1.0.81 → 1.0.83

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 CHANGED
@@ -39,6 +39,8 @@ mycontext generate-components all --with-tests
39
39
  - **⚡ Fast Setup**: Initialize projects in seconds with Next.js, TypeScript, and Tailwind CSS
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
+ - **🧠 Interactive Strategy Planning**: AI-powered build strategy recommendations through guided questions
43
+ - **🎯 Smart Planning**: Get personalized development approach recommendations
42
44
  - **🔧 Developer-Friendly**: Built-in validation, testing, and preview capabilities
43
45
  - **🆓 Free Tier**: Use Qwen3 Coder model for free testing, or premium X.AI/Claude for production
44
46
 
@@ -80,6 +82,132 @@ mycontext list [type] # List components, projects, or files
80
82
  mycontext promote # Promote components to production
81
83
  ```
82
84
 
85
+ ### Build Strategy Planning
86
+
87
+ ```bash
88
+ mycontext build-strategy # Interactive strategy selection
89
+ mycontext build-strategy --recommend # Get AI-powered strategy recommendations
90
+ mycontext build-strategy --plan # Generate detailed build plan
91
+ mycontext build-strategy --tasks # Generate task list for current phase
92
+ mycontext build-strategy --compare # Compare all available strategies
93
+ mycontext build-strategy --context # Show loaded project context
94
+ mycontext build-strategy --list # List all saved strategy files
95
+ mycontext build-strategy --load <type> # Load saved strategy data
96
+ ```
97
+
98
+ ## Build Strategy Planning
99
+
100
+ MyContext's **AI-Powered Build Strategy** feature helps you choose the right development approach for your project through interactive questions and AI-generated recommendations.
101
+
102
+ ### How It Works
103
+
104
+ 1. **Interactive Questions**: Asks about your project type, complexity, timeline, and team size
105
+ 2. **AI Processing**: Uses AI to analyze your answers and project context
106
+ 3. **Strategic Recommendations**: Generates personalized development strategies
107
+ 4. **Strategy Comparison**: Shows different approaches with pros/cons and timelines
108
+
109
+ ### Available Strategies
110
+
111
+ - **🏗️ Foundation First**: Build core infrastructure first (auth, DB, architecture)
112
+ - **🎯 Vertical Slice**: Build complete user journeys end-to-end
113
+ - **📊 Horizontal Slice**: Build feature by feature across the app
114
+ - **🔄 Iterative Scaffolding**: Small chunks everywhere, refine later
115
+ - **⚡ Hybrid Approach**: Combines multiple strategies based on project needs
116
+
117
+ ### Interactive Strategy Selection
118
+
119
+ The system provides:
120
+
121
+ - **Project Type Selection**: Choose from client work, personal projects, team development, etc.
122
+ - **Complexity Assessment**: Simple, medium, or complex application classification
123
+ - **Timeline Planning**: Urgent, moderate, or flexible development timelines
124
+ - **Team Size Consideration**: Solo developer, small team, or large team approaches
125
+ - **AI Recommendations**: Personalized strategy suggestions based on your answers
126
+
127
+ ### Example Workflow
128
+
129
+ ```bash
130
+ $ mycontext build-strategy --recommend
131
+
132
+ 🎯 Getting AI-Powered Strategy Recommendations
133
+
134
+ ? What type of project are you building?
135
+ ❯ Client Work
136
+ Personal Project
137
+ Team Development
138
+ MVP Development
139
+ Enterprise Application
140
+
141
+ ? How complex is your application?
142
+ ❯ Simple (few features, single user type)
143
+ Medium (multiple features, some complexity)
144
+ Complex (many features, multiple user types)
145
+
146
+ ? What's your timeline?
147
+ ❯ Urgent (need demo ASAP)
148
+ Moderate (balanced approach)
149
+ Flexible (quality over speed)
150
+
151
+ ? What's your team size?
152
+ ❯ Solo developer
153
+ Small team (2-5 people)
154
+ Large team (6+ people)
155
+
156
+ ✅ Recommended Strategies:
157
+
158
+ 🎯 Vertical Slice
159
+ Build complete user journeys end-to-end
160
+ Time to first demo: 2-3 weeks
161
+ Complexity: medium
162
+
163
+ 💡 Reasoning:
164
+ Vertical slice approach recommended for balanced development with quick user value
165
+
166
+ 💾 Saved to: /path/to/project/.mycontext/build-strategy-recommendations-2024-01-15.json
167
+ ```
168
+
169
+ ### Strategy Data Management
170
+
171
+ All generated strategies are automatically saved as JSON files in `.mycontext/` for easy access and project tracking:
172
+
173
+ ```bash
174
+ # List all saved strategy files
175
+ mycontext build-strategy --list
176
+
177
+ # Load specific strategy data
178
+ mycontext build-strategy --load recommendations
179
+ mycontext build-strategy --load plan
180
+ mycontext build-strategy --load tasks
181
+ mycontext build-strategy --load comparison
182
+ ```
183
+
184
+ **File Structure:**
185
+
186
+ ```
187
+ .mycontext/
188
+ ├── build-strategy-recommendations-2024-01-15.json
189
+ ├── build-strategy-plan-2024-01-15.json
190
+ ├── build-strategy-tasks-2024-01-15.json
191
+ └── build-strategy-comparison-2024-01-15.json
192
+ ```
193
+
194
+ **TypeScript Integration:**
195
+
196
+ ```typescript
197
+ import { BuildStrategyManager } from "./buildStrategyManager";
198
+
199
+ const manager = new BuildStrategyManager();
200
+
201
+ // Load latest recommendations
202
+ const recommendations = await manager.loadStrategyData("recommendations");
203
+
204
+ // Load specific date
205
+ const plan = await manager.loadStrategyData("plan", "2024-01-15");
206
+
207
+ // List all available files
208
+ const files = await manager.listStrategyFiles();
209
+ ```
210
+
83
211
  ## Configuration
84
212
 
85
213
  ### AI Providers
@@ -156,6 +284,25 @@ mycontext generate-components authentication
156
284
  mycontext build-app --description "E-commerce platform" --interactive
157
285
  ```
158
286
 
287
+ ### Plan Your Development Strategy
288
+
289
+ ```bash
290
+ # Get AI-powered strategy recommendations
291
+ mycontext build-strategy --recommend
292
+
293
+ # Generate detailed build plan
294
+ mycontext build-strategy --plan --strategy vertical-slice
295
+
296
+ # Get task list for current phase
297
+ mycontext build-strategy --tasks --strategy foundation-first --phase 1
298
+
299
+ # Compare all strategies
300
+ mycontext build-strategy --compare
301
+
302
+ # Show project context analysis
303
+ mycontext build-strategy --context
304
+ ```
305
+
159
306
  ## Documentation
160
307
 
161
308
  - [Full Documentation](https://mycontext.fbien.com/docs)
@@ -0,0 +1,99 @@
1
+ import { SubAgent } from "../interfaces/SubAgent";
2
+ export interface BuildStrategyInput {
3
+ projectPath: string;
4
+ strategyType?: "recommend" | "plan" | "tasks" | "compare";
5
+ specificStrategy?: string;
6
+ phaseNumber?: number;
7
+ userPreferences?: {
8
+ projectType: "client" | "personal" | "team" | "mvp" | "enterprise";
9
+ complexity: "simple" | "medium" | "complex";
10
+ userRoles: "single" | "multiple";
11
+ timeline: "urgent" | "moderate" | "flexible";
12
+ teamSize: "solo" | "small" | "large";
13
+ };
14
+ }
15
+ export interface BuildStrategyOutput {
16
+ strategy: {
17
+ id: string;
18
+ name: string;
19
+ description: string;
20
+ icon: string;
21
+ complexity: "low" | "medium" | "high";
22
+ timeToFirstDemo: string;
23
+ bestFor: string[];
24
+ pros: string[];
25
+ cons: string[];
26
+ phases: BuildPhase[];
27
+ };
28
+ recommendations?: {
29
+ recommended: any[];
30
+ reasoning: string;
31
+ alternatives: any[];
32
+ };
33
+ plan?: {
34
+ strategy: any;
35
+ plan: any[];
36
+ totalDuration: string;
37
+ milestones: string[];
38
+ };
39
+ taskList?: {
40
+ phase: BuildPhase;
41
+ tasks: TaskDetail[];
42
+ };
43
+ contextAnalysis: {
44
+ projectName: string;
45
+ description: string;
46
+ components: string[];
47
+ userRoles: string[];
48
+ techStack: string[];
49
+ contextCompleteness: number;
50
+ accuracyLevel: "excellent" | "good" | "limited";
51
+ };
52
+ llmInsights: {
53
+ projectComplexity: string;
54
+ riskFactors: string[];
55
+ successFactors: string[];
56
+ customRecommendations: string[];
57
+ };
58
+ }
59
+ export interface BuildPhase {
60
+ phase: number;
61
+ name: string;
62
+ duration: string;
63
+ tasks: string[];
64
+ deliverables: string[];
65
+ successCriteria: string;
66
+ }
67
+ export interface TaskDetail {
68
+ id: string;
69
+ title: string;
70
+ description: string;
71
+ priority: "high" | "medium" | "low";
72
+ estimatedTime: string;
73
+ dependencies: string[];
74
+ deliverables: string[];
75
+ }
76
+ export declare class BuildStrategyAgent implements SubAgent<BuildStrategyInput, BuildStrategyOutput> {
77
+ name: string;
78
+ description: string;
79
+ personality: string;
80
+ llmProvider: string;
81
+ expertise: string[];
82
+ private aiClient;
83
+ private contextLoader;
84
+ constructor();
85
+ run(input: BuildStrategyInput): Promise<BuildStrategyOutput>;
86
+ validate(input: BuildStrategyInput): Promise<boolean>;
87
+ cleanup(): Promise<void>;
88
+ getStatus(): Promise<any>;
89
+ private analyzeProjectContext;
90
+ private generateLLMInsights;
91
+ private generateRecommendations;
92
+ private generateBuildPlan;
93
+ private generateTaskList;
94
+ private generateComparison;
95
+ private getDefaultStrategy;
96
+ private getDefaultPhase;
97
+ private getDefaultTask;
98
+ }
99
+ //# sourceMappingURL=BuildStrategyAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuildStrategyAgent.d.ts","sourceRoot":"","sources":["../../../src/agents/implementations/BuildStrategyAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAOlD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE;QAChB,WAAW,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;QACnE,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;QAC5C,SAAS,EAAE,QAAQ,GAAG,UAAU,CAAC;QACjC,QAAQ,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;QAC7C,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;KACtC,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;QACtC,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,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