@dxos/client-services 0.1.51-next.03aa1a8 → 0.1.51-next.5787f10

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.
@@ -332,6 +332,11 @@ var DevtoolsServiceImpl = class {
332
332
  usageQuota: (_e = navigatorInfo == null ? void 0 : navigatorInfo.quota) != null ? _e : 0
333
333
  };
334
334
  }
335
+ async getBlobs() {
336
+ return {
337
+ blobs: await this.params.context.blobStore.list()
338
+ };
339
+ }
335
340
  async getSnapshots() {
336
341
  return {
337
342
  snapshots: await this.params.context.snapshotStore.listSnapshots()
@@ -3148,13 +3153,12 @@ var DataSpaceManager = class DataSpaceManager2 {
3148
3153
  session.addExtension("dxos.mesh.teleport.gossip", gossip.createExtension({
3149
3154
  remotePeerId: session.remotePeerId
3150
3155
  }));
3151
- session.addExtension("dxos.mesh.teleport.objectsync", space.snapshotManager.objectSync.createExtension());
3152
3156
  session.addExtension("dxos.mesh.teleport.notarization", dataSpace.notarizationPlugin.createExtension());
3153
3157
  },
3154
3158
  onAuthFailure: () => {
3155
3159
  import_log12.log.warn("auth failure", {}, {
3156
3160
  file: "data-space-manager.ts",
3157
- line: 213,
3161
+ line: 212,
3158
3162
  scope: this,
3159
3163
  callSite: (f, a) => f(...a)
3160
3164
  });
@@ -3177,7 +3181,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3177
3181
  space: space.key
3178
3182
  }, {
3179
3183
  file: "data-space-manager.ts",
3180
- line: 230,
3184
+ line: 229,
3181
3185
  scope: this,
3182
3186
  callSite: (f, a) => f(...a)
3183
3187
  });
@@ -3189,7 +3193,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3189
3193
  open: this._isOpen
3190
3194
  }, {
3191
3195
  file: "data-space-manager.ts",
3192
- line: 237,
3196
+ line: 236,
3193
3197
  scope: this,
3194
3198
  callSite: (f, a) => f(...a)
3195
3199
  });
@@ -3489,6 +3493,7 @@ var import_keys10 = require("@dxos/keys");
3489
3493
  var import_log14 = require("@dxos/log");
3490
3494
  var import_protocols8 = require("@dxos/protocols");
3491
3495
  var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
3496
+ var import_teleport_extension_object_sync = require("@dxos/teleport-extension-object-sync");
3492
3497
  var ServiceContext = class {
3493
3498
  // prettier-ignore
3494
3499
  constructor(storage, networkManager, signalManager, modelFactory) {
@@ -3502,6 +3507,7 @@ var ServiceContext = class {
3502
3507
  this._instanceId = import_keys10.PublicKey.random().toHex();
3503
3508
  this.metadataStore = new import_echo_pipeline3.MetadataStore(storage.createDirectory("metadata"));
3504
3509
  this.snapshotStore = new import_echo_pipeline3.SnapshotStore(storage.createDirectory("snapshots"));
3510
+ this.blobStore = new import_teleport_extension_object_sync.BlobStore(storage.createDirectory("blobs"));
3505
3511
  this.keyring = new import_keyring.Keyring(storage.createDirectory("keyring"));
3506
3512
  this.feedStore = new import_feed_store4.FeedStore({
3507
3513
  factory: new import_feed_store4.FeedFactory({
@@ -3515,6 +3521,7 @@ var ServiceContext = class {
3515
3521
  this.spaceManager = new import_echo_pipeline3.SpaceManager({
3516
3522
  feedStore: this.feedStore,
3517
3523
  networkManager: this.networkManager,
3524
+ blobStore: this.blobStore,
3518
3525
  metadataStore: this.metadataStore,
3519
3526
  modelFactory: this.modelFactory,
3520
3527
  snapshotStore: this.snapshotStore
@@ -3531,14 +3538,14 @@ var ServiceContext = class {
3531
3538
  id: this._instanceId
3532
3539
  }), {
3533
3540
  file: "service-context.ts",
3534
- line: 119,
3541
+ line: 126,
3535
3542
  scope: this,
3536
3543
  callSite: (f, a) => f(...a)
3537
3544
  });
3538
3545
  await this._checkStorageVersion();
3539
3546
  (0, import_log14.log)("opening...", {}, {
3540
3547
  file: "service-context.ts",
3541
- line: 123,
3548
+ line: 130,
3542
3549
  scope: this,
3543
3550
  callSite: (f, a) => f(...a)
3544
3551
  });
@@ -3551,7 +3558,7 @@ var ServiceContext = class {
3551
3558
  }
3552
3559
  (0, import_log14.log)("opened", {}, {
3553
3560
  file: "service-context.ts",
3554
- line: 131,
3561
+ line: 138,
3555
3562
  scope: this,
3556
3563
  callSite: (f, a) => f(...a)
3557
3564
  });
@@ -3559,7 +3566,7 @@ var ServiceContext = class {
3559
3566
  id: this._instanceId
3560
3567
  }), {
3561
3568
  file: "service-context.ts",
3562
- line: 132,
3569
+ line: 139,
3563
3570
  scope: this,
3564
3571
  callSite: (f, a) => f(...a)
3565
3572
  });
@@ -3568,7 +3575,7 @@ var ServiceContext = class {
3568
3575
  var _a, _b;
3569
3576
  (0, import_log14.log)("closing...", {}, {
3570
3577
  file: "service-context.ts",
3571
- line: 136,
3578
+ line: 143,
3572
3579
  scope: this,
3573
3580
  callSite: (f, a) => f(...a)
3574
3581
  });
@@ -3582,7 +3589,7 @@ var ServiceContext = class {
3582
3589
  this.dataServiceSubscriptions.clear();
3583
3590
  (0, import_log14.log)("closed", {}, {
3584
3591
  file: "service-context.ts",
3585
- line: 145,
3592
+ line: 152,
3586
3593
  scope: this,
3587
3594
  callSite: (f, a) => f(...a)
3588
3595
  });
@@ -3613,7 +3620,7 @@ var ServiceContext = class {
3613
3620
  var _a;
3614
3621
  (0, import_log14.log)("initializing spaces...", {}, {
3615
3622
  file: "service-context.ts",
3616
- line: 178,
3623
+ line: 185,
3617
3624
  scope: this,
3618
3625
  callSite: (f, a) => f(...a)
3619
3626
  });
@@ -3652,7 +3659,7 @@ var ServiceContext = class {
3652
3659
  details: assertion
3653
3660
  }, {
3654
3661
  file: "service-context.ts",
3655
- line: 217,
3662
+ line: 224,
3656
3663
  scope: this,
3657
3664
  callSite: (f, a) => f(...a)
3658
3665
  });
@@ -3663,7 +3670,7 @@ var ServiceContext = class {
3663
3670
  details: assertion
3664
3671
  }, {
3665
3672
  file: "service-context.ts",
3666
- line: 221,
3673
+ line: 228,
3667
3674
  scope: this,
3668
3675
  callSite: (f, a) => f(...a)
3669
3676
  });
@@ -3674,7 +3681,7 @@ var ServiceContext = class {
3674
3681
  details: assertion
3675
3682
  }, {
3676
3683
  file: "service-context.ts",
3677
- line: 226,
3684
+ line: 233,
3678
3685
  scope: this,
3679
3686
  callSite: (f, a) => f(...a)
3680
3687
  });
@@ -3685,7 +3692,7 @@ var ServiceContext = class {
3685
3692
  } catch (err) {
3686
3693
  import_log14.log.catch(err, {}, {
3687
3694
  file: "service-context.ts",
3688
- line: 232,
3695
+ line: 239,
3689
3696
  scope: this,
3690
3697
  callSite: (f, a) => f(...a)
3691
3698
  });