@dxos/client-services 0.3.3-main.e0ded2e → 0.3.3-main.f2ca85a

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.
@@ -2538,6 +2538,7 @@ var ClientRpcServer = class {
2538
2538
  };
2539
2539
 
2540
2540
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2541
+ var import_async10 = require("@dxos/async");
2541
2542
  var import_codec_protobuf10 = require("@dxos/codec-protobuf");
2542
2543
  var import_credentials9 = require("@dxos/credentials");
2543
2544
  var import_document_model = require("@dxos/document-model");
@@ -2576,7 +2577,7 @@ var getPlatform = () => {
2576
2577
  };
2577
2578
 
2578
2579
  // packages/sdk/client-services/src/version.ts
2579
- var DXOS_VERSION = "0.3.3-main.e0ded2e";
2580
+ var DXOS_VERSION = "0.3.3-main.f2ca85a";
2580
2581
 
2581
2582
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2582
2583
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -2595,7 +2596,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2595
2596
  {
2596
2597
  (0, import_invariant9.invariant)(clientServices.LoggingService, "SystemService is not available.", {
2597
2598
  F: __dxlog_file10,
2598
- L: 88,
2599
+ L: 93,
2599
2600
  S: void 0,
2600
2601
  A: [
2601
2602
  "clientServices.LoggingService",
@@ -2628,6 +2629,19 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2628
2629
  bytes,
2629
2630
  length
2630
2631
  }));
2632
+ const status = await (0, import_codec_protobuf10.getFirstStreamValue)(clientServices.NetworkService.queryStatus(), {
2633
+ timeout: DEFAULT_TIMEOUT
2634
+ }).catch(() => void 0);
2635
+ diagnostics.networkStatus = status;
2636
+ const swarmInfoDone = new import_async10.Trigger();
2637
+ serviceContext.networkManager.connectionLog?.update.on(async () => {
2638
+ const swarms = serviceContext.networkManager.connectionLog?.swarms;
2639
+ diagnostics.swarms = swarms;
2640
+ await swarmInfoDone.wake();
2641
+ });
2642
+ await swarmInfoDone.wait({
2643
+ timeout: DEFAULT_TIMEOUT
2644
+ });
2631
2645
  }
2632
2646
  diagnostics.config = config.values;
2633
2647
  return diagnostics;
@@ -2641,7 +2655,7 @@ var getProperties = (space) => {
2641
2655
  } catch (err) {
2642
2656
  import_log8.log.warn(err.message, void 0, {
2643
2657
  F: __dxlog_file10,
2644
- L: 145,
2658
+ L: 168,
2645
2659
  S: void 0,
2646
2660
  C: (f, a) => f(...a)
2647
2661
  });
@@ -2697,7 +2711,7 @@ var getSpaceStats = async (space) => {
2697
2711
  };
2698
2712
 
2699
2713
  // packages/sdk/client-services/src/packlets/services/service-context.ts
2700
- var import_async14 = require("@dxos/async");
2714
+ var import_async15 = require("@dxos/async");
2701
2715
  var import_context9 = require("@dxos/context");
2702
2716
  var import_credentials14 = require("@dxos/credentials");
2703
2717
  var import_debug7 = require("@dxos/debug");
@@ -2714,7 +2728,7 @@ var import_tracing4 = require("@dxos/tracing");
2714
2728
  var import_util7 = require("@dxos/util");
2715
2729
 
2716
2730
  // packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
2717
- var import_async12 = require("@dxos/async");
2731
+ var import_async13 = require("@dxos/async");
2718
2732
  var import_context8 = require("@dxos/context");
2719
2733
  var import_credentials13 = require("@dxos/credentials");
2720
2734
  var import_invariant11 = require("@dxos/invariant");
@@ -2726,7 +2740,7 @@ var import_teleport_extension_gossip = require("@dxos/teleport-extension-gossip"
2726
2740
  var import_util6 = require("@dxos/util");
2727
2741
 
2728
2742
  // packages/sdk/client-services/src/packlets/spaces/data-space.ts
2729
- var import_async11 = require("@dxos/async");
2743
+ var import_async12 = require("@dxos/async");
2730
2744
  var import_client_protocol3 = require("@dxos/client-protocol");
2731
2745
  var import_context7 = require("@dxos/context");
2732
2746
  var import_debug4 = require("@dxos/debug");
@@ -2741,7 +2755,7 @@ var import_tracing3 = require("@dxos/tracing");
2741
2755
  var import_util5 = require("@dxos/util");
2742
2756
 
2743
2757
  // packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts
2744
- var import_async10 = require("@dxos/async");
2758
+ var import_async11 = require("@dxos/async");
2745
2759
  var import_context6 = require("@dxos/context");
2746
2760
  var import_invariant10 = require("@dxos/invariant");
2747
2761
  var import_keys8 = require("@dxos/keys");
@@ -2757,7 +2771,7 @@ var WRITER_NOT_SET_ERROR_CODE = "WRITER_NOT_SET";
2757
2771
  var NotarizationPlugin = class {
2758
2772
  constructor() {
2759
2773
  this._ctx = new import_context6.Context();
2760
- this._extensionOpened = new import_async10.Event();
2774
+ this._extensionOpened = new import_async11.Event();
2761
2775
  this._extensions = /* @__PURE__ */ new Set();
2762
2776
  this._processedCredentials = new import_util4.ComplexSet(import_keys8.PublicKey.hash);
2763
2777
  this._processCredentialsTriggers = new import_util4.ComplexMap(import_keys8.PublicKey.hash);
@@ -2791,7 +2805,7 @@ var NotarizationPlugin = class {
2791
2805
  "'Credentials must have an id'"
2792
2806
  ]
2793
2807
  });
2794
- const errors = new import_async10.Trigger();
2808
+ const errors = new import_async11.Trigger();
2795
2809
  const ctx = this._ctx.derive({
2796
2810
  onError: (err) => {
2797
2811
  import_log9.log.warn("Notarization error", {
@@ -2808,7 +2822,7 @@ var NotarizationPlugin = class {
2808
2822
  });
2809
2823
  opCtx?.onDispose(() => ctx.dispose());
2810
2824
  if (timeout !== 0) {
2811
- (0, import_async10.scheduleTask)(ctx, () => {
2825
+ (0, import_async11.scheduleTask)(ctx, () => {
2812
2826
  import_log9.log.warn("Notarization timeout", {
2813
2827
  timeout,
2814
2828
  peers: Array.from(this._extensions).map((extension) => extension.remotePeerId)
@@ -2819,12 +2833,12 @@ var NotarizationPlugin = class {
2819
2833
  C: (f, a) => f(...a)
2820
2834
  });
2821
2835
  void ctx.dispose();
2822
- errors.throw(new import_async10.TimeoutError(timeout, "Notarization timed out"));
2836
+ errors.throw(new import_async11.TimeoutError(timeout, "Notarization timed out"));
2823
2837
  }, timeout);
2824
2838
  }
2825
2839
  const allNotarized = Promise.all(credentials.map((credential) => this._waitUntilProcessed(credential.id)));
2826
2840
  const peersTried = /* @__PURE__ */ new Set();
2827
- const notarizeTask = new import_async10.DeferredTask(ctx, async () => {
2841
+ const notarizeTask = new import_async11.DeferredTask(ctx, async () => {
2828
2842
  try {
2829
2843
  if (this._extensions.size === 0) {
2830
2844
  return;
@@ -2842,7 +2856,7 @@ var NotarizationPlugin = class {
2842
2856
  C: (f, a) => f(...a)
2843
2857
  });
2844
2858
  peersTried.clear();
2845
- (0, import_async10.scheduleTask)(ctx, () => notarizeTask.schedule(), retryTimeout);
2859
+ (0, import_async11.scheduleTask)(ctx, () => notarizeTask.schedule(), retryTimeout);
2846
2860
  return;
2847
2861
  }
2848
2862
  peersTried.add(peer);
@@ -2864,7 +2878,7 @@ var NotarizationPlugin = class {
2864
2878
  S: this,
2865
2879
  C: (f, a) => f(...a)
2866
2880
  });
2867
- await (0, import_async10.sleep)(successDelay);
2881
+ await (0, import_async11.sleep)(successDelay);
2868
2882
  } catch (err) {
2869
2883
  if (!ctx.disposed && !err.message.includes(WRITER_NOT_SET_ERROR_CODE)) {
2870
2884
  import_log9.log.warn("error notarizing (recoverable)", err, {
@@ -2922,7 +2936,7 @@ var NotarizationPlugin = class {
2922
2936
  if (this._processedCredentials.has(id)) {
2923
2937
  return;
2924
2938
  }
2925
- await (0, import_util4.entry)(this._processCredentialsTriggers, id).orInsert(new import_async10.Trigger()).value.wait();
2939
+ await (0, import_util4.entry)(this._processCredentialsTriggers, id).orInsert(new import_async11.Trigger()).value.wait();
2926
2940
  }
2927
2941
  /**
2928
2942
  * Requests from other peers to notarize credentials.
@@ -3030,7 +3044,7 @@ var DataSpace = class DataSpace2 {
3030
3044
  * Error for _state === SpaceState.ERROR.
3031
3045
  */
3032
3046
  this.error = void 0;
3033
- this.stateUpdate = new import_async11.Event();
3047
+ this.stateUpdate = new import_async12.Event();
3034
3048
  this.metrics = {};
3035
3049
  this._inner = params.inner;
3036
3050
  this._inner.stateUpdate.on(this._ctx, () => this.stateUpdate.emit());
@@ -3136,7 +3150,7 @@ var DataSpace = class DataSpace2 {
3136
3150
  * Initialize the data pipeline in a separate task.
3137
3151
  */
3138
3152
  initializeDataPipelineAsync() {
3139
- (0, import_async11.scheduleTask)(this._ctx, async () => {
3153
+ (0, import_async12.scheduleTask)(this._ctx, async () => {
3140
3154
  try {
3141
3155
  this.metrics.pipelineInitBegin = /* @__PURE__ */ new Date();
3142
3156
  await this.initializeDataPipeline();
@@ -3186,7 +3200,7 @@ var DataSpace = class DataSpace2 {
3186
3200
  C: (f, a) => f(...a)
3187
3201
  });
3188
3202
  await this._initializeAndReadControlPipeline();
3189
- await (0, import_async11.sleep)(1);
3203
+ await (0, import_async12.sleep)(1);
3190
3204
  await this._inner.initializeDataPipeline();
3191
3205
  this.metrics.dataPipelineOpen = /* @__PURE__ */ new Date();
3192
3206
  await (0, import_context7.cancelWithContext)(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
@@ -3342,10 +3356,10 @@ var DataSpace = class DataSpace2 {
3342
3356
  }
3343
3357
  };
3344
3358
  _ts_decorate3([
3345
- import_async11.synchronized
3359
+ import_async12.synchronized
3346
3360
  ], DataSpace.prototype, "open", null);
3347
3361
  _ts_decorate3([
3348
- import_async11.synchronized
3362
+ import_async12.synchronized
3349
3363
  ], DataSpace.prototype, "close", null);
3350
3364
  _ts_decorate3([
3351
3365
  import_tracing3.trace.span({
@@ -3361,13 +3375,13 @@ _ts_decorate3([
3361
3375
  (0, import_debug4.timed)(1e4)
3362
3376
  ], DataSpace.prototype, "_createWritableFeeds", null);
3363
3377
  _ts_decorate3([
3364
- import_async11.synchronized
3378
+ import_async12.synchronized
3365
3379
  ], DataSpace.prototype, "activate", null);
3366
3380
  _ts_decorate3([
3367
- import_async11.synchronized
3381
+ import_async12.synchronized
3368
3382
  ], DataSpace.prototype, "deactivate", null);
3369
3383
  DataSpace = _ts_decorate3([
3370
- (0, import_async11.trackLeaks)("open", "close")
3384
+ (0, import_async12.trackLeaks)("open", "close")
3371
3385
  ], DataSpace);
3372
3386
 
3373
3387
  // packages/sdk/client-services/src/packlets/spaces/genesis.ts
@@ -3460,7 +3474,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3460
3474
  this._signingContext = _signingContext;
3461
3475
  this._feedStore = _feedStore;
3462
3476
  this._ctx = new import_context8.Context();
3463
- this.updated = new import_async12.Event();
3477
+ this.updated = new import_async13.Event();
3464
3478
  this._spaces = new import_util6.ComplexMap(import_keys10.PublicKey.hash);
3465
3479
  this._isOpen = false;
3466
3480
  this._instanceId = import_keys10.PublicKey.random().toHex();
@@ -3757,23 +3771,23 @@ var DataSpaceManager = class DataSpaceManager2 {
3757
3771
  }
3758
3772
  };
3759
3773
  _ts_decorate4([
3760
- import_async12.synchronized
3774
+ import_async13.synchronized
3761
3775
  ], DataSpaceManager.prototype, "open", null);
3762
3776
  _ts_decorate4([
3763
- import_async12.synchronized
3777
+ import_async13.synchronized
3764
3778
  ], DataSpaceManager.prototype, "close", null);
3765
3779
  _ts_decorate4([
3766
- import_async12.synchronized
3780
+ import_async13.synchronized
3767
3781
  ], DataSpaceManager.prototype, "createSpace", null);
3768
3782
  _ts_decorate4([
3769
- import_async12.synchronized
3783
+ import_async13.synchronized
3770
3784
  ], DataSpaceManager.prototype, "acceptSpace", null);
3771
3785
  DataSpaceManager = _ts_decorate4([
3772
- (0, import_async12.trackLeaks)("open", "close")
3786
+ (0, import_async13.trackLeaks)("open", "close")
3773
3787
  ], DataSpaceManager);
3774
3788
 
3775
3789
  // packages/sdk/client-services/src/packlets/spaces/spaces-service.ts
3776
- var import_async13 = require("@dxos/async");
3790
+ var import_async14 = require("@dxos/async");
3777
3791
  var import_codec_protobuf11 = require("@dxos/codec-protobuf");
3778
3792
  var import_debug6 = require("@dxos/debug");
3779
3793
  var import_invariant12 = require("@dxos/invariant");
@@ -3814,7 +3828,7 @@ var SpacesServiceImpl = class {
3814
3828
  }
3815
3829
  querySpaces() {
3816
3830
  return new import_codec_protobuf11.Stream(({ next, ctx }) => {
3817
- const scheduler = new import_async13.UpdateScheduler(ctx, async () => {
3831
+ const scheduler = new import_async14.UpdateScheduler(ctx, async () => {
3818
3832
  const dataSpaceManager = await this._getDataSpaceManager();
3819
3833
  const spaces = Array.from(dataSpaceManager.spaces.values()).map((space) => this._serializeSpace(space));
3820
3834
  (0, import_log12.log)("update", {
@@ -3831,9 +3845,9 @@ var SpacesServiceImpl = class {
3831
3845
  }, {
3832
3846
  maxFrequency: process.env.NODE_ENV === "test" ? void 0 : 2
3833
3847
  });
3834
- (0, import_async13.scheduleTask)(ctx, async () => {
3848
+ (0, import_async14.scheduleTask)(ctx, async () => {
3835
3849
  const dataSpaceManager = await this._getDataSpaceManager();
3836
- const subscriptions = new import_async13.EventSubscriptions();
3850
+ const subscriptions = new import_async14.EventSubscriptions();
3837
3851
  ctx.onDispose(() => subscriptions.clear());
3838
3852
  const subscribeSpaces = () => {
3839
3853
  subscriptions.clear();
@@ -3868,7 +3882,7 @@ var SpacesServiceImpl = class {
3868
3882
  }
3869
3883
  subscribeMessages({ spaceKey, channel }) {
3870
3884
  return new import_codec_protobuf11.Stream(({ ctx, next }) => {
3871
- (0, import_async13.scheduleTask)(ctx, async () => {
3885
+ (0, import_async14.scheduleTask)(ctx, async () => {
3872
3886
  const dataSpaceManager = await this._getDataSpaceManager();
3873
3887
  const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
3874
3888
  const handle = space.listen(getChannelId(channel), (message) => {
@@ -3887,7 +3901,7 @@ var SpacesServiceImpl = class {
3887
3901
  }
3888
3902
  };
3889
3903
  ctx.onDispose(() => space.spaceState.removeCredentialProcessor(processor));
3890
- (0, import_async13.scheduleTask)(ctx, async () => {
3904
+ (0, import_async14.scheduleTask)(ctx, async () => {
3891
3905
  await space.spaceState.addCredentialProcessor(processor);
3892
3906
  if (noTail) {
3893
3907
  close();
@@ -4011,7 +4025,7 @@ var ServiceContext = class ServiceContext2 {
4011
4025
  this.networkManager = networkManager;
4012
4026
  this.signalManager = signalManager;
4013
4027
  this.modelFactory = modelFactory;
4014
- this.initialized = new import_async14.Trigger();
4028
+ this.initialized = new import_async15.Trigger();
4015
4029
  this.dataServiceSubscriptions = new import_echo_pipeline2.DataServiceSubscriptions();
4016
4030
  this._handlerFactories = /* @__PURE__ */ new Map();
4017
4031
  this._instanceId = import_keys11.PublicKey.random().toHex();
@@ -4240,7 +4254,7 @@ ServiceContext = _ts_decorate5([
4240
4254
  ], ServiceContext);
4241
4255
 
4242
4256
  // packages/sdk/client-services/src/packlets/services/service-host.ts
4243
- var import_async17 = require("@dxos/async");
4257
+ var import_async18 = require("@dxos/async");
4244
4258
  var import_client_protocol5 = require("@dxos/client-protocol");
4245
4259
  var import_context10 = require("@dxos/context");
4246
4260
  var import_document_model2 = require("@dxos/document-model");
@@ -4283,7 +4297,7 @@ var ServiceRegistry = class {
4283
4297
  };
4284
4298
 
4285
4299
  // packages/sdk/client-services/src/packlets/devices/devices-service.ts
4286
- var import_async15 = require("@dxos/async");
4300
+ var import_async16 = require("@dxos/async");
4287
4301
  var import_codec_protobuf12 = require("@dxos/codec-protobuf");
4288
4302
  var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
4289
4303
  var DevicesServiceImpl = class {
@@ -4311,7 +4325,7 @@ var DevicesServiceImpl = class {
4311
4325
  });
4312
4326
  }
4313
4327
  };
4314
- const subscriptions = new import_async15.EventSubscriptions();
4328
+ const subscriptions = new import_async16.EventSubscriptions();
4315
4329
  subscriptions.add(this._identityManager.stateUpdate.on(() => {
4316
4330
  update();
4317
4331
  if (this._identityManager.identity) {
@@ -4386,14 +4400,14 @@ _ts_decorate6([
4386
4400
  var isLocked = (lockPath) => import_lock_file.LockFile.isLocked(lockPath);
4387
4401
 
4388
4402
  // packages/sdk/client-services/src/packlets/logging/logging-service.ts
4389
- var import_async16 = require("@dxos/async");
4403
+ var import_async17 = require("@dxos/async");
4390
4404
  var import_codec_protobuf13 = require("@dxos/codec-protobuf");
4391
4405
  var import_log15 = require("@dxos/log");
4392
4406
  var import_services12 = require("@dxos/protocols/proto/dxos/client/services");
4393
4407
  var import_util8 = require("@dxos/util");
4394
4408
  var LoggingServiceImpl = class {
4395
4409
  constructor() {
4396
- this._logs = new import_async16.Event();
4410
+ this._logs = new import_async17.Event();
4397
4411
  this._started = /* @__PURE__ */ new Date();
4398
4412
  this._logProcessor = (_config, entry2) => {
4399
4413
  this._logs.emit(entry2);
@@ -4676,7 +4690,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4676
4690
  callbacks
4677
4691
  } = {}) {
4678
4692
  this._tracingService = import_tracing5.TRACE_PROCESSOR.createTraceSender();
4679
- this._statusUpdate = new import_async17.Event();
4693
+ this._statusUpdate = new import_async18.Event();
4680
4694
  this._opening = false;
4681
4695
  this._open = false;
4682
4696
  this._storage = storage;
@@ -5007,11 +5021,11 @@ _ts_decorate7([
5007
5021
  import_tracing5.trace.info()
5008
5022
  ], ClientServicesHost.prototype, "_open", void 0);
5009
5023
  _ts_decorate7([
5010
- import_async17.synchronized,
5024
+ import_async18.synchronized,
5011
5025
  import_tracing5.trace.span()
5012
5026
  ], ClientServicesHost.prototype, "open", null);
5013
5027
  _ts_decorate7([
5014
- import_async17.synchronized,
5028
+ import_async18.synchronized,
5015
5029
  import_tracing5.trace.span()
5016
5030
  ], ClientServicesHost.prototype, "close", null);
5017
5031
  ClientServicesHost = _ts_decorate7([
@@ -5019,7 +5033,7 @@ ClientServicesHost = _ts_decorate7([
5019
5033
  ], ClientServicesHost);
5020
5034
 
5021
5035
  // packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts
5022
- var import_async19 = require("@dxos/async");
5036
+ var import_async20 = require("@dxos/async");
5023
5037
  var import_client_protocol7 = require("@dxos/client-protocol");
5024
5038
  var import_context11 = require("@dxos/context");
5025
5039
  var import_log17 = require("@dxos/log");
@@ -5028,7 +5042,7 @@ var import_network_manager3 = require("@dxos/network-manager");
5028
5042
  var import_util11 = require("@dxos/util");
5029
5043
 
5030
5044
  // packages/sdk/client-services/src/packlets/vault/shell-runtime.ts
5031
- var import_async18 = require("@dxos/async");
5045
+ var import_async19 = require("@dxos/async");
5032
5046
  var import_client_protocol6 = require("@dxos/client-protocol");
5033
5047
  var import_invariant16 = require("@dxos/invariant");
5034
5048
  var import_iframe = require("@dxos/protocols/proto/dxos/iframe");
@@ -5037,7 +5051,7 @@ var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/s
5037
5051
  var ShellRuntimeImpl = class {
5038
5052
  constructor(_port) {
5039
5053
  this._port = _port;
5040
- this.layoutUpdate = new import_async18.Event();
5054
+ this.layoutUpdate = new import_async19.Event();
5041
5055
  this._layout = import_iframe.ShellLayout.DEFAULT;
5042
5056
  }
5043
5057
  get layout() {
@@ -5110,7 +5124,7 @@ var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/s
5110
5124
  var LOCK_KEY = "DXOS_RESOURCE_LOCK";
5111
5125
  var IFrameHostRuntime = class {
5112
5126
  constructor({ config, origin, appPort, shellPort }) {
5113
- this._ready = new import_async19.Trigger();
5127
+ this._ready = new import_async20.Trigger();
5114
5128
  this._configProvider = config;
5115
5129
  this.origin = origin;
5116
5130
  this._appPort = appPort;
@@ -5214,7 +5228,7 @@ _ts_decorate8([
5214
5228
  ], IFrameHostRuntime.prototype, "origin", void 0);
5215
5229
 
5216
5230
  // packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts
5217
- var import_async20 = require("@dxos/async");
5231
+ var import_async21 = require("@dxos/async");
5218
5232
  var import_client_protocol8 = require("@dxos/client-protocol");
5219
5233
  var import_log18 = require("@dxos/log");
5220
5234
  var import_network_manager4 = require("@dxos/network-manager");
@@ -5225,7 +5239,7 @@ var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/s
5225
5239
  var IFrameProxyRuntime = class {
5226
5240
  constructor({ config, systemPort, shellPort }) {
5227
5241
  this._id = String(Math.floor(Math.random() * 1e6));
5228
- this._release = new import_async20.Trigger();
5242
+ this._release = new import_async21.Trigger();
5229
5243
  this._configProvider = config;
5230
5244
  this._systemPort = systemPort;
5231
5245
  this._shellPort = shellPort;
@@ -5253,8 +5267,8 @@ var IFrameProxyRuntime = class {
5253
5267
  let lockKey;
5254
5268
  if (typeof navigator !== "undefined") {
5255
5269
  lockKey = this._lockKey(origin);
5256
- this._release = new import_async20.Trigger();
5257
- const ready = new import_async20.Trigger();
5270
+ this._release = new import_async21.Trigger();
5271
+ const ready = new import_async21.Trigger();
5258
5272
  void navigator.locks.request(lockKey, async () => {
5259
5273
  ready.wake();
5260
5274
  await this._release.wait();
@@ -5290,14 +5304,14 @@ var IFrameProxyRuntime = class {
5290
5304
  };
5291
5305
 
5292
5306
  // packages/sdk/client-services/src/packlets/vault/worker-runtime.ts
5293
- var import_async22 = require("@dxos/async");
5307
+ var import_async23 = require("@dxos/async");
5294
5308
  var import_context12 = require("@dxos/context");
5295
5309
  var import_log20 = require("@dxos/log");
5296
5310
  var import_messaging3 = require("@dxos/messaging");
5297
5311
  var import_network_manager5 = require("@dxos/network-manager");
5298
5312
 
5299
5313
  // packages/sdk/client-services/src/packlets/vault/worker-session.ts
5300
- var import_async21 = require("@dxos/async");
5314
+ var import_async22 = require("@dxos/async");
5301
5315
  var import_client_protocol9 = require("@dxos/client-protocol");
5302
5316
  var import_invariant17 = require("@dxos/invariant");
5303
5317
  var import_log19 = require("@dxos/log");
@@ -5316,7 +5330,7 @@ function _ts_decorate9(decorators, target, key, desc) {
5316
5330
  var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-session.ts";
5317
5331
  var WorkerSession = class {
5318
5332
  constructor({ serviceHost, systemPort, appPort, shellPort, readySignal }) {
5319
- this._startTrigger = new import_async21.Trigger();
5333
+ this._startTrigger = new import_async22.Trigger();
5320
5334
  this.onClose = new import_util13.Callback();
5321
5335
  (0, import_invariant17.invariant)(serviceHost, void 0, {
5322
5336
  F: __dxlog_file21,
@@ -5444,7 +5458,7 @@ var WorkerSession = class {
5444
5458
  }
5445
5459
  async _maybeOpenShell() {
5446
5460
  try {
5447
- await (0, import_async21.asyncTimeout)(this._shellClientRpc.open(), 1e3);
5461
+ await (0, import_async22.asyncTimeout)(this._shellClientRpc.open(), 1e3);
5448
5462
  } catch {
5449
5463
  import_log19.log.info("No shell connected.", void 0, {
5450
5464
  F: __dxlog_file21,
@@ -5472,7 +5486,7 @@ var WorkerRuntime = class {
5472
5486
  constructor(_configProvider) {
5473
5487
  this._configProvider = _configProvider;
5474
5488
  this._transportFactory = new import_network_manager5.SimplePeerTransportProxyFactory();
5475
- this._ready = new import_async22.Trigger();
5489
+ this._ready = new import_async23.Trigger();
5476
5490
  this._sessions = /* @__PURE__ */ new Set();
5477
5491
  this._clientServices = new ClientServicesHost({
5478
5492
  callbacks: {