bothouse-dsh 0.1.53 → 0.1.55

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.
@@ -10,11 +10,12 @@ const NS = "bothouse-dsh-desk";
10
10
  const DICT = {"zh":{"label":"团队工作台"},"en":{"label":"Team desk"}};
11
11
  const BG = "var(--dsw-alias-bg-base)";
12
12
  // Same frame as client-ui-discord EmbedPage: same-origin page, relative to document.baseURI so
13
- // the panel proxy's /dsh/ prefix is kept.
13
+ // the panel proxy's /dsh/ prefix is kept. Same-origin Referer lets the proxy verify
14
+ // a port-less Origin; cross-origin destinations still receive no Referer.
14
15
  function EmbedPage({ path, title }) {
15
16
  const src = new URL(path, document.baseURI).toString();
16
17
  return jsx("div", { style: { boxSizing: "border-box", display: "flex", width: "100%", height: "100%", minHeight: 0, paddingTop: "var(--dsh-frame-top-clearance, 0px)", background: BG },
17
- children: jsx("iframe", { src, title, loading: "lazy", referrerPolicy: "no-referrer", style: { flex: 1, width: "100%", height: "100%", border: 0, background: BG } }) });
18
+ children: jsx("iframe", { src, title, loading: "lazy", referrerPolicy: "same-origin", style: { flex: 1, width: "100%", height: "100%", border: 0, background: BG } }) });
18
19
  }
19
20
  function Icon({ size }) { return jsx(primitives.IconChecklistOutlineRegular, { size }); }
20
21
  exports.inject = ["slots", "locale", "layout"];
@@ -10,11 +10,12 @@ const NS = "bothouse-dsh-devices";
10
10
  const DICT = {"zh":{"label":"其他电脑"},"en":{"label":"Other computers"}};
11
11
  const BG = "var(--dsw-alias-bg-base)";
12
12
  // Same frame as client-ui-discord EmbedPage: same-origin page, relative to document.baseURI so
13
- // the panel proxy's /dsh/ prefix is kept.
13
+ // the panel proxy's /dsh/ prefix is kept. Same-origin Referer lets the proxy verify
14
+ // a port-less Origin; cross-origin destinations still receive no Referer.
14
15
  function EmbedPage({ path, title }) {
15
16
  const src = new URL(path, document.baseURI).toString();
16
17
  return jsx("div", { style: { boxSizing: "border-box", display: "flex", width: "100%", height: "100%", minHeight: 0, paddingTop: "var(--dsh-frame-top-clearance, 0px)", background: BG },
17
- children: jsx("iframe", { src, title, loading: "lazy", referrerPolicy: "no-referrer", style: { flex: 1, width: "100%", height: "100%", border: 0, background: BG } }) });
18
+ children: jsx("iframe", { src, title, loading: "lazy", referrerPolicy: "same-origin", style: { flex: 1, width: "100%", height: "100%", border: 0, background: BG } }) });
18
19
  }
19
20
  function Icon({ size }) { return jsx(primitives.IconLinkOutlineRegular, { size }); }
20
21
  exports.inject = ["slots", "locale", "layout"];
@@ -10,11 +10,12 @@ const NS = "bothouse-dsh-panel";
10
10
  const DICT = {"zh":{"label":"bothouse 面板","galaxy":"Wiki 星河"},"en":{"label":"bothouse panel","galaxy":"Wiki galaxy"}};
11
11
  const BG = "var(--dsw-alias-bg-base)";
12
12
  // Same frame as client-ui-discord EmbedPage: same-origin page, relative to document.baseURI so
13
- // the panel proxy's /dsh/ prefix is kept.
13
+ // the panel proxy's /dsh/ prefix is kept. Same-origin Referer lets the proxy verify
14
+ // a port-less Origin; cross-origin destinations still receive no Referer.
14
15
  function EmbedPage({ path, title }) {
15
16
  const src = new URL(path, document.baseURI).toString();
16
17
  return jsx("div", { style: { boxSizing: "border-box", display: "flex", width: "100%", height: "100%", minHeight: 0, paddingTop: "var(--dsh-frame-top-clearance, 0px)", background: BG },
17
- children: jsx("iframe", { src, title, loading: "lazy", referrerPolicy: "no-referrer", style: { flex: 1, width: "100%", height: "100%", border: 0, background: BG } }) });
18
+ children: jsx("iframe", { src, title, loading: "lazy", referrerPolicy: "same-origin", style: { flex: 1, width: "100%", height: "100%", border: 0, background: BG } }) });
18
19
  }
19
20
  function Icon({ size }) { return jsx(primitives.IconGaugeOutlineRegular, { size }); }
20
21
  exports.inject = ["slots", "locale", "layout"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bothouse-dsh",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "description": "BotHouse channels for DeepSeek Harness: Discord-style rooms where DSH models and local CLIs (Claude Code, Codex, Gemini) are members",
5
5
  "type": "module",
6
6
  "main": "./collab/plugin.mjs",