@dxos/client-services 0.5.3-next.2c59258 → 0.5.3-next.57eca40
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-R3VORRTJ.mjs → chunk-RQNS7EAS.mjs} +93 -59
- package/dist/lib/browser/{chunk-R3VORRTJ.mjs.map → chunk-RQNS7EAS.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +3 -1
- package/dist/lib/browser/index.mjs.map +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-VOYHS6QR.cjs → chunk-GVGQ4FCH.cjs} +127 -92
- package/dist/lib/node/chunk-GVGQ4FCH.cjs.map +7 -0
- package/dist/lib/node/index.cjs +45 -43
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +6 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/spaces/data-space-manager.ts +33 -4
- package/src/packlets/spaces/data-space.ts +25 -8
- package/src/version.ts +1 -1
- package/dist/lib/node/chunk-VOYHS6QR.cjs.map +0 -7
|
@@ -3307,18 +3307,16 @@ ClientRpcServer = _ts_decorate3([
|
|
|
3307
3307
|
// packages/sdk/client-services/src/packlets/spaces/data-space.ts
|
|
3308
3308
|
import { Event as Event6, asyncTimeout, scheduleTask as scheduleTask5, sleep as sleep2, synchronized, trackLeaks } from "@dxos/async";
|
|
3309
3309
|
import { AUTH_TIMEOUT as AUTH_TIMEOUT2 } from "@dxos/client-protocol";
|
|
3310
|
-
import {
|
|
3310
|
+
import { Context as Context8, ContextDisposedError as ContextDisposedError3, cancelWithContext as cancelWithContext4 } from "@dxos/context";
|
|
3311
3311
|
import { timed, warnAfterTimeout } from "@dxos/debug";
|
|
3312
|
-
import { createMappedFeedWriter } from "@dxos/echo-pipeline";
|
|
3313
|
-
import { AutomergeDocumentLoaderImpl } from "@dxos/echo-pipeline";
|
|
3312
|
+
import { AutomergeDocumentLoaderImpl, createMappedFeedWriter } from "@dxos/echo-pipeline";
|
|
3314
3313
|
import { TYPE_PROPERTIES } from "@dxos/echo-schema";
|
|
3315
3314
|
import { failedInvariant, invariant as invariant12 } from "@dxos/invariant";
|
|
3316
3315
|
import { PublicKey as PublicKey10 } from "@dxos/keys";
|
|
3317
3316
|
import { log as log11 } from "@dxos/log";
|
|
3318
3317
|
import { CancelledError, SystemError } from "@dxos/protocols";
|
|
3319
|
-
import {
|
|
3320
|
-
import { SpaceMember as SpaceMember3 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
3321
|
-
import { AdmittedFeed as AdmittedFeed3 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
3318
|
+
import { CreateEpochRequest, SpaceState } from "@dxos/protocols/proto/dxos/client/services";
|
|
3319
|
+
import { AdmittedFeed as AdmittedFeed3, SpaceMember as SpaceMember3 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
3322
3320
|
import { Timeframe as Timeframe2 } from "@dxos/timeframe";
|
|
3323
3321
|
import { trace as trace6 } from "@dxos/tracing";
|
|
3324
3322
|
import { ComplexSet as ComplexSet5, assignDeep } from "@dxos/util";
|
|
@@ -3676,7 +3674,7 @@ var DataSpace = class {
|
|
|
3676
3674
|
state: SpaceState[this._state]
|
|
3677
3675
|
}, {
|
|
3678
3676
|
F: __dxlog_file13,
|
|
3679
|
-
L:
|
|
3677
|
+
L: 141,
|
|
3680
3678
|
S: this,
|
|
3681
3679
|
C: (f, a) => f(...a)
|
|
3682
3680
|
});
|
|
@@ -3726,7 +3724,7 @@ var DataSpace = class {
|
|
|
3726
3724
|
state: SpaceState[this._state]
|
|
3727
3725
|
}, {
|
|
3728
3726
|
F: __dxlog_file13,
|
|
3729
|
-
L:
|
|
3727
|
+
L: 199,
|
|
3730
3728
|
S: this,
|
|
3731
3729
|
C: (f, a) => f(...a)
|
|
3732
3730
|
});
|
|
@@ -3744,7 +3742,7 @@ var DataSpace = class {
|
|
|
3744
3742
|
state: SpaceState[this._state]
|
|
3745
3743
|
}, {
|
|
3746
3744
|
F: __dxlog_file13,
|
|
3747
|
-
L:
|
|
3745
|
+
L: 213,
|
|
3748
3746
|
S: this,
|
|
3749
3747
|
C: (f, a) => f(...a)
|
|
3750
3748
|
});
|
|
@@ -3776,7 +3774,7 @@ var DataSpace = class {
|
|
|
3776
3774
|
if (err instanceof CancelledError || err instanceof ContextDisposedError3) {
|
|
3777
3775
|
log11("data pipeline initialization cancelled", err, {
|
|
3778
3776
|
F: __dxlog_file13,
|
|
3779
|
-
L:
|
|
3777
|
+
L: 246,
|
|
3780
3778
|
S: this,
|
|
3781
3779
|
C: (f, a) => f(...a)
|
|
3782
3780
|
});
|
|
@@ -3784,7 +3782,7 @@ var DataSpace = class {
|
|
|
3784
3782
|
}
|
|
3785
3783
|
log11.error("Error initializing data pipeline", err, {
|
|
3786
3784
|
F: __dxlog_file13,
|
|
3787
|
-
L:
|
|
3785
|
+
L: 250,
|
|
3788
3786
|
S: this,
|
|
3789
3787
|
C: (f, a) => f(...a)
|
|
3790
3788
|
});
|
|
@@ -3793,7 +3791,7 @@ var DataSpace = class {
|
|
|
3793
3791
|
state: SpaceState[this._state]
|
|
3794
3792
|
}, {
|
|
3795
3793
|
F: __dxlog_file13,
|
|
3796
|
-
L:
|
|
3794
|
+
L: 252,
|
|
3797
3795
|
S: this,
|
|
3798
3796
|
C: (f, a) => f(...a)
|
|
3799
3797
|
});
|
|
@@ -3813,7 +3811,7 @@ var DataSpace = class {
|
|
|
3813
3811
|
state: SpaceState[this._state]
|
|
3814
3812
|
}, {
|
|
3815
3813
|
F: __dxlog_file13,
|
|
3816
|
-
L:
|
|
3814
|
+
L: 268,
|
|
3817
3815
|
S: this,
|
|
3818
3816
|
C: (f, a) => f(...a)
|
|
3819
3817
|
});
|
|
@@ -3823,7 +3821,7 @@ var DataSpace = class {
|
|
|
3823
3821
|
await cancelWithContext4(this._ctx, this.automergeSpaceState.ensureEpochInitialized());
|
|
3824
3822
|
log11("data pipeline ready", void 0, {
|
|
3825
3823
|
F: __dxlog_file13,
|
|
3826
|
-
L:
|
|
3824
|
+
L: 280,
|
|
3827
3825
|
S: this,
|
|
3828
3826
|
C: (f, a) => f(...a)
|
|
3829
3827
|
});
|
|
@@ -3833,7 +3831,7 @@ var DataSpace = class {
|
|
|
3833
3831
|
state: SpaceState[this._state]
|
|
3834
3832
|
}, {
|
|
3835
3833
|
F: __dxlog_file13,
|
|
3836
|
-
L:
|
|
3834
|
+
L: 284,
|
|
3837
3835
|
S: this,
|
|
3838
3836
|
C: (f, a) => f(...a)
|
|
3839
3837
|
});
|
|
@@ -3849,7 +3847,7 @@ var DataSpace = class {
|
|
|
3849
3847
|
await this._createWritableFeeds();
|
|
3850
3848
|
log11("writable feeds created", void 0, {
|
|
3851
3849
|
F: __dxlog_file13,
|
|
3852
|
-
L:
|
|
3850
|
+
L: 300,
|
|
3853
3851
|
S: this,
|
|
3854
3852
|
C: (f, a) => f(...a)
|
|
3855
3853
|
});
|
|
@@ -3912,7 +3910,7 @@ var DataSpace = class {
|
|
|
3912
3910
|
rootUrl
|
|
3913
3911
|
}, {
|
|
3914
3912
|
F: __dxlog_file13,
|
|
3915
|
-
L:
|
|
3913
|
+
L: 366,
|
|
3916
3914
|
S: this,
|
|
3917
3915
|
C: (f, a) => f(...a)
|
|
3918
3916
|
});
|
|
@@ -3944,7 +3942,7 @@ var DataSpace = class {
|
|
|
3944
3942
|
err
|
|
3945
3943
|
}, {
|
|
3946
3944
|
F: __dxlog_file13,
|
|
3947
|
-
L:
|
|
3945
|
+
L: 391,
|
|
3948
3946
|
S: this,
|
|
3949
3947
|
C: (f, a) => f(...a)
|
|
3950
3948
|
});
|
|
@@ -3999,7 +3997,7 @@ var DataSpace = class {
|
|
|
3999
3997
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4000
3998
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4001
3999
|
F: __dxlog_file13,
|
|
4002
|
-
L:
|
|
4000
|
+
L: 441,
|
|
4003
4001
|
S: this,
|
|
4004
4002
|
A: [
|
|
4005
4003
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4018,7 +4016,7 @@ var DataSpace = class {
|
|
|
4018
4016
|
{
|
|
4019
4017
|
log11.info("Fragmenting", void 0, {
|
|
4020
4018
|
F: __dxlog_file13,
|
|
4021
|
-
L:
|
|
4019
|
+
L: 453,
|
|
4022
4020
|
S: this,
|
|
4023
4021
|
C: (f, a) => f(...a)
|
|
4024
4022
|
});
|
|
@@ -4026,11 +4024,11 @@ var DataSpace = class {
|
|
|
4026
4024
|
const rootHandle = this._echoHost.automergeRepo.find(currentRootUrl);
|
|
4027
4025
|
await cancelWithContext4(this._ctx, asyncTimeout(rootHandle.whenReady(), 1e4));
|
|
4028
4026
|
const objects = Object.entries(rootHandle.docSync().objects);
|
|
4029
|
-
const properties =
|
|
4027
|
+
const properties = findPropertiesObject(rootHandle.docSync());
|
|
4030
4028
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4031
4029
|
invariant12(properties, "Properties not found", {
|
|
4032
4030
|
F: __dxlog_file13,
|
|
4033
|
-
L:
|
|
4031
|
+
L: 463,
|
|
4034
4032
|
S: this,
|
|
4035
4033
|
A: [
|
|
4036
4034
|
"properties",
|
|
@@ -4046,7 +4044,7 @@ var DataSpace = class {
|
|
|
4046
4044
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4047
4045
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4048
4046
|
F: __dxlog_file13,
|
|
4049
|
-
L:
|
|
4047
|
+
L: 468,
|
|
4050
4048
|
S: this,
|
|
4051
4049
|
A: [
|
|
4052
4050
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4115,7 +4113,7 @@ var DataSpace = class {
|
|
|
4115
4113
|
state: SpaceState[this._state]
|
|
4116
4114
|
}, {
|
|
4117
4115
|
F: __dxlog_file13,
|
|
4118
|
-
L:
|
|
4116
|
+
L: 534,
|
|
4119
4117
|
S: this,
|
|
4120
4118
|
C: (f, a) => f(...a)
|
|
4121
4119
|
});
|
|
@@ -4167,6 +4165,18 @@ DataSpace = _ts_decorate4([
|
|
|
4167
4165
|
trackLeaks("open", "close"),
|
|
4168
4166
|
trace6.resource()
|
|
4169
4167
|
], DataSpace);
|
|
4168
|
+
var findPropertiesObject = (spaceDoc) => {
|
|
4169
|
+
for (const id in spaceDoc.objects ?? {}) {
|
|
4170
|
+
const obj = spaceDoc.objects[id];
|
|
4171
|
+
if (obj.system.type?.itemId === TYPE_PROPERTIES) {
|
|
4172
|
+
return [
|
|
4173
|
+
id,
|
|
4174
|
+
obj
|
|
4175
|
+
];
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
return void 0;
|
|
4179
|
+
};
|
|
4170
4180
|
|
|
4171
4181
|
// packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
|
|
4172
4182
|
import { Event as Event7, synchronized as synchronized2, trackLeaks as trackLeaks2 } from "@dxos/async";
|
|
@@ -4176,10 +4186,11 @@ import { AuthStatus } from "@dxos/echo-pipeline";
|
|
|
4176
4186
|
import { invariant as invariant13 } from "@dxos/invariant";
|
|
4177
4187
|
import { PublicKey as PublicKey11 } from "@dxos/keys";
|
|
4178
4188
|
import { log as log12 } from "@dxos/log";
|
|
4179
|
-
import { trace as
|
|
4189
|
+
import { trace as Trace2 } from "@dxos/protocols";
|
|
4180
4190
|
import { Invitation as Invitation7, SpaceState as SpaceState2 } from "@dxos/protocols/proto/dxos/client/services";
|
|
4181
4191
|
import { SpaceMember as SpaceMember5 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
4182
4192
|
import { Gossip as Gossip2, Presence as Presence2 } from "@dxos/teleport-extension-gossip";
|
|
4193
|
+
import { trace as trace7 } from "@dxos/tracing";
|
|
4183
4194
|
import { ComplexMap as ComplexMap3, deferFunction as deferFunction2, forEachAsync } from "@dxos/util";
|
|
4184
4195
|
|
|
4185
4196
|
// packages/sdk/client-services/src/packlets/spaces/genesis.ts
|
|
@@ -4283,6 +4294,28 @@ var DataSpaceManager = class {
|
|
|
4283
4294
|
const { spaceMemberPresenceAnnounceInterval = PRESENCE_ANNOUNCE_INTERVAL, spaceMemberPresenceOfflineTimeout = PRESENCE_OFFLINE_TIMEOUT } = params ?? {};
|
|
4284
4295
|
this._spaceMemberPresenceAnnounceInterval = spaceMemberPresenceAnnounceInterval;
|
|
4285
4296
|
this._spaceMemberPresenceOfflineTimeout = spaceMemberPresenceOfflineTimeout;
|
|
4297
|
+
trace7.diagnostic({
|
|
4298
|
+
id: "spaces",
|
|
4299
|
+
name: "Spaces",
|
|
4300
|
+
fetch: async () => {
|
|
4301
|
+
return Array.from(this._spaces.values()).map((space) => {
|
|
4302
|
+
const rootUrl = space.automergeSpaceState.rootUrl;
|
|
4303
|
+
const rootHandle = rootUrl ? this._echoHost.automergeRepo.find(rootUrl) : void 0;
|
|
4304
|
+
const rootDoc = rootHandle?.docSync();
|
|
4305
|
+
const properties = rootDoc && findPropertiesObject(rootDoc);
|
|
4306
|
+
return {
|
|
4307
|
+
key: space.key.toHex(),
|
|
4308
|
+
state: SpaceState2[space.state],
|
|
4309
|
+
name: properties?.[1].data.name ?? null,
|
|
4310
|
+
inlineObjects: rootDoc ? Object.keys(rootDoc.objects ?? {}).length : null,
|
|
4311
|
+
linkedObjects: rootDoc ? Object.keys(rootDoc.links ?? {}).length : null,
|
|
4312
|
+
credentials: space.inner.spaceState.credentials.length,
|
|
4313
|
+
members: space.inner.spaceState.members.size,
|
|
4314
|
+
rootUrl
|
|
4315
|
+
};
|
|
4316
|
+
});
|
|
4317
|
+
}
|
|
4318
|
+
});
|
|
4286
4319
|
}
|
|
4287
4320
|
// TODO(burdon): Remove.
|
|
4288
4321
|
get spaces() {
|
|
@@ -4291,15 +4324,15 @@ var DataSpaceManager = class {
|
|
|
4291
4324
|
async open() {
|
|
4292
4325
|
log12("open", void 0, {
|
|
4293
4326
|
F: __dxlog_file14,
|
|
4294
|
-
L:
|
|
4327
|
+
L: 144,
|
|
4295
4328
|
S: this,
|
|
4296
4329
|
C: (f, a) => f(...a)
|
|
4297
4330
|
});
|
|
4298
|
-
log12.trace("dxos.echo.data-space-manager.open",
|
|
4331
|
+
log12.trace("dxos.echo.data-space-manager.open", Trace2.begin({
|
|
4299
4332
|
id: this._instanceId
|
|
4300
4333
|
}), {
|
|
4301
4334
|
F: __dxlog_file14,
|
|
4302
|
-
L:
|
|
4335
|
+
L: 145,
|
|
4303
4336
|
S: this,
|
|
4304
4337
|
C: (f, a) => f(...a)
|
|
4305
4338
|
});
|
|
@@ -4307,7 +4340,7 @@ var DataSpaceManager = class {
|
|
|
4307
4340
|
spaces: this._metadataStore.spaces.length
|
|
4308
4341
|
}, {
|
|
4309
4342
|
F: __dxlog_file14,
|
|
4310
|
-
L:
|
|
4343
|
+
L: 146,
|
|
4311
4344
|
S: this,
|
|
4312
4345
|
C: (f, a) => f(...a)
|
|
4313
4346
|
});
|
|
@@ -4317,7 +4350,7 @@ var DataSpaceManager = class {
|
|
|
4317
4350
|
spaceMetadata
|
|
4318
4351
|
}, {
|
|
4319
4352
|
F: __dxlog_file14,
|
|
4320
|
-
L:
|
|
4353
|
+
L: 150,
|
|
4321
4354
|
S: this,
|
|
4322
4355
|
C: (f, a) => f(...a)
|
|
4323
4356
|
});
|
|
@@ -4328,7 +4361,7 @@ var DataSpaceManager = class {
|
|
|
4328
4361
|
err
|
|
4329
4362
|
}, {
|
|
4330
4363
|
F: __dxlog_file14,
|
|
4331
|
-
L:
|
|
4364
|
+
L: 153,
|
|
4332
4365
|
S: this,
|
|
4333
4366
|
C: (f, a) => f(...a)
|
|
4334
4367
|
});
|
|
@@ -4341,11 +4374,11 @@ var DataSpaceManager = class {
|
|
|
4341
4374
|
space.initializeDataPipelineAsync();
|
|
4342
4375
|
}
|
|
4343
4376
|
}
|
|
4344
|
-
log12.trace("dxos.echo.data-space-manager.open",
|
|
4377
|
+
log12.trace("dxos.echo.data-space-manager.open", Trace2.end({
|
|
4345
4378
|
id: this._instanceId
|
|
4346
4379
|
}), {
|
|
4347
4380
|
F: __dxlog_file14,
|
|
4348
|
-
L:
|
|
4381
|
+
L: 166,
|
|
4349
4382
|
S: this,
|
|
4350
4383
|
C: (f, a) => f(...a)
|
|
4351
4384
|
});
|
|
@@ -4353,7 +4386,7 @@ var DataSpaceManager = class {
|
|
|
4353
4386
|
async close() {
|
|
4354
4387
|
log12("close", void 0, {
|
|
4355
4388
|
F: __dxlog_file14,
|
|
4356
|
-
L:
|
|
4389
|
+
L: 171,
|
|
4357
4390
|
S: this,
|
|
4358
4391
|
C: (f, a) => f(...a)
|
|
4359
4392
|
});
|
|
@@ -4369,7 +4402,7 @@ var DataSpaceManager = class {
|
|
|
4369
4402
|
async createSpace() {
|
|
4370
4403
|
invariant13(this._isOpen, "Not open.", {
|
|
4371
4404
|
F: __dxlog_file14,
|
|
4372
|
-
L:
|
|
4405
|
+
L: 184,
|
|
4373
4406
|
S: this,
|
|
4374
4407
|
A: [
|
|
4375
4408
|
"this._isOpen",
|
|
@@ -4390,7 +4423,7 @@ var DataSpaceManager = class {
|
|
|
4390
4423
|
spaceKey
|
|
4391
4424
|
}, {
|
|
4392
4425
|
F: __dxlog_file14,
|
|
4393
|
-
L:
|
|
4426
|
+
L: 196,
|
|
4394
4427
|
S: this,
|
|
4395
4428
|
C: (f, a) => f(...a)
|
|
4396
4429
|
});
|
|
@@ -4401,7 +4434,7 @@ var DataSpaceManager = class {
|
|
|
4401
4434
|
const memberCredential = credentials[1];
|
|
4402
4435
|
invariant13(getCredentialAssertion2(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
4403
4436
|
F: __dxlog_file14,
|
|
4404
|
-
L:
|
|
4437
|
+
L: 205,
|
|
4405
4438
|
S: this,
|
|
4406
4439
|
A: [
|
|
4407
4440
|
"getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
|
|
@@ -4419,13 +4452,13 @@ var DataSpaceManager = class {
|
|
|
4419
4452
|
opts
|
|
4420
4453
|
}, {
|
|
4421
4454
|
F: __dxlog_file14,
|
|
4422
|
-
L:
|
|
4455
|
+
L: 217,
|
|
4423
4456
|
S: this,
|
|
4424
4457
|
C: (f, a) => f(...a)
|
|
4425
4458
|
});
|
|
4426
4459
|
invariant13(this._isOpen, "Not open.", {
|
|
4427
4460
|
F: __dxlog_file14,
|
|
4428
|
-
L:
|
|
4461
|
+
L: 218,
|
|
4429
4462
|
S: this,
|
|
4430
4463
|
A: [
|
|
4431
4464
|
"this._isOpen",
|
|
@@ -4434,7 +4467,7 @@ var DataSpaceManager = class {
|
|
|
4434
4467
|
});
|
|
4435
4468
|
invariant13(!this._spaces.has(opts.spaceKey), "Space already exists.", {
|
|
4436
4469
|
F: __dxlog_file14,
|
|
4437
|
-
L:
|
|
4470
|
+
L: 219,
|
|
4438
4471
|
S: this,
|
|
4439
4472
|
A: [
|
|
4440
4473
|
"!this._spaces.has(opts.spaceKey)",
|
|
@@ -4469,7 +4502,7 @@ var DataSpaceManager = class {
|
|
|
4469
4502
|
metadata
|
|
4470
4503
|
}, {
|
|
4471
4504
|
F: __dxlog_file14,
|
|
4472
|
-
L:
|
|
4505
|
+
L: 252,
|
|
4473
4506
|
S: this,
|
|
4474
4507
|
C: (f, a) => f(...a)
|
|
4475
4508
|
});
|
|
@@ -4507,7 +4540,7 @@ var DataSpaceManager = class {
|
|
|
4507
4540
|
onAuthFailure: () => {
|
|
4508
4541
|
log12.warn("auth failure", void 0, {
|
|
4509
4542
|
F: __dxlog_file14,
|
|
4510
|
-
L:
|
|
4543
|
+
L: 289,
|
|
4511
4544
|
S: this,
|
|
4512
4545
|
C: (f, a) => f(...a)
|
|
4513
4546
|
});
|
|
@@ -4540,7 +4573,7 @@ var DataSpaceManager = class {
|
|
|
4540
4573
|
space: space.key
|
|
4541
4574
|
}, {
|
|
4542
4575
|
F: __dxlog_file14,
|
|
4543
|
-
L:
|
|
4576
|
+
L: 316,
|
|
4544
4577
|
S: this,
|
|
4545
4578
|
C: (f, a) => f(...a)
|
|
4546
4579
|
});
|
|
@@ -4551,7 +4584,7 @@ var DataSpaceManager = class {
|
|
|
4551
4584
|
open: this._isOpen
|
|
4552
4585
|
}, {
|
|
4553
4586
|
F: __dxlog_file14,
|
|
4554
|
-
L:
|
|
4587
|
+
L: 319,
|
|
4555
4588
|
S: this,
|
|
4556
4589
|
C: (f, a) => f(...a)
|
|
4557
4590
|
});
|
|
@@ -4570,7 +4603,7 @@ var DataSpaceManager = class {
|
|
|
4570
4603
|
space: space.key
|
|
4571
4604
|
}, {
|
|
4572
4605
|
F: __dxlog_file14,
|
|
4573
|
-
L:
|
|
4606
|
+
L: 327,
|
|
4574
4607
|
S: this,
|
|
4575
4608
|
C: (f, a) => f(...a)
|
|
4576
4609
|
});
|
|
@@ -4614,7 +4647,7 @@ var DataSpaceManager = class {
|
|
|
4614
4647
|
closedSessions
|
|
4615
4648
|
}, {
|
|
4616
4649
|
F: __dxlog_file14,
|
|
4617
|
-
L:
|
|
4650
|
+
L: 367,
|
|
4618
4651
|
S: this,
|
|
4619
4652
|
C: (f, a) => f(...a)
|
|
4620
4653
|
});
|
|
@@ -4629,7 +4662,7 @@ var DataSpaceManager = class {
|
|
|
4629
4662
|
peerId: peerState.peerId
|
|
4630
4663
|
}, {
|
|
4631
4664
|
F: __dxlog_file14,
|
|
4632
|
-
L:
|
|
4665
|
+
L: 381,
|
|
4633
4666
|
S: this,
|
|
4634
4667
|
C: (f, a) => f(...a)
|
|
4635
4668
|
});
|
|
@@ -4962,7 +4995,7 @@ import { log as log14 } from "@dxos/log";
|
|
|
4962
4995
|
import { InvalidStorageVersionError, STORAGE_VERSION, trace as trace8 } from "@dxos/protocols";
|
|
4963
4996
|
import { Invitation as Invitation8 } from "@dxos/protocols/proto/dxos/client/services";
|
|
4964
4997
|
import { BlobStore } from "@dxos/teleport-extension-object-sync";
|
|
4965
|
-
import { trace as
|
|
4998
|
+
import { trace as Trace3 } from "@dxos/tracing";
|
|
4966
4999
|
import { safeInstanceof } from "@dxos/util";
|
|
4967
5000
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
4968
5001
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -5222,14 +5255,14 @@ var ServiceContext = class extends Resource {
|
|
|
5222
5255
|
}
|
|
5223
5256
|
};
|
|
5224
5257
|
_ts_decorate6([
|
|
5225
|
-
|
|
5258
|
+
Trace3.span()
|
|
5226
5259
|
], ServiceContext.prototype, "_open", null);
|
|
5227
5260
|
_ts_decorate6([
|
|
5228
|
-
|
|
5261
|
+
Trace3.span()
|
|
5229
5262
|
], ServiceContext.prototype, "_initialize", null);
|
|
5230
5263
|
ServiceContext = _ts_decorate6([
|
|
5231
5264
|
safeInstanceof("dxos.client-services.ServiceContext"),
|
|
5232
|
-
|
|
5265
|
+
Trace3.resource()
|
|
5233
5266
|
], ServiceContext);
|
|
5234
5267
|
|
|
5235
5268
|
// packages/sdk/client-services/src/packlets/services/service-registry.ts
|
|
@@ -5266,7 +5299,7 @@ import { SpaceMember as SpaceMember7 } from "@dxos/protocols/proto/dxos/client/s
|
|
|
5266
5299
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
5267
5300
|
|
|
5268
5301
|
// packages/sdk/client-services/src/version.ts
|
|
5269
|
-
var DXOS_VERSION = "0.5.3-next.
|
|
5302
|
+
var DXOS_VERSION = "0.5.3-next.57eca40";
|
|
5270
5303
|
|
|
5271
5304
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
5272
5305
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -5530,7 +5563,7 @@ import { WebsocketSignalManager } from "@dxos/messaging";
|
|
|
5530
5563
|
import { NetworkManager, createSimplePeerTransportFactory } from "@dxos/network-manager";
|
|
5531
5564
|
import { trace as trace9 } from "@dxos/protocols";
|
|
5532
5565
|
import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
|
|
5533
|
-
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as
|
|
5566
|
+
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace4 } from "@dxos/tracing";
|
|
5534
5567
|
import { assignDeep as assignDeep2 } from "@dxos/util";
|
|
5535
5568
|
import { WebsocketRpcClient } from "@dxos/websocket-rpc";
|
|
5536
5569
|
|
|
@@ -6414,21 +6447,21 @@ var ClientServicesHost = class {
|
|
|
6414
6447
|
}
|
|
6415
6448
|
};
|
|
6416
6449
|
_ts_decorate8([
|
|
6417
|
-
|
|
6450
|
+
Trace4.info()
|
|
6418
6451
|
], ClientServicesHost.prototype, "_opening", void 0);
|
|
6419
6452
|
_ts_decorate8([
|
|
6420
|
-
|
|
6453
|
+
Trace4.info()
|
|
6421
6454
|
], ClientServicesHost.prototype, "_open", void 0);
|
|
6422
6455
|
_ts_decorate8([
|
|
6423
6456
|
synchronized3,
|
|
6424
|
-
|
|
6457
|
+
Trace4.span()
|
|
6425
6458
|
], ClientServicesHost.prototype, "open", null);
|
|
6426
6459
|
_ts_decorate8([
|
|
6427
6460
|
synchronized3,
|
|
6428
|
-
|
|
6461
|
+
Trace4.span()
|
|
6429
6462
|
], ClientServicesHost.prototype, "close", null);
|
|
6430
6463
|
ClientServicesHost = _ts_decorate8([
|
|
6431
|
-
|
|
6464
|
+
Trace4.resource()
|
|
6432
6465
|
], ClientServicesHost);
|
|
6433
6466
|
|
|
6434
6467
|
// packages/sdk/client-services/src/packlets/services/util.ts
|
|
@@ -6497,6 +6530,7 @@ export {
|
|
|
6497
6530
|
InvitationsManager,
|
|
6498
6531
|
ClientRpcServer,
|
|
6499
6532
|
DataSpace,
|
|
6533
|
+
findPropertiesObject,
|
|
6500
6534
|
DataSpaceManager,
|
|
6501
6535
|
SpacesServiceImpl,
|
|
6502
6536
|
ServiceContext,
|
|
@@ -6512,4 +6546,4 @@ export {
|
|
|
6512
6546
|
ClientServicesHost,
|
|
6513
6547
|
ClientServicesProviderResource
|
|
6514
6548
|
};
|
|
6515
|
-
//# sourceMappingURL=chunk-
|
|
6549
|
+
//# sourceMappingURL=chunk-RQNS7EAS.mjs.map
|