@dxos/client-services 0.3.11-main.e19f39d → 0.3.11-main.e26c0a5

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.
@@ -2533,6 +2533,7 @@ 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
2538
2539
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -2565,7 +2566,7 @@ var getPlatform = () => {
2565
2566
  };
2566
2567
 
2567
2568
  // packages/sdk/client-services/src/version.ts
2568
- var DXOS_VERSION = "0.3.11-main.e19f39d";
2569
+ var DXOS_VERSION = "0.3.11-main.e26c0a5";
2569
2570
 
2570
2571
  // packages/sdk/client-services/src/packlets/services/diagnostics.ts
2571
2572
  var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
@@ -2579,12 +2580,13 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
2579
2580
  storage: {
2580
2581
  version: STORAGE_VERSION
2581
2582
  }
2582
- }
2583
+ },
2584
+ trace: TRACE_PROCESSOR.getDiagnostics()
2583
2585
  };
2584
2586
  {
2585
2587
  invariant9(clientServices.LoggingService, "SystemService is not available.", {
2586
2588
  F: __dxlog_file10,
2587
- L: 94,
2589
+ L: 111,
2588
2590
  S: void 0,
2589
2591
  A: [
2590
2592
  "clientServices.LoggingService",
@@ -2650,7 +2652,7 @@ var getProperties = (space) => {
2650
2652
  } catch (err) {
2651
2653
  log8.warn(err.message, void 0, {
2652
2654
  F: __dxlog_file10,
2653
- L: 179,
2655
+ L: 196,
2654
2656
  S: void 0,
2655
2657
  C: (f, a) => f(...a)
2656
2658
  });
@@ -3057,7 +3059,7 @@ var DataSpace = class {
3057
3059
  state: SpaceState[this._state]
3058
3060
  }, {
3059
3061
  F: __dxlog_file12,
3060
- L: 138,
3062
+ L: 141,
3061
3063
  S: this,
3062
3064
  C: (f, a) => f(...a)
3063
3065
  });
@@ -3090,6 +3092,12 @@ var DataSpace = class {
3090
3092
  get automergeSpaceState() {
3091
3093
  return this._automergeSpaceState;
3092
3094
  }
3095
+ get _automergeInfo() {
3096
+ return {
3097
+ rootUrl: this._automergeSpaceState.rootUrl,
3098
+ lastEpoch: this._automergeSpaceState.lastEpoch
3099
+ };
3100
+ }
3093
3101
  async open() {
3094
3102
  await this._open();
3095
3103
  }
@@ -3104,7 +3112,7 @@ var DataSpace = class {
3104
3112
  state: SpaceState[this._state]
3105
3113
  }, {
3106
3114
  F: __dxlog_file12,
3107
- L: 190,
3115
+ L: 203,
3108
3116
  S: this,
3109
3117
  C: (f, a) => f(...a)
3110
3118
  });
@@ -3122,7 +3130,7 @@ var DataSpace = class {
3122
3130
  state: SpaceState[this._state]
3123
3131
  }, {
3124
3132
  F: __dxlog_file12,
3125
- L: 204,
3133
+ L: 217,
3126
3134
  S: this,
3127
3135
  C: (f, a) => f(...a)
3128
3136
  });
@@ -3154,7 +3162,7 @@ var DataSpace = class {
3154
3162
  if (err instanceof CancelledError) {
3155
3163
  log10("data pipeline initialization cancelled", err, {
3156
3164
  F: __dxlog_file12,
3157
- L: 237,
3165
+ L: 250,
3158
3166
  S: this,
3159
3167
  C: (f, a) => f(...a)
3160
3168
  });
@@ -3162,7 +3170,7 @@ var DataSpace = class {
3162
3170
  }
3163
3171
  log10.error("Error initializing data pipeline", err, {
3164
3172
  F: __dxlog_file12,
3165
- L: 241,
3173
+ L: 254,
3166
3174
  S: this,
3167
3175
  C: (f, a) => f(...a)
3168
3176
  });
@@ -3171,7 +3179,7 @@ var DataSpace = class {
3171
3179
  state: SpaceState[this._state]
3172
3180
  }, {
3173
3181
  F: __dxlog_file12,
3174
- L: 243,
3182
+ L: 256,
3175
3183
  S: this,
3176
3184
  C: (f, a) => f(...a)
3177
3185
  });
@@ -3191,7 +3199,7 @@ var DataSpace = class {
3191
3199
  state: SpaceState[this._state]
3192
3200
  }, {
3193
3201
  F: __dxlog_file12,
3194
- L: 259,
3202
+ L: 272,
3195
3203
  S: this,
3196
3204
  C: (f, a) => f(...a)
3197
3205
  });
@@ -3202,7 +3210,7 @@ var DataSpace = class {
3202
3210
  await cancelWithContext2(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
3203
3211
  log10("waiting for data pipeline to reach target timeframe", void 0, {
3204
3212
  F: __dxlog_file12,
3205
- L: 273,
3213
+ L: 286,
3206
3214
  S: this,
3207
3215
  C: (f, a) => f(...a)
3208
3216
  });
@@ -3213,7 +3221,7 @@ var DataSpace = class {
3213
3221
  this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
3214
3222
  log10("data pipeline ready", void 0, {
3215
3223
  F: __dxlog_file12,
3216
- L: 282,
3224
+ L: 295,
3217
3225
  S: this,
3218
3226
  C: (f, a) => f(...a)
3219
3227
  });
@@ -3223,7 +3231,7 @@ var DataSpace = class {
3223
3231
  state: SpaceState[this._state]
3224
3232
  }, {
3225
3233
  F: __dxlog_file12,
3226
- L: 286,
3234
+ L: 299,
3227
3235
  S: this,
3228
3236
  C: (f, a) => f(...a)
3229
3237
  });
@@ -3239,7 +3247,7 @@ var DataSpace = class {
3239
3247
  await this._createWritableFeeds();
3240
3248
  log10("writable feeds created", void 0, {
3241
3249
  F: __dxlog_file12,
3242
- L: 302,
3250
+ L: 315,
3243
3251
  S: this,
3244
3252
  C: (f, a) => f(...a)
3245
3253
  });
@@ -3302,7 +3310,7 @@ var DataSpace = class {
3302
3310
  rootUrl
3303
3311
  }, {
3304
3312
  F: __dxlog_file12,
3305
- L: 368,
3313
+ L: 381,
3306
3314
  S: this,
3307
3315
  C: (f, a) => f(...a)
3308
3316
  });
@@ -3323,7 +3331,7 @@ var DataSpace = class {
3323
3331
  err
3324
3332
  }, {
3325
3333
  F: __dxlog_file12,
3326
- L: 381,
3334
+ L: 394,
3327
3335
  S: this,
3328
3336
  C: (f, a) => f(...a)
3329
3337
  });
@@ -3413,13 +3421,29 @@ var DataSpace = class {
3413
3421
  state: SpaceState[this._state]
3414
3422
  }, {
3415
3423
  F: __dxlog_file12,
3416
- L: 470,
3424
+ L: 483,
3417
3425
  S: this,
3418
3426
  C: (f, a) => f(...a)
3419
3427
  });
3420
3428
  this.stateUpdate.emit();
3421
3429
  }
3422
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);
3423
3447
  _ts_decorate4([
3424
3448
  synchronized
3425
3449
  ], DataSpace.prototype, "open", null);
@@ -3446,7 +3470,8 @@ _ts_decorate4([
3446
3470
  synchronized
3447
3471
  ], DataSpace.prototype, "deactivate", null);
3448
3472
  DataSpace = _ts_decorate4([
3449
- trackLeaks("open", "close")
3473
+ trackLeaks("open", "close"),
3474
+ trace6.resource()
3450
3475
  ], DataSpace);
3451
3476
 
3452
3477
  // packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
@@ -4579,7 +4604,7 @@ import { createSimplePeerTransportFactory, NetworkManager } from "@dxos/network-
4579
4604
  import { trace as trace9 } from "@dxos/protocols";
4580
4605
  import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
4581
4606
  import { TextModel } from "@dxos/text-model";
4582
- import { TRACE_PROCESSOR, trace as Trace3 } from "@dxos/tracing";
4607
+ import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace3 } from "@dxos/tracing";
4583
4608
  import { WebsocketRpcClient } from "@dxos/websocket-rpc";
4584
4609
 
4585
4610
  // packages/sdk/client-services/src/packlets/devices/devices-service.ts
@@ -4871,7 +4896,7 @@ var ClientServicesHost = class {
4871
4896
  lockKey,
4872
4897
  callbacks
4873
4898
  } = {}) {
4874
- this._tracingService = TRACE_PROCESSOR.createTraceSender();
4899
+ this._tracingService = TRACE_PROCESSOR2.createTraceSender();
4875
4900
  this._statusUpdate = new Event8();
4876
4901
  this._opening = false;
4877
4902
  this._open = false;
@@ -5269,4 +5294,4 @@ export {
5269
5294
  createDefaultModelFactory,
5270
5295
  ClientServicesHost
5271
5296
  };
5272
- //# sourceMappingURL=chunk-LUXAN22G.mjs.map
5297
+ //# sourceMappingURL=chunk-TB6BFBMH.mjs.map