@decentnetwork/lan 0.1.269 → 0.1.270
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.
|
@@ -413,11 +413,21 @@ export class DoraIntegration {
|
|
|
413
413
|
try {
|
|
414
414
|
// One client per registry: this is the whole point — a merged call
|
|
415
415
|
// would hide exactly the failure we are looking for.
|
|
416
|
+
// Same channel and event as the constructor above, deliberately:
|
|
417
|
+
// dora speaks on packet 162 via sendDora / "dora-message", NOT on
|
|
418
|
+
// chat's packet 64. Reaching for sendText/"message" here sent every
|
|
419
|
+
// request down a channel the registry never reads, and produced four
|
|
420
|
+
// identical timeouts that looked exactly like four dead doras.
|
|
421
|
+
//
|
|
422
|
+
// Timeout matches too. 8s was optimistic: the comment on the
|
|
423
|
+
// constructor records that China -> overseas bootstrap -> relay ->
|
|
424
|
+
// the dora's own relay and back consistently blows past 10s, which
|
|
425
|
+
// is why the working path uses 30.
|
|
416
426
|
const one = new DoraClient({
|
|
417
427
|
registryUserids: [id],
|
|
418
|
-
sendText: (to, text) => this.opts.peerManager.
|
|
419
|
-
onText: (h) => this.opts.peerManager.on("message", (
|
|
420
|
-
timeoutMs:
|
|
428
|
+
sendText: (to, text) => this.opts.peerManager.sendDora(to, text),
|
|
429
|
+
onText: (h) => this.opts.peerManager.on("dora-message", (from, text) => h(from, text)),
|
|
430
|
+
timeoutMs: parseInt(process.env.AGENTNET_DORA_TIMEOUT_MS || "30000", 10),
|
|
421
431
|
});
|
|
422
432
|
const roster = await one.list();
|
|
423
433
|
return { userid: id, ok: Array.isArray(roster) && roster.length > 0,
|
package/dist/ui/desktop/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.__DK_UI_VERSION="0.1.
|
|
1
|
+
window.__DK_UI_VERSION="0.1.270";
|
|
2
2
|
const ICON_PATHS = {
|
|
3
3
|
// ---- tab bar (the four must feel like one set) ----
|
|
4
4
|
users: '<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decentnetwork/lan",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.270",
|
|
4
4
|
"description": "Private virtual LAN for self-hosted services and AI agents, built on Elastos Carrier. NAT-traversal, name service, ACL, all over a peer-to-peer mesh — no public IP required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|