@dsh-remote/relay 3.2.10 → 3.2.11
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/main.js +12 -12
- package/package.json +1 -1
package/dist/bundle/main.js
CHANGED
|
@@ -23443,7 +23443,7 @@ function date4(params) {
|
|
|
23443
23443
|
return _coercedDate(ZodDate, params);
|
|
23444
23444
|
}
|
|
23445
23445
|
|
|
23446
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
23446
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/limits.js
|
|
23447
23447
|
var MAX_RELAY_MESSAGE_BYTES = 1024 * 1024;
|
|
23448
23448
|
var MAX_CIPHERTEXT_BYTES = MAX_RELAY_MESSAGE_BYTES - 8 * 1024;
|
|
23449
23449
|
var MAX_IMAGE_ATTACHMENTS = 4;
|
|
@@ -23452,7 +23452,7 @@ var MAX_ATTACHMENT_BYTES = 512 * 1024;
|
|
|
23452
23452
|
var MAX_ATTACHMENT_TOTAL_BYTES = 512 * 1024;
|
|
23453
23453
|
var IDEMPOTENCY_WINDOW_MS = 5 * 60 * 1e3;
|
|
23454
23454
|
|
|
23455
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
23455
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/frames.js
|
|
23456
23456
|
var PROTOCOL_VERSION = 1;
|
|
23457
23457
|
var PAIRING_TOKEN_RE = /^\d{6}$/;
|
|
23458
23458
|
var nonEmpty = external_exports.string().min(1);
|
|
@@ -23743,7 +23743,7 @@ function parseEndpointFrame(value) {
|
|
|
23743
23743
|
return parsed.success ? parsed.data : null;
|
|
23744
23744
|
}
|
|
23745
23745
|
|
|
23746
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
23746
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/report-version.js
|
|
23747
23747
|
var REPORT_VERSION_ENV = "DRC_REPORT_VERSION";
|
|
23748
23748
|
function reportSoftwareVersion(env) {
|
|
23749
23749
|
const raw = (env[REPORT_VERSION_ENV] ?? "").trim().toLowerCase();
|
|
@@ -23995,7 +23995,7 @@ var import_subprotocol = __toESM(require_subprotocol(), 1);
|
|
|
23995
23995
|
var import_websocket = __toESM(require_websocket(), 1);
|
|
23996
23996
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
23997
23997
|
|
|
23998
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
23998
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
|
|
23999
23999
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
24000
24000
|
var CONVERSATION_ID_PREFIX = "c_";
|
|
24001
24001
|
function newConversationId() {
|
|
@@ -24005,7 +24005,7 @@ function newHostId() {
|
|
|
24005
24005
|
return randomBytes(4).toString("hex");
|
|
24006
24006
|
}
|
|
24007
24007
|
|
|
24008
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24008
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
|
|
24009
24009
|
function negotiateProtocol(peerProtocol, own2 = PROTOCOL_VERSION) {
|
|
24010
24010
|
if (peerProtocol === void 0 || peerProtocol === null) {
|
|
24011
24011
|
return {
|
|
@@ -24125,16 +24125,16 @@ function createMpCodeIssuer(options) {
|
|
|
24125
24125
|
};
|
|
24126
24126
|
}
|
|
24127
24127
|
|
|
24128
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24128
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
|
|
24129
24129
|
var WAIT_HINTABLE = /* @__PURE__ */ new Set(["rate_limited", "pair_table_full"]);
|
|
24130
24130
|
function wantsRetryAfter(code) {
|
|
24131
24131
|
return typeof code === "string" && WAIT_HINTABLE.has(code);
|
|
24132
24132
|
}
|
|
24133
24133
|
|
|
24134
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24134
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
|
|
24135
24135
|
var SLEEP_BACKENDS = ["caffeinate", "systemd-inhibit", "unsupported"];
|
|
24136
24136
|
|
|
24137
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24137
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
|
|
24138
24138
|
var SESSION_STATES = [
|
|
24139
24139
|
"idle",
|
|
24140
24140
|
"running",
|
|
@@ -24574,7 +24574,7 @@ var PAYLOAD_TYPES = {
|
|
|
24574
24574
|
evSessionHistory: "ev.session_history"
|
|
24575
24575
|
};
|
|
24576
24576
|
|
|
24577
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24577
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
|
|
24578
24578
|
function helloOkForClient(clientId, protocol) {
|
|
24579
24579
|
return { t: "hello-ok", role: "client", clientId, ...protocol === void 0 ? {} : { protocol } };
|
|
24580
24580
|
}
|
|
@@ -24661,7 +24661,7 @@ function encBatchToRelay(sessionId, items) {
|
|
|
24661
24661
|
return { t: "enc-batch", sessionId, items: items.map((item) => ({ ...item })) };
|
|
24662
24662
|
}
|
|
24663
24663
|
|
|
24664
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24664
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
|
|
24665
24665
|
var ENDPOINT_FRAME_NAMES = [
|
|
24666
24666
|
"hello",
|
|
24667
24667
|
"pair-begin",
|
|
@@ -24726,7 +24726,7 @@ var EV_TYPES = [
|
|
|
24726
24726
|
];
|
|
24727
24727
|
var PAYLOAD_TYPE_SET = /* @__PURE__ */ new Set([...CMD_TYPES, ...EV_TYPES]);
|
|
24728
24728
|
|
|
24729
|
-
// node_modules/.pnpm/@dsh-remote+protocol@3.2.
|
|
24729
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.2.10/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
|
|
24730
24730
|
function frameTypeOf(value) {
|
|
24731
24731
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
24732
24732
|
return void 0;
|
|
@@ -26500,7 +26500,7 @@ function registerSignalHandlers(shutdown) {
|
|
|
26500
26500
|
|
|
26501
26501
|
// src/main.ts
|
|
26502
26502
|
function readVersion() {
|
|
26503
|
-
if ("3.2.
|
|
26503
|
+
if ("3.2.11") return "3.2.11";
|
|
26504
26504
|
try {
|
|
26505
26505
|
const pkg = JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8"));
|
|
26506
26506
|
if (typeof pkg.version === "string") return pkg.version;
|