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/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
  }
@@ -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>