@dsh-remote/relay 3.2.6 → 3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bundle/main.js +11 -11
  2. package/package.json +1 -1
@@ -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.5/node_modules/@dsh-remote/protocol/dist/src/wire/limits.js
23446
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/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.5/node_modules/@dsh-remote/protocol/dist/src/wire/frames.js
23455
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/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);
@@ -23965,7 +23965,7 @@ var import_subprotocol = __toESM(require_subprotocol(), 1);
23965
23965
  var import_websocket = __toESM(require_websocket(), 1);
23966
23966
  var import_websocket_server = __toESM(require_websocket_server(), 1);
23967
23967
 
23968
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
23968
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
23969
23969
  import { randomBytes, randomUUID } from "node:crypto";
23970
23970
  var CONVERSATION_ID_PREFIX = "c_";
23971
23971
  function newConversationId() {
@@ -23975,7 +23975,7 @@ function newHostId() {
23975
23975
  return randomBytes(4).toString("hex");
23976
23976
  }
23977
23977
 
23978
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
23978
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
23979
23979
  function negotiateProtocol(peerProtocol, own2 = PROTOCOL_VERSION) {
23980
23980
  if (peerProtocol === void 0 || peerProtocol === null) {
23981
23981
  return {
@@ -24095,16 +24095,16 @@ function createMpCodeIssuer(options) {
24095
24095
  };
24096
24096
  }
24097
24097
 
24098
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
24098
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
24099
24099
  var WAIT_HINTABLE = /* @__PURE__ */ new Set(["rate_limited", "pair_table_full"]);
24100
24100
  function wantsRetryAfter(code) {
24101
24101
  return typeof code === "string" && WAIT_HINTABLE.has(code);
24102
24102
  }
24103
24103
 
24104
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
24104
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
24105
24105
  var SLEEP_BACKENDS = ["caffeinate", "systemd-inhibit", "unsupported"];
24106
24106
 
24107
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
24107
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
24108
24108
  var SESSION_STATES = [
24109
24109
  "idle",
24110
24110
  "running",
@@ -24544,7 +24544,7 @@ var PAYLOAD_TYPES = {
24544
24544
  evSessionHistory: "ev.session_history"
24545
24545
  };
24546
24546
 
24547
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
24547
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
24548
24548
  function helloOkForClient(clientId, protocol) {
24549
24549
  return { t: "hello-ok", role: "client", clientId, ...protocol === void 0 ? {} : { protocol } };
24550
24550
  }
@@ -24631,7 +24631,7 @@ function encBatchToRelay(sessionId, items) {
24631
24631
  return { t: "enc-batch", sessionId, items: items.map((item) => ({ ...item })) };
24632
24632
  }
24633
24633
 
24634
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
24634
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
24635
24635
  var ENDPOINT_FRAME_NAMES = [
24636
24636
  "hello",
24637
24637
  "pair-begin",
@@ -24696,7 +24696,7 @@ var EV_TYPES = [
24696
24696
  ];
24697
24697
  var PAYLOAD_TYPE_SET = /* @__PURE__ */ new Set([...CMD_TYPES, ...EV_TYPES]);
24698
24698
 
24699
- // node_modules/.pnpm/@dsh-remote+protocol@3.2.5/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
24699
+ // node_modules/.pnpm/@dsh-remote+protocol@3.2.7/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
24700
24700
  function frameTypeOf(value) {
24701
24701
  if (typeof value !== "object" || value === null || Array.isArray(value))
24702
24702
  return void 0;
@@ -26464,7 +26464,7 @@ function registerSignalHandlers(shutdown) {
26464
26464
 
26465
26465
  // src/main.ts
26466
26466
  function readVersion() {
26467
- if ("3.2.6") return "3.2.6";
26467
+ if ("3.2.8") return "3.2.8";
26468
26468
  try {
26469
26469
  const pkg = JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8"));
26470
26470
  if (typeof pkg.version === "string") return pkg.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-remote/relay",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "DSH Remote Control 的零知识 WebSocket 中继:只做路由,不碰载荷明文。可自托管的单文件产物。",
5
5
  "type": "module",
6
6
  "license": "MIT",