bailinghub 0.5.0 → 0.6.0
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/README.en.md +146 -185
- package/README.md +135 -206
- package/THIRD_PARTY_NOTICES.md +6 -7
- package/assets/readme-demo-evidence.en-dark.svg +82 -0
- package/assets/readme-demo-evidence.en.svg +82 -0
- package/assets/readme-demo-evidence.zh-CN-dark.svg +82 -0
- package/assets/readme-demo-evidence.zh-CN.svg +82 -0
- package/assets/readme-entry-points.en-dark.svg +71 -0
- package/assets/readme-entry-points.en.svg +71 -0
- package/assets/readme-entry-points.zh-CN-dark.svg +71 -0
- package/assets/readme-entry-points.zh-CN.svg +71 -0
- package/assets/readme-product-overview.en-dark.svg +87 -0
- package/assets/readme-product-overview.en.svg +87 -0
- package/assets/readme-product-overview.zh-CN-dark.svg +87 -0
- package/assets/readme-product-overview.zh-CN.svg +87 -0
- package/docker-compose.images.yml +2 -2
- package/docs/AGENT_AUTH_API.en.md +25 -9
- package/docs/AGENT_AUTH_API.md +17 -5
- package/docs/AGENT_CLIENT_QUICKSTART.en.md +90 -18
- package/docs/AGENT_CLIENT_QUICKSTART.md +74 -16
- package/docs/AGENT_CONVERSATION_AUDIT.en.md +194 -0
- package/docs/AGENT_CONVERSATION_AUDIT.md +111 -0
- package/docs/CHANGELOG.en.md +23 -0
- package/docs/CHANGELOG.md +23 -0
- package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
- package/docs/INDEPENDENT_VALIDATION.md +4 -4
- package/docs/README.en.md +7 -0
- package/docs/README.md +7 -0
- package/docs/RELEASE_NOTES_v0.5.1.en.md +45 -0
- package/docs/RELEASE_NOTES_v0.5.1.md +45 -0
- package/docs/RELEASE_NOTES_v0.6.0.en.md +51 -0
- package/docs/RELEASE_NOTES_v0.6.0.md +51 -0
- package/docs/user-guide/README.en.md +1 -0
- package/docs/user-guide/README.md +1 -0
- package/docs/user-guide/console-map.en.md +2 -0
- package/docs/user-guide/console-map.md +2 -1
- package/docs/user-guide/conversations.en.md +40 -0
- package/docs/user-guide/conversations.md +40 -0
- package/package.json +1 -1
- package/scripts/check-doc-links.mjs +3 -0
- package/scripts/check-image-tags.sh +1 -1
- package/scripts/check-release-consistency.test.mjs +5 -5
- package/scripts/e2e-console.mjs +89 -0
- package/scripts/generate-readme-assets.mjs +488 -7
- package/scripts/install.sh +1 -1
- package/scripts/publish-images.sh +1 -1
- package/scripts/release-audit.mjs +2 -0
- package/scripts/verify-github-repo.mjs +2 -0
- package/sql/057_agent_conversation_audit.sql +55 -0
- package/src/app/agent-conversation-audit.ts +30 -0
- package/src/app/oss-edition.ts +1 -0
- package/src/core/config/agent-direct-console-selection.test.ts +22 -0
- package/src/core/runtime/agent-conversation-audit.test.ts +38 -0
- package/src/core/runtime/agent-conversation-audit.ts +159 -0
- package/src/infrastructure/config/config-agent-auth-repository.test.ts +36 -0
- package/src/infrastructure/config/config-agent-auth-repository.ts +97 -0
- package/src/infrastructure/config/config-agent-client-runtime-repository.test.ts +38 -0
- package/src/infrastructure/config/config-agent-client-runtime-repository.ts +54 -0
- package/src/infrastructure/config/config-agent-conversation-audit-repository.test.ts +146 -0
- package/src/infrastructure/config/config-agent-conversation-audit-repository.ts +262 -0
- package/src/infrastructure/config/configstore.ts +5 -0
- package/src/routes/admin-agent-clients.test.ts +120 -0
- package/src/routes/admin-agent-clients.ts +161 -0
- package/src/routes/admin-conversation-audit.ts +46 -0
- package/src/routes/admin-runtime.test.ts +38 -0
- package/src/routes/admin-runtime.ts +14 -3
- package/src/routes/admin.ts +6 -0
- package/src/routes/agent-api.ts +2 -0
- package/src/routes/agent-conversation-audit.test.ts +131 -0
- package/src/routes/agent-conversation-audit.ts +33 -0
- package/src/test-support/agent-conversation-audit-fixture.ts +123 -0
- package/web/console/assets/{Accounts-D4RRm5D1.js → Accounts-Ca_VnSu9.js} +1 -1
- package/web/console/assets/AgentClients-BPIvlLYY.js +1 -0
- package/web/console/assets/AgentClients-DsWADpzr.css +1 -0
- package/web/console/assets/{Approvals-CsTTKb8o.js → Approvals-CMvPWacY.js} +1 -1
- package/web/console/assets/{Audit-BzvZ7JZw.js → Audit-CIRqOCnL.js} +1 -1
- package/web/console/assets/{BrandLockup-CYcA93wh.js → BrandLockup-BrytmTTH.js} +1 -1
- package/web/console/assets/{Channels-DRQZggqM.js → Channels-CApxH2TB.js} +1 -1
- package/web/console/assets/{ChatEntries-BUB7BWKU.js → ChatEntries-CJon3bWJ.js} +1 -1
- package/web/console/assets/Clients-BSA1rlTB.js +3 -0
- package/web/console/assets/Clients-CNIVs7Qn.css +1 -0
- package/web/console/assets/{Cost-BZgFf1yM.js → Cost-BbhlQFP8.js} +1 -1
- package/web/console/assets/{Credentials-BTe2Q07j.js → Credentials-kqr1W0K7.js} +1 -1
- package/web/console/assets/{Diagnostics-WL-buYli.js → Diagnostics-Kljt9XTH.js} +1 -1
- package/web/console/assets/{Executors-CGZ-7Xmp.js → Executors-DnsB-Xz4.js} +1 -1
- package/web/console/assets/{HelpTip-CT07o3kB.js → HelpTip-i-KJhf5s.js} +1 -1
- package/web/console/assets/{Kb-VVw8oGsT.js → Kb-DLZSAFWP.js} +2 -2
- package/web/console/assets/{Login-rwvmBBPl.js → Login-DiTjPWmN.js} +1 -1
- package/web/console/assets/{Projects-CexaCEY1.js → Projects-CXcVCgCD.js} +1 -1
- package/web/console/assets/Routes-CXGl9SMM.css +1 -0
- package/web/console/assets/Routes-DN9_d9Po.js +124 -0
- package/web/console/assets/Runs-Cwbe6thL.js +3 -0
- package/web/console/assets/Runs-D8UmjP5G.css +1 -0
- package/web/console/assets/{Setup-Djh5yadQ.js → Setup-FqoCKmfZ.js} +1 -1
- package/web/console/assets/Shell-BEqpONiy.js +1 -0
- package/web/console/assets/Shell-D9Uw-fsa.css +1 -0
- package/web/console/assets/{StorageBuckets-CQBR41W1.js → StorageBuckets-CkORbYXY.js} +1 -1
- package/web/console/assets/{SystemSettings-DgnopekD.js → SystemSettings-gTQAazu7.js} +1 -1
- package/web/console/assets/{SystemStatus-Bj8-kPt2.js → SystemStatus-DAmUUNqO.js} +1 -1
- package/web/console/assets/{Targets-BAfCt_nH.js → Targets-CZmDcjsE.js} +1 -1
- package/web/console/assets/{Tools-xjd0NZdE.js → Tools-CIHInlHL.js} +1 -1
- package/web/console/assets/index-BkLbd7Cc.js +2 -0
- package/web/console/assets/{index-DZEQL_yy.js → index-QnmD7N7F.js} +1 -1
- package/web/console/assets/{request-DkNPOweH.js → request-r7GHVJzw.js} +1 -1
- package/web/console/assets/{schema-CgPWAu1_.js → schema-BVn_hB7M.js} +1 -1
- package/web/console/assets/{util-SiQC2MJh.js → util-4bN2dv7B.js} +1 -1
- package/web/console/assets/{vendor-element-D7WRzHhy.js → vendor-element-CZoEjZr8.js} +1 -1
- package/web/console/assets/vendor-mammoth-BUEEDX6A.js +231 -0
- package/web/console/index.html +2 -2
- package/web-admin/package-lock.json +3 -3
- package/web-admin/src/agent-direct-selection.ts +21 -0
- package/web-admin/src/components/ClientConversations.vue +244 -0
- package/web-admin/src/components/conversation-audit.ts +121 -0
- package/web-admin/src/layout/Shell.vue +1 -1
- package/web-admin/src/pages/AgentClients.vue +254 -0
- package/web-admin/src/pages/Clients.vue +4 -2
- package/web-admin/src/pages/Routes.vue +54 -5
- package/web-admin/src/pages/Runs.vue +73 -17
- package/web-admin/src/router.ts +2 -0
- package/web-admin/tests/conversation-audit.fixture.mjs +182 -0
- package/web-admin/tests/conversation-audit.test.mjs +93 -0
- package/web/console/assets/Clients-CQ_MonGL.css +0 -1
- package/web/console/assets/Clients-HhCyrxfz.js +0 -3
- package/web/console/assets/Routes-B9ZHbQAp.js +0 -124
- package/web/console/assets/Routes-BbkFpi6Y.css +0 -1
- package/web/console/assets/Runs-4zDD9VOC.css +0 -1
- package/web/console/assets/Runs-BzFNPTwD.js +0 -3
- package/web/console/assets/Shell-BVIjmoY8.css +0 -1
- package/web/console/assets/Shell-kn763smL.js +0 -1
- package/web/console/assets/index-DfJA7iJS.js +0 -2
- package/web/console/assets/vendor-mammoth-DvgsHdlx.js +0 -231
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">把一句话变成可核对的后台操作</title>
|
|
3
|
+
<desc id="desc">用户通过自然语言提出目标,BailingHub 处理可信身份、能力范围、审批和审计,已有业务系统完成最终授权与真实执行。</desc>
|
|
4
|
+
<defs><marker id="overview-arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" fill="#3fb950"/></marker></defs>
|
|
5
|
+
<rect width="1600" height="900" fill="#0d1117"/>
|
|
6
|
+
<path d="M 0 0 H 1600 V 7 H 0 Z" fill="#3fb950"/>
|
|
7
|
+
<text x="80" y="55" fill="#3fb950" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">BAILINGHUB · 不只回答问题</text>
|
|
8
|
+
<text x="80" y="108" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="46" font-weight="800" text-anchor="start">把一句话变成可核对的后台操作</text>
|
|
9
|
+
<text x="80" y="148" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="21" font-weight="500" text-anchor="start">不用重做商城、SaaS、CRM 或 ERP,也不用让 AI 直连数据库。</text>
|
|
10
|
+
<rect x="80" y="185" width="410" height="455" rx="18" fill="#161b22" stroke="#30363d" stroke-width="2"/>
|
|
11
|
+
<text x="110" y="225" fill="#3fb950" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">01 · 直接说目标</text>
|
|
12
|
+
<rect x="110" y="255" width="350" height="315" rx="14" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
13
|
+
<circle cx="132" cy="278" r="5" fill="#3fb950"/>
|
|
14
|
+
<text x="148" y="284" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="650" text-anchor="start">我已连接当前业务后台</text>
|
|
15
|
+
<rect x="130" y="315" width="270" height="58" rx="15" fill="#1c242d" stroke="#1c242d" stroke-width="1"/>
|
|
16
|
+
<text x="150" y="351" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="500" text-anchor="start">今天先处理哪些订单?</text>
|
|
17
|
+
<rect x="160" y="400" width="270" height="104" rx="15" fill="#12261a" stroke="#3fb950" stroke-width="2"/>
|
|
18
|
+
<text x="180" y="439" fill="#56d364" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="700" text-anchor="start">查询未发货订单,</text>
|
|
19
|
+
<text x="180" y="470" fill="#56d364" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="700" text-anchor="start">为异常订单创建待处理工单。</text>
|
|
20
|
+
<rect x="130" y="532" width="210" height="10" rx="5" fill="#1c242d"/>
|
|
21
|
+
<text x="110" y="610" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">自然语言会话</text>
|
|
22
|
+
<path d="M 490 412 H 550" fill="none" stroke="#3fb950" stroke-width="4" marker-end="url(#overview-arrow)"/>
|
|
23
|
+
<rect x="565" y="185" width="470" height="455" rx="18" fill="#12261a" stroke="#3fb950" stroke-width="3"/>
|
|
24
|
+
<text x="595" y="225" fill="#56d364" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">02 · BAILINGHUB</text>
|
|
25
|
+
<text x="595" y="265" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="25" font-weight="800" text-anchor="start">把目标变成受控业务动作</text>
|
|
26
|
+
<rect x="595" y="294" width="410" height="64" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
27
|
+
<rect x="611" y="311" width="30" height="30" rx="8" fill="#0c2d4a"/>
|
|
28
|
+
<text x="626" y="333" fill="#58a6ff" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">1</text>
|
|
29
|
+
<text x="657" y="321" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">可信身份</text>
|
|
30
|
+
<text x="657" y="344" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">这次操作代表谁</text>
|
|
31
|
+
<rect x="595" y="372" width="410" height="64" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
32
|
+
<rect x="611" y="389" width="30" height="30" rx="8" fill="#0c2d4a"/>
|
|
33
|
+
<text x="626" y="411" fill="#58a6ff" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">2</text>
|
|
34
|
+
<text x="657" y="399" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">能力选择</text>
|
|
35
|
+
<text x="657" y="422" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">只使用已接入能力</text>
|
|
36
|
+
<rect x="595" y="450" width="410" height="64" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
37
|
+
<rect x="611" y="467" width="30" height="30" rx="8" fill="#3d2f13"/>
|
|
38
|
+
<text x="626" y="489" fill="#d29922" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">3</text>
|
|
39
|
+
<text x="657" y="477" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">风险与审批</text>
|
|
40
|
+
<text x="657" y="500" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">该停下时先交给人</text>
|
|
41
|
+
<rect x="595" y="528" width="410" height="64" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
42
|
+
<rect x="611" y="545" width="30" height="30" rx="8" fill="#0c2d4a"/>
|
|
43
|
+
<text x="626" y="567" fill="#58a6ff" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">4</text>
|
|
44
|
+
<text x="657" y="555" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">审计留痕</text>
|
|
45
|
+
<text x="657" y="578" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">对话与执行过程可查</text>
|
|
46
|
+
<path d="M 1035 412 H 1095" fill="none" stroke="#3fb950" stroke-width="4" marker-end="url(#overview-arrow)"/>
|
|
47
|
+
<rect x="1110" y="185" width="410" height="455" rx="18" fill="#161b22" stroke="#30363d" stroke-width="2"/>
|
|
48
|
+
<text x="1140" y="225" fill="#3fb950" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">03 · 已有业务系统</text>
|
|
49
|
+
<text x="1140" y="265" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="25" font-weight="800" text-anchor="start">原系统完成真实执行</text>
|
|
50
|
+
<rect x="1140" y="295" width="160" height="92" rx="12" fill="#0c2d4a" stroke="#30363d" stroke-width="2"/>
|
|
51
|
+
<text x="1158" y="330" fill="#58a6ff" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">商城</text>
|
|
52
|
+
<text x="1158" y="360" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">商品 · 订单 · 售后</text>
|
|
53
|
+
<rect x="1320" y="295" width="160" height="92" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
54
|
+
<text x="1338" y="330" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">SaaS</text>
|
|
55
|
+
<text x="1338" y="360" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">账号 · 门店 · 工单</text>
|
|
56
|
+
<rect x="1140" y="407" width="160" height="92" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
57
|
+
<text x="1158" y="442" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">CRM</text>
|
|
58
|
+
<text x="1158" y="472" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">客户 · 跟进 · 标签</text>
|
|
59
|
+
<rect x="1320" y="407" width="160" height="92" rx="12" fill="#0d1117" stroke="#30363d" stroke-width="2"/>
|
|
60
|
+
<text x="1338" y="442" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">ERP</text>
|
|
61
|
+
<text x="1338" y="472" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">库存 · 采购 · 申请</text>
|
|
62
|
+
<rect x="1140" y="526" width="340" height="76" rx="12" fill="#12261a" stroke="#3fb950" stroke-width="2"/>
|
|
63
|
+
<text x="1310" y="558" fill="#56d364" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16" font-weight="800" text-anchor="middle">执行完成</text>
|
|
64
|
+
<text x="1310" y="584" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="middle">结果写回原系统,并留下任务记录</text>
|
|
65
|
+
<rect x="80" y="685" width="1440" height="112" rx="16" fill="#1c242d" stroke="#30363d" stroke-width="2"/>
|
|
66
|
+
<circle cx="135" cy="730" r="20" fill="#0d1117" stroke="#3fb950" stroke-width="2"/>
|
|
67
|
+
<text x="135" y="736" fill="#56d364" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">1</text>
|
|
68
|
+
<text x="165" y="736" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">自然语言会话</text>
|
|
69
|
+
<path d="M 357 730 H 387" fill="none" stroke="#3fb950" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
70
|
+
<circle cx="422" cy="730" r="20" fill="#0d1117" stroke="#3fb950" stroke-width="2"/>
|
|
71
|
+
<text x="422" y="736" fill="#56d364" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">2</text>
|
|
72
|
+
<text x="452" y="736" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">可信业务身份</text>
|
|
73
|
+
<path d="M 644 730 H 674" fill="none" stroke="#3fb950" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
74
|
+
<circle cx="709" cy="730" r="20" fill="#0d1117" stroke="#3fb950" stroke-width="2"/>
|
|
75
|
+
<text x="709" y="736" fill="#56d364" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">3</text>
|
|
76
|
+
<text x="739" y="736" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">已允许的能力</text>
|
|
77
|
+
<path d="M 931 730 H 961" fill="none" stroke="#3fb950" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
78
|
+
<circle cx="996" cy="730" r="20" fill="#0d1117" stroke="#3fb950" stroke-width="2"/>
|
|
79
|
+
<text x="996" y="736" fill="#56d364" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">4</text>
|
|
80
|
+
<text x="1026" y="736" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">原系统权限校验</text>
|
|
81
|
+
<path d="M 1218 730 H 1248" fill="none" stroke="#3fb950" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
82
|
+
<circle cx="1283" cy="730" r="20" fill="#3fb950" stroke="#3fb950" stroke-width="2"/>
|
|
83
|
+
<text x="1283" y="736" fill="#0d1117" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">5</text>
|
|
84
|
+
<text x="1313" y="736" fill="#f0f6fc" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">真实结果与留痕</text>
|
|
85
|
+
<text x="800" y="770" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="500" text-anchor="middle">从一句话到真实业务结果,每一步都能回头核对</text>
|
|
86
|
+
<text x="800" y="854" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18" font-weight="650" text-anchor="middle">BailingHub 管“AI 能够到哪里”,最终权限和业务规则仍由你的系统判断。</text>
|
|
87
|
+
</svg>
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">把一句话变成可核对的后台操作</title>
|
|
3
|
+
<desc id="desc">用户通过自然语言提出目标,BailingHub 处理可信身份、能力范围、审批和审计,已有业务系统完成最终授权与真实执行。</desc>
|
|
4
|
+
<defs><marker id="overview-arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" fill="#1f883d"/></marker></defs>
|
|
5
|
+
<rect width="1600" height="900" fill="#ffffff"/>
|
|
6
|
+
<path d="M 0 0 H 1600 V 7 H 0 Z" fill="#1f883d"/>
|
|
7
|
+
<text x="80" y="55" fill="#1f883d" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">BAILINGHUB · 不只回答问题</text>
|
|
8
|
+
<text x="80" y="108" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="46" font-weight="800" text-anchor="start">把一句话变成可核对的后台操作</text>
|
|
9
|
+
<text x="80" y="148" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="21" font-weight="500" text-anchor="start">不用重做商城、SaaS、CRM 或 ERP,也不用让 AI 直连数据库。</text>
|
|
10
|
+
<rect x="80" y="185" width="410" height="455" rx="18" fill="#f6f8fa" stroke="#d0d7de" stroke-width="2"/>
|
|
11
|
+
<text x="110" y="225" fill="#1f883d" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">01 · 直接说目标</text>
|
|
12
|
+
<rect x="110" y="255" width="350" height="315" rx="14" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
13
|
+
<circle cx="132" cy="278" r="5" fill="#1f883d"/>
|
|
14
|
+
<text x="148" y="284" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="16" font-weight="650" text-anchor="start">我已连接当前业务后台</text>
|
|
15
|
+
<rect x="130" y="315" width="270" height="58" rx="15" fill="#eef2f5" stroke="#eef2f5" stroke-width="1"/>
|
|
16
|
+
<text x="150" y="351" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="500" text-anchor="start">今天先处理哪些订单?</text>
|
|
17
|
+
<rect x="160" y="400" width="270" height="104" rx="15" fill="#dafbe1" stroke="#1f883d" stroke-width="2"/>
|
|
18
|
+
<text x="180" y="439" fill="#116329" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="700" text-anchor="start">查询未发货订单,</text>
|
|
19
|
+
<text x="180" y="470" fill="#116329" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="700" text-anchor="start">为异常订单创建待处理工单。</text>
|
|
20
|
+
<rect x="130" y="532" width="210" height="10" rx="5" fill="#eef2f5"/>
|
|
21
|
+
<text x="110" y="610" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">自然语言会话</text>
|
|
22
|
+
<path d="M 490 412 H 550" fill="none" stroke="#1f883d" stroke-width="4" marker-end="url(#overview-arrow)"/>
|
|
23
|
+
<rect x="565" y="185" width="470" height="455" rx="18" fill="#dafbe1" stroke="#1f883d" stroke-width="3"/>
|
|
24
|
+
<text x="595" y="225" fill="#116329" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">02 · BAILINGHUB</text>
|
|
25
|
+
<text x="595" y="265" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="25" font-weight="800" text-anchor="start">把目标变成受控业务动作</text>
|
|
26
|
+
<rect x="595" y="294" width="410" height="64" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
27
|
+
<rect x="611" y="311" width="30" height="30" rx="8" fill="#ddf4ff"/>
|
|
28
|
+
<text x="626" y="333" fill="#0969da" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">1</text>
|
|
29
|
+
<text x="657" y="321" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">可信身份</text>
|
|
30
|
+
<text x="657" y="344" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">这次操作代表谁</text>
|
|
31
|
+
<rect x="595" y="372" width="410" height="64" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
32
|
+
<rect x="611" y="389" width="30" height="30" rx="8" fill="#ddf4ff"/>
|
|
33
|
+
<text x="626" y="411" fill="#0969da" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">2</text>
|
|
34
|
+
<text x="657" y="399" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">能力选择</text>
|
|
35
|
+
<text x="657" y="422" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">只使用已接入能力</text>
|
|
36
|
+
<rect x="595" y="450" width="410" height="64" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
37
|
+
<rect x="611" y="467" width="30" height="30" rx="8" fill="#fff8c5"/>
|
|
38
|
+
<text x="626" y="489" fill="#9a6700" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">3</text>
|
|
39
|
+
<text x="657" y="477" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">风险与审批</text>
|
|
40
|
+
<text x="657" y="500" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">该停下时先交给人</text>
|
|
41
|
+
<rect x="595" y="528" width="410" height="64" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
42
|
+
<rect x="611" y="545" width="30" height="30" rx="8" fill="#ddf4ff"/>
|
|
43
|
+
<text x="626" y="567" fill="#0969da" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">4</text>
|
|
44
|
+
<text x="657" y="555" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="19" font-weight="750" text-anchor="start">审计留痕</text>
|
|
45
|
+
<text x="657" y="578" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="15" font-weight="500" text-anchor="start">对话与执行过程可查</text>
|
|
46
|
+
<path d="M 1035 412 H 1095" fill="none" stroke="#1f883d" stroke-width="4" marker-end="url(#overview-arrow)"/>
|
|
47
|
+
<rect x="1110" y="185" width="410" height="455" rx="18" fill="#f6f8fa" stroke="#d0d7de" stroke-width="2"/>
|
|
48
|
+
<text x="1140" y="225" fill="#1f883d" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="17" font-weight="750" text-anchor="start">03 · 已有业务系统</text>
|
|
49
|
+
<text x="1140" y="265" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="25" font-weight="800" text-anchor="start">原系统完成真实执行</text>
|
|
50
|
+
<rect x="1140" y="295" width="160" height="92" rx="12" fill="#ddf4ff" stroke="#d0d7de" stroke-width="2"/>
|
|
51
|
+
<text x="1158" y="330" fill="#0969da" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">商城</text>
|
|
52
|
+
<text x="1158" y="360" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">商品 · 订单 · 售后</text>
|
|
53
|
+
<rect x="1320" y="295" width="160" height="92" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
54
|
+
<text x="1338" y="330" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">SaaS</text>
|
|
55
|
+
<text x="1338" y="360" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">账号 · 门店 · 工单</text>
|
|
56
|
+
<rect x="1140" y="407" width="160" height="92" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
57
|
+
<text x="1158" y="442" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">CRM</text>
|
|
58
|
+
<text x="1158" y="472" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">客户 · 跟进 · 标签</text>
|
|
59
|
+
<rect x="1320" y="407" width="160" height="92" rx="12" fill="#ffffff" stroke="#d0d7de" stroke-width="2"/>
|
|
60
|
+
<text x="1338" y="442" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="20" font-weight="800" text-anchor="start">ERP</text>
|
|
61
|
+
<text x="1338" y="472" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="start">库存 · 采购 · 申请</text>
|
|
62
|
+
<rect x="1140" y="526" width="340" height="76" rx="12" fill="#dafbe1" stroke="#1f883d" stroke-width="2"/>
|
|
63
|
+
<text x="1310" y="558" fill="#116329" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16" font-weight="800" text-anchor="middle">执行完成</text>
|
|
64
|
+
<text x="1310" y="584" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="14" font-weight="500" text-anchor="middle">结果写回原系统,并留下任务记录</text>
|
|
65
|
+
<rect x="80" y="685" width="1440" height="112" rx="16" fill="#eef2f5" stroke="#d0d7de" stroke-width="2"/>
|
|
66
|
+
<circle cx="135" cy="730" r="20" fill="#ffffff" stroke="#1f883d" stroke-width="2"/>
|
|
67
|
+
<text x="135" y="736" fill="#116329" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">1</text>
|
|
68
|
+
<text x="165" y="736" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">自然语言会话</text>
|
|
69
|
+
<path d="M 357 730 H 387" fill="none" stroke="#1f883d" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
70
|
+
<circle cx="422" cy="730" r="20" fill="#ffffff" stroke="#1f883d" stroke-width="2"/>
|
|
71
|
+
<text x="422" y="736" fill="#116329" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">2</text>
|
|
72
|
+
<text x="452" y="736" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">可信业务身份</text>
|
|
73
|
+
<path d="M 644 730 H 674" fill="none" stroke="#1f883d" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
74
|
+
<circle cx="709" cy="730" r="20" fill="#ffffff" stroke="#1f883d" stroke-width="2"/>
|
|
75
|
+
<text x="709" y="736" fill="#116329" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">3</text>
|
|
76
|
+
<text x="739" y="736" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">已允许的能力</text>
|
|
77
|
+
<path d="M 931 730 H 961" fill="none" stroke="#1f883d" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
78
|
+
<circle cx="996" cy="730" r="20" fill="#ffffff" stroke="#1f883d" stroke-width="2"/>
|
|
79
|
+
<text x="996" y="736" fill="#116329" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">4</text>
|
|
80
|
+
<text x="1026" y="736" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">原系统权限校验</text>
|
|
81
|
+
<path d="M 1218 730 H 1248" fill="none" stroke="#1f883d" stroke-width="3" marker-end="url(#overview-arrow)"/>
|
|
82
|
+
<circle cx="1283" cy="730" r="20" fill="#1f883d" stroke="#1f883d" stroke-width="2"/>
|
|
83
|
+
<text x="1283" y="736" fill="#ffffff" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15" font-weight="800" text-anchor="middle">5</text>
|
|
84
|
+
<text x="1313" y="736" fill="#111820" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="700" text-anchor="start">真实结果与留痕</text>
|
|
85
|
+
<text x="800" y="770" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="17" font-weight="500" text-anchor="middle">从一句话到真实业务结果,每一步都能回头核对</text>
|
|
86
|
+
<text x="800" y="854" fill="#667085" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif" font-size="18" font-weight="650" text-anchor="middle">BailingHub 管“AI 能够到哪里”,最终权限和业务规则仍由你的系统判断。</text>
|
|
87
|
+
</svg>
|
|
@@ -18,7 +18,7 @@ services:
|
|
|
18
18
|
retries: 30
|
|
19
19
|
|
|
20
20
|
demo-business:
|
|
21
|
-
image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.
|
|
21
|
+
image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.6.0}
|
|
22
22
|
environment:
|
|
23
23
|
DEMO_HOST: 0.0.0.0
|
|
24
24
|
DEMO_PORT: 19080
|
|
@@ -29,7 +29,7 @@ services:
|
|
|
29
29
|
- "${BAILING_DEMO_PUBLIC_PORT:-19080}:19080"
|
|
30
30
|
|
|
31
31
|
bailinghub:
|
|
32
|
-
image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.
|
|
32
|
+
image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.6.0}
|
|
33
33
|
depends_on:
|
|
34
34
|
mysql:
|
|
35
35
|
condition: service_healthy
|
|
@@ -25,10 +25,14 @@ JavaScript, local plugin settings, URLs, screenshots, or logs.
|
|
|
25
25
|
|
|
26
26
|
## 2. Client registration
|
|
27
27
|
|
|
28
|
-
Create a BailingHub client with a stable public `app_id` such as `merchant-agent`,
|
|
29
|
-
|
|
30
|
-
rate limit.
|
|
31
|
-
|
|
28
|
+
Create a BailingHub client with a stable public `app_id` such as `merchant-agent`, one stable,
|
|
29
|
+
account- and tenant-neutral business HTTPS `agent_authorize_url`, the minimum `allowed_routes`,
|
|
30
|
+
`enabled=true`, and a reasonable rate limit. The local plugin never asks for a business URL. If the
|
|
31
|
+
business system has multiple accounts or tenants, this single entry point owns login, account
|
|
32
|
+
switching, and tenant selection. The backend then derives trusted identity from the resulting
|
|
33
|
+
server session; neither the local model nor a URL parameter may select the business subject.
|
|
34
|
+
Production authorization pages require HTTPS. Explicit-port `127.0.0.1` or `::1` HTTP URLs are
|
|
35
|
+
allowed only for local development.
|
|
32
36
|
|
|
33
37
|
## 3. Flow
|
|
34
38
|
|
|
@@ -47,10 +51,11 @@ Local SDK BailingHub business page/backend
|
|
|
47
51
|
```
|
|
48
52
|
|
|
49
53
|
The SDK creates random state, a PKCE verifier/challenge, and a random loopback callback. Core
|
|
50
|
-
appends only `authorization_id` to the registered business page.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
appends only `authorization_id` to the registered business page. That page requires login and, when
|
|
55
|
+
needed, lets the user switch account or select an authorized tenant. The business backend derives
|
|
56
|
+
the trusted principal from the resulting current server session, approves or denies the request,
|
|
57
|
+
and returns the Core-generated redirect. The SDK exchanges the one-time code with PKCE and stores
|
|
58
|
+
the resulting session in a secure local credential store.
|
|
54
59
|
|
|
55
60
|
## 4. Endpoints
|
|
56
61
|
|
|
@@ -154,7 +159,9 @@ authority changes. Business tool endpoints still revalidate current permission o
|
|
|
154
159
|
## 5. Business-page rules
|
|
155
160
|
|
|
156
161
|
- The page belongs to the business system; the SDK does not inject a universal UI.
|
|
157
|
-
-
|
|
162
|
+
- Use one stable entry point for the Client App, not a different URL per account, tenant, or store.
|
|
163
|
+
- Require the normal business login before consent. Let a signed-in user switch account and select
|
|
164
|
+
only a tenant that the backend confirms the account may access.
|
|
158
165
|
- Show the current account, tenant, device, and requested workspace clearly.
|
|
159
166
|
- Keep the Client Token in the backend; the page holds only `authorization_id`.
|
|
160
167
|
- Use `Cache-Control: no-store` and never export tokens to analytics or error reporting.
|
|
@@ -173,3 +180,12 @@ authority changes. Business tool endpoints still revalidate current permission o
|
|
|
173
180
|
|
|
174
181
|
On refresh failure, never fall back to an admin token, Client Token, or anonymous access. Isolate
|
|
175
182
|
the invalid session and require a new browser authorization.
|
|
183
|
+
|
|
184
|
+
A local multi-connection implementation may use `connectionName` as a selector, but it is not a
|
|
185
|
+
trusted identity claim. When a new authorization under the same public binding (Hub +
|
|
186
|
+
`client_app_id` + workspace) yields the same trusted `on_behalf_of`, the SDK may revoke and remove
|
|
187
|
+
the older local connection. Different `on_behalf_of` values remain independent. If the new
|
|
188
|
+
authorization succeeded but revoking or removing the older connection failed, the SDK must retain
|
|
189
|
+
a recoverable state and return `cleanupRequired`. Do not reauthorize in that state; clean up the
|
|
190
|
+
reported old connection first. Core does not turn this local deduplication rule into a global
|
|
191
|
+
cross-device session-uniqueness constraint.
|
package/docs/AGENT_AUTH_API.md
CHANGED
|
@@ -26,11 +26,15 @@ Agent Session。BailingHub 提供协议与服务端 SDK 方法;业务系统负
|
|
|
26
26
|
中枢管理员在“接入方”创建应用并配置:
|
|
27
27
|
|
|
28
28
|
- `app_id`:稳定的公开客户端标识,例如 `merchant-agent`;
|
|
29
|
-
- `agent_authorize_url
|
|
30
|
-
`https://business.example.com/agent/authorize
|
|
29
|
+
- `agent_authorize_url`:业务系统自己的一个稳定、统一 HTTPS 授权入口,例如
|
|
30
|
+
`https://business.example.com/agent/authorize`;它不能绑定具体账号、租户或门店;
|
|
31
31
|
- `allowed_routes`:该应用最多可申请的 route;
|
|
32
32
|
- `enabled=true` 与合理限速。
|
|
33
33
|
|
|
34
|
+
本地插件不会填写业务 URL。业务系统存在多账号或多租户时,统一授权入口负责完成登录、切换账号和
|
|
35
|
+
选择租户;业务后端再从所选结果对应的当前服务端登录态派生可信身份,不能让本地模型或 URL 参数
|
|
36
|
+
直接指定业务主体。
|
|
37
|
+
|
|
34
38
|
生产授权页只允许 HTTPS。本机开发可以使用带显式端口的 `127.0.0.1` 或 `::1` HTTP URL。
|
|
35
39
|
|
|
36
40
|
## 3. 授权流程
|
|
@@ -52,8 +56,8 @@ Agent Session。BailingHub 提供协议与服务端 SDK 方法;业务系统负
|
|
|
52
56
|
1. SDK 生成随机 `state`、PKCE verifier/challenge 和随机 loopback callback;
|
|
53
57
|
2. Core 创建 10 分钟有效的授权请求,返回业务授权页 URL;
|
|
54
58
|
3. Core 只向配置好的授权页追加 `authorization_id`;
|
|
55
|
-
4.
|
|
56
|
-
5. 业务后端用 Client Token
|
|
59
|
+
4. 业务页要求用户先完成业务系统登录,并在需要时切换账号或选择当前账号有权访问的租户;
|
|
60
|
+
5. 业务后端用 Client Token 查询上下文,并从选择完成后的当前服务端登录态推导可信身份;
|
|
57
61
|
6. 批准后 Core 返回锁定 callback 的 `redirect_uri`,浏览器跳转回本机;
|
|
58
62
|
7. SDK 用一次性 code 和 PKCE verifier 换取 Agent Session;
|
|
59
63
|
8. 后续 Runtime 请求使用短期 access token,SDK 用轮换 refresh token 续期。
|
|
@@ -169,7 +173,9 @@ access token 默认 15 分钟有效,refresh session 默认 30 天有效;每
|
|
|
169
173
|
## 5. 业务授权页实现规则
|
|
170
174
|
|
|
171
175
|
- 页面属于业务系统,不由 SDK 自动注入;可以完全继承业务系统自己的 UI 风格;
|
|
172
|
-
-
|
|
176
|
+
- 同一 Client App 使用一个稳定、统一的入口,不为每个账号、租户或门店配置不同 URL;
|
|
177
|
+
- 未登录先跳业务登录,登录完成后回到同一授权请求;已登录用户可在这里切换账号,并从服务端确认
|
|
178
|
+
其有权访问的租户中进行选择;
|
|
173
179
|
- 明确展示当前账号、租户、设备名和申请的 workspace;
|
|
174
180
|
- 授权页前端只持有 `authorization_id`,Client Token 只在后端;
|
|
175
181
|
- 所有响应使用 `Cache-Control: no-store`,不要在分析、监控或错误上报中记录 token;
|
|
@@ -188,3 +194,9 @@ access token 默认 15 分钟有效,refresh session 默认 30 天有效;每
|
|
|
188
194
|
|
|
189
195
|
客户端遇到刷新失败不得回退为管理员 Token、Client Token 或匿名调用;应清理/隔离失效会话并要求
|
|
190
196
|
用户重新执行浏览器授权。
|
|
197
|
+
|
|
198
|
+
本机多连接实现可以用 `connectionName` 选择连接,但它不是可信身份声明。若同一公开绑定
|
|
199
|
+
(Hub + `client_app_id` + workspace)再次授权得到相同可信 `on_behalf_of`,SDK 可撤销并移除旧的
|
|
200
|
+
本机连接;不同 `on_behalf_of` 保持独立。若新授权已成功、但旧会话撤销或本地清理失败,SDK 应保留
|
|
201
|
+
可恢复状态并返回 `cleanupRequired`:此时不要重复授权,应先按返回信息清理旧连接。Core 不把该
|
|
202
|
+
本机去重规则提升为跨设备的全局会话唯一约束。
|
|
@@ -33,8 +33,8 @@ sends its login cookie, password, or API secret to DSH, and DSH never calls busi
|
|
|
33
33
|
| `hubUrl` | host deployer | host plugin settings | No; public BailingHub HTTPS origin |
|
|
34
34
|
| `clientAppId` | host deployer | host plugin settings | No; BailingHub client `app_id` |
|
|
35
35
|
| `workspace` | host deployer | host plugin settings | No; an allowed BailingHub `route_key` |
|
|
36
|
-
| `connectionName` | local user | local SDK registry | No; local
|
|
37
|
-
| Agent authorization URL | business developer / Hub admin | BailingHub client config | No,
|
|
36
|
+
| `connectionName` | local user | local SDK registry | No; readable selector for one local connection instance |
|
|
37
|
+
| Agent authorization URL | business developer / Hub admin | BailingHub client config | No; one neutral entry per app, never entered by end users |
|
|
38
38
|
| business Client Token | business backend | server-side secret store | **Yes; never browser or DSH config** |
|
|
39
39
|
| Tool Provider Secret | business backend and BailingHub | both secret stores | **Yes; never DSH** |
|
|
40
40
|
| Agent access/refresh token | generic SDK | Keychain or explicit secure store | **Yes; never plugin settings** |
|
|
@@ -48,8 +48,9 @@ the end user to paste a BailingHub Client Token, Tool Provider Secret, or busine
|
|
|
48
48
|
|
|
49
49
|
### 3.1 Deploy Core and apply migrations
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
Full conversation archives require BailingHub0.6.0, Agent Client SDK0.4.0 and a compatible client.
|
|
52
|
+
Apply migrations055/056 and the new057 from one deployment step; runtime startup does not apply them.
|
|
53
|
+
Confirm that health and readiness pass, no migration is pending, the console can edit
|
|
53
54
|
Agent Client settings, and production traffic uses HTTPS.
|
|
54
55
|
|
|
55
56
|
Never copy databases, tokens, business domains, or route configuration from a maintainer's
|
|
@@ -72,8 +73,10 @@ Client setting.
|
|
|
72
73
|
### 3.3 Configure a route
|
|
73
74
|
|
|
74
75
|
1. Set `tools.agent_direct.enabled=true`.
|
|
75
|
-
2. Add only explicitly allowed write operation IDs to `write_tools
|
|
76
|
-
|
|
76
|
+
2. Add only explicitly allowed write operation IDs to `write_tools`. For a large catalog, use
|
|
77
|
+
**Select all current write operations** in the console; it stores an exact snapshot of the
|
|
78
|
+
current operation IDs and does not authorize future writes automatically. Read-only tools do
|
|
79
|
+
not need to be listed there.
|
|
77
80
|
3. Inherit approval requirements from the ACC declaration. Use `force_approval_tools` only to
|
|
78
81
|
make selected writes stricter.
|
|
79
82
|
4. Enable Local Agent Runtime and optionally set host-specific instructions and an active tool
|
|
@@ -89,7 +92,7 @@ In Clients, create one Agent Client application:
|
|
|
89
92
|
|
|
90
93
|
- a stable public `app_id`, for example `merchant-agent`;
|
|
91
94
|
- the minimum `allowed_routes` set;
|
|
92
|
-
-
|
|
95
|
+
- one stable, account- and tenant-neutral HTTPS business authorization entry point, for example
|
|
93
96
|
`https://business.example.com/agent/authorize`;
|
|
94
97
|
- a reasonable rate limit and `enabled=true`.
|
|
95
98
|
|
|
@@ -97,12 +100,27 @@ BailingHub displays the Client Token once. Give it only to the business backend
|
|
|
97
100
|
the authorization page. Never put it in DSH settings, browser JavaScript, a URL, documentation,
|
|
98
101
|
or screenshots.
|
|
99
102
|
|
|
103
|
+
After creation, open **Agent Clients** in the console to:
|
|
104
|
+
|
|
105
|
+
- inspect which existing clients enable Agent authorization and their allowed workspaces;
|
|
106
|
+
- inspect device label, trusted business principal, last activity, and expiry for Agent Sessions;
|
|
107
|
+
- remotely revoke a lost or no-longer-authorized Agent Session;
|
|
108
|
+
- generate secret-free JSON or DSH commands from
|
|
109
|
+
`hubUrl + clientAppId + workspace + connectionName`;
|
|
110
|
+
- view recent conversation, Agent Run, tool-call, token, failure-rate, and approval aggregates.
|
|
111
|
+
|
|
112
|
+
This page projects the existing client, Agent Session, and Agent Run ledgers. It does not create a
|
|
113
|
+
second Client resource and is not the Executor feature. Generated configuration contains no Client
|
|
114
|
+
Token, Agent token, or model key.
|
|
115
|
+
|
|
100
116
|
## 4. Business developer: bind trusted identity
|
|
101
117
|
|
|
102
118
|
The BailingHub SDK provides server-side Agent Auth methods; it does not inject one universal UI
|
|
103
|
-
into every business system. The business system owns
|
|
104
|
-
permission model.
|
|
105
|
-
|
|
119
|
+
into every business system. The business system owns one stable entry point that follows its normal
|
|
120
|
+
login and permission model. It handles login and, when needed, account switching plus selection
|
|
121
|
+
from tenants the backend confirms are accessible. The backend derives `principal`, `on_behalf_of`,
|
|
122
|
+
and allowed routes from the resulting current authenticated server session. Do not register a
|
|
123
|
+
different authorization URL per account, tenant, or store.
|
|
106
124
|
|
|
107
125
|
1. BailingHub appends only `authorization_id` to the configured page URL.
|
|
108
126
|
2. The page sends only that ID to its own backend.
|
|
@@ -165,7 +183,9 @@ export BAILINGHUB_CONNECTION_NAME='default'
|
|
|
165
183
|
```
|
|
166
184
|
|
|
167
185
|
`hubUrl` is the Hub origin without `/console`, `/agent-api`, or a business path. `workspace` is a
|
|
168
|
-
route key, not a business domain, tenant ID, or chat-entry ID.
|
|
186
|
+
route key, not a business domain, tenant ID, or chat-entry ID. Plugin settings contain no business
|
|
187
|
+
URL: BailingHub returns the registered page for `clientAppId`, and the user confirms the business
|
|
188
|
+
account and tenant only on that page.
|
|
169
189
|
|
|
170
190
|
Run in DSH:
|
|
171
191
|
|
|
@@ -176,17 +196,64 @@ Run in DSH:
|
|
|
176
196
|
|
|
177
197
|
Login creates a random loopback PKCE callback and opens the business authorization page. The SDK
|
|
178
198
|
uses macOS Keychain; a Linux/POSIX file fallback is explicit opt-in and requires mode `0600`.
|
|
179
|
-
|
|
199
|
+
Windows uses native CurrentUser DPAPI protection. Consult the independent SDK/plugin compatibility matrix for platform requirements.
|
|
180
200
|
|
|
181
201
|
Configure the model provider and model API key separately in DSH. The BailingHub plugin neither
|
|
182
202
|
reads nor manages model-provider keys.
|
|
183
203
|
|
|
184
|
-
## 6. Multiple Hubs and
|
|
204
|
+
## 6. Multiple Hubs, workspaces, and same-binding identity instances
|
|
205
|
+
|
|
206
|
+
The public binding is `Hub + clientAppId + workspace`; `connectionName` is only a local connection
|
|
207
|
+
selector, not a trusted account, tenant or store identity. Multiple instances may share the same
|
|
208
|
+
public binding, but every instance requires separate
|
|
209
|
+
browser authorization. Core does not trust the local instance name or id: the trusted subject
|
|
210
|
+
still comes only from business-backend approval as `principal` and `on_behalf_of`.
|
|
211
|
+
|
|
212
|
+
Each login requests one workspace for least privilege. For another Hub, route, or business identity
|
|
213
|
+
on the same public binding, use a console-generated command or run these user commands in DSH:
|
|
214
|
+
|
|
215
|
+
```text
|
|
216
|
+
/bailinghub connections add "identity-a" https://hub-a.example.com merchant-agent order-assistant
|
|
217
|
+
/bailinghub connections list
|
|
218
|
+
/bailinghub connections use "identity-a"
|
|
219
|
+
/bailinghub login
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Connection selection is a user command, not a model tool. It selects the connection-management and
|
|
223
|
+
login target; it does not grant business scope to a new conversation. DSH0.4.0 requires a separate
|
|
224
|
+
explicit scope selection before the first message. Existing conversations retain their original scope. `/bailinghub use
|
|
225
|
+
<workspace>` moves only within workspaces already granted to the current authorization and is not
|
|
226
|
+
a multi-connection selector. `/bailinghub connections remove <name>` first revokes the remote
|
|
227
|
+
Agent Session and deletes that instance's local credentials only after success; a failed remote
|
|
228
|
+
revoke keeps that instance for retry. Never copy access or refresh-token files between connections.
|
|
229
|
+
|
|
230
|
+
On one device, when a newly authorized connection under the same public binding yields the same
|
|
231
|
+
trusted `on_behalf_of` as an older connection, the SDK revokes and removes the older local
|
|
232
|
+
connection after the new authorization succeeds. Different identities remain independent. If the
|
|
233
|
+
new authorization succeeded but revoking or removing the older connection failed, the result marks
|
|
234
|
+
`cleanupRequired` and retains a recoverable state. Do not reauthorize; clean up the reported old
|
|
235
|
+
connection first. Core still keys `bz_agent_sessions` by `session_id` and performs no global
|
|
236
|
+
cross-device identity deduplication, so sessions on different devices can be revoked and audited
|
|
237
|
+
independently.
|
|
238
|
+
|
|
239
|
+
### 6.1 Select conversation scope before the first message
|
|
240
|
+
|
|
241
|
+
Authorize the intended accounts separately, then obtain each `connectionKey` from `/bailinghub connections list`. Before the first user message in a new conversation, run:
|
|
242
|
+
|
|
243
|
+
```text
|
|
244
|
+
/bailinghub scope set <connectionKey-for-A> <connectionKey-for-B>
|
|
245
|
+
/bailinghub scope
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Use the actual returned keys, not these placeholders or account labels. Select only A to allow only A; `/bailinghub scope none` means ordinary chat without Hub access. Wait for successful selection before sending business requests. DSH0.4.0 accepts one Hub/clientAppId/workspace binding, not a cross-system or cross-route group.
|
|
249
|
+
|
|
250
|
+
The first user message fixes the scope; changing it requires a new conversation. Custom hosts use `setSessionScope/getSessionScope/restoreSessionScope`. Failed restoration must never select a default or remaining subset.
|
|
251
|
+
|
|
252
|
+
### 6.2 Read the conversation and retry synchronization
|
|
253
|
+
|
|
254
|
+
Compatible hosts use SDK0.4.0 to capture actual visible text, preserving the original Session, durable history and separate pending records. Administrators open Tasks → Conversations → Client conversations and follow each turn into the original account's execution record.
|
|
185
255
|
|
|
186
|
-
|
|
187
|
-
local alias. The first public version authorizes one workspace per connection for least
|
|
188
|
-
privilege. Use a different alias and a new browser authorization for another Hub or route. Never
|
|
189
|
-
copy access/refresh-token files between connections.
|
|
256
|
+
Use `/bailinghub archive status` to inspect synchronization and `/bailinghub archive sync` to retry. After reopening offline, the same runtime and Session can revalidate the original scope and synchronize when connectivity returns. Confirmed revocation keeps the whole group blocked. Show storage failures and history gaps separately; never resend user messages or repeat business actions merely to repair the archive. Restoring an archive does not restore an invocation lost across process restarts. See the [user guide](user-guide/conversations.en.md) and [archive API](AGENT_CONVERSATION_AUDIT.en.md).
|
|
190
257
|
|
|
191
258
|
## 7. Minimum acceptance
|
|
192
259
|
|
|
@@ -204,7 +271,12 @@ copy access/refresh-token files between connections.
|
|
|
204
271
|
- **`invalid_client`:** check `clientAppId`, enabled state, authorization URL, and allowed route.
|
|
205
272
|
- **Authorization page does not open:** production requires HTTPS; only loopback development may
|
|
206
273
|
use port-qualified `127.0.0.1` or `::1` HTTP.
|
|
207
|
-
- **
|
|
274
|
+
- **A fixed tenant or store opens:** `agent_authorize_url` is misconfigured. Register the business
|
|
275
|
+
system's neutral authorization entry point, perform account/tenant choice inside that page, and
|
|
276
|
+
do not add a business URL to plugin settings.
|
|
277
|
+
- **`cleanupRequired`:** the new identity authorization already succeeded. Do not authorize again;
|
|
278
|
+
retry revoke or removal for the reported old connection.
|
|
279
|
+
- **Authorized but no tools:** first confirm a nonempty scope was selected before this conversation’s first message; login or default-connection switching alone does not grant scope. Then check the Tool Provider, `tools.agent_direct.enabled`, audience
|
|
208
280
|
policy, and Local Agent Runtime switch.
|
|
209
281
|
- **A write requires approval:** inspect the ACC declaration first. `force_approval_tools` may
|
|
210
282
|
only make policy stricter.
|