claude-mpm 3.4.0__py3-none-any.whl → 3.4.2__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/memory.py +6 -1
- claude_mpm/core/config.py +160 -0
- claude_mpm/hooks/claude_hooks/hook_wrapper.sh +1 -1
- claude_mpm/scripts/socketio_daemon.py +49 -9
- claude_mpm/scripts/socketio_server_manager.py +370 -45
- claude_mpm/services/__init__.py +18 -0
- claude_mpm/services/agent_memory_manager.py +7 -5
- claude_mpm/services/exceptions.py +677 -0
- claude_mpm/services/health_monitor.py +892 -0
- claude_mpm/services/memory_builder.py +4 -2
- claude_mpm/services/memory_optimizer.py +6 -2
- claude_mpm/services/recovery_manager.py +670 -0
- claude_mpm/services/socketio_server.py +188 -11
- claude_mpm/services/standalone_socketio_server.py +703 -34
- {claude_mpm-3.4.0.dist-info → claude_mpm-3.4.2.dist-info}/METADATA +1 -1
- {claude_mpm-3.4.0.dist-info → claude_mpm-3.4.2.dist-info}/RECORD +21 -18
- /claude_mpm/{web → dashboard}/open_dashboard.py +0 -0
- {claude_mpm-3.4.0.dist-info → claude_mpm-3.4.2.dist-info}/WHEEL +0 -0
- {claude_mpm-3.4.0.dist-info → claude_mpm-3.4.2.dist-info}/entry_points.txt +0 -0
- {claude_mpm-3.4.0.dist-info → claude_mpm-3.4.2.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-3.4.0.dist-info → claude_mpm-3.4.2.dist-info}/top_level.txt +0 -0
|
@@ -23,6 +23,7 @@ while preserving essential information.
|
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
import re
|
|
26
|
+
import os
|
|
26
27
|
from pathlib import Path
|
|
27
28
|
from typing import Dict, List, Optional, Any, Tuple
|
|
28
29
|
from datetime import datetime
|
|
@@ -109,8 +110,9 @@ class MemoryBuilder(LoggerMixin):
|
|
|
109
110
|
super().__init__()
|
|
110
111
|
self.config = config or Config()
|
|
111
112
|
self.project_root = PathResolver.get_project_root()
|
|
112
|
-
|
|
113
|
-
self.
|
|
113
|
+
# Use current working directory by default, not project root
|
|
114
|
+
self.working_directory = working_directory or Path(os.getcwd())
|
|
115
|
+
self.memories_dir = self.working_directory / ".claude-mpm" / "memories"
|
|
114
116
|
self.router = MemoryRouter(config)
|
|
115
117
|
self.project_analyzer = ProjectAnalyzer(config, self.working_directory)
|
|
116
118
|
|
|
@@ -23,6 +23,7 @@ information than lose important insights.
|
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
import re
|
|
26
|
+
import os
|
|
26
27
|
from pathlib import Path
|
|
27
28
|
from typing import Dict, List, Optional, Any, Set, Tuple
|
|
28
29
|
from datetime import datetime
|
|
@@ -57,16 +58,19 @@ class MemoryOptimizer(LoggerMixin):
|
|
|
57
58
|
'low': ['note', 'tip', 'hint', 'example', 'reference']
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
def __init__(self, config: Optional[Config] = None):
|
|
61
|
+
def __init__(self, config: Optional[Config] = None, working_directory: Optional[Path] = None):
|
|
61
62
|
"""Initialize the memory optimizer.
|
|
62
63
|
|
|
63
64
|
Args:
|
|
64
65
|
config: Optional Config object
|
|
66
|
+
working_directory: Optional working directory. If not provided, uses current working directory.
|
|
65
67
|
"""
|
|
66
68
|
super().__init__()
|
|
67
69
|
self.config = config or Config()
|
|
68
70
|
self.project_root = PathResolver.get_project_root()
|
|
69
|
-
|
|
71
|
+
# Use current working directory by default, not project root
|
|
72
|
+
self.working_directory = working_directory or Path(os.getcwd())
|
|
73
|
+
self.memories_dir = self.working_directory / ".claude-mpm" / "memories"
|
|
70
74
|
|
|
71
75
|
def optimize_agent_memory(self, agent_id: str) -> Dict[str, Any]:
|
|
72
76
|
"""Optimize memory for a specific agent.
|