dsh-interconnect 0.11.22 → 0.11.24

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.
@@ -834,7 +834,6 @@ function assertNever(value) {
834
834
  throw new Error(`interconnect: unhandled variant ${JSON.stringify(value)}`);
835
835
  }
836
836
  var INTERCONNECT_TOKEN_REF = "DSH_INTERCONNECT_TOKEN";
837
- var PLUGIN_SOURCE = "dsh-interconnect";
838
837
  var MAX_LINK_FRAME_BYTES = 1024 * 1024;
839
838
  var DEFAULT_INSTANCE_ID = "dsh";
840
839
  var DEFAULT_REQUEST_TIMEOUT_MS = 1e4;
@@ -1443,8 +1442,7 @@ var InterconnectService = class extends Service {
1443
1442
  })();
1444
1443
  const message = createUserMessage({
1445
1444
  source: {
1446
- kind: "plugin",
1447
- plugin: PLUGIN_SOURCE,
1445
+ kind: "plugin:dsh-interconnect",
1448
1446
  form: "notice",
1449
1447
  summary: boundContextSummary(
1450
1448
  sender === void 0 ? `interconnect handoff delivered on instance ${this.instanceId}` : `interconnect handoff from ${sender.instanceId} (session ${sender.sessionId}) delivered on instance ${this.instanceId}`
@@ -1738,7 +1736,7 @@ function timingSafeEqual(a, b) {
1738
1736
  return constantTimeEqual(createHash("sha256").update(a, "utf8").digest(), createHash("sha256").update(b, "utf8").digest());
1739
1737
  }
1740
1738
  function linkUrl(origin) {
1741
- const url = new URL("/interconnect/link", origin);
1739
+ const url = new URL(LINK_CHANNEL, origin);
1742
1740
  if (url.protocol === "http:") url.protocol = "ws:";
1743
1741
  else if (url.protocol === "https:") url.protocol = "wss:";
1744
1742
  if (url.protocol !== "ws:" && url.protocol !== "wss:") {