agentflow-dashboard 0.5.0 → 0.7.0
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.
- package/README.md +20 -2
- package/dist/{chunk-RWNVLZU7.js → chunk-GA2Y6E62.js} +1362 -335
- package/dist/cli.cjs +1352 -341
- package/dist/cli.js +1 -1
- package/dist/client/assets/index-BQUye2Lc.js +50 -0
- package/dist/client/assets/index-Ds_npIxI.css +1 -0
- package/dist/client/dashboard.js +3113 -0
- package/dist/client/index.html +13 -0
- package/dist/index.cjs +1352 -341
- package/dist/index.js +1 -1
- package/dist/public/dashboard.js +1363 -545
- package/dist/public/index.html +13 -0
- package/dist/server.cjs +1352 -341
- package/dist/server.js +1 -1
- package/package.json +12 -4
- package/public/dashboard.js +1363 -545
- package/public/index.html +13 -0
- package/dist/public/debug.html +0 -43
- package/public/debug.html +0 -43
package/public/index.html
CHANGED
|
@@ -711,6 +711,19 @@
|
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
/* Enhanced Process Health */
|
|
714
|
+
.ph-service {
|
|
715
|
+
margin-bottom: 1rem;
|
|
716
|
+
padding: 0.6rem 0.8rem;
|
|
717
|
+
border: 1px solid var(--border-color, #30363d);
|
|
718
|
+
border-radius: 6px;
|
|
719
|
+
}
|
|
720
|
+
.ph-service-name {
|
|
721
|
+
font-weight: 600;
|
|
722
|
+
font-size: 0.95rem;
|
|
723
|
+
margin-bottom: 0.4rem;
|
|
724
|
+
color: var(--fg-primary, #e6edf3);
|
|
725
|
+
text-transform: capitalize;
|
|
726
|
+
}
|
|
714
727
|
.ph-section {
|
|
715
728
|
margin-bottom: 1rem;
|
|
716
729
|
}
|
package/dist/public/debug.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head><title>Test Dashboard API</title></head>
|
|
4
|
-
<body>
|
|
5
|
-
<script>
|
|
6
|
-
fetch('/api/process-health')
|
|
7
|
-
.then(r => r.json())
|
|
8
|
-
.then(data => {
|
|
9
|
-
console.log('Process Health Data:', data);
|
|
10
|
-
|
|
11
|
-
// Test categorization
|
|
12
|
-
const processes = data.osProcesses || [];
|
|
13
|
-
let agents = [];
|
|
14
|
-
let infrastructure = [];
|
|
15
|
-
|
|
16
|
-
processes.forEach(proc => {
|
|
17
|
-
const cmd = proc.command.toLowerCase();
|
|
18
|
-
const cmdline = (proc.cmdline || '').toLowerCase();
|
|
19
|
-
|
|
20
|
-
// Test infrastructure detection
|
|
21
|
-
if (cmd.includes('milvus') || cmdline.includes('milvus')) {
|
|
22
|
-
infrastructure.push({component: 'Milvus Vector DB', ...proc});
|
|
23
|
-
} else if (cmdline.includes('agentflow-dashboard')) {
|
|
24
|
-
agents.push({service: 'AgentFlow Dashboard', ...proc});
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
console.log('Detected Infrastructure:', infrastructure);
|
|
29
|
-
console.log('Detected Agents:', agents);
|
|
30
|
-
|
|
31
|
-
document.body.innerHTML = `
|
|
32
|
-
<h2>Process Health Debug</h2>
|
|
33
|
-
<h3>Infrastructure (${infrastructure.length}):</h3>
|
|
34
|
-
<ul>${infrastructure.map(i => `<li>PID ${i.pid}: ${i.component} (CPU: ${i.cpu}%)</li>`).join('')}</ul>
|
|
35
|
-
<h3>Agents (${agents.length}):</h3>
|
|
36
|
-
<ul>${agents.map(a => `<li>PID ${a.pid}: ${a.service} (CPU: ${a.cpu}%)</li>`).join('')}</ul>
|
|
37
|
-
<h3>Total OS Processes: ${processes.length}</h3>
|
|
38
|
-
`;
|
|
39
|
-
})
|
|
40
|
-
.catch(console.error);
|
|
41
|
-
</script>
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
package/public/debug.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head><title>Test Dashboard API</title></head>
|
|
4
|
-
<body>
|
|
5
|
-
<script>
|
|
6
|
-
fetch('/api/process-health')
|
|
7
|
-
.then(r => r.json())
|
|
8
|
-
.then(data => {
|
|
9
|
-
console.log('Process Health Data:', data);
|
|
10
|
-
|
|
11
|
-
// Test categorization
|
|
12
|
-
const processes = data.osProcesses || [];
|
|
13
|
-
let agents = [];
|
|
14
|
-
let infrastructure = [];
|
|
15
|
-
|
|
16
|
-
processes.forEach(proc => {
|
|
17
|
-
const cmd = proc.command.toLowerCase();
|
|
18
|
-
const cmdline = (proc.cmdline || '').toLowerCase();
|
|
19
|
-
|
|
20
|
-
// Test infrastructure detection
|
|
21
|
-
if (cmd.includes('milvus') || cmdline.includes('milvus')) {
|
|
22
|
-
infrastructure.push({component: 'Milvus Vector DB', ...proc});
|
|
23
|
-
} else if (cmdline.includes('agentflow-dashboard')) {
|
|
24
|
-
agents.push({service: 'AgentFlow Dashboard', ...proc});
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
console.log('Detected Infrastructure:', infrastructure);
|
|
29
|
-
console.log('Detected Agents:', agents);
|
|
30
|
-
|
|
31
|
-
document.body.innerHTML = `
|
|
32
|
-
<h2>Process Health Debug</h2>
|
|
33
|
-
<h3>Infrastructure (${infrastructure.length}):</h3>
|
|
34
|
-
<ul>${infrastructure.map(i => `<li>PID ${i.pid}: ${i.component} (CPU: ${i.cpu}%)</li>`).join('')}</ul>
|
|
35
|
-
<h3>Agents (${agents.length}):</h3>
|
|
36
|
-
<ul>${agents.map(a => `<li>PID ${a.pid}: ${a.service} (CPU: ${a.cpu}%)</li>`).join('')}</ul>
|
|
37
|
-
<h3>Total OS Processes: ${processes.length}</h3>
|
|
38
|
-
`;
|
|
39
|
-
})
|
|
40
|
-
.catch(console.error);
|
|
41
|
-
</script>
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|