@agentxjs/portagent 1.3.0 → 1.5.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/LICENSE +0 -0
- package/README.md +23 -9
- package/dist/cli/index.js +659 -16
- package/dist/cli/index.js.map +15 -1
- package/dist/public/assets/main-fa01qzjx.js +77 -0
- package/dist/public/assets/main-pnn8q2ty.js +54596 -0
- package/dist/public/assets/main-pnn8q2ty.js.map +312 -0
- package/dist/public/assets/styles.css +2186 -0
- package/dist/public/index.html +3 -3
- package/dist/server/index.js +90 -133
- package/dist/server/index.js.map +13 -1
- package/package.json +15 -37
- package/dist/public/assets/browser-C0DG1J1h.js +0 -2
- package/dist/public/assets/browser-C0DG1J1h.js.map +0 -1
- package/dist/public/assets/index-BbPBfuHo.js +0 -1012
- package/dist/public/assets/index-BbPBfuHo.js.map +0 -1
- package/dist/public/assets/index-C4JWk6jH.css +0 -1
- package/dist/public/assets/index-XtJbS8_7.js +0 -2
- package/dist/public/assets/index-XtJbS8_7.js.map +0 -1
- package/dist/public/assets/reconnecting-websocket-mjs-Dd04wD44.js +0 -20
- package/dist/public/assets/reconnecting-websocket-mjs-Dd04wD44.js.map +0 -1
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -15,14 +15,27 @@ Portagent is a multi-user AI Agent gateway powered by [AgentX](https://github.co
|
|
|
15
15
|
|
|
16
16
|
## Quick Start
|
|
17
17
|
|
|
18
|
-
### Using
|
|
18
|
+
### Using npx (Quick Try)
|
|
19
|
+
|
|
20
|
+
One-liner to start, requires Node.js 20+:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
LLM_PROVIDER_KEY=sk-ant-xxxxx \
|
|
24
|
+
LLM_PROVIDER_URL=https://api.anthropic.com \
|
|
25
|
+
npx @agentxjs/portagent
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Then open <http://localhost:5200> in your browser.
|
|
29
|
+
|
|
30
|
+
### Using Docker (Recommended for Production)
|
|
19
31
|
|
|
20
32
|
```bash
|
|
21
33
|
docker run -d \
|
|
22
34
|
--name portagent \
|
|
23
35
|
-p 5200:5200 \
|
|
24
36
|
-e LLM_PROVIDER_KEY=sk-ant-xxxxx \
|
|
25
|
-
-
|
|
37
|
+
-e LLM_PROVIDER_URL=https://api.anthropic.com \
|
|
38
|
+
-v ./data:/home/node/.agentx \
|
|
26
39
|
deepracticexs/portagent:latest
|
|
27
40
|
```
|
|
28
41
|
|
|
@@ -55,7 +68,7 @@ services:
|
|
|
55
68
|
- INVITE_CODE_REQUIRED=${INVITE_CODE_REQUIRED:-false}
|
|
56
69
|
- LOG_LEVEL=${LOG_LEVEL:-info}
|
|
57
70
|
volumes:
|
|
58
|
-
- ./data:/home/
|
|
71
|
+
- ./data:/home/node/.agentx
|
|
59
72
|
healthcheck:
|
|
60
73
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5200/health"]
|
|
61
74
|
interval: 30s
|
|
@@ -76,8 +89,9 @@ docker compose up -d
|
|
|
76
89
|
# Install globally
|
|
77
90
|
npm install -g @agentxjs/portagent
|
|
78
91
|
|
|
79
|
-
# Run with required
|
|
92
|
+
# Run with required environment variables
|
|
80
93
|
export LLM_PROVIDER_KEY=sk-ant-xxxxx
|
|
94
|
+
export LLM_PROVIDER_URL=https://api.anthropic.com
|
|
81
95
|
portagent
|
|
82
96
|
```
|
|
83
97
|
|
|
@@ -259,7 +273,7 @@ services:
|
|
|
259
273
|
- INVITE_CODE_REQUIRED=true # Enable for production
|
|
260
274
|
- LOG_LEVEL=info
|
|
261
275
|
volumes:
|
|
262
|
-
- ./data:/home/
|
|
276
|
+
- ./data:/home/node/.agentx # Persist data
|
|
263
277
|
ports:
|
|
264
278
|
- "5200:5200"
|
|
265
279
|
```
|
|
@@ -270,7 +284,7 @@ services:
|
|
|
270
284
|
2. **JWT Secret**: Use a strong, random secret and keep it consistent across restarts
|
|
271
285
|
3. **Invite Codes**: Enable invite codes in production to control access
|
|
272
286
|
4. **HTTPS**: Use a reverse proxy (nginx, Caddy) with TLS in production
|
|
273
|
-
5. **Volume Permissions**: The container runs as non-root user
|
|
287
|
+
5. **Volume Permissions**: The container runs as non-root user `node`
|
|
274
288
|
|
|
275
289
|
### Reverse Proxy (nginx example)
|
|
276
290
|
|
|
@@ -309,11 +323,11 @@ server {
|
|
|
309
323
|
|
|
310
324
|
### Permission denied errors
|
|
311
325
|
|
|
312
|
-
- Docker container runs as user `
|
|
326
|
+
- Docker container runs as user `node`
|
|
313
327
|
- Ensure mounted volumes have correct permissions:
|
|
314
328
|
|
|
315
329
|
```bash
|
|
316
|
-
sudo chown -R
|
|
330
|
+
sudo chown -R $(id -u):$(id -g) ./data
|
|
317
331
|
```
|
|
318
332
|
|
|
319
333
|
### WebSocket connection fails
|
|
@@ -331,7 +345,7 @@ docker logs portagent
|
|
|
331
345
|
docker logs -f portagent
|
|
332
346
|
|
|
333
347
|
# Log files inside container
|
|
334
|
-
docker exec portagent cat /home/
|
|
348
|
+
docker exec portagent cat /home/node/.agentx/logs/portagent.log
|
|
335
349
|
```
|
|
336
350
|
|
|
337
351
|
## Development
|