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