@dxos/client-services 0.5.9-main.e9bab55 → 0.5.9-main.eacfffa
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-WRJ7HR47.mjs → chunk-J4DDMC6A.mjs} +354 -289
- package/dist/lib/browser/chunk-J4DDMC6A.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -2
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +10 -3
- package/dist/lib/browser/packlets/testing/index.mjs.map +1 -1
- package/dist/lib/node/{chunk-UEJYNKZP.cjs → chunk-6HFQ2SQ5.cjs} +350 -285
- package/dist/lib/node/chunk-6HFQ2SQ5.cjs.map +7 -0
- package/dist/lib/node/index.cjs +45 -42
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +17 -10
- package/dist/lib/node/packlets/testing/index.cjs.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/invitations/invitations-handler.ts +13 -5
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-WRJ7HR47.mjs.map +0 -7
- package/dist/lib/node/chunk-UEJYNKZP.cjs.map +0 -7
|
@@ -85,6 +85,7 @@ var subscribeToFeedBlocks = ({ feedStore }, { feedKey, maxBlocks = 10 }) => {
|
|
|
85
85
|
import { Stream as Stream2 } from "@dxos/codec-protobuf";
|
|
86
86
|
import { Context } from "@dxos/context";
|
|
87
87
|
import { PublicKey as PublicKey2 } from "@dxos/keys";
|
|
88
|
+
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/network.ts";
|
|
88
89
|
var subscribeToNetworkStatus = ({ signalManager }) => new Stream2(({ next, close }) => {
|
|
89
90
|
const update = () => {
|
|
90
91
|
try {
|
|
@@ -100,7 +101,10 @@ var subscribeToNetworkStatus = ({ signalManager }) => new Stream2(({ next, close
|
|
|
100
101
|
update();
|
|
101
102
|
});
|
|
102
103
|
var subscribeToSignal = ({ signalManager }) => new Stream2(({ next }) => {
|
|
103
|
-
const ctx = new Context(
|
|
104
|
+
const ctx = new Context(void 0, {
|
|
105
|
+
F: __dxlog_file,
|
|
106
|
+
L: 36
|
|
107
|
+
});
|
|
104
108
|
signalManager.onMessage.on(ctx, (message) => {
|
|
105
109
|
next({
|
|
106
110
|
message: {
|
|
@@ -355,7 +359,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
|
355
359
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
356
360
|
|
|
357
361
|
// packages/sdk/client-services/src/version.ts
|
|
358
|
-
var DXOS_VERSION = "0.5.9-main.
|
|
362
|
+
var DXOS_VERSION = "0.5.9-main.eacfffa";
|
|
359
363
|
|
|
360
364
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
361
365
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -388,7 +392,7 @@ var getPlatform = () => {
|
|
|
388
392
|
};
|
|
389
393
|
|
|
390
394
|
// packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts
|
|
391
|
-
var
|
|
395
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
|
|
392
396
|
var DEFAULT_TIMEOUT = 1e3;
|
|
393
397
|
var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
394
398
|
const diagnostics = {
|
|
@@ -405,7 +409,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
|
405
409
|
await Promise.all([
|
|
406
410
|
(async () => {
|
|
407
411
|
invariant(clientServices.LoggingService, "SystemService is not available.", {
|
|
408
|
-
F:
|
|
412
|
+
F: __dxlog_file2,
|
|
409
413
|
L: 110,
|
|
410
414
|
S: void 0,
|
|
411
415
|
A: [
|
|
@@ -510,7 +514,7 @@ var getStorageDiagnostics = async () => {
|
|
|
510
514
|
// packages/sdk/client-services/src/packlets/diagnostics/browser-diagnostics-broadcast.ts
|
|
511
515
|
import { Trigger } from "@dxos/async";
|
|
512
516
|
import { log } from "@dxos/log";
|
|
513
|
-
var
|
|
517
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/browser-diagnostics-broadcast.ts";
|
|
514
518
|
var CHANNEL_NAME = "dxos.diagnostics.broadcast";
|
|
515
519
|
var MessageType;
|
|
516
520
|
(function(MessageType2) {
|
|
@@ -579,7 +583,7 @@ var createCollectDiagnosticsBroadcastHandler = (systemService) => {
|
|
|
579
583
|
}
|
|
580
584
|
} catch (error) {
|
|
581
585
|
log.catch(error, void 0, {
|
|
582
|
-
F:
|
|
586
|
+
F: __dxlog_file3,
|
|
583
587
|
L: 77,
|
|
584
588
|
S: void 0,
|
|
585
589
|
C: (f, a) => f(...a)
|
|
@@ -687,7 +691,7 @@ import { Context as Context2 } from "@dxos/context";
|
|
|
687
691
|
import { verifyCredential } from "@dxos/credentials";
|
|
688
692
|
import { log as log2 } from "@dxos/log";
|
|
689
693
|
import { schema } from "@dxos/protocols";
|
|
690
|
-
var
|
|
694
|
+
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
|
|
691
695
|
var Credential = schema.getCodecForType("dxos.halo.credentials.Credential");
|
|
692
696
|
var createAuthProvider = (signer) => async (nonce) => {
|
|
693
697
|
const credential = await signer.createCredential({
|
|
@@ -702,7 +706,10 @@ var createAuthProvider = (signer) => async (nonce) => {
|
|
|
702
706
|
var TrustedKeySetAuthVerifier = class {
|
|
703
707
|
constructor(_params) {
|
|
704
708
|
this._params = _params;
|
|
705
|
-
this._ctx = new Context2(
|
|
709
|
+
this._ctx = new Context2(void 0, {
|
|
710
|
+
F: __dxlog_file4,
|
|
711
|
+
L: 45
|
|
712
|
+
});
|
|
706
713
|
}
|
|
707
714
|
async close() {
|
|
708
715
|
await this._ctx.dispose();
|
|
@@ -713,7 +720,7 @@ var TrustedKeySetAuthVerifier = class {
|
|
|
713
720
|
log2("authenticating...", {
|
|
714
721
|
credential
|
|
715
722
|
}, {
|
|
716
|
-
F:
|
|
723
|
+
F: __dxlog_file4,
|
|
717
724
|
L: 56,
|
|
718
725
|
S: this,
|
|
719
726
|
C: (f, a) => f(...a)
|
|
@@ -723,7 +730,7 @@ var TrustedKeySetAuthVerifier = class {
|
|
|
723
730
|
log2("Invalid credential", {
|
|
724
731
|
result
|
|
725
732
|
}, {
|
|
726
|
-
F:
|
|
733
|
+
F: __dxlog_file4,
|
|
727
734
|
L: 60,
|
|
728
735
|
S: this,
|
|
729
736
|
C: (f, a) => f(...a)
|
|
@@ -735,7 +742,7 @@ var TrustedKeySetAuthVerifier = class {
|
|
|
735
742
|
nonce,
|
|
736
743
|
credential
|
|
737
744
|
}, {
|
|
738
|
-
F:
|
|
745
|
+
F: __dxlog_file4,
|
|
739
746
|
L: 65,
|
|
740
747
|
S: this,
|
|
741
748
|
C: (f, a) => f(...a)
|
|
@@ -746,7 +753,7 @@ var TrustedKeySetAuthVerifier = class {
|
|
|
746
753
|
log2("key is not currently in trusted set, waiting...", {
|
|
747
754
|
key: credential.issuer
|
|
748
755
|
}, {
|
|
749
|
-
F:
|
|
756
|
+
F: __dxlog_file4,
|
|
750
757
|
L: 70,
|
|
751
758
|
S: this,
|
|
752
759
|
C: (f, a) => f(...a)
|
|
@@ -762,7 +769,7 @@ var TrustedKeySetAuthVerifier = class {
|
|
|
762
769
|
log2("auth success", {
|
|
763
770
|
key: credential.issuer
|
|
764
771
|
}, {
|
|
765
|
-
F:
|
|
772
|
+
F: __dxlog_file4,
|
|
766
773
|
L: 81,
|
|
767
774
|
S: this,
|
|
768
775
|
C: (f, a) => f(...a)
|
|
@@ -772,7 +779,7 @@ var TrustedKeySetAuthVerifier = class {
|
|
|
772
779
|
log2("key is not currently in trusted set, waiting...", {
|
|
773
780
|
key: credential.issuer
|
|
774
781
|
}, {
|
|
775
|
-
F:
|
|
782
|
+
F: __dxlog_file4,
|
|
776
783
|
L: 84,
|
|
777
784
|
S: this,
|
|
778
785
|
C: (f, a) => f(...a)
|
|
@@ -813,7 +820,7 @@ import { ComplexSet } from "@dxos/util";
|
|
|
813
820
|
import { getCredentialAssertion } from "@dxos/credentials";
|
|
814
821
|
import { SpaceId } from "@dxos/keys";
|
|
815
822
|
import { log as log3 } from "@dxos/log";
|
|
816
|
-
var
|
|
823
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
|
|
817
824
|
var DefaultSpaceStateMachine = class {
|
|
818
825
|
constructor(_params) {
|
|
819
826
|
this._params = _params;
|
|
@@ -830,7 +837,7 @@ var DefaultSpaceStateMachine = class {
|
|
|
830
837
|
expectedIdentity: this._params.identityKey,
|
|
831
838
|
credential
|
|
832
839
|
}, {
|
|
833
|
-
F:
|
|
840
|
+
F: __dxlog_file5,
|
|
834
841
|
L: 32,
|
|
835
842
|
S: this,
|
|
836
843
|
C: (f, a) => f(...a)
|
|
@@ -841,7 +848,7 @@ var DefaultSpaceStateMachine = class {
|
|
|
841
848
|
log3.warn("Invalid default space id", {
|
|
842
849
|
id: assertion.spaceId
|
|
843
850
|
}, {
|
|
844
|
-
F:
|
|
851
|
+
F: __dxlog_file5,
|
|
845
852
|
L: 36,
|
|
846
853
|
S: this,
|
|
847
854
|
C: (f, a) => f(...a)
|
|
@@ -866,7 +873,7 @@ function _ts_decorate2(decorators, target, key, desc) {
|
|
|
866
873
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
867
874
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
868
875
|
}
|
|
869
|
-
var
|
|
876
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
|
|
870
877
|
var Identity = class {
|
|
871
878
|
constructor({ space, signer, identityKey, deviceKey, presence }) {
|
|
872
879
|
this.stateUpdate = new Event();
|
|
@@ -878,7 +885,7 @@ var Identity = class {
|
|
|
878
885
|
log4.trace("dxos.halo.device", {
|
|
879
886
|
deviceKey
|
|
880
887
|
}, {
|
|
881
|
-
F:
|
|
888
|
+
F: __dxlog_file6,
|
|
882
889
|
L: 70,
|
|
883
890
|
S: this,
|
|
884
891
|
C: (f, a) => f(...a)
|
|
@@ -957,7 +964,7 @@ var Identity = class {
|
|
|
957
964
|
*/
|
|
958
965
|
getIdentityCredentialSigner() {
|
|
959
966
|
invariant2(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
|
|
960
|
-
F:
|
|
967
|
+
F: __dxlog_file6,
|
|
961
968
|
L: 159,
|
|
962
969
|
S: this,
|
|
963
970
|
A: [
|
|
@@ -1001,7 +1008,7 @@ var Identity = class {
|
|
|
1001
1008
|
controlFeedKey,
|
|
1002
1009
|
dataFeedKey
|
|
1003
1010
|
}, {
|
|
1004
|
-
F:
|
|
1011
|
+
F: __dxlog_file6,
|
|
1005
1012
|
L: 184,
|
|
1006
1013
|
S: this,
|
|
1007
1014
|
C: (f, a) => f(...a)
|
|
@@ -1078,7 +1085,7 @@ function _ts_decorate3(decorators, target, key, desc) {
|
|
|
1078
1085
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1079
1086
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1080
1087
|
}
|
|
1081
|
-
var
|
|
1088
|
+
var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
|
|
1082
1089
|
var DEVICE_PRESENCE_ANNOUNCE_INTERVAL = 1e4;
|
|
1083
1090
|
var DEVICE_PRESENCE_OFFLINE_TIMEOUT = 2e4;
|
|
1084
1091
|
var IdentityManager = class {
|
|
@@ -1102,7 +1109,7 @@ var IdentityManager = class {
|
|
|
1102
1109
|
log5.trace("dxos.halo.identity-manager.open", trace3.begin({
|
|
1103
1110
|
id: traceId
|
|
1104
1111
|
}), {
|
|
1105
|
-
F:
|
|
1112
|
+
F: __dxlog_file7,
|
|
1106
1113
|
L: 104,
|
|
1107
1114
|
S: this,
|
|
1108
1115
|
C: (f, a) => f(...a)
|
|
@@ -1111,7 +1118,7 @@ var IdentityManager = class {
|
|
|
1111
1118
|
log5("identity record", {
|
|
1112
1119
|
identityRecord
|
|
1113
1120
|
}, {
|
|
1114
|
-
F:
|
|
1121
|
+
F: __dxlog_file7,
|
|
1115
1122
|
L: 107,
|
|
1116
1123
|
S: this,
|
|
1117
1124
|
C: (f, a) => f(...a)
|
|
@@ -1124,7 +1131,7 @@ var IdentityManager = class {
|
|
|
1124
1131
|
identityKey: identityRecord.identityKey,
|
|
1125
1132
|
displayName: this._identity.profileDocument?.displayName
|
|
1126
1133
|
}, {
|
|
1127
|
-
F:
|
|
1134
|
+
F: __dxlog_file7,
|
|
1128
1135
|
L: 112,
|
|
1129
1136
|
S: this,
|
|
1130
1137
|
C: (f, a) => f(...a)
|
|
@@ -1134,18 +1141,21 @@ var IdentityManager = class {
|
|
|
1134
1141
|
log5.trace("dxos.halo.identity-manager.open", trace3.end({
|
|
1135
1142
|
id: traceId
|
|
1136
1143
|
}), {
|
|
1137
|
-
F:
|
|
1144
|
+
F: __dxlog_file7,
|
|
1138
1145
|
L: 119,
|
|
1139
1146
|
S: this,
|
|
1140
1147
|
C: (f, a) => f(...a)
|
|
1141
1148
|
});
|
|
1142
1149
|
}
|
|
1143
1150
|
async close() {
|
|
1144
|
-
await this._identity?.close(new Context3(
|
|
1151
|
+
await this._identity?.close(new Context3(void 0, {
|
|
1152
|
+
F: __dxlog_file7,
|
|
1153
|
+
L: 123
|
|
1154
|
+
}));
|
|
1145
1155
|
}
|
|
1146
1156
|
async createIdentity({ displayName, deviceProfile } = {}) {
|
|
1147
1157
|
invariant3(!this._identity, "Identity already exists.", {
|
|
1148
|
-
F:
|
|
1158
|
+
F: __dxlog_file7,
|
|
1149
1159
|
L: 128,
|
|
1150
1160
|
S: this,
|
|
1151
1161
|
A: [
|
|
@@ -1154,7 +1164,7 @@ var IdentityManager = class {
|
|
|
1154
1164
|
]
|
|
1155
1165
|
});
|
|
1156
1166
|
log5("creating identity...", void 0, {
|
|
1157
|
-
F:
|
|
1167
|
+
F: __dxlog_file7,
|
|
1158
1168
|
L: 129,
|
|
1159
1169
|
S: this,
|
|
1160
1170
|
C: (f, a) => f(...a)
|
|
@@ -1171,11 +1181,14 @@ var IdentityManager = class {
|
|
|
1171
1181
|
}
|
|
1172
1182
|
};
|
|
1173
1183
|
const identity = await this._constructIdentity(identityRecord);
|
|
1174
|
-
await identity.open(new Context3(
|
|
1184
|
+
await identity.open(new Context3(void 0, {
|
|
1185
|
+
F: __dxlog_file7,
|
|
1186
|
+
L: 144
|
|
1187
|
+
}));
|
|
1175
1188
|
{
|
|
1176
1189
|
const generator = new CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
|
|
1177
1190
|
invariant3(identityRecord.haloSpace.genesisFeedKey, "Genesis feed key is required.", {
|
|
1178
|
-
F:
|
|
1191
|
+
F: __dxlog_file7,
|
|
1179
1192
|
L: 148,
|
|
1180
1193
|
S: this,
|
|
1181
1194
|
A: [
|
|
@@ -1184,7 +1197,7 @@ var IdentityManager = class {
|
|
|
1184
1197
|
]
|
|
1185
1198
|
});
|
|
1186
1199
|
invariant3(identityRecord.haloSpace.dataFeedKey, "Data feed key is required.", {
|
|
1187
|
-
F:
|
|
1200
|
+
F: __dxlog_file7,
|
|
1188
1201
|
L: 149,
|
|
1189
1202
|
S: this,
|
|
1190
1203
|
A: [
|
|
@@ -1223,7 +1236,7 @@ var IdentityManager = class {
|
|
|
1223
1236
|
identityKey: identityRecord.identityKey,
|
|
1224
1237
|
displayName: this._identity.profileDocument?.displayName
|
|
1225
1238
|
}, {
|
|
1226
|
-
F:
|
|
1239
|
+
F: __dxlog_file7,
|
|
1227
1240
|
L: 191,
|
|
1228
1241
|
S: this,
|
|
1229
1242
|
C: (f, a) => f(...a)
|
|
@@ -1234,7 +1247,7 @@ var IdentityManager = class {
|
|
|
1234
1247
|
deviceKey: identity.deviceKey,
|
|
1235
1248
|
profile: identity.profileDocument
|
|
1236
1249
|
}, {
|
|
1237
|
-
F:
|
|
1250
|
+
F: __dxlog_file7,
|
|
1238
1251
|
L: 197,
|
|
1239
1252
|
S: this,
|
|
1240
1253
|
C: (f, a) => f(...a)
|
|
@@ -1271,13 +1284,13 @@ var IdentityManager = class {
|
|
|
1271
1284
|
log5("accepting identity", {
|
|
1272
1285
|
params
|
|
1273
1286
|
}, {
|
|
1274
|
-
F:
|
|
1287
|
+
F: __dxlog_file7,
|
|
1275
1288
|
L: 235,
|
|
1276
1289
|
S: this,
|
|
1277
1290
|
C: (f, a) => f(...a)
|
|
1278
1291
|
});
|
|
1279
1292
|
invariant3(!this._identity, "Identity already exists.", {
|
|
1280
|
-
F:
|
|
1293
|
+
F: __dxlog_file7,
|
|
1281
1294
|
L: 236,
|
|
1282
1295
|
S: this,
|
|
1283
1296
|
A: [
|
|
@@ -1297,7 +1310,10 @@ var IdentityManager = class {
|
|
|
1297
1310
|
}
|
|
1298
1311
|
};
|
|
1299
1312
|
const identity = await this._constructIdentity(identityRecord);
|
|
1300
|
-
await identity.open(new Context3(
|
|
1313
|
+
await identity.open(new Context3(void 0, {
|
|
1314
|
+
F: __dxlog_file7,
|
|
1315
|
+
L: 251
|
|
1316
|
+
}));
|
|
1301
1317
|
this._identity = identity;
|
|
1302
1318
|
await this._metadataStore.setIdentityRecord(identityRecord);
|
|
1303
1319
|
await this._identity.ready();
|
|
@@ -1305,7 +1321,7 @@ var IdentityManager = class {
|
|
|
1305
1321
|
identityKey: identityRecord.identityKey,
|
|
1306
1322
|
displayName: this._identity.profileDocument?.displayName
|
|
1307
1323
|
}, {
|
|
1308
|
-
F:
|
|
1324
|
+
F: __dxlog_file7,
|
|
1309
1325
|
L: 255,
|
|
1310
1326
|
S: this,
|
|
1311
1327
|
C: (f, a) => f(...a)
|
|
@@ -1319,7 +1335,7 @@ var IdentityManager = class {
|
|
|
1319
1335
|
identityKey: identity.identityKey,
|
|
1320
1336
|
deviceKey: identity.deviceKey
|
|
1321
1337
|
}, {
|
|
1322
|
-
F:
|
|
1338
|
+
F: __dxlog_file7,
|
|
1323
1339
|
L: 265,
|
|
1324
1340
|
S: this,
|
|
1325
1341
|
C: (f, a) => f(...a)
|
|
@@ -1331,7 +1347,7 @@ var IdentityManager = class {
|
|
|
1331
1347
|
*/
|
|
1332
1348
|
async updateProfile(profile) {
|
|
1333
1349
|
invariant3(this._identity, "Identity not initialized.", {
|
|
1334
|
-
F:
|
|
1350
|
+
F: __dxlog_file7,
|
|
1335
1351
|
L: 273,
|
|
1336
1352
|
S: this,
|
|
1337
1353
|
A: [
|
|
@@ -1362,7 +1378,7 @@ var IdentityManager = class {
|
|
|
1362
1378
|
}
|
|
1363
1379
|
async updateDeviceProfile(profile) {
|
|
1364
1380
|
invariant3(this._identity, "Identity not initialized.", {
|
|
1365
|
-
F:
|
|
1381
|
+
F: __dxlog_file7,
|
|
1366
1382
|
L: 290,
|
|
1367
1383
|
S: this,
|
|
1368
1384
|
A: [
|
|
@@ -1398,7 +1414,7 @@ var IdentityManager = class {
|
|
|
1398
1414
|
}
|
|
1399
1415
|
async _constructIdentity(identityRecord) {
|
|
1400
1416
|
invariant3(!this._identity, void 0, {
|
|
1401
|
-
F:
|
|
1417
|
+
F: __dxlog_file7,
|
|
1402
1418
|
L: 316,
|
|
1403
1419
|
S: this,
|
|
1404
1420
|
A: [
|
|
@@ -1409,7 +1425,7 @@ var IdentityManager = class {
|
|
|
1409
1425
|
log5("constructing identity", {
|
|
1410
1426
|
identityRecord
|
|
1411
1427
|
}, {
|
|
1412
|
-
F:
|
|
1428
|
+
F: __dxlog_file7,
|
|
1413
1429
|
L: 317,
|
|
1414
1430
|
S: this,
|
|
1415
1431
|
C: (f, a) => f(...a)
|
|
@@ -1424,7 +1440,7 @@ var IdentityManager = class {
|
|
|
1424
1440
|
gossip
|
|
1425
1441
|
});
|
|
1426
1442
|
invariant3(identityRecord.haloSpace.controlFeedKey, void 0, {
|
|
1427
|
-
F:
|
|
1443
|
+
F: __dxlog_file7,
|
|
1428
1444
|
L: 330,
|
|
1429
1445
|
S: this,
|
|
1430
1446
|
A: [
|
|
@@ -1436,7 +1452,7 @@ var IdentityManager = class {
|
|
|
1436
1452
|
writable: true
|
|
1437
1453
|
});
|
|
1438
1454
|
invariant3(identityRecord.haloSpace.dataFeedKey, void 0, {
|
|
1439
|
-
F:
|
|
1455
|
+
F: __dxlog_file7,
|
|
1440
1456
|
L: 334,
|
|
1441
1457
|
S: this,
|
|
1442
1458
|
A: [
|
|
@@ -1470,7 +1486,7 @@ var IdentityManager = class {
|
|
|
1470
1486
|
log5("done", {
|
|
1471
1487
|
identityKey: identityRecord.identityKey
|
|
1472
1488
|
}, {
|
|
1473
|
-
F:
|
|
1489
|
+
F: __dxlog_file7,
|
|
1474
1490
|
L: 360,
|
|
1475
1491
|
S: this,
|
|
1476
1492
|
C: (f, a) => f(...a)
|
|
@@ -1495,7 +1511,7 @@ var IdentityManager = class {
|
|
|
1495
1511
|
},
|
|
1496
1512
|
onAuthFailure: () => {
|
|
1497
1513
|
log5.warn("auth failure", void 0, {
|
|
1498
|
-
F:
|
|
1514
|
+
F: __dxlog_file7,
|
|
1499
1515
|
L: 385,
|
|
1500
1516
|
S: this,
|
|
1501
1517
|
C: (f, a) => f(...a)
|
|
@@ -1528,7 +1544,7 @@ import { invariant as invariant4 } from "@dxos/invariant";
|
|
|
1528
1544
|
import { log as log6 } from "@dxos/log";
|
|
1529
1545
|
import { SpaceState } from "@dxos/protocols/proto/dxos/client/services";
|
|
1530
1546
|
import { safeAwaitAll } from "@dxos/util";
|
|
1531
|
-
var
|
|
1547
|
+
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
|
|
1532
1548
|
var DEFAULT_SPACE_SEARCH_TIMEOUT = 1e4;
|
|
1533
1549
|
var IdentityServiceImpl = class extends Resource {
|
|
1534
1550
|
constructor(_identityManager, _keyring, _dataSpaceManagerProvider, _createIdentity, _onProfileUpdate) {
|
|
@@ -1558,7 +1574,7 @@ var IdentityServiceImpl = class extends Resource {
|
|
|
1558
1574
|
const space = await dataSpaceManager.createDefaultSpace();
|
|
1559
1575
|
const identity = this._identityManager.identity;
|
|
1560
1576
|
invariant4(identity, void 0, {
|
|
1561
|
-
F:
|
|
1577
|
+
F: __dxlog_file8,
|
|
1562
1578
|
L: 59,
|
|
1563
1579
|
S: this,
|
|
1564
1580
|
A: [
|
|
@@ -1592,7 +1608,7 @@ var IdentityServiceImpl = class extends Resource {
|
|
|
1592
1608
|
}
|
|
1593
1609
|
async updateProfile(profile) {
|
|
1594
1610
|
invariant4(this._identityManager.identity, "Identity not initialized.", {
|
|
1595
|
-
F:
|
|
1611
|
+
F: __dxlog_file8,
|
|
1596
1612
|
L: 89,
|
|
1597
1613
|
S: this,
|
|
1598
1614
|
A: [
|
|
@@ -1606,7 +1622,7 @@ var IdentityServiceImpl = class extends Resource {
|
|
|
1606
1622
|
}
|
|
1607
1623
|
async signPresentation({ presentation, nonce }) {
|
|
1608
1624
|
invariant4(this._identityManager.identity, "Identity not initialized.", {
|
|
1609
|
-
F:
|
|
1625
|
+
F: __dxlog_file8,
|
|
1610
1626
|
L: 96,
|
|
1611
1627
|
S: this,
|
|
1612
1628
|
A: [
|
|
@@ -1641,7 +1657,7 @@ var IdentityServiceImpl = class extends Resource {
|
|
|
1641
1657
|
log6.warn("Multiple default spaces found. Using the first one.", {
|
|
1642
1658
|
duplicate: space.id
|
|
1643
1659
|
}, {
|
|
1644
|
-
F:
|
|
1660
|
+
F: __dxlog_file8,
|
|
1645
1661
|
L: 127,
|
|
1646
1662
|
S: this,
|
|
1647
1663
|
C: (f, a) => f(...a)
|
|
@@ -1669,7 +1685,7 @@ var IdentityServiceImpl = class extends Resource {
|
|
|
1669
1685
|
import { invariant as invariant5 } from "@dxos/invariant";
|
|
1670
1686
|
import { AlreadyJoinedError } from "@dxos/protocols";
|
|
1671
1687
|
import { Invitation } from "@dxos/protocols/proto/dxos/client/services";
|
|
1672
|
-
var
|
|
1688
|
+
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
|
|
1673
1689
|
var DeviceInvitationProtocol = class {
|
|
1674
1690
|
constructor(_keyring, _getIdentity, _acceptIdentity) {
|
|
1675
1691
|
this._keyring = _keyring;
|
|
@@ -1695,7 +1711,7 @@ var DeviceInvitationProtocol = class {
|
|
|
1695
1711
|
}
|
|
1696
1712
|
async admit(_, request) {
|
|
1697
1713
|
invariant5(request.device, void 0, {
|
|
1698
|
-
F:
|
|
1714
|
+
F: __dxlog_file9,
|
|
1699
1715
|
L: 50,
|
|
1700
1716
|
S: this,
|
|
1701
1717
|
A: [
|
|
@@ -1741,7 +1757,7 @@ var DeviceInvitationProtocol = class {
|
|
|
1741
1757
|
}
|
|
1742
1758
|
async accept(response, request) {
|
|
1743
1759
|
invariant5(response.device, void 0, {
|
|
1744
|
-
F:
|
|
1760
|
+
F: __dxlog_file9,
|
|
1745
1761
|
L: 95,
|
|
1746
1762
|
S: this,
|
|
1747
1763
|
A: [
|
|
@@ -1751,7 +1767,7 @@ var DeviceInvitationProtocol = class {
|
|
|
1751
1767
|
});
|
|
1752
1768
|
const { identityKey, haloSpaceKey, genesisFeedKey, controlTimeframe } = response.device;
|
|
1753
1769
|
invariant5(request.device, void 0, {
|
|
1754
|
-
F:
|
|
1770
|
+
F: __dxlog_file9,
|
|
1755
1771
|
L: 98,
|
|
1756
1772
|
S: this,
|
|
1757
1773
|
A: [
|
|
@@ -1820,7 +1836,7 @@ var tryAcquireBeforeContextDisposed = async (ctx, mutex) => {
|
|
|
1820
1836
|
};
|
|
1821
1837
|
|
|
1822
1838
|
// packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts
|
|
1823
|
-
var
|
|
1839
|
+
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
|
|
1824
1840
|
var OPTIONS_TIMEOUT = 1e4;
|
|
1825
1841
|
var InvitationGuestExtension = class extends RpcExtension {
|
|
1826
1842
|
constructor(_invitationFlowMutex, _callbacks) {
|
|
@@ -1834,7 +1850,10 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1834
1850
|
});
|
|
1835
1851
|
this._invitationFlowMutex = _invitationFlowMutex;
|
|
1836
1852
|
this._callbacks = _callbacks;
|
|
1837
|
-
this._ctx = new Context4(
|
|
1853
|
+
this._ctx = new Context4(void 0, {
|
|
1854
|
+
F: __dxlog_file10,
|
|
1855
|
+
L: 33
|
|
1856
|
+
});
|
|
1838
1857
|
this._remoteOptionsTrigger = new Trigger4();
|
|
1839
1858
|
this._invitationFlowLock = null;
|
|
1840
1859
|
}
|
|
@@ -1846,7 +1865,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1846
1865
|
InvitationHostService: {
|
|
1847
1866
|
options: async (options) => {
|
|
1848
1867
|
invariant6(!this._remoteOptions, "Remote options already set.", {
|
|
1849
|
-
F:
|
|
1868
|
+
F: __dxlog_file10,
|
|
1850
1869
|
L: 63,
|
|
1851
1870
|
S: this,
|
|
1852
1871
|
A: [
|
|
@@ -1873,14 +1892,14 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1873
1892
|
await super.onOpen(context);
|
|
1874
1893
|
try {
|
|
1875
1894
|
log7("guest acquire lock", void 0, {
|
|
1876
|
-
F:
|
|
1895
|
+
F: __dxlog_file10,
|
|
1877
1896
|
L: 84,
|
|
1878
1897
|
S: this,
|
|
1879
1898
|
C: (f, a) => f(...a)
|
|
1880
1899
|
});
|
|
1881
1900
|
this._invitationFlowLock = await tryAcquireBeforeContextDisposed(this._ctx, this._invitationFlowMutex);
|
|
1882
1901
|
log7("guest lock acquired", void 0, {
|
|
1883
|
-
F:
|
|
1902
|
+
F: __dxlog_file10,
|
|
1884
1903
|
L: 86,
|
|
1885
1904
|
S: this,
|
|
1886
1905
|
C: (f, a) => f(...a)
|
|
@@ -1889,7 +1908,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1889
1908
|
role: Options.Role.GUEST
|
|
1890
1909
|
}));
|
|
1891
1910
|
log7("options sent", void 0, {
|
|
1892
|
-
F:
|
|
1911
|
+
F: __dxlog_file10,
|
|
1893
1912
|
L: 88,
|
|
1894
1913
|
S: this,
|
|
1895
1914
|
C: (f, a) => f(...a)
|
|
@@ -1898,7 +1917,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1898
1917
|
timeout: OPTIONS_TIMEOUT
|
|
1899
1918
|
}));
|
|
1900
1919
|
log7("options received", void 0, {
|
|
1901
|
-
F:
|
|
1920
|
+
F: __dxlog_file10,
|
|
1902
1921
|
L: 90,
|
|
1903
1922
|
S: this,
|
|
1904
1923
|
C: (f, a) => f(...a)
|
|
@@ -1932,7 +1951,7 @@ var InvitationGuestExtension = class extends RpcExtension {
|
|
|
1932
1951
|
this._invitationFlowLock.release();
|
|
1933
1952
|
this._invitationFlowLock = null;
|
|
1934
1953
|
log7("invitation flow lock released", void 0, {
|
|
1935
|
-
F:
|
|
1954
|
+
F: __dxlog_file10,
|
|
1936
1955
|
L: 123,
|
|
1937
1956
|
S: this,
|
|
1938
1957
|
C: (f, a) => f(...a)
|
|
@@ -1952,7 +1971,7 @@ import { InvalidInvitationExtensionRoleError as InvalidInvitationExtensionRoleEr
|
|
|
1952
1971
|
import { Invitation as Invitation3 } from "@dxos/protocols/proto/dxos/client/services";
|
|
1953
1972
|
import { AuthenticationResponse, Options as Options2 } from "@dxos/protocols/proto/dxos/halo/invitations";
|
|
1954
1973
|
import { RpcExtension as RpcExtension2 } from "@dxos/teleport";
|
|
1955
|
-
var
|
|
1974
|
+
var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
|
|
1956
1975
|
var OPTIONS_TIMEOUT2 = 1e4;
|
|
1957
1976
|
var MAX_OTP_ATTEMPTS = 3;
|
|
1958
1977
|
var InvitationHostExtension = class extends RpcExtension2 {
|
|
@@ -1967,7 +1986,10 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
1967
1986
|
});
|
|
1968
1987
|
this._invitationFlowMutex = _invitationFlowMutex;
|
|
1969
1988
|
this._callbacks = _callbacks;
|
|
1970
|
-
this._ctx = new Context5(
|
|
1989
|
+
this._ctx = new Context5(void 0, {
|
|
1990
|
+
F: __dxlog_file11,
|
|
1991
|
+
L: 52
|
|
1992
|
+
});
|
|
1971
1993
|
this._remoteOptionsTrigger = new Trigger5();
|
|
1972
1994
|
this._challenge = void 0;
|
|
1973
1995
|
this.guestProfile = void 0;
|
|
@@ -1986,7 +2008,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
1986
2008
|
InvitationHostService: {
|
|
1987
2009
|
options: async (options) => {
|
|
1988
2010
|
invariant7(!this._remoteOptions, "Remote options already set.", {
|
|
1989
|
-
F:
|
|
2011
|
+
F: __dxlog_file11,
|
|
1990
2012
|
L: 101,
|
|
1991
2013
|
S: this,
|
|
1992
2014
|
A: [
|
|
@@ -2003,7 +2025,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2003
2025
|
log8.trace("dxos.sdk.invitation-handler.host.introduce", trace4.begin({
|
|
2004
2026
|
id: traceId
|
|
2005
2027
|
}), {
|
|
2006
|
-
F:
|
|
2028
|
+
F: __dxlog_file11,
|
|
2007
2029
|
L: 110,
|
|
2008
2030
|
S: this,
|
|
2009
2031
|
C: (f, a) => f(...a)
|
|
@@ -2015,7 +2037,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2015
2037
|
expected: invitation.invitationId,
|
|
2016
2038
|
actual: invitationId
|
|
2017
2039
|
}, {
|
|
2018
|
-
F:
|
|
2040
|
+
F: __dxlog_file11,
|
|
2019
2041
|
L: 116,
|
|
2020
2042
|
S: this,
|
|
2021
2043
|
C: (f, a) => f(...a)
|
|
@@ -2029,7 +2051,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2029
2051
|
log8("guest introduced themselves", {
|
|
2030
2052
|
guestProfile: profile
|
|
2031
2053
|
}, {
|
|
2032
|
-
F:
|
|
2054
|
+
F: __dxlog_file11,
|
|
2033
2055
|
L: 125,
|
|
2034
2056
|
S: this,
|
|
2035
2057
|
C: (f, a) => f(...a)
|
|
@@ -2040,7 +2062,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2040
2062
|
log8.trace("dxos.sdk.invitation-handler.host.introduce", trace4.end({
|
|
2041
2063
|
id: traceId
|
|
2042
2064
|
}), {
|
|
2043
|
-
F:
|
|
2065
|
+
F: __dxlog_file11,
|
|
2044
2066
|
L: 132,
|
|
2045
2067
|
S: this,
|
|
2046
2068
|
C: (f, a) => f(...a)
|
|
@@ -2055,7 +2077,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2055
2077
|
log8.trace("dxos.sdk.invitation-handler.host.authenticate", trace4.begin({
|
|
2056
2078
|
id: traceId
|
|
2057
2079
|
}), {
|
|
2058
|
-
F:
|
|
2080
|
+
F: __dxlog_file11,
|
|
2059
2081
|
L: 141,
|
|
2060
2082
|
S: this,
|
|
2061
2083
|
C: (f, a) => f(...a)
|
|
@@ -2064,7 +2086,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2064
2086
|
log8("received authentication request", {
|
|
2065
2087
|
authCode: code
|
|
2066
2088
|
}, {
|
|
2067
|
-
F:
|
|
2089
|
+
F: __dxlog_file11,
|
|
2068
2090
|
L: 144,
|
|
2069
2091
|
S: this,
|
|
2070
2092
|
C: (f, a) => f(...a)
|
|
@@ -2078,7 +2100,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2078
2100
|
switch (invitation.authMethod) {
|
|
2079
2101
|
case Invitation3.AuthMethod.NONE: {
|
|
2080
2102
|
log8("authentication not required", void 0, {
|
|
2081
|
-
F:
|
|
2103
|
+
F: __dxlog_file11,
|
|
2082
2104
|
L: 152,
|
|
2083
2105
|
S: this,
|
|
2084
2106
|
C: (f, a) => f(...a)
|
|
@@ -2116,7 +2138,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2116
2138
|
log8.error("invalid authentication method", {
|
|
2117
2139
|
authMethod: invitation.authMethod
|
|
2118
2140
|
}, {
|
|
2119
|
-
F:
|
|
2141
|
+
F: __dxlog_file11,
|
|
2120
2142
|
L: 190,
|
|
2121
2143
|
S: this,
|
|
2122
2144
|
C: (f, a) => f(...a)
|
|
@@ -2141,7 +2163,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2141
2163
|
status
|
|
2142
2164
|
}
|
|
2143
2165
|
}), {
|
|
2144
|
-
F:
|
|
2166
|
+
F: __dxlog_file11,
|
|
2145
2167
|
L: 202,
|
|
2146
2168
|
S: this,
|
|
2147
2169
|
C: (f, a) => f(...a)
|
|
@@ -2155,7 +2177,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2155
2177
|
log8.trace("dxos.sdk.invitation-handler.host.admit", trace4.begin({
|
|
2156
2178
|
id: traceId
|
|
2157
2179
|
}), {
|
|
2158
|
-
F:
|
|
2180
|
+
F: __dxlog_file11,
|
|
2159
2181
|
L: 208,
|
|
2160
2182
|
S: this,
|
|
2161
2183
|
C: (f, a) => f(...a)
|
|
@@ -2172,7 +2194,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2172
2194
|
log8.trace("dxos.sdk.invitation-handler.host.admit", trace4.end({
|
|
2173
2195
|
id: traceId
|
|
2174
2196
|
}), {
|
|
2175
|
-
F:
|
|
2197
|
+
F: __dxlog_file11,
|
|
2176
2198
|
L: 222,
|
|
2177
2199
|
S: this,
|
|
2178
2200
|
C: (f, a) => f(...a)
|
|
@@ -2190,14 +2212,14 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2190
2212
|
await super.onOpen(context);
|
|
2191
2213
|
try {
|
|
2192
2214
|
log8("host acquire lock", void 0, {
|
|
2193
|
-
F:
|
|
2215
|
+
F: __dxlog_file11,
|
|
2194
2216
|
L: 237,
|
|
2195
2217
|
S: this,
|
|
2196
2218
|
C: (f, a) => f(...a)
|
|
2197
2219
|
});
|
|
2198
2220
|
this._invitationFlowLock = await tryAcquireBeforeContextDisposed(this._ctx, this._invitationFlowMutex);
|
|
2199
2221
|
log8("host lock acquired", void 0, {
|
|
2200
|
-
F:
|
|
2222
|
+
F: __dxlog_file11,
|
|
2201
2223
|
L: 239,
|
|
2202
2224
|
S: this,
|
|
2203
2225
|
C: (f, a) => f(...a)
|
|
@@ -2208,7 +2230,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2208
2230
|
role: Options2.Role.HOST
|
|
2209
2231
|
});
|
|
2210
2232
|
log8("options sent", void 0, {
|
|
2211
|
-
F:
|
|
2233
|
+
F: __dxlog_file11,
|
|
2212
2234
|
L: 243,
|
|
2213
2235
|
S: this,
|
|
2214
2236
|
C: (f, a) => f(...a)
|
|
@@ -2217,7 +2239,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2217
2239
|
timeout: OPTIONS_TIMEOUT2
|
|
2218
2240
|
}));
|
|
2219
2241
|
log8("options received", void 0, {
|
|
2220
|
-
F:
|
|
2242
|
+
F: __dxlog_file11,
|
|
2221
2243
|
L: 245,
|
|
2222
2244
|
S: this,
|
|
2223
2245
|
C: (f, a) => f(...a)
|
|
@@ -2271,7 +2293,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
|
|
|
2271
2293
|
this._invitationFlowLock?.release();
|
|
2272
2294
|
this._invitationFlowLock = null;
|
|
2273
2295
|
log8("invitation flow lock released", void 0, {
|
|
2274
|
-
F:
|
|
2296
|
+
F: __dxlog_file11,
|
|
2275
2297
|
L: 300,
|
|
2276
2298
|
S: this,
|
|
2277
2299
|
C: (f, a) => f(...a)
|
|
@@ -2287,7 +2309,7 @@ import { PublicKey as PublicKey6 } from "@dxos/keys";
|
|
|
2287
2309
|
import { log as log9 } from "@dxos/log";
|
|
2288
2310
|
import { Options as Options3 } from "@dxos/protocols/proto/dxos/halo/invitations";
|
|
2289
2311
|
import { ComplexSet as ComplexSet2 } from "@dxos/util";
|
|
2290
|
-
var
|
|
2312
|
+
var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
|
|
2291
2313
|
var InvitationTopology = class {
|
|
2292
2314
|
constructor(_role) {
|
|
2293
2315
|
this._role = _role;
|
|
@@ -2295,7 +2317,7 @@ var InvitationTopology = class {
|
|
|
2295
2317
|
}
|
|
2296
2318
|
init(controller) {
|
|
2297
2319
|
invariant8(!this._controller, "Already initialized.", {
|
|
2298
|
-
F:
|
|
2320
|
+
F: __dxlog_file12,
|
|
2299
2321
|
L: 42,
|
|
2300
2322
|
S: this,
|
|
2301
2323
|
A: [
|
|
@@ -2307,7 +2329,7 @@ var InvitationTopology = class {
|
|
|
2307
2329
|
}
|
|
2308
2330
|
update() {
|
|
2309
2331
|
invariant8(this._controller, "Not initialized.", {
|
|
2310
|
-
F:
|
|
2332
|
+
F: __dxlog_file12,
|
|
2311
2333
|
L: 47,
|
|
2312
2334
|
S: this,
|
|
2313
2335
|
A: [
|
|
@@ -2330,7 +2352,7 @@ var InvitationTopology = class {
|
|
|
2330
2352
|
ownPeerId,
|
|
2331
2353
|
remotePeerId: firstUnknownPeer
|
|
2332
2354
|
}, {
|
|
2333
|
-
F:
|
|
2355
|
+
F: __dxlog_file12,
|
|
2334
2356
|
L: 69,
|
|
2335
2357
|
S: this,
|
|
2336
2358
|
C: (f, a) => f(...a)
|
|
@@ -2341,7 +2363,7 @@ var InvitationTopology = class {
|
|
|
2341
2363
|
}
|
|
2342
2364
|
async onOffer(peer) {
|
|
2343
2365
|
invariant8(this._controller, "Not initialized.", {
|
|
2344
|
-
F:
|
|
2366
|
+
F: __dxlog_file12,
|
|
2345
2367
|
L: 76,
|
|
2346
2368
|
S: this,
|
|
2347
2369
|
A: [
|
|
@@ -2360,7 +2382,7 @@ var InvitationTopology = class {
|
|
|
2360
2382
|
};
|
|
2361
2383
|
|
|
2362
2384
|
// packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts
|
|
2363
|
-
var
|
|
2385
|
+
var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
|
|
2364
2386
|
var MAX_DELEGATED_INVITATION_HOST_TRIES = 3;
|
|
2365
2387
|
var InvitationsHandler = class {
|
|
2366
2388
|
/**
|
|
@@ -2385,7 +2407,7 @@ var InvitationsHandler = class {
|
|
|
2385
2407
|
try {
|
|
2386
2408
|
const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
|
|
2387
2409
|
invariant9(deviceKey, void 0, {
|
|
2388
|
-
F:
|
|
2410
|
+
F: __dxlog_file13,
|
|
2389
2411
|
L: 90,
|
|
2390
2412
|
S: this,
|
|
2391
2413
|
A: [
|
|
@@ -2414,7 +2436,7 @@ var InvitationsHandler = class {
|
|
|
2414
2436
|
log10.trace("dxos.sdk.invitations-handler.host.onOpen", trace5.begin({
|
|
2415
2437
|
id: traceId
|
|
2416
2438
|
}), {
|
|
2417
|
-
F:
|
|
2439
|
+
F: __dxlog_file13,
|
|
2418
2440
|
L: 115,
|
|
2419
2441
|
S: this,
|
|
2420
2442
|
C: (f, a) => f(...a)
|
|
@@ -2422,7 +2444,7 @@ var InvitationsHandler = class {
|
|
|
2422
2444
|
log10("connected", {
|
|
2423
2445
|
...protocol.toJSON()
|
|
2424
2446
|
}, {
|
|
2425
|
-
F:
|
|
2447
|
+
F: __dxlog_file13,
|
|
2426
2448
|
L: 116,
|
|
2427
2449
|
S: this,
|
|
2428
2450
|
C: (f, a) => f(...a)
|
|
@@ -2434,7 +2456,7 @@ var InvitationsHandler = class {
|
|
|
2434
2456
|
guest: deviceKey,
|
|
2435
2457
|
...protocol.toJSON()
|
|
2436
2458
|
}, {
|
|
2437
|
-
F:
|
|
2459
|
+
F: __dxlog_file13,
|
|
2438
2460
|
L: 118,
|
|
2439
2461
|
S: this,
|
|
2440
2462
|
C: (f, a) => f(...a)
|
|
@@ -2443,7 +2465,7 @@ var InvitationsHandler = class {
|
|
|
2443
2465
|
log10.trace("dxos.sdk.invitations-handler.host.onOpen", trace5.end({
|
|
2444
2466
|
id: traceId
|
|
2445
2467
|
}), {
|
|
2446
|
-
F:
|
|
2468
|
+
F: __dxlog_file13,
|
|
2447
2469
|
L: 120,
|
|
2448
2470
|
S: this,
|
|
2449
2471
|
C: (f, a) => f(...a)
|
|
@@ -2458,7 +2480,7 @@ var InvitationsHandler = class {
|
|
|
2458
2480
|
log10("timeout", {
|
|
2459
2481
|
...protocol.toJSON()
|
|
2460
2482
|
}, {
|
|
2461
|
-
F:
|
|
2483
|
+
F: __dxlog_file13,
|
|
2462
2484
|
L: 129,
|
|
2463
2485
|
S: this,
|
|
2464
2486
|
C: (f, a) => f(...a)
|
|
@@ -2467,7 +2489,7 @@ var InvitationsHandler = class {
|
|
|
2467
2489
|
} else {
|
|
2468
2490
|
if (guardedState.error(extension, err)) {
|
|
2469
2491
|
log10.error("failed", err, {
|
|
2470
|
-
F:
|
|
2492
|
+
F: __dxlog_file13,
|
|
2471
2493
|
L: 133,
|
|
2472
2494
|
S: this,
|
|
2473
2495
|
C: (f, a) => f(...a)
|
|
@@ -2478,7 +2500,7 @@ var InvitationsHandler = class {
|
|
|
2478
2500
|
id: traceId,
|
|
2479
2501
|
error: err
|
|
2480
2502
|
}), {
|
|
2481
|
-
F:
|
|
2503
|
+
F: __dxlog_file13,
|
|
2482
2504
|
L: 136,
|
|
2483
2505
|
S: this,
|
|
2484
2506
|
C: (f, a) => f(...a)
|
|
@@ -2492,7 +2514,7 @@ var InvitationsHandler = class {
|
|
|
2492
2514
|
log10("invalid role", {
|
|
2493
2515
|
...err.context
|
|
2494
2516
|
}, {
|
|
2495
|
-
F:
|
|
2517
|
+
F: __dxlog_file13,
|
|
2496
2518
|
L: 144,
|
|
2497
2519
|
S: this,
|
|
2498
2520
|
C: (f, a) => f(...a)
|
|
@@ -2504,7 +2526,7 @@ var InvitationsHandler = class {
|
|
|
2504
2526
|
log10("timeout", {
|
|
2505
2527
|
err
|
|
2506
2528
|
}, {
|
|
2507
|
-
F:
|
|
2529
|
+
F: __dxlog_file13,
|
|
2508
2530
|
L: 149,
|
|
2509
2531
|
S: this,
|
|
2510
2532
|
C: (f, a) => f(...a)
|
|
@@ -2513,7 +2535,7 @@ var InvitationsHandler = class {
|
|
|
2513
2535
|
} else {
|
|
2514
2536
|
if (guardedState.error(extension, err)) {
|
|
2515
2537
|
log10.error("failed", err, {
|
|
2516
|
-
F:
|
|
2538
|
+
F: __dxlog_file13,
|
|
2517
2539
|
L: 153,
|
|
2518
2540
|
S: this,
|
|
2519
2541
|
C: (f, a) => f(...a)
|
|
@@ -2527,7 +2549,7 @@ var InvitationsHandler = class {
|
|
|
2527
2549
|
if (invitation.lifetime && invitation.created) {
|
|
2528
2550
|
if (invitation.created.getTime() + invitation.lifetime * 1e3 < Date.now()) {
|
|
2529
2551
|
log10.warn("invitation has already expired", void 0, {
|
|
2530
|
-
F:
|
|
2552
|
+
F: __dxlog_file13,
|
|
2531
2553
|
L: 164,
|
|
2532
2554
|
S: this,
|
|
2533
2555
|
C: (f, a) => f(...a)
|
|
@@ -2550,7 +2572,7 @@ var InvitationsHandler = class {
|
|
|
2550
2572
|
const { timeout = INVITATION_TIMEOUT } = invitation;
|
|
2551
2573
|
if (deviceProfile) {
|
|
2552
2574
|
invariant9(invitation.kind === Invitation4.Kind.DEVICE, "deviceProfile provided for non-device invitation", {
|
|
2553
|
-
F:
|
|
2575
|
+
F: __dxlog_file13,
|
|
2554
2576
|
L: 197,
|
|
2555
2577
|
S: this,
|
|
2556
2578
|
A: [
|
|
@@ -2568,7 +2590,7 @@ var InvitationsHandler = class {
|
|
|
2568
2590
|
invitationType: Invitation4.Type.DELEGATED,
|
|
2569
2591
|
triedPeers: triedPeersIds.size
|
|
2570
2592
|
}, {
|
|
2571
|
-
F:
|
|
2593
|
+
F: __dxlog_file13,
|
|
2572
2594
|
L: 205,
|
|
2573
2595
|
S: this,
|
|
2574
2596
|
C: (f, a) => f(...a)
|
|
@@ -2595,7 +2617,7 @@ var InvitationsHandler = class {
|
|
|
2595
2617
|
admitted,
|
|
2596
2618
|
currentState: guardedState.current.state
|
|
2597
2619
|
}, {
|
|
2598
|
-
F:
|
|
2620
|
+
F: __dxlog_file13,
|
|
2599
2621
|
L: 233,
|
|
2600
2622
|
S: this,
|
|
2601
2623
|
C: (f, a) => f(...a)
|
|
@@ -2613,7 +2635,7 @@ var InvitationsHandler = class {
|
|
|
2613
2635
|
log10.trace("dxos.sdk.invitations-handler.guest.onOpen", trace5.begin({
|
|
2614
2636
|
id: traceId
|
|
2615
2637
|
}), {
|
|
2616
|
-
F:
|
|
2638
|
+
F: __dxlog_file13,
|
|
2617
2639
|
L: 245,
|
|
2618
2640
|
S: this,
|
|
2619
2641
|
C: (f, a) => f(...a)
|
|
@@ -2625,7 +2647,7 @@ var InvitationsHandler = class {
|
|
|
2625
2647
|
log10("connected", {
|
|
2626
2648
|
...protocol.toJSON()
|
|
2627
2649
|
}, {
|
|
2628
|
-
F:
|
|
2650
|
+
F: __dxlog_file13,
|
|
2629
2651
|
L: 256,
|
|
2630
2652
|
S: this,
|
|
2631
2653
|
C: (f, a) => f(...a)
|
|
@@ -2634,7 +2656,7 @@ var InvitationsHandler = class {
|
|
|
2634
2656
|
log10("introduce", {
|
|
2635
2657
|
...protocol.toJSON()
|
|
2636
2658
|
}, {
|
|
2637
|
-
F:
|
|
2659
|
+
F: __dxlog_file13,
|
|
2638
2660
|
L: 260,
|
|
2639
2661
|
S: this,
|
|
2640
2662
|
C: (f, a) => f(...a)
|
|
@@ -2647,7 +2669,7 @@ var InvitationsHandler = class {
|
|
|
2647
2669
|
...protocol.toJSON(),
|
|
2648
2670
|
response: introductionResponse
|
|
2649
2671
|
}, {
|
|
2650
|
-
F:
|
|
2672
|
+
F: __dxlog_file13,
|
|
2651
2673
|
L: 265,
|
|
2652
2674
|
S: this,
|
|
2653
2675
|
C: (f, a) => f(...a)
|
|
@@ -2668,7 +2690,7 @@ var InvitationsHandler = class {
|
|
|
2668
2690
|
log10("request admission", {
|
|
2669
2691
|
...protocol.toJSON()
|
|
2670
2692
|
}, {
|
|
2671
|
-
F:
|
|
2693
|
+
F: __dxlog_file13,
|
|
2672
2694
|
L: 291,
|
|
2673
2695
|
S: this,
|
|
2674
2696
|
C: (f, a) => f(...a)
|
|
@@ -2680,7 +2702,7 @@ var InvitationsHandler = class {
|
|
|
2680
2702
|
log10("admitted by host", {
|
|
2681
2703
|
...protocol.toJSON()
|
|
2682
2704
|
}, {
|
|
2683
|
-
F:
|
|
2705
|
+
F: __dxlog_file13,
|
|
2684
2706
|
L: 302,
|
|
2685
2707
|
S: this,
|
|
2686
2708
|
C: (f, a) => f(...a)
|
|
@@ -2693,7 +2715,7 @@ var InvitationsHandler = class {
|
|
|
2693
2715
|
log10.trace("dxos.sdk.invitations-handler.guest.onOpen", trace5.end({
|
|
2694
2716
|
id: traceId
|
|
2695
2717
|
}), {
|
|
2696
|
-
F:
|
|
2718
|
+
F: __dxlog_file13,
|
|
2697
2719
|
L: 308,
|
|
2698
2720
|
S: this,
|
|
2699
2721
|
C: (f, a) => f(...a)
|
|
@@ -2703,7 +2725,7 @@ var InvitationsHandler = class {
|
|
|
2703
2725
|
log10("timeout", {
|
|
2704
2726
|
...protocol.toJSON()
|
|
2705
2727
|
}, {
|
|
2706
|
-
F:
|
|
2728
|
+
F: __dxlog_file13,
|
|
2707
2729
|
L: 311,
|
|
2708
2730
|
S: this,
|
|
2709
2731
|
C: (f, a) => f(...a)
|
|
@@ -2711,7 +2733,7 @@ var InvitationsHandler = class {
|
|
|
2711
2733
|
guardedState.set(extension, Invitation4.State.TIMEOUT);
|
|
2712
2734
|
} else {
|
|
2713
2735
|
log10("auth failed", err, {
|
|
2714
|
-
F:
|
|
2736
|
+
F: __dxlog_file13,
|
|
2715
2737
|
L: 314,
|
|
2716
2738
|
S: this,
|
|
2717
2739
|
C: (f, a) => f(...a)
|
|
@@ -2723,7 +2745,7 @@ var InvitationsHandler = class {
|
|
|
2723
2745
|
id: traceId,
|
|
2724
2746
|
error: err
|
|
2725
2747
|
}), {
|
|
2726
|
-
F:
|
|
2748
|
+
F: __dxlog_file13,
|
|
2727
2749
|
L: 318,
|
|
2728
2750
|
S: this,
|
|
2729
2751
|
C: (f, a) => f(...a)
|
|
@@ -2739,7 +2761,7 @@ var InvitationsHandler = class {
|
|
|
2739
2761
|
log10("timeout", {
|
|
2740
2762
|
...protocol.toJSON()
|
|
2741
2763
|
}, {
|
|
2742
|
-
F:
|
|
2764
|
+
F: __dxlog_file13,
|
|
2743
2765
|
L: 327,
|
|
2744
2766
|
S: this,
|
|
2745
2767
|
C: (f, a) => f(...a)
|
|
@@ -2747,7 +2769,7 @@ var InvitationsHandler = class {
|
|
|
2747
2769
|
guardedState.set(extension, Invitation4.State.TIMEOUT);
|
|
2748
2770
|
} else {
|
|
2749
2771
|
log10("auth failed", err, {
|
|
2750
|
-
F:
|
|
2772
|
+
F: __dxlog_file13,
|
|
2751
2773
|
L: 330,
|
|
2752
2774
|
S: this,
|
|
2753
2775
|
C: (f, a) => f(...a)
|
|
@@ -2765,7 +2787,7 @@ var InvitationsHandler = class {
|
|
|
2765
2787
|
await ctx.dispose();
|
|
2766
2788
|
} else {
|
|
2767
2789
|
invariant9(invitation.swarmKey, void 0, {
|
|
2768
|
-
F:
|
|
2790
|
+
F: __dxlog_file13,
|
|
2769
2791
|
L: 345,
|
|
2770
2792
|
S: this,
|
|
2771
2793
|
A: [
|
|
@@ -2859,16 +2881,29 @@ var InvitationsHandler = class {
|
|
|
2859
2881
|
};
|
|
2860
2882
|
}
|
|
2861
2883
|
_logStateUpdate(invitation, actor, newState) {
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2884
|
+
if (this._isNotTerminal(newState)) {
|
|
2885
|
+
log10("invitation state update", {
|
|
2886
|
+
actor: actor?.constructor.name,
|
|
2887
|
+
newState: stateToString(newState),
|
|
2888
|
+
oldState: stateToString(invitation.state)
|
|
2889
|
+
}, {
|
|
2890
|
+
F: __dxlog_file13,
|
|
2891
|
+
L: 439,
|
|
2892
|
+
S: this,
|
|
2893
|
+
C: (f, a) => f(...a)
|
|
2894
|
+
});
|
|
2895
|
+
} else {
|
|
2896
|
+
log10.info("invitation state update", {
|
|
2897
|
+
actor: actor?.constructor.name,
|
|
2898
|
+
newState: stateToString(newState),
|
|
2899
|
+
oldState: stateToString(invitation.state)
|
|
2900
|
+
}, {
|
|
2901
|
+
F: __dxlog_file13,
|
|
2902
|
+
L: 445,
|
|
2903
|
+
S: this,
|
|
2904
|
+
C: (f, a) => f(...a)
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2872
2907
|
}
|
|
2873
2908
|
_isNotTerminal(currentState) {
|
|
2874
2909
|
return ![
|
|
@@ -2882,16 +2917,16 @@ var InvitationsHandler = class {
|
|
|
2882
2917
|
async _handleGuestOtpAuth(extension, setState, authenticated, options) {
|
|
2883
2918
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
2884
2919
|
log10("guest waiting for authentication code...", void 0, {
|
|
2885
|
-
F:
|
|
2886
|
-
L:
|
|
2920
|
+
F: __dxlog_file13,
|
|
2921
|
+
L: 470,
|
|
2887
2922
|
S: this,
|
|
2888
2923
|
C: (f, a) => f(...a)
|
|
2889
2924
|
});
|
|
2890
2925
|
setState(Invitation4.State.READY_FOR_AUTHENTICATION);
|
|
2891
2926
|
const authCode = await authenticated.wait(options);
|
|
2892
2927
|
log10("sending authentication request", void 0, {
|
|
2893
|
-
F:
|
|
2894
|
-
L:
|
|
2928
|
+
F: __dxlog_file13,
|
|
2929
|
+
L: 474,
|
|
2895
2930
|
S: this,
|
|
2896
2931
|
C: (f, a) => f(...a)
|
|
2897
2932
|
});
|
|
@@ -2909,8 +2944,8 @@ var InvitationsHandler = class {
|
|
|
2909
2944
|
log10("retrying invalid code", {
|
|
2910
2945
|
attempt
|
|
2911
2946
|
}, {
|
|
2912
|
-
F:
|
|
2913
|
-
L:
|
|
2947
|
+
F: __dxlog_file13,
|
|
2948
|
+
L: 485,
|
|
2914
2949
|
S: this,
|
|
2915
2950
|
C: (f, a) => f(...a)
|
|
2916
2951
|
});
|
|
@@ -2927,8 +2962,8 @@ var InvitationsHandler = class {
|
|
|
2927
2962
|
throw new Error("challenge missing in the introduction");
|
|
2928
2963
|
}
|
|
2929
2964
|
log10("sending authentication request", void 0, {
|
|
2930
|
-
F:
|
|
2931
|
-
L:
|
|
2965
|
+
F: __dxlog_file13,
|
|
2966
|
+
L: 504,
|
|
2932
2967
|
S: this,
|
|
2933
2968
|
C: (f, a) => f(...a)
|
|
2934
2969
|
});
|
|
@@ -3055,7 +3090,7 @@ import { log as log11 } from "@dxos/log";
|
|
|
3055
3090
|
import { AlreadyJoinedError as AlreadyJoinedError2, AuthorizationError, InvalidInvitationError, SpaceNotFoundError } from "@dxos/protocols";
|
|
3056
3091
|
import { Invitation as Invitation5 } from "@dxos/protocols/proto/dxos/client/services";
|
|
3057
3092
|
import { SpaceMember as SpaceMember2 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
3058
|
-
var
|
|
3093
|
+
var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
|
|
3059
3094
|
var SpaceInvitationProtocol = class {
|
|
3060
3095
|
constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
|
|
3061
3096
|
this._spaceManager = _spaceManager;
|
|
@@ -3090,7 +3125,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3090
3125
|
}
|
|
3091
3126
|
async admit(invitation, request, guestProfile) {
|
|
3092
3127
|
invariant10(this._spaceKey, void 0, {
|
|
3093
|
-
F:
|
|
3128
|
+
F: __dxlog_file14,
|
|
3094
3129
|
L: 76,
|
|
3095
3130
|
S: this,
|
|
3096
3131
|
A: [
|
|
@@ -3100,7 +3135,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3100
3135
|
});
|
|
3101
3136
|
const space = this._spaceManager.spaces.get(this._spaceKey);
|
|
3102
3137
|
invariant10(space, void 0, {
|
|
3103
|
-
F:
|
|
3138
|
+
F: __dxlog_file14,
|
|
3104
3139
|
L: 78,
|
|
3105
3140
|
S: this,
|
|
3106
3141
|
A: [
|
|
@@ -3109,7 +3144,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3109
3144
|
]
|
|
3110
3145
|
});
|
|
3111
3146
|
invariant10(request.space, void 0, {
|
|
3112
|
-
F:
|
|
3147
|
+
F: __dxlog_file14,
|
|
3113
3148
|
L: 80,
|
|
3114
3149
|
S: this,
|
|
3115
3150
|
A: [
|
|
@@ -3125,14 +3160,14 @@ var SpaceInvitationProtocol = class {
|
|
|
3125
3160
|
host: this._signingContext.deviceKey,
|
|
3126
3161
|
guest: deviceKey
|
|
3127
3162
|
}, {
|
|
3128
|
-
F:
|
|
3163
|
+
F: __dxlog_file14,
|
|
3129
3164
|
L: 87,
|
|
3130
3165
|
S: this,
|
|
3131
3166
|
C: (f, a) => f(...a)
|
|
3132
3167
|
});
|
|
3133
3168
|
const credentials = await createAdmissionCredentials(this._signingContext.credentialSigner, identityKey, space.key, space.inner.genesisFeedKey, invitation.role ?? SpaceMember2.Role.ADMIN, space.inner.spaceState.membershipChainHeads, guestProfile, invitation.delegationCredentialId);
|
|
3134
3169
|
invariant10(credentials[0].credential, void 0, {
|
|
3135
|
-
F:
|
|
3170
|
+
F: __dxlog_file14,
|
|
3136
3171
|
L: 101,
|
|
3137
3172
|
S: this,
|
|
3138
3173
|
A: [
|
|
@@ -3142,7 +3177,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3142
3177
|
});
|
|
3143
3178
|
const spaceMemberCredential = credentials[0].credential.credential;
|
|
3144
3179
|
invariant10(getCredentialAssertion2(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
3145
|
-
F:
|
|
3180
|
+
F: __dxlog_file14,
|
|
3146
3181
|
L: 103,
|
|
3147
3182
|
S: this,
|
|
3148
3183
|
A: [
|
|
@@ -3160,7 +3195,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3160
3195
|
}
|
|
3161
3196
|
async delegate(invitation) {
|
|
3162
3197
|
invariant10(this._spaceKey, void 0, {
|
|
3163
|
-
F:
|
|
3198
|
+
F: __dxlog_file14,
|
|
3164
3199
|
L: 116,
|
|
3165
3200
|
S: this,
|
|
3166
3201
|
A: [
|
|
@@ -3170,7 +3205,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3170
3205
|
});
|
|
3171
3206
|
const space = this._spaceManager.spaces.get(this._spaceKey);
|
|
3172
3207
|
invariant10(space, void 0, {
|
|
3173
|
-
F:
|
|
3208
|
+
F: __dxlog_file14,
|
|
3174
3209
|
L: 118,
|
|
3175
3210
|
S: this,
|
|
3176
3211
|
A: [
|
|
@@ -3180,7 +3215,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3180
3215
|
});
|
|
3181
3216
|
if (invitation.authMethod === Invitation5.AuthMethod.KNOWN_PUBLIC_KEY) {
|
|
3182
3217
|
invariant10(invitation.guestKeypair?.publicKey, void 0, {
|
|
3183
|
-
F:
|
|
3218
|
+
F: __dxlog_file14,
|
|
3184
3219
|
L: 120,
|
|
3185
3220
|
S: this,
|
|
3186
3221
|
A: [
|
|
@@ -3193,7 +3228,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3193
3228
|
host: this._signingContext.deviceKey,
|
|
3194
3229
|
id: invitation.invitationId
|
|
3195
3230
|
}, {
|
|
3196
|
-
F:
|
|
3231
|
+
F: __dxlog_file14,
|
|
3197
3232
|
L: 123,
|
|
3198
3233
|
S: this,
|
|
3199
3234
|
C: (f, a) => f(...a)
|
|
@@ -3208,7 +3243,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3208
3243
|
guestKey: invitation.authMethod === Invitation5.AuthMethod.KNOWN_PUBLIC_KEY ? invitation.guestKeypair.publicKey : void 0
|
|
3209
3244
|
});
|
|
3210
3245
|
invariant10(credential.credential, void 0, {
|
|
3211
|
-
F:
|
|
3246
|
+
F: __dxlog_file14,
|
|
3212
3247
|
L: 143,
|
|
3213
3248
|
S: this,
|
|
3214
3249
|
A: [
|
|
@@ -3223,7 +3258,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3223
3258
|
}
|
|
3224
3259
|
async cancelDelegation(invitation) {
|
|
3225
3260
|
invariant10(this._spaceKey, void 0, {
|
|
3226
|
-
F:
|
|
3261
|
+
F: __dxlog_file14,
|
|
3227
3262
|
L: 149,
|
|
3228
3263
|
S: this,
|
|
3229
3264
|
A: [
|
|
@@ -3232,7 +3267,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3232
3267
|
]
|
|
3233
3268
|
});
|
|
3234
3269
|
invariant10(invitation.type === Invitation5.Type.DELEGATED && invitation.delegationCredentialId, void 0, {
|
|
3235
|
-
F:
|
|
3270
|
+
F: __dxlog_file14,
|
|
3236
3271
|
L: 150,
|
|
3237
3272
|
S: this,
|
|
3238
3273
|
A: [
|
|
@@ -3242,7 +3277,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3242
3277
|
});
|
|
3243
3278
|
const space = this._spaceManager.spaces.get(this._spaceKey);
|
|
3244
3279
|
invariant10(space, void 0, {
|
|
3245
|
-
F:
|
|
3280
|
+
F: __dxlog_file14,
|
|
3246
3281
|
L: 152,
|
|
3247
3282
|
S: this,
|
|
3248
3283
|
A: [
|
|
@@ -3254,14 +3289,14 @@ var SpaceInvitationProtocol = class {
|
|
|
3254
3289
|
host: this._signingContext.deviceKey,
|
|
3255
3290
|
id: invitation.invitationId
|
|
3256
3291
|
}, {
|
|
3257
|
-
F:
|
|
3292
|
+
F: __dxlog_file14,
|
|
3258
3293
|
L: 154,
|
|
3259
3294
|
S: this,
|
|
3260
3295
|
C: (f, a) => f(...a)
|
|
3261
3296
|
});
|
|
3262
3297
|
const credential = await createCancelDelegatedSpaceInvitationCredential(this._signingContext.credentialSigner, space.key, invitation.delegationCredentialId);
|
|
3263
3298
|
invariant10(credential.credential, void 0, {
|
|
3264
|
-
F:
|
|
3299
|
+
F: __dxlog_file14,
|
|
3265
3300
|
L: 161,
|
|
3266
3301
|
S: this,
|
|
3267
3302
|
A: [
|
|
@@ -3300,7 +3335,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3300
3335
|
}
|
|
3301
3336
|
async accept(response) {
|
|
3302
3337
|
invariant10(response.space, void 0, {
|
|
3303
|
-
F:
|
|
3338
|
+
F: __dxlog_file14,
|
|
3304
3339
|
L: 196,
|
|
3305
3340
|
S: this,
|
|
3306
3341
|
A: [
|
|
@@ -3311,7 +3346,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3311
3346
|
const { credential, controlTimeframe, dataTimeframe } = response.space;
|
|
3312
3347
|
const assertion = getCredentialAssertion2(credential);
|
|
3313
3348
|
invariant10(assertion["@type"] === "dxos.halo.credentials.SpaceMember", "Invalid credential", {
|
|
3314
|
-
F:
|
|
3349
|
+
F: __dxlog_file14,
|
|
3315
3350
|
L: 199,
|
|
3316
3351
|
S: this,
|
|
3317
3352
|
A: [
|
|
@@ -3320,7 +3355,7 @@ var SpaceInvitationProtocol = class {
|
|
|
3320
3355
|
]
|
|
3321
3356
|
});
|
|
3322
3357
|
invariant10(credential.subject.id.equals(this._signingContext.identityKey), void 0, {
|
|
3323
|
-
F:
|
|
3358
|
+
F: __dxlog_file14,
|
|
3324
3359
|
L: 200,
|
|
3325
3360
|
S: this,
|
|
3326
3361
|
A: [
|
|
@@ -3355,7 +3390,7 @@ import { PublicKey as PublicKey8 } from "@dxos/keys";
|
|
|
3355
3390
|
import { log as log12 } from "@dxos/log";
|
|
3356
3391
|
import { Invitation as Invitation6 } from "@dxos/protocols/proto/dxos/client/services";
|
|
3357
3392
|
import { SpaceMember as SpaceMember3 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
3358
|
-
var
|
|
3393
|
+
var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
|
|
3359
3394
|
var InvitationsManager = class {
|
|
3360
3395
|
constructor(_invitationsHandler, _getHandler, _metadataStore) {
|
|
3361
3396
|
this._invitationsHandler = _invitationsHandler;
|
|
@@ -3398,7 +3433,7 @@ var InvitationsManager = class {
|
|
|
3398
3433
|
await this._persistIfRequired(handler, stream, invitation);
|
|
3399
3434
|
} catch (err) {
|
|
3400
3435
|
log12.catch(err, void 0, {
|
|
3401
|
-
F:
|
|
3436
|
+
F: __dxlog_file15,
|
|
3402
3437
|
L: 82,
|
|
3403
3438
|
S: this,
|
|
3404
3439
|
C: (f, a) => f(...a)
|
|
@@ -3421,7 +3456,7 @@ var InvitationsManager = class {
|
|
|
3421
3456
|
const freshInvitations = persistentInvitations.filter((invitation) => !hasInvitationExpired(invitation));
|
|
3422
3457
|
const loadTasks = freshInvitations.map((persistentInvitation) => {
|
|
3423
3458
|
invariant11(!this._createInvitations.get(persistentInvitation.invitationId), "invitation already exists", {
|
|
3424
|
-
F:
|
|
3459
|
+
F: __dxlog_file15,
|
|
3425
3460
|
L: 103,
|
|
3426
3461
|
S: this,
|
|
3427
3462
|
A: [
|
|
@@ -3440,7 +3475,7 @@ var InvitationsManager = class {
|
|
|
3440
3475
|
};
|
|
3441
3476
|
} catch (err) {
|
|
3442
3477
|
log12.catch(err, void 0, {
|
|
3443
|
-
F:
|
|
3478
|
+
F: __dxlog_file15,
|
|
3444
3479
|
L: 110,
|
|
3445
3480
|
S: this,
|
|
3446
3481
|
C: (f, a) => f(...a)
|
|
@@ -3472,13 +3507,13 @@ var InvitationsManager = class {
|
|
|
3472
3507
|
}
|
|
3473
3508
|
async authenticate({ invitationId, authCode }) {
|
|
3474
3509
|
log12("authenticating...", void 0, {
|
|
3475
|
-
F:
|
|
3510
|
+
F: __dxlog_file15,
|
|
3476
3511
|
L: 140,
|
|
3477
3512
|
S: this,
|
|
3478
3513
|
C: (f, a) => f(...a)
|
|
3479
3514
|
});
|
|
3480
3515
|
invariant11(invitationId, void 0, {
|
|
3481
|
-
F:
|
|
3516
|
+
F: __dxlog_file15,
|
|
3482
3517
|
L: 141,
|
|
3483
3518
|
S: this,
|
|
3484
3519
|
A: [
|
|
@@ -3491,7 +3526,7 @@ var InvitationsManager = class {
|
|
|
3491
3526
|
log12.warn("invalid invitation", {
|
|
3492
3527
|
invitationId
|
|
3493
3528
|
}, {
|
|
3494
|
-
F:
|
|
3529
|
+
F: __dxlog_file15,
|
|
3495
3530
|
L: 144,
|
|
3496
3531
|
S: this,
|
|
3497
3532
|
C: (f, a) => f(...a)
|
|
@@ -3504,13 +3539,13 @@ var InvitationsManager = class {
|
|
|
3504
3539
|
log12("cancelInvitation...", {
|
|
3505
3540
|
invitationId
|
|
3506
3541
|
}, {
|
|
3507
|
-
F:
|
|
3542
|
+
F: __dxlog_file15,
|
|
3508
3543
|
L: 151,
|
|
3509
3544
|
S: this,
|
|
3510
3545
|
C: (f, a) => f(...a)
|
|
3511
3546
|
});
|
|
3512
3547
|
invariant11(invitationId, void 0, {
|
|
3513
|
-
F:
|
|
3548
|
+
F: __dxlog_file15,
|
|
3514
3549
|
L: 152,
|
|
3515
3550
|
S: this,
|
|
3516
3551
|
A: [
|
|
@@ -3584,12 +3619,15 @@ var InvitationsManager = class {
|
|
|
3584
3619
|
stream.error(err);
|
|
3585
3620
|
void ctx.dispose();
|
|
3586
3621
|
}
|
|
3622
|
+
}, {
|
|
3623
|
+
F: __dxlog_file15,
|
|
3624
|
+
L: 234
|
|
3587
3625
|
});
|
|
3588
3626
|
ctx.onDispose(() => {
|
|
3589
3627
|
log12("complete", {
|
|
3590
3628
|
...handler.toJSON()
|
|
3591
3629
|
}, {
|
|
3592
|
-
F:
|
|
3630
|
+
F: __dxlog_file15,
|
|
3593
3631
|
L: 241,
|
|
3594
3632
|
S: this,
|
|
3595
3633
|
C: (f, a) => f(...a)
|
|
@@ -3622,7 +3660,7 @@ var InvitationsManager = class {
|
|
|
3622
3660
|
log12("timeout", {
|
|
3623
3661
|
...handler.toJSON()
|
|
3624
3662
|
}, {
|
|
3625
|
-
F:
|
|
3663
|
+
F: __dxlog_file15,
|
|
3626
3664
|
L: 261,
|
|
3627
3665
|
S: this,
|
|
3628
3666
|
C: (f, a) => f(...a)
|
|
@@ -3633,7 +3671,7 @@ var InvitationsManager = class {
|
|
|
3633
3671
|
});
|
|
3634
3672
|
} else {
|
|
3635
3673
|
log12.warn("auth failed", err, {
|
|
3636
|
-
F:
|
|
3674
|
+
F: __dxlog_file15,
|
|
3637
3675
|
L: 264,
|
|
3638
3676
|
S: this,
|
|
3639
3677
|
C: (f, a) => f(...a)
|
|
@@ -3645,12 +3683,15 @@ var InvitationsManager = class {
|
|
|
3645
3683
|
}
|
|
3646
3684
|
void ctx.dispose();
|
|
3647
3685
|
}
|
|
3686
|
+
}, {
|
|
3687
|
+
F: __dxlog_file15,
|
|
3688
|
+
L: 258
|
|
3648
3689
|
});
|
|
3649
3690
|
ctx.onDispose(() => {
|
|
3650
3691
|
log12("complete", {
|
|
3651
3692
|
...handler.toJSON()
|
|
3652
3693
|
}, {
|
|
3653
|
-
F:
|
|
3694
|
+
F: __dxlog_file15,
|
|
3654
3695
|
L: 271,
|
|
3655
3696
|
S: this,
|
|
3656
3697
|
C: (f, a) => f(...a)
|
|
@@ -3695,7 +3736,7 @@ var InvitationsManager = class {
|
|
|
3695
3736
|
await this._metadataStore.removeInvitation(invitation.invitationId);
|
|
3696
3737
|
} catch (err) {
|
|
3697
3738
|
log12.catch(err, void 0, {
|
|
3698
|
-
F:
|
|
3739
|
+
F: __dxlog_file15,
|
|
3699
3740
|
L: 307,
|
|
3700
3741
|
S: this,
|
|
3701
3742
|
C: (f, a) => f(...a)
|
|
@@ -3782,7 +3823,7 @@ import { invariant as invariant12 } from "@dxos/invariant";
|
|
|
3782
3823
|
import { log as log13 } from "@dxos/log";
|
|
3783
3824
|
import { CreateEpochRequest } from "@dxos/protocols/proto/dxos/client/services";
|
|
3784
3825
|
import { assignDeep } from "@dxos/util";
|
|
3785
|
-
var
|
|
3826
|
+
var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
|
|
3786
3827
|
var runEpochMigration = async (ctx, context) => {
|
|
3787
3828
|
switch (context.migration) {
|
|
3788
3829
|
case CreateEpochRequest.Migration.INIT_AUTOMERGE: {
|
|
@@ -3806,7 +3847,7 @@ var runEpochMigration = async (ctx, context) => {
|
|
|
3806
3847
|
}
|
|
3807
3848
|
case CreateEpochRequest.Migration.FRAGMENT_AUTOMERGE_ROOT: {
|
|
3808
3849
|
log13.info("Fragmenting", void 0, {
|
|
3809
|
-
F:
|
|
3850
|
+
F: __dxlog_file16,
|
|
3810
3851
|
L: 63,
|
|
3811
3852
|
S: void 0,
|
|
3812
3853
|
C: (f, a) => f(...a)
|
|
@@ -3818,7 +3859,7 @@ var runEpochMigration = async (ctx, context) => {
|
|
|
3818
3859
|
const properties = findInlineObjectOfType(rootHandle.docSync(), TYPE_PROPERTIES);
|
|
3819
3860
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
3820
3861
|
invariant12(properties, "Properties not found", {
|
|
3821
|
-
F:
|
|
3862
|
+
F: __dxlog_file16,
|
|
3822
3863
|
L: 73,
|
|
3823
3864
|
S: void 0,
|
|
3824
3865
|
A: [
|
|
@@ -3834,7 +3875,7 @@ var runEpochMigration = async (ctx, context) => {
|
|
|
3834
3875
|
};
|
|
3835
3876
|
const newRoot = context.repo.create(newSpaceDoc);
|
|
3836
3877
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
3837
|
-
F:
|
|
3878
|
+
F: __dxlog_file16,
|
|
3838
3879
|
L: 78,
|
|
3839
3880
|
S: void 0,
|
|
3840
3881
|
A: [
|
|
@@ -3865,7 +3906,7 @@ var runEpochMigration = async (ctx, context) => {
|
|
|
3865
3906
|
const rootHandle = context.repo.find(currentRootUrl);
|
|
3866
3907
|
await cancelWithContext4(ctx, asyncTimeout2(rootHandle.whenReady(), 1e4));
|
|
3867
3908
|
invariant12(rootHandle.docSync(), "Root doc not found", {
|
|
3868
|
-
F:
|
|
3909
|
+
F: __dxlog_file16,
|
|
3869
3910
|
L: 100,
|
|
3870
3911
|
S: void 0,
|
|
3871
3912
|
A: [
|
|
@@ -3878,7 +3919,7 @@ var runEpochMigration = async (ctx, context) => {
|
|
|
3878
3919
|
const handle = context.repo.find(url);
|
|
3879
3920
|
await cancelWithContext4(ctx, asyncTimeout2(handle.whenReady(), 1e4));
|
|
3880
3921
|
invariant12(handle.docSync(), "Doc not found", {
|
|
3881
|
-
F:
|
|
3922
|
+
F: __dxlog_file16,
|
|
3882
3923
|
L: 107,
|
|
3883
3924
|
S: void 0,
|
|
3884
3925
|
A: [
|
|
@@ -3900,7 +3941,7 @@ var runEpochMigration = async (ctx, context) => {
|
|
|
3900
3941
|
}
|
|
3901
3942
|
case CreateEpochRequest.Migration.REPLACE_AUTOMERGE_ROOT: {
|
|
3902
3943
|
invariant12(context.newAutomergeRoot, void 0, {
|
|
3903
|
-
F:
|
|
3944
|
+
F: __dxlog_file16,
|
|
3904
3945
|
L: 124,
|
|
3905
3946
|
S: void 0,
|
|
3906
3947
|
A: [
|
|
@@ -3926,14 +3967,17 @@ import { log as log14 } from "@dxos/log";
|
|
|
3926
3967
|
import { schema as schema4 } from "@dxos/protocols";
|
|
3927
3968
|
import { RpcExtension as RpcExtension3 } from "@dxos/teleport";
|
|
3928
3969
|
import { ComplexMap as ComplexMap2, ComplexSet as ComplexSet4, entry } from "@dxos/util";
|
|
3929
|
-
var
|
|
3970
|
+
var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
|
|
3930
3971
|
var DEFAULT_RETRY_TIMEOUT = 1e3;
|
|
3931
3972
|
var DEFAULT_SUCCESS_DELAY = 1e3;
|
|
3932
3973
|
var DEFAULT_NOTARIZE_TIMEOUT = 1e4;
|
|
3933
3974
|
var WRITER_NOT_SET_ERROR_CODE = "WRITER_NOT_SET";
|
|
3934
3975
|
var NotarizationPlugin = class {
|
|
3935
3976
|
constructor() {
|
|
3936
|
-
this._ctx = new Context7(
|
|
3977
|
+
this._ctx = new Context7(void 0, {
|
|
3978
|
+
F: __dxlog_file17,
|
|
3979
|
+
L: 62
|
|
3980
|
+
});
|
|
3937
3981
|
this._extensionOpened = new Event5();
|
|
3938
3982
|
this._extensions = /* @__PURE__ */ new Set();
|
|
3939
3983
|
this._processedCredentials = new ComplexSet4(PublicKey9.hash);
|
|
@@ -3954,13 +3998,13 @@ var NotarizationPlugin = class {
|
|
|
3954
3998
|
log14("notarize", {
|
|
3955
3999
|
credentials
|
|
3956
4000
|
}, {
|
|
3957
|
-
F:
|
|
4001
|
+
F: __dxlog_file17,
|
|
3958
4002
|
L: 90,
|
|
3959
4003
|
S: this,
|
|
3960
4004
|
C: (f, a) => f(...a)
|
|
3961
4005
|
});
|
|
3962
4006
|
invariant13(credentials.every((credential) => credential.id), "Credentials must have an id", {
|
|
3963
|
-
F:
|
|
4007
|
+
F: __dxlog_file17,
|
|
3964
4008
|
L: 91,
|
|
3965
4009
|
S: this,
|
|
3966
4010
|
A: [
|
|
@@ -3974,7 +4018,7 @@ var NotarizationPlugin = class {
|
|
|
3974
4018
|
log14.warn("Notarization error", {
|
|
3975
4019
|
err
|
|
3976
4020
|
}, {
|
|
3977
|
-
F:
|
|
4021
|
+
F: __dxlog_file17,
|
|
3978
4022
|
L: 99,
|
|
3979
4023
|
S: this,
|
|
3980
4024
|
C: (f, a) => f(...a)
|
|
@@ -3990,7 +4034,7 @@ var NotarizationPlugin = class {
|
|
|
3990
4034
|
timeout,
|
|
3991
4035
|
peers: Array.from(this._extensions).map((extension) => extension.remotePeerId)
|
|
3992
4036
|
}, {
|
|
3993
|
-
F:
|
|
4037
|
+
F: __dxlog_file17,
|
|
3994
4038
|
L: 111,
|
|
3995
4039
|
S: this,
|
|
3996
4040
|
C: (f, a) => f(...a)
|
|
@@ -4013,7 +4057,7 @@ var NotarizationPlugin = class {
|
|
|
4013
4057
|
log14.info("Exhausted all peers to notarize with", {
|
|
4014
4058
|
retryIn: retryTimeout
|
|
4015
4059
|
}, {
|
|
4016
|
-
F:
|
|
4060
|
+
F: __dxlog_file17,
|
|
4017
4061
|
L: 136,
|
|
4018
4062
|
S: this,
|
|
4019
4063
|
C: (f, a) => f(...a)
|
|
@@ -4027,7 +4071,7 @@ var NotarizationPlugin = class {
|
|
|
4027
4071
|
peer: peer.localPeerId,
|
|
4028
4072
|
credentialId: credentials.map((credential) => credential.id)
|
|
4029
4073
|
}, {
|
|
4030
|
-
F:
|
|
4074
|
+
F: __dxlog_file17,
|
|
4031
4075
|
L: 143,
|
|
4032
4076
|
S: this,
|
|
4033
4077
|
C: (f, a) => f(...a)
|
|
@@ -4036,7 +4080,7 @@ var NotarizationPlugin = class {
|
|
|
4036
4080
|
credentials: credentials.filter((credential) => !this._processedCredentials.has(credential.id))
|
|
4037
4081
|
});
|
|
4038
4082
|
log14("success", void 0, {
|
|
4039
|
-
F:
|
|
4083
|
+
F: __dxlog_file17,
|
|
4040
4084
|
L: 147,
|
|
4041
4085
|
S: this,
|
|
4042
4086
|
C: (f, a) => f(...a)
|
|
@@ -4045,7 +4089,7 @@ var NotarizationPlugin = class {
|
|
|
4045
4089
|
} catch (err) {
|
|
4046
4090
|
if (!ctx.disposed && !err.message.includes(WRITER_NOT_SET_ERROR_CODE)) {
|
|
4047
4091
|
log14.info("error notarizing (recoverable)", err, {
|
|
4048
|
-
F:
|
|
4092
|
+
F: __dxlog_file17,
|
|
4049
4093
|
L: 151,
|
|
4050
4094
|
S: this,
|
|
4051
4095
|
C: (f, a) => f(...a)
|
|
@@ -4063,7 +4107,7 @@ var NotarizationPlugin = class {
|
|
|
4063
4107
|
errors.wait()
|
|
4064
4108
|
]);
|
|
4065
4109
|
log14("done", void 0, {
|
|
4066
|
-
F:
|
|
4110
|
+
F: __dxlog_file17,
|
|
4067
4111
|
L: 162,
|
|
4068
4112
|
S: this,
|
|
4069
4113
|
C: (f, a) => f(...a)
|
|
@@ -4085,7 +4129,7 @@ var NotarizationPlugin = class {
|
|
|
4085
4129
|
}
|
|
4086
4130
|
setWriter(writer) {
|
|
4087
4131
|
invariant13(!this._writer, "Writer already set.", {
|
|
4088
|
-
F:
|
|
4132
|
+
F: __dxlog_file17,
|
|
4089
4133
|
L: 181,
|
|
4090
4134
|
S: this,
|
|
4091
4135
|
A: [
|
|
@@ -4110,7 +4154,7 @@ var NotarizationPlugin = class {
|
|
|
4110
4154
|
}
|
|
4111
4155
|
for (const credential of request.credentials ?? []) {
|
|
4112
4156
|
invariant13(credential.id, "Credential must have an id", {
|
|
4113
|
-
F:
|
|
4157
|
+
F: __dxlog_file17,
|
|
4114
4158
|
L: 200,
|
|
4115
4159
|
S: this,
|
|
4116
4160
|
A: [
|
|
@@ -4130,7 +4174,7 @@ var NotarizationPlugin = class {
|
|
|
4130
4174
|
log14("extension opened", {
|
|
4131
4175
|
peer: extension.localPeerId
|
|
4132
4176
|
}, {
|
|
4133
|
-
F:
|
|
4177
|
+
F: __dxlog_file17,
|
|
4134
4178
|
L: 211,
|
|
4135
4179
|
S: this,
|
|
4136
4180
|
C: (f, a) => f(...a)
|
|
@@ -4142,7 +4186,7 @@ var NotarizationPlugin = class {
|
|
|
4142
4186
|
log14("extension closed", {
|
|
4143
4187
|
peer: extension.localPeerId
|
|
4144
4188
|
}, {
|
|
4145
|
-
F:
|
|
4189
|
+
F: __dxlog_file17,
|
|
4146
4190
|
L: 216,
|
|
4147
4191
|
S: this,
|
|
4148
4192
|
C: (f, a) => f(...a)
|
|
@@ -4259,10 +4303,13 @@ function _using_ctx() {
|
|
|
4259
4303
|
}
|
|
4260
4304
|
};
|
|
4261
4305
|
}
|
|
4262
|
-
var
|
|
4306
|
+
var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
|
|
4263
4307
|
var DataSpace = class {
|
|
4264
4308
|
constructor(params) {
|
|
4265
|
-
this._ctx = new Context8(
|
|
4309
|
+
this._ctx = new Context8(void 0, {
|
|
4310
|
+
F: __dxlog_file18,
|
|
4311
|
+
L: 84
|
|
4312
|
+
});
|
|
4266
4313
|
this._notarizationPlugin = new NotarizationPlugin();
|
|
4267
4314
|
this._cache = void 0;
|
|
4268
4315
|
// TODO(dmaretskyi): Move into Space?
|
|
@@ -4296,7 +4343,7 @@ var DataSpace = class {
|
|
|
4296
4343
|
log15("new state", {
|
|
4297
4344
|
state: SpaceState2[this._state]
|
|
4298
4345
|
}, {
|
|
4299
|
-
F:
|
|
4346
|
+
F: __dxlog_file18,
|
|
4300
4347
|
L: 146,
|
|
4301
4348
|
S: this,
|
|
4302
4349
|
C: (f, a) => f(...a)
|
|
@@ -4351,12 +4398,15 @@ var DataSpace = class {
|
|
|
4351
4398
|
await this._inner.spaceState.addCredentialProcessor(this._notarizationPlugin);
|
|
4352
4399
|
await this._automergeSpaceState.open();
|
|
4353
4400
|
await this._inner.spaceState.addCredentialProcessor(this._automergeSpaceState);
|
|
4354
|
-
await this._inner.open(new Context8(
|
|
4401
|
+
await this._inner.open(new Context8(void 0, {
|
|
4402
|
+
F: __dxlog_file18,
|
|
4403
|
+
L: 215
|
|
4404
|
+
}));
|
|
4355
4405
|
this._state = SpaceState2.CONTROL_ONLY;
|
|
4356
4406
|
log15("new state", {
|
|
4357
4407
|
state: SpaceState2[this._state]
|
|
4358
4408
|
}, {
|
|
4359
|
-
F:
|
|
4409
|
+
F: __dxlog_file18,
|
|
4360
4410
|
L: 217,
|
|
4361
4411
|
S: this,
|
|
4362
4412
|
C: (f, a) => f(...a)
|
|
@@ -4374,13 +4424,16 @@ var DataSpace = class {
|
|
|
4374
4424
|
log15("new state", {
|
|
4375
4425
|
state: SpaceState2[this._state]
|
|
4376
4426
|
}, {
|
|
4377
|
-
F:
|
|
4427
|
+
F: __dxlog_file18,
|
|
4378
4428
|
L: 231,
|
|
4379
4429
|
S: this,
|
|
4380
4430
|
C: (f, a) => f(...a)
|
|
4381
4431
|
});
|
|
4382
4432
|
await this._ctx.dispose();
|
|
4383
|
-
this._ctx = new Context8(
|
|
4433
|
+
this._ctx = new Context8(void 0, {
|
|
4434
|
+
F: __dxlog_file18,
|
|
4435
|
+
L: 233
|
|
4436
|
+
});
|
|
4384
4437
|
await this.authVerifier.close();
|
|
4385
4438
|
await this._inner.close();
|
|
4386
4439
|
await this._inner.spaceState.removeCredentialProcessor(this._automergeSpaceState);
|
|
@@ -4407,7 +4460,7 @@ var DataSpace = class {
|
|
|
4407
4460
|
} catch (err) {
|
|
4408
4461
|
if (err instanceof CancelledError || err instanceof ContextDisposedError3) {
|
|
4409
4462
|
log15("data pipeline initialization cancelled", err, {
|
|
4410
|
-
F:
|
|
4463
|
+
F: __dxlog_file18,
|
|
4411
4464
|
L: 265,
|
|
4412
4465
|
S: this,
|
|
4413
4466
|
C: (f, a) => f(...a)
|
|
@@ -4415,7 +4468,7 @@ var DataSpace = class {
|
|
|
4415
4468
|
return;
|
|
4416
4469
|
}
|
|
4417
4470
|
log15.error("Error initializing data pipeline", err, {
|
|
4418
|
-
F:
|
|
4471
|
+
F: __dxlog_file18,
|
|
4419
4472
|
L: 269,
|
|
4420
4473
|
S: this,
|
|
4421
4474
|
C: (f, a) => f(...a)
|
|
@@ -4424,7 +4477,7 @@ var DataSpace = class {
|
|
|
4424
4477
|
log15("new state", {
|
|
4425
4478
|
state: SpaceState2[this._state]
|
|
4426
4479
|
}, {
|
|
4427
|
-
F:
|
|
4480
|
+
F: __dxlog_file18,
|
|
4428
4481
|
L: 271,
|
|
4429
4482
|
S: this,
|
|
4430
4483
|
C: (f, a) => f(...a)
|
|
@@ -4444,7 +4497,7 @@ var DataSpace = class {
|
|
|
4444
4497
|
log15("new state", {
|
|
4445
4498
|
state: SpaceState2[this._state]
|
|
4446
4499
|
}, {
|
|
4447
|
-
F:
|
|
4500
|
+
F: __dxlog_file18,
|
|
4448
4501
|
L: 287,
|
|
4449
4502
|
S: this,
|
|
4450
4503
|
C: (f, a) => f(...a)
|
|
@@ -4461,7 +4514,7 @@ var DataSpace = class {
|
|
|
4461
4514
|
log15("new state", {
|
|
4462
4515
|
state: SpaceState2[this._state]
|
|
4463
4516
|
}, {
|
|
4464
|
-
F:
|
|
4517
|
+
F: __dxlog_file18,
|
|
4465
4518
|
L: 306,
|
|
4466
4519
|
S: this,
|
|
4467
4520
|
C: (f, a) => f(...a)
|
|
@@ -4477,7 +4530,7 @@ var DataSpace = class {
|
|
|
4477
4530
|
this.metrics.controlPipelineReady = /* @__PURE__ */ new Date();
|
|
4478
4531
|
await this._createWritableFeeds();
|
|
4479
4532
|
log15("writable feeds created", void 0, {
|
|
4480
|
-
F:
|
|
4533
|
+
F: __dxlog_file18,
|
|
4481
4534
|
L: 322,
|
|
4482
4535
|
S: this,
|
|
4483
4536
|
C: (f, a) => f(...a)
|
|
@@ -4540,7 +4593,7 @@ var DataSpace = class {
|
|
|
4540
4593
|
space: this.key,
|
|
4541
4594
|
rootUrl
|
|
4542
4595
|
}, {
|
|
4543
|
-
F:
|
|
4596
|
+
F: __dxlog_file18,
|
|
4544
4597
|
L: 388,
|
|
4545
4598
|
S: this,
|
|
4546
4599
|
C: (f, a) => f(...a)
|
|
@@ -4594,7 +4647,7 @@ var DataSpace = class {
|
|
|
4594
4647
|
rootUrl,
|
|
4595
4648
|
err
|
|
4596
4649
|
}, {
|
|
4597
|
-
F:
|
|
4650
|
+
F: __dxlog_file18,
|
|
4598
4651
|
L: 431,
|
|
4599
4652
|
S: this,
|
|
4600
4653
|
C: (f, a) => f(...a)
|
|
@@ -4680,7 +4733,7 @@ var DataSpace = class {
|
|
|
4680
4733
|
log15("new state", {
|
|
4681
4734
|
state: SpaceState2[this._state]
|
|
4682
4735
|
}, {
|
|
4683
|
-
F:
|
|
4736
|
+
F: __dxlog_file18,
|
|
4684
4737
|
L: 512,
|
|
4685
4738
|
S: this,
|
|
4686
4739
|
C: (f, a) => f(...a)
|
|
@@ -4837,7 +4890,7 @@ function _ts_decorate5(decorators, target, key, desc) {
|
|
|
4837
4890
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4838
4891
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4839
4892
|
}
|
|
4840
|
-
var
|
|
4893
|
+
var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
|
|
4841
4894
|
var PRESENCE_ANNOUNCE_INTERVAL = 1e4;
|
|
4842
4895
|
var PRESENCE_OFFLINE_TIMEOUT = 2e4;
|
|
4843
4896
|
var DEFAULT_SPACE_KEY = "__DEFAULT__";
|
|
@@ -4851,7 +4904,10 @@ var DataSpaceManager = class {
|
|
|
4851
4904
|
this._echoHost = _echoHost;
|
|
4852
4905
|
this._invitationsManager = _invitationsManager;
|
|
4853
4906
|
this._params = _params;
|
|
4854
|
-
this._ctx = new Context9(
|
|
4907
|
+
this._ctx = new Context9(void 0, {
|
|
4908
|
+
F: __dxlog_file19,
|
|
4909
|
+
L: 94
|
|
4910
|
+
});
|
|
4855
4911
|
this.updated = new Event7();
|
|
4856
4912
|
this._spaces = new ComplexMap3(PublicKey11.hash);
|
|
4857
4913
|
this._isOpen = false;
|
|
@@ -4885,7 +4941,7 @@ var DataSpaceManager = class {
|
|
|
4885
4941
|
}
|
|
4886
4942
|
async open() {
|
|
4887
4943
|
log16("open", void 0, {
|
|
4888
|
-
F:
|
|
4944
|
+
F: __dxlog_file19,
|
|
4889
4945
|
L: 146,
|
|
4890
4946
|
S: this,
|
|
4891
4947
|
C: (f, a) => f(...a)
|
|
@@ -4893,7 +4949,7 @@ var DataSpaceManager = class {
|
|
|
4893
4949
|
log16.trace("dxos.echo.data-space-manager.open", Trace2.begin({
|
|
4894
4950
|
id: this._instanceId
|
|
4895
4951
|
}), {
|
|
4896
|
-
F:
|
|
4952
|
+
F: __dxlog_file19,
|
|
4897
4953
|
L: 147,
|
|
4898
4954
|
S: this,
|
|
4899
4955
|
C: (f, a) => f(...a)
|
|
@@ -4901,7 +4957,7 @@ var DataSpaceManager = class {
|
|
|
4901
4957
|
log16("metadata loaded", {
|
|
4902
4958
|
spaces: this._metadataStore.spaces.length
|
|
4903
4959
|
}, {
|
|
4904
|
-
F:
|
|
4960
|
+
F: __dxlog_file19,
|
|
4905
4961
|
L: 148,
|
|
4906
4962
|
S: this,
|
|
4907
4963
|
C: (f, a) => f(...a)
|
|
@@ -4911,7 +4967,7 @@ var DataSpaceManager = class {
|
|
|
4911
4967
|
log16("load space", {
|
|
4912
4968
|
spaceMetadata
|
|
4913
4969
|
}, {
|
|
4914
|
-
F:
|
|
4970
|
+
F: __dxlog_file19,
|
|
4915
4971
|
L: 152,
|
|
4916
4972
|
S: this,
|
|
4917
4973
|
C: (f, a) => f(...a)
|
|
@@ -4922,7 +4978,7 @@ var DataSpaceManager = class {
|
|
|
4922
4978
|
spaceMetadata,
|
|
4923
4979
|
err
|
|
4924
4980
|
}, {
|
|
4925
|
-
F:
|
|
4981
|
+
F: __dxlog_file19,
|
|
4926
4982
|
L: 155,
|
|
4927
4983
|
S: this,
|
|
4928
4984
|
C: (f, a) => f(...a)
|
|
@@ -4934,7 +4990,7 @@ var DataSpaceManager = class {
|
|
|
4934
4990
|
log16.trace("dxos.echo.data-space-manager.open", Trace2.end({
|
|
4935
4991
|
id: this._instanceId
|
|
4936
4992
|
}), {
|
|
4937
|
-
F:
|
|
4993
|
+
F: __dxlog_file19,
|
|
4938
4994
|
L: 162,
|
|
4939
4995
|
S: this,
|
|
4940
4996
|
C: (f, a) => f(...a)
|
|
@@ -4942,7 +4998,7 @@ var DataSpaceManager = class {
|
|
|
4942
4998
|
}
|
|
4943
4999
|
async close() {
|
|
4944
5000
|
log16("close", void 0, {
|
|
4945
|
-
F:
|
|
5001
|
+
F: __dxlog_file19,
|
|
4946
5002
|
L: 167,
|
|
4947
5003
|
S: this,
|
|
4948
5004
|
C: (f, a) => f(...a)
|
|
@@ -4959,7 +5015,7 @@ var DataSpaceManager = class {
|
|
|
4959
5015
|
*/
|
|
4960
5016
|
async createSpace() {
|
|
4961
5017
|
invariant14(this._isOpen, "Not open.", {
|
|
4962
|
-
F:
|
|
5018
|
+
F: __dxlog_file19,
|
|
4963
5019
|
L: 181,
|
|
4964
5020
|
S: this,
|
|
4965
5021
|
A: [
|
|
@@ -4980,7 +5036,7 @@ var DataSpaceManager = class {
|
|
|
4980
5036
|
log16("creating space...", {
|
|
4981
5037
|
spaceKey
|
|
4982
5038
|
}, {
|
|
4983
|
-
F:
|
|
5039
|
+
F: __dxlog_file19,
|
|
4984
5040
|
L: 193,
|
|
4985
5041
|
S: this,
|
|
4986
5042
|
C: (f, a) => f(...a)
|
|
@@ -4992,7 +5048,7 @@ var DataSpaceManager = class {
|
|
|
4992
5048
|
await this._metadataStore.addSpace(metadata);
|
|
4993
5049
|
const memberCredential = credentials[1];
|
|
4994
5050
|
invariant14(getCredentialAssertion3(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
4995
|
-
F:
|
|
5051
|
+
F: __dxlog_file19,
|
|
4996
5052
|
L: 203,
|
|
4997
5053
|
S: this,
|
|
4998
5054
|
A: [
|
|
@@ -5024,7 +5080,7 @@ var DataSpaceManager = class {
|
|
|
5024
5080
|
version: space.databaseRoot.getVersion(),
|
|
5025
5081
|
spaceId: space.id
|
|
5026
5082
|
}, {
|
|
5027
|
-
F:
|
|
5083
|
+
F: __dxlog_file19,
|
|
5028
5084
|
L: 228,
|
|
5029
5085
|
S: this,
|
|
5030
5086
|
C: (f, a) => f(...a)
|
|
@@ -5059,7 +5115,7 @@ var DataSpaceManager = class {
|
|
|
5059
5115
|
async _getSpaceRootDocument(space) {
|
|
5060
5116
|
const automergeIndex = space.automergeSpaceState.rootUrl;
|
|
5061
5117
|
invariant14(automergeIndex, void 0, {
|
|
5062
|
-
F:
|
|
5118
|
+
F: __dxlog_file19,
|
|
5063
5119
|
L: 261,
|
|
5064
5120
|
S: this,
|
|
5065
5121
|
A: [
|
|
@@ -5076,13 +5132,13 @@ var DataSpaceManager = class {
|
|
|
5076
5132
|
log16("accept space", {
|
|
5077
5133
|
opts
|
|
5078
5134
|
}, {
|
|
5079
|
-
F:
|
|
5135
|
+
F: __dxlog_file19,
|
|
5080
5136
|
L: 270,
|
|
5081
5137
|
S: this,
|
|
5082
5138
|
C: (f, a) => f(...a)
|
|
5083
5139
|
});
|
|
5084
5140
|
invariant14(this._isOpen, "Not open.", {
|
|
5085
|
-
F:
|
|
5141
|
+
F: __dxlog_file19,
|
|
5086
5142
|
L: 271,
|
|
5087
5143
|
S: this,
|
|
5088
5144
|
A: [
|
|
@@ -5091,7 +5147,7 @@ var DataSpaceManager = class {
|
|
|
5091
5147
|
]
|
|
5092
5148
|
});
|
|
5093
5149
|
invariant14(!this._spaces.has(opts.spaceKey), "Space already exists.", {
|
|
5094
|
-
F:
|
|
5150
|
+
F: __dxlog_file19,
|
|
5095
5151
|
L: 272,
|
|
5096
5152
|
S: this,
|
|
5097
5153
|
A: [
|
|
@@ -5127,7 +5183,7 @@ var DataSpaceManager = class {
|
|
|
5127
5183
|
log16("construct space", {
|
|
5128
5184
|
metadata
|
|
5129
5185
|
}, {
|
|
5130
|
-
F:
|
|
5186
|
+
F: __dxlog_file19,
|
|
5131
5187
|
L: 306,
|
|
5132
5188
|
S: this,
|
|
5133
5189
|
C: (f, a) => f(...a)
|
|
@@ -5165,7 +5221,7 @@ var DataSpaceManager = class {
|
|
|
5165
5221
|
},
|
|
5166
5222
|
onAuthFailure: () => {
|
|
5167
5223
|
log16.warn("auth failure", void 0, {
|
|
5168
|
-
F:
|
|
5224
|
+
F: __dxlog_file19,
|
|
5169
5225
|
L: 343,
|
|
5170
5226
|
S: this,
|
|
5171
5227
|
C: (f, a) => f(...a)
|
|
@@ -5198,7 +5254,7 @@ var DataSpaceManager = class {
|
|
|
5198
5254
|
log16("before space ready", {
|
|
5199
5255
|
space: space.key
|
|
5200
5256
|
}, {
|
|
5201
|
-
F:
|
|
5257
|
+
F: __dxlog_file19,
|
|
5202
5258
|
L: 370,
|
|
5203
5259
|
S: this,
|
|
5204
5260
|
C: (f, a) => f(...a)
|
|
@@ -5209,7 +5265,7 @@ var DataSpaceManager = class {
|
|
|
5209
5265
|
space: space.key,
|
|
5210
5266
|
open: this._isOpen
|
|
5211
5267
|
}, {
|
|
5212
|
-
F:
|
|
5268
|
+
F: __dxlog_file19,
|
|
5213
5269
|
L: 373,
|
|
5214
5270
|
S: this,
|
|
5215
5271
|
C: (f, a) => f(...a)
|
|
@@ -5228,7 +5284,7 @@ var DataSpaceManager = class {
|
|
|
5228
5284
|
log16("before space close", {
|
|
5229
5285
|
space: space.key
|
|
5230
5286
|
}, {
|
|
5231
|
-
F:
|
|
5287
|
+
F: __dxlog_file19,
|
|
5232
5288
|
L: 381,
|
|
5233
5289
|
S: this,
|
|
5234
5290
|
C: (f, a) => f(...a)
|
|
@@ -5269,7 +5325,7 @@ var DataSpaceManager = class {
|
|
|
5269
5325
|
peersOnline: presence.getPeersOnline().length,
|
|
5270
5326
|
closedSessions
|
|
5271
5327
|
}, {
|
|
5272
|
-
F:
|
|
5328
|
+
F: __dxlog_file19,
|
|
5273
5329
|
L: 417,
|
|
5274
5330
|
S: this,
|
|
5275
5331
|
C: (f, a) => f(...a)
|
|
@@ -5284,7 +5340,7 @@ var DataSpaceManager = class {
|
|
|
5284
5340
|
log16("closing a session with a removed peer", {
|
|
5285
5341
|
peerId: peerState.peerId
|
|
5286
5342
|
}, {
|
|
5287
|
-
F:
|
|
5343
|
+
F: __dxlog_file19,
|
|
5288
5344
|
L: 431,
|
|
5289
5345
|
S: this,
|
|
5290
5346
|
C: (f, a) => f(...a)
|
|
@@ -5356,7 +5412,7 @@ import { log as log17 } from "@dxos/log";
|
|
|
5356
5412
|
import { ApiError, SpaceNotFoundError as SpaceNotFoundError2, encodeError, IdentityNotInitializedError, AuthorizationError as AuthorizationError2 } from "@dxos/protocols";
|
|
5357
5413
|
import { SpaceMember as SpaceMember7, SpaceState as SpaceState4 } from "@dxos/protocols/proto/dxos/client/services";
|
|
5358
5414
|
import { trace as trace8 } from "@dxos/tracing";
|
|
5359
|
-
var
|
|
5415
|
+
var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
|
|
5360
5416
|
var SpacesServiceImpl = class {
|
|
5361
5417
|
constructor(_identityManager, _spaceManager, _getDataSpaceManager) {
|
|
5362
5418
|
this._identityManager = _identityManager;
|
|
@@ -5400,7 +5456,7 @@ var SpacesServiceImpl = class {
|
|
|
5400
5456
|
}
|
|
5401
5457
|
const credentials = await createAdmissionCredentials2(identity.getIdentityCredentialSigner(), request.memberKey, space.key, space.genesisFeedKey, request.newRole, space.spaceState.membershipChainHeads);
|
|
5402
5458
|
invariant15(credentials[0].credential, void 0, {
|
|
5403
|
-
F:
|
|
5459
|
+
F: __dxlog_file20,
|
|
5404
5460
|
L: 98,
|
|
5405
5461
|
S: this,
|
|
5406
5462
|
A: [
|
|
@@ -5410,7 +5466,7 @@ var SpacesServiceImpl = class {
|
|
|
5410
5466
|
});
|
|
5411
5467
|
const spaceMemberCredential = credentials[0].credential.credential;
|
|
5412
5468
|
invariant15(getCredentialAssertion4(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
5413
|
-
F:
|
|
5469
|
+
F: __dxlog_file20,
|
|
5414
5470
|
L: 100,
|
|
5415
5471
|
S: this,
|
|
5416
5472
|
A: [
|
|
@@ -5428,7 +5484,7 @@ var SpacesServiceImpl = class {
|
|
|
5428
5484
|
log17("update", {
|
|
5429
5485
|
spaces
|
|
5430
5486
|
}, {
|
|
5431
|
-
F:
|
|
5487
|
+
F: __dxlog_file20,
|
|
5432
5488
|
L: 111,
|
|
5433
5489
|
S: this,
|
|
5434
5490
|
C: (f, a) => f(...a)
|
|
@@ -5520,7 +5576,7 @@ var SpacesServiceImpl = class {
|
|
|
5520
5576
|
});
|
|
5521
5577
|
} else {
|
|
5522
5578
|
invariant15(!credential.id, "Id on unsigned credentials is not allowed", {
|
|
5523
|
-
F:
|
|
5579
|
+
F: __dxlog_file20,
|
|
5524
5580
|
L: 209,
|
|
5525
5581
|
S: this,
|
|
5526
5582
|
A: [
|
|
@@ -5529,7 +5585,7 @@ var SpacesServiceImpl = class {
|
|
|
5529
5585
|
]
|
|
5530
5586
|
});
|
|
5531
5587
|
invariant15(this._identityManager.identity, "Identity is not available", {
|
|
5532
|
-
F:
|
|
5588
|
+
F: __dxlog_file20,
|
|
5533
5589
|
L: 210,
|
|
5534
5590
|
S: this,
|
|
5535
5591
|
A: [
|
|
@@ -5539,7 +5595,7 @@ var SpacesServiceImpl = class {
|
|
|
5539
5595
|
});
|
|
5540
5596
|
const signer = this._identityManager.identity.getIdentityCredentialSigner();
|
|
5541
5597
|
invariant15(credential.issuer.equals(signer.getIssuer()), void 0, {
|
|
5542
|
-
F:
|
|
5598
|
+
F: __dxlog_file20,
|
|
5543
5599
|
L: 212,
|
|
5544
5600
|
S: this,
|
|
5545
5601
|
A: [
|
|
@@ -5657,7 +5713,7 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
5657
5713
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5658
5714
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5659
5715
|
}
|
|
5660
|
-
var
|
|
5716
|
+
var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
|
|
5661
5717
|
var ServiceContext = class extends Resource3 {
|
|
5662
5718
|
constructor(storage, level, networkManager, signalManager, _runtimeParams) {
|
|
5663
5719
|
super();
|
|
@@ -5701,7 +5757,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5701
5757
|
async _open(ctx) {
|
|
5702
5758
|
await this._checkStorageVersion();
|
|
5703
5759
|
log18("opening...", void 0, {
|
|
5704
|
-
F:
|
|
5760
|
+
F: __dxlog_file21,
|
|
5705
5761
|
L: 149,
|
|
5706
5762
|
S: this,
|
|
5707
5763
|
C: (f, a) => f(...a)
|
|
@@ -5709,7 +5765,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5709
5765
|
log18.trace("dxos.sdk.service-context.open", trace9.begin({
|
|
5710
5766
|
id: this._instanceId
|
|
5711
5767
|
}), {
|
|
5712
|
-
F:
|
|
5768
|
+
F: __dxlog_file21,
|
|
5713
5769
|
L: 150,
|
|
5714
5770
|
S: this,
|
|
5715
5771
|
C: (f, a) => f(...a)
|
|
@@ -5727,7 +5783,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5727
5783
|
log18("loaded persistent invitations", {
|
|
5728
5784
|
count: loadedInvitations.invitations?.length
|
|
5729
5785
|
}, {
|
|
5730
|
-
F:
|
|
5786
|
+
F: __dxlog_file21,
|
|
5731
5787
|
L: 163,
|
|
5732
5788
|
S: this,
|
|
5733
5789
|
C: (f, a) => f(...a)
|
|
@@ -5735,13 +5791,13 @@ var ServiceContext = class extends Resource3 {
|
|
|
5735
5791
|
log18.trace("dxos.sdk.service-context.open", trace9.end({
|
|
5736
5792
|
id: this._instanceId
|
|
5737
5793
|
}), {
|
|
5738
|
-
F:
|
|
5794
|
+
F: __dxlog_file21,
|
|
5739
5795
|
L: 165,
|
|
5740
5796
|
S: this,
|
|
5741
5797
|
C: (f, a) => f(...a)
|
|
5742
5798
|
});
|
|
5743
5799
|
log18("opened", void 0, {
|
|
5744
|
-
F:
|
|
5800
|
+
F: __dxlog_file21,
|
|
5745
5801
|
L: 166,
|
|
5746
5802
|
S: this,
|
|
5747
5803
|
C: (f, a) => f(...a)
|
|
@@ -5749,7 +5805,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5749
5805
|
}
|
|
5750
5806
|
async _close(ctx) {
|
|
5751
5807
|
log18("closing...", void 0, {
|
|
5752
|
-
F:
|
|
5808
|
+
F: __dxlog_file21,
|
|
5753
5809
|
L: 170,
|
|
5754
5810
|
S: this,
|
|
5755
5811
|
C: (f, a) => f(...a)
|
|
@@ -5766,7 +5822,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5766
5822
|
await this.networkManager.close();
|
|
5767
5823
|
await this.signalManager.close();
|
|
5768
5824
|
log18("closed", void 0, {
|
|
5769
|
-
F:
|
|
5825
|
+
F: __dxlog_file21,
|
|
5770
5826
|
L: 182,
|
|
5771
5827
|
S: this,
|
|
5772
5828
|
C: (f, a) => f(...a)
|
|
@@ -5774,13 +5830,16 @@ var ServiceContext = class extends Resource3 {
|
|
|
5774
5830
|
}
|
|
5775
5831
|
async createIdentity(params = {}) {
|
|
5776
5832
|
const identity = await this.identityManager.createIdentity(params);
|
|
5777
|
-
await this._initialize(new Context10(
|
|
5833
|
+
await this._initialize(new Context10(void 0, {
|
|
5834
|
+
F: __dxlog_file21,
|
|
5835
|
+
L: 187
|
|
5836
|
+
}));
|
|
5778
5837
|
return identity;
|
|
5779
5838
|
}
|
|
5780
5839
|
getInvitationHandler(invitation) {
|
|
5781
5840
|
const factory = this._handlerFactories.get(invitation.kind);
|
|
5782
5841
|
invariant16(factory, `Unknown invitation kind: ${invitation.kind}`, {
|
|
5783
|
-
F:
|
|
5842
|
+
F: __dxlog_file21,
|
|
5784
5843
|
L: 193,
|
|
5785
5844
|
S: this,
|
|
5786
5845
|
A: [
|
|
@@ -5800,7 +5859,10 @@ var ServiceContext = class extends Resource3 {
|
|
|
5800
5859
|
}
|
|
5801
5860
|
async _acceptIdentity(params) {
|
|
5802
5861
|
const identity = await this.identityManager.acceptIdentity(params);
|
|
5803
|
-
await this._initialize(new Context10(
|
|
5862
|
+
await this._initialize(new Context10(void 0, {
|
|
5863
|
+
F: __dxlog_file21,
|
|
5864
|
+
L: 209
|
|
5865
|
+
}));
|
|
5804
5866
|
return identity;
|
|
5805
5867
|
}
|
|
5806
5868
|
async _checkStorageVersion() {
|
|
@@ -5812,7 +5874,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5812
5874
|
// Called when identity is created.
|
|
5813
5875
|
async _initialize(ctx) {
|
|
5814
5876
|
log18("initializing spaces...", void 0, {
|
|
5815
|
-
F:
|
|
5877
|
+
F: __dxlog_file21,
|
|
5816
5878
|
L: 224,
|
|
5817
5879
|
S: this,
|
|
5818
5880
|
C: (f, a) => f(...a)
|
|
@@ -5835,7 +5897,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5835
5897
|
await this.dataSpaceManager.open();
|
|
5836
5898
|
this._handlerFactories.set(Invitation8.Kind.SPACE, (invitation) => {
|
|
5837
5899
|
invariant16(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
|
|
5838
|
-
F:
|
|
5900
|
+
F: __dxlog_file21,
|
|
5839
5901
|
L: 249,
|
|
5840
5902
|
S: this,
|
|
5841
5903
|
A: [
|
|
@@ -5859,7 +5921,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5859
5921
|
log18("dataSpaceManager not initialized yet, ignoring space admission", {
|
|
5860
5922
|
details: assertion
|
|
5861
5923
|
}, {
|
|
5862
|
-
F:
|
|
5924
|
+
F: __dxlog_file21,
|
|
5863
5925
|
L: 265,
|
|
5864
5926
|
S: this,
|
|
5865
5927
|
C: (f, a) => f(...a)
|
|
@@ -5870,7 +5932,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5870
5932
|
log18("space already exists, ignoring space admission", {
|
|
5871
5933
|
details: assertion
|
|
5872
5934
|
}, {
|
|
5873
|
-
F:
|
|
5935
|
+
F: __dxlog_file21,
|
|
5874
5936
|
L: 269,
|
|
5875
5937
|
S: this,
|
|
5876
5938
|
C: (f, a) => f(...a)
|
|
@@ -5881,7 +5943,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5881
5943
|
log18("accepting space recorded in halo", {
|
|
5882
5944
|
details: assertion
|
|
5883
5945
|
}, {
|
|
5884
|
-
F:
|
|
5946
|
+
F: __dxlog_file21,
|
|
5885
5947
|
L: 274,
|
|
5886
5948
|
S: this,
|
|
5887
5949
|
C: (f, a) => f(...a)
|
|
@@ -5892,7 +5954,7 @@ var ServiceContext = class extends Resource3 {
|
|
|
5892
5954
|
});
|
|
5893
5955
|
} catch (err) {
|
|
5894
5956
|
log18.catch(err, void 0, {
|
|
5895
|
-
F:
|
|
5957
|
+
F: __dxlog_file21,
|
|
5896
5958
|
L: 280,
|
|
5897
5959
|
S: this,
|
|
5898
5960
|
C: (f, a) => f(...a)
|
|
@@ -5952,7 +6014,7 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
5952
6014
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5953
6015
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5954
6016
|
}
|
|
5955
|
-
var
|
|
6017
|
+
var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/browser.ts";
|
|
5956
6018
|
var Message;
|
|
5957
6019
|
(function(Message2) {
|
|
5958
6020
|
Message2["ACQUIRING"] = "acquiring";
|
|
@@ -5975,28 +6037,28 @@ var Lock = class {
|
|
|
5975
6037
|
});
|
|
5976
6038
|
try {
|
|
5977
6039
|
log19("aquiring lock...", void 0, {
|
|
5978
|
-
F:
|
|
6040
|
+
F: __dxlog_file22,
|
|
5979
6041
|
L: 42,
|
|
5980
6042
|
S: this,
|
|
5981
6043
|
C: (f, a) => f(...a)
|
|
5982
6044
|
});
|
|
5983
6045
|
await asyncTimeout3(this._requestLock(), RESOURCE_LOCK_TIMEOUT);
|
|
5984
6046
|
log19("acquired lock", void 0, {
|
|
5985
|
-
F:
|
|
6047
|
+
F: __dxlog_file22,
|
|
5986
6048
|
L: 44,
|
|
5987
6049
|
S: this,
|
|
5988
6050
|
C: (f, a) => f(...a)
|
|
5989
6051
|
});
|
|
5990
6052
|
} catch {
|
|
5991
6053
|
log19("stealing lock...", void 0, {
|
|
5992
|
-
F:
|
|
6054
|
+
F: __dxlog_file22,
|
|
5993
6055
|
L: 46,
|
|
5994
6056
|
S: this,
|
|
5995
6057
|
C: (f, a) => f(...a)
|
|
5996
6058
|
});
|
|
5997
6059
|
await this._requestLock(true);
|
|
5998
6060
|
log19("stolen lock", void 0, {
|
|
5999
|
-
F:
|
|
6061
|
+
F: __dxlog_file22,
|
|
6000
6062
|
L: 48,
|
|
6001
6063
|
S: this,
|
|
6002
6064
|
C: (f, a) => f(...a)
|
|
@@ -6015,7 +6077,7 @@ var Lock = class {
|
|
|
6015
6077
|
log19("requesting lock...", {
|
|
6016
6078
|
steal
|
|
6017
6079
|
}, {
|
|
6018
|
-
F:
|
|
6080
|
+
F: __dxlog_file22,
|
|
6019
6081
|
L: 63,
|
|
6020
6082
|
S: this,
|
|
6021
6083
|
C: (f, a) => f(...a)
|
|
@@ -6029,14 +6091,14 @@ var Lock = class {
|
|
|
6029
6091
|
this._releaseTrigger = new Trigger9();
|
|
6030
6092
|
await this._releaseTrigger.wait();
|
|
6031
6093
|
log19("releasing lock...", void 0, {
|
|
6032
|
-
F:
|
|
6094
|
+
F: __dxlog_file22,
|
|
6033
6095
|
L: 72,
|
|
6034
6096
|
S: this,
|
|
6035
6097
|
C: (f, a) => f(...a)
|
|
6036
6098
|
});
|
|
6037
6099
|
await this._onRelease?.();
|
|
6038
6100
|
log19("released lock", void 0, {
|
|
6039
|
-
F:
|
|
6101
|
+
F: __dxlog_file22,
|
|
6040
6102
|
L: 74,
|
|
6041
6103
|
S: this,
|
|
6042
6104
|
C: (f, a) => f(...a)
|
|
@@ -6048,7 +6110,7 @@ var Lock = class {
|
|
|
6048
6110
|
log19("recieved lock", {
|
|
6049
6111
|
steal
|
|
6050
6112
|
}, {
|
|
6051
|
-
F:
|
|
6113
|
+
F: __dxlog_file22,
|
|
6052
6114
|
L: 81,
|
|
6053
6115
|
S: this,
|
|
6054
6116
|
C: (f, a) => f(...a)
|
|
@@ -6155,7 +6217,7 @@ import { EventSubscriptions as EventSubscriptions3 } from "@dxos/async";
|
|
|
6155
6217
|
import { Stream as Stream11 } from "@dxos/codec-protobuf";
|
|
6156
6218
|
import { invariant as invariant17 } from "@dxos/invariant";
|
|
6157
6219
|
import { Device as Device2, DeviceKind as DeviceKind2 } from "@dxos/protocols/proto/dxos/client/services";
|
|
6158
|
-
var
|
|
6220
|
+
var __dxlog_file23 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
|
|
6159
6221
|
var DevicesServiceImpl = class {
|
|
6160
6222
|
constructor(_identityManager) {
|
|
6161
6223
|
this._identityManager = _identityManager;
|
|
@@ -6173,7 +6235,7 @@ var DevicesServiceImpl = class {
|
|
|
6173
6235
|
});
|
|
6174
6236
|
} else {
|
|
6175
6237
|
invariant17(this._identityManager.identity?.presence, "presence not present", {
|
|
6176
|
-
F:
|
|
6238
|
+
F: __dxlog_file23,
|
|
6177
6239
|
L: 32,
|
|
6178
6240
|
S: this,
|
|
6179
6241
|
A: [
|
|
@@ -6504,7 +6566,7 @@ function _ts_decorate8(decorators, target, key, desc) {
|
|
|
6504
6566
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6505
6567
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6506
6568
|
}
|
|
6507
|
-
var
|
|
6569
|
+
var __dxlog_file24 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
|
|
6508
6570
|
var ClientServicesHost = class {
|
|
6509
6571
|
constructor({
|
|
6510
6572
|
config,
|
|
@@ -6537,7 +6599,10 @@ var ClientServicesHost = class {
|
|
|
6537
6599
|
lockKey,
|
|
6538
6600
|
onAcquire: () => {
|
|
6539
6601
|
if (!this._opening) {
|
|
6540
|
-
void this.open(new Context11(
|
|
6602
|
+
void this.open(new Context11(void 0, {
|
|
6603
|
+
F: __dxlog_file24,
|
|
6604
|
+
L: 120
|
|
6605
|
+
}));
|
|
6541
6606
|
}
|
|
6542
6607
|
},
|
|
6543
6608
|
onRelease: () => this.close()
|
|
@@ -6593,7 +6658,7 @@ var ClientServicesHost = class {
|
|
|
6593
6658
|
*/
|
|
6594
6659
|
initialize({ config, ...options }) {
|
|
6595
6660
|
invariant18(!this._open, "service host is open", {
|
|
6596
|
-
F:
|
|
6661
|
+
F: __dxlog_file24,
|
|
6597
6662
|
L: 186,
|
|
6598
6663
|
S: this,
|
|
6599
6664
|
A: [
|
|
@@ -6602,14 +6667,14 @@ var ClientServicesHost = class {
|
|
|
6602
6667
|
]
|
|
6603
6668
|
});
|
|
6604
6669
|
log21("initializing...", void 0, {
|
|
6605
|
-
F:
|
|
6670
|
+
F: __dxlog_file24,
|
|
6606
6671
|
L: 187,
|
|
6607
6672
|
S: this,
|
|
6608
6673
|
C: (f, a) => f(...a)
|
|
6609
6674
|
});
|
|
6610
6675
|
if (config) {
|
|
6611
6676
|
invariant18(!this._config, "config already set", {
|
|
6612
|
-
F:
|
|
6677
|
+
F: __dxlog_file24,
|
|
6613
6678
|
L: 190,
|
|
6614
6679
|
S: this,
|
|
6615
6680
|
A: [
|
|
@@ -6624,7 +6689,7 @@ var ClientServicesHost = class {
|
|
|
6624
6689
|
}
|
|
6625
6690
|
if (!options.signalManager) {
|
|
6626
6691
|
log21.warn("running signaling without telemetry metadata.", void 0, {
|
|
6627
|
-
F:
|
|
6692
|
+
F: __dxlog_file24,
|
|
6628
6693
|
L: 198,
|
|
6629
6694
|
S: this,
|
|
6630
6695
|
C: (f, a) => f(...a)
|
|
@@ -6635,7 +6700,7 @@ var ClientServicesHost = class {
|
|
|
6635
6700
|
}), signalManager = new WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
|
|
6636
6701
|
this._signalManager = signalManager;
|
|
6637
6702
|
invariant18(!this._networkManager, "network manager already set", {
|
|
6638
|
-
F:
|
|
6703
|
+
F: __dxlog_file24,
|
|
6639
6704
|
L: 209,
|
|
6640
6705
|
S: this,
|
|
6641
6706
|
A: [
|
|
@@ -6649,7 +6714,7 @@ var ClientServicesHost = class {
|
|
|
6649
6714
|
signalManager
|
|
6650
6715
|
});
|
|
6651
6716
|
log21("initialized", void 0, {
|
|
6652
|
-
F:
|
|
6717
|
+
F: __dxlog_file24,
|
|
6653
6718
|
L: 216,
|
|
6654
6719
|
S: this,
|
|
6655
6720
|
C: (f, a) => f(...a)
|
|
@@ -6663,13 +6728,13 @@ var ClientServicesHost = class {
|
|
|
6663
6728
|
log21.trace("dxos.client-services.host.open", trace10.begin({
|
|
6664
6729
|
id: traceId
|
|
6665
6730
|
}), {
|
|
6666
|
-
F:
|
|
6731
|
+
F: __dxlog_file24,
|
|
6667
6732
|
L: 227,
|
|
6668
6733
|
S: this,
|
|
6669
6734
|
C: (f, a) => f(...a)
|
|
6670
6735
|
});
|
|
6671
6736
|
invariant18(this._config, "config not set", {
|
|
6672
|
-
F:
|
|
6737
|
+
F: __dxlog_file24,
|
|
6673
6738
|
L: 229,
|
|
6674
6739
|
S: this,
|
|
6675
6740
|
A: [
|
|
@@ -6678,7 +6743,7 @@ var ClientServicesHost = class {
|
|
|
6678
6743
|
]
|
|
6679
6744
|
});
|
|
6680
6745
|
invariant18(this._storage, "storage not set", {
|
|
6681
|
-
F:
|
|
6746
|
+
F: __dxlog_file24,
|
|
6682
6747
|
L: 230,
|
|
6683
6748
|
S: this,
|
|
6684
6749
|
A: [
|
|
@@ -6687,7 +6752,7 @@ var ClientServicesHost = class {
|
|
|
6687
6752
|
]
|
|
6688
6753
|
});
|
|
6689
6754
|
invariant18(this._signalManager, "signal manager not set", {
|
|
6690
|
-
F:
|
|
6755
|
+
F: __dxlog_file24,
|
|
6691
6756
|
L: 231,
|
|
6692
6757
|
S: this,
|
|
6693
6758
|
A: [
|
|
@@ -6696,7 +6761,7 @@ var ClientServicesHost = class {
|
|
|
6696
6761
|
]
|
|
6697
6762
|
});
|
|
6698
6763
|
invariant18(this._networkManager, "network manager not set", {
|
|
6699
|
-
F:
|
|
6764
|
+
F: __dxlog_file24,
|
|
6700
6765
|
L: 232,
|
|
6701
6766
|
S: this,
|
|
6702
6767
|
A: [
|
|
@@ -6708,7 +6773,7 @@ var ClientServicesHost = class {
|
|
|
6708
6773
|
log21("opening...", {
|
|
6709
6774
|
lockKey: this._resourceLock?.lockKey
|
|
6710
6775
|
}, {
|
|
6711
|
-
F:
|
|
6776
|
+
F: __dxlog_file24,
|
|
6712
6777
|
L: 235,
|
|
6713
6778
|
S: this,
|
|
6714
6779
|
C: (f, a) => f(...a)
|
|
@@ -6762,7 +6827,7 @@ var ClientServicesHost = class {
|
|
|
6762
6827
|
log21("opened", {
|
|
6763
6828
|
deviceKey
|
|
6764
6829
|
}, {
|
|
6765
|
-
F:
|
|
6830
|
+
F: __dxlog_file24,
|
|
6766
6831
|
L: 314,
|
|
6767
6832
|
S: this,
|
|
6768
6833
|
C: (f, a) => f(...a)
|
|
@@ -6770,7 +6835,7 @@ var ClientServicesHost = class {
|
|
|
6770
6835
|
log21.trace("dxos.client-services.host.open", trace10.end({
|
|
6771
6836
|
id: traceId
|
|
6772
6837
|
}), {
|
|
6773
|
-
F:
|
|
6838
|
+
F: __dxlog_file24,
|
|
6774
6839
|
L: 315,
|
|
6775
6840
|
S: this,
|
|
6776
6841
|
C: (f, a) => f(...a)
|
|
@@ -6784,7 +6849,7 @@ var ClientServicesHost = class {
|
|
|
6784
6849
|
log21("closing...", {
|
|
6785
6850
|
deviceKey
|
|
6786
6851
|
}, {
|
|
6787
|
-
F:
|
|
6852
|
+
F: __dxlog_file24,
|
|
6788
6853
|
L: 326,
|
|
6789
6854
|
S: this,
|
|
6790
6855
|
C: (f, a) => f(...a)
|
|
@@ -6802,7 +6867,7 @@ var ClientServicesHost = class {
|
|
|
6802
6867
|
log21("closed", {
|
|
6803
6868
|
deviceKey
|
|
6804
6869
|
}, {
|
|
6805
|
-
F:
|
|
6870
|
+
F: __dxlog_file24,
|
|
6806
6871
|
L: 335,
|
|
6807
6872
|
S: this,
|
|
6808
6873
|
C: (f, a) => f(...a)
|
|
@@ -6813,13 +6878,13 @@ var ClientServicesHost = class {
|
|
|
6813
6878
|
log21.trace("dxos.sdk.client-services-host.reset", trace10.begin({
|
|
6814
6879
|
id: traceId
|
|
6815
6880
|
}), {
|
|
6816
|
-
F:
|
|
6881
|
+
F: __dxlog_file24,
|
|
6817
6882
|
L: 340,
|
|
6818
6883
|
S: this,
|
|
6819
6884
|
C: (f, a) => f(...a)
|
|
6820
6885
|
});
|
|
6821
6886
|
log21.info("resetting...", void 0, {
|
|
6822
|
-
F:
|
|
6887
|
+
F: __dxlog_file24,
|
|
6823
6888
|
L: 342,
|
|
6824
6889
|
S: this,
|
|
6825
6890
|
C: (f, a) => f(...a)
|
|
@@ -6827,7 +6892,7 @@ var ClientServicesHost = class {
|
|
|
6827
6892
|
await this._serviceContext?.close();
|
|
6828
6893
|
await this._storage.reset();
|
|
6829
6894
|
log21.info("reset", void 0, {
|
|
6830
|
-
F:
|
|
6895
|
+
F: __dxlog_file24,
|
|
6831
6896
|
L: 345,
|
|
6832
6897
|
S: this,
|
|
6833
6898
|
C: (f, a) => f(...a)
|
|
@@ -6835,7 +6900,7 @@ var ClientServicesHost = class {
|
|
|
6835
6900
|
log21.trace("dxos.sdk.client-services-host.reset", trace10.end({
|
|
6836
6901
|
id: traceId
|
|
6837
6902
|
}), {
|
|
6838
|
-
F:
|
|
6903
|
+
F: __dxlog_file24,
|
|
6839
6904
|
L: 346,
|
|
6840
6905
|
S: this,
|
|
6841
6906
|
C: (f, a) => f(...a)
|
|
@@ -6906,4 +6971,4 @@ export {
|
|
|
6906
6971
|
ClientServicesProviderResource,
|
|
6907
6972
|
DiagnosticsCollector
|
|
6908
6973
|
};
|
|
6909
|
-
//# sourceMappingURL=chunk-
|
|
6974
|
+
//# sourceMappingURL=chunk-J4DDMC6A.mjs.map
|