claude-mpm 4.2.12__py3-none-any.whl → 4.2.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.
- claude_mpm/VERSION +1 -1
- claude_mpm/commands/mpm-agents.md +44 -8
- 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 +1 -1
- claude_mpm/dashboard/static/js/components/working-directory.js +18 -9
- claude_mpm/dashboard/static/js/dashboard.js +55 -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 +21 -8
- claude_mpm/services/monitor/handlers/__init__.py +2 -1
- claude_mpm/services/monitor/handlers/file.py +263 -0
- claude_mpm/services/monitor/server.py +81 -1
- claude_mpm/services/socketio/handlers/file.py +40 -5
- {claude_mpm-4.2.12.dist-info → claude_mpm-4.2.14.dist-info}/METADATA +1 -1
- {claude_mpm-4.2.12.dist-info → claude_mpm-4.2.14.dist-info}/RECORD +36 -24
- {claude_mpm-4.2.12.dist-info → claude_mpm-4.2.14.dist-info}/WHEEL +0 -0
- {claude_mpm-4.2.12.dist-info → claude_mpm-4.2.14.dist-info}/entry_points.txt +0 -0
- {claude_mpm-4.2.12.dist-info → claude_mpm-4.2.14.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-4.2.12.dist-info → claude_mpm-4.2.14.dist-info}/top_level.txt +0 -0
claude_mpm/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.2.
|
|
1
|
+
4.2.13
|
|
@@ -2,11 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
Show all available Claude MPM agents with their versions and deployment status.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/mpm-agents
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
This command lists all available Claude MPM agents, including both built-in agents and any custom agents you've created. It shows their current deployment status, version information, and capabilities.
|
|
14
|
+
|
|
15
|
+
## What This Command Does
|
|
16
|
+
|
|
17
|
+
When you run `/mpm-agents`, I will:
|
|
18
|
+
|
|
19
|
+
1. **List Available Agents**: Run `claude-mpm agents list` to show all agents
|
|
20
|
+
2. **Display Agent Information**:
|
|
21
|
+
- Agent names and IDs
|
|
22
|
+
- Brief descriptions
|
|
23
|
+
- Model preferences (opus, sonnet, haiku)
|
|
24
|
+
- Tool availability
|
|
25
|
+
- Version information
|
|
26
|
+
- Deployment status
|
|
27
|
+
|
|
28
|
+
## Output Example
|
|
29
|
+
|
|
30
|
+
The command displays agents in a formatted table showing:
|
|
31
|
+
- Agent name and description
|
|
32
|
+
- Version and model preference
|
|
33
|
+
- Tools available to the agent
|
|
34
|
+
- Current deployment status
|
|
35
|
+
|
|
36
|
+
## Implementation
|
|
37
|
+
|
|
38
|
+
To show available agents, I'll execute:
|
|
39
|
+
```bash
|
|
40
|
+
claude-mpm agents list --deployed
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will display all deployed agents that are currently available for use.
|
|
44
|
+
|
|
45
|
+
Alternatively, you can use these variations:
|
|
46
|
+
- `claude-mpm agents list --system` - Show system agents
|
|
47
|
+
- `claude-mpm agents list --by-tier` - Group agents by precedence tier
|
|
48
|
+
- `claude-mpm agents list --all` - Show all agents including undeployed
|
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
|