claude-mpm 4.1.11__py3-none-any.whl → 4.1.13__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 (41) hide show
  1. claude_mpm/VERSION +1 -1
  2. claude_mpm/agents/INSTRUCTIONS.md +8 -0
  3. claude_mpm/cli/__init__.py +1 -1
  4. claude_mpm/cli/commands/monitor.py +88 -627
  5. claude_mpm/cli/commands/mpm_init.py +127 -107
  6. claude_mpm/cli/commands/mpm_init_handler.py +24 -23
  7. claude_mpm/cli/parsers/mpm_init_parser.py +34 -28
  8. claude_mpm/core/config.py +18 -0
  9. claude_mpm/core/instruction_reinforcement_hook.py +266 -0
  10. claude_mpm/core/pm_hook_interceptor.py +105 -8
  11. claude_mpm/dashboard/static/built/components/activity-tree.js +1 -1
  12. claude_mpm/dashboard/static/built/components/code-tree.js +1 -1
  13. claude_mpm/dashboard/static/built/dashboard.js +1 -1
  14. claude_mpm/dashboard/static/built/socket-client.js +1 -1
  15. claude_mpm/dashboard/static/css/activity.css +1239 -267
  16. claude_mpm/dashboard/static/css/dashboard.css +511 -0
  17. claude_mpm/dashboard/static/dist/components/activity-tree.js +1 -1
  18. claude_mpm/dashboard/static/dist/components/code-tree.js +1 -1
  19. claude_mpm/dashboard/static/dist/components/module-viewer.js +1 -1
  20. claude_mpm/dashboard/static/dist/dashboard.js +1 -1
  21. claude_mpm/dashboard/static/dist/socket-client.js +1 -1
  22. claude_mpm/dashboard/static/js/components/activity-tree.js +1193 -892
  23. claude_mpm/dashboard/static/js/components/build-tracker.js +15 -13
  24. claude_mpm/dashboard/static/js/components/code-tree.js +534 -143
  25. claude_mpm/dashboard/static/js/components/module-viewer.js +21 -7
  26. claude_mpm/dashboard/static/js/components/unified-data-viewer.js +1066 -0
  27. claude_mpm/dashboard/static/js/connection-manager.js +1 -1
  28. claude_mpm/dashboard/static/js/dashboard.js +227 -84
  29. claude_mpm/dashboard/static/js/socket-client.js +2 -2
  30. claude_mpm/dashboard/templates/index.html +100 -23
  31. claude_mpm/services/agents/deployment/agent_template_builder.py +11 -7
  32. claude_mpm/services/cli/socketio_manager.py +39 -8
  33. claude_mpm/services/infrastructure/monitoring.py +1 -1
  34. claude_mpm/services/socketio/handlers/code_analysis.py +83 -136
  35. claude_mpm/tools/code_tree_analyzer.py +290 -202
  36. {claude_mpm-4.1.11.dist-info → claude_mpm-4.1.13.dist-info}/METADATA +1 -1
  37. {claude_mpm-4.1.11.dist-info → claude_mpm-4.1.13.dist-info}/RECORD +41 -39
  38. {claude_mpm-4.1.11.dist-info → claude_mpm-4.1.13.dist-info}/WHEEL +0 -0
  39. {claude_mpm-4.1.11.dist-info → claude_mpm-4.1.13.dist-info}/entry_points.txt +0 -0
  40. {claude_mpm-4.1.11.dist-info → claude_mpm-4.1.13.dist-info}/licenses/LICENSE +0 -0
  41. {claude_mpm-4.1.11.dist-info → claude_mpm-4.1.13.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,11 @@
1
1
  /**
2
2
  * Module Viewer Component
3
3
  * Displays detailed information about selected events organized by class/type
4
+ * Now uses UnifiedDataViewer for consistent data formatting
4
5
  */
5
6
 
7
+ import { UnifiedDataViewer } from './unified-data-viewer.js';
8
+
6
9
  class ModuleViewer {
7
10
  constructor(containerId) {
8
11
  this.container = document.getElementById(containerId);
@@ -17,6 +20,9 @@ class ModuleViewer {
17
20
 
18
21
  // Track if keyboard listener has been added to avoid duplicates
19
22
  this.keyboardListenerAdded = false;
23
+
24
+ // Initialize unified data viewer
25
+ this.unifiedViewer = new UnifiedDataViewer('module-data-content');
20
26
 
21
27
  this.init();
22
28
  }
@@ -81,17 +87,22 @@ class ModuleViewer {
81
87
  }
82
88
 
83
89
  /**
84
- * Show details for a selected event
90
+ * Show details for a selected event using UnifiedDataViewer
85
91
  * @param {Object} event - The selected event
86
92
  */
87
93
  showEventDetails(event) {
88
94
  this.currentEvent = event;
89
-
90
- // Render structured data in top pane
91
- this.renderStructuredData(event);
92
-
93
- // Render JSON in bottom pane
94
- this.renderJsonData(event);
95
+
96
+ if (!this.unifiedViewer) {
97
+ console.warn('ModuleViewer: UnifiedDataViewer not available');
98
+ // Fallback to legacy rendering
99
+ this.renderStructuredData(event);
100
+ this.renderJsonData(event);
101
+ return;
102
+ }
103
+
104
+ // Use unified viewer to display event data
105
+ this.unifiedViewer.display(event, 'event');
95
106
  }
96
107
 
97
108
  /**
@@ -1386,6 +1397,9 @@ class ModuleViewer {
1386
1397
  * Clear the module viewer
1387
1398
  */
1388
1399
  clear() {
1400
+ if (this.unifiedViewer) {
1401
+ this.unifiedViewer.clear();
1402
+ }
1389
1403
  this.showEmptyState();
1390
1404
  }
1391
1405