@dxos/client-services 0.6.7 → 0.6.8-main.3be982f

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 (47) hide show
  1. package/dist/lib/browser/{chunk-67R5H5BQ.mjs → chunk-I6MMWGWX.mjs} +23 -25
  2. package/dist/lib/browser/chunk-I6MMWGWX.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +1 -1
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/testing/index.mjs +2 -6
  6. package/dist/lib/browser/testing/index.mjs.map +3 -3
  7. package/dist/lib/node/{chunk-7MSO7RYL.cjs → chunk-PAH5HN65.cjs} +24 -26
  8. package/dist/lib/node/chunk-PAH5HN65.cjs.map +7 -0
  9. package/dist/lib/node/index.cjs +45 -45
  10. package/dist/lib/node/meta.json +1 -1
  11. package/dist/lib/node/testing/index.cjs +8 -12
  12. package/dist/lib/node/testing/index.cjs.map +3 -3
  13. package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -1
  14. package/dist/types/src/packlets/diagnostics/diagnostics.d.ts +1 -1
  15. package/dist/types/src/packlets/diagnostics/diagnostics.d.ts.map +1 -1
  16. package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
  17. package/dist/types/src/packlets/invitations/invitations-handler.d.ts +0 -1
  18. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
  19. package/dist/types/src/packlets/invitations/space-invitation-protocol.d.ts.map +1 -1
  20. package/dist/types/src/packlets/invitations/utils.d.ts.map +1 -1
  21. package/dist/types/src/packlets/services/service-context.d.ts +1 -5
  22. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  23. package/dist/types/src/packlets/services/util.d.ts.map +1 -1
  24. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  25. package/dist/types/src/packlets/spaces/epoch-migrations.d.ts.map +1 -1
  26. package/dist/types/src/packlets/storage/level.d.ts.map +1 -1
  27. package/dist/types/src/packlets/storage/profile-archive.d.ts.map +1 -1
  28. package/dist/types/src/packlets/storage/storage.d.ts.map +1 -1
  29. package/dist/types/src/packlets/storage/util.d.ts.map +1 -1
  30. package/dist/types/src/packlets/testing/credential-utils.d.ts.map +1 -1
  31. package/dist/types/src/packlets/testing/invitation-utils.d.ts.map +1 -1
  32. package/dist/types/src/packlets/testing/test-builder.d.ts +1 -3
  33. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  34. package/dist/types/src/packlets/worker/worker-session.d.ts.map +1 -1
  35. package/dist/types/src/version.d.ts +1 -1
  36. package/dist/types/src/version.d.ts.map +1 -1
  37. package/package.json +37 -37
  38. package/src/packlets/devtools/devtools.ts +1 -1
  39. package/src/packlets/identity/identity-manager.test.ts +1 -2
  40. package/src/packlets/identity/identity.test.ts +3 -10
  41. package/src/packlets/services/service-context.ts +1 -7
  42. package/src/packlets/spaces/data-space-manager.ts +2 -2
  43. package/src/packlets/spaces/edge-feed-replicator.ts +1 -1
  44. package/src/packlets/testing/test-builder.ts +1 -7
  45. package/src/version.ts +1 -5
  46. package/dist/lib/browser/chunk-67R5H5BQ.mjs.map +0 -7
  47. package/dist/lib/node/chunk-7MSO7RYL.cjs.map +0 -7
@@ -276,7 +276,7 @@ var DevtoolsServiceImpl = class {
276
276
  }
277
277
  async getSnapshots() {
278
278
  return {
279
- snapshots: await this.params.context.snapshotStore.listSnapshots()
279
+ snapshots: []
280
280
  };
281
281
  }
282
282
  resetStorage(request) {
@@ -359,7 +359,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
359
359
  import { TRACE_PROCESSOR } from "@dxos/tracing";
360
360
 
361
361
  // packages/sdk/client-services/src/version.ts
362
- var DXOS_VERSION = "0.6.7";
362
+ var DXOS_VERSION = "0.6.8-main.3be982f";
363
363
 
364
364
  // packages/sdk/client-services/src/packlets/services/platform.ts
365
365
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -4002,7 +4002,7 @@ var EdgeFeedReplicator = class extends Resource2 {
4002
4002
  return;
4003
4003
  }
4004
4004
  const [service, ...rest] = message.serviceId.split(":");
4005
- if (service !== "hypercore-replicator") {
4005
+ if (service !== EdgeService.FEED_REPLICATOR) {
4006
4006
  return;
4007
4007
  }
4008
4008
  const [spaceId] = rest;
@@ -5384,7 +5384,7 @@ import { Invitation as Invitation7, SpaceState as SpaceState3 } from "@dxos/prot
5384
5384
  import { SpaceMember as SpaceMember6 } from "@dxos/protocols/proto/dxos/halo/credentials";
5385
5385
  import { Gossip as Gossip2, Presence as Presence2 } from "@dxos/teleport-extension-gossip";
5386
5386
  import { trace as trace7 } from "@dxos/tracing";
5387
- import { ComplexMap as ComplexMap4, assignDeep, deferFunction as deferFunction2, forEachAsync } from "@dxos/util";
5387
+ import { ComplexMap as ComplexMap4, setDeep, deferFunction as deferFunction2, forEachAsync } from "@dxos/util";
5388
5388
 
5389
5389
  // packages/sdk/client-services/src/packlets/spaces/genesis.ts
5390
5390
  import { createCredential } from "@dxos/credentials";
@@ -5681,7 +5681,7 @@ var DataSpaceManager = class extends Resource4 {
5681
5681
  };
5682
5682
  const propertiesId = generateEchoId();
5683
5683
  document.change((doc) => {
5684
- assignDeep(doc, [
5684
+ setDeep(doc, [
5685
5685
  "objects",
5686
5686
  propertiesId
5687
5687
  ], properties);
@@ -6413,7 +6413,7 @@ import { Context as Context9, Resource as Resource5 } from "@dxos/context";
6413
6413
  import { getCredentialAssertion as getCredentialAssertion5 } from "@dxos/credentials";
6414
6414
  import { failUndefined as failUndefined2 } from "@dxos/debug";
6415
6415
  import { EchoEdgeReplicator, EchoHost } from "@dxos/echo-db";
6416
- import { MeshEchoReplicator, MetadataStore, SnapshotStore, SpaceManager, valueEncoding } from "@dxos/echo-pipeline";
6416
+ import { MeshEchoReplicator, MetadataStore, SpaceManager, valueEncoding } from "@dxos/echo-pipeline";
6417
6417
  import { FeedFactory, FeedStore } from "@dxos/feed-store";
6418
6418
  import { invariant as invariant17 } from "@dxos/invariant";
6419
6419
  import { Keyring } from "@dxos/keyring";
@@ -6450,7 +6450,6 @@ var ServiceContext = class extends Resource5 {
6450
6450
  this._handlerFactories = /* @__PURE__ */ new Map();
6451
6451
  this._instanceId = PublicKey13.random().toHex();
6452
6452
  this.metadataStore = new MetadataStore(storage.createDirectory("metadata"));
6453
- this.snapshotStore = new SnapshotStore(storage.createDirectory("snapshots"));
6454
6453
  this.blobStore = new BlobStore(storage.createDirectory("blobs"));
6455
6454
  this.keyring = new Keyring(storage.createDirectory("keyring"));
6456
6455
  this.feedStore = new FeedStore({
@@ -6468,7 +6467,6 @@ var ServiceContext = class extends Resource5 {
6468
6467
  networkManager: this.networkManager,
6469
6468
  blobStore: this.blobStore,
6470
6469
  metadataStore: this.metadataStore,
6471
- snapshotStore: this.snapshotStore,
6472
6470
  disableP2pReplication: this._runtimeParams?.disableP2pReplication
6473
6471
  });
6474
6472
  this.identityManager = new IdentityManager(this.metadataStore, this.keyring, this.feedStore, this.spaceManager, this._runtimeParams);
@@ -6491,7 +6489,7 @@ var ServiceContext = class extends Resource5 {
6491
6489
  await this._checkStorageVersion();
6492
6490
  log20("opening...", void 0, {
6493
6491
  F: __dxlog_file23,
6494
- L: 166,
6492
+ L: 160,
6495
6493
  S: this,
6496
6494
  C: (f, a) => f(...a)
6497
6495
  });
@@ -6499,7 +6497,7 @@ var ServiceContext = class extends Resource5 {
6499
6497
  id: this._instanceId
6500
6498
  }), {
6501
6499
  F: __dxlog_file23,
6502
- L: 167,
6500
+ L: 161,
6503
6501
  S: this,
6504
6502
  C: (f, a) => f(...a)
6505
6503
  });
@@ -6524,7 +6522,7 @@ var ServiceContext = class extends Resource5 {
6524
6522
  count: loadedInvitations.invitations?.length
6525
6523
  }, {
6526
6524
  F: __dxlog_file23,
6527
- L: 189,
6525
+ L: 183,
6528
6526
  S: this,
6529
6527
  C: (f, a) => f(...a)
6530
6528
  });
@@ -6532,13 +6530,13 @@ var ServiceContext = class extends Resource5 {
6532
6530
  id: this._instanceId
6533
6531
  }), {
6534
6532
  F: __dxlog_file23,
6535
- L: 191,
6533
+ L: 185,
6536
6534
  S: this,
6537
6535
  C: (f, a) => f(...a)
6538
6536
  });
6539
6537
  log20("opened", void 0, {
6540
6538
  F: __dxlog_file23,
6541
- L: 192,
6539
+ L: 186,
6542
6540
  S: this,
6543
6541
  C: (f, a) => f(...a)
6544
6542
  });
@@ -6546,7 +6544,7 @@ var ServiceContext = class extends Resource5 {
6546
6544
  async _close(ctx) {
6547
6545
  log20("closing...", void 0, {
6548
6546
  F: __dxlog_file23,
6549
- L: 196,
6547
+ L: 190,
6550
6548
  S: this,
6551
6549
  C: (f, a) => f(...a)
6552
6550
  });
@@ -6564,7 +6562,7 @@ var ServiceContext = class extends Resource5 {
6564
6562
  await this._edgeConnection?.close();
6565
6563
  log20("closed", void 0, {
6566
6564
  F: __dxlog_file23,
6567
- L: 211,
6565
+ L: 205,
6568
6566
  S: this,
6569
6567
  C: (f, a) => f(...a)
6570
6568
  });
@@ -6573,7 +6571,7 @@ var ServiceContext = class extends Resource5 {
6573
6571
  const identity = await this.identityManager.createIdentity(params);
6574
6572
  await this._initialize(new Context9(void 0, {
6575
6573
  F: __dxlog_file23,
6576
- L: 216
6574
+ L: 210
6577
6575
  }));
6578
6576
  return identity;
6579
6577
  }
@@ -6581,7 +6579,7 @@ var ServiceContext = class extends Resource5 {
6581
6579
  const factory = this._handlerFactories.get(invitation.kind);
6582
6580
  invariant17(factory, `Unknown invitation kind: ${invitation.kind}`, {
6583
6581
  F: __dxlog_file23,
6584
- L: 222,
6582
+ L: 216,
6585
6583
  S: this,
6586
6584
  A: [
6587
6585
  "factory",
@@ -6602,7 +6600,7 @@ var ServiceContext = class extends Resource5 {
6602
6600
  const identity = await this.identityManager.acceptIdentity(params);
6603
6601
  await this._initialize(new Context9(void 0, {
6604
6602
  F: __dxlog_file23,
6605
- L: 238
6603
+ L: 232
6606
6604
  }));
6607
6605
  return identity;
6608
6606
  }
@@ -6616,7 +6614,7 @@ var ServiceContext = class extends Resource5 {
6616
6614
  async _initialize(ctx) {
6617
6615
  log20("initializing spaces...", void 0, {
6618
6616
  F: __dxlog_file23,
6619
- L: 253,
6617
+ L: 247,
6620
6618
  S: this,
6621
6619
  C: (f, a) => f(...a)
6622
6620
  });
@@ -6651,7 +6649,7 @@ var ServiceContext = class extends Resource5 {
6651
6649
  this._handlerFactories.set(Invitation8.Kind.SPACE, (invitation) => {
6652
6650
  invariant17(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
6653
6651
  F: __dxlog_file23,
6654
- L: 281,
6652
+ L: 275,
6655
6653
  S: this,
6656
6654
  A: [
6657
6655
  "this.dataSpaceManager",
@@ -6675,7 +6673,7 @@ var ServiceContext = class extends Resource5 {
6675
6673
  details: assertion
6676
6674
  }, {
6677
6675
  F: __dxlog_file23,
6678
- L: 297,
6676
+ L: 291,
6679
6677
  S: this,
6680
6678
  C: (f, a) => f(...a)
6681
6679
  });
@@ -6686,7 +6684,7 @@ var ServiceContext = class extends Resource5 {
6686
6684
  details: assertion
6687
6685
  }, {
6688
6686
  F: __dxlog_file23,
6689
- L: 301,
6687
+ L: 295,
6690
6688
  S: this,
6691
6689
  C: (f, a) => f(...a)
6692
6690
  });
@@ -6697,7 +6695,7 @@ var ServiceContext = class extends Resource5 {
6697
6695
  details: assertion
6698
6696
  }, {
6699
6697
  F: __dxlog_file23,
6700
- L: 306,
6698
+ L: 300,
6701
6699
  S: this,
6702
6700
  C: (f, a) => f(...a)
6703
6701
  });
@@ -6708,7 +6706,7 @@ var ServiceContext = class extends Resource5 {
6708
6706
  } catch (err) {
6709
6707
  log20.catch(err, void 0, {
6710
6708
  F: __dxlog_file23,
6711
- L: 312,
6709
+ L: 306,
6712
6710
  S: this,
6713
6711
  C: (f, a) => f(...a)
6714
6712
  });
@@ -7812,4 +7810,4 @@ export {
7812
7810
  importProfileData,
7813
7811
  ClientServicesHost
7814
7812
  };
7815
- //# sourceMappingURL=chunk-67R5H5BQ.mjs.map
7813
+ //# sourceMappingURL=chunk-I6MMWGWX.mjs.map