claude-mpm 4.1.8__py3-none-any.whl → 4.1.10__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.
Files changed (103) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/INSTRUCTIONS.md +26 -1
  3. claude_mpm/agents/agents_metadata.py +57 -0
  4. claude_mpm/agents/templates/.claude-mpm/memories/README.md +17 -0
  5. claude_mpm/agents/templates/.claude-mpm/memories/engineer_memories.md +3 -0
  6. claude_mpm/agents/templates/agent-manager.json +263 -17
  7. claude_mpm/agents/templates/agentic_coder_optimizer.json +222 -0
  8. claude_mpm/agents/templates/code_analyzer.json +18 -8
  9. claude_mpm/agents/templates/engineer.json +1 -1
  10. claude_mpm/agents/templates/logs/prompts/agent_engineer_20250826_014258_728.md +39 -0
  11. claude_mpm/agents/templates/qa.json +1 -1
  12. claude_mpm/agents/templates/research.json +1 -1
  13. claude_mpm/cli/__init__.py +4 -0
  14. claude_mpm/cli/commands/__init__.py +6 -0
  15. claude_mpm/cli/commands/analyze.py +547 -0
  16. claude_mpm/cli/commands/analyze_code.py +524 -0
  17. claude_mpm/cli/commands/configure.py +77 -28
  18. claude_mpm/cli/commands/configure_tui.py +60 -60
  19. claude_mpm/cli/commands/debug.py +1387 -0
  20. claude_mpm/cli/parsers/analyze_code_parser.py +170 -0
  21. claude_mpm/cli/parsers/analyze_parser.py +135 -0
  22. claude_mpm/cli/parsers/base_parser.py +29 -0
  23. claude_mpm/cli/parsers/debug_parser.py +319 -0
  24. claude_mpm/constants.py +3 -1
  25. claude_mpm/core/framework_loader.py +148 -6
  26. claude_mpm/core/log_manager.py +16 -13
  27. claude_mpm/core/logger.py +1 -1
  28. claude_mpm/core/unified_agent_registry.py +1 -1
  29. claude_mpm/dashboard/.claude-mpm/socketio-instances.json +1 -0
  30. claude_mpm/dashboard/analysis_runner.py +428 -0
  31. claude_mpm/dashboard/static/built/components/activity-tree.js +2 -0
  32. claude_mpm/dashboard/static/built/components/agent-inference.js +1 -1
  33. claude_mpm/dashboard/static/built/components/event-viewer.js +1 -1
  34. claude_mpm/dashboard/static/built/components/file-tool-tracker.js +1 -1
  35. claude_mpm/dashboard/static/built/components/module-viewer.js +1 -1
  36. claude_mpm/dashboard/static/built/components/session-manager.js +1 -1
  37. claude_mpm/dashboard/static/built/components/working-directory.js +1 -1
  38. claude_mpm/dashboard/static/built/dashboard.js +1 -1
  39. claude_mpm/dashboard/static/built/socket-client.js +1 -1
  40. claude_mpm/dashboard/static/css/activity.css +549 -0
  41. claude_mpm/dashboard/static/css/code-tree.css +846 -0
  42. claude_mpm/dashboard/static/css/dashboard.css +245 -0
  43. claude_mpm/dashboard/static/dist/components/activity-tree.js +2 -0
  44. claude_mpm/dashboard/static/dist/components/code-tree.js +2 -0
  45. claude_mpm/dashboard/static/dist/components/code-viewer.js +2 -0
  46. claude_mpm/dashboard/static/dist/components/event-viewer.js +1 -1
  47. claude_mpm/dashboard/static/dist/components/session-manager.js +1 -1
  48. claude_mpm/dashboard/static/dist/components/working-directory.js +1 -1
  49. claude_mpm/dashboard/static/dist/dashboard.js +1 -1
  50. claude_mpm/dashboard/static/dist/socket-client.js +1 -1
  51. claude_mpm/dashboard/static/js/components/activity-tree.js +1139 -0
  52. claude_mpm/dashboard/static/js/components/code-tree.js +1357 -0
  53. claude_mpm/dashboard/static/js/components/code-viewer.js +480 -0
  54. claude_mpm/dashboard/static/js/components/event-viewer.js +11 -0
  55. claude_mpm/dashboard/static/js/components/session-manager.js +40 -4
  56. claude_mpm/dashboard/static/js/components/socket-manager.js +12 -0
  57. claude_mpm/dashboard/static/js/components/ui-state-manager.js +4 -0
  58. claude_mpm/dashboard/static/js/components/working-directory.js +17 -1
  59. claude_mpm/dashboard/static/js/dashboard.js +39 -0
  60. claude_mpm/dashboard/static/js/socket-client.js +414 -20
  61. claude_mpm/dashboard/templates/index.html +184 -4
  62. claude_mpm/hooks/claude_hooks/hook_handler.py +182 -5
  63. claude_mpm/hooks/claude_hooks/installer.py +386 -113
  64. claude_mpm/scripts/claude-hook-handler.sh +161 -0
  65. claude_mpm/scripts/socketio_daemon.py +121 -8
  66. claude_mpm/services/agents/deployment/agent_lifecycle_manager_refactored.py +2 -2
  67. claude_mpm/services/agents/deployment/agent_record_service.py +1 -2
  68. claude_mpm/services/agents/memory/memory_format_service.py +1 -5
  69. claude_mpm/services/cli/agent_cleanup_service.py +1 -2
  70. claude_mpm/services/cli/agent_dependency_service.py +1 -1
  71. claude_mpm/services/cli/agent_validation_service.py +3 -4
  72. claude_mpm/services/cli/dashboard_launcher.py +2 -3
  73. claude_mpm/services/cli/startup_checker.py +0 -10
  74. claude_mpm/services/core/cache_manager.py +1 -2
  75. claude_mpm/services/core/path_resolver.py +1 -4
  76. claude_mpm/services/core/service_container.py +2 -2
  77. claude_mpm/services/diagnostics/checks/instructions_check.py +1 -2
  78. claude_mpm/services/infrastructure/monitoring/__init__.py +11 -11
  79. claude_mpm/services/infrastructure/monitoring.py +11 -11
  80. claude_mpm/services/project/architecture_analyzer.py +1 -1
  81. claude_mpm/services/project/dependency_analyzer.py +4 -4
  82. claude_mpm/services/project/language_analyzer.py +3 -3
  83. claude_mpm/services/project/metrics_collector.py +3 -6
  84. claude_mpm/services/socketio/handlers/__init__.py +2 -0
  85. claude_mpm/services/socketio/handlers/code_analysis.py +170 -0
  86. claude_mpm/services/socketio/handlers/registry.py +2 -0
  87. claude_mpm/services/socketio/server/connection_manager.py +4 -4
  88. claude_mpm/services/socketio/server/core.py +100 -11
  89. claude_mpm/services/socketio/server/main.py +8 -2
  90. claude_mpm/services/visualization/__init__.py +19 -0
  91. claude_mpm/services/visualization/mermaid_generator.py +938 -0
  92. claude_mpm/tools/__main__.py +208 -0
  93. claude_mpm/tools/code_tree_analyzer.py +778 -0
  94. claude_mpm/tools/code_tree_builder.py +632 -0
  95. claude_mpm/tools/code_tree_events.py +318 -0
  96. claude_mpm/tools/socketio_debug.py +671 -0
  97. {claude_mpm-4.1.8.dist-info → claude_mpm-4.1.10.dist-info}/METADATA +1 -1
  98. {claude_mpm-4.1.8.dist-info → claude_mpm-4.1.10.dist-info}/RECORD +102 -73
  99. claude_mpm/agents/schema/agent_schema.json +0 -314
  100. {claude_mpm-4.1.8.dist-info → claude_mpm-4.1.10.dist-info}/WHEEL +0 -0
  101. {claude_mpm-4.1.8.dist-info → claude_mpm-4.1.10.dist-info}/entry_points.txt +0 -0
  102. {claude_mpm-4.1.8.dist-info → claude_mpm-4.1.10.dist-info}/licenses/LICENSE +0 -0
  103. {claude_mpm-4.1.8.dist-info → claude_mpm-4.1.10.dist-info}/top_level.txt +0 -0
@@ -1,314 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "version": "1.1.0",
4
- "title": "Claude MPM Agent Definition Schema",
5
- "description": "Schema for defining Claude MPM agent templates",
6
- "type": "object",
7
- "required": ["schema_version", "agent_id", "agent_version", "agent_type", "metadata", "capabilities", "instructions"],
8
- "properties": {
9
- "schema_version": {
10
- "type": "string",
11
- "description": "Schema version for the agent template format",
12
- "pattern": "^\\d+\\.\\d+\\.\\d+$"
13
- },
14
- "agent_id": {
15
- "type": "string",
16
- "description": "Unique identifier for the agent",
17
- "pattern": "^[a-z][a-z0-9_-]*$"
18
- },
19
- "agent_version": {
20
- "type": "string",
21
- "description": "Version of the agent template",
22
- "pattern": "^\\d+\\.\\d+\\.\\d+$"
23
- },
24
- "agent_type": {
25
- "type": "string",
26
- "description": "Type of agent",
27
- "enum": ["base", "engineer", "qa", "documentation", "research", "security", "ops", "data_engineer", "version_control", "project_organizer", "imagemagick"]
28
- },
29
- "metadata": {
30
- "type": "object",
31
- "description": "Agent metadata information",
32
- "required": ["name", "description", "tags", "created_at", "updated_at"],
33
- "properties": {
34
- "name": {
35
- "type": "string",
36
- "description": "Human-readable name of the agent"
37
- },
38
- "description": {
39
- "type": "string",
40
- "description": "Brief description of the agent's purpose"
41
- },
42
- "category": {
43
- "type": "string",
44
- "description": "Category the agent belongs to"
45
- },
46
- "tags": {
47
- "type": "array",
48
- "items": {
49
- "type": "string"
50
- },
51
- "description": "Tags for categorizing and searching agents"
52
- },
53
- "author": {
54
- "type": "string",
55
- "description": "Author or team that created the agent"
56
- },
57
- "created_at": {
58
- "type": "string",
59
- "description": "Creation timestamp in ISO 8601 format"
60
- },
61
- "updated_at": {
62
- "type": "string",
63
- "description": "Last update timestamp in ISO 8601 format"
64
- },
65
- "specializations": {
66
- "type": "array",
67
- "items": {
68
- "type": "string"
69
- },
70
- "description": "Agent specializations (used by some agents)"
71
- }
72
- },
73
- "additionalProperties": false
74
- },
75
- "capabilities": {
76
- "type": "object",
77
- "description": "Agent capabilities and configuration",
78
- "properties": {
79
- "model": {
80
- "type": "string",
81
- "description": "AI model to use for this agent"
82
- },
83
- "tools": {
84
- "type": "array",
85
- "items": {
86
- "type": "string"
87
- },
88
- "description": "Available tools for the agent"
89
- },
90
- "resource_tier": {
91
- "type": "string",
92
- "description": "Resource tier for the agent",
93
- "enum": ["basic", "standard", "intensive", "lightweight"]
94
- },
95
- "max_tokens": {
96
- "type": "integer",
97
- "minimum": 1,
98
- "description": "Maximum tokens for responses"
99
- },
100
- "temperature": {
101
- "type": "number",
102
- "minimum": 0,
103
- "maximum": 1,
104
- "description": "Model temperature setting"
105
- },
106
- "timeout": {
107
- "type": "integer",
108
- "minimum": 1,
109
- "description": "Timeout in seconds"
110
- },
111
- "memory_limit": {
112
- "type": "integer",
113
- "minimum": 1,
114
- "description": "Memory limit in MB"
115
- },
116
- "cpu_limit": {
117
- "type": "integer",
118
- "minimum": 1,
119
- "maximum": 100,
120
- "description": "CPU limit percentage"
121
- },
122
- "network_access": {
123
- "type": "boolean",
124
- "description": "Whether agent has network access"
125
- },
126
- "file_access": {
127
- "type": "object",
128
- "description": "File access permissions",
129
- "properties": {
130
- "read_paths": {
131
- "type": "array",
132
- "items": {
133
- "type": "string"
134
- },
135
- "description": "Paths the agent can read from"
136
- },
137
- "write_paths": {
138
- "type": "array",
139
- "items": {
140
- "type": "string"
141
- },
142
- "description": "Paths the agent can write to"
143
- }
144
- }
145
- },
146
- "when_to_use": {
147
- "type": "array",
148
- "items": {
149
- "type": "string"
150
- },
151
- "description": "List of scenarios when to use this agent"
152
- },
153
- "specialized_knowledge": {
154
- "type": "array",
155
- "items": {
156
- "type": "string"
157
- },
158
- "description": "List of specialized knowledge areas"
159
- },
160
- "unique_capabilities": {
161
- "type": "array",
162
- "items": {
163
- "type": "string"
164
- },
165
- "description": "List of unique capabilities"
166
- }
167
- },
168
- "additionalProperties": true
169
- },
170
- "configuration": {
171
- "type": "object",
172
- "description": "Alternative configuration structure (used by some agents)",
173
- "additionalProperties": true
174
- },
175
- "instructions": {
176
- "type": "string",
177
- "description": "Markdown instructions for the agent's behavior"
178
- },
179
- "knowledge": {
180
- "type": "object",
181
- "description": "Knowledge base for the agent",
182
- "properties": {
183
- "domain_expertise": {
184
- "type": "array",
185
- "items": {
186
- "type": "string"
187
- },
188
- "description": "Areas of domain expertise"
189
- },
190
- "best_practices": {
191
- "type": "array",
192
- "items": {
193
- "type": "string"
194
- },
195
- "description": "Best practices the agent follows"
196
- },
197
- "constraints": {
198
- "type": "array",
199
- "items": {
200
- "type": "string"
201
- },
202
- "description": "Constraints on the agent's behavior"
203
- },
204
- "examples": {
205
- "type": "array",
206
- "items": {
207
- "type": "object"
208
- },
209
- "description": "Example scenarios or code"
210
- }
211
- },
212
- "additionalProperties": false
213
- },
214
- "interactions": {
215
- "type": "object",
216
- "description": "Agent interaction configurations",
217
- "properties": {
218
- "input_format": {
219
- "type": "object",
220
- "properties": {
221
- "required_fields": {
222
- "type": "array",
223
- "items": {
224
- "type": "string"
225
- }
226
- },
227
- "optional_fields": {
228
- "type": "array",
229
- "items": {
230
- "type": "string"
231
- }
232
- }
233
- }
234
- },
235
- "output_format": {
236
- "type": "object",
237
- "properties": {
238
- "structure": {
239
- "type": "string"
240
- },
241
- "includes": {
242
- "type": "array",
243
- "items": {
244
- "type": "string"
245
- }
246
- }
247
- }
248
- },
249
- "handoff_agents": {
250
- "type": "array",
251
- "items": {
252
- "type": "string"
253
- },
254
- "description": "Agents this agent can hand off to"
255
- },
256
- "triggers": {
257
- "type": "array",
258
- "items": {
259
- "type": "object"
260
- },
261
- "description": "Triggers for agent activation"
262
- }
263
- },
264
- "additionalProperties": false
265
- },
266
- "testing": {
267
- "type": "object",
268
- "description": "Testing configuration for the agent",
269
- "properties": {
270
- "test_cases": {
271
- "type": "array",
272
- "items": {
273
- "type": "object",
274
- "properties": {
275
- "name": {
276
- "type": "string"
277
- },
278
- "input": {
279
- "type": "string"
280
- },
281
- "expected_behavior": {
282
- "type": "string"
283
- },
284
- "validation_criteria": {
285
- "type": "array",
286
- "items": {
287
- "type": "string"
288
- }
289
- }
290
- }
291
- }
292
- },
293
- "performance_benchmarks": {
294
- "type": "object",
295
- "properties": {
296
- "response_time": {
297
- "type": "number"
298
- },
299
- "token_usage": {
300
- "type": "integer"
301
- },
302
- "success_rate": {
303
- "type": "number",
304
- "minimum": 0,
305
- "maximum": 1
306
- }
307
- }
308
- }
309
- },
310
- "additionalProperties": false
311
- }
312
- },
313
- "additionalProperties": false
314
- }