@dxos/client-services 0.4.10-main.3c620fb → 0.4.10-main.3e35a2f

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.
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_OSCHFTM3_exports = {};
30
- __export(chunk_OSCHFTM3_exports, {
29
+ var chunk_3T6D6GIB_exports = {};
30
+ __export(chunk_3T6D6GIB_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  ClientServicesProviderResource: () => ClientServicesProviderResource,
@@ -55,7 +55,6 @@ __export(chunk_OSCHFTM3_exports, {
55
55
  createLevel: () => createLevel,
56
56
  createStorageObjects: () => createStorageObjects,
57
57
  getNetworkPeers: () => getNetworkPeers,
58
- invitationExpired: () => invitationExpired,
59
58
  isLocked: () => isLocked,
60
59
  subscribeToFeedBlocks: () => subscribeToFeedBlocks,
61
60
  subscribeToFeeds: () => subscribeToFeeds,
@@ -65,7 +64,7 @@ __export(chunk_OSCHFTM3_exports, {
65
64
  subscribeToSpaces: () => subscribeToSpaces,
66
65
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
67
66
  });
68
- module.exports = __toCommonJS(chunk_OSCHFTM3_exports);
67
+ module.exports = __toCommonJS(chunk_3T6D6GIB_exports);
69
68
  var import_async = require("@dxos/async");
70
69
  var import_codec_protobuf = require("@dxos/codec-protobuf");
71
70
  var import_feed_store = require("@dxos/feed-store");
@@ -139,6 +138,7 @@ var import_teleport = require("@dxos/teleport");
139
138
  var import_async9 = require("@dxos/async");
140
139
  var import_codec_protobuf8 = require("@dxos/codec-protobuf");
141
140
  var import_context6 = require("@dxos/context");
141
+ var import_echo_pipeline = require("@dxos/echo-pipeline");
142
142
  var import_invariant7 = require("@dxos/invariant");
143
143
  var import_log6 = require("@dxos/log");
144
144
  var import_services5 = require("@dxos/protocols/proto/dxos/client/services");
@@ -157,8 +157,8 @@ var import_client_protocol3 = require("@dxos/client-protocol");
157
157
  var import_context7 = require("@dxos/context");
158
158
  var import_debug3 = require("@dxos/debug");
159
159
  var import_echo_db = require("@dxos/echo-db");
160
- var import_echo_pipeline = require("@dxos/echo-pipeline");
161
160
  var import_echo_pipeline2 = require("@dxos/echo-pipeline");
161
+ var import_echo_pipeline3 = require("@dxos/echo-pipeline");
162
162
  var import_invariant9 = require("@dxos/invariant");
163
163
  var import_keys7 = require("@dxos/keys");
164
164
  var import_log8 = require("@dxos/log");
@@ -203,7 +203,7 @@ var import_async15 = require("@dxos/async");
203
203
  var import_context10 = require("@dxos/context");
204
204
  var import_credentials14 = require("@dxos/credentials");
205
205
  var import_debug6 = require("@dxos/debug");
206
- var import_echo_pipeline3 = require("@dxos/echo-pipeline");
206
+ var import_echo_pipeline4 = require("@dxos/echo-pipeline");
207
207
  var import_feed_store4 = require("@dxos/feed-store");
208
208
  var import_indexing = require("@dxos/indexing");
209
209
  var import_invariant13 = require("@dxos/invariant");
@@ -232,7 +232,7 @@ var import_util8 = require("@dxos/util");
232
232
  var import_async16 = require("@dxos/async");
233
233
  var import_client_protocol4 = require("@dxos/client-protocol");
234
234
  var import_context11 = require("@dxos/context");
235
- var import_echo_pipeline4 = require("@dxos/echo-pipeline");
235
+ var import_echo_pipeline5 = require("@dxos/echo-pipeline");
236
236
  var E = __toESM(require("@dxos/echo-schema"));
237
237
  var import_indexing2 = require("@dxos/indexing");
238
238
  var import_invariant15 = require("@dxos/invariant");
@@ -1806,11 +1806,11 @@ var InvitationsHandler = class {
1806
1806
  this._networkManager = _networkManager;
1807
1807
  }
1808
1808
  createInvitation(protocol, options) {
1809
- const { invitationId = import_keys5.PublicKey.random().toHex(), type = import_services3.Invitation.Type.INTERACTIVE, authMethod = import_services3.Invitation.AuthMethod.SHARED_SECRET, state = import_services3.Invitation.State.INIT, timeout = import_client_protocol2.INVITATION_TIMEOUT, swarmKey = import_keys5.PublicKey.random(), persistent = true, created = /* @__PURE__ */ new Date(), lifetime = 86400 } = options ?? {};
1809
+ const { invitationId = import_keys5.PublicKey.random().toHex(), type = import_services3.Invitation.Type.INTERACTIVE, authMethod = import_services3.Invitation.AuthMethod.SHARED_SECRET, state = import_services3.Invitation.State.INIT, timeout = import_client_protocol2.INVITATION_TIMEOUT, swarmKey = import_keys5.PublicKey.random(), persistent = true, created = /* @__PURE__ */ new Date(), lifetime = 86400, multiUse = false } = options ?? {};
1810
1810
  const authCode = options?.authCode ?? (authMethod === import_services3.Invitation.AuthMethod.SHARED_SECRET ? (0, import_credentials7.generatePasscode)(import_client_protocol2.AUTHENTICATION_CODE_LENGTH) : void 0);
1811
1811
  (0, import_invariant5.invariant)(protocol, void 0, {
1812
1812
  F: __dxlog_file7,
1813
- L: 84,
1813
+ L: 85,
1814
1814
  S: this,
1815
1815
  A: [
1816
1816
  "protocol",
@@ -1825,9 +1825,10 @@ var InvitationsHandler = class {
1825
1825
  swarmKey,
1826
1826
  authCode,
1827
1827
  timeout,
1828
- persistent,
1828
+ persistent: persistent && type !== import_services3.Invitation.Type.OFFLINE,
1829
1829
  created,
1830
1830
  lifetime,
1831
+ multiUse,
1831
1832
  ...protocol.getInvitationContext()
1832
1833
  };
1833
1834
  const stream = new import_async7.PushStream();
@@ -1842,7 +1843,7 @@ var InvitationsHandler = class {
1842
1843
  ...protocol.toJSON()
1843
1844
  }, {
1844
1845
  F: __dxlog_file7,
1845
- L: 109,
1846
+ L: 111,
1846
1847
  S: this,
1847
1848
  C: (f, a) => f(...a)
1848
1849
  });
@@ -1867,7 +1868,7 @@ var InvitationsHandler = class {
1867
1868
  const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
1868
1869
  (0, import_invariant5.invariant)(deviceKey, void 0, {
1869
1870
  F: __dxlog_file7,
1870
- L: 130,
1871
+ L: 132,
1871
1872
  S: this,
1872
1873
  A: [
1873
1874
  "deviceKey",
@@ -1890,7 +1891,7 @@ var InvitationsHandler = class {
1890
1891
  id: traceId
1891
1892
  }), {
1892
1893
  F: __dxlog_file7,
1893
- L: 148,
1894
+ L: 150,
1894
1895
  S: this,
1895
1896
  C: (f, a) => f(...a)
1896
1897
  });
@@ -1898,7 +1899,7 @@ var InvitationsHandler = class {
1898
1899
  ...protocol.toJSON()
1899
1900
  }, {
1900
1901
  F: __dxlog_file7,
1901
- L: 149,
1902
+ L: 151,
1902
1903
  S: this,
1903
1904
  C: (f, a) => f(...a)
1904
1905
  });
@@ -1914,7 +1915,7 @@ var InvitationsHandler = class {
1914
1915
  ...protocol.toJSON()
1915
1916
  }, {
1916
1917
  F: __dxlog_file7,
1917
- L: 152,
1918
+ L: 154,
1918
1919
  S: this,
1919
1920
  C: (f, a) => f(...a)
1920
1921
  });
@@ -1926,7 +1927,7 @@ var InvitationsHandler = class {
1926
1927
  id: traceId
1927
1928
  }), {
1928
1929
  F: __dxlog_file7,
1929
- L: 154,
1930
+ L: 156,
1930
1931
  S: this,
1931
1932
  C: (f, a) => f(...a)
1932
1933
  });
@@ -1936,7 +1937,7 @@ var InvitationsHandler = class {
1936
1937
  ...protocol.toJSON()
1937
1938
  }, {
1938
1939
  F: __dxlog_file7,
1939
- L: 157,
1940
+ L: 159,
1940
1941
  S: this,
1941
1942
  C: (f, a) => f(...a)
1942
1943
  });
@@ -1947,7 +1948,7 @@ var InvitationsHandler = class {
1947
1948
  } else {
1948
1949
  import_log4.log.error("failed", err, {
1949
1950
  F: __dxlog_file7,
1950
- L: 160,
1951
+ L: 162,
1951
1952
  S: this,
1952
1953
  C: (f, a) => f(...a)
1953
1954
  });
@@ -1958,12 +1959,12 @@ var InvitationsHandler = class {
1958
1959
  error: err
1959
1960
  }), {
1960
1961
  F: __dxlog_file7,
1961
- L: 163,
1962
+ L: 165,
1962
1963
  S: this,
1963
1964
  C: (f, a) => f(...a)
1964
1965
  });
1965
1966
  } finally {
1966
- if (type !== import_services3.Invitation.Type.MULTIUSE) {
1967
+ if (!multiUse) {
1967
1968
  await swarmConnection.close();
1968
1969
  await ctx.dispose();
1969
1970
  }
@@ -1979,7 +1980,7 @@ var InvitationsHandler = class {
1979
1980
  ...protocol.toJSON()
1980
1981
  }, {
1981
1982
  F: __dxlog_file7,
1982
- L: 178,
1983
+ L: 180,
1983
1984
  S: this,
1984
1985
  C: (f, a) => f(...a)
1985
1986
  });
@@ -1990,7 +1991,7 @@ var InvitationsHandler = class {
1990
1991
  } else {
1991
1992
  import_log4.log.error("failed", err, {
1992
1993
  F: __dxlog_file7,
1993
- L: 181,
1994
+ L: 183,
1994
1995
  S: this,
1995
1996
  C: (f, a) => f(...a)
1996
1997
  });
@@ -2004,7 +2005,7 @@ var InvitationsHandler = class {
2004
2005
  if (invitation.created.getTime() + invitation.lifetime * 1e3 < Date.now()) {
2005
2006
  import_log4.log.warn("invitation has already expired", void 0, {
2006
2007
  F: __dxlog_file7,
2007
- L: 192,
2008
+ L: 194,
2008
2009
  S: this,
2009
2010
  C: (f, a) => f(...a)
2010
2011
  });
@@ -2055,7 +2056,7 @@ var InvitationsHandler = class {
2055
2056
  const { timeout = import_client_protocol2.INVITATION_TIMEOUT } = invitation;
2056
2057
  (0, import_invariant5.invariant)(protocol, void 0, {
2057
2058
  F: __dxlog_file7,
2058
- L: 246,
2059
+ L: 248,
2059
2060
  S: this,
2060
2061
  A: [
2061
2062
  "protocol",
@@ -2065,7 +2066,7 @@ var InvitationsHandler = class {
2065
2066
  if (deviceProfile) {
2066
2067
  (0, import_invariant5.invariant)(invitation.kind === import_services3.Invitation.Kind.DEVICE, "deviceProfile provided for non-device invitation", {
2067
2068
  F: __dxlog_file7,
2068
- L: 250,
2069
+ L: 252,
2069
2070
  S: this,
2070
2071
  A: [
2071
2072
  "invitation.kind === Invitation.Kind.DEVICE",
@@ -2080,7 +2081,7 @@ var InvitationsHandler = class {
2080
2081
  const setState = (newData) => {
2081
2082
  (0, import_invariant5.invariant)(newData.state !== void 0, void 0, {
2082
2083
  F: __dxlog_file7,
2083
- L: 261,
2084
+ L: 263,
2084
2085
  S: this,
2085
2086
  A: [
2086
2087
  "newData.state !== undefined",
@@ -2100,7 +2101,7 @@ var InvitationsHandler = class {
2100
2101
  ...protocol.toJSON()
2101
2102
  }, {
2102
2103
  F: __dxlog_file7,
2103
- L: 269,
2104
+ L: 271,
2104
2105
  S: this,
2105
2106
  C: (f, a) => f(...a)
2106
2107
  });
@@ -2110,7 +2111,7 @@ var InvitationsHandler = class {
2110
2111
  } else {
2111
2112
  import_log4.log.warn("auth failed", err, {
2112
2113
  F: __dxlog_file7,
2113
- L: 272,
2114
+ L: 274,
2114
2115
  S: this,
2115
2116
  C: (f, a) => f(...a)
2116
2117
  });
@@ -2124,7 +2125,7 @@ var InvitationsHandler = class {
2124
2125
  ...protocol.toJSON()
2125
2126
  }, {
2126
2127
  F: __dxlog_file7,
2127
- L: 280,
2128
+ L: 282,
2128
2129
  S: this,
2129
2130
  C: (f, a) => f(...a)
2130
2131
  });
@@ -2139,7 +2140,7 @@ var InvitationsHandler = class {
2139
2140
  currentState
2140
2141
  }, {
2141
2142
  F: __dxlog_file7,
2142
- L: 290,
2143
+ L: 292,
2143
2144
  S: this,
2144
2145
  C: (f, a) => f(...a)
2145
2146
  });
@@ -2154,7 +2155,7 @@ var InvitationsHandler = class {
2154
2155
  id: traceId
2155
2156
  }), {
2156
2157
  F: __dxlog_file7,
2157
- L: 299,
2158
+ L: 301,
2158
2159
  S: this,
2159
2160
  C: (f, a) => f(...a)
2160
2161
  });
@@ -2166,7 +2167,7 @@ var InvitationsHandler = class {
2166
2167
  ...protocol.toJSON()
2167
2168
  }, {
2168
2169
  F: __dxlog_file7,
2169
- L: 307,
2170
+ L: 309,
2170
2171
  S: this,
2171
2172
  C: (f, a) => f(...a)
2172
2173
  });
@@ -2177,7 +2178,7 @@ var InvitationsHandler = class {
2177
2178
  ...protocol.toJSON()
2178
2179
  }, {
2179
2180
  F: __dxlog_file7,
2180
- L: 311,
2181
+ L: 313,
2181
2182
  S: this,
2182
2183
  C: (f, a) => f(...a)
2183
2184
  });
@@ -2187,7 +2188,7 @@ var InvitationsHandler = class {
2187
2188
  response: introductionResponse
2188
2189
  }, {
2189
2190
  F: __dxlog_file7,
2190
- L: 315,
2191
+ L: 317,
2191
2192
  S: this,
2192
2193
  C: (f, a) => f(...a)
2193
2194
  });
@@ -2196,7 +2197,7 @@ var InvitationsHandler = class {
2196
2197
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
2197
2198
  (0, import_log4.log)("guest waiting for authentication code...", void 0, {
2198
2199
  F: __dxlog_file7,
2199
- L: 321,
2200
+ L: 323,
2200
2201
  S: this,
2201
2202
  C: (f, a) => f(...a)
2202
2203
  });
@@ -2208,7 +2209,7 @@ var InvitationsHandler = class {
2208
2209
  });
2209
2210
  (0, import_log4.log)("sending authentication request", void 0, {
2210
2211
  F: __dxlog_file7,
2211
- L: 325,
2212
+ L: 327,
2212
2213
  S: this,
2213
2214
  C: (f, a) => f(...a)
2214
2215
  });
@@ -2229,7 +2230,7 @@ var InvitationsHandler = class {
2229
2230
  attempt
2230
2231
  }, {
2231
2232
  F: __dxlog_file7,
2232
- L: 336,
2233
+ L: 338,
2233
2234
  S: this,
2234
2235
  C: (f, a) => f(...a)
2235
2236
  });
@@ -2242,7 +2243,7 @@ var InvitationsHandler = class {
2242
2243
  ...protocol.toJSON()
2243
2244
  }, {
2244
2245
  F: __dxlog_file7,
2245
- L: 344,
2246
+ L: 346,
2246
2247
  S: this,
2247
2248
  C: (f, a) => f(...a)
2248
2249
  });
@@ -2254,7 +2255,7 @@ var InvitationsHandler = class {
2254
2255
  ...protocol.toJSON()
2255
2256
  }, {
2256
2257
  F: __dxlog_file7,
2257
- L: 355,
2258
+ L: 357,
2258
2259
  S: this,
2259
2260
  C: (f, a) => f(...a)
2260
2261
  });
@@ -2267,7 +2268,7 @@ var InvitationsHandler = class {
2267
2268
  id: traceId
2268
2269
  }), {
2269
2270
  F: __dxlog_file7,
2270
- L: 357,
2271
+ L: 359,
2271
2272
  S: this,
2272
2273
  C: (f, a) => f(...a)
2273
2274
  });
@@ -2277,7 +2278,7 @@ var InvitationsHandler = class {
2277
2278
  ...protocol.toJSON()
2278
2279
  }, {
2279
2280
  F: __dxlog_file7,
2280
- L: 360,
2281
+ L: 362,
2281
2282
  S: this,
2282
2283
  C: (f, a) => f(...a)
2283
2284
  });
@@ -2287,7 +2288,7 @@ var InvitationsHandler = class {
2287
2288
  } else {
2288
2289
  (0, import_log4.log)("auth failed", err, {
2289
2290
  F: __dxlog_file7,
2290
- L: 363,
2291
+ L: 365,
2291
2292
  S: this,
2292
2293
  C: (f, a) => f(...a)
2293
2294
  });
@@ -2298,7 +2299,7 @@ var InvitationsHandler = class {
2298
2299
  error: err
2299
2300
  }), {
2300
2301
  F: __dxlog_file7,
2301
- L: 366,
2302
+ L: 368,
2302
2303
  S: this,
2303
2304
  C: (f, a) => f(...a)
2304
2305
  });
@@ -2316,7 +2317,7 @@ var InvitationsHandler = class {
2316
2317
  ...protocol.toJSON()
2317
2318
  }, {
2318
2319
  F: __dxlog_file7,
2319
- L: 377,
2320
+ L: 379,
2320
2321
  S: this,
2321
2322
  C: (f, a) => f(...a)
2322
2323
  });
@@ -2326,7 +2327,7 @@ var InvitationsHandler = class {
2326
2327
  } else {
2327
2328
  (0, import_log4.log)("auth failed", err, {
2328
2329
  F: __dxlog_file7,
2329
- L: 380,
2330
+ L: 382,
2330
2331
  S: this,
2331
2332
  C: (f, a) => f(...a)
2332
2333
  });
@@ -2343,7 +2344,7 @@ var InvitationsHandler = class {
2343
2344
  } else {
2344
2345
  (0, import_invariant5.invariant)(invitation.swarmKey, void 0, {
2345
2346
  F: __dxlog_file7,
2346
- L: 394,
2347
+ L: 396,
2347
2348
  S: this,
2348
2349
  A: [
2349
2350
  "invitation.swarmKey",
@@ -2382,9 +2383,6 @@ var InvitationsHandler = class {
2382
2383
  return observable;
2383
2384
  }
2384
2385
  };
2385
- var invitationExpired = (invitation) => {
2386
- return invitation.created && invitation.lifetime && invitation.lifetime !== 0 && invitation.created.getTime() + invitation.lifetime * 1e3 < Date.now();
2387
- };
2388
2386
  var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-service.ts";
2389
2387
  var InvitationsServiceImpl = class {
2390
2388
  constructor(_invitationsHandler, _getHandler, _metadataStore) {
@@ -2440,7 +2438,7 @@ var InvitationsServiceImpl = class {
2440
2438
  await this._metadataStore.removeInvitation(invitation.get().invitationId);
2441
2439
  }
2442
2440
  this._createInvitations.delete(invitation.get().invitationId);
2443
- if (invitation.get().type !== import_services5.Invitation.Type.MULTIUSE) {
2441
+ if (!invitation.get().multiUse) {
2444
2442
  this._removedCreated.emit(invitation.get());
2445
2443
  }
2446
2444
  });
@@ -2448,7 +2446,7 @@ var InvitationsServiceImpl = class {
2448
2446
  }
2449
2447
  async loadPersistentInvitations() {
2450
2448
  const persistentInvitations = this._metadataStore.getInvitations();
2451
- const freshInvitations = persistentInvitations.filter(async (invitation) => !invitationExpired(invitation));
2449
+ const freshInvitations = persistentInvitations.filter(async (invitation) => !(0, import_echo_pipeline.hasInvitationExpired)(invitation));
2452
2450
  const cInvitations = freshInvitations.map((persistentInvitation) => {
2453
2451
  (0, import_invariant7.invariant)(!this._createInvitations.get(persistentInvitation.invitationId), "invitation already exists", {
2454
2452
  F: __dxlog_file8,
@@ -2501,7 +2499,7 @@ var InvitationsServiceImpl = class {
2501
2499
  }, () => {
2502
2500
  close();
2503
2501
  this._acceptInvitations.delete(invitation.get().invitationId);
2504
- if (invitation.get().type !== import_services5.Invitation.Type.MULTIUSE) {
2502
+ if (!invitation.get().multiUse) {
2505
2503
  this._removedAccepted.emit(invitation.get());
2506
2504
  }
2507
2505
  });
@@ -3387,7 +3385,7 @@ var DataSpace = class {
3387
3385
  });
3388
3386
  this.stateUpdate.emit();
3389
3387
  if (!this.notarizationPlugin.hasWriter) {
3390
- this.notarizationPlugin.setWriter((0, import_echo_pipeline.createMappedFeedWriter)((credential) => ({
3388
+ this.notarizationPlugin.setWriter((0, import_echo_pipeline2.createMappedFeedWriter)((credential) => ({
3391
3389
  credential: {
3392
3390
  credential
3393
3391
  }
@@ -3585,7 +3583,7 @@ var DataSpace = class {
3585
3583
  ""
3586
3584
  ]
3587
3585
  });
3588
- const docLoader = new import_echo_pipeline2.AutomergeDocumentLoaderImpl(this.key, this._automergeHost.repo);
3586
+ const docLoader = new import_echo_pipeline3.AutomergeDocumentLoaderImpl(this.key, this._automergeHost.repo);
3589
3587
  await docLoader.loadSpaceRootDocHandle(this._ctx, {
3590
3588
  rootUrl: newRoot.url
3591
3589
  });
@@ -4407,8 +4405,8 @@ var ServiceContext = class extends import_context10.Resource {
4407
4405
  this.initialized = new import_async15.Trigger();
4408
4406
  this._handlerFactories = /* @__PURE__ */ new Map();
4409
4407
  this._instanceId = import_keys10.PublicKey.random().toHex();
4410
- this.metadataStore = new import_echo_pipeline3.MetadataStore(storage.createDirectory("metadata"));
4411
- this.snapshotStore = new import_echo_pipeline3.SnapshotStore(storage.createDirectory("snapshots"));
4408
+ this.metadataStore = new import_echo_pipeline4.MetadataStore(storage.createDirectory("metadata"));
4409
+ this.snapshotStore = new import_echo_pipeline4.SnapshotStore(storage.createDirectory("snapshots"));
4412
4410
  this.blobStore = new import_teleport_extension_object_sync.BlobStore(storage.createDirectory("blobs"));
4413
4411
  this.keyring = new import_keyring.Keyring(storage.createDirectory("keyring"));
4414
4412
  this.feedStore = new import_feed_store4.FeedStore({
@@ -4416,12 +4414,12 @@ var ServiceContext = class extends import_context10.Resource {
4416
4414
  root: storage.createDirectory("feeds"),
4417
4415
  signer: this.keyring,
4418
4416
  hypercore: {
4419
- valueEncoding: import_echo_pipeline3.valueEncoding,
4417
+ valueEncoding: import_echo_pipeline4.valueEncoding,
4420
4418
  stats: true
4421
4419
  }
4422
4420
  })
4423
4421
  });
4424
- this.spaceManager = new import_echo_pipeline3.SpaceManager({
4422
+ this.spaceManager = new import_echo_pipeline4.SpaceManager({
4425
4423
  feedStore: this.feedStore,
4426
4424
  networkManager: this.networkManager,
4427
4425
  blobStore: this.blobStore,
@@ -4432,7 +4430,7 @@ var ServiceContext = class extends import_context10.Resource {
4432
4430
  this.indexMetadata = new import_indexing.IndexMetadataStore({
4433
4431
  db: level.sublevel("index-metadata")
4434
4432
  });
4435
- this.automergeHost = new import_echo_pipeline3.AutomergeHost({
4433
+ this.automergeHost = new import_echo_pipeline4.AutomergeHost({
4436
4434
  directory: storage.createDirectory("automerge"),
4437
4435
  db: level.sublevel("automerge"),
4438
4436
  metadata: this.indexMetadata
@@ -4677,7 +4675,7 @@ var ServiceRegistry = class {
4677
4675
  delete this._handlers[name];
4678
4676
  }
4679
4677
  };
4680
- var DXOS_VERSION = "0.4.10-main.3c620fb";
4678
+ var DXOS_VERSION = "0.4.10-main.3e35a2f";
4681
4679
  var getPlatform = () => {
4682
4680
  if (process.browser) {
4683
4681
  if (typeof window !== "undefined") {
@@ -5445,7 +5443,7 @@ var ClientServicesHost = class {
5445
5443
  await this._serviceContext.initialized.wait();
5446
5444
  return this._serviceContext.dataSpaceManager;
5447
5445
  }),
5448
- DataService: new import_echo_pipeline4.DataServiceImpl(this._serviceContext.automergeHost),
5446
+ DataService: new import_echo_pipeline5.DataServiceImpl(this._serviceContext.automergeHost),
5449
5447
  IndexService: new import_indexing2.IndexServiceImpl({
5450
5448
  indexer: this._serviceContext.indexer,
5451
5449
  automergeHost: this._serviceContext.automergeHost
@@ -5595,7 +5593,7 @@ var ClientServicesHost = class {
5595
5593
  await document.whenReady();
5596
5594
  const properties = {
5597
5595
  system: {
5598
- type: (0, import_echo_pipeline4.encodeReference)(E.getTypeReference(import_client_protocol4.Properties))
5596
+ type: (0, import_echo_pipeline5.encodeReference)(E.getTypeReference(import_client_protocol4.Properties))
5599
5597
  },
5600
5598
  data: {
5601
5599
  [import_client_protocol4.defaultKey]: identity.identityKey.toHex()
@@ -5693,7 +5691,6 @@ var findConfigs = () => {
5693
5691
  createLevel,
5694
5692
  createStorageObjects,
5695
5693
  getNetworkPeers,
5696
- invitationExpired,
5697
5694
  isLocked,
5698
5695
  subscribeToFeedBlocks,
5699
5696
  subscribeToFeeds,
@@ -5703,4 +5700,4 @@ var findConfigs = () => {
5703
5700
  subscribeToSpaces,
5704
5701
  subscribeToSwarmInfo
5705
5702
  });
5706
- //# sourceMappingURL=chunk-OSCHFTM3.cjs.map
5703
+ //# sourceMappingURL=chunk-3T6D6GIB.cjs.map