@michengai/dsh-im-connect 0.1.67 → 0.1.68

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/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ Recent published versions are listed below. Git tags and GitHub Releases now mir
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 0.1.68 - 2026-10-08
10
+
11
+ - The channel sidebar keeps its layout when another plugin reloads. Its runtime styles now belong to this plugin.
12
+ - Restart DSH and refresh the page after upgrading.
13
+
9
14
  ## 0.1.67 - 2026-10-08
10
15
 
11
16
  - Creating a session from the channels tab returns the sidebar to Tasks, including the host New session button. Channels cannot hold a newly created task, and a refresh no longer leaves that task hidden on Channels (#23).
@@ -6,6 +6,11 @@
6
6
 
7
7
  ## 未发布
8
8
 
9
+ ## 0.1.68 - 2026-10-08
10
+
11
+ - 其它插件重载后,频道侧栏不再丢失排版。运行期样式表现在归属本插件。
12
+ - 升级后请重启 DSH 并刷新页面。
13
+
9
14
  ## 0.1.67 - 2026-10-08
10
15
 
11
16
  - 在频道页签里新建会话后,侧栏会回到「任务」,包括宿主的「新会话」按钮。频道里不能放新建的普通会话;刷新后也不会再把这条任务藏在「频道」里(#23)。
package/client.js CHANGED
@@ -568,8 +568,12 @@ window.__ModuleLoader__.load({
568
568
 
569
569
  let styleEl = null;
570
570
  const ensureStyle = () => {
571
- if (styleEl && styleEl.isConnected) return;
571
+ if (styleEl && styleEl.isConnected) {
572
+ styleEl.setAttribute("data-plugin", "@michengai/dsh-im-connect");
573
+ return;
574
+ }
572
575
  styleEl = document.createElement("style");
576
+ styleEl.setAttribute("data-plugin", "@michengai/dsh-im-connect");
573
577
  styleEl.textContent = CSS + TITLE_LINK_CSS;
574
578
  document.head.appendChild(styleEl);
575
579
  };
package/lib/client.js CHANGED
@@ -120,10 +120,16 @@ function createUpdateFlow(request, initial, onPayload) {
120
120
  };
121
121
  }
122
122
  function ensurePluginUpdateStyle() {
123
- if (document.getElementById(STYLE_ID) !== null) return;
123
+ const existing = document.getElementById(STYLE_ID);
124
+ if (existing !== null) {
125
+ // 这张表的 id 被多个插件共用。已有归属时不改写,避免本插件重载删掉别人的表。
126
+ if (existing.getAttribute("data-plugin") === null) existing.setAttribute("data-plugin", "@michengai/dsh-im-connect");
127
+ return;
128
+ }
124
129
  const style = document.createElement("style");
125
130
  style.id = STYLE_ID;
126
131
  style.textContent = PLUGIN_UPDATE_CSS;
132
+ style.setAttribute("data-plugin", "@michengai/dsh-im-connect");
127
133
  (document.head ?? document.documentElement).append(style);
128
134
  }
129
135
  function validPayload(value) {
@@ -1084,8 +1090,12 @@ react-is/cjs/react-is.production.js:
1084
1090
 
1085
1091
  let styleEl = null;
1086
1092
  const ensureStyle = () => {
1087
- if (styleEl && styleEl.isConnected) return;
1093
+ if (styleEl && styleEl.isConnected) {
1094
+ styleEl.setAttribute("data-plugin", "@michengai/dsh-im-connect");
1095
+ return;
1096
+ }
1088
1097
  styleEl = document.createElement("style");
1098
+ styleEl.setAttribute("data-plugin", "@michengai/dsh-im-connect");
1089
1099
  styleEl.textContent = CSS + TITLE_LINK_CSS;
1090
1100
  document.head.appendChild(styleEl);
1091
1101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-im-connect",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "DSH IM Connect — 将主流即时通讯平台接入本机 DeepSeek Harness · Connect major messaging platforms to local DeepSeek Harness agents",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.22.0",
@@ -119,10 +119,16 @@ function createUpdateFlow(request, initial, onPayload) {
119
119
  };
120
120
  }
121
121
  function ensureStyle() {
122
- if (document.getElementById(STYLE_ID) !== null) return;
122
+ const existing = document.getElementById(STYLE_ID);
123
+ if (existing !== null) {
124
+ // 这张表的 id 被多个插件共用。已有归属时不改写,避免本插件重载删掉别人的表。
125
+ if (existing.getAttribute("data-plugin") === null) existing.setAttribute("data-plugin", "@michengai/dsh-im-connect");
126
+ return;
127
+ }
123
128
  const style = document.createElement("style");
124
129
  style.id = STYLE_ID;
125
130
  style.textContent = CSS;
131
+ style.setAttribute("data-plugin", "@michengai/dsh-im-connect");
126
132
  (document.head ?? document.documentElement).append(style);
127
133
  }
128
134
  function validPayload(value) {