@dxos/client-services 0.5.9-main.9587514 → 0.5.9-main.9f60463

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.
Files changed (36) hide show
  1. package/dist/lib/browser/{chunk-Y4NGEDFZ.mjs → chunk-BTHX37CG.mjs} +419 -637
  2. package/dist/lib/browser/chunk-BTHX37CG.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +2 -5
  4. package/dist/lib/browser/index.mjs.map +1 -1
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/packlets/testing/index.mjs +3 -10
  7. package/dist/lib/browser/packlets/testing/index.mjs.map +1 -1
  8. package/dist/lib/node/{chunk-TZZXMQEN.cjs → chunk-AUGYXYOL.cjs} +426 -642
  9. package/dist/lib/node/chunk-AUGYXYOL.cjs.map +7 -0
  10. package/dist/lib/node/index.cjs +42 -45
  11. package/dist/lib/node/index.cjs.map +1 -1
  12. package/dist/lib/node/meta.json +1 -1
  13. package/dist/lib/node/packlets/testing/index.cjs +10 -17
  14. package/dist/lib/node/packlets/testing/index.cjs.map +1 -1
  15. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
  16. package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts.map +1 -1
  17. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  18. package/dist/types/src/packlets/spaces/data-space-manager.d.ts +1 -10
  19. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  20. package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
  21. package/dist/types/src/packlets/spaces/spaces-service.d.ts +1 -4
  22. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
  23. package/dist/types/src/version.d.ts +1 -1
  24. package/package.json +36 -36
  25. package/src/packlets/invitations/invitations-handler.ts +5 -13
  26. package/src/packlets/invitations/space-invitation-protocol.ts +32 -11
  27. package/src/packlets/services/service-host.ts +4 -12
  28. package/src/packlets/spaces/data-space-manager.ts +2 -55
  29. package/src/packlets/spaces/data-space.ts +3 -1
  30. package/src/packlets/spaces/spaces-service.ts +0 -38
  31. package/src/version.ts +1 -1
  32. package/dist/lib/browser/chunk-Y4NGEDFZ.mjs.map +0 -7
  33. package/dist/lib/node/chunk-TZZXMQEN.cjs.map +0 -7
  34. package/dist/types/src/packlets/identity/contacts-service.d.ts +0 -14
  35. package/dist/types/src/packlets/identity/contacts-service.d.ts.map +0 -1
  36. package/src/packlets/identity/contacts-service.ts +0 -85
@@ -85,7 +85,6 @@ var subscribeToFeedBlocks = ({ feedStore }, { feedKey, maxBlocks = 10 }) => {
85
85
  import { Stream as Stream2 } from "@dxos/codec-protobuf";
86
86
  import { Context } from "@dxos/context";
87
87
  import { PublicKey as PublicKey2 } from "@dxos/keys";
88
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devtools/network.ts";
89
88
  var subscribeToNetworkStatus = ({ signalManager }) => new Stream2(({ next, close }) => {
90
89
  const update = () => {
91
90
  try {
@@ -101,10 +100,7 @@ var subscribeToNetworkStatus = ({ signalManager }) => new Stream2(({ next, close
101
100
  update();
102
101
  });
103
102
  var subscribeToSignal = ({ signalManager }) => new Stream2(({ next }) => {
104
- const ctx = new Context(void 0, {
105
- F: __dxlog_file,
106
- L: 36
107
- });
103
+ const ctx = new Context();
108
104
  signalManager.onMessage.on(ctx, (message) => {
109
105
  next({
110
106
  message: {
@@ -359,7 +355,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
359
355
  import { TRACE_PROCESSOR } from "@dxos/tracing";
360
356
 
361
357
  // packages/sdk/client-services/src/version.ts
362
- var DXOS_VERSION = "0.5.9-main.9587514";
358
+ var DXOS_VERSION = "0.5.9-main.9f60463";
363
359
 
364
360
  // packages/sdk/client-services/src/packlets/services/platform.ts
365
361
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -392,7 +388,7 @@ var getPlatform = () => {
392
388
  };
393
389
 
394
390
  // packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts
395
- var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
391
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/diagnostics.ts";
396
392
  var DEFAULT_TIMEOUT = 1e3;
397
393
  var createDiagnostics = async (clientServices, serviceContext, config) => {
398
394
  const diagnostics = {
@@ -409,7 +405,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
409
405
  await Promise.all([
410
406
  (async () => {
411
407
  invariant(clientServices.LoggingService, "SystemService is not available.", {
412
- F: __dxlog_file2,
408
+ F: __dxlog_file,
413
409
  L: 110,
414
410
  S: void 0,
415
411
  A: [
@@ -514,7 +510,7 @@ var getStorageDiagnostics = async () => {
514
510
  // packages/sdk/client-services/src/packlets/diagnostics/browser-diagnostics-broadcast.ts
515
511
  import { Trigger } from "@dxos/async";
516
512
  import { log } from "@dxos/log";
517
- var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/browser-diagnostics-broadcast.ts";
513
+ var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/diagnostics/browser-diagnostics-broadcast.ts";
518
514
  var CHANNEL_NAME = "dxos.diagnostics.broadcast";
519
515
  var MessageType;
520
516
  (function(MessageType2) {
@@ -583,7 +579,7 @@ var createCollectDiagnosticsBroadcastHandler = (systemService) => {
583
579
  }
584
580
  } catch (error) {
585
581
  log.catch(error, void 0, {
586
- F: __dxlog_file3,
582
+ F: __dxlog_file2,
587
583
  L: 77,
588
584
  S: void 0,
589
585
  C: (f, a) => f(...a)
@@ -691,7 +687,7 @@ import { Context as Context2 } from "@dxos/context";
691
687
  import { verifyCredential } from "@dxos/credentials";
692
688
  import { log as log2 } from "@dxos/log";
693
689
  import { schema } from "@dxos/protocols";
694
- var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
690
+ var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
695
691
  var Credential = schema.getCodecForType("dxos.halo.credentials.Credential");
696
692
  var createAuthProvider = (signer) => async (nonce) => {
697
693
  const credential = await signer.createCredential({
@@ -706,10 +702,7 @@ var createAuthProvider = (signer) => async (nonce) => {
706
702
  var TrustedKeySetAuthVerifier = class {
707
703
  constructor(_params) {
708
704
  this._params = _params;
709
- this._ctx = new Context2(void 0, {
710
- F: __dxlog_file4,
711
- L: 45
712
- });
705
+ this._ctx = new Context2();
713
706
  }
714
707
  async close() {
715
708
  await this._ctx.dispose();
@@ -720,7 +713,7 @@ var TrustedKeySetAuthVerifier = class {
720
713
  log2("authenticating...", {
721
714
  credential
722
715
  }, {
723
- F: __dxlog_file4,
716
+ F: __dxlog_file3,
724
717
  L: 56,
725
718
  S: this,
726
719
  C: (f, a) => f(...a)
@@ -730,7 +723,7 @@ var TrustedKeySetAuthVerifier = class {
730
723
  log2("Invalid credential", {
731
724
  result
732
725
  }, {
733
- F: __dxlog_file4,
726
+ F: __dxlog_file3,
734
727
  L: 60,
735
728
  S: this,
736
729
  C: (f, a) => f(...a)
@@ -742,7 +735,7 @@ var TrustedKeySetAuthVerifier = class {
742
735
  nonce,
743
736
  credential
744
737
  }, {
745
- F: __dxlog_file4,
738
+ F: __dxlog_file3,
746
739
  L: 65,
747
740
  S: this,
748
741
  C: (f, a) => f(...a)
@@ -753,7 +746,7 @@ var TrustedKeySetAuthVerifier = class {
753
746
  log2("key is not currently in trusted set, waiting...", {
754
747
  key: credential.issuer
755
748
  }, {
756
- F: __dxlog_file4,
749
+ F: __dxlog_file3,
757
750
  L: 70,
758
751
  S: this,
759
752
  C: (f, a) => f(...a)
@@ -769,7 +762,7 @@ var TrustedKeySetAuthVerifier = class {
769
762
  log2("auth success", {
770
763
  key: credential.issuer
771
764
  }, {
772
- F: __dxlog_file4,
765
+ F: __dxlog_file3,
773
766
  L: 81,
774
767
  S: this,
775
768
  C: (f, a) => f(...a)
@@ -779,7 +772,7 @@ var TrustedKeySetAuthVerifier = class {
779
772
  log2("key is not currently in trusted set, waiting...", {
780
773
  key: credential.issuer
781
774
  }, {
782
- F: __dxlog_file4,
775
+ F: __dxlog_file3,
783
776
  L: 84,
784
777
  S: this,
785
778
  C: (f, a) => f(...a)
@@ -820,7 +813,7 @@ import { ComplexSet } from "@dxos/util";
820
813
  import { getCredentialAssertion } from "@dxos/credentials";
821
814
  import { SpaceId } from "@dxos/keys";
822
815
  import { log as log3 } from "@dxos/log";
823
- var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
816
+ var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/default-space-state-machine.ts";
824
817
  var DefaultSpaceStateMachine = class {
825
818
  constructor(_params) {
826
819
  this._params = _params;
@@ -837,7 +830,7 @@ var DefaultSpaceStateMachine = class {
837
830
  expectedIdentity: this._params.identityKey,
838
831
  credential
839
832
  }, {
840
- F: __dxlog_file5,
833
+ F: __dxlog_file4,
841
834
  L: 32,
842
835
  S: this,
843
836
  C: (f, a) => f(...a)
@@ -848,7 +841,7 @@ var DefaultSpaceStateMachine = class {
848
841
  log3.warn("Invalid default space id", {
849
842
  id: assertion.spaceId
850
843
  }, {
851
- F: __dxlog_file5,
844
+ F: __dxlog_file4,
852
845
  L: 36,
853
846
  S: this,
854
847
  C: (f, a) => f(...a)
@@ -873,7 +866,7 @@ function _ts_decorate2(decorators, target, key, desc) {
873
866
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
874
867
  return c > 3 && r && Object.defineProperty(target, key, r), r;
875
868
  }
876
- var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
869
+ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
877
870
  var Identity = class {
878
871
  constructor({ space, signer, identityKey, deviceKey, presence }) {
879
872
  this.stateUpdate = new Event();
@@ -885,7 +878,7 @@ var Identity = class {
885
878
  log4.trace("dxos.halo.device", {
886
879
  deviceKey
887
880
  }, {
888
- F: __dxlog_file6,
881
+ F: __dxlog_file5,
889
882
  L: 70,
890
883
  S: this,
891
884
  C: (f, a) => f(...a)
@@ -964,7 +957,7 @@ var Identity = class {
964
957
  */
965
958
  getIdentityCredentialSigner() {
966
959
  invariant2(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
967
- F: __dxlog_file6,
960
+ F: __dxlog_file5,
968
961
  L: 159,
969
962
  S: this,
970
963
  A: [
@@ -1008,7 +1001,7 @@ var Identity = class {
1008
1001
  controlFeedKey,
1009
1002
  dataFeedKey
1010
1003
  }, {
1011
- F: __dxlog_file6,
1004
+ F: __dxlog_file5,
1012
1005
  L: 184,
1013
1006
  S: this,
1014
1007
  C: (f, a) => f(...a)
@@ -1085,7 +1078,7 @@ function _ts_decorate3(decorators, target, key, desc) {
1085
1078
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1086
1079
  return c > 3 && r && Object.defineProperty(target, key, r), r;
1087
1080
  }
1088
- var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
1081
+ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
1089
1082
  var DEVICE_PRESENCE_ANNOUNCE_INTERVAL = 1e4;
1090
1083
  var DEVICE_PRESENCE_OFFLINE_TIMEOUT = 2e4;
1091
1084
  var IdentityManager = class {
@@ -1109,7 +1102,7 @@ var IdentityManager = class {
1109
1102
  log5.trace("dxos.halo.identity-manager.open", trace3.begin({
1110
1103
  id: traceId
1111
1104
  }), {
1112
- F: __dxlog_file7,
1105
+ F: __dxlog_file6,
1113
1106
  L: 104,
1114
1107
  S: this,
1115
1108
  C: (f, a) => f(...a)
@@ -1118,7 +1111,7 @@ var IdentityManager = class {
1118
1111
  log5("identity record", {
1119
1112
  identityRecord
1120
1113
  }, {
1121
- F: __dxlog_file7,
1114
+ F: __dxlog_file6,
1122
1115
  L: 107,
1123
1116
  S: this,
1124
1117
  C: (f, a) => f(...a)
@@ -1131,7 +1124,7 @@ var IdentityManager = class {
1131
1124
  identityKey: identityRecord.identityKey,
1132
1125
  displayName: this._identity.profileDocument?.displayName
1133
1126
  }, {
1134
- F: __dxlog_file7,
1127
+ F: __dxlog_file6,
1135
1128
  L: 112,
1136
1129
  S: this,
1137
1130
  C: (f, a) => f(...a)
@@ -1141,21 +1134,18 @@ var IdentityManager = class {
1141
1134
  log5.trace("dxos.halo.identity-manager.open", trace3.end({
1142
1135
  id: traceId
1143
1136
  }), {
1144
- F: __dxlog_file7,
1137
+ F: __dxlog_file6,
1145
1138
  L: 119,
1146
1139
  S: this,
1147
1140
  C: (f, a) => f(...a)
1148
1141
  });
1149
1142
  }
1150
1143
  async close() {
1151
- await this._identity?.close(new Context3(void 0, {
1152
- F: __dxlog_file7,
1153
- L: 123
1154
- }));
1144
+ await this._identity?.close(new Context3());
1155
1145
  }
1156
1146
  async createIdentity({ displayName, deviceProfile } = {}) {
1157
1147
  invariant3(!this._identity, "Identity already exists.", {
1158
- F: __dxlog_file7,
1148
+ F: __dxlog_file6,
1159
1149
  L: 128,
1160
1150
  S: this,
1161
1151
  A: [
@@ -1164,7 +1154,7 @@ var IdentityManager = class {
1164
1154
  ]
1165
1155
  });
1166
1156
  log5("creating identity...", void 0, {
1167
- F: __dxlog_file7,
1157
+ F: __dxlog_file6,
1168
1158
  L: 129,
1169
1159
  S: this,
1170
1160
  C: (f, a) => f(...a)
@@ -1181,14 +1171,11 @@ var IdentityManager = class {
1181
1171
  }
1182
1172
  };
1183
1173
  const identity = await this._constructIdentity(identityRecord);
1184
- await identity.open(new Context3(void 0, {
1185
- F: __dxlog_file7,
1186
- L: 144
1187
- }));
1174
+ await identity.open(new Context3());
1188
1175
  {
1189
1176
  const generator = new CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
1190
1177
  invariant3(identityRecord.haloSpace.genesisFeedKey, "Genesis feed key is required.", {
1191
- F: __dxlog_file7,
1178
+ F: __dxlog_file6,
1192
1179
  L: 148,
1193
1180
  S: this,
1194
1181
  A: [
@@ -1197,7 +1184,7 @@ var IdentityManager = class {
1197
1184
  ]
1198
1185
  });
1199
1186
  invariant3(identityRecord.haloSpace.dataFeedKey, "Data feed key is required.", {
1200
- F: __dxlog_file7,
1187
+ F: __dxlog_file6,
1201
1188
  L: 149,
1202
1189
  S: this,
1203
1190
  A: [
@@ -1236,7 +1223,7 @@ var IdentityManager = class {
1236
1223
  identityKey: identityRecord.identityKey,
1237
1224
  displayName: this._identity.profileDocument?.displayName
1238
1225
  }, {
1239
- F: __dxlog_file7,
1226
+ F: __dxlog_file6,
1240
1227
  L: 191,
1241
1228
  S: this,
1242
1229
  C: (f, a) => f(...a)
@@ -1247,7 +1234,7 @@ var IdentityManager = class {
1247
1234
  deviceKey: identity.deviceKey,
1248
1235
  profile: identity.profileDocument
1249
1236
  }, {
1250
- F: __dxlog_file7,
1237
+ F: __dxlog_file6,
1251
1238
  L: 197,
1252
1239
  S: this,
1253
1240
  C: (f, a) => f(...a)
@@ -1284,13 +1271,13 @@ var IdentityManager = class {
1284
1271
  log5("accepting identity", {
1285
1272
  params
1286
1273
  }, {
1287
- F: __dxlog_file7,
1274
+ F: __dxlog_file6,
1288
1275
  L: 235,
1289
1276
  S: this,
1290
1277
  C: (f, a) => f(...a)
1291
1278
  });
1292
1279
  invariant3(!this._identity, "Identity already exists.", {
1293
- F: __dxlog_file7,
1280
+ F: __dxlog_file6,
1294
1281
  L: 236,
1295
1282
  S: this,
1296
1283
  A: [
@@ -1310,10 +1297,7 @@ var IdentityManager = class {
1310
1297
  }
1311
1298
  };
1312
1299
  const identity = await this._constructIdentity(identityRecord);
1313
- await identity.open(new Context3(void 0, {
1314
- F: __dxlog_file7,
1315
- L: 251
1316
- }));
1300
+ await identity.open(new Context3());
1317
1301
  this._identity = identity;
1318
1302
  await this._metadataStore.setIdentityRecord(identityRecord);
1319
1303
  await this._identity.ready();
@@ -1321,7 +1305,7 @@ var IdentityManager = class {
1321
1305
  identityKey: identityRecord.identityKey,
1322
1306
  displayName: this._identity.profileDocument?.displayName
1323
1307
  }, {
1324
- F: __dxlog_file7,
1308
+ F: __dxlog_file6,
1325
1309
  L: 255,
1326
1310
  S: this,
1327
1311
  C: (f, a) => f(...a)
@@ -1335,7 +1319,7 @@ var IdentityManager = class {
1335
1319
  identityKey: identity.identityKey,
1336
1320
  deviceKey: identity.deviceKey
1337
1321
  }, {
1338
- F: __dxlog_file7,
1322
+ F: __dxlog_file6,
1339
1323
  L: 265,
1340
1324
  S: this,
1341
1325
  C: (f, a) => f(...a)
@@ -1347,7 +1331,7 @@ var IdentityManager = class {
1347
1331
  */
1348
1332
  async updateProfile(profile) {
1349
1333
  invariant3(this._identity, "Identity not initialized.", {
1350
- F: __dxlog_file7,
1334
+ F: __dxlog_file6,
1351
1335
  L: 273,
1352
1336
  S: this,
1353
1337
  A: [
@@ -1378,7 +1362,7 @@ var IdentityManager = class {
1378
1362
  }
1379
1363
  async updateDeviceProfile(profile) {
1380
1364
  invariant3(this._identity, "Identity not initialized.", {
1381
- F: __dxlog_file7,
1365
+ F: __dxlog_file6,
1382
1366
  L: 290,
1383
1367
  S: this,
1384
1368
  A: [
@@ -1414,7 +1398,7 @@ var IdentityManager = class {
1414
1398
  }
1415
1399
  async _constructIdentity(identityRecord) {
1416
1400
  invariant3(!this._identity, void 0, {
1417
- F: __dxlog_file7,
1401
+ F: __dxlog_file6,
1418
1402
  L: 316,
1419
1403
  S: this,
1420
1404
  A: [
@@ -1425,7 +1409,7 @@ var IdentityManager = class {
1425
1409
  log5("constructing identity", {
1426
1410
  identityRecord
1427
1411
  }, {
1428
- F: __dxlog_file7,
1412
+ F: __dxlog_file6,
1429
1413
  L: 317,
1430
1414
  S: this,
1431
1415
  C: (f, a) => f(...a)
@@ -1440,7 +1424,7 @@ var IdentityManager = class {
1440
1424
  gossip
1441
1425
  });
1442
1426
  invariant3(identityRecord.haloSpace.controlFeedKey, void 0, {
1443
- F: __dxlog_file7,
1427
+ F: __dxlog_file6,
1444
1428
  L: 330,
1445
1429
  S: this,
1446
1430
  A: [
@@ -1452,7 +1436,7 @@ var IdentityManager = class {
1452
1436
  writable: true
1453
1437
  });
1454
1438
  invariant3(identityRecord.haloSpace.dataFeedKey, void 0, {
1455
- F: __dxlog_file7,
1439
+ F: __dxlog_file6,
1456
1440
  L: 334,
1457
1441
  S: this,
1458
1442
  A: [
@@ -1486,7 +1470,7 @@ var IdentityManager = class {
1486
1470
  log5("done", {
1487
1471
  identityKey: identityRecord.identityKey
1488
1472
  }, {
1489
- F: __dxlog_file7,
1473
+ F: __dxlog_file6,
1490
1474
  L: 360,
1491
1475
  S: this,
1492
1476
  C: (f, a) => f(...a)
@@ -1511,7 +1495,7 @@ var IdentityManager = class {
1511
1495
  },
1512
1496
  onAuthFailure: () => {
1513
1497
  log5.warn("auth failure", void 0, {
1514
- F: __dxlog_file7,
1498
+ F: __dxlog_file6,
1515
1499
  L: 385,
1516
1500
  S: this,
1517
1501
  C: (f, a) => f(...a)
@@ -1544,7 +1528,7 @@ import { invariant as invariant4 } from "@dxos/invariant";
1544
1528
  import { log as log6 } from "@dxos/log";
1545
1529
  import { SpaceState } from "@dxos/protocols/proto/dxos/client/services";
1546
1530
  import { safeAwaitAll } from "@dxos/util";
1547
- var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
1531
+ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
1548
1532
  var DEFAULT_SPACE_SEARCH_TIMEOUT = 1e4;
1549
1533
  var IdentityServiceImpl = class extends Resource {
1550
1534
  constructor(_identityManager, _keyring, _dataSpaceManagerProvider, _createIdentity, _onProfileUpdate) {
@@ -1574,7 +1558,7 @@ var IdentityServiceImpl = class extends Resource {
1574
1558
  const space = await dataSpaceManager.createDefaultSpace();
1575
1559
  const identity = this._identityManager.identity;
1576
1560
  invariant4(identity, void 0, {
1577
- F: __dxlog_file8,
1561
+ F: __dxlog_file7,
1578
1562
  L: 59,
1579
1563
  S: this,
1580
1564
  A: [
@@ -1608,7 +1592,7 @@ var IdentityServiceImpl = class extends Resource {
1608
1592
  }
1609
1593
  async updateProfile(profile) {
1610
1594
  invariant4(this._identityManager.identity, "Identity not initialized.", {
1611
- F: __dxlog_file8,
1595
+ F: __dxlog_file7,
1612
1596
  L: 89,
1613
1597
  S: this,
1614
1598
  A: [
@@ -1622,7 +1606,7 @@ var IdentityServiceImpl = class extends Resource {
1622
1606
  }
1623
1607
  async signPresentation({ presentation, nonce }) {
1624
1608
  invariant4(this._identityManager.identity, "Identity not initialized.", {
1625
- F: __dxlog_file8,
1609
+ F: __dxlog_file7,
1626
1610
  L: 96,
1627
1611
  S: this,
1628
1612
  A: [
@@ -1657,7 +1641,7 @@ var IdentityServiceImpl = class extends Resource {
1657
1641
  log6.warn("Multiple default spaces found. Using the first one.", {
1658
1642
  duplicate: space.id
1659
1643
  }, {
1660
- F: __dxlog_file8,
1644
+ F: __dxlog_file7,
1661
1645
  L: 127,
1662
1646
  S: this,
1663
1647
  C: (f, a) => f(...a)
@@ -1685,7 +1669,7 @@ var IdentityServiceImpl = class extends Resource {
1685
1669
  import { invariant as invariant5 } from "@dxos/invariant";
1686
1670
  import { AlreadyJoinedError } from "@dxos/protocols";
1687
1671
  import { Invitation } from "@dxos/protocols/proto/dxos/client/services";
1688
- var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
1672
+ var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
1689
1673
  var DeviceInvitationProtocol = class {
1690
1674
  constructor(_keyring, _getIdentity, _acceptIdentity) {
1691
1675
  this._keyring = _keyring;
@@ -1711,7 +1695,7 @@ var DeviceInvitationProtocol = class {
1711
1695
  }
1712
1696
  async admit(_, request) {
1713
1697
  invariant5(request.device, void 0, {
1714
- F: __dxlog_file9,
1698
+ F: __dxlog_file8,
1715
1699
  L: 50,
1716
1700
  S: this,
1717
1701
  A: [
@@ -1757,7 +1741,7 @@ var DeviceInvitationProtocol = class {
1757
1741
  }
1758
1742
  async accept(response, request) {
1759
1743
  invariant5(response.device, void 0, {
1760
- F: __dxlog_file9,
1744
+ F: __dxlog_file8,
1761
1745
  L: 95,
1762
1746
  S: this,
1763
1747
  A: [
@@ -1767,7 +1751,7 @@ var DeviceInvitationProtocol = class {
1767
1751
  });
1768
1752
  const { identityKey, haloSpaceKey, genesisFeedKey, controlTimeframe } = response.device;
1769
1753
  invariant5(request.device, void 0, {
1770
- F: __dxlog_file9,
1754
+ F: __dxlog_file8,
1771
1755
  L: 98,
1772
1756
  S: this,
1773
1757
  A: [
@@ -1836,7 +1820,7 @@ var tryAcquireBeforeContextDisposed = async (ctx, mutex) => {
1836
1820
  };
1837
1821
 
1838
1822
  // packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts
1839
- var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
1823
+ var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-guest-extenstion.ts";
1840
1824
  var OPTIONS_TIMEOUT = 1e4;
1841
1825
  var InvitationGuestExtension = class extends RpcExtension {
1842
1826
  constructor(_invitationFlowMutex, _callbacks) {
@@ -1850,10 +1834,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1850
1834
  });
1851
1835
  this._invitationFlowMutex = _invitationFlowMutex;
1852
1836
  this._callbacks = _callbacks;
1853
- this._ctx = new Context4(void 0, {
1854
- F: __dxlog_file10,
1855
- L: 33
1856
- });
1837
+ this._ctx = new Context4();
1857
1838
  this._remoteOptionsTrigger = new Trigger4();
1858
1839
  this._invitationFlowLock = null;
1859
1840
  }
@@ -1865,7 +1846,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1865
1846
  InvitationHostService: {
1866
1847
  options: async (options) => {
1867
1848
  invariant6(!this._remoteOptions, "Remote options already set.", {
1868
- F: __dxlog_file10,
1849
+ F: __dxlog_file9,
1869
1850
  L: 63,
1870
1851
  S: this,
1871
1852
  A: [
@@ -1892,14 +1873,14 @@ var InvitationGuestExtension = class extends RpcExtension {
1892
1873
  await super.onOpen(context);
1893
1874
  try {
1894
1875
  log7("guest acquire lock", void 0, {
1895
- F: __dxlog_file10,
1876
+ F: __dxlog_file9,
1896
1877
  L: 84,
1897
1878
  S: this,
1898
1879
  C: (f, a) => f(...a)
1899
1880
  });
1900
1881
  this._invitationFlowLock = await tryAcquireBeforeContextDisposed(this._ctx, this._invitationFlowMutex);
1901
1882
  log7("guest lock acquired", void 0, {
1902
- F: __dxlog_file10,
1883
+ F: __dxlog_file9,
1903
1884
  L: 86,
1904
1885
  S: this,
1905
1886
  C: (f, a) => f(...a)
@@ -1908,7 +1889,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1908
1889
  role: Options.Role.GUEST
1909
1890
  }));
1910
1891
  log7("options sent", void 0, {
1911
- F: __dxlog_file10,
1892
+ F: __dxlog_file9,
1912
1893
  L: 88,
1913
1894
  S: this,
1914
1895
  C: (f, a) => f(...a)
@@ -1917,7 +1898,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1917
1898
  timeout: OPTIONS_TIMEOUT
1918
1899
  }));
1919
1900
  log7("options received", void 0, {
1920
- F: __dxlog_file10,
1901
+ F: __dxlog_file9,
1921
1902
  L: 90,
1922
1903
  S: this,
1923
1904
  C: (f, a) => f(...a)
@@ -1951,7 +1932,7 @@ var InvitationGuestExtension = class extends RpcExtension {
1951
1932
  this._invitationFlowLock.release();
1952
1933
  this._invitationFlowLock = null;
1953
1934
  log7("invitation flow lock released", void 0, {
1954
- F: __dxlog_file10,
1935
+ F: __dxlog_file9,
1955
1936
  L: 123,
1956
1937
  S: this,
1957
1938
  C: (f, a) => f(...a)
@@ -1971,7 +1952,7 @@ import { InvalidInvitationExtensionRoleError as InvalidInvitationExtensionRoleEr
1971
1952
  import { Invitation as Invitation3 } from "@dxos/protocols/proto/dxos/client/services";
1972
1953
  import { AuthenticationResponse, Options as Options2 } from "@dxos/protocols/proto/dxos/halo/invitations";
1973
1954
  import { RpcExtension as RpcExtension2 } from "@dxos/teleport";
1974
- var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
1955
+ var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-host-extension.ts";
1975
1956
  var OPTIONS_TIMEOUT2 = 1e4;
1976
1957
  var MAX_OTP_ATTEMPTS = 3;
1977
1958
  var InvitationHostExtension = class extends RpcExtension2 {
@@ -1986,10 +1967,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
1986
1967
  });
1987
1968
  this._invitationFlowMutex = _invitationFlowMutex;
1988
1969
  this._callbacks = _callbacks;
1989
- this._ctx = new Context5(void 0, {
1990
- F: __dxlog_file11,
1991
- L: 52
1992
- });
1970
+ this._ctx = new Context5();
1993
1971
  this._remoteOptionsTrigger = new Trigger5();
1994
1972
  this._challenge = void 0;
1995
1973
  this.guestProfile = void 0;
@@ -2008,7 +1986,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2008
1986
  InvitationHostService: {
2009
1987
  options: async (options) => {
2010
1988
  invariant7(!this._remoteOptions, "Remote options already set.", {
2011
- F: __dxlog_file11,
1989
+ F: __dxlog_file10,
2012
1990
  L: 101,
2013
1991
  S: this,
2014
1992
  A: [
@@ -2025,7 +2003,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2025
2003
  log8.trace("dxos.sdk.invitation-handler.host.introduce", trace4.begin({
2026
2004
  id: traceId
2027
2005
  }), {
2028
- F: __dxlog_file11,
2006
+ F: __dxlog_file10,
2029
2007
  L: 110,
2030
2008
  S: this,
2031
2009
  C: (f, a) => f(...a)
@@ -2037,7 +2015,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2037
2015
  expected: invitation.invitationId,
2038
2016
  actual: invitationId
2039
2017
  }, {
2040
- F: __dxlog_file11,
2018
+ F: __dxlog_file10,
2041
2019
  L: 116,
2042
2020
  S: this,
2043
2021
  C: (f, a) => f(...a)
@@ -2051,7 +2029,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2051
2029
  log8("guest introduced themselves", {
2052
2030
  guestProfile: profile
2053
2031
  }, {
2054
- F: __dxlog_file11,
2032
+ F: __dxlog_file10,
2055
2033
  L: 125,
2056
2034
  S: this,
2057
2035
  C: (f, a) => f(...a)
@@ -2062,7 +2040,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2062
2040
  log8.trace("dxos.sdk.invitation-handler.host.introduce", trace4.end({
2063
2041
  id: traceId
2064
2042
  }), {
2065
- F: __dxlog_file11,
2043
+ F: __dxlog_file10,
2066
2044
  L: 132,
2067
2045
  S: this,
2068
2046
  C: (f, a) => f(...a)
@@ -2077,7 +2055,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2077
2055
  log8.trace("dxos.sdk.invitation-handler.host.authenticate", trace4.begin({
2078
2056
  id: traceId
2079
2057
  }), {
2080
- F: __dxlog_file11,
2058
+ F: __dxlog_file10,
2081
2059
  L: 141,
2082
2060
  S: this,
2083
2061
  C: (f, a) => f(...a)
@@ -2086,7 +2064,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2086
2064
  log8("received authentication request", {
2087
2065
  authCode: code
2088
2066
  }, {
2089
- F: __dxlog_file11,
2067
+ F: __dxlog_file10,
2090
2068
  L: 144,
2091
2069
  S: this,
2092
2070
  C: (f, a) => f(...a)
@@ -2100,7 +2078,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2100
2078
  switch (invitation.authMethod) {
2101
2079
  case Invitation3.AuthMethod.NONE: {
2102
2080
  log8("authentication not required", void 0, {
2103
- F: __dxlog_file11,
2081
+ F: __dxlog_file10,
2104
2082
  L: 152,
2105
2083
  S: this,
2106
2084
  C: (f, a) => f(...a)
@@ -2138,7 +2116,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2138
2116
  log8.error("invalid authentication method", {
2139
2117
  authMethod: invitation.authMethod
2140
2118
  }, {
2141
- F: __dxlog_file11,
2119
+ F: __dxlog_file10,
2142
2120
  L: 190,
2143
2121
  S: this,
2144
2122
  C: (f, a) => f(...a)
@@ -2163,7 +2141,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2163
2141
  status
2164
2142
  }
2165
2143
  }), {
2166
- F: __dxlog_file11,
2144
+ F: __dxlog_file10,
2167
2145
  L: 202,
2168
2146
  S: this,
2169
2147
  C: (f, a) => f(...a)
@@ -2177,7 +2155,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2177
2155
  log8.trace("dxos.sdk.invitation-handler.host.admit", trace4.begin({
2178
2156
  id: traceId
2179
2157
  }), {
2180
- F: __dxlog_file11,
2158
+ F: __dxlog_file10,
2181
2159
  L: 208,
2182
2160
  S: this,
2183
2161
  C: (f, a) => f(...a)
@@ -2194,7 +2172,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2194
2172
  log8.trace("dxos.sdk.invitation-handler.host.admit", trace4.end({
2195
2173
  id: traceId
2196
2174
  }), {
2197
- F: __dxlog_file11,
2175
+ F: __dxlog_file10,
2198
2176
  L: 222,
2199
2177
  S: this,
2200
2178
  C: (f, a) => f(...a)
@@ -2212,14 +2190,14 @@ var InvitationHostExtension = class extends RpcExtension2 {
2212
2190
  await super.onOpen(context);
2213
2191
  try {
2214
2192
  log8("host acquire lock", void 0, {
2215
- F: __dxlog_file11,
2193
+ F: __dxlog_file10,
2216
2194
  L: 237,
2217
2195
  S: this,
2218
2196
  C: (f, a) => f(...a)
2219
2197
  });
2220
2198
  this._invitationFlowLock = await tryAcquireBeforeContextDisposed(this._ctx, this._invitationFlowMutex);
2221
2199
  log8("host lock acquired", void 0, {
2222
- F: __dxlog_file11,
2200
+ F: __dxlog_file10,
2223
2201
  L: 239,
2224
2202
  S: this,
2225
2203
  C: (f, a) => f(...a)
@@ -2230,7 +2208,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2230
2208
  role: Options2.Role.HOST
2231
2209
  });
2232
2210
  log8("options sent", void 0, {
2233
- F: __dxlog_file11,
2211
+ F: __dxlog_file10,
2234
2212
  L: 243,
2235
2213
  S: this,
2236
2214
  C: (f, a) => f(...a)
@@ -2239,7 +2217,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2239
2217
  timeout: OPTIONS_TIMEOUT2
2240
2218
  }));
2241
2219
  log8("options received", void 0, {
2242
- F: __dxlog_file11,
2220
+ F: __dxlog_file10,
2243
2221
  L: 245,
2244
2222
  S: this,
2245
2223
  C: (f, a) => f(...a)
@@ -2293,7 +2271,7 @@ var InvitationHostExtension = class extends RpcExtension2 {
2293
2271
  this._invitationFlowLock?.release();
2294
2272
  this._invitationFlowLock = null;
2295
2273
  log8("invitation flow lock released", void 0, {
2296
- F: __dxlog_file11,
2274
+ F: __dxlog_file10,
2297
2275
  L: 300,
2298
2276
  S: this,
2299
2277
  C: (f, a) => f(...a)
@@ -2309,7 +2287,7 @@ import { PublicKey as PublicKey6 } from "@dxos/keys";
2309
2287
  import { log as log9 } from "@dxos/log";
2310
2288
  import { Options as Options3 } from "@dxos/protocols/proto/dxos/halo/invitations";
2311
2289
  import { ComplexSet as ComplexSet2 } from "@dxos/util";
2312
- var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
2290
+ var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-topology.ts";
2313
2291
  var InvitationTopology = class {
2314
2292
  constructor(_role) {
2315
2293
  this._role = _role;
@@ -2317,7 +2295,7 @@ var InvitationTopology = class {
2317
2295
  }
2318
2296
  init(controller) {
2319
2297
  invariant8(!this._controller, "Already initialized.", {
2320
- F: __dxlog_file12,
2298
+ F: __dxlog_file11,
2321
2299
  L: 42,
2322
2300
  S: this,
2323
2301
  A: [
@@ -2329,7 +2307,7 @@ var InvitationTopology = class {
2329
2307
  }
2330
2308
  update() {
2331
2309
  invariant8(this._controller, "Not initialized.", {
2332
- F: __dxlog_file12,
2310
+ F: __dxlog_file11,
2333
2311
  L: 47,
2334
2312
  S: this,
2335
2313
  A: [
@@ -2352,7 +2330,7 @@ var InvitationTopology = class {
2352
2330
  ownPeerId,
2353
2331
  remotePeerId: firstUnknownPeer
2354
2332
  }, {
2355
- F: __dxlog_file12,
2333
+ F: __dxlog_file11,
2356
2334
  L: 69,
2357
2335
  S: this,
2358
2336
  C: (f, a) => f(...a)
@@ -2363,7 +2341,7 @@ var InvitationTopology = class {
2363
2341
  }
2364
2342
  async onOffer(peer) {
2365
2343
  invariant8(this._controller, "Not initialized.", {
2366
- F: __dxlog_file12,
2344
+ F: __dxlog_file11,
2367
2345
  L: 76,
2368
2346
  S: this,
2369
2347
  A: [
@@ -2382,7 +2360,7 @@ var InvitationTopology = class {
2382
2360
  };
2383
2361
 
2384
2362
  // packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts
2385
- var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
2363
+ var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
2386
2364
  var MAX_DELEGATED_INVITATION_HOST_TRIES = 3;
2387
2365
  var InvitationsHandler = class {
2388
2366
  /**
@@ -2407,7 +2385,7 @@ var InvitationsHandler = class {
2407
2385
  try {
2408
2386
  const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
2409
2387
  invariant9(deviceKey, void 0, {
2410
- F: __dxlog_file13,
2388
+ F: __dxlog_file12,
2411
2389
  L: 90,
2412
2390
  S: this,
2413
2391
  A: [
@@ -2436,7 +2414,7 @@ var InvitationsHandler = class {
2436
2414
  log10.trace("dxos.sdk.invitations-handler.host.onOpen", trace5.begin({
2437
2415
  id: traceId
2438
2416
  }), {
2439
- F: __dxlog_file13,
2417
+ F: __dxlog_file12,
2440
2418
  L: 115,
2441
2419
  S: this,
2442
2420
  C: (f, a) => f(...a)
@@ -2444,7 +2422,7 @@ var InvitationsHandler = class {
2444
2422
  log10("connected", {
2445
2423
  ...protocol.toJSON()
2446
2424
  }, {
2447
- F: __dxlog_file13,
2425
+ F: __dxlog_file12,
2448
2426
  L: 116,
2449
2427
  S: this,
2450
2428
  C: (f, a) => f(...a)
@@ -2456,7 +2434,7 @@ var InvitationsHandler = class {
2456
2434
  guest: deviceKey,
2457
2435
  ...protocol.toJSON()
2458
2436
  }, {
2459
- F: __dxlog_file13,
2437
+ F: __dxlog_file12,
2460
2438
  L: 118,
2461
2439
  S: this,
2462
2440
  C: (f, a) => f(...a)
@@ -2465,7 +2443,7 @@ var InvitationsHandler = class {
2465
2443
  log10.trace("dxos.sdk.invitations-handler.host.onOpen", trace5.end({
2466
2444
  id: traceId
2467
2445
  }), {
2468
- F: __dxlog_file13,
2446
+ F: __dxlog_file12,
2469
2447
  L: 120,
2470
2448
  S: this,
2471
2449
  C: (f, a) => f(...a)
@@ -2480,7 +2458,7 @@ var InvitationsHandler = class {
2480
2458
  log10("timeout", {
2481
2459
  ...protocol.toJSON()
2482
2460
  }, {
2483
- F: __dxlog_file13,
2461
+ F: __dxlog_file12,
2484
2462
  L: 129,
2485
2463
  S: this,
2486
2464
  C: (f, a) => f(...a)
@@ -2489,7 +2467,7 @@ var InvitationsHandler = class {
2489
2467
  } else {
2490
2468
  if (guardedState.error(extension, err)) {
2491
2469
  log10.error("failed", err, {
2492
- F: __dxlog_file13,
2470
+ F: __dxlog_file12,
2493
2471
  L: 133,
2494
2472
  S: this,
2495
2473
  C: (f, a) => f(...a)
@@ -2500,7 +2478,7 @@ var InvitationsHandler = class {
2500
2478
  id: traceId,
2501
2479
  error: err
2502
2480
  }), {
2503
- F: __dxlog_file13,
2481
+ F: __dxlog_file12,
2504
2482
  L: 136,
2505
2483
  S: this,
2506
2484
  C: (f, a) => f(...a)
@@ -2514,7 +2492,7 @@ var InvitationsHandler = class {
2514
2492
  log10("invalid role", {
2515
2493
  ...err.context
2516
2494
  }, {
2517
- F: __dxlog_file13,
2495
+ F: __dxlog_file12,
2518
2496
  L: 144,
2519
2497
  S: this,
2520
2498
  C: (f, a) => f(...a)
@@ -2526,7 +2504,7 @@ var InvitationsHandler = class {
2526
2504
  log10("timeout", {
2527
2505
  err
2528
2506
  }, {
2529
- F: __dxlog_file13,
2507
+ F: __dxlog_file12,
2530
2508
  L: 149,
2531
2509
  S: this,
2532
2510
  C: (f, a) => f(...a)
@@ -2535,7 +2513,7 @@ var InvitationsHandler = class {
2535
2513
  } else {
2536
2514
  if (guardedState.error(extension, err)) {
2537
2515
  log10.error("failed", err, {
2538
- F: __dxlog_file13,
2516
+ F: __dxlog_file12,
2539
2517
  L: 153,
2540
2518
  S: this,
2541
2519
  C: (f, a) => f(...a)
@@ -2549,7 +2527,7 @@ var InvitationsHandler = class {
2549
2527
  if (invitation.lifetime && invitation.created) {
2550
2528
  if (invitation.created.getTime() + invitation.lifetime * 1e3 < Date.now()) {
2551
2529
  log10.warn("invitation has already expired", void 0, {
2552
- F: __dxlog_file13,
2530
+ F: __dxlog_file12,
2553
2531
  L: 164,
2554
2532
  S: this,
2555
2533
  C: (f, a) => f(...a)
@@ -2572,7 +2550,7 @@ var InvitationsHandler = class {
2572
2550
  const { timeout = INVITATION_TIMEOUT } = invitation;
2573
2551
  if (deviceProfile) {
2574
2552
  invariant9(invitation.kind === Invitation4.Kind.DEVICE, "deviceProfile provided for non-device invitation", {
2575
- F: __dxlog_file13,
2553
+ F: __dxlog_file12,
2576
2554
  L: 197,
2577
2555
  S: this,
2578
2556
  A: [
@@ -2590,7 +2568,7 @@ var InvitationsHandler = class {
2590
2568
  invitationType: Invitation4.Type.DELEGATED,
2591
2569
  triedPeers: triedPeersIds.size
2592
2570
  }, {
2593
- F: __dxlog_file13,
2571
+ F: __dxlog_file12,
2594
2572
  L: 205,
2595
2573
  S: this,
2596
2574
  C: (f, a) => f(...a)
@@ -2617,7 +2595,7 @@ var InvitationsHandler = class {
2617
2595
  admitted,
2618
2596
  currentState: guardedState.current.state
2619
2597
  }, {
2620
- F: __dxlog_file13,
2598
+ F: __dxlog_file12,
2621
2599
  L: 233,
2622
2600
  S: this,
2623
2601
  C: (f, a) => f(...a)
@@ -2635,7 +2613,7 @@ var InvitationsHandler = class {
2635
2613
  log10.trace("dxos.sdk.invitations-handler.guest.onOpen", trace5.begin({
2636
2614
  id: traceId
2637
2615
  }), {
2638
- F: __dxlog_file13,
2616
+ F: __dxlog_file12,
2639
2617
  L: 245,
2640
2618
  S: this,
2641
2619
  C: (f, a) => f(...a)
@@ -2647,7 +2625,7 @@ var InvitationsHandler = class {
2647
2625
  log10("connected", {
2648
2626
  ...protocol.toJSON()
2649
2627
  }, {
2650
- F: __dxlog_file13,
2628
+ F: __dxlog_file12,
2651
2629
  L: 256,
2652
2630
  S: this,
2653
2631
  C: (f, a) => f(...a)
@@ -2656,7 +2634,7 @@ var InvitationsHandler = class {
2656
2634
  log10("introduce", {
2657
2635
  ...protocol.toJSON()
2658
2636
  }, {
2659
- F: __dxlog_file13,
2637
+ F: __dxlog_file12,
2660
2638
  L: 260,
2661
2639
  S: this,
2662
2640
  C: (f, a) => f(...a)
@@ -2669,7 +2647,7 @@ var InvitationsHandler = class {
2669
2647
  ...protocol.toJSON(),
2670
2648
  response: introductionResponse
2671
2649
  }, {
2672
- F: __dxlog_file13,
2650
+ F: __dxlog_file12,
2673
2651
  L: 265,
2674
2652
  S: this,
2675
2653
  C: (f, a) => f(...a)
@@ -2690,7 +2668,7 @@ var InvitationsHandler = class {
2690
2668
  log10("request admission", {
2691
2669
  ...protocol.toJSON()
2692
2670
  }, {
2693
- F: __dxlog_file13,
2671
+ F: __dxlog_file12,
2694
2672
  L: 291,
2695
2673
  S: this,
2696
2674
  C: (f, a) => f(...a)
@@ -2702,7 +2680,7 @@ var InvitationsHandler = class {
2702
2680
  log10("admitted by host", {
2703
2681
  ...protocol.toJSON()
2704
2682
  }, {
2705
- F: __dxlog_file13,
2683
+ F: __dxlog_file12,
2706
2684
  L: 302,
2707
2685
  S: this,
2708
2686
  C: (f, a) => f(...a)
@@ -2715,7 +2693,7 @@ var InvitationsHandler = class {
2715
2693
  log10.trace("dxos.sdk.invitations-handler.guest.onOpen", trace5.end({
2716
2694
  id: traceId
2717
2695
  }), {
2718
- F: __dxlog_file13,
2696
+ F: __dxlog_file12,
2719
2697
  L: 308,
2720
2698
  S: this,
2721
2699
  C: (f, a) => f(...a)
@@ -2725,7 +2703,7 @@ var InvitationsHandler = class {
2725
2703
  log10("timeout", {
2726
2704
  ...protocol.toJSON()
2727
2705
  }, {
2728
- F: __dxlog_file13,
2706
+ F: __dxlog_file12,
2729
2707
  L: 311,
2730
2708
  S: this,
2731
2709
  C: (f, a) => f(...a)
@@ -2733,7 +2711,7 @@ var InvitationsHandler = class {
2733
2711
  guardedState.set(extension, Invitation4.State.TIMEOUT);
2734
2712
  } else {
2735
2713
  log10("auth failed", err, {
2736
- F: __dxlog_file13,
2714
+ F: __dxlog_file12,
2737
2715
  L: 314,
2738
2716
  S: this,
2739
2717
  C: (f, a) => f(...a)
@@ -2745,7 +2723,7 @@ var InvitationsHandler = class {
2745
2723
  id: traceId,
2746
2724
  error: err
2747
2725
  }), {
2748
- F: __dxlog_file13,
2726
+ F: __dxlog_file12,
2749
2727
  L: 318,
2750
2728
  S: this,
2751
2729
  C: (f, a) => f(...a)
@@ -2761,7 +2739,7 @@ var InvitationsHandler = class {
2761
2739
  log10("timeout", {
2762
2740
  ...protocol.toJSON()
2763
2741
  }, {
2764
- F: __dxlog_file13,
2742
+ F: __dxlog_file12,
2765
2743
  L: 327,
2766
2744
  S: this,
2767
2745
  C: (f, a) => f(...a)
@@ -2769,7 +2747,7 @@ var InvitationsHandler = class {
2769
2747
  guardedState.set(extension, Invitation4.State.TIMEOUT);
2770
2748
  } else {
2771
2749
  log10("auth failed", err, {
2772
- F: __dxlog_file13,
2750
+ F: __dxlog_file12,
2773
2751
  L: 330,
2774
2752
  S: this,
2775
2753
  C: (f, a) => f(...a)
@@ -2787,7 +2765,7 @@ var InvitationsHandler = class {
2787
2765
  await ctx.dispose();
2788
2766
  } else {
2789
2767
  invariant9(invitation.swarmKey, void 0, {
2790
- F: __dxlog_file13,
2768
+ F: __dxlog_file12,
2791
2769
  L: 345,
2792
2770
  S: this,
2793
2771
  A: [
@@ -2881,29 +2859,16 @@ var InvitationsHandler = class {
2881
2859
  };
2882
2860
  }
2883
2861
  _logStateUpdate(invitation, actor, newState) {
2884
- if (this._isNotTerminal(newState)) {
2885
- log10("invitation state update", {
2886
- actor: actor?.constructor.name,
2887
- newState: stateToString(newState),
2888
- oldState: stateToString(invitation.state)
2889
- }, {
2890
- F: __dxlog_file13,
2891
- L: 439,
2892
- S: this,
2893
- C: (f, a) => f(...a)
2894
- });
2895
- } else {
2896
- log10.info("invitation state update", {
2897
- actor: actor?.constructor.name,
2898
- newState: stateToString(newState),
2899
- oldState: stateToString(invitation.state)
2900
- }, {
2901
- F: __dxlog_file13,
2902
- L: 445,
2903
- S: this,
2904
- C: (f, a) => f(...a)
2905
- });
2906
- }
2862
+ log10("invitation state update", {
2863
+ actor: actor?.constructor.name,
2864
+ newState: stateToString(newState),
2865
+ oldState: stateToString(invitation.state)
2866
+ }, {
2867
+ F: __dxlog_file12,
2868
+ L: 438,
2869
+ S: this,
2870
+ C: (f, a) => f(...a)
2871
+ });
2907
2872
  }
2908
2873
  _isNotTerminal(currentState) {
2909
2874
  return ![
@@ -2917,16 +2882,16 @@ var InvitationsHandler = class {
2917
2882
  async _handleGuestOtpAuth(extension, setState, authenticated, options) {
2918
2883
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
2919
2884
  log10("guest waiting for authentication code...", void 0, {
2920
- F: __dxlog_file13,
2921
- L: 470,
2885
+ F: __dxlog_file12,
2886
+ L: 462,
2922
2887
  S: this,
2923
2888
  C: (f, a) => f(...a)
2924
2889
  });
2925
2890
  setState(Invitation4.State.READY_FOR_AUTHENTICATION);
2926
2891
  const authCode = await authenticated.wait(options);
2927
2892
  log10("sending authentication request", void 0, {
2928
- F: __dxlog_file13,
2929
- L: 474,
2893
+ F: __dxlog_file12,
2894
+ L: 466,
2930
2895
  S: this,
2931
2896
  C: (f, a) => f(...a)
2932
2897
  });
@@ -2944,8 +2909,8 @@ var InvitationsHandler = class {
2944
2909
  log10("retrying invalid code", {
2945
2910
  attempt
2946
2911
  }, {
2947
- F: __dxlog_file13,
2948
- L: 485,
2912
+ F: __dxlog_file12,
2913
+ L: 477,
2949
2914
  S: this,
2950
2915
  C: (f, a) => f(...a)
2951
2916
  });
@@ -2962,8 +2927,8 @@ var InvitationsHandler = class {
2962
2927
  throw new Error("challenge missing in the introduction");
2963
2928
  }
2964
2929
  log10("sending authentication request", void 0, {
2965
- F: __dxlog_file13,
2966
- L: 504,
2930
+ F: __dxlog_file12,
2931
+ L: 496,
2967
2932
  S: this,
2968
2933
  C: (f, a) => f(...a)
2969
2934
  });
@@ -3083,14 +3048,14 @@ var InvitationsServiceImpl = class {
3083
3048
  };
3084
3049
 
3085
3050
  // packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts
3086
- import { createCancelDelegatedSpaceInvitationCredential, createDelegatedSpaceInvitationCredential, getCredentialAssertion as getCredentialAssertion2 } from "@dxos/credentials";
3051
+ import { createAdmissionCredentials, createCancelDelegatedSpaceInvitationCredential, createDelegatedSpaceInvitationCredential, getCredentialAssertion as getCredentialAssertion2 } from "@dxos/credentials";
3087
3052
  import { writeMessages as writeMessages2 } from "@dxos/feed-store";
3088
3053
  import { invariant as invariant10 } from "@dxos/invariant";
3089
3054
  import { log as log11 } from "@dxos/log";
3090
3055
  import { AlreadyJoinedError as AlreadyJoinedError2, AuthorizationError, InvalidInvitationError, SpaceNotFoundError } from "@dxos/protocols";
3091
3056
  import { Invitation as Invitation5 } from "@dxos/protocols/proto/dxos/client/services";
3092
3057
  import { SpaceMember as SpaceMember2 } from "@dxos/protocols/proto/dxos/halo/credentials";
3093
- var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
3058
+ var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
3094
3059
  var SpaceInvitationProtocol = class {
3095
3060
  constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
3096
3061
  this._spaceManager = _spaceManager;
@@ -3124,43 +3089,79 @@ var SpaceInvitationProtocol = class {
3124
3089
  };
3125
3090
  }
3126
3091
  async admit(invitation, request, guestProfile) {
3127
- invariant10(this._spaceKey && request.space, void 0, {
3128
- F: __dxlog_file14,
3129
- L: 74,
3092
+ invariant10(this._spaceKey, void 0, {
3093
+ F: __dxlog_file13,
3094
+ L: 76,
3095
+ S: this,
3096
+ A: [
3097
+ "this._spaceKey",
3098
+ ""
3099
+ ]
3100
+ });
3101
+ const space = this._spaceManager.spaces.get(this._spaceKey);
3102
+ invariant10(space, void 0, {
3103
+ F: __dxlog_file13,
3104
+ L: 78,
3105
+ S: this,
3106
+ A: [
3107
+ "space",
3108
+ ""
3109
+ ]
3110
+ });
3111
+ invariant10(request.space, void 0, {
3112
+ F: __dxlog_file13,
3113
+ L: 80,
3130
3114
  S: this,
3131
3115
  A: [
3132
- "this._spaceKey && request.space",
3116
+ "request.space",
3133
3117
  ""
3134
3118
  ]
3135
3119
  });
3120
+ const { identityKey, deviceKey } = request.space;
3121
+ if (space.inner.spaceState.getMemberRole(identityKey) !== SpaceMember2.Role.REMOVED) {
3122
+ throw new AlreadyJoinedError2();
3123
+ }
3136
3124
  log11("writing guest credentials", {
3137
3125
  host: this._signingContext.deviceKey,
3138
- guest: request.space.deviceKey
3126
+ guest: deviceKey
3139
3127
  }, {
3140
- F: __dxlog_file14,
3141
- L: 75,
3128
+ F: __dxlog_file13,
3129
+ L: 87,
3142
3130
  S: this,
3143
3131
  C: (f, a) => f(...a)
3144
3132
  });
3145
- const spaceMemberCredential = await this._spaceManager.admitMember({
3146
- spaceKey: this._spaceKey,
3147
- identityKey: request.space.identityKey,
3148
- role: invitation.role ?? SpaceMember2.Role.ADMIN,
3149
- profile: guestProfile,
3150
- delegationCredentialId: invitation.delegationCredentialId
3133
+ const credentials = await createAdmissionCredentials(this._signingContext.credentialSigner, identityKey, space.key, space.inner.genesisFeedKey, invitation.role ?? SpaceMember2.Role.ADMIN, space.inner.spaceState.membershipChainHeads, guestProfile, invitation.delegationCredentialId);
3134
+ invariant10(credentials[0].credential, void 0, {
3135
+ F: __dxlog_file13,
3136
+ L: 101,
3137
+ S: this,
3138
+ A: [
3139
+ "credentials[0].credential",
3140
+ ""
3141
+ ]
3151
3142
  });
3152
- const space = this._spaceManager.spaces.get(this._spaceKey);
3143
+ const spaceMemberCredential = credentials[0].credential.credential;
3144
+ invariant10(getCredentialAssertion2(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
3145
+ F: __dxlog_file13,
3146
+ L: 103,
3147
+ S: this,
3148
+ A: [
3149
+ "getCredentialAssertion(spaceMemberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
3150
+ ""
3151
+ ]
3152
+ });
3153
+ await writeMessages2(space.inner.controlPipeline.writer, credentials);
3153
3154
  return {
3154
3155
  space: {
3155
3156
  credential: spaceMemberCredential,
3156
- controlTimeframe: space?.inner.controlPipeline.state.timeframe
3157
+ controlTimeframe: space.inner.controlPipeline.state.timeframe
3157
3158
  }
3158
3159
  };
3159
3160
  }
3160
3161
  async delegate(invitation) {
3161
3162
  invariant10(this._spaceKey, void 0, {
3162
- F: __dxlog_file14,
3163
- L: 95,
3163
+ F: __dxlog_file13,
3164
+ L: 116,
3164
3165
  S: this,
3165
3166
  A: [
3166
3167
  "this._spaceKey",
@@ -3169,8 +3170,8 @@ var SpaceInvitationProtocol = class {
3169
3170
  });
3170
3171
  const space = this._spaceManager.spaces.get(this._spaceKey);
3171
3172
  invariant10(space, void 0, {
3172
- F: __dxlog_file14,
3173
- L: 97,
3173
+ F: __dxlog_file13,
3174
+ L: 118,
3174
3175
  S: this,
3175
3176
  A: [
3176
3177
  "space",
@@ -3179,8 +3180,8 @@ var SpaceInvitationProtocol = class {
3179
3180
  });
3180
3181
  if (invitation.authMethod === Invitation5.AuthMethod.KNOWN_PUBLIC_KEY) {
3181
3182
  invariant10(invitation.guestKeypair?.publicKey, void 0, {
3182
- F: __dxlog_file14,
3183
- L: 99,
3183
+ F: __dxlog_file13,
3184
+ L: 120,
3184
3185
  S: this,
3185
3186
  A: [
3186
3187
  "invitation.guestKeypair?.publicKey",
@@ -3192,8 +3193,8 @@ var SpaceInvitationProtocol = class {
3192
3193
  host: this._signingContext.deviceKey,
3193
3194
  id: invitation.invitationId
3194
3195
  }, {
3195
- F: __dxlog_file14,
3196
- L: 102,
3196
+ F: __dxlog_file13,
3197
+ L: 123,
3197
3198
  S: this,
3198
3199
  C: (f, a) => f(...a)
3199
3200
  });
@@ -3207,8 +3208,8 @@ var SpaceInvitationProtocol = class {
3207
3208
  guestKey: invitation.authMethod === Invitation5.AuthMethod.KNOWN_PUBLIC_KEY ? invitation.guestKeypair.publicKey : void 0
3208
3209
  });
3209
3210
  invariant10(credential.credential, void 0, {
3210
- F: __dxlog_file14,
3211
- L: 122,
3211
+ F: __dxlog_file13,
3212
+ L: 143,
3212
3213
  S: this,
3213
3214
  A: [
3214
3215
  "credential.credential",
@@ -3222,8 +3223,8 @@ var SpaceInvitationProtocol = class {
3222
3223
  }
3223
3224
  async cancelDelegation(invitation) {
3224
3225
  invariant10(this._spaceKey, void 0, {
3225
- F: __dxlog_file14,
3226
- L: 128,
3226
+ F: __dxlog_file13,
3227
+ L: 149,
3227
3228
  S: this,
3228
3229
  A: [
3229
3230
  "this._spaceKey",
@@ -3231,8 +3232,8 @@ var SpaceInvitationProtocol = class {
3231
3232
  ]
3232
3233
  });
3233
3234
  invariant10(invitation.type === Invitation5.Type.DELEGATED && invitation.delegationCredentialId, void 0, {
3234
- F: __dxlog_file14,
3235
- L: 129,
3235
+ F: __dxlog_file13,
3236
+ L: 150,
3236
3237
  S: this,
3237
3238
  A: [
3238
3239
  "invitation.type === Invitation.Type.DELEGATED && invitation.delegationCredentialId",
@@ -3241,8 +3242,8 @@ var SpaceInvitationProtocol = class {
3241
3242
  });
3242
3243
  const space = this._spaceManager.spaces.get(this._spaceKey);
3243
3244
  invariant10(space, void 0, {
3244
- F: __dxlog_file14,
3245
- L: 131,
3245
+ F: __dxlog_file13,
3246
+ L: 152,
3246
3247
  S: this,
3247
3248
  A: [
3248
3249
  "space",
@@ -3253,15 +3254,15 @@ var SpaceInvitationProtocol = class {
3253
3254
  host: this._signingContext.deviceKey,
3254
3255
  id: invitation.invitationId
3255
3256
  }, {
3256
- F: __dxlog_file14,
3257
- L: 133,
3257
+ F: __dxlog_file13,
3258
+ L: 154,
3258
3259
  S: this,
3259
3260
  C: (f, a) => f(...a)
3260
3261
  });
3261
3262
  const credential = await createCancelDelegatedSpaceInvitationCredential(this._signingContext.credentialSigner, space.key, invitation.delegationCredentialId);
3262
3263
  invariant10(credential.credential, void 0, {
3263
- F: __dxlog_file14,
3264
- L: 140,
3264
+ F: __dxlog_file13,
3265
+ L: 161,
3265
3266
  S: this,
3266
3267
  A: [
3267
3268
  "credential.credential",
@@ -3299,8 +3300,8 @@ var SpaceInvitationProtocol = class {
3299
3300
  }
3300
3301
  async accept(response) {
3301
3302
  invariant10(response.space, void 0, {
3302
- F: __dxlog_file14,
3303
- L: 175,
3303
+ F: __dxlog_file13,
3304
+ L: 196,
3304
3305
  S: this,
3305
3306
  A: [
3306
3307
  "response.space",
@@ -3310,8 +3311,8 @@ var SpaceInvitationProtocol = class {
3310
3311
  const { credential, controlTimeframe, dataTimeframe } = response.space;
3311
3312
  const assertion = getCredentialAssertion2(credential);
3312
3313
  invariant10(assertion["@type"] === "dxos.halo.credentials.SpaceMember", "Invalid credential", {
3313
- F: __dxlog_file14,
3314
- L: 178,
3314
+ F: __dxlog_file13,
3315
+ L: 199,
3315
3316
  S: this,
3316
3317
  A: [
3317
3318
  "assertion['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -3319,8 +3320,8 @@ var SpaceInvitationProtocol = class {
3319
3320
  ]
3320
3321
  });
3321
3322
  invariant10(credential.subject.id.equals(this._signingContext.identityKey), void 0, {
3322
- F: __dxlog_file14,
3323
- L: 179,
3323
+ F: __dxlog_file13,
3324
+ L: 200,
3324
3325
  S: this,
3325
3326
  A: [
3326
3327
  "credential.subject.id.equals(this._signingContext.identityKey)",
@@ -3354,7 +3355,7 @@ import { PublicKey as PublicKey8 } from "@dxos/keys";
3354
3355
  import { log as log12 } from "@dxos/log";
3355
3356
  import { Invitation as Invitation6 } from "@dxos/protocols/proto/dxos/client/services";
3356
3357
  import { SpaceMember as SpaceMember3 } from "@dxos/protocols/proto/dxos/halo/credentials";
3357
- var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
3358
+ var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-manager.ts";
3358
3359
  var InvitationsManager = class {
3359
3360
  constructor(_invitationsHandler, _getHandler, _metadataStore) {
3360
3361
  this._invitationsHandler = _invitationsHandler;
@@ -3397,7 +3398,7 @@ var InvitationsManager = class {
3397
3398
  await this._persistIfRequired(handler, stream, invitation);
3398
3399
  } catch (err) {
3399
3400
  log12.catch(err, void 0, {
3400
- F: __dxlog_file15,
3401
+ F: __dxlog_file14,
3401
3402
  L: 82,
3402
3403
  S: this,
3403
3404
  C: (f, a) => f(...a)
@@ -3420,7 +3421,7 @@ var InvitationsManager = class {
3420
3421
  const freshInvitations = persistentInvitations.filter((invitation) => !hasInvitationExpired(invitation));
3421
3422
  const loadTasks = freshInvitations.map((persistentInvitation) => {
3422
3423
  invariant11(!this._createInvitations.get(persistentInvitation.invitationId), "invitation already exists", {
3423
- F: __dxlog_file15,
3424
+ F: __dxlog_file14,
3424
3425
  L: 103,
3425
3426
  S: this,
3426
3427
  A: [
@@ -3439,7 +3440,7 @@ var InvitationsManager = class {
3439
3440
  };
3440
3441
  } catch (err) {
3441
3442
  log12.catch(err, void 0, {
3442
- F: __dxlog_file15,
3443
+ F: __dxlog_file14,
3443
3444
  L: 110,
3444
3445
  S: this,
3445
3446
  C: (f, a) => f(...a)
@@ -3471,13 +3472,13 @@ var InvitationsManager = class {
3471
3472
  }
3472
3473
  async authenticate({ invitationId, authCode }) {
3473
3474
  log12("authenticating...", void 0, {
3474
- F: __dxlog_file15,
3475
+ F: __dxlog_file14,
3475
3476
  L: 140,
3476
3477
  S: this,
3477
3478
  C: (f, a) => f(...a)
3478
3479
  });
3479
3480
  invariant11(invitationId, void 0, {
3480
- F: __dxlog_file15,
3481
+ F: __dxlog_file14,
3481
3482
  L: 141,
3482
3483
  S: this,
3483
3484
  A: [
@@ -3490,7 +3491,7 @@ var InvitationsManager = class {
3490
3491
  log12.warn("invalid invitation", {
3491
3492
  invitationId
3492
3493
  }, {
3493
- F: __dxlog_file15,
3494
+ F: __dxlog_file14,
3494
3495
  L: 144,
3495
3496
  S: this,
3496
3497
  C: (f, a) => f(...a)
@@ -3503,13 +3504,13 @@ var InvitationsManager = class {
3503
3504
  log12("cancelInvitation...", {
3504
3505
  invitationId
3505
3506
  }, {
3506
- F: __dxlog_file15,
3507
+ F: __dxlog_file14,
3507
3508
  L: 151,
3508
3509
  S: this,
3509
3510
  C: (f, a) => f(...a)
3510
3511
  });
3511
3512
  invariant11(invitationId, void 0, {
3512
- F: __dxlog_file15,
3513
+ F: __dxlog_file14,
3513
3514
  L: 152,
3514
3515
  S: this,
3515
3516
  A: [
@@ -3583,15 +3584,12 @@ var InvitationsManager = class {
3583
3584
  stream.error(err);
3584
3585
  void ctx.dispose();
3585
3586
  }
3586
- }, {
3587
- F: __dxlog_file15,
3588
- L: 234
3589
3587
  });
3590
3588
  ctx.onDispose(() => {
3591
3589
  log12("complete", {
3592
3590
  ...handler.toJSON()
3593
3591
  }, {
3594
- F: __dxlog_file15,
3592
+ F: __dxlog_file14,
3595
3593
  L: 241,
3596
3594
  S: this,
3597
3595
  C: (f, a) => f(...a)
@@ -3624,7 +3622,7 @@ var InvitationsManager = class {
3624
3622
  log12("timeout", {
3625
3623
  ...handler.toJSON()
3626
3624
  }, {
3627
- F: __dxlog_file15,
3625
+ F: __dxlog_file14,
3628
3626
  L: 261,
3629
3627
  S: this,
3630
3628
  C: (f, a) => f(...a)
@@ -3635,7 +3633,7 @@ var InvitationsManager = class {
3635
3633
  });
3636
3634
  } else {
3637
3635
  log12.warn("auth failed", err, {
3638
- F: __dxlog_file15,
3636
+ F: __dxlog_file14,
3639
3637
  L: 264,
3640
3638
  S: this,
3641
3639
  C: (f, a) => f(...a)
@@ -3647,15 +3645,12 @@ var InvitationsManager = class {
3647
3645
  }
3648
3646
  void ctx.dispose();
3649
3647
  }
3650
- }, {
3651
- F: __dxlog_file15,
3652
- L: 258
3653
3648
  });
3654
3649
  ctx.onDispose(() => {
3655
3650
  log12("complete", {
3656
3651
  ...handler.toJSON()
3657
3652
  }, {
3658
- F: __dxlog_file15,
3653
+ F: __dxlog_file14,
3659
3654
  L: 271,
3660
3655
  S: this,
3661
3656
  C: (f, a) => f(...a)
@@ -3700,7 +3695,7 @@ var InvitationsManager = class {
3700
3695
  await this._metadataStore.removeInvitation(invitation.invitationId);
3701
3696
  } catch (err) {
3702
3697
  log12.catch(err, void 0, {
3703
- F: __dxlog_file15,
3698
+ F: __dxlog_file14,
3704
3699
  L: 307,
3705
3700
  S: this,
3706
3701
  C: (f, a) => f(...a)
@@ -3787,7 +3782,7 @@ import { invariant as invariant12 } from "@dxos/invariant";
3787
3782
  import { log as log13 } from "@dxos/log";
3788
3783
  import { CreateEpochRequest } from "@dxos/protocols/proto/dxos/client/services";
3789
3784
  import { assignDeep } from "@dxos/util";
3790
- var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
3785
+ var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/epoch-migrations.ts";
3791
3786
  var runEpochMigration = async (ctx, context) => {
3792
3787
  switch (context.migration) {
3793
3788
  case CreateEpochRequest.Migration.INIT_AUTOMERGE: {
@@ -3811,7 +3806,7 @@ var runEpochMigration = async (ctx, context) => {
3811
3806
  }
3812
3807
  case CreateEpochRequest.Migration.FRAGMENT_AUTOMERGE_ROOT: {
3813
3808
  log13.info("Fragmenting", void 0, {
3814
- F: __dxlog_file16,
3809
+ F: __dxlog_file15,
3815
3810
  L: 63,
3816
3811
  S: void 0,
3817
3812
  C: (f, a) => f(...a)
@@ -3823,7 +3818,7 @@ var runEpochMigration = async (ctx, context) => {
3823
3818
  const properties = findInlineObjectOfType(rootHandle.docSync(), TYPE_PROPERTIES);
3824
3819
  const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
3825
3820
  invariant12(properties, "Properties not found", {
3826
- F: __dxlog_file16,
3821
+ F: __dxlog_file15,
3827
3822
  L: 73,
3828
3823
  S: void 0,
3829
3824
  A: [
@@ -3839,7 +3834,7 @@ var runEpochMigration = async (ctx, context) => {
3839
3834
  };
3840
3835
  const newRoot = context.repo.create(newSpaceDoc);
3841
3836
  invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
3842
- F: __dxlog_file16,
3837
+ F: __dxlog_file15,
3843
3838
  L: 78,
3844
3839
  S: void 0,
3845
3840
  A: [
@@ -3870,7 +3865,7 @@ var runEpochMigration = async (ctx, context) => {
3870
3865
  const rootHandle = context.repo.find(currentRootUrl);
3871
3866
  await cancelWithContext4(ctx, asyncTimeout2(rootHandle.whenReady(), 1e4));
3872
3867
  invariant12(rootHandle.docSync(), "Root doc not found", {
3873
- F: __dxlog_file16,
3868
+ F: __dxlog_file15,
3874
3869
  L: 100,
3875
3870
  S: void 0,
3876
3871
  A: [
@@ -3883,7 +3878,7 @@ var runEpochMigration = async (ctx, context) => {
3883
3878
  const handle = context.repo.find(url);
3884
3879
  await cancelWithContext4(ctx, asyncTimeout2(handle.whenReady(), 1e4));
3885
3880
  invariant12(handle.docSync(), "Doc not found", {
3886
- F: __dxlog_file16,
3881
+ F: __dxlog_file15,
3887
3882
  L: 107,
3888
3883
  S: void 0,
3889
3884
  A: [
@@ -3905,7 +3900,7 @@ var runEpochMigration = async (ctx, context) => {
3905
3900
  }
3906
3901
  case CreateEpochRequest.Migration.REPLACE_AUTOMERGE_ROOT: {
3907
3902
  invariant12(context.newAutomergeRoot, void 0, {
3908
- F: __dxlog_file16,
3903
+ F: __dxlog_file15,
3909
3904
  L: 124,
3910
3905
  S: void 0,
3911
3906
  A: [
@@ -3931,17 +3926,14 @@ import { log as log14 } from "@dxos/log";
3931
3926
  import { schema as schema4 } from "@dxos/protocols";
3932
3927
  import { RpcExtension as RpcExtension3 } from "@dxos/teleport";
3933
3928
  import { ComplexMap as ComplexMap2, ComplexSet as ComplexSet4, entry } from "@dxos/util";
3934
- var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
3929
+ var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
3935
3930
  var DEFAULT_RETRY_TIMEOUT = 1e3;
3936
3931
  var DEFAULT_SUCCESS_DELAY = 1e3;
3937
3932
  var DEFAULT_NOTARIZE_TIMEOUT = 1e4;
3938
3933
  var WRITER_NOT_SET_ERROR_CODE = "WRITER_NOT_SET";
3939
3934
  var NotarizationPlugin = class {
3940
3935
  constructor() {
3941
- this._ctx = new Context7(void 0, {
3942
- F: __dxlog_file17,
3943
- L: 62
3944
- });
3936
+ this._ctx = new Context7();
3945
3937
  this._extensionOpened = new Event5();
3946
3938
  this._extensions = /* @__PURE__ */ new Set();
3947
3939
  this._processedCredentials = new ComplexSet4(PublicKey9.hash);
@@ -3962,13 +3954,13 @@ var NotarizationPlugin = class {
3962
3954
  log14("notarize", {
3963
3955
  credentials
3964
3956
  }, {
3965
- F: __dxlog_file17,
3957
+ F: __dxlog_file16,
3966
3958
  L: 90,
3967
3959
  S: this,
3968
3960
  C: (f, a) => f(...a)
3969
3961
  });
3970
3962
  invariant13(credentials.every((credential) => credential.id), "Credentials must have an id", {
3971
- F: __dxlog_file17,
3963
+ F: __dxlog_file16,
3972
3964
  L: 91,
3973
3965
  S: this,
3974
3966
  A: [
@@ -3982,7 +3974,7 @@ var NotarizationPlugin = class {
3982
3974
  log14.warn("Notarization error", {
3983
3975
  err
3984
3976
  }, {
3985
- F: __dxlog_file17,
3977
+ F: __dxlog_file16,
3986
3978
  L: 99,
3987
3979
  S: this,
3988
3980
  C: (f, a) => f(...a)
@@ -3998,7 +3990,7 @@ var NotarizationPlugin = class {
3998
3990
  timeout,
3999
3991
  peers: Array.from(this._extensions).map((extension) => extension.remotePeerId)
4000
3992
  }, {
4001
- F: __dxlog_file17,
3993
+ F: __dxlog_file16,
4002
3994
  L: 111,
4003
3995
  S: this,
4004
3996
  C: (f, a) => f(...a)
@@ -4021,7 +4013,7 @@ var NotarizationPlugin = class {
4021
4013
  log14.info("Exhausted all peers to notarize with", {
4022
4014
  retryIn: retryTimeout
4023
4015
  }, {
4024
- F: __dxlog_file17,
4016
+ F: __dxlog_file16,
4025
4017
  L: 136,
4026
4018
  S: this,
4027
4019
  C: (f, a) => f(...a)
@@ -4035,7 +4027,7 @@ var NotarizationPlugin = class {
4035
4027
  peer: peer.localPeerId,
4036
4028
  credentialId: credentials.map((credential) => credential.id)
4037
4029
  }, {
4038
- F: __dxlog_file17,
4030
+ F: __dxlog_file16,
4039
4031
  L: 143,
4040
4032
  S: this,
4041
4033
  C: (f, a) => f(...a)
@@ -4044,7 +4036,7 @@ var NotarizationPlugin = class {
4044
4036
  credentials: credentials.filter((credential) => !this._processedCredentials.has(credential.id))
4045
4037
  });
4046
4038
  log14("success", void 0, {
4047
- F: __dxlog_file17,
4039
+ F: __dxlog_file16,
4048
4040
  L: 147,
4049
4041
  S: this,
4050
4042
  C: (f, a) => f(...a)
@@ -4053,7 +4045,7 @@ var NotarizationPlugin = class {
4053
4045
  } catch (err) {
4054
4046
  if (!ctx.disposed && !err.message.includes(WRITER_NOT_SET_ERROR_CODE)) {
4055
4047
  log14.info("error notarizing (recoverable)", err, {
4056
- F: __dxlog_file17,
4048
+ F: __dxlog_file16,
4057
4049
  L: 151,
4058
4050
  S: this,
4059
4051
  C: (f, a) => f(...a)
@@ -4071,7 +4063,7 @@ var NotarizationPlugin = class {
4071
4063
  errors.wait()
4072
4064
  ]);
4073
4065
  log14("done", void 0, {
4074
- F: __dxlog_file17,
4066
+ F: __dxlog_file16,
4075
4067
  L: 162,
4076
4068
  S: this,
4077
4069
  C: (f, a) => f(...a)
@@ -4093,7 +4085,7 @@ var NotarizationPlugin = class {
4093
4085
  }
4094
4086
  setWriter(writer) {
4095
4087
  invariant13(!this._writer, "Writer already set.", {
4096
- F: __dxlog_file17,
4088
+ F: __dxlog_file16,
4097
4089
  L: 181,
4098
4090
  S: this,
4099
4091
  A: [
@@ -4118,7 +4110,7 @@ var NotarizationPlugin = class {
4118
4110
  }
4119
4111
  for (const credential of request.credentials ?? []) {
4120
4112
  invariant13(credential.id, "Credential must have an id", {
4121
- F: __dxlog_file17,
4113
+ F: __dxlog_file16,
4122
4114
  L: 200,
4123
4115
  S: this,
4124
4116
  A: [
@@ -4138,7 +4130,7 @@ var NotarizationPlugin = class {
4138
4130
  log14("extension opened", {
4139
4131
  peer: extension.localPeerId
4140
4132
  }, {
4141
- F: __dxlog_file17,
4133
+ F: __dxlog_file16,
4142
4134
  L: 211,
4143
4135
  S: this,
4144
4136
  C: (f, a) => f(...a)
@@ -4150,7 +4142,7 @@ var NotarizationPlugin = class {
4150
4142
  log14("extension closed", {
4151
4143
  peer: extension.localPeerId
4152
4144
  }, {
4153
- F: __dxlog_file17,
4145
+ F: __dxlog_file16,
4154
4146
  L: 216,
4155
4147
  S: this,
4156
4148
  C: (f, a) => f(...a)
@@ -4267,13 +4259,10 @@ function _using_ctx() {
4267
4259
  }
4268
4260
  };
4269
4261
  }
4270
- var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
4262
+ var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
4271
4263
  var DataSpace = class {
4272
4264
  constructor(params) {
4273
- this._ctx = new Context8(void 0, {
4274
- F: __dxlog_file18,
4275
- L: 84
4276
- });
4265
+ this._ctx = new Context8();
4277
4266
  this._notarizationPlugin = new NotarizationPlugin();
4278
4267
  this._cache = void 0;
4279
4268
  // TODO(dmaretskyi): Move into Space?
@@ -4307,7 +4296,7 @@ var DataSpace = class {
4307
4296
  log15("new state", {
4308
4297
  state: SpaceState2[this._state]
4309
4298
  }, {
4310
- F: __dxlog_file18,
4299
+ F: __dxlog_file17,
4311
4300
  L: 146,
4312
4301
  S: this,
4313
4302
  C: (f, a) => f(...a)
@@ -4362,15 +4351,12 @@ var DataSpace = class {
4362
4351
  await this._inner.spaceState.addCredentialProcessor(this._notarizationPlugin);
4363
4352
  await this._automergeSpaceState.open();
4364
4353
  await this._inner.spaceState.addCredentialProcessor(this._automergeSpaceState);
4365
- await this._inner.open(new Context8(void 0, {
4366
- F: __dxlog_file18,
4367
- L: 215
4368
- }));
4354
+ await this._inner.open(new Context8());
4369
4355
  this._state = SpaceState2.CONTROL_ONLY;
4370
4356
  log15("new state", {
4371
4357
  state: SpaceState2[this._state]
4372
4358
  }, {
4373
- F: __dxlog_file18,
4359
+ F: __dxlog_file17,
4374
4360
  L: 217,
4375
4361
  S: this,
4376
4362
  C: (f, a) => f(...a)
@@ -4388,16 +4374,13 @@ var DataSpace = class {
4388
4374
  log15("new state", {
4389
4375
  state: SpaceState2[this._state]
4390
4376
  }, {
4391
- F: __dxlog_file18,
4377
+ F: __dxlog_file17,
4392
4378
  L: 231,
4393
4379
  S: this,
4394
4380
  C: (f, a) => f(...a)
4395
4381
  });
4396
4382
  await this._ctx.dispose();
4397
- this._ctx = new Context8(void 0, {
4398
- F: __dxlog_file18,
4399
- L: 233
4400
- });
4383
+ this._ctx = new Context8();
4401
4384
  await this.authVerifier.close();
4402
4385
  await this._inner.close();
4403
4386
  await this._inner.spaceState.removeCredentialProcessor(this._automergeSpaceState);
@@ -4424,7 +4407,7 @@ var DataSpace = class {
4424
4407
  } catch (err) {
4425
4408
  if (err instanceof CancelledError || err instanceof ContextDisposedError3) {
4426
4409
  log15("data pipeline initialization cancelled", err, {
4427
- F: __dxlog_file18,
4410
+ F: __dxlog_file17,
4428
4411
  L: 265,
4429
4412
  S: this,
4430
4413
  C: (f, a) => f(...a)
@@ -4432,7 +4415,7 @@ var DataSpace = class {
4432
4415
  return;
4433
4416
  }
4434
4417
  log15.error("Error initializing data pipeline", err, {
4435
- F: __dxlog_file18,
4418
+ F: __dxlog_file17,
4436
4419
  L: 269,
4437
4420
  S: this,
4438
4421
  C: (f, a) => f(...a)
@@ -4441,7 +4424,7 @@ var DataSpace = class {
4441
4424
  log15("new state", {
4442
4425
  state: SpaceState2[this._state]
4443
4426
  }, {
4444
- F: __dxlog_file18,
4427
+ F: __dxlog_file17,
4445
4428
  L: 271,
4446
4429
  S: this,
4447
4430
  C: (f, a) => f(...a)
@@ -4461,7 +4444,7 @@ var DataSpace = class {
4461
4444
  log15("new state", {
4462
4445
  state: SpaceState2[this._state]
4463
4446
  }, {
4464
- F: __dxlog_file18,
4447
+ F: __dxlog_file17,
4465
4448
  L: 287,
4466
4449
  S: this,
4467
4450
  C: (f, a) => f(...a)
@@ -4478,7 +4461,7 @@ var DataSpace = class {
4478
4461
  log15("new state", {
4479
4462
  state: SpaceState2[this._state]
4480
4463
  }, {
4481
- F: __dxlog_file18,
4464
+ F: __dxlog_file17,
4482
4465
  L: 306,
4483
4466
  S: this,
4484
4467
  C: (f, a) => f(...a)
@@ -4494,7 +4477,7 @@ var DataSpace = class {
4494
4477
  this.metrics.controlPipelineReady = /* @__PURE__ */ new Date();
4495
4478
  await this._createWritableFeeds();
4496
4479
  log15("writable feeds created", void 0, {
4497
- F: __dxlog_file18,
4480
+ F: __dxlog_file17,
4498
4481
  L: 322,
4499
4482
  S: this,
4500
4483
  C: (f, a) => f(...a)
@@ -4557,11 +4540,12 @@ var DataSpace = class {
4557
4540
  space: this.key,
4558
4541
  rootUrl
4559
4542
  }, {
4560
- F: __dxlog_file18,
4543
+ F: __dxlog_file17,
4561
4544
  L: 388,
4562
4545
  S: this,
4563
4546
  C: (f, a) => f(...a)
4564
4547
  });
4548
+ this._echoHost.replicateDocument(rootUrl);
4565
4549
  const handle = this._echoHost.automergeRepo.find(rootUrl);
4566
4550
  queueMicrotask(async () => {
4567
4551
  try {
@@ -4611,8 +4595,8 @@ var DataSpace = class {
4611
4595
  rootUrl,
4612
4596
  err
4613
4597
  }, {
4614
- F: __dxlog_file18,
4615
- L: 431,
4598
+ F: __dxlog_file17,
4599
+ L: 433,
4616
4600
  S: this,
4617
4601
  C: (f, a) => f(...a)
4618
4602
  });
@@ -4697,8 +4681,8 @@ var DataSpace = class {
4697
4681
  log15("new state", {
4698
4682
  state: SpaceState2[this._state]
4699
4683
  }, {
4700
- F: __dxlog_file18,
4701
- L: 512,
4684
+ F: __dxlog_file17,
4685
+ L: 514,
4702
4686
  S: this,
4703
4687
  C: (f, a) => f(...a)
4704
4688
  });
@@ -4758,17 +4742,15 @@ DataSpace = _ts_decorate4([
4758
4742
  import { Event as Event7, synchronized as synchronized2, trackLeaks as trackLeaks2 } from "@dxos/async";
4759
4743
  import { PropertiesType } from "@dxos/client-protocol";
4760
4744
  import { Context as Context9, cancelWithContext as cancelWithContext6 } from "@dxos/context";
4761
- import { getCredentialAssertion as getCredentialAssertion3, createAdmissionCredentials } from "@dxos/credentials";
4745
+ import { getCredentialAssertion as getCredentialAssertion3 } from "@dxos/credentials";
4762
4746
  import { convertLegacyReferences as convertLegacyReferences2, findInlineObjectOfType as findInlineObjectOfType2 } from "@dxos/echo-db";
4763
4747
  import { AuthStatus } from "@dxos/echo-pipeline";
4764
- import { CredentialServerExtension } from "@dxos/echo-pipeline";
4765
4748
  import { LEGACY_TYPE_PROPERTIES, SpaceDocVersion as SpaceDocVersion2, encodeReference } from "@dxos/echo-protocol";
4766
4749
  import { TYPE_PROPERTIES as TYPE_PROPERTIES2, generateEchoId, getTypeReference } from "@dxos/echo-schema";
4767
- import { writeMessages as writeMessages3 } from "@dxos/feed-store";
4768
4750
  import { invariant as invariant14 } from "@dxos/invariant";
4769
4751
  import { PublicKey as PublicKey11 } from "@dxos/keys";
4770
4752
  import { log as log16 } from "@dxos/log";
4771
- import { trace as Trace2, AlreadyJoinedError as AlreadyJoinedError3 } from "@dxos/protocols";
4753
+ import { trace as Trace2 } from "@dxos/protocols";
4772
4754
  import { Invitation as Invitation7, SpaceState as SpaceState3 } from "@dxos/protocols/proto/dxos/client/services";
4773
4755
  import { SpaceMember as SpaceMember6 } from "@dxos/protocols/proto/dxos/halo/credentials";
4774
4756
  import { Gossip as Gossip2, Presence as Presence2 } from "@dxos/teleport-extension-gossip";
@@ -4856,7 +4838,7 @@ function _ts_decorate5(decorators, target, key, desc) {
4856
4838
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4857
4839
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4858
4840
  }
4859
- var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
4841
+ var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
4860
4842
  var PRESENCE_ANNOUNCE_INTERVAL = 1e4;
4861
4843
  var PRESENCE_OFFLINE_TIMEOUT = 2e4;
4862
4844
  var DEFAULT_SPACE_KEY = "__DEFAULT__";
@@ -4870,10 +4852,7 @@ var DataSpaceManager = class {
4870
4852
  this._echoHost = _echoHost;
4871
4853
  this._invitationsManager = _invitationsManager;
4872
4854
  this._params = _params;
4873
- this._ctx = new Context9(void 0, {
4874
- F: __dxlog_file19,
4875
- L: 104
4876
- });
4855
+ this._ctx = new Context9();
4877
4856
  this.updated = new Event7();
4878
4857
  this._spaces = new ComplexMap3(PublicKey11.hash);
4879
4858
  this._isOpen = false;
@@ -4907,24 +4886,24 @@ var DataSpaceManager = class {
4907
4886
  }
4908
4887
  async open() {
4909
4888
  log16("open", void 0, {
4910
- F: __dxlog_file19,
4911
- L: 156,
4889
+ F: __dxlog_file18,
4890
+ L: 146,
4912
4891
  S: this,
4913
4892
  C: (f, a) => f(...a)
4914
4893
  });
4915
4894
  log16.trace("dxos.echo.data-space-manager.open", Trace2.begin({
4916
4895
  id: this._instanceId
4917
4896
  }), {
4918
- F: __dxlog_file19,
4919
- L: 157,
4897
+ F: __dxlog_file18,
4898
+ L: 147,
4920
4899
  S: this,
4921
4900
  C: (f, a) => f(...a)
4922
4901
  });
4923
4902
  log16("metadata loaded", {
4924
4903
  spaces: this._metadataStore.spaces.length
4925
4904
  }, {
4926
- F: __dxlog_file19,
4927
- L: 158,
4905
+ F: __dxlog_file18,
4906
+ L: 148,
4928
4907
  S: this,
4929
4908
  C: (f, a) => f(...a)
4930
4909
  });
@@ -4933,8 +4912,8 @@ var DataSpaceManager = class {
4933
4912
  log16("load space", {
4934
4913
  spaceMetadata
4935
4914
  }, {
4936
- F: __dxlog_file19,
4937
- L: 162,
4915
+ F: __dxlog_file18,
4916
+ L: 152,
4938
4917
  S: this,
4939
4918
  C: (f, a) => f(...a)
4940
4919
  });
@@ -4944,8 +4923,8 @@ var DataSpaceManager = class {
4944
4923
  spaceMetadata,
4945
4924
  err
4946
4925
  }, {
4947
- F: __dxlog_file19,
4948
- L: 165,
4926
+ F: __dxlog_file18,
4927
+ L: 155,
4949
4928
  S: this,
4950
4929
  C: (f, a) => f(...a)
4951
4930
  });
@@ -4956,16 +4935,16 @@ var DataSpaceManager = class {
4956
4935
  log16.trace("dxos.echo.data-space-manager.open", Trace2.end({
4957
4936
  id: this._instanceId
4958
4937
  }), {
4959
- F: __dxlog_file19,
4960
- L: 172,
4938
+ F: __dxlog_file18,
4939
+ L: 162,
4961
4940
  S: this,
4962
4941
  C: (f, a) => f(...a)
4963
4942
  });
4964
4943
  }
4965
4944
  async close() {
4966
4945
  log16("close", void 0, {
4967
- F: __dxlog_file19,
4968
- L: 177,
4946
+ F: __dxlog_file18,
4947
+ L: 167,
4969
4948
  S: this,
4970
4949
  C: (f, a) => f(...a)
4971
4950
  });
@@ -4981,8 +4960,8 @@ var DataSpaceManager = class {
4981
4960
  */
4982
4961
  async createSpace() {
4983
4962
  invariant14(this._isOpen, "Not open.", {
4984
- F: __dxlog_file19,
4985
- L: 191,
4963
+ F: __dxlog_file18,
4964
+ L: 181,
4986
4965
  S: this,
4987
4966
  A: [
4988
4967
  "this._isOpen",
@@ -5002,8 +4981,8 @@ var DataSpaceManager = class {
5002
4981
  log16("creating space...", {
5003
4982
  spaceKey
5004
4983
  }, {
5005
- F: __dxlog_file19,
5006
- L: 203,
4984
+ F: __dxlog_file18,
4985
+ L: 193,
5007
4986
  S: this,
5008
4987
  C: (f, a) => f(...a)
5009
4988
  });
@@ -5014,8 +4993,8 @@ var DataSpaceManager = class {
5014
4993
  await this._metadataStore.addSpace(metadata);
5015
4994
  const memberCredential = credentials[1];
5016
4995
  invariant14(getCredentialAssertion3(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
5017
- F: __dxlog_file19,
5018
- L: 213,
4996
+ F: __dxlog_file18,
4997
+ L: 203,
5019
4998
  S: this,
5020
4999
  A: [
5021
5000
  "getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -5046,8 +5025,8 @@ var DataSpaceManager = class {
5046
5025
  version: space.databaseRoot.getVersion(),
5047
5026
  spaceId: space.id
5048
5027
  }, {
5049
- F: __dxlog_file19,
5050
- L: 238,
5028
+ F: __dxlog_file18,
5029
+ L: 228,
5051
5030
  S: this,
5052
5031
  C: (f, a) => f(...a)
5053
5032
  });
@@ -5081,8 +5060,8 @@ var DataSpaceManager = class {
5081
5060
  async _getSpaceRootDocument(space) {
5082
5061
  const automergeIndex = space.automergeSpaceState.rootUrl;
5083
5062
  invariant14(automergeIndex, void 0, {
5084
- F: __dxlog_file19,
5085
- L: 271,
5063
+ F: __dxlog_file18,
5064
+ L: 261,
5086
5065
  S: this,
5087
5066
  A: [
5088
5067
  "automergeIndex",
@@ -5098,14 +5077,14 @@ var DataSpaceManager = class {
5098
5077
  log16("accept space", {
5099
5078
  opts
5100
5079
  }, {
5101
- F: __dxlog_file19,
5102
- L: 280,
5080
+ F: __dxlog_file18,
5081
+ L: 270,
5103
5082
  S: this,
5104
5083
  C: (f, a) => f(...a)
5105
5084
  });
5106
5085
  invariant14(this._isOpen, "Not open.", {
5107
- F: __dxlog_file19,
5108
- L: 281,
5086
+ F: __dxlog_file18,
5087
+ L: 271,
5109
5088
  S: this,
5110
5089
  A: [
5111
5090
  "this._isOpen",
@@ -5113,8 +5092,8 @@ var DataSpaceManager = class {
5113
5092
  ]
5114
5093
  });
5115
5094
  invariant14(!this._spaces.has(opts.spaceKey), "Space already exists.", {
5116
- F: __dxlog_file19,
5117
- L: 282,
5095
+ F: __dxlog_file18,
5096
+ L: 272,
5118
5097
  S: this,
5119
5098
  A: [
5120
5099
  "!this._spaces.has(opts.spaceKey)",
@@ -5134,43 +5113,6 @@ var DataSpaceManager = class {
5134
5113
  this.updated.emit();
5135
5114
  return space;
5136
5115
  }
5137
- async admitMember(options) {
5138
- const space = this._spaceManager.spaces.get(options.spaceKey);
5139
- invariant14(space, void 0, {
5140
- F: __dxlog_file19,
5141
- L: 302,
5142
- S: this,
5143
- A: [
5144
- "space",
5145
- ""
5146
- ]
5147
- });
5148
- if (space.spaceState.getMemberRole(options.identityKey) !== SpaceMember6.Role.REMOVED) {
5149
- throw new AlreadyJoinedError3();
5150
- }
5151
- const credentials = await createAdmissionCredentials(this._signingContext.credentialSigner, options.identityKey, space.key, space.genesisFeedKey, options.role, space.spaceState.membershipChainHeads, options.profile, options.delegationCredentialId);
5152
- invariant14(credentials[0].credential, void 0, {
5153
- F: __dxlog_file19,
5154
- L: 321,
5155
- S: this,
5156
- A: [
5157
- "credentials[0].credential",
5158
- ""
5159
- ]
5160
- });
5161
- const spaceMemberCredential = credentials[0].credential.credential;
5162
- invariant14(getCredentialAssertion3(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
5163
- F: __dxlog_file19,
5164
- L: 323,
5165
- S: this,
5166
- A: [
5167
- "getCredentialAssertion(spaceMemberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
5168
- ""
5169
- ]
5170
- });
5171
- await writeMessages3(space.controlPipeline.writer, credentials);
5172
- return spaceMemberCredential;
5173
- }
5174
5116
  /**
5175
5117
  * Wait until the space data pipeline is fully initialized.
5176
5118
  * Used by invitation handler.
@@ -5182,24 +5124,12 @@ var DataSpaceManager = class {
5182
5124
  return !!space && space.state === SpaceState3.READY;
5183
5125
  }));
5184
5126
  }
5185
- async requestSpaceAdmissionCredential(spaceKey) {
5186
- return this._spaceManager.requestSpaceAdmissionCredential({
5187
- spaceKey,
5188
- identityKey: this._signingContext.identityKey,
5189
- timeout: 15e3,
5190
- swarmIdentity: {
5191
- peerKey: this._signingContext.deviceKey,
5192
- credentialProvider: createAuthProvider(this._signingContext.credentialSigner),
5193
- credentialAuthenticator: async () => true
5194
- }
5195
- });
5196
- }
5197
5127
  async _constructSpace(metadata) {
5198
5128
  log16("construct space", {
5199
5129
  metadata
5200
5130
  }, {
5201
- F: __dxlog_file19,
5202
- L: 358,
5131
+ F: __dxlog_file18,
5132
+ L: 306,
5203
5133
  S: this,
5204
5134
  C: (f, a) => f(...a)
5205
5135
  });
@@ -5227,7 +5157,6 @@ var DataSpaceManager = class {
5227
5157
  credentialAuthenticator: deferFunction2(() => dataSpace.authVerifier.verifier)
5228
5158
  },
5229
5159
  onAuthorizedConnection: (session) => {
5230
- session.addExtension("dxos.mesh.teleport.admission-discovery", new CredentialServerExtension(space));
5231
5160
  session.addExtension("dxos.mesh.teleport.gossip", gossip.createExtension({
5232
5161
  remotePeerId: session.remotePeerId
5233
5162
  }));
@@ -5237,8 +5166,8 @@ var DataSpaceManager = class {
5237
5166
  },
5238
5167
  onAuthFailure: () => {
5239
5168
  log16.warn("auth failure", void 0, {
5240
- F: __dxlog_file19,
5241
- L: 396,
5169
+ F: __dxlog_file18,
5170
+ L: 343,
5242
5171
  S: this,
5243
5172
  C: (f, a) => f(...a)
5244
5173
  });
@@ -5270,8 +5199,8 @@ var DataSpaceManager = class {
5270
5199
  log16("before space ready", {
5271
5200
  space: space.key
5272
5201
  }, {
5273
- F: __dxlog_file19,
5274
- L: 423,
5202
+ F: __dxlog_file18,
5203
+ L: 370,
5275
5204
  S: this,
5276
5205
  C: (f, a) => f(...a)
5277
5206
  });
@@ -5281,8 +5210,8 @@ var DataSpaceManager = class {
5281
5210
  space: space.key,
5282
5211
  open: this._isOpen
5283
5212
  }, {
5284
- F: __dxlog_file19,
5285
- L: 426,
5213
+ F: __dxlog_file18,
5214
+ L: 373,
5286
5215
  S: this,
5287
5216
  C: (f, a) => f(...a)
5288
5217
  });
@@ -5300,8 +5229,8 @@ var DataSpaceManager = class {
5300
5229
  log16("before space close", {
5301
5230
  space: space.key
5302
5231
  }, {
5303
- F: __dxlog_file19,
5304
- L: 434,
5232
+ F: __dxlog_file18,
5233
+ L: 381,
5305
5234
  S: this,
5306
5235
  C: (f, a) => f(...a)
5307
5236
  });
@@ -5341,8 +5270,8 @@ var DataSpaceManager = class {
5341
5270
  peersOnline: presence.getPeersOnline().length,
5342
5271
  closedSessions
5343
5272
  }, {
5344
- F: __dxlog_file19,
5345
- L: 470,
5273
+ F: __dxlog_file18,
5274
+ L: 417,
5346
5275
  S: this,
5347
5276
  C: (f, a) => f(...a)
5348
5277
  });
@@ -5356,8 +5285,8 @@ var DataSpaceManager = class {
5356
5285
  log16("closing a session with a removed peer", {
5357
5286
  peerId: peerState.peerId
5358
5287
  }, {
5359
- F: __dxlog_file19,
5360
- L: 484,
5288
+ F: __dxlog_file18,
5289
+ L: 431,
5361
5290
  S: this,
5362
5291
  C: (f, a) => f(...a)
5363
5292
  });
@@ -5422,13 +5351,13 @@ import { EventSubscriptions as EventSubscriptions2, UpdateScheduler, scheduleTas
5422
5351
  import { Stream as Stream10 } from "@dxos/codec-protobuf";
5423
5352
  import { createAdmissionCredentials as createAdmissionCredentials2, getCredentialAssertion as getCredentialAssertion4 } from "@dxos/credentials";
5424
5353
  import { raise as raise2 } from "@dxos/debug";
5425
- import { writeMessages as writeMessages4 } from "@dxos/feed-store";
5354
+ import { writeMessages as writeMessages3 } from "@dxos/feed-store";
5426
5355
  import { invariant as invariant15 } from "@dxos/invariant";
5427
5356
  import { log as log17 } from "@dxos/log";
5428
5357
  import { ApiError, SpaceNotFoundError as SpaceNotFoundError2, encodeError, IdentityNotInitializedError, AuthorizationError as AuthorizationError2 } from "@dxos/protocols";
5429
5358
  import { SpaceMember as SpaceMember7, SpaceState as SpaceState4 } from "@dxos/protocols/proto/dxos/client/services";
5430
5359
  import { trace as trace8 } from "@dxos/tracing";
5431
- var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
5360
+ var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
5432
5361
  var SpacesServiceImpl = class {
5433
5362
  constructor(_identityManager, _spaceManager, _getDataSpaceManager) {
5434
5363
  this._identityManager = _identityManager;
@@ -5472,8 +5401,8 @@ var SpacesServiceImpl = class {
5472
5401
  }
5473
5402
  const credentials = await createAdmissionCredentials2(identity.getIdentityCredentialSigner(), request.memberKey, space.key, space.genesisFeedKey, request.newRole, space.spaceState.membershipChainHeads);
5474
5403
  invariant15(credentials[0].credential, void 0, {
5475
- F: __dxlog_file20,
5476
- L: 102,
5404
+ F: __dxlog_file19,
5405
+ L: 98,
5477
5406
  S: this,
5478
5407
  A: [
5479
5408
  "credentials[0].credential",
@@ -5482,15 +5411,15 @@ var SpacesServiceImpl = class {
5482
5411
  });
5483
5412
  const spaceMemberCredential = credentials[0].credential.credential;
5484
5413
  invariant15(getCredentialAssertion4(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
5485
- F: __dxlog_file20,
5486
- L: 104,
5414
+ F: __dxlog_file19,
5415
+ L: 100,
5487
5416
  S: this,
5488
5417
  A: [
5489
5418
  "getCredentialAssertion(spaceMemberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
5490
5419
  ""
5491
5420
  ]
5492
5421
  });
5493
- await writeMessages4(space.controlPipeline.writer, credentials);
5422
+ await writeMessages3(space.controlPipeline.writer, credentials);
5494
5423
  }
5495
5424
  querySpaces() {
5496
5425
  return new Stream10(({ next, ctx }) => {
@@ -5500,8 +5429,8 @@ var SpacesServiceImpl = class {
5500
5429
  log17("update", {
5501
5430
  spaces
5502
5431
  }, {
5503
- F: __dxlog_file20,
5504
- L: 115,
5432
+ F: __dxlog_file19,
5433
+ L: 111,
5505
5434
  S: this,
5506
5435
  C: (f, a) => f(...a)
5507
5436
  });
@@ -5592,8 +5521,8 @@ var SpacesServiceImpl = class {
5592
5521
  });
5593
5522
  } else {
5594
5523
  invariant15(!credential.id, "Id on unsigned credentials is not allowed", {
5595
- F: __dxlog_file20,
5596
- L: 213,
5524
+ F: __dxlog_file19,
5525
+ L: 209,
5597
5526
  S: this,
5598
5527
  A: [
5599
5528
  "!credential.id",
@@ -5601,8 +5530,8 @@ var SpacesServiceImpl = class {
5601
5530
  ]
5602
5531
  });
5603
5532
  invariant15(this._identityManager.identity, "Identity is not available", {
5604
- F: __dxlog_file20,
5605
- L: 214,
5533
+ F: __dxlog_file19,
5534
+ L: 210,
5606
5535
  S: this,
5607
5536
  A: [
5608
5537
  "this._identityManager.identity",
@@ -5611,8 +5540,8 @@ var SpacesServiceImpl = class {
5611
5540
  });
5612
5541
  const signer = this._identityManager.identity.getIdentityCredentialSigner();
5613
5542
  invariant15(credential.issuer.equals(signer.getIssuer()), void 0, {
5614
- F: __dxlog_file20,
5615
- L: 216,
5543
+ F: __dxlog_file19,
5544
+ L: 212,
5616
5545
  S: this,
5617
5546
  A: [
5618
5547
  "credential.issuer.equals(signer.getIssuer())",
@@ -5642,59 +5571,6 @@ var SpacesServiceImpl = class {
5642
5571
  epochCredential: credential ?? void 0
5643
5572
  };
5644
5573
  }
5645
- async admitContact(request) {
5646
- const dataSpaceManager = await this._getDataSpaceManager();
5647
- await dataSpaceManager.admitMember({
5648
- spaceKey: request.spaceKey,
5649
- identityKey: request.contact.identityKey,
5650
- role: request.role
5651
- });
5652
- }
5653
- async joinBySpaceKey({ spaceKey }) {
5654
- const dataSpaceManager = await this._getDataSpaceManager();
5655
- const credential = await dataSpaceManager.requestSpaceAdmissionCredential(spaceKey);
5656
- return this._joinByAdmission({
5657
- credential
5658
- });
5659
- }
5660
- async _joinByAdmission({ credential }) {
5661
- const assertion = getCredentialAssertion4(credential);
5662
- invariant15(assertion["@type"] === "dxos.halo.credentials.SpaceMember", "Invalid credential", {
5663
- F: __dxlog_file20,
5664
- L: 250,
5665
- S: this,
5666
- A: [
5667
- "assertion['@type'] === 'dxos.halo.credentials.SpaceMember'",
5668
- "'Invalid credential'"
5669
- ]
5670
- });
5671
- const myIdentity = this._identityManager.identity;
5672
- invariant15(myIdentity && credential.subject.id.equals(myIdentity.identityKey), void 0, {
5673
- F: __dxlog_file20,
5674
- L: 252,
5675
- S: this,
5676
- A: [
5677
- "myIdentity && credential.subject.id.equals(myIdentity.identityKey)",
5678
- ""
5679
- ]
5680
- });
5681
- const dataSpaceManager = await this._getDataSpaceManager();
5682
- let dataSpace = dataSpaceManager.spaces.get(assertion.spaceKey);
5683
- if (!dataSpace) {
5684
- dataSpace = await dataSpaceManager.acceptSpace({
5685
- spaceKey: assertion.spaceKey,
5686
- genesisFeedKey: assertion.genesisFeedKey
5687
- });
5688
- await myIdentity.controlPipeline.writer.write({
5689
- credential: {
5690
- credential
5691
- }
5692
- });
5693
- }
5694
- return {
5695
- space: this._serializeSpace(dataSpace)
5696
- };
5697
- }
5698
5574
  _serializeSpace(space) {
5699
5575
  return {
5700
5576
  id: space.id,
@@ -5782,7 +5658,7 @@ function _ts_decorate6(decorators, target, key, desc) {
5782
5658
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5783
5659
  return c > 3 && r && Object.defineProperty(target, key, r), r;
5784
5660
  }
5785
- var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
5661
+ var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
5786
5662
  var ServiceContext = class extends Resource3 {
5787
5663
  constructor(storage, level, networkManager, signalManager, _runtimeParams) {
5788
5664
  super();
@@ -5826,7 +5702,7 @@ var ServiceContext = class extends Resource3 {
5826
5702
  async _open(ctx) {
5827
5703
  await this._checkStorageVersion();
5828
5704
  log18("opening...", void 0, {
5829
- F: __dxlog_file21,
5705
+ F: __dxlog_file20,
5830
5706
  L: 149,
5831
5707
  S: this,
5832
5708
  C: (f, a) => f(...a)
@@ -5834,7 +5710,7 @@ var ServiceContext = class extends Resource3 {
5834
5710
  log18.trace("dxos.sdk.service-context.open", trace9.begin({
5835
5711
  id: this._instanceId
5836
5712
  }), {
5837
- F: __dxlog_file21,
5713
+ F: __dxlog_file20,
5838
5714
  L: 150,
5839
5715
  S: this,
5840
5716
  C: (f, a) => f(...a)
@@ -5852,7 +5728,7 @@ var ServiceContext = class extends Resource3 {
5852
5728
  log18("loaded persistent invitations", {
5853
5729
  count: loadedInvitations.invitations?.length
5854
5730
  }, {
5855
- F: __dxlog_file21,
5731
+ F: __dxlog_file20,
5856
5732
  L: 163,
5857
5733
  S: this,
5858
5734
  C: (f, a) => f(...a)
@@ -5860,13 +5736,13 @@ var ServiceContext = class extends Resource3 {
5860
5736
  log18.trace("dxos.sdk.service-context.open", trace9.end({
5861
5737
  id: this._instanceId
5862
5738
  }), {
5863
- F: __dxlog_file21,
5739
+ F: __dxlog_file20,
5864
5740
  L: 165,
5865
5741
  S: this,
5866
5742
  C: (f, a) => f(...a)
5867
5743
  });
5868
5744
  log18("opened", void 0, {
5869
- F: __dxlog_file21,
5745
+ F: __dxlog_file20,
5870
5746
  L: 166,
5871
5747
  S: this,
5872
5748
  C: (f, a) => f(...a)
@@ -5874,7 +5750,7 @@ var ServiceContext = class extends Resource3 {
5874
5750
  }
5875
5751
  async _close(ctx) {
5876
5752
  log18("closing...", void 0, {
5877
- F: __dxlog_file21,
5753
+ F: __dxlog_file20,
5878
5754
  L: 170,
5879
5755
  S: this,
5880
5756
  C: (f, a) => f(...a)
@@ -5891,7 +5767,7 @@ var ServiceContext = class extends Resource3 {
5891
5767
  await this.networkManager.close();
5892
5768
  await this.signalManager.close();
5893
5769
  log18("closed", void 0, {
5894
- F: __dxlog_file21,
5770
+ F: __dxlog_file20,
5895
5771
  L: 182,
5896
5772
  S: this,
5897
5773
  C: (f, a) => f(...a)
@@ -5899,16 +5775,13 @@ var ServiceContext = class extends Resource3 {
5899
5775
  }
5900
5776
  async createIdentity(params = {}) {
5901
5777
  const identity = await this.identityManager.createIdentity(params);
5902
- await this._initialize(new Context10(void 0, {
5903
- F: __dxlog_file21,
5904
- L: 187
5905
- }));
5778
+ await this._initialize(new Context10());
5906
5779
  return identity;
5907
5780
  }
5908
5781
  getInvitationHandler(invitation) {
5909
5782
  const factory = this._handlerFactories.get(invitation.kind);
5910
5783
  invariant16(factory, `Unknown invitation kind: ${invitation.kind}`, {
5911
- F: __dxlog_file21,
5784
+ F: __dxlog_file20,
5912
5785
  L: 193,
5913
5786
  S: this,
5914
5787
  A: [
@@ -5928,10 +5801,7 @@ var ServiceContext = class extends Resource3 {
5928
5801
  }
5929
5802
  async _acceptIdentity(params) {
5930
5803
  const identity = await this.identityManager.acceptIdentity(params);
5931
- await this._initialize(new Context10(void 0, {
5932
- F: __dxlog_file21,
5933
- L: 209
5934
- }));
5804
+ await this._initialize(new Context10());
5935
5805
  return identity;
5936
5806
  }
5937
5807
  async _checkStorageVersion() {
@@ -5943,7 +5813,7 @@ var ServiceContext = class extends Resource3 {
5943
5813
  // Called when identity is created.
5944
5814
  async _initialize(ctx) {
5945
5815
  log18("initializing spaces...", void 0, {
5946
- F: __dxlog_file21,
5816
+ F: __dxlog_file20,
5947
5817
  L: 224,
5948
5818
  S: this,
5949
5819
  C: (f, a) => f(...a)
@@ -5966,7 +5836,7 @@ var ServiceContext = class extends Resource3 {
5966
5836
  await this.dataSpaceManager.open();
5967
5837
  this._handlerFactories.set(Invitation8.Kind.SPACE, (invitation) => {
5968
5838
  invariant16(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
5969
- F: __dxlog_file21,
5839
+ F: __dxlog_file20,
5970
5840
  L: 249,
5971
5841
  S: this,
5972
5842
  A: [
@@ -5990,7 +5860,7 @@ var ServiceContext = class extends Resource3 {
5990
5860
  log18("dataSpaceManager not initialized yet, ignoring space admission", {
5991
5861
  details: assertion
5992
5862
  }, {
5993
- F: __dxlog_file21,
5863
+ F: __dxlog_file20,
5994
5864
  L: 265,
5995
5865
  S: this,
5996
5866
  C: (f, a) => f(...a)
@@ -6001,7 +5871,7 @@ var ServiceContext = class extends Resource3 {
6001
5871
  log18("space already exists, ignoring space admission", {
6002
5872
  details: assertion
6003
5873
  }, {
6004
- F: __dxlog_file21,
5874
+ F: __dxlog_file20,
6005
5875
  L: 269,
6006
5876
  S: this,
6007
5877
  C: (f, a) => f(...a)
@@ -6012,7 +5882,7 @@ var ServiceContext = class extends Resource3 {
6012
5882
  log18("accepting space recorded in halo", {
6013
5883
  details: assertion
6014
5884
  }, {
6015
- F: __dxlog_file21,
5885
+ F: __dxlog_file20,
6016
5886
  L: 274,
6017
5887
  S: this,
6018
5888
  C: (f, a) => f(...a)
@@ -6023,7 +5893,7 @@ var ServiceContext = class extends Resource3 {
6023
5893
  });
6024
5894
  } catch (err) {
6025
5895
  log18.catch(err, void 0, {
6026
- F: __dxlog_file21,
5896
+ F: __dxlog_file20,
6027
5897
  L: 280,
6028
5898
  S: this,
6029
5899
  C: (f, a) => f(...a)
@@ -6083,7 +5953,7 @@ function _ts_decorate7(decorators, target, key, desc) {
6083
5953
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6084
5954
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6085
5955
  }
6086
- var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/browser.ts";
5956
+ var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/browser.ts";
6087
5957
  var Message;
6088
5958
  (function(Message2) {
6089
5959
  Message2["ACQUIRING"] = "acquiring";
@@ -6106,28 +5976,28 @@ var Lock = class {
6106
5976
  });
6107
5977
  try {
6108
5978
  log19("aquiring lock...", void 0, {
6109
- F: __dxlog_file22,
5979
+ F: __dxlog_file21,
6110
5980
  L: 42,
6111
5981
  S: this,
6112
5982
  C: (f, a) => f(...a)
6113
5983
  });
6114
5984
  await asyncTimeout3(this._requestLock(), RESOURCE_LOCK_TIMEOUT);
6115
5985
  log19("acquired lock", void 0, {
6116
- F: __dxlog_file22,
5986
+ F: __dxlog_file21,
6117
5987
  L: 44,
6118
5988
  S: this,
6119
5989
  C: (f, a) => f(...a)
6120
5990
  });
6121
5991
  } catch {
6122
5992
  log19("stealing lock...", void 0, {
6123
- F: __dxlog_file22,
5993
+ F: __dxlog_file21,
6124
5994
  L: 46,
6125
5995
  S: this,
6126
5996
  C: (f, a) => f(...a)
6127
5997
  });
6128
5998
  await this._requestLock(true);
6129
5999
  log19("stolen lock", void 0, {
6130
- F: __dxlog_file22,
6000
+ F: __dxlog_file21,
6131
6001
  L: 48,
6132
6002
  S: this,
6133
6003
  C: (f, a) => f(...a)
@@ -6146,7 +6016,7 @@ var Lock = class {
6146
6016
  log19("requesting lock...", {
6147
6017
  steal
6148
6018
  }, {
6149
- F: __dxlog_file22,
6019
+ F: __dxlog_file21,
6150
6020
  L: 63,
6151
6021
  S: this,
6152
6022
  C: (f, a) => f(...a)
@@ -6160,14 +6030,14 @@ var Lock = class {
6160
6030
  this._releaseTrigger = new Trigger9();
6161
6031
  await this._releaseTrigger.wait();
6162
6032
  log19("releasing lock...", void 0, {
6163
- F: __dxlog_file22,
6033
+ F: __dxlog_file21,
6164
6034
  L: 72,
6165
6035
  S: this,
6166
6036
  C: (f, a) => f(...a)
6167
6037
  });
6168
6038
  await this._onRelease?.();
6169
6039
  log19("released lock", void 0, {
6170
- F: __dxlog_file22,
6040
+ F: __dxlog_file21,
6171
6041
  L: 74,
6172
6042
  S: this,
6173
6043
  C: (f, a) => f(...a)
@@ -6179,7 +6049,7 @@ var Lock = class {
6179
6049
  log19("recieved lock", {
6180
6050
  steal
6181
6051
  }, {
6182
- F: __dxlog_file22,
6052
+ F: __dxlog_file21,
6183
6053
  L: 81,
6184
6054
  S: this,
6185
6055
  C: (f, a) => f(...a)
@@ -6272,7 +6142,7 @@ import { Event as Event9, synchronized as synchronized3 } from "@dxos/async";
6272
6142
  import { clientServiceBundle } from "@dxos/client-protocol";
6273
6143
  import { Context as Context11 } from "@dxos/context";
6274
6144
  import { invariant as invariant18 } from "@dxos/invariant";
6275
- import { PublicKey as PublicKey17 } from "@dxos/keys";
6145
+ import { PublicKey as PublicKey16 } from "@dxos/keys";
6276
6146
  import { log as log21 } from "@dxos/log";
6277
6147
  import { WebsocketSignalManager } from "@dxos/messaging";
6278
6148
  import { SwarmNetworkManager, createSimplePeerTransportFactory } from "@dxos/network-manager";
@@ -6286,7 +6156,7 @@ import { EventSubscriptions as EventSubscriptions3 } from "@dxos/async";
6286
6156
  import { Stream as Stream11 } from "@dxos/codec-protobuf";
6287
6157
  import { invariant as invariant17 } from "@dxos/invariant";
6288
6158
  import { Device as Device2, DeviceKind as DeviceKind2 } from "@dxos/protocols/proto/dxos/client/services";
6289
- var __dxlog_file23 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
6159
+ var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
6290
6160
  var DevicesServiceImpl = class {
6291
6161
  constructor(_identityManager) {
6292
6162
  this._identityManager = _identityManager;
@@ -6304,7 +6174,7 @@ var DevicesServiceImpl = class {
6304
6174
  });
6305
6175
  } else {
6306
6176
  invariant17(this._identityManager.identity?.presence, "presence not present", {
6307
- F: __dxlog_file23,
6177
+ F: __dxlog_file22,
6308
6178
  L: 32,
6309
6179
  S: this,
6310
6180
  A: [
@@ -6410,93 +6280,10 @@ var findConfigs = () => {
6410
6280
  return configs.map((r) => r.instance.deref()).filter(nonNullable);
6411
6281
  };
6412
6282
 
6413
- // packages/sdk/client-services/src/packlets/identity/contacts-service.ts
6414
- import { EventSubscriptions as EventSubscriptions4, scheduleTask as scheduleTask7, UpdateScheduler as UpdateScheduler2 } from "@dxos/async";
6415
- import { Stream as Stream12 } from "@dxos/codec-protobuf";
6416
- import { PublicKey as PublicKey15 } from "@dxos/keys";
6417
- import { ComplexMap as ComplexMap4, ComplexSet as ComplexSet6 } from "@dxos/util";
6418
- var ContactsServiceImpl = class {
6419
- constructor(_identityManager, _spaceManager, _dataSpaceManagerProvider) {
6420
- this._identityManager = _identityManager;
6421
- this._spaceManager = _spaceManager;
6422
- this._dataSpaceManagerProvider = _dataSpaceManagerProvider;
6423
- }
6424
- async getContacts() {
6425
- const identity = this._identityManager.identity;
6426
- if (identity == null) {
6427
- return {
6428
- contacts: []
6429
- };
6430
- }
6431
- const contacts = [
6432
- ...this._spaceManager.spaces.values()
6433
- ].flatMap((s) => [
6434
- ...s.spaceState.members.values()
6435
- ].map((m) => [
6436
- s.key,
6437
- m
6438
- ])).reduce((acc, v) => {
6439
- const [spaceKey, memberInfo] = v;
6440
- if (memberInfo.key.equals(identity.identityKey)) {
6441
- return acc;
6442
- }
6443
- const existing = acc.get(memberInfo.key);
6444
- if (existing != null) {
6445
- existing.profile ??= memberInfo.profile;
6446
- existing.commonSpaces?.push(spaceKey);
6447
- } else {
6448
- acc.set(memberInfo.key, {
6449
- identityKey: memberInfo.key,
6450
- profile: memberInfo.profile,
6451
- commonSpaces: [
6452
- spaceKey
6453
- ]
6454
- });
6455
- }
6456
- return acc;
6457
- }, new ComplexMap4(PublicKey15.hash));
6458
- return {
6459
- contacts: [
6460
- ...contacts.values()
6461
- ]
6462
- };
6463
- }
6464
- queryContacts() {
6465
- const subscribedSpaceKeySet = new ComplexSet6(PublicKey15.hash);
6466
- return new Stream12(({ next, ctx }) => {
6467
- const pushUpdateTask = new UpdateScheduler2(ctx, async () => {
6468
- const contacts = await this.getContacts();
6469
- next(contacts);
6470
- }, {
6471
- maxFrequency: 2
6472
- });
6473
- scheduleTask7(ctx, async () => {
6474
- const subscriptions = new EventSubscriptions4();
6475
- ctx.onDispose(() => subscriptions.clear());
6476
- const subscribeToSpaceAndUpdate = () => {
6477
- const oldSetSize = subscribedSpaceKeySet.size;
6478
- for (const space of this._spaceManager.spaces.values()) {
6479
- if (!subscribedSpaceKeySet.has(space.key)) {
6480
- subscriptions.add(space.stateUpdate.on(ctx, () => pushUpdateTask.trigger()));
6481
- subscribedSpaceKeySet.add(space.key);
6482
- }
6483
- }
6484
- if (oldSetSize !== subscribedSpaceKeySet.size) {
6485
- pushUpdateTask.trigger();
6486
- }
6487
- };
6488
- const unsubscribe = (await this._dataSpaceManagerProvider()).updated.on(ctx, subscribeToSpaceAndUpdate);
6489
- ctx.onDispose(unsubscribe);
6490
- subscribeToSpaceAndUpdate();
6491
- });
6492
- });
6493
- }
6494
- };
6495
-
6496
6283
  // packages/sdk/client-services/src/packlets/logging/logging-service.ts
6497
6284
  import { Event as Event8 } from "@dxos/async";
6498
- import { Stream as Stream13 } from "@dxos/codec-protobuf";
6499
- import { PublicKey as PublicKey16 } from "@dxos/keys";
6285
+ import { Stream as Stream12 } from "@dxos/codec-protobuf";
6286
+ import { PublicKey as PublicKey15 } from "@dxos/keys";
6500
6287
  import { getContextFromEntry, log as log20 } from "@dxos/log";
6501
6288
  import { QueryLogsRequest } from "@dxos/protocols/proto/dxos/client/services";
6502
6289
  import { getDebugName, jsonify, numericalValues, tracer } from "@dxos/util";
@@ -6504,7 +6291,7 @@ var LoggingServiceImpl = class {
6504
6291
  constructor() {
6505
6292
  this._logs = new Event8();
6506
6293
  this._started = Date.now();
6507
- this._sessionId = PublicKey16.random().toHex();
6294
+ this._sessionId = PublicKey15.random().toHex();
6508
6295
  this._logProcessor = (_config, entry2) => {
6509
6296
  this._logs.emit(entry2);
6510
6297
  };
@@ -6540,7 +6327,7 @@ var LoggingServiceImpl = class {
6540
6327
  stats: numericalValues(events, "duration")
6541
6328
  };
6542
6329
  };
6543
- return new Stream13(({ next }) => {
6330
+ return new Stream12(({ next }) => {
6544
6331
  const update = () => {
6545
6332
  const metrics = {
6546
6333
  timestamp: /* @__PURE__ */ new Date(),
@@ -6562,7 +6349,7 @@ var LoggingServiceImpl = class {
6562
6349
  });
6563
6350
  }
6564
6351
  queryLogs(request) {
6565
- return new Stream13(({ ctx, next }) => {
6352
+ return new Stream12(({ ctx, next }) => {
6566
6353
  const handler = (entry2) => {
6567
6354
  if (LOG_PROCESSING > 0) {
6568
6355
  return;
@@ -6618,14 +6405,14 @@ var shouldLog = (entry2, request) => {
6618
6405
  var LOG_PROCESSING = 0;
6619
6406
 
6620
6407
  // packages/sdk/client-services/src/packlets/network/network-service.ts
6621
- import { Stream as Stream14 } from "@dxos/codec-protobuf";
6408
+ import { Stream as Stream13 } from "@dxos/codec-protobuf";
6622
6409
  var NetworkServiceImpl = class {
6623
6410
  constructor(networkManager, signalManager) {
6624
6411
  this.networkManager = networkManager;
6625
6412
  this.signalManager = signalManager;
6626
6413
  }
6627
6414
  queryStatus() {
6628
- return new Stream14(({ next }) => {
6415
+ return new Stream13(({ next }) => {
6629
6416
  const update = () => {
6630
6417
  next({
6631
6418
  swarm: this.networkManager.connectionState,
@@ -6651,7 +6438,7 @@ var NetworkServiceImpl = class {
6651
6438
  };
6652
6439
 
6653
6440
  // packages/sdk/client-services/src/packlets/system/system-service.ts
6654
- import { Stream as Stream15 } from "@dxos/codec-protobuf";
6441
+ import { Stream as Stream14 } from "@dxos/codec-protobuf";
6655
6442
  import { GetDiagnosticsRequest as GetDiagnosticsRequest2 } from "@dxos/protocols/proto/dxos/client/services";
6656
6443
  import { jsonKeyReplacer as jsonKeyReplacer2 } from "@dxos/util";
6657
6444
  var SystemServiceImpl = class {
@@ -6687,7 +6474,7 @@ var SystemServiceImpl = class {
6687
6474
  }
6688
6475
  // TODO(burdon): Standardize interval option in stream request?
6689
6476
  queryStatus({ interval = 3e3 } = {}) {
6690
- return new Stream15(({ next }) => {
6477
+ return new Stream14(({ next }) => {
6691
6478
  const update = () => {
6692
6479
  next({
6693
6480
  status: this._getCurrentStatus()
@@ -6718,7 +6505,7 @@ function _ts_decorate8(decorators, target, key, desc) {
6718
6505
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6719
6506
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6720
6507
  }
6721
- var __dxlog_file24 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
6508
+ var __dxlog_file23 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
6722
6509
  var ClientServicesHost = class {
6723
6510
  constructor({
6724
6511
  config,
@@ -6751,10 +6538,7 @@ var ClientServicesHost = class {
6751
6538
  lockKey,
6752
6539
  onAcquire: () => {
6753
6540
  if (!this._opening) {
6754
- void this.open(new Context11(void 0, {
6755
- F: __dxlog_file24,
6756
- L: 121
6757
- }));
6541
+ void this.open(new Context11());
6758
6542
  }
6759
6543
  },
6760
6544
  onRelease: () => this.close()
@@ -6810,8 +6594,8 @@ var ClientServicesHost = class {
6810
6594
  */
6811
6595
  initialize({ config, ...options }) {
6812
6596
  invariant18(!this._open, "service host is open", {
6813
- F: __dxlog_file24,
6814
- L: 187,
6597
+ F: __dxlog_file23,
6598
+ L: 186,
6815
6599
  S: this,
6816
6600
  A: [
6817
6601
  "!this._open",
@@ -6819,15 +6603,15 @@ var ClientServicesHost = class {
6819
6603
  ]
6820
6604
  });
6821
6605
  log21("initializing...", void 0, {
6822
- F: __dxlog_file24,
6823
- L: 188,
6606
+ F: __dxlog_file23,
6607
+ L: 187,
6824
6608
  S: this,
6825
6609
  C: (f, a) => f(...a)
6826
6610
  });
6827
6611
  if (config) {
6828
6612
  invariant18(!this._config, "config already set", {
6829
- F: __dxlog_file24,
6830
- L: 191,
6613
+ F: __dxlog_file23,
6614
+ L: 190,
6831
6615
  S: this,
6832
6616
  A: [
6833
6617
  "!this._config",
@@ -6841,8 +6625,8 @@ var ClientServicesHost = class {
6841
6625
  }
6842
6626
  if (!options.signalManager) {
6843
6627
  log21.warn("running signaling without telemetry metadata.", void 0, {
6844
- F: __dxlog_file24,
6845
- L: 199,
6628
+ F: __dxlog_file23,
6629
+ L: 198,
6846
6630
  S: this,
6847
6631
  C: (f, a) => f(...a)
6848
6632
  });
@@ -6852,8 +6636,8 @@ var ClientServicesHost = class {
6852
6636
  }), signalManager = new WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
6853
6637
  this._signalManager = signalManager;
6854
6638
  invariant18(!this._networkManager, "network manager already set", {
6855
- F: __dxlog_file24,
6856
- L: 210,
6639
+ F: __dxlog_file23,
6640
+ L: 209,
6857
6641
  S: this,
6858
6642
  A: [
6859
6643
  "!this._networkManager",
@@ -6866,8 +6650,8 @@ var ClientServicesHost = class {
6866
6650
  signalManager
6867
6651
  });
6868
6652
  log21("initialized", void 0, {
6869
- F: __dxlog_file24,
6870
- L: 217,
6653
+ F: __dxlog_file23,
6654
+ L: 216,
6871
6655
  S: this,
6872
6656
  C: (f, a) => f(...a)
6873
6657
  });
@@ -6876,18 +6660,18 @@ var ClientServicesHost = class {
6876
6660
  if (this._open) {
6877
6661
  return;
6878
6662
  }
6879
- const traceId = PublicKey17.random().toHex();
6663
+ const traceId = PublicKey16.random().toHex();
6880
6664
  log21.trace("dxos.client-services.host.open", trace10.begin({
6881
6665
  id: traceId
6882
6666
  }), {
6883
- F: __dxlog_file24,
6884
- L: 228,
6667
+ F: __dxlog_file23,
6668
+ L: 227,
6885
6669
  S: this,
6886
6670
  C: (f, a) => f(...a)
6887
6671
  });
6888
6672
  invariant18(this._config, "config not set", {
6889
- F: __dxlog_file24,
6890
- L: 230,
6673
+ F: __dxlog_file23,
6674
+ L: 229,
6891
6675
  S: this,
6892
6676
  A: [
6893
6677
  "this._config",
@@ -6895,8 +6679,8 @@ var ClientServicesHost = class {
6895
6679
  ]
6896
6680
  });
6897
6681
  invariant18(this._storage, "storage not set", {
6898
- F: __dxlog_file24,
6899
- L: 231,
6682
+ F: __dxlog_file23,
6683
+ L: 230,
6900
6684
  S: this,
6901
6685
  A: [
6902
6686
  "this._storage",
@@ -6904,8 +6688,8 @@ var ClientServicesHost = class {
6904
6688
  ]
6905
6689
  });
6906
6690
  invariant18(this._signalManager, "signal manager not set", {
6907
- F: __dxlog_file24,
6908
- L: 232,
6691
+ F: __dxlog_file23,
6692
+ L: 231,
6909
6693
  S: this,
6910
6694
  A: [
6911
6695
  "this._signalManager",
@@ -6913,8 +6697,8 @@ var ClientServicesHost = class {
6913
6697
  ]
6914
6698
  });
6915
6699
  invariant18(this._networkManager, "network manager not set", {
6916
- F: __dxlog_file24,
6917
- L: 233,
6700
+ F: __dxlog_file23,
6701
+ L: 232,
6918
6702
  S: this,
6919
6703
  A: [
6920
6704
  "this._networkManager",
@@ -6925,8 +6709,8 @@ var ClientServicesHost = class {
6925
6709
  log21("opening...", {
6926
6710
  lockKey: this._resourceLock?.lockKey
6927
6711
  }, {
6928
- F: __dxlog_file24,
6929
- L: 236,
6712
+ F: __dxlog_file23,
6713
+ L: 235,
6930
6714
  S: this,
6931
6715
  C: (f, a) => f(...a)
6932
6716
  });
@@ -6937,18 +6721,16 @@ var ClientServicesHost = class {
6937
6721
  await this._level.open();
6938
6722
  await this._loggingService.open();
6939
6723
  this._serviceContext = new ServiceContext(this._storage, this._level, this._networkManager, this._signalManager, this._runtimeParams);
6940
- const dataSpaceManagerProvider = async () => {
6941
- await this._serviceContext.initialized.wait();
6942
- return this._serviceContext.dataSpaceManager;
6943
- };
6944
6724
  const identityService = new IdentityServiceImpl(this._serviceContext.identityManager, this._serviceContext.keyring, () => this._serviceContext.dataSpaceManager, (params) => this._createIdentity(params), (profile) => this._serviceContext.broadcastProfileUpdate(profile));
6945
6725
  this._serviceRegistry.setServices({
6946
6726
  SystemService: this._systemService,
6947
6727
  IdentityService: identityService,
6948
- ContactsService: new ContactsServiceImpl(this._serviceContext.identityManager, this._serviceContext.spaceManager, dataSpaceManagerProvider),
6949
6728
  InvitationsService: new InvitationsServiceImpl(this._serviceContext.invitationsManager),
6950
6729
  DevicesService: new DevicesServiceImpl(this._serviceContext.identityManager),
6951
- SpacesService: new SpacesServiceImpl(this._serviceContext.identityManager, this._serviceContext.spaceManager, dataSpaceManagerProvider),
6730
+ SpacesService: new SpacesServiceImpl(this._serviceContext.identityManager, this._serviceContext.spaceManager, async () => {
6731
+ await this._serviceContext.initialized.wait();
6732
+ return this._serviceContext.dataSpaceManager;
6733
+ }),
6952
6734
  DataService: this._serviceContext.echoHost.dataService,
6953
6735
  QueryService: this._serviceContext.echoHost.queryService,
6954
6736
  NetworkService: new NetworkServiceImpl(this._serviceContext.networkManager, this._serviceContext.signalManager),
@@ -6981,16 +6763,16 @@ var ClientServicesHost = class {
6981
6763
  log21("opened", {
6982
6764
  deviceKey
6983
6765
  }, {
6984
- F: __dxlog_file24,
6985
- L: 322,
6766
+ F: __dxlog_file23,
6767
+ L: 314,
6986
6768
  S: this,
6987
6769
  C: (f, a) => f(...a)
6988
6770
  });
6989
6771
  log21.trace("dxos.client-services.host.open", trace10.end({
6990
6772
  id: traceId
6991
6773
  }), {
6992
- F: __dxlog_file24,
6993
- L: 323,
6774
+ F: __dxlog_file23,
6775
+ L: 315,
6994
6776
  S: this,
6995
6777
  C: (f, a) => f(...a)
6996
6778
  });
@@ -7003,8 +6785,8 @@ var ClientServicesHost = class {
7003
6785
  log21("closing...", {
7004
6786
  deviceKey
7005
6787
  }, {
7006
- F: __dxlog_file24,
7007
- L: 334,
6788
+ F: __dxlog_file23,
6789
+ L: 326,
7008
6790
  S: this,
7009
6791
  C: (f, a) => f(...a)
7010
6792
  });
@@ -7021,41 +6803,41 @@ var ClientServicesHost = class {
7021
6803
  log21("closed", {
7022
6804
  deviceKey
7023
6805
  }, {
7024
- F: __dxlog_file24,
7025
- L: 343,
6806
+ F: __dxlog_file23,
6807
+ L: 335,
7026
6808
  S: this,
7027
6809
  C: (f, a) => f(...a)
7028
6810
  });
7029
6811
  }
7030
6812
  async reset() {
7031
- const traceId = PublicKey17.random().toHex();
6813
+ const traceId = PublicKey16.random().toHex();
7032
6814
  log21.trace("dxos.sdk.client-services-host.reset", trace10.begin({
7033
6815
  id: traceId
7034
6816
  }), {
7035
- F: __dxlog_file24,
7036
- L: 348,
6817
+ F: __dxlog_file23,
6818
+ L: 340,
7037
6819
  S: this,
7038
6820
  C: (f, a) => f(...a)
7039
6821
  });
7040
6822
  log21.info("resetting...", void 0, {
7041
- F: __dxlog_file24,
7042
- L: 350,
6823
+ F: __dxlog_file23,
6824
+ L: 342,
7043
6825
  S: this,
7044
6826
  C: (f, a) => f(...a)
7045
6827
  });
7046
6828
  await this._serviceContext?.close();
7047
6829
  await this._storage.reset();
7048
6830
  log21.info("reset", void 0, {
7049
- F: __dxlog_file24,
7050
- L: 353,
6831
+ F: __dxlog_file23,
6832
+ L: 345,
7051
6833
  S: this,
7052
6834
  C: (f, a) => f(...a)
7053
6835
  });
7054
6836
  log21.trace("dxos.sdk.client-services-host.reset", trace10.end({
7055
6837
  id: traceId
7056
6838
  }), {
7057
- F: __dxlog_file24,
7058
- L: 354,
6839
+ F: __dxlog_file23,
6840
+ L: 346,
7059
6841
  S: this,
7060
6842
  C: (f, a) => f(...a)
7061
6843
  });
@@ -7125,4 +6907,4 @@ export {
7125
6907
  ClientServicesProviderResource,
7126
6908
  DiagnosticsCollector
7127
6909
  };
7128
- //# sourceMappingURL=chunk-Y4NGEDFZ.mjs.map
6910
+ //# sourceMappingURL=chunk-BTHX37CG.mjs.map