bailinghub 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +8 -7
- package/README.md +7 -7
- package/docker-compose.images.yml +2 -2
- package/docs/AGENT_AUTH_API.en.md +112 -1
- package/docs/AGENT_AUTH_API.md +99 -1
- package/docs/AGENT_CLIENT_QUICKSTART.en.md +32 -5
- package/docs/AGENT_CLIENT_QUICKSTART.md +27 -4
- package/docs/AGENT_CLIENT_RUNTIME_API.en.md +46 -0
- package/docs/AGENT_CLIENT_RUNTIME_API.md +38 -1
- package/docs/AGENT_CONVERSATION_AUDIT.en.md +109 -4
- package/docs/AGENT_CONVERSATION_AUDIT.md +84 -3
- package/docs/AGENT_SUBJECT_DISPLAY.en.md +95 -0
- package/docs/AGENT_SUBJECT_DISPLAY.md +95 -0
- package/docs/AGENT_SYSTEM_INFO.en.md +99 -0
- package/docs/AGENT_SYSTEM_INFO.md +97 -0
- package/docs/AGENT_TASK_CONTROL.en.md +25 -0
- package/docs/AGENT_TASK_CONTROL.md +94 -0
- package/docs/AGENT_TASK_CONTROL_FOUNDATION.md +134 -0
- package/docs/CHANGELOG.en.md +24 -1
- package/docs/CHANGELOG.md +24 -1
- package/docs/COMPATIBILITY.en.md +2 -0
- package/docs/CONTRACT.en.md +2 -0
- package/docs/CONTRACT.md +2 -0
- package/docs/GENERATED_ARTIFACTS.en.md +46 -0
- package/docs/GENERATED_ARTIFACTS.md +108 -0
- package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
- package/docs/INDEPENDENT_VALIDATION.md +4 -4
- package/docs/INVOCATION_RECEIPTS.md +111 -0
- package/docs/LOCAL_AGENT_SETUP.en.md +116 -0
- package/docs/LOCAL_AGENT_SETUP.md +116 -0
- package/docs/README.en.md +9 -0
- package/docs/README.md +9 -0
- package/docs/RELEASE_NOTES_NEXT.en.md +3 -0
- package/docs/RELEASE_NOTES_NEXT.md +3 -0
- package/docs/RELEASE_NOTES_v0.7.0.en.md +116 -0
- package/docs/RELEASE_NOTES_v0.7.0.md +116 -0
- package/docs/RELEASE_NOTES_v0.8.0.en.md +40 -0
- package/docs/RELEASE_NOTES_v0.8.0.md +62 -0
- package/docs/SDK.en.md +31 -0
- package/docs/TOOL_RATE_LIMITS.md +50 -0
- package/docs/UPGRADE_v0.8.0.en.md +71 -0
- package/docs/UPGRADE_v0.8.0.md +73 -0
- package/docs/user-guide/conversations.en.md +4 -2
- package/docs/user-guide/conversations.md +4 -2
- package/docs//345/205/274/345/256/271/346/200/247/344/270/216/345/215/207/347/272/247.md +2 -0
- package/package.json +1 -1
- package/schemas/config/route.schema.json +16 -2
- package/schemas/config/tool-provider.schema.json +2 -1
- package/scripts/check-doc-links.mjs +2 -0
- package/scripts/check-image-tags.sh +1 -1
- package/scripts/check-release-consistency.test.mjs +2 -2
- package/scripts/e2e-console.mjs +32 -2
- package/scripts/install.sh +1 -1
- package/scripts/publish-images.sh +1 -1
- package/scripts/release-audit.mjs +2 -0
- package/scripts/sdk-agent-auth-lifecycle-check.mjs +178 -0
- package/scripts/sdk-runtime-test.mjs +5 -2
- package/scripts/verify-github-repo.mjs +2 -0
- package/sdk/php/README.md +29 -0
- package/sdk/php/src/AgentAuth.php +100 -4
- package/sdk/php/src/HubClient.php +2 -1
- package/sdk/php7/README.md +31 -0
- package/sdk/php7/src/AgentAuth.php +99 -4
- package/sdk/php7/src/HubClient.php +2 -1
- package/sql/058_agent_conversation_member_bindings.sql +9 -0
- package/sql/059_agent_subject_display.sql +5 -0
- package/sql/060_agent_artifacts.sql +11 -0
- package/sql/061_tool_rate_limit_policies.sql +3 -0
- package/sql/062_agent_task_control.sql +92 -0
- package/sql/README.en.md +15 -0
- package/sql/README.md +25 -0
- package/src/adapters/storage/object-storage.ts +15 -3
- package/src/adapters/storage/oss-signature.test.ts +40 -0
- package/src/adapters/storage/oss-signature.ts +21 -0
- package/src/app/agent-artifacts.test.ts +165 -0
- package/src/app/agent-artifacts.ts +85 -0
- package/src/app/agent-client-runtime.test.ts +76 -1
- package/src/app/agent-client-runtime.ts +13 -0
- package/src/app/agent-conversation-audit.ts +20 -0
- package/src/app/agent-invocation-snapshot.ts +35 -0
- package/src/app/agent-system-info.ts +41 -0
- package/src/app/agent-task-control.ts +187 -0
- package/src/app/agent-task-runtime.ts +68 -0
- package/src/app/agent-tool-invocations.test.ts +329 -1
- package/src/app/agent-tool-invocations.ts +239 -14
- package/src/app/agent-tool-job.test.ts +11 -1
- package/src/app/agent-tool-job.ts +8 -1
- package/src/app/builtin-tools.ts +4 -0
- package/src/app/oss-edition.ts +1 -0
- package/src/app/tool-approvals.ts +4 -0
- package/src/app/tool-assembly.ts +5 -0
- package/src/core/config/agent-setup.ts +37 -0
- package/src/core/config/artifact-config.ts +15 -0
- package/src/core/config/client-agent-setup.ts +25 -0
- package/src/core/config/config-codec.ts +3 -1
- package/src/core/config/config-models.ts +11 -1
- package/src/core/config/config-schema.test.ts +11 -0
- package/src/core/config/route-config.test.ts +28 -0
- package/src/core/config/route-config.ts +44 -4
- package/src/core/contracts/agent-subject-display.test.ts +19 -0
- package/src/core/contracts/agent-subject-display.ts +36 -0
- package/src/core/contracts/tool-rate-limits.test.ts +59 -0
- package/src/core/contracts/tool-rate-limits.ts +48 -0
- package/src/core/contracts/tools.ts +122 -43
- package/src/core/contracts/types.ts +18 -1
- package/src/core/runtime/agent-conversation-audit.test.ts +19 -1
- package/src/core/runtime/agent-conversation-audit.ts +39 -0
- package/src/core/runtime/agent-task-control.test.ts +114 -0
- package/src/core/runtime/agent-task-control.ts +227 -0
- package/src/infrastructure/config/config-agent-artifact-repository.ts +32 -0
- package/src/infrastructure/config/config-agent-auth-business-sessions.test.ts +120 -0
- package/src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts +152 -0
- package/src/infrastructure/config/config-agent-auth-repository.test.ts +2 -0
- package/src/infrastructure/config/config-agent-auth-repository.ts +208 -18
- package/src/infrastructure/config/config-agent-client-runtime-repository.ts +7 -1
- package/src/infrastructure/config/config-agent-conversation-audit-cross-binding.test.ts +120 -0
- package/src/infrastructure/config/config-agent-conversation-audit-repository.ts +117 -23
- package/src/infrastructure/config/config-agent-subject-display.test.ts +103 -0
- package/src/infrastructure/config/config-agent-task-control-journal-mysql.test.ts +315 -0
- package/src/infrastructure/config/config-agent-task-control-mysql.test.ts +331 -0
- package/src/infrastructure/config/config-agent-task-control-repository.ts +640 -0
- package/src/infrastructure/config/config-client-repository.ts +21 -0
- package/src/infrastructure/config/config-rate-limit-ledger.integration.test.ts +52 -0
- package/src/infrastructure/config/config-rate-limit-ledger.ts +48 -0
- package/src/infrastructure/config/config-route-agent-setup.test.ts +59 -0
- package/src/infrastructure/config/config-route-repository.ts +24 -0
- package/src/infrastructure/config/config-storage-bucket-repository.ts +2 -2
- package/src/infrastructure/config/config-tool-provider-repository.ts +4 -4
- package/src/infrastructure/config/configstore.ts +16 -4
- package/src/infrastructure/schema/core-schema-migrator.test.ts +90 -0
- package/src/routes/admin-access.ts +37 -0
- package/src/routes/admin-agent-clients.ts +11 -0
- package/src/routes/admin-agent-setup.test.ts +130 -0
- package/src/routes/admin-agent-setup.ts +68 -0
- package/src/routes/admin-agent-tasks.ts +32 -0
- package/src/routes/admin-client-agent-setup.test.ts +93 -0
- package/src/routes/admin-dispatch-config.ts +2 -0
- package/src/routes/admin-tool-providers.test.ts +22 -0
- package/src/routes/admin-tool-providers.ts +9 -1
- package/src/routes/admin.ts +3 -0
- package/src/routes/agent-api.test.ts +76 -0
- package/src/routes/agent-api.ts +49 -1
- package/src/routes/agent-artifacts.ts +29 -0
- package/src/routes/agent-auth-lifecycle-http.test.ts +177 -0
- package/src/routes/agent-auth-lifecycle.test.ts +193 -0
- package/src/routes/agent-auth.test.ts +1 -1
- package/src/routes/agent-auth.ts +206 -16
- package/src/routes/agent-conversation-audit-cross-binding-http.test.ts +122 -0
- package/src/routes/agent-conversation-audit.ts +8 -2
- package/src/routes/agent-subject-display-http.test.ts +145 -0
- package/src/routes/agent-system-info.test.ts +132 -0
- package/src/routes/agent-task-control-http-mysql.test.ts +246 -0
- package/src/routes/private.ts +1 -0
- package/src/routes/run.ts +2 -1
- package/src/test-support/agent-auth-business-query-fixture.ts +43 -0
- package/src/test-support/agent-auth-lifecycle-fixture.ts +288 -0
- package/src/test-support/agent-conversation-audit-fixture.ts +30 -6
- package/src/test-support/agent-conversation-audit-http-fixture.ts +84 -0
- package/src/test-support/agent-task-control-mysql-fixture.ts +75 -0
- package/web/connect/bailing-connect-php.tgz +0 -0
- package/web/connect/bailing-connect-php7.tgz +0 -0
- package/web/console/assets/{Accounts-Ca_VnSu9.js → Accounts-BRCR3O0P.js} +1 -1
- package/web/console/assets/AgentClients-Bf7sUUs_.js +1 -0
- package/web/console/assets/AgentClients-i52AI6YV.css +1 -0
- package/web/console/assets/AgentTasks--bqL_QKg.js +2 -0
- package/web/console/assets/AgentTasks-C8ox3TyS.css +1 -0
- package/web/console/assets/{Approvals-CMvPWacY.js → Approvals-BIbZvInm.js} +1 -1
- package/web/console/assets/{Audit-CIRqOCnL.js → Audit-KyPSmBdZ.js} +1 -1
- package/web/console/assets/{BrandLockup-BrytmTTH.js → BrandLockup-Sv5DU2G6.js} +1 -1
- package/web/console/assets/{Channels-CApxH2TB.js → Channels-B9n4fbxg.js} +1 -1
- package/web/console/assets/{ChatEntries-CJon3bWJ.js → ChatEntries-xsOCUXi_.js} +1 -1
- package/web/console/assets/Clients-CI3DBDHf.js +3 -0
- package/web/console/assets/Clients-CSHIsaWU.css +1 -0
- package/web/console/assets/{Cost-BbhlQFP8.js → Cost-JgNXQPlN.js} +1 -1
- package/web/console/assets/{Credentials-kqr1W0K7.js → Credentials-B5UUUdt0.js} +1 -1
- package/web/console/assets/{Diagnostics-Kljt9XTH.js → Diagnostics-BMGciWQb.js} +1 -1
- package/web/console/assets/{Executors-DnsB-Xz4.js → Executors-CRbboOCZ.js} +1 -1
- package/web/console/assets/{Kb-DLZSAFWP.js → Kb-CgLNGjRp.js} +1 -1
- package/web/console/assets/{Login-DiTjPWmN.js → Login-C52JmXzx.js} +1 -1
- package/web/console/assets/{Projects-CXcVCgCD.js → Projects-CDOvHPVS.js} +1 -1
- package/web/console/assets/Routes-DkMIjMQA.css +1 -0
- package/web/console/assets/Routes-X9vHLpKW.js +124 -0
- package/web/console/assets/Runs-CvGTV8I-.css +1 -0
- package/web/console/assets/Runs-DYNDXsqk.js +3 -0
- package/web/console/assets/{Setup-FqoCKmfZ.js → Setup-B91P6i1x.js} +1 -1
- package/web/console/assets/Shell-Bj6C8Hgo.css +1 -0
- package/web/console/assets/Shell-BsRa7bQQ.js +1 -0
- package/web/console/assets/StorageBuckets-CVgpZRWY.css +1 -0
- package/web/console/assets/StorageBuckets-DkuDM0oX.js +1 -0
- package/web/console/assets/{SystemSettings-gTQAazu7.js → SystemSettings-B7Mqj3k1.js} +1 -1
- package/web/console/assets/{SystemStatus-DAmUUNqO.js → SystemStatus-Db93b6dc.js} +1 -1
- package/web/console/assets/{Targets-CZmDcjsE.js → Targets-CuuIYeZO.js} +1 -1
- package/web/console/assets/Tools-CHiqz9XZ.js +2 -0
- package/web/console/assets/Tools-DU8ei6sd.css +1 -0
- package/web/console/assets/index-UGvfF3Xr.js +2 -0
- package/web/console/assets/{request-r7GHVJzw.js → request-DeGya810.js} +1 -1
- package/web/console/assets/{schema-BVn_hB7M.js → schema-BqlqLw1R.js} +1 -1
- package/web/console/index.html +1 -1
- package/web-admin/scripts/agent-task-control-smoke.mjs +120 -0
- package/web-admin/scripts/subject-display-ui.mjs +78 -0
- package/web-admin/src/components/AgentSetupPanel.vue +275 -0
- package/web-admin/src/components/ClientConversations.vue +21 -4
- package/web-admin/src/components/ToolRateLimitEditor.vue +28 -0
- package/web-admin/src/components/conversation-audit.ts +20 -0
- package/web-admin/src/layout/Shell.vue +1 -1
- package/web-admin/src/pages/AgentClients.vue +99 -23
- package/web-admin/src/pages/AgentTasks.vue +281 -0
- package/web-admin/src/pages/Clients.vue +4 -1
- package/web-admin/src/pages/Routes.vue +10 -1
- package/web-admin/src/pages/StorageBuckets.vue +6 -6
- package/web-admin/src/pages/Tools.vue +53 -4
- package/web-admin/src/router.ts +2 -0
- package/web-admin/tests/conversation-audit.fixture.mjs +13 -10
- package/web-admin/tests/conversation-audit.test.mjs +63 -1
- package/web/console/assets/AgentClients-BPIvlLYY.js +0 -1
- package/web/console/assets/AgentClients-DsWADpzr.css +0 -1
- package/web/console/assets/Clients-BSA1rlTB.js +0 -3
- package/web/console/assets/Clients-CNIVs7Qn.css +0 -1
- package/web/console/assets/Routes-CXGl9SMM.css +0 -1
- package/web/console/assets/Routes-DN9_d9Po.js +0 -124
- package/web/console/assets/Runs-Cwbe6thL.js +0 -3
- package/web/console/assets/Runs-D8UmjP5G.css +0 -1
- package/web/console/assets/Shell-BEqpONiy.js +0 -1
- package/web/console/assets/Shell-D9Uw-fsa.css +0 -1
- package/web/console/assets/StorageBuckets-CkORbYXY.js +0 -1
- package/web/console/assets/StorageBuckets-GnXnVvF0.css +0 -1
- package/web/console/assets/Tools-A20oaMaQ.css +0 -1
- package/web/console/assets/Tools-CIHInlHL.js +0 -2
- package/web/console/assets/index-BkLbd7Cc.js +0 -2
|
@@ -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、独立生态适配器与业务系统保持各自发布边界。
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# v0.8.0 BailingHub release: continue and control longer business tasks
|
|
2
|
+
|
|
3
|
+
Release 0.8.0. Pairing: Core 0.8.0 / Agent Client SDK 0.6.0 / DSH 0.6.0. Changes below are relative to the preceding public release.
|
|
4
|
+
|
|
5
|
+
Maintaining a shop catalog may involve checking inventory, producing images, editing products and waiting for approval. This update connects those steps with clearer discovery, original-call recovery and task controls. Multi-system authorization, subject display names and visible conversation archives were already available in the preceding release.
|
|
6
|
+
|
|
7
|
+
## What changes
|
|
8
|
+
|
|
9
|
+
**Task-wide budgets and controls.** Administrators can fix a task's authorized members, allowed tools, cumulative write-call budget, concurrent permit limit and optional deadline under Agent Clients → Task Control. A new message, tool search or host restart does not reset its budget. A batch operation affecting 20 products counts as one invocation, not 20 objects; a business rejection with a trustworthy response may also consume the write budget. Reads use concurrent permits but not the write budget. Original permissions and per-call approvals remain in force.
|
|
10
|
+
|
|
11
|
+
Pause blocks subsequent dispatch permits; already permitted work may finish. Continuing a task does not increase its budget or automatically continue an invocation. Cancelling prevents further dispatch and does not roll back completed changes.
|
|
12
|
+
|
|
13
|
+
**Inspect without executing.** A product listing can be approved without having been dispatched. A new read-only receipt keeps result, approval and dispatch facts separate. Refreshing it never submits the listing. Explicit continuation retains the original identity, parameters, run and invocation ID. An uncertain dispatched write is inspected rather than replaced. The paired DSH offers durable original-call recovery and panel APIs that work without an active model turn; hosts implement their own UI.
|
|
14
|
+
|
|
15
|
+
**Configurable tool limits.** Tool Providers → Edit → Governance supports inherited, custom or disabled Hub per-tool limits, including individual overrides. Provider-wide, per-tool and client-app gates remain separate. Hour/day limits keep their original windows. The same provider/tool shares its counter across users and conversations. SDK/DSH preserve retry guidance and original invocation recovery without asking the model to reconstruct write arguments.
|
|
16
|
+
|
|
17
|
+
**Local Agent attachment space, image-first.** An adapted host can register generated images or images explicitly selected by the user for business use. The Agent uploads them to operator-configured COS, OSS or explicit local storage and receives URLs for existing business tools—for example, a campaign cover or shop product image. PNG/JPEG/WebP, up to 6 MiB each and 1–8 images per DSH batch, are supported. Successful URLs are reusable; upload and business-action outcomes are separate. Chat attachments are not uploaded automatically. The host owns file access and image generation; the business system supplies the action accepting the URL.
|
|
18
|
+
|
|
19
|
+
Uploads are disabled by default. Configure storage under Agent Clients → Connection Configuration → Tools and Approval → Generated Image Upload. Images are publicly readable in this first phase. Operators manage retention; ending a conversation does not automatically delete objects.
|
|
20
|
+
|
|
21
|
+
**Clearer discovery and longer tool use.** Returned candidates, loaded tools and authorization-filtered catalog counts have separate meanings; unknown totals stay unknown. Ranked discovery is not exhaustive pagination. Paired DSH retains valid tools across searches within a turn. Adapted hosts can opt into declaration reuse across turns of the same living Session. Current target preparation, identity, permission and revision checks still apply.
|
|
22
|
+
|
|
23
|
+
## Who should upgrade
|
|
24
|
+
|
|
25
|
+
| Role | Action |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| Hub operator | Upgrade Core, apply unapplied migrations 060–062 and configure optional storage, rate policies and tasks |
|
|
28
|
+
| Client host developer | Upgrade the paired SDK/DSH, persistent stores and public task/receipt APIs; explicitly opt into cross-turn reuse |
|
|
29
|
+
| Business backend developer | Retain current declarations, authorization, approval and APIs; image use requires an existing URL interface or a separate business import operation |
|
|
30
|
+
| Plugin user | Use an adapted host; installing a package alone grants neither file access nor administrative permissions |
|
|
31
|
+
|
|
32
|
+
## Upgrade and boundaries
|
|
33
|
+
|
|
34
|
+
Follow the [paired upgrade guide](UPGRADE_v0.8.0.en.md). Migrations add attachment receipts, rate-limit policies and task records. Use the official migration ledger and retain configuration, encryption material, object storage and host records.
|
|
35
|
+
|
|
36
|
+
Task enrollment creates a persistent requirement on each original Agent Session, including its other conversations. Cancellation does not remove that requirement. Check every relevant host before enrolling dedicated test authorizations. Do not downgrade an enrolled deployment to a Core that does not enforce this marker.
|
|
37
|
+
|
|
38
|
+
The same-Hub, same-audit-domain boundary remains. This is not cross-system transactions, automatic product mapping, full-plan restart, automatic reconciliation of uncertain writes or business rollback. Documents, video and drive management are outside the first attachment release.
|
|
39
|
+
|
|
40
|
+
Component regression, synthetic integration and bounded client acceptance have been completed. Verify the release Tag and actual package provenance when upgrading. Windows device testing and actual user clicks in the latest panel are not covered by this acceptance; no general model reliability or production-adoption claim is made.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# 百灵中枢 v0.8.0:让业务长任务可继续、可控制
|
|
2
|
+
|
|
3
|
+
发布版本:0.8.0。配套:Core 0.8.0 / Agent Client SDK 0.6.0 / DSH 0.6.0。相对上一公开版本的变化如下。
|
|
4
|
+
|
|
5
|
+
用户让助手整理一批商城商品,过程中可能先查库存、生成展示图、修改商品,再等待业务审批。对话变长后,开发者需要解决的不只是“能不能调用接口”,还包括工具切换是否顺畅、中断后如何核对,以及管理员如何控制整项任务。
|
|
6
|
+
|
|
7
|
+
这一轮更新围绕这些步骤完善中枢和配套客户端。多系统授权、授权主体名称和完整可见对话在上一公开版已经提供,本次延续这些能力。
|
|
8
|
+
|
|
9
|
+
## 更新了什么
|
|
10
|
+
|
|
11
|
+
### 一个任务,跨轮次累计额度
|
|
12
|
+
|
|
13
|
+
管理员可在“智能体客户端 → 任务控制”为任务固定授权成员、允许使用的工具、累计写调用上限、在途许可上限和可选截止时间。例如“核对库存并维护商城商品,最多 20 次写调用”。切换工具、发送下一条消息或重开客户端,不会重新获得一份任务额度。
|
|
14
|
+
|
|
15
|
+
写额度按原业务调用计数,不按商品数或成功次数计数:一个批量接口修改 20 件商品,仍是一笔调用。读操作不消耗写额度,但占用在途许可。已有业务权限和逐笔审批继续生效。
|
|
16
|
+
|
|
17
|
+
暂停阻止后续派发;已经取得许可的请求可能完成。继续任务不增加额度,也不自动继续任何原操作。取消停止后续派发,不能撤回已发生的业务变化或自动回滚。
|
|
18
|
+
|
|
19
|
+
### 核对结果不会顺带执行
|
|
20
|
+
|
|
21
|
+
“商品上架已批准”和“商品已上架”是两件事。新增只读原调用回执,管理端与已适配宿主可以核对执行、审批和派发记录,刷新状态不会提交上架。
|
|
22
|
+
|
|
23
|
+
用户明确继续时,仍使用原授权、参数、运行记录和调用 ID。写请求已经发出而结果未知时,只核对原记录,不另建一次写操作。配套 DSH 提供会话重开后的持久恢复,以及无活跃对话轮次时的面板核对和继续接口;具体界面由客户端宿主接入。
|
|
24
|
+
|
|
25
|
+
### 限额可以按部署规模设置
|
|
26
|
+
|
|
27
|
+
“工具源 → 编辑 → 治理”支持继承业务声明、自定义或关闭中枢单工具限额,并可覆盖指定工具。工具源总闸、单工具限额和接入方限额分别生效。
|
|
28
|
+
|
|
29
|
+
小时、日限额按原时间窗口计算,不再折算为更小的每分钟额度。相同工具源下同一工具由多个用户与会话共享计数。限流等待提示通过 SDK/DSH 传递;明确未派发的可恢复操作继续使用原调用,不要求模型重新拼写入参数。
|
|
30
|
+
|
|
31
|
+
### 本地智能体附件空间,首期支持图片
|
|
32
|
+
|
|
33
|
+
助手可以把生成的活动海报、经营图表,或用户明确指定用于业务的图片,上传到部署方配置的普通 COS、OSS 或显式本地存储,取得 URL 后交给已有业务工具使用。例如把图片设为商城商品主图,或交给内容系统作为活动封面。
|
|
34
|
+
|
|
35
|
+
首期支持 PNG/JPEG/WebP,单图最高 6 MiB,配套 DSH 每批 1–8 张。上传逐项返回结果,成功地址可以直接复用。普通聊天附件不会自动上传;上传成功和业务修改成功分别判断。图片生成服务、业务图片接口和客户端文件权限仍由各自系统提供。
|
|
36
|
+
|
|
37
|
+
上传默认关闭,在“智能体客户端 → 配置接入 → 工具与审批 → 生成图片上传”选择存储并启用。首期对象公开读取,文件保留由部署方管理,不随会话结束自动删除。
|
|
38
|
+
|
|
39
|
+
### 能力发现与错误更容易理解
|
|
40
|
+
|
|
41
|
+
搜索返回数量、当前加载数量和授权目录数量分别表达;无法确定的总数保持未知。搜索是有上限的相关候选检索,不代表完整遍历。
|
|
42
|
+
|
|
43
|
+
配套 DSH 在一轮内保留仍有效的工具;已适配宿主还可启用同一存活会话内的跨轮声明复用。例如“创建商品→查询库存→继续编辑商品”不必因一次新搜索就丢掉前面的工具。每轮仍按需准备当前目标,工具声明缓存不替代授权和权限检查。
|
|
44
|
+
|
|
45
|
+
## 谁需要升级
|
|
46
|
+
|
|
47
|
+
| 使用者 | 需要做什么 |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| 中枢管理员 | 升级 Core、应用未执行的 060–062 迁移;按需配置存储、频率限额和任务控制 |
|
|
50
|
+
| 客户端宿主开发者 | 成套升级 SDK/DSH,接入持久记录、正式任务和原调用接口;跨轮复用需要显式启用 |
|
|
51
|
+
| 业务后端开发者 | 既有声明、授权、审批和业务 API 可沿用;图片使用仍须业务接口能接收 URL,或提供自己的素材导入能力 |
|
|
52
|
+
| 普通插件使用者 | 使用已完成这些接入的宿主;仅升级包不会自动取得本地文件或新增管理权限 |
|
|
53
|
+
|
|
54
|
+
## 升级和限制
|
|
55
|
+
|
|
56
|
+
先看[配套升级指南](UPGRADE_v0.8.0.md)。新增迁移分别保存附件回执、限额策略和任务控制记录。使用正式迁移器检查账本,仅执行未应用文件;保留实例配置、密钥、原存储及客户端持久记录。
|
|
57
|
+
|
|
58
|
+
任务控制按需启用,但纳入任务会为原 Agent Session 设置持续强制标记,影响该授权的其他会话;取消任务也不会解除。先确认全部相关宿主兼容,再用专用测试授权启用。启用后不可回退到不理解该标记的旧 Core。
|
|
59
|
+
|
|
60
|
+
边界仍是同一 Hub、同一审计域。没有跨系统事务、自动商品对应、整项计划自动续跑、未知写结果自动补偿或业务回滚。附件首期不包含文档、视频或网盘管理。
|
|
61
|
+
|
|
62
|
+
已完成分组件回归、合成联测和限定客户端接入核对;发行制品需与对应 Tag 及安装摘要一致。Windows 实机及最新面板的实际用户点击尚未覆盖,不据此宣称任意模型或生产场景都已通过。
|
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.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# 批量业务操作的限额与恢复
|
|
2
|
+
|
|
3
|
+
例如智能体需要批量更新商城商品资料,管理员可以根据部署规模设置额度。无需修改业务能力声明,也无需取消原有权限与审批。
|
|
4
|
+
|
|
5
|
+
## 在哪里设置
|
|
6
|
+
|
|
7
|
+
进入 **工具源 → 编辑 → 治理**:
|
|
8
|
+
|
|
9
|
+
- **工具源总限额**:该工具源的所有工具、用户、授权与会话,共用每分钟额度。`0` 关闭这一层总闸。
|
|
10
|
+
- **单工具默认策略**:继承业务声明、自定义中枢限额,或关闭中枢单工具限额。
|
|
11
|
+
- **指定工具覆盖**:针对某个工具单独设置,优先于默认策略。“继承业务声明”表示直接使用该工具的声明。
|
|
12
|
+
|
|
13
|
+
自定义支持按秒、分钟、小时或天计数。每个工具分别计数;同一工具源、同一工具的不同用户与会话共享额度,并非每次新建会话获得一份新额度。工具清单详情同时显示原声明、生效限额和来源。刷新清单会保留管理员设置。
|
|
14
|
+
|
|
15
|
+
若要关闭该工具源在中枢的两层工具限额,将总限额设为 `0`,将单工具默认策略设为“关闭中枢单工具限额”,并检查指定工具覆盖。**接入方 → 编辑**中的每分钟限额仍独立生效,它按 `client_app_id` 共享,也支持 `0` 关闭。业务系统自己实施的限流仍由业务系统管理。
|
|
16
|
+
|
|
17
|
+
## 数量代表什么
|
|
18
|
+
|
|
19
|
+
`120 次/小时` 按一小时滑动窗口计数:空窗口中可连续接受 120 次,随后等待最早一笔额度到期。不会折算成每分钟 2 次。计数针对中枢调度闸接受的尝试,不是业务成功数量;接受后进入审批或业务拒绝的尝试也可能占用额度。
|
|
20
|
+
|
|
21
|
+
MySQL 运行时在同一事务中检查工具与工具源两层额度;任一层拒绝,均不增加另一层的计数。内存运行时使用同样的全闸检查。旧扩展若仅实现单桶 `consume` 回调,可继续运行;要获得全闸原子计数,应实现可选 `consumeAll` 接缝。修改配置不主动清空账本,按新窗口及已保留记录计算。
|
|
22
|
+
|
|
23
|
+
## 被限流后如何继续
|
|
24
|
+
|
|
25
|
+
调用尚未派发时,回执仍为 `rejected_before_dispatch`、`auto_retry_allowed=true`,并增加:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"retry_after_ms": 60000,
|
|
30
|
+
"rate_limit": {
|
|
31
|
+
"level": "tool",
|
|
32
|
+
"count": 120,
|
|
33
|
+
"window_sec": 3600,
|
|
34
|
+
"scope": "tool_provider_shared",
|
|
35
|
+
"source": "declaration"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`retry_after_ms` 是当前观察下的等待提示,等待结束后仍会重新核验授权、配置和额度。SDK 保留这些可选字段;DSH 等待后只恢复原 `invocation_id`。等待超过本次自动等待预算时,DSH 返回 `agent_client_wait.state=rate_limited`,保留原调用供稍后恢复,避免高频轮询。
|
|
41
|
+
|
|
42
|
+
Core 在私有执行记录中加密保存原参数,并绑定原授权、run、工具、参数摘要与执行契约。恢复不会让模型重新拼参数。派发前先持久化执行标记;如果写操作可能已发出、但没有可靠结果,则进入 `reconciliation_required`,不重新派发。权限、参数审批与原身份核验照常生效。
|
|
43
|
+
|
|
44
|
+
## 升级与兼容
|
|
45
|
+
|
|
46
|
+
本说明适用于 Core 0.8.0 及配套 SDK/DSH 0.6.0。Core 需执行 `061_tool_rate_limit_policies.sql`;历史配置默认继承原声明。SDK/DSH 配套版本提供等待提示,旧包可忽略新增字段,仍沿用原接口。
|
|
47
|
+
|
|
48
|
+
原参数快照使用实例 `server.token` 派生的专用密钥加密;重启需保留该配置。轮换该令牌后未完成快照无法解密,会严格阻断自动派发。已完成结果与原审批记录仍沿原路径读取。旧版本已丢失的参数不会被猜补,不能承诺修复历史失败调用后自动执行。
|
|
49
|
+
|
|
50
|
+
Business backends keep their existing declarations and APIs. Operators can inherit, override or disable Hub tool limits under **Tool providers → Edit → Governance**. Tool limits are shared per provider/tool; the provider gate is shared across all its tools, and the client gate remains independent. Hour/day windows retain their original duration. Matching SDK/DSH candidates preserve retry hints and resume only the original invocation; an uncertain write is never replayed automatically.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Paired upgrade guide for 0.8.0: longer tasks and attachment delivery
|
|
2
|
+
|
|
3
|
+
Upgrade Core 0.7.0 / SDK 0.5.0 / DSH 0.5.0 to Core 0.8.0 / SDK 0.6.0 / DSH 0.6.0 using the deployment-specific release procedure. Preserve original configuration and persistent records.
|
|
4
|
+
|
|
5
|
+
## Choose the required features
|
|
6
|
+
|
|
7
|
+
| Need | Core | SDK / DSH and host | Business backend |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| Configure Hub tool limits | New Core, migration 061 and policies | Paired packages for retry guidance and original-call recovery | Keep APIs/declarations; backend limits remain independent |
|
|
10
|
+
| Use generated or explicitly selected images | New Core, 060, storage and workspace switch | New SDK, controlled source and durable upload store in the DSH host | Existing URL APIs work; asset IDs/imports remain business operations |
|
|
11
|
+
| Switch tools within a turn | Paired Core for full discovery feedback | New DSH merges valid tools | No new requirement |
|
|
12
|
+
| Reuse declarations across messages | Current-turn preparation and permission checks remain | Opt into `toolLifecycle: 'session'` and handle preparation | No new requirement |
|
|
13
|
+
| Inspect/recover after reopening | New read-only receipt API | New SDK/DSH, durable invocation store and panel methods | Original invocation and approval rules remain |
|
|
14
|
+
| Task budgets, concurrency and pause | New Core, 062 and administrator-created tasks | Paired packages, task store and complete original-scope verification | Counts invocations, not products or monetary impact |
|
|
15
|
+
|
|
16
|
+
Other MCP hosts and adapters do not gain these integrations automatically. Ordinary unenrolled authorizations retain their existing flow. Unsupported interfaces must not cause fallback to a broader or default authorization.
|
|
17
|
+
|
|
18
|
+
## 1. Preserve original state
|
|
19
|
+
|
|
20
|
+
Back up the database, configuration, encryption material, storage settings and objects. Original argument snapshots use a key derived from the instance's `server.token`. Do not combine a normal upgrade with an unplanned rotation: an old snapshot that cannot be decrypted must block recovery rather than be reconstructed.
|
|
21
|
+
|
|
22
|
+
Hosts retain secure credentials, connection instance keys, real Sessions, fixed scopes, events, archive outbox/ACK/CAS, upload and invocation journals, and task bindings. Protect these private stores; do not commit or publish them. An upgrade should not recreate authorizations or conversations.
|
|
23
|
+
|
|
24
|
+
## 2. Upgrade Core and apply migrations
|
|
25
|
+
|
|
26
|
+
Use final released artifacts and the deployment-specific upgrade procedure. Check the intended database, then run the official migration runner (`npm run db:init` for a source installation) for all unapplied files before starting the new service. Startup does not migrate implicitly.
|
|
27
|
+
|
|
28
|
+
| New since Core 0.7.0 | Purpose |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `060_agent_artifacts.sql` | Original image-upload receipts; binary objects stay in operator storage |
|
|
31
|
+
| `061_tool_rate_limit_policies.sql` | Provider defaults and per-tool overrides; existing null settings inherit declarations |
|
|
32
|
+
| `062_agent_task_control.sql` | Six tables for task bindings, enforcement, invocations and budgets/permits |
|
|
33
|
+
|
|
34
|
+
Verify the migration ledger and readiness. Do not manually replay applied SQL. Older baselines also need their missing earlier migrations. Existing candidate deployments must compare migration records and checksums rather than recreate tables.
|
|
35
|
+
|
|
36
|
+
Persistent task control needs the corresponding MySQL repository. Embedded hosts lacking optional support report unsupported. A configured managed flow must block on missing tables or database failure, not fall back to unrestricted dispatch.
|
|
37
|
+
|
|
38
|
+
## 3. Upgrade the actual SDK, DSH and host
|
|
39
|
+
|
|
40
|
+
The released DSH must depend on the exact paired SDK, with a matching lockfile. Editing the source manifest alone does not upgrade a desktop Profile or packaged application. Verify actual consumer resolution and nested copies. An earlier same-numbered candidate is identified by hash; it is not the public 0.5.0 package.
|
|
41
|
+
|
|
42
|
+
- Cross-turn reuse: enable `toolLifecycle: 'session'`, preserve the real Session/runtime and handle preparation with current schemas. `active_turn` remains the default. Restart empties the declaration cache; the separate invocation journal can still recover original operations.
|
|
43
|
+
- Recovery and panels: persist `invocationStore`; use `inspectSessionInvocation` / `resumeSessionInvocation` with the original real Session, ID and cancellation signal. Reads never invoke resume. Null results stay unconfirmed; storage errors and history gaps cannot display stale success.
|
|
44
|
+
- Tasks: persist `taskStore`, obtain original coordinates with `getSessionTaskCoordinates` and bind the administrator-created task. Restore original scope/task/journal. The model does not choose task IDs.
|
|
45
|
+
- Images: connect a controlled `artifactSource` and durable `artifactStore`. Register only files approved for business use in the current conversation. Ordinary chat attachments are not synchronized automatically. The model chooses neither buckets nor arbitrary local paths.
|
|
46
|
+
|
|
47
|
+
Do not reconstruct missing historical bindings or arguments from text. Old SDK/Core versions without read-only receipts report unsupported; inspection must not fall back to resume.
|
|
48
|
+
|
|
49
|
+
## 4. Enable features with a small validation scope
|
|
50
|
+
|
|
51
|
+
Configure Media Storage, then select it under Agent Clients → Connection Configuration → Tools and Approval → Generated Image Upload. Objects are public in the first phase; use an image suitable for public display.
|
|
52
|
+
|
|
53
|
+
Configure provider-wide, default per-tool and individual override limits under Tool Providers → Edit → Governance. A provider gate value of `0` disables only that layer. Client-app, per-tool and backend gates remain independent. The same provider/tool shares its counter across conversations.
|
|
54
|
+
|
|
55
|
+
Create and bind a task using dedicated test authorizations. **Enrollment persists a requirement on each original Agent Session, including its other conversations and older entry points. Cancellation does not remove the marker.** Check all relevant hosts before enrolling ordinary authorizations. A task write budget of `0` means read-only; `null` means no cumulative write cap.
|
|
56
|
+
|
|
57
|
+
## Observable checks
|
|
58
|
+
|
|
59
|
+
1. Ordinary chat does not create business runs just to restore tools or inspect a panel. Unselected targets receive no requests.
|
|
60
|
+
2. Query a shop product, inspect inventory and return to the product: targets remain correct; valid tools are reused or prepared with complete schemas.
|
|
61
|
+
3. Upload a public test image, obtain a ready URL and recover the same upload. The business action using that URL has its own result or approval.
|
|
62
|
+
4. In a synthetic task, counts survive turn changes; pause stops new dispatch permits while original outcomes remain readable.
|
|
63
|
+
5. Reopen a conversation with trustworthy persisted invocations: inspect sends no business action; explicit continuation retains the original ID. Unknown writes are not replaced. Cancelling a wait is not displayed as withdrawing a business request.
|
|
64
|
+
|
|
65
|
+
Synthetic and automated checks do not replace each deployer's actual client acceptance. Focus on the enabled features and final artifacts rather than repeating unrelated tests.
|
|
66
|
+
|
|
67
|
+
## Rollback and limits
|
|
68
|
+
|
|
69
|
+
Before task enrollment, assess rollback against new persistent records and interfaces and retain migration tables/ledger. **Once enforcement markers exist, do not revert to a Core/host that ignores them or delete markers to remove control.** Pause managed dispatch and inspect in-flight calls first; prefer a forward fix. Restoring a backup requires separately reconciling business effects since that backup. Database restoration is not business rollback.
|
|
70
|
+
|
|
71
|
+
Task quotas exclude host-local tools, model inference, attachment uploads and chat archives. They do not measure product count, money or field impact. Cross-Hub tasks, full-plan automatic restart and compensation are not provided. Some host attachment-source listing errors can still surface as `unknown_failure`; they must not be displayed as an empty list. Per-item upload errors and already-ready URLs remain separate.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# 长任务与附件空间:配套升级指南
|
|
2
|
+
|
|
3
|
+
本指南从 Core 0.7.0 / SDK 0.5.0 / DSH 0.5.0 升级到 Core 0.8.0 / SDK 0.6.0 / DSH 0.6.0。按部署方式使用正式版本,保留原配置和持久记录。
|
|
4
|
+
|
|
5
|
+
## 先确定需要哪部分
|
|
6
|
+
|
|
7
|
+
| 需求 | Core | SDK / DSH 与宿主 | 业务后端 |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| 调整中枢工具限额 | 新 Core、061;后台设置策略 | 配套版本可展示准确等待与原调用恢复 | 原 API/声明可沿用;业务自有限流不由中枢关闭 |
|
|
10
|
+
| 生成或指定图片后用于业务 | 新 Core、060、存储及工作空间开关 | 新 SDK;DSH 宿主接文件目录和持久上传记录 | 已接收 URL 的能力可沿用;素材 ID/转存由业务系统提供 |
|
|
11
|
+
| 一轮内来回切换工具 | 配套版本用于完整发现反馈 | 新 DSH 自动合并仍有效工具 | 无新增要求 |
|
|
12
|
+
| 跨用户消息复用工具声明 | 沿用现有每轮准备和权限检查 | 新 DSH;宿主显式 `toolLifecycle: 'session'` 并处理准备结果 | 无新增要求 |
|
|
13
|
+
| 重开后恢复原调用及只读面板 | 新 Core 的只读 receipt | 新 SDK/DSH、持久 invocationStore、正式面板接口 | 原调用/审批规则保持 |
|
|
14
|
+
| 任务累计预算、并发和暂停 | 新 Core、062;管理端按需创建任务 | 新 SDK/DSH、taskStore、完整原范围核验与绑定 | 计量为调用次数;不新增商品数/金额保护承诺 |
|
|
15
|
+
|
|
16
|
+
新包不会自动让其他 MCP 客户端、生态适配器或业务后端取得这些宿主能力。普通未纳入任务的授权可继续原流程;新接口不支持时要明确报告,不能扩大授权或换默认连接。
|
|
17
|
+
|
|
18
|
+
## 第一步:保留原状态
|
|
19
|
+
|
|
20
|
+
中枢备份数据库、运行配置与密钥、存储配置和文件对象。限流恢复的原参数快照由实例 `server.token` 派生密钥加密:不要在同一次普通升级中无计划地轮换它。令牌轮换后,旧快照不能解密时应阻断恢复,不能重新猜参数。
|
|
21
|
+
|
|
22
|
+
客户端保留安全凭据、连接实例标识、真实 Session、固定范围、原事件、归档 outbox/ACK/CAS、上传和原调用账本,以及已有任务关联。保护原私有存储位置,不把这些内容提交源码或当作示例数据;升级不应重新授权或重建全部会话。
|
|
23
|
+
|
|
24
|
+
## 第二步:升级中枢并迁移
|
|
25
|
+
|
|
26
|
+
使用最终正式发行制品,按部署方式准备代码和回滚材料。确认目标数据库后,用正式迁移器(源码安装入口为 `npm run db:init`)应用全部未执行迁移,再启动新版本。启动本身不隐式迁移。
|
|
27
|
+
|
|
28
|
+
| 相对 Core 0.7.0 的迁移 | 保存内容 |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `060_agent_artifacts.sql` | 图片上传回执与原上传关联;二进制在部署方存储中 |
|
|
31
|
+
| `061_tool_rate_limit_policies.sql` | 工具源默认及单工具覆盖策略;历史空值继承原声明 |
|
|
32
|
+
| `062_agent_task_control.sql` | 六张任务关联、强制标记、调用及额度/许可记录表 |
|
|
33
|
+
|
|
34
|
+
检查迁移账本与就绪状态。已经应用的文件不要手工重跑;从更旧版本升级时还要应用其缺少的前序迁移。已有候选部署应按账本和文件摘要核对,不重复建表。
|
|
35
|
+
|
|
36
|
+
当前任务持久控制需要相应 MySQL 仓储。缺少可选接口的嵌入式 Host 应报告不支持;一旦配置为受管模式,缺表或数据库故障必须阻断,不能静默回到无限制执行。
|
|
37
|
+
|
|
38
|
+
## 第三步:升级实际 SDK / DSH 和宿主
|
|
39
|
+
|
|
40
|
+
DSH 正式依赖必须精确指向同批 SDK,lock 也应匹配。仅改工程 `package.json` 不足以证明桌面客户端、用户 Profile 或打包产物已升级:核对实际解析来源,检查是否存在嵌套旧 SDK。早期同版本候选按哈希识别,不能把候选 0.5.0 当成公开 0.5.0。
|
|
41
|
+
|
|
42
|
+
宿主按需接入:
|
|
43
|
+
|
|
44
|
+
- 跨轮复用:开启 `toolLifecycle: 'session'`,保留真实 Session/runtime,使用当前 schema 并处理“尚未准备”。默认 `active_turn` 保持。工具缓存重启后为空,不影响另一份原调用账本的持久恢复。
|
|
45
|
+
- 恢复与面板:持久 `invocationStore`;使用正式 `inspectSessionInvocation` / `resumeSessionInvocation`,传原 Session、原 ID 和取消信号。读取不会调用 resume。空结果保持未确认,存储错误或历史缺口不能显示旧成功。
|
|
46
|
+
- 任务:持久 `taskStore`,通过 `getSessionTaskCoordinates` 提交原坐标,再绑定管理端返回的任务,恢复时保留原范围、task 和 journal。任务 ID 不交给模型选择。
|
|
47
|
+
- 图片:受控 `artifactSource`、持久 `artifactStore`,只登记当前会话获准用于业务的文件。普通聊天附件不自动同步,模型不选择桶或本机任意路径。
|
|
48
|
+
|
|
49
|
+
旧记录缺少可信原绑定或参数时,不从正文补齐。旧 SDK/Core 明确不支持只读回执时,界面显示 unsupported,不用 resume 代替查询。
|
|
50
|
+
|
|
51
|
+
## 第四步:按需启用,先小范围验证
|
|
52
|
+
|
|
53
|
+
存储:先在“媒体存储”配置,再到“智能体客户端 → 配置接入 → 工具与审批 → 生成图片上传”启用指定存储。首期公开读取;准备一张可公开的测试图片即可。
|
|
54
|
+
|
|
55
|
+
限额:在“工具源 → 编辑 → 治理”设置工具源总闸、单工具默认与覆盖策略。总闸的 `0` 只关闭该层,不会关闭单工具、接入方或业务系统自有限流。相同工具源/工具的不同会话共享计数。
|
|
56
|
+
|
|
57
|
+
任务:用专用测试授权,通过管理端创建任务并绑定。**纳入任务会为原 Agent Session 保存持续强制标记,影响它的其他会话及旧入口;取消任务不会删除标记。** 先确认所有相关宿主兼容,再决定是否纳入日常授权。任务写额度 `0` 表示只读,`null` 表示没有累计写上限,不能混淆。
|
|
58
|
+
|
|
59
|
+
## 如何确认成功
|
|
60
|
+
|
|
61
|
+
1. 只聊天时不因恢复缓存或面板而创建业务 run;未选授权不接收请求。
|
|
62
|
+
2. 查询商品、查看库存,再回到商品查询,目标正确,旧有效工具可复用;需要准备时能取得完整参数说明。
|
|
63
|
+
3. 上传公开用途测试图片后得到 ready URL,恢复时仍是原上传;业务侧使用 URL 的成功、审批或失败单独显示。
|
|
64
|
+
4. 在专用合成任务中核对累计调用数;切换轮次不重置,暂停后不授予新派发许可,原结果仍可查询。
|
|
65
|
+
5. 关闭并重开有可信原调用记录的会话,核对不派发;明确继续仍是同一原调用。结果未知不产生替代写,取消等待不被显示为“已撤回业务”。
|
|
66
|
+
|
|
67
|
+
合成与自动化通过不能替代各部署方的实际客户端验收。无需为了每次升级重新执行无关场景;重点检查本次启用的能力与最终安装包。
|
|
68
|
+
|
|
69
|
+
## 回退与限制
|
|
70
|
+
|
|
71
|
+
尚未启用任务时,仍需根据新增持久记录和接口评估回退,保留新增表与账本,不能简单删表降级。**一旦存在任务强制标记,不应回到不理解它的旧 Core/宿主,也不通过删标记解除控制。** 出现问题先暂停受管派发并核对原在途调用,优先修复前进;完整恢复备份需要单独核对备份后已发生的业务效果,不能把数据库恢复当成业务回滚。
|
|
72
|
+
|
|
73
|
+
任务不包含本地工具、模型推理、图片上传或聊天归档的资源额度,不自动度量商品数、金额或字段影响;没有跨 Hub、整项计划自动恢复或自动补偿。附件列表的某些宿主源错误仍可能显示 `unknown_failure`,宿主不能将其展示为空目录;上传逐项错误和已成功 URL 保持独立。
|
|
@@ -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.
|
|
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.
|
|
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).
|