@dxos/client-services 0.8.4-main.dedc0f3 → 0.8.4-main.ead640a

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.
@@ -6,7 +6,7 @@ import {
6
6
  InvitationsManager,
7
7
  ServiceContext,
8
8
  SpaceInvitationProtocol
9
- } from "../chunk-LZ5JMQR7.mjs";
9
+ } from "../chunk-IKRWWDKO.mjs";
10
10
 
11
11
  // src/packlets/testing/credential-utils.ts
12
12
  import { createCredential } from "@dxos/credentials";
@@ -411,7 +411,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
411
411
  import { TRACE_PROCESSOR } from "@dxos/tracing";
412
412
 
413
413
  // src/version.ts
414
- var DXOS_VERSION = "0.8.4-main.dedc0f3";
414
+ var DXOS_VERSION = "0.8.4-main.ead640a";
415
415
 
416
416
  // src/packlets/services/platform.ts
417
417
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -914,7 +914,7 @@ var EdgeFeedReplicator = class extends Resource {
914
914
  }
915
915
  async _handleReconnect() {
916
916
  await this._resetConnection();
917
- if (this._messenger.status === EdgeStatus.CONNECTED) {
917
+ if (this._messenger.status.state === EdgeStatus.ConnectionState.CONNECTED) {
918
918
  this._startReplication();
919
919
  }
920
920
  }
@@ -1326,9 +1326,9 @@ import { Event as Event2, synchronized, trackLeaks } from "@dxos/async";
1326
1326
  import { PropertiesType, TYPE_PROPERTIES } from "@dxos/client-protocol";
1327
1327
  import { Context as Context4, LifecycleState, Resource as Resource2, cancelWithContext } from "@dxos/context";
1328
1328
  import { createAdmissionCredentials, getCredentialAssertion } from "@dxos/credentials";
1329
+ import { ObjectId, getTypeReference } from "@dxos/echo/internal";
1329
1330
  import { AuthStatus, CredentialServerExtension, DatabaseRoot, FIND_PARAMS, findInlineObjectOfType } from "@dxos/echo-pipeline";
1330
1331
  import { SpaceDocVersion, createIdFromSpaceKey, encodeReference } from "@dxos/echo-protocol";
1331
- import { ObjectId, getTypeReference } from "@dxos/echo-schema";
1332
1332
  import { writeMessages } from "@dxos/feed-store";
1333
1333
  import { assertArgument, assertState, failedInvariant, invariant as invariant3 } from "@dxos/invariant";
1334
1334
  import { PublicKey as PublicKey4 } from "@dxos/keys";
@@ -7931,7 +7931,15 @@ var EdgeAgentServiceImpl = class {
7931
7931
  return new Stream11(({ ctx, next }) => {
7932
7932
  const update = () => {
7933
7933
  next({
7934
- status: this._edgeConnection?.status ?? EdgeStatus2.NOT_CONNECTED
7934
+ status: this._edgeConnection?.status ?? {
7935
+ state: EdgeStatus2.ConnectionState.NOT_CONNECTED,
7936
+ rtt: 0,
7937
+ uptime: 0,
7938
+ rateBytesUp: 0,
7939
+ rateBytesDown: 0,
7940
+ messagesSent: 0,
7941
+ messagesReceived: 0
7942
+ }
7935
7943
  });
7936
7944
  };
7937
7945
  this._edgeConnection?.statusChanged.on(ctx, update);
@@ -9022,7 +9030,7 @@ var DevicesServiceImpl = class {
9022
9030
  if (isMe) {
9023
9031
  presence = Device2.PresenceState.ONLINE;
9024
9032
  } else if (profile.os?.toUpperCase() === "EDGE") {
9025
- presence = this._edgeConnection?.status === EdgeStatus3.CONNECTED ? Device2.PresenceState.ONLINE : Device2.PresenceState.OFFLINE;
9033
+ presence = this._edgeConnection?.status.state === EdgeStatus3.ConnectionState.CONNECTED ? Device2.PresenceState.ONLINE : Device2.PresenceState.OFFLINE;
9026
9034
  } else {
9027
9035
  presence = peers.some((peer) => peer.identityKey.equals(key)) ? Device2.PresenceState.ONLINE : Device2.PresenceState.OFFLINE;
9028
9036
  }
@@ -9763,10 +9771,22 @@ var ClientServicesHost = class {
9763
9771
  this._resetting = true;
9764
9772
  this._statusUpdate.emit();
9765
9773
  await this._serviceContext?.close();
9774
+ try {
9775
+ await this._level.clear();
9776
+ } catch (err) {
9777
+ log27.warn("failed to clear leveldb during reset", {
9778
+ err
9779
+ }, {
9780
+ F: __dxlog_file31,
9781
+ L: 415,
9782
+ S: this,
9783
+ C: (f, a) => f(...a)
9784
+ });
9785
+ }
9766
9786
  await this._storage.reset();
9767
9787
  log27.info("reset", void 0, {
9768
9788
  F: __dxlog_file31,
9769
- L: 412,
9789
+ L: 418,
9770
9790
  S: this,
9771
9791
  C: (f, a) => f(...a)
9772
9792
  });
@@ -9774,7 +9794,7 @@ var ClientServicesHost = class {
9774
9794
  id: traceId
9775
9795
  }), {
9776
9796
  F: __dxlog_file31,
9777
- L: 413,
9797
+ L: 419,
9778
9798
  S: this,
9779
9799
  C: (f, a) => f(...a)
9780
9800
  });
@@ -9940,4 +9960,4 @@ export {
9940
9960
  ServiceRegistry,
9941
9961
  ClientServicesHost
9942
9962
  };
9943
- //# sourceMappingURL=chunk-JXUVAXX5.mjs.map
9963
+ //# sourceMappingURL=chunk-KOW3T4PF.mjs.map