@dxos/shell 0.4.10-main.61a4cf6 → 0.4.10-main.6f15454
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/bundle/{index-DY0hiAob.mjs → index-D-0DqO_p.mjs} +38 -22
- package/dist/bundle/index-D-0DqO_p.mjs.map +1 -0
- package/dist/bundle/{index-_bedgWKd.mjs → index-DrUA2jlt.mjs} +146 -139
- package/dist/bundle/index-DrUA2jlt.mjs.map +1 -0
- package/dist/bundle/shell.mjs +1 -1
- package/dist/bundle/shell.umd.js +12 -12
- package/dist/bundle/shell.umd.js.map +1 -1
- package/package.json +21 -21
- package/dist/bundle/index-DY0hiAob.mjs.map +0 -1
- package/dist/bundle/index-_bedgWKd.mjs.map +0 -1
|
@@ -13460,10 +13460,10 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
13460
13460
|
}, randomBytes$1 = ($) => {
|
|
13461
13461
|
const I = globalThis.crypto ?? __require$1("@dxos/node-std/crypto").webcrypto, U = new Uint8Array($);
|
|
13462
13462
|
return I.getRandomValues(U), U;
|
|
13463
|
-
}, __dxlog_file3$
|
|
13463
|
+
}, __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/util/src/callback.ts", Callback = class {
|
|
13464
13464
|
call(...$) {
|
|
13465
13465
|
return invariant(this._callback, "Callback not set", {
|
|
13466
|
-
F: __dxlog_file3$
|
|
13466
|
+
F: __dxlog_file3$4,
|
|
13467
13467
|
L: 20,
|
|
13468
13468
|
S: this,
|
|
13469
13469
|
A: [
|
|
@@ -13478,7 +13478,7 @@ var equalsSymbol = Symbol.for("dxos.common.equals"), __require$1 = /* @__PURE__
|
|
|
13478
13478
|
}
|
|
13479
13479
|
set($) {
|
|
13480
13480
|
invariant(!this._callback, "Callback already set", {
|
|
13481
|
-
F: __dxlog_file3$
|
|
13481
|
+
F: __dxlog_file3$4,
|
|
13482
13482
|
L: 29,
|
|
13483
13483
|
S: this,
|
|
13484
13484
|
A: [
|
|
@@ -69502,7 +69502,7 @@ function formatDistance($, I, U) {
|
|
|
69502
69502
|
function formatDistanceToNow($, I) {
|
|
69503
69503
|
return formatDistance($, Date.now(), I);
|
|
69504
69504
|
}
|
|
69505
|
-
var LogLevel;
|
|
69505
|
+
var RPC_TIMEOUT = 2e4, LogLevel;
|
|
69506
69506
|
(function($) {
|
|
69507
69507
|
$[$.TRACE = 5] = "TRACE", $[$.DEBUG = 10] = "DEBUG", $[$.INFO = 11] = "INFO", $[$.WARN = 12] = "WARN", $[$.ERROR = 13] = "ERROR";
|
|
69508
69508
|
})(LogLevel || (LogLevel = {}));
|
|
@@ -69644,37 +69644,33 @@ var __dxlog_file$7 = "/home/runner/work/dxos/dxos/packages/common/context/src/co
|
|
|
69644
69644
|
}
|
|
69645
69645
|
/**
|
|
69646
69646
|
* Runs all dispose callbacks.
|
|
69647
|
-
*
|
|
69648
|
-
* Async callbacks are run in parallel.
|
|
69647
|
+
* Callbacks are run in the reverse order they were added.
|
|
69649
69648
|
* This function never throws.
|
|
69650
69649
|
* It is safe to ignore the returned promise if the caller does not wish to wait for callbacks to complete.
|
|
69651
69650
|
* Disposing context means that onDispose will throw an error and any errors raised will be logged and not propagated.
|
|
69652
69651
|
*/
|
|
69653
|
-
dispose() {
|
|
69652
|
+
async dispose() {
|
|
69654
69653
|
if (this._disposePromise)
|
|
69655
69654
|
return this._disposePromise;
|
|
69656
69655
|
this._isDisposed = !0;
|
|
69657
69656
|
let I;
|
|
69658
|
-
this._disposePromise = new Promise((
|
|
69659
|
-
I =
|
|
69657
|
+
this._disposePromise = new Promise((q) => {
|
|
69658
|
+
I = q;
|
|
69660
69659
|
});
|
|
69661
|
-
const U =
|
|
69662
|
-
|
|
69663
|
-
|
|
69664
|
-
|
|
69665
|
-
|
|
69666
|
-
|
|
69667
|
-
|
|
69668
|
-
|
|
69669
|
-
|
|
69670
|
-
|
|
69671
|
-
|
|
69672
|
-
|
|
69673
|
-
|
|
69674
|
-
|
|
69675
|
-
return this._disposeCallbacks.length = 0, Promise.all(U).then(() => {
|
|
69676
|
-
I();
|
|
69677
|
-
}), this._disposePromise;
|
|
69660
|
+
const U = Array.from(this._disposeCallbacks).reverse();
|
|
69661
|
+
this._disposeCallbacks.length = 0;
|
|
69662
|
+
for (const q of U)
|
|
69663
|
+
try {
|
|
69664
|
+
await q();
|
|
69665
|
+
} catch (G) {
|
|
69666
|
+
log$2.catch(G, void 0, {
|
|
69667
|
+
F: __dxlog_file$7,
|
|
69668
|
+
L: 136,
|
|
69669
|
+
S: this,
|
|
69670
|
+
C: (K, Y) => K(...Y)
|
|
69671
|
+
});
|
|
69672
|
+
}
|
|
69673
|
+
I();
|
|
69678
69674
|
}
|
|
69679
69675
|
/**
|
|
69680
69676
|
* Raise the error inside the context.
|
|
@@ -79277,7 +79273,7 @@ dist$1.addValue = memory_1.addValue;
|
|
|
79277
79273
|
var helpers_1 = helpers;
|
|
79278
79274
|
dist$1.trimUndefined = helpers_1.trimUndefined;
|
|
79279
79275
|
dist$1.trimUndefinedRecursively = helpers_1.trimUndefinedRecursively;
|
|
79280
|
-
var __dxlog_file3$
|
|
79276
|
+
var __dxlog_file3$3 = "/home/runner/work/dxos/dxos/packages/common/codec-protobuf/src/stream.ts", Stream$1 = class dr {
|
|
79281
79277
|
constructor(I) {
|
|
79282
79278
|
this._messageHandler = void 0, this._closeHandler = void 0, this._readyHandler = void 0, this._isClosed = !1, this._closeError = void 0, this._producerCleanup = void 0, this._isReady = !1, this._buffer = [], this._readyPromise = new Promise((U) => {
|
|
79283
79279
|
this._resolveReadyPromise = U;
|
|
@@ -79296,7 +79292,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79296
79292
|
next: (q) => {
|
|
79297
79293
|
if (this._isClosed) {
|
|
79298
79294
|
log$2("Stream is closed, dropping message.", void 0, {
|
|
79299
|
-
F: __dxlog_file3$
|
|
79295
|
+
F: __dxlog_file3$3,
|
|
79300
79296
|
L: 207,
|
|
79301
79297
|
S: this,
|
|
79302
79298
|
C: (G, K) => G(...K)
|
|
@@ -79311,7 +79307,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79311
79307
|
}
|
|
79312
79308
|
else
|
|
79313
79309
|
invariant(this._buffer, void 0, {
|
|
79314
|
-
F: __dxlog_file3$
|
|
79310
|
+
F: __dxlog_file3$3,
|
|
79315
79311
|
L: 221,
|
|
79316
79312
|
S: this,
|
|
79317
79313
|
A: [
|
|
@@ -79413,7 +79409,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79413
79409
|
// TODO(burdon): Can this be cancelled?
|
|
79414
79410
|
subscribe(I, U) {
|
|
79415
79411
|
invariant(!this._messageHandler, "Stream is already subscribed to.", {
|
|
79416
|
-
F: __dxlog_file3$
|
|
79412
|
+
F: __dxlog_file3$3,
|
|
79417
79413
|
L: 262,
|
|
79418
79414
|
S: this,
|
|
79419
79415
|
A: [
|
|
@@ -79421,7 +79417,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79421
79417
|
"'Stream is already subscribed to.'"
|
|
79422
79418
|
]
|
|
79423
79419
|
}), invariant(!this._closeHandler, "Stream is already subscribed to.", {
|
|
79424
|
-
F: __dxlog_file3$
|
|
79420
|
+
F: __dxlog_file3$3,
|
|
79425
79421
|
L: 263,
|
|
79426
79422
|
S: this,
|
|
79427
79423
|
A: [
|
|
@@ -79429,7 +79425,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79429
79425
|
"'Stream is already subscribed to.'"
|
|
79430
79426
|
]
|
|
79431
79427
|
}), invariant(this._buffer, void 0, {
|
|
79432
|
-
F: __dxlog_file3$
|
|
79428
|
+
F: __dxlog_file3$3,
|
|
79433
79429
|
L: 264,
|
|
79434
79430
|
S: this,
|
|
79435
79431
|
A: [
|
|
@@ -79461,7 +79457,7 @@ var __dxlog_file3$4 = "/home/runner/work/dxos/dxos/packages/common/codec-protobu
|
|
|
79461
79457
|
*/
|
|
79462
79458
|
onReady(I) {
|
|
79463
79459
|
invariant(!this._readyHandler, "Stream already has a handler for the ready event.", {
|
|
79464
|
-
F: __dxlog_file3$
|
|
79460
|
+
F: __dxlog_file3$3,
|
|
79465
79461
|
L: 299,
|
|
79466
79462
|
S: this,
|
|
79467
79463
|
A: [
|
|
@@ -82116,7 +82112,7 @@ var SignalState;
|
|
|
82116
82112
|
var ws = null;
|
|
82117
82113
|
typeof WebSocket < "u" ? ws = WebSocket : typeof MozWebSocket < "u" ? ws = MozWebSocket : typeof commonjsGlobal < "u" ? ws = commonjsGlobal.WebSocket || commonjsGlobal.MozWebSocket : typeof window < "u" ? ws = window.WebSocket || window.MozWebSocket : typeof self < "u" && (ws = self.WebSocket || self.MozWebSocket);
|
|
82118
82114
|
var browser$3 = ws;
|
|
82119
|
-
const
|
|
82115
|
+
const WebSocket3 = /* @__PURE__ */ getDefaultExportFromCjs(browser$3);
|
|
82120
82116
|
var MessageTrace;
|
|
82121
82117
|
(function($) {
|
|
82122
82118
|
(function(I) {
|
|
@@ -82800,7 +82796,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
82800
82796
|
L: 55,
|
|
82801
82797
|
S: this,
|
|
82802
82798
|
C: (q, G) => q(...G)
|
|
82803
|
-
}), this._url = $, this._callbacks = I, this._socket = new
|
|
82799
|
+
}), this._url = $, this._callbacks = I, this._socket = new WebSocket3(this._url), this._rpc = createProtoRpcPeer({
|
|
82804
82800
|
requested: {
|
|
82805
82801
|
Signal: schema.getService("dxos.mesh.signal.Signal")
|
|
82806
82802
|
},
|
|
@@ -82887,7 +82883,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
82887
82883
|
var $, I, U, q;
|
|
82888
82884
|
await (($ = this._keepaliveCtx) == null ? void 0 : $.dispose()), this._closed = !0;
|
|
82889
82885
|
try {
|
|
82890
|
-
await ((I = this._rpc) == null ? void 0 : I.close()), (((U = this._socket) == null ? void 0 : U.readyState) ===
|
|
82886
|
+
await ((I = this._rpc) == null ? void 0 : I.close()), (((U = this._socket) == null ? void 0 : U.readyState) === WebSocket3.OPEN || ((q = this._socket) == null ? void 0 : q.readyState) === WebSocket3.CONNECTING) && this._socket.close(), await this._closeComplete.wait({
|
|
82891
82887
|
timeout: 1e3
|
|
82892
82888
|
});
|
|
82893
82889
|
} catch (G) {
|
|
@@ -82997,7 +82993,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
82997
82993
|
metadata: (G = (q = this._callbacks) == null ? void 0 : q.getMetadata) == null ? void 0 : G.call(q)
|
|
82998
82994
|
});
|
|
82999
82995
|
}
|
|
83000
|
-
}, __dxlog_file3$
|
|
82996
|
+
}, __dxlog_file3$2 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-client/signal-client.ts", DEFAULT_RECONNECT_TIMEOUT = 100, MAX_RECONNECT_TIMEOUT = 5e3, ERROR_RECONCILE_DELAY = 1e3, RECONCILE_INTERVAL = 5e3, SignalClient = class {
|
|
83001
82997
|
/**
|
|
83002
82998
|
* @param _host Signal server websocket URL.
|
|
83003
82999
|
* @param _onMessage
|
|
@@ -83016,7 +83012,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83016
83012
|
log$2.trace("dxos.mesh.signal-client.open", trace$1.begin({
|
|
83017
83013
|
id: this._instanceId
|
|
83018
83014
|
}), {
|
|
83019
|
-
F: __dxlog_file3$
|
|
83015
|
+
F: __dxlog_file3$2,
|
|
83020
83016
|
L: 136,
|
|
83021
83017
|
S: this,
|
|
83022
83018
|
C: ($, I) => $(...I)
|
|
@@ -83027,7 +83023,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83027
83023
|
onError: ($) => {
|
|
83028
83024
|
var I;
|
|
83029
83025
|
this._state === SignalState.CLOSED || (I = this._ctx) != null && I.disposed || (this._state === SignalState.CONNECTED && log$2.warn("SignalClient error:", $, {
|
|
83030
|
-
F: __dxlog_file3$
|
|
83026
|
+
F: __dxlog_file3$2,
|
|
83031
83027
|
L: 148,
|
|
83032
83028
|
S: this,
|
|
83033
83029
|
C: (U, q) => U(...q)
|
|
@@ -83042,7 +83038,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83042
83038
|
}), this._setState(SignalState.CONNECTING), this._createClient(), log$2.trace("dxos.mesh.signal-client.open", trace$1.end({
|
|
83043
83039
|
id: this._instanceId
|
|
83044
83040
|
}), {
|
|
83045
|
-
F: __dxlog_file3$
|
|
83041
|
+
F: __dxlog_file3$2,
|
|
83046
83042
|
L: 177,
|
|
83047
83043
|
S: this,
|
|
83048
83044
|
C: ($, I) => $(...I)
|
|
@@ -83051,14 +83047,14 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83051
83047
|
async close() {
|
|
83052
83048
|
var $, I;
|
|
83053
83049
|
log$2("closing...", void 0, {
|
|
83054
|
-
F: __dxlog_file3$
|
|
83050
|
+
F: __dxlog_file3$2,
|
|
83055
83051
|
L: 181,
|
|
83056
83052
|
S: this,
|
|
83057
83053
|
C: (U, q) => U(...q)
|
|
83058
83054
|
}), ![
|
|
83059
83055
|
SignalState.CLOSED
|
|
83060
83056
|
].includes(this._state) && (await (($ = this._ctx) == null ? void 0 : $.dispose()), this._clientReady.reset(), await ((I = this._client) == null ? void 0 : I.close()), this._client = void 0, this._setState(SignalState.CLOSED), log$2("closed", void 0, {
|
|
83061
|
-
F: __dxlog_file3$
|
|
83057
|
+
F: __dxlog_file3$2,
|
|
83062
83058
|
L: 192,
|
|
83063
83059
|
S: this,
|
|
83064
83060
|
C: (U, q) => U(...q)
|
|
@@ -83080,7 +83076,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83080
83076
|
topic: $,
|
|
83081
83077
|
peerId: I
|
|
83082
83078
|
}, {
|
|
83083
|
-
F: __dxlog_file3$
|
|
83079
|
+
F: __dxlog_file3$2,
|
|
83084
83080
|
L: 207,
|
|
83085
83081
|
S: this,
|
|
83086
83082
|
C: (U, q) => U(...q)
|
|
@@ -83095,7 +83091,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83095
83091
|
topic: $,
|
|
83096
83092
|
peerId: I
|
|
83097
83093
|
}, {
|
|
83098
|
-
F: __dxlog_file3$
|
|
83094
|
+
F: __dxlog_file3$2,
|
|
83099
83095
|
L: 215,
|
|
83100
83096
|
S: this,
|
|
83101
83097
|
C: (q, G) => q(...G)
|
|
@@ -83112,7 +83108,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83112
83108
|
}
|
|
83113
83109
|
async sendMessage($) {
|
|
83114
83110
|
this._performance.sentMessages++, await this._clientReady.wait(), invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83115
|
-
F: __dxlog_file3$
|
|
83111
|
+
F: __dxlog_file3$2,
|
|
83116
83112
|
L: 224,
|
|
83117
83113
|
S: this,
|
|
83118
83114
|
A: [
|
|
@@ -83125,7 +83121,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83125
83121
|
log$2("subscribing to messages", {
|
|
83126
83122
|
peerId: $
|
|
83127
83123
|
}, {
|
|
83128
|
-
F: __dxlog_file3$
|
|
83124
|
+
F: __dxlog_file3$2,
|
|
83129
83125
|
L: 229,
|
|
83130
83126
|
S: this,
|
|
83131
83127
|
C: (I, U) => I(...U)
|
|
@@ -83138,7 +83134,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83138
83134
|
log$2("unsubscribing from messages", {
|
|
83139
83135
|
peerId: $
|
|
83140
83136
|
}, {
|
|
83141
|
-
F: __dxlog_file3$
|
|
83137
|
+
F: __dxlog_file3$2,
|
|
83142
83138
|
L: 235,
|
|
83143
83139
|
S: this,
|
|
83144
83140
|
C: (U, q) => U(...q)
|
|
@@ -83155,7 +83151,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83155
83151
|
this._state = $, this._lastStateChange = /* @__PURE__ */ new Date(), log$2("signal state changed", {
|
|
83156
83152
|
status: this.getStatus()
|
|
83157
83153
|
}, {
|
|
83158
|
-
F: __dxlog_file3$
|
|
83154
|
+
F: __dxlog_file3$2,
|
|
83159
83155
|
L: 254,
|
|
83160
83156
|
S: this,
|
|
83161
83157
|
C: (I, U) => I(...U)
|
|
@@ -83166,12 +83162,12 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83166
83162
|
host: this._host,
|
|
83167
83163
|
state: this._state
|
|
83168
83164
|
}, {
|
|
83169
|
-
F: __dxlog_file3$
|
|
83165
|
+
F: __dxlog_file3$2,
|
|
83170
83166
|
L: 259,
|
|
83171
83167
|
S: this,
|
|
83172
83168
|
C: ($, I) => $(...I)
|
|
83173
83169
|
}), invariant(!this._client, "Client already created", {
|
|
83174
|
-
F: __dxlog_file3$
|
|
83170
|
+
F: __dxlog_file3$2,
|
|
83175
83171
|
L: 260,
|
|
83176
83172
|
S: this,
|
|
83177
83173
|
A: [
|
|
@@ -83180,7 +83176,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83180
83176
|
]
|
|
83181
83177
|
}), this._connectionStarted = /* @__PURE__ */ new Date(), this._connectionCtx = this._ctx.derive(), this._connectionCtx.onDispose(async () => {
|
|
83182
83178
|
log$2("connection context disposed", void 0, {
|
|
83183
|
-
F: __dxlog_file3$
|
|
83179
|
+
F: __dxlog_file3$2,
|
|
83184
83180
|
L: 267,
|
|
83185
83181
|
S: this,
|
|
83186
83182
|
C: ($, I) => $(...I)
|
|
@@ -83192,7 +83188,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83192
83188
|
callbacks: {
|
|
83193
83189
|
onConnected: () => {
|
|
83194
83190
|
log$2("socket connected", void 0, {
|
|
83195
|
-
F: __dxlog_file3$
|
|
83191
|
+
F: __dxlog_file3$2,
|
|
83196
83192
|
L: 279,
|
|
83197
83193
|
S: this,
|
|
83198
83194
|
C: ($, I) => $(...I)
|
|
@@ -83202,7 +83198,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83202
83198
|
if (log$2("socket disconnected", {
|
|
83203
83199
|
state: this._state
|
|
83204
83200
|
}, {
|
|
83205
|
-
F: __dxlog_file3$
|
|
83201
|
+
F: __dxlog_file3$2,
|
|
83206
83202
|
L: 288,
|
|
83207
83203
|
S: this,
|
|
83208
83204
|
C: ($, I) => $(...I)
|
|
@@ -83217,7 +83213,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83217
83213
|
error: $,
|
|
83218
83214
|
state: this._state
|
|
83219
83215
|
}, {
|
|
83220
|
-
F: __dxlog_file3$
|
|
83216
|
+
F: __dxlog_file3$2,
|
|
83221
83217
|
L: 303,
|
|
83222
83218
|
S: this,
|
|
83223
83219
|
C: (I, U) => I(...U)
|
|
@@ -83238,13 +83234,13 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83238
83234
|
if (log$2(`reconnecting in ${this._reconnectAfter}ms`, {
|
|
83239
83235
|
state: this._state
|
|
83240
83236
|
}, {
|
|
83241
|
-
F: __dxlog_file3$
|
|
83237
|
+
F: __dxlog_file3$2,
|
|
83242
83238
|
L: 331,
|
|
83243
83239
|
S: this,
|
|
83244
83240
|
C: (U, q) => U(...q)
|
|
83245
83241
|
}), this._performance.reconnectCounter++, this._state === SignalState.RECONNECTING) {
|
|
83246
83242
|
log$2.warn("Signal api already reconnecting.", void 0, {
|
|
83247
|
-
F: __dxlog_file3$
|
|
83243
|
+
F: __dxlog_file3$2,
|
|
83248
83244
|
L: 335,
|
|
83249
83245
|
S: this,
|
|
83250
83246
|
C: (U, q) => U(...q)
|
|
@@ -83259,7 +83255,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83259
83255
|
await asyncTimeout(cancelWithContext(this._connectionCtx, this._clientReady.wait()), 5e3);
|
|
83260
83256
|
const $ = this._client;
|
|
83261
83257
|
invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83262
|
-
F: __dxlog_file3$
|
|
83258
|
+
F: __dxlog_file3$2,
|
|
83263
83259
|
L: 360,
|
|
83264
83260
|
S: this,
|
|
83265
83261
|
A: [
|
|
@@ -83292,7 +83288,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83292
83288
|
log$2("swarm event", {
|
|
83293
83289
|
swarmEvent: K
|
|
83294
83290
|
}, {
|
|
83295
|
-
F: __dxlog_file3$
|
|
83291
|
+
F: __dxlog_file3$2,
|
|
83296
83292
|
L: 387,
|
|
83297
83293
|
S: this,
|
|
83298
83294
|
C: (Y, J) => Y(...J)
|
|
@@ -83311,7 +83307,7 @@ var __dxlog_file2$3 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/
|
|
|
83311
83307
|
await asyncTimeout(cancelWithContext(this._connectionCtx, this._clientReady.wait()), 5e3);
|
|
83312
83308
|
const $ = this._client;
|
|
83313
83309
|
invariant(this._state === SignalState.CONNECTED, "Not connected to Signal Server", {
|
|
83314
|
-
F: __dxlog_file3$
|
|
83310
|
+
F: __dxlog_file3$2,
|
|
83315
83311
|
L: 400,
|
|
83316
83312
|
S: this,
|
|
83317
83313
|
A: [
|
|
@@ -83586,14 +83582,14 @@ _ts_decorate$3([
|
|
|
83586
83582
|
_ts_decorate$3([
|
|
83587
83583
|
synchronized
|
|
83588
83584
|
], WebsocketSignalManager.prototype, "checkServerFailure", null);
|
|
83589
|
-
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-manager/utils.ts", setIdentityTags = ({ identityService: $, devicesService: I, setTag: U }) => {
|
|
83585
|
+
var __dxlog_file6$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/src/signal-manager/utils.ts", setIdentityTags = ({ identityService: $, devicesService: I, setTag: U }) => {
|
|
83590
83586
|
$.queryIdentity().subscribe((q) => {
|
|
83591
83587
|
var G;
|
|
83592
83588
|
if (!((G = q == null ? void 0 : q.identity) != null && G.identityKey)) {
|
|
83593
83589
|
log$2("empty response from identity service", {
|
|
83594
83590
|
idqr: q
|
|
83595
83591
|
}, {
|
|
83596
|
-
F: __dxlog_file6,
|
|
83592
|
+
F: __dxlog_file6$1,
|
|
83597
83593
|
L: 21,
|
|
83598
83594
|
S: void 0,
|
|
83599
83595
|
C: (K, Y) => K(...Y)
|
|
@@ -83606,7 +83602,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
|
|
|
83606
83602
|
log$2("empty response from device service", {
|
|
83607
83603
|
device: q
|
|
83608
83604
|
}, {
|
|
83609
|
-
F: __dxlog_file6,
|
|
83605
|
+
F: __dxlog_file6$1,
|
|
83610
83606
|
L: 30,
|
|
83611
83607
|
S: void 0,
|
|
83612
83608
|
C: (K, Y) => K(...Y)
|
|
@@ -83614,7 +83610,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
|
|
|
83614
83610
|
return;
|
|
83615
83611
|
}
|
|
83616
83612
|
invariant(q, "empty response from device service", {
|
|
83617
|
-
F: __dxlog_file6,
|
|
83613
|
+
F: __dxlog_file6$1,
|
|
83618
83614
|
L: 33,
|
|
83619
83615
|
S: void 0,
|
|
83620
83616
|
A: [
|
|
@@ -83627,7 +83623,7 @@ var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/messaging/sr
|
|
|
83627
83623
|
log$2("no current device", {
|
|
83628
83624
|
device: q
|
|
83629
83625
|
}, {
|
|
83630
|
-
F: __dxlog_file6,
|
|
83626
|
+
F: __dxlog_file6$1,
|
|
83631
83627
|
L: 37,
|
|
83632
83628
|
S: void 0,
|
|
83633
83629
|
C: (K, Y) => K(...Y)
|
|
@@ -84828,7 +84824,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84828
84824
|
}, encodeFrame = ($) => {
|
|
84829
84825
|
const I = export_Buffer.allocUnsafe(FRAME_LENGTH_SIZE + $.length);
|
|
84830
84826
|
return I.writeUInt16BE($.length, 0), I.set($, FRAME_LENGTH_SIZE), I;
|
|
84831
|
-
}, __dxlog_file3$
|
|
84827
|
+
}, __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/balancer.ts", MAX_CHUNK_SIZE = 8192, Balancer = class {
|
|
84832
84828
|
constructor($) {
|
|
84833
84829
|
this._sysChannelId = $, this._lastCallerIndex = 0, this._channels = [], this._framer = new Framer(), this._sendBuffers = /* @__PURE__ */ new Map(), this._receiveBuffers = /* @__PURE__ */ new Map(), this._sending = !1, this.incomingData = new Event$1(), this.stream = this._framer.stream, this._channels.push($), this._framer.port.subscribe(this._processIncomingMessage.bind(this));
|
|
84834
84830
|
}
|
|
@@ -84846,7 +84842,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84846
84842
|
}
|
|
84847
84843
|
pushData($, I, U) {
|
|
84848
84844
|
this._enqueueChunk($, I, U), this._sendChunks().catch((q) => log$2.catch(q, void 0, {
|
|
84849
|
-
F: __dxlog_file3$
|
|
84845
|
+
F: __dxlog_file3$1,
|
|
84850
84846
|
L: 75,
|
|
84851
84847
|
S: this,
|
|
84852
84848
|
C: (G, K) => G(...K)
|
|
@@ -84854,7 +84850,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84854
84850
|
}
|
|
84855
84851
|
destroy() {
|
|
84856
84852
|
this._sendBuffers.size !== 0 && log$2.info("destroying balancer with pending calls", void 0, {
|
|
84857
|
-
F: __dxlog_file3$
|
|
84853
|
+
F: __dxlog_file3$1,
|
|
84858
84854
|
L: 80,
|
|
84859
84855
|
S: this,
|
|
84860
84856
|
C: ($, I) => $(...I)
|
|
@@ -84921,12 +84917,12 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84921
84917
|
let $;
|
|
84922
84918
|
for ($ = this._getNextChunk(); $; ) {
|
|
84923
84919
|
this._framer.writable || (log$2("PAUSE for drain", void 0, {
|
|
84924
|
-
F: __dxlog_file3$
|
|
84920
|
+
F: __dxlog_file3$1,
|
|
84925
84921
|
L: 179,
|
|
84926
84922
|
S: this,
|
|
84927
84923
|
C: (q, G) => q(...G)
|
|
84928
84924
|
}), await this._framer.drain.waitForCount(1), log$2("RESUME for drain", void 0, {
|
|
84929
|
-
F: __dxlog_file3$
|
|
84925
|
+
F: __dxlog_file3$1,
|
|
84930
84926
|
L: 181,
|
|
84931
84927
|
S: this,
|
|
84932
84928
|
C: (q, G) => q(...G)
|
|
@@ -84937,7 +84933,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84937
84933
|
log$2("Error sending chunk", {
|
|
84938
84934
|
err: q
|
|
84939
84935
|
}, {
|
|
84940
|
-
F: __dxlog_file3$
|
|
84936
|
+
F: __dxlog_file3$1,
|
|
84941
84937
|
L: 187,
|
|
84942
84938
|
S: this,
|
|
84943
84939
|
C: (G, K) => G(...K)
|
|
@@ -84946,7 +84942,7 @@ var N1 = Math.pow(2, 7), N2 = Math.pow(2, 14), N3 = Math.pow(2, 21), N4 = Math.p
|
|
|
84946
84942
|
$ = this._getNextChunk();
|
|
84947
84943
|
}
|
|
84948
84944
|
invariant(this._sendBuffers.size === 0, "sendBuffers not empty", {
|
|
84949
|
-
F: __dxlog_file3$
|
|
84945
|
+
F: __dxlog_file3$1,
|
|
84950
84946
|
L: 192,
|
|
84951
84947
|
S: this,
|
|
84952
84948
|
A: [
|
|
@@ -86259,7 +86255,7 @@ function _ts_decorate2$1($, I, U, q) {
|
|
|
86259
86255
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
86260
86256
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
86261
86257
|
}
|
|
86262
|
-
var __dxlog_file3
|
|
86258
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-manager/src/swarm/peer.ts", ConnectionDisplacedError = class extends SystemError {
|
|
86263
86259
|
constructor() {
|
|
86264
86260
|
super("Connection displaced by remote initiator.");
|
|
86265
86261
|
}
|
|
@@ -86279,7 +86275,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86279
86275
|
ConnectionState.CONNECTING
|
|
86280
86276
|
].includes(this.connection.state))
|
|
86281
86277
|
return log$2.info(`received offer when connection already in ${this.connection.state} state`, void 0, {
|
|
86282
|
-
F: __dxlog_file3
|
|
86278
|
+
F: __dxlog_file3,
|
|
86283
86279
|
L: 114,
|
|
86284
86280
|
S: this,
|
|
86285
86281
|
C: (q, G) => q(...G)
|
|
@@ -86294,7 +86290,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86294
86290
|
remotePeerId: this.localPeerId,
|
|
86295
86291
|
sessionId: (U = this.connection) == null ? void 0 : U.sessionId
|
|
86296
86292
|
}, {
|
|
86297
|
-
F: __dxlog_file3
|
|
86293
|
+
F: __dxlog_file3,
|
|
86298
86294
|
L: 123,
|
|
86299
86295
|
S: this,
|
|
86300
86296
|
C: (q, G) => q(...G)
|
|
@@ -86305,7 +86301,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86305
86301
|
};
|
|
86306
86302
|
if (await this._callbacks.onOffer(I) && !this.connection) {
|
|
86307
86303
|
invariant($.sessionId, void 0, {
|
|
86308
|
-
F: __dxlog_file3
|
|
86304
|
+
F: __dxlog_file3,
|
|
86309
86305
|
L: 143,
|
|
86310
86306
|
S: this,
|
|
86311
86307
|
A: [
|
|
@@ -86323,7 +86319,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86323
86319
|
remoteId: this.id,
|
|
86324
86320
|
err: G
|
|
86325
86321
|
}, {
|
|
86326
|
-
F: __dxlog_file3
|
|
86322
|
+
F: __dxlog_file3,
|
|
86327
86323
|
L: 153,
|
|
86328
86324
|
S: this,
|
|
86329
86325
|
C: (K, Y) => K(...Y)
|
|
@@ -86342,7 +86338,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86342
86338
|
*/
|
|
86343
86339
|
async initiateConnection() {
|
|
86344
86340
|
invariant(!this.initiating, "Initiation in progress.", {
|
|
86345
|
-
F: __dxlog_file3
|
|
86341
|
+
F: __dxlog_file3,
|
|
86346
86342
|
L: 170,
|
|
86347
86343
|
S: this,
|
|
86348
86344
|
A: [
|
|
@@ -86350,7 +86346,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86350
86346
|
"'Initiation in progress.'"
|
|
86351
86347
|
]
|
|
86352
86348
|
}), invariant(!this.connection, "Already connected.", {
|
|
86353
|
-
F: __dxlog_file3
|
|
86349
|
+
F: __dxlog_file3,
|
|
86354
86350
|
L: 171,
|
|
86355
86351
|
S: this,
|
|
86356
86352
|
A: [
|
|
@@ -86365,7 +86361,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86365
86361
|
peerId: this.id,
|
|
86366
86362
|
sessionId: $
|
|
86367
86363
|
}, {
|
|
86368
|
-
F: __dxlog_file3
|
|
86364
|
+
F: __dxlog_file3,
|
|
86369
86365
|
L: 173,
|
|
86370
86366
|
S: this,
|
|
86371
86367
|
C: (q, G) => q(...G)
|
|
@@ -86388,13 +86384,13 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86388
86384
|
ownId: this.localPeerId,
|
|
86389
86385
|
remoteId: this.id
|
|
86390
86386
|
}, {
|
|
86391
|
-
F: __dxlog_file3
|
|
86387
|
+
F: __dxlog_file3,
|
|
86392
86388
|
L: 190,
|
|
86393
86389
|
S: this,
|
|
86394
86390
|
C: (q, G) => q(...G)
|
|
86395
86391
|
}), I.state !== ConnectionState.INITIAL) {
|
|
86396
86392
|
log$2("ignoring response", void 0, {
|
|
86397
|
-
F: __dxlog_file3
|
|
86393
|
+
F: __dxlog_file3,
|
|
86398
86394
|
L: 192,
|
|
86399
86395
|
S: this,
|
|
86400
86396
|
C: (q, G) => q(...G)
|
|
@@ -86408,7 +86404,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86408
86404
|
peerId: this.localPeerId,
|
|
86409
86405
|
remoteId: this.id
|
|
86410
86406
|
}, {
|
|
86411
|
-
F: __dxlog_file3
|
|
86407
|
+
F: __dxlog_file3,
|
|
86412
86408
|
L: 196,
|
|
86413
86409
|
S: this,
|
|
86414
86410
|
C: (G, K) => G(...K)
|
|
@@ -86428,7 +86424,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86428
86424
|
peerId: this.localPeerId,
|
|
86429
86425
|
remoteId: this.id
|
|
86430
86426
|
}, {
|
|
86431
|
-
F: __dxlog_file3
|
|
86427
|
+
F: __dxlog_file3,
|
|
86432
86428
|
L: 209,
|
|
86433
86429
|
S: this,
|
|
86434
86430
|
C: (G, K) => G(...K)
|
|
@@ -86438,7 +86434,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86438
86434
|
}
|
|
86439
86435
|
try {
|
|
86440
86436
|
log$2("opening connection as initiator", void 0, {
|
|
86441
|
-
F: __dxlog_file3
|
|
86437
|
+
F: __dxlog_file3,
|
|
86442
86438
|
L: 222,
|
|
86443
86439
|
S: this,
|
|
86444
86440
|
C: (q, G) => q(...G)
|
|
@@ -86450,14 +86446,14 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86450
86446
|
peerId: this.localPeerId,
|
|
86451
86447
|
remoteId: this.id
|
|
86452
86448
|
}, {
|
|
86453
|
-
F: __dxlog_file3
|
|
86449
|
+
F: __dxlog_file3,
|
|
86454
86450
|
L: 226,
|
|
86455
86451
|
S: this,
|
|
86456
86452
|
C: (G, K) => G(...K)
|
|
86457
86453
|
}), log$2.warn("closing connection due to unhandled error on openConnection", {
|
|
86458
86454
|
err: q
|
|
86459
86455
|
}, {
|
|
86460
|
-
F: __dxlog_file3
|
|
86456
|
+
F: __dxlog_file3,
|
|
86461
86457
|
L: 233,
|
|
86462
86458
|
S: this,
|
|
86463
86459
|
C: (G, K) => G(...K)
|
|
@@ -86479,12 +86475,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86479
86475
|
initiator: $,
|
|
86480
86476
|
sessionId: I
|
|
86481
86477
|
}, {
|
|
86482
|
-
F: __dxlog_file3
|
|
86478
|
+
F: __dxlog_file3,
|
|
86483
86479
|
L: 247,
|
|
86484
86480
|
S: this,
|
|
86485
86481
|
C: (G, K) => G(...K)
|
|
86486
86482
|
}), invariant(!this.connection, "Already connected.", {
|
|
86487
|
-
F: __dxlog_file3
|
|
86483
|
+
F: __dxlog_file3,
|
|
86488
86484
|
L: 254,
|
|
86489
86485
|
S: this,
|
|
86490
86486
|
A: [
|
|
@@ -86516,7 +86512,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86516
86512
|
sessionId: I,
|
|
86517
86513
|
initiator: $
|
|
86518
86514
|
}, {
|
|
86519
|
-
F: __dxlog_file3
|
|
86515
|
+
F: __dxlog_file3,
|
|
86520
86516
|
L: 273,
|
|
86521
86517
|
S: this,
|
|
86522
86518
|
C: (G, K) => G(...K)
|
|
@@ -86529,12 +86525,12 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86529
86525
|
remoteId: this.id,
|
|
86530
86526
|
initiator: $
|
|
86531
86527
|
}, {
|
|
86532
|
-
F: __dxlog_file3
|
|
86528
|
+
F: __dxlog_file3,
|
|
86533
86529
|
L: 282,
|
|
86534
86530
|
S: this,
|
|
86535
86531
|
C: (K, Y) => K(...Y)
|
|
86536
86532
|
}), this._connectionLimiter.doneConnecting(I), invariant(this.connection === U, "Connection mismatch (race condition).", {
|
|
86537
|
-
F: __dxlog_file3
|
|
86533
|
+
F: __dxlog_file3,
|
|
86538
86534
|
L: 287,
|
|
86539
86535
|
S: this,
|
|
86540
86536
|
A: [
|
|
@@ -86548,7 +86544,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86548
86544
|
sessionId: I,
|
|
86549
86545
|
initiator: $
|
|
86550
86546
|
}, {
|
|
86551
|
-
F: __dxlog_file3
|
|
86547
|
+
F: __dxlog_file3,
|
|
86552
86548
|
L: 289,
|
|
86553
86549
|
S: this,
|
|
86554
86550
|
C: (K, Y) => K(...Y)
|
|
@@ -86566,7 +86562,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86566
86562
|
initiator: $,
|
|
86567
86563
|
err: G
|
|
86568
86564
|
}, {
|
|
86569
|
-
F: __dxlog_file3
|
|
86565
|
+
F: __dxlog_file3,
|
|
86570
86566
|
L: 329,
|
|
86571
86567
|
S: this,
|
|
86572
86568
|
C: (K, Y) => K(...Y)
|
|
@@ -86578,7 +86574,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86578
86574
|
initiator: $,
|
|
86579
86575
|
err: G
|
|
86580
86576
|
}, {
|
|
86581
|
-
F: __dxlog_file3
|
|
86577
|
+
F: __dxlog_file3,
|
|
86582
86578
|
L: 336,
|
|
86583
86579
|
S: this,
|
|
86584
86580
|
C: (K, Y) => K(...Y)
|
|
@@ -86593,7 +86589,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86593
86589
|
peerId: this.id,
|
|
86594
86590
|
sessionId: I.sessionId
|
|
86595
86591
|
}, {
|
|
86596
|
-
F: __dxlog_file3
|
|
86592
|
+
F: __dxlog_file3,
|
|
86597
86593
|
L: 361,
|
|
86598
86594
|
S: this,
|
|
86599
86595
|
C: (U, q) => U(...q)
|
|
@@ -86601,7 +86597,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86601
86597
|
peerId: this.id,
|
|
86602
86598
|
sessionId: I.sessionId
|
|
86603
86599
|
}, {
|
|
86604
|
-
F: __dxlog_file3
|
|
86600
|
+
F: __dxlog_file3,
|
|
86605
86601
|
L: 367,
|
|
86606
86602
|
S: this,
|
|
86607
86603
|
C: (U, q) => U(...q)
|
|
@@ -86612,7 +86608,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86612
86608
|
log$2("dropping signal message for non-existent connection", {
|
|
86613
86609
|
message: $
|
|
86614
86610
|
}, {
|
|
86615
|
-
F: __dxlog_file3
|
|
86611
|
+
F: __dxlog_file3,
|
|
86616
86612
|
L: 372,
|
|
86617
86613
|
S: this,
|
|
86618
86614
|
C: (I, U) => I(...U)
|
|
@@ -86627,7 +86623,7 @@ var __dxlog_file3$1 = "/home/runner/work/dxos/dxos/packages/core/mesh/network-ma
|
|
|
86627
86623
|
peerId: this.id,
|
|
86628
86624
|
topic: this.topic
|
|
86629
86625
|
}, {
|
|
86630
|
-
F: __dxlog_file3
|
|
86626
|
+
F: __dxlog_file3,
|
|
86631
86627
|
L: 382,
|
|
86632
86628
|
S: this,
|
|
86633
86629
|
C: (U, q) => U(...q)
|
|
@@ -88758,12 +88754,14 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
|
|
|
88758
88754
|
return this._client.rpc;
|
|
88759
88755
|
}
|
|
88760
88756
|
async open() {
|
|
88761
|
-
const { WebsocketRpcClient: $ } = await import("./index-
|
|
88757
|
+
const { WebsocketRpcClient: $ } = await import("./index-D-0DqO_p.mjs");
|
|
88762
88758
|
this._client = new $({
|
|
88763
88759
|
url: getUnixSocket(this._profile, "ws+unix"),
|
|
88764
88760
|
requested: clientServiceBundle,
|
|
88765
88761
|
exposed: {},
|
|
88766
88762
|
handlers: {}
|
|
88763
|
+
}), this._client.error.on((I) => {
|
|
88764
|
+
this.closed.emit(I);
|
|
88767
88765
|
}), await this._client.open();
|
|
88768
88766
|
}
|
|
88769
88767
|
async close() {
|
|
@@ -88773,7 +88771,7 @@ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services
|
|
|
88773
88771
|
} catch (I) {
|
|
88774
88772
|
log$2.warn("Failed to close", I, {
|
|
88775
88773
|
F: __dxlog_file,
|
|
88776
|
-
L:
|
|
88774
|
+
L: 72,
|
|
88777
88775
|
S: this,
|
|
88778
88776
|
C: (U, q) => U(...q)
|
|
88779
88777
|
});
|
|
@@ -88878,7 +88876,7 @@ var IFrameManager = class {
|
|
|
88878
88876
|
var I;
|
|
88879
88877
|
(I = this._onMessage) == null || I.call(this, $);
|
|
88880
88878
|
}
|
|
88881
|
-
},
|
|
88879
|
+
}, __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/shell-manager.ts", shellStyles = Object.entries({
|
|
88882
88880
|
display: "none",
|
|
88883
88881
|
position: "fixed",
|
|
88884
88882
|
top: 0,
|
|
@@ -88898,13 +88896,15 @@ var IFrameManager = class {
|
|
|
88898
88896
|
async setLayout($) {
|
|
88899
88897
|
var I;
|
|
88900
88898
|
log$2("set layout", $, {
|
|
88901
|
-
F:
|
|
88902
|
-
L:
|
|
88899
|
+
F: __dxlog_file4,
|
|
88900
|
+
L: 51,
|
|
88903
88901
|
S: this,
|
|
88904
88902
|
C: (U, q) => U(...q)
|
|
88905
88903
|
}), this._display = ShellDisplay.FULLSCREEN, this.contextUpdate.emit({
|
|
88906
88904
|
display: this._display
|
|
88907
|
-
}), await ((I = this._shellRpc) == null ? void 0 : I.rpc.ShellService.setLayout(
|
|
88905
|
+
}), await ((I = this._shellRpc) == null ? void 0 : I.rpc.ShellService.setLayout($, {
|
|
88906
|
+
timeout: RPC_TIMEOUT
|
|
88907
|
+
}));
|
|
88908
88908
|
}
|
|
88909
88909
|
async open() {
|
|
88910
88910
|
if (this._shellRpc)
|
|
@@ -88926,8 +88926,8 @@ var IFrameManager = class {
|
|
|
88926
88926
|
AppService: {
|
|
88927
88927
|
setContext: async (q) => {
|
|
88928
88928
|
log$2("set context", q, {
|
|
88929
|
-
F:
|
|
88930
|
-
L:
|
|
88929
|
+
F: __dxlog_file4,
|
|
88930
|
+
L: 98,
|
|
88931
88931
|
S: this,
|
|
88932
88932
|
C: (G, K) => G(...K)
|
|
88933
88933
|
}), q.display && (this._display = q.display), this.contextUpdate.emit(q);
|
|
@@ -89019,13 +89019,13 @@ function _ts_decorate4($, I, U, q) {
|
|
|
89019
89019
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
89020
89020
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
89021
89021
|
}
|
|
89022
|
-
var
|
|
89022
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/service-proxy.ts", ClientServicesProxy = class {
|
|
89023
89023
|
constructor($, I = 3e4) {
|
|
89024
89024
|
this._port = $, this._timeout = I, this.closed = new Event$1();
|
|
89025
89025
|
}
|
|
89026
89026
|
get proxy() {
|
|
89027
89027
|
return invariant(this._proxy, "Client services not open", {
|
|
89028
|
-
F:
|
|
89028
|
+
F: __dxlog_file5,
|
|
89029
89029
|
L: 30,
|
|
89030
89030
|
S: this,
|
|
89031
89031
|
A: [
|
|
@@ -89039,7 +89039,7 @@ var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89039
89039
|
}
|
|
89040
89040
|
get services() {
|
|
89041
89041
|
return invariant(this._proxy, "Client services not open", {
|
|
89042
|
-
F:
|
|
89042
|
+
F: __dxlog_file5,
|
|
89043
89043
|
L: 39,
|
|
89044
89044
|
S: this,
|
|
89045
89045
|
A: [
|
|
@@ -89076,7 +89076,7 @@ function _ts_decorate5($, I, U, q) {
|
|
|
89076
89076
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
89077
89077
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
89078
89078
|
}
|
|
89079
|
-
var
|
|
89079
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/iframe-service-proxy.ts", IFrameClientServicesProxy = class {
|
|
89080
89080
|
constructor({ source: $ = DEFAULT_VAULT_URL, shell: I = DEFAULT_SHELL_CHANNEL, vault: U = DEFAULT_INTERNAL_CHANNEL, timeout: q = PROXY_CONNECTION_TIMEOUT, logFilter: G = "error,warn" } = {}) {
|
|
89081
89081
|
this.closed = new Event$1(), this._instanceId = PublicKey.random().toHex(), this._source = $, this._shell = I, this._vault = U, this._logFilter = parseFilter(G), this._timeout = q;
|
|
89082
89082
|
const K = new Trigger(), Y = new Trigger();
|
|
@@ -89115,42 +89115,44 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89115
89115
|
this._clientServicesProxy || (log$2.trace("dxos.sdk.iframe-clientTraceices-proxy", trace$1.begin({
|
|
89116
89116
|
id: this._instanceId
|
|
89117
89117
|
}), {
|
|
89118
|
-
F:
|
|
89119
|
-
L:
|
|
89118
|
+
F: __dxlog_file6,
|
|
89119
|
+
L: 142,
|
|
89120
89120
|
S: this,
|
|
89121
89121
|
C: (I, U) => I(...U)
|
|
89122
89122
|
}), await this._iframeManager.open(), this._clientServicesProxy = new ClientServicesProxy(this._appPort), await this._clientServicesProxy.open(), this._loggingStream = this._clientServicesProxy.services.LoggingService.queryLogs({
|
|
89123
89123
|
filters: this._logFilter
|
|
89124
|
+
}, {
|
|
89125
|
+
timeout: RPC_TIMEOUT
|
|
89124
89126
|
}), this._loggingStream.subscribe((I) => {
|
|
89125
89127
|
switch (I.level) {
|
|
89126
89128
|
case LogLevel.DEBUG:
|
|
89127
89129
|
log$2.debug(`[vault] ${I.message}`, I.context, {
|
|
89128
|
-
F:
|
|
89129
|
-
L:
|
|
89130
|
+
F: __dxlog_file6,
|
|
89131
|
+
L: 157,
|
|
89130
89132
|
S: this,
|
|
89131
89133
|
C: (U, q) => U(...q)
|
|
89132
89134
|
});
|
|
89133
89135
|
break;
|
|
89134
89136
|
case LogLevel.INFO:
|
|
89135
89137
|
log$2.info(`[vault] ${I.message}`, I.context, {
|
|
89136
|
-
F:
|
|
89137
|
-
L:
|
|
89138
|
+
F: __dxlog_file6,
|
|
89139
|
+
L: 160,
|
|
89138
89140
|
S: this,
|
|
89139
89141
|
C: (U, q) => U(...q)
|
|
89140
89142
|
});
|
|
89141
89143
|
break;
|
|
89142
89144
|
case LogLevel.WARN:
|
|
89143
89145
|
log$2.warn(`[vault] ${I.message}`, I.context, {
|
|
89144
|
-
F:
|
|
89145
|
-
L:
|
|
89146
|
+
F: __dxlog_file6,
|
|
89147
|
+
L: 163,
|
|
89146
89148
|
S: this,
|
|
89147
89149
|
C: (U, q) => U(...q)
|
|
89148
89150
|
});
|
|
89149
89151
|
break;
|
|
89150
89152
|
case LogLevel.ERROR:
|
|
89151
89153
|
log$2.error(`[vault] ${I.message}`, I.context, {
|
|
89152
|
-
F:
|
|
89153
|
-
L:
|
|
89154
|
+
F: __dxlog_file6,
|
|
89155
|
+
L: 166,
|
|
89154
89156
|
S: this,
|
|
89155
89157
|
C: (U, q) => U(...q)
|
|
89156
89158
|
});
|
|
@@ -89163,8 +89165,8 @@ var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89163
89165
|
await (($ = this._shellManager) == null ? void 0 : $.close()), await this._iframeManager.close(), await ((I = this._loggingStream) == null ? void 0 : I.close()), await ((U = this._clientServicesProxy) == null ? void 0 : U.close()), this._clientServicesProxy = void 0, log$2.trace("dxos.sdk.iframe-clientTraceices-proxy", trace$1.end({
|
|
89164
89166
|
id: this._instanceId
|
|
89165
89167
|
}), {
|
|
89166
|
-
F:
|
|
89167
|
-
L:
|
|
89168
|
+
F: __dxlog_file6,
|
|
89169
|
+
L: 180,
|
|
89168
89170
|
S: this,
|
|
89169
89171
|
C: (q, G) => q(...G)
|
|
89170
89172
|
});
|
|
@@ -89182,7 +89184,7 @@ function _ts_decorate6($, I, U, q) {
|
|
|
89182
89184
|
(Y = $[J]) && (K = (G < 3 ? Y(K) : G > 3 ? Y(I, U, K) : Y(I, U)) || K);
|
|
89183
89185
|
return G > 3 && K && Object.defineProperty(I, U, K), K;
|
|
89184
89186
|
}
|
|
89185
|
-
var
|
|
89187
|
+
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/services/worker-client-services.ts", WorkerClientServices = class {
|
|
89186
89188
|
constructor({ config: $, createWorker: I, logFilter: U = "error,warn", observabilityGroup: q, signalTelemetryEnabled: G }) {
|
|
89187
89189
|
this.closed = new Event$1(), this.joinedSpace = new Event$1(), this._isOpen = !1, this._config = $, this._createWorker = I, this._logFilter = parseFilter(U), this._observabilityGroup = q, this._signalTelemetryEnabled = G ?? !1;
|
|
89188
89190
|
}
|
|
@@ -89199,8 +89201,8 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89199
89201
|
if (this._isOpen)
|
|
89200
89202
|
return;
|
|
89201
89203
|
log$2("opening...", void 0, {
|
|
89202
|
-
F:
|
|
89203
|
-
L:
|
|
89204
|
+
F: __dxlog_file8,
|
|
89205
|
+
L: 88,
|
|
89204
89206
|
S: this,
|
|
89205
89207
|
C: (K, Y) => K(...Y)
|
|
89206
89208
|
});
|
|
@@ -89225,13 +89227,15 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89225
89227
|
port: G
|
|
89226
89228
|
})), await this._services.open(), navigator.locks.request(LOCK_KEY, () => {
|
|
89227
89229
|
log$2("terminated", void 0, {
|
|
89228
|
-
F:
|
|
89229
|
-
L:
|
|
89230
|
+
F: __dxlog_file8,
|
|
89231
|
+
L: 115,
|
|
89230
89232
|
S: this,
|
|
89231
89233
|
C: (K, Y) => K(...Y)
|
|
89232
89234
|
}), this._isOpen && this.closed.emit(new Error("Shared worker terminated."));
|
|
89233
89235
|
}), this._loggingStream = this._services.services.LoggingService.queryLogs({
|
|
89234
89236
|
filters: this._logFilter
|
|
89237
|
+
}, {
|
|
89238
|
+
timeout: RPC_TIMEOUT
|
|
89235
89239
|
}), this._loggingStream.subscribe((K) => {
|
|
89236
89240
|
switch (K.level) {
|
|
89237
89241
|
case LogLevel.DEBUG:
|
|
@@ -89248,8 +89252,8 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89248
89252
|
break;
|
|
89249
89253
|
}
|
|
89250
89254
|
}), log$2("opened", void 0, {
|
|
89251
|
-
F:
|
|
89252
|
-
L:
|
|
89255
|
+
F: __dxlog_file8,
|
|
89256
|
+
L: 144,
|
|
89253
89257
|
S: this,
|
|
89254
89258
|
C: (K, Y) => K(...Y)
|
|
89255
89259
|
}), this._isOpen = !0;
|
|
@@ -89257,13 +89261,13 @@ var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/client/src/service
|
|
|
89257
89261
|
async close() {
|
|
89258
89262
|
var $;
|
|
89259
89263
|
this._isOpen && (log$2("closing...", void 0, {
|
|
89260
|
-
F:
|
|
89261
|
-
L:
|
|
89264
|
+
F: __dxlog_file8,
|
|
89265
|
+
L: 154,
|
|
89262
89266
|
S: this,
|
|
89263
89267
|
C: (I, U) => I(...U)
|
|
89264
89268
|
}), await (($ = this._loggingStream) == null ? void 0 : $.close()), await this._runtime.close(), await this._services.close(), log$2("closed", void 0, {
|
|
89265
|
-
F:
|
|
89266
|
-
L:
|
|
89269
|
+
F: __dxlog_file8,
|
|
89270
|
+
L: 159,
|
|
89267
89271
|
S: this,
|
|
89268
89272
|
C: (I, U) => I(...U)
|
|
89269
89273
|
}), this._isOpen = !1);
|
|
@@ -89639,8 +89643,11 @@ function requireUseSyncExternalStoreShim_development() {
|
|
|
89639
89643
|
useSyncExternalStoreShim_development.useSyncExternalStore = ce, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
89640
89644
|
}()), useSyncExternalStoreShim_development;
|
|
89641
89645
|
}
|
|
89642
|
-
|
|
89643
|
-
|
|
89646
|
+
var hasRequiredShim;
|
|
89647
|
+
function requireShim() {
|
|
89648
|
+
return hasRequiredShim || (hasRequiredShim = 1, process.env.NODE_ENV === "production" ? shim.exports = requireUseSyncExternalStoreShim_production_min() : shim.exports = requireUseSyncExternalStoreShim_development()), shim.exports;
|
|
89649
|
+
}
|
|
89650
|
+
var shimExports = requireShim(), jsxDevRuntime = { exports: {} }, reactJsxDevRuntime_production_min = {};
|
|
89644
89651
|
/**
|
|
89645
89652
|
* @license React
|
|
89646
89653
|
* react-jsx-dev-runtime.production.min.js
|
|
@@ -90391,7 +90398,7 @@ function requireWithSelector_production_min() {
|
|
|
90391
90398
|
if (hasRequiredWithSelector_production_min)
|
|
90392
90399
|
return withSelector_production_min;
|
|
90393
90400
|
hasRequiredWithSelector_production_min = 1;
|
|
90394
|
-
var $ = React__default, I =
|
|
90401
|
+
var $ = React__default, I = requireShim();
|
|
90395
90402
|
function U(Q, ee) {
|
|
90396
90403
|
return Q === ee && (Q !== 0 || 1 / Q === 1 / ee) || Q !== Q && ee !== ee;
|
|
90397
90404
|
}
|
|
@@ -90445,7 +90452,7 @@ var hasRequiredWithSelector_development;
|
|
|
90445
90452
|
function requireWithSelector_development() {
|
|
90446
90453
|
return hasRequiredWithSelector_development || (hasRequiredWithSelector_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
90447
90454
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
90448
|
-
var $ = React__default, I =
|
|
90455
|
+
var $ = React__default, I = requireShim();
|
|
90449
90456
|
function U(ee, te) {
|
|
90450
90457
|
return ee === te && (ee !== 0 || 1 / ee === 1 / te) || ee !== ee && te !== te;
|
|
90451
90458
|
}
|
|
@@ -96594,11 +96601,11 @@ createContext({});
|
|
|
96594
96601
|
export {
|
|
96595
96602
|
Event$1 as E,
|
|
96596
96603
|
Trigger as T,
|
|
96597
|
-
|
|
96604
|
+
WebSocket3 as W,
|
|
96598
96605
|
logInfo as a,
|
|
96599
96606
|
createProtoRpcPeer as c,
|
|
96600
96607
|
export_Buffer as e,
|
|
96601
96608
|
log$2 as l,
|
|
96602
96609
|
runShell as r
|
|
96603
96610
|
};
|
|
96604
|
-
//# sourceMappingURL=index-
|
|
96611
|
+
//# sourceMappingURL=index-DrUA2jlt.mjs.map
|