@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.
@@ -264,6 +264,11 @@ var DevtoolsServiceImpl = class {
264
264
  usageQuota: (_e = navigatorInfo == null ? void 0 : navigatorInfo.quota) != null ? _e : 0
265
265
  };
266
266
  }
267
+ async getBlobs() {
268
+ return {
269
+ blobs: await this.params.context.blobStore.list()
270
+ };
271
+ }
267
272
  async getSnapshots() {
268
273
  return {
269
274
  snapshots: await this.params.context.snapshotStore.listSnapshots()
@@ -2980,13 +2985,12 @@ var DataSpaceManager = class DataSpaceManager2 {
2980
2985
  session.addExtension("dxos.mesh.teleport.gossip", gossip.createExtension({
2981
2986
  remotePeerId: session.remotePeerId
2982
2987
  }));
2983
- session.addExtension("dxos.mesh.teleport.objectsync", space.snapshotManager.objectSync.createExtension());
2984
2988
  session.addExtension("dxos.mesh.teleport.notarization", dataSpace.notarizationPlugin.createExtension());
2985
2989
  },
2986
2990
  onAuthFailure: () => {
2987
2991
  log11.warn("auth failure", {}, {
2988
2992
  file: "data-space-manager.ts",
2989
- line: 213,
2993
+ line: 212,
2990
2994
  scope: this,
2991
2995
  callSite: (f, a) => f(...a)
2992
2996
  });
@@ -3009,7 +3013,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3009
3013
  space: space.key
3010
3014
  }, {
3011
3015
  file: "data-space-manager.ts",
3012
- line: 230,
3016
+ line: 229,
3013
3017
  scope: this,
3014
3018
  callSite: (f, a) => f(...a)
3015
3019
  });
@@ -3021,7 +3025,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3021
3025
  open: this._isOpen
3022
3026
  }, {
3023
3027
  file: "data-space-manager.ts",
3024
- line: 237,
3028
+ line: 236,
3025
3029
  scope: this,
3026
3030
  callSite: (f, a) => f(...a)
3027
3031
  });
@@ -3283,6 +3287,7 @@ import { PublicKey as PublicKey9 } from "@dxos/keys";
3283
3287
  import { log as log13 } from "@dxos/log";
3284
3288
  import { STORAGE_VERSION, trace as trace5 } from "@dxos/protocols";
3285
3289
  import { Invitation as Invitation5 } from "@dxos/protocols/proto/dxos/client/services";
3290
+ import { BlobStore } from "@dxos/teleport-extension-object-sync";
3286
3291
  var ServiceContext = class {
3287
3292
  // prettier-ignore
3288
3293
  constructor(storage, networkManager, signalManager, modelFactory) {
@@ -3296,6 +3301,7 @@ var ServiceContext = class {
3296
3301
  this._instanceId = PublicKey9.random().toHex();
3297
3302
  this.metadataStore = new MetadataStore(storage.createDirectory("metadata"));
3298
3303
  this.snapshotStore = new SnapshotStore(storage.createDirectory("snapshots"));
3304
+ this.blobStore = new BlobStore(storage.createDirectory("blobs"));
3299
3305
  this.keyring = new Keyring(storage.createDirectory("keyring"));
3300
3306
  this.feedStore = new FeedStore({
3301
3307
  factory: new FeedFactory({
@@ -3309,6 +3315,7 @@ var ServiceContext = class {
3309
3315
  this.spaceManager = new SpaceManager({
3310
3316
  feedStore: this.feedStore,
3311
3317
  networkManager: this.networkManager,
3318
+ blobStore: this.blobStore,
3312
3319
  metadataStore: this.metadataStore,
3313
3320
  modelFactory: this.modelFactory,
3314
3321
  snapshotStore: this.snapshotStore
@@ -3325,14 +3332,14 @@ var ServiceContext = class {
3325
3332
  id: this._instanceId
3326
3333
  }), {
3327
3334
  file: "service-context.ts",
3328
- line: 119,
3335
+ line: 126,
3329
3336
  scope: this,
3330
3337
  callSite: (f, a) => f(...a)
3331
3338
  });
3332
3339
  await this._checkStorageVersion();
3333
3340
  log13("opening...", {}, {
3334
3341
  file: "service-context.ts",
3335
- line: 123,
3342
+ line: 130,
3336
3343
  scope: this,
3337
3344
  callSite: (f, a) => f(...a)
3338
3345
  });
@@ -3345,7 +3352,7 @@ var ServiceContext = class {
3345
3352
  }
3346
3353
  log13("opened", {}, {
3347
3354
  file: "service-context.ts",
3348
- line: 131,
3355
+ line: 138,
3349
3356
  scope: this,
3350
3357
  callSite: (f, a) => f(...a)
3351
3358
  });
@@ -3353,7 +3360,7 @@ var ServiceContext = class {
3353
3360
  id: this._instanceId
3354
3361
  }), {
3355
3362
  file: "service-context.ts",
3356
- line: 132,
3363
+ line: 139,
3357
3364
  scope: this,
3358
3365
  callSite: (f, a) => f(...a)
3359
3366
  });
@@ -3362,7 +3369,7 @@ var ServiceContext = class {
3362
3369
  var _a, _b;
3363
3370
  log13("closing...", {}, {
3364
3371
  file: "service-context.ts",
3365
- line: 136,
3372
+ line: 143,
3366
3373
  scope: this,
3367
3374
  callSite: (f, a) => f(...a)
3368
3375
  });
@@ -3376,7 +3383,7 @@ var ServiceContext = class {
3376
3383
  this.dataServiceSubscriptions.clear();
3377
3384
  log13("closed", {}, {
3378
3385
  file: "service-context.ts",
3379
- line: 145,
3386
+ line: 152,
3380
3387
  scope: this,
3381
3388
  callSite: (f, a) => f(...a)
3382
3389
  });
@@ -3407,7 +3414,7 @@ var ServiceContext = class {
3407
3414
  var _a;
3408
3415
  log13("initializing spaces...", {}, {
3409
3416
  file: "service-context.ts",
3410
- line: 178,
3417
+ line: 185,
3411
3418
  scope: this,
3412
3419
  callSite: (f, a) => f(...a)
3413
3420
  });
@@ -3446,7 +3453,7 @@ var ServiceContext = class {
3446
3453
  details: assertion
3447
3454
  }, {
3448
3455
  file: "service-context.ts",
3449
- line: 217,
3456
+ line: 224,
3450
3457
  scope: this,
3451
3458
  callSite: (f, a) => f(...a)
3452
3459
  });
@@ -3457,7 +3464,7 @@ var ServiceContext = class {
3457
3464
  details: assertion
3458
3465
  }, {
3459
3466
  file: "service-context.ts",
3460
- line: 221,
3467
+ line: 228,
3461
3468
  scope: this,
3462
3469
  callSite: (f, a) => f(...a)
3463
3470
  });
@@ -3468,7 +3475,7 @@ var ServiceContext = class {
3468
3475
  details: assertion
3469
3476
  }, {
3470
3477
  file: "service-context.ts",
3471
- line: 226,
3478
+ line: 233,
3472
3479
  scope: this,
3473
3480
  callSite: (f, a) => f(...a)
3474
3481
  });
@@ -3479,7 +3486,7 @@ var ServiceContext = class {
3479
3486
  } catch (err) {
3480
3487
  log13.catch(err, {}, {
3481
3488
  file: "service-context.ts",
3482
- line: 232,
3489
+ line: 239,
3483
3490
  scope: this,
3484
3491
  callSite: (f, a) => f(...a)
3485
3492
  });
@@ -4004,4 +4011,4 @@ export {
4004
4011
  ClientServicesHost,
4005
4012
  LocalClientServices
4006
4013
  };
4007
- //# sourceMappingURL=chunk-ARBZHWMK.mjs.map
4014
+ //# sourceMappingURL=chunk-2GQ7337P.mjs.map