@dxos/client-services 0.3.3-main.f990aad → 0.3.3-main.ff5734a

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.
@@ -2567,7 +2567,6 @@ ClientRpcServer = _ts_decorate3([
2567
2567
  ], ClientRpcServer);
2568
2568
 
2569
2569
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2570
- var import_async10 = require("@dxos/async");
2571
2570
  var import_codec_protobuf10 = require("@dxos/codec-protobuf");
2572
2571
  var import_credentials9 = require("@dxos/credentials");
2573
2572
  var import_document_model = require("@dxos/document-model");
@@ -2606,7 +2605,7 @@ var getPlatform = () => {
2606
2605
  };
2607
2606
 
2608
2607
  // packages/sdk/client-services/src/version.ts
2609
- var DXOS_VERSION = "0.3.3-main.f990aad";
2608
+ var DXOS_VERSION = "0.3.3-main.ff5734a";
2610
2609
 
2611
2610
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2612
2611
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -2625,7 +2624,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2625
2624
  {
2626
2625
  (0, import_invariant9.invariant)(clientServices.LoggingService, "SystemService is not available.", {
2627
2626
  F: __dxlog_file10,
2628
- L: 93,
2627
+ L: 92,
2629
2628
  S: void 0,
2630
2629
  A: [
2631
2630
  "clientServices.LoggingService",
@@ -2662,15 +2661,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2662
2661
  timeout: DEFAULT_TIMEOUT
2663
2662
  }).catch(() => void 0);
2664
2663
  diagnostics.networkStatus = status;
2665
- const swarmInfoDone = new import_async10.Trigger();
2666
- serviceContext.networkManager.connectionLog?.update.on(async () => {
2667
- const swarms = serviceContext.networkManager.connectionLog?.swarms;
2668
- diagnostics.swarms = swarms;
2669
- await swarmInfoDone.wake();
2670
- });
2671
- await swarmInfoDone.wait({
2672
- timeout: DEFAULT_TIMEOUT
2673
- });
2664
+ diagnostics.swarms = serviceContext.networkManager.connectionLog?.swarms;
2674
2665
  }
2675
2666
  diagnostics.config = config.values;
2676
2667
  return diagnostics;
@@ -2684,7 +2675,7 @@ var getProperties = (space) => {
2684
2675
  } catch (err) {
2685
2676
  import_log8.log.warn(err.message, void 0, {
2686
2677
  F: __dxlog_file10,
2687
- L: 168,
2678
+ L: 160,
2688
2679
  S: void 0,
2689
2680
  C: (f, a) => f(...a)
2690
2681
  });
@@ -2740,7 +2731,7 @@ var getSpaceStats = async (space) => {
2740
2731
  };
2741
2732
 
2742
2733
  // packages/sdk/client-services/src/packlets/services/service-context.ts
2743
- var import_async15 = require("@dxos/async");
2734
+ var import_async14 = require("@dxos/async");
2744
2735
  var import_context9 = require("@dxos/context");
2745
2736
  var import_credentials14 = require("@dxos/credentials");
2746
2737
  var import_debug7 = require("@dxos/debug");
@@ -2757,7 +2748,7 @@ var import_tracing5 = require("@dxos/tracing");
2757
2748
  var import_util7 = require("@dxos/util");
2758
2749
 
2759
2750
  // packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
2760
- var import_async13 = require("@dxos/async");
2751
+ var import_async12 = require("@dxos/async");
2761
2752
  var import_context8 = require("@dxos/context");
2762
2753
  var import_credentials13 = require("@dxos/credentials");
2763
2754
  var import_invariant11 = require("@dxos/invariant");
@@ -2769,7 +2760,7 @@ var import_teleport_extension_gossip = require("@dxos/teleport-extension-gossip"
2769
2760
  var import_util6 = require("@dxos/util");
2770
2761
 
2771
2762
  // packages/sdk/client-services/src/packlets/spaces/data-space.ts
2772
- var import_async12 = require("@dxos/async");
2763
+ var import_async11 = require("@dxos/async");
2773
2764
  var import_client_protocol3 = require("@dxos/client-protocol");
2774
2765
  var import_context7 = require("@dxos/context");
2775
2766
  var import_debug4 = require("@dxos/debug");
@@ -2784,7 +2775,7 @@ var import_tracing4 = require("@dxos/tracing");
2784
2775
  var import_util5 = require("@dxos/util");
2785
2776
 
2786
2777
  // packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts
2787
- var import_async11 = require("@dxos/async");
2778
+ var import_async10 = require("@dxos/async");
2788
2779
  var import_context6 = require("@dxos/context");
2789
2780
  var import_invariant10 = require("@dxos/invariant");
2790
2781
  var import_keys8 = require("@dxos/keys");
@@ -2800,7 +2791,7 @@ var WRITER_NOT_SET_ERROR_CODE = "WRITER_NOT_SET";
2800
2791
  var NotarizationPlugin = class {
2801
2792
  constructor() {
2802
2793
  this._ctx = new import_context6.Context();
2803
- this._extensionOpened = new import_async11.Event();
2794
+ this._extensionOpened = new import_async10.Event();
2804
2795
  this._extensions = /* @__PURE__ */ new Set();
2805
2796
  this._processedCredentials = new import_util4.ComplexSet(import_keys8.PublicKey.hash);
2806
2797
  this._processCredentialsTriggers = new import_util4.ComplexMap(import_keys8.PublicKey.hash);
@@ -2834,7 +2825,7 @@ var NotarizationPlugin = class {
2834
2825
  "'Credentials must have an id'"
2835
2826
  ]
2836
2827
  });
2837
- const errors = new import_async11.Trigger();
2828
+ const errors = new import_async10.Trigger();
2838
2829
  const ctx = this._ctx.derive({
2839
2830
  onError: (err) => {
2840
2831
  import_log9.log.warn("Notarization error", {
@@ -2851,7 +2842,7 @@ var NotarizationPlugin = class {
2851
2842
  });
2852
2843
  opCtx?.onDispose(() => ctx.dispose());
2853
2844
  if (timeout !== 0) {
2854
- (0, import_async11.scheduleTask)(ctx, () => {
2845
+ (0, import_async10.scheduleTask)(ctx, () => {
2855
2846
  import_log9.log.warn("Notarization timeout", {
2856
2847
  timeout,
2857
2848
  peers: Array.from(this._extensions).map((extension) => extension.remotePeerId)
@@ -2862,12 +2853,12 @@ var NotarizationPlugin = class {
2862
2853
  C: (f, a) => f(...a)
2863
2854
  });
2864
2855
  void ctx.dispose();
2865
- errors.throw(new import_async11.TimeoutError(timeout, "Notarization timed out"));
2856
+ errors.throw(new import_async10.TimeoutError(timeout, "Notarization timed out"));
2866
2857
  }, timeout);
2867
2858
  }
2868
2859
  const allNotarized = Promise.all(credentials.map((credential) => this._waitUntilProcessed(credential.id)));
2869
2860
  const peersTried = /* @__PURE__ */ new Set();
2870
- const notarizeTask = new import_async11.DeferredTask(ctx, async () => {
2861
+ const notarizeTask = new import_async10.DeferredTask(ctx, async () => {
2871
2862
  try {
2872
2863
  if (this._extensions.size === 0) {
2873
2864
  return;
@@ -2885,7 +2876,7 @@ var NotarizationPlugin = class {
2885
2876
  C: (f, a) => f(...a)
2886
2877
  });
2887
2878
  peersTried.clear();
2888
- (0, import_async11.scheduleTask)(ctx, () => notarizeTask.schedule(), retryTimeout);
2879
+ (0, import_async10.scheduleTask)(ctx, () => notarizeTask.schedule(), retryTimeout);
2889
2880
  return;
2890
2881
  }
2891
2882
  peersTried.add(peer);
@@ -2907,7 +2898,7 @@ var NotarizationPlugin = class {
2907
2898
  S: this,
2908
2899
  C: (f, a) => f(...a)
2909
2900
  });
2910
- await (0, import_async11.sleep)(successDelay);
2901
+ await (0, import_async10.sleep)(successDelay);
2911
2902
  } catch (err) {
2912
2903
  if (!ctx.disposed && !err.message.includes(WRITER_NOT_SET_ERROR_CODE)) {
2913
2904
  import_log9.log.warn("error notarizing (recoverable)", err, {
@@ -2965,7 +2956,7 @@ var NotarizationPlugin = class {
2965
2956
  if (this._processedCredentials.has(id)) {
2966
2957
  return;
2967
2958
  }
2968
- await (0, import_util4.entry)(this._processCredentialsTriggers, id).orInsert(new import_async11.Trigger()).value.wait();
2959
+ await (0, import_util4.entry)(this._processCredentialsTriggers, id).orInsert(new import_async10.Trigger()).value.wait();
2969
2960
  }
2970
2961
  /**
2971
2962
  * Requests from other peers to notarize credentials.
@@ -3073,7 +3064,7 @@ var DataSpace = class DataSpace2 {
3073
3064
  * Error for _state === SpaceState.ERROR.
3074
3065
  */
3075
3066
  this.error = void 0;
3076
- this.stateUpdate = new import_async12.Event();
3067
+ this.stateUpdate = new import_async11.Event();
3077
3068
  this.metrics = {};
3078
3069
  this._inner = params.inner;
3079
3070
  this._inner.stateUpdate.on(this._ctx, () => this.stateUpdate.emit());
@@ -3179,7 +3170,7 @@ var DataSpace = class DataSpace2 {
3179
3170
  * Initialize the data pipeline in a separate task.
3180
3171
  */
3181
3172
  initializeDataPipelineAsync() {
3182
- (0, import_async12.scheduleTask)(this._ctx, async () => {
3173
+ (0, import_async11.scheduleTask)(this._ctx, async () => {
3183
3174
  try {
3184
3175
  this.metrics.pipelineInitBegin = /* @__PURE__ */ new Date();
3185
3176
  await this.initializeDataPipeline();
@@ -3229,7 +3220,7 @@ var DataSpace = class DataSpace2 {
3229
3220
  C: (f, a) => f(...a)
3230
3221
  });
3231
3222
  await this._initializeAndReadControlPipeline();
3232
- await (0, import_async12.sleep)(1);
3223
+ await (0, import_async11.sleep)(1);
3233
3224
  await this._inner.initializeDataPipeline();
3234
3225
  this.metrics.dataPipelineOpen = /* @__PURE__ */ new Date();
3235
3226
  await (0, import_context7.cancelWithContext)(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
@@ -3385,10 +3376,10 @@ var DataSpace = class DataSpace2 {
3385
3376
  }
3386
3377
  };
3387
3378
  _ts_decorate4([
3388
- import_async12.synchronized
3379
+ import_async11.synchronized
3389
3380
  ], DataSpace.prototype, "open", null);
3390
3381
  _ts_decorate4([
3391
- import_async12.synchronized
3382
+ import_async11.synchronized
3392
3383
  ], DataSpace.prototype, "close", null);
3393
3384
  _ts_decorate4([
3394
3385
  import_tracing4.trace.span({
@@ -3404,13 +3395,13 @@ _ts_decorate4([
3404
3395
  (0, import_debug4.timed)(1e4)
3405
3396
  ], DataSpace.prototype, "_createWritableFeeds", null);
3406
3397
  _ts_decorate4([
3407
- import_async12.synchronized
3398
+ import_async11.synchronized
3408
3399
  ], DataSpace.prototype, "activate", null);
3409
3400
  _ts_decorate4([
3410
- import_async12.synchronized
3401
+ import_async11.synchronized
3411
3402
  ], DataSpace.prototype, "deactivate", null);
3412
3403
  DataSpace = _ts_decorate4([
3413
- (0, import_async12.trackLeaks)("open", "close")
3404
+ (0, import_async11.trackLeaks)("open", "close")
3414
3405
  ], DataSpace);
3415
3406
 
3416
3407
  // packages/sdk/client-services/src/packlets/spaces/genesis.ts
@@ -3503,7 +3494,7 @@ var DataSpaceManager = class DataSpaceManager2 {
3503
3494
  this._signingContext = _signingContext;
3504
3495
  this._feedStore = _feedStore;
3505
3496
  this._ctx = new import_context8.Context();
3506
- this.updated = new import_async13.Event();
3497
+ this.updated = new import_async12.Event();
3507
3498
  this._spaces = new import_util6.ComplexMap(import_keys10.PublicKey.hash);
3508
3499
  this._isOpen = false;
3509
3500
  this._instanceId = import_keys10.PublicKey.random().toHex();
@@ -3800,23 +3791,23 @@ var DataSpaceManager = class DataSpaceManager2 {
3800
3791
  }
3801
3792
  };
3802
3793
  _ts_decorate5([
3803
- import_async13.synchronized
3794
+ import_async12.synchronized
3804
3795
  ], DataSpaceManager.prototype, "open", null);
3805
3796
  _ts_decorate5([
3806
- import_async13.synchronized
3797
+ import_async12.synchronized
3807
3798
  ], DataSpaceManager.prototype, "close", null);
3808
3799
  _ts_decorate5([
3809
- import_async13.synchronized
3800
+ import_async12.synchronized
3810
3801
  ], DataSpaceManager.prototype, "createSpace", null);
3811
3802
  _ts_decorate5([
3812
- import_async13.synchronized
3803
+ import_async12.synchronized
3813
3804
  ], DataSpaceManager.prototype, "acceptSpace", null);
3814
3805
  DataSpaceManager = _ts_decorate5([
3815
- (0, import_async13.trackLeaks)("open", "close")
3806
+ (0, import_async12.trackLeaks)("open", "close")
3816
3807
  ], DataSpaceManager);
3817
3808
 
3818
3809
  // packages/sdk/client-services/src/packlets/spaces/spaces-service.ts
3819
- var import_async14 = require("@dxos/async");
3810
+ var import_async13 = require("@dxos/async");
3820
3811
  var import_codec_protobuf11 = require("@dxos/codec-protobuf");
3821
3812
  var import_debug6 = require("@dxos/debug");
3822
3813
  var import_invariant12 = require("@dxos/invariant");
@@ -3857,7 +3848,7 @@ var SpacesServiceImpl = class {
3857
3848
  }
3858
3849
  querySpaces() {
3859
3850
  return new import_codec_protobuf11.Stream(({ next, ctx }) => {
3860
- const scheduler = new import_async14.UpdateScheduler(ctx, async () => {
3851
+ const scheduler = new import_async13.UpdateScheduler(ctx, async () => {
3861
3852
  const dataSpaceManager = await this._getDataSpaceManager();
3862
3853
  const spaces = Array.from(dataSpaceManager.spaces.values()).map((space) => this._serializeSpace(space));
3863
3854
  (0, import_log12.log)("update", {
@@ -3874,9 +3865,9 @@ var SpacesServiceImpl = class {
3874
3865
  }, {
3875
3866
  maxFrequency: process.env.NODE_ENV === "test" ? void 0 : 2
3876
3867
  });
3877
- (0, import_async14.scheduleTask)(ctx, async () => {
3868
+ (0, import_async13.scheduleTask)(ctx, async () => {
3878
3869
  const dataSpaceManager = await this._getDataSpaceManager();
3879
- const subscriptions = new import_async14.EventSubscriptions();
3870
+ const subscriptions = new import_async13.EventSubscriptions();
3880
3871
  ctx.onDispose(() => subscriptions.clear());
3881
3872
  const subscribeSpaces = () => {
3882
3873
  subscriptions.clear();
@@ -3911,7 +3902,7 @@ var SpacesServiceImpl = class {
3911
3902
  }
3912
3903
  subscribeMessages({ spaceKey, channel }) {
3913
3904
  return new import_codec_protobuf11.Stream(({ ctx, next }) => {
3914
- (0, import_async14.scheduleTask)(ctx, async () => {
3905
+ (0, import_async13.scheduleTask)(ctx, async () => {
3915
3906
  const dataSpaceManager = await this._getDataSpaceManager();
3916
3907
  const space = dataSpaceManager.spaces.get(spaceKey) ?? (0, import_debug6.raise)(new import_protocols9.SpaceNotFoundError(spaceKey));
3917
3908
  const handle = space.listen(getChannelId(channel), (message) => {
@@ -3930,7 +3921,7 @@ var SpacesServiceImpl = class {
3930
3921
  }
3931
3922
  };
3932
3923
  ctx.onDispose(() => space.spaceState.removeCredentialProcessor(processor));
3933
- (0, import_async14.scheduleTask)(ctx, async () => {
3924
+ (0, import_async13.scheduleTask)(ctx, async () => {
3934
3925
  await space.spaceState.addCredentialProcessor(processor);
3935
3926
  if (noTail) {
3936
3927
  close();
@@ -4054,7 +4045,7 @@ var ServiceContext = class ServiceContext2 {
4054
4045
  this.networkManager = networkManager;
4055
4046
  this.signalManager = signalManager;
4056
4047
  this.modelFactory = modelFactory;
4057
- this.initialized = new import_async15.Trigger();
4048
+ this.initialized = new import_async14.Trigger();
4058
4049
  this.dataServiceSubscriptions = new import_echo_pipeline2.DataServiceSubscriptions();
4059
4050
  this._handlerFactories = /* @__PURE__ */ new Map();
4060
4051
  this._instanceId = import_keys11.PublicKey.random().toHex();
@@ -4283,7 +4274,7 @@ ServiceContext = _ts_decorate6([
4283
4274
  ], ServiceContext);
4284
4275
 
4285
4276
  // packages/sdk/client-services/src/packlets/services/service-host.ts
4286
- var import_async18 = require("@dxos/async");
4277
+ var import_async17 = require("@dxos/async");
4287
4278
  var import_client_protocol5 = require("@dxos/client-protocol");
4288
4279
  var import_context10 = require("@dxos/context");
4289
4280
  var import_document_model2 = require("@dxos/document-model");
@@ -4326,7 +4317,7 @@ var ServiceRegistry = class {
4326
4317
  };
4327
4318
 
4328
4319
  // packages/sdk/client-services/src/packlets/devices/devices-service.ts
4329
- var import_async16 = require("@dxos/async");
4320
+ var import_async15 = require("@dxos/async");
4330
4321
  var import_codec_protobuf12 = require("@dxos/codec-protobuf");
4331
4322
  var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
4332
4323
  var DevicesServiceImpl = class {
@@ -4354,7 +4345,7 @@ var DevicesServiceImpl = class {
4354
4345
  });
4355
4346
  }
4356
4347
  };
4357
- const subscriptions = new import_async16.EventSubscriptions();
4348
+ const subscriptions = new import_async15.EventSubscriptions();
4358
4349
  subscriptions.add(this._identityManager.stateUpdate.on(() => {
4359
4350
  update();
4360
4351
  if (this._identityManager.identity) {
@@ -4429,14 +4420,14 @@ _ts_decorate7([
4429
4420
  var isLocked = (lockPath) => import_lock_file.LockFile.isLocked(lockPath);
4430
4421
 
4431
4422
  // packages/sdk/client-services/src/packlets/logging/logging-service.ts
4432
- var import_async17 = require("@dxos/async");
4423
+ var import_async16 = require("@dxos/async");
4433
4424
  var import_codec_protobuf13 = require("@dxos/codec-protobuf");
4434
4425
  var import_log15 = require("@dxos/log");
4435
4426
  var import_services12 = require("@dxos/protocols/proto/dxos/client/services");
4436
4427
  var import_util8 = require("@dxos/util");
4437
4428
  var LoggingServiceImpl = class {
4438
4429
  constructor() {
4439
- this._logs = new import_async17.Event();
4430
+ this._logs = new import_async16.Event();
4440
4431
  this._started = /* @__PURE__ */ new Date();
4441
4432
  this._logProcessor = (_config, entry2) => {
4442
4433
  this._logs.emit(entry2);
@@ -4719,7 +4710,7 @@ var ClientServicesHost = class ClientServicesHost2 {
4719
4710
  callbacks
4720
4711
  } = {}) {
4721
4712
  this._tracingService = import_tracing6.TRACE_PROCESSOR.createTraceSender();
4722
- this._statusUpdate = new import_async18.Event();
4713
+ this._statusUpdate = new import_async17.Event();
4723
4714
  this._opening = false;
4724
4715
  this._open = false;
4725
4716
  this._storage = storage;
@@ -5050,11 +5041,11 @@ _ts_decorate8([
5050
5041
  import_tracing6.trace.info()
5051
5042
  ], ClientServicesHost.prototype, "_open", void 0);
5052
5043
  _ts_decorate8([
5053
- import_async18.synchronized,
5044
+ import_async17.synchronized,
5054
5045
  import_tracing6.trace.span()
5055
5046
  ], ClientServicesHost.prototype, "open", null);
5056
5047
  _ts_decorate8([
5057
- import_async18.synchronized,
5048
+ import_async17.synchronized,
5058
5049
  import_tracing6.trace.span()
5059
5050
  ], ClientServicesHost.prototype, "close", null);
5060
5051
  ClientServicesHost = _ts_decorate8([
@@ -5062,7 +5053,7 @@ ClientServicesHost = _ts_decorate8([
5062
5053
  ], ClientServicesHost);
5063
5054
 
5064
5055
  // packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts
5065
- var import_async20 = require("@dxos/async");
5056
+ var import_async19 = require("@dxos/async");
5066
5057
  var import_client_protocol7 = require("@dxos/client-protocol");
5067
5058
  var import_context11 = require("@dxos/context");
5068
5059
  var import_log17 = require("@dxos/log");
@@ -5071,7 +5062,7 @@ var import_network_manager3 = require("@dxos/network-manager");
5071
5062
  var import_util11 = require("@dxos/util");
5072
5063
 
5073
5064
  // packages/sdk/client-services/src/packlets/vault/shell-runtime.ts
5074
- var import_async19 = require("@dxos/async");
5065
+ var import_async18 = require("@dxos/async");
5075
5066
  var import_client_protocol6 = require("@dxos/client-protocol");
5076
5067
  var import_invariant16 = require("@dxos/invariant");
5077
5068
  var import_iframe = require("@dxos/protocols/proto/dxos/iframe");
@@ -5080,7 +5071,7 @@ var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/s
5080
5071
  var ShellRuntimeImpl = class {
5081
5072
  constructor(_port) {
5082
5073
  this._port = _port;
5083
- this.layoutUpdate = new import_async19.Event();
5074
+ this.layoutUpdate = new import_async18.Event();
5084
5075
  this._layout = import_iframe.ShellLayout.DEFAULT;
5085
5076
  }
5086
5077
  get layout() {
@@ -5153,7 +5144,7 @@ var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/s
5153
5144
  var LOCK_KEY = "DXOS_RESOURCE_LOCK";
5154
5145
  var IFrameHostRuntime = class {
5155
5146
  constructor({ config, origin, appPort, shellPort }) {
5156
- this._ready = new import_async20.Trigger();
5147
+ this._ready = new import_async19.Trigger();
5157
5148
  this._configProvider = config;
5158
5149
  this.origin = origin;
5159
5150
  this._appPort = appPort;
@@ -5257,7 +5248,7 @@ _ts_decorate9([
5257
5248
  ], IFrameHostRuntime.prototype, "origin", void 0);
5258
5249
 
5259
5250
  // packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts
5260
- var import_async21 = require("@dxos/async");
5251
+ var import_async20 = require("@dxos/async");
5261
5252
  var import_client_protocol8 = require("@dxos/client-protocol");
5262
5253
  var import_log18 = require("@dxos/log");
5263
5254
  var import_network_manager4 = require("@dxos/network-manager");
@@ -5268,7 +5259,7 @@ var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/s
5268
5259
  var IFrameProxyRuntime = class {
5269
5260
  constructor({ config, systemPort, shellPort }) {
5270
5261
  this._id = String(Math.floor(Math.random() * 1e6));
5271
- this._release = new import_async21.Trigger();
5262
+ this._release = new import_async20.Trigger();
5272
5263
  this._configProvider = config;
5273
5264
  this._systemPort = systemPort;
5274
5265
  this._shellPort = shellPort;
@@ -5296,8 +5287,8 @@ var IFrameProxyRuntime = class {
5296
5287
  let lockKey;
5297
5288
  if (typeof navigator !== "undefined") {
5298
5289
  lockKey = this._lockKey(origin);
5299
- this._release = new import_async21.Trigger();
5300
- const ready = new import_async21.Trigger();
5290
+ this._release = new import_async20.Trigger();
5291
+ const ready = new import_async20.Trigger();
5301
5292
  void navigator.locks.request(lockKey, async () => {
5302
5293
  ready.wake();
5303
5294
  await this._release.wait();
@@ -5333,14 +5324,14 @@ var IFrameProxyRuntime = class {
5333
5324
  };
5334
5325
 
5335
5326
  // packages/sdk/client-services/src/packlets/vault/worker-runtime.ts
5336
- var import_async23 = require("@dxos/async");
5327
+ var import_async22 = require("@dxos/async");
5337
5328
  var import_context12 = require("@dxos/context");
5338
5329
  var import_log20 = require("@dxos/log");
5339
5330
  var import_messaging3 = require("@dxos/messaging");
5340
5331
  var import_network_manager5 = require("@dxos/network-manager");
5341
5332
 
5342
5333
  // packages/sdk/client-services/src/packlets/vault/worker-session.ts
5343
- var import_async22 = require("@dxos/async");
5334
+ var import_async21 = require("@dxos/async");
5344
5335
  var import_client_protocol9 = require("@dxos/client-protocol");
5345
5336
  var import_invariant17 = require("@dxos/invariant");
5346
5337
  var import_log19 = require("@dxos/log");
@@ -5359,7 +5350,7 @@ function _ts_decorate10(decorators, target, key, desc) {
5359
5350
  var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-session.ts";
5360
5351
  var WorkerSession = class {
5361
5352
  constructor({ serviceHost, systemPort, appPort, shellPort, readySignal }) {
5362
- this._startTrigger = new import_async22.Trigger();
5353
+ this._startTrigger = new import_async21.Trigger();
5363
5354
  this.onClose = new import_util13.Callback();
5364
5355
  (0, import_invariant17.invariant)(serviceHost, void 0, {
5365
5356
  F: __dxlog_file21,
@@ -5487,7 +5478,7 @@ var WorkerSession = class {
5487
5478
  }
5488
5479
  async _maybeOpenShell() {
5489
5480
  try {
5490
- await (0, import_async22.asyncTimeout)(this._shellClientRpc.open(), 1e3);
5481
+ await (0, import_async21.asyncTimeout)(this._shellClientRpc.open(), 1e3);
5491
5482
  } catch {
5492
5483
  import_log19.log.info("No shell connected.", void 0, {
5493
5484
  F: __dxlog_file21,
@@ -5515,7 +5506,7 @@ var WorkerRuntime = class {
5515
5506
  constructor(_configProvider) {
5516
5507
  this._configProvider = _configProvider;
5517
5508
  this._transportFactory = new import_network_manager5.SimplePeerTransportProxyFactory();
5518
- this._ready = new import_async23.Trigger();
5509
+ this._ready = new import_async22.Trigger();
5519
5510
  this._sessions = /* @__PURE__ */ new Set();
5520
5511
  this._clientServices = new ClientServicesHost({
5521
5512
  callbacks: {