@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
package/dist/lib/node/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// packages/sdk/client-services/src/index.ts
|
|
@@ -542,6 +552,14 @@ var Identity = class Identity2 {
|
|
|
542
552
|
this._signer = signer;
|
|
543
553
|
this.identityKey = identityKey;
|
|
544
554
|
this.deviceKey = deviceKey;
|
|
555
|
+
import_log2.log.trace("dxos.halo.device", {
|
|
556
|
+
deviceKey
|
|
557
|
+
}, {
|
|
558
|
+
F: __dxlog_file2,
|
|
559
|
+
L: 60,
|
|
560
|
+
S: this,
|
|
561
|
+
C: (f, a) => f(...a)
|
|
562
|
+
});
|
|
545
563
|
this._deviceStateMachine = new import_credentials2.DeviceStateMachine({
|
|
546
564
|
identityKey: this.identityKey,
|
|
547
565
|
deviceKey: this.deviceKey,
|
|
@@ -610,7 +628,7 @@ var Identity = class Identity2 {
|
|
|
610
628
|
getIdentityCredentialSigner() {
|
|
611
629
|
(0, import_invariant.invariant)(this._deviceStateMachine.deviceCredentialChain, "Device credential chain is not ready.", {
|
|
612
630
|
F: __dxlog_file2,
|
|
613
|
-
L:
|
|
631
|
+
L: 141,
|
|
614
632
|
S: this,
|
|
615
633
|
A: [
|
|
616
634
|
"this._deviceStateMachine.deviceCredentialChain",
|
|
@@ -634,7 +652,7 @@ var Identity = class Identity2 {
|
|
|
634
652
|
dataFeedKey
|
|
635
653
|
}, {
|
|
636
654
|
F: __dxlog_file2,
|
|
637
|
-
L:
|
|
655
|
+
L: 157,
|
|
638
656
|
S: this,
|
|
639
657
|
C: (f, a) => f(...a)
|
|
640
658
|
});
|
|
@@ -686,6 +704,7 @@ Identity = _ts_decorate([
|
|
|
686
704
|
], Identity);
|
|
687
705
|
|
|
688
706
|
// packages/sdk/client-services/src/packlets/identity/identity-manager.ts
|
|
707
|
+
var import_platform = __toESM(require("platform"));
|
|
689
708
|
var import_async6 = require("@dxos/async");
|
|
690
709
|
var import_context3 = require("@dxos/context");
|
|
691
710
|
var import_credentials4 = require("@dxos/credentials");
|
|
@@ -727,7 +746,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
727
746
|
id: traceId
|
|
728
747
|
}), {
|
|
729
748
|
F: __dxlog_file3,
|
|
730
|
-
L:
|
|
749
|
+
L: 75,
|
|
731
750
|
S: this,
|
|
732
751
|
C: (f, a) => f(...a)
|
|
733
752
|
});
|
|
@@ -736,7 +755,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
736
755
|
identityRecord
|
|
737
756
|
}, {
|
|
738
757
|
F: __dxlog_file3,
|
|
739
|
-
L:
|
|
758
|
+
L: 78,
|
|
740
759
|
S: this,
|
|
741
760
|
C: (f, a) => f(...a)
|
|
742
761
|
});
|
|
@@ -749,7 +768,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
749
768
|
displayName: this._identity.profileDocument?.displayName
|
|
750
769
|
}, {
|
|
751
770
|
F: __dxlog_file3,
|
|
752
|
-
L:
|
|
771
|
+
L: 83,
|
|
753
772
|
S: this,
|
|
754
773
|
C: (f, a) => f(...a)
|
|
755
774
|
});
|
|
@@ -759,7 +778,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
759
778
|
id: traceId
|
|
760
779
|
}), {
|
|
761
780
|
F: __dxlog_file3,
|
|
762
|
-
L:
|
|
781
|
+
L: 89,
|
|
763
782
|
S: this,
|
|
764
783
|
C: (f, a) => f(...a)
|
|
765
784
|
});
|
|
@@ -770,7 +789,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
770
789
|
async createIdentity({ displayName } = {}) {
|
|
771
790
|
(0, import_invariant2.invariant)(!this._identity, "Identity already exists.", {
|
|
772
791
|
F: __dxlog_file3,
|
|
773
|
-
L:
|
|
792
|
+
L: 97,
|
|
774
793
|
S: this,
|
|
775
794
|
A: [
|
|
776
795
|
"!this._identity",
|
|
@@ -779,7 +798,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
779
798
|
});
|
|
780
799
|
(0, import_log3.log)("creating identity...", void 0, {
|
|
781
800
|
F: __dxlog_file3,
|
|
782
|
-
L:
|
|
801
|
+
L: 98,
|
|
783
802
|
S: this,
|
|
784
803
|
C: (f, a) => f(...a)
|
|
785
804
|
});
|
|
@@ -800,7 +819,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
800
819
|
const generator = new import_credentials4.CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
|
|
801
820
|
(0, import_invariant2.invariant)(identityRecord.haloSpace.genesisFeedKey, "Genesis feed key is required.", {
|
|
802
821
|
F: __dxlog_file3,
|
|
803
|
-
L:
|
|
822
|
+
L: 117,
|
|
804
823
|
S: this,
|
|
805
824
|
A: [
|
|
806
825
|
"identityRecord.haloSpace.genesisFeedKey",
|
|
@@ -809,7 +828,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
809
828
|
});
|
|
810
829
|
(0, import_invariant2.invariant)(identityRecord.haloSpace.dataFeedKey, "Data feed key is required.", {
|
|
811
830
|
F: __dxlog_file3,
|
|
812
|
-
L:
|
|
831
|
+
L: 118,
|
|
813
832
|
S: this,
|
|
814
833
|
A: [
|
|
815
834
|
"identityRecord.haloSpace.dataFeedKey",
|
|
@@ -828,6 +847,13 @@ var IdentityManager = class IdentityManager2 {
|
|
|
828
847
|
}));
|
|
829
848
|
}
|
|
830
849
|
credentials.push(await generator.createDeviceAuthorization(identityRecord.deviceKey));
|
|
850
|
+
credentials.push(await generator.createDeviceProfile({
|
|
851
|
+
platform: import_platform.default.name,
|
|
852
|
+
platformVersion: import_platform.default.version,
|
|
853
|
+
architecture: typeof import_platform.default.os?.architecture === "number" ? String(import_platform.default.os.architecture) : void 0,
|
|
854
|
+
os: import_platform.default.os?.family,
|
|
855
|
+
osVersion: import_platform.default.os?.version
|
|
856
|
+
}));
|
|
831
857
|
for (const credential of credentials) {
|
|
832
858
|
await identity.controlPipeline.writer.write({
|
|
833
859
|
credential: {
|
|
@@ -844,7 +870,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
844
870
|
displayName: this._identity.profileDocument?.displayName
|
|
845
871
|
}, {
|
|
846
872
|
F: __dxlog_file3,
|
|
847
|
-
L:
|
|
873
|
+
L: 163,
|
|
848
874
|
S: this,
|
|
849
875
|
C: (f, a) => f(...a)
|
|
850
876
|
});
|
|
@@ -854,7 +880,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
854
880
|
deviceKey: identity.deviceKey
|
|
855
881
|
}, {
|
|
856
882
|
F: __dxlog_file3,
|
|
857
|
-
L:
|
|
883
|
+
L: 169,
|
|
858
884
|
S: this,
|
|
859
885
|
C: (f, a) => f(...a)
|
|
860
886
|
});
|
|
@@ -868,13 +894,13 @@ var IdentityManager = class IdentityManager2 {
|
|
|
868
894
|
params
|
|
869
895
|
}, {
|
|
870
896
|
F: __dxlog_file3,
|
|
871
|
-
L:
|
|
897
|
+
L: 177,
|
|
872
898
|
S: this,
|
|
873
899
|
C: (f, a) => f(...a)
|
|
874
900
|
});
|
|
875
901
|
(0, import_invariant2.invariant)(!this._identity, "Identity already exists.", {
|
|
876
902
|
F: __dxlog_file3,
|
|
877
|
-
L:
|
|
903
|
+
L: 178,
|
|
878
904
|
S: this,
|
|
879
905
|
A: [
|
|
880
906
|
"!this._identity",
|
|
@@ -902,7 +928,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
902
928
|
displayName: this._identity.profileDocument?.displayName
|
|
903
929
|
}, {
|
|
904
930
|
F: __dxlog_file3,
|
|
905
|
-
L:
|
|
931
|
+
L: 197,
|
|
906
932
|
S: this,
|
|
907
933
|
C: (f, a) => f(...a)
|
|
908
934
|
});
|
|
@@ -912,7 +938,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
912
938
|
deviceKey: identity.deviceKey
|
|
913
939
|
}, {
|
|
914
940
|
F: __dxlog_file3,
|
|
915
|
-
L:
|
|
941
|
+
L: 203,
|
|
916
942
|
S: this,
|
|
917
943
|
C: (f, a) => f(...a)
|
|
918
944
|
});
|
|
@@ -924,7 +950,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
924
950
|
async updateProfile(profile) {
|
|
925
951
|
(0, import_invariant2.invariant)(this._identity, "Identity not initialized.", {
|
|
926
952
|
F: __dxlog_file3,
|
|
927
|
-
L:
|
|
953
|
+
L: 211,
|
|
928
954
|
S: this,
|
|
929
955
|
A: [
|
|
930
956
|
"this._identity",
|
|
@@ -952,51 +978,10 @@ var IdentityManager = class IdentityManager2 {
|
|
|
952
978
|
this.stateUpdate.emit();
|
|
953
979
|
return profile;
|
|
954
980
|
}
|
|
955
|
-
async updateDevice({ deviceKey, profile }) {
|
|
956
|
-
(0, import_invariant2.invariant)(this._identity, "Identity not initialized.", {
|
|
957
|
-
F: __dxlog_file3,
|
|
958
|
-
L: 216,
|
|
959
|
-
S: this,
|
|
960
|
-
A: [
|
|
961
|
-
"this._identity",
|
|
962
|
-
"'Identity not initialized.'"
|
|
963
|
-
]
|
|
964
|
-
});
|
|
965
|
-
(0, import_invariant2.invariant)(this._identity.authorizedDeviceKeys.has(deviceKey), "Device not authorized.", {
|
|
966
|
-
F: __dxlog_file3,
|
|
967
|
-
L: 218,
|
|
968
|
-
S: this,
|
|
969
|
-
A: [
|
|
970
|
-
"this._identity.authorizedDeviceKeys.has(deviceKey)",
|
|
971
|
-
"'Device not authorized.'"
|
|
972
|
-
]
|
|
973
|
-
});
|
|
974
|
-
const credential = await this._identity.getIdentityCredentialSigner().createCredential({
|
|
975
|
-
subject: this._identity.identityKey,
|
|
976
|
-
assertion: {
|
|
977
|
-
"@type": "dxos.halo.credentials.DeviceProfile",
|
|
978
|
-
deviceKey,
|
|
979
|
-
profile
|
|
980
|
-
}
|
|
981
|
-
});
|
|
982
|
-
const receipt = await this._identity.controlPipeline.writer.write({
|
|
983
|
-
credential: {
|
|
984
|
-
credential
|
|
985
|
-
}
|
|
986
|
-
});
|
|
987
|
-
await this._identity.controlPipeline.state.waitUntilTimeframe(new import_timeframe.Timeframe([
|
|
988
|
-
[
|
|
989
|
-
receipt.feedKey,
|
|
990
|
-
receipt.seq
|
|
991
|
-
]
|
|
992
|
-
]));
|
|
993
|
-
this.stateUpdate.emit();
|
|
994
|
-
return profile;
|
|
995
|
-
}
|
|
996
981
|
async _constructIdentity(identityRecord) {
|
|
997
982
|
(0, import_invariant2.invariant)(!this._identity, void 0, {
|
|
998
983
|
F: __dxlog_file3,
|
|
999
|
-
L:
|
|
984
|
+
L: 228,
|
|
1000
985
|
S: this,
|
|
1001
986
|
A: [
|
|
1002
987
|
"!this._identity",
|
|
@@ -1007,13 +992,13 @@ var IdentityManager = class IdentityManager2 {
|
|
|
1007
992
|
identityRecord
|
|
1008
993
|
}, {
|
|
1009
994
|
F: __dxlog_file3,
|
|
1010
|
-
L:
|
|
995
|
+
L: 229,
|
|
1011
996
|
S: this,
|
|
1012
997
|
C: (f, a) => f(...a)
|
|
1013
998
|
});
|
|
1014
999
|
(0, import_invariant2.invariant)(identityRecord.haloSpace.controlFeedKey, void 0, {
|
|
1015
1000
|
F: __dxlog_file3,
|
|
1016
|
-
L:
|
|
1001
|
+
L: 232,
|
|
1017
1002
|
S: this,
|
|
1018
1003
|
A: [
|
|
1019
1004
|
"identityRecord.haloSpace.controlFeedKey",
|
|
@@ -1025,7 +1010,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
1025
1010
|
});
|
|
1026
1011
|
(0, import_invariant2.invariant)(identityRecord.haloSpace.dataFeedKey, void 0, {
|
|
1027
1012
|
F: __dxlog_file3,
|
|
1028
|
-
L:
|
|
1013
|
+
L: 236,
|
|
1029
1014
|
S: this,
|
|
1030
1015
|
A: [
|
|
1031
1016
|
"identityRecord.haloSpace.dataFeedKey",
|
|
@@ -1057,7 +1042,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
1057
1042
|
identityKey: identityRecord.identityKey
|
|
1058
1043
|
}, {
|
|
1059
1044
|
F: __dxlog_file3,
|
|
1060
|
-
L:
|
|
1045
|
+
L: 260,
|
|
1061
1046
|
S: this,
|
|
1062
1047
|
C: (f, a) => f(...a)
|
|
1063
1048
|
});
|
|
@@ -1078,7 +1063,7 @@ var IdentityManager = class IdentityManager2 {
|
|
|
1078
1063
|
onAuthFailure: () => {
|
|
1079
1064
|
import_log3.log.warn("auth failure", void 0, {
|
|
1080
1065
|
F: __dxlog_file3,
|
|
1081
|
-
L:
|
|
1066
|
+
L: 279,
|
|
1082
1067
|
S: this,
|
|
1083
1068
|
C: (f, a) => f(...a)
|
|
1084
1069
|
});
|
|
@@ -2292,15 +2277,6 @@ var InvitationsServiceImpl = class {
|
|
|
2292
2277
|
await accepted.cancel();
|
|
2293
2278
|
this._acceptInvitations.delete(invitationId);
|
|
2294
2279
|
this._removedAccepted.emit(accepted.get());
|
|
2295
|
-
} else {
|
|
2296
|
-
import_log6.log.warn("invalid invitation", {
|
|
2297
|
-
invitationId
|
|
2298
|
-
}, {
|
|
2299
|
-
F: __dxlog_file8,
|
|
2300
|
-
L: 132,
|
|
2301
|
-
S: this,
|
|
2302
|
-
C: (f, a) => f(...a)
|
|
2303
|
-
});
|
|
2304
2280
|
}
|
|
2305
2281
|
}
|
|
2306
2282
|
queryInvitations() {
|
|
@@ -2588,10 +2564,10 @@ var getPlatform = () => {
|
|
|
2588
2564
|
};
|
|
2589
2565
|
}
|
|
2590
2566
|
} else {
|
|
2591
|
-
const { platform, version, arch } = process;
|
|
2567
|
+
const { platform: platform2, version, arch } = process;
|
|
2592
2568
|
return {
|
|
2593
2569
|
type: "node",
|
|
2594
|
-
platform: `${
|
|
2570
|
+
platform: `${platform2} ${version} ${arch}`,
|
|
2595
2571
|
runtime: process.version,
|
|
2596
2572
|
uptime: Math.floor(process.uptime()),
|
|
2597
2573
|
memory: process.memoryUsage()
|
|
@@ -2600,7 +2576,7 @@ var getPlatform = () => {
|
|
|
2600
2576
|
};
|
|
2601
2577
|
|
|
2602
2578
|
// packages/sdk/client-services/src/version.ts
|
|
2603
|
-
var DXOS_VERSION = "0.3.2-main.
|
|
2579
|
+
var DXOS_VERSION = "0.3.2-main.d3a33b8";
|
|
2604
2580
|
|
|
2605
2581
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
2606
2582
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -4270,7 +4246,7 @@ var import_context10 = require("@dxos/context");
|
|
|
4270
4246
|
var import_document_model2 = require("@dxos/document-model");
|
|
4271
4247
|
var import_echo_pipeline3 = require("@dxos/echo-pipeline");
|
|
4272
4248
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
4273
|
-
var
|
|
4249
|
+
var import_invariant15 = require("@dxos/invariant");
|
|
4274
4250
|
var import_keys12 = require("@dxos/keys");
|
|
4275
4251
|
var import_log16 = require("@dxos/log");
|
|
4276
4252
|
var import_messaging = require("@dxos/messaging");
|
|
@@ -4309,33 +4285,13 @@ var ServiceRegistry = class {
|
|
|
4309
4285
|
// packages/sdk/client-services/src/packlets/devices/devices-service.ts
|
|
4310
4286
|
var import_async15 = require("@dxos/async");
|
|
4311
4287
|
var import_codec_protobuf12 = require("@dxos/codec-protobuf");
|
|
4312
|
-
var import_invariant14 = require("@dxos/invariant");
|
|
4313
4288
|
var import_services11 = require("@dxos/protocols/proto/dxos/client/services");
|
|
4314
|
-
var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/devices/devices-service.ts";
|
|
4315
4289
|
var DevicesServiceImpl = class {
|
|
4316
4290
|
constructor(_identityManager) {
|
|
4317
4291
|
this._identityManager = _identityManager;
|
|
4318
4292
|
}
|
|
4319
4293
|
async updateDevice(profile) {
|
|
4320
|
-
|
|
4321
|
-
F: __dxlog_file16,
|
|
4322
|
-
L: 17,
|
|
4323
|
-
S: this,
|
|
4324
|
-
A: [
|
|
4325
|
-
"this._identityManager.identity",
|
|
4326
|
-
"'Identity not initialized'"
|
|
4327
|
-
]
|
|
4328
|
-
});
|
|
4329
|
-
const deviceKey = this._identityManager.identity.deviceKey;
|
|
4330
|
-
await this._identityManager.updateDevice({
|
|
4331
|
-
deviceKey,
|
|
4332
|
-
profile
|
|
4333
|
-
});
|
|
4334
|
-
return {
|
|
4335
|
-
deviceKey,
|
|
4336
|
-
kind: import_services11.DeviceKind.CURRENT,
|
|
4337
|
-
profile
|
|
4338
|
-
};
|
|
4294
|
+
throw new Error("Method not implemented.");
|
|
4339
4295
|
}
|
|
4340
4296
|
queryDevices() {
|
|
4341
4297
|
return new import_codec_protobuf12.Stream(({ next }) => {
|
|
@@ -4371,7 +4327,7 @@ var DevicesServiceImpl = class {
|
|
|
4371
4327
|
};
|
|
4372
4328
|
|
|
4373
4329
|
// packages/sdk/client-services/src/packlets/locks/node.ts
|
|
4374
|
-
var
|
|
4330
|
+
var import_invariant14 = require("@dxos/invariant");
|
|
4375
4331
|
var import_lock_file = require("@dxos/lock-file");
|
|
4376
4332
|
var import_log14 = require("@dxos/log");
|
|
4377
4333
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
@@ -4384,7 +4340,7 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
4384
4340
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4385
4341
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4386
4342
|
}
|
|
4387
|
-
var
|
|
4343
|
+
var __dxlog_file16 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/locks/node.ts";
|
|
4388
4344
|
var Lock = class {
|
|
4389
4345
|
constructor({ lockKey: lockPath, onAcquire, onRelease }) {
|
|
4390
4346
|
this._lockPath = lockPath;
|
|
@@ -4396,7 +4352,7 @@ var Lock = class {
|
|
|
4396
4352
|
}
|
|
4397
4353
|
async acquire() {
|
|
4398
4354
|
(0, import_log14.log)("acquiring lock...", void 0, {
|
|
4399
|
-
F:
|
|
4355
|
+
F: __dxlog_file16,
|
|
4400
4356
|
L: 32,
|
|
4401
4357
|
S: this,
|
|
4402
4358
|
C: (f, a) => f(...a)
|
|
@@ -4404,7 +4360,7 @@ var Lock = class {
|
|
|
4404
4360
|
this._fileHandle = await import_lock_file.LockFile.acquire(this._lockPath);
|
|
4405
4361
|
await this._onAcquire?.();
|
|
4406
4362
|
(0, import_log14.log)("acquired lock", void 0, {
|
|
4407
|
-
F:
|
|
4363
|
+
F: __dxlog_file16,
|
|
4408
4364
|
L: 37,
|
|
4409
4365
|
S: this,
|
|
4410
4366
|
C: (f, a) => f(...a)
|
|
@@ -4412,8 +4368,8 @@ var Lock = class {
|
|
|
4412
4368
|
}
|
|
4413
4369
|
async release() {
|
|
4414
4370
|
await this._onRelease?.();
|
|
4415
|
-
(0,
|
|
4416
|
-
F:
|
|
4371
|
+
(0, import_invariant14.invariant)(this._fileHandle, "Lock is not acquired", {
|
|
4372
|
+
F: __dxlog_file16,
|
|
4417
4373
|
L: 42,
|
|
4418
4374
|
S: this,
|
|
4419
4375
|
A: [
|
|
@@ -4692,7 +4648,7 @@ function _ts_decorate7(decorators, target, key, desc) {
|
|
|
4692
4648
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4693
4649
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4694
4650
|
}
|
|
4695
|
-
var
|
|
4651
|
+
var __dxlog_file17 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-host.ts";
|
|
4696
4652
|
var createDefaultModelFactory = () => {
|
|
4697
4653
|
return new import_model_factory.ModelFactory().registerModel(import_document_model2.DocumentModel).registerModel(import_text_model.TextModel);
|
|
4698
4654
|
};
|
|
@@ -4792,8 +4748,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4792
4748
|
* Can only be called once.
|
|
4793
4749
|
*/
|
|
4794
4750
|
initialize({ config, ...options }) {
|
|
4795
|
-
(0,
|
|
4796
|
-
F:
|
|
4751
|
+
(0, import_invariant15.invariant)(!this._open, "service host is open", {
|
|
4752
|
+
F: __dxlog_file17,
|
|
4797
4753
|
L: 201,
|
|
4798
4754
|
S: this,
|
|
4799
4755
|
A: [
|
|
@@ -4802,14 +4758,14 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4802
4758
|
]
|
|
4803
4759
|
});
|
|
4804
4760
|
(0, import_log16.log)("initializing...", void 0, {
|
|
4805
|
-
F:
|
|
4761
|
+
F: __dxlog_file17,
|
|
4806
4762
|
L: 202,
|
|
4807
4763
|
S: this,
|
|
4808
4764
|
C: (f, a) => f(...a)
|
|
4809
4765
|
});
|
|
4810
4766
|
if (config) {
|
|
4811
|
-
(0,
|
|
4812
|
-
F:
|
|
4767
|
+
(0, import_invariant15.invariant)(!this._config, "config already set", {
|
|
4768
|
+
F: __dxlog_file17,
|
|
4813
4769
|
L: 205,
|
|
4814
4770
|
S: this,
|
|
4815
4771
|
A: [
|
|
@@ -4826,8 +4782,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4826
4782
|
iceServers: this._config?.get("runtime.services.ice")
|
|
4827
4783
|
}), signalManager = new import_messaging.WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
|
|
4828
4784
|
this._signalManager = signalManager;
|
|
4829
|
-
(0,
|
|
4830
|
-
F:
|
|
4785
|
+
(0, import_invariant15.invariant)(!this._networkManager, "network manager already set", {
|
|
4786
|
+
F: __dxlog_file17,
|
|
4831
4787
|
L: 221,
|
|
4832
4788
|
S: this,
|
|
4833
4789
|
A: [
|
|
@@ -4841,7 +4797,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4841
4797
|
signalManager
|
|
4842
4798
|
});
|
|
4843
4799
|
(0, import_log16.log)("initialized", void 0, {
|
|
4844
|
-
F:
|
|
4800
|
+
F: __dxlog_file17,
|
|
4845
4801
|
L: 228,
|
|
4846
4802
|
S: this,
|
|
4847
4803
|
C: (f, a) => f(...a)
|
|
@@ -4855,13 +4811,13 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4855
4811
|
import_log16.log.trace("dxos.client-services.host.open", import_protocols12.trace.begin({
|
|
4856
4812
|
id: traceId
|
|
4857
4813
|
}), {
|
|
4858
|
-
F:
|
|
4814
|
+
F: __dxlog_file17,
|
|
4859
4815
|
L: 239,
|
|
4860
4816
|
S: this,
|
|
4861
4817
|
C: (f, a) => f(...a)
|
|
4862
4818
|
});
|
|
4863
|
-
(0,
|
|
4864
|
-
F:
|
|
4819
|
+
(0, import_invariant15.invariant)(this._config, "config not set", {
|
|
4820
|
+
F: __dxlog_file17,
|
|
4865
4821
|
L: 241,
|
|
4866
4822
|
S: this,
|
|
4867
4823
|
A: [
|
|
@@ -4869,8 +4825,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4869
4825
|
"'config not set'"
|
|
4870
4826
|
]
|
|
4871
4827
|
});
|
|
4872
|
-
(0,
|
|
4873
|
-
F:
|
|
4828
|
+
(0, import_invariant15.invariant)(this._storage, "storage not set", {
|
|
4829
|
+
F: __dxlog_file17,
|
|
4874
4830
|
L: 242,
|
|
4875
4831
|
S: this,
|
|
4876
4832
|
A: [
|
|
@@ -4878,8 +4834,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4878
4834
|
"'storage not set'"
|
|
4879
4835
|
]
|
|
4880
4836
|
});
|
|
4881
|
-
(0,
|
|
4882
|
-
F:
|
|
4837
|
+
(0, import_invariant15.invariant)(this._signalManager, "signal manager not set", {
|
|
4838
|
+
F: __dxlog_file17,
|
|
4883
4839
|
L: 243,
|
|
4884
4840
|
S: this,
|
|
4885
4841
|
A: [
|
|
@@ -4887,8 +4843,8 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4887
4843
|
"'signal manager not set'"
|
|
4888
4844
|
]
|
|
4889
4845
|
});
|
|
4890
|
-
(0,
|
|
4891
|
-
F:
|
|
4846
|
+
(0, import_invariant15.invariant)(this._networkManager, "network manager not set", {
|
|
4847
|
+
F: __dxlog_file17,
|
|
4892
4848
|
L: 244,
|
|
4893
4849
|
S: this,
|
|
4894
4850
|
A: [
|
|
@@ -4900,7 +4856,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4900
4856
|
(0, import_log16.log)("opening...", {
|
|
4901
4857
|
lockKey: this._resourceLock?.lockKey
|
|
4902
4858
|
}, {
|
|
4903
|
-
F:
|
|
4859
|
+
F: __dxlog_file17,
|
|
4904
4860
|
L: 247,
|
|
4905
4861
|
S: this,
|
|
4906
4862
|
C: (f, a) => f(...a)
|
|
@@ -4946,7 +4902,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4946
4902
|
(0, import_log16.log)("opened", {
|
|
4947
4903
|
deviceKey
|
|
4948
4904
|
}, {
|
|
4949
|
-
F:
|
|
4905
|
+
F: __dxlog_file17,
|
|
4950
4906
|
L: 316,
|
|
4951
4907
|
S: this,
|
|
4952
4908
|
C: (f, a) => f(...a)
|
|
@@ -4954,7 +4910,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4954
4910
|
import_log16.log.trace("dxos.client-services.host.open", import_protocols12.trace.end({
|
|
4955
4911
|
id: traceId
|
|
4956
4912
|
}), {
|
|
4957
|
-
F:
|
|
4913
|
+
F: __dxlog_file17,
|
|
4958
4914
|
L: 317,
|
|
4959
4915
|
S: this,
|
|
4960
4916
|
C: (f, a) => f(...a)
|
|
@@ -4968,7 +4924,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4968
4924
|
(0, import_log16.log)("closing...", {
|
|
4969
4925
|
deviceKey
|
|
4970
4926
|
}, {
|
|
4971
|
-
F:
|
|
4927
|
+
F: __dxlog_file17,
|
|
4972
4928
|
L: 328,
|
|
4973
4929
|
S: this,
|
|
4974
4930
|
C: (f, a) => f(...a)
|
|
@@ -4984,7 +4940,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4984
4940
|
(0, import_log16.log)("closed", {
|
|
4985
4941
|
deviceKey
|
|
4986
4942
|
}, {
|
|
4987
|
-
F:
|
|
4943
|
+
F: __dxlog_file17,
|
|
4988
4944
|
L: 335,
|
|
4989
4945
|
S: this,
|
|
4990
4946
|
C: (f, a) => f(...a)
|
|
@@ -4995,13 +4951,13 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
4995
4951
|
import_log16.log.trace("dxos.sdk.client-services-host.reset", import_protocols12.trace.begin({
|
|
4996
4952
|
id: traceId
|
|
4997
4953
|
}), {
|
|
4998
|
-
F:
|
|
4954
|
+
F: __dxlog_file17,
|
|
4999
4955
|
L: 340,
|
|
5000
4956
|
S: this,
|
|
5001
4957
|
C: (f, a) => f(...a)
|
|
5002
4958
|
});
|
|
5003
4959
|
(0, import_log16.log)("resetting...", void 0, {
|
|
5004
|
-
F:
|
|
4960
|
+
F: __dxlog_file17,
|
|
5005
4961
|
L: 342,
|
|
5006
4962
|
S: this,
|
|
5007
4963
|
C: (f, a) => f(...a)
|
|
@@ -5009,7 +4965,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
5009
4965
|
await this._serviceContext?.close();
|
|
5010
4966
|
await this._storage.reset();
|
|
5011
4967
|
(0, import_log16.log)("reset", void 0, {
|
|
5012
|
-
F:
|
|
4968
|
+
F: __dxlog_file17,
|
|
5013
4969
|
L: 345,
|
|
5014
4970
|
S: this,
|
|
5015
4971
|
C: (f, a) => f(...a)
|
|
@@ -5017,7 +4973,7 @@ var ClientServicesHost = class ClientServicesHost2 {
|
|
|
5017
4973
|
import_log16.log.trace("dxos.sdk.client-services-host.reset", import_protocols12.trace.end({
|
|
5018
4974
|
id: traceId
|
|
5019
4975
|
}), {
|
|
5020
|
-
F:
|
|
4976
|
+
F: __dxlog_file17,
|
|
5021
4977
|
L: 346,
|
|
5022
4978
|
S: this,
|
|
5023
4979
|
C: (f, a) => f(...a)
|
|
@@ -5074,10 +5030,10 @@ var import_util11 = require("@dxos/util");
|
|
|
5074
5030
|
// packages/sdk/client-services/src/packlets/vault/shell-runtime.ts
|
|
5075
5031
|
var import_async18 = require("@dxos/async");
|
|
5076
5032
|
var import_client_protocol6 = require("@dxos/client-protocol");
|
|
5077
|
-
var
|
|
5033
|
+
var import_invariant16 = require("@dxos/invariant");
|
|
5078
5034
|
var import_iframe = require("@dxos/protocols/proto/dxos/iframe");
|
|
5079
5035
|
var import_rpc2 = require("@dxos/rpc");
|
|
5080
|
-
var
|
|
5036
|
+
var __dxlog_file18 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/shell-runtime.ts";
|
|
5081
5037
|
var ShellRuntimeImpl = class {
|
|
5082
5038
|
constructor(_port) {
|
|
5083
5039
|
this._port = _port;
|
|
@@ -5104,8 +5060,8 @@ var ShellRuntimeImpl = class {
|
|
|
5104
5060
|
});
|
|
5105
5061
|
}
|
|
5106
5062
|
async setAppContext(context) {
|
|
5107
|
-
(0,
|
|
5108
|
-
F:
|
|
5063
|
+
(0, import_invariant16.invariant)(this._appRpc, "runtime not open", {
|
|
5064
|
+
F: __dxlog_file18,
|
|
5109
5065
|
L: 44,
|
|
5110
5066
|
S: this,
|
|
5111
5067
|
A: [
|
|
@@ -5150,7 +5106,7 @@ function _ts_decorate8(decorators, target, key, desc) {
|
|
|
5150
5106
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5151
5107
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5152
5108
|
}
|
|
5153
|
-
var
|
|
5109
|
+
var __dxlog_file19 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts";
|
|
5154
5110
|
var LOCK_KEY = "DXOS_RESOURCE_LOCK";
|
|
5155
5111
|
var IFrameHostRuntime = class {
|
|
5156
5112
|
constructor({ config, origin, appPort, shellPort }) {
|
|
@@ -5171,7 +5127,7 @@ var IFrameHostRuntime = class {
|
|
|
5171
5127
|
}
|
|
5172
5128
|
async start() {
|
|
5173
5129
|
(0, import_log17.log)("starting...", void 0, {
|
|
5174
|
-
F:
|
|
5130
|
+
F: __dxlog_file19,
|
|
5175
5131
|
L: 71,
|
|
5176
5132
|
S: this,
|
|
5177
5133
|
C: (f, a) => f(...a)
|
|
@@ -5220,7 +5176,7 @@ var IFrameHostRuntime = class {
|
|
|
5220
5176
|
]);
|
|
5221
5177
|
this._ready.wake(void 0);
|
|
5222
5178
|
(0, import_log17.log)("started", void 0, {
|
|
5223
|
-
F:
|
|
5179
|
+
F: __dxlog_file19,
|
|
5224
5180
|
L: 114,
|
|
5225
5181
|
S: this,
|
|
5226
5182
|
C: (f, a) => f(...a)
|
|
@@ -5228,7 +5184,7 @@ var IFrameHostRuntime = class {
|
|
|
5228
5184
|
} catch (err) {
|
|
5229
5185
|
this._ready.wake(err);
|
|
5230
5186
|
import_log17.log.catch(err, void 0, {
|
|
5231
|
-
F:
|
|
5187
|
+
F: __dxlog_file19,
|
|
5232
5188
|
L: 117,
|
|
5233
5189
|
S: this,
|
|
5234
5190
|
C: (f, a) => f(...a)
|
|
@@ -5237,7 +5193,7 @@ var IFrameHostRuntime = class {
|
|
|
5237
5193
|
}
|
|
5238
5194
|
async stop() {
|
|
5239
5195
|
(0, import_log17.log)("stopping...", void 0, {
|
|
5240
|
-
F:
|
|
5196
|
+
F: __dxlog_file19,
|
|
5241
5197
|
L: 122,
|
|
5242
5198
|
S: this,
|
|
5243
5199
|
C: (f, a) => f(...a)
|
|
@@ -5246,7 +5202,7 @@ var IFrameHostRuntime = class {
|
|
|
5246
5202
|
await this._clientServices.close();
|
|
5247
5203
|
await this._shellRuntime?.close();
|
|
5248
5204
|
(0, import_log17.log)("stopped", void 0, {
|
|
5249
|
-
F:
|
|
5205
|
+
F: __dxlog_file19,
|
|
5250
5206
|
L: 126,
|
|
5251
5207
|
S: this,
|
|
5252
5208
|
C: (f, a) => f(...a)
|
|
@@ -5265,7 +5221,7 @@ var import_network_manager4 = require("@dxos/network-manager");
|
|
|
5265
5221
|
var import_protocols13 = require("@dxos/protocols");
|
|
5266
5222
|
var import_rpc3 = require("@dxos/rpc");
|
|
5267
5223
|
var import_util12 = require("@dxos/util");
|
|
5268
|
-
var
|
|
5224
|
+
var __dxlog_file20 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts";
|
|
5269
5225
|
var IFrameProxyRuntime = class {
|
|
5270
5226
|
constructor({ config, systemPort, shellPort }) {
|
|
5271
5227
|
this._id = String(Math.floor(Math.random() * 1e6));
|
|
@@ -5313,7 +5269,7 @@ var IFrameProxyRuntime = class {
|
|
|
5313
5269
|
});
|
|
5314
5270
|
} catch (err) {
|
|
5315
5271
|
import_log18.log.catch(err, void 0, {
|
|
5316
|
-
F:
|
|
5272
|
+
F: __dxlog_file20,
|
|
5317
5273
|
L: 85,
|
|
5318
5274
|
S: this,
|
|
5319
5275
|
C: (f, a) => f(...a)
|
|
@@ -5343,7 +5299,7 @@ var import_network_manager5 = require("@dxos/network-manager");
|
|
|
5343
5299
|
// packages/sdk/client-services/src/packlets/vault/worker-session.ts
|
|
5344
5300
|
var import_async21 = require("@dxos/async");
|
|
5345
5301
|
var import_client_protocol9 = require("@dxos/client-protocol");
|
|
5346
|
-
var
|
|
5302
|
+
var import_invariant17 = require("@dxos/invariant");
|
|
5347
5303
|
var import_log19 = require("@dxos/log");
|
|
5348
5304
|
var import_rpc4 = require("@dxos/rpc");
|
|
5349
5305
|
var import_util13 = require("@dxos/util");
|
|
@@ -5357,13 +5313,13 @@ function _ts_decorate9(decorators, target, key, desc) {
|
|
|
5357
5313
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5358
5314
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5359
5315
|
}
|
|
5360
|
-
var
|
|
5316
|
+
var __dxlog_file21 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-session.ts";
|
|
5361
5317
|
var WorkerSession = class {
|
|
5362
5318
|
constructor({ serviceHost, systemPort, appPort, shellPort, readySignal }) {
|
|
5363
5319
|
this._startTrigger = new import_async21.Trigger();
|
|
5364
5320
|
this.onClose = new import_util13.Callback();
|
|
5365
|
-
(0,
|
|
5366
|
-
F:
|
|
5321
|
+
(0, import_invariant17.invariant)(serviceHost, void 0, {
|
|
5322
|
+
F: __dxlog_file21,
|
|
5367
5323
|
L: 49,
|
|
5368
5324
|
S: this,
|
|
5369
5325
|
A: [
|
|
@@ -5418,7 +5374,7 @@ var WorkerSession = class {
|
|
|
5418
5374
|
await this.close();
|
|
5419
5375
|
} catch (err) {
|
|
5420
5376
|
import_log19.log.catch(err, void 0, {
|
|
5421
|
-
F:
|
|
5377
|
+
F: __dxlog_file21,
|
|
5422
5378
|
L: 99,
|
|
5423
5379
|
S: this,
|
|
5424
5380
|
C: (f, a) => f(...a)
|
|
@@ -5435,7 +5391,7 @@ var WorkerSession = class {
|
|
|
5435
5391
|
}
|
|
5436
5392
|
async open() {
|
|
5437
5393
|
import_log19.log.info("opening...", void 0, {
|
|
5438
|
-
F:
|
|
5394
|
+
F: __dxlog_file21,
|
|
5439
5395
|
L: 113,
|
|
5440
5396
|
S: this,
|
|
5441
5397
|
C: (f, a) => f(...a)
|
|
@@ -5452,7 +5408,7 @@ var WorkerSession = class {
|
|
|
5452
5408
|
void this._afterLockReleases(this.lockKey, () => this.close());
|
|
5453
5409
|
}
|
|
5454
5410
|
import_log19.log.info("opened", void 0, {
|
|
5455
|
-
F:
|
|
5411
|
+
F: __dxlog_file21,
|
|
5456
5412
|
L: 124,
|
|
5457
5413
|
S: this,
|
|
5458
5414
|
C: (f, a) => f(...a)
|
|
@@ -5460,7 +5416,7 @@ var WorkerSession = class {
|
|
|
5460
5416
|
}
|
|
5461
5417
|
async close() {
|
|
5462
5418
|
import_log19.log.info("closing...", void 0, {
|
|
5463
|
-
F:
|
|
5419
|
+
F: __dxlog_file21,
|
|
5464
5420
|
L: 128,
|
|
5465
5421
|
S: this,
|
|
5466
5422
|
C: (f, a) => f(...a)
|
|
@@ -5469,7 +5425,7 @@ var WorkerSession = class {
|
|
|
5469
5425
|
await this.onClose.callIfSet();
|
|
5470
5426
|
} catch (err) {
|
|
5471
5427
|
import_log19.log.catch(err, void 0, {
|
|
5472
|
-
F:
|
|
5428
|
+
F: __dxlog_file21,
|
|
5473
5429
|
L: 132,
|
|
5474
5430
|
S: this,
|
|
5475
5431
|
C: (f, a) => f(...a)
|
|
@@ -5480,7 +5436,7 @@ var WorkerSession = class {
|
|
|
5480
5436
|
this._iframeRpc.close()
|
|
5481
5437
|
]);
|
|
5482
5438
|
import_log19.log.info("closed", void 0, {
|
|
5483
|
-
F:
|
|
5439
|
+
F: __dxlog_file21,
|
|
5484
5440
|
L: 136,
|
|
5485
5441
|
S: this,
|
|
5486
5442
|
C: (f, a) => f(...a)
|
|
@@ -5491,7 +5447,7 @@ var WorkerSession = class {
|
|
|
5491
5447
|
await (0, import_async21.asyncTimeout)(this._shellClientRpc.open(), 1e3);
|
|
5492
5448
|
} catch {
|
|
5493
5449
|
import_log19.log.info("No shell connected.", void 0, {
|
|
5494
|
-
F:
|
|
5450
|
+
F: __dxlog_file21,
|
|
5495
5451
|
L: 143,
|
|
5496
5452
|
S: this,
|
|
5497
5453
|
C: (f, a) => f(...a)
|
|
@@ -5511,7 +5467,7 @@ _ts_decorate9([
|
|
|
5511
5467
|
], WorkerSession.prototype, "lockKey", void 0);
|
|
5512
5468
|
|
|
5513
5469
|
// packages/sdk/client-services/src/packlets/vault/worker-runtime.ts
|
|
5514
|
-
var
|
|
5470
|
+
var __dxlog_file22 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/vault/worker-runtime.ts";
|
|
5515
5471
|
var WorkerRuntime = class {
|
|
5516
5472
|
constructor(_configProvider) {
|
|
5517
5473
|
this._configProvider = _configProvider;
|
|
@@ -5531,7 +5487,7 @@ var WorkerRuntime = class {
|
|
|
5531
5487
|
}
|
|
5532
5488
|
async start() {
|
|
5533
5489
|
(0, import_log20.log)("starting...", void 0, {
|
|
5534
|
-
F:
|
|
5490
|
+
F: __dxlog_file22,
|
|
5535
5491
|
L: 52,
|
|
5536
5492
|
S: this,
|
|
5537
5493
|
C: (f, a) => f(...a)
|
|
@@ -5547,7 +5503,7 @@ var WorkerRuntime = class {
|
|
|
5547
5503
|
await this._clientServices.open(new import_context12.Context());
|
|
5548
5504
|
this._ready.wake(void 0);
|
|
5549
5505
|
(0, import_log20.log)("started", void 0, {
|
|
5550
|
-
F:
|
|
5506
|
+
F: __dxlog_file22,
|
|
5551
5507
|
L: 66,
|
|
5552
5508
|
S: this,
|
|
5553
5509
|
C: (f, a) => f(...a)
|
|
@@ -5555,7 +5511,7 @@ var WorkerRuntime = class {
|
|
|
5555
5511
|
} catch (err) {
|
|
5556
5512
|
this._ready.wake(err);
|
|
5557
5513
|
import_log20.log.error("starting", err, {
|
|
5558
|
-
F:
|
|
5514
|
+
F: __dxlog_file22,
|
|
5559
5515
|
L: 69,
|
|
5560
5516
|
S: this,
|
|
5561
5517
|
C: (f, a) => f(...a)
|
|
@@ -5589,7 +5545,7 @@ var WorkerRuntime = class {
|
|
|
5589
5545
|
*/
|
|
5590
5546
|
_reconnectWebrtc() {
|
|
5591
5547
|
(0, import_log20.log)("reconnecting webrtc...", void 0, {
|
|
5592
|
-
F:
|
|
5548
|
+
F: __dxlog_file22,
|
|
5593
5549
|
L: 106,
|
|
5594
5550
|
S: this,
|
|
5595
5551
|
C: (f, a) => f(...a)
|