@dxos/client-services 0.1.58-main.ffbb8a1 → 0.1.58-next.3349da8

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.
@@ -71,7 +71,7 @@ var import_protocols = require("@dxos/protocols");
71
71
  var import_services = require("@dxos/protocols/proto/dxos/client/services");
72
72
 
73
73
  // packages/sdk/client-services/src/version.ts
74
- var DXOS_VERSION = "0.1.58-main.ffbb8a1";
74
+ var DXOS_VERSION = "0.1.58-next.3349da8";
75
75
 
76
76
  // packages/sdk/client-services/src/packlets/services/platform.ts
77
77
  var getPlatform = () => {
@@ -2004,6 +2004,9 @@ var InvitationsServiceImpl = class {
2004
2004
  }, () => {
2005
2005
  close();
2006
2006
  this._createInvitations.delete(invitation.get().invitationId);
2007
+ if (invitation.get().type !== import_services5.Invitation.Type.MULTIUSE) {
2008
+ this._removedCreated.emit(invitation.get());
2009
+ }
2007
2010
  });
2008
2011
  });
2009
2012
  }
@@ -2026,19 +2029,22 @@ var InvitationsServiceImpl = class {
2026
2029
  }, () => {
2027
2030
  close();
2028
2031
  this._acceptInvitations.delete(invitation.get().invitationId);
2032
+ if (invitation.get().type !== import_services5.Invitation.Type.MULTIUSE) {
2033
+ this._removedAccepted.emit(invitation.get());
2034
+ }
2029
2035
  });
2030
2036
  });
2031
2037
  }
2032
2038
  async authenticate({ invitationId, authCode }) {
2033
2039
  (0, import_log7.log)("authenticating...", void 0, {
2034
2040
  F: __dxlog_file9,
2035
- L: 102,
2041
+ L: 108,
2036
2042
  S: this,
2037
2043
  C: (f, a) => f(...a)
2038
2044
  });
2039
2045
  (0, import_invariant8.invariant)(invitationId, void 0, {
2040
2046
  F: __dxlog_file9,
2041
- L: 103,
2047
+ L: 109,
2042
2048
  S: this,
2043
2049
  A: [
2044
2050
  "invitationId",
@@ -2051,7 +2057,7 @@ var InvitationsServiceImpl = class {
2051
2057
  invitationId
2052
2058
  }, {
2053
2059
  F: __dxlog_file9,
2054
- L: 106,
2060
+ L: 112,
2055
2061
  S: this,
2056
2062
  C: (f, a) => f(...a)
2057
2063
  });
@@ -2062,13 +2068,13 @@ var InvitationsServiceImpl = class {
2062
2068
  async cancelInvitation({ invitationId }) {
2063
2069
  (0, import_log7.log)("deleting...", void 0, {
2064
2070
  F: __dxlog_file9,
2065
- L: 113,
2071
+ L: 119,
2066
2072
  S: this,
2067
2073
  C: (f, a) => f(...a)
2068
2074
  });
2069
2075
  (0, import_invariant8.invariant)(invitationId, void 0, {
2070
2076
  F: __dxlog_file9,
2071
- L: 114,
2077
+ L: 120,
2072
2078
  S: this,
2073
2079
  A: [
2074
2080
  "invitationId",
@@ -2090,7 +2096,7 @@ var InvitationsServiceImpl = class {
2090
2096
  invitationId
2091
2097
  }, {
2092
2098
  F: __dxlog_file9,
2093
- L: 126,
2099
+ L: 132,
2094
2100
  S: this,
2095
2101
  C: (f, a) => f(...a)
2096
2102
  });
@@ -2675,6 +2681,7 @@ var DataSpace = class DataSpace2 {
2675
2681
  await this._open();
2676
2682
  }
2677
2683
  async _open() {
2684
+ await this._gossip.open();
2678
2685
  await this._notarizationPlugin.open();
2679
2686
  await this._inner.spaceState.addCredentialProcessor(this._notarizationPlugin);
2680
2687
  await this._inner.open(new import_context6.Context());
@@ -2683,7 +2690,7 @@ var DataSpace = class DataSpace2 {
2683
2690
  state: import_services7.SpaceState[this._state]
2684
2691
  }, {
2685
2692
  F: __dxlog_file12,
2686
- L: 158,
2693
+ L: 159,
2687
2694
  S: this,
2688
2695
  C: (f, a) => f(...a)
2689
2696
  });
@@ -2701,7 +2708,7 @@ var DataSpace = class DataSpace2 {
2701
2708
  state: import_services7.SpaceState[this._state]
2702
2709
  }, {
2703
2710
  F: __dxlog_file12,
2704
- L: 172,
2711
+ L: 173,
2705
2712
  S: this,
2706
2713
  C: (f, a) => f(...a)
2707
2714
  });
@@ -2712,6 +2719,7 @@ var DataSpace = class DataSpace2 {
2712
2719
  await this._inner.spaceState.removeCredentialProcessor(this._notarizationPlugin);
2713
2720
  await this._notarizationPlugin.close();
2714
2721
  await this._presence.destroy();
2722
+ await this._gossip.close();
2715
2723
  }
2716
2724
  async postMessage(channel, message) {
2717
2725
  return this._gossip.postMessage(channel, message);
@@ -2731,7 +2739,7 @@ var DataSpace = class DataSpace2 {
2731
2739
  if (err instanceof import_errors3.CancelledError) {
2732
2740
  (0, import_log10.log)("data pipeline initialization cancelled", err, {
2733
2741
  F: __dxlog_file12,
2734
- L: 203,
2742
+ L: 205,
2735
2743
  S: this,
2736
2744
  C: (f, a) => f(...a)
2737
2745
  });
@@ -2739,7 +2747,7 @@ var DataSpace = class DataSpace2 {
2739
2747
  }
2740
2748
  import_log10.log.error("Error initializing data pipeline", err, {
2741
2749
  F: __dxlog_file12,
2742
- L: 207,
2750
+ L: 209,
2743
2751
  S: this,
2744
2752
  C: (f, a) => f(...a)
2745
2753
  });
@@ -2748,7 +2756,7 @@ var DataSpace = class DataSpace2 {
2748
2756
  state: import_services7.SpaceState[this._state]
2749
2757
  }, {
2750
2758
  F: __dxlog_file12,
2751
- L: 209,
2759
+ L: 211,
2752
2760
  S: this,
2753
2761
  C: (f, a) => f(...a)
2754
2762
  });
@@ -2768,7 +2776,7 @@ var DataSpace = class DataSpace2 {
2768
2776
  state: import_services7.SpaceState[this._state]
2769
2777
  }, {
2770
2778
  F: __dxlog_file12,
2771
- L: 225,
2779
+ L: 227,
2772
2780
  S: this,
2773
2781
  C: (f, a) => f(...a)
2774
2782
  });
@@ -2779,7 +2787,7 @@ var DataSpace = class DataSpace2 {
2779
2787
  await (0, import_context6.cancelWithContext)(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
2780
2788
  (0, import_log10.log)("waiting for data pipeline to reach target timeframe", void 0, {
2781
2789
  F: __dxlog_file12,
2782
- L: 239,
2790
+ L: 241,
2783
2791
  S: this,
2784
2792
  C: (f, a) => f(...a)
2785
2793
  });
@@ -2790,7 +2798,7 @@ var DataSpace = class DataSpace2 {
2790
2798
  this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
2791
2799
  (0, import_log10.log)("data pipeline ready", void 0, {
2792
2800
  F: __dxlog_file12,
2793
- L: 248,
2801
+ L: 250,
2794
2802
  S: this,
2795
2803
  C: (f, a) => f(...a)
2796
2804
  });
@@ -2800,7 +2808,7 @@ var DataSpace = class DataSpace2 {
2800
2808
  state: import_services7.SpaceState[this._state]
2801
2809
  }, {
2802
2810
  F: __dxlog_file12,
2803
- L: 252,
2811
+ L: 254,
2804
2812
  S: this,
2805
2813
  C: (f, a) => f(...a)
2806
2814
  });
@@ -2816,7 +2824,7 @@ var DataSpace = class DataSpace2 {
2816
2824
  await this._createWritableFeeds();
2817
2825
  (0, import_log10.log)("writable feeds created", void 0, {
2818
2826
  F: __dxlog_file12,
2819
- L: 268,
2827
+ L: 270,
2820
2828
  S: this,
2821
2829
  C: (f, a) => f(...a)
2822
2830
  });
@@ -2921,7 +2929,7 @@ var DataSpace = class DataSpace2 {
2921
2929
  state: import_services7.SpaceState[this._state]
2922
2930
  }, {
2923
2931
  F: __dxlog_file12,
2924
- L: 384,
2932
+ L: 386,
2925
2933
  S: this,
2926
2934
  C: (f, a) => f(...a)
2927
2935
  });