bailinghub 0.6.1 โ†’ 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 (145) hide show
  1. package/README.en.md +9 -5
  2. package/README.md +8 -5
  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 +14 -1
  16. package/docs/CHANGELOG.md +14 -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 +6 -0
  22. package/docs/README.md +6 -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.7.0.en.md +116 -0
  26. package/docs/RELEASE_NOTES_v0.7.0.md +116 -0
  27. package/docs/SDK.en.md +31 -0
  28. package/docs/user-guide/conversations.en.md +4 -2
  29. package/docs/user-guide/conversations.md +4 -2
  30. package/package.json +1 -1
  31. package/schemas/config/route.schema.json +15 -2
  32. package/scripts/check-doc-links.mjs +1 -0
  33. package/scripts/check-image-tags.sh +1 -1
  34. package/scripts/check-release-consistency.test.mjs +2 -2
  35. package/scripts/install.sh +1 -1
  36. package/scripts/publish-images.sh +1 -1
  37. package/scripts/release-audit.mjs +1 -0
  38. package/scripts/sdk-agent-auth-lifecycle-check.mjs +178 -0
  39. package/scripts/sdk-runtime-test.mjs +5 -2
  40. package/scripts/verify-github-repo.mjs +1 -0
  41. package/sdk/php/README.md +29 -0
  42. package/sdk/php/src/AgentAuth.php +100 -4
  43. package/sdk/php/src/HubClient.php +2 -1
  44. package/sdk/php7/README.md +31 -0
  45. package/sdk/php7/src/AgentAuth.php +99 -4
  46. package/sdk/php7/src/HubClient.php +2 -1
  47. package/sql/058_agent_conversation_member_bindings.sql +9 -0
  48. package/sql/059_agent_subject_display.sql +5 -0
  49. package/sql/README.en.md +15 -0
  50. package/sql/README.md +25 -0
  51. package/src/app/agent-conversation-audit.ts +20 -0
  52. package/src/app/agent-system-info.ts +41 -0
  53. package/src/app/agent-tool-invocations.ts +16 -4
  54. package/src/core/config/agent-setup.ts +37 -0
  55. package/src/core/config/client-agent-setup.ts +25 -0
  56. package/src/core/config/config-schema.test.ts +11 -0
  57. package/src/core/config/route-config.test.ts +28 -0
  58. package/src/core/config/route-config.ts +43 -4
  59. package/src/core/contracts/agent-subject-display.test.ts +19 -0
  60. package/src/core/contracts/agent-subject-display.ts +36 -0
  61. package/src/core/contracts/types.ts +15 -0
  62. package/src/core/runtime/agent-conversation-audit.test.ts +19 -1
  63. package/src/core/runtime/agent-conversation-audit.ts +39 -0
  64. package/src/infrastructure/config/config-agent-auth-business-sessions.test.ts +120 -0
  65. package/src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts +152 -0
  66. package/src/infrastructure/config/config-agent-auth-repository.test.ts +2 -0
  67. package/src/infrastructure/config/config-agent-auth-repository.ts +208 -18
  68. package/src/infrastructure/config/config-agent-conversation-audit-cross-binding.test.ts +120 -0
  69. package/src/infrastructure/config/config-agent-conversation-audit-repository.ts +117 -23
  70. package/src/infrastructure/config/config-agent-subject-display.test.ts +103 -0
  71. package/src/infrastructure/config/config-client-repository.ts +21 -0
  72. package/src/infrastructure/config/config-route-agent-setup.test.ts +59 -0
  73. package/src/infrastructure/config/config-route-repository.ts +24 -0
  74. package/src/infrastructure/config/configstore.ts +7 -3
  75. package/src/infrastructure/schema/core-schema-migrator.test.ts +90 -0
  76. package/src/routes/admin-access.ts +37 -0
  77. package/src/routes/admin-agent-clients.ts +11 -0
  78. package/src/routes/admin-agent-setup.test.ts +130 -0
  79. package/src/routes/admin-agent-setup.ts +68 -0
  80. package/src/routes/admin-client-agent-setup.test.ts +93 -0
  81. package/src/routes/admin-dispatch-config.ts +2 -0
  82. package/src/routes/agent-api.ts +7 -0
  83. package/src/routes/agent-auth-lifecycle-http.test.ts +177 -0
  84. package/src/routes/agent-auth-lifecycle.test.ts +193 -0
  85. package/src/routes/agent-auth.test.ts +1 -1
  86. package/src/routes/agent-auth.ts +206 -16
  87. package/src/routes/agent-conversation-audit-cross-binding-http.test.ts +122 -0
  88. package/src/routes/agent-conversation-audit.ts +8 -2
  89. package/src/routes/agent-subject-display-http.test.ts +145 -0
  90. package/src/routes/agent-system-info.test.ts +132 -0
  91. package/src/test-support/agent-auth-business-query-fixture.ts +43 -0
  92. package/src/test-support/agent-auth-lifecycle-fixture.ts +288 -0
  93. package/src/test-support/agent-conversation-audit-fixture.ts +30 -6
  94. package/src/test-support/agent-conversation-audit-http-fixture.ts +84 -0
  95. package/web/connect/bailing-connect-php.tgz +0 -0
  96. package/web/connect/bailing-connect-php7.tgz +0 -0
  97. package/web/console/assets/{Accounts-Ca_VnSu9.js โ†’ Accounts-ChL9k-XA.js} +1 -1
  98. package/web/console/assets/AgentClients-Bs7UgVDj.js +1 -0
  99. package/web/console/assets/AgentClients-DkgPTEbq.css +1 -0
  100. package/web/console/assets/{Approvals-CMvPWacY.js โ†’ Approvals-Bs6FGbp2.js} +1 -1
  101. package/web/console/assets/{Audit-CIRqOCnL.js โ†’ Audit-4WWYhkFM.js} +1 -1
  102. package/web/console/assets/{BrandLockup-BrytmTTH.js โ†’ BrandLockup-D2GhCipL.js} +1 -1
  103. package/web/console/assets/{Channels-CApxH2TB.js โ†’ Channels-CmoGpiCJ.js} +1 -1
  104. package/web/console/assets/{ChatEntries-CJon3bWJ.js โ†’ ChatEntries-BFRMtwta.js} +1 -1
  105. package/web/console/assets/Clients-CSHIsaWU.css +1 -0
  106. package/web/console/assets/Clients-DGkkSXyA.js +3 -0
  107. package/web/console/assets/{Cost-BbhlQFP8.js โ†’ Cost-BmGt0MfS.js} +1 -1
  108. package/web/console/assets/{Credentials-kqr1W0K7.js โ†’ Credentials-CR-sYINT.js} +1 -1
  109. package/web/console/assets/{Diagnostics-Kljt9XTH.js โ†’ Diagnostics-DAPbKSJp.js} +1 -1
  110. package/web/console/assets/{Executors-DnsB-Xz4.js โ†’ Executors-CgpiT3o8.js} +1 -1
  111. package/web/console/assets/{Kb-DLZSAFWP.js โ†’ Kb-Cm9dVSQw.js} +1 -1
  112. package/web/console/assets/{Login-DiTjPWmN.js โ†’ Login-CyUcsTZ_.js} +1 -1
  113. package/web/console/assets/{Projects-CXcVCgCD.js โ†’ Projects-DldFPgWg.js} +1 -1
  114. package/web/console/assets/Routes-DkMIjMQA.css +1 -0
  115. package/web/console/assets/Routes-DubfjlBD.js +124 -0
  116. package/web/console/assets/Runs-1hxgkuR4.js +3 -0
  117. package/web/console/assets/Runs-CvGTV8I-.css +1 -0
  118. package/web/console/assets/{Setup-FqoCKmfZ.js โ†’ Setup-DBLOnI2_.js} +1 -1
  119. package/web/console/assets/{Shell-BEqpONiy.js โ†’ Shell-gJ5Vz_E7.js} +1 -1
  120. package/web/console/assets/{StorageBuckets-CkORbYXY.js โ†’ StorageBuckets-DkDW16tj.js} +1 -1
  121. package/web/console/assets/{SystemSettings-gTQAazu7.js โ†’ SystemSettings-cDkudo2y.js} +1 -1
  122. package/web/console/assets/{SystemStatus-DAmUUNqO.js โ†’ SystemStatus-DZd6s8OX.js} +1 -1
  123. package/web/console/assets/{Targets-CZmDcjsE.js โ†’ Targets-DYNGq1NU.js} +1 -1
  124. package/web/console/assets/{Tools-CIHInlHL.js โ†’ Tools-DpWM59vV.js} +1 -1
  125. package/web/console/assets/{index-BkLbd7Cc.js โ†’ index-DGqs28gI.js} +2 -2
  126. package/web/console/assets/{request-r7GHVJzw.js โ†’ request-B7MLvOqo.js} +1 -1
  127. package/web/console/assets/{schema-BVn_hB7M.js โ†’ schema-CMuwjYdJ.js} +1 -1
  128. package/web/console/index.html +1 -1
  129. package/web-admin/scripts/subject-display-ui.mjs +78 -0
  130. package/web-admin/src/components/AgentSetupPanel.vue +262 -0
  131. package/web-admin/src/components/ClientConversations.vue +21 -4
  132. package/web-admin/src/components/conversation-audit.ts +20 -0
  133. package/web-admin/src/pages/AgentClients.vue +97 -23
  134. package/web-admin/src/pages/Clients.vue +4 -1
  135. package/web-admin/src/pages/Routes.vue +10 -1
  136. package/web-admin/tests/conversation-audit.fixture.mjs +13 -10
  137. package/web-admin/tests/conversation-audit.test.mjs +63 -1
  138. package/web/console/assets/AgentClients-BPIvlLYY.js +0 -1
  139. package/web/console/assets/AgentClients-DsWADpzr.css +0 -1
  140. package/web/console/assets/Clients-BSA1rlTB.js +0 -3
  141. package/web/console/assets/Clients-CNIVs7Qn.css +0 -1
  142. package/web/console/assets/Routes-CXGl9SMM.css +0 -1
  143. package/web/console/assets/Routes-DN9_d9Po.js +0 -124
  144. package/web/console/assets/Runs-Cwbe6thL.js +0 -3
  145. package/web/console/assets/Runs-D8UmjP5G.css +0 -1
@@ -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.1** and use **dsh-bailinghub 0.4.0**, which depends on the independent **bailinghub-mcp-server 0.4.0** SDK. A custom client must integrate conversation scope, original visible history and archive APIs. Upgrading only the Hub does not make an older client upload a full transcript.
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.1 upgrade notes](../RELEASE_NOTES_v0.6.1.en.md). Client developers can continue with the [integration guide](../AGENT_CLIENT_QUICKSTART.en.md) and [conversation archive API](../AGENT_CONVERSATION_AUDIT.en.md).
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.1**๏ผ›ๆœฌๅœฐๅฎขๆˆท็ซฏไฝฟ็”จ **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.1 ่ฏดๆ˜Ž](../RELEASE_NOTES_v0.6.1.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.1",
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,7 @@ const englishCompanions = {
103
103
  'docs/RELEASE_NOTES_v0.3.4.md': 'docs/RELEASE_NOTES_v0.3.4.en.md',
104
104
  'docs/RELEASE_NOTES_v0.5.0.md': 'docs/RELEASE_NOTES_v0.5.0.en.md',
105
105
  'docs/RELEASE_NOTES_v0.5.1.md': 'docs/RELEASE_NOTES_v0.5.1.en.md',
106
+ 'docs/RELEASE_NOTES_v0.7.0.md': 'docs/RELEASE_NOTES_v0.7.0.en.md',
106
107
  'docs/RELEASE_NOTES_v0.6.1.md': 'docs/RELEASE_NOTES_v0.6.1.en.md',
107
108
  'docs/RELEASE_NOTES_v0.6.0.md': 'docs/RELEASE_NOTES_v0.6.0.en.md',
108
109
  'docs/TOOLS_DESIGN.md': 'docs/TOOLS_DESIGN.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.1"
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.1');
42
- assert.equal(result.stableVersion, '0.6.1');
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.1"
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.1"
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,7 @@ 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',
40
41
  'docs/RELEASE_NOTES_v0.6.1.md',
41
42
  'docs/RELEASE_NOTES_v0.6.0.md',
42
43
  'docs/CHANGELOG.md',
@@ -0,0 +1,178 @@
1
+ import { createServer } from 'node:http';
2
+
3
+ // Invoked by sdk-runtime-test.mjs so lifecycle checks share its runtime matrix.
4
+ export async function checkAgentAuthLifecycle({ root, runAsync, ok, closeServer }) {
5
+ const authorizationId = '11111111-1111-4111-8111-111111111111';
6
+ const unmappedId = '33333333-3333-4333-8333-333333333333';
7
+ const sessionId = '22222222-2222-4222-8222-222222222222';
8
+ const session = { session_id: sessionId, state: 'revoked', expires_at: '2030-02-01T00:00:00.000Z', revoked_at: '2030-01-02T00:00:00.000Z' };
9
+ const item = {
10
+ ...session, authorization_id: authorizationId, client_app_id: 'merchant-agent',
11
+ device_label: 'Test device', principal: { id: '็”จๆˆท +/?&=๐Ÿ˜€', tenant: '็งŸๆˆท&=' },
12
+ on_behalf_of: 'tenant:user +/?&=๐Ÿ˜€', allowed_routes: ['staff-route'],
13
+ created_at: '2030-01-01T00:00:00.000Z', last_seen_at: '2030-01-01T01:00:00.000Z',
14
+ };
15
+ const filters = {
16
+ authorization_id: authorizationId, on_behalf_of: item.on_behalf_of,
17
+ principal_id: item.principal.id, tenant: item.principal.tenant,
18
+ state: 'revoked', limit: 100, cursor: 'next_page-1',
19
+ };
20
+ const invalid = [
21
+ { unknown: 'field' }, { client_app_id: 'other-app' }, { 0: 'active' },
22
+ { authorization_id: null }, { authorization_id: '-'.repeat(36) },
23
+ { authorization_id: '11111111-1111-0111-8111-111111111111' },
24
+ { authorization_id: '11111111-1111-4111-0111-111111111111' },
25
+ { on_behalf_of: '' }, { on_behalf_of: 'x'.repeat(192) }, { on_behalf_of: [] },
26
+ { principal_id: 'u' }, { principal_id: '', tenant: '' },
27
+ { principal_id: 'u'.repeat(129), tenant: '' },
28
+ { tenant: null }, { tenant: 't'.repeat(129) },
29
+ { on_behalf_of: ' user' }, { tenant: 'tenant ' }, { tenant: '\uFEFFtenant' },
30
+ { tenant: 'a\u0000b' }, { tenant: 'a\u007fb' },
31
+ { tenant: '๐Ÿ˜€'.repeat(65) }, { state: 'all' }, { state: [] },
32
+ { limit: 0 }, { limit: 101 }, { limit: '20' }, { limit: 1.5 }, { limit: true },
33
+ { cursor: '' }, { cursor: null }, { cursor: 'with=' }, { cursor: 'with+' },
34
+ { cursor: 'with/' }, { cursor: 'next\n' }, { cursor: 'a'.repeat(2049) },
35
+ ];
36
+ const invalidDisplays = [
37
+ {}, { name: '' }, { name: ' ' }, { name: 42 }, { name: 'a', scope: '*' },
38
+ { name: 'a'.repeat(121) }, { name: '๐Ÿ˜€'.repeat(61) }, { name: 'a\nb' },
39
+ { name: '\ta' }, { name: 'a\u007f' }, { name: 'a\u0085' }, { name: 'a\u2028b' },
40
+ { name: 'a\u2029b' }, [], 'Account A',
41
+ ];
42
+ const requests = [];
43
+ const server = createServer(async (req, res) => {
44
+ let body = '';
45
+ for await (const chunk of req) body += chunk;
46
+ requests.push({ method: req.method, url: req.url, body, headers: req.headers });
47
+ res.setHeader('Content-Type', 'application/json');
48
+ const url = new URL(req.url, 'http://fixture.invalid');
49
+ if (url.pathname === `/agent-auth/v1/authorizations/${authorizationId}`) {
50
+ res.end(JSON.stringify({ status: 'consumed', requested_routes: ['staff-route'], session }));
51
+ } else if (url.pathname === `/agent-auth/v1/authorizations/${unmappedId}`) {
52
+ res.end(JSON.stringify({ status: 'consumed', requested_routes: ['staff-route'], session: null }));
53
+ } else if (url.pathname === '/agent-auth/v1/sessions') {
54
+ res.end(JSON.stringify({ list: [item], next_cursor: url.search ? null : 'next_page-1' }));
55
+ } else if (url.pathname === `/agent-auth/v1/authorizations/${authorizationId}/revoke`) {
56
+ res.end(JSON.stringify({ authorization_id: authorizationId, revoked: true, session_id: sessionId }));
57
+ } else if (url.pathname === `/agent-auth/v1/authorizations/${authorizationId}/approve`) {
58
+ res.end(JSON.stringify({ redirect_uri: 'http://127.0.0.1:12345/callback?code=synthetic-code' }));
59
+ } else if (url.pathname === `/agent-auth/v1/sessions/${sessionId}/subject-display`) {
60
+ const display = JSON.parse(body).subject_display;
61
+ res.end(JSON.stringify({ ...item, state: 'active', subject_display: display, subject_display_status: display ? 'provided' : 'missing' }));
62
+ } else if (url.pathname.endsWith('/deny') || url.pathname.endsWith('/revoke') || url.pathname === '/body-check') {
63
+ res.end('{}');
64
+ } else {
65
+ res.statusCode = 404;
66
+ res.end('{"error":"not found"}');
67
+ }
68
+ });
69
+ await new Promise((resolve, reject) => { server.once('error', reject); server.listen(0, '127.0.0.1', resolve); });
70
+ const encoded = (value) => Buffer.from(JSON.stringify(value)).toString('base64');
71
+ try {
72
+ for (const variant of ['php', 'php7']) {
73
+ const command = variant === 'php7' ? (process.env.BAILING_SDK_PHP7_BINARY || 'php') : 'php';
74
+ const start = requests.length;
75
+ const result = await runAsync(command, ['-r', `
76
+ require '${root}/sdk/${variant}/src/HubClient.php';
77
+ require '${root}/sdk/${variant}/src/AgentAuth.php';
78
+ $auth = new Bailing\\Connect\\AgentAuth('http://127.0.0.1:${server.address().port}', 'synthetic-client-token');
79
+ $out = array('runtime' => PHP_VERSION);
80
+ $out['context'] = $auth->context('${authorizationId}');
81
+ $out['unmapped'] = $auth->context('${unmappedId}');
82
+ $out['default'] = $auth->listSessions();
83
+ $out['filtered'] = $auth->listSessions(json_decode(base64_decode('${encoded(filters)}'), true));
84
+ $out['tenantless'] = $auth->listSessions(array('principal_id' => 'u', 'tenant' => '', 'limit' => 1));
85
+ $out['tenant'] = $auth->listSessions(array('tenant' => str_repeat('๐Ÿ˜€', 64)));
86
+ $out['revoke'] = $auth->revokeAuthorization('${authorizationId}');
87
+ $out['repeat'] = $auth->revokeAuthorization('${authorizationId}');
88
+ $auth->deny('${authorizationId}');
89
+ $auth->revokeSession('${sessionId}');
90
+ $hub = new Bailing\\Connect\\HubClient('http://127.0.0.1:${server.address().port}', 'synthetic-client-token');
91
+ $hub->post('/body-check', array('nested' => array(), 'value' => 'kept'));
92
+ $hub->post('/body-check', array('nonempty-list'));
93
+ $principal = array('id' => 'user-a', 'tenant' => 'tenant-a');
94
+ $out['approveOld'] = $auth->approve('${authorizationId}', $principal, 'tenant-a:user-a', array('staff-route'));
95
+ $out['approveNamed'] = $auth->approve('${authorizationId}', $principal, 'tenant-a:user-a', array('staff-route'), array('name' => ' Account A '));
96
+ $out['approveMissing'] = $auth->approve('${authorizationId}', $principal, 'tenant-a:user-a', array('staff-route'), null);
97
+ $out['named'] = $auth->updateSubjectDisplay('${sessionId}', array('name' => 'ใ€€Account Aใ€€'));
98
+ $out['cleared'] = $auth->updateSubjectDisplay('${sessionId}', null);
99
+ $out['unicodeName'] = $auth->updateSubjectDisplay('${sessionId}', array('name' => str_repeat('๐Ÿ˜€', 60)));
100
+ $out['invalidDisplays'] = array();
101
+ foreach (json_decode(base64_decode('${encoded(invalidDisplays)}'), true) as $display) {
102
+ try { $auth->updateSubjectDisplay('${sessionId}', $display); $out['invalidDisplays'][] = false; }
103
+ catch (Throwable $e) { $out['invalidDisplays'][] = true; }
104
+ try { $auth->approve('${authorizationId}', $principal, 'tenant-a:user-a', array('staff-route'), $display); $out['invalidDisplays'][] = false; }
105
+ catch (Throwable $e) { $out['invalidDisplays'][] = true; }
106
+ }
107
+ try { $auth->updateSubjectDisplay('${sessionId}', array('name' => "\\xFF")); $out['invalidDisplayUtf8'] = false; }
108
+ catch (Throwable $e) { $out['invalidDisplayUtf8'] = true; }
109
+ try { $auth->updateSubjectDisplay('not-a-uuid', null); $out['invalidDisplayId'] = false; }
110
+ catch (Throwable $e) { $out['invalidDisplayId'] = true; }
111
+ $out['invalid'] = array();
112
+ foreach (json_decode(base64_decode('${encoded(invalid)}'), true) as $filters) {
113
+ try { $auth->listSessions($filters); $out['invalid'][] = false; }
114
+ catch (InvalidArgumentException $e) { $out['invalid'][] = true; }
115
+ }
116
+ try { $auth->listSessions(array('tenant' => "\\xFF")); $out['invalidUtf8'] = false; }
117
+ catch (InvalidArgumentException $e) { $out['invalidUtf8'] = true; }
118
+ try { $auth->revokeAuthorization('not-a-uuid'); $out['invalidId'] = false; }
119
+ catch (InvalidArgumentException $e) { $out['invalidId'] = true; }
120
+ echo json_encode($out, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
121
+ `]);
122
+ let data;
123
+ try { data = JSON.parse(result.stdout); } catch {}
124
+ const captured = requests.slice(start);
125
+ const label = `${variant.toUpperCase()} AgentAuth lifecycle`;
126
+ ok(`${label} runs on PHP ${data?.runtime ?? 'unknown'}`, result.status === 0 && !!data, result.stderr || result.stdout);
127
+ ok(`${label} preserves consumed context and missing-session projection`,
128
+ JSON.stringify(data?.context?.session) === JSON.stringify(session)
129
+ && data?.context?.requested_routes?.[0] === 'staff-route'
130
+ && data?.unmapped?.session === null);
131
+ ok(`${label} returns list metadata and opaque/null cursors unchanged`,
132
+ JSON.stringify(data?.default?.list) === JSON.stringify([item])
133
+ && data?.default?.next_cursor === 'next_page-1' && data?.filtered?.next_cursor === null);
134
+ const listRequests = captured.filter((request) => request.url.startsWith('/agent-auth/v1/sessions') && request.method === 'GET');
135
+ const query = new URL(listRequests[1]?.url ?? '/', 'http://fixture.invalid');
136
+ ok(`${label} uses only whitelisted RFC3986 query fields without broadening`,
137
+ listRequests[0]?.url === '/agent-auth/v1/sessions'
138
+ && JSON.stringify(Object.fromEntries(query.searchParams)) === JSON.stringify(Object.fromEntries(Object.entries(filters).map(([key, value]) => [key, String(value)])))
139
+ && listRequests[1]?.url.includes('%20') && !listRequests[1]?.url.includes('+')
140
+ && listRequests[2]?.url === '/agent-auth/v1/sessions?principal_id=u&tenant=&limit=1'
141
+ && new URL(listRequests[3]?.url ?? '/', 'http://fixture.invalid').searchParams.get('tenant') === '๐Ÿ˜€'.repeat(64));
142
+ ok(`${label} rejects ${invalid.length + 2} invalid filters/IDs before HTTP`,
143
+ data?.invalid?.length === invalid.length && data.invalid.every(Boolean)
144
+ && data?.invalidUtf8 === true && data?.invalidId === true && captured.length === 18);
145
+ ok(`${label} uses idempotent revoke-authorization path and empty object bodies`,
146
+ JSON.stringify(data?.revoke) === JSON.stringify({ authorization_id: authorizationId, revoked: true, session_id: sessionId })
147
+ && JSON.stringify(data?.repeat) === JSON.stringify(data?.revoke)
148
+ && captured.slice(6, 10).every((request) => request.method === 'POST' && request.body === '{}')
149
+ && captured[6]?.url === `/agent-auth/v1/authorizations/${authorizationId}/revoke`
150
+ && captured[7]?.url === captured[6]?.url);
151
+ ok(`${label} keeps non-empty HubClient bodies unchanged`,
152
+ captured[10]?.body === '{"nested":[],"value":"kept"}' && captured[11]?.body === '["nonempty-list"]');
153
+ const approvals = captured.filter((request) => request.url.endsWith('/approve'));
154
+ ok(`${label} keeps four-argument approval compatible and transmits explicit display/null`,
155
+ approvals.length === 3 && approvals.every((request) => request.method === 'POST')
156
+ && !Object.hasOwn(JSON.parse(approvals[0].body), 'subject_display')
157
+ && JSON.stringify(JSON.parse(approvals[1].body).subject_display) === JSON.stringify({ name: 'Account A' })
158
+ && JSON.parse(approvals[2].body).subject_display === null
159
+ && JSON.parse(approvals[1].body).principal.id === 'user-a');
160
+ const updates = captured.filter((request) => request.url.endsWith('/subject-display'));
161
+ ok(`${label} updates only display via PUT and preserves returned session metadata`,
162
+ updates.length === 3 && updates.every((request) => request.method === 'PUT'
163
+ && Object.keys(JSON.parse(request.body)).join(',') === 'subject_display')
164
+ && data?.named?.subject_display?.name === 'Account A' && data?.named?.subject_display_status === 'provided'
165
+ && data?.named?.session_id === sessionId && data?.named?.principal?.id === item.principal.id
166
+ && data?.cleared?.subject_display === null && data?.cleared?.subject_display_status === 'missing'
167
+ && data?.unicodeName?.subject_display?.name === '๐Ÿ˜€'.repeat(60));
168
+ ok(`${label} rejects invalid display objects, controls, length, UTF-8 and IDs before HTTP`,
169
+ data?.invalidDisplays?.length === invalidDisplays.length * 2 && data.invalidDisplays.every(Boolean)
170
+ && data?.invalidDisplayUtf8 === true && data?.invalidDisplayId === true && captured.length === 18);
171
+ ok(`${label} sends only server-side Client Token headers`, captured.every((request) =>
172
+ request.headers.authorization === 'Bearer synthetic-client-token'
173
+ && !request.url.includes('synthetic-client-token') && !request.body.includes('synthetic-client-token')));
174
+ }
175
+ } finally {
176
+ await closeServer(server);
177
+ }
178
+ }