@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.
- package/dist/lib/browser/{chunk-LUXAN22G.mjs → chunk-TB6BFBMH.mjs} +47 -22
- package/dist/lib/browser/chunk-TB6BFBMH.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-45NL4DNZ.cjs → chunk-NDK3LMHN.cjs} +62 -37
- package/dist/lib/node/chunk-NDK3LMHN.cjs.map +7 -0
- package/dist/lib/node/index.cjs +37 -37
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/diagnostics.d.ts +32 -19
- package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +1 -0
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/network/network-service.ts +4 -1
- package/src/packlets/services/diagnostics.ts +33 -16
- package/src/packlets/spaces/data-space.ts +13 -0
- package/src/packlets/spaces/spaces-service.ts +2 -2
- package/src/packlets/system/system-service.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-LUXAN22G.mjs.map +0 -7
- package/dist/lib/node/chunk-45NL4DNZ.cjs.map +0 -7
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_NDK3LMHN_exports = {};
|
|
30
|
+
__export(chunk_NDK3LMHN_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
DataSpace: () => DataSpace,
|
|
@@ -60,7 +60,7 @@ __export(chunk_45NL4DNZ_exports, {
|
|
|
60
60
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
61
61
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
62
62
|
});
|
|
63
|
-
module.exports = __toCommonJS(
|
|
63
|
+
module.exports = __toCommonJS(chunk_NDK3LMHN_exports);
|
|
64
64
|
var import_async = require("@dxos/async");
|
|
65
65
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
66
66
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -153,6 +153,7 @@ var import_invariant9 = require("@dxos/invariant");
|
|
|
153
153
|
var import_log8 = require("@dxos/log");
|
|
154
154
|
var import_protocols7 = require("@dxos/protocols");
|
|
155
155
|
var import_services6 = require("@dxos/protocols/proto/dxos/client/services");
|
|
156
|
+
var import_tracing4 = require("@dxos/tracing");
|
|
156
157
|
var import_services7 = require("@dxos/protocols/proto/dxos/client/services");
|
|
157
158
|
var import_async10 = require("@dxos/async");
|
|
158
159
|
var import_client_protocol3 = require("@dxos/client-protocol");
|
|
@@ -166,7 +167,7 @@ var import_protocols8 = require("@dxos/protocols");
|
|
|
166
167
|
var import_services8 = require("@dxos/protocols/proto/dxos/client/services");
|
|
167
168
|
var import_credentials10 = require("@dxos/protocols/proto/dxos/halo/credentials");
|
|
168
169
|
var import_timeframe2 = require("@dxos/timeframe");
|
|
169
|
-
var
|
|
170
|
+
var import_tracing5 = require("@dxos/tracing");
|
|
170
171
|
var import_util4 = require("@dxos/util");
|
|
171
172
|
var import_credentials11 = require("@dxos/credentials");
|
|
172
173
|
var import_async11 = require("@dxos/async");
|
|
@@ -211,7 +212,7 @@ var import_log13 = require("@dxos/log");
|
|
|
211
212
|
var import_protocols12 = require("@dxos/protocols");
|
|
212
213
|
var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
|
|
213
214
|
var import_teleport_extension_object_sync = require("@dxos/teleport-extension-object-sync");
|
|
214
|
-
var
|
|
215
|
+
var import_tracing6 = require("@dxos/tracing");
|
|
215
216
|
var import_util7 = require("@dxos/util");
|
|
216
217
|
var import_invariant15 = require("@dxos/invariant");
|
|
217
218
|
var import_lock_file = require("@dxos/lock-file");
|
|
@@ -236,7 +237,7 @@ var import_network_manager2 = require("@dxos/network-manager");
|
|
|
236
237
|
var import_protocols14 = require("@dxos/protocols");
|
|
237
238
|
var import_services12 = require("@dxos/protocols/proto/dxos/client/services");
|
|
238
239
|
var import_text_model = require("@dxos/text-model");
|
|
239
|
-
var
|
|
240
|
+
var import_tracing7 = require("@dxos/tracing");
|
|
240
241
|
var import_websocket_rpc = require("@dxos/websocket-rpc");
|
|
241
242
|
var import_async16 = require("@dxos/async");
|
|
242
243
|
var import_codec_protobuf12 = require("@dxos/codec-protobuf");
|
|
@@ -2674,7 +2675,7 @@ var getPlatform = () => {
|
|
|
2674
2675
|
};
|
|
2675
2676
|
}
|
|
2676
2677
|
};
|
|
2677
|
-
var DXOS_VERSION = "0.3.11-main.
|
|
2678
|
+
var DXOS_VERSION = "0.3.11-main.e26c0a5";
|
|
2678
2679
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
2679
2680
|
var DEFAULT_TIMEOUT = 1e3;
|
|
2680
2681
|
var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
@@ -2686,12 +2687,13 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
|
2686
2687
|
storage: {
|
|
2687
2688
|
version: import_protocols7.STORAGE_VERSION
|
|
2688
2689
|
}
|
|
2689
|
-
}
|
|
2690
|
+
},
|
|
2691
|
+
trace: import_tracing4.TRACE_PROCESSOR.getDiagnostics()
|
|
2690
2692
|
};
|
|
2691
2693
|
{
|
|
2692
2694
|
(0, import_invariant9.invariant)(clientServices.LoggingService, "SystemService is not available.", {
|
|
2693
2695
|
F: __dxlog_file10,
|
|
2694
|
-
L:
|
|
2696
|
+
L: 111,
|
|
2695
2697
|
S: void 0,
|
|
2696
2698
|
A: [
|
|
2697
2699
|
"clientServices.LoggingService",
|
|
@@ -2757,7 +2759,7 @@ var getProperties = (space) => {
|
|
|
2757
2759
|
} catch (err) {
|
|
2758
2760
|
import_log8.log.warn(err.message, void 0, {
|
|
2759
2761
|
F: __dxlog_file10,
|
|
2760
|
-
L:
|
|
2762
|
+
L: 196,
|
|
2761
2763
|
S: void 0,
|
|
2762
2764
|
C: (f, a) => f(...a)
|
|
2763
2765
|
});
|
|
@@ -3129,7 +3131,7 @@ var DataSpace = class {
|
|
|
3129
3131
|
state: import_services8.SpaceState[this._state]
|
|
3130
3132
|
}, {
|
|
3131
3133
|
F: __dxlog_file12,
|
|
3132
|
-
L:
|
|
3134
|
+
L: 141,
|
|
3133
3135
|
S: this,
|
|
3134
3136
|
C: (f, a) => f(...a)
|
|
3135
3137
|
});
|
|
@@ -3162,6 +3164,12 @@ var DataSpace = class {
|
|
|
3162
3164
|
get automergeSpaceState() {
|
|
3163
3165
|
return this._automergeSpaceState;
|
|
3164
3166
|
}
|
|
3167
|
+
get _automergeInfo() {
|
|
3168
|
+
return {
|
|
3169
|
+
rootUrl: this._automergeSpaceState.rootUrl,
|
|
3170
|
+
lastEpoch: this._automergeSpaceState.lastEpoch
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3165
3173
|
async open() {
|
|
3166
3174
|
await this._open();
|
|
3167
3175
|
}
|
|
@@ -3176,7 +3184,7 @@ var DataSpace = class {
|
|
|
3176
3184
|
state: import_services8.SpaceState[this._state]
|
|
3177
3185
|
}, {
|
|
3178
3186
|
F: __dxlog_file12,
|
|
3179
|
-
L:
|
|
3187
|
+
L: 203,
|
|
3180
3188
|
S: this,
|
|
3181
3189
|
C: (f, a) => f(...a)
|
|
3182
3190
|
});
|
|
@@ -3194,7 +3202,7 @@ var DataSpace = class {
|
|
|
3194
3202
|
state: import_services8.SpaceState[this._state]
|
|
3195
3203
|
}, {
|
|
3196
3204
|
F: __dxlog_file12,
|
|
3197
|
-
L:
|
|
3205
|
+
L: 217,
|
|
3198
3206
|
S: this,
|
|
3199
3207
|
C: (f, a) => f(...a)
|
|
3200
3208
|
});
|
|
@@ -3226,7 +3234,7 @@ var DataSpace = class {
|
|
|
3226
3234
|
if (err instanceof import_protocols8.CancelledError) {
|
|
3227
3235
|
(0, import_log9.log)("data pipeline initialization cancelled", err, {
|
|
3228
3236
|
F: __dxlog_file12,
|
|
3229
|
-
L:
|
|
3237
|
+
L: 250,
|
|
3230
3238
|
S: this,
|
|
3231
3239
|
C: (f, a) => f(...a)
|
|
3232
3240
|
});
|
|
@@ -3234,7 +3242,7 @@ var DataSpace = class {
|
|
|
3234
3242
|
}
|
|
3235
3243
|
import_log9.log.error("Error initializing data pipeline", err, {
|
|
3236
3244
|
F: __dxlog_file12,
|
|
3237
|
-
L:
|
|
3245
|
+
L: 254,
|
|
3238
3246
|
S: this,
|
|
3239
3247
|
C: (f, a) => f(...a)
|
|
3240
3248
|
});
|
|
@@ -3243,7 +3251,7 @@ var DataSpace = class {
|
|
|
3243
3251
|
state: import_services8.SpaceState[this._state]
|
|
3244
3252
|
}, {
|
|
3245
3253
|
F: __dxlog_file12,
|
|
3246
|
-
L:
|
|
3254
|
+
L: 256,
|
|
3247
3255
|
S: this,
|
|
3248
3256
|
C: (f, a) => f(...a)
|
|
3249
3257
|
});
|
|
@@ -3263,7 +3271,7 @@ var DataSpace = class {
|
|
|
3263
3271
|
state: import_services8.SpaceState[this._state]
|
|
3264
3272
|
}, {
|
|
3265
3273
|
F: __dxlog_file12,
|
|
3266
|
-
L:
|
|
3274
|
+
L: 272,
|
|
3267
3275
|
S: this,
|
|
3268
3276
|
C: (f, a) => f(...a)
|
|
3269
3277
|
});
|
|
@@ -3274,7 +3282,7 @@ var DataSpace = class {
|
|
|
3274
3282
|
await (0, import_context6.cancelWithContext)(this._ctx, this._inner.dataPipeline.ensureEpochInitialized());
|
|
3275
3283
|
(0, import_log9.log)("waiting for data pipeline to reach target timeframe", void 0, {
|
|
3276
3284
|
F: __dxlog_file12,
|
|
3277
|
-
L:
|
|
3285
|
+
L: 286,
|
|
3278
3286
|
S: this,
|
|
3279
3287
|
C: (f, a) => f(...a)
|
|
3280
3288
|
});
|
|
@@ -3285,7 +3293,7 @@ var DataSpace = class {
|
|
|
3285
3293
|
this.metrics.dataPipelineReady = /* @__PURE__ */ new Date();
|
|
3286
3294
|
(0, import_log9.log)("data pipeline ready", void 0, {
|
|
3287
3295
|
F: __dxlog_file12,
|
|
3288
|
-
L:
|
|
3296
|
+
L: 295,
|
|
3289
3297
|
S: this,
|
|
3290
3298
|
C: (f, a) => f(...a)
|
|
3291
3299
|
});
|
|
@@ -3295,7 +3303,7 @@ var DataSpace = class {
|
|
|
3295
3303
|
state: import_services8.SpaceState[this._state]
|
|
3296
3304
|
}, {
|
|
3297
3305
|
F: __dxlog_file12,
|
|
3298
|
-
L:
|
|
3306
|
+
L: 299,
|
|
3299
3307
|
S: this,
|
|
3300
3308
|
C: (f, a) => f(...a)
|
|
3301
3309
|
});
|
|
@@ -3311,7 +3319,7 @@ var DataSpace = class {
|
|
|
3311
3319
|
await this._createWritableFeeds();
|
|
3312
3320
|
(0, import_log9.log)("writable feeds created", void 0, {
|
|
3313
3321
|
F: __dxlog_file12,
|
|
3314
|
-
L:
|
|
3322
|
+
L: 315,
|
|
3315
3323
|
S: this,
|
|
3316
3324
|
C: (f, a) => f(...a)
|
|
3317
3325
|
});
|
|
@@ -3374,7 +3382,7 @@ var DataSpace = class {
|
|
|
3374
3382
|
rootUrl
|
|
3375
3383
|
}, {
|
|
3376
3384
|
F: __dxlog_file12,
|
|
3377
|
-
L:
|
|
3385
|
+
L: 381,
|
|
3378
3386
|
S: this,
|
|
3379
3387
|
C: (f, a) => f(...a)
|
|
3380
3388
|
});
|
|
@@ -3395,7 +3403,7 @@ var DataSpace = class {
|
|
|
3395
3403
|
err
|
|
3396
3404
|
}, {
|
|
3397
3405
|
F: __dxlog_file12,
|
|
3398
|
-
L:
|
|
3406
|
+
L: 394,
|
|
3399
3407
|
S: this,
|
|
3400
3408
|
C: (f, a) => f(...a)
|
|
3401
3409
|
});
|
|
@@ -3485,13 +3493,29 @@ var DataSpace = class {
|
|
|
3485
3493
|
state: import_services8.SpaceState[this._state]
|
|
3486
3494
|
}, {
|
|
3487
3495
|
F: __dxlog_file12,
|
|
3488
|
-
L:
|
|
3496
|
+
L: 483,
|
|
3489
3497
|
S: this,
|
|
3490
3498
|
C: (f, a) => f(...a)
|
|
3491
3499
|
});
|
|
3492
3500
|
this.stateUpdate.emit();
|
|
3493
3501
|
}
|
|
3494
3502
|
};
|
|
3503
|
+
_ts_decorate4([
|
|
3504
|
+
import_tracing5.trace.info()
|
|
3505
|
+
], DataSpace.prototype, "_inner", void 0);
|
|
3506
|
+
_ts_decorate4([
|
|
3507
|
+
import_tracing5.trace.info()
|
|
3508
|
+
], DataSpace.prototype, "key", null);
|
|
3509
|
+
_ts_decorate4([
|
|
3510
|
+
import_tracing5.trace.info({
|
|
3511
|
+
enum: import_services8.SpaceState
|
|
3512
|
+
})
|
|
3513
|
+
], DataSpace.prototype, "state", null);
|
|
3514
|
+
_ts_decorate4([
|
|
3515
|
+
import_tracing5.trace.info({
|
|
3516
|
+
depth: null
|
|
3517
|
+
})
|
|
3518
|
+
], DataSpace.prototype, "_automergeInfo", null);
|
|
3495
3519
|
_ts_decorate4([
|
|
3496
3520
|
import_async10.synchronized
|
|
3497
3521
|
], DataSpace.prototype, "open", null);
|
|
@@ -3499,12 +3523,12 @@ _ts_decorate4([
|
|
|
3499
3523
|
import_async10.synchronized
|
|
3500
3524
|
], DataSpace.prototype, "close", null);
|
|
3501
3525
|
_ts_decorate4([
|
|
3502
|
-
|
|
3526
|
+
import_tracing5.trace.span({
|
|
3503
3527
|
showInBrowserTimeline: true
|
|
3504
3528
|
})
|
|
3505
3529
|
], DataSpace.prototype, "initializeDataPipeline", null);
|
|
3506
3530
|
_ts_decorate4([
|
|
3507
|
-
|
|
3531
|
+
import_tracing5.trace.span({
|
|
3508
3532
|
showInBrowserTimeline: true
|
|
3509
3533
|
})
|
|
3510
3534
|
], DataSpace.prototype, "_initializeAndReadControlPipeline", null);
|
|
@@ -3518,7 +3542,8 @@ _ts_decorate4([
|
|
|
3518
3542
|
import_async10.synchronized
|
|
3519
3543
|
], DataSpace.prototype, "deactivate", null);
|
|
3520
3544
|
DataSpace = _ts_decorate4([
|
|
3521
|
-
(0, import_async10.trackLeaks)("open", "close")
|
|
3545
|
+
(0, import_async10.trackLeaks)("open", "close"),
|
|
3546
|
+
import_tracing5.trace.resource()
|
|
3522
3547
|
], DataSpace);
|
|
3523
3548
|
var spaceGenesis = async (keyring, signingContext, space, automergeRoot) => {
|
|
3524
3549
|
const credentials = [
|
|
@@ -4382,14 +4407,14 @@ var ServiceContext = class {
|
|
|
4382
4407
|
}
|
|
4383
4408
|
};
|
|
4384
4409
|
_ts_decorate6([
|
|
4385
|
-
|
|
4410
|
+
import_tracing6.trace.span()
|
|
4386
4411
|
], ServiceContext.prototype, "open", null);
|
|
4387
4412
|
_ts_decorate6([
|
|
4388
|
-
|
|
4413
|
+
import_tracing6.trace.span()
|
|
4389
4414
|
], ServiceContext.prototype, "_initialize", null);
|
|
4390
4415
|
ServiceContext = _ts_decorate6([
|
|
4391
4416
|
(0, import_util7.safeInstanceof)("dxos.client-services.ServiceContext"),
|
|
4392
|
-
|
|
4417
|
+
import_tracing6.trace.resource()
|
|
4393
4418
|
], ServiceContext);
|
|
4394
4419
|
var ServiceRegistry = class {
|
|
4395
4420
|
// prettier-ignore
|
|
@@ -4777,7 +4802,7 @@ var ClientServicesHost = class {
|
|
|
4777
4802
|
lockKey,
|
|
4778
4803
|
callbacks
|
|
4779
4804
|
} = {}) {
|
|
4780
|
-
this._tracingService =
|
|
4805
|
+
this._tracingService = import_tracing7.TRACE_PROCESSOR.createTraceSender();
|
|
4781
4806
|
this._statusUpdate = new import_async15.Event();
|
|
4782
4807
|
this._opening = false;
|
|
4783
4808
|
this._open = false;
|
|
@@ -5124,21 +5149,21 @@ var ClientServicesHost = class {
|
|
|
5124
5149
|
}
|
|
5125
5150
|
};
|
|
5126
5151
|
_ts_decorate8([
|
|
5127
|
-
|
|
5152
|
+
import_tracing7.trace.info()
|
|
5128
5153
|
], ClientServicesHost.prototype, "_opening", void 0);
|
|
5129
5154
|
_ts_decorate8([
|
|
5130
|
-
|
|
5155
|
+
import_tracing7.trace.info()
|
|
5131
5156
|
], ClientServicesHost.prototype, "_open", void 0);
|
|
5132
5157
|
_ts_decorate8([
|
|
5133
5158
|
import_async15.synchronized,
|
|
5134
|
-
|
|
5159
|
+
import_tracing7.trace.span()
|
|
5135
5160
|
], ClientServicesHost.prototype, "open", null);
|
|
5136
5161
|
_ts_decorate8([
|
|
5137
5162
|
import_async15.synchronized,
|
|
5138
|
-
|
|
5163
|
+
import_tracing7.trace.span()
|
|
5139
5164
|
], ClientServicesHost.prototype, "close", null);
|
|
5140
5165
|
ClientServicesHost = _ts_decorate8([
|
|
5141
|
-
|
|
5166
|
+
import_tracing7.trace.resource()
|
|
5142
5167
|
], ClientServicesHost);
|
|
5143
5168
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5144
5169
|
0 && (module.exports = {
|
|
@@ -5174,4 +5199,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
5174
5199
|
subscribeToSpaces,
|
|
5175
5200
|
subscribeToSwarmInfo
|
|
5176
5201
|
});
|
|
5177
|
-
//# sourceMappingURL=chunk-
|
|
5202
|
+
//# sourceMappingURL=chunk-NDK3LMHN.cjs.map
|