bailinghub 0.6.0 → 0.7.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.
Files changed (149) hide show
  1. package/README.en.md +11 -7
  2. package/README.md +10 -7
  3. package/docker-compose.images.yml +2 -2
  4. package/docs/AGENT_AUTH_API.en.md +112 -1
  5. package/docs/AGENT_AUTH_API.md +99 -1
  6. package/docs/AGENT_CLIENT_QUICKSTART.en.md +32 -5
  7. package/docs/AGENT_CLIENT_QUICKSTART.md +27 -4
  8. package/docs/AGENT_CLIENT_RUNTIME_API.md +4 -1
  9. package/docs/AGENT_CONVERSATION_AUDIT.en.md +109 -4
  10. package/docs/AGENT_CONVERSATION_AUDIT.md +84 -3
  11. package/docs/AGENT_SUBJECT_DISPLAY.en.md +95 -0
  12. package/docs/AGENT_SUBJECT_DISPLAY.md +95 -0
  13. package/docs/AGENT_SYSTEM_INFO.en.md +99 -0
  14. package/docs/AGENT_SYSTEM_INFO.md +97 -0
  15. package/docs/CHANGELOG.en.md +25 -2
  16. package/docs/CHANGELOG.md +24 -1
  17. package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
  18. package/docs/INDEPENDENT_VALIDATION.md +4 -4
  19. package/docs/LOCAL_AGENT_SETUP.en.md +116 -0
  20. package/docs/LOCAL_AGENT_SETUP.md +116 -0
  21. package/docs/README.en.md +8 -0
  22. package/docs/README.md +8 -0
  23. package/docs/RELEASE_NOTES_NEXT.en.md +3 -0
  24. package/docs/RELEASE_NOTES_NEXT.md +3 -0
  25. package/docs/RELEASE_NOTES_v0.6.0.en.md +4 -2
  26. package/docs/RELEASE_NOTES_v0.6.0.md +2 -0
  27. package/docs/RELEASE_NOTES_v0.6.1.en.md +53 -0
  28. package/docs/RELEASE_NOTES_v0.6.1.md +53 -0
  29. package/docs/RELEASE_NOTES_v0.7.0.en.md +116 -0
  30. package/docs/RELEASE_NOTES_v0.7.0.md +116 -0
  31. package/docs/SDK.en.md +31 -0
  32. package/docs/user-guide/conversations.en.md +4 -2
  33. package/docs/user-guide/conversations.md +4 -2
  34. package/package.json +1 -1
  35. package/schemas/config/route.schema.json +15 -2
  36. package/scripts/check-doc-links.mjs +2 -0
  37. package/scripts/check-image-tags.sh +1 -1
  38. package/scripts/check-release-consistency.test.mjs +2 -2
  39. package/scripts/install.sh +1 -1
  40. package/scripts/publish-images.sh +1 -1
  41. package/scripts/release-audit.mjs +2 -0
  42. package/scripts/sdk-agent-auth-lifecycle-check.mjs +178 -0
  43. package/scripts/sdk-runtime-test.mjs +5 -2
  44. package/scripts/verify-github-repo.mjs +2 -0
  45. package/sdk/php/README.md +29 -0
  46. package/sdk/php/src/AgentAuth.php +100 -4
  47. package/sdk/php/src/HubClient.php +2 -1
  48. package/sdk/php7/README.md +31 -0
  49. package/sdk/php7/src/AgentAuth.php +99 -4
  50. package/sdk/php7/src/HubClient.php +2 -1
  51. package/sql/058_agent_conversation_member_bindings.sql +9 -0
  52. package/sql/059_agent_subject_display.sql +5 -0
  53. package/sql/README.en.md +15 -0
  54. package/sql/README.md +25 -0
  55. package/src/app/agent-conversation-audit.ts +20 -0
  56. package/src/app/agent-system-info.ts +41 -0
  57. package/src/app/agent-tool-invocations.ts +16 -4
  58. package/src/core/config/agent-setup.ts +37 -0
  59. package/src/core/config/client-agent-setup.ts +25 -0
  60. package/src/core/config/config-schema.test.ts +11 -0
  61. package/src/core/config/route-config.test.ts +28 -0
  62. package/src/core/config/route-config.ts +43 -4
  63. package/src/core/contracts/agent-subject-display.test.ts +19 -0
  64. package/src/core/contracts/agent-subject-display.ts +36 -0
  65. package/src/core/contracts/types.ts +15 -0
  66. package/src/core/runtime/agent-conversation-audit.test.ts +19 -1
  67. package/src/core/runtime/agent-conversation-audit.ts +39 -0
  68. package/src/infrastructure/config/config-agent-auth-business-sessions.test.ts +120 -0
  69. package/src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts +152 -0
  70. package/src/infrastructure/config/config-agent-auth-repository.test.ts +2 -0
  71. package/src/infrastructure/config/config-agent-auth-repository.ts +208 -18
  72. package/src/infrastructure/config/config-agent-conversation-audit-cross-binding.test.ts +120 -0
  73. package/src/infrastructure/config/config-agent-conversation-audit-repository.ts +117 -23
  74. package/src/infrastructure/config/config-agent-subject-display.test.ts +103 -0
  75. package/src/infrastructure/config/config-client-repository.ts +21 -0
  76. package/src/infrastructure/config/config-route-agent-setup.test.ts +59 -0
  77. package/src/infrastructure/config/config-route-repository.ts +24 -0
  78. package/src/infrastructure/config/configstore.ts +7 -3
  79. package/src/infrastructure/schema/core-schema-migrator.test.ts +90 -0
  80. package/src/routes/admin-access.ts +37 -0
  81. package/src/routes/admin-agent-clients.ts +11 -0
  82. package/src/routes/admin-agent-setup.test.ts +130 -0
  83. package/src/routes/admin-agent-setup.ts +68 -0
  84. package/src/routes/admin-client-agent-setup.test.ts +93 -0
  85. package/src/routes/admin-dispatch-config.ts +2 -0
  86. package/src/routes/agent-api.ts +7 -0
  87. package/src/routes/agent-auth-lifecycle-http.test.ts +177 -0
  88. package/src/routes/agent-auth-lifecycle.test.ts +193 -0
  89. package/src/routes/agent-auth.test.ts +1 -1
  90. package/src/routes/agent-auth.ts +206 -16
  91. package/src/routes/agent-conversation-audit-cross-binding-http.test.ts +122 -0
  92. package/src/routes/agent-conversation-audit.ts +8 -2
  93. package/src/routes/agent-subject-display-http.test.ts +145 -0
  94. package/src/routes/agent-system-info.test.ts +132 -0
  95. package/src/test-support/agent-auth-business-query-fixture.ts +43 -0
  96. package/src/test-support/agent-auth-lifecycle-fixture.ts +288 -0
  97. package/src/test-support/agent-conversation-audit-fixture.ts +30 -6
  98. package/src/test-support/agent-conversation-audit-http-fixture.ts +84 -0
  99. package/web/connect/bailing-connect-php.tgz +0 -0
  100. package/web/connect/bailing-connect-php7.tgz +0 -0
  101. package/web/console/assets/{Accounts-Ca_VnSu9.js → Accounts-ChL9k-XA.js} +1 -1
  102. package/web/console/assets/AgentClients-Bs7UgVDj.js +1 -0
  103. package/web/console/assets/AgentClients-DkgPTEbq.css +1 -0
  104. package/web/console/assets/{Approvals-CMvPWacY.js → Approvals-Bs6FGbp2.js} +1 -1
  105. package/web/console/assets/{Audit-CIRqOCnL.js → Audit-4WWYhkFM.js} +1 -1
  106. package/web/console/assets/{BrandLockup-BrytmTTH.js → BrandLockup-D2GhCipL.js} +1 -1
  107. package/web/console/assets/{Channels-CApxH2TB.js → Channels-CmoGpiCJ.js} +1 -1
  108. package/web/console/assets/{ChatEntries-CJon3bWJ.js → ChatEntries-BFRMtwta.js} +1 -1
  109. package/web/console/assets/Clients-CSHIsaWU.css +1 -0
  110. package/web/console/assets/Clients-DGkkSXyA.js +3 -0
  111. package/web/console/assets/{Cost-BbhlQFP8.js → Cost-BmGt0MfS.js} +1 -1
  112. package/web/console/assets/{Credentials-kqr1W0K7.js → Credentials-CR-sYINT.js} +1 -1
  113. package/web/console/assets/{Diagnostics-Kljt9XTH.js → Diagnostics-DAPbKSJp.js} +1 -1
  114. package/web/console/assets/{Executors-DnsB-Xz4.js → Executors-CgpiT3o8.js} +1 -1
  115. package/web/console/assets/{Kb-DLZSAFWP.js → Kb-Cm9dVSQw.js} +1 -1
  116. package/web/console/assets/{Login-DiTjPWmN.js → Login-CyUcsTZ_.js} +1 -1
  117. package/web/console/assets/{Projects-CXcVCgCD.js → Projects-DldFPgWg.js} +1 -1
  118. package/web/console/assets/Routes-DkMIjMQA.css +1 -0
  119. package/web/console/assets/Routes-DubfjlBD.js +124 -0
  120. package/web/console/assets/Runs-1hxgkuR4.js +3 -0
  121. package/web/console/assets/Runs-CvGTV8I-.css +1 -0
  122. package/web/console/assets/{Setup-FqoCKmfZ.js → Setup-DBLOnI2_.js} +1 -1
  123. package/web/console/assets/{Shell-BEqpONiy.js → Shell-gJ5Vz_E7.js} +1 -1
  124. package/web/console/assets/{StorageBuckets-CkORbYXY.js → StorageBuckets-DkDW16tj.js} +1 -1
  125. package/web/console/assets/{SystemSettings-gTQAazu7.js → SystemSettings-cDkudo2y.js} +1 -1
  126. package/web/console/assets/{SystemStatus-DAmUUNqO.js → SystemStatus-DZd6s8OX.js} +1 -1
  127. package/web/console/assets/{Targets-CZmDcjsE.js → Targets-DYNGq1NU.js} +1 -1
  128. package/web/console/assets/{Tools-CIHInlHL.js → Tools-DpWM59vV.js} +1 -1
  129. package/web/console/assets/{index-BkLbd7Cc.js → index-DGqs28gI.js} +2 -2
  130. package/web/console/assets/{request-r7GHVJzw.js → request-B7MLvOqo.js} +1 -1
  131. package/web/console/assets/{schema-BVn_hB7M.js → schema-CMuwjYdJ.js} +1 -1
  132. package/web/console/index.html +1 -1
  133. package/web-admin/scripts/subject-display-ui.mjs +78 -0
  134. package/web-admin/src/components/AgentSetupPanel.vue +262 -0
  135. package/web-admin/src/components/ClientConversations.vue +21 -4
  136. package/web-admin/src/components/conversation-audit.ts +20 -0
  137. package/web-admin/src/pages/AgentClients.vue +97 -23
  138. package/web-admin/src/pages/Clients.vue +4 -1
  139. package/web-admin/src/pages/Routes.vue +10 -1
  140. package/web-admin/tests/conversation-audit.fixture.mjs +13 -10
  141. package/web-admin/tests/conversation-audit.test.mjs +63 -1
  142. package/web/console/assets/AgentClients-BPIvlLYY.js +0 -1
  143. package/web/console/assets/AgentClients-DsWADpzr.css +0 -1
  144. package/web/console/assets/Clients-BSA1rlTB.js +0 -3
  145. package/web/console/assets/Clients-CNIVs7Qn.css +0 -1
  146. package/web/console/assets/Routes-CXGl9SMM.css +0 -1
  147. package/web/console/assets/Routes-DN9_d9Po.js +0 -124
  148. package/web/console/assets/Runs-Cwbe6thL.js +0 -3
  149. package/web/console/assets/Runs-D8UmjP5G.css +0 -1
@@ -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)
@@ -0,0 +1,116 @@
1
+ # BailingHub v0.7.0: use several business systems in one conversation
2
+
3
+ > Release date: 2026-09-10. Upgrade baseline: Core 0.6.1 and SDK/DSH 0.4.0.
4
+ > Full client pairing: Core 0.7.0, SDK 0.5.0 and DSH 0.5.0, released as separate projects.
5
+ > [简体中文](RELEASE_NOTES_v0.7.0.md)
6
+
7
+ Suppose you have connected a shop and an inventory system. You want to ask:
8
+
9
+ > “Check how many tumblers are in stock. If any are available, change the corresponding shop product's price to 59 and list it. If none are available, leave it unlisted.”
10
+
11
+ The 0.6 release pairing already supports several accounts from one system in a conversation. This extension follows that direction: explicitly select authorizations from several systems on the same Hub, discover their tools as needed, and use the appropriate authority for each action while keeping a connected visible conversation.
12
+
13
+ This is an illustrative integration, with a confirmed mapping between the two products. The inventory system must expose stock lookup; the shop must expose price updates and product listing. BailingHub does not supply these business functions. Actual account permissions and approval rules continue to apply.
14
+
15
+ | Part of the request | Responsible system | What to check |
16
+ | --- | --- | --- |
17
+ | Look up stock | Inventory, using the selected inventory authorization | The actual product and returned quantity |
18
+ | Change the price if stock exists | Shop, using the selected shop authorization | The corresponding product's stored price |
19
+ | List the product | Shop, retaining its listing permission and approval rules | The result, pending approval or failure |
20
+
21
+ A successful price change followed by a pending listing approval is not “all done.” Administrators can inspect each original action from the conversation. Stock lookup is a point-in-time observation, not a stock reservation or automatic synchronization between systems.
22
+
23
+ ## What changes and which problems it solves
24
+
25
+ ### New: select several systems and use the right authorization for each step
26
+
27
+ The Agent uses inventory tools to check stock and shop tools to update the price and listing. Even if both systems call a tool “find product,” their calls retain separate ownership.
28
+
29
+ If a turn only asks the current shop price, selection alone does not send the full input to inventory, load its business context or mark it as executed. Unselected systems cannot be added implicitly. The first message freezes the scope; changing it requires a new conversation. Existing conversations never expand automatically.
30
+
31
+ ### New: understand a system before searching its tools
32
+
33
+ A shop usually handles product presentation, online selling and promotions; inventory handles stock and movements. Administrators can maintain the system name, purpose, typical business areas and boundaries. Compatible clients provide the selected systems' descriptions before the first capability search, without a hard-coded product dictionary in every client.
34
+
35
+ Descriptions explain purpose, not permission. Actual actions still require authorized discovery. “Not loaded” means tools have not yet been requested. Reading descriptions creates no business run.
36
+
37
+ ### New: show the actual business subject after authorization
38
+
39
+ After approving access to “Brand flagship store,” a compatible client can display “Shop system · Brand flagship store.” The business backend reads the name from the confirmed subject and supplies it through Core, SDK and the plugin.
40
+
41
+ Authorization subject display is generic: it can describe an organization, account, project, workspace or store. It is separate from system purpose. Duplicate names do not merge identities, and renames do not replace authorizations or rewrite conversation history. Missing names are explicitly pending; the backend can update an existing authorization's name.
42
+
43
+ ### Improved: configure local Agent access from one entry point
44
+
45
+ Use **Agent Clients → Setup** for the authorization entry, system description, tools and approvals, and connection checks. The tool directory explains each action, its read/write type and configuration status.
46
+
47
+ These settings still belong to the original client application and route; no duplicate registration is required. Advanced route permissions remain available. Centralized setup neither enables every write operation nor removes business-required approval.
48
+
49
+ ### New: let a business backend find and manage its authorizations
50
+
51
+ When a shop operator is disabled, the backend can find the relevant Agent Sessions and withdraw their access to product lookup, price changes or listing. Consumed authorizations now link to the resulting Session; an application can list its own Sessions and revoke access by original authorization.
52
+
53
+ The business backend must connect these APIs to its account, tenant and permission lifecycle. Core does not automatically subscribe to those events. Queries are limited to the owning application and return no access credentials.
54
+
55
+ ### Extended: trace a conversation to actions in different systems
56
+
57
+ Complete visible conversation archives already exist in 0.6. This extension adds cross-system member and execution bindings. Administrators can follow stock lookup, price changes and listing to each system's original authorization and run.
58
+
59
+ Pending or failed actions must not be reported as completed. Archive recovery resends saved records without repeating business writes; known missing original text remains visibly incomplete.
60
+
61
+ ## Who should prepare an upgrade
62
+
63
+ | Role | Required or optional work |
64
+ | --- | --- |
65
+ | Hub administrator | Upgrade Core and apply new migrations; add system descriptions and access configuration as needed. |
66
+ | DSH user | Use the matched plugin and its exact SDK dependency; authorize each target and select the new conversation's scope before its first message. |
67
+ | Custom client developer | Upgrade SDK/DSH host dependencies and check target selection, scope restoration, storage and display. A package replacement does not implement a custom UI automatically. |
68
+ | Business backend developer | Existing actions remain unchanged. To provide names, use the updated business SDK or API; to withdraw access proactively, integrate session lookup and revocation. |
69
+ | Existing same-system user | Keep the existing flow and original scopes; descriptions and names are optional additions. |
70
+ | Web chat, Client API or other adapter user | No requirement to adopt a DSH client. Assess Core upgrades for the integration actually used. |
71
+
72
+ ## Upgrade preparation
73
+
74
+ Use **Core 0.7.0 + SDK 0.5.0 + DSH 0.5.0**. Prepare Core before upgrading clients. The plugin installs its exact SDK dependency; old 0.4.0 clients do not enable the new cross-system and display experience. Check each project’s Release for availability.
75
+
76
+ After backup and migration preparation, npm deployments use:
77
+
78
+ ```bash
79
+ npm install --save-exact bailinghub@0.7.0
80
+ ```
81
+
82
+ For an existing DeepSeek Harness environment:
83
+
84
+ ```bash
85
+ dsh plugin --profile web add dsh-bailinghub@0.5.0
86
+ ```
87
+
88
+ Custom clients use `bailinghub-mcp-server@0.5.0`. Source installs use the immutable `v0.7.0` Tag; image deployments select `bailinghub:0.7.0`. See [operations](OPERATIONS.en.md), [installation](QUICKSTART.en.md) and [DSH compatibility](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md).
89
+
90
+ 1. Back up the database and preserve the old deployment, configuration, original scopes, visible events and pending archive records.
91
+ 2. Upgrade Core first. Relative to 0.6.1, migrations 058 add cross-system member bindings and 059 add subject display. Use the official migrator to apply every unapplied migration according to its ledger. Older installations may also need earlier files. Migration 059 does not guess or backfill names.
92
+ 3. Upgrade the matched SDK and client. Custom stores must retain full cross-system bindings, original Session identities, events and revisions; today's authorization list cannot reconstruct old conversations. Custom Core hosts also need the new optional repository capabilities documented in the integration contracts.
93
+ 4. Add system descriptions and business-supplied names as needed. Update an original valid authorization's name without replacing its connection or identity.
94
+ 5. In a new test conversation, select two systems, perform an allowed query and a permitted low-risk action, and inspect the target, business result and original execution association. Approval-required actions must still enter the original approval flow.
95
+
96
+ Also check that a single selected system cannot access another, duplicate names and renames preserve identity, reopening restores the original scope, and archive-only retry never repeats writes.
97
+
98
+ For rollback, retain new database fields and client records and follow the relevant operations guide. Older clients cannot use the new cross-system scope. Report unsupported combinations; do not erase records or widen authorization to continue.
99
+
100
+ ## Limits
101
+
102
+ - One Hub and administrator audit domain, with a distinct original Agent Session for each target. Cross-Hub scopes and several selected routes sharing one Session are unsupported.
103
+ - The Agent plans steps. This is not a durable workflow scheduler, distributed transaction, automatic rollback or cross-process business task recovery engine.
104
+ - Matching product names or IDs across systems are not identity evidence. Use confirmed mappings or explicit user identification.
105
+ - Queried business results enter the local conversation; visible text is archived in the administrator audit domain. This is not automatic redaction or a field-level sharing policy. Choose information appropriate for the shared context.
106
+ - Missing metadata or unsupported old versions remain explicit. They do not prove loaded tools or authorize switching to a default connection.
107
+
108
+ ## Further reading
109
+
110
+ - [Four-step local Agent setup](LOCAL_AGENT_SETUP.en.md)
111
+ - [Authorization subject display](AGENT_SUBJECT_DISPLAY.en.md)
112
+ - [Authorization and revocation API](AGENT_AUTH_API.en.md)
113
+ - [Cross-system client integration](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/CROSS_SYSTEM_CONVERSATIONS.md)
114
+ - [Visible conversation and execution associations](AGENT_CONVERSATION_AUDIT.en.md)
115
+
116
+ ACC, independent adapters and business systems retain their own release boundaries.
@@ -0,0 +1,116 @@
1
+ # BailingHub v0.7.0:在一个会话里使用多个业务系统
2
+
3
+ > 发布日期:2026-09-10。升级基线:Core 0.6.1、SDK/DSH 0.4.0。
4
+ > 完整客户端配套为 Core 0.7.0、SDK 0.5.0、DSH 0.5.0,三个项目分别发布和安装。
5
+ > [English](RELEASE_NOTES_v0.7.0.en.md)
6
+
7
+ 假设你已经接入商城和库存系统,希望对助手说:
8
+
9
+ > “先查一下保温杯还有多少库存。有货的话,把商城这款商品的售价改为 59 元并上架;没货就先不要上架。”
10
+
11
+ 以前,0.6 配套客户端已经可以在同一会话使用同一系统的多个账户,但不能把不同业务系统的授权一起选入这个会话。本次沿着这条路线继续扩展:在同一中枢内,用户可以先选定多个系统的授权,助手按需要查找各自的工具,再使用对应权限执行,并关联到同一段可见沟通。
12
+
13
+ 以上是通用场景示例,假定两边商品的对应关系已经确认。库存系统需要提供库存查询,商城需要提供改价、上架等业务能力;这些动作不是中枢内置的商城功能,每项操作仍受实际授权和审批约束。
14
+
15
+ | 这句话中的事情 | 谁来处理 | 完成后查看什么 |
16
+ | --- | --- | --- |
17
+ | 查询保温杯库存 | 库存系统,使用本次选择的库存授权 | 返回的库存数量和具体商品 |
18
+ | 有货时调整商品售价 | 商城系统,使用本次选择的商城授权 | 商城中对应商品的实际售价 |
19
+ | 将商品上架 | 商城系统,继续遵守上架权限与审批 | 实际上架结果,或待审批、失败的记录 |
20
+
21
+ 例如,改价已经完成、上架仍待审批时,不能说“全部完成”。管理员可以从同一段沟通追到这两个动作各自的原始执行记录。库存查询反映当时的结果,不等于已经锁定库存,也不建立两个系统的自动库存同步。
22
+
23
+ ## 更新了什么,解决了什么问题
24
+
25
+ ### 新增:一次选择多个系统,按每一步的任务使用对应授权
26
+
27
+ 在示例中,用户先选择商城和库存系统的授权。查询库存使用库存系统的工具与权限;修改售价、上架商品使用商城系统的工具与权限。两个系统即使存在同名的“查询商品”工具,也保留各自的调用归属。
28
+
29
+ 如果这轮只问“商城里这款商品现在卖多少钱”,库存系统不会因为被选中就自动接收完整用户输入、加载业务上下文或被标成已执行。未选中的系统不能被临时加入。第一次发送消息后范围固定,增减授权需要新建会话;已有会话不会自动扩大到新接入的系统。
30
+
31
+ ### 新增:在第一次搜索工具前,先知道系统负责什么
32
+
33
+ 例如,“商城系统”通常负责商品展示、线上售卖和营销活动,“库存系统”负责库存与出入库。管理员可以维护系统名称、简短用途、典型业务方向和边界,配套客户端在首次能力搜索前将已选目标的说明提供给助手。
34
+
35
+ 这样,开发者不必在每一个客户端里硬编码产品词典。系统说明只解释产品定位,实际能调用什么仍要按这份授权查询。“尚未加载”表示工具还未查询,并不表示系统没有能力;读取系统说明本身不创建业务运行记录。
36
+
37
+ ### 新增:授权成功后,显示真实业务对象的名称
38
+
39
+ 例如,用户在商城页面确认授权给“品牌旗舰店”,返回支持此功能的客户端后,可以看到“商城系统 · 品牌旗舰店”。业务后端从已确认的真实对象读取名称,提交给中枢,由 SDK 和插件传给客户端。
40
+
41
+ 这里采用通用的授权主体展示信息,适用于组织、账户、项目、工作区或门店。系统说明负责解释“这是什么系统”,授权名称负责说明“这份授权对应谁”。同名对象不会因此合并,改名也不会重建授权或改变历史会话关联。旧授权缺少名称时明确提示待同步,可由业务后端给原授权补名。
42
+
43
+ ### 改进:从一个入口完成本地智能体的接入配置
44
+
45
+ 管理员打开“智能体客户端 → 接入配置”,依次配置授权入口、系统说明、工具与审批,再检查连接条件。工具目录同时展示动作说明、查询或写入类型与配置状态,减少在接入方和路由页面之间来回寻找。
46
+
47
+ 这些设置仍保存到原接入方和业务路由,不需要重复登记业务系统。原路由的高级权限设置仍保留;集中入口不会自动开放全部写操作,也不能取消业务系统原有的审批要求。
48
+
49
+ ### 新增:业务后端可以找回并管理自己签出的授权
50
+
51
+ 例如,某位商城操作员被停用后,业务后端需要找出对应的智能体会话,收回其查询商品、改价或上架的访问授权。本版补齐已完成换码的授权与最终会话之间的关联,支持接入方查询自己的会话,并按原授权撤销。
52
+
53
+ 业务系统需要把这些接口接到自己的账号停用、租户禁用或权限撤销流程;中枢不会自动订阅这些业务事件。接口只允许查询本接入方的记录,不返回访问凭据。
54
+
55
+ ### 扩展:从完整沟通追到不同系统的原始操作
56
+
57
+ 0.6 已有完整可见对话归档,本版把成员和执行关联扩展到不同系统。管理员可以先看用户的请求与助手回复,再查看库存查询、修改售价和商品上架分别属于哪份授权、哪个系统的执行记录。
58
+
59
+ 某一步等待审批或失败时,不能把其他系统一起描述为完成。恢复归档只补传已经保存的记录,不重复业务写入;历史原文存在保存缺口时继续如实显示。
60
+
61
+ ## 谁需要升级,分别做什么
62
+
63
+ | 使用方式 | 需要配合的部分 |
64
+ | --- | --- |
65
+ | 维护 BailingHub 中枢 | 升级 Core,应用本版新增迁移;按需要补充系统说明与接入配置。 |
66
+ | 使用 DSH 插件 | 使用本版配套插件及其精确 SDK 依赖;分别授权,在新会话首消息前明确选择目标。 |
67
+ | 开发自己的智能体客户端 | 升级 Agent Client SDK / DSH 宿主依赖,核对多系统目标展示、范围恢复、持久存储及名称展示。仅替换包不代表所有界面已自动完成接入。 |
68
+ | 维护业务系统后端 | 已接入的业务动作继续沿用。需要自动名称时,升级对应业务 SDK 或按新接口提交主体名称;需要主动回收访问时,对接授权查询与撤销。 |
69
+ | 只使用已有同系统多授权 | 原流程保留,旧会话不扩大为多系统;可以按需要采用新增名称与系统说明。 |
70
+ | 使用网页聊天、Client API 或其他生态适配器 | 不因本版新增本地会话功能而要求改造成 DSH 客户端;按自身使用方式核对 Core 升级影响。 |
71
+
72
+ ## 如何升级
73
+
74
+ 使用 **Core 0.7.0 + SDK 0.5.0 + DSH 0.5.0**。先准备中枢,再升级客户端;插件会安装精确 SDK 依赖。旧 0.4.0 客户端不会获得新跨系统与名称体验,各发布单元的可用状态以其 Release 为准。
75
+
76
+ 按运维指南备份并准备迁移后,npm 部署可使用:
77
+
78
+ ```bash
79
+ npm install --save-exact bailinghub@0.7.0
80
+ ```
81
+
82
+ 已有 DeepSeek Harness 环境安装配套插件:
83
+
84
+ ```bash
85
+ dsh plugin --profile web add dsh-bailinghub@0.5.0
86
+ ```
87
+
88
+ 自研客户端使用 `bailinghub-mcp-server@0.5.0`。源码部署使用不可变 `v0.7.0` Tag,镜像部署选择 `bailinghub:0.7.0`。完整步骤见[运维指南](OPERATIONS.md)、[安装指南](QUICKSTART.md)和[客户端兼容说明](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/COMPATIBILITY.md)。
89
+
90
+ 1. **保留现有数据和配置。** 备份数据库,保留原部署版本,以及客户端原会话范围、真实事件和待传归档记录。
91
+ 2. **先升级中枢并迁移。** 从 0.6.1 升级新增 058(跨系统会话成员绑定)与 059(授权主体展示信息);使用正式迁移器按账本执行全部尚未应用的文件。更早版本还要包含各自缺失的历史迁移,不能只手工执行最后两个文件。059 不会自动猜测或回填旧授权名称。
92
+ 3. **再升级配套 SDK 和客户端。** DSH 的正式包依赖精确匹配的 SDK。自定义存储需要保留多系统范围记录的完整绑定、原会话身份、事件与修订信息;不能用当前授权列表重建旧会话。自定义中枢宿主还需按兼容说明接入新增仓储能力。
93
+ 4. **按需要完善业务信息。** 管理员填写系统说明;业务后端在授权时提交真实主体名称,或给原有效授权补名。客户端显示最新名称,内部连接与授权身份继续独立保存。
94
+ 5. **用允许的测试动作核对结果。** 新建会话选择两个系统,先验证查询,再验证一个允许的低风险动作;核对实际目标、后台结果和同一段沟通中的执行关联。需要审批的动作仍应进入原审批流程。
95
+
96
+ 升级后还应检查:只选一个系统时不会访问另一个;同名或改名不会改变授权身份;重开原会话能恢复原范围;只重试归档不会重复业务动作。
97
+
98
+ 如需回退,保留新数据库字段与客户端记录,按对应版本升级指南操作。旧客户端不能据此使用新的多系统范围;遇到不支持时应明确提示,不能通过删除新记录或扩大授权来继续执行。
99
+
100
+ ## 使用边界
101
+
102
+ - 多系统范围限同一 Hub、同一管理审计域,每个目标使用独立的原 Agent Session;不支持跨 Hub,也不支持把同一个 Session 当作多个所选路由的授权。
103
+ - 助手负责规划步骤。本版没有新增持久任务调度、跨系统事务、自动回滚或跨进程恢复未完成业务任务的引擎。
104
+ - 不同系统的同名对象或相同编号不代表同一业务身份。关联需要已确认的业务映射或用户明确指定,不能凭展示名猜测。
105
+ - 系统查询结果进入本地助手后会参与同一段沟通;完整可见正文归档供中枢管理审计域使用。这不是自动脱敏或跨系统数据共享策略,接入方应选择适合共享的场景。
106
+ - 旧版本不支持新字段时显示未知、缺失或不支持,不冒充已加载能力,不自动退回默认授权。
107
+
108
+ ## 进一步阅读
109
+
110
+ - [四步配置本地智能体](LOCAL_AGENT_SETUP.md)
111
+ - [授权主体名称接入](AGENT_SUBJECT_DISPLAY.md)
112
+ - [授权接口与主动撤销](AGENT_AUTH_API.md)
113
+ - [跨系统会话与客户端接入](https://github.com/bailinghub/bailinghub-dsh-plugin/blob/main/docs/CROSS_SYSTEM_CONVERSATIONS.md)
114
+ - [完整可见对话与执行关联](AGENT_CONVERSATION_AUDIT.md)
115
+
116
+ ACC、独立生态适配器与业务系统保持各自发布边界。
package/docs/SDK.en.md CHANGED
@@ -161,6 +161,33 @@ public function memberQuery(): void
161
161
  }
162
162
  ```
163
163
 
164
+ ## Agent authorization lifecycle (Core 0.7.0)
165
+
166
+ PHP 8.1+ and PHP 7.3 provide the optional server-side `AgentAuth` helper for browser consent.
167
+ The additions in this branch let the business backend find the device session created by an
168
+ authorization and withdraw access when a device is lost or an operator leaves. They require
169
+ Core 0.7.0 and the matching PHP/PHP7 SDK bundles. Core 0.6.1 does not include these lifecycle methods.
170
+
171
+ ```php
172
+ $auth = new \Bailing\Connect\AgentAuth('https://hub.example.com', $clientToken);
173
+ $page = $auth->listSessions(['tenant' => (string) $tenantId, 'limit' => 20]);
174
+ $context = $auth->context($authorizationId); // Existing fields plus session on consumed records.
175
+ $result = $auth->revokeAuthorization($authorizationId);
176
+ ```
177
+
178
+ Only the current Client App is queried. The backend must also authorize its caller to manage the
179
+ requested tenant or operator. An operator filter requires `principal_id` and `tenant`; an empty
180
+ tenant explicitly selects a tenantless identity. Pass an opaque `next_cursor` with the original
181
+ filters until it is null; pages reflect current state rather than a frozen snapshot.
182
+ Expiry follows the refresh/session lifetime, and `active` is not proof of current business access.
183
+ Missing session mappings must not be inferred. Revocation is idempotent for the same authorization;
184
+ a timeout/503 or a consumed record's missing-mapping 404 must not be reported as success.
185
+ `revokeSession()` remains available for a known Session ID, and Client Tokens stay server-side.
186
+
187
+ Node and Python currently have no separate `AgentAuth` helper. Use the same backend HTTP contract
188
+ without introducing another authorization protocol. See [Agent Auth v1](AGENT_AUTH_API.en.md)
189
+ and the [integration quickstart](AGENT_CLIENT_QUICKSTART.en.md).
190
+
164
191
  ## Contract Test
165
192
 
166
193
  All SDKs are validated against the same tool contract:
@@ -175,3 +202,7 @@ npm run sdk:test-p1
175
202
  ```
176
203
 
177
204
  These tests build SDK-generated specs, compile them through the hub's OpenAPI tool compiler, verify runtime helpers across PHP/Node/Python, and compile or source-check the Java/Go/.NET SDKs depending on the local toolchain.
205
+
206
+ The runtime checks use `php` by default for both PHP source variants. Set
207
+ `BAILING_SDK_PHP7_BINARY` to a real PHP 7.3/7.4 executable to verify that interpreter; running the
208
+ PHP 7-compatible source on PHP 8 does not establish PHP 7 runtime coverage.
@@ -4,9 +4,11 @@
4
4
 
5
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
6
 
7
+ On one Hub you can also select shop and inventory authorizations: check stock, then perform permitted shop price or listing actions. System descriptions explain the roles and authorization names identify the business subjects. Product mappings must be confirmed; see [v0.7.0 scenarios](../RELEASE_NOTES_v0.7.0.en.md).
8
+
7
9
  ## What you need
8
10
 
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.
11
+ Deploy **BailingHub 0.7.0** and use **dsh-bailinghub 0.5.0**, which depends on the independent **bailinghub-mcp-server 0.5.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
12
 
11
13
  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
14
 
@@ -37,4 +39,4 @@ Full text belongs to the deployed Hub's administration audit domain, readable by
37
39
 
38
40
  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
41
 
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).
42
+ See the [v0.7.0 upgrade notes](../RELEASE_NOTES_v0.7.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).
@@ -4,9 +4,11 @@
4
4
 
5
5
  如果你管理同一系统里的 A、B 两家门店,过去可能要先切换账户,再分别提问。配套的新客户端可以让你先选好本次对话允许使用的授权,再由 Agent 为每次操作选择对应账户。门店只是示例;它也可以是同一系统中的两个业务账户。
6
6
 
7
+ 在同一中枢里,也可选择商城与库存两个系统:先查库存,再使用商城允许的改价或上架动作。系统说明解释各自用途,授权名称展示实际业务对象;两边商品映射需已确认。见[v0.7.0 场景说明](../RELEASE_NOTES_v0.7.0.md)。
8
+
7
9
  ## 开始前需要什么
8
10
 
9
- 部署者准备 BailingHub **0.6.0**;本地客户端使用 **dsh-bailinghub 0.4.0**,它依赖独立的 **bailinghub-mcp-server 0.4.0** SDK。使用自研客户端时,开发者需要接入会话范围、原始可见历史和归档接口。单独升级中枢,不会让旧客户端自动上传完整对话。
11
+ 部署者准备 BailingHub **0.7.0**;本地客户端使用 **dsh-bailinghub 0.5.0**,它依赖独立的 **bailinghub-mcp-server 0.5.0** SDK。使用自研客户端时,开发者需要接入会话范围、原始可见历史和归档接口。单独升级中枢,不会让旧客户端自动上传完整对话。
10
12
 
11
13
  业务系统已经接入并开放了需要的操作,你也已经分别完成 A、B 的业务授权。此次升级不要求重写既有业务能力或审批规则。还没有接入业务系统时,先运行[公开 Docker Demo](../DEMO.md)了解查询、审批和执行;该 Demo 不替代多账户客户端的安装与授权。
12
14
 
@@ -37,4 +39,4 @@
37
39
 
38
40
  当前归档范围是客户端实际可见的文本与原执行关联,不包含隐藏推理、附件或任意本地工具的原始输出。只看到了某份授权的执行摘要、却没有完整原文的旧记录,仍会明确表示原文缺失。
39
41
 
40
- 部署与升级请看 [v0.6.0 说明](../RELEASE_NOTES_v0.6.0.md);客户端开发者请看[接入指南](../AGENT_CLIENT_QUICKSTART.md)及[完整对话接口](../AGENT_CONVERSATION_AUDIT.md)。
42
+ 部署与升级请看 [v0.7.0 说明](../RELEASE_NOTES_v0.7.0.md);客户端开发者请看[接入指南](../AGENT_CLIENT_QUICKSTART.md)及[完整对话接口](../AGENT_CONVERSATION_AUDIT.md)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bailinghub",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Open-source ACC runtime and agent control plane for existing business systems.",
@@ -131,12 +131,25 @@
131
131
  "agent_client": {
132
132
  "type": "object",
133
133
  "title": "本地 Agent Runtime",
134
- "description": "本地 Agent 编排的显式开关、补充指令和每轮主动工具上限;缺省时兼容 tools.agent_direct.enabled。",
134
+ "description": "本地 Agent 编排的显式开关、系统说明、补充指令和每轮主动工具上限;缺省时兼容 tools.agent_direct.enabled。",
135
135
  "additionalProperties": false,
136
136
  "properties": {
137
137
  "enabled": { "type": "boolean" },
138
138
  "instructions": { "type": "string", "maxLength": 20000 },
139
- "active_tool_limit": { "type": "integer", "minimum": 1, "maximum": 12 }
139
+ "active_tool_limit": { "type": "integer", "minimum": 1, "maximum": 12 },
140
+ "system_info": {
141
+ "type": "object",
142
+ "title": "业务系统说明",
143
+ "description": "首次查找工具前可读取的产品定位数据;不授予工具权限,也不作为模型系统指令。",
144
+ "additionalProperties": false,
145
+ "required": ["name", "summary", "domains", "boundaries"],
146
+ "properties": {
147
+ "name": { "type": "string", "minLength": 1, "maxLength": 120, "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$", "title": "系统名称" },
148
+ "summary": { "type": "string", "minLength": 1, "maxLength": 400, "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$", "title": "简短用途" },
149
+ "domains": { "type": "array", "maxItems": 6, "items": { "type": "string", "minLength": 1, "maxLength": 120, "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$" }, "title": "典型业务方向" },
150
+ "boundaries": { "type": "array", "maxItems": 6, "items": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^(?=.*\\S)[^\\u0000-\\u001f\\u007f]+$" }, "title": "业务边界" }
151
+ }
152
+ }
140
153
  }
141
154
  },
142
155
  "budget": {
@@ -103,6 +103,8 @@ 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.7.0.md': 'docs/RELEASE_NOTES_v0.7.0.en.md',
107
+ 'docs/RELEASE_NOTES_v0.6.1.md': 'docs/RELEASE_NOTES_v0.6.1.en.md',
106
108
  'docs/RELEASE_NOTES_v0.6.0.md': 'docs/RELEASE_NOTES_v0.6.0.en.md',
107
109
  'docs/TOOLS_DESIGN.md': 'docs/TOOLS_DESIGN.en.md',
108
110
  'docs/TOOLS_MODEL.md': 'docs/TOOLS_MODEL.en.md',
@@ -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.6.0"
12
+ [ -n "$TAG" ] || TAG="0.7.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.6.0');
42
- assert.equal(result.stableVersion, '0.6.0');
41
+ assert.equal(result.version, '0.7.0');
42
+ assert.equal(result.stableVersion, '0.7.0');
43
43
  assert.equal(result.publishTag, 'latest');
44
44
  });
45
45
 
@@ -275,7 +275,7 @@ write_env() {
275
275
  TOOL_SECRET="${DEMO_TOOL_SECRET:-$(secret)}"
276
276
  CLIENT_TOKEN="${DEMO_CLIENT_TOKEN:-$(secret)}"
277
277
  IMAGE_TAG="${BAILING_IMAGE_TAG:-$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$APP_DIR/package.json" | head -1)}"
278
- [ -n "$IMAGE_TAG" ] || IMAGE_TAG="0.6.0"
278
+ [ -n "$IMAGE_TAG" ] || IMAGE_TAG="0.7.0"
279
279
  IMAGE_REGISTRY="${BAILING_IMAGE_REGISTRY:-$DEFAULT_IMAGE_REGISTRY}"
280
280
  IMAGE_NAMESPACE="${BAILING_IMAGE_NAMESPACE:-$DEFAULT_IMAGE_NAMESPACE}"
281
281
  cat > "$ENV_FILE" <<EOF
@@ -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.6.0"
12
+ [ -n "$TAG" ] || TAG="0.7.0"
13
13
  NODE_IMAGE="${BAILING_NODE_IMAGE:-node:22-bookworm-slim}"
14
14
  PLATFORM="${BAILING_IMAGE_PLATFORM:-linux/amd64}"
15
15
  PUSH="${BAILING_PUSH_IMAGES:-0}"
@@ -37,6 +37,8 @@ const requiredRepoFiles = [
37
37
  'docs/RELEASE_NOTES_v0.3.4.md',
38
38
  'docs/RELEASE_NOTES_v0.5.0.md',
39
39
  'docs/RELEASE_NOTES_v0.5.1.md',
40
+ 'docs/RELEASE_NOTES_v0.7.0.md',
41
+ 'docs/RELEASE_NOTES_v0.6.1.md',
40
42
  'docs/RELEASE_NOTES_v0.6.0.md',
41
43
  'docs/CHANGELOG.md',
42
44
  'docs/CLIENT_API.md',