@dxos/client-services 0.3.5-main.b732704 → 0.3.5-main.c41e8d5

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.
@@ -1285,7 +1285,6 @@ var InvitationHostExtension = class extends RpcExtension {
1285
1285
  C: (f, a) => f(...a)
1286
1286
  });
1287
1287
  return {
1288
- spaceKey: this.invitation.authMethod === Invitation2.AuthMethod.NONE ? this.invitation.spaceKey : void 0,
1289
1288
  authMethod: this.invitation.authMethod
1290
1289
  };
1291
1290
  },
@@ -1295,7 +1294,7 @@ var InvitationHostExtension = class extends RpcExtension {
1295
1294
  id: traceId
1296
1295
  }), {
1297
1296
  F: __dxlog_file6,
1298
- L: 125,
1297
+ L: 124,
1299
1298
  S: this,
1300
1299
  C: (f, a) => f(...a)
1301
1300
  });
@@ -1303,14 +1302,14 @@ var InvitationHostExtension = class extends RpcExtension {
1303
1302
  authCode: code
1304
1303
  }, {
1305
1304
  F: __dxlog_file6,
1306
- L: 126,
1305
+ L: 125,
1307
1306
  S: this,
1308
1307
  C: (f, a) => f(...a)
1309
1308
  });
1310
1309
  let status = AuthenticationResponse.Status.OK;
1311
1310
  invariant5(this.invitation, "Invitation is not set.", {
1312
1311
  F: __dxlog_file6,
1313
- L: 129,
1312
+ L: 128,
1314
1313
  S: this,
1315
1314
  A: [
1316
1315
  "this.invitation",
@@ -1321,7 +1320,7 @@ var InvitationHostExtension = class extends RpcExtension {
1321
1320
  case Invitation2.AuthMethod.NONE: {
1322
1321
  log4("authentication not required", void 0, {
1323
1322
  F: __dxlog_file6,
1324
- L: 132,
1323
+ L: 131,
1325
1324
  S: this,
1326
1325
  C: (f, a) => f(...a)
1327
1326
  });
@@ -1346,7 +1345,7 @@ var InvitationHostExtension = class extends RpcExtension {
1346
1345
  authMethod: this.invitation.authMethod
1347
1346
  }, {
1348
1347
  F: __dxlog_file6,
1349
- L: 150,
1348
+ L: 149,
1350
1349
  S: this,
1351
1350
  C: (f, a) => f(...a)
1352
1351
  });
@@ -1361,7 +1360,7 @@ var InvitationHostExtension = class extends RpcExtension {
1361
1360
  }
1362
1361
  }), {
1363
1362
  F: __dxlog_file6,
1364
- L: 156,
1363
+ L: 155,
1365
1364
  S: this,
1366
1365
  C: (f, a) => f(...a)
1367
1366
  });
@@ -1375,14 +1374,14 @@ var InvitationHostExtension = class extends RpcExtension {
1375
1374
  id: traceId
1376
1375
  }), {
1377
1376
  F: __dxlog_file6,
1378
- L: 162,
1377
+ L: 161,
1379
1378
  S: this,
1380
1379
  C: (f, a) => f(...a)
1381
1380
  });
1382
1381
  try {
1383
1382
  invariant5(this.invitation, "Invitation is not set.", {
1384
1383
  F: __dxlog_file6,
1385
- L: 165,
1384
+ L: 164,
1386
1385
  S: this,
1387
1386
  A: [
1388
1387
  "this.invitation",
@@ -1397,7 +1396,7 @@ var InvitationHostExtension = class extends RpcExtension {
1397
1396
  id: traceId
1398
1397
  }), {
1399
1398
  F: __dxlog_file6,
1400
- L: 173,
1399
+ L: 172,
1401
1400
  S: this,
1402
1401
  C: (f, a) => f(...a)
1403
1402
  });
@@ -1454,7 +1453,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1454
1453
  options: async (options) => {
1455
1454
  invariant5(!this._remoteOptions, "Remote options already set.", {
1456
1455
  F: __dxlog_file6,
1457
- L: 240,
1456
+ L: 239,
1458
1457
  S: this,
1459
1458
  A: [
1460
1459
  "!this._remoteOptions",
@@ -1481,7 +1480,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1481
1480
  try {
1482
1481
  log4("begin options", void 0, {
1483
1482
  F: __dxlog_file6,
1484
- L: 261,
1483
+ L: 260,
1485
1484
  S: this,
1486
1485
  C: (f, a) => f(...a)
1487
1486
  });
@@ -1493,7 +1492,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1493
1492
  }));
1494
1493
  log4("end options", void 0, {
1495
1494
  F: __dxlog_file6,
1496
- L: 264,
1495
+ L: 263,
1497
1496
  S: this,
1498
1497
  C: (f, a) => f(...a)
1499
1498
  });
@@ -1507,7 +1506,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1507
1506
  } catch (err) {
1508
1507
  log4("openError", err, {
1509
1508
  F: __dxlog_file6,
1510
- L: 274,
1509
+ L: 273,
1511
1510
  S: this,
1512
1511
  C: (f, a) => f(...a)
1513
1512
  });
@@ -1517,7 +1516,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1517
1516
  async onClose() {
1518
1517
  log4("onClose", void 0, {
1519
1518
  F: __dxlog_file6,
1520
- L: 280,
1519
+ L: 279,
1521
1520
  S: this,
1522
1521
  C: (f, a) => f(...a)
1523
1522
  });
@@ -1888,14 +1887,11 @@ var InvitationsHandler = class {
1888
1887
  C: (f, a) => f(...a)
1889
1888
  });
1890
1889
  invitation.authMethod = introductionResponse.authMethod;
1891
- if (introductionResponse.spaceKey) {
1892
- invitation.spaceKey = introductionResponse.spaceKey;
1893
- }
1894
1890
  if (isAuthenticationRequired(invitation)) {
1895
1891
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
1896
1892
  log5("guest waiting for authentication code...", void 0, {
1897
1893
  F: __dxlog_file7,
1898
- L: 289,
1894
+ L: 286,
1899
1895
  S: this,
1900
1896
  C: (f, a) => f(...a)
1901
1897
  });
@@ -1907,7 +1903,7 @@ var InvitationsHandler = class {
1907
1903
  });
1908
1904
  log5("sending authentication request", void 0, {
1909
1905
  F: __dxlog_file7,
1910
- L: 293,
1906
+ L: 290,
1911
1907
  S: this,
1912
1908
  C: (f, a) => f(...a)
1913
1909
  });
@@ -1928,7 +1924,7 @@ var InvitationsHandler = class {
1928
1924
  attempt
1929
1925
  }, {
1930
1926
  F: __dxlog_file7,
1931
- L: 304,
1927
+ L: 301,
1932
1928
  S: this,
1933
1929
  C: (f, a) => f(...a)
1934
1930
  });
@@ -1945,7 +1941,7 @@ var InvitationsHandler = class {
1945
1941
  ...protocol.toJSON()
1946
1942
  }, {
1947
1943
  F: __dxlog_file7,
1948
- L: 315,
1944
+ L: 312,
1949
1945
  S: this,
1950
1946
  C: (f, a) => f(...a)
1951
1947
  });
@@ -1957,7 +1953,7 @@ var InvitationsHandler = class {
1957
1953
  ...protocol.toJSON()
1958
1954
  }, {
1959
1955
  F: __dxlog_file7,
1960
- L: 326,
1956
+ L: 323,
1961
1957
  S: this,
1962
1958
  C: (f, a) => f(...a)
1963
1959
  });
@@ -1969,7 +1965,7 @@ var InvitationsHandler = class {
1969
1965
  id: traceId
1970
1966
  }), {
1971
1967
  F: __dxlog_file7,
1972
- L: 328,
1968
+ L: 325,
1973
1969
  S: this,
1974
1970
  C: (f, a) => f(...a)
1975
1971
  });
@@ -1979,7 +1975,7 @@ var InvitationsHandler = class {
1979
1975
  ...protocol.toJSON()
1980
1976
  }, {
1981
1977
  F: __dxlog_file7,
1982
- L: 331,
1978
+ L: 328,
1983
1979
  S: this,
1984
1980
  C: (f, a) => f(...a)
1985
1981
  });
@@ -1989,7 +1985,7 @@ var InvitationsHandler = class {
1989
1985
  } else {
1990
1986
  log5("auth failed", err, {
1991
1987
  F: __dxlog_file7,
1992
- L: 334,
1988
+ L: 331,
1993
1989
  S: this,
1994
1990
  C: (f, a) => f(...a)
1995
1991
  });
@@ -2000,7 +1996,7 @@ var InvitationsHandler = class {
2000
1996
  error: err
2001
1997
  }), {
2002
1998
  F: __dxlog_file7,
2003
- L: 337,
1999
+ L: 334,
2004
2000
  S: this,
2005
2001
  C: (f, a) => f(...a)
2006
2002
  });
@@ -2018,7 +2014,7 @@ var InvitationsHandler = class {
2018
2014
  ...protocol.toJSON()
2019
2015
  }, {
2020
2016
  F: __dxlog_file7,
2021
- L: 348,
2017
+ L: 345,
2022
2018
  S: this,
2023
2019
  C: (f, a) => f(...a)
2024
2020
  });
@@ -2028,7 +2024,7 @@ var InvitationsHandler = class {
2028
2024
  } else {
2029
2025
  log5("auth failed", err, {
2030
2026
  F: __dxlog_file7,
2031
- L: 351,
2027
+ L: 348,
2032
2028
  S: this,
2033
2029
  C: (f, a) => f(...a)
2034
2030
  });
@@ -2041,7 +2037,7 @@ var InvitationsHandler = class {
2041
2037
  scheduleTask2(ctx, async () => {
2042
2038
  invariant6(invitation.swarmKey, void 0, {
2043
2039
  F: __dxlog_file7,
2044
- L: 361,
2040
+ L: 358,
2045
2041
  S: this,
2046
2042
  A: [
2047
2043
  "invitation.swarmKey",
@@ -2536,7 +2532,7 @@ var getPlatform = () => {
2536
2532
  };
2537
2533
 
2538
2534
  // packages/sdk/client-services/src/version.ts
2539
- var DXOS_VERSION = "0.3.5-main.b732704";
2535
+ var DXOS_VERSION = "0.3.5-main.c41e8d5";
2540
2536
 
2541
2537
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2542
2538
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -3399,6 +3395,8 @@ function _ts_decorate5(decorators, target, key, desc) {
3399
3395
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3400
3396
  }
3401
3397
  var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
3398
+ var PRESENCE_ANNOUNCE_INTERVAL = 1e4;
3399
+ var PRESENCE_OFFLINE_TIMEOUT = 2e4;
3402
3400
  var DataSpaceManager = class DataSpaceManager2 {
3403
3401
  constructor(_spaceManager, _metadataStore, _dataServiceSubscriptions, _keyring, _signingContext, _feedStore) {
3404
3402
  this._spaceManager = _spaceManager;
@@ -3420,7 +3418,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3420
3418
  async open() {
3421
3419
  log11("open", void 0, {
3422
3420
  F: __dxlog_file13,
3423
- L: 79,
3421
+ L: 82,
3424
3422
  S: this,
3425
3423
  C: (f, a) => f(...a)
3426
3424
  });
@@ -3428,7 +3426,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3428
3426
  id: this._instanceId
3429
3427
  }), {
3430
3428
  F: __dxlog_file13,
3431
- L: 80,
3429
+ L: 83,
3432
3430
  S: this,
3433
3431
  C: (f, a) => f(...a)
3434
3432
  });
@@ -3436,7 +3434,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3436
3434
  spaces: this._metadataStore.spaces.length
3437
3435
  }, {
3438
3436
  F: __dxlog_file13,
3439
- L: 81,
3437
+ L: 84,
3440
3438
  S: this,
3441
3439
  C: (f, a) => f(...a)
3442
3440
  });
@@ -3446,7 +3444,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3446
3444
  spaceMetadata
3447
3445
  }, {
3448
3446
  F: __dxlog_file13,
3449
- L: 85,
3447
+ L: 88,
3450
3448
  S: this,
3451
3449
  C: (f, a) => f(...a)
3452
3450
  });
@@ -3457,7 +3455,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3457
3455
  err
3458
3456
  }, {
3459
3457
  F: __dxlog_file13,
3460
- L: 88,
3458
+ L: 91,
3461
3459
  S: this,
3462
3460
  C: (f, a) => f(...a)
3463
3461
  });
@@ -3474,7 +3472,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3474
3472
  id: this._instanceId
3475
3473
  }), {
3476
3474
  F: __dxlog_file13,
3477
- L: 101,
3475
+ L: 104,
3478
3476
  S: this,
3479
3477
  C: (f, a) => f(...a)
3480
3478
  });
@@ -3482,7 +3480,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3482
3480
  async close() {
3483
3481
  log11("close", void 0, {
3484
3482
  F: __dxlog_file13,
3485
- L: 106,
3483
+ L: 109,
3486
3484
  S: this,
3487
3485
  C: (f, a) => f(...a)
3488
3486
  });
@@ -3498,7 +3496,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3498
3496
  async createSpace() {
3499
3497
  invariant11(this._isOpen, "Not open.", {
3500
3498
  F: __dxlog_file13,
3501
- L: 119,
3499
+ L: 122,
3502
3500
  S: this,
3503
3501
  A: [
3504
3502
  "this._isOpen",
@@ -3519,7 +3517,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3519
3517
  spaceKey
3520
3518
  }, {
3521
3519
  F: __dxlog_file13,
3522
- L: 131,
3520
+ L: 134,
3523
3521
  S: this,
3524
3522
  C: (f, a) => f(...a)
3525
3523
  });
@@ -3529,7 +3527,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3529
3527
  const memberCredential = credentials[1];
3530
3528
  invariant11(getCredentialAssertion2(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
3531
3529
  F: __dxlog_file13,
3532
- L: 138,
3530
+ L: 141,
3533
3531
  S: this,
3534
3532
  A: [
3535
3533
  "getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -3547,13 +3545,13 @@ var DataSpaceManager = class DataSpaceManager2 {
3547
3545
  opts
3548
3546
  }, {
3549
3547
  F: __dxlog_file13,
3550
- L: 150,
3548
+ L: 153,
3551
3549
  S: this,
3552
3550
  C: (f, a) => f(...a)
3553
3551
  });
3554
3552
  invariant11(this._isOpen, "Not open.", {
3555
3553
  F: __dxlog_file13,
3556
- L: 151,
3554
+ L: 154,
3557
3555
  S: this,
3558
3556
  A: [
3559
3557
  "this._isOpen",
@@ -3562,7 +3560,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3562
3560
  });
3563
3561
  invariant11(!this._spaces.has(opts.spaceKey), "Space already exists.", {
3564
3562
  F: __dxlog_file13,
3565
- L: 152,
3563
+ L: 155,
3566
3564
  S: this,
3567
3565
  A: [
3568
3566
  "!this._spaces.has(opts.spaceKey)",
@@ -3597,7 +3595,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3597
3595
  metadata
3598
3596
  }, {
3599
3597
  F: __dxlog_file13,
3600
- L: 185,
3598
+ L: 188,
3601
3599
  S: this,
3602
3600
  C: (f, a) => f(...a)
3603
3601
  });
@@ -3605,8 +3603,8 @@ var DataSpaceManager = class DataSpaceManager2 {
3605
3603
  localPeerId: this._signingContext.deviceKey
3606
3604
  });
3607
3605
  const presence = new Presence({
3608
- announceInterval: 1e3,
3609
- offlineTimeout: 5e3,
3606
+ announceInterval: PRESENCE_ANNOUNCE_INTERVAL,
3607
+ offlineTimeout: PRESENCE_OFFLINE_TIMEOUT,
3610
3608
  identityKey: this._signingContext.identityKey,
3611
3609
  gossip
3612
3610
  });
@@ -3633,7 +3631,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3633
3631
  onAuthFailure: () => {
3634
3632
  log11.warn("auth failure", void 0, {
3635
3633
  F: __dxlog_file13,
3636
- L: 220,
3634
+ L: 223,
3637
3635
  S: this,
3638
3636
  C: (f, a) => f(...a)
3639
3637
  });
@@ -3657,7 +3655,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3657
3655
  space: space.key
3658
3656
  }, {
3659
3657
  F: __dxlog_file13,
3660
- L: 238,
3658
+ L: 241,
3661
3659
  S: this,
3662
3660
  C: (f, a) => f(...a)
3663
3661
  });
@@ -3669,7 +3667,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3669
3667
  open: this._isOpen
3670
3668
  }, {
3671
3669
  F: __dxlog_file13,
3672
- L: 245,
3670
+ L: 248,
3673
3671
  S: this,
3674
3672
  C: (f, a) => f(...a)
3675
3673
  });
@@ -3682,7 +3680,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3682
3680
  space: space.key
3683
3681
  }, {
3684
3682
  F: __dxlog_file13,
3685
- L: 251,
3683
+ L: 254,
3686
3684
  S: this,
3687
3685
  C: (f, a) => f(...a)
3688
3686
  });
@@ -5079,4 +5077,4 @@ export {
5079
5077
  createDefaultModelFactory,
5080
5078
  ClientServicesHost
5081
5079
  };
5082
- //# sourceMappingURL=chunk-ZIJFSHC6.mjs.map
5080
+ //# sourceMappingURL=chunk-BZ4RXI44.mjs.map