@michengai/dsh-im-connect 0.1.47 → 0.1.48
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 +4 -0
- package/CHANGELOG.zh-CN.md +4 -0
- package/README.md +8 -5
- package/README.zh-CN.md +8 -5
- package/client.js +20 -8
- package/lib/client.js +20 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
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.48 - 2026-09-14
|
|
8
|
+
|
|
9
|
+
- Fix the Channels sidebar entry disappearing when used with the archive and automation plugins.
|
|
10
|
+
|
|
7
11
|
## 0.1.47 - 2026-09-13
|
|
8
12
|
|
|
9
13
|
- Diagnose account connections through platform APIs or an existing connection heartbeat. Results distinguish passed, failed and unverified checks, with specific guidance for credentials, local state, network failures and Telegram Webhook conflicts; no test messages are sent.
|
package/CHANGELOG.zh-CN.md
CHANGED
package/README.md
CHANGED
|
@@ -174,18 +174,21 @@ After connecting, drive the local assistant from each IM:
|
|
|
174
174
|
|
|
175
175
|
## DSH product ecosystem
|
|
176
176
|
|
|
177
|
-
For a
|
|
177
|
+
For a desktop workbench, download [DSH Codex Desktop](https://github.com/MichengAI/dsh-codex-desktop/releases). Existing [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) installations can add plugins as needed by following each project's README. Below are 11 first-party plugins; consult the corresponding desktop release notes and bundled catalog for what that version includes.
|
|
178
178
|
|
|
179
179
|
| Plugin | What you can do |
|
|
180
180
|
| --- | --- |
|
|
181
181
|
| [Codex UI](https://github.com/MichengAI/dsh-codex-ui) | Organize projects and conversations, search tasks, and navigate chat turns |
|
|
182
|
-
| [
|
|
183
|
-
| [Automation](https://github.com/MichengAI/dsh-automation) | Schedule tasks and review each run |
|
|
182
|
+
| [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | Choose and summon specialists for your task |
|
|
184
183
|
| [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | Find, enable, create, and import local skills |
|
|
185
184
|
| [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | Search, restore, or clean up archived conversations |
|
|
186
|
-
| [
|
|
185
|
+
| [IM Connect](https://github.com/MichengAI/dsh-im-connect) | Send tasks and receive replies through messaging platforms |
|
|
186
|
+
| [Automation](https://github.com/MichengAI/dsh-automation) | Schedule tasks and review each run |
|
|
187
187
|
| [BTW](https://github.com/MichengAI/dsh-btw) | Ask side questions without interrupting the main task |
|
|
188
|
-
| [Simplify](https://github.com/MichengAI/dsh-simplify) | Use
|
|
188
|
+
| [Simplify](https://github.com/MichengAI/dsh-simplify) | Use `/simplify` to improve code within your Git changes |
|
|
189
|
+
| [PUA](https://github.com/MichengAI/dsh-pua) | Guide the Agent to try new approaches after failures, investigate causes, and verify results before completion |
|
|
190
|
+
| [Code Review](https://github.com/MichengAI/dsh-code-review) | Use `/review` to request an independent Agent code review and receive the report in the current conversation |
|
|
191
|
+
| [Codex Pet](https://github.com/MichengAI/dsh-codex-pet) | View conversation notifications and respond to tool approvals and questions through a desktop pet |
|
|
189
192
|
|
|
190
193
|
## Prerequisites
|
|
191
194
|
|
package/README.zh-CN.md
CHANGED
|
@@ -174,18 +174,21 @@ IM 消息发起的处理结束后,会在正文和文件投递完成后给出
|
|
|
174
174
|
|
|
175
175
|
## DSH 产品生态
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
想使用桌面工作台,可下载 [DSH Codex Desktop](https://github.com/MichengAI/dsh-codex-desktop/releases);已有 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 环境,可按各项目 README 按需安装。以下列出 11 个自研插件;桌面端实际随附范围以对应版本的发行说明和内置清单为准。
|
|
178
178
|
|
|
179
179
|
| 插件 | 你可以用它做什么 |
|
|
180
180
|
| --- | --- |
|
|
181
181
|
| [Codex UI](https://github.com/MichengAI/dsh-codex-ui) | 整理项目与会话、搜索任务、跳转对话轮次 |
|
|
182
|
-
| [
|
|
183
|
-
| [Automation](https://github.com/MichengAI/dsh-automation) | 按计划执行任务,查看每次运行的结果 |
|
|
182
|
+
| [Agency Agents](https://github.com/MichengAI/dsh-agency-agents) | 按任务选择并召唤专业角色 |
|
|
184
183
|
| [Skills Manager](https://github.com/MichengAI/dsh-skills-manager) | 统一查找、启停、创建和导入本机技能 |
|
|
185
184
|
| [Archive Manager](https://github.com/MichengAI/dsh-archive-manager) | 搜索、恢复或清理已归档会话 |
|
|
186
|
-
| [
|
|
185
|
+
| [IM Connect](https://github.com/MichengAI/dsh-im-connect) | 从消息平台下任务、收回复 |
|
|
186
|
+
| [Automation](https://github.com/MichengAI/dsh-automation) | 按计划执行任务,查看每次运行的结果 |
|
|
187
187
|
| [BTW](https://github.com/MichengAI/dsh-btw) | 在当前上下文中临时旁问,不打断主任务 |
|
|
188
|
-
| [Simplify](https://github.com/MichengAI/dsh-simplify) | 用
|
|
188
|
+
| [Simplify](https://github.com/MichengAI/dsh-simplify) | 用 `/simplify` 整理 Git 改动范围内的代码 |
|
|
189
|
+
| [PUA](https://github.com/MichengAI/dsh-pua) | 引导 Agent 在失败时换方法、查原因,并在完成前验证结果 |
|
|
190
|
+
| [Code Review](https://github.com/MichengAI/dsh-code-review) | 用 `/review` 发起独立 Agent 代码审查,在当前会话接收报告 |
|
|
191
|
+
| [Codex Pet](https://github.com/MichengAI/dsh-codex-pet) | 通过桌面宠物查看会话提醒、处理工具审批和问题回答 |
|
|
189
192
|
|
|
190
193
|
## 前置条件
|
|
191
194
|
|
package/client.js
CHANGED
|
@@ -2216,10 +2216,14 @@ window.__ModuleLoader__.load({
|
|
|
2216
2216
|
ctx.slots.inject("sidebar.workspaces", () => {
|
|
2217
2217
|
let wrappedEntry = null;
|
|
2218
2218
|
let originalComp = null;
|
|
2219
|
+
let ownedWrapper = null;
|
|
2220
|
+
let ownedRegistry = null;
|
|
2219
2221
|
let removeInsertedTab = () => {};
|
|
2220
2222
|
let stopInsertedTabLocale = () => {};
|
|
2221
2223
|
let insertedTabRegistry = null;
|
|
2222
2224
|
let syncing = false;
|
|
2225
|
+
// 与定时插件共享通知,补足直接替换 component 不触发宿主插槽通知的情况。
|
|
2226
|
+
const notifyPeers = () => { queueMicrotask(() => window.dispatchEvent(new Event("dsh-native-sidebar-change"))); };
|
|
2223
2227
|
const clearInsertedTab = () => {
|
|
2224
2228
|
stopInsertedTabLocale();
|
|
2225
2229
|
stopInsertedTabLocale = () => {};
|
|
@@ -2229,11 +2233,15 @@ window.__ModuleLoader__.load({
|
|
|
2229
2233
|
};
|
|
2230
2234
|
const unwrap = () => {
|
|
2231
2235
|
clearInsertedTab();
|
|
2232
|
-
if (wrappedEntry
|
|
2233
|
-
|
|
2236
|
+
if (wrappedEntry) {
|
|
2237
|
+
if (originalComp && wrappedEntry.component === ownedWrapper) wrappedEntry.component = originalComp;
|
|
2238
|
+
if (wrappedEntry.__dshNativeTabs === ownedRegistry) delete wrappedEntry.__dshNativeTabs;
|
|
2239
|
+
notifyPeers();
|
|
2234
2240
|
}
|
|
2235
2241
|
wrappedEntry = null;
|
|
2236
2242
|
originalComp = null;
|
|
2243
|
+
ownedWrapper = null;
|
|
2244
|
+
ownedRegistry = null;
|
|
2237
2245
|
};
|
|
2238
2246
|
const insertChannelTab = (entry) => {
|
|
2239
2247
|
const registry = findNativeTabRegistry(entry);
|
|
@@ -2276,21 +2284,21 @@ window.__ModuleLoader__.load({
|
|
|
2276
2284
|
const read = ctx.slots.entriesOfSlot || ctx.slots.entries;
|
|
2277
2285
|
const entries = (read && read.call(ctx.slots, "sidebar.workspaces")) || [];
|
|
2278
2286
|
const occupant = entries.find((item) => item && item.component);
|
|
2287
|
+
if (wrappedEntry && (occupant !== wrappedEntry || occupant.component !== ownedWrapper)) unwrap();
|
|
2288
|
+
if (!occupant) { clearInsertedTab(); return; }
|
|
2279
2289
|
if (occupant && (occupant.component.__dshNativeTabHost || occupant.component.__dshAutomationWrapped || findNativeTabRegistry(occupant))) {
|
|
2280
2290
|
insertChannelTab(occupant);
|
|
2281
2291
|
return;
|
|
2282
2292
|
}
|
|
2283
|
-
if (wrappedEntry && wrappedEntry.component && wrappedEntry.component.__imConnectWrapped) {
|
|
2284
|
-
insertChannelTab(wrappedEntry);
|
|
2285
|
-
return;
|
|
2286
|
-
}
|
|
2287
2293
|
const official = pickOfficialWorkspaces(ctx);
|
|
2288
2294
|
if (!official || official.component.__imConnectWrapped || official.component.__dshNativeTabHost) return;
|
|
2289
2295
|
originalComp = official.component;
|
|
2290
2296
|
const registry = createNativeTabRegistry(originalComp);
|
|
2297
|
+
ownedRegistry = registry;
|
|
2298
|
+
const tree = originalComp;
|
|
2291
2299
|
attachNativeTabRegistry(official, registry);
|
|
2292
2300
|
function ImNativeWorkspaceShell(innerProps) {
|
|
2293
|
-
return h(LocalizedSessionSwitcher, Object.assign({}, innerProps, { officialTree:
|
|
2301
|
+
return h(LocalizedSessionSwitcher, Object.assign({}, innerProps, { officialTree: tree, nativeTabs: registry }));
|
|
2294
2302
|
}
|
|
2295
2303
|
ImNativeWorkspaceShell.displayName = "ImNativeWorkspaceShell";
|
|
2296
2304
|
ImNativeWorkspaceShell.__imConnectWrapped = true;
|
|
@@ -2298,7 +2306,9 @@ window.__ModuleLoader__.load({
|
|
|
2298
2306
|
ImNativeWorkspaceShell.__dshNativeTabHost = true;
|
|
2299
2307
|
attachNativeTabRegistry(ImNativeWorkspaceShell, registry);
|
|
2300
2308
|
official.component = ImNativeWorkspaceShell;
|
|
2309
|
+
ownedWrapper = ImNativeWorkspaceShell;
|
|
2301
2310
|
wrappedEntry = official;
|
|
2311
|
+
notifyPeers();
|
|
2302
2312
|
} catch (error) {
|
|
2303
2313
|
console.warn("[dsh-im-connect] 包裹官方任务树失败", error);
|
|
2304
2314
|
} finally {
|
|
@@ -2307,13 +2317,15 @@ window.__ModuleLoader__.load({
|
|
|
2307
2317
|
};
|
|
2308
2318
|
sync();
|
|
2309
2319
|
const unsub = typeof ctx.slots.subscribe === "function" ? ctx.slots.subscribe("sidebar.workspaces", sync) : () => {};
|
|
2320
|
+
const unsubSidebar = typeof ctx.slots.subscribe === "function" ? ctx.slots.subscribe("sidebar", sync) : () => {};
|
|
2321
|
+
window.addEventListener("dsh-native-sidebar-change", sync);
|
|
2310
2322
|
// 其他插件直接替换 component/注册表时不一定触发槽位通知,短暂重试兼容加载顺序。
|
|
2311
2323
|
let retries = 0;
|
|
2312
2324
|
const retryTimer = window.setInterval(() => {
|
|
2313
2325
|
sync();
|
|
2314
2326
|
if (insertedTabRegistry || ++retries >= 20) window.clearInterval(retryTimer);
|
|
2315
2327
|
}, 250);
|
|
2316
|
-
return () => { window.clearInterval(retryTimer); unsub(); unwrap(); };
|
|
2328
|
+
return () => { window.clearInterval(retryTimer); unsub(); unsubSidebar(); window.removeEventListener("dsh-native-sidebar-change", sync); unwrap(); };
|
|
2317
2329
|
});
|
|
2318
2330
|
}
|
|
2319
2331
|
|
package/lib/client.js
CHANGED
|
@@ -2510,10 +2510,14 @@ window.__ModuleLoader__.load({
|
|
|
2510
2510
|
ctx.slots.inject("sidebar.workspaces", () => {
|
|
2511
2511
|
let wrappedEntry = null;
|
|
2512
2512
|
let originalComp = null;
|
|
2513
|
+
let ownedWrapper = null;
|
|
2514
|
+
let ownedRegistry = null;
|
|
2513
2515
|
let removeInsertedTab = () => {};
|
|
2514
2516
|
let stopInsertedTabLocale = () => {};
|
|
2515
2517
|
let insertedTabRegistry = null;
|
|
2516
2518
|
let syncing = false;
|
|
2519
|
+
// 与定时插件共享通知,补足直接替换 component 不触发宿主插槽通知的情况。
|
|
2520
|
+
const notifyPeers = () => { queueMicrotask(() => window.dispatchEvent(new Event("dsh-native-sidebar-change"))); };
|
|
2517
2521
|
const clearInsertedTab = () => {
|
|
2518
2522
|
stopInsertedTabLocale();
|
|
2519
2523
|
stopInsertedTabLocale = () => {};
|
|
@@ -2523,11 +2527,15 @@ window.__ModuleLoader__.load({
|
|
|
2523
2527
|
};
|
|
2524
2528
|
const unwrap = () => {
|
|
2525
2529
|
clearInsertedTab();
|
|
2526
|
-
if (wrappedEntry
|
|
2527
|
-
|
|
2530
|
+
if (wrappedEntry) {
|
|
2531
|
+
if (originalComp && wrappedEntry.component === ownedWrapper) wrappedEntry.component = originalComp;
|
|
2532
|
+
if (wrappedEntry.__dshNativeTabs === ownedRegistry) delete wrappedEntry.__dshNativeTabs;
|
|
2533
|
+
notifyPeers();
|
|
2528
2534
|
}
|
|
2529
2535
|
wrappedEntry = null;
|
|
2530
2536
|
originalComp = null;
|
|
2537
|
+
ownedWrapper = null;
|
|
2538
|
+
ownedRegistry = null;
|
|
2531
2539
|
};
|
|
2532
2540
|
const insertChannelTab = (entry) => {
|
|
2533
2541
|
const registry = findNativeTabRegistry(entry);
|
|
@@ -2570,21 +2578,21 @@ window.__ModuleLoader__.load({
|
|
|
2570
2578
|
const read = ctx.slots.entriesOfSlot || ctx.slots.entries;
|
|
2571
2579
|
const entries = (read && read.call(ctx.slots, "sidebar.workspaces")) || [];
|
|
2572
2580
|
const occupant = entries.find((item) => item && item.component);
|
|
2581
|
+
if (wrappedEntry && (occupant !== wrappedEntry || occupant.component !== ownedWrapper)) unwrap();
|
|
2582
|
+
if (!occupant) { clearInsertedTab(); return; }
|
|
2573
2583
|
if (occupant && (occupant.component.__dshNativeTabHost || occupant.component.__dshAutomationWrapped || findNativeTabRegistry(occupant))) {
|
|
2574
2584
|
insertChannelTab(occupant);
|
|
2575
2585
|
return;
|
|
2576
2586
|
}
|
|
2577
|
-
if (wrappedEntry && wrappedEntry.component && wrappedEntry.component.__imConnectWrapped) {
|
|
2578
|
-
insertChannelTab(wrappedEntry);
|
|
2579
|
-
return;
|
|
2580
|
-
}
|
|
2581
2587
|
const official = pickOfficialWorkspaces(ctx);
|
|
2582
2588
|
if (!official || official.component.__imConnectWrapped || official.component.__dshNativeTabHost) return;
|
|
2583
2589
|
originalComp = official.component;
|
|
2584
2590
|
const registry = createNativeTabRegistry(originalComp);
|
|
2591
|
+
ownedRegistry = registry;
|
|
2592
|
+
const tree = originalComp;
|
|
2585
2593
|
attachNativeTabRegistry(official, registry);
|
|
2586
2594
|
function ImNativeWorkspaceShell(innerProps) {
|
|
2587
|
-
return h(LocalizedSessionSwitcher, Object.assign({}, innerProps, { officialTree:
|
|
2595
|
+
return h(LocalizedSessionSwitcher, Object.assign({}, innerProps, { officialTree: tree, nativeTabs: registry }));
|
|
2588
2596
|
}
|
|
2589
2597
|
ImNativeWorkspaceShell.displayName = "ImNativeWorkspaceShell";
|
|
2590
2598
|
ImNativeWorkspaceShell.__imConnectWrapped = true;
|
|
@@ -2592,7 +2600,9 @@ window.__ModuleLoader__.load({
|
|
|
2592
2600
|
ImNativeWorkspaceShell.__dshNativeTabHost = true;
|
|
2593
2601
|
attachNativeTabRegistry(ImNativeWorkspaceShell, registry);
|
|
2594
2602
|
official.component = ImNativeWorkspaceShell;
|
|
2603
|
+
ownedWrapper = ImNativeWorkspaceShell;
|
|
2595
2604
|
wrappedEntry = official;
|
|
2605
|
+
notifyPeers();
|
|
2596
2606
|
} catch (error) {
|
|
2597
2607
|
console.warn("[dsh-im-connect] 包裹官方任务树失败", error);
|
|
2598
2608
|
} finally {
|
|
@@ -2601,13 +2611,15 @@ window.__ModuleLoader__.load({
|
|
|
2601
2611
|
};
|
|
2602
2612
|
sync();
|
|
2603
2613
|
const unsub = typeof ctx.slots.subscribe === "function" ? ctx.slots.subscribe("sidebar.workspaces", sync) : () => {};
|
|
2614
|
+
const unsubSidebar = typeof ctx.slots.subscribe === "function" ? ctx.slots.subscribe("sidebar", sync) : () => {};
|
|
2615
|
+
window.addEventListener("dsh-native-sidebar-change", sync);
|
|
2604
2616
|
// 其他插件直接替换 component/注册表时不一定触发槽位通知,短暂重试兼容加载顺序。
|
|
2605
2617
|
let retries = 0;
|
|
2606
2618
|
const retryTimer = window.setInterval(() => {
|
|
2607
2619
|
sync();
|
|
2608
2620
|
if (insertedTabRegistry || ++retries >= 20) window.clearInterval(retryTimer);
|
|
2609
2621
|
}, 250);
|
|
2610
|
-
return () => { window.clearInterval(retryTimer); unsub(); unwrap(); };
|
|
2622
|
+
return () => { window.clearInterval(retryTimer); unsub(); unsubSidebar(); window.removeEventListener("dsh-native-sidebar-change", sync); unwrap(); };
|
|
2611
2623
|
});
|
|
2612
2624
|
}
|
|
2613
2625
|
|