claude-mpm 4.2.13__py3-none-any.whl → 4.2.15__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.
- claude_mpm/cli/commands/analyze_code.py +0 -1
- claude_mpm/cli/commands/dashboard.py +0 -1
- claude_mpm/cli/commands/monitor.py +0 -1
- claude_mpm/core/constants.py +65 -0
- claude_mpm/core/error_handler.py +625 -0
- claude_mpm/core/file_utils.py +770 -0
- claude_mpm/core/logging_utils.py +502 -0
- claude_mpm/dashboard/static/dist/components/code-tree.js +1 -1
- claude_mpm/dashboard/static/dist/components/file-viewer.js +1 -1
- claude_mpm/dashboard/static/dist/dashboard.js +1 -1
- claude_mpm/dashboard/static/dist/socket-client.js +1 -1
- claude_mpm/dashboard/static/js/components/code-simple.js +44 -1
- claude_mpm/dashboard/static/js/components/code-tree/tree-breadcrumb.js +353 -0
- claude_mpm/dashboard/static/js/components/code-tree/tree-constants.js +235 -0
- claude_mpm/dashboard/static/js/components/code-tree/tree-search.js +409 -0
- claude_mpm/dashboard/static/js/components/code-tree/tree-utils.js +435 -0
- claude_mpm/dashboard/static/js/components/code-tree.js +29 -5
- claude_mpm/dashboard/static/js/components/file-viewer.js +69 -27
- claude_mpm/dashboard/static/js/components/session-manager.js +7 -7
- claude_mpm/dashboard/static/js/components/working-directory.js +18 -9
- claude_mpm/dashboard/static/js/dashboard.js +91 -9
- claude_mpm/dashboard/static/js/shared/dom-helpers.js +396 -0
- claude_mpm/dashboard/static/js/shared/event-bus.js +330 -0
- claude_mpm/dashboard/static/js/shared/logger.js +385 -0
- claude_mpm/dashboard/static/js/shared/tooltip-service.js +253 -0
- claude_mpm/dashboard/static/js/socket-client.js +18 -0
- claude_mpm/dashboard/templates/index.html +22 -9
- claude_mpm/services/cli/unified_dashboard_manager.py +2 -1
- claude_mpm/services/monitor/handlers/__init__.py +2 -1
- claude_mpm/services/monitor/handlers/file.py +263 -0
- claude_mpm/services/monitor/handlers/hooks.py +25 -1
- claude_mpm/services/monitor/server.py +111 -1
- claude_mpm/services/socketio/handlers/file.py +40 -5
- {claude_mpm-4.2.13.dist-info → claude_mpm-4.2.15.dist-info}/METADATA +1 -1
- {claude_mpm-4.2.13.dist-info → claude_mpm-4.2.15.dist-info}/RECORD +39 -27
- {claude_mpm-4.2.13.dist-info → claude_mpm-4.2.15.dist-info}/WHEEL +0 -0
- {claude_mpm-4.2.13.dist-info → claude_mpm-4.2.15.dist-info}/entry_points.txt +0 -0
- {claude_mpm-4.2.13.dist-info → claude_mpm-4.2.15.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-4.2.13.dist-info → claude_mpm-4.2.15.dist-info}/top_level.txt +0 -0
|
@@ -71,7 +71,6 @@ class DashboardCommand(BaseCommand):
|
|
|
71
71
|
host = getattr(args, "host", "localhost")
|
|
72
72
|
background = getattr(args, "background", False)
|
|
73
73
|
use_stable = getattr(args, "stable", True) # Default to stable server
|
|
74
|
-
debug = getattr(args, "debug", False)
|
|
75
74
|
|
|
76
75
|
self.logger.info(
|
|
77
76
|
f"Starting dashboard on {host}:{port} (background: {background}, stable: {use_stable})"
|
|
@@ -141,7 +141,6 @@ class MonitorCommand(BaseCommand):
|
|
|
141
141
|
|
|
142
142
|
def _status_monitor(self, args) -> CommandResult:
|
|
143
143
|
"""Get unified monitor daemon status."""
|
|
144
|
-
verbose = getattr(args, "verbose", False)
|
|
145
144
|
|
|
146
145
|
# Create daemon instance to check status
|
|
147
146
|
daemon = UnifiedMonitorDaemon()
|
claude_mpm/core/constants.py
CHANGED
|
@@ -4,6 +4,7 @@ This module consolidates all magic numbers and configuration constants
|
|
|
4
4
|
that were previously scattered throughout the codebase.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
from pathlib import Path
|
|
7
8
|
from typing import Tuple
|
|
8
9
|
|
|
9
10
|
|
|
@@ -294,3 +295,67 @@ SOCKETIO_PORT_RANGE = NetworkConfig.SOCKETIO_PORT_RANGE
|
|
|
294
295
|
QUERY_TIMEOUT = TimeoutConfig.QUERY_TIMEOUT
|
|
295
296
|
MAX_RETRIES = RetryConfig.MAX_RETRIES
|
|
296
297
|
DEFAULT_TIMEOUT = TimeoutConfig.DEFAULT_TIMEOUT
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
# ==============================================================================
|
|
301
|
+
# NEW ORGANIZED CONSTANTS (Phase 1 Refactoring)
|
|
302
|
+
# ==============================================================================
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
class NetworkPorts:
|
|
306
|
+
"""Network port configuration."""
|
|
307
|
+
|
|
308
|
+
# Use existing values from NetworkConfig
|
|
309
|
+
DEFAULT_SOCKETIO = NetworkConfig.DEFAULT_SOCKETIO_PORT
|
|
310
|
+
DEFAULT_DASHBOARD = NetworkConfig.DEFAULT_DASHBOARD_PORT
|
|
311
|
+
PORT_RANGE_START = NetworkConfig.SOCKETIO_PORT_RANGE[0]
|
|
312
|
+
PORT_RANGE_END = NetworkConfig.SOCKETIO_PORT_RANGE[1]
|
|
313
|
+
|
|
314
|
+
@classmethod
|
|
315
|
+
def get_port_range(cls) -> range:
|
|
316
|
+
"""Get the valid port range."""
|
|
317
|
+
return range(cls.PORT_RANGE_START, cls.PORT_RANGE_END + 1)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
class ProjectPaths:
|
|
321
|
+
"""Project-specific paths and directories."""
|
|
322
|
+
|
|
323
|
+
# Claude directories
|
|
324
|
+
CLAUDE_DIR = ".claude"
|
|
325
|
+
CLAUDE_AGENTS_DIR = ".claude/agents"
|
|
326
|
+
CLAUDE_CONFIG_FILE = ".claude/config.yaml"
|
|
327
|
+
|
|
328
|
+
# MPM directories
|
|
329
|
+
MPM_DIR = ".claude-mpm"
|
|
330
|
+
MPM_SESSION_DIR = ".claude-mpm/session"
|
|
331
|
+
MPM_PROMPTS_DIR = ".claude-mpm/prompts"
|
|
332
|
+
MPM_LOGS_DIR = ".claude-mpm/logs"
|
|
333
|
+
MPM_CONFIG_DIR = ".claude-mpm/config"
|
|
334
|
+
MPM_MEMORY_DIR = ".claude-mpm/memory"
|
|
335
|
+
MPM_CACHE_DIR = ".claude-mpm/cache"
|
|
336
|
+
|
|
337
|
+
# Config files
|
|
338
|
+
MPM_CONFIG_FILE = "config.yaml"
|
|
339
|
+
AGENT_CONFIG_FILE = "agent_config.yaml"
|
|
340
|
+
EXPERIMENTAL_CONFIG = "experimental.json"
|
|
341
|
+
SOCKETIO_CONFIG = "socketio_config.yaml"
|
|
342
|
+
|
|
343
|
+
# Special files
|
|
344
|
+
EXPERIMENTAL_ACCEPTED = ".experimental_accepted"
|
|
345
|
+
VERSION_FILE = "VERSION"
|
|
346
|
+
BUILD_NUMBER_FILE = "BUILD_NUMBER"
|
|
347
|
+
|
|
348
|
+
@classmethod
|
|
349
|
+
def get_mpm_home(cls) -> Path:
|
|
350
|
+
"""Get the MPM home directory."""
|
|
351
|
+
return Path.home() / cls.MPM_DIR
|
|
352
|
+
|
|
353
|
+
@classmethod
|
|
354
|
+
def get_project_mpm_dir(cls) -> Path:
|
|
355
|
+
"""Get the project-specific MPM directory."""
|
|
356
|
+
return Path.cwd() / cls.MPM_DIR
|
|
357
|
+
|
|
358
|
+
@classmethod
|
|
359
|
+
def get_claude_dir(cls) -> Path:
|
|
360
|
+
"""Get the Claude directory."""
|
|
361
|
+
return Path.cwd() / cls.CLAUDE_DIR
|