@dxos/client-services 0.3.11-main.a757f8c → 0.3.11-main.a8c932f

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 (36) hide show
  1. package/dist/lib/browser/{chunk-VO55YITH.mjs → chunk-NVEOTS4E.mjs} +115 -43
  2. package/dist/lib/browser/chunk-NVEOTS4E.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +1 -1
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/packlets/testing/index.mjs +1 -1
  6. package/dist/lib/node/{chunk-GFMHPJIM.cjs → chunk-N3S5Z6UO.cjs} +202 -130
  7. package/dist/lib/node/chunk-N3S5Z6UO.cjs.map +7 -0
  8. package/dist/lib/node/index.cjs +37 -37
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/packlets/testing/index.cjs +8 -8
  11. package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
  12. package/dist/types/src/packlets/services/diagnostics.d.ts +32 -20
  13. package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
  14. package/dist/types/src/packlets/services/platform.d.ts +1 -14
  15. package/dist/types/src/packlets/services/platform.d.ts.map +1 -1
  16. package/dist/types/src/packlets/spaces/automerge-space-state.d.ts +2 -0
  17. package/dist/types/src/packlets/spaces/automerge-space-state.d.ts.map +1 -1
  18. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  19. package/dist/types/src/packlets/spaces/data-space.d.ts +2 -0
  20. package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
  21. package/dist/types/src/packlets/system/system-service.d.ts +3 -2
  22. package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
  23. package/dist/types/src/version.d.ts +1 -1
  24. package/package.json +35 -35
  25. package/src/packlets/identity/identity-manager.ts +1 -1
  26. package/src/packlets/network/network-service.ts +5 -1
  27. package/src/packlets/services/diagnostics.ts +35 -17
  28. package/src/packlets/services/platform.ts +7 -19
  29. package/src/packlets/spaces/automerge-space-state.ts +4 -0
  30. package/src/packlets/spaces/data-space-manager.ts +5 -1
  31. package/src/packlets/spaces/data-space.ts +37 -4
  32. package/src/packlets/spaces/spaces-service.ts +2 -2
  33. package/src/packlets/system/system-service.ts +7 -1
  34. package/src/version.ts +1 -1
  35. package/dist/lib/browser/chunk-VO55YITH.mjs.map +0 -7
  36. package/dist/lib/node/chunk-GFMHPJIM.cjs.map +0 -7
@@ -996,7 +996,7 @@ var IdentityManager = class {
996
996
  genesisFeedKey: spaceRecord.genesisFeedKey
997
997
  },
998
998
  swarmIdentity,
999
- onNetworkConnection: () => {
999
+ onAuthorizedConnection: () => {
1000
1000
  },
1001
1001
  onAuthFailure: () => {
1002
1002
  log3.warn("auth failure", void 0, {
@@ -2533,29 +2533,32 @@ import { invariant as invariant9 } from "@dxos/invariant";
2533
2533
  import { log as log8 } from "@dxos/log";
2534
2534
  import { STORAGE_VERSION } from "@dxos/protocols";
2535
2535
  import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
2536
+ import { TRACE_PROCESSOR } from "@dxos/tracing";
2536
2537
 
2537
2538
  // packages/sdk/client-services/src/packlets/services/platform.ts
2539
+ import { Platform } from "@dxos/protocols/proto/dxos/client/services";
2538
2540
  var getPlatform = () => {
2539
2541
  if (process.browser) {
2540
2542
  if (typeof window !== "undefined") {
2541
2543
  const { userAgent } = window.navigator;
2542
2544
  return {
2543
- type: "browser",
2545
+ type: Platform.PLATFORM_TYPE.BROWSER,
2544
2546
  userAgent,
2545
2547
  uptime: Math.floor((Date.now() - window.performance.timeOrigin) / 1e3)
2546
2548
  };
2547
2549
  } else {
2548
2550
  return {
2549
- type: "shared-worker",
2551
+ type: Platform.PLATFORM_TYPE.SHARED_WORKER,
2550
2552
  uptime: Math.floor((Date.now() - performance.timeOrigin) / 1e3)
2551
2553
  };
2552
2554
  }
2553
2555
  } else {
2554
2556
  const { platform: platform2, version, arch } = process;
2555
2557
  return {
2556
- type: "node",
2557
- platform: `${platform2} ${version} ${arch}`,
2558
- runtime: process.version,
2558
+ type: Platform.PLATFORM_TYPE.NODE,
2559
+ platform: platform2,
2560
+ arch,
2561
+ runtime: version,
2559
2562
  uptime: Math.floor(process.uptime()),
2560
2563
  memory: process.memoryUsage()
2561
2564
  };
@@ -2563,7 +2566,7 @@ var getPlatform = () => {
2563
2566
  };
2564
2567
 
2565
2568
  // packages/sdk/client-services/src/version.ts
2566
- var DXOS_VERSION = "0.3.11-main.a757f8c";
2569
+ var DXOS_VERSION = "0.3.11-main.a8c932f";
2567
2570
 
2568
2571
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2569
2572
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -2577,12 +2580,13 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2577
2580
  storage: {
2578
2581
  version: STORAGE_VERSION
2579
2582
  }
2580
- }
2583
+ },
2584
+ trace: TRACE_PROCESSOR.getDiagnostics()
2581
2585
  };
2582
2586
  {
2583
2587
  invariant9(clientServices.LoggingService, "SystemService is not available.", {
2584
2588
  F: __dxlog_file10,
2585
- L: 93,
2589
+ L: 111,
2586
2590
  S: void 0,
2587
2591
  A: [
2588
2592
  "clientServices.LoggingService",
@@ -2648,7 +2652,7 @@ var getProperties = (space) => {
2648
2652
  } catch (err) {
2649
2653
  log8.warn(err.message, void 0, {
2650
2654
  F: __dxlog_file10,
2651
- L: 178,
2655
+ L: 196,
2652
2656
  S: void 0,
2653
2657
  C: (f, a) => f(...a)
2654
2658
  });
@@ -2704,11 +2708,12 @@ var getSpaceStats = async (space) => {
2704
2708
  };
2705
2709
 
2706
2710
  // packages/sdk/client-services/src/packlets/spaces/data-space.ts
2707
- import { Event as Event5, scheduleTask as scheduleTask4, sleep as sleep2, synchronized, trackLeaks } from "@dxos/async";
2711
+ import { Event as Event5, asyncTimeout, scheduleTask as scheduleTask4, sleep as sleep2, synchronized, trackLeaks } from "@dxos/async";
2708
2712
  import { AUTH_TIMEOUT as AUTH_TIMEOUT2 } from "@dxos/client-protocol";
2709
- import { cancelWithContext as cancelWithContext2, Context as Context7 } from "@dxos/context";
2713
+ import { cancelWithContext as cancelWithContext2, Context as Context7, ContextDisposedError } from "@dxos/context";
2710
2714
  import { timed } from "@dxos/debug";
2711
2715
  import { createMappedFeedWriter } from "@dxos/echo-pipeline";
2716
+ import { failedInvariant } from "@dxos/invariant";
2712
2717
  import { PublicKey as PublicKey8 } from "@dxos/keys";
2713
2718
  import { log as log10 } from "@dxos/log";
2714
2719
  import { CancelledError, SystemError } from "@dxos/protocols";
@@ -2721,7 +2726,8 @@ import { ComplexSet as ComplexSet3 } from "@dxos/util";
2721
2726
  // packages/sdk/client-services/src/packlets/spaces/automerge-space-state.ts
2722
2727
  import { checkCredentialType } from "@dxos/credentials";
2723
2728
  var AutomergeSpaceState = class {
2724
- constructor() {
2729
+ constructor(_onNewRoot) {
2730
+ this._onNewRoot = _onNewRoot;
2725
2731
  this.rootUrl = void 0;
2726
2732
  this.lastEpoch = void 0;
2727
2733
  }
@@ -2732,6 +2738,7 @@ var AutomergeSpaceState = class {
2732
2738
  this.lastEpoch = credential;
2733
2739
  if (credential.subject.assertion.automergeRoot) {
2734
2740
  this.rootUrl = credential.subject.assertion.automergeRoot;
2741
+ this._onNewRoot(this.rootUrl);
2735
2742
  }
2736
2743
  }
2737
2744
  };
@@ -3023,7 +3030,7 @@ var DataSpace = class {
3023
3030
  this._notarizationPlugin = new NotarizationPlugin();
3024
3031
  this._cache = void 0;
3025
3032
  // TODO(dmaretskyi): Move into Space?
3026
- this._automergeSpaceState = new AutomergeSpaceState();
3033
+ this._automergeSpaceState = new AutomergeSpaceState((rootUrl) => this._onNewAutomergeRoot(rootUrl));
3027
3034
  this._state = SpaceState.CLOSED;
3028
3035
  /**
3029
3036
  * Error for _state === SpaceState.ERROR.
@@ -3052,7 +3059,7 @@ var DataSpace = class {
3052
3059
  state: SpaceState[this._state]
3053
3060
  }, {
3054
3061
  F: __dxlog_file12,
3055
- L: 137,
3062
+ L: 141,
3056
3063
  S: this,
3057
3064
  C: (f, a) => f(...a)
3058
3065
  });
@@ -3085,6 +3092,12 @@ var DataSpace = class {
3085
3092
  get automergeSpaceState() {
3086
3093
  return this._automergeSpaceState;
3087
3094
  }
3095
+ get _automergeInfo() {
3096
+ return {
3097
+ rootUrl: this._automergeSpaceState.rootUrl,
3098
+ lastEpoch: this._automergeSpaceState.lastEpoch
3099
+ };
3100
+ }
3088
3101
  async open() {
3089
3102
  await this._open();
3090
3103
  }
@@ -3099,7 +3112,7 @@ var DataSpace = class {
3099
3112
  state: SpaceState[this._state]
3100
3113
  }, {
3101
3114
  F: __dxlog_file12,
3102
- L: 189,
3115
+ L: 203,
3103
3116
  S: this,
3104
3117
  C: (f, a) => f(...a)
3105
3118
  });
@@ -3117,7 +3130,7 @@ var DataSpace = class {
3117
3130
  state: SpaceState[this._state]
3118
3131
  }, {
3119
3132
  F: __dxlog_file12,
3120
- L: 203,
3133
+ L: 217,
3121
3134
  S: this,
3122
3135
  C: (f, a) => f(...a)
3123
3136
  });
@@ -3146,10 +3159,10 @@ var DataSpace = class {
3146
3159
  this.metrics.pipelineInitBegin = /* @__PURE__ */ new Date();
3147
3160
  await this.initializeDataPipeline();
3148
3161
  } catch (err) {
3149
- if (err instanceof CancelledError) {
3162
+ if (err instanceof CancelledError || err instanceof ContextDisposedError) {
3150
3163
  log10("data pipeline initialization cancelled", err, {
3151
3164
  F: __dxlog_file12,
3152
- L: 236,
3165
+ L: 250,
3153
3166
  S: this,
3154
3167
  C: (f, a) => f(...a)
3155
3168
  });
@@ -3157,7 +3170,7 @@ var DataSpace = class {
3157
3170
  }
3158
3171
  log10.error("Error initializing data pipeline", err, {
3159
3172
  F: __dxlog_file12,
3160
- L: 240,
3173
+ L: 254,
3161
3174
  S: this,
3162
3175
  C: (f, a) => f(...a)
3163
3176
  });
@@ -3166,7 +3179,7 @@ var DataSpace = class {
3166
3179
  state: SpaceState[this._state]
3167
3180
  }, {
3168
3181
  F: __dxlog_file12,
3169
- L: 242,
3182
+ L: 256,
3170
3183
  S: this,
3171
3184
  C: (f, a) => f(...a)
3172
3185
  });
@@ -3186,7 +3199,7 @@ var DataSpace = class {
3186
3199
  state: SpaceState[this._state]
3187
3200
  }, {
3188
3201
  F: __dxlog_file12,
3189
- L: 258,
3202
+ L: 272,
3190
3203
  S: this,
3191
3204
  C: (f, a) => f(...a)
3192
3205
  });
@@ -3197,7 +3210,7 @@ var DataSpace = class {
3197
3210
  await cancelWithContext2(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
3198
3211
  log10("waiting for data pipeline to reach target timeframe", void 0, {
3199
3212
  F: __dxlog_file12,
3200
- L: 272,
3213
+ L: 286,
3201
3214
  S: this,
3202
3215
  C: (f, a) => f(...a)
3203
3216
  });
@@ -3208,7 +3221,7 @@ var DataSpace = class {
3208
3221
  this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
3209
3222
  log10("data pipeline ready", void 0, {
3210
3223
  F: __dxlog_file12,
3211
- L: 281,
3224
+ L: 295,
3212
3225
  S: this,
3213
3226
  C: (f, a) => f(...a)
3214
3227
  });
@@ -3218,7 +3231,7 @@ var DataSpace = class {
3218
3231
  state: SpaceState[this._state]
3219
3232
  }, {
3220
3233
  F: __dxlog_file12,
3221
- L: 285,
3234
+ L: 299,
3222
3235
  S: this,
3223
3236
  C: (f, a) => f(...a)
3224
3237
  });
@@ -3234,7 +3247,7 @@ var DataSpace = class {
3234
3247
  await this._createWritableFeeds();
3235
3248
  log10("writable feeds created", void 0, {
3236
3249
  F: __dxlog_file12,
3237
- L: 301,
3250
+ L: 315,
3238
3251
  S: this,
3239
3252
  C: (f, a) => f(...a)
3240
3253
  });
@@ -3291,6 +3304,40 @@ var DataSpace = class {
3291
3304
  await this._metadataStore.setWritableFeedKeys(this.key, this.inner.controlFeedKey, this.inner.dataFeedKey);
3292
3305
  }
3293
3306
  }
3307
+ _onNewAutomergeRoot(rootUrl) {
3308
+ log10("loading automerge root doc for space", {
3309
+ space: this.key,
3310
+ rootUrl
3311
+ }, {
3312
+ F: __dxlog_file12,
3313
+ L: 381,
3314
+ S: this,
3315
+ C: (f, a) => f(...a)
3316
+ });
3317
+ const handle = this._automergeHost.repo.find(rootUrl);
3318
+ queueMicrotask(async () => {
3319
+ try {
3320
+ await asyncTimeout(handle.whenReady(), 5e3);
3321
+ const doc = handle.docSync() ?? failedInvariant();
3322
+ if (!doc.experimental_spaceKey) {
3323
+ handle.change((doc2) => {
3324
+ doc2.experimental_spaceKey = this.key.toHex();
3325
+ });
3326
+ }
3327
+ } catch (err) {
3328
+ log10.warn("error loading automerge root doc", {
3329
+ space: this.key,
3330
+ rootUrl,
3331
+ err
3332
+ }, {
3333
+ F: __dxlog_file12,
3334
+ L: 394,
3335
+ S: this,
3336
+ C: (f, a) => f(...a)
3337
+ });
3338
+ }
3339
+ });
3340
+ }
3294
3341
  // TODO(dmaretskyi): Use profile from signing context.
3295
3342
  async updateOwnProfile(profile) {
3296
3343
  const credential = await this._signingContext.credentialSigner.createCredential({
@@ -3374,13 +3421,29 @@ var DataSpace = class {
3374
3421
  state: SpaceState[this._state]
3375
3422
  }, {
3376
3423
  F: __dxlog_file12,
3377
- L: 450,
3424
+ L: 483,
3378
3425
  S: this,
3379
3426
  C: (f, a) => f(...a)
3380
3427
  });
3381
3428
  this.stateUpdate.emit();
3382
3429
  }
3383
3430
  };
3431
+ _ts_decorate4([
3432
+ trace6.info()
3433
+ ], DataSpace.prototype, "_inner", void 0);
3434
+ _ts_decorate4([
3435
+ trace6.info()
3436
+ ], DataSpace.prototype, "key", null);
3437
+ _ts_decorate4([
3438
+ trace6.info({
3439
+ enum: SpaceState
3440
+ })
3441
+ ], DataSpace.prototype, "state", null);
3442
+ _ts_decorate4([
3443
+ trace6.info({
3444
+ depth: null
3445
+ })
3446
+ ], DataSpace.prototype, "_automergeInfo", null);
3384
3447
  _ts_decorate4([
3385
3448
  synchronized
3386
3449
  ], DataSpace.prototype, "open", null);
@@ -3407,7 +3470,8 @@ _ts_decorate4([
3407
3470
  synchronized
3408
3471
  ], DataSpace.prototype, "deactivate", null);
3409
3472
  DataSpace = _ts_decorate4([
3410
- trackLeaks("open", "close")
3473
+ trackLeaks("open", "close"),
3474
+ trace6.resource()
3411
3475
  ], DataSpace);
3412
3476
 
3413
3477
  // packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
@@ -3633,12 +3697,15 @@ var DataSpaceManager = class {
3633
3697
  });
3634
3698
  const space = await this._constructSpace(metadata);
3635
3699
  const automergeRoot = this._automergeHost.repo.create();
3700
+ automergeRoot.change((doc) => {
3701
+ doc.experimental_spaceKey = spaceKey.toHex();
3702
+ });
3636
3703
  const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, automergeRoot.url);
3637
3704
  await this._metadataStore.addSpace(metadata);
3638
3705
  const memberCredential = credentials[1];
3639
3706
  invariant11(getCredentialAssertion2(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
3640
3707
  F: __dxlog_file13,
3641
- L: 151,
3708
+ L: 154,
3642
3709
  S: this,
3643
3710
  A: [
3644
3711
  "getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
@@ -3656,13 +3723,13 @@ var DataSpaceManager = class {
3656
3723
  opts
3657
3724
  }, {
3658
3725
  F: __dxlog_file13,
3659
- L: 163,
3726
+ L: 166,
3660
3727
  S: this,
3661
3728
  C: (f, a) => f(...a)
3662
3729
  });
3663
3730
  invariant11(this._isOpen, "Not open.", {
3664
3731
  F: __dxlog_file13,
3665
- L: 164,
3732
+ L: 167,
3666
3733
  S: this,
3667
3734
  A: [
3668
3735
  "this._isOpen",
@@ -3671,7 +3738,7 @@ var DataSpaceManager = class {
3671
3738
  });
3672
3739
  invariant11(!this._spaces.has(opts.spaceKey), "Space already exists.", {
3673
3740
  F: __dxlog_file13,
3674
- L: 165,
3741
+ L: 168,
3675
3742
  S: this,
3676
3743
  A: [
3677
3744
  "!this._spaces.has(opts.spaceKey)",
@@ -3706,7 +3773,7 @@ var DataSpaceManager = class {
3706
3773
  metadata
3707
3774
  }, {
3708
3775
  F: __dxlog_file13,
3709
- L: 198,
3776
+ L: 201,
3710
3777
  S: this,
3711
3778
  C: (f, a) => f(...a)
3712
3779
  });
@@ -3733,17 +3800,18 @@ var DataSpaceManager = class {
3733
3800
  credentialProvider: createAuthProvider(this._signingContext.credentialSigner),
3734
3801
  credentialAuthenticator: deferFunction2(() => dataSpace.authVerifier.verifier)
3735
3802
  },
3736
- onNetworkConnection: (session) => {
3803
+ onAuthorizedConnection: (session) => {
3737
3804
  session.addExtension("dxos.mesh.teleport.gossip", gossip.createExtension({
3738
3805
  remotePeerId: session.remotePeerId
3739
3806
  }));
3740
3807
  session.addExtension("dxos.mesh.teleport.notarization", dataSpace.notarizationPlugin.createExtension());
3808
+ this._automergeHost.authorizeDevice(space.key, session.remotePeerId);
3741
3809
  session.addExtension("dxos.mesh.teleport.automerge", this._automergeHost.createExtension());
3742
3810
  },
3743
3811
  onAuthFailure: () => {
3744
3812
  log11.warn("auth failure", void 0, {
3745
3813
  F: __dxlog_file13,
3746
- L: 234,
3814
+ L: 238,
3747
3815
  S: this,
3748
3816
  C: (f, a) => f(...a)
3749
3817
  });
@@ -3767,7 +3835,7 @@ var DataSpaceManager = class {
3767
3835
  space: space.key
3768
3836
  }, {
3769
3837
  F: __dxlog_file13,
3770
- L: 252,
3838
+ L: 256,
3771
3839
  S: this,
3772
3840
  C: (f, a) => f(...a)
3773
3841
  });
@@ -3779,7 +3847,7 @@ var DataSpaceManager = class {
3779
3847
  open: this._isOpen
3780
3848
  }, {
3781
3849
  F: __dxlog_file13,
3782
- L: 259,
3850
+ L: 263,
3783
3851
  S: this,
3784
3852
  C: (f, a) => f(...a)
3785
3853
  });
@@ -3792,7 +3860,7 @@ var DataSpaceManager = class {
3792
3860
  space: space.key
3793
3861
  }, {
3794
3862
  F: __dxlog_file13,
3795
- L: 265,
3863
+ L: 269,
3796
3864
  S: this,
3797
3865
  C: (f, a) => f(...a)
3798
3866
  });
@@ -4348,7 +4416,7 @@ var ServiceRegistry = class {
4348
4416
  };
4349
4417
 
4350
4418
  // packages/sdk/client-services/src/packlets/locks/browser.ts
4351
- import { asyncTimeout, Trigger as Trigger6 } from "@dxos/async";
4419
+ import { asyncTimeout as asyncTimeout2, Trigger as Trigger6 } from "@dxos/async";
4352
4420
  import { RESOURCE_LOCK_TIMEOUT } from "@dxos/client-protocol";
4353
4421
  import { log as log14, logInfo } from "@dxos/log";
4354
4422
  function _ts_decorate7(decorators, target, key, desc) {
@@ -4389,7 +4457,7 @@ var Lock = class {
4389
4457
  S: this,
4390
4458
  C: (f, a) => f(...a)
4391
4459
  });
4392
- await asyncTimeout(this._requestLock(), RESOURCE_LOCK_TIMEOUT);
4460
+ await asyncTimeout2(this._requestLock(), RESOURCE_LOCK_TIMEOUT);
4393
4461
  log14("acquired lock", void 0, {
4394
4462
  F: __dxlog_file16,
4395
4463
  L: 44,
@@ -4536,7 +4604,7 @@ import { createSimplePeerTransportFactory, NetworkManager } from "@dxos/network-
4536
4604
  import { trace as trace9 } from "@dxos/protocols";
4537
4605
  import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
4538
4606
  import { TextModel } from "@dxos/text-model";
4539
- import { TRACE_PROCESSOR, trace as Trace3 } from "@dxos/tracing";
4607
+ import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace3 } from "@dxos/tracing";
4540
4608
  import { WebsocketRpcClient } from "@dxos/websocket-rpc";
4541
4609
 
4542
4610
  // packages/sdk/client-services/src/packlets/devices/devices-service.ts
@@ -4712,6 +4780,7 @@ var NetworkServiceImpl = class {
4712
4780
  const update = () => {
4713
4781
  next({
4714
4782
  swarm: this.networkManager.connectionState,
4783
+ connectionInfo: this.networkManager.connectionLog?.swarms,
4715
4784
  signaling: this.signalManager.getStatus().map(({ host, state }) => ({
4716
4785
  server: host,
4717
4786
  state
@@ -4761,6 +4830,9 @@ var SystemServiceImpl = class {
4761
4830
  })))
4762
4831
  };
4763
4832
  }
4833
+ async getPlatform() {
4834
+ return getPlatform();
4835
+ }
4764
4836
  async updateStatus({ status }) {
4765
4837
  await this._onUpdateStatus(status);
4766
4838
  }
@@ -4824,7 +4896,7 @@ var ClientServicesHost = class {
4824
4896
  lockKey,
4825
4897
  callbacks
4826
4898
  } = {}) {
4827
- this._tracingService = TRACE_PROCESSOR.createTraceSender();
4899
+ this._tracingService = TRACE_PROCESSOR2.createTraceSender();
4828
4900
  this._statusUpdate = new Event8();
4829
4901
  this._opening = false;
4830
4902
  this._open = false;
@@ -5222,4 +5294,4 @@ export {
5222
5294
  createDefaultModelFactory,
5223
5295
  ClientServicesHost
5224
5296
  };
5225
- //# sourceMappingURL=chunk-VO55YITH.mjs.map
5297
+ //# sourceMappingURL=chunk-NVEOTS4E.mjs.map