bailinghub 0.10.1 → 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/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 +18 -1
- package/docs/CHANGELOG.md +18 -1
- package/docs/IMPLEMENTATION_STATUS.en.md +3 -3
- package/docs/IMPLEMENTATION_STATUS.md +3 -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 +4 -0
- package/docs/README.md +4 -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.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 +1 -1
- package/scripts/check-doc-links.mjs +4 -0
- package/scripts/check-image-tags.sh +1 -1
- 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 +8 -0
- package/scripts/restore-ghcr-version.sh +48 -0
- package/scripts/test-acr-platform-copy.sh +152 -0
- package/scripts/verify-github-repo.mjs +8 -0
- package/src/core/config/console-task-location.test.ts +12 -24
- 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/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/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
|
-
|
|
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.
|
|
@@ -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,23 @@ 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
|
+
|
|
25
42
|
## v0.10.1 - Explicit business declarations and Core precedence
|
|
26
43
|
|
|
27
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).
|
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,23 @@
|
|
|
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
|
+
|
|
18
35
|
## v0.10.1 - 业务声明显式值与 Core 消费优先级修复
|
|
19
36
|
|
|
20
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)。
|
|
@@ -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
|
|
|
@@ -41,7 +41,7 @@ Simulated provider responses establish adapter/protocol behavior for the specifi
|
|
|
41
41
|
|
|
42
42
|
### Public demo and independent reproduction task
|
|
43
43
|
|
|
44
|
-
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.
|
|
45
45
|
|
|
46
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.
|
|
47
47
|
|
|
@@ -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
|
|
|
@@ -41,7 +41,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
|
|
|
41
41
|
|
|
42
42
|
### 公开 demo 与独立复现任务卡
|
|
43
43
|
|
|
44
|
-
[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、客户接口或生产凭据。
|
|
45
45
|
|
|
46
46
|
任务卡要求记录服务、控制台、匿名预览边界、基础体检和完整业务闭环的具体结果。README 的 demo 图像与动画展示同一公开样例,不能当作客户采用证据。任务卡存在也不意味着已有外部开发者完成验证;报告结果应保留验证者实际版本、环境、检查项和失败范围。
|
|
47
47
|
|
|
@@ -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,10 @@ 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. |
|
|
9
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. |
|
|
10
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. |
|
|
11
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. |
|
package/docs/README.md
CHANGED
|
@@ -8,6 +8,10 @@
|
|
|
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 升级并核对已有会话和模型服务配置。 |
|
|
11
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 优先级与实际配套包校验。 |
|
|
12
16
|
| [UPGRADE_v0.10.1.md](UPGRADE_v0.10.1.md) · [English](UPGRADE_v0.10.1.en.md) | 无新增 SQL;生成器/消费者配套、全量声明差异及回退边界。 |
|
|
13
17
|
| [RELEASE_NOTES_v0.10.0.md](RELEASE_NOTES_v0.10.0.md) · [English](RELEASE_NOTES_v0.10.0.en.md) | v0.10.0:知识按需读取、后台交互、大参数与模型预算。 |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Core v0.11.0 · Cross-channel task tracing and model context windows
|
|
2
|
+
|
|
3
|
+
[简体中文](RELEASE_NOTES_v0.11.0.md)
|
|
4
|
+
|
|
5
|
+
## Trace an assistant reply back to its task
|
|
6
|
+
|
|
7
|
+
When a user reports that the assistant replied but an order still shows its old status, open **Tasks → Conversations** and find the conversation by source and recent activity. The list distinguishes clients, the web assistant, WeCom and channel deliveries. The detail view identifies user and assistant messages and opens at the latest message. Where the records exist, inspect the original authorization in the sidebar and follow the link to the execution trace. Each channel shows the content it has recorded. Some older records contain only a conversation header.
|
|
8
|
+
|
|
9
|
+
Filter dispatches by status, creation time and exact route to find older failures. When a trace search returns multiple matches, open one and return to the same list. Focus a status label with the keyboard to inspect its raw value. Unrecognized statuses display their original value. Task creation forms offer field guidance through the help icons. [Conversation audit](AGENT_CONVERSATION_AUDIT.en.md)
|
|
10
|
+
|
|
11
|
+
## Budget for the next model request
|
|
12
|
+
|
|
13
|
+
Under **Users and Usage → Model services**, select the credential and invocation model. The console looks up the **combined input and output window** for that route. When a precise provider limit is available, it fills in the value and allows a smaller service limit. Changing the credential or invocation model triggers a fresh lookup. A consistent existing registration on the same route may appear as a suggestion. If the limit is unknown, save a new service as inactive while you verify it. [Output budgets](MODEL_OUTPUT_BUDGET.en.md)
|
|
14
|
+
|
|
15
|
+
Hosts can use the existing `GET /usage/v1/model/models` endpoint to read `context_window_tokens` for the selected `service_id`. Allow for system instructions, message history, tools and the requested output within that window. A `null` window means the service has no registered limit.
|
|
16
|
+
|
|
17
|
+
For a recognized TokenHub input-length rejection, the final receipt can include `operation.response.diagnostic.code = CONTEXT_WINDOW_EXCEEDED`. If the original operation's service configuration recorded a window, the diagnostic can include that revision's limit. The host can use this information to compact the conversation and persist a checkpoint. On a generic HTTP 400, a connection loss or a missing final receipt, inspect the original operation before attempting further work. [Model continuation and recovery](MODEL_CONTINUATION.en.md)
|
|
18
|
+
|
|
19
|
+
Upgrading from v0.10.1 requires no new SQL migration. See the [upgrade guide](UPGRADE_v0.11.0.en.md) for deployment and read-only checks.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Core v0.11.0 · 多渠道任务追溯与模型上下文管理
|
|
2
|
+
|
|
3
|
+
[English](RELEASE_NOTES_v0.11.0.en.md)
|
|
4
|
+
|
|
5
|
+
## 从一句回复找到对应任务
|
|
6
|
+
|
|
7
|
+
当用户说“助手回复了,订单状态却没变”,可以从「任务 → 会话」按来源和最近活动找到对应对话。列表区分客户端、网页助手、企微和渠道送达,详情标明用户与助手的消息,打开时定位到最新消息。有原授权或执行记录的会话,可在侧栏核对授权,沿关联记录查看执行过程。各渠道展示其已保存的内容,旧记录可能只有会话头。
|
|
8
|
+
|
|
9
|
+
在「调度流」按状态、创建时间和精确路由筛选,较早的失败任务也能直接查到。追溯匹配到多条记录时,可以打开一条再返回原列表。状态标签支持键盘聚焦查看原始值,未知状态按原值显示。创建任务时,字段规则可在问号帮助中查看。[对话审计](AGENT_CONVERSATION_AUDIT.md)
|
|
10
|
+
|
|
11
|
+
## 为下一次模型请求预留空间
|
|
12
|
+
|
|
13
|
+
在「用户与用量 → 模型服务」选定调用凭证和模型后,控制台按实际调用路由查询**输入与输出合计窗口**。有确切供应商规格时自动预填,管理员可按业务需要调低;切换模型或凭证后会重新查询。若显示同一路由的既有登记值,管理员可将其作为参考。缺少可靠资料时,新服务可以先停用保存,核实后再启用。[输出预算](MODEL_OUTPUT_BUDGET.md)
|
|
14
|
+
|
|
15
|
+
宿主通过已有的 `GET /usage/v1/model/models` 查找当前 `service_id` 的 `context_window_tokens`。构造请求时,系统提示、历史消息、工具定义和本次输出预算都要计入窗口。目录返回 `null` 表示尚未登记。
|
|
16
|
+
|
|
17
|
+
对已识别的 TokenHub 输入超限拒绝,完整回执可包含 `operation.response.diagnostic.code = CONTEXT_WINDOW_EXCEEDED`。若原操作的服务配置保存了窗口,诊断也可给出该修订的上限。宿主据此决定是否压缩并保存会话检查点。收到普通 HTTP 400、网络中断或缺少最终回执时,应先查原操作,避免重复执行。[模型续跑与原单查询](MODEL_CONTINUATION.md)
|
|
18
|
+
|
|
19
|
+
从 v0.10.1 升级无需新增 SQL 迁移。部署步骤与只读验收见[升级指南](UPGRADE_v0.11.0.md)。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Core v0.11.1 · Cross-channel task tracing and model context windows
|
|
2
|
+
|
|
3
|
+
[简体中文](RELEASE_NOTES_v0.11.1.md)
|
|
4
|
+
|
|
5
|
+
This release is the upgrade target for Core 0.10.1. The 0.11.0 source tag introduced the console and model changes below. Its distribution stopped before the npm package and GitHub Release were published. Deployments using a 0.11.0 GHCR image can move directly to 0.11.1.
|
|
6
|
+
|
|
7
|
+
## Trace an assistant reply back to its task
|
|
8
|
+
|
|
9
|
+
When a user reports that the assistant replied but an order still shows its old status, open **Tasks → Conversations** and find the conversation by source and recent activity. The list distinguishes clients, the web assistant, WeCom and channel deliveries. The detail view identifies user and assistant messages and opens at the latest message. Where the records exist, inspect the original authorization in the sidebar and follow the link to the execution trace. Each channel shows the content it has recorded. Some older records contain only a conversation header.
|
|
10
|
+
|
|
11
|
+
Filter dispatches by status, creation time and exact route to find older failures. When a trace search returns multiple matches, open one and return to the same list. Focus a status label with the keyboard to inspect its raw value. Unrecognized statuses display their original value. Task creation forms offer field guidance through the help icons. [Conversation audit](AGENT_CONVERSATION_AUDIT.en.md)
|
|
12
|
+
|
|
13
|
+
## Budget for the next model request
|
|
14
|
+
|
|
15
|
+
Under **Users and Usage → Model services**, select the credential and invocation model. The console looks up the **combined input and output window** for that route. When a precise provider limit is available, it fills in the value and allows a smaller service limit. Changing the credential or invocation model triggers a fresh lookup. A consistent existing registration on the same route may appear as a suggestion. If the limit is unknown, save a new service as inactive while you verify it. [Output budgets](MODEL_OUTPUT_BUDGET.en.md)
|
|
16
|
+
|
|
17
|
+
Hosts can use the existing `GET /usage/v1/model/models` endpoint to read `context_window_tokens` for the selected `service_id`. Allow for system instructions, message history, tools and the requested output within that window. A `null` window means the service has no registered limit.
|
|
18
|
+
|
|
19
|
+
For a recognized TokenHub input-length rejection, the final receipt can include `operation.response.diagnostic.code = CONTEXT_WINDOW_EXCEEDED`. If the original operation's service configuration recorded a window, the diagnostic can include that revision's limit. The host can use this information to compact the conversation and persist a checkpoint. On a generic HTTP 400, a connection loss or a missing final receipt, inspect the original operation before attempting further work. [Model continuation and recovery](MODEL_CONTINUATION.en.md)
|
|
20
|
+
|
|
21
|
+
## Verify the image you run
|
|
22
|
+
|
|
23
|
+
The release pipeline keeps the full build index and its provenance on GitHub Container Registry (GHCR). For the Core and demo applications, it copies the exact `linux/amd64` image manifest to the Aliyun ACR mirror and verifies its digest. That digest covers the image configuration and every layer in order. GHCR promotes its `latest` tags after both ACR application mirrors have passed verification. Use the versioned tag to pin a deployment.
|
|
24
|
+
|
|
25
|
+
Upgrading from v0.10.1 requires no new SQL migration. See the [upgrade guide](UPGRADE_v0.11.1.en.md) for deployment and read-only checks.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Core v0.11.1 · 多渠道任务追溯与模型上下文管理
|
|
2
|
+
|
|
3
|
+
[English](RELEASE_NOTES_v0.11.1.en.md)
|
|
4
|
+
|
|
5
|
+
使用 Core 0.10.1 的部署可直接升级到 0.11.1。下述控制台与模型服务改动最早见于 0.11.0 源码标签。该版本的镜像分发中途停止,未发布对应的 npm 包或 GitHub Release。已采用 GHCR 0.11.0 镜像的部署也可直接升级。
|
|
6
|
+
|
|
7
|
+
## 从一句回复找到对应任务
|
|
8
|
+
|
|
9
|
+
当用户说“助手回复了,订单状态却没变”,可以从「任务 → 会话」按来源和最近活动找到对应对话。列表区分客户端、网页助手、企微和渠道送达,详情标明用户与助手的消息,打开时定位到最新消息。有原授权或执行记录的会话,可在侧栏核对授权,沿关联记录查看执行过程。各渠道展示其已保存的内容,旧记录可能只有会话头。
|
|
10
|
+
|
|
11
|
+
在「调度流」按状态、创建时间和精确路由筛选,较早的失败任务也能直接查到。追溯匹配到多条记录时,可以打开一条再返回原列表。状态标签支持键盘聚焦查看原始值,未知状态按原值显示。创建任务时,字段规则可在问号帮助中查看。[对话审计](AGENT_CONVERSATION_AUDIT.md)
|
|
12
|
+
|
|
13
|
+
## 为下一次模型请求预留空间
|
|
14
|
+
|
|
15
|
+
在「用户与用量 → 模型服务」选定调用凭证和模型后,控制台按实际调用路由查询**输入与输出合计窗口**。有确切供应商规格时自动预填,管理员可按业务需要调低;切换模型或凭证后会重新查询。若显示同一路由的既有登记值,管理员可将其作为参考。缺少可靠资料时,新服务可以先停用保存,核实后再启用。[输出预算](MODEL_OUTPUT_BUDGET.md)
|
|
16
|
+
|
|
17
|
+
宿主通过已有的 `GET /usage/v1/model/models` 查找当前 `service_id` 的 `context_window_tokens`。构造请求时,系统提示、历史消息、工具定义和本次输出预算都要计入窗口。目录返回 `null` 表示尚未登记。
|
|
18
|
+
|
|
19
|
+
对已识别的 TokenHub 输入超限拒绝,完整回执可包含 `operation.response.diagnostic.code = CONTEXT_WINDOW_EXCEEDED`。若原操作的服务配置保存了窗口,诊断也可给出该修订的上限。宿主据此决定是否压缩并保存会话检查点。收到普通 HTTP 400、网络中断或缺少最终回执时,应先查原操作,避免重复执行。[模型续跑与原单查询](MODEL_CONTINUATION.md)
|
|
20
|
+
|
|
21
|
+
## 核对实际运行的镜像
|
|
22
|
+
|
|
23
|
+
发布流程在 GitHub Container Registry(GHCR)保留完整构建索引和构建来源证明。对于 Core 和示例业务应用,流程将精确的 `linux/amd64` 运行镜像清单同步到阿里云 ACR,并回读其摘要。此摘要覆盖镜像配置和按顺序排列的各层。两个应用的 ACR 镜像均通过核验后,流程再更新 GHCR 的 `latest`。部署时可用确切的版本标签固定镜像。
|
|
24
|
+
|
|
25
|
+
从 v0.10.1 升级无需新增 SQL 迁移。部署步骤与只读验收见[升级指南](UPGRADE_v0.11.1.md)。
|