claude-mpm 4.13.1__py3-none-any.whl → 4.14.0__py3-none-any.whl

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.

Potentially problematic release.


This version of claude-mpm might be problematic. Click here for more details.

Files changed (50) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/PM_INSTRUCTIONS.md +68 -0
  3. claude_mpm/cli/__init__.py +10 -0
  4. claude_mpm/cli/commands/local_deploy.py +536 -0
  5. claude_mpm/cli/parsers/base_parser.py +7 -0
  6. claude_mpm/cli/parsers/local_deploy_parser.py +227 -0
  7. claude_mpm/commands/mpm-agents-detect.md +168 -0
  8. claude_mpm/commands/mpm-agents-recommend.md +214 -0
  9. claude_mpm/commands/mpm-agents.md +75 -1
  10. claude_mpm/commands/mpm-auto-configure.md +217 -0
  11. claude_mpm/commands/mpm-help.md +160 -0
  12. claude_mpm/config/model_config.py +428 -0
  13. claude_mpm/core/interactive_session.py +3 -0
  14. claude_mpm/services/core/interfaces/__init__.py +74 -2
  15. claude_mpm/services/core/interfaces/health.py +172 -0
  16. claude_mpm/services/core/interfaces/model.py +281 -0
  17. claude_mpm/services/core/interfaces/process.py +372 -0
  18. claude_mpm/services/core/interfaces/restart.py +307 -0
  19. claude_mpm/services/core/interfaces/stability.py +260 -0
  20. claude_mpm/services/core/models/__init__.py +35 -0
  21. claude_mpm/services/core/models/health.py +189 -0
  22. claude_mpm/services/core/models/process.py +258 -0
  23. claude_mpm/services/core/models/restart.py +302 -0
  24. claude_mpm/services/core/models/stability.py +264 -0
  25. claude_mpm/services/local_ops/__init__.py +163 -0
  26. claude_mpm/services/local_ops/crash_detector.py +257 -0
  27. claude_mpm/services/local_ops/health_checks/__init__.py +28 -0
  28. claude_mpm/services/local_ops/health_checks/http_check.py +223 -0
  29. claude_mpm/services/local_ops/health_checks/process_check.py +235 -0
  30. claude_mpm/services/local_ops/health_checks/resource_check.py +254 -0
  31. claude_mpm/services/local_ops/health_manager.py +430 -0
  32. claude_mpm/services/local_ops/log_monitor.py +396 -0
  33. claude_mpm/services/local_ops/memory_leak_detector.py +294 -0
  34. claude_mpm/services/local_ops/process_manager.py +595 -0
  35. claude_mpm/services/local_ops/resource_monitor.py +331 -0
  36. claude_mpm/services/local_ops/restart_manager.py +401 -0
  37. claude_mpm/services/local_ops/restart_policy.py +387 -0
  38. claude_mpm/services/local_ops/state_manager.py +371 -0
  39. claude_mpm/services/local_ops/unified_manager.py +600 -0
  40. claude_mpm/services/model/__init__.py +147 -0
  41. claude_mpm/services/model/base_provider.py +365 -0
  42. claude_mpm/services/model/claude_provider.py +412 -0
  43. claude_mpm/services/model/model_router.py +453 -0
  44. claude_mpm/services/model/ollama_provider.py +415 -0
  45. {claude_mpm-4.13.1.dist-info → claude_mpm-4.14.0.dist-info}/METADATA +1 -1
  46. {claude_mpm-4.13.1.dist-info → claude_mpm-4.14.0.dist-info}/RECORD +50 -15
  47. {claude_mpm-4.13.1.dist-info → claude_mpm-4.14.0.dist-info}/WHEEL +0 -0
  48. {claude_mpm-4.13.1.dist-info → claude_mpm-4.14.0.dist-info}/entry_points.txt +0 -0
  49. {claude_mpm-4.13.1.dist-info → claude_mpm-4.14.0.dist-info}/licenses/LICENSE +0 -0
  50. {claude_mpm-4.13.1.dist-info → claude_mpm-4.14.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,217 @@
1
+ # Automatically configure agents based on project detection
2
+
3
+ Automatically detect your project's toolchain and configure the most appropriate agents.
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ /mpm-auto-configure [options]
9
+ ```
10
+
11
+ ## Description
12
+
13
+ This command provides intelligent auto-configuration that:
14
+ 1. Scans your project to detect programming languages, frameworks, and tools
15
+ 2. Recommends the most appropriate agents for your stack
16
+ 3. Optionally deploys the recommended agents with confirmation
17
+
18
+ This is the fastest way to get started with Claude MPM in any project!
19
+
20
+ ## Options
21
+
22
+ - `--preview` - Show what would be configured without making any changes
23
+ - `--yes` - Automatically apply recommendations without prompting
24
+ - `--force` - Force reconfiguration even if agents are already deployed
25
+
26
+ ## Implementation
27
+
28
+ When you run `/mpm-auto-configure`, the PM will:
29
+
30
+ 1. **Detect Your Stack**:
31
+ - Scan for package.json, requirements.txt, Cargo.toml, go.mod, etc.
32
+ - Identify frameworks (FastAPI, Next.js, React, Express, etc.)
33
+ - Detect testing tools (pytest, Jest, Playwright, etc.)
34
+ - Find build tools and deployment configurations
35
+
36
+ 2. **Recommend Agents**:
37
+ - **Essential agents**: Required for your primary stack
38
+ - **Recommended agents**: Complementary agents for full functionality
39
+ - **Optional agents**: Specialized agents for detected tools
40
+
41
+ 3. **Deploy Agents** (with confirmation):
42
+ - Show what will be deployed
43
+ - Request confirmation (unless --yes is used)
44
+ - Deploy agents to your project
45
+ - Verify deployment success
46
+
47
+ ## Examples
48
+
49
+ ### Preview Mode (Recommended First Step)
50
+ ```
51
+ /mpm-auto-configure --preview
52
+ ```
53
+ Shows what would be configured without making changes. Great for understanding recommendations before applying.
54
+
55
+ ### Interactive Configuration
56
+ ```
57
+ /mpm-auto-configure
58
+ ```
59
+ Detect, recommend, and prompt for confirmation before deploying.
60
+
61
+ ### Automatic Configuration
62
+ ```
63
+ /mpm-auto-configure --yes
64
+ ```
65
+ Automatically apply all recommendations without prompting. Best for quick setup.
66
+
67
+ ### Force Reconfiguration
68
+ ```
69
+ /mpm-auto-configure --force
70
+ ```
71
+ Reconfigure agents even if some are already deployed. Useful for stack changes.
72
+
73
+ ## Expected Output
74
+
75
+ ```
76
+ 🤖 Auto-Configuration for Claude MPM
77
+ =====================================
78
+
79
+ Step 1: Detecting Project Stack
80
+ --------------------------------
81
+ ✓ Detected Python 3.11
82
+ ✓ Detected FastAPI 0.104.0
83
+ ✓ Detected pytest 7.4.0
84
+ ✓ Detected Docker configuration
85
+ ✓ Detected Vercel deployment
86
+
87
+ Step 2: Agent Recommendations
88
+ ------------------------------
89
+ Essential Agents (3):
90
+ ✓ fastapi-engineer - FastAPI framework detected
91
+ ✓ python-engineer - Python project support
92
+ ✓ api-qa - API testing and validation
93
+
94
+ Recommended Agents (2):
95
+ ○ docker-ops - Docker configuration found
96
+ ○ vercel-ops - Vercel deployment detected
97
+
98
+ Optional Agents (1):
99
+ ○ playwright-qa - Browser testing capability
100
+
101
+ Step 3: Deploy Agents
102
+ ---------------------
103
+ Deploy 5 agents? (y/n): y
104
+
105
+ Deploying agents...
106
+ ✓ fastapi-engineer deployed
107
+ ✓ python-engineer deployed
108
+ ✓ api-qa deployed
109
+ ✓ docker-ops deployed
110
+ ✓ vercel-ops deployed
111
+
112
+ 🎉 Auto-configuration complete!
113
+ 5 agents deployed successfully.
114
+
115
+ Next steps:
116
+ - Run /mpm-agents to see your deployed agents
117
+ - Start working with specialized agents for your stack
118
+ - Use /mpm-help for more information
119
+ ```
120
+
121
+ ## What Gets Detected
122
+
123
+ ### Languages
124
+ - Python (CPython, PyPy)
125
+ - JavaScript/TypeScript (Node.js, Deno, Bun)
126
+ - Rust
127
+ - Go
128
+ - Java
129
+
130
+ ### Python Frameworks
131
+ - FastAPI
132
+ - Flask
133
+ - Django
134
+ - Starlette
135
+ - Pyramid
136
+
137
+ ### JavaScript/TypeScript Frameworks
138
+ - Next.js
139
+ - React
140
+ - Vue
141
+ - Svelte
142
+ - Angular
143
+ - Express
144
+ - Nest.js
145
+ - Fastify
146
+
147
+ ### Testing Tools
148
+ - pytest (Python)
149
+ - unittest (Python)
150
+ - Jest (JavaScript)
151
+ - Vitest (JavaScript)
152
+ - Playwright (Browser)
153
+ - Cypress (Browser)
154
+
155
+ ### Build Tools
156
+ - Vite
157
+ - Webpack
158
+ - Rollup
159
+ - esbuild
160
+ - Turbopack
161
+
162
+ ### Deployment Platforms
163
+ - Vercel
164
+ - Railway
165
+ - Docker
166
+ - PM2
167
+ - Kubernetes
168
+
169
+ ## Agent Mapping Examples
170
+
171
+ ### Python + FastAPI
172
+ **Essential:**
173
+ - fastapi-engineer
174
+ - python-engineer
175
+ - api-qa
176
+
177
+ **Recommended:**
178
+ - docker-ops (if Docker detected)
179
+ - vercel-ops (if Vercel detected)
180
+
181
+ ### Next.js + React
182
+ **Essential:**
183
+ - nextjs-engineer
184
+ - react-engineer
185
+ - web-qa
186
+
187
+ **Recommended:**
188
+ - playwright-qa (if Playwright detected)
189
+ - vercel-ops (if Vercel detected)
190
+
191
+ ### Full-Stack (FastAPI + React)
192
+ **Essential:**
193
+ - fastapi-engineer
194
+ - python-engineer
195
+ - react-engineer
196
+ - api-qa
197
+ - web-qa
198
+
199
+ **Recommended:**
200
+ - playwright-qa
201
+ - docker-ops
202
+ - local-ops-agent
203
+
204
+ ## Tips
205
+
206
+ 1. **Start with preview**: Always run with `--preview` first to see recommendations
207
+ 2. **Review carefully**: Check that detected stack matches your project
208
+ 3. **Customize later**: You can always deploy/remove agents manually after auto-config
209
+ 4. **Re-run after changes**: Run again with `--force` if you add new frameworks
210
+ 5. **Complementary commands**: Use `/mpm-agents-detect` and `/mpm-agents-recommend` for more details
211
+
212
+ ## Related Commands
213
+
214
+ - `/mpm-agents-detect` - Just show detected toolchain
215
+ - `/mpm-agents-recommend` - Show recommendations without deploying
216
+ - `/mpm-agents` - Manage agents manually
217
+ - `/mpm-help agents` - Learn about manual agent management
@@ -66,6 +66,15 @@ Available Commands:
66
66
  /mpm-agents [list|deploy|remove] [name]
67
67
  Manage agent deployment
68
68
 
69
+ /mpm-auto-configure [--preview] [--yes]
70
+ 🤖 NEW! Automatically configure agents based on your project
71
+
72
+ /mpm-agents-detect
73
+ 🤖 NEW! Detect project toolchain and frameworks
74
+
75
+ /mpm-agents-recommend
76
+ 🤖 NEW! Show recommended agents for your project
77
+
69
78
  /mpm-config [validate|view|status]
70
79
  Manage configuration settings
71
80
 
@@ -118,6 +127,157 @@ Related Commands:
118
127
  /mpm-config Manage configuration
119
128
  ```
120
129
 
130
+ ## Auto-Configuration Commands (NEW!)
131
+
132
+ ### /mpm-auto-configure - Automatic Agent Configuration
133
+
134
+ **Description:**
135
+ Automatically detects your project's toolchain and frameworks, then recommends and optionally deploys the most appropriate agents for your stack.
136
+
137
+ **Usage:**
138
+ ```
139
+ /mpm-auto-configure [options]
140
+ ```
141
+
142
+ **Options:**
143
+ - `--preview` - Show what would be configured without making changes
144
+ - `--yes` - Skip confirmation prompts and apply automatically
145
+ - `--force` - Force reconfiguration even if agents already deployed
146
+
147
+ **Examples:**
148
+ ```
149
+ /mpm-auto-configure --preview # Preview recommendations
150
+ /mpm-auto-configure # Interactive configuration
151
+ /mpm-auto-configure --yes # Auto-apply recommendations
152
+ ```
153
+
154
+ **What it detects:**
155
+ - Programming languages (Python, Node.js, Rust, Go, Java)
156
+ - Frameworks (FastAPI, Flask, Next.js, React, Vue, Express)
157
+ - Testing tools (pytest, Jest, Vitest, Playwright)
158
+ - Build tools (Vite, Webpack, Rollup)
159
+ - Package managers (npm, yarn, pnpm, pip, poetry)
160
+ - Deployment platforms (Vercel, Railway, Docker)
161
+
162
+ **Recommended agents by stack:**
163
+ - **Python + FastAPI**: fastapi-engineer, python-engineer, api-qa
164
+ - **Next.js**: nextjs-engineer, react-engineer, web-qa
165
+ - **React**: react-engineer, web-qa
166
+ - **Full-stack**: Combination of backend + frontend agents
167
+ - **Testing**: playwright-qa, api-qa based on detected test tools
168
+
169
+ ### /mpm-agents-detect - Toolchain Detection
170
+
171
+ **Description:**
172
+ Scans your project to detect programming languages, frameworks, tools, and configuration files.
173
+
174
+ **Usage:**
175
+ ```
176
+ /mpm-agents-detect
177
+ ```
178
+
179
+ **Output:**
180
+ - Detected languages and versions
181
+ - Frameworks and their configurations
182
+ - Testing tools and test frameworks
183
+ - Build tools and bundlers
184
+ - Package managers
185
+ - Deployment configurations
186
+
187
+ **Example:**
188
+ ```
189
+ /mpm-agents-detect
190
+
191
+ Detected Project Stack:
192
+ ======================
193
+ Languages: Python 3.11, Node.js 20.x
194
+ Frameworks: FastAPI 0.104.0, React 18.2.0
195
+ Testing: pytest, Playwright
196
+ Build: Vite 5.0.0
197
+ Package Manager: poetry, npm
198
+ Deployment: Docker, Vercel
199
+ ```
200
+
201
+ ### /mpm-agents-recommend - Agent Recommendations
202
+
203
+ **Description:**
204
+ Based on detected toolchain, shows which agents are recommended for your project with explanations.
205
+
206
+ **Usage:**
207
+ ```
208
+ /mpm-agents-recommend
209
+ ```
210
+
211
+ **Output:**
212
+ - Recommended agents with rationale
213
+ - Agent capabilities and when to use them
214
+ - Suggested deployment order
215
+ - Complementary agent combinations
216
+
217
+ **Example:**
218
+ ```
219
+ /mpm-agents-recommend
220
+
221
+ Recommended Agents for Your Project:
222
+ ===================================
223
+
224
+ Essential Agents:
225
+ ✓ fastapi-engineer - Detected FastAPI framework
226
+ ✓ python-engineer - Python 3.11 project
227
+ ✓ api-qa - API testing and validation
228
+
229
+ Recommended Agents:
230
+ ○ react-engineer - React frontend detected
231
+ ○ web-qa - Web UI testing
232
+ ○ playwright-qa - Playwright tests found
233
+
234
+ Optional Agents:
235
+ ○ docker-ops - Docker configuration found
236
+ ○ vercel-ops - Vercel deployment detected
237
+ ```
238
+
239
+ ## Quick Start with Auto-Configuration
240
+
241
+ For new projects or first-time setup:
242
+
243
+ 1. **Preview what would be configured:**
244
+ ```
245
+ /mpm-auto-configure --preview
246
+ ```
247
+
248
+ 2. **Review recommendations:**
249
+ ```
250
+ /mpm-agents-recommend
251
+ ```
252
+
253
+ 3. **Apply configuration:**
254
+ ```
255
+ /mpm-auto-configure
256
+ ```
257
+
258
+ Or skip straight to auto-apply:
259
+ ```
260
+ /mpm-auto-configure --yes
261
+ ```
262
+
263
+ ## Supported Technology Stacks
264
+
265
+ **Python:**
266
+ - FastAPI, Flask, Django, Starlette
267
+ - pytest, unittest
268
+ - uvicorn, gunicorn
269
+
270
+ **JavaScript/TypeScript:**
271
+ - Next.js, React, Vue, Svelte
272
+ - Express, Nest.js, Fastify
273
+ - Jest, Vitest, Playwright
274
+ - Vite, Webpack, Rollup
275
+
276
+ **Other:**
277
+ - Rust (Cargo, Actix, Rocket)
278
+ - Go (modules, Gin, Echo)
279
+ - Java (Maven, Gradle, Spring Boot)
280
+
121
281
  ## Related Commands
122
282
 
123
283
  - All other `/mpm-*` commands - Access help for any command