bailinghub 0.5.1 → 0.6.1
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 +21 -0
- package/docs/CHANGELOG.md +21 -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.6.0.en.md +53 -0
- package/docs/RELEASE_NOTES_v0.6.0.md +53 -0
- package/docs/RELEASE_NOTES_v0.6.1.en.md +53 -0
- package/docs/RELEASE_NOTES_v0.6.1.md +53 -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 +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 +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/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,27 @@ Each public version should describe:
|
|
|
22
22
|
|
|
23
23
|
## Unreleased
|
|
24
24
|
|
|
25
|
+
## v0.6.1 - Conversation Release and Package Source Verification
|
|
26
|
+
|
|
27
|
+
Planned release date: 2026-09-08.
|
|
28
|
+
|
|
29
|
+
- **User experience**: carries forward the visible conversations, authorization trace links and same-system multi-account clients from 0.6.0. The recommended set is Core 0.6.1 + SDK 0.4.0 + DSH 0.4.0.
|
|
30
|
+
- **Release correction**: the 0.6.0 source tag and npm package exist, but missing source-commit metadata prevented the formal Release gate from passing. 0.6.1 uses an independent clone and checks that metadata before publishing; the original 0.6.0 artifacts remain unchanged.
|
|
31
|
+
- **Integration and schema**: no business behavior, API, dependency or migration changes relative to 0.6.0. Upgrades from 0.5.1 still explicitly apply migration 057; installations that already applied 057 do not recreate its tables.
|
|
32
|
+
- **Validation**: retain the release gates for the exact tag, CI, images, npm version, content digest and gitHead before creating the GitHub Release.
|
|
33
|
+
- **Related docs**: [v0.6.1 release notes](RELEASE_NOTES_v0.6.1.en.md) and [user guide](user-guide/conversations.en.md).
|
|
34
|
+
|
|
35
|
+
## v0.6.0 - Follow the Conversation Through Its Business Actions
|
|
36
|
+
|
|
37
|
+
Planned release date: 2026-09-08.
|
|
38
|
+
|
|
39
|
+
- **One conversation view**: inspect synchronized user messages, intermediate explanations and final replies by turn, then open each account's original execution record.
|
|
40
|
+
- **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.
|
|
41
|
+
- **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.
|
|
42
|
+
- **Upgrade impact**: migration 057 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.
|
|
43
|
+
- **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.
|
|
44
|
+
- **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).
|
|
45
|
+
|
|
25
46
|
## v0.5.1 - Agent Client Management and Bulk Write-Operation Configuration
|
|
26
47
|
|
|
27
48
|
Planned release date: 2026-09-01.
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,27 @@
|
|
|
15
15
|
|
|
16
16
|
## Unreleased
|
|
17
17
|
|
|
18
|
+
## v0.6.1 - 完整对话配套正式发布与来源校验
|
|
19
|
+
|
|
20
|
+
计划发布日期:2026-09-08。
|
|
21
|
+
|
|
22
|
+
- **使用体验**:延续0.6.0的完整可见对话、逐授权执行回链与同系统多授权客户端配套,推荐Core0.6.1 + SDK0.4.0 + DSH0.4.0。
|
|
23
|
+
- **发布修正**:0.6.0的源码标签和npm包已生成,但包缺少来源提交元数据,未通过正式Release门禁。0.6.1从独立克隆发布并预检源码关联;原0.6.0制品保持不变。
|
|
24
|
+
- **对接与数据库**:相对0.6.0不改变业务行为、接口、依赖或迁移。从0.5.1升级仍需显式应用057迁移;已有057无需重复建表。
|
|
25
|
+
- **验证**:保留原发布门禁,核对Tag、CI、镜像、npm版本、内容摘要与gitHead后创建Release。
|
|
26
|
+
- **相关文档**:[v0.6.1发布说明](RELEASE_NOTES_v0.6.1.md)与[使用者指南](user-guide/conversations.md)。
|
|
27
|
+
|
|
28
|
+
## v0.6.0 - 看完整沟通,再追到每次业务操作
|
|
29
|
+
|
|
30
|
+
计划发布日期:2026-09-08。
|
|
31
|
+
|
|
32
|
+
- **完整对话入口**:控制台“任务→会话”可按轮查看客户端已同步的用户输入、中间说明和最终回复,并进入每份授权的原始执行记录。
|
|
33
|
+
- **同一会话,多份授权**:配套 SDK / DSH 0.4.0 后,用户可以先选同一业务系统的 A/B 授权,Agent 按每次操作选择对应权限;Core 保存完整沟通和各自的业务轨迹。
|
|
34
|
+
- **业务权限保持原样**:各授权的业务身份、审批和记忆保持独立。完整正文只在中枢管理审计域可读,不向各账户重复广播混合回复。
|
|
35
|
+
- **升级影响**:新增迁移057的三张归档表;业务侧能力声明和审批规则无需调整。新客户端需要显式选择会话范围,归档需要配套版本及持久历史;详情见下方升级说明。
|
|
36
|
+
- **验证重点**:原会话断网重开后恢复补传、确认回包丢失不重复、撤销任一成员保持阻断、保存失败显示缺口、取消后不恢复已结束操作。单纯业务执行成功不代表对话已完整保存。
|
|
37
|
+
- **相关文档**:[v0.6.0 发布说明](RELEASE_NOTES_v0.6.0.md)、[多账户对话使用指南](user-guide/conversations.md)与[接入契约](AGENT_CONVERSATION_AUDIT.md)。
|
|
38
|
+
|
|
18
39
|
## v0.5.1 - 智能体客户端管理中心与批量写操作配置
|
|
19
40
|
|
|
20
41
|
计划发布日期: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.1`;
|
|
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.1` 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.1 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.1.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.1`;
|
|
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.1` 官方镜像,生成随机 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.1 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.1.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,10 @@ 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.1.en.md](RELEASE_NOTES_v0.6.1.en.md) | `v0.6.1`: follow a conversation through its business actions, with compatible multi-account clients. |
|
|
115
|
+
| [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. |
|
|
116
|
+
| [RELEASE_NOTES_v0.6.1.md](RELEASE_NOTES_v0.6.1.md) | Chinese `v0.6.1` release notes and upgrade guide. |
|
|
117
|
+
| [RELEASE_NOTES_v0.6.0.md](RELEASE_NOTES_v0.6.0.md) | Chinese `v0.6.0` release notes and upgrade guide. |
|
|
111
118
|
| [RELEASE_NOTES_v0.5.1.md](RELEASE_NOTES_v0.5.1.md) | Chinese `v0.5.1` release notes. |
|
|
112
119
|
| [RELEASE_NOTES_v0.1.0.en.md](RELEASE_NOTES_v0.1.0.en.md) | First public release notes. |
|
|
113
120
|
| [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,10 @@
|
|
|
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.1.md](RELEASE_NOTES_v0.6.1.md) | `v0.6.1` 看完整沟通,再追到每次业务操作;配套多授权客户端升级。 |
|
|
129
|
+
| [RELEASE_NOTES_v0.6.0.md](RELEASE_NOTES_v0.6.0.md) | `v0.6.0` 看完整沟通,再追到每次业务操作;配套多授权客户端升级。 |
|
|
130
|
+
| [RELEASE_NOTES_v0.6.1.en.md](RELEASE_NOTES_v0.6.1.en.md) | English `v0.6.1` release notes and upgrade guide. |
|
|
131
|
+
| [RELEASE_NOTES_v0.6.0.en.md](RELEASE_NOTES_v0.6.0.en.md) | English `v0.6.0` release notes and upgrade guide. |
|
|
125
132
|
| [RELEASE_NOTES_v0.1.0.md](RELEASE_NOTES_v0.1.0.md) | 首个公开版本的 GitHub Release 草稿。 |
|
|
126
133
|
| [RELEASE_NOTES_v0.1.0.en.md](RELEASE_NOTES_v0.1.0.en.md) | English release notes. |
|
|
127
134
|
| [CHANGELOG.md](CHANGELOG.md) | 公开发布后的对外变更记录。 |
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# BailingHub v0.6.0: Follow the Conversation Through Its Business Actions
|
|
2
|
+
|
|
3
|
+
> This source tag and npm package remain historical artifacts; the formal Release source check did not complete. Use [v0.6.1](RELEASE_NOTES_v0.6.1.en.md) for new installations.
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
## What changes for users
|
|
8
|
+
|
|
9
|
+
- **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.
|
|
10
|
+
- **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.
|
|
11
|
+
- **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.
|
|
12
|
+
- **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.
|
|
13
|
+
|
|
14
|
+
Start with the [user guide](user-guide/conversations.en.md). Client developers can continue with the [integration contract](AGENT_CONVERSATION_AUDIT.en.md).
|
|
15
|
+
|
|
16
|
+
## Who should upgrade
|
|
17
|
+
|
|
18
|
+
| How you use BailingHub | What to prepare |
|
|
19
|
+
|---|---|
|
|
20
|
+
| You operate a Hub and want full local-agent conversations in its console | Upgrade Core to 0.6.0, apply the new migration, and use a client that synchronizes visible conversations. |
|
|
21
|
+
| 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. |
|
|
22
|
+
| You build a desktop or other agent client | Use Agent Client SDK 0.4.0 and integrate scope, original visible history, durable capture and status. Changing a dependency version alone does not complete host integration. |
|
|
23
|
+
| 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. |
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
## Upgrade an existing deployment
|
|
28
|
+
|
|
29
|
+
1. Back up the database and retain the previous code or images, following the [operations guide](OPERATIONS.en.md).
|
|
30
|
+
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.
|
|
31
|
+
3. Start the new version, check `/health/ready`, and open Tasks → Conversations. Verify new client text and its links to original execution records.
|
|
32
|
+
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.
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
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.
|
|
36
|
+
|
|
37
|
+
## Permissions and recording boundaries
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
ACC, ecosystem adapters, independent clients and hosted deployments remain separate projects; they are not bundled into Core or automatically upgraded by this release.
|
|
44
|
+
|
|
45
|
+
## Verification and further reading
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
- [User guide](user-guide/conversations.en.md)
|
|
50
|
+
- [Client integration guide](AGENT_CLIENT_QUICKSTART.en.md)
|
|
51
|
+
- [Conversation archive API](AGENT_CONVERSATION_AUDIT.en.md)
|
|
52
|
+
- [SDK and plugin compatibility](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)
|
|
53
|
+
- [中文发布说明](RELEASE_NOTES_v0.6.0.md)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# BailingHub v0.6.0:看完整沟通,再追到每次业务操作
|
|
2
|
+
|
|
3
|
+
> 此版本的源码Tag和npm包作为历史制品保留,未完成正式Release来源校验。新安装请使用[v0.6.1](RELEASE_NOTES_v0.6.1.md)。
|
|
4
|
+
|
|
5
|
+
一次对话可能先查询 A 账户,再修改 B 账户。以前,管理员需要打开各自的执行记录,看到的往往只是各自做了什么。现在,使用支持的新客户端,可以先阅读完整沟通过程,再追到每份授权的具体操作和审批。
|
|
6
|
+
|
|
7
|
+
## 你会看到什么变化
|
|
8
|
+
|
|
9
|
+
- **一处看沟通经过**:控制台“任务→会话”新增客户端完整对话视图,按轮显示已同步的用户输入、中间说明和最终回复。
|
|
10
|
+
- **从回复追到操作**:每轮可展开各授权对应的原执行记录,继续查看工具调用、审批和结果;原来的授权记录入口仍保留。
|
|
11
|
+
- **多账户也能看清对象**:配套新 SDK 与 DSH 插件后,用户先选择同一业务系统的 A、B 授权,Agent 再为每次操作选用对应权限。账户的业务身份、审批和记忆保持独立。
|
|
12
|
+
- **缺记录时如实提示**:业务完成与对话同步分别判断。客户端断网后可以补传已保存事件;确认回包丢失不会重复写入。原文没有保存完整时,界面必须显示缺口,不把执行摘要当成原文。
|
|
13
|
+
|
|
14
|
+
[先看使用者指南](user-guide/conversations.md),再按需要阅读[开发者接入契约](AGENT_CONVERSATION_AUDIT.md)。
|
|
15
|
+
|
|
16
|
+
## 谁需要升级,哪些组件要一起准备
|
|
17
|
+
|
|
18
|
+
| 你的使用方式 | 此次升级建议 |
|
|
19
|
+
|---|---|
|
|
20
|
+
| 运行 BailingHub,想在后台追溯完整的本地智能体对话 | 升级 Core 到0.6.0并应用新增迁移;确认客户端已接入可见对话同步。 |
|
|
21
|
+
| 使用 DeepSeek Harness 操作多个业务账户 | 使用独立的 `dsh-bailinghub@0.4.0`;其精确依赖 `bailinghub-mcp-server@0.4.0`。按插件说明分别授权,并在首消息前选择本次范围。 |
|
|
22
|
+
| 自研桌面或其他智能体客户端 | 使用 Agent Client SDK0.4.0,接入会话范围、真实可见历史、持久归档与状态显示。只更换包版本不足以完成宿主接入。 |
|
|
23
|
+
| 只用网页聊天、Client API、Dify/n8n任务或静态MCP | 原入口继续使用,不要求新增本地客户端。其他适配器仍是独立发布项目。 |
|
|
24
|
+
|
|
25
|
+
先准备 Core,再升级 SDK 和客户端。单独升级 Core 不能让旧客户端自动上传完整原文;单独升级插件也不能让旧 Core 获得归档接口。此次多授权体验限同一业务系统、同一工作区,不宣称跨系统或跨路由编排。
|
|
26
|
+
|
|
27
|
+
## 已有部署如何升级
|
|
28
|
+
|
|
29
|
+
1. 按[运维升级指南](OPERATIONS.md)备份数据库,并保留旧代码或镜像。
|
|
30
|
+
2. 使用精确的 `v0.6.0` 代码或镜像,由一个部署步骤运行迁移。新增 `sql/057_agent_conversation_audit.sql` 只创建三张归档表;已有迁移不改写,运行时启动也不会自动执行迁移。
|
|
31
|
+
3. 启动新版并确认 `/health/ready` 正常,打开控制台“任务→会话”。使用新的客户端对话验证完整文本与原执行记录之间的关联。
|
|
32
|
+
4. 按 SDK/插件的迁移说明升级客户端。**新会话未选择授权时只有普通聊天**;首次发送后范围固定,改选需要新会话。重开原会话只恢复原授权。
|
|
33
|
+
5. 用测试数据验证断网重开后在同一运行时恢复、撤销原授权仍阻断、取消后不重新启用已结束操作。不要通过重复业务写操作来补齐审计。
|
|
34
|
+
|
|
35
|
+
回退旧代码时保留新增表和客户端待传事件。旧客户端仍可使用原接口;旧 Core 不支持新归档时,客户端应明确显示不支持,不丢弃原记录。
|
|
36
|
+
|
|
37
|
+
## 权限与记录边界
|
|
38
|
+
|
|
39
|
+
完整文本供当前中枢管理审计域中具有任务读取权限的管理员查看。Agent 没有读取聚合正文的接口,混合回复也不会回流到每个账户的模型记忆。每份授权的业务权限与审批仍按原规则执行,业务系统继续做最终校验。
|
|
40
|
+
|
|
41
|
+
归档只覆盖客户端实际可见的文本和原执行关联,不包含隐藏推理、附件或任意本地工具原始输出。无法还原过去没有保存的原文;范围恢复也不表示能跨进程恢复丢失的业务任务。业务后端的能力声明、业务 SDK 和审批规则无需为本次归档功能调整。
|
|
42
|
+
|
|
43
|
+
ACC规范、各生态适配器、独立客户端与托管环境保持各自边界;它们不被合并为Core的一部分,也不因Core发布而自动升级。
|
|
44
|
+
|
|
45
|
+
## 检查与进一步阅读
|
|
46
|
+
|
|
47
|
+
发布提交须通过 `npm run release:check`,覆盖权限与成员校验、事件幂等、执行关联、控制台、现有Client API/SDK兼容性、安全与制品边界。配套客户端另有离线恢复、保存失败和取消竞态回归。验证使用公开测试或隔离合成数据,不表示生产采用。
|
|
48
|
+
|
|
49
|
+
- [使用者指南](user-guide/conversations.md)
|
|
50
|
+
- [客户端接入指南](AGENT_CLIENT_QUICKSTART.md)
|
|
51
|
+
- [完整对话接口](AGENT_CONVERSATION_AUDIT.md)
|
|
52
|
+
- [SDK与插件各自的配套说明](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)
|
|
53
|
+
- [English release notes](RELEASE_NOTES_v0.6.0.en.md)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# BailingHub v0.6.1: 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
|
+
Version 0.6.1 has the same business behavior, APIs and migrations as 0.6.0. The 0.6.0 npm artifact passed content checks but lacked source-commit metadata, so it did not complete the formal Release gate. 0.6.1 completes that source verification and is the recommended installation. Deployments that already applied 057 do not recreate its tables.
|
|
6
|
+
|
|
7
|
+
## What changes for users
|
|
8
|
+
|
|
9
|
+
- **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.
|
|
10
|
+
- **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.
|
|
11
|
+
- **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.
|
|
12
|
+
- **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.
|
|
13
|
+
|
|
14
|
+
Start with the [user guide](user-guide/conversations.en.md). Client developers can continue with the [integration contract](AGENT_CONVERSATION_AUDIT.en.md).
|
|
15
|
+
|
|
16
|
+
## Who should upgrade
|
|
17
|
+
|
|
18
|
+
| How you use BailingHub | What to prepare |
|
|
19
|
+
|---|---|
|
|
20
|
+
| You operate a Hub and want full local-agent conversations in its console | Upgrade Core to 0.6.1, apply the new migration, and use a client that synchronizes visible conversations. |
|
|
21
|
+
| 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. |
|
|
22
|
+
| You build a desktop or other agent client | Use Agent Client SDK 0.4.0 and integrate scope, original visible history, durable capture and status. Changing a dependency version alone does not complete host integration. |
|
|
23
|
+
| 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. |
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
## Upgrade an existing deployment
|
|
28
|
+
|
|
29
|
+
1. Back up the database and retain the previous code or images, following the [operations guide](OPERATIONS.en.md).
|
|
30
|
+
2. Use the exact `v0.6.1` 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.
|
|
31
|
+
3. Start the new version, check `/health/ready`, and open Tasks → Conversations. Verify new client text and its links to original execution records.
|
|
32
|
+
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.
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
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.
|
|
36
|
+
|
|
37
|
+
## Permissions and recording boundaries
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
ACC, ecosystem adapters, independent clients and hosted deployments remain separate projects; they are not bundled into Core or automatically upgraded by this release.
|
|
44
|
+
|
|
45
|
+
## Verification and further reading
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
- [User guide](user-guide/conversations.en.md)
|
|
50
|
+
- [Client integration guide](AGENT_CLIENT_QUICKSTART.en.md)
|
|
51
|
+
- [Conversation archive API](AGENT_CONVERSATION_AUDIT.en.md)
|
|
52
|
+
- [SDK and plugin compatibility](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)
|
|
53
|
+
- [中文发布说明](RELEASE_NOTES_v0.6.1.md)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# BailingHub v0.6.1:看完整沟通,再追到每次业务操作
|
|
2
|
+
|
|
3
|
+
一次对话可能先查询 A 账户,再修改 B 账户。以前,管理员需要打开各自的执行记录,看到的往往只是各自做了什么。现在,使用支持的新客户端,可以先阅读完整沟通过程,再追到每份授权的具体操作和审批。
|
|
4
|
+
|
|
5
|
+
0.6.1与0.6.0的业务功能、接口和数据库迁移相同。0.6.0的npm包内容已验证,但来源提交元数据缺失,未完成正式Release;0.6.1补齐发布来源校验,并作为推荐安装版本。已应用057的部署无需重复建表。
|
|
6
|
+
|
|
7
|
+
## 你会看到什么变化
|
|
8
|
+
|
|
9
|
+
- **一处看沟通经过**:控制台“任务→会话”新增客户端完整对话视图,按轮显示已同步的用户输入、中间说明和最终回复。
|
|
10
|
+
- **从回复追到操作**:每轮可展开各授权对应的原执行记录,继续查看工具调用、审批和结果;原来的授权记录入口仍保留。
|
|
11
|
+
- **多账户也能看清对象**:配套新 SDK 与 DSH 插件后,用户先选择同一业务系统的 A、B 授权,Agent 再为每次操作选用对应权限。账户的业务身份、审批和记忆保持独立。
|
|
12
|
+
- **缺记录时如实提示**:业务完成与对话同步分别判断。客户端断网后可以补传已保存事件;确认回包丢失不会重复写入。原文没有保存完整时,界面必须显示缺口,不把执行摘要当成原文。
|
|
13
|
+
|
|
14
|
+
[先看使用者指南](user-guide/conversations.md),再按需要阅读[开发者接入契约](AGENT_CONVERSATION_AUDIT.md)。
|
|
15
|
+
|
|
16
|
+
## 谁需要升级,哪些组件要一起准备
|
|
17
|
+
|
|
18
|
+
| 你的使用方式 | 此次升级建议 |
|
|
19
|
+
|---|---|
|
|
20
|
+
| 运行 BailingHub,想在后台追溯完整的本地智能体对话 | 升级 Core 到0.6.1并应用新增迁移;确认客户端已接入可见对话同步。 |
|
|
21
|
+
| 使用 DeepSeek Harness 操作多个业务账户 | 使用独立的 `dsh-bailinghub@0.4.0`;其精确依赖 `bailinghub-mcp-server@0.4.0`。按插件说明分别授权,并在首消息前选择本次范围。 |
|
|
22
|
+
| 自研桌面或其他智能体客户端 | 使用 Agent Client SDK0.4.0,接入会话范围、真实可见历史、持久归档与状态显示。只更换包版本不足以完成宿主接入。 |
|
|
23
|
+
| 只用网页聊天、Client API、Dify/n8n任务或静态MCP | 原入口继续使用,不要求新增本地客户端。其他适配器仍是独立发布项目。 |
|
|
24
|
+
|
|
25
|
+
先准备 Core,再升级 SDK 和客户端。单独升级 Core 不能让旧客户端自动上传完整原文;单独升级插件也不能让旧 Core 获得归档接口。此次多授权体验限同一业务系统、同一工作区,不宣称跨系统或跨路由编排。
|
|
26
|
+
|
|
27
|
+
## 已有部署如何升级
|
|
28
|
+
|
|
29
|
+
1. 按[运维升级指南](OPERATIONS.md)备份数据库,并保留旧代码或镜像。
|
|
30
|
+
2. 使用精确的 `v0.6.1` 代码或镜像,由一个部署步骤运行迁移。新增 `sql/057_agent_conversation_audit.sql` 只创建三张归档表;已有迁移不改写,运行时启动也不会自动执行迁移。
|
|
31
|
+
3. 启动新版并确认 `/health/ready` 正常,打开控制台“任务→会话”。使用新的客户端对话验证完整文本与原执行记录之间的关联。
|
|
32
|
+
4. 按 SDK/插件的迁移说明升级客户端。**新会话未选择授权时只有普通聊天**;首次发送后范围固定,改选需要新会话。重开原会话只恢复原授权。
|
|
33
|
+
5. 用测试数据验证断网重开后在同一运行时恢复、撤销原授权仍阻断、取消后不重新启用已结束操作。不要通过重复业务写操作来补齐审计。
|
|
34
|
+
|
|
35
|
+
回退旧代码时保留新增表和客户端待传事件。旧客户端仍可使用原接口;旧 Core 不支持新归档时,客户端应明确显示不支持,不丢弃原记录。
|
|
36
|
+
|
|
37
|
+
## 权限与记录边界
|
|
38
|
+
|
|
39
|
+
完整文本供当前中枢管理审计域中具有任务读取权限的管理员查看。Agent 没有读取聚合正文的接口,混合回复也不会回流到每个账户的模型记忆。每份授权的业务权限与审批仍按原规则执行,业务系统继续做最终校验。
|
|
40
|
+
|
|
41
|
+
归档只覆盖客户端实际可见的文本和原执行关联,不包含隐藏推理、附件或任意本地工具原始输出。无法还原过去没有保存的原文;范围恢复也不表示能跨进程恢复丢失的业务任务。业务后端的能力声明、业务 SDK 和审批规则无需为本次归档功能调整。
|
|
42
|
+
|
|
43
|
+
ACC规范、各生态适配器、独立客户端与托管环境保持各自边界;它们不被合并为Core的一部分,也不因Core发布而自动升级。
|
|
44
|
+
|
|
45
|
+
## 检查与进一步阅读
|
|
46
|
+
|
|
47
|
+
发布提交须通过 `npm run release:check`,覆盖权限与成员校验、事件幂等、执行关联、控制台、现有Client API/SDK兼容性、安全与制品边界。配套客户端另有离线恢复、保存失败和取消竞态回归。验证使用公开测试或隔离合成数据,不表示生产采用。
|
|
48
|
+
|
|
49
|
+
- [使用者指南](user-guide/conversations.md)
|
|
50
|
+
- [客户端接入指南](AGENT_CLIENT_QUICKSTART.md)
|
|
51
|
+
- [完整对话接口](AGENT_CONVERSATION_AUDIT.md)
|
|
52
|
+
- [SDK与插件各自的配套说明](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)
|
|
53
|
+
- [English release notes](RELEASE_NOTES_v0.6.1.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.1** 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.1 upgrade notes](../RELEASE_NOTES_v0.6.1.en.md). Client developers can continue with the [integration guide](../AGENT_CLIENT_QUICKSTART.en.md) and [conversation archive API](../AGENT_CONVERSATION_AUDIT.en.md).
|