agent-comms 8.12.0 → 8.13.1
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 +2 -2
- package/dist/bridges/user/web/contract.d.ts +1 -1
- package/dist/bridges/user/web/dist/bundle.js +1 -1
- package/dist/bridges/user/web/dist/mesh-worker.js +4 -4
- package/dist/bridges/user/web/dist/sw.js +1 -1
- package/dist/bridges/user/web/frontend/tab-contract.d.ts +1 -1
- package/dist/core/bridge-mesh.d.ts +1 -1
- package/dist/core/bridge-mesh.d.ts.map +1 -1
- package/dist/core/bridge-mesh.js +2 -2
- package/dist/core/bridge-mesh.js.map +1 -1
- package/dist/core/mesh-store-shared.d.ts +9 -1
- package/dist/core/mesh-store-shared.d.ts.map +1 -1
- package/dist/core/mesh-store-shared.js +24 -1
- package/dist/core/mesh-store-shared.js.map +1 -1
- package/dist/test/mesh-store-shared.unit.test.js +19 -1
- package/dist/test/mesh-store-shared.unit.test.js.map +1 -1
- package/package.json +5 -5
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/v8.13.1)
|
|
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.
|
|
@@ -453,7 +453,7 @@ Every bridge answers SIGTERM, SIGINT and SIGHUP by marking its own agent offline
|
|
|
453
453
|
|
|
454
454
|
## Gateway trust and connection codes
|
|
455
455
|
|
|
456
|
-
Every store holds its own session on the relay hub (`wss://mesh.exadev.io/` by default), each Claude Code session the default cc-peer front handles included, and dials it again with a growing delay whenever the hub drops it. Being reachable from another machine therefore does not depend on which store holds the local coordinator role, and a coordinator handover leaves every other store's hub session alone. A store holds a session only while it has an agent that is not a ghost and its machine trusts at least one remote device, principal or machine, so before that nothing of it reaches the hub, not even its device id. A visible agent advertises itself, its presence and its hosted rooms; a hidden agent advertises only its device id, which is what lets it be reached by that id.
|
|
456
|
+
Every store holds its own session on the relay hub (`wss://mesh.exadev.io/` by default; set `AGENT_COMMS_HUB_URL` to a `ws://` or `wss://` URL to use a self-hosted one instead, such as a node started with `npx wire-mesh`), each Claude Code session the default cc-peer front handles included, and dials it again with a growing delay whenever the hub drops it. Being reachable from another machine therefore does not depend on which store holds the local coordinator role, and a coordinator handover leaves every other store's hub session alone. A store holds a session only while it has an agent that is not a ghost and its machine trusts at least one remote device, principal or machine, so before that nothing of it reaches the hub, not even its device id. A visible agent advertises itself, its presence and its hosted rooms; a hidden agent advertises only its device id, which is what lets it be reached by that id.
|
|
457
457
|
|
|
458
458
|
The hub is a set rather than one address. A store holds its one hub session over the relay it ranks highest: a relay served on its own machine, then a relay on the local network offered by a trusted device, then any trusted device offering relay service, then the configured hub as the fallback. A direct connection to a device always beats every relay, since a request to a directly connected device never touches the hub session at all. A relay whose dial fails, or which drops the session, is passed over for about a minute before it is tried again.
|
|
459
459
|
|
|
@@ -1720,7 +1720,7 @@ export declare const meshContract: {
|
|
|
1720
1720
|
requesterDevice: string;
|
|
1721
1721
|
scopePath?: string | undefined;
|
|
1722
1722
|
};
|
|
1723
|
-
}, unknown, void>, import("@orpc/
|
|
1723
|
+
}, unknown, void>, import("@orpc/server").AsyncIteratorClass<{
|
|
1724
1724
|
kind: "state_sync";
|
|
1725
1725
|
state: {
|
|
1726
1726
|
agents: Record<string, {
|