feat: bind bot chats to existing harness sessions

This commit is contained in:
xmanrui 2026-08-18 02:59:29 +08:00
parent 76d5430f1f
commit 1af8610cd5
21 changed files with 1807 additions and 130 deletions

View file

@ -72,6 +72,11 @@ for (const marker of ['/feishu', '/weixin', '/dingtalk', '/wecom', '/qq', '/slac
throw new Error(`host bundle does not contain the internal ${marker} RPC provider`);
}
}
for (const marker of ['/session Session ID', 'bindWorkspaceSession', 'session-subagent-unsupported']) {
if (!host.includes(marker)) {
throw new Error(`host bundle does not contain the Session binding marker: ${marker}`);
}
}
if (/@xmanrui\/dsh-(?:feishu|weixin|dingtalk)/.test(host)) {
throw new Error('host bundle still imports an external channel plugin');
}