@dxos/echo-pipeline 0.3.9-main.cea1d3b → 0.3.9-main.d27c21f

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.
@@ -2443,6 +2443,7 @@ var SpaceProtocol = class {
2443
2443
  constructor({ topic, swarmIdentity, networkManager, onSessionAuth, onAuthFailure, blobStore }) {
2444
2444
  this._feeds = /* @__PURE__ */ new Set();
2445
2445
  this._sessions = new ComplexMap5(PublicKey6.hash);
2446
+ this._spaceKey = topic;
2446
2447
  this._networkManager = networkManager;
2447
2448
  this._swarmIdentity = swarmIdentity;
2448
2449
  this._onSessionAuth = onSessionAuth;
@@ -2467,7 +2468,7 @@ var SpaceProtocol = class {
2467
2468
  key: feed.key
2468
2469
  }, {
2469
2470
  F: __dxlog_file12,
2470
- L: 96,
2471
+ L: 99,
2471
2472
  S: this,
2472
2473
  C: (f, a) => f(...a)
2473
2474
  });
@@ -2490,7 +2491,7 @@ var SpaceProtocol = class {
2490
2491
  await this.blobSync.open();
2491
2492
  log11("starting...", void 0, {
2492
2493
  F: __dxlog_file12,
2493
- L: 122,
2494
+ L: 125,
2494
2495
  S: this,
2495
2496
  C: (f, a) => f(...a)
2496
2497
  });
@@ -2500,11 +2501,11 @@ var SpaceProtocol = class {
2500
2501
  peerId: this._swarmIdentity.peerKey,
2501
2502
  topic,
2502
2503
  topology: new MMSTTopology(topologyConfig),
2503
- label: `space swarm ${topic.truncate()}`
2504
+ label: `swarm ${topic.truncate()} for space ${this._spaceKey.truncate()}`
2504
2505
  });
2505
2506
  log11("started", void 0, {
2506
2507
  F: __dxlog_file12,
2507
- L: 132,
2508
+ L: 135,
2508
2509
  S: this,
2509
2510
  C: (f, a) => f(...a)
2510
2511
  });
@@ -2514,14 +2515,14 @@ var SpaceProtocol = class {
2514
2515
  if (this._connection) {
2515
2516
  log11("stopping...", void 0, {
2516
2517
  F: __dxlog_file12,
2517
- L: 139,
2518
+ L: 142,
2518
2519
  S: this,
2519
2520
  C: (f, a) => f(...a)
2520
2521
  });
2521
2522
  await this._connection.close();
2522
2523
  log11("stopped", void 0, {
2523
2524
  F: __dxlog_file12,
2524
- L: 141,
2525
+ L: 144,
2525
2526
  S: this,
2526
2527
  C: (f, a) => f(...a)
2527
2528
  });
@@ -2580,15 +2581,15 @@ var SpaceProtocolSession = class {
2580
2581
  get stream() {
2581
2582
  return this._teleport.stream;
2582
2583
  }
2583
- async open() {
2584
- await this._teleport.open();
2584
+ async open(sessionId) {
2585
+ await this._teleport.open(sessionId);
2585
2586
  this._teleport.addExtension("dxos.mesh.teleport.auth", new AuthExtension({
2586
2587
  provider: this._swarmIdentity.credentialProvider,
2587
2588
  verifier: this._swarmIdentity.credentialAuthenticator,
2588
2589
  onAuthSuccess: () => {
2589
2590
  log11("Peer authenticated", void 0, {
2590
2591
  F: __dxlog_file12,
2591
- L: 238,
2592
+ L: 241,
2592
2593
  S: this,
2593
2594
  C: (f, a) => f(...a)
2594
2595
  });
@@ -2606,7 +2607,7 @@ var SpaceProtocolSession = class {
2606
2607
  async close() {
2607
2608
  log11("close", void 0, {
2608
2609
  F: __dxlog_file12,
2609
- L: 254,
2610
+ L: 257,
2610
2611
  S: this,
2611
2612
  C: (f, a) => f(...a)
2612
2613
  });
@@ -2749,4 +2750,4 @@ export {
2749
2750
  SpaceProtocolSession,
2750
2751
  SpaceManager
2751
2752
  };
2752
- //# sourceMappingURL=chunk-MPEQ7BV3.mjs.map
2753
+ //# sourceMappingURL=chunk-HSZ2EJ74.mjs.map