@dxos/client-services 0.5.9-main.e9bab55 → 0.5.9-main.eacfffa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_UEJYNKZP_exports = {};
30
- __export(chunk_UEJYNKZP_exports, {
29
+ var chunk_6HFQ2SQ5_exports = {};
30
+ __export(chunk_6HFQ2SQ5_exports, {
31
31
  ClientRpcServer: () => ClientRpcServer,
32
32
  ClientServicesHost: () => ClientServicesHost,
33
33
  ClientServicesProviderResource: () => ClientServicesProviderResource,
@@ -66,7 +66,7 @@ __export(chunk_UEJYNKZP_exports, {
66
66
  subscribeToSpaces: () => subscribeToSpaces,
67
67
  subscribeToSwarmInfo: () => subscribeToSwarmInfo
68
68
  });
69
- module.exports = __toCommonJS(chunk_UEJYNKZP_exports);
69
+ module.exports = __toCommonJS(chunk_6HFQ2SQ5_exports);
70
70
  var import_async = require("@dxos/async");
71
71
  var import_codec_protobuf = require("@dxos/codec-protobuf");
72
72
  var import_feed_store = require("@dxos/feed-store");
@@ -388,6 +388,7 @@ var subscribeToFeedBlocks = ({ feedStore }, { feedKey, maxBlocks = 10 }) => {
388
388
  };
389
389
  });
390
390
  };
391
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/network.ts";
391
392
  var subscribeToNetworkStatus = ({ signalManager }) => new import_codec_protobuf2.Stream(({ next, close }) => {
392
393
  const update = () => {
393
394
  try {
@@ -403,7 +404,10 @@ var subscribeToNetworkStatus = ({ signalManager }) => new import_codec_protobuf2
403
404
  update();
404
405
  });
405
406
  var subscribeToSignal = ({ signalManager }) => new import_codec_protobuf2.Stream(({ next }) => {
406
- const ctx = new import_context.Context();
407
+ const ctx = new import_context.Context(void 0, {
408
+ F: __dxlog_file,
409
+ L: 36
410
+ });
407
411
  signalManager.onMessage.on(ctx, (message) => {
408
412
  next({
409
413
  message: {
@@ -631,7 +635,7 @@ var DevtoolsServiceImpl = class {
631
635
  });
632
636
  }
633
637
  };
634
- var DXOS_VERSION = "0.5.9-main.e9bab55";
638
+ var DXOS_VERSION = "0.5.9-main.eacfffa";
635
639
  var getPlatform = () => {
636
640
  if (process.browser) {
637
641
  if (typeof window !== "undefined") {
@@ -659,7 +663,7 @@ var getPlatform = () => {
659
663
  };
660
664
  }
661
665
  };
662
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
666
+ var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
663
667
  var DEFAULT_TIMEOUT = 1e3;
664
668
  var createDiagnostics = async (clientServices, serviceContext, config) => {
665
669
  const diagnostics = {
@@ -676,7 +680,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
676
680
  await Promise.all([
677
681
  (async () => {
678
682
  (0, import_invariant.invariant)(clientServices.LoggingService, "SystemService is not available.", {
679
- F: __dxlog_file,
683
+ F: __dxlog_file2,
680
684
  L: 110,
681
685
  S: void 0,
682
686
  A: [
@@ -865,7 +869,7 @@ _ts_decorate([
865
869
  ClientRpcServer = _ts_decorate([
866
870
  import_tracing2.trace.resource()
867
871
  ], ClientRpcServer);
868
- var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
872
+ var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
869
873
  var Credential = import_protocols2.schema.getCodecForType("dxos.halo.credentials.Credential");
870
874
  var createAuthProvider = (signer) => async (nonce) => {
871
875
  const credential = await signer.createCredential({
@@ -880,7 +884,10 @@ var createAuthProvider = (signer) => async (nonce) => {
880
884
  var TrustedKeySetAuthVerifier = class {
881
885
  constructor(_params) {
882
886
  this._params = _params;
883
- this._ctx = new import_context2.Context();
887
+ this._ctx = new import_context2.Context(void 0, {
888
+ F: __dxlog_file3,
889
+ L: 45
890
+ });
884
891
  }
885
892
  async close() {
886
893
  await this._ctx.dispose();
@@ -891,7 +898,7 @@ var TrustedKeySetAuthVerifier = class {
891
898
  (0, import_log.log)("authenticating...", {
892
899
  credential
893
900
  }, {
894
- F: __dxlog_file2,
901
+ F: __dxlog_file3,
895
902
  L: 56,
896
903
  S: this,
897
904
  C: (f, a) => f(...a)
@@ -901,7 +908,7 @@ var TrustedKeySetAuthVerifier = class {
901
908
  (0, import_log.log)("Invalid credential", {
902
909
  result
903
910
  }, {
904
- F: __dxlog_file2,
911
+ F: __dxlog_file3,
905
912
  L: 60,
906
913
  S: this,
907
914
  C: (f, a) => f(...a)
@@ -913,7 +920,7 @@ var TrustedKeySetAuthVerifier = class {
913
920
  nonce,
914
921
  credential
915
922
  }, {
916
- F: __dxlog_file2,
923
+ F: __dxlog_file3,
917
924
  L: 65,
918
925
  S: this,
919
926
  C: (f, a) => f(...a)
@@ -924,7 +931,7 @@ var TrustedKeySetAuthVerifier = class {
924
931
  (0, import_log.log)("key is not currently in trusted set, waiting...", {
925
932
  key: credential.issuer
926
933
  }, {
927
- F: __dxlog_file2,
934
+ F: __dxlog_file3,
928
935
  L: 70,
929
936
  S: this,
930
937
  C: (f, a) => f(...a)
@@ -940,7 +947,7 @@ var TrustedKeySetAuthVerifier = class {
940
947
  (0, import_log.log)("auth success", {
941
948
  key: credential.issuer
942
949
  }, {
943
- F: __dxlog_file2,
950
+ F: __dxlog_file3,
944
951
  L: 81,
945
952
  S: this,
946
953
  C: (f, a) => f(...a)
@@ -950,7 +957,7 @@ var TrustedKeySetAuthVerifier = class {
950
957
  (0, import_log.log)("key is not currently in trusted set, waiting...", {
951
958
  key: credential.issuer
952
959
  }, {
953
- F: __dxlog_file2,
960
+ F: __dxlog_file3,
954
961
  L: 84,
955
962
  S: this,
956
963
  C: (f, a) => f(...a)
@@ -973,7 +980,7 @@ var TrustedKeySetAuthVerifier = class {
973
980
  return deviceSet.has(deviceKey);
974
981
  }
975
982
  };
976
- var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
983
+ var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
977
984
  var DefaultSpaceStateMachine = class {
978
985
  constructor(_params) {
979
986
  this._params = _params;
@@ -990,7 +997,7 @@ var DefaultSpaceStateMachine = class {
990
997
  expectedIdentity: this._params.identityKey,
991
998
  credential
992
999
  }, {
993
- F: __dxlog_file3,
1000
+ F: __dxlog_file4,
994
1001
  L: 32,
995
1002
  S: this,
996
1003
  C: (f, a) => f(...a)
@@ -1001,7 +1008,7 @@ var DefaultSpaceStateMachine = class {
1001
1008
  import_log3.log.warn("Invalid default space id", {
1002
1009
  id: assertion.spaceId
1003
1010
  }, {
1004
- F: __dxlog_file3,
1011
+ F: __dxlog_file4,
1005
1012
  L: 36,
1006
1013
  S: this,
1007
1014
  C: (f, a) => f(...a)
@@ -1024,7 +1031,7 @@ function _ts_decorate2(decorators, target, key, desc) {
1024
1031
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1025
1032
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1026
1033
  }
1027
- var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
1034
+ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
1028
1035
  var Identity = class {
1029
1036
  constructor({ space, signer, identityKey, deviceKey, presence }) {
1030
1037
  this.stateUpdate = new import_async6.Event();
@@ -1036,7 +1043,7 @@ var Identity = class {
1036
1043
  import_log2.log.trace("dxos.halo.device", {
1037
1044
  deviceKey
1038
1045
  }, {
1039
- F: __dxlog_file4,
1046
+ F: __dxlog_file5,
1040
1047
  L: 70,
1041
1048
  S: this,
1042
1049
  C: (f, a) => f(...a)
@@ -1115,7 +1122,7 @@ var Identity = class {
1115
1122
  */
1116
1123
  getIdentityCredentialSigner() {
1117
1124
  (0, import_invariant2.invariant)(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
1118
- F: __dxlog_file4,
1125
+ F: __dxlog_file5,
1119
1126
  L: 159,
1120
1127
  S: this,
1121
1128
  A: [
@@ -1159,7 +1166,7 @@ var Identity = class {
1159
1166
  controlFeedKey,
1160
1167
  dataFeedKey
1161
1168
  }, {
1162
- F: __dxlog_file4,
1169
+ F: __dxlog_file5,
1163
1170
  L: 184,
1164
1171
  S: this,
1165
1172
  C: (f, a) => f(...a)
@@ -1220,7 +1227,7 @@ function _ts_decorate3(decorators, target, key, desc) {
1220
1227
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1221
1228
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1222
1229
  }
1223
- var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
1230
+ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
1224
1231
  var DEVICE_PRESENCE_ANNOUNCE_INTERVAL = 1e4;
1225
1232
  var DEVICE_PRESENCE_OFFLINE_TIMEOUT = 2e4;
1226
1233
  var IdentityManager = class {
@@ -1244,7 +1251,7 @@ var IdentityManager = class {
1244
1251
  import_log4.log.trace("dxos.halo.identity-manager.open", import_protocols3.trace.begin({
1245
1252
  id: traceId
1246
1253
  }), {
1247
- F: __dxlog_file5,
1254
+ F: __dxlog_file6,
1248
1255
  L: 104,
1249
1256
  S: this,
1250
1257
  C: (f, a) => f(...a)
@@ -1253,7 +1260,7 @@ var IdentityManager = class {
1253
1260
  (0, import_log4.log)("identity record", {
1254
1261
  identityRecord
1255
1262
  }, {
1256
- F: __dxlog_file5,
1263
+ F: __dxlog_file6,
1257
1264
  L: 107,
1258
1265
  S: this,
1259
1266
  C: (f, a) => f(...a)
@@ -1266,7 +1273,7 @@ var IdentityManager = class {
1266
1273
  identityKey: identityRecord.identityKey,
1267
1274
  displayName: this._identity.profileDocument?.displayName
1268
1275
  }, {
1269
- F: __dxlog_file5,
1276
+ F: __dxlog_file6,
1270
1277
  L: 112,
1271
1278
  S: this,
1272
1279
  C: (f, a) => f(...a)
@@ -1276,18 +1283,21 @@ var IdentityManager = class {
1276
1283
  import_log4.log.trace("dxos.halo.identity-manager.open", import_protocols3.trace.end({
1277
1284
  id: traceId
1278
1285
  }), {
1279
- F: __dxlog_file5,
1286
+ F: __dxlog_file6,
1280
1287
  L: 119,
1281
1288
  S: this,
1282
1289
  C: (f, a) => f(...a)
1283
1290
  });
1284
1291
  }
1285
1292
  async close() {
1286
- await this._identity?.close(new import_context3.Context());
1293
+ await this._identity?.close(new import_context3.Context(void 0, {
1294
+ F: __dxlog_file6,
1295
+ L: 123
1296
+ }));
1287
1297
  }
1288
1298
  async createIdentity({ displayName, deviceProfile } = {}) {
1289
1299
  (0, import_invariant3.invariant)(!this._identity, "Identity already exists.", {
1290
- F: __dxlog_file5,
1300
+ F: __dxlog_file6,
1291
1301
  L: 128,
1292
1302
  S: this,
1293
1303
  A: [
@@ -1296,7 +1306,7 @@ var IdentityManager = class {
1296
1306
  ]
1297
1307
  });
1298
1308
  (0, import_log4.log)("creating identity...", void 0, {
1299
- F: __dxlog_file5,
1309
+ F: __dxlog_file6,
1300
1310
  L: 129,
1301
1311
  S: this,
1302
1312
  C: (f, a) => f(...a)
@@ -1313,11 +1323,14 @@ var IdentityManager = class {
1313
1323
  }
1314
1324
  };
1315
1325
  const identity = await this._constructIdentity(identityRecord);
1316
- await identity.open(new import_context3.Context());
1326
+ await identity.open(new import_context3.Context(void 0, {
1327
+ F: __dxlog_file6,
1328
+ L: 144
1329
+ }));
1317
1330
  {
1318
1331
  const generator = new import_credentials6.CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
1319
1332
  (0, import_invariant3.invariant)(identityRecord.haloSpace.genesisFeedKey, "Genesis feed key is required.", {
1320
- F: __dxlog_file5,
1333
+ F: __dxlog_file6,
1321
1334
  L: 148,
1322
1335
  S: this,
1323
1336
  A: [
@@ -1326,7 +1339,7 @@ var IdentityManager = class {
1326
1339
  ]
1327
1340
  });
1328
1341
  (0, import_invariant3.invariant)(identityRecord.haloSpace.dataFeedKey, "Data feed key is required.", {
1329
- F: __dxlog_file5,
1342
+ F: __dxlog_file6,
1330
1343
  L: 149,
1331
1344
  S: this,
1332
1345
  A: [
@@ -1365,7 +1378,7 @@ var IdentityManager = class {
1365
1378
  identityKey: identityRecord.identityKey,
1366
1379
  displayName: this._identity.profileDocument?.displayName
1367
1380
  }, {
1368
- F: __dxlog_file5,
1381
+ F: __dxlog_file6,
1369
1382
  L: 191,
1370
1383
  S: this,
1371
1384
  C: (f, a) => f(...a)
@@ -1376,7 +1389,7 @@ var IdentityManager = class {
1376
1389
  deviceKey: identity.deviceKey,
1377
1390
  profile: identity.profileDocument
1378
1391
  }, {
1379
- F: __dxlog_file5,
1392
+ F: __dxlog_file6,
1380
1393
  L: 197,
1381
1394
  S: this,
1382
1395
  C: (f, a) => f(...a)
@@ -1413,13 +1426,13 @@ var IdentityManager = class {
1413
1426
  (0, import_log4.log)("accepting identity", {
1414
1427
  params
1415
1428
  }, {
1416
- F: __dxlog_file5,
1429
+ F: __dxlog_file6,
1417
1430
  L: 235,
1418
1431
  S: this,
1419
1432
  C: (f, a) => f(...a)
1420
1433
  });
1421
1434
  (0, import_invariant3.invariant)(!this._identity, "Identity already exists.", {
1422
- F: __dxlog_file5,
1435
+ F: __dxlog_file6,
1423
1436
  L: 236,
1424
1437
  S: this,
1425
1438
  A: [
@@ -1439,7 +1452,10 @@ var IdentityManager = class {
1439
1452
  }
1440
1453
  };
1441
1454
  const identity = await this._constructIdentity(identityRecord);
1442
- await identity.open(new import_context3.Context());
1455
+ await identity.open(new import_context3.Context(void 0, {
1456
+ F: __dxlog_file6,
1457
+ L: 251
1458
+ }));
1443
1459
  this._identity = identity;
1444
1460
  await this._metadataStore.setIdentityRecord(identityRecord);
1445
1461
  await this._identity.ready();
@@ -1447,7 +1463,7 @@ var IdentityManager = class {
1447
1463
  identityKey: identityRecord.identityKey,
1448
1464
  displayName: this._identity.profileDocument?.displayName
1449
1465
  }, {
1450
- F: __dxlog_file5,
1466
+ F: __dxlog_file6,
1451
1467
  L: 255,
1452
1468
  S: this,
1453
1469
  C: (f, a) => f(...a)
@@ -1461,7 +1477,7 @@ var IdentityManager = class {
1461
1477
  identityKey: identity.identityKey,
1462
1478
  deviceKey: identity.deviceKey
1463
1479
  }, {
1464
- F: __dxlog_file5,
1480
+ F: __dxlog_file6,
1465
1481
  L: 265,
1466
1482
  S: this,
1467
1483
  C: (f, a) => f(...a)
@@ -1473,7 +1489,7 @@ var IdentityManager = class {
1473
1489
  */
1474
1490
  async updateProfile(profile) {
1475
1491
  (0, import_invariant3.invariant)(this._identity, "Identity not initialized.", {
1476
- F: __dxlog_file5,
1492
+ F: __dxlog_file6,
1477
1493
  L: 273,
1478
1494
  S: this,
1479
1495
  A: [
@@ -1504,7 +1520,7 @@ var IdentityManager = class {
1504
1520
  }
1505
1521
  async updateDeviceProfile(profile) {
1506
1522
  (0, import_invariant3.invariant)(this._identity, "Identity not initialized.", {
1507
- F: __dxlog_file5,
1523
+ F: __dxlog_file6,
1508
1524
  L: 290,
1509
1525
  S: this,
1510
1526
  A: [
@@ -1540,7 +1556,7 @@ var IdentityManager = class {
1540
1556
  }
1541
1557
  async _constructIdentity(identityRecord) {
1542
1558
  (0, import_invariant3.invariant)(!this._identity, void 0, {
1543
- F: __dxlog_file5,
1559
+ F: __dxlog_file6,
1544
1560
  L: 316,
1545
1561
  S: this,
1546
1562
  A: [
@@ -1551,7 +1567,7 @@ var IdentityManager = class {
1551
1567
  (0, import_log4.log)("constructing identity", {
1552
1568
  identityRecord
1553
1569
  }, {
1554
- F: __dxlog_file5,
1570
+ F: __dxlog_file6,
1555
1571
  L: 317,
1556
1572
  S: this,
1557
1573
  C: (f, a) => f(...a)
@@ -1566,7 +1582,7 @@ var IdentityManager = class {
1566
1582
  gossip
1567
1583
  });
1568
1584
  (0, import_invariant3.invariant)(identityRecord.haloSpace.controlFeedKey, void 0, {
1569
- F: __dxlog_file5,
1585
+ F: __dxlog_file6,
1570
1586
  L: 330,
1571
1587
  S: this,
1572
1588
  A: [
@@ -1578,7 +1594,7 @@ var IdentityManager = class {
1578
1594
  writable: true
1579
1595
  });
1580
1596
  (0, import_invariant3.invariant)(identityRecord.haloSpace.dataFeedKey, void 0, {
1581
- F: __dxlog_file5,
1597
+ F: __dxlog_file6,
1582
1598
  L: 334,
1583
1599
  S: this,
1584
1600
  A: [
@@ -1612,7 +1628,7 @@ var IdentityManager = class {
1612
1628
  (0, import_log4.log)("done", {
1613
1629
  identityKey: identityRecord.identityKey
1614
1630
  }, {
1615
- F: __dxlog_file5,
1631
+ F: __dxlog_file6,
1616
1632
  L: 360,
1617
1633
  S: this,
1618
1634
  C: (f, a) => f(...a)
@@ -1637,7 +1653,7 @@ var IdentityManager = class {
1637
1653
  },
1638
1654
  onAuthFailure: () => {
1639
1655
  import_log4.log.warn("auth failure", void 0, {
1640
- F: __dxlog_file5,
1656
+ F: __dxlog_file6,
1641
1657
  L: 385,
1642
1658
  S: this,
1643
1659
  C: (f, a) => f(...a)
@@ -1659,7 +1675,7 @@ _ts_decorate3([
1659
1675
  IdentityManager = _ts_decorate3([
1660
1676
  import_tracing4.trace.resource()
1661
1677
  ], IdentityManager);
1662
- var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
1678
+ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
1663
1679
  var DEFAULT_SPACE_SEARCH_TIMEOUT = 1e4;
1664
1680
  var IdentityServiceImpl = class extends import_context4.Resource {
1665
1681
  constructor(_identityManager, _keyring, _dataSpaceManagerProvider, _createIdentity, _onProfileUpdate) {
@@ -1689,7 +1705,7 @@ var IdentityServiceImpl = class extends import_context4.Resource {
1689
1705
  const space = await dataSpaceManager.createDefaultSpace();
1690
1706
  const identity = this._identityManager.identity;
1691
1707
  (0, import_invariant4.invariant)(identity, void 0, {
1692
- F: __dxlog_file6,
1708
+ F: __dxlog_file7,
1693
1709
  L: 59,
1694
1710
  S: this,
1695
1711
  A: [
@@ -1723,7 +1739,7 @@ var IdentityServiceImpl = class extends import_context4.Resource {
1723
1739
  }
1724
1740
  async updateProfile(profile) {
1725
1741
  (0, import_invariant4.invariant)(this._identityManager.identity, "Identity not initialized.", {
1726
- F: __dxlog_file6,
1742
+ F: __dxlog_file7,
1727
1743
  L: 89,
1728
1744
  S: this,
1729
1745
  A: [
@@ -1737,7 +1753,7 @@ var IdentityServiceImpl = class extends import_context4.Resource {
1737
1753
  }
1738
1754
  async signPresentation({ presentation, nonce }) {
1739
1755
  (0, import_invariant4.invariant)(this._identityManager.identity, "Identity not initialized.", {
1740
- F: __dxlog_file6,
1756
+ F: __dxlog_file7,
1741
1757
  L: 96,
1742
1758
  S: this,
1743
1759
  A: [
@@ -1772,7 +1788,7 @@ var IdentityServiceImpl = class extends import_context4.Resource {
1772
1788
  import_log5.log.warn("Multiple default spaces found. Using the first one.", {
1773
1789
  duplicate: space.id
1774
1790
  }, {
1775
- F: __dxlog_file6,
1791
+ F: __dxlog_file7,
1776
1792
  L: 127,
1777
1793
  S: this,
1778
1794
  C: (f, a) => f(...a)
@@ -1795,7 +1811,7 @@ var IdentityServiceImpl = class extends import_context4.Resource {
1795
1811
  }
1796
1812
  }
1797
1813
  };
1798
- var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
1814
+ var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
1799
1815
  var DeviceInvitationProtocol = class {
1800
1816
  constructor(_keyring, _getIdentity, _acceptIdentity) {
1801
1817
  this._keyring = _keyring;
@@ -1821,7 +1837,7 @@ var DeviceInvitationProtocol = class {
1821
1837
  }
1822
1838
  async admit(_, request) {
1823
1839
  (0, import_invariant5.invariant)(request.device, void 0, {
1824
- F: __dxlog_file7,
1840
+ F: __dxlog_file8,
1825
1841
  L: 50,
1826
1842
  S: this,
1827
1843
  A: [
@@ -1867,7 +1883,7 @@ var DeviceInvitationProtocol = class {
1867
1883
  }
1868
1884
  async accept(response, request) {
1869
1885
  (0, import_invariant5.invariant)(response.device, void 0, {
1870
- F: __dxlog_file7,
1886
+ F: __dxlog_file8,
1871
1887
  L: 95,
1872
1888
  S: this,
1873
1889
  A: [
@@ -1877,7 +1893,7 @@ var DeviceInvitationProtocol = class {
1877
1893
  });
1878
1894
  const { identityKey, haloSpaceKey, genesisFeedKey, controlTimeframe } = response.device;
1879
1895
  (0, import_invariant5.invariant)(request.device, void 0, {
1880
- F: __dxlog_file7,
1896
+ F: __dxlog_file8,
1881
1897
  L: 98,
1882
1898
  S: this,
1883
1899
  A: [
@@ -1916,7 +1932,7 @@ var tryAcquireBeforeContextDisposed = async (ctx, mutex) => {
1916
1932
  return guard;
1917
1933
  })());
1918
1934
  };
1919
- var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
1935
+ var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
1920
1936
  var OPTIONS_TIMEOUT = 1e4;
1921
1937
  var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1922
1938
  constructor(_invitationFlowMutex, _callbacks) {
@@ -1930,7 +1946,10 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1930
1946
  });
1931
1947
  this._invitationFlowMutex = _invitationFlowMutex;
1932
1948
  this._callbacks = _callbacks;
1933
- this._ctx = new import_context6.Context();
1949
+ this._ctx = new import_context6.Context(void 0, {
1950
+ F: __dxlog_file9,
1951
+ L: 33
1952
+ });
1934
1953
  this._remoteOptionsTrigger = new import_async10.Trigger();
1935
1954
  this._invitationFlowLock = null;
1936
1955
  }
@@ -1942,7 +1961,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1942
1961
  InvitationHostService: {
1943
1962
  options: async (options) => {
1944
1963
  (0, import_invariant7.invariant)(!this._remoteOptions, "Remote options already set.", {
1945
- F: __dxlog_file8,
1964
+ F: __dxlog_file9,
1946
1965
  L: 63,
1947
1966
  S: this,
1948
1967
  A: [
@@ -1969,14 +1988,14 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1969
1988
  await super.onOpen(context);
1970
1989
  try {
1971
1990
  (0, import_log7.log)("guest acquire lock", void 0, {
1972
- F: __dxlog_file8,
1991
+ F: __dxlog_file9,
1973
1992
  L: 84,
1974
1993
  S: this,
1975
1994
  C: (f, a) => f(...a)
1976
1995
  });
1977
1996
  this._invitationFlowLock = await tryAcquireBeforeContextDisposed(this._ctx, this._invitationFlowMutex);
1978
1997
  (0, import_log7.log)("guest lock acquired", void 0, {
1979
- F: __dxlog_file8,
1998
+ F: __dxlog_file9,
1980
1999
  L: 86,
1981
2000
  S: this,
1982
2001
  C: (f, a) => f(...a)
@@ -1985,7 +2004,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1985
2004
  role: import_invitations3.Options.Role.GUEST
1986
2005
  }));
1987
2006
  (0, import_log7.log)("options sent", void 0, {
1988
- F: __dxlog_file8,
2007
+ F: __dxlog_file9,
1989
2008
  L: 88,
1990
2009
  S: this,
1991
2010
  C: (f, a) => f(...a)
@@ -1994,7 +2013,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1994
2013
  timeout: OPTIONS_TIMEOUT
1995
2014
  }));
1996
2015
  (0, import_log7.log)("options received", void 0, {
1997
- F: __dxlog_file8,
2016
+ F: __dxlog_file9,
1998
2017
  L: 90,
1999
2018
  S: this,
2000
2019
  C: (f, a) => f(...a)
@@ -2028,7 +2047,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
2028
2047
  this._invitationFlowLock.release();
2029
2048
  this._invitationFlowLock = null;
2030
2049
  (0, import_log7.log)("invitation flow lock released", void 0, {
2031
- F: __dxlog_file8,
2050
+ F: __dxlog_file9,
2032
2051
  L: 123,
2033
2052
  S: this,
2034
2053
  C: (f, a) => f(...a)
@@ -2036,7 +2055,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
2036
2055
  }
2037
2056
  }
2038
2057
  };
2039
- var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
2058
+ var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
2040
2059
  var OPTIONS_TIMEOUT2 = 1e4;
2041
2060
  var MAX_OTP_ATTEMPTS = 3;
2042
2061
  var InvitationHostExtension = class extends import_teleport2.RpcExtension {
@@ -2051,7 +2070,10 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2051
2070
  });
2052
2071
  this._invitationFlowMutex = _invitationFlowMutex;
2053
2072
  this._callbacks = _callbacks;
2054
- this._ctx = new import_context8.Context();
2073
+ this._ctx = new import_context8.Context(void 0, {
2074
+ F: __dxlog_file10,
2075
+ L: 52
2076
+ });
2055
2077
  this._remoteOptionsTrigger = new import_async11.Trigger();
2056
2078
  this._challenge = void 0;
2057
2079
  this.guestProfile = void 0;
@@ -2070,7 +2092,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2070
2092
  InvitationHostService: {
2071
2093
  options: async (options) => {
2072
2094
  (0, import_invariant8.invariant)(!this._remoteOptions, "Remote options already set.", {
2073
- F: __dxlog_file9,
2095
+ F: __dxlog_file10,
2074
2096
  L: 101,
2075
2097
  S: this,
2076
2098
  A: [
@@ -2087,7 +2109,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2087
2109
  import_log8.log.trace("dxos.sdk.invitation-handler.host.introduce", import_protocols7.trace.begin({
2088
2110
  id: traceId
2089
2111
  }), {
2090
- F: __dxlog_file9,
2112
+ F: __dxlog_file10,
2091
2113
  L: 110,
2092
2114
  S: this,
2093
2115
  C: (f, a) => f(...a)
@@ -2099,7 +2121,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2099
2121
  expected: invitation.invitationId,
2100
2122
  actual: invitationId
2101
2123
  }, {
2102
- F: __dxlog_file9,
2124
+ F: __dxlog_file10,
2103
2125
  L: 116,
2104
2126
  S: this,
2105
2127
  C: (f, a) => f(...a)
@@ -2113,7 +2135,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2113
2135
  (0, import_log8.log)("guest introduced themselves", {
2114
2136
  guestProfile: profile
2115
2137
  }, {
2116
- F: __dxlog_file9,
2138
+ F: __dxlog_file10,
2117
2139
  L: 125,
2118
2140
  S: this,
2119
2141
  C: (f, a) => f(...a)
@@ -2124,7 +2146,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2124
2146
  import_log8.log.trace("dxos.sdk.invitation-handler.host.introduce", import_protocols7.trace.end({
2125
2147
  id: traceId
2126
2148
  }), {
2127
- F: __dxlog_file9,
2149
+ F: __dxlog_file10,
2128
2150
  L: 132,
2129
2151
  S: this,
2130
2152
  C: (f, a) => f(...a)
@@ -2139,7 +2161,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2139
2161
  import_log8.log.trace("dxos.sdk.invitation-handler.host.authenticate", import_protocols7.trace.begin({
2140
2162
  id: traceId
2141
2163
  }), {
2142
- F: __dxlog_file9,
2164
+ F: __dxlog_file10,
2143
2165
  L: 141,
2144
2166
  S: this,
2145
2167
  C: (f, a) => f(...a)
@@ -2148,7 +2170,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2148
2170
  (0, import_log8.log)("received authentication request", {
2149
2171
  authCode: code
2150
2172
  }, {
2151
- F: __dxlog_file9,
2173
+ F: __dxlog_file10,
2152
2174
  L: 144,
2153
2175
  S: this,
2154
2176
  C: (f, a) => f(...a)
@@ -2162,7 +2184,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2162
2184
  switch (invitation.authMethod) {
2163
2185
  case import_services8.Invitation.AuthMethod.NONE: {
2164
2186
  (0, import_log8.log)("authentication not required", void 0, {
2165
- F: __dxlog_file9,
2187
+ F: __dxlog_file10,
2166
2188
  L: 152,
2167
2189
  S: this,
2168
2190
  C: (f, a) => f(...a)
@@ -2200,7 +2222,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2200
2222
  import_log8.log.error("invalid authentication method", {
2201
2223
  authMethod: invitation.authMethod
2202
2224
  }, {
2203
- F: __dxlog_file9,
2225
+ F: __dxlog_file10,
2204
2226
  L: 190,
2205
2227
  S: this,
2206
2228
  C: (f, a) => f(...a)
@@ -2225,7 +2247,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2225
2247
  status
2226
2248
  }
2227
2249
  }), {
2228
- F: __dxlog_file9,
2250
+ F: __dxlog_file10,
2229
2251
  L: 202,
2230
2252
  S: this,
2231
2253
  C: (f, a) => f(...a)
@@ -2239,7 +2261,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2239
2261
  import_log8.log.trace("dxos.sdk.invitation-handler.host.admit", import_protocols7.trace.begin({
2240
2262
  id: traceId
2241
2263
  }), {
2242
- F: __dxlog_file9,
2264
+ F: __dxlog_file10,
2243
2265
  L: 208,
2244
2266
  S: this,
2245
2267
  C: (f, a) => f(...a)
@@ -2256,7 +2278,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2256
2278
  import_log8.log.trace("dxos.sdk.invitation-handler.host.admit", import_protocols7.trace.end({
2257
2279
  id: traceId
2258
2280
  }), {
2259
- F: __dxlog_file9,
2281
+ F: __dxlog_file10,
2260
2282
  L: 222,
2261
2283
  S: this,
2262
2284
  C: (f, a) => f(...a)
@@ -2274,14 +2296,14 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2274
2296
  await super.onOpen(context);
2275
2297
  try {
2276
2298
  (0, import_log8.log)("host acquire lock", void 0, {
2277
- F: __dxlog_file9,
2299
+ F: __dxlog_file10,
2278
2300
  L: 237,
2279
2301
  S: this,
2280
2302
  C: (f, a) => f(...a)
2281
2303
  });
2282
2304
  this._invitationFlowLock = await tryAcquireBeforeContextDisposed(this._ctx, this._invitationFlowMutex);
2283
2305
  (0, import_log8.log)("host lock acquired", void 0, {
2284
- F: __dxlog_file9,
2306
+ F: __dxlog_file10,
2285
2307
  L: 239,
2286
2308
  S: this,
2287
2309
  C: (f, a) => f(...a)
@@ -2292,7 +2314,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2292
2314
  role: import_invitations4.Options.Role.HOST
2293
2315
  });
2294
2316
  (0, import_log8.log)("options sent", void 0, {
2295
- F: __dxlog_file9,
2317
+ F: __dxlog_file10,
2296
2318
  L: 243,
2297
2319
  S: this,
2298
2320
  C: (f, a) => f(...a)
@@ -2301,7 +2323,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2301
2323
  timeout: OPTIONS_TIMEOUT2
2302
2324
  }));
2303
2325
  (0, import_log8.log)("options received", void 0, {
2304
- F: __dxlog_file9,
2326
+ F: __dxlog_file10,
2305
2327
  L: 245,
2306
2328
  S: this,
2307
2329
  C: (f, a) => f(...a)
@@ -2355,7 +2377,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2355
2377
  this._invitationFlowLock?.release();
2356
2378
  this._invitationFlowLock = null;
2357
2379
  (0, import_log8.log)("invitation flow lock released", void 0, {
2358
- F: __dxlog_file9,
2380
+ F: __dxlog_file10,
2359
2381
  L: 300,
2360
2382
  S: this,
2361
2383
  C: (f, a) => f(...a)
@@ -2364,7 +2386,7 @@ var InvitationHostExtension = class extends import_teleport2.RpcExtension {
2364
2386
  }
2365
2387
  };
2366
2388
  var isAuthenticationRequired = (invitation) => invitation.authMethod !== import_services8.Invitation.AuthMethod.NONE;
2367
- var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
2389
+ var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
2368
2390
  var InvitationTopology = class {
2369
2391
  constructor(_role) {
2370
2392
  this._role = _role;
@@ -2372,7 +2394,7 @@ var InvitationTopology = class {
2372
2394
  }
2373
2395
  init(controller) {
2374
2396
  (0, import_invariant9.invariant)(!this._controller, "Already initialized.", {
2375
- F: __dxlog_file10,
2397
+ F: __dxlog_file11,
2376
2398
  L: 42,
2377
2399
  S: this,
2378
2400
  A: [
@@ -2384,7 +2406,7 @@ var InvitationTopology = class {
2384
2406
  }
2385
2407
  update() {
2386
2408
  (0, import_invariant9.invariant)(this._controller, "Not initialized.", {
2387
- F: __dxlog_file10,
2409
+ F: __dxlog_file11,
2388
2410
  L: 47,
2389
2411
  S: this,
2390
2412
  A: [
@@ -2407,7 +2429,7 @@ var InvitationTopology = class {
2407
2429
  ownPeerId,
2408
2430
  remotePeerId: firstUnknownPeer
2409
2431
  }, {
2410
- F: __dxlog_file10,
2432
+ F: __dxlog_file11,
2411
2433
  L: 69,
2412
2434
  S: this,
2413
2435
  C: (f, a) => f(...a)
@@ -2418,7 +2440,7 @@ var InvitationTopology = class {
2418
2440
  }
2419
2441
  async onOffer(peer) {
2420
2442
  (0, import_invariant9.invariant)(this._controller, "Not initialized.", {
2421
- F: __dxlog_file10,
2443
+ F: __dxlog_file11,
2422
2444
  L: 76,
2423
2445
  S: this,
2424
2446
  A: [
@@ -2435,7 +2457,7 @@ var InvitationTopology = class {
2435
2457
  return `InvitationTopology(${this._role === import_invitations5.Options.Role.GUEST ? "guest" : "host"})`;
2436
2458
  }
2437
2459
  };
2438
- var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
2460
+ var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
2439
2461
  var MAX_DELEGATED_INVITATION_HOST_TRIES = 3;
2440
2462
  var InvitationsHandler = class {
2441
2463
  /**
@@ -2460,7 +2482,7 @@ var InvitationsHandler = class {
2460
2482
  try {
2461
2483
  const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
2462
2484
  (0, import_invariant6.invariant)(deviceKey, void 0, {
2463
- F: __dxlog_file11,
2485
+ F: __dxlog_file12,
2464
2486
  L: 90,
2465
2487
  S: this,
2466
2488
  A: [
@@ -2489,7 +2511,7 @@ var InvitationsHandler = class {
2489
2511
  import_log6.log.trace("dxos.sdk.invitations-handler.host.onOpen", import_protocols5.trace.begin({
2490
2512
  id: traceId
2491
2513
  }), {
2492
- F: __dxlog_file11,
2514
+ F: __dxlog_file12,
2493
2515
  L: 115,
2494
2516
  S: this,
2495
2517
  C: (f, a) => f(...a)
@@ -2497,7 +2519,7 @@ var InvitationsHandler = class {
2497
2519
  (0, import_log6.log)("connected", {
2498
2520
  ...protocol.toJSON()
2499
2521
  }, {
2500
- F: __dxlog_file11,
2522
+ F: __dxlog_file12,
2501
2523
  L: 116,
2502
2524
  S: this,
2503
2525
  C: (f, a) => f(...a)
@@ -2509,7 +2531,7 @@ var InvitationsHandler = class {
2509
2531
  guest: deviceKey,
2510
2532
  ...protocol.toJSON()
2511
2533
  }, {
2512
- F: __dxlog_file11,
2534
+ F: __dxlog_file12,
2513
2535
  L: 118,
2514
2536
  S: this,
2515
2537
  C: (f, a) => f(...a)
@@ -2518,7 +2540,7 @@ var InvitationsHandler = class {
2518
2540
  import_log6.log.trace("dxos.sdk.invitations-handler.host.onOpen", import_protocols5.trace.end({
2519
2541
  id: traceId
2520
2542
  }), {
2521
- F: __dxlog_file11,
2543
+ F: __dxlog_file12,
2522
2544
  L: 120,
2523
2545
  S: this,
2524
2546
  C: (f, a) => f(...a)
@@ -2533,7 +2555,7 @@ var InvitationsHandler = class {
2533
2555
  (0, import_log6.log)("timeout", {
2534
2556
  ...protocol.toJSON()
2535
2557
  }, {
2536
- F: __dxlog_file11,
2558
+ F: __dxlog_file12,
2537
2559
  L: 129,
2538
2560
  S: this,
2539
2561
  C: (f, a) => f(...a)
@@ -2542,7 +2564,7 @@ var InvitationsHandler = class {
2542
2564
  } else {
2543
2565
  if (guardedState.error(extension, err)) {
2544
2566
  import_log6.log.error("failed", err, {
2545
- F: __dxlog_file11,
2567
+ F: __dxlog_file12,
2546
2568
  L: 133,
2547
2569
  S: this,
2548
2570
  C: (f, a) => f(...a)
@@ -2553,7 +2575,7 @@ var InvitationsHandler = class {
2553
2575
  id: traceId,
2554
2576
  error: err
2555
2577
  }), {
2556
- F: __dxlog_file11,
2578
+ F: __dxlog_file12,
2557
2579
  L: 136,
2558
2580
  S: this,
2559
2581
  C: (f, a) => f(...a)
@@ -2567,7 +2589,7 @@ var InvitationsHandler = class {
2567
2589
  (0, import_log6.log)("invalid role", {
2568
2590
  ...err.context
2569
2591
  }, {
2570
- F: __dxlog_file11,
2592
+ F: __dxlog_file12,
2571
2593
  L: 144,
2572
2594
  S: this,
2573
2595
  C: (f, a) => f(...a)
@@ -2579,7 +2601,7 @@ var InvitationsHandler = class {
2579
2601
  (0, import_log6.log)("timeout", {
2580
2602
  err
2581
2603
  }, {
2582
- F: __dxlog_file11,
2604
+ F: __dxlog_file12,
2583
2605
  L: 149,
2584
2606
  S: this,
2585
2607
  C: (f, a) => f(...a)
@@ -2588,7 +2610,7 @@ var InvitationsHandler = class {
2588
2610
  } else {
2589
2611
  if (guardedState.error(extension, err)) {
2590
2612
  import_log6.log.error("failed", err, {
2591
- F: __dxlog_file11,
2613
+ F: __dxlog_file12,
2592
2614
  L: 153,
2593
2615
  S: this,
2594
2616
  C: (f, a) => f(...a)
@@ -2602,7 +2624,7 @@ var InvitationsHandler = class {
2602
2624
  if (invitation.lifetime && invitation.created) {
2603
2625
  if (invitation.created.getTime() + invitation.lifetime * 1e3 < Date.now()) {
2604
2626
  import_log6.log.warn("invitation has already expired", void 0, {
2605
- F: __dxlog_file11,
2627
+ F: __dxlog_file12,
2606
2628
  L: 164,
2607
2629
  S: this,
2608
2630
  C: (f, a) => f(...a)
@@ -2625,7 +2647,7 @@ var InvitationsHandler = class {
2625
2647
  const { timeout = import_client_protocol2.INVITATION_TIMEOUT } = invitation;
2626
2648
  if (deviceProfile) {
2627
2649
  (0, import_invariant6.invariant)(invitation.kind === import_services6.Invitation.Kind.DEVICE, "deviceProfile provided for non-device invitation", {
2628
- F: __dxlog_file11,
2650
+ F: __dxlog_file12,
2629
2651
  L: 197,
2630
2652
  S: this,
2631
2653
  A: [
@@ -2643,7 +2665,7 @@ var InvitationsHandler = class {
2643
2665
  invitationType: import_services6.Invitation.Type.DELEGATED,
2644
2666
  triedPeers: triedPeersIds.size
2645
2667
  }, {
2646
- F: __dxlog_file11,
2668
+ F: __dxlog_file12,
2647
2669
  L: 205,
2648
2670
  S: this,
2649
2671
  C: (f, a) => f(...a)
@@ -2670,7 +2692,7 @@ var InvitationsHandler = class {
2670
2692
  admitted,
2671
2693
  currentState: guardedState.current.state
2672
2694
  }, {
2673
- F: __dxlog_file11,
2695
+ F: __dxlog_file12,
2674
2696
  L: 233,
2675
2697
  S: this,
2676
2698
  C: (f, a) => f(...a)
@@ -2688,7 +2710,7 @@ var InvitationsHandler = class {
2688
2710
  import_log6.log.trace("dxos.sdk.invitations-handler.guest.onOpen", import_protocols5.trace.begin({
2689
2711
  id: traceId
2690
2712
  }), {
2691
- F: __dxlog_file11,
2713
+ F: __dxlog_file12,
2692
2714
  L: 245,
2693
2715
  S: this,
2694
2716
  C: (f, a) => f(...a)
@@ -2700,7 +2722,7 @@ var InvitationsHandler = class {
2700
2722
  (0, import_log6.log)("connected", {
2701
2723
  ...protocol.toJSON()
2702
2724
  }, {
2703
- F: __dxlog_file11,
2725
+ F: __dxlog_file12,
2704
2726
  L: 256,
2705
2727
  S: this,
2706
2728
  C: (f, a) => f(...a)
@@ -2709,7 +2731,7 @@ var InvitationsHandler = class {
2709
2731
  (0, import_log6.log)("introduce", {
2710
2732
  ...protocol.toJSON()
2711
2733
  }, {
2712
- F: __dxlog_file11,
2734
+ F: __dxlog_file12,
2713
2735
  L: 260,
2714
2736
  S: this,
2715
2737
  C: (f, a) => f(...a)
@@ -2722,7 +2744,7 @@ var InvitationsHandler = class {
2722
2744
  ...protocol.toJSON(),
2723
2745
  response: introductionResponse
2724
2746
  }, {
2725
- F: __dxlog_file11,
2747
+ F: __dxlog_file12,
2726
2748
  L: 265,
2727
2749
  S: this,
2728
2750
  C: (f, a) => f(...a)
@@ -2743,7 +2765,7 @@ var InvitationsHandler = class {
2743
2765
  (0, import_log6.log)("request admission", {
2744
2766
  ...protocol.toJSON()
2745
2767
  }, {
2746
- F: __dxlog_file11,
2768
+ F: __dxlog_file12,
2747
2769
  L: 291,
2748
2770
  S: this,
2749
2771
  C: (f, a) => f(...a)
@@ -2755,7 +2777,7 @@ var InvitationsHandler = class {
2755
2777
  (0, import_log6.log)("admitted by host", {
2756
2778
  ...protocol.toJSON()
2757
2779
  }, {
2758
- F: __dxlog_file11,
2780
+ F: __dxlog_file12,
2759
2781
  L: 302,
2760
2782
  S: this,
2761
2783
  C: (f, a) => f(...a)
@@ -2768,7 +2790,7 @@ var InvitationsHandler = class {
2768
2790
  import_log6.log.trace("dxos.sdk.invitations-handler.guest.onOpen", import_protocols5.trace.end({
2769
2791
  id: traceId
2770
2792
  }), {
2771
- F: __dxlog_file11,
2793
+ F: __dxlog_file12,
2772
2794
  L: 308,
2773
2795
  S: this,
2774
2796
  C: (f, a) => f(...a)
@@ -2778,7 +2800,7 @@ var InvitationsHandler = class {
2778
2800
  (0, import_log6.log)("timeout", {
2779
2801
  ...protocol.toJSON()
2780
2802
  }, {
2781
- F: __dxlog_file11,
2803
+ F: __dxlog_file12,
2782
2804
  L: 311,
2783
2805
  S: this,
2784
2806
  C: (f, a) => f(...a)
@@ -2786,7 +2808,7 @@ var InvitationsHandler = class {
2786
2808
  guardedState.set(extension, import_services6.Invitation.State.TIMEOUT);
2787
2809
  } else {
2788
2810
  (0, import_log6.log)("auth failed", err, {
2789
- F: __dxlog_file11,
2811
+ F: __dxlog_file12,
2790
2812
  L: 314,
2791
2813
  S: this,
2792
2814
  C: (f, a) => f(...a)
@@ -2798,7 +2820,7 @@ var InvitationsHandler = class {
2798
2820
  id: traceId,
2799
2821
  error: err
2800
2822
  }), {
2801
- F: __dxlog_file11,
2823
+ F: __dxlog_file12,
2802
2824
  L: 318,
2803
2825
  S: this,
2804
2826
  C: (f, a) => f(...a)
@@ -2814,7 +2836,7 @@ var InvitationsHandler = class {
2814
2836
  (0, import_log6.log)("timeout", {
2815
2837
  ...protocol.toJSON()
2816
2838
  }, {
2817
- F: __dxlog_file11,
2839
+ F: __dxlog_file12,
2818
2840
  L: 327,
2819
2841
  S: this,
2820
2842
  C: (f, a) => f(...a)
@@ -2822,7 +2844,7 @@ var InvitationsHandler = class {
2822
2844
  guardedState.set(extension, import_services6.Invitation.State.TIMEOUT);
2823
2845
  } else {
2824
2846
  (0, import_log6.log)("auth failed", err, {
2825
- F: __dxlog_file11,
2847
+ F: __dxlog_file12,
2826
2848
  L: 330,
2827
2849
  S: this,
2828
2850
  C: (f, a) => f(...a)
@@ -2840,7 +2862,7 @@ var InvitationsHandler = class {
2840
2862
  await ctx.dispose();
2841
2863
  } else {
2842
2864
  (0, import_invariant6.invariant)(invitation.swarmKey, void 0, {
2843
- F: __dxlog_file11,
2865
+ F: __dxlog_file12,
2844
2866
  L: 345,
2845
2867
  S: this,
2846
2868
  A: [
@@ -2934,16 +2956,29 @@ var InvitationsHandler = class {
2934
2956
  };
2935
2957
  }
2936
2958
  _logStateUpdate(invitation, actor, newState) {
2937
- (0, import_log6.log)("invitation state update", {
2938
- actor: actor?.constructor.name,
2939
- newState: stateToString(newState),
2940
- oldState: stateToString(invitation.state)
2941
- }, {
2942
- F: __dxlog_file11,
2943
- L: 438,
2944
- S: this,
2945
- C: (f, a) => f(...a)
2946
- });
2959
+ if (this._isNotTerminal(newState)) {
2960
+ (0, import_log6.log)("invitation state update", {
2961
+ actor: actor?.constructor.name,
2962
+ newState: stateToString(newState),
2963
+ oldState: stateToString(invitation.state)
2964
+ }, {
2965
+ F: __dxlog_file12,
2966
+ L: 439,
2967
+ S: this,
2968
+ C: (f, a) => f(...a)
2969
+ });
2970
+ } else {
2971
+ import_log6.log.info("invitation state update", {
2972
+ actor: actor?.constructor.name,
2973
+ newState: stateToString(newState),
2974
+ oldState: stateToString(invitation.state)
2975
+ }, {
2976
+ F: __dxlog_file12,
2977
+ L: 445,
2978
+ S: this,
2979
+ C: (f, a) => f(...a)
2980
+ });
2981
+ }
2947
2982
  }
2948
2983
  _isNotTerminal(currentState) {
2949
2984
  return ![
@@ -2957,16 +2992,16 @@ var InvitationsHandler = class {
2957
2992
  async _handleGuestOtpAuth(extension, setState, authenticated, options) {
2958
2993
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
2959
2994
  (0, import_log6.log)("guest waiting for authentication code...", void 0, {
2960
- F: __dxlog_file11,
2961
- L: 462,
2995
+ F: __dxlog_file12,
2996
+ L: 470,
2962
2997
  S: this,
2963
2998
  C: (f, a) => f(...a)
2964
2999
  });
2965
3000
  setState(import_services6.Invitation.State.READY_FOR_AUTHENTICATION);
2966
3001
  const authCode = await authenticated.wait(options);
2967
3002
  (0, import_log6.log)("sending authentication request", void 0, {
2968
- F: __dxlog_file11,
2969
- L: 466,
3003
+ F: __dxlog_file12,
3004
+ L: 474,
2970
3005
  S: this,
2971
3006
  C: (f, a) => f(...a)
2972
3007
  });
@@ -2984,8 +3019,8 @@ var InvitationsHandler = class {
2984
3019
  (0, import_log6.log)("retrying invalid code", {
2985
3020
  attempt
2986
3021
  }, {
2987
- F: __dxlog_file11,
2988
- L: 477,
3022
+ F: __dxlog_file12,
3023
+ L: 485,
2989
3024
  S: this,
2990
3025
  C: (f, a) => f(...a)
2991
3026
  });
@@ -3002,8 +3037,8 @@ var InvitationsHandler = class {
3002
3037
  throw new Error("challenge missing in the introduction");
3003
3038
  }
3004
3039
  (0, import_log6.log)("sending authentication request", void 0, {
3005
- F: __dxlog_file11,
3006
- L: 496,
3040
+ F: __dxlog_file12,
3041
+ L: 504,
3007
3042
  S: this,
3008
3043
  C: (f, a) => f(...a)
3009
3044
  });
@@ -3117,7 +3152,7 @@ var InvitationsServiceImpl = class {
3117
3152
  });
3118
3153
  }
3119
3154
  };
3120
- var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
3155
+ var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
3121
3156
  var SpaceInvitationProtocol = class {
3122
3157
  constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
3123
3158
  this._spaceManager = _spaceManager;
@@ -3152,7 +3187,7 @@ var SpaceInvitationProtocol = class {
3152
3187
  }
3153
3188
  async admit(invitation, request, guestProfile) {
3154
3189
  (0, import_invariant10.invariant)(this._spaceKey, void 0, {
3155
- F: __dxlog_file12,
3190
+ F: __dxlog_file13,
3156
3191
  L: 76,
3157
3192
  S: this,
3158
3193
  A: [
@@ -3162,7 +3197,7 @@ var SpaceInvitationProtocol = class {
3162
3197
  });
3163
3198
  const space = this._spaceManager.spaces.get(this._spaceKey);
3164
3199
  (0, import_invariant10.invariant)(space, void 0, {
3165
- F: __dxlog_file12,
3200
+ F: __dxlog_file13,
3166
3201
  L: 78,
3167
3202
  S: this,
3168
3203
  A: [
@@ -3171,7 +3206,7 @@ var SpaceInvitationProtocol = class {
3171
3206
  ]
3172
3207
  });
3173
3208
  (0, import_invariant10.invariant)(request.space, void 0, {
3174
- F: __dxlog_file12,
3209
+ F: __dxlog_file13,
3175
3210
  L: 80,
3176
3211
  S: this,
3177
3212
  A: [
@@ -3187,14 +3222,14 @@ var SpaceInvitationProtocol = class {
3187
3222
  host: this._signingContext.deviceKey,
3188
3223
  guest: deviceKey
3189
3224
  }, {
3190
- F: __dxlog_file12,
3225
+ F: __dxlog_file13,
3191
3226
  L: 87,
3192
3227
  S: this,
3193
3228
  C: (f, a) => f(...a)
3194
3229
  });
3195
3230
  const credentials = await (0, import_credentials9.createAdmissionCredentials)(this._signingContext.credentialSigner, identityKey, space.key, space.inner.genesisFeedKey, invitation.role ?? import_credentials10.SpaceMember.Role.ADMIN, space.inner.spaceState.membershipChainHeads, guestProfile, invitation.delegationCredentialId);
3196
3231
  (0, import_invariant10.invariant)(credentials[0].credential, void 0, {
3197
- F: __dxlog_file12,
3232
+ F: __dxlog_file13,
3198
3233
  L: 101,
3199
3234
  S: this,
3200
3235
  A: [
@@ -3204,7 +3239,7 @@ var SpaceInvitationProtocol = class {
3204
3239
  });
3205
3240
  const spaceMemberCredential = credentials[0].credential.credential;
3206
3241
  (0, import_invariant10.invariant)((0, import_credentials9.getCredentialAssertion)(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
3207
- F: __dxlog_file12,
3242
+ F: __dxlog_file13,
3208
3243
  L: 103,
3209
3244
  S: this,
3210
3245
  A: [
@@ -3222,7 +3257,7 @@ var SpaceInvitationProtocol = class {
3222
3257
  }
3223
3258
  async delegate(invitation) {
3224
3259
  (0, import_invariant10.invariant)(this._spaceKey, void 0, {
3225
- F: __dxlog_file12,
3260
+ F: __dxlog_file13,
3226
3261
  L: 116,
3227
3262
  S: this,
3228
3263
  A: [
@@ -3232,7 +3267,7 @@ var SpaceInvitationProtocol = class {
3232
3267
  });
3233
3268
  const space = this._spaceManager.spaces.get(this._spaceKey);
3234
3269
  (0, import_invariant10.invariant)(space, void 0, {
3235
- F: __dxlog_file12,
3270
+ F: __dxlog_file13,
3236
3271
  L: 118,
3237
3272
  S: this,
3238
3273
  A: [
@@ -3242,7 +3277,7 @@ var SpaceInvitationProtocol = class {
3242
3277
  });
3243
3278
  if (invitation.authMethod === import_services10.Invitation.AuthMethod.KNOWN_PUBLIC_KEY) {
3244
3279
  (0, import_invariant10.invariant)(invitation.guestKeypair?.publicKey, void 0, {
3245
- F: __dxlog_file12,
3280
+ F: __dxlog_file13,
3246
3281
  L: 120,
3247
3282
  S: this,
3248
3283
  A: [
@@ -3255,7 +3290,7 @@ var SpaceInvitationProtocol = class {
3255
3290
  host: this._signingContext.deviceKey,
3256
3291
  id: invitation.invitationId
3257
3292
  }, {
3258
- F: __dxlog_file12,
3293
+ F: __dxlog_file13,
3259
3294
  L: 123,
3260
3295
  S: this,
3261
3296
  C: (f, a) => f(...a)
@@ -3270,7 +3305,7 @@ var SpaceInvitationProtocol = class {
3270
3305
  guestKey: invitation.authMethod === import_services10.Invitation.AuthMethod.KNOWN_PUBLIC_KEY ? invitation.guestKeypair.publicKey : void 0
3271
3306
  });
3272
3307
  (0, import_invariant10.invariant)(credential.credential, void 0, {
3273
- F: __dxlog_file12,
3308
+ F: __dxlog_file13,
3274
3309
  L: 143,
3275
3310
  S: this,
3276
3311
  A: [
@@ -3285,7 +3320,7 @@ var SpaceInvitationProtocol = class {
3285
3320
  }
3286
3321
  async cancelDelegation(invitation) {
3287
3322
  (0, import_invariant10.invariant)(this._spaceKey, void 0, {
3288
- F: __dxlog_file12,
3323
+ F: __dxlog_file13,
3289
3324
  L: 149,
3290
3325
  S: this,
3291
3326
  A: [
@@ -3294,7 +3329,7 @@ var SpaceInvitationProtocol = class {
3294
3329
  ]
3295
3330
  });
3296
3331
  (0, import_invariant10.invariant)(invitation.type === import_services10.Invitation.Type.DELEGATED && invitation.delegationCredentialId, void 0, {
3297
- F: __dxlog_file12,
3332
+ F: __dxlog_file13,
3298
3333
  L: 150,
3299
3334
  S: this,
3300
3335
  A: [
@@ -3304,7 +3339,7 @@ var SpaceInvitationProtocol = class {
3304
3339
  });
3305
3340
  const space = this._spaceManager.spaces.get(this._spaceKey);
3306
3341
  (0, import_invariant10.invariant)(space, void 0, {
3307
- F: __dxlog_file12,
3342
+ F: __dxlog_file13,
3308
3343
  L: 152,
3309
3344
  S: this,
3310
3345
  A: [
@@ -3316,14 +3351,14 @@ var SpaceInvitationProtocol = class {
3316
3351
  host: this._signingContext.deviceKey,
3317
3352
  id: invitation.invitationId
3318
3353
  }, {
3319
- F: __dxlog_file12,
3354
+ F: __dxlog_file13,
3320
3355
  L: 154,
3321
3356
  S: this,
3322
3357
  C: (f, a) => f(...a)
3323
3358
  });
3324
3359
  const credential = await (0, import_credentials9.createCancelDelegatedSpaceInvitationCredential)(this._signingContext.credentialSigner, space.key, invitation.delegationCredentialId);
3325
3360
  (0, import_invariant10.invariant)(credential.credential, void 0, {
3326
- F: __dxlog_file12,
3361
+ F: __dxlog_file13,
3327
3362
  L: 161,
3328
3363
  S: this,
3329
3364
  A: [
@@ -3362,7 +3397,7 @@ var SpaceInvitationProtocol = class {
3362
3397
  }
3363
3398
  async accept(response) {
3364
3399
  (0, import_invariant10.invariant)(response.space, void 0, {
3365
- F: __dxlog_file12,
3400
+ F: __dxlog_file13,
3366
3401
  L: 196,
3367
3402
  S: this,
3368
3403
  A: [
@@ -3373,7 +3408,7 @@ var SpaceInvitationProtocol = class {
3373
3408
  const { credential, controlTimeframe, dataTimeframe } = response.space;
3374
3409
  const assertion = (0, import_credentials9.getCredentialAssertion)(credential);
3375
3410
  (0, import_invariant10.invariant)(assertion["@type"] === "dxos.halo.credentials.SpaceMember", "Invalid credential", {
3376
- F: __dxlog_file12,
3411
+ F: __dxlog_file13,
3377
3412
  L: 199,
3378
3413
  S: this,
3379
3414
  A: [
@@ -3382,7 +3417,7 @@ var SpaceInvitationProtocol = class {
3382
3417
  ]
3383
3418
  });
3384
3419
  (0, import_invariant10.invariant)(credential.subject.id.equals(this._signingContext.identityKey), void 0, {
3385
- F: __dxlog_file12,
3420
+ F: __dxlog_file13,
3386
3421
  L: 200,
3387
3422
  S: this,
3388
3423
  A: [
@@ -3405,7 +3440,7 @@ var SpaceInvitationProtocol = class {
3405
3440
  };
3406
3441
  }
3407
3442
  };
3408
- var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
3443
+ var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
3409
3444
  var InvitationsManager = class {
3410
3445
  constructor(_invitationsHandler, _getHandler, _metadataStore) {
3411
3446
  this._invitationsHandler = _invitationsHandler;
@@ -3448,7 +3483,7 @@ var InvitationsManager = class {
3448
3483
  await this._persistIfRequired(handler, stream, invitation);
3449
3484
  } catch (err) {
3450
3485
  import_log11.log.catch(err, void 0, {
3451
- F: __dxlog_file13,
3486
+ F: __dxlog_file14,
3452
3487
  L: 82,
3453
3488
  S: this,
3454
3489
  C: (f, a) => f(...a)
@@ -3471,7 +3506,7 @@ var InvitationsManager = class {
3471
3506
  const freshInvitations = persistentInvitations.filter((invitation) => !(0, import_echo_pipeline.hasInvitationExpired)(invitation));
3472
3507
  const loadTasks = freshInvitations.map((persistentInvitation) => {
3473
3508
  (0, import_invariant11.invariant)(!this._createInvitations.get(persistentInvitation.invitationId), "invitation already exists", {
3474
- F: __dxlog_file13,
3509
+ F: __dxlog_file14,
3475
3510
  L: 103,
3476
3511
  S: this,
3477
3512
  A: [
@@ -3490,7 +3525,7 @@ var InvitationsManager = class {
3490
3525
  };
3491
3526
  } catch (err) {
3492
3527
  import_log11.log.catch(err, void 0, {
3493
- F: __dxlog_file13,
3528
+ F: __dxlog_file14,
3494
3529
  L: 110,
3495
3530
  S: this,
3496
3531
  C: (f, a) => f(...a)
@@ -3522,13 +3557,13 @@ var InvitationsManager = class {
3522
3557
  }
3523
3558
  async authenticate({ invitationId, authCode }) {
3524
3559
  (0, import_log11.log)("authenticating...", void 0, {
3525
- F: __dxlog_file13,
3560
+ F: __dxlog_file14,
3526
3561
  L: 140,
3527
3562
  S: this,
3528
3563
  C: (f, a) => f(...a)
3529
3564
  });
3530
3565
  (0, import_invariant11.invariant)(invitationId, void 0, {
3531
- F: __dxlog_file13,
3566
+ F: __dxlog_file14,
3532
3567
  L: 141,
3533
3568
  S: this,
3534
3569
  A: [
@@ -3541,7 +3576,7 @@ var InvitationsManager = class {
3541
3576
  import_log11.log.warn("invalid invitation", {
3542
3577
  invitationId
3543
3578
  }, {
3544
- F: __dxlog_file13,
3579
+ F: __dxlog_file14,
3545
3580
  L: 144,
3546
3581
  S: this,
3547
3582
  C: (f, a) => f(...a)
@@ -3554,13 +3589,13 @@ var InvitationsManager = class {
3554
3589
  (0, import_log11.log)("cancelInvitation...", {
3555
3590
  invitationId
3556
3591
  }, {
3557
- F: __dxlog_file13,
3592
+ F: __dxlog_file14,
3558
3593
  L: 151,
3559
3594
  S: this,
3560
3595
  C: (f, a) => f(...a)
3561
3596
  });
3562
3597
  (0, import_invariant11.invariant)(invitationId, void 0, {
3563
- F: __dxlog_file13,
3598
+ F: __dxlog_file14,
3564
3599
  L: 152,
3565
3600
  S: this,
3566
3601
  A: [
@@ -3634,12 +3669,15 @@ var InvitationsManager = class {
3634
3669
  stream.error(err);
3635
3670
  void ctx.dispose();
3636
3671
  }
3672
+ }, {
3673
+ F: __dxlog_file14,
3674
+ L: 234
3637
3675
  });
3638
3676
  ctx.onDispose(() => {
3639
3677
  (0, import_log11.log)("complete", {
3640
3678
  ...handler.toJSON()
3641
3679
  }, {
3642
- F: __dxlog_file13,
3680
+ F: __dxlog_file14,
3643
3681
  L: 241,
3644
3682
  S: this,
3645
3683
  C: (f, a) => f(...a)
@@ -3672,7 +3710,7 @@ var InvitationsManager = class {
3672
3710
  (0, import_log11.log)("timeout", {
3673
3711
  ...handler.toJSON()
3674
3712
  }, {
3675
- F: __dxlog_file13,
3713
+ F: __dxlog_file14,
3676
3714
  L: 261,
3677
3715
  S: this,
3678
3716
  C: (f, a) => f(...a)
@@ -3683,7 +3721,7 @@ var InvitationsManager = class {
3683
3721
  });
3684
3722
  } else {
3685
3723
  import_log11.log.warn("auth failed", err, {
3686
- F: __dxlog_file13,
3724
+ F: __dxlog_file14,
3687
3725
  L: 264,
3688
3726
  S: this,
3689
3727
  C: (f, a) => f(...a)
@@ -3695,12 +3733,15 @@ var InvitationsManager = class {
3695
3733
  }
3696
3734
  void ctx.dispose();
3697
3735
  }
3736
+ }, {
3737
+ F: __dxlog_file14,
3738
+ L: 258
3698
3739
  });
3699
3740
  ctx.onDispose(() => {
3700
3741
  (0, import_log11.log)("complete", {
3701
3742
  ...handler.toJSON()
3702
3743
  }, {
3703
- F: __dxlog_file13,
3744
+ F: __dxlog_file14,
3704
3745
  L: 271,
3705
3746
  S: this,
3706
3747
  C: (f, a) => f(...a)
@@ -3745,7 +3786,7 @@ var InvitationsManager = class {
3745
3786
  await this._metadataStore.removeInvitation(invitation.invitationId);
3746
3787
  } catch (err) {
3747
3788
  import_log11.log.catch(err, void 0, {
3748
- F: __dxlog_file13,
3789
+ F: __dxlog_file14,
3749
3790
  L: 307,
3750
3791
  S: this,
3751
3792
  C: (f, a) => f(...a)
@@ -3798,7 +3839,7 @@ var AutomergeSpaceState = class extends import_context11.Resource {
3798
3839
  await this.onNewEpoch.waitForCondition(() => !!this.lastEpoch);
3799
3840
  }
3800
3841
  };
3801
- var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
3842
+ var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
3802
3843
  var runEpochMigration = async (ctx, context) => {
3803
3844
  switch (context.migration) {
3804
3845
  case import_services13.CreateEpochRequest.Migration.INIT_AUTOMERGE: {
@@ -3822,7 +3863,7 @@ var runEpochMigration = async (ctx, context) => {
3822
3863
  }
3823
3864
  case import_services13.CreateEpochRequest.Migration.FRAGMENT_AUTOMERGE_ROOT: {
3824
3865
  import_log13.log.info("Fragmenting", void 0, {
3825
- F: __dxlog_file14,
3866
+ F: __dxlog_file15,
3826
3867
  L: 63,
3827
3868
  S: void 0,
3828
3869
  C: (f, a) => f(...a)
@@ -3834,7 +3875,7 @@ var runEpochMigration = async (ctx, context) => {
3834
3875
  const properties = (0, import_echo_db.findInlineObjectOfType)(rootHandle.docSync(), import_echo_schema.TYPE_PROPERTIES);
3835
3876
  const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
3836
3877
  (0, import_invariant13.invariant)(properties, "Properties not found", {
3837
- F: __dxlog_file14,
3878
+ F: __dxlog_file15,
3838
3879
  L: 73,
3839
3880
  S: void 0,
3840
3881
  A: [
@@ -3850,7 +3891,7 @@ var runEpochMigration = async (ctx, context) => {
3850
3891
  };
3851
3892
  const newRoot = context.repo.create(newSpaceDoc);
3852
3893
  (0, import_invariant13.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
3853
- F: __dxlog_file14,
3894
+ F: __dxlog_file15,
3854
3895
  L: 78,
3855
3896
  S: void 0,
3856
3897
  A: [
@@ -3881,7 +3922,7 @@ var runEpochMigration = async (ctx, context) => {
3881
3922
  const rootHandle = context.repo.find(currentRootUrl);
3882
3923
  await (0, import_context12.cancelWithContext)(ctx, (0, import_async15.asyncTimeout)(rootHandle.whenReady(), 1e4));
3883
3924
  (0, import_invariant13.invariant)(rootHandle.docSync(), "Root doc not found", {
3884
- F: __dxlog_file14,
3925
+ F: __dxlog_file15,
3885
3926
  L: 100,
3886
3927
  S: void 0,
3887
3928
  A: [
@@ -3894,7 +3935,7 @@ var runEpochMigration = async (ctx, context) => {
3894
3935
  const handle = context.repo.find(url);
3895
3936
  await (0, import_context12.cancelWithContext)(ctx, (0, import_async15.asyncTimeout)(handle.whenReady(), 1e4));
3896
3937
  (0, import_invariant13.invariant)(handle.docSync(), "Doc not found", {
3897
- F: __dxlog_file14,
3938
+ F: __dxlog_file15,
3898
3939
  L: 107,
3899
3940
  S: void 0,
3900
3941
  A: [
@@ -3916,7 +3957,7 @@ var runEpochMigration = async (ctx, context) => {
3916
3957
  }
3917
3958
  case import_services13.CreateEpochRequest.Migration.REPLACE_AUTOMERGE_ROOT: {
3918
3959
  (0, import_invariant13.invariant)(context.newAutomergeRoot, void 0, {
3919
- F: __dxlog_file14,
3960
+ F: __dxlog_file15,
3920
3961
  L: 124,
3921
3962
  S: void 0,
3922
3963
  A: [
@@ -3932,14 +3973,17 @@ var runEpochMigration = async (ctx, context) => {
3932
3973
  }
3933
3974
  return {};
3934
3975
  };
3935
- var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
3976
+ var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
3936
3977
  var DEFAULT_RETRY_TIMEOUT = 1e3;
3937
3978
  var DEFAULT_SUCCESS_DELAY = 1e3;
3938
3979
  var DEFAULT_NOTARIZE_TIMEOUT = 1e4;
3939
3980
  var WRITER_NOT_SET_ERROR_CODE = "WRITER_NOT_SET";
3940
3981
  var NotarizationPlugin = class {
3941
3982
  constructor() {
3942
- this._ctx = new import_context13.Context();
3983
+ this._ctx = new import_context13.Context(void 0, {
3984
+ F: __dxlog_file16,
3985
+ L: 62
3986
+ });
3943
3987
  this._extensionOpened = new import_async16.Event();
3944
3988
  this._extensions = /* @__PURE__ */ new Set();
3945
3989
  this._processedCredentials = new import_util9.ComplexSet(import_keys11.PublicKey.hash);
@@ -3960,13 +4004,13 @@ var NotarizationPlugin = class {
3960
4004
  (0, import_log14.log)("notarize", {
3961
4005
  credentials
3962
4006
  }, {
3963
- F: __dxlog_file15,
4007
+ F: __dxlog_file16,
3964
4008
  L: 90,
3965
4009
  S: this,
3966
4010
  C: (f, a) => f(...a)
3967
4011
  });
3968
4012
  (0, import_invariant14.invariant)(credentials.every((credential) => credential.id), "Credentials must have an id", {
3969
- F: __dxlog_file15,
4013
+ F: __dxlog_file16,
3970
4014
  L: 91,
3971
4015
  S: this,
3972
4016
  A: [
@@ -3980,7 +4024,7 @@ var NotarizationPlugin = class {
3980
4024
  import_log14.log.warn("Notarization error", {
3981
4025
  err
3982
4026
  }, {
3983
- F: __dxlog_file15,
4027
+ F: __dxlog_file16,
3984
4028
  L: 99,
3985
4029
  S: this,
3986
4030
  C: (f, a) => f(...a)
@@ -3996,7 +4040,7 @@ var NotarizationPlugin = class {
3996
4040
  timeout,
3997
4041
  peers: Array.from(this._extensions).map((extension) => extension.remotePeerId)
3998
4042
  }, {
3999
- F: __dxlog_file15,
4043
+ F: __dxlog_file16,
4000
4044
  L: 111,
4001
4045
  S: this,
4002
4046
  C: (f, a) => f(...a)
@@ -4019,7 +4063,7 @@ var NotarizationPlugin = class {
4019
4063
  import_log14.log.info("Exhausted all peers to notarize with", {
4020
4064
  retryIn: retryTimeout
4021
4065
  }, {
4022
- F: __dxlog_file15,
4066
+ F: __dxlog_file16,
4023
4067
  L: 136,
4024
4068
  S: this,
4025
4069
  C: (f, a) => f(...a)
@@ -4033,7 +4077,7 @@ var NotarizationPlugin = class {
4033
4077
  peer: peer.localPeerId,
4034
4078
  credentialId: credentials.map((credential) => credential.id)
4035
4079
  }, {
4036
- F: __dxlog_file15,
4080
+ F: __dxlog_file16,
4037
4081
  L: 143,
4038
4082
  S: this,
4039
4083
  C: (f, a) => f(...a)
@@ -4042,7 +4086,7 @@ var NotarizationPlugin = class {
4042
4086
  credentials: credentials.filter((credential) => !this._processedCredentials.has(credential.id))
4043
4087
  });
4044
4088
  (0, import_log14.log)("success", void 0, {
4045
- F: __dxlog_file15,
4089
+ F: __dxlog_file16,
4046
4090
  L: 147,
4047
4091
  S: this,
4048
4092
  C: (f, a) => f(...a)
@@ -4051,7 +4095,7 @@ var NotarizationPlugin = class {
4051
4095
  } catch (err) {
4052
4096
  if (!ctx.disposed && !err.message.includes(WRITER_NOT_SET_ERROR_CODE)) {
4053
4097
  import_log14.log.info("error notarizing (recoverable)", err, {
4054
- F: __dxlog_file15,
4098
+ F: __dxlog_file16,
4055
4099
  L: 151,
4056
4100
  S: this,
4057
4101
  C: (f, a) => f(...a)
@@ -4069,7 +4113,7 @@ var NotarizationPlugin = class {
4069
4113
  errors.wait()
4070
4114
  ]);
4071
4115
  (0, import_log14.log)("done", void 0, {
4072
- F: __dxlog_file15,
4116
+ F: __dxlog_file16,
4073
4117
  L: 162,
4074
4118
  S: this,
4075
4119
  C: (f, a) => f(...a)
@@ -4091,7 +4135,7 @@ var NotarizationPlugin = class {
4091
4135
  }
4092
4136
  setWriter(writer) {
4093
4137
  (0, import_invariant14.invariant)(!this._writer, "Writer already set.", {
4094
- F: __dxlog_file15,
4138
+ F: __dxlog_file16,
4095
4139
  L: 181,
4096
4140
  S: this,
4097
4141
  A: [
@@ -4116,7 +4160,7 @@ var NotarizationPlugin = class {
4116
4160
  }
4117
4161
  for (const credential of request.credentials ?? []) {
4118
4162
  (0, import_invariant14.invariant)(credential.id, "Credential must have an id", {
4119
- F: __dxlog_file15,
4163
+ F: __dxlog_file16,
4120
4164
  L: 200,
4121
4165
  S: this,
4122
4166
  A: [
@@ -4136,7 +4180,7 @@ var NotarizationPlugin = class {
4136
4180
  (0, import_log14.log)("extension opened", {
4137
4181
  peer: extension.localPeerId
4138
4182
  }, {
4139
- F: __dxlog_file15,
4183
+ F: __dxlog_file16,
4140
4184
  L: 211,
4141
4185
  S: this,
4142
4186
  C: (f, a) => f(...a)
@@ -4148,7 +4192,7 @@ var NotarizationPlugin = class {
4148
4192
  (0, import_log14.log)("extension closed", {
4149
4193
  peer: extension.localPeerId
4150
4194
  }, {
4151
- F: __dxlog_file15,
4195
+ F: __dxlog_file16,
4152
4196
  L: 216,
4153
4197
  S: this,
4154
4198
  C: (f, a) => f(...a)
@@ -4263,10 +4307,13 @@ function _using_ctx() {
4263
4307
  }
4264
4308
  };
4265
4309
  }
4266
- var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
4310
+ var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
4267
4311
  var DataSpace = class {
4268
4312
  constructor(params) {
4269
- this._ctx = new import_context10.Context();
4313
+ this._ctx = new import_context10.Context(void 0, {
4314
+ F: __dxlog_file17,
4315
+ L: 84
4316
+ });
4270
4317
  this._notarizationPlugin = new NotarizationPlugin();
4271
4318
  this._cache = void 0;
4272
4319
  this._automergeSpaceState = new AutomergeSpaceState((rootUrl) => this._onNewAutomergeRoot(rootUrl));
@@ -4296,7 +4343,7 @@ var DataSpace = class {
4296
4343
  (0, import_log12.log)("new state", {
4297
4344
  state: import_services12.SpaceState[this._state]
4298
4345
  }, {
4299
- F: __dxlog_file16,
4346
+ F: __dxlog_file17,
4300
4347
  L: 146,
4301
4348
  S: this,
4302
4349
  C: (f, a) => f(...a)
@@ -4351,12 +4398,15 @@ var DataSpace = class {
4351
4398
  await this._inner.spaceState.addCredentialProcessor(this._notarizationPlugin);
4352
4399
  await this._automergeSpaceState.open();
4353
4400
  await this._inner.spaceState.addCredentialProcessor(this._automergeSpaceState);
4354
- await this._inner.open(new import_context10.Context());
4401
+ await this._inner.open(new import_context10.Context(void 0, {
4402
+ F: __dxlog_file17,
4403
+ L: 215
4404
+ }));
4355
4405
  this._state = import_services12.SpaceState.CONTROL_ONLY;
4356
4406
  (0, import_log12.log)("new state", {
4357
4407
  state: import_services12.SpaceState[this._state]
4358
4408
  }, {
4359
- F: __dxlog_file16,
4409
+ F: __dxlog_file17,
4360
4410
  L: 217,
4361
4411
  S: this,
4362
4412
  C: (f, a) => f(...a)
@@ -4374,13 +4424,16 @@ var DataSpace = class {
4374
4424
  (0, import_log12.log)("new state", {
4375
4425
  state: import_services12.SpaceState[this._state]
4376
4426
  }, {
4377
- F: __dxlog_file16,
4427
+ F: __dxlog_file17,
4378
4428
  L: 231,
4379
4429
  S: this,
4380
4430
  C: (f, a) => f(...a)
4381
4431
  });
4382
4432
  await this._ctx.dispose();
4383
- this._ctx = new import_context10.Context();
4433
+ this._ctx = new import_context10.Context(void 0, {
4434
+ F: __dxlog_file17,
4435
+ L: 233
4436
+ });
4384
4437
  await this.authVerifier.close();
4385
4438
  await this._inner.close();
4386
4439
  await this._inner.spaceState.removeCredentialProcessor(this._automergeSpaceState);
@@ -4407,7 +4460,7 @@ var DataSpace = class {
4407
4460
  } catch (err) {
4408
4461
  if (err instanceof import_protocols9.CancelledError || err instanceof import_context10.ContextDisposedError) {
4409
4462
  (0, import_log12.log)("data pipeline initialization cancelled", err, {
4410
- F: __dxlog_file16,
4463
+ F: __dxlog_file17,
4411
4464
  L: 265,
4412
4465
  S: this,
4413
4466
  C: (f, a) => f(...a)
@@ -4415,7 +4468,7 @@ var DataSpace = class {
4415
4468
  return;
4416
4469
  }
4417
4470
  import_log12.log.error("Error initializing data pipeline", err, {
4418
- F: __dxlog_file16,
4471
+ F: __dxlog_file17,
4419
4472
  L: 269,
4420
4473
  S: this,
4421
4474
  C: (f, a) => f(...a)
@@ -4424,7 +4477,7 @@ var DataSpace = class {
4424
4477
  (0, import_log12.log)("new state", {
4425
4478
  state: import_services12.SpaceState[this._state]
4426
4479
  }, {
4427
- F: __dxlog_file16,
4480
+ F: __dxlog_file17,
4428
4481
  L: 271,
4429
4482
  S: this,
4430
4483
  C: (f, a) => f(...a)
@@ -4444,7 +4497,7 @@ var DataSpace = class {
4444
4497
  (0, import_log12.log)("new state", {
4445
4498
  state: import_services12.SpaceState[this._state]
4446
4499
  }, {
4447
- F: __dxlog_file16,
4500
+ F: __dxlog_file17,
4448
4501
  L: 287,
4449
4502
  S: this,
4450
4503
  C: (f, a) => f(...a)
@@ -4461,7 +4514,7 @@ var DataSpace = class {
4461
4514
  (0, import_log12.log)("new state", {
4462
4515
  state: import_services12.SpaceState[this._state]
4463
4516
  }, {
4464
- F: __dxlog_file16,
4517
+ F: __dxlog_file17,
4465
4518
  L: 306,
4466
4519
  S: this,
4467
4520
  C: (f, a) => f(...a)
@@ -4477,7 +4530,7 @@ var DataSpace = class {
4477
4530
  this.metrics.controlPipelineReady = /* @__PURE__ */ new Date();
4478
4531
  await this._createWritableFeeds();
4479
4532
  (0, import_log12.log)("writable feeds created", void 0, {
4480
- F: __dxlog_file16,
4533
+ F: __dxlog_file17,
4481
4534
  L: 322,
4482
4535
  S: this,
4483
4536
  C: (f, a) => f(...a)
@@ -4540,7 +4593,7 @@ var DataSpace = class {
4540
4593
  space: this.key,
4541
4594
  rootUrl
4542
4595
  }, {
4543
- F: __dxlog_file16,
4596
+ F: __dxlog_file17,
4544
4597
  L: 388,
4545
4598
  S: this,
4546
4599
  C: (f, a) => f(...a)
@@ -4594,7 +4647,7 @@ var DataSpace = class {
4594
4647
  rootUrl,
4595
4648
  err
4596
4649
  }, {
4597
- F: __dxlog_file16,
4650
+ F: __dxlog_file17,
4598
4651
  L: 431,
4599
4652
  S: this,
4600
4653
  C: (f, a) => f(...a)
@@ -4680,7 +4733,7 @@ var DataSpace = class {
4680
4733
  (0, import_log12.log)("new state", {
4681
4734
  state: import_services12.SpaceState[this._state]
4682
4735
  }, {
4683
- F: __dxlog_file16,
4736
+ F: __dxlog_file17,
4684
4737
  L: 512,
4685
4738
  S: this,
4686
4739
  C: (f, a) => f(...a)
@@ -4810,7 +4863,7 @@ function _ts_decorate5(decorators, target, key, desc) {
4810
4863
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4811
4864
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4812
4865
  }
4813
- var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
4866
+ var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
4814
4867
  var PRESENCE_ANNOUNCE_INTERVAL = 1e4;
4815
4868
  var PRESENCE_OFFLINE_TIMEOUT = 2e4;
4816
4869
  var DEFAULT_SPACE_KEY = "__DEFAULT__";
@@ -4824,7 +4877,10 @@ var DataSpaceManager = class {
4824
4877
  this._echoHost = _echoHost;
4825
4878
  this._invitationsManager = _invitationsManager;
4826
4879
  this._params = _params;
4827
- this._ctx = new import_context14.Context();
4880
+ this._ctx = new import_context14.Context(void 0, {
4881
+ F: __dxlog_file18,
4882
+ L: 94
4883
+ });
4828
4884
  this.updated = new import_async17.Event();
4829
4885
  this._spaces = new import_util10.ComplexMap(import_keys12.PublicKey.hash);
4830
4886
  this._isOpen = false;
@@ -4858,7 +4914,7 @@ var DataSpaceManager = class {
4858
4914
  }
4859
4915
  async open() {
4860
4916
  (0, import_log15.log)("open", void 0, {
4861
- F: __dxlog_file17,
4917
+ F: __dxlog_file18,
4862
4918
  L: 146,
4863
4919
  S: this,
4864
4920
  C: (f, a) => f(...a)
@@ -4866,7 +4922,7 @@ var DataSpaceManager = class {
4866
4922
  import_log15.log.trace("dxos.echo.data-space-manager.open", import_protocols11.trace.begin({
4867
4923
  id: this._instanceId
4868
4924
  }), {
4869
- F: __dxlog_file17,
4925
+ F: __dxlog_file18,
4870
4926
  L: 147,
4871
4927
  S: this,
4872
4928
  C: (f, a) => f(...a)
@@ -4874,7 +4930,7 @@ var DataSpaceManager = class {
4874
4930
  (0, import_log15.log)("metadata loaded", {
4875
4931
  spaces: this._metadataStore.spaces.length
4876
4932
  }, {
4877
- F: __dxlog_file17,
4933
+ F: __dxlog_file18,
4878
4934
  L: 148,
4879
4935
  S: this,
4880
4936
  C: (f, a) => f(...a)
@@ -4884,7 +4940,7 @@ var DataSpaceManager = class {
4884
4940
  (0, import_log15.log)("load space", {
4885
4941
  spaceMetadata
4886
4942
  }, {
4887
- F: __dxlog_file17,
4943
+ F: __dxlog_file18,
4888
4944
  L: 152,
4889
4945
  S: this,
4890
4946
  C: (f, a) => f(...a)
@@ -4895,7 +4951,7 @@ var DataSpaceManager = class {
4895
4951
  spaceMetadata,
4896
4952
  err
4897
4953
  }, {
4898
- F: __dxlog_file17,
4954
+ F: __dxlog_file18,
4899
4955
  L: 155,
4900
4956
  S: this,
4901
4957
  C: (f, a) => f(...a)
@@ -4907,7 +4963,7 @@ var DataSpaceManager = class {
4907
4963
  import_log15.log.trace("dxos.echo.data-space-manager.open", import_protocols11.trace.end({
4908
4964
  id: this._instanceId
4909
4965
  }), {
4910
- F: __dxlog_file17,
4966
+ F: __dxlog_file18,
4911
4967
  L: 162,
4912
4968
  S: this,
4913
4969
  C: (f, a) => f(...a)
@@ -4915,7 +4971,7 @@ var DataSpaceManager = class {
4915
4971
  }
4916
4972
  async close() {
4917
4973
  (0, import_log15.log)("close", void 0, {
4918
- F: __dxlog_file17,
4974
+ F: __dxlog_file18,
4919
4975
  L: 167,
4920
4976
  S: this,
4921
4977
  C: (f, a) => f(...a)
@@ -4932,7 +4988,7 @@ var DataSpaceManager = class {
4932
4988
  */
4933
4989
  async createSpace() {
4934
4990
  (0, import_invariant15.invariant)(this._isOpen, "Not open.", {
4935
- F: __dxlog_file17,
4991
+ F: __dxlog_file18,
4936
4992
  L: 181,
4937
4993
  S: this,
4938
4994
  A: [
@@ -4953,7 +5009,7 @@ var DataSpaceManager = class {
4953
5009
  (0, import_log15.log)("creating space...", {
4954
5010
  spaceKey
4955
5011
  }, {
4956
- F: __dxlog_file17,
5012
+ F: __dxlog_file18,
4957
5013
  L: 193,
4958
5014
  S: this,
4959
5015
  C: (f, a) => f(...a)
@@ -4965,7 +5021,7 @@ var DataSpaceManager = class {
4965
5021
  await this._metadataStore.addSpace(metadata);
4966
5022
  const memberCredential = credentials[1];
4967
5023
  (0, import_invariant15.invariant)((0, import_credentials15.getCredentialAssertion)(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
4968
- F: __dxlog_file17,
5024
+ F: __dxlog_file18,
4969
5025
  L: 203,
4970
5026
  S: this,
4971
5027
  A: [
@@ -4997,7 +5053,7 @@ var DataSpaceManager = class {
4997
5053
  version: space.databaseRoot.getVersion(),
4998
5054
  spaceId: space.id
4999
5055
  }, {
5000
- F: __dxlog_file17,
5056
+ F: __dxlog_file18,
5001
5057
  L: 228,
5002
5058
  S: this,
5003
5059
  C: (f, a) => f(...a)
@@ -5032,7 +5088,7 @@ var DataSpaceManager = class {
5032
5088
  async _getSpaceRootDocument(space) {
5033
5089
  const automergeIndex = space.automergeSpaceState.rootUrl;
5034
5090
  (0, import_invariant15.invariant)(automergeIndex, void 0, {
5035
- F: __dxlog_file17,
5091
+ F: __dxlog_file18,
5036
5092
  L: 261,
5037
5093
  S: this,
5038
5094
  A: [
@@ -5049,13 +5105,13 @@ var DataSpaceManager = class {
5049
5105
  (0, import_log15.log)("accept space", {
5050
5106
  opts
5051
5107
  }, {
5052
- F: __dxlog_file17,
5108
+ F: __dxlog_file18,
5053
5109
  L: 270,
5054
5110
  S: this,
5055
5111
  C: (f, a) => f(...a)
5056
5112
  });
5057
5113
  (0, import_invariant15.invariant)(this._isOpen, "Not open.", {
5058
- F: __dxlog_file17,
5114
+ F: __dxlog_file18,
5059
5115
  L: 271,
5060
5116
  S: this,
5061
5117
  A: [
@@ -5064,7 +5120,7 @@ var DataSpaceManager = class {
5064
5120
  ]
5065
5121
  });
5066
5122
  (0, import_invariant15.invariant)(!this._spaces.has(opts.spaceKey), "Space already exists.", {
5067
- F: __dxlog_file17,
5123
+ F: __dxlog_file18,
5068
5124
  L: 272,
5069
5125
  S: this,
5070
5126
  A: [
@@ -5100,7 +5156,7 @@ var DataSpaceManager = class {
5100
5156
  (0, import_log15.log)("construct space", {
5101
5157
  metadata
5102
5158
  }, {
5103
- F: __dxlog_file17,
5159
+ F: __dxlog_file18,
5104
5160
  L: 306,
5105
5161
  S: this,
5106
5162
  C: (f, a) => f(...a)
@@ -5138,7 +5194,7 @@ var DataSpaceManager = class {
5138
5194
  },
5139
5195
  onAuthFailure: () => {
5140
5196
  import_log15.log.warn("auth failure", void 0, {
5141
- F: __dxlog_file17,
5197
+ F: __dxlog_file18,
5142
5198
  L: 343,
5143
5199
  S: this,
5144
5200
  C: (f, a) => f(...a)
@@ -5171,7 +5227,7 @@ var DataSpaceManager = class {
5171
5227
  (0, import_log15.log)("before space ready", {
5172
5228
  space: space.key
5173
5229
  }, {
5174
- F: __dxlog_file17,
5230
+ F: __dxlog_file18,
5175
5231
  L: 370,
5176
5232
  S: this,
5177
5233
  C: (f, a) => f(...a)
@@ -5182,7 +5238,7 @@ var DataSpaceManager = class {
5182
5238
  space: space.key,
5183
5239
  open: this._isOpen
5184
5240
  }, {
5185
- F: __dxlog_file17,
5241
+ F: __dxlog_file18,
5186
5242
  L: 373,
5187
5243
  S: this,
5188
5244
  C: (f, a) => f(...a)
@@ -5201,7 +5257,7 @@ var DataSpaceManager = class {
5201
5257
  (0, import_log15.log)("before space close", {
5202
5258
  space: space.key
5203
5259
  }, {
5204
- F: __dxlog_file17,
5260
+ F: __dxlog_file18,
5205
5261
  L: 381,
5206
5262
  S: this,
5207
5263
  C: (f, a) => f(...a)
@@ -5242,7 +5298,7 @@ var DataSpaceManager = class {
5242
5298
  peersOnline: presence.getPeersOnline().length,
5243
5299
  closedSessions
5244
5300
  }, {
5245
- F: __dxlog_file17,
5301
+ F: __dxlog_file18,
5246
5302
  L: 417,
5247
5303
  S: this,
5248
5304
  C: (f, a) => f(...a)
@@ -5257,7 +5313,7 @@ var DataSpaceManager = class {
5257
5313
  (0, import_log15.log)("closing a session with a removed peer", {
5258
5314
  peerId: peerState.peerId
5259
5315
  }, {
5260
- F: __dxlog_file17,
5316
+ F: __dxlog_file18,
5261
5317
  L: 431,
5262
5318
  S: this,
5263
5319
  C: (f, a) => f(...a)
@@ -5317,7 +5373,7 @@ _ts_decorate5([
5317
5373
  DataSpaceManager = _ts_decorate5([
5318
5374
  (0, import_async17.trackLeaks)("open", "close")
5319
5375
  ], DataSpaceManager);
5320
- var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
5376
+ var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
5321
5377
  var SpacesServiceImpl = class {
5322
5378
  constructor(_identityManager, _spaceManager, _getDataSpaceManager) {
5323
5379
  this._identityManager = _identityManager;
@@ -5361,7 +5417,7 @@ var SpacesServiceImpl = class {
5361
5417
  }
5362
5418
  const credentials = await (0, import_credentials19.createAdmissionCredentials)(identity.getIdentityCredentialSigner(), request.memberKey, space.key, space.genesisFeedKey, request.newRole, space.spaceState.membershipChainHeads);
5363
5419
  (0, import_invariant16.invariant)(credentials[0].credential, void 0, {
5364
- F: __dxlog_file18,
5420
+ F: __dxlog_file19,
5365
5421
  L: 98,
5366
5422
  S: this,
5367
5423
  A: [
@@ -5371,7 +5427,7 @@ var SpacesServiceImpl = class {
5371
5427
  });
5372
5428
  const spaceMemberCredential = credentials[0].credential.credential;
5373
5429
  (0, import_invariant16.invariant)((0, import_credentials19.getCredentialAssertion)(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
5374
- F: __dxlog_file18,
5430
+ F: __dxlog_file19,
5375
5431
  L: 100,
5376
5432
  S: this,
5377
5433
  A: [
@@ -5389,7 +5445,7 @@ var SpacesServiceImpl = class {
5389
5445
  (0, import_log16.log)("update", {
5390
5446
  spaces
5391
5447
  }, {
5392
- F: __dxlog_file18,
5448
+ F: __dxlog_file19,
5393
5449
  L: 111,
5394
5450
  S: this,
5395
5451
  C: (f, a) => f(...a)
@@ -5481,7 +5537,7 @@ var SpacesServiceImpl = class {
5481
5537
  });
5482
5538
  } else {
5483
5539
  (0, import_invariant16.invariant)(!credential.id, "Id on unsigned credentials is not allowed", {
5484
- F: __dxlog_file18,
5540
+ F: __dxlog_file19,
5485
5541
  L: 209,
5486
5542
  S: this,
5487
5543
  A: [
@@ -5490,7 +5546,7 @@ var SpacesServiceImpl = class {
5490
5546
  ]
5491
5547
  });
5492
5548
  (0, import_invariant16.invariant)(this._identityManager.identity, "Identity is not available", {
5493
- F: __dxlog_file18,
5549
+ F: __dxlog_file19,
5494
5550
  L: 210,
5495
5551
  S: this,
5496
5552
  A: [
@@ -5500,7 +5556,7 @@ var SpacesServiceImpl = class {
5500
5556
  });
5501
5557
  const signer = this._identityManager.identity.getIdentityCredentialSigner();
5502
5558
  (0, import_invariant16.invariant)(credential.issuer.equals(signer.getIssuer()), void 0, {
5503
- F: __dxlog_file18,
5559
+ F: __dxlog_file19,
5504
5560
  L: 212,
5505
5561
  S: this,
5506
5562
  A: [
@@ -5600,7 +5656,7 @@ function _ts_decorate6(decorators, target, key, desc) {
5600
5656
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5601
5657
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5602
5658
  }
5603
- var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
5659
+ var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
5604
5660
  var ServiceContext = class extends import_context15.Resource {
5605
5661
  constructor(storage, level, networkManager, signalManager, _runtimeParams) {
5606
5662
  super();
@@ -5644,7 +5700,7 @@ var ServiceContext = class extends import_context15.Resource {
5644
5700
  async _open(ctx) {
5645
5701
  await this._checkStorageVersion();
5646
5702
  (0, import_log17.log)("opening...", void 0, {
5647
- F: __dxlog_file19,
5703
+ F: __dxlog_file20,
5648
5704
  L: 149,
5649
5705
  S: this,
5650
5706
  C: (f, a) => f(...a)
@@ -5652,7 +5708,7 @@ var ServiceContext = class extends import_context15.Resource {
5652
5708
  import_log17.log.trace("dxos.sdk.service-context.open", import_protocols13.trace.begin({
5653
5709
  id: this._instanceId
5654
5710
  }), {
5655
- F: __dxlog_file19,
5711
+ F: __dxlog_file20,
5656
5712
  L: 150,
5657
5713
  S: this,
5658
5714
  C: (f, a) => f(...a)
@@ -5670,7 +5726,7 @@ var ServiceContext = class extends import_context15.Resource {
5670
5726
  (0, import_log17.log)("loaded persistent invitations", {
5671
5727
  count: loadedInvitations.invitations?.length
5672
5728
  }, {
5673
- F: __dxlog_file19,
5729
+ F: __dxlog_file20,
5674
5730
  L: 163,
5675
5731
  S: this,
5676
5732
  C: (f, a) => f(...a)
@@ -5678,13 +5734,13 @@ var ServiceContext = class extends import_context15.Resource {
5678
5734
  import_log17.log.trace("dxos.sdk.service-context.open", import_protocols13.trace.end({
5679
5735
  id: this._instanceId
5680
5736
  }), {
5681
- F: __dxlog_file19,
5737
+ F: __dxlog_file20,
5682
5738
  L: 165,
5683
5739
  S: this,
5684
5740
  C: (f, a) => f(...a)
5685
5741
  });
5686
5742
  (0, import_log17.log)("opened", void 0, {
5687
- F: __dxlog_file19,
5743
+ F: __dxlog_file20,
5688
5744
  L: 166,
5689
5745
  S: this,
5690
5746
  C: (f, a) => f(...a)
@@ -5692,7 +5748,7 @@ var ServiceContext = class extends import_context15.Resource {
5692
5748
  }
5693
5749
  async _close(ctx) {
5694
5750
  (0, import_log17.log)("closing...", void 0, {
5695
- F: __dxlog_file19,
5751
+ F: __dxlog_file20,
5696
5752
  L: 170,
5697
5753
  S: this,
5698
5754
  C: (f, a) => f(...a)
@@ -5709,7 +5765,7 @@ var ServiceContext = class extends import_context15.Resource {
5709
5765
  await this.networkManager.close();
5710
5766
  await this.signalManager.close();
5711
5767
  (0, import_log17.log)("closed", void 0, {
5712
- F: __dxlog_file19,
5768
+ F: __dxlog_file20,
5713
5769
  L: 182,
5714
5770
  S: this,
5715
5771
  C: (f, a) => f(...a)
@@ -5717,13 +5773,16 @@ var ServiceContext = class extends import_context15.Resource {
5717
5773
  }
5718
5774
  async createIdentity(params = {}) {
5719
5775
  const identity = await this.identityManager.createIdentity(params);
5720
- await this._initialize(new import_context15.Context());
5776
+ await this._initialize(new import_context15.Context(void 0, {
5777
+ F: __dxlog_file20,
5778
+ L: 187
5779
+ }));
5721
5780
  return identity;
5722
5781
  }
5723
5782
  getInvitationHandler(invitation) {
5724
5783
  const factory = this._handlerFactories.get(invitation.kind);
5725
5784
  (0, import_invariant17.invariant)(factory, `Unknown invitation kind: ${invitation.kind}`, {
5726
- F: __dxlog_file19,
5785
+ F: __dxlog_file20,
5727
5786
  L: 193,
5728
5787
  S: this,
5729
5788
  A: [
@@ -5743,7 +5802,10 @@ var ServiceContext = class extends import_context15.Resource {
5743
5802
  }
5744
5803
  async _acceptIdentity(params) {
5745
5804
  const identity = await this.identityManager.acceptIdentity(params);
5746
- await this._initialize(new import_context15.Context());
5805
+ await this._initialize(new import_context15.Context(void 0, {
5806
+ F: __dxlog_file20,
5807
+ L: 209
5808
+ }));
5747
5809
  return identity;
5748
5810
  }
5749
5811
  async _checkStorageVersion() {
@@ -5755,7 +5817,7 @@ var ServiceContext = class extends import_context15.Resource {
5755
5817
  // Called when identity is created.
5756
5818
  async _initialize(ctx) {
5757
5819
  (0, import_log17.log)("initializing spaces...", void 0, {
5758
- F: __dxlog_file19,
5820
+ F: __dxlog_file20,
5759
5821
  L: 224,
5760
5822
  S: this,
5761
5823
  C: (f, a) => f(...a)
@@ -5778,7 +5840,7 @@ var ServiceContext = class extends import_context15.Resource {
5778
5840
  await this.dataSpaceManager.open();
5779
5841
  this._handlerFactories.set(import_services16.Invitation.Kind.SPACE, (invitation) => {
5780
5842
  (0, import_invariant17.invariant)(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
5781
- F: __dxlog_file19,
5843
+ F: __dxlog_file20,
5782
5844
  L: 249,
5783
5845
  S: this,
5784
5846
  A: [
@@ -5802,7 +5864,7 @@ var ServiceContext = class extends import_context15.Resource {
5802
5864
  (0, import_log17.log)("dataSpaceManager not initialized yet, ignoring space admission", {
5803
5865
  details: assertion
5804
5866
  }, {
5805
- F: __dxlog_file19,
5867
+ F: __dxlog_file20,
5806
5868
  L: 265,
5807
5869
  S: this,
5808
5870
  C: (f, a) => f(...a)
@@ -5813,7 +5875,7 @@ var ServiceContext = class extends import_context15.Resource {
5813
5875
  (0, import_log17.log)("space already exists, ignoring space admission", {
5814
5876
  details: assertion
5815
5877
  }, {
5816
- F: __dxlog_file19,
5878
+ F: __dxlog_file20,
5817
5879
  L: 269,
5818
5880
  S: this,
5819
5881
  C: (f, a) => f(...a)
@@ -5824,7 +5886,7 @@ var ServiceContext = class extends import_context15.Resource {
5824
5886
  (0, import_log17.log)("accepting space recorded in halo", {
5825
5887
  details: assertion
5826
5888
  }, {
5827
- F: __dxlog_file19,
5889
+ F: __dxlog_file20,
5828
5890
  L: 274,
5829
5891
  S: this,
5830
5892
  C: (f, a) => f(...a)
@@ -5835,7 +5897,7 @@ var ServiceContext = class extends import_context15.Resource {
5835
5897
  });
5836
5898
  } catch (err) {
5837
5899
  import_log17.log.catch(err, void 0, {
5838
- F: __dxlog_file19,
5900
+ F: __dxlog_file20,
5839
5901
  L: 280,
5840
5902
  S: this,
5841
5903
  C: (f, a) => f(...a)
@@ -5888,7 +5950,7 @@ function _ts_decorate7(decorators, target, key, desc) {
5888
5950
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5889
5951
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5890
5952
  }
5891
- var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
5953
+ var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
5892
5954
  var Lock = class {
5893
5955
  constructor({ lockKey: lockPath, onAcquire, onRelease }) {
5894
5956
  this._lockPath = lockPath;
@@ -5900,7 +5962,7 @@ var Lock = class {
5900
5962
  }
5901
5963
  async acquire() {
5902
5964
  (0, import_log18.log)("acquiring lock...", void 0, {
5903
- F: __dxlog_file20,
5965
+ F: __dxlog_file21,
5904
5966
  L: 32,
5905
5967
  S: this,
5906
5968
  C: (f, a) => f(...a)
@@ -5908,7 +5970,7 @@ var Lock = class {
5908
5970
  this._fileHandle = await import_lock_file.LockFile.acquire(this._lockPath);
5909
5971
  await this._onAcquire?.();
5910
5972
  (0, import_log18.log)("acquired lock", void 0, {
5911
- F: __dxlog_file20,
5973
+ F: __dxlog_file21,
5912
5974
  L: 37,
5913
5975
  S: this,
5914
5976
  C: (f, a) => f(...a)
@@ -5917,7 +5979,7 @@ var Lock = class {
5917
5979
  async release() {
5918
5980
  await this._onRelease?.();
5919
5981
  (0, import_invariant18.invariant)(this._fileHandle, "Lock is not acquired", {
5920
- F: __dxlog_file20,
5982
+ F: __dxlog_file21,
5921
5983
  L: 42,
5922
5984
  S: this,
5923
5985
  A: [
@@ -5989,7 +6051,7 @@ var createLevel = async (config) => {
5989
6051
  await level.open();
5990
6052
  return level;
5991
6053
  };
5992
- var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
6054
+ var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
5993
6055
  var DevicesServiceImpl = class {
5994
6056
  constructor(_identityManager) {
5995
6057
  this._identityManager = _identityManager;
@@ -6007,7 +6069,7 @@ var DevicesServiceImpl = class {
6007
6069
  });
6008
6070
  } else {
6009
6071
  (0, import_invariant20.invariant)(this._identityManager.identity?.presence, "presence not present", {
6010
- F: __dxlog_file21,
6072
+ F: __dxlog_file22,
6011
6073
  L: 32,
6012
6074
  S: this,
6013
6075
  A: [
@@ -6308,7 +6370,7 @@ function _ts_decorate8(decorators, target, key, desc) {
6308
6370
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6309
6371
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6310
6372
  }
6311
- var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
6373
+ var __dxlog_file23 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
6312
6374
  var ClientServicesHost = class {
6313
6375
  constructor({
6314
6376
  config,
@@ -6341,7 +6403,10 @@ var ClientServicesHost = class {
6341
6403
  lockKey,
6342
6404
  onAcquire: () => {
6343
6405
  if (!this._opening) {
6344
- void this.open(new import_context16.Context());
6406
+ void this.open(new import_context16.Context(void 0, {
6407
+ F: __dxlog_file23,
6408
+ L: 120
6409
+ }));
6345
6410
  }
6346
6411
  },
6347
6412
  onRelease: () => this.close()
@@ -6397,7 +6462,7 @@ var ClientServicesHost = class {
6397
6462
  */
6398
6463
  initialize({ config, ...options }) {
6399
6464
  (0, import_invariant19.invariant)(!this._open, "service host is open", {
6400
- F: __dxlog_file22,
6465
+ F: __dxlog_file23,
6401
6466
  L: 186,
6402
6467
  S: this,
6403
6468
  A: [
@@ -6406,14 +6471,14 @@ var ClientServicesHost = class {
6406
6471
  ]
6407
6472
  });
6408
6473
  (0, import_log19.log)("initializing...", void 0, {
6409
- F: __dxlog_file22,
6474
+ F: __dxlog_file23,
6410
6475
  L: 187,
6411
6476
  S: this,
6412
6477
  C: (f, a) => f(...a)
6413
6478
  });
6414
6479
  if (config) {
6415
6480
  (0, import_invariant19.invariant)(!this._config, "config already set", {
6416
- F: __dxlog_file22,
6481
+ F: __dxlog_file23,
6417
6482
  L: 190,
6418
6483
  S: this,
6419
6484
  A: [
@@ -6428,7 +6493,7 @@ var ClientServicesHost = class {
6428
6493
  }
6429
6494
  if (!options.signalManager) {
6430
6495
  import_log19.log.warn("running signaling without telemetry metadata.", void 0, {
6431
- F: __dxlog_file22,
6496
+ F: __dxlog_file23,
6432
6497
  L: 198,
6433
6498
  S: this,
6434
6499
  C: (f, a) => f(...a)
@@ -6439,7 +6504,7 @@ var ClientServicesHost = class {
6439
6504
  }), signalManager = new import_messaging.WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
6440
6505
  this._signalManager = signalManager;
6441
6506
  (0, import_invariant19.invariant)(!this._networkManager, "network manager already set", {
6442
- F: __dxlog_file22,
6507
+ F: __dxlog_file23,
6443
6508
  L: 209,
6444
6509
  S: this,
6445
6510
  A: [
@@ -6453,7 +6518,7 @@ var ClientServicesHost = class {
6453
6518
  signalManager
6454
6519
  });
6455
6520
  (0, import_log19.log)("initialized", void 0, {
6456
- F: __dxlog_file22,
6521
+ F: __dxlog_file23,
6457
6522
  L: 216,
6458
6523
  S: this,
6459
6524
  C: (f, a) => f(...a)
@@ -6467,13 +6532,13 @@ var ClientServicesHost = class {
6467
6532
  import_log19.log.trace("dxos.client-services.host.open", import_protocols15.trace.begin({
6468
6533
  id: traceId
6469
6534
  }), {
6470
- F: __dxlog_file22,
6535
+ F: __dxlog_file23,
6471
6536
  L: 227,
6472
6537
  S: this,
6473
6538
  C: (f, a) => f(...a)
6474
6539
  });
6475
6540
  (0, import_invariant19.invariant)(this._config, "config not set", {
6476
- F: __dxlog_file22,
6541
+ F: __dxlog_file23,
6477
6542
  L: 229,
6478
6543
  S: this,
6479
6544
  A: [
@@ -6482,7 +6547,7 @@ var ClientServicesHost = class {
6482
6547
  ]
6483
6548
  });
6484
6549
  (0, import_invariant19.invariant)(this._storage, "storage not set", {
6485
- F: __dxlog_file22,
6550
+ F: __dxlog_file23,
6486
6551
  L: 230,
6487
6552
  S: this,
6488
6553
  A: [
@@ -6491,7 +6556,7 @@ var ClientServicesHost = class {
6491
6556
  ]
6492
6557
  });
6493
6558
  (0, import_invariant19.invariant)(this._signalManager, "signal manager not set", {
6494
- F: __dxlog_file22,
6559
+ F: __dxlog_file23,
6495
6560
  L: 231,
6496
6561
  S: this,
6497
6562
  A: [
@@ -6500,7 +6565,7 @@ var ClientServicesHost = class {
6500
6565
  ]
6501
6566
  });
6502
6567
  (0, import_invariant19.invariant)(this._networkManager, "network manager not set", {
6503
- F: __dxlog_file22,
6568
+ F: __dxlog_file23,
6504
6569
  L: 232,
6505
6570
  S: this,
6506
6571
  A: [
@@ -6512,7 +6577,7 @@ var ClientServicesHost = class {
6512
6577
  (0, import_log19.log)("opening...", {
6513
6578
  lockKey: this._resourceLock?.lockKey
6514
6579
  }, {
6515
- F: __dxlog_file22,
6580
+ F: __dxlog_file23,
6516
6581
  L: 235,
6517
6582
  S: this,
6518
6583
  C: (f, a) => f(...a)
@@ -6566,7 +6631,7 @@ var ClientServicesHost = class {
6566
6631
  (0, import_log19.log)("opened", {
6567
6632
  deviceKey
6568
6633
  }, {
6569
- F: __dxlog_file22,
6634
+ F: __dxlog_file23,
6570
6635
  L: 314,
6571
6636
  S: this,
6572
6637
  C: (f, a) => f(...a)
@@ -6574,7 +6639,7 @@ var ClientServicesHost = class {
6574
6639
  import_log19.log.trace("dxos.client-services.host.open", import_protocols15.trace.end({
6575
6640
  id: traceId
6576
6641
  }), {
6577
- F: __dxlog_file22,
6642
+ F: __dxlog_file23,
6578
6643
  L: 315,
6579
6644
  S: this,
6580
6645
  C: (f, a) => f(...a)
@@ -6588,7 +6653,7 @@ var ClientServicesHost = class {
6588
6653
  (0, import_log19.log)("closing...", {
6589
6654
  deviceKey
6590
6655
  }, {
6591
- F: __dxlog_file22,
6656
+ F: __dxlog_file23,
6592
6657
  L: 326,
6593
6658
  S: this,
6594
6659
  C: (f, a) => f(...a)
@@ -6606,7 +6671,7 @@ var ClientServicesHost = class {
6606
6671
  (0, import_log19.log)("closed", {
6607
6672
  deviceKey
6608
6673
  }, {
6609
- F: __dxlog_file22,
6674
+ F: __dxlog_file23,
6610
6675
  L: 335,
6611
6676
  S: this,
6612
6677
  C: (f, a) => f(...a)
@@ -6617,13 +6682,13 @@ var ClientServicesHost = class {
6617
6682
  import_log19.log.trace("dxos.sdk.client-services-host.reset", import_protocols15.trace.begin({
6618
6683
  id: traceId
6619
6684
  }), {
6620
- F: __dxlog_file22,
6685
+ F: __dxlog_file23,
6621
6686
  L: 340,
6622
6687
  S: this,
6623
6688
  C: (f, a) => f(...a)
6624
6689
  });
6625
6690
  import_log19.log.info("resetting...", void 0, {
6626
- F: __dxlog_file22,
6691
+ F: __dxlog_file23,
6627
6692
  L: 342,
6628
6693
  S: this,
6629
6694
  C: (f, a) => f(...a)
@@ -6631,7 +6696,7 @@ var ClientServicesHost = class {
6631
6696
  await this._serviceContext?.close();
6632
6697
  await this._storage.reset();
6633
6698
  import_log19.log.info("reset", void 0, {
6634
- F: __dxlog_file22,
6699
+ F: __dxlog_file23,
6635
6700
  L: 345,
6636
6701
  S: this,
6637
6702
  C: (f, a) => f(...a)
@@ -6639,7 +6704,7 @@ var ClientServicesHost = class {
6639
6704
  import_log19.log.trace("dxos.sdk.client-services-host.reset", import_protocols15.trace.end({
6640
6705
  id: traceId
6641
6706
  }), {
6642
- F: __dxlog_file22,
6707
+ F: __dxlog_file23,
6643
6708
  L: 346,
6644
6709
  S: this,
6645
6710
  C: (f, a) => f(...a)
@@ -6709,4 +6774,4 @@ ClientServicesHost = _ts_decorate8([
6709
6774
  subscribeToSpaces,
6710
6775
  subscribeToSwarmInfo
6711
6776
  });
6712
- //# sourceMappingURL=chunk-UEJYNKZP.cjs.map
6777
+ //# sourceMappingURL=chunk-6HFQ2SQ5.cjs.map