@dxos/client-services 0.3.2-main.988f99c → 0.3.2-main.98b13d7

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 (154) hide show
  1. package/dist/lib/browser/{chunk-3GWSYNJC.mjs → chunk-FMX6R3UF.mjs} +111 -173
  2. package/dist/lib/browser/chunk-FMX6R3UF.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +2 -2
  4. package/dist/lib/browser/index.mjs.map +2 -2
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/packlets/testing/index.mjs +1 -1
  7. package/dist/lib/browser/packlets/testing/index.mjs.map +2 -2
  8. package/dist/lib/node/index.cjs +155 -207
  9. package/dist/lib/node/index.cjs.map +3 -3
  10. package/dist/lib/node/meta.json +1 -1
  11. package/dist/lib/node/packlets/testing/index.cjs +130 -182
  12. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  13. package/dist/types/src/packlets/devices/devices-service.d.ts +4 -4
  14. package/dist/types/src/packlets/devices/devices-service.d.ts.map +1 -1
  15. package/dist/types/src/packlets/devtools/devtools.d.ts +4 -4
  16. package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -1
  17. package/dist/types/src/packlets/devtools/feeds.d.ts +3 -3
  18. package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -1
  19. package/dist/types/src/packlets/devtools/keys.d.ts +2 -2
  20. package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -1
  21. package/dist/types/src/packlets/devtools/metadata.d.ts +2 -2
  22. package/dist/types/src/packlets/devtools/metadata.d.ts.map +1 -1
  23. package/dist/types/src/packlets/devtools/network.d.ts +3 -3
  24. package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
  25. package/dist/types/src/packlets/devtools/spaces.d.ts +2 -2
  26. package/dist/types/src/packlets/devtools/spaces.d.ts.map +1 -1
  27. package/dist/types/src/packlets/identity/authenticator.d.ts +5 -5
  28. package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -1
  29. package/dist/types/src/packlets/identity/identity-manager.d.ts +5 -9
  30. package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
  31. package/dist/types/src/packlets/identity/identity-service.d.ts +4 -4
  32. package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
  33. package/dist/types/src/packlets/identity/identity.d.ts +8 -8
  34. package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
  35. package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts +4 -4
  36. package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts.map +1 -1
  37. package/dist/types/src/packlets/invitations/invitation-extension.d.ts +3 -3
  38. package/dist/types/src/packlets/invitations/invitation-extension.d.ts.map +1 -1
  39. package/dist/types/src/packlets/invitations/invitation-protocol.d.ts +3 -3
  40. package/dist/types/src/packlets/invitations/invitation-protocol.d.ts.map +1 -1
  41. package/dist/types/src/packlets/invitations/invitations-handler.d.ts +1 -1
  42. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
  43. package/dist/types/src/packlets/invitations/invitations-service.d.ts +3 -3
  44. package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
  45. package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts +6 -6
  46. package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts.map +1 -1
  47. package/dist/types/src/packlets/locks/browser.d.ts +1 -1
  48. package/dist/types/src/packlets/locks/browser.d.ts.map +1 -1
  49. package/dist/types/src/packlets/locks/node.d.ts +1 -1
  50. package/dist/types/src/packlets/locks/node.d.ts.map +1 -1
  51. package/dist/types/src/packlets/locks/resource-lock.d.ts +1 -1
  52. package/dist/types/src/packlets/locks/resource-lock.d.ts.map +1 -1
  53. package/dist/types/src/packlets/logging/logging-service.d.ts +1 -1
  54. package/dist/types/src/packlets/logging/logging-service.d.ts.map +1 -1
  55. package/dist/types/src/packlets/network/network-service.d.ts +3 -3
  56. package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
  57. package/dist/types/src/packlets/services/client-rpc-server.d.ts +5 -5
  58. package/dist/types/src/packlets/services/client-rpc-server.d.ts.map +1 -1
  59. package/dist/types/src/packlets/services/diagnostics.d.ts +8 -8
  60. package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
  61. package/dist/types/src/packlets/services/service-context.d.ts +6 -6
  62. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  63. package/dist/types/src/packlets/services/service-host.d.ts +5 -5
  64. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  65. package/dist/types/src/packlets/services/service-registry.d.ts +1 -1
  66. package/dist/types/src/packlets/services/service-registry.d.ts.map +1 -1
  67. package/dist/types/src/packlets/spaces/data-space-manager.d.ts +7 -7
  68. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  69. package/dist/types/src/packlets/spaces/data-space.d.ts +9 -9
  70. package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
  71. package/dist/types/src/packlets/spaces/genesis.d.ts +3 -3
  72. package/dist/types/src/packlets/spaces/genesis.d.ts.map +1 -1
  73. package/dist/types/src/packlets/spaces/notarization-plugin.d.ts +5 -5
  74. package/dist/types/src/packlets/spaces/notarization-plugin.d.ts.map +1 -1
  75. package/dist/types/src/packlets/spaces/spaces-service.d.ts +7 -7
  76. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
  77. package/dist/types/src/packlets/system/system-service.d.ts +5 -5
  78. package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
  79. package/dist/types/src/packlets/testing/credential-utils.d.ts +2 -2
  80. package/dist/types/src/packlets/testing/credential-utils.d.ts.map +1 -1
  81. package/dist/types/src/packlets/testing/invitation-utils.d.ts +1 -1
  82. package/dist/types/src/packlets/testing/invitation-utils.d.ts.map +1 -1
  83. package/dist/types/src/packlets/testing/test-builder.d.ts +4 -4
  84. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  85. package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts +4 -4
  86. package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts.map +1 -1
  87. package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts +4 -4
  88. package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts.map +1 -1
  89. package/dist/types/src/packlets/vault/shell-runtime.d.ts +4 -4
  90. package/dist/types/src/packlets/vault/shell-runtime.d.ts.map +1 -1
  91. package/dist/types/src/packlets/vault/worker-runtime.d.ts +3 -3
  92. package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -1
  93. package/dist/types/src/packlets/vault/worker-session.d.ts +3 -3
  94. package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -1
  95. package/dist/types/src/version.d.ts +1 -1
  96. package/package.json +37 -35
  97. package/src/packlets/devices/devices-service.test.ts +2 -2
  98. package/src/packlets/devices/devices-service.ts +10 -17
  99. package/src/packlets/devtools/devtools.ts +35 -35
  100. package/src/packlets/devtools/feeds.ts +6 -6
  101. package/src/packlets/devtools/keys.ts +2 -2
  102. package/src/packlets/devtools/metadata.ts +2 -2
  103. package/src/packlets/devtools/network.ts +8 -8
  104. package/src/packlets/devtools/spaces.ts +8 -5
  105. package/src/packlets/identity/authenticator.ts +5 -5
  106. package/src/packlets/identity/identity-manager.test.ts +7 -6
  107. package/src/packlets/identity/identity-manager.ts +18 -26
  108. package/src/packlets/identity/identity-service.test.ts +2 -2
  109. package/src/packlets/identity/identity-service.ts +8 -8
  110. package/src/packlets/identity/identity.test.ts +2 -2
  111. package/src/packlets/identity/identity.ts +13 -9
  112. package/src/packlets/invitations/device-invitation-protocol.test.ts +1 -1
  113. package/src/packlets/invitations/device-invitation-protocol.ts +8 -4
  114. package/src/packlets/invitations/invitation-extension.ts +6 -6
  115. package/src/packlets/invitations/invitation-protocol.ts +7 -3
  116. package/src/packlets/invitations/invitations-handler.ts +7 -2
  117. package/src/packlets/invitations/invitations-service.ts +5 -7
  118. package/src/packlets/invitations/space-invitation-protocol.test.ts +1 -1
  119. package/src/packlets/invitations/space-invitation-protocol.ts +12 -8
  120. package/src/packlets/locks/browser.ts +1 -1
  121. package/src/packlets/locks/node.ts +2 -2
  122. package/src/packlets/locks/resource-lock.ts +1 -1
  123. package/src/packlets/logging/logging-service.ts +14 -8
  124. package/src/packlets/logging/logging.test.ts +1 -1
  125. package/src/packlets/network/network-service.test.ts +2 -2
  126. package/src/packlets/network/network-service.ts +7 -3
  127. package/src/packlets/services/client-rpc-server.ts +5 -5
  128. package/src/packlets/services/diagnostics.ts +13 -13
  129. package/src/packlets/services/service-context.test.ts +2 -2
  130. package/src/packlets/services/service-context.ts +9 -9
  131. package/src/packlets/services/service-host.test.ts +3 -3
  132. package/src/packlets/services/service-host.ts +9 -9
  133. package/src/packlets/services/service-registry.test.ts +2 -2
  134. package/src/packlets/services/service-registry.ts +1 -1
  135. package/src/packlets/spaces/data-space-manager.test.ts +4 -4
  136. package/src/packlets/spaces/data-space-manager.ts +8 -8
  137. package/src/packlets/spaces/data-space.ts +10 -10
  138. package/src/packlets/spaces/genesis.ts +3 -3
  139. package/src/packlets/spaces/notarization-plugin.test.ts +2 -2
  140. package/src/packlets/spaces/notarization-plugin.ts +5 -5
  141. package/src/packlets/spaces/spaces-service.test.ts +2 -2
  142. package/src/packlets/spaces/spaces-service.ts +17 -17
  143. package/src/packlets/system/system-service.test.ts +1 -1
  144. package/src/packlets/system/system-service.ts +9 -9
  145. package/src/packlets/testing/credential-utils.ts +2 -2
  146. package/src/packlets/testing/invitation-utils.ts +1 -1
  147. package/src/packlets/testing/test-builder.ts +4 -4
  148. package/src/packlets/vault/iframe-host-runtime.ts +6 -6
  149. package/src/packlets/vault/iframe-proxy-runtime.ts +10 -5
  150. package/src/packlets/vault/shell-runtime.ts +4 -4
  151. package/src/packlets/vault/worker-runtime.ts +3 -3
  152. package/src/packlets/vault/worker-session.ts +5 -5
  153. package/src/version.ts +1 -1
  154. package/dist/lib/browser/chunk-3GWSYNJC.mjs.map +0 -7
@@ -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.988f99c";
112
+ var DXOS_VERSION = "0.3.2-main.98b13d7";
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";
@@ -385,7 +395,7 @@ var Identity = class Identity2 {
385
395
  deviceKey
386
396
  }, {
387
397
  F: __dxlog_file3,
388
- L: 60,
398
+ L: 64,
389
399
  S: this,
390
400
  C: (f, a) => f(...a)
391
401
  });
@@ -457,7 +467,7 @@ var Identity = class Identity2 {
457
467
  getIdentityCredentialSigner() {
458
468
  (0, import_invariant2.invariant)(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
459
469
  F: __dxlog_file3,
460
- L: 141,
470
+ L: 145,
461
471
  S: this,
462
472
  A: [
463
473
  "this._deviceStateMachine.deviceCredentialChain",
@@ -481,7 +491,7 @@ var Identity = class Identity2 {
481
491
  dataFeedKey
482
492
  }, {
483
493
  F: __dxlog_file3,
484
- L: 157,
494
+ L: 161,
485
495
  S: this,
486
496
  C: (f, a) => f(...a)
487
497
  });
@@ -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
  });
@@ -1035,7 +1012,7 @@ var DeviceInvitationProtocol = class {
1035
1012
  async admit(request) {
1036
1013
  (0, import_invariant5.invariant)(request.device, void 0, {
1037
1014
  F: __dxlog_file6,
1038
- L: 31,
1015
+ L: 35,
1039
1016
  S: this,
1040
1017
  A: [
1041
1018
  "request.device",
@@ -1071,7 +1048,7 @@ var DeviceInvitationProtocol = class {
1071
1048
  async accept(response, request) {
1072
1049
  (0, import_invariant5.invariant)(response.device, void 0, {
1073
1050
  F: __dxlog_file6,
1074
- L: 64,
1051
+ L: 68,
1075
1052
  S: this,
1076
1053
  A: [
1077
1054
  "response.device",
@@ -1081,7 +1058,7 @@ var DeviceInvitationProtocol = class {
1081
1058
  const { identityKey, haloSpaceKey, genesisFeedKey, controlTimeframe } = response.device;
1082
1059
  (0, import_invariant5.invariant)(request.device, void 0, {
1083
1060
  F: __dxlog_file6,
1084
- L: 67,
1061
+ L: 71,
1085
1062
  S: this,
1086
1063
  A: [
1087
1064
  "request.device",
@@ -1471,7 +1448,7 @@ var InvitationsHandler = class {
1471
1448
  const authCode = options?.authCode ?? (authMethod === import_services4.Invitation.AuthMethod.SHARED_SECRET ? (0, import_credentials9.generatePasscode)(import_client_protocol2.AUTHENTICATION_CODE_LENGTH) : void 0);
1472
1449
  (0, import_invariant7.invariant)(protocol, void 0, {
1473
1450
  F: __dxlog_file8,
1474
- L: 75,
1451
+ L: 80,
1475
1452
  S: this,
1476
1453
  A: [
1477
1454
  "protocol",
@@ -1500,7 +1477,7 @@ var InvitationsHandler = class {
1500
1477
  ...protocol.toJSON()
1501
1478
  }, {
1502
1479
  F: __dxlog_file8,
1503
- L: 97,
1480
+ L: 102,
1504
1481
  S: this,
1505
1482
  C: (f, a) => f(...a)
1506
1483
  });
@@ -1525,7 +1502,7 @@ var InvitationsHandler = class {
1525
1502
  const deviceKey = admissionRequest.device?.deviceKey ?? admissionRequest.space?.deviceKey;
1526
1503
  (0, import_invariant7.invariant)(deviceKey, void 0, {
1527
1504
  F: __dxlog_file8,
1528
- L: 118,
1505
+ L: 123,
1529
1506
  S: this,
1530
1507
  A: [
1531
1508
  "deviceKey",
@@ -1548,7 +1525,7 @@ var InvitationsHandler = class {
1548
1525
  id: traceId
1549
1526
  }), {
1550
1527
  F: __dxlog_file8,
1551
- L: 136,
1528
+ L: 141,
1552
1529
  S: this,
1553
1530
  C: (f, a) => f(...a)
1554
1531
  });
@@ -1556,7 +1533,7 @@ var InvitationsHandler = class {
1556
1533
  ...protocol.toJSON()
1557
1534
  }, {
1558
1535
  F: __dxlog_file8,
1559
- L: 137,
1536
+ L: 142,
1560
1537
  S: this,
1561
1538
  C: (f, a) => f(...a)
1562
1539
  });
@@ -1572,7 +1549,7 @@ var InvitationsHandler = class {
1572
1549
  ...protocol.toJSON()
1573
1550
  }, {
1574
1551
  F: __dxlog_file8,
1575
- L: 140,
1552
+ L: 145,
1576
1553
  S: this,
1577
1554
  C: (f, a) => f(...a)
1578
1555
  });
@@ -1584,7 +1561,7 @@ var InvitationsHandler = class {
1584
1561
  id: traceId
1585
1562
  }), {
1586
1563
  F: __dxlog_file8,
1587
- L: 142,
1564
+ L: 147,
1588
1565
  S: this,
1589
1566
  C: (f, a) => f(...a)
1590
1567
  });
@@ -1594,7 +1571,7 @@ var InvitationsHandler = class {
1594
1571
  ...protocol.toJSON()
1595
1572
  }, {
1596
1573
  F: __dxlog_file8,
1597
- L: 145,
1574
+ L: 150,
1598
1575
  S: this,
1599
1576
  C: (f, a) => f(...a)
1600
1577
  });
@@ -1605,7 +1582,7 @@ var InvitationsHandler = class {
1605
1582
  } else {
1606
1583
  import_log6.log.error("failed", err, {
1607
1584
  F: __dxlog_file8,
1608
- L: 148,
1585
+ L: 153,
1609
1586
  S: this,
1610
1587
  C: (f, a) => f(...a)
1611
1588
  });
@@ -1616,7 +1593,7 @@ var InvitationsHandler = class {
1616
1593
  error: err
1617
1594
  }), {
1618
1595
  F: __dxlog_file8,
1619
- L: 151,
1596
+ L: 156,
1620
1597
  S: this,
1621
1598
  C: (f, a) => f(...a)
1622
1599
  });
@@ -1637,7 +1614,7 @@ var InvitationsHandler = class {
1637
1614
  ...protocol.toJSON()
1638
1615
  }, {
1639
1616
  F: __dxlog_file8,
1640
- L: 166,
1617
+ L: 171,
1641
1618
  S: this,
1642
1619
  C: (f, a) => f(...a)
1643
1620
  });
@@ -1648,7 +1625,7 @@ var InvitationsHandler = class {
1648
1625
  } else {
1649
1626
  import_log6.log.error("failed", err, {
1650
1627
  F: __dxlog_file8,
1651
- L: 169,
1628
+ L: 174,
1652
1629
  S: this,
1653
1630
  C: (f, a) => f(...a)
1654
1631
  });
@@ -1693,7 +1670,7 @@ var InvitationsHandler = class {
1693
1670
  const { timeout = import_client_protocol2.INVITATION_TIMEOUT } = invitation;
1694
1671
  (0, import_invariant7.invariant)(protocol, void 0, {
1695
1672
  F: __dxlog_file8,
1696
- L: 210,
1673
+ L: 215,
1697
1674
  S: this,
1698
1675
  A: [
1699
1676
  "protocol",
@@ -1707,7 +1684,7 @@ var InvitationsHandler = class {
1707
1684
  const setState = (newData) => {
1708
1685
  (0, import_invariant7.invariant)(newData.state !== void 0, void 0, {
1709
1686
  F: __dxlog_file8,
1710
- L: 221,
1687
+ L: 226,
1711
1688
  S: this,
1712
1689
  A: [
1713
1690
  "newData.state !== undefined",
@@ -1727,7 +1704,7 @@ var InvitationsHandler = class {
1727
1704
  ...protocol.toJSON()
1728
1705
  }, {
1729
1706
  F: __dxlog_file8,
1730
- L: 229,
1707
+ L: 234,
1731
1708
  S: this,
1732
1709
  C: (f, a) => f(...a)
1733
1710
  });
@@ -1737,7 +1714,7 @@ var InvitationsHandler = class {
1737
1714
  } else {
1738
1715
  import_log6.log.warn("auth failed", err, {
1739
1716
  F: __dxlog_file8,
1740
- L: 232,
1717
+ L: 237,
1741
1718
  S: this,
1742
1719
  C: (f, a) => f(...a)
1743
1720
  });
@@ -1751,7 +1728,7 @@ var InvitationsHandler = class {
1751
1728
  ...protocol.toJSON()
1752
1729
  }, {
1753
1730
  F: __dxlog_file8,
1754
- L: 240,
1731
+ L: 245,
1755
1732
  S: this,
1756
1733
  C: (f, a) => f(...a)
1757
1734
  });
@@ -1766,7 +1743,7 @@ var InvitationsHandler = class {
1766
1743
  currentState
1767
1744
  }, {
1768
1745
  F: __dxlog_file8,
1769
- L: 250,
1746
+ L: 255,
1770
1747
  S: this,
1771
1748
  C: (f, a) => f(...a)
1772
1749
  });
@@ -1781,7 +1758,7 @@ var InvitationsHandler = class {
1781
1758
  id: traceId
1782
1759
  }), {
1783
1760
  F: __dxlog_file8,
1784
- L: 259,
1761
+ L: 264,
1785
1762
  S: this,
1786
1763
  C: (f, a) => f(...a)
1787
1764
  });
@@ -1793,7 +1770,7 @@ var InvitationsHandler = class {
1793
1770
  ...protocol.toJSON()
1794
1771
  }, {
1795
1772
  F: __dxlog_file8,
1796
- L: 267,
1773
+ L: 272,
1797
1774
  S: this,
1798
1775
  C: (f, a) => f(...a)
1799
1776
  });
@@ -1804,7 +1781,7 @@ var InvitationsHandler = class {
1804
1781
  ...protocol.toJSON()
1805
1782
  }, {
1806
1783
  F: __dxlog_file8,
1807
- L: 271,
1784
+ L: 276,
1808
1785
  S: this,
1809
1786
  C: (f, a) => f(...a)
1810
1787
  });
@@ -1814,7 +1791,7 @@ var InvitationsHandler = class {
1814
1791
  response: introductionResponse
1815
1792
  }, {
1816
1793
  F: __dxlog_file8,
1817
- L: 275,
1794
+ L: 280,
1818
1795
  S: this,
1819
1796
  C: (f, a) => f(...a)
1820
1797
  });
@@ -1826,7 +1803,7 @@ var InvitationsHandler = class {
1826
1803
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
1827
1804
  (0, import_log6.log)("guest waiting for authentication code...", void 0, {
1828
1805
  F: __dxlog_file8,
1829
- L: 284,
1806
+ L: 289,
1830
1807
  S: this,
1831
1808
  C: (f, a) => f(...a)
1832
1809
  });
@@ -1838,7 +1815,7 @@ var InvitationsHandler = class {
1838
1815
  });
1839
1816
  (0, import_log6.log)("sending authentication request", void 0, {
1840
1817
  F: __dxlog_file8,
1841
- L: 288,
1818
+ L: 293,
1842
1819
  S: this,
1843
1820
  C: (f, a) => f(...a)
1844
1821
  });
@@ -1859,7 +1836,7 @@ var InvitationsHandler = class {
1859
1836
  attempt
1860
1837
  }, {
1861
1838
  F: __dxlog_file8,
1862
- L: 299,
1839
+ L: 304,
1863
1840
  S: this,
1864
1841
  C: (f, a) => f(...a)
1865
1842
  });
@@ -1876,7 +1853,7 @@ var InvitationsHandler = class {
1876
1853
  ...protocol.toJSON()
1877
1854
  }, {
1878
1855
  F: __dxlog_file8,
1879
- L: 310,
1856
+ L: 315,
1880
1857
  S: this,
1881
1858
  C: (f, a) => f(...a)
1882
1859
  });
@@ -1888,7 +1865,7 @@ var InvitationsHandler = class {
1888
1865
  ...protocol.toJSON()
1889
1866
  }, {
1890
1867
  F: __dxlog_file8,
1891
- L: 321,
1868
+ L: 326,
1892
1869
  S: this,
1893
1870
  C: (f, a) => f(...a)
1894
1871
  });
@@ -1900,7 +1877,7 @@ var InvitationsHandler = class {
1900
1877
  id: traceId
1901
1878
  }), {
1902
1879
  F: __dxlog_file8,
1903
- L: 323,
1880
+ L: 328,
1904
1881
  S: this,
1905
1882
  C: (f, a) => f(...a)
1906
1883
  });
@@ -1910,7 +1887,7 @@ var InvitationsHandler = class {
1910
1887
  ...protocol.toJSON()
1911
1888
  }, {
1912
1889
  F: __dxlog_file8,
1913
- L: 326,
1890
+ L: 331,
1914
1891
  S: this,
1915
1892
  C: (f, a) => f(...a)
1916
1893
  });
@@ -1920,7 +1897,7 @@ var InvitationsHandler = class {
1920
1897
  } else {
1921
1898
  (0, import_log6.log)("auth failed", err, {
1922
1899
  F: __dxlog_file8,
1923
- L: 329,
1900
+ L: 334,
1924
1901
  S: this,
1925
1902
  C: (f, a) => f(...a)
1926
1903
  });
@@ -1931,7 +1908,7 @@ var InvitationsHandler = class {
1931
1908
  error: err
1932
1909
  }), {
1933
1910
  F: __dxlog_file8,
1934
- L: 332,
1911
+ L: 337,
1935
1912
  S: this,
1936
1913
  C: (f, a) => f(...a)
1937
1914
  });
@@ -1949,7 +1926,7 @@ var InvitationsHandler = class {
1949
1926
  ...protocol.toJSON()
1950
1927
  }, {
1951
1928
  F: __dxlog_file8,
1952
- L: 343,
1929
+ L: 348,
1953
1930
  S: this,
1954
1931
  C: (f, a) => f(...a)
1955
1932
  });
@@ -1959,7 +1936,7 @@ var InvitationsHandler = class {
1959
1936
  } else {
1960
1937
  (0, import_log6.log)("auth failed", err, {
1961
1938
  F: __dxlog_file8,
1962
- L: 346,
1939
+ L: 351,
1963
1940
  S: this,
1964
1941
  C: (f, a) => f(...a)
1965
1942
  });
@@ -1972,7 +1949,7 @@ var InvitationsHandler = class {
1972
1949
  (0, import_async5.scheduleTask)(ctx, async () => {
1973
1950
  (0, import_invariant7.invariant)(invitation.swarmKey, void 0, {
1974
1951
  F: __dxlog_file8,
1975
- L: 356,
1952
+ L: 361,
1976
1953
  S: this,
1977
1954
  A: [
1978
1955
  "invitation.swarmKey",
@@ -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() {
@@ -2231,7 +2199,7 @@ var SpaceInvitationProtocol = class {
2231
2199
  async admit(request, guestProfile) {
2232
2200
  (0, import_invariant9.invariant)(this._spaceKey, void 0, {
2233
2201
  F: __dxlog_file10,
2234
- L: 42,
2202
+ L: 46,
2235
2203
  S: this,
2236
2204
  A: [
2237
2205
  "this._spaceKey",
@@ -2241,7 +2209,7 @@ var SpaceInvitationProtocol = class {
2241
2209
  const space = await this._spaceManager.spaces.get(this._spaceKey);
2242
2210
  (0, import_invariant9.invariant)(space, void 0, {
2243
2211
  F: __dxlog_file10,
2244
- L: 44,
2212
+ L: 48,
2245
2213
  S: this,
2246
2214
  A: [
2247
2215
  "space",
@@ -2250,7 +2218,7 @@ var SpaceInvitationProtocol = class {
2250
2218
  });
2251
2219
  (0, import_invariant9.invariant)(request.space, void 0, {
2252
2220
  F: __dxlog_file10,
2253
- L: 46,
2221
+ L: 50,
2254
2222
  S: this,
2255
2223
  A: [
2256
2224
  "request.space",
@@ -2263,14 +2231,14 @@ var SpaceInvitationProtocol = class {
2263
2231
  guest: deviceKey
2264
2232
  }, {
2265
2233
  F: __dxlog_file10,
2266
- L: 49,
2234
+ L: 53,
2267
2235
  S: this,
2268
2236
  C: (f, a) => f(...a)
2269
2237
  });
2270
2238
  const credentials = await (0, import_credentials10.createAdmissionCredentials)(this._signingContext.credentialSigner, identityKey, space.key, space.inner.genesisFeedKey, guestProfile);
2271
2239
  (0, import_invariant9.invariant)(credentials[0].credential, void 0, {
2272
2240
  F: __dxlog_file10,
2273
- L: 60,
2241
+ L: 64,
2274
2242
  S: this,
2275
2243
  A: [
2276
2244
  "credentials[0].credential",
@@ -2280,7 +2248,7 @@ var SpaceInvitationProtocol = class {
2280
2248
  const spaceMemberCredential = credentials[0].credential.credential;
2281
2249
  (0, import_invariant9.invariant)((0, import_credentials10.getCredentialAssertion)(spaceMemberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
2282
2250
  F: __dxlog_file10,
2283
- L: 62,
2251
+ L: 66,
2284
2252
  S: this,
2285
2253
  A: [
2286
2254
  "getCredentialAssertion(spaceMemberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -2316,7 +2284,7 @@ var SpaceInvitationProtocol = class {
2316
2284
  async accept(response) {
2317
2285
  (0, import_invariant9.invariant)(response.space, void 0, {
2318
2286
  F: __dxlog_file10,
2319
- L: 97,
2287
+ L: 101,
2320
2288
  S: this,
2321
2289
  A: [
2322
2290
  "response.space",
@@ -2327,7 +2295,7 @@ var SpaceInvitationProtocol = class {
2327
2295
  const assertion = (0, import_credentials10.getCredentialAssertion)(credential);
2328
2296
  (0, import_invariant9.invariant)(assertion["@type"] === "dxos.halo.credentials.SpaceMember", "Invalid credential", {
2329
2297
  F: __dxlog_file10,
2330
- L: 100,
2298
+ L: 104,
2331
2299
  S: this,
2332
2300
  A: [
2333
2301
  "assertion['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -2336,7 +2304,7 @@ var SpaceInvitationProtocol = class {
2336
2304
  });
2337
2305
  (0, import_invariant9.invariant)(credential.subject.id.equals(this._signingContext.identityKey), void 0, {
2338
2306
  F: __dxlog_file10,
2339
- L: 101,
2307
+ L: 105,
2340
2308
  S: this,
2341
2309
  A: [
2342
2310
  "credential.subject.id.equals(this._signingContext.identityKey)",
@@ -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: [