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