@michengai/dsh-im-connect 1.0.4 → 1.0.5

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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.5 - 2026-10-19
4
+
5
+ - Fix native sidebar tab registry discovery: strictly inspect the current occupant component instead of relying on stale entry references.
6
+ - Clean up own tab contributions immediately when the foreign sidebar host unregisters its native tab registry, and re-attach cleanly upon sidebar change notifications.
7
+
3
8
  ## 1.0.4 - 2026-10-18
4
9
 
5
10
  - Fix file delivery error handling: do not skip `not-regular-file` (e.g. directory paths), ensuring non-regular files report actionable delivery errors while missing deleted files remain silently skipped.
@@ -4,6 +4,11 @@
4
4
 
5
5
  以下记录近期发布的版本。Git 标签与 GitHub Release 现已和这些条目同步;历史条目继续保留原始发布提交链接。
6
6
 
7
+ ## 1.0.5 - 2026-10-19
8
+
9
+ - 修复原生侧边栏协作页签发现机制:严格识别当前展示的组件实例,不再回退 entry 上的残留缓存。
10
+ - 当外部侧栏外壳注销其注册表时立即撤出自身频道页签,并在收到侧栏变更通知后重新安全接入,避免跨外壳残留。
11
+
7
12
  ## 1.0.4 - 2026-10-18
8
13
 
9
14
  - 修复文件投递异常处理:不再将 `not-regular-file`(如目录路径)误判为缺失文件静默跳过,确保非普通文件正常报错提示,同时保持已删除文件静默跳过的正确行为。
package/README.zh-CN.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  **把飞书、Lark、钉钉、企业微信、微信、QQ、Telegram、Discord、Slack 接到本机 DeepSeek Harness**
10
10
 
11
- [English](README.md) · [更新日志](CHANGELOG.zh-CN.md) · [QQ 引用交接](docs/01-当前工作/I022-QQ直接引用接入/00-迭代总览.md) · [Apache-2.0](LICENSE)
11
+ [English](README.md) · [更新日志](CHANGELOG.zh-CN.md) · [QQ 引用交接](docs/01-当前工作/I022-QQ直接引用接入/00-迭代总览.md) · [侧栏协作交接](docs/07-迭代归档/2026/I024-侧栏页签协作与渲染修复/00-迭代总览.md) · [Apache-2.0](LICENSE)
12
12
 
13
13
  [![许可证:Apache-2.0](https://img.shields.io/badge/许可证-Apache--2.0-blue.svg)](LICENSE)
14
14
  [![npm package](https://img.shields.io/npm/v/%40michengai%2Fdsh-im-connect.svg?label=npm%20package)](https://www.npmjs.com/package/@michengai/dsh-im-connect)
package/client.js CHANGED
@@ -3509,7 +3509,9 @@ window.__ModuleLoader__.load({
3509
3509
  }
3510
3510
 
3511
3511
  function findNativeTabRegistry(entry) {
3512
- return entry?.__dshNativeTabs || entry?.component?.__dshNativeTabs || null;
3512
+ const target = entry && (typeof entry === "object" || typeof entry === "function") && "component" in entry ? entry.component : entry;
3513
+ const registry = target?.__dshNativeTabs;
3514
+ return registry?.version === 1 && typeof registry.getTabs === "function" && typeof registry.subscribe === "function" && typeof registry.insert === "function" ? registry : null;
3513
3515
  }
3514
3516
 
3515
3517
  function applyRegistryFilters(state, registry) {
@@ -3988,6 +3990,7 @@ window.__ModuleLoader__.load({
3988
3990
  const occupant = entries.find((item) => item && item.component);
3989
3991
  if (wrappedEntry && (occupant !== wrappedEntry || occupant.component !== ownedWrapper)) unwrap();
3990
3992
  if (!occupant) { clearInsertedTab(); return; }
3993
+ if (insertedTabRegistry && findNativeTabRegistry(occupant) !== insertedTabRegistry) clearInsertedTab();
3991
3994
  if (occupant && (occupant.component.__dshNativeTabHost || occupant.component.__dshAutomationWrapped || findNativeTabRegistry(occupant))) {
3992
3995
  insertChannelTab(occupant);
3993
3996
  return;
package/lib/client.js CHANGED
@@ -3830,7 +3830,9 @@ function observePluginUpdate(options) {
3830
3830
  }
3831
3831
 
3832
3832
  function findNativeTabRegistry(entry) {
3833
- return entry?.__dshNativeTabs || entry?.component?.__dshNativeTabs || null;
3833
+ const target = entry && (typeof entry === "object" || typeof entry === "function") && "component" in entry ? entry.component : entry;
3834
+ const registry = target?.__dshNativeTabs;
3835
+ return registry?.version === 1 && typeof registry.getTabs === "function" && typeof registry.subscribe === "function" && typeof registry.insert === "function" ? registry : null;
3834
3836
  }
3835
3837
 
3836
3838
  function applyRegistryFilters(state, registry) {
@@ -4309,6 +4311,7 @@ function observePluginUpdate(options) {
4309
4311
  const occupant = entries.find((item) => item && item.component);
4310
4312
  if (wrappedEntry && (occupant !== wrappedEntry || occupant.component !== ownedWrapper)) unwrap();
4311
4313
  if (!occupant) { clearInsertedTab(); return; }
4314
+ if (insertedTabRegistry && findNativeTabRegistry(occupant) !== insertedTabRegistry) clearInsertedTab();
4312
4315
  if (occupant && (occupant.component.__dshNativeTabHost || occupant.component.__dshAutomationWrapped || findNativeTabRegistry(occupant))) {
4313
4316
  insertChannelTab(occupant);
4314
4317
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-im-connect",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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",