a2acalling 0.6.24 → 0.6.25

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.
Files changed (2) hide show
  1. package/bin/cli.js +30 -8
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1480,26 +1480,48 @@ https://github.com/onthegonow/a2a_calling`;
1480
1480
  console.log(`\n RECOMMENDED: Configure reverse proxy to route /api/a2a/* to port ${serverPort}`);
1481
1481
 
1482
1482
  if (hasNginx) {
1483
- console.log(`\n ── nginx config (add to /etc/nginx/sites-available/default) ──`);
1483
+ console.log(`\n ┌─────────────────────────────────────────────────────────────────┐`);
1484
+ console.log(` │ nginx config — add inside your server {} block │`);
1485
+ console.log(` │ File: /etc/nginx/sites-available/default │`);
1486
+ console.log(` └─────────────────────────────────────────────────────────────────┘`);
1487
+ console.log(``);
1488
+ console.log(` # ══════════════════════════════════════════════════════════════`);
1489
+ console.log(` # A2A (Agent-to-Agent) Protocol Proxy`);
1490
+ console.log(` # ══════════════════════════════════════════════════════════════`);
1491
+ console.log(` # A2A enables AI agents to communicate across different instances.`);
1492
+ console.log(` # This proxy routes federation requests from port 80 to the local`);
1493
+ console.log(` # A2A server on port ${serverPort}.`);
1494
+ console.log(` #`);
1495
+ console.log(` # Protocol: https://github.com/onthegonow/a2a_calling`);
1496
+ console.log(` # All requests to /api/a2a/* are agent-to-agent API calls.`);
1497
+ console.log(` # ══════════════════════════════════════════════════════════════`);
1484
1498
  console.log(` location /api/a2a/ {`);
1485
1499
  console.log(` proxy_pass http://127.0.0.1:${serverPort}/api/a2a/;`);
1486
1500
  console.log(` proxy_http_version 1.1;`);
1487
1501
  console.log(` proxy_set_header Host $host;`);
1488
1502
  console.log(` proxy_set_header X-Real-IP $remote_addr;`);
1503
+ console.log(` proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`);
1504
+ console.log(` proxy_set_header X-Forwarded-Proto $scheme;`);
1489
1505
  console.log(` }`);
1490
- console.log(` ────────────────────────────────────────────────────────────`);
1491
- console.log(`\n To apply:`);
1492
- console.log(` sudo nano /etc/nginx/sites-available/default`);
1493
- console.log(` (add the location block inside your server {})`);
1494
- console.log(` sudo nginx -t && sudo systemctl reload nginx`);
1506
+ console.log(``);
1507
+ console.log(` To apply:`);
1508
+ console.log(` 1. sudo nano /etc/nginx/sites-available/default`);
1509
+ console.log(` 2. Add the config above inside your server { } block`);
1510
+ console.log(` 3. sudo nginx -t`);
1511
+ console.log(` 4. sudo systemctl reload nginx`);
1495
1512
  }
1496
1513
 
1497
1514
  if (hasCaddy) {
1498
- console.log(`\n ── Caddy config ──`);
1515
+ console.log(`\n ┌─────────────────────────────────────────────────────────────────┐`);
1516
+ console.log(` │ Caddy config │`);
1517
+ console.log(` └─────────────────────────────────────────────────────────────────┘`);
1518
+ console.log(``);
1519
+ console.log(` # A2A (Agent-to-Agent) Protocol Proxy`);
1520
+ console.log(` # Routes federation requests to local A2A server on port ${serverPort}`);
1521
+ console.log(` # Protocol: https://github.com/onthegonow/a2a_calling`);
1499
1522
  console.log(` handle /api/a2a/* {`);
1500
1523
  console.log(` reverse_proxy 127.0.0.1:${serverPort}`);
1501
1524
  console.log(` }`);
1502
- console.log(` ───────────────────`);
1503
1525
  }
1504
1526
 
1505
1527
  console.log(`\n After reverse proxy is configured:`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a2acalling",
3
- "version": "0.6.24",
3
+ "version": "0.6.25",
4
4
  "description": "Agent-to-agent calling for OpenClaw - A2A agent communication",
5
5
  "main": "src/index.js",
6
6
  "bin": {