agentflow-dashboard 0.2.0 → 0.3.1
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 +24 -7
- package/dist/chunk-EDHK4NJD.js +1319 -0
- package/dist/cli.cjs +777 -90
- package/dist/cli.js +2 -116
- package/dist/index.cjs +869 -68
- package/dist/index.js +1 -1
- package/dist/public/dashboard.js +1749 -287
- package/dist/public/debug.html +43 -0
- package/dist/public/index.html +1191 -239
- package/dist/server.cjs +1350 -0
- package/dist/server.js +6 -0
- package/package.json +2 -2
- package/public/dashboard.js +1749 -287
- package/public/debug.html +43 -0
- package/public/index.html +1191 -239
- package/dist/chunk-L24LYP6L.js +0 -515
|
@@ -0,0 +1,43 @@
|
|
|
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>
|