bailinghub 0.5.1 → 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 -207
- 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_CLIENT_QUICKSTART.en.md +29 -8
- package/docs/AGENT_CLIENT_QUICKSTART.md +25 -6
- package/docs/AGENT_CONVERSATION_AUDIT.en.md +194 -0
- package/docs/AGENT_CONVERSATION_AUDIT.md +111 -0
- package/docs/CHANGELOG.en.md +11 -0
- package/docs/CHANGELOG.md +11 -0
- package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
- package/docs/INDEPENDENT_VALIDATION.md +4 -4
- package/docs/README.en.md +5 -0
- package/docs/README.md +5 -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 +2 -0
- package/scripts/check-image-tags.sh +1 -1
- package/scripts/check-release-consistency.test.mjs +2 -2
- 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 +1 -0
- package/scripts/verify-github-repo.mjs +1 -0
- package/sql/057_agent_conversation_audit.sql +55 -0
- package/src/app/agent-conversation-audit.ts +30 -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-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-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 +3 -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-r10QUjLQ.js → Accounts-Ca_VnSu9.js} +1 -1
- package/web/console/assets/{AgentClients-UTTqbkjy.js → AgentClients-BPIvlLYY.js} +1 -1
- package/web/console/assets/{Approvals-BGKkYIya.js → Approvals-CMvPWacY.js} +1 -1
- package/web/console/assets/{Audit-CQmjOAoO.js → Audit-CIRqOCnL.js} +1 -1
- package/web/console/assets/{BrandLockup-BF_0pCa3.js → BrandLockup-BrytmTTH.js} +1 -1
- package/web/console/assets/{Channels-C4yZE67F.js → Channels-CApxH2TB.js} +1 -1
- package/web/console/assets/{ChatEntries-OqsqLjU6.js → ChatEntries-CJon3bWJ.js} +1 -1
- package/web/console/assets/{Clients-Dv3sv51C.js → Clients-BSA1rlTB.js} +1 -1
- package/web/console/assets/{Cost-C_-kiH59.js → Cost-BbhlQFP8.js} +1 -1
- package/web/console/assets/{Credentials-CPTEAiV6.js → Credentials-kqr1W0K7.js} +1 -1
- package/web/console/assets/{Diagnostics-O-NKFOeI.js → Diagnostics-Kljt9XTH.js} +1 -1
- package/web/console/assets/{Executors-GVIAiNgv.js → Executors-DnsB-Xz4.js} +1 -1
- package/web/console/assets/{Kb-BsCWkJI1.js → Kb-DLZSAFWP.js} +2 -2
- package/web/console/assets/{Login-VFjkHNMr.js → Login-DiTjPWmN.js} +1 -1
- package/web/console/assets/{Projects-Ds-sJwfy.js → Projects-CXcVCgCD.js} +1 -1
- package/web/console/assets/{Routes-Wwurw2UU.js → Routes-DN9_d9Po.js} +1 -1
- package/web/console/assets/Runs-Cwbe6thL.js +3 -0
- package/web/console/assets/Runs-D8UmjP5G.css +1 -0
- package/web/console/assets/{Setup-BLelw0_V.js → Setup-FqoCKmfZ.js} +1 -1
- package/web/console/assets/{Shell-CvaeK4j_.js → Shell-BEqpONiy.js} +1 -1
- package/web/console/assets/{StorageBuckets-Dv6u47yO.js → StorageBuckets-CkORbYXY.js} +1 -1
- package/web/console/assets/{SystemSettings-B9K7zaDU.js → SystemSettings-gTQAazu7.js} +1 -1
- package/web/console/assets/{SystemStatus-H-oKDo-y.js → SystemStatus-DAmUUNqO.js} +1 -1
- package/web/console/assets/{Targets-CCFhjPKf.js → Targets-CZmDcjsE.js} +1 -1
- package/web/console/assets/{Tools-D0H9xpFH.js → Tools-CIHInlHL.js} +1 -1
- package/web/console/assets/{index-CuoTgf6q.js → index-BkLbd7Cc.js} +2 -2
- package/web/console/assets/{index-DyX9Bz3V.js → index-QnmD7N7F.js} +1 -1
- package/web/console/assets/{request-F5lXa7Ro.js → request-r7GHVJzw.js} +1 -1
- package/web/console/assets/{schema-DUWaWqPn.js → schema-BVn_hB7M.js} +1 -1
- package/web/console/assets/vendor-mammoth-BUEEDX6A.js +231 -0
- package/web/console/index.html +1 -1
- package/web-admin/package-lock.json +3 -3
- package/web-admin/src/components/ClientConversations.vue +244 -0
- package/web-admin/src/components/conversation-audit.ts +121 -0
- package/web-admin/src/pages/Runs.vue +73 -17
- package/web-admin/tests/conversation-audit.fixture.mjs +182 -0
- package/web-admin/tests/conversation-audit.test.mjs +93 -0
- package/web/console/assets/Runs-4zDD9VOC.css +0 -1
- package/web/console/assets/Runs-DLPzXmSy.js +0 -3
- package/web/console/assets/vendor-mammoth-nXG51Cg7.js +0 -231
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Agent 完整对话审计 v1
|
|
2
|
+
|
|
3
|
+
[English protocol and examples](AGENT_CONVERSATION_AUDIT.en.md)
|
|
4
|
+
|
|
5
|
+
本接口归档本地智能体与用户之间的**可见对话**,将每轮沟通关联到各授权独立的 run。
|
|
6
|
+
它不合并 Agent Session、业务身份、thread、记忆、工具授权、审批或 invocation,也不上传隐藏推理。
|
|
7
|
+
正文单独写入 `bz_agent_conversation_events`,不写入各门店的 `bz_messages` 或模型记忆。
|
|
8
|
+
|
|
9
|
+
部署方需要按自己的 Core 升级流程显式应用新增迁移 `sql/057_agent_conversation_audit.sql`;
|
|
10
|
+
运行时启动不会自动迁移。旧宿主可以不提供可选的 `ConfigStore.agentConversationAudit`,此时新接口明确返回不可用。
|
|
11
|
+
|
|
12
|
+
## 创建与逐成员确认
|
|
13
|
+
|
|
14
|
+
所有写接口继续使用现有 Agent access bearer 鉴权,Token 不进入归档 DTO。
|
|
15
|
+
|
|
16
|
+
`POST /agent-api/v1/conversation-audits` 请求字段:
|
|
17
|
+
|
|
18
|
+
| 字段 | 约定 |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| `client_archive_id` | 宿主持久保存的随机 UUID。 |
|
|
21
|
+
| `client_conversation_id` | 与原 startTurn 相同的客户端稳定会话 ID。 |
|
|
22
|
+
| `route` | 当前已授权的工作区路由。 |
|
|
23
|
+
| `member_session_ids` | 冻结的 1–64 个 Agent Session UUID,创建者必须在内。 |
|
|
24
|
+
| `member_labels` | 可选的 session UUID → 显示名称映射,每个名称最多 128 字符;不能用于身份或权限判断。 |
|
|
25
|
+
|
|
26
|
+
创建幂等键为 `creator_session_id + route + client_archive_id`,重试时完整冻结输入必须相同;
|
|
27
|
+
成员、标签或原会话 ID 改变均返回 `409`,不能修改原归档。
|
|
28
|
+
客户端会话 ID 本身不是归属证明,不同创建者不会因为它相同而自动合并。
|
|
29
|
+
|
|
30
|
+
创建者通过创建请求确认本人。其他成员分别用**自己的 bearer**调用
|
|
31
|
+
`POST /agent-api/v1/conversation-audits/:id/confirm`,请求体为 `{}`,不能在 body 中代填另一个身份。
|
|
32
|
+
创建和确认均返回 `schema: bailing.agent-conversation-audit.v1` 及下文会话头。
|
|
33
|
+
全部成员确认前 `state=enrolling`,完成后为 `ready`;每次写入仍会重新校验授权有效性。
|
|
34
|
+
|
|
35
|
+
只有创建者可以追加正文。只知道归档 UUID 或客户端会话字符串的人无法确认成员、写入或读取正文,
|
|
36
|
+
因此无需另发 enrollment secret。正文写事务会锁定归档、client、route 和成员 Session,
|
|
37
|
+
复核所有成员未撤销、refresh 生命周期有效、原主体快照未改变,且 client/session 的路由白名单交集、
|
|
38
|
+
路由启用和 audience 仍允许访问。access token 刷新可以沿用同一 Session,替换身份不能替换旧成员。
|
|
39
|
+
|
|
40
|
+
## 追加可见事件
|
|
41
|
+
|
|
42
|
+
`POST /agent-api/v1/conversation-audits/:id/events` 接收 `{ "events": [...] }`。
|
|
43
|
+
所有事件都有 `event_id`、`sequence`、`client_turn_id`、`kind`:
|
|
44
|
+
|
|
45
|
+
| kind | 额外必填字段 | 含义 |
|
|
46
|
+
| --- | --- | --- |
|
|
47
|
+
| `turn_start` | 无 | 开始一轮宿主对话。 |
|
|
48
|
+
| `user_message` | `content` | 原始可见用户文本,可记录同轮追问。 |
|
|
49
|
+
| `assistant_message` | `content` | 原始可见助手文本,可记录同轮多条公开回复。 |
|
|
50
|
+
| `run_link` | `run_id`, `member_session_id` | 关联某个冻结授权的原始 run。 |
|
|
51
|
+
| `turn_end` | `status` | `completed`、`failed` 或 `cancelled`。 |
|
|
52
|
+
|
|
53
|
+
未声明字段和事件种类一律拒绝,不接受任意 metadata、隐藏推理、凭据或工具参数字段。
|
|
54
|
+
文本保留原始字符,不静默改写或截断;宿主负责只提交用户实际可见的文本,服务端无法凭正文判断是否真实展示过。
|
|
55
|
+
|
|
56
|
+
sequence 从 1 开始严格连续,每批有序、原子写入。
|
|
57
|
+
相同 sequence、event_id 和正文的重试成功;内容冲突、复用 ID、序号缺口或轮次冲突返回 `409`,整批不落库。
|
|
58
|
+
普通消息及 turn_end 必须属于当前正在进行的轮次。
|
|
59
|
+
异步返回的 run_link 可以追加到已经开始、完成或取消的原轮次,但不能重开它,也不能改变更新轮次的状态。
|
|
60
|
+
|
|
61
|
+
run 关联必须匹配数据库中的原 Session、client、route、client_conversation_id、client_turn_id;
|
|
62
|
+
thread_id 由服务端获取。一个 run 最多属于一个完整对话归档,避免旧执行记录的返回链接产生歧义。
|
|
63
|
+
关联关系不赋予执行、重试、审批或跨授权记忆读取权限。
|
|
64
|
+
|
|
65
|
+
成功响应为 `{ "schema": "bailing.agent-conversation-audit-ack.v1", "conversation_id": "<UUID>", "last_sequence": 5 }`。
|
|
66
|
+
宿主应先持久保存归档 UUID、创建者及成员绑定、事件 ID、事件顺序和确认游标,再宣称归档成功。
|
|
67
|
+
ACK 丢失可原样重试。恢复归档队列不等于恢复 invocation 执行状态,也不能续执行未知调用 ID。
|
|
68
|
+
|
|
69
|
+
## 管理员分页读取
|
|
70
|
+
|
|
71
|
+
没有 Agent 正文读取接口;全部 Agent 归档 GET 请求返回 `404`。
|
|
72
|
+
以下接口仅供已有 `runs:read` 权限的管理员,响应设置 `Cache-Control: no-store`。
|
|
73
|
+
宿主继续负责其租户数据域隔离,不能因为字符串相同而跨租户合并数据库查询。
|
|
74
|
+
|
|
75
|
+
`GET /admin/api/conversation-audits?limit=50&offset=0` 返回 schema
|
|
76
|
+
`bailing.agent-conversation-audit-list.v1`、`items`、`has_more`、`next_offset`。
|
|
77
|
+
会话头字段为 conversation_id、client_archive_id、client_conversation_id、client_app_id、route_key、
|
|
78
|
+
state、member_count、confirmed_count、last_sequence、message_count、turn_count、last_turn_status、created_at、updated_at。
|
|
79
|
+
末轮状态初始为 null,之后是 running/completed/failed/cancelled。sequence 统计所有事件,不能当成消息数。
|
|
80
|
+
|
|
81
|
+
`GET /admin/api/conversation-audits/:id?after_sequence=0&limit=100` 返回 schema
|
|
82
|
+
`bailing.agent-conversation-audit-detail.v1`、`conversation`、`members`、`events`、has_more、next_after_sequence。
|
|
83
|
+
成员包含 session_id/display_label/confirmed;确认后有冻结的 principal/on_behalf_of。
|
|
84
|
+
事件包含提交的可见字段、服务端 created_at,run_link 还有数值 thread_id。
|
|
85
|
+
按 next_after_sequence 继续读后页,不受原 thread 前 1000 条消息限制。
|
|
86
|
+
|
|
87
|
+
旧管理员 agent-run trace 的 run、通过归属复核的工具 job trace 的 job,可选增加
|
|
88
|
+
conversation_audit_id 和 client_turn_id,用于返回完整对话。
|
|
89
|
+
原 thread/run/client/session/route 轨迹校验继续保留。
|
|
90
|
+
|
|
91
|
+
## 限额与失败语义
|
|
92
|
+
|
|
93
|
+
成员上限 64;每批 1–50 个事件;单条文本最多 64,000 个 UTF-16 code units;
|
|
94
|
+
每批 UTF-8 正文最多 256 KiB,HTTP JSON 最多 2 MiB;
|
|
95
|
+
每个归档最多 20,000 个事件、16 MiB 正文。列表每页上限 100,事件每页上限 200。
|
|
96
|
+
达到上限明确拒绝,不能把截断文本宣称为完整归档。
|
|
97
|
+
|
|
98
|
+
| HTTP | error | 含义 |
|
|
99
|
+
| --- | --- | --- |
|
|
100
|
+
| 400 | `invalid_request` | DTO 字段无效或未声明。 |
|
|
101
|
+
| 401 | `unauthorized` | 原 Agent bearer 鉴权失败。 |
|
|
102
|
+
| 403 | `conversation_audit_authorization_invalid` | 冻结授权或路由已失效。 |
|
|
103
|
+
| 404 | `conversation_audit_not_found` | 不存在或不属于当前身份,统一隐藏成员枚举信息。 |
|
|
104
|
+
| 409 | `conversation_audit_not_ready` | 成员未全部确认,不接收正文。 |
|
|
105
|
+
| 409 | `conversation_audit_conflict` | 成员、幂等内容、序号、轮次或 run 关联冲突。 |
|
|
106
|
+
| 413 | `conversation_audit_limit` | 超限,整批未落库。 |
|
|
107
|
+
| 503 | `conversation_audit_unavailable` | 可选归档仓储未提供。 |
|
|
108
|
+
| 500 | `conversation_audit_internal_error` | 内部失败,不返回原始数据库或异常详情。 |
|
|
109
|
+
|
|
110
|
+
旧 Core 未提供接口时也可能返回 `404`,适配器必须显示不支持归档。
|
|
111
|
+
业务执行成功与归档成功分别报告,不能因为前者成功而掩盖正文上传失败。
|
package/docs/CHANGELOG.en.md
CHANGED
|
@@ -22,6 +22,17 @@ Each public version should describe:
|
|
|
22
22
|
|
|
23
23
|
## Unreleased
|
|
24
24
|
|
|
25
|
+
## v0.6.0 - Follow the Conversation Through Its Business Actions
|
|
26
|
+
|
|
27
|
+
Planned release date: 2026-09-08.
|
|
28
|
+
|
|
29
|
+
- **One conversation view**: inspect synchronized user messages, intermediate explanations and final replies by turn, then open each account's original execution record.
|
|
30
|
+
- **Multiple accounts in a conversation**: with SDK / DSH 0.4.0, select authorized accounts from the same business system before chatting; the agent chooses the appropriate authorization for each action.
|
|
31
|
+
- **Existing authority stays intact**: identities, approvals and account memory remain separate. Full text is restricted to the Hub administration audit domain and is not broadcast into each account's memory.
|
|
32
|
+
- **Upgrade impact**: migration057 adds three archive tables. Business capability declarations and approval rules do not change. Clients need explicit conversation scope and durable history; follow the upgrade guide.
|
|
33
|
+
- **Verification focus**: recovery in the same runtime after an offline reopening, acknowledgement-loss deduplication, whole-group revocation, visible history gaps and late cancellation responses. A successful business action alone does not prove complete transcript capture.
|
|
34
|
+
- **Related docs**: [v0.6.0 release notes](RELEASE_NOTES_v0.6.0.en.md), [multi-account conversation guide](user-guide/conversations.en.md) and [integration contract](AGENT_CONVERSATION_AUDIT.en.md).
|
|
35
|
+
|
|
25
36
|
## v0.5.1 - Agent Client Management and Bulk Write-Operation Configuration
|
|
26
37
|
|
|
27
38
|
Planned release date: 2026-09-01.
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
## Unreleased
|
|
17
17
|
|
|
18
|
+
## v0.6.0 - 看完整沟通,再追到每次业务操作
|
|
19
|
+
|
|
20
|
+
计划发布日期:2026-09-08。
|
|
21
|
+
|
|
22
|
+
- **完整对话入口**:控制台“任务→会话”可按轮查看客户端已同步的用户输入、中间说明和最终回复,并进入每份授权的原始执行记录。
|
|
23
|
+
- **同一会话,多份授权**:配套 SDK / DSH 0.4.0 后,用户可以先选同一业务系统的 A/B 授权,Agent 按每次操作选择对应权限;Core 保存完整沟通和各自的业务轨迹。
|
|
24
|
+
- **业务权限保持原样**:各授权的业务身份、审批和记忆保持独立。完整正文只在中枢管理审计域可读,不向各账户重复广播混合回复。
|
|
25
|
+
- **升级影响**:新增迁移057的三张归档表;业务侧能力声明和审批规则无需调整。新客户端需要显式选择会话范围,归档需要配套版本及持久历史;详情见下方升级说明。
|
|
26
|
+
- **验证重点**:原会话断网重开后恢复补传、确认回包丢失不重复、撤销任一成员保持阻断、保存失败显示缺口、取消后不恢复已结束操作。单纯业务执行成功不代表对话已完整保存。
|
|
27
|
+
- **相关文档**:[v0.6.0 发布说明](RELEASE_NOTES_v0.6.0.md)、[多账户对话使用指南](user-guide/conversations.md)与[接入契约](AGENT_CONVERSATION_AUDIT.md)。
|
|
28
|
+
|
|
18
29
|
## v0.5.1 - 智能体客户端管理中心与批量写操作配置
|
|
19
30
|
|
|
20
31
|
计划发布日期:2026-09-01。
|
|
@@ -7,7 +7,7 @@ It is not certification, a benchmark, or evidence of production adoption. Passin
|
|
|
7
7
|
## Scope
|
|
8
8
|
|
|
9
9
|
- Target: the open-source BailingHub Docker demo;
|
|
10
|
-
- Stable baseline: `v0.
|
|
10
|
+
- Stable baseline: `v0.6.0`;
|
|
11
11
|
- Data: the bundled demo orders, tickets, refunds, and failure probe;
|
|
12
12
|
- Expected time: about 20 minutes after images and dependencies are available;
|
|
13
13
|
- Not required: a real model key, production API, production credential, or real business data.
|
|
@@ -32,7 +32,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
|
|
|
32
32
|
cd "$HOME/bailinghub"
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The installer pulls the official `v0.
|
|
35
|
+
The installer pulls the official `v0.6.0` images by default, generates random tokens and an admin password, starts the services, and runs the smoke test. The initial administrator is created only when the administrator table is empty; restarting, upgrading, recreating containers, or reinstalling against the same persistent database does not overwrite a changed password. The optional `/metrics` endpoint remains disabled and does not affect core validation. Keep the reported version, install mode, elapsed time, and the commands printed under `常用命令`, but never include passwords or tokens in your report. After Docker is installed, the current non-root login usually still needs the printed `sudo docker compose ...` commands; Docker group membership may not take effect until the next login.
|
|
36
36
|
|
|
37
37
|
If the default directory is already in use, choose a new empty directory instead of overwriting an existing deployment:
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@ cd "$HOME/bailinghub-validation"
|
|
|
46
46
|
### Path B: local source reproduction
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
git clone --depth 1 --branch v0.
|
|
49
|
+
git clone --depth 1 --branch v0.6.0 https://github.com/bailinghub/bailinghub.git
|
|
50
50
|
cd bailinghub
|
|
51
51
|
git rev-parse HEAD
|
|
52
52
|
export BAILING_TOKEN="$(openssl rand -hex 32)"
|
|
@@ -167,7 +167,7 @@ After the core task passes, you may continue with:
|
|
|
167
167
|
- [Trusted rich rendering and chat reliability](RELEASE_NOTES_v0.1.15.en.md).
|
|
168
168
|
- [Bounded tool runtime and resilient semantic retrieval](RELEASE_NOTES_v0.1.16.en.md).
|
|
169
169
|
- [Composable Core and Kernel Host API v1](RELEASE_NOTES_v0.3.0.en.md).
|
|
170
|
-
- [Current stable release notes](RELEASE_NOTES_v0.
|
|
170
|
+
- [Current stable release notes](RELEASE_NOTES_v0.6.0.en.md).
|
|
171
171
|
|
|
172
172
|
Select the relevant track in the same Issue form and disclose whether you received direct maintainer assistance.
|
|
173
173
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
## 验证范围
|
|
8
8
|
|
|
9
9
|
- 验证对象:BailingHub 开源版 Docker demo;
|
|
10
|
-
- 稳定基线:`v0.
|
|
10
|
+
- 稳定基线:`v0.6.0`;
|
|
11
11
|
- 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
|
|
12
12
|
- 预计用时:镜像和依赖下载完成后约 20 分钟;
|
|
13
13
|
- 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
|
|
@@ -32,7 +32,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
|
|
|
32
32
|
cd "$HOME/bailinghub"
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
脚本默认拉取 `v0.
|
|
35
|
+
脚本默认拉取 `v0.6.0` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
|
|
36
36
|
|
|
37
37
|
如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@ cd "$HOME/bailinghub-validation"
|
|
|
46
46
|
### 路径 B:本地源码复现
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
git clone --depth 1 --branch v0.
|
|
49
|
+
git clone --depth 1 --branch v0.6.0 https://github.com/bailinghub/bailinghub.git
|
|
50
50
|
cd bailinghub
|
|
51
51
|
git rev-parse HEAD
|
|
52
52
|
export BAILING_TOKEN="$(openssl rand -hex 32)"
|
|
@@ -167,7 +167,7 @@ docker compose exec -T bailinghub npm run demo:e2e
|
|
|
167
167
|
- [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
|
|
168
168
|
- [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
|
|
169
169
|
- [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
|
|
170
|
-
- [当前稳定版发布说明](RELEASE_NOTES_v0.
|
|
170
|
+
- [当前稳定版发布说明](RELEASE_NOTES_v0.6.0.md)。
|
|
171
171
|
|
|
172
172
|
扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
|
|
173
173
|
|
package/docs/README.en.md
CHANGED
|
@@ -6,6 +6,7 @@ This directory contains public documentation for the open-source BailingHub proj
|
|
|
6
6
|
|
|
7
7
|
| Document | Purpose |
|
|
8
8
|
|---|---|
|
|
9
|
+
| [user-guide/conversations.en.md](user-guide/conversations.en.md) | Multi-account conversations, full-text review and offline recovery for users. |
|
|
9
10
|
| [QUICKSTART.en.md](QUICKSTART.en.md) | Install BailingHub, run the Docker demo, create the first route, and connect the first business tool. |
|
|
10
11
|
| [DEMO.en.md](DEMO.en.md) | Docker demo walkthrough: hub, MySQL, demo business system, tool provider, audit, and trace. |
|
|
11
12
|
| [INDEPENDENT_VALIDATION.en.md](INDEPENDENT_VALIDATION.en.md) | Independent Docker demo task with objective pass criteria and a standard report path. |
|
|
@@ -16,6 +17,8 @@ This directory contains public documentation for the open-source BailingHub proj
|
|
|
16
17
|
| [AGENT_AUTH_API.md](AGENT_AUTH_API.md) | Chinese Agent Auth v1 protocol. |
|
|
17
18
|
| [AGENT_CLIENT_RUNTIME_API.en.md](AGENT_CLIENT_RUNTIME_API.en.md) | Agent Client Runtime v1 workspaces, turns, tools, and completion contract. |
|
|
18
19
|
| [AGENT_CLIENT_RUNTIME_API.md](AGENT_CLIENT_RUNTIME_API.md) | Chinese Agent Client Runtime v1 contract. |
|
|
20
|
+
| [AGENT_CONVERSATION_AUDIT.en.md](AGENT_CONVERSATION_AUDIT.en.md) | Complete visible conversation audit, member confirmation, run ownership and admin pagination. |
|
|
21
|
+
| [AGENT_CONVERSATION_AUDIT.md](AGENT_CONVERSATION_AUDIT.md) | Chinese complete conversation audit protocol. |
|
|
19
22
|
| [user-guide/README.en.md](user-guide/README.en.md) | User and product-owner guide: business goals, console concepts, and scenario-based setup. |
|
|
20
23
|
| [CONTRACT.en.md](CONTRACT.en.md) | Stable HTTP and wire contract between business systems and the hub. |
|
|
21
24
|
| [INTEGRATION.en.md](INTEGRATION.en.md) | Third-party integration guide for tools, signatures, authorization, and callback handling. |
|
|
@@ -108,6 +111,8 @@ This directory contains public documentation for the open-source BailingHub proj
|
|
|
108
111
|
| [RELEASE_NOTES_v0.5.0.en.md](RELEASE_NOTES_v0.5.0.en.md) | `v0.5.0` revocable local-Agent authorization and governed local planning. |
|
|
109
112
|
| [RELEASE_NOTES_v0.5.0.md](RELEASE_NOTES_v0.5.0.md) | Chinese `v0.5.0` release notes. |
|
|
110
113
|
| [RELEASE_NOTES_v0.5.1.en.md](RELEASE_NOTES_v0.5.1.en.md) | `v0.5.1` Agent Client management center and bulk write-operation configuration. |
|
|
114
|
+
| [RELEASE_NOTES_v0.6.0.en.md](RELEASE_NOTES_v0.6.0.en.md) | `v0.6.0`: follow a conversation through its business actions, with compatible multi-account clients. |
|
|
115
|
+
| [RELEASE_NOTES_v0.6.0.md](RELEASE_NOTES_v0.6.0.md) | Chinese `v0.6.0` release notes and upgrade guide. |
|
|
111
116
|
| [RELEASE_NOTES_v0.5.1.md](RELEASE_NOTES_v0.5.1.md) | Chinese `v0.5.1` release notes. |
|
|
112
117
|
| [RELEASE_NOTES_v0.1.0.en.md](RELEASE_NOTES_v0.1.0.en.md) | First public release notes. |
|
|
113
118
|
| [CHANGELOG.en.md](CHANGELOG.en.md) | Public changelog format and current release summary. |
|
package/docs/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
| 文档 | 用途 |
|
|
10
10
|
|---|---|
|
|
11
|
+
| [user-guide/conversations.md](user-guide/conversations.md) | 普通用户的多账户对话、完整沟通追溯和离线恢复指南。 |
|
|
11
12
|
| [QUICKSTART.md](QUICKSTART.md) | 从零部署百灵中枢,适合准备接入真实业务系统的开发者。 |
|
|
12
13
|
| [QUICKSTART.en.md](QUICKSTART.en.md) | English quickstart for Docker demo, first route, and first business tool. |
|
|
13
14
|
| [DEMO.md](DEMO.md) | Docker demo 闭环:中枢、MySQL、demo 业务系统、工具源、审计与 trace。 |
|
|
@@ -20,6 +21,8 @@
|
|
|
20
21
|
| [AGENT_AUTH_API.en.md](AGENT_AUTH_API.en.md) | English Agent Auth v1 protocol and trusted business-identity boundary. |
|
|
21
22
|
| [AGENT_CLIENT_RUNTIME_API.md](AGENT_CLIENT_RUNTIME_API.md) | Agent Client Runtime v1:工作区、turn、能力搜索、工具执行与完成回传。 |
|
|
22
23
|
| [AGENT_CLIENT_RUNTIME_API.en.md](AGENT_CLIENT_RUNTIME_API.en.md) | English Agent Client Runtime v1 contract. |
|
|
24
|
+
| [AGENT_CONVERSATION_AUDIT.md](AGENT_CONVERSATION_AUDIT.md) | 完整可见对话审计:逐授权成员确认、幂等文本事件、run 关联和管理员分页读取。 |
|
|
25
|
+
| [AGENT_CONVERSATION_AUDIT.en.md](AGENT_CONVERSATION_AUDIT.en.md) | English complete conversation audit protocol and authorization boundary. |
|
|
23
26
|
| [user-guide/README.md](user-guide/README.md) | 使用者/产品经理视角:从业务需求出发,理解为什么需要中枢、后台菜单怎么配、配完交给开发者什么。 |
|
|
24
27
|
| [CONTRACT.md](CONTRACT.md) | 业务系统和中枢之间的稳定网络契约,接入前应先读。 |
|
|
25
28
|
| [CONTRACT.en.md](CONTRACT.en.md) | English HTTP and wire contract summary. |
|
|
@@ -122,6 +125,8 @@
|
|
|
122
125
|
| [RELEASE_NOTES_v0.5.0.en.md](RELEASE_NOTES_v0.5.0.en.md) | English `v0.5.0` revocable local-Agent authorization and governed local planning release notes. |
|
|
123
126
|
| [RELEASE_NOTES_v0.5.1.md](RELEASE_NOTES_v0.5.1.md) | `v0.5.1` 智能体客户端管理中心与批量写操作配置说明。 |
|
|
124
127
|
| [RELEASE_NOTES_v0.5.1.en.md](RELEASE_NOTES_v0.5.1.en.md) | English `v0.5.1` Agent Client management center and bulk write-operation configuration release notes. |
|
|
128
|
+
| [RELEASE_NOTES_v0.6.0.md](RELEASE_NOTES_v0.6.0.md) | `v0.6.0` 看完整沟通,再追到每次业务操作;配套多授权客户端升级。 |
|
|
129
|
+
| [RELEASE_NOTES_v0.6.0.en.md](RELEASE_NOTES_v0.6.0.en.md) | English `v0.6.0` release notes and upgrade guide. |
|
|
125
130
|
| [RELEASE_NOTES_v0.1.0.md](RELEASE_NOTES_v0.1.0.md) | 首个公开版本的 GitHub Release 草稿。 |
|
|
126
131
|
| [RELEASE_NOTES_v0.1.0.en.md](RELEASE_NOTES_v0.1.0.en.md) | English release notes. |
|
|
127
132
|
| [CHANGELOG.md](CHANGELOG.md) | 公开发布后的对外变更记录。 |
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# BailingHub v0.6.0: Follow the Conversation Through Its Business Actions
|
|
2
|
+
|
|
3
|
+
A conversation may query account A and then update account B. Previously, administrators had to inspect separate execution records to find out what each account did. With a compatible client, they can now read the conversation first, then follow it into the original actions and approvals.
|
|
4
|
+
|
|
5
|
+
## What changes for users
|
|
6
|
+
|
|
7
|
+
- **Read the conversation in one place**: Tasks → Conversations adds a client-conversation view with synchronized user requests, intermediate explanations and final replies grouped by turn.
|
|
8
|
+
- **Follow a reply into its actions**: expand each account's original execution record to inspect calls, approvals and results. The existing authorization-scoped view remains available.
|
|
9
|
+
- **Keep account choices visible**: with the new SDK and DSH plugin, select accounts A and B from the same business system before chatting. The agent chooses the appropriate authorization for each action; identities, approvals and memory remain separate.
|
|
10
|
+
- **Recognize missing records**: business completion and transcript synchronization have separate status. Clients can upload saved events after reconnecting, and a lost acknowledgement does not duplicate them. Missing original text is reported as a gap rather than replaced with an execution summary.
|
|
11
|
+
|
|
12
|
+
Start with the [user guide](user-guide/conversations.en.md). Client developers can continue with the [integration contract](AGENT_CONVERSATION_AUDIT.en.md).
|
|
13
|
+
|
|
14
|
+
## Who should upgrade
|
|
15
|
+
|
|
16
|
+
| How you use BailingHub | What to prepare |
|
|
17
|
+
|---|---|
|
|
18
|
+
| You operate a Hub and want full local-agent conversations in its console | Upgrade Core to0.6.0, apply the new migration, and use a client that synchronizes visible conversations. |
|
|
19
|
+
| You use DeepSeek Harness with several business accounts | Install the separate `dsh-bailinghub@0.4.0` package, which pins `bailinghub-mcp-server@0.4.0`. Authorize each account and select the conversation scope before the first message. |
|
|
20
|
+
| You build a desktop or other agent client | Use Agent Client SDK0.4.0 and integrate scope, original visible history, durable capture and status. Changing a dependency version alone does not complete host integration. |
|
|
21
|
+
| You use web chat, Client API, Dify/n8n tasks or static MCP | Existing entry points remain usable without a new local client. Other adapters retain their independent release cycles. |
|
|
22
|
+
|
|
23
|
+
Prepare Core first, then the SDK and client. Upgrading Core alone cannot make older clients send their missing text; updating a plugin cannot add archive APIs to an older Core. Multi-account scope currently covers one business system and workspace, not cross-system or cross-route orchestration.
|
|
24
|
+
|
|
25
|
+
## Upgrade an existing deployment
|
|
26
|
+
|
|
27
|
+
1. Back up the database and retain the previous code or images, following the [operations guide](OPERATIONS.en.md).
|
|
28
|
+
2. Use the exact `v0.6.0` code or images. Run migrations from one deployment step: `sql/057_agent_conversation_audit.sql` adds three archive tables without rewriting previous migrations. Runtime startup does not apply it automatically.
|
|
29
|
+
3. Start the new version, check `/health/ready`, and open Tasks → Conversations. Verify new client text and its links to original execution records.
|
|
30
|
+
4. Upgrade clients using their SDK/plugin migration instructions. **A new conversation without selected authorizations is ordinary chat.** Scope becomes fixed with the first message; start a new conversation to change it. Reopening restores only the original authorizations.
|
|
31
|
+
5. With test data, check same-runtime recovery after reopening offline, whole-scope blocking after revocation, and cancellation without reactivating ended actions. Never repeat business writes merely to repair an archive.
|
|
32
|
+
|
|
33
|
+
When reverting code, retain the new tables and pending client events. Existing clients can use their original APIs; a client encountering an older Core should report the unsupported archive without discarding its original records.
|
|
34
|
+
|
|
35
|
+
## Permissions and recording boundaries
|
|
36
|
+
|
|
37
|
+
Full text is readable by administrators with task-read permission in the current Hub administration audit domain. There is no Agent read endpoint for the combined transcript, and combined replies do not flow back into each account's model memory. Business permissions, approvals and final checks remain with their original owners.
|
|
38
|
+
|
|
39
|
+
The archive covers visible client text and original execution links, not hidden reasoning, attachments or arbitrary local tool output. It cannot reconstruct text that was never saved, nor can scope restoration recover lost business tasks across process restarts. Existing business declarations, business-side SDKs and approval rules require no change for this archive feature.
|
|
40
|
+
|
|
41
|
+
ACC, ecosystem adapters, independent clients and hosted deployments remain separate projects; they are not bundled into Core or automatically upgraded by this release.
|
|
42
|
+
|
|
43
|
+
## Verification and further reading
|
|
44
|
+
|
|
45
|
+
The release commit must pass `npm run release:check`, covering permissions, membership, event idempotency, run links, console behavior, existing Client API/SDK compatibility, security and artifact boundaries. Client regressions additionally cover offline recovery, local storage failure and cancellation races. These checks use public tests or isolated synthetic data, not production-adoption evidence.
|
|
46
|
+
|
|
47
|
+
- [User guide](user-guide/conversations.en.md)
|
|
48
|
+
- [Client integration guide](AGENT_CLIENT_QUICKSTART.en.md)
|
|
49
|
+
- [Conversation archive API](AGENT_CONVERSATION_AUDIT.en.md)
|
|
50
|
+
- [SDK and plugin compatibility](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)
|
|
51
|
+
- [中文发布说明](RELEASE_NOTES_v0.6.0.md)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# BailingHub v0.6.0:看完整沟通,再追到每次业务操作
|
|
2
|
+
|
|
3
|
+
一次对话可能先查询 A 账户,再修改 B 账户。以前,管理员需要打开各自的执行记录,看到的往往只是各自做了什么。现在,使用支持的新客户端,可以先阅读完整沟通过程,再追到每份授权的具体操作和审批。
|
|
4
|
+
|
|
5
|
+
## 你会看到什么变化
|
|
6
|
+
|
|
7
|
+
- **一处看沟通经过**:控制台“任务→会话”新增客户端完整对话视图,按轮显示已同步的用户输入、中间说明和最终回复。
|
|
8
|
+
- **从回复追到操作**:每轮可展开各授权对应的原执行记录,继续查看工具调用、审批和结果;原来的授权记录入口仍保留。
|
|
9
|
+
- **多账户也能看清对象**:配套新 SDK 与 DSH 插件后,用户先选择同一业务系统的 A、B 授权,Agent 再为每次操作选用对应权限。账户的业务身份、审批和记忆保持独立。
|
|
10
|
+
- **缺记录时如实提示**:业务完成与对话同步分别判断。客户端断网后可以补传已保存事件;确认回包丢失不会重复写入。原文没有保存完整时,界面必须显示缺口,不把执行摘要当成原文。
|
|
11
|
+
|
|
12
|
+
[先看使用者指南](user-guide/conversations.md),再按需要阅读[开发者接入契约](AGENT_CONVERSATION_AUDIT.md)。
|
|
13
|
+
|
|
14
|
+
## 谁需要升级,哪些组件要一起准备
|
|
15
|
+
|
|
16
|
+
| 你的使用方式 | 此次升级建议 |
|
|
17
|
+
|---|---|
|
|
18
|
+
| 运行 BailingHub,想在后台追溯完整的本地智能体对话 | 升级 Core 到0.6.0并应用新增迁移;确认客户端已接入可见对话同步。 |
|
|
19
|
+
| 使用 DeepSeek Harness 操作多个业务账户 | 使用独立的 `dsh-bailinghub@0.4.0`;其精确依赖 `bailinghub-mcp-server@0.4.0`。按插件说明分别授权,并在首消息前选择本次范围。 |
|
|
20
|
+
| 自研桌面或其他智能体客户端 | 使用 Agent Client SDK0.4.0,接入会话范围、真实可见历史、持久归档与状态显示。只更换包版本不足以完成宿主接入。 |
|
|
21
|
+
| 只用网页聊天、Client API、Dify/n8n任务或静态MCP | 原入口继续使用,不要求新增本地客户端。其他适配器仍是独立发布项目。 |
|
|
22
|
+
|
|
23
|
+
先准备 Core,再升级 SDK 和客户端。单独升级 Core 不能让旧客户端自动上传完整原文;单独升级插件也不能让旧 Core 获得归档接口。此次多授权体验限同一业务系统、同一工作区,不宣称跨系统或跨路由编排。
|
|
24
|
+
|
|
25
|
+
## 已有部署如何升级
|
|
26
|
+
|
|
27
|
+
1. 按[运维升级指南](OPERATIONS.md)备份数据库,并保留旧代码或镜像。
|
|
28
|
+
2. 使用精确的 `v0.6.0` 代码或镜像,由一个部署步骤运行迁移。新增 `sql/057_agent_conversation_audit.sql` 只创建三张归档表;已有迁移不改写,运行时启动也不会自动执行迁移。
|
|
29
|
+
3. 启动新版并确认 `/health/ready` 正常,打开控制台“任务→会话”。使用新的客户端对话验证完整文本与原执行记录之间的关联。
|
|
30
|
+
4. 按 SDK/插件的迁移说明升级客户端。**新会话未选择授权时只有普通聊天**;首次发送后范围固定,改选需要新会话。重开原会话只恢复原授权。
|
|
31
|
+
5. 用测试数据验证断网重开后在同一运行时恢复、撤销原授权仍阻断、取消后不重新启用已结束操作。不要通过重复业务写操作来补齐审计。
|
|
32
|
+
|
|
33
|
+
回退旧代码时保留新增表和客户端待传事件。旧客户端仍可使用原接口;旧 Core 不支持新归档时,客户端应明确显示不支持,不丢弃原记录。
|
|
34
|
+
|
|
35
|
+
## 权限与记录边界
|
|
36
|
+
|
|
37
|
+
完整文本供当前中枢管理审计域中具有任务读取权限的管理员查看。Agent 没有读取聚合正文的接口,混合回复也不会回流到每个账户的模型记忆。每份授权的业务权限与审批仍按原规则执行,业务系统继续做最终校验。
|
|
38
|
+
|
|
39
|
+
归档只覆盖客户端实际可见的文本和原执行关联,不包含隐藏推理、附件或任意本地工具原始输出。无法还原过去没有保存的原文;范围恢复也不表示能跨进程恢复丢失的业务任务。业务后端的能力声明、业务 SDK 和审批规则无需为本次归档功能调整。
|
|
40
|
+
|
|
41
|
+
ACC规范、各生态适配器、独立客户端与托管环境保持各自边界;它们不被合并为Core的一部分,也不因Core发布而自动升级。
|
|
42
|
+
|
|
43
|
+
## 检查与进一步阅读
|
|
44
|
+
|
|
45
|
+
发布提交须通过 `npm run release:check`,覆盖权限与成员校验、事件幂等、执行关联、控制台、现有Client API/SDK兼容性、安全与制品边界。配套客户端另有离线恢复、保存失败和取消竞态回归。验证使用公开测试或隔离合成数据,不表示生产采用。
|
|
46
|
+
|
|
47
|
+
- [使用者指南](user-guide/conversations.md)
|
|
48
|
+
- [客户端接入指南](AGENT_CLIENT_QUICKSTART.md)
|
|
49
|
+
- [完整对话接口](AGENT_CONVERSATION_AUDIT.md)
|
|
50
|
+
- [SDK与插件各自的配套说明](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)
|
|
51
|
+
- [English release notes](RELEASE_NOTES_v0.6.0.en.md)
|
|
@@ -15,6 +15,7 @@ It does not replace developer documentation. Developer docs explain HTTP, signat
|
|
|
15
15
|
|
|
16
16
|
| Document | Question answered |
|
|
17
17
|
|---|---|
|
|
18
|
+
| [conversations.en.md](conversations.en.md) | Select several accounts, follow the full conversation into its actions, and handle offline or missing records. |
|
|
18
19
|
| [overview.en.md](overview.en.md) | Why does an existing system need an Agent control plane? |
|
|
19
20
|
| [concepts.en.md](concepts.en.md) | How do routes, callers, targets, tools, knowledge, and channels relate? |
|
|
20
21
|
| [console-map.en.md](console-map.en.md) | What does each console menu do and what does it produce? |
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
| 文档 | 解决的问题 |
|
|
17
17
|
|---|---|
|
|
18
|
+
| [conversations.md](conversations.md) | 在一个对话里选择多个账户,并从完整沟通追到具体操作;解释断网与记录缺口。 |
|
|
18
19
|
| [overview.md](overview.md) | 为什么需要百灵中枢,它解决传统系统接 Agent 时的哪些具体问题。 |
|
|
19
20
|
| [concepts.md](concepts.md) | 路由、接入方、工具源、调度目标、模型凭证、知识库、聊天入口之间是什么关系。 |
|
|
20
21
|
| [console-map.md](console-map.md) | 后台每个菜单是干什么的、什么时候会用、配好后能拿到什么。 |
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Use Jobs as the normal operational home page. It shows conversations, runs, trace events, tool calls, approvals, model usage, errors, and delivery. It produces evidence for quality review and incident diagnosis.
|
|
6
6
|
|
|
7
|
+
The client-conversation view groups synchronized user and assistant text by turn and links to each account’s original execution record. Authorization-scoped records remain separate. Unsynchronized or missing older text is not presented as a complete transcript. See the [conversation guide](conversations.en.md).
|
|
8
|
+
|
|
7
9
|
## Routes
|
|
8
10
|
|
|
9
11
|
Routes define Agent scenarios. Configure target, model, context, one or more tool providers, global tool-call budget, approval delivery, retry, memory, audience, budget, and result delivery. The route row produces a stable `route_key` and generated call examples.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Use Multiple Accounts in One Conversation and Follow the Full Story
|
|
2
|
+
|
|
3
|
+
[简体中文](conversations.md) · [User guide](README.en.md)
|
|
4
|
+
|
|
5
|
+
If you manage stores A and B in the same business system, you can select both authorizations for a conversation, then let the agent use the appropriate account for each action. Stores are an example: these may be any two authorized accounts in the same system.
|
|
6
|
+
|
|
7
|
+
## What you need
|
|
8
|
+
|
|
9
|
+
Deploy **BailingHub 0.6.0** and use **dsh-bailinghub 0.4.0**, which depends on the independent **bailinghub-mcp-server 0.4.0** SDK. A custom client must integrate conversation scope, original visible history and archive APIs. Upgrading only the Hub does not make an older client upload a full transcript.
|
|
10
|
+
|
|
11
|
+
Your business system must already expose the operations you need, and you must authorize A and B separately. This upgrade does not require rewriting existing business capabilities or approval rules. Start with the [public Docker demo](../DEMO.en.md) to learn query, approval and execution; that demo does not replace client installation and account authorization.
|
|
12
|
+
|
|
13
|
+
## A complete session
|
|
14
|
+
|
|
15
|
+
1. **Start a conversation and select accounts.** Choose A and B in a compatible client's scope selector. Selecting only A permits only A; selecting nothing means ordinary chat. For DSH commands, follow the [plugin getting-started guide](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/GETTING_STARTED.md).
|
|
16
|
+
2. **Name the intended account in your request.** For example: “Check orders for A and B, but update the contact for A only.” The agent chooses within the selected scope; available actions still depend on the business system and current permissions.
|
|
17
|
+
3. **Follow existing approvals.** Distinguish completed, awaiting-approval and failed actions. A conversational reply alone does not prove business success; inspect the original call or business result when needed.
|
|
18
|
+
4. **Follow the conversation into each action.** A Hub administrator opens **Tasks → Conversations → Client conversations**, reads each turn, then opens the original account's calls and approvals. The authorization-scoped records remain available separately.
|
|
19
|
+
|
|
20
|
+
The account selection is fixed after the first message. Start a new conversation to change it. Reopening an existing conversation restores the original scope, never today's default or every registered account.
|
|
21
|
+
|
|
22
|
+
## When something goes wrong
|
|
23
|
+
|
|
24
|
+
| Situation | Meaning and next step |
|
|
25
|
+
|---|---|
|
|
26
|
+
| Pending synchronization | Business may already be complete. Reconnect and retry synchronization in the original conversation; do not repeat a write merely to repair its record. |
|
|
27
|
+
| Authorization cannot yet be verified | Business tools stay closed. Retry in the same session after reconnecting; every original account must pass verification before recovery. |
|
|
28
|
+
| An original account is revoked or its identity changes | The whole original scope stays blocked. The client does not silently fall back to the remaining account. |
|
|
29
|
+
| Local storage failure or a history gap | A saved prefix is not the full history. Display unsaved counts or missing history; never invent the missing text. |
|
|
30
|
+
| Unsupported version | Check the Hub, SDK and plugin versions. Existing business features do not automatically disappear because the optional archive is unsupported. |
|
|
31
|
+
|
|
32
|
+
“Synced” means the currently saved events were uploaded. A separate history-gap or unverified-history indication still matters. Archive recovery does not reconstruct lost business tasks or repeat business writes.
|
|
33
|
+
|
|
34
|
+
## Who can read it
|
|
35
|
+
|
|
36
|
+
Full text belongs to the deployed Hub's administration audit domain, readable by administrators with task-read permission. Account identities, approvals and memory remain separate; a combined reply is not copied into each account's model memory.
|
|
37
|
+
|
|
38
|
+
The archive currently covers visible text and original execution links, not hidden reasoning, attachments or arbitrary local tool output. Older records containing only execution summaries continue to identify missing transcript text.
|
|
39
|
+
|
|
40
|
+
See the [v0.6.0 upgrade notes](../RELEASE_NOTES_v0.6.0.en.md). Client developers can continue with the [integration guide](../AGENT_CLIENT_QUICKSTART.en.md) and [conversation archive API](../AGENT_CONVERSATION_AUDIT.en.md).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# 在一次对话里使用多个账户,并看清完整过程
|
|
2
|
+
|
|
3
|
+
[English](conversations.en.md) · [返回使用者指南](README.md)
|
|
4
|
+
|
|
5
|
+
如果你管理同一系统里的 A、B 两家门店,过去可能要先切换账户,再分别提问。配套的新客户端可以让你先选好本次对话允许使用的授权,再由 Agent 为每次操作选择对应账户。门店只是示例;它也可以是同一系统中的两个业务账户。
|
|
6
|
+
|
|
7
|
+
## 开始前需要什么
|
|
8
|
+
|
|
9
|
+
部署者准备 BailingHub **0.6.0**;本地客户端使用 **dsh-bailinghub 0.4.0**,它依赖独立的 **bailinghub-mcp-server 0.4.0** SDK。使用自研客户端时,开发者需要接入会话范围、原始可见历史和归档接口。单独升级中枢,不会让旧客户端自动上传完整对话。
|
|
10
|
+
|
|
11
|
+
业务系统已经接入并开放了需要的操作,你也已经分别完成 A、B 的业务授权。此次升级不要求重写既有业务能力或审批规则。还没有接入业务系统时,先运行[公开 Docker Demo](../DEMO.md)了解查询、审批和执行;该 Demo 不替代多账户客户端的安装与授权。
|
|
12
|
+
|
|
13
|
+
## 一次完整使用流程
|
|
14
|
+
|
|
15
|
+
1. **新建对话并选择账户。** 在支持选择范围的客户端中选择 A、B。只选 A 就只能使用 A;不选账户就是普通聊天。DSH 命令行的选择方法见[插件上手指南](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/GETTING_STARTED.zh-CN.md)。
|
|
16
|
+
2. **说清操作对象。** 例如“分别查询 A、B 的订单,只修改 A 的联系人”。Agent 在本次已选范围里使用对应授权;可以执行什么,仍取决于业务系统开放的能力与当前权限。
|
|
17
|
+
3. **按原流程处理审批。** 已完成、待审批与失败的动作分别判断。完整回复不是业务成功的证明,需要时进入原调用或业务后台核对。
|
|
18
|
+
4. **从完整沟通进入具体动作。** 中枢管理员打开“任务→会话→客户端完整对话”,先按轮阅读沟通,再打开 A 或 B 的执行记录、工具调用和审批轨迹。“原授权记录”保留原来的查询入口。
|
|
19
|
+
|
|
20
|
+
首次发出消息后,本次对话的账户范围固定。想换账户就新建对话;重新打开旧对话时恢复原范围,不能自动换成当前默认账户或扩大为全部授权。
|
|
21
|
+
|
|
22
|
+
## 断网、撤销或保存失败时会怎样
|
|
23
|
+
|
|
24
|
+
| 看到的情况 | 应如何理解和处理 |
|
|
25
|
+
|---|---|
|
|
26
|
+
| 待同步 | 业务可能已经完成,沟通记录还没传完。联网后在原会话重试同步,不要为了补记录重新执行修改。 |
|
|
27
|
+
| 授权暂时无法核验 | 业务工具保持关闭;联网后在同一会话重试。必须重新核验全部原账户,才能继续补传。 |
|
|
28
|
+
| 某个原账户已撤销或身份改变 | 整个原范围保持阻断,不会悄悄只剩另一个账户。 |
|
|
29
|
+
| 本地保存失败或历史存在缺口 | 已保存的前半段不代表完整历史。客户端应显示未保存数量或缺口,不能猜补缺失的文字。 |
|
|
30
|
+
| 版本不支持 | 检查中枢、SDK和插件配套版本。旧版本的原业务能力不因此自动消失。 |
|
|
31
|
+
|
|
32
|
+
“已同步”表示当前已保存的事件已上传;还要留意历史缺口或“尚未核对完整历史”的提示。补传只恢复对话归档,不恢复重启后丢失的业务任务,也不会重新发起业务写操作。
|
|
33
|
+
|
|
34
|
+
## 谁能看到这些记录
|
|
35
|
+
|
|
36
|
+
完整文字进入你所部署中枢的管理审计空间,供具备任务读取权限的管理员查看。各账户的业务身份、审批与记忆仍分开,混合回复不会被复制到每个账户的模型记忆中。
|
|
37
|
+
|
|
38
|
+
当前归档范围是客户端实际可见的文本与原执行关联,不包含隐藏推理、附件或任意本地工具的原始输出。只看到了某份授权的执行摘要、却没有完整原文的旧记录,仍会明确表示原文缺失。
|
|
39
|
+
|
|
40
|
+
部署与升级请看 [v0.6.0 说明](../RELEASE_NOTES_v0.6.0.md);客户端开发者请看[接入指南](../AGENT_CLIENT_QUICKSTART.md)及[完整对话接口](../AGENT_CONVERSATION_AUDIT.md)。
|
package/package.json
CHANGED
|
@@ -103,6 +103,7 @@ const englishCompanions = {
|
|
|
103
103
|
'docs/RELEASE_NOTES_v0.3.4.md': 'docs/RELEASE_NOTES_v0.3.4.en.md',
|
|
104
104
|
'docs/RELEASE_NOTES_v0.5.0.md': 'docs/RELEASE_NOTES_v0.5.0.en.md',
|
|
105
105
|
'docs/RELEASE_NOTES_v0.5.1.md': 'docs/RELEASE_NOTES_v0.5.1.en.md',
|
|
106
|
+
'docs/RELEASE_NOTES_v0.6.0.md': 'docs/RELEASE_NOTES_v0.6.0.en.md',
|
|
106
107
|
'docs/TOOLS_DESIGN.md': 'docs/TOOLS_DESIGN.en.md',
|
|
107
108
|
'docs/TOOLS_MODEL.md': 'docs/TOOLS_MODEL.en.md',
|
|
108
109
|
'docs/AI友好工具设计指南.md': 'docs/AI_FRIENDLY_TOOLS.en.md',
|
|
@@ -113,6 +114,7 @@ const englishCompanions = {
|
|
|
113
114
|
'docs/user-guide/concepts.md': 'docs/user-guide/concepts.en.md',
|
|
114
115
|
'docs/user-guide/console-map.md': 'docs/user-guide/console-map.en.md',
|
|
115
116
|
'docs/user-guide/scenarios.md': 'docs/user-guide/scenarios.en.md',
|
|
117
|
+
'docs/user-guide/conversations.md': 'docs/user-guide/conversations.en.md',
|
|
116
118
|
'brain/README.md': 'brain/README.en.md',
|
|
117
119
|
'sql/README.md': 'sql/README.en.md',
|
|
118
120
|
};
|
|
@@ -9,7 +9,7 @@ REGISTRY="${BAILING_IMAGE_REGISTRY:-$DEFAULT_REGISTRY}"
|
|
|
9
9
|
NAMESPACE="${BAILING_IMAGE_NAMESPACE:-$DEFAULT_NAMESPACE}"
|
|
10
10
|
PACKAGE_VERSION="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -1)"
|
|
11
11
|
TAG="${BAILING_IMAGE_TAG:-$PACKAGE_VERSION}"
|
|
12
|
-
[ -n "$TAG" ] || TAG="0.
|
|
12
|
+
[ -n "$TAG" ] || TAG="0.6.0"
|
|
13
13
|
MYSQL_TAG="${BAILING_MYSQL_IMAGE_TAG:-8.4}"
|
|
14
14
|
MYSQL_IMAGE="${BAILING_MYSQL_IMAGE:-$REGISTRY/$NAMESPACE/bailing-mysql:$MYSQL_TAG}"
|
|
15
15
|
PLATFORM="${BAILING_IMAGE_PLATFORM:-linux/amd64}"
|
|
@@ -38,8 +38,8 @@ function updateJson(root, relativePath, update) {
|
|
|
38
38
|
test('current release surface is internally consistent', () => {
|
|
39
39
|
const result = checkReleaseConsistency({ root: repoRoot });
|
|
40
40
|
assert.deepEqual(result.findings, []);
|
|
41
|
-
assert.equal(result.version, '0.
|
|
42
|
-
assert.equal(result.stableVersion, '0.
|
|
41
|
+
assert.equal(result.version, '0.6.0');
|
|
42
|
+
assert.equal(result.stableVersion, '0.6.0');
|
|
43
43
|
assert.equal(result.publishTag, 'latest');
|
|
44
44
|
});
|
|
45
45
|
|