@dxos/client-services 0.5.3-main.d7fe7b5 → 0.5.3-main.de55336
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-EHAWIIYO.mjs → chunk-7EGDXZNY.mjs} +96 -61
- package/dist/lib/browser/{chunk-EHAWIIYO.mjs.map → chunk-7EGDXZNY.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-SECFIF7E.cjs → chunk-YPKL5SAD.cjs} +130 -94
- package/dist/lib/node/chunk-YPKL5SAD.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/devtools/feeds.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/metadata.d.ts.map +1 -1
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts +1 -0
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/services/util.d.ts.map +1 -1
- 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/packlets/testing/credential-utils.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +2 -2
- package/dist/types/src/packlets/testing/test-builder.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 +35 -6
- package/src/packlets/spaces/data-space.ts +29 -8
- package/src/version.ts +1 -1
- package/dist/lib/node/chunk-SECFIF7E.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
|
});
|
|
@@ -3934,6 +3932,7 @@ var DataSpace = class {
|
|
|
3934
3932
|
};
|
|
3935
3933
|
});
|
|
3936
3934
|
}
|
|
3935
|
+
await this._echoHost.openSpaceRoot(handle.url);
|
|
3937
3936
|
} catch (err) {
|
|
3938
3937
|
if (err instanceof ContextDisposedError3) {
|
|
3939
3938
|
return;
|
|
@@ -3944,7 +3943,7 @@ var DataSpace = class {
|
|
|
3944
3943
|
err
|
|
3945
3944
|
}, {
|
|
3946
3945
|
F: __dxlog_file13,
|
|
3947
|
-
L:
|
|
3946
|
+
L: 395,
|
|
3948
3947
|
S: this,
|
|
3949
3948
|
C: (f, a) => f(...a)
|
|
3950
3949
|
});
|
|
@@ -3999,7 +3998,7 @@ var DataSpace = class {
|
|
|
3999
3998
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4000
3999
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4001
4000
|
F: __dxlog_file13,
|
|
4002
|
-
L:
|
|
4001
|
+
L: 445,
|
|
4003
4002
|
S: this,
|
|
4004
4003
|
A: [
|
|
4005
4004
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4018,7 +4017,7 @@ var DataSpace = class {
|
|
|
4018
4017
|
{
|
|
4019
4018
|
log11.info("Fragmenting", void 0, {
|
|
4020
4019
|
F: __dxlog_file13,
|
|
4021
|
-
L:
|
|
4020
|
+
L: 457,
|
|
4022
4021
|
S: this,
|
|
4023
4022
|
C: (f, a) => f(...a)
|
|
4024
4023
|
});
|
|
@@ -4026,11 +4025,11 @@ var DataSpace = class {
|
|
|
4026
4025
|
const rootHandle = this._echoHost.automergeRepo.find(currentRootUrl);
|
|
4027
4026
|
await cancelWithContext4(this._ctx, asyncTimeout(rootHandle.whenReady(), 1e4));
|
|
4028
4027
|
const objects = Object.entries(rootHandle.docSync().objects);
|
|
4029
|
-
const properties =
|
|
4028
|
+
const properties = findPropertiesObject(rootHandle.docSync());
|
|
4030
4029
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4031
4030
|
invariant12(properties, "Properties not found", {
|
|
4032
4031
|
F: __dxlog_file13,
|
|
4033
|
-
L:
|
|
4032
|
+
L: 467,
|
|
4034
4033
|
S: this,
|
|
4035
4034
|
A: [
|
|
4036
4035
|
"properties",
|
|
@@ -4046,7 +4045,7 @@ var DataSpace = class {
|
|
|
4046
4045
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4047
4046
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4048
4047
|
F: __dxlog_file13,
|
|
4049
|
-
L:
|
|
4048
|
+
L: 472,
|
|
4050
4049
|
S: this,
|
|
4051
4050
|
A: [
|
|
4052
4051
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4115,7 +4114,7 @@ var DataSpace = class {
|
|
|
4115
4114
|
state: SpaceState[this._state]
|
|
4116
4115
|
}, {
|
|
4117
4116
|
F: __dxlog_file13,
|
|
4118
|
-
L:
|
|
4117
|
+
L: 538,
|
|
4119
4118
|
S: this,
|
|
4120
4119
|
C: (f, a) => f(...a)
|
|
4121
4120
|
});
|
|
@@ -4167,6 +4166,18 @@ DataSpace = _ts_decorate4([
|
|
|
4167
4166
|
trackLeaks("open", "close"),
|
|
4168
4167
|
trace6.resource()
|
|
4169
4168
|
], DataSpace);
|
|
4169
|
+
var findPropertiesObject = (spaceDoc) => {
|
|
4170
|
+
for (const id in spaceDoc.objects ?? {}) {
|
|
4171
|
+
const obj = spaceDoc.objects[id];
|
|
4172
|
+
if (obj.system.type?.itemId === TYPE_PROPERTIES) {
|
|
4173
|
+
return [
|
|
4174
|
+
id,
|
|
4175
|
+
obj
|
|
4176
|
+
];
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
return void 0;
|
|
4180
|
+
};
|
|
4170
4181
|
|
|
4171
4182
|
// packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
|
|
4172
4183
|
import { Event as Event7, synchronized as synchronized2, trackLeaks as trackLeaks2 } from "@dxos/async";
|
|
@@ -4176,10 +4187,11 @@ import { AuthStatus } from "@dxos/echo-pipeline";
|
|
|
4176
4187
|
import { invariant as invariant13 } from "@dxos/invariant";
|
|
4177
4188
|
import { PublicKey as PublicKey11 } from "@dxos/keys";
|
|
4178
4189
|
import { log as log12 } from "@dxos/log";
|
|
4179
|
-
import { trace as
|
|
4190
|
+
import { trace as Trace2 } from "@dxos/protocols";
|
|
4180
4191
|
import { Invitation as Invitation7, SpaceState as SpaceState2 } from "@dxos/protocols/proto/dxos/client/services";
|
|
4181
4192
|
import { SpaceMember as SpaceMember5 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
4182
4193
|
import { Gossip as Gossip2, Presence as Presence2 } from "@dxos/teleport-extension-gossip";
|
|
4194
|
+
import { trace as trace7 } from "@dxos/tracing";
|
|
4183
4195
|
import { ComplexMap as ComplexMap3, deferFunction as deferFunction2, forEachAsync } from "@dxos/util";
|
|
4184
4196
|
|
|
4185
4197
|
// packages/sdk/client-services/src/packlets/spaces/genesis.ts
|
|
@@ -4283,6 +4295,28 @@ var DataSpaceManager = class {
|
|
|
4283
4295
|
const { spaceMemberPresenceAnnounceInterval = PRESENCE_ANNOUNCE_INTERVAL, spaceMemberPresenceOfflineTimeout = PRESENCE_OFFLINE_TIMEOUT } = params ?? {};
|
|
4284
4296
|
this._spaceMemberPresenceAnnounceInterval = spaceMemberPresenceAnnounceInterval;
|
|
4285
4297
|
this._spaceMemberPresenceOfflineTimeout = spaceMemberPresenceOfflineTimeout;
|
|
4298
|
+
trace7.diagnostic({
|
|
4299
|
+
id: "spaces",
|
|
4300
|
+
name: "Spaces",
|
|
4301
|
+
fetch: async () => {
|
|
4302
|
+
return Array.from(this._spaces.values()).map((space) => {
|
|
4303
|
+
const rootUrl = space.automergeSpaceState.rootUrl;
|
|
4304
|
+
const rootHandle = rootUrl ? this._echoHost.automergeRepo.find(rootUrl) : void 0;
|
|
4305
|
+
const rootDoc = rootHandle?.docSync();
|
|
4306
|
+
const properties = rootDoc && findPropertiesObject(rootDoc);
|
|
4307
|
+
return {
|
|
4308
|
+
key: space.key.toHex(),
|
|
4309
|
+
state: SpaceState2[space.state],
|
|
4310
|
+
name: properties?.[1].data.name ?? null,
|
|
4311
|
+
inlineObjects: rootDoc ? Object.keys(rootDoc.objects ?? {}).length : null,
|
|
4312
|
+
linkedObjects: rootDoc ? Object.keys(rootDoc.links ?? {}).length : null,
|
|
4313
|
+
credentials: space.inner.spaceState.credentials.length,
|
|
4314
|
+
members: space.inner.spaceState.members.size,
|
|
4315
|
+
rootUrl
|
|
4316
|
+
};
|
|
4317
|
+
});
|
|
4318
|
+
}
|
|
4319
|
+
});
|
|
4286
4320
|
}
|
|
4287
4321
|
// TODO(burdon): Remove.
|
|
4288
4322
|
get spaces() {
|
|
@@ -4291,15 +4325,15 @@ var DataSpaceManager = class {
|
|
|
4291
4325
|
async open() {
|
|
4292
4326
|
log12("open", void 0, {
|
|
4293
4327
|
F: __dxlog_file14,
|
|
4294
|
-
L:
|
|
4328
|
+
L: 144,
|
|
4295
4329
|
S: this,
|
|
4296
4330
|
C: (f, a) => f(...a)
|
|
4297
4331
|
});
|
|
4298
|
-
log12.trace("dxos.echo.data-space-manager.open",
|
|
4332
|
+
log12.trace("dxos.echo.data-space-manager.open", Trace2.begin({
|
|
4299
4333
|
id: this._instanceId
|
|
4300
4334
|
}), {
|
|
4301
4335
|
F: __dxlog_file14,
|
|
4302
|
-
L:
|
|
4336
|
+
L: 145,
|
|
4303
4337
|
S: this,
|
|
4304
4338
|
C: (f, a) => f(...a)
|
|
4305
4339
|
});
|
|
@@ -4307,7 +4341,7 @@ var DataSpaceManager = class {
|
|
|
4307
4341
|
spaces: this._metadataStore.spaces.length
|
|
4308
4342
|
}, {
|
|
4309
4343
|
F: __dxlog_file14,
|
|
4310
|
-
L:
|
|
4344
|
+
L: 146,
|
|
4311
4345
|
S: this,
|
|
4312
4346
|
C: (f, a) => f(...a)
|
|
4313
4347
|
});
|
|
@@ -4317,7 +4351,7 @@ var DataSpaceManager = class {
|
|
|
4317
4351
|
spaceMetadata
|
|
4318
4352
|
}, {
|
|
4319
4353
|
F: __dxlog_file14,
|
|
4320
|
-
L:
|
|
4354
|
+
L: 150,
|
|
4321
4355
|
S: this,
|
|
4322
4356
|
C: (f, a) => f(...a)
|
|
4323
4357
|
});
|
|
@@ -4328,7 +4362,7 @@ var DataSpaceManager = class {
|
|
|
4328
4362
|
err
|
|
4329
4363
|
}, {
|
|
4330
4364
|
F: __dxlog_file14,
|
|
4331
|
-
L:
|
|
4365
|
+
L: 153,
|
|
4332
4366
|
S: this,
|
|
4333
4367
|
C: (f, a) => f(...a)
|
|
4334
4368
|
});
|
|
@@ -4341,11 +4375,11 @@ var DataSpaceManager = class {
|
|
|
4341
4375
|
space.initializeDataPipelineAsync();
|
|
4342
4376
|
}
|
|
4343
4377
|
}
|
|
4344
|
-
log12.trace("dxos.echo.data-space-manager.open",
|
|
4378
|
+
log12.trace("dxos.echo.data-space-manager.open", Trace2.end({
|
|
4345
4379
|
id: this._instanceId
|
|
4346
4380
|
}), {
|
|
4347
4381
|
F: __dxlog_file14,
|
|
4348
|
-
L:
|
|
4382
|
+
L: 166,
|
|
4349
4383
|
S: this,
|
|
4350
4384
|
C: (f, a) => f(...a)
|
|
4351
4385
|
});
|
|
@@ -4353,7 +4387,7 @@ var DataSpaceManager = class {
|
|
|
4353
4387
|
async close() {
|
|
4354
4388
|
log12("close", void 0, {
|
|
4355
4389
|
F: __dxlog_file14,
|
|
4356
|
-
L:
|
|
4390
|
+
L: 171,
|
|
4357
4391
|
S: this,
|
|
4358
4392
|
C: (f, a) => f(...a)
|
|
4359
4393
|
});
|
|
@@ -4369,7 +4403,7 @@ var DataSpaceManager = class {
|
|
|
4369
4403
|
async createSpace() {
|
|
4370
4404
|
invariant13(this._isOpen, "Not open.", {
|
|
4371
4405
|
F: __dxlog_file14,
|
|
4372
|
-
L:
|
|
4406
|
+
L: 184,
|
|
4373
4407
|
S: this,
|
|
4374
4408
|
A: [
|
|
4375
4409
|
"this._isOpen",
|
|
@@ -4390,18 +4424,18 @@ var DataSpaceManager = class {
|
|
|
4390
4424
|
spaceKey
|
|
4391
4425
|
}, {
|
|
4392
4426
|
F: __dxlog_file14,
|
|
4393
|
-
L:
|
|
4427
|
+
L: 196,
|
|
4394
4428
|
S: this,
|
|
4395
4429
|
C: (f, a) => f(...a)
|
|
4396
4430
|
});
|
|
4397
|
-
const
|
|
4431
|
+
const root = await this._echoHost.createSpaceRoot(spaceKey);
|
|
4398
4432
|
const space = await this._constructSpace(metadata);
|
|
4399
|
-
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner,
|
|
4433
|
+
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, root.url);
|
|
4400
4434
|
await this._metadataStore.addSpace(metadata);
|
|
4401
4435
|
const memberCredential = credentials[1];
|
|
4402
4436
|
invariant13(getCredentialAssertion2(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
4403
4437
|
F: __dxlog_file14,
|
|
4404
|
-
L:
|
|
4438
|
+
L: 205,
|
|
4405
4439
|
S: this,
|
|
4406
4440
|
A: [
|
|
4407
4441
|
"getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
|
|
@@ -4419,13 +4453,13 @@ var DataSpaceManager = class {
|
|
|
4419
4453
|
opts
|
|
4420
4454
|
}, {
|
|
4421
4455
|
F: __dxlog_file14,
|
|
4422
|
-
L:
|
|
4456
|
+
L: 217,
|
|
4423
4457
|
S: this,
|
|
4424
4458
|
C: (f, a) => f(...a)
|
|
4425
4459
|
});
|
|
4426
4460
|
invariant13(this._isOpen, "Not open.", {
|
|
4427
4461
|
F: __dxlog_file14,
|
|
4428
|
-
L:
|
|
4462
|
+
L: 218,
|
|
4429
4463
|
S: this,
|
|
4430
4464
|
A: [
|
|
4431
4465
|
"this._isOpen",
|
|
@@ -4434,7 +4468,7 @@ var DataSpaceManager = class {
|
|
|
4434
4468
|
});
|
|
4435
4469
|
invariant13(!this._spaces.has(opts.spaceKey), "Space already exists.", {
|
|
4436
4470
|
F: __dxlog_file14,
|
|
4437
|
-
L:
|
|
4471
|
+
L: 219,
|
|
4438
4472
|
S: this,
|
|
4439
4473
|
A: [
|
|
4440
4474
|
"!this._spaces.has(opts.spaceKey)",
|
|
@@ -4469,7 +4503,7 @@ var DataSpaceManager = class {
|
|
|
4469
4503
|
metadata
|
|
4470
4504
|
}, {
|
|
4471
4505
|
F: __dxlog_file14,
|
|
4472
|
-
L:
|
|
4506
|
+
L: 252,
|
|
4473
4507
|
S: this,
|
|
4474
4508
|
C: (f, a) => f(...a)
|
|
4475
4509
|
});
|
|
@@ -4507,7 +4541,7 @@ var DataSpaceManager = class {
|
|
|
4507
4541
|
onAuthFailure: () => {
|
|
4508
4542
|
log12.warn("auth failure", void 0, {
|
|
4509
4543
|
F: __dxlog_file14,
|
|
4510
|
-
L:
|
|
4544
|
+
L: 289,
|
|
4511
4545
|
S: this,
|
|
4512
4546
|
C: (f, a) => f(...a)
|
|
4513
4547
|
});
|
|
@@ -4540,7 +4574,7 @@ var DataSpaceManager = class {
|
|
|
4540
4574
|
space: space.key
|
|
4541
4575
|
}, {
|
|
4542
4576
|
F: __dxlog_file14,
|
|
4543
|
-
L:
|
|
4577
|
+
L: 316,
|
|
4544
4578
|
S: this,
|
|
4545
4579
|
C: (f, a) => f(...a)
|
|
4546
4580
|
});
|
|
@@ -4551,7 +4585,7 @@ var DataSpaceManager = class {
|
|
|
4551
4585
|
open: this._isOpen
|
|
4552
4586
|
}, {
|
|
4553
4587
|
F: __dxlog_file14,
|
|
4554
|
-
L:
|
|
4588
|
+
L: 319,
|
|
4555
4589
|
S: this,
|
|
4556
4590
|
C: (f, a) => f(...a)
|
|
4557
4591
|
});
|
|
@@ -4570,7 +4604,7 @@ var DataSpaceManager = class {
|
|
|
4570
4604
|
space: space.key
|
|
4571
4605
|
}, {
|
|
4572
4606
|
F: __dxlog_file14,
|
|
4573
|
-
L:
|
|
4607
|
+
L: 327,
|
|
4574
4608
|
S: this,
|
|
4575
4609
|
C: (f, a) => f(...a)
|
|
4576
4610
|
});
|
|
@@ -4614,7 +4648,7 @@ var DataSpaceManager = class {
|
|
|
4614
4648
|
closedSessions
|
|
4615
4649
|
}, {
|
|
4616
4650
|
F: __dxlog_file14,
|
|
4617
|
-
L:
|
|
4651
|
+
L: 367,
|
|
4618
4652
|
S: this,
|
|
4619
4653
|
C: (f, a) => f(...a)
|
|
4620
4654
|
});
|
|
@@ -4629,7 +4663,7 @@ var DataSpaceManager = class {
|
|
|
4629
4663
|
peerId: peerState.peerId
|
|
4630
4664
|
}, {
|
|
4631
4665
|
F: __dxlog_file14,
|
|
4632
|
-
L:
|
|
4666
|
+
L: 381,
|
|
4633
4667
|
S: this,
|
|
4634
4668
|
C: (f, a) => f(...a)
|
|
4635
4669
|
});
|
|
@@ -4962,7 +4996,7 @@ import { log as log14 } from "@dxos/log";
|
|
|
4962
4996
|
import { InvalidStorageVersionError, STORAGE_VERSION, trace as trace8 } from "@dxos/protocols";
|
|
4963
4997
|
import { Invitation as Invitation8 } from "@dxos/protocols/proto/dxos/client/services";
|
|
4964
4998
|
import { BlobStore } from "@dxos/teleport-extension-object-sync";
|
|
4965
|
-
import { trace as
|
|
4999
|
+
import { trace as Trace3 } from "@dxos/tracing";
|
|
4966
5000
|
import { safeInstanceof } from "@dxos/util";
|
|
4967
5001
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
4968
5002
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -5222,14 +5256,14 @@ var ServiceContext = class extends Resource {
|
|
|
5222
5256
|
}
|
|
5223
5257
|
};
|
|
5224
5258
|
_ts_decorate6([
|
|
5225
|
-
|
|
5259
|
+
Trace3.span()
|
|
5226
5260
|
], ServiceContext.prototype, "_open", null);
|
|
5227
5261
|
_ts_decorate6([
|
|
5228
|
-
|
|
5262
|
+
Trace3.span()
|
|
5229
5263
|
], ServiceContext.prototype, "_initialize", null);
|
|
5230
5264
|
ServiceContext = _ts_decorate6([
|
|
5231
5265
|
safeInstanceof("dxos.client-services.ServiceContext"),
|
|
5232
|
-
|
|
5266
|
+
Trace3.resource()
|
|
5233
5267
|
], ServiceContext);
|
|
5234
5268
|
|
|
5235
5269
|
// packages/sdk/client-services/src/packlets/services/service-registry.ts
|
|
@@ -5266,7 +5300,7 @@ import { SpaceMember as SpaceMember7 } from "@dxos/protocols/proto/dxos/client/s
|
|
|
5266
5300
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
5267
5301
|
|
|
5268
5302
|
// packages/sdk/client-services/src/version.ts
|
|
5269
|
-
var DXOS_VERSION = "0.5.3-main.
|
|
5303
|
+
var DXOS_VERSION = "0.5.3-main.de55336";
|
|
5270
5304
|
|
|
5271
5305
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
5272
5306
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -5530,7 +5564,7 @@ import { WebsocketSignalManager } from "@dxos/messaging";
|
|
|
5530
5564
|
import { NetworkManager, createSimplePeerTransportFactory } from "@dxos/network-manager";
|
|
5531
5565
|
import { trace as trace9 } from "@dxos/protocols";
|
|
5532
5566
|
import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
|
|
5533
|
-
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as
|
|
5567
|
+
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace4 } from "@dxos/tracing";
|
|
5534
5568
|
import { assignDeep as assignDeep2 } from "@dxos/util";
|
|
5535
5569
|
import { WebsocketRpcClient } from "@dxos/websocket-rpc";
|
|
5536
5570
|
|
|
@@ -6414,21 +6448,21 @@ var ClientServicesHost = class {
|
|
|
6414
6448
|
}
|
|
6415
6449
|
};
|
|
6416
6450
|
_ts_decorate8([
|
|
6417
|
-
|
|
6451
|
+
Trace4.info()
|
|
6418
6452
|
], ClientServicesHost.prototype, "_opening", void 0);
|
|
6419
6453
|
_ts_decorate8([
|
|
6420
|
-
|
|
6454
|
+
Trace4.info()
|
|
6421
6455
|
], ClientServicesHost.prototype, "_open", void 0);
|
|
6422
6456
|
_ts_decorate8([
|
|
6423
6457
|
synchronized3,
|
|
6424
|
-
|
|
6458
|
+
Trace4.span()
|
|
6425
6459
|
], ClientServicesHost.prototype, "open", null);
|
|
6426
6460
|
_ts_decorate8([
|
|
6427
6461
|
synchronized3,
|
|
6428
|
-
|
|
6462
|
+
Trace4.span()
|
|
6429
6463
|
], ClientServicesHost.prototype, "close", null);
|
|
6430
6464
|
ClientServicesHost = _ts_decorate8([
|
|
6431
|
-
|
|
6465
|
+
Trace4.resource()
|
|
6432
6466
|
], ClientServicesHost);
|
|
6433
6467
|
|
|
6434
6468
|
// packages/sdk/client-services/src/packlets/services/util.ts
|
|
@@ -6497,6 +6531,7 @@ export {
|
|
|
6497
6531
|
InvitationsManager,
|
|
6498
6532
|
ClientRpcServer,
|
|
6499
6533
|
DataSpace,
|
|
6534
|
+
findPropertiesObject,
|
|
6500
6535
|
DataSpaceManager,
|
|
6501
6536
|
SpacesServiceImpl,
|
|
6502
6537
|
ServiceContext,
|
|
@@ -6512,4 +6547,4 @@ export {
|
|
|
6512
6547
|
ClientServicesHost,
|
|
6513
6548
|
ClientServicesProviderResource
|
|
6514
6549
|
};
|
|
6515
|
-
//# sourceMappingURL=chunk-
|
|
6550
|
+
//# sourceMappingURL=chunk-7EGDXZNY.mjs.map
|