@michengai/dsh-im-connect 0.1.54 → 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.
- package/CHANGELOG.md +6 -0
- package/CHANGELOG.zh-CN.md +6 -0
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/client.js +54 -6
- package/lib/client.js +54 -6
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Recent published versions are listed below. Git tags and GitHub Releases now mirror these entries; historical sections retain links to their original release commits.
|
|
6
6
|
|
|
7
|
+
## 0.1.55 - 2026-09-25
|
|
8
|
+
|
|
9
|
+
- Support DSH 0.1.7-rc.2, and keep 0.1.7-rc.1, 0.1.2-rc.1, and the 0.1.5 release candidates working.
|
|
10
|
+
- Fix the left session list going blank after installing the plugin. On hosts without the 0.1.7 sidebar interfaces (0.1.2, 0.1.5), the plugin no longer asks the host for sidebar slots it does not declare, and if the plugin's own sidebar layer fails it falls back to the host's native session list instead of showing nothing.
|
|
11
|
+
- Restart DSH and refresh the page after upgrading.
|
|
12
|
+
|
|
7
13
|
## 0.1.54 - 2026-09-24
|
|
8
14
|
|
|
9
15
|
- Support DSH 0.1.7-rc.1, and keep 0.1.2-rc.1 and the 0.1.5 release candidates. The 0.1.6 and 0.1.7 preview builds are no longer supported; move to 0.1.7-rc.1.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
以下记录近期发布的版本。Git 标签与 GitHub Release 现已和这些条目同步;历史条目继续保留原始发布提交链接。
|
|
6
6
|
|
|
7
|
+
## 0.1.55 - 2026-09-25
|
|
8
|
+
|
|
9
|
+
- 支持 DSH 0.1.7-rc.2,并继续支持 0.1.7-rc.1、0.1.2-rc.1 和 0.1.5 的候选版。
|
|
10
|
+
- 修复安装插件后左侧会话记录可能整块不显示的问题:在 0.1.2、0.1.5 这类没有 0.1.7 侧栏接口的宿主上,插件不再向宿主索取它没有声明的侧栏槽位;插件自己的侧栏层万一出错,也会回落到宿主原生的会话列表,不再让整块列表变成空白。
|
|
11
|
+
- 升级后请重启 DSH 并刷新页面。
|
|
12
|
+
|
|
7
13
|
## 0.1.54 - 2026-09-24
|
|
8
14
|
|
|
9
15
|
- 支持 DSH 0.1.7-rc.1,并继续支持 0.1.2-rc.1 和 0.1.5 的候选版。0.1.6 和 0.1.7 的预览版不再支持,请改用 0.1.7-rc.1。
|
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ The receive paths cover WeChat, WeCom, DingTalk, Feishu, Lark, QQ, and Telegram.
|
|
|
89
89
|
|
|
90
90
|
WeChat, WeCom, DingTalk, Feishu, Lark, QQ and Telegram accept ordinary files through Chat’s upload service for the current session. Send PDFs, documents or spreadsheets for the assistant to process. Format support follows web Chat’s models, tools and file capabilities; uploading does not guarantee that every format can be understood directly.
|
|
91
91
|
|
|
92
|
-
- Requires the file-upload service in DSH `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, or `0.1.7-rc.
|
|
92
|
+
- Requires the file-upload service in DSH `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, or `0.1.7-rc.2`. On `0.1.2-rc.1`, file input asks you to upgrade; existing text and image support is unchanged.
|
|
93
93
|
- Up to 4 ordinary files per message, totaling 20 MiB. Channel download limits also apply.
|
|
94
94
|
- Files become standard Chat attachments and are submitted with session-specific receipts, rather than local-path text.
|
|
95
95
|
- Private admission and group mention rules remain in force. File captions such as `/new` or “allow” are content, not commands or approval responses.
|
|
@@ -193,7 +193,7 @@ For a desktop workbench, download [DSH Codex Desktop](https://github.com/Micheng
|
|
|
193
193
|
## Prerequisites
|
|
194
194
|
|
|
195
195
|
- A working DeepSeek Harness Web installation with `dsh` available in PowerShell.
|
|
196
|
-
- The current source supports DSH `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, and `0.1.7-rc.
|
|
196
|
+
- The current source supports DSH `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, and `0.1.7-rc.2`; `0.1.7-rc.2` is recommended. The `0.1.6` and `0.1.7` preview builds are no longer supported; move to `0.1.7-rc.2`. The older `0.1.2` and `0.1.5` builds stay available because they are published release candidates. On those two lines, grouping the channel list by workspace tree can show a single ungrouped list, and showing only archived sessions can be empty. DSH `0.1.0-rc.8` and `0.1.1-rc.2` lack the authentication and session-control interfaces this plugin requires; upgrade DSH first.
|
|
197
197
|
- Examples use the `web` profile; replace it with the target profile.
|
|
198
198
|
- Source installation and development require Node.js 22+. npm installation does not require running `npm install` in an arbitrary directory.
|
|
199
199
|
- After install, restart `dsh web` and hard-refresh the browser before opening **Settings → IM Assistant**.
|
package/README.zh-CN.md
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
微信、企业微信、钉钉、飞书、Lark、QQ、Telegram 可接收普通文件,并通过 Chat 的上传服务交给当前会话。可以发送 PDF、文档、表格等文件,再让助手读取或处理;能否解析具体格式与网页 Chat 的模型、工具和文件能力一致,不承诺每种格式都能直接理解。
|
|
93
93
|
|
|
94
|
-
- 需要 DSH `0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3` 或 `0.1.7-rc.
|
|
94
|
+
- 需要 DSH `0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1` 或 `0.1.7-rc.2` 的文件上传服务;`0.1.2-rc.1` 明确提示升级,文字、图片等既有能力不变。
|
|
95
95
|
- 单条消息最多 4 个普通文件,累计最多 20 MiB,还受渠道下载限制约束。
|
|
96
96
|
- 文件先保存为 Chat 标准附件,通过当前会话专属的凭据提交;不把本地路径文字当作文件输入。
|
|
97
97
|
- 保留私聊准入与群聊提及规则;文件说明中的 `/new` 或“批准”属于普通内容,不执行命令或审批。
|
|
@@ -193,7 +193,7 @@ IM 消息发起的处理结束后,会在正文和文件投递完成后给出
|
|
|
193
193
|
## 前置条件
|
|
194
194
|
|
|
195
195
|
- 已可正常运行 DeepSeek Harness Web,且可在 PowerShell 中使用 `dsh`。
|
|
196
|
-
- 当前源码支持 DSH `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1
|
|
196
|
+
- 当前源码支持 DSH `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1`、`0.1.7-rc.2`,推荐 `0.1.7-rc.2`。`0.1.6` 与 `0.1.7` 的预览版不再支持,请改用 `0.1.7-rc.2`。更早的 `0.1.2` 和 `0.1.5` 是已经发布的候选版,所以继续可用。在这两版上,频道列表按工作区树查看时可能只有一个未分组,只看已归档时列表可能是空的。`0.1.0-rc.8`、`0.1.1-rc.2` 缺少本插件需要的认证与会话控制接口,请先升级 DSH。
|
|
197
197
|
- 以下示例使用 `web` profile;请替换为实际目标 profile。
|
|
198
198
|
- 从源码安装或二次开发需要 Node.js 22+;仅从 npm 安装无需在任意目录执行 `npm install`。
|
|
199
199
|
- 安装后必须重启 `dsh web`,并在浏览器硬刷新,才能看到「设置 → IM助理」。
|
package/client.js
CHANGED
|
@@ -31,6 +31,25 @@ window.__ModuleLoader__.load({
|
|
|
31
31
|
function hostMenuRendersChildren() {
|
|
32
32
|
return typeof primitives.IconEllipsisOutlineRegular === "function";
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* 宿主 renderer 对「调用本 entry 未声明的子槽位」是直接抛 SlotOwnershipError 的,抛点在调用瞬间。
|
|
36
|
+
* sidebar.workspaces.session.menu.item 和 row.action 都是 0.1.7 才声明的子槽位,旧宿主
|
|
37
|
+
* (0.1.2 / 0.1.5)没有:一旦抛到宿主,宿主的槽位错误边界只会给这块画一个空的 crash div,
|
|
38
|
+
* 整块会话列表跟着消失(Issue #13)。这里统一兜住,失败只当该槽位没有内容。
|
|
39
|
+
*/
|
|
40
|
+
const skippedHostSlotKeys = new Set();
|
|
41
|
+
function renderHostSlot(renderSlot, key, slotProps, options) {
|
|
42
|
+
if (typeof renderSlot !== "function") return undefined;
|
|
43
|
+
try {
|
|
44
|
+
return renderSlot(key, slotProps, options);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
if (!skippedHostSlotKeys.has(key)) {
|
|
47
|
+
skippedHostSlotKeys.add(key);
|
|
48
|
+
console.warn("[dsh-im-connect] 宿主未声明槽位 " + key + ",已跳过该槽位", error);
|
|
49
|
+
}
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
34
53
|
const IconListPenOutline16 = pickHostIcon("IconListPenOutlineRegular", "IconListPenOutline16");
|
|
35
54
|
const IconEditOutline16 = pickHostIcon("IconEditOutlineRegular", "IconEditOutline16");
|
|
36
55
|
const IconBranchOutline16 = pickHostIcon("IconBranchOutlineRegular", "IconBranchOutline16");
|
|
@@ -2057,12 +2076,14 @@ window.__ModuleLoader__.load({
|
|
|
2057
2076
|
}
|
|
2058
2077
|
const displayTitle = String(hoverTitle || title).trim() || title;
|
|
2059
2078
|
// 0.1.7 的 Menu 渲染 children。不请求 pin,频道会话不提供置顶。更早版本不渲染 children,仍用下面的 items。
|
|
2060
|
-
const
|
|
2061
|
-
? ["rename", "fork", "archive", "archive-manager.delete-session"].map((only) => renderSlot
|
|
2079
|
+
const menuSlotItems = hostMenuRendersChildren()
|
|
2080
|
+
? ["rename", "fork", "archive", "archive-manager.delete-session"].map((only) => renderHostSlot(renderSlot, "sidebar.workspaces.session.menu.item", {
|
|
2062
2081
|
sessionId: sess.sessionId,
|
|
2063
2082
|
displayTitle,
|
|
2064
2083
|
}, { hookContext: [menu, (open) => onMenuChange(!!open)], only }))
|
|
2065
2084
|
: undefined;
|
|
2085
|
+
// 宿主槽位被跳过时不能留下一个空菜单,退回本地 items。
|
|
2086
|
+
const menuSlot = menuSlotItems && menuSlotItems.some((node) => node != null) ? menuSlotItems : undefined;
|
|
2066
2087
|
const menuItems = menuSlot !== undefined ? [] : (archived
|
|
2067
2088
|
? [
|
|
2068
2089
|
{ id: "unarchive", label: t("rail.unarchive"), icon: h(IconArchiveOutline20, { size: 16 }) },
|
|
@@ -2135,7 +2156,7 @@ window.__ModuleLoader__.load({
|
|
|
2135
2156
|
onClick: (e) => { e.stopPropagation(); hideHover(); onMenuChange(!menu); },
|
|
2136
2157
|
}, h(IconEllipsisOutline16, { size: 16 })),
|
|
2137
2158
|
}, menuSlot),
|
|
2138
|
-
renderSlot
|
|
2159
|
+
renderHostSlot(renderSlot, "sidebar.workspaces.session.row.action", { sessionId: sess.sessionId, displayTitle }, { only: "archive" }),
|
|
2139
2160
|
),
|
|
2140
2161
|
!useOfficialHover && hoverOpen && !menu && native && typeof document !== "undefined" && ReactDOM.createPortal(h(SessionHoverCard, {
|
|
2141
2162
|
title: hoverTitle,
|
|
@@ -2785,6 +2806,32 @@ window.__ModuleLoader__.load({
|
|
|
2785
2806
|
return false;
|
|
2786
2807
|
}
|
|
2787
2808
|
|
|
2809
|
+
/**
|
|
2810
|
+
* 侧栏包装兜底(Issue #13)。插件是用自己的一层替换宿主 sidebar.workspaces 的官方会话列表组件的:
|
|
2811
|
+
* 这层只要渲染失败,宿主的槽位错误边界就给这块画一个空的 crash div ——「左侧会话记录不显示」。
|
|
2812
|
+
* 这里接住错误,直接回落到宿主原本的官方组件(用宿主自己传进来的 props),
|
|
2813
|
+
* 宁可少一个频道页签,也不能让会话列表整个消失。
|
|
2814
|
+
*/
|
|
2815
|
+
class ImSidebarFallbackBoundary extends React.Component {
|
|
2816
|
+
constructor(props) {
|
|
2817
|
+
super(props);
|
|
2818
|
+
this.state = { failed: false };
|
|
2819
|
+
}
|
|
2820
|
+
static getDerivedStateFromError() {
|
|
2821
|
+
return { failed: true };
|
|
2822
|
+
}
|
|
2823
|
+
componentDidCatch(error) {
|
|
2824
|
+
console.warn("[dsh-im-connect] 侧栏包装渲染失败,已回落到宿主原生会话列表", error);
|
|
2825
|
+
}
|
|
2826
|
+
render() {
|
|
2827
|
+
if (this.state.failed) {
|
|
2828
|
+
const Official = this.props.officialTree;
|
|
2829
|
+
return Official ? h(Official, this.props.hostProps) : null;
|
|
2830
|
+
}
|
|
2831
|
+
return this.props.children;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2788
2835
|
function pickOfficialWorkspaces(ctx) {
|
|
2789
2836
|
const read = ctx.slots.entriesOfSlot || ctx.slots.entries;
|
|
2790
2837
|
const entries = (read && read.call(ctx.slots, "sidebar.workspaces")) || [];
|
|
@@ -2930,11 +2977,11 @@ window.__ModuleLoader__.load({
|
|
|
2930
2977
|
label: t("rail.channels"),
|
|
2931
2978
|
order: 20,
|
|
2932
2979
|
matchSession: isChannelSession,
|
|
2933
|
-
render: (props) => h(LocalizedChannelRail, Object.assign({}, props, {
|
|
2980
|
+
render: (props) => h(ImSidebarFallbackBoundary, { officialTree: null, hostProps: props }, h(LocalizedChannelRail, Object.assign({}, props, {
|
|
2934
2981
|
skin: "native",
|
|
2935
2982
|
archiveSession: props.archiveSession || ((id, options) => archiveHostSession(ctx, id, options)),
|
|
2936
2983
|
unarchiveSession: props.unarchiveSession || ((id) => unarchiveHostSession(ctx, id)),
|
|
2937
|
-
})),
|
|
2984
|
+
}))),
|
|
2938
2985
|
});
|
|
2939
2986
|
};
|
|
2940
2987
|
refreshInsertedTab();
|
|
@@ -2970,7 +3017,8 @@ window.__ModuleLoader__.load({
|
|
|
2970
3017
|
const tree = originalComp;
|
|
2971
3018
|
attachNativeTabRegistry(official, registry);
|
|
2972
3019
|
function ImNativeWorkspaceShell(innerProps) {
|
|
2973
|
-
return h(
|
|
3020
|
+
return h(ImSidebarFallbackBoundary, { officialTree: tree, hostProps: innerProps },
|
|
3021
|
+
h(LocalizedSessionSwitcher, Object.assign({}, innerProps, { officialTree: tree, nativeTabs: registry })));
|
|
2974
3022
|
}
|
|
2975
3023
|
ImNativeWorkspaceShell.displayName = "ImNativeWorkspaceShell";
|
|
2976
3024
|
ImNativeWorkspaceShell.__imConnectWrapped = true;
|
package/lib/client.js
CHANGED
|
@@ -541,6 +541,25 @@ react-is/cjs/react-is.production.js:
|
|
|
541
541
|
function hostMenuRendersChildren() {
|
|
542
542
|
return typeof primitives.IconEllipsisOutlineRegular === "function";
|
|
543
543
|
}
|
|
544
|
+
/**
|
|
545
|
+
* 宿主 renderer 对「调用本 entry 未声明的子槽位」是直接抛 SlotOwnershipError 的,抛点在调用瞬间。
|
|
546
|
+
* sidebar.workspaces.session.menu.item 和 row.action 都是 0.1.7 才声明的子槽位,旧宿主
|
|
547
|
+
* (0.1.2 / 0.1.5)没有:一旦抛到宿主,宿主的槽位错误边界只会给这块画一个空的 crash div,
|
|
548
|
+
* 整块会话列表跟着消失(Issue #13)。这里统一兜住,失败只当该槽位没有内容。
|
|
549
|
+
*/
|
|
550
|
+
const skippedHostSlotKeys = new Set();
|
|
551
|
+
function renderHostSlot(renderSlot, key, slotProps, options) {
|
|
552
|
+
if (typeof renderSlot !== "function") return undefined;
|
|
553
|
+
try {
|
|
554
|
+
return renderSlot(key, slotProps, options);
|
|
555
|
+
} catch (error) {
|
|
556
|
+
if (!skippedHostSlotKeys.has(key)) {
|
|
557
|
+
skippedHostSlotKeys.add(key);
|
|
558
|
+
console.warn("[dsh-im-connect] 宿主未声明槽位 " + key + ",已跳过该槽位", error);
|
|
559
|
+
}
|
|
560
|
+
return undefined;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
544
563
|
const IconListPenOutline16 = pickHostIcon("IconListPenOutlineRegular", "IconListPenOutline16");
|
|
545
564
|
const IconEditOutline16 = pickHostIcon("IconEditOutlineRegular", "IconEditOutline16");
|
|
546
565
|
const IconBranchOutline16 = pickHostIcon("IconBranchOutlineRegular", "IconBranchOutline16");
|
|
@@ -2567,12 +2586,14 @@ react-is/cjs/react-is.production.js:
|
|
|
2567
2586
|
}
|
|
2568
2587
|
const displayTitle = String(hoverTitle || title).trim() || title;
|
|
2569
2588
|
// 0.1.7 的 Menu 渲染 children。不请求 pin,频道会话不提供置顶。更早版本不渲染 children,仍用下面的 items。
|
|
2570
|
-
const
|
|
2571
|
-
? ["rename", "fork", "archive", "archive-manager.delete-session"].map((only) => renderSlot
|
|
2589
|
+
const menuSlotItems = hostMenuRendersChildren()
|
|
2590
|
+
? ["rename", "fork", "archive", "archive-manager.delete-session"].map((only) => renderHostSlot(renderSlot, "sidebar.workspaces.session.menu.item", {
|
|
2572
2591
|
sessionId: sess.sessionId,
|
|
2573
2592
|
displayTitle,
|
|
2574
2593
|
}, { hookContext: [menu, (open) => onMenuChange(!!open)], only }))
|
|
2575
2594
|
: undefined;
|
|
2595
|
+
// 宿主槽位被跳过时不能留下一个空菜单,退回本地 items。
|
|
2596
|
+
const menuSlot = menuSlotItems && menuSlotItems.some((node) => node != null) ? menuSlotItems : undefined;
|
|
2576
2597
|
const menuItems = menuSlot !== undefined ? [] : (archived
|
|
2577
2598
|
? [
|
|
2578
2599
|
{ id: "unarchive", label: t("rail.unarchive"), icon: h(IconArchiveOutline20, { size: 16 }) },
|
|
@@ -2645,7 +2666,7 @@ react-is/cjs/react-is.production.js:
|
|
|
2645
2666
|
onClick: (e) => { e.stopPropagation(); hideHover(); onMenuChange(!menu); },
|
|
2646
2667
|
}, h(IconEllipsisOutline16, { size: 16 })),
|
|
2647
2668
|
}, menuSlot),
|
|
2648
|
-
renderSlot
|
|
2669
|
+
renderHostSlot(renderSlot, "sidebar.workspaces.session.row.action", { sessionId: sess.sessionId, displayTitle }, { only: "archive" }),
|
|
2649
2670
|
),
|
|
2650
2671
|
!useOfficialHover && hoverOpen && !menu && native && typeof document !== "undefined" && ReactDOM.createPortal(h(SessionHoverCard, {
|
|
2651
2672
|
title: hoverTitle,
|
|
@@ -3295,6 +3316,32 @@ react-is/cjs/react-is.production.js:
|
|
|
3295
3316
|
return false;
|
|
3296
3317
|
}
|
|
3297
3318
|
|
|
3319
|
+
/**
|
|
3320
|
+
* 侧栏包装兜底(Issue #13)。插件是用自己的一层替换宿主 sidebar.workspaces 的官方会话列表组件的:
|
|
3321
|
+
* 这层只要渲染失败,宿主的槽位错误边界就给这块画一个空的 crash div ——「左侧会话记录不显示」。
|
|
3322
|
+
* 这里接住错误,直接回落到宿主原本的官方组件(用宿主自己传进来的 props),
|
|
3323
|
+
* 宁可少一个频道页签,也不能让会话列表整个消失。
|
|
3324
|
+
*/
|
|
3325
|
+
class ImSidebarFallbackBoundary extends React.Component {
|
|
3326
|
+
constructor(props) {
|
|
3327
|
+
super(props);
|
|
3328
|
+
this.state = { failed: false };
|
|
3329
|
+
}
|
|
3330
|
+
static getDerivedStateFromError() {
|
|
3331
|
+
return { failed: true };
|
|
3332
|
+
}
|
|
3333
|
+
componentDidCatch(error) {
|
|
3334
|
+
console.warn("[dsh-im-connect] 侧栏包装渲染失败,已回落到宿主原生会话列表", error);
|
|
3335
|
+
}
|
|
3336
|
+
render() {
|
|
3337
|
+
if (this.state.failed) {
|
|
3338
|
+
const Official = this.props.officialTree;
|
|
3339
|
+
return Official ? h(Official, this.props.hostProps) : null;
|
|
3340
|
+
}
|
|
3341
|
+
return this.props.children;
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3298
3345
|
function pickOfficialWorkspaces(ctx) {
|
|
3299
3346
|
const read = ctx.slots.entriesOfSlot || ctx.slots.entries;
|
|
3300
3347
|
const entries = (read && read.call(ctx.slots, "sidebar.workspaces")) || [];
|
|
@@ -3440,11 +3487,11 @@ react-is/cjs/react-is.production.js:
|
|
|
3440
3487
|
label: t("rail.channels"),
|
|
3441
3488
|
order: 20,
|
|
3442
3489
|
matchSession: isChannelSession,
|
|
3443
|
-
render: (props) => h(LocalizedChannelRail, Object.assign({}, props, {
|
|
3490
|
+
render: (props) => h(ImSidebarFallbackBoundary, { officialTree: null, hostProps: props }, h(LocalizedChannelRail, Object.assign({}, props, {
|
|
3444
3491
|
skin: "native",
|
|
3445
3492
|
archiveSession: props.archiveSession || ((id, options) => archiveHostSession(ctx, id, options)),
|
|
3446
3493
|
unarchiveSession: props.unarchiveSession || ((id) => unarchiveHostSession(ctx, id)),
|
|
3447
|
-
})),
|
|
3494
|
+
}))),
|
|
3448
3495
|
});
|
|
3449
3496
|
};
|
|
3450
3497
|
refreshInsertedTab();
|
|
@@ -3480,7 +3527,8 @@ react-is/cjs/react-is.production.js:
|
|
|
3480
3527
|
const tree = originalComp;
|
|
3481
3528
|
attachNativeTabRegistry(official, registry);
|
|
3482
3529
|
function ImNativeWorkspaceShell(innerProps) {
|
|
3483
|
-
return h(
|
|
3530
|
+
return h(ImSidebarFallbackBoundary, { officialTree: tree, hostProps: innerProps },
|
|
3531
|
+
h(LocalizedSessionSwitcher, Object.assign({}, innerProps, { officialTree: tree, nativeTabs: registry })));
|
|
3484
3532
|
}
|
|
3485
3533
|
ImNativeWorkspaceShell.displayName = "ImNativeWorkspaceShell";
|
|
3486
3534
|
ImNativeWorkspaceShell.__imConnectWrapped = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-im-connect",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
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",
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
56
|
-
"@deepseek-ai/dsh-agent": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
57
|
-
"@deepseek-ai/dsh-client-locale": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
58
|
-
"@deepseek-ai/dsh-client-runtime": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
62
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-agent": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
63
63
|
"react": "^18.2.0",
|
|
64
64
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
65
65
|
},
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
76
|
-
"@deepseek-ai/dsh-agent": "0.1.7-rc.
|
|
77
|
-
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.
|
|
81
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.
|
|
76
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2",
|
|
77
|
+
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
|
|
81
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
|
|
82
82
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
83
83
|
"@types/node": "^22.10.0",
|
|
84
84
|
"@types/qrcode": "^1.5.6",
|