@dxos/client-services 0.3.5-main.9577658 → 0.3.5-main.9e966f9

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,6 +1354,7 @@ 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,
1357
1358
  authMethod: this.invitation.authMethod
1358
1359
  };
1359
1360
  },
@@ -1363,7 +1364,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1363
1364
  id: traceId
1364
1365
  }), {
1365
1366
  F: __dxlog_file6,
1366
- L: 124,
1367
+ L: 125,
1367
1368
  S: this,
1368
1369
  C: (f, a) => f(...a)
1369
1370
  });
@@ -1371,14 +1372,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1371
1372
  authCode: code
1372
1373
  }, {
1373
1374
  F: __dxlog_file6,
1374
- L: 125,
1375
+ L: 126,
1375
1376
  S: this,
1376
1377
  C: (f, a) => f(...a)
1377
1378
  });
1378
1379
  let status = import_invitations.AuthenticationResponse.Status.OK;
1379
1380
  (0, import_invariant5.invariant)(this.invitation, "Invitation is not set.", {
1380
1381
  F: __dxlog_file6,
1381
- L: 128,
1382
+ L: 129,
1382
1383
  S: this,
1383
1384
  A: [
1384
1385
  "this.invitation",
@@ -1389,7 +1390,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1389
1390
  case import_services2.Invitation.AuthMethod.NONE: {
1390
1391
  (0, import_log4.log)("authentication not required", void 0, {
1391
1392
  F: __dxlog_file6,
1392
- L: 131,
1393
+ L: 132,
1393
1394
  S: this,
1394
1395
  C: (f, a) => f(...a)
1395
1396
  });
@@ -1414,7 +1415,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1414
1415
  authMethod: this.invitation.authMethod
1415
1416
  }, {
1416
1417
  F: __dxlog_file6,
1417
- L: 149,
1418
+ L: 150,
1418
1419
  S: this,
1419
1420
  C: (f, a) => f(...a)
1420
1421
  });
@@ -1429,7 +1430,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1429
1430
  }
1430
1431
  }), {
1431
1432
  F: __dxlog_file6,
1432
- L: 155,
1433
+ L: 156,
1433
1434
  S: this,
1434
1435
  C: (f, a) => f(...a)
1435
1436
  });
@@ -1443,14 +1444,14 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1443
1444
  id: traceId
1444
1445
  }), {
1445
1446
  F: __dxlog_file6,
1446
- L: 161,
1447
+ L: 162,
1447
1448
  S: this,
1448
1449
  C: (f, a) => f(...a)
1449
1450
  });
1450
1451
  try {
1451
1452
  (0, import_invariant5.invariant)(this.invitation, "Invitation is not set.", {
1452
1453
  F: __dxlog_file6,
1453
- L: 164,
1454
+ L: 165,
1454
1455
  S: this,
1455
1456
  A: [
1456
1457
  "this.invitation",
@@ -1465,7 +1466,7 @@ var InvitationHostExtension = class extends import_teleport.RpcExtension {
1465
1466
  id: traceId
1466
1467
  }), {
1467
1468
  F: __dxlog_file6,
1468
- L: 172,
1469
+ L: 173,
1469
1470
  S: this,
1470
1471
  C: (f, a) => f(...a)
1471
1472
  });
@@ -1522,7 +1523,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1522
1523
  options: async (options) => {
1523
1524
  (0, import_invariant5.invariant)(!this._remoteOptions, "Remote options already set.", {
1524
1525
  F: __dxlog_file6,
1525
- L: 239,
1526
+ L: 240,
1526
1527
  S: this,
1527
1528
  A: [
1528
1529
  "!this._remoteOptions",
@@ -1549,7 +1550,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1549
1550
  try {
1550
1551
  (0, import_log4.log)("begin options", void 0, {
1551
1552
  F: __dxlog_file6,
1552
- L: 260,
1553
+ L: 261,
1553
1554
  S: this,
1554
1555
  C: (f, a) => f(...a)
1555
1556
  });
@@ -1561,7 +1562,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1561
1562
  }));
1562
1563
  (0, import_log4.log)("end options", void 0, {
1563
1564
  F: __dxlog_file6,
1564
- L: 263,
1565
+ L: 264,
1565
1566
  S: this,
1566
1567
  C: (f, a) => f(...a)
1567
1568
  });
@@ -1575,7 +1576,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1575
1576
  } catch (err) {
1576
1577
  (0, import_log4.log)("openError", err, {
1577
1578
  F: __dxlog_file6,
1578
- L: 273,
1579
+ L: 274,
1579
1580
  S: this,
1580
1581
  C: (f, a) => f(...a)
1581
1582
  });
@@ -1585,7 +1586,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1585
1586
  async onClose() {
1586
1587
  (0, import_log4.log)("onClose", void 0, {
1587
1588
  F: __dxlog_file6,
1588
- L: 279,
1589
+ L: 280,
1589
1590
  S: this,
1590
1591
  C: (f, a) => f(...a)
1591
1592
  });
@@ -1956,11 +1957,14 @@ var InvitationsHandler = class {
1956
1957
  C: (f, a) => f(...a)
1957
1958
  });
1958
1959
  invitation.authMethod = introductionResponse.authMethod;
1960
+ if (introductionResponse.spaceKey) {
1961
+ invitation.spaceKey = introductionResponse.spaceKey;
1962
+ }
1959
1963
  if (isAuthenticationRequired(invitation)) {
1960
1964
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
1961
1965
  (0, import_log5.log)("guest waiting for authentication code...", void 0, {
1962
1966
  F: __dxlog_file7,
1963
- L: 286,
1967
+ L: 289,
1964
1968
  S: this,
1965
1969
  C: (f, a) => f(...a)
1966
1970
  });
@@ -1972,7 +1976,7 @@ var InvitationsHandler = class {
1972
1976
  });
1973
1977
  (0, import_log5.log)("sending authentication request", void 0, {
1974
1978
  F: __dxlog_file7,
1975
- L: 290,
1979
+ L: 293,
1976
1980
  S: this,
1977
1981
  C: (f, a) => f(...a)
1978
1982
  });
@@ -1993,7 +1997,7 @@ var InvitationsHandler = class {
1993
1997
  attempt
1994
1998
  }, {
1995
1999
  F: __dxlog_file7,
1996
- L: 301,
2000
+ L: 304,
1997
2001
  S: this,
1998
2002
  C: (f, a) => f(...a)
1999
2003
  });
@@ -2010,7 +2014,7 @@ var InvitationsHandler = class {
2010
2014
  ...protocol.toJSON()
2011
2015
  }, {
2012
2016
  F: __dxlog_file7,
2013
- L: 312,
2017
+ L: 315,
2014
2018
  S: this,
2015
2019
  C: (f, a) => f(...a)
2016
2020
  });
@@ -2022,7 +2026,7 @@ var InvitationsHandler = class {
2022
2026
  ...protocol.toJSON()
2023
2027
  }, {
2024
2028
  F: __dxlog_file7,
2025
- L: 323,
2029
+ L: 326,
2026
2030
  S: this,
2027
2031
  C: (f, a) => f(...a)
2028
2032
  });
@@ -2034,7 +2038,7 @@ var InvitationsHandler = class {
2034
2038
  id: traceId
2035
2039
  }), {
2036
2040
  F: __dxlog_file7,
2037
- L: 325,
2041
+ L: 328,
2038
2042
  S: this,
2039
2043
  C: (f, a) => f(...a)
2040
2044
  });
@@ -2044,7 +2048,7 @@ var InvitationsHandler = class {
2044
2048
  ...protocol.toJSON()
2045
2049
  }, {
2046
2050
  F: __dxlog_file7,
2047
- L: 328,
2051
+ L: 331,
2048
2052
  S: this,
2049
2053
  C: (f, a) => f(...a)
2050
2054
  });
@@ -2054,7 +2058,7 @@ var InvitationsHandler = class {
2054
2058
  } else {
2055
2059
  (0, import_log5.log)("auth failed", err, {
2056
2060
  F: __dxlog_file7,
2057
- L: 331,
2061
+ L: 334,
2058
2062
  S: this,
2059
2063
  C: (f, a) => f(...a)
2060
2064
  });
@@ -2065,7 +2069,7 @@ var InvitationsHandler = class {
2065
2069
  error: err
2066
2070
  }), {
2067
2071
  F: __dxlog_file7,
2068
- L: 334,
2072
+ L: 337,
2069
2073
  S: this,
2070
2074
  C: (f, a) => f(...a)
2071
2075
  });
@@ -2083,7 +2087,7 @@ var InvitationsHandler = class {
2083
2087
  ...protocol.toJSON()
2084
2088
  }, {
2085
2089
  F: __dxlog_file7,
2086
- L: 345,
2090
+ L: 348,
2087
2091
  S: this,
2088
2092
  C: (f, a) => f(...a)
2089
2093
  });
@@ -2093,7 +2097,7 @@ var InvitationsHandler = class {
2093
2097
  } else {
2094
2098
  (0, import_log5.log)("auth failed", err, {
2095
2099
  F: __dxlog_file7,
2096
- L: 348,
2100
+ L: 351,
2097
2101
  S: this,
2098
2102
  C: (f, a) => f(...a)
2099
2103
  });
@@ -2106,7 +2110,7 @@ var InvitationsHandler = class {
2106
2110
  (0, import_async8.scheduleTask)(ctx, async () => {
2107
2111
  (0, import_invariant6.invariant)(invitation.swarmKey, void 0, {
2108
2112
  F: __dxlog_file7,
2109
- L: 358,
2113
+ L: 361,
2110
2114
  S: this,
2111
2115
  A: [
2112
2116
  "invitation.swarmKey",
@@ -2601,7 +2605,7 @@ var getPlatform = () => {
2601
2605
  };
2602
2606
 
2603
2607
  // packages/sdk/client-services/src/version.ts
2604
- var DXOS_VERSION = "0.3.5-main.9577658";
2608
+ var DXOS_VERSION = "0.3.5-main.9e966f9";
2605
2609
 
2606
2610
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2607
2611
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";