@dxos/client-services 0.5.3-main.f9b873d → 0.5.3-next.056e7da
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-ZGHJHSHA.mjs → chunk-LLOORBYN.mjs} +108 -61
- package/dist/lib/browser/{chunk-ZGHJHSHA.mjs.map → chunk-LLOORBYN.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-VYXGTUEI.cjs → chunk-4RR2YAPN.cjs} +142 -94
- package/dist/lib/node/chunk-4RR2YAPN.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 +33 -8
- package/src/version.ts +1 -1
- package/dist/lib/node/chunk-VYXGTUEI.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,19 @@ var DataSpace = class {
|
|
|
3934
3932
|
};
|
|
3935
3933
|
});
|
|
3936
3934
|
}
|
|
3935
|
+
if (!this._echoHost.roots.has(handle.documentId)) {
|
|
3936
|
+
await this._echoHost.openSpaceRoot(handle.url);
|
|
3937
|
+
} else {
|
|
3938
|
+
log11.warn("echo database root already exists", {
|
|
3939
|
+
space: this.key,
|
|
3940
|
+
rootUrl
|
|
3941
|
+
}, {
|
|
3942
|
+
F: __dxlog_file13,
|
|
3943
|
+
L: 393,
|
|
3944
|
+
S: this,
|
|
3945
|
+
C: (f, a) => f(...a)
|
|
3946
|
+
});
|
|
3947
|
+
}
|
|
3937
3948
|
} catch (err) {
|
|
3938
3949
|
if (err instanceof ContextDisposedError3) {
|
|
3939
3950
|
return;
|
|
@@ -3944,7 +3955,7 @@ var DataSpace = class {
|
|
|
3944
3955
|
err
|
|
3945
3956
|
}, {
|
|
3946
3957
|
F: __dxlog_file13,
|
|
3947
|
-
L:
|
|
3958
|
+
L: 399,
|
|
3948
3959
|
S: this,
|
|
3949
3960
|
C: (f, a) => f(...a)
|
|
3950
3961
|
});
|
|
@@ -3999,7 +4010,7 @@ var DataSpace = class {
|
|
|
3999
4010
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4000
4011
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4001
4012
|
F: __dxlog_file13,
|
|
4002
|
-
L:
|
|
4013
|
+
L: 449,
|
|
4003
4014
|
S: this,
|
|
4004
4015
|
A: [
|
|
4005
4016
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4018,7 +4029,7 @@ var DataSpace = class {
|
|
|
4018
4029
|
{
|
|
4019
4030
|
log11.info("Fragmenting", void 0, {
|
|
4020
4031
|
F: __dxlog_file13,
|
|
4021
|
-
L:
|
|
4032
|
+
L: 461,
|
|
4022
4033
|
S: this,
|
|
4023
4034
|
C: (f, a) => f(...a)
|
|
4024
4035
|
});
|
|
@@ -4026,11 +4037,11 @@ var DataSpace = class {
|
|
|
4026
4037
|
const rootHandle = this._echoHost.automergeRepo.find(currentRootUrl);
|
|
4027
4038
|
await cancelWithContext4(this._ctx, asyncTimeout(rootHandle.whenReady(), 1e4));
|
|
4028
4039
|
const objects = Object.entries(rootHandle.docSync().objects);
|
|
4029
|
-
const properties =
|
|
4040
|
+
const properties = findPropertiesObject(rootHandle.docSync());
|
|
4030
4041
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4031
4042
|
invariant12(properties, "Properties not found", {
|
|
4032
4043
|
F: __dxlog_file13,
|
|
4033
|
-
L:
|
|
4044
|
+
L: 471,
|
|
4034
4045
|
S: this,
|
|
4035
4046
|
A: [
|
|
4036
4047
|
"properties",
|
|
@@ -4046,7 +4057,7 @@ var DataSpace = class {
|
|
|
4046
4057
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4047
4058
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4048
4059
|
F: __dxlog_file13,
|
|
4049
|
-
L:
|
|
4060
|
+
L: 476,
|
|
4050
4061
|
S: this,
|
|
4051
4062
|
A: [
|
|
4052
4063
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4115,7 +4126,7 @@ var DataSpace = class {
|
|
|
4115
4126
|
state: SpaceState[this._state]
|
|
4116
4127
|
}, {
|
|
4117
4128
|
F: __dxlog_file13,
|
|
4118
|
-
L:
|
|
4129
|
+
L: 542,
|
|
4119
4130
|
S: this,
|
|
4120
4131
|
C: (f, a) => f(...a)
|
|
4121
4132
|
});
|
|
@@ -4167,6 +4178,18 @@ DataSpace = _ts_decorate4([
|
|
|
4167
4178
|
trackLeaks("open", "close"),
|
|
4168
4179
|
trace6.resource()
|
|
4169
4180
|
], DataSpace);
|
|
4181
|
+
var findPropertiesObject = (spaceDoc) => {
|
|
4182
|
+
for (const id in spaceDoc.objects ?? {}) {
|
|
4183
|
+
const obj = spaceDoc.objects[id];
|
|
4184
|
+
if (obj.system.type?.itemId === TYPE_PROPERTIES) {
|
|
4185
|
+
return [
|
|
4186
|
+
id,
|
|
4187
|
+
obj
|
|
4188
|
+
];
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
return void 0;
|
|
4192
|
+
};
|
|
4170
4193
|
|
|
4171
4194
|
// packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts
|
|
4172
4195
|
import { Event as Event7, synchronized as synchronized2, trackLeaks as trackLeaks2 } from "@dxos/async";
|
|
@@ -4176,10 +4199,11 @@ import { AuthStatus } from "@dxos/echo-pipeline";
|
|
|
4176
4199
|
import { invariant as invariant13 } from "@dxos/invariant";
|
|
4177
4200
|
import { PublicKey as PublicKey11 } from "@dxos/keys";
|
|
4178
4201
|
import { log as log12 } from "@dxos/log";
|
|
4179
|
-
import { trace as
|
|
4202
|
+
import { trace as Trace2 } from "@dxos/protocols";
|
|
4180
4203
|
import { Invitation as Invitation7, SpaceState as SpaceState2 } from "@dxos/protocols/proto/dxos/client/services";
|
|
4181
4204
|
import { SpaceMember as SpaceMember5 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
4182
4205
|
import { Gossip as Gossip2, Presence as Presence2 } from "@dxos/teleport-extension-gossip";
|
|
4206
|
+
import { trace as trace7 } from "@dxos/tracing";
|
|
4183
4207
|
import { ComplexMap as ComplexMap3, deferFunction as deferFunction2, forEachAsync } from "@dxos/util";
|
|
4184
4208
|
|
|
4185
4209
|
// packages/sdk/client-services/src/packlets/spaces/genesis.ts
|
|
@@ -4283,6 +4307,28 @@ var DataSpaceManager = class {
|
|
|
4283
4307
|
const { spaceMemberPresenceAnnounceInterval = PRESENCE_ANNOUNCE_INTERVAL, spaceMemberPresenceOfflineTimeout = PRESENCE_OFFLINE_TIMEOUT } = params ?? {};
|
|
4284
4308
|
this._spaceMemberPresenceAnnounceInterval = spaceMemberPresenceAnnounceInterval;
|
|
4285
4309
|
this._spaceMemberPresenceOfflineTimeout = spaceMemberPresenceOfflineTimeout;
|
|
4310
|
+
trace7.diagnostic({
|
|
4311
|
+
id: "spaces",
|
|
4312
|
+
name: "Spaces",
|
|
4313
|
+
fetch: async () => {
|
|
4314
|
+
return Array.from(this._spaces.values()).map((space) => {
|
|
4315
|
+
const rootUrl = space.automergeSpaceState.rootUrl;
|
|
4316
|
+
const rootHandle = rootUrl ? this._echoHost.automergeRepo.find(rootUrl) : void 0;
|
|
4317
|
+
const rootDoc = rootHandle?.docSync();
|
|
4318
|
+
const properties = rootDoc && findPropertiesObject(rootDoc);
|
|
4319
|
+
return {
|
|
4320
|
+
key: space.key.toHex(),
|
|
4321
|
+
state: SpaceState2[space.state],
|
|
4322
|
+
name: properties?.[1].data.name ?? null,
|
|
4323
|
+
inlineObjects: rootDoc ? Object.keys(rootDoc.objects ?? {}).length : null,
|
|
4324
|
+
linkedObjects: rootDoc ? Object.keys(rootDoc.links ?? {}).length : null,
|
|
4325
|
+
credentials: space.inner.spaceState.credentials.length,
|
|
4326
|
+
members: space.inner.spaceState.members.size,
|
|
4327
|
+
rootUrl
|
|
4328
|
+
};
|
|
4329
|
+
});
|
|
4330
|
+
}
|
|
4331
|
+
});
|
|
4286
4332
|
}
|
|
4287
4333
|
// TODO(burdon): Remove.
|
|
4288
4334
|
get spaces() {
|
|
@@ -4291,15 +4337,15 @@ var DataSpaceManager = class {
|
|
|
4291
4337
|
async open() {
|
|
4292
4338
|
log12("open", void 0, {
|
|
4293
4339
|
F: __dxlog_file14,
|
|
4294
|
-
L:
|
|
4340
|
+
L: 144,
|
|
4295
4341
|
S: this,
|
|
4296
4342
|
C: (f, a) => f(...a)
|
|
4297
4343
|
});
|
|
4298
|
-
log12.trace("dxos.echo.data-space-manager.open",
|
|
4344
|
+
log12.trace("dxos.echo.data-space-manager.open", Trace2.begin({
|
|
4299
4345
|
id: this._instanceId
|
|
4300
4346
|
}), {
|
|
4301
4347
|
F: __dxlog_file14,
|
|
4302
|
-
L:
|
|
4348
|
+
L: 145,
|
|
4303
4349
|
S: this,
|
|
4304
4350
|
C: (f, a) => f(...a)
|
|
4305
4351
|
});
|
|
@@ -4307,7 +4353,7 @@ var DataSpaceManager = class {
|
|
|
4307
4353
|
spaces: this._metadataStore.spaces.length
|
|
4308
4354
|
}, {
|
|
4309
4355
|
F: __dxlog_file14,
|
|
4310
|
-
L:
|
|
4356
|
+
L: 146,
|
|
4311
4357
|
S: this,
|
|
4312
4358
|
C: (f, a) => f(...a)
|
|
4313
4359
|
});
|
|
@@ -4317,7 +4363,7 @@ var DataSpaceManager = class {
|
|
|
4317
4363
|
spaceMetadata
|
|
4318
4364
|
}, {
|
|
4319
4365
|
F: __dxlog_file14,
|
|
4320
|
-
L:
|
|
4366
|
+
L: 150,
|
|
4321
4367
|
S: this,
|
|
4322
4368
|
C: (f, a) => f(...a)
|
|
4323
4369
|
});
|
|
@@ -4328,7 +4374,7 @@ var DataSpaceManager = class {
|
|
|
4328
4374
|
err
|
|
4329
4375
|
}, {
|
|
4330
4376
|
F: __dxlog_file14,
|
|
4331
|
-
L:
|
|
4377
|
+
L: 153,
|
|
4332
4378
|
S: this,
|
|
4333
4379
|
C: (f, a) => f(...a)
|
|
4334
4380
|
});
|
|
@@ -4341,11 +4387,11 @@ var DataSpaceManager = class {
|
|
|
4341
4387
|
space.initializeDataPipelineAsync();
|
|
4342
4388
|
}
|
|
4343
4389
|
}
|
|
4344
|
-
log12.trace("dxos.echo.data-space-manager.open",
|
|
4390
|
+
log12.trace("dxos.echo.data-space-manager.open", Trace2.end({
|
|
4345
4391
|
id: this._instanceId
|
|
4346
4392
|
}), {
|
|
4347
4393
|
F: __dxlog_file14,
|
|
4348
|
-
L:
|
|
4394
|
+
L: 166,
|
|
4349
4395
|
S: this,
|
|
4350
4396
|
C: (f, a) => f(...a)
|
|
4351
4397
|
});
|
|
@@ -4353,7 +4399,7 @@ var DataSpaceManager = class {
|
|
|
4353
4399
|
async close() {
|
|
4354
4400
|
log12("close", void 0, {
|
|
4355
4401
|
F: __dxlog_file14,
|
|
4356
|
-
L:
|
|
4402
|
+
L: 171,
|
|
4357
4403
|
S: this,
|
|
4358
4404
|
C: (f, a) => f(...a)
|
|
4359
4405
|
});
|
|
@@ -4369,7 +4415,7 @@ var DataSpaceManager = class {
|
|
|
4369
4415
|
async createSpace() {
|
|
4370
4416
|
invariant13(this._isOpen, "Not open.", {
|
|
4371
4417
|
F: __dxlog_file14,
|
|
4372
|
-
L:
|
|
4418
|
+
L: 184,
|
|
4373
4419
|
S: this,
|
|
4374
4420
|
A: [
|
|
4375
4421
|
"this._isOpen",
|
|
@@ -4390,18 +4436,18 @@ var DataSpaceManager = class {
|
|
|
4390
4436
|
spaceKey
|
|
4391
4437
|
}, {
|
|
4392
4438
|
F: __dxlog_file14,
|
|
4393
|
-
L:
|
|
4439
|
+
L: 196,
|
|
4394
4440
|
S: this,
|
|
4395
4441
|
C: (f, a) => f(...a)
|
|
4396
4442
|
});
|
|
4397
|
-
const
|
|
4443
|
+
const root = await this._echoHost.createSpaceRoot(spaceKey);
|
|
4398
4444
|
const space = await this._constructSpace(metadata);
|
|
4399
|
-
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner,
|
|
4445
|
+
const credentials = await spaceGenesis(this._keyring, this._signingContext, space.inner, root.url);
|
|
4400
4446
|
await this._metadataStore.addSpace(metadata);
|
|
4401
4447
|
const memberCredential = credentials[1];
|
|
4402
4448
|
invariant13(getCredentialAssertion2(memberCredential)["@type"] === "dxos.halo.credentials.SpaceMember", void 0, {
|
|
4403
4449
|
F: __dxlog_file14,
|
|
4404
|
-
L:
|
|
4450
|
+
L: 205,
|
|
4405
4451
|
S: this,
|
|
4406
4452
|
A: [
|
|
4407
4453
|
"getCredentialAssertion(memberCredential)['@type'] === 'dxos.halo.credentials.SpaceMember'",
|
|
@@ -4419,13 +4465,13 @@ var DataSpaceManager = class {
|
|
|
4419
4465
|
opts
|
|
4420
4466
|
}, {
|
|
4421
4467
|
F: __dxlog_file14,
|
|
4422
|
-
L:
|
|
4468
|
+
L: 217,
|
|
4423
4469
|
S: this,
|
|
4424
4470
|
C: (f, a) => f(...a)
|
|
4425
4471
|
});
|
|
4426
4472
|
invariant13(this._isOpen, "Not open.", {
|
|
4427
4473
|
F: __dxlog_file14,
|
|
4428
|
-
L:
|
|
4474
|
+
L: 218,
|
|
4429
4475
|
S: this,
|
|
4430
4476
|
A: [
|
|
4431
4477
|
"this._isOpen",
|
|
@@ -4434,7 +4480,7 @@ var DataSpaceManager = class {
|
|
|
4434
4480
|
});
|
|
4435
4481
|
invariant13(!this._spaces.has(opts.spaceKey), "Space already exists.", {
|
|
4436
4482
|
F: __dxlog_file14,
|
|
4437
|
-
L:
|
|
4483
|
+
L: 219,
|
|
4438
4484
|
S: this,
|
|
4439
4485
|
A: [
|
|
4440
4486
|
"!this._spaces.has(opts.spaceKey)",
|
|
@@ -4469,7 +4515,7 @@ var DataSpaceManager = class {
|
|
|
4469
4515
|
metadata
|
|
4470
4516
|
}, {
|
|
4471
4517
|
F: __dxlog_file14,
|
|
4472
|
-
L:
|
|
4518
|
+
L: 252,
|
|
4473
4519
|
S: this,
|
|
4474
4520
|
C: (f, a) => f(...a)
|
|
4475
4521
|
});
|
|
@@ -4507,7 +4553,7 @@ var DataSpaceManager = class {
|
|
|
4507
4553
|
onAuthFailure: () => {
|
|
4508
4554
|
log12.warn("auth failure", void 0, {
|
|
4509
4555
|
F: __dxlog_file14,
|
|
4510
|
-
L:
|
|
4556
|
+
L: 289,
|
|
4511
4557
|
S: this,
|
|
4512
4558
|
C: (f, a) => f(...a)
|
|
4513
4559
|
});
|
|
@@ -4540,7 +4586,7 @@ var DataSpaceManager = class {
|
|
|
4540
4586
|
space: space.key
|
|
4541
4587
|
}, {
|
|
4542
4588
|
F: __dxlog_file14,
|
|
4543
|
-
L:
|
|
4589
|
+
L: 316,
|
|
4544
4590
|
S: this,
|
|
4545
4591
|
C: (f, a) => f(...a)
|
|
4546
4592
|
});
|
|
@@ -4551,7 +4597,7 @@ var DataSpaceManager = class {
|
|
|
4551
4597
|
open: this._isOpen
|
|
4552
4598
|
}, {
|
|
4553
4599
|
F: __dxlog_file14,
|
|
4554
|
-
L:
|
|
4600
|
+
L: 319,
|
|
4555
4601
|
S: this,
|
|
4556
4602
|
C: (f, a) => f(...a)
|
|
4557
4603
|
});
|
|
@@ -4570,7 +4616,7 @@ var DataSpaceManager = class {
|
|
|
4570
4616
|
space: space.key
|
|
4571
4617
|
}, {
|
|
4572
4618
|
F: __dxlog_file14,
|
|
4573
|
-
L:
|
|
4619
|
+
L: 327,
|
|
4574
4620
|
S: this,
|
|
4575
4621
|
C: (f, a) => f(...a)
|
|
4576
4622
|
});
|
|
@@ -4614,7 +4660,7 @@ var DataSpaceManager = class {
|
|
|
4614
4660
|
closedSessions
|
|
4615
4661
|
}, {
|
|
4616
4662
|
F: __dxlog_file14,
|
|
4617
|
-
L:
|
|
4663
|
+
L: 367,
|
|
4618
4664
|
S: this,
|
|
4619
4665
|
C: (f, a) => f(...a)
|
|
4620
4666
|
});
|
|
@@ -4629,7 +4675,7 @@ var DataSpaceManager = class {
|
|
|
4629
4675
|
peerId: peerState.peerId
|
|
4630
4676
|
}, {
|
|
4631
4677
|
F: __dxlog_file14,
|
|
4632
|
-
L:
|
|
4678
|
+
L: 381,
|
|
4633
4679
|
S: this,
|
|
4634
4680
|
C: (f, a) => f(...a)
|
|
4635
4681
|
});
|
|
@@ -4962,7 +5008,7 @@ import { log as log14 } from "@dxos/log";
|
|
|
4962
5008
|
import { InvalidStorageVersionError, STORAGE_VERSION, trace as trace8 } from "@dxos/protocols";
|
|
4963
5009
|
import { Invitation as Invitation8 } from "@dxos/protocols/proto/dxos/client/services";
|
|
4964
5010
|
import { BlobStore } from "@dxos/teleport-extension-object-sync";
|
|
4965
|
-
import { trace as
|
|
5011
|
+
import { trace as Trace3 } from "@dxos/tracing";
|
|
4966
5012
|
import { safeInstanceof } from "@dxos/util";
|
|
4967
5013
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
4968
5014
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -5222,14 +5268,14 @@ var ServiceContext = class extends Resource {
|
|
|
5222
5268
|
}
|
|
5223
5269
|
};
|
|
5224
5270
|
_ts_decorate6([
|
|
5225
|
-
|
|
5271
|
+
Trace3.span()
|
|
5226
5272
|
], ServiceContext.prototype, "_open", null);
|
|
5227
5273
|
_ts_decorate6([
|
|
5228
|
-
|
|
5274
|
+
Trace3.span()
|
|
5229
5275
|
], ServiceContext.prototype, "_initialize", null);
|
|
5230
5276
|
ServiceContext = _ts_decorate6([
|
|
5231
5277
|
safeInstanceof("dxos.client-services.ServiceContext"),
|
|
5232
|
-
|
|
5278
|
+
Trace3.resource()
|
|
5233
5279
|
], ServiceContext);
|
|
5234
5280
|
|
|
5235
5281
|
// packages/sdk/client-services/src/packlets/services/service-registry.ts
|
|
@@ -5266,7 +5312,7 @@ import { SpaceMember as SpaceMember7 } from "@dxos/protocols/proto/dxos/client/s
|
|
|
5266
5312
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
5267
5313
|
|
|
5268
5314
|
// packages/sdk/client-services/src/version.ts
|
|
5269
|
-
var DXOS_VERSION = "0.5.3-
|
|
5315
|
+
var DXOS_VERSION = "0.5.3-next.056e7da";
|
|
5270
5316
|
|
|
5271
5317
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
5272
5318
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -5530,7 +5576,7 @@ import { WebsocketSignalManager } from "@dxos/messaging";
|
|
|
5530
5576
|
import { NetworkManager, createSimplePeerTransportFactory } from "@dxos/network-manager";
|
|
5531
5577
|
import { trace as trace9 } from "@dxos/protocols";
|
|
5532
5578
|
import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
|
|
5533
|
-
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as
|
|
5579
|
+
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace4 } from "@dxos/tracing";
|
|
5534
5580
|
import { assignDeep as assignDeep2 } from "@dxos/util";
|
|
5535
5581
|
import { WebsocketRpcClient } from "@dxos/websocket-rpc";
|
|
5536
5582
|
|
|
@@ -6414,21 +6460,21 @@ var ClientServicesHost = class {
|
|
|
6414
6460
|
}
|
|
6415
6461
|
};
|
|
6416
6462
|
_ts_decorate8([
|
|
6417
|
-
|
|
6463
|
+
Trace4.info()
|
|
6418
6464
|
], ClientServicesHost.prototype, "_opening", void 0);
|
|
6419
6465
|
_ts_decorate8([
|
|
6420
|
-
|
|
6466
|
+
Trace4.info()
|
|
6421
6467
|
], ClientServicesHost.prototype, "_open", void 0);
|
|
6422
6468
|
_ts_decorate8([
|
|
6423
6469
|
synchronized3,
|
|
6424
|
-
|
|
6470
|
+
Trace4.span()
|
|
6425
6471
|
], ClientServicesHost.prototype, "open", null);
|
|
6426
6472
|
_ts_decorate8([
|
|
6427
6473
|
synchronized3,
|
|
6428
|
-
|
|
6474
|
+
Trace4.span()
|
|
6429
6475
|
], ClientServicesHost.prototype, "close", null);
|
|
6430
6476
|
ClientServicesHost = _ts_decorate8([
|
|
6431
|
-
|
|
6477
|
+
Trace4.resource()
|
|
6432
6478
|
], ClientServicesHost);
|
|
6433
6479
|
|
|
6434
6480
|
// packages/sdk/client-services/src/packlets/services/util.ts
|
|
@@ -6497,6 +6543,7 @@ export {
|
|
|
6497
6543
|
InvitationsManager,
|
|
6498
6544
|
ClientRpcServer,
|
|
6499
6545
|
DataSpace,
|
|
6546
|
+
findPropertiesObject,
|
|
6500
6547
|
DataSpaceManager,
|
|
6501
6548
|
SpacesServiceImpl,
|
|
6502
6549
|
ServiceContext,
|
|
@@ -6512,4 +6559,4 @@ export {
|
|
|
6512
6559
|
ClientServicesHost,
|
|
6513
6560
|
ClientServicesProviderResource
|
|
6514
6561
|
};
|
|
6515
|
-
//# sourceMappingURL=chunk-
|
|
6562
|
+
//# sourceMappingURL=chunk-LLOORBYN.mjs.map
|