merge: integrate leader summary webhook delivery

# Conflicts:
#	control-plane/README.md
#	control-plane/src/db.ts
#	control-plane/test/control-plane.test.ts
This commit is contained in:
inman committed 2026-09-09 17:25:23 +08:00
commit 295409bff0
21 files changed
+1260 -1269

No files matched your search

+6 -6
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#edf2f4">
<title>AI操作台 · LianSyn-platform</title>
<link rel="stylesheet" href="styles.css?v=20260907-admin-task-isolation-1">
<link rel="stylesheet" href="styles.css?v=20260908-leader-webhook-1">
</head>
<body>
<main class="app-shell">
@@ -280,13 +280,13 @@
<section id="leaderSummaryPanel" class="panel channel-panel leader-summary-panel">
<div class="panel-head">
<div>
<p class="eyebrow">LEADER SUMMARY COPY</p>
<h2>组长任务摘要抄送</h2>
<p class="muted">身份为组长且已有可用 AgentBus 渠道时,系统自动把同组织内其他非管理员员工的稳定任务结果抄送到组长微信。人工任务与 AgentBus 任务都会纳入。</p>
<p class="eyebrow">LEADER SUMMARY WEBHOOK</p>
<h2>组长任务摘要推送</h2>
<p class="muted">系统通过服务器配置的固定外部 Webhook,把同组织内非管理员员工的稳定任务结果推送到组长微信群。该链路不再依赖组长 AgentBus 账号或渠道。</p>
</div>
</div>
<div class="leader-summary-safety" role="note">
无需单独配置或启用。收件路由优先使用 AgentBus 已记录的组长会话,并可从渠道的外部用户标识自动建立;只处理自动启用后的新结果,不补发历史任务。路由和摘要正文均加密保存且不回显。AgentBus 主动投递可能极少量重复,已经到达微信的消息无法撤回。
部署环境必须同时提供完整 WEBHOOK_SEND_URL 与 32 位 WEBHOOK_EXTERNAL_TOKEN,业务请求固定使用 ID 9999。配置缺失或无效只停用本摘要推送,不影响员工任务、AgentBus 或 ERP 执行。只处理配置生效后的新结果,不补发历史任务;摘要正文加密保存,URL 与 token 不回显。接口成功仅表示“已受理”,不代表微信已送达;明确拒绝、超时、断网或 5xx 都不会自动重试,以免重复群通知。
</div>
<div id="leaderSummaryList" class="channel-list leader-summary-list"></div>
<p id="leaderSummaryMessage" class="channel-message" role="status"></p>
@@ -423,6 +423,6 @@
</section>
</main>
<script src="app.js?v=20260907-admin-task-isolation-1"></script>
<script src="app.js?v=20260908-leader-webhook-1"></script>
</body>
</html>