@dxos/client-services 0.7.5-labs.f5080a1 → 0.7.5-labs.ff2ff30
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-DBNNIIDX.mjs → chunk-AMSHD6GR.mjs} +24 -12
- package/dist/lib/browser/chunk-AMSHD6GR.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/{chunk-ILDTBTLD.cjs → chunk-UQAKITCH.cjs} +27 -15
- package/dist/lib/node/chunk-UQAKITCH.cjs.map +7 -0
- package/dist/lib/node/index.cjs +47 -47
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +8 -8
- package/dist/lib/node-esm/{chunk-3MCQQTE7.mjs → chunk-V6DIXWIU.mjs} +24 -12
- package/dist/lib/node-esm/chunk-V6DIXWIU.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-manager.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +38 -38
- package/src/packlets/agents/edge-agent-manager.ts +6 -0
- package/src/packlets/spaces/data-space-manager.ts +2 -2
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-DBNNIIDX.mjs.map +0 -7
- package/dist/lib/node/chunk-ILDTBTLD.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-3MCQQTE7.mjs.map +0 -7
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
InvitationsManager,
|
|
7
7
|
ServiceContext,
|
|
8
8
|
SpaceInvitationProtocol
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-AMSHD6GR.mjs";
|
|
10
10
|
|
|
11
11
|
// packages/sdk/client-services/src/packlets/testing/credential-utils.ts
|
|
12
12
|
import { createCredential } from "@dxos/credentials";
|
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_UQAKITCH_exports = {};
|
|
30
|
+
__export(chunk_UQAKITCH_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
DataSpace: () => DataSpace,
|
|
@@ -72,7 +72,7 @@ __export(chunk_ILDTBTLD_exports, {
|
|
|
72
72
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
73
73
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
74
74
|
});
|
|
75
|
-
module.exports = __toCommonJS(
|
|
75
|
+
module.exports = __toCommonJS(chunk_UQAKITCH_exports);
|
|
76
76
|
var import_async = require("@dxos/async");
|
|
77
77
|
var import_stream = require("@dxos/codec-protobuf/stream");
|
|
78
78
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -735,7 +735,7 @@ var DevtoolsServiceImpl = class {
|
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
|
-
var DXOS_VERSION = "0.7.5-labs.
|
|
738
|
+
var DXOS_VERSION = "0.7.5-labs.ff2ff30";
|
|
739
739
|
var getPlatform = () => {
|
|
740
740
|
if (process.browser) {
|
|
741
741
|
if (typeof window !== "undefined") {
|
|
@@ -2666,7 +2666,7 @@ var DataSpaceManager = class extends import_context7.Resource {
|
|
|
2666
2666
|
});
|
|
2667
2667
|
dataSpace.postOpen.append(async () => {
|
|
2668
2668
|
const setting = dataSpace.getEdgeReplicationSetting();
|
|
2669
|
-
if (setting === import_metadata.EdgeReplicationSetting.ENABLED) {
|
|
2669
|
+
if (!setting || setting === import_metadata.EdgeReplicationSetting.ENABLED) {
|
|
2670
2670
|
await this._echoEdgeReplicator?.connectToSpace(dataSpace.id);
|
|
2671
2671
|
} else if (this._echoEdgeReplicator) {
|
|
2672
2672
|
(0, import_log8.log)("not connecting EchoEdgeReplicator because of EdgeReplicationSetting", {
|
|
@@ -2681,7 +2681,7 @@ var DataSpaceManager = class extends import_context7.Resource {
|
|
|
2681
2681
|
});
|
|
2682
2682
|
dataSpace.preClose.append(async () => {
|
|
2683
2683
|
const setting = dataSpace.getEdgeReplicationSetting();
|
|
2684
|
-
if (setting === import_metadata.EdgeReplicationSetting.ENABLED) {
|
|
2684
|
+
if (!setting || setting === import_metadata.EdgeReplicationSetting.ENABLED) {
|
|
2685
2685
|
await this._echoEdgeReplicator?.disconnectFromSpace(dataSpace.id);
|
|
2686
2686
|
}
|
|
2687
2687
|
});
|
|
@@ -7062,6 +7062,18 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7062
7062
|
haloSpaceKey: this._identity.haloSpaceKey.toHex()
|
|
7063
7063
|
});
|
|
7064
7064
|
const deviceKey = import_keys15.PublicKey.fromHex(response.deviceKey);
|
|
7065
|
+
if (await this._identity.authorizedDeviceKeys.has(deviceKey)) {
|
|
7066
|
+
import_log21.log.info("agent was already added to HALO, ignoring response", {
|
|
7067
|
+
response
|
|
7068
|
+
}, {
|
|
7069
|
+
F: __dxlog_file25,
|
|
7070
|
+
L: 67,
|
|
7071
|
+
S: this,
|
|
7072
|
+
C: (f, a) => f(...a)
|
|
7073
|
+
});
|
|
7074
|
+
this._updateStatus(import_protocols14.EdgeAgentStatus.ACTIVE, deviceKey);
|
|
7075
|
+
return;
|
|
7076
|
+
}
|
|
7065
7077
|
await this._identity.admitDevice({
|
|
7066
7078
|
deviceKey,
|
|
7067
7079
|
controlFeedKey: import_keys15.PublicKey.fromHex(response.feedKey),
|
|
@@ -7070,7 +7082,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7070
7082
|
});
|
|
7071
7083
|
(0, import_log21.log)("agent created", response, {
|
|
7072
7084
|
F: __dxlog_file25,
|
|
7073
|
-
L:
|
|
7085
|
+
L: 79,
|
|
7074
7086
|
S: this,
|
|
7075
7087
|
C: (f, a) => f(...a)
|
|
7076
7088
|
});
|
|
@@ -7082,7 +7094,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7082
7094
|
isEnabled
|
|
7083
7095
|
}, {
|
|
7084
7096
|
F: __dxlog_file25,
|
|
7085
|
-
L:
|
|
7097
|
+
L: 87,
|
|
7086
7098
|
S: this,
|
|
7087
7099
|
C: (f, a) => f(...a)
|
|
7088
7100
|
});
|
|
@@ -7115,7 +7127,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7115
7127
|
async _fetchAgentStatus() {
|
|
7116
7128
|
(0, import_invariant20.invariant)(this._edgeHttpClient, void 0, {
|
|
7117
7129
|
F: __dxlog_file25,
|
|
7118
|
-
L:
|
|
7130
|
+
L: 121,
|
|
7119
7131
|
S: this,
|
|
7120
7132
|
A: [
|
|
7121
7133
|
"this._edgeHttpClient",
|
|
@@ -7125,7 +7137,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7125
7137
|
try {
|
|
7126
7138
|
(0, import_log21.log)("fetching agent status", void 0, {
|
|
7127
7139
|
F: __dxlog_file25,
|
|
7128
|
-
L:
|
|
7140
|
+
L: 123,
|
|
7129
7141
|
S: this,
|
|
7130
7142
|
C: (f, a) => f(...a)
|
|
7131
7143
|
});
|
|
@@ -7144,7 +7156,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7144
7156
|
err
|
|
7145
7157
|
}, {
|
|
7146
7158
|
F: __dxlog_file25,
|
|
7147
|
-
L:
|
|
7159
|
+
L: 133,
|
|
7148
7160
|
S: this,
|
|
7149
7161
|
C: (f, a) => f(...a)
|
|
7150
7162
|
});
|
|
@@ -7157,7 +7169,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7157
7169
|
retryAfterMs
|
|
7158
7170
|
}, {
|
|
7159
7171
|
F: __dxlog_file25,
|
|
7160
|
-
L:
|
|
7172
|
+
L: 138,
|
|
7161
7173
|
S: this,
|
|
7162
7174
|
C: (f, a) => f(...a)
|
|
7163
7175
|
});
|
|
@@ -7193,7 +7205,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7193
7205
|
spaceId: space.id
|
|
7194
7206
|
}, {
|
|
7195
7207
|
F: __dxlog_file25,
|
|
7196
|
-
L:
|
|
7208
|
+
L: 165,
|
|
7197
7209
|
S: this,
|
|
7198
7210
|
C: (f, a) => f(...a)
|
|
7199
7211
|
});
|
|
@@ -7213,7 +7225,7 @@ var EdgeAgentManager = class extends import_context15.Resource {
|
|
|
7213
7225
|
status
|
|
7214
7226
|
}, {
|
|
7215
7227
|
F: __dxlog_file25,
|
|
7216
|
-
L:
|
|
7228
|
+
L: 181,
|
|
7217
7229
|
S: this,
|
|
7218
7230
|
C: (f, a) => f(...a)
|
|
7219
7231
|
});
|
|
@@ -8962,4 +8974,4 @@ ClientServicesHost = _ts_decorate11([
|
|
|
8962
8974
|
subscribeToSpaces,
|
|
8963
8975
|
subscribeToSwarmInfo
|
|
8964
8976
|
});
|
|
8965
|
-
//# sourceMappingURL=chunk-
|
|
8977
|
+
//# sourceMappingURL=chunk-UQAKITCH.cjs.map
|