@dxos/client-services 0.4.10-main.3040945 → 0.4.10-main.35b4a08

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 (45) hide show
  1. package/dist/lib/browser/{chunk-WGCEYMNX.mjs → chunk-24G2JACZ.mjs} +61 -93
  2. package/dist/lib/browser/{chunk-WGCEYMNX.mjs.map → chunk-24G2JACZ.mjs.map} +4 -4
  3. package/dist/lib/browser/index.mjs +1 -3
  4. package/dist/lib/browser/index.mjs.map +1 -1
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/packlets/testing/index.mjs +4 -6
  7. package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
  8. package/dist/lib/node/{chunk-IQXG5CIB.cjs → chunk-6X2EZZDT.cjs} +60 -87
  9. package/dist/lib/node/chunk-6X2EZZDT.cjs.map +7 -0
  10. package/dist/lib/node/index.cjs +37 -39
  11. package/dist/lib/node/index.cjs.map +1 -1
  12. package/dist/lib/node/meta.json +1 -1
  13. package/dist/lib/node/packlets/testing/index.cjs +8 -10
  14. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  15. package/dist/types/src/packlets/services/service-context.d.ts +5 -7
  16. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  17. package/dist/types/src/packlets/services/service-host.d.ts +0 -1
  18. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  19. package/dist/types/src/packlets/storage/index.d.ts +0 -1
  20. package/dist/types/src/packlets/storage/index.d.ts.map +1 -1
  21. package/dist/types/src/packlets/storage/storage.d.ts.map +1 -1
  22. package/dist/types/src/packlets/testing/test-builder.d.ts +1 -1
  23. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  24. package/dist/types/src/version.d.ts +1 -1
  25. package/package.json +34 -35
  26. package/src/packlets/devices/devices-service.test.ts +1 -1
  27. package/src/packlets/identity/identity-service.test.ts +1 -1
  28. package/src/packlets/invitations/device-invitation-protocol.test.ts +1 -1
  29. package/src/packlets/network/network-service.test.ts +1 -1
  30. package/src/packlets/services/service-context.test.ts +5 -5
  31. package/src/packlets/services/service-context.ts +5 -10
  32. package/src/packlets/services/service-host.ts +2 -11
  33. package/src/packlets/services/service-registry.test.ts +1 -1
  34. package/src/packlets/spaces/spaces-service.test.ts +1 -1
  35. package/src/packlets/storage/index.ts +0 -1
  36. package/src/packlets/storage/storage.ts +9 -3
  37. package/src/packlets/testing/test-builder.ts +3 -5
  38. package/src/version.ts +1 -1
  39. package/dist/lib/node/chunk-IQXG5CIB.cjs.map +0 -7
  40. package/dist/types/src/packlets/storage/level.d.ts +0 -4
  41. package/dist/types/src/packlets/storage/level.d.ts.map +0 -1
  42. package/dist/types/src/packlets/storage/util.d.ts +0 -4
  43. package/dist/types/src/packlets/storage/util.d.ts.map +0 -1
  44. package/src/packlets/storage/level.ts +0 -19
  45. package/src/packlets/storage/util.ts +0 -19
@@ -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.3040945";
2772
+ var DXOS_VERSION = "0.4.10-main.35b4a08";
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, Resource } from "@dxos/context";
4389
+ import { Context as Context10 } 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,11 +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 extends Resource {
4497
- constructor(storage, level, networkManager, signalManager, _runtimeParams) {
4498
- super();
4496
+ var ServiceContext = class {
4497
+ constructor(storage, networkManager, signalManager, _runtimeParams) {
4499
4498
  this.storage = storage;
4500
- this.level = level;
4501
4499
  this.networkManager = networkManager;
4502
4500
  this.signalManager = signalManager;
4503
4501
  this._runtimeParams = _runtimeParams;
@@ -4527,7 +4525,7 @@ var ServiceContext = class extends Resource {
4527
4525
  });
4528
4526
  this.identityManager = new IdentityManager(this.metadataStore, this.keyring, this.feedStore, this.spaceManager, this._runtimeParams);
4529
4527
  this.indexMetadata = new IndexMetadataStore({
4530
- db: level.sublevel("index-metadata")
4528
+ directory: storage.createDirectory("index-metadata")
4531
4529
  });
4532
4530
  this.automergeHost = new AutomergeHost({
4533
4531
  directory: storage.createDirectory("automerge"),
@@ -4544,11 +4542,11 @@ var ServiceContext = class extends Resource {
4544
4542
  this.invitations = new InvitationsHandler(this.networkManager);
4545
4543
  this._handlerFactories.set(Invitation6.Kind.DEVICE, () => new DeviceInvitationProtocol(this.keyring, () => this.identityManager.identity ?? failUndefined2(), this._acceptIdentity.bind(this)));
4546
4544
  }
4547
- async _open(ctx) {
4545
+ async open(ctx) {
4548
4546
  await this._checkStorageVersion();
4549
4547
  log12("opening...", void 0, {
4550
4548
  F: __dxlog_file15,
4551
- L: 156,
4549
+ L: 151,
4552
4550
  S: this,
4553
4551
  C: (f, a) => f(...a)
4554
4552
  });
@@ -4556,7 +4554,7 @@ var ServiceContext = class extends Resource {
4556
4554
  id: this._instanceId
4557
4555
  }), {
4558
4556
  F: __dxlog_file15,
4559
- L: 157,
4557
+ L: 152,
4560
4558
  S: this,
4561
4559
  C: (f, a) => f(...a)
4562
4560
  });
@@ -4572,21 +4570,21 @@ var ServiceContext = class extends Resource {
4572
4570
  id: this._instanceId
4573
4571
  }), {
4574
4572
  F: __dxlog_file15,
4575
- L: 167,
4573
+ L: 162,
4576
4574
  S: this,
4577
4575
  C: (f, a) => f(...a)
4578
4576
  });
4579
4577
  log12("opened", void 0, {
4580
4578
  F: __dxlog_file15,
4581
- L: 168,
4579
+ L: 163,
4582
4580
  S: this,
4583
4581
  C: (f, a) => f(...a)
4584
4582
  });
4585
4583
  }
4586
- async _close() {
4584
+ async close() {
4587
4585
  log12("closing...", void 0, {
4588
4586
  F: __dxlog_file15,
4589
- L: 172,
4587
+ L: 167,
4590
4588
  S: this,
4591
4589
  C: (f, a) => f(...a)
4592
4590
  });
@@ -4604,7 +4602,7 @@ var ServiceContext = class extends Resource {
4604
4602
  await this.indexer.destroy();
4605
4603
  log12("closed", void 0, {
4606
4604
  F: __dxlog_file15,
4607
- L: 185,
4605
+ L: 180,
4608
4606
  S: this,
4609
4607
  C: (f, a) => f(...a)
4610
4608
  });
@@ -4618,7 +4616,7 @@ var ServiceContext = class extends Resource {
4618
4616
  const factory = this._handlerFactories.get(invitation.kind);
4619
4617
  invariant14(factory, `Unknown invitation kind: ${invitation.kind}`, {
4620
4618
  F: __dxlog_file15,
4621
- L: 196,
4619
+ L: 191,
4622
4620
  S: this,
4623
4621
  A: [
4624
4622
  "factory",
@@ -4650,7 +4648,7 @@ var ServiceContext = class extends Resource {
4650
4648
  async _initialize(ctx) {
4651
4649
  log12("initializing spaces...", void 0, {
4652
4650
  F: __dxlog_file15,
4653
- L: 227,
4651
+ L: 222,
4654
4652
  S: this,
4655
4653
  C: (f, a) => f(...a)
4656
4654
  });
@@ -4673,7 +4671,7 @@ var ServiceContext = class extends Resource {
4673
4671
  this._handlerFactories.set(Invitation6.Kind.SPACE, (invitation) => {
4674
4672
  invariant14(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
4675
4673
  F: __dxlog_file15,
4676
- L: 251,
4674
+ L: 246,
4677
4675
  S: this,
4678
4676
  A: [
4679
4677
  "this.dataSpaceManager",
@@ -4697,7 +4695,7 @@ var ServiceContext = class extends Resource {
4697
4695
  details: assertion
4698
4696
  }, {
4699
4697
  F: __dxlog_file15,
4700
- L: 267,
4698
+ L: 262,
4701
4699
  S: this,
4702
4700
  C: (f, a) => f(...a)
4703
4701
  });
@@ -4708,7 +4706,7 @@ var ServiceContext = class extends Resource {
4708
4706
  details: assertion
4709
4707
  }, {
4710
4708
  F: __dxlog_file15,
4711
- L: 271,
4709
+ L: 266,
4712
4710
  S: this,
4713
4711
  C: (f, a) => f(...a)
4714
4712
  });
@@ -4719,7 +4717,7 @@ var ServiceContext = class extends Resource {
4719
4717
  details: assertion
4720
4718
  }, {
4721
4719
  F: __dxlog_file15,
4722
- L: 276,
4720
+ L: 271,
4723
4721
  S: this,
4724
4722
  C: (f, a) => f(...a)
4725
4723
  });
@@ -4730,7 +4728,7 @@ var ServiceContext = class extends Resource {
4730
4728
  } catch (err) {
4731
4729
  log12.catch(err, void 0, {
4732
4730
  F: __dxlog_file15,
4733
- L: 282,
4731
+ L: 277,
4734
4732
  S: this,
4735
4733
  C: (f, a) => f(...a)
4736
4734
  });
@@ -4742,7 +4740,7 @@ var ServiceContext = class extends Resource {
4742
4740
  };
4743
4741
  _ts_decorate6([
4744
4742
  Trace2.span()
4745
- ], ServiceContext.prototype, "_open", null);
4743
+ ], ServiceContext.prototype, "open", null);
4746
4744
  _ts_decorate6([
4747
4745
  Trace2.span()
4748
4746
  ], ServiceContext.prototype, "_initialize", null);
@@ -4900,27 +4898,14 @@ var isLocked = (lockPath) => {
4900
4898
  };
4901
4899
 
4902
4900
  // packages/sdk/client-services/src/packlets/storage/storage.ts
4903
- import { InvalidConfigError } from "@dxos/protocols";
4904
- import { Runtime as Runtime2 } from "@dxos/protocols/proto/dxos/config";
4905
- import { createStorage, StorageType } from "@dxos/random-access-storage";
4906
-
4907
- // packages/sdk/client-services/src/packlets/storage/util.ts
4908
4901
  import { DX_DATA } from "@dxos/client-protocol";
4902
+ import { InvalidConfigError } from "@dxos/protocols";
4909
4903
  import { Runtime } from "@dxos/protocols/proto/dxos/config";
4904
+ import { createStorage, StorageType } from "@dxos/random-access-storage";
4910
4905
  import { isNode as isNode2 } from "@dxos/util";
4911
- var getRootPath = (config) => {
4912
- const { dataRoot = isNode2() ? DX_DATA : "dxos/storage" } = config ?? {};
4913
- return `${dataRoot}/`;
4914
- };
4915
- var isPersistent = (config) => {
4916
- const { persistent = false } = config ?? {};
4917
- return config.dataStore !== void 0 && config.dataStore !== Runtime.Client.Storage.StorageDriver.RAM || persistent;
4918
- };
4919
-
4920
- // packages/sdk/client-services/src/packlets/storage/storage.ts
4921
- var StorageDriver = Runtime2.Client.Storage.StorageDriver;
4906
+ var StorageDriver = Runtime.Client.Storage.StorageDriver;
4922
4907
  var createStorageObjects = (config) => {
4923
- const { persistent = false, keyStore, dataStore } = config ?? {};
4908
+ const { persistent = false, keyStore, dataStore, dataRoot = isNode2() ? DX_DATA : "dxos/storage" } = config ?? {};
4924
4909
  if (persistent && dataStore === StorageDriver.RAM) {
4925
4910
  throw new InvalidConfigError("RAM storage cannot be used in persistent mode.");
4926
4911
  }
@@ -4936,7 +4921,7 @@ var createStorageObjects = (config) => {
4936
4921
  return {
4937
4922
  storage: createStorage({
4938
4923
  type: persistent ? toStorageType(dataStore) : StorageType.RAM,
4939
- root: getRootPath(config)
4924
+ root: `${dataRoot}/`
4940
4925
  })
4941
4926
  };
4942
4927
  };
@@ -4961,27 +4946,15 @@ var toStorageType = (type) => {
4961
4946
  }
4962
4947
  };
4963
4948
 
4964
- // packages/sdk/client-services/src/packlets/storage/level.ts
4965
- import { Level } from "level";
4966
- import path from "@dxos/node-std/path";
4967
- import { PublicKey as PublicKey11 } from "@dxos/keys";
4968
- var createLevel = async (config) => {
4969
- const persistent = isPersistent(config);
4970
- const storagePath = persistent ? getRootPath(config) : path.join("tmp", "level", PublicKey11.random().toHex());
4971
- const level = new Level(storagePath);
4972
- await level.open();
4973
- return level;
4974
- };
4975
-
4976
4949
  // packages/sdk/client-services/src/packlets/services/service-host.ts
4977
4950
  import { Event as Event9, synchronized as synchronized3 } from "@dxos/async";
4978
- import { clientServiceBundle, defaultKey, Properties } from "@dxos/client-protocol";
4951
+ import { Properties, clientServiceBundle, defaultKey } from "@dxos/client-protocol";
4979
4952
  import { Context as Context11 } from "@dxos/context";
4980
4953
  import { DataServiceImpl, encodeReference } from "@dxos/echo-pipeline";
4981
4954
  import * as E from "@dxos/echo-schema";
4982
4955
  import { IndexServiceImpl } from "@dxos/indexing";
4983
4956
  import { invariant as invariant16 } from "@dxos/invariant";
4984
- import { PublicKey as PublicKey13 } from "@dxos/keys";
4957
+ import { PublicKey as PublicKey12 } from "@dxos/keys";
4985
4958
  import { log as log15 } from "@dxos/log";
4986
4959
  import { WebsocketSignalManager } from "@dxos/messaging";
4987
4960
  import { NetworkManager, createSimplePeerTransportFactory } from "@dxos/network-manager";
@@ -5076,7 +5049,7 @@ var DevicesServiceImpl = class {
5076
5049
  // packages/sdk/client-services/src/packlets/logging/logging-service.ts
5077
5050
  import { Event as Event8 } from "@dxos/async";
5078
5051
  import { Stream as Stream12 } from "@dxos/codec-protobuf";
5079
- import { PublicKey as PublicKey12 } from "@dxos/keys";
5052
+ import { PublicKey as PublicKey11 } from "@dxos/keys";
5080
5053
  import { getContextFromEntry, log as log14 } from "@dxos/log";
5081
5054
  import { QueryLogsRequest } from "@dxos/protocols/proto/dxos/client/services";
5082
5055
  import { getDebugName, jsonify, numericalValues, tracer } from "@dxos/util";
@@ -5084,7 +5057,7 @@ var LoggingServiceImpl = class {
5084
5057
  constructor() {
5085
5058
  this._logs = new Event8();
5086
5059
  this._started = Date.now();
5087
- this._sessionId = PublicKey12.random().toHex();
5060
+ this._sessionId = PublicKey11.random().toHex();
5088
5061
  this._logProcessor = (_config, entry2) => {
5089
5062
  this._logs.emit(entry2);
5090
5063
  };
@@ -5179,12 +5152,12 @@ var LoggingServiceImpl = class {
5179
5152
  });
5180
5153
  }
5181
5154
  };
5182
- var matchFilter = (filter, level, path2, options) => {
5155
+ var matchFilter = (filter, level, path, options) => {
5183
5156
  switch (options) {
5184
5157
  case QueryLogsRequest.MatchingOptions.INCLUSIVE:
5185
- return level >= filter.level && (!filter.pattern || path2.includes(filter.pattern));
5158
+ return level >= filter.level && (!filter.pattern || path.includes(filter.pattern));
5186
5159
  case QueryLogsRequest.MatchingOptions.EXPLICIT:
5187
- return level === filter.level && (!filter.pattern || path2.includes(filter.pattern));
5160
+ return level === filter.level && (!filter.pattern || path.includes(filter.pattern));
5188
5161
  }
5189
5162
  };
5190
5163
  var shouldLog = (entry2, request) => {
@@ -5385,7 +5358,7 @@ var ClientServicesHost = class {
5385
5358
  initialize({ config, ...options }) {
5386
5359
  invariant16(!this._open, "service host is open", {
5387
5360
  F: __dxlog_file18,
5388
- L: 182,
5361
+ L: 179,
5389
5362
  S: this,
5390
5363
  A: [
5391
5364
  "!this._open",
@@ -5394,14 +5367,14 @@ var ClientServicesHost = class {
5394
5367
  });
5395
5368
  log15("initializing...", void 0, {
5396
5369
  F: __dxlog_file18,
5397
- L: 183,
5370
+ L: 180,
5398
5371
  S: this,
5399
5372
  C: (f, a) => f(...a)
5400
5373
  });
5401
5374
  if (config) {
5402
5375
  invariant16(!this._config, "config already set", {
5403
5376
  F: __dxlog_file18,
5404
- L: 186,
5377
+ L: 183,
5405
5378
  S: this,
5406
5379
  A: [
5407
5380
  "!this._config",
@@ -5416,7 +5389,7 @@ var ClientServicesHost = class {
5416
5389
  if (!options.signalManager) {
5417
5390
  log15.warn("running signaling without telemetry metadata.", void 0, {
5418
5391
  F: __dxlog_file18,
5419
- L: 194,
5392
+ L: 191,
5420
5393
  S: this,
5421
5394
  C: (f, a) => f(...a)
5422
5395
  });
@@ -5427,7 +5400,7 @@ var ClientServicesHost = class {
5427
5400
  this._signalManager = signalManager;
5428
5401
  invariant16(!this._networkManager, "network manager already set", {
5429
5402
  F: __dxlog_file18,
5430
- L: 205,
5403
+ L: 202,
5431
5404
  S: this,
5432
5405
  A: [
5433
5406
  "!this._networkManager",
@@ -5441,7 +5414,7 @@ var ClientServicesHost = class {
5441
5414
  });
5442
5415
  log15("initialized", void 0, {
5443
5416
  F: __dxlog_file18,
5444
- L: 212,
5417
+ L: 209,
5445
5418
  S: this,
5446
5419
  C: (f, a) => f(...a)
5447
5420
  });
@@ -5450,18 +5423,18 @@ var ClientServicesHost = class {
5450
5423
  if (this._open) {
5451
5424
  return;
5452
5425
  }
5453
- const traceId = PublicKey13.random().toHex();
5426
+ const traceId = PublicKey12.random().toHex();
5454
5427
  log15.trace("dxos.client-services.host.open", trace9.begin({
5455
5428
  id: traceId
5456
5429
  }), {
5457
5430
  F: __dxlog_file18,
5458
- L: 223,
5431
+ L: 220,
5459
5432
  S: this,
5460
5433
  C: (f, a) => f(...a)
5461
5434
  });
5462
5435
  invariant16(this._config, "config not set", {
5463
5436
  F: __dxlog_file18,
5464
- L: 225,
5437
+ L: 222,
5465
5438
  S: this,
5466
5439
  A: [
5467
5440
  "this._config",
@@ -5470,7 +5443,7 @@ var ClientServicesHost = class {
5470
5443
  });
5471
5444
  invariant16(this._storage, "storage not set", {
5472
5445
  F: __dxlog_file18,
5473
- L: 226,
5446
+ L: 223,
5474
5447
  S: this,
5475
5448
  A: [
5476
5449
  "this._storage",
@@ -5479,7 +5452,7 @@ var ClientServicesHost = class {
5479
5452
  });
5480
5453
  invariant16(this._signalManager, "signal manager not set", {
5481
5454
  F: __dxlog_file18,
5482
- L: 227,
5455
+ L: 224,
5483
5456
  S: this,
5484
5457
  A: [
5485
5458
  "this._signalManager",
@@ -5488,7 +5461,7 @@ var ClientServicesHost = class {
5488
5461
  });
5489
5462
  invariant16(this._networkManager, "network manager not set", {
5490
5463
  F: __dxlog_file18,
5491
- L: 228,
5464
+ L: 225,
5492
5465
  S: this,
5493
5466
  A: [
5494
5467
  "this._networkManager",
@@ -5500,16 +5473,13 @@ var ClientServicesHost = class {
5500
5473
  lockKey: this._resourceLock?.lockKey
5501
5474
  }, {
5502
5475
  F: __dxlog_file18,
5503
- L: 231,
5476
+ L: 228,
5504
5477
  S: this,
5505
5478
  C: (f, a) => f(...a)
5506
5479
  });
5507
- if (!this._level) {
5508
- this._level = await createLevel(this._config.get("runtime.client.storage", {}));
5509
- }
5510
5480
  await this._resourceLock?.acquire();
5511
5481
  await this._loggingService.open();
5512
- this._serviceContext = new ServiceContext(this._storage, this._level, this._networkManager, this._signalManager, this._runtimeParams);
5482
+ this._serviceContext = new ServiceContext(this._storage, this._networkManager, this._signalManager, this._runtimeParams);
5513
5483
  this._serviceRegistry.setServices({
5514
5484
  SystemService: this._systemService,
5515
5485
  IdentityService: new IdentityServiceImpl((params) => this._createIdentity(params), this._serviceContext.identityManager, this._serviceContext.keyring, (profile) => this._serviceContext.broadcastProfileUpdate(profile)),
@@ -5537,7 +5507,7 @@ var ClientServicesHost = class {
5537
5507
  await this._serviceContext.open(ctx);
5538
5508
  invariant16(this.serviceRegistry.services.InvitationsService, void 0, {
5539
5509
  F: __dxlog_file18,
5540
- L: 297,
5510
+ L: 289,
5541
5511
  S: this,
5542
5512
  A: [
5543
5513
  "this.serviceRegistry.services.InvitationsService",
@@ -5549,7 +5519,7 @@ var ClientServicesHost = class {
5549
5519
  count: loadedInvitations.invitations?.length
5550
5520
  }, {
5551
5521
  F: __dxlog_file18,
5552
- L: 300,
5522
+ L: 292,
5553
5523
  S: this,
5554
5524
  C: (f, a) => f(...a)
5555
5525
  });
@@ -5571,7 +5541,7 @@ var ClientServicesHost = class {
5571
5541
  deviceKey
5572
5542
  }, {
5573
5543
  F: __dxlog_file18,
5574
- L: 317,
5544
+ L: 309,
5575
5545
  S: this,
5576
5546
  C: (f, a) => f(...a)
5577
5547
  });
@@ -5579,7 +5549,7 @@ var ClientServicesHost = class {
5579
5549
  id: traceId
5580
5550
  }), {
5581
5551
  F: __dxlog_file18,
5582
- L: 318,
5552
+ L: 310,
5583
5553
  S: this,
5584
5554
  C: (f, a) => f(...a)
5585
5555
  });
@@ -5593,7 +5563,7 @@ var ClientServicesHost = class {
5593
5563
  deviceKey
5594
5564
  }, {
5595
5565
  F: __dxlog_file18,
5596
- L: 329,
5566
+ L: 321,
5597
5567
  S: this,
5598
5568
  C: (f, a) => f(...a)
5599
5569
  });
@@ -5603,31 +5573,30 @@ var ClientServicesHost = class {
5603
5573
  });
5604
5574
  await this._loggingService.close();
5605
5575
  await this._serviceContext.close();
5606
- await this._level?.close();
5607
5576
  this._open = false;
5608
5577
  this._statusUpdate.emit();
5609
5578
  log15("closed", {
5610
5579
  deviceKey
5611
5580
  }, {
5612
5581
  F: __dxlog_file18,
5613
- L: 337,
5582
+ L: 328,
5614
5583
  S: this,
5615
5584
  C: (f, a) => f(...a)
5616
5585
  });
5617
5586
  }
5618
5587
  async reset() {
5619
- const traceId = PublicKey13.random().toHex();
5588
+ const traceId = PublicKey12.random().toHex();
5620
5589
  log15.trace("dxos.sdk.client-services-host.reset", trace9.begin({
5621
5590
  id: traceId
5622
5591
  }), {
5623
5592
  F: __dxlog_file18,
5624
- L: 342,
5593
+ L: 333,
5625
5594
  S: this,
5626
5595
  C: (f, a) => f(...a)
5627
5596
  });
5628
5597
  log15("resetting...", void 0, {
5629
5598
  F: __dxlog_file18,
5630
- L: 344,
5599
+ L: 335,
5631
5600
  S: this,
5632
5601
  C: (f, a) => f(...a)
5633
5602
  });
@@ -5635,7 +5604,7 @@ var ClientServicesHost = class {
5635
5604
  await this._storage.reset();
5636
5605
  log15("reset", void 0, {
5637
5606
  F: __dxlog_file18,
5638
- L: 347,
5607
+ L: 338,
5639
5608
  S: this,
5640
5609
  C: (f, a) => f(...a)
5641
5610
  });
@@ -5643,7 +5612,7 @@ var ClientServicesHost = class {
5643
5612
  id: traceId
5644
5613
  }), {
5645
5614
  F: __dxlog_file18,
5646
- L: 348,
5615
+ L: 339,
5647
5616
  S: this,
5648
5617
  C: (f, a) => f(...a)
5649
5618
  });
@@ -5656,7 +5625,7 @@ var ClientServicesHost = class {
5656
5625
  const automergeIndex = space.automergeSpaceState.rootUrl;
5657
5626
  invariant16(automergeIndex, void 0, {
5658
5627
  F: __dxlog_file18,
5659
- L: 360,
5628
+ L: 351,
5660
5629
  S: this,
5661
5630
  A: [
5662
5631
  "automergeIndex",
@@ -5676,7 +5645,7 @@ var ClientServicesHost = class {
5676
5645
  keys: []
5677
5646
  }
5678
5647
  };
5679
- const propertiesId = PublicKey13.random().toHex();
5648
+ const propertiesId = PublicKey12.random().toHex();
5680
5649
  document.change((doc) => {
5681
5650
  assignDeep2(doc, [
5682
5651
  "objects",
@@ -5737,7 +5706,6 @@ export {
5737
5706
  Lock,
5738
5707
  isLocked,
5739
5708
  createStorageObjects,
5740
- createLevel,
5741
5709
  ClientServicesHost
5742
5710
  };
5743
- //# sourceMappingURL=chunk-WGCEYMNX.mjs.map
5711
+ //# sourceMappingURL=chunk-24G2JACZ.mjs.map