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.
- package/README.md +88 -48
- package/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/index.cjs +309 -129
- package/dist/src/cli/bootstrap.d.ts +2 -1
- package/dist/src/cli/bootstrap.d.ts.map +1 -1
- package/dist/src/cli/bootstrap.js +223 -17
- package/dist/src/cli/bootstrap.js.map +1 -1
- package/dist/src/cli/commands/agent-management.d.ts.map +1 -1
- package/dist/src/cli/commands/agent-management.js +1 -3
- package/dist/src/cli/commands/agent-management.js.map +1 -1
- package/dist/src/cli/commands/auth.d.ts.map +1 -1
- package/dist/src/cli/commands/auth.js +32 -3
- package/dist/src/cli/commands/auth.js.map +1 -1
- package/dist/src/cli/commands/cloud.d.ts.map +1 -1
- package/dist/src/cli/commands/cloud.js +242 -144
- package/dist/src/cli/commands/cloud.js.map +1 -1
- package/dist/src/cli/commands/core.d.ts.map +1 -1
- package/dist/src/cli/commands/core.js +11 -6
- package/dist/src/cli/commands/core.js.map +1 -1
- package/dist/src/cli/commands/messaging.d.ts.map +1 -1
- package/dist/src/cli/commands/messaging.js +1 -3
- package/dist/src/cli/commands/messaging.js.map +1 -1
- package/dist/src/cli/commands/monitoring.d.ts.map +1 -1
- package/dist/src/cli/commands/monitoring.js +5 -4
- package/dist/src/cli/commands/monitoring.js.map +1 -1
- package/dist/src/cli/commands/on.d.ts.map +1 -1
- package/dist/src/cli/commands/on.js +1 -3
- package/dist/src/cli/commands/on.js.map +1 -1
- package/dist/src/cli/commands/setup.d.ts.map +1 -1
- package/dist/src/cli/commands/setup.js +62 -7
- package/dist/src/cli/commands/setup.js.map +1 -1
- package/dist/src/cli/commands/swarm.d.ts.map +1 -1
- package/dist/src/cli/commands/swarm.js +34 -4
- package/dist/src/cli/commands/swarm.js.map +1 -1
- package/dist/src/cli/index.js +9 -1
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/lib/exit.d.ts +49 -0
- package/dist/src/cli/lib/exit.d.ts.map +1 -0
- package/dist/src/cli/lib/exit.js +73 -0
- package/dist/src/cli/lib/exit.js.map +1 -0
- package/dist/src/cli/lib/telemetry-helpers.d.ts +20 -0
- package/dist/src/cli/lib/telemetry-helpers.d.ts.map +1 -0
- package/dist/src/cli/lib/telemetry-helpers.js +31 -0
- package/dist/src/cli/lib/telemetry-helpers.js.map +1 -0
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/README.md +3 -0
- package/node_modules/@agent-relay/sdk/dist/relay.d.ts +16 -0
- package/node_modules/@agent-relay/sdk/dist/relay.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/relay.js +83 -0
- package/node_modules/@agent-relay/sdk/dist/relay.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.d.ts +62 -12
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.js +137 -47
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/dist/client.d.ts +14 -2
- package/node_modules/@agent-relay/telemetry/dist/client.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/client.js +22 -4
- package/node_modules/@agent-relay/telemetry/dist/client.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/events.d.ts +217 -10
- package/node_modules/@agent-relay/telemetry/dist/events.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/events.js +11 -0
- package/node_modules/@agent-relay/telemetry/dist/events.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/index.d.ts +2 -2
- package/node_modules/@agent-relay/telemetry/dist/index.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/index.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/package.json +2 -2
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@relaycast/sdk/dist/version.d.ts +1 -1
- package/node_modules/@relaycast/sdk/dist/version.js +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/package.json +1 -1
- package/node_modules/@relaycast/sdk/package.json +2 -2
- package/node_modules/agent-trajectories/dist/{chunk-2XT3DOJC.js → chunk-27AQPWHK.js} +136 -72
- package/node_modules/agent-trajectories/dist/chunk-27AQPWHK.js.map +1 -0
- package/node_modules/agent-trajectories/dist/cli/index.js +135 -71
- package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -1
- package/node_modules/agent-trajectories/dist/{index-thTh5iI8.d.ts → index-C7XhwsoN.d.ts} +24 -0
- package/node_modules/agent-trajectories/dist/index.d.ts +2 -2
- package/node_modules/agent-trajectories/dist/index.js +1 -1
- package/node_modules/agent-trajectories/dist/sdk/index.d.ts +1 -1
- package/node_modules/agent-trajectories/dist/sdk/index.js +1 -1
- package/node_modules/agent-trajectories/package.json +1 -1
- package/node_modules/axios/CHANGELOG.md +166 -0
- package/node_modules/axios/README.md +210 -204
- package/node_modules/axios/dist/axios.js +92 -63
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +140 -101
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +140 -101
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +199 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +14 -28
- package/node_modules/axios/index.d.ts +132 -226
- package/node_modules/axios/lib/adapters/fetch.js +21 -6
- package/node_modules/axios/lib/adapters/http.js +88 -6
- package/node_modules/axios/lib/core/AxiosError.js +34 -33
- package/node_modules/axios/lib/core/AxiosHeaders.js +24 -25
- package/node_modules/axios/lib/core/buildFullPath.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +5 -3
- package/node_modules/axios/lib/defaults/index.js +13 -8
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -2
- package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -1
- package/node_modules/axios/lib/helpers/progressEventReducer.js +5 -5
- package/node_modules/axios/lib/helpers/resolveConfig.js +11 -3
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +48 -1
- package/node_modules/axios/lib/helpers/toFormData.js +10 -2
- package/node_modules/axios/lib/utils.js +10 -10
- package/node_modules/axios/package.json +4 -4
- package/package.json +9 -9
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/README.md +3 -0
- package/packages/sdk/dist/relay.d.ts +16 -0
- package/packages/sdk/dist/relay.d.ts.map +1 -1
- package/packages/sdk/dist/relay.js +83 -0
- package/packages/sdk/dist/relay.js.map +1 -1
- package/packages/sdk/dist/workflows/file-db.d.ts +62 -12
- package/packages/sdk/dist/workflows/file-db.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/file-db.js +137 -47
- package/packages/sdk/dist/workflows/file-db.js.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/dist/client.d.ts +14 -2
- package/packages/telemetry/dist/client.d.ts.map +1 -1
- package/packages/telemetry/dist/client.js +22 -4
- package/packages/telemetry/dist/client.js.map +1 -1
- package/packages/telemetry/dist/events.d.ts +217 -10
- package/packages/telemetry/dist/events.d.ts.map +1 -1
- package/packages/telemetry/dist/events.js +11 -0
- package/packages/telemetry/dist/events.js.map +1 -1
- package/packages/telemetry/dist/index.d.ts +2 -2
- package/packages/telemetry/dist/index.d.ts.map +1 -1
- package/packages/telemetry/dist/index.js.map +1 -1
- package/packages/telemetry/package.json +2 -2
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.js +0 -17
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/license +0 -9
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/package.json +0 -43
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/readme.md +0 -35
- package/node_modules/agent-trajectories/dist/chunk-2XT3DOJC.js.map +0 -1
- package/node_modules/color-convert/CHANGELOG.md +0 -54
package/README.md
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
|
-
>
|
|
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
|
-
[](https://www.npmjs.com/package/@agent-relay/sdk)
|
|
6
|
-
[](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
|
|
27
|
-
|
|
28
|
-
## Documentation
|
|
39
|
+
See the [Python SDK](./packages/sdk-py) for Python usage and adapters.
|
|
29
40
|
|
|
30
|
-
|
|
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) =>
|
|
48
|
+
relay.onMessageReceived = (msg) => {
|
|
49
|
+
console.log(`[${msg.from} → ${msg.to}]: ${msg.text}`);
|
|
50
|
+
};
|
|
41
51
|
|
|
42
|
-
const
|
|
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
|
|
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
|
|
64
|
+
channels,
|
|
54
65
|
task: 'Play tic-tac-toe as O against PlayerX.',
|
|
55
66
|
});
|
|
56
67
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
79
|
+
Want more than a toy example? Start with:
|
|
69
80
|
|
|
70
|
-
|
|
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
|
|
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,
|
|
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
|
|
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
|
-
|
|
128
|
+
Then use Agent Relay to bring agents into a shared workspace and route work between them.
|
|
93
129
|
|
|
94
|
-
## Supported
|
|
130
|
+
## Supported agents and runtimes
|
|
95
131
|
|
|
96
|
-
-
|
|
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
|
-
|
|
139
|
+
The broader SDK and workflow surface also includes additional integrations in the codebase. See the package docs for details.
|
|
104
140
|
|
|
105
|
-
|
|
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
|
-
|
|
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:** [
|
|
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
|