@dxos/client-services 0.4.10-main.eedd150 → 0.4.10-main.ef6fbc2

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.
@@ -2769,7 +2769,7 @@ var getPlatform = () => {
2769
2769
  };
2770
2770
 
2771
2771
  // packages/sdk/client-services/src/version.ts
2772
- var DXOS_VERSION = "0.4.10-main.eedd150";
2772
+ var DXOS_VERSION = "0.4.10-main.ef6fbc2";
2773
2773
 
2774
2774
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2775
2775
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -4386,7 +4386,7 @@ var getChannelId = (channel) => `user-channel/${channel}`;
4386
4386
 
4387
4387
  // packages/sdk/client-services/src/packlets/services/service-context.ts
4388
4388
  import { Trigger as Trigger5 } from "@dxos/async";
4389
- import { Context as Context10 } from "@dxos/context";
4389
+ import { Context as Context10, Resource } from "@dxos/context";
4390
4390
  import { getCredentialAssertion as getCredentialAssertion3 } from "@dxos/credentials";
4391
4391
  import { failUndefined as failUndefined2 } from "@dxos/debug";
4392
4392
  import { AutomergeHost, MetadataStore, SnapshotStore, SpaceManager, valueEncoding } from "@dxos/echo-pipeline";
@@ -4493,8 +4493,9 @@ function _ts_decorate6(decorators, target, key, desc) {
4493
4493
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4494
4494
  }
4495
4495
  var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
4496
- var ServiceContext = class {
4496
+ var ServiceContext = class extends Resource {
4497
4497
  constructor(storage, level, networkManager, signalManager, _runtimeParams) {
4498
+ super();
4498
4499
  this.storage = storage;
4499
4500
  this.level = level;
4500
4501
  this.networkManager = networkManager;
@@ -4543,11 +4544,11 @@ var ServiceContext = class {
4543
4544
  this.invitations = new InvitationsHandler(this.networkManager);
4544
4545
  this._handlerFactories.set(Invitation6.Kind.DEVICE, () => new DeviceInvitationProtocol(this.keyring, () => this.identityManager.identity ?? failUndefined2(), this._acceptIdentity.bind(this)));
4545
4546
  }
4546
- async open(ctx) {
4547
+ async _open(ctx) {
4547
4548
  await this._checkStorageVersion();
4548
4549
  log12("opening...", void 0, {
4549
4550
  F: __dxlog_file15,
4550
- L: 154,
4551
+ L: 156,
4551
4552
  S: this,
4552
4553
  C: (f, a) => f(...a)
4553
4554
  });
@@ -4555,7 +4556,7 @@ var ServiceContext = class {
4555
4556
  id: this._instanceId
4556
4557
  }), {
4557
4558
  F: __dxlog_file15,
4558
- L: 155,
4559
+ L: 157,
4559
4560
  S: this,
4560
4561
  C: (f, a) => f(...a)
4561
4562
  });
@@ -4571,21 +4572,21 @@ var ServiceContext = class {
4571
4572
  id: this._instanceId
4572
4573
  }), {
4573
4574
  F: __dxlog_file15,
4574
- L: 165,
4575
+ L: 167,
4575
4576
  S: this,
4576
4577
  C: (f, a) => f(...a)
4577
4578
  });
4578
4579
  log12("opened", void 0, {
4579
4580
  F: __dxlog_file15,
4580
- L: 166,
4581
+ L: 168,
4581
4582
  S: this,
4582
4583
  C: (f, a) => f(...a)
4583
4584
  });
4584
4585
  }
4585
- async close() {
4586
+ async _close() {
4586
4587
  log12("closing...", void 0, {
4587
4588
  F: __dxlog_file15,
4588
- L: 170,
4589
+ L: 172,
4589
4590
  S: this,
4590
4591
  C: (f, a) => f(...a)
4591
4592
  });
@@ -4603,7 +4604,7 @@ var ServiceContext = class {
4603
4604
  await this.indexer.destroy();
4604
4605
  log12("closed", void 0, {
4605
4606
  F: __dxlog_file15,
4606
- L: 183,
4607
+ L: 185,
4607
4608
  S: this,
4608
4609
  C: (f, a) => f(...a)
4609
4610
  });
@@ -4617,7 +4618,7 @@ var ServiceContext = class {
4617
4618
  const factory = this._handlerFactories.get(invitation.kind);
4618
4619
  invariant14(factory, `Unknown invitation kind: ${invitation.kind}`, {
4619
4620
  F: __dxlog_file15,
4620
- L: 194,
4621
+ L: 196,
4621
4622
  S: this,
4622
4623
  A: [
4623
4624
  "factory",
@@ -4649,7 +4650,7 @@ var ServiceContext = class {
4649
4650
  async _initialize(ctx) {
4650
4651
  log12("initializing spaces...", void 0, {
4651
4652
  F: __dxlog_file15,
4652
- L: 225,
4653
+ L: 227,
4653
4654
  S: this,
4654
4655
  C: (f, a) => f(...a)
4655
4656
  });
@@ -4672,7 +4673,7 @@ var ServiceContext = class {
4672
4673
  this._handlerFactories.set(Invitation6.Kind.SPACE, (invitation) => {
4673
4674
  invariant14(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
4674
4675
  F: __dxlog_file15,
4675
- L: 249,
4676
+ L: 251,
4676
4677
  S: this,
4677
4678
  A: [
4678
4679
  "this.dataSpaceManager",
@@ -4696,7 +4697,7 @@ var ServiceContext = class {
4696
4697
  details: assertion
4697
4698
  }, {
4698
4699
  F: __dxlog_file15,
4699
- L: 265,
4700
+ L: 267,
4700
4701
  S: this,
4701
4702
  C: (f, a) => f(...a)
4702
4703
  });
@@ -4707,7 +4708,7 @@ var ServiceContext = class {
4707
4708
  details: assertion
4708
4709
  }, {
4709
4710
  F: __dxlog_file15,
4710
- L: 269,
4711
+ L: 271,
4711
4712
  S: this,
4712
4713
  C: (f, a) => f(...a)
4713
4714
  });
@@ -4718,7 +4719,7 @@ var ServiceContext = class {
4718
4719
  details: assertion
4719
4720
  }, {
4720
4721
  F: __dxlog_file15,
4721
- L: 274,
4722
+ L: 276,
4722
4723
  S: this,
4723
4724
  C: (f, a) => f(...a)
4724
4725
  });
@@ -4729,7 +4730,7 @@ var ServiceContext = class {
4729
4730
  } catch (err) {
4730
4731
  log12.catch(err, void 0, {
4731
4732
  F: __dxlog_file15,
4732
- L: 280,
4733
+ L: 282,
4733
4734
  S: this,
4734
4735
  C: (f, a) => f(...a)
4735
4736
  });
@@ -4741,7 +4742,7 @@ var ServiceContext = class {
4741
4742
  };
4742
4743
  _ts_decorate6([
4743
4744
  Trace2.span()
4744
- ], ServiceContext.prototype, "open", null);
4745
+ ], ServiceContext.prototype, "_open", null);
4745
4746
  _ts_decorate6([
4746
4747
  Trace2.span()
4747
4748
  ], ServiceContext.prototype, "_initialize", null);
@@ -5739,4 +5740,4 @@ export {
5739
5740
  createLevel,
5740
5741
  ClientServicesHost
5741
5742
  };
5742
- //# sourceMappingURL=chunk-I6GQX7F3.mjs.map
5743
+ //# sourceMappingURL=chunk-2B66DLAB.mjs.map