agent-comms 2.21.11 → 2.21.12
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +1 -1
- package/dist/test/connection-approval.test.d.ts +2 -0
- package/dist/test/connection-approval.test.d.ts.map +1 -0
- package/dist/test/connection-approval.test.js +180 -0
- package/dist/test/connection-approval.test.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/ExaDev/agent-comms)
|
|
4
4
|
[](https://www.npmjs.com/package/agent-comms)
|
|
5
|
-
[](https://github.com/ExaDev/agent-comms/releases/tag/v2.21.12)
|
|
6
6
|
[](https://github.com/ExaDev/agent-comms/actions)
|
|
7
7
|
|
|
8
8
|
Cross-harness communication mesh for LLM agents: rooms, DMs, presence, and visibility over TCP with zero filesystem dependencies.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-approval.test.d.ts","sourceRoot":"","sources":["../../src/test/connection-approval.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direct, DI-based unit tests for ConnectionApproval -- it was previously exercised only indirectly through approval.integration.test.ts's end-to-end transport scenarios, which left several individual branches, error messages, and fallback string literals unobserved. ConnectionApprovalDeps is a narrow, injectable surface built exactly for this: a fake deps object with vi.fn() collaborators lets every branch be asserted on directly.
|
|
3
|
+
*/
|
|
4
|
+
import { describe, expect, it, vi } from "vitest";
|
|
5
|
+
import { ConnectionApproval, } from "../core/connection-approval.js";
|
|
6
|
+
const OWNER_ID = "owner-device";
|
|
7
|
+
const STARTED_AT = "2026-01-01T00:00:00.000Z";
|
|
8
|
+
const REMOTE_HOST = "example.test";
|
|
9
|
+
const REMOTE_PORT = 4242;
|
|
10
|
+
const LOCAL_DATA_PORT = 5150;
|
|
11
|
+
function agent(overrides = {}) {
|
|
12
|
+
return {
|
|
13
|
+
id: OWNER_ID,
|
|
14
|
+
version: 1,
|
|
15
|
+
name: "agent-name",
|
|
16
|
+
harness: "pi",
|
|
17
|
+
cwd: "/tmp",
|
|
18
|
+
pid: 111,
|
|
19
|
+
startedAt: STARTED_AT,
|
|
20
|
+
visibility: "visible",
|
|
21
|
+
status: "active",
|
|
22
|
+
tags: [],
|
|
23
|
+
subscribedRooms: [],
|
|
24
|
+
...overrides,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function makeHarness(options = {}) {
|
|
28
|
+
const transport = {
|
|
29
|
+
acceptConnection: vi.fn().mockResolvedValue(undefined),
|
|
30
|
+
rejectConnection: vi.fn().mockResolvedValue(undefined),
|
|
31
|
+
connectToRemote: vi.fn().mockResolvedValue(undefined),
|
|
32
|
+
startDataServer: vi.fn().mockResolvedValue(undefined),
|
|
33
|
+
unref: vi.fn(),
|
|
34
|
+
dataPort: LOCAL_DATA_PORT,
|
|
35
|
+
};
|
|
36
|
+
const queueDelivery = vi.fn();
|
|
37
|
+
const onDelivery = options.withOnDelivery === true ? vi.fn() : undefined;
|
|
38
|
+
const deps = {
|
|
39
|
+
agents: new Map(),
|
|
40
|
+
peerInfo: new Map(),
|
|
41
|
+
startedAt: STARTED_AT,
|
|
42
|
+
getPeerId: () => OWNER_ID,
|
|
43
|
+
requireTransport: () => transport,
|
|
44
|
+
getOnDelivery: () => onDelivery,
|
|
45
|
+
queueDelivery,
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
deps,
|
|
49
|
+
approval: new ConnectionApproval(deps),
|
|
50
|
+
transport,
|
|
51
|
+
queueDelivery,
|
|
52
|
+
onDelivery,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
describe("ConnectionApproval — handleConnectionRequest", () => {
|
|
56
|
+
it("queues a connection_request delivery event addressed to the owning peer", () => {
|
|
57
|
+
const h = makeHarness();
|
|
58
|
+
h.approval.handleConnectionRequest({ id: "conn-1" }, {
|
|
59
|
+
peerId: "remote-peer",
|
|
60
|
+
dataPort: 9000,
|
|
61
|
+
name: "remote-name",
|
|
62
|
+
fingerprint: "fp",
|
|
63
|
+
});
|
|
64
|
+
expect(h.queueDelivery).toHaveBeenCalledWith(OWNER_ID, {
|
|
65
|
+
type: "connection_request",
|
|
66
|
+
connectionId: "conn-1",
|
|
67
|
+
peerId: "remote-peer",
|
|
68
|
+
dataPort: 9000,
|
|
69
|
+
name: "remote-name",
|
|
70
|
+
fingerprint: "fp",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
it("pushes the delivery live via onDelivery when a callback is registered", () => {
|
|
74
|
+
const h = makeHarness({ withOnDelivery: true });
|
|
75
|
+
h.approval.handleConnectionRequest({ id: "conn-1" }, {
|
|
76
|
+
peerId: "remote-peer",
|
|
77
|
+
dataPort: 9000,
|
|
78
|
+
name: "remote-name",
|
|
79
|
+
fingerprint: "fp",
|
|
80
|
+
});
|
|
81
|
+
expect(h.onDelivery).toHaveBeenCalledTimes(1);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
describe("ConnectionApproval — acceptConnection", () => {
|
|
85
|
+
it("accepts a genuinely pending connection via the transport", async () => {
|
|
86
|
+
const h = makeHarness();
|
|
87
|
+
h.approval.handleConnectionRequest({ id: "conn-1" }, {
|
|
88
|
+
peerId: "remote-peer",
|
|
89
|
+
dataPort: 9000,
|
|
90
|
+
name: "remote-name",
|
|
91
|
+
fingerprint: "fp",
|
|
92
|
+
});
|
|
93
|
+
await h.approval.acceptConnection("conn-1");
|
|
94
|
+
expect(h.transport.acceptConnection).toHaveBeenCalledWith({ id: "conn-1" });
|
|
95
|
+
});
|
|
96
|
+
it("throws an error naming the exact unknown connection id, and never touches the transport", async () => {
|
|
97
|
+
const h = makeHarness();
|
|
98
|
+
await expect(h.approval.acceptConnection("no-such-conn")).rejects.toThrow("No pending connection no-such-conn");
|
|
99
|
+
expect(h.transport.acceptConnection).not.toHaveBeenCalled();
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
describe("ConnectionApproval — rejectConnection", () => {
|
|
103
|
+
it("rejects a genuinely pending connection via the transport with the given reason", async () => {
|
|
104
|
+
const h = makeHarness();
|
|
105
|
+
h.approval.handleConnectionRequest({ id: "conn-1" }, {
|
|
106
|
+
peerId: "remote-peer",
|
|
107
|
+
dataPort: 9000,
|
|
108
|
+
name: "remote-name",
|
|
109
|
+
fingerprint: "fp",
|
|
110
|
+
});
|
|
111
|
+
await h.approval.rejectConnection("conn-1", "not now");
|
|
112
|
+
expect(h.transport.rejectConnection).toHaveBeenCalledWith({ id: "conn-1" }, "not now");
|
|
113
|
+
});
|
|
114
|
+
it("throws an error naming the exact unknown connection id, and never touches the transport", async () => {
|
|
115
|
+
const h = makeHarness();
|
|
116
|
+
await expect(h.approval.rejectConnection("no-such-conn", "reason")).rejects.toThrow("No pending connection no-such-conn");
|
|
117
|
+
expect(h.transport.rejectConnection).not.toHaveBeenCalled();
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
describe("ConnectionApproval — connectToRemote", () => {
|
|
121
|
+
it("dials out with the local agent's real name and an empty fingerprint when the agent is known", async () => {
|
|
122
|
+
const h = makeHarness();
|
|
123
|
+
h.deps.agents.set(OWNER_ID, agent({ name: "real-name" }));
|
|
124
|
+
await h.approval.connectToRemote(REMOTE_HOST, REMOTE_PORT);
|
|
125
|
+
expect(h.transport.connectToRemote).toHaveBeenCalledWith(REMOTE_HOST, REMOTE_PORT, OWNER_ID, LOCAL_DATA_PORT, "real-name", "");
|
|
126
|
+
});
|
|
127
|
+
it("falls back to an empty name (not a placeholder) when the local agent isn't registered yet", async () => {
|
|
128
|
+
const h = makeHarness();
|
|
129
|
+
await h.approval.connectToRemote(REMOTE_HOST, REMOTE_PORT);
|
|
130
|
+
expect(h.transport.connectToRemote).toHaveBeenCalledWith(REMOTE_HOST, REMOTE_PORT, OWNER_ID, LOCAL_DATA_PORT, "", "");
|
|
131
|
+
});
|
|
132
|
+
it("does not reject the returned promise when the transport's own connect attempt is rejected", async () => {
|
|
133
|
+
const h = makeHarness();
|
|
134
|
+
h.transport.connectToRemote.mockRejectedValue(new Error("coordinator refused"));
|
|
135
|
+
await expect(h.approval.connectToRemote(REMOTE_HOST, REMOTE_PORT)).resolves.toBeUndefined();
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
describe("ConnectionApproval — startDataServerOnly", () => {
|
|
139
|
+
it("starts the data server, records this peer's own PeerInfo, and unrefs the transport", async () => {
|
|
140
|
+
const h = makeHarness();
|
|
141
|
+
await h.approval.startDataServerOnly();
|
|
142
|
+
expect(h.transport.startDataServer).toHaveBeenCalledTimes(1);
|
|
143
|
+
expect(h.deps.peerInfo.get(OWNER_ID)).toEqual({
|
|
144
|
+
id: OWNER_ID,
|
|
145
|
+
port: LOCAL_DATA_PORT,
|
|
146
|
+
startedAt: STARTED_AT,
|
|
147
|
+
});
|
|
148
|
+
expect(h.transport.unref).toHaveBeenCalledTimes(1);
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
describe("ConnectionApproval — listPendingConnections", () => {
|
|
152
|
+
it("lists every still-pending inbound connection with its full request detail", () => {
|
|
153
|
+
const h = makeHarness();
|
|
154
|
+
h.approval.handleConnectionRequest({ id: "conn-1" }, { peerId: "peer-a", dataPort: 1, name: "a", fingerprint: "fp-a" });
|
|
155
|
+
h.approval.handleConnectionRequest({ id: "conn-2" }, { peerId: "peer-b", dataPort: 2, name: "b", fingerprint: "fp-b" });
|
|
156
|
+
expect(h.approval.listPendingConnections()).toEqual([
|
|
157
|
+
{
|
|
158
|
+
connectionId: "conn-1",
|
|
159
|
+
peerId: "peer-a",
|
|
160
|
+
dataPort: 1,
|
|
161
|
+
name: "a",
|
|
162
|
+
fingerprint: "fp-a",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
connectionId: "conn-2",
|
|
166
|
+
peerId: "peer-b",
|
|
167
|
+
dataPort: 2,
|
|
168
|
+
name: "b",
|
|
169
|
+
fingerprint: "fp-b",
|
|
170
|
+
},
|
|
171
|
+
]);
|
|
172
|
+
});
|
|
173
|
+
it("no longer lists a connection once it's been accepted or rejected", async () => {
|
|
174
|
+
const h = makeHarness();
|
|
175
|
+
h.approval.handleConnectionRequest({ id: "conn-1" }, { peerId: "peer-a", dataPort: 1, name: "a", fingerprint: "fp-a" });
|
|
176
|
+
await h.approval.acceptConnection("conn-1");
|
|
177
|
+
expect(h.approval.listPendingConnections()).toEqual([]);
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
//# sourceMappingURL=connection-approval.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-approval.test.js","sourceRoot":"","sources":["../../src/test/connection-approval.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EACL,kBAAkB,GAEnB,MAAM,gCAAgC,CAAC;AAGxC,MAAM,QAAQ,GAAG,cAAc,CAAC;AAChC,MAAM,UAAU,GAAG,0BAA0B,CAAC;AAC9C,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,eAAe,GAAG,IAAI,CAAC;AAE7B,SAAS,KAAK,CAAC,YAAoC,EAAE;IACnD,OAAO;QACL,EAAE,EAAE,QAAQ;QACZ,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,UAAU;QACrB,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,EAAE;QACR,eAAe,EAAE,EAAE;QACnB,GAAG,SAAS;KACb,CAAC;AACJ,CAAC;AAiBD,SAAS,WAAW,CAClB,UAAkD,EAAE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E,QAAQ,EAAE,EAChB,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,CAClE,CAAC;QAEF,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC;YAClD;gBACE,YAAY,EAAE,QAAQ;gBACtB,MAAM,EAAE,QAAQ;gBAChB,QAAQ,EAAE,CAAC;gBACX,IAAI,EAAE,GAAG;gBACT,WAAW,EAAE,MAAM;aACpB;YACD;gBACE,YAAY,EAAE,QAAQ;gBACtB,MAAM,EAAE,QAAQ;gBAChB,QAAQ,EAAE,CAAC;gBACX,IAAI,EAAE,GAAG;gBACT,WAAW,EAAE,MAAM;aACpB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kEAAkE,EAAE,KAAK,IAAI,EAAE;QAChF,MAAM,CAAC,GAAG,WAAW,EAAE,CAAC;QACxB,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAChC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAChB,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,CAClE,CAAC;QACF,MAAM,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC5C,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-comms",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.12",
|
|
4
4
|
"description": "Cross-harness communication mesh for LLM agents — rooms, DMs, presence, and real-time push delivery over TCP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c",
|