@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.
- package/dist/lib/browser/{chunk-LZ5JMQR7.mjs → chunk-IKRWWDKO.mjs} +28 -8
- package/dist/lib/browser/chunk-IKRWWDKO.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-JXUVAXX5.mjs → chunk-KOW3T4PF.mjs} +28 -8
- package/dist/lib/node-esm/chunk-KOW3T4PF.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +1 -1
- package/dist/types/src/packlets/agents/edge-agent-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -39
- package/src/packlets/agents/edge-agent-service.ts +11 -1
- package/src/packlets/devices/devices-service.ts +1 -1
- package/src/packlets/identity/identity.test.ts +4 -4
- package/src/packlets/services/service-host.ts +6 -0
- package/src/packlets/spaces/data-space-manager.ts +1 -1
- package/src/packlets/spaces/edge-feed-replicator.test.ts +1 -1
- package/src/packlets/spaces/edge-feed-replicator.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-LZ5JMQR7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JXUVAXX5.mjs.map +0 -7
|
@@ -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.
|
|
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";
|
|
@@ -985,7 +985,7 @@ var EdgeFeedReplicator = class extends Resource {
|
|
|
985
985
|
}
|
|
986
986
|
async _handleReconnect() {
|
|
987
987
|
await this._resetConnection();
|
|
988
|
-
if (this._messenger.status === EdgeStatus.CONNECTED) {
|
|
988
|
+
if (this._messenger.status.state === EdgeStatus.ConnectionState.CONNECTED) {
|
|
989
989
|
this._startReplication();
|
|
990
990
|
}
|
|
991
991
|
}
|
|
@@ -1397,9 +1397,9 @@ import { Event as Event2, synchronized, trackLeaks } from "@dxos/async";
|
|
|
1397
1397
|
import { PropertiesType, TYPE_PROPERTIES } from "@dxos/client-protocol";
|
|
1398
1398
|
import { Context as Context4, LifecycleState, Resource as Resource2, cancelWithContext } from "@dxos/context";
|
|
1399
1399
|
import { createAdmissionCredentials, getCredentialAssertion } from "@dxos/credentials";
|
|
1400
|
+
import { ObjectId, getTypeReference } from "@dxos/echo/internal";
|
|
1400
1401
|
import { AuthStatus, CredentialServerExtension, DatabaseRoot, FIND_PARAMS, findInlineObjectOfType } from "@dxos/echo-pipeline";
|
|
1401
1402
|
import { SpaceDocVersion, createIdFromSpaceKey, encodeReference } from "@dxos/echo-protocol";
|
|
1402
|
-
import { ObjectId, getTypeReference } from "@dxos/echo-schema";
|
|
1403
1403
|
import { writeMessages } from "@dxos/feed-store";
|
|
1404
1404
|
import { assertArgument, assertState, failedInvariant, invariant as invariant3 } from "@dxos/invariant";
|
|
1405
1405
|
import { PublicKey as PublicKey4 } from "@dxos/keys";
|
|
@@ -8062,7 +8062,15 @@ var EdgeAgentServiceImpl = class {
|
|
|
8062
8062
|
return new Stream11(({ ctx, next }) => {
|
|
8063
8063
|
const update = () => {
|
|
8064
8064
|
next({
|
|
8065
|
-
status: this._edgeConnection?.status ??
|
|
8065
|
+
status: this._edgeConnection?.status ?? {
|
|
8066
|
+
state: EdgeStatus2.ConnectionState.NOT_CONNECTED,
|
|
8067
|
+
rtt: 0,
|
|
8068
|
+
uptime: 0,
|
|
8069
|
+
rateBytesUp: 0,
|
|
8070
|
+
rateBytesDown: 0,
|
|
8071
|
+
messagesSent: 0,
|
|
8072
|
+
messagesReceived: 0
|
|
8073
|
+
}
|
|
8066
8074
|
});
|
|
8067
8075
|
};
|
|
8068
8076
|
this._edgeConnection?.statusChanged.on(ctx, update);
|
|
@@ -9153,7 +9161,7 @@ var DevicesServiceImpl = class {
|
|
|
9153
9161
|
if (isMe) {
|
|
9154
9162
|
presence = Device2.PresenceState.ONLINE;
|
|
9155
9163
|
} else if (profile.os?.toUpperCase() === "EDGE") {
|
|
9156
|
-
presence = this._edgeConnection?.status === EdgeStatus3.CONNECTED ? Device2.PresenceState.ONLINE : Device2.PresenceState.OFFLINE;
|
|
9164
|
+
presence = this._edgeConnection?.status.state === EdgeStatus3.ConnectionState.CONNECTED ? Device2.PresenceState.ONLINE : Device2.PresenceState.OFFLINE;
|
|
9157
9165
|
} else {
|
|
9158
9166
|
presence = peers.some((peer) => peer.identityKey.equals(key)) ? Device2.PresenceState.ONLINE : Device2.PresenceState.OFFLINE;
|
|
9159
9167
|
}
|
|
@@ -9894,10 +9902,22 @@ var ClientServicesHost = class {
|
|
|
9894
9902
|
this._resetting = true;
|
|
9895
9903
|
this._statusUpdate.emit();
|
|
9896
9904
|
await this._serviceContext?.close();
|
|
9905
|
+
try {
|
|
9906
|
+
await this._level.clear();
|
|
9907
|
+
} catch (err) {
|
|
9908
|
+
log28.warn("failed to clear leveldb during reset", {
|
|
9909
|
+
err
|
|
9910
|
+
}, {
|
|
9911
|
+
F: __dxlog_file32,
|
|
9912
|
+
L: 415,
|
|
9913
|
+
S: this,
|
|
9914
|
+
C: (f, a) => f(...a)
|
|
9915
|
+
});
|
|
9916
|
+
}
|
|
9897
9917
|
await this._storage.reset();
|
|
9898
9918
|
log28.info("reset", void 0, {
|
|
9899
9919
|
F: __dxlog_file32,
|
|
9900
|
-
L:
|
|
9920
|
+
L: 418,
|
|
9901
9921
|
S: this,
|
|
9902
9922
|
C: (f, a) => f(...a)
|
|
9903
9923
|
});
|
|
@@ -9905,7 +9925,7 @@ var ClientServicesHost = class {
|
|
|
9905
9925
|
id: traceId
|
|
9906
9926
|
}), {
|
|
9907
9927
|
F: __dxlog_file32,
|
|
9908
|
-
L:
|
|
9928
|
+
L: 419,
|
|
9909
9929
|
S: this,
|
|
9910
9930
|
C: (f, a) => f(...a)
|
|
9911
9931
|
});
|
|
@@ -10071,4 +10091,4 @@ export {
|
|
|
10071
10091
|
ServiceRegistry,
|
|
10072
10092
|
ClientServicesHost
|
|
10073
10093
|
};
|
|
10074
|
-
//# sourceMappingURL=chunk-
|
|
10094
|
+
//# sourceMappingURL=chunk-IKRWWDKO.mjs.map
|