@agentrq/acp-gateway 0.2.17 → 0.2.19
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 +66 -5
- package/dist/__tests__/concurrency.test.js +119 -0
- package/dist/__tests__/concurrency.test.js.map +1 -0
- package/dist/__tests__/index.test.js +725 -1
- package/dist/__tests__/index.test.js.map +1 -1
- package/dist/__tests__/mcpClient.test.js +80 -1
- package/dist/__tests__/mcpClient.test.js.map +1 -1
- package/dist/concurrency.js +99 -0
- package/dist/concurrency.js.map +1 -0
- package/dist/index.js +430 -26
- package/dist/index.js.map +1 -1
- package/dist/mcpClient.js +29 -1
- package/dist/mcpClient.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ npm install -g @agentrq/acp-gateway
|
|
|
42
42
|
|
|
43
43
|
## Current Version
|
|
44
44
|
|
|
45
|
-
`0.2.
|
|
45
|
+
`0.2.19`
|
|
46
46
|
|
|
47
47
|
## Usage
|
|
48
48
|
|
|
@@ -65,7 +65,7 @@ acp-gateway -- your-acp-agent --flag1 --flag2
|
|
|
65
65
|
|
|
66
66
|
You can specify gateway options before the `--` separator:
|
|
67
67
|
|
|
68
|
-
- `--max-concurrency` / `--maxConcurrency` `<number>`: Sets the maximum number of concurrent tasks allowed to prompt the ACP agent at once. Defaults to `1`.
|
|
68
|
+
- `--max-concurrency` / `--maxConcurrency` `<number>`: Sets the maximum number of concurrent tasks allowed to prompt the ACP agent at once. Defaults to `1`, and can be anything from `1` to `64`. This is the limit the gateway starts on; it can be changed while running from the agentrq interface.
|
|
69
69
|
- `--agent <registry-id>`: Runs an agent from the ACP registry instead of a command you supply yourself.
|
|
70
70
|
- `--list-agents`: Prints every agent in the registry and how each one can run on this machine, then exits.
|
|
71
71
|
- `--list-models`: Prints the models supported by the agent, then exits.
|
|
@@ -180,6 +180,64 @@ Example `.mcp.json`:
|
|
|
180
180
|
|
|
181
181
|
`acp-gateway` prefers servers with `agentrq` in the name; it falls back to the first HTTP server with a `url`.
|
|
182
182
|
|
|
183
|
+
### Changing Concurrency While Running
|
|
184
|
+
|
|
185
|
+
`--max-concurrency` is the limit the gateway boots with. The workspace can change it on a gateway that is
|
|
186
|
+
already running — raising it to get through a backlog, or lowering it to drain one — without a restart that
|
|
187
|
+
would drop every session the gateway holds.
|
|
188
|
+
|
|
189
|
+
The workspace sends:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"method": "notifications/claude/channel/set_concurrency",
|
|
194
|
+
"params": { "maxConcurrency": 4 }
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
This pair of notifications is camelCase, unlike the older snake_case messages on the same channel — it is new
|
|
199
|
+
enough to have no client spelling it the other way, so it carries one spelling rather than two.
|
|
200
|
+
|
|
201
|
+
The value may be a string. A value of any other shape — `null`, a boolean, an object — is accepted at the
|
|
202
|
+
door and refused downstream, so that it can still be answered; a notification dropped for being malformed
|
|
203
|
+
would be a notification the gateway never replied to. A payload that names no `maxConcurrency` at all reads
|
|
204
|
+
as absent and is answered with the limit still in force, so a mistaken sender sees an unchanged limit come
|
|
205
|
+
back rather than silence.
|
|
206
|
+
|
|
207
|
+
The gateway reports the limit in force on `notifications/claude/channel/concurrency` — on connect, on every
|
|
208
|
+
reconnect, and after every `set_concurrency`:
|
|
209
|
+
|
|
210
|
+
```json
|
|
211
|
+
{
|
|
212
|
+
"maxConcurrency": 4,
|
|
213
|
+
"active": 2,
|
|
214
|
+
"queued": 3,
|
|
215
|
+
"min": 1,
|
|
216
|
+
"max": 64,
|
|
217
|
+
"canSet": true
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
That report is unconditional, including when the requested value was refused or clamped, so the interface
|
|
222
|
+
never goes on showing a limit the gateway did not adopt. `canSet` says this gateway will act on being told
|
|
223
|
+
to change; versions before it report a limit and ignore the instruction, so a client should treat the flag's
|
|
224
|
+
absence as no.
|
|
225
|
+
|
|
226
|
+
Two things worth knowing about how a change lands:
|
|
227
|
+
|
|
228
|
+
- **Raising** takes effect at once — every waiting task the new headroom allows starts immediately, rather
|
|
229
|
+
than one per completion.
|
|
230
|
+
- **Lowering** never interrupts a task already in flight. Those keep the agent's attention and finish; the
|
|
231
|
+
queue simply stops handing out new ones until enough have. So `active` may exceed `maxConcurrency` for a
|
|
232
|
+
while after a lower, which is expected rather than an error.
|
|
233
|
+
|
|
234
|
+
The limit lives in memory. It survives MCP reconnects but not a gateway restart, which falls back to
|
|
235
|
+
`--max-concurrency`. A workspace that wants the setting to stick should store it and re-send it on connect.
|
|
236
|
+
|
|
237
|
+
`--max-concurrency` goes through the same reader, so the flag and the interface cannot disagree about what a
|
|
238
|
+
number means. Nothing reports a flag back to the person who typed it, so unlike the workspace's path the
|
|
239
|
+
gateway says out loud on startup when a flag value was capped or could not be read.
|
|
240
|
+
|
|
183
241
|
## How It Works
|
|
184
242
|
|
|
185
243
|
```
|
|
@@ -209,11 +267,13 @@ Example `.mcp.json`:
|
|
|
209
267
|
5. **Task Bridge & Multi-Session Isolation** — When a task is received from the MCP server:
|
|
210
268
|
- `acp-gateway` extracts the `chat_id` (Task ID).
|
|
211
269
|
- It checks if the task content is a duplicate of the last processed task for this Task ID. If it is repetitive, the task is dropped to prevent redundant processing.
|
|
212
|
-
- If not repetitive, the task is added to a concurrency-limiting queue (honoring the `--max-concurrency`
|
|
213
|
-
- It ensures a dedicated ACP session for that specific task.
|
|
270
|
+
- If not repetitive, the task is added to a concurrency-limiting queue (honoring the current concurrency limit — `--max-concurrency` at startup, or whatever the workspace has since set).
|
|
271
|
+
- It ensures a dedicated ACP session for that specific task. A task delivered twice at once joins the session already being opened for it rather than spawning a second agent, and the agent is fully handshaken and authenticated before it is ever prompted.
|
|
272
|
+
- A second delivery of a task that is already mid-turn waits for that turn to finish. A session takes one turn at a time, and because agentrq reuses a chat's id as the task id, two messages sent to one chat arrive as two deliveries of one task — so they are run in order rather than at once, and neither is dropped.
|
|
214
273
|
- If the task belongs to a different session than the current one, a new ACP session is initialized, providing clean state isolation between concurrent or sequential tasks.
|
|
215
274
|
6. **Permission Bridge** — Permission requests from the ACP agent are forwarded to the MCP server; verdicts are sent back.
|
|
216
|
-
7. **
|
|
275
|
+
7. **Concurrency Control** — The gateway reports its queue limit to the workspace on connect and on every reconnect, and applies a new limit whenever the workspace sends one (see below).
|
|
276
|
+
8. **Recursive Execution** — After each task completes, `acp-gateway` checks for the next pending task automatically.
|
|
217
277
|
|
|
218
278
|
### Key Components
|
|
219
279
|
|
|
@@ -223,6 +283,7 @@ Example `.mcp.json`:
|
|
|
223
283
|
| `src/acpClient.ts` | Implements the ACP `Client` interface — routes permission requests, handles session updates, and provides file operations. |
|
|
224
284
|
| `src/mcpClient.ts` | `EventEmitter`-based MCP client with auto-reconnection, notification handling, and tool call dispatch. |
|
|
225
285
|
| `src/config.ts` | Parses `.mcp.json` from the current directory tree up to 3 levels deep. |
|
|
286
|
+
| `src/concurrency.ts` | How many tasks may prompt the agent at once, and the notifications that change it while the gateway runs. |
|
|
226
287
|
| `src/auth.ts` | ACP authentication — lists the agent's login methods, detects `auth_required`, and runs agent or terminal logins. |
|
|
227
288
|
| `src/registry.ts` | Reads the ACP registry index — agent lookup, host platform matching, and package launch commands. |
|
|
228
289
|
| `src/agentInstall.ts` | Downloads, verifies, unpacks and caches a registry agent's binary distribution. |
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
|
|
2
|
+
import { CONCURRENCY_NOTIFICATION_METHOD, MAX_MAX_CONCURRENCY, MIN_MAX_CONCURRENCY, SET_CONCURRENCY_NOTIFICATION_METHOD, normalizeConcurrency, sendConcurrencyNotification, } from "../concurrency.js";
|
|
3
|
+
describe("concurrency", () => {
|
|
4
|
+
let errorSpy;
|
|
5
|
+
beforeEach(() => {
|
|
6
|
+
errorSpy = vi.spyOn(console, "error").mockImplementation(() => { });
|
|
7
|
+
});
|
|
8
|
+
afterEach(() => {
|
|
9
|
+
errorSpy.mockRestore();
|
|
10
|
+
});
|
|
11
|
+
describe("notification methods", () => {
|
|
12
|
+
it("sits on the same channel as the rest of the workspace directives", () => {
|
|
13
|
+
expect(SET_CONCURRENCY_NOTIFICATION_METHOD).toBe("notifications/claude/channel/set_concurrency");
|
|
14
|
+
expect(CONCURRENCY_NOTIFICATION_METHOD).toBe("notifications/claude/channel/concurrency");
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
describe("normalizeConcurrency", () => {
|
|
18
|
+
it("takes a number the workspace could plausibly ask for", () => {
|
|
19
|
+
expect(normalizeConcurrency(1)).toBe(1);
|
|
20
|
+
expect(normalizeConcurrency(4)).toBe(4);
|
|
21
|
+
expect(normalizeConcurrency(MAX_MAX_CONCURRENCY)).toBe(MAX_MAX_CONCURRENCY);
|
|
22
|
+
});
|
|
23
|
+
it("reads a number sent as a string, since this arrives as JSON from elsewhere", () => {
|
|
24
|
+
expect(normalizeConcurrency("4")).toBe(4);
|
|
25
|
+
expect(normalizeConcurrency(" 8 ")).toBe(8);
|
|
26
|
+
});
|
|
27
|
+
it("truncates a fraction rather than rounding past what was asked for", () => {
|
|
28
|
+
expect(normalizeConcurrency(4.9)).toBe(4);
|
|
29
|
+
expect(normalizeConcurrency("2.5")).toBe(2);
|
|
30
|
+
});
|
|
31
|
+
it("clamps below the floor, so no value can stall the queue completely", () => {
|
|
32
|
+
expect(normalizeConcurrency(0)).toBe(MIN_MAX_CONCURRENCY);
|
|
33
|
+
expect(normalizeConcurrency(-7)).toBe(MIN_MAX_CONCURRENCY);
|
|
34
|
+
expect(normalizeConcurrency(0.4)).toBe(MIN_MAX_CONCURRENCY);
|
|
35
|
+
});
|
|
36
|
+
it("clamps above the ceiling, so a mistyped limit cannot fork the machine", () => {
|
|
37
|
+
expect(normalizeConcurrency(10_000)).toBe(MAX_MAX_CONCURRENCY);
|
|
38
|
+
expect(normalizeConcurrency(MAX_MAX_CONCURRENCY + 1)).toBe(MAX_MAX_CONCURRENCY);
|
|
39
|
+
});
|
|
40
|
+
it("refuses anything that is not a number of tasks", () => {
|
|
41
|
+
expect(normalizeConcurrency(undefined)).toBeUndefined();
|
|
42
|
+
expect(normalizeConcurrency(null)).toBeUndefined();
|
|
43
|
+
expect(normalizeConcurrency("many")).toBeUndefined();
|
|
44
|
+
expect(normalizeConcurrency("")).toBeUndefined();
|
|
45
|
+
expect(normalizeConcurrency(NaN)).toBeUndefined();
|
|
46
|
+
expect(normalizeConcurrency(Infinity)).toBeUndefined();
|
|
47
|
+
expect(normalizeConcurrency({})).toBeUndefined();
|
|
48
|
+
expect(normalizeConcurrency(true)).toBeUndefined();
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
describe("sendConcurrencyNotification", () => {
|
|
52
|
+
it("reports the limit, the queue under it, and the range on offer", async () => {
|
|
53
|
+
const bridge = { sendNotification: vi.fn().mockResolvedValue(undefined) };
|
|
54
|
+
await sendConcurrencyNotification(bridge, {
|
|
55
|
+
maxConcurrency: 4,
|
|
56
|
+
active: 2,
|
|
57
|
+
queued: 3,
|
|
58
|
+
});
|
|
59
|
+
expect(bridge.sendNotification).toHaveBeenCalledWith(CONCURRENCY_NOTIFICATION_METHOD, expect.objectContaining({
|
|
60
|
+
maxConcurrency: 4,
|
|
61
|
+
active: 2,
|
|
62
|
+
queued: 3,
|
|
63
|
+
min: MIN_MAX_CONCURRENCY,
|
|
64
|
+
max: MAX_MAX_CONCURRENCY,
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
it("spells every field one way, with no snake_case twin to keep in step", async () => {
|
|
68
|
+
const bridge = { sendNotification: vi.fn().mockResolvedValue(undefined) };
|
|
69
|
+
await sendConcurrencyNotification(bridge, {
|
|
70
|
+
maxConcurrency: 4,
|
|
71
|
+
active: 0,
|
|
72
|
+
queued: 0,
|
|
73
|
+
});
|
|
74
|
+
expect(Object.keys(bridge.sendNotification.mock.calls[0][1]).sort()).toEqual([
|
|
75
|
+
"active",
|
|
76
|
+
"canSet",
|
|
77
|
+
"max",
|
|
78
|
+
"maxConcurrency",
|
|
79
|
+
"min",
|
|
80
|
+
"queued",
|
|
81
|
+
"sessionId",
|
|
82
|
+
"taskId",
|
|
83
|
+
]);
|
|
84
|
+
});
|
|
85
|
+
it("declares that it will act on being told to change, so old gateways stay read-only", async () => {
|
|
86
|
+
const bridge = { sendNotification: vi.fn().mockResolvedValue(undefined) };
|
|
87
|
+
await sendConcurrencyNotification(bridge, {
|
|
88
|
+
maxConcurrency: 1,
|
|
89
|
+
active: 0,
|
|
90
|
+
queued: 0,
|
|
91
|
+
});
|
|
92
|
+
expect(bridge.sendNotification.mock.calls[0][1]).toMatchObject({ canSet: true });
|
|
93
|
+
});
|
|
94
|
+
it("sends empty task and session ids, which the workspace ignores", async () => {
|
|
95
|
+
const bridge = { sendNotification: vi.fn().mockResolvedValue(undefined) };
|
|
96
|
+
await sendConcurrencyNotification(bridge, {
|
|
97
|
+
maxConcurrency: 2,
|
|
98
|
+
active: 0,
|
|
99
|
+
queued: 0,
|
|
100
|
+
});
|
|
101
|
+
expect(bridge.sendNotification.mock.calls[0][1]).toMatchObject({
|
|
102
|
+
taskId: "",
|
|
103
|
+
sessionId: "",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
it("never throws when the workspace cannot take the update", async () => {
|
|
107
|
+
const bridge = {
|
|
108
|
+
sendNotification: vi.fn().mockRejectedValue(new Error("socket closed")),
|
|
109
|
+
};
|
|
110
|
+
await expect(sendConcurrencyNotification(bridge, {
|
|
111
|
+
maxConcurrency: 2,
|
|
112
|
+
active: 1,
|
|
113
|
+
queued: 0,
|
|
114
|
+
})).resolves.toBeUndefined();
|
|
115
|
+
expect(errorSpy).toHaveBeenCalledWith("[bridge] Failed to send concurrency notification:", expect.any(Error));
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
//# sourceMappingURL=concurrency.test.js.map
|
|
@@ -0,0 +1 @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