@dxos/client-services 0.1.57 → 0.1.58-main.0e9c99e
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-ZOFA377V.mjs → chunk-6KSX4KBN.mjs} +181 -131
- package/dist/lib/browser/chunk-6KSX4KBN.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +12 -11
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +4 -4
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/index.cjs +226 -175
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +221 -171
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/invitations/invitation-extension.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts +3 -3
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/invitation-utils.d.ts +5 -5
- package/dist/types/src/packlets/testing/invitation-utils.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/shell-runtime.d.ts +1 -1
- package/dist/types/src/packlets/vault/shell-runtime.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +34 -35
- package/src/packlets/identity/authenticator.ts +1 -1
- package/src/packlets/invitations/invitation-extension.ts +1 -2
- package/src/packlets/invitations/invitations-handler.ts +7 -8
- package/src/packlets/invitations/invitations-service.ts +11 -5
- package/src/packlets/services/service-context.ts +2 -2
- package/src/packlets/spaces/data-space.ts +10 -2
- package/src/packlets/spaces/spaces-service.ts +29 -8
- package/src/packlets/storage/storage.ts +1 -1
- package/src/packlets/testing/invitation-utils.ts +9 -9
- package/src/packlets/vault/iframe-proxy-runtime.ts +1 -1
- package/src/packlets/vault/shell-runtime.ts +4 -4
- package/src/version.ts +1 -5
- package/dist/lib/browser/chunk-ZOFA377V.mjs.map +0 -7
package/dist/lib/node/index.cjs
CHANGED
|
@@ -403,7 +403,7 @@ var import_context2 = require("@dxos/context");
|
|
|
403
403
|
var import_credentials = require("@dxos/credentials");
|
|
404
404
|
var import_log = require("@dxos/log");
|
|
405
405
|
var import_protocols = require("@dxos/protocols");
|
|
406
|
-
var __dxlog_file = "/
|
|
406
|
+
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
|
|
407
407
|
var Credential = import_protocols.schema.getCodecForType("dxos.halo.credentials.Credential");
|
|
408
408
|
var createAuthProvider = (signer) => async (nonce) => {
|
|
409
409
|
const credential = await signer.createCredential({
|
|
@@ -533,7 +533,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
533
533
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
534
534
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
535
535
|
}
|
|
536
|
-
var __dxlog_file2 = "/
|
|
536
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
|
|
537
537
|
var Identity = class Identity2 {
|
|
538
538
|
constructor({ space, signer, identityKey, deviceKey }) {
|
|
539
539
|
this.stateUpdate = new import_async5.Event();
|
|
@@ -706,7 +706,7 @@ function _ts_decorate2(decorators, target, key, desc) {
|
|
|
706
706
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
707
707
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
708
708
|
}
|
|
709
|
-
var __dxlog_file3 = "/
|
|
709
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
|
|
710
710
|
var IdentityManager = class IdentityManager2 {
|
|
711
711
|
// TODO(burdon): IdentityManagerParams.
|
|
712
712
|
// TODO(dmaretskyi): Perhaps this should take/generate the peerKey outside of an initialized identity.
|
|
@@ -1059,7 +1059,7 @@ var import_codec_protobuf7 = require("@dxos/codec-protobuf");
|
|
|
1059
1059
|
var import_credentials6 = require("@dxos/credentials");
|
|
1060
1060
|
var import_debug2 = require("@dxos/debug");
|
|
1061
1061
|
var import_invariant3 = require("@dxos/invariant");
|
|
1062
|
-
var __dxlog_file4 = "/
|
|
1062
|
+
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
|
|
1063
1063
|
var IdentityServiceImpl = class {
|
|
1064
1064
|
constructor(_createIdentity, _identityManager, _keyring) {
|
|
1065
1065
|
this._createIdentity = _createIdentity;
|
|
@@ -1128,7 +1128,7 @@ var IdentityServiceImpl = class {
|
|
|
1128
1128
|
// packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts
|
|
1129
1129
|
var import_invariant4 = require("@dxos/invariant");
|
|
1130
1130
|
var import_services = require("@dxos/protocols/proto/dxos/client/services");
|
|
1131
|
-
var __dxlog_file5 = "/
|
|
1131
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
|
|
1132
1132
|
var DeviceInvitationProtocol = class {
|
|
1133
1133
|
constructor(_keyring, _getIdentity, _acceptIdentity) {
|
|
1134
1134
|
this._keyring = _keyring;
|
|
@@ -1220,7 +1220,6 @@ var import_async8 = require("@dxos/async");
|
|
|
1220
1220
|
var import_client_protocol2 = require("@dxos/client-protocol");
|
|
1221
1221
|
var import_context5 = require("@dxos/context");
|
|
1222
1222
|
var import_credentials7 = require("@dxos/credentials");
|
|
1223
|
-
var import_errors2 = require("@dxos/errors");
|
|
1224
1223
|
var import_invariant6 = require("@dxos/invariant");
|
|
1225
1224
|
var import_keys6 = require("@dxos/keys");
|
|
1226
1225
|
var import_log5 = require("@dxos/log");
|
|
@@ -1232,7 +1231,6 @@ var import_invitations2 = require("@dxos/protocols/proto/dxos/halo/invitations")
|
|
|
1232
1231
|
// packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts
|
|
1233
1232
|
var import_async7 = require("@dxos/async");
|
|
1234
1233
|
var import_context4 = require("@dxos/context");
|
|
1235
|
-
var import_errors = require("@dxos/errors");
|
|
1236
1234
|
var import_invariant5 = require("@dxos/invariant");
|
|
1237
1235
|
var import_keys5 = require("@dxos/keys");
|
|
1238
1236
|
var import_log4 = require("@dxos/log");
|
|
@@ -1240,7 +1238,7 @@ var import_protocols3 = require("@dxos/protocols");
|
|
|
1240
1238
|
var import_services2 = require("@dxos/protocols/proto/dxos/client/services");
|
|
1241
1239
|
var import_invitations = require("@dxos/protocols/proto/dxos/halo/invitations");
|
|
1242
1240
|
var import_teleport = require("@dxos/teleport");
|
|
1243
|
-
var __dxlog_file6 = "/
|
|
1241
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts";
|
|
1244
1242
|
var OPTIONS_TIMEOUT = 1e4;
|
|
1245
1243
|
var MAX_OTP_ATTEMPTS = 3;
|
|
1246
1244
|
var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
@@ -1270,7 +1268,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1270
1268
|
options: async (options) => {
|
|
1271
1269
|
(0, import_invariant5.invariant)(!this._remoteOptions, "Remote options already set.", {
|
|
1272
1270
|
F: __dxlog_file6,
|
|
1273
|
-
L:
|
|
1271
|
+
L: 87,
|
|
1274
1272
|
S: this,
|
|
1275
1273
|
A: [
|
|
1276
1274
|
"!this._remoteOptions",
|
|
@@ -1287,7 +1285,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1287
1285
|
id: traceId
|
|
1288
1286
|
}), {
|
|
1289
1287
|
F: __dxlog_file6,
|
|
1290
|
-
L:
|
|
1288
|
+
L: 96,
|
|
1291
1289
|
S: this,
|
|
1292
1290
|
C: (f, a) => f(...a)
|
|
1293
1291
|
});
|
|
@@ -1297,7 +1295,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1297
1295
|
invitationId
|
|
1298
1296
|
}, {
|
|
1299
1297
|
F: __dxlog_file6,
|
|
1300
|
-
L:
|
|
1298
|
+
L: 100,
|
|
1301
1299
|
S: this,
|
|
1302
1300
|
C: (f, a) => f(...a)
|
|
1303
1301
|
});
|
|
@@ -1311,7 +1309,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1311
1309
|
guestProfile: profile
|
|
1312
1310
|
}, {
|
|
1313
1311
|
F: __dxlog_file6,
|
|
1314
|
-
L:
|
|
1312
|
+
L: 109,
|
|
1315
1313
|
S: this,
|
|
1316
1314
|
C: (f, a) => f(...a)
|
|
1317
1315
|
});
|
|
@@ -1324,7 +1322,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1324
1322
|
id: traceId
|
|
1325
1323
|
}), {
|
|
1326
1324
|
F: __dxlog_file6,
|
|
1327
|
-
L:
|
|
1325
|
+
L: 116,
|
|
1328
1326
|
S: this,
|
|
1329
1327
|
C: (f, a) => f(...a)
|
|
1330
1328
|
});
|
|
@@ -1339,7 +1337,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1339
1337
|
id: traceId
|
|
1340
1338
|
}), {
|
|
1341
1339
|
F: __dxlog_file6,
|
|
1342
|
-
L:
|
|
1340
|
+
L: 125,
|
|
1343
1341
|
S: this,
|
|
1344
1342
|
C: (f, a) => f(...a)
|
|
1345
1343
|
});
|
|
@@ -1347,14 +1345,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1347
1345
|
authCode: code
|
|
1348
1346
|
}, {
|
|
1349
1347
|
F: __dxlog_file6,
|
|
1350
|
-
L:
|
|
1348
|
+
L: 126,
|
|
1351
1349
|
S: this,
|
|
1352
1350
|
C: (f, a) => f(...a)
|
|
1353
1351
|
});
|
|
1354
1352
|
let status = import_invitations.AuthenticationResponse.Status.OK;
|
|
1355
1353
|
(0, import_invariant5.invariant)(this.invitation, "Invitation is not set.", {
|
|
1356
1354
|
F: __dxlog_file6,
|
|
1357
|
-
L:
|
|
1355
|
+
L: 129,
|
|
1358
1356
|
S: this,
|
|
1359
1357
|
A: [
|
|
1360
1358
|
"this.invitation",
|
|
@@ -1365,7 +1363,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1365
1363
|
case import_services2.Invitation.AuthMethod.NONE: {
|
|
1366
1364
|
(0, import_log4.log)("authentication not required", void 0, {
|
|
1367
1365
|
F: __dxlog_file6,
|
|
1368
|
-
L:
|
|
1366
|
+
L: 132,
|
|
1369
1367
|
S: this,
|
|
1370
1368
|
C: (f, a) => f(...a)
|
|
1371
1369
|
});
|
|
@@ -1390,7 +1388,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1390
1388
|
authMethod: this.invitation.authMethod
|
|
1391
1389
|
}, {
|
|
1392
1390
|
F: __dxlog_file6,
|
|
1393
|
-
L:
|
|
1391
|
+
L: 150,
|
|
1394
1392
|
S: this,
|
|
1395
1393
|
C: (f, a) => f(...a)
|
|
1396
1394
|
});
|
|
@@ -1405,7 +1403,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1405
1403
|
}
|
|
1406
1404
|
}), {
|
|
1407
1405
|
F: __dxlog_file6,
|
|
1408
|
-
L:
|
|
1406
|
+
L: 156,
|
|
1409
1407
|
S: this,
|
|
1410
1408
|
C: (f, a) => f(...a)
|
|
1411
1409
|
});
|
|
@@ -1419,14 +1417,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1419
1417
|
id: traceId
|
|
1420
1418
|
}), {
|
|
1421
1419
|
F: __dxlog_file6,
|
|
1422
|
-
L:
|
|
1420
|
+
L: 162,
|
|
1423
1421
|
S: this,
|
|
1424
1422
|
C: (f, a) => f(...a)
|
|
1425
1423
|
});
|
|
1426
1424
|
try {
|
|
1427
1425
|
(0, import_invariant5.invariant)(this.invitation, "Invitation is not set.", {
|
|
1428
1426
|
F: __dxlog_file6,
|
|
1429
|
-
L:
|
|
1427
|
+
L: 165,
|
|
1430
1428
|
S: this,
|
|
1431
1429
|
A: [
|
|
1432
1430
|
"this.invitation",
|
|
@@ -1441,7 +1439,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1441
1439
|
id: traceId
|
|
1442
1440
|
}), {
|
|
1443
1441
|
F: __dxlog_file6,
|
|
1444
|
-
L:
|
|
1442
|
+
L: 173,
|
|
1445
1443
|
S: this,
|
|
1446
1444
|
C: (f, a) => f(...a)
|
|
1447
1445
|
});
|
|
@@ -1464,7 +1462,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
|
|
|
1464
1462
|
timeout: OPTIONS_TIMEOUT
|
|
1465
1463
|
}));
|
|
1466
1464
|
if (this._remoteOptions?.role !== import_invitations.Options.Role.GUEST) {
|
|
1467
|
-
throw new
|
|
1465
|
+
throw new import_protocols3.InvalidInvitationExtensionRoleError(void 0, {
|
|
1468
1466
|
expected: import_invitations.Options.Role.GUEST,
|
|
1469
1467
|
remoteOptions: this._remoteOptions
|
|
1470
1468
|
});
|
|
@@ -1498,7 +1496,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1498
1496
|
options: async (options) => {
|
|
1499
1497
|
(0, import_invariant5.invariant)(!this._remoteOptions, "Remote options already set.", {
|
|
1500
1498
|
F: __dxlog_file6,
|
|
1501
|
-
L:
|
|
1499
|
+
L: 240,
|
|
1502
1500
|
S: this,
|
|
1503
1501
|
A: [
|
|
1504
1502
|
"!this._remoteOptions",
|
|
@@ -1525,7 +1523,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1525
1523
|
try {
|
|
1526
1524
|
(0, import_log4.log)("begin options", void 0, {
|
|
1527
1525
|
F: __dxlog_file6,
|
|
1528
|
-
L:
|
|
1526
|
+
L: 261,
|
|
1529
1527
|
S: this,
|
|
1530
1528
|
C: (f, a) => f(...a)
|
|
1531
1529
|
});
|
|
@@ -1537,12 +1535,12 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1537
1535
|
}));
|
|
1538
1536
|
(0, import_log4.log)("end options", void 0, {
|
|
1539
1537
|
F: __dxlog_file6,
|
|
1540
|
-
L:
|
|
1538
|
+
L: 264,
|
|
1541
1539
|
S: this,
|
|
1542
1540
|
C: (f, a) => f(...a)
|
|
1543
1541
|
});
|
|
1544
1542
|
if (this._remoteOptions?.role !== import_invitations.Options.Role.HOST) {
|
|
1545
|
-
throw new
|
|
1543
|
+
throw new import_protocols3.InvalidInvitationExtensionRoleError(void 0, {
|
|
1546
1544
|
expected: import_invitations.Options.Role.HOST,
|
|
1547
1545
|
remoteOptions: this._remoteOptions
|
|
1548
1546
|
});
|
|
@@ -1551,7 +1549,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1551
1549
|
} catch (err) {
|
|
1552
1550
|
(0, import_log4.log)("openError", err, {
|
|
1553
1551
|
F: __dxlog_file6,
|
|
1554
|
-
L:
|
|
1552
|
+
L: 274,
|
|
1555
1553
|
S: this,
|
|
1556
1554
|
C: (f, a) => f(...a)
|
|
1557
1555
|
});
|
|
@@ -1561,7 +1559,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1561
1559
|
async onClose() {
|
|
1562
1560
|
(0, import_log4.log)("onClose", void 0, {
|
|
1563
1561
|
F: __dxlog_file6,
|
|
1564
|
-
L:
|
|
1562
|
+
L: 280,
|
|
1565
1563
|
S: this,
|
|
1566
1564
|
C: (f, a) => f(...a)
|
|
1567
1565
|
});
|
|
@@ -1571,7 +1569,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
|
|
|
1571
1569
|
var isAuthenticationRequired = (invitation) => invitation.authMethod !== import_services2.Invitation.AuthMethod.NONE;
|
|
1572
1570
|
|
|
1573
1571
|
// packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts
|
|
1574
|
-
var __dxlog_file7 = "/
|
|
1572
|
+
var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
|
|
1575
1573
|
var InvitationsHandler = class {
|
|
1576
1574
|
/**
|
|
1577
1575
|
* @internal
|
|
@@ -1584,7 +1582,7 @@ var InvitationsHandler = class {
|
|
|
1584
1582
|
const authCode = options?.authCode ?? (authMethod === import_services3.Invitation.AuthMethod.SHARED_SECRET ? (0, import_credentials7.generatePasscode)(import_client_protocol2.AUTHENTICATION_CODE_LENGTH) : void 0);
|
|
1585
1583
|
(0, import_invariant6.invariant)(protocol, void 0, {
|
|
1586
1584
|
F: __dxlog_file7,
|
|
1587
|
-
L:
|
|
1585
|
+
L: 75,
|
|
1588
1586
|
S: this,
|
|
1589
1587
|
A: [
|
|
1590
1588
|
"protocol",
|
|
@@ -1613,7 +1611,7 @@ var InvitationsHandler = class {
|
|
|
1613
1611
|
...protocol.toJSON()
|
|
1614
1612
|
}, {
|
|
1615
1613
|
F: __dxlog_file7,
|
|
1616
|
-
L:
|
|
1614
|
+
L: 97,
|
|
1617
1615
|
S: this,
|
|
1618
1616
|
C: (f, a) => f(...a)
|
|
1619
1617
|
});
|
|
@@ -1638,7 +1636,7 @@ var InvitationsHandler = class {
|
|
|
1638
1636
|
const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
|
|
1639
1637
|
(0, import_invariant6.invariant)(deviceKey, void 0, {
|
|
1640
1638
|
F: __dxlog_file7,
|
|
1641
|
-
L:
|
|
1639
|
+
L: 118,
|
|
1642
1640
|
S: this,
|
|
1643
1641
|
A: [
|
|
1644
1642
|
"deviceKey",
|
|
@@ -1661,7 +1659,7 @@ var InvitationsHandler = class {
|
|
|
1661
1659
|
id: traceId
|
|
1662
1660
|
}), {
|
|
1663
1661
|
F: __dxlog_file7,
|
|
1664
|
-
L:
|
|
1662
|
+
L: 136,
|
|
1665
1663
|
S: this,
|
|
1666
1664
|
C: (f, a) => f(...a)
|
|
1667
1665
|
});
|
|
@@ -1669,7 +1667,7 @@ var InvitationsHandler = class {
|
|
|
1669
1667
|
...protocol.toJSON()
|
|
1670
1668
|
}, {
|
|
1671
1669
|
F: __dxlog_file7,
|
|
1672
|
-
L:
|
|
1670
|
+
L: 137,
|
|
1673
1671
|
S: this,
|
|
1674
1672
|
C: (f, a) => f(...a)
|
|
1675
1673
|
});
|
|
@@ -1685,7 +1683,7 @@ var InvitationsHandler = class {
|
|
|
1685
1683
|
...protocol.toJSON()
|
|
1686
1684
|
}, {
|
|
1687
1685
|
F: __dxlog_file7,
|
|
1688
|
-
L:
|
|
1686
|
+
L: 140,
|
|
1689
1687
|
S: this,
|
|
1690
1688
|
C: (f, a) => f(...a)
|
|
1691
1689
|
});
|
|
@@ -1697,7 +1695,7 @@ var InvitationsHandler = class {
|
|
|
1697
1695
|
id: traceId
|
|
1698
1696
|
}), {
|
|
1699
1697
|
F: __dxlog_file7,
|
|
1700
|
-
L:
|
|
1698
|
+
L: 142,
|
|
1701
1699
|
S: this,
|
|
1702
1700
|
C: (f, a) => f(...a)
|
|
1703
1701
|
});
|
|
@@ -1707,7 +1705,7 @@ var InvitationsHandler = class {
|
|
|
1707
1705
|
...protocol.toJSON()
|
|
1708
1706
|
}, {
|
|
1709
1707
|
F: __dxlog_file7,
|
|
1710
|
-
L:
|
|
1708
|
+
L: 145,
|
|
1711
1709
|
S: this,
|
|
1712
1710
|
C: (f, a) => f(...a)
|
|
1713
1711
|
});
|
|
@@ -1718,7 +1716,7 @@ var InvitationsHandler = class {
|
|
|
1718
1716
|
} else {
|
|
1719
1717
|
import_log5.log.error("failed", err, {
|
|
1720
1718
|
F: __dxlog_file7,
|
|
1721
|
-
L:
|
|
1719
|
+
L: 148,
|
|
1722
1720
|
S: this,
|
|
1723
1721
|
C: (f, a) => f(...a)
|
|
1724
1722
|
});
|
|
@@ -1729,7 +1727,7 @@ var InvitationsHandler = class {
|
|
|
1729
1727
|
error: err
|
|
1730
1728
|
}), {
|
|
1731
1729
|
F: __dxlog_file7,
|
|
1732
|
-
L:
|
|
1730
|
+
L: 151,
|
|
1733
1731
|
S: this,
|
|
1734
1732
|
C: (f, a) => f(...a)
|
|
1735
1733
|
});
|
|
@@ -1742,7 +1740,7 @@ var InvitationsHandler = class {
|
|
|
1742
1740
|
});
|
|
1743
1741
|
},
|
|
1744
1742
|
onError: (err) => {
|
|
1745
|
-
if (err instanceof
|
|
1743
|
+
if (err instanceof import_protocols4.InvalidInvitationExtensionRoleError) {
|
|
1746
1744
|
return;
|
|
1747
1745
|
}
|
|
1748
1746
|
if (err instanceof import_async8.TimeoutError) {
|
|
@@ -1750,7 +1748,7 @@ var InvitationsHandler = class {
|
|
|
1750
1748
|
...protocol.toJSON()
|
|
1751
1749
|
}, {
|
|
1752
1750
|
F: __dxlog_file7,
|
|
1753
|
-
L:
|
|
1751
|
+
L: 166,
|
|
1754
1752
|
S: this,
|
|
1755
1753
|
C: (f, a) => f(...a)
|
|
1756
1754
|
});
|
|
@@ -1761,7 +1759,7 @@ var InvitationsHandler = class {
|
|
|
1761
1759
|
} else {
|
|
1762
1760
|
import_log5.log.error("failed", err, {
|
|
1763
1761
|
F: __dxlog_file7,
|
|
1764
|
-
L:
|
|
1762
|
+
L: 169,
|
|
1765
1763
|
S: this,
|
|
1766
1764
|
C: (f, a) => f(...a)
|
|
1767
1765
|
});
|
|
@@ -1789,7 +1787,7 @@ var InvitationsHandler = class {
|
|
|
1789
1787
|
state: import_services3.Invitation.State.CONNECTING
|
|
1790
1788
|
});
|
|
1791
1789
|
});
|
|
1792
|
-
const observable = new import_client_protocol2.
|
|
1790
|
+
const observable = new import_client_protocol2.CancellableInvitation({
|
|
1793
1791
|
initialInvitation: invitation,
|
|
1794
1792
|
subscriber: stream.observable,
|
|
1795
1793
|
onCancel: async () => {
|
|
@@ -1806,7 +1804,7 @@ var InvitationsHandler = class {
|
|
|
1806
1804
|
const { timeout = import_client_protocol2.INVITATION_TIMEOUT } = invitation;
|
|
1807
1805
|
(0, import_invariant6.invariant)(protocol, void 0, {
|
|
1808
1806
|
F: __dxlog_file7,
|
|
1809
|
-
L:
|
|
1807
|
+
L: 210,
|
|
1810
1808
|
S: this,
|
|
1811
1809
|
A: [
|
|
1812
1810
|
"protocol",
|
|
@@ -1820,7 +1818,7 @@ var InvitationsHandler = class {
|
|
|
1820
1818
|
const setState = (newData) => {
|
|
1821
1819
|
(0, import_invariant6.invariant)(newData.state !== void 0, void 0, {
|
|
1822
1820
|
F: __dxlog_file7,
|
|
1823
|
-
L:
|
|
1821
|
+
L: 221,
|
|
1824
1822
|
S: this,
|
|
1825
1823
|
A: [
|
|
1826
1824
|
"newData.state !== undefined",
|
|
@@ -1840,7 +1838,7 @@ var InvitationsHandler = class {
|
|
|
1840
1838
|
...protocol.toJSON()
|
|
1841
1839
|
}, {
|
|
1842
1840
|
F: __dxlog_file7,
|
|
1843
|
-
L:
|
|
1841
|
+
L: 229,
|
|
1844
1842
|
S: this,
|
|
1845
1843
|
C: (f, a) => f(...a)
|
|
1846
1844
|
});
|
|
@@ -1850,7 +1848,7 @@ var InvitationsHandler = class {
|
|
|
1850
1848
|
} else {
|
|
1851
1849
|
import_log5.log.warn("auth failed", err, {
|
|
1852
1850
|
F: __dxlog_file7,
|
|
1853
|
-
L:
|
|
1851
|
+
L: 232,
|
|
1854
1852
|
S: this,
|
|
1855
1853
|
C: (f, a) => f(...a)
|
|
1856
1854
|
});
|
|
@@ -1864,7 +1862,7 @@ var InvitationsHandler = class {
|
|
|
1864
1862
|
...protocol.toJSON()
|
|
1865
1863
|
}, {
|
|
1866
1864
|
F: __dxlog_file7,
|
|
1867
|
-
L:
|
|
1865
|
+
L: 240,
|
|
1868
1866
|
S: this,
|
|
1869
1867
|
C: (f, a) => f(...a)
|
|
1870
1868
|
});
|
|
@@ -1879,7 +1877,7 @@ var InvitationsHandler = class {
|
|
|
1879
1877
|
currentState
|
|
1880
1878
|
}, {
|
|
1881
1879
|
F: __dxlog_file7,
|
|
1882
|
-
L:
|
|
1880
|
+
L: 250,
|
|
1883
1881
|
S: this,
|
|
1884
1882
|
C: (f, a) => f(...a)
|
|
1885
1883
|
});
|
|
@@ -1894,7 +1892,7 @@ var InvitationsHandler = class {
|
|
|
1894
1892
|
id: traceId
|
|
1895
1893
|
}), {
|
|
1896
1894
|
F: __dxlog_file7,
|
|
1897
|
-
L:
|
|
1895
|
+
L: 259,
|
|
1898
1896
|
S: this,
|
|
1899
1897
|
C: (f, a) => f(...a)
|
|
1900
1898
|
});
|
|
@@ -1906,7 +1904,7 @@ var InvitationsHandler = class {
|
|
|
1906
1904
|
...protocol.toJSON()
|
|
1907
1905
|
}, {
|
|
1908
1906
|
F: __dxlog_file7,
|
|
1909
|
-
L:
|
|
1907
|
+
L: 267,
|
|
1910
1908
|
S: this,
|
|
1911
1909
|
C: (f, a) => f(...a)
|
|
1912
1910
|
});
|
|
@@ -1917,7 +1915,7 @@ var InvitationsHandler = class {
|
|
|
1917
1915
|
...protocol.toJSON()
|
|
1918
1916
|
}, {
|
|
1919
1917
|
F: __dxlog_file7,
|
|
1920
|
-
L:
|
|
1918
|
+
L: 271,
|
|
1921
1919
|
S: this,
|
|
1922
1920
|
C: (f, a) => f(...a)
|
|
1923
1921
|
});
|
|
@@ -1927,7 +1925,7 @@ var InvitationsHandler = class {
|
|
|
1927
1925
|
response: introductionResponse
|
|
1928
1926
|
}, {
|
|
1929
1927
|
F: __dxlog_file7,
|
|
1930
|
-
L:
|
|
1928
|
+
L: 275,
|
|
1931
1929
|
S: this,
|
|
1932
1930
|
C: (f, a) => f(...a)
|
|
1933
1931
|
});
|
|
@@ -1939,7 +1937,7 @@ var InvitationsHandler = class {
|
|
|
1939
1937
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
1940
1938
|
(0, import_log5.log)("guest waiting for authentication code...", void 0, {
|
|
1941
1939
|
F: __dxlog_file7,
|
|
1942
|
-
L:
|
|
1940
|
+
L: 284,
|
|
1943
1941
|
S: this,
|
|
1944
1942
|
C: (f, a) => f(...a)
|
|
1945
1943
|
});
|
|
@@ -1951,7 +1949,7 @@ var InvitationsHandler = class {
|
|
|
1951
1949
|
});
|
|
1952
1950
|
(0, import_log5.log)("sending authentication request", void 0, {
|
|
1953
1951
|
F: __dxlog_file7,
|
|
1954
|
-
L:
|
|
1952
|
+
L: 288,
|
|
1955
1953
|
S: this,
|
|
1956
1954
|
C: (f, a) => f(...a)
|
|
1957
1955
|
});
|
|
@@ -1972,7 +1970,7 @@ var InvitationsHandler = class {
|
|
|
1972
1970
|
attempt
|
|
1973
1971
|
}, {
|
|
1974
1972
|
F: __dxlog_file7,
|
|
1975
|
-
L:
|
|
1973
|
+
L: 299,
|
|
1976
1974
|
S: this,
|
|
1977
1975
|
C: (f, a) => f(...a)
|
|
1978
1976
|
});
|
|
@@ -1989,7 +1987,7 @@ var InvitationsHandler = class {
|
|
|
1989
1987
|
...protocol.toJSON()
|
|
1990
1988
|
}, {
|
|
1991
1989
|
F: __dxlog_file7,
|
|
1992
|
-
L:
|
|
1990
|
+
L: 310,
|
|
1993
1991
|
S: this,
|
|
1994
1992
|
C: (f, a) => f(...a)
|
|
1995
1993
|
});
|
|
@@ -2001,7 +1999,7 @@ var InvitationsHandler = class {
|
|
|
2001
1999
|
...protocol.toJSON()
|
|
2002
2000
|
}, {
|
|
2003
2001
|
F: __dxlog_file7,
|
|
2004
|
-
L:
|
|
2002
|
+
L: 321,
|
|
2005
2003
|
S: this,
|
|
2006
2004
|
C: (f, a) => f(...a)
|
|
2007
2005
|
});
|
|
@@ -2013,7 +2011,7 @@ var InvitationsHandler = class {
|
|
|
2013
2011
|
id: traceId
|
|
2014
2012
|
}), {
|
|
2015
2013
|
F: __dxlog_file7,
|
|
2016
|
-
L:
|
|
2014
|
+
L: 323,
|
|
2017
2015
|
S: this,
|
|
2018
2016
|
C: (f, a) => f(...a)
|
|
2019
2017
|
});
|
|
@@ -2023,7 +2021,7 @@ var InvitationsHandler = class {
|
|
|
2023
2021
|
...protocol.toJSON()
|
|
2024
2022
|
}, {
|
|
2025
2023
|
F: __dxlog_file7,
|
|
2026
|
-
L:
|
|
2024
|
+
L: 326,
|
|
2027
2025
|
S: this,
|
|
2028
2026
|
C: (f, a) => f(...a)
|
|
2029
2027
|
});
|
|
@@ -2033,7 +2031,7 @@ var InvitationsHandler = class {
|
|
|
2033
2031
|
} else {
|
|
2034
2032
|
(0, import_log5.log)("auth failed", err, {
|
|
2035
2033
|
F: __dxlog_file7,
|
|
2036
|
-
L:
|
|
2034
|
+
L: 329,
|
|
2037
2035
|
S: this,
|
|
2038
2036
|
C: (f, a) => f(...a)
|
|
2039
2037
|
});
|
|
@@ -2044,7 +2042,7 @@ var InvitationsHandler = class {
|
|
|
2044
2042
|
error: err
|
|
2045
2043
|
}), {
|
|
2046
2044
|
F: __dxlog_file7,
|
|
2047
|
-
L:
|
|
2045
|
+
L: 332,
|
|
2048
2046
|
S: this,
|
|
2049
2047
|
C: (f, a) => f(...a)
|
|
2050
2048
|
});
|
|
@@ -2054,7 +2052,7 @@ var InvitationsHandler = class {
|
|
|
2054
2052
|
});
|
|
2055
2053
|
},
|
|
2056
2054
|
onError: (err) => {
|
|
2057
|
-
if (err instanceof
|
|
2055
|
+
if (err instanceof import_protocols4.InvalidInvitationExtensionRoleError) {
|
|
2058
2056
|
return;
|
|
2059
2057
|
}
|
|
2060
2058
|
if (err instanceof import_async8.TimeoutError) {
|
|
@@ -2062,7 +2060,7 @@ var InvitationsHandler = class {
|
|
|
2062
2060
|
...protocol.toJSON()
|
|
2063
2061
|
}, {
|
|
2064
2062
|
F: __dxlog_file7,
|
|
2065
|
-
L:
|
|
2063
|
+
L: 343,
|
|
2066
2064
|
S: this,
|
|
2067
2065
|
C: (f, a) => f(...a)
|
|
2068
2066
|
});
|
|
@@ -2072,7 +2070,7 @@ var InvitationsHandler = class {
|
|
|
2072
2070
|
} else {
|
|
2073
2071
|
(0, import_log5.log)("auth failed", err, {
|
|
2074
2072
|
F: __dxlog_file7,
|
|
2075
|
-
L:
|
|
2073
|
+
L: 346,
|
|
2076
2074
|
S: this,
|
|
2077
2075
|
C: (f, a) => f(...a)
|
|
2078
2076
|
});
|
|
@@ -2085,7 +2083,7 @@ var InvitationsHandler = class {
|
|
|
2085
2083
|
(0, import_async8.scheduleTask)(ctx, async () => {
|
|
2086
2084
|
(0, import_invariant6.invariant)(invitation.swarmKey, void 0, {
|
|
2087
2085
|
F: __dxlog_file7,
|
|
2088
|
-
L:
|
|
2086
|
+
L: 356,
|
|
2089
2087
|
S: this,
|
|
2090
2088
|
A: [
|
|
2091
2089
|
"invitation.swarmKey",
|
|
@@ -2107,7 +2105,7 @@ var InvitationsHandler = class {
|
|
|
2107
2105
|
state: import_services3.Invitation.State.CONNECTING
|
|
2108
2106
|
});
|
|
2109
2107
|
});
|
|
2110
|
-
const observable = new import_client_protocol2.
|
|
2108
|
+
const observable = new import_client_protocol2.AuthenticatingInvitation({
|
|
2111
2109
|
initialInvitation: invitation,
|
|
2112
2110
|
subscriber: stream.observable,
|
|
2113
2111
|
onCancel: async () => {
|
|
@@ -2130,7 +2128,7 @@ var import_codec_protobuf8 = require("@dxos/codec-protobuf");
|
|
|
2130
2128
|
var import_invariant7 = require("@dxos/invariant");
|
|
2131
2129
|
var import_log6 = require("@dxos/log");
|
|
2132
2130
|
var import_services4 = require("@dxos/protocols/proto/dxos/client/services");
|
|
2133
|
-
var __dxlog_file8 = "/
|
|
2131
|
+
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-service.ts";
|
|
2134
2132
|
var InvitationsServiceImpl = class {
|
|
2135
2133
|
constructor(_invitationsHandler, _getHandler) {
|
|
2136
2134
|
this._invitationsHandler = _invitationsHandler;
|
|
@@ -2165,6 +2163,9 @@ var InvitationsServiceImpl = class {
|
|
|
2165
2163
|
}, () => {
|
|
2166
2164
|
close();
|
|
2167
2165
|
this._createInvitations.delete(invitation.get().invitationId);
|
|
2166
|
+
if (invitation.get().type !== import_services4.Invitation.Type.MULTIUSE) {
|
|
2167
|
+
this._removedCreated.emit(invitation.get());
|
|
2168
|
+
}
|
|
2168
2169
|
});
|
|
2169
2170
|
});
|
|
2170
2171
|
}
|
|
@@ -2187,19 +2188,22 @@ var InvitationsServiceImpl = class {
|
|
|
2187
2188
|
}, () => {
|
|
2188
2189
|
close();
|
|
2189
2190
|
this._acceptInvitations.delete(invitation.get().invitationId);
|
|
2191
|
+
if (invitation.get().type !== import_services4.Invitation.Type.MULTIUSE) {
|
|
2192
|
+
this._removedAccepted.emit(invitation.get());
|
|
2193
|
+
}
|
|
2190
2194
|
});
|
|
2191
2195
|
});
|
|
2192
2196
|
}
|
|
2193
2197
|
async authenticate({ invitationId, authCode }) {
|
|
2194
2198
|
(0, import_log6.log)("authenticating...", void 0, {
|
|
2195
2199
|
F: __dxlog_file8,
|
|
2196
|
-
L:
|
|
2200
|
+
L: 108,
|
|
2197
2201
|
S: this,
|
|
2198
2202
|
C: (f, a) => f(...a)
|
|
2199
2203
|
});
|
|
2200
2204
|
(0, import_invariant7.invariant)(invitationId, void 0, {
|
|
2201
2205
|
F: __dxlog_file8,
|
|
2202
|
-
L:
|
|
2206
|
+
L: 109,
|
|
2203
2207
|
S: this,
|
|
2204
2208
|
A: [
|
|
2205
2209
|
"invitationId",
|
|
@@ -2212,7 +2216,7 @@ var InvitationsServiceImpl = class {
|
|
|
2212
2216
|
invitationId
|
|
2213
2217
|
}, {
|
|
2214
2218
|
F: __dxlog_file8,
|
|
2215
|
-
L:
|
|
2219
|
+
L: 112,
|
|
2216
2220
|
S: this,
|
|
2217
2221
|
C: (f, a) => f(...a)
|
|
2218
2222
|
});
|
|
@@ -2223,13 +2227,13 @@ var InvitationsServiceImpl = class {
|
|
|
2223
2227
|
async cancelInvitation({ invitationId }) {
|
|
2224
2228
|
(0, import_log6.log)("deleting...", void 0, {
|
|
2225
2229
|
F: __dxlog_file8,
|
|
2226
|
-
L:
|
|
2230
|
+
L: 119,
|
|
2227
2231
|
S: this,
|
|
2228
2232
|
C: (f, a) => f(...a)
|
|
2229
2233
|
});
|
|
2230
2234
|
(0, import_invariant7.invariant)(invitationId, void 0, {
|
|
2231
2235
|
F: __dxlog_file8,
|
|
2232
|
-
L:
|
|
2236
|
+
L: 120,
|
|
2233
2237
|
S: this,
|
|
2234
2238
|
A: [
|
|
2235
2239
|
"invitationId",
|
|
@@ -2251,7 +2255,7 @@ var InvitationsServiceImpl = class {
|
|
|
2251
2255
|
invitationId
|
|
2252
2256
|
}, {
|
|
2253
2257
|
F: __dxlog_file8,
|
|
2254
|
-
L:
|
|
2258
|
+
L: 132,
|
|
2255
2259
|
S: this,
|
|
2256
2260
|
C: (f, a) => f(...a)
|
|
2257
2261
|
});
|
|
@@ -2315,7 +2319,7 @@ var import_feed_store3 = require("@dxos/feed-store");
|
|
|
2315
2319
|
var import_invariant8 = require("@dxos/invariant");
|
|
2316
2320
|
var import_log7 = require("@dxos/log");
|
|
2317
2321
|
var import_services5 = require("@dxos/protocols/proto/dxos/client/services");
|
|
2318
|
-
var __dxlog_file9 = "/
|
|
2322
|
+
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
|
|
2319
2323
|
var SpaceInvitationProtocol = class {
|
|
2320
2324
|
constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
|
|
2321
2325
|
this._spaceManager = _spaceManager;
|
|
@@ -2526,7 +2530,7 @@ var import_protocols5 = require("@dxos/protocols");
|
|
|
2526
2530
|
var import_services6 = require("@dxos/protocols/proto/dxos/client/services");
|
|
2527
2531
|
|
|
2528
2532
|
// packages/sdk/client-services/src/version.ts
|
|
2529
|
-
var DXOS_VERSION = "0.1.
|
|
2533
|
+
var DXOS_VERSION = "0.1.58-main.0e9c99e";
|
|
2530
2534
|
|
|
2531
2535
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
2532
2536
|
var getPlatform = () => {
|
|
@@ -2557,7 +2561,7 @@ var getPlatform = () => {
|
|
|
2557
2561
|
};
|
|
2558
2562
|
|
|
2559
2563
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
2560
|
-
var __dxlog_file10 = "/
|
|
2564
|
+
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
2561
2565
|
var DEFAULT_TIMEOUT = 1e3;
|
|
2562
2566
|
var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
2563
2567
|
const diagnostics = {
|
|
@@ -2679,13 +2683,13 @@ var import_async14 = require("@dxos/async");
|
|
|
2679
2683
|
var import_context9 = require("@dxos/context");
|
|
2680
2684
|
var import_credentials14 = require("@dxos/credentials");
|
|
2681
2685
|
var import_debug7 = require("@dxos/debug");
|
|
2682
|
-
var
|
|
2686
|
+
var import_echo_pipeline2 = require("@dxos/echo-pipeline");
|
|
2683
2687
|
var import_feed_store4 = require("@dxos/feed-store");
|
|
2684
|
-
var
|
|
2688
|
+
var import_invariant13 = require("@dxos/invariant");
|
|
2685
2689
|
var import_keyring = require("@dxos/keyring");
|
|
2686
2690
|
var import_keys10 = require("@dxos/keys");
|
|
2687
2691
|
var import_log13 = require("@dxos/log");
|
|
2688
|
-
var
|
|
2692
|
+
var import_protocols10 = require("@dxos/protocols");
|
|
2689
2693
|
var import_services10 = require("@dxos/protocols/proto/dxos/client/services");
|
|
2690
2694
|
var import_teleport_extension_object_sync = require("@dxos/teleport-extension-object-sync");
|
|
2691
2695
|
var import_tracing4 = require("@dxos/tracing");
|
|
@@ -2698,7 +2702,7 @@ var import_credentials13 = require("@dxos/credentials");
|
|
|
2698
2702
|
var import_invariant11 = require("@dxos/invariant");
|
|
2699
2703
|
var import_keys9 = require("@dxos/keys");
|
|
2700
2704
|
var import_log11 = require("@dxos/log");
|
|
2701
|
-
var
|
|
2705
|
+
var import_protocols8 = require("@dxos/protocols");
|
|
2702
2706
|
var import_services8 = require("@dxos/protocols/proto/dxos/client/services");
|
|
2703
2707
|
var import_teleport_extension_gossip = require("@dxos/teleport-extension-gossip");
|
|
2704
2708
|
var import_util5 = require("@dxos/util");
|
|
@@ -2709,9 +2713,9 @@ var import_client_protocol3 = require("@dxos/client-protocol");
|
|
|
2709
2713
|
var import_context7 = require("@dxos/context");
|
|
2710
2714
|
var import_debug4 = require("@dxos/debug");
|
|
2711
2715
|
var import_echo_pipeline = require("@dxos/echo-pipeline");
|
|
2712
|
-
var import_errors3 = require("@dxos/errors");
|
|
2713
2716
|
var import_keys8 = require("@dxos/keys");
|
|
2714
2717
|
var import_log10 = require("@dxos/log");
|
|
2718
|
+
var import_protocols7 = require("@dxos/protocols");
|
|
2715
2719
|
var import_services7 = require("@dxos/protocols/proto/dxos/client/services");
|
|
2716
2720
|
var import_credentials10 = require("@dxos/protocols/proto/dxos/halo/credentials");
|
|
2717
2721
|
var import_timeframe2 = require("@dxos/timeframe");
|
|
@@ -2727,7 +2731,7 @@ var import_log9 = require("@dxos/log");
|
|
|
2727
2731
|
var import_protocols6 = require("@dxos/protocols");
|
|
2728
2732
|
var import_teleport2 = require("@dxos/teleport");
|
|
2729
2733
|
var import_util3 = require("@dxos/util");
|
|
2730
|
-
var __dxlog_file11 = "/
|
|
2734
|
+
var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
|
|
2731
2735
|
var DEFAULT_RETRY_TIMEOUT = 1e3;
|
|
2732
2736
|
var DEFAULT_SUCCESS_DELAY = 1e3;
|
|
2733
2737
|
var DEFAULT_NOTARIZE_TIMEOUT = 1e4;
|
|
@@ -2997,7 +3001,7 @@ function _ts_decorate3(decorators, target, key, desc) {
|
|
|
2997
3001
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2998
3002
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2999
3003
|
}
|
|
3000
|
-
var __dxlog_file12 = "/
|
|
3004
|
+
var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
|
|
3001
3005
|
var ENABLE_FEED_PURGE = false;
|
|
3002
3006
|
var DataSpace = class DataSpace2 {
|
|
3003
3007
|
constructor(params) {
|
|
@@ -3020,7 +3024,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3020
3024
|
this._signingContext = params.signingContext;
|
|
3021
3025
|
this._callbacks = params.callbacks ?? {};
|
|
3022
3026
|
this.authVerifier = new TrustedKeySetAuthVerifier({
|
|
3023
|
-
trustedKeysProvider: () => new import_util4.ComplexSet(import_keys8.PublicKey.hash, Array.from(this._inner.spaceState.members.
|
|
3027
|
+
trustedKeysProvider: () => new import_util4.ComplexSet(import_keys8.PublicKey.hash, Array.from(this._inner.spaceState.members.values()).filter((member) => !member.removed).map((member) => member.key)),
|
|
3024
3028
|
update: this._inner.stateUpdate,
|
|
3025
3029
|
authTimeout: import_client_protocol3.AUTH_TIMEOUT
|
|
3026
3030
|
});
|
|
@@ -3030,7 +3034,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3030
3034
|
state: import_services7.SpaceState[this._state]
|
|
3031
3035
|
}, {
|
|
3032
3036
|
F: __dxlog_file12,
|
|
3033
|
-
L:
|
|
3037
|
+
L: 118,
|
|
3034
3038
|
S: this,
|
|
3035
3039
|
C: (f, a) => f(...a)
|
|
3036
3040
|
});
|
|
@@ -3064,6 +3068,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3064
3068
|
await this._open();
|
|
3065
3069
|
}
|
|
3066
3070
|
async _open() {
|
|
3071
|
+
await this._gossip.open();
|
|
3067
3072
|
await this._notarizationPlugin.open();
|
|
3068
3073
|
await this._inner.spaceState.addCredentialProcessor(this._notarizationPlugin);
|
|
3069
3074
|
await this._inner.open(new import_context7.Context());
|
|
@@ -3072,7 +3077,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3072
3077
|
state: import_services7.SpaceState[this._state]
|
|
3073
3078
|
}, {
|
|
3074
3079
|
F: __dxlog_file12,
|
|
3075
|
-
L:
|
|
3080
|
+
L: 165,
|
|
3076
3081
|
S: this,
|
|
3077
3082
|
C: (f, a) => f(...a)
|
|
3078
3083
|
});
|
|
@@ -3090,7 +3095,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3090
3095
|
state: import_services7.SpaceState[this._state]
|
|
3091
3096
|
}, {
|
|
3092
3097
|
F: __dxlog_file12,
|
|
3093
|
-
L:
|
|
3098
|
+
L: 179,
|
|
3094
3099
|
S: this,
|
|
3095
3100
|
C: (f, a) => f(...a)
|
|
3096
3101
|
});
|
|
@@ -3101,6 +3106,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3101
3106
|
await this._inner.spaceState.removeCredentialProcessor(this._notarizationPlugin);
|
|
3102
3107
|
await this._notarizationPlugin.close();
|
|
3103
3108
|
await this._presence.destroy();
|
|
3109
|
+
await this._gossip.close();
|
|
3104
3110
|
}
|
|
3105
3111
|
async postMessage(channel, message) {
|
|
3106
3112
|
return this._gossip.postMessage(channel, message);
|
|
@@ -3117,10 +3123,10 @@ var DataSpace = class DataSpace2 {
|
|
|
3117
3123
|
this.metrics.pipelineInitBegin = /* @__PURE__ */ new Date();
|
|
3118
3124
|
await this.initializeDataPipeline();
|
|
3119
3125
|
} catch (err) {
|
|
3120
|
-
if (err instanceof
|
|
3126
|
+
if (err instanceof import_protocols7.CancelledError) {
|
|
3121
3127
|
(0, import_log10.log)("data pipeline initialization cancelled", err, {
|
|
3122
3128
|
F: __dxlog_file12,
|
|
3123
|
-
L:
|
|
3129
|
+
L: 211,
|
|
3124
3130
|
S: this,
|
|
3125
3131
|
C: (f, a) => f(...a)
|
|
3126
3132
|
});
|
|
@@ -3128,7 +3134,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3128
3134
|
}
|
|
3129
3135
|
import_log10.log.error("Error initializing data pipeline", err, {
|
|
3130
3136
|
F: __dxlog_file12,
|
|
3131
|
-
L:
|
|
3137
|
+
L: 215,
|
|
3132
3138
|
S: this,
|
|
3133
3139
|
C: (f, a) => f(...a)
|
|
3134
3140
|
});
|
|
@@ -3137,7 +3143,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3137
3143
|
state: import_services7.SpaceState[this._state]
|
|
3138
3144
|
}, {
|
|
3139
3145
|
F: __dxlog_file12,
|
|
3140
|
-
L:
|
|
3146
|
+
L: 217,
|
|
3141
3147
|
S: this,
|
|
3142
3148
|
C: (f, a) => f(...a)
|
|
3143
3149
|
});
|
|
@@ -3150,14 +3156,14 @@ var DataSpace = class DataSpace2 {
|
|
|
3150
3156
|
}
|
|
3151
3157
|
async initializeDataPipeline() {
|
|
3152
3158
|
if (this._state !== import_services7.SpaceState.CONTROL_ONLY) {
|
|
3153
|
-
throw new
|
|
3159
|
+
throw new import_protocols7.SystemError("Invalid operation");
|
|
3154
3160
|
}
|
|
3155
3161
|
this._state = import_services7.SpaceState.INITIALIZING;
|
|
3156
3162
|
(0, import_log10.log)("new state", {
|
|
3157
3163
|
state: import_services7.SpaceState[this._state]
|
|
3158
3164
|
}, {
|
|
3159
3165
|
F: __dxlog_file12,
|
|
3160
|
-
L:
|
|
3166
|
+
L: 233,
|
|
3161
3167
|
S: this,
|
|
3162
3168
|
C: (f, a) => f(...a)
|
|
3163
3169
|
});
|
|
@@ -3168,7 +3174,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3168
3174
|
await (0, import_context7.cancelWithContext)(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
|
|
3169
3175
|
(0, import_log10.log)("waiting for data pipeline to reach target timeframe", void 0, {
|
|
3170
3176
|
F: __dxlog_file12,
|
|
3171
|
-
L:
|
|
3177
|
+
L: 247,
|
|
3172
3178
|
S: this,
|
|
3173
3179
|
C: (f, a) => f(...a)
|
|
3174
3180
|
});
|
|
@@ -3179,7 +3185,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3179
3185
|
this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
|
|
3180
3186
|
(0, import_log10.log)("data pipeline ready", void 0, {
|
|
3181
3187
|
F: __dxlog_file12,
|
|
3182
|
-
L:
|
|
3188
|
+
L: 256,
|
|
3183
3189
|
S: this,
|
|
3184
3190
|
C: (f, a) => f(...a)
|
|
3185
3191
|
});
|
|
@@ -3189,7 +3195,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3189
3195
|
state: import_services7.SpaceState[this._state]
|
|
3190
3196
|
}, {
|
|
3191
3197
|
F: __dxlog_file12,
|
|
3192
|
-
L:
|
|
3198
|
+
L: 260,
|
|
3193
3199
|
S: this,
|
|
3194
3200
|
C: (f, a) => f(...a)
|
|
3195
3201
|
});
|
|
@@ -3205,7 +3211,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3205
3211
|
await this._createWritableFeeds();
|
|
3206
3212
|
(0, import_log10.log)("writable feeds created", void 0, {
|
|
3207
3213
|
F: __dxlog_file12,
|
|
3208
|
-
L:
|
|
3214
|
+
L: 276,
|
|
3209
3215
|
S: this,
|
|
3210
3216
|
C: (f, a) => f(...a)
|
|
3211
3217
|
});
|
|
@@ -3310,7 +3316,7 @@ var DataSpace = class DataSpace2 {
|
|
|
3310
3316
|
state: import_services7.SpaceState[this._state]
|
|
3311
3317
|
}, {
|
|
3312
3318
|
F: __dxlog_file12,
|
|
3313
|
-
L:
|
|
3319
|
+
L: 392,
|
|
3314
3320
|
S: this,
|
|
3315
3321
|
C: (f, a) => f(...a)
|
|
3316
3322
|
});
|
|
@@ -3426,7 +3432,7 @@ function _ts_decorate4(decorators, target, key, desc) {
|
|
|
3426
3432
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3427
3433
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3428
3434
|
}
|
|
3429
|
-
var __dxlog_file13 = "/
|
|
3435
|
+
var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
|
|
3430
3436
|
var DataSpaceManager = class DataSpaceManager2 {
|
|
3431
3437
|
constructor(_spaceManager, _metadataStore, _dataServiceSubscriptions, _keyring, _signingContext, _feedStore) {
|
|
3432
3438
|
this._spaceManager = _spaceManager;
|
|
@@ -3452,7 +3458,7 @@ var DataSpaceManager = class DataSpaceManager2 {
|
|
|
3452
3458
|
S: this,
|
|
3453
3459
|
C: (f, a) => f(...a)
|
|
3454
3460
|
});
|
|
3455
|
-
import_log11.log.trace("dxos.echo.data-space-manager.open",
|
|
3461
|
+
import_log11.log.trace("dxos.echo.data-space-manager.open", import_protocols8.trace.begin({
|
|
3456
3462
|
id: this._instanceId
|
|
3457
3463
|
}), {
|
|
3458
3464
|
F: __dxlog_file13,
|
|
@@ -3498,7 +3504,7 @@ var DataSpaceManager = class DataSpaceManager2 {
|
|
|
3498
3504
|
space.initializeDataPipelineAsync();
|
|
3499
3505
|
}
|
|
3500
3506
|
}
|
|
3501
|
-
import_log11.log.trace("dxos.echo.data-space-manager.open",
|
|
3507
|
+
import_log11.log.trace("dxos.echo.data-space-manager.open", import_protocols8.trace.end({
|
|
3502
3508
|
id: this._instanceId
|
|
3503
3509
|
}), {
|
|
3504
3510
|
F: __dxlog_file13,
|
|
@@ -3752,12 +3758,11 @@ DataSpaceManager = _ts_decorate4([
|
|
|
3752
3758
|
var import_async13 = require("@dxos/async");
|
|
3753
3759
|
var import_codec_protobuf11 = require("@dxos/codec-protobuf");
|
|
3754
3760
|
var import_debug6 = require("@dxos/debug");
|
|
3755
|
-
var
|
|
3756
|
-
var import_errors4 = require("@dxos/errors");
|
|
3761
|
+
var import_invariant12 = require("@dxos/invariant");
|
|
3757
3762
|
var import_log12 = require("@dxos/log");
|
|
3758
|
-
var
|
|
3763
|
+
var import_protocols9 = require("@dxos/protocols");
|
|
3759
3764
|
var import_services9 = require("@dxos/protocols/proto/dxos/client/services");
|
|
3760
|
-
var __dxlog_file14 = "/
|
|
3765
|
+
var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
|
|
3761
3766
|
var SpacesServiceImpl = class {
|
|
3762
3767
|
constructor(_identityManager, _spaceManager, _dataServiceSubscriptions, _getDataSpaceManager) {
|
|
3763
3768
|
this._identityManager = _identityManager;
|
|
@@ -3775,7 +3780,7 @@ var SpacesServiceImpl = class {
|
|
|
3775
3780
|
}
|
|
3776
3781
|
async updateSpace({ spaceKey, state }) {
|
|
3777
3782
|
const dataSpaceManager = await this._getDataSpaceManager();
|
|
3778
|
-
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new
|
|
3783
|
+
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
|
|
3779
3784
|
if (state) {
|
|
3780
3785
|
switch (state) {
|
|
3781
3786
|
case import_services9.SpaceState.ACTIVE:
|
|
@@ -3785,7 +3790,7 @@ var SpacesServiceImpl = class {
|
|
|
3785
3790
|
await space.deactivate();
|
|
3786
3791
|
break;
|
|
3787
3792
|
default:
|
|
3788
|
-
throw new
|
|
3793
|
+
throw new import_protocols9.ApiError("Invalid space state");
|
|
3789
3794
|
}
|
|
3790
3795
|
}
|
|
3791
3796
|
}
|
|
@@ -3840,14 +3845,14 @@ var SpacesServiceImpl = class {
|
|
|
3840
3845
|
}
|
|
3841
3846
|
async postMessage({ spaceKey, channel, message }) {
|
|
3842
3847
|
const dataSpaceManager = await this._getDataSpaceManager();
|
|
3843
|
-
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new
|
|
3848
|
+
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
|
|
3844
3849
|
await space.postMessage(getChannelId(channel), message);
|
|
3845
3850
|
}
|
|
3846
3851
|
subscribeMessages({ spaceKey, channel }) {
|
|
3847
3852
|
return new import_codec_protobuf11.Stream(({ ctx, next }) => {
|
|
3848
3853
|
(0, import_async13.scheduleTask)(ctx, async () => {
|
|
3849
3854
|
const dataSpaceManager = await this._getDataSpaceManager();
|
|
3850
|
-
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new
|
|
3855
|
+
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
|
|
3851
3856
|
const handle = space.listen(getChannelId(channel), (message) => {
|
|
3852
3857
|
next(message);
|
|
3853
3858
|
});
|
|
@@ -3855,38 +3860,83 @@ var SpacesServiceImpl = class {
|
|
|
3855
3860
|
});
|
|
3856
3861
|
});
|
|
3857
3862
|
}
|
|
3858
|
-
queryCredentials({ spaceKey }) {
|
|
3859
|
-
return new import_codec_protobuf11.Stream(({ ctx, next }) => {
|
|
3860
|
-
const space = this._spaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new
|
|
3863
|
+
queryCredentials({ spaceKey, noTail }) {
|
|
3864
|
+
return new import_codec_protobuf11.Stream(({ ctx, next, close }) => {
|
|
3865
|
+
const space = this._spaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
|
|
3861
3866
|
const processor = {
|
|
3862
3867
|
processCredential: async (credential) => {
|
|
3863
3868
|
next(credential);
|
|
3864
3869
|
}
|
|
3865
3870
|
};
|
|
3866
3871
|
ctx.onDispose(() => space.spaceState.removeCredentialProcessor(processor));
|
|
3867
|
-
(0, import_async13.scheduleTask)(ctx, () =>
|
|
3872
|
+
(0, import_async13.scheduleTask)(ctx, async () => {
|
|
3873
|
+
await space.spaceState.addCredentialProcessor(processor);
|
|
3874
|
+
if (noTail) {
|
|
3875
|
+
close();
|
|
3876
|
+
}
|
|
3877
|
+
});
|
|
3868
3878
|
});
|
|
3869
3879
|
}
|
|
3870
3880
|
async writeCredentials({ spaceKey, credentials }) {
|
|
3871
|
-
const space = this._spaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new
|
|
3881
|
+
const space = this._spaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
|
|
3872
3882
|
for (const credential of credentials ?? []) {
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
credential
|
|
3876
|
-
|
|
3877
|
-
|
|
3883
|
+
if (credential.proof) {
|
|
3884
|
+
await space.controlPipeline.writer.write({
|
|
3885
|
+
credential: {
|
|
3886
|
+
credential
|
|
3887
|
+
}
|
|
3888
|
+
});
|
|
3889
|
+
} else {
|
|
3890
|
+
(0, import_invariant12.invariant)(!credential.id, "Id on unsigned credentials is not allowed", {
|
|
3891
|
+
F: __dxlog_file14,
|
|
3892
|
+
L: 168,
|
|
3893
|
+
S: this,
|
|
3894
|
+
A: [
|
|
3895
|
+
"!credential.id",
|
|
3896
|
+
"'Id on unsigned credentials is not allowed'"
|
|
3897
|
+
]
|
|
3898
|
+
});
|
|
3899
|
+
(0, import_invariant12.invariant)(this._identityManager.identity, "Identity is not available", {
|
|
3900
|
+
F: __dxlog_file14,
|
|
3901
|
+
L: 169,
|
|
3902
|
+
S: this,
|
|
3903
|
+
A: [
|
|
3904
|
+
"this._identityManager.identity",
|
|
3905
|
+
"'Identity is not available'"
|
|
3906
|
+
]
|
|
3907
|
+
});
|
|
3908
|
+
const signer = this._identityManager.identity.getIdentityCredentialSigner();
|
|
3909
|
+
(0, import_invariant12.invariant)(credential.issuer.equals(signer.getIssuer()), void 0, {
|
|
3910
|
+
F: __dxlog_file14,
|
|
3911
|
+
L: 171,
|
|
3912
|
+
S: this,
|
|
3913
|
+
A: [
|
|
3914
|
+
"credential.issuer.equals(signer.getIssuer())",
|
|
3915
|
+
""
|
|
3916
|
+
]
|
|
3917
|
+
});
|
|
3918
|
+
const signedCredential = await signer.createCredential({
|
|
3919
|
+
subject: credential.subject.id,
|
|
3920
|
+
assertion: credential.subject.assertion
|
|
3921
|
+
});
|
|
3922
|
+
await space.controlPipeline.writer.write({
|
|
3923
|
+
credential: {
|
|
3924
|
+
credential: signedCredential
|
|
3925
|
+
}
|
|
3926
|
+
});
|
|
3927
|
+
}
|
|
3878
3928
|
}
|
|
3879
3929
|
}
|
|
3880
3930
|
async createEpoch({ spaceKey }) {
|
|
3881
3931
|
const dataSpaceManager = await this._getDataSpaceManager();
|
|
3882
|
-
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new
|
|
3932
|
+
const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
|
|
3883
3933
|
await space.createEpoch();
|
|
3884
3934
|
}
|
|
3885
3935
|
_serializeSpace(space) {
|
|
3886
3936
|
return {
|
|
3887
3937
|
spaceKey: space.key,
|
|
3888
3938
|
state: space.state,
|
|
3889
|
-
error: space.error ? (0,
|
|
3939
|
+
error: space.error ? (0, import_protocols9.encodeError)(space.error) : void 0,
|
|
3890
3940
|
pipeline: {
|
|
3891
3941
|
currentEpoch: space.dataPipeline.currentEpoch,
|
|
3892
3942
|
appliedEpoch: space.dataPipeline.appliedEpoch,
|
|
@@ -3913,7 +3963,7 @@ var SpacesServiceImpl = class {
|
|
|
3913
3963
|
displayName: member.assertion.profile?.displayName
|
|
3914
3964
|
}
|
|
3915
3965
|
},
|
|
3916
|
-
presence: isMe || peers.length > 0 ? import_services9.SpaceMember.PresenceState.ONLINE : import_services9.SpaceMember.PresenceState.OFFLINE,
|
|
3966
|
+
presence: member.removed ? import_services9.SpaceMember.PresenceState.REMOVED : isMe || peers.length > 0 ? import_services9.SpaceMember.PresenceState.ONLINE : import_services9.SpaceMember.PresenceState.OFFLINE,
|
|
3917
3967
|
peerStates: peers
|
|
3918
3968
|
};
|
|
3919
3969
|
}),
|
|
@@ -3936,7 +3986,7 @@ function _ts_decorate5(decorators, target, key, desc) {
|
|
|
3936
3986
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3937
3987
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3938
3988
|
}
|
|
3939
|
-
var __dxlog_file15 = "/
|
|
3989
|
+
var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
|
|
3940
3990
|
var ServiceContext = class ServiceContext2 {
|
|
3941
3991
|
// prettier-ignore
|
|
3942
3992
|
constructor(storage, networkManager, signalManager, modelFactory) {
|
|
@@ -3945,11 +3995,11 @@ var ServiceContext = class ServiceContext2 {
|
|
|
3945
3995
|
this.signalManager = signalManager;
|
|
3946
3996
|
this.modelFactory = modelFactory;
|
|
3947
3997
|
this.initialized = new import_async14.Trigger();
|
|
3948
|
-
this.dataServiceSubscriptions = new
|
|
3998
|
+
this.dataServiceSubscriptions = new import_echo_pipeline2.DataServiceSubscriptions();
|
|
3949
3999
|
this._handlerFactories = /* @__PURE__ */ new Map();
|
|
3950
4000
|
this._instanceId = import_keys10.PublicKey.random().toHex();
|
|
3951
|
-
this.metadataStore = new
|
|
3952
|
-
this.snapshotStore = new
|
|
4001
|
+
this.metadataStore = new import_echo_pipeline2.MetadataStore(storage.createDirectory("metadata"));
|
|
4002
|
+
this.snapshotStore = new import_echo_pipeline2.SnapshotStore(storage.createDirectory("snapshots"));
|
|
3953
4003
|
this.blobStore = new import_teleport_extension_object_sync.BlobStore(storage.createDirectory("blobs"));
|
|
3954
4004
|
this.keyring = new import_keyring.Keyring(storage.createDirectory("keyring"));
|
|
3955
4005
|
this.feedStore = new import_feed_store4.FeedStore({
|
|
@@ -3957,12 +4007,12 @@ var ServiceContext = class ServiceContext2 {
|
|
|
3957
4007
|
root: storage.createDirectory("feeds"),
|
|
3958
4008
|
signer: this.keyring,
|
|
3959
4009
|
hypercore: {
|
|
3960
|
-
valueEncoding:
|
|
4010
|
+
valueEncoding: import_echo_pipeline2.valueEncoding,
|
|
3961
4011
|
stats: true
|
|
3962
4012
|
}
|
|
3963
4013
|
})
|
|
3964
4014
|
});
|
|
3965
|
-
this.spaceManager = new
|
|
4015
|
+
this.spaceManager = new import_echo_pipeline2.SpaceManager({
|
|
3966
4016
|
feedStore: this.feedStore,
|
|
3967
4017
|
networkManager: this.networkManager,
|
|
3968
4018
|
blobStore: this.blobStore,
|
|
@@ -3982,7 +4032,7 @@ var ServiceContext = class ServiceContext2 {
|
|
|
3982
4032
|
S: this,
|
|
3983
4033
|
C: (f, a) => f(...a)
|
|
3984
4034
|
});
|
|
3985
|
-
import_log13.log.trace("dxos.sdk.service-context.open",
|
|
4035
|
+
import_log13.log.trace("dxos.sdk.service-context.open", import_protocols10.trace.begin({
|
|
3986
4036
|
id: this._instanceId
|
|
3987
4037
|
}), {
|
|
3988
4038
|
F: __dxlog_file15,
|
|
@@ -3998,7 +4048,7 @@ var ServiceContext = class ServiceContext2 {
|
|
|
3998
4048
|
if (this.identityManager.identity) {
|
|
3999
4049
|
await this._initialize(ctx);
|
|
4000
4050
|
}
|
|
4001
|
-
import_log13.log.trace("dxos.sdk.service-context.open",
|
|
4051
|
+
import_log13.log.trace("dxos.sdk.service-context.open", import_protocols10.trace.end({
|
|
4002
4052
|
id: this._instanceId
|
|
4003
4053
|
}), {
|
|
4004
4054
|
F: __dxlog_file15,
|
|
@@ -4045,7 +4095,7 @@ var ServiceContext = class ServiceContext2 {
|
|
|
4045
4095
|
}
|
|
4046
4096
|
getInvitationHandler(invitation) {
|
|
4047
4097
|
const factory = this._handlerFactories.get(invitation.kind);
|
|
4048
|
-
(0,
|
|
4098
|
+
(0, import_invariant13.invariant)(factory, `Unknown invitation kind: ${invitation.kind}`, {
|
|
4049
4099
|
F: __dxlog_file15,
|
|
4050
4100
|
L: 174,
|
|
4051
4101
|
S: this,
|
|
@@ -4063,8 +4113,8 @@ var ServiceContext = class ServiceContext2 {
|
|
|
4063
4113
|
}
|
|
4064
4114
|
async _checkStorageVersion() {
|
|
4065
4115
|
await this.metadataStore.load();
|
|
4066
|
-
if (this.metadataStore.version !==
|
|
4067
|
-
throw new
|
|
4116
|
+
if (this.metadataStore.version !== import_protocols10.STORAGE_VERSION) {
|
|
4117
|
+
throw new import_protocols10.InvalidStorageVersionError(import_protocols10.STORAGE_VERSION, this.metadataStore.version);
|
|
4068
4118
|
}
|
|
4069
4119
|
}
|
|
4070
4120
|
// Called when identity is created.
|
|
@@ -4092,7 +4142,7 @@ var ServiceContext = class ServiceContext2 {
|
|
|
4092
4142
|
this.dataSpaceManager = new DataSpaceManager(this.spaceManager, this.metadataStore, this.dataServiceSubscriptions, this.keyring, signingContext, this.feedStore);
|
|
4093
4143
|
await this.dataSpaceManager.open();
|
|
4094
4144
|
this._handlerFactories.set(import_services10.Invitation.Kind.SPACE, (invitation) => {
|
|
4095
|
-
(0,
|
|
4145
|
+
(0, import_invariant13.invariant)(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
|
|
4096
4146
|
F: __dxlog_file15,
|
|
4097
4147
|
L: 218,
|
|
4098
4148
|
S: this,
|
|
@@ -4177,14 +4227,14 @@ var import_async17 = require("@dxos/async");
|
|
|
4177
4227
|
var import_client_protocol5 = require("@dxos/client-protocol");
|
|
4178
4228
|
var import_context10 = require("@dxos/context");
|
|
4179
4229
|
var import_document_model2 = require("@dxos/document-model");
|
|
4180
|
-
var
|
|
4181
|
-
var
|
|
4230
|
+
var import_echo_pipeline3 = require("@dxos/echo-pipeline");
|
|
4231
|
+
var import_invariant15 = require("@dxos/invariant");
|
|
4182
4232
|
var import_keys11 = require("@dxos/keys");
|
|
4183
4233
|
var import_log16 = require("@dxos/log");
|
|
4184
4234
|
var import_messaging = require("@dxos/messaging");
|
|
4185
4235
|
var import_model_factory = require("@dxos/model-factory");
|
|
4186
4236
|
var import_network_manager2 = require("@dxos/network-manager");
|
|
4187
|
-
var
|
|
4237
|
+
var import_protocols12 = require("@dxos/protocols");
|
|
4188
4238
|
var import_services14 = require("@dxos/protocols/proto/dxos/client/services");
|
|
4189
4239
|
var import_text_model = require("@dxos/text-model");
|
|
4190
4240
|
var import_tracing5 = require("@dxos/tracing");
|
|
@@ -4234,7 +4284,7 @@ var DevicesServiceImpl = class {
|
|
|
4234
4284
|
};
|
|
4235
4285
|
|
|
4236
4286
|
// packages/sdk/client-services/src/packlets/locks/node.ts
|
|
4237
|
-
var
|
|
4287
|
+
var import_invariant14 = require("@dxos/invariant");
|
|
4238
4288
|
var import_lock_file = require("@dxos/lock-file");
|
|
4239
4289
|
var import_log14 = require("@dxos/log");
|
|
4240
4290
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
@@ -4247,7 +4297,7 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
4247
4297
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4248
4298
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4249
4299
|
}
|
|
4250
|
-
var __dxlog_file16 = "/
|
|
4300
|
+
var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
|
|
4251
4301
|
var Lock = class {
|
|
4252
4302
|
constructor({ lockKey: lockPath, onAcquire, onRelease }) {
|
|
4253
4303
|
this._lockPath = lockPath;
|
|
@@ -4275,7 +4325,7 @@ var Lock = class {
|
|
|
4275
4325
|
}
|
|
4276
4326
|
async release() {
|
|
4277
4327
|
await this._onRelease?.();
|
|
4278
|
-
(0,
|
|
4328
|
+
(0, import_invariant14.invariant)(this._fileHandle, "Lock is not acquired", {
|
|
4279
4329
|
F: __dxlog_file16,
|
|
4280
4330
|
L: 42,
|
|
4281
4331
|
S: this,
|
|
@@ -4443,7 +4493,7 @@ var NetworkServiceImpl = class {
|
|
|
4443
4493
|
|
|
4444
4494
|
// packages/sdk/client-services/src/packlets/storage/storage.ts
|
|
4445
4495
|
var import_client_protocol4 = require("@dxos/client-protocol");
|
|
4446
|
-
var
|
|
4496
|
+
var import_protocols11 = require("@dxos/protocols");
|
|
4447
4497
|
var import_config = require("@dxos/protocols/proto/dxos/config");
|
|
4448
4498
|
var import_random_access_storage = require("@dxos/random-access-storage");
|
|
4449
4499
|
var import_util8 = require("@dxos/util");
|
|
@@ -4451,16 +4501,16 @@ var StorageDriver = import_config.Runtime.Client.Storage.StorageDriver;
|
|
|
4451
4501
|
var createStorageObjects = (config) => {
|
|
4452
4502
|
const { path = (0, import_util8.isNode)() ? import_client_protocol4.DX_DATA : "dxos/storage", storageType, keyStorage, persistent = false } = config ?? {};
|
|
4453
4503
|
if (persistent && storageType === StorageDriver.RAM) {
|
|
4454
|
-
throw new
|
|
4504
|
+
throw new import_protocols11.InvalidConfigError("RAM storage cannot be used in persistent mode.");
|
|
4455
4505
|
}
|
|
4456
4506
|
if (!persistent && storageType !== void 0 && storageType !== StorageDriver.RAM) {
|
|
4457
|
-
throw new
|
|
4507
|
+
throw new import_protocols11.InvalidConfigError("Cannot use a persistent storage in not persistent mode.");
|
|
4458
4508
|
}
|
|
4459
4509
|
if (persistent && keyStorage === StorageDriver.RAM) {
|
|
4460
|
-
throw new
|
|
4510
|
+
throw new import_protocols11.InvalidConfigError("RAM key storage cannot be used in persistent mode.");
|
|
4461
4511
|
}
|
|
4462
4512
|
if (!persistent && keyStorage !== StorageDriver.RAM && keyStorage !== void 0) {
|
|
4463
|
-
throw new
|
|
4513
|
+
throw new import_protocols11.InvalidConfigError("Cannot use a persistent key storage in not persistent mode.");
|
|
4464
4514
|
}
|
|
4465
4515
|
return {
|
|
4466
4516
|
storage: (0, import_random_access_storage.createStorage)({
|
|
@@ -4579,7 +4629,7 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
4579
4629
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4580
4630
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4581
4631
|
}
|
|
4582
|
-
var __dxlog_file17 = "/
|
|
4632
|
+
var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
|
|
4583
4633
|
var createDefaultModelFactory = () => {
|
|
4584
4634
|
return new import_model_factory.ModelFactory().registerModel(import_document_model2.DocumentModel).registerModel(import_text_model.TextModel);
|
|
4585
4635
|
};
|
|
@@ -4667,7 +4717,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4667
4717
|
* Can only be called once.
|
|
4668
4718
|
*/
|
|
4669
4719
|
initialize({ config, ...options }) {
|
|
4670
|
-
(0,
|
|
4720
|
+
(0, import_invariant15.invariant)(!this._open, "service host is open", {
|
|
4671
4721
|
F: __dxlog_file17,
|
|
4672
4722
|
L: 184,
|
|
4673
4723
|
S: this,
|
|
@@ -4683,7 +4733,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4683
4733
|
C: (f, a) => f(...a)
|
|
4684
4734
|
});
|
|
4685
4735
|
if (config) {
|
|
4686
|
-
(0,
|
|
4736
|
+
(0, import_invariant15.invariant)(!this._config, "config already set", {
|
|
4687
4737
|
F: __dxlog_file17,
|
|
4688
4738
|
L: 188,
|
|
4689
4739
|
S: this,
|
|
@@ -4701,7 +4751,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4701
4751
|
iceServers: this._config?.get("runtime.services.ice")
|
|
4702
4752
|
}), signalManager = new import_messaging.WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
|
|
4703
4753
|
this._signalManager = signalManager;
|
|
4704
|
-
(0,
|
|
4754
|
+
(0, import_invariant15.invariant)(!this._networkManager, "network manager already set", {
|
|
4705
4755
|
F: __dxlog_file17,
|
|
4706
4756
|
L: 204,
|
|
4707
4757
|
S: this,
|
|
@@ -4727,7 +4777,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4727
4777
|
return;
|
|
4728
4778
|
}
|
|
4729
4779
|
const traceId = import_keys11.PublicKey.random().toHex();
|
|
4730
|
-
import_log16.log.trace("dxos.client-services.host.open",
|
|
4780
|
+
import_log16.log.trace("dxos.client-services.host.open", import_protocols12.trace.begin({
|
|
4731
4781
|
id: traceId
|
|
4732
4782
|
}), {
|
|
4733
4783
|
F: __dxlog_file17,
|
|
@@ -4735,7 +4785,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4735
4785
|
S: this,
|
|
4736
4786
|
C: (f, a) => f(...a)
|
|
4737
4787
|
});
|
|
4738
|
-
(0,
|
|
4788
|
+
(0, import_invariant15.invariant)(this._config, "config not set", {
|
|
4739
4789
|
F: __dxlog_file17,
|
|
4740
4790
|
L: 224,
|
|
4741
4791
|
S: this,
|
|
@@ -4744,7 +4794,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4744
4794
|
"'config not set'"
|
|
4745
4795
|
]
|
|
4746
4796
|
});
|
|
4747
|
-
(0,
|
|
4797
|
+
(0, import_invariant15.invariant)(this._storage, "storage not set", {
|
|
4748
4798
|
F: __dxlog_file17,
|
|
4749
4799
|
L: 225,
|
|
4750
4800
|
S: this,
|
|
@@ -4753,7 +4803,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4753
4803
|
"'storage not set'"
|
|
4754
4804
|
]
|
|
4755
4805
|
});
|
|
4756
|
-
(0,
|
|
4806
|
+
(0, import_invariant15.invariant)(this._signalManager, "signal manager not set", {
|
|
4757
4807
|
F: __dxlog_file17,
|
|
4758
4808
|
L: 226,
|
|
4759
4809
|
S: this,
|
|
@@ -4762,7 +4812,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4762
4812
|
"'signal manager not set'"
|
|
4763
4813
|
]
|
|
4764
4814
|
});
|
|
4765
|
-
(0,
|
|
4815
|
+
(0, import_invariant15.invariant)(this._networkManager, "network manager not set", {
|
|
4766
4816
|
F: __dxlog_file17,
|
|
4767
4817
|
L: 227,
|
|
4768
4818
|
S: this,
|
|
@@ -4792,7 +4842,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4792
4842
|
await this._serviceContext.initialized.wait();
|
|
4793
4843
|
return this._serviceContext.dataSpaceManager;
|
|
4794
4844
|
}),
|
|
4795
|
-
DataService: new
|
|
4845
|
+
DataService: new import_echo_pipeline3.DataServiceImpl(this._serviceContext.dataServiceSubscriptions),
|
|
4796
4846
|
NetworkService: new NetworkServiceImpl(this._serviceContext.networkManager, this._serviceContext.signalManager),
|
|
4797
4847
|
LoggingService: this._loggingService,
|
|
4798
4848
|
TracingService: this._tracingService,
|
|
@@ -4826,7 +4876,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4826
4876
|
S: this,
|
|
4827
4877
|
C: (f, a) => f(...a)
|
|
4828
4878
|
});
|
|
4829
|
-
import_log16.log.trace("dxos.client-services.host.open",
|
|
4879
|
+
import_log16.log.trace("dxos.client-services.host.open", import_protocols12.trace.end({
|
|
4830
4880
|
id: traceId
|
|
4831
4881
|
}), {
|
|
4832
4882
|
F: __dxlog_file17,
|
|
@@ -4867,7 +4917,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4867
4917
|
}
|
|
4868
4918
|
async reset() {
|
|
4869
4919
|
const traceId = import_keys11.PublicKey.random().toHex();
|
|
4870
|
-
import_log16.log.trace("dxos.sdk.client-services-host.reset",
|
|
4920
|
+
import_log16.log.trace("dxos.sdk.client-services-host.reset", import_protocols12.trace.begin({
|
|
4871
4921
|
id: traceId
|
|
4872
4922
|
}), {
|
|
4873
4923
|
F: __dxlog_file17,
|
|
@@ -4889,7 +4939,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4889
4939
|
S: this,
|
|
4890
4940
|
C: (f, a) => f(...a)
|
|
4891
4941
|
});
|
|
4892
|
-
import_log16.log.trace("dxos.sdk.client-services-host.reset",
|
|
4942
|
+
import_log16.log.trace("dxos.sdk.client-services-host.reset", import_protocols12.trace.end({
|
|
4893
4943
|
id: traceId
|
|
4894
4944
|
}), {
|
|
4895
4945
|
F: __dxlog_file17,
|
|
@@ -4930,10 +4980,10 @@ var import_util10 = require("@dxos/util");
|
|
|
4930
4980
|
// packages/sdk/client-services/src/packlets/vault/shell-runtime.ts
|
|
4931
4981
|
var import_async18 = require("@dxos/async");
|
|
4932
4982
|
var import_client_protocol6 = require("@dxos/client-protocol");
|
|
4933
|
-
var
|
|
4983
|
+
var import_invariant16 = require("@dxos/invariant");
|
|
4934
4984
|
var import_iframe = require("@dxos/protocols/proto/dxos/iframe");
|
|
4935
4985
|
var import_rpc2 = require("@dxos/rpc");
|
|
4936
|
-
var __dxlog_file18 = "/
|
|
4986
|
+
var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/shell-runtime.ts";
|
|
4937
4987
|
var ShellRuntimeImpl = class {
|
|
4938
4988
|
constructor(_port) {
|
|
4939
4989
|
this._port = _port;
|
|
@@ -4949,17 +4999,18 @@ var ShellRuntimeImpl = class {
|
|
|
4949
4999
|
get spaceKey() {
|
|
4950
5000
|
return this._spaceKey;
|
|
4951
5001
|
}
|
|
4952
|
-
setLayout(layout,
|
|
5002
|
+
setLayout({ layout, invitationCode, spaceKey }) {
|
|
4953
5003
|
this._layout = layout;
|
|
4954
|
-
this._invitationCode =
|
|
4955
|
-
this._spaceKey =
|
|
5004
|
+
this._invitationCode = invitationCode;
|
|
5005
|
+
this._spaceKey = spaceKey;
|
|
4956
5006
|
this.layoutUpdate.emit({
|
|
4957
5007
|
layout,
|
|
4958
|
-
|
|
5008
|
+
invitationCode,
|
|
5009
|
+
spaceKey
|
|
4959
5010
|
});
|
|
4960
5011
|
}
|
|
4961
5012
|
async setAppContext(context) {
|
|
4962
|
-
(0,
|
|
5013
|
+
(0, import_invariant16.invariant)(this._appRpc, "runtime not open", {
|
|
4963
5014
|
F: __dxlog_file18,
|
|
4964
5015
|
L: 44,
|
|
4965
5016
|
S: this,
|
|
@@ -5005,7 +5056,7 @@ function _ts_decorate8(decorators, target, key, desc) {
|
|
|
5005
5056
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5006
5057
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5007
5058
|
}
|
|
5008
|
-
var __dxlog_file19 = "/
|
|
5059
|
+
var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts";
|
|
5009
5060
|
var LOCK_KEY = "DXOS_RESOURCE_LOCK";
|
|
5010
5061
|
var IFrameHostRuntime = class {
|
|
5011
5062
|
constructor({ config, origin, appPort, shellPort }) {
|
|
@@ -5115,12 +5166,12 @@ _ts_decorate8([
|
|
|
5115
5166
|
// packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts
|
|
5116
5167
|
var import_async20 = require("@dxos/async");
|
|
5117
5168
|
var import_client_protocol8 = require("@dxos/client-protocol");
|
|
5118
|
-
var import_errors6 = require("@dxos/errors");
|
|
5119
5169
|
var import_log18 = require("@dxos/log");
|
|
5120
5170
|
var import_network_manager4 = require("@dxos/network-manager");
|
|
5171
|
+
var import_protocols13 = require("@dxos/protocols");
|
|
5121
5172
|
var import_rpc3 = require("@dxos/rpc");
|
|
5122
5173
|
var import_util11 = require("@dxos/util");
|
|
5123
|
-
var __dxlog_file20 = "/
|
|
5174
|
+
var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts";
|
|
5124
5175
|
var IFrameProxyRuntime = class {
|
|
5125
5176
|
constructor({ config, systemPort, shellPort }) {
|
|
5126
5177
|
this._id = String(Math.floor(Math.random() * 1e6));
|
|
@@ -5173,7 +5224,7 @@ var IFrameProxyRuntime = class {
|
|
|
5173
5224
|
S: this,
|
|
5174
5225
|
C: (f, a) => f(...a)
|
|
5175
5226
|
});
|
|
5176
|
-
throw new
|
|
5227
|
+
throw new import_protocols13.RemoteServiceConnectionError("Failed to connect to worker");
|
|
5177
5228
|
}
|
|
5178
5229
|
await this._shellRuntime?.open();
|
|
5179
5230
|
}
|
|
@@ -5198,7 +5249,7 @@ var import_network_manager5 = require("@dxos/network-manager");
|
|
|
5198
5249
|
// packages/sdk/client-services/src/packlets/vault/worker-session.ts
|
|
5199
5250
|
var import_async21 = require("@dxos/async");
|
|
5200
5251
|
var import_client_protocol9 = require("@dxos/client-protocol");
|
|
5201
|
-
var
|
|
5252
|
+
var import_invariant17 = require("@dxos/invariant");
|
|
5202
5253
|
var import_log19 = require("@dxos/log");
|
|
5203
5254
|
var import_rpc4 = require("@dxos/rpc");
|
|
5204
5255
|
var import_util12 = require("@dxos/util");
|
|
@@ -5212,12 +5263,12 @@ function _ts_decorate9(decorators, target, key, desc) {
|
|
|
5212
5263
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5213
5264
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5214
5265
|
}
|
|
5215
|
-
var __dxlog_file21 = "/
|
|
5266
|
+
var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-session.ts";
|
|
5216
5267
|
var WorkerSession = class {
|
|
5217
5268
|
constructor({ serviceHost, systemPort, appPort, shellPort, readySignal }) {
|
|
5218
5269
|
this._startTrigger = new import_async21.Trigger();
|
|
5219
5270
|
this.onClose = new import_util12.Callback();
|
|
5220
|
-
(0,
|
|
5271
|
+
(0, import_invariant17.invariant)(serviceHost, void 0, {
|
|
5221
5272
|
F: __dxlog_file21,
|
|
5222
5273
|
L: 49,
|
|
5223
5274
|
S: this,
|
|
@@ -5366,7 +5417,7 @@ _ts_decorate9([
|
|
|
5366
5417
|
], WorkerSession.prototype, "lockKey", void 0);
|
|
5367
5418
|
|
|
5368
5419
|
// packages/sdk/client-services/src/packlets/vault/worker-runtime.ts
|
|
5369
|
-
var __dxlog_file22 = "/
|
|
5420
|
+
var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-runtime.ts";
|
|
5370
5421
|
var WorkerRuntime = class {
|
|
5371
5422
|
// prettier-ignore
|
|
5372
5423
|
constructor(_configProvider) {
|