agent-relay 4.0.30 → 4.0.32

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 (158) hide show
  1. package/README.md +88 -48
  2. package/bin/agent-relay-broker-darwin-arm64 +0 -0
  3. package/bin/agent-relay-broker-darwin-x64 +0 -0
  4. package/bin/agent-relay-broker-linux-arm64 +0 -0
  5. package/bin/agent-relay-broker-linux-x64 +0 -0
  6. package/dist/index.cjs +309 -129
  7. package/dist/src/cli/bootstrap.d.ts +2 -1
  8. package/dist/src/cli/bootstrap.d.ts.map +1 -1
  9. package/dist/src/cli/bootstrap.js +223 -17
  10. package/dist/src/cli/bootstrap.js.map +1 -1
  11. package/dist/src/cli/commands/agent-management.d.ts.map +1 -1
  12. package/dist/src/cli/commands/agent-management.js +1 -3
  13. package/dist/src/cli/commands/agent-management.js.map +1 -1
  14. package/dist/src/cli/commands/auth.d.ts.map +1 -1
  15. package/dist/src/cli/commands/auth.js +32 -3
  16. package/dist/src/cli/commands/auth.js.map +1 -1
  17. package/dist/src/cli/commands/cloud.d.ts.map +1 -1
  18. package/dist/src/cli/commands/cloud.js +242 -144
  19. package/dist/src/cli/commands/cloud.js.map +1 -1
  20. package/dist/src/cli/commands/core.d.ts.map +1 -1
  21. package/dist/src/cli/commands/core.js +11 -6
  22. package/dist/src/cli/commands/core.js.map +1 -1
  23. package/dist/src/cli/commands/messaging.d.ts.map +1 -1
  24. package/dist/src/cli/commands/messaging.js +1 -3
  25. package/dist/src/cli/commands/messaging.js.map +1 -1
  26. package/dist/src/cli/commands/monitoring.d.ts.map +1 -1
  27. package/dist/src/cli/commands/monitoring.js +5 -4
  28. package/dist/src/cli/commands/monitoring.js.map +1 -1
  29. package/dist/src/cli/commands/on.d.ts.map +1 -1
  30. package/dist/src/cli/commands/on.js +1 -3
  31. package/dist/src/cli/commands/on.js.map +1 -1
  32. package/dist/src/cli/commands/setup.d.ts.map +1 -1
  33. package/dist/src/cli/commands/setup.js +62 -7
  34. package/dist/src/cli/commands/setup.js.map +1 -1
  35. package/dist/src/cli/commands/swarm.d.ts.map +1 -1
  36. package/dist/src/cli/commands/swarm.js +34 -4
  37. package/dist/src/cli/commands/swarm.js.map +1 -1
  38. package/dist/src/cli/index.js +9 -1
  39. package/dist/src/cli/index.js.map +1 -1
  40. package/dist/src/cli/lib/exit.d.ts +49 -0
  41. package/dist/src/cli/lib/exit.d.ts.map +1 -0
  42. package/dist/src/cli/lib/exit.js +73 -0
  43. package/dist/src/cli/lib/exit.js.map +1 -0
  44. package/dist/src/cli/lib/telemetry-helpers.d.ts +20 -0
  45. package/dist/src/cli/lib/telemetry-helpers.d.ts.map +1 -0
  46. package/dist/src/cli/lib/telemetry-helpers.js +31 -0
  47. package/dist/src/cli/lib/telemetry-helpers.js.map +1 -0
  48. package/node_modules/@agent-relay/cloud/package.json +2 -2
  49. package/node_modules/@agent-relay/config/package.json +1 -1
  50. package/node_modules/@agent-relay/hooks/package.json +4 -4
  51. package/node_modules/@agent-relay/sdk/README.md +3 -0
  52. package/node_modules/@agent-relay/sdk/dist/relay.d.ts +16 -0
  53. package/node_modules/@agent-relay/sdk/dist/relay.d.ts.map +1 -1
  54. package/node_modules/@agent-relay/sdk/dist/relay.js +83 -0
  55. package/node_modules/@agent-relay/sdk/dist/relay.js.map +1 -1
  56. package/node_modules/@agent-relay/sdk/dist/workflows/file-db.d.ts +62 -12
  57. package/node_modules/@agent-relay/sdk/dist/workflows/file-db.d.ts.map +1 -1
  58. package/node_modules/@agent-relay/sdk/dist/workflows/file-db.js +137 -47
  59. package/node_modules/@agent-relay/sdk/dist/workflows/file-db.js.map +1 -1
  60. package/node_modules/@agent-relay/sdk/package.json +2 -2
  61. package/node_modules/@agent-relay/telemetry/dist/client.d.ts +14 -2
  62. package/node_modules/@agent-relay/telemetry/dist/client.d.ts.map +1 -1
  63. package/node_modules/@agent-relay/telemetry/dist/client.js +22 -4
  64. package/node_modules/@agent-relay/telemetry/dist/client.js.map +1 -1
  65. package/node_modules/@agent-relay/telemetry/dist/events.d.ts +217 -10
  66. package/node_modules/@agent-relay/telemetry/dist/events.d.ts.map +1 -1
  67. package/node_modules/@agent-relay/telemetry/dist/events.js +11 -0
  68. package/node_modules/@agent-relay/telemetry/dist/events.js.map +1 -1
  69. package/node_modules/@agent-relay/telemetry/dist/index.d.ts +2 -2
  70. package/node_modules/@agent-relay/telemetry/dist/index.d.ts.map +1 -1
  71. package/node_modules/@agent-relay/telemetry/dist/index.js.map +1 -1
  72. package/node_modules/@agent-relay/telemetry/package.json +2 -2
  73. package/node_modules/@agent-relay/trajectory/package.json +2 -2
  74. package/node_modules/@agent-relay/user-directory/package.json +2 -2
  75. package/node_modules/@agent-relay/utils/package.json +2 -2
  76. package/node_modules/@relaycast/sdk/dist/version.d.ts +1 -1
  77. package/node_modules/@relaycast/sdk/dist/version.js +1 -1
  78. package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/package.json +1 -1
  79. package/node_modules/@relaycast/sdk/package.json +2 -2
  80. package/node_modules/agent-trajectories/dist/{chunk-2XT3DOJC.js → chunk-27AQPWHK.js} +136 -72
  81. package/node_modules/agent-trajectories/dist/chunk-27AQPWHK.js.map +1 -0
  82. package/node_modules/agent-trajectories/dist/cli/index.js +135 -71
  83. package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -1
  84. package/node_modules/agent-trajectories/dist/{index-thTh5iI8.d.ts → index-C7XhwsoN.d.ts} +24 -0
  85. package/node_modules/agent-trajectories/dist/index.d.ts +2 -2
  86. package/node_modules/agent-trajectories/dist/index.js +1 -1
  87. package/node_modules/agent-trajectories/dist/sdk/index.d.ts +1 -1
  88. package/node_modules/agent-trajectories/dist/sdk/index.js +1 -1
  89. package/node_modules/agent-trajectories/package.json +1 -1
  90. package/node_modules/axios/CHANGELOG.md +166 -0
  91. package/node_modules/axios/README.md +210 -204
  92. package/node_modules/axios/dist/axios.js +92 -63
  93. package/node_modules/axios/dist/axios.js.map +1 -1
  94. package/node_modules/axios/dist/axios.min.js +2 -2
  95. package/node_modules/axios/dist/axios.min.js.map +1 -1
  96. package/node_modules/axios/dist/browser/axios.cjs +140 -101
  97. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  98. package/node_modules/axios/dist/esm/axios.js +140 -101
  99. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  100. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  101. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  102. package/node_modules/axios/dist/node/axios.cjs +199 -75
  103. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  104. package/node_modules/axios/index.d.cts +14 -28
  105. package/node_modules/axios/index.d.ts +132 -226
  106. package/node_modules/axios/lib/adapters/fetch.js +21 -6
  107. package/node_modules/axios/lib/adapters/http.js +88 -6
  108. package/node_modules/axios/lib/core/AxiosError.js +34 -33
  109. package/node_modules/axios/lib/core/AxiosHeaders.js +24 -25
  110. package/node_modules/axios/lib/core/buildFullPath.js +1 -1
  111. package/node_modules/axios/lib/core/mergeConfig.js +5 -3
  112. package/node_modules/axios/lib/defaults/index.js +13 -8
  113. package/node_modules/axios/lib/env/data.js +1 -1
  114. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -2
  115. package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -1
  116. package/node_modules/axios/lib/helpers/formDataToStream.js +2 -1
  117. package/node_modules/axios/lib/helpers/progressEventReducer.js +5 -5
  118. package/node_modules/axios/lib/helpers/resolveConfig.js +11 -3
  119. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +48 -1
  120. package/node_modules/axios/lib/helpers/toFormData.js +10 -2
  121. package/node_modules/axios/lib/utils.js +10 -10
  122. package/node_modules/axios/package.json +4 -4
  123. package/package.json +9 -9
  124. package/packages/cloud/package.json +2 -2
  125. package/packages/config/package.json +1 -1
  126. package/packages/hooks/package.json +4 -4
  127. package/packages/sdk/README.md +3 -0
  128. package/packages/sdk/dist/relay.d.ts +16 -0
  129. package/packages/sdk/dist/relay.d.ts.map +1 -1
  130. package/packages/sdk/dist/relay.js +83 -0
  131. package/packages/sdk/dist/relay.js.map +1 -1
  132. package/packages/sdk/dist/workflows/file-db.d.ts +62 -12
  133. package/packages/sdk/dist/workflows/file-db.d.ts.map +1 -1
  134. package/packages/sdk/dist/workflows/file-db.js +137 -47
  135. package/packages/sdk/dist/workflows/file-db.js.map +1 -1
  136. package/packages/sdk/package.json +2 -2
  137. package/packages/telemetry/dist/client.d.ts +14 -2
  138. package/packages/telemetry/dist/client.d.ts.map +1 -1
  139. package/packages/telemetry/dist/client.js +22 -4
  140. package/packages/telemetry/dist/client.js.map +1 -1
  141. package/packages/telemetry/dist/events.d.ts +217 -10
  142. package/packages/telemetry/dist/events.d.ts.map +1 -1
  143. package/packages/telemetry/dist/events.js +11 -0
  144. package/packages/telemetry/dist/events.js.map +1 -1
  145. package/packages/telemetry/dist/index.d.ts +2 -2
  146. package/packages/telemetry/dist/index.d.ts.map +1 -1
  147. package/packages/telemetry/dist/index.js.map +1 -1
  148. package/packages/telemetry/package.json +2 -2
  149. package/packages/trajectory/package.json +2 -2
  150. package/packages/user-directory/package.json +2 -2
  151. package/packages/utils/package.json +2 -2
  152. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.d.ts +0 -12
  153. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.js +0 -17
  154. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/license +0 -9
  155. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/package.json +0 -43
  156. package/node_modules/@clack/prompts/node_modules/is-unicode-supported/readme.md +0 -35
  157. package/node_modules/agent-trajectories/dist/chunk-2XT3DOJC.js.map +0 -1
  158. package/node_modules/color-convert/CHANGELOG.md +0 -54
package/README.md CHANGED
@@ -1,11 +1,24 @@
1
- # agent-relay
1
+ ![Agent Relay](./readme-banner.png)
2
2
 
3
- > Real-time messaging between AI agents.
3
+ <div align="center">
4
+ <a href="https://www.npmjs.com/package/@agent-relay/sdk"><img alt="npm" src="https://img.shields.io/npm/v/@agent-relay/sdk"></a>
5
+ <a href="https://github.com/AgentWorkforce/relay/actions/workflows/test.yml"><img alt="Tests" src="https://img.shields.io/github/actions/workflow/status/AgentWorkforce/relay/test.yml?branch=main&label=tests"></a>
6
+ <a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"></a>
4
7
 
5
- [![npm](https://img.shields.io/npm/v/@agent-relay/sdk)](https://www.npmjs.com/package/@agent-relay/sdk)
6
- [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
7
8
 
8
- ---
9
+ Agent Relay is real-time communication infrastructure for agent-to-agent work. Spawn agents from code, give them shared channels, direct messages, threads, reactions, and presence, and let them coordinate in the same workspace.
10
+
11
+ It is not a framework or a harness. Your agents keep running however they already run. Agent Relay is the communication layer that helps them talk to each other and take action together.
12
+
13
+ **Website:** [agentrelay.com](https://agentrelay.com) · **Docs:** [agentrelay.com/docs](https://agentrelay.com/docs)
14
+ </div>
15
+
16
+ ## Why Agent Relay
17
+
18
+ - **Built for real-time coordination**: channels, messages, inboxes, reactions, and presence for agents that need to collaborate.
19
+ - **Works with terminal-native agents**: use Claude Code, Codex, Gemini CLI, OpenCode, and other supported runtimes without changing how they run.
20
+ - **SDK-first**: spawn agents programmatically, route work, wait for readiness, and manage lifecycles from TypeScript or Python.
21
+ - **Useful from both code and tools**: wire Relay into apps, scripts, plugins, and local workflows.
9
22
 
10
23
  ## Install
11
24
 
@@ -23,90 +36,123 @@ bun add @agent-relay/sdk
23
36
  pip install agent-relay-sdk
24
37
  ```
25
38
 
26
- See the [Python SDK](./packages/sdk-py) for full documentation.
27
-
28
- ## Documentation
39
+ See the [Python SDK](./packages/sdk-py) for Python usage and adapters.
29
40
 
30
- - **Web:** [agentrelay.com/docs](https://agentrelay.com/docs)
31
- - **Markdown:** [agentrelay.com/docs/markdown](https://agentrelay.com/docs/markdown) — plain-text docs for LLMs and terminal use
32
-
33
- ## Usage
41
+ ## Quick example
34
42
 
35
43
  ```typescript
36
44
  import { AgentRelay, Models } from '@agent-relay/sdk';
37
45
 
38
46
  const relay = new AgentRelay();
39
47
 
40
- relay.onMessageReceived = (msg) => console.log(`[${msg.from} → ${msg.to}]: ${msg.text}`);
48
+ relay.onMessageReceived = (msg) => {
49
+ console.log(`[${msg.from} → ${msg.to}]: ${msg.text}`);
50
+ };
41
51
 
42
- const channel = ['tic-tac-toe'];
52
+ const channels = ['tic-tac-toe'];
43
53
 
44
54
  const x = await relay.claude.spawn({
45
55
  name: 'PlayerX',
46
56
  model: Models.Claude.SONNET,
47
- channels: channel,
57
+ channels,
48
58
  task: 'Play tic-tac-toe as X against PlayerO. You go first.',
49
59
  });
60
+
50
61
  const o = await relay.codex.spawn({
51
62
  name: 'PlayerO',
52
63
  model: Models.Codex.GPT_5_3_CODEX_SPARK,
53
- channels: channel,
64
+ channels,
54
65
  task: 'Play tic-tac-toe as O against PlayerX.',
55
66
  });
56
67
 
57
- console.log('Waiting for agents to be ready...');
58
- await Promise.all([relay.waitForAgentReady('PlayerX'), relay.waitForAgentReady('PlayerO')]);
59
- console.log('Both ready. Starting game.');
68
+ await Promise.all([
69
+ relay.waitForAgentReady('PlayerX'),
70
+ relay.waitForAgentReady('PlayerO'),
71
+ ]);
60
72
 
61
73
  relay.system().sendMessage({ to: 'PlayerX', text: 'Start.' });
62
74
 
63
- const FIVE_MINUTES = 5 * 60 * 1000;
64
- await AgentRelay.waitForAny([x, o], FIVE_MINUTES);
75
+ await AgentRelay.waitForAny([x, o], 5 * 60 * 1000);
65
76
  await relay.shutdown();
66
77
  ```
67
78
 
68
- ## Claude Code Plugin
79
+ Want more than a toy example? Start with:
69
80
 
70
- Use Agent Relay directly inside Claude Code — no SDK required. The plugin adds multi-agent coordination via slash commands or natural language.
81
+ - [Introduction](./docs/introduction.md)
82
+ - [CLI on the Relay](./docs/cli-on-the-relay.md)
83
+ - [Examples](./examples/README.md)
84
+ - [TypeScript SDK README](./packages/sdk/README.md)
85
+ - [Python SDK README](./packages/sdk-py/README.md)
71
86
 
72
- ```
87
+ ## What you can build
88
+
89
+ - Multi-agent coding flows with shared channels and worker handoffs
90
+ - Agent inboxes for status updates, blockers, and review loops
91
+ - Tooling that lets existing agents communicate without rewriting their runtime
92
+ - Local or remote coordination patterns where multiple agents need shared context
93
+
94
+ ## Claude Code plugin
95
+
96
+ Use Agent Relay directly inside Claude Code, no SDK required. The plugin adds multi-agent coordination via slash commands or natural language.
97
+
98
+ ```text
73
99
  /plugin marketplace add Agentworkforce/skills
74
100
  /plugin install claude-relay-plugin
75
101
  ```
76
102
 
77
- Once installed, coordinate agents with built-in skills:
103
+ Once installed, you can coordinate teams of agents with built-in skills:
78
104
 
79
- ```
80
- > /relay-team Refactor the auth module split the middleware, update tests, and update docs
105
+ ```text
106
+ > /relay-team Refactor the auth module, split the middleware, update tests, and update docs
81
107
  > /relay-fanout Run linting fixes across all packages in the monorepo
82
- > /relay-pipeline Analyze the API logs, then generate a summary report, then draft an email
108
+ > /relay-pipeline Analyze the API logs, generate a summary report, then draft an email
83
109
  ```
84
110
 
85
111
  Or just describe what you want in plain language:
86
112
 
87
- ```
113
+ ```text
88
114
  > Use relay fan-out to lint all packages in parallel
89
- > Split the migration into three relay workers one for the schema, one for the API, one for the frontend
115
+ > Split the migration into three relay workers, one for the schema, one for the API, and one for the frontend
116
+ ```
117
+
118
+ See [docs/plugin-claude-code.md](./docs/plugin-claude-code.md) and the [plugin README](https://github.com/AgentWorkforce/skills/tree/main/plugins/claude-relay-plugin) for more.
119
+
120
+ ## Agent Relay CLI
121
+
122
+ Install the CLI with:
123
+
124
+ ```bash
125
+ curl -fsSL https://raw.githubusercontent.com/AgentWorkforce/relay/main/install.sh | bash
90
126
  ```
91
127
 
92
- See the [plugin README](https://github.com/AgentWorkforce/skills/tree/main/plugins/claude-relay-plugin) for full details.
128
+ Then use Agent Relay to bring agents into a shared workspace and route work between them.
93
129
 
94
- ## Supported CLI’s
130
+ ## Supported agents and runtimes
95
131
 
96
- - Claude
97
- - Codex
98
- - Gemini
99
- - Opencode
132
+ Agent Relay is designed for terminal-native agents and SDK-driven workflows. This repo currently includes first-class support for:
100
133
 
101
- ---
134
+ - Claude Code
135
+ - Codex CLI
136
+ - Gemini CLI
137
+ - OpenCode
102
138
 
103
- ## Agent Relay CLI
139
+ The broader SDK and workflow surface also includes additional integrations in the codebase. See the package docs for details.
104
140
 
105
- Install via
141
+ ## Development
106
142
 
143
+ If you want to work on the repo itself:
144
+
145
+ ```bash
146
+ npm install
147
+ npm run build
148
+ npm test
107
149
  ```
108
- curl -fsSL https://raw.githubusercontent.com/AgentWorkforce/relay/main/install.sh | bash
109
- ```
150
+
151
+ Useful references:
152
+
153
+ - [ARCHITECTURE.md](./ARCHITECTURE.md)
154
+ - [CHANGELOG.md](./CHANGELOG.md)
155
+ - [GitHub Issues](https://github.com/AgentWorkforce/relay/issues)
110
156
 
111
157
  ## License
112
158
 
@@ -114,10 +160,4 @@ Apache-2.0 — Copyright 2026 Agent Workforce Incorporated
114
160
 
115
161
  ---
116
162
 
117
- **Links:** [Documentation](https://agentrelay.com/docs) · [Docs (Markdown)](https://agentrelay.com/docs/markdown.md) · [Issues](https://github.com/AgentWorkforce/relay/issues) · [Discord](https://discord.gg/6E6CTxM8um)
118
-
119
- > **Plain-text docs:** Every docs page is available as generated Markdown from the website, backed by the same MDX source as the rendered docs:
120
- >
121
- > ```bash
122
- > curl https://agentrelay.com/docs/markdown/introduction.md
123
- > ```
163
+ **Links:** [Website](https://agentrelay.com) · [Documentation](https://agentrelay.com/docs) · [Docs (Markdown)](https://agentrelay.com/docs/markdown) · [Discord](https://discord.gg/6E6CTxM8um)
Binary file
Binary file
Binary file
Binary file