@dxos/client-services 0.1.56-next.a63ce79 → 0.1.56

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 (28) hide show
  1. package/dist/lib/browser/{chunk-UR4OBOCI.mjs → chunk-SUKLFUNG.mjs} +68 -64
  2. package/dist/lib/browser/chunk-SUKLFUNG.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +7 -7
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/packlets/testing/index.mjs +2 -2
  7. package/dist/lib/node/index.cjs +73 -69
  8. package/dist/lib/node/index.cjs.map +3 -3
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/packlets/testing/index.cjs +68 -64
  11. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  12. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
  13. package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
  14. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  15. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  16. package/dist/types/src/version.d.ts +1 -1
  17. package/dist/types/src/version.d.ts.map +1 -1
  18. package/package.json +34 -34
  19. package/src/packlets/invitations/invitations-handler.ts +2 -0
  20. package/src/packlets/services/diagnostics.ts +2 -1
  21. package/src/packlets/services/service-context.ts +4 -4
  22. package/src/packlets/services/service-host.test.ts +1 -1
  23. package/src/packlets/spaces/data-space-manager.test.ts +80 -22
  24. package/src/packlets/spaces/data-space-manager.ts +5 -1
  25. package/src/packlets/spaces/spaces-service.ts +1 -1
  26. package/src/packlets/vault/worker-runtime.ts +1 -1
  27. package/src/version.ts +5 -1
  28. package/dist/lib/browser/chunk-UR4OBOCI.mjs.map +0 -7
@@ -64,13 +64,14 @@ var import_rpc = require("@dxos/rpc");
64
64
  var import_codec_protobuf2 = require("@dxos/codec-protobuf");
65
65
  var import_credentials2 = require("@dxos/credentials");
66
66
  var import_document_model = require("@dxos/document-model");
67
+ var import_echo_db = require("@dxos/echo-db");
67
68
  var import_invariant = require("@dxos/invariant");
68
69
  var import_log = require("@dxos/log");
69
70
  var import_protocols = require("@dxos/protocols");
70
71
  var import_services = require("@dxos/protocols/proto/dxos/client/services");
71
72
 
72
73
  // packages/sdk/client-services/src/version.ts
73
- var DXOS_VERSION = "0.1.56-next.a63ce79";
74
+ var DXOS_VERSION = "0.1.56";
74
75
 
75
76
  // packages/sdk/client-services/src/packlets/services/platform.ts
76
77
  var getPlatform = () => {
@@ -101,7 +102,7 @@ var getPlatform = () => {
101
102
  };
102
103
 
103
104
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
104
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
105
+ var __dxlog_file = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
105
106
  var DEFAULT_TIMEOUT = 1e3;
106
107
  var createDiagnostics = async (clientServices, serviceContext, config) => {
107
108
  const diagnostics = {
@@ -117,7 +118,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
117
118
  {
118
119
  (0, import_invariant.invariant)(clientServices.LoggingService, "SystemService is not available.", {
119
120
  F: __dxlog_file,
120
- L: 87,
121
+ L: 88,
121
122
  S: void 0,
122
123
  A: [
123
124
  "clientServices.LoggingService",
@@ -157,13 +158,13 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
157
158
  var getProperties = (space) => {
158
159
  let properties = {};
159
160
  try {
160
- const propertiesItem = space.dataPipeline.itemManager.items.find((item) => item.modelMeta?.type === import_document_model.DocumentModel.meta.type && item.state?.type === "dxos.sdk.client.Properties");
161
+ const propertiesItem = space.dataPipeline.itemManager.items.find((item) => item.modelMeta?.type === import_document_model.DocumentModel.meta.type && item.state?.type === import_echo_db.TYPE_PROPERTIES);
161
162
  const state = propertiesItem?.state;
162
163
  properties = state?.data;
163
164
  } catch (err) {
164
165
  import_log.log.warn(err.message, void 0, {
165
166
  F: __dxlog_file,
166
- L: 144,
167
+ L: 145,
167
168
  S: void 0,
168
169
  C: (f, a) => f(...a)
169
170
  });
@@ -241,7 +242,7 @@ var import_context = require("@dxos/context");
241
242
  var import_credentials3 = require("@dxos/credentials");
242
243
  var import_log2 = require("@dxos/log");
243
244
  var import_protocols2 = require("@dxos/protocols");
244
- var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
245
+ var __dxlog_file2 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/identity/authenticator.ts";
245
246
  var Credential = import_protocols2.schema.getCodecForType("dxos.halo.credentials.Credential");
246
247
  var createAuthProvider = (signer) => async (nonce) => {
247
248
  const credential = await signer.createCredential({
@@ -371,7 +372,7 @@ function _ts_decorate(decorators, target, key, desc) {
371
372
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
372
373
  return c > 3 && r && Object.defineProperty(target, key, r), r;
373
374
  }
374
- var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity.ts";
375
+ var __dxlog_file3 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/identity/identity.ts";
375
376
  var Identity = class Identity2 {
376
377
  constructor({ space, signer, identityKey, deviceKey }) {
377
378
  this.stateUpdate = new import_async2.Event();
@@ -544,7 +545,7 @@ function _ts_decorate2(decorators, target, key, desc) {
544
545
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
545
546
  return c > 3 && r && Object.defineProperty(target, key, r), r;
546
547
  }
547
- var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
548
+ var __dxlog_file4 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/identity/identity-manager.ts";
548
549
  var IdentityManager = class IdentityManager2 {
549
550
  // TODO(burdon): IdentityManagerParams.
550
551
  // TODO(dmaretskyi): Perhaps this should take/generate the peerKey outside of an initialized identity.
@@ -894,7 +895,7 @@ var import_codec_protobuf3 = require("@dxos/codec-protobuf");
894
895
  var import_credentials8 = require("@dxos/credentials");
895
896
  var import_debug3 = require("@dxos/debug");
896
897
  var import_invariant4 = require("@dxos/invariant");
897
- var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
898
+ var __dxlog_file5 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/identity/identity-service.ts";
898
899
  var IdentityServiceImpl = class {
899
900
  constructor(_createIdentity, _identityManager, _keyring) {
900
901
  this._createIdentity = _createIdentity;
@@ -963,7 +964,7 @@ var IdentityServiceImpl = class {
963
964
  // packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts
964
965
  var import_invariant5 = require("@dxos/invariant");
965
966
  var import_services2 = require("@dxos/protocols/proto/dxos/client/services");
966
- var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
967
+ var __dxlog_file6 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts";
967
968
  var DeviceInvitationProtocol = class {
968
969
  constructor(_keyring, _getIdentity, _acceptIdentity) {
969
970
  this._keyring = _keyring;
@@ -1075,7 +1076,7 @@ var import_protocols4 = require("@dxos/protocols");
1075
1076
  var import_services3 = require("@dxos/protocols/proto/dxos/client/services");
1076
1077
  var import_invitations = require("@dxos/protocols/proto/dxos/halo/invitations");
1077
1078
  var import_teleport = require("@dxos/teleport");
1078
- var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts";
1079
+ var __dxlog_file7 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts";
1079
1080
  var OPTIONS_TIMEOUT = 1e4;
1080
1081
  var MAX_OTP_ATTEMPTS = 3;
1081
1082
  var InvitationHostExtension = class extends import_teleport.RpcExtension {
@@ -1406,7 +1407,7 @@ var InvitationGuestExtension = class extends import_teleport.RpcExtension {
1406
1407
  var isAuthenticationRequired = (invitation) => invitation.authMethod !== import_services3.Invitation.AuthMethod.NONE;
1407
1408
 
1408
1409
  // packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts
1409
- var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
1410
+ var __dxlog_file8 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts";
1410
1411
  var InvitationsHandler = class {
1411
1412
  /**
1412
1413
  * @internal
@@ -1615,7 +1616,8 @@ var InvitationsHandler = class {
1615
1616
  protocolProvider: (0, import_network_manager.createTeleportProtocolFactory)(async (teleport) => {
1616
1617
  teleport.addExtension("dxos.halo.invitations", createExtension());
1617
1618
  }),
1618
- topology: new import_network_manager.StarTopology(topic)
1619
+ topology: new import_network_manager.StarTopology(topic),
1620
+ label: "invitation host"
1619
1621
  });
1620
1622
  ctx.onDispose(() => swarmConnection.close());
1621
1623
  stream.next({
@@ -1640,7 +1642,7 @@ var InvitationsHandler = class {
1640
1642
  const { timeout = import_client_protocol2.INVITATION_TIMEOUT } = invitation;
1641
1643
  (0, import_invariant7.invariant)(protocol, void 0, {
1642
1644
  F: __dxlog_file8,
1643
- L: 210,
1645
+ L: 211,
1644
1646
  S: this,
1645
1647
  A: [
1646
1648
  "protocol",
@@ -1654,7 +1656,7 @@ var InvitationsHandler = class {
1654
1656
  const setState = (newData) => {
1655
1657
  (0, import_invariant7.invariant)(newData.state !== void 0, void 0, {
1656
1658
  F: __dxlog_file8,
1657
- L: 221,
1659
+ L: 222,
1658
1660
  S: this,
1659
1661
  A: [
1660
1662
  "newData.state !== undefined",
@@ -1674,7 +1676,7 @@ var InvitationsHandler = class {
1674
1676
  ...protocol.toJSON()
1675
1677
  }, {
1676
1678
  F: __dxlog_file8,
1677
- L: 229,
1679
+ L: 230,
1678
1680
  S: this,
1679
1681
  C: (f, a) => f(...a)
1680
1682
  });
@@ -1684,7 +1686,7 @@ var InvitationsHandler = class {
1684
1686
  } else {
1685
1687
  import_log6.log.warn("auth failed", err, {
1686
1688
  F: __dxlog_file8,
1687
- L: 232,
1689
+ L: 233,
1688
1690
  S: this,
1689
1691
  C: (f, a) => f(...a)
1690
1692
  });
@@ -1698,7 +1700,7 @@ var InvitationsHandler = class {
1698
1700
  ...protocol.toJSON()
1699
1701
  }, {
1700
1702
  F: __dxlog_file8,
1701
- L: 240,
1703
+ L: 241,
1702
1704
  S: this,
1703
1705
  C: (f, a) => f(...a)
1704
1706
  });
@@ -1713,7 +1715,7 @@ var InvitationsHandler = class {
1713
1715
  currentState
1714
1716
  }, {
1715
1717
  F: __dxlog_file8,
1716
- L: 250,
1718
+ L: 251,
1717
1719
  S: this,
1718
1720
  C: (f, a) => f(...a)
1719
1721
  });
@@ -1728,7 +1730,7 @@ var InvitationsHandler = class {
1728
1730
  id: traceId
1729
1731
  }), {
1730
1732
  F: __dxlog_file8,
1731
- L: 259,
1733
+ L: 260,
1732
1734
  S: this,
1733
1735
  C: (f, a) => f(...a)
1734
1736
  });
@@ -1740,7 +1742,7 @@ var InvitationsHandler = class {
1740
1742
  ...protocol.toJSON()
1741
1743
  }, {
1742
1744
  F: __dxlog_file8,
1743
- L: 267,
1745
+ L: 268,
1744
1746
  S: this,
1745
1747
  C: (f, a) => f(...a)
1746
1748
  });
@@ -1751,7 +1753,7 @@ var InvitationsHandler = class {
1751
1753
  ...protocol.toJSON()
1752
1754
  }, {
1753
1755
  F: __dxlog_file8,
1754
- L: 271,
1756
+ L: 272,
1755
1757
  S: this,
1756
1758
  C: (f, a) => f(...a)
1757
1759
  });
@@ -1761,7 +1763,7 @@ var InvitationsHandler = class {
1761
1763
  response: introductionResponse
1762
1764
  }, {
1763
1765
  F: __dxlog_file8,
1764
- L: 275,
1766
+ L: 276,
1765
1767
  S: this,
1766
1768
  C: (f, a) => f(...a)
1767
1769
  });
@@ -1773,7 +1775,7 @@ var InvitationsHandler = class {
1773
1775
  for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
1774
1776
  (0, import_log6.log)("guest waiting for authentication code...", void 0, {
1775
1777
  F: __dxlog_file8,
1776
- L: 284,
1778
+ L: 285,
1777
1779
  S: this,
1778
1780
  C: (f, a) => f(...a)
1779
1781
  });
@@ -1785,7 +1787,7 @@ var InvitationsHandler = class {
1785
1787
  });
1786
1788
  (0, import_log6.log)("sending authentication request", void 0, {
1787
1789
  F: __dxlog_file8,
1788
- L: 288,
1790
+ L: 289,
1789
1791
  S: this,
1790
1792
  C: (f, a) => f(...a)
1791
1793
  });
@@ -1806,7 +1808,7 @@ var InvitationsHandler = class {
1806
1808
  attempt
1807
1809
  }, {
1808
1810
  F: __dxlog_file8,
1809
- L: 299,
1811
+ L: 300,
1810
1812
  S: this,
1811
1813
  C: (f, a) => f(...a)
1812
1814
  });
@@ -1823,7 +1825,7 @@ var InvitationsHandler = class {
1823
1825
  ...protocol.toJSON()
1824
1826
  }, {
1825
1827
  F: __dxlog_file8,
1826
- L: 310,
1828
+ L: 311,
1827
1829
  S: this,
1828
1830
  C: (f, a) => f(...a)
1829
1831
  });
@@ -1835,7 +1837,7 @@ var InvitationsHandler = class {
1835
1837
  ...protocol.toJSON()
1836
1838
  }, {
1837
1839
  F: __dxlog_file8,
1838
- L: 321,
1840
+ L: 322,
1839
1841
  S: this,
1840
1842
  C: (f, a) => f(...a)
1841
1843
  });
@@ -1847,7 +1849,7 @@ var InvitationsHandler = class {
1847
1849
  id: traceId
1848
1850
  }), {
1849
1851
  F: __dxlog_file8,
1850
- L: 323,
1852
+ L: 324,
1851
1853
  S: this,
1852
1854
  C: (f, a) => f(...a)
1853
1855
  });
@@ -1857,7 +1859,7 @@ var InvitationsHandler = class {
1857
1859
  ...protocol.toJSON()
1858
1860
  }, {
1859
1861
  F: __dxlog_file8,
1860
- L: 326,
1862
+ L: 327,
1861
1863
  S: this,
1862
1864
  C: (f, a) => f(...a)
1863
1865
  });
@@ -1867,7 +1869,7 @@ var InvitationsHandler = class {
1867
1869
  } else {
1868
1870
  (0, import_log6.log)("auth failed", err, {
1869
1871
  F: __dxlog_file8,
1870
- L: 329,
1872
+ L: 330,
1871
1873
  S: this,
1872
1874
  C: (f, a) => f(...a)
1873
1875
  });
@@ -1878,7 +1880,7 @@ var InvitationsHandler = class {
1878
1880
  error: err
1879
1881
  }), {
1880
1882
  F: __dxlog_file8,
1881
- L: 332,
1883
+ L: 333,
1882
1884
  S: this,
1883
1885
  C: (f, a) => f(...a)
1884
1886
  });
@@ -1896,7 +1898,7 @@ var InvitationsHandler = class {
1896
1898
  ...protocol.toJSON()
1897
1899
  }, {
1898
1900
  F: __dxlog_file8,
1899
- L: 343,
1901
+ L: 344,
1900
1902
  S: this,
1901
1903
  C: (f, a) => f(...a)
1902
1904
  });
@@ -1906,7 +1908,7 @@ var InvitationsHandler = class {
1906
1908
  } else {
1907
1909
  (0, import_log6.log)("auth failed", err, {
1908
1910
  F: __dxlog_file8,
1909
- L: 346,
1911
+ L: 347,
1910
1912
  S: this,
1911
1913
  C: (f, a) => f(...a)
1912
1914
  });
@@ -1919,7 +1921,7 @@ var InvitationsHandler = class {
1919
1921
  (0, import_async5.scheduleTask)(ctx, async () => {
1920
1922
  (0, import_invariant7.invariant)(invitation.swarmKey, void 0, {
1921
1923
  F: __dxlog_file8,
1922
- L: 356,
1924
+ L: 357,
1923
1925
  S: this,
1924
1926
  A: [
1925
1927
  "invitation.swarmKey",
@@ -1933,7 +1935,8 @@ var InvitationsHandler = class {
1933
1935
  protocolProvider: (0, import_network_manager.createTeleportProtocolFactory)(async (teleport) => {
1934
1936
  teleport.addExtension("dxos.halo.invitations", createExtension());
1935
1937
  }),
1936
- topology: new import_network_manager.StarTopology(topic)
1938
+ topology: new import_network_manager.StarTopology(topic),
1939
+ label: "invitation guest"
1937
1940
  });
1938
1941
  ctx.onDispose(() => swarmConnection.close());
1939
1942
  setState({
@@ -1963,7 +1966,7 @@ var import_codec_protobuf4 = require("@dxos/codec-protobuf");
1963
1966
  var import_invariant8 = require("@dxos/invariant");
1964
1967
  var import_log7 = require("@dxos/log");
1965
1968
  var import_services5 = require("@dxos/protocols/proto/dxos/client/services");
1966
- var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/invitations-service.ts";
1969
+ var __dxlog_file9 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/invitations/invitations-service.ts";
1967
1970
  var InvitationsServiceImpl = class {
1968
1971
  constructor(_invitationsHandler, _getHandler) {
1969
1972
  this._invitationsHandler = _invitationsHandler;
@@ -2148,7 +2151,7 @@ var import_feed_store2 = require("@dxos/feed-store");
2148
2151
  var import_invariant9 = require("@dxos/invariant");
2149
2152
  var import_log8 = require("@dxos/log");
2150
2153
  var import_services6 = require("@dxos/protocols/proto/dxos/client/services");
2151
- var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
2154
+ var __dxlog_file10 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts";
2152
2155
  var SpaceInvitationProtocol = class {
2153
2156
  constructor(_spaceManager, _signingContext, _keyring, _spaceKey) {
2154
2157
  this._spaceManager = _spaceManager;
@@ -2331,7 +2334,7 @@ var import_log9 = require("@dxos/log");
2331
2334
  var import_protocols6 = require("@dxos/protocols");
2332
2335
  var import_teleport2 = require("@dxos/teleport");
2333
2336
  var import_util2 = require("@dxos/util");
2334
- var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
2337
+ var __dxlog_file11 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts";
2335
2338
  var DEFAULT_RETRY_TIMEOUT = 1e3;
2336
2339
  var DEFAULT_SUCCESS_DELAY = 1e3;
2337
2340
  var DEFAULT_NOTARIZE_TIMEOUT = 1e4;
@@ -2601,7 +2604,7 @@ function _ts_decorate3(decorators, target, key, desc) {
2601
2604
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2602
2605
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2603
2606
  }
2604
- var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
2607
+ var __dxlog_file12 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/spaces/data-space.ts";
2605
2608
  var ENABLE_FEED_PURGE = false;
2606
2609
  var DataSpace = class DataSpace2 {
2607
2610
  constructor(params) {
@@ -2960,7 +2963,7 @@ function _ts_decorate4(decorators, target, key, desc) {
2960
2963
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2961
2964
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2962
2965
  }
2963
- var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
2966
+ var __dxlog_file13 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts";
2964
2967
  var DataSpaceManager = class DataSpaceManager2 {
2965
2968
  constructor(_spaceManager, _metadataStore, _dataServiceSubscriptions, _keyring, _signingContext, _feedStore) {
2966
2969
  this._spaceManager = _spaceManager;
@@ -3194,7 +3197,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3194
3197
  onAuthFailure: () => {
3195
3198
  import_log11.log.warn("auth failure", void 0, {
3196
3199
  F: __dxlog_file13,
3197
- L: 213,
3200
+ L: 217,
3198
3201
  S: this,
3199
3202
  C: (f, a) => f(...a)
3200
3203
  });
@@ -3218,7 +3221,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3218
3221
  space: space.key
3219
3222
  }, {
3220
3223
  F: __dxlog_file13,
3221
- L: 231,
3224
+ L: 235,
3222
3225
  S: this,
3223
3226
  C: (f, a) => f(...a)
3224
3227
  });
@@ -3230,7 +3233,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3230
3233
  open: this._isOpen
3231
3234
  }, {
3232
3235
  F: __dxlog_file13,
3233
- L: 238,
3236
+ L: 242,
3234
3237
  S: this,
3235
3238
  C: (f, a) => f(...a)
3236
3239
  });
@@ -3243,7 +3246,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3243
3246
  space: space.key
3244
3247
  }, {
3245
3248
  F: __dxlog_file13,
3246
- L: 244,
3249
+ L: 248,
3247
3250
  S: this,
3248
3251
  C: (f, a) => f(...a)
3249
3252
  });
@@ -3291,7 +3294,7 @@ var import_log12 = require("@dxos/log");
3291
3294
  var import_protocols8 = require("@dxos/protocols");
3292
3295
  var import_services9 = require("@dxos/protocols/proto/dxos/client/services");
3293
3296
  var import_util5 = require("@dxos/util");
3294
- var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
3297
+ var __dxlog_file14 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/spaces/spaces-service.ts";
3295
3298
  var SpacesServiceImpl = class {
3296
3299
  constructor(_identityManager, _spaceManager, _dataServiceSubscriptions, _getDataSpaceManager) {
3297
3300
  this._identityManager = _identityManager;
@@ -3340,7 +3343,7 @@ var SpacesServiceImpl = class {
3340
3343
  spaces
3341
3344
  });
3342
3345
  }, {
3343
- maxFrequency: 2
3346
+ maxFrequency: process.env.NODE_ENV === "test" ? void 0 : 2
3344
3347
  });
3345
3348
  (0, import_async10.scheduleTask)(ctx, async () => {
3346
3349
  const dataSpaceManager = await this._getDataSpaceManager();
@@ -3470,7 +3473,7 @@ function _ts_decorate5(decorators, target, key, desc) {
3470
3473
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3471
3474
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3472
3475
  }
3473
- var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
3476
+ var __dxlog_file15 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/services/service-context.ts";
3474
3477
  var ServiceContext = class ServiceContext2 {
3475
3478
  // prettier-ignore
3476
3479
  constructor(storage, networkManager, signalManager, modelFactory) {
@@ -3491,7 +3494,8 @@ var ServiceContext = class ServiceContext2 {
3491
3494
  root: storage.createDirectory("feeds"),
3492
3495
  signer: this.keyring,
3493
3496
  hypercore: {
3494
- valueEncoding: import_echo_pipeline3.valueEncoding
3497
+ valueEncoding: import_echo_pipeline3.valueEncoding,
3498
+ stats: true
3495
3499
  }
3496
3500
  })
3497
3501
  });
@@ -3511,7 +3515,7 @@ var ServiceContext = class ServiceContext2 {
3511
3515
  await this._checkStorageVersion();
3512
3516
  (0, import_log13.log)("opening...", void 0, {
3513
3517
  F: __dxlog_file15,
3514
- L: 134,
3518
+ L: 135,
3515
3519
  S: this,
3516
3520
  C: (f, a) => f(...a)
3517
3521
  });
@@ -3519,7 +3523,7 @@ var ServiceContext = class ServiceContext2 {
3519
3523
  id: this._instanceId
3520
3524
  }), {
3521
3525
  F: __dxlog_file15,
3522
- L: 135,
3526
+ L: 136,
3523
3527
  S: this,
3524
3528
  C: (f, a) => f(...a)
3525
3529
  });
@@ -3534,13 +3538,13 @@ var ServiceContext = class ServiceContext2 {
3534
3538
  id: this._instanceId
3535
3539
  }), {
3536
3540
  F: __dxlog_file15,
3537
- L: 143,
3541
+ L: 144,
3538
3542
  S: this,
3539
3543
  C: (f, a) => f(...a)
3540
3544
  });
3541
3545
  (0, import_log13.log)("opened", void 0, {
3542
3546
  F: __dxlog_file15,
3543
- L: 144,
3547
+ L: 145,
3544
3548
  S: this,
3545
3549
  C: (f, a) => f(...a)
3546
3550
  });
@@ -3548,7 +3552,7 @@ var ServiceContext = class ServiceContext2 {
3548
3552
  async close() {
3549
3553
  (0, import_log13.log)("closing...", void 0, {
3550
3554
  F: __dxlog_file15,
3551
- L: 148,
3555
+ L: 149,
3552
3556
  S: this,
3553
3557
  C: (f, a) => f(...a)
3554
3558
  });
@@ -3564,7 +3568,7 @@ var ServiceContext = class ServiceContext2 {
3564
3568
  this.dataServiceSubscriptions.clear();
3565
3569
  (0, import_log13.log)("closed", void 0, {
3566
3570
  F: __dxlog_file15,
3567
- L: 159,
3571
+ L: 160,
3568
3572
  S: this,
3569
3573
  C: (f, a) => f(...a)
3570
3574
  });
@@ -3602,7 +3606,7 @@ var ServiceContext = class ServiceContext2 {
3602
3606
  async _initialize(ctx) {
3603
3607
  (0, import_log13.log)("initializing spaces...", void 0, {
3604
3608
  F: __dxlog_file15,
3605
- L: 193,
3609
+ L: 192,
3606
3610
  S: this,
3607
3611
  C: (f, a) => f(...a)
3608
3612
  });
@@ -3625,7 +3629,7 @@ var ServiceContext = class ServiceContext2 {
3625
3629
  this._handlerFactories.set(import_services10.Invitation.Kind.SPACE, (invitation) => {
3626
3630
  (0, import_invariant12.invariant)(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
3627
3631
  F: __dxlog_file15,
3628
- L: 216,
3632
+ L: 215,
3629
3633
  S: this,
3630
3634
  A: [
3631
3635
  "this.dataSpaceManager",
@@ -3649,7 +3653,7 @@ var ServiceContext = class ServiceContext2 {
3649
3653
  details: assertion
3650
3654
  }, {
3651
3655
  F: __dxlog_file15,
3652
- L: 232,
3656
+ L: 231,
3653
3657
  S: this,
3654
3658
  C: (f, a) => f(...a)
3655
3659
  });
@@ -3660,7 +3664,7 @@ var ServiceContext = class ServiceContext2 {
3660
3664
  details: assertion
3661
3665
  }, {
3662
3666
  F: __dxlog_file15,
3663
- L: 236,
3667
+ L: 235,
3664
3668
  S: this,
3665
3669
  C: (f, a) => f(...a)
3666
3670
  });
@@ -3671,7 +3675,7 @@ var ServiceContext = class ServiceContext2 {
3671
3675
  details: assertion
3672
3676
  }, {
3673
3677
  F: __dxlog_file15,
3674
- L: 241,
3678
+ L: 240,
3675
3679
  S: this,
3676
3680
  C: (f, a) => f(...a)
3677
3681
  });
@@ -3682,7 +3686,7 @@ var ServiceContext = class ServiceContext2 {
3682
3686
  } catch (err) {
3683
3687
  import_log13.log.catch(err, void 0, {
3684
3688
  F: __dxlog_file15,
3685
- L: 247,
3689
+ L: 246,
3686
3690
  S: this,
3687
3691
  C: (f, a) => f(...a)
3688
3692
  });
@@ -4084,7 +4088,7 @@ function _ts_decorate6(decorators, target, key, desc) {
4084
4088
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4085
4089
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4086
4090
  }
4087
- var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
4091
+ var __dxlog_file16 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/locks/node.ts";
4088
4092
  var Lock = class {
4089
4093
  constructor({ lockKey: lockPath, onAcquire, onRelease }) {
4090
4094
  this._lockPath = lockPath;
@@ -4415,7 +4419,7 @@ function _ts_decorate7(decorators, target, key, desc) {
4415
4419
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4416
4420
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4417
4421
  }
4418
- var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
4422
+ var __dxlog_file17 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/services/service-host.ts";
4419
4423
  var createDefaultModelFactory = () => {
4420
4424
  return new import_model_factory.ModelFactory().registerModel(import_document_model2.DocumentModel).registerModel(import_text_model.TextModel);
4421
4425
  };
@@ -4744,7 +4748,7 @@ ClientServicesHost = _ts_decorate7([
4744
4748
  ], ClientServicesHost);
4745
4749
 
4746
4750
  // packages/sdk/client-services/src/packlets/testing/invitation-utils.ts
4747
- var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/invitation-utils.ts";
4751
+ var __dxlog_file18 = "/mnt/ramdisk/work/packages/sdk/client-services/src/packlets/testing/invitation-utils.ts";
4748
4752
  var sanitizeInvitation = (invitation) => {
4749
4753
  return {
4750
4754
  invitationId: invitation.invitationId,