@dxos/network-manager 0.1.18 → 0.1.20

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.
@@ -149,7 +149,7 @@ var Connection = class {
149
149
  (0, import_log.log)("closing...", {
150
150
  peerId: this.ownId
151
151
  }, {
152
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
152
+ file: "connection.ts",
153
153
  line: 142,
154
154
  scope: this,
155
155
  callSite: (f, a) => f(...a)
@@ -158,7 +158,7 @@ var Connection = class {
158
158
  await this._protocol.destroy();
159
159
  } catch (err) {
160
160
  import_log.log.catch(err, {}, {
161
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
161
+ file: "connection.ts",
162
162
  line: 148,
163
163
  scope: this,
164
164
  callSite: (f, a) => f(...a)
@@ -168,7 +168,7 @@ var Connection = class {
168
168
  await ((_a = this._transport) == null ? void 0 : _a.destroy());
169
169
  } catch (err1) {
170
170
  import_log.log.catch(err1, {}, {
171
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
171
+ file: "connection.ts",
172
172
  line: 155,
173
173
  scope: this,
174
174
  callSite: (f, a) => f(...a)
@@ -177,7 +177,7 @@ var Connection = class {
177
177
  (0, import_log.log)("closed", {
178
178
  peerId: this.ownId
179
179
  }, {
180
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
180
+ file: "connection.ts",
181
181
  line: 158,
182
182
  scope: this,
183
183
  callSite: (f, a) => f(...a)
@@ -189,7 +189,7 @@ var Connection = class {
189
189
  (0, import_node_assert.default)(msg.sessionId);
190
190
  if (!msg.sessionId.equals(this.sessionId)) {
191
191
  (0, import_log.log)("dropping signal for incorrect session id", {}, {
192
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
192
+ file: "connection.ts",
193
193
  line: 165,
194
194
  scope: this,
195
195
  callSite: (f, a) => f(...a)
@@ -205,7 +205,7 @@ var Connection = class {
205
205
  remoteId: this.remoteId,
206
206
  msg: msg.data
207
207
  }, {
208
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
208
+ file: "connection.ts",
209
209
  line: 173,
210
210
  scope: this,
211
211
  callSite: (f, a) => f(...a)
@@ -219,7 +219,7 @@ var Connection = class {
219
219
  remoteId: this.remoteId,
220
220
  msg: msg.data
221
221
  }, {
222
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/connection.ts",
222
+ file: "connection.ts",
223
223
  line: 179,
224
224
  scope: this,
225
225
  callSite: (f, a) => f(...a)
@@ -273,7 +273,7 @@ var MessageRouter = class {
273
273
  to: recipient,
274
274
  msg: message
275
275
  }, {
276
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/signal/message-router.ts",
276
+ file: "message-router.ts",
277
277
  line: 67,
278
278
  scope: this,
279
279
  callSite: (f, a) => f(...a)
@@ -331,7 +331,7 @@ var MessageRouter = class {
331
331
  to: recipient,
332
332
  msg: networkMessage
333
333
  }, {
334
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/signal/message-router.ts",
334
+ file: "message-router.ts",
335
335
  line: 117,
336
336
  scope: this,
337
337
  callSite: (f, a) => f(...a)
@@ -362,7 +362,7 @@ var MessageRouter = class {
362
362
  (0, import_log2.log)("resolving", {
363
363
  answer: message.data.answer
364
364
  }, {
365
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/signal/message-router.ts",
365
+ file: "message-router.ts",
366
366
  line: 146,
367
367
  scope: this,
368
368
  callSite: (f, a) => f(...a)
@@ -445,7 +445,7 @@ var Peer = class {
445
445
  topic: this.topic,
446
446
  peerId: this.localPeerId
447
447
  }, {
448
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
448
+ file: "peer.ts",
449
449
  line: 83,
450
450
  scope: this,
451
451
  callSite: (f, a) => f(...a)
@@ -472,7 +472,7 @@ var Peer = class {
472
472
  remoteId: this.id,
473
473
  err
474
474
  }, {
475
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
475
+ file: "peer.ts",
476
476
  line: 107,
477
477
  scope: this,
478
478
  callSite: (f, a) => f(...a)
@@ -498,7 +498,7 @@ var Peer = class {
498
498
  peerId: this.id,
499
499
  sessionId
500
500
  }, {
501
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
501
+ file: "peer.ts",
502
502
  line: 125,
503
503
  scope: this,
504
504
  callSite: (f, a) => f(...a)
@@ -521,14 +521,14 @@ var Peer = class {
521
521
  ownId: this.localPeerId,
522
522
  remoteId: this.id
523
523
  }, {
524
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
524
+ file: "peer.ts",
525
525
  line: 137,
526
526
  scope: this,
527
527
  callSite: (f, a) => f(...a)
528
528
  });
529
529
  if (connection.state !== ConnectionState.INITIAL) {
530
530
  (0, import_log3.log)("ignoring response", {}, {
531
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
531
+ file: "peer.ts",
532
532
  line: 139,
533
533
  scope: this,
534
534
  callSite: (f, a) => f(...a)
@@ -548,7 +548,7 @@ var Peer = class {
548
548
  remoteId: this.id,
549
549
  err
550
550
  }, {
551
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
551
+ file: "peer.ts",
552
552
  line: 150,
553
553
  scope: this,
554
554
  callSite: (f, a) => f(...a)
@@ -567,7 +567,7 @@ var Peer = class {
567
567
  initiator,
568
568
  sessionId
569
569
  }, {
570
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
570
+ file: "peer.ts",
571
571
  line: 164,
572
572
  scope: this,
573
573
  callSite: (f, a) => f(...a)
@@ -602,7 +602,7 @@ var Peer = class {
602
602
  remoteId: this.id,
603
603
  initiator
604
604
  }, {
605
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
605
+ file: "peer.ts",
606
606
  line: 193,
607
607
  scope: this,
608
608
  callSite: (f, a) => f(...a)
@@ -622,7 +622,7 @@ var Peer = class {
622
622
  initiator,
623
623
  err
624
624
  }, {
625
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
625
+ file: "peer.ts",
626
626
  line: 203,
627
627
  scope: this,
628
628
  callSite: (f, a) => f(...a)
@@ -641,7 +641,7 @@ var Peer = class {
641
641
  peerId: this.id,
642
642
  sessionId: connection.sessionId
643
643
  }, {
644
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
644
+ file: "peer.ts",
645
645
  line: 219,
646
646
  scope: this,
647
647
  callSite: (f, a) => f(...a)
@@ -651,7 +651,7 @@ var Peer = class {
651
651
  peerId: this.id,
652
652
  sessionId: connection.sessionId
653
653
  }, {
654
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
654
+ file: "peer.ts",
655
655
  line: 225,
656
656
  scope: this,
657
657
  callSite: (f, a) => f(...a)
@@ -662,7 +662,7 @@ var Peer = class {
662
662
  (0, import_log3.log)("dropping signal message for non-existent connection", {
663
663
  message
664
664
  }, {
665
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
665
+ file: "peer.ts",
666
666
  line: 230,
667
667
  scope: this,
668
668
  callSite: (f, a) => f(...a)
@@ -677,7 +677,7 @@ var Peer = class {
677
677
  peerId: this.id,
678
678
  topic: this.topic
679
679
  }, {
680
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts",
680
+ file: "peer.ts",
681
681
  line: 238,
682
682
  scope: this,
683
683
  callSite: (f, a) => f(...a)
@@ -721,7 +721,7 @@ var Swarm = class {
721
721
  (0, import_log4.log)("creating swarm", {
722
722
  peerId: _ownPeerId
723
723
  }, {
724
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
724
+ file: "swarm.ts",
725
725
  line: 80,
726
726
  scope: this,
727
727
  callSite: (f, a) => f(...a)
@@ -738,7 +738,7 @@ var Swarm = class {
738
738
  payloadType: "dxos.mesh.swarm.SwarmMessage",
739
739
  onMessage: async (message) => await this._swarmMessenger.receiveMessage(message)
740
740
  }).catch((error) => import_log4.log.catch(error, {}, {
741
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
741
+ file: "swarm.ts",
742
742
  line: 96,
743
743
  scope: this,
744
744
  callSite: (f, a) => f(...a)
@@ -758,7 +758,7 @@ var Swarm = class {
758
758
  }
759
759
  async destroy() {
760
760
  (0, import_log4.log)("destroying...", {}, {
761
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
761
+ file: "swarm.ts",
762
762
  line: 124,
763
763
  scope: this,
764
764
  callSite: (f, a) => f(...a)
@@ -767,7 +767,7 @@ var Swarm = class {
767
767
  await this._topology.destroy();
768
768
  await Promise.all(Array.from(this._peers.keys()).map((key) => this._destroyPeer(key)));
769
769
  (0, import_log4.log)("destroyed", {}, {
770
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
770
+ file: "swarm.ts",
771
771
  line: 128,
772
772
  scope: this,
773
773
  callSite: (f, a) => f(...a)
@@ -781,7 +781,7 @@ var Swarm = class {
781
781
  previous: getClassName(this._topology),
782
782
  topology: getClassName(topology)
783
783
  }, {
784
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
784
+ file: "swarm.ts",
785
785
  line: 135,
786
786
  scope: this,
787
787
  callSite: (f, a) => f(...a)
@@ -833,14 +833,14 @@ var Swarm = class {
833
833
  (0, import_log4.log)("swarm event", {
834
834
  swarmEvent
835
835
  }, {
836
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
836
+ file: "swarm.ts",
837
837
  line: 199,
838
838
  scope: this,
839
839
  callSite: (f, a) => f(...a)
840
840
  });
841
841
  if (this._ctx.disposed) {
842
842
  import_log4.log.warn("ignored for destroyed swarm", {}, {
843
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
843
+ file: "swarm.ts",
844
844
  line: 201,
845
845
  scope: this,
846
846
  callSite: (f, a) => f(...a)
@@ -852,7 +852,7 @@ var Swarm = class {
852
852
  (0, import_log4.log)("new peer", {
853
853
  peerId
854
854
  }, {
855
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
855
+ file: "swarm.ts",
856
856
  line: 207,
857
857
  scope: this,
858
858
  callSite: (f, a) => f(...a)
@@ -877,14 +877,14 @@ var Swarm = class {
877
877
  (0, import_log4.log)("offer", {
878
878
  message
879
879
  }, {
880
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
880
+ file: "swarm.ts",
881
881
  line: 226,
882
882
  scope: this,
883
883
  callSite: (f, a) => f(...a)
884
884
  });
885
885
  if (this._ctx.disposed) {
886
886
  import_log4.log.info("ignored for destroyed swarm", {}, {
887
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
887
+ file: "swarm.ts",
888
888
  line: 228,
889
889
  scope: this,
890
890
  callSite: (f, a) => f(...a)
@@ -898,7 +898,7 @@ var Swarm = class {
898
898
  (0, import_log4.log)("rejecting offer with incorrect peerId", {
899
899
  message
900
900
  }, {
901
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
901
+ file: "swarm.ts",
902
902
  line: 235,
903
903
  scope: this,
904
904
  callSite: (f, a) => f(...a)
@@ -911,7 +911,7 @@ var Swarm = class {
911
911
  (0, import_log4.log)("rejecting offer with incorrect topic", {
912
912
  message
913
913
  }, {
914
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
914
+ file: "swarm.ts",
915
915
  line: 239,
916
916
  scope: this,
917
917
  callSite: (f, a) => f(...a)
@@ -930,14 +930,14 @@ var Swarm = class {
930
930
  (0, import_log4.log)("signal", {
931
931
  message
932
932
  }, {
933
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
933
+ file: "swarm.ts",
934
934
  line: 250,
935
935
  scope: this,
936
936
  callSite: (f, a) => f(...a)
937
937
  });
938
938
  if (this._ctx.disposed) {
939
939
  import_log4.log.info("ignored for destroyed swarm", {}, {
940
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
940
+ file: "swarm.ts",
941
941
  line: 252,
942
942
  scope: this,
943
943
  callSite: (f, a) => f(...a)
@@ -966,7 +966,7 @@ var Swarm = class {
966
966
  await this._initiateConnection(peer);
967
967
  } catch (err) {
968
968
  import_log4.log.warn("initiation error", err, {
969
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
969
+ file: "swarm.ts",
970
970
  line: 287,
971
971
  scope: this,
972
972
  callSite: (f, a) => f(...a)
@@ -990,7 +990,7 @@ var Swarm = class {
990
990
  (0, import_log4.log)("initiation delay", {
991
991
  remoteId
992
992
  }, {
993
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
993
+ file: "swarm.ts",
994
994
  line: 312,
995
995
  scope: this,
996
996
  callSite: (f, a) => f(...a)
@@ -1007,7 +1007,7 @@ var Swarm = class {
1007
1007
  (0, import_log4.log)("initiating connection...", {
1008
1008
  remoteId
1009
1009
  }, {
1010
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
1010
+ file: "swarm.ts",
1011
1011
  line: 326,
1012
1012
  scope: this,
1013
1013
  callSite: (f, a) => f(...a)
@@ -1017,7 +1017,7 @@ var Swarm = class {
1017
1017
  (0, import_log4.log)("initiated", {
1018
1018
  remoteId
1019
1019
  }, {
1020
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm.ts",
1020
+ file: "swarm.ts",
1021
1021
  line: 329,
1022
1022
  scope: this,
1023
1023
  callSite: (f, a) => f(...a)
@@ -1072,7 +1072,7 @@ var SwarmMapper = class {
1072
1072
  }
1073
1073
  _update() {
1074
1074
  (0, import_log5.log)("updating swarm", {}, {
1075
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm-mapper.ts",
1075
+ file: "swarm-mapper.ts",
1076
1076
  line: 75,
1077
1077
  scope: this,
1078
1078
  callSite: (f, a) => f(...a)
@@ -1096,7 +1096,7 @@ var SwarmMapper = class {
1096
1096
  directConnections: this._swarm.connections.length,
1097
1097
  totalPeersInSwarm: this._peers.size
1098
1098
  }, {
1099
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/swarm-mapper.ts",
1099
+ file: "swarm-mapper.ts",
1100
1100
  line: 116,
1101
1101
  scope: this,
1102
1102
  callSite: (f, a) => f(...a)
@@ -1215,7 +1215,7 @@ var NetworkManager = class {
1215
1215
  for (const topic of this._swarms.keys()) {
1216
1216
  await this.leaveSwarm(topic).catch((err) => {
1217
1217
  (0, import_log6.log)(err, {}, {
1218
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1218
+ file: "network-manager.ts",
1219
1219
  line: 122,
1220
1220
  scope: this,
1221
1221
  callSite: (f, a) => f(...a)
@@ -1238,7 +1238,7 @@ var NetworkManager = class {
1238
1238
  peerId,
1239
1239
  topology: topology.toString()
1240
1240
  }, {
1241
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1241
+ file: "network-manager.ts",
1242
1242
  line: 148,
1243
1243
  scope: this,
1244
1244
  callSite: (f, a) => f(...a)
@@ -1248,7 +1248,7 @@ var NetworkManager = class {
1248
1248
  (0, import_log6.log)("swarm error", {
1249
1249
  error
1250
1250
  }, {
1251
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1251
+ file: "network-manager.ts",
1252
1252
  line: 151,
1253
1253
  scope: this,
1254
1254
  callSite: (f, a) => f(...a)
@@ -1259,7 +1259,7 @@ var NetworkManager = class {
1259
1259
  topic,
1260
1260
  peerId
1261
1261
  }).catch((error) => import_log6.log.catch(error, {}, {
1262
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1262
+ file: "network-manager.ts",
1263
1263
  line: 155,
1264
1264
  scope: this,
1265
1265
  callSite: (f, a) => f(...a)
@@ -1271,7 +1271,7 @@ var NetworkManager = class {
1271
1271
  topic: import_keys6.PublicKey.from(topic),
1272
1272
  count: this._swarms.size
1273
1273
  }, {
1274
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1274
+ file: "network-manager.ts",
1275
1275
  line: 160,
1276
1276
  scope: this,
1277
1277
  callSite: (f, a) => f(...a)
@@ -1286,7 +1286,7 @@ var NetworkManager = class {
1286
1286
  import_log6.log.warn("swarm not open", {
1287
1287
  topic: import_keys6.PublicKey.from(topic)
1288
1288
  }, {
1289
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1289
+ file: "network-manager.ts",
1290
1290
  line: 172,
1291
1291
  scope: this,
1292
1292
  callSite: (f, a) => f(...a)
@@ -1296,7 +1296,7 @@ var NetworkManager = class {
1296
1296
  (0, import_log6.log)("leaving", {
1297
1297
  topic: import_keys6.PublicKey.from(topic)
1298
1298
  }, {
1299
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1299
+ file: "network-manager.ts",
1300
1300
  line: 176,
1301
1301
  scope: this,
1302
1302
  callSite: (f, a) => f(...a)
@@ -1317,7 +1317,7 @@ var NetworkManager = class {
1317
1317
  topic: import_keys6.PublicKey.from(topic),
1318
1318
  count: this._swarms.size
1319
1319
  }, {
1320
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/network-manager.ts",
1320
+ file: "network-manager.ts",
1321
1321
  line: 190,
1322
1322
  scope: this,
1323
1323
  callSite: (f, a) => f(...a)
@@ -1369,7 +1369,7 @@ var MMSTTopology = class {
1369
1369
  const { connected, candidates } = this._controller.getState();
1370
1370
  if (this._sampleCollected || connected.length > this._maxPeers || candidates.length > 0) {
1371
1371
  (0, import_log7.log)("Running the algorithm.", {}, {
1372
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1372
+ file: "mmst-topology.ts",
1373
1373
  line: 55,
1374
1374
  scope: this,
1375
1375
  callSite: (f, a) => f(...a)
@@ -1383,7 +1383,7 @@ var MMSTTopology = class {
1383
1383
  const { connected } = this._controller.getState();
1384
1384
  const accept = connected.length < this._maxPeers;
1385
1385
  (0, import_log7.log)(`Offer ${peer} accept=${accept}`, {}, {
1386
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1386
+ file: "mmst-topology.ts",
1387
1387
  line: 65,
1388
1388
  scope: this,
1389
1389
  callSite: (f, a) => f(...a)
@@ -1399,7 +1399,7 @@ var MMSTTopology = class {
1399
1399
  const sorted = sortByXorDistance(connected, ownPeerId).reverse().slice(0, this._maxPeers - connected.length);
1400
1400
  for (const peer of sorted) {
1401
1401
  (0, import_log7.log)(`Disconnect ${peer}.`, {}, {
1402
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1402
+ file: "mmst-topology.ts",
1403
1403
  line: 83,
1404
1404
  scope: this,
1405
1405
  callSite: (f, a) => f(...a)
@@ -1411,7 +1411,7 @@ var MMSTTopology = class {
1411
1411
  const sorted1 = sortByXorDistance(sample, ownPeerId).slice(0, this._originateConnections - connected.length);
1412
1412
  for (const peer1 of sorted1) {
1413
1413
  (0, import_log7.log)(`Connect ${peer1}.`, {}, {
1414
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/mmst-topology.ts",
1414
+ file: "mmst-topology.ts",
1415
1415
  line: 91,
1416
1416
  scope: this,
1417
1417
  callSite: (f, a) => f(...a)
@@ -1445,7 +1445,7 @@ var StarTopology = class {
1445
1445
  const { candidates, connected, ownPeerId } = this._controller.getState();
1446
1446
  if (!ownPeerId.equals(this._centralPeer)) {
1447
1447
  (0, import_log8.log)("leaf peer dropping all connections apart from central peer.", {}, {
1448
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1448
+ file: "star-topology.ts",
1449
1449
  line: 33,
1450
1450
  scope: this,
1451
1451
  callSite: (f, a) => f(...a)
@@ -1455,7 +1455,7 @@ var StarTopology = class {
1455
1455
  (0, import_log8.log)("dropping connection", {
1456
1456
  peer
1457
1457
  }, {
1458
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1458
+ file: "star-topology.ts",
1459
1459
  line: 38,
1460
1460
  scope: this,
1461
1461
  callSite: (f, a) => f(...a)
@@ -1469,7 +1469,7 @@ var StarTopology = class {
1469
1469
  (0, import_log8.log)("connecting to peer", {
1470
1470
  peer: peer1
1471
1471
  }, {
1472
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1472
+ file: "star-topology.ts",
1473
1473
  line: 47,
1474
1474
  scope: this,
1475
1475
  callSite: (f, a) => f(...a)
@@ -1486,7 +1486,7 @@ var StarTopology = class {
1486
1486
  isCentral: peer.equals(this._centralPeer),
1487
1487
  isSelfCentral: ownPeerId.equals(this._centralPeer)
1488
1488
  }, {
1489
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/topology/star-topology.ts",
1489
+ file: "star-topology.ts",
1490
1490
  line: 56,
1491
1491
  scope: this,
1492
1492
  callSite: (f, a) => f(...a)
@@ -1540,7 +1540,7 @@ var _MemoryTransport = class {
1540
1540
  this._destroyed = false;
1541
1541
  this._instanceId = import_keys7.PublicKey.random();
1542
1542
  (0, import_log9.log)("creating", {}, {
1543
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1543
+ file: "memory-transport.ts",
1544
1544
  line: 64,
1545
1545
  scope: this,
1546
1546
  callSite: (f, a) => f(...a)
@@ -1550,7 +1550,7 @@ var _MemoryTransport = class {
1550
1550
  if (this.options.initiator) {
1551
1551
  setTimeout(async () => {
1552
1552
  (0, import_log9.log)("sending signal", {}, {
1553
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1553
+ file: "memory-transport.ts",
1554
1554
  line: 73,
1555
1555
  scope: this,
1556
1556
  callSite: (f, a) => f(...a)
@@ -1579,7 +1579,7 @@ var _MemoryTransport = class {
1579
1579
  this._remoteConnection._remoteConnection = this;
1580
1580
  this._remoteConnection._remoteInstanceId = this._instanceId;
1581
1581
  (0, import_log9.log)("connected", {}, {
1582
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1582
+ file: "memory-transport.ts",
1583
1583
  line: 102,
1584
1584
  scope: this,
1585
1585
  callSite: (f, a) => f(...a)
@@ -1597,7 +1597,7 @@ var _MemoryTransport = class {
1597
1597
  }
1598
1598
  async destroy() {
1599
1599
  (0, import_log9.log)("closing", {}, {
1600
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1600
+ file: "memory-transport.ts",
1601
1601
  line: 123,
1602
1602
  scope: this,
1603
1603
  callSite: (f, a) => f(...a)
@@ -1606,7 +1606,7 @@ var _MemoryTransport = class {
1606
1606
  _MemoryTransport._connections.delete(this._instanceId);
1607
1607
  if (this._remoteConnection) {
1608
1608
  (0, import_log9.log)("closing", {}, {
1609
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1609
+ file: "memory-transport.ts",
1610
1610
  line: 128,
1611
1611
  scope: this,
1612
1612
  callSite: (f, a) => f(...a)
@@ -1619,7 +1619,7 @@ var _MemoryTransport = class {
1619
1619
  this._remoteConnection._remoteConnection = void 0;
1620
1620
  this._remoteConnection = void 0;
1621
1621
  (0, import_log9.log)("closed", {}, {
1622
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1622
+ file: "memory-transport.ts",
1623
1623
  line: 146,
1624
1624
  scope: this,
1625
1625
  callSite: (f, a) => f(...a)
@@ -1627,7 +1627,7 @@ var _MemoryTransport = class {
1627
1627
  }
1628
1628
  this.closed.emit();
1629
1629
  (0, import_log9.log)("closed", {}, {
1630
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1630
+ file: "memory-transport.ts",
1631
1631
  line: 150,
1632
1632
  scope: this,
1633
1633
  callSite: (f, a) => f(...a)
@@ -1637,7 +1637,7 @@ var _MemoryTransport = class {
1637
1637
  (0, import_log9.log)("received signal", {
1638
1638
  payload
1639
1639
  }, {
1640
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/memory-transport.ts",
1640
+ file: "memory-transport.ts",
1641
1641
  line: 154,
1642
1642
  scope: this,
1643
1643
  callSite: (f, a) => f(...a)
@@ -1684,7 +1684,7 @@ var WebRTCTransport = class {
1684
1684
  this.connected = new import_async8.Event();
1685
1685
  this.errors = new import_debug5.ErrorStream();
1686
1686
  (0, import_log10.log)("created connection", params, {
1687
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1687
+ file: "webrtc-transport.ts",
1688
1688
  line: 34,
1689
1689
  scope: this,
1690
1690
  callSite: (f, a) => f(...a)
@@ -1696,7 +1696,7 @@ var WebRTCTransport = class {
1696
1696
  });
1697
1697
  this._peer.on("signal", async (data) => {
1698
1698
  (0, import_log10.log)("signal", data, {
1699
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1699
+ file: "webrtc-transport.ts",
1700
1700
  line: 42,
1701
1701
  scope: this,
1702
1702
  callSite: (f, a) => f(...a)
@@ -1709,7 +1709,7 @@ var WebRTCTransport = class {
1709
1709
  });
1710
1710
  this._peer.on("connect", () => {
1711
1711
  (0, import_log10.log)("connected", {}, {
1712
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1712
+ file: "webrtc-transport.ts",
1713
1713
  line: 47,
1714
1714
  scope: this,
1715
1715
  callSite: (f, a) => f(...a)
@@ -1719,7 +1719,7 @@ var WebRTCTransport = class {
1719
1719
  });
1720
1720
  this._peer.on("close", async () => {
1721
1721
  (0, import_log10.log)("closed", {}, {
1722
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1722
+ file: "webrtc-transport.ts",
1723
1723
  line: 53,
1724
1724
  scope: this,
1725
1725
  callSite: (f, a) => f(...a)
@@ -1734,7 +1734,7 @@ var WebRTCTransport = class {
1734
1734
  }
1735
1735
  async destroy() {
1736
1736
  (0, import_log10.log)("closing...", {}, {
1737
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1737
+ file: "webrtc-transport.ts",
1738
1738
  line: 65,
1739
1739
  scope: this,
1740
1740
  callSite: (f, a) => f(...a)
@@ -1743,7 +1743,7 @@ var WebRTCTransport = class {
1743
1743
  this._peer.destroy();
1744
1744
  this.closed.emit();
1745
1745
  (0, import_log10.log)("closed", {}, {
1746
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport.ts",
1746
+ file: "webrtc-transport.ts",
1747
1747
  line: 69,
1748
1748
  scope: this,
1749
1749
  callSite: (f, a) => f(...a)
@@ -1855,7 +1855,7 @@ var WebRTCTransportService = class {
1855
1855
  await ((_b = this.transports.get(proxyId)) == null ? void 0 : _b.stream.end());
1856
1856
  this.transports.delete(proxyId);
1857
1857
  (0, import_log11.log)("Closed.", {}, {
1858
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-service.ts",
1858
+ file: "webrtc-transport-service.ts",
1859
1859
  line: 108,
1860
1860
  scope: this,
1861
1861
  callSite: (f, a) => f(...a)
@@ -1885,7 +1885,7 @@ var WebRTCTransportProxy = class {
1885
1885
  this._serviceStream.waitUntilReady().then(() => {
1886
1886
  this._serviceStream.subscribe(async (event) => {
1887
1887
  (0, import_log12.log)("WebRTCTransportProxy: event", event, {
1888
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1888
+ file: "webrtc-transport-proxy.ts",
1889
1889
  line: 46,
1890
1890
  scope: this,
1891
1891
  callSite: (f, a) => f(...a)
@@ -1906,7 +1906,7 @@ var WebRTCTransportProxy = class {
1906
1906
  });
1907
1907
  } catch (err) {
1908
1908
  import_log12.log.catch(err, {}, {
1909
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1909
+ file: "webrtc-transport-proxy.ts",
1910
1910
  line: 63,
1911
1911
  scope: this,
1912
1912
  callSite: (f, a) => f(...a)
@@ -1914,7 +1914,7 @@ var WebRTCTransportProxy = class {
1914
1914
  }
1915
1915
  });
1916
1916
  }, (error) => import_log12.log.catch(error, {}, {
1917
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1917
+ file: "webrtc-transport-proxy.ts",
1918
1918
  line: 67,
1919
1919
  scope: this,
1920
1920
  callSite: (f, a) => f(...a)
@@ -1958,7 +1958,7 @@ var WebRTCTransportProxy = class {
1958
1958
  });
1959
1959
  } catch (err) {
1960
1960
  import_log12.log.catch(err, {}, {
1961
- file: "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/transport/webrtc-transport-proxy.ts",
1961
+ file: "webrtc-transport-proxy.ts",
1962
1962
  line: 117,
1963
1963
  scope: this,
1964
1964
  callSite: (f, a) => f(...a)
@@ -2035,3 +2035,4 @@ var createTeleportProtocolFactory = (onConnection) => {
2035
2035
  createTeleportProtocolFactory,
2036
2036
  createWebRTCTransportFactory
2037
2037
  });
2038
+ //# sourceMappingURL=index.cjs.map