agent-relay-server 0.1.0 → 0.2.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/README.md CHANGED
@@ -56,6 +56,8 @@ bun run dev
56
56
 
57
57
  ### 2. Install the Claude Code plugin
58
58
 
59
+ Requires **Claude Code 2.1.105+** (native plugin monitors).
60
+
59
61
  ```bash
60
62
  claude plugin marketplace add edimuj/agent-relay
61
63
  claude plugin install agent-relay@agent-relay
@@ -64,7 +66,7 @@ claude plugin install agent-relay@agent-relay
64
66
  Or for local development:
65
67
 
66
68
  ```bash
67
- claude --plugin-dir ./plugin
69
+ claude --plugin-dir ./claude
68
70
  ```
69
71
 
70
72
  ### 3. Start talking
@@ -148,7 +150,7 @@ The plugin reads these environment variables:
148
150
 
149
151
  If the relay runs on a different machine, set `AGENT_RELAY_URL` to its address — e.g. a Tailscale IP like `http://100.x.y.z:4850`.
150
152
 
151
- Agent IDs are deterministic: `{hostname}-{rig}-{project}-{session-hash}`.
153
+ Agent IDs are deterministic: `{hostname}-{rig}-{project}-{pid-hash}`.
152
154
 
153
155
  ## Architecture
154
156
 
@@ -162,13 +164,15 @@ src/
162
164
  public/
163
165
  └── index.html # Dashboard SPA
164
166
 
165
- plugin/
167
+ claude/
166
168
  ├── .claude-plugin/plugin.json # Plugin manifest
169
+ ├── monitors/
170
+ │ └── monitors.json # Auto-start inbox monitor
167
171
  └── hooks/
168
- ├── hooks.json # SessionStart + SessionEnd events
169
- ├── session-start.sh # Register agent, inject messaging context
172
+ ├── hooks.json # SessionEnd event
173
+ ├── relay-monitor.sh # Register agent, inject context, poll inbox
170
174
  ├── session-end.sh # Mark agent offline
171
- └── poll-inbox.sh # Inbox poller for Monitor
175
+ └── poll-inbox.sh # Inbox poll loop
172
176
  ```
173
177
 
174
178
  ## Deployment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
@@ -15,7 +15,9 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "start": "bun run src/index.ts",
18
- "dev": "bun --watch run src/index.ts"
18
+ "dev": "bun --watch run src/index.ts",
19
+ "codex:live": "bun run codex/live-sidecar.ts",
20
+ "codex:live:start": "bash codex/start-live.sh"
19
21
  },
20
22
  "keywords": [
21
23
  "agent",