agentflow-dashboard 0.1.0 → 0.1.2
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 +7 -7
- package/dist/index.cjs +4 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,13 +15,13 @@ Real-time monitoring dashboard for AgentFlow - Visualize agent execution graphs
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
# Install globally
|
|
18
|
-
npm install -g
|
|
18
|
+
npm install -g agentflow-dashboard
|
|
19
19
|
|
|
20
20
|
# Start monitoring your traces
|
|
21
21
|
agentflow-dashboard --traces ./traces --port 3000
|
|
22
22
|
|
|
23
23
|
# Or run with npx
|
|
24
|
-
npx
|
|
24
|
+
npx agentflow-dashboard --traces ./my-agent-traces
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Open http://localhost:3000 to view the dashboard.
|
|
@@ -29,7 +29,7 @@ Open http://localhost:3000 to view the dashboard.
|
|
|
29
29
|
## Installation
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
npm install
|
|
32
|
+
npm install agentflow-dashboard
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
**Requirements:**
|
|
@@ -70,7 +70,7 @@ agentflow-dashboard --traces ./my-ai-agent/traces
|
|
|
70
70
|
### Programmatic Usage
|
|
71
71
|
|
|
72
72
|
```typescript
|
|
73
|
-
import { DashboardServer } from '
|
|
73
|
+
import { DashboardServer } from 'agentflow-dashboard';
|
|
74
74
|
|
|
75
75
|
const dashboard = new DashboardServer({
|
|
76
76
|
port: 3000,
|
|
@@ -194,7 +194,7 @@ curl http://localhost:3000/api/agents
|
|
|
194
194
|
```dockerfile
|
|
195
195
|
FROM node:18-alpine
|
|
196
196
|
|
|
197
|
-
RUN npm install -g
|
|
197
|
+
RUN npm install -g agentflow-dashboard
|
|
198
198
|
|
|
199
199
|
EXPOSE 3000
|
|
200
200
|
|
|
@@ -212,7 +212,7 @@ services:
|
|
|
212
212
|
volumes:
|
|
213
213
|
- ./traces:/traces
|
|
214
214
|
command: >
|
|
215
|
-
sh -c "npm install -g
|
|
215
|
+
sh -c "npm install -g agentflow-dashboard &&
|
|
216
216
|
agentflow-dashboard --host 0.0.0.0 --traces /traces"
|
|
217
217
|
```
|
|
218
218
|
|
|
@@ -241,7 +241,7 @@ spec:
|
|
|
241
241
|
command:
|
|
242
242
|
- sh
|
|
243
243
|
- -c
|
|
244
|
-
- "npm install -g
|
|
244
|
+
- "npm install -g agentflow-dashboard && agentflow-dashboard --host 0.0.0.0"
|
|
245
245
|
volumeMounts:
|
|
246
246
|
- name: traces
|
|
247
247
|
mountPath: /traces
|
package/dist/index.cjs
CHANGED
|
@@ -42,6 +42,7 @@ var import_ws = require("ws");
|
|
|
42
42
|
var import_http = require("http");
|
|
43
43
|
var path2 = __toESM(require("path"), 1);
|
|
44
44
|
var fs2 = __toESM(require("fs"), 1);
|
|
45
|
+
var import_url = require("url");
|
|
45
46
|
|
|
46
47
|
// src/watcher.ts
|
|
47
48
|
var import_chokidar = __toESM(require("chokidar"), 1);
|
|
@@ -435,6 +436,9 @@ var AgentStats = class {
|
|
|
435
436
|
};
|
|
436
437
|
|
|
437
438
|
// src/server.ts
|
|
439
|
+
var import_meta = {};
|
|
440
|
+
var __filename = (0, import_url.fileURLToPath)(import_meta.url);
|
|
441
|
+
var __dirname = path2.dirname(__filename);
|
|
438
442
|
var DashboardServer = class {
|
|
439
443
|
constructor(config) {
|
|
440
444
|
this.config = config;
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { WebSocketServer } from "ws";
|
|
|
6
6
|
import { createServer } from "http";
|
|
7
7
|
import * as path2 from "path";
|
|
8
8
|
import * as fs2 from "fs";
|
|
9
|
+
import { fileURLToPath } from "url";
|
|
9
10
|
|
|
10
11
|
// src/watcher.ts
|
|
11
12
|
import chokidar from "chokidar";
|
|
@@ -399,6 +400,8 @@ var AgentStats = class {
|
|
|
399
400
|
};
|
|
400
401
|
|
|
401
402
|
// src/server.ts
|
|
403
|
+
var __filename = fileURLToPath(import.meta.url);
|
|
404
|
+
var __dirname = path2.dirname(__filename);
|
|
402
405
|
var DashboardServer = class {
|
|
403
406
|
constructor(config) {
|
|
404
407
|
this.config = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentflow-dashboard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Real-time monitoring dashboard for AgentFlow - Visualize agent execution graphs and performance",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"real-time"
|
|
49
49
|
],
|
|
50
50
|
"license": "MIT"
|
|
51
|
-
}
|
|
51
|
+
}
|