@dxos/client-services 0.3.2-main.14bd43d → 0.3.2-main.224d3c3

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.
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // packages/sdk/client-services/src/packlets/testing/index.ts
@@ -52,7 +62,7 @@ var createMockCredential = async ({ signer, issuer }) => (0, import_credentials.
52
62
 
53
63
  // packages/sdk/client-services/src/packlets/testing/invitation-utils.ts
54
64
  var import_async18 = require("@dxos/async");
55
- var import_invariant17 = require("@dxos/invariant");
65
+ var import_invariant16 = require("@dxos/invariant");
56
66
  var import_services15 = require("@dxos/protocols/proto/dxos/client/services");
57
67
 
58
68
  // packages/sdk/client-services/src/packlets/services/client-rpc-server.ts
@@ -87,10 +97,10 @@ var getPlatform = () => {
87
97
  };
88
98
  }
89
99
  } else {
90
- const { platform, version, arch } = process;
100
+ const { platform: platform2, version, arch } = process;
91
101
  return {
92
102
  type: "node",
93
- platform: `${platform} ${version} ${arch}`,
103
+ platform: `${platform2} ${version} ${arch}`,
94
104
  runtime: process.version,
95
105
  uptime: Math.floor(process.uptime()),
96
106
  memory: process.memoryUsage()
@@ -99,7 +109,7 @@ var getPlatform = () => {
99
109
  };
100
110
 
101
111
  // packages/sdk/client-services/src/version.ts
102
- var DXOS_VERSION = "0.3.2-main.14bd43d";
112
+ var DXOS_VERSION = "0.3.2-main.224d3c3";
103
113
 
104
114
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
105
115
  var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -533,6 +543,7 @@ Identity = _ts_decorate([
533
543
  ], Identity);
534
544
 
535
545
  // packages/sdk/client-services/src/packlets/identity/identity-manager.ts
546
+ var import_platform2 = __toESM(require("platform"));
536
547
  var import_async3 = require("@dxos/async");
537
548
  var import_context2 = require("@dxos/context");
538
549
  var import_credentials6 = require("@dxos/credentials");
@@ -574,7 +585,7 @@ var IdentityManager = class IdentityManager2 {
574
585
  id: traceId
575
586
  }), {
576
587
  F: __dxlog_file4,
577
- L: 73,
588
+ L: 75,
578
589
  S: this,
579
590
  C: (f, a) => f(...a)
580
591
  });
@@ -583,7 +594,7 @@ var IdentityManager = class IdentityManager2 {
583
594
  identityRecord
584
595
  }, {
585
596
  F: __dxlog_file4,
586
- L: 76,
597
+ L: 78,
587
598
  S: this,
588
599
  C: (f, a) => f(...a)
589
600
  });
@@ -596,7 +607,7 @@ var IdentityManager = class IdentityManager2 {
596
607
  displayName: this._identity.profileDocument?.displayName
597
608
  }, {
598
609
  F: __dxlog_file4,
599
- L: 81,
610
+ L: 83,
600
611
  S: this,
601
612
  C: (f, a) => f(...a)
602
613
  });
@@ -606,7 +617,7 @@ var IdentityManager = class IdentityManager2 {
606
617
  id: traceId
607
618
  }), {
608
619
  F: __dxlog_file4,
609
- L: 87,
620
+ L: 89,
610
621
  S: this,
611
622
  C: (f, a) => f(...a)
612
623
  });
@@ -617,7 +628,7 @@ var IdentityManager = class IdentityManager2 {
617
628
  async createIdentity({ displayName } = {}) {
618
629
  (0, import_invariant3.invariant)(!this._identity, "Identity already exists.", {
619
630
  F: __dxlog_file4,
620
- L: 95,
631
+ L: 97,
621
632
  S: this,
622
633
  A: [
623
634
  "!this._identity",
@@ -626,7 +637,7 @@ var IdentityManager = class IdentityManager2 {
626
637
  });
627
638
  (0, import_log4.log)("creating identity...", void 0, {
628
639
  F: __dxlog_file4,
629
- L: 96,
640
+ L: 98,
630
641
  S: this,
631
642
  C: (f, a) => f(...a)
632
643
  });
@@ -647,7 +658,7 @@ var IdentityManager = class IdentityManager2 {
647
658
  const generator = new import_credentials6.CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
648
659
  (0, import_invariant3.invariant)(identityRecord.haloSpace.genesisFeedKey, "Genesis feed key is required.", {
649
660
  F: __dxlog_file4,
650
- L: 115,
661
+ L: 117,
651
662
  S: this,
652
663
  A: [
653
664
  "identityRecord.haloSpace.genesisFeedKey",
@@ -656,7 +667,7 @@ var IdentityManager = class IdentityManager2 {
656
667
  });
657
668
  (0, import_invariant3.invariant)(identityRecord.haloSpace.dataFeedKey, "Data feed key is required.", {
658
669
  F: __dxlog_file4,
659
- L: 116,
670
+ L: 118,
660
671
  S: this,
661
672
  A: [
662
673
  "identityRecord.haloSpace.dataFeedKey",
@@ -675,6 +686,13 @@ var IdentityManager = class IdentityManager2 {
675
686
  }));
676
687
  }
677
688
  credentials.push(await generator.createDeviceAuthorization(identityRecord.deviceKey));
689
+ credentials.push(await generator.createDeviceProfile({
690
+ platform: import_platform2.default.name,
691
+ platformVersion: import_platform2.default.version,
692
+ architecture: typeof import_platform2.default.os?.architecture === "number" ? String(import_platform2.default.os.architecture) : void 0,
693
+ os: import_platform2.default.os?.family,
694
+ osVersion: import_platform2.default.os?.version
695
+ }));
678
696
  for (const credential of credentials) {
679
697
  await identity.controlPipeline.writer.write({
680
698
  credential: {
@@ -691,7 +709,7 @@ var IdentityManager = class IdentityManager2 {
691
709
  displayName: this._identity.profileDocument?.displayName
692
710
  }, {
693
711
  F: __dxlog_file4,
694
- L: 151,
712
+ L: 163,
695
713
  S: this,
696
714
  C: (f, a) => f(...a)
697
715
  });
@@ -701,7 +719,7 @@ var IdentityManager = class IdentityManager2 {
701
719
  deviceKey: identity.deviceKey
702
720
  }, {
703
721
  F: __dxlog_file4,
704
- L: 157,
722
+ L: 169,
705
723
  S: this,
706
724
  C: (f, a) => f(...a)
707
725
  });
@@ -715,13 +733,13 @@ var IdentityManager = class IdentityManager2 {
715
733
  params
716
734
  }, {
717
735
  F: __dxlog_file4,
718
- L: 165,
736
+ L: 177,
719
737
  S: this,
720
738
  C: (f, a) => f(...a)
721
739
  });
722
740
  (0, import_invariant3.invariant)(!this._identity, "Identity already exists.", {
723
741
  F: __dxlog_file4,
724
- L: 166,
742
+ L: 178,
725
743
  S: this,
726
744
  A: [
727
745
  "!this._identity",
@@ -749,7 +767,7 @@ var IdentityManager = class IdentityManager2 {
749
767
  displayName: this._identity.profileDocument?.displayName
750
768
  }, {
751
769
  F: __dxlog_file4,
752
- L: 185,
770
+ L: 197,
753
771
  S: this,
754
772
  C: (f, a) => f(...a)
755
773
  });
@@ -759,7 +777,7 @@ var IdentityManager = class IdentityManager2 {
759
777
  deviceKey: identity.deviceKey
760
778
  }, {
761
779
  F: __dxlog_file4,
762
- L: 191,
780
+ L: 203,
763
781
  S: this,
764
782
  C: (f, a) => f(...a)
765
783
  });
@@ -771,7 +789,7 @@ var IdentityManager = class IdentityManager2 {
771
789
  async updateProfile(profile) {
772
790
  (0, import_invariant3.invariant)(this._identity, "Identity not initialized.", {
773
791
  F: __dxlog_file4,
774
- L: 199,
792
+ L: 211,
775
793
  S: this,
776
794
  A: [
777
795
  "this._identity",
@@ -799,51 +817,10 @@ var IdentityManager = class IdentityManager2 {
799
817
  this.stateUpdate.emit();
800
818
  return profile;
801
819
  }
802
- async updateDevice({ deviceKey, profile }) {
803
- (0, import_invariant3.invariant)(this._identity, "Identity not initialized.", {
804
- F: __dxlog_file4,
805
- L: 216,
806
- S: this,
807
- A: [
808
- "this._identity",
809
- "'Identity not initialized.'"
810
- ]
811
- });
812
- (0, import_invariant3.invariant)(this._identity.authorizedDeviceKeys.has(deviceKey), "Device not authorized.", {
813
- F: __dxlog_file4,
814
- L: 218,
815
- S: this,
816
- A: [
817
- "this._identity.authorizedDeviceKeys.has(deviceKey)",
818
- "'Device not authorized.'"
819
- ]
820
- });
821
- const credential = await this._identity.getIdentityCredentialSigner().createCredential({
822
- subject: this._identity.identityKey,
823
- assertion: {
824
- "@type": "dxos.halo.credentials.DeviceProfile",
825
- deviceKey,
826
- profile
827
- }
828
- });
829
- const receipt = await this._identity.controlPipeline.writer.write({
830
- credential: {
831
- credential
832
- }
833
- });
834
- await this._identity.controlPipeline.state.waitUntilTimeframe(new import_timeframe.Timeframe([
835
- [
836
- receipt.feedKey,
837
- receipt.seq
838
- ]
839
- ]));
840
- this.stateUpdate.emit();
841
- return profile;
842
- }
843
820
  async _constructIdentity(identityRecord) {
844
821
  (0, import_invariant3.invariant)(!this._identity, void 0, {
845
822
  F: __dxlog_file4,
846
- L: 236,
823
+ L: 228,
847
824
  S: this,
848
825
  A: [
849
826
  "!this._identity",
@@ -854,13 +831,13 @@ var IdentityManager = class IdentityManager2 {
854
831
  identityRecord
855
832
  }, {
856
833
  F: __dxlog_file4,
857
- L: 237,
834
+ L: 229,
858
835
  S: this,
859
836
  C: (f, a) => f(...a)
860
837
  });
861
838
  (0, import_invariant3.invariant)(identityRecord.haloSpace.controlFeedKey, void 0, {
862
839
  F: __dxlog_file4,
863
- L: 240,
840
+ L: 232,
864
841
  S: this,
865
842
  A: [
866
843
  "identityRecord.haloSpace.controlFeedKey",
@@ -872,7 +849,7 @@ var IdentityManager = class IdentityManager2 {
872
849
  });
873
850
  (0, import_invariant3.invariant)(identityRecord.haloSpace.dataFeedKey, void 0, {
874
851
  F: __dxlog_file4,
875
- L: 244,
852
+ L: 236,
876
853
  S: this,
877
854
  A: [
878
855
  "identityRecord.haloSpace.dataFeedKey",
@@ -904,7 +881,7 @@ var IdentityManager = class IdentityManager2 {
904
881
  identityKey: identityRecord.identityKey
905
882
  }, {
906
883
  F: __dxlog_file4,
907
- L: 268,
884
+ L: 260,
908
885
  S: this,
909
886
  C: (f, a) => f(...a)
910
887
  });
@@ -925,7 +902,7 @@ var IdentityManager = class IdentityManager2 {
925
902
  onAuthFailure: () => {
926
903
  import_log4.log.warn("auth failure", void 0, {
927
904
  F: __dxlog_file4,
928
- L: 287,
905
+ L: 279,
929
906
  S: this,
930
907
  C: (f, a) => f(...a)
931
908
  });
@@ -2139,15 +2116,6 @@ var InvitationsServiceImpl = class {
2139
2116
  await accepted.cancel();
2140
2117
  this._acceptInvitations.delete(invitationId);
2141
2118
  this._removedAccepted.emit(accepted.get());
2142
- } else {
2143
- import_log7.log.warn("invalid invitation", {
2144
- invitationId
2145
- }, {
2146
- F: __dxlog_file9,
2147
- L: 132,
2148
- S: this,
2149
- C: (f, a) => f(...a)
2150
- });
2151
2119
  }
2152
2120
  }
2153
2121
  queryInvitations() {
@@ -3889,7 +3857,7 @@ var import_context10 = require("@dxos/context");
3889
3857
  var import_document_model2 = require("@dxos/document-model");
3890
3858
  var import_echo_pipeline3 = require("@dxos/echo-pipeline");
3891
3859
  var import_echo_schema = require("@dxos/echo-schema");
3892
- var import_invariant16 = require("@dxos/invariant");
3860
+ var import_invariant15 = require("@dxos/invariant");
3893
3861
  var import_keys13 = require("@dxos/keys");
3894
3862
  var import_log16 = require("@dxos/log");
3895
3863
  var import_messaging = require("@dxos/messaging");
@@ -3928,33 +3896,13 @@ var ServiceRegistry = class {
3928
3896
  // packages/sdk/client-services/src/packlets/devices/devices-service.ts
3929
3897
  var import_async12 = require("@dxos/async");
3930
3898
  var import_codec_protobuf6 = require("@dxos/codec-protobuf");
3931
- var import_invariant14 = require("@dxos/invariant");
3932
3899
  var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
3933
- var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
3934
3900
  var DevicesServiceImpl = class {
3935
3901
  constructor(_identityManager) {
3936
3902
  this._identityManager = _identityManager;
3937
3903
  }
3938
3904
  async updateDevice(profile) {
3939
- (0, import_invariant14.invariant)(this._identityManager.identity, "Identity not initialized", {
3940
- F: __dxlog_file16,
3941
- L: 17,
3942
- S: this,
3943
- A: [
3944
- "this._identityManager.identity",
3945
- "'Identity not initialized'"
3946
- ]
3947
- });
3948
- const deviceKey = this._identityManager.identity.deviceKey;
3949
- await this._identityManager.updateDevice({
3950
- deviceKey,
3951
- profile
3952
- });
3953
- return {
3954
- deviceKey,
3955
- kind: import_services11.DeviceKind.CURRENT,
3956
- profile
3957
- };
3905
+ throw new Error("Method not implemented.");
3958
3906
  }
3959
3907
  queryDevices() {
3960
3908
  return new import_codec_protobuf6.Stream(({ next }) => {
@@ -4298,7 +4246,7 @@ var DevtoolsServiceImpl = class {
4298
4246
  };
4299
4247
 
4300
4248
  // packages/sdk/client-services/src/packlets/locks/node.ts
4301
- var import_invariant15 = require("@dxos/invariant");
4249
+ var import_invariant14 = require("@dxos/invariant");
4302
4250
  var import_lock_file = require("@dxos/lock-file");
4303
4251
  var import_log14 = require("@dxos/log");
4304
4252
  function _ts_decorate6(decorators, target, key, desc) {
@@ -4311,7 +4259,7 @@ function _ts_decorate6(decorators, target, key, desc) {
4311
4259
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4312
4260
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4313
4261
  }
4314
- var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
4262
+ var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
4315
4263
  var Lock = class {
4316
4264
  constructor({ lockKey: lockPath, onAcquire, onRelease }) {
4317
4265
  this._lockPath = lockPath;
@@ -4323,7 +4271,7 @@ var Lock = class {
4323
4271
  }
4324
4272
  async acquire() {
4325
4273
  (0, import_log14.log)("acquiring lock...", void 0, {
4326
- F: __dxlog_file17,
4274
+ F: __dxlog_file16,
4327
4275
  L: 32,
4328
4276
  S: this,
4329
4277
  C: (f, a) => f(...a)
@@ -4331,7 +4279,7 @@ var Lock = class {
4331
4279
  this._fileHandle = await import_lock_file.LockFile.acquire(this._lockPath);
4332
4280
  await this._onAcquire?.();
4333
4281
  (0, import_log14.log)("acquired lock", void 0, {
4334
- F: __dxlog_file17,
4282
+ F: __dxlog_file16,
4335
4283
  L: 37,
4336
4284
  S: this,
4337
4285
  C: (f, a) => f(...a)
@@ -4339,8 +4287,8 @@ var Lock = class {
4339
4287
  }
4340
4288
  async release() {
4341
4289
  await this._onRelease?.();
4342
- (0, import_invariant15.invariant)(this._fileHandle, "Lock is not acquired", {
4343
- F: __dxlog_file17,
4290
+ (0, import_invariant14.invariant)(this._fileHandle, "Lock is not acquired", {
4291
+ F: __dxlog_file16,
4344
4292
  L: 42,
4345
4293
  S: this,
4346
4294
  A: [
@@ -4618,7 +4566,7 @@ function _ts_decorate7(decorators, target, key, desc) {
4618
4566
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4619
4567
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4620
4568
  }
4621
- var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
4569
+ var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
4622
4570
  var createDefaultModelFactory = () => {
4623
4571
  return new import_model_factory.ModelFactory().registerModel(import_document_model2.DocumentModel).registerModel(import_text_model.TextModel);
4624
4572
  };
@@ -4718,8 +4666,8 @@ var ClientServicesHost = class ClientServicesHost2 {
4718
4666
  * Can only be called once.
4719
4667
  */
4720
4668
  initialize({ config, ...options }) {
4721
- (0, import_invariant16.invariant)(!this._open, "service host is open", {
4722
- F: __dxlog_file18,
4669
+ (0, import_invariant15.invariant)(!this._open, "service host is open", {
4670
+ F: __dxlog_file17,
4723
4671
  L: 201,
4724
4672
  S: this,
4725
4673
  A: [
@@ -4728,14 +4676,14 @@ var ClientServicesHost = class ClientServicesHost2 {
4728
4676
  ]
4729
4677
  });
4730
4678
  (0, import_log16.log)("initializing...", void 0, {
4731
- F: __dxlog_file18,
4679
+ F: __dxlog_file17,
4732
4680
  L: 202,
4733
4681
  S: this,
4734
4682
  C: (f, a) => f(...a)
4735
4683
  });
4736
4684
  if (config) {
4737
- (0, import_invariant16.invariant)(!this._config, "config already set", {
4738
- F: __dxlog_file18,
4685
+ (0, import_invariant15.invariant)(!this._config, "config already set", {
4686
+ F: __dxlog_file17,
4739
4687
  L: 205,
4740
4688
  S: this,
4741
4689
  A: [
@@ -4752,8 +4700,8 @@ var ClientServicesHost = class ClientServicesHost2 {
4752
4700
  iceServers: this._config?.get("runtime.services.ice")
4753
4701
  }), signalManager = new import_messaging.WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
4754
4702
  this._signalManager = signalManager;
4755
- (0, import_invariant16.invariant)(!this._networkManager, "network manager already set", {
4756
- F: __dxlog_file18,
4703
+ (0, import_invariant15.invariant)(!this._networkManager, "network manager already set", {
4704
+ F: __dxlog_file17,
4757
4705
  L: 221,
4758
4706
  S: this,
4759
4707
  A: [
@@ -4767,7 +4715,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4767
4715
  signalManager
4768
4716
  });
4769
4717
  (0, import_log16.log)("initialized", void 0, {
4770
- F: __dxlog_file18,
4718
+ F: __dxlog_file17,
4771
4719
  L: 228,
4772
4720
  S: this,
4773
4721
  C: (f, a) => f(...a)
@@ -4781,13 +4729,13 @@ var ClientServicesHost = class ClientServicesHost2 {
4781
4729
  import_log16.log.trace("dxos.client-services.host.open", import_protocols12.trace.begin({
4782
4730
  id: traceId
4783
4731
  }), {
4784
- F: __dxlog_file18,
4732
+ F: __dxlog_file17,
4785
4733
  L: 239,
4786
4734
  S: this,
4787
4735
  C: (f, a) => f(...a)
4788
4736
  });
4789
- (0, import_invariant16.invariant)(this._config, "config not set", {
4790
- F: __dxlog_file18,
4737
+ (0, import_invariant15.invariant)(this._config, "config not set", {
4738
+ F: __dxlog_file17,
4791
4739
  L: 241,
4792
4740
  S: this,
4793
4741
  A: [
@@ -4795,8 +4743,8 @@ var ClientServicesHost = class ClientServicesHost2 {
4795
4743
  "'config not set'"
4796
4744
  ]
4797
4745
  });
4798
- (0, import_invariant16.invariant)(this._storage, "storage not set", {
4799
- F: __dxlog_file18,
4746
+ (0, import_invariant15.invariant)(this._storage, "storage not set", {
4747
+ F: __dxlog_file17,
4800
4748
  L: 242,
4801
4749
  S: this,
4802
4750
  A: [
@@ -4804,8 +4752,8 @@ var ClientServicesHost = class ClientServicesHost2 {
4804
4752
  "'storage not set'"
4805
4753
  ]
4806
4754
  });
4807
- (0, import_invariant16.invariant)(this._signalManager, "signal manager not set", {
4808
- F: __dxlog_file18,
4755
+ (0, import_invariant15.invariant)(this._signalManager, "signal manager not set", {
4756
+ F: __dxlog_file17,
4809
4757
  L: 243,
4810
4758
  S: this,
4811
4759
  A: [
@@ -4813,8 +4761,8 @@ var ClientServicesHost = class ClientServicesHost2 {
4813
4761
  "'signal manager not set'"
4814
4762
  ]
4815
4763
  });
4816
- (0, import_invariant16.invariant)(this._networkManager, "network manager not set", {
4817
- F: __dxlog_file18,
4764
+ (0, import_invariant15.invariant)(this._networkManager, "network manager not set", {
4765
+ F: __dxlog_file17,
4818
4766
  L: 244,
4819
4767
  S: this,
4820
4768
  A: [
@@ -4826,7 +4774,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4826
4774
  (0, import_log16.log)("opening...", {
4827
4775
  lockKey: this._resourceLock?.lockKey
4828
4776
  }, {
4829
- F: __dxlog_file18,
4777
+ F: __dxlog_file17,
4830
4778
  L: 247,
4831
4779
  S: this,
4832
4780
  C: (f, a) => f(...a)
@@ -4872,7 +4820,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4872
4820
  (0, import_log16.log)("opened", {
4873
4821
  deviceKey
4874
4822
  }, {
4875
- F: __dxlog_file18,
4823
+ F: __dxlog_file17,
4876
4824
  L: 316,
4877
4825
  S: this,
4878
4826
  C: (f, a) => f(...a)
@@ -4880,7 +4828,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4880
4828
  import_log16.log.trace("dxos.client-services.host.open", import_protocols12.trace.end({
4881
4829
  id: traceId
4882
4830
  }), {
4883
- F: __dxlog_file18,
4831
+ F: __dxlog_file17,
4884
4832
  L: 317,
4885
4833
  S: this,
4886
4834
  C: (f, a) => f(...a)
@@ -4894,7 +4842,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4894
4842
  (0, import_log16.log)("closing...", {
4895
4843
  deviceKey
4896
4844
  }, {
4897
- F: __dxlog_file18,
4845
+ F: __dxlog_file17,
4898
4846
  L: 328,
4899
4847
  S: this,
4900
4848
  C: (f, a) => f(...a)
@@ -4910,7 +4858,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4910
4858
  (0, import_log16.log)("closed", {
4911
4859
  deviceKey
4912
4860
  }, {
4913
- F: __dxlog_file18,
4861
+ F: __dxlog_file17,
4914
4862
  L: 335,
4915
4863
  S: this,
4916
4864
  C: (f, a) => f(...a)
@@ -4921,13 +4869,13 @@ var ClientServicesHost = class ClientServicesHost2 {
4921
4869
  import_log16.log.trace("dxos.sdk.client-services-host.reset", import_protocols12.trace.begin({
4922
4870
  id: traceId
4923
4871
  }), {
4924
- F: __dxlog_file18,
4872
+ F: __dxlog_file17,
4925
4873
  L: 340,
4926
4874
  S: this,
4927
4875
  C: (f, a) => f(...a)
4928
4876
  });
4929
4877
  (0, import_log16.log)("resetting...", void 0, {
4930
- F: __dxlog_file18,
4878
+ F: __dxlog_file17,
4931
4879
  L: 342,
4932
4880
  S: this,
4933
4881
  C: (f, a) => f(...a)
@@ -4935,7 +4883,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4935
4883
  await this._serviceContext?.close();
4936
4884
  await this._storage.reset();
4937
4885
  (0, import_log16.log)("reset", void 0, {
4938
- F: __dxlog_file18,
4886
+ F: __dxlog_file17,
4939
4887
  L: 345,
4940
4888
  S: this,
4941
4889
  C: (f, a) => f(...a)
@@ -4943,7 +4891,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4943
4891
  import_log16.log.trace("dxos.sdk.client-services-host.reset", import_protocols12.trace.end({
4944
4892
  id: traceId
4945
4893
  }), {
4946
- F: __dxlog_file18,
4894
+ F: __dxlog_file17,
4947
4895
  L: 346,
4948
4896
  S: this,
4949
4897
  C: (f, a) => f(...a)
@@ -4989,7 +4937,7 @@ ClientServicesHost = _ts_decorate7([
4989
4937
  ], ClientServicesHost);
4990
4938
 
4991
4939
  // packages/sdk/client-services/src/packlets/testing/invitation-utils.ts
4992
- var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/invitation-utils.ts";
4940
+ var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/invitation-utils.ts";
4993
4941
  var sanitizeInvitation = (invitation) => {
4994
4942
  return {
4995
4943
  invitationId: invitation.invitationId,
@@ -5019,8 +4967,8 @@ var performInvitation = ({ host, guest, options, hooks }) => {
5019
4967
  if (hooks?.guest?.onConnecting?.(guestObservable)) {
5020
4968
  break;
5021
4969
  }
5022
- (0, import_invariant17.invariant)(hostInvitation.swarmKey.equals(guestInvitation.swarmKey), void 0, {
5023
- F: __dxlog_file19,
4970
+ (0, import_invariant16.invariant)(hostInvitation.swarmKey.equals(guestInvitation.swarmKey), void 0, {
4971
+ F: __dxlog_file18,
5024
4972
  L: 84,
5025
4973
  S: void 0,
5026
4974
  A: [