bailinghub 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +20 -0
- package/README.en.md +6 -6
- package/README.md +6 -6
- package/SECURITY.md +20 -0
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/docker-compose.images.yml +2 -2
- package/docs/AGENT_CONVERSATION_AUDIT.en.md +8 -2
- package/docs/AGENT_CONVERSATION_AUDIT.md +8 -1
- package/docs/CHANGELOG.en.md +29 -1
- package/docs/CHANGELOG.md +29 -1
- package/docs/IMPLEMENTATION_STATUS.en.md +12 -3
- package/docs/IMPLEMENTATION_STATUS.md +12 -3
- package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
- package/docs/INDEPENDENT_VALIDATION.md +4 -4
- package/docs/MODEL_CONTINUATION.en.md +8 -0
- package/docs/MODEL_CONTINUATION.md +8 -0
- package/docs/MODEL_OUTPUT_BUDGET.en.md +1 -0
- package/docs/MODEL_OUTPUT_BUDGET.md +1 -0
- package/docs/README.en.md +6 -0
- package/docs/README.md +6 -0
- package/docs/RELEASE_NOTES_v0.10.1.en.md +41 -0
- package/docs/RELEASE_NOTES_v0.10.1.md +41 -0
- package/docs/RELEASE_NOTES_v0.11.0.en.md +19 -0
- package/docs/RELEASE_NOTES_v0.11.0.md +19 -0
- package/docs/RELEASE_NOTES_v0.11.1.en.md +25 -0
- package/docs/RELEASE_NOTES_v0.11.1.md +25 -0
- package/docs/UPGRADE_v0.10.1.en.md +66 -0
- package/docs/UPGRADE_v0.10.1.md +66 -0
- package/docs/UPGRADE_v0.11.0.en.md +24 -0
- package/docs/UPGRADE_v0.11.0.md +24 -0
- package/docs/UPGRADE_v0.11.1.en.md +28 -0
- package/docs/UPGRADE_v0.11.1.md +28 -0
- package/docs/security/GRC_EVIDENCE.md +54 -0
- package/docs/user-guide/console-map.md +2 -2
- package/package.json +5 -3
- package/scripts/check-doc-links.mjs +6 -0
- package/scripts/check-image-tags.sh +1 -1
- package/scripts/check-php-sdk-artifacts.mjs +152 -0
- package/scripts/check-php-sdk-artifacts.test.mjs +99 -0
- package/scripts/check-release-consistency.test.mjs +2 -2
- package/scripts/copy-acr-platform-image.sh +42 -0
- package/scripts/e2e-console-runtime-audit.mjs +7 -0
- package/scripts/e2e-console-troubleshooting-extra.mjs +4 -4
- package/scripts/e2e-console.mjs +90 -23
- package/scripts/install.sh +1 -1
- package/scripts/notification-console-test.mjs +2 -1
- package/scripts/publish-images.sh +1 -1
- package/scripts/release-audit.mjs +13 -1
- package/scripts/restore-ghcr-version.sh +48 -0
- package/scripts/sdk-declaration-contract-test.ts +34 -0
- package/scripts/sdk-p1-check.mjs +62 -26
- package/scripts/test-acr-platform-copy.sh +152 -0
- package/scripts/verify-github-repo.mjs +12 -0
- package/sdk/dotnet/Bailing.Connect/BailingConnect.cs +4 -4
- package/sdk/dotnet/README.md +8 -0
- package/sdk/dotnet/tests/Declaration/Declaration.csproj +11 -0
- package/sdk/dotnet/tests/Declaration/Program.cs +74 -0
- package/sdk/go/README.md +8 -0
- package/sdk/go/bailingconnect/connect.go +5 -5
- package/sdk/go/bailingconnect/declaration_test.go +107 -0
- package/sdk/java/README.md +13 -0
- package/sdk/java/src/main/java/com/bailing/connect/BailingConnect.java +4 -4
- package/sdk/java/tests/DeclarationTest.java +70 -0
- package/sdk/node/README.md +8 -0
- package/sdk/node/src/index.mjs +4 -4
- package/sdk/node/tests/declaration.test.mjs +41 -0
- package/sdk/php/README.md +16 -0
- package/sdk/php/src/Attributes/AiTool.php +4 -4
- package/sdk/php/src/SpecBuilder.php +8 -8
- package/sdk/php/tests/declaration-serialization.php +103 -0
- package/sdk/php7/README.md +14 -0
- package/sdk/php7/src/ToolDef.php +3 -3
- package/sdk/php7/src/ToolSpec.php +8 -13
- package/sdk/php7/tests/declaration-serialization.php +103 -0
- package/sdk/python/README.md +8 -0
- package/sdk/python/bailing_connect/__init__.py +6 -6
- package/sdk/python/tests/test_declaration.py +61 -0
- package/src/core/config/console-task-location.test.ts +12 -24
- package/src/core/contracts/explicit-capability-values.test.ts +62 -0
- package/src/core/contracts/openapi-tools.ts +2 -2
- package/src/core/contracts/tool-annotations.ts +4 -4
- package/src/core/runtime/credential-resolver.ts +3 -3
- package/src/infrastructure/config/config-agent-conversation-audit-repository.test.ts +29 -0
- package/src/infrastructure/config/config-agent-conversation-audit-repository.ts +142 -9
- package/src/infrastructure/config/config-conversation-feed.integration.test.ts +134 -0
- package/src/infrastructure/config/config-conversation-ledger.test.ts +47 -1
- package/src/infrastructure/config/config-conversation-ledger.ts +24 -8
- package/src/infrastructure/config/config-observability-ledger.ts +32 -4
- package/src/infrastructure/config/config-recent-jobs.integration.test.ts +45 -0
- package/src/infrastructure/config/configstore.ts +4 -4
- package/src/infrastructure/config/conversation-delivery-message.ts +12 -0
- package/src/modules/usage/contracts.ts +1 -0
- package/src/modules/usage/model-context.test.ts +106 -0
- package/src/modules/usage/model-context.ts +54 -0
- package/src/modules/usage/model-continuation.test.ts +27 -0
- package/src/modules/usage/provider.test.ts +40 -0
- package/src/modules/usage/provider.ts +21 -3
- package/src/modules/usage/repository.ts +2 -1
- package/src/routes/admin-conversation-audit.ts +20 -3
- package/src/routes/admin-history-cursor.ts +12 -0
- package/src/routes/admin-runtime.test.ts +47 -0
- package/src/routes/admin-runtime.ts +32 -3
- package/src/routes/admin-usage.ts +12 -1
- package/src/routes/admin.ts +6 -1
- package/src/routes/agent-conversation-audit.test.ts +47 -3
- package/src/test-support/agent-conversation-audit-fixture.ts +9 -1
- package/web/connect/bailing-connect-php.tgz +0 -0
- package/web/connect/bailing-connect-php7.tgz +0 -0
- package/web/console/assets/{Accounts-Dhyw-7wF.js → Accounts-B1Ne8Xx2.js} +1 -1
- package/web/console/assets/AgentClients-CiGQ-n2i.js +1 -0
- package/web/console/assets/AgentClients-xEIfsj7w.css +1 -0
- package/web/console/assets/AgentTasks-CaCeYv60.css +1 -0
- package/web/console/assets/AgentTasks-CylHZHHq.js +2 -0
- package/web/console/assets/{Approvals-CQx1YWxW.js → Approvals-wD4Iv80G.js} +1 -1
- package/web/console/assets/{Audit--QcdVlMh.js → Audit-BStlxkPw.js} +1 -1
- package/web/console/assets/{BrandLockup-DQcaW4Nt.js → BrandLockup-BAhrPnhy.js} +1 -1
- package/web/console/assets/Channels-DAlIgNxo.js +105 -0
- package/web/console/assets/Channels-WwRHFKJn.css +1 -0
- package/web/console/assets/ChatEntries-CPx-E9aJ.js +7 -0
- package/web/console/assets/ChatEntries-DALYfRDP.css +1 -0
- package/web/console/assets/Clients-gqNFusNW.css +1 -0
- package/web/console/assets/Clients-w97QPpFD.js +3 -0
- package/web/console/assets/Cost-CNDZaif-.css +1 -0
- package/web/console/assets/Cost-CxtN0mca.js +1 -0
- package/web/console/assets/Credentials-6c6aktzZ.css +1 -0
- package/web/console/assets/Credentials-BhpoH-hR.js +1 -0
- package/web/console/assets/{Diagnostics-CyoM1XrZ.js → Diagnostics-DnC-ODuy.js} +1 -1
- package/web/console/assets/Executors-CCTYuZf4.js +1 -0
- package/web/console/assets/Executors-CQ8iw3kK.css +1 -0
- package/web/console/assets/{HelpTip-DLlhaGQp.js → HelpTip-piedkqU-.js} +1 -1
- package/web/console/assets/Kb-CFCa-7LY.css +1 -0
- package/web/console/assets/Kb-DKp3mwWB.js +2 -0
- package/web/console/assets/Login-g_aZWHQd.js +1 -0
- package/web/console/assets/Login-krXZsvoF.css +1 -0
- package/web/console/assets/Projects-BexeaCxT.css +1 -0
- package/web/console/assets/Projects-DurExYV9.js +1 -0
- package/web/console/assets/Routes-CKoIjkCM.css +1 -0
- package/web/console/assets/Routes-CX7Q7bkz.js +138 -0
- package/web/console/assets/Runs-C48kdEwk.css +1 -0
- package/web/console/assets/Runs-CQKEDsrH.js +3 -0
- package/web/console/assets/Setup-CtWCXXpj.css +1 -0
- package/web/console/assets/Setup-DzI8rEAc.js +1 -0
- package/web/console/assets/Shell-BQ-g_O7K.js +1 -0
- package/web/console/assets/Shell-Y2fZK5LV.css +1 -0
- package/web/console/assets/StorageBuckets-CWxzIh0x.css +1 -0
- package/web/console/assets/StorageBuckets-DoZIzA7B.js +1 -0
- package/web/console/assets/SystemSettings-C3pFFzAQ.js +1 -0
- package/web/console/assets/SystemSettings-C5nv0K2a.css +1 -0
- package/web/console/assets/SystemStatus-Bbxu2dp4.css +1 -0
- package/web/console/assets/SystemStatus-BgekIK52.js +1 -0
- package/web/console/assets/Targets-CbLq7rgm.css +1 -0
- package/web/console/assets/Targets-DH1ZcK0J.js +1 -0
- package/web/console/assets/Tools-CMS1wVOm.js +5 -0
- package/web/console/assets/Tools-Qk1c5Rp8.css +1 -0
- package/web/console/assets/Usage-C0OkK7Jg.js +1 -0
- package/web/console/assets/Usage-Cue7CYnT.css +1 -0
- package/web/console/assets/UsageAccess-CHdWXvE8.js +1 -0
- package/web/console/assets/UsageAccess-nOa03hGb.css +1 -0
- package/web/console/assets/{UsageHelp-BmuiE1Ew.js → UsageHelp-BkIsuFUj.js} +1 -1
- package/web/console/assets/{console-location-Csv-xsnl.js → console-location-C_az_xHo.js} +1 -1
- package/web/console/assets/index-CbI5fbiD.js +2 -0
- package/web/console/assets/{index-B_5UfiTw.js → index-DwlsLKwM.js} +1 -1
- package/web/console/assets/request-WgSVj8ie.js +1 -0
- package/web/console/assets/{schema-o3mK4mid.js → schema-rb4T_2cj.js} +1 -1
- package/web/console/assets/task-page-location-BGxGar7H.js +1 -0
- package/web/console/assets/{use-list-location-cIPy2cKM.js → use-list-location-DeVfTTII.js} +1 -1
- package/web/console/assets/{use-unsaved-form-DScKD0h9.js → use-unsaved-form-B10XHC-n.js} +1 -1
- package/web/console/assets/{util-B40VqOwl.js → util-C0YJ70YU.js} +1 -1
- package/web/console/assets/{vendor-element-BT8tHCFk.js → vendor-element-BCC2kYn_.js} +7 -7
- package/web/console/assets/{vendor-mammoth-CVIXVxTN.js → vendor-mammoth-C7l0Q30g.js} +1 -1
- package/web/console/index.html +2 -2
- package/web-admin/package-lock.json +4 -4
- package/web-admin/package.json +1 -1
- package/web-admin/scripts/agent-task-control-smoke.mjs +26 -3
- package/web-admin/src/components/AgentSetupPanel.vue +19 -15
- package/web-admin/src/components/ChannelThread.vue +441 -0
- package/web-admin/src/components/ClientConversations.vue +397 -134
- package/web-admin/src/components/ConversationSourceTag.vue +24 -0
- package/web-admin/src/components/JobStatusTag.vue +18 -0
- package/web-admin/src/components/NotificationOutboxPanel.vue +5 -2
- package/web-admin/src/components/UsageServiceReferences.vue +6 -24
- package/web-admin/src/components/conversation-audit.ts +67 -2
- package/web-admin/src/components/conversation-reading-position.ts +27 -0
- package/web-admin/src/layout/Shell.vue +15 -17
- package/web-admin/src/onboarding-state.ts +5 -5
- package/web-admin/src/pages/AgentClients.vue +33 -27
- package/web-admin/src/pages/AgentTasks.vue +88 -43
- package/web-admin/src/pages/Channels.vue +15 -41
- package/web-admin/src/pages/ChatEntries.vue +13 -51
- package/web-admin/src/pages/Clients.vue +2 -2
- package/web-admin/src/pages/Cost.vue +10 -51
- package/web-admin/src/pages/Credentials.vue +1 -1
- package/web-admin/src/pages/Executors.vue +4 -3
- package/web-admin/src/pages/Kb.vue +4 -4
- package/web-admin/src/pages/Login.vue +7 -8
- package/web-admin/src/pages/Projects.vue +1 -1
- package/web-admin/src/pages/Routes.vue +46 -83
- package/web-admin/src/pages/Runs.vue +239 -567
- package/web-admin/src/pages/Setup.vue +20 -20
- package/web-admin/src/pages/StorageBuckets.vue +1 -1
- package/web-admin/src/pages/SystemSettings.vue +1 -2
- package/web-admin/src/pages/SystemStatus.vue +4 -6
- package/web-admin/src/pages/Targets.vue +0 -2
- package/web-admin/src/pages/Tools.vue +31 -22
- package/web-admin/src/pages/Usage.vue +110 -60
- package/web-admin/src/pages/UsageAccess.vue +2 -5
- package/web-admin/src/request.ts +5 -1
- package/web-admin/src/task-page-location.ts +6 -12
- package/web-admin/src/task-trace-presentation.ts +143 -0
- package/web-admin/tests/conversation-audit.test.mjs +23 -1
- package/web-admin/tests/model-context.browser.mjs +238 -0
- package/web-admin/tests/model-output-budget.browser.mjs +1 -0
- package/web/console/assets/AgentClients-BA0M26-I.css +0 -1
- package/web/console/assets/AgentClients-DWxb8-ko.js +0 -1
- package/web/console/assets/AgentTasks-DOyxANnx.css +0 -1
- package/web/console/assets/AgentTasks-DUHD4dzr.js +0 -2
- package/web/console/assets/Channels-DJJU3ksE.css +0 -1
- package/web/console/assets/Channels-cGS5WfQ-.js +0 -105
- package/web/console/assets/ChatEntries-BYpji27B.css +0 -1
- package/web/console/assets/ChatEntries-nh23Iz5O.js +0 -7
- package/web/console/assets/Clients-CX5EeYio.js +0 -3
- package/web/console/assets/Clients-CbZAou8E.css +0 -1
- package/web/console/assets/Cost-C6oQvz9P.css +0 -1
- package/web/console/assets/Cost-DOZfdNS9.js +0 -1
- package/web/console/assets/Credentials--aHs57yV.css +0 -1
- package/web/console/assets/Credentials-sy6W9Sac.js +0 -1
- package/web/console/assets/Executors-2Upi6bOS.css +0 -1
- package/web/console/assets/Executors-BQqqiFwt.js +0 -1
- package/web/console/assets/Kb-5R3ce4UU.js +0 -5
- package/web/console/assets/Kb-BM_PYi11.css +0 -1
- package/web/console/assets/Login-YKeUwdgo.js +0 -1
- package/web/console/assets/Login-xtPwDB5_.css +0 -1
- package/web/console/assets/Projects-DHwHrPT9.css +0 -1
- package/web/console/assets/Projects-Grgb6fOv.js +0 -1
- package/web/console/assets/Routes-DR_Yf02e.css +0 -1
- package/web/console/assets/Routes-DYgrXlRJ.js +0 -138
- package/web/console/assets/Runs-CwTddJJj.js +0 -3
- package/web/console/assets/Runs-D4FOvNfu.css +0 -1
- package/web/console/assets/Setup-Ca0b1d1-.css +0 -1
- package/web/console/assets/Setup-D_xUPNDq.js +0 -1
- package/web/console/assets/Shell-BTg8Vw_L.css +0 -1
- package/web/console/assets/Shell-Dfam2Uoj.js +0 -1
- package/web/console/assets/StorageBuckets-7QLBpV4a.css +0 -1
- package/web/console/assets/StorageBuckets-CP6e50wI.js +0 -1
- package/web/console/assets/SystemSettings-BRYKyJNa.js +0 -1
- package/web/console/assets/SystemSettings-HsXGx0aH.css +0 -1
- package/web/console/assets/SystemStatus-B-VfRsQd.css +0 -1
- package/web/console/assets/SystemStatus-CbPsDsGt.js +0 -1
- package/web/console/assets/Targets-1j4-g6rC.css +0 -1
- package/web/console/assets/Targets-C2LkR2AF.js +0 -1
- package/web/console/assets/Tools-C9HPJqJb.css +0 -1
- package/web/console/assets/Tools-C9JNJUS0.js +0 -2
- package/web/console/assets/Usage-D1Mv6vGY.js +0 -1
- package/web/console/assets/Usage-DMOzUsqh.css +0 -1
- package/web/console/assets/UsageAccess-77LmGCm6.js +0 -1
- package/web/console/assets/UsageAccess-C6ZGxEgJ.css +0 -1
- package/web/console/assets/index-MjZJEFIN.js +0 -2
- package/web/console/assets/request-rqm6MT0s.js +0 -1
- package/web/console/assets/task-page-location-DWiGtAln.js +0 -1
package/CONTRIBUTING.md
CHANGED
|
@@ -76,3 +76,23 @@ Automation-assisted pull requests are welcome when an accountable human submitte
|
|
|
76
76
|
## License
|
|
77
77
|
|
|
78
78
|
By contributing, you agree that your contributions are licensed under the Apache License 2.0.
|
|
79
|
+
|
|
80
|
+
## Security incident coordination
|
|
81
|
+
|
|
82
|
+
For reliable evidence of active exploitation, or a compromise of the project's
|
|
83
|
+
own build, release, or repository infrastructure, notify the repository
|
|
84
|
+
maintainer through the private reporting channel in [SECURITY.md](SECURITY.md).
|
|
85
|
+
Keep exploit details, credentials, and affected deployments out of public issues.
|
|
86
|
+
|
|
87
|
+
Maintainers should preserve sanitized evidence, assess affected revisions and
|
|
88
|
+
release integrity, and coordinate mitigation with relevant service providers
|
|
89
|
+
and affected downstream maintainers where appropriate. Preparing a fix or
|
|
90
|
+
mitigation should not wait for a decision about external notification.
|
|
91
|
+
|
|
92
|
+
This independent project has no designated external steward to receive automatic
|
|
93
|
+
escalations. Do not assume another foundation handles its incidents. If a
|
|
94
|
+
stewardship arrangement is established, document the actual contact, scope, and
|
|
95
|
+
escalation procedure in the security policy and governance documents. Ordinary
|
|
96
|
+
vulnerability reports continue through the existing private triage and disclosure
|
|
97
|
+
process. These are coordination instructions, not evidence of an exercised
|
|
98
|
+
incident-response program.
|
package/README.en.md
CHANGED
|
@@ -29,13 +29,13 @@ You choose which business APIs become available. BailingHub connects the convers
|
|
|
29
29
|
<img src="assets/readme-product-overview.en.svg" width="100%" alt="BailingHub connects conversational entry points to governed business capabilities while the business system remains the authority">
|
|
30
30
|
</picture>
|
|
31
31
|
|
|
32
|
-
## v0.
|
|
32
|
+
## v0.11.1 · Cross-channel task tracing and model context windows
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Find a conversation by channel, distinguish user and assistant messages, and follow the associated task to its execution trace. Filter dispatches by status, time and exact route. In model service settings, supported provider routes prefill the combined context window. Hosts can read that limit from the model catalog and recognize a confirmed oversized input from the final receipt.
|
|
35
35
|
|
|
36
|
-
The
|
|
36
|
+
The GHCR build index includes provenance. The ACR mirror serves the verified `linux/amd64` image for the same version.
|
|
37
37
|
|
|
38
|
-
[Release notes](docs/RELEASE_NOTES_v0.
|
|
38
|
+
[Release notes](docs/RELEASE_NOTES_v0.11.1.en.md) · [Upgrade guide](docs/UPGRADE_v0.11.1.en.md) · [Previous release](docs/RELEASE_NOTES_v0.10.1.en.md)
|
|
39
39
|
|
|
40
40
|
## Operate the System by Conversation
|
|
41
41
|
|
|
@@ -125,7 +125,7 @@ To explore before installing, use the [online experience](https://trial.bailingh
|
|
|
125
125
|
To run the complete disposable loop locally:
|
|
126
126
|
|
|
127
127
|
```bash
|
|
128
|
-
git clone --branch v0.
|
|
128
|
+
git clone --branch v0.11.1 --depth 1 https://github.com/bailinghub/bailinghub.git
|
|
129
129
|
cd bailinghub
|
|
130
130
|
export BAILING_TOKEN="${BAILING_TOKEN:-$(openssl rand -hex 32)}"
|
|
131
131
|
docker compose up --build
|
|
@@ -214,7 +214,7 @@ Run separate BailingHub deployments for mutually isolated organizations. A `clie
|
|
|
214
214
|
- [HTTP Contract](docs/CONTRACT.en.md) — stable network and identity boundaries.
|
|
215
215
|
- [Architecture](docs/ARCHITECTURE.en.md) — runtime layers and dependency direction.
|
|
216
216
|
- [English Documentation Map](docs/README.en.md) — the complete public documentation index.
|
|
217
|
-
- [Changelog](docs/CHANGELOG.en.md) and [v0.
|
|
217
|
+
- [Changelog](docs/CHANGELOG.en.md) and [v0.11.1](docs/RELEASE_NOTES_v0.11.1.en.md) — current release changes and upgrade notes.
|
|
218
218
|
|
|
219
219
|
## Feedback and Ecosystem
|
|
220
220
|
|
package/README.md
CHANGED
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
|
|
28
28
|
在线体验环境只用于了解产品和配置方式。请勿上传生产凭据、敏感数据或接入真实业务;正式使用请自行部署开源版。
|
|
29
29
|
|
|
30
|
-
## v0.
|
|
30
|
+
## v0.11.1 · 多渠道任务追溯与模型上下文管理
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
从最近会话辨认渠道和消息角色,沿关联任务查看原授权与执行轨迹,按状态、时间和路由定位失败任务。模型服务配置可按支持的供应商路由预填上下文窗口,宿主可从模型目录读取上限,并从原单回执识别已确认的输入超限。
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
GHCR 的完整构建索引包含来源证明,阿里云 ACR 镜像提供已核验的同版本 `linux/amd64` 运行镜像。
|
|
35
35
|
|
|
36
|
-
[版本说明](docs/RELEASE_NOTES_v0.
|
|
36
|
+
[版本说明](docs/RELEASE_NOTES_v0.11.1.md) · [升级指南](docs/UPGRADE_v0.11.1.md) · [上一版本](docs/RELEASE_NOTES_v0.10.1.md)
|
|
37
37
|
|
|
38
38
|
## 适合哪些团队
|
|
39
39
|
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
在本机启动中枢、MySQL、Demo 业务系统、工具源、路由和接入方:
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
-
git clone --branch v0.
|
|
118
|
+
git clone --branch v0.11.1 --depth 1 https://github.com/bailinghub/bailinghub.git
|
|
119
119
|
cd bailinghub
|
|
120
120
|
export BAILING_TOKEN="${BAILING_TOKEN:-$(openssl rand -hex 32)}"
|
|
121
121
|
docker compose up --build
|
|
@@ -199,7 +199,7 @@ BailingHub Core 是独立服务,只通过稳定网络契约与业务系统协
|
|
|
199
199
|
| 集中开启本地智能体与工具 | [四步配置指南](docs/LOCAL_AGENT_SETUP.md) · [系统说明](docs/AGENT_SYSTEM_INFO.md) |
|
|
200
200
|
| 查 API 与边界契约 | [HTTP 契约](docs/CONTRACT.md) · [Client API](docs/CLIENT_API.md) |
|
|
201
201
|
| 理解架构与长期取舍 | [架构](docs/ARCHITECTURE.md) · [项目愿景](VISION.md) |
|
|
202
|
-
| 查看版本变化 | [CHANGELOG](docs/CHANGELOG.md) · [v0.
|
|
202
|
+
| 查看版本变化 | [CHANGELOG](docs/CHANGELOG.md) · [v0.11.1](docs/RELEASE_NOTES_v0.11.1.md) |
|
|
203
203
|
|
|
204
204
|
完整中英文文档地图见 [docs/README.md](docs/README.md)。公共 API、SDK、Schema、Docker Demo 与代码标识保持语言中立。
|
|
205
205
|
|
package/SECURITY.md
CHANGED
|
@@ -45,3 +45,23 @@ For example, a protected test environment may set `BAILING_PUBLIC_DENYLIST_JSON=
|
|
|
45
45
|
Core and its bundled console use a reproducible library-only Mammoth distribution. It retains the original parsing sources and license while removing the unused command-line interface and its `argparse → sprintf-js` dependency chain. The previous time-limited exception for [GHSA-hp3w-g68c-fv3c](https://github.com/advisories/GHSA-hp3w-g68c-fv3c) is retired; no dependency finding is currently excepted.
|
|
46
46
|
|
|
47
47
|
`npm run audit:deps` requires zero raw findings, verifies the vendored source/archive, and separately queries direct advisories under the original upstream `mammoth` name and version. Registry failure, changed source/distribution, any finding or a reintroduced CLI dependency blocks the gate. See [DOCX source and audit policy](docs/DOCX_DEPENDENCY.en.md) ([中文](docs/DOCX_DEPENDENCY.md)) for reproduction, compatibility tests and the npm/Docker/source-export boundaries. This is not a general document-safety certification or an assertion that upstream sprintf-js is patched.
|
|
48
|
+
|
|
49
|
+
## Project stewardship and security coordination
|
|
50
|
+
|
|
51
|
+
BailingHub Core is independently maintained. It is not hosted by a foundation
|
|
52
|
+
and has no designated external open-source steward or external CRA stewardship
|
|
53
|
+
arrangement. The repository maintainer identified in [GOVERNANCE.md](GOVERNANCE.md)
|
|
54
|
+
is responsible for security triage and coordination through the private
|
|
55
|
+
vulnerability reporting channel above.
|
|
56
|
+
|
|
57
|
+
The Apache-2.0 license permits use in business products and paid services. This
|
|
58
|
+
statement does not assert that all possible downstream uses are outside the EU Cyber Resilience Act (CRA), and does
|
|
59
|
+
not claim legal compliance, certification, or participation in another
|
|
60
|
+
organization's stewardship framework. Downstream products and deployments must
|
|
61
|
+
assess their own roles and obligations.
|
|
62
|
+
|
|
63
|
+
For reliable evidence of active exploitation or a compromise of project
|
|
64
|
+
infrastructure, use the same private reporting channel and identify the incident
|
|
65
|
+
and urgency. Maintainers should follow the coordination steps in
|
|
66
|
+
[CONTRIBUTING.md](CONTRIBUTING.md). The project has no separately staffed emergency
|
|
67
|
+
hotline or guaranteed incident-response time.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -152,7 +152,7 @@ The package license texts and copyright notices remain in the installed package
|
|
|
152
152
|
| Console | [typescript](https://www.npmjs.com/package/typescript) | 5.9.3 | Apache-2.0 | runtime |
|
|
153
153
|
| Console | [underscore](https://www.npmjs.com/package/underscore) | 1.13.8 | MIT | runtime |
|
|
154
154
|
| Console | [util-deprecate](https://www.npmjs.com/package/util-deprecate) | 1.0.2 | MIT | runtime |
|
|
155
|
-
| Console | [vite](https://www.npmjs.com/package/vite) | 6.4.
|
|
155
|
+
| Console | [vite](https://www.npmjs.com/package/vite) | 6.4.5 | MIT | build/test |
|
|
156
156
|
| Console | [vue](https://www.npmjs.com/package/vue) | 3.5.43 | MIT | runtime |
|
|
157
157
|
| Console | [vue-component-type-helpers](https://www.npmjs.com/package/vue-component-type-helpers) | 3.3.4 | MIT | runtime |
|
|
158
158
|
| Console | [vue-demi](https://www.npmjs.com/package/vue-demi) | 0.14.10 | MIT | runtime |
|
|
@@ -209,7 +209,7 @@ The package license texts and copyright notices remain in the installed package
|
|
|
209
209
|
| Hub | [duck](https://www.npmjs.com/package/duck) | 0.1.12 | BSD | runtime |
|
|
210
210
|
| Hub | [esbuild](https://www.npmjs.com/package/esbuild) | 0.28.1 | MIT | runtime |
|
|
211
211
|
| Hub | [fast-deep-equal](https://www.npmjs.com/package/fast-deep-equal) | 3.1.3 | MIT | build/test |
|
|
212
|
-
| Hub | [fast-uri](https://www.npmjs.com/package/fast-uri) | 3.1.
|
|
212
|
+
| Hub | [fast-uri](https://www.npmjs.com/package/fast-uri) | 3.1.9 | BSD-3-Clause | build/test |
|
|
213
213
|
| Hub | [fsevents](https://www.npmjs.com/package/fsevents) | 2.3.2 | MIT | build/test |
|
|
214
214
|
| Hub | [fsevents](https://www.npmjs.com/package/fsevents) | 2.3.3 | MIT | runtime |
|
|
215
215
|
| Hub | [generate-function](https://www.npmjs.com/package/generate-function) | 2.3.1 | MIT | runtime |
|
|
@@ -18,7 +18,7 @@ services:
|
|
|
18
18
|
retries: 30
|
|
19
19
|
|
|
20
20
|
demo-business:
|
|
21
|
-
image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.
|
|
21
|
+
image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.11.1}
|
|
22
22
|
environment:
|
|
23
23
|
DEMO_HOST: 0.0.0.0
|
|
24
24
|
DEMO_PORT: 19080
|
|
@@ -29,7 +29,7 @@ services:
|
|
|
29
29
|
- "${BAILING_DEMO_PUBLIC_PORT:-19080}:19080"
|
|
30
30
|
|
|
31
31
|
bailinghub:
|
|
32
|
-
image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.
|
|
32
|
+
image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.11.1}
|
|
33
33
|
depends_on:
|
|
34
34
|
mysql:
|
|
35
35
|
condition: service_healthy
|
|
@@ -249,6 +249,11 @@ Each header includes `conversation_id`, `client_archive_id`,
|
|
|
249
249
|
`last_turn_status`, `created_at` and `updated_at`. The last turn status is initially
|
|
250
250
|
null, then `running`, `completed`, `failed` or `cancelled`. Sequences count all
|
|
251
251
|
event kinds and must not be displayed as message counts.
|
|
252
|
+
Admin list and detail headers can also include `first_user_preview`, the first 96 characters of this archive’s earliest synced user message in sequence order. It is null until a user message is present and may be absent on older versions. Read the paginated detail events for the full message.
|
|
253
|
+
|
|
254
|
+
`GET /admin/api/conversation-audits/feed?source=all&limit=50&offset=0` returns the admin conversation feed (`bailing.admin-conversation-feed.v1`). Filter by `client`, `web`, `wecom`, `delivery` or `other`. Results share one recent-activity order. Continue with the returned `next_cursor` in the `cursor` parameter, using the same source filter. Open `kind=audit` items by archive ID and `kind=thread` items via `/admin/api/threads/:id`.
|
|
255
|
+
|
|
256
|
+
Client archives appear under `client`. A thread takes its source from the earliest inbound message that lacks a verified archive link for its run and thread IDs. If all inbound messages are archived, the archive and the original-record directory provide access to the execution evidence. A thread with no inbound messages and at least one recorded channel delivery appears under `delivery`. Task result notifications, the assistant's channel-send tool and successful `/send` requests can each generate a delivery. The source alone does not identify a specific trigger.
|
|
252
257
|
|
|
253
258
|
`GET /admin/api/conversation-audits/:id?after_sequence=0&limit=100` returns schema
|
|
254
259
|
`bailing.agent-conversation-audit-detail.v1`, `conversation` (the header),
|
|
@@ -262,8 +267,9 @@ The cross-binding extension optionally adds `client_app_id`, `client_name` and
|
|
|
262
267
|
omit these fields, and legacy database NULL values do not prove a member binding.
|
|
263
268
|
A UI falling back to the header must explicitly mark it as legacy header-only
|
|
264
269
|
information, not evidence of separately recorded member systems and routes.
|
|
265
|
-
Read the next page using `next_after_sequence
|
|
266
|
-
|
|
270
|
+
Read the next page using `next_after_sequence`. To start with the latest records, request `?tail=1` on either detail endpoint. For earlier records, pass the returned `next_before_sequence` as `before_sequence` on archives, or `next_before_id` as `before_id` on threads. Each page is returned in timeline order and `has_earlier` indicates whether older records remain. Use one paging mode per request (tail, before or after). Archive responses use `Cache-Control: no-store`.
|
|
271
|
+
|
|
272
|
+
`thread.delivery_only` is true when the thread has no inbound messages and contains a verified delivery. Each message carries its own `is_channel_delivery` flag. For example, if a WeCom user receives a notification and replies, the thread source is `wecom` and only the notification has `is_channel_delivery: true`. Ordinary Hub replies and notification status alone do not establish channel delivery.
|
|
267
273
|
|
|
268
274
|
Existing administrator agent-run traces add optional
|
|
269
275
|
`run.conversation_audit_id` / `run.client_turn_id`; verified tool job traces add
|
|
@@ -154,6 +154,11 @@ ACK 丢失可原样重试。恢复归档队列不等于恢复 invocation 执行
|
|
|
154
154
|
会话头字段为 conversation_id、client_archive_id、client_conversation_id、client_app_id、route_key、
|
|
155
155
|
state、member_count、confirmed_count、last_sequence、message_count、turn_count、last_turn_status、created_at、updated_at。
|
|
156
156
|
末轮状态初始为 null,之后是 running/completed/failed/cancelled。sequence 统计所有事件,不能当成消息数。
|
|
157
|
+
管理员列表和详情的会话头还可包含 `first_user_preview`,取本归档按 sequence 排序的首条已同步用户正文的前 96 个字符。尚无用户正文时为 null,较早版本可缺少该字段。读取完整消息请使用详情的事件分页。
|
|
158
|
+
|
|
159
|
+
`GET /admin/api/conversation-audits/feed?source=all&limit=50&offset=0` 返回管理后台的跨渠道会话列表(`bailing.admin-conversation-feed.v1`)。可按客户端 `client`、网页助手 `web`、企微会话 `wecom`、渠道送达 `delivery` 或其他接入方 `other` 筛选,结果按最近活动时间排序。可用返回的 `next_cursor` 作为下页的 `cursor`,保持来源筛选一致。`kind=audit` 的详情使用归档 ID,`kind=thread` 的详情使用 `/admin/api/threads/:id`。
|
|
160
|
+
|
|
161
|
+
客户端归档归入 `client`。线程按首条独立入站消息判断来源,已按 run ID 和 thread ID 关联归档的入站消息跳过。全部入站消息均已归档的线程可从归档或原授权记录查阅。没有入站消息且存在实际渠道送达记录的线程归入 `delivery`。渠道送达可能来自任务结果推送、助手发送工具或成功的 `/send` 请求。列表来源本身无法确定具体触发器。
|
|
157
162
|
|
|
158
163
|
`GET /admin/api/conversation-audits/:id?after_sequence=0&limit=100` 返回 schema
|
|
159
164
|
`bailing.agent-conversation-audit-detail.v1`、`conversation`、`members`、`events`、has_more、next_after_sequence。
|
|
@@ -162,7 +167,9 @@ state、member_count、confirmed_count、last_sequence、message_count、turn_co
|
|
|
162
167
|
client_name 是显示快照,不能作身份依据。旧 v1 响应可缺少这些字段,旧数据库 NULL 也不是成员系统的证明;
|
|
163
168
|
界面如回退会话头,必须标注“旧记录:仅有归档头部信息”,不能冒充逐成员绑定证据。
|
|
164
169
|
事件包含提交的可见字段、服务端 created_at,run_link 还有数值 thread_id。
|
|
165
|
-
按 next_after_sequence
|
|
170
|
+
按 `next_after_sequence` 继续读后页。要先看最近记录,在归档或线程详情上使用 `?tail=1`。向前翻页时,归档用返回的 `next_before_sequence` 请求 `before_sequence`,线程用返回的 `next_before_id` 请求 `before_id`。每页按时间线正序返回,`has_earlier` 表示还有更早记录。`tail=1`、向前游标、向后游标每次只选一种。
|
|
171
|
+
|
|
172
|
+
线程详情的 `thread.delivery_only` 表示没有入站消息且存在可核实的送达记录。`messages[].is_channel_delivery` 标明具体哪一条消息是渠道送达。例如,企微用户先收到一条推送再回复,线程来源为 `wecom`,只有推送消息带有值为 `true` 的标记。普通中枢回复和仅有通知状态的任务均不足以证明渠道已送达。
|
|
166
173
|
|
|
167
174
|
旧管理员 agent-run trace 的 run、通过归属复核的工具 job trace 的 job,可选增加
|
|
168
175
|
conversation_audit_id 和 client_turn_id,用于返回完整对话。
|
package/docs/CHANGELOG.en.md
CHANGED
|
@@ -12,7 +12,7 @@ For the current integration contract, use:
|
|
|
12
12
|
|
|
13
13
|
## Recording Rules
|
|
14
14
|
|
|
15
|
-
Lead each release with a familiar business-assistant or enterprise-service scenario: the previous problem, changed behavior, affected users and developers, upgrade steps, observable checks and limits. Keep English and Chinese facts aligned and distinguish additions, fixes and existing features. See [the release scenario notes](RELEASE_NOTES_v0.
|
|
15
|
+
Lead each release with a familiar business-assistant or enterprise-service scenario: the previous problem, changed behavior, affected users and developers, upgrade steps, observable checks and limits. Keep English and Chinese facts aligned and distinguish additions, fixes and existing features. See [the release scenario notes](RELEASE_NOTES_v0.11.1.en.md).
|
|
16
16
|
|
|
17
17
|
Each public version should describe:
|
|
18
18
|
|
|
@@ -22,6 +22,34 @@ Each public version should describe:
|
|
|
22
22
|
- validation commands;
|
|
23
23
|
- related docs.
|
|
24
24
|
|
|
25
|
+
## v0.11.1 - Task tracing, model context windows and verified image mirrors
|
|
26
|
+
|
|
27
|
+
2026-11-23
|
|
28
|
+
|
|
29
|
+
- From 0.10.1, inspect conversations by source and role, follow their authorizations and task traces, and filter dispatches by status, date and route.
|
|
30
|
+
- Model services can record the combined input/output window for a verified provider route. Clients can read it from the model catalog and inspect a structured receipt for recognized context-limit rejections.
|
|
31
|
+
- GHCR keeps the build index and provenance. ACR receives the verified runnable manifest for each application. This completes the distribution change following the 0.11.0 source tag. No SQL migration was added since 0.10.1. [Release notes](RELEASE_NOTES_v0.11.1.en.md) · [Upgrade guide](UPGRADE_v0.11.1.en.md)
|
|
32
|
+
|
|
33
|
+
## v0.11.0 - Cross-channel task tracing and model context windows
|
|
34
|
+
|
|
35
|
+
2026-11-23
|
|
36
|
+
|
|
37
|
+
- Operators can filter recent conversations by source, read messages by role and inspect the original authorization or associated task. Dispatch filters run on the server, and opening a trace preserves the results list.
|
|
38
|
+
- Known task statuses have consistent labels. Keyboard focus exposes the raw value, and unknown statuses remain readable. Configuration and task forms place optional guidance alongside the relevant field.
|
|
39
|
+
- Selecting a credential and invocation model can prefill its verified combined token window. The saved service limit is available in the account's model catalog. Final model receipts can carry a structured diagnostic for a confirmed TokenHub context-length rejection.
|
|
40
|
+
- Upgrade from Core 0.10.1 without a new SQL migration. Check an existing trace, model registration and catalog entry after upgrading. [Release notes](RELEASE_NOTES_v0.11.0.en.md) · [Upgrade guide](UPGRADE_v0.11.0.en.md)
|
|
41
|
+
|
|
42
|
+
## v0.10.1 - Explicit business declarations and Core precedence
|
|
43
|
+
|
|
44
|
+
Version date: 2026-11-05. A patch relative to Core 0.10.0; ACC 1.0.6 / declaration version: 1 remain unchanged. MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 have no separate upgrade in this release. [Release notes](RELEASE_NOTES_v0.10.1.en.md), [upgrade guide](UPGRADE_v0.10.1.en.md).
|
|
45
|
+
|
|
46
|
+
- Seven business-side generators—PHP7/PHP8, Node.js, Python, Go, Java and .NET—preserve explicit readonly/idempotent true/false and low/medium/high risk. Unspecified fields stay omitted; writes are not assigned low globally.
|
|
47
|
+
- Core preserves boolean false and gives explicit readonly/idempotency precedence over GET defaults. Explicit risk wins; otherwise risk derives from the resolved readonly value. GET readonly=false with risk omitted becomes medium; unspecified non-readonly POST remains medium.
|
|
48
|
+
- Update both PHP tgz packages and add complete file-set, per-file SHA-256 and source/extracted-generator verification. Add 24 readonly/risk cases plus independent idempotency checks per generator, PHP approval/subject preservation and matching Core consumption checks.
|
|
49
|
+
- Review full declaration diffs during upgrades. Explicit low writes may change from previously incorrect medium to low, and GET false changes effective interpretation. PHP8 risk is nullable; see the upgrade guide for other intermediate defaults. Verify source, packages, Core and downstream acceptance separately.
|
|
50
|
+
- Apply bounded development/build patches to fast-uri 3.1.9 and Vite 6.4.5 for release audit gates, without inferring a production vulnerability or observed exploit.
|
|
51
|
+
- No new SQL from 0.10.0. Authentication, approval, final business authority, metering and original-request recovery rules are unchanged. Do not rewrite historical invocations, automatically replay business or automatically deploy downstreams. Rollback must consider the old generator/consumer misinterpretation together.
|
|
52
|
+
|
|
25
53
|
## v0.10.0 - On-demand Agent knowledge and clearer configuration
|
|
26
54
|
|
|
27
55
|
Release date: 2026-10-22. A compatible feature release relative to public Core 0.9.4. MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 upgrade independently. [Release notes](RELEASE_NOTES_v0.10.0.en.md), [upgrade guide](UPGRADE_v0.10.0.en.md).
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
## 记录规则
|
|
7
7
|
|
|
8
|
-
每次先用业务助手、企业服务等通用场景说明原问题与本版行为,再按使用者、业务后端与客户端开发者交代升级影响。中英文使用同一事实,新增能力、修复和已有能力分别标明;参考[本版场景说明](RELEASE_NOTES_v0.
|
|
8
|
+
每次先用业务助手、企业服务等通用场景说明原问题与本版行为,再按使用者、业务后端与客户端开发者交代升级影响。中英文使用同一事实,新增能力、修复和已有能力分别标明;参考[本版场景说明](RELEASE_NOTES_v0.11.1.md)。
|
|
9
9
|
|
|
10
10
|
每个公开版本至少说明:
|
|
11
11
|
|
|
@@ -15,6 +15,34 @@
|
|
|
15
15
|
- **验证方式**:部署方如何确认该版本运行正常;
|
|
16
16
|
- **相关文档**:对应的契约、指南或示例。
|
|
17
17
|
|
|
18
|
+
## v0.11.1 - 任务追溯、模型上下文窗口与镜像分发校验
|
|
19
|
+
|
|
20
|
+
2026-11-23
|
|
21
|
+
|
|
22
|
+
- 从 0.10.1 升级后,可按来源和角色阅读会话、查看原授权和关联任务,并按状态、时间、路由筛选调度记录。
|
|
23
|
+
- 模型服务可登记已核实调用路由的输入输出合计窗口。客户端可从已有模型目录读取窗口,并在已识别的超限拒绝回执中读取结构化诊断。
|
|
24
|
+
- GHCR 保留完整构建索引与证明,ACR 分别校验两个应用的运行镜像清单。本版接续 0.11.0 源码标签并完善镜像分发。自 0.10.1 起无需新增 SQL 迁移。[版本说明](RELEASE_NOTES_v0.11.1.md) · [升级指南](UPGRADE_v0.11.1.md)
|
|
25
|
+
|
|
26
|
+
## v0.11.0 - 多渠道任务追溯与模型上下文管理
|
|
27
|
+
|
|
28
|
+
2026-11-23
|
|
29
|
+
|
|
30
|
+
- 按来源筛选最近会话,按角色阅读消息并核对原授权或关联任务。调度流支持服务端筛选,查看一条追溯后可返回原匹配列表。
|
|
31
|
+
- 已知任务状态统一显示中文,键盘聚焦可查看原始值,未知状态按原值显示。配置与创建任务表单将可选说明放入字段旁的帮助图标。
|
|
32
|
+
- 选择模型凭证和实际调用模型后,可预填已核实的输入与输出合计窗口。注册值通过账号模型目录提供给宿主。对于已确认的 TokenHub 输入超限,完整模型回执可返回结构化诊断。
|
|
33
|
+
- 从 Core 0.10.1 升级无需新增 SQL 迁移。升级后可核对一条已有任务的追溯记录、模型服务配置及账号目录字段。[版本说明](RELEASE_NOTES_v0.11.0.md) · [升级指南](UPGRADE_v0.11.0.md)
|
|
34
|
+
|
|
35
|
+
## v0.10.1 - 业务声明显式值与 Core 消费优先级修复
|
|
36
|
+
|
|
37
|
+
版本日期:2026-11-05。相对 Core 0.10.0 的补丁;ACC 1.0.6 / 声明 version: 1 不变,MCP / Agent Client SDK 0.8.0 与 DSH 0.8.0 本轮不另行升级。[版本说明](RELEASE_NOTES_v0.10.1.md)、[升级指南](UPGRADE_v0.10.1.md)。
|
|
38
|
+
|
|
39
|
+
- PHP7/PHP8、Node.js、Python、Go、Java、.NET 七种业务侧生成器保留显式 readonly/idempotent true/false 及 risk low/medium/high;未设置保持省略,不为全部写接口补 low。
|
|
40
|
+
- Core 保留 boolean false,显式只读性和幂等提示优先于 GET 缺省信号;显式 risk 优先,否则按解析后的只读性推导风险。GET readonly=false 且 risk 未设为 medium;未设置的非只读 POST 仍为 medium。
|
|
41
|
+
- 两种 PHP tgz 配套更新并增加文件集合、逐文件 SHA-256、源码/解包实际生成器检查。新增各生成器24组合风险/只读回归与独立幂等回归,PHP另核审批/主体保留,Core核同一声明消费。
|
|
42
|
+
- 升级应审阅全量声明差异,显式 low 的写操作可能从此前错误的 medium 恢复为 low;GET false 也会改变有效解释。PHP8 risk 属性为 nullable,其他中间对象缺省表示见升级指南。源码、实际包、Core 和接入方验收分别核对。
|
|
43
|
+
- 限定开发/构建依赖 fast-uri 3.1.9、Vite 6.4.5 通过发行审计门禁;不据此宣称发生生产漏洞或实际利用。
|
|
44
|
+
- 相对 0.10.0 无新增 SQL,认证、审批、业务最终授权、计量及原请求恢复规则不变。不改写历史 invocation、自动重放业务或自动部署下游;回退需同时核对旧生成器及消费者的错误解释风险。
|
|
45
|
+
|
|
18
46
|
## v0.10.0 - 智能体知识按需读取与配置体验改进
|
|
19
47
|
|
|
20
48
|
版本日期:2026-10-22。相对公开 Core 0.9.4 的兼容功能版;配套 MCP / Agent Client SDK 0.8.0、DSH 0.8.0 独立升级。[版本说明](RELEASE_NOTES_v0.10.0.md)、[升级指南](UPGRADE_v0.10.0.md)。
|
|
@@ -6,10 +6,10 @@ This index separates **ownership, release availability, public evidence, and lim
|
|
|
6
6
|
|
|
7
7
|
## Version and evidence conventions
|
|
8
8
|
|
|
9
|
-
- Formal release baseline: [v0.
|
|
9
|
+
- Formal release baseline: [v0.11.1](https://github.com/bailinghub/bailinghub/releases/tag/v0.11.1), with the [v0.11.1 source Tag](https://github.com/bailinghub/bailinghub/tree/v0.11.1). The table's mechanisms are included in this release; versioned fixes retain their first-release identities. This does not mean that every optional feature is enabled by a default installation.
|
|
10
10
|
- Historical baseline: [v0.9.0](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.0), commit [`dae5260ede6565080d21e94ae63d52f3a7d23556`](https://github.com/bailinghub/bailinghub/tree/dae5260ede6565080d21e94ae63d52f3a7d23556). Its asynchronous shutdown gap remains documented below. Verify source, npm, images, and deployments separately; updated documentation does not fix old artifacts.
|
|
11
11
|
- Test links identify **public test source and the conditions it checks**, not passing runs newly produced by this page. Unit tests, simulated provider responses, MySQL integration tests, and the complete demo have different scopes. Skipped or unexecuted tests are not passing evidence, and do not make an existing mechanism a planned feature.
|
|
12
|
-
- Use the [v0.
|
|
12
|
+
- Use the [v0.11.1 release notes](RELEASE_NOTES_v0.11.1.en.md) and [upgrade guide](UPGRADE_v0.11.1.en.md) for release contents and prerequisites. Compatible clients, application migrations, provider credentials, storage, and business authorization still require their own configuration and acceptance.
|
|
13
13
|
|
|
14
14
|
## Ownership and release availability
|
|
15
15
|
|
|
@@ -17,6 +17,7 @@ Core defaults to one organization's management and audit domain. Clients, routes
|
|
|
17
17
|
|
|
18
18
|
| Capability and owner | Release availability | Public implementation and evidence | Scope and limitations |
|
|
19
19
|
|---|---|---|---|
|
|
20
|
+
| Explicit declaration values: business SDKs serialize; Core resolves precedence | Corrected in Core v0.10.1 | [Generator/Core upgrade](UPGRADE_v0.10.1.en.md); [Core matrix](../src/core/contracts/explicit-capability-values.test.ts); [PHP7 generator matrix](../sdk/php7/tests/declaration-serialization.php) / [PHP8 generator matrix](../sdk/php/tests/declaration-serialization.php); [actual archive verifier](../scripts/check-php-sdk-artifacts.mjs) | Explicit false and low are retained; omitted values retain their defaults. Review changed effective risk and refresh declarations. Source tests do not prove a downstream package or deployment was updated. |
|
|
20
21
|
| Declarations, tool discovery, and governed calls: Core parses/governs; the business system executes | Included in Core v0.10.0 | [Tool model](TOOLS_MODEL.en.md); [tool-index source](../src/services/tools-index.ts) / [tests](../src/services/tools-index.test.ts); [execution governance tests](../src/core/runtime/execution-runtime.test.ts) | Discoverability is not permission to call. The receiving API must verify the signature and recheck the subject, tenant, permissions, and business state. A declaration cannot create authority the caller did not have. |
|
|
21
22
|
| Agent Auth: Core binds client sessions; the business authorization page supplies trusted identity | Included in Core v0.10.0 | [Agent Auth contract](AGENT_AUTH_API.en.md); [route source](../src/routes/agent-auth.ts); [lifecycle HTTP tests](../src/routes/agent-auth-lifecycle-http.test.ts) / [race tests](../src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts) | PKCE, authorization binding, refresh, and revocation are implemented. They do not replace business login, role management, or final authorization, or let the model choose a trusted principal through text. |
|
|
22
23
|
| Agent Client Runtime: Core exposes workspaces, turns, discovery, and tool invocation | Included in Core v0.10.0 | [Runtime API](AGENT_CLIENT_RUNTIME_API.en.md); [runtime source](../src/app/agent-client-runtime.ts) / [tests](../src/app/agent-client-runtime.test.ts); [invocation tests](../src/app/agent-tool-invocations.test.ts) | The local Agent host owns model selection, its reasoning loop, and tool orchestration. Core's existing `/run` pipeline is a separate public integration path; the two must not be presented as one client execution mode. |
|
|
@@ -40,7 +41,7 @@ Simulated provider responses establish adapter/protocol behavior for the specifi
|
|
|
40
41
|
|
|
41
42
|
### Public demo and independent reproduction task
|
|
42
43
|
|
|
43
|
-
The [Docker demo](DEMO.en.md) and [independent validation task](INDEPENDENT_VALIDATION.en.md) provide a public path from installing v0.
|
|
44
|
+
The [Docker demo](DEMO.en.md) and [independent validation task](INDEPENDENT_VALIDATION.en.md) provide a public path from installing v0.11.1 through smoke checks and `npm run demo:e2e`. Orders, tickets, refunds, and failure tools use repository demo data. Real model keys, customer APIs, and production credentials are unnecessary.
|
|
44
45
|
|
|
45
46
|
The task requires concrete results for service startup, console access, anonymous-preview boundaries, smoke checks, and the complete business loop. The README's images and animation show that same public fixture, not customer adoption. Publishing a task card does not establish that an external developer completed it. Reports should retain the actual version, environment, checks, and failure scope.
|
|
46
47
|
|
|
@@ -91,3 +92,11 @@ Core v0.9.4 adds [DOCX dependency remediation](DOCX_DEPENDENCY.en.md) and [durab
|
|
|
91
92
|
## Core v0.10.0 compatible additions and fixes
|
|
92
93
|
|
|
93
94
|
This release adds [Agent on-demand knowledge](AGENT_KNOWLEDGE_API.en.md), [named tool guidance](AGENT_CLIENT_RUNTIME_API.en.md) and [explicit model budgets](MODEL_OUTPUT_BUDGET.en.md), with console onboarding, draft protection and diagnostics improvements. Old clients retain inline delivery, old model configuration is not changed automatically and bundled chat context stays intact. Larger arguments remain bounded with full approvals and original-call deduplication. [Host continuation](MODEL_CONTINUATION.en.md) is a client responsibility, not a new Hub model loop. The [upgrade guide](UPGRADE_v0.10.0.en.md) covers read-only planning and actual-resource readiness; there is no new SQL from 0.9.4.
|
|
95
|
+
|
|
96
|
+
## Core v0.10.1 explicit-value correction and package evidence
|
|
97
|
+
|
|
98
|
+
Seven business-side SDK generators preserve explicit readonly/idempotent true/false and low/medium/high risk; unspecified fields remain omitted. Core preserves boolean false and applies explicit values before the GET fallback. See the [release notes](RELEASE_NOTES_v0.10.1.en.md) and [upgrade guide](UPGRADE_v0.10.1.en.md). ACC remains at 1.0.6 with declaration version: 1; MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 do not receive a separate release for this patch.
|
|
99
|
+
|
|
100
|
+
The [PHP7](../sdk/php7/tests/declaration-serialization.php) and [PHP8](../sdk/php/tests/declaration-serialization.php) drivers run the actual builders and JSON serialization across 24 readonly/risk combinations, six idempotency combinations and preserved approval/subject requirements. The [Core regression](../src/core/contracts/explicit-capability-values.test.ts) checks consumer precedence; [PHP package verification](../scripts/check-php-sdk-artifacts.mjs) compares complete file sets, per-file hashes and actual regressions against extracted packages. These links identify reproducible checks, not a claim that every runtime, production deployment or downstream business has passed them.
|
|
101
|
+
|
|
102
|
+
The correction changes the interpretation of declarations previously discarded or overridden: explicit low writes may move from medium to low, GET readonly=false defaults to medium when risk is omitted, and GET idempotent=false is retained. Business owners review their declarations, including custom readers of intermediate SDK objects such as nullable PHP8 risk. Updating only one side does not repair the other side. Preserve original invocation and approval records; do not replay business for acceptance. The patch adds no SQL or new authority. Old version guarantees remain unchanged.
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
## 版本与阅读口径
|
|
8
8
|
|
|
9
|
-
- 正式发行基线:[v0.
|
|
9
|
+
- 正式发行基线:[v0.11.1](https://github.com/bailinghub/bailinghub/releases/tag/v0.11.1),对应 [v0.11.1 源码 Tag](https://github.com/bailinghub/bailinghub/tree/v0.11.1)。下表机制均包含在该版本中,各次修复仍标注首次发行版本;不代表默认安装后已启用所有可选功能。
|
|
10
10
|
- 历史基线:[v0.9.0](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.0),对应提交 [`dae5260ede6565080d21e94ae63d52f3a7d23556`](https://github.com/bailinghub/bailinghub/tree/dae5260ede6565080d21e94ae63d52f3a7d23556)。原 Tag 的异步关闭缺口在后文保留;源码、npm、镜像和具体部署应分别核验,不能从新版文档推导旧制品已修复。
|
|
11
11
|
- 表中的测试链接是**公开测试代码及其检查范围**,不是本页重新执行所得的通过记录。单元测试、模拟供应商响应、MySQL 集成测试和完整 demo 验证分别说明各自覆盖的条件。未执行或跳过的测试不能写成已通过,也不能据此把已有机制写成“计划实现”。
|
|
12
|
-
- 版本发行内容与升级前提以 [v0.
|
|
12
|
+
- 版本发行内容与升级前提以 [v0.11.1 说明](RELEASE_NOTES_v0.11.1.md) 和 [升级指南](UPGRADE_v0.11.1.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
|
|
13
13
|
|
|
14
14
|
## 能力归属与发行状态
|
|
15
15
|
|
|
@@ -17,6 +17,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
|
|
|
17
17
|
|
|
18
18
|
| 能力与责任方 | 发行状态 | 公开实现与证据入口 | 范围与限制 |
|
|
19
19
|
|---|---|---|---|
|
|
20
|
+
| 声明显式值:业务 SDK 序列化,Core 解析优先级 | Core v0.10.1 修复 | [生成器/消费者升级](UPGRADE_v0.10.1.md);[Core 矩阵](../src/core/contracts/explicit-capability-values.test.ts);[PHP7 生成矩阵](../sdk/php7/tests/declaration-serialization.php) / [PHP8 生成矩阵](../sdk/php/tests/declaration-serialization.php);[实际归档校验](../scripts/check-php-sdk-artifacts.mjs) | 显式 false 与 low 保留,未设置字段遵循原缺省。需核对有效风险变化并刷新声明;源码测试不证明下游包或部署已经更新。 |
|
|
20
21
|
| 能力声明、工具发现、受控调用:Core 解析和治理,业务系统执行 | Core v0.10.0 已包含 | [工具模型](TOOLS_MODEL.md);[工具索引源码](../src/services/tools-index.ts) / [测试](../src/services/tools-index.test.ts);[执行治理测试](../src/core/runtime/execution-runtime.test.ts) | 工具可发现不等于当前调用获准。业务接口还需验签,并重新检查主体、租户、权限和业务状态;声明不能赋予调用方原本没有的权力。 |
|
|
21
22
|
| Agent Auth:Core 绑定客户端会话,业务授权页提供可信身份 | Core v0.10.0 已包含 | [Agent Auth 契约](AGENT_AUTH_API.md);[路由源码](../src/routes/agent-auth.ts);[生命周期 HTTP 测试](../src/routes/agent-auth-lifecycle-http.test.ts) / [竞态测试](../src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts) | PKCE、授权绑定、刷新和撤销有公开实现;不接管业务系统的登录、角色管理或最终授权,也不允许模型从文本指定可信主体。 |
|
|
22
23
|
| Agent Client Runtime:Core 提供工作区、turn、搜索和工具调用接口 | Core v0.10.0 已包含 | [Runtime API](AGENT_CLIENT_RUNTIME_API.md);[运行面源码](../src/app/agent-client-runtime.ts) / [测试](../src/app/agent-client-runtime.test.ts);[调用测试](../src/app/agent-tool-invocations.test.ts) | 本地 Agent 的模型选择、推理循环和工具编排由客户端宿主负责。Core 的原有 `/run` 管线是另一种公开接入路径,不能把两者混为同一客户端执行模式。 |
|
|
@@ -40,7 +41,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
|
|
|
40
41
|
|
|
41
42
|
### 公开 demo 与独立复现任务卡
|
|
42
43
|
|
|
43
|
-
[Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.
|
|
44
|
+
[Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.11.1 安装、基础体检到 `npm run demo:e2e` 的公开路径。其订单、工单、退款和故障工具均为仓库 demo 数据;不需要真实模型 Key、客户接口或生产凭据。
|
|
44
45
|
|
|
45
46
|
任务卡要求记录服务、控制台、匿名预览边界、基础体检和完整业务闭环的具体结果。README 的 demo 图像与动画展示同一公开样例,不能当作客户采用证据。任务卡存在也不意味着已有外部开发者完成验证;报告结果应保留验证者实际版本、环境、检查项和失败范围。
|
|
46
47
|
|
|
@@ -91,3 +92,11 @@ Core v0.9.4 新增 [DOCX 依赖处置](DOCX_DEPENDENCY.md)与[通知持久化](N
|
|
|
91
92
|
## Core v0.10.0 的兼容新增与修复
|
|
92
93
|
|
|
93
94
|
本版新增[Agent 知识按需协议](AGENT_KNOWLEDGE_API.md)、[工具按名指导](AGENT_CLIENT_RUNTIME_API.md)和[显式模型预算](MODEL_OUTPUT_BUDGET.md),并改善后台首次接入、草稿保护与排障。旧客户端保持 inline、旧模型配置不自动改变,自带聊天装配保持。大参数仍有界、完整审批与原调用防重保留;[宿主续段](MODEL_CONTINUATION.md)由客户端实现,不是中枢新增自动模型循环。只读升级计划与真实资源 readiness 见[升级指南](UPGRADE_v0.10.0.md),相对 0.9.4 无新增 SQL。
|
|
95
|
+
|
|
96
|
+
## Core v0.10.1 的显式值修复与配套包证据
|
|
97
|
+
|
|
98
|
+
七种业务侧 SDK 生成器保留显式 readonly/idempotent true/false 和 risk low/medium/high,未设置字段继续省略;Core 保留 boolean false,显式值优先于 GET 缺省信号。见[版本说明](RELEASE_NOTES_v0.10.1.md)和[升级指南](UPGRADE_v0.10.1.md)。ACC 保持 1.0.6 / 声明 version: 1,MCP / Agent Client SDK 0.8.0 与 DSH 0.8.0 不因本补丁另行发行。
|
|
99
|
+
|
|
100
|
+
[PHP7](../sdk/php7/tests/declaration-serialization.php)与[PHP8](../sdk/php/tests/declaration-serialization.php)通过实际 builder 和 JSON 序列化检查24种风险/只读组合、6种幂等组合以及审批/主体要求保留;[Core 回归](../src/core/contracts/explicit-capability-values.test.ts)检查消费者优先级。[PHP 配套包校验](../scripts/check-php-sdk-artifacts.mjs)比较完整文件集合、逐文件摘要,并对真实解包内容运行同一回归。这些链接提供可复现检查,不代表每个运行环境、生产部署或下游业务已经通过验收。
|
|
101
|
+
|
|
102
|
+
修复会改变此前被丢弃或覆盖的声明解释:显式 low 的写操作可能从 medium 恢复为 low,GET readonly=false 且 risk 未设置为 medium,GET idempotent=false 得以保留。业务负责人应审阅自己的声明,并核对直接读取 SDK 中间对象的代码,例如 PHP8 nullable risk。只更新一侧无法修复另一侧;保留原调用和审批记录,不为验收重放业务。本补丁不新增 SQL 或业务权力,不回写旧版本保证。
|
|
@@ -9,7 +9,7 @@ After the demo, use the [business integration walkthrough (Chinese)](INTEGRATION
|
|
|
9
9
|
## Scope
|
|
10
10
|
|
|
11
11
|
- Target: the open-source BailingHub Docker demo;
|
|
12
|
-
- Stable baseline: `v0.
|
|
12
|
+
- Stable baseline: `v0.11.1`;
|
|
13
13
|
- Data: the bundled demo orders, tickets, refunds, and failure probe;
|
|
14
14
|
- Expected time: about 20 minutes after images and dependencies are available;
|
|
15
15
|
- Not required: a real model key, production API, production credential, or real business data.
|
|
@@ -34,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
|
|
|
34
34
|
cd "$HOME/bailinghub"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
The installer pulls the official `v0.
|
|
37
|
+
The installer pulls the official `v0.11.1` images by default, generates random tokens and an admin password, starts the services, and runs the smoke test. The initial administrator is created only when the administrator table is empty; restarting, upgrading, recreating containers, or reinstalling against the same persistent database does not overwrite a changed password. The optional `/metrics` endpoint remains disabled and does not affect core validation. Keep the reported version, install mode, elapsed time, and the commands printed under `常用命令`, but never include passwords or tokens in your report. After Docker is installed, the current non-root login usually still needs the printed `sudo docker compose ...` commands; Docker group membership may not take effect until the next login.
|
|
38
38
|
|
|
39
39
|
If the default directory is already in use, choose a new empty directory instead of overwriting an existing deployment:
|
|
40
40
|
|
|
@@ -48,7 +48,7 @@ cd "$HOME/bailinghub-validation"
|
|
|
48
48
|
### Path B: local source reproduction
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
git clone --depth 1 --branch v0.
|
|
51
|
+
git clone --depth 1 --branch v0.11.1 https://github.com/bailinghub/bailinghub.git
|
|
52
52
|
cd bailinghub
|
|
53
53
|
git rev-parse HEAD
|
|
54
54
|
export BAILING_TOKEN="$(openssl rand -hex 32)"
|
|
@@ -169,7 +169,7 @@ After the core task passes, you may continue with:
|
|
|
169
169
|
- [Trusted rich rendering and chat reliability](RELEASE_NOTES_v0.1.15.en.md).
|
|
170
170
|
- [Bounded tool runtime and resilient semantic retrieval](RELEASE_NOTES_v0.1.16.en.md).
|
|
171
171
|
- [Composable Core and Kernel Host API v1](RELEASE_NOTES_v0.3.0.en.md).
|
|
172
|
-
- [Current stable release notes](RELEASE_NOTES_v0.
|
|
172
|
+
- [Current stable release notes](RELEASE_NOTES_v0.11.1.en.md).
|
|
173
173
|
|
|
174
174
|
Select the relevant track in the same Issue form and disclose whether you received direct maintainer assistance.
|
|
175
175
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
## 验证范围
|
|
10
10
|
|
|
11
11
|
- 验证对象:BailingHub 开源版 Docker demo;
|
|
12
|
-
- 稳定基线:`v0.
|
|
12
|
+
- 稳定基线:`v0.11.1`;
|
|
13
13
|
- 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
|
|
14
14
|
- 预计用时:镜像和依赖下载完成后约 20 分钟;
|
|
15
15
|
- 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
|
|
@@ -34,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
|
|
|
34
34
|
cd "$HOME/bailinghub"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
脚本默认拉取 `v0.
|
|
37
|
+
脚本默认拉取 `v0.11.1` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
|
|
38
38
|
|
|
39
39
|
如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
|
|
40
40
|
|
|
@@ -48,7 +48,7 @@ cd "$HOME/bailinghub-validation"
|
|
|
48
48
|
### 路径 B:本地源码复现
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
git clone --depth 1 --branch v0.
|
|
51
|
+
git clone --depth 1 --branch v0.11.1 https://github.com/bailinghub/bailinghub.git
|
|
52
52
|
cd bailinghub
|
|
53
53
|
git rev-parse HEAD
|
|
54
54
|
export BAILING_TOKEN="$(openssl rand -hex 32)"
|
|
@@ -169,7 +169,7 @@ docker compose exec -T bailinghub npm run demo:e2e
|
|
|
169
169
|
- [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
|
|
170
170
|
- [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
|
|
171
171
|
- [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
|
|
172
|
-
- [当前稳定版发布说明](RELEASE_NOTES_v0.
|
|
172
|
+
- [当前稳定版发布说明](RELEASE_NOTES_v0.11.1.md)。
|
|
173
173
|
|
|
174
174
|
扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
|
|
175
175
|
|
|
@@ -26,6 +26,14 @@ Both original lookup and a repeated identical POST are protected by existing ide
|
|
|
26
26
|
|
|
27
27
|
## Host checkpoints
|
|
28
28
|
|
|
29
|
+
### Compacting input in the same conversation
|
|
30
|
+
|
|
31
|
+
Read the selected service's `context_window_tokens` from `GET /usage/v1/model/models`. This is the combined input and output window. Budget for the requested output and estimation error, including system instructions, messages, tool definitions and tool results in the input estimate. Near the limit, compact older completed work and estimate the resulting request again. Retain the goal, unfinished steps, approvals, completed action and receipt references, and valid tool-call/result pairs. Keep the full transcript and checkpoint in local storage. When the directory returns `null`, retain the host's conservative fallback.
|
|
32
|
+
|
|
33
|
+
A completed model receipt can carry `response.diagnostic.code=CONTEXT_WINDOW_EXCEEDED` for a confirmed oversized input. Recognized TokenHub rejections carry `http_status=400` and `provider_code="400003"`. The optional `context_window_tokens` comes from the original operation's service configuration snapshot. Historical responses and other errors may have no diagnostic. The JSON operation, final SSE `operation` frame and read-only original lookup all use the same field. After confirming the original outcome, the host can checkpoint compaction and send the shortened request under a new `operation_id` in the same conversation. Inspect the original operation if its final receipt is missing. HTTP 400 alone, transport timeouts and free-form text provide insufficient evidence for this path. Stop automatic attempts and retain the conversation if compaction produces no reduction.
|
|
34
|
+
|
|
35
|
+
### Starting the next segment
|
|
36
|
+
|
|
29
37
|
Before another segment, persist the task, original operation, selected service/descriptor revision, normalized finish reason, delivered partial content, tool results and completed/remaining steps. The next segment uses a new operation, with a parent link in host-local storage; this protocol adds no parent-operation field.
|
|
30
38
|
|
|
31
39
|
Carry saved valid content and tool results forward and continue unfinished work. Do not present the original user request as a brand-new unexecuted task or resend its model call. Native tool-call/result formatting and association IDs must remain valid. The host can merge display fragments or repeated prefixes without changing raw response or tool-result evidence.
|
|
@@ -26,6 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
## 宿主续段检查点
|
|
28
28
|
|
|
29
|
+
### 在原会话内压缩输入
|
|
30
|
+
|
|
31
|
+
宿主可通过 `GET /usage/v1/model/models` 按所选 `service_id` 读取 `context_window_tokens`。这是输入与输出合计窗口。构造下一次请求前,为本次实际输出预算和估算误差留足空间,计入系统指令、消息、工具定义与工具结果。接近窗口时先压缩较早的已完成内容,再估算压缩后的请求。摘要保留当前目标、进行中的步骤、审批、已执行操作及原回执引用,并维持工具调用与结果的配对。完整会话和检查点由宿主持久保留。若目录返回 `null`,沿用宿主已有的保守预算。
|
|
32
|
+
|
|
33
|
+
供应商明确拒绝超长输入时,完整模型回执的 `response.diagnostic.code` 可为 `CONTEXT_WINDOW_EXCEEDED`。已识别的 TokenHub 拒绝会携带 `http_status=400` 和 `provider_code="400003"`。可选 `context_window_tokens` 只取自原操作的服务配置快照。历史响应及其他错误可能没有诊断字段。普通 JSON 响应、SSE 的最终 `operation` 帧和只读原单查询使用相同路径。宿主应先确认原单终态,再在同一会话内保存压缩检查点、用新 `operation_id` 发送内容已缩短的请求。缺最终回执时只读查询原单;仅凭 HTTP 400、网络超时或错误文案不能触发此路径。若压缩没有使请求变小,停止自动尝试并保留会话。
|
|
34
|
+
|
|
35
|
+
### 记录下一段的起点
|
|
36
|
+
|
|
29
37
|
在发起下一段之前,宿主应持久保存任务、原 operation、选定服务与描述修订、规范化结束原因、已输出片段、工具调用结果以及已完成和未完成步骤。新续段使用新 operation,以明确的父子关联保存在宿主本地;本轮协议不增加父 operation 字段。
|
|
30
38
|
|
|
31
39
|
续段上下文携带已经保存的有效内容与工具结果,要求从未完成步骤接续。不要把原始用户请求重新当作尚未执行的新任务,也不要重发先前模型请求。模型本轮的原生工具调用和工具结果必须保持供应商消息格式及关联标识。针对可见回答的分段展示和重复前缀,可在宿主呈现层合并;不能篡改原响应、摘要或工具结果证据。
|
|
@@ -8,6 +8,7 @@ AIaaS model services separate the default budget for a new request from its perm
|
|
|
8
8
|
|
|
9
9
|
| Configuration | Model descriptor | Meaning |
|
|
10
10
|
| --- | --- | --- |
|
|
11
|
+
| `contextWindowTokens` | `context_window_tokens` | Combined input and output window for this provider route, in tokens. The directory returns `null` when unconfigured. |
|
|
11
12
|
| `maxOutputTokens` | `max_output_tokens` | Operator service ceiling, a positive integer currently bounded to 1–131072; not a vendor capability claim |
|
|
12
13
|
| `defaultOutputTokens` | `default_output_tokens` | Default when a new request omits its output parameter; positive and no larger than the ceiling |
|
|
13
14
|
| `outputTokenParameter` | `output_token_parameter` | Actual configured route parameter, `max_tokens` or `max_completion_tokens` |
|
|
@@ -8,6 +8,7 @@ AIaaS 模型服务将“新请求默认使用多少 token”和“服务最多
|
|
|
8
8
|
|
|
9
9
|
| 后台配置 | 模型目录 | 含义 |
|
|
10
10
|
| --- | --- | --- |
|
|
11
|
+
| `contextWindowTokens` | `context_window_tokens` | 当前供应商路由的输入与输出合计窗口,单位为 token。未登记时目录返回 `null` |
|
|
11
12
|
| `maxOutputTokens` | `max_output_tokens` | 运营设置的服务请求上限,正整数,平台当前允许 1–131072;不是供应商模型能力声明 |
|
|
12
13
|
| `defaultOutputTokens` | `default_output_tokens` | 新请求未指定输出预算时使用的默认值,正整数且不超过服务上限 |
|
|
13
14
|
| `outputTokenParameter` | `output_token_parameter` | 当前供应商路由实际采用的参数:`max_tokens` 或 `max_completion_tokens` |
|
package/docs/README.en.md
CHANGED
|
@@ -6,6 +6,12 @@ This directory contains public documentation for the open-source BailingHub proj
|
|
|
6
6
|
|
|
7
7
|
| Document | Purpose |
|
|
8
8
|
|---|---|
|
|
9
|
+
| [Release notes](RELEASE_NOTES_v0.11.1.en.md) · [Chinese](RELEASE_NOTES_v0.11.1.md) | Task tracing, model context windows and verifiable image mirrors. |
|
|
10
|
+
| [Upgrade guide](UPGRADE_v0.11.1.en.md) · [Chinese](UPGRADE_v0.11.1.md) | Upgrade from 0.10.1 and verify the running image and existing records. |
|
|
11
|
+
| [v0.11.0 source notes](RELEASE_NOTES_v0.11.0.en.md) · [Chinese](RELEASE_NOTES_v0.11.0.md) | v0.11.0 task tracing, model context windows and structured rejection receipts. |
|
|
12
|
+
| [v0.11.0 source guide](UPGRADE_v0.11.0.en.md) · [Chinese](UPGRADE_v0.11.0.md) | Upgrade from 0.10.1 and check existing conversations and model service registrations. |
|
|
13
|
+
| [RELEASE_NOTES_v0.10.1.en.md](RELEASE_NOTES_v0.10.1.en.md) · [Chinese](RELEASE_NOTES_v0.10.1.md) | v0.10.1: explicit declaration values, Core precedence and companion-package verification. |
|
|
14
|
+
| [UPGRADE_v0.10.1.en.md](UPGRADE_v0.10.1.en.md) · [Chinese](UPGRADE_v0.10.1.md) | No new SQL; generator/consumer pairing, full declaration diffs and rollback boundaries. |
|
|
9
15
|
| [RELEASE_NOTES_v0.10.0.en.md](RELEASE_NOTES_v0.10.0.en.md) · [Chinese](RELEASE_NOTES_v0.10.0.md) | v0.10.0: on-demand knowledge, console consistency, larger arguments and model budgets. |
|
|
10
16
|
| [UPGRADE_v0.10.0.en.md](UPGRADE_v0.10.0.en.md) · [Chinese](UPGRADE_v0.10.0.md) | No new SQL from 0.9.4; readiness, client pairing, explicit policies and rollback. |
|
|
11
17
|
| [AGENT_KNOWLEDGE_API.en.md](AGENT_KNOWLEDGE_API.en.md) · [Chinese](AGENT_KNOWLEDGE_API.md) | Agent-only knowledge hints, search, authorized references and bounded reads. |
|
package/docs/README.md
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
| 文档 | 用途 |
|
|
10
10
|
|---|---|
|
|
11
|
+
| [版本说明](RELEASE_NOTES_v0.11.1.md) · [English](RELEASE_NOTES_v0.11.1.en.md) | 多渠道任务追溯、模型上下文窗口与镜像分发校验。 |
|
|
12
|
+
| [升级指南](UPGRADE_v0.11.1.md) · [English](UPGRADE_v0.11.1.en.md) | 从 0.10.1 升级,核对运行镜像、已有任务和模型配置。 |
|
|
13
|
+
| [v0.11.0 源码说明](RELEASE_NOTES_v0.11.0.md) · [English](RELEASE_NOTES_v0.11.0.en.md) | v0.11.0 多渠道任务追溯、模型上下文窗口与超限回执。 |
|
|
14
|
+
| [v0.11.0 源码升级说明](UPGRADE_v0.11.0.md) · [English](UPGRADE_v0.11.0.en.md) | 从 0.10.1 升级并核对已有会话和模型服务配置。 |
|
|
15
|
+
| [RELEASE_NOTES_v0.10.1.md](RELEASE_NOTES_v0.10.1.md) · [English](RELEASE_NOTES_v0.10.1.en.md) | v0.10.1:声明显式值保留、Core 优先级与实际配套包校验。 |
|
|
16
|
+
| [UPGRADE_v0.10.1.md](UPGRADE_v0.10.1.md) · [English](UPGRADE_v0.10.1.en.md) | 无新增 SQL;生成器/消费者配套、全量声明差异及回退边界。 |
|
|
11
17
|
| [RELEASE_NOTES_v0.10.0.md](RELEASE_NOTES_v0.10.0.md) · [English](RELEASE_NOTES_v0.10.0.en.md) | v0.10.0:知识按需读取、后台交互、大参数与模型预算。 |
|
|
12
18
|
| [UPGRADE_v0.10.0.md](UPGRADE_v0.10.0.md) · [English](UPGRADE_v0.10.0.en.md) | 相对 0.9.4 无新 SQL;readiness、配套客户端、显式策略与回退边界。 |
|
|
13
19
|
| [AGENT_KNOWLEDGE_API.md](AGENT_KNOWLEDGE_API.md) · [English](AGENT_KNOWLEDGE_API.en.md) | 智能体专用的知识提示、搜索、受授权引用与有界分页读取。 |
|