claude-mpm 3.4.10__py3-none-any.whl → 3.4.14__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 (29) hide show
  1. claude_mpm/cli/commands/run.py +10 -10
  2. claude_mpm/dashboard/index.html +13 -0
  3. claude_mpm/dashboard/static/css/dashboard.css +2722 -0
  4. claude_mpm/dashboard/static/js/components/agent-inference.js +619 -0
  5. claude_mpm/dashboard/static/js/components/event-processor.js +641 -0
  6. claude_mpm/dashboard/static/js/components/event-viewer.js +914 -0
  7. claude_mpm/dashboard/static/js/components/export-manager.js +362 -0
  8. claude_mpm/dashboard/static/js/components/file-tool-tracker.js +611 -0
  9. claude_mpm/dashboard/static/js/components/hud-library-loader.js +211 -0
  10. claude_mpm/dashboard/static/js/components/hud-manager.js +671 -0
  11. claude_mpm/dashboard/static/js/components/hud-visualizer.js +1718 -0
  12. claude_mpm/dashboard/static/js/components/module-viewer.js +2701 -0
  13. claude_mpm/dashboard/static/js/components/session-manager.js +520 -0
  14. claude_mpm/dashboard/static/js/components/socket-manager.js +343 -0
  15. claude_mpm/dashboard/static/js/components/ui-state-manager.js +427 -0
  16. claude_mpm/dashboard/static/js/components/working-directory.js +866 -0
  17. claude_mpm/dashboard/static/js/dashboard-original.js +4134 -0
  18. claude_mpm/dashboard/static/js/dashboard.js +1978 -0
  19. claude_mpm/dashboard/static/js/socket-client.js +537 -0
  20. claude_mpm/dashboard/templates/index.html +346 -0
  21. claude_mpm/dashboard/test_dashboard.html +372 -0
  22. claude_mpm/scripts/socketio_daemon.py +51 -6
  23. claude_mpm/services/socketio_server.py +41 -5
  24. {claude_mpm-3.4.10.dist-info → claude_mpm-3.4.14.dist-info}/METADATA +2 -1
  25. {claude_mpm-3.4.10.dist-info → claude_mpm-3.4.14.dist-info}/RECORD +29 -9
  26. {claude_mpm-3.4.10.dist-info → claude_mpm-3.4.14.dist-info}/WHEEL +0 -0
  27. {claude_mpm-3.4.10.dist-info → claude_mpm-3.4.14.dist-info}/entry_points.txt +0 -0
  28. {claude_mpm-3.4.10.dist-info → claude_mpm-3.4.14.dist-info}/licenses/LICENSE +0 -0
  29. {claude_mpm-3.4.10.dist-info → claude_mpm-3.4.14.dist-info}/top_level.txt +0 -0
@@ -580,18 +580,18 @@ def _start_standalone_socketio_server(port, logger):
580
580
  logger.error(f"Failed to start Socket.IO daemon: {result.stderr}")
581
581
  return False
582
582
 
583
- # Wait for server to be ready with longer timeouts and progressive delays
584
- # WHY: Socket.IO server startup involves complex async initialization:
583
+ # Wait for server to be ready with reasonable timeouts and progressive delays
584
+ # WHY: Socket.IO server startup involves async initialization:
585
585
  # 1. Thread creation (~0.1s)
586
- # 2. Event loop setup (~1s)
586
+ # 2. Event loop setup (~0.5s)
587
587
  # 3. aiohttp server binding (~2-5s)
588
588
  # 4. Socket.IO service initialization (~1-3s)
589
- # Total: up to 15+ seconds for full readiness (especially on Python 3.13)
590
- max_attempts = 30 # Increased from 20 to handle Python 3.13 slower initialization
591
- initial_delay = 1.0 # Increased from 0.5s to give daemon more time to fork
592
- max_delay = 3.0 # Increased from 2.0s for slower systems
589
+ # Total: typically 2-5 seconds, up to 15 seconds max
590
+ max_attempts = 12 # Reduced from 30 - provides ~15 second total timeout
591
+ initial_delay = 0.75 # Reduced from 1.0s - balanced startup time
592
+ max_delay = 2.0 # Reduced from 3.0s - sufficient for binding delays
593
593
 
594
- logger.info(f"Waiting up to {max_attempts * max_delay} seconds for server to be fully ready...")
594
+ logger.info(f"Waiting up to ~15 seconds for server to be fully ready...")
595
595
 
596
596
  # Give the daemon initial time to fork and start before checking
597
597
  logger.debug("Allowing initial daemon startup time...")
@@ -617,8 +617,8 @@ def _start_standalone_socketio_server(port, logger):
617
617
  else:
618
618
  logger.debug(f"Server not yet accepting connections on attempt {attempt + 1}")
619
619
 
620
- logger.error(f"❌ Socket.IO server health check failed after {max_attempts} attempts ({max_attempts * max_delay:.1f}s)")
621
- logger.warning(f"⏱️ Server may still be starting - initialization can take 15+ seconds on some systems")
620
+ logger.error(f"❌ Socket.IO server health check failed after {max_attempts} attempts (~15s timeout)")
621
+ logger.warning(f"⏱️ Server may still be starting - try waiting a few more seconds")
622
622
  logger.warning(f"💡 The daemon process might be running but not yet accepting HTTP connections")
623
623
  logger.error(f"🔧 Troubleshooting steps:")
624
624
  logger.error(f" - Wait a few more seconds and try again")
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Claude MPM Dashboard</title>
7
+ <meta http-equiv="refresh" content="0; url=/dashboard?autoconnect=true&port=8765">
8
+ </head>
9
+ <body>
10
+ <p>Redirecting to Claude MPM Dashboard...</p>
11
+ <p>If you are not redirected, <a href="/dashboard?autoconnect=true&port=8765">click here</a>.</p>
12
+ </body>
13
+ </html>