@dxos/client-services 0.5.8 → 0.5.9-main.8359215
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-JECXTGZA.mjs → chunk-QNCZI356.mjs} +34 -27
- package/dist/lib/browser/chunk-QNCZI356.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +4 -4
- package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
- package/dist/lib/node/{chunk-OR7LRWDY.cjs → chunk-ELQ5XXZX.cjs} +34 -27
- package/dist/lib/node/chunk-ELQ5XXZX.cjs.map +7 -0
- package/dist/lib/node/index.cjs +44 -44
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +10 -10
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/devtools/network.d.ts +4 -4
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -1
- package/dist/types/src/packlets/network/network-service.d.ts +2 -2
- package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-context.d.ts +4 -5
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/data-space.d.ts +1 -0
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/packlets/testing/test-builder.d.ts +3 -3
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/package.json +36 -36
- package/src/packlets/devtools/network.ts +4 -4
- package/src/packlets/identity/identity-manager.test.ts +2 -2
- package/src/packlets/identity/identity.test.ts +8 -4
- package/src/packlets/invitations/invitations-handler.ts +2 -2
- package/src/packlets/network/network-service.ts +2 -2
- package/src/packlets/services/service-context.ts +3 -3
- package/src/packlets/services/service-host.ts +6 -7
- package/src/packlets/spaces/data-space.ts +11 -1
- package/src/packlets/spaces/spaces-service.ts +1 -0
- package/src/packlets/testing/test-builder.ts +4 -4
- package/src/version.ts +1 -5
- package/dist/lib/browser/chunk-JECXTGZA.mjs.map +0 -7
- package/dist/lib/node/chunk-OR7LRWDY.cjs.map +0 -7
|
@@ -3309,7 +3309,7 @@ import { Event as Event6, asyncTimeout, scheduleTask as scheduleTask5, sleep as
|
|
|
3309
3309
|
import { AUTH_TIMEOUT as AUTH_TIMEOUT2 } from "@dxos/client-protocol";
|
|
3310
3310
|
import { Context as Context8, ContextDisposedError as ContextDisposedError3, cancelWithContext as cancelWithContext4 } from "@dxos/context";
|
|
3311
3311
|
import { timed, warnAfterTimeout } from "@dxos/debug";
|
|
3312
|
-
import { AutomergeDocumentLoaderImpl, createMappedFeedWriter } from "@dxos/echo-pipeline";
|
|
3312
|
+
import { AutomergeDocumentLoaderImpl, createIdFromSpaceKey, createMappedFeedWriter } from "@dxos/echo-pipeline";
|
|
3313
3313
|
import { TYPE_PROPERTIES } from "@dxos/echo-schema";
|
|
3314
3314
|
import { failedInvariant, invariant as invariant12 } from "@dxos/invariant";
|
|
3315
3315
|
import { PublicKey as PublicKey10 } from "@dxos/keys";
|
|
@@ -3674,11 +3674,14 @@ var DataSpace = class {
|
|
|
3674
3674
|
state: SpaceState[this._state]
|
|
3675
3675
|
}, {
|
|
3676
3676
|
F: __dxlog_file13,
|
|
3677
|
-
L:
|
|
3677
|
+
L: 142,
|
|
3678
3678
|
S: this,
|
|
3679
3679
|
C: (f, a) => f(...a)
|
|
3680
3680
|
});
|
|
3681
3681
|
}
|
|
3682
|
+
get id() {
|
|
3683
|
+
return this._inner.id;
|
|
3684
|
+
}
|
|
3682
3685
|
get key() {
|
|
3683
3686
|
return this._inner.key;
|
|
3684
3687
|
}
|
|
@@ -3724,7 +3727,7 @@ var DataSpace = class {
|
|
|
3724
3727
|
state: SpaceState[this._state]
|
|
3725
3728
|
}, {
|
|
3726
3729
|
F: __dxlog_file13,
|
|
3727
|
-
L:
|
|
3730
|
+
L: 205,
|
|
3728
3731
|
S: this,
|
|
3729
3732
|
C: (f, a) => f(...a)
|
|
3730
3733
|
});
|
|
@@ -3742,7 +3745,7 @@ var DataSpace = class {
|
|
|
3742
3745
|
state: SpaceState[this._state]
|
|
3743
3746
|
}, {
|
|
3744
3747
|
F: __dxlog_file13,
|
|
3745
|
-
L:
|
|
3748
|
+
L: 219,
|
|
3746
3749
|
S: this,
|
|
3747
3750
|
C: (f, a) => f(...a)
|
|
3748
3751
|
});
|
|
@@ -3774,7 +3777,7 @@ var DataSpace = class {
|
|
|
3774
3777
|
if (err instanceof CancelledError || err instanceof ContextDisposedError3) {
|
|
3775
3778
|
log11("data pipeline initialization cancelled", err, {
|
|
3776
3779
|
F: __dxlog_file13,
|
|
3777
|
-
L:
|
|
3780
|
+
L: 252,
|
|
3778
3781
|
S: this,
|
|
3779
3782
|
C: (f, a) => f(...a)
|
|
3780
3783
|
});
|
|
@@ -3782,7 +3785,7 @@ var DataSpace = class {
|
|
|
3782
3785
|
}
|
|
3783
3786
|
log11.error("Error initializing data pipeline", err, {
|
|
3784
3787
|
F: __dxlog_file13,
|
|
3785
|
-
L:
|
|
3788
|
+
L: 256,
|
|
3786
3789
|
S: this,
|
|
3787
3790
|
C: (f, a) => f(...a)
|
|
3788
3791
|
});
|
|
@@ -3791,7 +3794,7 @@ var DataSpace = class {
|
|
|
3791
3794
|
state: SpaceState[this._state]
|
|
3792
3795
|
}, {
|
|
3793
3796
|
F: __dxlog_file13,
|
|
3794
|
-
L:
|
|
3797
|
+
L: 258,
|
|
3795
3798
|
S: this,
|
|
3796
3799
|
C: (f, a) => f(...a)
|
|
3797
3800
|
});
|
|
@@ -3811,7 +3814,7 @@ var DataSpace = class {
|
|
|
3811
3814
|
state: SpaceState[this._state]
|
|
3812
3815
|
}, {
|
|
3813
3816
|
F: __dxlog_file13,
|
|
3814
|
-
L:
|
|
3817
|
+
L: 274,
|
|
3815
3818
|
S: this,
|
|
3816
3819
|
C: (f, a) => f(...a)
|
|
3817
3820
|
});
|
|
@@ -3821,7 +3824,7 @@ var DataSpace = class {
|
|
|
3821
3824
|
await cancelWithContext4(this._ctx, this.automergeSpaceState.ensureEpochInitialized());
|
|
3822
3825
|
log11("data pipeline ready", void 0, {
|
|
3823
3826
|
F: __dxlog_file13,
|
|
3824
|
-
L:
|
|
3827
|
+
L: 286,
|
|
3825
3828
|
S: this,
|
|
3826
3829
|
C: (f, a) => f(...a)
|
|
3827
3830
|
});
|
|
@@ -3831,7 +3834,7 @@ var DataSpace = class {
|
|
|
3831
3834
|
state: SpaceState[this._state]
|
|
3832
3835
|
}, {
|
|
3833
3836
|
F: __dxlog_file13,
|
|
3834
|
-
L:
|
|
3837
|
+
L: 290,
|
|
3835
3838
|
S: this,
|
|
3836
3839
|
C: (f, a) => f(...a)
|
|
3837
3840
|
});
|
|
@@ -3847,7 +3850,7 @@ var DataSpace = class {
|
|
|
3847
3850
|
await this._createWritableFeeds();
|
|
3848
3851
|
log11("writable feeds created", void 0, {
|
|
3849
3852
|
F: __dxlog_file13,
|
|
3850
|
-
L:
|
|
3853
|
+
L: 306,
|
|
3851
3854
|
S: this,
|
|
3852
3855
|
C: (f, a) => f(...a)
|
|
3853
3856
|
});
|
|
@@ -3910,7 +3913,7 @@ var DataSpace = class {
|
|
|
3910
3913
|
rootUrl
|
|
3911
3914
|
}, {
|
|
3912
3915
|
F: __dxlog_file13,
|
|
3913
|
-
L:
|
|
3916
|
+
L: 372,
|
|
3914
3917
|
S: this,
|
|
3915
3918
|
C: (f, a) => f(...a)
|
|
3916
3919
|
});
|
|
@@ -3940,7 +3943,7 @@ var DataSpace = class {
|
|
|
3940
3943
|
rootUrl
|
|
3941
3944
|
}, {
|
|
3942
3945
|
F: __dxlog_file13,
|
|
3943
|
-
L:
|
|
3946
|
+
L: 399,
|
|
3944
3947
|
S: this,
|
|
3945
3948
|
C: (f, a) => f(...a)
|
|
3946
3949
|
});
|
|
@@ -3955,7 +3958,7 @@ var DataSpace = class {
|
|
|
3955
3958
|
err
|
|
3956
3959
|
}, {
|
|
3957
3960
|
F: __dxlog_file13,
|
|
3958
|
-
L:
|
|
3961
|
+
L: 405,
|
|
3959
3962
|
S: this,
|
|
3960
3963
|
C: (f, a) => f(...a)
|
|
3961
3964
|
});
|
|
@@ -4010,7 +4013,7 @@ var DataSpace = class {
|
|
|
4010
4013
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4011
4014
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4012
4015
|
F: __dxlog_file13,
|
|
4013
|
-
L:
|
|
4016
|
+
L: 455,
|
|
4014
4017
|
S: this,
|
|
4015
4018
|
A: [
|
|
4016
4019
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4029,7 +4032,7 @@ var DataSpace = class {
|
|
|
4029
4032
|
{
|
|
4030
4033
|
log11.info("Fragmenting", void 0, {
|
|
4031
4034
|
F: __dxlog_file13,
|
|
4032
|
-
L:
|
|
4035
|
+
L: 467,
|
|
4033
4036
|
S: this,
|
|
4034
4037
|
C: (f, a) => f(...a)
|
|
4035
4038
|
});
|
|
@@ -4041,7 +4044,7 @@ var DataSpace = class {
|
|
|
4041
4044
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4042
4045
|
invariant12(properties, "Properties not found", {
|
|
4043
4046
|
F: __dxlog_file13,
|
|
4044
|
-
L:
|
|
4047
|
+
L: 477,
|
|
4045
4048
|
S: this,
|
|
4046
4049
|
A: [
|
|
4047
4050
|
"properties",
|
|
@@ -4057,14 +4060,14 @@ var DataSpace = class {
|
|
|
4057
4060
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4058
4061
|
invariant12(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4059
4062
|
F: __dxlog_file13,
|
|
4060
|
-
L:
|
|
4063
|
+
L: 482,
|
|
4061
4064
|
S: this,
|
|
4062
4065
|
A: [
|
|
4063
4066
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
4064
4067
|
""
|
|
4065
4068
|
]
|
|
4066
4069
|
});
|
|
4067
|
-
const docLoader = new AutomergeDocumentLoaderImpl(this.key, this._echoHost.automergeRepo);
|
|
4070
|
+
const docLoader = new AutomergeDocumentLoaderImpl(await createIdFromSpaceKey(this.key), this._echoHost.automergeRepo, this.key);
|
|
4068
4071
|
await docLoader.loadSpaceRootDocHandle(this._ctx, {
|
|
4069
4072
|
rootUrl: newRoot.url
|
|
4070
4073
|
});
|
|
@@ -4126,7 +4129,7 @@ var DataSpace = class {
|
|
|
4126
4129
|
state: SpaceState[this._state]
|
|
4127
4130
|
}, {
|
|
4128
4131
|
F: __dxlog_file13,
|
|
4129
|
-
L:
|
|
4132
|
+
L: 552,
|
|
4130
4133
|
S: this,
|
|
4131
4134
|
C: (f, a) => f(...a)
|
|
4132
4135
|
});
|
|
@@ -4136,6 +4139,9 @@ var DataSpace = class {
|
|
|
4136
4139
|
_ts_decorate4([
|
|
4137
4140
|
trace6.info()
|
|
4138
4141
|
], DataSpace.prototype, "_inner", void 0);
|
|
4142
|
+
_ts_decorate4([
|
|
4143
|
+
trace6.info()
|
|
4144
|
+
], DataSpace.prototype, "id", null);
|
|
4139
4145
|
_ts_decorate4([
|
|
4140
4146
|
trace6.info()
|
|
4141
4147
|
], DataSpace.prototype, "key", null);
|
|
@@ -4950,6 +4956,7 @@ var SpacesServiceImpl = class {
|
|
|
4950
4956
|
}
|
|
4951
4957
|
_serializeSpace(space) {
|
|
4952
4958
|
return {
|
|
4959
|
+
id: space.id,
|
|
4953
4960
|
spaceKey: space.key,
|
|
4954
4961
|
state: space.state,
|
|
4955
4962
|
error: space.error ? encodeError(space.error) : void 0,
|
|
@@ -5326,7 +5333,7 @@ import { SpaceMember as SpaceMember7 } from "@dxos/protocols/proto/dxos/client/s
|
|
|
5326
5333
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
5327
5334
|
|
|
5328
5335
|
// packages/sdk/client-services/src/version.ts
|
|
5329
|
-
var DXOS_VERSION = "0.5.
|
|
5336
|
+
var DXOS_VERSION = "0.5.9-main.8359215";
|
|
5330
5337
|
|
|
5331
5338
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
5332
5339
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -5579,7 +5586,7 @@ import { jsonKeyReplacer as jsonKeyReplacer2, nonNullable } from "@dxos/util";
|
|
|
5579
5586
|
|
|
5580
5587
|
// packages/sdk/client-services/src/packlets/services/service-host.ts
|
|
5581
5588
|
import { Event as Event9, synchronized as synchronized3 } from "@dxos/async";
|
|
5582
|
-
import { clientServiceBundle, defaultKey,
|
|
5589
|
+
import { clientServiceBundle, defaultKey, PropertiesType } from "@dxos/client-protocol";
|
|
5583
5590
|
import { Context as Context11 } from "@dxos/context";
|
|
5584
5591
|
import { encodeReference } from "@dxos/echo-protocol";
|
|
5585
5592
|
import { getTypeReference } from "@dxos/echo-schema";
|
|
@@ -5587,7 +5594,7 @@ import { invariant as invariant18 } from "@dxos/invariant";
|
|
|
5587
5594
|
import { PublicKey as PublicKey15 } from "@dxos/keys";
|
|
5588
5595
|
import { log as log18 } from "@dxos/log";
|
|
5589
5596
|
import { WebsocketSignalManager } from "@dxos/messaging";
|
|
5590
|
-
import {
|
|
5597
|
+
import { SwarmNetworkManager, createSimplePeerTransportFactory } from "@dxos/network-manager";
|
|
5591
5598
|
import { trace as trace10 } from "@dxos/protocols";
|
|
5592
5599
|
import { SystemStatus } from "@dxos/protocols/proto/dxos/client/services";
|
|
5593
5600
|
import { TRACE_PROCESSOR as TRACE_PROCESSOR2, trace as Trace4 } from "@dxos/tracing";
|
|
@@ -6238,7 +6245,7 @@ var ClientServicesHost = class {
|
|
|
6238
6245
|
"'network manager already set'"
|
|
6239
6246
|
]
|
|
6240
6247
|
});
|
|
6241
|
-
this._networkManager = new
|
|
6248
|
+
this._networkManager = new SwarmNetworkManager({
|
|
6242
6249
|
log: connectionLog,
|
|
6243
6250
|
transportFactory,
|
|
6244
6251
|
signalManager
|
|
@@ -6449,11 +6456,11 @@ var ClientServicesHost = class {
|
|
|
6449
6456
|
""
|
|
6450
6457
|
]
|
|
6451
6458
|
});
|
|
6452
|
-
const document =
|
|
6459
|
+
const document = this._serviceContext.echoHost.automergeRepo.find(automergeIndex);
|
|
6453
6460
|
await document.whenReady();
|
|
6454
6461
|
const properties = {
|
|
6455
6462
|
system: {
|
|
6456
|
-
type: encodeReference(getTypeReference(
|
|
6463
|
+
type: encodeReference(getTypeReference(PropertiesType))
|
|
6457
6464
|
},
|
|
6458
6465
|
data: {
|
|
6459
6466
|
[defaultKey]: identity.identityKey.toHex()
|
|
@@ -6573,4 +6580,4 @@ export {
|
|
|
6573
6580
|
ClientServicesHost,
|
|
6574
6581
|
ClientServicesProviderResource
|
|
6575
6582
|
};
|
|
6576
|
-
//# sourceMappingURL=chunk-
|
|
6583
|
+
//# sourceMappingURL=chunk-QNCZI356.mjs.map
|