@dxos/client-services 0.3.5-main.cc26d3f → 0.3.5-main.d2902c5

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.
@@ -1354,7 +1354,6 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1354
1354
  C: (f, a) => f(...a)
1355
1355
  });
1356
1356
  return {
1357
- spaceKey: this.invitation.authMethod === import_services2.Invitation.AuthMethod.NONE ? this.invitation.spaceKey : void 0,
1358
1357
  authMethod: this.invitation.authMethod
1359
1358
  };
1360
1359
  },
@@ -1364,7 +1363,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1364
1363
  id: traceId
1365
1364
  }), {
1366
1365
  F: __dxlog_file6,
1367
- L: 125,
1366
+ L: 124,
1368
1367
  S: this,
1369
1368
  C: (f, a) => f(...a)
1370
1369
  });
@@ -1372,14 +1371,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1372
1371
  authCode: code
1373
1372
  }, {
1374
1373
  F: __dxlog_file6,
1375
- L: 126,
1374
+ L: 125,
1376
1375
  S: this,
1377
1376
  C: (f, a) => f(...a)
1378
1377
  });
1379
1378
  let status = import_invitations.AuthenticationResponse.Status.OK;
1380
1379
  (0, import_invariant5.invariant)(this.invitation, "Invitation is not set.", {
1381
1380
  F: __dxlog_file6,
1382
- L: 129,
1381
+ L: 128,
1383
1382
  S: this,
1384
1383
  A: [
1385
1384
  "this.invitation",
@@ -1390,7 +1389,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1390
1389
  case import_services2.Invitation.AuthMethod.NONE: {
1391
1390
  (0, import_log4.log)("authentication not required", void 0, {
1392
1391
  F: __dxlog_file6,
1393
- L: 132,
1392
+ L: 131,
1394
1393
  S: this,
1395
1394
  C: (f, a) => f(...a)
1396
1395
  });
@@ -1415,7 +1414,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1415
1414
  authMethod: this.invitation.authMethod
1416
1415
  }, {
1417
1416
  F: __dxlog_file6,
1418
- L: 150,
1417
+ L: 149,
1419
1418
  S: this,
1420
1419
  C: (f, a) => f(...a)
1421
1420
  });
@@ -1430,7 +1429,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1430
1429
  }
1431
1430
  }), {
1432
1431
  F: __dxlog_file6,
1433
- L: 156,
1432
+ L: 155,
1434
1433
  S: this,
1435
1434
  C: (f, a) => f(...a)
1436
1435
  });
@@ -1444,14 +1443,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1444
1443
  id: traceId
1445
1444
  }), {
1446
1445
  F: __dxlog_file6,
1447
- L: 162,
1446
+ L: 161,
1448
1447
  S: this,
1449
1448
  C: (f, a) => f(...a)
1450
1449
  });
1451
1450
  try {
1452
1451
  (0, import_invariant5.invariant)(this.invitation, "Invitation is not set.", {
1453
1452
  F: __dxlog_file6,
1454
- L: 165,
1453
+ L: 164,
1455
1454
  S: this,
1456
1455
  A: [
1457
1456
  "this.invitation",
@@ -1466,7 +1465,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1466
1465
  id: traceId
1467
1466
  }), {
1468
1467
  F: __dxlog_file6,
1469
- L: 173,
1468
+ L: 172,
1470
1469
  S: this,
1471
1470
  C: (f, a) => f(...a)
1472
1471
  });
@@ -1523,7 +1522,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1523
1522
  options: async (options) => {
1524
1523
  (0, import_invariant5.invariant)(!this._remoteOptions, "Remote options already set.", {
1525
1524
  F: __dxlog_file6,
1526
- L: 240,
1525
+ L: 239,
1527
1526
  S: this,
1528
1527
  A: [
1529
1528
  "!this._remoteOptions",
@@ -1550,7 +1549,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1550
1549
  try {
1551
1550
  (0, import_log4.log)("begin options", void 0, {
1552
1551
  F: __dxlog_file6,
1553
- L: 261,
1552
+ L: 260,
1554
1553
  S: this,
1555
1554
  C: (f, a) => f(...a)
1556
1555
  });
@@ -1562,7 +1561,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1562
1561
  }));
1563
1562
  (0, import_log4.log)("end options", void 0, {
1564
1563
  F: __dxlog_file6,
1565
- L: 264,
1564
+ L: 263,
1566
1565
  S: this,
1567
1566
  C: (f, a) => f(...a)
1568
1567
  });
@@ -1576,7 +1575,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1576
1575
  } catch (err) {
1577
1576
  (0, import_log4.log)("openError", err, {
1578
1577
  F: __dxlog_file6,
1579
- L: 274,
1578
+ L: 273,
1580
1579
  S: this,
1581
1580
  C: (f, a) => f(...a)
1582
1581
  });
@@ -1586,7 +1585,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1586
1585
  async onClose() {
1587
1586
  (0, import_log4.log)("onClose", void 0, {
1588
1587
  F: __dxlog_file6,
1589
- L: 280,
1588
+ L: 279,
1590
1589
  S: this,
1591
1590
  C: (f, a) => f(...a)
1592
1591
  });
@@ -1957,14 +1956,11 @@ var InvitationsHandler = class {
1957
1956
  C: (f, a) => f(...a)
1958
1957
  });
1959
1958
  invitation.authMethod = introductionResponse.authMethod;
1960
- if (introductionResponse.spaceKey) {
1961
- invitation.spaceKey = introductionResponse.spaceKey;
1962
- }
1963
1959
  if (isAuthenticationRequired(invitation)) {
1964
1960
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
1965
1961
  (0, import_log5.log)("guest waiting for authentication code...", void 0, {
1966
1962
  F: __dxlog_file7,
1967
- L: 289,
1963
+ L: 286,
1968
1964
  S: this,
1969
1965
  C: (f, a) => f(...a)
1970
1966
  });
@@ -1976,7 +1972,7 @@ var InvitationsHandler = class {
1976
1972
  });
1977
1973
  (0, import_log5.log)("sending authentication request", void 0, {
1978
1974
  F: __dxlog_file7,
1979
- L: 293,
1975
+ L: 290,
1980
1976
  S: this,
1981
1977
  C: (f, a) => f(...a)
1982
1978
  });
@@ -1997,7 +1993,7 @@ var InvitationsHandler = class {
1997
1993
  attempt
1998
1994
  }, {
1999
1995
  F: __dxlog_file7,
2000
- L: 304,
1996
+ L: 301,
2001
1997
  S: this,
2002
1998
  C: (f, a) => f(...a)
2003
1999
  });
@@ -2014,7 +2010,7 @@ var InvitationsHandler = class {
2014
2010
  ...protocol.toJSON()
2015
2011
  }, {
2016
2012
  F: __dxlog_file7,
2017
- L: 315,
2013
+ L: 312,
2018
2014
  S: this,
2019
2015
  C: (f, a) => f(...a)
2020
2016
  });
@@ -2026,7 +2022,7 @@ var InvitationsHandler = class {
2026
2022
  ...protocol.toJSON()
2027
2023
  }, {
2028
2024
  F: __dxlog_file7,
2029
- L: 326,
2025
+ L: 323,
2030
2026
  S: this,
2031
2027
  C: (f, a) => f(...a)
2032
2028
  });
@@ -2038,7 +2034,7 @@ var InvitationsHandler = class {
2038
2034
  id: traceId
2039
2035
  }), {
2040
2036
  F: __dxlog_file7,
2041
- L: 328,
2037
+ L: 325,
2042
2038
  S: this,
2043
2039
  C: (f, a) => f(...a)
2044
2040
  });
@@ -2048,7 +2044,7 @@ var InvitationsHandler = class {
2048
2044
  ...protocol.toJSON()
2049
2045
  }, {
2050
2046
  F: __dxlog_file7,
2051
- L: 331,
2047
+ L: 328,
2052
2048
  S: this,
2053
2049
  C: (f, a) => f(...a)
2054
2050
  });
@@ -2058,7 +2054,7 @@ var InvitationsHandler = class {
2058
2054
  } else {
2059
2055
  (0, import_log5.log)("auth failed", err, {
2060
2056
  F: __dxlog_file7,
2061
- L: 334,
2057
+ L: 331,
2062
2058
  S: this,
2063
2059
  C: (f, a) => f(...a)
2064
2060
  });
@@ -2069,7 +2065,7 @@ var InvitationsHandler = class {
2069
2065
  error: err
2070
2066
  }), {
2071
2067
  F: __dxlog_file7,
2072
- L: 337,
2068
+ L: 334,
2073
2069
  S: this,
2074
2070
  C: (f, a) => f(...a)
2075
2071
  });
@@ -2087,7 +2083,7 @@ var InvitationsHandler = class {
2087
2083
  ...protocol.toJSON()
2088
2084
  }, {
2089
2085
  F: __dxlog_file7,
2090
- L: 348,
2086
+ L: 345,
2091
2087
  S: this,
2092
2088
  C: (f, a) => f(...a)
2093
2089
  });
@@ -2097,7 +2093,7 @@ var InvitationsHandler = class {
2097
2093
  } else {
2098
2094
  (0, import_log5.log)("auth failed", err, {
2099
2095
  F: __dxlog_file7,
2100
- L: 351,
2096
+ L: 348,
2101
2097
  S: this,
2102
2098
  C: (f, a) => f(...a)
2103
2099
  });
@@ -2110,7 +2106,7 @@ var InvitationsHandler = class {
2110
2106
  (0, import_async8.scheduleTask)(ctx, async () => {
2111
2107
  (0, import_invariant6.invariant)(invitation.swarmKey, void 0, {
2112
2108
  F: __dxlog_file7,
2113
- L: 361,
2109
+ L: 358,
2114
2110
  S: this,
2115
2111
  A: [
2116
2112
  "invitation.swarmKey",
@@ -2605,7 +2601,7 @@ var getPlatform = () => {
2605
2601
  };
2606
2602
 
2607
2603
  // packages/sdk/client-services/src/version.ts
2608
- var DXOS_VERSION = "0.3.5-main.cc26d3f";
2604
+ var DXOS_VERSION = "0.3.5-main.d2902c5";
2609
2605
 
2610
2606
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2611
2607
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -3485,6 +3481,8 @@ function _ts_decorate5(decorators, target, key, desc) {
3485
3481
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3486
3482
  }
3487
3483
  var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
3484
+ var PRESENCE_ANNOUNCE_INTERVAL = 1e4;
3485
+ var PRESENCE_OFFLINE_TIMEOUT = 2e4;
3488
3486
  var DataSpaceManager = class DataSpaceManager2 {
3489
3487
  constructor(_spaceManager, _metadataStore, _dataServiceSubscriptions, _keyring, _signingContext, _feedStore) {
3490
3488
  this._spaceManager = _spaceManager;
@@ -3506,7 +3504,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3506
3504
  async open() {
3507
3505
  (0, import_log11.log)("open", void 0, {
3508
3506
  F: __dxlog_file13,
3509
- L: 79,
3507
+ L: 82,
3510
3508
  S: this,
3511
3509
  C: (f, a) => f(...a)
3512
3510
  });
@@ -3514,7 +3512,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3514
3512
  id: this._instanceId
3515
3513
  }), {
3516
3514
  F: __dxlog_file13,
3517
- L: 80,
3515
+ L: 83,
3518
3516
  S: this,
3519
3517
  C: (f, a) => f(...a)
3520
3518
  });
@@ -3522,7 +3520,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3522
3520
  spaces: this._metadataStore.spaces.length
3523
3521
  }, {
3524
3522
  F: __dxlog_file13,
3525
- L: 81,
3523
+ L: 84,
3526
3524
  S: this,
3527
3525
  C: (f, a) => f(...a)
3528
3526
  });
@@ -3532,7 +3530,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3532
3530
  spaceMetadata
3533
3531
  }, {
3534
3532
  F: __dxlog_file13,
3535
- L: 85,
3533
+ L: 88,
3536
3534
  S: this,
3537
3535
  C: (f, a) => f(...a)
3538
3536
  });
@@ -3543,7 +3541,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3543
3541
  err
3544
3542
  }, {
3545
3543
  F: __dxlog_file13,
3546
- L: 88,
3544
+ L: 91,
3547
3545
  S: this,
3548
3546
  C: (f, a) => f(...a)
3549
3547
  });
@@ -3560,7 +3558,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3560
3558
  id: this._instanceId
3561
3559
  }), {
3562
3560
  F: __dxlog_file13,
3563
- L: 101,
3561
+ L: 104,
3564
3562
  S: this,
3565
3563
  C: (f, a) => f(...a)
3566
3564
  });
@@ -3568,7 +3566,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3568
3566
  async close() {
3569
3567
  (0, import_log11.log)("close", void 0, {
3570
3568
  F: __dxlog_file13,
3571
- L: 106,
3569
+ L: 109,
3572
3570
  S: this,
3573
3571
  C: (f, a) => f(...a)
3574
3572
  });
@@ -3584,7 +3582,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3584
3582
  async createSpace() {
3585
3583
  (0, import_invariant11.invariant)(this._isOpen, "Not open.", {
3586
3584
  F: __dxlog_file13,
3587
- L: 119,
3585
+ L: 122,
3588
3586
  S: this,
3589
3587
  A: [
3590
3588
  "this._isOpen",
@@ -3605,7 +3603,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3605
3603
  spaceKey
3606
3604
  }, {
3607
3605
  F: __dxlog_file13,
3608
- L: 131,
3606
+ L: 134,
3609
3607
  S: this,
3610
3608
  C: (f, a) => f(...a)
3611
3609
  });
@@ -3615,7 +3613,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3615
3613
  const memberCredential = credentials[1];
3616
3614
  (0, import_invariant11.invariant)((0, import_credentials13.getCredentialAssertion)(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
3617
3615
  F: __dxlog_file13,
3618
- L: 138,
3616
+ L: 141,
3619
3617
  S: this,
3620
3618
  A: [
3621
3619
  "getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -3633,13 +3631,13 @@ var DataSpaceManager = class DataSpaceManager2 {
3633
3631
  opts
3634
3632
  }, {
3635
3633
  F: __dxlog_file13,
3636
- L: 150,
3634
+ L: 153,
3637
3635
  S: this,
3638
3636
  C: (f, a) => f(...a)
3639
3637
  });
3640
3638
  (0, import_invariant11.invariant)(this._isOpen, "Not open.", {
3641
3639
  F: __dxlog_file13,
3642
- L: 151,
3640
+ L: 154,
3643
3641
  S: this,
3644
3642
  A: [
3645
3643
  "this._isOpen",
@@ -3648,7 +3646,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3648
3646
  });
3649
3647
  (0, import_invariant11.invariant)(!this._spaces.has(opts.spaceKey), "Space already exists.", {
3650
3648
  F: __dxlog_file13,
3651
- L: 152,
3649
+ L: 155,
3652
3650
  S: this,
3653
3651
  A: [
3654
3652
  "!this._spaces.has(opts.spaceKey)",
@@ -3683,7 +3681,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3683
3681
  metadata
3684
3682
  }, {
3685
3683
  F: __dxlog_file13,
3686
- L: 185,
3684
+ L: 188,
3687
3685
  S: this,
3688
3686
  C: (f, a) => f(...a)
3689
3687
  });
@@ -3691,8 +3689,8 @@ var DataSpaceManager = class DataSpaceManager2 {
3691
3689
  localPeerId: this._signingContext.deviceKey
3692
3690
  });
3693
3691
  const presence = new import_teleport_extension_gossip.Presence({
3694
- announceInterval: 1e3,
3695
- offlineTimeout: 5e3,
3692
+ announceInterval: PRESENCE_ANNOUNCE_INTERVAL,
3693
+ offlineTimeout: PRESENCE_OFFLINE_TIMEOUT,
3696
3694
  identityKey: this._signingContext.identityKey,
3697
3695
  gossip
3698
3696
  });
@@ -3719,7 +3717,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3719
3717
  onAuthFailure: () => {
3720
3718
  import_log11.log.warn("auth failure", void 0, {
3721
3719
  F: __dxlog_file13,
3722
- L: 220,
3720
+ L: 223,
3723
3721
  S: this,
3724
3722
  C: (f, a) => f(...a)
3725
3723
  });
@@ -3743,7 +3741,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3743
3741
  space: space.key
3744
3742
  }, {
3745
3743
  F: __dxlog_file13,
3746
- L: 238,
3744
+ L: 241,
3747
3745
  S: this,
3748
3746
  C: (f, a) => f(...a)
3749
3747
  });
@@ -3755,7 +3753,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3755
3753
  open: this._isOpen
3756
3754
  }, {
3757
3755
  F: __dxlog_file13,
3758
- L: 245,
3756
+ L: 248,
3759
3757
  S: this,
3760
3758
  C: (f, a) => f(...a)
3761
3759
  });
@@ -3768,7 +3766,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3768
3766
  space: space.key
3769
3767
  }, {
3770
3768
  F: __dxlog_file13,
3771
- L: 251,
3769
+ L: 254,
3772
3770
  S: this,
3773
3771
  C: (f, a) => f(...a)
3774
3772
  });