agent-relay-server 0.3.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 CHANGED
@@ -27,7 +27,7 @@ You're running three Claude Code sessions: one debugging a backend, another writ
27
27
 
28
28
  ```bash
29
29
  # requires Bun (https://bun.sh)
30
- bunx agent-relay-server
30
+ bunx agent-relay-server@latest
31
31
  ```
32
32
 
33
33
  Dashboard at `http://localhost:4850`.
@@ -56,7 +56,7 @@ hook, and a managed app-server launcher.
56
56
 
57
57
  ```bash
58
58
  # terminal 1: central relay server
59
- bunx agent-relay-server
59
+ bunx agent-relay-server@latest
60
60
 
61
61
  # one-time installer
62
62
  curl -fsSL https://raw.githubusercontent.com/edimuj/agent-relay/main/codex/install-codex.sh | bash
@@ -74,13 +74,13 @@ Use a remote relay server by setting:
74
74
 
75
75
  ```bash
76
76
  export AGENT_RELAY_URL=http://100.x.y.z:4850
77
- bunx -p agent-relay-server codex-relay
77
+ bunx -p agent-relay-server@latest codex-relay
78
78
  ```
79
79
 
80
80
  If you install the package globally, the shorter command works too:
81
81
 
82
82
  ```bash
83
- bun install -g agent-relay-server
83
+ bun install -g agent-relay-server@latest
84
84
  codex-relay
85
85
  ```
86
86
 
@@ -96,7 +96,7 @@ also route through Agent Relay. If you opt out, `codex` stays unchanged.
96
96
  Without restarting your shell first, use:
97
97
 
98
98
  ```bash
99
- bunx -p agent-relay-server codex-relay
99
+ bunx -p agent-relay-server@latest codex-relay
100
100
  ```
101
101
 
102
102
  Non-interactive alias opt-in:
@@ -115,7 +115,7 @@ When a session starts, the plugin's background monitor registers the agent and o
115
115
 
116
116
  ```
117
117
  Agent Relay active. Your agent ID: macmini2-cli-myproject-a1b2c3
118
- Relay URL: http://localhost:4850 | Server: 0.3.0 | Plugin: 0.3.0
118
+ Relay URL: http://localhost:4850 | Server: 0.3.1 | Plugin: 0.3.1
119
119
  ```
120
120
 
121
121
  Incoming messages arrive as monitor notifications. The agent sees them without being prompted:
@@ -139,8 +139,8 @@ Incoming messages arrive as monitor notifications. The agent sees them without b
139
139
  Single process, embedded SQLite, no external dependencies beyond Bun.
140
140
 
141
141
  ```bash
142
- bunx agent-relay-server # localhost only
143
- PORT=8080 HOST=0.0.0.0 bunx agent-relay-server # remote access
142
+ bunx agent-relay-server@latest # localhost only
143
+ PORT=8080 HOST=0.0.0.0 bunx agent-relay-server@latest # remote access
144
144
  ```
145
145
 
146
146
  For multi-machine setups, run the server on one machine and set `AGENT_RELAY_URL` on the others (works great over [Tailscale](https://tailscale.com)):
@@ -178,7 +178,7 @@ Description=Agent Relay
178
178
  After=network.target
179
179
 
180
180
  [Service]
181
- ExecStart=%h/.bun/bin/bunx agent-relay-server
181
+ ExecStart=%h/.bun/bin/bunx agent-relay-server@latest
182
182
  Environment=HOST=0.0.0.0
183
183
  Restart=always
184
184
 
@@ -105,7 +105,7 @@ async function checkRelayServer(): Promise<"missing" | "current" | "old" | "unkn
105
105
  const relayUrl = process.env.AGENT_RELAY_URL || "http://127.0.0.1:4850";
106
106
  const stats = await getRelayStats(relayUrl);
107
107
  if (!stats) {
108
- console.log(`No Agent Relay server detected at ${relayUrl}. Start it with: bunx agent-relay-server`);
108
+ console.log(`No Agent Relay server detected at ${relayUrl}. Start it with: bunx agent-relay-server@latest`);
109
109
  return "missing";
110
110
  }
111
111
 
@@ -118,7 +118,7 @@ async function checkRelayServer(): Promise<"missing" | "current" | "old" | "unkn
118
118
  const comparison = compareVersions(serverVersion, packageVersion);
119
119
  if (comparison < 0) {
120
120
  console.log(`Agent Relay server at ${relayUrl} is older (${serverVersion}); current package is ${packageVersion}.`);
121
- console.log("Restart that server with the latest package when convenient: bunx agent-relay-server");
121
+ console.log("Restart that server with the latest package when convenient: bunx agent-relay-server@latest");
122
122
  return "old";
123
123
  }
124
124
 
@@ -512,12 +512,12 @@ async function install(args: string[]): Promise<void> {
512
512
  installPathEntry();
513
513
  console.log("Installed Agent Relay for Codex.");
514
514
  const relayStatus = await checkRelayServer();
515
- if (relayStatus === "unknown") console.log("If this server is old, restart it with: bunx agent-relay-server");
515
+ if (relayStatus === "unknown") console.log("If this server is old, restart it with: bunx agent-relay-server@latest");
516
516
  if (isAliasBinOnPath()) {
517
517
  console.log("Start Codex sessions with: codex-relay");
518
518
  } else {
519
519
  console.log("Restart your shell, then start Codex sessions with: codex-relay");
520
- console.log("Without restarting your shell, use: bunx -p agent-relay-server codex-relay");
520
+ console.log("Without restarting your shell, use: bunx -p agent-relay-server@latest codex-relay");
521
521
  }
522
522
 
523
523
  if (installAlias || (!skipAlias && await askYesNo("Make plain `codex` start with Agent Relay by installing a PATH shim?"))) {
package/codex/README.md CHANGED
@@ -38,7 +38,7 @@ codex/start-live.sh
38
38
  The packaged Codex path is:
39
39
 
40
40
  ```bash
41
- bunx agent-relay-server
41
+ bunx agent-relay-server@latest
42
42
  curl -fsSL https://raw.githubusercontent.com/edimuj/agent-relay/main/codex/install-codex.sh | bash
43
43
  # after restarting your shell
44
44
  codex-relay
@@ -5,7 +5,7 @@ param(
5
5
 
6
6
  $ErrorActionPreference = "Stop"
7
7
 
8
- $Package = if ($env:AGENT_RELAY_PACKAGE) { $env:AGENT_RELAY_PACKAGE } else { "agent-relay-server" }
8
+ $Package = if ($env:AGENT_RELAY_PACKAGE) { $env:AGENT_RELAY_PACKAGE } else { "agent-relay-server@latest" }
9
9
  $InstallArgs = New-Object System.Collections.Generic.List[string]
10
10
  $InstallArgs.Add("install")
11
11
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- PACKAGE="${AGENT_RELAY_PACKAGE:-agent-relay-server}"
4
+ PACKAGE="${AGENT_RELAY_PACKAGE:-agent-relay-server@latest}"
5
5
  INSTALL_ARGS=(install)
6
6
 
7
7
  usage() {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Agent Relay integration for Codex sessions",
5
5
  "author": {
6
6
  "name": "Edin Mujkanovic"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "repository": {
41
41
  "type": "git",
42
- "url": "https://github.com/edimuj/agent-relay"
42
+ "url": "git+https://github.com/edimuj/agent-relay.git"
43
43
  },
44
44
  "license": "MIT",
45
45
  "author": "Edin Mujkanovic",