agent-comms 4.5.1 → 5.0.0
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 +3 -1
- package/dist/core/gossip-directory.d.ts +1 -1
- package/dist/core/gossip-directory.d.ts.map +1 -1
- package/dist/core/gossip-directory.js +1 -1
- package/dist/core/gossip-directory.js.map +1 -1
- package/dist/core/hub-forwarding.d.ts +2 -2
- package/dist/core/hub-forwarding.d.ts.map +1 -1
- package/dist/core/hub-forwarding.js +5 -4
- package/dist/core/hub-forwarding.js.map +1 -1
- package/dist/core/hub-session.d.ts +2 -2
- package/dist/core/hub-session.d.ts.map +1 -1
- package/dist/core/hub-session.js +1 -1
- package/dist/core/room-router.d.ts +5 -3
- package/dist/core/room-router.d.ts.map +1 -1
- package/dist/core/room-router.js +22 -12
- package/dist/core/room-router.js.map +1 -1
- package/dist/core/wire-mesh-transport.js +3 -3
- package/dist/core/wire-mesh-transport.js.map +1 -1
- package/dist/test/directory-admission.unit.test.js +10 -7
- package/dist/test/directory-admission.unit.test.js.map +1 -1
- package/dist/test/gossip-directory.unit.test.js +4 -6
- package/dist/test/gossip-directory.unit.test.js.map +1 -1
- package/dist/test/hub-forwarding.unit.test.js +28 -6
- package/dist/test/hub-forwarding.unit.test.js.map +1 -1
- package/dist/test/hub-helpers.d.ts.map +1 -1
- package/dist/test/hub-helpers.js +4 -1
- package/dist/test/hub-helpers.js.map +1 -1
- package/dist/test/hub-mode-session.integration.test.js +53 -1
- package/dist/test/hub-mode-session.integration.test.js.map +1 -1
- package/dist/test/hub-room-domain-verb-trust-bypass.integration.test.js +3 -1
- package/dist/test/hub-room-domain-verb-trust-bypass.integration.test.js.map +1 -1
- package/dist/test/mesh-graph-trace.integration.test.js +5 -1
- package/dist/test/mesh-graph-trace.integration.test.js.map +1 -1
- package/dist/test/mesh-graph.unit.test.js +11 -11
- package/dist/test/mesh-graph.unit.test.js.map +1 -1
- package/dist/test/room-router.unit.test.js +74 -9
- package/dist/test/room-router.unit.test.js.map +1 -1
- package/dist/test/synthetic-advert.d.ts +8 -0
- package/dist/test/synthetic-advert.d.ts.map +1 -0
- package/dist/test/synthetic-advert.js +16 -0
- package/dist/test/synthetic-advert.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// A structurally complete peer-advert for tests of code that only reads an advert's own fields and never verifies it: directory merging, admission policy, mesh-graph assembly. The identity-key and signature are filler, so an advert built here would fail wire-mesh-core's own verification. Verification is exercised by wire-mesh-core's own tests, and any test that needs a hub or session to accept an advert must let that session sign its own.
|
|
2
|
+
/** COSE algorithm identifier for ES256 (RFC 9053), the value a real identity-key carries. */
|
|
3
|
+
const ALG_ES256 = -7;
|
|
4
|
+
/** The filler key and signature carry no meaning, so a single zero byte is enough to satisfy their bstr type. */
|
|
5
|
+
const FILLER_BYTES = new Uint8Array(new ArrayBuffer(1));
|
|
6
|
+
export function syntheticAdvert(device, options = {}) {
|
|
7
|
+
return {
|
|
8
|
+
...options.extensions,
|
|
9
|
+
device,
|
|
10
|
+
addresses: [],
|
|
11
|
+
"snapshot-seconds": options.snapshotSeconds ?? 0,
|
|
12
|
+
"identity-key": { alg: ALG_ES256, "public-key": FILLER_BYTES },
|
|
13
|
+
signature: FILLER_BYTES,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=synthetic-advert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"synthetic-advert.js","sourceRoot":"","sources":["../../src/test/synthetic-advert.ts"],"names":[],"mappings":"AAAA,2bAA2b;AAI3b,6FAA6F;AAC7F,MAAM,SAAS,GAAG,CAAC,CAAC,CAAC;AAErB,iHAAiH;AACjH,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAQxD,MAAM,UAAU,eAAe,CAC7B,MAAgB,EAChB,UAA4C,EAAE;IAE9C,OAAO;QACL,GAAG,OAAO,CAAC,UAAU;QACrB,MAAM;QACN,SAAS,EAAE,EAAE;QACb,kBAAkB,EAAE,OAAO,CAAC,eAAe,IAAI,CAAC;QAChD,cAAc,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE;QAC9D,SAAS,EAAE,YAAY;KACxB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-comms",
|
|
3
3
|
"description": "Cross-harness communication mesh for LLM agents — rooms, DMs, presence, and real-time push delivery over TCP",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"agent-comms": "dist/cli.js"
|
|
7
7
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react-dom": "19.3.0",
|
|
24
24
|
"typebox": "1.3.6",
|
|
25
25
|
"web-ui-primitives": "1.0.1",
|
|
26
|
-
"wire-mesh-core": "
|
|
26
|
+
"wire-mesh-core": "2.0.0",
|
|
27
27
|
"ws": "8.21.1",
|
|
28
28
|
"zod": "4.4.3"
|
|
29
29
|
},
|