@dxos/client-services 0.3.2-main.ce2190e → 0.3.2-main.d3a33b8
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-ZGPBGQ4M.mjs → chunk-543AQCXG.mjs} +72 -126
- package/dist/lib/browser/chunk-543AQCXG.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 +1 -1
- package/dist/lib/node/index.cjs +115 -159
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +91 -135
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/devices/devices-service.d.ts +2 -2
- package/dist/types/src/packlets/devices/devices-service.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity-manager.d.ts +0 -4
- package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
- package/dist/types/src/packlets/identity/identity.d.ts +2 -2
- package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +37 -35
- package/src/packlets/devices/devices-service.ts +3 -15
- package/src/packlets/identity/identity-manager.test.ts +6 -5
- package/src/packlets/identity/identity-manager.ts +12 -20
- package/src/packlets/identity/identity.ts +4 -2
- package/src/packlets/invitations/invitations-service.ts +0 -2
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-ZGPBGQ4M.mjs.map +0 -7
|
@@ -483,6 +483,14 @@ var Identity = class Identity2 {
|
|
|
483
483
|
this._signer = signer;
|
|
484
484
|
this.identityKey = identityKey;
|
|
485
485
|
this.deviceKey = deviceKey;
|
|
486
|
+
log2.trace("dxos.halo.device", {
|
|
487
|
+
deviceKey
|
|
488
|
+
}, {
|
|
489
|
+
F: __dxlog_file2,
|
|
490
|
+
L: 60,
|
|
491
|
+
S: this,
|
|
492
|
+
C: (f, a) => f(...a)
|
|
493
|
+
});
|
|
486
494
|
this._deviceStateMachine = new DeviceStateMachine({
|
|
487
495
|
identityKey: this.identityKey,
|
|
488
496
|
deviceKey: this.deviceKey,
|
|
@@ -551,7 +559,7 @@ var Identity = class Identity2 {
|
|
|
551
559
|
getIdentityCredentialSigner() {
|
|
552
560
|
invariant(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
|
|
553
561
|
F: __dxlog_file2,
|
|
554
|
-
L:
|
|
562
|
+
L: 141,
|
|
555
563
|
S: this,
|
|
556
564
|
A: [
|
|
557
565
|
"this._deviceStateMachine.deviceCredentialChain",
|
|
@@ -575,7 +583,7 @@ var Identity = class Identity2 {
|
|
|
575
583
|
dataFeedKey
|
|
576
584
|
}, {
|
|
577
585
|
F: __dxlog_file2,
|
|
578
|
-
L:
|
|
586
|
+
L: 157,
|
|
579
587
|
S: this,
|
|
580
588
|
C: (f, a) => f(...a)
|
|
581
589
|
});
|
|
@@ -627,6 +635,7 @@ Identity = _ts_decorate([
|
|
|
627
635
|
], Identity);
|
|
628
636
|
|
|
629
637
|
// packages/sdk/client-services/src/packlets/identity/identity-manager.ts
|
|
638
|
+
import platform from "platform";
|
|
630
639
|
import { Event as Event2 } from "@dxos/async";
|
|
631
640
|
import { Context as Context3 } from "@dxos/context";
|
|
632
641
|
import { createCredentialSignerWithKey as createCredentialSignerWithKey2, CredentialGenerator } from "@dxos/credentials";
|
|
@@ -668,7 +677,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
668
677
|
id: traceId
|
|
669
678
|
}), {
|
|
670
679
|
F: __dxlog_file3,
|
|
671
|
-
L:
|
|
680
|
+
L: 75,
|
|
672
681
|
S: this,
|
|
673
682
|
C: (f, a) => f(...a)
|
|
674
683
|
});
|
|
@@ -677,7 +686,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
677
686
|
identityRecord
|
|
678
687
|
}, {
|
|
679
688
|
F: __dxlog_file3,
|
|
680
|
-
L:
|
|
689
|
+
L: 78,
|
|
681
690
|
S: this,
|
|
682
691
|
C: (f, a) => f(...a)
|
|
683
692
|
});
|
|
@@ -690,7 +699,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
690
699
|
displayName: this._identity.profileDocument?.displayName
|
|
691
700
|
}, {
|
|
692
701
|
F: __dxlog_file3,
|
|
693
|
-
L:
|
|
702
|
+
L: 83,
|
|
694
703
|
S: this,
|
|
695
704
|
C: (f, a) => f(...a)
|
|
696
705
|
});
|
|
@@ -700,7 +709,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
700
709
|
id: traceId
|
|
701
710
|
}), {
|
|
702
711
|
F: __dxlog_file3,
|
|
703
|
-
L:
|
|
712
|
+
L: 89,
|
|
704
713
|
S: this,
|
|
705
714
|
C: (f, a) => f(...a)
|
|
706
715
|
});
|
|
@@ -711,7 +720,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
711
720
|
async createIdentity({ displayName } = {}) {
|
|
712
721
|
invariant2(!this._identity, "Identity already exists.", {
|
|
713
722
|
F: __dxlog_file3,
|
|
714
|
-
L:
|
|
723
|
+
L: 97,
|
|
715
724
|
S: this,
|
|
716
725
|
A: [
|
|
717
726
|
"!this._identity",
|
|
@@ -720,7 +729,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
720
729
|
});
|
|
721
730
|
log3("creating identity...", void 0, {
|
|
722
731
|
F: __dxlog_file3,
|
|
723
|
-
L:
|
|
732
|
+
L: 98,
|
|
724
733
|
S: this,
|
|
725
734
|
C: (f, a) => f(...a)
|
|
726
735
|
});
|
|
@@ -741,7 +750,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
741
750
|
const generator = new CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
|
|
742
751
|
invariant2(identityRecord.haloSpace.genesisFeedKey, "Genesis feed key is required.", {
|
|
743
752
|
F: __dxlog_file3,
|
|
744
|
-
L:
|
|
753
|
+
L: 117,
|
|
745
754
|
S: this,
|
|
746
755
|
A: [
|
|
747
756
|
"identityRecord.haloSpace.genesisFeedKey",
|
|
@@ -750,7 +759,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
750
759
|
});
|
|
751
760
|
invariant2(identityRecord.haloSpace.dataFeedKey, "Data feed key is required.", {
|
|
752
761
|
F: __dxlog_file3,
|
|
753
|
-
L:
|
|
762
|
+
L: 118,
|
|
754
763
|
S: this,
|
|
755
764
|
A: [
|
|
756
765
|
"identityRecord.haloSpace.dataFeedKey",
|
|
@@ -769,6 +778,13 @@ var IdentityManager = class IdentityManager2 {
|
|
|
769
778
|
}));
|
|
770
779
|
}
|
|
771
780
|
credentials.push(await generator.createDeviceAuthorization(identityRecord.deviceKey));
|
|
781
|
+
credentials.push(await generator.createDeviceProfile({
|
|
782
|
+
platform: platform.name,
|
|
783
|
+
platformVersion: platform.version,
|
|
784
|
+
architecture: typeof platform.os?.architecture === "number" ? String(platform.os.architecture) : void 0,
|
|
785
|
+
os: platform.os?.family,
|
|
786
|
+
osVersion: platform.os?.version
|
|
787
|
+
}));
|
|
772
788
|
for (const credential of credentials) {
|
|
773
789
|
await identity.controlPipeline.writer.write({
|
|
774
790
|
credential: {
|
|
@@ -785,7 +801,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
785
801
|
displayName: this._identity.profileDocument?.displayName
|
|
786
802
|
}, {
|
|
787
803
|
F: __dxlog_file3,
|
|
788
|
-
L:
|
|
804
|
+
L: 163,
|
|
789
805
|
S: this,
|
|
790
806
|
C: (f, a) => f(...a)
|
|
791
807
|
});
|
|
@@ -795,7 +811,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
795
811
|
deviceKey: identity.deviceKey
|
|
796
812
|
}, {
|
|
797
813
|
F: __dxlog_file3,
|
|
798
|
-
L:
|
|
814
|
+
L: 169,
|
|
799
815
|
S: this,
|
|
800
816
|
C: (f, a) => f(...a)
|
|
801
817
|
});
|
|
@@ -809,13 +825,13 @@ var IdentityManager = class IdentityManager2 {
|
|
|
809
825
|
params
|
|
810
826
|
}, {
|
|
811
827
|
F: __dxlog_file3,
|
|
812
|
-
L:
|
|
828
|
+
L: 177,
|
|
813
829
|
S: this,
|
|
814
830
|
C: (f, a) => f(...a)
|
|
815
831
|
});
|
|
816
832
|
invariant2(!this._identity, "Identity already exists.", {
|
|
817
833
|
F: __dxlog_file3,
|
|
818
|
-
L:
|
|
834
|
+
L: 178,
|
|
819
835
|
S: this,
|
|
820
836
|
A: [
|
|
821
837
|
"!this._identity",
|
|
@@ -843,7 +859,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
843
859
|
displayName: this._identity.profileDocument?.displayName
|
|
844
860
|
}, {
|
|
845
861
|
F: __dxlog_file3,
|
|
846
|
-
L:
|
|
862
|
+
L: 197,
|
|
847
863
|
S: this,
|
|
848
864
|
C: (f, a) => f(...a)
|
|
849
865
|
});
|
|
@@ -853,7 +869,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
853
869
|
deviceKey: identity.deviceKey
|
|
854
870
|
}, {
|
|
855
871
|
F: __dxlog_file3,
|
|
856
|
-
L:
|
|
872
|
+
L: 203,
|
|
857
873
|
S: this,
|
|
858
874
|
C: (f, a) => f(...a)
|
|
859
875
|
});
|
|
@@ -865,7 +881,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
865
881
|
async updateProfile(profile) {
|
|
866
882
|
invariant2(this._identity, "Identity not initialized.", {
|
|
867
883
|
F: __dxlog_file3,
|
|
868
|
-
L:
|
|
884
|
+
L: 211,
|
|
869
885
|
S: this,
|
|
870
886
|
A: [
|
|
871
887
|
"this._identity",
|
|
@@ -893,51 +909,10 @@ var IdentityManager = class IdentityManager2 {
|
|
|
893
909
|
this.stateUpdate.emit();
|
|
894
910
|
return profile;
|
|
895
911
|
}
|
|
896
|
-
async updateDevice({ deviceKey, profile }) {
|
|
897
|
-
invariant2(this._identity, "Identity not initialized.", {
|
|
898
|
-
F: __dxlog_file3,
|
|
899
|
-
L: 216,
|
|
900
|
-
S: this,
|
|
901
|
-
A: [
|
|
902
|
-
"this._identity",
|
|
903
|
-
"'Identity not initialized.'"
|
|
904
|
-
]
|
|
905
|
-
});
|
|
906
|
-
invariant2(this._identity.authorizedDeviceKeys.has(deviceKey), "Device not authorized.", {
|
|
907
|
-
F: __dxlog_file3,
|
|
908
|
-
L: 218,
|
|
909
|
-
S: this,
|
|
910
|
-
A: [
|
|
911
|
-
"this._identity.authorizedDeviceKeys.has(deviceKey)",
|
|
912
|
-
"'Device not authorized.'"
|
|
913
|
-
]
|
|
914
|
-
});
|
|
915
|
-
const credential = await this._identity.getIdentityCredentialSigner().createCredential({
|
|
916
|
-
subject: this._identity.identityKey,
|
|
917
|
-
assertion: {
|
|
918
|
-
"@type": "dxos.halo.credentials.DeviceProfile",
|
|
919
|
-
deviceKey,
|
|
920
|
-
profile
|
|
921
|
-
}
|
|
922
|
-
});
|
|
923
|
-
const receipt = await this._identity.controlPipeline.writer.write({
|
|
924
|
-
credential: {
|
|
925
|
-
credential
|
|
926
|
-
}
|
|
927
|
-
});
|
|
928
|
-
await this._identity.controlPipeline.state.waitUntilTimeframe(new Timeframe([
|
|
929
|
-
[
|
|
930
|
-
receipt.feedKey,
|
|
931
|
-
receipt.seq
|
|
932
|
-
]
|
|
933
|
-
]));
|
|
934
|
-
this.stateUpdate.emit();
|
|
935
|
-
return profile;
|
|
936
|
-
}
|
|
937
912
|
async _constructIdentity(identityRecord) {
|
|
938
913
|
invariant2(!this._identity, void 0, {
|
|
939
914
|
F: __dxlog_file3,
|
|
940
|
-
L:
|
|
915
|
+
L: 228,
|
|
941
916
|
S: this,
|
|
942
917
|
A: [
|
|
943
918
|
"!this._identity",
|
|
@@ -948,13 +923,13 @@ var IdentityManager = class IdentityManager2 {
|
|
|
948
923
|
identityRecord
|
|
949
924
|
}, {
|
|
950
925
|
F: __dxlog_file3,
|
|
951
|
-
L:
|
|
926
|
+
L: 229,
|
|
952
927
|
S: this,
|
|
953
928
|
C: (f, a) => f(...a)
|
|
954
929
|
});
|
|
955
930
|
invariant2(identityRecord.haloSpace.controlFeedKey, void 0, {
|
|
956
931
|
F: __dxlog_file3,
|
|
957
|
-
L:
|
|
932
|
+
L: 232,
|
|
958
933
|
S: this,
|
|
959
934
|
A: [
|
|
960
935
|
"identityRecord.haloSpace.controlFeedKey",
|
|
@@ -966,7 +941,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
966
941
|
});
|
|
967
942
|
invariant2(identityRecord.haloSpace.dataFeedKey, void 0, {
|
|
968
943
|
F: __dxlog_file3,
|
|
969
|
-
L:
|
|
944
|
+
L: 236,
|
|
970
945
|
S: this,
|
|
971
946
|
A: [
|
|
972
947
|
"identityRecord.haloSpace.dataFeedKey",
|
|
@@ -998,7 +973,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
998
973
|
identityKey: identityRecord.identityKey
|
|
999
974
|
}, {
|
|
1000
975
|
F: __dxlog_file3,
|
|
1001
|
-
L:
|
|
976
|
+
L: 260,
|
|
1002
977
|
S: this,
|
|
1003
978
|
C: (f, a) => f(...a)
|
|
1004
979
|
});
|
|
@@ -1019,7 +994,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
1019
994
|
onAuthFailure: () => {
|
|
1020
995
|
log3.warn("auth failure", void 0, {
|
|
1021
996
|
F: __dxlog_file3,
|
|
1022
|
-
L:
|
|
997
|
+
L: 279,
|
|
1023
998
|
S: this,
|
|
1024
999
|
C: (f, a) => f(...a)
|
|
1025
1000
|
});
|
|
@@ -2233,15 +2208,6 @@ var InvitationsServiceImpl = class {
|
|
|
2233
2208
|
await accepted.cancel();
|
|
2234
2209
|
this._acceptInvitations.delete(invitationId);
|
|
2235
2210
|
this._removedAccepted.emit(accepted.get());
|
|
2236
|
-
} else {
|
|
2237
|
-
log6.warn("invalid invitation", {
|
|
2238
|
-
invitationId
|
|
2239
|
-
}, {
|
|
2240
|
-
F: __dxlog_file8,
|
|
2241
|
-
L: 132,
|
|
2242
|
-
S: this,
|
|
2243
|
-
C: (f, a) => f(...a)
|
|
2244
|
-
});
|
|
2245
2211
|
}
|
|
2246
2212
|
}
|
|
2247
2213
|
queryInvitations() {
|
|
@@ -2529,10 +2495,10 @@ var getPlatform = () => {
|
|
|
2529
2495
|
};
|
|
2530
2496
|
}
|
|
2531
2497
|
} else {
|
|
2532
|
-
const { platform, version, arch } = process;
|
|
2498
|
+
const { platform: platform2, version, arch } = process;
|
|
2533
2499
|
return {
|
|
2534
2500
|
type: "node",
|
|
2535
|
-
platform: `${
|
|
2501
|
+
platform: `${platform2} ${version} ${arch}`,
|
|
2536
2502
|
runtime: process.version,
|
|
2537
2503
|
uptime: Math.floor(process.uptime()),
|
|
2538
2504
|
memory: process.memoryUsage()
|
|
@@ -2541,7 +2507,7 @@ var getPlatform = () => {
|
|
|
2541
2507
|
};
|
|
2542
2508
|
|
|
2543
2509
|
// packages/sdk/client-services/src/version.ts
|
|
2544
|
-
var DXOS_VERSION = "0.3.2-main.
|
|
2510
|
+
var DXOS_VERSION = "0.3.2-main.d3a33b8";
|
|
2545
2511
|
|
|
2546
2512
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
2547
2513
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -4406,7 +4372,7 @@ import { Context as Context10 } from "@dxos/context";
|
|
|
4406
4372
|
import { DocumentModel as DocumentModel2 } from "@dxos/document-model";
|
|
4407
4373
|
import { DataServiceImpl } from "@dxos/echo-pipeline";
|
|
4408
4374
|
import { base } from "@dxos/echo-schema";
|
|
4409
|
-
import { invariant as
|
|
4375
|
+
import { invariant as invariant14 } from "@dxos/invariant";
|
|
4410
4376
|
import { PublicKey as PublicKey11 } from "@dxos/keys";
|
|
4411
4377
|
import { log as log16 } from "@dxos/log";
|
|
4412
4378
|
import { WebsocketSignalManager } from "@dxos/messaging";
|
|
@@ -4421,33 +4387,13 @@ import { WebsocketRpcClient } from "@dxos/websocket-rpc";
|
|
|
4421
4387
|
// packages/sdk/client-services/src/packlets/devices/devices-service.ts
|
|
4422
4388
|
import { EventSubscriptions as EventSubscriptions3 } from "@dxos/async";
|
|
4423
4389
|
import { Stream as Stream11 } from "@dxos/codec-protobuf";
|
|
4424
|
-
import { invariant as invariant14 } from "@dxos/invariant";
|
|
4425
4390
|
import { DeviceKind } from "@dxos/protocols/proto/dxos/client/services";
|
|
4426
|
-
var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
|
|
4427
4391
|
var DevicesServiceImpl = class {
|
|
4428
4392
|
constructor(_identityManager) {
|
|
4429
4393
|
this._identityManager = _identityManager;
|
|
4430
4394
|
}
|
|
4431
4395
|
async updateDevice(profile) {
|
|
4432
|
-
|
|
4433
|
-
F: __dxlog_file17,
|
|
4434
|
-
L: 17,
|
|
4435
|
-
S: this,
|
|
4436
|
-
A: [
|
|
4437
|
-
"this._identityManager.identity",
|
|
4438
|
-
"'Identity not initialized'"
|
|
4439
|
-
]
|
|
4440
|
-
});
|
|
4441
|
-
const deviceKey = this._identityManager.identity.deviceKey;
|
|
4442
|
-
await this._identityManager.updateDevice({
|
|
4443
|
-
deviceKey,
|
|
4444
|
-
profile
|
|
4445
|
-
});
|
|
4446
|
-
return {
|
|
4447
|
-
deviceKey,
|
|
4448
|
-
kind: DeviceKind.CURRENT,
|
|
4449
|
-
profile
|
|
4450
|
-
};
|
|
4396
|
+
throw new Error("Method not implemented.");
|
|
4451
4397
|
}
|
|
4452
4398
|
queryDevices() {
|
|
4453
4399
|
return new Stream11(({ next }) => {
|
|
@@ -4696,7 +4642,7 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
4696
4642
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4697
4643
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4698
4644
|
}
|
|
4699
|
-
var
|
|
4645
|
+
var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
|
|
4700
4646
|
var createDefaultModelFactory = () => {
|
|
4701
4647
|
return new ModelFactory().registerModel(DocumentModel2).registerModel(TextModel);
|
|
4702
4648
|
};
|
|
@@ -4796,8 +4742,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4796
4742
|
* Can only be called once.
|
|
4797
4743
|
*/
|
|
4798
4744
|
initialize({ config, ...options }) {
|
|
4799
|
-
|
|
4800
|
-
F:
|
|
4745
|
+
invariant14(!this._open, "service host is open", {
|
|
4746
|
+
F: __dxlog_file17,
|
|
4801
4747
|
L: 201,
|
|
4802
4748
|
S: this,
|
|
4803
4749
|
A: [
|
|
@@ -4806,14 +4752,14 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4806
4752
|
]
|
|
4807
4753
|
});
|
|
4808
4754
|
log16("initializing...", void 0, {
|
|
4809
|
-
F:
|
|
4755
|
+
F: __dxlog_file17,
|
|
4810
4756
|
L: 202,
|
|
4811
4757
|
S: this,
|
|
4812
4758
|
C: (f, a) => f(...a)
|
|
4813
4759
|
});
|
|
4814
4760
|
if (config) {
|
|
4815
|
-
|
|
4816
|
-
F:
|
|
4761
|
+
invariant14(!this._config, "config already set", {
|
|
4762
|
+
F: __dxlog_file17,
|
|
4817
4763
|
L: 205,
|
|
4818
4764
|
S: this,
|
|
4819
4765
|
A: [
|
|
@@ -4830,8 +4776,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4830
4776
|
iceServers: this._config?.get("runtime.services.ice")
|
|
4831
4777
|
}), signalManager = new WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
|
|
4832
4778
|
this._signalManager = signalManager;
|
|
4833
|
-
|
|
4834
|
-
F:
|
|
4779
|
+
invariant14(!this._networkManager, "network manager already set", {
|
|
4780
|
+
F: __dxlog_file17,
|
|
4835
4781
|
L: 221,
|
|
4836
4782
|
S: this,
|
|
4837
4783
|
A: [
|
|
@@ -4845,7 +4791,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4845
4791
|
signalManager
|
|
4846
4792
|
});
|
|
4847
4793
|
log16("initialized", void 0, {
|
|
4848
|
-
F:
|
|
4794
|
+
F: __dxlog_file17,
|
|
4849
4795
|
L: 228,
|
|
4850
4796
|
S: this,
|
|
4851
4797
|
C: (f, a) => f(...a)
|
|
@@ -4859,13 +4805,13 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4859
4805
|
log16.trace("dxos.client-services.host.open", trace8.begin({
|
|
4860
4806
|
id: traceId
|
|
4861
4807
|
}), {
|
|
4862
|
-
F:
|
|
4808
|
+
F: __dxlog_file17,
|
|
4863
4809
|
L: 239,
|
|
4864
4810
|
S: this,
|
|
4865
4811
|
C: (f, a) => f(...a)
|
|
4866
4812
|
});
|
|
4867
|
-
|
|
4868
|
-
F:
|
|
4813
|
+
invariant14(this._config, "config not set", {
|
|
4814
|
+
F: __dxlog_file17,
|
|
4869
4815
|
L: 241,
|
|
4870
4816
|
S: this,
|
|
4871
4817
|
A: [
|
|
@@ -4873,8 +4819,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4873
4819
|
"'config not set'"
|
|
4874
4820
|
]
|
|
4875
4821
|
});
|
|
4876
|
-
|
|
4877
|
-
F:
|
|
4822
|
+
invariant14(this._storage, "storage not set", {
|
|
4823
|
+
F: __dxlog_file17,
|
|
4878
4824
|
L: 242,
|
|
4879
4825
|
S: this,
|
|
4880
4826
|
A: [
|
|
@@ -4882,8 +4828,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4882
4828
|
"'storage not set'"
|
|
4883
4829
|
]
|
|
4884
4830
|
});
|
|
4885
|
-
|
|
4886
|
-
F:
|
|
4831
|
+
invariant14(this._signalManager, "signal manager not set", {
|
|
4832
|
+
F: __dxlog_file17,
|
|
4887
4833
|
L: 243,
|
|
4888
4834
|
S: this,
|
|
4889
4835
|
A: [
|
|
@@ -4891,8 +4837,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4891
4837
|
"'signal manager not set'"
|
|
4892
4838
|
]
|
|
4893
4839
|
});
|
|
4894
|
-
|
|
4895
|
-
F:
|
|
4840
|
+
invariant14(this._networkManager, "network manager not set", {
|
|
4841
|
+
F: __dxlog_file17,
|
|
4896
4842
|
L: 244,
|
|
4897
4843
|
S: this,
|
|
4898
4844
|
A: [
|
|
@@ -4904,7 +4850,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4904
4850
|
log16("opening...", {
|
|
4905
4851
|
lockKey: this._resourceLock?.lockKey
|
|
4906
4852
|
}, {
|
|
4907
|
-
F:
|
|
4853
|
+
F: __dxlog_file17,
|
|
4908
4854
|
L: 247,
|
|
4909
4855
|
S: this,
|
|
4910
4856
|
C: (f, a) => f(...a)
|
|
@@ -4950,7 +4896,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4950
4896
|
log16("opened", {
|
|
4951
4897
|
deviceKey
|
|
4952
4898
|
}, {
|
|
4953
|
-
F:
|
|
4899
|
+
F: __dxlog_file17,
|
|
4954
4900
|
L: 316,
|
|
4955
4901
|
S: this,
|
|
4956
4902
|
C: (f, a) => f(...a)
|
|
@@ -4958,7 +4904,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4958
4904
|
log16.trace("dxos.client-services.host.open", trace8.end({
|
|
4959
4905
|
id: traceId
|
|
4960
4906
|
}), {
|
|
4961
|
-
F:
|
|
4907
|
+
F: __dxlog_file17,
|
|
4962
4908
|
L: 317,
|
|
4963
4909
|
S: this,
|
|
4964
4910
|
C: (f, a) => f(...a)
|
|
@@ -4972,7 +4918,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4972
4918
|
log16("closing...", {
|
|
4973
4919
|
deviceKey
|
|
4974
4920
|
}, {
|
|
4975
|
-
F:
|
|
4921
|
+
F: __dxlog_file17,
|
|
4976
4922
|
L: 328,
|
|
4977
4923
|
S: this,
|
|
4978
4924
|
C: (f, a) => f(...a)
|
|
@@ -4988,7 +4934,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4988
4934
|
log16("closed", {
|
|
4989
4935
|
deviceKey
|
|
4990
4936
|
}, {
|
|
4991
|
-
F:
|
|
4937
|
+
F: __dxlog_file17,
|
|
4992
4938
|
L: 335,
|
|
4993
4939
|
S: this,
|
|
4994
4940
|
C: (f, a) => f(...a)
|
|
@@ -4999,13 +4945,13 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4999
4945
|
log16.trace("dxos.sdk.client-services-host.reset", trace8.begin({
|
|
5000
4946
|
id: traceId
|
|
5001
4947
|
}), {
|
|
5002
|
-
F:
|
|
4948
|
+
F: __dxlog_file17,
|
|
5003
4949
|
L: 340,
|
|
5004
4950
|
S: this,
|
|
5005
4951
|
C: (f, a) => f(...a)
|
|
5006
4952
|
});
|
|
5007
4953
|
log16("resetting...", void 0, {
|
|
5008
|
-
F:
|
|
4954
|
+
F: __dxlog_file17,
|
|
5009
4955
|
L: 342,
|
|
5010
4956
|
S: this,
|
|
5011
4957
|
C: (f, a) => f(...a)
|
|
@@ -5013,7 +4959,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
5013
4959
|
await this._serviceContext?.close();
|
|
5014
4960
|
await this._storage.reset();
|
|
5015
4961
|
log16("reset", void 0, {
|
|
5016
|
-
F:
|
|
4962
|
+
F: __dxlog_file17,
|
|
5017
4963
|
L: 345,
|
|
5018
4964
|
S: this,
|
|
5019
4965
|
C: (f, a) => f(...a)
|
|
@@ -5021,7 +4967,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
5021
4967
|
log16.trace("dxos.sdk.client-services-host.reset", trace8.end({
|
|
5022
4968
|
id: traceId
|
|
5023
4969
|
}), {
|
|
5024
|
-
F:
|
|
4970
|
+
F: __dxlog_file17,
|
|
5025
4971
|
L: 346,
|
|
5026
4972
|
S: this,
|
|
5027
4973
|
C: (f, a) => f(...a)
|
|
@@ -5099,4 +5045,4 @@ export {
|
|
|
5099
5045
|
createDefaultModelFactory,
|
|
5100
5046
|
ClientServicesHost
|
|
5101
5047
|
};
|
|
5102
|
-
//# sourceMappingURL=chunk-
|
|
5048
|
+
//# sourceMappingURL=chunk-543AQCXG.mjs.map
|