claude-mpm 4.2.44__py3-none-any.whl → 4.2.51__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/agents/BASE_PM.md +43 -1
- claude_mpm/agents/INSTRUCTIONS.md +75 -1
- claude_mpm/agents/WORKFLOW.md +46 -1
- claude_mpm/agents/frontmatter_validator.py +20 -12
- claude_mpm/agents/templates/nextjs_engineer.json +277 -0
- claude_mpm/agents/templates/python_engineer.json +289 -0
- claude_mpm/agents/templates/react_engineer.json +11 -3
- claude_mpm/agents/templates/security.json +50 -9
- claude_mpm/cli/commands/agents.py +2 -2
- claude_mpm/cli/commands/uninstall.py +1 -2
- claude_mpm/cli/interactive/agent_wizard.py +3 -3
- claude_mpm/cli/parsers/agent_manager_parser.py +3 -3
- claude_mpm/cli/parsers/agents_parser.py +1 -1
- claude_mpm/constants.py +1 -1
- claude_mpm/core/error_handler.py +2 -4
- claude_mpm/core/file_utils.py +4 -12
- claude_mpm/core/log_manager.py +8 -5
- claude_mpm/core/logger.py +1 -1
- claude_mpm/core/logging_utils.py +6 -6
- claude_mpm/core/unified_agent_registry.py +18 -4
- claude_mpm/dashboard/react/components/DataInspector/DataInspector.module.css +188 -0
- claude_mpm/dashboard/react/components/EventViewer/EventViewer.module.css +156 -0
- claude_mpm/dashboard/react/components/shared/ConnectionStatus.module.css +38 -0
- claude_mpm/dashboard/react/components/shared/FilterBar.module.css +92 -0
- claude_mpm/dashboard/static/archive/activity_dashboard_fixed.html +248 -0
- claude_mpm/dashboard/static/archive/activity_dashboard_test.html +61 -0
- claude_mpm/dashboard/static/archive/test_activity_connection.html +179 -0
- claude_mpm/dashboard/static/archive/test_claude_tree_tab.html +68 -0
- claude_mpm/dashboard/static/archive/test_dashboard.html +409 -0
- claude_mpm/dashboard/static/archive/test_dashboard_fixed.html +519 -0
- claude_mpm/dashboard/static/archive/test_dashboard_verification.html +181 -0
- claude_mpm/dashboard/static/archive/test_file_data.html +315 -0
- claude_mpm/dashboard/static/archive/test_file_tree_empty_state.html +243 -0
- claude_mpm/dashboard/static/archive/test_file_tree_fix.html +234 -0
- claude_mpm/dashboard/static/archive/test_file_tree_rename.html +117 -0
- claude_mpm/dashboard/static/archive/test_file_tree_tab.html +115 -0
- claude_mpm/dashboard/static/archive/test_file_viewer.html +224 -0
- claude_mpm/dashboard/static/archive/test_final_activity.html +220 -0
- claude_mpm/dashboard/static/archive/test_tab_fix.html +139 -0
- claude_mpm/dashboard/static/built/assets/events.DjpNxWNo.css +1 -0
- claude_mpm/dashboard/static/built/components/activity-tree.js +1 -1
- claude_mpm/dashboard/static/built/components/agent-hierarchy.js +777 -0
- claude_mpm/dashboard/static/built/components/agent-inference.js +1 -1
- claude_mpm/dashboard/static/built/components/build-tracker.js +333 -0
- claude_mpm/dashboard/static/built/components/code-simple.js +857 -0
- claude_mpm/dashboard/static/built/components/code-tree/tree-breadcrumb.js +353 -0
- claude_mpm/dashboard/static/built/components/code-tree/tree-constants.js +235 -0
- claude_mpm/dashboard/static/built/components/code-tree/tree-search.js +409 -0
- claude_mpm/dashboard/static/built/components/code-tree/tree-utils.js +435 -0
- claude_mpm/dashboard/static/built/components/code-viewer.js +2 -1076
- claude_mpm/dashboard/static/built/components/connection-debug.js +654 -0
- claude_mpm/dashboard/static/built/components/diff-viewer.js +891 -0
- claude_mpm/dashboard/static/built/components/event-processor.js +1 -1
- claude_mpm/dashboard/static/built/components/event-viewer.js +1 -1
- claude_mpm/dashboard/static/built/components/export-manager.js +1 -1
- claude_mpm/dashboard/static/built/components/file-change-tracker.js +443 -0
- claude_mpm/dashboard/static/built/components/file-change-viewer.js +690 -0
- claude_mpm/dashboard/static/built/components/file-tool-tracker.js +1 -1
- claude_mpm/dashboard/static/built/components/module-viewer.js +1 -1
- claude_mpm/dashboard/static/built/components/nav-bar.js +145 -0
- claude_mpm/dashboard/static/built/components/page-structure.js +429 -0
- claude_mpm/dashboard/static/built/components/session-manager.js +1 -1
- claude_mpm/dashboard/static/built/components/ui-state-manager.js +2 -465
- claude_mpm/dashboard/static/built/components/working-directory.js +1 -1
- claude_mpm/dashboard/static/built/connection-manager.js +536 -0
- claude_mpm/dashboard/static/built/dashboard.js +1 -1
- claude_mpm/dashboard/static/built/extension-error-handler.js +164 -0
- claude_mpm/dashboard/static/built/react/events.js +30 -0
- claude_mpm/dashboard/static/built/shared/dom-helpers.js +396 -0
- claude_mpm/dashboard/static/built/shared/event-bus.js +330 -0
- claude_mpm/dashboard/static/built/shared/event-filter-service.js +540 -0
- claude_mpm/dashboard/static/built/shared/logger.js +385 -0
- claude_mpm/dashboard/static/built/shared/page-structure.js +251 -0
- claude_mpm/dashboard/static/built/shared/tooltip-service.js +253 -0
- claude_mpm/dashboard/static/built/socket-client.js +1 -1
- claude_mpm/dashboard/static/built/tab-isolation-fix.js +185 -0
- claude_mpm/dashboard/static/css/dashboard.css +28 -5
- claude_mpm/dashboard/static/dist/assets/events.DjpNxWNo.css +1 -0
- claude_mpm/dashboard/static/dist/components/activity-tree.js +1 -1
- claude_mpm/dashboard/static/dist/components/agent-inference.js +1 -1
- claude_mpm/dashboard/static/dist/components/code-viewer.js +2 -0
- claude_mpm/dashboard/static/dist/components/event-processor.js +1 -1
- claude_mpm/dashboard/static/dist/components/event-viewer.js +1 -1
- claude_mpm/dashboard/static/dist/components/export-manager.js +1 -1
- claude_mpm/dashboard/static/dist/components/file-tool-tracker.js +1 -1
- claude_mpm/dashboard/static/dist/components/module-viewer.js +1 -1
- claude_mpm/dashboard/static/dist/components/session-manager.js +1 -1
- claude_mpm/dashboard/static/dist/components/working-directory.js +1 -1
- claude_mpm/dashboard/static/dist/dashboard.js +1 -1
- claude_mpm/dashboard/static/dist/react/events.js +30 -0
- claude_mpm/dashboard/static/dist/socket-client.js +1 -1
- claude_mpm/dashboard/static/events.html +607 -0
- claude_mpm/dashboard/static/index.html +713 -0
- claude_mpm/dashboard/static/js/components/activity-tree.js +3 -17
- claude_mpm/dashboard/static/js/components/agent-hierarchy.js +4 -1
- claude_mpm/dashboard/static/js/components/agent-inference.js +3 -0
- claude_mpm/dashboard/static/js/components/build-tracker.js +8 -0
- claude_mpm/dashboard/static/js/components/code-viewer.js +306 -66
- claude_mpm/dashboard/static/js/components/event-processor.js +3 -0
- claude_mpm/dashboard/static/js/components/event-viewer.js +39 -2
- claude_mpm/dashboard/static/js/components/export-manager.js +3 -0
- claude_mpm/dashboard/static/js/components/file-tool-tracker.js +30 -10
- claude_mpm/dashboard/static/js/components/socket-manager.js +4 -0
- claude_mpm/dashboard/static/js/components/ui-state-manager.js +285 -85
- claude_mpm/dashboard/static/js/components/working-directory.js +3 -0
- claude_mpm/dashboard/static/js/dashboard.js +61 -33
- claude_mpm/dashboard/static/js/socket-client.js +12 -8
- claude_mpm/dashboard/static/js/stores/dashboard-store.js +562 -0
- claude_mpm/dashboard/static/js/tab-isolation-fix.js +185 -0
- claude_mpm/dashboard/static/legacy/activity.html +736 -0
- claude_mpm/dashboard/static/legacy/agents.html +786 -0
- claude_mpm/dashboard/static/legacy/files.html +747 -0
- claude_mpm/dashboard/static/legacy/tools.html +831 -0
- claude_mpm/dashboard/static/monitors-index.html +218 -0
- claude_mpm/dashboard/static/monitors.html +431 -0
- claude_mpm/dashboard/static/production/events.html +659 -0
- claude_mpm/dashboard/static/production/main.html +715 -0
- claude_mpm/dashboard/static/production/monitors.html +483 -0
- claude_mpm/dashboard/static/socket.io.min.js +7 -0
- claude_mpm/dashboard/static/socket.io.v4.8.1.backup.js +7 -0
- claude_mpm/dashboard/static/test-archive/dashboard.html +635 -0
- claude_mpm/dashboard/static/test-archive/debug-events.html +147 -0
- claude_mpm/dashboard/static/test-archive/test-navigation.html +256 -0
- claude_mpm/dashboard/static/test-archive/test-react-exports.html +180 -0
- claude_mpm/dashboard/templates/index.html +79 -9
- claude_mpm/hooks/claude_hooks/services/connection_manager_http.py +1 -1
- claude_mpm/services/agents/deployment/agent_discovery_service.py +3 -0
- claude_mpm/services/agents/deployment/agent_template_builder.py +25 -8
- claude_mpm/services/agents/deployment/agent_validator.py +3 -0
- claude_mpm/services/agents/deployment/validation/template_validator.py +13 -4
- claude_mpm/services/agents/local_template_manager.py +2 -6
- claude_mpm/services/monitor/daemon.py +1 -2
- claude_mpm/services/monitor/daemon_manager.py +2 -5
- claude_mpm/services/monitor/event_emitter.py +2 -2
- claude_mpm/services/monitor/handlers/code_analysis.py +4 -6
- claude_mpm/services/monitor/handlers/hooks.py +2 -4
- claude_mpm/services/monitor/server.py +27 -4
- claude_mpm/tools/code_tree_analyzer.py +2 -2
- {claude_mpm-4.2.44.dist-info → claude_mpm-4.2.51.dist-info}/METADATA +1 -1
- {claude_mpm-4.2.44.dist-info → claude_mpm-4.2.51.dist-info}/RECORD +146 -81
- claude_mpm/dashboard/static/test-browser-monitor.html +0 -470
- claude_mpm/dashboard/static/test-simple.html +0 -97
- /claude_mpm/dashboard/static/{test_debug.html → test-archive/test_debug.html} +0 -0
- {claude_mpm-4.2.44.dist-info → claude_mpm-4.2.51.dist-info}/WHEEL +0 -0
- {claude_mpm-4.2.44.dist-info → claude_mpm-4.2.51.dist-info}/entry_points.txt +0 -0
- {claude_mpm-4.2.44.dist-info → claude_mpm-4.2.51.dist-info}/licenses/LICENSE +0 -0
- {claude_mpm-4.2.44.dist-info → claude_mpm-4.2.51.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,715 @@
|
|
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 Socket.IO Dashboard</title>
|
7
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHJ4PSI2IiBmaWxsPSIjNDI5OWUxIi8+CiAgPHRleHQgeD0iMTYiIHk9IjIxIiBmb250LWZhbWlseT0iSGVsdmV0aWNhLCBBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMCIgZm9udC13ZWlnaHQ9ImJvbGQiIGZpbGw9IndoaXRlIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5NUE08L3RleHQ+Cjwvc3ZnPgo=">
|
8
|
+
|
9
|
+
<!-- Browser Extension Error Handler - Load First -->
|
10
|
+
<script type="module">
|
11
|
+
// Load extension error handler before anything else to catch early errors
|
12
|
+
import extensionErrorHandler from '/static/js/extension-error-handler.js';
|
13
|
+
// Handler is automatically initialized on import
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<!-- External Dependencies -->
|
17
|
+
<script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script>
|
18
|
+
|
19
|
+
<!-- D3.js for Activity Tree Visualization -->
|
20
|
+
<script src="https://d3js.org/d3.v7.min.js"></script>
|
21
|
+
|
22
|
+
<!-- Font Awesome for icons -->
|
23
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
24
|
+
|
25
|
+
<!-- Syntax Highlighting - Prism.js -->
|
26
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet">
|
27
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script>
|
28
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
29
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
30
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.css" rel="stylesheet">
|
31
|
+
|
32
|
+
<!-- Stylesheets -->
|
33
|
+
<link rel="stylesheet" href="/static/css/dashboard.css">
|
34
|
+
<link rel="stylesheet" href="/static/css/connection-status.css">
|
35
|
+
<link rel="stylesheet" href="/static/css/activity.css">
|
36
|
+
<link rel="stylesheet" href="/static/css/code-tree.css">
|
37
|
+
|
38
|
+
<!-- Additional styles for file operations -->
|
39
|
+
<style>
|
40
|
+
/* Navigation Bar */
|
41
|
+
.nav-bar {
|
42
|
+
background: rgba(255, 255, 255, 0.98);
|
43
|
+
border-bottom: 1px solid #e2e8f0;
|
44
|
+
padding: 10px 20px;
|
45
|
+
display: flex;
|
46
|
+
align-items: center;
|
47
|
+
gap: 20px;
|
48
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
49
|
+
position: sticky;
|
50
|
+
top: 0;
|
51
|
+
z-index: 1000;
|
52
|
+
}
|
53
|
+
|
54
|
+
.nav-bar a {
|
55
|
+
color: #4a5568;
|
56
|
+
text-decoration: none;
|
57
|
+
padding: 8px 16px;
|
58
|
+
border-radius: 6px;
|
59
|
+
transition: all 0.2s ease;
|
60
|
+
display: flex;
|
61
|
+
align-items: center;
|
62
|
+
gap: 8px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.nav-bar a:hover {
|
66
|
+
background: #edf2f7;
|
67
|
+
color: #4299e1;
|
68
|
+
}
|
69
|
+
|
70
|
+
.nav-bar .nav-title {
|
71
|
+
color: #2d3748;
|
72
|
+
font-weight: 600;
|
73
|
+
margin-right: auto;
|
74
|
+
}
|
75
|
+
|
76
|
+
.nav-bar .nav-badge {
|
77
|
+
background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
|
78
|
+
color: white;
|
79
|
+
padding: 2px 8px;
|
80
|
+
border-radius: 12px;
|
81
|
+
font-size: 0.75rem;
|
82
|
+
font-weight: 600;
|
83
|
+
}
|
84
|
+
|
85
|
+
.file-item {
|
86
|
+
background: white;
|
87
|
+
border-radius: 6px;
|
88
|
+
padding: 12px;
|
89
|
+
margin-bottom: 8px;
|
90
|
+
border-left: 4px solid #4299e1;
|
91
|
+
cursor: pointer;
|
92
|
+
transition: all 0.2s;
|
93
|
+
}
|
94
|
+
|
95
|
+
.file-item:hover {
|
96
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
97
|
+
transform: translateX(2px);
|
98
|
+
}
|
99
|
+
|
100
|
+
.file-header {
|
101
|
+
display: flex;
|
102
|
+
align-items: center;
|
103
|
+
gap: 8px;
|
104
|
+
margin-bottom: 4px;
|
105
|
+
}
|
106
|
+
|
107
|
+
.file-icon {
|
108
|
+
font-size: 16px;
|
109
|
+
min-width: 20px;
|
110
|
+
}
|
111
|
+
|
112
|
+
.file-path {
|
113
|
+
flex: 1;
|
114
|
+
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
|
115
|
+
font-size: 13px;
|
116
|
+
color: #2d3748;
|
117
|
+
word-break: break-all;
|
118
|
+
}
|
119
|
+
|
120
|
+
.file-timestamp {
|
121
|
+
font-size: 12px;
|
122
|
+
color: #718096;
|
123
|
+
}
|
124
|
+
|
125
|
+
.file-summary {
|
126
|
+
font-size: 12px;
|
127
|
+
color: #4a5568;
|
128
|
+
margin-left: 28px;
|
129
|
+
}
|
130
|
+
|
131
|
+
.operation-item {
|
132
|
+
background: #f8fafc;
|
133
|
+
border: 1px solid #e2e8f0;
|
134
|
+
border-radius: 6px;
|
135
|
+
padding: 10px;
|
136
|
+
margin-bottom: 8px;
|
137
|
+
}
|
138
|
+
|
139
|
+
.operation-header {
|
140
|
+
display: flex;
|
141
|
+
align-items: center;
|
142
|
+
gap: 8px;
|
143
|
+
margin-bottom: 6px;
|
144
|
+
}
|
145
|
+
|
146
|
+
.operation-icon {
|
147
|
+
font-size: 14px;
|
148
|
+
min-width: 16px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.operation-type {
|
152
|
+
font-weight: 600;
|
153
|
+
color: #2d3748;
|
154
|
+
}
|
155
|
+
|
156
|
+
.operation-timestamp {
|
157
|
+
margin-left: auto;
|
158
|
+
font-size: 11px;
|
159
|
+
color: #718096;
|
160
|
+
}
|
161
|
+
|
162
|
+
.operation-details {
|
163
|
+
font-size: 12px;
|
164
|
+
color: #4a5568;
|
165
|
+
line-height: 1.4;
|
166
|
+
}
|
167
|
+
|
168
|
+
.file-details {
|
169
|
+
background: white;
|
170
|
+
border-radius: 6px;
|
171
|
+
padding: 15px;
|
172
|
+
}
|
173
|
+
|
174
|
+
.file-path-display {
|
175
|
+
font-size: 14px;
|
176
|
+
margin-bottom: 15px;
|
177
|
+
padding-bottom: 10px;
|
178
|
+
border-bottom: 1px solid #e2e8f0;
|
179
|
+
}
|
180
|
+
|
181
|
+
.operations-list {
|
182
|
+
max-height: 400px;
|
183
|
+
overflow-y: auto;
|
184
|
+
}
|
185
|
+
</style>
|
186
|
+
</head>
|
187
|
+
<body>
|
188
|
+
<!-- Navigation Bar -->
|
189
|
+
<nav class="nav-bar">
|
190
|
+
<a href="/static/" title="Back to Dashboard Hub">← Hub</a>
|
191
|
+
<span class="nav-title">Integrated Dashboard</span>
|
192
|
+
<span class="nav-badge">Production</span>
|
193
|
+
<a href="/static/production/events.html">Events Monitor</a>
|
194
|
+
<a href="/static/production/monitors.html">System Monitors</a>
|
195
|
+
</nav>
|
196
|
+
|
197
|
+
<!-- Connection Notifications Area -->
|
198
|
+
<div id="connection-notifications" class="connection-notifications"></div>
|
199
|
+
|
200
|
+
<div class="container">
|
201
|
+
<!-- Header Section -->
|
202
|
+
<div class="header">
|
203
|
+
<!-- Row 1: Title, Status, Metrics -->
|
204
|
+
<div class="header-row">
|
205
|
+
<div class="header-title">
|
206
|
+
<h1>🚀 Claude MPM Monitor</h1>
|
207
|
+
<a href="/static/monitors-index.html" style="
|
208
|
+
display: inline-block;
|
209
|
+
margin-left: 20px;
|
210
|
+
padding: 8px 16px;
|
211
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
212
|
+
color: white;
|
213
|
+
text-decoration: none;
|
214
|
+
border-radius: 8px;
|
215
|
+
font-size: 14px;
|
216
|
+
font-weight: 500;
|
217
|
+
transition: transform 0.2s, box-shadow 0.2s;
|
218
|
+
vertical-align: middle;
|
219
|
+
"
|
220
|
+
onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 5px 15px rgba(102, 126, 234, 0.4)';"
|
221
|
+
onmouseout="this.style.transform=''; this.style.boxShadow='';">
|
222
|
+
Try New Dashboard →
|
223
|
+
</a>
|
224
|
+
<div id="connection-status" class="status-badge status-disconnected">
|
225
|
+
<span>●</span> Disconnected
|
226
|
+
</div>
|
227
|
+
<div id="connection-quality" class="connection-quality" style="display: none;">
|
228
|
+
<div class="quality-bar">
|
229
|
+
<div class="quality-fill"></div>
|
230
|
+
</div>
|
231
|
+
<span class="quality-text">--</span>
|
232
|
+
</div>
|
233
|
+
<span id="connection-latency" class="connection-latency" style="display: none;">--ms</span>
|
234
|
+
<!-- Version display will be inserted here by BuildTracker component -->
|
235
|
+
</div>
|
236
|
+
<div class="metrics-widget">
|
237
|
+
<div class="metric-mini">
|
238
|
+
<div class="metric-mini-value" id="total-events">0</div>
|
239
|
+
<div class="metric-mini-label">Events</div>
|
240
|
+
</div>
|
241
|
+
<div class="metric-mini">
|
242
|
+
<div class="metric-mini-value" id="events-per-minute">0</div>
|
243
|
+
<div class="metric-mini-label">Per Min</div>
|
244
|
+
</div>
|
245
|
+
<div class="metric-mini">
|
246
|
+
<div class="metric-mini-value" id="unique-types">0</div>
|
247
|
+
<div class="metric-mini-label">Types</div>
|
248
|
+
</div>
|
249
|
+
<div class="metric-mini">
|
250
|
+
<div class="metric-mini-value" id="error-count">0</div>
|
251
|
+
<div class="metric-mini-label">Errors</div>
|
252
|
+
</div>
|
253
|
+
<!-- Debug metrics for troubleshooting -->
|
254
|
+
<div class="metric-mini" style="background: rgba(255,255,255,0.05);">
|
255
|
+
<div class="metric-mini-value" id="debug-events-received">0</div>
|
256
|
+
<div class="metric-mini-label">Received</div>
|
257
|
+
</div>
|
258
|
+
<div class="metric-mini" style="background: rgba(255,255,255,0.05);">
|
259
|
+
<div class="metric-mini-value" id="debug-events-rendered">0</div>
|
260
|
+
<div class="metric-mini-label">Rendered</div>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<!-- Row 2: Main Controls (Always Visible) -->
|
266
|
+
<div class="header-row main-controls">
|
267
|
+
<div class="session-group">
|
268
|
+
<label>Session:</label>
|
269
|
+
<select id="session-select" class="session-select">
|
270
|
+
<option value="">All Sessions</option>
|
271
|
+
</select>
|
272
|
+
</div>
|
273
|
+
<div class="working-dir-group">
|
274
|
+
<label>Working Dir:</label>
|
275
|
+
<div class="working-dir-display">
|
276
|
+
<span id="working-dir-path" class="working-dir-path" title="Click to browse files • Shift+Click to change directory">Loading...</span>
|
277
|
+
<button id="change-dir-btn" class="btn-icon" title="Change working directory">📁</button>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
<div class="action-buttons">
|
281
|
+
<button id="export-btn" class="btn-success">Export</button>
|
282
|
+
</div>
|
283
|
+
<div class="connection-toggle">
|
284
|
+
<button id="connection-toggle-btn" class="btn-secondary">Connection Settings</button>
|
285
|
+
</div>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
<!-- Row 3: Connection Controls (Hidden by Default) -->
|
289
|
+
<div class="header-row connection-controls-row" id="connection-controls-row" style="display: none;">
|
290
|
+
<div class="connection-controls">
|
291
|
+
<button id="connect-btn">Connect</button>
|
292
|
+
<button id="disconnect-btn" class="btn-secondary">Disconnect</button>
|
293
|
+
<input type="text" id="port-input" value="8765" placeholder="Port">
|
294
|
+
<label>Session:</label>
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
|
299
|
+
<!-- Main Content Area -->
|
300
|
+
<div class="events-wrapper">
|
301
|
+
<!-- Split container for module viewer and tabbed content -->
|
302
|
+
<div class="split-container" id="normal-view">
|
303
|
+
<!-- Left: Module Viewer -->
|
304
|
+
<div class="module-viewer">
|
305
|
+
<!-- Single pane layout: Structured Data with collapsible JSON -->
|
306
|
+
<div class="module-panes" id="module-content">
|
307
|
+
<!-- Data Pane -->
|
308
|
+
<div class="module-data-pane">
|
309
|
+
<div class="module-data-header">
|
310
|
+
<h5>📊 Structured Data</h5>
|
311
|
+
</div>
|
312
|
+
<div class="module-data-content" id="module-data-content">
|
313
|
+
<div class="module-empty">
|
314
|
+
<p>Click on an event to view structured data</p>
|
315
|
+
<p class="module-hint">Data is organized by event type</p>
|
316
|
+
</div>
|
317
|
+
</div>
|
318
|
+
</div>
|
319
|
+
|
320
|
+
</div>
|
321
|
+
</div>
|
322
|
+
|
323
|
+
<!-- Right: Tabbed Content -->
|
324
|
+
<div class="events-container">
|
325
|
+
<!-- Tab Navigation - Using hash-based navigation -->
|
326
|
+
<div class="tab-nav">
|
327
|
+
<a href="#events" class="tab-button" data-tab="events">📊 Events</a>
|
328
|
+
<a href="#agents" class="tab-button" data-tab="agents">🤖 Agents</a>
|
329
|
+
<a href="#tools" class="tab-button" data-tab="tools">🔧 Tools</a>
|
330
|
+
<a href="#files" class="tab-button" data-tab="files">📁 Files</a>
|
331
|
+
<a href="#activity" class="tab-button" data-tab="activity">🌳 Activity</a>
|
332
|
+
<a href="#file_tree" class="tab-button" data-tab="claude-tree">📝 File Tree</a>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
<!-- Events Tab -->
|
336
|
+
<div class="tab-content" id="events-tab">
|
337
|
+
<div class="tab-filters">
|
338
|
+
<input type="text" id="events-search-input" placeholder="Search events...">
|
339
|
+
<select id="events-type-filter">
|
340
|
+
<option value="">All Events</option>
|
341
|
+
<!-- Event types will be dynamically populated from actual event data -->
|
342
|
+
</select>
|
343
|
+
</div>
|
344
|
+
<div class="events-list" id="events-list">
|
345
|
+
<div class="no-events">
|
346
|
+
Connect to Socket.IO server to see events...
|
347
|
+
</div>
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
|
351
|
+
<!-- Agents Tab -->
|
352
|
+
<div class="tab-content" id="agents-tab">
|
353
|
+
<div class="tab-filters">
|
354
|
+
<input type="text" id="agents-search-input" placeholder="Search agents...">
|
355
|
+
<select id="agents-type-filter">
|
356
|
+
<option value="">All Agents</option>
|
357
|
+
<option value="research">Research</option>
|
358
|
+
<option value="engineer">Engineer</option>
|
359
|
+
<option value="pm">Project Manager</option>
|
360
|
+
<option value="ops">Operations</option>
|
361
|
+
</select>
|
362
|
+
</div>
|
363
|
+
<div class="events-list" id="agents-list">
|
364
|
+
<div class="no-events">
|
365
|
+
No agent events found...
|
366
|
+
</div>
|
367
|
+
</div>
|
368
|
+
</div>
|
369
|
+
|
370
|
+
<!-- Tools Tab -->
|
371
|
+
<div class="tab-content" id="tools-tab">
|
372
|
+
<div class="tab-filters">
|
373
|
+
<input type="text" id="tools-search-input" placeholder="Search tools...">
|
374
|
+
<select id="tools-type-filter">
|
375
|
+
<option value="">All Tools</option>
|
376
|
+
<option value="Read">Read</option>
|
377
|
+
<option value="Write">Write</option>
|
378
|
+
<option value="Edit">Edit</option>
|
379
|
+
<option value="Bash">Bash</option>
|
380
|
+
<option value="Grep">Grep</option>
|
381
|
+
<option value="Glob">Glob</option>
|
382
|
+
</select>
|
383
|
+
</div>
|
384
|
+
<div class="events-list" id="tools-list">
|
385
|
+
<div class="no-events">
|
386
|
+
No tool events found...
|
387
|
+
</div>
|
388
|
+
</div>
|
389
|
+
</div>
|
390
|
+
|
391
|
+
<!-- Files Tab -->
|
392
|
+
<div class="tab-content" id="files-tab">
|
393
|
+
<div class="tab-filters">
|
394
|
+
<input type="text" id="files-search-input" placeholder="Search files...">
|
395
|
+
<select id="files-type-filter">
|
396
|
+
<option value="">All Operations</option>
|
397
|
+
<option value="read">Read</option>
|
398
|
+
<option value="write">Write</option>
|
399
|
+
<option value="edit">Edit</option>
|
400
|
+
<option value="search">Search</option>
|
401
|
+
</select>
|
402
|
+
</div>
|
403
|
+
<div class="events-list" id="files-list">
|
404
|
+
<div class="no-events">
|
405
|
+
No file operations found...
|
406
|
+
</div>
|
407
|
+
</div>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
<!-- Activity Tab -->
|
411
|
+
<div class="tab-content" id="activity-tab">
|
412
|
+
<div class="activity-container">
|
413
|
+
<div class="activity-header">
|
414
|
+
<div class="activity-controls">
|
415
|
+
<button id="expand-all" class="btn-sm">Expand All</button>
|
416
|
+
<button id="collapse-all" class="btn-sm">Collapse All</button>
|
417
|
+
<select id="time-range">
|
418
|
+
<option value="all">All Time</option>
|
419
|
+
<option value="hour">Last Hour</option>
|
420
|
+
<option value="30min" selected>Last 30 Minutes</option>
|
421
|
+
<option value="10min">Last 10 Minutes</option>
|
422
|
+
</select>
|
423
|
+
<input type="text" id="activity-search" placeholder="Search nodes...">
|
424
|
+
</div>
|
425
|
+
<div class="activity-stats">
|
426
|
+
<span class="stat-item">
|
427
|
+
<span class="stat-label">Nodes:</span>
|
428
|
+
<span id="node-count" class="stat-value">0</span>
|
429
|
+
</span>
|
430
|
+
<span class="stat-item">
|
431
|
+
<span class="stat-label">Active:</span>
|
432
|
+
<span id="active-count" class="stat-value">0</span>
|
433
|
+
</span>
|
434
|
+
<span class="stat-item">
|
435
|
+
<span class="stat-label">Depth:</span>
|
436
|
+
<span id="tree-depth" class="stat-value">0</span>
|
437
|
+
</span>
|
438
|
+
</div>
|
439
|
+
</div>
|
440
|
+
<div id="activity-tree-container" class="activity-tree-container">
|
441
|
+
<div id="activity-tree"></div>
|
442
|
+
<div class="tree-legend">
|
443
|
+
<div class="legend-item">
|
444
|
+
<span class="legend-icon">📁</span>
|
445
|
+
<span>Project Root</span>
|
446
|
+
</div>
|
447
|
+
<div class="legend-item">
|
448
|
+
<span class="legend-icon pm">🎯</span>
|
449
|
+
<span>PM Session</span>
|
450
|
+
</div>
|
451
|
+
<div class="legend-item">
|
452
|
+
<span class="legend-icon todowrite">📝</span>
|
453
|
+
<span>Todo Item</span>
|
454
|
+
</div>
|
455
|
+
<div class="legend-item">
|
456
|
+
<span class="legend-icon agent">🤖</span>
|
457
|
+
<span>Agent</span>
|
458
|
+
</div>
|
459
|
+
<div class="legend-item">
|
460
|
+
<span class="legend-icon tool">🔧</span>
|
461
|
+
<span>Tool</span>
|
462
|
+
</div>
|
463
|
+
</div>
|
464
|
+
</div>
|
465
|
+
<div class="activity-breadcrumb" id="activity-breadcrumb">
|
466
|
+
PM > Click a node to see path
|
467
|
+
</div>
|
468
|
+
</div>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
<!-- File Tree Tab -->
|
472
|
+
<div class="tab-content" id="claude-tree-tab">
|
473
|
+
<div id="claude-tree-container" style="width: 100%; height: 100%; position: relative;">
|
474
|
+
<!-- File activity tree will be rendered here by code-viewer.js -->
|
475
|
+
<!-- This container is ISOLATED from other tabs -->
|
476
|
+
</div>
|
477
|
+
</div>
|
478
|
+
|
479
|
+
|
480
|
+
</div>
|
481
|
+
</div>
|
482
|
+
</div>
|
483
|
+
</div>
|
484
|
+
|
485
|
+
|
486
|
+
<!-- Footer -->
|
487
|
+
<div class="footer">
|
488
|
+
<div class="footer-content">
|
489
|
+
<div class="footer-item">
|
490
|
+
<span class="footer-label">Session:</span>
|
491
|
+
<span class="footer-value" id="footer-session">All Sessions</span>
|
492
|
+
</div>
|
493
|
+
<span class="footer-divider">|</span>
|
494
|
+
<div class="footer-item">
|
495
|
+
<span class="footer-label">Directory:</span>
|
496
|
+
<span class="footer-value" id="footer-working-dir">Loading...</span>
|
497
|
+
</div>
|
498
|
+
<span class="footer-divider">|</span>
|
499
|
+
<div class="footer-item">
|
500
|
+
<span class="footer-label">Branch:</span>
|
501
|
+
<span class="footer-value" id="footer-git-branch">Unknown</span>
|
502
|
+
</div>
|
503
|
+
<!-- Analysis Status (hidden by default) -->
|
504
|
+
<div class="footer-item" id="footer-analysis-container" style="display: none;">
|
505
|
+
<span class="footer-divider">|</span>
|
506
|
+
<span class="footer-label">Analysis:</span>
|
507
|
+
<span class="footer-value" id="footer-analysis-status">
|
508
|
+
<span class="analysis-progress" id="footer-analysis-progress"></span>
|
509
|
+
</span>
|
510
|
+
</div>
|
511
|
+
</div>
|
512
|
+
</div>
|
513
|
+
|
514
|
+
<!-- JavaScript Modules -->
|
515
|
+
<!-- Load bundled dashboard assets (built with Vite) - with proper initialization order -->
|
516
|
+
<script type="module">
|
517
|
+
// Set up working directory environment variables
|
518
|
+
// These will be used by the working-directory component
|
519
|
+
// The server will inject these values through a separate API call
|
520
|
+
|
521
|
+
// Get the current working directory from the server
|
522
|
+
fetch('/api/working-directory')
|
523
|
+
.then(response => response.json())
|
524
|
+
.then(data => {
|
525
|
+
window.processWorkingDirectory = data.working_directory || '/Users/masa/Projects/claude-mpm';
|
526
|
+
window.homeDirectory = data.home_directory || '/Users/masa';
|
527
|
+
|
528
|
+
// Store in session storage for persistence
|
529
|
+
if (window.processWorkingDirectory && window.processWorkingDirectory !== '/') {
|
530
|
+
sessionStorage.setItem('currentWorkingDirectory', window.processWorkingDirectory);
|
531
|
+
}
|
532
|
+
|
533
|
+
// Dispatch event to notify components that working directory is ready
|
534
|
+
window.dispatchEvent(new CustomEvent('workingDirectoryInitialized', {
|
535
|
+
detail: {
|
536
|
+
working_directory: window.processWorkingDirectory,
|
537
|
+
home_directory: window.homeDirectory
|
538
|
+
}
|
539
|
+
}));
|
540
|
+
})
|
541
|
+
.catch(error => {
|
542
|
+
console.error('Failed to get working directory from server:', error);
|
543
|
+
// Use defaults as fallback
|
544
|
+
window.processWorkingDirectory = '/Users/masa/Projects/claude-mpm';
|
545
|
+
window.homeDirectory = '/Users/masa';
|
546
|
+
});
|
547
|
+
|
548
|
+
// Add timestamp-based cache busting and ensure proper loading order
|
549
|
+
const timestamp = Date.now();
|
550
|
+
|
551
|
+
// Load modules sequentially to ensure dashboard.js loads first
|
552
|
+
const loadModule = (src) => {
|
553
|
+
return new Promise((resolve, reject) => {
|
554
|
+
const script = document.createElement('script');
|
555
|
+
script.type = 'module';
|
556
|
+
script.src = `${src}?t=${timestamp}`;
|
557
|
+
script.onload = resolve;
|
558
|
+
script.onerror = reject;
|
559
|
+
document.body.appendChild(script);
|
560
|
+
});
|
561
|
+
};
|
562
|
+
|
563
|
+
// Load shared services first, then tree modules, then components
|
564
|
+
// Load services sequentially to ensure dependencies are available
|
565
|
+
loadModule('/static/js/shared/tooltip-service.js')
|
566
|
+
.then(() => loadModule('/static/js/shared/dom-helpers.js'))
|
567
|
+
.then(() => loadModule('/static/js/shared/event-bus.js'))
|
568
|
+
.then(() => loadModule('/static/js/shared/logger.js'))
|
569
|
+
.then(() => loadModule('/static/js/components/code-tree/tree-utils.js'))
|
570
|
+
.then(() => loadModule('/static/js/components/code-tree/tree-constants.js'))
|
571
|
+
.then(() => loadModule('/static/js/components/code-tree/tree-search.js'))
|
572
|
+
.then(() => loadModule('/static/js/components/code-tree/tree-breadcrumb.js'))
|
573
|
+
.then(() => {
|
574
|
+
// CRITICAL: Load socket-client.js FIRST (dependency of socket-manager)
|
575
|
+
return loadModule('/static/js/socket-client.js');
|
576
|
+
})
|
577
|
+
.then(() => {
|
578
|
+
// CRITICAL: Load socket-manager BEFORE dashboard.js
|
579
|
+
// The source version must be loaded to make SocketManager globally available
|
580
|
+
return loadModule('/static/js/components/socket-manager.js');
|
581
|
+
})
|
582
|
+
.then(() => {
|
583
|
+
// Load all required dashboard dependencies BEFORE dashboard.js
|
584
|
+
// These must be available globally for the dist/dashboard.js to work
|
585
|
+
return Promise.all([
|
586
|
+
loadModule('/static/js/components/event-viewer.js'),
|
587
|
+
loadModule('/static/js/components/module-viewer.js'),
|
588
|
+
loadModule('/static/js/components/session-manager.js'),
|
589
|
+
loadModule('/static/js/components/agent-inference.js'),
|
590
|
+
loadModule('/static/js/components/agent-hierarchy.js'),
|
591
|
+
loadModule('/static/js/components/ui-state-manager.js'),
|
592
|
+
loadModule('/static/js/components/event-processor.js'),
|
593
|
+
loadModule('/static/js/components/export-manager.js'),
|
594
|
+
loadModule('/static/js/components/working-directory.js'),
|
595
|
+
loadModule('/static/js/components/file-tool-tracker.js'),
|
596
|
+
loadModule('/static/js/components/build-tracker.js')
|
597
|
+
]);
|
598
|
+
})
|
599
|
+
.then(() => {
|
600
|
+
// Now load main components including dashboard.js which depends on the above
|
601
|
+
return Promise.all([
|
602
|
+
loadModule('/static/dist/dashboard.js'), // Use dist version that requires above components
|
603
|
+
loadModule('/static/dist/components/activity-tree.js'),
|
604
|
+
loadModule('/static/js/components/code-tree.js'), // TEMPORARY: Direct source for debugging
|
605
|
+
loadModule('/static/js/components/code-viewer.js').catch(err => {
|
606
|
+
console.error('[CRITICAL] Failed to load code-viewer.js:', err);
|
607
|
+
throw err;
|
608
|
+
}), // Code viewer now includes file change tracking
|
609
|
+
loadModule('/static/dist/components/file-viewer.js') // File viewer for viewing file contents
|
610
|
+
]);
|
611
|
+
})
|
612
|
+
.then(() => {
|
613
|
+
console.log('All dashboard modules loaded successfully');
|
614
|
+
|
615
|
+
// Debug: Check if CodeViewer loaded
|
616
|
+
if (window.CodeViewer) {
|
617
|
+
console.log('[DEBUG] CodeViewer is available on window object');
|
618
|
+
} else {
|
619
|
+
console.error('[ERROR] CodeViewer NOT FOUND on window object!');
|
620
|
+
}
|
621
|
+
|
622
|
+
// CodeViewer will auto-initialize and handle tab switching internally
|
623
|
+
|
624
|
+
// Browser Log Viewer initialization is now handled by UIStateManager
|
625
|
+
// This prevents duplicate event handlers and tab selection conflicts
|
626
|
+
|
627
|
+
// Load bulletproof tab isolation fix
|
628
|
+
loadModule('/static/js/tab-isolation-fix.js')
|
629
|
+
.then(() => {
|
630
|
+
console.log('✅ Tab isolation fix loaded successfully');
|
631
|
+
})
|
632
|
+
.catch(err => {
|
633
|
+
console.error('❌ Failed to load tab isolation fix:', err);
|
634
|
+
});
|
635
|
+
|
636
|
+
// Hash navigation will handle default tab based on URL
|
637
|
+
// If no hash, default will be 'events' as per hashToTab mapping
|
638
|
+
// To start with File Tree, we can set hash if not present
|
639
|
+
setTimeout(() => {
|
640
|
+
if (!window.location.hash) {
|
641
|
+
console.log('No hash present, setting default to File Tree tab...');
|
642
|
+
window.location.hash = '#file_tree';
|
643
|
+
} else {
|
644
|
+
console.log('Hash present:', window.location.hash);
|
645
|
+
}
|
646
|
+
}, 500);
|
647
|
+
})
|
648
|
+
.catch(error => {
|
649
|
+
console.error('[CRITICAL] Error loading dashboard modules:', error);
|
650
|
+
console.error('Stack trace:', error.stack);
|
651
|
+
});
|
652
|
+
|
653
|
+
// Give modules time to execute and initialize dashboard
|
654
|
+
setTimeout(() => {
|
655
|
+
console.log('Checking dashboard initialization...');
|
656
|
+
|
657
|
+
if (window.dashboard) {
|
658
|
+
console.log('Dashboard found, checking auto-connect status...');
|
659
|
+
|
660
|
+
// Force auto-connect if not already connected
|
661
|
+
if (window.dashboard.socketManager) {
|
662
|
+
const socketManager = window.dashboard.socketManager;
|
663
|
+
|
664
|
+
if (!socketManager.isConnected() && !socketManager.isConnecting()) {
|
665
|
+
console.log('Dashboard loaded but not connected, forcing auto-connect...');
|
666
|
+
|
667
|
+
// Try to trigger auto-connect manually
|
668
|
+
const params = new URLSearchParams(window.location.search);
|
669
|
+
socketManager.initializeFromURL(params);
|
670
|
+
} else {
|
671
|
+
console.log('Dashboard already connected or connecting');
|
672
|
+
}
|
673
|
+
} else {
|
674
|
+
console.warn('Dashboard found but socketManager not available');
|
675
|
+
}
|
676
|
+
} else {
|
677
|
+
console.warn('Dashboard still not initialized after module loading');
|
678
|
+
|
679
|
+
// Try to manually trigger initialization
|
680
|
+
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
681
|
+
console.log('Document ready, attempting to trigger dashboard initialization...');
|
682
|
+
document.dispatchEvent(new Event('DOMContentLoaded'));
|
683
|
+
}
|
684
|
+
}
|
685
|
+
|
686
|
+
// Debug: Test connection settings button
|
687
|
+
const connectionToggleBtn = document.getElementById('connection-toggle-btn');
|
688
|
+
if (connectionToggleBtn) {
|
689
|
+
console.log('Connection toggle button found, testing functionality...');
|
690
|
+
|
691
|
+
// Add a debug click handler to ensure the button works
|
692
|
+
connectionToggleBtn.addEventListener('click', () => {
|
693
|
+
console.log('Connection toggle button clicked (debug handler)');
|
694
|
+
|
695
|
+
if (window.dashboard && window.dashboard.socketManager) {
|
696
|
+
console.log('Calling socketManager.toggleConnectionControls()');
|
697
|
+
window.dashboard.socketManager.toggleConnectionControls();
|
698
|
+
} else {
|
699
|
+
console.log('Manual toggle fallback');
|
700
|
+
const controlsRow = document.getElementById('connection-controls-row');
|
701
|
+
if (controlsRow) {
|
702
|
+
const isVisible = controlsRow.style.display !== 'none';
|
703
|
+
controlsRow.style.display = isVisible ? 'none' : 'block';
|
704
|
+
connectionToggleBtn.textContent = isVisible ? 'Connection Settings' : 'Hide Settings';
|
705
|
+
console.log(`Manually toggled controls visibility: ${!isVisible}`);
|
706
|
+
}
|
707
|
+
}
|
708
|
+
});
|
709
|
+
} else {
|
710
|
+
console.error('Connection toggle button not found in DOM');
|
711
|
+
}
|
712
|
+
}, 1000);
|
713
|
+
</script>
|
714
|
+
</body>
|
715
|
+
</html>
|